@zettelgeist/cli 0.1.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 (189) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +64 -0
  3. package/dist/bin.js +2211 -0
  4. package/dist/bin.js.map +7 -0
  5. package/dist/templates/export.html +27 -0
  6. package/dist/templates/skill/SKILL.md +220 -0
  7. package/dist/viewer-bundle/architecture-YZFGNWBL-W2K3EQOM.js +14 -0
  8. package/dist/viewer-bundle/architecture-YZFGNWBL-W2K3EQOM.js.map +7 -0
  9. package/dist/viewer-bundle/architectureDiagram-Q4EWVU46-LCGRUEWT.js +8884 -0
  10. package/dist/viewer-bundle/architectureDiagram-Q4EWVU46-LCGRUEWT.js.map +7 -0
  11. package/dist/viewer-bundle/base.css +248 -0
  12. package/dist/viewer-bundle/blockDiagram-DXYQGD6D-KAM7BOAP.js +3777 -0
  13. package/dist/viewer-bundle/blockDiagram-DXYQGD6D-KAM7BOAP.js.map +7 -0
  14. package/dist/viewer-bundle/board.css +370 -0
  15. package/dist/viewer-bundle/c4Diagram-AHTNJAMY-C3FIQYXA.js +2596 -0
  16. package/dist/viewer-bundle/c4Diagram-AHTNJAMY-C3FIQYXA.js.map +7 -0
  17. package/dist/viewer-bundle/chunk-2QXGXAO5.js +68 -0
  18. package/dist/viewer-bundle/chunk-2QXGXAO5.js.map +7 -0
  19. package/dist/viewer-bundle/chunk-5PZT7VUU.js +67 -0
  20. package/dist/viewer-bundle/chunk-5PZT7VUU.js.map +7 -0
  21. package/dist/viewer-bundle/chunk-5YJCJF2C.js +112 -0
  22. package/dist/viewer-bundle/chunk-5YJCJF2C.js.map +7 -0
  23. package/dist/viewer-bundle/chunk-6LYV7PBV.js +1011 -0
  24. package/dist/viewer-bundle/chunk-6LYV7PBV.js.map +7 -0
  25. package/dist/viewer-bundle/chunk-6VW7D5WX.js +48 -0
  26. package/dist/viewer-bundle/chunk-6VW7D5WX.js.map +7 -0
  27. package/dist/viewer-bundle/chunk-76C5OSD4.js +2048 -0
  28. package/dist/viewer-bundle/chunk-76C5OSD4.js.map +7 -0
  29. package/dist/viewer-bundle/chunk-7NZMPQDX.js +6957 -0
  30. package/dist/viewer-bundle/chunk-7NZMPQDX.js.map +7 -0
  31. package/dist/viewer-bundle/chunk-A634GTZN.js +122 -0
  32. package/dist/viewer-bundle/chunk-A634GTZN.js.map +7 -0
  33. package/dist/viewer-bundle/chunk-AJQJUKMU.js +133 -0
  34. package/dist/viewer-bundle/chunk-AJQJUKMU.js.map +7 -0
  35. package/dist/viewer-bundle/chunk-BM2KPNFW.js +5556 -0
  36. package/dist/viewer-bundle/chunk-BM2KPNFW.js.map +7 -0
  37. package/dist/viewer-bundle/chunk-CIDUOCCG.js +25 -0
  38. package/dist/viewer-bundle/chunk-CIDUOCCG.js.map +7 -0
  39. package/dist/viewer-bundle/chunk-CZHJHAOR.js +6397 -0
  40. package/dist/viewer-bundle/chunk-CZHJHAOR.js.map +7 -0
  41. package/dist/viewer-bundle/chunk-D5RLIWY4.js +125 -0
  42. package/dist/viewer-bundle/chunk-D5RLIWY4.js.map +7 -0
  43. package/dist/viewer-bundle/chunk-DI52DQAC.js +44 -0
  44. package/dist/viewer-bundle/chunk-DI52DQAC.js.map +7 -0
  45. package/dist/viewer-bundle/chunk-EXJQLTIV.js +51 -0
  46. package/dist/viewer-bundle/chunk-EXJQLTIV.js.map +7 -0
  47. package/dist/viewer-bundle/chunk-G3PPZWPW.js +96 -0
  48. package/dist/viewer-bundle/chunk-G3PPZWPW.js.map +7 -0
  49. package/dist/viewer-bundle/chunk-GTW4IDD4.js +30297 -0
  50. package/dist/viewer-bundle/chunk-GTW4IDD4.js.map +7 -0
  51. package/dist/viewer-bundle/chunk-GVE7OA3Z.js +59 -0
  52. package/dist/viewer-bundle/chunk-GVE7OA3Z.js.map +7 -0
  53. package/dist/viewer-bundle/chunk-JBUVKVPY.js +2042 -0
  54. package/dist/viewer-bundle/chunk-JBUVKVPY.js.map +7 -0
  55. package/dist/viewer-bundle/chunk-JQLVOAQB.js +20 -0
  56. package/dist/viewer-bundle/chunk-JQLVOAQB.js.map +7 -0
  57. package/dist/viewer-bundle/chunk-LQMQSYLO.js +101 -0
  58. package/dist/viewer-bundle/chunk-LQMQSYLO.js.map +7 -0
  59. package/dist/viewer-bundle/chunk-MBFAQ3IK.js +34 -0
  60. package/dist/viewer-bundle/chunk-MBFAQ3IK.js.map +7 -0
  61. package/dist/viewer-bundle/chunk-N7G7IIKG.js +25 -0
  62. package/dist/viewer-bundle/chunk-N7G7IIKG.js.map +7 -0
  63. package/dist/viewer-bundle/chunk-NW4YG3NS.js +171 -0
  64. package/dist/viewer-bundle/chunk-NW4YG3NS.js.map +7 -0
  65. package/dist/viewer-bundle/chunk-ODEP5TKB.js +61 -0
  66. package/dist/viewer-bundle/chunk-ODEP5TKB.js.map +7 -0
  67. package/dist/viewer-bundle/chunk-OGKINV23.js +1050 -0
  68. package/dist/viewer-bundle/chunk-OGKINV23.js.map +7 -0
  69. package/dist/viewer-bundle/chunk-OGMSNDVH.js +1994 -0
  70. package/dist/viewer-bundle/chunk-OGMSNDVH.js.map +7 -0
  71. package/dist/viewer-bundle/chunk-QJVSDNAW.js +25 -0
  72. package/dist/viewer-bundle/chunk-QJVSDNAW.js.map +7 -0
  73. package/dist/viewer-bundle/chunk-RBTT26R4.js +2721 -0
  74. package/dist/viewer-bundle/chunk-RBTT26R4.js.map +7 -0
  75. package/dist/viewer-bundle/chunk-RQIPIIE2.js +48 -0
  76. package/dist/viewer-bundle/chunk-RQIPIIE2.js.map +7 -0
  77. package/dist/viewer-bundle/chunk-SRTYTXTX.js +22 -0
  78. package/dist/viewer-bundle/chunk-SRTYTXTX.js.map +7 -0
  79. package/dist/viewer-bundle/chunk-TRL7YIZG.js +1663 -0
  80. package/dist/viewer-bundle/chunk-TRL7YIZG.js.map +7 -0
  81. package/dist/viewer-bundle/chunk-U5T7X4BV.js +172 -0
  82. package/dist/viewer-bundle/chunk-U5T7X4BV.js.map +7 -0
  83. package/dist/viewer-bundle/chunk-UCAW6C6C.js +48 -0
  84. package/dist/viewer-bundle/chunk-UCAW6C6C.js.map +7 -0
  85. package/dist/viewer-bundle/chunk-UEAG4BJQ.js +93 -0
  86. package/dist/viewer-bundle/chunk-UEAG4BJQ.js.map +7 -0
  87. package/dist/viewer-bundle/chunk-UVRE3R6A.js +1039 -0
  88. package/dist/viewer-bundle/chunk-UVRE3R6A.js.map +7 -0
  89. package/dist/viewer-bundle/chunk-VODO7SV4.js +25029 -0
  90. package/dist/viewer-bundle/chunk-VODO7SV4.js.map +7 -0
  91. package/dist/viewer-bundle/chunk-YEU62MVS.js +682 -0
  92. package/dist/viewer-bundle/chunk-YEU62MVS.js.map +7 -0
  93. package/dist/viewer-bundle/chunk-YFQT7PPW.js +987 -0
  94. package/dist/viewer-bundle/chunk-YFQT7PPW.js.map +7 -0
  95. package/dist/viewer-bundle/chunk-Z4G7FG27.js +48 -0
  96. package/dist/viewer-bundle/chunk-Z4G7FG27.js.map +7 -0
  97. package/dist/viewer-bundle/chunk-ZW4Y7DIF.js +2044 -0
  98. package/dist/viewer-bundle/chunk-ZW4Y7DIF.js.map +7 -0
  99. package/dist/viewer-bundle/classDiagram-6PBFFD2Q-7VKYXLUX.js +46 -0
  100. package/dist/viewer-bundle/classDiagram-6PBFFD2Q-7VKYXLUX.js.map +7 -0
  101. package/dist/viewer-bundle/classDiagram-v2-HSJHXN6E-ACCNN7EN.js +46 -0
  102. package/dist/viewer-bundle/classDiagram-v2-HSJHXN6E-ACCNN7EN.js.map +7 -0
  103. package/dist/viewer-bundle/cose-bilkent-S5V4N54A-MUJHAA34.js +5009 -0
  104. package/dist/viewer-bundle/cose-bilkent-S5V4N54A-MUJHAA34.js.map +7 -0
  105. package/dist/viewer-bundle/dagre-KV5264BT-YC5VV3WF.js +739 -0
  106. package/dist/viewer-bundle/dagre-KV5264BT-YC5VV3WF.js.map +7 -0
  107. package/dist/viewer-bundle/dark.css +13 -0
  108. package/dist/viewer-bundle/detail.css +539 -0
  109. package/dist/viewer-bundle/diagram-5BDNPKRD-RXFPVFYK.js +214 -0
  110. package/dist/viewer-bundle/diagram-5BDNPKRD-RXFPVFYK.js.map +7 -0
  111. package/dist/viewer-bundle/diagram-G4DWMVQ6-KN7CBNBQ.js +578 -0
  112. package/dist/viewer-bundle/diagram-G4DWMVQ6-KN7CBNBQ.js.map +7 -0
  113. package/dist/viewer-bundle/diagram-MMDJMWI5-ZN6TQ7ZC.js +345 -0
  114. package/dist/viewer-bundle/diagram-MMDJMWI5-ZN6TQ7ZC.js.map +7 -0
  115. package/dist/viewer-bundle/diagram-TYMM5635-MMTUJ4KA.js +255 -0
  116. package/dist/viewer-bundle/diagram-TYMM5635-MMTUJ4KA.js.map +7 -0
  117. package/dist/viewer-bundle/docs.css +88 -0
  118. package/dist/viewer-bundle/edit-modal-BEGC2AO6.js +176 -0
  119. package/dist/viewer-bundle/edit-modal-BEGC2AO6.js.map +7 -0
  120. package/dist/viewer-bundle/erDiagram-SMLLAGMA-TBHMLD2E.js +1349 -0
  121. package/dist/viewer-bundle/erDiagram-SMLLAGMA-TBHMLD2E.js.map +7 -0
  122. package/dist/viewer-bundle/flowDiagram-DWJPFMVM-BZHLK6QB.js +2501 -0
  123. package/dist/viewer-bundle/flowDiagram-DWJPFMVM-BZHLK6QB.js.map +7 -0
  124. package/dist/viewer-bundle/ganttDiagram-T4ZO3ILL-YBARPTQR.js +2654 -0
  125. package/dist/viewer-bundle/ganttDiagram-T4ZO3ILL-YBARPTQR.js.map +7 -0
  126. package/dist/viewer-bundle/gitGraph-7Q5UKJZL-HENKIQDX.js +14 -0
  127. package/dist/viewer-bundle/gitGraph-7Q5UKJZL-HENKIQDX.js.map +7 -0
  128. package/dist/viewer-bundle/gitGraphDiagram-UUTBAWPF-M4VV3YVA.js +1946 -0
  129. package/dist/viewer-bundle/gitGraphDiagram-UUTBAWPF-M4VV3YVA.js.map +7 -0
  130. package/dist/viewer-bundle/index.html +28 -0
  131. package/dist/viewer-bundle/info-OMHHGYJF-E773USRS.js +14 -0
  132. package/dist/viewer-bundle/info-OMHHGYJF-E773USRS.js.map +7 -0
  133. package/dist/viewer-bundle/infoDiagram-42DDH7IO-C7JGUXKK.js +59 -0
  134. package/dist/viewer-bundle/infoDiagram-42DDH7IO-C7JGUXKK.js.map +7 -0
  135. package/dist/viewer-bundle/ishikawaDiagram-UXIWVN3A-YBC4X4VB.js +1012 -0
  136. package/dist/viewer-bundle/ishikawaDiagram-UXIWVN3A-YBC4X4VB.js.map +7 -0
  137. package/dist/viewer-bundle/journeyDiagram-VCZTEJTY-6WKVEOOO.js +1303 -0
  138. package/dist/viewer-bundle/journeyDiagram-VCZTEJTY-6WKVEOOO.js.map +7 -0
  139. package/dist/viewer-bundle/kanban-definition-6JOO6SKY-URTTHHO4.js +1131 -0
  140. package/dist/viewer-bundle/kanban-definition-6JOO6SKY-URTTHHO4.js.map +7 -0
  141. package/dist/viewer-bundle/katex-QN5266ZE.js +14318 -0
  142. package/dist/viewer-bundle/katex-QN5266ZE.js.map +7 -0
  143. package/dist/viewer-bundle/light.css +15 -0
  144. package/dist/viewer-bundle/main.js +4816 -0
  145. package/dist/viewer-bundle/main.js.map +7 -0
  146. package/dist/viewer-bundle/mermaid.core-AEBXU2JK.js +1708 -0
  147. package/dist/viewer-bundle/mermaid.core-AEBXU2JK.js.map +7 -0
  148. package/dist/viewer-bundle/mindmap-definition-QFDTVHPH-KUMAMRSF.js +1277 -0
  149. package/dist/viewer-bundle/mindmap-definition-QFDTVHPH-KUMAMRSF.js.map +7 -0
  150. package/dist/viewer-bundle/packet-4T2RLAQJ-IRYWWA66.js +14 -0
  151. package/dist/viewer-bundle/packet-4T2RLAQJ-IRYWWA66.js.map +7 -0
  152. package/dist/viewer-bundle/pico.classless.min.css +4 -0
  153. package/dist/viewer-bundle/pie-ZZUOXDRM-JYO4VL5N.js +14 -0
  154. package/dist/viewer-bundle/pie-ZZUOXDRM-JYO4VL5N.js.map +7 -0
  155. package/dist/viewer-bundle/pieDiagram-DEJITSTG-QOEHQN3N.js +238 -0
  156. package/dist/viewer-bundle/pieDiagram-DEJITSTG-QOEHQN3N.js.map +7 -0
  157. package/dist/viewer-bundle/prompt-modal-C4LHI7BS.js +12 -0
  158. package/dist/viewer-bundle/prompt-modal-C4LHI7BS.js.map +7 -0
  159. package/dist/viewer-bundle/quadrantDiagram-34T5L4WZ-SJNPUU5N.js +1409 -0
  160. package/dist/viewer-bundle/quadrantDiagram-34T5L4WZ-SJNPUU5N.js.map +7 -0
  161. package/dist/viewer-bundle/radar-PYXPWWZC-45BRYQSB.js +14 -0
  162. package/dist/viewer-bundle/radar-PYXPWWZC-45BRYQSB.js.map +7 -0
  163. package/dist/viewer-bundle/reason-modal-MK34MQ73.js +68 -0
  164. package/dist/viewer-bundle/reason-modal-MK34MQ73.js.map +7 -0
  165. package/dist/viewer-bundle/requirementDiagram-MS252O5E-UOMT3FCC.js +1311 -0
  166. package/dist/viewer-bundle/requirementDiagram-MS252O5E-UOMT3FCC.js.map +7 -0
  167. package/dist/viewer-bundle/sankeyDiagram-XADWPNL6-LAVJ5C6A.js +1263 -0
  168. package/dist/viewer-bundle/sankeyDiagram-XADWPNL6-LAVJ5C6A.js.map +7 -0
  169. package/dist/viewer-bundle/sequenceDiagram-FGHM5R23-3IWTOUNQ.js +4655 -0
  170. package/dist/viewer-bundle/sequenceDiagram-FGHM5R23-3IWTOUNQ.js.map +7 -0
  171. package/dist/viewer-bundle/stateDiagram-FHFEXIEX-S2OVQQON.js +495 -0
  172. package/dist/viewer-bundle/stateDiagram-FHFEXIEX-S2OVQQON.js.map +7 -0
  173. package/dist/viewer-bundle/stateDiagram-v2-QKLJ7IA2-XNZ3XXSV.js +44 -0
  174. package/dist/viewer-bundle/stateDiagram-v2-QKLJ7IA2-XNZ3XXSV.js.map +7 -0
  175. package/dist/viewer-bundle/timeline-definition-GMOUNBTQ-FHVZ7MHE.js +1646 -0
  176. package/dist/viewer-bundle/timeline-definition-GMOUNBTQ-FHVZ7MHE.js.map +7 -0
  177. package/dist/viewer-bundle/treeView-SZITEDCU-RXZXNYAM.js +14 -0
  178. package/dist/viewer-bundle/treeView-SZITEDCU-RXZXNYAM.js.map +7 -0
  179. package/dist/viewer-bundle/treemap-W4RFUUIX-2IGOFSJM.js +14 -0
  180. package/dist/viewer-bundle/treemap-W4RFUUIX-2IGOFSJM.js.map +7 -0
  181. package/dist/viewer-bundle/vennDiagram-DHZGUBPP-HEAOEXEZ.js +2544 -0
  182. package/dist/viewer-bundle/vennDiagram-DHZGUBPP-HEAOEXEZ.js.map +7 -0
  183. package/dist/viewer-bundle/wardley-RL74JXVD-VSPCLOX2.js +14 -0
  184. package/dist/viewer-bundle/wardley-RL74JXVD-VSPCLOX2.js.map +7 -0
  185. package/dist/viewer-bundle/wardleyDiagram-NUSXRM2D-EBY4FG3X.js +938 -0
  186. package/dist/viewer-bundle/wardleyDiagram-NUSXRM2D-EBY4FG3X.js.map +7 -0
  187. package/dist/viewer-bundle/xychartDiagram-5P7HB3ND-SSMUQEXK.js +1952 -0
  188. package/dist/viewer-bundle/xychartDiagram-5P7HB3ND-SSMUQEXK.js.map +7 -0
  189. package/package.json +51 -0
