@copilotkitnext/react 0.0.22-alpha.7 → 0.0.22-alpha.8

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