@kong-ui-public/documentation 0.3.42 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
  2. package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
  3. package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
  4. package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
  5. package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
  6. package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
  7. package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
  8. package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
  9. package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
  10. package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
  11. package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
  12. package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
  13. package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
  14. package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
  15. package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
  16. package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
  17. package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
  18. package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
  19. package/dist/docker-B10O2enb-B10O2enb.js +7 -0
  20. package/dist/documentation.es.js +5 -3130
  21. package/dist/documentation.umd.js +10152 -50
  22. package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
  23. package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
  24. package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
  25. package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
  26. package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
  27. package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
  28. package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
  29. package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
  30. package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
  31. package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
  32. package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
  33. package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
  34. package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
  35. package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
  36. package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
  37. package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
  38. package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
  39. package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
  40. package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
  41. package/dist/index-B-5DuDrq.js +29996 -0
  42. package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
  43. package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
  44. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  45. package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
  46. package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
  47. package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
  48. package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
  49. package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
  50. package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
  51. package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
  52. package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
  53. package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
  54. package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
  55. package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
  56. package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
  57. package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
  58. package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
  59. package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
  60. package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
  61. package/dist/make-whncTQWE-whncTQWE.js +7 -0
  62. package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
  63. package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
  64. package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
  65. package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
  66. package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
  67. package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
  68. package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
  69. package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
  70. package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
  71. package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
  72. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  73. package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
  74. package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
  75. package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
  76. package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
  77. package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
  78. package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
  79. package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
  80. package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
  81. package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
  82. package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
  83. package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
  84. package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
  85. package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
  86. package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
  87. package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
  88. package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
  89. package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
  90. package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
  91. package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
  92. package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
  93. package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
  94. package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
  95. package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
  96. package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
  97. package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
  98. package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
  99. package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
  100. package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
  101. package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
  102. package/dist/style.css +1 -1
  103. package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
  104. package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
  105. package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
  106. package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
  107. package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
  108. package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
  109. package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
  110. package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
  111. package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
  112. package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
  113. package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
  114. package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
  115. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
  116. package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
  117. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
  118. package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
  119. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
  120. package/dist/types/composables/useI18n.d.ts +4 -0
  121. package/dist/types/composables/useI18n.d.ts.map +1 -1
  122. package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
  123. package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
  124. package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
  125. package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
  126. package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
  127. package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
  128. package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
  129. package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
  130. package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
  131. package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
  132. package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
  133. package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
  134. package/package.json +13 -13
  135. package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
  136. package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
  137. package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
  138. package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
  139. package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
  140. package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
  141. package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
  142. package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
  143. package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
  144. package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
  145. package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
  146. package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
  147. package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
  148. package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
  149. package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
  150. package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
  151. package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
  152. package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
  153. package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
  154. package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
  155. package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
