@nxgt/material 1.12.3 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +5 -1
  2. package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
  3. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  4. package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
  5. package/dist/array-CApNbSU9.js +6 -0
  6. package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
  7. package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
  8. package/dist/channel-1fT-W0NS.js +5 -0
  9. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  10. package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
  11. package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
  12. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  13. package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
  14. package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
  15. package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
  16. package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
  17. package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
  18. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  19. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  20. package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
  21. package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
  22. package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
  23. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  24. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  25. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  26. package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
  27. package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
  28. package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
  29. package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
  30. package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
  31. package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
  32. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  33. package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
  34. package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
  35. package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
  36. package/dist/components.js +3 -3
  37. package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
  38. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  39. package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
  40. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  41. package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
  42. package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
  43. package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
  44. package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
  45. package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
  46. package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
  47. package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
  48. package/dist/dist-1DdJvBEt.js +50 -0
  49. package/dist/{dist-DGsPFADz.js → dist-DppLdkXt.js} +2 -2
  50. package/dist/dnd.js +2 -2
  51. package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
  52. package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
  53. package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
  54. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  55. package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
  56. package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
  57. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  58. package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
  59. package/dist/graphlib-DFaO_iIU.js +372 -0
  60. package/dist/{hooks-BjSuqEof.js → hooks-C5xy0u03.js} +1 -1
  61. package/dist/hooks.js +1 -1
  62. package/dist/{i18n-DmVqVJXj.js → i18n-Cech9IAc.js} +328 -843
  63. package/dist/i18n.js +1 -1
  64. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  65. package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
  66. package/dist/init-Buj1GKRa.js +27 -0
  67. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  68. package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
  69. package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
  70. package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
  71. package/dist/katex-BMQ6LGsM.js +21962 -0
  72. package/dist/lib/components/index.d.ts +4 -0
  73. package/dist/lib/components/ui/action-card.d.ts +1 -1
  74. package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
  75. package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
  76. package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
  77. package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
  78. package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
  79. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  80. package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
  81. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  82. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  83. package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
  84. package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
  85. package/dist/lib/components/ui/markdown/index.d.ts +3 -0
  86. package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
  87. package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
  88. package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
  89. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
  90. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  91. package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
  92. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
  93. package/dist/lib/components/ui/mentions/index.d.ts +3 -0
  94. package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
  95. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  96. package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
  97. package/dist/lib/components/ui/mentions/types.d.ts +7 -0
  98. package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
  99. package/dist/lib/components/ui/terminal/index.d.ts +2 -0
  100. package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
  101. package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
  102. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  103. package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
  104. package/dist/lib/i18n/resources/en/index.d.ts +13 -0
  105. package/dist/lib/i18n/resources/en/material.json.d.ts +14 -1
  106. package/dist/lib/i18n/resources/fr/index.d.ts +13 -0
  107. package/dist/lib/i18n/resources/fr/material.json.d.ts +14 -1
  108. package/dist/lib/i18n/resources/index.d.ts +26 -0
  109. package/dist/lib/i18n/translator.d.ts +1 -1
  110. package/dist/{lib-B1KXma-r.js → lib-Bbw5QPoj.js} +472 -471
  111. package/dist/lib.js +2 -2
  112. package/dist/{main-Cw-Yaqo9.js → main-BjDU9FDM.js} +58614 -29566
  113. package/dist/main.js +6 -6
  114. package/dist/material.css +1 -1
  115. package/dist/math-C5EhTgJw.js +10 -0
  116. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  117. package/dist/mermaid.core-BI1sunfX.js +1096 -0
  118. package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
  119. package/dist/ordinal-DuP05kVQ.js +65 -0
  120. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  121. package/dist/path-Cjou0lUh.js +85 -0
  122. package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
  123. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  124. package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
  125. package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
  126. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  127. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  128. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  129. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  130. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  131. package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
  132. package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
  133. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  134. package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
  135. package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
  136. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  137. package/dist/src-B4npqWNl.js +1775 -0
  138. package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
  139. package/dist/step-B6KjpKgN.js +706 -0
  140. package/dist/string-B-ZWXCs2.js +392 -0
  141. package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
  142. package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
  143. package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
  144. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  145. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  146. package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
  147. package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
  148. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  149. package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
  150. package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
  151. package/package.json +7 -1