@@ -0,0 +1,1311 @@
1
+ import {
2
+ getDiagramElement
3
+ } from "./chunk-JQLVOAQB.js";
4
+ import {
5
+ setupViewPortForSVG
6
+ } from "./chunk-MBFAQ3IK.js";
7
+ import {
8
+ getRegisteredLayoutAlgorithm,
9
+ render
10
+ } from "./chunk-LQMQSYLO.js";
11
+ import "./chunk-OGKINV23.js";
12
+ import "./chunk-BM2KPNFW.js";
13
+ import "./chunk-6LYV7PBV.js";
14
+ import "./chunk-5YJCJF2C.js";
15
+ import "./chunk-NW4YG3NS.js";
16
+ import "./chunk-5PZT7VUU.js";
17
+ import "./chunk-OGMSNDVH.js";
18
+ import {
19
+ utils_default
20
+ } from "./chunk-UVRE3R6A.js";
21
+ import "./chunk-G3PPZWPW.js";
22
+ import {
23
+ clear,
24
+ getAccDescription,
25
+ getAccTitle,
26
+ getConfig,
27
+ getConfig2,
28
+ getDiagramTitle,
29
+ setAccDescription,
30
+ setAccTitle,
31
+ setDiagramTitle
32
+ } from "./chunk-7NZMPQDX.js";
33
+ import "./chunk-YEU62MVS.js";
34
+ import {
35
+ __export,
36
+ __name,
37
+ log
38
+ } from "./chunk-CZHJHAOR.js";
39
+ import "./chunk-DI52DQAC.js";
40
+
41
+ // ../../node_modules/.pnpm/mermaid@11.14.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.mjs
42
+ var parser = function() {
43
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
44
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
45
+ return o2;
46
+ }, "o"), $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [5, 6, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], $V5 = [1, 22], $V6 = [2, 7], $V7 = [1, 26], $V8 = [1, 27], $V9 = [1, 28], $Va = [1, 29], $Vb = [1, 33], $Vc = [1, 34], $Vd = [1, 35], $Ve = [1, 36], $Vf = [1, 37], $Vg = [1, 38], $Vh = [1, 24], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 30], $Vl = [1, 39], $Vm = [1, 40], $Vn = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], $Vo = [1, 61], $Vp = [89, 90], $Vq = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 29, 41, 42, 43, 44, 45, 46, 54, 61, 63, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], $Vr = [27, 29], $Vs = [1, 70], $Vt = [1, 71], $Vu = [1, 72], $Vv = [1, 73], $Vw = [1, 74], $Vx = [1, 75], $Vy = [1, 76], $Vz = [1, 83], $VA = [1, 80], $VB = [1, 84], $VC = [1, 85], $VD = [1, 86], $VE = [1, 87], $VF = [1, 88], $VG = [1, 89], $VH = [1, 90], $VI = [1, 91], $VJ = [1, 92], $VK = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], $VL = [63, 64], $VM = [1, 101], $VN = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 76, 77, 89, 90], $VO = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], $VP = [1, 110], $VQ = [1, 106], $VR = [1, 107], $VS = [1, 108], $VT = [1, 109], $VU = [1, 111], $VV = [1, 116], $VW = [1, 117], $VX = [1, 114], $VY = [1, 115];
47
+ var parser2 = {
48
+ trace: /* @__PURE__ */ __name(function trace() {
49
+ }, "trace"),
50
+ yy: {},
51
+ symbols_: { "error": 2, "start": 3, "directive": 4, "NEWLINE": 5, "RD": 6, "diagram": 7, "EOF": 8, "acc_title": 9, "acc_title_value": 10, "acc_descr": 11, "acc_descr_value": 12, "acc_descr_multiline_value": 13, "requirementDef": 14, "elementDef": 15, "relationshipDef": 16, "direction": 17, "styleStatement": 18, "classDefStatement": 19, "classStatement": 20, "direction_tb": 21, "direction_bt": 22, "direction_rl": 23, "direction_lr": 24, "requirementType": 25, "requirementName": 26, "STRUCT_START": 27, "requirementBody": 28, "STYLE_SEPARATOR": 29, "idList": 30, "ID": 31, "COLONSEP": 32, "id": 33, "TEXT": 34, "text": 35, "RISK": 36, "riskLevel": 37, "VERIFYMTHD": 38, "verifyType": 39, "STRUCT_STOP": 40, "REQUIREMENT": 41, "FUNCTIONAL_REQUIREMENT": 42, "INTERFACE_REQUIREMENT": 43, "PERFORMANCE_REQUIREMENT": 44, "PHYSICAL_REQUIREMENT": 45, "DESIGN_CONSTRAINT": 46, "LOW_RISK": 47, "MED_RISK": 48, "HIGH_RISK": 49, "VERIFY_ANALYSIS": 50, "VERIFY_DEMONSTRATION": 51, "VERIFY_INSPECTION": 52, "VERIFY_TEST": 53, "ELEMENT": 54, "elementName": 55, "elementBody": 56, "TYPE": 57, "type": 58, "DOCREF": 59, "ref": 60, "END_ARROW_L": 61, "relationship": 62, "LINE": 63, "END_ARROW_R": 64, "CONTAINS": 65, "COPIES": 66, "DERIVES": 67, "SATISFIES": 68, "VERIFIES": 69, "REFINES": 70, "TRACES": 71, "CLASSDEF": 72, "stylesOpt": 73, "CLASS": 74, "ALPHA": 75, "COMMA": 76, "STYLE": 77, "style": 78, "styleComponent": 79, "NUM": 80, "COLON": 81, "UNIT": 82, "SPACE": 83, "BRKT": 84, "PCT": 85, "MINUS": 86, "LABEL": 87, "SEMICOLON": 88, "unqString": 89, "qString": 90, "$accept": 0, "$end": 1 },
52
+ terminals_: { 2: "error", 5: "NEWLINE", 6: "RD", 8: "EOF", 9: "acc_title", 10: "acc_title_value", 11: "acc_descr", 12: "acc_descr_value", 13: "acc_descr_multiline_value", 21: "direction_tb", 22: "direction_bt", 23: "direction_rl", 24: "direction_lr", 27: "STRUCT_START", 29: "STYLE_SEPARATOR", 31: "ID", 32: "COLONSEP", 34: "TEXT", 36: "RISK", 38: "VERIFYMTHD", 40: "STRUCT_STOP", 41: "REQUIREMENT", 42: "FUNCTIONAL_REQUIREMENT", 43: "INTERFACE_REQUIREMENT", 44: "PERFORMANCE_REQUIREMENT", 45: "PHYSICAL_REQUIREMENT", 46: "DESIGN_CONSTRAINT", 47: "LOW_RISK", 48: "MED_RISK", 49: "HIGH_RISK", 50: "VERIFY_ANALYSIS", 51: "VERIFY_DEMONSTRATION", 52: "VERIFY_INSPECTION", 53: "VERIFY_TEST", 54: "ELEMENT", 57: "TYPE", 59: "DOCREF", 61: "END_ARROW_L", 63: "LINE", 64: "END_ARROW_R", 65: "CONTAINS", 66: "COPIES", 67: "DERIVES", 68: "SATISFIES", 69: "VERIFIES", 70: "REFINES", 71: "TRACES", 72: "CLASSDEF", 74: "CLASS", 75: "ALPHA", 76: "COMMA", 77: "STYLE", 80: "NUM", 81: "COLON", 82: "UNIT", 83: "SPACE", 84: "BRKT", 85: "PCT", 86: "MINUS", 87: "LABEL", 88: "SEMICOLON", 89: "unqString", 90: "qString" },
53
+ productions_: [0, [3, 3], [3, 2], [3, 4], [4, 2], [4, 2], [4, 1], [7, 0], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [17, 1], [17, 1], [17, 1], [17, 1], [14, 5], [14, 7], [28, 5], [28, 5], [28, 5], [28, 5], [28, 2], [28, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [37, 1], [37, 1], [37, 1], [39, 1], [39, 1], [39, 1], [39, 1], [15, 5], [15, 7], [56, 5], [56, 5], [56, 2], [56, 1], [16, 5], [16, 5], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [19, 3], [20, 3], [20, 3], [30, 1], [30, 3], [30, 1], [30, 3], [18, 3], [73, 1], [73, 3], [78, 1], [78, 2], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [26, 1], [26, 1], [33, 1], [33, 1], [35, 1], [35, 1], [55, 1], [55, 1], [58, 1], [58, 1], [60, 1], [60, 1]],
54
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
55
+ var $0 = $$.length - 1;
56
+ switch (yystate) {
57
+ case 4:
58
+ this.$ = $$[$0].trim();
59
+ yy.setAccTitle(this.$);
60
+ break;
61
+ case 5:
62
+ case 6:
63
+ this.$ = $$[$0].trim();
64
+ yy.setAccDescription(this.$);
65
+ break;
66
+ case 7:
67
+ this.$ = [];
68
+ break;
69
+ case 17:
70
+ yy.setDirection("TB");
71
+ break;
72
+ case 18:
73
+ yy.setDirection("BT");
74
+ break;
75
+ case 19:
76
+ yy.setDirection("RL");
77
+ break;
78
+ case 20:
79
+ yy.setDirection("LR");
80
+ break;
81
+ case 21:
82
+ yy.addRequirement($$[$0 - 3], $$[$0 - 4]);
83
+ break;
84
+ case 22:
85
+ yy.addRequirement($$[$0 - 5], $$[$0 - 6]);
86
+ yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
87
+ break;
88
+ case 23:
89
+ yy.setNewReqId($$[$0 - 2]);
90
+ break;
91
+ case 24:
92
+ yy.setNewReqText($$[$0 - 2]);
93
+ break;
94
+ case 25:
95
+ yy.setNewReqRisk($$[$0 - 2]);
96
+ break;
97
+ case 26:
98
+ yy.setNewReqVerifyMethod($$[$0 - 2]);
99
+ break;
100
+ case 29:
101
+ this.$ = yy.RequirementType.REQUIREMENT;
102
+ break;
103
+ case 30:
104
+ this.$ = yy.RequirementType.FUNCTIONAL_REQUIREMENT;
105
+ break;
106
+ case 31:
107
+ this.$ = yy.RequirementType.INTERFACE_REQUIREMENT;
108
+ break;
109
+ case 32:
110
+ this.$ = yy.RequirementType.PERFORMANCE_REQUIREMENT;
111
+ break;
112
+ case 33:
113
+ this.$ = yy.RequirementType.PHYSICAL_REQUIREMENT;
114
+ break;
115
+ case 34:
116
+ this.$ = yy.RequirementType.DESIGN_CONSTRAINT;
117
+ break;
118
+ case 35:
119
+ this.$ = yy.RiskLevel.LOW_RISK;
120
+ break;
121
+ case 36:
122
+ this.$ = yy.RiskLevel.MED_RISK;
123
+ break;
124
+ case 37:
125
+ this.$ = yy.RiskLevel.HIGH_RISK;
126
+ break;
127
+ case 38:
128
+ this.$ = yy.VerifyType.VERIFY_ANALYSIS;
129
+ break;
130
+ case 39:
131
+ this.$ = yy.VerifyType.VERIFY_DEMONSTRATION;
132
+ break;
133
+ case 40:
134
+ this.$ = yy.VerifyType.VERIFY_INSPECTION;
135
+ break;
136
+ case 41:
137
+ this.$ = yy.VerifyType.VERIFY_TEST;
138
+ break;
139
+ case 42:
140
+ yy.addElement($$[$0 - 3]);
141
+ break;
142
+ case 43:
143
+ yy.addElement($$[$0 - 5]);
144
+ yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
145
+ break;
146
+ case 44:
147
+ yy.setNewElementType($$[$0 - 2]);
148
+ break;
149
+ case 45:
150
+ yy.setNewElementDocRef($$[$0 - 2]);
151
+ break;
152
+ case 48:
153
+ yy.addRelationship($$[$0 - 2], $$[$0], $$[$0 - 4]);
154
+ break;
155
+ case 49:
156
+ yy.addRelationship($$[$0 - 2], $$[$0 - 4], $$[$0]);
157
+ break;
158
+ case 50:
159
+ this.$ = yy.Relationships.CONTAINS;
160
+ break;
161
+ case 51:
162
+ this.$ = yy.Relationships.COPIES;
163
+ break;
164
+ case 52:
165
+ this.$ = yy.Relationships.DERIVES;
166
+ break;
167
+ case 53:
168
+ this.$ = yy.Relationships.SATISFIES;
169
+ break;
170
+ case 54:
171
+ this.$ = yy.Relationships.VERIFIES;
172
+ break;
173
+ case 55:
174
+ this.$ = yy.Relationships.REFINES;
175
+ break;
176
+ case 56:
177
+ this.$ = yy.Relationships.TRACES;
178
+ break;
179
+ case 57:
180
+ this.$ = $$[$0 - 2];
181
+ yy.defineClass($$[$0 - 1], $$[$0]);
182
+ break;
183
+ case 58:
184
+ yy.setClass($$[$0 - 1], $$[$0]);
185
+ break;
186
+ case 59:
187
+ yy.setClass([$$[$0 - 2]], $$[$0]);
188
+ break;
189
+ case 60:
190
+ case 62:
191
+ this.$ = [$$[$0]];
192
+ break;
193
+ case 61:
194
+ case 63:
195
+ this.$ = $$[$0 - 2].concat([$$[$0]]);
196
+ break;
197
+ case 64:
198
+ this.$ = $$[$0 - 2];
199
+ yy.setCssStyle($$[$0 - 1], $$[$0]);
200
+ break;
201
+ case 65:
202
+ this.$ = [$$[$0]];
203
+ break;
204
+ case 66:
205
+ $$[$0 - 2].push($$[$0]);
206
+ this.$ = $$[$0 - 2];
207
+ break;
208
+ case 68:
209
+ this.$ = $$[$0 - 1] + $$[$0];
210
+ break;
211
+ }
212
+ }, "anonymous"),
213
+ table: [{ 3: 1, 4: 2, 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, o($V4, [2, 6]), { 3: 12, 4: 2, 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 1: [2, 2] }, { 4: 17, 5: $V5, 7: 13, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, o($V4, [2, 4]), o($V4, [2, 5]), { 1: [2, 1] }, { 8: [1, 41] }, { 4: 17, 5: $V5, 7: 42, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 43, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 44, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 45, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 46, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 47, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 48, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 49, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 50, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 26: 51, 89: [1, 52], 90: [1, 53] }, { 55: 54, 89: [1, 55], 90: [1, 56] }, { 29: [1, 59], 61: [1, 57], 63: [1, 58] }, o($Vn, [2, 17]), o($Vn, [2, 18]), o($Vn, [2, 19]), o($Vn, [2, 20]), { 30: 60, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 30: 63, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 30: 64, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, o($Vp, [2, 29]), o($Vp, [2, 30]), o($Vp, [2, 31]), o($Vp, [2, 32]), o($Vp, [2, 33]), o($Vp, [2, 34]), o($Vq, [2, 81]), o($Vq, [2, 82]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 8: [2, 13] }, { 8: [2, 14] }, { 8: [2, 15] }, { 8: [2, 16] }, { 27: [1, 65], 29: [1, 66] }, o($Vr, [2, 79]), o($Vr, [2, 80]), { 27: [1, 67], 29: [1, 68] }, o($Vr, [2, 85]), o($Vr, [2, 86]), { 62: 69, 65: $Vs, 66: $Vt, 67: $Vu, 68: $Vv, 69: $Vw, 70: $Vx, 71: $Vy }, { 62: 77, 65: $Vs, 66: $Vt, 67: $Vu, 68: $Vv, 69: $Vw, 70: $Vx, 71: $Vy }, { 30: 78, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 73: 79, 75: $Vz, 76: $VA, 78: 81, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, o($VK, [2, 60]), o($VK, [2, 62]), { 73: 93, 75: $Vz, 76: $VA, 78: 81, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, { 30: 94, 33: 62, 75: $Vo, 76: $VA, 89: $Vl, 90: $Vm }, { 5: [1, 95] }, { 30: 96, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 5: [1, 97] }, { 30: 98, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 63: [1, 99] }, o($VL, [2, 50]), o($VL, [2, 51]), o($VL, [2, 52]), o($VL, [2, 53]), o($VL, [2, 54]), o($VL, [2, 55]), o($VL, [2, 56]), { 64: [1, 100] }, o($Vn, [2, 59], { 76: $VA }), o($Vn, [2, 64], { 76: $VM }), { 33: 103, 75: [1, 102], 89: $Vl, 90: $Vm }, o($VN, [2, 65], { 79: 104, 75: $Vz, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }), o($VO, [2, 67]), o($VO, [2, 69]), o($VO, [2, 70]), o($VO, [2, 71]), o($VO, [2, 72]), o($VO, [2, 73]), o($VO, [2, 74]), o($VO, [2, 75]), o($VO, [2, 76]), o($VO, [2, 77]), o($VO, [2, 78]), o($Vn, [2, 57], { 76: $VM }), o($Vn, [2, 58], { 76: $VA }), { 5: $VP, 28: 105, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 27: [1, 112], 76: $VA }, { 5: $VV, 40: $VW, 56: 113, 57: $VX, 59: $VY }, { 27: [1, 118], 76: $VA }, { 33: 119, 89: $Vl, 90: $Vm }, { 33: 120, 89: $Vl, 90: $Vm }, { 75: $Vz, 78: 121, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, o($VK, [2, 61]), o($VK, [2, 63]), o($VO, [2, 68]), o($Vn, [2, 21]), { 32: [1, 122] }, { 32: [1, 123] }, { 32: [1, 124] }, { 32: [1, 125] }, { 5: $VP, 28: 126, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, o($Vn, [2, 28]), { 5: [1, 127] }, o($Vn, [2, 42]), { 32: [1, 128] }, { 32: [1, 129] }, { 5: $VV, 40: $VW, 56: 130, 57: $VX, 59: $VY }, o($Vn, [2, 47]), { 5: [1, 131] }, o($Vn, [2, 48]), o($Vn, [2, 49]), o($VN, [2, 66], { 79: 104, 75: $Vz, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }), { 33: 132, 89: $Vl, 90: $Vm }, { 35: 133, 89: [1, 134], 90: [1, 135] }, { 37: 136, 47: [1, 137], 48: [1, 138], 49: [1, 139] }, { 39: 140, 50: [1, 141], 51: [1, 142], 52: [1, 143], 53: [1, 144] }, o($Vn, [2, 27]), { 5: $VP, 28: 145, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 58: 146, 89: [1, 147], 90: [1, 148] }, { 60: 149, 89: [1, 150], 90: [1, 151] }, o($Vn, [2, 46]), { 5: $VV, 40: $VW, 56: 152, 57: $VX, 59: $VY }, { 5: [1, 153] }, { 5: [1, 154] }, { 5: [2, 83] }, { 5: [2, 84] }, { 5: [1, 155] }, { 5: [2, 35] }, { 5: [2, 36] }, { 5: [2, 37] }, { 5: [1, 156] }, { 5: [2, 38] }, { 5: [2, 39] }, { 5: [2, 40] }, { 5: [2, 41] }, o($Vn, [2, 22]), { 5: [1, 157] }, { 5: [2, 87] }, { 5: [2, 88] }, { 5: [1, 158] }, { 5: [2, 89] }, { 5: [2, 90] }, o($Vn, [2, 43]), { 5: $VP, 28: 159, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 160, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 161, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 162, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VV, 40: $VW, 56: 163, 57: $VX, 59: $VY }, { 5: $VV, 40: $VW, 56: 164, 57: $VX, 59: $VY }, o($Vn, [2, 23]), o($Vn, [2, 24]), o($Vn, [2, 25]), o($Vn, [2, 26]), o($Vn, [2, 44]), o($Vn, [2, 45])],
214
+ defaultActions: { 8: [2, 2], 12: [2, 1], 41: [2, 3], 42: [2, 8], 43: [2, 9], 44: [2, 10], 45: [2, 11], 46: [2, 12], 47: [2, 13], 48: [2, 14], 49: [2, 15], 50: [2, 16], 134: [2, 83], 135: [2, 84], 137: [2, 35], 138: [2, 36], 139: [2, 37], 141: [2, 38], 142: [2, 39], 143: [2, 40], 144: [2, 41], 147: [2, 87], 148: [2, 88], 150: [2, 89], 151: [2, 90] },
215
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
216
+ if (hash.recoverable) {
217
+ this.trace(str);
218
+ } else {
219
+ var error = new Error(str);
220
+ error.hash = hash;
221
+ throw error;
222
+ }
223
+ }, "parseError"),
224
+ parse: /* @__PURE__ */ __name(function parse(input) {
225
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
226
+ var args = lstack.slice.call(arguments, 1);
227
+ var lexer2 = Object.create(this.lexer);
228
+ var sharedState = { yy: {} };
229
+ for (var k in this.yy) {
230
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
231
+ sharedState.yy[k] = this.yy[k];
232
+ }
233
+ }
234
+ lexer2.setInput(input, sharedState.yy);
235
+ sharedState.yy.lexer = lexer2;
236
+ sharedState.yy.parser = this;
237
+ if (typeof lexer2.yylloc == "undefined") {
238
+ lexer2.yylloc = {};
239
+ }
240
+ var yyloc = lexer2.yylloc;
241
+ lstack.push(yyloc);
242
+ var ranges = lexer2.options && lexer2.options.ranges;
243
+ if (typeof sharedState.yy.parseError === "function") {
244
+ this.parseError = sharedState.yy.parseError;
245
+ } else {
246
+ this.parseError = Object.getPrototypeOf(this).parseError;
247
+ }
248
+ function popStack(n) {
249
+ stack.length = stack.length - 2 * n;
250
+ vstack.length = vstack.length - n;
251
+ lstack.length = lstack.length - n;
252
+ }
253
+ __name(popStack, "popStack");
254
+ function lex() {
255
+ var token;
256
+ token = tstack.pop() || lexer2.lex() || EOF;
257
+ if (typeof token !== "number") {
258
+ if (token instanceof Array) {
259
+ tstack = token;
260
+ token = tstack.pop();
261
+ }
262
+ token = self.symbols_[token] || token;
263
+ }
264
+ return token;
265
+ }
266
+ __name(lex, "lex");
267
+ var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
268
+ while (true) {
269
+ state = stack[stack.length - 1];
270
+ if (this.defaultActions[state]) {
271
+ action = this.defaultActions[state];
272
+ } else {
273
+ if (symbol === null || typeof symbol == "undefined") {
274
+ symbol = lex();
275
+ }
276
+ action = table[state] && table[state][symbol];
277
+ }
278
+ if (typeof action === "undefined" || !action.length || !action[0]) {
279
+ var errStr = "";
280
+ expected = [];
281
+ for (p in table[state]) {
282
+ if (this.terminals_[p] && p > TERROR) {
283
+ expected.push("'" + this.terminals_[p] + "'");
284
+ }
285
+ }
286
+ if (lexer2.showPosition) {
287
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
288
+ } else {
289
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
290
+ }
291
+ this.parseError(errStr, {
292
+ text: lexer2.match,
293
+ token: this.terminals_[symbol] || symbol,
294
+ line: lexer2.yylineno,
295
+ loc: yyloc,
296
+ expected
297
+ });
298
+ }
299
+ if (action[0] instanceof Array && action.length > 1) {
300
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
301
+ }
302
+ switch (action[0]) {
303
+ case 1:
304
+ stack.push(symbol);
305
+ vstack.push(lexer2.yytext);
306
+ lstack.push(lexer2.yylloc);
307
+ stack.push(action[1]);
308
+ symbol = null;
309
+ if (!preErrorSymbol) {
310
+ yyleng = lexer2.yyleng;
311
+ yytext = lexer2.yytext;
312
+ yylineno = lexer2.yylineno;
313
+ yyloc = lexer2.yylloc;
314
+ if (recovering > 0) {
315
+ recovering--;
316
+ }
317
+ } else {
318
+ symbol = preErrorSymbol;
319
+ preErrorSymbol = null;
320
+ }
321
+ break;
322
+ case 2:
323
+ len = this.productions_[action[1]][1];
324
+ yyval.$ = vstack[vstack.length - len];
325
+ yyval._$ = {
326
+ first_line: lstack[lstack.length - (len || 1)].first_line,
327
+ last_line: lstack[lstack.length - 1].last_line,
328
+ first_column: lstack[lstack.length - (len || 1)].first_column,
329
+ last_column: lstack[lstack.length - 1].last_column
330
+ };
331
+ if (ranges) {
332
+ yyval._$.range = [
333
+ lstack[lstack.length - (len || 1)].range[0],
334
+ lstack[lstack.length - 1].range[1]
335
+ ];
336
+ }
337
+ r = this.performAction.apply(yyval, [
338
+ yytext,
339
+ yyleng,
340
+ yylineno,
341
+ sharedState.yy,
342
+ action[1],
343
+ vstack,
344
+ lstack
345
+ ].concat(args));
346
+ if (typeof r !== "undefined") {
347
+ return r;
348
+ }
349
+ if (len) {
350
+ stack = stack.slice(0, -1 * len * 2);
351
+ vstack = vstack.slice(0, -1 * len);
352
+ lstack = lstack.slice(0, -1 * len);
353
+ }
354
+ stack.push(this.productions_[action[1]][0]);
355
+ vstack.push(yyval.$);
356
+ lstack.push(yyval._$);
357
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
358
+ stack.push(newState);
359
+ break;
360
+ case 3:
361
+ return true;
362
+ }
363
+ }
364
+ return true;
365
+ }, "parse")
366
+ };
367
+ var lexer = /* @__PURE__ */ function() {
368
+ var lexer2 = {
369
+ EOF: 1,
370
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
371
+ if (this.yy.parser) {
372
+ this.yy.parser.parseError(str, hash);
373
+ } else {
374
+ throw new Error(str);
375
+ }
376
+ }, "parseError"),
377
+ // resets the lexer, sets new input
378
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
379
+ this.yy = yy || this.yy || {};
380
+ this._input = input;
381
+ this._more = this._backtrack = this.done = false;
382
+ this.yylineno = this.yyleng = 0;
383
+ this.yytext = this.matched = this.match = "";
384
+ this.conditionStack = ["INITIAL"];
385
+ this.yylloc = {
386
+ first_line: 1,
387
+ first_column: 0,
388
+ last_line: 1,
389
+ last_column: 0
390
+ };
391
+ if (this.options.ranges) {
392
+ this.yylloc.range = [0, 0];
393
+ }
394
+ this.offset = 0;
395
+ return this;
396
+ }, "setInput"),
397
+ // consumes and returns one char from the input
398
+ input: /* @__PURE__ */ __name(function() {
399
+ var ch = this._input[0];
400
+ this.yytext += ch;
401
+ this.yyleng++;
402
+ this.offset++;
403
+ this.match += ch;
404
+ this.matched += ch;
405
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
406
+ if (lines) {
407
+ this.yylineno++;
408
+ this.yylloc.last_line++;
409
+ } else {
410
+ this.yylloc.last_column++;
411
+ }
412
+ if (this.options.ranges) {
413
+ this.yylloc.range[1]++;
414
+ }
415
+ this._input = this._input.slice(1);
416
+ return ch;
417
+ }, "input"),
418
+ // unshifts one char (or a string) into the input
419
+ unput: /* @__PURE__ */ __name(function(ch) {
420
+ var len = ch.length;
421
+ var lines = ch.split(/(?:\r\n?|\n)/g);
422
+ this._input = ch + this._input;
423
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
424
+ this.offset -= len;
425
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
426
+ this.match = this.match.substr(0, this.match.length - 1);
427
+ this.matched = this.matched.substr(0, this.matched.length - 1);
428
+ if (lines.length - 1) {
429
+ this.yylineno -= lines.length - 1;
430
+ }
431
+ var r = this.yylloc.range;
432
+ this.yylloc = {
433
+ first_line: this.yylloc.first_line,
434
+ last_line: this.yylineno + 1,
435
+ first_column: this.yylloc.first_column,
436
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
437
+ };
438
+ if (this.options.ranges) {
439
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
440
+ }
441
+ this.yyleng = this.yytext.length;
442
+ return this;
443
+ }, "unput"),
444
+ // When called from action, caches matched text and appends it on next action
445
+ more: /* @__PURE__ */ __name(function() {
446
+ this._more = true;
447
+ return this;
448
+ }, "more"),
449
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
450
+ reject: /* @__PURE__ */ __name(function() {
451
+ if (this.options.backtrack_lexer) {
452
+ this._backtrack = true;
453
+ } else {
454
+ 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(), {
455
+ text: "",
456
+ token: null,
457
+ line: this.yylineno
458
+ });
459
+ }
460
+ return this;
461
+ }, "reject"),
462
+ // retain first n characters of the match
463
+ less: /* @__PURE__ */ __name(function(n) {
464
+ this.unput(this.match.slice(n));
465
+ }, "less"),
466
+ // displays already matched input, i.e. for error messages
467
+ pastInput: /* @__PURE__ */ __name(function() {
468
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
469
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
470
+ }, "pastInput"),
471
+ // displays upcoming input, i.e. for error messages
472
+ upcomingInput: /* @__PURE__ */ __name(function() {
473
+ var next = this.match;
474
+ if (next.length < 20) {
475
+ next += this._input.substr(0, 20 - next.length);
476
+ }
477
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
478
+ }, "upcomingInput"),
479
+ // displays the character position where the lexing error occurred, i.e. for error messages
480
+ showPosition: /* @__PURE__ */ __name(function() {
481
+ var pre = this.pastInput();
482
+ var c = new Array(pre.length + 1).join("-");
483
+ return pre + this.upcomingInput() + "\n" + c + "^";
484
+ }, "showPosition"),
485
+ // test the lexed token: return FALSE when not a match, otherwise return token
486
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
487
+ var token, lines, backup;
488
+ if (this.options.backtrack_lexer) {
489
+ backup = {
490
+ yylineno: this.yylineno,
491
+ yylloc: {
492
+ first_line: this.yylloc.first_line,
493
+ last_line: this.last_line,
494
+ first_column: this.yylloc.first_column,
495
+ last_column: this.yylloc.last_column
496
+ },
497
+ yytext: this.yytext,
498
+ match: this.match,
499
+ matches: this.matches,
500
+ matched: this.matched,
501
+ yyleng: this.yyleng,
502
+ offset: this.offset,
503
+ _more: this._more,
504
+ _input: this._input,
505
+ yy: this.yy,
506
+ conditionStack: this.conditionStack.slice(0),
507
+ done: this.done
508
+ };
509
+ if (this.options.ranges) {
510
+ backup.yylloc.range = this.yylloc.range.slice(0);
511
+ }
512
+ }
513
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
514
+ if (lines) {
515
+ this.yylineno += lines.length;
516
+ }
517
+ this.yylloc = {
518
+ first_line: this.yylloc.last_line,
519
+ last_line: this.yylineno + 1,
520
+ first_column: this.yylloc.last_column,
521
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
522
+ };
523
+ this.yytext += match[0];
524
+ this.match += match[0];
525
+ this.matches = match;
526
+ this.yyleng = this.yytext.length;
527
+ if (this.options.ranges) {
528
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
529
+ }
530
+ this._more = false;
531
+ this._backtrack = false;
532
+ this._input = this._input.slice(match[0].length);
533
+ this.matched += match[0];
534
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
535
+ if (this.done && this._input) {
536
+ this.done = false;
537
+ }
538
+ if (token) {
539
+ return token;
540
+ } else if (this._backtrack) {
541
+ for (var k in backup) {
542
+ this[k] = backup[k];
543
+ }
544
+ return false;
545
+ }
546
+ return false;
547
+ }, "test_match"),
548
+ // return next match in input
549
+ next: /* @__PURE__ */ __name(function() {
550
+ if (this.done) {
551
+ return this.EOF;
552
+ }
553
+ if (!this._input) {
554
+ this.done = true;
555
+ }
556
+ var token, match, tempMatch, index;
557
+ if (!this._more) {
558
+ this.yytext = "";
559
+ this.match = "";
560
+ }
561
+ var rules = this._currentRules();
562
+ for (var i = 0; i < rules.length; i++) {
563
+ tempMatch = this._input.match(this.rules[rules[i]]);
564
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
565
+ match = tempMatch;
566
+ index = i;
567
+ if (this.options.backtrack_lexer) {
568
+ token = this.test_match(tempMatch, rules[i]);
569
+ if (token !== false) {
570
+ return token;
571
+ } else if (this._backtrack) {
572
+ match = false;
573
+ continue;
574
+ } else {
575
+ return false;
576
+ }
577
+ } else if (!this.options.flex) {
578
+ break;
579
+ }
580
+ }
581
+ }
582
+ if (match) {
583
+ token = this.test_match(match, rules[index]);
584
+ if (token !== false) {
585
+ return token;
586
+ }
587
+ return false;
588
+ }
589
+ if (this._input === "") {
590
+ return this.EOF;
591
+ } else {
592
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
593
+ text: "",
594
+ token: null,
595
+ line: this.yylineno
596
+ });
597
+ }
598
+ }, "next"),
599
+ // return next match that has a token
600
+ lex: /* @__PURE__ */ __name(function lex() {
601
+ var r = this.next();
602
+ if (r) {
603
+ return r;
604
+ } else {
605
+ return this.lex();
606
+ }
607
+ }, "lex"),
608
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
609
+ begin: /* @__PURE__ */ __name(function begin(condition) {
610
+ this.conditionStack.push(condition);
611
+ }, "begin"),
612
+ // pop the previously active lexer condition state off the condition stack
613
+ popState: /* @__PURE__ */ __name(function popState() {
614
+ var n = this.conditionStack.length - 1;
615
+ if (n > 0) {
616
+ return this.conditionStack.pop();
617
+ } else {
618
+ return this.conditionStack[0];
619
+ }
620
+ }, "popState"),
621
+ // produce the lexer rule set which is active for the currently active lexer condition state
622
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
623
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
624
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
625
+ } else {
626
+ return this.conditions["INITIAL"].rules;
627
+ }
628
+ }, "_currentRules"),
629
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
630
+ topState: /* @__PURE__ */ __name(function topState(n) {
631
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
632
+ if (n >= 0) {
633
+ return this.conditionStack[n];
634
+ } else {
635
+ return "INITIAL";
636
+ }
637
+ }, "topState"),
638
+ // alias for begin(condition)
639
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
640
+ this.begin(condition);
641
+ }, "pushState"),
642
+ // return the number of states currently on the stack
643
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
644
+ return this.conditionStack.length;
645
+ }, "stateStackSize"),
646
+ options: { "case-insensitive": true },
647
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
648
+ var YYSTATE = YY_START;
649
+ switch ($avoiding_name_collisions) {
650
+ case 0:
651
+ return "title";
652
+ break;
653
+ case 1:
654
+ this.begin("acc_title");
655
+ return 9;
656
+ break;
657
+ case 2:
658
+ this.popState();
659
+ return "acc_title_value";
660
+ break;
661
+ case 3:
662
+ this.begin("acc_descr");
663
+ return 11;
664
+ break;
665
+ case 4:
666
+ this.popState();
667
+ return "acc_descr_value";
668
+ break;
669
+ case 5:
670
+ this.begin("acc_descr_multiline");
671
+ break;
672
+ case 6:
673
+ this.popState();
674
+ break;
675
+ case 7:
676
+ return "acc_descr_multiline_value";
677
+ break;
678
+ case 8:
679
+ return 21;
680
+ break;
681
+ case 9:
682
+ return 22;
683
+ break;
684
+ case 10:
685
+ return 23;
686
+ break;
687
+ case 11:
688
+ return 24;
689
+ break;
690
+ case 12:
691
+ return 5;
692
+ break;
693
+ case 13:
694
+ break;
695
+ case 14:
696
+ break;
697
+ case 15:
698
+ break;
699
+ case 16:
700
+ return 8;
701
+ break;
702
+ case 17:
703
+ return 6;
704
+ break;
705
+ case 18:
706
+ return 27;
707
+ break;
708
+ case 19:
709
+ return 40;
710
+ break;
711
+ case 20:
712
+ return 29;
713
+ break;
714
+ case 21:
715
+ return 32;
716
+ break;
717
+ case 22:
718
+ return 31;
719
+ break;
720
+ case 23:
721
+ return 34;
722
+ break;
723
+ case 24:
724
+ return 36;
725
+ break;
726
+ case 25:
727
+ return 38;
728
+ break;
729
+ case 26:
730
+ return 41;
731
+ break;
732
+ case 27:
733
+ return 42;
734
+ break;
735
+ case 28:
736
+ return 43;
737
+ break;
738
+ case 29:
739
+ return 44;
740
+ break;
741
+ case 30:
742
+ return 45;
743
+ break;
744
+ case 31:
745
+ return 46;
746
+ break;
747
+ case 32:
748
+ return 47;
749
+ break;
750
+ case 33:
751
+ return 48;
752
+ break;
753
+ case 34:
754
+ return 49;
755
+ break;
756
+ case 35:
757
+ return 50;
758
+ break;
759
+ case 36:
760
+ return 51;
761
+ break;
762
+ case 37:
763
+ return 52;
764
+ break;
765
+ case 38:
766
+ return 53;
767
+ break;
768
+ case 39:
769
+ return 54;
770
+ break;
771
+ case 40:
772
+ return 65;
773
+ break;
774
+ case 41:
775
+ return 66;
776
+ break;
777
+ case 42:
778
+ return 67;
779
+ break;
780
+ case 43:
781
+ return 68;
782
+ break;
783
+ case 44:
784
+ return 69;
785
+ break;
786
+ case 45:
787
+ return 70;
788
+ break;
789
+ case 46:
790
+ return 71;
791
+ break;
792
+ case 47:
793
+ return 57;
794
+ break;
795
+ case 48:
796
+ return 59;
797
+ break;
798
+ case 49:
799
+ this.begin("style");
800
+ return 77;
801
+ break;
802
+ case 50:
803
+ return 75;
804
+ break;
805
+ case 51:
806
+ return 81;
807
+ break;
808
+ case 52:
809
+ return 88;
810
+ break;
811
+ case 53:
812
+ return "PERCENT";
813
+ break;
814
+ case 54:
815
+ return 86;
816
+ break;
817
+ case 55:
818
+ return 84;
819
+ break;
820
+ case 56:
821
+ break;
822
+ case 57:
823
+ this.begin("string");
824
+ break;
825
+ case 58:
826
+ this.popState();
827
+ break;
828
+ case 59:
829
+ this.begin("style");
830
+ return 72;
831
+ break;
832
+ case 60:
833
+ this.begin("style");
834
+ return 74;
835
+ break;
836
+ case 61:
837
+ return 61;
838
+ break;
839
+ case 62:
840
+ return 64;
841
+ break;
842
+ case 63:
843
+ return 63;
844
+ break;
845
+ case 64:
846
+ this.begin("string");
847
+ break;
848
+ case 65:
849
+ this.popState();
850
+ break;
851
+ case 66:
852
+ return "qString";
853
+ break;
854
+ case 67:
855
+ yy_.yytext = yy_.yytext.trim();
856
+ return 89;
857
+ break;
858
+ case 68:
859
+ return 75;
860
+ break;
861
+ case 69:
862
+ return 80;
863
+ break;
864
+ case 70:
865
+ return 76;
866
+ break;
867
+ }
868
+ }, "anonymous"),
869
+ rules: [/^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/i, /^(?::{3})/i, /^(?::)/i, /^(?:id\b)/i, /^(?:text\b)/i, /^(?:risk\b)/i, /^(?:verifyMethod\b)/i, /^(?:requirement\b)/i, /^(?:functionalRequirement\b)/i, /^(?:interfaceRequirement\b)/i, /^(?:performanceRequirement\b)/i, /^(?:physicalRequirement\b)/i, /^(?:designConstraint\b)/i, /^(?:low\b)/i, /^(?:medium\b)/i, /^(?:high\b)/i, /^(?:analysis\b)/i, /^(?:demonstration\b)/i, /^(?:inspection\b)/i, /^(?:test\b)/i, /^(?:element\b)/i, /^(?:contains\b)/i, /^(?:copies\b)/i, /^(?:derives\b)/i, /^(?:satisfies\b)/i, /^(?:verifies\b)/i, /^(?:refines\b)/i, /^(?:traces\b)/i, /^(?:type\b)/i, /^(?:docref\b)/i, /^(?:style\b)/i, /^(?:\w+)/i, /^(?::)/i, /^(?:;)/i, /^(?:%)/i, /^(?:-)/i, /^(?:#)/i, /^(?: )/i, /^(?:["])/i, /^(?:\n)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i, /^(?:\w+)/i, /^(?:[0-9]+)/i, /^(?:,)/i],
870
+ conditions: { "acc_descr_multiline": { "rules": [6, 7, 68, 69, 70], "inclusive": false }, "acc_descr": { "rules": [4, 68, 69, 70], "inclusive": false }, "acc_title": { "rules": [2, 68, 69, 70], "inclusive": false }, "style": { "rules": [50, 51, 52, 53, 54, 55, 56, 57, 58, 68, 69, 70], "inclusive": false }, "unqString": { "rules": [68, 69, 70], "inclusive": false }, "token": { "rules": [68, 69, 70], "inclusive": false }, "string": { "rules": [65, 66, 68, 69, 70], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 59, 60, 61, 62, 63, 64, 67, 68, 69, 70], "inclusive": true } }
871
+ };
872
+ return lexer2;
873
+ }();
874
+ parser2.lexer = lexer;
875
+ function Parser() {
876
+ this.yy = {};
877
+ }
878
+ __name(Parser, "Parser");
879
+ Parser.prototype = parser2;
880
+ parser2.Parser = Parser;
881
+ return new Parser();
882
+ }();
883
+ parser.parser = parser;
884
+ var requirementDiagram_default = parser;
885
+ var RequirementDB = class {
886
+ constructor() {
887
+ this.relations = [];
888
+ this.latestRequirement = this.getInitialRequirement();
889
+ this.requirements = /* @__PURE__ */ new Map();
890
+ this.latestElement = this.getInitialElement();
891
+ this.elements = /* @__PURE__ */ new Map();
892
+ this.classes = /* @__PURE__ */ new Map();
893
+ this.direction = "TB";
894
+ this.RequirementType = {
895
+ REQUIREMENT: "Requirement",
896
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
897
+ INTERFACE_REQUIREMENT: "Interface Requirement",
898
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
899
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
900
+ DESIGN_CONSTRAINT: "Design Constraint"
901
+ };
902
+ this.RiskLevel = {
903
+ LOW_RISK: "Low",
904
+ MED_RISK: "Medium",
905
+ HIGH_RISK: "High"
906
+ };
907
+ this.VerifyType = {
908
+ VERIFY_ANALYSIS: "Analysis",
909
+ VERIFY_DEMONSTRATION: "Demonstration",
910
+ VERIFY_INSPECTION: "Inspection",
911
+ VERIFY_TEST: "Test"
912
+ };
913
+ this.Relationships = {
914
+ CONTAINS: "contains",
915
+ COPIES: "copies",
916
+ DERIVES: "derives",
917
+ SATISFIES: "satisfies",
918
+ VERIFIES: "verifies",
919
+ REFINES: "refines",
920
+ TRACES: "traces"
921
+ };
922
+ this.setAccTitle = setAccTitle;
923
+ this.getAccTitle = getAccTitle;
924
+ this.setAccDescription = setAccDescription;
925
+ this.getAccDescription = getAccDescription;
926
+ this.setDiagramTitle = setDiagramTitle;
927
+ this.getDiagramTitle = getDiagramTitle;
928
+ this.getConfig = /* @__PURE__ */ __name(() => getConfig2().requirement, "getConfig");
929
+ this.clear();
930
+ this.setDirection = this.setDirection.bind(this);
931
+ this.addRequirement = this.addRequirement.bind(this);
932
+ this.setNewReqId = this.setNewReqId.bind(this);
933
+ this.setNewReqRisk = this.setNewReqRisk.bind(this);
934
+ this.setNewReqText = this.setNewReqText.bind(this);
935
+ this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this);
936
+ this.addElement = this.addElement.bind(this);
937
+ this.setNewElementType = this.setNewElementType.bind(this);
938
+ this.setNewElementDocRef = this.setNewElementDocRef.bind(this);
939
+ this.addRelationship = this.addRelationship.bind(this);
940
+ this.setCssStyle = this.setCssStyle.bind(this);
941
+ this.setClass = this.setClass.bind(this);
942
+ this.defineClass = this.defineClass.bind(this);
943
+ this.setAccTitle = this.setAccTitle.bind(this);
944
+ this.setAccDescription = this.setAccDescription.bind(this);
945
+ }
946
+ static {
947
+ __name(this, "RequirementDB");
948
+ }
949
+ getDirection() {
950
+ return this.direction;
951
+ }
952
+ setDirection(dir) {
953
+ this.direction = dir;
954
+ }
955
+ resetLatestRequirement() {
956
+ this.latestRequirement = this.getInitialRequirement();
957
+ }
958
+ resetLatestElement() {
959
+ this.latestElement = this.getInitialElement();
960
+ }
961
+ getInitialRequirement() {
962
+ return {
963
+ requirementId: "",
964
+ text: "",
965
+ risk: "",
966
+ verifyMethod: "",
967
+ name: "",
968
+ type: "",
969
+ cssStyles: [],
970
+ classes: ["default"]
971
+ };
972
+ }
973
+ getInitialElement() {
974
+ return {
975
+ name: "",
976
+ type: "",
977
+ docRef: "",
978
+ cssStyles: [],
979
+ classes: ["default"]
980
+ };
981
+ }
982
+ addRequirement(name, type) {
983
+ if (!this.requirements.has(name)) {
984
+ this.requirements.set(name, {
985
+ name,
986
+ type,
987
+ requirementId: this.latestRequirement.requirementId,
988
+ text: this.latestRequirement.text,
989
+ risk: this.latestRequirement.risk,
990
+ verifyMethod: this.latestRequirement.verifyMethod,
991
+ cssStyles: [],
992
+ classes: ["default"]
993
+ });
994
+ }
995
+ this.resetLatestRequirement();
996
+ return this.requirements.get(name);
997
+ }
998
+ getRequirements() {
999
+ return this.requirements;
1000
+ }
1001
+ setNewReqId(id) {
1002
+ if (this.latestRequirement !== void 0) {
1003
+ this.latestRequirement.requirementId = id;
1004
+ }
1005
+ }
1006
+ setNewReqText(text) {
1007
+ if (this.latestRequirement !== void 0) {
1008
+ this.latestRequirement.text = text;
1009
+ }
1010
+ }
1011
+ setNewReqRisk(risk) {
1012
+ if (this.latestRequirement !== void 0) {
1013
+ this.latestRequirement.risk = risk;
1014
+ }
1015
+ }
1016
+ setNewReqVerifyMethod(verifyMethod) {
1017
+ if (this.latestRequirement !== void 0) {
1018
+ this.latestRequirement.verifyMethod = verifyMethod;
1019
+ }
1020
+ }
1021
+ addElement(name) {
1022
+ if (!this.elements.has(name)) {
1023
+ this.elements.set(name, {
1024
+ name,
1025
+ type: this.latestElement.type,
1026
+ docRef: this.latestElement.docRef,
1027
+ cssStyles: [],
1028
+ classes: ["default"]
1029
+ });
1030
+ log.info("Added new element: ", name);
1031
+ }
1032
+ this.resetLatestElement();
1033
+ return this.elements.get(name);
1034
+ }
1035
+ getElements() {
1036
+ return this.elements;
1037
+ }
1038
+ setNewElementType(type) {
1039
+ if (this.latestElement !== void 0) {
1040
+ this.latestElement.type = type;
1041
+ }
1042
+ }
1043
+ setNewElementDocRef(docRef) {
1044
+ if (this.latestElement !== void 0) {
1045
+ this.latestElement.docRef = docRef;
1046
+ }
1047
+ }
1048
+ addRelationship(type, src, dst) {
1049
+ this.relations.push({
1050
+ type,
1051
+ src,
1052
+ dst
1053
+ });
1054
+ }
1055
+ getRelationships() {
1056
+ return this.relations;
1057
+ }
1058
+ clear() {
1059
+ this.relations = [];
1060
+ this.resetLatestRequirement();
1061
+ this.requirements = /* @__PURE__ */ new Map();
1062
+ this.resetLatestElement();
1063
+ this.elements = /* @__PURE__ */ new Map();
1064
+ this.classes = /* @__PURE__ */ new Map();
1065
+ clear();
1066
+ }
1067
+ setCssStyle(ids, styles) {
1068
+ for (const id of ids) {
1069
+ const node = this.requirements.get(id) ?? this.elements.get(id);
1070
+ if (!styles || !node) {
1071
+ return;
1072
+ }
1073
+ for (const s of styles) {
1074
+ if (s.includes(",")) {
1075
+ node.cssStyles.push(...s.split(","));
1076
+ } else {
1077
+ node.cssStyles.push(s);
1078
+ }
1079
+ }
1080
+ }
1081
+ }
1082
+ setClass(ids, classNames) {
1083
+ for (const id of ids) {
1084
+ const node = this.requirements.get(id) ?? this.elements.get(id);
1085
+ if (node) {
1086
+ for (const _class of classNames) {
1087
+ node.classes.push(_class);
1088
+ const styles = this.classes.get(_class)?.styles;
1089
+ if (styles) {
1090
+ node.cssStyles.push(...styles);
1091
+ }
1092
+ }
1093
+ }
1094
+ }
1095
+ }
1096
+ defineClass(ids, style) {
1097
+ for (const id of ids) {
1098
+ let styleClass = this.classes.get(id);
1099
+ if (styleClass === void 0) {
1100
+ styleClass = { id, styles: [], textStyles: [] };
1101
+ this.classes.set(id, styleClass);
1102
+ }
1103
+ if (style) {
1104
+ style.forEach(function(s) {
1105
+ if (/color/.exec(s)) {
1106
+ const newStyle = s.replace("fill", "bgFill");
1107
+ styleClass.textStyles.push(newStyle);
1108
+ }
1109
+ styleClass.styles.push(s);
1110
+ });
1111
+ }
1112
+ this.requirements.forEach((value) => {
1113
+ if (value.classes.includes(id)) {
1114
+ value.cssStyles.push(...style.flatMap((s) => s.split(",")));
1115
+ }
1116
+ });
1117
+ this.elements.forEach((value) => {
1118
+ if (value.classes.includes(id)) {
1119
+ value.cssStyles.push(...style.flatMap((s) => s.split(",")));
1120
+ }
1121
+ });
1122
+ }
1123
+ }
1124
+ getClasses() {
1125
+ return this.classes;
1126
+ }
1127
+ getData() {
1128
+ const config = getConfig2();
1129
+ const nodes = [];
1130
+ const edges = [];
1131
+ for (const requirement of this.requirements.values()) {
1132
+ const node = requirement;
1133
+ node.id = requirement.name;
1134
+ node.cssStyles = requirement.cssStyles;
1135
+ node.cssClasses = requirement.classes.join(" ");
1136
+ node.shape = "requirementBox";
1137
+ node.look = config.look;
1138
+ node.colorIndex = nodes.length;
1139
+ nodes.push(node);
1140
+ }
1141
+ for (const element of this.elements.values()) {
1142
+ const node = element;
1143
+ node.shape = "requirementBox";
1144
+ node.look = config.look;
1145
+ node.id = element.name;
1146
+ node.cssStyles = element.cssStyles;
1147
+ node.cssClasses = element.classes.join(" ");
1148
+ node.colorIndex = nodes.length;
1149
+ nodes.push(node);
1150
+ }
1151
+ for (const relation of this.relations) {
1152
+ let counter = 0;
1153
+ const isContains = relation.type === this.Relationships.CONTAINS;
1154
+ const edge = {
1155
+ id: `${relation.src}-${relation.dst}-${counter}`,
1156
+ start: this.requirements.get(relation.src)?.name ?? this.elements.get(relation.src)?.name,
1157
+ end: this.requirements.get(relation.dst)?.name ?? this.elements.get(relation.dst)?.name,
1158
+ label: `&lt;&lt;${relation.type}&gt;&gt;`,
1159
+ classes: "relationshipLine",
1160
+ style: ["fill:none", isContains ? "" : "stroke-dasharray: 10,7"],
1161
+ labelpos: "c",
1162
+ thickness: "normal",
1163
+ type: "normal",
1164
+ pattern: isContains ? "normal" : "dashed",
1165
+ arrowTypeStart: isContains ? "requirement_contains" : "",
1166
+ arrowTypeEnd: isContains ? "" : "requirement_arrow",
1167
+ look: config.look,
1168
+ labelType: "markdown"
1169
+ };
1170
+ edges.push(edge);
1171
+ counter++;
1172
+ }
1173
+ return { nodes, edges, other: {}, config, direction: this.getDirection() };
1174
+ }
1175
+ };
1176
+ var genColor = /* @__PURE__ */ __name((options) => {
1177
+ const config = getConfig();
1178
+ const { themeVariables, look } = config;
1179
+ const { bkgColorArray, borderColorArray } = themeVariables;
1180
+ if (!borderColorArray?.length) {
1181
+ return "";
1182
+ }
1183
+ let sections = "";
1184
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1185
+ sections += `
1186
+
1187
+ [data-look="${look}"][data-color-id="color-${i}"].node path {
1188
+ stroke: ${borderColorArray[i]};
1189
+ fill: ${bkgColorArray?.length ? bkgColorArray[i] : ""};
1190
+ }
1191
+
1192
+ [data-look="${look}"][data-color-id="color-${i}"].node rect {
1193
+ stroke: ${borderColorArray[i]};
1194
+ fill: ${bkgColorArray?.length ? bkgColorArray[i] : ""};
1195
+ }
1196
+ `;
1197
+ }
1198
+ return sections;
1199
+ }, "genColor");
1200
+ var getStyles = /* @__PURE__ */ __name((options) => {
1201
+ const config = getConfig();
1202
+ const { look, themeVariables } = config;
1203
+ const { requirementEdgeLabelBackground } = themeVariables;
1204
+ return `
1205
+ ${genColor(options)}
1206
+ marker {
1207
+ fill: ${options.relationColor};
1208
+ stroke: ${options.relationColor};
1209
+ }
1210
+
1211
+ marker.cross {
1212
+ stroke: ${options.lineColor};
1213
+ }
1214
+
1215
+ svg {
1216
+ font-family: ${options.fontFamily};
1217
+ font-size: ${options.fontSize};
1218
+ }
1219
+
1220
+ .reqBox {
1221
+ fill: ${options.requirementBackground};
1222
+ fill-opacity: 1.0;
1223
+ stroke: ${options.requirementBorderColor};
1224
+ stroke-width: ${options.requirementBorderSize};
1225
+ }
1226
+
1227
+ .reqTitle, .reqLabel{
1228
+ fill: ${options.requirementTextColor};
1229
+ }
1230
+ .reqLabelBox {
1231
+ fill: ${options.relationLabelBackground};
1232
+ fill-opacity: 1.0;
1233
+ }
1234
+
1235
+ .req-title-line {
1236
+ stroke: ${options.requirementBorderColor};
1237
+ stroke-width: ${options.requirementBorderSize};
1238
+ }
1239
+ .relationshipLine {
1240
+ stroke: ${options.relationColor};
1241
+ stroke-width: ${look === "neo" ? options.strokeWidth : "1px"};
1242
+ }
1243
+ .relationshipLabel {
1244
+ fill: ${options.relationLabelColor};
1245
+ }
1246
+ .edgeLabel {
1247
+ background-color: ${options.edgeLabelBackground};
1248
+ }
1249
+ .edgeLabel .label rect {
1250
+ fill: ${options.edgeLabelBackground};
1251
+ }
1252
+ .edgeLabel .label text {
1253
+ fill: ${options.relationLabelColor};
1254
+ }
1255
+ .divider {
1256
+ stroke: ${options.nodeBorder};
1257
+ stroke-width: 1;
1258
+ }
1259
+ .label {
1260
+ font-family: ${options.fontFamily};
1261
+ color: ${options.nodeTextColor || options.textColor};
1262
+ }
1263
+ .label text,span {
1264
+ fill: ${options.nodeTextColor || options.textColor};
1265
+ color: ${options.nodeTextColor || options.textColor};
1266
+ }
1267
+ .labelBkg {
1268
+ background-color: ${requirementEdgeLabelBackground ?? options.edgeLabelBackground};
1269
+ }
1270
+
1271
+ `;
1272
+ }, "getStyles");
1273
+ var styles_default = getStyles;
1274
+ var requirementRenderer_exports = {};
1275
+ __export(requirementRenderer_exports, {
1276
+ draw: () => draw
1277
+ });
1278
+ var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
1279
+ log.info("REF0:");
1280
+ log.info("Drawing requirement diagram (unified)", id);
1281
+ const { securityLevel, state: conf, layout, look } = getConfig2();
1282
+ const data4Layout = diag.db.getData();
1283
+ const svg = getDiagramElement(id, securityLevel);
1284
+ data4Layout.type = diag.type;
1285
+ data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
1286
+ data4Layout.nodeSpacing = conf?.nodeSpacing ?? 50;
1287
+ data4Layout.rankSpacing = conf?.rankSpacing ?? 50;
1288
+ data4Layout.markers = look === "neo" ? ["requirement_contains_neo", "requirement_arrow_neo"] : ["requirement_contains", "requirement_arrow"];
1289
+ data4Layout.diagramId = id;
1290
+ await render(data4Layout, svg);
1291
+ const padding = 8;
1292
+ utils_default.insertTitle(
1293
+ svg,
1294
+ "requirementDiagramTitleText",
1295
+ conf?.titleTopMargin ?? 25,
1296
+ diag.db.getDiagramTitle()
1297
+ );
1298
+ setupViewPortForSVG(svg, padding, "requirementDiagram", conf?.useMaxWidth ?? true);
1299
+ }, "draw");
1300
+ var diagram = {
1301
+ parser: requirementDiagram_default,
1302
+ get db() {
1303
+ return new RequirementDB();
1304
+ },
1305
+ renderer: requirementRenderer_exports,
1306
+ styles: styles_default
1307
+ };
1308
+ export {
1309
+ diagram
1310
+ };
1311
+ //# sourceMappingURL=requirementDiagram-MS252O5E-UOMT3FCC.js.map