@digipair/skill-web-chatbot 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/SAP-icons.cjs.js +2489 -0
  2. package/SAP-icons.cjs2.js +2489 -0
  3. package/SAP-icons.esm.js +2482 -0
  4. package/SAP-icons.esm2.js +2482 -0
  5. package/arc-da8fd8d8.cjs.js +88 -0
  6. package/arc-da8fd8d8.esm.js +86 -0
  7. package/array-2ff2c7a6.cjs.js +7 -0
  8. package/array-2ff2c7a6.esm.js +5 -0
  9. package/c4Diagram-1bdb45a8.cjs.js +4613 -0
  10. package/c4Diagram-1bdb45a8.esm.js +4611 -0
  11. package/classDiagram-185c1a10.cjs.js +96 -0
  12. package/classDiagram-185c1a10.esm.js +94 -0
  13. package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
  14. package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
  15. package/constant-2fe7eae5.cjs.js +58 -0
  16. package/constant-2fe7eae5.esm.js +55 -0
  17. package/createText-94e3ebbf.cjs.js +2775 -0
  18. package/createText-94e3ebbf.esm.js +2773 -0
  19. package/debug.html +18 -0
  20. package/edges-558884ee.cjs.js +1450 -0
  21. package/edges-558884ee.esm.js +1436 -0
  22. package/erDiagram-97139f44.cjs.js +1949 -0
  23. package/erDiagram-97139f44.esm.js +1947 -0
  24. package/flowDb-a4faf166.cjs.js +6918 -0
  25. package/flowDb-a4faf166.esm.js +6914 -0
  26. package/flowDiagram-ccbbb58d.cjs.js +999 -0
  27. package/flowDiagram-ccbbb58d.esm.js +997 -0
  28. package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
  29. package/flowDiagram-v2-79ccd6da.esm.js +27 -0
  30. package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
  31. package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
  32. package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
  33. package/ganttDiagram-3eff0dd8.esm.js +3853 -0
  34. package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
  35. package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
  36. package/index-d0b453e2.cjs.js +609 -0
  37. package/index-d0b453e2.esm.js +607 -0
  38. package/index.cjs.d.ts +1 -0
  39. package/index.cjs.js +17 -0
  40. package/index.cjs2.js +43619 -0
  41. package/index.d.ts +1 -0
  42. package/index.esm.js +1 -0
  43. package/index.esm2.js +43493 -0
  44. package/infoDiagram-9c10eab1.cjs.js +467 -0
  45. package/infoDiagram-9c10eab1.esm.js +465 -0
  46. package/init-f9637058.cjs.js +17 -0
  47. package/init-f9637058.esm.js +15 -0
  48. package/journeyDiagram-b6904cec.cjs.js +1292 -0
  49. package/journeyDiagram-b6904cec.esm.js +1290 -0
  50. package/layout-c5a37d74.cjs.js +2808 -0
  51. package/layout-c5a37d74.esm.js +2795 -0
  52. package/libs/engine/src/index.d.ts +2 -0
  53. package/libs/engine/src/lib/engine.d.ts +27 -0
  54. package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
  55. package/libs/skill-web-chatbot/src/index.d.ts +3 -0
  56. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
  57. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  58. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  59. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  60. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
  61. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  62. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
  63. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
  64. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
  65. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  66. package/line-ce5d1152.cjs.js +34 -0
  67. package/line-ce5d1152.esm.js +32 -0
  68. package/linear-db016d0c.cjs.js +485 -0
  69. package/linear-db016d0c.esm.js +479 -0
  70. package/mindmap-definition-a9d0f378.cjs.js +20225 -0
  71. package/mindmap-definition-a9d0f378.esm.js +20223 -0
  72. package/ordinal-5695958c.cjs.js +331 -0
  73. package/ordinal-5695958c.esm.js +329 -0
  74. package/package.json +8 -0
  75. package/pieDiagram-fd367f1f.cjs.js +1157 -0
  76. package/pieDiagram-fd367f1f.esm.js +1155 -0
  77. package/quadrantDiagram-1763608a.cjs.js +2633 -0
  78. package/quadrantDiagram-1763608a.esm.js +2631 -0
  79. package/requirementDiagram-779d93b3.cjs.js +2451 -0
  80. package/requirementDiagram-779d93b3.esm.js +2449 -0
  81. package/sankeyDiagram-86a66bae.cjs.js +1850 -0
  82. package/sankeyDiagram-86a66bae.esm.js +1848 -0
  83. package/sequenceDiagram-169f11ec.cjs.js +4805 -0
  84. package/sequenceDiagram-169f11ec.esm.js +4803 -0
  85. package/stateDiagram-6f4bb19d.cjs.js +282 -0
  86. package/stateDiagram-6f4bb19d.esm.js +280 -0
  87. package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
  88. package/stateDiagram-v2-d72c79bd.esm.js +375 -0
  89. package/styles-3814544c.cjs.js +534 -0
  90. package/styles-3814544c.esm.js +524 -0
  91. package/styles-3fb7b9cf.cjs.js +2377 -0
  92. package/styles-3fb7b9cf.esm.js +2368 -0
  93. package/styles-659d7242.cjs.js +3919 -0
  94. package/styles-659d7242.esm.js +3915 -0
  95. package/svgDraw-af99a425.cjs.js +144 -0
  96. package/svgDraw-af99a425.esm.js +141 -0
  97. package/svgDrawCommon-ebe6c236.cjs.js +70 -0
  98. package/svgDrawCommon-ebe6c236.esm.js +62 -0
  99. package/timeline-definition-65183566.cjs.js +1394 -0
  100. package/timeline-definition-65183566.esm.js +1392 -0
