@kong-ui-public/documentation 0.8.27-pr.2132.c7fba69a4.0 → 0.8.27

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 (154) hide show
  1. package/dist/_basePickBy-DF_KwdVi-HVXnmpaQ.js +151 -0
  2. package/dist/_baseUniq-DefQzZRT-CTix3bMY.js +614 -0
  3. package/dist/arc-B4xWw-B6-BGnuysbe.js +83 -0
  4. package/dist/architecture-I3QFYML2-7TNhn42L-52ENK4nk.js +5 -0
  5. package/dist/architectureDiagram-UYN6MBPD-Bg70hFZ--BirbHF75.js +4592 -0
  6. package/dist/astro-Uf8_VxKJ-CZxoSljj.js +16 -0
  7. package/dist/blockDiagram-ZHA2E4KO-Ylh05M-x-AVJfewxx.js +2247 -0
  8. package/dist/c-DASdrs7p-DASdrs7p.js +6 -0
  9. package/dist/c4Diagram-6F5ED5ID-BA0B_CmS-WdUKqC7Z.js +1581 -0
  10. package/dist/channel-B5uWur4x-BHu9WG2d.js +5 -0
  11. package/dist/chunk-5HRBRIJM-B7MbirM8-YDLjZbXN.js +24 -0
  12. package/dist/chunk-7U56Z5CX-CfNu7Hr2-BQzILIp1.js +1213 -0
  13. package/dist/chunk-ASOPGD6M-CwvgmaRl-BZAjlsEd.js +64 -0
  14. package/dist/chunk-KFBOBJHC-BB675Bua-GRhe6aGs.js +15 -0
  15. package/dist/chunk-T2TOU4HS-BgV1wucS-5Sa82KgW.js +1301 -0
  16. package/dist/chunk-TMUBEWPD-C22TGOO0-Bl2u--DY.js +9 -0
  17. package/dist/classDiagram-LNE6IOMH-D5SiSVyM-BbV9LB8E.js +14 -0
  18. package/dist/classDiagram-v2-MQ7JQ4JX-D5SiSVyM-BbV9LB8E.js +14 -0
  19. package/dist/clone-CmU1hwye-Lu5-ol5h.js +8 -0
  20. package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +6 -0
  21. package/dist/css-D1aVdRIU-D1aVdRIU.js +6 -0
  22. package/dist/csv-DvCncUGQ-Tno401i9.js +6 -0
  23. package/dist/cytoscape.esm-DAyNQ0qu-B7WxGuVh.js +16110 -0
  24. package/dist/dagre-4EVJKHTY-DMTVcQfE-C1Tr0EYY.js +447 -0
  25. package/dist/diagram-QW4FP2JN-jc61JuWr-DOMFELfS.js +126 -0
  26. package/dist/diff-XmNrvgM1-XmNrvgM1.js +6 -0
  27. package/dist/docker-DWH2onkn-DWH2onkn.js +6 -0
  28. package/dist/documentation.es.js +7 -0
  29. package/dist/documentation.umd.js +2404 -0
  30. package/dist/erDiagram-6RL3IURR-1byskxwI-B-wzYh8R.js +937 -0
  31. package/dist/flowDiagram-7ASYPVHJ-B3phEI8o-CVXSVDmh.js +1484 -0
  32. package/dist/ganttDiagram-NTVNEXSI-vYnO_T5c-Ccxkb7aQ.js +2491 -0
  33. package/dist/git-commit-BspYIY3P-VkbIfR3L.js +8 -0
  34. package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +8 -0
  35. package/dist/gitGraph-YCYPL57B-DPx67Iu5-BPrLSH0g.js +5 -0
  36. package/dist/gitGraphDiagram-NRZ2UAAF-BHxB7Gjs-CeRxz6oW.js +712 -0
  37. package/dist/go-BErP6iv1-BErP6iv1.js +6 -0
  38. package/dist/graph-_eClejaU-DigE4Bf5.js +247 -0
  39. package/dist/graphql-DWpQF4JI-C-3VJmtp.js +14 -0
  40. package/dist/haml-CMN0hQaL-BV5BsZTy.js +10 -0
  41. package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +14 -0
  42. package/dist/haskell-CtlGos0K-CtlGos0K.js +6 -0
  43. package/dist/html-B0P_v3yU-BojM9zZg.js +10 -0
  44. package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +8 -0
  45. package/dist/http-Dcjm_K1m-1LFSbOE1.js +14 -0
  46. package/dist/index-B_RqyDIa.js +37033 -0
  47. package/dist/info-46DW6VJ7-DeIQKKyY-CVPexu5P.js +5 -0
  48. package/dist/infoDiagram-A4XQUW5V-Cx0WE_JZ-B_t8JIcX.js +22 -0
  49. package/dist/ini-BUcvsX-U-BUcvsX-U.js +6 -0
  50. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  51. package/dist/java-B7odJ7Ap-B7odJ7Ap.js +6 -0
  52. package/dist/javascript-fa8UlHZE-fa8UlHZE.js +6 -0
  53. package/dist/journeyDiagram-G5WM74LC-CUWL5R5G-DWlpHybW.js +810 -0
  54. package/dist/json-71t8ZF9g-71t8ZF9g.js +6 -0
  55. package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +6 -0
  56. package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +6 -0
  57. package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +6 -0
  58. package/dist/jsx-Bkesy5tT-Bkesy5tT.js +6 -0
  59. package/dist/kanban-definition-QRCXZQQD-r5CdvT2h-BUkOeUnm.js +718 -0
  60. package/dist/katex-Qk2jHgyB-CF_fuFJb.js +11637 -0
  61. package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +6 -0
  62. package/dist/latex-CZXk8SiZ-DbjDPp_f.js +11 -0
  63. package/dist/layout-DfjmtgNY-Bw6LFOXt.js +1321 -0
  64. package/dist/less-DQA4v-Nm-DQA4v-Nm.js +6 -0
  65. package/dist/linear-BGmbGdcc-C--Nxp9Q.js +423 -0
  66. package/dist/liquid-CvufO3kO-D90bBAdm.js +14 -0
  67. package/dist/lua-BVfhNLDr-DAa90qLN.js +8 -0
  68. package/dist/make-BjuHP00g-BjuHP00g.js +6 -0
  69. package/dist/markdown-B6guhLWd-B6guhLWd.js +6 -0
  70. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
  71. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
  72. package/dist/mdc-Bq810vct-Dr8CpN8f.js +12 -0
  73. package/dist/mdx-DIoECIFU-DIoECIFU.js +6 -0
  74. package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +6 -0
  75. package/dist/mermaid-parser.core-DxgZuQQq-uP-grJig.js +12400 -0
  76. package/dist/mindmap-definition-GWI6TPTV-DX5GL05M-B8Eu6UCe.js +3219 -0
  77. package/dist/nginx-Can2eAjw-DKMoypYC.js +8 -0
  78. package/dist/objective-c-BGg9R27G-BGg9R27G.js +6 -0
  79. package/dist/ordinal-DfAQgscy-BEJTu10r.js +61 -0
  80. package/dist/packet-W2GHVCYJ-CI_-E3C--D1lo2o0i.js +5 -0
  81. package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +6 -0
  82. package/dist/perl-DaMQyPwp-Cxx4wmV7.js +16 -0
  83. package/dist/php-BL3EfPBi-BZu5YwDX.js +18 -0
  84. package/dist/pie-BEWT4RHE-B52QOymI-BoBX6ZnD.js +5 -0
  85. package/dist/pieDiagram-YF2LJOPJ-IHpbN7M9-BBPOh3m7.js +161 -0
  86. package/dist/plsql-oVq_K_wH-oVq_K_wH.js +6 -0
  87. package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +6 -0
  88. package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +6 -0
  89. package/dist/proto-o9HLmF90-o9HLmF90.js +6 -0
  90. package/dist/pug-HKe4Luo3-BYb0El_4.js +12 -0
  91. package/dist/python-xYxLFJY--xYxLFJY-.js +6 -0
  92. package/dist/quadrantDiagram-OS5C2QUG-DyfTAjs0-CvYOplDG.js +1024 -0
  93. package/dist/r-F-9I-ITZ-F-9I-ITZ.js +6 -0
  94. package/dist/reg-CMUdAgIP-CMUdAgIP.js +6 -0
  95. package/dist/requirementDiagram-MIRIMTAZ-DpFia6HM-BNS6fGqi.js +768 -0
  96. package/dist/rst-B8JEEtLI-Dyxh6LOj.js +22 -0
  97. package/dist/ruby-FDlfLkNa-nf7VLvCK.js +50 -0
  98. package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +6 -0
  99. package/dist/sankeyDiagram-Y46BX6SQ-a6p3ZaX0-Cwasp0IA.js +805 -0
  100. package/dist/sass-iCyS6eP9-iCyS6eP9.js +6 -0
  101. package/dist/scss-DhHc4lxB-D1lMETuy.js +8 -0
  102. package/dist/sequenceDiagram-G6AWOVSC-DlZ7du4U-z70BwBnZ.js +2274 -0
  103. package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +6 -0
  104. package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +8 -0
  105. package/dist/splunk-CTqDjQdo-CTqDjQdo.js +6 -0
  106. package/dist/sql-DCkt643--DCkt643-.js +6 -0
  107. package/dist/ssh-config-DHHGll-v-DHHGll-v.js +6 -0
  108. package/dist/stateDiagram-MAYHULR4-tK3TdntS-PielUO6n.js +268 -0
  109. package/dist/stateDiagram-v2-4JROLMXI-Ib4sJL3A--uDyhxdT.js +14 -0
  110. package/dist/style.css +1 -0
  111. package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +6 -0
  112. package/dist/svelte-01qw6Rxm-Cjp5Srko.js +14 -0
  113. package/dist/swift-BAWqNR8A-BAWqNR8A.js +6 -0
  114. package/dist/timeline-definition-U7ZMHBDA-Db9d-9_E-kHwjVd5T.js +804 -0
  115. package/dist/toml-CQSfOn0e-CQSfOn0e.js +6 -0
  116. package/dist/tsx-DiGsgWT8-DiGsgWT8.js +6 -0
  117. package/dist/twig-DxrNSc26-BIWbKTFO.js +18 -0
  118. package/dist/types/components/DocumentationContent.vue.d.ts +177 -0
  119. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
  120. package/dist/types/components/DocumentationDisplay.vue.d.ts +323 -0
  121. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
  122. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +30 -0
  123. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
  124. package/dist/types/components/ProductDocumentModal.vue.d.ts +71 -0
  125. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
  126. package/dist/types/composables/index.d.ts +6 -0
  127. package/dist/types/composables/index.d.ts.map +1 -0
  128. package/dist/types/composables/useI18n.d.ts +9 -0
  129. package/dist/types/composables/useI18n.d.ts.map +1 -0
  130. package/dist/types/external-links.d.ts +5 -0
  131. package/dist/types/external-links.d.ts.map +1 -0
  132. package/dist/types/helpers.d.ts +8 -0
  133. package/dist/types/helpers.d.ts.map +1 -0
  134. package/dist/types/index.d.ts +7 -0
  135. package/dist/types/index.d.ts.map +1 -0
  136. package/dist/types/types/document-list.d.ts +28 -0
  137. package/dist/types/types/document-list.d.ts.map +1 -0
  138. package/dist/types/types/document-modal.d.ts +8 -0
  139. package/dist/types/types/document-modal.d.ts.map +1 -0
  140. package/dist/types/types/index.d.ts +3 -0
  141. package/dist/types/types/index.d.ts.map +1 -0
  142. package/dist/typescript-buWNZFwO-buWNZFwO.js +6 -0
  143. package/dist/v-wa8Orrdd-wa8Orrdd.js +6 -0
  144. package/dist/vb-E2_-jk4M-E2_-jk4M.js +6 -0
  145. package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +6 -0
  146. package/dist/vue-DdqTpW8B-BrYVXV7A.js +31 -0
  147. package/dist/vue-html-B9t4RWro-D1UeMTSX.js +10 -0
  148. package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +6 -0
  149. package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +6 -0
  150. package/dist/xml-ChBsf5uy-0Ovnixsj.js +8 -0
  151. package/dist/xsl-BefjlXrd-CZ7IlB9K.js +8 -0
  152. package/dist/xychartDiagram-6QU3TZC5-L2EgHpF7-Dbx9eZ7M.js +1304 -0
  153. package/dist/yaml-Bbg74JKr-Bbg74JKr.js +6 -0
  154. package/package.json +2 -2
