@kong-ui-public/documentation 1.7.2 → 1.7.3-pr.3596.41e70338d.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 (159) hide show
  1. package/package.json +2 -2
  2. package/dist/arc-DZdQjcG8-CduayE88.js +0 -79
  3. package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +0 -4065
  4. package/dist/astro-D8QEIUE9-nzvtSwAQ.js +0 -18
  5. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +0 -3268
  6. package/dist/c-GOwUpV7U-DMPKLUI8.js +0 -4
  7. package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +0 -3035
  8. package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +0 -4
  9. package/dist/channel-DM9j7IFL-DxqBUxfY.js +0 -5
  10. package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +0 -24
  11. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +0 -8
  12. package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +0 -8
  13. package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +0 -3445
  14. package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +0 -2096
  15. package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +0 -19
  16. package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +0 -65
  17. package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +0 -12
  18. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +0 -17
  19. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +0 -17
  20. package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +0 -2260
  21. package/dist/csharp-Cy04UeDC-OaGPefhL.js +0 -4
  22. package/dist/css-CJQ-rcMF-B_2PRTA_.js +0 -4
  23. package/dist/csv-Bx_Umlp--BPWcOTV4.js +0 -4
  24. package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +0 -18220
  25. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +0 -288
  26. package/dist/dagre-DJxg_nfI-hVOVexz-.js +0 -1687
  27. package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +0 -182
  28. package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +0 -210
  29. package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +0 -99
  30. package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +0 -439
  31. package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +0 -127
  32. package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +0 -475
  33. package/dist/diff-DZRtXnMG-DenOJuyV.js +0 -4
  34. package/dist/docker-DQBBDNmU-xX8PDoIv.js +0 -4
  35. package/dist/documentation.es.js +0 -7
  36. package/dist/documentation.umd.js +0 -3474
  37. package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +0 -1773
  38. package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +0 -4258
  39. package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +0 -3099
  40. package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +0 -5
  41. package/dist/git-rebase-0v-YFIjP-D701iWbX.js +0 -5
  42. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +0 -734
  43. package/dist/go-DpaXbCNA-DqSXHrGo.js +0 -4
  44. package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +0 -1071
  45. package/dist/graphql-BSO8hVnT-C6Okg5tI.js +0 -14
  46. package/dist/haml-DizLz-gS-BWwS-eha.js +0 -10
  47. package/dist/handlebars-tnt1-4s--xVtJSIx5.js +0 -14
  48. package/dist/haskell-BDLr0yXS-BlmVjKNy.js +0 -4
  49. package/dist/html-DdIT5Pi9-C35UyBqr.js +0 -10
  50. package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +0 -5
  51. package/dist/http-DRk-iX-V-DQ76ihB0.js +0 -14
  52. package/dist/index-DfVKdDwj.js +0 -40029
  53. package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +0 -18
  54. package/dist/ini-D-uG5DCC-70PBzbbb.js +0 -4
  55. package/dist/init-8lPFe2y8-B2MlpiqM.js +0 -16
  56. package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +0 -728
  57. package/dist/java-CQQr73XR-D6YBp1XX.js +0 -4
  58. package/dist/javascript-CXmFGv-C-BRPKgr3C.js +0 -4
  59. package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +0 -908
  60. package/dist/json-BXFRNzj8-D8uacQj0.js +0 -4
  61. package/dist/json5-B5-J7v9w-Biib5ALh.js +0 -4
  62. package/dist/jsonc-CeA7x8NU-BZEKkMok.js +0 -4
  63. package/dist/jsonl-BBlxch9W-BG2V-IA2.js +0 -4
  64. package/dist/jsx-DucQCby8-Cl0AMtmu.js +0 -4
  65. package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +0 -1028
  66. package/dist/katex-D7tFlpqA-BOSQxXe1.js +0 -22315
  67. package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +0 -4
  68. package/dist/latex-COX74REd-l1quglTx.js +0 -5
  69. package/dist/less-QqooI0UQ-tcNg8M2_.js +0 -4
  70. package/dist/linear-1MXhYum8-9C1jno9G.js +0 -255
  71. package/dist/liquid-CsynDTV--Bdhb3gsJ.js +0 -14
  72. package/dist/lua-B3xrKnOz-Coo0MCwO.js +0 -5
  73. package/dist/make-eFBmESRY-CrUl7LOH.js +0 -4
  74. package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +0 -4
  75. package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +0 -4
  76. package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +0 -12
  77. package/dist/mdx-CjbEMaEg-CK6jOqmu.js +0 -4
  78. package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +0 -4
  79. package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +0 -1026
  80. package/dist/nginx-DQrs__jO-BS9Jcr4V.js +0 -5
  81. package/dist/objective-c-CXg1TPY9-C809HPrX.js +0 -4
  82. package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +0 -63
  83. package/dist/pascal-C6L9Tn1x-a8whuidZ.js +0 -4
  84. package/dist/perl-Dbi-SlHs-DsZjIGqU.js +0 -16
  85. package/dist/php-J5w8HAya-DnRg4f-g.js +0 -18
  86. package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +0 -153
  87. package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +0 -4
  88. package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +0 -4
  89. package/dist/powershell-CKvM5hOe-Box9VSDW.js +0 -4
  90. package/dist/proto-iweZN-Ks-w0B_itsp.js +0 -4
  91. package/dist/pug-DUPsoXbW-BFHDRSax.js +0 -12
  92. package/dist/python-MxhgNM12-D_5pfY__.js +0 -4
  93. package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +0 -2046
  94. package/dist/r-CoGPXt5G-BrbXTU3W.js +0 -4
  95. package/dist/reg-CHAl2UuA-bHAwx9Pm.js +0 -4
  96. package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +0 -2281
  97. package/dist/rst-D-Zcnz0t-C3PGnqgH.js +0 -20
  98. package/dist/ruby-CQp7mk0v-B3KpG-9E.js +0 -46
  99. package/dist/rust-W9HETclW-CaZtBt24.js +0 -4
  100. package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +0 -946
  101. package/dist/sass-DzGfEb5u-pslLeRRb.js +0 -4
  102. package/dist/scss-cWHTb1-d-DN6jMR75.js +0 -5
  103. package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +0 -4266
  104. package/dist/shellscript-BvJBBLP1-BtH46UX7.js +0 -4
  105. package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +0 -5
  106. package/dist/splunk-TtOhH_8h-BP8P7eWt.js +0 -4
  107. package/dist/sql-B-h_q34g-uWwuAxg_.js +0 -4
  108. package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +0 -4
  109. package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +0 -210
  110. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +0 -16
  111. package/dist/style.css +0 -1
  112. package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +0 -4
  113. package/dist/svelte-CYqtuUsn-Cf97VB5J.js +0 -14
  114. package/dist/swift-CzsQqA0L-BPF2ddNF.js +0 -4
  115. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +0 -1095
  116. package/dist/toml-CRTROHRr-DjT9Bjqu.js +0 -4
  117. package/dist/tsx-CE8dfKwK-B-5hSr15.js +0 -4
  118. package/dist/twig-Bst4uh7S-C3aA9tng.js +0 -18
  119. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  120. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  121. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  122. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  123. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  124. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  125. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  126. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  127. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  128. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  129. package/dist/types/composables/index.d.ts +0 -6
  130. package/dist/types/composables/index.d.ts.map +0 -1
  131. package/dist/types/composables/useI18n.d.ts +0 -9
  132. package/dist/types/composables/useI18n.d.ts.map +0 -1
  133. package/dist/types/external-links.d.ts +0 -5
  134. package/dist/types/external-links.d.ts.map +0 -1
  135. package/dist/types/helpers.d.ts +0 -8
  136. package/dist/types/helpers.d.ts.map +0 -1
  137. package/dist/types/index.d.ts +0 -7
  138. package/dist/types/index.d.ts.map +0 -1
  139. package/dist/types/types/document-list.d.ts +0 -28
  140. package/dist/types/types/document-list.d.ts.map +0 -1
  141. package/dist/types/types/document-modal.d.ts +0 -8
  142. package/dist/types/types/document-modal.d.ts.map +0 -1
  143. package/dist/types/types/index.d.ts +0 -3
  144. package/dist/types/types/index.d.ts.map +0 -1
  145. package/dist/typescript-8ogSSNer-B0ag8pir.js +0 -4
  146. package/dist/v-NeSnRB8V-CYSa2rJN.js +0 -4
  147. package/dist/vb-Dz72yc4q-B6FpM2Kc.js +0 -4
  148. package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +0 -1889
  149. package/dist/viml-DB1flIhL-BeYQ8dZh.js +0 -4
  150. package/dist/vue-Bq4JA_WT-CGBUDahs.js +0 -22
  151. package/dist/vue-html-BygQzR-9-BPez-Otx.js +0 -5
  152. package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +0 -20731
  153. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +0 -639
  154. package/dist/wasm-BmZuu1vu-CfuK9YWP.js +0 -4
  155. package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +0 -4
  156. package/dist/xml-juAhGoTG-khG3jjDl.js +0 -5
  157. package/dist/xsl-CHgyQG2O-CiMa9sUf.js +0 -5
  158. package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +0 -2055
  159. package/dist/yaml-BK_xXVzk-X78l_Ibz.js +0 -4
