@marimo-team/islands 0.13.16-dev3 → 0.13.16-dev5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DaX7qzkh.js → ConnectedDataExplorerComponent-DJ_5A9Jv.js} +1495 -1496
  2. package/dist/{VegaLite-DqttTZoC.js → VegaLite-BIF3TJ1l.js} +12483 -12485
  3. package/dist/{_baseUniq-C7BPwQHe.js → _baseUniq-CpsCwtZj.js} +13 -13
  4. package/dist/{any-language-editor-DUew9Rp9.js → any-language-editor-4KxmO39C.js} +2 -2
  5. package/dist/{architectureDiagram-IEHRJDOE-a3lDrXQx.js → architectureDiagram-IEHRJDOE-DX0ceJYG.js} +1800 -1800
  6. package/dist/asn1-jKiBa2Ya.js +10 -10
  7. package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
  8. package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
  9. package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
  10. package/dist/blockDiagram-JOT3LUYC-BS_FxZ0q.js +2249 -0
  11. package/dist/{c4Diagram-VJAJSXHY-iO9Wy6JM.js → c4Diagram-VJAJSXHY-B-UF7GzG.js} +401 -400
  12. package/dist/{channel-DcjC1CFM.js → channel-BPCXF0Uj.js} +1 -1
  13. package/dist/chunk-4BMEZGHF-DJOdatJ0.js +9 -0
  14. package/dist/chunk-A2AXSNBT-D9hxcFjS.js +1373 -0
  15. package/dist/chunk-AEK57VVT-BLFZVxwJ.js +1416 -0
  16. package/dist/{chunk-D6G4REZN-Dlv_YHcf.js → chunk-D6G4REZN-CICr2kpO.js} +2 -2
  17. package/dist/{chunk-RZ5BOZE2-D8w7Mlj9.js → chunk-RZ5BOZE2-DItbbReI.js} +8 -8
  18. package/dist/chunk-XZIHB7SX-TOPO0Fuc.js +16 -0
  19. package/dist/{classDiagram-GIVACNV2-B9RHXsFh.js → classDiagram-GIVACNV2-7MVpfZSz.js} +2 -2
  20. package/dist/{classDiagram-v2-COTLJTTW-B9RHXsFh.js → classDiagram-v2-COTLJTTW-7MVpfZSz.js} +2 -2
  21. package/dist/clojure-CCKyeQKf.js +2 -2
  22. package/dist/{clone-D3N_odGc.js → clone-DBH40z6e.js} +1 -1
  23. package/dist/css-bIlmDBTK.js +19 -19
  24. package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
  25. package/dist/dagre-OKDRZEBW-rdJpJuUR.js +447 -0
  26. package/dist/{data-editor-DYnEMVel.js → data-editor-C6WuNzbJ.js} +5785 -5795
  27. package/dist/{diagram-SSKATNLV-B7sCpaam.js → diagram-SSKATNLV-gmsovYbf.js} +13 -13
  28. package/dist/{diagram-VNBRO52H-D5XB9Rqn.js → diagram-VNBRO52H-BFlwgyKt.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-Bc4bVsl5.js → erDiagram-Q7BY3M3F-B6eG3pRD.js} +263 -262
  30. package/dist/flowDiagram-4HSFHLVR-Dg1wLRaw.js +1623 -0
  31. package/dist/{ganttDiagram-APWFNJXF-DX7O4yzu.js → ganttDiagram-APWFNJXF-DldqqVyx.js} +45 -45
  32. package/dist/gitGraphDiagram-7IBYFJ6S-Aim5p7Qf.js +712 -0
  33. package/dist/{graph-3qoxqlMi.js → graph-BHINt7Kf.js} +9 -9
  34. package/dist/{index-DMwlOrYW.js → index-A7tDI8LX.js} +9 -9
  35. package/dist/{index-DarPCnb9.js → index-BsCms8nF.js} +28 -28
  36. package/dist/{index-ClcExt8M.js → index-C1ncc3VE.js} +99 -98
  37. package/dist/{index-DSv7cBZ6.js → index-D0gh4lwc.js} +4 -4
  38. package/dist/{infoDiagram-PH2N3AL5-Hpz-dZTP.js → infoDiagram-PH2N3AL5-1m_6u4Y7.js} +3 -3
  39. package/dist/javascript-WMWNx-Vj.js +47 -47
  40. package/dist/{journeyDiagram-U35MCT3I-D8lBbVPX.js → journeyDiagram-U35MCT3I-CDL6jqeI.js} +18 -18
  41. package/dist/kanban-definition-NDS4AKOZ-RImoTsfS.js +719 -0
  42. package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
  43. package/dist/{layout-BQ5ygFMS.js → layout-J5I1wvdv.js} +27 -27
  44. package/dist/{linear-DEKTCzK7.js → linear-Dq58HS87.js} +2 -2
  45. package/dist/main-uEwF8nEn.js +169878 -0
  46. package/dist/main.js +1 -1
  47. package/dist/mermaid-DmrTKCuO.js +14517 -0
  48. package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
  49. package/dist/{min-BVLo0atX.js → min-BHctwg9m.js} +2 -2
  50. package/dist/{mindmap-definition-ALO5MXBD-CJrYaVvo.js → mindmap-definition-ALO5MXBD-B28ZjQu_.js} +359 -359
  51. package/dist/mllike-BSnXJBGA.js +7 -7
  52. package/dist/{pieDiagram-IB7DONF6-Dctceo_p.js → pieDiagram-IB7DONF6-CcxQe-PK.js} +34 -34
  53. package/dist/pug-BqUR2bBq.js +35 -35
  54. package/dist/python-B5QdSKoL.js +18 -18
  55. package/dist/quadrantDiagram-7GDLP6J5-BmMQ4ybr.js +1025 -0
  56. package/dist/{radar-MK3ICKWK-C1HW1I3s.js → radar-MK3ICKWK-B2DbWDNQ.js} +2555 -2554
  57. package/dist/{react-plotly-Cb9GFlJK.js → react-plotly-CcEhICmT.js} +6595 -6597
  58. package/dist/{requirementDiagram-KVF5MWMF-B1hXsRKm.js → requirementDiagram-KVF5MWMF-C4IlZoRQ.js} +251 -250
  59. package/dist/rpm-IznJm2Xc.js +9 -9
  60. package/dist/{sankeyDiagram-QLVOVGJD-C4Wft0rG.js → sankeyDiagram-QLVOVGJD-CBnLihZQ.js} +339 -338
  61. package/dist/{sequenceDiagram-X6HHIX6F-DuI3MtaO.js → sequenceDiagram-X6HHIX6F-CWgBOzA1.js} +822 -821
  62. package/dist/{slides-component-CtHXOtAT.js → slides-component-DWhXV4tT.js} +280 -280
  63. package/dist/sql-mMre1Bo3.js +9 -9
  64. package/dist/{stateDiagram-DGXRK772-BA90keZx.js → stateDiagram-DGXRK772-BLnrEsRS.js} +17 -17
  65. package/dist/{stateDiagram-v2-YXO3MK2T-BAYgRopg.js → stateDiagram-v2-YXO3MK2T-CyEclGku.js} +2 -2
  66. package/dist/style.css +1 -1
  67. package/dist/{time-CSFHw3Jv.js → time-C9O7-c-W.js} +2 -2
  68. package/dist/{timeline-definition-BDJGKUSR-Blc0sOvC.js → timeline-definition-BDJGKUSR-Dr8Ki3tj.js} +261 -261
  69. package/dist/timer-BYwnU4DF.js +378 -378
  70. package/dist/ttcn-cfg-Bac_acMi.js +9 -9
  71. package/dist/{vega-component-BhqCtGzK.js → vega-component-BiVYrHRN.js} +82 -82
  72. package/dist/{xychartDiagram-VJFVF3MP-zwhLbXXB.js → xychartDiagram-VJFVF3MP-CwfDeBLj.js} +472 -471
  73. package/package.json +1 -1
  74. package/dist/blockDiagram-JOT3LUYC-CKFyxt0d.js +0 -2248
  75. package/dist/chunk-4BMEZGHF-lIaJqjDq.js +0 -9
  76. package/dist/chunk-A2AXSNBT-Cvv8kb-T.js +0 -1372
  77. package/dist/chunk-AEK57VVT-B-uzYNYV.js +0 -1415
  78. package/dist/chunk-XZIHB7SX-eF6XymTt.js +0 -15
  79. package/dist/dagre-OKDRZEBW-9GOkw9EI.js +0 -447
  80. package/dist/flowDiagram-4HSFHLVR-O0PMfC8B.js +0 -1622
  81. package/dist/gitGraphDiagram-7IBYFJ6S-Bq1HYszu.js +0 -712
  82. package/dist/kanban-definition-NDS4AKOZ-BjHkwf3p.js +0 -719
  83. package/dist/main-CtGDFKVm.js +0 -156521
  84. package/dist/mermaid-dkwEEzHU.js +0 -11991
  85. package/dist/quadrantDiagram-7GDLP6J5-BCGXIJXJ.js +0 -1024
