@marimo-team/islands 0.13.16-dev2 → 0.13.16-dev4
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.
- package/dist/{ConnectedDataExplorerComponent-BizAnuDQ.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
- package/dist/{VegaLite-BvtjUHLS.js → VegaLite-C9hsmU75.js} +12483 -12485
- package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-JsDeIdvj.js} +13 -13
- package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-BzZqDQm_.js} +2 -2
- package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
- package/dist/asn1-jKiBa2Ya.js +10 -10
- package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
- package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
- package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
- package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
- package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
- package/dist/{channel-DMiLp-mI.js → channel-CwUzkjN9.js} +1 -1
- package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
- package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
- package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
- package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
- package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
- package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
- package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
- package/dist/clojure-CCKyeQKf.js +2 -2
- package/dist/{clone-CPwu6xRn.js → clone-BPHB9gtw.js} +1 -1
- package/dist/css-bIlmDBTK.js +19 -19
- package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
- package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
- package/dist/{data-editor-CYvUeKhw.js → data-editor-CvujN_l-.js} +5785 -5795
- package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
- package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
- package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
- package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
- package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
- package/dist/{graph-BFerxzEi.js → graph-DiSBbvS5.js} +9 -9
- package/dist/{index-DfpR00QG.js → index-BZo5-DOE.js} +99 -98
- package/dist/{index-j8M50mVa.js → index-CmU7bpCv.js} +4 -4
- package/dist/{index-DkuVwdVm.js → index-KrnLhU30.js} +9 -9
- package/dist/{index-BhtvwOag.js → index-TeAlNqJE.js} +28 -28
- package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
- package/dist/javascript-WMWNx-Vj.js +47 -47
- package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
- package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
- package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
- package/dist/{layout-Qs-BVu8V.js → layout-B0SQ1LdD.js} +27 -27
- package/dist/{linear-SIbCb7yI.js → linear-Bn_UtFyT.js} +2 -2
- package/dist/main-ClxYr2BI.js +169878 -0
- package/dist/main.js +1 -1
- package/dist/mermaid-M3c3q4Qd.js +14517 -0
- package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
- package/dist/{min-BTA1UVkn.js → min-C0Jzc_ko.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
- package/dist/mllike-BSnXJBGA.js +7 -7
- package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
- package/dist/pug-BqUR2bBq.js +35 -35
- package/dist/python-B5QdSKoL.js +18 -18
- package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
- package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
- package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-CJ3A7ju0.js} +6595 -6597
- package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
- package/dist/rpm-IznJm2Xc.js +9 -9
- package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
- package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
- package/dist/{slides-component-DVr5mf9p.js → slides-component-Cyh202Vq.js} +280 -280
- package/dist/sql-mMre1Bo3.js +9 -9
- package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
- package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DHD8Fix8.js → time-YVQKuiUR.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
- package/dist/timer-BYwnU4DF.js +378 -378
- package/dist/ttcn-cfg-Bac_acMi.js +9 -9
- package/dist/{vega-component-D2NZFVvw.js → vega-component-CUFBFMjm.js} +82 -82
- package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
- package/package.json +1 -1
- package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
- package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
- package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
- package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
- package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
- package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
- package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
- package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
- package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
- package/dist/main-Cx3zrED9.js +0 -156521
- package/dist/mermaid-DAi_EtLa.js +0 -11991
- package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js}
RENAMED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var _a;
|
|
2
|
+
import { g as je, s as ze } from "./chunk-RZ5BOZE2-ChOs68Hz.js";
|
|
3
|
+
import { _ as o, b as Ge, a as Xe, s as Je, g as Ze, q as et, t as tt, c as ke, l as Ne, z as st, D as it, p as rt, r as nt, u as at } from "./mermaid-M3c3q4Qd.js";
|
|
4
|
+
var qe = function() {
|
|
5
|
+
var e = /* @__PURE__ */ o(function(P, i, a, c) {
|
|
6
|
+
for (a = a || {}, c = P.length; c--; a[P[c]] = i) ;
|
|
7
|
+
return a;
|
|
8
|
+
}, "o"), u = [1, 3], h = [1, 4], r = [1, 5], n = [1, 6], E = [5, 6, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], g = [1, 22], R = [2, 7], _ = [1, 26], b = [1, 27], N = [1, 28], q = [1, 29], A = [1, 33], C = [1, 34], V = [1, 35], v = [1, 36], x = [1, 37], L = [1, 38], D = [1, 24], O = [1, 31], w = [1, 32], M = [1, 30], d = [1, 39], p = [1, 40], m = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], $ = [1, 61], X = [89, 90], Ae = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 29, 41, 42, 43, 44, 45, 46, 54, 61, 63, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], Ee = [27, 29], Ce = [1, 70], Ve = [1, 71], ve = [1, 72], xe = [1, 73], Le = [1, 74], De = [1, 75], Oe = [1, 76], Z = [1, 83], U = [1, 80], ee = [1, 84], te = [1, 85], se = [1, 86], ie = [1, 87], re = [1, 88], ne = [1, 89], ae = [1, 90], le = [1, 91], ce = [1, 92], de = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], Y = [63, 64], we = [1, 101], Me = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 76, 77, 89, 90], T = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], B = [1, 110], Q = [1, 106], H = [1, 107], K = [1, 108], W = [1, 109], j = [1, 111], oe = [1, 116], he = [1, 117], ue = [1, 114], fe = [1, 115], _e = {
|
|
9
|
+
trace: /* @__PURE__ */ o(function() {
|
|
9
10
|
}, "trace"),
|
|
10
11
|
yy: {},
|
|
11
12
|
symbols_: { error: 2, start: 3, directive: 4, NEWLINE: 5, RD: 6, diagram: 7, EOF: 8, acc_title: 9, acc_title_value: 10, acc_descr: 11, acc_descr_value: 12, acc_descr_multiline_value: 13, requirementDef: 14, elementDef: 15, relationshipDef: 16, direction: 17, styleStatement: 18, classDefStatement: 19, classStatement: 20, direction_tb: 21, direction_bt: 22, direction_rl: 23, direction_lr: 24, requirementType: 25, requirementName: 26, STRUCT_START: 27, requirementBody: 28, STYLE_SEPARATOR: 29, idList: 30, ID: 31, COLONSEP: 32, id: 33, TEXT: 34, text: 35, RISK: 36, riskLevel: 37, VERIFYMTHD: 38, verifyType: 39, STRUCT_STOP: 40, REQUIREMENT: 41, FUNCTIONAL_REQUIREMENT: 42, INTERFACE_REQUIREMENT: 43, PERFORMANCE_REQUIREMENT: 44, PHYSICAL_REQUIREMENT: 45, DESIGN_CONSTRAINT: 46, LOW_RISK: 47, MED_RISK: 48, HIGH_RISK: 49, VERIFY_ANALYSIS: 50, VERIFY_DEMONSTRATION: 51, VERIFY_INSPECTION: 52, VERIFY_TEST: 53, ELEMENT: 54, elementName: 55, elementBody: 56, TYPE: 57, type: 58, DOCREF: 59, ref: 60, END_ARROW_L: 61, relationship: 62, LINE: 63, END_ARROW_R: 64, CONTAINS: 65, COPIES: 66, DERIVES: 67, SATISFIES: 68, VERIFIES: 69, REFINES: 70, TRACES: 71, CLASSDEF: 72, stylesOpt: 73, CLASS: 74, ALPHA: 75, COMMA: 76, STYLE: 77, style: 78, styleComponent: 79, NUM: 80, COLON: 81, UNIT: 82, SPACE: 83, BRKT: 84, PCT: 85, MINUS: 86, LABEL: 87, SEMICOLON: 88, unqString: 89, qString: 90, $accept: 0, $end: 1 },
|
|
12
13
|
terminals_: { 2: "error", 5: "NEWLINE", 6: "RD", 8: "EOF", 9: "acc_title", 10: "acc_title_value", 11: "acc_descr", 12: "acc_descr_value", 13: "acc_descr_multiline_value", 21: "direction_tb", 22: "direction_bt", 23: "direction_rl", 24: "direction_lr", 27: "STRUCT_START", 29: "STYLE_SEPARATOR", 31: "ID", 32: "COLONSEP", 34: "TEXT", 36: "RISK", 38: "VERIFYMTHD", 40: "STRUCT_STOP", 41: "REQUIREMENT", 42: "FUNCTIONAL_REQUIREMENT", 43: "INTERFACE_REQUIREMENT", 44: "PERFORMANCE_REQUIREMENT", 45: "PHYSICAL_REQUIREMENT", 46: "DESIGN_CONSTRAINT", 47: "LOW_RISK", 48: "MED_RISK", 49: "HIGH_RISK", 50: "VERIFY_ANALYSIS", 51: "VERIFY_DEMONSTRATION", 52: "VERIFY_INSPECTION", 53: "VERIFY_TEST", 54: "ELEMENT", 57: "TYPE", 59: "DOCREF", 61: "END_ARROW_L", 63: "LINE", 64: "END_ARROW_R", 65: "CONTAINS", 66: "COPIES", 67: "DERIVES", 68: "SATISFIES", 69: "VERIFIES", 70: "REFINES", 71: "TRACES", 72: "CLASSDEF", 74: "CLASS", 75: "ALPHA", 76: "COMMA", 77: "STYLE", 80: "NUM", 81: "COLON", 82: "UNIT", 83: "SPACE", 84: "BRKT", 85: "PCT", 86: "MINUS", 87: "LABEL", 88: "SEMICOLON", 89: "unqString", 90: "qString" },
|
|
13
14
|
productions_: [0, [3, 3], [3, 2], [3, 4], [4, 2], [4, 2], [4, 1], [7, 0], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [17, 1], [17, 1], [17, 1], [17, 1], [14, 5], [14, 7], [28, 5], [28, 5], [28, 5], [28, 5], [28, 2], [28, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [37, 1], [37, 1], [37, 1], [39, 1], [39, 1], [39, 1], [39, 1], [15, 5], [15, 7], [56, 5], [56, 5], [56, 2], [56, 1], [16, 5], [16, 5], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [19, 3], [20, 3], [20, 3], [30, 1], [30, 3], [30, 1], [30, 3], [18, 3], [73, 1], [73, 3], [78, 1], [78, 2], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [26, 1], [26, 1], [33, 1], [33, 1], [35, 1], [35, 1], [55, 1], [55, 1], [58, 1], [58, 1], [60, 1], [60, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */
|
|
15
|
-
var
|
|
16
|
-
switch (
|
|
15
|
+
performAction: /* @__PURE__ */ o(function(i, a, c, s, f, t, me) {
|
|
16
|
+
var l = t.length - 1;
|
|
17
|
+
switch (f) {
|
|
17
18
|
case 4:
|
|
18
|
-
this.$ = t[
|
|
19
|
+
this.$ = t[l].trim(), s.setAccTitle(this.$);
|
|
19
20
|
break;
|
|
20
21
|
case 5:
|
|
21
22
|
case 6:
|
|
22
|
-
this.$ = t[
|
|
23
|
+
this.$ = t[l].trim(), s.setAccDescription(this.$);
|
|
23
24
|
break;
|
|
24
25
|
case 7:
|
|
25
26
|
this.$ = [];
|
|
@@ -37,22 +38,22 @@ var Ae = function() {
|
|
|
37
38
|
s.setDirection("LR");
|
|
38
39
|
break;
|
|
39
40
|
case 21:
|
|
40
|
-
s.addRequirement(t[
|
|
41
|
+
s.addRequirement(t[l - 3], t[l - 4]);
|
|
41
42
|
break;
|
|
42
43
|
case 22:
|
|
43
|
-
s.addRequirement(t[
|
|
44
|
+
s.addRequirement(t[l - 5], t[l - 6]), s.setClass([t[l - 5]], t[l - 3]);
|
|
44
45
|
break;
|
|
45
46
|
case 23:
|
|
46
|
-
s.setNewReqId(t[
|
|
47
|
+
s.setNewReqId(t[l - 2]);
|
|
47
48
|
break;
|
|
48
49
|
case 24:
|
|
49
|
-
s.setNewReqText(t[
|
|
50
|
+
s.setNewReqText(t[l - 2]);
|
|
50
51
|
break;
|
|
51
52
|
case 25:
|
|
52
|
-
s.setNewReqRisk(t[
|
|
53
|
+
s.setNewReqRisk(t[l - 2]);
|
|
53
54
|
break;
|
|
54
55
|
case 26:
|
|
55
|
-
s.setNewReqVerifyMethod(t[
|
|
56
|
+
s.setNewReqVerifyMethod(t[l - 2]);
|
|
56
57
|
break;
|
|
57
58
|
case 29:
|
|
58
59
|
this.$ = s.RequirementType.REQUIREMENT;
|
|
@@ -94,22 +95,22 @@ var Ae = function() {
|
|
|
94
95
|
this.$ = s.VerifyType.VERIFY_TEST;
|
|
95
96
|
break;
|
|
96
97
|
case 42:
|
|
97
|
-
s.addElement(t[
|
|
98
|
+
s.addElement(t[l - 3]);
|
|
98
99
|
break;
|
|
99
100
|
case 43:
|
|
100
|
-
s.addElement(t[
|
|
101
|
+
s.addElement(t[l - 5]), s.setClass([t[l - 5]], t[l - 3]);
|
|
101
102
|
break;
|
|
102
103
|
case 44:
|
|
103
|
-
s.setNewElementType(t[
|
|
104
|
+
s.setNewElementType(t[l - 2]);
|
|
104
105
|
break;
|
|
105
106
|
case 45:
|
|
106
|
-
s.setNewElementDocRef(t[
|
|
107
|
+
s.setNewElementDocRef(t[l - 2]);
|
|
107
108
|
break;
|
|
108
109
|
case 48:
|
|
109
|
-
s.addRelationship(t[
|
|
110
|
+
s.addRelationship(t[l - 2], t[l], t[l - 4]);
|
|
110
111
|
break;
|
|
111
112
|
case 49:
|
|
112
|
-
s.addRelationship(t[
|
|
113
|
+
s.addRelationship(t[l - 2], t[l - 4], t[l]);
|
|
113
114
|
break;
|
|
114
115
|
case 50:
|
|
115
116
|
this.$ = s.Relationships.CONTAINS;
|
|
@@ -133,125 +134,125 @@ var Ae = function() {
|
|
|
133
134
|
this.$ = s.Relationships.TRACES;
|
|
134
135
|
break;
|
|
135
136
|
case 57:
|
|
136
|
-
this.$ = t[
|
|
137
|
+
this.$ = t[l - 2], s.defineClass(t[l - 1], t[l]);
|
|
137
138
|
break;
|
|
138
139
|
case 58:
|
|
139
|
-
s.setClass(t[
|
|
140
|
+
s.setClass(t[l - 1], t[l]);
|
|
140
141
|
break;
|
|
141
142
|
case 59:
|
|
142
|
-
s.setClass([t[
|
|
143
|
+
s.setClass([t[l - 2]], t[l]);
|
|
143
144
|
break;
|
|
144
145
|
case 60:
|
|
145
146
|
case 62:
|
|
146
|
-
this.$ = [t[
|
|
147
|
+
this.$ = [t[l]];
|
|
147
148
|
break;
|
|
148
149
|
case 61:
|
|
149
150
|
case 63:
|
|
150
|
-
this.$ = t[
|
|
151
|
+
this.$ = t[l - 2].concat([t[l]]);
|
|
151
152
|
break;
|
|
152
153
|
case 64:
|
|
153
|
-
this.$ = t[
|
|
154
|
+
this.$ = t[l - 2], s.setCssStyle(t[l - 1], t[l]);
|
|
154
155
|
break;
|
|
155
156
|
case 65:
|
|
156
|
-
this.$ = [t[
|
|
157
|
+
this.$ = [t[l]];
|
|
157
158
|
break;
|
|
158
159
|
case 66:
|
|
159
|
-
t[
|
|
160
|
+
t[l - 2].push(t[l]), this.$ = t[l - 2];
|
|
160
161
|
break;
|
|
161
162
|
case 68:
|
|
162
|
-
this.$ = t[
|
|
163
|
+
this.$ = t[l - 1] + t[l];
|
|
163
164
|
break;
|
|
164
165
|
}
|
|
165
166
|
}, "anonymous"),
|
|
166
|
-
table: [{ 3: 1, 4: 2, 6:
|
|
167
|
+
table: [{ 3: 1, 4: 2, 6: u, 9: h, 11: r, 13: n }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: u, 9: h, 11: r, 13: n }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(E, [2, 6]), { 3: 12, 4: 2, 6: u, 9: h, 11: r, 13: n }, { 1: [2, 2] }, { 4: 17, 5: g, 7: 13, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, e(E, [2, 4]), e(E, [2, 5]), { 1: [2, 1] }, { 8: [1, 41] }, { 4: 17, 5: g, 7: 42, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 43, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 44, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 45, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 46, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 47, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 48, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 49, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 4: 17, 5: g, 7: 50, 8: R, 9: h, 11: r, 13: n, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: _, 22: b, 23: N, 24: q, 25: 23, 33: 25, 41: A, 42: C, 43: V, 44: v, 45: x, 46: L, 54: D, 72: O, 74: w, 77: M, 89: d, 90: p }, { 26: 51, 89: [1, 52], 90: [1, 53] }, { 55: 54, 89: [1, 55], 90: [1, 56] }, { 29: [1, 59], 61: [1, 57], 63: [1, 58] }, e(m, [2, 17]), e(m, [2, 18]), e(m, [2, 19]), e(m, [2, 20]), { 30: 60, 33: 62, 75: $, 89: d, 90: p }, { 30: 63, 33: 62, 75: $, 89: d, 90: p }, { 30: 64, 33: 62, 75: $, 89: d, 90: p }, e(X, [2, 29]), e(X, [2, 30]), e(X, [2, 31]), e(X, [2, 32]), e(X, [2, 33]), e(X, [2, 34]), e(Ae, [2, 81]), e(Ae, [2, 82]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 8: [2, 13] }, { 8: [2, 14] }, { 8: [2, 15] }, { 8: [2, 16] }, { 27: [1, 65], 29: [1, 66] }, e(Ee, [2, 79]), e(Ee, [2, 80]), { 27: [1, 67], 29: [1, 68] }, e(Ee, [2, 85]), e(Ee, [2, 86]), { 62: 69, 65: Ce, 66: Ve, 67: ve, 68: xe, 69: Le, 70: De, 71: Oe }, { 62: 77, 65: Ce, 66: Ve, 67: ve, 68: xe, 69: Le, 70: De, 71: Oe }, { 30: 78, 33: 62, 75: $, 89: d, 90: p }, { 73: 79, 75: Z, 76: U, 78: 81, 79: 82, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }, e(de, [2, 60]), e(de, [2, 62]), { 73: 93, 75: Z, 76: U, 78: 81, 79: 82, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }, { 30: 94, 33: 62, 75: $, 76: U, 89: d, 90: p }, { 5: [1, 95] }, { 30: 96, 33: 62, 75: $, 89: d, 90: p }, { 5: [1, 97] }, { 30: 98, 33: 62, 75: $, 89: d, 90: p }, { 63: [1, 99] }, e(Y, [2, 50]), e(Y, [2, 51]), e(Y, [2, 52]), e(Y, [2, 53]), e(Y, [2, 54]), e(Y, [2, 55]), e(Y, [2, 56]), { 64: [1, 100] }, e(m, [2, 59], { 76: U }), e(m, [2, 64], { 76: we }), { 33: 103, 75: [1, 102], 89: d, 90: p }, e(Me, [2, 65], { 79: 104, 75: Z, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }), e(T, [2, 67]), e(T, [2, 69]), e(T, [2, 70]), e(T, [2, 71]), e(T, [2, 72]), e(T, [2, 73]), e(T, [2, 74]), e(T, [2, 75]), e(T, [2, 76]), e(T, [2, 77]), e(T, [2, 78]), e(m, [2, 57], { 76: we }), e(m, [2, 58], { 76: U }), { 5: B, 28: 105, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 27: [1, 112], 76: U }, { 5: oe, 40: he, 56: 113, 57: ue, 59: fe }, { 27: [1, 118], 76: U }, { 33: 119, 89: d, 90: p }, { 33: 120, 89: d, 90: p }, { 75: Z, 78: 121, 79: 82, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }, e(de, [2, 61]), e(de, [2, 63]), e(T, [2, 68]), e(m, [2, 21]), { 32: [1, 122] }, { 32: [1, 123] }, { 32: [1, 124] }, { 32: [1, 125] }, { 5: B, 28: 126, 31: Q, 34: H, 36: K, 38: W, 40: j }, e(m, [2, 28]), { 5: [1, 127] }, e(m, [2, 42]), { 32: [1, 128] }, { 32: [1, 129] }, { 5: oe, 40: he, 56: 130, 57: ue, 59: fe }, e(m, [2, 47]), { 5: [1, 131] }, e(m, [2, 48]), e(m, [2, 49]), e(Me, [2, 66], { 79: 104, 75: Z, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }), { 33: 132, 89: d, 90: p }, { 35: 133, 89: [1, 134], 90: [1, 135] }, { 37: 136, 47: [1, 137], 48: [1, 138], 49: [1, 139] }, { 39: 140, 50: [1, 141], 51: [1, 142], 52: [1, 143], 53: [1, 144] }, e(m, [2, 27]), { 5: B, 28: 145, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 58: 146, 89: [1, 147], 90: [1, 148] }, { 60: 149, 89: [1, 150], 90: [1, 151] }, e(m, [2, 46]), { 5: oe, 40: he, 56: 152, 57: ue, 59: fe }, { 5: [1, 153] }, { 5: [1, 154] }, { 5: [2, 83] }, { 5: [2, 84] }, { 5: [1, 155] }, { 5: [2, 35] }, { 5: [2, 36] }, { 5: [2, 37] }, { 5: [1, 156] }, { 5: [2, 38] }, { 5: [2, 39] }, { 5: [2, 40] }, { 5: [2, 41] }, e(m, [2, 22]), { 5: [1, 157] }, { 5: [2, 87] }, { 5: [2, 88] }, { 5: [1, 158] }, { 5: [2, 89] }, { 5: [2, 90] }, e(m, [2, 43]), { 5: B, 28: 159, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: B, 28: 160, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: B, 28: 161, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: B, 28: 162, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: oe, 40: he, 56: 163, 57: ue, 59: fe }, { 5: oe, 40: he, 56: 164, 57: ue, 59: fe }, e(m, [2, 23]), e(m, [2, 24]), e(m, [2, 25]), e(m, [2, 26]), e(m, [2, 44]), e(m, [2, 45])],
|
|
167
168
|
defaultActions: { 8: [2, 2], 12: [2, 1], 41: [2, 3], 42: [2, 8], 43: [2, 9], 44: [2, 10], 45: [2, 11], 46: [2, 12], 47: [2, 13], 48: [2, 14], 49: [2, 15], 50: [2, 16], 134: [2, 83], 135: [2, 84], 137: [2, 35], 138: [2, 36], 139: [2, 37], 141: [2, 38], 142: [2, 39], 143: [2, 40], 144: [2, 41], 147: [2, 87], 148: [2, 88], 150: [2, 89], 151: [2, 90] },
|
|
168
|
-
parseError: /* @__PURE__ */
|
|
169
|
-
if (
|
|
169
|
+
parseError: /* @__PURE__ */ o(function(i, a) {
|
|
170
|
+
if (a.recoverable)
|
|
170
171
|
this.trace(i);
|
|
171
172
|
else {
|
|
172
|
-
var
|
|
173
|
-
throw
|
|
173
|
+
var c = new Error(i);
|
|
174
|
+
throw c.hash = a, c;
|
|
174
175
|
}
|
|
175
176
|
}, "parseError"),
|
|
176
|
-
parse: /* @__PURE__ */
|
|
177
|
-
var
|
|
178
|
-
for (var
|
|
179
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
180
|
-
|
|
181
|
-
var
|
|
182
|
-
t.push(
|
|
183
|
-
var
|
|
177
|
+
parse: /* @__PURE__ */ o(function(i) {
|
|
178
|
+
var a = this, c = [0], s = [], f = [null], t = [], me = this.table, l = "", Re = 0, Fe = 0, Qe = 2, Pe = 1, He = t.slice.call(arguments, 1), y = Object.create(this.lexer), z = { yy: {} };
|
|
179
|
+
for (var Se in this.yy)
|
|
180
|
+
Object.prototype.hasOwnProperty.call(this.yy, Se) && (z.yy[Se] = this.yy[Se]);
|
|
181
|
+
y.setInput(i, z.yy), z.yy.lexer = y, z.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
182
|
+
var Ie = y.yylloc;
|
|
183
|
+
t.push(Ie);
|
|
184
|
+
var Ke = y.options && y.options.ranges;
|
|
184
185
|
typeof z.yy.parseError == "function" ? this.parseError = z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
185
|
-
function
|
|
186
|
-
|
|
186
|
+
function We(I) {
|
|
187
|
+
c.length = c.length - 2 * I, f.length = f.length - I, t.length = t.length - I;
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
-
function
|
|
190
|
-
var
|
|
191
|
-
return
|
|
189
|
+
o(We, "popStack");
|
|
190
|
+
function $e() {
|
|
191
|
+
var I;
|
|
192
|
+
return I = s.pop() || y.lex() || Pe, typeof I != "number" && (I instanceof Array && (s = I, I = s.pop()), I = a.symbols_[I] || I), I;
|
|
192
193
|
}
|
|
193
|
-
|
|
194
|
-
for (var
|
|
195
|
-
if (G =
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
for (
|
|
199
|
-
this.terminals_[
|
|
200
|
-
|
|
201
|
-
` +
|
|
202
|
-
Expecting ` +
|
|
203
|
-
text:
|
|
204
|
-
token: this.terminals_[
|
|
205
|
-
line:
|
|
206
|
-
loc:
|
|
207
|
-
expected:
|
|
194
|
+
o($e, "lex");
|
|
195
|
+
for (var S, G, k, be, J = {}, ye, F, Ue, ge; ; ) {
|
|
196
|
+
if (G = c[c.length - 1], this.defaultActions[G] ? k = this.defaultActions[G] : ((S === null || typeof S > "u") && (S = $e()), k = me[G] && me[G][S]), typeof k > "u" || !k.length || !k[0]) {
|
|
197
|
+
var Te = "";
|
|
198
|
+
ge = [];
|
|
199
|
+
for (ye in me[G])
|
|
200
|
+
this.terminals_[ye] && ye > Qe && ge.push("'" + this.terminals_[ye] + "'");
|
|
201
|
+
y.showPosition ? Te = "Parse error on line " + (Re + 1) + `:
|
|
202
|
+
` + y.showPosition() + `
|
|
203
|
+
Expecting ` + ge.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : Te = "Parse error on line " + (Re + 1) + ": Unexpected " + (S == Pe ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(Te, {
|
|
204
|
+
text: y.match,
|
|
205
|
+
token: this.terminals_[S] || S,
|
|
206
|
+
line: y.yylineno,
|
|
207
|
+
loc: Ie,
|
|
208
|
+
expected: ge
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
|
-
if (
|
|
211
|
-
throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " +
|
|
212
|
-
switch (
|
|
211
|
+
if (k[0] instanceof Array && k.length > 1)
|
|
212
|
+
throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + S);
|
|
213
|
+
switch (k[0]) {
|
|
213
214
|
case 1:
|
|
214
|
-
|
|
215
|
+
c.push(S), f.push(y.yytext), t.push(y.yylloc), c.push(k[1]), S = null, Fe = y.yyleng, l = y.yytext, Re = y.yylineno, Ie = y.yylloc;
|
|
215
216
|
break;
|
|
216
217
|
case 2:
|
|
217
|
-
if (F = this.productions_[
|
|
218
|
+
if (F = this.productions_[k[1]][1], J.$ = f[f.length - F], J._$ = {
|
|
218
219
|
first_line: t[t.length - (F || 1)].first_line,
|
|
219
220
|
last_line: t[t.length - 1].last_line,
|
|
220
221
|
first_column: t[t.length - (F || 1)].first_column,
|
|
221
222
|
last_column: t[t.length - 1].last_column
|
|
222
|
-
},
|
|
223
|
+
}, Ke && (J._$.range = [
|
|
223
224
|
t[t.length - (F || 1)].range[0],
|
|
224
225
|
t[t.length - 1].range[1]
|
|
225
|
-
]),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
]), be = this.performAction.apply(J, [
|
|
227
|
+
l,
|
|
228
|
+
Fe,
|
|
229
|
+
Re,
|
|
229
230
|
z.yy,
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
k[1],
|
|
232
|
+
f,
|
|
232
233
|
t
|
|
233
|
-
].concat(
|
|
234
|
-
return
|
|
235
|
-
F && (
|
|
234
|
+
].concat(He)), typeof be < "u")
|
|
235
|
+
return be;
|
|
236
|
+
F && (c = c.slice(0, -1 * F * 2), f = f.slice(0, -1 * F), t = t.slice(0, -1 * F)), c.push(this.productions_[k[1]][0]), f.push(J.$), t.push(J._$), Ue = me[c[c.length - 2]][c[c.length - 1]], c.push(Ue);
|
|
236
237
|
break;
|
|
237
238
|
case 3:
|
|
238
|
-
return
|
|
239
|
+
return true;
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
|
-
return
|
|
242
|
+
return true;
|
|
242
243
|
}, "parse")
|
|
243
|
-
},
|
|
244
|
+
}, Be = /* @__PURE__ */ function() {
|
|
244
245
|
var P = {
|
|
245
246
|
EOF: 1,
|
|
246
|
-
parseError: /* @__PURE__ */
|
|
247
|
+
parseError: /* @__PURE__ */ o(function(a, c) {
|
|
247
248
|
if (this.yy.parser)
|
|
248
|
-
this.yy.parser.parseError(
|
|
249
|
+
this.yy.parser.parseError(a, c);
|
|
249
250
|
else
|
|
250
|
-
throw new Error(
|
|
251
|
+
throw new Error(a);
|
|
251
252
|
}, "parseError"),
|
|
252
253
|
// resets the lexer, sets new input
|
|
253
|
-
setInput: /* @__PURE__ */
|
|
254
|
-
return this.yy =
|
|
254
|
+
setInput: /* @__PURE__ */ o(function(i, a) {
|
|
255
|
+
return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
255
256
|
first_line: 1,
|
|
256
257
|
first_column: 0,
|
|
257
258
|
last_line: 1,
|
|
@@ -259,34 +260,34 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke =
|
|
|
259
260
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
260
261
|
}, "setInput"),
|
|
261
262
|
// consumes and returns one char from the input
|
|
262
|
-
input: /* @__PURE__ */
|
|
263
|
+
input: /* @__PURE__ */ o(function() {
|
|
263
264
|
var i = this._input[0];
|
|
264
265
|
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
265
|
-
var
|
|
266
|
-
return
|
|
266
|
+
var a = i.match(/(?:\r\n?|\n).*/g);
|
|
267
|
+
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
267
268
|
}, "input"),
|
|
268
269
|
// unshifts one char (or a string) into the input
|
|
269
|
-
unput: /* @__PURE__ */
|
|
270
|
-
var
|
|
271
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
270
|
+
unput: /* @__PURE__ */ o(function(i) {
|
|
271
|
+
var a = i.length, c = i.split(/(?:\r\n?|\n)/g);
|
|
272
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
272
273
|
var s = this.match.split(/(?:\r\n?|\n)/g);
|
|
273
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
274
|
-
var
|
|
274
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
275
|
+
var f = this.yylloc.range;
|
|
275
276
|
return this.yylloc = {
|
|
276
277
|
first_line: this.yylloc.first_line,
|
|
277
278
|
last_line: this.yylineno + 1,
|
|
278
279
|
first_column: this.yylloc.first_column,
|
|
279
|
-
last_column:
|
|
280
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
280
|
+
last_column: c ? (c.length === s.length ? this.yylloc.first_column : 0) + s[s.length - c.length].length - c[0].length : this.yylloc.first_column - a
|
|
281
|
+
}, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
281
282
|
}, "unput"),
|
|
282
283
|
// When called from action, caches matched text and appends it on next action
|
|
283
|
-
more: /* @__PURE__ */
|
|
284
|
-
return this._more =
|
|
284
|
+
more: /* @__PURE__ */ o(function() {
|
|
285
|
+
return this._more = true, this;
|
|
285
286
|
}, "more"),
|
|
286
287
|
// 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.
|
|
287
|
-
reject: /* @__PURE__ */
|
|
288
|
+
reject: /* @__PURE__ */ o(function() {
|
|
288
289
|
if (this.options.backtrack_lexer)
|
|
289
|
-
this._backtrack =
|
|
290
|
+
this._backtrack = true;
|
|
290
291
|
else
|
|
291
292
|
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).
|
|
292
293
|
` + this.showPosition(), {
|
|
@@ -297,29 +298,29 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke =
|
|
|
297
298
|
return this;
|
|
298
299
|
}, "reject"),
|
|
299
300
|
// retain first n characters of the match
|
|
300
|
-
less: /* @__PURE__ */
|
|
301
|
+
less: /* @__PURE__ */ o(function(i) {
|
|
301
302
|
this.unput(this.match.slice(i));
|
|
302
303
|
}, "less"),
|
|
303
304
|
// displays already matched input, i.e. for error messages
|
|
304
|
-
pastInput: /* @__PURE__ */
|
|
305
|
+
pastInput: /* @__PURE__ */ o(function() {
|
|
305
306
|
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
306
307
|
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
307
308
|
}, "pastInput"),
|
|
308
309
|
// displays upcoming input, i.e. for error messages
|
|
309
|
-
upcomingInput: /* @__PURE__ */
|
|
310
|
+
upcomingInput: /* @__PURE__ */ o(function() {
|
|
310
311
|
var i = this.match;
|
|
311
312
|
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
312
313
|
}, "upcomingInput"),
|
|
313
314
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
314
|
-
showPosition: /* @__PURE__ */
|
|
315
|
-
var i = this.pastInput(),
|
|
315
|
+
showPosition: /* @__PURE__ */ o(function() {
|
|
316
|
+
var i = this.pastInput(), a = new Array(i.length + 1).join("-");
|
|
316
317
|
return i + this.upcomingInput() + `
|
|
317
|
-
` +
|
|
318
|
+
` + a + "^";
|
|
318
319
|
}, "showPosition"),
|
|
319
320
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
320
|
-
test_match: /* @__PURE__ */
|
|
321
|
-
var
|
|
322
|
-
if (this.options.backtrack_lexer && (
|
|
321
|
+
test_match: /* @__PURE__ */ o(function(i, a) {
|
|
322
|
+
var c, s, f;
|
|
323
|
+
if (this.options.backtrack_lexer && (f = {
|
|
323
324
|
yylineno: this.yylineno,
|
|
324
325
|
yylloc: {
|
|
325
326
|
first_line: this.yylloc.first_line,
|
|
@@ -338,41 +339,41 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke =
|
|
|
338
339
|
yy: this.yy,
|
|
339
340
|
conditionStack: this.conditionStack.slice(0),
|
|
340
341
|
done: this.done
|
|
341
|
-
}, this.options.ranges && (
|
|
342
|
+
}, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), s = i[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
|
|
342
343
|
first_line: this.yylloc.last_line,
|
|
343
344
|
last_line: this.yylineno + 1,
|
|
344
345
|
first_column: this.yylloc.last_column,
|
|
345
346
|
last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
346
|
-
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more =
|
|
347
|
-
return
|
|
347
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(i[0].length), this.matched += i[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
|
|
348
|
+
return c;
|
|
348
349
|
if (this._backtrack) {
|
|
349
|
-
for (var t in
|
|
350
|
-
this[t] =
|
|
351
|
-
return
|
|
350
|
+
for (var t in f)
|
|
351
|
+
this[t] = f[t];
|
|
352
|
+
return false;
|
|
352
353
|
}
|
|
353
|
-
return
|
|
354
|
+
return false;
|
|
354
355
|
}, "test_match"),
|
|
355
356
|
// return next match in input
|
|
356
|
-
next: /* @__PURE__ */
|
|
357
|
+
next: /* @__PURE__ */ o(function() {
|
|
357
358
|
if (this.done)
|
|
358
359
|
return this.EOF;
|
|
359
|
-
this._input || (this.done =
|
|
360
|
-
var i,
|
|
360
|
+
this._input || (this.done = true);
|
|
361
|
+
var i, a, c, s;
|
|
361
362
|
this._more || (this.yytext = "", this.match = "");
|
|
362
|
-
for (var
|
|
363
|
-
if (
|
|
364
|
-
if (
|
|
365
|
-
if (i = this.test_match(
|
|
363
|
+
for (var f = this._currentRules(), t = 0; t < f.length; t++)
|
|
364
|
+
if (c = this._input.match(this.rules[f[t]]), c && (!a || c[0].length > a[0].length)) {
|
|
365
|
+
if (a = c, s = t, this.options.backtrack_lexer) {
|
|
366
|
+
if (i = this.test_match(c, f[t]), i !== false)
|
|
366
367
|
return i;
|
|
367
368
|
if (this._backtrack) {
|
|
368
|
-
|
|
369
|
+
a = false;
|
|
369
370
|
continue;
|
|
370
371
|
} else
|
|
371
|
-
return
|
|
372
|
+
return false;
|
|
372
373
|
} else if (!this.options.flex)
|
|
373
374
|
break;
|
|
374
375
|
}
|
|
375
|
-
return
|
|
376
|
+
return a ? (i = this.test_match(a, f[s]), i !== false ? i : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
376
377
|
` + this.showPosition(), {
|
|
377
378
|
text: "",
|
|
378
379
|
token: null,
|
|
@@ -380,37 +381,37 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke =
|
|
|
380
381
|
});
|
|
381
382
|
}, "next"),
|
|
382
383
|
// return next match that has a token
|
|
383
|
-
lex: /* @__PURE__ */
|
|
384
|
-
var
|
|
385
|
-
return
|
|
384
|
+
lex: /* @__PURE__ */ o(function() {
|
|
385
|
+
var a = this.next();
|
|
386
|
+
return a || this.lex();
|
|
386
387
|
}, "lex"),
|
|
387
388
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
388
|
-
begin: /* @__PURE__ */
|
|
389
|
-
this.conditionStack.push(
|
|
389
|
+
begin: /* @__PURE__ */ o(function(a) {
|
|
390
|
+
this.conditionStack.push(a);
|
|
390
391
|
}, "begin"),
|
|
391
392
|
// pop the previously active lexer condition state off the condition stack
|
|
392
|
-
popState: /* @__PURE__ */
|
|
393
|
-
var
|
|
394
|
-
return
|
|
393
|
+
popState: /* @__PURE__ */ o(function() {
|
|
394
|
+
var a = this.conditionStack.length - 1;
|
|
395
|
+
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
395
396
|
}, "popState"),
|
|
396
397
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
397
|
-
_currentRules: /* @__PURE__ */
|
|
398
|
+
_currentRules: /* @__PURE__ */ o(function() {
|
|
398
399
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
399
400
|
}, "_currentRules"),
|
|
400
401
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
401
|
-
topState: /* @__PURE__ */
|
|
402
|
-
return
|
|
402
|
+
topState: /* @__PURE__ */ o(function(a) {
|
|
403
|
+
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
403
404
|
}, "topState"),
|
|
404
405
|
// alias for begin(condition)
|
|
405
|
-
pushState: /* @__PURE__ */
|
|
406
|
-
this.begin(
|
|
406
|
+
pushState: /* @__PURE__ */ o(function(a) {
|
|
407
|
+
this.begin(a);
|
|
407
408
|
}, "pushState"),
|
|
408
409
|
// return the number of states currently on the stack
|
|
409
|
-
stateStackSize: /* @__PURE__ */
|
|
410
|
+
stateStackSize: /* @__PURE__ */ o(function() {
|
|
410
411
|
return this.conditionStack.length;
|
|
411
412
|
}, "stateStackSize"),
|
|
412
|
-
options: { "case-insensitive":
|
|
413
|
-
performAction: /* @__PURE__ */
|
|
413
|
+
options: { "case-insensitive": true },
|
|
414
|
+
performAction: /* @__PURE__ */ o(function(a, c, s, f) {
|
|
414
415
|
switch (s) {
|
|
415
416
|
case 0:
|
|
416
417
|
return "title";
|
|
@@ -553,7 +554,7 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke =
|
|
|
553
554
|
case 66:
|
|
554
555
|
return "qString";
|
|
555
556
|
case 67:
|
|
556
|
-
return
|
|
557
|
+
return c.yytext = c.yytext.trim(), 89;
|
|
557
558
|
case 68:
|
|
558
559
|
return 75;
|
|
559
560
|
case 69:
|
|
@@ -563,18 +564,18 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke =
|
|
|
563
564
|
}
|
|
564
565
|
}, "anonymous"),
|
|
565
566
|
rules: [/^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/i, /^(?::{3})/i, /^(?::)/i, /^(?:id\b)/i, /^(?:text\b)/i, /^(?:risk\b)/i, /^(?:verifyMethod\b)/i, /^(?:requirement\b)/i, /^(?:functionalRequirement\b)/i, /^(?:interfaceRequirement\b)/i, /^(?:performanceRequirement\b)/i, /^(?:physicalRequirement\b)/i, /^(?:designConstraint\b)/i, /^(?:low\b)/i, /^(?:medium\b)/i, /^(?:high\b)/i, /^(?:analysis\b)/i, /^(?:demonstration\b)/i, /^(?:inspection\b)/i, /^(?:test\b)/i, /^(?:element\b)/i, /^(?:contains\b)/i, /^(?:copies\b)/i, /^(?:derives\b)/i, /^(?:satisfies\b)/i, /^(?:verifies\b)/i, /^(?:refines\b)/i, /^(?:traces\b)/i, /^(?:type\b)/i, /^(?:docref\b)/i, /^(?:style\b)/i, /^(?:\w+)/i, /^(?::)/i, /^(?:;)/i, /^(?:%)/i, /^(?:-)/i, /^(?:#)/i, /^(?: )/i, /^(?:["])/i, /^(?:\n)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i, /^(?:\w+)/i, /^(?:[0-9]+)/i, /^(?:,)/i],
|
|
566
|
-
conditions: { acc_descr_multiline: { rules: [6, 7, 68, 69, 70], inclusive:
|
|
567
|
+
conditions: { acc_descr_multiline: { rules: [6, 7, 68, 69, 70], inclusive: false }, acc_descr: { rules: [4, 68, 69, 70], inclusive: false }, acc_title: { rules: [2, 68, 69, 70], inclusive: false }, style: { rules: [50, 51, 52, 53, 54, 55, 56, 57, 58, 68, 69, 70], inclusive: false }, unqString: { rules: [68, 69, 70], inclusive: false }, token: { rules: [68, 69, 70], inclusive: false }, string: { rules: [65, 66, 68, 69, 70], inclusive: false }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 59, 60, 61, 62, 63, 64, 67, 68, 69, 70], inclusive: true } }
|
|
567
568
|
};
|
|
568
569
|
return P;
|
|
569
570
|
}();
|
|
570
|
-
|
|
571
|
-
function
|
|
571
|
+
_e.lexer = Be;
|
|
572
|
+
function pe() {
|
|
572
573
|
this.yy = {};
|
|
573
574
|
}
|
|
574
|
-
return
|
|
575
|
+
return o(pe, "Parser"), pe.prototype = _e, _e.Parser = pe, new pe();
|
|
575
576
|
}();
|
|
576
|
-
|
|
577
|
-
var
|
|
577
|
+
qe.parser = qe;
|
|
578
|
+
var lt = qe, ct = (_a = class {
|
|
578
579
|
constructor() {
|
|
579
580
|
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 = {
|
|
580
581
|
REQUIREMENT: "Requirement",
|
|
@@ -600,13 +601,13 @@ var ct = Ae, Z, ot = (Z = class {
|
|
|
600
601
|
VERIFIES: "verifies",
|
|
601
602
|
REFINES: "refines",
|
|
602
603
|
TRACES: "traces"
|
|
603
|
-
}, this.setAccTitle =
|
|
604
|
+
}, this.setAccTitle = Ge, this.getAccTitle = Xe, this.setAccDescription = Je, this.getAccDescription = Ze, this.setDiagramTitle = et, this.getDiagramTitle = tt, this.getConfig = /* @__PURE__ */ o(() => ke().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);
|
|
604
605
|
}
|
|
605
606
|
getDirection() {
|
|
606
607
|
return this.direction;
|
|
607
608
|
}
|
|
608
|
-
setDirection(
|
|
609
|
-
this.direction =
|
|
609
|
+
setDirection(e) {
|
|
610
|
+
this.direction = e;
|
|
610
611
|
}
|
|
611
612
|
resetLatestRequirement() {
|
|
612
613
|
this.latestRequirement = this.getInitialRequirement();
|
|
@@ -635,9 +636,9 @@ var ct = Ae, Z, ot = (Z = class {
|
|
|
635
636
|
classes: ["default"]
|
|
636
637
|
};
|
|
637
638
|
}
|
|
638
|
-
addRequirement(
|
|
639
|
-
return this.requirements.has(
|
|
640
|
-
name:
|
|
639
|
+
addRequirement(e, u) {
|
|
640
|
+
return this.requirements.has(e) || this.requirements.set(e, {
|
|
641
|
+
name: e,
|
|
641
642
|
type: u,
|
|
642
643
|
requirementId: this.latestRequirement.requirementId,
|
|
643
644
|
text: this.latestRequirement.text,
|
|
@@ -645,88 +646,88 @@ var ct = Ae, Z, ot = (Z = class {
|
|
|
645
646
|
verifyMethod: this.latestRequirement.verifyMethod,
|
|
646
647
|
cssStyles: [],
|
|
647
648
|
classes: ["default"]
|
|
648
|
-
}), this.resetLatestRequirement(), this.requirements.get(
|
|
649
|
+
}), this.resetLatestRequirement(), this.requirements.get(e);
|
|
649
650
|
}
|
|
650
651
|
getRequirements() {
|
|
651
652
|
return this.requirements;
|
|
652
653
|
}
|
|
653
|
-
setNewReqId(
|
|
654
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.requirementId =
|
|
654
|
+
setNewReqId(e) {
|
|
655
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.requirementId = e);
|
|
655
656
|
}
|
|
656
|
-
setNewReqText(
|
|
657
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.text =
|
|
657
|
+
setNewReqText(e) {
|
|
658
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.text = e);
|
|
658
659
|
}
|
|
659
|
-
setNewReqRisk(
|
|
660
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.risk =
|
|
660
|
+
setNewReqRisk(e) {
|
|
661
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.risk = e);
|
|
661
662
|
}
|
|
662
|
-
setNewReqVerifyMethod(
|
|
663
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.verifyMethod =
|
|
663
|
+
setNewReqVerifyMethod(e) {
|
|
664
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.verifyMethod = e);
|
|
664
665
|
}
|
|
665
|
-
addElement(
|
|
666
|
-
return this.elements.has(
|
|
667
|
-
name:
|
|
666
|
+
addElement(e) {
|
|
667
|
+
return this.elements.has(e) || (this.elements.set(e, {
|
|
668
|
+
name: e,
|
|
668
669
|
type: this.latestElement.type,
|
|
669
670
|
docRef: this.latestElement.docRef,
|
|
670
671
|
cssStyles: [],
|
|
671
672
|
classes: ["default"]
|
|
672
|
-
}),
|
|
673
|
+
}), Ne.info("Added new element: ", e)), this.resetLatestElement(), this.elements.get(e);
|
|
673
674
|
}
|
|
674
675
|
getElements() {
|
|
675
676
|
return this.elements;
|
|
676
677
|
}
|
|
677
|
-
setNewElementType(
|
|
678
|
-
this.latestElement !== void 0 && (this.latestElement.type =
|
|
678
|
+
setNewElementType(e) {
|
|
679
|
+
this.latestElement !== void 0 && (this.latestElement.type = e);
|
|
679
680
|
}
|
|
680
|
-
setNewElementDocRef(
|
|
681
|
-
this.latestElement !== void 0 && (this.latestElement.docRef =
|
|
681
|
+
setNewElementDocRef(e) {
|
|
682
|
+
this.latestElement !== void 0 && (this.latestElement.docRef = e);
|
|
682
683
|
}
|
|
683
|
-
addRelationship(
|
|
684
|
+
addRelationship(e, u, h) {
|
|
684
685
|
this.relations.push({
|
|
685
|
-
type:
|
|
686
|
+
type: e,
|
|
686
687
|
src: u,
|
|
687
|
-
dst:
|
|
688
|
+
dst: h
|
|
688
689
|
});
|
|
689
690
|
}
|
|
690
691
|
getRelationships() {
|
|
691
692
|
return this.relations;
|
|
692
693
|
}
|
|
693
694
|
clear() {
|
|
694
|
-
this.relations = [], this.resetLatestRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.resetLatestElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(),
|
|
695
|
+
this.relations = [], this.resetLatestRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.resetLatestElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), st();
|
|
695
696
|
}
|
|
696
|
-
setCssStyle(
|
|
697
|
-
for (const
|
|
698
|
-
const
|
|
699
|
-
if (!u || !
|
|
697
|
+
setCssStyle(e, u) {
|
|
698
|
+
for (const h of e) {
|
|
699
|
+
const r = this.requirements.get(h) ?? this.elements.get(h);
|
|
700
|
+
if (!u || !r)
|
|
700
701
|
return;
|
|
701
|
-
for (const
|
|
702
|
-
|
|
702
|
+
for (const n of u)
|
|
703
|
+
n.includes(",") ? r.cssStyles.push(...n.split(",")) : r.cssStyles.push(n);
|
|
703
704
|
}
|
|
704
705
|
}
|
|
705
|
-
setClass(
|
|
706
|
-
var
|
|
707
|
-
for (const
|
|
708
|
-
const
|
|
709
|
-
if (
|
|
710
|
-
for (const
|
|
711
|
-
|
|
712
|
-
const
|
|
713
|
-
|
|
706
|
+
setClass(e, u) {
|
|
707
|
+
var _a2;
|
|
708
|
+
for (const h of e) {
|
|
709
|
+
const r = this.requirements.get(h) ?? this.elements.get(h);
|
|
710
|
+
if (r)
|
|
711
|
+
for (const n of u) {
|
|
712
|
+
r.classes.push(n);
|
|
713
|
+
const E = (_a2 = this.classes.get(n)) == null ? void 0 : _a2.styles;
|
|
714
|
+
E && r.cssStyles.push(...E);
|
|
714
715
|
}
|
|
715
716
|
}
|
|
716
717
|
}
|
|
717
|
-
defineClass(
|
|
718
|
-
for (const
|
|
719
|
-
let
|
|
720
|
-
|
|
721
|
-
if (/color/.exec(
|
|
722
|
-
const
|
|
723
|
-
|
|
718
|
+
defineClass(e, u) {
|
|
719
|
+
for (const h of e) {
|
|
720
|
+
let r = this.classes.get(h);
|
|
721
|
+
r === void 0 && (r = { id: h, styles: [], textStyles: [] }, this.classes.set(h, r)), u && u.forEach(function(n) {
|
|
722
|
+
if (/color/.exec(n)) {
|
|
723
|
+
const E = n.replace("fill", "bgFill");
|
|
724
|
+
r.textStyles.push(E);
|
|
724
725
|
}
|
|
725
|
-
|
|
726
|
-
}), this.requirements.forEach((
|
|
727
|
-
|
|
728
|
-
}), this.elements.forEach((
|
|
729
|
-
|
|
726
|
+
r.styles.push(n);
|
|
727
|
+
}), this.requirements.forEach((n) => {
|
|
728
|
+
n.classes.includes(h) && n.cssStyles.push(...u.flatMap((E) => E.split(",")));
|
|
729
|
+
}), this.elements.forEach((n) => {
|
|
730
|
+
n.classes.includes(h) && n.cssStyles.push(...u.flatMap((E) => E.split(",")));
|
|
730
731
|
});
|
|
731
732
|
}
|
|
732
733
|
}
|
|
@@ -734,38 +735,38 @@ var ct = Ae, Z, ot = (Z = class {
|
|
|
734
735
|
return this.classes;
|
|
735
736
|
}
|
|
736
737
|
getData() {
|
|
737
|
-
var
|
|
738
|
-
const
|
|
739
|
-
for (const
|
|
740
|
-
const
|
|
741
|
-
|
|
738
|
+
var _a2, _b, _c, _d;
|
|
739
|
+
const e = ke(), u = [], h = [];
|
|
740
|
+
for (const r of this.requirements.values()) {
|
|
741
|
+
const n = r;
|
|
742
|
+
n.id = r.name, n.cssStyles = r.cssStyles, n.cssClasses = r.classes.join(" "), n.shape = "requirementBox", n.look = e.look, u.push(n);
|
|
742
743
|
}
|
|
743
|
-
for (const
|
|
744
|
-
const
|
|
745
|
-
|
|
744
|
+
for (const r of this.elements.values()) {
|
|
745
|
+
const n = r;
|
|
746
|
+
n.shape = "requirementBox", n.look = e.look, n.id = r.name, n.cssStyles = r.cssStyles, n.cssClasses = r.classes.join(" "), u.push(n);
|
|
746
747
|
}
|
|
747
|
-
for (const
|
|
748
|
-
let
|
|
749
|
-
const
|
|
750
|
-
id: `${
|
|
751
|
-
start: ((
|
|
752
|
-
end: ((
|
|
753
|
-
label: `<<${
|
|
748
|
+
for (const r of this.relations) {
|
|
749
|
+
let n = 0;
|
|
750
|
+
const E = r.type === this.Relationships.CONTAINS, g = {
|
|
751
|
+
id: `${r.src}-${r.dst}-${n}`,
|
|
752
|
+
start: ((_a2 = this.requirements.get(r.src)) == null ? void 0 : _a2.name) ?? ((_b = this.elements.get(r.src)) == null ? void 0 : _b.name),
|
|
753
|
+
end: ((_c = this.requirements.get(r.dst)) == null ? void 0 : _c.name) ?? ((_d = this.elements.get(r.dst)) == null ? void 0 : _d.name),
|
|
754
|
+
label: `<<${r.type}>>`,
|
|
754
755
|
classes: "relationshipLine",
|
|
755
|
-
style: ["fill:none",
|
|
756
|
+
style: ["fill:none", E ? "" : "stroke-dasharray: 10,7"],
|
|
756
757
|
labelpos: "c",
|
|
757
758
|
thickness: "normal",
|
|
758
759
|
type: "normal",
|
|
759
|
-
pattern:
|
|
760
|
-
arrowTypeStart:
|
|
761
|
-
arrowTypeEnd:
|
|
762
|
-
look:
|
|
760
|
+
pattern: E ? "normal" : "dashed",
|
|
761
|
+
arrowTypeStart: E ? "requirement_contains" : "",
|
|
762
|
+
arrowTypeEnd: E ? "" : "requirement_arrow",
|
|
763
|
+
look: e.look
|
|
763
764
|
};
|
|
764
|
-
|
|
765
|
+
h.push(g), n++;
|
|
765
766
|
}
|
|
766
|
-
return { nodes: u, edges:
|
|
767
|
+
return { nodes: u, edges: h, other: {}, config: e, direction: this.getDirection() };
|
|
767
768
|
}
|
|
768
|
-
},
|
|
769
|
+
}, o(_a, "RequirementDB"), _a), ot = /* @__PURE__ */ o((e) => `
|
|
769
770
|
|
|
770
771
|
marker {
|
|
771
772
|
fill: ${e.relationColor};
|
|
@@ -823,29 +824,29 @@ var ct = Ae, Z, ot = (Z = class {
|
|
|
823
824
|
background-color: ${e.edgeLabelBackground};
|
|
824
825
|
}
|
|
825
826
|
|
|
826
|
-
`, "getStyles"),
|
|
827
|
-
|
|
828
|
-
draw: () =>
|
|
827
|
+
`, "getStyles"), ht = ot, Ye = {};
|
|
828
|
+
it(Ye, {
|
|
829
|
+
draw: () => ut
|
|
829
830
|
});
|
|
830
|
-
var
|
|
831
|
-
|
|
832
|
-
const { securityLevel:
|
|
833
|
-
R.type =
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
|
|
831
|
+
var ut = /* @__PURE__ */ o(async function(e, u, h, r) {
|
|
832
|
+
Ne.info("REF0:"), Ne.info("Drawing requirement diagram (unified)", u);
|
|
833
|
+
const { securityLevel: n, state: E, layout: g } = ke(), R = r.db.getData(), _ = je(u, n);
|
|
834
|
+
R.type = r.type, R.layoutAlgorithm = rt(g), R.nodeSpacing = (E == null ? void 0 : E.nodeSpacing) ?? 50, R.rankSpacing = (E == null ? void 0 : E.rankSpacing) ?? 50, R.markers = ["requirement_contains", "requirement_arrow"], R.diagramId = u, await nt(R, _);
|
|
835
|
+
const b = 8;
|
|
836
|
+
at.insertTitle(
|
|
837
|
+
_,
|
|
837
838
|
"requirementDiagramTitleText",
|
|
838
|
-
(
|
|
839
|
-
|
|
840
|
-
),
|
|
841
|
-
}, "draw"),
|
|
842
|
-
parser:
|
|
839
|
+
(E == null ? void 0 : E.titleTopMargin) ?? 25,
|
|
840
|
+
r.db.getDiagramTitle()
|
|
841
|
+
), ze(_, b, "requirementDiagram", (E == null ? void 0 : E.useMaxWidth) ?? true);
|
|
842
|
+
}, "draw"), Et = {
|
|
843
|
+
parser: lt,
|
|
843
844
|
get db() {
|
|
844
|
-
return new
|
|
845
|
+
return new ct();
|
|
845
846
|
},
|
|
846
|
-
renderer:
|
|
847
|
-
styles:
|
|
847
|
+
renderer: Ye,
|
|
848
|
+
styles: ht
|
|
848
849
|
};
|
|
849
850
|
export {
|
|
850
|
-
|
|
851
|
+
Et as diagram
|
|
851
852
|
};
|