@kong-ui-public/documentation 1.4.17-pr.2640.fb8bab909.0 → 1.4.17

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 (84) hide show
  1. package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
  2. package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
  3. package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
  4. package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
  5. package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
  6. package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
  7. package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
  8. package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
  9. package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
  10. package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
  11. package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
  12. package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
  13. package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
  14. package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
  15. package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
  16. package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
  17. package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
  18. package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
  19. package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
  20. package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
  21. package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
  22. package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
  23. package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
  24. package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
  25. package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
  26. package/dist/documentation.es.js +1 -1
  27. package/dist/documentation.umd.js +860 -399
  28. package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
  29. package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
  30. package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
  31. package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
  32. package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
  33. package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
  34. package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
  35. package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
  36. package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
  37. package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
  38. package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
  39. package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
  40. package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
  41. package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
  42. package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
  43. package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
  44. package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
  45. package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
  46. package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
  47. package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
  48. package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
  49. package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
  50. package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
  51. package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
  52. package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
  53. package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
  54. package/dist/style.css +1 -1
  55. package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
  56. package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
  57. package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
  58. package/package.json +4 -4
  59. package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
  60. package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
  61. package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
  62. package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
  63. package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
  64. package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
  65. package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
  66. package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
  67. package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
  68. package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
  69. package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
  70. package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
  71. package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
  72. package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
  73. package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
  74. package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
  75. package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
  76. package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
  77. package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
  78. package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
  79. package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
  80. package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
  81. package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
  82. package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
  83. package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
  84. package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
