for-humanity 0.11.0 → 0.13.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 (226) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +16 -9
  3. package/dist/browser.js +16 -16
  4. package/dist/cli.css +2 -941
  5. package/dist/cli.js +92 -2290
  6. package/dist/config.js +1 -0
  7. package/dist/constant/copy.d.ts +100 -0
  8. package/dist/constant/site.d.ts +20 -0
  9. package/dist/constant/status.d.ts +19 -0
  10. package/dist/copy-C1uzvEnr.js +103 -0
  11. package/dist/group-path-XAThmzvC.js +10 -0
  12. package/dist/load-site-CbpLEhwu.js +2379 -0
  13. package/dist/logger-Dv1i9xSV.js +9 -0
  14. package/dist/mermaid/THIRD-PARTY-NOTICES.txt +3134 -0
  15. package/dist/mermaid/chunk--TN-qHgG.js +2 -0
  16. package/dist/mermaid/chunk-0kM1Lv4D.js +2 -0
  17. package/dist/mermaid/chunk-3FHei3pH.js +2001 -0
  18. package/dist/mermaid/chunk-3_2p2GqN.js +2 -0
  19. package/dist/mermaid/chunk-6HLei9i0.js +84 -0
  20. package/dist/mermaid/chunk-7Sz3kAwl.js +2214 -0
  21. package/dist/mermaid/chunk-7Tarqbpa.js +18047 -0
  22. package/dist/mermaid/chunk-9kkt8lzL.js +10 -0
  23. package/dist/mermaid/chunk-B--pNBQF.js +884 -0
  24. package/dist/mermaid/chunk-B4F-pysn.js +4241 -0
  25. package/dist/mermaid/chunk-B58sEIY_.js +14 -0
  26. package/dist/mermaid/chunk-B9_UWzSH.js +1517 -0
  27. package/dist/mermaid/chunk-BB8uZHwY.js +75 -0
  28. package/dist/mermaid/chunk-BFfk0LEc.js +717 -0
  29. package/dist/mermaid/chunk-BKri0qr7.js +89 -0
  30. package/dist/mermaid/chunk-BL404pH5.js +26 -0
  31. package/dist/mermaid/chunk-BLeiQSWo.js +354 -0
  32. package/dist/mermaid/chunk-BOmH_UFd.js +2 -0
  33. package/dist/mermaid/chunk-BSej9Nhy.js +1361 -0
  34. package/dist/mermaid/chunk-BYzrzvCI.js +12 -0
  35. package/dist/mermaid/chunk-BariMtWr.js +3020 -0
  36. package/dist/mermaid/chunk-BcrBoMwH.js +2352 -0
  37. package/dist/mermaid/chunk-Bok8z-Yo.js +67 -0
  38. package/dist/mermaid/chunk-BpTHLKQM.js +1970 -0
  39. package/dist/mermaid/chunk-BqjuxRsC.js +733 -0
  40. package/dist/mermaid/chunk-BuvPd-s5.js +1073 -0
  41. package/dist/mermaid/chunk-BvVehae3.js +5069 -0
  42. package/dist/mermaid/chunk-C-JABYpd.js +3075 -0
  43. package/dist/mermaid/chunk-C9XlTm4w.js +2 -0
  44. package/dist/mermaid/chunk-CApNbSU9.js +6 -0
  45. package/dist/mermaid/chunk-CCM2AH-C.js +9 -0
  46. package/dist/mermaid/chunk-CD1E0F_N.js +2 -0
  47. package/dist/mermaid/chunk-CDWvKG7D.js +2 -0
  48. package/dist/mermaid/chunk-CEVPpC1F.js +34 -0
  49. package/dist/mermaid/chunk-CLDr12lf.js +47504 -0
  50. package/dist/mermaid/chunk-CLVYqOBI.js +61 -0
  51. package/dist/mermaid/chunk-CLeOkFb5.js +15 -0
  52. package/dist/mermaid/chunk-CLgRAtOz.js +37 -0
  53. package/dist/mermaid/chunk-CMqFNUBl.js +134 -0
  54. package/dist/mermaid/chunk-CTPaBJXB.js +2 -0
  55. package/dist/mermaid/chunk-CVi6IGBL.js +2 -0
  56. package/dist/mermaid/chunk-CWV_EN-4.js +4745 -0
  57. package/dist/mermaid/chunk-CZ0dAs3g.js +2 -0
  58. package/dist/mermaid/chunk-C_YGy4Fn.js +236 -0
  59. package/dist/mermaid/chunk-CcVH22Yt.js +100 -0
  60. package/dist/mermaid/chunk-CgG6CD9_.js +7175 -0
  61. package/dist/mermaid/chunk-CgOP6IDB.js +3397 -0
  62. package/dist/mermaid/chunk-Cgg2UTSf.js +13 -0
  63. package/dist/mermaid/chunk-ChJfJJ1A.js +214 -0
  64. package/dist/mermaid/chunk-Ck5XRA46.js +447 -0
  65. package/dist/mermaid/chunk-Ckuw16cl.js +203 -0
  66. package/dist/mermaid/chunk-CpAbRCbF.js +1880 -0
  67. package/dist/mermaid/chunk-CuYekbSv.js +2 -0
  68. package/dist/mermaid/chunk-CwS4wZ5a.js +2 -0
  69. package/dist/mermaid/chunk-D-bcrBO3.js +82 -0
  70. package/dist/mermaid/chunk-D3IEAkCW.js +76 -0
  71. package/dist/mermaid/chunk-D8XfBJ_K.js +645 -0
  72. package/dist/mermaid/chunk-D9Ddd9y4.js +2228 -0
  73. package/dist/mermaid/chunk-DBh1mIbK.js +12 -0
  74. package/dist/mermaid/chunk-DD6Df6Ic.js +5 -0
  75. package/dist/mermaid/chunk-DGVDaXjx.js +8 -0
  76. package/dist/mermaid/chunk-DK9KqIXj.js +632 -0
  77. package/dist/mermaid/chunk-DORnIAsy.js +4487 -0
  78. package/dist/mermaid/chunk-DU69_VcF.js +363 -0
  79. package/dist/mermaid/chunk-DVNvSFoz.js +2144 -0
  80. package/dist/mermaid/chunk-DZe-4kde.js +20 -0
  81. package/dist/mermaid/chunk-D_a06Rz4.js +287 -0
  82. package/dist/mermaid/chunk-DfyFJJi2.js +972 -0
  83. package/dist/mermaid/chunk-DhKYPp1Z.js +2 -0
  84. package/dist/mermaid/chunk-DjFqgNTG.js +94 -0
  85. package/dist/mermaid/chunk-DmbDDrr-.js +65 -0
  86. package/dist/mermaid/chunk-DpuxlyL_.js +696 -0
  87. package/dist/mermaid/chunk-DqGhppWe.js +2 -0
  88. package/dist/mermaid/chunk-DqPZxHXa.js +5 -0
  89. package/dist/mermaid/chunk-Dt_1Jyif.js +293 -0
  90. package/dist/mermaid/chunk-DyQBE_NW.js +1935 -0
  91. package/dist/mermaid/chunk-JckyC4mW.js +1009 -0
  92. package/dist/mermaid/chunk-K7Myuj2-.js +1334 -0
  93. package/dist/mermaid/chunk-KuPYb48V.js +275 -0
  94. package/dist/mermaid/chunk-MFVRUoO0.js +4020 -0
  95. package/dist/mermaid/chunk-MbInCS_6.js +28 -0
  96. package/dist/mermaid/chunk-MexOLyKV.js +355 -0
  97. package/dist/mermaid/chunk-NnbDtJzg.js +21856 -0
  98. package/dist/mermaid/chunk-SGpOYZbI.js +2139 -0
  99. package/dist/mermaid/chunk-TbxLDlcU.js +198 -0
  100. package/dist/mermaid/chunk-TftHqGLg.js +490 -0
  101. package/dist/mermaid/chunk-UjQ8vA_Z.js +4138 -0
  102. package/dist/mermaid/chunk-YgmVTKqc.js +16 -0
  103. package/dist/mermaid/chunk-_a9EZE1v.js +1798 -0
  104. package/dist/mermaid/chunk-dTb8jqeP.js +2 -0
  105. package/dist/mermaid/chunk-fFdMfF8S.js +2240 -0
  106. package/dist/mermaid/chunk-feYbMzBj.js +1267 -0
  107. package/dist/mermaid/chunk-g3Pn8DkW.js +46 -0
  108. package/dist/mermaid/chunk-hM77LvCb.js +19832 -0
  109. package/dist/mermaid/chunk-hUDb-eAW.js +527 -0
  110. package/dist/mermaid/chunk-tpABtZ-3.js +4252 -0
  111. package/dist/mermaid/chunk-xIbz3oFK.js +59 -0
  112. package/dist/mermaid/chunk-yBz-vst0.js +976 -0
  113. package/dist/mermaid/mermaid-BhtR3wyB.js +1145 -0
  114. package/dist/run-site-command-C80YoNOe.js +129 -0
  115. package/dist/site-config-bllORGpm.js +90 -0
  116. package/dist/site.js +1 -0
  117. package/dist/start-dev-server-C4_Lu1nZ.js +176 -0
  118. package/dist/to-change-queue-DbEnZGNK.js +34 -0
  119. package/dist/to-error-message-pF6_7wGK.js +16 -0
  120. package/dist/type/group-path.d.ts +7 -0
  121. package/dist/type/site-config.d.ts +57 -0
  122. package/package.json +34 -17
  123. package/src/component/widget/cursor-face/_constant/cursor-face.ts +0 -14
  124. package/src/component/widget/cursor-face/wg-cursor-face.css +0 -15
  125. package/src/component/widget/cursor-face/wg-cursor-face.tsx +0 -153
  126. package/src/component/widget/navigation/_constant/locale.ts +0 -9
  127. package/src/component/widget/navigation/_constant/navigation-data-schema.ts +0 -33
  128. package/src/component/widget/navigation/_constant/navigation.ts +0 -9
  129. package/src/component/widget/navigation/_constant/reading-line.ts +0 -4
  130. package/src/component/widget/navigation/_function/restore-navigation-scroll.ts +0 -59
  131. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-branches.ts +0 -15
  132. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-group-branches.ts +0 -70
  133. package/src/component/widget/navigation/_function/to-doc-groups/to-doc-groups.ts +0 -15
  134. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-document.ts +0 -13
  135. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-group.ts +0 -13
  136. package/src/component/widget/navigation/_function/to-navigation-data/to-navigation-data.ts +0 -18
  137. package/src/component/widget/navigation/_function/to-navigation-json.ts +0 -8
  138. package/src/component/widget/navigation/_function/to-toc-groups.ts +0 -38
  139. package/src/component/widget/navigation/_type/doc-branch.ts +0 -11
  140. package/src/component/widget/navigation/_type/doc-group.ts +0 -24
  141. package/src/component/widget/navigation/_type/navigation-data.ts +0 -75
  142. package/src/component/widget/navigation/_type/navigation-focus-snapshot.ts +0 -17
  143. package/src/component/widget/navigation/_type/toc-group.ts +0 -39
  144. package/src/component/widget/navigation/_wg-navigation-nav-list.css +0 -48
  145. package/src/component/widget/navigation/_wg-navigation-nav-list.tsx +0 -61
  146. package/src/component/widget/navigation/_wg-navigation-nav.css +0 -21
  147. package/src/component/widget/navigation/_wg-navigation-nav.tsx +0 -33
  148. package/src/component/widget/navigation/_wg-navigation-scroll.tsx +0 -117
  149. package/src/component/widget/navigation/_wg-navigation-toc.css +0 -91
  150. package/src/component/widget/navigation/_wg-navigation-toc.tsx +0 -114
  151. package/src/component/widget/navigation/wg-navigation.css +0 -282
  152. package/src/component/widget/navigation/wg-navigation.tsx +0 -420
  153. package/src/component/widget/prose/_constant/heading-highlight.ts +0 -4
  154. package/src/component/widget/prose/_constant/section.ts +0 -7
  155. package/src/component/widget/prose/_constant/status.ts +0 -9
  156. package/src/component/widget/prose/_function/has-block-content.ts +0 -30
  157. package/src/component/widget/prose/_function/rehype-head.ts +0 -31
  158. package/src/component/widget/prose/_function/rehype-sections/_to-section-headings.ts +0 -20
  159. package/src/component/widget/prose/_function/rehype-sections/rehype-sections.ts +0 -21
  160. package/src/component/widget/prose/_function/rehype-tables.ts +0 -22
  161. package/src/component/widget/prose/_function/remark-blocks.ts +0 -112
  162. package/src/component/widget/prose/_function/remark-flow.ts +0 -26
  163. package/src/component/widget/prose/_function/remark-links.ts +0 -33
  164. package/src/component/widget/prose/_function/remark-parts.ts +0 -26
  165. package/src/component/widget/prose/_function/remark-status.ts +0 -59
  166. package/src/component/widget/prose/_function/remark-swatch.ts +0 -16
  167. package/src/component/widget/prose/_function/remark-unknown-directives.ts +0 -25
  168. package/src/component/widget/prose/wg-prose.css +0 -454
  169. package/src/component/widget/prose/wg-prose.tsx +0 -43
  170. package/src/component/widget/shell/wg-shell.css +0 -63
  171. package/src/component/widget/shell/wg-shell.tsx +0 -88
  172. package/src/component/widget/shell-controls/wg-shell-controls.css +0 -4
  173. package/src/component/widget/shell-controls/wg-shell-controls.tsx +0 -170
  174. package/src/constant/asset.ts +0 -63
  175. package/src/constant/copy.ts +0 -133
  176. package/src/constant/doc.ts +0 -13
  177. package/src/constant/font.ts +0 -34
  178. package/src/constant/site.ts +0 -24
  179. package/src/constant/status.ts +0 -15
  180. package/src/entry/browser/browser.tsx +0 -22
  181. package/src/entry/cli/_constant/cli.ts +0 -19
  182. package/src/entry/cli/_constant/crawling.ts +0 -14
  183. package/src/entry/cli/_constant/snippet.ts +0 -21
  184. package/src/entry/cli/_function/create-app.tsx +0 -57
  185. package/src/entry/cli/_function/create-dev-app.ts +0 -87
  186. package/src/entry/cli/_function/create-processor/_rehype-assets.ts +0 -70
  187. package/src/entry/cli/_function/create-processor/_rehype-heading-ids.ts +0 -34
  188. package/src/entry/cli/_function/create-processor/_remark-report.ts +0 -15
  189. package/src/entry/cli/_function/create-processor/_remark-snippets.ts +0 -117
  190. package/src/entry/cli/_function/create-processor/_shiki-transformers.ts +0 -55
  191. package/src/entry/cli/_function/create-processor/create-processor.ts +0 -64
  192. package/src/entry/cli/_function/read-docs.ts +0 -128
  193. package/src/entry/cli/_function/read-home.ts +0 -32
  194. package/src/entry/cli/_function/to-crawling-app.ts +0 -42
  195. package/src/entry/cli/cli.test.ts +0 -782
  196. package/src/entry/cli/cli.ts +0 -206
  197. package/src/env.d.ts +0 -6
  198. package/src/page/doc/pg-doc.tsx +0 -35
  199. package/src/page/home/pg-home.tsx +0 -40
  200. package/src/store/navigation/create-navigation-stores.test.ts +0 -74
  201. package/src/store/navigation/create-navigation-stores.ts +0 -59
  202. package/src/store/navigation/navigation-state.ts +0 -36
  203. package/src/store/navigation/navigation-storage.ts +0 -9
  204. package/src/store/navigation/to-navigation-scroll-state.ts +0 -42
  205. package/src/style/base.css +0 -28
  206. package/src/style/token.css +0 -186
  207. package/src/type/doc-content.ts +0 -15
  208. package/src/type/doc-data.ts +0 -38
  209. package/src/type/doc-file-data.ts +0 -21
  210. package/src/type/doc-heading.ts +0 -17
  211. package/src/type/doc-outline.ts +0 -16
  212. package/src/type/doc-section.ts +0 -9
  213. package/src/type/doc.ts +0 -20
  214. package/src/type/group-path.ts +0 -7
  215. package/src/type/site-assets.ts +0 -25
  216. package/src/type/site-config.ts +0 -73
  217. package/src/type/vfile-data.d.ts +0 -10
  218. package/src/util/async/to-change-queue.test.ts +0 -58
  219. package/src/util/async/to-change-queue.ts +0 -43
  220. package/src/util/dom/find-hash-target.ts +0 -18
  221. package/src/util/dom/reveal-hash-target.ts +0 -15
  222. package/src/util/error/to-error-message.ts +0 -10
  223. package/src/util/file/to-asset-path.ts +0 -26
  224. package/src/util/font/to-font-css.test.ts +0 -41
  225. package/src/util/font/to-font-css.ts +0 -28
  226. package/src/util/mermaid/render-flow.js +0 -321