@@ -1,145 +1,145 @@
1
- import { _ as s, c as xt, l as T, d as q, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-dkwEEzHU.js";
1
+ import { _ as s, c as xt, l as E, d as j, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-DmrTKCuO.js";
2
2
  import { d as nt } from "./arc-BXrety1g.js";
3
- var X = function() {
4
- var n = /* @__PURE__ */ s(function(f, i, a, d) {
5
- for (a = a || {}, d = f.length; d--; a[f[d]] = i) ;
3
+ var Q = function() {
4
+ var n = /* @__PURE__ */ s(function(x, i, a, c) {
5
+ for (a = a || {}, c = x.length; c--; a[x[c]] = i) ;
6
6
  return a;
7
- }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], h = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
7
+ }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], d = [1, 12], h = [1, 13], f = [1, 16], m = [1, 17], u = {
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(i, a, d, u, y, o, S) {
15
- var k = o.length - 1;
14
+ performAction: /* @__PURE__ */ s(function(i, a, c, p, y, o, w) {
15
+ var v = o.length - 1;
16
16
  switch (y) {
17
17
  case 1:
18
- return o[k - 1];
18
+ return o[v - 1];
19
19
  case 2:
20
20
  this.$ = [];
21
21
  break;
22
22
  case 3:
23
- o[k - 1].push(o[k]), this.$ = o[k - 1];
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[k];
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[k].substr(6)), this.$ = o[k].substr(6);
34
+ p.getCommonDb().setDiagramTitle(o[v].substr(6)), this.$ = o[v].substr(6);
35
35
  break;
36
36
  case 9:
37
- this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
37
+ this.$ = o[v].trim(), p.getCommonDb().setAccTitle(this.$);
38
38
  break;
39
39
  case 10:
40
40
  case 11:
41
- this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
41
+ this.$ = o[v].trim(), p.getCommonDb().setAccDescription(this.$);
42
42
  break;
43
43
  case 12:
44
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
44
+ p.addSection(o[v].substr(8)), this.$ = o[v].substr(8);
45
45
  break;
46
46
  case 15:
47
- u.addTask(o[k], 0, ""), this.$ = o[k];
47
+ p.addTask(o[v], 0, ""), this.$ = o[v];
48
48
  break;
49
49
  case 16:
50
- u.addEvent(o[k].substr(2)), this.$ = o[k];
50
+ p.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: r, 16: h, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: r, 16: h, 17: c, 18: 14, 19: 15, 20: g, 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])],
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: r, 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: r, 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(i, a) {
57
57
  if (a.recoverable)
58
58
  this.trace(i);
59
59
  else {
60
- var d = new Error(i);
61
- throw d.hash = a, d;
60
+ var c = new Error(i);
61
+ throw c.hash = a, c;
62
62
  }
63
63
  }, "parseError"),
64
64
  parse: /* @__PURE__ */ s(function(i) {
65
- var a = this, d = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, P = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), E = { yy: {} };
66
- for (var b in this.yy)
67
- Object.prototype.hasOwnProperty.call(this.yy, b) && (E.yy[b] = this.yy[b]);
68
- v.setInput(i, E.yy), E.yy.lexer = v, E.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
69
- var L = v.yylloc;
70
- o.push(L);
71
- var A = v.options && v.options.ranges;
72
- typeof E.yy.parseError == "function" ? this.parseError = E.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
- function R(I) {
74
- d.length = d.length - 2 * I, y.length = y.length - I, o.length = o.length - I;
65
+ var a = this, c = [0], p = [], y = [null], o = [], w = this.table, v = "", N = 0, A = 0, V = 2, U = 1, $ = o.slice.call(arguments, 1), g = Object.create(this.lexer), b = { yy: {} };
66
+ for (var L in this.yy)
67
+ Object.prototype.hasOwnProperty.call(this.yy, L) && (b.yy[L] = this.yy[L]);
68
+ g.setInput(i, b.yy), b.yy.lexer = g, b.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
69
+ var P = g.yylloc;
70
+ o.push(P);
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(R, "popStack");
77
- function z() {
78
- var I;
79
- return I = u.pop() || v.lex() || J, typeof I != "number" && (I instanceof Array && (u = I, I = u.pop()), I = a.symbols_[I] || I), I;
76
+ s(Z, "popStack");
77
+ function tt() {
78
+ var T;
79
+ return T = p.pop() || g.lex() || U, typeof T != "number" && (T instanceof Array && (p = T, T = p.pop()), T = a.symbols_[T] || T), T;
80
80
  }
81
- s(z, "lex");
82
- for (var w, C, N, K, F = {}, j, $, et, G; ; ) {
83
- if (C = d[d.length - 1], this.defaultActions[C] ? N = this.defaultActions[C] : ((w === null || typeof w > "u") && (w = z()), N = S[C] && S[C][w]), typeof N > "u" || !N.length || !N[0]) {
84
- var Q = "";
85
- G = [];
86
- for (j in S[C])
87
- this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
88
- v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
89
- ` + v.showPosition() + `
90
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
91
- text: v.match,
92
- token: this.terminals_[w] || w,
93
- line: v.yylineno,
94
- loc: L,
95
- expected: G
81
+ s(tt, "lex");
82
+ for (var S, C, I, J, R = {}, B, M, et, O; ; ) {
83
+ if (C = c[c.length - 1], this.defaultActions[C] ? I = this.defaultActions[C] : ((S === null || typeof S > "u") && (S = tt()), I = w[C] && w[C][S]), typeof I > "u" || !I.length || !I[0]) {
84
+ var K = "";
85
+ O = [];
86
+ for (B in w[C])
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: P,
95
+ expected: O
96
96
  });
97
97
  }
98
- if (N[0] instanceof Array && N.length > 1)
99
- throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + w);
100
- switch (N[0]) {
98
+ if (I[0] instanceof Array && I.length > 1)
99
+ throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + S);
100
+ switch (I[0]) {
101
101
  case 1:
102
- d.push(w), y.push(v.yytext), o.push(v.yylloc), d.push(N[1]), w = null, P = v.yyleng, k = v.yytext, M = v.yylineno, L = v.yylloc;
102
+ c.push(S), y.push(g.yytext), o.push(g.yylloc), c.push(I[1]), S = null, A = g.yyleng, v = g.yytext, N = g.yylineno, P = g.yylloc;
103
103
  break;
104
104
  case 2:
105
- if ($ = this.productions_[N[1]][1], F.$ = y[y.length - $], F._$ = {
106
- first_line: o[o.length - ($ || 1)].first_line,
105
+ if (M = this.productions_[I[1]][1], R.$ = y[y.length - M], R._$ = {
106
+ first_line: o[o.length - (M || 1)].first_line,
107
107
  last_line: o[o.length - 1].last_line,
108
- first_column: o[o.length - ($ || 1)].first_column,
108
+ first_column: o[o.length - (M || 1)].first_column,
109
109
  last_column: o[o.length - 1].last_column
110
- }, A && (F._$.range = [
111
- o[o.length - ($ || 1)].range[0],
110
+ }, W && (R._$.range = [
111
+ o[o.length - (M || 1)].range[0],
112
112
  o[o.length - 1].range[1]
113
- ]), K = this.performAction.apply(F, [
114
- k,
115
- P,
116
- M,
117
- E.yy,
118
- N[1],
113
+ ]), J = this.performAction.apply(R, [
114
+ v,
115
+ A,
116
+ N,
117
+ b.yy,
118
+ I[1],
119
119
  y,
120
120
  o
121
- ].concat(O)), typeof K < "u")
122
- return K;
123
- $ && (d = d.slice(0, -1 * $ * 2), y = y.slice(0, -1 * $), o = o.slice(0, -1 * $)), d.push(this.productions_[N[1]][0]), y.push(F.$), o.push(F._$), et = S[d[d.length - 2]][d[d.length - 1]], d.push(et);
121
+ ].concat($)), typeof J < "u")
122
+ return J;
123
+ M && (c = c.slice(0, -1 * M * 2), y = y.slice(0, -1 * M), o = o.slice(0, -1 * M)), 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
- return !0;
126
+ return true;
127
127
  }
128
128
  }
129
- return !0;
129
+ return true;
130
130
  }, "parse")
131
- }, x = /* @__PURE__ */ function() {
132
- var f = {
131
+ }, k = /* @__PURE__ */ function() {
132
+ var x = {
133
133
  EOF: 1,
134
- parseError: /* @__PURE__ */ s(function(a, d) {
134
+ parseError: /* @__PURE__ */ s(function(a, c) {
135
135
  if (this.yy.parser)
136
- this.yy.parser.parseError(a, d);
136
+ this.yy.parser.parseError(a, c);
137
137
  else
138
138
  throw new Error(a);
139
139
  }, "parseError"),
140
140
  // resets the lexer, sets new input
141
141
  setInput: /* @__PURE__ */ s(function(i, a) {
142
- return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
142
+ 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 = {
143
143
  first_line: 1,
144
144
  first_column: 0,
145
145
  last_line: 1,
@@ -155,26 +155,26 @@ 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(i) {
158
- var a = i.length, d = i.split(/(?:\r\n?|\n)/g);
158
+ var a = i.length, c = i.split(/(?:\r\n?|\n)/g);
159
159
  this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
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), d.length - 1 && (this.yylineno -= d.length - 1);
160
+ var p = 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), 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: d ? (d.length === u.length ? this.yylloc.first_column : 0) + u[u.length - d.length].length - d[0].length : this.yylloc.first_column - a
167
+ last_column: c ? (c.length === p.length ? this.yylloc.first_column : 0) + p[p.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
171
171
  more: /* @__PURE__ */ s(function() {
172
- return this._more = !0, this;
172
+ return this._more = true, this;
173
173
  }, "more"),
174
174
  // 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.
175
175
  reject: /* @__PURE__ */ s(function() {
176
176
  if (this.options.backtrack_lexer)
177
- this._backtrack = !0;
177
+ this._backtrack = true;
178
178
  else
179
179
  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).
180
180
  ` + this.showPosition(), {
@@ -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(i, a) {
209
- var d, u, y;
209
+ var c, p, y;
210
210
  if (this.options.backtrack_lexer && (y = {
211
211
  yylineno: this.yylineno,
212
212
  yylloc: {
@@ -226,41 +226,41 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
226
226
  yy: this.yy,
227
227
  conditionStack: this.conditionStack.slice(0),
228
228
  done: this.done
229
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = i[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
229
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), p = i[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
230
230
  first_line: this.yylloc.last_line,
231
231
  last_line: this.yylineno + 1,
232
232
  first_column: this.yylloc.last_column,
233
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
234
- }, 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 = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], d = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
235
- return d;
233
+ last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
234
+ }, 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)
235
+ return c;
236
236
  if (this._backtrack) {
237
237
  for (var o in y)
238
238
  this[o] = y[o];
239
- return !1;
239
+ return false;
240
240
  }
241
- return !1;
241
+ return false;
242
242
  }, "test_match"),
243
243
  // return next match in input
244
244
  next: /* @__PURE__ */ s(function() {
245
245
  if (this.done)
246
246
  return this.EOF;
247
- this._input || (this.done = !0);
248
- var i, a, d, u;
247
+ this._input || (this.done = true);
248
+ var i, a, c, p;
249
249
  this._more || (this.yytext = "", this.match = "");
250
250
  for (var y = this._currentRules(), o = 0; o < y.length; o++)
251
- if (d = this._input.match(this.rules[y[o]]), d && (!a || d[0].length > a[0].length)) {
252
- if (a = d, u = o, this.options.backtrack_lexer) {
253
- if (i = this.test_match(d, y[o]), i !== !1)
251
+ if (c = this._input.match(this.rules[y[o]]), c && (!a || c[0].length > a[0].length)) {
252
+ if (a = c, p = o, this.options.backtrack_lexer) {
253
+ if (i = this.test_match(c, y[o]), i !== false)
254
254
  return i;
255
255
  if (this._backtrack) {
256
- a = !1;
256
+ a = false;
257
257
  continue;
258
258
  } else
259
- return !1;
259
+ return false;
260
260
  } else if (!this.options.flex)
261
261
  break;
262
262
  }
263
- return a ? (i = this.test_match(a, y[u]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
263
+ return a ? (i = this.test_match(a, y[p]), i !== false ? i : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
264
  ` + this.showPosition(), {
265
265
  text: "",
266
266
  token: null,
@@ -297,9 +297,9 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
297
297
  stateStackSize: /* @__PURE__ */ s(function() {
298
298
  return this.conditionStack.length;
299
299
  }, "stateStackSize"),
300
- options: { "case-insensitive": !0 },
301
- performAction: /* @__PURE__ */ s(function(a, d, u, y) {
302
- switch (u) {
300
+ options: { "case-insensitive": true },
301
+ performAction: /* @__PURE__ */ s(function(a, c, p, y) {
302
+ switch (p) {
303
303
  case 0:
304
304
  break;
305
305
  case 1:
@@ -343,18 +343,18 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
343
343
  }
344
344
  }, "anonymous"),
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]+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
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 } }
346
+ conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: true } }
347
347
  };
348
- return f;
348
+ return x;
349
349
  }();
350
- p.lexer = x;
350
+ u.lexer = k;
351
351
  function _() {
352
352
  this.yy = {};
353
353
  }
354
- return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
354
+ return s(_, "Parser"), _.prototype = u, u.Parser = _, new _();
355
355
  }();
356
- X.parser = X;
357
- var Tt = X, at = {};
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 V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
- Y.length = 0, U.length = 0, V = "", W.length = 0, Et();
369
+ var z = "", lt = 0, X = [], G = [], F = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
+ X.length = 0, G.length = 0, z = "", F.length = 0, Et();
371
371
  }, "clear"), ht = /* @__PURE__ */ s(function(n) {
372
- V = n, Y.push(n);
372
+ z = n, X.push(n);
373
373
  }, "addSection"), dt = /* @__PURE__ */ s(function() {
374
- return Y;
374
+ return X;
375
375
  }, "getSections"), ut = /* @__PURE__ */ s(function() {
376
376
  let n = rt();
377
377
  const t = 100;
378
378
  let e = 0;
379
379
  for (; !n && e < t; )
380
380
  n = rt(), e++;
381
- return U.push(...W), U;
381
+ return G.push(...F), G;
382
382
  }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
383
383
  const l = {
384
384
  id: lt++,
385
- section: V,
386
- type: V,
385
+ section: z,
386
+ type: z,
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
- W.push(l);
392
+ F.push(l);
393
393
  }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
394
- W.find((e) => e.id === lt - 1).events.push(n);
394
+ F.find((e) => e.id === lt - 1).events.push(n);
395
395
  }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
396
396
  const t = {
397
- section: V,
398
- type: V,
397
+ section: z,
398
+ type: z,
399
399
  description: n,
400
400
  task: n,
401
401
  classes: []
402
402
  };
403
- U.push(t);
403
+ G.push(t);
404
404
  }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
405
405
  const n = /* @__PURE__ */ s(function(e) {
406
- return W[e].processed;
406
+ return F[e].processed;
407
407
  }, "compileTask");
408
- let t = !0;
409
- for (const [e, l] of W.entries())
408
+ let t = true;
409
+ for (const [e, l] of F.entries())
410
410
  n(e), t = t && l.processed;
411
411
  return t;
412
412
  }, "compileTasks"), It = {
@@ -418,26 +418,26 @@ 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, Z = /* @__PURE__ */ s(function(n, t) {
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) {
425
425
  const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = n.append("g");
426
426
  r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
427
- function h(m) {
428
- const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
427
+ function d(m) {
428
+ const u = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
+ m.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
430
  }
431
- s(h, "smile");
432
- function c(m) {
433
- const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
431
+ s(d, "smile");
432
+ function h(m) {
433
+ const u = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
+ m.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
435
  }
436
- s(c, "sad");
437
- function g(m) {
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(g, "ambivalent"), t.score > 3 ? h(r) : t.score < 3 ? c(r) : g(r), l;
440
+ return s(f, "ambivalent"), t.score > 3 ? d(r) : t.score < 3 ? h(r) : f(r), 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 r = l.append("tspan");
448
448
  return r.attr("x", t.x + t.textMargin * 2), r.text(e), l;
449
449
  }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
450
- function e(r, h, c, g, m) {
451
- return r + "," + h + " " + (r + c) + "," + h + " " + (r + c) + "," + (h + g - m) + " " + (r + c - m * 1.2) + "," + (h + g) + " " + r + "," + (h + g);
450
+ function e(r, d, h, f, m) {
451
+ return r + "," + d + " " + (r + h) + "," + d + " " + (r + h) + "," + (d + f - m) + " " + (r + h - m * 1.2) + "," + (d + f) + " " + r + "," + (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"), Pt = /* @__PURE__ */ s(function(n, t, e) {
457
- const l = n.append("g"), r = D();
458
- r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Z(l, r), mt(e)(
457
+ const l = n.append("g"), r = Y();
458
+ r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, q(l, r), mt(e)(
459
459
  t.text,
460
460
  l,
461
461
  r.x,
@@ -469,26 +469,26 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
469
469
  }, "drawSection"), it = -1, At = /* @__PURE__ */ s(function(n, t, e) {
470
470
  const l = t.x + e.width / 2, r = n.append("g");
471
471
  it++;
472
- const h = 300 + 5 * 30;
473
- r.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", h).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(r, {
472
+ const d = 300 + 5 * 30;
473
+ r.append("line").attr("id", "task" + it).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(r, {
474
474
  cx: l,
475
475
  cy: 300 + (5 - t.score) * 30,
476
476
  score: t.score
477
477
  });
478
- const c = D();
479
- c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Z(r, c), mt(e)(
478
+ const h = Y();
479
+ 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(r, h), mt(e)(
480
480
  t.task,
481
481
  r,
482
- c.x,
483
- c.y,
484
- c.width,
485
- c.height,
482
+ h.x,
483
+ h.y,
484
+ h.width,
485
+ h.height,
486
486
  { class: "task" },
487
487
  e,
488
488
  t.colour
489
489
  );
490
490
  }, "drawTask"), Ct = /* @__PURE__ */ s(function(n, t) {
491
- Z(n, {
491
+ q(n, {
492
492
  x: t.startx,
493
493
  y: t.starty,
494
494
  width: t.stopx - t.startx,
@@ -508,7 +508,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
508
508
  rx: 0,
509
509
  ry: 0
510
510
  };
511
- }, "getTextObj"), D = /* @__PURE__ */ s(function() {
511
+ }, "getTextObj"), Y = /* @__PURE__ */ s(function() {
512
512
  return {
513
513
  x: 0,
514
514
  y: 0,
@@ -519,27 +519,27 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
519
519
  ry: 0
520
520
  };
521
521
  }, "getNoteRect"), mt = /* @__PURE__ */ function() {
522
- function n(r, h, c, g, m, p, x, _) {
523
- const f = h.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(r);
524
- l(f, x);
522
+ function n(r, d, h, f, m, u, k, _) {
523
+ const x = d.append("text").attr("x", h + m / 2).attr("y", f + u / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(r);
524
+ l(x, k);
525
525
  }
526
526
  s(n, "byText");
527
- function t(r, h, c, g, m, p, x, _, f) {
528
- const { taskFontSize: i, taskFontFamily: a } = _, d = r.split(/<br\s*\/?>/gi);
529
- for (let u = 0; u < d.length; u++) {
530
- const y = u * i - i * (d.length - 1) / 2, o = h.append("text").attr("x", c + m / 2).attr("y", g).attr("fill", f).style("text-anchor", "middle").style("font-size", i).style("font-family", a);
531
- o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(d[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
527
+ function t(r, d, h, f, m, u, k, _, x) {
528
+ const { taskFontSize: i, taskFontFamily: a } = _, c = r.split(/<br\s*\/?>/gi);
529
+ for (let p = 0; p < c.length; p++) {
530
+ const y = p * i - i * (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", i).style("font-family", a);
531
+ o.append("tspan").attr("x", h + m / 2).attr("dy", y).text(c[p]), o.attr("y", f + u / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, k);
532
532
  }
533
533
  }
534
534
  s(t, "byTspan");
535
- function e(r, h, c, g, m, p, x, _) {
536
- const f = h.append("switch"), a = f.append("foreignObject").attr("x", c).attr("y", g).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
537
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, f, c, g, m, p, x, _), l(a, x);
535
+ function e(r, d, h, f, m, u, k, _) {
536
+ const x = d.append("switch"), a = x.append("foreignObject").attr("x", h).attr("y", f).attr("width", m).attr("height", u).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
537
+ a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, x, h, f, m, u, k, _), l(a, k);
538
538
  }
539
539
  s(e, "byFo");
540
- function l(r, h) {
541
- for (const c in h)
542
- c in h && r.attr(c, h[c]);
540
+ function l(r, d) {
541
+ for (const h in d)
542
+ h in d && r.attr(h, d[h]);
543
543
  }
544
544
  return s(l, "_setTextAttrs"), function(r) {
545
545
  return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
@@ -547,34 +547,34 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
547
547
  }(), Rt = /* @__PURE__ */ s(function(n) {
548
548
  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
549
  }, "initGraphics");
550
- function tt(n, t) {
550
+ function D(n, t) {
551
551
  n.each(function() {
552
- var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, h = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
553
- for (let x = 0; x < l.length; x++)
554
- r = l[l.length - 1 - x], h.push(r), p.text(h.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (h.pop(), p.text(h.join(" ").trim()), r === "<br>" ? h = [""] : h = [r], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(r));
552
+ var e = j(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, d = [], h = 1.1, f = e.attr("y"), m = parseFloat(e.attr("dy")), u = e.text(null).append("tspan").attr("x", 0).attr("y", f).attr("dy", m + "em");
553
+ for (let k = 0; k < l.length; k++)
554
+ r = l[l.length - 1 - k], d.push(r), u.text(d.join(" ").trim()), (u.node().getComputedTextLength() > t || r === "<br>") && (d.pop(), u.text(d.join(" ").trim()), r === "<br>" ? d = [""] : d = [r], u = e.append("tspan").attr("x", 0).attr("y", f).attr("dy", h + "em").text(r));
555
555
  });
556
556
  }
557
- s(tt, "wrap");
557
+ s(D, "wrap");
558
558
  var zt = /* @__PURE__ */ s(function(n, t, e, l) {
559
- var _;
560
- const r = e % Nt - 1, h = n.append("g");
561
- t.section = r, h.attr(
559
+ var _a;
560
+ const r = e % Nt - 1, d = n.append("g");
561
+ t.section = r, d.attr(
562
562
  "class",
563
563
  (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
564
564
  );
565
- const c = h.append("g"), g = h.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
566
- return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, r, l), t;
565
+ const h = d.append("g"), f = d.append("g"), u = 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 = ((_a = l.fontSize) == null ? void 0 : _a.replace) ? l.fontSize.replace("px", "") : l.fontSize;
566
+ return t.height = u.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, r, l), t;
567
567
  }, "drawNode"), Ft = /* @__PURE__ */ s(function(n, t, e) {
568
- var g;
569
- const l = n.append("g"), h = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
570
- return l.remove(), h.height + c * 1.1 * 0.5 + t.padding;
568
+ var _a;
569
+ 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 = ((_a = e.fontSize) == null ? void 0 : _a.replace) ? e.fontSize.replace("px", "") : e.fontSize;
570
+ return l.remove(), d.height + h * 1.1 * 0.5 + t.padding;
571
571
  }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
572
572
  n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
573
573
  "d",
574
574
  `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
575
575
  ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
576
576
  }, "defaultBkg"), H = {
577
- drawRect: Z,
577
+ drawRect: q,
578
578
  drawCircle: Mt,
579
579
  drawSection: Pt,
580
580
  drawText: ft,
@@ -582,137 +582,137 @@ var zt = /* @__PURE__ */ s(function(n, t, e, l) {
582
582
  drawTask: At,
583
583
  drawBackgroundRect: Ct,
584
584
  getTextObj: Ht,
585
- getNoteRect: D,
585
+ getNoteRect: Y,
586
586
  initGraphics: Rt,
587
587
  drawNode: zt,
588
588
  getVirtualNodeHeight: Ft
589
589
  }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
590
- var O, v;
591
- const r = xt(), h = r.leftMargin ?? 50;
592
- T.debug("timeline", l.db);
593
- const c = r.securityLevel;
594
- let g;
595
- c === "sandbox" && (g = q("#i" + t));
596
- const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
597
- p.append("g");
598
- const x = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
599
- T.debug("task", x), H.initGraphics(p);
600
- const f = l.db.getSections();
601
- T.debug("sections", f);
602
- let i = 0, a = 0, d = 0, u = 0, y = 50 + h, o = 50;
603
- u = 50;
604
- let S = 0, k = !0;
605
- f.forEach(function(E) {
606
- const b = {
607
- number: S,
608
- descr: E,
609
- section: S,
590
+ var _a, _b;
591
+ const r = xt(), d = r.leftMargin ?? 50;
592
+ E.debug("timeline", l.db);
593
+ const h = r.securityLevel;
594
+ let f;
595
+ h === "sandbox" && (f = j("#i" + t));
596
+ const u = (h === "sandbox" ? j(f.nodes()[0].contentDocument.body) : j("body")).select("#" + t);
597
+ u.append("g");
598
+ const k = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
599
+ E.debug("task", k), H.initGraphics(u);
600
+ const x = l.db.getSections();
601
+ E.debug("sections", x);
602
+ let i = 0, a = 0, c = 0, p = 0, y = 50 + d, o = 50;
603
+ p = 50;
604
+ let w = 0, v = true;
605
+ x.forEach(function($) {
606
+ const g = {
607
+ number: w,
608
+ descr: $,
609
+ section: w,
610
610
  width: 150,
611
611
  padding: 20,
612
612
  maxHeight: i
613
- }, L = H.getVirtualNodeHeight(p, b, r);
614
- T.debug("sectionHeight before draw", L), i = Math.max(i, L + 20);
613
+ }, b = H.getVirtualNodeHeight(u, g, r);
614
+ E.debug("sectionHeight before draw", b), i = Math.max(i, b + 20);
615
615
  });
616
- let M = 0, P = 0;
617
- T.debug("tasks.length", x.length);
618
- for (const [E, b] of x.entries()) {
619
- const L = {
620
- number: E,
621
- descr: b,
622
- section: b.section,
616
+ let N = 0, A = 0;
617
+ E.debug("tasks.length", k.length);
618
+ for (const [$, g] of k.entries()) {
619
+ const b = {
620
+ number: $,
621
+ descr: g,
622
+ section: g.section,
623
623
  width: 150,
624
624
  padding: 20,
625
625
  maxHeight: a
626
- }, A = H.getVirtualNodeHeight(p, L, r);
627
- T.debug("taskHeight before draw", A), a = Math.max(a, A + 20), M = Math.max(M, b.events.length);
628
- let R = 0;
629
- for (const z of b.events) {
630
- const w = {
631
- descr: z,
632
- section: b.section,
633
- number: b.section,
626
+ }, L = H.getVirtualNodeHeight(u, b, r);
627
+ E.debug("taskHeight before draw", L), a = Math.max(a, L + 20), N = Math.max(N, g.events.length);
628
+ let P = 0;
629
+ for (const W of g.events) {
630
+ const Z = {
631
+ descr: W,
632
+ section: g.section,
633
+ number: g.section,
634
634
  width: 150,
635
635
  padding: 20,
636
636
  maxHeight: 50
637
637
  };
638
- R += H.getVirtualNodeHeight(p, w, r);
638
+ P += H.getVirtualNodeHeight(u, Z, r);
639
639
  }
640
- P = Math.max(P, R);
640
+ A = Math.max(A, P);
641
641
  }
642
- T.debug("maxSectionHeight before draw", i), T.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((E) => {
643
- const b = x.filter((z) => z.section === E), L = {
644
- number: S,
645
- descr: E,
646
- section: S,
647
- width: 200 * Math.max(b.length, 1) - 50,
642
+ E.debug("maxSectionHeight before draw", i), E.debug("maxTaskHeight before draw", a), x && x.length > 0 ? x.forEach(($) => {
643
+ const g = k.filter((W) => W.section === $), b = {
644
+ number: w,
645
+ descr: $,
646
+ section: w,
647
+ width: 200 * Math.max(g.length, 1) - 50,
648
648
  padding: 20,
649
649
  maxHeight: i
650
650
  };
651
- T.debug("sectionNode", L);
652
- const A = p.append("g"), R = H.drawNode(A, L, S, r);
653
- T.debug("sectionNode output", R), A.attr("transform", `translate(${y}, ${u})`), o += i + 50, b.length > 0 && st(
654
- p,
655
- b,
656
- S,
651
+ E.debug("sectionNode", b);
652
+ const L = u.append("g"), P = H.drawNode(L, b, w, r);
653
+ E.debug("sectionNode output", P), L.attr("transform", `translate(${y}, ${p})`), o += i + 50, g.length > 0 && st(
654
+ u,
655
+ g,
656
+ w,
657
657
  y,
658
658
  o,
659
659
  a,
660
660
  r,
661
- M,
662
- P,
661
+ N,
662
+ A,
663
663
  i,
664
- !1
665
- ), y += 200 * Math.max(b.length, 1), o = u, S++;
666
- }) : (k = !1, st(
667
- p,
668
- x,
669
- S,
664
+ false
665
+ ), y += 200 * Math.max(g.length, 1), o = p, w++;
666
+ }) : (v = false, st(
667
+ u,
668
+ k,
669
+ w,
670
670
  y,
671
671
  o,
672
672
  a,
673
673
  r,
674
- M,
675
- P,
674
+ N,
675
+ A,
676
676
  i,
677
- !0
677
+ true
678
678
  ));
679
- const B = p.node().getBBox();
680
- T.debug("bounds", B), _ && p.append("text").text(_).attr("x", B.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), d = k ? i + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", h).attr("y1", d).attr("x2", B.width + 3 * h).attr("y2", d).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
679
+ const V = u.node().getBBox();
680
+ E.debug("bounds", V), _ && u.append("text").text(_).attr("x", V.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = v ? i + a + 150 : a + 100, u.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
681
  void 0,
682
- p,
683
- ((O = r.timeline) == null ? void 0 : O.padding) ?? 50,
684
- ((v = r.timeline) == null ? void 0 : v.useMaxWidth) ?? !1
682
+ u,
683
+ ((_a = r.timeline) == null ? void 0 : _a.padding) ?? 50,
684
+ ((_b = r.timeline) == null ? void 0 : _b.useMaxWidth) ?? false
685
685
  );
686
- }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, h, c, g, m, p, x) {
687
- var _;
688
- for (const f of t) {
689
- const i = {
690
- descr: f.task,
686
+ }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, d, h, f, m, u, k) {
687
+ var _a;
688
+ for (const _ of t) {
689
+ const x = {
690
+ descr: _.task,
691
691
  section: e,
692
692
  number: e,
693
693
  width: 150,
694
694
  padding: 20,
695
- maxHeight: h
695
+ maxHeight: d
696
696
  };
697
- T.debug("taskNode", i);
698
- const a = n.append("g").attr("class", "taskWrapper"), u = H.drawNode(a, i, e, c).height;
699
- if (T.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${r})`), h = Math.max(h, u), f.events) {
700
- const y = n.append("g").attr("class", "lineWrapper");
701
- let o = h;
702
- r += 100, o = o + Bt(n, f.events, e, l, r, c), r -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", r + h).attr("x2", l + 190 / 2).attr(
697
+ E.debug("taskNode", x);
698
+ const i = n.append("g").attr("class", "taskWrapper"), c = H.drawNode(i, x, e, h).height;
699
+ if (E.debug("taskHeight after draw", c), i.attr("transform", `translate(${l}, ${r})`), d = Math.max(d, c), _.events) {
700
+ const p = n.append("g").attr("class", "lineWrapper");
701
+ let y = d;
702
+ r += 100, y = y + Bt(n, _.events, e, l, r, h), r -= 100, p.append("line").attr("x1", l + 190 / 2).attr("y1", r + d).attr("x2", l + 190 / 2).attr(
703
703
  "y2",
704
- r + h + (x ? h : p) + m + 120
704
+ r + d + (k ? d : u) + m + 120
705
705
  ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
706
706
  }
707
- l = l + 200, x && !((_ = c.timeline) != null && _.disableMulticolor) && e++;
707
+ l = l + 200, k && !((_a = h.timeline) == null ? void 0 : _a.disableMulticolor) && e++;
708
708
  }
709
709
  r = r - 10;
710
- }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, h) {
711
- let c = 0;
712
- const g = r;
710
+ }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, d) {
711
+ let h = 0;
712
+ const f = r;
713
713
  r = r + 100;
714
714
  for (const m of t) {
715
- const p = {
715
+ const u = {
716
716
  descr: m,
717
717
  section: e,
718
718
  number: e,
@@ -720,11 +720,11 @@ var zt = /* @__PURE__ */ s(function(n, t, e, l) {
720
720
  padding: 20,
721
721
  maxHeight: 50
722
722
  };
723
- T.debug("eventNode", p);
724
- const x = n.append("g").attr("class", "eventWrapper"), f = H.drawNode(x, p, e, h).height;
725
- c = c + f, x.attr("transform", `translate(${l}, ${r})`), r = r + 10 + f;
723
+ E.debug("eventNode", u);
724
+ const k = n.append("g").attr("class", "eventWrapper"), x = H.drawNode(k, u, e, d).height;
725
+ h = h + x, k.attr("transform", `translate(${l}, ${r})`), r = r + 10 + x;
726
726
  }
727
- return r = g, c;
727
+ return r = f, h;
728
728
  }, "drawEvents"), Ot = {
729
729
  setConf: /* @__PURE__ */ s(() => {
730
730
  }, "setConf"),