@@ -0,0 +1,2451 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index.cjs2.js');
4
+ var layoutC5a37d74 = require('./layout-c5a37d74.cjs.js');
5
+ var lineCe5d1152 = require('./line-ce5d1152.cjs.js');
6
+ require('./array-2ff2c7a6.cjs.js');
7
+ require('./constant-2fe7eae5.cjs.js');
8
+
9
+ function _instanceof(left, right) {
10
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
11
+ return !!right[Symbol.hasInstance](left);
12
+ } else {
13
+ return left instanceof right;
14
+ }
15
+ }
16
+ function _type_of(obj) {
17
+ "@swc/helpers - typeof";
18
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
19
+ }
20
+ var he = function() {
21
+ var e = function e(q, r, s, l) {
22
+ for(s = s || {}, l = q.length; l--; s[q[l]] = r);
23
+ return s;
24
+ }, t = [
25
+ 1,
26
+ 3
27
+ ], a = [
28
+ 1,
29
+ 5
30
+ ], o = [
31
+ 1,
32
+ 6
33
+ ], d = [
34
+ 1,
35
+ 7
36
+ ], u = [
37
+ 1,
38
+ 8
39
+ ], p = [
40
+ 5,
41
+ 6,
42
+ 8,
43
+ 14,
44
+ 16,
45
+ 18,
46
+ 19,
47
+ 40,
48
+ 41,
49
+ 42,
50
+ 43,
51
+ 44,
52
+ 45,
53
+ 53,
54
+ 71,
55
+ 72
56
+ ], h = [
57
+ 1,
58
+ 22
59
+ ], c = [
60
+ 2,
61
+ 13
62
+ ], g = [
63
+ 1,
64
+ 26
65
+ ], R = [
66
+ 1,
67
+ 27
68
+ ], x = [
69
+ 1,
70
+ 28
71
+ ], S = [
72
+ 1,
73
+ 29
74
+ ], T = [
75
+ 1,
76
+ 30
77
+ ], v = [
78
+ 1,
79
+ 31
80
+ ], A = [
81
+ 1,
82
+ 24
83
+ ], N = [
84
+ 1,
85
+ 32
86
+ ], w = [
87
+ 1,
88
+ 33
89
+ ], pe = [
90
+ 1,
91
+ 36
92
+ ], F = [
93
+ 71,
94
+ 72
95
+ ], fe = [
96
+ 5,
97
+ 8,
98
+ 14,
99
+ 16,
100
+ 18,
101
+ 19,
102
+ 40,
103
+ 41,
104
+ 42,
105
+ 43,
106
+ 44,
107
+ 45,
108
+ 53,
109
+ 60,
110
+ 62,
111
+ 71,
112
+ 72
113
+ ], _e = [
114
+ 1,
115
+ 56
116
+ ], ye = [
117
+ 1,
118
+ 57
119
+ ], ge = [
120
+ 1,
121
+ 58
122
+ ], Ee = [
123
+ 1,
124
+ 59
125
+ ], Re = [
126
+ 1,
127
+ 60
128
+ ], me = [
129
+ 1,
130
+ 61
131
+ ], Ie = [
132
+ 1,
133
+ 62
134
+ ], L = [
135
+ 62,
136
+ 63
137
+ ], M = [
138
+ 1,
139
+ 74
140
+ ], P = [
141
+ 1,
142
+ 70
143
+ ], Y = [
144
+ 1,
145
+ 71
146
+ ], U = [
147
+ 1,
148
+ 72
149
+ ], B = [
150
+ 1,
151
+ 73
152
+ ], Q = [
153
+ 1,
154
+ 75
155
+ ], z = [
156
+ 1,
157
+ 79
158
+ ], X = [
159
+ 1,
160
+ 80
161
+ ], J = [
162
+ 1,
163
+ 77
164
+ ], Z = [
165
+ 1,
166
+ 78
167
+ ], m = [
168
+ 5,
169
+ 8,
170
+ 14,
171
+ 16,
172
+ 18,
173
+ 19,
174
+ 40,
175
+ 41,
176
+ 42,
177
+ 43,
178
+ 44,
179
+ 45,
180
+ 53,
181
+ 71,
182
+ 72
183
+ ], re = {
184
+ trace: function trace() {},
185
+ yy: {},
186
+ symbols_: {
187
+ error: 2,
188
+ start: 3,
189
+ directive: 4,
190
+ NEWLINE: 5,
191
+ RD: 6,
192
+ diagram: 7,
193
+ EOF: 8,
194
+ openDirective: 9,
195
+ typeDirective: 10,
196
+ closeDirective: 11,
197
+ ":": 12,
198
+ argDirective: 13,
199
+ acc_title: 14,
200
+ acc_title_value: 15,
201
+ acc_descr: 16,
202
+ acc_descr_value: 17,
203
+ acc_descr_multiline_value: 18,
204
+ open_directive: 19,
205
+ type_directive: 20,
206
+ arg_directive: 21,
207
+ close_directive: 22,
208
+ requirementDef: 23,
209
+ elementDef: 24,
210
+ relationshipDef: 25,
211
+ requirementType: 26,
212
+ requirementName: 27,
213
+ STRUCT_START: 28,
214
+ requirementBody: 29,
215
+ ID: 30,
216
+ COLONSEP: 31,
217
+ id: 32,
218
+ TEXT: 33,
219
+ text: 34,
220
+ RISK: 35,
221
+ riskLevel: 36,
222
+ VERIFYMTHD: 37,
223
+ verifyType: 38,
224
+ STRUCT_STOP: 39,
225
+ REQUIREMENT: 40,
226
+ FUNCTIONAL_REQUIREMENT: 41,
227
+ INTERFACE_REQUIREMENT: 42,
228
+ PERFORMANCE_REQUIREMENT: 43,
229
+ PHYSICAL_REQUIREMENT: 44,
230
+ DESIGN_CONSTRAINT: 45,
231
+ LOW_RISK: 46,
232
+ MED_RISK: 47,
233
+ HIGH_RISK: 48,
234
+ VERIFY_ANALYSIS: 49,
235
+ VERIFY_DEMONSTRATION: 50,
236
+ VERIFY_INSPECTION: 51,
237
+ VERIFY_TEST: 52,
238
+ ELEMENT: 53,
239
+ elementName: 54,
240
+ elementBody: 55,
241
+ TYPE: 56,
242
+ type: 57,
243
+ DOCREF: 58,
244
+ ref: 59,
245
+ END_ARROW_L: 60,
246
+ relationship: 61,
247
+ LINE: 62,
248
+ END_ARROW_R: 63,
249
+ CONTAINS: 64,
250
+ COPIES: 65,
251
+ DERIVES: 66,
252
+ SATISFIES: 67,
253
+ VERIFIES: 68,
254
+ REFINES: 69,
255
+ TRACES: 70,
256
+ unqString: 71,
257
+ qString: 72,
258
+ $accept: 0,
259
+ $end: 1
260
+ },
261
+ terminals_: {
262
+ 2: "error",
263
+ 5: "NEWLINE",
264
+ 6: "RD",
265
+ 8: "EOF",
266
+ 12: ":",
267
+ 14: "acc_title",
268
+ 15: "acc_title_value",
269
+ 16: "acc_descr",
270
+ 17: "acc_descr_value",
271
+ 18: "acc_descr_multiline_value",
272
+ 19: "open_directive",
273
+ 20: "type_directive",
274
+ 21: "arg_directive",
275
+ 22: "close_directive",
276
+ 28: "STRUCT_START",
277
+ 30: "ID",
278
+ 31: "COLONSEP",
279
+ 33: "TEXT",
280
+ 35: "RISK",
281
+ 37: "VERIFYMTHD",
282
+ 39: "STRUCT_STOP",
283
+ 40: "REQUIREMENT",
284
+ 41: "FUNCTIONAL_REQUIREMENT",
285
+ 42: "INTERFACE_REQUIREMENT",
286
+ 43: "PERFORMANCE_REQUIREMENT",
287
+ 44: "PHYSICAL_REQUIREMENT",
288
+ 45: "DESIGN_CONSTRAINT",
289
+ 46: "LOW_RISK",
290
+ 47: "MED_RISK",
291
+ 48: "HIGH_RISK",
292
+ 49: "VERIFY_ANALYSIS",
293
+ 50: "VERIFY_DEMONSTRATION",
294
+ 51: "VERIFY_INSPECTION",
295
+ 52: "VERIFY_TEST",
296
+ 53: "ELEMENT",
297
+ 56: "TYPE",
298
+ 58: "DOCREF",
299
+ 60: "END_ARROW_L",
300
+ 62: "LINE",
301
+ 63: "END_ARROW_R",
302
+ 64: "CONTAINS",
303
+ 65: "COPIES",
304
+ 66: "DERIVES",
305
+ 67: "SATISFIES",
306
+ 68: "VERIFIES",
307
+ 69: "REFINES",
308
+ 70: "TRACES",
309
+ 71: "unqString",
310
+ 72: "qString"
311
+ },
312
+ productions_: [
313
+ 0,
314
+ [
315
+ 3,
316
+ 3
317
+ ],
318
+ [
319
+ 3,
320
+ 2
321
+ ],
322
+ [
323
+ 3,
324
+ 4
325
+ ],
326
+ [
327
+ 4,
328
+ 3
329
+ ],
330
+ [
331
+ 4,
332
+ 5
333
+ ],
334
+ [
335
+ 4,
336
+ 2
337
+ ],
338
+ [
339
+ 4,
340
+ 2
341
+ ],
342
+ [
343
+ 4,
344
+ 1
345
+ ],
346
+ [
347
+ 9,
348
+ 1
349
+ ],
350
+ [
351
+ 10,
352
+ 1
353
+ ],
354
+ [
355
+ 13,
356
+ 1
357
+ ],
358
+ [
359
+ 11,
360
+ 1
361
+ ],
362
+ [
363
+ 7,
364
+ 0
365
+ ],
366
+ [
367
+ 7,
368
+ 2
369
+ ],
370
+ [
371
+ 7,
372
+ 2
373
+ ],
374
+ [
375
+ 7,
376
+ 2
377
+ ],
378
+ [
379
+ 7,
380
+ 2
381
+ ],
382
+ [
383
+ 7,
384
+ 2
385
+ ],
386
+ [
387
+ 23,
388
+ 5
389
+ ],
390
+ [
391
+ 29,
392
+ 5
393
+ ],
394
+ [
395
+ 29,
396
+ 5
397
+ ],
398
+ [
399
+ 29,
400
+ 5
401
+ ],
402
+ [
403
+ 29,
404
+ 5
405
+ ],
406
+ [
407
+ 29,
408
+ 2
409
+ ],
410
+ [
411
+ 29,
412
+ 1
413
+ ],
414
+ [
415
+ 26,
416
+ 1
417
+ ],
418
+ [
419
+ 26,
420
+ 1
421
+ ],
422
+ [
423
+ 26,
424
+ 1
425
+ ],
426
+ [
427
+ 26,
428
+ 1
429
+ ],
430
+ [
431
+ 26,
432
+ 1
433
+ ],
434
+ [
435
+ 26,
436
+ 1
437
+ ],
438
+ [
439
+ 36,
440
+ 1
441
+ ],
442
+ [
443
+ 36,
444
+ 1
445
+ ],
446
+ [
447
+ 36,
448
+ 1
449
+ ],
450
+ [
451
+ 38,
452
+ 1
453
+ ],
454
+ [
455
+ 38,
456
+ 1
457
+ ],
458
+ [
459
+ 38,
460
+ 1
461
+ ],
462
+ [
463
+ 38,
464
+ 1
465
+ ],
466
+ [
467
+ 24,
468
+ 5
469
+ ],
470
+ [
471
+ 55,
472
+ 5
473
+ ],
474
+ [
475
+ 55,
476
+ 5
477
+ ],
478
+ [
479
+ 55,
480
+ 2
481
+ ],
482
+ [
483
+ 55,
484
+ 1
485
+ ],
486
+ [
487
+ 25,
488
+ 5
489
+ ],
490
+ [
491
+ 25,
492
+ 5
493
+ ],
494
+ [
495
+ 61,
496
+ 1
497
+ ],
498
+ [
499
+ 61,
500
+ 1
501
+ ],
502
+ [
503
+ 61,
504
+ 1
505
+ ],
506
+ [
507
+ 61,
508
+ 1
509
+ ],
510
+ [
511
+ 61,
512
+ 1
513
+ ],
514
+ [
515
+ 61,
516
+ 1
517
+ ],
518
+ [
519
+ 61,
520
+ 1
521
+ ],
522
+ [
523
+ 27,
524
+ 1
525
+ ],
526
+ [
527
+ 27,
528
+ 1
529
+ ],
530
+ [
531
+ 32,
532
+ 1
533
+ ],
534
+ [
535
+ 32,
536
+ 1
537
+ ],
538
+ [
539
+ 34,
540
+ 1
541
+ ],
542
+ [
543
+ 34,
544
+ 1
545
+ ],
546
+ [
547
+ 54,
548
+ 1
549
+ ],
550
+ [
551
+ 54,
552
+ 1
553
+ ],
554
+ [
555
+ 57,
556
+ 1
557
+ ],
558
+ [
559
+ 57,
560
+ 1
561
+ ],
562
+ [
563
+ 59,
564
+ 1
565
+ ],
566
+ [
567
+ 59,
568
+ 1
569
+ ]
570
+ ],
571
+ performAction: function performAction(r, s, l, i, _, n, K) {
572
+ var f = n.length - 1;
573
+ switch(_){
574
+ case 6:
575
+ this.$ = n[f].trim(), i.setAccTitle(this.$);
576
+ break;
577
+ case 7:
578
+ case 8:
579
+ this.$ = n[f].trim(), i.setAccDescription(this.$);
580
+ break;
581
+ case 9:
582
+ i.parseDirective("%%{", "open_directive");
583
+ break;
584
+ case 10:
585
+ i.parseDirective(n[f], "type_directive");
586
+ break;
587
+ case 11:
588
+ n[f] = n[f].trim().replace(/'/g, '"'), i.parseDirective(n[f], "arg_directive");
589
+ break;
590
+ case 12:
591
+ i.parseDirective("}%%", "close_directive", "pie");
592
+ break;
593
+ case 13:
594
+ this.$ = [];
595
+ break;
596
+ case 19:
597
+ i.addRequirement(n[f - 3], n[f - 4]);
598
+ break;
599
+ case 20:
600
+ i.setNewReqId(n[f - 2]);
601
+ break;
602
+ case 21:
603
+ i.setNewReqText(n[f - 2]);
604
+ break;
605
+ case 22:
606
+ i.setNewReqRisk(n[f - 2]);
607
+ break;
608
+ case 23:
609
+ i.setNewReqVerifyMethod(n[f - 2]);
610
+ break;
611
+ case 26:
612
+ this.$ = i.RequirementType.REQUIREMENT;
613
+ break;
614
+ case 27:
615
+ this.$ = i.RequirementType.FUNCTIONAL_REQUIREMENT;
616
+ break;
617
+ case 28:
618
+ this.$ = i.RequirementType.INTERFACE_REQUIREMENT;
619
+ break;
620
+ case 29:
621
+ this.$ = i.RequirementType.PERFORMANCE_REQUIREMENT;
622
+ break;
623
+ case 30:
624
+ this.$ = i.RequirementType.PHYSICAL_REQUIREMENT;
625
+ break;
626
+ case 31:
627
+ this.$ = i.RequirementType.DESIGN_CONSTRAINT;
628
+ break;
629
+ case 32:
630
+ this.$ = i.RiskLevel.LOW_RISK;
631
+ break;
632
+ case 33:
633
+ this.$ = i.RiskLevel.MED_RISK;
634
+ break;
635
+ case 34:
636
+ this.$ = i.RiskLevel.HIGH_RISK;
637
+ break;
638
+ case 35:
639
+ this.$ = i.VerifyType.VERIFY_ANALYSIS;
640
+ break;
641
+ case 36:
642
+ this.$ = i.VerifyType.VERIFY_DEMONSTRATION;
643
+ break;
644
+ case 37:
645
+ this.$ = i.VerifyType.VERIFY_INSPECTION;
646
+ break;
647
+ case 38:
648
+ this.$ = i.VerifyType.VERIFY_TEST;
649
+ break;
650
+ case 39:
651
+ i.addElement(n[f - 3]);
652
+ break;
653
+ case 40:
654
+ i.setNewElementType(n[f - 2]);
655
+ break;
656
+ case 41:
657
+ i.setNewElementDocRef(n[f - 2]);
658
+ break;
659
+ case 44:
660
+ i.addRelationship(n[f - 2], n[f], n[f - 4]);
661
+ break;
662
+ case 45:
663
+ i.addRelationship(n[f - 2], n[f - 4], n[f]);
664
+ break;
665
+ case 46:
666
+ this.$ = i.Relationships.CONTAINS;
667
+ break;
668
+ case 47:
669
+ this.$ = i.Relationships.COPIES;
670
+ break;
671
+ case 48:
672
+ this.$ = i.Relationships.DERIVES;
673
+ break;
674
+ case 49:
675
+ this.$ = i.Relationships.SATISFIES;
676
+ break;
677
+ case 50:
678
+ this.$ = i.Relationships.VERIFIES;
679
+ break;
680
+ case 51:
681
+ this.$ = i.Relationships.REFINES;
682
+ break;
683
+ case 52:
684
+ this.$ = i.Relationships.TRACES;
685
+ break;
686
+ }
687
+ },
688
+ table: [
689
+ {
690
+ 3: 1,
691
+ 4: 2,
692
+ 6: t,
693
+ 9: 4,
694
+ 14: a,
695
+ 16: o,
696
+ 18: d,
697
+ 19: u
698
+ },
699
+ {
700
+ 1: [
701
+ 3
702
+ ]
703
+ },
704
+ {
705
+ 3: 10,
706
+ 4: 2,
707
+ 5: [
708
+ 1,
709
+ 9
710
+ ],
711
+ 6: t,
712
+ 9: 4,
713
+ 14: a,
714
+ 16: o,
715
+ 18: d,
716
+ 19: u
717
+ },
718
+ {
719
+ 5: [
720
+ 1,
721
+ 11
722
+ ]
723
+ },
724
+ {
725
+ 10: 12,
726
+ 20: [
727
+ 1,
728
+ 13
729
+ ]
730
+ },
731
+ {
732
+ 15: [
733
+ 1,
734
+ 14
735
+ ]
736
+ },
737
+ {
738
+ 17: [
739
+ 1,
740
+ 15
741
+ ]
742
+ },
743
+ e(p, [
744
+ 2,
745
+ 8
746
+ ]),
747
+ {
748
+ 20: [
749
+ 2,
750
+ 9
751
+ ]
752
+ },
753
+ {
754
+ 3: 16,
755
+ 4: 2,
756
+ 6: t,
757
+ 9: 4,
758
+ 14: a,
759
+ 16: o,
760
+ 18: d,
761
+ 19: u
762
+ },
763
+ {
764
+ 1: [
765
+ 2,
766
+ 2
767
+ ]
768
+ },
769
+ {
770
+ 4: 21,
771
+ 5: h,
772
+ 7: 17,
773
+ 8: c,
774
+ 9: 4,
775
+ 14: a,
776
+ 16: o,
777
+ 18: d,
778
+ 19: u,
779
+ 23: 18,
780
+ 24: 19,
781
+ 25: 20,
782
+ 26: 23,
783
+ 32: 25,
784
+ 40: g,
785
+ 41: R,
786
+ 42: x,
787
+ 43: S,
788
+ 44: T,
789
+ 45: v,
790
+ 53: A,
791
+ 71: N,
792
+ 72: w
793
+ },
794
+ {
795
+ 11: 34,
796
+ 12: [
797
+ 1,
798
+ 35
799
+ ],
800
+ 22: pe
801
+ },
802
+ e([
803
+ 12,
804
+ 22
805
+ ], [
806
+ 2,
807
+ 10
808
+ ]),
809
+ e(p, [
810
+ 2,
811
+ 6
812
+ ]),
813
+ e(p, [
814
+ 2,
815
+ 7
816
+ ]),
817
+ {
818
+ 1: [
819
+ 2,
820
+ 1
821
+ ]
822
+ },
823
+ {
824
+ 8: [
825
+ 1,
826
+ 37
827
+ ]
828
+ },
829
+ {
830
+ 4: 21,
831
+ 5: h,
832
+ 7: 38,
833
+ 8: c,
834
+ 9: 4,
835
+ 14: a,
836
+ 16: o,
837
+ 18: d,
838
+ 19: u,
839
+ 23: 18,
840
+ 24: 19,
841
+ 25: 20,
842
+ 26: 23,
843
+ 32: 25,
844
+ 40: g,
845
+ 41: R,
846
+ 42: x,
847
+ 43: S,
848
+ 44: T,
849
+ 45: v,
850
+ 53: A,
851
+ 71: N,
852
+ 72: w
853
+ },
854
+ {
855
+ 4: 21,
856
+ 5: h,
857
+ 7: 39,
858
+ 8: c,
859
+ 9: 4,
860
+ 14: a,
861
+ 16: o,
862
+ 18: d,
863
+ 19: u,
864
+ 23: 18,
865
+ 24: 19,
866
+ 25: 20,
867
+ 26: 23,
868
+ 32: 25,
869
+ 40: g,
870
+ 41: R,
871
+ 42: x,
872
+ 43: S,
873
+ 44: T,
874
+ 45: v,
875
+ 53: A,
876
+ 71: N,
877
+ 72: w
878
+ },
879
+ {
880
+ 4: 21,
881
+ 5: h,
882
+ 7: 40,
883
+ 8: c,
884
+ 9: 4,
885
+ 14: a,
886
+ 16: o,
887
+ 18: d,
888
+ 19: u,
889
+ 23: 18,
890
+ 24: 19,
891
+ 25: 20,
892
+ 26: 23,
893
+ 32: 25,
894
+ 40: g,
895
+ 41: R,
896
+ 42: x,
897
+ 43: S,
898
+ 44: T,
899
+ 45: v,
900
+ 53: A,
901
+ 71: N,
902
+ 72: w
903
+ },
904
+ {
905
+ 4: 21,
906
+ 5: h,
907
+ 7: 41,
908
+ 8: c,
909
+ 9: 4,
910
+ 14: a,
911
+ 16: o,
912
+ 18: d,
913
+ 19: u,
914
+ 23: 18,
915
+ 24: 19,
916
+ 25: 20,
917
+ 26: 23,
918
+ 32: 25,
919
+ 40: g,
920
+ 41: R,
921
+ 42: x,
922
+ 43: S,
923
+ 44: T,
924
+ 45: v,
925
+ 53: A,
926
+ 71: N,
927
+ 72: w
928
+ },
929
+ {
930
+ 4: 21,
931
+ 5: h,
932
+ 7: 42,
933
+ 8: c,
934
+ 9: 4,
935
+ 14: a,
936
+ 16: o,
937
+ 18: d,
938
+ 19: u,
939
+ 23: 18,
940
+ 24: 19,
941
+ 25: 20,
942
+ 26: 23,
943
+ 32: 25,
944
+ 40: g,
945
+ 41: R,
946
+ 42: x,
947
+ 43: S,
948
+ 44: T,
949
+ 45: v,
950
+ 53: A,
951
+ 71: N,
952
+ 72: w
953
+ },
954
+ {
955
+ 27: 43,
956
+ 71: [
957
+ 1,
958
+ 44
959
+ ],
960
+ 72: [
961
+ 1,
962
+ 45
963
+ ]
964
+ },
965
+ {
966
+ 54: 46,
967
+ 71: [
968
+ 1,
969
+ 47
970
+ ],
971
+ 72: [
972
+ 1,
973
+ 48
974
+ ]
975
+ },
976
+ {
977
+ 60: [
978
+ 1,
979
+ 49
980
+ ],
981
+ 62: [
982
+ 1,
983
+ 50
984
+ ]
985
+ },
986
+ e(F, [
987
+ 2,
988
+ 26
989
+ ]),
990
+ e(F, [
991
+ 2,
992
+ 27
993
+ ]),
994
+ e(F, [
995
+ 2,
996
+ 28
997
+ ]),
998
+ e(F, [
999
+ 2,
1000
+ 29
1001
+ ]),
1002
+ e(F, [
1003
+ 2,
1004
+ 30
1005
+ ]),
1006
+ e(F, [
1007
+ 2,
1008
+ 31
1009
+ ]),
1010
+ e(fe, [
1011
+ 2,
1012
+ 55
1013
+ ]),
1014
+ e(fe, [
1015
+ 2,
1016
+ 56
1017
+ ]),
1018
+ e(p, [
1019
+ 2,
1020
+ 4
1021
+ ]),
1022
+ {
1023
+ 13: 51,
1024
+ 21: [
1025
+ 1,
1026
+ 52
1027
+ ]
1028
+ },
1029
+ e(p, [
1030
+ 2,
1031
+ 12
1032
+ ]),
1033
+ {
1034
+ 1: [
1035
+ 2,
1036
+ 3
1037
+ ]
1038
+ },
1039
+ {
1040
+ 8: [
1041
+ 2,
1042
+ 14
1043
+ ]
1044
+ },
1045
+ {
1046
+ 8: [
1047
+ 2,
1048
+ 15
1049
+ ]
1050
+ },
1051
+ {
1052
+ 8: [
1053
+ 2,
1054
+ 16
1055
+ ]
1056
+ },
1057
+ {
1058
+ 8: [
1059
+ 2,
1060
+ 17
1061
+ ]
1062
+ },
1063
+ {
1064
+ 8: [
1065
+ 2,
1066
+ 18
1067
+ ]
1068
+ },
1069
+ {
1070
+ 28: [
1071
+ 1,
1072
+ 53
1073
+ ]
1074
+ },
1075
+ {
1076
+ 28: [
1077
+ 2,
1078
+ 53
1079
+ ]
1080
+ },
1081
+ {
1082
+ 28: [
1083
+ 2,
1084
+ 54
1085
+ ]
1086
+ },
1087
+ {
1088
+ 28: [
1089
+ 1,
1090
+ 54
1091
+ ]
1092
+ },
1093
+ {
1094
+ 28: [
1095
+ 2,
1096
+ 59
1097
+ ]
1098
+ },
1099
+ {
1100
+ 28: [
1101
+ 2,
1102
+ 60
1103
+ ]
1104
+ },
1105
+ {
1106
+ 61: 55,
1107
+ 64: _e,
1108
+ 65: ye,
1109
+ 66: ge,
1110
+ 67: Ee,
1111
+ 68: Re,
1112
+ 69: me,
1113
+ 70: Ie
1114
+ },
1115
+ {
1116
+ 61: 63,
1117
+ 64: _e,
1118
+ 65: ye,
1119
+ 66: ge,
1120
+ 67: Ee,
1121
+ 68: Re,
1122
+ 69: me,
1123
+ 70: Ie
1124
+ },
1125
+ {
1126
+ 11: 64,
1127
+ 22: pe
1128
+ },
1129
+ {
1130
+ 22: [
1131
+ 2,
1132
+ 11
1133
+ ]
1134
+ },
1135
+ {
1136
+ 5: [
1137
+ 1,
1138
+ 65
1139
+ ]
1140
+ },
1141
+ {
1142
+ 5: [
1143
+ 1,
1144
+ 66
1145
+ ]
1146
+ },
1147
+ {
1148
+ 62: [
1149
+ 1,
1150
+ 67
1151
+ ]
1152
+ },
1153
+ e(L, [
1154
+ 2,
1155
+ 46
1156
+ ]),
1157
+ e(L, [
1158
+ 2,
1159
+ 47
1160
+ ]),
1161
+ e(L, [
1162
+ 2,
1163
+ 48
1164
+ ]),
1165
+ e(L, [
1166
+ 2,
1167
+ 49
1168
+ ]),
1169
+ e(L, [
1170
+ 2,
1171
+ 50
1172
+ ]),
1173
+ e(L, [
1174
+ 2,
1175
+ 51
1176
+ ]),
1177
+ e(L, [
1178
+ 2,
1179
+ 52
1180
+ ]),
1181
+ {
1182
+ 63: [
1183
+ 1,
1184
+ 68
1185
+ ]
1186
+ },
1187
+ e(p, [
1188
+ 2,
1189
+ 5
1190
+ ]),
1191
+ {
1192
+ 5: M,
1193
+ 29: 69,
1194
+ 30: P,
1195
+ 33: Y,
1196
+ 35: U,
1197
+ 37: B,
1198
+ 39: Q
1199
+ },
1200
+ {
1201
+ 5: z,
1202
+ 39: X,
1203
+ 55: 76,
1204
+ 56: J,
1205
+ 58: Z
1206
+ },
1207
+ {
1208
+ 32: 81,
1209
+ 71: N,
1210
+ 72: w
1211
+ },
1212
+ {
1213
+ 32: 82,
1214
+ 71: N,
1215
+ 72: w
1216
+ },
1217
+ e(m, [
1218
+ 2,
1219
+ 19
1220
+ ]),
1221
+ {
1222
+ 31: [
1223
+ 1,
1224
+ 83
1225
+ ]
1226
+ },
1227
+ {
1228
+ 31: [
1229
+ 1,
1230
+ 84
1231
+ ]
1232
+ },
1233
+ {
1234
+ 31: [
1235
+ 1,
1236
+ 85
1237
+ ]
1238
+ },
1239
+ {
1240
+ 31: [
1241
+ 1,
1242
+ 86
1243
+ ]
1244
+ },
1245
+ {
1246
+ 5: M,
1247
+ 29: 87,
1248
+ 30: P,
1249
+ 33: Y,
1250
+ 35: U,
1251
+ 37: B,
1252
+ 39: Q
1253
+ },
1254
+ e(m, [
1255
+ 2,
1256
+ 25
1257
+ ]),
1258
+ e(m, [
1259
+ 2,
1260
+ 39
1261
+ ]),
1262
+ {
1263
+ 31: [
1264
+ 1,
1265
+ 88
1266
+ ]
1267
+ },
1268
+ {
1269
+ 31: [
1270
+ 1,
1271
+ 89
1272
+ ]
1273
+ },
1274
+ {
1275
+ 5: z,
1276
+ 39: X,
1277
+ 55: 90,
1278
+ 56: J,
1279
+ 58: Z
1280
+ },
1281
+ e(m, [
1282
+ 2,
1283
+ 43
1284
+ ]),
1285
+ e(m, [
1286
+ 2,
1287
+ 44
1288
+ ]),
1289
+ e(m, [
1290
+ 2,
1291
+ 45
1292
+ ]),
1293
+ {
1294
+ 32: 91,
1295
+ 71: N,
1296
+ 72: w
1297
+ },
1298
+ {
1299
+ 34: 92,
1300
+ 71: [
1301
+ 1,
1302
+ 93
1303
+ ],
1304
+ 72: [
1305
+ 1,
1306
+ 94
1307
+ ]
1308
+ },
1309
+ {
1310
+ 36: 95,
1311
+ 46: [
1312
+ 1,
1313
+ 96
1314
+ ],
1315
+ 47: [
1316
+ 1,
1317
+ 97
1318
+ ],
1319
+ 48: [
1320
+ 1,
1321
+ 98
1322
+ ]
1323
+ },
1324
+ {
1325
+ 38: 99,
1326
+ 49: [
1327
+ 1,
1328
+ 100
1329
+ ],
1330
+ 50: [
1331
+ 1,
1332
+ 101
1333
+ ],
1334
+ 51: [
1335
+ 1,
1336
+ 102
1337
+ ],
1338
+ 52: [
1339
+ 1,
1340
+ 103
1341
+ ]
1342
+ },
1343
+ e(m, [
1344
+ 2,
1345
+ 24
1346
+ ]),
1347
+ {
1348
+ 57: 104,
1349
+ 71: [
1350
+ 1,
1351
+ 105
1352
+ ],
1353
+ 72: [
1354
+ 1,
1355
+ 106
1356
+ ]
1357
+ },
1358
+ {
1359
+ 59: 107,
1360
+ 71: [
1361
+ 1,
1362
+ 108
1363
+ ],
1364
+ 72: [
1365
+ 1,
1366
+ 109
1367
+ ]
1368
+ },
1369
+ e(m, [
1370
+ 2,
1371
+ 42
1372
+ ]),
1373
+ {
1374
+ 5: [
1375
+ 1,
1376
+ 110
1377
+ ]
1378
+ },
1379
+ {
1380
+ 5: [
1381
+ 1,
1382
+ 111
1383
+ ]
1384
+ },
1385
+ {
1386
+ 5: [
1387
+ 2,
1388
+ 57
1389
+ ]
1390
+ },
1391
+ {
1392
+ 5: [
1393
+ 2,
1394
+ 58
1395
+ ]
1396
+ },
1397
+ {
1398
+ 5: [
1399
+ 1,
1400
+ 112
1401
+ ]
1402
+ },
1403
+ {
1404
+ 5: [
1405
+ 2,
1406
+ 32
1407
+ ]
1408
+ },
1409
+ {
1410
+ 5: [
1411
+ 2,
1412
+ 33
1413
+ ]
1414
+ },
1415
+ {
1416
+ 5: [
1417
+ 2,
1418
+ 34
1419
+ ]
1420
+ },
1421
+ {
1422
+ 5: [
1423
+ 1,
1424
+ 113
1425
+ ]
1426
+ },
1427
+ {
1428
+ 5: [
1429
+ 2,
1430
+ 35
1431
+ ]
1432
+ },
1433
+ {
1434
+ 5: [
1435
+ 2,
1436
+ 36
1437
+ ]
1438
+ },
1439
+ {
1440
+ 5: [
1441
+ 2,
1442
+ 37
1443
+ ]
1444
+ },
1445
+ {
1446
+ 5: [
1447
+ 2,
1448
+ 38
1449
+ ]
1450
+ },
1451
+ {
1452
+ 5: [
1453
+ 1,
1454
+ 114
1455
+ ]
1456
+ },
1457
+ {
1458
+ 5: [
1459
+ 2,
1460
+ 61
1461
+ ]
1462
+ },
1463
+ {
1464
+ 5: [
1465
+ 2,
1466
+ 62
1467
+ ]
1468
+ },
1469
+ {
1470
+ 5: [
1471
+ 1,
1472
+ 115
1473
+ ]
1474
+ },
1475
+ {
1476
+ 5: [
1477
+ 2,
1478
+ 63
1479
+ ]
1480
+ },
1481
+ {
1482
+ 5: [
1483
+ 2,
1484
+ 64
1485
+ ]
1486
+ },
1487
+ {
1488
+ 5: M,
1489
+ 29: 116,
1490
+ 30: P,
1491
+ 33: Y,
1492
+ 35: U,
1493
+ 37: B,
1494
+ 39: Q
1495
+ },
1496
+ {
1497
+ 5: M,
1498
+ 29: 117,
1499
+ 30: P,
1500
+ 33: Y,
1501
+ 35: U,
1502
+ 37: B,
1503
+ 39: Q
1504
+ },
1505
+ {
1506
+ 5: M,
1507
+ 29: 118,
1508
+ 30: P,
1509
+ 33: Y,
1510
+ 35: U,
1511
+ 37: B,
1512
+ 39: Q
1513
+ },
1514
+ {
1515
+ 5: M,
1516
+ 29: 119,
1517
+ 30: P,
1518
+ 33: Y,
1519
+ 35: U,
1520
+ 37: B,
1521
+ 39: Q
1522
+ },
1523
+ {
1524
+ 5: z,
1525
+ 39: X,
1526
+ 55: 120,
1527
+ 56: J,
1528
+ 58: Z
1529
+ },
1530
+ {
1531
+ 5: z,
1532
+ 39: X,
1533
+ 55: 121,
1534
+ 56: J,
1535
+ 58: Z
1536
+ },
1537
+ e(m, [
1538
+ 2,
1539
+ 20
1540
+ ]),
1541
+ e(m, [
1542
+ 2,
1543
+ 21
1544
+ ]),
1545
+ e(m, [
1546
+ 2,
1547
+ 22
1548
+ ]),
1549
+ e(m, [
1550
+ 2,
1551
+ 23
1552
+ ]),
1553
+ e(m, [
1554
+ 2,
1555
+ 40
1556
+ ]),
1557
+ e(m, [
1558
+ 2,
1559
+ 41
1560
+ ])
1561
+ ],
1562
+ defaultActions: {
1563
+ 8: [
1564
+ 2,
1565
+ 9
1566
+ ],
1567
+ 10: [
1568
+ 2,
1569
+ 2
1570
+ ],
1571
+ 16: [
1572
+ 2,
1573
+ 1
1574
+ ],
1575
+ 37: [
1576
+ 2,
1577
+ 3
1578
+ ],
1579
+ 38: [
1580
+ 2,
1581
+ 14
1582
+ ],
1583
+ 39: [
1584
+ 2,
1585
+ 15
1586
+ ],
1587
+ 40: [
1588
+ 2,
1589
+ 16
1590
+ ],
1591
+ 41: [
1592
+ 2,
1593
+ 17
1594
+ ],
1595
+ 42: [
1596
+ 2,
1597
+ 18
1598
+ ],
1599
+ 44: [
1600
+ 2,
1601
+ 53
1602
+ ],
1603
+ 45: [
1604
+ 2,
1605
+ 54
1606
+ ],
1607
+ 47: [
1608
+ 2,
1609
+ 59
1610
+ ],
1611
+ 48: [
1612
+ 2,
1613
+ 60
1614
+ ],
1615
+ 52: [
1616
+ 2,
1617
+ 11
1618
+ ],
1619
+ 93: [
1620
+ 2,
1621
+ 57
1622
+ ],
1623
+ 94: [
1624
+ 2,
1625
+ 58
1626
+ ],
1627
+ 96: [
1628
+ 2,
1629
+ 32
1630
+ ],
1631
+ 97: [
1632
+ 2,
1633
+ 33
1634
+ ],
1635
+ 98: [
1636
+ 2,
1637
+ 34
1638
+ ],
1639
+ 100: [
1640
+ 2,
1641
+ 35
1642
+ ],
1643
+ 101: [
1644
+ 2,
1645
+ 36
1646
+ ],
1647
+ 102: [
1648
+ 2,
1649
+ 37
1650
+ ],
1651
+ 103: [
1652
+ 2,
1653
+ 38
1654
+ ],
1655
+ 105: [
1656
+ 2,
1657
+ 61
1658
+ ],
1659
+ 106: [
1660
+ 2,
1661
+ 62
1662
+ ],
1663
+ 108: [
1664
+ 2,
1665
+ 63
1666
+ ],
1667
+ 109: [
1668
+ 2,
1669
+ 64
1670
+ ]
1671
+ },
1672
+ parseError: function parseError(r, s) {
1673
+ if (s.recoverable) this.trace(r);
1674
+ else {
1675
+ var l = new Error(r);
1676
+ throw l.hash = s, l;
1677
+ }
1678
+ },
1679
+ parse: function parse(r) {
1680
+ var s = this, l = [
1681
+ 0
1682
+ ], i = [], _ = [
1683
+ null
1684
+ ], n = [], K = this.table, f = "", ee = 0, be = 0, Oe = 2, ke = 1, Le = n.slice.call(arguments, 1), E = Object.create(this.lexer), C = {
1685
+ yy: {}
1686
+ };
1687
+ for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy, se) && (C.yy[se] = this.yy[se]);
1688
+ E.setInput(r, C.yy), C.yy.lexer = E, C.yy.parser = this, _type_of(E.yylloc) > "u" && (E.yylloc = {});
1689
+ var ae = E.yylloc;
1690
+ n.push(ae);
1691
+ var Ce = E.options && E.options.ranges;
1692
+ typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1693
+ function De() {
1694
+ var $;
1695
+ return $ = i.pop() || E.lex() || ke, typeof $ != "number" && (_instanceof($, Array) && (i = $, $ = i.pop()), $ = s.symbols_[$] || $), $;
1696
+ }
1697
+ for(var I, D, k, le, H = {}, te, V, Se, ie;;){
1698
+ if (D = l[l.length - 1], this.defaultActions[D] ? k = this.defaultActions[D] : ((I === null || (typeof I === "undefined" ? "undefined" : _type_of(I)) > "u") && (I = De()), k = K[D] && K[D][I]), (typeof k === "undefined" ? "undefined" : _type_of(k)) > "u" || !k.length || !k[0]) {
1699
+ var ce = "";
1700
+ ie = [];
1701
+ for(te in K[D])this.terminals_[te] && te > Oe && ie.push("'" + this.terminals_[te] + "'");
1702
+ E.showPosition ? ce = "Parse error on line " + (ee + 1) + ":\n" + E.showPosition() + "\nExpecting " + ie.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ce = "Parse error on line " + (ee + 1) + ": Unexpected " + (I == ke ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(ce, {
1703
+ text: E.match,
1704
+ token: this.terminals_[I] || I,
1705
+ line: E.yylineno,
1706
+ loc: ae,
1707
+ expected: ie
1708
+ });
1709
+ }
1710
+ if (_instanceof(k[0], Array) && k.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + D + ", token: " + I);
1711
+ switch(k[0]){
1712
+ case 1:
1713
+ l.push(I), _.push(E.yytext), n.push(E.yylloc), l.push(k[1]), I = null, be = E.yyleng, f = E.yytext, ee = E.yylineno, ae = E.yylloc;
1714
+ break;
1715
+ case 2:
1716
+ if (V = this.productions_[k[1]][1], H.$ = _[_.length - V], H._$ = {
1717
+ first_line: n[n.length - (V || 1)].first_line,
1718
+ last_line: n[n.length - 1].last_line,
1719
+ first_column: n[n.length - (V || 1)].first_column,
1720
+ last_column: n[n.length - 1].last_column
1721
+ }, Ce && (H._$.range = [
1722
+ n[n.length - (V || 1)].range[0],
1723
+ n[n.length - 1].range[1]
1724
+ ]), le = this.performAction.apply(H, [
1725
+ f,
1726
+ be,
1727
+ ee,
1728
+ C.yy,
1729
+ k[1],
1730
+ _,
1731
+ n
1732
+ ].concat(Le)), (typeof le === "undefined" ? "undefined" : _type_of(le)) < "u") return le;
1733
+ V && (l = l.slice(0, -1 * V * 2), _ = _.slice(0, -1 * V), n = n.slice(0, -1 * V)), l.push(this.productions_[k[1]][0]), _.push(H.$), n.push(H._$), Se = K[l[l.length - 2]][l[l.length - 1]], l.push(Se);
1734
+ break;
1735
+ case 3:
1736
+ return !0;
1737
+ }
1738
+ }
1739
+ return !0;
1740
+ }
1741
+ }, qe = function() {
1742
+ var q = {
1743
+ EOF: 1,
1744
+ parseError: function parseError(s, l) {
1745
+ if (this.yy.parser) this.yy.parser.parseError(s, l);
1746
+ else throw new Error(s);
1747
+ },
1748
+ // resets the lexer, sets new input
1749
+ setInput: function setInput(r, s) {
1750
+ return this.yy = s || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
1751
+ "INITIAL"
1752
+ ], this.yylloc = {
1753
+ first_line: 1,
1754
+ first_column: 0,
1755
+ last_line: 1,
1756
+ last_column: 0
1757
+ }, this.options.ranges && (this.yylloc.range = [
1758
+ 0,
1759
+ 0
1760
+ ]), this.offset = 0, this;
1761
+ },
1762
+ // consumes and returns one char from the input
1763
+ input: function input() {
1764
+ var r = this._input[0];
1765
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
1766
+ var s = r.match(/(?:\r\n?|\n).*/g);
1767
+ return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
1768
+ },
1769
+ // unshifts one char (or a string) into the input
1770
+ unput: function unput(r) {
1771
+ var s = r.length, l = r.split(/(?:\r\n?|\n)/g);
1772
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
1773
+ var i = this.match.split(/(?:\r\n?|\n)/g);
1774
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
1775
+ var _ = this.yylloc.range;
1776
+ return this.yylloc = {
1777
+ first_line: this.yylloc.first_line,
1778
+ last_line: this.yylineno + 1,
1779
+ first_column: this.yylloc.first_column,
1780
+ last_column: l ? (l.length === i.length ? this.yylloc.first_column : 0) + i[i.length - l.length].length - l[0].length : this.yylloc.first_column - s
1781
+ }, this.options.ranges && (this.yylloc.range = [
1782
+ _[0],
1783
+ _[0] + this.yyleng - s
1784
+ ]), this.yyleng = this.yytext.length, this;
1785
+ },
1786
+ // When called from action, caches matched text and appends it on next action
1787
+ more: function more() {
1788
+ return this._more = !0, this;
1789
+ },
1790
+ // 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.
1791
+ reject: function reject() {
1792
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1793
+ 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(), {
1794
+ text: "",
1795
+ token: null,
1796
+ line: this.yylineno
1797
+ });
1798
+ return this;
1799
+ },
1800
+ // retain first n characters of the match
1801
+ less: function less(r) {
1802
+ this.unput(this.match.slice(r));
1803
+ },
1804
+ // displays already matched input, i.e. for error messages
1805
+ pastInput: function pastInput() {
1806
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
1807
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
1808
+ },
1809
+ // displays upcoming input, i.e. for error messages
1810
+ upcomingInput: function upcomingInput() {
1811
+ var r = this.match;
1812
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
1813
+ },
1814
+ // displays the character position where the lexing error occurred, i.e. for error messages
1815
+ showPosition: function showPosition() {
1816
+ var r = this.pastInput(), s = new Array(r.length + 1).join("-");
1817
+ return r + this.upcomingInput() + "\n" + s + "^";
1818
+ },
1819
+ // test the lexed token: return FALSE when not a match, otherwise return token
1820
+ test_match: function test_match(r, s) {
1821
+ var l, i, _;
1822
+ if (this.options.backtrack_lexer && (_ = {
1823
+ yylineno: this.yylineno,
1824
+ yylloc: {
1825
+ first_line: this.yylloc.first_line,
1826
+ last_line: this.last_line,
1827
+ first_column: this.yylloc.first_column,
1828
+ last_column: this.yylloc.last_column
1829
+ },
1830
+ yytext: this.yytext,
1831
+ match: this.match,
1832
+ matches: this.matches,
1833
+ matched: this.matched,
1834
+ yyleng: this.yyleng,
1835
+ offset: this.offset,
1836
+ _more: this._more,
1837
+ _input: this._input,
1838
+ yy: this.yy,
1839
+ conditionStack: this.conditionStack.slice(0),
1840
+ done: this.done
1841
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), i = r[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
1842
+ first_line: this.yylloc.last_line,
1843
+ last_line: this.yylineno + 1,
1844
+ first_column: this.yylloc.last_column,
1845
+ last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
1846
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1847
+ this.offset,
1848
+ this.offset += this.yyleng
1849
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], l = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l) return l;
1850
+ if (this._backtrack) {
1851
+ for(var n in _)this[n] = _[n];
1852
+ return !1;
1853
+ }
1854
+ return !1;
1855
+ },
1856
+ // return next match in input
1857
+ next: function next() {
1858
+ if (this.done) return this.EOF;
1859
+ this._input || (this.done = !0);
1860
+ var r, s, l, i;
1861
+ this._more || (this.yytext = "", this.match = "");
1862
+ for(var _ = this._currentRules(), n = 0; n < _.length; n++)if (l = this._input.match(this.rules[_[n]]), l && (!s || l[0].length > s[0].length)) {
1863
+ if (s = l, i = n, this.options.backtrack_lexer) {
1864
+ if (r = this.test_match(l, _[n]), r !== !1) return r;
1865
+ if (this._backtrack) {
1866
+ s = !1;
1867
+ continue;
1868
+ } else return !1;
1869
+ } else if (!this.options.flex) break;
1870
+ }
1871
+ return s ? (r = this.test_match(s, _[i]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1872
+ text: "",
1873
+ token: null,
1874
+ line: this.yylineno
1875
+ });
1876
+ },
1877
+ // return next match that has a token
1878
+ lex: function lex() {
1879
+ var s = this.next();
1880
+ return s || this.lex();
1881
+ },
1882
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1883
+ begin: function begin(s) {
1884
+ this.conditionStack.push(s);
1885
+ },
1886
+ // pop the previously active lexer condition state off the condition stack
1887
+ popState: function popState() {
1888
+ var s = this.conditionStack.length - 1;
1889
+ return s > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1890
+ },
1891
+ // produce the lexer rule set which is active for the currently active lexer condition state
1892
+ _currentRules: function _currentRules() {
1893
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1894
+ },
1895
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1896
+ topState: function topState(s) {
1897
+ return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
1898
+ },
1899
+ // alias for begin(condition)
1900
+ pushState: function pushState(s) {
1901
+ this.begin(s);
1902
+ },
1903
+ // return the number of states currently on the stack
1904
+ stateStackSize: function stateStackSize() {
1905
+ return this.conditionStack.length;
1906
+ },
1907
+ options: {
1908
+ "case-insensitive": !0
1909
+ },
1910
+ performAction: function performAction(s, l, i, _) {
1911
+ switch(i){
1912
+ case 0:
1913
+ return this.begin("open_directive"), 19;
1914
+ case 1:
1915
+ return this.begin("type_directive"), 20;
1916
+ case 2:
1917
+ return this.popState(), this.begin("arg_directive"), 12;
1918
+ case 3:
1919
+ return this.popState(), this.popState(), 22;
1920
+ case 4:
1921
+ return 21;
1922
+ case 5:
1923
+ return "title";
1924
+ case 6:
1925
+ return this.begin("acc_title"), 14;
1926
+ case 7:
1927
+ return this.popState(), "acc_title_value";
1928
+ case 8:
1929
+ return this.begin("acc_descr"), 16;
1930
+ case 9:
1931
+ return this.popState(), "acc_descr_value";
1932
+ case 10:
1933
+ this.begin("acc_descr_multiline");
1934
+ break;
1935
+ case 11:
1936
+ this.popState();
1937
+ break;
1938
+ case 12:
1939
+ return "acc_descr_multiline_value";
1940
+ case 13:
1941
+ return 5;
1942
+ case 14:
1943
+ break;
1944
+ case 15:
1945
+ break;
1946
+ case 16:
1947
+ break;
1948
+ case 17:
1949
+ return 8;
1950
+ case 18:
1951
+ return 6;
1952
+ case 19:
1953
+ return 28;
1954
+ case 20:
1955
+ return 39;
1956
+ case 21:
1957
+ return 31;
1958
+ case 22:
1959
+ return 30;
1960
+ case 23:
1961
+ return 33;
1962
+ case 24:
1963
+ return 35;
1964
+ case 25:
1965
+ return 37;
1966
+ case 26:
1967
+ return 40;
1968
+ case 27:
1969
+ return 41;
1970
+ case 28:
1971
+ return 42;
1972
+ case 29:
1973
+ return 43;
1974
+ case 30:
1975
+ return 44;
1976
+ case 31:
1977
+ return 45;
1978
+ case 32:
1979
+ return 46;
1980
+ case 33:
1981
+ return 47;
1982
+ case 34:
1983
+ return 48;
1984
+ case 35:
1985
+ return 49;
1986
+ case 36:
1987
+ return 50;
1988
+ case 37:
1989
+ return 51;
1990
+ case 38:
1991
+ return 52;
1992
+ case 39:
1993
+ return 53;
1994
+ case 40:
1995
+ return 64;
1996
+ case 41:
1997
+ return 65;
1998
+ case 42:
1999
+ return 66;
2000
+ case 43:
2001
+ return 67;
2002
+ case 44:
2003
+ return 68;
2004
+ case 45:
2005
+ return 69;
2006
+ case 46:
2007
+ return 70;
2008
+ case 47:
2009
+ return 56;
2010
+ case 48:
2011
+ return 58;
2012
+ case 49:
2013
+ return 60;
2014
+ case 50:
2015
+ return 63;
2016
+ case 51:
2017
+ return 62;
2018
+ case 52:
2019
+ this.begin("string");
2020
+ break;
2021
+ case 53:
2022
+ this.popState();
2023
+ break;
2024
+ case 54:
2025
+ return "qString";
2026
+ case 55:
2027
+ return l.yytext = l.yytext.trim(), 71;
2028
+ }
2029
+ },
2030
+ rules: [
2031
+ /^(?:%%\{)/i,
2032
+ /^(?:((?:(?!\}%%)[^:.])*))/i,
2033
+ /^(?::)/i,
2034
+ /^(?:\}%%)/i,
2035
+ /^(?:((?:(?!\}%%).|\n)*))/i,
2036
+ /^(?:title\s[^#\n;]+)/i,
2037
+ /^(?:accTitle\s*:\s*)/i,
2038
+ /^(?:(?!\n||)*[^\n]*)/i,
2039
+ /^(?:accDescr\s*:\s*)/i,
2040
+ /^(?:(?!\n||)*[^\n]*)/i,
2041
+ /^(?:accDescr\s*\{\s*)/i,
2042
+ /^(?:[\}])/i,
2043
+ /^(?:[^\}]*)/i,
2044
+ /^(?:(\r?\n)+)/i,
2045
+ /^(?:\s+)/i,
2046
+ /^(?:#[^\n]*)/i,
2047
+ /^(?:%[^\n]*)/i,
2048
+ /^(?:$)/i,
2049
+ /^(?:requirementDiagram\b)/i,
2050
+ /^(?:\{)/i,
2051
+ /^(?:\})/i,
2052
+ /^(?::)/i,
2053
+ /^(?:id\b)/i,
2054
+ /^(?:text\b)/i,
2055
+ /^(?:risk\b)/i,
2056
+ /^(?:verifyMethod\b)/i,
2057
+ /^(?:requirement\b)/i,
2058
+ /^(?:functionalRequirement\b)/i,
2059
+ /^(?:interfaceRequirement\b)/i,
2060
+ /^(?:performanceRequirement\b)/i,
2061
+ /^(?:physicalRequirement\b)/i,
2062
+ /^(?:designConstraint\b)/i,
2063
+ /^(?:low\b)/i,
2064
+ /^(?:medium\b)/i,
2065
+ /^(?:high\b)/i,
2066
+ /^(?:analysis\b)/i,
2067
+ /^(?:demonstration\b)/i,
2068
+ /^(?:inspection\b)/i,
2069
+ /^(?:test\b)/i,
2070
+ /^(?:element\b)/i,
2071
+ /^(?:contains\b)/i,
2072
+ /^(?:copies\b)/i,
2073
+ /^(?:derives\b)/i,
2074
+ /^(?:satisfies\b)/i,
2075
+ /^(?:verifies\b)/i,
2076
+ /^(?:refines\b)/i,
2077
+ /^(?:traces\b)/i,
2078
+ /^(?:type\b)/i,
2079
+ /^(?:docref\b)/i,
2080
+ /^(?:<-)/i,
2081
+ /^(?:->)/i,
2082
+ /^(?:-)/i,
2083
+ /^(?:["])/i,
2084
+ /^(?:["])/i,
2085
+ /^(?:[^"]*)/i,
2086
+ /^(?:[\w][^\r\n\{\<\>\-\=]*)/i
2087
+ ],
2088
+ conditions: {
2089
+ acc_descr_multiline: {
2090
+ rules: [
2091
+ 11,
2092
+ 12
2093
+ ],
2094
+ inclusive: !1
2095
+ },
2096
+ acc_descr: {
2097
+ rules: [
2098
+ 9
2099
+ ],
2100
+ inclusive: !1
2101
+ },
2102
+ acc_title: {
2103
+ rules: [
2104
+ 7
2105
+ ],
2106
+ inclusive: !1
2107
+ },
2108
+ close_directive: {
2109
+ rules: [],
2110
+ inclusive: !1
2111
+ },
2112
+ arg_directive: {
2113
+ rules: [
2114
+ 3,
2115
+ 4
2116
+ ],
2117
+ inclusive: !1
2118
+ },
2119
+ type_directive: {
2120
+ rules: [
2121
+ 2,
2122
+ 3
2123
+ ],
2124
+ inclusive: !1
2125
+ },
2126
+ open_directive: {
2127
+ rules: [
2128
+ 1
2129
+ ],
2130
+ inclusive: !1
2131
+ },
2132
+ unqString: {
2133
+ rules: [],
2134
+ inclusive: !1
2135
+ },
2136
+ token: {
2137
+ rules: [],
2138
+ inclusive: !1
2139
+ },
2140
+ string: {
2141
+ rules: [
2142
+ 53,
2143
+ 54
2144
+ ],
2145
+ inclusive: !1
2146
+ },
2147
+ INITIAL: {
2148
+ rules: [
2149
+ 0,
2150
+ 5,
2151
+ 6,
2152
+ 8,
2153
+ 10,
2154
+ 13,
2155
+ 14,
2156
+ 15,
2157
+ 16,
2158
+ 17,
2159
+ 18,
2160
+ 19,
2161
+ 20,
2162
+ 21,
2163
+ 22,
2164
+ 23,
2165
+ 24,
2166
+ 25,
2167
+ 26,
2168
+ 27,
2169
+ 28,
2170
+ 29,
2171
+ 30,
2172
+ 31,
2173
+ 32,
2174
+ 33,
2175
+ 34,
2176
+ 35,
2177
+ 36,
2178
+ 37,
2179
+ 38,
2180
+ 39,
2181
+ 40,
2182
+ 41,
2183
+ 42,
2184
+ 43,
2185
+ 44,
2186
+ 45,
2187
+ 46,
2188
+ 47,
2189
+ 48,
2190
+ 49,
2191
+ 50,
2192
+ 51,
2193
+ 52,
2194
+ 55
2195
+ ],
2196
+ inclusive: !0
2197
+ }
2198
+ }
2199
+ };
2200
+ return q;
2201
+ }();
2202
+ re.lexer = qe;
2203
+ function ne() {
2204
+ this.yy = {};
2205
+ }
2206
+ return ne.prototype = re, re.Parser = ne, new ne();
2207
+ }();
2208
+ he.parser = he;
2209
+ var Ge = he;
2210
+ var de = [], b = {}, G = {}, O = {}, j = {};
2211
+ var je = {
2212
+ REQUIREMENT: "Requirement",
2213
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
2214
+ INTERFACE_REQUIREMENT: "Interface Requirement",
2215
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
2216
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
2217
+ DESIGN_CONSTRAINT: "Design Constraint"
2218
+ }, ze = {
2219
+ LOW_RISK: "Low",
2220
+ MED_RISK: "Medium",
2221
+ HIGH_RISK: "High"
2222
+ }, Xe = {
2223
+ VERIFY_ANALYSIS: "Analysis",
2224
+ VERIFY_DEMONSTRATION: "Demonstration",
2225
+ VERIFY_INSPECTION: "Inspection",
2226
+ VERIFY_TEST: "Test"
2227
+ }, Je = {
2228
+ CONTAINS: "contains",
2229
+ COPIES: "copies",
2230
+ DERIVES: "derives",
2231
+ SATISFIES: "satisfies",
2232
+ VERIFIES: "verifies",
2233
+ REFINES: "refines",
2234
+ TRACES: "traces"
2235
+ }, Ze = function Ze(e, t, a) {
2236
+ index.de.parseDirective(this, e, t, a);
2237
+ }, et = function(e, t) {
2238
+ return G[e] === void 0 && (G[e] = {
2239
+ name: e,
2240
+ type: t,
2241
+ id: b.id,
2242
+ text: b.text,
2243
+ risk: b.risk,
2244
+ verifyMethod: b.verifyMethod
2245
+ }), b = {}, G[e];
2246
+ }, tt = function() {
2247
+ return G;
2248
+ }, it = function(e) {
2249
+ b !== void 0 && (b.id = e);
2250
+ }, rt = function(e) {
2251
+ b !== void 0 && (b.text = e);
2252
+ }, nt = function(e) {
2253
+ b !== void 0 && (b.risk = e);
2254
+ }, st = function(e) {
2255
+ b !== void 0 && (b.verifyMethod = e);
2256
+ }, at = function(e) {
2257
+ return j[e] === void 0 && (j[e] = {
2258
+ name: e,
2259
+ type: O.type,
2260
+ docRef: O.docRef
2261
+ }, index.S.info("Added new requirement: ", e)), O = {}, j[e];
2262
+ }, lt = function() {
2263
+ return j;
2264
+ }, ct = function(e) {
2265
+ O !== void 0 && (O.type = e);
2266
+ }, ot = function(e) {
2267
+ O !== void 0 && (O.docRef = e);
2268
+ }, ht = function(e, t, a) {
2269
+ de.push({
2270
+ type: e,
2271
+ src: t,
2272
+ dst: a
2273
+ });
2274
+ }, ut = function() {
2275
+ return de;
2276
+ }, dt = function() {
2277
+ de = [], b = {}, G = {}, O = {}, j = {}, index.Fa();
2278
+ }, pt = {
2279
+ RequirementType: je,
2280
+ RiskLevel: ze,
2281
+ VerifyType: Xe,
2282
+ Relationships: Je,
2283
+ parseDirective: Ze,
2284
+ getConfig: function() {
2285
+ return index.Ut().req;
2286
+ },
2287
+ addRequirement: et,
2288
+ getRequirements: tt,
2289
+ setNewReqId: it,
2290
+ setNewReqText: rt,
2291
+ setNewReqRisk: nt,
2292
+ setNewReqVerifyMethod: st,
2293
+ setAccTitle: index.La,
2294
+ getAccTitle: index.Aa,
2295
+ setAccDescription: index.Ea,
2296
+ getAccDescription: index.Ma,
2297
+ addElement: at,
2298
+ getElements: lt,
2299
+ setNewElementType: ct,
2300
+ setNewElementDocRef: ot,
2301
+ addRelationship: ht,
2302
+ getRelationships: ut,
2303
+ clear: dt
2304
+ }, ft = function(e) {
2305
+ return "\n\n marker {\n fill: ".concat(e.relationColor, ";\n stroke: ").concat(e.relationColor, ";\n }\n\n marker.cross {\n stroke: ").concat(e.lineColor, ";\n }\n\n svg {\n font-family: ").concat(e.fontFamily, ";\n font-size: ").concat(e.fontSize, ";\n }\n\n .reqBox {\n fill: ").concat(e.requirementBackground, ";\n fill-opacity: 1.0;\n stroke: ").concat(e.requirementBorderColor, ";\n stroke-width: ").concat(e.requirementBorderSize, ";\n }\n \n .reqTitle, .reqLabel{\n fill: ").concat(e.requirementTextColor, ";\n }\n .reqLabelBox {\n fill: ").concat(e.relationLabelBackground, ";\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ").concat(e.requirementBorderColor, ";\n stroke-width: ").concat(e.requirementBorderSize, ";\n }\n .relationshipLine {\n stroke: ").concat(e.relationColor, ";\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ").concat(e.relationLabelColor, ";\n }\n\n");
2306
+ }, _t = ft, ue = {
2307
+ CONTAINS: "contains",
2308
+ ARROW: "arrow"
2309
+ }, yt = function(e, t) {
2310
+ var a = e.append("defs").append("marker").attr("id", ue.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", t.line_height / 2).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("g");
2311
+ a.append("circle").attr("cx", t.line_height / 2).attr("cy", t.line_height / 2).attr("r", t.line_height / 2).attr("fill", "none"), a.append("line").attr("x1", 0).attr("x2", t.line_height).attr("y1", t.line_height / 2).attr("y2", t.line_height / 2).attr("stroke-width", 1), a.append("line").attr("y1", 0).attr("y2", t.line_height).attr("x1", t.line_height / 2).attr("x2", t.line_height / 2).attr("stroke-width", 1), e.append("defs").append("marker").attr("id", ue.ARROW + "_line_ending").attr("refX", t.line_height).attr("refY", 0.5 * t.line_height).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("path").attr("d", "M0,0\n L".concat(t.line_height, ",").concat(t.line_height / 2, "\n M").concat(t.line_height, ",").concat(t.line_height / 2, "\n L0,").concat(t.line_height)).attr("stroke-width", 1);
2312
+ }, Ae = {
2313
+ ReqMarkers: ue,
2314
+ insertLineEndings: yt
2315
+ };
2316
+ var y = {}, Ne = 0;
2317
+ var we = function(e, t) {
2318
+ return e.insert("rect", "#" + t).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", y.rect_min_width + "px").attr("height", y.rect_min_height + "px");
2319
+ }, Ve = function(e, t, a) {
2320
+ var o = y.rect_min_width / 2, d = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", t).attr("x", o).attr("y", y.rect_padding).attr("dominant-baseline", "hanging"), u = 0;
2321
+ a.forEach(function(g) {
2322
+ u == 0 ? d.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", 0).text(g) : d.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", y.line_height * 0.75).text(g), u++;
2323
+ });
2324
+ var p = 1.5 * y.rect_padding, h = u * y.line_height * 0.75, c = p + h;
2325
+ return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", y.rect_min_width).attr("y1", c).attr("y2", c), {
2326
+ titleNode: d,
2327
+ y: c
2328
+ };
2329
+ }, $e = function(e, t, a, o) {
2330
+ var d = e.append("text").attr("class", "req reqLabel").attr("id", t).attr("x", y.rect_padding).attr("y", o).attr("dominant-baseline", "hanging"), u = 0;
2331
+ var p = 30;
2332
+ var h = [];
2333
+ return a.forEach(function(c) {
2334
+ var g = c.length;
2335
+ for(; g > p && u < 3;){
2336
+ var R = c.substring(0, p);
2337
+ c = c.substring(p, c.length), g = c.length, h[h.length] = R, u++;
2338
+ }
2339
+ if (u == 3) {
2340
+ var R1 = h[h.length - 1];
2341
+ h[h.length - 1] = R1.substring(0, R1.length - 4) + "...";
2342
+ } else h[h.length] = c;
2343
+ u = 0;
2344
+ }), h.forEach(function(c) {
2345
+ d.append("tspan").attr("x", y.rect_padding).attr("dy", y.line_height).text(c);
2346
+ }), d;
2347
+ }, gt = function(e, t, a, o) {
2348
+ var d = t.node().getTotalLength(), u = t.node().getPointAtLength(d * 0.5), p = "rel" + Ne;
2349
+ Ne++;
2350
+ var c = e.append("text").attr("class", "req relationshipLabel").attr("id", p).attr("x", u.x).attr("y", u.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(o).node().getBBox();
2351
+ e.insert("rect", "#" + p).attr("class", "req reqLabelBox").attr("x", u.x - c.width / 2).attr("y", u.y - c.height / 2).attr("width", c.width).attr("height", c.height).attr("fill", "white").attr("fill-opacity", "85%");
2352
+ }, Et = function Et(e, t, a, o, d) {
2353
+ var u = a.edge(W(t.src), W(t.dst)), p = lineCe5d1152.S().x(function(c) {
2354
+ return c.x;
2355
+ }).y(function(c) {
2356
+ return c.y;
2357
+ }), h = e.insert("path", "#" + o).attr("class", "er relationshipLine").attr("d", p(u.points)).attr("fill", "none");
2358
+ t.type == d.db.Relationships.CONTAINS ? h.attr("marker-start", "url(" + index.Bn.getUrl(y.arrowMarkerAbsolute) + "#" + t.type + "_line_ending)") : (h.attr("stroke-dasharray", "10,7"), h.attr("marker-end", "url(" + index.Bn.getUrl(y.arrowMarkerAbsolute) + "#" + Ae.ReqMarkers.ARROW + "_line_ending)")), gt(e, h, y, "<<".concat(t.type, ">>"));
2359
+ }, Rt = function(e, t, a) {
2360
+ Object.keys(e).forEach(function(o) {
2361
+ var d = e[o];
2362
+ o = W(o), index.S.info("Added new requirement: ", o);
2363
+ var u = a.append("g").attr("id", o), p = "req-" + o, h = we(u, p);
2364
+ var c = Ve(u, o + "_title", [
2365
+ "<<".concat(d.type, ">>"),
2366
+ "".concat(d.name)
2367
+ ]);
2368
+ $e(u, o + "_body", [
2369
+ "Id: ".concat(d.id),
2370
+ "Text: ".concat(d.text),
2371
+ "Risk: ".concat(d.risk),
2372
+ "Verification: ".concat(d.verifyMethod)
2373
+ ], c.y);
2374
+ var g = h.node().getBBox();
2375
+ t.setNode(o, {
2376
+ width: g.width,
2377
+ height: g.height,
2378
+ shape: "rect",
2379
+ id: o
2380
+ });
2381
+ });
2382
+ }, mt = function(e, t, a) {
2383
+ Object.keys(e).forEach(function(o) {
2384
+ var d = e[o];
2385
+ var u = W(o), p = a.append("g").attr("id", u), h = "element-" + u, c = we(p, h);
2386
+ var g = Ve(p, h + "_title", [
2387
+ "<<Element>>",
2388
+ "".concat(o)
2389
+ ]);
2390
+ $e(p, h + "_body", [
2391
+ "Type: ".concat(d.type || "Not Specified"),
2392
+ "Doc Ref: ".concat(d.docRef || "None")
2393
+ ], g.y);
2394
+ var R = c.node().getBBox();
2395
+ t.setNode(u, {
2396
+ width: R.width,
2397
+ height: R.height,
2398
+ shape: "rect",
2399
+ id: u
2400
+ });
2401
+ });
2402
+ }, It = function(e, t) {
2403
+ return e.forEach(function(a) {
2404
+ var o = W(a.src), d = W(a.dst);
2405
+ t.setEdge(o, d, {
2406
+ relationship: a
2407
+ });
2408
+ }), e;
2409
+ }, bt = function bt(e, t) {
2410
+ t.nodes().forEach(function(a) {
2411
+ a !== void 0 && t.node(a) !== void 0 && (e.select("#" + a), e.select("#" + a).attr("transform", "translate(" + (t.node(a).x - t.node(a).width / 2) + "," + (t.node(a).y - t.node(a).height / 2) + " )"));
2412
+ });
2413
+ }, W = function(e) {
2414
+ return e.replace(/\s/g, "").replace(/\./g, "_");
2415
+ }, kt = function(e, t, a, o) {
2416
+ y = index.Ut().requirement;
2417
+ var d = y.securityLevel;
2418
+ var u;
2419
+ d === "sandbox" && (u = index.At("#i" + t));
2420
+ var h = (d === "sandbox" ? index.At(u.nodes()[0].contentDocument.body) : index.At("body")).select("[id='".concat(t, "']"));
2421
+ Ae.insertLineEndings(h, y);
2422
+ var c = new layoutC5a37d74.A({
2423
+ multigraph: !1,
2424
+ compound: !1,
2425
+ directed: !0
2426
+ }).setGraph({
2427
+ rankdir: y.layoutDirection,
2428
+ marginx: 20,
2429
+ marginy: 20,
2430
+ nodesep: 100,
2431
+ edgesep: 100,
2432
+ ranksep: 100
2433
+ }).setDefaultEdgeLabel(function() {
2434
+ return {};
2435
+ });
2436
+ var g = o.db.getRequirements(), R = o.db.getElements(), x = o.db.getRelationships();
2437
+ Rt(g, c, h), mt(R, c, h), It(x, c), layoutC5a37d74.zs(c), bt(h, c), x.forEach(function(N) {
2438
+ Et(h, N, c, t, o);
2439
+ });
2440
+ var S = y.rect_padding, T = h.node().getBBox(), v = T.width + S * 2, A = T.height + S * 2;
2441
+ index.Yg(h, A, v, y.useMaxWidth), h.attr("viewBox", "".concat(T.x - S, " ").concat(T.y - S, " ").concat(v, " ").concat(A));
2442
+ }, St = {
2443
+ draw: kt
2444
+ }, wt = {
2445
+ parser: Ge,
2446
+ db: pt,
2447
+ renderer: St,
2448
+ styles: _t
2449
+ };
2450
+
2451
+ exports.diagram = wt;