@@ -0,0 +1,799 @@
1
+ import { _ as r, g as mt, l as $, a9 as V, bm as xt, bn as bt, bo as kt, bp as _t, ay as vt, bq as wt, at as St } from "./index-BDD0CD9m.js";
2
+ import { h as et } from "./arc-DYb5Ak6k-js8YHzj6.js";
3
+ var J = function() {
4
+ var n = /* @__PURE__ */ r(function(f, s, l, h) {
5
+ for (l = l || {}, h = f.length; h--; l[f[h]] = s) ;
6
+ return l;
7
+ }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], a = [1, 10], i = [1, 11], o = [1, 12], u = [1, 13], p = [1, 16], y = [1, 17], m = {
8
+ trace: /* @__PURE__ */ r(function() {
9
+ }, "trace"),
10
+ yy: {},
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
+ 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
+ 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__ */ r(function(f, s, l, h, d, c, k) {
15
+ var x = c.length - 1;
16
+ switch (d) {
17
+ case 1:
18
+ return c[x - 1];
19
+ case 2:
20
+ this.$ = [];
21
+ break;
22
+ case 3:
23
+ c[x - 1].push(c[x]), this.$ = c[x - 1];
24
+ break;
25
+ case 4:
26
+ case 5:
27
+ this.$ = c[x];
28
+ break;
29
+ case 6:
30
+ case 7:
31
+ this.$ = [];
32
+ break;
33
+ case 8:
34
+ h.getCommonDb().setDiagramTitle(c[x].substr(6)), this.$ = c[x].substr(6);
35
+ break;
36
+ case 9:
37
+ this.$ = c[x].trim(), h.getCommonDb().setAccTitle(this.$);
38
+ break;
39
+ case 10:
40
+ case 11:
41
+ this.$ = c[x].trim(), h.getCommonDb().setAccDescription(this.$);
42
+ break;
43
+ case 12:
44
+ h.addSection(c[x].substr(8)), this.$ = c[x].substr(8);
45
+ break;
46
+ case 15:
47
+ h.addTask(c[x], 0, ""), this.$ = c[x];
48
+ break;
49
+ case 16:
50
+ h.addEvent(c[x].substr(2)), this.$ = c[x];
51
+ break;
52
+ }
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: a, 14: i, 16: o, 17: u, 18: 14, 19: 15, 20: p, 21: y }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: a, 14: i, 16: o, 17: u, 18: 14, 19: 15, 20: p, 21: y }, 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
+ defaultActions: {},
56
+ parseError: /* @__PURE__ */ r(function(f, s) {
57
+ if (s.recoverable)
58
+ this.trace(f);
59
+ else {
60
+ var l = new Error(f);
61
+ throw l.hash = s, l;
62
+ }
63
+ }, "parseError"),
64
+ parse: /* @__PURE__ */ r(function(f) {
65
+ var s = this, l = [0], h = [], d = [null], c = [], k = this.table, x = "", N = 0, M = 0, F = 2, I = 1, H = c.slice.call(arguments, 1), _ = Object.create(this.lexer), S = { yy: {} };
66
+ for (var v in this.yy)
67
+ Object.prototype.hasOwnProperty.call(this.yy, v) && (S.yy[v] = this.yy[v]);
68
+ _.setInput(f, S.yy), S.yy.lexer = _, S.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
69
+ var A = _.yylloc;
70
+ c.push(A);
71
+ var O = _.options && _.options.ranges;
72
+ typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
+ function L(E) {
74
+ l.length = l.length - 2 * E, d.length = d.length - E, c.length = c.length - E;
75
+ }
76
+ r(L, "popStack");
77
+ function z() {
78
+ var E;
79
+ return E = h.pop() || _.lex() || I, typeof E != "number" && (E instanceof Array && (h = E, E = h.pop()), E = s.symbols_[E] || E), E;
80
+ }
81
+ r(z, "lex");
82
+ for (var w, R, T, Z, P = {}, W, C, tt, q; ; ) {
83
+ if (R = l[l.length - 1], this.defaultActions[R] ? T = this.defaultActions[R] : ((w === null || typeof w > "u") && (w = z()), T = k[R] && k[R][w]), typeof T > "u" || !T.length || !T[0]) {
84
+ var G = "";
85
+ q = [];
86
+ for (W in k[R])
87
+ this.terminals_[W] && W > F && q.push("'" + this.terminals_[W] + "'");
88
+ _.showPosition ? G = "Parse error on line " + (N + 1) + `:
89
+ ` + _.showPosition() + `
90
+ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : G = "Parse error on line " + (N + 1) + ": Unexpected " + (w == I ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(G, {
91
+ text: _.match,
92
+ token: this.terminals_[w] || w,
93
+ line: _.yylineno,
94
+ loc: A,
95
+ expected: q
96
+ });
97
+ }
98
+ if (T[0] instanceof Array && T.length > 1)
99
+ throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + w);
100
+ switch (T[0]) {
101
+ case 1:
102
+ l.push(w), d.push(_.yytext), c.push(_.yylloc), l.push(T[1]), w = null, M = _.yyleng, x = _.yytext, N = _.yylineno, A = _.yylloc;
103
+ break;
104
+ case 2:
105
+ if (C = this.productions_[T[1]][1], P.$ = d[d.length - C], P._$ = {
106
+ first_line: c[c.length - (C || 1)].first_line,
107
+ last_line: c[c.length - 1].last_line,
108
+ first_column: c[c.length - (C || 1)].first_column,
109
+ last_column: c[c.length - 1].last_column
110
+ }, O && (P._$.range = [
111
+ c[c.length - (C || 1)].range[0],
112
+ c[c.length - 1].range[1]
113
+ ]), Z = this.performAction.apply(P, [
114
+ x,
115
+ M,
116
+ N,
117
+ S.yy,
118
+ T[1],
119
+ d,
120
+ c
121
+ ].concat(H)), typeof Z < "u")
122
+ return Z;
123
+ C && (l = l.slice(0, -1 * C * 2), d = d.slice(0, -1 * C), c = c.slice(0, -1 * C)), l.push(this.productions_[T[1]][0]), d.push(P.$), c.push(P._$), tt = k[l[l.length - 2]][l[l.length - 1]], l.push(tt);
124
+ break;
125
+ case 3:
126
+ return !0;
127
+ }
128
+ }
129
+ return !0;
130
+ }, "parse")
131
+ }, b = /* @__PURE__ */ function() {
132
+ var f = {
133
+ EOF: 1,
134
+ parseError: /* @__PURE__ */ r(function(s, l) {
135
+ if (this.yy.parser)
136
+ this.yy.parser.parseError(s, l);
137
+ else
138
+ throw new Error(s);
139
+ }, "parseError"),
140
+ // resets the lexer, sets new input
141
+ setInput: /* @__PURE__ */ r(function(s, l) {
142
+ return this.yy = l || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
143
+ first_line: 1,
144
+ first_column: 0,
145
+ last_line: 1,
146
+ last_column: 0
147
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
148
+ }, "setInput"),
149
+ // consumes and returns one char from the input
150
+ input: /* @__PURE__ */ r(function() {
151
+ var s = this._input[0];
152
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
153
+ var l = s.match(/(?:\r\n?|\n).*/g);
154
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
155
+ }, "input"),
156
+ // unshifts one char (or a string) into the input
157
+ unput: /* @__PURE__ */ r(function(s) {
158
+ var l = s.length, h = s.split(/(?:\r\n?|\n)/g);
159
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
160
+ var d = 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), h.length - 1 && (this.yylineno -= h.length - 1);
162
+ var c = this.yylloc.range;
163
+ return this.yylloc = {
164
+ first_line: this.yylloc.first_line,
165
+ last_line: this.yylineno + 1,
166
+ first_column: this.yylloc.first_column,
167
+ last_column: h ? (h.length === d.length ? this.yylloc.first_column : 0) + d[d.length - h.length].length - h[0].length : this.yylloc.first_column - l
168
+ }, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
169
+ }, "unput"),
170
+ // When called from action, caches matched text and appends it on next action
171
+ more: /* @__PURE__ */ r(function() {
172
+ return this._more = !0, this;
173
+ }, "more"),
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
+ reject: /* @__PURE__ */ r(function() {
176
+ if (this.options.backtrack_lexer)
177
+ this._backtrack = !0;
178
+ else
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
+ ` + this.showPosition(), {
181
+ text: "",
182
+ token: null,
183
+ line: this.yylineno
184
+ });
185
+ return this;
186
+ }, "reject"),
187
+ // retain first n characters of the match
188
+ less: /* @__PURE__ */ r(function(s) {
189
+ this.unput(this.match.slice(s));
190
+ }, "less"),
191
+ // displays already matched input, i.e. for error messages
192
+ pastInput: /* @__PURE__ */ r(function() {
193
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
194
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
195
+ }, "pastInput"),
196
+ // displays upcoming input, i.e. for error messages
197
+ upcomingInput: /* @__PURE__ */ r(function() {
198
+ var s = this.match;
199
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
200
+ }, "upcomingInput"),
201
+ // displays the character position where the lexing error occurred, i.e. for error messages
202
+ showPosition: /* @__PURE__ */ r(function() {
203
+ var s = this.pastInput(), l = new Array(s.length + 1).join("-");
204
+ return s + this.upcomingInput() + `
205
+ ` + l + "^";
206
+ }, "showPosition"),
207
+ // test the lexed token: return FALSE when not a match, otherwise return token
208
+ test_match: /* @__PURE__ */ r(function(s, l) {
209
+ var h, d, c;
210
+ if (this.options.backtrack_lexer && (c = {
211
+ yylineno: this.yylineno,
212
+ yylloc: {
213
+ first_line: this.yylloc.first_line,
214
+ last_line: this.last_line,
215
+ first_column: this.yylloc.first_column,
216
+ last_column: this.yylloc.last_column
217
+ },
218
+ yytext: this.yytext,
219
+ match: this.match,
220
+ matches: this.matches,
221
+ matched: this.matched,
222
+ yyleng: this.yyleng,
223
+ offset: this.offset,
224
+ _more: this._more,
225
+ _input: this._input,
226
+ yy: this.yy,
227
+ conditionStack: this.conditionStack.slice(0),
228
+ done: this.done
229
+ }, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), d = s[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
230
+ first_line: this.yylloc.last_line,
231
+ last_line: this.yylineno + 1,
232
+ first_column: this.yylloc.last_column,
233
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
234
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], h = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
235
+ return h;
236
+ if (this._backtrack) {
237
+ for (var k in c)
238
+ this[k] = c[k];
239
+ return !1;
240
+ }
241
+ return !1;
242
+ }, "test_match"),
243
+ // return next match in input
244
+ next: /* @__PURE__ */ r(function() {
245
+ if (this.done)
246
+ return this.EOF;
247
+ this._input || (this.done = !0);
248
+ var s, l, h, d;
249
+ this._more || (this.yytext = "", this.match = "");
250
+ for (var c = this._currentRules(), k = 0; k < c.length; k++)
251
+ if (h = this._input.match(this.rules[c[k]]), h && (!l || h[0].length > l[0].length)) {
252
+ if (l = h, d = k, this.options.backtrack_lexer) {
253
+ if (s = this.test_match(h, c[k]), s !== !1)
254
+ return s;
255
+ if (this._backtrack) {
256
+ l = !1;
257
+ continue;
258
+ } else
259
+ return !1;
260
+ } else if (!this.options.flex)
261
+ break;
262
+ }
263
+ return l ? (s = this.test_match(l, c[d]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
+ ` + this.showPosition(), {
265
+ text: "",
266
+ token: null,
267
+ line: this.yylineno
268
+ });
269
+ }, "next"),
270
+ // return next match that has a token
271
+ lex: /* @__PURE__ */ r(function() {
272
+ var s = this.next();
273
+ return s || this.lex();
274
+ }, "lex"),
275
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
276
+ begin: /* @__PURE__ */ r(function(s) {
277
+ this.conditionStack.push(s);
278
+ }, "begin"),
279
+ // pop the previously active lexer condition state off the condition stack
280
+ popState: /* @__PURE__ */ r(function() {
281
+ var s = this.conditionStack.length - 1;
282
+ return s > 0 ? this.conditionStack.pop() : this.conditionStack[0];
283
+ }, "popState"),
284
+ // produce the lexer rule set which is active for the currently active lexer condition state
285
+ _currentRules: /* @__PURE__ */ r(function() {
286
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
287
+ }, "_currentRules"),
288
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
289
+ topState: /* @__PURE__ */ r(function(s) {
290
+ return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
291
+ }, "topState"),
292
+ // alias for begin(condition)
293
+ pushState: /* @__PURE__ */ r(function(s) {
294
+ this.begin(s);
295
+ }, "pushState"),
296
+ // return the number of states currently on the stack
297
+ stateStackSize: /* @__PURE__ */ r(function() {
298
+ return this.conditionStack.length;
299
+ }, "stateStackSize"),
300
+ options: { "case-insensitive": !0 },
301
+ performAction: /* @__PURE__ */ r(function(s, l, h, d) {
302
+ switch (h) {
303
+ case 0:
304
+ break;
305
+ case 1:
306
+ break;
307
+ case 2:
308
+ return 10;
309
+ case 3:
310
+ break;
311
+ case 4:
312
+ break;
313
+ case 5:
314
+ return 4;
315
+ case 6:
316
+ return 11;
317
+ case 7:
318
+ return this.begin("acc_title"), 12;
319
+ case 8:
320
+ return this.popState(), "acc_title_value";
321
+ case 9:
322
+ return this.begin("acc_descr"), 14;
323
+ case 10:
324
+ return this.popState(), "acc_descr_value";
325
+ case 11:
326
+ this.begin("acc_descr_multiline");
327
+ break;
328
+ case 12:
329
+ this.popState();
330
+ break;
331
+ case 13:
332
+ return "acc_descr_multiline_value";
333
+ case 14:
334
+ return 17;
335
+ case 15:
336
+ return 21;
337
+ case 16:
338
+ return 20;
339
+ case 17:
340
+ return 6;
341
+ case 18:
342
+ return "INVALID";
343
+ }
344
+ }, "anonymous"),
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
+ 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
+ };
348
+ return f;
349
+ }();
350
+ m.lexer = b;
351
+ function g() {
352
+ this.yy = {};
353
+ }
354
+ return r(g, "Parser"), g.prototype = m, m.Parser = g, new g();
355
+ }();
356
+ J.parser = J;
357
+ var $t = J, rt = {};
358
+ vt(rt, {
359
+ addEvent: () => pt,
360
+ addSection: () => lt,
361
+ addTask: () => ut,
362
+ addTaskOrg: () => yt,
363
+ clear: () => ct,
364
+ default: () => Et,
365
+ getCommonDb: () => ot,
366
+ getSections: () => ht,
367
+ getTasks: () => dt
368
+ });
369
+ var j = "", at = 0, X = [], U = [], B = [], ot = /* @__PURE__ */ r(() => wt, "getCommonDb"), ct = /* @__PURE__ */ r(function() {
370
+ X.length = 0, U.length = 0, j = "", B.length = 0, St();
371
+ }, "clear"), lt = /* @__PURE__ */ r(function(n) {
372
+ j = n, X.push(n);
373
+ }, "addSection"), ht = /* @__PURE__ */ r(function() {
374
+ return X;
375
+ }, "getSections"), dt = /* @__PURE__ */ r(function() {
376
+ let n = nt();
377
+ const t = 100;
378
+ let e = 0;
379
+ for (; !n && e < t; )
380
+ n = nt(), e++;
381
+ return U.push(...B), U;
382
+ }, "getTasks"), ut = /* @__PURE__ */ r(function(n, t, e) {
383
+ const a = {
384
+ id: at++,
385
+ section: j,
386
+ type: j,
387
+ task: n,
388
+ score: t || 0,
389
+ //if event is defined, then add it the events array
390
+ events: e ? [e] : []
391
+ };
392
+ B.push(a);
393
+ }, "addTask"), pt = /* @__PURE__ */ r(function(n) {
394
+ B.find((t) => t.id === at - 1).events.push(n);
395
+ }, "addEvent"), yt = /* @__PURE__ */ r(function(n) {
396
+ const t = {
397
+ section: j,
398
+ type: j,
399
+ description: n,
400
+ task: n,
401
+ classes: []
402
+ };
403
+ U.push(t);
404
+ }, "addTaskOrg"), nt = /* @__PURE__ */ r(function() {
405
+ const n = /* @__PURE__ */ r(function(e) {
406
+ return B[e].processed;
407
+ }, "compileTask");
408
+ let t = !0;
409
+ for (const [e, a] of B.entries())
410
+ n(e), t = t && a.processed;
411
+ return t;
412
+ }, "compileTasks"), Et = {
413
+ clear: ct,
414
+ getCommonDb: ot,
415
+ addSection: lt,
416
+ getSections: ht,
417
+ getTasks: dt,
418
+ addTask: ut,
419
+ addTaskOrg: yt,
420
+ addEvent: pt
421
+ }, Tt = 12, Y = /* @__PURE__ */ r(function(n, t) {
422
+ const e = n.append("rect");
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
+ }, "drawRect"), Mt = /* @__PURE__ */ r(function(n, t) {
425
+ const e = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), a = n.append("g");
426
+ a.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"), a.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 i(p) {
428
+ const y = et().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
+ p.append("path").attr("class", "mouth").attr("d", y).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
+ }
431
+ r(i, "smile");
432
+ function o(p) {
433
+ const y = et().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
+ p.append("path").attr("class", "mouth").attr("d", y).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
+ }
436
+ r(o, "sad");
437
+ function u(p) {
438
+ p.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
+ }
440
+ return r(u, "ambivalent"), t.score > 3 ? i(a) : t.score < 3 ? o(a) : u(a), e;
441
+ }, "drawFace"), At = /* @__PURE__ */ r(function(n, t) {
442
+ const e = n.append("circle");
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;
444
+ }, "drawCircle"), gt = /* @__PURE__ */ r(function(n, t) {
445
+ const e = t.text.replace(/<br\s*\/?>/gi, " "), a = n.append("text");
446
+ a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class !== void 0 && a.attr("class", t.class);
447
+ const i = a.append("tspan");
448
+ return i.attr("x", t.x + t.textMargin * 2), i.text(e), a;
449
+ }, "drawText"), Nt = /* @__PURE__ */ r(function(n, t) {
450
+ function e(i, o, u, p, y) {
451
+ return i + "," + o + " " + (i + u) + "," + o + " " + (i + u) + "," + (o + p - y) + " " + (i + u - y * 1.2) + "," + (o + p) + " " + i + "," + (o + p);
452
+ }
453
+ r(e, "genPoints");
454
+ const a = n.append("polygon");
455
+ a.attr("points", e(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, gt(n, t);
456
+ }, "drawLabel"), Ct = /* @__PURE__ */ r(function(n, t, e) {
457
+ const a = n.append("g"), i = K();
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, Y(a, i), ft(e)(
459
+ t.text,
460
+ a,
461
+ i.x,
462
+ i.y,
463
+ i.width,
464
+ i.height,
465
+ { class: "journey-section section-type-" + t.num },
466
+ e,
467
+ t.colour
468
+ );
469
+ }, "drawSection"), it = -1, It = /* @__PURE__ */ r(function(n, t, e) {
470
+ const a = t.x + e.width / 2, i = n.append("g");
471
+ it++, i.append("line").attr("id", "task" + it).attr("x1", a).attr("y1", t.y).attr("x2", a).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Mt(i, {
472
+ cx: a,
473
+ cy: 300 + (5 - t.score) * 30,
474
+ score: t.score
475
+ });
476
+ const o = K();
477
+ o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = e.width, o.height = e.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, Y(i, o), ft(e)(
478
+ t.task,
479
+ i,
480
+ o.x,
481
+ o.y,
482
+ o.width,
483
+ o.height,
484
+ { class: "task" },
485
+ e,
486
+ t.colour
487
+ );
488
+ }, "drawTask"), Ot = /* @__PURE__ */ r(function(n, t) {
489
+ Y(n, {
490
+ x: t.startx,
491
+ y: t.starty,
492
+ width: t.stopx - t.startx,
493
+ height: t.stopy - t.starty,
494
+ fill: t.fill,
495
+ class: "rect"
496
+ }).lower();
497
+ }, "drawBackgroundRect"), Lt = /* @__PURE__ */ r(function() {
498
+ return {
499
+ x: 0,
500
+ y: 0,
501
+ fill: void 0,
502
+ "text-anchor": "start",
503
+ width: 100,
504
+ height: 100,
505
+ textMargin: 0,
506
+ rx: 0,
507
+ ry: 0
508
+ };
509
+ }, "getTextObj"), K = /* @__PURE__ */ r(function() {
510
+ return {
511
+ x: 0,
512
+ y: 0,
513
+ width: 100,
514
+ anchor: "start",
515
+ height: 100,
516
+ rx: 0,
517
+ ry: 0
518
+ };
519
+ }, "getNoteRect"), ft = /* @__PURE__ */ function() {
520
+ function n(i, o, u, p, y, m, b, g) {
521
+ const f = o.append("text").attr("x", u + y / 2).attr("y", p + m / 2 + 5).style("font-color", g).style("text-anchor", "middle").text(i);
522
+ a(f, b);
523
+ }
524
+ r(n, "byText");
525
+ function t(i, o, u, p, y, m, b, g, f) {
526
+ const { taskFontSize: s, taskFontFamily: l } = g, h = i.split(/<br\s*\/?>/gi);
527
+ for (let d = 0; d < h.length; d++) {
528
+ const c = d * s - s * (h.length - 1) / 2, k = o.append("text").attr("x", u + y / 2).attr("y", p).attr("fill", f).style("text-anchor", "middle").style("font-size", s).style("font-family", l);
529
+ k.append("tspan").attr("x", u + y / 2).attr("dy", c).text(h[d]), k.attr("y", p + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(k, b);
530
+ }
531
+ }
532
+ r(t, "byTspan");
533
+ function e(i, o, u, p, y, m, b, g) {
534
+ const f = o.append("switch"), s = f.append("foreignObject").attr("x", u).attr("y", p).attr("width", y).attr("height", m).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
535
+ s.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, f, u, p, y, m, b, g), a(s, b);
536
+ }
537
+ r(e, "byFo");
538
+ function a(i, o) {
539
+ for (const u in o)
540
+ u in o && i.attr(u, o[u]);
541
+ }
542
+ return r(a, "_setTextAttrs"), function(i) {
543
+ return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
544
+ };
545
+ }(), Rt = /* @__PURE__ */ r(function(n) {
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");
547
+ }, "initGraphics");
548
+ function Q(n, t) {
549
+ n.each(function() {
550
+ var e = V(this), a = e.text().split(/(\s+|<br>)/).reverse(), i, o = [], u = 1.1, p = e.attr("y"), y = parseFloat(e.attr("dy")), m = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", y + "em");
551
+ for (let b = 0; b < a.length; b++)
552
+ i = a[a.length - 1 - b], o.push(i), m.text(o.join(" ").trim()), (m.node().getComputedTextLength() > t || i === "<br>") && (o.pop(), m.text(o.join(" ").trim()), i === "<br>" ? o = [""] : o = [i], m = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", u + "em").text(i));
553
+ });
554
+ }
555
+ r(Q, "wrap");
556
+ var Dt = /* @__PURE__ */ r(function(n, t, e, a) {
557
+ var i;
558
+ const o = e % Tt - 1, u = n.append("g");
559
+ t.section = o, u.attr(
560
+ "class",
561
+ (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + o)
562
+ );
563
+ const p = u.append("g"), y = u.append("g"), m = y.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(Q, t.width).node().getBBox(), b = (i = a.fontSize) != null && i.replace ? a.fontSize.replace("px", "") : a.fontSize;
564
+ return t.height = m.height + b * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, y.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(p, t, o, a), t;
565
+ }, "drawNode"), Ht = /* @__PURE__ */ r(function(n, t, e) {
566
+ var a;
567
+ const i = n.append("g"), o = i.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(Q, t.width).node().getBBox(), u = (a = e.fontSize) != null && a.replace ? e.fontSize.replace("px", "") : e.fontSize;
568
+ return i.remove(), o.height + u * 1.1 * 0.5 + t.padding;
569
+ }, "getVirtualNodeHeight"), zt = /* @__PURE__ */ r(function(n, t, e) {
570
+ n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
571
+ "d",
572
+ `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`
573
+ ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
574
+ }, "defaultBkg"), D = {
575
+ drawRect: Y,
576
+ drawCircle: At,
577
+ drawSection: Ct,
578
+ drawText: gt,
579
+ drawLabel: Nt,
580
+ drawTask: It,
581
+ drawBackgroundRect: Ot,
582
+ getTextObj: Lt,
583
+ getNoteRect: K,
584
+ initGraphics: Rt,
585
+ drawNode: Dt,
586
+ getVirtualNodeHeight: Ht
587
+ }, Pt = /* @__PURE__ */ r(function(n, t, e, a) {
588
+ var i, o, u;
589
+ const p = mt(), y = ((i = p.timeline) == null ? void 0 : i.leftMargin) ?? 50;
590
+ $.debug("timeline", a.db);
591
+ const m = p.securityLevel;
592
+ let b;
593
+ m === "sandbox" && (b = V("#i" + t));
594
+ const g = (m === "sandbox" ? V(b.nodes()[0].contentDocument.body) : V("body")).select("#" + t);
595
+ g.append("g");
596
+ const f = a.db.getTasks(), s = a.db.getCommonDb().getDiagramTitle();
597
+ $.debug("task", f), D.initGraphics(g);
598
+ const l = a.db.getSections();
599
+ $.debug("sections", l);
600
+ let h = 0, d = 0, c = 0, k = 0, x = 50 + y, N = 50;
601
+ k = 50;
602
+ let M = 0, F = !0;
603
+ l.forEach(function(S) {
604
+ const v = {
605
+ number: M,
606
+ descr: S,
607
+ section: M,
608
+ width: 150,
609
+ padding: 20,
610
+ maxHeight: h
611
+ }, A = D.getVirtualNodeHeight(g, v, p);
612
+ $.debug("sectionHeight before draw", A), h = Math.max(h, A + 20);
613
+ });
614
+ let I = 0, H = 0;
615
+ $.debug("tasks.length", f.length);
616
+ for (const [S, v] of f.entries()) {
617
+ const A = {
618
+ number: S,
619
+ descr: v,
620
+ section: v.section,
621
+ width: 150,
622
+ padding: 20,
623
+ maxHeight: d
624
+ }, O = D.getVirtualNodeHeight(g, A, p);
625
+ $.debug("taskHeight before draw", O), d = Math.max(d, O + 20), I = Math.max(I, v.events.length);
626
+ let L = 0;
627
+ for (const z of v.events) {
628
+ const w = {
629
+ descr: z,
630
+ section: v.section,
631
+ number: v.section,
632
+ width: 150,
633
+ padding: 20,
634
+ maxHeight: 50
635
+ };
636
+ L += D.getVirtualNodeHeight(g, w, p);
637
+ }
638
+ v.events.length > 0 && (L += (v.events.length - 1) * 10), H = Math.max(H, L);
639
+ }
640
+ $.debug("maxSectionHeight before draw", h), $.debug("maxTaskHeight before draw", d), l && l.length > 0 ? l.forEach((S) => {
641
+ const v = f.filter((z) => z.section === S), A = {
642
+ number: M,
643
+ descr: S,
644
+ section: M,
645
+ width: 200 * Math.max(v.length, 1) - 50,
646
+ padding: 20,
647
+ maxHeight: h
648
+ };
649
+ $.debug("sectionNode", A);
650
+ const O = g.append("g"), L = D.drawNode(O, A, M, p);
651
+ $.debug("sectionNode output", L), O.attr("transform", `translate(${x}, ${k})`), N += h + 50, v.length > 0 && st(
652
+ g,
653
+ v,
654
+ M,
655
+ x,
656
+ N,
657
+ d,
658
+ p,
659
+ I,
660
+ H,
661
+ h,
662
+ !1
663
+ ), x += 200 * Math.max(v.length, 1), N = k, M++;
664
+ }) : (F = !1, st(
665
+ g,
666
+ f,
667
+ M,
668
+ x,
669
+ N,
670
+ d,
671
+ p,
672
+ I,
673
+ H,
674
+ h,
675
+ !0
676
+ ));
677
+ const _ = g.node().getBBox();
678
+ $.debug("bounds", _), s && g.append("text").text(s).attr("x", _.width / 2 - y).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = F ? h + d + 150 : d + 100, g.append("g").attr("class", "lineWrapper").append("line").attr("x1", y).attr("y1", c).attr("x2", _.width + 3 * y).attr("y2", c).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), xt(
679
+ void 0,
680
+ g,
681
+ ((o = p.timeline) == null ? void 0 : o.padding) ?? 50,
682
+ ((u = p.timeline) == null ? void 0 : u.useMaxWidth) ?? !1
683
+ );
684
+ }, "draw"), st = /* @__PURE__ */ r(function(n, t, e, a, i, o, u, p, y, m, b) {
685
+ var g;
686
+ for (const f of t) {
687
+ const s = {
688
+ descr: f.task,
689
+ section: e,
690
+ number: e,
691
+ width: 150,
692
+ padding: 20,
693
+ maxHeight: o
694
+ };
695
+ $.debug("taskNode", s);
696
+ const l = n.append("g").attr("class", "taskWrapper"), h = D.drawNode(l, s, e, u).height;
697
+ if ($.debug("taskHeight after draw", h), l.attr("transform", `translate(${a}, ${i})`), o = Math.max(o, h), f.events) {
698
+ const d = n.append("g").attr("class", "lineWrapper");
699
+ let c = o;
700
+ i += 100, c = c + jt(n, f.events, e, a, i, u), i -= 100, d.append("line").attr("x1", a + 190 / 2).attr("y1", i + o).attr("x2", a + 190 / 2).attr("y2", i + o + 100 + y + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
701
+ }
702
+ a = a + 200, b && !((g = u.timeline) != null && g.disableMulticolor) && e++;
703
+ }
704
+ i = i - 10;
705
+ }, "drawTasks"), jt = /* @__PURE__ */ r(function(n, t, e, a, i, o) {
706
+ let u = 0;
707
+ const p = i;
708
+ i = i + 100;
709
+ for (const y of t) {
710
+ const m = {
711
+ descr: y,
712
+ section: e,
713
+ number: e,
714
+ width: 150,
715
+ padding: 20,
716
+ maxHeight: 50
717
+ };
718
+ $.debug("eventNode", m);
719
+ const b = n.append("g").attr("class", "eventWrapper"), g = D.drawNode(b, m, e, o).height;
720
+ u = u + g, b.attr("transform", `translate(${a}, ${i})`), i = i + 10 + g;
721
+ }
722
+ return i = p, u;
723
+ }, "drawEvents"), Bt = {
724
+ setConf: /* @__PURE__ */ r(() => {
725
+ }, "setConf"),
726
+ draw: Pt
727
+ }, Ft = /* @__PURE__ */ r((n) => {
728
+ let t = "";
729
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
730
+ n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], bt(n["lineColor" + e]) ? n["lineColor" + e] = kt(n["lineColor" + e], 20) : n["lineColor" + e] = _t(n["lineColor" + e], 20);
731
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
732
+ const a = "" + (17 - 3 * e);
733
+ t += `
734
+ .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
735
+ fill: ${n["cScale" + e]};
736
+ }
737
+ .section-${e - 1} text {
738
+ fill: ${n["cScaleLabel" + e]};
739
+ }
740
+ .node-icon-${e - 1} {
741
+ font-size: 40px;
742
+ color: ${n["cScaleLabel" + e]};
743
+ }
744
+ .section-edge-${e - 1}{
745
+ stroke: ${n["cScale" + e]};
746
+ }
747
+ .edge-depth-${e - 1}{
748
+ stroke-width: ${a};
749
+ }
750
+ .section-${e - 1} line {
751
+ stroke: ${n["cScaleInv" + e]} ;
752
+ stroke-width: 3;
753
+ }
754
+
755
+ .lineWrapper line{
756
+ stroke: ${n["cScaleLabel" + e]} ;
757
+ }
758
+
759
+ .disabled, .disabled circle, .disabled text {
760
+ fill: lightgray;
761
+ }
762
+ .disabled text {
763
+ fill: #efefef;
764
+ }
765
+ `;
766
+ }
767
+ return t;
768
+ }, "genSections"), Wt = /* @__PURE__ */ r((n) => `
769
+ .edge {
770
+ stroke-width: 3;
771
+ }
772
+ ${Ft(n)}
773
+ .section-root rect, .section-root path, .section-root circle {
774
+ fill: ${n.git0};
775
+ }
776
+ .section-root text {
777
+ fill: ${n.gitBranchLabel0};
778
+ }
779
+ .icon-container {
780
+ height:100%;
781
+ display: flex;
782
+ justify-content: center;
783
+ align-items: center;
784
+ }
785
+ .edge {
786
+ fill: none;
787
+ }
788
+ .eventWrapper {
789
+ filter: brightness(120%);
790
+ }
791
+ `, "getStyles"), qt = Wt, Yt = {
792
+ db: rt,
793
+ renderer: Bt,
794
+ parser: $t,
795
+ styles: qt
796
+ };
797
+ export {
798
+ Yt as diagram
799
+ };