@ashwin_droid/notion-stream 1.0.0 → 1.0.1
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/{_baseUniq-DSwfPiGC.js → _baseUniq-CWfjzMhC.js} +1 -1
- package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-Db9ouzA-.mjs} +51 -51
- package/dist/{arc-DmoYXidQ.mjs → arc-CHlsWOEE.mjs} +1 -1
- package/dist/{arc-BBnIBs2j.js → arc-DxDH4CNq.js} +1 -1
- package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-DpmenltQ.mjs} +1 -1
- package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-DqUhwOXk.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-C2hauZCK.mjs} +1846 -1850
- package/dist/architectureDiagram-VXUJARFQ-LwDhoqXa.js +36 -0
- package/dist/blockDiagram-VD42YOAC-Cws7af6P.js +122 -0
- package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-yWS4_TxE.mjs} +913 -922
- package/dist/c4Diagram-YG6GDRKO-DLoBqiir.js +10 -0
- package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-K4ShvkML.mjs} +169 -170
- package/dist/channel-BqjR_aPb.js +1 -0
- package/dist/{channel-DVpqhnow.mjs → channel-_5jzmP-I.mjs} +1 -1
- package/dist/chunk-4BX2VUAB-6hr5PCkV.js +1 -0
- package/dist/chunk-4BX2VUAB-DBTu5W6L.mjs +8 -0
- package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-BLs0Xswy.js} +1 -1
- package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-_brNODlK.mjs} +1 -1
- package/dist/chunk-B4BG7PRW-6HdbiUFA.js +165 -0
- package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-CWohxZt0.mjs} +251 -252
- package/dist/chunk-DI55MBZ5-DehdsbpI.js +220 -0
- package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-db62NlMD.mjs} +444 -456
- package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-B2j81cAo.js} +1 -1
- package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BegOwXuP.mjs} +1 -1
- package/dist/chunk-QN33PNHL-CJ1oa0p-.js +1 -0
- package/dist/chunk-QN33PNHL-CpBQYWWf.mjs +19 -0
- package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-BG9vC9tQ.mjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-DV3-w0rK.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-D3cmOS_D.mjs} +20 -20
- package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-DtKjE4RE.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-DAL3V7Dx.mjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-uOMmrtgR.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-DAL3V7Dx.mjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-uOMmrtgR.js} +1 -1
- package/dist/{clone-KtLCwiKH.mjs → clone-BiSDKkgs.mjs} +1 -1
- package/dist/clone-Bl9s3LR9.js +1 -0
- package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-BILtfzQC.js} +1 -1
- package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-MauA-22z.mjs} +1 -1
- package/dist/cose-bilkent-S5V4N54A-CPJoKUiO.js +1 -0
- package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-rUEUYQdF.mjs} +592 -589
- package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
- package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
- package/dist/dagre-6UL2VRFP-b0VfOp5y.mjs +443 -0
- package/dist/dagre-6UL2VRFP-r_ADTb0O.js +4 -0
- package/dist/diagram-PSM6KHXK-CuHqLGUt.js +24 -0
- package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-ax3IfFcX.mjs} +45 -48
- package/dist/diagram-QEK2KX5R-B5Lo9E-s.js +43 -0
- package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-Dn47K2He.mjs} +10 -14
- package/dist/diagram-S2PKOQOG-B0W-tWPV.js +24 -0
- package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-C5jPENyu.mjs} +22 -23
- package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-XP6-Fsuy.mjs} +77 -78
- package/dist/erDiagram-Q2GNP2WA-k7niLq9H.js +60 -0
- package/dist/flowDiagram-NV44I4VS-BAdaW0zG.js +162 -0
- package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-DzHvKZ3e.mjs} +442 -449
- package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-BRenKPXr.mjs} +1049 -1041
- package/dist/ganttDiagram-JELNMOA3-CddDOxeO.js +267 -0
- package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-BLshE7A8.js} +1 -1
- package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-Dq8gDI5R.mjs} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-B-rSecLz.mjs +699 -0
- package/dist/gitGraphDiagram-NY62KEGX-C980oVrU.js +65 -0
- package/dist/{graph-BNpx6ebg.js → graph-BlL96kLy.js} +1 -1
- package/dist/{graph-C_T4ZBuC.mjs → graph-DxtCPktv.mjs} +8 -8
- package/dist/index-DIQbvlIr.js +670 -0
- package/dist/{index-oe4HpmeG.mjs → index-yf1-93v5.mjs} +22534 -22642
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/info-NVLQJR56-BQNoY6_p.mjs +5 -0
- package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-Bls_Dqxs.js} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-DwsUlSxN.js} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-FnUO4LNo.mjs} +2 -2
- package/dist/journeyDiagram-XKPGCS4Q-7k1g8rPF.js +139 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-Bvn5lhxn.mjs} +24 -26
- package/dist/kanban-definition-3W4ZIXB7-Cqf7XpzW.js +89 -0
- package/dist/kanban-definition-3W4ZIXB7-D29d9Rl2.mjs +719 -0
- package/dist/{layout-CuWQnP5Y.js → layout-B_kkbzwQ.js} +1 -1
- package/dist/{layout-Cd98WJ7r.mjs → layout-BlUfzTib.mjs} +22 -22
- package/dist/{linear-SU4e8MRt.mjs → linear-CC_oUBkf.mjs} +20 -20
- package/dist/{linear-DFDw13y6.js → linear-DF2d9TVq.js} +1 -1
- package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-2ufyMRt4.js} +1 -1
- package/dist/mermaid-4DMBBIKO-BizANXE3.mjs +4 -0
- package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CkXMNpV7.mjs} +3404 -3369
- package/dist/mermaid-parser.core-DQkQZAvG.js +128 -0
- package/dist/{min-CppMRDFn.js → min-I7eFb2cg.js} +1 -1
- package/dist/{min-C2k771MZ.mjs → min-VPOHWCTf.mjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-CawQ5XYo.mjs} +170 -172
- package/dist/mindmap-definition-VGOIOE7T-d8uGKtHO.js +68 -0
- package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-BbdhMsyD.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-CiqPNXx_.js} +1 -1
- package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-BfYvvrxF.js} +1 -1
- package/dist/pie-7BOR55EZ-CkKpjIfF.mjs +5 -0
- package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-BlNrJLdh.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-TQppVIgS.mjs} +21 -21
- package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-CysN5Kyu.mjs} +230 -232
- package/dist/quadrantDiagram-AYHSOK5B-fy7-bMNk.js +7 -0
- package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-BjbmLxde.js} +1 -1
- package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-BlbyKqWL.mjs} +1 -1
- package/dist/requirementDiagram-UZGBJVZJ-CGgt75Rl.js +64 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-CfMcIbMc.mjs} +190 -192
- package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-aFz48-W2.mjs} +189 -189
- package/dist/sankeyDiagram-TZEHDZUN-q-r70ybp.js +10 -0
- package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-B9w1iL31.mjs} +222 -229
- package/dist/sequenceDiagram-WL72ISMW-nlFlEmNQ.js +145 -0
- package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-C9DXFs3P.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-e4SGJ8oh.mjs} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-FoEBCoPy.js} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-QUPk_c9P.mjs} +2 -2
- package/dist/timeline-definition-IT6M3QCI-BqUt3ka4.js +61 -0
- package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-Br9KrJcU.mjs} +217 -223
- package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-DTii969M.js} +1 -1
- package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-DVxjgEhu.mjs} +1 -1
- package/dist/xychartDiagram-PRI3JC2R-Bi02nVw4.js +7 -0
- package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BygtBGgX.mjs} +7 -7
- package/package.json +4 -4
- package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
- package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
- package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
- package/dist/channel-6dUO0MQi.js +0 -1
- package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
- package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
- package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
- package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
- package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
- package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
- package/dist/clone-B0UaPT2Z.js +0 -1
- package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
- package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
- package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
- package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
- package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
- package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
- package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
- package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
- package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
- package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
- package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
- package/dist/index-CkYZRBYn.js +0 -676
- package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
- package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
- package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
- package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
- package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
- package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
- package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
- package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
- package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
- package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
- package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
- package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-Br9KrJcU.mjs}
RENAMED
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import { _ as s, f as xt, l as E, h as
|
|
2
|
-
import { d as nt } from "./arc-
|
|
3
|
-
var
|
|
4
|
-
var n = /* @__PURE__ */ s(function(
|
|
5
|
-
for (a = a || {},
|
|
1
|
+
import { _ as s, f as xt, l as E, h as j, ah as kt, ai as vt, aj as _t, ak as bt, H as wt, al as St, D as Et } from "./index-yf1-93v5.mjs";
|
|
2
|
+
import { d as nt } from "./arc-CHlsWOEE.mjs";
|
|
3
|
+
var Q = (function() {
|
|
4
|
+
var n = /* @__PURE__ */ s(function(x, r, a, c) {
|
|
5
|
+
for (a = a || {}, c = x.length; c--; a[x[c]] = r) ;
|
|
6
6
|
return a;
|
|
7
|
-
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12],
|
|
7
|
+
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], h = [1, 13], f = [1, 16], m = [1, 17], p = {
|
|
8
8
|
trace: /* @__PURE__ */ s(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
11
11
|
symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
|
|
12
12
|
terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
|
|
13
13
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ s(function(r, a,
|
|
15
|
-
var
|
|
14
|
+
performAction: /* @__PURE__ */ s(function(r, a, c, u, y, o, w) {
|
|
15
|
+
var v = o.length - 1;
|
|
16
16
|
switch (y) {
|
|
17
17
|
case 1:
|
|
18
|
-
return o[
|
|
18
|
+
return o[v - 1];
|
|
19
19
|
case 2:
|
|
20
20
|
this.$ = [];
|
|
21
21
|
break;
|
|
22
22
|
case 3:
|
|
23
|
-
o[
|
|
23
|
+
o[v - 1].push(o[v]), this.$ = o[v - 1];
|
|
24
24
|
break;
|
|
25
25
|
case 4:
|
|
26
26
|
case 5:
|
|
27
|
-
this.$ = o[
|
|
27
|
+
this.$ = o[v];
|
|
28
28
|
break;
|
|
29
29
|
case 6:
|
|
30
30
|
case 7:
|
|
31
31
|
this.$ = [];
|
|
32
32
|
break;
|
|
33
33
|
case 8:
|
|
34
|
-
u.getCommonDb().setDiagramTitle(o[
|
|
34
|
+
u.getCommonDb().setDiagramTitle(o[v].substr(6)), this.$ = o[v].substr(6);
|
|
35
35
|
break;
|
|
36
36
|
case 9:
|
|
37
|
-
this.$ = o[
|
|
37
|
+
this.$ = o[v].trim(), u.getCommonDb().setAccTitle(this.$);
|
|
38
38
|
break;
|
|
39
39
|
case 10:
|
|
40
40
|
case 11:
|
|
41
|
-
this.$ = o[
|
|
41
|
+
this.$ = o[v].trim(), u.getCommonDb().setAccDescription(this.$);
|
|
42
42
|
break;
|
|
43
43
|
case 12:
|
|
44
|
-
u.addSection(o[
|
|
44
|
+
u.addSection(o[v].substr(8)), this.$ = o[v].substr(8);
|
|
45
45
|
break;
|
|
46
46
|
case 15:
|
|
47
|
-
u.addTask(o[
|
|
47
|
+
u.addTask(o[v], 0, ""), this.$ = o[v];
|
|
48
48
|
break;
|
|
49
49
|
case 16:
|
|
50
|
-
u.addEvent(o[
|
|
50
|
+
u.addEvent(o[v].substr(2)), this.$ = o[v];
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
}, "anonymous"),
|
|
54
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17:
|
|
54
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
|
|
55
55
|
defaultActions: {},
|
|
56
56
|
parseError: /* @__PURE__ */ s(function(r, a) {
|
|
57
57
|
if (a.recoverable)
|
|
58
58
|
this.trace(r);
|
|
59
59
|
else {
|
|
60
|
-
var
|
|
61
|
-
throw
|
|
60
|
+
var c = new Error(r);
|
|
61
|
+
throw c.hash = a, c;
|
|
62
62
|
}
|
|
63
63
|
}, "parseError"),
|
|
64
64
|
parse: /* @__PURE__ */ s(function(r) {
|
|
65
|
-
var a = this,
|
|
65
|
+
var a = this, c = [0], u = [], y = [null], o = [], w = this.table, v = "", N = 0, P = 0, V = 2, U = 1, H = o.slice.call(arguments, 1), g = Object.create(this.lexer), b = { yy: {} };
|
|
66
66
|
for (var L in this.yy)
|
|
67
|
-
Object.prototype.hasOwnProperty.call(this.yy, L) && (
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
o.push(
|
|
71
|
-
var
|
|
72
|
-
typeof
|
|
73
|
-
function
|
|
74
|
-
|
|
67
|
+
Object.prototype.hasOwnProperty.call(this.yy, L) && (b.yy[L] = this.yy[L]);
|
|
68
|
+
g.setInput(r, b.yy), b.yy.lexer = g, b.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
|
|
69
|
+
var M = g.yylloc;
|
|
70
|
+
o.push(M);
|
|
71
|
+
var W = g.options && g.options.ranges;
|
|
72
|
+
typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
73
|
+
function Z(T) {
|
|
74
|
+
c.length = c.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
|
|
75
75
|
}
|
|
76
|
-
s(
|
|
77
|
-
function
|
|
76
|
+
s(Z, "popStack");
|
|
77
|
+
function tt() {
|
|
78
78
|
var T;
|
|
79
|
-
return T = u.pop() ||
|
|
79
|
+
return T = u.pop() || g.lex() || U, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
|
|
80
80
|
}
|
|
81
|
-
s(
|
|
82
|
-
for (var
|
|
83
|
-
if (
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
for (
|
|
87
|
-
this.terminals_[
|
|
88
|
-
|
|
89
|
-
` +
|
|
90
|
-
Expecting ` +
|
|
91
|
-
text:
|
|
92
|
-
token: this.terminals_[
|
|
93
|
-
line:
|
|
94
|
-
loc:
|
|
95
|
-
expected:
|
|
81
|
+
s(tt, "lex");
|
|
82
|
+
for (var S, A, I, J, R = {}, B, $, et, O; ; ) {
|
|
83
|
+
if (A = c[c.length - 1], this.defaultActions[A] ? I = this.defaultActions[A] : ((S === null || typeof S > "u") && (S = tt()), I = w[A] && w[A][S]), typeof I > "u" || !I.length || !I[0]) {
|
|
84
|
+
var K = "";
|
|
85
|
+
O = [];
|
|
86
|
+
for (B in w[A])
|
|
87
|
+
this.terminals_[B] && B > V && O.push("'" + this.terminals_[B] + "'");
|
|
88
|
+
g.showPosition ? K = "Parse error on line " + (N + 1) + `:
|
|
89
|
+
` + g.showPosition() + `
|
|
90
|
+
Expecting ` + O.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : K = "Parse error on line " + (N + 1) + ": Unexpected " + (S == U ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(K, {
|
|
91
|
+
text: g.match,
|
|
92
|
+
token: this.terminals_[S] || S,
|
|
93
|
+
line: g.yylineno,
|
|
94
|
+
loc: M,
|
|
95
|
+
expected: O
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
if (I[0] instanceof Array && I.length > 1)
|
|
99
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
99
|
+
throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + S);
|
|
100
100
|
switch (I[0]) {
|
|
101
101
|
case 1:
|
|
102
|
-
|
|
102
|
+
c.push(S), y.push(g.yytext), o.push(g.yylloc), c.push(I[1]), S = null, P = g.yyleng, v = g.yytext, N = g.yylineno, M = g.yylloc;
|
|
103
103
|
break;
|
|
104
104
|
case 2:
|
|
105
|
-
if (
|
|
106
|
-
first_line: o[o.length - (
|
|
105
|
+
if ($ = this.productions_[I[1]][1], R.$ = y[y.length - $], R._$ = {
|
|
106
|
+
first_line: o[o.length - ($ || 1)].first_line,
|
|
107
107
|
last_line: o[o.length - 1].last_line,
|
|
108
|
-
first_column: o[o.length - (
|
|
108
|
+
first_column: o[o.length - ($ || 1)].first_column,
|
|
109
109
|
last_column: o[o.length - 1].last_column
|
|
110
|
-
},
|
|
111
|
-
o[o.length - (
|
|
110
|
+
}, W && (R._$.range = [
|
|
111
|
+
o[o.length - ($ || 1)].range[0],
|
|
112
112
|
o[o.length - 1].range[1]
|
|
113
|
-
]),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
]), J = this.performAction.apply(R, [
|
|
114
|
+
v,
|
|
115
|
+
P,
|
|
116
|
+
N,
|
|
117
|
+
b.yy,
|
|
118
118
|
I[1],
|
|
119
119
|
y,
|
|
120
120
|
o
|
|
121
|
-
].concat(
|
|
122
|
-
return
|
|
123
|
-
|
|
121
|
+
].concat(H)), typeof J < "u")
|
|
122
|
+
return J;
|
|
123
|
+
$ && (c = c.slice(0, -1 * $ * 2), y = y.slice(0, -1 * $), o = o.slice(0, -1 * $)), c.push(this.productions_[I[1]][0]), y.push(R.$), o.push(R._$), et = w[c[c.length - 2]][c[c.length - 1]], c.push(et);
|
|
124
124
|
break;
|
|
125
125
|
case 3:
|
|
126
126
|
return !0;
|
|
@@ -128,12 +128,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
128
128
|
}
|
|
129
129
|
return !0;
|
|
130
130
|
}, "parse")
|
|
131
|
-
},
|
|
132
|
-
var
|
|
131
|
+
}, k = /* @__PURE__ */ (function() {
|
|
132
|
+
var x = {
|
|
133
133
|
EOF: 1,
|
|
134
|
-
parseError: /* @__PURE__ */ s(function(a,
|
|
134
|
+
parseError: /* @__PURE__ */ s(function(a, c) {
|
|
135
135
|
if (this.yy.parser)
|
|
136
|
-
this.yy.parser.parseError(a,
|
|
136
|
+
this.yy.parser.parseError(a, c);
|
|
137
137
|
else
|
|
138
138
|
throw new Error(a);
|
|
139
139
|
}, "parseError"),
|
|
@@ -155,16 +155,16 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
155
155
|
}, "input"),
|
|
156
156
|
// unshifts one char (or a string) into the input
|
|
157
157
|
unput: /* @__PURE__ */ s(function(r) {
|
|
158
|
-
var a = r.length,
|
|
158
|
+
var a = r.length, c = r.split(/(?:\r\n?|\n)/g);
|
|
159
159
|
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
160
160
|
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
161
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
161
|
+
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);
|
|
162
162
|
var y = this.yylloc.range;
|
|
163
163
|
return this.yylloc = {
|
|
164
164
|
first_line: this.yylloc.first_line,
|
|
165
165
|
last_line: this.yylineno + 1,
|
|
166
166
|
first_column: this.yylloc.first_column,
|
|
167
|
-
last_column:
|
|
167
|
+
last_column: c ? (c.length === u.length ? this.yylloc.first_column : 0) + u[u.length - c.length].length - c[0].length : this.yylloc.first_column - a
|
|
168
168
|
}, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
169
169
|
}, "unput"),
|
|
170
170
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -206,7 +206,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
206
206
|
}, "showPosition"),
|
|
207
207
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
208
208
|
test_match: /* @__PURE__ */ s(function(r, a) {
|
|
209
|
-
var
|
|
209
|
+
var c, u, y;
|
|
210
210
|
if (this.options.backtrack_lexer && (y = {
|
|
211
211
|
yylineno: this.yylineno,
|
|
212
212
|
yylloc: {
|
|
@@ -231,8 +231,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
231
231
|
last_line: this.yylineno + 1,
|
|
232
232
|
first_column: this.yylloc.last_column,
|
|
233
233
|
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
234
|
-
}, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0],
|
|
235
|
-
return
|
|
234
|
+
}, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
|
|
235
|
+
return c;
|
|
236
236
|
if (this._backtrack) {
|
|
237
237
|
for (var o in y)
|
|
238
238
|
this[o] = y[o];
|
|
@@ -245,12 +245,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
245
245
|
if (this.done)
|
|
246
246
|
return this.EOF;
|
|
247
247
|
this._input || (this.done = !0);
|
|
248
|
-
var r, a,
|
|
248
|
+
var r, a, c, u;
|
|
249
249
|
this._more || (this.yytext = "", this.match = "");
|
|
250
250
|
for (var y = this._currentRules(), o = 0; o < y.length; o++)
|
|
251
|
-
if (
|
|
252
|
-
if (a =
|
|
253
|
-
if (r = this.test_match(
|
|
251
|
+
if (c = this._input.match(this.rules[y[o]]), c && (!a || c[0].length > a[0].length)) {
|
|
252
|
+
if (a = c, u = o, this.options.backtrack_lexer) {
|
|
253
|
+
if (r = this.test_match(c, y[o]), r !== !1)
|
|
254
254
|
return r;
|
|
255
255
|
if (this._backtrack) {
|
|
256
256
|
a = !1;
|
|
@@ -298,7 +298,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
298
298
|
return this.conditionStack.length;
|
|
299
299
|
}, "stateStackSize"),
|
|
300
300
|
options: { "case-insensitive": !0 },
|
|
301
|
-
performAction: /* @__PURE__ */ s(function(a,
|
|
301
|
+
performAction: /* @__PURE__ */ s(function(a, c, u, y) {
|
|
302
302
|
switch (u) {
|
|
303
303
|
case 0:
|
|
304
304
|
break;
|
|
@@ -345,16 +345,16 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
345
345
|
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
346
346
|
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
|
|
347
347
|
};
|
|
348
|
-
return
|
|
349
|
-
}();
|
|
350
|
-
p.lexer =
|
|
348
|
+
return x;
|
|
349
|
+
})();
|
|
350
|
+
p.lexer = k;
|
|
351
351
|
function _() {
|
|
352
352
|
this.yy = {};
|
|
353
353
|
}
|
|
354
354
|
return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
|
|
355
|
-
}();
|
|
356
|
-
|
|
357
|
-
var Tt =
|
|
355
|
+
})();
|
|
356
|
+
Q.parser = Q;
|
|
357
|
+
var Tt = Q, at = {};
|
|
358
358
|
wt(at, {
|
|
359
359
|
addEvent: () => yt,
|
|
360
360
|
addSection: () => ht,
|
|
@@ -366,47 +366,47 @@ wt(at, {
|
|
|
366
366
|
getSections: () => dt,
|
|
367
367
|
getTasks: () => ut
|
|
368
368
|
});
|
|
369
|
-
var
|
|
370
|
-
|
|
369
|
+
var F = "", lt = 0, X = [], G = [], z = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
|
|
370
|
+
X.length = 0, G.length = 0, F = "", z.length = 0, Et();
|
|
371
371
|
}, "clear"), ht = /* @__PURE__ */ s(function(n) {
|
|
372
|
-
|
|
372
|
+
F = n, X.push(n);
|
|
373
373
|
}, "addSection"), dt = /* @__PURE__ */ s(function() {
|
|
374
|
-
return
|
|
374
|
+
return X;
|
|
375
375
|
}, "getSections"), ut = /* @__PURE__ */ s(function() {
|
|
376
376
|
let n = it();
|
|
377
377
|
const t = 100;
|
|
378
378
|
let e = 0;
|
|
379
379
|
for (; !n && e < t; )
|
|
380
380
|
n = it(), e++;
|
|
381
|
-
return
|
|
381
|
+
return G.push(...z), G;
|
|
382
382
|
}, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
|
|
383
383
|
const l = {
|
|
384
384
|
id: lt++,
|
|
385
|
-
section:
|
|
386
|
-
type:
|
|
385
|
+
section: F,
|
|
386
|
+
type: F,
|
|
387
387
|
task: n,
|
|
388
388
|
score: t || 0,
|
|
389
389
|
//if event is defined, then add it the events array
|
|
390
390
|
events: e ? [e] : []
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
z.push(l);
|
|
393
393
|
}, "addTask"), yt = /* @__PURE__ */ s(function(n) {
|
|
394
|
-
|
|
394
|
+
z.find((e) => e.id === lt - 1).events.push(n);
|
|
395
395
|
}, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
|
|
396
396
|
const t = {
|
|
397
|
-
section:
|
|
398
|
-
type:
|
|
397
|
+
section: F,
|
|
398
|
+
type: F,
|
|
399
399
|
description: n,
|
|
400
400
|
task: n,
|
|
401
401
|
classes: []
|
|
402
402
|
};
|
|
403
|
-
|
|
403
|
+
G.push(t);
|
|
404
404
|
}, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
|
|
405
405
|
const n = /* @__PURE__ */ s(function(e) {
|
|
406
|
-
return
|
|
406
|
+
return z[e].processed;
|
|
407
407
|
}, "compileTask");
|
|
408
408
|
let t = !0;
|
|
409
|
-
for (const [e, l] of
|
|
409
|
+
for (const [e, l] of z.entries())
|
|
410
410
|
n(e), t = t && l.processed;
|
|
411
411
|
return t;
|
|
412
412
|
}, "compileTasks"), It = {
|
|
@@ -418,7 +418,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
418
418
|
addTask: pt,
|
|
419
419
|
addTaskOrg: gt,
|
|
420
420
|
addEvent: yt
|
|
421
|
-
}, Nt = 12,
|
|
421
|
+
}, Nt = 12, q = /* @__PURE__ */ s(function(n, t) {
|
|
422
422
|
const e = n.append("rect");
|
|
423
423
|
return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
|
|
424
424
|
}, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
|
|
@@ -429,15 +429,15 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
429
429
|
m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
430
430
|
}
|
|
431
431
|
s(d, "smile");
|
|
432
|
-
function
|
|
432
|
+
function h(m) {
|
|
433
433
|
const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
434
434
|
m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
435
435
|
}
|
|
436
|
-
s(
|
|
437
|
-
function
|
|
436
|
+
s(h, "sad");
|
|
437
|
+
function f(m) {
|
|
438
438
|
m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
439
439
|
}
|
|
440
|
-
return s(
|
|
440
|
+
return s(f, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? h(i) : f(i), l;
|
|
441
441
|
}, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
|
|
442
442
|
const e = n.append("circle");
|
|
443
443
|
return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
|
|
@@ -447,15 +447,15 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
447
447
|
const i = l.append("tspan");
|
|
448
448
|
return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
|
|
449
449
|
}, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
|
|
450
|
-
function e(i, d,
|
|
451
|
-
return i + "," + d + " " + (i +
|
|
450
|
+
function e(i, d, h, f, m) {
|
|
451
|
+
return i + "," + d + " " + (i + h) + "," + d + " " + (i + h) + "," + (d + f - m) + " " + (i + h - m * 1.2) + "," + (d + f) + " " + i + "," + (d + f);
|
|
452
452
|
}
|
|
453
453
|
s(e, "genPoints");
|
|
454
454
|
const l = n.append("polygon");
|
|
455
455
|
l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
|
|
456
456
|
}, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
|
|
457
|
-
const l = n.append("g"), i =
|
|
458
|
-
i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3,
|
|
457
|
+
const l = n.append("g"), i = Y();
|
|
458
|
+
i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, q(l, i), mt(e)(
|
|
459
459
|
t.text,
|
|
460
460
|
l,
|
|
461
461
|
i.x,
|
|
@@ -468,27 +468,25 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
468
468
|
);
|
|
469
469
|
}, "drawSection"), rt = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
|
|
470
470
|
const l = t.x + e.width / 2, i = n.append("g");
|
|
471
|
-
rt
|
|
472
|
-
const d = 300 + 5 * 30;
|
|
473
|
-
i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", d).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
|
|
471
|
+
rt++, i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
|
|
474
472
|
cx: l,
|
|
475
473
|
cy: 300 + (5 - t.score) * 30,
|
|
476
474
|
score: t.score
|
|
477
475
|
});
|
|
478
|
-
const
|
|
479
|
-
|
|
476
|
+
const h = Y();
|
|
477
|
+
h.x = t.x, h.y = t.y, h.fill = t.fill, h.width = e.width, h.height = e.height, h.class = "task task-type-" + t.num, h.rx = 3, h.ry = 3, q(i, h), mt(e)(
|
|
480
478
|
t.task,
|
|
481
479
|
i,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
480
|
+
h.x,
|
|
481
|
+
h.y,
|
|
482
|
+
h.width,
|
|
483
|
+
h.height,
|
|
486
484
|
{ class: "task" },
|
|
487
485
|
e,
|
|
488
486
|
t.colour
|
|
489
487
|
);
|
|
490
488
|
}, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
|
|
491
|
-
|
|
489
|
+
q(n, {
|
|
492
490
|
x: t.startx,
|
|
493
491
|
y: t.starty,
|
|
494
492
|
width: t.stopx - t.startx,
|
|
@@ -508,7 +506,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
508
506
|
rx: 0,
|
|
509
507
|
ry: 0
|
|
510
508
|
};
|
|
511
|
-
}, "getTextObj"),
|
|
509
|
+
}, "getTextObj"), Y = /* @__PURE__ */ s(function() {
|
|
512
510
|
return {
|
|
513
511
|
x: 0,
|
|
514
512
|
y: 0,
|
|
@@ -518,63 +516,61 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
518
516
|
rx: 0,
|
|
519
517
|
ry: 0
|
|
520
518
|
};
|
|
521
|
-
}, "getNoteRect"), mt = /* @__PURE__ */ function() {
|
|
522
|
-
function n(i, d,
|
|
523
|
-
const
|
|
524
|
-
l(
|
|
519
|
+
}, "getNoteRect"), mt = /* @__PURE__ */ (function() {
|
|
520
|
+
function n(i, d, h, f, m, p, k, _) {
|
|
521
|
+
const x = d.append("text").attr("x", h + m / 2).attr("y", f + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
|
|
522
|
+
l(x, k);
|
|
525
523
|
}
|
|
526
524
|
s(n, "byText");
|
|
527
|
-
function t(i, d,
|
|
528
|
-
const { taskFontSize: r, taskFontFamily: a } = _,
|
|
529
|
-
for (let u = 0; u <
|
|
530
|
-
const y = u * r - r * (
|
|
531
|
-
o.append("tspan").attr("x",
|
|
525
|
+
function t(i, d, h, f, m, p, k, _, x) {
|
|
526
|
+
const { taskFontSize: r, taskFontFamily: a } = _, c = i.split(/<br\s*\/?>/gi);
|
|
527
|
+
for (let u = 0; u < c.length; u++) {
|
|
528
|
+
const y = u * r - r * (c.length - 1) / 2, o = d.append("text").attr("x", h + m / 2).attr("y", f).attr("fill", x).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
|
|
529
|
+
o.append("tspan").attr("x", h + m / 2).attr("dy", y).text(c[u]), o.attr("y", f + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, k);
|
|
532
530
|
}
|
|
533
531
|
}
|
|
534
532
|
s(t, "byTspan");
|
|
535
|
-
function e(i, d,
|
|
536
|
-
const
|
|
537
|
-
a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i,
|
|
533
|
+
function e(i, d, h, f, m, p, k, _) {
|
|
534
|
+
const x = d.append("switch"), a = x.append("foreignObject").attr("x", h).attr("y", f).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
535
|
+
a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, x, h, f, m, p, k, _), l(a, k);
|
|
538
536
|
}
|
|
539
537
|
s(e, "byFo");
|
|
540
538
|
function l(i, d) {
|
|
541
|
-
for (const
|
|
542
|
-
|
|
539
|
+
for (const h in d)
|
|
540
|
+
h in d && i.attr(h, d[h]);
|
|
543
541
|
}
|
|
544
542
|
return s(l, "_setTextAttrs"), function(i) {
|
|
545
543
|
return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
|
|
546
544
|
};
|
|
547
|
-
}(), Rt = /* @__PURE__ */ s(function(n) {
|
|
545
|
+
})(), Rt = /* @__PURE__ */ s(function(n) {
|
|
548
546
|
n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
549
547
|
}, "initGraphics");
|
|
550
|
-
function
|
|
548
|
+
function D(n, t) {
|
|
551
549
|
n.each(function() {
|
|
552
|
-
var e =
|
|
553
|
-
for (let
|
|
554
|
-
i = l[l.length - 1 -
|
|
550
|
+
var e = j(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], h = 1.1, f = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", f).attr("dy", m + "em");
|
|
551
|
+
for (let k = 0; k < l.length; k++)
|
|
552
|
+
i = l[l.length - 1 - k], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", f).attr("dy", h + "em").text(i));
|
|
555
553
|
});
|
|
556
554
|
}
|
|
557
|
-
s(
|
|
555
|
+
s(D, "wrap");
|
|
558
556
|
var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
559
|
-
var _;
|
|
560
557
|
const i = e % Nt - 1, d = n.append("g");
|
|
561
558
|
t.section = i, d.attr(
|
|
562
559
|
"class",
|
|
563
560
|
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
|
|
564
561
|
);
|
|
565
|
-
const
|
|
566
|
-
return t.height = p.height +
|
|
562
|
+
const h = d.append("g"), f = d.append("g"), p = f.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), k = l.fontSize?.replace ? l.fontSize.replace("px", "") : l.fontSize;
|
|
563
|
+
return t.height = p.height + k * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, f.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(h, t, i, l), t;
|
|
567
564
|
}, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
|
|
565
|
+
const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), h = e.fontSize?.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
566
|
+
return l.remove(), d.height + h * 1.1 * 0.5 + t.padding;
|
|
571
567
|
}, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
|
|
572
568
|
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
|
|
573
569
|
"d",
|
|
574
|
-
`M0 ${t.height - 5} v${-t.height +
|
|
570
|
+
`M0 ${t.height - 5} v${-t.height + 10} q0,-5 5,-5 h${t.width - 10} q5,0 5,5 v${t.height - 5} H0 Z`
|
|
575
571
|
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
576
|
-
}, "defaultBkg"),
|
|
577
|
-
drawRect:
|
|
572
|
+
}, "defaultBkg"), C = {
|
|
573
|
+
drawRect: q,
|
|
578
574
|
drawCircle: Mt,
|
|
579
575
|
drawSection: Ht,
|
|
580
576
|
drawText: ft,
|
|
@@ -582,131 +578,129 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
582
578
|
drawTask: Pt,
|
|
583
579
|
drawBackgroundRect: At,
|
|
584
580
|
getTextObj: Ct,
|
|
585
|
-
getNoteRect:
|
|
581
|
+
getNoteRect: Y,
|
|
586
582
|
initGraphics: Rt,
|
|
587
583
|
drawNode: Ft,
|
|
588
584
|
getVirtualNodeHeight: zt
|
|
589
585
|
}, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
590
|
-
|
|
591
|
-
const i = xt(), d = ((O = i.timeline) == null ? void 0 : O.leftMargin) ?? 50;
|
|
586
|
+
const i = xt(), d = i.timeline?.leftMargin ?? 50;
|
|
592
587
|
E.debug("timeline", l.db);
|
|
593
|
-
const
|
|
594
|
-
let
|
|
595
|
-
|
|
596
|
-
const p = (
|
|
588
|
+
const h = i.securityLevel;
|
|
589
|
+
let f;
|
|
590
|
+
h === "sandbox" && (f = j("#i" + t));
|
|
591
|
+
const p = (h === "sandbox" ? j(f.nodes()[0].contentDocument.body) : j("body")).select("#" + t);
|
|
597
592
|
p.append("g");
|
|
598
|
-
const
|
|
599
|
-
E.debug("task",
|
|
600
|
-
const
|
|
601
|
-
E.debug("sections",
|
|
602
|
-
let r = 0, a = 0,
|
|
593
|
+
const k = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
|
|
594
|
+
E.debug("task", k), C.initGraphics(p);
|
|
595
|
+
const x = l.db.getSections();
|
|
596
|
+
E.debug("sections", x);
|
|
597
|
+
let r = 0, a = 0, c = 0, u = 0, y = 50 + d, o = 50;
|
|
603
598
|
u = 50;
|
|
604
|
-
let
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
number:
|
|
608
|
-
descr:
|
|
609
|
-
section:
|
|
599
|
+
let w = 0, v = !0;
|
|
600
|
+
x.forEach(function(H) {
|
|
601
|
+
const g = {
|
|
602
|
+
number: w,
|
|
603
|
+
descr: H,
|
|
604
|
+
section: w,
|
|
610
605
|
width: 150,
|
|
611
606
|
padding: 20,
|
|
612
607
|
maxHeight: r
|
|
613
|
-
},
|
|
614
|
-
E.debug("sectionHeight before draw",
|
|
608
|
+
}, b = C.getVirtualNodeHeight(p, g, i);
|
|
609
|
+
E.debug("sectionHeight before draw", b), r = Math.max(r, b + 20);
|
|
615
610
|
});
|
|
616
|
-
let
|
|
617
|
-
E.debug("tasks.length",
|
|
618
|
-
for (const [
|
|
619
|
-
const
|
|
620
|
-
number:
|
|
621
|
-
descr:
|
|
622
|
-
section:
|
|
611
|
+
let N = 0, P = 0;
|
|
612
|
+
E.debug("tasks.length", k.length);
|
|
613
|
+
for (const [H, g] of k.entries()) {
|
|
614
|
+
const b = {
|
|
615
|
+
number: H,
|
|
616
|
+
descr: g,
|
|
617
|
+
section: g.section,
|
|
623
618
|
width: 150,
|
|
624
619
|
padding: 20,
|
|
625
620
|
maxHeight: a
|
|
626
|
-
},
|
|
627
|
-
E.debug("taskHeight before draw",
|
|
628
|
-
let
|
|
629
|
-
for (const
|
|
630
|
-
const
|
|
631
|
-
descr:
|
|
632
|
-
section:
|
|
633
|
-
number:
|
|
621
|
+
}, L = C.getVirtualNodeHeight(p, b, i);
|
|
622
|
+
E.debug("taskHeight before draw", L), a = Math.max(a, L + 20), N = Math.max(N, g.events.length);
|
|
623
|
+
let M = 0;
|
|
624
|
+
for (const W of g.events) {
|
|
625
|
+
const Z = {
|
|
626
|
+
descr: W,
|
|
627
|
+
section: g.section,
|
|
628
|
+
number: g.section,
|
|
634
629
|
width: 150,
|
|
635
630
|
padding: 20,
|
|
636
631
|
maxHeight: 50
|
|
637
632
|
};
|
|
638
|
-
|
|
633
|
+
M += C.getVirtualNodeHeight(p, Z, i);
|
|
639
634
|
}
|
|
640
|
-
|
|
635
|
+
g.events.length > 0 && (M += (g.events.length - 1) * 10), P = Math.max(P, M);
|
|
641
636
|
}
|
|
642
|
-
E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a),
|
|
643
|
-
const
|
|
644
|
-
number:
|
|
645
|
-
descr:
|
|
646
|
-
section:
|
|
647
|
-
width: 200 * Math.max(
|
|
637
|
+
E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), x && x.length > 0 ? x.forEach((H) => {
|
|
638
|
+
const g = k.filter((W) => W.section === H), b = {
|
|
639
|
+
number: w,
|
|
640
|
+
descr: H,
|
|
641
|
+
section: w,
|
|
642
|
+
width: 200 * Math.max(g.length, 1) - 50,
|
|
648
643
|
padding: 20,
|
|
649
644
|
maxHeight: r
|
|
650
645
|
};
|
|
651
|
-
E.debug("sectionNode",
|
|
652
|
-
const
|
|
653
|
-
E.debug("sectionNode output",
|
|
646
|
+
E.debug("sectionNode", b);
|
|
647
|
+
const L = p.append("g"), M = C.drawNode(L, b, w, i);
|
|
648
|
+
E.debug("sectionNode output", M), L.attr("transform", `translate(${y}, ${u})`), o += r + 50, g.length > 0 && st(
|
|
654
649
|
p,
|
|
655
|
-
|
|
656
|
-
|
|
650
|
+
g,
|
|
651
|
+
w,
|
|
657
652
|
y,
|
|
658
653
|
o,
|
|
659
654
|
a,
|
|
660
655
|
i,
|
|
661
|
-
|
|
662
|
-
|
|
656
|
+
N,
|
|
657
|
+
P,
|
|
663
658
|
r,
|
|
664
659
|
!1
|
|
665
|
-
), y += 200 * Math.max(
|
|
666
|
-
}) : (
|
|
660
|
+
), y += 200 * Math.max(g.length, 1), o = u, w++;
|
|
661
|
+
}) : (v = !1, st(
|
|
667
662
|
p,
|
|
668
|
-
|
|
669
|
-
|
|
663
|
+
k,
|
|
664
|
+
w,
|
|
670
665
|
y,
|
|
671
666
|
o,
|
|
672
667
|
a,
|
|
673
668
|
i,
|
|
674
|
-
|
|
675
|
-
|
|
669
|
+
N,
|
|
670
|
+
P,
|
|
676
671
|
r,
|
|
677
672
|
!0
|
|
678
673
|
));
|
|
679
|
-
const
|
|
680
|
-
E.debug("bounds",
|
|
674
|
+
const V = p.node().getBBox();
|
|
675
|
+
E.debug("bounds", V), _ && p.append("text").text(_).attr("x", V.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = v ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", c).attr("x2", V.width + 3 * d).attr("y2", c).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
|
|
681
676
|
void 0,
|
|
682
677
|
p,
|
|
683
|
-
|
|
684
|
-
|
|
678
|
+
i.timeline?.padding ?? 50,
|
|
679
|
+
i.timeline?.useMaxWidth ?? !1
|
|
685
680
|
);
|
|
686
|
-
}, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d,
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
descr: f.task,
|
|
681
|
+
}, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, h, f, m, p, k) {
|
|
682
|
+
for (const _ of t) {
|
|
683
|
+
const x = {
|
|
684
|
+
descr: _.task,
|
|
691
685
|
section: e,
|
|
692
686
|
number: e,
|
|
693
687
|
width: 150,
|
|
694
688
|
padding: 20,
|
|
695
689
|
maxHeight: d
|
|
696
690
|
};
|
|
697
|
-
E.debug("taskNode",
|
|
698
|
-
const
|
|
699
|
-
if (E.debug("taskHeight after draw",
|
|
700
|
-
const
|
|
701
|
-
let
|
|
702
|
-
i += 100,
|
|
691
|
+
E.debug("taskNode", x);
|
|
692
|
+
const r = n.append("g").attr("class", "taskWrapper"), c = C.drawNode(r, x, e, h).height;
|
|
693
|
+
if (E.debug("taskHeight after draw", c), r.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, c), _.events) {
|
|
694
|
+
const u = n.append("g").attr("class", "lineWrapper");
|
|
695
|
+
let y = d;
|
|
696
|
+
i += 100, y = y + Bt(n, _.events, e, l, i, h), i -= 100, u.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
703
697
|
}
|
|
704
|
-
l = l + 200,
|
|
698
|
+
l = l + 200, k && !h.timeline?.disableMulticolor && e++;
|
|
705
699
|
}
|
|
706
700
|
i = i - 10;
|
|
707
701
|
}, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, i, d) {
|
|
708
|
-
let
|
|
709
|
-
const
|
|
702
|
+
let h = 0;
|
|
703
|
+
const f = i;
|
|
710
704
|
i = i + 100;
|
|
711
705
|
for (const m of t) {
|
|
712
706
|
const p = {
|
|
@@ -718,10 +712,10 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
718
712
|
maxHeight: 50
|
|
719
713
|
};
|
|
720
714
|
E.debug("eventNode", p);
|
|
721
|
-
const
|
|
722
|
-
|
|
715
|
+
const k = n.append("g").attr("class", "eventWrapper"), x = C.drawNode(k, p, e, d).height;
|
|
716
|
+
h = h + x, k.attr("transform", `translate(${l}, ${i})`), i = i + 10 + x;
|
|
723
717
|
}
|
|
724
|
-
return i =
|
|
718
|
+
return i = f, h;
|
|
725
719
|
}, "drawEvents"), Ot = {
|
|
726
720
|
setConf: /* @__PURE__ */ s(() => {
|
|
727
721
|
}, "setConf"),
|