@@ -0,0 +1,5084 @@
1
+ import { n as e, t } from "./src-B4npqWNl.js";
2
+ import { c as n, g as r } from "./chunk-ZIGJFQKS-CP5430fN.js";
3
+ import { n as i } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { G as a, H as o, U as s, a as c, at as l, d as u, et as d, q as f, s as p, v as m, w as h, x as g, y as _ } from "./chunk-O7XYJQB3-md6vjVm4.js";
5
+ import { t as v } from "./channel-1fT-W0NS.js";
6
+ import "./chunk-742MDFTN-BbWkrtj2.js";
7
+ import "./chunk-MBY4JIJT-Dg6AeftH.js";
8
+ import { t as y } from "./chunk-5VM5RSS4-Cr17nBXp.js";
9
+ import "./chunk-7PRAP22T-C8rsGRvH.js";
10
+ import { i as b, n as x, o as S, r as C } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
11
+ import { a as w } from "./chunk-7INBJB4K-C3x7JNTG.js";
12
+ import "./chunk-5DYCD2WN-Dn2jrYde.js";
13
+ import "./chunk-Z7XXMR3K-BoDf6lxl.js";
14
+ import { t as T } from "./chunk-GWA4HPMP-B4pgM-E1.js";
15
+ import { t as E } from "./chunk-XXDRQBXY-C9XIYQdM.js";
16
+ import { t as D } from "./chunk-WEXAMYUT-DmKWJz6y.js";
17
+ import "./chunk-UA2S7LBM-DQTYPe9y.js";
18
+ import { r as O, t as k } from "./chunk-GNY47TPC-d-Bi8r0p.js";
19
+ import { n as A, t as j } from "./chunk-LNGE3PJU-CiGrDO_F.js";
20
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-22UHCM2B.mjs
21
+ var M = {
22
+ SHAPE_UNSUPPORTED: "SHAPE_UNSUPPORTED",
23
+ SHAPE_REMOVED: "SHAPE_REMOVED",
24
+ EDGE_OPERATOR_UNSUPPORTED: "EDGE_OPERATOR_UNSUPPORTED",
25
+ REFERENCE_EDGE_LABEL_REJECTED: "REFERENCE_EDGE_LABEL_REJECTED",
26
+ CONNECTOR_REF_UNRESOLVED: "CONNECTOR_REF_UNRESOLVED",
27
+ CONNECTOR_REF_NOT_A_CONNECTOR: "CONNECTOR_REF_NOT_A_CONNECTOR",
28
+ METADATA_KEY_MISAPPLIED: "METADATA_KEY_MISAPPLIED",
29
+ DUPLICATE_ID_NODE: "DUPLICATE_ID_NODE",
30
+ RESERVED_SYNTHETIC_ID: "RESERVED_SYNTHETIC_ID",
31
+ CONTAINMENT_VIOLATION: "CONTAINMENT_VIOLATION",
32
+ EDGE_SEMANTIC_CONTRADICTION: "EDGE_SEMANTIC_CONTRADICTION",
33
+ FLOW_NO_INPUT: "FLOW_NO_INPUT"
34
+ }, N = /* @__PURE__ */ new Set([
35
+ M.SHAPE_UNSUPPORTED,
36
+ M.SHAPE_REMOVED,
37
+ M.CONTAINMENT_VIOLATION
38
+ ]);
39
+ new Set(Object.values(M).filter((e) => !N.has(e)));
40
+ var P = /* @__PURE__ */ new Map([
41
+ ["task", "roundedRect"],
42
+ ["tool", "subroutine"],
43
+ ["input", "lean-right"],
44
+ ["decision", "diamond"],
45
+ ["refdoc", "lin-doc"],
46
+ ["action", "hexagon"],
47
+ ["round", "rect"]
48
+ ]), ee = /* @__PURE__ */ new Set(/* @__PURE__ */ "doc.stadium.terminal.circle.trapezoid.inv_trapezoid.inv-trapezoid.doublecircle.double-circle.typeDeclaration.procs.lean_left.lean-left.in-out.cylinder.ellipse.odd.tag-rect.tagged-rectangle.delay.half-rounded-rectangle.lin-rect.lined-rectangle.win-pane.window-pane.curv-trap.curved-trapezoid".split(".")), te = /* @__PURE__ */ new Set([
49
+ "roundedRect",
50
+ "subroutine",
51
+ "subprocess",
52
+ "subproc",
53
+ "framed-rectangle",
54
+ "lean-right",
55
+ "diamond",
56
+ "lin-doc",
57
+ "lined-document",
58
+ "hexagon",
59
+ "hex",
60
+ "connector",
61
+ "collapsedGroup"
62
+ ]), F = "roundedRect";
63
+ function I(e) {
64
+ return e && (P.get(e) ?? e);
65
+ }
66
+ i(I, "resolveShapeAlias");
67
+ function ne(t, n) {
68
+ for (let r of t) if (!r.isGroup) {
69
+ if ((!r.shape || r.shape === "squareRect" || r.shape === "rect") && (r.shape = F), ee.has(r.shape)) {
70
+ let t = `shape "${r.shape}" was removed in v0.8.1, using "${F}"`;
71
+ n?.emitError ? n.emitError("SHAPE_REMOVED", t, { nodeId: r.id }) : e.warn(`agentflow: ${t}`), r.shape = F;
72
+ continue;
73
+ }
74
+ if (!te.has(r.shape)) {
75
+ let t = `shape "${r.shape}" is not supported, using "${F}"`;
76
+ n?.emitWarning ? n.emitWarning("SHAPE_UNSUPPORTED", t, { nodeId: r.id }) : e.warn(`agentflow: ${t}`), r.shape = F;
77
+ }
78
+ }
79
+ }
80
+ i(ne, "normaliseNodeShapes");
81
+ var L = /* @__PURE__ */ new Map([
82
+ ["tool", 0],
83
+ ["task", 1],
84
+ ["decision", 2],
85
+ ["input", 3],
86
+ ["refdoc", 4],
87
+ ["connector", 5],
88
+ ["action", 6]
89
+ ]), R = L.size, z = /* @__PURE__ */ i((e) => `af-kind-${e}`, "kindClass"), B = [...L.keys()], V = /* @__PURE__ */ i((e) => Math.max(1, e - R), "containerSlotCount"), H = /* @__PURE__ */ i((e, t) => {
90
+ let n = R + e % V(t);
91
+ return t > 0 ? n % t : n;
92
+ }, "containerSlot");
93
+ function re(e, t, n) {
94
+ let r = g().themeVariables?.borderColorArray, i = Array.isArray(r) ? r.length : 0, a = n.size;
95
+ for (let r of e ?? []) {
96
+ if (r.isGroup || r.shape === "collapsedGroup") {
97
+ r.colorIndex = H(n.get(String(r.id)) ?? a++, i);
98
+ continue;
99
+ }
100
+ let e = t(String(r.id));
101
+ e && L.has(e) && (r.cssClasses = `${r.cssClasses ?? ""} ${z(e)}`.replace(/\s+/g, " ").trim());
102
+ }
103
+ }
104
+ i(re, "assignColorSlots");
105
+ var ie = "agentflow-", ae = /* @__PURE__ */ new Set([
106
+ "shape",
107
+ "view",
108
+ "icon",
109
+ "img",
110
+ "form",
111
+ "pos",
112
+ "w",
113
+ "h",
114
+ "class",
115
+ "style",
116
+ "labelType"
117
+ ]), oe = /* @__PURE__ */ new Set([
118
+ "subroutine",
119
+ "subprocess",
120
+ "subproc",
121
+ "framed-rectangle",
122
+ "tool"
123
+ ]), se = { flow: "flowGroup" };
124
+ function ce(e) {
125
+ if (Array.isArray(e)) return e.map((e) => ce(e));
126
+ if (typeof e != "object" || !e) return e;
127
+ let t = {};
128
+ for (let n of Object.keys(e)) n === "__proto__" || n === "constructor" || n === "prototype" || (t[n] = ce(e[n]));
129
+ return t;
130
+ }
131
+ i(ce, "stripPrototypeKeys");
132
+ function le(e) {
133
+ let t = !1, n = !1, r = 0, i, a = [];
134
+ for (let o of e.split("\n")) {
135
+ if (i !== void 0) {
136
+ let e = o.length - o.trimStart().length;
137
+ if (o.trim() === "" || e > i) {
138
+ a.push(o);
139
+ continue;
140
+ }
141
+ i = void 0;
142
+ }
143
+ let e = -1;
144
+ for (let i = 0; i < o.length; i++) {
145
+ let a = o[i];
146
+ if (n) a === "\\" ? i++ : a === "\"" && (n = !1);
147
+ else if (t) a === "'" && (t = !1);
148
+ else if (a === "\"") n = !0;
149
+ else if (a === "'") t = !0;
150
+ else if (a === "#" && (i === 0 || o[i - 1] === " " || o[i - 1] === " ")) {
151
+ e = i;
152
+ break;
153
+ } else a === "[" || a === "{" ? r++ : (a === "]" || a === "}") && (r = Math.max(0, r - 1));
154
+ }
155
+ if (t || n || r > 0) {
156
+ a.push(o);
157
+ continue;
158
+ }
159
+ let s = e >= 0 ? o.slice(0, e) : o, c = e >= 0 ? o.slice(e) : "";
160
+ if (/:\s*[>|][\d+-]*\s*$/.test(s)) {
161
+ i = o.length - o.trimStart().length, a.push(o);
162
+ continue;
163
+ }
164
+ a.push(s.replace(/,([\t ]*)$/, "$1") + c);
165
+ }
166
+ return a.join("\n");
167
+ }
168
+ i(le, "stripLineTrailingCommas");
169
+ var ue = class {
170
+ constructor() {
171
+ this.vertexCounter = 0, this.config = g(), this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.globalNodes = /* @__PURE__ */ new Set(), this.connectors = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.diagramId = "", this.preserveCommentsWhenParsing = !0, this.frontmatterLineOffset = 0, this.elementMappings = [], this.bareVertexMappings = /* @__PURE__ */ new WeakSet(), this.diagnostics = [], this.postParseValidationRun = !1, this.funs = [], this.setAccTitle = s, this.setAccDescription = o, this.setDiagramTitle = f, this.getAccTitle = _, this.getAccDescription = m, this.getDiagramTitle = h, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addGlobal = this.addGlobal.bind(this), this.addConnector = this.addConnector.bind(this), this.addConnectorMapping = this.addConnectorMapping.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.setFrontmatterLineOffset = this.setFrontmatterLineOffset.bind(this), this.addVertexMapping = this.addVertexMapping.bind(this), this.extendVertexMapping = this.extendVertexMapping.bind(this), this.addEdgeMapping = this.addEdgeMapping.bind(this), this.addSubgraphMapping = this.addSubgraphMapping.bind(this), this.emitWarning = this.emitWarning.bind(this), this.emitError = this.emitError.bind(this), this.getDiagnostics = this.getDiagnostics.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
172
+ }
173
+ static {
174
+ i(this, "AgentFlowDB");
175
+ }
176
+ sanitizeText(e) {
177
+ return p.sanitizeText(e, this.config);
178
+ }
179
+ sanitizeNodeLabelType(e) {
180
+ switch (e) {
181
+ case "markdown":
182
+ case "string":
183
+ case "text": return e;
184
+ default: return "markdown";
185
+ }
186
+ }
187
+ setDiagramId(e) {
188
+ this.diagramId = e;
189
+ }
190
+ lookUpDomId(e) {
191
+ for (let t of this.vertices.values()) if (t.id === e) return this.diagramId ? `${this.diagramId}-${t.domId}` : t.domId;
192
+ return this.diagramId ? `${this.diagramId}-${e}` : e;
193
+ }
194
+ addVertex(e, t, n, r, i, a, o = {}, s, c) {
195
+ if (!e || e.trim().length === 0) return;
196
+ let l;
197
+ if (s !== void 0) {
198
+ let e;
199
+ e = s.includes("\n") ? s + "\n" : "{\n" + s + "\n}";
200
+ try {
201
+ l = A(e, { schema: j }) ?? {};
202
+ } catch (e) {
203
+ let t = s.includes("\n") ? le(s) : s;
204
+ if (t !== s) try {
205
+ l = A(t + "\n", { schema: j }) ?? {};
206
+ } catch {
207
+ this.rethrowMetadataYamlError(e, s, c);
208
+ }
209
+ else this.rethrowMetadataYamlError(e, s, c);
210
+ }
211
+ l = ce(l);
212
+ }
213
+ let u;
214
+ if (l && typeof l.shape == "string") {
215
+ let e = l;
216
+ u = e.shape;
217
+ let t = I(u);
218
+ t && t !== u && (e.shape = t);
219
+ }
220
+ let d = this.subGraphLookup.get(e);
221
+ if (d && l) {
222
+ d.metadata = {
223
+ ...d.metadata,
224
+ ...l
225
+ };
226
+ return;
227
+ }
228
+ let f = this.connectors.get(e);
229
+ if (f && l) {
230
+ f.metadata = {
231
+ ...f.metadata,
232
+ ...l
233
+ };
234
+ return;
235
+ }
236
+ if (e === "connectors") return;
237
+ let p = this.edges.find((t) => t.id === e);
238
+ if (p) {
239
+ let e = l;
240
+ e?.animate !== void 0 && (p.animate = e.animate), e?.animation !== void 0 && (p.animation = e.animation), e?.curve !== void 0 && (p.interpolate = e.curve), l && (p.metadata = {
241
+ ...p.metadata,
242
+ ...l
243
+ });
244
+ return;
245
+ }
246
+ let m, h = this.vertices.get(e);
247
+ if (h === void 0 && (h = {
248
+ id: e,
249
+ labelType: "text",
250
+ domId: ie + e + "-" + this.vertexCounter,
251
+ styles: [],
252
+ classes: []
253
+ }, this.vertices.set(e, h)), this.vertexCounter++, t === void 0 ? h.text === void 0 && (h.text = e) : (this.config = g(), m = this.sanitizeText(t.text.trim()), h.labelType = t.type, m.startsWith("\"") && m.endsWith("\"") && (m = m.substring(1, m.length - 1)), h.text = m), n !== void 0 && (h.type = n), r?.forEach((e) => {
254
+ h.styles.push(e);
255
+ }), i?.forEach((e) => {
256
+ h.classes.push(e);
257
+ }), a !== void 0 && (h.dir = a), h.props === void 0 ? h.props = o : o !== void 0 && Object.assign(h.props, o), l) {
258
+ if (h.metadata = {
259
+ ...h.metadata,
260
+ ...l
261
+ }, l.shape) {
262
+ let e = u ?? l.shape;
263
+ if (typeof e != "string") throw this.positionedShapeError(`No such shape: ${JSON.stringify(e)}.`, c);
264
+ if (e !== e.toLowerCase() || e.includes("_")) throw this.positionedShapeError(`No such shape: ${e}. Shape names should be lowercase.`, c);
265
+ if (!w(l.shape)) throw this.positionedShapeError(`No such shape: ${l.shape}.`, c);
266
+ h.type = l?.shape;
267
+ }
268
+ l?.label && (h.text = this.sanitizeText(l.label), h.labelType = this.sanitizeNodeLabelType(l?.labelType));
269
+ }
270
+ }
271
+ positionedShapeError(e, t) {
272
+ let n = Error(e);
273
+ if (!t) return n;
274
+ let r = t.first_line + this.frontmatterLineOffset;
275
+ return Object.assign(n, { hash: {
276
+ text: "",
277
+ token: null,
278
+ line: r - 1,
279
+ loc: {
280
+ first_line: r,
281
+ last_line: t.last_line + this.frontmatterLineOffset,
282
+ first_column: t.first_column,
283
+ last_column: t.last_column
284
+ },
285
+ expected: []
286
+ } }), n;
287
+ }
288
+ rethrowMetadataYamlError(e, t, n) {
289
+ let r = e;
290
+ if (!r || r.name !== "YAMLException" || !r.mark || !n) throw e;
291
+ let a;
292
+ try {
293
+ let e = !t.includes("\n"), o = e ? "{\n" + t + "\n}" : t + "\n", s = n.first_line + this.frontmatterLineOffset, c = n.first_column + 2, l = /* @__PURE__ */ i((t, n) => e ? {
294
+ line: s,
295
+ column: c + (t === 1 ? n : 0)
296
+ } : {
297
+ line: s + t,
298
+ column: t === 0 ? c + n : n
299
+ }, "toSource"), u = l(r.mark.line, r.mark.column), d = r.reason ?? (r.message ?? "").split("\n")[0].replace(/\s*\(\d+:\d+\)\s*$/, ""), f = o.split("\n"), p = [];
300
+ if (e) p.push(1);
301
+ else for (let e = r.mark.line - 1; e <= r.mark.line + 1; e++) e < 0 || e >= f.length || e === f.length - 1 && f[e] === "" && e !== r.mark.line || p.push(e);
302
+ let m = Math.max(...p.map((e) => String(l(e, 0).line).length)), h = [];
303
+ for (let e of p) {
304
+ let t = l(e, 0).line, n = ` ${String(t).padStart(m)} | `;
305
+ h.push(n + f[e].replace(/\t/g, "→")), e === r.mark.line && h.push("-".repeat(n.length + r.mark.column) + "^");
306
+ }
307
+ a = {
308
+ message: `${d} (${u.line}:${u.column + 1})
309
+
310
+ ${h.join("\n")}`,
311
+ markLine: u.line - 1,
312
+ markColumn: u.column,
313
+ hash: {
314
+ text: "",
315
+ token: null,
316
+ line: u.line - 1,
317
+ loc: {
318
+ first_line: u.line,
319
+ last_line: u.line,
320
+ first_column: u.column,
321
+ last_column: u.column + 1
322
+ },
323
+ expected: []
324
+ }
325
+ };
326
+ } catch {}
327
+ throw a && (r.message = a.message, r.mark.line = a.markLine, r.mark.column = a.markColumn, r.hash = a.hash), r;
328
+ }
329
+ addSingleLink(t, r, i, a) {
330
+ let o = {
331
+ start: t,
332
+ end: r,
333
+ type: void 0,
334
+ text: "",
335
+ labelType: "text",
336
+ classes: [],
337
+ isUserDefinedId: !1,
338
+ interpolate: this.edges.defaultInterpolate
339
+ };
340
+ e.info("abc78 Got edge...", o);
341
+ let s = i.text;
342
+ if (s !== void 0 && (o.text = this.sanitizeText(s.text.trim()), o.text.startsWith("\"") && o.text.endsWith("\"") && (o.text = o.text.substring(1, o.text.length - 1)), o.labelType = this.sanitizeNodeLabelType(s.type)), i !== void 0 && (o.type = i.type, o.stroke = i.stroke, o.length = i.length > 10 ? 10 : i.length, i.edgeSemantic && (o.edgeSemantic = i.edgeSemantic)), a && !this.edges.some((e) => e.id === a)) o.id = a, o.isUserDefinedId = !0;
343
+ else {
344
+ let e = this.edges.filter((e) => e.start === o.start && e.end === o.end);
345
+ e.length === 0 ? o.id = n(o.start, o.end, {
346
+ counter: 0,
347
+ prefix: "L"
348
+ }) : o.id = n(o.start, o.end, {
349
+ counter: e.length + 1,
350
+ prefix: "L"
351
+ });
352
+ }
353
+ if (this.edges.length < (this.config.maxEdges ?? 500)) e.info("Pushing edge..."), this.edges.push(o);
354
+ else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
355
+
356
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
357
+ You cannot set this config via configuration inside the diagram as it is a secure config.
358
+ You have to call mermaid.initialize.`);
359
+ }
360
+ isLinkData(e) {
361
+ return typeof e == "object" && !!e && "id" in e && typeof e.id == "string";
362
+ }
363
+ addLink(t, n, r) {
364
+ let i = this.isLinkData(r) ? r.id.replace("@", "") : void 0;
365
+ e.info("addLink", t, n, i);
366
+ for (let e of t) for (let a of n) {
367
+ let o = e === t[t.length - 1], s = a === n[0];
368
+ o && s ? this.addSingleLink(e, a, r, i) : this.addSingleLink(e, a, r, void 0);
369
+ }
370
+ }
371
+ updateLinkInterpolate(e, t) {
372
+ e.forEach((e) => {
373
+ if (e === "default") {
374
+ this.edges.defaultInterpolate = t;
375
+ return;
376
+ }
377
+ if (typeof e == "number" && e >= this.edges.length) throw Error(`The index ${e} 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.)`);
378
+ this.edges[e].interpolate = t;
379
+ });
380
+ }
381
+ updateLink(e, t) {
382
+ e.forEach((e) => {
383
+ if (typeof e == "number" && e >= this.edges.length) throw Error(`The index ${e} 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.)`);
384
+ e === "default" ? this.edges.defaultStyle = t : (this.edges[e].style = t, (this.edges[e]?.style?.length ?? 0) > 0 && !this.edges[e]?.style?.some((e) => e?.startsWith("fill")) && this.edges[e]?.style?.push("fill:none"));
385
+ });
386
+ }
387
+ addClass(e, t) {
388
+ let n = t.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
389
+ e.split(",").forEach((e) => {
390
+ let t = this.classes.get(e);
391
+ t === void 0 && (t = {
392
+ id: e,
393
+ styles: [],
394
+ textStyles: []
395
+ }, this.classes.set(e, t)), n?.forEach((e) => {
396
+ if (/color/.exec(e)) {
397
+ let n = e.replace("fill", "bgFill");
398
+ t.textStyles.push(n);
399
+ }
400
+ t.styles.push(e);
401
+ });
402
+ });
403
+ }
404
+ setDirection(e) {
405
+ this.direction = e.trim(), /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
406
+ }
407
+ setClass(e, t) {
408
+ for (let n of e.split(",")) {
409
+ let e = this.vertices.get(n);
410
+ e && e.classes.push(t);
411
+ let r = this.edges.find((e) => e.id === n);
412
+ r && r.classes.push(t);
413
+ let i = this.subGraphLookup.get(n);
414
+ i && i.classes.push(t);
415
+ }
416
+ }
417
+ setTooltip(e, t) {
418
+ if (t !== void 0) {
419
+ t = this.sanitizeText(t);
420
+ for (let n of e.split(",")) this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(n) : n, t);
421
+ }
422
+ }
423
+ setClickFun(e, t, n) {
424
+ if (g().securityLevel !== "loose" || t === void 0) return;
425
+ let i = [];
426
+ if (typeof n == "string") {
427
+ i = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
428
+ for (let e = 0; e < i.length; e++) {
429
+ let t = i[e].trim();
430
+ t.startsWith("\"") && t.endsWith("\"") && (t = t.substr(1, t.length - 2)), i[e] = t;
431
+ }
432
+ }
433
+ i.length === 0 && i.push(e);
434
+ let a = this.vertices.get(e);
435
+ a && (a.haveCallback = !0, this.funs.push(() => {
436
+ let n = this.lookUpDomId(e), a = document.querySelector(`[id="${n}"]`);
437
+ a !== null && a.addEventListener("click", () => {
438
+ r.runFunc(t, ...i);
439
+ }, !1);
440
+ }));
441
+ }
442
+ setLink(e, t, n) {
443
+ e.split(",").forEach((e) => {
444
+ let i = this.vertices.get(e);
445
+ i !== void 0 && (i.link = r.formatUrl(t, this.config), i.linkTarget = n);
446
+ }), this.setClass(e, "clickable");
447
+ }
448
+ getTooltip(e) {
449
+ return this.tooltips.get(e);
450
+ }
451
+ setClickEvent(e, t, n) {
452
+ e.split(",").forEach((e) => {
453
+ this.setClickFun(e, t, n);
454
+ }), this.setClass(e, "clickable");
455
+ }
456
+ bindFunctions(e) {
457
+ this.funs.forEach((t) => {
458
+ t(e);
459
+ });
460
+ }
461
+ getDirection() {
462
+ return this.direction?.trim();
463
+ }
464
+ getVertices() {
465
+ return this.vertices;
466
+ }
467
+ getEdges() {
468
+ return this.edges;
469
+ }
470
+ isToolDefinition(e) {
471
+ return oe.has(e.type);
472
+ }
473
+ getTools() {
474
+ let e = [];
475
+ for (let t of this.vertices.values()) this.isToolDefinition(t) && e.push(t);
476
+ return e;
477
+ }
478
+ getClasses() {
479
+ return this.classes;
480
+ }
481
+ setupToolTips(e) {
482
+ let n = T();
483
+ t(e).select("svg").selectAll("g.node").on("mouseover", (e) => {
484
+ let r = t(e.currentTarget), i = r.attr("title");
485
+ if (i === null) return;
486
+ let a = e.currentTarget?.getBoundingClientRect();
487
+ n.transition().duration(200).style("opacity", ".9"), n.text(r.attr("title")).style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), n.html(d.sanitize(i)), r.classed("hover", !0);
488
+ }).on("mouseout", (e) => {
489
+ n.transition().duration(500).style("opacity", 0), t(e.currentTarget).classed("hover", !1);
490
+ });
491
+ }
492
+ clear(e = "gen-2") {
493
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.globalNodes = /* @__PURE__ */ new Set(), this.connectors = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = e, this.config = g(), this.diagramId = "", this.vertexCounter = 0, this.direction = void 0, this.secCount = -1, this.posCrossRef = [], this.frontmatterLineOffset = 0, this.elementMappings = [], this.bareVertexMappings = /* @__PURE__ */ new WeakSet(), this.diagnostics = [], this.postParseValidationRun = !1, c();
494
+ }
495
+ setGen(e) {
496
+ this.version = e || "gen-2";
497
+ }
498
+ defaultStyle() {
499
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
500
+ }
501
+ addSubGraph(t, n, r, a) {
502
+ let o = t?.text?.trim(), s = r?.text;
503
+ t === r && r?.text && /\s/.exec(r.text) && (o = void 0);
504
+ let c = (/* @__PURE__ */ i((e) => {
505
+ let t = {
506
+ boolean: {},
507
+ number: {},
508
+ string: {}
509
+ }, n = [], r;
510
+ return {
511
+ nodeList: e.filter(function(e) {
512
+ let i = typeof e;
513
+ return e.stmt && e.stmt === "dir" ? (r = e.value, !1) : e.trim() === "" ? !1 : i in t ? t[i].hasOwnProperty(e) ? !1 : t[i][e] = !0 : !n.includes(e) && n.push(e);
514
+ }),
515
+ dir: r
516
+ };
517
+ }, "uniq"))(n.flat()), l = c.nodeList, u = c.dir, d = g().flowchart ?? {};
518
+ if (u ??= d.inheritDir ? this.getDirection() ?? g().direction ?? void 0 : void 0, this.version === "gen-1") for (let e = 0; e < l.length; e++) l[e] = this.lookUpDomId(l[e]);
519
+ o ??= "subGraph" + this.subCount, s ||= "", s = this.sanitizeText(s), this.subCount += 1;
520
+ let f = {
521
+ id: o,
522
+ nodes: l.filter((e) => e !== o && !this.globalNodes.has(e)),
523
+ title: s.trim(),
524
+ classes: [],
525
+ dir: u,
526
+ labelType: this.sanitizeNodeLabelType(r?.type),
527
+ type: a ?? "flow"
528
+ };
529
+ e.info("Adding", f.id, f.nodes, f.dir), f.nodes = this.makeUniq(f, this.subGraphs).nodes;
530
+ let p = this.getPosForId(o);
531
+ if (p !== -1) {
532
+ let e = this.subGraphs[p];
533
+ for (let t of f.nodes) e.nodes.includes(t) || e.nodes.push(t);
534
+ f.title && (e.title = f.title), f.dir && (e.dir = f.dir), f.type && (e.type = f.type), this.subGraphLookup.set(o, e);
535
+ } else this.subGraphs.push(f), this.subGraphLookup.set(o, f);
536
+ return o;
537
+ }
538
+ addGlobal(e) {
539
+ for (let t of e.flat()) {
540
+ if (typeof t != "string") continue;
541
+ let e = t.trim();
542
+ e !== "" && this.globalNodes.add(e);
543
+ }
544
+ for (let e of this.subGraphs) e.nodes = e.nodes.filter((e) => !this.globalNodes.has(e));
545
+ }
546
+ getPosForId(e) {
547
+ for (let [t, n] of this.subGraphs.entries()) if (n.id === e) return t;
548
+ return -1;
549
+ }
550
+ indexNodes2(e, t) {
551
+ let n = this.subGraphs[t].nodes;
552
+ if (this.secCount += 1, this.secCount > 2e3) return {
553
+ result: !1,
554
+ count: 0
555
+ };
556
+ if (this.posCrossRef[this.secCount] = t, this.subGraphs[t].id === e) return {
557
+ result: !0,
558
+ count: 0
559
+ };
560
+ let r = 0, i = 1;
561
+ for (; r < n.length;) {
562
+ let t = this.getPosForId(n[r]);
563
+ if (t >= 0) {
564
+ let n = this.indexNodes2(e, t);
565
+ if (n.result) return {
566
+ result: !0,
567
+ count: i + n.count
568
+ };
569
+ i += n.count;
570
+ }
571
+ r += 1;
572
+ }
573
+ return {
574
+ result: !1,
575
+ count: i
576
+ };
577
+ }
578
+ getDepthFirstPos(e) {
579
+ return this.posCrossRef[e];
580
+ }
581
+ indexNodes() {
582
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
583
+ }
584
+ addConnector(e, t) {
585
+ let n = e?.text?.trim();
586
+ if (!n) return "";
587
+ let r = t?.text?.trim() ?? "", i = r.length > 0 ? this.sanitizeText(r) : n, a = this.connectors.get(n);
588
+ return a ? r.length > 0 && (a.text = i) : (a = {
589
+ id: n,
590
+ labelType: "text",
591
+ domId: ie + n + "-" + this.vertexCounter,
592
+ styles: [],
593
+ classes: [],
594
+ isConnector: !0,
595
+ text: i
596
+ }, this.connectors.set(n, a), this.vertices.set(n, a), this.vertexCounter++), n;
597
+ }
598
+ getSubGraphs() {
599
+ return this.subGraphs;
600
+ }
601
+ getConnectors() {
602
+ return [...this.connectors.values()];
603
+ }
604
+ firstGraph() {
605
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
606
+ }
607
+ computeEdgeSemantic(e, t) {
608
+ if (e === "arrow_point" && t === "normal") return "sequence";
609
+ if (e === "arrow_cross" && t === "normal") return "failure";
610
+ if (e === "arrow_open" && t === "dotted") return "reference";
611
+ }
612
+ destructStartLink(e) {
613
+ let t = e.trim(), n = "normal";
614
+ return t.includes(".") && (n = "dotted"), {
615
+ type: "arrow_open",
616
+ stroke: n
617
+ };
618
+ }
619
+ countChar(e, t) {
620
+ let n = t.length, r = 0;
621
+ for (let i = 0; i < n; ++i) t[i] === e && ++r;
622
+ return r;
623
+ }
624
+ destructEndLink(e) {
625
+ let t = e.trim(), n = t.slice(0, -1), r = "arrow_open";
626
+ switch (t.slice(-1)) {
627
+ case "x":
628
+ r = "arrow_cross";
629
+ break;
630
+ case ">":
631
+ r = "arrow_point";
632
+ break;
633
+ case "-":
634
+ case ".":
635
+ r = "arrow_open", n = t;
636
+ break;
637
+ }
638
+ let i = "normal", a = n.length - 1, o = this.countChar(".", n);
639
+ return o > 0 && (i = "dotted", a = o), {
640
+ type: r,
641
+ stroke: i,
642
+ length: a
643
+ };
644
+ }
645
+ destructLink(e, t) {
646
+ let n = this.destructEndLink(e), r;
647
+ return t ? (r = this.destructStartLink(t), r.stroke === n.stroke ? (r.type = n.type, r.length = n.length, {
648
+ ...r,
649
+ edgeSemantic: this.computeEdgeSemantic(r.type, r.stroke)
650
+ }) : {
651
+ type: "INVALID",
652
+ stroke: "INVALID"
653
+ }) : {
654
+ ...n,
655
+ edgeSemantic: this.computeEdgeSemantic(n.type, n.stroke)
656
+ };
657
+ }
658
+ exists(e, t) {
659
+ for (let n of e) if (n.nodes.includes(t)) return !0;
660
+ return !1;
661
+ }
662
+ makeUniq(e, t) {
663
+ let n = [];
664
+ return e.nodes.forEach((r, i) => {
665
+ this.exists(t, r) || n.push(e.nodes[i]);
666
+ }), { nodes: n };
667
+ }
668
+ getTypeFromVertex(e) {
669
+ let t = typeof e.type == "string" ? I(e.type) : e.type;
670
+ switch (t) {
671
+ case "square":
672
+ case void 0: return "squareRect";
673
+ case "round": return "roundedRect";
674
+ case "ellipse": return "ellipse";
675
+ default: return t;
676
+ }
677
+ }
678
+ findNode(e, t) {
679
+ return e.find((e) => e.id === t);
680
+ }
681
+ destructEdgeType(e) {
682
+ let t = "none", n = "arrow_point";
683
+ switch (e) {
684
+ case "arrow_point":
685
+ case "arrow_circle":
686
+ case "arrow_cross":
687
+ case "arrow_hierarchy":
688
+ n = e;
689
+ break;
690
+ case "double_arrow_point":
691
+ case "double_arrow_circle":
692
+ case "double_arrow_cross":
693
+ t = e.replace("double_", ""), n = t;
694
+ break;
695
+ }
696
+ return {
697
+ arrowTypeStart: t,
698
+ arrowTypeEnd: n
699
+ };
700
+ }
701
+ addNodeFromVertex(e, t, n, r, i, a) {
702
+ let o = n.get(e.id), s = r.get(e.id) ?? !1, c = this.findNode(t, e.id);
703
+ if (c) c.cssStyles = e.styles, c.cssCompiledStyles = this.getCompiledStyles(e.classes), c.cssClasses = e.classes.join(" ");
704
+ else {
705
+ let n = {
706
+ id: e.id,
707
+ label: e.text,
708
+ labelType: e.labelType,
709
+ labelStyle: "",
710
+ parentId: o,
711
+ padding: i.flowchart?.padding || 8,
712
+ cssStyles: e.styles,
713
+ cssCompiledStyles: this.getCompiledStyles([
714
+ "default",
715
+ "node",
716
+ ...e.classes
717
+ ]),
718
+ cssClasses: "default " + e.classes.join(" "),
719
+ dir: e.dir,
720
+ domId: e.domId,
721
+ look: a,
722
+ link: e.link,
723
+ linkTarget: e.linkTarget,
724
+ tooltip: this.getTooltip(e.id),
725
+ metadata: e.metadata
726
+ };
727
+ s ? t.push({
728
+ ...n,
729
+ isGroup: !0,
730
+ shape: "rect"
731
+ }) : t.push({
732
+ ...n,
733
+ isGroup: !1,
734
+ shape: this.getTypeFromVertex(e),
735
+ wrappingWidth: i.agentflow?.wrappingWidth,
736
+ minWidth: i.agentflow?.minNodeWidth
737
+ });
738
+ }
739
+ }
740
+ getCompiledStyles(e) {
741
+ let t = [];
742
+ for (let n of e) {
743
+ let e = this.classes.get(n);
744
+ e?.styles && (t = [...t, ...e.styles ?? []].map((e) => e.trim())), e?.textStyles && (t = [...t, ...e.textStyles ?? []].map((e) => e.trim()));
745
+ }
746
+ return t;
747
+ }
748
+ runPostParseValidators() {
749
+ this.postParseValidationRun ||= !0;
750
+ }
751
+ getData() {
752
+ this.runPostParseValidators();
753
+ let e = g(), t = [], r = [], a = this.getSubGraphs(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ i((e, t, n = /* @__PURE__ */ new Set()) => {
754
+ if (n.has(e)) return;
755
+ n.add(e);
756
+ let r = this.subGraphLookup.get(e);
757
+ if (r) for (let e of r.nodes) e === t || n.has(e) || (c.add(e), l.set(e, t), u(e, t, n));
758
+ }, "collectDescendants");
759
+ for (let e of a) e.metadata?.view === "collapsed" && !c.has(e.id) && u(e.id, e.id);
760
+ let d = /* @__PURE__ */ i((e, t) => {
761
+ let n = /* @__PURE__ */ new Set(), r = t;
762
+ for (; r !== void 0 && !n.has(r);) {
763
+ if (r === e) return !0;
764
+ n.add(r), r = o.get(r);
765
+ }
766
+ return !1;
767
+ }, "wouldCloseContainmentCycle");
768
+ for (let e = a.length - 1; e >= 0; e--) {
769
+ let t = a[e];
770
+ if (!c.has(t.id)) {
771
+ t.nodes.length > 0 && s.set(t.id, !0);
772
+ for (let e of t.nodes) {
773
+ if (d(e, t.id)) {
774
+ this.emitWarning(M.CONTAINMENT_VIOLATION, `Container "${t.id}" cannot contain "${e}" because "${e}" already contains it. The nesting that would close the loop is dropped.`, { nodeId: e });
775
+ continue;
776
+ }
777
+ o.set(e, t.id);
778
+ }
779
+ }
780
+ }
781
+ for (let n = a.length - 1; n >= 0; n--) {
782
+ let r = a[n];
783
+ if (!c.has(r.id)) if (r.metadata?.view === "collapsed") {
784
+ let n = {
785
+ ...r.metadata,
786
+ containerType: r.type
787
+ };
788
+ t.push({
789
+ id: r.id,
790
+ label: r.title,
791
+ labelStyle: "",
792
+ labelType: r.labelType,
793
+ parentId: o.get(r.id),
794
+ padding: 8,
795
+ cssCompiledStyles: this.getCompiledStyles(r.classes),
796
+ cssClasses: r.classes.join(" "),
797
+ shape: "collapsedGroup",
798
+ dir: r.dir,
799
+ isGroup: !1,
800
+ look: e.look,
801
+ metadata: n
802
+ });
803
+ } else t.push({
804
+ id: r.id,
805
+ label: r.title,
806
+ labelStyle: "",
807
+ labelType: r.labelType,
808
+ parentId: o.get(r.id),
809
+ padding: 8,
810
+ cssCompiledStyles: this.getCompiledStyles(r.classes),
811
+ cssClasses: r.classes.join(" "),
812
+ shape: se[r.type ?? "flow"],
813
+ dir: r.dir,
814
+ isGroup: !0,
815
+ look: e.look,
816
+ metadata: r.metadata
817
+ });
818
+ }
819
+ this.getVertices().forEach((n) => {
820
+ c.has(n.id) || this.addNodeFromVertex(n, t, o, s, e, e.look || "classic");
821
+ });
822
+ let f = this.getEdges();
823
+ f.forEach((t, i) => {
824
+ let a = l.get(t.start) ?? t.start, o = l.get(t.end) ?? t.end;
825
+ if (a === o && t.start !== t.end) return;
826
+ let { arrowTypeStart: s, arrowTypeEnd: c } = this.destructEdgeType(t.type), u = [...f.defaultStyle ?? []];
827
+ t.style && u.push(...t.style);
828
+ let d = {
829
+ id: n(a, o, {
830
+ counter: i,
831
+ prefix: "L"
832
+ }, t.id),
833
+ isUserDefinedId: t.isUserDefinedId,
834
+ start: a,
835
+ end: o,
836
+ type: t.type ?? "normal",
837
+ label: t.text,
838
+ labelType: t.labelType,
839
+ labelpos: "c",
840
+ thickness: t.stroke,
841
+ minlen: t.length,
842
+ classes: t?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
843
+ arrowTypeStart: t?.stroke === "invisible" || t?.type === "arrow_open" ? "none" : s,
844
+ arrowTypeEnd: t?.stroke === "invisible" || t?.type === "arrow_open" ? "none" : c,
845
+ arrowheadStyle: "fill: #333",
846
+ cssCompiledStyles: this.getCompiledStyles(t.classes),
847
+ labelStyle: u,
848
+ style: u,
849
+ pattern: t.stroke,
850
+ look: e.look,
851
+ animate: t.animate,
852
+ animation: t.animation,
853
+ curve: t.interpolate || this.edges.defaultInterpolate || e.flowchart?.curve,
854
+ metadata: t.metadata
855
+ };
856
+ r.push(d);
857
+ }), ne(t, this);
858
+ let p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
859
+ for (let e of a) {
860
+ let t = o.get(e.id);
861
+ t !== void 0 && m.set(t, [...m.get(t) ?? [], e.id]);
862
+ }
863
+ let h = 0, _ = /* @__PURE__ */ i((e) => {
864
+ if (!p.has(e)) {
865
+ p.set(e, h++);
866
+ for (let t of m.get(e) ?? []) _(t);
867
+ }
868
+ }, "walkContainers");
869
+ for (let e of a) o.get(e.id) === void 0 && _(e.id);
870
+ let v = new Set(this.getConnectors().map((e) => e.id));
871
+ return re(t, (e) => {
872
+ if (v.has(e)) return "connector";
873
+ let t = this.vertices.get(e);
874
+ return t ? this.deriveVertexKind(t, I(t.type)) : void 0;
875
+ }, p), {
876
+ nodes: t,
877
+ edges: r,
878
+ other: {},
879
+ config: e,
880
+ connectors: this.getConnectors()
881
+ };
882
+ }
883
+ defaultConfig() {
884
+ return u.flowchart;
885
+ }
886
+ deriveVertexKind(e, t) {
887
+ return this.isToolDefinition(e) ? "tool" : t === "hexagon" || t === "hex" ? "action" : t === "lean-right" || t === "lean_right" ? "input" : t === "lin-doc" || t === "lined-document" ? "refdoc" : t === "diamond" ? "decision" : "task";
888
+ }
889
+ getSemanticModel() {
890
+ this.runPostParseValidators();
891
+ let e = new Set(this.subGraphs.map((e) => e.id)), t = [], n = [];
892
+ for (let [r, i] of this.vertices) {
893
+ if (e.has(r)) continue;
894
+ if (i.isConnector) {
895
+ let e = { id: r };
896
+ if (i.text !== void 0 && i.text !== r && (e.title = i.text), i.metadata && Object.keys(i.metadata).length > 0) {
897
+ let t = {};
898
+ for (let [e, n] of Object.entries(i.metadata)) ae.has(e) || (t[e] = n);
899
+ Object.keys(t).length > 0 && (e.metadata = t);
900
+ }
901
+ n.push(e);
902
+ continue;
903
+ }
904
+ let a = { id: r };
905
+ i.text !== void 0 && (a.label = i.text);
906
+ let o = typeof i.type == "string" ? I(i.type) : i.type;
907
+ if (o !== void 0 && (a.shape = o), a.vertexKind = this.deriveVertexKind(i, o), i.metadata && Object.keys(i.metadata).length > 0) {
908
+ let e = {};
909
+ for (let [t, n] of Object.entries(i.metadata)) ae.has(t) || (e[t] = n);
910
+ Object.keys(e).length > 0 && (a.metadata = e);
911
+ }
912
+ t.push(a);
913
+ }
914
+ let r = {
915
+ vertices: t,
916
+ edges: this.edges.map((e) => {
917
+ let t = {
918
+ start: e.start,
919
+ end: e.end
920
+ };
921
+ return e.id !== void 0 && (t.id = e.id), typeof e.text == "string" && e.text.length > 0 && (t.label = e.text), e.type !== void 0 && (t.type = e.type), e.stroke !== void 0 && (t.stroke = e.stroke), e.edgeSemantic !== void 0 && (t.edgeSemantic = e.edgeSemantic), e.length !== void 0 && (t.length = e.length), e.metadata && Object.keys(e.metadata).length > 0 && (t.metadata = { ...e.metadata }), t;
922
+ }),
923
+ subGraphs: this.subGraphs.map((e) => {
924
+ let t = {
925
+ id: e.id,
926
+ nodes: [...e.nodes]
927
+ };
928
+ if (e.type !== void 0 && (t.type = e.type), e.title !== void 0 && (t.title = e.title), e.dir !== void 0 && (t.direction = e.dir), e.metadata && Object.keys(e.metadata).length > 0) {
929
+ let n = {};
930
+ for (let [t, r] of Object.entries(e.metadata)) ae.has(t) || (n[t] = r);
931
+ Object.keys(n).length > 0 && (t.metadata = n);
932
+ }
933
+ return t;
934
+ }),
935
+ connectors: n,
936
+ diagnostics: this.diagnostics
937
+ };
938
+ return this.direction !== void 0 && (r.direction = this.direction), r;
939
+ }
940
+ setFrontmatterLineOffset(e) {
941
+ this.frontmatterLineOffset = e ?? 0;
942
+ }
943
+ toElementPosition(e) {
944
+ let t = e?.first_line ?? 0, n = e?.first_column ?? 0, r = e?.last_line ?? t, i = e?.last_column ?? n, [a, o] = e?.range ?? [0, 0];
945
+ return {
946
+ startLine: t + this.frontmatterLineOffset,
947
+ startColumn: n,
948
+ endLine: r + this.frontmatterLineOffset,
949
+ endColumn: i,
950
+ startIndex: a,
951
+ endIndex: o
952
+ };
953
+ }
954
+ pushMapping(e, t, n) {
955
+ if (!e) return;
956
+ let r = {
957
+ id: e,
958
+ type: t,
959
+ position: this.toElementPosition(n)
960
+ };
961
+ return this.elementMappings.push(r), r;
962
+ }
963
+ addVertexMapping(e, t, n, r) {
964
+ let i = this.pushMapping(e, "vertex", r);
965
+ i && n == null && this.bareVertexMappings.add(i);
966
+ }
967
+ extendVertexMapping(e, t) {
968
+ if (!e || !t) return;
969
+ let n = this.toElementPosition(t);
970
+ for (let t = this.elementMappings.length - 1; t >= 0; t--) {
971
+ let r = this.elementMappings[t];
972
+ if (r.type === "vertex" && r.id === e) {
973
+ this.bareVertexMappings.has(r) && (r.type = "attachment", this.bareVertexMappings.delete(r)), (n.endLine > r.position.endLine || n.endLine === r.position.endLine && n.endColumn > r.position.endColumn) && (r.position.endLine = n.endLine, r.position.endColumn = n.endColumn, r.position.endIndex = n.endIndex);
974
+ return;
975
+ }
976
+ }
977
+ this.pushMapping(e, "attachment", t);
978
+ }
979
+ addEdgeMapping(e, t, n, r) {
980
+ let i = Array.isArray(t) ? t.map((e) => typeof e == "string" ? e : e?.id ?? "").filter(Boolean) : [], a = i.length > 0 ? i.join(">") : "edge";
981
+ this.pushMapping(a, "edge", r);
982
+ }
983
+ addSubgraphMapping(e, t, n, r) {
984
+ let i = (typeof e == "string" ? e : e?.text) ?? "", a = this.toElementPosition(n), o = r ? this.toElementPosition(r) : a;
985
+ i && this.elementMappings.push({
986
+ id: i,
987
+ type: "subgraph",
988
+ position: {
989
+ startLine: a.startLine,
990
+ startColumn: a.startColumn,
991
+ endLine: o.endLine,
992
+ endColumn: o.endColumn,
993
+ startIndex: a.startIndex,
994
+ endIndex: o.endIndex
995
+ }
996
+ });
997
+ }
998
+ addConnectorMapping(e, t, n, r) {
999
+ let i = e?.text?.trim() ?? "";
1000
+ if (!i) return;
1001
+ let a = this.toElementPosition(n), o = r ? this.toElementPosition(r) : a;
1002
+ this.elementMappings.push({
1003
+ id: i,
1004
+ type: "connector",
1005
+ position: {
1006
+ startLine: a.startLine,
1007
+ startColumn: a.startColumn,
1008
+ endLine: o.endLine,
1009
+ endColumn: o.endColumn,
1010
+ startIndex: a.startIndex,
1011
+ endIndex: o.endIndex
1012
+ }
1013
+ });
1014
+ }
1015
+ getElementMappings() {
1016
+ return [...this.elementMappings];
1017
+ }
1018
+ getElementById(e) {
1019
+ return this.elementMappings.find((t) => t.id === e);
1020
+ }
1021
+ getElementsOnLine(e) {
1022
+ return this.elementMappings.filter((t) => e >= t.position.startLine && e <= t.position.endLine);
1023
+ }
1024
+ getElementAtPosition(e, t) {
1025
+ let n = this.elementMappings.filter((n) => {
1026
+ let { startLine: r, startColumn: i, endLine: a, endColumn: o } = n.position;
1027
+ return !(e < r || e > a || e === r && t < i || e === a && t > o);
1028
+ });
1029
+ if (n.length === 0) return;
1030
+ let r = /* @__PURE__ */ i(({ position: e }) => [e.endLine - e.startLine, e.endColumn - e.startColumn], "span");
1031
+ return n.reduce((e, t) => {
1032
+ let [n, i] = r(e), [a, o] = r(t);
1033
+ return a === n ? o < i ? t : e : a < n ? t : e;
1034
+ });
1035
+ }
1036
+ getMappingStats() {
1037
+ let e = 0, t = 0, n = 0, r = 0, i = 0;
1038
+ for (let a of this.elementMappings) a.type === "vertex" ? e++ : a.type === "edge" ? t++ : a.type === "subgraph" ? n++ : a.type === "connector" ? r++ : a.type === "attachment" && i++;
1039
+ return {
1040
+ vertices: e,
1041
+ edges: t,
1042
+ subgraphs: n,
1043
+ connectors: r,
1044
+ attachments: i,
1045
+ totalElements: this.elementMappings.length
1046
+ };
1047
+ }
1048
+ emitDiagnostic(t, n, r, i) {
1049
+ let a = i?.nodeId ?? i?.edgeId, o = a ? this.getElementById(a) : void 0, s = {
1050
+ id: t,
1051
+ severity: n,
1052
+ message: r,
1053
+ ...i?.nodeId ? { nodeId: i.nodeId } : {},
1054
+ ...i?.edgeId && !i?.nodeId ? { edgeId: i.edgeId } : {},
1055
+ ...o ? { position: o.position } : {}
1056
+ };
1057
+ if (this.diagnostics.some((e) => e.id === s.id && e.severity === s.severity && e.message === s.message && e.nodeId === s.nodeId && e.edgeId === s.edgeId)) return;
1058
+ this.diagnostics.push(s);
1059
+ let c = `agentflow[${t}]: ${r}`;
1060
+ n === "error" ? e.error(c) : e.warn(c);
1061
+ }
1062
+ emitWarning(e, t, n) {
1063
+ this.emitDiagnostic(e, "warning", t, n);
1064
+ }
1065
+ emitError(e, t, n) {
1066
+ this.emitDiagnostic(e, "error", t, n);
1067
+ }
1068
+ getDiagnostics() {
1069
+ return [...this.diagnostics];
1070
+ }
1071
+ }, de = {
1072
+ getClasses: /* @__PURE__ */ i(function(e, t) {
1073
+ return t.db.getClasses();
1074
+ }, "getClasses"),
1075
+ draw: /* @__PURE__ */ i(async function(t, n, i, a) {
1076
+ e.debug("Drawing agentflow diagram", n);
1077
+ let { securityLevel: o, agentflow: s, layout: c } = g();
1078
+ a.db.setDiagramId(n), e.debug("Before getData: ");
1079
+ let l = a.db.getData();
1080
+ e.debug("Data: ", l);
1081
+ let u = E(n, o), d = a.db.getDirection();
1082
+ l.type = a.type, l.layoutAlgorithm = k(c), l.layoutAlgorithm === "dagre" && c === "elk" && e.warn("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."), l.direction = d, l.nodeSpacing = s?.nodeSpacing || 50, l.rankSpacing = s?.rankSpacing || 50, l.markers = [
1083
+ "point",
1084
+ "circle",
1085
+ "cross",
1086
+ "hierarchy"
1087
+ ], l.diagramId = n, e.debug("REF1:", l), await O(l, u);
1088
+ let f = s?.diagramPadding ?? 8;
1089
+ r.insertTitle(u, "agentflowTitleText", s?.titleTopMargin ?? 0, a.db.getDiagramTitle()), D(u, f, "agentflow", s?.useMaxWidth ?? !0);
1090
+ }, "draw")
1091
+ }, fe = (function() {
1092
+ var e = /* @__PURE__ */ i(function(e, t, n, r) {
1093
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
1094
+ return n;
1095
+ }, "o"), t = [1, 5], n = [1, 4], r = [1, 3], a = [1, 6], o = [
1096
+ 1,
1097
+ 8,
1098
+ 9,
1099
+ 10,
1100
+ 11,
1101
+ 12,
1102
+ 28,
1103
+ 35,
1104
+ 36,
1105
+ 38,
1106
+ 40,
1107
+ 42,
1108
+ 47,
1109
+ 63,
1110
+ 87,
1111
+ 88,
1112
+ 89,
1113
+ 90,
1114
+ 91,
1115
+ 92,
1116
+ 105,
1117
+ 108,
1118
+ 109,
1119
+ 112,
1120
+ 114,
1121
+ 117,
1122
+ 118,
1123
+ 119,
1124
+ 124,
1125
+ 125,
1126
+ 126,
1127
+ 127,
1128
+ 128
1129
+ ], s = [2, 2], c = [1, 15], l = [1, 16], u = [1, 17], d = [1, 18], f = [1, 19], p = [1, 26], m = [1, 27], h = [1, 28], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 55], b = [1, 54], x = [1, 34], S = [1, 35], C = [1, 36], w = [1, 37], T = [1, 38], E = [1, 50], D = [1, 52], O = [1, 48], k = [1, 53], A = [1, 49], j = [1, 56], M = [1, 51], N = [1, 57], P = [1, 58], ee = [1, 39], te = [1, 40], F = [1, 41], I = [1, 42], ne = [1, 43], L = [1, 64], R = [
1130
+ 1,
1131
+ 8,
1132
+ 9,
1133
+ 10,
1134
+ 11,
1135
+ 12,
1136
+ 28,
1137
+ 33,
1138
+ 35,
1139
+ 36,
1140
+ 38,
1141
+ 40,
1142
+ 42,
1143
+ 47,
1144
+ 63,
1145
+ 87,
1146
+ 88,
1147
+ 89,
1148
+ 90,
1149
+ 91,
1150
+ 92,
1151
+ 105,
1152
+ 108,
1153
+ 109,
1154
+ 112,
1155
+ 114,
1156
+ 117,
1157
+ 118,
1158
+ 119,
1159
+ 124,
1160
+ 125,
1161
+ 126,
1162
+ 127,
1163
+ 128
1164
+ ], z = [1, 70], B = [1, 68], V = [1, 67], H = [1, 69], re = [
1165
+ 8,
1166
+ 9,
1167
+ 10,
1168
+ 12,
1169
+ 78,
1170
+ 80,
1171
+ 81
1172
+ ], ie = [1, 88], ae = [1, 101], oe = [1, 106], se = [1, 105], ce = [1, 102], le = [1, 98], ue = [1, 104], de = [1, 100], fe = [1, 107], pe = [1, 103], me = [1, 108], he = [1, 99], ge = [
1173
+ 8,
1174
+ 9,
1175
+ 10,
1176
+ 11,
1177
+ 12,
1178
+ 43,
1179
+ 78,
1180
+ 80,
1181
+ 81
1182
+ ], U = [
1183
+ 8,
1184
+ 9,
1185
+ 10,
1186
+ 11,
1187
+ 12,
1188
+ 43,
1189
+ 49,
1190
+ 78,
1191
+ 80,
1192
+ 81
1193
+ ], W = [
1194
+ 8,
1195
+ 9,
1196
+ 10,
1197
+ 11,
1198
+ 12,
1199
+ 30,
1200
+ 43,
1201
+ 47,
1202
+ 49,
1203
+ 51,
1204
+ 53,
1205
+ 55,
1206
+ 57,
1207
+ 59,
1208
+ 61,
1209
+ 63,
1210
+ 66,
1211
+ 68,
1212
+ 70,
1213
+ 71,
1214
+ 73,
1215
+ 78,
1216
+ 80,
1217
+ 81,
1218
+ 92,
1219
+ 105,
1220
+ 108,
1221
+ 109,
1222
+ 112,
1223
+ 114,
1224
+ 117,
1225
+ 118,
1226
+ 119
1227
+ ], _e = [
1228
+ 8,
1229
+ 9,
1230
+ 10,
1231
+ 12,
1232
+ 47,
1233
+ 63,
1234
+ 78,
1235
+ 80,
1236
+ 81,
1237
+ 92,
1238
+ 105,
1239
+ 108,
1240
+ 109,
1241
+ 112,
1242
+ 114,
1243
+ 117,
1244
+ 118,
1245
+ 119
1246
+ ], ve = [
1247
+ 47,
1248
+ 63,
1249
+ 92,
1250
+ 105,
1251
+ 108,
1252
+ 109,
1253
+ 112,
1254
+ 114,
1255
+ 117,
1256
+ 118,
1257
+ 119
1258
+ ], ye = [1, 131], be = [1, 132], xe = [1, 134], Se = [1, 133], Ce = [
1259
+ 47,
1260
+ 63,
1261
+ 65,
1262
+ 77,
1263
+ 92,
1264
+ 105,
1265
+ 108,
1266
+ 109,
1267
+ 112,
1268
+ 114,
1269
+ 117,
1270
+ 118,
1271
+ 119
1272
+ ], we = [1, 143], Te = [1, 157], Ee = [1, 158], De = [1, 159], Oe = [1, 162], ke = [1, 161], Ae = [1, 160], je = [1, 145], Me = [1, 147], Ne = [1, 151], Pe = [1, 139], Fe = [1, 140], Ie = [1, 152], Le = [1, 153], Re = [1, 154], ze = [1, 155], Be = [1, 156], Ve = [1, 163], He = [1, 164], Ue = [1, 141], We = [1, 142], Ge = [1, 149], Ke = [1, 144], qe = [1, 148], Je = [1, 146], Ye = [
1273
+ 8,
1274
+ 9,
1275
+ 10,
1276
+ 11,
1277
+ 12,
1278
+ 28,
1279
+ 33,
1280
+ 35,
1281
+ 36,
1282
+ 38,
1283
+ 40,
1284
+ 42,
1285
+ 47,
1286
+ 63,
1287
+ 87,
1288
+ 88,
1289
+ 89,
1290
+ 90,
1291
+ 91,
1292
+ 92,
1293
+ 105,
1294
+ 108,
1295
+ 109,
1296
+ 112,
1297
+ 114,
1298
+ 117,
1299
+ 118,
1300
+ 119,
1301
+ 124,
1302
+ 125,
1303
+ 126,
1304
+ 127,
1305
+ 128
1306
+ ], Xe = [1, 168], Ze = [1, 170], G = [
1307
+ 8,
1308
+ 9,
1309
+ 10,
1310
+ 12
1311
+ ], K = [
1312
+ 8,
1313
+ 9,
1314
+ 10,
1315
+ 11,
1316
+ 12,
1317
+ 15,
1318
+ 47,
1319
+ 63,
1320
+ 92,
1321
+ 108,
1322
+ 109,
1323
+ 112,
1324
+ 114,
1325
+ 117,
1326
+ 118,
1327
+ 119
1328
+ ], q = [1, 190], J = [1, 186], Y = [1, 187], X = [1, 191], Z = [1, 188], Q = [1, 189], Qe = [
1329
+ 80,
1330
+ 119,
1331
+ 122
1332
+ ], $ = [
1333
+ 8,
1334
+ 9,
1335
+ 10,
1336
+ 11,
1337
+ 12,
1338
+ 13,
1339
+ 15,
1340
+ 28,
1341
+ 30,
1342
+ 33,
1343
+ 35,
1344
+ 36,
1345
+ 43,
1346
+ 47,
1347
+ 63,
1348
+ 78,
1349
+ 87,
1350
+ 88,
1351
+ 89,
1352
+ 90,
1353
+ 91,
1354
+ 92,
1355
+ 93,
1356
+ 108,
1357
+ 112,
1358
+ 114,
1359
+ 117,
1360
+ 118,
1361
+ 119
1362
+ ], $e = [11, 109], et = [
1363
+ 32,
1364
+ 52,
1365
+ 54,
1366
+ 56,
1367
+ 58,
1368
+ 60,
1369
+ 65,
1370
+ 67,
1371
+ 69,
1372
+ 70,
1373
+ 72,
1374
+ 74,
1375
+ 119,
1376
+ 120,
1377
+ 121
1378
+ ], tt = [1, 269], nt = [1, 267], rt = [1, 271], it = [1, 265], at = [1, 266], ot = [1, 268], st = [1, 270], ct = [1, 272], lt = [1, 292], ut = [
1379
+ 8,
1380
+ 9,
1381
+ 10,
1382
+ 12,
1383
+ 109
1384
+ ], dt = [
1385
+ 8,
1386
+ 9,
1387
+ 10,
1388
+ 11,
1389
+ 12,
1390
+ 63,
1391
+ 87,
1392
+ 108,
1393
+ 109,
1394
+ 112,
1395
+ 113,
1396
+ 114,
1397
+ 115
1398
+ ], ft = {
1399
+ trace: /* @__PURE__ */ i(function() {}, "trace"),
1400
+ yy: {},
1401
+ symbols_: {
1402
+ error: 2,
1403
+ start: 3,
1404
+ graphConfig: 4,
1405
+ document: 5,
1406
+ line: 6,
1407
+ statement: 7,
1408
+ COMMENT: 8,
1409
+ SEMI: 9,
1410
+ NEWLINE: 10,
1411
+ SPACE: 11,
1412
+ EOF: 12,
1413
+ GRAPH: 13,
1414
+ NODIR: 14,
1415
+ DIR: 15,
1416
+ FirstStmtSeparator: 16,
1417
+ ending: 17,
1418
+ endToken: 18,
1419
+ spaceList: 19,
1420
+ spaceListNewline: 20,
1421
+ vertexStatement: 21,
1422
+ separator: 22,
1423
+ styleStatement: 23,
1424
+ linkStyleStatement: 24,
1425
+ classDefStatement: 25,
1426
+ classStatement: 26,
1427
+ clickStatement: 27,
1428
+ flow: 28,
1429
+ textNoTags: 29,
1430
+ SQS: 30,
1431
+ text: 31,
1432
+ SQE: 32,
1433
+ end: 33,
1434
+ shapeData: 34,
1435
+ global: 35,
1436
+ connector: 36,
1437
+ direction: 37,
1438
+ acc_title: 38,
1439
+ acc_title_value: 39,
1440
+ acc_descr: 40,
1441
+ acc_descr_value: 41,
1442
+ acc_descr_multiline_value: 42,
1443
+ SHAPE_DATA: 43,
1444
+ link: 44,
1445
+ node: 45,
1446
+ styledVertex: 46,
1447
+ AMP: 47,
1448
+ vertex: 48,
1449
+ STYLE_SEPARATOR: 49,
1450
+ idString: 50,
1451
+ DOUBLECIRCLESTART: 51,
1452
+ DOUBLECIRCLEEND: 52,
1453
+ PS: 53,
1454
+ PE: 54,
1455
+ "(-": 55,
1456
+ "-)": 56,
1457
+ STADIUMSTART: 57,
1458
+ STADIUMEND: 58,
1459
+ SUBROUTINESTART: 59,
1460
+ SUBROUTINEEND: 60,
1461
+ VERTEX_WITH_PROPS_START: 61,
1462
+ "NODE_STRING[field]": 62,
1463
+ COLON: 63,
1464
+ "NODE_STRING[value]": 64,
1465
+ PIPE: 65,
1466
+ CYLINDERSTART: 66,
1467
+ CYLINDEREND: 67,
1468
+ DIAMOND_START: 68,
1469
+ DIAMOND_STOP: 69,
1470
+ TAGEND: 70,
1471
+ TRAPSTART: 71,
1472
+ TRAPEND: 72,
1473
+ INVTRAPSTART: 73,
1474
+ INVTRAPEND: 74,
1475
+ linkStatement: 75,
1476
+ arrowText: 76,
1477
+ TESTSTR: 77,
1478
+ START_LINK: 78,
1479
+ edgeText: 79,
1480
+ LINK: 80,
1481
+ LINK_ID: 81,
1482
+ edgeTextToken: 82,
1483
+ STR: 83,
1484
+ MD_STR: 84,
1485
+ textToken: 85,
1486
+ keywords: 86,
1487
+ STYLE: 87,
1488
+ LINKSTYLE: 88,
1489
+ CLASSDEF: 89,
1490
+ CLASS: 90,
1491
+ CLICK: 91,
1492
+ DOWN: 92,
1493
+ UP: 93,
1494
+ textNoTagsToken: 94,
1495
+ stylesOpt: 95,
1496
+ "idString[vertex]": 96,
1497
+ "idString[class]": 97,
1498
+ CALLBACKNAME: 98,
1499
+ CALLBACKARGS: 99,
1500
+ HREF: 100,
1501
+ LINK_TARGET: 101,
1502
+ "STR[link]": 102,
1503
+ "STR[tooltip]": 103,
1504
+ alphaNum: 104,
1505
+ DEFAULT: 105,
1506
+ numList: 106,
1507
+ INTERPOLATE: 107,
1508
+ NUM: 108,
1509
+ COMMA: 109,
1510
+ style: 110,
1511
+ styleComponent: 111,
1512
+ NODE_STRING: 112,
1513
+ UNIT: 113,
1514
+ BRKT: 114,
1515
+ PCT: 115,
1516
+ idStringToken: 116,
1517
+ MINUS: 117,
1518
+ MULT: 118,
1519
+ UNICODE_TEXT: 119,
1520
+ TEXT: 120,
1521
+ TAGSTART: 121,
1522
+ EDGE_TEXT: 122,
1523
+ alphaNumToken: 123,
1524
+ direction_tb: 124,
1525
+ direction_bt: 125,
1526
+ direction_rl: 126,
1527
+ direction_lr: 127,
1528
+ direction_td: 128,
1529
+ $accept: 0,
1530
+ $end: 1
1531
+ },
1532
+ terminals_: {
1533
+ 2: "error",
1534
+ 8: "COMMENT",
1535
+ 9: "SEMI",
1536
+ 10: "NEWLINE",
1537
+ 11: "SPACE",
1538
+ 12: "EOF",
1539
+ 13: "GRAPH",
1540
+ 14: "NODIR",
1541
+ 15: "DIR",
1542
+ 28: "flow",
1543
+ 30: "SQS",
1544
+ 32: "SQE",
1545
+ 33: "end",
1546
+ 35: "global",
1547
+ 36: "connector",
1548
+ 38: "acc_title",
1549
+ 39: "acc_title_value",
1550
+ 40: "acc_descr",
1551
+ 41: "acc_descr_value",
1552
+ 42: "acc_descr_multiline_value",
1553
+ 43: "SHAPE_DATA",
1554
+ 47: "AMP",
1555
+ 49: "STYLE_SEPARATOR",
1556
+ 51: "DOUBLECIRCLESTART",
1557
+ 52: "DOUBLECIRCLEEND",
1558
+ 53: "PS",
1559
+ 54: "PE",
1560
+ 55: "(-",
1561
+ 56: "-)",
1562
+ 57: "STADIUMSTART",
1563
+ 58: "STADIUMEND",
1564
+ 59: "SUBROUTINESTART",
1565
+ 60: "SUBROUTINEEND",
1566
+ 61: "VERTEX_WITH_PROPS_START",
1567
+ 62: "NODE_STRING[field]",
1568
+ 63: "COLON",
1569
+ 64: "NODE_STRING[value]",
1570
+ 65: "PIPE",
1571
+ 66: "CYLINDERSTART",
1572
+ 67: "CYLINDEREND",
1573
+ 68: "DIAMOND_START",
1574
+ 69: "DIAMOND_STOP",
1575
+ 70: "TAGEND",
1576
+ 71: "TRAPSTART",
1577
+ 72: "TRAPEND",
1578
+ 73: "INVTRAPSTART",
1579
+ 74: "INVTRAPEND",
1580
+ 77: "TESTSTR",
1581
+ 78: "START_LINK",
1582
+ 80: "LINK",
1583
+ 81: "LINK_ID",
1584
+ 83: "STR",
1585
+ 84: "MD_STR",
1586
+ 87: "STYLE",
1587
+ 88: "LINKSTYLE",
1588
+ 89: "CLASSDEF",
1589
+ 90: "CLASS",
1590
+ 91: "CLICK",
1591
+ 92: "DOWN",
1592
+ 93: "UP",
1593
+ 96: "idString[vertex]",
1594
+ 97: "idString[class]",
1595
+ 98: "CALLBACKNAME",
1596
+ 99: "CALLBACKARGS",
1597
+ 100: "HREF",
1598
+ 101: "LINK_TARGET",
1599
+ 102: "STR[link]",
1600
+ 103: "STR[tooltip]",
1601
+ 105: "DEFAULT",
1602
+ 107: "INTERPOLATE",
1603
+ 108: "NUM",
1604
+ 109: "COMMA",
1605
+ 112: "NODE_STRING",
1606
+ 113: "UNIT",
1607
+ 114: "BRKT",
1608
+ 115: "PCT",
1609
+ 117: "MINUS",
1610
+ 118: "MULT",
1611
+ 119: "UNICODE_TEXT",
1612
+ 120: "TEXT",
1613
+ 121: "TAGSTART",
1614
+ 122: "EDGE_TEXT",
1615
+ 124: "direction_tb",
1616
+ 125: "direction_bt",
1617
+ 126: "direction_rl",
1618
+ 127: "direction_lr",
1619
+ 128: "direction_td"
1620
+ },
1621
+ productions_: [
1622
+ 0,
1623
+ [3, 2],
1624
+ [5, 0],
1625
+ [5, 2],
1626
+ [6, 1],
1627
+ [6, 1],
1628
+ [6, 1],
1629
+ [6, 1],
1630
+ [6, 1],
1631
+ [6, 1],
1632
+ [4, 2],
1633
+ [4, 2],
1634
+ [4, 2],
1635
+ [4, 2],
1636
+ [4, 3],
1637
+ [17, 2],
1638
+ [17, 1],
1639
+ [18, 1],
1640
+ [18, 1],
1641
+ [18, 1],
1642
+ [16, 1],
1643
+ [16, 1],
1644
+ [16, 2],
1645
+ [16, 1],
1646
+ [20, 2],
1647
+ [20, 2],
1648
+ [20, 2],
1649
+ [20, 1],
1650
+ [20, 1],
1651
+ [20, 1],
1652
+ [19, 2],
1653
+ [19, 1],
1654
+ [7, 2],
1655
+ [7, 2],
1656
+ [7, 2],
1657
+ [7, 2],
1658
+ [7, 2],
1659
+ [7, 2],
1660
+ [7, 9],
1661
+ [7, 10],
1662
+ [7, 6],
1663
+ [7, 7],
1664
+ [7, 4],
1665
+ [7, 4],
1666
+ [7, 7],
1667
+ [7, 8],
1668
+ [7, 4],
1669
+ [7, 5],
1670
+ [7, 1],
1671
+ [7, 2],
1672
+ [7, 2],
1673
+ [7, 1],
1674
+ [22, 1],
1675
+ [22, 1],
1676
+ [22, 1],
1677
+ [22, 1],
1678
+ [34, 2],
1679
+ [34, 1],
1680
+ [21, 4],
1681
+ [21, 3],
1682
+ [21, 4],
1683
+ [21, 2],
1684
+ [21, 2],
1685
+ [21, 1],
1686
+ [45, 1],
1687
+ [45, 6],
1688
+ [45, 5],
1689
+ [46, 1],
1690
+ [46, 3],
1691
+ [48, 4],
1692
+ [48, 4],
1693
+ [48, 6],
1694
+ [48, 4],
1695
+ [48, 4],
1696
+ [48, 4],
1697
+ [48, 8],
1698
+ [48, 4],
1699
+ [48, 4],
1700
+ [48, 4],
1701
+ [48, 6],
1702
+ [48, 4],
1703
+ [48, 4],
1704
+ [48, 4],
1705
+ [48, 4],
1706
+ [48, 4],
1707
+ [48, 1],
1708
+ [44, 2],
1709
+ [44, 3],
1710
+ [44, 3],
1711
+ [44, 1],
1712
+ [44, 3],
1713
+ [44, 4],
1714
+ [79, 1],
1715
+ [79, 2],
1716
+ [79, 1],
1717
+ [79, 1],
1718
+ [75, 1],
1719
+ [75, 2],
1720
+ [76, 3],
1721
+ [31, 1],
1722
+ [31, 2],
1723
+ [31, 1],
1724
+ [31, 1],
1725
+ [86, 1],
1726
+ [86, 1],
1727
+ [86, 1],
1728
+ [86, 1],
1729
+ [86, 1],
1730
+ [86, 1],
1731
+ [86, 1],
1732
+ [86, 1],
1733
+ [86, 1],
1734
+ [86, 1],
1735
+ [86, 1],
1736
+ [86, 1],
1737
+ [86, 1],
1738
+ [29, 1],
1739
+ [29, 2],
1740
+ [29, 1],
1741
+ [29, 1],
1742
+ [25, 5],
1743
+ [26, 5],
1744
+ [27, 2],
1745
+ [27, 4],
1746
+ [27, 3],
1747
+ [27, 5],
1748
+ [27, 3],
1749
+ [27, 5],
1750
+ [27, 5],
1751
+ [27, 7],
1752
+ [27, 2],
1753
+ [27, 4],
1754
+ [27, 2],
1755
+ [27, 4],
1756
+ [27, 4],
1757
+ [27, 6],
1758
+ [23, 5],
1759
+ [24, 5],
1760
+ [24, 5],
1761
+ [24, 9],
1762
+ [24, 9],
1763
+ [24, 7],
1764
+ [24, 7],
1765
+ [106, 1],
1766
+ [106, 3],
1767
+ [95, 1],
1768
+ [95, 3],
1769
+ [110, 1],
1770
+ [110, 2],
1771
+ [111, 1],
1772
+ [111, 1],
1773
+ [111, 1],
1774
+ [111, 1],
1775
+ [111, 1],
1776
+ [111, 1],
1777
+ [111, 1],
1778
+ [111, 1],
1779
+ [116, 1],
1780
+ [116, 1],
1781
+ [116, 1],
1782
+ [116, 1],
1783
+ [116, 1],
1784
+ [116, 1],
1785
+ [116, 1],
1786
+ [116, 1],
1787
+ [116, 1],
1788
+ [116, 1],
1789
+ [116, 1],
1790
+ [85, 1],
1791
+ [85, 1],
1792
+ [85, 1],
1793
+ [85, 1],
1794
+ [94, 1],
1795
+ [94, 1],
1796
+ [94, 1],
1797
+ [94, 1],
1798
+ [94, 1],
1799
+ [94, 1],
1800
+ [94, 1],
1801
+ [94, 1],
1802
+ [94, 1],
1803
+ [94, 1],
1804
+ [94, 1],
1805
+ [82, 1],
1806
+ [82, 1],
1807
+ [123, 1],
1808
+ [123, 1],
1809
+ [123, 1],
1810
+ [123, 1],
1811
+ [123, 1],
1812
+ [123, 1],
1813
+ [123, 1],
1814
+ [123, 1],
1815
+ [123, 1],
1816
+ [123, 1],
1817
+ [123, 1],
1818
+ [50, 1],
1819
+ [50, 2],
1820
+ [104, 1],
1821
+ [104, 2],
1822
+ [37, 1],
1823
+ [37, 1],
1824
+ [37, 1],
1825
+ [37, 1],
1826
+ [37, 1]
1827
+ ],
1828
+ performAction: /* @__PURE__ */ i(function(e, t, n, r, i, a, o) {
1829
+ var s = a.length - 1;
1830
+ switch (i) {
1831
+ case 2:
1832
+ this.$ = [];
1833
+ break;
1834
+ case 3:
1835
+ (!Array.isArray(a[s]) || a[s].length > 0) && a[s - 1].push(a[s]), this.$ = a[s - 1];
1836
+ break;
1837
+ case 4:
1838
+ case 198:
1839
+ this.$ = a[s];
1840
+ break;
1841
+ case 5:
1842
+ case 33:
1843
+ case 34:
1844
+ case 35:
1845
+ case 36:
1846
+ case 37:
1847
+ this.$ = [];
1848
+ break;
1849
+ case 13:
1850
+ r.setDirection("TB"), this.$ = "TB";
1851
+ break;
1852
+ case 14:
1853
+ r.setDirection(a[s - 1]), this.$ = a[s - 1];
1854
+ break;
1855
+ case 32:
1856
+ this.$ = a[s - 1].nodes;
1857
+ break;
1858
+ case 38:
1859
+ this.$ = r.addSubGraph(a[s - 6], a[s - 1], a[s - 4], "flow"), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 6], a[s - 4], o[s - 8], o[s]);
1860
+ break;
1861
+ case 39:
1862
+ this.$ = r.addSubGraph(a[s - 7], a[s - 1], a[s - 5], "flow"), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 3], o[s - 3]), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 7], a[s - 5], o[s - 9], o[s]);
1863
+ break;
1864
+ case 40:
1865
+ this.$ = r.addSubGraph(a[s - 3], a[s - 1], {
1866
+ text: "",
1867
+ type: "text"
1868
+ }, "flow"), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 3], {
1869
+ text: "",
1870
+ type: "text"
1871
+ }, o[s - 5], o[s]);
1872
+ break;
1873
+ case 41:
1874
+ this.$ = r.addSubGraph(a[s - 4], a[s - 1], {
1875
+ text: "",
1876
+ type: "text"
1877
+ }, "flow"), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 3], o[s - 3]), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 4], {
1878
+ text: "",
1879
+ type: "text"
1880
+ }, o[s - 6], o[s]);
1881
+ break;
1882
+ case 42:
1883
+ this.$ = r.addSubGraph(void 0, a[s - 1], void 0, "flow"), r.addSubgraphMapping && r.addSubgraphMapping(void 0, void 0, o[s - 3], o[s]);
1884
+ break;
1885
+ case 43:
1886
+ r.addGlobal(a[s - 1]), this.$ = [];
1887
+ break;
1888
+ case 44:
1889
+ this.$ = r.addConnector(a[s - 4], a[s - 2]), r.addConnectorMapping && r.addConnectorMapping(a[s - 4], a[s - 2], o[s - 6], o[s]);
1890
+ break;
1891
+ case 45:
1892
+ this.$ = r.addConnector(a[s - 5], a[s - 3]), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 1], o[s - 1]), r.addConnectorMapping && r.addConnectorMapping(a[s - 5], a[s - 3], o[s - 7], o[s]);
1893
+ break;
1894
+ case 46:
1895
+ this.$ = r.addConnector(a[s - 1], {
1896
+ text: "",
1897
+ type: "text"
1898
+ }), r.addConnectorMapping && r.addConnectorMapping(a[s - 1], {
1899
+ text: "",
1900
+ type: "text"
1901
+ }, o[s - 3], o[s]);
1902
+ break;
1903
+ case 47:
1904
+ this.$ = r.addConnector(a[s - 2], {
1905
+ text: "",
1906
+ type: "text"
1907
+ }), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 1], o[s - 1]), r.addConnectorMapping && r.addConnectorMapping(a[s - 2], {
1908
+ text: "",
1909
+ type: "text"
1910
+ }, o[s - 4], o[s]);
1911
+ break;
1912
+ case 49:
1913
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
1914
+ break;
1915
+ case 50:
1916
+ case 51:
1917
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
1918
+ break;
1919
+ case 56:
1920
+ this.$ = a[s - 1] + a[s];
1921
+ break;
1922
+ case 57:
1923
+ this.$ = a[s];
1924
+ break;
1925
+ case 58:
1926
+ r.addVertex(a[s - 1][a[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, a[s], o[s]), r.extendVertexMapping && r.extendVertexMapping(a[s - 1][a[s - 1].length - 1], o[s]), r.addLink(a[s - 3].stmt, a[s - 1], a[s - 2]), r.addEdgeMapping && r.addEdgeMapping(a[s - 3].stmt, a[s - 1], a[s - 2], this._$), this.$ = {
1927
+ stmt: a[s - 1],
1928
+ nodes: a[s - 1].concat(a[s - 3].nodes)
1929
+ };
1930
+ break;
1931
+ case 59:
1932
+ r.addLink(a[s - 2].stmt, a[s], a[s - 1]), r.addEdgeMapping && r.addEdgeMapping(a[s - 2].stmt, a[s], a[s - 1], this._$), this.$ = {
1933
+ stmt: a[s],
1934
+ nodes: a[s].concat(a[s - 2].nodes)
1935
+ };
1936
+ break;
1937
+ case 60:
1938
+ r.addLink(a[s - 3].stmt, a[s - 1], a[s - 2]), r.addEdgeMapping && r.addEdgeMapping(a[s - 3].stmt, a[s - 1], a[s - 2], this._$), this.$ = {
1939
+ stmt: a[s - 1],
1940
+ nodes: a[s - 1].concat(a[s - 3].nodes)
1941
+ };
1942
+ break;
1943
+ case 61:
1944
+ this.$ = {
1945
+ stmt: a[s - 1],
1946
+ nodes: a[s - 1]
1947
+ };
1948
+ break;
1949
+ case 62:
1950
+ r.addVertex(a[s - 1][a[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, a[s], o[s]), r.extendVertexMapping && r.extendVertexMapping(a[s - 1][a[s - 1].length - 1], o[s]), this.$ = {
1951
+ stmt: a[s - 1],
1952
+ nodes: a[s - 1],
1953
+ shapeData: a[s]
1954
+ };
1955
+ break;
1956
+ case 63:
1957
+ this.$ = {
1958
+ stmt: a[s],
1959
+ nodes: a[s]
1960
+ };
1961
+ break;
1962
+ case 64:
1963
+ this.$ = [a[s]];
1964
+ break;
1965
+ case 65:
1966
+ r.addVertex(a[s - 5][a[s - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, a[s - 4], o[s - 4]), r.extendVertexMapping && r.extendVertexMapping(a[s - 5][a[s - 5].length - 1], o[s - 4]), this.$ = a[s - 5].concat(a[s]);
1967
+ break;
1968
+ case 66:
1969
+ this.$ = a[s - 4].concat(a[s]);
1970
+ break;
1971
+ case 67:
1972
+ this.$ = a[s];
1973
+ break;
1974
+ case 68:
1975
+ this.$ = a[s - 2], r.setClass(a[s - 2], a[s]);
1976
+ break;
1977
+ case 69:
1978
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "square"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "square", this._$);
1979
+ break;
1980
+ case 70:
1981
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "doublecircle"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "doublecircle", this._$);
1982
+ break;
1983
+ case 71:
1984
+ this.$ = a[s - 5], r.addVertex(a[s - 5], a[s - 2], "circle"), r.addVertexMapping && r.addVertexMapping(a[s - 5], a[s - 2], "circle", this._$);
1985
+ break;
1986
+ case 72:
1987
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "ellipse"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "ellipse", this._$);
1988
+ break;
1989
+ case 73:
1990
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "stadium"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "stadium", this._$);
1991
+ break;
1992
+ case 74:
1993
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "subroutine"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "subroutine", this._$);
1994
+ break;
1995
+ case 75:
1996
+ this.$ = a[s - 7], r.addVertex(a[s - 7], a[s - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[a[s - 5], a[s - 3]]])), r.addVertexMapping && r.addVertexMapping(a[s - 7], a[s - 1], "rect", this._$);
1997
+ break;
1998
+ case 76:
1999
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "cylinder"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "cylinder", this._$);
2000
+ break;
2001
+ case 77:
2002
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "round"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "round", this._$);
2003
+ break;
2004
+ case 78:
2005
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "diamond"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "diamond", this._$);
2006
+ break;
2007
+ case 79:
2008
+ this.$ = a[s - 5], r.addVertex(a[s - 5], a[s - 2], "hexagon"), r.addVertexMapping && r.addVertexMapping(a[s - 5], a[s - 2], "hexagon", this._$);
2009
+ break;
2010
+ case 80:
2011
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "odd"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "odd", this._$);
2012
+ break;
2013
+ case 81:
2014
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "trapezoid"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "trapezoid", this._$);
2015
+ break;
2016
+ case 82:
2017
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "inv_trapezoid"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "inv_trapezoid", this._$);
2018
+ break;
2019
+ case 83:
2020
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "lean_right"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "lean_right", this._$);
2021
+ break;
2022
+ case 84:
2023
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "lean_left"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "lean_left", this._$);
2024
+ break;
2025
+ case 85:
2026
+ this.$ = a[s], r.addVertex(a[s]), r.addVertexMapping && r.addVertexMapping(a[s], void 0, void 0, this._$);
2027
+ break;
2028
+ case 86:
2029
+ a[s - 1].text = a[s], this.$ = a[s - 1];
2030
+ break;
2031
+ case 87:
2032
+ case 88:
2033
+ a[s - 2].text = a[s - 1], this.$ = a[s - 2];
2034
+ break;
2035
+ case 89:
2036
+ this.$ = a[s];
2037
+ break;
2038
+ case 90:
2039
+ var c = r.destructLink(a[s], a[s - 2]);
2040
+ this.$ = {
2041
+ type: c.type,
2042
+ stroke: c.stroke,
2043
+ length: c.length,
2044
+ edgeSemantic: c.edgeSemantic,
2045
+ text: a[s - 1]
2046
+ };
2047
+ break;
2048
+ case 91:
2049
+ var c = r.destructLink(a[s], a[s - 2]);
2050
+ this.$ = {
2051
+ type: c.type,
2052
+ stroke: c.stroke,
2053
+ length: c.length,
2054
+ edgeSemantic: c.edgeSemantic,
2055
+ text: a[s - 1],
2056
+ id: a[s - 3]
2057
+ };
2058
+ break;
2059
+ case 92:
2060
+ this.$ = {
2061
+ text: a[s],
2062
+ type: "text"
2063
+ };
2064
+ break;
2065
+ case 93:
2066
+ this.$ = {
2067
+ text: a[s - 1].text + "" + a[s],
2068
+ type: a[s - 1].type
2069
+ };
2070
+ break;
2071
+ case 94:
2072
+ this.$ = {
2073
+ text: a[s],
2074
+ type: "string"
2075
+ };
2076
+ break;
2077
+ case 95:
2078
+ this.$ = {
2079
+ text: a[s],
2080
+ type: "markdown"
2081
+ };
2082
+ break;
2083
+ case 96:
2084
+ var c = r.destructLink(a[s]);
2085
+ this.$ = {
2086
+ type: c.type,
2087
+ stroke: c.stroke,
2088
+ length: c.length,
2089
+ edgeSemantic: c.edgeSemantic
2090
+ };
2091
+ break;
2092
+ case 97:
2093
+ var c = r.destructLink(a[s]);
2094
+ this.$ = {
2095
+ type: c.type,
2096
+ stroke: c.stroke,
2097
+ length: c.length,
2098
+ edgeSemantic: c.edgeSemantic,
2099
+ id: a[s - 1]
2100
+ };
2101
+ break;
2102
+ case 98:
2103
+ this.$ = a[s - 1];
2104
+ break;
2105
+ case 99:
2106
+ this.$ = {
2107
+ text: a[s],
2108
+ type: "text"
2109
+ };
2110
+ break;
2111
+ case 100:
2112
+ this.$ = {
2113
+ text: a[s - 1].text + "" + a[s],
2114
+ type: a[s - 1].type
2115
+ };
2116
+ break;
2117
+ case 101:
2118
+ this.$ = {
2119
+ text: a[s],
2120
+ type: "string"
2121
+ };
2122
+ break;
2123
+ case 102:
2124
+ case 119:
2125
+ this.$ = {
2126
+ text: a[s],
2127
+ type: "markdown"
2128
+ };
2129
+ break;
2130
+ case 116:
2131
+ this.$ = {
2132
+ text: a[s],
2133
+ type: "text"
2134
+ };
2135
+ break;
2136
+ case 117:
2137
+ this.$ = {
2138
+ text: a[s - 1].text + "" + a[s],
2139
+ type: a[s - 1].type
2140
+ };
2141
+ break;
2142
+ case 118:
2143
+ this.$ = {
2144
+ text: a[s],
2145
+ type: "text"
2146
+ };
2147
+ break;
2148
+ case 120:
2149
+ this.$ = a[s - 4], r.addClass(a[s - 2], a[s]);
2150
+ break;
2151
+ case 121:
2152
+ this.$ = a[s - 4], r.setClass(a[s - 2], a[s]);
2153
+ break;
2154
+ case 122:
2155
+ case 130:
2156
+ this.$ = a[s - 1], r.setClickEvent(a[s - 1], a[s]);
2157
+ break;
2158
+ case 123:
2159
+ case 131:
2160
+ this.$ = a[s - 3], r.setClickEvent(a[s - 3], a[s - 2]), r.setTooltip(a[s - 3], a[s]);
2161
+ break;
2162
+ case 124:
2163
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s - 1], a[s]);
2164
+ break;
2165
+ case 125:
2166
+ this.$ = a[s - 4], r.setClickEvent(a[s - 4], a[s - 3], a[s - 2]), r.setTooltip(a[s - 4], a[s]);
2167
+ break;
2168
+ case 126:
2169
+ this.$ = a[s - 2], r.setLink(a[s - 2], a[s]);
2170
+ break;
2171
+ case 127:
2172
+ this.$ = a[s - 4], r.setLink(a[s - 4], a[s - 2]), r.setTooltip(a[s - 4], a[s]);
2173
+ break;
2174
+ case 128:
2175
+ this.$ = a[s - 4], r.setLink(a[s - 4], a[s - 2], a[s]);
2176
+ break;
2177
+ case 129:
2178
+ this.$ = a[s - 6], r.setLink(a[s - 6], a[s - 4], a[s]), r.setTooltip(a[s - 6], a[s - 2]);
2179
+ break;
2180
+ case 132:
2181
+ this.$ = a[s - 1], r.setLink(a[s - 1], a[s]);
2182
+ break;
2183
+ case 133:
2184
+ this.$ = a[s - 3], r.setLink(a[s - 3], a[s - 2]), r.setTooltip(a[s - 3], a[s]);
2185
+ break;
2186
+ case 134:
2187
+ this.$ = a[s - 3], r.setLink(a[s - 3], a[s - 2], a[s]);
2188
+ break;
2189
+ case 135:
2190
+ this.$ = a[s - 5], r.setLink(a[s - 5], a[s - 4], a[s]), r.setTooltip(a[s - 5], a[s - 2]);
2191
+ break;
2192
+ case 136:
2193
+ this.$ = a[s - 4], r.addVertex(a[s - 2], void 0, void 0, a[s]);
2194
+ break;
2195
+ case 137:
2196
+ this.$ = a[s - 4], r.updateLink([a[s - 2]], a[s]);
2197
+ break;
2198
+ case 138:
2199
+ this.$ = a[s - 4], r.updateLink(a[s - 2], a[s]);
2200
+ break;
2201
+ case 139:
2202
+ this.$ = a[s - 8], r.updateLinkInterpolate([a[s - 6]], a[s - 2]), r.updateLink([a[s - 6]], a[s]);
2203
+ break;
2204
+ case 140:
2205
+ this.$ = a[s - 8], r.updateLinkInterpolate(a[s - 6], a[s - 2]), r.updateLink(a[s - 6], a[s]);
2206
+ break;
2207
+ case 141:
2208
+ this.$ = a[s - 6], r.updateLinkInterpolate([a[s - 4]], a[s]);
2209
+ break;
2210
+ case 142:
2211
+ this.$ = a[s - 6], r.updateLinkInterpolate(a[s - 4], a[s]);
2212
+ break;
2213
+ case 143:
2214
+ case 145:
2215
+ this.$ = [a[s]];
2216
+ break;
2217
+ case 144:
2218
+ case 146:
2219
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
2220
+ break;
2221
+ case 148:
2222
+ this.$ = a[s - 1] + a[s];
2223
+ break;
2224
+ case 196:
2225
+ this.$ = a[s];
2226
+ break;
2227
+ case 197:
2228
+ this.$ = a[s - 1] + "" + a[s];
2229
+ break;
2230
+ case 199:
2231
+ this.$ = a[s - 1] + "" + a[s];
2232
+ break;
2233
+ case 200:
2234
+ this.$ = {
2235
+ stmt: "dir",
2236
+ value: "TB"
2237
+ };
2238
+ break;
2239
+ case 201:
2240
+ this.$ = {
2241
+ stmt: "dir",
2242
+ value: "BT"
2243
+ };
2244
+ break;
2245
+ case 202:
2246
+ this.$ = {
2247
+ stmt: "dir",
2248
+ value: "RL"
2249
+ };
2250
+ break;
2251
+ case 203:
2252
+ this.$ = {
2253
+ stmt: "dir",
2254
+ value: "LR"
2255
+ };
2256
+ break;
2257
+ case 204:
2258
+ this.$ = {
2259
+ stmt: "dir",
2260
+ value: "TD"
2261
+ };
2262
+ break;
2263
+ }
2264
+ }, "anonymous"),
2265
+ table: [
2266
+ {
2267
+ 3: 1,
2268
+ 4: 2,
2269
+ 8: t,
2270
+ 10: n,
2271
+ 11: r,
2272
+ 13: a
2273
+ },
2274
+ { 1: [3] },
2275
+ e(o, s, { 5: 7 }),
2276
+ {
2277
+ 4: 8,
2278
+ 8: t,
2279
+ 10: n,
2280
+ 11: r,
2281
+ 13: a
2282
+ },
2283
+ {
2284
+ 4: 9,
2285
+ 8: t,
2286
+ 10: n,
2287
+ 11: r,
2288
+ 13: a
2289
+ },
2290
+ {
2291
+ 4: 10,
2292
+ 8: t,
2293
+ 10: n,
2294
+ 11: r,
2295
+ 13: a
2296
+ },
2297
+ {
2298
+ 14: [1, 11],
2299
+ 15: [1, 12]
2300
+ },
2301
+ {
2302
+ 1: [2, 1],
2303
+ 6: 13,
2304
+ 7: 14,
2305
+ 8: c,
2306
+ 9: l,
2307
+ 10: u,
2308
+ 11: d,
2309
+ 12: f,
2310
+ 21: 20,
2311
+ 23: 21,
2312
+ 24: 22,
2313
+ 25: 23,
2314
+ 26: 24,
2315
+ 27: 25,
2316
+ 28: p,
2317
+ 35: m,
2318
+ 36: h,
2319
+ 37: 29,
2320
+ 38: g,
2321
+ 40: _,
2322
+ 42: v,
2323
+ 45: 33,
2324
+ 46: 44,
2325
+ 47: y,
2326
+ 48: 45,
2327
+ 50: 46,
2328
+ 63: b,
2329
+ 87: x,
2330
+ 88: S,
2331
+ 89: C,
2332
+ 90: w,
2333
+ 91: T,
2334
+ 92: E,
2335
+ 105: D,
2336
+ 108: O,
2337
+ 109: k,
2338
+ 112: A,
2339
+ 114: j,
2340
+ 116: 47,
2341
+ 117: M,
2342
+ 118: N,
2343
+ 119: P,
2344
+ 124: ee,
2345
+ 125: te,
2346
+ 126: F,
2347
+ 127: I,
2348
+ 128: ne
2349
+ },
2350
+ e(o, [2, 10]),
2351
+ e(o, [2, 11]),
2352
+ e(o, [2, 12]),
2353
+ e(o, [2, 13]),
2354
+ {
2355
+ 8: [1, 63],
2356
+ 9: [1, 60],
2357
+ 10: [1, 61],
2358
+ 11: L,
2359
+ 16: 59,
2360
+ 19: 62
2361
+ },
2362
+ e(R, [2, 3]),
2363
+ e(R, [2, 4]),
2364
+ e(R, [2, 5]),
2365
+ e(R, [2, 6]),
2366
+ e(R, [2, 7]),
2367
+ e(R, [2, 8]),
2368
+ e(R, [2, 9]),
2369
+ {
2370
+ 8: z,
2371
+ 9: B,
2372
+ 10: V,
2373
+ 12: H,
2374
+ 22: 65,
2375
+ 44: 66,
2376
+ 75: 71,
2377
+ 78: [1, 72],
2378
+ 80: [1, 74],
2379
+ 81: [1, 73]
2380
+ },
2381
+ {
2382
+ 8: z,
2383
+ 9: B,
2384
+ 10: V,
2385
+ 12: H,
2386
+ 22: 75
2387
+ },
2388
+ {
2389
+ 8: z,
2390
+ 9: B,
2391
+ 10: V,
2392
+ 12: H,
2393
+ 22: 76
2394
+ },
2395
+ {
2396
+ 8: z,
2397
+ 9: B,
2398
+ 10: V,
2399
+ 12: H,
2400
+ 22: 77
2401
+ },
2402
+ {
2403
+ 8: z,
2404
+ 9: B,
2405
+ 10: V,
2406
+ 12: H,
2407
+ 22: 78
2408
+ },
2409
+ {
2410
+ 8: z,
2411
+ 9: B,
2412
+ 10: V,
2413
+ 12: H,
2414
+ 22: 79
2415
+ },
2416
+ {
2417
+ 8: z,
2418
+ 9: B,
2419
+ 10: V,
2420
+ 11: [1, 80],
2421
+ 12: H,
2422
+ 22: 81
2423
+ },
2424
+ {
2425
+ 8: z,
2426
+ 9: B,
2427
+ 10: V,
2428
+ 12: H,
2429
+ 22: 82
2430
+ },
2431
+ { 11: [1, 83] },
2432
+ e(R, [2, 48]),
2433
+ { 39: [1, 84] },
2434
+ { 41: [1, 85] },
2435
+ e(R, [2, 51]),
2436
+ e(re, [2, 63], {
2437
+ 19: 86,
2438
+ 34: 87,
2439
+ 11: L,
2440
+ 43: ie
2441
+ }),
2442
+ { 11: [1, 89] },
2443
+ { 11: [1, 90] },
2444
+ { 11: [1, 91] },
2445
+ { 11: [1, 92] },
2446
+ {
2447
+ 15: ae,
2448
+ 47: oe,
2449
+ 63: se,
2450
+ 83: [1, 96],
2451
+ 92: ce,
2452
+ 98: [1, 93],
2453
+ 100: [1, 94],
2454
+ 104: 95,
2455
+ 108: le,
2456
+ 109: ue,
2457
+ 112: de,
2458
+ 114: fe,
2459
+ 117: pe,
2460
+ 118: me,
2461
+ 119: he,
2462
+ 123: 97
2463
+ },
2464
+ e(R, [2, 200]),
2465
+ e(R, [2, 201]),
2466
+ e(R, [2, 202]),
2467
+ e(R, [2, 203]),
2468
+ e(R, [2, 204]),
2469
+ e(ge, [2, 64]),
2470
+ e(ge, [2, 67], { 49: [1, 109] }),
2471
+ e(U, [2, 85], {
2472
+ 116: 122,
2473
+ 30: [1, 110],
2474
+ 47: y,
2475
+ 51: [1, 111],
2476
+ 53: [1, 112],
2477
+ 55: [1, 113],
2478
+ 57: [1, 114],
2479
+ 59: [1, 115],
2480
+ 61: [1, 116],
2481
+ 63: b,
2482
+ 66: [1, 117],
2483
+ 68: [1, 118],
2484
+ 70: [1, 119],
2485
+ 71: [1, 120],
2486
+ 73: [1, 121],
2487
+ 92: E,
2488
+ 105: D,
2489
+ 108: O,
2490
+ 109: k,
2491
+ 112: A,
2492
+ 114: j,
2493
+ 117: M,
2494
+ 118: N,
2495
+ 119: P
2496
+ }),
2497
+ e(W, [2, 196]),
2498
+ e(W, [2, 157]),
2499
+ e(W, [2, 158]),
2500
+ e(W, [2, 159]),
2501
+ e(W, [2, 160]),
2502
+ e(W, [2, 161]),
2503
+ e(W, [2, 162]),
2504
+ e(W, [2, 163]),
2505
+ e(W, [2, 164]),
2506
+ e(W, [2, 165]),
2507
+ e(W, [2, 166]),
2508
+ e(W, [2, 167]),
2509
+ e(o, [2, 14]),
2510
+ e(o, [2, 20]),
2511
+ e(o, [2, 21]),
2512
+ { 10: [1, 123] },
2513
+ e(o, [2, 23]),
2514
+ e(_e, [2, 31], {
2515
+ 19: 124,
2516
+ 11: L
2517
+ }),
2518
+ e(R, [2, 32]),
2519
+ {
2520
+ 45: 125,
2521
+ 46: 44,
2522
+ 47: y,
2523
+ 48: 45,
2524
+ 50: 46,
2525
+ 63: b,
2526
+ 92: E,
2527
+ 105: D,
2528
+ 108: O,
2529
+ 109: k,
2530
+ 112: A,
2531
+ 114: j,
2532
+ 116: 47,
2533
+ 117: M,
2534
+ 118: N,
2535
+ 119: P
2536
+ },
2537
+ e(R, [2, 52]),
2538
+ e(R, [2, 53]),
2539
+ e(R, [2, 54]),
2540
+ e(R, [2, 55]),
2541
+ e(ve, [2, 89], {
2542
+ 76: 126,
2543
+ 65: [1, 128],
2544
+ 77: [1, 127]
2545
+ }),
2546
+ {
2547
+ 79: 129,
2548
+ 82: 130,
2549
+ 83: ye,
2550
+ 84: be,
2551
+ 119: xe,
2552
+ 122: Se
2553
+ },
2554
+ {
2555
+ 78: [1, 135],
2556
+ 80: [1, 136]
2557
+ },
2558
+ e(Ce, [2, 96]),
2559
+ e(R, [2, 33]),
2560
+ e(R, [2, 34]),
2561
+ e(R, [2, 35]),
2562
+ e(R, [2, 36]),
2563
+ e(R, [2, 37]),
2564
+ {
2565
+ 11: we,
2566
+ 13: Te,
2567
+ 15: Ee,
2568
+ 28: De,
2569
+ 29: 137,
2570
+ 33: Oe,
2571
+ 35: ke,
2572
+ 36: Ae,
2573
+ 47: je,
2574
+ 63: Me,
2575
+ 78: Ne,
2576
+ 83: Pe,
2577
+ 84: Fe,
2578
+ 86: 150,
2579
+ 87: Ie,
2580
+ 88: Le,
2581
+ 89: Re,
2582
+ 90: ze,
2583
+ 91: Be,
2584
+ 92: Ve,
2585
+ 93: He,
2586
+ 94: 138,
2587
+ 108: Ue,
2588
+ 112: We,
2589
+ 114: Ge,
2590
+ 117: Ke,
2591
+ 118: qe,
2592
+ 119: Je
2593
+ },
2594
+ e(Ye, s, { 5: 165 }),
2595
+ e(Ye, s, { 5: 166 }),
2596
+ {
2597
+ 11: we,
2598
+ 13: Te,
2599
+ 15: Ee,
2600
+ 28: De,
2601
+ 29: 167,
2602
+ 33: Oe,
2603
+ 35: ke,
2604
+ 36: Ae,
2605
+ 47: je,
2606
+ 63: Me,
2607
+ 78: Ne,
2608
+ 83: Pe,
2609
+ 84: Fe,
2610
+ 86: 150,
2611
+ 87: Ie,
2612
+ 88: Le,
2613
+ 89: Re,
2614
+ 90: ze,
2615
+ 91: Be,
2616
+ 92: Ve,
2617
+ 93: He,
2618
+ 94: 138,
2619
+ 108: Ue,
2620
+ 112: We,
2621
+ 114: Ge,
2622
+ 117: Ke,
2623
+ 118: qe,
2624
+ 119: Je
2625
+ },
2626
+ e(R, [2, 49]),
2627
+ e(R, [2, 50]),
2628
+ e(re, [2, 61], { 47: Xe }),
2629
+ e(re, [2, 62], {
2630
+ 19: 169,
2631
+ 11: L,
2632
+ 43: Ze
2633
+ }),
2634
+ e(ge, [2, 57]),
2635
+ {
2636
+ 47: y,
2637
+ 50: 171,
2638
+ 63: b,
2639
+ 92: E,
2640
+ 105: D,
2641
+ 108: O,
2642
+ 109: k,
2643
+ 112: A,
2644
+ 114: j,
2645
+ 116: 47,
2646
+ 117: M,
2647
+ 118: N,
2648
+ 119: P
2649
+ },
2650
+ {
2651
+ 105: [1, 172],
2652
+ 106: 173,
2653
+ 108: [1, 174]
2654
+ },
2655
+ {
2656
+ 47: y,
2657
+ 50: 175,
2658
+ 63: b,
2659
+ 92: E,
2660
+ 105: D,
2661
+ 108: O,
2662
+ 109: k,
2663
+ 112: A,
2664
+ 114: j,
2665
+ 116: 47,
2666
+ 117: M,
2667
+ 118: N,
2668
+ 119: P
2669
+ },
2670
+ {
2671
+ 47: y,
2672
+ 50: 176,
2673
+ 63: b,
2674
+ 92: E,
2675
+ 105: D,
2676
+ 108: O,
2677
+ 109: k,
2678
+ 112: A,
2679
+ 114: j,
2680
+ 116: 47,
2681
+ 117: M,
2682
+ 118: N,
2683
+ 119: P
2684
+ },
2685
+ e(G, [2, 122], {
2686
+ 11: [1, 177],
2687
+ 99: [1, 178]
2688
+ }),
2689
+ { 83: [1, 179] },
2690
+ e(G, [2, 130], {
2691
+ 123: 181,
2692
+ 11: [1, 180],
2693
+ 15: ae,
2694
+ 47: oe,
2695
+ 63: se,
2696
+ 92: ce,
2697
+ 108: le,
2698
+ 109: ue,
2699
+ 112: de,
2700
+ 114: fe,
2701
+ 117: pe,
2702
+ 118: me,
2703
+ 119: he
2704
+ }),
2705
+ e(G, [2, 132], { 11: [1, 182] }),
2706
+ e(K, [2, 198]),
2707
+ e(K, [2, 185]),
2708
+ e(K, [2, 186]),
2709
+ e(K, [2, 187]),
2710
+ e(K, [2, 188]),
2711
+ e(K, [2, 189]),
2712
+ e(K, [2, 190]),
2713
+ e(K, [2, 191]),
2714
+ e(K, [2, 192]),
2715
+ e(K, [2, 193]),
2716
+ e(K, [2, 194]),
2717
+ e(K, [2, 195]),
2718
+ {
2719
+ 47: y,
2720
+ 50: 183,
2721
+ 63: b,
2722
+ 92: E,
2723
+ 105: D,
2724
+ 108: O,
2725
+ 109: k,
2726
+ 112: A,
2727
+ 114: j,
2728
+ 116: 47,
2729
+ 117: M,
2730
+ 118: N,
2731
+ 119: P
2732
+ },
2733
+ {
2734
+ 31: 184,
2735
+ 70: q,
2736
+ 83: J,
2737
+ 84: Y,
2738
+ 85: 185,
2739
+ 119: X,
2740
+ 120: Z,
2741
+ 121: Q
2742
+ },
2743
+ {
2744
+ 31: 192,
2745
+ 70: q,
2746
+ 83: J,
2747
+ 84: Y,
2748
+ 85: 185,
2749
+ 119: X,
2750
+ 120: Z,
2751
+ 121: Q
2752
+ },
2753
+ {
2754
+ 31: 194,
2755
+ 53: [1, 193],
2756
+ 70: q,
2757
+ 83: J,
2758
+ 84: Y,
2759
+ 85: 185,
2760
+ 119: X,
2761
+ 120: Z,
2762
+ 121: Q
2763
+ },
2764
+ {
2765
+ 31: 195,
2766
+ 70: q,
2767
+ 83: J,
2768
+ 84: Y,
2769
+ 85: 185,
2770
+ 119: X,
2771
+ 120: Z,
2772
+ 121: Q
2773
+ },
2774
+ {
2775
+ 31: 196,
2776
+ 70: q,
2777
+ 83: J,
2778
+ 84: Y,
2779
+ 85: 185,
2780
+ 119: X,
2781
+ 120: Z,
2782
+ 121: Q
2783
+ },
2784
+ {
2785
+ 31: 197,
2786
+ 70: q,
2787
+ 83: J,
2788
+ 84: Y,
2789
+ 85: 185,
2790
+ 119: X,
2791
+ 120: Z,
2792
+ 121: Q
2793
+ },
2794
+ { 112: [1, 198] },
2795
+ {
2796
+ 31: 199,
2797
+ 70: q,
2798
+ 83: J,
2799
+ 84: Y,
2800
+ 85: 185,
2801
+ 119: X,
2802
+ 120: Z,
2803
+ 121: Q
2804
+ },
2805
+ {
2806
+ 31: 200,
2807
+ 68: [1, 201],
2808
+ 70: q,
2809
+ 83: J,
2810
+ 84: Y,
2811
+ 85: 185,
2812
+ 119: X,
2813
+ 120: Z,
2814
+ 121: Q
2815
+ },
2816
+ {
2817
+ 31: 202,
2818
+ 70: q,
2819
+ 83: J,
2820
+ 84: Y,
2821
+ 85: 185,
2822
+ 119: X,
2823
+ 120: Z,
2824
+ 121: Q
2825
+ },
2826
+ {
2827
+ 31: 203,
2828
+ 70: q,
2829
+ 83: J,
2830
+ 84: Y,
2831
+ 85: 185,
2832
+ 119: X,
2833
+ 120: Z,
2834
+ 121: Q
2835
+ },
2836
+ {
2837
+ 31: 204,
2838
+ 70: q,
2839
+ 83: J,
2840
+ 84: Y,
2841
+ 85: 185,
2842
+ 119: X,
2843
+ 120: Z,
2844
+ 121: Q
2845
+ },
2846
+ e(W, [2, 197]),
2847
+ e(o, [2, 22]),
2848
+ e(_e, [2, 30]),
2849
+ e(re, [2, 59], {
2850
+ 34: 205,
2851
+ 19: 206,
2852
+ 11: L,
2853
+ 43: ie
2854
+ }),
2855
+ e(ve, [2, 86], { 11: [1, 207] }),
2856
+ { 11: [1, 208] },
2857
+ {
2858
+ 31: 209,
2859
+ 70: q,
2860
+ 83: J,
2861
+ 84: Y,
2862
+ 85: 185,
2863
+ 119: X,
2864
+ 120: Z,
2865
+ 121: Q
2866
+ },
2867
+ {
2868
+ 80: [1, 210],
2869
+ 82: 211,
2870
+ 119: xe,
2871
+ 122: Se
2872
+ },
2873
+ e(Qe, [2, 92]),
2874
+ e(Qe, [2, 94]),
2875
+ e(Qe, [2, 95]),
2876
+ e(Qe, [2, 183]),
2877
+ e(Qe, [2, 184]),
2878
+ {
2879
+ 79: 212,
2880
+ 82: 130,
2881
+ 83: ye,
2882
+ 84: be,
2883
+ 119: xe,
2884
+ 122: Se
2885
+ },
2886
+ e(Ce, [2, 97]),
2887
+ {
2888
+ 8: z,
2889
+ 9: B,
2890
+ 10: V,
2891
+ 11: we,
2892
+ 12: H,
2893
+ 13: Te,
2894
+ 15: Ee,
2895
+ 22: 214,
2896
+ 28: De,
2897
+ 30: [1, 213],
2898
+ 33: Oe,
2899
+ 34: 215,
2900
+ 35: ke,
2901
+ 36: Ae,
2902
+ 43: ie,
2903
+ 47: je,
2904
+ 63: Me,
2905
+ 78: Ne,
2906
+ 86: 150,
2907
+ 87: Ie,
2908
+ 88: Le,
2909
+ 89: Re,
2910
+ 90: ze,
2911
+ 91: Be,
2912
+ 92: Ve,
2913
+ 93: He,
2914
+ 94: 216,
2915
+ 108: Ue,
2916
+ 112: We,
2917
+ 114: Ge,
2918
+ 117: Ke,
2919
+ 118: qe,
2920
+ 119: Je
2921
+ },
2922
+ e($, [2, 116]),
2923
+ e($, [2, 118]),
2924
+ e($, [2, 119]),
2925
+ e($, [2, 172]),
2926
+ e($, [2, 173]),
2927
+ e($, [2, 174]),
2928
+ e($, [2, 175]),
2929
+ e($, [2, 176]),
2930
+ e($, [2, 177]),
2931
+ e($, [2, 178]),
2932
+ e($, [2, 179]),
2933
+ e($, [2, 180]),
2934
+ e($, [2, 181]),
2935
+ e($, [2, 182]),
2936
+ e($, [2, 103]),
2937
+ e($, [2, 104]),
2938
+ e($, [2, 105]),
2939
+ e($, [2, 106]),
2940
+ e($, [2, 107]),
2941
+ e($, [2, 108]),
2942
+ e($, [2, 109]),
2943
+ e($, [2, 110]),
2944
+ e($, [2, 111]),
2945
+ e($, [2, 112]),
2946
+ e($, [2, 113]),
2947
+ e($, [2, 114]),
2948
+ e($, [2, 115]),
2949
+ {
2950
+ 6: 13,
2951
+ 7: 14,
2952
+ 8: c,
2953
+ 9: l,
2954
+ 10: u,
2955
+ 11: d,
2956
+ 12: f,
2957
+ 21: 20,
2958
+ 23: 21,
2959
+ 24: 22,
2960
+ 25: 23,
2961
+ 26: 24,
2962
+ 27: 25,
2963
+ 28: p,
2964
+ 33: [1, 217],
2965
+ 35: m,
2966
+ 36: h,
2967
+ 37: 29,
2968
+ 38: g,
2969
+ 40: _,
2970
+ 42: v,
2971
+ 45: 33,
2972
+ 46: 44,
2973
+ 47: y,
2974
+ 48: 45,
2975
+ 50: 46,
2976
+ 63: b,
2977
+ 87: x,
2978
+ 88: S,
2979
+ 89: C,
2980
+ 90: w,
2981
+ 91: T,
2982
+ 92: E,
2983
+ 105: D,
2984
+ 108: O,
2985
+ 109: k,
2986
+ 112: A,
2987
+ 114: j,
2988
+ 116: 47,
2989
+ 117: M,
2990
+ 118: N,
2991
+ 119: P,
2992
+ 124: ee,
2993
+ 125: te,
2994
+ 126: F,
2995
+ 127: I,
2996
+ 128: ne
2997
+ },
2998
+ {
2999
+ 6: 13,
3000
+ 7: 14,
3001
+ 8: c,
3002
+ 9: l,
3003
+ 10: u,
3004
+ 11: d,
3005
+ 12: f,
3006
+ 21: 20,
3007
+ 23: 21,
3008
+ 24: 22,
3009
+ 25: 23,
3010
+ 26: 24,
3011
+ 27: 25,
3012
+ 28: p,
3013
+ 33: [1, 218],
3014
+ 35: m,
3015
+ 36: h,
3016
+ 37: 29,
3017
+ 38: g,
3018
+ 40: _,
3019
+ 42: v,
3020
+ 45: 33,
3021
+ 46: 44,
3022
+ 47: y,
3023
+ 48: 45,
3024
+ 50: 46,
3025
+ 63: b,
3026
+ 87: x,
3027
+ 88: S,
3028
+ 89: C,
3029
+ 90: w,
3030
+ 91: T,
3031
+ 92: E,
3032
+ 105: D,
3033
+ 108: O,
3034
+ 109: k,
3035
+ 112: A,
3036
+ 114: j,
3037
+ 116: 47,
3038
+ 117: M,
3039
+ 118: N,
3040
+ 119: P,
3041
+ 124: ee,
3042
+ 125: te,
3043
+ 126: F,
3044
+ 127: I,
3045
+ 128: ne
3046
+ },
3047
+ {
3048
+ 8: z,
3049
+ 9: B,
3050
+ 10: V,
3051
+ 11: we,
3052
+ 12: H,
3053
+ 13: Te,
3054
+ 15: Ee,
3055
+ 22: 220,
3056
+ 28: De,
3057
+ 30: [1, 219],
3058
+ 33: Oe,
3059
+ 34: 221,
3060
+ 35: ke,
3061
+ 36: Ae,
3062
+ 43: ie,
3063
+ 47: je,
3064
+ 63: Me,
3065
+ 78: Ne,
3066
+ 86: 150,
3067
+ 87: Ie,
3068
+ 88: Le,
3069
+ 89: Re,
3070
+ 90: ze,
3071
+ 91: Be,
3072
+ 92: Ve,
3073
+ 93: He,
3074
+ 94: 216,
3075
+ 108: Ue,
3076
+ 112: We,
3077
+ 114: Ge,
3078
+ 117: Ke,
3079
+ 118: qe,
3080
+ 119: Je
3081
+ },
3082
+ {
3083
+ 11: L,
3084
+ 19: 222
3085
+ },
3086
+ { 47: [1, 223] },
3087
+ e(ge, [2, 56]),
3088
+ {
3089
+ 11: [1, 224],
3090
+ 47: y,
3091
+ 63: b,
3092
+ 92: E,
3093
+ 105: D,
3094
+ 108: O,
3095
+ 109: k,
3096
+ 112: A,
3097
+ 114: j,
3098
+ 116: 122,
3099
+ 117: M,
3100
+ 118: N,
3101
+ 119: P
3102
+ },
3103
+ { 11: [1, 225] },
3104
+ {
3105
+ 11: [1, 226],
3106
+ 109: [1, 227]
3107
+ },
3108
+ e($e, [2, 143]),
3109
+ {
3110
+ 11: [1, 228],
3111
+ 47: y,
3112
+ 63: b,
3113
+ 92: E,
3114
+ 105: D,
3115
+ 108: O,
3116
+ 109: k,
3117
+ 112: A,
3118
+ 114: j,
3119
+ 116: 122,
3120
+ 117: M,
3121
+ 118: N,
3122
+ 119: P
3123
+ },
3124
+ {
3125
+ 11: [1, 229],
3126
+ 47: y,
3127
+ 63: b,
3128
+ 92: E,
3129
+ 105: D,
3130
+ 108: O,
3131
+ 109: k,
3132
+ 112: A,
3133
+ 114: j,
3134
+ 116: 122,
3135
+ 117: M,
3136
+ 118: N,
3137
+ 119: P
3138
+ },
3139
+ { 83: [1, 230] },
3140
+ e(G, [2, 124], { 11: [1, 231] }),
3141
+ e(G, [2, 126], { 11: [1, 232] }),
3142
+ { 83: [1, 233] },
3143
+ e(K, [2, 199]),
3144
+ {
3145
+ 83: [1, 234],
3146
+ 101: [1, 235]
3147
+ },
3148
+ e(ge, [2, 68], {
3149
+ 116: 122,
3150
+ 47: y,
3151
+ 63: b,
3152
+ 92: E,
3153
+ 105: D,
3154
+ 108: O,
3155
+ 109: k,
3156
+ 112: A,
3157
+ 114: j,
3158
+ 117: M,
3159
+ 118: N,
3160
+ 119: P
3161
+ }),
3162
+ {
3163
+ 32: [1, 236],
3164
+ 70: q,
3165
+ 85: 237,
3166
+ 119: X,
3167
+ 120: Z,
3168
+ 121: Q
3169
+ },
3170
+ e(et, [2, 99]),
3171
+ e(et, [2, 101]),
3172
+ e(et, [2, 102]),
3173
+ e(et, [2, 168]),
3174
+ e(et, [2, 169]),
3175
+ e(et, [2, 170]),
3176
+ e(et, [2, 171]),
3177
+ {
3178
+ 52: [1, 238],
3179
+ 70: q,
3180
+ 85: 237,
3181
+ 119: X,
3182
+ 120: Z,
3183
+ 121: Q
3184
+ },
3185
+ {
3186
+ 31: 239,
3187
+ 70: q,
3188
+ 83: J,
3189
+ 84: Y,
3190
+ 85: 185,
3191
+ 119: X,
3192
+ 120: Z,
3193
+ 121: Q
3194
+ },
3195
+ {
3196
+ 54: [1, 240],
3197
+ 70: q,
3198
+ 85: 237,
3199
+ 119: X,
3200
+ 120: Z,
3201
+ 121: Q
3202
+ },
3203
+ {
3204
+ 56: [1, 241],
3205
+ 70: q,
3206
+ 85: 237,
3207
+ 119: X,
3208
+ 120: Z,
3209
+ 121: Q
3210
+ },
3211
+ {
3212
+ 58: [1, 242],
3213
+ 70: q,
3214
+ 85: 237,
3215
+ 119: X,
3216
+ 120: Z,
3217
+ 121: Q
3218
+ },
3219
+ {
3220
+ 60: [1, 243],
3221
+ 70: q,
3222
+ 85: 237,
3223
+ 119: X,
3224
+ 120: Z,
3225
+ 121: Q
3226
+ },
3227
+ { 63: [1, 244] },
3228
+ {
3229
+ 67: [1, 245],
3230
+ 70: q,
3231
+ 85: 237,
3232
+ 119: X,
3233
+ 120: Z,
3234
+ 121: Q
3235
+ },
3236
+ {
3237
+ 69: [1, 246],
3238
+ 70: q,
3239
+ 85: 237,
3240
+ 119: X,
3241
+ 120: Z,
3242
+ 121: Q
3243
+ },
3244
+ {
3245
+ 31: 247,
3246
+ 70: q,
3247
+ 83: J,
3248
+ 84: Y,
3249
+ 85: 185,
3250
+ 119: X,
3251
+ 120: Z,
3252
+ 121: Q
3253
+ },
3254
+ {
3255
+ 32: [1, 248],
3256
+ 70: q,
3257
+ 85: 237,
3258
+ 119: X,
3259
+ 120: Z,
3260
+ 121: Q
3261
+ },
3262
+ {
3263
+ 70: q,
3264
+ 72: [1, 249],
3265
+ 74: [1, 250],
3266
+ 85: 237,
3267
+ 119: X,
3268
+ 120: Z,
3269
+ 121: Q
3270
+ },
3271
+ {
3272
+ 70: q,
3273
+ 72: [1, 252],
3274
+ 74: [1, 251],
3275
+ 85: 237,
3276
+ 119: X,
3277
+ 120: Z,
3278
+ 121: Q
3279
+ },
3280
+ e(re, [2, 58], {
3281
+ 19: 169,
3282
+ 11: L,
3283
+ 43: Ze
3284
+ }),
3285
+ e(re, [2, 60], { 47: Xe }),
3286
+ e(ve, [2, 88]),
3287
+ e(ve, [2, 87]),
3288
+ {
3289
+ 65: [1, 253],
3290
+ 70: q,
3291
+ 85: 237,
3292
+ 119: X,
3293
+ 120: Z,
3294
+ 121: Q
3295
+ },
3296
+ e(ve, [2, 90]),
3297
+ e(Qe, [2, 93]),
3298
+ {
3299
+ 80: [1, 254],
3300
+ 82: 211,
3301
+ 119: xe,
3302
+ 122: Se
3303
+ },
3304
+ {
3305
+ 31: 255,
3306
+ 70: q,
3307
+ 83: J,
3308
+ 84: Y,
3309
+ 85: 185,
3310
+ 119: X,
3311
+ 120: Z,
3312
+ 121: Q
3313
+ },
3314
+ e(Ye, s, { 5: 256 }),
3315
+ {
3316
+ 8: z,
3317
+ 9: B,
3318
+ 10: V,
3319
+ 12: H,
3320
+ 22: 257,
3321
+ 43: Ze
3322
+ },
3323
+ e($, [2, 117]),
3324
+ e(R, [2, 42]),
3325
+ e(R, [2, 43]),
3326
+ {
3327
+ 31: 258,
3328
+ 70: q,
3329
+ 83: J,
3330
+ 84: Y,
3331
+ 85: 185,
3332
+ 119: X,
3333
+ 120: Z,
3334
+ 121: Q
3335
+ },
3336
+ e(R, [2, 46]),
3337
+ {
3338
+ 8: z,
3339
+ 9: B,
3340
+ 10: V,
3341
+ 12: H,
3342
+ 22: 259,
3343
+ 43: Ze
3344
+ },
3345
+ {
3346
+ 46: 260,
3347
+ 47: y,
3348
+ 48: 45,
3349
+ 50: 46,
3350
+ 63: b,
3351
+ 92: E,
3352
+ 105: D,
3353
+ 108: O,
3354
+ 109: k,
3355
+ 112: A,
3356
+ 114: j,
3357
+ 116: 47,
3358
+ 117: M,
3359
+ 118: N,
3360
+ 119: P
3361
+ },
3362
+ {
3363
+ 11: L,
3364
+ 19: 261
3365
+ },
3366
+ {
3367
+ 11: tt,
3368
+ 63: nt,
3369
+ 87: rt,
3370
+ 95: 262,
3371
+ 108: it,
3372
+ 110: 263,
3373
+ 111: 264,
3374
+ 112: at,
3375
+ 113: ot,
3376
+ 114: st,
3377
+ 115: ct
3378
+ },
3379
+ {
3380
+ 11: tt,
3381
+ 63: nt,
3382
+ 87: rt,
3383
+ 95: 273,
3384
+ 107: [1, 274],
3385
+ 108: it,
3386
+ 110: 263,
3387
+ 111: 264,
3388
+ 112: at,
3389
+ 113: ot,
3390
+ 114: st,
3391
+ 115: ct
3392
+ },
3393
+ {
3394
+ 11: tt,
3395
+ 63: nt,
3396
+ 87: rt,
3397
+ 95: 275,
3398
+ 107: [1, 276],
3399
+ 108: it,
3400
+ 110: 263,
3401
+ 111: 264,
3402
+ 112: at,
3403
+ 113: ot,
3404
+ 114: st,
3405
+ 115: ct
3406
+ },
3407
+ { 108: [1, 277] },
3408
+ {
3409
+ 11: tt,
3410
+ 63: nt,
3411
+ 87: rt,
3412
+ 95: 278,
3413
+ 108: it,
3414
+ 110: 263,
3415
+ 111: 264,
3416
+ 112: at,
3417
+ 113: ot,
3418
+ 114: st,
3419
+ 115: ct
3420
+ },
3421
+ {
3422
+ 47: y,
3423
+ 50: 279,
3424
+ 63: b,
3425
+ 92: E,
3426
+ 105: D,
3427
+ 108: O,
3428
+ 109: k,
3429
+ 112: A,
3430
+ 114: j,
3431
+ 116: 47,
3432
+ 117: M,
3433
+ 118: N,
3434
+ 119: P
3435
+ },
3436
+ e(G, [2, 123]),
3437
+ { 83: [1, 280] },
3438
+ {
3439
+ 83: [1, 281],
3440
+ 101: [1, 282]
3441
+ },
3442
+ e(G, [2, 131]),
3443
+ e(G, [2, 133], { 11: [1, 283] }),
3444
+ e(G, [2, 134]),
3445
+ e(U, [2, 69]),
3446
+ e(et, [2, 100]),
3447
+ e(U, [2, 70]),
3448
+ {
3449
+ 54: [1, 284],
3450
+ 70: q,
3451
+ 85: 237,
3452
+ 119: X,
3453
+ 120: Z,
3454
+ 121: Q
3455
+ },
3456
+ e(U, [2, 77]),
3457
+ e(U, [2, 72]),
3458
+ e(U, [2, 73]),
3459
+ e(U, [2, 74]),
3460
+ { 112: [1, 285] },
3461
+ e(U, [2, 76]),
3462
+ e(U, [2, 78]),
3463
+ {
3464
+ 69: [1, 286],
3465
+ 70: q,
3466
+ 85: 237,
3467
+ 119: X,
3468
+ 120: Z,
3469
+ 121: Q
3470
+ },
3471
+ e(U, [2, 80]),
3472
+ e(U, [2, 81]),
3473
+ e(U, [2, 83]),
3474
+ e(U, [2, 82]),
3475
+ e(U, [2, 84]),
3476
+ e([
3477
+ 11,
3478
+ 47,
3479
+ 63,
3480
+ 92,
3481
+ 105,
3482
+ 108,
3483
+ 109,
3484
+ 112,
3485
+ 114,
3486
+ 117,
3487
+ 118,
3488
+ 119
3489
+ ], [2, 98]),
3490
+ e(ve, [2, 91]),
3491
+ {
3492
+ 32: [1, 287],
3493
+ 70: q,
3494
+ 85: 237,
3495
+ 119: X,
3496
+ 120: Z,
3497
+ 121: Q
3498
+ },
3499
+ {
3500
+ 6: 13,
3501
+ 7: 14,
3502
+ 8: c,
3503
+ 9: l,
3504
+ 10: u,
3505
+ 11: d,
3506
+ 12: f,
3507
+ 21: 20,
3508
+ 23: 21,
3509
+ 24: 22,
3510
+ 25: 23,
3511
+ 26: 24,
3512
+ 27: 25,
3513
+ 28: p,
3514
+ 33: [1, 288],
3515
+ 35: m,
3516
+ 36: h,
3517
+ 37: 29,
3518
+ 38: g,
3519
+ 40: _,
3520
+ 42: v,
3521
+ 45: 33,
3522
+ 46: 44,
3523
+ 47: y,
3524
+ 48: 45,
3525
+ 50: 46,
3526
+ 63: b,
3527
+ 87: x,
3528
+ 88: S,
3529
+ 89: C,
3530
+ 90: w,
3531
+ 91: T,
3532
+ 92: E,
3533
+ 105: D,
3534
+ 108: O,
3535
+ 109: k,
3536
+ 112: A,
3537
+ 114: j,
3538
+ 116: 47,
3539
+ 117: M,
3540
+ 118: N,
3541
+ 119: P,
3542
+ 124: ee,
3543
+ 125: te,
3544
+ 126: F,
3545
+ 127: I,
3546
+ 128: ne
3547
+ },
3548
+ e(Ye, s, { 5: 289 }),
3549
+ {
3550
+ 32: [1, 290],
3551
+ 70: q,
3552
+ 85: 237,
3553
+ 119: X,
3554
+ 120: Z,
3555
+ 121: Q
3556
+ },
3557
+ e(R, [2, 47]),
3558
+ e(ge, [2, 66]),
3559
+ {
3560
+ 46: 291,
3561
+ 47: y,
3562
+ 48: 45,
3563
+ 50: 46,
3564
+ 63: b,
3565
+ 92: E,
3566
+ 105: D,
3567
+ 108: O,
3568
+ 109: k,
3569
+ 112: A,
3570
+ 114: j,
3571
+ 116: 47,
3572
+ 117: M,
3573
+ 118: N,
3574
+ 119: P
3575
+ },
3576
+ e(G, [2, 136], { 109: lt }),
3577
+ e(ut, [2, 145], {
3578
+ 111: 293,
3579
+ 11: tt,
3580
+ 63: nt,
3581
+ 87: rt,
3582
+ 108: it,
3583
+ 112: at,
3584
+ 113: ot,
3585
+ 114: st,
3586
+ 115: ct
3587
+ }),
3588
+ e(dt, [2, 147]),
3589
+ e(dt, [2, 149]),
3590
+ e(dt, [2, 150]),
3591
+ e(dt, [2, 151]),
3592
+ e(dt, [2, 152]),
3593
+ e(dt, [2, 153]),
3594
+ e(dt, [2, 154]),
3595
+ e(dt, [2, 155]),
3596
+ e(dt, [2, 156]),
3597
+ e(G, [2, 137], { 109: lt }),
3598
+ { 11: [1, 294] },
3599
+ e(G, [2, 138], { 109: lt }),
3600
+ { 11: [1, 295] },
3601
+ e($e, [2, 144]),
3602
+ e(G, [2, 120], { 109: lt }),
3603
+ e(G, [2, 121], {
3604
+ 116: 122,
3605
+ 47: y,
3606
+ 63: b,
3607
+ 92: E,
3608
+ 105: D,
3609
+ 108: O,
3610
+ 109: k,
3611
+ 112: A,
3612
+ 114: j,
3613
+ 117: M,
3614
+ 118: N,
3615
+ 119: P
3616
+ }),
3617
+ e(G, [2, 125]),
3618
+ e(G, [2, 127], { 11: [1, 296] }),
3619
+ e(G, [2, 128]),
3620
+ { 101: [1, 297] },
3621
+ { 54: [1, 298] },
3622
+ { 65: [1, 299] },
3623
+ { 69: [1, 300] },
3624
+ {
3625
+ 8: z,
3626
+ 9: B,
3627
+ 10: V,
3628
+ 12: H,
3629
+ 22: 301,
3630
+ 34: 302,
3631
+ 43: ie
3632
+ },
3633
+ e(R, [2, 40]),
3634
+ {
3635
+ 6: 13,
3636
+ 7: 14,
3637
+ 8: c,
3638
+ 9: l,
3639
+ 10: u,
3640
+ 11: d,
3641
+ 12: f,
3642
+ 21: 20,
3643
+ 23: 21,
3644
+ 24: 22,
3645
+ 25: 23,
3646
+ 26: 24,
3647
+ 27: 25,
3648
+ 28: p,
3649
+ 33: [1, 303],
3650
+ 35: m,
3651
+ 36: h,
3652
+ 37: 29,
3653
+ 38: g,
3654
+ 40: _,
3655
+ 42: v,
3656
+ 45: 33,
3657
+ 46: 44,
3658
+ 47: y,
3659
+ 48: 45,
3660
+ 50: 46,
3661
+ 63: b,
3662
+ 87: x,
3663
+ 88: S,
3664
+ 89: C,
3665
+ 90: w,
3666
+ 91: T,
3667
+ 92: E,
3668
+ 105: D,
3669
+ 108: O,
3670
+ 109: k,
3671
+ 112: A,
3672
+ 114: j,
3673
+ 116: 47,
3674
+ 117: M,
3675
+ 118: N,
3676
+ 119: P,
3677
+ 124: ee,
3678
+ 125: te,
3679
+ 126: F,
3680
+ 127: I,
3681
+ 128: ne
3682
+ },
3683
+ {
3684
+ 8: z,
3685
+ 9: B,
3686
+ 10: V,
3687
+ 12: H,
3688
+ 22: 304,
3689
+ 34: 305,
3690
+ 43: ie
3691
+ },
3692
+ e(ge, [2, 65]),
3693
+ {
3694
+ 11: tt,
3695
+ 63: nt,
3696
+ 87: rt,
3697
+ 108: it,
3698
+ 110: 306,
3699
+ 111: 264,
3700
+ 112: at,
3701
+ 113: ot,
3702
+ 114: st,
3703
+ 115: ct
3704
+ },
3705
+ e(dt, [2, 148]),
3706
+ {
3707
+ 15: ae,
3708
+ 47: oe,
3709
+ 63: se,
3710
+ 92: ce,
3711
+ 104: 307,
3712
+ 108: le,
3713
+ 109: ue,
3714
+ 112: de,
3715
+ 114: fe,
3716
+ 117: pe,
3717
+ 118: me,
3718
+ 119: he,
3719
+ 123: 97
3720
+ },
3721
+ {
3722
+ 15: ae,
3723
+ 47: oe,
3724
+ 63: se,
3725
+ 92: ce,
3726
+ 104: 308,
3727
+ 108: le,
3728
+ 109: ue,
3729
+ 112: de,
3730
+ 114: fe,
3731
+ 117: pe,
3732
+ 118: me,
3733
+ 119: he,
3734
+ 123: 97
3735
+ },
3736
+ { 101: [1, 309] },
3737
+ e(G, [2, 135]),
3738
+ e(U, [2, 71]),
3739
+ {
3740
+ 31: 310,
3741
+ 70: q,
3742
+ 83: J,
3743
+ 84: Y,
3744
+ 85: 185,
3745
+ 119: X,
3746
+ 120: Z,
3747
+ 121: Q
3748
+ },
3749
+ e(U, [2, 79]),
3750
+ e(Ye, s, { 5: 311 }),
3751
+ {
3752
+ 8: z,
3753
+ 9: B,
3754
+ 10: V,
3755
+ 12: H,
3756
+ 22: 312,
3757
+ 43: Ze
3758
+ },
3759
+ e(R, [2, 41]),
3760
+ e(R, [2, 44]),
3761
+ {
3762
+ 8: z,
3763
+ 9: B,
3764
+ 10: V,
3765
+ 12: H,
3766
+ 22: 313,
3767
+ 43: Ze
3768
+ },
3769
+ e(ut, [2, 146], {
3770
+ 111: 293,
3771
+ 11: tt,
3772
+ 63: nt,
3773
+ 87: rt,
3774
+ 108: it,
3775
+ 112: at,
3776
+ 113: ot,
3777
+ 114: st,
3778
+ 115: ct
3779
+ }),
3780
+ e(G, [2, 141], {
3781
+ 123: 181,
3782
+ 11: [1, 314],
3783
+ 15: ae,
3784
+ 47: oe,
3785
+ 63: se,
3786
+ 92: ce,
3787
+ 108: le,
3788
+ 109: ue,
3789
+ 112: de,
3790
+ 114: fe,
3791
+ 117: pe,
3792
+ 118: me,
3793
+ 119: he
3794
+ }),
3795
+ e(G, [2, 142], {
3796
+ 123: 181,
3797
+ 11: [1, 315],
3798
+ 15: ae,
3799
+ 47: oe,
3800
+ 63: se,
3801
+ 92: ce,
3802
+ 108: le,
3803
+ 109: ue,
3804
+ 112: de,
3805
+ 114: fe,
3806
+ 117: pe,
3807
+ 118: me,
3808
+ 119: he
3809
+ }),
3810
+ e(G, [2, 129]),
3811
+ {
3812
+ 32: [1, 316],
3813
+ 70: q,
3814
+ 85: 237,
3815
+ 119: X,
3816
+ 120: Z,
3817
+ 121: Q
3818
+ },
3819
+ {
3820
+ 6: 13,
3821
+ 7: 14,
3822
+ 8: c,
3823
+ 9: l,
3824
+ 10: u,
3825
+ 11: d,
3826
+ 12: f,
3827
+ 21: 20,
3828
+ 23: 21,
3829
+ 24: 22,
3830
+ 25: 23,
3831
+ 26: 24,
3832
+ 27: 25,
3833
+ 28: p,
3834
+ 33: [1, 317],
3835
+ 35: m,
3836
+ 36: h,
3837
+ 37: 29,
3838
+ 38: g,
3839
+ 40: _,
3840
+ 42: v,
3841
+ 45: 33,
3842
+ 46: 44,
3843
+ 47: y,
3844
+ 48: 45,
3845
+ 50: 46,
3846
+ 63: b,
3847
+ 87: x,
3848
+ 88: S,
3849
+ 89: C,
3850
+ 90: w,
3851
+ 91: T,
3852
+ 92: E,
3853
+ 105: D,
3854
+ 108: O,
3855
+ 109: k,
3856
+ 112: A,
3857
+ 114: j,
3858
+ 116: 47,
3859
+ 117: M,
3860
+ 118: N,
3861
+ 119: P,
3862
+ 124: ee,
3863
+ 125: te,
3864
+ 126: F,
3865
+ 127: I,
3866
+ 128: ne
3867
+ },
3868
+ e(Ye, s, { 5: 318 }),
3869
+ e(R, [2, 45]),
3870
+ {
3871
+ 11: tt,
3872
+ 63: nt,
3873
+ 87: rt,
3874
+ 95: 319,
3875
+ 108: it,
3876
+ 110: 263,
3877
+ 111: 264,
3878
+ 112: at,
3879
+ 113: ot,
3880
+ 114: st,
3881
+ 115: ct
3882
+ },
3883
+ {
3884
+ 11: tt,
3885
+ 63: nt,
3886
+ 87: rt,
3887
+ 95: 320,
3888
+ 108: it,
3889
+ 110: 263,
3890
+ 111: 264,
3891
+ 112: at,
3892
+ 113: ot,
3893
+ 114: st,
3894
+ 115: ct
3895
+ },
3896
+ e(U, [2, 75]),
3897
+ e(R, [2, 38]),
3898
+ {
3899
+ 6: 13,
3900
+ 7: 14,
3901
+ 8: c,
3902
+ 9: l,
3903
+ 10: u,
3904
+ 11: d,
3905
+ 12: f,
3906
+ 21: 20,
3907
+ 23: 21,
3908
+ 24: 22,
3909
+ 25: 23,
3910
+ 26: 24,
3911
+ 27: 25,
3912
+ 28: p,
3913
+ 33: [1, 321],
3914
+ 35: m,
3915
+ 36: h,
3916
+ 37: 29,
3917
+ 38: g,
3918
+ 40: _,
3919
+ 42: v,
3920
+ 45: 33,
3921
+ 46: 44,
3922
+ 47: y,
3923
+ 48: 45,
3924
+ 50: 46,
3925
+ 63: b,
3926
+ 87: x,
3927
+ 88: S,
3928
+ 89: C,
3929
+ 90: w,
3930
+ 91: T,
3931
+ 92: E,
3932
+ 105: D,
3933
+ 108: O,
3934
+ 109: k,
3935
+ 112: A,
3936
+ 114: j,
3937
+ 116: 47,
3938
+ 117: M,
3939
+ 118: N,
3940
+ 119: P,
3941
+ 124: ee,
3942
+ 125: te,
3943
+ 126: F,
3944
+ 127: I,
3945
+ 128: ne
3946
+ },
3947
+ e(G, [2, 139], { 109: lt }),
3948
+ e(G, [2, 140], { 109: lt }),
3949
+ e(R, [2, 39])
3950
+ ],
3951
+ defaultActions: {},
3952
+ parseError: /* @__PURE__ */ i(function(e, t) {
3953
+ if (t.recoverable) this.trace(e);
3954
+ else {
3955
+ var n = Error(e);
3956
+ throw n.hash = t, n;
3957
+ }
3958
+ }, "parseError"),
3959
+ parse: /* @__PURE__ */ i(function(e) {
3960
+ var t = this, n = [0], r = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
3961
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
3962
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
3963
+ var v = h.yylloc;
3964
+ o.push(v);
3965
+ var y = h.options && h.options.ranges;
3966
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
3967
+ function b(e) {
3968
+ n.length -= 2 * e, a.length -= e, o.length -= e;
3969
+ }
3970
+ i(b, "popStack");
3971
+ function x() {
3972
+ var e = r.pop() || h.lex() || p;
3973
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
3974
+ }
3975
+ i(x, "lex");
3976
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
3977
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
3978
+ var M = "";
3979
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
3980
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
3981
+ text: h.match,
3982
+ token: this.terminals_[S] || S,
3983
+ line: h.yylineno,
3984
+ loc: v,
3985
+ expected: j
3986
+ });
3987
+ }
3988
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
3989
+ switch (T[0]) {
3990
+ case 1:
3991
+ n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
3992
+ break;
3993
+ case 2:
3994
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
3995
+ first_line: o[o.length - (k || 1)].first_line,
3996
+ last_line: o[o.length - 1].last_line,
3997
+ first_column: o[o.length - (k || 1)].first_column,
3998
+ last_column: o[o.length - 1].last_column
3999
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
4000
+ c,
4001
+ u,
4002
+ l,
4003
+ g.yy,
4004
+ T[1],
4005
+ a,
4006
+ o
4007
+ ].concat(m)), E !== void 0) return E;
4008
+ k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
4009
+ break;
4010
+ case 3: return !0;
4011
+ }
4012
+ }
4013
+ return !0;
4014
+ }, "parse")
4015
+ };
4016
+ ft.lexer = /* @__PURE__ */ (function() {
4017
+ return {
4018
+ EOF: 1,
4019
+ parseError: /* @__PURE__ */ i(function(e, t) {
4020
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
4021
+ else throw Error(e);
4022
+ }, "parseError"),
4023
+ setInput: /* @__PURE__ */ i(function(e, t) {
4024
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
4025
+ first_line: 1,
4026
+ first_column: 0,
4027
+ last_line: 1,
4028
+ last_column: 0
4029
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
4030
+ }, "setInput"),
4031
+ input: /* @__PURE__ */ i(function() {
4032
+ var e = this._input[0];
4033
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
4034
+ }, "input"),
4035
+ unput: /* @__PURE__ */ i(function(e) {
4036
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
4037
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
4038
+ var r = this.match.split(/(?:\r\n?|\n)/g);
4039
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
4040
+ var i = this.yylloc.range;
4041
+ return this.yylloc = {
4042
+ first_line: this.yylloc.first_line,
4043
+ last_line: this.yylineno + 1,
4044
+ first_column: this.yylloc.first_column,
4045
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
4046
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
4047
+ }, "unput"),
4048
+ more: /* @__PURE__ */ i(function() {
4049
+ return this._more = !0, this;
4050
+ }, "more"),
4051
+ reject: /* @__PURE__ */ i(function() {
4052
+ if (this.options.backtrack_lexer) this._backtrack = !0;
4053
+ else 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(), {
4054
+ text: "",
4055
+ token: null,
4056
+ line: this.yylineno
4057
+ });
4058
+ return this;
4059
+ }, "reject"),
4060
+ less: /* @__PURE__ */ i(function(e) {
4061
+ this.unput(this.match.slice(e));
4062
+ }, "less"),
4063
+ pastInput: /* @__PURE__ */ i(function() {
4064
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
4065
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
4066
+ }, "pastInput"),
4067
+ upcomingInput: /* @__PURE__ */ i(function() {
4068
+ var e = this.match;
4069
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
4070
+ }, "upcomingInput"),
4071
+ showPosition: /* @__PURE__ */ i(function() {
4072
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
4073
+ return e + this.upcomingInput() + "\n" + t + "^";
4074
+ }, "showPosition"),
4075
+ test_match: /* @__PURE__ */ i(function(e, t) {
4076
+ var n, r, i;
4077
+ if (this.options.backtrack_lexer && (i = {
4078
+ yylineno: this.yylineno,
4079
+ yylloc: {
4080
+ first_line: this.yylloc.first_line,
4081
+ last_line: this.last_line,
4082
+ first_column: this.yylloc.first_column,
4083
+ last_column: this.yylloc.last_column
4084
+ },
4085
+ yytext: this.yytext,
4086
+ match: this.match,
4087
+ matches: this.matches,
4088
+ matched: this.matched,
4089
+ yyleng: this.yyleng,
4090
+ offset: this.offset,
4091
+ _more: this._more,
4092
+ _input: this._input,
4093
+ yy: this.yy,
4094
+ conditionStack: this.conditionStack.slice(0),
4095
+ done: this.done
4096
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
4097
+ first_line: this.yylloc.last_line,
4098
+ last_line: this.yylineno + 1,
4099
+ first_column: this.yylloc.last_column,
4100
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
4101
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
4102
+ if (this._backtrack) {
4103
+ for (var a in i) this[a] = i[a];
4104
+ return !1;
4105
+ }
4106
+ return !1;
4107
+ }, "test_match"),
4108
+ next: /* @__PURE__ */ i(function() {
4109
+ if (this.done) return this.EOF;
4110
+ this._input || (this.done = !0);
4111
+ var e, t, n, r;
4112
+ this._more || (this.yytext = "", this.match = "");
4113
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
4114
+ if (t = n, r = a, this.options.backtrack_lexer) {
4115
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
4116
+ if (this._backtrack) {
4117
+ t = !1;
4118
+ continue;
4119
+ } else return !1;
4120
+ } else if (!this.options.flex) break;
4121
+ }
4122
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
4123
+ text: "",
4124
+ token: null,
4125
+ line: this.yylineno
4126
+ });
4127
+ }, "next"),
4128
+ lex: /* @__PURE__ */ i(function() {
4129
+ return this.next() || this.lex();
4130
+ }, "lex"),
4131
+ begin: /* @__PURE__ */ i(function(e) {
4132
+ this.conditionStack.push(e);
4133
+ }, "begin"),
4134
+ popState: /* @__PURE__ */ i(function() {
4135
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
4136
+ }, "popState"),
4137
+ _currentRules: /* @__PURE__ */ i(function() {
4138
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
4139
+ }, "_currentRules"),
4140
+ topState: /* @__PURE__ */ i(function(e) {
4141
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
4142
+ }, "topState"),
4143
+ pushState: /* @__PURE__ */ i(function(e) {
4144
+ this.begin(e);
4145
+ }, "pushState"),
4146
+ stateStackSize: /* @__PURE__ */ i(function() {
4147
+ return this.conditionStack.length;
4148
+ }, "stateStackSize"),
4149
+ options: {},
4150
+ performAction: /* @__PURE__ */ i(function(e, t, n, r) {
4151
+ switch (n) {
4152
+ case 0: return this.begin("acc_title"), 38;
4153
+ case 1: return this.popState(), "acc_title_value";
4154
+ case 2: return this.begin("acc_descr"), 40;
4155
+ case 3: return this.popState(), "acc_descr_value";
4156
+ case 4:
4157
+ this.begin("acc_descr_multiline");
4158
+ break;
4159
+ case 5:
4160
+ this.popState();
4161
+ break;
4162
+ case 6: return "acc_descr_multiline_value";
4163
+ case 7: return this.pushState("shapeData"), t.yytext = "", 43;
4164
+ case 8: return this.pushState("shapeDataStr"), 43;
4165
+ case 9: return this.popState(), 43;
4166
+ case 10: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 43;
4167
+ case 11: return 43;
4168
+ case 12:
4169
+ this.popState();
4170
+ break;
4171
+ case 13:
4172
+ this.begin("callbackname");
4173
+ break;
4174
+ case 14:
4175
+ this.popState();
4176
+ break;
4177
+ case 15:
4178
+ this.popState(), this.begin("callbackargs");
4179
+ break;
4180
+ case 16: return 98;
4181
+ case 17:
4182
+ this.popState();
4183
+ break;
4184
+ case 18: return 99;
4185
+ case 19: return "MD_STR";
4186
+ case 20:
4187
+ this.popState();
4188
+ break;
4189
+ case 21:
4190
+ this.begin("md_string");
4191
+ break;
4192
+ case 22: return "STR";
4193
+ case 23:
4194
+ this.popState();
4195
+ break;
4196
+ case 24:
4197
+ this.pushState("string");
4198
+ break;
4199
+ case 25: return 87;
4200
+ case 26: return 105;
4201
+ case 27: return 88;
4202
+ case 28: return 107;
4203
+ case 29: return 89;
4204
+ case 30: return 90;
4205
+ case 31: return 100;
4206
+ case 32:
4207
+ this.begin("click");
4208
+ break;
4209
+ case 33:
4210
+ this.popState();
4211
+ break;
4212
+ case 34: return 91;
4213
+ case 35: return e.lex.firstGraph() && this.begin("dir"), 13;
4214
+ case 36: return 28;
4215
+ case 37: return 36;
4216
+ case 38: return 35;
4217
+ case 39: return 33;
4218
+ case 40: return 101;
4219
+ case 41: return 101;
4220
+ case 42: return 101;
4221
+ case 43: return 101;
4222
+ case 44: return this.popState(), 14;
4223
+ case 45: return this.popState(), 15;
4224
+ case 46: return this.popState(), 15;
4225
+ case 47: return this.popState(), 15;
4226
+ case 48: return this.popState(), 15;
4227
+ case 49: return this.popState(), 15;
4228
+ case 50: return this.popState(), 15;
4229
+ case 51: return this.popState(), 15;
4230
+ case 52: return this.popState(), 15;
4231
+ case 53: return this.popState(), 15;
4232
+ case 54: return this.popState(), 15;
4233
+ case 55: return 124;
4234
+ case 56: return 125;
4235
+ case 57: return 126;
4236
+ case 58: return 127;
4237
+ case 59: return 128;
4238
+ case 60: return 81;
4239
+ case 61: return 108;
4240
+ case 62: return 114;
4241
+ case 63: return 49;
4242
+ case 64: return 63;
4243
+ case 65: return 47;
4244
+ case 66: return 9;
4245
+ case 67: return 109;
4246
+ case 68: return 118;
4247
+ case 69: return this.popState(), 80;
4248
+ case 70: return this.pushState("edgeText"), 78;
4249
+ case 71: return 122;
4250
+ case 72: return 80;
4251
+ case 73: break;
4252
+ case 74: return this.popState(), 56;
4253
+ case 75: return "TEXT";
4254
+ case 76: return this.pushState("ellipseText"), 55;
4255
+ case 77: return this.popState(), 58;
4256
+ case 78: return this.pushState("text"), 57;
4257
+ case 79: return this.popState(), 60;
4258
+ case 80: return this.pushState("text"), 59;
4259
+ case 81: return 61;
4260
+ case 82: return this.pushState("text"), 70;
4261
+ case 83: return this.popState(), 67;
4262
+ case 84: return this.pushState("text"), 66;
4263
+ case 85: return this.popState(), 52;
4264
+ case 86: return this.pushState("text"), 51;
4265
+ case 87: break;
4266
+ case 88: return this.popState(), 72;
4267
+ case 89: return this.popState(), 74;
4268
+ case 90: return 120;
4269
+ case 91: return this.pushState("trapText"), 71;
4270
+ case 92: return this.pushState("trapText"), 73;
4271
+ case 93: return 121;
4272
+ case 94: return 70;
4273
+ case 95: return 93;
4274
+ case 96: return "SEP";
4275
+ case 97: return 92;
4276
+ case 98: return 118;
4277
+ case 99: return 114;
4278
+ case 100: return 47;
4279
+ case 101: return 8;
4280
+ case 102: return 112;
4281
+ case 103: return 117;
4282
+ case 104: return 119;
4283
+ case 105: return this.popState(), 65;
4284
+ case 106: return this.pushState("text"), 65;
4285
+ case 107: return this.popState(), 54;
4286
+ case 108: return this.pushState("text"), 53;
4287
+ case 109: return this.popState(), 32;
4288
+ case 110: return this.pushState("text"), 30;
4289
+ case 111: return this.popState(), 69;
4290
+ case 112: return this.pushState("text"), 68;
4291
+ case 113: break;
4292
+ case 114: return "TEXT";
4293
+ case 115: return "QUOTE";
4294
+ case 116: return 10;
4295
+ case 117: return 11;
4296
+ case 118: return 12;
4297
+ }
4298
+ }, "anonymous"),
4299
+ rules: [
4300
+ /^(?:accTitle\s*:\s*)/,
4301
+ /^(?:(?!\n||)*[^\n]*)/,
4302
+ /^(?:accDescr\s*:\s*)/,
4303
+ /^(?:(?!\n||)*[^\n]*)/,
4304
+ /^(?:accDescr\s*\{\s*)/,
4305
+ /^(?:[\}])/,
4306
+ /^(?:[^\}]*)/,
4307
+ /^(?:@\{)/,
4308
+ /^(?:["])/,
4309
+ /^(?:["])/,
4310
+ /^(?:[^\"]+)/,
4311
+ /^(?:[^}^"]+)/,
4312
+ /^(?:\})/,
4313
+ /^(?:call[\s]+)/,
4314
+ /^(?:\([\s]*\))/,
4315
+ /^(?:\()/,
4316
+ /^(?:[^(]*)/,
4317
+ /^(?:\))/,
4318
+ /^(?:[^)]*)/,
4319
+ /^(?:[^`"]+)/,
4320
+ /^(?:[`]["])/,
4321
+ /^(?:["][`])/,
4322
+ /^(?:[^"]+)/,
4323
+ /^(?:["])/,
4324
+ /^(?:["])/,
4325
+ /^(?:style\b)/,
4326
+ /^(?:default\b)/,
4327
+ /^(?:linkStyle\b)/,
4328
+ /^(?:interpolate\b)/,
4329
+ /^(?:classDef\b)/,
4330
+ /^(?:class\b)/,
4331
+ /^(?:href[\s])/,
4332
+ /^(?:click[\s]+)/,
4333
+ /^(?:[\s\n])/,
4334
+ /^(?:[^\s\n]*)/,
4335
+ /^(?:agentflow-beta\b)/,
4336
+ /^(?:flow\b)/,
4337
+ /^(?:connector\b)/,
4338
+ /^(?:global\b[ \t]*)/,
4339
+ /^(?:end\b[ \t]*)/,
4340
+ /^(?:_self\b)/,
4341
+ /^(?:_blank\b)/,
4342
+ /^(?:_parent\b)/,
4343
+ /^(?:_top\b)/,
4344
+ /^(?:(\r?\n)*\s*\n)/,
4345
+ /^(?:\s*LR\b)/,
4346
+ /^(?:\s*RL\b)/,
4347
+ /^(?:\s*TB\b)/,
4348
+ /^(?:\s*BT\b)/,
4349
+ /^(?:\s*TD\b)/,
4350
+ /^(?:\s*BR\b)/,
4351
+ /^(?:\s*<)/,
4352
+ /^(?:\s*>)/,
4353
+ /^(?:\s*\^)/,
4354
+ /^(?:\s*v\b)/,
4355
+ /^(?:.*direction\s+TB[^\n]*)/,
4356
+ /^(?:.*direction\s+BT[^\n]*)/,
4357
+ /^(?:.*direction\s+RL[^\n]*)/,
4358
+ /^(?:.*direction\s+LR[^\n]*)/,
4359
+ /^(?:.*direction\s+TD[^\n]*)/,
4360
+ /^(?:[^\s\"]+@(?=[^\{\"]))/,
4361
+ /^(?:[0-9]+)/,
4362
+ /^(?:#)/,
4363
+ /^(?::::)/,
4364
+ /^(?::)/,
4365
+ /^(?:&)/,
4366
+ /^(?:;)/,
4367
+ /^(?:,)/,
4368
+ /^(?:\*)/,
4369
+ /^(?:\s*--+[x>]\s*)/,
4370
+ /^(?:\s*--\s*)/,
4371
+ /^(?:[^-]|-(?!-)+)/,
4372
+ /^(?:\s*-\.+-\s*)/,
4373
+ /^(?:%%(?!\{)[^\n]*)/,
4374
+ /^(?:[-/\)][\)])/,
4375
+ /^(?:[^\(\)\[\]\{\}]|!\)+)/,
4376
+ /^(?:\(-)/,
4377
+ /^(?:\]\))/,
4378
+ /^(?:\(\[)/,
4379
+ /^(?:\]\])/,
4380
+ /^(?:\[\[)/,
4381
+ /^(?:\[\|)/,
4382
+ /^(?:>)/,
4383
+ /^(?:\)\])/,
4384
+ /^(?:\[\()/,
4385
+ /^(?:\)\)\))/,
4386
+ /^(?:\(\(\()/,
4387
+ /^(?:%%(?!\{)[^\n]*)/,
4388
+ /^(?:[\\(?=\])][\]])/,
4389
+ /^(?:\/(?=\])\])/,
4390
+ /^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,
4391
+ /^(?:\[\/)/,
4392
+ /^(?:\[\\)/,
4393
+ /^(?:<)/,
4394
+ /^(?:>)/,
4395
+ /^(?:\^)/,
4396
+ /^(?:\\\|)/,
4397
+ /^(?:v\b)/,
4398
+ /^(?:\*)/,
4399
+ /^(?:#)/,
4400
+ /^(?:&)/,
4401
+ /^(?:[ \t]*%%(?!\{)[^\n]*)/,
4402
+ /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,
4403
+ /^(?:-)/,
4404
+ /^(?:[\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])/,
4405
+ /^(?:\|)/,
4406
+ /^(?:\|)/,
4407
+ /^(?:\))/,
4408
+ /^(?:\()/,
4409
+ /^(?:\])/,
4410
+ /^(?:\[)/,
4411
+ /^(?:(\}))/,
4412
+ /^(?:\{)/,
4413
+ /^(?:%%(?!\{)[^\n]*)/,
4414
+ /^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,
4415
+ /^(?:")/,
4416
+ /^(?:(\r?\n)+)/,
4417
+ /^(?:\s)/,
4418
+ /^(?:$)/
4419
+ ],
4420
+ conditions: {
4421
+ shapeDataEndBracket: {
4422
+ rules: [
4423
+ 21,
4424
+ 24,
4425
+ 76,
4426
+ 78,
4427
+ 80,
4428
+ 84,
4429
+ 86,
4430
+ 91,
4431
+ 92,
4432
+ 106,
4433
+ 108,
4434
+ 110,
4435
+ 112
4436
+ ],
4437
+ inclusive: !1
4438
+ },
4439
+ shapeDataStr: {
4440
+ rules: [
4441
+ 9,
4442
+ 10,
4443
+ 21,
4444
+ 24,
4445
+ 76,
4446
+ 78,
4447
+ 80,
4448
+ 84,
4449
+ 86,
4450
+ 91,
4451
+ 92,
4452
+ 106,
4453
+ 108,
4454
+ 110,
4455
+ 112
4456
+ ],
4457
+ inclusive: !1
4458
+ },
4459
+ shapeData: {
4460
+ rules: [
4461
+ 8,
4462
+ 11,
4463
+ 12,
4464
+ 21,
4465
+ 24,
4466
+ 76,
4467
+ 78,
4468
+ 80,
4469
+ 84,
4470
+ 86,
4471
+ 91,
4472
+ 92,
4473
+ 106,
4474
+ 108,
4475
+ 110,
4476
+ 112
4477
+ ],
4478
+ inclusive: !1
4479
+ },
4480
+ callbackargs: {
4481
+ rules: [
4482
+ 17,
4483
+ 18,
4484
+ 21,
4485
+ 24,
4486
+ 76,
4487
+ 78,
4488
+ 80,
4489
+ 84,
4490
+ 86,
4491
+ 91,
4492
+ 92,
4493
+ 106,
4494
+ 108,
4495
+ 110,
4496
+ 112
4497
+ ],
4498
+ inclusive: !1
4499
+ },
4500
+ callbackname: {
4501
+ rules: [
4502
+ 14,
4503
+ 15,
4504
+ 16,
4505
+ 21,
4506
+ 24,
4507
+ 76,
4508
+ 78,
4509
+ 80,
4510
+ 84,
4511
+ 86,
4512
+ 91,
4513
+ 92,
4514
+ 106,
4515
+ 108,
4516
+ 110,
4517
+ 112
4518
+ ],
4519
+ inclusive: !1
4520
+ },
4521
+ href: {
4522
+ rules: [
4523
+ 21,
4524
+ 24,
4525
+ 76,
4526
+ 78,
4527
+ 80,
4528
+ 84,
4529
+ 86,
4530
+ 91,
4531
+ 92,
4532
+ 106,
4533
+ 108,
4534
+ 110,
4535
+ 112
4536
+ ],
4537
+ inclusive: !1
4538
+ },
4539
+ click: {
4540
+ rules: [
4541
+ 21,
4542
+ 24,
4543
+ 33,
4544
+ 34,
4545
+ 76,
4546
+ 78,
4547
+ 80,
4548
+ 84,
4549
+ 86,
4550
+ 91,
4551
+ 92,
4552
+ 106,
4553
+ 108,
4554
+ 110,
4555
+ 112
4556
+ ],
4557
+ inclusive: !1
4558
+ },
4559
+ edgeText: {
4560
+ rules: [
4561
+ 21,
4562
+ 24,
4563
+ 69,
4564
+ 71,
4565
+ 76,
4566
+ 78,
4567
+ 80,
4568
+ 84,
4569
+ 86,
4570
+ 91,
4571
+ 92,
4572
+ 106,
4573
+ 108,
4574
+ 110,
4575
+ 112
4576
+ ],
4577
+ inclusive: !1
4578
+ },
4579
+ trapText: {
4580
+ rules: [
4581
+ 21,
4582
+ 24,
4583
+ 76,
4584
+ 78,
4585
+ 80,
4586
+ 84,
4587
+ 86,
4588
+ 87,
4589
+ 88,
4590
+ 89,
4591
+ 90,
4592
+ 91,
4593
+ 92,
4594
+ 106,
4595
+ 108,
4596
+ 110,
4597
+ 112
4598
+ ],
4599
+ inclusive: !1
4600
+ },
4601
+ ellipseText: {
4602
+ rules: [
4603
+ 21,
4604
+ 24,
4605
+ 73,
4606
+ 74,
4607
+ 75,
4608
+ 76,
4609
+ 78,
4610
+ 80,
4611
+ 84,
4612
+ 86,
4613
+ 91,
4614
+ 92,
4615
+ 106,
4616
+ 108,
4617
+ 110,
4618
+ 112
4619
+ ],
4620
+ inclusive: !1
4621
+ },
4622
+ text: {
4623
+ rules: [
4624
+ 21,
4625
+ 24,
4626
+ 76,
4627
+ 77,
4628
+ 78,
4629
+ 79,
4630
+ 80,
4631
+ 83,
4632
+ 84,
4633
+ 85,
4634
+ 86,
4635
+ 91,
4636
+ 92,
4637
+ 105,
4638
+ 106,
4639
+ 107,
4640
+ 108,
4641
+ 109,
4642
+ 110,
4643
+ 111,
4644
+ 112,
4645
+ 113,
4646
+ 114
4647
+ ],
4648
+ inclusive: !1
4649
+ },
4650
+ vertex: {
4651
+ rules: [
4652
+ 21,
4653
+ 24,
4654
+ 76,
4655
+ 78,
4656
+ 80,
4657
+ 84,
4658
+ 86,
4659
+ 91,
4660
+ 92,
4661
+ 106,
4662
+ 108,
4663
+ 110,
4664
+ 112
4665
+ ],
4666
+ inclusive: !1
4667
+ },
4668
+ dir: {
4669
+ rules: [
4670
+ 21,
4671
+ 24,
4672
+ 44,
4673
+ 45,
4674
+ 46,
4675
+ 47,
4676
+ 48,
4677
+ 49,
4678
+ 50,
4679
+ 51,
4680
+ 52,
4681
+ 53,
4682
+ 54,
4683
+ 76,
4684
+ 78,
4685
+ 80,
4686
+ 84,
4687
+ 86,
4688
+ 91,
4689
+ 92,
4690
+ 106,
4691
+ 108,
4692
+ 110,
4693
+ 112
4694
+ ],
4695
+ inclusive: !1
4696
+ },
4697
+ acc_descr_multiline: {
4698
+ rules: [
4699
+ 5,
4700
+ 6,
4701
+ 21,
4702
+ 24,
4703
+ 76,
4704
+ 78,
4705
+ 80,
4706
+ 84,
4707
+ 86,
4708
+ 91,
4709
+ 92,
4710
+ 106,
4711
+ 108,
4712
+ 110,
4713
+ 112
4714
+ ],
4715
+ inclusive: !1
4716
+ },
4717
+ acc_descr: {
4718
+ rules: [
4719
+ 3,
4720
+ 21,
4721
+ 24,
4722
+ 76,
4723
+ 78,
4724
+ 80,
4725
+ 84,
4726
+ 86,
4727
+ 91,
4728
+ 92,
4729
+ 106,
4730
+ 108,
4731
+ 110,
4732
+ 112
4733
+ ],
4734
+ inclusive: !1
4735
+ },
4736
+ acc_title: {
4737
+ rules: [
4738
+ 1,
4739
+ 21,
4740
+ 24,
4741
+ 76,
4742
+ 78,
4743
+ 80,
4744
+ 84,
4745
+ 86,
4746
+ 91,
4747
+ 92,
4748
+ 106,
4749
+ 108,
4750
+ 110,
4751
+ 112
4752
+ ],
4753
+ inclusive: !1
4754
+ },
4755
+ md_string: {
4756
+ rules: [
4757
+ 19,
4758
+ 20,
4759
+ 21,
4760
+ 24,
4761
+ 76,
4762
+ 78,
4763
+ 80,
4764
+ 84,
4765
+ 86,
4766
+ 91,
4767
+ 92,
4768
+ 106,
4769
+ 108,
4770
+ 110,
4771
+ 112
4772
+ ],
4773
+ inclusive: !1
4774
+ },
4775
+ string: {
4776
+ rules: [
4777
+ 21,
4778
+ 22,
4779
+ 23,
4780
+ 24,
4781
+ 76,
4782
+ 78,
4783
+ 80,
4784
+ 84,
4785
+ 86,
4786
+ 91,
4787
+ 92,
4788
+ 106,
4789
+ 108,
4790
+ 110,
4791
+ 112
4792
+ ],
4793
+ inclusive: !1
4794
+ },
4795
+ INITIAL: {
4796
+ rules: [
4797
+ 0,
4798
+ 2,
4799
+ 4,
4800
+ 7,
4801
+ 13,
4802
+ 21,
4803
+ 24,
4804
+ 25,
4805
+ 26,
4806
+ 27,
4807
+ 28,
4808
+ 29,
4809
+ 30,
4810
+ 31,
4811
+ 32,
4812
+ 35,
4813
+ 36,
4814
+ 37,
4815
+ 38,
4816
+ 39,
4817
+ 40,
4818
+ 41,
4819
+ 42,
4820
+ 43,
4821
+ 55,
4822
+ 56,
4823
+ 57,
4824
+ 58,
4825
+ 59,
4826
+ 60,
4827
+ 61,
4828
+ 62,
4829
+ 63,
4830
+ 64,
4831
+ 65,
4832
+ 66,
4833
+ 67,
4834
+ 68,
4835
+ 69,
4836
+ 70,
4837
+ 72,
4838
+ 76,
4839
+ 78,
4840
+ 80,
4841
+ 81,
4842
+ 82,
4843
+ 84,
4844
+ 86,
4845
+ 91,
4846
+ 92,
4847
+ 93,
4848
+ 94,
4849
+ 95,
4850
+ 96,
4851
+ 97,
4852
+ 98,
4853
+ 99,
4854
+ 100,
4855
+ 101,
4856
+ 102,
4857
+ 103,
4858
+ 104,
4859
+ 106,
4860
+ 108,
4861
+ 110,
4862
+ 112,
4863
+ 115,
4864
+ 116,
4865
+ 117,
4866
+ 118
4867
+ ],
4868
+ inclusive: !0
4869
+ }
4870
+ }
4871
+ };
4872
+ })();
4873
+ function pt() {
4874
+ this.yy = {};
4875
+ }
4876
+ return i(pt, "Parser"), pt.prototype = ft, ft.Parser = pt, new pt();
4877
+ })();
4878
+ fe.parser = fe;
4879
+ var pe = fe, me = Object.assign({}, pe);
4880
+ me.parse = (e) => {
4881
+ let t = e.replace(/}[^\S\n]*\n/g, "}\n");
4882
+ return pe.parse(t);
4883
+ };
4884
+ var he = me, ge = /* @__PURE__ */ i((e) => {
4885
+ let { theme: t, bkgColorArray: n, borderColorArray: r } = e;
4886
+ if (!b(t, r)) return "";
4887
+ let a = S(e.look), o = C(n), s = x(e.THEME_COLOR_LIMIT, r), c = /* @__PURE__ */ i((e) => r[e % r.length], "border"), l = /* @__PURE__ */ i((e) => o ? `fill: ${n[e % n.length]};` : "", "fill"), u = "";
4888
+ for (let e of B) {
4889
+ let t = L.get(e), n = `[data-look="${a}"].node.${z(e)}`;
4890
+ u += `
4891
+
4892
+ ${n} rect,
4893
+ ${n} path,
4894
+ ${n} polygon {
4895
+ stroke: ${c(t)};
4896
+ ${l(t)}
4897
+ }
4898
+ `;
4899
+ }
4900
+ for (let e = 0; e < V(s); e++) {
4901
+ let t = H(e, s), n = `[data-look="${a}"][data-color-id="color-${t}"].cluster`, r = `[data-look="${a}"][data-color-id="color-${t}"].node`, o = /* @__PURE__ */ i((e) => `${n} ${e}, ${r} ${e}`, "rule");
4902
+ u += `
4903
+
4904
+ ${o("rect")},
4905
+ ${o("path")} {
4906
+ stroke: ${c(t)};
4907
+ ${l(t)}
4908
+ }
4909
+ `;
4910
+ }
4911
+ return u;
4912
+ }, "genColor"), U = /* @__PURE__ */ i((e, t) => {
4913
+ let n = v;
4914
+ return l(n(e, "r"), n(e, "g"), n(e, "b"), t);
4915
+ }, "fade"), W = {
4916
+ parser: he,
4917
+ get db() {
4918
+ return new ue();
4919
+ },
4920
+ renderer: de,
4921
+ styles: /* @__PURE__ */ i((e) => `${ge(e)}
4922
+ .label {
4923
+ font-family: ${e.fontFamily};
4924
+ color: ${e.nodeTextColor || e.textColor};
4925
+ }
4926
+ .cluster-label text {
4927
+ fill: ${e.titleColor};
4928
+ }
4929
+ .cluster-label span {
4930
+ color: ${e.titleColor};
4931
+ }
4932
+ .cluster-label span p {
4933
+ background-color: transparent;
4934
+ }
4935
+
4936
+ .label text,span {
4937
+ fill: ${e.nodeTextColor || e.textColor};
4938
+ color: ${e.nodeTextColor || e.textColor};
4939
+ }
4940
+
4941
+ .node rect,
4942
+ .node circle,
4943
+ .node ellipse,
4944
+ .node polygon,
4945
+ .node path {
4946
+ fill: ${e.mainBkg};
4947
+ stroke: ${e.nodeBorder};
4948
+ stroke-width: ${e.strokeWidth ?? 1}px;
4949
+ }
4950
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
4951
+ text-anchor: middle;
4952
+ }
4953
+ .node .katex path {
4954
+ fill: ${e.nodeTextColor || e.textColor};
4955
+ stroke: ${e.nodeTextColor || e.textColor};
4956
+ stroke-width: 1px;
4957
+ }
4958
+
4959
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
4960
+ text-align: center;
4961
+ }
4962
+ .node.clickable {
4963
+ cursor: pointer;
4964
+ }
4965
+
4966
+
4967
+ .root .anchor path {
4968
+ fill: ${e.lineColor} !important;
4969
+ stroke-width: 0;
4970
+ stroke: ${e.lineColor};
4971
+ }
4972
+
4973
+ .arrowheadPath {
4974
+ fill: ${e.arrowheadColor};
4975
+ }
4976
+
4977
+ .edgePaths .path {
4978
+ stroke: ${e.lineColor};
4979
+ stroke-width: ${e.strokeWidth ?? 2}px;
4980
+ }
4981
+
4982
+ .flowchart-link {
4983
+ stroke: ${e.lineColor};
4984
+ fill: none;
4985
+ }
4986
+
4987
+ .edgeLabel {
4988
+ background-color: ${e.edgeLabelBackground};
4989
+ p {
4990
+ background-color: ${e.edgeLabelBackground};
4991
+ }
4992
+ rect {
4993
+ opacity: 0.5;
4994
+ background-color: ${e.edgeLabelBackground};
4995
+ fill: ${e.edgeLabelBackground};
4996
+ }
4997
+ text-align: center;
4998
+ }
4999
+
5000
+ /* For html labels only */
5001
+ .labelBkg {
5002
+ background-color: ${U(e.edgeLabelBackground, .5)};
5003
+ }
5004
+
5005
+ .cluster rect {
5006
+ fill: ${e.clusterBkg};
5007
+ stroke: ${e.clusterBorder};
5008
+ stroke-width: 1px;
5009
+ }
5010
+
5011
+ .flow-cluster rect {
5012
+ fill: none;
5013
+ stroke: ${e.clusterBorder};
5014
+ stroke-width: 0.75px;
5015
+ }
5016
+
5017
+ .node .collapsed-indicator {
5018
+ fill: ${e.nodeBorder};
5019
+ stroke: none;
5020
+ stroke-width: 0;
5021
+ opacity: 0.5;
5022
+ }
5023
+
5024
+ .node .collapsed-separator {
5025
+ stroke-width: 0.75px;
5026
+ }
5027
+
5028
+ .cluster text {
5029
+ fill: ${e.titleColor};
5030
+ }
5031
+
5032
+ .cluster span {
5033
+ color: ${e.titleColor};
5034
+ }
5035
+ /* .cluster div {
5036
+ color: ${e.titleColor};
5037
+ } */
5038
+
5039
+ div.mermaidTooltip {
5040
+ position: absolute;
5041
+ text-align: center;
5042
+ max-width: 200px;
5043
+ padding: 2px;
5044
+ font-family: ${e.fontFamily};
5045
+ font-size: 12px;
5046
+ background: ${e.tertiaryColor};
5047
+ border: 1px solid ${e.border2};
5048
+ border-radius: 2px;
5049
+ pointer-events: none;
5050
+ z-index: 100;
5051
+ }
5052
+
5053
+ .agentflowTitleText {
5054
+ text-anchor: middle;
5055
+ font-size: 18px;
5056
+ fill: ${e.textColor};
5057
+ }
5058
+
5059
+ rect.text {
5060
+ fill: none;
5061
+ stroke-width: 0;
5062
+ }
5063
+
5064
+ .icon-shape, .image-shape {
5065
+ background-color: ${e.edgeLabelBackground};
5066
+ p {
5067
+ background-color: ${e.edgeLabelBackground};
5068
+ padding: 2px;
5069
+ }
5070
+ .label rect {
5071
+ opacity: 0.5;
5072
+ background-color: ${e.edgeLabelBackground};
5073
+ fill: ${e.edgeLabelBackground};
5074
+ }
5075
+ text-align: center;
5076
+ }
5077
+ ${y()}
5078
+ `, "getStyles"),
5079
+ init: /* @__PURE__ */ i((e) => {
5080
+ e.agentflow ??= {}, e.layout && a({ layout: e.layout }), e.flowchart ??= {}, e.flowchart.arrowMarkerAbsolute = e.arrowMarkerAbsolute, a({ flowchart: { arrowMarkerAbsolute: e.arrowMarkerAbsolute } });
5081
+ }, "init")
5082
+ };
5083
+ //#endregion
5084
+ export { W as diagram };