@@ -0,0 +1,768 @@
1
+ import { _ as n, g as ke, a5 as Me, a6 as De, a8 as Pe, a7 as Ue, l as xe, ar as Ye, af as le, ag as Ve, ay as Be, ab as Ne } from "./index-B_RqyDIa.js";
2
+ import { L as Qe } from "./graph-_eClejaU-DigE4Bf5.js";
3
+ import { o as Ke } from "./layout-DfjmtgNY-Bw6LFOXt.js";
4
+ var he = function() {
5
+ var e = /* @__PURE__ */ n(function(w, t, a, r) {
6
+ for (a = a || {}, r = w.length; r--; a[w[r]] = t) ;
7
+ return a;
8
+ }, "o"), i = [1, 3], l = [1, 4], c = [1, 5], h = [1, 6], y = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], u = [1, 18], o = [2, 7], p = [1, 22], _ = [1, 23], R = [1, 24], f = [1, 25], I = [1, 26], q = [1, 27], v = [1, 20], A = [1, 28], $ = [1, 29], D = [62, 63], ye = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], pe = [1, 47], de = [1, 48], ge = [1, 49], _e = [1, 50], Ee = [1, 51], Re = [1, 52], me = [1, 53], C = [53, 54], P = [1, 64], U = [1, 60], Y = [1, 61], V = [1, 62], B = [1, 63], Q = [1, 65], G = [1, 69], z = [1, 70], X = [1, 67], J = [1, 68], S = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], re = {
9
+ trace: /* @__PURE__ */ n(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ 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 },
13
+ 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" },
14
+ 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]],
15
+ performAction: /* @__PURE__ */ n(function(w, t, a, r, d, s, b) {
16
+ var E = s.length - 1;
17
+ switch (d) {
18
+ case 4:
19
+ this.$ = s[E].trim(), r.setAccTitle(this.$);
20
+ break;
21
+ case 5:
22
+ case 6:
23
+ this.$ = s[E].trim(), r.setAccDescription(this.$);
24
+ break;
25
+ case 7:
26
+ this.$ = [];
27
+ break;
28
+ case 13:
29
+ r.addRequirement(s[E - 3], s[E - 4]);
30
+ break;
31
+ case 14:
32
+ r.setNewReqId(s[E - 2]);
33
+ break;
34
+ case 15:
35
+ r.setNewReqText(s[E - 2]);
36
+ break;
37
+ case 16:
38
+ r.setNewReqRisk(s[E - 2]);
39
+ break;
40
+ case 17:
41
+ r.setNewReqVerifyMethod(s[E - 2]);
42
+ break;
43
+ case 20:
44
+ this.$ = r.RequirementType.REQUIREMENT;
45
+ break;
46
+ case 21:
47
+ this.$ = r.RequirementType.FUNCTIONAL_REQUIREMENT;
48
+ break;
49
+ case 22:
50
+ this.$ = r.RequirementType.INTERFACE_REQUIREMENT;
51
+ break;
52
+ case 23:
53
+ this.$ = r.RequirementType.PERFORMANCE_REQUIREMENT;
54
+ break;
55
+ case 24:
56
+ this.$ = r.RequirementType.PHYSICAL_REQUIREMENT;
57
+ break;
58
+ case 25:
59
+ this.$ = r.RequirementType.DESIGN_CONSTRAINT;
60
+ break;
61
+ case 26:
62
+ this.$ = r.RiskLevel.LOW_RISK;
63
+ break;
64
+ case 27:
65
+ this.$ = r.RiskLevel.MED_RISK;
66
+ break;
67
+ case 28:
68
+ this.$ = r.RiskLevel.HIGH_RISK;
69
+ break;
70
+ case 29:
71
+ this.$ = r.VerifyType.VERIFY_ANALYSIS;
72
+ break;
73
+ case 30:
74
+ this.$ = r.VerifyType.VERIFY_DEMONSTRATION;
75
+ break;
76
+ case 31:
77
+ this.$ = r.VerifyType.VERIFY_INSPECTION;
78
+ break;
79
+ case 32:
80
+ this.$ = r.VerifyType.VERIFY_TEST;
81
+ break;
82
+ case 33:
83
+ r.addElement(s[E - 3]);
84
+ break;
85
+ case 34:
86
+ r.setNewElementType(s[E - 2]);
87
+ break;
88
+ case 35:
89
+ r.setNewElementDocRef(s[E - 2]);
90
+ break;
91
+ case 38:
92
+ r.addRelationship(s[E - 2], s[E], s[E - 4]);
93
+ break;
94
+ case 39:
95
+ r.addRelationship(s[E - 2], s[E - 4], s[E]);
96
+ break;
97
+ case 40:
98
+ this.$ = r.Relationships.CONTAINS;
99
+ break;
100
+ case 41:
101
+ this.$ = r.Relationships.COPIES;
102
+ break;
103
+ case 42:
104
+ this.$ = r.Relationships.DERIVES;
105
+ break;
106
+ case 43:
107
+ this.$ = r.Relationships.SATISFIES;
108
+ break;
109
+ case 44:
110
+ this.$ = r.Relationships.VERIFIES;
111
+ break;
112
+ case 45:
113
+ this.$ = r.Relationships.REFINES;
114
+ break;
115
+ case 46:
116
+ this.$ = r.Relationships.TRACES;
117
+ break;
118
+ }
119
+ }, "anonymous"),
120
+ table: [{ 3: 1, 4: 2, 6: i, 9: l, 11: c, 13: h }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: i, 9: l, 11: c, 13: h }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(y, [2, 6]), { 3: 12, 4: 2, 6: i, 9: l, 11: c, 13: h }, { 1: [2, 2] }, { 4: 17, 5: u, 7: 13, 8: o, 9: l, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: f, 35: I, 36: q, 44: v, 62: A, 63: $ }, e(y, [2, 4]), e(y, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: u, 7: 31, 8: o, 9: l, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: f, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 32, 8: o, 9: l, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: f, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 33, 8: o, 9: l, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: f, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 34, 8: o, 9: l, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: f, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 35, 8: o, 9: l, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: f, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, e(D, [2, 20]), e(D, [2, 21]), e(D, [2, 22]), e(D, [2, 23]), e(D, [2, 24]), e(D, [2, 25]), e(ye, [2, 49]), e(ye, [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: pe, 56: de, 57: ge, 58: _e, 59: Ee, 60: Re, 61: me }, { 52: 54, 55: pe, 56: de, 57: ge, 58: _e, 59: Ee, 60: Re, 61: me }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, e(C, [2, 40]), e(C, [2, 41]), e(C, [2, 42]), e(C, [2, 43]), e(C, [2, 44]), e(C, [2, 45]), e(C, [2, 46]), { 54: [1, 58] }, { 5: P, 20: 59, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: G, 30: z, 46: 66, 47: X, 49: J }, { 23: 71, 62: A, 63: $ }, { 23: 72, 62: A, 63: $ }, e(S, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: P, 20: 77, 21: U, 24: Y, 26: V, 28: B, 30: Q }, e(S, [2, 19]), e(S, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: G, 30: z, 46: 80, 47: X, 49: J }, e(S, [2, 37]), e(S, [2, 38]), e(S, [2, 39]), { 23: 81, 62: A, 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] }, e(S, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, e(S, [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: P, 20: 106, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: P, 20: 107, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: P, 20: 108, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: P, 20: 109, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: G, 30: z, 46: 110, 47: X, 49: J }, { 5: G, 30: z, 46: 111, 47: X, 49: J }, e(S, [2, 14]), e(S, [2, 15]), e(S, [2, 16]), e(S, [2, 17]), e(S, [2, 34]), e(S, [2, 35])],
121
+ 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] },
122
+ parseError: /* @__PURE__ */ n(function(w, t) {
123
+ if (t.recoverable)
124
+ this.trace(w);
125
+ else {
126
+ var a = new Error(w);
127
+ throw a.hash = t, a;
128
+ }
129
+ }, "parseError"),
130
+ parse: /* @__PURE__ */ n(function(w) {
131
+ var t = this, a = [0], r = [], d = [null], s = [], b = this.table, E = "", ee = 0, fe = 0, Oe = 2, Ie = 1, Le = s.slice.call(arguments, 1), m = Object.create(this.lexer), F = { yy: {} };
132
+ for (var ne in this.yy)
133
+ Object.prototype.hasOwnProperty.call(this.yy, ne) && (F.yy[ne] = this.yy[ne]);
134
+ m.setInput(w, F.yy), F.yy.lexer = m, F.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
135
+ var se = m.yylloc;
136
+ s.push(se);
137
+ var Ce = m.options && m.options.ranges;
138
+ typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
139
+ function Fe(k) {
140
+ a.length = a.length - 2 * k, d.length = d.length - k, s.length = s.length - k;
141
+ }
142
+ n(Fe, "popStack");
143
+ function Se() {
144
+ var k;
145
+ return k = r.pop() || m.lex() || Ie, typeof k != "number" && (k instanceof Array && (r = k, k = r.pop()), k = t.symbols_[k] || k), k;
146
+ }
147
+ n(Se, "lex");
148
+ for (var N, M, x, ae, K = {}, te, O, be, ie; ; ) {
149
+ if (M = a[a.length - 1], this.defaultActions[M] ? x = this.defaultActions[M] : ((N === null || typeof N > "u") && (N = Se()), x = b[M] && b[M][N]), typeof x > "u" || !x.length || !x[0]) {
150
+ var oe = "";
151
+ ie = [];
152
+ for (te in b[M])
153
+ this.terminals_[te] && te > Oe && ie.push("'" + this.terminals_[te] + "'");
154
+ m.showPosition ? oe = "Parse error on line " + (ee + 1) + `:
155
+ ` + m.showPosition() + `
156
+ Expecting ` + ie.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : oe = "Parse error on line " + (ee + 1) + ": Unexpected " + (N == Ie ? "end of input" : "'" + (this.terminals_[N] || N) + "'"), this.parseError(oe, {
157
+ text: m.match,
158
+ token: this.terminals_[N] || N,
159
+ line: m.yylineno,
160
+ loc: se,
161
+ expected: ie
162
+ });
163
+ }
164
+ if (x[0] instanceof Array && x.length > 1)
165
+ throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + N);
166
+ switch (x[0]) {
167
+ case 1:
168
+ a.push(N), d.push(m.yytext), s.push(m.yylloc), a.push(x[1]), N = null, fe = m.yyleng, E = m.yytext, ee = m.yylineno, se = m.yylloc;
169
+ break;
170
+ case 2:
171
+ if (O = this.productions_[x[1]][1], K.$ = d[d.length - O], K._$ = {
172
+ first_line: s[s.length - (O || 1)].first_line,
173
+ last_line: s[s.length - 1].last_line,
174
+ first_column: s[s.length - (O || 1)].first_column,
175
+ last_column: s[s.length - 1].last_column
176
+ }, Ce && (K._$.range = [
177
+ s[s.length - (O || 1)].range[0],
178
+ s[s.length - 1].range[1]
179
+ ]), ae = this.performAction.apply(K, [
180
+ E,
181
+ fe,
182
+ ee,
183
+ F.yy,
184
+ x[1],
185
+ d,
186
+ s
187
+ ].concat(Le)), typeof ae < "u")
188
+ return ae;
189
+ O && (a = a.slice(0, -1 * O * 2), d = d.slice(0, -1 * O), s = s.slice(0, -1 * O)), a.push(this.productions_[x[1]][0]), d.push(K.$), s.push(K._$), be = b[a[a.length - 2]][a[a.length - 1]], a.push(be);
190
+ break;
191
+ case 3:
192
+ return !0;
193
+ }
194
+ }
195
+ return !0;
196
+ }, "parse")
197
+ }, $e = /* @__PURE__ */ function() {
198
+ var w = {
199
+ EOF: 1,
200
+ parseError: /* @__PURE__ */ n(function(t, a) {
201
+ if (this.yy.parser)
202
+ this.yy.parser.parseError(t, a);
203
+ else
204
+ throw new Error(t);
205
+ }, "parseError"),
206
+ // resets the lexer, sets new input
207
+ setInput: /* @__PURE__ */ n(function(t, a) {
208
+ return this.yy = a || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
209
+ first_line: 1,
210
+ first_column: 0,
211
+ last_line: 1,
212
+ last_column: 0
213
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
214
+ }, "setInput"),
215
+ // consumes and returns one char from the input
216
+ input: /* @__PURE__ */ n(function() {
217
+ var t = this._input[0];
218
+ this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
219
+ var a = t.match(/(?:\r\n?|\n).*/g);
220
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
221
+ }, "input"),
222
+ // unshifts one char (or a string) into the input
223
+ unput: /* @__PURE__ */ n(function(t) {
224
+ var a = t.length, r = t.split(/(?:\r\n?|\n)/g);
225
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
226
+ var d = this.match.split(/(?:\r\n?|\n)/g);
227
+ 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);
228
+ var s = this.yylloc.range;
229
+ return this.yylloc = {
230
+ first_line: this.yylloc.first_line,
231
+ last_line: this.yylineno + 1,
232
+ first_column: this.yylloc.first_column,
233
+ 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 - a
234
+ }, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
235
+ }, "unput"),
236
+ // When called from action, caches matched text and appends it on next action
237
+ more: /* @__PURE__ */ n(function() {
238
+ return this._more = !0, this;
239
+ }, "more"),
240
+ // 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.
241
+ reject: /* @__PURE__ */ n(function() {
242
+ if (this.options.backtrack_lexer)
243
+ this._backtrack = !0;
244
+ else
245
+ 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).
246
+ ` + this.showPosition(), {
247
+ text: "",
248
+ token: null,
249
+ line: this.yylineno
250
+ });
251
+ return this;
252
+ }, "reject"),
253
+ // retain first n characters of the match
254
+ less: /* @__PURE__ */ n(function(t) {
255
+ this.unput(this.match.slice(t));
256
+ }, "less"),
257
+ // displays already matched input, i.e. for error messages
258
+ pastInput: /* @__PURE__ */ n(function() {
259
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
260
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
261
+ }, "pastInput"),
262
+ // displays upcoming input, i.e. for error messages
263
+ upcomingInput: /* @__PURE__ */ n(function() {
264
+ var t = this.match;
265
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
266
+ }, "upcomingInput"),
267
+ // displays the character position where the lexing error occurred, i.e. for error messages
268
+ showPosition: /* @__PURE__ */ n(function() {
269
+ var t = this.pastInput(), a = new Array(t.length + 1).join("-");
270
+ return t + this.upcomingInput() + `
271
+ ` + a + "^";
272
+ }, "showPosition"),
273
+ // test the lexed token: return FALSE when not a match, otherwise return token
274
+ test_match: /* @__PURE__ */ n(function(t, a) {
275
+ var r, d, s;
276
+ if (this.options.backtrack_lexer && (s = {
277
+ yylineno: this.yylineno,
278
+ yylloc: {
279
+ first_line: this.yylloc.first_line,
280
+ last_line: this.last_line,
281
+ first_column: this.yylloc.first_column,
282
+ last_column: this.yylloc.last_column
283
+ },
284
+ yytext: this.yytext,
285
+ match: this.match,
286
+ matches: this.matches,
287
+ matched: this.matched,
288
+ yyleng: this.yyleng,
289
+ offset: this.offset,
290
+ _more: this._more,
291
+ _input: this._input,
292
+ yy: this.yy,
293
+ conditionStack: this.conditionStack.slice(0),
294
+ done: this.done
295
+ }, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), d = t[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
296
+ first_line: this.yylloc.last_line,
297
+ last_line: this.yylineno + 1,
298
+ first_column: this.yylloc.last_column,
299
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
300
+ }, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], r = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
301
+ return r;
302
+ if (this._backtrack) {
303
+ for (var b in s)
304
+ this[b] = s[b];
305
+ return !1;
306
+ }
307
+ return !1;
308
+ }, "test_match"),
309
+ // return next match in input
310
+ next: /* @__PURE__ */ n(function() {
311
+ if (this.done)
312
+ return this.EOF;
313
+ this._input || (this.done = !0);
314
+ var t, a, r, d;
315
+ this._more || (this.yytext = "", this.match = "");
316
+ for (var s = this._currentRules(), b = 0; b < s.length; b++)
317
+ if (r = this._input.match(this.rules[s[b]]), r && (!a || r[0].length > a[0].length)) {
318
+ if (a = r, d = b, this.options.backtrack_lexer) {
319
+ if (t = this.test_match(r, s[b]), t !== !1)
320
+ return t;
321
+ if (this._backtrack) {
322
+ a = !1;
323
+ continue;
324
+ } else
325
+ return !1;
326
+ } else if (!this.options.flex)
327
+ break;
328
+ }
329
+ return a ? (t = this.test_match(a, s[d]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
330
+ ` + this.showPosition(), {
331
+ text: "",
332
+ token: null,
333
+ line: this.yylineno
334
+ });
335
+ }, "next"),
336
+ // return next match that has a token
337
+ lex: /* @__PURE__ */ n(function() {
338
+ var t = this.next();
339
+ return t || this.lex();
340
+ }, "lex"),
341
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
342
+ begin: /* @__PURE__ */ n(function(t) {
343
+ this.conditionStack.push(t);
344
+ }, "begin"),
345
+ // pop the previously active lexer condition state off the condition stack
346
+ popState: /* @__PURE__ */ n(function() {
347
+ var t = this.conditionStack.length - 1;
348
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
349
+ }, "popState"),
350
+ // produce the lexer rule set which is active for the currently active lexer condition state
351
+ _currentRules: /* @__PURE__ */ n(function() {
352
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
353
+ }, "_currentRules"),
354
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
355
+ topState: /* @__PURE__ */ n(function(t) {
356
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
357
+ }, "topState"),
358
+ // alias for begin(condition)
359
+ pushState: /* @__PURE__ */ n(function(t) {
360
+ this.begin(t);
361
+ }, "pushState"),
362
+ // return the number of states currently on the stack
363
+ stateStackSize: /* @__PURE__ */ n(function() {
364
+ return this.conditionStack.length;
365
+ }, "stateStackSize"),
366
+ options: { "case-insensitive": !0 },
367
+ performAction: /* @__PURE__ */ n(function(t, a, r, d) {
368
+ switch (r) {
369
+ case 0:
370
+ return "title";
371
+ case 1:
372
+ return this.begin("acc_title"), 9;
373
+ case 2:
374
+ return this.popState(), "acc_title_value";
375
+ case 3:
376
+ return this.begin("acc_descr"), 11;
377
+ case 4:
378
+ return this.popState(), "acc_descr_value";
379
+ case 5:
380
+ this.begin("acc_descr_multiline");
381
+ break;
382
+ case 6:
383
+ this.popState();
384
+ break;
385
+ case 7:
386
+ return "acc_descr_multiline_value";
387
+ case 8:
388
+ return 5;
389
+ case 9:
390
+ break;
391
+ case 10:
392
+ break;
393
+ case 11:
394
+ break;
395
+ case 12:
396
+ return 8;
397
+ case 13:
398
+ return 6;
399
+ case 14:
400
+ return 19;
401
+ case 15:
402
+ return 30;
403
+ case 16:
404
+ return 22;
405
+ case 17:
406
+ return 21;
407
+ case 18:
408
+ return 24;
409
+ case 19:
410
+ return 26;
411
+ case 20:
412
+ return 28;
413
+ case 21:
414
+ return 31;
415
+ case 22:
416
+ return 32;
417
+ case 23:
418
+ return 33;
419
+ case 24:
420
+ return 34;
421
+ case 25:
422
+ return 35;
423
+ case 26:
424
+ return 36;
425
+ case 27:
426
+ return 37;
427
+ case 28:
428
+ return 38;
429
+ case 29:
430
+ return 39;
431
+ case 30:
432
+ return 40;
433
+ case 31:
434
+ return 41;
435
+ case 32:
436
+ return 42;
437
+ case 33:
438
+ return 43;
439
+ case 34:
440
+ return 44;
441
+ case 35:
442
+ return 55;
443
+ case 36:
444
+ return 56;
445
+ case 37:
446
+ return 57;
447
+ case 38:
448
+ return 58;
449
+ case 39:
450
+ return 59;
451
+ case 40:
452
+ return 60;
453
+ case 41:
454
+ return 61;
455
+ case 42:
456
+ return 47;
457
+ case 43:
458
+ return 49;
459
+ case 44:
460
+ return 51;
461
+ case 45:
462
+ return 54;
463
+ case 46:
464
+ return 53;
465
+ case 47:
466
+ this.begin("string");
467
+ break;
468
+ case 48:
469
+ this.popState();
470
+ break;
471
+ case 49:
472
+ return "qString";
473
+ case 50:
474
+ return a.yytext = a.yytext.trim(), 62;
475
+ }
476
+ }, "anonymous"),
477
+ 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],
478
+ 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 } }
479
+ };
480
+ return w;
481
+ }();
482
+ re.lexer = $e;
483
+ function Z() {
484
+ this.yy = {};
485
+ }
486
+ return n(Z, "Parser"), Z.prototype = re, re.Parser = Z, new Z();
487
+ }();
488
+ he.parser = he;
489
+ var We = he, ue = [], T = {}, H = /* @__PURE__ */ new Map(), L = {}, j = /* @__PURE__ */ new Map(), He = {
490
+ REQUIREMENT: "Requirement",
491
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
492
+ INTERFACE_REQUIREMENT: "Interface Requirement",
493
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
494
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
495
+ DESIGN_CONSTRAINT: "Design Constraint"
496
+ }, je = {
497
+ LOW_RISK: "Low",
498
+ MED_RISK: "Medium",
499
+ HIGH_RISK: "High"
500
+ }, Ge = {
501
+ VERIFY_ANALYSIS: "Analysis",
502
+ VERIFY_DEMONSTRATION: "Demonstration",
503
+ VERIFY_INSPECTION: "Inspection",
504
+ VERIFY_TEST: "Test"
505
+ }, ze = {
506
+ CONTAINS: "contains",
507
+ COPIES: "copies",
508
+ DERIVES: "derives",
509
+ SATISFIES: "satisfies",
510
+ VERIFIES: "verifies",
511
+ REFINES: "refines",
512
+ TRACES: "traces"
513
+ }, Xe = /* @__PURE__ */ n((e, i) => (H.has(e) || H.set(e, {
514
+ name: e,
515
+ type: i,
516
+ id: T.id,
517
+ text: T.text,
518
+ risk: T.risk,
519
+ verifyMethod: T.verifyMethod
520
+ }), T = {}, H.get(e)), "addRequirement"), Je = /* @__PURE__ */ n(() => H, "getRequirements"), Ze = /* @__PURE__ */ n((e) => {
521
+ T !== void 0 && (T.id = e);
522
+ }, "setNewReqId"), et = /* @__PURE__ */ n((e) => {
523
+ T !== void 0 && (T.text = e);
524
+ }, "setNewReqText"), tt = /* @__PURE__ */ n((e) => {
525
+ T !== void 0 && (T.risk = e);
526
+ }, "setNewReqRisk"), it = /* @__PURE__ */ n((e) => {
527
+ T !== void 0 && (T.verifyMethod = e);
528
+ }, "setNewReqVerifyMethod"), rt = /* @__PURE__ */ n((e) => (j.has(e) || (j.set(e, {
529
+ name: e,
530
+ type: L.type,
531
+ docRef: L.docRef
532
+ }), xe.info("Added new requirement: ", e)), L = {}, j.get(e)), "addElement"), nt = /* @__PURE__ */ n(() => j, "getElements"), st = /* @__PURE__ */ n((e) => {
533
+ L !== void 0 && (L.type = e);
534
+ }, "setNewElementType"), at = /* @__PURE__ */ n((e) => {
535
+ L !== void 0 && (L.docRef = e);
536
+ }, "setNewElementDocRef"), ot = /* @__PURE__ */ n((e, i, l) => {
537
+ ue.push({
538
+ type: e,
539
+ src: i,
540
+ dst: l
541
+ });
542
+ }, "addRelationship"), lt = /* @__PURE__ */ n(() => ue, "getRelationships"), ht = /* @__PURE__ */ n(() => {
543
+ ue = [], T = {}, H = /* @__PURE__ */ new Map(), L = {}, j = /* @__PURE__ */ new Map(), Ye();
544
+ }, "clear"), ct = {
545
+ RequirementType: He,
546
+ RiskLevel: je,
547
+ VerifyType: Ge,
548
+ Relationships: ze,
549
+ getConfig: /* @__PURE__ */ n(() => ke().req, "getConfig"),
550
+ addRequirement: Xe,
551
+ getRequirements: Je,
552
+ setNewReqId: Ze,
553
+ setNewReqText: et,
554
+ setNewReqRisk: tt,
555
+ setNewReqVerifyMethod: it,
556
+ setAccTitle: Me,
557
+ getAccTitle: De,
558
+ setAccDescription: Pe,
559
+ getAccDescription: Ue,
560
+ addElement: rt,
561
+ getElements: nt,
562
+ setNewElementType: st,
563
+ setNewElementDocRef: at,
564
+ addRelationship: ot,
565
+ getRelationships: lt,
566
+ clear: ht
567
+ }, ut = /* @__PURE__ */ n((e) => `
568
+
569
+ marker {
570
+ fill: ${e.relationColor};
571
+ stroke: ${e.relationColor};
572
+ }
573
+
574
+ marker.cross {
575
+ stroke: ${e.lineColor};
576
+ }
577
+
578
+ svg {
579
+ font-family: ${e.fontFamily};
580
+ font-size: ${e.fontSize};
581
+ }
582
+
583
+ .reqBox {
584
+ fill: ${e.requirementBackground};
585
+ fill-opacity: 1.0;
586
+ stroke: ${e.requirementBorderColor};
587
+ stroke-width: ${e.requirementBorderSize};
588
+ }
589
+
590
+ .reqTitle, .reqLabel{
591
+ fill: ${e.requirementTextColor};
592
+ }
593
+ .reqLabelBox {
594
+ fill: ${e.relationLabelBackground};
595
+ fill-opacity: 1.0;
596
+ }
597
+
598
+ .req-title-line {
599
+ stroke: ${e.requirementBorderColor};
600
+ stroke-width: ${e.requirementBorderSize};
601
+ }
602
+ .relationshipLine {
603
+ stroke: ${e.relationColor};
604
+ stroke-width: 1;
605
+ }
606
+ .relationshipLabel {
607
+ fill: ${e.relationLabelColor};
608
+ }
609
+
610
+ `, "getStyles"), yt = ut, ce = {
611
+ CONTAINS: "contains",
612
+ ARROW: "arrow"
613
+ }, pt = /* @__PURE__ */ n((e, i) => {
614
+ let l = e.append("defs").append("marker").attr("id", ce.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");
615
+ l.append("circle").attr("cx", i.line_height / 2).attr("cy", i.line_height / 2).attr("r", i.line_height / 2).attr("fill", "none"), l.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), l.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), e.append("defs").append("marker").attr("id", ce.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(
616
+ "d",
617
+ `M0,0
618
+ L${i.line_height},${i.line_height / 2}
619
+ M${i.line_height},${i.line_height / 2}
620
+ L0,${i.line_height}`
621
+ ).attr("stroke-width", 1);
622
+ }, "insertLineEndings"), Ae = {
623
+ ReqMarkers: ce,
624
+ insertLineEndings: pt
625
+ }, g = {}, Te = 0, we = /* @__PURE__ */ n((e, i) => e.insert("rect", "#" + i).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", g.rect_min_width + "px").attr("height", g.rect_min_height + "px"), "newRectNode"), qe = /* @__PURE__ */ n((e, i, l) => {
626
+ let c = g.rect_min_width / 2, h = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", i).attr("x", c).attr("y", g.rect_padding).attr("dominant-baseline", "hanging"), y = 0;
627
+ l.forEach((_) => {
628
+ y == 0 ? h.append("tspan").attr("text-anchor", "middle").attr("x", g.rect_min_width / 2).attr("dy", 0).text(_) : h.append("tspan").attr("text-anchor", "middle").attr("x", g.rect_min_width / 2).attr("dy", g.line_height * 0.75).text(_), y++;
629
+ });
630
+ let u = 1.5 * g.rect_padding, o = y * g.line_height * 0.75, p = u + o;
631
+ return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", g.rect_min_width).attr("y1", p).attr("y2", p), {
632
+ titleNode: h,
633
+ y: p
634
+ };
635
+ }, "newTitleNode"), ve = /* @__PURE__ */ n((e, i, l, c) => {
636
+ let h = e.append("text").attr("class", "req reqLabel").attr("id", i).attr("x", g.rect_padding).attr("y", c).attr("dominant-baseline", "hanging"), y = 0;
637
+ const u = 30;
638
+ let o = [];
639
+ return l.forEach((p) => {
640
+ let _ = p.length;
641
+ for (; _ > u && y < 3; ) {
642
+ let R = p.substring(0, u);
643
+ p = p.substring(u, p.length), _ = p.length, o[o.length] = R, y++;
644
+ }
645
+ if (y == 3) {
646
+ let R = o[o.length - 1];
647
+ o[o.length - 1] = R.substring(0, R.length - 4) + "...";
648
+ } else
649
+ o[o.length] = p;
650
+ y = 0;
651
+ }), o.forEach((p) => {
652
+ h.append("tspan").attr("x", g.rect_padding).attr("dy", g.line_height).text(p);
653
+ }), h;
654
+ }, "newBodyNode"), dt = /* @__PURE__ */ n((e, i, l, c) => {
655
+ const h = i.node().getTotalLength(), y = i.node().getPointAtLength(h * 0.5), u = "rel" + Te;
656
+ Te++;
657
+ const o = e.append("text").attr("class", "req relationshipLabel").attr("id", u).attr("x", y.x).attr("y", y.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c).node().getBBox();
658
+ e.insert("rect", "#" + u).attr("class", "req reqLabelBox").attr("x", y.x - o.width / 2).attr("y", y.y - o.height / 2).attr("width", o.width).attr("height", o.height).attr("fill", "white").attr("fill-opacity", "85%");
659
+ }, "addEdgeLabel"), gt = /* @__PURE__ */ n(function(e, i, l, c, h) {
660
+ const y = l.edge(W(i.src), W(i.dst)), u = Be().x(function(p) {
661
+ return p.x;
662
+ }).y(function(p) {
663
+ return p.y;
664
+ }), o = e.insert("path", "#" + c).attr("class", "er relationshipLine").attr("d", u(y.points)).attr("fill", "none");
665
+ i.type == h.db.Relationships.CONTAINS ? o.attr(
666
+ "marker-start",
667
+ "url(" + Ne.getUrl(g.arrowMarkerAbsolute) + "#" + i.type + "_line_ending)"
668
+ ) : (o.attr("stroke-dasharray", "10,7"), o.attr(
669
+ "marker-end",
670
+ "url(" + Ne.getUrl(g.arrowMarkerAbsolute) + "#" + Ae.ReqMarkers.ARROW + "_line_ending)"
671
+ )), dt(e, o, g, `<<${i.type}>>`);
672
+ }, "drawRelationshipFromLayout"), _t = /* @__PURE__ */ n((e, i, l) => {
673
+ e.forEach((c, h) => {
674
+ h = W(h), xe.info("Added new requirement: ", h);
675
+ const y = l.append("g").attr("id", h), u = "req-" + h, o = we(y, u);
676
+ let p = [], _ = qe(y, h + "_title", [
677
+ `<<${c.type}>>`,
678
+ `${c.name}`
679
+ ]);
680
+ p.push(_.titleNode);
681
+ let R = ve(
682
+ y,
683
+ h + "_body",
684
+ [
685
+ `Id: ${c.id}`,
686
+ `Text: ${c.text}`,
687
+ `Risk: ${c.risk}`,
688
+ `Verification: ${c.verifyMethod}`
689
+ ],
690
+ _.y
691
+ );
692
+ p.push(R);
693
+ const f = o.node().getBBox();
694
+ i.setNode(h, {
695
+ width: f.width,
696
+ height: f.height,
697
+ shape: "rect",
698
+ id: h
699
+ });
700
+ });
701
+ }, "drawReqs"), Et = /* @__PURE__ */ n((e, i, l) => {
702
+ e.forEach((c, h) => {
703
+ const y = W(h), u = l.append("g").attr("id", y), o = "element-" + y, p = we(u, o);
704
+ let _ = [], R = qe(u, o + "_title", ["<<Element>>", `${h}`]);
705
+ _.push(R.titleNode);
706
+ let f = ve(
707
+ u,
708
+ o + "_body",
709
+ [`Type: ${c.type || "Not Specified"}`, `Doc Ref: ${c.docRef || "None"}`],
710
+ R.y
711
+ );
712
+ _.push(f);
713
+ const I = p.node().getBBox();
714
+ i.setNode(y, {
715
+ width: I.width,
716
+ height: I.height,
717
+ shape: "rect",
718
+ id: y
719
+ });
720
+ });
721
+ }, "drawElements"), Rt = /* @__PURE__ */ n((e, i) => (e.forEach(function(l) {
722
+ let c = W(l.src), h = W(l.dst);
723
+ i.setEdge(c, h, { relationship: l });
724
+ }), e), "addRelationships"), mt = /* @__PURE__ */ n(function(e, i) {
725
+ i.nodes().forEach(function(l) {
726
+ l !== void 0 && i.node(l) !== void 0 && (e.select("#" + l), e.select("#" + l).attr(
727
+ "transform",
728
+ "translate(" + (i.node(l).x - i.node(l).width / 2) + "," + (i.node(l).y - i.node(l).height / 2) + " )"
729
+ ));
730
+ });
731
+ }, "adjustEntities"), W = /* @__PURE__ */ n((e) => e.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), ft = /* @__PURE__ */ n((e, i, l, c) => {
732
+ g = ke().requirement;
733
+ const h = g.securityLevel;
734
+ let y;
735
+ h === "sandbox" && (y = le("#i" + i));
736
+ const u = (h === "sandbox" ? le(y.nodes()[0].contentDocument.body) : le("body")).select(`[id='${i}']`);
737
+ Ae.insertLineEndings(u, g);
738
+ const o = new Qe({
739
+ multigraph: !1,
740
+ compound: !1,
741
+ directed: !0
742
+ }).setGraph({
743
+ rankdir: g.layoutDirection,
744
+ marginx: 20,
745
+ marginy: 20,
746
+ nodesep: 100,
747
+ edgesep: 100,
748
+ ranksep: 100
749
+ }).setDefaultEdgeLabel(function() {
750
+ return {};
751
+ });
752
+ let p = c.db.getRequirements(), _ = c.db.getElements(), R = c.db.getRelationships();
753
+ _t(p, o, u), Et(_, o, u), Rt(R, o), Ke(o), mt(u, o), R.forEach(function(A) {
754
+ gt(u, A, o, i, c);
755
+ });
756
+ const f = g.rect_padding, I = u.node().getBBox(), q = I.width + f * 2, v = I.height + f * 2;
757
+ Ve(u, v, q, g.useMaxWidth), u.attr("viewBox", `${I.x - f} ${I.y - f} ${q} ${v}`);
758
+ }, "draw"), It = {
759
+ draw: ft
760
+ }, Tt = {
761
+ parser: We,
762
+ db: ct,
763
+ renderer: It,
764
+ styles: yt
765
+ };
766
+ export {
767
+ Tt as diagram
768
+ };