@qwen-code/web-shell 0.27.1 → 0.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/NOTICES.txt +10721 -958
  2. package/dist/{PierreFilePreview-BT_JRIvF.js → PierreFilePreview-CVi_Wsf-.js} +1 -1
  3. package/dist/SpreadsheetPreview-CTyYrLmD.js +379 -0
  4. package/dist/{WorkspaceFileBrowser-G1yA2eBf.js → WorkspaceFileBrowser-DkQgnDFv.js} +2 -2
  5. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  6. package/dist/abnfDiagram-VCTEODGH-CQWhk3bg.js +87 -0
  7. package/dist/abnfDiagram-VCTEODGH-DXK3iWaN.js +87 -0
  8. package/dist/{agents-route-bkxyBAkN.js → agents-route-ZD8W2lTb.js} +2 -2
  9. package/dist/arc-BcP3aO-G.js +83 -0
  10. package/dist/arc-DkZAOzaU.js +83 -0
  11. package/dist/architectureDiagram-5GKGNRK7-DhcVEkLQ.js +4775 -0
  12. package/dist/architectureDiagram-5GKGNRK7-DusU8ybk.js +4776 -0
  13. package/dist/blockDiagram-NRAW4CY4-BMOuo5wl.js +1414 -0
  14. package/dist/blockDiagram-NRAW4CY4-YciA8-8I.js +1414 -0
  15. package/dist/c4Diagram-UCG6FXSJ-BJxpHO4v.js +1508 -0
  16. package/dist/c4Diagram-UCG6FXSJ-DNpq-cdF.js +1508 -0
  17. package/dist/channel-CfhQTpjX.js +5 -0
  18. package/dist/channel-QZAYPfF8.js +5 -0
  19. package/dist/chunk-2Q5K7J3B-EGbMOnEe.js +15 -0
  20. package/dist/chunk-2Q5K7J3B-mtpkChaF.js +15 -0
  21. package/dist/chunk-5VM5RSS4-CP4Q2W8n.js +19 -0
  22. package/dist/chunk-5VM5RSS4-CucJ3wyB.js +19 -0
  23. package/dist/chunk-F27PBJKO-CS9kzvAx.js +68 -0
  24. package/dist/chunk-F27PBJKO-Cfw_29T-.js +68 -0
  25. package/dist/chunk-G27WJ6UU-BZzmQ8FW.js +1408 -0
  26. package/dist/chunk-G27WJ6UU-DdeEiwmL.js +1408 -0
  27. package/dist/chunk-JWPE2WC7-BL_hjRLf.js +8 -0
  28. package/dist/chunk-JWPE2WC7-C03UDQBx.js +8 -0
  29. package/dist/chunk-LCL6LL3I-CNn3XyuL.js +1533 -0
  30. package/dist/chunk-LCL6LL3I-CR-IGGIM.js +1533 -0
  31. package/dist/chunk-POPQ4Y6H-BVQbxVHz.js +19 -0
  32. package/dist/chunk-POPQ4Y6H-UJK1fYGP.js +19 -0
  33. package/dist/chunk-SVP7TREG-B-E-xFG8.js +664 -0
  34. package/dist/chunk-SVP7TREG-BUmyTmov.js +664 -0
  35. package/dist/chunk-XXDRQBXY-BDcf4DQz.js +8 -0
  36. package/dist/chunk-XXDRQBXY-BHAq0mtL.js +8 -0
  37. package/dist/classDiagram-DTDB5LWJ-CVA3J-EH.js +16 -0
  38. package/dist/classDiagram-DTDB5LWJ-Dh121Rlt.js +16 -0
  39. package/dist/classDiagram-v2-JRS7N3AN-CVA3J-EH.js +16 -0
  40. package/dist/classDiagram-v2-JRS7N3AN-Dh121Rlt.js +16 -0
  41. package/dist/cose-bilkent-JH36ORCC-CLe0kcHa.js +2605 -0
  42. package/dist/cose-bilkent-JH36ORCC-DpMM48hA.js +2606 -0
  43. package/dist/cynefin-OW5HDTMX-CyO3b088.js +23750 -0
  44. package/dist/cynefinDiagram-5FMLGOSQ-C5xaWeuA.js +299 -0
  45. package/dist/cynefinDiagram-5FMLGOSQ-mLaK-3R3.js +299 -0
  46. package/dist/cytoscape.esm-DCrf4dL8.js +18782 -0
  47. package/dist/daemon-react-sdk.js +1 -1
  48. package/dist/dagre-3AP2YEHR-CmNFrtW9.js +456 -0
  49. package/dist/dagre-3AP2YEHR-zDm3fBQq.js +456 -0
  50. package/dist/defaultLocale-BgPVtth8.js +171 -0
  51. package/dist/diagram-S7CK7UJ4-BQtgRcGU.js +346 -0
  52. package/dist/diagram-S7CK7UJ4-Clojnf04.js +346 -0
  53. package/dist/diagram-UQ7AKVKN-B3Ll3rB4.js +219 -0
  54. package/dist/diagram-UQ7AKVKN-CTn4O0fd.js +219 -0
  55. package/dist/diagram-VSXAHHWV-BeYXDVEh.js +463 -0
  56. package/dist/diagram-VSXAHHWV-mdxkNEZP.js +463 -0
  57. package/dist/diagram-VX7I27RA-C3bzQYLd.js +529 -0
  58. package/dist/diagram-VX7I27RA-DaPLIQOr.js +529 -0
  59. package/dist/diagram-Z3DM3KII-BImvaL3c.js +142 -0
  60. package/dist/diagram-Z3DM3KII-CkkdGhWO.js +142 -0
  61. package/dist/{docx-preview-BucJeYCm.js → docx-preview-BfV4m8Qp.js} +503 -506
  62. package/dist/ebnfDiagram-PWID7BFC-C8RUggbp.js +109 -0
  63. package/dist/ebnfDiagram-PWID7BFC-gJHJx-lt.js +109 -0
  64. package/dist/erDiagram-SSCWMZ5O-CKFzjLCd.js +1059 -0
  65. package/dist/erDiagram-SSCWMZ5O-DLJjXFG9.js +1059 -0
  66. package/dist/flowDiagram-A5DVABFB-BHAeEzG1.js +1689 -0
  67. package/dist/flowDiagram-A5DVABFB-BOdsfJ-4.js +1689 -0
  68. package/dist/ganttDiagram-EL5Y4UJY-CtL6LAbW.js +2703 -0
  69. package/dist/ganttDiagram-EL5Y4UJY-D0hNphpF.js +2704 -0
  70. package/dist/gitGraphDiagram-WWUBYQGX-8XcPnT4w.js +815 -0
  71. package/dist/gitGraphDiagram-WWUBYQGX-DxHtQ0ba.js +815 -0
  72. package/dist/{index-B6wNHUaX.js → index-BGsppGgG.js} +69284 -64504
  73. package/dist/index.js +3 -3
  74. package/dist/infoDiagram-RXCK75RN-B-Ds06LN.js +24 -0
  75. package/dist/infoDiagram-RXCK75RN-Dhirg4if.js +24 -0
  76. package/dist/init-DjUOC4st.js +16 -0
  77. package/dist/ishikawaDiagram-5VMMS53U-BJPKneVd.js +621 -0
  78. package/dist/ishikawaDiagram-5VMMS53U-CsttzTkq.js +621 -0
  79. package/dist/journeyDiagram-EYS64GPL-BBAEhOQ9.js +836 -0
  80. package/dist/journeyDiagram-EYS64GPL-DfXS6tI_.js +836 -0
  81. package/dist/kanban-definition-3QL26DDD-Bh1Jz01C.js +723 -0
  82. package/dist/kanban-definition-3QL26DDD-C8yOTG02.js +723 -0
  83. package/dist/layout-Dxab-q-T.js +1704 -0
  84. package/dist/layout-sTbo9v3C.js +1704 -0
  85. package/dist/linear-BhTDfwHZ.js +259 -0
  86. package/dist/linear-CjDL9r_e.js +259 -0
  87. package/dist/mermaid.core-CFV16zMl.js +19742 -0
  88. package/dist/mermaid.core-DBp8atac.js +19747 -0
  89. package/dist/mindmap-definition-FBJOCRG2-KPo1Z4it.js +826 -0
  90. package/dist/mindmap-definition-FBJOCRG2-vau9OLMK.js +826 -0
  91. package/dist/ordinal-DfAQgscy.js +61 -0
  92. package/dist/pegDiagram-XKGWAZYB-CFjH6RoO.js +95 -0
  93. package/dist/pegDiagram-XKGWAZYB-EeXt14MX.js +95 -0
  94. package/dist/pieDiagram-E7YTZNPT-CJa9GbCV.js +208 -0
  95. package/dist/pieDiagram-E7YTZNPT-JyO_8fWF.js +208 -0
  96. package/dist/quadrantDiagram-AXDQQJYC-B7tyPD89.js +1023 -0
  97. package/dist/quadrantDiagram-AXDQQJYC-G9wAekw0.js +1023 -0
  98. package/dist/railroadDiagram-O6MQD6OU-3-cuTnqH.js +77 -0
  99. package/dist/railroadDiagram-O6MQD6OU-SyM4QCMp.js +77 -0
  100. package/dist/requirementDiagram-EFPCY7ZU-BJal3W63.js +882 -0
  101. package/dist/requirementDiagram-EFPCY7ZU-bMW72Av_.js +882 -0
  102. package/dist/sankeyDiagram-P5KCCOFB-BKP8fccK.js +847 -0
  103. package/dist/sankeyDiagram-P5KCCOFB-C4KDi8Ty.js +847 -0
  104. package/dist/sequenceDiagram-WJ2MYXX4-DFvbPjPG.js +2888 -0
  105. package/dist/sequenceDiagram-WJ2MYXX4-DvgRoXFL.js +2888 -0
  106. package/dist/sizeCapture-X5ZJPWSS-DPkvpCxM.js +46 -0
  107. package/dist/sizeCapture-X5ZJPWSS-DU4nf5aV.js +46 -0
  108. package/dist/stateDiagram-HBIQ2CUA-CWp0mOcF.js +262 -0
  109. package/dist/stateDiagram-HBIQ2CUA-DkN3hNFV.js +262 -0
  110. package/dist/stateDiagram-v2-4QOOHH4V-Bh7H2ZBJ.js +16 -0
  111. package/dist/stateDiagram-v2-4QOOHH4V-DX-OvV9U.js +16 -0
  112. package/dist/sw.js +1 -1
  113. package/dist/swimlanes-XN3QIQJK-2s4fbN8J.js +5219 -0
  114. package/dist/swimlanes-XN3QIQJK-CI3ENZQA.js +5219 -0
  115. package/dist/swimlanesDiagram-VK2B7HYN-BEjeqDmx.js +13 -0
  116. package/dist/swimlanesDiagram-VK2B7HYN-DWJY6BGD.js +13 -0
  117. package/dist/timeline-definition-24CTP7MA-C_tZHri9.js +1057 -0
  118. package/dist/timeline-definition-24CTP7MA-DYXEracn.js +1057 -0
  119. package/dist/transcript.js +14564 -11549
  120. package/dist/types/App.d.ts +10 -1
  121. package/dist/types/components/ComposerUsageStats.d.ts +34 -0
  122. package/dist/types/components/WelcomeHeader.d.ts +8 -0
  123. package/dist/types/components/artifacts/tokenUsageTotals.d.ts +36 -0
  124. package/dist/types/components/channels/ChannelEditorDialog.d.ts +10 -1
  125. package/dist/types/components/channels/ChannelQrLogin.d.ts +13 -0
  126. package/dist/types/components/channels/WeixinLoginPanel.d.ts +17 -0
  127. package/dist/types/components/channels/channel-editor-state.d.ts +8 -1
  128. package/dist/types/components/channels/channel-platform.d.ts +2 -1
  129. package/dist/types/components/channels/weixin-auth-api.d.ts +32 -0
  130. package/dist/types/components/managed/ManagedRuntimeSkillsImporter.d.ts +10 -0
  131. package/dist/types/components/managed/ManagedSideQueryPanel.d.ts +5 -0
  132. package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +26 -1
  133. package/dist/types/components/managed/generated/managed-agent-api.d.ts +605 -0
  134. package/dist/types/components/managed/java-managed-agent-client.d.ts +122 -1
  135. package/dist/types/components/managed/managed-agent-provider.d.ts +14 -1
  136. package/dist/types/components/managed/managed-diagnostics-messages.d.ts +14 -1
  137. package/dist/types/components/managed/managed-extension-install.d.ts +5 -2
  138. package/dist/types/components/managed/managed-extension-messages.d.ts +7 -0
  139. package/dist/types/components/managed/managed-extension-types.d.ts +4 -0
  140. package/dist/types/components/managed/managed-session-storage.d.ts +35 -0
  141. package/dist/types/components/managed/managed-side-query-command.d.ts +5 -0
  142. package/dist/types/components/managed/managed-side-query-types.d.ts +21 -0
  143. package/dist/types/components/managed/managed-side-query.test-fixtures.d.ts +3 -0
  144. package/dist/types/components/managed/use-managed-side-queries.d.ts +26 -0
  145. package/dist/types/customization.d.ts +31 -0
  146. package/dist/types/daemon/workspace/hooks/useDaemonChannels.d.ts +2 -1
  147. package/dist/types/daemon/workspace/types.d.ts +8 -1
  148. package/dist/types/index.d.ts +1 -0
  149. package/dist/{useDaemonMidTurnInjected-tBzI77Ar.js → useDaemonMidTurnInjected-B7dPEdqk.js} +2040 -1825
  150. package/dist/vennDiagram-4TSXK5OY-Bi3e_aHN.js +1578 -0
  151. package/dist/vennDiagram-4TSXK5OY-DZCe1Ffi.js +1578 -0
  152. package/dist/wardleyDiagram-VM6X3IG4-BNV5jzew.js +675 -0
  153. package/dist/wardleyDiagram-VM6X3IG4-DqFJHRmt.js +675 -0
  154. package/dist/xychartDiagram-S5SC5T6Z-BVIJ86ch.js +1492 -0
  155. package/dist/xychartDiagram-S5SC5T6Z-J8xP-hcH.js +1492 -0
  156. package/package.json +19 -9
  157. package/dist/SpreadsheetPreview-d5XL70Ho.js +0 -379
  158. package/dist/types/components/artifacts/excel-preview-parser.d.ts +0 -5
