@peasant-labs/fairtrade 0.0.51 → 0.0.52

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