@omg-dev/app 0.5.0 → 0.6.1

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 (113) hide show
  1. package/dist-lib/{ChangelogPage-8lbvM9Pz.js → ChangelogPage-Cjj_DiYL.js} +57 -1
  2. package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
  3. package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
  4. package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
  5. package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
  6. package/dist-lib/{SessionFilesPanel-BKcTU57t.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
  7. package/dist-lib/{TermView-gazV6UMU.js → TermView-B4V-DyD-.js} +521 -530
  8. package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
  9. package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
  10. package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
  11. package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
  12. package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
  13. package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
  14. package/dist-lib/{chat-engine-83mwx0z2.js → chat-engine-CUiDTHFP.js} +1173 -1218
  15. package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
  16. package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
  17. package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
  18. package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
  19. package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
  20. package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
  21. package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
  22. package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
  23. package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
  24. package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
  25. package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
  26. package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
  27. package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
  28. package/dist-lib/{coding-agents-page-8Nf-IuE2.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
  29. package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
  30. package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
  31. package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
  32. package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
  33. package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
  34. package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
  35. package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
  36. package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
  37. package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
  38. package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
  39. package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
  40. package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
  41. package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
  42. package/dist-lib/{embedded-BmrQsEvQ.js → embedded-PUsgcSTE.js} +13043 -13082
  43. package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
  44. package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
  45. package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
  46. package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
  47. package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
  48. package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
  49. package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
  50. package/dist-lib/index-B0neMIbR.js +16520 -0
  51. package/dist-lib/index-BBC0E3Qg.js +4994 -0
  52. package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
  53. package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
  54. package/dist-lib/index.js +1 -1
  55. package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
  56. package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
  57. package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
  58. package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
  59. package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
  60. package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
  61. package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
  62. package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
  63. package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
  64. package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
  65. package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
  66. package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
  67. package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
  68. package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
  69. package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
  70. package/dist-lib/{resume-session-sheet-Dr_81Gfm.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
  71. package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
  72. package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
  73. package/dist-lib/{session-token-usage-CGhHZ3lT.js → session-token-usage-DY4vFlfs.js} +82 -83
  74. package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
  75. package/dist-lib/{shipped-page-p3oulUiM.js → shipped-page-B-ruG8li.js} +233 -236
  76. package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
  77. package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
  78. package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
  79. package/dist-lib/{streamdown-response-Dbn0PKUH.js → streamdown-response-BQy3geXs.js} +290 -297
  80. package/dist-lib/styles.css +1 -1
  81. package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
  82. package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
  83. package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
  84. package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
  85. package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
  86. package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
  87. package/package.json +4 -3
  88. package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
  89. package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
  90. package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
  91. package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
  92. package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
  93. package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
  94. package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
  95. package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
  96. package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
  97. package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
  98. package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
  99. package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
  100. package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
  101. package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
  102. package/dist-lib/index-DcwavxA1.js +0 -5062
  103. package/dist-lib/index-JkCQXUYs.js +0 -16566
  104. package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
  105. package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
  106. package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
  107. package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
  108. package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
  109. package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
  110. package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
  111. package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
  112. package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
  113. package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
@@ -0,0 +1,1641 @@
1
+ import { g as He } from "./chunk-5VM5RSS4-xd6XuI9Q.js";
2
+ import { g as Xe } from "./chunk-XXDRQBXY-DRKeYnrF.js";
3
+ import { s as Qe } from "./chunk-VR4S4FIN-BDq3jZ0m.js";
4
+ import { _ as b, b6 as Ze, X as Oe, l as Z, c as g1, v as Je, x as $e, y as ie, b as et, s as tt, o as st, a as it, g as rt, p as at, k as nt, Y as ut, Z as ot, bo as lt, r as te, d as se, a5 as ct, q as ht, b8 as dt, t as pt } from "./index-B0neMIbR.js";
5
+ import { f as ft } from "./chunk-32BRIVSS-DvywQiCk.js";
6
+ import { c as gt } from "./channel-D6YHMmF7.js";
7
+ var bt = "flowchart-", At = class {
8
+ // cspell:ignore funs
9
+ constructor() {
10
+ this.vertexCounter = 0, this.config = g1(), 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 = et, this.setAccDescription = tt, this.setDiagramTitle = st, this.getAccTitle = it, this.getAccDescription = rt, this.getDiagramTitle = at, 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
+ static {
15
+ b(this, "FlowDB");
16
+ }
17
+ sanitizeText(e) {
18
+ return nt.sanitizeText(e, this.config);
19
+ }
20
+ sanitizeNodeLabelType(e) {
21
+ switch (e) {
22
+ case "markdown":
23
+ case "string":
24
+ case "text":
25
+ return e;
26
+ default:
27
+ return "markdown";
28
+ }
29
+ }
30
+ /**
31
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
32
+ * across multiple diagrams on the same page.
33
+ */
34
+ setDiagramId(e) {
35
+ this.diagramId = e;
36
+ }
37
+ /**
38
+ * Function to lookup domId from id in the graph definition.
39
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
40
+ *
41
+ * @param id - id of the node
42
+ */
43
+ lookUpDomId(e) {
44
+ for (const i of this.vertices.values())
45
+ if (i.id === e)
46
+ return this.diagramId ? `${this.diagramId}-${i.domId}` : i.domId;
47
+ return this.diagramId ? `${this.diagramId}-${e}` : e;
48
+ }
49
+ /**
50
+ * Function called by parser when a node definition has been found
51
+ */
52
+ addVertex(e, i, r, a, o, d, l = {}, A) {
53
+ if (!e || e.trim().length === 0)
54
+ return;
55
+ let n;
56
+ if (A !== void 0) {
57
+ let k;
58
+ A.includes(`
59
+ `) ? k = A + `
60
+ ` : k = `{
61
+ ` + A + `
62
+ }`, n = ut(k, { schema: ot });
63
+ }
64
+ const g = this.edges.find((k) => k.id === e);
65
+ if (g) {
66
+ const k = n;
67
+ k?.animate !== void 0 && (g.animate = k.animate), k?.animation !== void 0 && (g.animation = k.animation), k?.curve !== void 0 && (g.interpolate = k.curve);
68
+ return;
69
+ }
70
+ let B, f = this.vertices.get(e);
71
+ if (f === void 0 && (i === void 0 && r === void 0 && a !== void 0 && a !== null && Z.warn(
72
+ `Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`
73
+ ), f = {
74
+ id: e,
75
+ labelType: "text",
76
+ domId: bt + e + "-" + this.vertexCounter,
77
+ styles: [],
78
+ classes: []
79
+ }, this.vertices.set(e, f)), this.vertexCounter++, i !== void 0 ? (this.config = g1(), B = this.sanitizeText(i.text.trim()), f.labelType = i.type, B.startsWith('"') && B.endsWith('"') && (B = B.substring(1, B.length - 1)), f.text = B) : f.text === void 0 && (f.text = e), r !== void 0 && (f.type = r), a?.forEach((k) => {
80
+ f.styles.push(k);
81
+ }), o?.forEach((k) => {
82
+ f.classes.push(k);
83
+ }), d !== void 0 && (f.dir = d), f.props === void 0 ? f.props = l : l !== void 0 && Object.assign(f.props, l), n !== void 0) {
84
+ if (n.shape) {
85
+ if (n.shape !== n.shape.toLowerCase() || n.shape.includes("_"))
86
+ throw new Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);
87
+ if (!lt(n.shape))
88
+ throw new Error(`No such shape: ${n.shape}.`);
89
+ f.type = n?.shape;
90
+ }
91
+ n?.label && (f.text = n?.label, f.labelType = this.sanitizeNodeLabelType(n?.labelType)), n?.icon && (f.icon = n?.icon, !n.label?.trim() && f.text === e && (f.text = "")), n?.form && (f.form = n?.form), n?.pos && (f.pos = n?.pos), n?.img && (f.img = n?.img, !n.label?.trim() && f.text === e && (f.text = "")), n?.constraint && (f.constraint = n.constraint), n.w && (f.assetWidth = Number(n.w)), n.h && (f.assetHeight = Number(n.h));
92
+ }
93
+ }
94
+ /**
95
+ * Function called by parser when a link/edge definition has been found
96
+ *
97
+ */
98
+ addSingleLink(e, i, r, a) {
99
+ const l = {
100
+ start: e,
101
+ end: i,
102
+ type: void 0,
103
+ text: "",
104
+ labelType: "text",
105
+ classes: [],
106
+ isUserDefinedId: !1,
107
+ interpolate: this.edges.defaultInterpolate
108
+ };
109
+ Z.info("abc78 Got edge...", l);
110
+ const A = r.text;
111
+ if (A !== void 0 && (l.text = this.sanitizeText(A.text.trim()), l.text.startsWith('"') && l.text.endsWith('"') && (l.text = l.text.substring(1, l.text.length - 1)), l.labelType = this.sanitizeNodeLabelType(A.type)), r !== void 0 && (l.type = r.type, l.stroke = r.stroke, l.length = r.length > 10 ? 10 : r.length), a && !this.edges.some((n) => n.id === a))
112
+ l.id = a, l.isUserDefinedId = !0;
113
+ else {
114
+ const n = this.edges.filter((g) => g.start === l.start && g.end === l.end);
115
+ n.length === 0 ? l.id = te(l.start, l.end, { counter: 0, prefix: "L" }) : l.id = te(l.start, l.end, {
116
+ counter: n.length + 1,
117
+ prefix: "L"
118
+ });
119
+ }
120
+ if (this.edges.length < (this.config.maxEdges ?? 500))
121
+ Z.info("Pushing edge..."), this.edges.push(l);
122
+ else
123
+ throw new Error(
124
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
125
+
126
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
127
+ You cannot set this config via configuration inside the diagram as it is a secure config.
128
+ You have to call mermaid.initialize.`
129
+ );
130
+ }
131
+ isLinkData(e) {
132
+ return e !== null && typeof e == "object" && "id" in e && typeof e.id == "string";
133
+ }
134
+ addLink(e, i, r) {
135
+ const a = this.isLinkData(r) ? r.id.replace("@", "") : void 0;
136
+ Z.info("addLink", e, i, a);
137
+ for (const o of e)
138
+ for (const d of i) {
139
+ const l = o === e[e.length - 1], A = d === i[0];
140
+ l && A ? this.addSingleLink(o, d, r, a) : this.addSingleLink(o, d, r, void 0);
141
+ }
142
+ }
143
+ /**
144
+ * Updates a link's line interpolation algorithm
145
+ */
146
+ updateLinkInterpolate(e, i) {
147
+ e.forEach((r) => {
148
+ r === "default" ? this.edges.defaultInterpolate = i : this.edges[r].interpolate = i;
149
+ });
150
+ }
151
+ /**
152
+ * Updates a link with a style
153
+ *
154
+ */
155
+ updateLink(e, i) {
156
+ e.forEach((r) => {
157
+ if (typeof r == "number" && r >= this.edges.length)
158
+ throw new Error(
159
+ `The index ${r} 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.)`
160
+ );
161
+ r === "default" ? this.edges.defaultStyle = i : (this.edges[r].style = i, (this.edges[r]?.style?.length ?? 0) > 0 && !this.edges[r]?.style?.some((a) => a?.startsWith("fill")) && this.edges[r]?.style?.push("fill:none"));
162
+ });
163
+ }
164
+ addClass(e, i) {
165
+ const r = i.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
166
+ e.split(",").forEach((a) => {
167
+ let o = this.classes.get(a);
168
+ o === void 0 && (o = { id: a, styles: [], textStyles: [] }, this.classes.set(a, o)), r?.forEach((d) => {
169
+ if (/color/.exec(d)) {
170
+ const l = d.replace("fill", "bgFill");
171
+ o.textStyles.push(l);
172
+ }
173
+ o.styles.push(d);
174
+ });
175
+ });
176
+ }
177
+ /**
178
+ * Called by parser when a graph definition is found, stores the direction of the chart.
179
+ *
180
+ */
181
+ setDirection(e) {
182
+ this.direction = e.trim(), /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
183
+ }
184
+ /**
185
+ * Called by parser when a special node is found, e.g. a clickable element.
186
+ *
187
+ * @param ids - Comma separated list of ids
188
+ * @param className - Class to add
189
+ */
190
+ setClass(e, i) {
191
+ for (const r of e.split(",")) {
192
+ const a = this.vertices.get(r);
193
+ a && a.classes.push(i);
194
+ const o = this.edges.find((l) => l.id === r);
195
+ o && o.classes.push(i);
196
+ const d = this.subGraphLookup.get(r);
197
+ d && d.classes.push(i);
198
+ }
199
+ }
200
+ setTooltip(e, i) {
201
+ if (i !== void 0) {
202
+ i = this.sanitizeText(i);
203
+ for (const r of e.split(","))
204
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(r) : r, i);
205
+ }
206
+ }
207
+ setClickFun(e, i, r) {
208
+ if (g1().securityLevel !== "loose" || i === void 0)
209
+ return;
210
+ let a = [];
211
+ if (typeof r == "string") {
212
+ a = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
213
+ for (let d = 0; d < a.length; d++) {
214
+ let l = a[d].trim();
215
+ l.startsWith('"') && l.endsWith('"') && (l = l.substr(1, l.length - 2)), a[d] = l;
216
+ }
217
+ }
218
+ a.length === 0 && a.push(e);
219
+ const o = this.vertices.get(e);
220
+ o && (o.haveCallback = !0, this.funs.push(() => {
221
+ const d = this.lookUpDomId(e), l = document.querySelector(`[id="${d}"]`);
222
+ l !== null && l.addEventListener(
223
+ "click",
224
+ () => {
225
+ ie.runFunc(i, ...a);
226
+ },
227
+ !1
228
+ );
229
+ }));
230
+ }
231
+ /**
232
+ * Called by parser when a link is found. Adds the URL to the vertex data.
233
+ *
234
+ * @param ids - Comma separated list of ids
235
+ * @param linkStr - URL to create a link for
236
+ * @param target - Target attribute for the link
237
+ */
238
+ setLink(e, i, r) {
239
+ e.split(",").forEach((a) => {
240
+ const o = this.vertices.get(a);
241
+ o !== void 0 && (o.link = ie.formatUrl(i, this.config), o.linkTarget = r);
242
+ }), this.setClass(e, "clickable");
243
+ }
244
+ getTooltip(e) {
245
+ return this.tooltips.get(e);
246
+ }
247
+ /**
248
+ * Called by parser when a click definition is found. Registers an event handler.
249
+ *
250
+ * @param ids - Comma separated list of ids
251
+ * @param functionName - Function to be called on click
252
+ * @param functionArgs - Arguments to be passed to the function
253
+ */
254
+ setClickEvent(e, i, r) {
255
+ e.split(",").forEach((a) => {
256
+ this.setClickFun(a, i, r);
257
+ }), this.setClass(e, "clickable");
258
+ }
259
+ bindFunctions(e) {
260
+ this.funs.forEach((i) => {
261
+ i(e);
262
+ });
263
+ }
264
+ getDirection() {
265
+ return this.direction?.trim();
266
+ }
267
+ /**
268
+ * Retrieval function for fetching the found nodes after parsing has completed.
269
+ *
270
+ */
271
+ getVertices() {
272
+ return this.vertices;
273
+ }
274
+ /**
275
+ * Retrieval function for fetching the found links after parsing has completed.
276
+ *
277
+ */
278
+ getEdges() {
279
+ return this.edges;
280
+ }
281
+ /**
282
+ * Retrieval function for fetching the found class definitions after parsing has completed.
283
+ *
284
+ */
285
+ getClasses() {
286
+ return this.classes;
287
+ }
288
+ setupToolTips(e) {
289
+ const i = ft();
290
+ se(e).select("svg").selectAll("g.node").on("mouseover", (o) => {
291
+ const d = se(o.currentTarget), l = d.attr("title");
292
+ if (l === null)
293
+ return;
294
+ const A = o.currentTarget?.getBoundingClientRect();
295
+ i.transition().duration(200).style("opacity", ".9"), i.text(d.attr("title")).style("left", window.scrollX + A.left + (A.right - A.left) / 2 + "px").style("top", window.scrollY + A.bottom + "px"), i.html(ct.sanitize(l)), d.classed("hover", !0);
296
+ }).on("mouseout", (o) => {
297
+ i.transition().duration(500).style("opacity", 0), se(o.currentTarget).classed("hover", !1);
298
+ });
299
+ }
300
+ /**
301
+ * Clears the internal graph db so that a new graph can be parsed.
302
+ *
303
+ */
304
+ clear(e = "gen-2") {
305
+ 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 = e, this.config = g1(), ht();
306
+ }
307
+ setGen(e) {
308
+ this.version = e || "gen-2";
309
+ }
310
+ defaultStyle() {
311
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
312
+ }
313
+ addSubGraph(e, i, r) {
314
+ let a = e.text.trim(), o = r.text;
315
+ e === r && /\s/.exec(r.text) && (a = void 0);
316
+ const l = (/* @__PURE__ */ b((Y) => {
317
+ const F = { boolean: {}, number: {}, string: {} }, _ = [];
318
+ let b1;
319
+ return { nodeList: Y.filter(function(j) {
320
+ const h1 = typeof j;
321
+ return j.stmt && j.stmt === "dir" ? (b1 = j.value, !1) : j.trim() === "" ? !1 : h1 in F ? F[h1].hasOwnProperty(j) ? !1 : F[h1][j] = !0 : _.includes(j) ? !1 : _.push(j);
322
+ }), dir: b1 };
323
+ }, "uniq"))(i.flat()), A = l.nodeList, n = l.dir, g = n !== void 0, B = g1().flowchart ?? {}, f = n ?? (B.inheritDir ? this.getDirection() ?? g1().direction ?? void 0 : void 0);
324
+ if (this.version === "gen-1")
325
+ for (let Y = 0; Y < A.length; Y++)
326
+ A[Y] = this.lookUpDomId(A[Y]);
327
+ a = a ?? "subGraph" + this.subCount, o = o || "", o = this.sanitizeText(o), this.subCount = this.subCount + 1;
328
+ const k = {
329
+ id: a,
330
+ nodes: A,
331
+ title: o.trim(),
332
+ classes: [],
333
+ dir: f,
334
+ hasExplicitDir: g,
335
+ labelType: this.sanitizeNodeLabelType(r?.type)
336
+ };
337
+ return Z.info("Adding", k.id, k.nodes, k.dir), k.nodes = this.makeUniq(k, this.subGraphs).nodes, this.subGraphs.push(k), this.subGraphLookup.set(a, k), a;
338
+ }
339
+ getPosForId(e) {
340
+ for (const [i, r] of this.subGraphs.entries())
341
+ if (r.id === e)
342
+ return i;
343
+ return -1;
344
+ }
345
+ indexNodes2(e, i) {
346
+ const r = this.subGraphs[i].nodes;
347
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
348
+ return {
349
+ result: !1,
350
+ count: 0
351
+ };
352
+ if (this.posCrossRef[this.secCount] = i, this.subGraphs[i].id === e)
353
+ return {
354
+ result: !0,
355
+ count: 0
356
+ };
357
+ let a = 0, o = 1;
358
+ for (; a < r.length; ) {
359
+ const d = this.getPosForId(r[a]);
360
+ if (d >= 0) {
361
+ const l = this.indexNodes2(e, d);
362
+ if (l.result)
363
+ return {
364
+ result: !0,
365
+ count: o + l.count
366
+ };
367
+ o = o + l.count;
368
+ }
369
+ a = a + 1;
370
+ }
371
+ return {
372
+ result: !1,
373
+ count: o
374
+ };
375
+ }
376
+ getDepthFirstPos(e) {
377
+ return this.posCrossRef[e];
378
+ }
379
+ indexNodes() {
380
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
381
+ }
382
+ getSubGraphs() {
383
+ return this.subGraphs;
384
+ }
385
+ firstGraph() {
386
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
387
+ }
388
+ destructStartLink(e) {
389
+ let i = e.trim(), r = "arrow_open";
390
+ switch (i[0]) {
391
+ case "<":
392
+ r = "arrow_point", i = i.slice(1);
393
+ break;
394
+ case "x":
395
+ r = "arrow_cross", i = i.slice(1);
396
+ break;
397
+ case "o":
398
+ r = "arrow_circle", i = i.slice(1);
399
+ break;
400
+ }
401
+ let a = "normal";
402
+ return i.includes("=") && (a = "thick"), i.includes(".") && (a = "dotted"), { type: r, stroke: a };
403
+ }
404
+ countChar(e, i) {
405
+ const r = i.length;
406
+ let a = 0;
407
+ for (let o = 0; o < r; ++o)
408
+ i[o] === e && ++a;
409
+ return a;
410
+ }
411
+ destructEndLink(e) {
412
+ const i = e.trim();
413
+ let r = i.slice(0, -1), a = "arrow_open";
414
+ switch (i.slice(-1)) {
415
+ case "x":
416
+ a = "arrow_cross", i.startsWith("x") && (a = "double_" + a, r = r.slice(1));
417
+ break;
418
+ case ">":
419
+ a = "arrow_point", i.startsWith("<") && (a = "double_" + a, r = r.slice(1));
420
+ break;
421
+ case "o":
422
+ a = "arrow_circle", i.startsWith("o") && (a = "double_" + a, r = r.slice(1));
423
+ break;
424
+ }
425
+ let o = "normal", d = r.length - 1;
426
+ r.startsWith("=") && (o = "thick"), r.startsWith("~") && (o = "invisible");
427
+ const l = this.countChar(".", r);
428
+ return l && (o = "dotted", d = l), { type: a, stroke: o, length: d };
429
+ }
430
+ destructLink(e, i) {
431
+ const r = this.destructEndLink(e);
432
+ let a;
433
+ if (i) {
434
+ if (a = this.destructStartLink(i), a.stroke !== r.stroke)
435
+ return { type: "INVALID", stroke: "INVALID" };
436
+ if (a.type === "arrow_open")
437
+ a.type = r.type;
438
+ else {
439
+ if (a.type !== r.type)
440
+ return { type: "INVALID", stroke: "INVALID" };
441
+ a.type = "double_" + a.type;
442
+ }
443
+ return a.type === "double_arrow" && (a.type = "double_arrow_point"), a.length = r.length, a;
444
+ }
445
+ return r;
446
+ }
447
+ // Todo optimizer this by caching existing nodes
448
+ exists(e, i) {
449
+ for (const r of e)
450
+ if (r.nodes.includes(i))
451
+ return !0;
452
+ return !1;
453
+ }
454
+ /**
455
+ * Deletes an id from all subgraphs
456
+ *
457
+ */
458
+ makeUniq(e, i) {
459
+ const r = [];
460
+ return e.nodes.forEach((a, o) => {
461
+ this.exists(i, a) || r.push(e.nodes[o]);
462
+ }), { nodes: r };
463
+ }
464
+ getTypeFromVertex(e) {
465
+ if (e.img)
466
+ return "imageSquare";
467
+ if (e.icon)
468
+ return e.form === "circle" ? "iconCircle" : e.form === "square" ? "iconSquare" : e.form === "rounded" ? "iconRounded" : "icon";
469
+ switch (e.type) {
470
+ case "square":
471
+ case void 0:
472
+ return "squareRect";
473
+ case "round":
474
+ return "roundedRect";
475
+ case "ellipse":
476
+ return "ellipse";
477
+ default:
478
+ return e.type;
479
+ }
480
+ }
481
+ findNode(e, i) {
482
+ return e.find((r) => r.id === i);
483
+ }
484
+ destructEdgeType(e) {
485
+ let i = "none", r = "arrow_point";
486
+ switch (e) {
487
+ case "arrow_point":
488
+ case "arrow_circle":
489
+ case "arrow_cross":
490
+ r = e;
491
+ break;
492
+ case "double_arrow_point":
493
+ case "double_arrow_circle":
494
+ case "double_arrow_cross":
495
+ i = e.replace("double_", ""), r = i;
496
+ break;
497
+ }
498
+ return { arrowTypeStart: i, arrowTypeEnd: r };
499
+ }
500
+ addNodeFromVertex(e, i, r, a, o, d) {
501
+ const l = r.get(e.id), A = a.get(e.id) ?? !1, n = this.findNode(i, e.id);
502
+ if (n)
503
+ n.cssStyles = e.styles, n.cssCompiledStyles = this.getCompiledStyles(e.classes), n.cssClasses = e.classes.join(" ");
504
+ else {
505
+ const g = {
506
+ id: e.id,
507
+ label: e.text,
508
+ labelType: e.labelType,
509
+ labelStyle: "",
510
+ parentId: l,
511
+ padding: o.flowchart?.padding || 8,
512
+ cssStyles: e.styles,
513
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...e.classes]),
514
+ cssClasses: "default " + e.classes.join(" "),
515
+ dir: e.dir,
516
+ domId: e.domId,
517
+ look: d,
518
+ link: e.link,
519
+ linkTarget: e.linkTarget,
520
+ tooltip: this.getTooltip(e.id),
521
+ icon: e.icon,
522
+ pos: e.pos,
523
+ img: e.img,
524
+ assetWidth: e.assetWidth,
525
+ assetHeight: e.assetHeight,
526
+ constraint: e.constraint
527
+ };
528
+ A ? i.push({
529
+ ...g,
530
+ isGroup: !0,
531
+ shape: "rect"
532
+ }) : i.push({
533
+ ...g,
534
+ isGroup: !1,
535
+ shape: this.getTypeFromVertex(e)
536
+ });
537
+ }
538
+ }
539
+ getCompiledStyles(e) {
540
+ let i = [];
541
+ for (const r of e) {
542
+ const a = this.classes.get(r);
543
+ a?.styles && (i = [...i, ...a.styles ?? []].map((o) => o.trim())), a?.textStyles && (i = [...i, ...a.textStyles ?? []].map((o) => o.trim()));
544
+ }
545
+ return i;
546
+ }
547
+ getData() {
548
+ const e = g1(), i = [], r = [], a = this.getSubGraphs(), o = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
549
+ for (let n = a.length - 1; n >= 0; n--) {
550
+ const g = a[n];
551
+ g.nodes.length > 0 && d.set(g.id, !0);
552
+ for (const B of g.nodes)
553
+ o.set(B, g.id);
554
+ }
555
+ for (let n = a.length - 1; n >= 0; n--) {
556
+ const g = a[n];
557
+ i.push({
558
+ id: g.id,
559
+ label: g.title,
560
+ labelStyle: "",
561
+ labelType: g.labelType,
562
+ parentId: o.get(g.id),
563
+ padding: 8,
564
+ cssCompiledStyles: this.getCompiledStyles(g.classes),
565
+ cssClasses: g.classes.join(" "),
566
+ shape: "rect",
567
+ dir: g.dir === "TD" ? "TB" : g.dir,
568
+ // normalize TD→TB for dagre
569
+ explicitDir: g.hasExplicitDir,
570
+ // true only when the user wrote an explicit 'direction X' keyword
571
+ isGroup: !0,
572
+ look: e.look
573
+ });
574
+ }
575
+ this.getVertices().forEach((n) => {
576
+ this.addNodeFromVertex(n, i, o, d, e, e.look || "classic");
577
+ });
578
+ const A = this.getEdges();
579
+ return A.forEach((n, g) => {
580
+ const { arrowTypeStart: B, arrowTypeEnd: f } = this.destructEdgeType(n.type), k = [...A.defaultStyle ?? []];
581
+ n.style && k.push(...n.style);
582
+ const Y = {
583
+ id: te(n.start, n.end, { counter: g, prefix: "L" }, n.id),
584
+ isUserDefinedId: n.isUserDefinedId,
585
+ start: n.start,
586
+ end: n.end,
587
+ type: n.type ?? "normal",
588
+ label: n.text,
589
+ labelType: n.labelType,
590
+ labelpos: "c",
591
+ thickness: n.stroke,
592
+ minlen: n.length,
593
+ classes: n?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
594
+ arrowTypeStart: n?.stroke === "invisible" || n?.type === "arrow_open" ? "none" : B,
595
+ arrowTypeEnd: n?.stroke === "invisible" || n?.type === "arrow_open" ? "none" : f,
596
+ arrowheadStyle: "fill: #333",
597
+ cssCompiledStyles: this.getCompiledStyles(n.classes),
598
+ labelStyle: k,
599
+ style: k,
600
+ pattern: n.stroke,
601
+ look: e.look,
602
+ animate: n.animate,
603
+ animation: n.animation,
604
+ curve: n.interpolate || this.edges.defaultInterpolate || e.flowchart?.curve
605
+ };
606
+ r.push(Y);
607
+ }), { nodes: i, edges: r, other: {}, config: e };
608
+ }
609
+ defaultConfig() {
610
+ return dt.flowchart;
611
+ }
612
+ }, kt = /* @__PURE__ */ b(function(e, i) {
613
+ return i.db.getClasses();
614
+ }, "getClasses"), mt = /* @__PURE__ */ b(async function(e, i, r, a, o) {
615
+ Z.info("REF0:"), Z.info("Drawing state diagram (v2)", i);
616
+ const { securityLevel: d, flowchart: l, layout: A } = g1();
617
+ a.db.setDiagramId(i), Z.debug("Before getData: ");
618
+ const n = a.db.getData();
619
+ Z.debug("Data: ", n);
620
+ const g = Xe(i, d), B = a.db.getDirection();
621
+ n.type = a.type, n.layoutAlgorithm = Je(A), n.layoutAlgorithm === "dagre" && A === "elk" && Z.warn(
622
+ "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."
623
+ ), n.direction = B, n.nodeSpacing = l?.nodeSpacing || 50, n.rankSpacing = l?.rankSpacing || 50, n.markers = ["point", "circle", "cross"], n.diagramId = i, Z.debug("REF1:", n), await $e(n, g, o);
624
+ const f = n.config.flowchart?.diagramPadding ?? 8;
625
+ ie.insertTitle(
626
+ g,
627
+ "flowchartTitleText",
628
+ l?.titleTopMargin || 0,
629
+ a.db.getDiagramTitle()
630
+ ), Qe(g, f, "flowchart", l?.useMaxWidth || !1);
631
+ }, "draw"), Dt = {
632
+ getClasses: kt,
633
+ draw: mt
634
+ }, re = (function() {
635
+ var e = /* @__PURE__ */ b(function(f1, c, h, p) {
636
+ for (h = h || {}, p = f1.length; p--; h[f1[p]] = c) ;
637
+ return h;
638
+ }, "o"), i = [1, 4], r = [1, 3], a = [1, 5], o = [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], d = [2, 2], l = [1, 13], A = [1, 14], n = [1, 15], g = [1, 16], B = [1, 23], f = [1, 25], k = [1, 26], Y = [1, 27], F = [1, 50], _ = [1, 49], b1 = [1, 29], N1 = [1, 30], j = [1, 31], h1 = [1, 32], P1 = [1, 33], L = [1, 45], V = [1, 47], I = [1, 43], w = [1, 48], R = [1, 44], N = [1, 51], G = [1, 46], P = [1, 52], O = [1, 53], O1 = [1, 34], M1 = [1, 35], U1 = [1, 36], z1 = [1, 37], W1 = [1, 38], d1 = [1, 58], T = [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], $ = [1, 62], e1 = [1, 61], t1 = [1, 63], D1 = [8, 9, 11, 75, 77, 78], ae = [1, 79], E1 = [1, 92], C1 = [1, 97], T1 = [1, 96], S1 = [1, 93], y1 = [1, 89], x1 = [1, 95], F1 = [1, 91], _1 = [1, 98], B1 = [1, 94], v1 = [1, 99], L1 = [1, 90], A1 = [8, 9, 10, 11, 40, 75, 77, 78], U = [8, 9, 10, 11, 40, 46, 75, 77, 78], q = [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], ne = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], V1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], ue = [1, 122], oe = [1, 123], j1 = [1, 125], K1 = [1, 124], le = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], ce = [1, 134], he = [1, 148], de = [1, 149], pe = [1, 150], fe = [1, 151], ge = [1, 136], be = [1, 138], Ae = [1, 142], ke = [1, 143], me = [1, 144], De = [1, 145], Ee = [1, 146], Ce = [1, 147], Te = [1, 152], Se = [1, 153], ye = [1, 132], xe = [1, 133], Fe = [1, 140], _e = [1, 135], Be = [1, 139], ve = [1, 137], X1 = [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], Le = [1, 155], Ve = [1, 157], x = [8, 9, 11], H = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], m = [1, 177], z = [1, 173], W = [1, 174], D = [1, 178], E = [1, 175], C = [1, 176], I1 = [77, 116, 119], S = [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], Ie = [10, 106], p1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], s1 = [1, 248], i1 = [1, 246], r1 = [1, 250], a1 = [1, 244], n1 = [1, 245], u1 = [1, 247], o1 = [1, 249], l1 = [1, 251], w1 = [1, 269], we = [8, 9, 11, 106], J = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Q1 = {
639
+ trace: /* @__PURE__ */ b(function() {
640
+ }, "trace"),
641
+ yy: {},
642
+ 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 },
643
+ 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" },
644
+ 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]],
645
+ performAction: /* @__PURE__ */ b(function(c, h, p, u, y, t, G1) {
646
+ var s = t.length - 1;
647
+ switch (y) {
648
+ case 2:
649
+ this.$ = [];
650
+ break;
651
+ case 3:
652
+ (!Array.isArray(t[s]) || t[s].length > 0) && t[s - 1].push(t[s]), this.$ = t[s - 1];
653
+ break;
654
+ case 4:
655
+ case 183:
656
+ this.$ = t[s];
657
+ break;
658
+ case 11:
659
+ u.setDirection("TB"), this.$ = "TB";
660
+ break;
661
+ case 12:
662
+ u.setDirection(t[s - 1]), this.$ = t[s - 1];
663
+ break;
664
+ case 27:
665
+ this.$ = t[s - 1].nodes;
666
+ break;
667
+ case 28:
668
+ case 29:
669
+ case 30:
670
+ case 31:
671
+ case 32:
672
+ this.$ = [];
673
+ break;
674
+ case 33:
675
+ this.$ = u.addSubGraph(t[s - 6], t[s - 1], t[s - 4]);
676
+ break;
677
+ case 34:
678
+ this.$ = u.addSubGraph(t[s - 3], t[s - 1], t[s - 3]);
679
+ break;
680
+ case 35:
681
+ this.$ = u.addSubGraph(void 0, t[s - 1], void 0);
682
+ break;
683
+ case 37:
684
+ this.$ = t[s].trim(), u.setAccTitle(this.$);
685
+ break;
686
+ case 38:
687
+ case 39:
688
+ this.$ = t[s].trim(), u.setAccDescription(this.$);
689
+ break;
690
+ case 43:
691
+ this.$ = t[s - 1] + t[s];
692
+ break;
693
+ case 44:
694
+ this.$ = t[s];
695
+ break;
696
+ case 45:
697
+ u.addVertex(t[s - 1][t[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[s]), u.addLink(t[s - 3].stmt, t[s - 1], t[s - 2]), this.$ = { stmt: t[s - 1], nodes: t[s - 1].concat(t[s - 3].nodes) };
698
+ break;
699
+ case 46:
700
+ u.addLink(t[s - 2].stmt, t[s], t[s - 1]), this.$ = { stmt: t[s], nodes: t[s].concat(t[s - 2].nodes) };
701
+ break;
702
+ case 47:
703
+ u.addLink(t[s - 3].stmt, t[s - 1], t[s - 2]), this.$ = { stmt: t[s - 1], nodes: t[s - 1].concat(t[s - 3].nodes) };
704
+ break;
705
+ case 48:
706
+ this.$ = { stmt: t[s - 1], nodes: t[s - 1] };
707
+ break;
708
+ case 49:
709
+ u.addVertex(t[s - 1][t[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[s]), this.$ = { stmt: t[s - 1], nodes: t[s - 1], shapeData: t[s] };
710
+ break;
711
+ case 50:
712
+ this.$ = { stmt: t[s], nodes: t[s] };
713
+ break;
714
+ case 51:
715
+ this.$ = [t[s]];
716
+ break;
717
+ case 52:
718
+ u.addVertex(t[s - 5][t[s - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[s - 4]), this.$ = t[s - 5].concat(t[s]);
719
+ break;
720
+ case 53:
721
+ this.$ = t[s - 4].concat(t[s]);
722
+ break;
723
+ case 54:
724
+ this.$ = t[s];
725
+ break;
726
+ case 55:
727
+ this.$ = t[s - 2], u.setClass(t[s - 2], t[s]);
728
+ break;
729
+ case 56:
730
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "square");
731
+ break;
732
+ case 57:
733
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "doublecircle");
734
+ break;
735
+ case 58:
736
+ this.$ = t[s - 5], u.addVertex(t[s - 5], t[s - 2], "circle");
737
+ break;
738
+ case 59:
739
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "ellipse");
740
+ break;
741
+ case 60:
742
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "stadium");
743
+ break;
744
+ case 61:
745
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "subroutine");
746
+ break;
747
+ case 62:
748
+ this.$ = t[s - 7], u.addVertex(t[s - 7], t[s - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[t[s - 5], t[s - 3]]]));
749
+ break;
750
+ case 63:
751
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "cylinder");
752
+ break;
753
+ case 64:
754
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "round");
755
+ break;
756
+ case 65:
757
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "diamond");
758
+ break;
759
+ case 66:
760
+ this.$ = t[s - 5], u.addVertex(t[s - 5], t[s - 2], "hexagon");
761
+ break;
762
+ case 67:
763
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "odd");
764
+ break;
765
+ case 68:
766
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "trapezoid");
767
+ break;
768
+ case 69:
769
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "inv_trapezoid");
770
+ break;
771
+ case 70:
772
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "lean_right");
773
+ break;
774
+ case 71:
775
+ this.$ = t[s - 3], u.addVertex(t[s - 3], t[s - 1], "lean_left");
776
+ break;
777
+ case 72:
778
+ this.$ = t[s], u.addVertex(t[s]);
779
+ break;
780
+ case 73:
781
+ t[s - 1].text = t[s], this.$ = t[s - 1];
782
+ break;
783
+ case 74:
784
+ case 75:
785
+ t[s - 2].text = t[s - 1], this.$ = t[s - 2];
786
+ break;
787
+ case 76:
788
+ this.$ = t[s];
789
+ break;
790
+ case 77:
791
+ var v = u.destructLink(t[s], t[s - 2]);
792
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: t[s - 1] };
793
+ break;
794
+ case 78:
795
+ var v = u.destructLink(t[s], t[s - 2]);
796
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: t[s - 1], id: t[s - 3] };
797
+ break;
798
+ case 79:
799
+ this.$ = { text: t[s], type: "text" };
800
+ break;
801
+ case 80:
802
+ this.$ = { text: t[s - 1].text + "" + t[s], type: t[s - 1].type };
803
+ break;
804
+ case 81:
805
+ this.$ = { text: t[s], type: "string" };
806
+ break;
807
+ case 82:
808
+ this.$ = { text: t[s], type: "markdown" };
809
+ break;
810
+ case 83:
811
+ var v = u.destructLink(t[s]);
812
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length };
813
+ break;
814
+ case 84:
815
+ var v = u.destructLink(t[s]);
816
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, id: t[s - 1] };
817
+ break;
818
+ case 85:
819
+ this.$ = t[s - 1];
820
+ break;
821
+ case 86:
822
+ this.$ = { text: t[s], type: "text" };
823
+ break;
824
+ case 87:
825
+ this.$ = { text: t[s - 1].text + "" + t[s], type: t[s - 1].type };
826
+ break;
827
+ case 88:
828
+ this.$ = { text: t[s], type: "string" };
829
+ break;
830
+ case 89:
831
+ case 104:
832
+ this.$ = { text: t[s], type: "markdown" };
833
+ break;
834
+ case 101:
835
+ this.$ = { text: t[s], type: "text" };
836
+ break;
837
+ case 102:
838
+ this.$ = { text: t[s - 1].text + "" + t[s], type: t[s - 1].type };
839
+ break;
840
+ case 103:
841
+ this.$ = { text: t[s], type: "text" };
842
+ break;
843
+ case 105:
844
+ this.$ = t[s - 4], u.addClass(t[s - 2], t[s]);
845
+ break;
846
+ case 106:
847
+ this.$ = t[s - 4], u.setClass(t[s - 2], t[s]);
848
+ break;
849
+ case 107:
850
+ case 115:
851
+ this.$ = t[s - 1], u.setClickEvent(t[s - 1], t[s]);
852
+ break;
853
+ case 108:
854
+ case 116:
855
+ this.$ = t[s - 3], u.setClickEvent(t[s - 3], t[s - 2]), u.setTooltip(t[s - 3], t[s]);
856
+ break;
857
+ case 109:
858
+ this.$ = t[s - 2], u.setClickEvent(t[s - 2], t[s - 1], t[s]);
859
+ break;
860
+ case 110:
861
+ this.$ = t[s - 4], u.setClickEvent(t[s - 4], t[s - 3], t[s - 2]), u.setTooltip(t[s - 4], t[s]);
862
+ break;
863
+ case 111:
864
+ this.$ = t[s - 2], u.setLink(t[s - 2], t[s]);
865
+ break;
866
+ case 112:
867
+ this.$ = t[s - 4], u.setLink(t[s - 4], t[s - 2]), u.setTooltip(t[s - 4], t[s]);
868
+ break;
869
+ case 113:
870
+ this.$ = t[s - 4], u.setLink(t[s - 4], t[s - 2], t[s]);
871
+ break;
872
+ case 114:
873
+ this.$ = t[s - 6], u.setLink(t[s - 6], t[s - 4], t[s]), u.setTooltip(t[s - 6], t[s - 2]);
874
+ break;
875
+ case 117:
876
+ this.$ = t[s - 1], u.setLink(t[s - 1], t[s]);
877
+ break;
878
+ case 118:
879
+ this.$ = t[s - 3], u.setLink(t[s - 3], t[s - 2]), u.setTooltip(t[s - 3], t[s]);
880
+ break;
881
+ case 119:
882
+ this.$ = t[s - 3], u.setLink(t[s - 3], t[s - 2], t[s]);
883
+ break;
884
+ case 120:
885
+ this.$ = t[s - 5], u.setLink(t[s - 5], t[s - 4], t[s]), u.setTooltip(t[s - 5], t[s - 2]);
886
+ break;
887
+ case 121:
888
+ this.$ = t[s - 4], u.addVertex(t[s - 2], void 0, void 0, t[s]);
889
+ break;
890
+ case 122:
891
+ this.$ = t[s - 4], u.updateLink([t[s - 2]], t[s]);
892
+ break;
893
+ case 123:
894
+ this.$ = t[s - 4], u.updateLink(t[s - 2], t[s]);
895
+ break;
896
+ case 124:
897
+ this.$ = t[s - 8], u.updateLinkInterpolate([t[s - 6]], t[s - 2]), u.updateLink([t[s - 6]], t[s]);
898
+ break;
899
+ case 125:
900
+ this.$ = t[s - 8], u.updateLinkInterpolate(t[s - 6], t[s - 2]), u.updateLink(t[s - 6], t[s]);
901
+ break;
902
+ case 126:
903
+ this.$ = t[s - 6], u.updateLinkInterpolate([t[s - 4]], t[s]);
904
+ break;
905
+ case 127:
906
+ this.$ = t[s - 6], u.updateLinkInterpolate(t[s - 4], t[s]);
907
+ break;
908
+ case 128:
909
+ case 130:
910
+ this.$ = [t[s]];
911
+ break;
912
+ case 129:
913
+ case 131:
914
+ t[s - 2].push(t[s]), this.$ = t[s - 2];
915
+ break;
916
+ case 133:
917
+ this.$ = t[s - 1] + t[s];
918
+ break;
919
+ case 181:
920
+ this.$ = t[s];
921
+ break;
922
+ case 182:
923
+ this.$ = t[s - 1] + "" + t[s];
924
+ break;
925
+ case 184:
926
+ this.$ = t[s - 1] + "" + t[s];
927
+ break;
928
+ case 185:
929
+ this.$ = { stmt: "dir", value: "TB" };
930
+ break;
931
+ case 186:
932
+ this.$ = { stmt: "dir", value: "BT" };
933
+ break;
934
+ case 187:
935
+ this.$ = { stmt: "dir", value: "RL" };
936
+ break;
937
+ case 188:
938
+ this.$ = { stmt: "dir", value: "LR" };
939
+ break;
940
+ case 189:
941
+ this.$ = { stmt: "dir", value: "TD" };
942
+ break;
943
+ }
944
+ }, "anonymous"),
945
+ table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, e(o, d, { 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: l, 9: A, 10: n, 11: g, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: B, 33: 24, 34: f, 36: k, 38: Y, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: _, 84: b1, 85: N1, 86: j, 87: h1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, e(o, [2, 9]), e(o, [2, 10]), e(o, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: d1, 15: 54, 18: 57 }, e(T, [2, 3]), e(T, [2, 4]), e(T, [2, 5]), e(T, [2, 6]), e(T, [2, 7]), e(T, [2, 8]), { 8: $, 9: e1, 11: t1, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: $, 9: e1, 11: t1, 21: 68 }, { 8: $, 9: e1, 11: t1, 21: 69 }, { 8: $, 9: e1, 11: t1, 21: 70 }, { 8: $, 9: e1, 11: t1, 21: 71 }, { 8: $, 9: e1, 11: t1, 21: 72 }, { 8: $, 9: e1, 10: [1, 73], 11: t1, 21: 74 }, e(T, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, e(T, [2, 39]), e(D1, [2, 50], { 18: 77, 39: 78, 10: d1, 40: ae }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: E1, 44: C1, 60: T1, 80: [1, 87], 89: S1, 95: [1, 84], 97: [1, 85], 101: 86, 105: y1, 106: x1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1, 120: 88 }, e(T, [2, 185]), e(T, [2, 186]), e(T, [2, 187]), e(T, [2, 188]), e(T, [2, 189]), e(A1, [2, 51]), e(A1, [2, 54], { 46: [1, 100] }), e(U, [2, 72], { 113: 113, 29: [1, 101], 44: F, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: _, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), e(q, [2, 181]), e(q, [2, 142]), e(q, [2, 143]), e(q, [2, 144]), e(q, [2, 145]), e(q, [2, 146]), e(q, [2, 147]), e(q, [2, 148]), e(q, [2, 149]), e(q, [2, 150]), e(q, [2, 151]), e(q, [2, 152]), e(o, [2, 12]), e(o, [2, 18]), e(o, [2, 19]), { 9: [1, 114] }, e(ne, [2, 26], { 18: 115, 10: d1 }), e(T, [2, 27]), { 42: 116, 43: 39, 44: F, 45: 40, 47: 41, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(T, [2, 40]), e(T, [2, 41]), e(T, [2, 42]), e(V1, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: ue, 81: oe, 116: j1, 119: K1 }, { 75: [1, 126], 77: [1, 127] }, e(le, [2, 83]), e(T, [2, 28]), e(T, [2, 29]), e(T, [2, 30]), e(T, [2, 31]), e(T, [2, 32]), { 10: ce, 12: he, 14: de, 27: pe, 28: 128, 32: fe, 44: ge, 60: be, 75: Ae, 80: [1, 130], 81: [1, 131], 83: 141, 84: ke, 85: me, 86: De, 87: Ee, 88: Ce, 89: Te, 90: Se, 91: 129, 105: ye, 109: xe, 111: Fe, 114: _e, 115: Be, 116: ve }, e(X1, d, { 5: 154 }), e(T, [2, 37]), e(T, [2, 38]), e(D1, [2, 48], { 44: Le }), e(D1, [2, 49], { 18: 156, 10: d1, 40: Ve }), e(A1, [2, 44]), { 44: F, 47: 158, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: F, 47: 162, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 44: F, 47: 163, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(x, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, e(x, [2, 115], { 120: 168, 10: [1, 167], 14: E1, 44: C1, 60: T1, 89: S1, 105: y1, 106: x1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1 }), e(x, [2, 117], { 10: [1, 169] }), e(H, [2, 183]), e(H, [2, 170]), e(H, [2, 171]), e(H, [2, 172]), e(H, [2, 173]), e(H, [2, 174]), e(H, [2, 175]), e(H, [2, 176]), e(H, [2, 177]), e(H, [2, 178]), e(H, [2, 179]), e(H, [2, 180]), { 44: F, 47: 170, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 30: 171, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 179, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 181, 50: [1, 180], 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 182, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 183, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 184, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 109: [1, 185] }, { 30: 186, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 187, 65: [1, 188], 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 189, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 190, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 30: 191, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, e(q, [2, 182]), e(o, [2, 20]), e(ne, [2, 25]), e(D1, [2, 46], { 39: 192, 18: 193, 10: d1, 40: ae }), e(V1, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 77: [1, 197], 79: 198, 116: j1, 119: K1 }, e(I1, [2, 79]), e(I1, [2, 81]), e(I1, [2, 82]), e(I1, [2, 168]), e(I1, [2, 169]), { 76: 199, 79: 121, 80: ue, 81: oe, 116: j1, 119: K1 }, e(le, [2, 84]), { 8: $, 9: e1, 10: ce, 11: t1, 12: he, 14: de, 21: 201, 27: pe, 29: [1, 200], 32: fe, 44: ge, 60: be, 75: Ae, 83: 141, 84: ke, 85: me, 86: De, 87: Ee, 88: Ce, 89: Te, 90: Se, 91: 202, 105: ye, 109: xe, 111: Fe, 114: _e, 115: Be, 116: ve }, e(S, [2, 101]), e(S, [2, 103]), e(S, [2, 104]), e(S, [2, 157]), e(S, [2, 158]), e(S, [2, 159]), e(S, [2, 160]), e(S, [2, 161]), e(S, [2, 162]), e(S, [2, 163]), e(S, [2, 164]), e(S, [2, 165]), e(S, [2, 166]), e(S, [2, 167]), e(S, [2, 90]), e(S, [2, 91]), e(S, [2, 92]), e(S, [2, 93]), e(S, [2, 94]), e(S, [2, 95]), e(S, [2, 96]), e(S, [2, 97]), e(S, [2, 98]), e(S, [2, 99]), e(S, [2, 100]), { 6: 11, 7: 12, 8: l, 9: A, 10: n, 11: g, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: B, 32: [1, 203], 33: 24, 34: f, 36: k, 38: Y, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: _, 84: b1, 85: N1, 86: j, 87: h1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, { 10: d1, 18: 204 }, { 44: [1, 205] }, e(A1, [2, 43]), { 10: [1, 206], 44: F, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, e(Ie, [2, 128]), { 10: [1, 210], 44: F, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 10: [1, 211], 44: F, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 80: [1, 212] }, e(x, [2, 109], { 10: [1, 213] }), e(x, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, e(H, [2, 184]), { 80: [1, 216], 98: [1, 217] }, e(A1, [2, 55], { 113: 113, 44: F, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), { 31: [1, 218], 67: m, 82: 219, 116: D, 117: E, 118: C }, e(p1, [2, 86]), e(p1, [2, 88]), e(p1, [2, 89]), e(p1, [2, 153]), e(p1, [2, 154]), e(p1, [2, 155]), e(p1, [2, 156]), { 49: [1, 220], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 30: 221, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 51: [1, 222], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 53: [1, 223], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 55: [1, 224], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 57: [1, 225], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 60: [1, 226] }, { 64: [1, 227], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 66: [1, 228], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 30: 229, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, { 31: [1, 230], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 67: m, 69: [1, 231], 71: [1, 232], 82: 219, 116: D, 117: E, 118: C }, { 67: m, 69: [1, 234], 71: [1, 233], 82: 219, 116: D, 117: E, 118: C }, e(D1, [2, 45], { 18: 156, 10: d1, 40: Ve }), e(D1, [2, 47], { 44: Le }), e(V1, [2, 75]), e(V1, [2, 74]), { 62: [1, 235], 67: m, 82: 219, 116: D, 117: E, 118: C }, e(V1, [2, 77]), e(I1, [2, 80]), { 77: [1, 236], 79: 198, 116: j1, 119: K1 }, { 30: 237, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, e(X1, d, { 5: 238 }), e(S, [2, 102]), e(T, [2, 35]), { 43: 239, 44: F, 45: 40, 47: 41, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 10: d1, 18: 240 }, { 10: s1, 60: i1, 84: r1, 92: 241, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 252, 104: [1, 253], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 254, 104: [1, 255], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 105: [1, 256] }, { 10: s1, 60: i1, 84: r1, 92: 257, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 44: F, 47: 258, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(x, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, e(x, [2, 116]), e(x, [2, 118], { 10: [1, 262] }), e(x, [2, 119]), e(U, [2, 56]), e(p1, [2, 87]), e(U, [2, 57]), { 51: [1, 263], 67: m, 82: 219, 116: D, 117: E, 118: C }, e(U, [2, 64]), e(U, [2, 59]), e(U, [2, 60]), e(U, [2, 61]), { 109: [1, 264] }, e(U, [2, 63]), e(U, [2, 65]), { 66: [1, 265], 67: m, 82: 219, 116: D, 117: E, 118: C }, e(U, [2, 67]), e(U, [2, 68]), e(U, [2, 70]), e(U, [2, 69]), e(U, [2, 71]), e([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), e(V1, [2, 78]), { 31: [1, 266], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 6: 11, 7: 12, 8: l, 9: A, 10: n, 11: g, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: B, 32: [1, 267], 33: 24, 34: f, 36: k, 38: Y, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: _, 84: b1, 85: N1, 86: j, 87: h1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, e(A1, [2, 53]), { 43: 268, 44: F, 45: 40, 47: 41, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(x, [2, 121], { 106: w1 }), e(we, [2, 130], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), e(J, [2, 132]), e(J, [2, 134]), e(J, [2, 135]), e(J, [2, 136]), e(J, [2, 137]), e(J, [2, 138]), e(J, [2, 139]), e(J, [2, 140]), e(J, [2, 141]), e(x, [2, 122], { 106: w1 }), { 10: [1, 271] }, e(x, [2, 123], { 106: w1 }), { 10: [1, 272] }, e(Ie, [2, 129]), e(x, [2, 105], { 106: w1 }), e(x, [2, 106], { 113: 113, 44: F, 60: _, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), e(x, [2, 110]), e(x, [2, 112], { 10: [1, 273] }), e(x, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: $, 9: e1, 11: t1, 21: 278 }, e(T, [2, 34]), e(A1, [2, 52]), { 10: s1, 60: i1, 84: r1, 105: a1, 107: 279, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, e(J, [2, 133]), { 14: E1, 44: C1, 60: T1, 89: S1, 101: 280, 105: y1, 106: x1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1, 120: 88 }, { 14: E1, 44: C1, 60: T1, 89: S1, 101: 281, 105: y1, 106: x1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1, 120: 88 }, { 98: [1, 282] }, e(x, [2, 120]), e(U, [2, 58]), { 30: 283, 67: m, 80: z, 81: W, 82: 172, 116: D, 117: E, 118: C }, e(U, [2, 66]), e(X1, d, { 5: 284 }), e(we, [2, 131], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), e(x, [2, 126], { 120: 168, 10: [1, 285], 14: E1, 44: C1, 60: T1, 89: S1, 105: y1, 106: x1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1 }), e(x, [2, 127], { 120: 168, 10: [1, 286], 14: E1, 44: C1, 60: T1, 89: S1, 105: y1, 106: x1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1 }), e(x, [2, 114]), { 31: [1, 287], 67: m, 82: 219, 116: D, 117: E, 118: C }, { 6: 11, 7: 12, 8: l, 9: A, 10: n, 11: g, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: B, 32: [1, 288], 33: 24, 34: f, 36: k, 38: Y, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: _, 84: b1, 85: N1, 86: j, 87: h1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, { 10: s1, 60: i1, 84: r1, 92: 289, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 290, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, e(U, [2, 62]), e(T, [2, 33]), e(x, [2, 124], { 106: w1 }), e(x, [2, 125], { 106: w1 })],
946
+ defaultActions: {},
947
+ parseError: /* @__PURE__ */ b(function(c, h) {
948
+ if (h.recoverable)
949
+ this.trace(c);
950
+ else {
951
+ var p = new Error(c);
952
+ throw p.hash = h, p;
953
+ }
954
+ }, "parseError"),
955
+ parse: /* @__PURE__ */ b(function(c) {
956
+ var h = this, p = [0], u = [], y = [null], t = [], G1 = this.table, s = "", v = 0, Re = 0, je = 2, Ne = 1, Ke = t.slice.call(arguments, 1), M = Object.create(this.lexer), k1 = { yy: {} };
957
+ for (var Z1 in this.yy)
958
+ Object.prototype.hasOwnProperty.call(this.yy, Z1) && (k1.yy[Z1] = this.yy[Z1]);
959
+ M.setInput(c, k1.yy), k1.yy.lexer = M, k1.yy.parser = this, typeof M.yylloc > "u" && (M.yylloc = {});
960
+ var J1 = M.yylloc;
961
+ t.push(J1);
962
+ var Ye = M.options && M.options.ranges;
963
+ typeof k1.yy.parseError == "function" ? this.parseError = k1.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
964
+ function qe(X) {
965
+ p.length = p.length - 2 * X, y.length = y.length - X, t.length = t.length - X;
966
+ }
967
+ b(qe, "popStack");
968
+ function Ge() {
969
+ var X;
970
+ return X = u.pop() || M.lex() || Ne, typeof X != "number" && (X instanceof Array && (u = X, X = u.pop()), X = h.symbols_[X] || X), X;
971
+ }
972
+ b(Ge, "lex");
973
+ for (var K, m1, Q, $1, R1 = {}, q1, c1, Pe, H1; ; ) {
974
+ if (m1 = p[p.length - 1], this.defaultActions[m1] ? Q = this.defaultActions[m1] : ((K === null || typeof K > "u") && (K = Ge()), Q = G1[m1] && G1[m1][K]), typeof Q > "u" || !Q.length || !Q[0]) {
975
+ var ee = "";
976
+ H1 = [];
977
+ for (q1 in G1[m1])
978
+ this.terminals_[q1] && q1 > je && H1.push("'" + this.terminals_[q1] + "'");
979
+ M.showPosition ? ee = "Parse error on line " + (v + 1) + `:
980
+ ` + M.showPosition() + `
981
+ Expecting ` + H1.join(", ") + ", got '" + (this.terminals_[K] || K) + "'" : ee = "Parse error on line " + (v + 1) + ": Unexpected " + (K == Ne ? "end of input" : "'" + (this.terminals_[K] || K) + "'"), this.parseError(ee, {
982
+ text: M.match,
983
+ token: this.terminals_[K] || K,
984
+ line: M.yylineno,
985
+ loc: J1,
986
+ expected: H1
987
+ });
988
+ }
989
+ if (Q[0] instanceof Array && Q.length > 1)
990
+ throw new Error("Parse Error: multiple actions possible at state: " + m1 + ", token: " + K);
991
+ switch (Q[0]) {
992
+ case 1:
993
+ p.push(K), y.push(M.yytext), t.push(M.yylloc), p.push(Q[1]), K = null, Re = M.yyleng, s = M.yytext, v = M.yylineno, J1 = M.yylloc;
994
+ break;
995
+ case 2:
996
+ if (c1 = this.productions_[Q[1]][1], R1.$ = y[y.length - c1], R1._$ = {
997
+ first_line: t[t.length - (c1 || 1)].first_line,
998
+ last_line: t[t.length - 1].last_line,
999
+ first_column: t[t.length - (c1 || 1)].first_column,
1000
+ last_column: t[t.length - 1].last_column
1001
+ }, Ye && (R1._$.range = [
1002
+ t[t.length - (c1 || 1)].range[0],
1003
+ t[t.length - 1].range[1]
1004
+ ]), $1 = this.performAction.apply(R1, [
1005
+ s,
1006
+ Re,
1007
+ v,
1008
+ k1.yy,
1009
+ Q[1],
1010
+ y,
1011
+ t
1012
+ ].concat(Ke)), typeof $1 < "u")
1013
+ return $1;
1014
+ c1 && (p = p.slice(0, -1 * c1 * 2), y = y.slice(0, -1 * c1), t = t.slice(0, -1 * c1)), p.push(this.productions_[Q[1]][0]), y.push(R1.$), t.push(R1._$), Pe = G1[p[p.length - 2]][p[p.length - 1]], p.push(Pe);
1015
+ break;
1016
+ case 3:
1017
+ return !0;
1018
+ }
1019
+ }
1020
+ return !0;
1021
+ }, "parse")
1022
+ }, We = /* @__PURE__ */ (function() {
1023
+ var f1 = {
1024
+ EOF: 1,
1025
+ parseError: /* @__PURE__ */ b(function(h, p) {
1026
+ if (this.yy.parser)
1027
+ this.yy.parser.parseError(h, p);
1028
+ else
1029
+ throw new Error(h);
1030
+ }, "parseError"),
1031
+ // resets the lexer, sets new input
1032
+ setInput: /* @__PURE__ */ b(function(c, h) {
1033
+ return this.yy = h || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1034
+ first_line: 1,
1035
+ first_column: 0,
1036
+ last_line: 1,
1037
+ last_column: 0
1038
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1039
+ }, "setInput"),
1040
+ // consumes and returns one char from the input
1041
+ input: /* @__PURE__ */ b(function() {
1042
+ var c = this._input[0];
1043
+ this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
1044
+ var h = c.match(/(?:\r\n?|\n).*/g);
1045
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
1046
+ }, "input"),
1047
+ // unshifts one char (or a string) into the input
1048
+ unput: /* @__PURE__ */ b(function(c) {
1049
+ var h = c.length, p = c.split(/(?:\r\n?|\n)/g);
1050
+ this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
1051
+ var u = this.match.split(/(?:\r\n?|\n)/g);
1052
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
1053
+ var y = this.yylloc.range;
1054
+ return this.yylloc = {
1055
+ first_line: this.yylloc.first_line,
1056
+ last_line: this.yylineno + 1,
1057
+ first_column: this.yylloc.first_column,
1058
+ last_column: p ? (p.length === u.length ? this.yylloc.first_column : 0) + u[u.length - p.length].length - p[0].length : this.yylloc.first_column - h
1059
+ }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
1060
+ }, "unput"),
1061
+ // When called from action, caches matched text and appends it on next action
1062
+ more: /* @__PURE__ */ b(function() {
1063
+ return this._more = !0, this;
1064
+ }, "more"),
1065
+ // 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.
1066
+ reject: /* @__PURE__ */ b(function() {
1067
+ if (this.options.backtrack_lexer)
1068
+ this._backtrack = !0;
1069
+ else
1070
+ 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).
1071
+ ` + this.showPosition(), {
1072
+ text: "",
1073
+ token: null,
1074
+ line: this.yylineno
1075
+ });
1076
+ return this;
1077
+ }, "reject"),
1078
+ // retain first n characters of the match
1079
+ less: /* @__PURE__ */ b(function(c) {
1080
+ this.unput(this.match.slice(c));
1081
+ }, "less"),
1082
+ // displays already matched input, i.e. for error messages
1083
+ pastInput: /* @__PURE__ */ b(function() {
1084
+ var c = this.matched.substr(0, this.matched.length - this.match.length);
1085
+ return (c.length > 20 ? "..." : "") + c.substr(-20).replace(/\n/g, "");
1086
+ }, "pastInput"),
1087
+ // displays upcoming input, i.e. for error messages
1088
+ upcomingInput: /* @__PURE__ */ b(function() {
1089
+ var c = this.match;
1090
+ return c.length < 20 && (c += this._input.substr(0, 20 - c.length)), (c.substr(0, 20) + (c.length > 20 ? "..." : "")).replace(/\n/g, "");
1091
+ }, "upcomingInput"),
1092
+ // displays the character position where the lexing error occurred, i.e. for error messages
1093
+ showPosition: /* @__PURE__ */ b(function() {
1094
+ var c = this.pastInput(), h = new Array(c.length + 1).join("-");
1095
+ return c + this.upcomingInput() + `
1096
+ ` + h + "^";
1097
+ }, "showPosition"),
1098
+ // test the lexed token: return FALSE when not a match, otherwise return token
1099
+ test_match: /* @__PURE__ */ b(function(c, h) {
1100
+ var p, u, y;
1101
+ if (this.options.backtrack_lexer && (y = {
1102
+ yylineno: this.yylineno,
1103
+ yylloc: {
1104
+ first_line: this.yylloc.first_line,
1105
+ last_line: this.last_line,
1106
+ first_column: this.yylloc.first_column,
1107
+ last_column: this.yylloc.last_column
1108
+ },
1109
+ yytext: this.yytext,
1110
+ match: this.match,
1111
+ matches: this.matches,
1112
+ matched: this.matched,
1113
+ yyleng: this.yyleng,
1114
+ offset: this.offset,
1115
+ _more: this._more,
1116
+ _input: this._input,
1117
+ yy: this.yy,
1118
+ conditionStack: this.conditionStack.slice(0),
1119
+ done: this.done
1120
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = c[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
1121
+ first_line: this.yylloc.last_line,
1122
+ last_line: this.yylineno + 1,
1123
+ first_column: this.yylloc.last_column,
1124
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
1125
+ }, this.yytext += c[0], this.match += c[0], this.matches = c, 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(c[0].length), this.matched += c[0], p = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
1126
+ return p;
1127
+ if (this._backtrack) {
1128
+ for (var t in y)
1129
+ this[t] = y[t];
1130
+ return !1;
1131
+ }
1132
+ return !1;
1133
+ }, "test_match"),
1134
+ // return next match in input
1135
+ next: /* @__PURE__ */ b(function() {
1136
+ if (this.done)
1137
+ return this.EOF;
1138
+ this._input || (this.done = !0);
1139
+ var c, h, p, u;
1140
+ this._more || (this.yytext = "", this.match = "");
1141
+ for (var y = this._currentRules(), t = 0; t < y.length; t++)
1142
+ if (p = this._input.match(this.rules[y[t]]), p && (!h || p[0].length > h[0].length)) {
1143
+ if (h = p, u = t, this.options.backtrack_lexer) {
1144
+ if (c = this.test_match(p, y[t]), c !== !1)
1145
+ return c;
1146
+ if (this._backtrack) {
1147
+ h = !1;
1148
+ continue;
1149
+ } else
1150
+ return !1;
1151
+ } else if (!this.options.flex)
1152
+ break;
1153
+ }
1154
+ return h ? (c = this.test_match(h, y[u]), c !== !1 ? c : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1155
+ ` + this.showPosition(), {
1156
+ text: "",
1157
+ token: null,
1158
+ line: this.yylineno
1159
+ });
1160
+ }, "next"),
1161
+ // return next match that has a token
1162
+ lex: /* @__PURE__ */ b(function() {
1163
+ var h = this.next();
1164
+ return h || this.lex();
1165
+ }, "lex"),
1166
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1167
+ begin: /* @__PURE__ */ b(function(h) {
1168
+ this.conditionStack.push(h);
1169
+ }, "begin"),
1170
+ // pop the previously active lexer condition state off the condition stack
1171
+ popState: /* @__PURE__ */ b(function() {
1172
+ var h = this.conditionStack.length - 1;
1173
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1174
+ }, "popState"),
1175
+ // produce the lexer rule set which is active for the currently active lexer condition state
1176
+ _currentRules: /* @__PURE__ */ b(function() {
1177
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1178
+ }, "_currentRules"),
1179
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1180
+ topState: /* @__PURE__ */ b(function(h) {
1181
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
1182
+ }, "topState"),
1183
+ // alias for begin(condition)
1184
+ pushState: /* @__PURE__ */ b(function(h) {
1185
+ this.begin(h);
1186
+ }, "pushState"),
1187
+ // return the number of states currently on the stack
1188
+ stateStackSize: /* @__PURE__ */ b(function() {
1189
+ return this.conditionStack.length;
1190
+ }, "stateStackSize"),
1191
+ options: {},
1192
+ performAction: /* @__PURE__ */ b(function(h, p, u, y) {
1193
+ switch (u) {
1194
+ case 0:
1195
+ return this.begin("acc_title"), 34;
1196
+ case 1:
1197
+ return this.popState(), "acc_title_value";
1198
+ case 2:
1199
+ return this.begin("acc_descr"), 36;
1200
+ case 3:
1201
+ return this.popState(), "acc_descr_value";
1202
+ case 4:
1203
+ this.begin("acc_descr_multiline");
1204
+ break;
1205
+ case 5:
1206
+ this.popState();
1207
+ break;
1208
+ case 6:
1209
+ return "acc_descr_multiline_value";
1210
+ case 7:
1211
+ return this.pushState("shapeData"), p.yytext = "", 40;
1212
+ case 8:
1213
+ return this.pushState("shapeDataStr"), 40;
1214
+ case 9:
1215
+ return this.popState(), 40;
1216
+ case 10:
1217
+ const t = /\n\s*/g;
1218
+ return p.yytext = p.yytext.replace(t, "<br/>"), 40;
1219
+ case 11:
1220
+ return 40;
1221
+ case 12:
1222
+ this.popState();
1223
+ break;
1224
+ case 13:
1225
+ this.begin("callbackname");
1226
+ break;
1227
+ case 14:
1228
+ this.popState();
1229
+ break;
1230
+ case 15:
1231
+ this.popState(), this.begin("callbackargs");
1232
+ break;
1233
+ case 16:
1234
+ return 95;
1235
+ case 17:
1236
+ this.popState();
1237
+ break;
1238
+ case 18:
1239
+ return 96;
1240
+ case 19:
1241
+ return "MD_STR";
1242
+ case 20:
1243
+ this.popState();
1244
+ break;
1245
+ case 21:
1246
+ this.begin("md_string");
1247
+ break;
1248
+ case 22:
1249
+ return "STR";
1250
+ case 23:
1251
+ this.popState();
1252
+ break;
1253
+ case 24:
1254
+ this.pushState("string");
1255
+ break;
1256
+ case 25:
1257
+ return 84;
1258
+ case 26:
1259
+ return 102;
1260
+ case 27:
1261
+ return 85;
1262
+ case 28:
1263
+ return 104;
1264
+ case 29:
1265
+ return 86;
1266
+ case 30:
1267
+ return 87;
1268
+ case 31:
1269
+ return 97;
1270
+ case 32:
1271
+ this.begin("click");
1272
+ break;
1273
+ case 33:
1274
+ this.popState();
1275
+ break;
1276
+ case 34:
1277
+ return 88;
1278
+ case 35:
1279
+ return h.lex.firstGraph() && this.begin("dir"), 12;
1280
+ case 36:
1281
+ return h.lex.firstGraph() && this.begin("dir"), 12;
1282
+ case 37:
1283
+ return h.lex.firstGraph() && this.begin("dir"), 12;
1284
+ case 38:
1285
+ return h.lex.firstGraph() && this.begin("dir"), 12;
1286
+ case 39:
1287
+ return 27;
1288
+ case 40:
1289
+ return 32;
1290
+ case 41:
1291
+ return 98;
1292
+ case 42:
1293
+ return 98;
1294
+ case 43:
1295
+ return 98;
1296
+ case 44:
1297
+ return 98;
1298
+ case 45:
1299
+ return this.popState(), 13;
1300
+ case 46:
1301
+ return this.popState(), 14;
1302
+ case 47:
1303
+ return this.popState(), 14;
1304
+ case 48:
1305
+ return this.popState(), 14;
1306
+ case 49:
1307
+ return this.popState(), 14;
1308
+ case 50:
1309
+ return this.popState(), 14;
1310
+ case 51:
1311
+ return this.popState(), 14;
1312
+ case 52:
1313
+ return this.popState(), 14;
1314
+ case 53:
1315
+ return this.popState(), 14;
1316
+ case 54:
1317
+ return this.popState(), 14;
1318
+ case 55:
1319
+ return this.popState(), 14;
1320
+ case 56:
1321
+ return 121;
1322
+ case 57:
1323
+ return 122;
1324
+ case 58:
1325
+ return 123;
1326
+ case 59:
1327
+ return 124;
1328
+ case 60:
1329
+ return 125;
1330
+ case 61:
1331
+ return 78;
1332
+ case 62:
1333
+ return 105;
1334
+ case 63:
1335
+ return 111;
1336
+ case 64:
1337
+ return 46;
1338
+ case 65:
1339
+ return 60;
1340
+ case 66:
1341
+ return 44;
1342
+ case 67:
1343
+ return 8;
1344
+ case 68:
1345
+ return 106;
1346
+ case 69:
1347
+ return 115;
1348
+ case 70:
1349
+ return this.popState(), 77;
1350
+ case 71:
1351
+ return this.pushState("edgeText"), 75;
1352
+ case 72:
1353
+ return 119;
1354
+ case 73:
1355
+ return this.popState(), 77;
1356
+ case 74:
1357
+ return this.pushState("thickEdgeText"), 75;
1358
+ case 75:
1359
+ return 119;
1360
+ case 76:
1361
+ return this.popState(), 77;
1362
+ case 77:
1363
+ return this.pushState("dottedEdgeText"), 75;
1364
+ case 78:
1365
+ return 119;
1366
+ case 79:
1367
+ return 77;
1368
+ case 80:
1369
+ return this.popState(), 53;
1370
+ case 81:
1371
+ return "TEXT";
1372
+ case 82:
1373
+ return this.pushState("ellipseText"), 52;
1374
+ case 83:
1375
+ return this.popState(), 55;
1376
+ case 84:
1377
+ return this.pushState("text"), 54;
1378
+ case 85:
1379
+ return this.popState(), 57;
1380
+ case 86:
1381
+ return this.pushState("text"), 56;
1382
+ case 87:
1383
+ return 58;
1384
+ case 88:
1385
+ return this.pushState("text"), 67;
1386
+ case 89:
1387
+ return this.popState(), 64;
1388
+ case 90:
1389
+ return this.pushState("text"), 63;
1390
+ case 91:
1391
+ return this.popState(), 49;
1392
+ case 92:
1393
+ return this.pushState("text"), 48;
1394
+ case 93:
1395
+ return this.popState(), 69;
1396
+ case 94:
1397
+ return this.popState(), 71;
1398
+ case 95:
1399
+ return 117;
1400
+ case 96:
1401
+ return this.pushState("trapText"), 68;
1402
+ case 97:
1403
+ return this.pushState("trapText"), 70;
1404
+ case 98:
1405
+ return 118;
1406
+ case 99:
1407
+ return 67;
1408
+ case 100:
1409
+ return 90;
1410
+ case 101:
1411
+ return "SEP";
1412
+ case 102:
1413
+ return 89;
1414
+ case 103:
1415
+ return 115;
1416
+ case 104:
1417
+ return 111;
1418
+ case 105:
1419
+ return 44;
1420
+ case 106:
1421
+ return 109;
1422
+ case 107:
1423
+ return 114;
1424
+ case 108:
1425
+ return 116;
1426
+ case 109:
1427
+ return this.popState(), 62;
1428
+ case 110:
1429
+ return this.pushState("text"), 62;
1430
+ case 111:
1431
+ return this.popState(), 51;
1432
+ case 112:
1433
+ return this.pushState("text"), 50;
1434
+ case 113:
1435
+ return this.popState(), 31;
1436
+ case 114:
1437
+ return this.pushState("text"), 29;
1438
+ case 115:
1439
+ return this.popState(), 66;
1440
+ case 116:
1441
+ return this.pushState("text"), 65;
1442
+ case 117:
1443
+ return "TEXT";
1444
+ case 118:
1445
+ return "QUOTE";
1446
+ case 119:
1447
+ return 9;
1448
+ case 120:
1449
+ return 10;
1450
+ case 121:
1451
+ return 11;
1452
+ }
1453
+ }, "anonymous"),
1454
+ 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)/, /^(?:$)/],
1455
+ 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 } }
1456
+ };
1457
+ return f1;
1458
+ })();
1459
+ Q1.lexer = We;
1460
+ function Y1() {
1461
+ this.yy = {};
1462
+ }
1463
+ return b(Y1, "Parser"), Y1.prototype = Q1, Q1.Parser = Y1, new Y1();
1464
+ })();
1465
+ re.parser = re;
1466
+ var Me = re, Ue = Object.assign({}, Me);
1467
+ Ue.parse = (e) => {
1468
+ const i = e.replace(/}\s*\n/g, `}
1469
+ `);
1470
+ return Me.parse(i);
1471
+ };
1472
+ var Et = Ue, Ct = /* @__PURE__ */ b((e, i) => {
1473
+ const r = gt, a = r(e, "r"), o = r(e, "g"), d = r(e, "b");
1474
+ return pt(a, o, d, i);
1475
+ }, "fade"), Tt = /* @__PURE__ */ b((e) => `.label {
1476
+ font-family: ${e.fontFamily};
1477
+ color: ${e.nodeTextColor || e.textColor};
1478
+ }
1479
+ .cluster-label text {
1480
+ fill: ${e.titleColor};
1481
+ }
1482
+ .cluster-label span {
1483
+ color: ${e.titleColor};
1484
+ }
1485
+ .cluster-label span p {
1486
+ background-color: transparent;
1487
+ }
1488
+
1489
+ .label text,span {
1490
+ fill: ${e.nodeTextColor || e.textColor};
1491
+ color: ${e.nodeTextColor || e.textColor};
1492
+ }
1493
+
1494
+ .node rect,
1495
+ .node circle,
1496
+ .node ellipse,
1497
+ .node polygon,
1498
+ .node path {
1499
+ fill: ${e.mainBkg};
1500
+ stroke: ${e.nodeBorder};
1501
+ stroke-width: ${e.strokeWidth ?? 1}px;
1502
+ }
1503
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1504
+ text-anchor: middle;
1505
+ }
1506
+
1507
+ .node .katex path {
1508
+ fill: #000;
1509
+ stroke: #000;
1510
+ stroke-width: 1px;
1511
+ }
1512
+
1513
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1514
+ text-align: center;
1515
+ }
1516
+ .node.clickable {
1517
+ cursor: pointer;
1518
+ }
1519
+
1520
+
1521
+ .root .anchor path {
1522
+ fill: ${e.lineColor} !important;
1523
+ stroke-width: 0;
1524
+ stroke: ${e.lineColor};
1525
+ }
1526
+
1527
+ .arrowheadPath {
1528
+ fill: ${e.arrowheadColor};
1529
+ }
1530
+
1531
+ .edgePath .path {
1532
+ stroke: ${e.lineColor};
1533
+ stroke-width: ${e.strokeWidth ?? 2}px;
1534
+ }
1535
+
1536
+ .flowchart-link {
1537
+ stroke: ${e.lineColor};
1538
+ fill: none;
1539
+ }
1540
+
1541
+ .edgeLabel {
1542
+ background-color: ${e.edgeLabelBackground};
1543
+ p {
1544
+ background-color: ${e.edgeLabelBackground};
1545
+ }
1546
+ rect {
1547
+ opacity: 0.5;
1548
+ background-color: ${e.edgeLabelBackground};
1549
+ fill: ${e.edgeLabelBackground};
1550
+ }
1551
+ text-align: center;
1552
+ }
1553
+
1554
+ /* For html labels only */
1555
+ .labelBkg {
1556
+ background-color: ${Ct(e.edgeLabelBackground, 0.5)};
1557
+ // background-color:
1558
+ }
1559
+
1560
+ .cluster rect {
1561
+ fill: ${e.clusterBkg};
1562
+ stroke: ${e.clusterBorder};
1563
+ stroke-width: 1px;
1564
+ }
1565
+
1566
+ .cluster text {
1567
+ fill: ${e.titleColor};
1568
+ }
1569
+
1570
+ .cluster span {
1571
+ color: ${e.titleColor};
1572
+ }
1573
+ /* .cluster div {
1574
+ color: ${e.titleColor};
1575
+ } */
1576
+
1577
+ div.mermaidTooltip {
1578
+ position: absolute;
1579
+ text-align: center;
1580
+ max-width: 200px;
1581
+ padding: 2px;
1582
+ font-family: ${e.fontFamily};
1583
+ font-size: 12px;
1584
+ background: ${e.tertiaryColor};
1585
+ border: 1px solid ${e.border2};
1586
+ border-radius: 2px;
1587
+ pointer-events: none;
1588
+ z-index: 100;
1589
+ }
1590
+
1591
+ .flowchartTitleText {
1592
+ text-anchor: middle;
1593
+ font-size: 18px;
1594
+ fill: ${e.textColor};
1595
+ }
1596
+
1597
+ rect.text {
1598
+ fill: none;
1599
+ stroke-width: 0;
1600
+ }
1601
+
1602
+ .icon-shape, .image-shape {
1603
+ background-color: ${e.edgeLabelBackground};
1604
+ p {
1605
+ background-color: ${e.edgeLabelBackground};
1606
+ padding: 2px;
1607
+ }
1608
+ .label rect {
1609
+ opacity: 0.5;
1610
+ background-color: ${e.edgeLabelBackground};
1611
+ fill: ${e.edgeLabelBackground};
1612
+ }
1613
+ text-align: center;
1614
+ }
1615
+ ${He()}
1616
+ `, "getStyles"), St = Tt, ze = /* @__PURE__ */ b(({
1617
+ defaultLayout: e,
1618
+ styles: i = St
1619
+ } = {}) => ({
1620
+ parser: Et,
1621
+ get db() {
1622
+ return new At();
1623
+ },
1624
+ renderer: Dt,
1625
+ styles: i,
1626
+ init: /* @__PURE__ */ b((r) => {
1627
+ r.flowchart || (r.flowchart = {});
1628
+ const a = Ze().layout ?? e ?? r.layout;
1629
+ a && Oe({ layout: a }), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, Oe({ flowchart: { arrowMarkerAbsolute: r.arrowMarkerAbsolute } });
1630
+ }, "init")
1631
+ }), "createFlowDiagram"), yt = ze();
1632
+ const Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1633
+ __proto__: null,
1634
+ createFlowDiagram: ze,
1635
+ diagram: yt
1636
+ }, Symbol.toStringTag, { value: "Module" }));
1637
+ export {
1638
+ ze as c,
1639
+ Vt as f,
1640
+ St as s
1641
+ };