@@ -0,0 +1,1689 @@
1
+ import { g as Xt } from "./chunk-5VM5RSS4-CP4Q2W8n.js";
2
+ import { g as Qt } from "./chunk-XXDRQBXY-BDcf4DQz.js";
3
+ import { s as Zt } from "./chunk-POPQ4Y6H-BVQbxVHz.js";
4
+ import { _ as k, b4 as Jt, Y as Mt, l as $, c as ke, x as $t, y as e1, z as rt, b as t1, s as s1, p as i1, a as r1, g as a1, q as n1, k as u1, Z as o1, $ as l1, ca as c1, t as st, j as it, a6 as h1, r as d1, b7 as p1, u as f1 } from "./mermaid.core-CFV16zMl.js";
5
+ import { f as g1 } from "./chunk-F27PBJKO-CS9kzvAx.js";
6
+ import { c as b1 } from "./channel-CfhQTpjX.js";
7
+ var A1 = "flowchart-", Pe, k1 = (Pe = class {
8
+ // cspell:ignore funs
9
+ constructor() {
10
+ this.vertexCounter = 0, this.config = ke(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = t1, this.setAccDescription = s1, this.setDiagramTitle = i1, this.getAccTitle = r1, this.getAccDescription = a1, this.getDiagramTitle = n1, 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.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.lex = {
11
+ firstGraph: this.firstGraph.bind(this)
12
+ }, this.clear(), this.setGen("gen-2");
13
+ }
14
+ sanitizeText(i) {
15
+ return u1.sanitizeText(i, this.config);
16
+ }
17
+ sanitizeNodeLabelType(i) {
18
+ switch (i) {
19
+ case "markdown":
20
+ case "string":
21
+ case "text":
22
+ return i;
23
+ default:
24
+ return "markdown";
25
+ }
26
+ }
27
+ /**
28
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
29
+ * across multiple diagrams on the same page.
30
+ */
31
+ setDiagramId(i) {
32
+ this.diagramId = i;
33
+ }
34
+ /**
35
+ * Function to lookup domId from id in the graph definition.
36
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
37
+ *
38
+ * @param id - id of the node
39
+ */
40
+ lookUpDomId(i) {
41
+ for (const r of this.vertices.values())
42
+ if (r.id === i)
43
+ return this.diagramId ? `${this.diagramId}-${r.domId}` : r.domId;
44
+ return this.diagramId ? `${this.diagramId}-${i}` : i;
45
+ }
46
+ /**
47
+ * Function called by parser when a node definition has been found
48
+ */
49
+ addVertex(i, r, a, n, c, g, l = {}, m) {
50
+ if (!i || i.trim().length === 0)
51
+ return;
52
+ let p;
53
+ if (m !== void 0) {
54
+ let u;
55
+ m.includes(`
56
+ `) ? u = m + `
57
+ ` : u = `{
58
+ ` + m + `
59
+ }`, p = o1(u, { schema: l1 });
60
+ }
61
+ const F = this.subGraphLookup.get(i);
62
+ if (F && p) {
63
+ F.metadata = { ...F.metadata, ...p };
64
+ return;
65
+ }
66
+ const _ = this.edges.find((u) => u.id === i);
67
+ if (_) {
68
+ const u = p;
69
+ u?.animate !== void 0 && (_.animate = u.animate), u?.animation !== void 0 && (_.animation = u.animation), u?.curve !== void 0 && (_.interpolate = u.curve);
70
+ return;
71
+ }
72
+ let L, A = this.vertices.get(i);
73
+ if (A === void 0 && (r === void 0 && a === void 0 && n !== void 0 && n !== null && $.warn(
74
+ `Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`
75
+ ), A = {
76
+ id: i,
77
+ labelType: "text",
78
+ domId: A1 + i + "-" + this.vertexCounter,
79
+ styles: [],
80
+ classes: []
81
+ }, this.vertices.set(i, A)), this.vertexCounter++, r !== void 0 ? (this.config = ke(), L = this.sanitizeText(r.text.trim()), A.labelType = r.type, L.startsWith('"') && L.endsWith('"') && (L = L.substring(1, L.length - 1)), A.text = L) : A.text === void 0 && (A.text = i), a !== void 0 && (A.type = a), n?.forEach((u) => {
82
+ A.styles.push(u);
83
+ }), c?.forEach((u) => {
84
+ A.classes.push(u);
85
+ }), g !== void 0 && (A.dir = g), A.props === void 0 ? A.props = l : l !== void 0 && Object.assign(A.props, l), p !== void 0) {
86
+ if (p.shape) {
87
+ if (p.shape !== p.shape.toLowerCase() || p.shape.includes("_"))
88
+ throw new Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);
89
+ if (!c1(p.shape))
90
+ throw new Error(`No such shape: ${p.shape}.`);
91
+ A.type = p?.shape;
92
+ }
93
+ p?.label && (A.text = p?.label, A.labelType = this.sanitizeNodeLabelType(p?.labelType)), p?.icon && (A.icon = p?.icon, !p.label?.trim() && A.text === i && (A.text = "")), p?.form && (A.form = p?.form), p?.pos && (A.pos = p?.pos), p?.img && (A.img = p?.img, !p.label?.trim() && A.text === i && (A.text = "")), p?.constraint && (A.constraint = p.constraint), p.w && (A.assetWidth = Number(p.w)), p.h && (A.assetHeight = Number(p.h));
94
+ }
95
+ }
96
+ /**
97
+ * Function called by parser when a link/edge definition has been found
98
+ *
99
+ */
100
+ addSingleLink(i, r, a, n) {
101
+ const l = {
102
+ start: i,
103
+ end: r,
104
+ type: void 0,
105
+ text: "",
106
+ labelType: "text",
107
+ classes: [],
108
+ isUserDefinedId: !1,
109
+ interpolate: this.edges.defaultInterpolate
110
+ };
111
+ $.info("abc78 Got edge...", l);
112
+ const m = a.text;
113
+ if (m !== void 0 && (l.text = this.sanitizeText(m.text.trim()), l.text.startsWith('"') && l.text.endsWith('"') && (l.text = l.text.substring(1, l.text.length - 1)), l.labelType = this.sanitizeNodeLabelType(m.type)), a !== void 0 && (l.type = a.type, l.stroke = a.stroke, l.length = a.length > 10 ? 10 : a.length), n && !this.edges.some((p) => p.id === n))
114
+ l.id = n, l.isUserDefinedId = !0;
115
+ else {
116
+ const p = this.edges.filter((F) => F.start === l.start && F.end === l.end);
117
+ p.length === 0 ? l.id = st(l.start, l.end, { counter: 0, prefix: "L" }) : l.id = st(l.start, l.end, {
118
+ counter: p.length + 1,
119
+ prefix: "L"
120
+ });
121
+ }
122
+ if (this.edges.length < (this.config.maxEdges ?? 500))
123
+ $.info("Pushing edge..."), this.edges.push(l);
124
+ else
125
+ throw new Error(
126
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
127
+
128
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
129
+ You cannot set this config via configuration inside the diagram as it is a secure config.
130
+ You have to call mermaid.initialize.`
131
+ );
132
+ }
133
+ isLinkData(i) {
134
+ return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
135
+ }
136
+ addLink(i, r, a) {
137
+ const n = this.isLinkData(a) ? a.id.replace("@", "") : void 0;
138
+ $.info("addLink", i, r, n);
139
+ for (const c of i)
140
+ for (const g of r) {
141
+ const l = c === i[i.length - 1], m = g === r[0];
142
+ l && m ? this.addSingleLink(c, g, a, n) : this.addSingleLink(c, g, a, void 0);
143
+ }
144
+ }
145
+ /**
146
+ * Updates a link's line interpolation algorithm
147
+ */
148
+ updateLinkInterpolate(i, r) {
149
+ i.forEach((a) => {
150
+ a === "default" ? this.edges.defaultInterpolate = r : this.edges[a].interpolate = r;
151
+ });
152
+ }
153
+ /**
154
+ * Updates a link with a style
155
+ *
156
+ */
157
+ updateLink(i, r) {
158
+ i.forEach((a) => {
159
+ if (typeof a == "number" && a >= this.edges.length)
160
+ throw new Error(
161
+ `The index ${a} 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.)`
162
+ );
163
+ a === "default" ? this.edges.defaultStyle = r : (this.edges[a].style = r, (this.edges[a]?.style?.length ?? 0) > 0 && !this.edges[a]?.style?.some((n) => n?.startsWith("fill")) && this.edges[a]?.style?.push("fill:none"));
164
+ });
165
+ }
166
+ addClass(i, r) {
167
+ const a = r.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
168
+ i.split(",").forEach((n) => {
169
+ let c = this.classes.get(n);
170
+ c === void 0 && (c = { id: n, styles: [], textStyles: [] }, this.classes.set(n, c)), a?.forEach((g) => {
171
+ if (/color/.exec(g)) {
172
+ const l = g.replace("fill", "bgFill");
173
+ c.textStyles.push(l);
174
+ }
175
+ c.styles.push(g);
176
+ });
177
+ });
178
+ }
179
+ /**
180
+ * Called by parser when a graph definition is found, stores the direction of the chart.
181
+ *
182
+ */
183
+ setDirection(i) {
184
+ this.direction = i.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");
185
+ }
186
+ /**
187
+ * Called by parser when a special node is found, e.g. a clickable element.
188
+ *
189
+ * @param ids - Comma separated list of ids
190
+ * @param className - Class to add
191
+ */
192
+ setClass(i, r) {
193
+ for (const a of i.split(",")) {
194
+ const n = this.vertices.get(a);
195
+ n && n.classes.push(r);
196
+ const c = this.edges.find((l) => l.id === a);
197
+ c && c.classes.push(r);
198
+ const g = this.subGraphLookup.get(a);
199
+ g && g.classes.push(r);
200
+ }
201
+ }
202
+ setTooltip(i, r) {
203
+ if (r !== void 0) {
204
+ r = this.sanitizeText(r);
205
+ for (const a of i.split(","))
206
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(a) : a, r);
207
+ }
208
+ }
209
+ setClickFun(i, r, a) {
210
+ if (ke().securityLevel !== "loose" || r === void 0)
211
+ return;
212
+ let n = [];
213
+ if (typeof a == "string") {
214
+ n = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
215
+ for (let g = 0; g < n.length; g++) {
216
+ let l = n[g].trim();
217
+ l.startsWith('"') && l.endsWith('"') && (l = l.substr(1, l.length - 2)), n[g] = l;
218
+ }
219
+ }
220
+ n.length === 0 && n.push(i);
221
+ const c = this.vertices.get(i);
222
+ c && (c.haveCallback = !0, this.funs.push(() => {
223
+ const g = this.lookUpDomId(i), l = document.querySelector(`[id="${g}"]`);
224
+ l !== null && l.addEventListener(
225
+ "click",
226
+ () => {
227
+ rt.runFunc(r, ...n);
228
+ },
229
+ !1
230
+ );
231
+ }));
232
+ }
233
+ /**
234
+ * Called by parser when a link is found. Adds the URL to the vertex data.
235
+ *
236
+ * @param ids - Comma separated list of ids
237
+ * @param linkStr - URL to create a link for
238
+ * @param target - Target attribute for the link
239
+ */
240
+ setLink(i, r, a) {
241
+ i.split(",").forEach((n) => {
242
+ const c = this.vertices.get(n);
243
+ c !== void 0 && (c.link = rt.formatUrl(r, this.config), c.linkTarget = a);
244
+ }), this.setClass(i, "clickable");
245
+ }
246
+ getTooltip(i) {
247
+ return this.tooltips.get(i);
248
+ }
249
+ /**
250
+ * Called by parser when a click definition is found. Registers an event handler.
251
+ *
252
+ * @param ids - Comma separated list of ids
253
+ * @param functionName - Function to be called on click
254
+ * @param functionArgs - Arguments to be passed to the function
255
+ */
256
+ setClickEvent(i, r, a) {
257
+ i.split(",").forEach((n) => {
258
+ this.setClickFun(n, r, a);
259
+ }), this.setClass(i, "clickable");
260
+ }
261
+ bindFunctions(i) {
262
+ this.funs.forEach((r) => {
263
+ r(i);
264
+ });
265
+ }
266
+ getDirection() {
267
+ return this.direction?.trim();
268
+ }
269
+ /**
270
+ * Retrieval function for fetching the found nodes after parsing has completed.
271
+ *
272
+ */
273
+ getVertices() {
274
+ return this.vertices;
275
+ }
276
+ /**
277
+ * Retrieval function for fetching the found links after parsing has completed.
278
+ *
279
+ */
280
+ getEdges() {
281
+ return this.edges;
282
+ }
283
+ /**
284
+ * Retrieval function for fetching the found class definitions after parsing has completed.
285
+ *
286
+ */
287
+ getClasses() {
288
+ return this.classes;
289
+ }
290
+ setupToolTips(i) {
291
+ const r = g1();
292
+ it(i).select("svg").selectAll("g.node").on("mouseover", (c) => {
293
+ const g = it(c.currentTarget), l = g.attr("title");
294
+ if (l === null)
295
+ return;
296
+ const m = c.currentTarget?.getBoundingClientRect();
297
+ r.transition().duration(200).style("opacity", ".9"), r.text(g.attr("title")).style("left", window.scrollX + m.left + (m.right - m.left) / 2 + "px").style("top", window.scrollY + m.bottom + "px"), r.html(h1.sanitize(l)), g.classed("hover", !0);
298
+ }).on("mouseout", (c) => {
299
+ r.transition().duration(500).style("opacity", 0), it(c.currentTarget).classed("hover", !1);
300
+ });
301
+ }
302
+ /**
303
+ * Clears the internal graph db so that a new graph can be parsed.
304
+ *
305
+ */
306
+ clear(i = "gen-2") {
307
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = i, this.config = ke(), d1();
308
+ }
309
+ setGen(i) {
310
+ this.version = i || "gen-2";
311
+ }
312
+ defaultStyle() {
313
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
314
+ }
315
+ addSubGraph(i, r, a) {
316
+ let n = i.text.trim(), c = a.text;
317
+ i === a && /\s/.exec(a.text) && (n = void 0);
318
+ const l = (/* @__PURE__ */ k((L) => {
319
+ const A = { boolean: {}, number: {}, string: {} }, u = [];
320
+ let h;
321
+ return { nodeList: L.filter(function(B) {
322
+ const Z = typeof B;
323
+ return B.stmt && B.stmt === "dir" ? (h = B.value, !1) : B.trim() === "" ? !1 : Z in A ? A[Z].hasOwnProperty(B) ? !1 : A[Z][B] = !0 : u.includes(B) ? !1 : u.push(B);
324
+ }), dir: h };
325
+ }, "uniq"))(r.flat()), m = l.nodeList;
326
+ let p = l.dir;
327
+ const F = ke().flowchart ?? {};
328
+ if (p = p ?? (F.inheritDir ? this.getDirection() ?? ke().direction ?? void 0 : void 0), this.version === "gen-1")
329
+ for (let L = 0; L < m.length; L++)
330
+ m[L] = this.lookUpDomId(m[L]);
331
+ n = n ?? "subGraph" + this.subCount, c = c || "", c = this.sanitizeText(c), this.subCount = this.subCount + 1;
332
+ const _ = {
333
+ id: n,
334
+ nodes: m,
335
+ title: c.trim(),
336
+ classes: [],
337
+ dir: p,
338
+ labelType: this.sanitizeNodeLabelType(a?.type)
339
+ };
340
+ return $.info("Adding", _.id, _.nodes, _.dir), _.nodes = this.makeUniq(_, this.subGraphs).nodes, this.subGraphs.push(_), this.subGraphLookup.set(n, _), n;
341
+ }
342
+ getPosForId(i) {
343
+ for (const [r, a] of this.subGraphs.entries())
344
+ if (a.id === i)
345
+ return r;
346
+ return -1;
347
+ }
348
+ indexNodes2(i, r) {
349
+ const a = this.subGraphs[r].nodes;
350
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
351
+ return {
352
+ result: !1,
353
+ count: 0
354
+ };
355
+ if (this.posCrossRef[this.secCount] = r, this.subGraphs[r].id === i)
356
+ return {
357
+ result: !0,
358
+ count: 0
359
+ };
360
+ let n = 0, c = 1;
361
+ for (; n < a.length; ) {
362
+ const g = this.getPosForId(a[n]);
363
+ if (g >= 0) {
364
+ const l = this.indexNodes2(i, g);
365
+ if (l.result)
366
+ return {
367
+ result: !0,
368
+ count: c + l.count
369
+ };
370
+ c = c + l.count;
371
+ }
372
+ n = n + 1;
373
+ }
374
+ return {
375
+ result: !1,
376
+ count: c
377
+ };
378
+ }
379
+ getDepthFirstPos(i) {
380
+ return this.posCrossRef[i];
381
+ }
382
+ indexNodes() {
383
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
384
+ }
385
+ getSubGraphs() {
386
+ return this.subGraphs;
387
+ }
388
+ firstGraph() {
389
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
390
+ }
391
+ destructStartLink(i) {
392
+ let r = i.trim(), a = "arrow_open";
393
+ switch (r[0]) {
394
+ case "<":
395
+ a = "arrow_point", r = r.slice(1);
396
+ break;
397
+ case "x":
398
+ a = "arrow_cross", r = r.slice(1);
399
+ break;
400
+ case "o":
401
+ a = "arrow_circle", r = r.slice(1);
402
+ break;
403
+ }
404
+ let n = "normal";
405
+ return r.includes("=") && (n = "thick"), r.includes(".") && (n = "dotted"), { type: a, stroke: n };
406
+ }
407
+ countChar(i, r) {
408
+ const a = r.length;
409
+ let n = 0;
410
+ for (let c = 0; c < a; ++c)
411
+ r[c] === i && ++n;
412
+ return n;
413
+ }
414
+ destructEndLink(i) {
415
+ const r = i.trim();
416
+ let a = r.slice(0, -1), n = "arrow_open";
417
+ switch (r.slice(-1)) {
418
+ case "x":
419
+ n = "arrow_cross", r.startsWith("x") && (n = "double_" + n, a = a.slice(1));
420
+ break;
421
+ case ">":
422
+ n = "arrow_point", r.startsWith("<") && (n = "double_" + n, a = a.slice(1));
423
+ break;
424
+ case "o":
425
+ n = "arrow_circle", r.startsWith("o") && (n = "double_" + n, a = a.slice(1));
426
+ break;
427
+ }
428
+ let c = "normal", g = a.length - 1;
429
+ a.startsWith("=") && (c = "thick"), a.startsWith("~") && (c = "invisible");
430
+ const l = this.countChar(".", a);
431
+ return l && (c = "dotted", g = l), { type: n, stroke: c, length: g };
432
+ }
433
+ destructLink(i, r) {
434
+ const a = this.destructEndLink(i);
435
+ let n;
436
+ if (r) {
437
+ if (n = this.destructStartLink(r), n.stroke !== a.stroke)
438
+ return { type: "INVALID", stroke: "INVALID" };
439
+ if (n.type === "arrow_open")
440
+ n.type = a.type;
441
+ else {
442
+ if (n.type !== a.type)
443
+ return { type: "INVALID", stroke: "INVALID" };
444
+ n.type = "double_" + n.type;
445
+ }
446
+ return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = a.length, n;
447
+ }
448
+ return a;
449
+ }
450
+ // Todo optimizer this by caching existing nodes
451
+ exists(i, r) {
452
+ for (const a of i)
453
+ if (a.nodes.includes(r))
454
+ return !0;
455
+ return !1;
456
+ }
457
+ /**
458
+ * Deletes an id from all subgraphs
459
+ *
460
+ */
461
+ makeUniq(i, r) {
462
+ const a = [];
463
+ return i.nodes.forEach((n, c) => {
464
+ this.exists(r, n) || a.push(i.nodes[c]);
465
+ }), { nodes: a };
466
+ }
467
+ getTypeFromVertex(i) {
468
+ if (i.img)
469
+ return "imageSquare";
470
+ if (i.icon)
471
+ return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
472
+ switch (i.type) {
473
+ case "square":
474
+ case void 0:
475
+ return "squareRect";
476
+ case "round":
477
+ return "roundedRect";
478
+ case "ellipse":
479
+ return "ellipse";
480
+ default:
481
+ return i.type;
482
+ }
483
+ }
484
+ findNode(i, r) {
485
+ return i.find((a) => a.id === r);
486
+ }
487
+ destructEdgeType(i) {
488
+ let r = "none", a = "arrow_point";
489
+ switch (i) {
490
+ case "arrow_point":
491
+ case "arrow_circle":
492
+ case "arrow_cross":
493
+ a = i;
494
+ break;
495
+ case "double_arrow_point":
496
+ case "double_arrow_circle":
497
+ case "double_arrow_cross":
498
+ r = i.replace("double_", ""), a = r;
499
+ break;
500
+ }
501
+ return { arrowTypeStart: r, arrowTypeEnd: a };
502
+ }
503
+ addNodeFromVertex(i, r, a, n, c, g) {
504
+ const l = a.get(i.id), m = n.get(i.id) ?? !1, p = this.findNode(r, i.id);
505
+ if (p)
506
+ p.cssStyles = i.styles, p.cssCompiledStyles = this.getCompiledStyles(i.classes), p.cssClasses = i.classes.join(" ");
507
+ else {
508
+ const F = {
509
+ id: i.id,
510
+ label: i.text,
511
+ labelType: i.labelType,
512
+ labelStyle: "",
513
+ parentId: l,
514
+ padding: c.flowchart?.padding || 8,
515
+ cssStyles: i.styles,
516
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
517
+ cssClasses: "default " + i.classes.join(" "),
518
+ dir: i.dir,
519
+ domId: i.domId,
520
+ look: g,
521
+ link: i.link,
522
+ linkTarget: i.linkTarget,
523
+ tooltip: this.getTooltip(i.id),
524
+ icon: i.icon,
525
+ pos: i.pos,
526
+ img: i.img,
527
+ assetWidth: i.assetWidth,
528
+ assetHeight: i.assetHeight,
529
+ constraint: i.constraint
530
+ };
531
+ m ? r.push({
532
+ ...F,
533
+ isGroup: !0,
534
+ shape: "rect"
535
+ }) : r.push({
536
+ ...F,
537
+ isGroup: !1,
538
+ shape: this.getTypeFromVertex(i)
539
+ });
540
+ }
541
+ }
542
+ getCompiledStyles(i) {
543
+ let r = [];
544
+ for (const a of i) {
545
+ const n = this.classes.get(a);
546
+ n?.styles && (r = [...r, ...n.styles ?? []].map((c) => c.trim())), n?.textStyles && (r = [...r, ...n.textStyles ?? []].map((c) => c.trim()));
547
+ }
548
+ return r;
549
+ }
550
+ getData() {
551
+ const i = ke(), r = [], a = [], n = this.getSubGraphs(), c = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
552
+ for (const u of n)
553
+ for (const h of u.nodes)
554
+ this.subGraphLookup.has(h) && l.set(h, u.id);
555
+ const m = /* @__PURE__ */ k((u) => this.subGraphLookup.get(u)?.metadata?.view === "collapsed", "isCollapsed"), p = /* @__PURE__ */ k((u) => {
556
+ let h;
557
+ const j = /* @__PURE__ */ new Set();
558
+ let B = u;
559
+ for (; B !== void 0 && !j.has(B); )
560
+ j.add(B), m(B) && (h = B), B = l.get(B);
561
+ return h;
562
+ }, "outermostCollapsed"), F = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Map();
563
+ for (const u of n) {
564
+ const h = p(u.id);
565
+ if (h !== void 0) {
566
+ u.id !== h && (F.add(u.id), _.set(u.id, h));
567
+ for (const j of u.nodes)
568
+ j !== h && (F.add(j), _.set(j, h));
569
+ }
570
+ }
571
+ for (let u = n.length - 1; u >= 0; u--) {
572
+ const h = n[u];
573
+ if (!F.has(h.id)) {
574
+ h.nodes.length > 0 && g.set(h.id, !0);
575
+ for (const j of h.nodes)
576
+ c.set(j, h.id);
577
+ }
578
+ }
579
+ for (let u = n.length - 1; u >= 0; u--) {
580
+ const h = n[u];
581
+ F.has(h.id) || (h.metadata?.view === "collapsed" ? r.push({
582
+ id: h.id,
583
+ label: h.title,
584
+ labelStyle: "",
585
+ labelType: h.labelType,
586
+ parentId: c.get(h.id),
587
+ padding: 8,
588
+ cssCompiledStyles: this.getCompiledStyles(h.classes),
589
+ cssClasses: h.classes.join(" "),
590
+ shape: "collapsedGroup",
591
+ dir: h.dir,
592
+ isGroup: !1,
593
+ look: i.look
594
+ }) : r.push({
595
+ id: h.id,
596
+ label: h.title,
597
+ labelStyle: "",
598
+ labelType: h.labelType,
599
+ parentId: c.get(h.id),
600
+ padding: 8,
601
+ cssCompiledStyles: this.getCompiledStyles(h.classes),
602
+ cssClasses: h.classes.join(" "),
603
+ shape: "rect",
604
+ dir: h.dir,
605
+ isGroup: !0,
606
+ look: i.look
607
+ }));
608
+ }
609
+ this.getVertices().forEach((u) => {
610
+ F.has(u.id) || this.addNodeFromVertex(u, r, c, g, i, i.look || "classic");
611
+ });
612
+ const A = this.getEdges();
613
+ return A.forEach((u, h) => {
614
+ const { arrowTypeStart: j, arrowTypeEnd: B } = this.destructEdgeType(u.type), Z = [...A.defaultStyle ?? []], pe = _.get(u.start) ?? u.start, fe = _.get(u.end) ?? u.end;
615
+ if (pe === fe && (_.has(u.start) || _.has(u.end)))
616
+ return;
617
+ u.style && Z.push(...u.style);
618
+ const V = {
619
+ id: st(pe, fe, { counter: h, prefix: "L" }, u.id),
620
+ isUserDefinedId: u.isUserDefinedId,
621
+ start: pe,
622
+ end: fe,
623
+ type: u.type ?? "normal",
624
+ label: u.text,
625
+ labelType: u.labelType,
626
+ labelpos: "c",
627
+ thickness: u.stroke,
628
+ minlen: u.length,
629
+ classes: u?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
630
+ arrowTypeStart: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : j,
631
+ arrowTypeEnd: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : B,
632
+ arrowheadStyle: "fill: #333",
633
+ cssCompiledStyles: this.getCompiledStyles(u.classes),
634
+ labelStyle: Z,
635
+ style: Z,
636
+ pattern: u.stroke,
637
+ look: i.look,
638
+ animate: u.animate,
639
+ animation: u.animation,
640
+ curve: u.interpolate || this.edges.defaultInterpolate || i.flowchart?.curve
641
+ };
642
+ a.push(V);
643
+ }), { nodes: r, edges: a, other: {}, config: i };
644
+ }
645
+ defaultConfig() {
646
+ return p1.flowchart;
647
+ }
648
+ }, k(Pe, "FlowDB"), Pe), m1 = /* @__PURE__ */ k(function(s, i) {
649
+ return i.db.getClasses();
650
+ }, "getClasses"), C1 = /* @__PURE__ */ k(async function(s, i, r, a) {
651
+ $.info("REF0:"), $.info("Drawing state diagram (v2)", i);
652
+ const { securityLevel: n, flowchart: c, layout: g } = ke();
653
+ a.db.setDiagramId(i), $.debug("Before getData: ");
654
+ const l = a.db.getData();
655
+ $.debug("Data: ", l);
656
+ const m = Qt(i, n), p = a.db.getDirection();
657
+ l.type = a.type, l.layoutAlgorithm = $t(g), l.layoutAlgorithm === "dagre" && g === "elk" && $.warn(
658
+ "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."
659
+ ), l.direction = p, l.nodeSpacing = c?.nodeSpacing || 50, l.rankSpacing = c?.rankSpacing || 50, l.markers = ["point", "circle", "cross"], l.diagramId = i, $.debug("REF1:", l), await e1(l, m);
660
+ const F = l.config.flowchart?.diagramPadding ?? 8;
661
+ rt.insertTitle(
662
+ m,
663
+ "flowchartTitleText",
664
+ c?.titleTopMargin || 0,
665
+ a.db.getDiagramTitle()
666
+ ), Zt(m, F, "flowchart", c?.useMaxWidth || !1);
667
+ }, "draw"), D1 = {
668
+ getClasses: m1,
669
+ draw: C1
670
+ }, at = function() {
671
+ var s = /* @__PURE__ */ k(function(Ae, d, f, b) {
672
+ for (f = f || {}, b = Ae.length; b--; f[Ae[b]] = d) ;
673
+ return f;
674
+ }, "o"), i = [1, 4], r = [1, 3], a = [1, 5], n = [1, 8, 9, 10, 11, 27, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], c = [2, 2], g = [1, 13], l = [1, 14], m = [1, 15], p = [1, 16], F = [1, 23], _ = [1, 25], L = [1, 26], A = [1, 27], u = [1, 50], h = [1, 49], j = [1, 29], B = [1, 30], Z = [1, 31], pe = [1, 32], fe = [1, 33], V = [1, 45], w = [1, 47], R = [1, 43], N = [1, 48], G = [1, 44], P = [1, 51], O = [1, 46], M = [1, 52], U = [1, 53], Me = [1, 34], Ue = [1, 35], ze = [1, 36], We = [1, 37], je = [1, 38], ge = [1, 58], E = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], te = [1, 62], se = [1, 61], ie = [1, 63], Te = [8, 9, 11, 75, 77, 78], nt = [1, 79], Se = [1, 92], Ee = [1, 97], ye = [1, 96], xe = [1, 93], Fe = [1, 89], _e = [1, 95], Be = [1, 91], ve = [1, 98], Le = [1, 94], Ve = [1, 99], Ie = [1, 90], me = [8, 9, 10, 11, 40, 75, 77, 78], W = [8, 9, 10, 11, 40, 46, 75, 77, 78], H = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], ut = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], we = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], ot = [1, 122], lt = [1, 123], Ke = [1, 125], Ye = [1, 124], ct = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], ht = [1, 134], dt = [1, 148], pt = [1, 149], ft = [1, 150], gt = [1, 151], bt = [1, 136], At = [1, 138], kt = [1, 142], mt = [1, 143], Ct = [1, 144], Dt = [1, 145], Tt = [1, 146], St = [1, 147], Et = [1, 152], yt = [1, 153], xt = [1, 132], Ft = [1, 133], _t = [1, 140], Bt = [1, 135], vt = [1, 139], Lt = [1, 137], Qe = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], Vt = [1, 155], It = [1, 157], v = [8, 9, 11], X = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], C = [1, 177], K = [1, 173], Y = [1, 174], D = [1, 178], T = [1, 175], S = [1, 176], Re = [77, 116, 119], y = [8, 9, 10, 11, 12, 14, 27, 29, 32, 44, 60, 75, 84, 85, 86, 87, 88, 89, 90, 105, 109, 111, 114, 115, 116], wt = [10, 106], be = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], re = [1, 248], ae = [1, 246], ne = [1, 250], ue = [1, 244], oe = [1, 245], le = [1, 247], ce = [1, 249], he = [1, 251], Ne = [1, 269], Rt = [8, 9, 11, 106], ee = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Ze = {
675
+ trace: /* @__PURE__ */ k(function() {
676
+ }, "trace"),
677
+ yy: {},
678
+ symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeparator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, vertexStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, shapeData: 39, SHAPE_DATA: 40, link: 41, node: 42, styledVertex: 43, AMP: 44, vertex: 45, STYLE_SEPARATOR: 46, idString: 47, DOUBLECIRCLESTART: 48, DOUBLECIRCLEEND: 49, PS: 50, PE: 51, "(-": 52, "-)": 53, STADIUMSTART: 54, STADIUMEND: 55, SUBROUTINESTART: 56, SUBROUTINEEND: 57, VERTEX_WITH_PROPS_START: 58, "NODE_STRING[field]": 59, COLON: 60, "NODE_STRING[value]": 61, PIPE: 62, CYLINDERSTART: 63, CYLINDEREND: 64, DIAMOND_START: 65, DIAMOND_STOP: 66, TAGEND: 67, TRAPSTART: 68, TRAPEND: 69, INVTRAPSTART: 70, INVTRAPEND: 71, linkStatement: 72, arrowText: 73, TESTSTR: 74, START_LINK: 75, edgeText: 76, LINK: 77, LINK_ID: 78, edgeTextToken: 79, STR: 80, MD_STR: 81, textToken: 82, keywords: 83, STYLE: 84, LINKSTYLE: 85, CLASSDEF: 86, CLASS: 87, CLICK: 88, DOWN: 89, UP: 90, textNoTagsToken: 91, stylesOpt: 92, "idString[vertex]": 93, "idString[class]": 94, CALLBACKNAME: 95, CALLBACKARGS: 96, HREF: 97, LINK_TARGET: 98, "STR[link]": 99, "STR[tooltip]": 100, alphaNum: 101, DEFAULT: 102, numList: 103, INTERPOLATE: 104, NUM: 105, COMMA: 106, style: 107, styleComponent: 108, NODE_STRING: 109, UNIT: 110, BRKT: 111, PCT: 112, idStringToken: 113, MINUS: 114, MULT: 115, UNICODE_TEXT: 116, TEXT: 117, TAGSTART: 118, EDGE_TEXT: 119, alphaNumToken: 120, direction_tb: 121, direction_bt: 122, direction_rl: 123, direction_lr: 124, direction_td: 125, $accept: 0, $end: 1 },
679
+ terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr", 125: "direction_td" },
680
+ productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1], [33, 1]],
681
+ performAction: /* @__PURE__ */ k(function(d, f, b, o, x, e, Oe) {
682
+ var t = e.length - 1;
683
+ switch (x) {
684
+ case 2:
685
+ this.$ = [];
686
+ break;
687
+ case 3:
688
+ (!Array.isArray(e[t]) || e[t].length > 0) && e[t - 1].push(e[t]), this.$ = e[t - 1];
689
+ break;
690
+ case 4:
691
+ case 183:
692
+ this.$ = e[t];
693
+ break;
694
+ case 11:
695
+ o.setDirection("TB"), this.$ = "TB";
696
+ break;
697
+ case 12:
698
+ o.setDirection(e[t - 1]), this.$ = e[t - 1];
699
+ break;
700
+ case 27:
701
+ this.$ = e[t - 1].nodes;
702
+ break;
703
+ case 28:
704
+ case 29:
705
+ case 30:
706
+ case 31:
707
+ case 32:
708
+ this.$ = [];
709
+ break;
710
+ case 33:
711
+ this.$ = o.addSubGraph(e[t - 6], e[t - 1], e[t - 4]);
712
+ break;
713
+ case 34:
714
+ this.$ = o.addSubGraph(e[t - 3], e[t - 1], e[t - 3]);
715
+ break;
716
+ case 35:
717
+ this.$ = o.addSubGraph(void 0, e[t - 1], void 0);
718
+ break;
719
+ case 37:
720
+ this.$ = e[t].trim(), o.setAccTitle(this.$);
721
+ break;
722
+ case 38:
723
+ case 39:
724
+ this.$ = e[t].trim(), o.setAccDescription(this.$);
725
+ break;
726
+ case 43:
727
+ this.$ = e[t - 1] + e[t];
728
+ break;
729
+ case 44:
730
+ this.$ = e[t];
731
+ break;
732
+ case 45:
733
+ o.addVertex(e[t - 1][e[t - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t]), o.addLink(e[t - 3].stmt, e[t - 1], e[t - 2]), this.$ = { stmt: e[t - 1], nodes: e[t - 1].concat(e[t - 3].nodes) };
734
+ break;
735
+ case 46:
736
+ o.addLink(e[t - 2].stmt, e[t], e[t - 1]), this.$ = { stmt: e[t], nodes: e[t].concat(e[t - 2].nodes) };
737
+ break;
738
+ case 47:
739
+ o.addLink(e[t - 3].stmt, e[t - 1], e[t - 2]), this.$ = { stmt: e[t - 1], nodes: e[t - 1].concat(e[t - 3].nodes) };
740
+ break;
741
+ case 48:
742
+ this.$ = { stmt: e[t - 1], nodes: e[t - 1] };
743
+ break;
744
+ case 49:
745
+ o.addVertex(e[t - 1][e[t - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t]), this.$ = { stmt: e[t - 1], nodes: e[t - 1], shapeData: e[t] };
746
+ break;
747
+ case 50:
748
+ this.$ = { stmt: e[t], nodes: e[t] };
749
+ break;
750
+ case 51:
751
+ this.$ = [e[t]];
752
+ break;
753
+ case 52:
754
+ o.addVertex(e[t - 5][e[t - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t - 4]), this.$ = e[t - 5].concat(e[t]);
755
+ break;
756
+ case 53:
757
+ this.$ = e[t - 4].concat(e[t]);
758
+ break;
759
+ case 54:
760
+ this.$ = e[t];
761
+ break;
762
+ case 55:
763
+ this.$ = e[t - 2], o.setClass(e[t - 2], e[t]);
764
+ break;
765
+ case 56:
766
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "square");
767
+ break;
768
+ case 57:
769
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "doublecircle");
770
+ break;
771
+ case 58:
772
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "circle");
773
+ break;
774
+ case 59:
775
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "ellipse");
776
+ break;
777
+ case 60:
778
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "stadium");
779
+ break;
780
+ case 61:
781
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "subroutine");
782
+ break;
783
+ case 62:
784
+ this.$ = e[t - 7], o.addVertex(e[t - 7], e[t - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[e[t - 5], e[t - 3]]]));
785
+ break;
786
+ case 63:
787
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "cylinder");
788
+ break;
789
+ case 64:
790
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "round");
791
+ break;
792
+ case 65:
793
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "diamond");
794
+ break;
795
+ case 66:
796
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "hexagon");
797
+ break;
798
+ case 67:
799
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "odd");
800
+ break;
801
+ case 68:
802
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "trapezoid");
803
+ break;
804
+ case 69:
805
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "inv_trapezoid");
806
+ break;
807
+ case 70:
808
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_right");
809
+ break;
810
+ case 71:
811
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_left");
812
+ break;
813
+ case 72:
814
+ this.$ = e[t], o.addVertex(e[t]);
815
+ break;
816
+ case 73:
817
+ e[t - 1].text = e[t], this.$ = e[t - 1];
818
+ break;
819
+ case 74:
820
+ case 75:
821
+ e[t - 2].text = e[t - 1], this.$ = e[t - 2];
822
+ break;
823
+ case 76:
824
+ this.$ = e[t];
825
+ break;
826
+ case 77:
827
+ var I = o.destructLink(e[t], e[t - 2]);
828
+ this.$ = { type: I.type, stroke: I.stroke, length: I.length, text: e[t - 1] };
829
+ break;
830
+ case 78:
831
+ var I = o.destructLink(e[t], e[t - 2]);
832
+ this.$ = { type: I.type, stroke: I.stroke, length: I.length, text: e[t - 1], id: e[t - 3] };
833
+ break;
834
+ case 79:
835
+ this.$ = { text: e[t], type: "text" };
836
+ break;
837
+ case 80:
838
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
839
+ break;
840
+ case 81:
841
+ this.$ = { text: e[t], type: "string" };
842
+ break;
843
+ case 82:
844
+ this.$ = { text: e[t], type: "markdown" };
845
+ break;
846
+ case 83:
847
+ var I = o.destructLink(e[t]);
848
+ this.$ = { type: I.type, stroke: I.stroke, length: I.length };
849
+ break;
850
+ case 84:
851
+ var I = o.destructLink(e[t]);
852
+ this.$ = { type: I.type, stroke: I.stroke, length: I.length, id: e[t - 1] };
853
+ break;
854
+ case 85:
855
+ this.$ = e[t - 1];
856
+ break;
857
+ case 86:
858
+ this.$ = { text: e[t], type: "text" };
859
+ break;
860
+ case 87:
861
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
862
+ break;
863
+ case 88:
864
+ this.$ = { text: e[t], type: "string" };
865
+ break;
866
+ case 89:
867
+ case 104:
868
+ this.$ = { text: e[t], type: "markdown" };
869
+ break;
870
+ case 101:
871
+ this.$ = { text: e[t], type: "text" };
872
+ break;
873
+ case 102:
874
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
875
+ break;
876
+ case 103:
877
+ this.$ = { text: e[t], type: "text" };
878
+ break;
879
+ case 105:
880
+ this.$ = e[t - 4], o.addClass(e[t - 2], e[t]);
881
+ break;
882
+ case 106:
883
+ this.$ = e[t - 4], o.setClass(e[t - 2], e[t]);
884
+ break;
885
+ case 107:
886
+ case 115:
887
+ this.$ = e[t - 1], o.setClickEvent(e[t - 1], e[t]);
888
+ break;
889
+ case 108:
890
+ case 116:
891
+ this.$ = e[t - 3], o.setClickEvent(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
892
+ break;
893
+ case 109:
894
+ this.$ = e[t - 2], o.setClickEvent(e[t - 2], e[t - 1], e[t]);
895
+ break;
896
+ case 110:
897
+ this.$ = e[t - 4], o.setClickEvent(e[t - 4], e[t - 3], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
898
+ break;
899
+ case 111:
900
+ this.$ = e[t - 2], o.setLink(e[t - 2], e[t]);
901
+ break;
902
+ case 112:
903
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
904
+ break;
905
+ case 113:
906
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2], e[t]);
907
+ break;
908
+ case 114:
909
+ this.$ = e[t - 6], o.setLink(e[t - 6], e[t - 4], e[t]), o.setTooltip(e[t - 6], e[t - 2]);
910
+ break;
911
+ case 117:
912
+ this.$ = e[t - 1], o.setLink(e[t - 1], e[t]);
913
+ break;
914
+ case 118:
915
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
916
+ break;
917
+ case 119:
918
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2], e[t]);
919
+ break;
920
+ case 120:
921
+ this.$ = e[t - 5], o.setLink(e[t - 5], e[t - 4], e[t]), o.setTooltip(e[t - 5], e[t - 2]);
922
+ break;
923
+ case 121:
924
+ this.$ = e[t - 4], o.addVertex(e[t - 2], void 0, void 0, e[t]);
925
+ break;
926
+ case 122:
927
+ this.$ = e[t - 4], o.updateLink([e[t - 2]], e[t]);
928
+ break;
929
+ case 123:
930
+ this.$ = e[t - 4], o.updateLink(e[t - 2], e[t]);
931
+ break;
932
+ case 124:
933
+ this.$ = e[t - 8], o.updateLinkInterpolate([e[t - 6]], e[t - 2]), o.updateLink([e[t - 6]], e[t]);
934
+ break;
935
+ case 125:
936
+ this.$ = e[t - 8], o.updateLinkInterpolate(e[t - 6], e[t - 2]), o.updateLink(e[t - 6], e[t]);
937
+ break;
938
+ case 126:
939
+ this.$ = e[t - 6], o.updateLinkInterpolate([e[t - 4]], e[t]);
940
+ break;
941
+ case 127:
942
+ this.$ = e[t - 6], o.updateLinkInterpolate(e[t - 4], e[t]);
943
+ break;
944
+ case 128:
945
+ case 130:
946
+ this.$ = [e[t]];
947
+ break;
948
+ case 129:
949
+ case 131:
950
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
951
+ break;
952
+ case 133:
953
+ this.$ = e[t - 1] + e[t];
954
+ break;
955
+ case 181:
956
+ this.$ = e[t];
957
+ break;
958
+ case 182:
959
+ this.$ = e[t - 1] + "" + e[t];
960
+ break;
961
+ case 184:
962
+ this.$ = e[t - 1] + "" + e[t];
963
+ break;
964
+ case 185:
965
+ this.$ = { stmt: "dir", value: "TB" };
966
+ break;
967
+ case 186:
968
+ this.$ = { stmt: "dir", value: "BT" };
969
+ break;
970
+ case 187:
971
+ this.$ = { stmt: "dir", value: "RL" };
972
+ break;
973
+ case 188:
974
+ this.$ = { stmt: "dir", value: "LR" };
975
+ break;
976
+ case 189:
977
+ this.$ = { stmt: "dir", value: "TD" };
978
+ break;
979
+ }
980
+ }, "anonymous"),
981
+ table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, s(n, c, { 5: 6 }), { 4: 7, 9: i, 10: r, 12: a }, { 4: 8, 9: i, 10: r, 12: a }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: g, 9: l, 10: m, 11: p, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: F, 33: 24, 34: _, 36: L, 38: A, 42: 28, 43: 39, 44: u, 45: 40, 47: 41, 60: h, 84: j, 85: B, 86: Z, 87: pe, 88: fe, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, s(n, [2, 9]), s(n, [2, 10]), s(n, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: ge, 15: 54, 18: 57 }, s(E, [2, 3]), s(E, [2, 4]), s(E, [2, 5]), s(E, [2, 6]), s(E, [2, 7]), s(E, [2, 8]), { 8: te, 9: se, 11: ie, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: te, 9: se, 11: ie, 21: 68 }, { 8: te, 9: se, 11: ie, 21: 69 }, { 8: te, 9: se, 11: ie, 21: 70 }, { 8: te, 9: se, 11: ie, 21: 71 }, { 8: te, 9: se, 11: ie, 21: 72 }, { 8: te, 9: se, 10: [1, 73], 11: ie, 21: 74 }, s(E, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, s(E, [2, 39]), s(Te, [2, 50], { 18: 77, 39: 78, 10: ge, 40: nt }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: Se, 44: Ee, 60: ye, 80: [1, 87], 89: xe, 95: [1, 84], 97: [1, 85], 101: 86, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie, 120: 88 }, s(E, [2, 185]), s(E, [2, 186]), s(E, [2, 187]), s(E, [2, 188]), s(E, [2, 189]), s(me, [2, 51]), s(me, [2, 54], { 46: [1, 100] }), s(W, [2, 72], { 113: 113, 29: [1, 101], 44: u, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: h, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 114: O, 115: M, 116: U }), s(H, [2, 181]), s(H, [2, 142]), s(H, [2, 143]), s(H, [2, 144]), s(H, [2, 145]), s(H, [2, 146]), s(H, [2, 147]), s(H, [2, 148]), s(H, [2, 149]), s(H, [2, 150]), s(H, [2, 151]), s(H, [2, 152]), s(n, [2, 12]), s(n, [2, 18]), s(n, [2, 19]), { 9: [1, 114] }, s(ut, [2, 26], { 18: 115, 10: ge }), s(E, [2, 27]), { 42: 116, 43: 39, 44: u, 45: 40, 47: 41, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, s(E, [2, 40]), s(E, [2, 41]), s(E, [2, 42]), s(we, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: ot, 81: lt, 116: Ke, 119: Ye }, { 75: [1, 126], 77: [1, 127] }, s(ct, [2, 83]), s(E, [2, 28]), s(E, [2, 29]), s(E, [2, 30]), s(E, [2, 31]), s(E, [2, 32]), { 10: ht, 12: dt, 14: pt, 27: ft, 28: 128, 32: gt, 44: bt, 60: At, 75: kt, 80: [1, 130], 81: [1, 131], 83: 141, 84: mt, 85: Ct, 86: Dt, 87: Tt, 88: St, 89: Et, 90: yt, 91: 129, 105: xt, 109: Ft, 111: _t, 114: Bt, 115: vt, 116: Lt }, s(Qe, c, { 5: 154 }), s(E, [2, 37]), s(E, [2, 38]), s(Te, [2, 48], { 44: Vt }), s(Te, [2, 49], { 18: 156, 10: ge, 40: It }), s(me, [2, 44]), { 44: u, 47: 158, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: u, 47: 162, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, { 44: u, 47: 163, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, s(v, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, s(v, [2, 115], { 120: 168, 10: [1, 167], 14: Se, 44: Ee, 60: ye, 89: xe, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie }), s(v, [2, 117], { 10: [1, 169] }), s(X, [2, 183]), s(X, [2, 170]), s(X, [2, 171]), s(X, [2, 172]), s(X, [2, 173]), s(X, [2, 174]), s(X, [2, 175]), s(X, [2, 176]), s(X, [2, 177]), s(X, [2, 178]), s(X, [2, 179]), s(X, [2, 180]), { 44: u, 47: 170, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, { 30: 171, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 179, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 181, 50: [1, 180], 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 182, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 183, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 184, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 109: [1, 185] }, { 30: 186, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 187, 65: [1, 188], 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 189, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 190, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 30: 191, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, s(H, [2, 182]), s(n, [2, 20]), s(ut, [2, 25]), s(Te, [2, 46], { 39: 192, 18: 193, 10: ge, 40: nt }), s(we, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 77: [1, 197], 79: 198, 116: Ke, 119: Ye }, s(Re, [2, 79]), s(Re, [2, 81]), s(Re, [2, 82]), s(Re, [2, 168]), s(Re, [2, 169]), { 76: 199, 79: 121, 80: ot, 81: lt, 116: Ke, 119: Ye }, s(ct, [2, 84]), { 8: te, 9: se, 10: ht, 11: ie, 12: dt, 14: pt, 21: 201, 27: ft, 29: [1, 200], 32: gt, 44: bt, 60: At, 75: kt, 83: 141, 84: mt, 85: Ct, 86: Dt, 87: Tt, 88: St, 89: Et, 90: yt, 91: 202, 105: xt, 109: Ft, 111: _t, 114: Bt, 115: vt, 116: Lt }, s(y, [2, 101]), s(y, [2, 103]), s(y, [2, 104]), s(y, [2, 157]), s(y, [2, 158]), s(y, [2, 159]), s(y, [2, 160]), s(y, [2, 161]), s(y, [2, 162]), s(y, [2, 163]), s(y, [2, 164]), s(y, [2, 165]), s(y, [2, 166]), s(y, [2, 167]), s(y, [2, 90]), s(y, [2, 91]), s(y, [2, 92]), s(y, [2, 93]), s(y, [2, 94]), s(y, [2, 95]), s(y, [2, 96]), s(y, [2, 97]), s(y, [2, 98]), s(y, [2, 99]), s(y, [2, 100]), { 6: 11, 7: 12, 8: g, 9: l, 10: m, 11: p, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: F, 32: [1, 203], 33: 24, 34: _, 36: L, 38: A, 42: 28, 43: 39, 44: u, 45: 40, 47: 41, 60: h, 84: j, 85: B, 86: Z, 87: pe, 88: fe, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, { 10: ge, 18: 204 }, { 44: [1, 205] }, s(me, [2, 43]), { 10: [1, 206], 44: u, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 113, 114: O, 115: M, 116: U }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, s(wt, [2, 128]), { 10: [1, 210], 44: u, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 113, 114: O, 115: M, 116: U }, { 10: [1, 211], 44: u, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 113, 114: O, 115: M, 116: U }, { 80: [1, 212] }, s(v, [2, 109], { 10: [1, 213] }), s(v, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, s(X, [2, 184]), { 80: [1, 216], 98: [1, 217] }, s(me, [2, 55], { 113: 113, 44: u, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 114: O, 115: M, 116: U }), { 31: [1, 218], 67: C, 82: 219, 116: D, 117: T, 118: S }, s(be, [2, 86]), s(be, [2, 88]), s(be, [2, 89]), s(be, [2, 153]), s(be, [2, 154]), s(be, [2, 155]), s(be, [2, 156]), { 49: [1, 220], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 30: 221, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 51: [1, 222], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 53: [1, 223], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 55: [1, 224], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 57: [1, 225], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 60: [1, 226] }, { 64: [1, 227], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 66: [1, 228], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 30: 229, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, { 31: [1, 230], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 67: C, 69: [1, 231], 71: [1, 232], 82: 219, 116: D, 117: T, 118: S }, { 67: C, 69: [1, 234], 71: [1, 233], 82: 219, 116: D, 117: T, 118: S }, s(Te, [2, 45], { 18: 156, 10: ge, 40: It }), s(Te, [2, 47], { 44: Vt }), s(we, [2, 75]), s(we, [2, 74]), { 62: [1, 235], 67: C, 82: 219, 116: D, 117: T, 118: S }, s(we, [2, 77]), s(Re, [2, 80]), { 77: [1, 236], 79: 198, 116: Ke, 119: Ye }, { 30: 237, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, s(Qe, c, { 5: 238 }), s(y, [2, 102]), s(E, [2, 35]), { 43: 239, 44: u, 45: 40, 47: 41, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, { 10: ge, 18: 240 }, { 10: re, 60: ae, 84: ne, 92: 241, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 252, 104: [1, 253], 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 254, 104: [1, 255], 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 105: [1, 256] }, { 10: re, 60: ae, 84: ne, 92: 257, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 44: u, 47: 258, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, s(v, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, s(v, [2, 116]), s(v, [2, 118], { 10: [1, 262] }), s(v, [2, 119]), s(W, [2, 56]), s(be, [2, 87]), s(W, [2, 57]), { 51: [1, 263], 67: C, 82: 219, 116: D, 117: T, 118: S }, s(W, [2, 64]), s(W, [2, 59]), s(W, [2, 60]), s(W, [2, 61]), { 109: [1, 264] }, s(W, [2, 63]), s(W, [2, 65]), { 66: [1, 265], 67: C, 82: 219, 116: D, 117: T, 118: S }, s(W, [2, 67]), s(W, [2, 68]), s(W, [2, 70]), s(W, [2, 69]), s(W, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(we, [2, 78]), { 31: [1, 266], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 6: 11, 7: 12, 8: g, 9: l, 10: m, 11: p, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: F, 32: [1, 267], 33: 24, 34: _, 36: L, 38: A, 42: 28, 43: 39, 44: u, 45: 40, 47: 41, 60: h, 84: j, 85: B, 86: Z, 87: pe, 88: fe, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, s(me, [2, 53]), { 43: 268, 44: u, 45: 40, 47: 41, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U }, s(v, [2, 121], { 106: Ne }), s(Rt, [2, 130], { 108: 270, 10: re, 60: ae, 84: ne, 105: ue, 109: oe, 110: le, 111: ce, 112: he }), s(ee, [2, 132]), s(ee, [2, 134]), s(ee, [2, 135]), s(ee, [2, 136]), s(ee, [2, 137]), s(ee, [2, 138]), s(ee, [2, 139]), s(ee, [2, 140]), s(ee, [2, 141]), s(v, [2, 122], { 106: Ne }), { 10: [1, 271] }, s(v, [2, 123], { 106: Ne }), { 10: [1, 272] }, s(wt, [2, 129]), s(v, [2, 105], { 106: Ne }), s(v, [2, 106], { 113: 113, 44: u, 60: h, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 114: O, 115: M, 116: U }), s(v, [2, 110]), s(v, [2, 112], { 10: [1, 273] }), s(v, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: te, 9: se, 11: ie, 21: 278 }, s(E, [2, 34]), s(me, [2, 52]), { 10: re, 60: ae, 84: ne, 105: ue, 107: 279, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, s(ee, [2, 133]), { 14: Se, 44: Ee, 60: ye, 89: xe, 101: 280, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie, 120: 88 }, { 14: Se, 44: Ee, 60: ye, 89: xe, 101: 281, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie, 120: 88 }, { 98: [1, 282] }, s(v, [2, 120]), s(W, [2, 58]), { 30: 283, 67: C, 80: K, 81: Y, 82: 172, 116: D, 117: T, 118: S }, s(W, [2, 66]), s(Qe, c, { 5: 284 }), s(Rt, [2, 131], { 108: 270, 10: re, 60: ae, 84: ne, 105: ue, 109: oe, 110: le, 111: ce, 112: he }), s(v, [2, 126], { 120: 168, 10: [1, 285], 14: Se, 44: Ee, 60: ye, 89: xe, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie }), s(v, [2, 127], { 120: 168, 10: [1, 286], 14: Se, 44: Ee, 60: ye, 89: xe, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie }), s(v, [2, 114]), { 31: [1, 287], 67: C, 82: 219, 116: D, 117: T, 118: S }, { 6: 11, 7: 12, 8: g, 9: l, 10: m, 11: p, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: F, 32: [1, 288], 33: 24, 34: _, 36: L, 38: A, 42: 28, 43: 39, 44: u, 45: 40, 47: 41, 60: h, 84: j, 85: B, 86: Z, 87: pe, 88: fe, 89: V, 102: w, 105: R, 106: N, 109: G, 111: P, 113: 42, 114: O, 115: M, 116: U, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, { 10: re, 60: ae, 84: ne, 92: 289, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 290, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, s(W, [2, 62]), s(E, [2, 33]), s(v, [2, 124], { 106: Ne }), s(v, [2, 125], { 106: Ne })],
982
+ defaultActions: {},
983
+ parseError: /* @__PURE__ */ k(function(d, f) {
984
+ if (f.recoverable)
985
+ this.trace(d);
986
+ else {
987
+ var b = new Error(d);
988
+ throw b.hash = f, b;
989
+ }
990
+ }, "parseError"),
991
+ parse: /* @__PURE__ */ k(function(d) {
992
+ var f = this, b = [0], o = [], x = [null], e = [], Oe = this.table, t = "", I = 0, Nt = 0, Kt = 2, Gt = 1, Yt = e.slice.call(arguments, 1), z = Object.create(this.lexer), Ce = { yy: {} };
993
+ for (var Je in this.yy)
994
+ Object.prototype.hasOwnProperty.call(this.yy, Je) && (Ce.yy[Je] = this.yy[Je]);
995
+ z.setInput(d, Ce.yy), Ce.yy.lexer = z, Ce.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {});
996
+ var $e = z.yylloc;
997
+ e.push($e);
998
+ var qt = z.options && z.options.ranges;
999
+ typeof Ce.yy.parseError == "function" ? this.parseError = Ce.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1000
+ function Ht(Q) {
1001
+ b.length = b.length - 2 * Q, x.length = x.length - Q, e.length = e.length - Q;
1002
+ }
1003
+ k(Ht, "popStack");
1004
+ function Pt() {
1005
+ var Q;
1006
+ return Q = o.pop() || z.lex() || Gt, typeof Q != "number" && (Q instanceof Array && (o = Q, Q = o.pop()), Q = f.symbols_[Q] || Q), Q;
1007
+ }
1008
+ k(Pt, "lex");
1009
+ for (var q, De, J, et, Ge = {}, He, de, Ot, Xe; ; ) {
1010
+ if (De = b[b.length - 1], this.defaultActions[De] ? J = this.defaultActions[De] : ((q === null || typeof q > "u") && (q = Pt()), J = Oe[De] && Oe[De][q]), typeof J > "u" || !J.length || !J[0]) {
1011
+ var tt = "";
1012
+ Xe = [];
1013
+ for (He in Oe[De])
1014
+ this.terminals_[He] && He > Kt && Xe.push("'" + this.terminals_[He] + "'");
1015
+ z.showPosition ? tt = "Parse error on line " + (I + 1) + `:
1016
+ ` + z.showPosition() + `
1017
+ Expecting ` + Xe.join(", ") + ", got '" + (this.terminals_[q] || q) + "'" : tt = "Parse error on line " + (I + 1) + ": Unexpected " + (q == Gt ? "end of input" : "'" + (this.terminals_[q] || q) + "'"), this.parseError(tt, {
1018
+ text: z.match,
1019
+ token: this.terminals_[q] || q,
1020
+ line: z.yylineno,
1021
+ loc: $e,
1022
+ expected: Xe
1023
+ });
1024
+ }
1025
+ if (J[0] instanceof Array && J.length > 1)
1026
+ throw new Error("Parse Error: multiple actions possible at state: " + De + ", token: " + q);
1027
+ switch (J[0]) {
1028
+ case 1:
1029
+ b.push(q), x.push(z.yytext), e.push(z.yylloc), b.push(J[1]), q = null, Nt = z.yyleng, t = z.yytext, I = z.yylineno, $e = z.yylloc;
1030
+ break;
1031
+ case 2:
1032
+ if (de = this.productions_[J[1]][1], Ge.$ = x[x.length - de], Ge._$ = {
1033
+ first_line: e[e.length - (de || 1)].first_line,
1034
+ last_line: e[e.length - 1].last_line,
1035
+ first_column: e[e.length - (de || 1)].first_column,
1036
+ last_column: e[e.length - 1].last_column
1037
+ }, qt && (Ge._$.range = [
1038
+ e[e.length - (de || 1)].range[0],
1039
+ e[e.length - 1].range[1]
1040
+ ]), et = this.performAction.apply(Ge, [
1041
+ t,
1042
+ Nt,
1043
+ I,
1044
+ Ce.yy,
1045
+ J[1],
1046
+ x,
1047
+ e
1048
+ ].concat(Yt)), typeof et < "u")
1049
+ return et;
1050
+ de && (b = b.slice(0, -1 * de * 2), x = x.slice(0, -1 * de), e = e.slice(0, -1 * de)), b.push(this.productions_[J[1]][0]), x.push(Ge.$), e.push(Ge._$), Ot = Oe[b[b.length - 2]][b[b.length - 1]], b.push(Ot);
1051
+ break;
1052
+ case 3:
1053
+ return !0;
1054
+ }
1055
+ }
1056
+ return !0;
1057
+ }, "parse")
1058
+ }, jt = /* @__PURE__ */ function() {
1059
+ var Ae = {
1060
+ EOF: 1,
1061
+ parseError: /* @__PURE__ */ k(function(f, b) {
1062
+ if (this.yy.parser)
1063
+ this.yy.parser.parseError(f, b);
1064
+ else
1065
+ throw new Error(f);
1066
+ }, "parseError"),
1067
+ // resets the lexer, sets new input
1068
+ setInput: /* @__PURE__ */ k(function(d, f) {
1069
+ return this.yy = f || this.yy || {}, this._input = d, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1070
+ first_line: 1,
1071
+ first_column: 0,
1072
+ last_line: 1,
1073
+ last_column: 0
1074
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1075
+ }, "setInput"),
1076
+ // consumes and returns one char from the input
1077
+ input: /* @__PURE__ */ k(function() {
1078
+ var d = this._input[0];
1079
+ this.yytext += d, this.yyleng++, this.offset++, this.match += d, this.matched += d;
1080
+ var f = d.match(/(?:\r\n?|\n).*/g);
1081
+ return f ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), d;
1082
+ }, "input"),
1083
+ // unshifts one char (or a string) into the input
1084
+ unput: /* @__PURE__ */ k(function(d) {
1085
+ var f = d.length, b = d.split(/(?:\r\n?|\n)/g);
1086
+ this._input = d + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
1087
+ var o = this.match.split(/(?:\r\n?|\n)/g);
1088
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
1089
+ var x = this.yylloc.range;
1090
+ return this.yylloc = {
1091
+ first_line: this.yylloc.first_line,
1092
+ last_line: this.yylineno + 1,
1093
+ first_column: this.yylloc.first_column,
1094
+ last_column: b ? (b.length === o.length ? this.yylloc.first_column : 0) + o[o.length - b.length].length - b[0].length : this.yylloc.first_column - f
1095
+ }, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
1096
+ }, "unput"),
1097
+ // When called from action, caches matched text and appends it on next action
1098
+ more: /* @__PURE__ */ k(function() {
1099
+ return this._more = !0, this;
1100
+ }, "more"),
1101
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1102
+ reject: /* @__PURE__ */ k(function() {
1103
+ if (this.options.backtrack_lexer)
1104
+ this._backtrack = !0;
1105
+ else
1106
+ 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).
1107
+ ` + this.showPosition(), {
1108
+ text: "",
1109
+ token: null,
1110
+ line: this.yylineno
1111
+ });
1112
+ return this;
1113
+ }, "reject"),
1114
+ // retain first n characters of the match
1115
+ less: /* @__PURE__ */ k(function(d) {
1116
+ this.unput(this.match.slice(d));
1117
+ }, "less"),
1118
+ // displays already matched input, i.e. for error messages
1119
+ pastInput: /* @__PURE__ */ k(function() {
1120
+ var d = this.matched.substr(0, this.matched.length - this.match.length);
1121
+ return (d.length > 20 ? "..." : "") + d.substr(-20).replace(/\n/g, "");
1122
+ }, "pastInput"),
1123
+ // displays upcoming input, i.e. for error messages
1124
+ upcomingInput: /* @__PURE__ */ k(function() {
1125
+ var d = this.match;
1126
+ return d.length < 20 && (d += this._input.substr(0, 20 - d.length)), (d.substr(0, 20) + (d.length > 20 ? "..." : "")).replace(/\n/g, "");
1127
+ }, "upcomingInput"),
1128
+ // displays the character position where the lexing error occurred, i.e. for error messages
1129
+ showPosition: /* @__PURE__ */ k(function() {
1130
+ var d = this.pastInput(), f = new Array(d.length + 1).join("-");
1131
+ return d + this.upcomingInput() + `
1132
+ ` + f + "^";
1133
+ }, "showPosition"),
1134
+ // test the lexed token: return FALSE when not a match, otherwise return token
1135
+ test_match: /* @__PURE__ */ k(function(d, f) {
1136
+ var b, o, x;
1137
+ if (this.options.backtrack_lexer && (x = {
1138
+ yylineno: this.yylineno,
1139
+ yylloc: {
1140
+ first_line: this.yylloc.first_line,
1141
+ last_line: this.last_line,
1142
+ first_column: this.yylloc.first_column,
1143
+ last_column: this.yylloc.last_column
1144
+ },
1145
+ yytext: this.yytext,
1146
+ match: this.match,
1147
+ matches: this.matches,
1148
+ matched: this.matched,
1149
+ yyleng: this.yyleng,
1150
+ offset: this.offset,
1151
+ _more: this._more,
1152
+ _input: this._input,
1153
+ yy: this.yy,
1154
+ conditionStack: this.conditionStack.slice(0),
1155
+ done: this.done
1156
+ }, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), o = d[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1157
+ first_line: this.yylloc.last_line,
1158
+ last_line: this.yylineno + 1,
1159
+ first_column: this.yylloc.last_column,
1160
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + d[0].length
1161
+ }, this.yytext += d[0], this.match += d[0], this.matches = d, 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(d[0].length), this.matched += d[0], b = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b)
1162
+ return b;
1163
+ if (this._backtrack) {
1164
+ for (var e in x)
1165
+ this[e] = x[e];
1166
+ return !1;
1167
+ }
1168
+ return !1;
1169
+ }, "test_match"),
1170
+ // return next match in input
1171
+ next: /* @__PURE__ */ k(function() {
1172
+ if (this.done)
1173
+ return this.EOF;
1174
+ this._input || (this.done = !0);
1175
+ var d, f, b, o;
1176
+ this._more || (this.yytext = "", this.match = "");
1177
+ for (var x = this._currentRules(), e = 0; e < x.length; e++)
1178
+ if (b = this._input.match(this.rules[x[e]]), b && (!f || b[0].length > f[0].length)) {
1179
+ if (f = b, o = e, this.options.backtrack_lexer) {
1180
+ if (d = this.test_match(b, x[e]), d !== !1)
1181
+ return d;
1182
+ if (this._backtrack) {
1183
+ f = !1;
1184
+ continue;
1185
+ } else
1186
+ return !1;
1187
+ } else if (!this.options.flex)
1188
+ break;
1189
+ }
1190
+ return f ? (d = this.test_match(f, x[o]), d !== !1 ? d : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1191
+ ` + this.showPosition(), {
1192
+ text: "",
1193
+ token: null,
1194
+ line: this.yylineno
1195
+ });
1196
+ }, "next"),
1197
+ // return next match that has a token
1198
+ lex: /* @__PURE__ */ k(function() {
1199
+ var f = this.next();
1200
+ return f || this.lex();
1201
+ }, "lex"),
1202
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1203
+ begin: /* @__PURE__ */ k(function(f) {
1204
+ this.conditionStack.push(f);
1205
+ }, "begin"),
1206
+ // pop the previously active lexer condition state off the condition stack
1207
+ popState: /* @__PURE__ */ k(function() {
1208
+ var f = this.conditionStack.length - 1;
1209
+ return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1210
+ }, "popState"),
1211
+ // produce the lexer rule set which is active for the currently active lexer condition state
1212
+ _currentRules: /* @__PURE__ */ k(function() {
1213
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1214
+ }, "_currentRules"),
1215
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1216
+ topState: /* @__PURE__ */ k(function(f) {
1217
+ return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
1218
+ }, "topState"),
1219
+ // alias for begin(condition)
1220
+ pushState: /* @__PURE__ */ k(function(f) {
1221
+ this.begin(f);
1222
+ }, "pushState"),
1223
+ // return the number of states currently on the stack
1224
+ stateStackSize: /* @__PURE__ */ k(function() {
1225
+ return this.conditionStack.length;
1226
+ }, "stateStackSize"),
1227
+ options: {},
1228
+ performAction: /* @__PURE__ */ k(function(f, b, o, x) {
1229
+ switch (o) {
1230
+ case 0:
1231
+ return this.begin("acc_title"), 34;
1232
+ case 1:
1233
+ return this.popState(), "acc_title_value";
1234
+ case 2:
1235
+ return this.begin("acc_descr"), 36;
1236
+ case 3:
1237
+ return this.popState(), "acc_descr_value";
1238
+ case 4:
1239
+ this.begin("acc_descr_multiline");
1240
+ break;
1241
+ case 5:
1242
+ this.popState();
1243
+ break;
1244
+ case 6:
1245
+ return "acc_descr_multiline_value";
1246
+ case 7:
1247
+ return this.pushState("shapeData"), b.yytext = "", 40;
1248
+ case 8:
1249
+ return this.pushState("shapeDataStr"), 40;
1250
+ case 9:
1251
+ return this.popState(), 40;
1252
+ case 10:
1253
+ const e = /\n\s*/g;
1254
+ return b.yytext = b.yytext.replace(e, "<br/>"), 40;
1255
+ case 11:
1256
+ return 40;
1257
+ case 12:
1258
+ this.popState();
1259
+ break;
1260
+ case 13:
1261
+ this.begin("callbackname");
1262
+ break;
1263
+ case 14:
1264
+ this.popState();
1265
+ break;
1266
+ case 15:
1267
+ this.popState(), this.begin("callbackargs");
1268
+ break;
1269
+ case 16:
1270
+ return 95;
1271
+ case 17:
1272
+ this.popState();
1273
+ break;
1274
+ case 18:
1275
+ return 96;
1276
+ case 19:
1277
+ return "MD_STR";
1278
+ case 20:
1279
+ this.popState();
1280
+ break;
1281
+ case 21:
1282
+ this.begin("md_string");
1283
+ break;
1284
+ case 22:
1285
+ return "STR";
1286
+ case 23:
1287
+ this.popState();
1288
+ break;
1289
+ case 24:
1290
+ this.pushState("string");
1291
+ break;
1292
+ case 25:
1293
+ return 84;
1294
+ case 26:
1295
+ return 102;
1296
+ case 27:
1297
+ return 85;
1298
+ case 28:
1299
+ return 104;
1300
+ case 29:
1301
+ return 86;
1302
+ case 30:
1303
+ return 87;
1304
+ case 31:
1305
+ return 97;
1306
+ case 32:
1307
+ this.begin("click");
1308
+ break;
1309
+ case 33:
1310
+ this.popState();
1311
+ break;
1312
+ case 34:
1313
+ return 88;
1314
+ case 35:
1315
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1316
+ case 36:
1317
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1318
+ case 37:
1319
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1320
+ case 38:
1321
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1322
+ case 39:
1323
+ return 27;
1324
+ case 40:
1325
+ return 32;
1326
+ case 41:
1327
+ return 98;
1328
+ case 42:
1329
+ return 98;
1330
+ case 43:
1331
+ return 98;
1332
+ case 44:
1333
+ return 98;
1334
+ case 45:
1335
+ return this.popState(), 13;
1336
+ case 46:
1337
+ return this.popState(), 14;
1338
+ case 47:
1339
+ return this.popState(), 14;
1340
+ case 48:
1341
+ return this.popState(), 14;
1342
+ case 49:
1343
+ return this.popState(), 14;
1344
+ case 50:
1345
+ return this.popState(), 14;
1346
+ case 51:
1347
+ return this.popState(), 14;
1348
+ case 52:
1349
+ return this.popState(), 14;
1350
+ case 53:
1351
+ return this.popState(), 14;
1352
+ case 54:
1353
+ return this.popState(), 14;
1354
+ case 55:
1355
+ return this.popState(), 14;
1356
+ case 56:
1357
+ return 121;
1358
+ case 57:
1359
+ return 122;
1360
+ case 58:
1361
+ return 123;
1362
+ case 59:
1363
+ return 124;
1364
+ case 60:
1365
+ return 125;
1366
+ case 61:
1367
+ return 78;
1368
+ case 62:
1369
+ return 105;
1370
+ case 63:
1371
+ return 111;
1372
+ case 64:
1373
+ return 46;
1374
+ case 65:
1375
+ return 60;
1376
+ case 66:
1377
+ return 44;
1378
+ case 67:
1379
+ return 8;
1380
+ case 68:
1381
+ return 106;
1382
+ case 69:
1383
+ return 115;
1384
+ case 70:
1385
+ return this.popState(), 77;
1386
+ case 71:
1387
+ return this.pushState("edgeText"), 75;
1388
+ case 72:
1389
+ return 119;
1390
+ case 73:
1391
+ return this.popState(), 77;
1392
+ case 74:
1393
+ return this.pushState("thickEdgeText"), 75;
1394
+ case 75:
1395
+ return 119;
1396
+ case 76:
1397
+ return this.popState(), 77;
1398
+ case 77:
1399
+ return this.pushState("dottedEdgeText"), 75;
1400
+ case 78:
1401
+ return 119;
1402
+ case 79:
1403
+ return 77;
1404
+ case 80:
1405
+ return this.popState(), 53;
1406
+ case 81:
1407
+ return "TEXT";
1408
+ case 82:
1409
+ return this.pushState("ellipseText"), 52;
1410
+ case 83:
1411
+ return this.popState(), 55;
1412
+ case 84:
1413
+ return this.pushState("text"), 54;
1414
+ case 85:
1415
+ return this.popState(), 57;
1416
+ case 86:
1417
+ return this.pushState("text"), 56;
1418
+ case 87:
1419
+ return 58;
1420
+ case 88:
1421
+ return this.pushState("text"), 67;
1422
+ case 89:
1423
+ return this.popState(), 64;
1424
+ case 90:
1425
+ return this.pushState("text"), 63;
1426
+ case 91:
1427
+ return this.popState(), 49;
1428
+ case 92:
1429
+ return this.pushState("text"), 48;
1430
+ case 93:
1431
+ return this.popState(), 69;
1432
+ case 94:
1433
+ return this.popState(), 71;
1434
+ case 95:
1435
+ return 117;
1436
+ case 96:
1437
+ return this.pushState("trapText"), 68;
1438
+ case 97:
1439
+ return this.pushState("trapText"), 70;
1440
+ case 98:
1441
+ return 118;
1442
+ case 99:
1443
+ return 67;
1444
+ case 100:
1445
+ return 90;
1446
+ case 101:
1447
+ return "SEP";
1448
+ case 102:
1449
+ return 89;
1450
+ case 103:
1451
+ return 115;
1452
+ case 104:
1453
+ return 111;
1454
+ case 105:
1455
+ return 44;
1456
+ case 106:
1457
+ return 109;
1458
+ case 107:
1459
+ return 114;
1460
+ case 108:
1461
+ return 116;
1462
+ case 109:
1463
+ return this.popState(), 62;
1464
+ case 110:
1465
+ return this.pushState("text"), 62;
1466
+ case 111:
1467
+ return this.popState(), 51;
1468
+ case 112:
1469
+ return this.pushState("text"), 50;
1470
+ case 113:
1471
+ return this.popState(), 31;
1472
+ case 114:
1473
+ return this.pushState("text"), 29;
1474
+ case 115:
1475
+ return this.popState(), 66;
1476
+ case 116:
1477
+ return this.pushState("text"), 65;
1478
+ case 117:
1479
+ return "TEXT";
1480
+ case 118:
1481
+ return "QUOTE";
1482
+ case 119:
1483
+ return 9;
1484
+ case 120:
1485
+ return 10;
1486
+ case 121:
1487
+ return 11;
1488
+ }
1489
+ }, "anonymous"),
1490
+ rules: [/^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:@\{)/, /^(?:["])/, /^(?:["])/, /^(?:[^\"]+)/, /^(?:[^}^"]+)/, /^(?:\})/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["][`])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:["])/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s])/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:swimlane-beta\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:.*direction\s+TD[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
1491
+ conditions: { shapeDataEndBracket: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, shapeDataStr: { rules: [9, 10, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, shapeData: { rules: [8, 11, 12, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, callbackargs: { rules: [17, 18, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, callbackname: { rules: [14, 15, 16, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, href: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, click: { rules: [21, 24, 33, 34, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, dottedEdgeText: { rules: [21, 24, 76, 78, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, thickEdgeText: { rules: [21, 24, 73, 75, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, edgeText: { rules: [21, 24, 70, 72, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, trapText: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 93, 94, 95, 96, 97, 110, 112, 114, 116], inclusive: !1 }, ellipseText: { rules: [21, 24, 79, 80, 81, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, text: { rules: [21, 24, 79, 82, 83, 84, 85, 86, 89, 90, 91, 92, 96, 97, 109, 110, 111, 112, 113, 114, 115, 116, 117], inclusive: !1 }, vertex: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, dir: { rules: [21, 24, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_descr: { rules: [3, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_title: { rules: [1, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, md_string: { rules: [19, 20, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, string: { rules: [21, 22, 23, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 13, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 74, 76, 77, 79, 82, 84, 86, 87, 88, 90, 92, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 110, 112, 114, 116, 118, 119, 120, 121], inclusive: !0 } }
1492
+ };
1493
+ return Ae;
1494
+ }();
1495
+ Ze.lexer = jt;
1496
+ function qe() {
1497
+ this.yy = {};
1498
+ }
1499
+ return k(qe, "Parser"), qe.prototype = Ze, Ze.Parser = qe, new qe();
1500
+ }();
1501
+ at.parser = at;
1502
+ var Ut = at, zt = Object.assign({}, Ut);
1503
+ zt.parse = (s) => {
1504
+ const i = s.replace(/}\s*\n/g, `}
1505
+ `);
1506
+ return Ut.parse(i);
1507
+ };
1508
+ var T1 = zt, S1 = /* @__PURE__ */ k((s, i) => {
1509
+ const r = b1, a = r(s, "r"), n = r(s, "g"), c = r(s, "b");
1510
+ return f1(a, n, c, i);
1511
+ }, "fade"), E1 = /* @__PURE__ */ k((s) => `.label {
1512
+ font-family: ${s.fontFamily};
1513
+ color: ${s.nodeTextColor || s.textColor};
1514
+ }
1515
+ .cluster-label text {
1516
+ fill: ${s.titleColor};
1517
+ }
1518
+ .cluster-label span {
1519
+ color: ${s.titleColor};
1520
+ }
1521
+ .cluster-label span p {
1522
+ background-color: transparent;
1523
+ }
1524
+
1525
+ .label text,span {
1526
+ fill: ${s.nodeTextColor || s.textColor};
1527
+ color: ${s.nodeTextColor || s.textColor};
1528
+ }
1529
+
1530
+ .node rect,
1531
+ .node circle,
1532
+ .node ellipse,
1533
+ .node polygon,
1534
+ .node path {
1535
+ fill: ${s.mainBkg};
1536
+ stroke: ${s.nodeBorder};
1537
+ stroke-width: ${s.strokeWidth ?? 1}px;
1538
+ }
1539
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1540
+ text-anchor: middle;
1541
+ }
1542
+
1543
+ .node .katex path {
1544
+ fill: #000;
1545
+ stroke: #000;
1546
+ stroke-width: 1px;
1547
+ }
1548
+
1549
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1550
+ text-align: center;
1551
+ }
1552
+ .node.clickable {
1553
+ cursor: pointer;
1554
+ }
1555
+
1556
+
1557
+ .root .anchor path {
1558
+ fill: ${s.lineColor} !important;
1559
+ stroke-width: 0;
1560
+ stroke: ${s.lineColor};
1561
+ }
1562
+
1563
+ .arrowheadPath {
1564
+ fill: ${s.arrowheadColor};
1565
+ }
1566
+
1567
+ .edgePath .path {
1568
+ stroke: ${s.lineColor};
1569
+ stroke-width: ${s.strokeWidth ?? 2}px;
1570
+ }
1571
+
1572
+ .flowchart-link {
1573
+ stroke: ${s.lineColor};
1574
+ fill: none;
1575
+ }
1576
+
1577
+ .edgeLabel {
1578
+ background-color: ${s.edgeLabelBackground};
1579
+ p {
1580
+ background-color: ${s.edgeLabelBackground};
1581
+ }
1582
+ rect {
1583
+ opacity: 0.5;
1584
+ background-color: ${s.edgeLabelBackground};
1585
+ fill: ${s.edgeLabelBackground};
1586
+ }
1587
+ text-align: center;
1588
+ }
1589
+
1590
+ /* For html labels only */
1591
+ .labelBkg {
1592
+ background-color: ${S1(s.edgeLabelBackground, 0.5)};
1593
+ // background-color:
1594
+ }
1595
+
1596
+ .cluster rect {
1597
+ fill: ${s.clusterBkg};
1598
+ stroke: ${s.clusterBorder};
1599
+ stroke-width: 1px;
1600
+ }
1601
+
1602
+ .cluster text {
1603
+ fill: ${s.titleColor};
1604
+ }
1605
+
1606
+ .cluster span {
1607
+ color: ${s.titleColor};
1608
+ }
1609
+ /* .cluster div {
1610
+ color: ${s.titleColor};
1611
+ } */
1612
+
1613
+ /* Collapsed subgraph node (@{ view: collapsed }) */
1614
+ .node .collapsed-indicator {
1615
+ fill: ${s.clusterBorder};
1616
+ stroke: none;
1617
+ opacity: 0.6;
1618
+ }
1619
+
1620
+ .node .collapsed-separator {
1621
+ stroke: ${s.clusterBorder};
1622
+ stroke-width: 0.75px;
1623
+ }
1624
+
1625
+ div.mermaidTooltip {
1626
+ position: absolute;
1627
+ text-align: center;
1628
+ max-width: 200px;
1629
+ padding: 2px;
1630
+ font-family: ${s.fontFamily};
1631
+ font-size: 12px;
1632
+ background: ${s.tertiaryColor};
1633
+ border: 1px solid ${s.border2};
1634
+ border-radius: 2px;
1635
+ pointer-events: none;
1636
+ z-index: 100;
1637
+ }
1638
+
1639
+ .flowchartTitleText {
1640
+ text-anchor: middle;
1641
+ font-size: 18px;
1642
+ fill: ${s.textColor};
1643
+ }
1644
+
1645
+ rect.text {
1646
+ fill: none;
1647
+ stroke-width: 0;
1648
+ }
1649
+
1650
+ .icon-shape, .image-shape {
1651
+ background-color: ${s.edgeLabelBackground};
1652
+ p {
1653
+ background-color: ${s.edgeLabelBackground};
1654
+ padding: 2px;
1655
+ }
1656
+ .label rect {
1657
+ opacity: 0.5;
1658
+ background-color: ${s.edgeLabelBackground};
1659
+ fill: ${s.edgeLabelBackground};
1660
+ }
1661
+ text-align: center;
1662
+ }
1663
+ ${Xt()}
1664
+ `, "getStyles"), y1 = E1, Wt = /* @__PURE__ */ k(({
1665
+ defaultLayout: s,
1666
+ styles: i = y1
1667
+ } = {}) => ({
1668
+ parser: T1,
1669
+ get db() {
1670
+ return new k1();
1671
+ },
1672
+ renderer: D1,
1673
+ styles: i,
1674
+ init: /* @__PURE__ */ k((r) => {
1675
+ r.flowchart || (r.flowchart = {});
1676
+ const a = Jt().layout ?? s ?? r.layout;
1677
+ a && Mt({ layout: a }), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, Mt({ flowchart: { arrowMarkerAbsolute: r.arrowMarkerAbsolute } });
1678
+ }, "init")
1679
+ }), "createFlowDiagram"), x1 = Wt();
1680
+ const I1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1681
+ __proto__: null,
1682
+ createFlowDiagram: Wt,
1683
+ diagram: x1
1684
+ }, Symbol.toStringTag, { value: "Module" }));
1685
+ export {
1686
+ Wt as c,
1687
+ I1 as f,
1688
+ y1 as s
1689
+ };