@@ -0,0 +1,960 @@
1
+ import { c as F, g as zt, s as Ut, a as Ht, b as Mt, v as Xt, x as Jt, l as $, j as ct, z as Kt, b2 as Vt } from "./index-B-5DuDrq.js";
2
+ var gt = function() {
3
+ var t = function(T, i, r, o) {
4
+ for (r = r || {}, o = T.length; o--; r[T[o]] = i)
5
+ ;
6
+ return r;
7
+ }, s = [1, 2], n = [1, 3], l = [1, 4], p = [2, 4], d = [1, 9], y = [1, 11], b = [1, 15], u = [1, 16], _ = [1, 17], G = [1, 18], O = [1, 30], j = [1, 19], Y = [1, 20], z = [1, 21], U = [1, 22], H = [1, 23], M = [1, 25], X = [1, 26], J = [1, 27], K = [1, 28], V = [1, 29], W = [1, 32], q = [1, 33], Q = [1, 34], Z = [1, 35], R = [1, 31], c = [1, 4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], tt = [1, 4, 5, 13, 14, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], xt = [4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], lt = {
8
+ trace: function() {
9
+ },
10
+ yy: {},
11
+ symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, cssClassStatement: 11, idStatement: 12, DESCR: 13, "-->": 14, HIDE_EMPTY: 15, scale: 16, WIDTH: 17, COMPOSIT_STATE: 18, STRUCT_START: 19, STRUCT_STOP: 20, STATE_DESCR: 21, AS: 22, ID: 23, FORK: 24, JOIN: 25, CHOICE: 26, CONCURRENT: 27, note: 28, notePosition: 29, NOTE_TEXT: 30, direction: 31, acc_title: 32, acc_title_value: 33, acc_descr: 34, acc_descr_value: 35, acc_descr_multiline_value: 36, classDef: 37, CLASSDEF_ID: 38, CLASSDEF_STYLEOPTS: 39, DEFAULT: 40, class: 41, CLASSENTITY_IDS: 42, STYLECLASS: 43, direction_tb: 44, direction_bt: 45, direction_rl: 46, direction_lr: 47, eol: 48, ";": 49, EDGE_STATE: 50, STYLE_SEPARATOR: 51, left_of: 52, right_of: 53, $accept: 0, $end: 1 },
12
+ terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 13: "DESCR", 14: "-->", 15: "HIDE_EMPTY", 16: "scale", 17: "WIDTH", 18: "COMPOSIT_STATE", 19: "STRUCT_START", 20: "STRUCT_STOP", 21: "STATE_DESCR", 22: "AS", 23: "ID", 24: "FORK", 25: "JOIN", 26: "CHOICE", 27: "CONCURRENT", 28: "note", 30: "NOTE_TEXT", 32: "acc_title", 33: "acc_title_value", 34: "acc_descr", 35: "acc_descr_value", 36: "acc_descr_multiline_value", 37: "classDef", 38: "CLASSDEF_ID", 39: "CLASSDEF_STYLEOPTS", 40: "DEFAULT", 41: "class", 42: "CLASSENTITY_IDS", 43: "STYLECLASS", 44: "direction_tb", 45: "direction_bt", 46: "direction_rl", 47: "direction_lr", 49: ";", 50: "EDGE_STATE", 51: "STYLE_SEPARATOR", 52: "left_of", 53: "right_of" },
13
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [10, 3], [10, 3], [11, 3], [31, 1], [31, 1], [31, 1], [31, 1], [48, 1], [48, 1], [12, 1], [12, 1], [12, 3], [12, 3], [29, 1], [29, 1]],
14
+ performAction: function(T, i, r, o, h, e, m) {
15
+ var a = e.length - 1;
16
+ switch (h) {
17
+ case 3:
18
+ return o.setRootDoc(e[a]), e[a];
19
+ case 4:
20
+ this.$ = [];
21
+ break;
22
+ case 5:
23
+ e[a] != "nl" && (e[a - 1].push(e[a]), this.$ = e[a - 1]);
24
+ break;
25
+ case 6:
26
+ case 7:
27
+ this.$ = e[a];
28
+ break;
29
+ case 8:
30
+ this.$ = "nl";
31
+ break;
32
+ case 11:
33
+ this.$ = e[a];
34
+ break;
35
+ case 12:
36
+ const B = e[a - 1];
37
+ B.description = o.trimColon(e[a]), this.$ = B;
38
+ break;
39
+ case 13:
40
+ this.$ = { stmt: "relation", state1: e[a - 2], state2: e[a] };
41
+ break;
42
+ case 14:
43
+ const ut = o.trimColon(e[a]);
44
+ this.$ = { stmt: "relation", state1: e[a - 3], state2: e[a - 1], description: ut };
45
+ break;
46
+ case 18:
47
+ this.$ = { stmt: "state", id: e[a - 3], type: "default", description: "", doc: e[a - 1] };
48
+ break;
49
+ case 19:
50
+ var C = e[a], I = e[a - 2].trim();
51
+ if (e[a].match(":")) {
52
+ var et = e[a].split(":");
53
+ C = et[0], I = [I, et[1]];
54
+ }
55
+ this.$ = { stmt: "state", id: C, type: "default", description: I };
56
+ break;
57
+ case 20:
58
+ this.$ = { stmt: "state", id: e[a - 3], type: "default", description: e[a - 5], doc: e[a - 1] };
59
+ break;
60
+ case 21:
61
+ this.$ = { stmt: "state", id: e[a], type: "fork" };
62
+ break;
63
+ case 22:
64
+ this.$ = { stmt: "state", id: e[a], type: "join" };
65
+ break;
66
+ case 23:
67
+ this.$ = { stmt: "state", id: e[a], type: "choice" };
68
+ break;
69
+ case 24:
70
+ this.$ = { stmt: "state", id: o.getDividerId(), type: "divider" };
71
+ break;
72
+ case 25:
73
+ this.$ = { stmt: "state", id: e[a - 1].trim(), note: { position: e[a - 2].trim(), text: e[a].trim() } };
74
+ break;
75
+ case 28:
76
+ this.$ = e[a].trim(), o.setAccTitle(this.$);
77
+ break;
78
+ case 29:
79
+ case 30:
80
+ this.$ = e[a].trim(), o.setAccDescription(this.$);
81
+ break;
82
+ case 31:
83
+ case 32:
84
+ this.$ = { stmt: "classDef", id: e[a - 1].trim(), classes: e[a].trim() };
85
+ break;
86
+ case 33:
87
+ this.$ = { stmt: "applyClass", id: e[a - 1].trim(), styleClass: e[a].trim() };
88
+ break;
89
+ case 34:
90
+ o.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
91
+ break;
92
+ case 35:
93
+ o.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
94
+ break;
95
+ case 36:
96
+ o.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
97
+ break;
98
+ case 37:
99
+ o.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
100
+ break;
101
+ case 40:
102
+ case 41:
103
+ this.$ = { stmt: "state", id: e[a].trim(), type: "default", description: "" };
104
+ break;
105
+ case 42:
106
+ this.$ = { stmt: "state", id: e[a - 2].trim(), classes: [e[a].trim()], type: "default", description: "" };
107
+ break;
108
+ case 43:
109
+ this.$ = { stmt: "state", id: e[a - 2].trim(), classes: [e[a].trim()], type: "default", description: "" };
110
+ break;
111
+ }
112
+ },
113
+ table: [{ 3: 1, 4: s, 5: n, 6: l }, { 1: [3] }, { 3: 5, 4: s, 5: n, 6: l }, { 3: 6, 4: s, 5: n, 6: l }, t([1, 4, 5, 15, 16, 18, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], p, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 5]), { 9: 36, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 7]), t(c, [2, 8]), t(c, [2, 9]), t(c, [2, 10]), t(c, [2, 11], { 13: [1, 37], 14: [1, 38] }), t(c, [2, 15]), { 17: [1, 39] }, t(c, [2, 17], { 19: [1, 40] }), { 22: [1, 41] }, t(c, [2, 21]), t(c, [2, 22]), t(c, [2, 23]), t(c, [2, 24]), { 29: 42, 30: [1, 43], 52: [1, 44], 53: [1, 45] }, t(c, [2, 27]), { 33: [1, 46] }, { 35: [1, 47] }, t(c, [2, 30]), { 38: [1, 48], 40: [1, 49] }, { 42: [1, 50] }, t(tt, [2, 40], { 51: [1, 51] }), t(tt, [2, 41], { 51: [1, 52] }), t(c, [2, 34]), t(c, [2, 35]), t(c, [2, 36]), t(c, [2, 37]), t(c, [2, 6]), t(c, [2, 12]), { 12: 53, 23: O, 50: R }, t(c, [2, 16]), t(xt, p, { 7: 54 }), { 23: [1, 55] }, { 23: [1, 56] }, { 22: [1, 57] }, { 23: [2, 44] }, { 23: [2, 45] }, t(c, [2, 28]), t(c, [2, 29]), { 39: [1, 58] }, { 39: [1, 59] }, { 43: [1, 60] }, { 23: [1, 61] }, { 23: [1, 62] }, t(c, [2, 13], { 13: [1, 63] }), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 20: [1, 64], 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 19], { 19: [1, 65] }), { 30: [1, 66] }, { 23: [1, 67] }, t(c, [2, 31]), t(c, [2, 32]), t(c, [2, 33]), t(tt, [2, 42]), t(tt, [2, 43]), t(c, [2, 14]), t(c, [2, 18]), t(xt, p, { 7: 68 }), t(c, [2, 25]), t(c, [2, 26]), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 20: [1, 69], 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 20])],
114
+ defaultActions: { 5: [2, 1], 6: [2, 2], 44: [2, 44], 45: [2, 45] },
115
+ parseError: function(T, i) {
116
+ if (i.recoverable)
117
+ this.trace(T);
118
+ else {
119
+ var r = new Error(T);
120
+ throw r.hash = i, r;
121
+ }
122
+ },
123
+ parse: function(T) {
124
+ var i = this, r = [0], o = [], h = [null], e = [], m = this.table, a = "", C = 0, I = 0, et = 2, B = 1, ut = e.slice.call(arguments, 1), f = Object.create(this.lexer), A = { yy: {} };
125
+ for (var dt in this.yy)
126
+ Object.prototype.hasOwnProperty.call(this.yy, dt) && (A.yy[dt] = this.yy[dt]);
127
+ f.setInput(T, A.yy), A.yy.lexer = f, A.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
128
+ var pt = f.yylloc;
129
+ e.push(pt);
130
+ var jt = f.options && f.options.ranges;
131
+ typeof A.yy.parseError == "function" ? this.parseError = A.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
132
+ function Yt() {
133
+ var x;
134
+ return x = o.pop() || f.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = i.symbols_[x] || x), x;
135
+ }
136
+ for (var S, D, k, yt, L = {}, st, E, $t, it; ; ) {
137
+ if (D = r[r.length - 1], this.defaultActions[D] ? k = this.defaultActions[D] : ((S === null || typeof S > "u") && (S = Yt()), k = m[D] && m[D][S]), typeof k > "u" || !k.length || !k[0]) {
138
+ var ft = "";
139
+ it = [];
140
+ for (st in m[D])
141
+ this.terminals_[st] && st > et && it.push("'" + this.terminals_[st] + "'");
142
+ f.showPosition ? ft = "Parse error on line " + (C + 1) + `:
143
+ ` + f.showPosition() + `
144
+ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : ft = "Parse error on line " + (C + 1) + ": Unexpected " + (S == B ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(ft, {
145
+ text: f.match,
146
+ token: this.terminals_[S] || S,
147
+ line: f.yylineno,
148
+ loc: pt,
149
+ expected: it
150
+ });
151
+ }
152
+ if (k[0] instanceof Array && k.length > 1)
153
+ throw new Error("Parse Error: multiple actions possible at state: " + D + ", token: " + S);
154
+ switch (k[0]) {
155
+ case 1:
156
+ r.push(S), h.push(f.yytext), e.push(f.yylloc), r.push(k[1]), S = null, I = f.yyleng, a = f.yytext, C = f.yylineno, pt = f.yylloc;
157
+ break;
158
+ case 2:
159
+ if (E = this.productions_[k[1]][1], L.$ = h[h.length - E], L._$ = {
160
+ first_line: e[e.length - (E || 1)].first_line,
161
+ last_line: e[e.length - 1].last_line,
162
+ first_column: e[e.length - (E || 1)].first_column,
163
+ last_column: e[e.length - 1].last_column
164
+ }, jt && (L._$.range = [
165
+ e[e.length - (E || 1)].range[0],
166
+ e[e.length - 1].range[1]
167
+ ]), yt = this.performAction.apply(L, [
168
+ a,
169
+ I,
170
+ C,
171
+ A.yy,
172
+ k[1],
173
+ h,
174
+ e
175
+ ].concat(ut)), typeof yt < "u")
176
+ return yt;
177
+ E && (r = r.slice(0, -1 * E * 2), h = h.slice(0, -1 * E), e = e.slice(0, -1 * E)), r.push(this.productions_[k[1]][0]), h.push(L.$), e.push(L._$), $t = m[r[r.length - 2]][r[r.length - 1]], r.push($t);
178
+ break;
179
+ case 3:
180
+ return !0;
181
+ }
182
+ }
183
+ return !0;
184
+ }
185
+ }, Gt = /* @__PURE__ */ function() {
186
+ var T = {
187
+ EOF: 1,
188
+ parseError: function(i, r) {
189
+ if (this.yy.parser)
190
+ this.yy.parser.parseError(i, r);
191
+ else
192
+ throw new Error(i);
193
+ },
194
+ // resets the lexer, sets new input
195
+ setInput: function(i, r) {
196
+ return this.yy = r || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
197
+ first_line: 1,
198
+ first_column: 0,
199
+ last_line: 1,
200
+ last_column: 0
201
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
202
+ },
203
+ // consumes and returns one char from the input
204
+ input: function() {
205
+ var i = this._input[0];
206
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
207
+ var r = i.match(/(?:\r\n?|\n).*/g);
208
+ return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
209
+ },
210
+ // unshifts one char (or a string) into the input
211
+ unput: function(i) {
212
+ var r = i.length, o = i.split(/(?:\r\n?|\n)/g);
213
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
214
+ var h = this.match.split(/(?:\r\n?|\n)/g);
215
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
216
+ var e = this.yylloc.range;
217
+ return this.yylloc = {
218
+ first_line: this.yylloc.first_line,
219
+ last_line: this.yylineno + 1,
220
+ first_column: this.yylloc.first_column,
221
+ last_column: o ? (o.length === h.length ? this.yylloc.first_column : 0) + h[h.length - o.length].length - o[0].length : this.yylloc.first_column - r
222
+ }, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
223
+ },
224
+ // When called from action, caches matched text and appends it on next action
225
+ more: function() {
226
+ return this._more = !0, this;
227
+ },
228
+ // 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.
229
+ reject: function() {
230
+ if (this.options.backtrack_lexer)
231
+ this._backtrack = !0;
232
+ else
233
+ 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).
234
+ ` + this.showPosition(), {
235
+ text: "",
236
+ token: null,
237
+ line: this.yylineno
238
+ });
239
+ return this;
240
+ },
241
+ // retain first n characters of the match
242
+ less: function(i) {
243
+ this.unput(this.match.slice(i));
244
+ },
245
+ // displays already matched input, i.e. for error messages
246
+ pastInput: function() {
247
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
248
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
249
+ },
250
+ // displays upcoming input, i.e. for error messages
251
+ upcomingInput: function() {
252
+ var i = this.match;
253
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
254
+ },
255
+ // displays the character position where the lexing error occurred, i.e. for error messages
256
+ showPosition: function() {
257
+ var i = this.pastInput(), r = new Array(i.length + 1).join("-");
258
+ return i + this.upcomingInput() + `
259
+ ` + r + "^";
260
+ },
261
+ // test the lexed token: return FALSE when not a match, otherwise return token
262
+ test_match: function(i, r) {
263
+ var o, h, e;
264
+ if (this.options.backtrack_lexer && (e = {
265
+ yylineno: this.yylineno,
266
+ yylloc: {
267
+ first_line: this.yylloc.first_line,
268
+ last_line: this.last_line,
269
+ first_column: this.yylloc.first_column,
270
+ last_column: this.yylloc.last_column
271
+ },
272
+ yytext: this.yytext,
273
+ match: this.match,
274
+ matches: this.matches,
275
+ matched: this.matched,
276
+ yyleng: this.yyleng,
277
+ offset: this.offset,
278
+ _more: this._more,
279
+ _input: this._input,
280
+ yy: this.yy,
281
+ conditionStack: this.conditionStack.slice(0),
282
+ done: this.done
283
+ }, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), h = i[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
284
+ first_line: this.yylloc.last_line,
285
+ last_line: this.yylineno + 1,
286
+ first_column: this.yylloc.last_column,
287
+ last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
288
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], o = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
289
+ return o;
290
+ if (this._backtrack) {
291
+ for (var m in e)
292
+ this[m] = e[m];
293
+ return !1;
294
+ }
295
+ return !1;
296
+ },
297
+ // return next match in input
298
+ next: function() {
299
+ if (this.done)
300
+ return this.EOF;
301
+ this._input || (this.done = !0);
302
+ var i, r, o, h;
303
+ this._more || (this.yytext = "", this.match = "");
304
+ for (var e = this._currentRules(), m = 0; m < e.length; m++)
305
+ if (o = this._input.match(this.rules[e[m]]), o && (!r || o[0].length > r[0].length)) {
306
+ if (r = o, h = m, this.options.backtrack_lexer) {
307
+ if (i = this.test_match(o, e[m]), i !== !1)
308
+ return i;
309
+ if (this._backtrack) {
310
+ r = !1;
311
+ continue;
312
+ } else
313
+ return !1;
314
+ } else if (!this.options.flex)
315
+ break;
316
+ }
317
+ return r ? (i = this.test_match(r, e[h]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
318
+ ` + this.showPosition(), {
319
+ text: "",
320
+ token: null,
321
+ line: this.yylineno
322
+ });
323
+ },
324
+ // return next match that has a token
325
+ lex: function() {
326
+ var i = this.next();
327
+ return i || this.lex();
328
+ },
329
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
330
+ begin: function(i) {
331
+ this.conditionStack.push(i);
332
+ },
333
+ // pop the previously active lexer condition state off the condition stack
334
+ popState: function() {
335
+ var i = this.conditionStack.length - 1;
336
+ return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
337
+ },
338
+ // produce the lexer rule set which is active for the currently active lexer condition state
339
+ _currentRules: function() {
340
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
341
+ },
342
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
343
+ topState: function(i) {
344
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
345
+ },
346
+ // alias for begin(condition)
347
+ pushState: function(i) {
348
+ this.begin(i);
349
+ },
350
+ // return the number of states currently on the stack
351
+ stateStackSize: function() {
352
+ return this.conditionStack.length;
353
+ },
354
+ options: { "case-insensitive": !0 },
355
+ performAction: function(i, r, o, h) {
356
+ switch (o) {
357
+ case 0:
358
+ return 40;
359
+ case 1:
360
+ return 44;
361
+ case 2:
362
+ return 45;
363
+ case 3:
364
+ return 46;
365
+ case 4:
366
+ return 47;
367
+ case 5:
368
+ break;
369
+ case 6:
370
+ break;
371
+ case 7:
372
+ return 5;
373
+ case 8:
374
+ break;
375
+ case 9:
376
+ break;
377
+ case 10:
378
+ break;
379
+ case 11:
380
+ break;
381
+ case 12:
382
+ return this.pushState("SCALE"), 16;
383
+ case 13:
384
+ return 17;
385
+ case 14:
386
+ this.popState();
387
+ break;
388
+ case 15:
389
+ return this.begin("acc_title"), 32;
390
+ case 16:
391
+ return this.popState(), "acc_title_value";
392
+ case 17:
393
+ return this.begin("acc_descr"), 34;
394
+ case 18:
395
+ return this.popState(), "acc_descr_value";
396
+ case 19:
397
+ this.begin("acc_descr_multiline");
398
+ break;
399
+ case 20:
400
+ this.popState();
401
+ break;
402
+ case 21:
403
+ return "acc_descr_multiline_value";
404
+ case 22:
405
+ return this.pushState("CLASSDEF"), 37;
406
+ case 23:
407
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
408
+ case 24:
409
+ return this.popState(), this.pushState("CLASSDEFID"), 38;
410
+ case 25:
411
+ return this.popState(), 39;
412
+ case 26:
413
+ return this.pushState("CLASS"), 41;
414
+ case 27:
415
+ return this.popState(), this.pushState("CLASS_STYLE"), 42;
416
+ case 28:
417
+ return this.popState(), 43;
418
+ case 29:
419
+ return this.pushState("SCALE"), 16;
420
+ case 30:
421
+ return 17;
422
+ case 31:
423
+ this.popState();
424
+ break;
425
+ case 32:
426
+ this.pushState("STATE");
427
+ break;
428
+ case 33:
429
+ return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 24;
430
+ case 34:
431
+ return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 25;
432
+ case 35:
433
+ return this.popState(), r.yytext = r.yytext.slice(0, -10).trim(), 26;
434
+ case 36:
435
+ return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 24;
436
+ case 37:
437
+ return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 25;
438
+ case 38:
439
+ return this.popState(), r.yytext = r.yytext.slice(0, -10).trim(), 26;
440
+ case 39:
441
+ return 44;
442
+ case 40:
443
+ return 45;
444
+ case 41:
445
+ return 46;
446
+ case 42:
447
+ return 47;
448
+ case 43:
449
+ this.pushState("STATE_STRING");
450
+ break;
451
+ case 44:
452
+ return this.pushState("STATE_ID"), "AS";
453
+ case 45:
454
+ return this.popState(), "ID";
455
+ case 46:
456
+ this.popState();
457
+ break;
458
+ case 47:
459
+ return "STATE_DESCR";
460
+ case 48:
461
+ return 18;
462
+ case 49:
463
+ this.popState();
464
+ break;
465
+ case 50:
466
+ return this.popState(), this.pushState("struct"), 19;
467
+ case 51:
468
+ break;
469
+ case 52:
470
+ return this.popState(), 20;
471
+ case 53:
472
+ break;
473
+ case 54:
474
+ return this.begin("NOTE"), 28;
475
+ case 55:
476
+ return this.popState(), this.pushState("NOTE_ID"), 52;
477
+ case 56:
478
+ return this.popState(), this.pushState("NOTE_ID"), 53;
479
+ case 57:
480
+ this.popState(), this.pushState("FLOATING_NOTE");
481
+ break;
482
+ case 58:
483
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
484
+ case 59:
485
+ break;
486
+ case 60:
487
+ return "NOTE_TEXT";
488
+ case 61:
489
+ return this.popState(), "ID";
490
+ case 62:
491
+ return this.popState(), this.pushState("NOTE_TEXT"), 23;
492
+ case 63:
493
+ return this.popState(), r.yytext = r.yytext.substr(2).trim(), 30;
494
+ case 64:
495
+ return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 30;
496
+ case 65:
497
+ return 6;
498
+ case 66:
499
+ return 6;
500
+ case 67:
501
+ return 15;
502
+ case 68:
503
+ return 50;
504
+ case 69:
505
+ return 23;
506
+ case 70:
507
+ return r.yytext = r.yytext.trim(), 13;
508
+ case 71:
509
+ return 14;
510
+ case 72:
511
+ return 27;
512
+ case 73:
513
+ return 51;
514
+ case 74:
515
+ return 5;
516
+ case 75:
517
+ return "INVALID";
518
+ }
519
+ },
520
+ rules: [/^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
521
+ conditions: { LINE: { rules: [9, 10], inclusive: !1 }, struct: { rules: [9, 10, 22, 26, 32, 39, 40, 41, 42, 51, 52, 53, 54, 68, 69, 70, 71, 72], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [61], inclusive: !1 }, FLOATING_NOTE: { rules: [58, 59, 60], inclusive: !1 }, NOTE_TEXT: { rules: [63, 64], inclusive: !1 }, NOTE_ID: { rules: [62], inclusive: !1 }, NOTE: { rules: [55, 56, 57], inclusive: !1 }, CLASS_STYLE: { rules: [28], inclusive: !1 }, CLASS: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [25], inclusive: !1 }, CLASSDEF: { rules: [23, 24], inclusive: !1 }, acc_descr_multiline: { rules: [20, 21], inclusive: !1 }, acc_descr: { rules: [18], inclusive: !1 }, acc_title: { rules: [16], inclusive: !1 }, SCALE: { rules: [13, 14, 30, 31], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [45], inclusive: !1 }, STATE_STRING: { rules: [46, 47], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [9, 10, 33, 34, 35, 36, 37, 38, 43, 44, 48, 49, 50], inclusive: !1 }, ID: { rules: [9, 10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 15, 17, 19, 22, 26, 29, 32, 50, 54, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75], inclusive: !0 } }
522
+ };
523
+ return T;
524
+ }();
525
+ lt.lexer = Gt;
526
+ function ht() {
527
+ this.yy = {};
528
+ }
529
+ return ht.prototype = lt, lt.Parser = ht, new ht();
530
+ }();
531
+ gt.parser = gt;
532
+ const xe = gt, Wt = "LR", $e = "TB", mt = "state", vt = "relation", qt = "classDef", Qt = "applyClass", Tt = "default", Zt = "divider", bt = "[*]", It = "start", Lt = bt, Ot = "end", Ct = "color", At = "fill", te = "bgFill", ee = ",";
533
+ function Rt() {
534
+ return {};
535
+ }
536
+ let Bt = Wt, at = [], N = Rt();
537
+ const Nt = () => ({
538
+ relations: [],
539
+ states: {},
540
+ documents: {}
541
+ });
542
+ let ot = {
543
+ root: Nt()
544
+ }, g = ot.root, w = 0, Dt = 0;
545
+ const se = {
546
+ LINE: 0,
547
+ DOTTED_LINE: 1
548
+ }, ie = {
549
+ AGGREGATION: 0,
550
+ EXTENSION: 1,
551
+ COMPOSITION: 2,
552
+ DEPENDENCY: 3
553
+ }, rt = (t) => JSON.parse(JSON.stringify(t)), re = (t) => {
554
+ $.info("Setting root doc", t), at = t;
555
+ }, ne = () => at, nt = (t, s, n) => {
556
+ if (s.stmt === vt)
557
+ nt(t, s.state1, !0), nt(t, s.state2, !1);
558
+ else if (s.stmt === mt && (s.id === "[*]" ? (s.id = n ? t.id + "_start" : t.id + "_end", s.start = n) : s.id = s.id.trim()), s.doc) {
559
+ const l = [];
560
+ let p = [], d;
561
+ for (d = 0; d < s.doc.length; d++)
562
+ if (s.doc[d].type === Zt) {
563
+ const y = rt(s.doc[d]);
564
+ y.doc = rt(p), l.push(y), p = [];
565
+ } else
566
+ p.push(s.doc[d]);
567
+ if (l.length > 0 && p.length > 0) {
568
+ const y = {
569
+ stmt: mt,
570
+ id: Vt(),
571
+ type: "divider",
572
+ doc: rt(p)
573
+ };
574
+ l.push(rt(y)), s.doc = l;
575
+ }
576
+ s.doc.forEach((y) => nt(s, y, !0));
577
+ }
578
+ }, ae = () => (nt({ id: "root" }, { id: "root", doc: at }, !0), { id: "root", doc: at }), oe = (t) => {
579
+ let s;
580
+ t.doc ? s = t.doc : s = t, $.info(s), wt(!0), $.info("Extract", s), s.forEach((n) => {
581
+ switch (n.stmt) {
582
+ case mt:
583
+ v(
584
+ n.id.trim(),
585
+ n.type,
586
+ n.doc,
587
+ n.description,
588
+ n.note,
589
+ n.classes,
590
+ n.styles,
591
+ n.textStyles
592
+ );
593
+ break;
594
+ case vt:
595
+ Pt(n.state1, n.state2, n.description);
596
+ break;
597
+ case qt:
598
+ Ft(n.id.trim(), n.classes);
599
+ break;
600
+ case Qt:
601
+ Et(n.id.trim(), n.styleClass);
602
+ break;
603
+ }
604
+ });
605
+ }, v = function(t, s = Tt, n = null, l = null, p = null, d = null, y = null, b = null) {
606
+ const u = t == null ? void 0 : t.trim();
607
+ g.states[u] === void 0 ? ($.info("Adding state ", u, l), g.states[u] = {
608
+ id: u,
609
+ descriptions: [],
610
+ type: s,
611
+ doc: n,
612
+ note: p,
613
+ classes: [],
614
+ styles: [],
615
+ textStyles: []
616
+ }) : (g.states[u].doc || (g.states[u].doc = n), g.states[u].type || (g.states[u].type = s)), l && ($.info("Setting state description", u, l), typeof l == "string" && kt(u, l.trim()), typeof l == "object" && l.forEach((_) => kt(u, _.trim()))), p && (g.states[u].note = p, g.states[u].note.text = ct.sanitizeText(
617
+ g.states[u].note.text,
618
+ F()
619
+ )), d && ($.info("Setting state classes", u, d), (typeof d == "string" ? [d] : d).forEach((_) => Et(u, _.trim()))), y && ($.info("Setting state styles", u, y), (typeof y == "string" ? [y] : y).forEach((_) => me(u, _.trim()))), b && ($.info("Setting state styles", u, y), (typeof b == "string" ? [b] : b).forEach((_) => Se(u, _.trim())));
620
+ }, wt = function(t) {
621
+ ot = {
622
+ root: Nt()
623
+ }, g = ot.root, w = 0, N = Rt(), t || Kt();
624
+ }, P = function(t) {
625
+ return g.states[t];
626
+ }, ce = function() {
627
+ return g.states;
628
+ }, le = function() {
629
+ $.info("Documents = ", ot);
630
+ }, he = function() {
631
+ return g.relations;
632
+ };
633
+ function St(t = "") {
634
+ let s = t;
635
+ return t === bt && (w++, s = `${It}${w}`), s;
636
+ }
637
+ function _t(t = "", s = Tt) {
638
+ return t === bt ? It : s;
639
+ }
640
+ function ue(t = "") {
641
+ let s = t;
642
+ return t === Lt && (w++, s = `${Ot}${w}`), s;
643
+ }
644
+ function de(t = "", s = Tt) {
645
+ return t === Lt ? Ot : s;
646
+ }
647
+ function pe(t, s, n) {
648
+ let l = St(t.id.trim()), p = _t(t.id.trim(), t.type), d = St(s.id.trim()), y = _t(s.id.trim(), s.type);
649
+ v(
650
+ l,
651
+ p,
652
+ t.doc,
653
+ t.description,
654
+ t.note,
655
+ t.classes,
656
+ t.styles,
657
+ t.textStyles
658
+ ), v(
659
+ d,
660
+ y,
661
+ s.doc,
662
+ s.description,
663
+ s.note,
664
+ s.classes,
665
+ s.styles,
666
+ s.textStyles
667
+ ), g.relations.push({
668
+ id1: l,
669
+ id2: d,
670
+ relationTitle: ct.sanitizeText(n, F())
671
+ });
672
+ }
673
+ const Pt = function(t, s, n) {
674
+ if (typeof t == "object")
675
+ pe(t, s, n);
676
+ else {
677
+ const l = St(t.trim()), p = _t(t), d = ue(s.trim()), y = de(s);
678
+ v(l, p), v(d, y), g.relations.push({
679
+ id1: l,
680
+ id2: d,
681
+ title: ct.sanitizeText(n, F())
682
+ });
683
+ }
684
+ }, kt = function(t, s) {
685
+ const n = g.states[t], l = s.startsWith(":") ? s.replace(":", "").trim() : s;
686
+ n.descriptions.push(ct.sanitizeText(l, F()));
687
+ }, ye = function(t) {
688
+ return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
689
+ }, fe = () => (Dt++, "divider-id-" + Dt), Ft = function(t, s = "") {
690
+ N[t] === void 0 && (N[t] = { id: t, styles: [], textStyles: [] });
691
+ const n = N[t];
692
+ s != null && s.split(ee).forEach((l) => {
693
+ const p = l.replace(/([^;]*);/, "$1").trim();
694
+ if (l.match(Ct)) {
695
+ const d = p.replace(At, te).replace(Ct, At);
696
+ n.textStyles.push(d);
697
+ }
698
+ n.styles.push(p);
699
+ });
700
+ }, ge = function() {
701
+ return N;
702
+ }, Et = function(t, s) {
703
+ t.split(",").forEach(function(n) {
704
+ let l = P(n);
705
+ if (l === void 0) {
706
+ const p = n.trim();
707
+ v(p), l = P(p);
708
+ }
709
+ l.classes.push(s);
710
+ });
711
+ }, me = function(t, s) {
712
+ const n = P(t);
713
+ n !== void 0 && n.textStyles.push(s);
714
+ }, Se = function(t, s) {
715
+ const n = P(t);
716
+ n !== void 0 && n.textStyles.push(s);
717
+ }, _e = () => Bt, ke = (t) => {
718
+ Bt = t;
719
+ }, Te = (t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), Ce = {
720
+ getConfig: () => F().state,
721
+ addState: v,
722
+ clear: wt,
723
+ getState: P,
724
+ getStates: ce,
725
+ getRelations: he,
726
+ getClasses: ge,
727
+ getDirection: _e,
728
+ addRelation: Pt,
729
+ getDividerId: fe,
730
+ setDirection: ke,
731
+ cleanupLabel: ye,
732
+ lineType: se,
733
+ relationType: ie,
734
+ logDocuments: le,
735
+ getRootDoc: ne,
736
+ setRootDoc: re,
737
+ getRootDocV2: ae,
738
+ extract: oe,
739
+ trimColon: Te,
740
+ getAccTitle: zt,
741
+ setAccTitle: Ut,
742
+ getAccDescription: Ht,
743
+ setAccDescription: Mt,
744
+ addStyleClass: Ft,
745
+ setCssClass: Et,
746
+ addDescription: kt,
747
+ setDiagramTitle: Xt,
748
+ getDiagramTitle: Jt
749
+ }, be = (t) => `
750
+ defs #statediagram-barbEnd {
751
+ fill: ${t.transitionColor};
752
+ stroke: ${t.transitionColor};
753
+ }
754
+ g.stateGroup text {
755
+ fill: ${t.nodeBorder};
756
+ stroke: none;
757
+ font-size: 10px;
758
+ }
759
+ g.stateGroup text {
760
+ fill: ${t.textColor};
761
+ stroke: none;
762
+ font-size: 10px;
763
+
764
+ }
765
+ g.stateGroup .state-title {
766
+ font-weight: bolder;
767
+ fill: ${t.stateLabelColor};
768
+ }
769
+
770
+ g.stateGroup rect {
771
+ fill: ${t.mainBkg};
772
+ stroke: ${t.nodeBorder};
773
+ }
774
+
775
+ g.stateGroup line {
776
+ stroke: ${t.lineColor};
777
+ stroke-width: 1;
778
+ }
779
+
780
+ .transition {
781
+ stroke: ${t.transitionColor};
782
+ stroke-width: 1;
783
+ fill: none;
784
+ }
785
+
786
+ .stateGroup .composit {
787
+ fill: ${t.background};
788
+ border-bottom: 1px
789
+ }
790
+
791
+ .stateGroup .alt-composit {
792
+ fill: #e0e0e0;
793
+ border-bottom: 1px
794
+ }
795
+
796
+ .state-note {
797
+ stroke: ${t.noteBorderColor};
798
+ fill: ${t.noteBkgColor};
799
+
800
+ text {
801
+ fill: ${t.noteTextColor};
802
+ stroke: none;
803
+ font-size: 10px;
804
+ }
805
+ }
806
+
807
+ .stateLabel .box {
808
+ stroke: none;
809
+ stroke-width: 0;
810
+ fill: ${t.mainBkg};
811
+ opacity: 0.5;
812
+ }
813
+
814
+ .edgeLabel .label rect {
815
+ fill: ${t.labelBackgroundColor};
816
+ opacity: 0.5;
817
+ }
818
+ .edgeLabel .label text {
819
+ fill: ${t.transitionLabelColor || t.tertiaryTextColor};
820
+ }
821
+ .label div .edgeLabel {
822
+ color: ${t.transitionLabelColor || t.tertiaryTextColor};
823
+ }
824
+
825
+ .stateLabel text {
826
+ fill: ${t.stateLabelColor};
827
+ font-size: 10px;
828
+ font-weight: bold;
829
+ }
830
+
831
+ .node circle.state-start {
832
+ fill: ${t.specialStateColor};
833
+ stroke: ${t.specialStateColor};
834
+ }
835
+
836
+ .node .fork-join {
837
+ fill: ${t.specialStateColor};
838
+ stroke: ${t.specialStateColor};
839
+ }
840
+
841
+ .node circle.state-end {
842
+ fill: ${t.innerEndBackground};
843
+ stroke: ${t.background};
844
+ stroke-width: 1.5
845
+ }
846
+ .end-state-inner {
847
+ fill: ${t.compositeBackground || t.background};
848
+ // stroke: ${t.background};
849
+ stroke-width: 1.5
850
+ }
851
+
852
+ .node rect {
853
+ fill: ${t.stateBkg || t.mainBkg};
854
+ stroke: ${t.stateBorder || t.nodeBorder};
855
+ stroke-width: 1px;
856
+ }
857
+ .node polygon {
858
+ fill: ${t.mainBkg};
859
+ stroke: ${t.stateBorder || t.nodeBorder};;
860
+ stroke-width: 1px;
861
+ }
862
+ #statediagram-barbEnd {
863
+ fill: ${t.lineColor};
864
+ }
865
+
866
+ .statediagram-cluster rect {
867
+ fill: ${t.compositeTitleBackground};
868
+ stroke: ${t.stateBorder || t.nodeBorder};
869
+ stroke-width: 1px;
870
+ }
871
+
872
+ .cluster-label, .nodeLabel {
873
+ color: ${t.stateLabelColor};
874
+ }
875
+
876
+ .statediagram-cluster rect.outer {
877
+ rx: 5px;
878
+ ry: 5px;
879
+ }
880
+ .statediagram-state .divider {
881
+ stroke: ${t.stateBorder || t.nodeBorder};
882
+ }
883
+
884
+ .statediagram-state .title-state {
885
+ rx: 5px;
886
+ ry: 5px;
887
+ }
888
+ .statediagram-cluster.statediagram-cluster .inner {
889
+ fill: ${t.compositeBackground || t.background};
890
+ }
891
+ .statediagram-cluster.statediagram-cluster-alt .inner {
892
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
893
+ }
894
+
895
+ .statediagram-cluster .inner {
896
+ rx:0;
897
+ ry:0;
898
+ }
899
+
900
+ .statediagram-state rect.basic {
901
+ rx: 5px;
902
+ ry: 5px;
903
+ }
904
+ .statediagram-state rect.divider {
905
+ stroke-dasharray: 10,10;
906
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
907
+ }
908
+
909
+ .note-edge {
910
+ stroke-dasharray: 5;
911
+ }
912
+
913
+ .statediagram-note rect {
914
+ fill: ${t.noteBkgColor};
915
+ stroke: ${t.noteBorderColor};
916
+ stroke-width: 1px;
917
+ rx: 0;
918
+ ry: 0;
919
+ }
920
+ .statediagram-note rect {
921
+ fill: ${t.noteBkgColor};
922
+ stroke: ${t.noteBorderColor};
923
+ stroke-width: 1px;
924
+ rx: 0;
925
+ ry: 0;
926
+ }
927
+
928
+ .statediagram-note text {
929
+ fill: ${t.noteTextColor};
930
+ }
931
+
932
+ .statediagram-note .nodeLabel {
933
+ color: ${t.noteTextColor};
934
+ }
935
+ .statediagram .edgeLabel {
936
+ color: red; // ${t.noteTextColor};
937
+ }
938
+
939
+ #dependencyStart, #dependencyEnd {
940
+ fill: ${t.lineColor};
941
+ stroke: ${t.lineColor};
942
+ stroke-width: 1;
943
+ }
944
+
945
+ .statediagramTitleText {
946
+ text-anchor: middle;
947
+ font-size: 18px;
948
+ fill: ${t.textColor};
949
+ }
950
+ `, Ae = be;
951
+ export {
952
+ Ae as A,
953
+ $e as C,
954
+ xe as D,
955
+ Tt as E,
956
+ vt as I,
957
+ mt as _,
958
+ Zt as t,
959
+ Ce as v
960
+ };