@@ -1,2096 +0,0 @@
1
- import { p as h, g as b, Z as N, e as te, N as ee, W as se, U as ie, K as re, G as ae, f as oe, i as ne, aq as le, a as z, H as ce } from "./index-DfVKdDwj.js";
2
- import { n as he } from "./chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js";
3
- import { r as de } from "./chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js";
4
- var Dt = (function() {
5
- var t = /* @__PURE__ */ h(function(a, l, y, m) {
6
- for (y ||= {}, m = a.length; m--; y[a[m]] = l) ;
7
- return y;
8
- }, "o"), e = [1, 2], s = [1, 3], o = [1, 4], r = [2, 4], d = [1, 9], c = [1, 11], f = [1, 16], p = [1, 17], S = [1, 18], _ = [1, 19], D = [1, 33], O = [1, 20], x = [1, 21], u = [1, 22], E = [1, 23], A = [1, 24], v = [1, 26], F = [1, 27], R = [1, 28], B = [1, 29], tt = [1, 30], et = [1, 31], st = [1, 32], it = [1, 35], rt = [1, 36], at = [1, 37], ot = [1, 38], M = [1, 34], g = [
9
- 1,
10
- 4,
11
- 5,
12
- 16,
13
- 17,
14
- 19,
15
- 21,
16
- 22,
17
- 24,
18
- 25,
19
- 26,
20
- 27,
21
- 28,
22
- 29,
23
- 33,
24
- 35,
25
- 37,
26
- 38,
27
- 41,
28
- 45,
29
- 48,
30
- 51,
31
- 52,
32
- 53,
33
- 54,
34
- 57
35
- ], nt = [
36
- 1,
37
- 4,
38
- 5,
39
- 14,
40
- 15,
41
- 16,
42
- 17,
43
- 19,
44
- 21,
45
- 22,
46
- 24,
47
- 25,
48
- 26,
49
- 27,
50
- 28,
51
- 29,
52
- 33,
53
- 35,
54
- 37,
55
- 38,
56
- 39,
57
- 40,
58
- 41,
59
- 45,
60
- 48,
61
- 51,
62
- 52,
63
- 53,
64
- 54,
65
- 57
66
- ], Ct = [
67
- 4,
68
- 5,
69
- 16,
70
- 17,
71
- 19,
72
- 21,
73
- 22,
74
- 24,
75
- 25,
76
- 26,
77
- 27,
78
- 28,
79
- 29,
80
- 33,
81
- 35,
82
- 37,
83
- 38,
84
- 41,
85
- 45,
86
- 48,
87
- 51,
88
- 52,
89
- 53,
90
- 54,
91
- 57
92
- ], mt = {
93
- trace: /* @__PURE__ */ h(function() {
94
- }, "trace"),
95
- yy: {},
96
- symbols_: {
97
- error: 2,
98
- start: 3,
99
- SPACE: 4,
100
- NL: 5,
101
- SD: 6,
102
- document: 7,
103
- line: 8,
104
- statement: 9,
105
- classDefStatement: 10,
106
- styleStatement: 11,
107
- cssClassStatement: 12,
108
- idStatement: 13,
109
- DESCR: 14,
110
- "-->": 15,
111
- HIDE_EMPTY: 16,
112
- scale: 17,
113
- WIDTH: 18,
114
- COMPOSIT_STATE: 19,
115
- STRUCT_START: 20,
116
- STRUCT_STOP: 21,
117
- STATE_DESCR: 22,
118
- AS: 23,
119
- ID: 24,
120
- FORK: 25,
121
- JOIN: 26,
122
- CHOICE: 27,
123
- CONCURRENT: 28,
124
- note: 29,
125
- notePosition: 30,
126
- NOTE_TEXT: 31,
127
- direction: 32,
128
- acc_title: 33,
129
- acc_title_value: 34,
130
- acc_descr: 35,
131
- acc_descr_value: 36,
132
- acc_descr_multiline_value: 37,
133
- CLICK: 38,
134
- STRING: 39,
135
- HREF: 40,
136
- classDef: 41,
137
- CLASSDEF_ID: 42,
138
- CLASSDEF_STYLEOPTS: 43,
139
- DEFAULT: 44,
140
- style: 45,
141
- STYLE_IDS: 46,
142
- STYLEDEF_STYLEOPTS: 47,
143
- class: 48,
144
- CLASSENTITY_IDS: 49,
145
- STYLECLASS: 50,
146
- direction_tb: 51,
147
- direction_bt: 52,
148
- direction_rl: 53,
149
- direction_lr: 54,
150
- eol: 55,
151
- ";": 56,
152
- EDGE_STATE: 57,
153
- STYLE_SEPARATOR: 58,
154
- left_of: 59,
155
- right_of: 60,
156
- $accept: 0,
157
- $end: 1
158
- },
159
- terminals_: {
160
- 2: "error",
161
- 4: "SPACE",
162
- 5: "NL",
163
- 6: "SD",
164
- 14: "DESCR",
165
- 15: "-->",
166
- 16: "HIDE_EMPTY",
167
- 17: "scale",
168
- 18: "WIDTH",
169
- 19: "COMPOSIT_STATE",
170
- 20: "STRUCT_START",
171
- 21: "STRUCT_STOP",
172
- 22: "STATE_DESCR",
173
- 23: "AS",
174
- 24: "ID",
175
- 25: "FORK",
176
- 26: "JOIN",
177
- 27: "CHOICE",
178
- 28: "CONCURRENT",
179
- 29: "note",
180
- 31: "NOTE_TEXT",
181
- 33: "acc_title",
182
- 34: "acc_title_value",
183
- 35: "acc_descr",
184
- 36: "acc_descr_value",
185
- 37: "acc_descr_multiline_value",
186
- 38: "CLICK",
187
- 39: "STRING",
188
- 40: "HREF",
189
- 41: "classDef",
190
- 42: "CLASSDEF_ID",
191
- 43: "CLASSDEF_STYLEOPTS",
192
- 44: "DEFAULT",
193
- 45: "style",
194
- 46: "STYLE_IDS",
195
- 47: "STYLEDEF_STYLEOPTS",
196
- 48: "class",
197
- 49: "CLASSENTITY_IDS",
198
- 50: "STYLECLASS",
199
- 51: "direction_tb",
200
- 52: "direction_bt",
201
- 53: "direction_rl",
202
- 54: "direction_lr",
203
- 56: ";",
204
- 57: "EDGE_STATE",
205
- 58: "STYLE_SEPARATOR",
206
- 59: "left_of",
207
- 60: "right_of"
208
- },
209
- productions_: [
210
- 0,
211
- [3, 2],
212
- [3, 2],
213
- [3, 2],
214
- [7, 0],
215
- [7, 2],
216
- [8, 2],
217
- [8, 1],
218
- [8, 1],
219
- [9, 1],
220
- [9, 1],
221
- [9, 1],
222
- [9, 1],
223
- [9, 2],
224
- [9, 3],
225
- [9, 4],
226
- [9, 1],
227
- [9, 2],
228
- [9, 1],
229
- [9, 4],
230
- [9, 3],
231
- [9, 6],
232
- [9, 1],
233
- [9, 1],
234
- [9, 1],
235
- [9, 1],
236
- [9, 4],
237
- [9, 4],
238
- [9, 1],
239
- [9, 2],
240
- [9, 2],
241
- [9, 1],
242
- [9, 5],
243
- [9, 5],
244
- [10, 3],
245
- [10, 3],
246
- [11, 3],
247
- [12, 3],
248
- [32, 1],
249
- [32, 1],
250
- [32, 1],
251
- [32, 1],
252
- [55, 1],
253
- [55, 1],
254
- [13, 1],
255
- [13, 1],
256
- [13, 3],
257
- [13, 3],
258
- [30, 1],
259
- [30, 1]
260
- ],
261
- performAction: /* @__PURE__ */ h(function(a, l, y, m, k, i, P) {
262
- var n = i.length - 1;
263
- switch (k) {
264
- case 3:
265
- return m.setRootDoc(i[n]), i[n];
266
- case 4:
267
- this.$ = [];
268
- break;
269
- case 5:
270
- i[n] != "nl" && (i[n - 1].push(i[n]), this.$ = i[n - 1]);
271
- break;
272
- case 6:
273
- case 7:
274
- this.$ = i[n];
275
- break;
276
- case 8:
277
- this.$ = "nl";
278
- break;
279
- case 12:
280
- this.$ = i[n];
281
- break;
282
- case 13:
283
- let ht = i[n - 1];
284
- ht.description = m.trimColon(i[n]), this.$ = ht;
285
- break;
286
- case 14:
287
- this.$ = {
288
- stmt: "relation",
289
- state1: i[n - 2],
290
- state2: i[n]
291
- };
292
- break;
293
- case 15:
294
- let dt = m.trimColon(i[n]);
295
- this.$ = {
296
- stmt: "relation",
297
- state1: i[n - 3],
298
- state2: i[n - 1],
299
- description: dt
300
- };
301
- break;
302
- case 19:
303
- this.$ = {
304
- stmt: "state",
305
- id: i[n - 3],
306
- type: "default",
307
- description: "",
308
- doc: i[n - 1]
309
- };
310
- break;
311
- case 20:
312
- var G = i[n], K = i[n - 2].trim();
313
- if (i[n].match(":")) {
314
- var ct = i[n].split(":");
315
- G = ct[0], K = [K, ct[1]];
316
- }
317
- this.$ = {
318
- stmt: "state",
319
- id: G,
320
- type: "default",
321
- description: K
322
- };
323
- break;
324
- case 21:
325
- this.$ = {
326
- stmt: "state",
327
- id: i[n - 3],
328
- type: "default",
329
- description: i[n - 5],
330
- doc: i[n - 1]
331
- };
332
- break;
333
- case 22:
334
- this.$ = {
335
- stmt: "state",
336
- id: i[n],
337
- type: "fork"
338
- };
339
- break;
340
- case 23:
341
- this.$ = {
342
- stmt: "state",
343
- id: i[n],
344
- type: "join"
345
- };
346
- break;
347
- case 24:
348
- this.$ = {
349
- stmt: "state",
350
- id: i[n],
351
- type: "choice"
352
- };
353
- break;
354
- case 25:
355
- this.$ = {
356
- stmt: "state",
357
- id: m.getDividerId(),
358
- type: "divider"
359
- };
360
- break;
361
- case 26:
362
- this.$ = {
363
- stmt: "state",
364
- id: i[n - 1].trim(),
365
- note: {
366
- position: i[n - 2].trim(),
367
- text: i[n].trim()
368
- }
369
- };
370
- break;
371
- case 29:
372
- this.$ = i[n].trim(), m.setAccTitle(this.$);
373
- break;
374
- case 30:
375
- case 31:
376
- this.$ = i[n].trim(), m.setAccDescription(this.$);
377
- break;
378
- case 32:
379
- this.$ = {
380
- stmt: "click",
381
- id: i[n - 3],
382
- url: i[n - 2],
383
- tooltip: i[n - 1]
384
- };
385
- break;
386
- case 33:
387
- this.$ = {
388
- stmt: "click",
389
- id: i[n - 3],
390
- url: i[n - 1],
391
- tooltip: ""
392
- };
393
- break;
394
- case 34:
395
- case 35:
396
- this.$ = {
397
- stmt: "classDef",
398
- id: i[n - 1].trim(),
399
- classes: i[n].trim()
400
- };
401
- break;
402
- case 36:
403
- this.$ = {
404
- stmt: "style",
405
- id: i[n - 1].trim(),
406
- styleClass: i[n].trim()
407
- };
408
- break;
409
- case 37:
410
- this.$ = {
411
- stmt: "applyClass",
412
- id: i[n - 1].trim(),
413
- styleClass: i[n].trim()
414
- };
415
- break;
416
- case 38:
417
- m.setDirection("TB"), this.$ = {
418
- stmt: "dir",
419
- value: "TB"
420
- };
421
- break;
422
- case 39:
423
- m.setDirection("BT"), this.$ = {
424
- stmt: "dir",
425
- value: "BT"
426
- };
427
- break;
428
- case 40:
429
- m.setDirection("RL"), this.$ = {
430
- stmt: "dir",
431
- value: "RL"
432
- };
433
- break;
434
- case 41:
435
- m.setDirection("LR"), this.$ = {
436
- stmt: "dir",
437
- value: "LR"
438
- };
439
- break;
440
- case 44:
441
- case 45:
442
- this.$ = {
443
- stmt: "state",
444
- id: i[n].trim(),
445
- type: "default",
446
- description: ""
447
- };
448
- break;
449
- case 46:
450
- this.$ = {
451
- stmt: "state",
452
- id: i[n - 2].trim(),
453
- classes: [i[n].trim()],
454
- type: "default",
455
- description: ""
456
- };
457
- break;
458
- case 47:
459
- this.$ = {
460
- stmt: "state",
461
- id: i[n - 2].trim(),
462
- classes: [i[n].trim()],
463
- type: "default",
464
- description: ""
465
- };
466
- break;
467
- }
468
- }, "anonymous"),
469
- table: [
470
- {
471
- 3: 1,
472
- 4: e,
473
- 5: s,
474
- 6: o
475
- },
476
- { 1: [3] },
477
- {
478
- 3: 5,
479
- 4: e,
480
- 5: s,
481
- 6: o
482
- },
483
- {
484
- 3: 6,
485
- 4: e,
486
- 5: s,
487
- 6: o
488
- },
489
- t([
490
- 1,
491
- 4,
492
- 5,
493
- 16,
494
- 17,
495
- 19,
496
- 22,
497
- 24,
498
- 25,
499
- 26,
500
- 27,
501
- 28,
502
- 29,
503
- 33,
504
- 35,
505
- 37,
506
- 38,
507
- 41,
508
- 45,
509
- 48,
510
- 51,
511
- 52,
512
- 53,
513
- 54,
514
- 57
515
- ], r, { 7: 7 }),
516
- { 1: [2, 1] },
517
- { 1: [2, 2] },
518
- {
519
- 1: [2, 3],
520
- 4: d,
521
- 5: c,
522
- 8: 8,
523
- 9: 10,
524
- 10: 12,
525
- 11: 13,
526
- 12: 14,
527
- 13: 15,
528
- 16: f,
529
- 17: p,
530
- 19: S,
531
- 22: _,
532
- 24: D,
533
- 25: O,
534
- 26: x,
535
- 27: u,
536
- 28: E,
537
- 29: A,
538
- 32: 25,
539
- 33: v,
540
- 35: F,
541
- 37: R,
542
- 38: B,
543
- 41: tt,
544
- 45: et,
545
- 48: st,
546
- 51: it,
547
- 52: rt,
548
- 53: at,
549
- 54: ot,
550
- 57: M
551
- },
552
- t(g, [2, 5]),
553
- {
554
- 9: 39,
555
- 10: 12,
556
- 11: 13,
557
- 12: 14,
558
- 13: 15,
559
- 16: f,
560
- 17: p,
561
- 19: S,
562
- 22: _,
563
- 24: D,
564
- 25: O,
565
- 26: x,
566
- 27: u,
567
- 28: E,
568
- 29: A,
569
- 32: 25,
570
- 33: v,
571
- 35: F,
572
- 37: R,
573
- 38: B,
574
- 41: tt,
575
- 45: et,
576
- 48: st,
577
- 51: it,
578
- 52: rt,
579
- 53: at,
580
- 54: ot,
581
- 57: M
582
- },
583
- t(g, [2, 7]),
584
- t(g, [2, 8]),
585
- t(g, [2, 9]),
586
- t(g, [2, 10]),
587
- t(g, [2, 11]),
588
- t(g, [2, 12], {
589
- 14: [1, 40],
590
- 15: [1, 41]
591
- }),
592
- t(g, [2, 16]),
593
- { 18: [1, 42] },
594
- t(g, [2, 18], { 20: [1, 43] }),
595
- { 23: [1, 44] },
596
- t(g, [2, 22]),
597
- t(g, [2, 23]),
598
- t(g, [2, 24]),
599
- t(g, [2, 25]),
600
- {
601
- 30: 45,
602
- 31: [1, 46],
603
- 59: [1, 47],
604
- 60: [1, 48]
605
- },
606
- t(g, [2, 28]),
607
- { 34: [1, 49] },
608
- { 36: [1, 50] },
609
- t(g, [2, 31]),
610
- {
611
- 13: 51,
612
- 24: D,
613
- 57: M
614
- },
615
- {
616
- 42: [1, 52],
617
- 44: [1, 53]
618
- },
619
- { 46: [1, 54] },
620
- { 49: [1, 55] },
621
- t(nt, [2, 44], { 58: [1, 56] }),
622
- t(nt, [2, 45], { 58: [1, 57] }),
623
- t(g, [2, 38]),
624
- t(g, [2, 39]),
625
- t(g, [2, 40]),
626
- t(g, [2, 41]),
627
- t(g, [2, 6]),
628
- t(g, [2, 13]),
629
- {
630
- 13: 58,
631
- 24: D,
632
- 57: M
633
- },
634
- t(g, [2, 17]),
635
- t(Ct, r, { 7: 59 }),
636
- { 24: [1, 60] },
637
- { 24: [1, 61] },
638
- { 23: [1, 62] },
639
- { 24: [2, 48] },
640
- { 24: [2, 49] },
641
- t(g, [2, 29]),
642
- t(g, [2, 30]),
643
- {
644
- 39: [1, 63],
645
- 40: [1, 64]
646
- },
647
- { 43: [1, 65] },
648
- { 43: [1, 66] },
649
- { 47: [1, 67] },
650
- { 50: [1, 68] },
651
- { 24: [1, 69] },
652
- { 24: [1, 70] },
653
- t(g, [2, 14], { 14: [1, 71] }),
654
- {
655
- 4: d,
656
- 5: c,
657
- 8: 8,
658
- 9: 10,
659
- 10: 12,
660
- 11: 13,
661
- 12: 14,
662
- 13: 15,
663
- 16: f,
664
- 17: p,
665
- 19: S,
666
- 21: [1, 72],
667
- 22: _,
668
- 24: D,
669
- 25: O,
670
- 26: x,
671
- 27: u,
672
- 28: E,
673
- 29: A,
674
- 32: 25,
675
- 33: v,
676
- 35: F,
677
- 37: R,
678
- 38: B,
679
- 41: tt,
680
- 45: et,
681
- 48: st,
682
- 51: it,
683
- 52: rt,
684
- 53: at,
685
- 54: ot,
686
- 57: M
687
- },
688
- t(g, [2, 20], { 20: [1, 73] }),
689
- { 31: [1, 74] },
690
- { 24: [1, 75] },
691
- { 39: [1, 76] },
692
- { 39: [1, 77] },
693
- t(g, [2, 34]),
694
- t(g, [2, 35]),
695
- t(g, [2, 36]),
696
- t(g, [2, 37]),
697
- t(nt, [2, 46]),
698
- t(nt, [2, 47]),
699
- t(g, [2, 15]),
700
- t(g, [2, 19]),
701
- t(Ct, r, { 7: 78 }),
702
- t(g, [2, 26]),
703
- t(g, [2, 27]),
704
- { 5: [1, 79] },
705
- { 5: [1, 80] },
706
- {
707
- 4: d,
708
- 5: c,
709
- 8: 8,
710
- 9: 10,
711
- 10: 12,
712
- 11: 13,
713
- 12: 14,
714
- 13: 15,
715
- 16: f,
716
- 17: p,
717
- 19: S,
718
- 21: [1, 81],
719
- 22: _,
720
- 24: D,
721
- 25: O,
722
- 26: x,
723
- 27: u,
724
- 28: E,
725
- 29: A,
726
- 32: 25,
727
- 33: v,
728
- 35: F,
729
- 37: R,
730
- 38: B,
731
- 41: tt,
732
- 45: et,
733
- 48: st,
734
- 51: it,
735
- 52: rt,
736
- 53: at,
737
- 54: ot,
738
- 57: M
739
- },
740
- t(g, [2, 32]),
741
- t(g, [2, 33]),
742
- t(g, [2, 21])
743
- ],
744
- defaultActions: {
745
- 5: [2, 1],
746
- 6: [2, 2],
747
- 47: [2, 48],
748
- 48: [2, 49]
749
- },
750
- parseError: /* @__PURE__ */ h(function(a, l) {
751
- if (l.recoverable) this.trace(a);
752
- else {
753
- var y = Error(a);
754
- throw y.hash = l, y;
755
- }
756
- }, "parseError"),
757
- parse: /* @__PURE__ */ h(function(a) {
758
- var l = this, y = [0], m = [], k = [null], i = [], P = this.table, n = "", G = 0, K = 0, ct = 0, ht = 2, dt = 1, qt = i.slice.call(arguments, 1), T = Object.create(this.lexer), W = { yy: {} };
759
- for (var St in this.yy) Object.prototype.hasOwnProperty.call(this.yy, St) && (W.yy[St] = this.yy[St]);
760
- T.setInput(a, W.yy), W.yy.lexer = T, W.yy.parser = this, T.yylloc === void 0 && (T.yylloc = {});
761
- var _t = T.yylloc;
762
- i.push(_t);
763
- var Zt = T.options && T.options.ranges;
764
- typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
765
- function Qt(I) {
766
- y.length -= 2 * I, k.length -= I, i.length -= I;
767
- }
768
- h(Qt, "popStack");
769
- function vt() {
770
- var I = m.pop() || T.lex() || dt;
771
- return typeof I != "number" && (I instanceof Array && (m = I, I = m.pop()), I = l.symbols_[I] || I), I;
772
- }
773
- h(vt, "lex");
774
- for (var C, kt, j, L, bt, H = {}, ut, w, Lt, pt; ; ) {
775
- if (j = y[y.length - 1], this.defaultActions[j] ? L = this.defaultActions[j] : (C ??= vt(), L = P[j] && P[j][C]), L === void 0 || !L.length || !L[0]) {
776
- var It = "";
777
- for (ut in pt = [], P[j]) this.terminals_[ut] && ut > ht && pt.push("'" + this.terminals_[ut] + "'");
778
- It = T.showPosition ? "Parse error on line " + (G + 1) + `:
779
- ` + T.showPosition() + `
780
- Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (G + 1) + ": Unexpected " + (C == dt ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(It, {
781
- text: T.match,
782
- token: this.terminals_[C] || C,
783
- line: T.yylineno,
784
- loc: _t,
785
- expected: pt
786
- });
787
- }
788
- if (L[0] instanceof Array && L.length > 1) throw Error("Parse Error: multiple actions possible at state: " + j + ", token: " + C);
789
- switch (L[0]) {
790
- case 1:
791
- y.push(C), k.push(T.yytext), i.push(T.yylloc), y.push(L[1]), C = null, kt ? (C = kt, kt = null) : (K = T.yyleng, n = T.yytext, G = T.yylineno, _t = T.yylloc, ct > 0);
792
- break;
793
- case 2:
794
- if (w = this.productions_[L[1]][1], H.$ = k[k.length - w], H._$ = {
795
- first_line: i[i.length - (w || 1)].first_line,
796
- last_line: i[i.length - 1].last_line,
797
- first_column: i[i.length - (w || 1)].first_column,
798
- last_column: i[i.length - 1].last_column
799
- }, Zt && (H._$.range = [i[i.length - (w || 1)].range[0], i[i.length - 1].range[1]]), bt = this.performAction.apply(H, [
800
- n,
801
- K,
802
- G,
803
- W.yy,
804
- L[1],
805
- k,
806
- i
807
- ].concat(qt)), bt !== void 0) return bt;
808
- w && (y = y.slice(0, -1 * w * 2), k = k.slice(0, -1 * w), i = i.slice(0, -1 * w)), y.push(this.productions_[L[1]][0]), k.push(H.$), i.push(H._$), Lt = P[y[y.length - 2]][y[y.length - 1]], y.push(Lt);
809
- break;
810
- case 3:
811
- return !0;
812
- }
813
- }
814
- return !0;
815
- }, "parse")
816
- };
817
- mt.lexer = /* @__PURE__ */ (function() {
818
- return {
819
- EOF: 1,
820
- parseError: /* @__PURE__ */ h(function(a, l) {
821
- if (this.yy.parser) this.yy.parser.parseError(a, l);
822
- else throw Error(a);
823
- }, "parseError"),
824
- setInput: /* @__PURE__ */ h(function(a, l) {
825
- return this.yy = l || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
826
- first_line: 1,
827
- first_column: 0,
828
- last_line: 1,
829
- last_column: 0
830
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
831
- }, "setInput"),
832
- input: /* @__PURE__ */ h(function() {
833
- var a = this._input[0];
834
- return this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a, a.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
835
- }, "input"),
836
- unput: /* @__PURE__ */ h(function(a) {
837
- var l = a.length, y = a.split(/(?:\r\n?|\n)/g);
838
- this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
839
- var m = this.match.split(/(?:\r\n?|\n)/g);
840
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
841
- var k = this.yylloc.range;
842
- return this.yylloc = {
843
- first_line: this.yylloc.first_line,
844
- last_line: this.yylineno + 1,
845
- first_column: this.yylloc.first_column,
846
- last_column: y ? (y.length === m.length ? this.yylloc.first_column : 0) + m[m.length - y.length].length - y[0].length : this.yylloc.first_column - l
847
- }, this.options.ranges && (this.yylloc.range = [k[0], k[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
848
- }, "unput"),
849
- more: /* @__PURE__ */ h(function() {
850
- return this._more = !0, this;
851
- }, "more"),
852
- reject: /* @__PURE__ */ h(function() {
853
- if (this.options.backtrack_lexer) this._backtrack = !0;
854
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
855
- ` + this.showPosition(), {
856
- text: "",
857
- token: null,
858
- line: this.yylineno
859
- });
860
- return this;
861
- }, "reject"),
862
- less: /* @__PURE__ */ h(function(a) {
863
- this.unput(this.match.slice(a));
864
- }, "less"),
865
- pastInput: /* @__PURE__ */ h(function() {
866
- var a = this.matched.substr(0, this.matched.length - this.match.length);
867
- return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
868
- }, "pastInput"),
869
- upcomingInput: /* @__PURE__ */ h(function() {
870
- var a = this.match;
871
- return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
872
- }, "upcomingInput"),
873
- showPosition: /* @__PURE__ */ h(function() {
874
- var a = this.pastInput(), l = Array(a.length + 1).join("-");
875
- return a + this.upcomingInput() + `
876
- ` + l + "^";
877
- }, "showPosition"),
878
- test_match: /* @__PURE__ */ h(function(a, l) {
879
- var y, m, k;
880
- if (this.options.backtrack_lexer && (k = {
881
- yylineno: this.yylineno,
882
- yylloc: {
883
- first_line: this.yylloc.first_line,
884
- last_line: this.last_line,
885
- first_column: this.yylloc.first_column,
886
- last_column: this.yylloc.last_column
887
- },
888
- yytext: this.yytext,
889
- match: this.match,
890
- matches: this.matches,
891
- matched: this.matched,
892
- yyleng: this.yyleng,
893
- offset: this.offset,
894
- _more: this._more,
895
- _input: this._input,
896
- yy: this.yy,
897
- conditionStack: this.conditionStack.slice(0),
898
- done: this.done
899
- }, this.options.ranges && (k.yylloc.range = this.yylloc.range.slice(0))), m = a[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
900
- first_line: this.yylloc.last_line,
901
- last_line: this.yylineno + 1,
902
- first_column: this.yylloc.last_column,
903
- last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
904
- }, this.yytext += a[0], this.match += a[0], this.matches = a, 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(a[0].length), this.matched += a[0], y = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y) return y;
905
- if (this._backtrack) {
906
- for (var i in k) this[i] = k[i];
907
- return !1;
908
- }
909
- return !1;
910
- }, "test_match"),
911
- next: /* @__PURE__ */ h(function() {
912
- if (this.done) return this.EOF;
913
- this._input || (this.done = !0);
914
- var a, l, y, m;
915
- this._more || (this.yytext = "", this.match = "");
916
- for (var k = this._currentRules(), i = 0; i < k.length; i++) if (y = this._input.match(this.rules[k[i]]), y && (!l || y[0].length > l[0].length)) {
917
- if (l = y, m = i, this.options.backtrack_lexer) {
918
- if (a = this.test_match(y, k[i]), a !== !1) return a;
919
- if (this._backtrack) {
920
- l = !1;
921
- continue;
922
- } else return !1;
923
- } else if (!this.options.flex) break;
924
- }
925
- return l ? (a = this.test_match(l, k[m]), a === !1 ? !1 : a) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
926
- ` + this.showPosition(), {
927
- text: "",
928
- token: null,
929
- line: this.yylineno
930
- });
931
- }, "next"),
932
- lex: /* @__PURE__ */ h(function() {
933
- return this.next() || this.lex();
934
- }, "lex"),
935
- begin: /* @__PURE__ */ h(function(a) {
936
- this.conditionStack.push(a);
937
- }, "begin"),
938
- popState: /* @__PURE__ */ h(function() {
939
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
940
- }, "popState"),
941
- _currentRules: /* @__PURE__ */ h(function() {
942
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
943
- }, "_currentRules"),
944
- topState: /* @__PURE__ */ h(function(a) {
945
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
946
- }, "topState"),
947
- pushState: /* @__PURE__ */ h(function(a) {
948
- this.begin(a);
949
- }, "pushState"),
950
- stateStackSize: /* @__PURE__ */ h(function() {
951
- return this.conditionStack.length;
952
- }, "stateStackSize"),
953
- options: { "case-insensitive": !0 },
954
- performAction: /* @__PURE__ */ h(function(a, l, y, m) {
955
- function k() {
956
- let i = l.yytext.indexOf("%%");
957
- if (i === 0) return !1;
958
- if (i > 0) {
959
- let P = l.yytext.slice(0, i), n = l.yytext.slice(i);
960
- n && a.lexer.unput(n), l.yytext = P;
961
- }
962
- return !0;
963
- }
964
- switch (h(k, "processId"), y) {
965
- case 0:
966
- return 38;
967
- case 1:
968
- return 40;
969
- case 2:
970
- return 39;
971
- case 3:
972
- return 44;
973
- case 4:
974
- return 51;
975
- case 5:
976
- return 52;
977
- case 6:
978
- return 53;
979
- case 7:
980
- return 54;
981
- case 8:
982
- return 5;
983
- case 9:
984
- break;
985
- case 10:
986
- break;
987
- case 11:
988
- break;
989
- case 12:
990
- break;
991
- case 13:
992
- return this.pushState("SCALE"), 17;
993
- case 14:
994
- return 18;
995
- case 15:
996
- this.popState();
997
- break;
998
- case 16:
999
- return this.begin("acc_title"), 33;
1000
- case 17:
1001
- return this.popState(), "acc_title_value";
1002
- case 18:
1003
- return this.begin("acc_descr"), 35;
1004
- case 19:
1005
- return this.popState(), "acc_descr_value";
1006
- case 20:
1007
- this.begin("acc_descr_multiline");
1008
- break;
1009
- case 21:
1010
- this.popState();
1011
- break;
1012
- case 22:
1013
- return "acc_descr_multiline_value";
1014
- case 23:
1015
- return this.pushState("CLASSDEF"), 41;
1016
- case 24:
1017
- return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
1018
- case 25:
1019
- return this.popState(), this.pushState("CLASSDEFID"), 42;
1020
- case 26:
1021
- return this.popState(), 43;
1022
- case 27:
1023
- return this.pushState("CLASS"), 48;
1024
- case 28:
1025
- return this.popState(), this.pushState("CLASS_STYLE"), 49;
1026
- case 29:
1027
- return this.popState(), 50;
1028
- case 30:
1029
- return this.pushState("STYLE"), 45;
1030
- case 31:
1031
- return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
1032
- case 32:
1033
- return this.popState(), 47;
1034
- case 33:
1035
- return this.pushState("SCALE"), 17;
1036
- case 34:
1037
- return 18;
1038
- case 35:
1039
- this.popState();
1040
- break;
1041
- case 36:
1042
- this.pushState("STATE");
1043
- break;
1044
- case 37:
1045
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
1046
- case 38:
1047
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
1048
- case 39:
1049
- return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
1050
- case 40:
1051
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
1052
- case 41:
1053
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
1054
- case 42:
1055
- return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
1056
- case 43:
1057
- return 51;
1058
- case 44:
1059
- return 52;
1060
- case 45:
1061
- return 53;
1062
- case 46:
1063
- return 54;
1064
- case 47:
1065
- this.pushState("STATE_STRING");
1066
- break;
1067
- case 48:
1068
- return this.pushState("STATE_ID"), "AS";
1069
- case 49:
1070
- return k() ? (this.popState(), "ID") : void 0;
1071
- case 50:
1072
- this.popState();
1073
- break;
1074
- case 51:
1075
- return "STATE_DESCR";
1076
- case 52:
1077
- return 19;
1078
- case 53:
1079
- this.popState();
1080
- break;
1081
- case 54:
1082
- return this.popState(), this.pushState("struct"), 20;
1083
- case 55:
1084
- return this.popState(), 21;
1085
- case 56:
1086
- break;
1087
- case 57:
1088
- return this.begin("NOTE"), 29;
1089
- case 58:
1090
- return this.popState(), this.pushState("NOTE_ID"), 59;
1091
- case 59:
1092
- return this.popState(), this.pushState("NOTE_ID"), 60;
1093
- case 60:
1094
- this.popState(), this.pushState("FLOATING_NOTE");
1095
- break;
1096
- case 61:
1097
- return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1098
- case 62:
1099
- break;
1100
- case 63:
1101
- return "NOTE_TEXT";
1102
- case 64:
1103
- return k() ? (this.popState(), "ID") : void 0;
1104
- case 65:
1105
- return k() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1106
- case 66:
1107
- return this.popState(), l.yytext = l.yytext.substr(2).trim(), 31;
1108
- case 67:
1109
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 31;
1110
- case 68:
1111
- return 6;
1112
- case 69:
1113
- return 6;
1114
- case 70:
1115
- return 16;
1116
- case 71:
1117
- return 57;
1118
- case 72:
1119
- return k() ? 24 : void 0;
1120
- case 73:
1121
- return l.yytext = l.yytext.trim(), 14;
1122
- case 74:
1123
- return 15;
1124
- case 75:
1125
- return 28;
1126
- case 76:
1127
- return 58;
1128
- case 77:
1129
- return 5;
1130
- case 78:
1131
- return "INVALID";
1132
- }
1133
- }, "anonymous"),
1134
- rules: [
1135
- /^(?:click\b)/i,
1136
- /^(?:href\b)/i,
1137
- /^(?:"[^"]*")/i,
1138
- /^(?:default\b)/i,
1139
- /^(?:.*direction\s+TB[^\n]*)/i,
1140
- /^(?:.*direction\s+BT[^\n]*)/i,
1141
- /^(?:.*direction\s+RL[^\n]*)/i,
1142
- /^(?:.*direction\s+LR[^\n]*)/i,
1143
- /^(?:[\n]+)/i,
1144
- /^(?:[\s]+)/i,
1145
- /^(?:((?!\n)\s)+)/i,
1146
- /^(?:#[^\n]*)/i,
1147
- /^(?:%%(?!\{)[^\n]*)/i,
1148
- /^(?:scale\s+)/i,
1149
- /^(?:\d+)/i,
1150
- /^(?:\s+width\b)/i,
1151
- /^(?:accTitle\s*:\s*)/i,
1152
- /^(?:(?!\n||)*[^\n]*)/i,
1153
- /^(?:accDescr\s*:\s*)/i,
1154
- /^(?:(?!\n||)*[^\n]*)/i,
1155
- /^(?:accDescr\s*\{\s*)/i,
1156
- /^(?:[\}])/i,
1157
- /^(?:[^\}]*)/i,
1158
- /^(?:classDef\s+)/i,
1159
- /^(?:DEFAULT\s+)/i,
1160
- /^(?:\w+\s+)/i,
1161
- /^(?:[^\n]*)/i,
1162
- /^(?:class\s+)/i,
1163
- /^(?:(\w+)+((,\s*\w+)*))/i,
1164
- /^(?:[^\n]*)/i,
1165
- /^(?:style\s+)/i,
1166
- /^(?:[\w,]+\s+)/i,
1167
- /^(?:[^\n]*)/i,
1168
- /^(?:scale\s+)/i,
1169
- /^(?:\d+)/i,
1170
- /^(?:\s+width\b)/i,
1171
- /^(?:state\s+)/i,
1172
- /^(?:.*<<fork>>)/i,
1173
- /^(?:.*<<join>>)/i,
1174
- /^(?:.*<<choice>>)/i,
1175
- /^(?:.*\[\[fork\]\])/i,
1176
- /^(?:.*\[\[join\]\])/i,
1177
- /^(?:.*\[\[choice\]\])/i,
1178
- /^(?:.*direction\s+TB[^\n]*)/i,
1179
- /^(?:.*direction\s+BT[^\n]*)/i,
1180
- /^(?:.*direction\s+RL[^\n]*)/i,
1181
- /^(?:.*direction\s+LR[^\n]*)/i,
1182
- /^(?:["])/i,
1183
- /^(?:\s*as\s+)/i,
1184
- /^(?:[^\n\{]*)/i,
1185
- /^(?:["])/i,
1186
- /^(?:[^"]*)/i,
1187
- /^(?:[^\n\s\{]+)/i,
1188
- /^(?:\n)/i,
1189
- /^(?:\{)/i,
1190
- /^(?:\})/i,
1191
- /^(?:[\n])/i,
1192
- /^(?:note\s+)/i,
1193
- /^(?:left of\b)/i,
1194
- /^(?:right of\b)/i,
1195
- /^(?:")/i,
1196
- /^(?:\s*as\s*)/i,
1197
- /^(?:["])/i,
1198
- /^(?:[^"]*)/i,
1199
- /^(?:[^\n]*)/i,
1200
- /^(?:\s*[^:\n\s\-]+)/i,
1201
- /^(?:\s*:[^:\n;]+)/i,
1202
- /^(?:[\s\S]*?\n\s*end note\b)/i,
1203
- /^(?:stateDiagram\s+)/i,
1204
- /^(?:stateDiagram-v2\s+)/i,
1205
- /^(?:hide empty description\b)/i,
1206
- /^(?:\[\*\])/i,
1207
- /^(?:[^:\n\s\-\{]+)/i,
1208
- /^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
1209
- /^(?:-->)/i,
1210
- /^(?:--)/i,
1211
- /^(?::::)/i,
1212
- /^(?:$)/i,
1213
- /^(?:.)/i
1214
- ],
1215
- conditions: {
1216
- LINE: {
1217
- rules: [
1218
- 10,
1219
- 11,
1220
- 12
1221
- ],
1222
- inclusive: !1
1223
- },
1224
- struct: {
1225
- rules: [
1226
- 10,
1227
- 11,
1228
- 12,
1229
- 23,
1230
- 27,
1231
- 30,
1232
- 36,
1233
- 43,
1234
- 44,
1235
- 45,
1236
- 46,
1237
- 55,
1238
- 56,
1239
- 57,
1240
- 71,
1241
- 72,
1242
- 73,
1243
- 74,
1244
- 75,
1245
- 76
1246
- ],
1247
- inclusive: !1
1248
- },
1249
- FLOATING_NOTE_ID: {
1250
- rules: [64],
1251
- inclusive: !1
1252
- },
1253
- FLOATING_NOTE: {
1254
- rules: [
1255
- 61,
1256
- 62,
1257
- 63
1258
- ],
1259
- inclusive: !1
1260
- },
1261
- NOTE_TEXT: {
1262
- rules: [66, 67],
1263
- inclusive: !1
1264
- },
1265
- NOTE_ID: {
1266
- rules: [65],
1267
- inclusive: !1
1268
- },
1269
- NOTE: {
1270
- rules: [
1271
- 58,
1272
- 59,
1273
- 60
1274
- ],
1275
- inclusive: !1
1276
- },
1277
- STYLEDEF_STYLEOPTS: {
1278
- rules: [],
1279
- inclusive: !1
1280
- },
1281
- STYLEDEF_STYLES: {
1282
- rules: [32],
1283
- inclusive: !1
1284
- },
1285
- STYLE_IDS: {
1286
- rules: [],
1287
- inclusive: !1
1288
- },
1289
- STYLE: {
1290
- rules: [31],
1291
- inclusive: !1
1292
- },
1293
- CLASS_STYLE: {
1294
- rules: [29],
1295
- inclusive: !1
1296
- },
1297
- CLASS: {
1298
- rules: [28],
1299
- inclusive: !1
1300
- },
1301
- CLASSDEFID: {
1302
- rules: [26],
1303
- inclusive: !1
1304
- },
1305
- CLASSDEF: {
1306
- rules: [24, 25],
1307
- inclusive: !1
1308
- },
1309
- acc_descr_multiline: {
1310
- rules: [21, 22],
1311
- inclusive: !1
1312
- },
1313
- acc_descr: {
1314
- rules: [19],
1315
- inclusive: !1
1316
- },
1317
- acc_title: {
1318
- rules: [17],
1319
- inclusive: !1
1320
- },
1321
- SCALE: {
1322
- rules: [
1323
- 14,
1324
- 15,
1325
- 34,
1326
- 35
1327
- ],
1328
- inclusive: !1
1329
- },
1330
- ALIAS: {
1331
- rules: [],
1332
- inclusive: !1
1333
- },
1334
- STATE_ID: {
1335
- rules: [49],
1336
- inclusive: !1
1337
- },
1338
- STATE_STRING: {
1339
- rules: [50, 51],
1340
- inclusive: !1
1341
- },
1342
- FORK_STATE: {
1343
- rules: [],
1344
- inclusive: !1
1345
- },
1346
- STATE: {
1347
- rules: [
1348
- 10,
1349
- 11,
1350
- 12,
1351
- 37,
1352
- 38,
1353
- 39,
1354
- 40,
1355
- 41,
1356
- 42,
1357
- 47,
1358
- 48,
1359
- 52,
1360
- 53,
1361
- 54
1362
- ],
1363
- inclusive: !1
1364
- },
1365
- ID: {
1366
- rules: [
1367
- 10,
1368
- 11,
1369
- 12
1370
- ],
1371
- inclusive: !1
1372
- },
1373
- INITIAL: {
1374
- rules: [
1375
- 0,
1376
- 1,
1377
- 2,
1378
- 3,
1379
- 4,
1380
- 5,
1381
- 6,
1382
- 7,
1383
- 8,
1384
- 9,
1385
- 11,
1386
- 12,
1387
- 13,
1388
- 16,
1389
- 18,
1390
- 20,
1391
- 23,
1392
- 27,
1393
- 30,
1394
- 33,
1395
- 36,
1396
- 54,
1397
- 57,
1398
- 68,
1399
- 69,
1400
- 70,
1401
- 71,
1402
- 72,
1403
- 73,
1404
- 74,
1405
- 76,
1406
- 77,
1407
- 78
1408
- ],
1409
- inclusive: !0
1410
- }
1411
- }
1412
- };
1413
- })();
1414
- function lt() {
1415
- this.yy = {};
1416
- }
1417
- return h(lt, "Parser"), lt.prototype = mt, mt.Parser = lt, new lt();
1418
- })();
1419
- Dt.parser = Dt;
1420
- var Oe = Dt, ue = "TB", Ft = "TB", At = "dir", J = "state", X = "root", xt = "relation", pe = "classDef", ye = "style", fe = "applyClass", Z = "default", Pt = "divider", Gt = "fill:none", Wt = "fill: #333", jt = "c", zt = "markdown", Ut = "normal", Tt = "rect", Et = "rectWithTitle", ge = "stateStart", me = "stateEnd", Nt = "divider", Ot = "roundedWithTitle", Se = "note", _e = "noteGroup", Q = "statediagram", ke = `${Q}-state`, Mt = "transition", be = "note", Te = `${Mt} note-edge`, Ee = `${Q}-${be}`, De = `${Q}-cluster`, xe = `${Q}-cluster-alt`, Kt = "parent", Ht = "note", $e = "state", $t = "----", Ce = `${$t}${Ht}`, wt = `${$t}${Kt}`, Xt = /* @__PURE__ */ h((t, e = Ft) => {
1421
- if (!t.doc) return e;
1422
- let s = e;
1423
- for (let o of t.doc) o.stmt === "dir" && (s = o.value);
1424
- return s;
1425
- }, "getDir"), we = {
1426
- getClasses: /* @__PURE__ */ h(function(t, e) {
1427
- return e.db.getClasses();
1428
- }, "getClasses"),
1429
- draw: /* @__PURE__ */ h(async function(t, e, s, o) {
1430
- b.info("REF0:"), b.info("Drawing state diagram (v2)", e);
1431
- let { securityLevel: r, state: d, layout: c } = N();
1432
- o.db.extract(o.db.getRootDocV2());
1433
- let f = o.db.getData(), p = he(e, r);
1434
- f.type = o.type, f.layoutAlgorithm = c, f.nodeSpacing = d?.nodeSpacing || 50, f.rankSpacing = d?.rankSpacing || 50, N().look === "neo" ? f.markers = ["barbNeo"] : f.markers = ["barb"], f.diagramId = e, await te(f, p);
1435
- try {
1436
- (typeof o.db.getLinks == "function" ? o.db.getLinks() : /* @__PURE__ */ new Map()).forEach((S, _) => {
1437
- let D = typeof _ == "string" ? _ : typeof _?.id == "string" ? _.id : "";
1438
- if (!D) {
1439
- b.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(_));
1440
- return;
1441
- }
1442
- let O = p.node()?.querySelectorAll("g"), x;
1443
- if (O?.forEach((v) => {
1444
- v.textContent?.trim() === D && (x = v);
1445
- }), !x) {
1446
- b.warn("⚠️ Could not find node matching text:", D);
1447
- return;
1448
- }
1449
- let u = x.parentNode;
1450
- if (!u) {
1451
- b.warn("⚠️ Node has no parent, cannot wrap:", D);
1452
- return;
1453
- }
1454
- let E = document.createElementNS("http://www.w3.org/2000/svg", "a"), A = S.url.replace(/^"+|"+$/g, "");
1455
- if (E.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", A), E.setAttribute("target", "_blank"), S.tooltip) {
1456
- let v = S.tooltip.replace(/^"+|"+$/g, "");
1457
- E.setAttribute("title", v);
1458
- }
1459
- u.replaceChild(E, x), E.appendChild(x), b.info("🔗 Wrapped node in <a> tag for:", D, S.url);
1460
- });
1461
- } catch (S) {
1462
- b.error("❌ Error injecting clickable links:", S);
1463
- }
1464
- ee.insertTitle(p, "statediagramTitleText", d?.titleTopMargin ?? 25, o.db.getDiagramTitle()), de(p, 8, Q, d?.useMaxWidth ?? !0);
1465
- }, "draw"),
1466
- getDir: Xt
1467
- }, ft = /* @__PURE__ */ new Map(), Y = 0;
1468
- function gt(t = "", e = 0, s = "", o = $t) {
1469
- return `${$e}-${t}${s !== null && s.length > 0 ? `${o}${s}` : ""}-${e}`;
1470
- }
1471
- h(gt, "stateDomId");
1472
- var ve = /* @__PURE__ */ h((t, e, s, o, r, d, c, f) => {
1473
- b.trace("items", e), e.forEach((p) => {
1474
- switch (p.stmt) {
1475
- case J:
1476
- q(t, p, s, o, r, d, c, f);
1477
- break;
1478
- case Z:
1479
- q(t, p, s, o, r, d, c, f);
1480
- break;
1481
- case xt:
1482
- {
1483
- q(t, p.state1, s, o, r, d, c, f), q(t, p.state2, s, o, r, d, c, f);
1484
- let S = c === "neo", _ = {
1485
- id: "edge" + Y,
1486
- start: p.state1.id,
1487
- end: p.state2.id,
1488
- arrowhead: "normal",
1489
- arrowTypeEnd: S ? "arrow_barb_neo" : "arrow_barb",
1490
- style: Gt,
1491
- labelStyle: "",
1492
- label: z.sanitizeText(p.description ?? "", N()),
1493
- arrowheadStyle: Wt,
1494
- labelpos: jt,
1495
- labelType: zt,
1496
- thickness: Ut,
1497
- classes: Mt,
1498
- look: c
1499
- };
1500
- r.push(_), Y++;
1501
- }
1502
- break;
1503
- }
1504
- });
1505
- }, "setupDoc"), Rt = /* @__PURE__ */ h((t, e = Ft) => {
1506
- let s = e;
1507
- if (t.doc) for (let o of t.doc) o.stmt === "dir" && (s = o.value);
1508
- return s;
1509
- }, "getDir");
1510
- function V(t, e, s) {
1511
- if (!e.id || e.id === "</join></fork>" || e.id === "</choice>") return;
1512
- e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((r) => {
1513
- let d = s.get(r);
1514
- d && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...d.styles]);
1515
- }));
1516
- let o = t.find((r) => r.id === e.id);
1517
- o ? Object.assign(o, e) : t.push(e);
1518
- }
1519
- h(V, "insertOrUpdateNode");
1520
- function Jt(t) {
1521
- return t?.classes?.join(" ") ?? "";
1522
- }
1523
- h(Jt, "getClassesFromDbInfo");
1524
- function Vt(t) {
1525
- return t?.styles ?? [];
1526
- }
1527
- h(Vt, "getStylesFromDbInfo");
1528
- var q = /* @__PURE__ */ h((t, e, s, o, r, d, c, f) => {
1529
- let p = e.id, S = s.get(p), _ = Jt(S), D = Vt(S), O = N();
1530
- if (b.info("dataFetcher parsedItem", e, S, D), p !== "root") {
1531
- let x = Tt;
1532
- e.start === !0 ? x = ge : e.start === !1 && (x = me), e.type !== Z && (x = e.type), ft.get(p) || ft.set(p, {
1533
- id: p,
1534
- shape: x,
1535
- description: z.sanitizeText(p, O),
1536
- cssClasses: `${_} ${ke}`,
1537
- cssStyles: D
1538
- });
1539
- let u = ft.get(p);
1540
- e.description && (Array.isArray(u.description) ? (u.shape = Et, u.description.push(e.description)) : u.description?.length && u.description.length > 0 ? (u.shape = Et, u.description === p ? u.description = [e.description] : u.description = [u.description, e.description]) : (u.shape = Tt, u.description = e.description), u.description = z.sanitizeTextOrArray(u.description, O)), u.description?.length === 1 && u.shape === Et && (u.type === "group" ? u.shape = Ot : u.shape = Tt), !u.type && e.doc && (b.info("Setting cluster for XCX", p, Rt(e)), u.type = "group", u.isGroup = !0, u.dir = Rt(e), u.shape = e.type === Pt ? Nt : Ot, u.cssClasses = `${u.cssClasses} ${De} ${d ? xe : ""}`);
1541
- let E = {
1542
- labelStyle: "",
1543
- shape: u.shape,
1544
- label: u.description,
1545
- cssClasses: u.cssClasses,
1546
- cssCompiledStyles: [],
1547
- cssStyles: u.cssStyles,
1548
- id: p,
1549
- dir: u.dir,
1550
- domId: gt(p, Y),
1551
- type: u.type,
1552
- isGroup: u.type === "group",
1553
- padding: 8,
1554
- rx: 10,
1555
- ry: 10,
1556
- look: c,
1557
- labelType: "markdown"
1558
- };
1559
- if (E.shape === Nt && (E.label = ""), t && t.id !== "root" && (b.trace("Setting node ", p, " to be child of its parent ", t.id), E.parentId = t.id), E.centerLabel = !0, e.note) {
1560
- let A = {
1561
- labelStyle: "",
1562
- shape: Se,
1563
- label: e.note.text,
1564
- labelType: "markdown",
1565
- cssClasses: Ee,
1566
- cssStyles: [],
1567
- cssCompiledStyles: [],
1568
- id: p + Ce + "-" + Y,
1569
- domId: gt(p, Y, Ht),
1570
- type: u.type,
1571
- isGroup: u.type === "group",
1572
- padding: O.flowchart?.padding,
1573
- look: c,
1574
- position: e.note.position
1575
- }, v = p + wt, F = {
1576
- labelStyle: "",
1577
- shape: _e,
1578
- label: e.note.text,
1579
- cssClasses: u.cssClasses,
1580
- cssStyles: [],
1581
- id: p + wt,
1582
- domId: gt(p, Y, Kt),
1583
- type: "group",
1584
- isGroup: !0,
1585
- padding: 16,
1586
- look: c,
1587
- position: e.note.position
1588
- };
1589
- Y++, F.id = v, A.parentId = v, V(o, F, f), V(o, A, f), V(o, E, f);
1590
- let R = p, B = A.id;
1591
- e.note.position === "left of" && (R = A.id, B = p), r.push({
1592
- id: R + "-" + B,
1593
- start: R,
1594
- end: B,
1595
- arrowhead: "none",
1596
- arrowTypeEnd: "",
1597
- style: Gt,
1598
- labelStyle: "",
1599
- classes: Te,
1600
- arrowheadStyle: Wt,
1601
- labelpos: jt,
1602
- labelType: zt,
1603
- thickness: Ut,
1604
- look: c
1605
- });
1606
- } else V(o, E, f);
1607
- }
1608
- e.doc && (b.trace("Adding nodes children "), ve(e, e.doc, s, o, r, !d, c, f));
1609
- }, "dataFetcher"), Le = /* @__PURE__ */ h(() => {
1610
- ft.clear(), Y = 0;
1611
- }, "reset"), $ = {
1612
- START_NODE: "[*]",
1613
- START_TYPE: "start",
1614
- END_NODE: "[*]",
1615
- END_TYPE: "end",
1616
- COLOR_KEYWORD: "color",
1617
- FILL_KEYWORD: "fill",
1618
- BG_FILL: "bgFill",
1619
- STYLECLASS_SEP: ","
1620
- }, Bt = /* @__PURE__ */ h(() => /* @__PURE__ */ new Map(), "newClassesList"), Yt = /* @__PURE__ */ h(() => ({
1621
- relations: [],
1622
- states: /* @__PURE__ */ new Map(),
1623
- documents: {}
1624
- }), "newDoc"), yt = /* @__PURE__ */ h((t) => JSON.parse(JSON.stringify(t)), "clone"), U, Re = (U = class {
1625
- constructor(e) {
1626
- this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Bt(), this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = se, this.setAccTitle = ie, this.getAccDescription = re, this.setAccDescription = ae, this.setDiagramTitle = oe, this.getDiagramTitle = ne, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
1627
- }
1628
- extract(e) {
1629
- this.clear(!0);
1630
- for (let r of Array.isArray(e) ? e : e.doc) switch (r.stmt) {
1631
- case J:
1632
- this.addState(r.id.trim(), r.type, r.doc, r.description, r.note);
1633
- break;
1634
- case xt:
1635
- this.addRelation(r.state1, r.state2, r.description);
1636
- break;
1637
- case pe:
1638
- this.addStyleClass(r.id.trim(), r.classes);
1639
- break;
1640
- case ye:
1641
- this.handleStyleDef(r);
1642
- break;
1643
- case fe:
1644
- this.setCssClass(r.id.trim(), r.styleClass);
1645
- break;
1646
- case "click":
1647
- this.addLink(r.id, r.url, r.tooltip);
1648
- break;
1649
- }
1650
- let s = this.getStates(), o = N();
1651
- Le(), q(void 0, this.getRootDocV2(), s, this.nodes, this.edges, !0, o.look, this.classes);
1652
- for (let r of this.nodes) if (Array.isArray(r.label)) {
1653
- if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);
1654
- r.label = r.label[0];
1655
- }
1656
- }
1657
- handleStyleDef(e) {
1658
- let s = e.id.trim().split(","), o = e.styleClass.split(",");
1659
- for (let r of s) {
1660
- let d = this.getState(r);
1661
- if (!d) {
1662
- let c = r.trim();
1663
- this.addState(c), d = this.getState(c);
1664
- }
1665
- d && (d.styles = o.map((c) => c.replace(/;/g, "")?.trim()));
1666
- }
1667
- }
1668
- setRootDoc(e) {
1669
- b.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
1670
- }
1671
- docTranslator(e, s, o) {
1672
- if (s.stmt === xt) {
1673
- this.docTranslator(e, s.state1, !0), this.docTranslator(e, s.state2, !1);
1674
- return;
1675
- }
1676
- if (s.stmt === J && (s.id === $.START_NODE ? (s.id = e.id + (o ? "_start" : "_end"), s.start = o) : s.id = s.id.trim()), s.stmt !== X && s.stmt !== J || !s.doc) return;
1677
- let r = [], d = [];
1678
- for (let c of s.doc) if (c.type === Pt) {
1679
- let f = yt(c);
1680
- f.doc = yt(d), r.push(f), d = [];
1681
- } else d.push(c);
1682
- if (r.length > 0 && d.length > 0) {
1683
- let c = {
1684
- stmt: J,
1685
- id: le(),
1686
- type: "divider",
1687
- doc: yt(d)
1688
- };
1689
- r.push(yt(c)), s.doc = r;
1690
- }
1691
- s.doc.forEach((c) => this.docTranslator(s, c, !0));
1692
- }
1693
- getRootDocV2() {
1694
- return this.docTranslator({
1695
- id: X,
1696
- stmt: X
1697
- }, {
1698
- id: X,
1699
- stmt: X,
1700
- doc: this.rootDoc
1701
- }, !0), {
1702
- id: X,
1703
- doc: this.rootDoc
1704
- };
1705
- }
1706
- addState(e, s = Z, o = void 0, r = void 0, d = void 0, c = void 0, f = void 0, p = void 0) {
1707
- let S = e?.trim();
1708
- if (!this.currentDocument.states.has(S)) b.info("Adding state ", S, r), this.currentDocument.states.set(S, {
1709
- stmt: J,
1710
- id: S,
1711
- descriptions: [],
1712
- type: s,
1713
- doc: o,
1714
- note: d,
1715
- classes: [],
1716
- styles: [],
1717
- textStyles: []
1718
- });
1719
- else {
1720
- let _ = this.currentDocument.states.get(S);
1721
- if (!_) throw Error(`State not found: ${S}`);
1722
- _.doc ||= o, _.type ||= s;
1723
- }
1724
- if (r && (b.info("Setting state description", S, r), (Array.isArray(r) ? r : [r]).forEach((_) => this.addDescription(S, _.trim()))), d) {
1725
- let _ = this.currentDocument.states.get(S);
1726
- if (!_) throw Error(`State not found: ${S}`);
1727
- _.note = d, _.note.text = z.sanitizeText(_.note.text, N());
1728
- }
1729
- c && (b.info("Setting state classes", S, c), (Array.isArray(c) ? c : [c]).forEach((_) => this.setCssClass(S, _.trim()))), f && (b.info("Setting state styles", S, f), (Array.isArray(f) ? f : [f]).forEach((_) => this.setStyle(S, _.trim()))), p && (b.info("Setting state styles", S, f), (Array.isArray(p) ? p : [p]).forEach((_) => this.setTextStyle(S, _.trim())));
1730
- }
1731
- clear(e) {
1732
- this.nodes = [], this.edges = [], this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Bt(), e || (this.links = /* @__PURE__ */ new Map(), ce());
1733
- }
1734
- getState(e) {
1735
- return this.currentDocument.states.get(e);
1736
- }
1737
- getStates() {
1738
- return this.currentDocument.states;
1739
- }
1740
- logDocuments() {
1741
- b.info("Documents = ", this.documents);
1742
- }
1743
- getRelations() {
1744
- return this.currentDocument.relations;
1745
- }
1746
- addLink(e, s, o) {
1747
- this.links.set(e, {
1748
- url: s,
1749
- tooltip: o
1750
- }), b.warn("Adding link", e, s, o);
1751
- }
1752
- getLinks() {
1753
- return this.links;
1754
- }
1755
- startIdIfNeeded(e = "") {
1756
- return e === $.START_NODE ? (this.startEndCount++, `${$.START_TYPE}${this.startEndCount}`) : e;
1757
- }
1758
- startTypeIfNeeded(e = "", s = Z) {
1759
- return e === $.START_NODE ? $.START_TYPE : s;
1760
- }
1761
- endIdIfNeeded(e = "") {
1762
- return e === $.END_NODE ? (this.startEndCount++, `${$.END_TYPE}${this.startEndCount}`) : e;
1763
- }
1764
- endTypeIfNeeded(e = "", s = Z) {
1765
- return e === $.END_NODE ? $.END_TYPE : s;
1766
- }
1767
- addRelationObjs(e, s, o = "") {
1768
- let r = this.startIdIfNeeded(e.id.trim()), d = this.startTypeIfNeeded(e.id.trim(), e.type), c = this.startIdIfNeeded(s.id.trim()), f = this.startTypeIfNeeded(s.id.trim(), s.type);
1769
- this.addState(r, d, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(c, f, s.doc, s.description, s.note, s.classes, s.styles, s.textStyles), this.currentDocument.relations.push({
1770
- id1: r,
1771
- id2: c,
1772
- relationTitle: z.sanitizeText(o, N())
1773
- });
1774
- }
1775
- addRelation(e, s, o) {
1776
- if (typeof e == "object" && typeof s == "object") this.addRelationObjs(e, s, o);
1777
- else if (typeof e == "string" && typeof s == "string") {
1778
- let r = this.startIdIfNeeded(e.trim()), d = this.startTypeIfNeeded(e), c = this.endIdIfNeeded(s.trim()), f = this.endTypeIfNeeded(s);
1779
- this.addState(r, d), this.addState(c, f), this.currentDocument.relations.push({
1780
- id1: r,
1781
- id2: c,
1782
- relationTitle: o ? z.sanitizeText(o, N()) : void 0
1783
- });
1784
- }
1785
- }
1786
- addDescription(e, s) {
1787
- let o = this.currentDocument.states.get(e), r = s.startsWith(":") ? s.replace(":", "").trim() : s;
1788
- o?.descriptions?.push(z.sanitizeText(r, N()));
1789
- }
1790
- cleanupLabel(e) {
1791
- return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1792
- }
1793
- getDividerId() {
1794
- return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1795
- }
1796
- addStyleClass(e, s = "") {
1797
- this.classes.has(e) || this.classes.set(e, {
1798
- id: e,
1799
- styles: [],
1800
- textStyles: []
1801
- });
1802
- let o = this.classes.get(e);
1803
- s && o && s.split($.STYLECLASS_SEP).forEach((r) => {
1804
- let d = r.replace(/([^;]*);/, "$1").trim();
1805
- if (RegExp($.COLOR_KEYWORD).exec(r)) {
1806
- let c = d.replace($.FILL_KEYWORD, $.BG_FILL).replace($.COLOR_KEYWORD, $.FILL_KEYWORD);
1807
- o.textStyles.push(c);
1808
- }
1809
- o.styles.push(d);
1810
- });
1811
- }
1812
- getClasses() {
1813
- return this.classes;
1814
- }
1815
- setCssClass(e, s) {
1816
- e.split(",").forEach((o) => {
1817
- let r = this.getState(o);
1818
- if (!r) {
1819
- let d = o.trim();
1820
- this.addState(d), r = this.getState(d);
1821
- }
1822
- r?.classes?.push(s);
1823
- });
1824
- }
1825
- setStyle(e, s) {
1826
- this.getState(e)?.styles?.push(s);
1827
- }
1828
- setTextStyle(e, s) {
1829
- this.getState(e)?.textStyles?.push(s);
1830
- }
1831
- getDirectionStatement() {
1832
- return this.rootDoc.find((e) => e.stmt === At);
1833
- }
1834
- getDirection() {
1835
- return this.getDirectionStatement()?.value ?? ue;
1836
- }
1837
- setDirection(e) {
1838
- let s = this.getDirectionStatement();
1839
- s ? s.value = e : this.rootDoc.unshift({
1840
- stmt: At,
1841
- value: e
1842
- });
1843
- }
1844
- trimColon(e) {
1845
- return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1846
- }
1847
- getData() {
1848
- let e = N();
1849
- return {
1850
- nodes: this.nodes,
1851
- edges: this.edges,
1852
- other: {},
1853
- config: e,
1854
- direction: Xt(this.getRootDocV2())
1855
- };
1856
- }
1857
- getConfig() {
1858
- return N().state;
1859
- }
1860
- }, h(U, "StateDB"), U.relationType = {
1861
- AGGREGATION: 0,
1862
- EXTENSION: 1,
1863
- COMPOSITION: 2,
1864
- DEPENDENCY: 3
1865
- }, U), Be = /* @__PURE__ */ h((t) => `
1866
- defs [id$="-barbEnd"] {
1867
- fill: ${t.transitionColor};
1868
- stroke: ${t.transitionColor};
1869
- }
1870
- g.stateGroup text {
1871
- fill: ${t.nodeBorder};
1872
- stroke: none;
1873
- font-size: 10px;
1874
- }
1875
- g.stateGroup text {
1876
- fill: ${t.textColor};
1877
- stroke: none;
1878
- font-size: 10px;
1879
-
1880
- }
1881
- g.stateGroup .state-title {
1882
- font-weight: bolder;
1883
- fill: ${t.stateLabelColor};
1884
- }
1885
-
1886
- g.stateGroup rect {
1887
- fill: ${t.mainBkg};
1888
- stroke: ${t.nodeBorder};
1889
- }
1890
-
1891
- g.stateGroup line {
1892
- stroke: ${t.lineColor};
1893
- stroke-width: ${t.strokeWidth || 1};
1894
- }
1895
-
1896
- .transition {
1897
- stroke: ${t.transitionColor};
1898
- stroke-width: ${t.strokeWidth || 1};
1899
- fill: none;
1900
- }
1901
-
1902
- .stateGroup .composit {
1903
- fill: ${t.background};
1904
- border-bottom: 1px
1905
- }
1906
-
1907
- .stateGroup .alt-composit {
1908
- fill: #e0e0e0;
1909
- border-bottom: 1px
1910
- }
1911
-
1912
- .state-note {
1913
- stroke: ${t.noteBorderColor};
1914
- fill: ${t.noteBkgColor};
1915
-
1916
- text {
1917
- fill: ${t.noteTextColor};
1918
- stroke: none;
1919
- font-size: 10px;
1920
- }
1921
- }
1922
-
1923
- .stateLabel .box {
1924
- stroke: none;
1925
- stroke-width: 0;
1926
- fill: ${t.mainBkg};
1927
- opacity: 0.5;
1928
- }
1929
-
1930
- .edgeLabel .label rect {
1931
- fill: ${t.labelBackgroundColor};
1932
- opacity: 0.5;
1933
- }
1934
- .edgeLabel {
1935
- background-color: ${t.edgeLabelBackground};
1936
- p {
1937
- background-color: ${t.edgeLabelBackground};
1938
- }
1939
- rect {
1940
- opacity: 0.5;
1941
- background-color: ${t.edgeLabelBackground};
1942
- fill: ${t.edgeLabelBackground};
1943
- }
1944
- text-align: center;
1945
- }
1946
- .edgeLabel .label text {
1947
- fill: ${t.transitionLabelColor || t.tertiaryTextColor};
1948
- }
1949
- .label div .edgeLabel {
1950
- color: ${t.transitionLabelColor || t.tertiaryTextColor};
1951
- }
1952
-
1953
- .stateLabel text {
1954
- fill: ${t.stateLabelColor};
1955
- font-size: 10px;
1956
- font-weight: bold;
1957
- }
1958
-
1959
- .node circle.state-start {
1960
- fill: ${t.specialStateColor};
1961
- stroke: ${t.specialStateColor};
1962
- }
1963
-
1964
- .node .fork-join {
1965
- fill: ${t.specialStateColor};
1966
- stroke: ${t.specialStateColor};
1967
- }
1968
-
1969
- .node circle.state-end {
1970
- fill: ${t.innerEndBackground};
1971
- stroke: ${t.background};
1972
- stroke-width: 1.5
1973
- }
1974
- .end-state-inner {
1975
- fill: ${t.compositeBackground || t.background};
1976
- // stroke: ${t.background};
1977
- stroke-width: 1.5
1978
- }
1979
-
1980
- .node rect {
1981
- fill: ${t.stateBkg || t.mainBkg};
1982
- stroke: ${t.stateBorder || t.nodeBorder};
1983
- stroke-width: ${t.strokeWidth || 1}px;
1984
- }
1985
- .node polygon {
1986
- fill: ${t.mainBkg};
1987
- stroke: ${t.stateBorder || t.nodeBorder};;
1988
- stroke-width: ${t.strokeWidth || 1}px;
1989
- }
1990
- [id$="-barbEnd"] {
1991
- fill: ${t.lineColor};
1992
- }
1993
-
1994
- .statediagram-cluster rect {
1995
- fill: ${t.compositeTitleBackground};
1996
- stroke: ${t.stateBorder || t.nodeBorder};
1997
- stroke-width: ${t.strokeWidth || 1}px;
1998
- }
1999
-
2000
- .cluster-label, .nodeLabel {
2001
- color: ${t.stateLabelColor};
2002
- // line-height: 1;
2003
- }
2004
-
2005
- .statediagram-cluster rect.outer {
2006
- rx: 5px;
2007
- ry: 5px;
2008
- }
2009
- .statediagram-state .divider {
2010
- stroke: ${t.stateBorder || t.nodeBorder};
2011
- }
2012
-
2013
- .statediagram-state .title-state {
2014
- rx: 5px;
2015
- ry: 5px;
2016
- }
2017
- .statediagram-cluster.statediagram-cluster .inner {
2018
- fill: ${t.compositeBackground || t.background};
2019
- }
2020
- .statediagram-cluster.statediagram-cluster-alt .inner {
2021
- fill: ${t.altBackground ? t.altBackground : "#efefef"};
2022
- }
2023
-
2024
- .statediagram-cluster .inner {
2025
- rx:0;
2026
- ry:0;
2027
- }
2028
-
2029
- .statediagram-state rect.basic {
2030
- rx: 5px;
2031
- ry: 5px;
2032
- }
2033
- .statediagram-state rect.divider {
2034
- stroke-dasharray: 10,10;
2035
- fill: ${t.altBackground ? t.altBackground : "#efefef"};
2036
- }
2037
-
2038
- .note-edge {
2039
- stroke-dasharray: 5;
2040
- }
2041
-
2042
- .statediagram-note rect {
2043
- fill: ${t.noteBkgColor};
2044
- stroke: ${t.noteBorderColor};
2045
- stroke-width: 1px;
2046
- rx: 0;
2047
- ry: 0;
2048
- }
2049
- .statediagram-note rect {
2050
- fill: ${t.noteBkgColor};
2051
- stroke: ${t.noteBorderColor};
2052
- stroke-width: 1px;
2053
- rx: 0;
2054
- ry: 0;
2055
- }
2056
-
2057
- .statediagram-note text {
2058
- fill: ${t.noteTextColor};
2059
- }
2060
-
2061
- .statediagram-note .nodeLabel {
2062
- color: ${t.noteTextColor};
2063
- }
2064
- .statediagram .edgeLabel {
2065
- color: red; // ${t.noteTextColor};
2066
- }
2067
-
2068
- [id$="-dependencyStart"], [id$="-dependencyEnd"] {
2069
- fill: ${t.lineColor};
2070
- stroke: ${t.lineColor};
2071
- stroke-width: ${t.strokeWidth || 1};
2072
- }
2073
-
2074
- .statediagramTitleText {
2075
- text-anchor: middle;
2076
- font-size: 18px;
2077
- fill: ${t.textColor};
2078
- }
2079
-
2080
- [data-look="neo"].statediagram-cluster rect {
2081
- fill: ${t.mainBkg};
2082
- stroke: ${t.useGradient ? "url(" + t.svgId + "-gradient)" : t.stateBorder || t.nodeBorder};
2083
- stroke-width: ${t.strokeWidth ?? 1};
2084
- }
2085
- [data-look="neo"].statediagram-cluster rect.outer {
2086
- rx: ${t.radius}px;
2087
- ry: ${t.radius}px;
2088
- filter: ${t.dropShadow ? t.dropShadow.replace("url(#drop-shadow)", `url(${t.svgId}-drop-shadow)`) : "none"}
2089
- }
2090
- `, "getStyles");
2091
- export {
2092
- Oe as _,
2093
- we as p,
2094
- Re as v,
2095
- Be as y
2096
- };