@kong-ui-public/documentation 0.3.42 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
  2. package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
  3. package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
  4. package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
  5. package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
  6. package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
  7. package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
  8. package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
  9. package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
  10. package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
  11. package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
  12. package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
  13. package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
  14. package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
  15. package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
  16. package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
  17. package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
  18. package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
  19. package/dist/docker-B10O2enb-B10O2enb.js +7 -0
  20. package/dist/documentation.es.js +5 -3130
  21. package/dist/documentation.umd.js +10152 -50
  22. package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
  23. package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
  24. package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
  25. package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
  26. package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
  27. package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
  28. package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
  29. package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
  30. package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
  31. package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
  32. package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
  33. package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
  34. package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
  35. package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
  36. package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
  37. package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
  38. package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
  39. package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
  40. package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
  41. package/dist/index-B-5DuDrq.js +29996 -0
  42. package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
  43. package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
  44. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  45. package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
  46. package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
  47. package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
  48. package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
  49. package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
  50. package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
  51. package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
  52. package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
  53. package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
  54. package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
  55. package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
  56. package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
  57. package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
  58. package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
  59. package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
  60. package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
  61. package/dist/make-whncTQWE-whncTQWE.js +7 -0
  62. package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
  63. package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
  64. package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
  65. package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
  66. package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
  67. package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
  68. package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
  69. package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
  70. package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
  71. package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
  72. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  73. package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
  74. package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
  75. package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
  76. package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
  77. package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
  78. package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
  79. package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
  80. package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
  81. package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
  82. package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
  83. package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
  84. package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
  85. package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
  86. package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
  87. package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
  88. package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
  89. package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
  90. package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
  91. package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
  92. package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
  93. package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
  94. package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
  95. package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
  96. package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
  97. package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
  98. package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
  99. package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
  100. package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
  101. package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
  102. package/dist/style.css +1 -1
  103. package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
  104. package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
  105. package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
  106. package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
  107. package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
  108. package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
  109. package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
  110. package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
  111. package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
  112. package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
  113. package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
  114. package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
  115. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
  116. package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
  117. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
  118. package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
  119. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
  120. package/dist/types/composables/useI18n.d.ts +4 -0
  121. package/dist/types/composables/useI18n.d.ts.map +1 -1
  122. package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
  123. package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
  124. package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
  125. package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
  126. package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
  127. package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
  128. package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
  129. package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
  130. package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
  131. package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
  132. package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
  133. package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
  134. package/package.json +13 -13
  135. package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
  136. package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
  137. package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
  138. package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
  139. package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
  140. package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
  141. package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
  142. package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
  143. package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
  144. package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
  145. package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
  146. package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
  147. package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
  148. package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
  149. package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
  150. package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
  151. package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
  152. package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
  153. package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
  154. package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
  155. package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