@@ -0,0 +1,2228 @@
1
+ import { m as e } from "./chunk-DVNvSFoz.js";
2
+ import { n as t, t as n } from "./chunk-BYzrzvCI.js";
3
+ import { C as r, H as i, U as a, _ as o, a as s, b as c, q as l, v as u, y as d } from "./chunk-MFVRUoO0.js";
4
+ import { _ as f } from "./chunk-K7Myuj2-.js";
5
+ import "./chunk-Bok8z-Yo.js";
6
+ import "./chunk-KuPYb48V.js";
7
+ import "./chunk-_a9EZE1v.js";
8
+ import { a as p, i as m, o as h, r as g } from "./chunk-DBh1mIbK.js";
9
+ import "./chunk-DORnIAsy.js";
10
+ import "./chunk-CLgRAtOz.js";
11
+ import "./chunk-DU69_VcF.js";
12
+ import "./chunk-DpuxlyL_.js";
13
+ import { r as _, t as v } from "./chunk-BB8uZHwY.js";
14
+ import { t as y } from "./chunk-CCM2AH-C.js";
15
+ import { t as b } from "./chunk-BL404pH5.js";
16
+ //#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-EQYSW5RA.mjs
17
+ var x = (function() {
18
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
19
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
20
+ return n;
21
+ }, "o"), n = [1, 3], r = [1, 4], i = [1, 5], a = [1, 6], o = [
22
+ 5,
23
+ 6,
24
+ 8,
25
+ 9,
26
+ 11,
27
+ 13,
28
+ 21,
29
+ 22,
30
+ 23,
31
+ 24,
32
+ 41,
33
+ 42,
34
+ 43,
35
+ 44,
36
+ 45,
37
+ 46,
38
+ 54,
39
+ 72,
40
+ 74,
41
+ 77,
42
+ 89,
43
+ 90
44
+ ], s = [1, 22], c = [2, 7], l = [1, 26], u = [1, 27], d = [1, 28], f = [1, 29], p = [1, 33], m = [1, 34], h = [1, 35], g = [1, 36], _ = [1, 37], v = [1, 38], y = [1, 24], b = [1, 31], x = [1, 32], S = [1, 30], C = [1, 39], w = [1, 40], T = [
45
+ 5,
46
+ 8,
47
+ 9,
48
+ 11,
49
+ 13,
50
+ 21,
51
+ 22,
52
+ 23,
53
+ 24,
54
+ 41,
55
+ 42,
56
+ 43,
57
+ 44,
58
+ 45,
59
+ 46,
60
+ 54,
61
+ 72,
62
+ 74,
63
+ 77,
64
+ 89,
65
+ 90
66
+ ], E = [1, 61], D = [89, 90], O = [
67
+ 5,
68
+ 8,
69
+ 9,
70
+ 11,
71
+ 13,
72
+ 21,
73
+ 22,
74
+ 23,
75
+ 24,
76
+ 27,
77
+ 29,
78
+ 41,
79
+ 42,
80
+ 43,
81
+ 44,
82
+ 45,
83
+ 46,
84
+ 54,
85
+ 61,
86
+ 63,
87
+ 72,
88
+ 74,
89
+ 75,
90
+ 76,
91
+ 77,
92
+ 80,
93
+ 81,
94
+ 82,
95
+ 83,
96
+ 84,
97
+ 85,
98
+ 86,
99
+ 87,
100
+ 88,
101
+ 89,
102
+ 90
103
+ ], k = [27, 29], ee = [1, 70], A = [1, 71], te = [1, 72], ne = [1, 73], re = [1, 74], ie = [1, 75], ae = [1, 76], j = [1, 83], M = [1, 80], N = [1, 84], P = [1, 85], F = [1, 86], I = [1, 87], L = [1, 88], R = [1, 89], z = [1, 90], B = [1, 91], V = [1, 92], oe = [
104
+ 5,
105
+ 8,
106
+ 9,
107
+ 11,
108
+ 13,
109
+ 21,
110
+ 22,
111
+ 23,
112
+ 24,
113
+ 27,
114
+ 41,
115
+ 42,
116
+ 43,
117
+ 44,
118
+ 45,
119
+ 46,
120
+ 54,
121
+ 72,
122
+ 74,
123
+ 75,
124
+ 76,
125
+ 77,
126
+ 80,
127
+ 81,
128
+ 82,
129
+ 83,
130
+ 84,
131
+ 85,
132
+ 86,
133
+ 87,
134
+ 88,
135
+ 89,
136
+ 90
137
+ ], H = [63, 64], se = [1, 101], ce = [
138
+ 5,
139
+ 8,
140
+ 9,
141
+ 11,
142
+ 13,
143
+ 21,
144
+ 22,
145
+ 23,
146
+ 24,
147
+ 41,
148
+ 42,
149
+ 43,
150
+ 44,
151
+ 45,
152
+ 46,
153
+ 54,
154
+ 72,
155
+ 74,
156
+ 76,
157
+ 77,
158
+ 89,
159
+ 90
160
+ ], U = [
161
+ 5,
162
+ 8,
163
+ 9,
164
+ 11,
165
+ 13,
166
+ 21,
167
+ 22,
168
+ 23,
169
+ 24,
170
+ 41,
171
+ 42,
172
+ 43,
173
+ 44,
174
+ 45,
175
+ 46,
176
+ 54,
177
+ 72,
178
+ 74,
179
+ 75,
180
+ 76,
181
+ 77,
182
+ 80,
183
+ 81,
184
+ 82,
185
+ 83,
186
+ 84,
187
+ 85,
188
+ 86,
189
+ 87,
190
+ 88,
191
+ 89,
192
+ 90
193
+ ], W = [1, 110], G = [1, 106], K = [1, 107], q = [1, 108], J = [1, 109], Y = [1, 111], X = [1, 116], Z = [1, 117], Q = [1, 114], $ = [1, 115], le = {
194
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
195
+ yy: {},
196
+ symbols_: {
197
+ error: 2,
198
+ start: 3,
199
+ directive: 4,
200
+ NEWLINE: 5,
201
+ RD: 6,
202
+ diagram: 7,
203
+ EOF: 8,
204
+ acc_title: 9,
205
+ acc_title_value: 10,
206
+ acc_descr: 11,
207
+ acc_descr_value: 12,
208
+ acc_descr_multiline_value: 13,
209
+ requirementDef: 14,
210
+ elementDef: 15,
211
+ relationshipDef: 16,
212
+ direction: 17,
213
+ styleStatement: 18,
214
+ classDefStatement: 19,
215
+ classStatement: 20,
216
+ direction_tb: 21,
217
+ direction_bt: 22,
218
+ direction_rl: 23,
219
+ direction_lr: 24,
220
+ requirementType: 25,
221
+ requirementName: 26,
222
+ STRUCT_START: 27,
223
+ requirementBody: 28,
224
+ STYLE_SEPARATOR: 29,
225
+ idList: 30,
226
+ ID: 31,
227
+ COLONSEP: 32,
228
+ id: 33,
229
+ TEXT: 34,
230
+ text: 35,
231
+ RISK: 36,
232
+ riskLevel: 37,
233
+ VERIFYMTHD: 38,
234
+ verifyType: 39,
235
+ STRUCT_STOP: 40,
236
+ REQUIREMENT: 41,
237
+ FUNCTIONAL_REQUIREMENT: 42,
238
+ INTERFACE_REQUIREMENT: 43,
239
+ PERFORMANCE_REQUIREMENT: 44,
240
+ PHYSICAL_REQUIREMENT: 45,
241
+ DESIGN_CONSTRAINT: 46,
242
+ LOW_RISK: 47,
243
+ MED_RISK: 48,
244
+ HIGH_RISK: 49,
245
+ VERIFY_ANALYSIS: 50,
246
+ VERIFY_DEMONSTRATION: 51,
247
+ VERIFY_INSPECTION: 52,
248
+ VERIFY_TEST: 53,
249
+ ELEMENT: 54,
250
+ elementName: 55,
251
+ elementBody: 56,
252
+ TYPE: 57,
253
+ type: 58,
254
+ DOCREF: 59,
255
+ ref: 60,
256
+ END_ARROW_L: 61,
257
+ relationship: 62,
258
+ LINE: 63,
259
+ END_ARROW_R: 64,
260
+ CONTAINS: 65,
261
+ COPIES: 66,
262
+ DERIVES: 67,
263
+ SATISFIES: 68,
264
+ VERIFIES: 69,
265
+ REFINES: 70,
266
+ TRACES: 71,
267
+ CLASSDEF: 72,
268
+ stylesOpt: 73,
269
+ CLASS: 74,
270
+ ALPHA: 75,
271
+ COMMA: 76,
272
+ STYLE: 77,
273
+ style: 78,
274
+ styleComponent: 79,
275
+ NUM: 80,
276
+ COLON: 81,
277
+ UNIT: 82,
278
+ SPACE: 83,
279
+ BRKT: 84,
280
+ PCT: 85,
281
+ MINUS: 86,
282
+ LABEL: 87,
283
+ SEMICOLON: 88,
284
+ unqString: 89,
285
+ qString: 90,
286
+ $accept: 0,
287
+ $end: 1
288
+ },
289
+ terminals_: {
290
+ 2: "error",
291
+ 5: "NEWLINE",
292
+ 6: "RD",
293
+ 8: "EOF",
294
+ 9: "acc_title",
295
+ 10: "acc_title_value",
296
+ 11: "acc_descr",
297
+ 12: "acc_descr_value",
298
+ 13: "acc_descr_multiline_value",
299
+ 21: "direction_tb",
300
+ 22: "direction_bt",
301
+ 23: "direction_rl",
302
+ 24: "direction_lr",
303
+ 27: "STRUCT_START",
304
+ 29: "STYLE_SEPARATOR",
305
+ 31: "ID",
306
+ 32: "COLONSEP",
307
+ 34: "TEXT",
308
+ 36: "RISK",
309
+ 38: "VERIFYMTHD",
310
+ 40: "STRUCT_STOP",
311
+ 41: "REQUIREMENT",
312
+ 42: "FUNCTIONAL_REQUIREMENT",
313
+ 43: "INTERFACE_REQUIREMENT",
314
+ 44: "PERFORMANCE_REQUIREMENT",
315
+ 45: "PHYSICAL_REQUIREMENT",
316
+ 46: "DESIGN_CONSTRAINT",
317
+ 47: "LOW_RISK",
318
+ 48: "MED_RISK",
319
+ 49: "HIGH_RISK",
320
+ 50: "VERIFY_ANALYSIS",
321
+ 51: "VERIFY_DEMONSTRATION",
322
+ 52: "VERIFY_INSPECTION",
323
+ 53: "VERIFY_TEST",
324
+ 54: "ELEMENT",
325
+ 57: "TYPE",
326
+ 59: "DOCREF",
327
+ 61: "END_ARROW_L",
328
+ 63: "LINE",
329
+ 64: "END_ARROW_R",
330
+ 65: "CONTAINS",
331
+ 66: "COPIES",
332
+ 67: "DERIVES",
333
+ 68: "SATISFIES",
334
+ 69: "VERIFIES",
335
+ 70: "REFINES",
336
+ 71: "TRACES",
337
+ 72: "CLASSDEF",
338
+ 74: "CLASS",
339
+ 75: "ALPHA",
340
+ 76: "COMMA",
341
+ 77: "STYLE",
342
+ 80: "NUM",
343
+ 81: "COLON",
344
+ 82: "UNIT",
345
+ 83: "SPACE",
346
+ 84: "BRKT",
347
+ 85: "PCT",
348
+ 86: "MINUS",
349
+ 87: "LABEL",
350
+ 88: "SEMICOLON",
351
+ 89: "unqString",
352
+ 90: "qString"
353
+ },
354
+ productions_: [
355
+ 0,
356
+ [3, 3],
357
+ [3, 2],
358
+ [3, 4],
359
+ [4, 2],
360
+ [4, 2],
361
+ [4, 1],
362
+ [7, 0],
363
+ [7, 2],
364
+ [7, 2],
365
+ [7, 2],
366
+ [7, 2],
367
+ [7, 2],
368
+ [7, 2],
369
+ [7, 2],
370
+ [7, 2],
371
+ [7, 2],
372
+ [17, 1],
373
+ [17, 1],
374
+ [17, 1],
375
+ [17, 1],
376
+ [14, 5],
377
+ [14, 7],
378
+ [28, 5],
379
+ [28, 5],
380
+ [28, 5],
381
+ [28, 5],
382
+ [28, 2],
383
+ [28, 1],
384
+ [25, 1],
385
+ [25, 1],
386
+ [25, 1],
387
+ [25, 1],
388
+ [25, 1],
389
+ [25, 1],
390
+ [37, 1],
391
+ [37, 1],
392
+ [37, 1],
393
+ [39, 1],
394
+ [39, 1],
395
+ [39, 1],
396
+ [39, 1],
397
+ [15, 5],
398
+ [15, 7],
399
+ [56, 5],
400
+ [56, 5],
401
+ [56, 2],
402
+ [56, 1],
403
+ [16, 5],
404
+ [16, 5],
405
+ [62, 1],
406
+ [62, 1],
407
+ [62, 1],
408
+ [62, 1],
409
+ [62, 1],
410
+ [62, 1],
411
+ [62, 1],
412
+ [19, 3],
413
+ [20, 3],
414
+ [20, 3],
415
+ [30, 1],
416
+ [30, 3],
417
+ [30, 1],
418
+ [30, 3],
419
+ [18, 3],
420
+ [73, 1],
421
+ [73, 3],
422
+ [78, 1],
423
+ [78, 2],
424
+ [79, 1],
425
+ [79, 1],
426
+ [79, 1],
427
+ [79, 1],
428
+ [79, 1],
429
+ [79, 1],
430
+ [79, 1],
431
+ [79, 1],
432
+ [79, 1],
433
+ [79, 1],
434
+ [26, 1],
435
+ [26, 1],
436
+ [33, 1],
437
+ [33, 1],
438
+ [35, 1],
439
+ [35, 1],
440
+ [55, 1],
441
+ [55, 1],
442
+ [58, 1],
443
+ [58, 1],
444
+ [60, 1],
445
+ [60, 1]
446
+ ],
447
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
448
+ var s = a.length - 1;
449
+ switch (i) {
450
+ case 4:
451
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
452
+ break;
453
+ case 5:
454
+ case 6:
455
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
456
+ break;
457
+ case 7:
458
+ this.$ = [];
459
+ break;
460
+ case 17:
461
+ r.setDirection("TB");
462
+ break;
463
+ case 18:
464
+ r.setDirection("BT");
465
+ break;
466
+ case 19:
467
+ r.setDirection("RL");
468
+ break;
469
+ case 20:
470
+ r.setDirection("LR");
471
+ break;
472
+ case 21:
473
+ r.addRequirement(a[s - 3], a[s - 4]);
474
+ break;
475
+ case 22:
476
+ r.addRequirement(a[s - 5], a[s - 6]), r.setClass([a[s - 5]], a[s - 3]);
477
+ break;
478
+ case 23:
479
+ r.setNewReqId(a[s - 2]);
480
+ break;
481
+ case 24:
482
+ r.setNewReqText(a[s - 2]);
483
+ break;
484
+ case 25:
485
+ r.setNewReqRisk(a[s - 2]);
486
+ break;
487
+ case 26:
488
+ r.setNewReqVerifyMethod(a[s - 2]);
489
+ break;
490
+ case 29:
491
+ this.$ = r.RequirementType.REQUIREMENT;
492
+ break;
493
+ case 30:
494
+ this.$ = r.RequirementType.FUNCTIONAL_REQUIREMENT;
495
+ break;
496
+ case 31:
497
+ this.$ = r.RequirementType.INTERFACE_REQUIREMENT;
498
+ break;
499
+ case 32:
500
+ this.$ = r.RequirementType.PERFORMANCE_REQUIREMENT;
501
+ break;
502
+ case 33:
503
+ this.$ = r.RequirementType.PHYSICAL_REQUIREMENT;
504
+ break;
505
+ case 34:
506
+ this.$ = r.RequirementType.DESIGN_CONSTRAINT;
507
+ break;
508
+ case 35:
509
+ this.$ = r.RiskLevel.LOW_RISK;
510
+ break;
511
+ case 36:
512
+ this.$ = r.RiskLevel.MED_RISK;
513
+ break;
514
+ case 37:
515
+ this.$ = r.RiskLevel.HIGH_RISK;
516
+ break;
517
+ case 38:
518
+ this.$ = r.VerifyType.VERIFY_ANALYSIS;
519
+ break;
520
+ case 39:
521
+ this.$ = r.VerifyType.VERIFY_DEMONSTRATION;
522
+ break;
523
+ case 40:
524
+ this.$ = r.VerifyType.VERIFY_INSPECTION;
525
+ break;
526
+ case 41:
527
+ this.$ = r.VerifyType.VERIFY_TEST;
528
+ break;
529
+ case 42:
530
+ r.addElement(a[s - 3]);
531
+ break;
532
+ case 43:
533
+ r.addElement(a[s - 5]), r.setClass([a[s - 5]], a[s - 3]);
534
+ break;
535
+ case 44:
536
+ r.setNewElementType(a[s - 2]);
537
+ break;
538
+ case 45:
539
+ r.setNewElementDocRef(a[s - 2]);
540
+ break;
541
+ case 48:
542
+ r.addRelationship(a[s - 2], a[s], a[s - 4]);
543
+ break;
544
+ case 49:
545
+ r.addRelationship(a[s - 2], a[s - 4], a[s]);
546
+ break;
547
+ case 50:
548
+ this.$ = r.Relationships.CONTAINS;
549
+ break;
550
+ case 51:
551
+ this.$ = r.Relationships.COPIES;
552
+ break;
553
+ case 52:
554
+ this.$ = r.Relationships.DERIVES;
555
+ break;
556
+ case 53:
557
+ this.$ = r.Relationships.SATISFIES;
558
+ break;
559
+ case 54:
560
+ this.$ = r.Relationships.VERIFIES;
561
+ break;
562
+ case 55:
563
+ this.$ = r.Relationships.REFINES;
564
+ break;
565
+ case 56:
566
+ this.$ = r.Relationships.TRACES;
567
+ break;
568
+ case 57:
569
+ this.$ = a[s - 2], r.defineClass(a[s - 1], a[s]);
570
+ break;
571
+ case 58:
572
+ r.setClass(a[s - 1], a[s]);
573
+ break;
574
+ case 59:
575
+ r.setClass([a[s - 2]], a[s]);
576
+ break;
577
+ case 60:
578
+ case 62:
579
+ this.$ = [a[s]];
580
+ break;
581
+ case 61:
582
+ case 63:
583
+ this.$ = a[s - 2].concat([a[s]]);
584
+ break;
585
+ case 64:
586
+ this.$ = a[s - 2], r.setCssStyle(a[s - 1], a[s]);
587
+ break;
588
+ case 65:
589
+ this.$ = [a[s]];
590
+ break;
591
+ case 66:
592
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
593
+ break;
594
+ case 68: this.$ = a[s - 1] + a[s];
595
+ }
596
+ }, "anonymous"),
597
+ table: [
598
+ {
599
+ 3: 1,
600
+ 4: 2,
601
+ 6: n,
602
+ 9: r,
603
+ 11: i,
604
+ 13: a
605
+ },
606
+ { 1: [3] },
607
+ {
608
+ 3: 8,
609
+ 4: 2,
610
+ 5: [1, 7],
611
+ 6: n,
612
+ 9: r,
613
+ 11: i,
614
+ 13: a
615
+ },
616
+ { 5: [1, 9] },
617
+ { 10: [1, 10] },
618
+ { 12: [1, 11] },
619
+ e(o, [2, 6]),
620
+ {
621
+ 3: 12,
622
+ 4: 2,
623
+ 6: n,
624
+ 9: r,
625
+ 11: i,
626
+ 13: a
627
+ },
628
+ { 1: [2, 2] },
629
+ {
630
+ 4: 17,
631
+ 5: s,
632
+ 7: 13,
633
+ 8: c,
634
+ 9: r,
635
+ 11: i,
636
+ 13: a,
637
+ 14: 14,
638
+ 15: 15,
639
+ 16: 16,
640
+ 17: 18,
641
+ 18: 19,
642
+ 19: 20,
643
+ 20: 21,
644
+ 21: l,
645
+ 22: u,
646
+ 23: d,
647
+ 24: f,
648
+ 25: 23,
649
+ 33: 25,
650
+ 41: p,
651
+ 42: m,
652
+ 43: h,
653
+ 44: g,
654
+ 45: _,
655
+ 46: v,
656
+ 54: y,
657
+ 72: b,
658
+ 74: x,
659
+ 77: S,
660
+ 89: C,
661
+ 90: w
662
+ },
663
+ e(o, [2, 4]),
664
+ e(o, [2, 5]),
665
+ { 1: [2, 1] },
666
+ { 8: [1, 41] },
667
+ {
668
+ 4: 17,
669
+ 5: s,
670
+ 7: 42,
671
+ 8: c,
672
+ 9: r,
673
+ 11: i,
674
+ 13: a,
675
+ 14: 14,
676
+ 15: 15,
677
+ 16: 16,
678
+ 17: 18,
679
+ 18: 19,
680
+ 19: 20,
681
+ 20: 21,
682
+ 21: l,
683
+ 22: u,
684
+ 23: d,
685
+ 24: f,
686
+ 25: 23,
687
+ 33: 25,
688
+ 41: p,
689
+ 42: m,
690
+ 43: h,
691
+ 44: g,
692
+ 45: _,
693
+ 46: v,
694
+ 54: y,
695
+ 72: b,
696
+ 74: x,
697
+ 77: S,
698
+ 89: C,
699
+ 90: w
700
+ },
701
+ {
702
+ 4: 17,
703
+ 5: s,
704
+ 7: 43,
705
+ 8: c,
706
+ 9: r,
707
+ 11: i,
708
+ 13: a,
709
+ 14: 14,
710
+ 15: 15,
711
+ 16: 16,
712
+ 17: 18,
713
+ 18: 19,
714
+ 19: 20,
715
+ 20: 21,
716
+ 21: l,
717
+ 22: u,
718
+ 23: d,
719
+ 24: f,
720
+ 25: 23,
721
+ 33: 25,
722
+ 41: p,
723
+ 42: m,
724
+ 43: h,
725
+ 44: g,
726
+ 45: _,
727
+ 46: v,
728
+ 54: y,
729
+ 72: b,
730
+ 74: x,
731
+ 77: S,
732
+ 89: C,
733
+ 90: w
734
+ },
735
+ {
736
+ 4: 17,
737
+ 5: s,
738
+ 7: 44,
739
+ 8: c,
740
+ 9: r,
741
+ 11: i,
742
+ 13: a,
743
+ 14: 14,
744
+ 15: 15,
745
+ 16: 16,
746
+ 17: 18,
747
+ 18: 19,
748
+ 19: 20,
749
+ 20: 21,
750
+ 21: l,
751
+ 22: u,
752
+ 23: d,
753
+ 24: f,
754
+ 25: 23,
755
+ 33: 25,
756
+ 41: p,
757
+ 42: m,
758
+ 43: h,
759
+ 44: g,
760
+ 45: _,
761
+ 46: v,
762
+ 54: y,
763
+ 72: b,
764
+ 74: x,
765
+ 77: S,
766
+ 89: C,
767
+ 90: w
768
+ },
769
+ {
770
+ 4: 17,
771
+ 5: s,
772
+ 7: 45,
773
+ 8: c,
774
+ 9: r,
775
+ 11: i,
776
+ 13: a,
777
+ 14: 14,
778
+ 15: 15,
779
+ 16: 16,
780
+ 17: 18,
781
+ 18: 19,
782
+ 19: 20,
783
+ 20: 21,
784
+ 21: l,
785
+ 22: u,
786
+ 23: d,
787
+ 24: f,
788
+ 25: 23,
789
+ 33: 25,
790
+ 41: p,
791
+ 42: m,
792
+ 43: h,
793
+ 44: g,
794
+ 45: _,
795
+ 46: v,
796
+ 54: y,
797
+ 72: b,
798
+ 74: x,
799
+ 77: S,
800
+ 89: C,
801
+ 90: w
802
+ },
803
+ {
804
+ 4: 17,
805
+ 5: s,
806
+ 7: 46,
807
+ 8: c,
808
+ 9: r,
809
+ 11: i,
810
+ 13: a,
811
+ 14: 14,
812
+ 15: 15,
813
+ 16: 16,
814
+ 17: 18,
815
+ 18: 19,
816
+ 19: 20,
817
+ 20: 21,
818
+ 21: l,
819
+ 22: u,
820
+ 23: d,
821
+ 24: f,
822
+ 25: 23,
823
+ 33: 25,
824
+ 41: p,
825
+ 42: m,
826
+ 43: h,
827
+ 44: g,
828
+ 45: _,
829
+ 46: v,
830
+ 54: y,
831
+ 72: b,
832
+ 74: x,
833
+ 77: S,
834
+ 89: C,
835
+ 90: w
836
+ },
837
+ {
838
+ 4: 17,
839
+ 5: s,
840
+ 7: 47,
841
+ 8: c,
842
+ 9: r,
843
+ 11: i,
844
+ 13: a,
845
+ 14: 14,
846
+ 15: 15,
847
+ 16: 16,
848
+ 17: 18,
849
+ 18: 19,
850
+ 19: 20,
851
+ 20: 21,
852
+ 21: l,
853
+ 22: u,
854
+ 23: d,
855
+ 24: f,
856
+ 25: 23,
857
+ 33: 25,
858
+ 41: p,
859
+ 42: m,
860
+ 43: h,
861
+ 44: g,
862
+ 45: _,
863
+ 46: v,
864
+ 54: y,
865
+ 72: b,
866
+ 74: x,
867
+ 77: S,
868
+ 89: C,
869
+ 90: w
870
+ },
871
+ {
872
+ 4: 17,
873
+ 5: s,
874
+ 7: 48,
875
+ 8: c,
876
+ 9: r,
877
+ 11: i,
878
+ 13: a,
879
+ 14: 14,
880
+ 15: 15,
881
+ 16: 16,
882
+ 17: 18,
883
+ 18: 19,
884
+ 19: 20,
885
+ 20: 21,
886
+ 21: l,
887
+ 22: u,
888
+ 23: d,
889
+ 24: f,
890
+ 25: 23,
891
+ 33: 25,
892
+ 41: p,
893
+ 42: m,
894
+ 43: h,
895
+ 44: g,
896
+ 45: _,
897
+ 46: v,
898
+ 54: y,
899
+ 72: b,
900
+ 74: x,
901
+ 77: S,
902
+ 89: C,
903
+ 90: w
904
+ },
905
+ {
906
+ 4: 17,
907
+ 5: s,
908
+ 7: 49,
909
+ 8: c,
910
+ 9: r,
911
+ 11: i,
912
+ 13: a,
913
+ 14: 14,
914
+ 15: 15,
915
+ 16: 16,
916
+ 17: 18,
917
+ 18: 19,
918
+ 19: 20,
919
+ 20: 21,
920
+ 21: l,
921
+ 22: u,
922
+ 23: d,
923
+ 24: f,
924
+ 25: 23,
925
+ 33: 25,
926
+ 41: p,
927
+ 42: m,
928
+ 43: h,
929
+ 44: g,
930
+ 45: _,
931
+ 46: v,
932
+ 54: y,
933
+ 72: b,
934
+ 74: x,
935
+ 77: S,
936
+ 89: C,
937
+ 90: w
938
+ },
939
+ {
940
+ 4: 17,
941
+ 5: s,
942
+ 7: 50,
943
+ 8: c,
944
+ 9: r,
945
+ 11: i,
946
+ 13: a,
947
+ 14: 14,
948
+ 15: 15,
949
+ 16: 16,
950
+ 17: 18,
951
+ 18: 19,
952
+ 19: 20,
953
+ 20: 21,
954
+ 21: l,
955
+ 22: u,
956
+ 23: d,
957
+ 24: f,
958
+ 25: 23,
959
+ 33: 25,
960
+ 41: p,
961
+ 42: m,
962
+ 43: h,
963
+ 44: g,
964
+ 45: _,
965
+ 46: v,
966
+ 54: y,
967
+ 72: b,
968
+ 74: x,
969
+ 77: S,
970
+ 89: C,
971
+ 90: w
972
+ },
973
+ {
974
+ 26: 51,
975
+ 89: [1, 52],
976
+ 90: [1, 53]
977
+ },
978
+ {
979
+ 55: 54,
980
+ 89: [1, 55],
981
+ 90: [1, 56]
982
+ },
983
+ {
984
+ 29: [1, 59],
985
+ 61: [1, 57],
986
+ 63: [1, 58]
987
+ },
988
+ e(T, [2, 17]),
989
+ e(T, [2, 18]),
990
+ e(T, [2, 19]),
991
+ e(T, [2, 20]),
992
+ {
993
+ 30: 60,
994
+ 33: 62,
995
+ 75: E,
996
+ 89: C,
997
+ 90: w
998
+ },
999
+ {
1000
+ 30: 63,
1001
+ 33: 62,
1002
+ 75: E,
1003
+ 89: C,
1004
+ 90: w
1005
+ },
1006
+ {
1007
+ 30: 64,
1008
+ 33: 62,
1009
+ 75: E,
1010
+ 89: C,
1011
+ 90: w
1012
+ },
1013
+ e(D, [2, 29]),
1014
+ e(D, [2, 30]),
1015
+ e(D, [2, 31]),
1016
+ e(D, [2, 32]),
1017
+ e(D, [2, 33]),
1018
+ e(D, [2, 34]),
1019
+ e(O, [2, 81]),
1020
+ e(O, [2, 82]),
1021
+ { 1: [2, 3] },
1022
+ { 8: [2, 8] },
1023
+ { 8: [2, 9] },
1024
+ { 8: [2, 10] },
1025
+ { 8: [2, 11] },
1026
+ { 8: [2, 12] },
1027
+ { 8: [2, 13] },
1028
+ { 8: [2, 14] },
1029
+ { 8: [2, 15] },
1030
+ { 8: [2, 16] },
1031
+ {
1032
+ 27: [1, 65],
1033
+ 29: [1, 66]
1034
+ },
1035
+ e(k, [2, 79]),
1036
+ e(k, [2, 80]),
1037
+ {
1038
+ 27: [1, 67],
1039
+ 29: [1, 68]
1040
+ },
1041
+ e(k, [2, 85]),
1042
+ e(k, [2, 86]),
1043
+ {
1044
+ 62: 69,
1045
+ 65: ee,
1046
+ 66: A,
1047
+ 67: te,
1048
+ 68: ne,
1049
+ 69: re,
1050
+ 70: ie,
1051
+ 71: ae
1052
+ },
1053
+ {
1054
+ 62: 77,
1055
+ 65: ee,
1056
+ 66: A,
1057
+ 67: te,
1058
+ 68: ne,
1059
+ 69: re,
1060
+ 70: ie,
1061
+ 71: ae
1062
+ },
1063
+ {
1064
+ 30: 78,
1065
+ 33: 62,
1066
+ 75: E,
1067
+ 89: C,
1068
+ 90: w
1069
+ },
1070
+ {
1071
+ 73: 79,
1072
+ 75: j,
1073
+ 76: M,
1074
+ 78: 81,
1075
+ 79: 82,
1076
+ 80: N,
1077
+ 81: P,
1078
+ 82: F,
1079
+ 83: I,
1080
+ 84: L,
1081
+ 85: R,
1082
+ 86: z,
1083
+ 87: B,
1084
+ 88: V
1085
+ },
1086
+ e(oe, [2, 60]),
1087
+ e(oe, [2, 62]),
1088
+ {
1089
+ 73: 93,
1090
+ 75: j,
1091
+ 76: M,
1092
+ 78: 81,
1093
+ 79: 82,
1094
+ 80: N,
1095
+ 81: P,
1096
+ 82: F,
1097
+ 83: I,
1098
+ 84: L,
1099
+ 85: R,
1100
+ 86: z,
1101
+ 87: B,
1102
+ 88: V
1103
+ },
1104
+ {
1105
+ 30: 94,
1106
+ 33: 62,
1107
+ 75: E,
1108
+ 76: M,
1109
+ 89: C,
1110
+ 90: w
1111
+ },
1112
+ { 5: [1, 95] },
1113
+ {
1114
+ 30: 96,
1115
+ 33: 62,
1116
+ 75: E,
1117
+ 89: C,
1118
+ 90: w
1119
+ },
1120
+ { 5: [1, 97] },
1121
+ {
1122
+ 30: 98,
1123
+ 33: 62,
1124
+ 75: E,
1125
+ 89: C,
1126
+ 90: w
1127
+ },
1128
+ { 63: [1, 99] },
1129
+ e(H, [2, 50]),
1130
+ e(H, [2, 51]),
1131
+ e(H, [2, 52]),
1132
+ e(H, [2, 53]),
1133
+ e(H, [2, 54]),
1134
+ e(H, [2, 55]),
1135
+ e(H, [2, 56]),
1136
+ { 64: [1, 100] },
1137
+ e(T, [2, 59], { 76: M }),
1138
+ e(T, [2, 64], { 76: se }),
1139
+ {
1140
+ 33: 103,
1141
+ 75: [1, 102],
1142
+ 89: C,
1143
+ 90: w
1144
+ },
1145
+ e(ce, [2, 65], {
1146
+ 79: 104,
1147
+ 75: j,
1148
+ 80: N,
1149
+ 81: P,
1150
+ 82: F,
1151
+ 83: I,
1152
+ 84: L,
1153
+ 85: R,
1154
+ 86: z,
1155
+ 87: B,
1156
+ 88: V
1157
+ }),
1158
+ e(U, [2, 67]),
1159
+ e(U, [2, 69]),
1160
+ e(U, [2, 70]),
1161
+ e(U, [2, 71]),
1162
+ e(U, [2, 72]),
1163
+ e(U, [2, 73]),
1164
+ e(U, [2, 74]),
1165
+ e(U, [2, 75]),
1166
+ e(U, [2, 76]),
1167
+ e(U, [2, 77]),
1168
+ e(U, [2, 78]),
1169
+ e(T, [2, 57], { 76: se }),
1170
+ e(T, [2, 58], { 76: M }),
1171
+ {
1172
+ 5: W,
1173
+ 28: 105,
1174
+ 31: G,
1175
+ 34: K,
1176
+ 36: q,
1177
+ 38: J,
1178
+ 40: Y
1179
+ },
1180
+ {
1181
+ 27: [1, 112],
1182
+ 76: M
1183
+ },
1184
+ {
1185
+ 5: X,
1186
+ 40: Z,
1187
+ 56: 113,
1188
+ 57: Q,
1189
+ 59: $
1190
+ },
1191
+ {
1192
+ 27: [1, 118],
1193
+ 76: M
1194
+ },
1195
+ {
1196
+ 33: 119,
1197
+ 89: C,
1198
+ 90: w
1199
+ },
1200
+ {
1201
+ 33: 120,
1202
+ 89: C,
1203
+ 90: w
1204
+ },
1205
+ {
1206
+ 75: j,
1207
+ 78: 121,
1208
+ 79: 82,
1209
+ 80: N,
1210
+ 81: P,
1211
+ 82: F,
1212
+ 83: I,
1213
+ 84: L,
1214
+ 85: R,
1215
+ 86: z,
1216
+ 87: B,
1217
+ 88: V
1218
+ },
1219
+ e(oe, [2, 61]),
1220
+ e(oe, [2, 63]),
1221
+ e(U, [2, 68]),
1222
+ e(T, [2, 21]),
1223
+ { 32: [1, 122] },
1224
+ { 32: [1, 123] },
1225
+ { 32: [1, 124] },
1226
+ { 32: [1, 125] },
1227
+ {
1228
+ 5: W,
1229
+ 28: 126,
1230
+ 31: G,
1231
+ 34: K,
1232
+ 36: q,
1233
+ 38: J,
1234
+ 40: Y
1235
+ },
1236
+ e(T, [2, 28]),
1237
+ { 5: [1, 127] },
1238
+ e(T, [2, 42]),
1239
+ { 32: [1, 128] },
1240
+ { 32: [1, 129] },
1241
+ {
1242
+ 5: X,
1243
+ 40: Z,
1244
+ 56: 130,
1245
+ 57: Q,
1246
+ 59: $
1247
+ },
1248
+ e(T, [2, 47]),
1249
+ { 5: [1, 131] },
1250
+ e(T, [2, 48]),
1251
+ e(T, [2, 49]),
1252
+ e(ce, [2, 66], {
1253
+ 79: 104,
1254
+ 75: j,
1255
+ 80: N,
1256
+ 81: P,
1257
+ 82: F,
1258
+ 83: I,
1259
+ 84: L,
1260
+ 85: R,
1261
+ 86: z,
1262
+ 87: B,
1263
+ 88: V
1264
+ }),
1265
+ {
1266
+ 33: 132,
1267
+ 89: C,
1268
+ 90: w
1269
+ },
1270
+ {
1271
+ 35: 133,
1272
+ 89: [1, 134],
1273
+ 90: [1, 135]
1274
+ },
1275
+ {
1276
+ 37: 136,
1277
+ 47: [1, 137],
1278
+ 48: [1, 138],
1279
+ 49: [1, 139]
1280
+ },
1281
+ {
1282
+ 39: 140,
1283
+ 50: [1, 141],
1284
+ 51: [1, 142],
1285
+ 52: [1, 143],
1286
+ 53: [1, 144]
1287
+ },
1288
+ e(T, [2, 27]),
1289
+ {
1290
+ 5: W,
1291
+ 28: 145,
1292
+ 31: G,
1293
+ 34: K,
1294
+ 36: q,
1295
+ 38: J,
1296
+ 40: Y
1297
+ },
1298
+ {
1299
+ 58: 146,
1300
+ 89: [1, 147],
1301
+ 90: [1, 148]
1302
+ },
1303
+ {
1304
+ 60: 149,
1305
+ 89: [1, 150],
1306
+ 90: [1, 151]
1307
+ },
1308
+ e(T, [2, 46]),
1309
+ {
1310
+ 5: X,
1311
+ 40: Z,
1312
+ 56: 152,
1313
+ 57: Q,
1314
+ 59: $
1315
+ },
1316
+ { 5: [1, 153] },
1317
+ { 5: [1, 154] },
1318
+ { 5: [2, 83] },
1319
+ { 5: [2, 84] },
1320
+ { 5: [1, 155] },
1321
+ { 5: [2, 35] },
1322
+ { 5: [2, 36] },
1323
+ { 5: [2, 37] },
1324
+ { 5: [1, 156] },
1325
+ { 5: [2, 38] },
1326
+ { 5: [2, 39] },
1327
+ { 5: [2, 40] },
1328
+ { 5: [2, 41] },
1329
+ e(T, [2, 22]),
1330
+ { 5: [1, 157] },
1331
+ { 5: [2, 87] },
1332
+ { 5: [2, 88] },
1333
+ { 5: [1, 158] },
1334
+ { 5: [2, 89] },
1335
+ { 5: [2, 90] },
1336
+ e(T, [2, 43]),
1337
+ {
1338
+ 5: W,
1339
+ 28: 159,
1340
+ 31: G,
1341
+ 34: K,
1342
+ 36: q,
1343
+ 38: J,
1344
+ 40: Y
1345
+ },
1346
+ {
1347
+ 5: W,
1348
+ 28: 160,
1349
+ 31: G,
1350
+ 34: K,
1351
+ 36: q,
1352
+ 38: J,
1353
+ 40: Y
1354
+ },
1355
+ {
1356
+ 5: W,
1357
+ 28: 161,
1358
+ 31: G,
1359
+ 34: K,
1360
+ 36: q,
1361
+ 38: J,
1362
+ 40: Y
1363
+ },
1364
+ {
1365
+ 5: W,
1366
+ 28: 162,
1367
+ 31: G,
1368
+ 34: K,
1369
+ 36: q,
1370
+ 38: J,
1371
+ 40: Y
1372
+ },
1373
+ {
1374
+ 5: X,
1375
+ 40: Z,
1376
+ 56: 163,
1377
+ 57: Q,
1378
+ 59: $
1379
+ },
1380
+ {
1381
+ 5: X,
1382
+ 40: Z,
1383
+ 56: 164,
1384
+ 57: Q,
1385
+ 59: $
1386
+ },
1387
+ e(T, [2, 23]),
1388
+ e(T, [2, 24]),
1389
+ e(T, [2, 25]),
1390
+ e(T, [2, 26]),
1391
+ e(T, [2, 44]),
1392
+ e(T, [2, 45])
1393
+ ],
1394
+ defaultActions: {
1395
+ 8: [2, 2],
1396
+ 12: [2, 1],
1397
+ 41: [2, 3],
1398
+ 42: [2, 8],
1399
+ 43: [2, 9],
1400
+ 44: [2, 10],
1401
+ 45: [2, 11],
1402
+ 46: [2, 12],
1403
+ 47: [2, 13],
1404
+ 48: [2, 14],
1405
+ 49: [2, 15],
1406
+ 50: [2, 16],
1407
+ 134: [2, 83],
1408
+ 135: [2, 84],
1409
+ 137: [2, 35],
1410
+ 138: [2, 36],
1411
+ 139: [2, 37],
1412
+ 141: [2, 38],
1413
+ 142: [2, 39],
1414
+ 143: [2, 40],
1415
+ 144: [2, 41],
1416
+ 147: [2, 87],
1417
+ 148: [2, 88],
1418
+ 150: [2, 89],
1419
+ 151: [2, 90]
1420
+ },
1421
+ parseError: /* @__PURE__ */ t(function(e, t) {
1422
+ if (t.recoverable) this.trace(e);
1423
+ else {
1424
+ var n = Error(e);
1425
+ throw n.hash = t, n;
1426
+ }
1427
+ }, "parseError"),
1428
+ parse: /* @__PURE__ */ t(function(e) {
1429
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1430
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1431
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1432
+ var v = h.yylloc;
1433
+ o.push(v);
1434
+ var y = h.options && h.options.ranges;
1435
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1436
+ function b(e) {
1437
+ r.length -= 2 * e, a.length -= e, o.length -= e;
1438
+ }
1439
+ t(b, "popStack");
1440
+ function x() {
1441
+ var e = i.pop() || h.lex() || p;
1442
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1443
+ }
1444
+ t(x, "lex");
1445
+ for (var S, C, w, T, E, D = {}, O, k, ee, A;;) {
1446
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1447
+ var te = "";
1448
+ for (O in A = [], s[w]) this.terminals_[O] && O > f && A.push("'" + this.terminals_[O] + "'");
1449
+ te = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + A.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(te, {
1450
+ text: h.match,
1451
+ token: this.terminals_[S] || S,
1452
+ line: h.yylineno,
1453
+ loc: v,
1454
+ expected: A
1455
+ });
1456
+ }
1457
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1458
+ switch (T[0]) {
1459
+ case 1:
1460
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1461
+ break;
1462
+ case 2:
1463
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1464
+ first_line: o[o.length - (k || 1)].first_line,
1465
+ last_line: o[o.length - 1].last_line,
1466
+ first_column: o[o.length - (k || 1)].first_column,
1467
+ last_column: o[o.length - 1].last_column
1468
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1469
+ c,
1470
+ u,
1471
+ l,
1472
+ g.yy,
1473
+ T[1],
1474
+ a,
1475
+ o
1476
+ ].concat(m)), E !== void 0) return E;
1477
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), ee = s[r[r.length - 2]][r[r.length - 1]], r.push(ee);
1478
+ break;
1479
+ case 3: return !0;
1480
+ }
1481
+ }
1482
+ return !0;
1483
+ }, "parse")
1484
+ };
1485
+ le.lexer = /* @__PURE__ */ (function() {
1486
+ return {
1487
+ EOF: 1,
1488
+ parseError: /* @__PURE__ */ t(function(e, t) {
1489
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1490
+ else throw Error(e);
1491
+ }, "parseError"),
1492
+ setInput: /* @__PURE__ */ t(function(e, t) {
1493
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1494
+ first_line: 1,
1495
+ first_column: 0,
1496
+ last_line: 1,
1497
+ last_column: 0
1498
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1499
+ }, "setInput"),
1500
+ input: /* @__PURE__ */ t(function() {
1501
+ var e = this._input[0];
1502
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
1503
+ }, "input"),
1504
+ unput: /* @__PURE__ */ t(function(e) {
1505
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1506
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1507
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1508
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1509
+ var i = this.yylloc.range;
1510
+ return this.yylloc = {
1511
+ first_line: this.yylloc.first_line,
1512
+ last_line: this.yylineno + 1,
1513
+ first_column: this.yylloc.first_column,
1514
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1515
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1516
+ }, "unput"),
1517
+ more: /* @__PURE__ */ t(function() {
1518
+ return this._more = !0, this;
1519
+ }, "more"),
1520
+ reject: /* @__PURE__ */ t(function() {
1521
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1522
+ 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).\n" + this.showPosition(), {
1523
+ text: "",
1524
+ token: null,
1525
+ line: this.yylineno
1526
+ });
1527
+ return this;
1528
+ }, "reject"),
1529
+ less: /* @__PURE__ */ t(function(e) {
1530
+ this.unput(this.match.slice(e));
1531
+ }, "less"),
1532
+ pastInput: /* @__PURE__ */ t(function() {
1533
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1534
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1535
+ }, "pastInput"),
1536
+ upcomingInput: /* @__PURE__ */ t(function() {
1537
+ var e = this.match;
1538
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1539
+ }, "upcomingInput"),
1540
+ showPosition: /* @__PURE__ */ t(function() {
1541
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1542
+ return e + this.upcomingInput() + "\n" + t + "^";
1543
+ }, "showPosition"),
1544
+ test_match: /* @__PURE__ */ t(function(e, t) {
1545
+ var n, r, i;
1546
+ if (this.options.backtrack_lexer && (i = {
1547
+ yylineno: this.yylineno,
1548
+ yylloc: {
1549
+ first_line: this.yylloc.first_line,
1550
+ last_line: this.last_line,
1551
+ first_column: this.yylloc.first_column,
1552
+ last_column: this.yylloc.last_column
1553
+ },
1554
+ yytext: this.yytext,
1555
+ match: this.match,
1556
+ matches: this.matches,
1557
+ matched: this.matched,
1558
+ yyleng: this.yyleng,
1559
+ offset: this.offset,
1560
+ _more: this._more,
1561
+ _input: this._input,
1562
+ yy: this.yy,
1563
+ conditionStack: this.conditionStack.slice(0),
1564
+ done: this.done
1565
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1566
+ first_line: this.yylloc.last_line,
1567
+ last_line: this.yylineno + 1,
1568
+ first_column: this.yylloc.last_column,
1569
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1570
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1571
+ if (this._backtrack) {
1572
+ for (var a in i) this[a] = i[a];
1573
+ return !1;
1574
+ }
1575
+ return !1;
1576
+ }, "test_match"),
1577
+ next: /* @__PURE__ */ t(function() {
1578
+ if (this.done) return this.EOF;
1579
+ this._input || (this.done = !0);
1580
+ var e, t, n, r;
1581
+ this._more || (this.yytext = "", this.match = "");
1582
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1583
+ if (t = n, r = a, this.options.backtrack_lexer) {
1584
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1585
+ if (this._backtrack) {
1586
+ t = !1;
1587
+ continue;
1588
+ }
1589
+ return !1;
1590
+ }
1591
+ if (!this.options.flex) break;
1592
+ }
1593
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1594
+ text: "",
1595
+ token: null,
1596
+ line: this.yylineno
1597
+ });
1598
+ }, "next"),
1599
+ lex: /* @__PURE__ */ t(function() {
1600
+ return this.next() || this.lex();
1601
+ }, "lex"),
1602
+ begin: /* @__PURE__ */ t(function(e) {
1603
+ this.conditionStack.push(e);
1604
+ }, "begin"),
1605
+ popState: /* @__PURE__ */ t(function() {
1606
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1607
+ }, "popState"),
1608
+ _currentRules: /* @__PURE__ */ t(function() {
1609
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1610
+ }, "_currentRules"),
1611
+ topState: /* @__PURE__ */ t(function(e) {
1612
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1613
+ }, "topState"),
1614
+ pushState: /* @__PURE__ */ t(function(e) {
1615
+ this.begin(e);
1616
+ }, "pushState"),
1617
+ stateStackSize: /* @__PURE__ */ t(function() {
1618
+ return this.conditionStack.length;
1619
+ }, "stateStackSize"),
1620
+ options: { "case-insensitive": !0 },
1621
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
1622
+ switch (n) {
1623
+ case 0: return "title";
1624
+ case 1: return this.begin("acc_title"), 9;
1625
+ case 2: return this.popState(), "acc_title_value";
1626
+ case 3: return this.begin("acc_descr"), 11;
1627
+ case 4: return this.popState(), "acc_descr_value";
1628
+ case 5:
1629
+ this.begin("acc_descr_multiline");
1630
+ break;
1631
+ case 6:
1632
+ this.popState();
1633
+ break;
1634
+ case 7: return "acc_descr_multiline_value";
1635
+ case 8: return 21;
1636
+ case 9: return 22;
1637
+ case 10: return 23;
1638
+ case 11: return 24;
1639
+ case 12: return 5;
1640
+ case 13: break;
1641
+ case 14: break;
1642
+ case 15: break;
1643
+ case 16: return 8;
1644
+ case 17: return 6;
1645
+ case 18: return 27;
1646
+ case 19: return 40;
1647
+ case 20: return 29;
1648
+ case 21: return 32;
1649
+ case 22: return 31;
1650
+ case 23: return 34;
1651
+ case 24: return 36;
1652
+ case 25: return 38;
1653
+ case 26: return 41;
1654
+ case 27: return 42;
1655
+ case 28: return 43;
1656
+ case 29: return 44;
1657
+ case 30: return 45;
1658
+ case 31: return 46;
1659
+ case 32: return 47;
1660
+ case 33: return 48;
1661
+ case 34: return 49;
1662
+ case 35: return 50;
1663
+ case 36: return 51;
1664
+ case 37: return 52;
1665
+ case 38: return 53;
1666
+ case 39: return 54;
1667
+ case 40: return 65;
1668
+ case 41: return 66;
1669
+ case 42: return 67;
1670
+ case 43: return 68;
1671
+ case 44: return 69;
1672
+ case 45: return 70;
1673
+ case 46: return 71;
1674
+ case 47: return 57;
1675
+ case 48: return 59;
1676
+ case 49: return this.begin("style"), 77;
1677
+ case 50: return 75;
1678
+ case 51: return 81;
1679
+ case 52: return 88;
1680
+ case 53: return "PERCENT";
1681
+ case 54: return 86;
1682
+ case 55: return 84;
1683
+ case 56: break;
1684
+ case 57:
1685
+ this.begin("string");
1686
+ break;
1687
+ case 58:
1688
+ this.popState();
1689
+ break;
1690
+ case 59: return this.begin("style"), 72;
1691
+ case 60: return this.begin("style"), 74;
1692
+ case 61: return 61;
1693
+ case 62: return 64;
1694
+ case 63: return 63;
1695
+ case 64:
1696
+ this.begin("string");
1697
+ break;
1698
+ case 65:
1699
+ this.popState();
1700
+ break;
1701
+ case 66: return "qString";
1702
+ case 67: return t.yytext = t.yytext.trim(), 89;
1703
+ case 68: return 75;
1704
+ case 69: return 80;
1705
+ case 70: return 76;
1706
+ }
1707
+ }, "anonymous"),
1708
+ rules: [
1709
+ /^(?:title\s[^#\n;]+)/i,
1710
+ /^(?:accTitle\s*:\s*)/i,
1711
+ /^(?:(?!\n||)*[^\n]*)/i,
1712
+ /^(?:accDescr\s*:\s*)/i,
1713
+ /^(?:(?!\n||)*[^\n]*)/i,
1714
+ /^(?:accDescr\s*\{\s*)/i,
1715
+ /^(?:[\}])/i,
1716
+ /^(?:[^\}]*)/i,
1717
+ /^(?:.*direction\s+TB[^\n]*)/i,
1718
+ /^(?:.*direction\s+BT[^\n]*)/i,
1719
+ /^(?:.*direction\s+RL[^\n]*)/i,
1720
+ /^(?:.*direction\s+LR[^\n]*)/i,
1721
+ /^(?:(\r?\n)+)/i,
1722
+ /^(?:\s+)/i,
1723
+ /^(?:#[^\n]*)/i,
1724
+ /^(?:%[^\n]*)/i,
1725
+ /^(?:$)/i,
1726
+ /^(?:requirementDiagram\b)/i,
1727
+ /^(?:\{)/i,
1728
+ /^(?:\})/i,
1729
+ /^(?::{3})/i,
1730
+ /^(?::)/i,
1731
+ /^(?:id\b)/i,
1732
+ /^(?:text\b)/i,
1733
+ /^(?:risk\b)/i,
1734
+ /^(?:verifyMethod\b)/i,
1735
+ /^(?:requirement\b)/i,
1736
+ /^(?:functionalRequirement\b)/i,
1737
+ /^(?:interfaceRequirement\b)/i,
1738
+ /^(?:performanceRequirement\b)/i,
1739
+ /^(?:physicalRequirement\b)/i,
1740
+ /^(?:designConstraint\b)/i,
1741
+ /^(?:low\b)/i,
1742
+ /^(?:medium\b)/i,
1743
+ /^(?:high\b)/i,
1744
+ /^(?:analysis\b)/i,
1745
+ /^(?:demonstration\b)/i,
1746
+ /^(?:inspection\b)/i,
1747
+ /^(?:test\b)/i,
1748
+ /^(?:element\b)/i,
1749
+ /^(?:contains\b)/i,
1750
+ /^(?:copies\b)/i,
1751
+ /^(?:derives\b)/i,
1752
+ /^(?:satisfies\b)/i,
1753
+ /^(?:verifies\b)/i,
1754
+ /^(?:refines\b)/i,
1755
+ /^(?:traces\b)/i,
1756
+ /^(?:type\b)/i,
1757
+ /^(?:docref\b)/i,
1758
+ /^(?:style\b)/i,
1759
+ /^(?:\w+)/i,
1760
+ /^(?::)/i,
1761
+ /^(?:;)/i,
1762
+ /^(?:%)/i,
1763
+ /^(?:-)/i,
1764
+ /^(?:#)/i,
1765
+ /^(?: )/i,
1766
+ /^(?:["])/i,
1767
+ /^(?:\n)/i,
1768
+ /^(?:classDef\b)/i,
1769
+ /^(?:class\b)/i,
1770
+ /^(?:<-)/i,
1771
+ /^(?:->)/i,
1772
+ /^(?:-)/i,
1773
+ /^(?:["])/i,
1774
+ /^(?:["])/i,
1775
+ /^(?:[^"]*)/i,
1776
+ /^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,
1777
+ /^(?:\w+)/i,
1778
+ /^(?:[0-9]+)/i,
1779
+ /^(?:,)/i
1780
+ ],
1781
+ conditions: {
1782
+ acc_descr_multiline: {
1783
+ rules: [
1784
+ 6,
1785
+ 7,
1786
+ 68,
1787
+ 69,
1788
+ 70
1789
+ ],
1790
+ inclusive: !1
1791
+ },
1792
+ acc_descr: {
1793
+ rules: [
1794
+ 4,
1795
+ 68,
1796
+ 69,
1797
+ 70
1798
+ ],
1799
+ inclusive: !1
1800
+ },
1801
+ acc_title: {
1802
+ rules: [
1803
+ 2,
1804
+ 68,
1805
+ 69,
1806
+ 70
1807
+ ],
1808
+ inclusive: !1
1809
+ },
1810
+ style: {
1811
+ rules: [
1812
+ 50,
1813
+ 51,
1814
+ 52,
1815
+ 53,
1816
+ 54,
1817
+ 55,
1818
+ 56,
1819
+ 57,
1820
+ 58,
1821
+ 68,
1822
+ 69,
1823
+ 70
1824
+ ],
1825
+ inclusive: !1
1826
+ },
1827
+ unqString: {
1828
+ rules: [
1829
+ 68,
1830
+ 69,
1831
+ 70
1832
+ ],
1833
+ inclusive: !1
1834
+ },
1835
+ token: {
1836
+ rules: [
1837
+ 68,
1838
+ 69,
1839
+ 70
1840
+ ],
1841
+ inclusive: !1
1842
+ },
1843
+ string: {
1844
+ rules: [
1845
+ 65,
1846
+ 66,
1847
+ 68,
1848
+ 69,
1849
+ 70
1850
+ ],
1851
+ inclusive: !1
1852
+ },
1853
+ INITIAL: {
1854
+ rules: [
1855
+ 0,
1856
+ 1,
1857
+ 3,
1858
+ 5,
1859
+ 8,
1860
+ 9,
1861
+ 10,
1862
+ 11,
1863
+ 12,
1864
+ 13,
1865
+ 14,
1866
+ 15,
1867
+ 16,
1868
+ 17,
1869
+ 18,
1870
+ 19,
1871
+ 20,
1872
+ 21,
1873
+ 22,
1874
+ 23,
1875
+ 24,
1876
+ 25,
1877
+ 26,
1878
+ 27,
1879
+ 28,
1880
+ 29,
1881
+ 30,
1882
+ 31,
1883
+ 32,
1884
+ 33,
1885
+ 34,
1886
+ 35,
1887
+ 36,
1888
+ 37,
1889
+ 38,
1890
+ 39,
1891
+ 40,
1892
+ 41,
1893
+ 42,
1894
+ 43,
1895
+ 44,
1896
+ 45,
1897
+ 46,
1898
+ 47,
1899
+ 48,
1900
+ 49,
1901
+ 59,
1902
+ 60,
1903
+ 61,
1904
+ 62,
1905
+ 63,
1906
+ 64,
1907
+ 67,
1908
+ 68,
1909
+ 69,
1910
+ 70
1911
+ ],
1912
+ inclusive: !0
1913
+ }
1914
+ }
1915
+ };
1916
+ })();
1917
+ function ue() {
1918
+ this.yy = {};
1919
+ }
1920
+ return t(ue, "Parser"), ue.prototype = le, le.Parser = ue, new ue();
1921
+ })();
1922
+ x.parser = x;
1923
+ var S = x, C = class {
1924
+ constructor() {
1925
+ this.relations = [], this.latestRequirement = this.getInitialRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.latestElement = this.getInitialElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.RequirementType = {
1926
+ REQUIREMENT: "Requirement",
1927
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
1928
+ INTERFACE_REQUIREMENT: "Interface Requirement",
1929
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
1930
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
1931
+ DESIGN_CONSTRAINT: "Design Constraint"
1932
+ }, this.RiskLevel = {
1933
+ LOW_RISK: "Low",
1934
+ MED_RISK: "Medium",
1935
+ HIGH_RISK: "High"
1936
+ }, this.VerifyType = {
1937
+ VERIFY_ANALYSIS: "Analysis",
1938
+ VERIFY_DEMONSTRATION: "Demonstration",
1939
+ VERIFY_INSPECTION: "Inspection",
1940
+ VERIFY_TEST: "Test"
1941
+ }, this.Relationships = {
1942
+ CONTAINS: "contains",
1943
+ COPIES: "copies",
1944
+ DERIVES: "derives",
1945
+ SATISFIES: "satisfies",
1946
+ VERIFIES: "verifies",
1947
+ REFINES: "refines",
1948
+ TRACES: "traces"
1949
+ }, this.setAccTitle = a, this.getAccTitle = u, this.setAccDescription = i, this.getAccDescription = o, this.setDiagramTitle = l, this.getDiagramTitle = r, this.getConfig = /* @__PURE__ */ t(() => c().requirement, "getConfig"), this.clear(), this.setDirection = this.setDirection.bind(this), this.addRequirement = this.addRequirement.bind(this), this.setNewReqId = this.setNewReqId.bind(this), this.setNewReqRisk = this.setNewReqRisk.bind(this), this.setNewReqText = this.setNewReqText.bind(this), this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this), this.addElement = this.addElement.bind(this), this.setNewElementType = this.setNewElementType.bind(this), this.setNewElementDocRef = this.setNewElementDocRef.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setCssStyle = this.setCssStyle.bind(this), this.setClass = this.setClass.bind(this), this.defineClass = this.defineClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
1950
+ }
1951
+ static {
1952
+ t(this, "RequirementDB");
1953
+ }
1954
+ getDirection() {
1955
+ return this.direction;
1956
+ }
1957
+ setDirection(e) {
1958
+ this.direction = e;
1959
+ }
1960
+ resetLatestRequirement() {
1961
+ this.latestRequirement = this.getInitialRequirement();
1962
+ }
1963
+ resetLatestElement() {
1964
+ this.latestElement = this.getInitialElement();
1965
+ }
1966
+ getInitialRequirement() {
1967
+ return {
1968
+ requirementId: "",
1969
+ text: "",
1970
+ risk: "",
1971
+ verifyMethod: "",
1972
+ name: "",
1973
+ type: "",
1974
+ cssStyles: [],
1975
+ classes: ["default"]
1976
+ };
1977
+ }
1978
+ getInitialElement() {
1979
+ return {
1980
+ name: "",
1981
+ type: "",
1982
+ docRef: "",
1983
+ cssStyles: [],
1984
+ classes: ["default"]
1985
+ };
1986
+ }
1987
+ addRequirement(e, t) {
1988
+ return this.requirements.has(e) || this.requirements.set(e, {
1989
+ name: e,
1990
+ type: t,
1991
+ requirementId: this.latestRequirement.requirementId,
1992
+ text: this.latestRequirement.text,
1993
+ risk: this.latestRequirement.risk,
1994
+ verifyMethod: this.latestRequirement.verifyMethod,
1995
+ cssStyles: [],
1996
+ classes: ["default"]
1997
+ }), this.resetLatestRequirement(), this.requirements.get(e);
1998
+ }
1999
+ getRequirements() {
2000
+ return this.requirements;
2001
+ }
2002
+ setNewReqId(e) {
2003
+ this.latestRequirement !== void 0 && (this.latestRequirement.requirementId = e);
2004
+ }
2005
+ setNewReqText(e) {
2006
+ this.latestRequirement !== void 0 && (this.latestRequirement.text = e);
2007
+ }
2008
+ setNewReqRisk(e) {
2009
+ this.latestRequirement !== void 0 && (this.latestRequirement.risk = e);
2010
+ }
2011
+ setNewReqVerifyMethod(e) {
2012
+ this.latestRequirement !== void 0 && (this.latestRequirement.verifyMethod = e);
2013
+ }
2014
+ addElement(t) {
2015
+ return this.elements.has(t) || (this.elements.set(t, {
2016
+ name: t,
2017
+ type: this.latestElement.type,
2018
+ docRef: this.latestElement.docRef,
2019
+ cssStyles: [],
2020
+ classes: ["default"]
2021
+ }), e.info("Added new element: ", t)), this.resetLatestElement(), this.elements.get(t);
2022
+ }
2023
+ getElements() {
2024
+ return this.elements;
2025
+ }
2026
+ setNewElementType(e) {
2027
+ this.latestElement !== void 0 && (this.latestElement.type = e);
2028
+ }
2029
+ setNewElementDocRef(e) {
2030
+ this.latestElement !== void 0 && (this.latestElement.docRef = e);
2031
+ }
2032
+ addRelationship(e, t, n) {
2033
+ this.relations.push({
2034
+ type: e,
2035
+ src: t,
2036
+ dst: n
2037
+ });
2038
+ }
2039
+ getRelationships() {
2040
+ return this.relations;
2041
+ }
2042
+ clear() {
2043
+ this.relations = [], this.resetLatestRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.resetLatestElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), s();
2044
+ }
2045
+ setCssStyle(e, t) {
2046
+ for (let n of e) {
2047
+ let e = this.requirements.get(n) ?? this.elements.get(n);
2048
+ if (!t || !e) return;
2049
+ for (let n of t) n.includes(",") ? e.cssStyles.push(...n.split(",")) : e.cssStyles.push(n);
2050
+ }
2051
+ }
2052
+ setClass(e, t) {
2053
+ for (let n of e) {
2054
+ let e = this.requirements.get(n) ?? this.elements.get(n);
2055
+ if (e) for (let n of t) {
2056
+ e.classes.push(n);
2057
+ let t = this.classes.get(n)?.styles;
2058
+ t && e.cssStyles.push(...t);
2059
+ }
2060
+ }
2061
+ }
2062
+ defineClass(e, t) {
2063
+ for (let n of e) {
2064
+ let e = this.classes.get(n);
2065
+ e === void 0 && (e = {
2066
+ id: n,
2067
+ styles: [],
2068
+ textStyles: []
2069
+ }, this.classes.set(n, e)), t && t.forEach(function(t) {
2070
+ if (/color/.exec(t)) {
2071
+ let n = t.replace("fill", "bgFill");
2072
+ e.textStyles.push(n);
2073
+ }
2074
+ e.styles.push(t);
2075
+ }), this.requirements.forEach((e) => {
2076
+ e.classes.includes(n) && e.cssStyles.push(...t.flatMap((e) => e.split(",")));
2077
+ }), this.elements.forEach((e) => {
2078
+ e.classes.includes(n) && e.cssStyles.push(...t.flatMap((e) => e.split(",")));
2079
+ });
2080
+ }
2081
+ }
2082
+ getClasses() {
2083
+ return this.classes;
2084
+ }
2085
+ getData() {
2086
+ let e = c(), t = [], n = [];
2087
+ for (let n of this.requirements.values()) {
2088
+ let r = n;
2089
+ r.id = n.name, r.cssStyles = n.cssStyles, r.cssClasses = n.classes.join(" "), r.shape = "requirementBox", r.look = e.look, r.colorIndex = t.length, t.push(r);
2090
+ }
2091
+ for (let n of this.elements.values()) {
2092
+ let r = n;
2093
+ r.shape = "requirementBox", r.look = e.look, r.id = n.name, r.cssStyles = n.cssStyles, r.cssClasses = n.classes.join(" "), r.colorIndex = t.length, t.push(r);
2094
+ }
2095
+ let r = 0;
2096
+ for (let t of this.relations) {
2097
+ let i = t.type === this.Relationships.CONTAINS, a = {
2098
+ id: `${t.src}-${t.dst}-${r++}`,
2099
+ start: this.requirements.get(t.src)?.name ?? this.elements.get(t.src)?.name,
2100
+ end: this.requirements.get(t.dst)?.name ?? this.elements.get(t.dst)?.name,
2101
+ label: `&lt;&lt;${t.type}&gt;&gt;`,
2102
+ classes: "relationshipLine",
2103
+ style: ["fill:none", i ? "" : "stroke-dasharray: 10,7"],
2104
+ labelpos: "c",
2105
+ thickness: "normal",
2106
+ type: "normal",
2107
+ pattern: i ? "normal" : "dashed",
2108
+ arrowTypeStart: i ? "requirement_contains" : "",
2109
+ arrowTypeEnd: i ? "" : "requirement_arrow",
2110
+ look: e.look,
2111
+ labelType: "markdown"
2112
+ };
2113
+ n.push(a);
2114
+ }
2115
+ return {
2116
+ nodes: t,
2117
+ edges: n,
2118
+ other: {},
2119
+ config: e,
2120
+ direction: this.getDirection()
2121
+ };
2122
+ }
2123
+ }, w = /* @__PURE__ */ t(() => {
2124
+ let e = d(), { theme: t, themeVariables: n } = e, { bkgColorArray: r, borderColorArray: i } = n;
2125
+ if (!m(t, i)) return "";
2126
+ let a = h(e.look), o = "", s = g(r);
2127
+ for (let e = 0; e < p(i); e++) {
2128
+ let t = i[e], n = s ? `fill: ${r[e % r.length]};` : "";
2129
+ o += `
2130
+
2131
+ [data-look="${a}"][data-color-id="color-${e}"].node path {
2132
+ stroke: ${t};
2133
+ ${n}
2134
+ }
2135
+
2136
+ [data-look="${a}"][data-color-id="color-${e}"].node rect {
2137
+ stroke: ${t};
2138
+ ${n}
2139
+ }
2140
+ `;
2141
+ }
2142
+ return o;
2143
+ }, "genColor"), T = /* @__PURE__ */ t((e) => {
2144
+ let { look: t, themeVariables: n } = d(), { requirementEdgeLabelBackground: r } = n;
2145
+ return `
2146
+ ${w()}
2147
+ marker {
2148
+ fill: ${e.relationColor};
2149
+ stroke: ${e.relationColor};
2150
+ }
2151
+
2152
+ marker.cross {
2153
+ stroke: ${e.lineColor};
2154
+ }
2155
+
2156
+ svg {
2157
+ font-family: ${e.fontFamily};
2158
+ font-size: ${e.fontSize};
2159
+ }
2160
+
2161
+ .reqBox {
2162
+ fill: ${e.requirementBackground};
2163
+ fill-opacity: 1.0;
2164
+ stroke: ${e.requirementBorderColor};
2165
+ stroke-width: ${e.requirementBorderSize};
2166
+ }
2167
+
2168
+ .reqTitle, .reqLabel{
2169
+ fill: ${e.requirementTextColor};
2170
+ }
2171
+ .reqLabelBox {
2172
+ fill: ${e.relationLabelBackground};
2173
+ fill-opacity: 1.0;
2174
+ }
2175
+
2176
+ .req-title-line {
2177
+ stroke: ${e.requirementBorderColor};
2178
+ stroke-width: ${e.requirementBorderSize};
2179
+ }
2180
+ .relationshipLine {
2181
+ stroke: ${e.relationColor};
2182
+ stroke-width: ${t === "neo" ? e.strokeWidth : "1px"};
2183
+ }
2184
+ .relationshipLabel {
2185
+ fill: ${e.relationLabelColor};
2186
+ }
2187
+ .edgeLabel {
2188
+ background-color: ${e.edgeLabelBackground};
2189
+ }
2190
+ .edgeLabel .label rect {
2191
+ fill: ${e.edgeLabelBackground};
2192
+ }
2193
+ .edgeLabel .label text {
2194
+ fill: ${e.relationLabelColor};
2195
+ }
2196
+ .divider {
2197
+ stroke: ${e.nodeBorder};
2198
+ stroke-width: 1;
2199
+ }
2200
+ .label {
2201
+ font-family: ${e.fontFamily};
2202
+ color: ${e.nodeTextColor || e.textColor};
2203
+ }
2204
+ .label text,span {
2205
+ fill: ${e.nodeTextColor || e.textColor};
2206
+ color: ${e.nodeTextColor || e.textColor};
2207
+ }
2208
+ .labelBkg {
2209
+ background-color: ${r ?? e.edgeLabelBackground};
2210
+ }
2211
+
2212
+ `;
2213
+ }, "getStyles"), E = {};
2214
+ n(E, { draw: () => D });
2215
+ var D = /* @__PURE__ */ t(async function(t, n, r, i) {
2216
+ e.info("REF0:"), e.info("Drawing requirement diagram (unified)", n);
2217
+ let { securityLevel: a, state: o, layout: s, look: l } = c(), u = i.db.getData(), d = y(n, a);
2218
+ u.type = i.type, u.layoutAlgorithm = v(s), u.nodeSpacing = o?.nodeSpacing ?? 50, u.rankSpacing = o?.rankSpacing ?? 50, u.markers = l === "neo" ? ["requirement_contains_neo", "requirement_arrow_neo"] : ["requirement_contains", "requirement_arrow"], u.diagramId = n, await _(u, d), f.insertTitle(d, "requirementDiagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), b(d, 8, "requirementDiagram", o?.useMaxWidth ?? !0);
2219
+ }, "draw"), O = {
2220
+ parser: S,
2221
+ get db() {
2222
+ return new C();
2223
+ },
2224
+ renderer: E,
2225
+ styles: T
2226
+ };
2227
+ //#endregion
2228
+ export { O as diagram };