@@ -0,0 +1,767 @@
1
+ import { c as Tt, s as Ct, g as Mt, b as Ft, a as Dt, l as Nt, z as Pt, h as ot, i as Vt, j as bt } from "./index-B-5DuDrq.js";
2
+ import { Z as Ut } from "./graph-4FyIWFHN-774TpNLL.js";
3
+ import { A as Yt } from "./layout-2-aEcfuw-BqqWy5wB.js";
4
+ import { P as Bt } from "./line-nVq5kEiy-DtZd3PHZ.js";
5
+ var ct = function() {
6
+ var t = function(x, e, s, r) {
7
+ for (s = s || {}, r = x.length; r--; s[x[r]] = e)
8
+ ;
9
+ return s;
10
+ }, i = [1, 3], o = [1, 4], c = [1, 5], l = [1, 6], u = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], h = [1, 18], a = [2, 7], y = [1, 22], E = [1, 23], R = [1, 24], T = [1, 25], N = [1, 26], A = [1, 27], v = [1, 20], S = [1, 28], $ = [1, 29], F = [62, 63], ut = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], yt = [1, 47], dt = [1, 48], pt = [1, 49], _t = [1, 50], Et = [1, 51], gt = [1, 52], Rt = [1, 53], w = [53, 54], D = [1, 64], P = [1, 60], V = [1, 61], U = [1, 62], Y = [1, 63], B = [1, 65], j = [1, 69], G = [1, 70], z = [1, 67], X = [1, 68], m = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], et = {
11
+ trace: function() {
12
+ },
13
+ yy: {},
14
+ 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, requirementType: 17, requirementName: 18, STRUCT_START: 19, requirementBody: 20, ID: 21, COLONSEP: 22, id: 23, TEXT: 24, text: 25, RISK: 26, riskLevel: 27, VERIFYMTHD: 28, verifyType: 29, STRUCT_STOP: 30, REQUIREMENT: 31, FUNCTIONAL_REQUIREMENT: 32, INTERFACE_REQUIREMENT: 33, PERFORMANCE_REQUIREMENT: 34, PHYSICAL_REQUIREMENT: 35, DESIGN_CONSTRAINT: 36, LOW_RISK: 37, MED_RISK: 38, HIGH_RISK: 39, VERIFY_ANALYSIS: 40, VERIFY_DEMONSTRATION: 41, VERIFY_INSPECTION: 42, VERIFY_TEST: 43, ELEMENT: 44, elementName: 45, elementBody: 46, TYPE: 47, type: 48, DOCREF: 49, ref: 50, END_ARROW_L: 51, relationship: 52, LINE: 53, END_ARROW_R: 54, CONTAINS: 55, COPIES: 56, DERIVES: 57, SATISFIES: 58, VERIFIES: 59, REFINES: 60, TRACES: 61, unqString: 62, qString: 63, $accept: 0, $end: 1 },
15
+ 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", 19: "STRUCT_START", 21: "ID", 22: "COLONSEP", 24: "TEXT", 26: "RISK", 28: "VERIFYMTHD", 30: "STRUCT_STOP", 31: "REQUIREMENT", 32: "FUNCTIONAL_REQUIREMENT", 33: "INTERFACE_REQUIREMENT", 34: "PERFORMANCE_REQUIREMENT", 35: "PHYSICAL_REQUIREMENT", 36: "DESIGN_CONSTRAINT", 37: "LOW_RISK", 38: "MED_RISK", 39: "HIGH_RISK", 40: "VERIFY_ANALYSIS", 41: "VERIFY_DEMONSTRATION", 42: "VERIFY_INSPECTION", 43: "VERIFY_TEST", 44: "ELEMENT", 47: "TYPE", 49: "DOCREF", 51: "END_ARROW_L", 53: "LINE", 54: "END_ARROW_R", 55: "CONTAINS", 56: "COPIES", 57: "DERIVES", 58: "SATISFIES", 59: "VERIFIES", 60: "REFINES", 61: "TRACES", 62: "unqString", 63: "qString" },
16
+ 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], [14, 5], [20, 5], [20, 5], [20, 5], [20, 5], [20, 2], [20, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [27, 1], [27, 1], [27, 1], [29, 1], [29, 1], [29, 1], [29, 1], [15, 5], [46, 5], [46, 5], [46, 2], [46, 1], [16, 5], [16, 5], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [18, 1], [18, 1], [23, 1], [23, 1], [25, 1], [25, 1], [45, 1], [45, 1], [48, 1], [48, 1], [50, 1], [50, 1]],
17
+ performAction: function(x, e, s, r, d, n, f) {
18
+ var _ = n.length - 1;
19
+ switch (d) {
20
+ case 4:
21
+ this.$ = n[_].trim(), r.setAccTitle(this.$);
22
+ break;
23
+ case 5:
24
+ case 6:
25
+ this.$ = n[_].trim(), r.setAccDescription(this.$);
26
+ break;
27
+ case 7:
28
+ this.$ = [];
29
+ break;
30
+ case 13:
31
+ r.addRequirement(n[_ - 3], n[_ - 4]);
32
+ break;
33
+ case 14:
34
+ r.setNewReqId(n[_ - 2]);
35
+ break;
36
+ case 15:
37
+ r.setNewReqText(n[_ - 2]);
38
+ break;
39
+ case 16:
40
+ r.setNewReqRisk(n[_ - 2]);
41
+ break;
42
+ case 17:
43
+ r.setNewReqVerifyMethod(n[_ - 2]);
44
+ break;
45
+ case 20:
46
+ this.$ = r.RequirementType.REQUIREMENT;
47
+ break;
48
+ case 21:
49
+ this.$ = r.RequirementType.FUNCTIONAL_REQUIREMENT;
50
+ break;
51
+ case 22:
52
+ this.$ = r.RequirementType.INTERFACE_REQUIREMENT;
53
+ break;
54
+ case 23:
55
+ this.$ = r.RequirementType.PERFORMANCE_REQUIREMENT;
56
+ break;
57
+ case 24:
58
+ this.$ = r.RequirementType.PHYSICAL_REQUIREMENT;
59
+ break;
60
+ case 25:
61
+ this.$ = r.RequirementType.DESIGN_CONSTRAINT;
62
+ break;
63
+ case 26:
64
+ this.$ = r.RiskLevel.LOW_RISK;
65
+ break;
66
+ case 27:
67
+ this.$ = r.RiskLevel.MED_RISK;
68
+ break;
69
+ case 28:
70
+ this.$ = r.RiskLevel.HIGH_RISK;
71
+ break;
72
+ case 29:
73
+ this.$ = r.VerifyType.VERIFY_ANALYSIS;
74
+ break;
75
+ case 30:
76
+ this.$ = r.VerifyType.VERIFY_DEMONSTRATION;
77
+ break;
78
+ case 31:
79
+ this.$ = r.VerifyType.VERIFY_INSPECTION;
80
+ break;
81
+ case 32:
82
+ this.$ = r.VerifyType.VERIFY_TEST;
83
+ break;
84
+ case 33:
85
+ r.addElement(n[_ - 3]);
86
+ break;
87
+ case 34:
88
+ r.setNewElementType(n[_ - 2]);
89
+ break;
90
+ case 35:
91
+ r.setNewElementDocRef(n[_ - 2]);
92
+ break;
93
+ case 38:
94
+ r.addRelationship(n[_ - 2], n[_], n[_ - 4]);
95
+ break;
96
+ case 39:
97
+ r.addRelationship(n[_ - 2], n[_ - 4], n[_]);
98
+ break;
99
+ case 40:
100
+ this.$ = r.Relationships.CONTAINS;
101
+ break;
102
+ case 41:
103
+ this.$ = r.Relationships.COPIES;
104
+ break;
105
+ case 42:
106
+ this.$ = r.Relationships.DERIVES;
107
+ break;
108
+ case 43:
109
+ this.$ = r.Relationships.SATISFIES;
110
+ break;
111
+ case 44:
112
+ this.$ = r.Relationships.VERIFIES;
113
+ break;
114
+ case 45:
115
+ this.$ = r.Relationships.REFINES;
116
+ break;
117
+ case 46:
118
+ this.$ = r.Relationships.TRACES;
119
+ break;
120
+ }
121
+ },
122
+ table: [{ 3: 1, 4: 2, 6: i, 9: o, 11: c, 13: l }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: i, 9: o, 11: c, 13: l }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, t(u, [2, 6]), { 3: 12, 4: 2, 6: i, 9: o, 11: c, 13: l }, { 1: [2, 2] }, { 4: 17, 5: h, 7: 13, 8: a, 9: o, 11: c, 13: l, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: y, 32: E, 33: R, 34: T, 35: N, 36: A, 44: v, 62: S, 63: $ }, t(u, [2, 4]), t(u, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: h, 7: 31, 8: a, 9: o, 11: c, 13: l, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: y, 32: E, 33: R, 34: T, 35: N, 36: A, 44: v, 62: S, 63: $ }, { 4: 17, 5: h, 7: 32, 8: a, 9: o, 11: c, 13: l, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: y, 32: E, 33: R, 34: T, 35: N, 36: A, 44: v, 62: S, 63: $ }, { 4: 17, 5: h, 7: 33, 8: a, 9: o, 11: c, 13: l, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: y, 32: E, 33: R, 34: T, 35: N, 36: A, 44: v, 62: S, 63: $ }, { 4: 17, 5: h, 7: 34, 8: a, 9: o, 11: c, 13: l, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: y, 32: E, 33: R, 34: T, 35: N, 36: A, 44: v, 62: S, 63: $ }, { 4: 17, 5: h, 7: 35, 8: a, 9: o, 11: c, 13: l, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: y, 32: E, 33: R, 34: T, 35: N, 36: A, 44: v, 62: S, 63: $ }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, t(F, [2, 20]), t(F, [2, 21]), t(F, [2, 22]), t(F, [2, 23]), t(F, [2, 24]), t(F, [2, 25]), t(ut, [2, 49]), t(ut, [2, 50]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 19: [1, 44] }, { 19: [2, 47] }, { 19: [2, 48] }, { 19: [1, 45] }, { 19: [2, 53] }, { 19: [2, 54] }, { 52: 46, 55: yt, 56: dt, 57: pt, 58: _t, 59: Et, 60: gt, 61: Rt }, { 52: 54, 55: yt, 56: dt, 57: pt, 58: _t, 59: Et, 60: gt, 61: Rt }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, t(w, [2, 40]), t(w, [2, 41]), t(w, [2, 42]), t(w, [2, 43]), t(w, [2, 44]), t(w, [2, 45]), t(w, [2, 46]), { 54: [1, 58] }, { 5: D, 20: 59, 21: P, 24: V, 26: U, 28: Y, 30: B }, { 5: j, 30: G, 46: 66, 47: z, 49: X }, { 23: 71, 62: S, 63: $ }, { 23: 72, 62: S, 63: $ }, t(m, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: D, 20: 77, 21: P, 24: V, 26: U, 28: Y, 30: B }, t(m, [2, 19]), t(m, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: j, 30: G, 46: 80, 47: z, 49: X }, t(m, [2, 37]), t(m, [2, 38]), t(m, [2, 39]), { 23: 81, 62: S, 63: $ }, { 25: 82, 62: [1, 83], 63: [1, 84] }, { 27: 85, 37: [1, 86], 38: [1, 87], 39: [1, 88] }, { 29: 89, 40: [1, 90], 41: [1, 91], 42: [1, 92], 43: [1, 93] }, t(m, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, t(m, [2, 36]), { 5: [1, 100] }, { 5: [1, 101] }, { 5: [2, 51] }, { 5: [2, 52] }, { 5: [1, 102] }, { 5: [2, 26] }, { 5: [2, 27] }, { 5: [2, 28] }, { 5: [1, 103] }, { 5: [2, 29] }, { 5: [2, 30] }, { 5: [2, 31] }, { 5: [2, 32] }, { 5: [1, 104] }, { 5: [2, 55] }, { 5: [2, 56] }, { 5: [1, 105] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: D, 20: 106, 21: P, 24: V, 26: U, 28: Y, 30: B }, { 5: D, 20: 107, 21: P, 24: V, 26: U, 28: Y, 30: B }, { 5: D, 20: 108, 21: P, 24: V, 26: U, 28: Y, 30: B }, { 5: D, 20: 109, 21: P, 24: V, 26: U, 28: Y, 30: B }, { 5: j, 30: G, 46: 110, 47: z, 49: X }, { 5: j, 30: G, 46: 111, 47: z, 49: X }, t(m, [2, 14]), t(m, [2, 15]), t(m, [2, 16]), t(m, [2, 17]), t(m, [2, 34]), t(m, [2, 35])],
123
+ defaultActions: { 8: [2, 2], 12: [2, 1], 30: [2, 3], 31: [2, 8], 32: [2, 9], 33: [2, 10], 34: [2, 11], 35: [2, 12], 37: [2, 47], 38: [2, 48], 40: [2, 53], 41: [2, 54], 83: [2, 51], 84: [2, 52], 86: [2, 26], 87: [2, 27], 88: [2, 28], 90: [2, 29], 91: [2, 30], 92: [2, 31], 93: [2, 32], 95: [2, 55], 96: [2, 56], 98: [2, 57], 99: [2, 58] },
124
+ parseError: function(x, e) {
125
+ if (e.recoverable)
126
+ this.trace(x);
127
+ else {
128
+ var s = new Error(x);
129
+ throw s.hash = e, s;
130
+ }
131
+ },
132
+ parse: function(x) {
133
+ var e = this, s = [0], r = [], d = [null], n = [], f = this.table, _ = "", Z = 0, mt = 0, qt = 2, ft = 1, Ot = n.slice.call(arguments, 1), g = Object.create(this.lexer), C = { yy: {} };
134
+ for (var rt in this.yy)
135
+ Object.prototype.hasOwnProperty.call(this.yy, rt) && (C.yy[rt] = this.yy[rt]);
136
+ g.setInput(x, C.yy), C.yy.lexer = g, C.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
137
+ var nt = g.yylloc;
138
+ n.push(nt);
139
+ var Lt = g.options && g.options.ranges;
140
+ typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
141
+ function wt() {
142
+ var O;
143
+ return O = r.pop() || g.lex() || ft, typeof O != "number" && (O instanceof Array && (r = O, O = r.pop()), O = e.symbols_[O] || O), O;
144
+ }
145
+ for (var I, M, k, st, H = {}, J, q, It, tt; ; ) {
146
+ if (M = s[s.length - 1], this.defaultActions[M] ? k = this.defaultActions[M] : ((I === null || typeof I > "u") && (I = wt()), k = f[M] && f[M][I]), typeof k > "u" || !k.length || !k[0]) {
147
+ var at = "";
148
+ tt = [];
149
+ for (J in f[M])
150
+ this.terminals_[J] && J > qt && tt.push("'" + this.terminals_[J] + "'");
151
+ g.showPosition ? at = "Parse error on line " + (Z + 1) + `:
152
+ ` + g.showPosition() + `
153
+ Expecting ` + tt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : at = "Parse error on line " + (Z + 1) + ": Unexpected " + (I == ft ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(at, {
154
+ text: g.match,
155
+ token: this.terminals_[I] || I,
156
+ line: g.yylineno,
157
+ loc: nt,
158
+ expected: tt
159
+ });
160
+ }
161
+ if (k[0] instanceof Array && k.length > 1)
162
+ throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + I);
163
+ switch (k[0]) {
164
+ case 1:
165
+ s.push(I), d.push(g.yytext), n.push(g.yylloc), s.push(k[1]), I = null, mt = g.yyleng, _ = g.yytext, Z = g.yylineno, nt = g.yylloc;
166
+ break;
167
+ case 2:
168
+ if (q = this.productions_[k[1]][1], H.$ = d[d.length - q], H._$ = {
169
+ first_line: n[n.length - (q || 1)].first_line,
170
+ last_line: n[n.length - 1].last_line,
171
+ first_column: n[n.length - (q || 1)].first_column,
172
+ last_column: n[n.length - 1].last_column
173
+ }, Lt && (H._$.range = [
174
+ n[n.length - (q || 1)].range[0],
175
+ n[n.length - 1].range[1]
176
+ ]), st = this.performAction.apply(H, [
177
+ _,
178
+ mt,
179
+ Z,
180
+ C.yy,
181
+ k[1],
182
+ d,
183
+ n
184
+ ].concat(Ot)), typeof st < "u")
185
+ return st;
186
+ q && (s = s.slice(0, -1 * q * 2), d = d.slice(0, -1 * q), n = n.slice(0, -1 * q)), s.push(this.productions_[k[1]][0]), d.push(H.$), n.push(H._$), It = f[s[s.length - 2]][s[s.length - 1]], s.push(It);
187
+ break;
188
+ case 3:
189
+ return !0;
190
+ }
191
+ }
192
+ return !0;
193
+ }
194
+ }, $t = /* @__PURE__ */ function() {
195
+ var x = {
196
+ EOF: 1,
197
+ parseError: function(e, s) {
198
+ if (this.yy.parser)
199
+ this.yy.parser.parseError(e, s);
200
+ else
201
+ throw new Error(e);
202
+ },
203
+ // resets the lexer, sets new input
204
+ setInput: function(e, s) {
205
+ return this.yy = s || 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 = {
206
+ first_line: 1,
207
+ first_column: 0,
208
+ last_line: 1,
209
+ last_column: 0
210
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
211
+ },
212
+ // consumes and returns one char from the input
213
+ input: function() {
214
+ var e = this._input[0];
215
+ this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e;
216
+ var s = e.match(/(?:\r\n?|\n).*/g);
217
+ return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
218
+ },
219
+ // unshifts one char (or a string) into the input
220
+ unput: function(e) {
221
+ var s = e.length, r = e.split(/(?:\r\n?|\n)/g);
222
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
223
+ var d = this.match.split(/(?:\r\n?|\n)/g);
224
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
225
+ var n = this.yylloc.range;
226
+ return this.yylloc = {
227
+ first_line: this.yylloc.first_line,
228
+ last_line: this.yylineno + 1,
229
+ first_column: this.yylloc.first_column,
230
+ last_column: r ? (r.length === d.length ? this.yylloc.first_column : 0) + d[d.length - r.length].length - r[0].length : this.yylloc.first_column - s
231
+ }, this.options.ranges && (this.yylloc.range = [n[0], n[0] + this.yyleng - s]), this.yyleng = this.yytext.length, this;
232
+ },
233
+ // When called from action, caches matched text and appends it on next action
234
+ more: function() {
235
+ return this._more = !0, this;
236
+ },
237
+ // 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.
238
+ reject: function() {
239
+ if (this.options.backtrack_lexer)
240
+ this._backtrack = !0;
241
+ else
242
+ 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).
243
+ ` + this.showPosition(), {
244
+ text: "",
245
+ token: null,
246
+ line: this.yylineno
247
+ });
248
+ return this;
249
+ },
250
+ // retain first n characters of the match
251
+ less: function(e) {
252
+ this.unput(this.match.slice(e));
253
+ },
254
+ // displays already matched input, i.e. for error messages
255
+ pastInput: function() {
256
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
257
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
258
+ },
259
+ // displays upcoming input, i.e. for error messages
260
+ upcomingInput: function() {
261
+ var e = this.match;
262
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
263
+ },
264
+ // displays the character position where the lexing error occurred, i.e. for error messages
265
+ showPosition: function() {
266
+ var e = this.pastInput(), s = new Array(e.length + 1).join("-");
267
+ return e + this.upcomingInput() + `
268
+ ` + s + "^";
269
+ },
270
+ // test the lexed token: return FALSE when not a match, otherwise return token
271
+ test_match: function(e, s) {
272
+ var r, d, n;
273
+ if (this.options.backtrack_lexer && (n = {
274
+ yylineno: this.yylineno,
275
+ yylloc: {
276
+ first_line: this.yylloc.first_line,
277
+ last_line: this.last_line,
278
+ first_column: this.yylloc.first_column,
279
+ last_column: this.yylloc.last_column
280
+ },
281
+ yytext: this.yytext,
282
+ match: this.match,
283
+ matches: this.matches,
284
+ matched: this.matched,
285
+ yyleng: this.yyleng,
286
+ offset: this.offset,
287
+ _more: this._more,
288
+ _input: this._input,
289
+ yy: this.yy,
290
+ conditionStack: this.conditionStack.slice(0),
291
+ done: this.done
292
+ }, this.options.ranges && (n.yylloc.range = this.yylloc.range.slice(0))), d = e[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
293
+ first_line: this.yylloc.last_line,
294
+ last_line: this.yylineno + 1,
295
+ first_column: this.yylloc.last_column,
296
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
297
+ }, 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], r = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
298
+ return r;
299
+ if (this._backtrack) {
300
+ for (var f in n)
301
+ this[f] = n[f];
302
+ return !1;
303
+ }
304
+ return !1;
305
+ },
306
+ // return next match in input
307
+ next: function() {
308
+ if (this.done)
309
+ return this.EOF;
310
+ this._input || (this.done = !0);
311
+ var e, s, r, d;
312
+ this._more || (this.yytext = "", this.match = "");
313
+ for (var n = this._currentRules(), f = 0; f < n.length; f++)
314
+ if (r = this._input.match(this.rules[n[f]]), r && (!s || r[0].length > s[0].length)) {
315
+ if (s = r, d = f, this.options.backtrack_lexer) {
316
+ if (e = this.test_match(r, n[f]), e !== !1)
317
+ return e;
318
+ if (this._backtrack) {
319
+ s = !1;
320
+ continue;
321
+ } else
322
+ return !1;
323
+ } else if (!this.options.flex)
324
+ break;
325
+ }
326
+ return s ? (e = this.test_match(s, n[d]), e !== !1 ? e : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
327
+ ` + this.showPosition(), {
328
+ text: "",
329
+ token: null,
330
+ line: this.yylineno
331
+ });
332
+ },
333
+ // return next match that has a token
334
+ lex: function() {
335
+ var e = this.next();
336
+ return e || this.lex();
337
+ },
338
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
339
+ begin: function(e) {
340
+ this.conditionStack.push(e);
341
+ },
342
+ // pop the previously active lexer condition state off the condition stack
343
+ popState: function() {
344
+ var e = this.conditionStack.length - 1;
345
+ return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
346
+ },
347
+ // produce the lexer rule set which is active for the currently active lexer condition state
348
+ _currentRules: function() {
349
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
350
+ },
351
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
352
+ topState: function(e) {
353
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
354
+ },
355
+ // alias for begin(condition)
356
+ pushState: function(e) {
357
+ this.begin(e);
358
+ },
359
+ // return the number of states currently on the stack
360
+ stateStackSize: function() {
361
+ return this.conditionStack.length;
362
+ },
363
+ options: { "case-insensitive": !0 },
364
+ performAction: function(e, s, r, d) {
365
+ switch (r) {
366
+ case 0:
367
+ return "title";
368
+ case 1:
369
+ return this.begin("acc_title"), 9;
370
+ case 2:
371
+ return this.popState(), "acc_title_value";
372
+ case 3:
373
+ return this.begin("acc_descr"), 11;
374
+ case 4:
375
+ return this.popState(), "acc_descr_value";
376
+ case 5:
377
+ this.begin("acc_descr_multiline");
378
+ break;
379
+ case 6:
380
+ this.popState();
381
+ break;
382
+ case 7:
383
+ return "acc_descr_multiline_value";
384
+ case 8:
385
+ return 5;
386
+ case 9:
387
+ break;
388
+ case 10:
389
+ break;
390
+ case 11:
391
+ break;
392
+ case 12:
393
+ return 8;
394
+ case 13:
395
+ return 6;
396
+ case 14:
397
+ return 19;
398
+ case 15:
399
+ return 30;
400
+ case 16:
401
+ return 22;
402
+ case 17:
403
+ return 21;
404
+ case 18:
405
+ return 24;
406
+ case 19:
407
+ return 26;
408
+ case 20:
409
+ return 28;
410
+ case 21:
411
+ return 31;
412
+ case 22:
413
+ return 32;
414
+ case 23:
415
+ return 33;
416
+ case 24:
417
+ return 34;
418
+ case 25:
419
+ return 35;
420
+ case 26:
421
+ return 36;
422
+ case 27:
423
+ return 37;
424
+ case 28:
425
+ return 38;
426
+ case 29:
427
+ return 39;
428
+ case 30:
429
+ return 40;
430
+ case 31:
431
+ return 41;
432
+ case 32:
433
+ return 42;
434
+ case 33:
435
+ return 43;
436
+ case 34:
437
+ return 44;
438
+ case 35:
439
+ return 55;
440
+ case 36:
441
+ return 56;
442
+ case 37:
443
+ return 57;
444
+ case 38:
445
+ return 58;
446
+ case 39:
447
+ return 59;
448
+ case 40:
449
+ return 60;
450
+ case 41:
451
+ return 61;
452
+ case 42:
453
+ return 47;
454
+ case 43:
455
+ return 49;
456
+ case 44:
457
+ return 51;
458
+ case 45:
459
+ return 54;
460
+ case 46:
461
+ return 53;
462
+ case 47:
463
+ this.begin("string");
464
+ break;
465
+ case 48:
466
+ this.popState();
467
+ break;
468
+ case 49:
469
+ return "qString";
470
+ case 50:
471
+ return s.yytext = s.yytext.trim(), 62;
472
+ }
473
+ },
474
+ 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, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/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, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^\r\n\{\<\>\-\=]*)/i],
475
+ conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, unqString: { rules: [], inclusive: !1 }, token: { rules: [], inclusive: !1 }, string: { rules: [48, 49], inclusive: !1 }, 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, 50], inclusive: !0 } }
476
+ };
477
+ return x;
478
+ }();
479
+ et.lexer = $t;
480
+ function it() {
481
+ this.yy = {};
482
+ }
483
+ return it.prototype = et, et.Parser = it, new it();
484
+ }();
485
+ ct.parser = ct;
486
+ const Ht = ct;
487
+ let ht = [], b = {}, K = {}, L = {}, Q = {};
488
+ const Wt = {
489
+ REQUIREMENT: "Requirement",
490
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
491
+ INTERFACE_REQUIREMENT: "Interface Requirement",
492
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
493
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
494
+ DESIGN_CONSTRAINT: "Design Constraint"
495
+ }, Kt = {
496
+ LOW_RISK: "Low",
497
+ MED_RISK: "Medium",
498
+ HIGH_RISK: "High"
499
+ }, Qt = {
500
+ VERIFY_ANALYSIS: "Analysis",
501
+ VERIFY_DEMONSTRATION: "Demonstration",
502
+ VERIFY_INSPECTION: "Inspection",
503
+ VERIFY_TEST: "Test"
504
+ }, jt = {
505
+ CONTAINS: "contains",
506
+ COPIES: "copies",
507
+ DERIVES: "derives",
508
+ SATISFIES: "satisfies",
509
+ VERIFIES: "verifies",
510
+ REFINES: "refines",
511
+ TRACES: "traces"
512
+ }, Gt = (t, i) => (K[t] === void 0 && (K[t] = {
513
+ name: t,
514
+ type: i,
515
+ id: b.id,
516
+ text: b.text,
517
+ risk: b.risk,
518
+ verifyMethod: b.verifyMethod
519
+ }), b = {}, K[t]), zt = () => K, Xt = (t) => {
520
+ b !== void 0 && (b.id = t);
521
+ }, Zt = (t) => {
522
+ b !== void 0 && (b.text = t);
523
+ }, Jt = (t) => {
524
+ b !== void 0 && (b.risk = t);
525
+ }, te = (t) => {
526
+ b !== void 0 && (b.verifyMethod = t);
527
+ }, ee = (t) => (Q[t] === void 0 && (Q[t] = {
528
+ name: t,
529
+ type: L.type,
530
+ docRef: L.docRef
531
+ }, Nt.info("Added new requirement: ", t)), L = {}, Q[t]), ie = () => Q, re = (t) => {
532
+ L !== void 0 && (L.type = t);
533
+ }, ne = (t) => {
534
+ L !== void 0 && (L.docRef = t);
535
+ }, se = (t, i, o) => {
536
+ ht.push({
537
+ type: t,
538
+ src: i,
539
+ dst: o
540
+ });
541
+ }, ae = () => ht, oe = () => {
542
+ ht = [], b = {}, K = {}, L = {}, Q = {}, Pt();
543
+ }, ce = {
544
+ RequirementType: Wt,
545
+ RiskLevel: Kt,
546
+ VerifyType: Qt,
547
+ Relationships: jt,
548
+ getConfig: () => Tt().req,
549
+ addRequirement: Gt,
550
+ getRequirements: zt,
551
+ setNewReqId: Xt,
552
+ setNewReqText: Zt,
553
+ setNewReqRisk: Jt,
554
+ setNewReqVerifyMethod: te,
555
+ setAccTitle: Ct,
556
+ getAccTitle: Mt,
557
+ setAccDescription: Ft,
558
+ getAccDescription: Dt,
559
+ addElement: ee,
560
+ getElements: ie,
561
+ setNewElementType: re,
562
+ setNewElementDocRef: ne,
563
+ addRelationship: se,
564
+ getRelationships: ae,
565
+ clear: oe
566
+ }, le = (t) => `
567
+
568
+ marker {
569
+ fill: ${t.relationColor};
570
+ stroke: ${t.relationColor};
571
+ }
572
+
573
+ marker.cross {
574
+ stroke: ${t.lineColor};
575
+ }
576
+
577
+ svg {
578
+ font-family: ${t.fontFamily};
579
+ font-size: ${t.fontSize};
580
+ }
581
+
582
+ .reqBox {
583
+ fill: ${t.requirementBackground};
584
+ fill-opacity: 1.0;
585
+ stroke: ${t.requirementBorderColor};
586
+ stroke-width: ${t.requirementBorderSize};
587
+ }
588
+
589
+ .reqTitle, .reqLabel{
590
+ fill: ${t.requirementTextColor};
591
+ }
592
+ .reqLabelBox {
593
+ fill: ${t.relationLabelBackground};
594
+ fill-opacity: 1.0;
595
+ }
596
+
597
+ .req-title-line {
598
+ stroke: ${t.requirementBorderColor};
599
+ stroke-width: ${t.requirementBorderSize};
600
+ }
601
+ .relationshipLine {
602
+ stroke: ${t.relationColor};
603
+ stroke-width: 1;
604
+ }
605
+ .relationshipLabel {
606
+ fill: ${t.relationLabelColor};
607
+ }
608
+
609
+ `, he = le, lt = {
610
+ CONTAINS: "contains",
611
+ ARROW: "arrow"
612
+ }, ue = (t, i) => {
613
+ let o = t.append("defs").append("marker").attr("id", lt.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", i.line_height / 2).attr("markerWidth", i.line_height).attr("markerHeight", i.line_height).attr("orient", "auto").append("g");
614
+ o.append("circle").attr("cx", i.line_height / 2).attr("cy", i.line_height / 2).attr("r", i.line_height / 2).attr("fill", "none"), o.append("line").attr("x1", 0).attr("x2", i.line_height).attr("y1", i.line_height / 2).attr("y2", i.line_height / 2).attr("stroke-width", 1), o.append("line").attr("y1", 0).attr("y2", i.line_height).attr("x1", i.line_height / 2).attr("x2", i.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", lt.ARROW + "_line_ending").attr("refX", i.line_height).attr("refY", 0.5 * i.line_height).attr("markerWidth", i.line_height).attr("markerHeight", i.line_height).attr("orient", "auto").append("path").attr(
615
+ "d",
616
+ `M0,0
617
+ L${i.line_height},${i.line_height / 2}
618
+ M${i.line_height},${i.line_height / 2}
619
+ L0,${i.line_height}`
620
+ ).attr("stroke-width", 1);
621
+ }, St = {
622
+ ReqMarkers: lt,
623
+ insertLineEndings: ue
624
+ };
625
+ let p = {}, kt = 0;
626
+ const xt = (t, i) => t.insert("rect", "#" + i).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", p.rect_min_width + "px").attr("height", p.rect_min_height + "px"), At = (t, i, o) => {
627
+ let c = p.rect_min_width / 2, l = t.append("text").attr("class", "req reqLabel reqTitle").attr("id", i).attr("x", c).attr("y", p.rect_padding).attr("dominant-baseline", "hanging"), u = 0;
628
+ o.forEach((E) => {
629
+ u == 0 ? l.append("tspan").attr("text-anchor", "middle").attr("x", p.rect_min_width / 2).attr("dy", 0).text(E) : l.append("tspan").attr("text-anchor", "middle").attr("x", p.rect_min_width / 2).attr("dy", p.line_height * 0.75).text(E), u++;
630
+ });
631
+ let h = 1.5 * p.rect_padding, a = u * p.line_height * 0.75, y = h + a;
632
+ return t.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", p.rect_min_width).attr("y1", y).attr("y2", y), {
633
+ titleNode: l,
634
+ y
635
+ };
636
+ }, vt = (t, i, o, c) => {
637
+ let l = t.append("text").attr("class", "req reqLabel").attr("id", i).attr("x", p.rect_padding).attr("y", c).attr("dominant-baseline", "hanging"), u = 0;
638
+ const h = 30;
639
+ let a = [];
640
+ return o.forEach((y) => {
641
+ let E = y.length;
642
+ for (; E > h && u < 3; ) {
643
+ let R = y.substring(0, h);
644
+ y = y.substring(h, y.length), E = y.length, a[a.length] = R, u++;
645
+ }
646
+ if (u == 3) {
647
+ let R = a[a.length - 1];
648
+ a[a.length - 1] = R.substring(0, R.length - 4) + "...";
649
+ } else
650
+ a[a.length] = y;
651
+ u = 0;
652
+ }), a.forEach((y) => {
653
+ l.append("tspan").attr("x", p.rect_padding).attr("dy", p.line_height).text(y);
654
+ }), l;
655
+ }, ye = (t, i, o, c) => {
656
+ const l = i.node().getTotalLength(), u = i.node().getPointAtLength(l * 0.5), h = "rel" + kt;
657
+ kt++;
658
+ const a = t.append("text").attr("class", "req relationshipLabel").attr("id", h).attr("x", u.x).attr("y", u.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c).node().getBBox();
659
+ t.insert("rect", "#" + h).attr("class", "req reqLabelBox").attr("x", u.x - a.width / 2).attr("y", u.y - a.height / 2).attr("width", a.width).attr("height", a.height).attr("fill", "white").attr("fill-opacity", "85%");
660
+ }, de = function(t, i, o, c, l) {
661
+ const u = o.edge(W(i.src), W(i.dst)), h = Bt().x(function(y) {
662
+ return y.x;
663
+ }).y(function(y) {
664
+ return y.y;
665
+ }), a = t.insert("path", "#" + c).attr("class", "er relationshipLine").attr("d", h(u.points)).attr("fill", "none");
666
+ i.type == l.db.Relationships.CONTAINS ? a.attr(
667
+ "marker-start",
668
+ "url(" + bt.getUrl(p.arrowMarkerAbsolute) + "#" + i.type + "_line_ending)"
669
+ ) : (a.attr("stroke-dasharray", "10,7"), a.attr(
670
+ "marker-end",
671
+ "url(" + bt.getUrl(p.arrowMarkerAbsolute) + "#" + St.ReqMarkers.ARROW + "_line_ending)"
672
+ )), ye(t, a, p, `<<${i.type}>>`);
673
+ }, pe = (t, i, o) => {
674
+ Object.keys(t).forEach((c) => {
675
+ let l = t[c];
676
+ c = W(c), Nt.info("Added new requirement: ", c);
677
+ const u = o.append("g").attr("id", c), h = "req-" + c, a = xt(u, h);
678
+ let y = At(u, c + "_title", [
679
+ `<<${l.type}>>`,
680
+ `${l.name}`
681
+ ]);
682
+ vt(
683
+ u,
684
+ c + "_body",
685
+ [
686
+ `Id: ${l.id}`,
687
+ `Text: ${l.text}`,
688
+ `Risk: ${l.risk}`,
689
+ `Verification: ${l.verifyMethod}`
690
+ ],
691
+ y.y
692
+ );
693
+ const E = a.node().getBBox();
694
+ i.setNode(c, {
695
+ width: E.width,
696
+ height: E.height,
697
+ shape: "rect",
698
+ id: c
699
+ });
700
+ });
701
+ }, _e = (t, i, o) => {
702
+ Object.keys(t).forEach((c) => {
703
+ let l = t[c];
704
+ const u = W(c), h = o.append("g").attr("id", u), a = "element-" + u, y = xt(h, a);
705
+ let E = At(h, a + "_title", ["<<Element>>", `${c}`]);
706
+ vt(
707
+ h,
708
+ a + "_body",
709
+ [`Type: ${l.type || "Not Specified"}`, `Doc Ref: ${l.docRef || "None"}`],
710
+ E.y
711
+ );
712
+ const R = y.node().getBBox();
713
+ i.setNode(u, {
714
+ width: R.width,
715
+ height: R.height,
716
+ shape: "rect",
717
+ id: u
718
+ });
719
+ });
720
+ }, Ee = (t, i) => (t.forEach(function(o) {
721
+ let c = W(o.src), l = W(o.dst);
722
+ i.setEdge(c, l, { relationship: o });
723
+ }), t), ge = function(t, i) {
724
+ i.nodes().forEach(function(o) {
725
+ o !== void 0 && i.node(o) !== void 0 && (t.select("#" + o), t.select("#" + o).attr(
726
+ "transform",
727
+ "translate(" + (i.node(o).x - i.node(o).width / 2) + "," + (i.node(o).y - i.node(o).height / 2) + " )"
728
+ ));
729
+ });
730
+ }, W = (t) => t.replace(/\s/g, "").replace(/\./g, "_"), Re = (t, i, o, c) => {
731
+ p = Tt().requirement;
732
+ const l = p.securityLevel;
733
+ let u;
734
+ l === "sandbox" && (u = ot("#i" + i));
735
+ const h = (l === "sandbox" ? ot(u.nodes()[0].contentDocument.body) : ot("body")).select(`[id='${i}']`);
736
+ St.insertLineEndings(h, p);
737
+ const a = new Ut({
738
+ multigraph: !1,
739
+ compound: !1,
740
+ directed: !0
741
+ }).setGraph({
742
+ rankdir: p.layoutDirection,
743
+ marginx: 20,
744
+ marginy: 20,
745
+ nodesep: 100,
746
+ edgesep: 100,
747
+ ranksep: 100
748
+ }).setDefaultEdgeLabel(function() {
749
+ return {};
750
+ });
751
+ let y = c.db.getRequirements(), E = c.db.getElements(), R = c.db.getRelationships();
752
+ pe(y, a, h), _e(E, a, h), Ee(R, a), Yt(a), ge(h, a), R.forEach(function(S) {
753
+ de(h, S, a, i, c);
754
+ });
755
+ const T = p.rect_padding, N = h.node().getBBox(), A = N.width + T * 2, v = N.height + T * 2;
756
+ Vt(h, v, A, p.useMaxWidth), h.attr("viewBox", `${N.x - T} ${N.y - T} ${A} ${v}`);
757
+ }, me = {
758
+ draw: Re
759
+ }, Te = {
760
+ parser: Ht,
761
+ db: ce,
762
+ renderer: me,
763
+ styles: he
764
+ };
765
+ export {
766
+ Te as diagram
767
+ };