@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,2504 @@
1
+ import { _ as f, a6 as An, a5 as Un, ao as En, an as In, a7 as Ln, a8 as On, g as _t, a9 as jt, aa as Hn, aG as nt, l as qt, ag as Wn, ae as Pn, at as zn, aH as ne, am as Bn, aI as en, aJ as Vn, aK as nn, aL as rn, aM as an, aN as jn, aO as xe } from "./index-BDD0CD9m.js";
2
+ import { f as Gn, u as Nn, e as Rn, R as Xn, E as Le } from "./linear-C-k9vokG-Md9dfBfB.js";
3
+ import { t as qn } from "./init-DjUOC4st-C8Nwz6AJ.js";
4
+ function Jn(t, e) {
5
+ let n;
6
+ if (e === void 0)
7
+ for (const r of t)
8
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
9
+ else {
10
+ let r = -1;
11
+ for (let a of t)
12
+ (a = e(a, ++r, t)) != null && (n < a || n === void 0 && a >= a) && (n = a);
13
+ }
14
+ return n;
15
+ }
16
+ function Kn(t, e) {
17
+ let n;
18
+ if (e === void 0)
19
+ for (const r of t)
20
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
21
+ else {
22
+ let r = -1;
23
+ for (let a of t)
24
+ (a = e(a, ++r, t)) != null && (n > a || n === void 0 && a >= a) && (n = a);
25
+ }
26
+ return n;
27
+ }
28
+ function Qn(t) {
29
+ return t;
30
+ }
31
+ var Nt = 1, re = 2, he = 3, Gt = 4, Oe = 1e-6;
32
+ function Zn(t) {
33
+ return "translate(" + t + ",0)";
34
+ }
35
+ function tr(t) {
36
+ return "translate(0," + t + ")";
37
+ }
38
+ function er(t) {
39
+ return (e) => +t(e);
40
+ }
41
+ function nr(t, e) {
42
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
43
+ }
44
+ function rr() {
45
+ return !this.__axis;
46
+ }
47
+ function sn(t, e) {
48
+ var n = [], r = null, a = null, s = 6, o = 6, y = 3, _ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, m = t === Nt || t === Gt ? -1 : 1, g = t === Gt || t === re ? "x" : "y", Y = t === Nt || t === he ? Zn : tr;
49
+ function x(w) {
50
+ var R = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), I = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Qn), D = Math.max(s, 0) + y, U = e.range(), z = +U[0] + _, E = +U[U.length - 1] + _, G = (e.bandwidth ? nr : er)(e.copy(), _), q = w.selection ? w.selection() : w, C = q.selectAll(".domain").data([null]), W = q.selectAll(".tick").data(R, e).order(), b = W.exit(), F = W.enter().append("g").attr("class", "tick"), $ = W.select("line"), M = W.select("text");
51
+ C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), W = W.merge(F), $ = $.merge(F.append("line").attr("stroke", "currentColor").attr(g + "2", m * s)), M = M.merge(F.append("text").attr("fill", "currentColor").attr(g, m * D).attr("dy", t === Nt ? "0em" : t === he ? "0.71em" : "0.32em")), w !== q && (C = C.transition(w), W = W.transition(w), $ = $.transition(w), M = M.transition(w), b = b.transition(w).attr("opacity", Oe).attr("transform", function(p) {
52
+ return isFinite(p = G(p)) ? Y(p + _) : this.getAttribute("transform");
53
+ }), F.attr("opacity", Oe).attr("transform", function(p) {
54
+ var S = this.parentNode.__axis;
55
+ return Y((S && isFinite(S = S(p)) ? S : G(p)) + _);
56
+ })), b.remove(), C.attr("d", t === Gt || t === re ? o ? "M" + m * o + "," + z + "H" + _ + "V" + E + "H" + m * o : "M" + _ + "," + z + "V" + E : o ? "M" + z + "," + m * o + "V" + _ + "H" + E + "V" + m * o : "M" + z + "," + _ + "H" + E), W.attr("opacity", 1).attr("transform", function(p) {
57
+ return Y(G(p) + _);
58
+ }), $.attr(g + "2", m * s), M.attr(g, m * D).text(I), q.filter(rr).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === re ? "start" : t === Gt ? "end" : "middle"), q.each(function() {
59
+ this.__axis = G;
60
+ });
61
+ }
62
+ return x.scale = function(w) {
63
+ return arguments.length ? (e = w, x) : e;
64
+ }, x.ticks = function() {
65
+ return n = Array.from(arguments), x;
66
+ }, x.tickArguments = function(w) {
67
+ return arguments.length ? (n = w == null ? [] : Array.from(w), x) : n.slice();
68
+ }, x.tickValues = function(w) {
69
+ return arguments.length ? (r = w == null ? null : Array.from(w), x) : r && r.slice();
70
+ }, x.tickFormat = function(w) {
71
+ return arguments.length ? (a = w, x) : a;
72
+ }, x.tickSize = function(w) {
73
+ return arguments.length ? (s = o = +w, x) : s;
74
+ }, x.tickSizeInner = function(w) {
75
+ return arguments.length ? (s = +w, x) : s;
76
+ }, x.tickSizeOuter = function(w) {
77
+ return arguments.length ? (o = +w, x) : o;
78
+ }, x.tickPadding = function(w) {
79
+ return arguments.length ? (y = +w, x) : y;
80
+ }, x.offset = function(w) {
81
+ return arguments.length ? (_ = +w, x) : _;
82
+ }, x;
83
+ }
84
+ function ir(t) {
85
+ return sn(Nt, t);
86
+ }
87
+ function ar(t) {
88
+ return sn(he, t);
89
+ }
90
+ const sr = Math.PI / 180, or = 180 / Math.PI, Jt = 18, on = 0.96422, cn = 1, ln = 0.82521, un = 4 / 29, Mt = 6 / 29, dn = 3 * Mt * Mt, cr = Mt * Mt * Mt;
91
+ function fn(t) {
92
+ if (t instanceof lt) return new lt(t.l, t.a, t.b, t.opacity);
93
+ if (t instanceof dt) return hn(t);
94
+ t instanceof en || (t = Vn(t));
95
+ var e = oe(t.r), n = oe(t.g), r = oe(t.b), a = ie((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / cn), s, o;
96
+ return e === n && n === r ? s = o = a : (s = ie((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / on), o = ie((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / ln)), new lt(116 * a - 16, 500 * (s - a), 200 * (a - o), t.opacity);
97
+ }
98
+ function lr(t, e, n, r) {
99
+ return arguments.length === 1 ? fn(t) : new lt(t, e, n, r ?? 1);
100
+ }
101
+ function lt(t, e, n, r) {
102
+ this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
103
+ }
104
+ nn(lt, lr, rn(an, {
105
+ brighter(t) {
106
+ return new lt(this.l + Jt * (t ?? 1), this.a, this.b, this.opacity);
107
+ },
108
+ darker(t) {
109
+ return new lt(this.l - Jt * (t ?? 1), this.a, this.b, this.opacity);
110
+ },
111
+ rgb() {
112
+ var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
113
+ return e = on * ae(e), t = cn * ae(t), n = ln * ae(n), new en(
114
+ se(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
115
+ se(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
116
+ se(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
117
+ this.opacity
118
+ );
119
+ }
120
+ }));
121
+ function ie(t) {
122
+ return t > cr ? Math.pow(t, 1 / 3) : t / dn + un;
123
+ }
124
+ function ae(t) {
125
+ return t > Mt ? t * t * t : dn * (t - un);
126
+ }
127
+ function se(t) {
128
+ return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
129
+ }
130
+ function oe(t) {
131
+ return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
132
+ }
133
+ function ur(t) {
134
+ if (t instanceof dt) return new dt(t.h, t.c, t.l, t.opacity);
135
+ if (t instanceof lt || (t = fn(t)), t.a === 0 && t.b === 0) return new dt(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
136
+ var e = Math.atan2(t.b, t.a) * or;
137
+ return new dt(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
138
+ }
139
+ function ge(t, e, n, r) {
140
+ return arguments.length === 1 ? ur(t) : new dt(t, e, n, r ?? 1);
141
+ }
142
+ function dt(t, e, n, r) {
143
+ this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
144
+ }
145
+ function hn(t) {
146
+ if (isNaN(t.h)) return new lt(t.l, 0, 0, t.opacity);
147
+ var e = t.h * sr;
148
+ return new lt(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
149
+ }
150
+ nn(dt, ge, rn(an, {
151
+ brighter(t) {
152
+ return new dt(this.h, this.c, this.l + Jt * (t ?? 1), this.opacity);
153
+ },
154
+ darker(t) {
155
+ return new dt(this.h, this.c, this.l - Jt * (t ?? 1), this.opacity);
156
+ },
157
+ rgb() {
158
+ return hn(this).rgb();
159
+ }
160
+ }));
161
+ function dr(t) {
162
+ return function(e, n) {
163
+ var r = t((e = ge(e)).h, (n = ge(n)).h), a = ne(e.c, n.c), s = ne(e.l, n.l), o = ne(e.opacity, n.opacity);
164
+ return function(y) {
165
+ return e.h = r(y), e.c = a(y), e.l = s(y), e.opacity = o(y), e + "";
166
+ };
167
+ };
168
+ }
169
+ const fr = dr(jn);
170
+ function hr(t, e) {
171
+ t = t.slice();
172
+ var n = 0, r = t.length - 1, a = t[n], s = t[r], o;
173
+ return s < a && (o = n, n = r, r = o, o = a, a = s, s = o), t[n] = e.floor(a), t[r] = e.ceil(s), t;
174
+ }
175
+ const ce = /* @__PURE__ */ new Date(), le = /* @__PURE__ */ new Date();
176
+ function Z(t, e, n, r) {
177
+ function a(s) {
178
+ return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
179
+ }
180
+ return a.floor = (s) => (t(s = /* @__PURE__ */ new Date(+s)), s), a.ceil = (s) => (t(s = new Date(s - 1)), e(s, 1), t(s), s), a.round = (s) => {
181
+ const o = a(s), y = a.ceil(s);
182
+ return s - o < y - s ? o : y;
183
+ }, a.offset = (s, o) => (e(s = /* @__PURE__ */ new Date(+s), o == null ? 1 : Math.floor(o)), s), a.range = (s, o, y) => {
184
+ const _ = [];
185
+ if (s = a.ceil(s), y = y == null ? 1 : Math.floor(y), !(s < o) || !(y > 0)) return _;
186
+ let m;
187
+ do
188
+ _.push(m = /* @__PURE__ */ new Date(+s)), e(s, y), t(s);
189
+ while (m < s && s < o);
190
+ return _;
191
+ }, a.filter = (s) => Z((o) => {
192
+ if (o >= o) for (; t(o), !s(o); ) o.setTime(o - 1);
193
+ }, (o, y) => {
194
+ if (o >= o)
195
+ if (y < 0) for (; ++y <= 0; )
196
+ for (; e(o, -1), !s(o); )
197
+ ;
198
+ else for (; --y >= 0; )
199
+ for (; e(o, 1), !s(o); )
200
+ ;
201
+ }), n && (a.count = (s, o) => (ce.setTime(+s), le.setTime(+o), t(ce), t(le), Math.floor(n(ce, le))), a.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? a.filter(r ? (o) => r(o) % s === 0 : (o) => a.count(0, o) % s === 0) : a)), a;
202
+ }
203
+ const $t = Z(() => {
204
+ }, (t, e) => {
205
+ t.setTime(+t + e);
206
+ }, (t, e) => e - t);
207
+ $t.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? Z((e) => {
208
+ e.setTime(Math.floor(e / t) * t);
209
+ }, (e, n) => {
210
+ e.setTime(+e + n * t);
211
+ }, (e, n) => (n - e) / t) : $t);
212
+ $t.range;
213
+ const ft = 1e3, at = ft * 60, ht = at * 60, gt = ht * 24, we = gt * 7, He = gt * 30, ue = gt * 365, mt = Z((t) => {
214
+ t.setTime(t - t.getMilliseconds());
215
+ }, (t, e) => {
216
+ t.setTime(+t + e * ft);
217
+ }, (t, e) => (e - t) / ft, (t) => t.getUTCSeconds());
218
+ mt.range;
219
+ const It = Z((t) => {
220
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * ft);
221
+ }, (t, e) => {
222
+ t.setTime(+t + e * at);
223
+ }, (t, e) => (e - t) / at, (t) => t.getMinutes());
224
+ It.range;
225
+ const gr = Z((t) => {
226
+ t.setUTCSeconds(0, 0);
227
+ }, (t, e) => {
228
+ t.setTime(+t + e * at);
229
+ }, (t, e) => (e - t) / at, (t) => t.getUTCMinutes());
230
+ gr.range;
231
+ const Lt = Z((t) => {
232
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * ft - t.getMinutes() * at);
233
+ }, (t, e) => {
234
+ t.setTime(+t + e * ht);
235
+ }, (t, e) => (e - t) / ht, (t) => t.getHours());
236
+ Lt.range;
237
+ const yr = Z((t) => {
238
+ t.setUTCMinutes(0, 0, 0);
239
+ }, (t, e) => {
240
+ t.setTime(+t + e * ht);
241
+ }, (t, e) => (e - t) / ht, (t) => t.getUTCHours());
242
+ yr.range;
243
+ const Tt = Z(
244
+ (t) => t.setHours(0, 0, 0, 0),
245
+ (t, e) => t.setDate(t.getDate() + e),
246
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * at) / gt,
247
+ (t) => t.getDate() - 1
248
+ );
249
+ Tt.range;
250
+ const Ce = Z((t) => {
251
+ t.setUTCHours(0, 0, 0, 0);
252
+ }, (t, e) => {
253
+ t.setUTCDate(t.getUTCDate() + e);
254
+ }, (t, e) => (e - t) / gt, (t) => t.getUTCDate() - 1);
255
+ Ce.range;
256
+ const mr = Z((t) => {
257
+ t.setUTCHours(0, 0, 0, 0);
258
+ }, (t, e) => {
259
+ t.setUTCDate(t.getUTCDate() + e);
260
+ }, (t, e) => (e - t) / gt, (t) => Math.floor(t / gt));
261
+ mr.range;
262
+ function xt(t) {
263
+ return Z((e) => {
264
+ e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
265
+ }, (e, n) => {
266
+ e.setDate(e.getDate() + n * 7);
267
+ }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * at) / we);
268
+ }
269
+ const Wt = xt(0), Ot = xt(1), gn = xt(2), yn = xt(3), vt = xt(4), mn = xt(5), kn = xt(6);
270
+ Wt.range;
271
+ Ot.range;
272
+ gn.range;
273
+ yn.range;
274
+ vt.range;
275
+ mn.range;
276
+ kn.range;
277
+ function wt(t) {
278
+ return Z((e) => {
279
+ e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
280
+ }, (e, n) => {
281
+ e.setUTCDate(e.getUTCDate() + n * 7);
282
+ }, (e, n) => (n - e) / we);
283
+ }
284
+ const pn = wt(0), Kt = wt(1), kr = wt(2), pr = wt(3), Ft = wt(4), Tr = wt(5), vr = wt(6);
285
+ pn.range;
286
+ Kt.range;
287
+ kr.range;
288
+ pr.range;
289
+ Ft.range;
290
+ Tr.range;
291
+ vr.range;
292
+ const Ht = Z((t) => {
293
+ t.setDate(1), t.setHours(0, 0, 0, 0);
294
+ }, (t, e) => {
295
+ t.setMonth(t.getMonth() + e);
296
+ }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
297
+ Ht.range;
298
+ const br = Z((t) => {
299
+ t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
300
+ }, (t, e) => {
301
+ t.setUTCMonth(t.getUTCMonth() + e);
302
+ }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
303
+ br.range;
304
+ const yt = Z((t) => {
305
+ t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
306
+ }, (t, e) => {
307
+ t.setFullYear(t.getFullYear() + e);
308
+ }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
309
+ yt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Z((e) => {
310
+ e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
311
+ }, (e, n) => {
312
+ e.setFullYear(e.getFullYear() + n * t);
313
+ });
314
+ yt.range;
315
+ const bt = Z((t) => {
316
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
317
+ }, (t, e) => {
318
+ t.setUTCFullYear(t.getUTCFullYear() + e);
319
+ }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
320
+ bt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Z((e) => {
321
+ e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
322
+ }, (e, n) => {
323
+ e.setUTCFullYear(e.getUTCFullYear() + n * t);
324
+ });
325
+ bt.range;
326
+ function xr(t, e, n, r, a, s) {
327
+ const o = [
328
+ [mt, 1, ft],
329
+ [mt, 5, 5 * ft],
330
+ [mt, 15, 15 * ft],
331
+ [mt, 30, 30 * ft],
332
+ [s, 1, at],
333
+ [s, 5, 5 * at],
334
+ [s, 15, 15 * at],
335
+ [s, 30, 30 * at],
336
+ [a, 1, ht],
337
+ [a, 3, 3 * ht],
338
+ [a, 6, 6 * ht],
339
+ [a, 12, 12 * ht],
340
+ [r, 1, gt],
341
+ [r, 2, 2 * gt],
342
+ [n, 1, we],
343
+ [e, 1, He],
344
+ [e, 3, 3 * He],
345
+ [t, 1, ue]
346
+ ];
347
+ function y(m, g, Y) {
348
+ const x = g < m;
349
+ x && ([m, g] = [g, m]);
350
+ const w = Y && typeof Y.range == "function" ? Y : _(m, g, Y), R = w ? w.range(m, +g + 1) : [];
351
+ return x ? R.reverse() : R;
352
+ }
353
+ function _(m, g, Y) {
354
+ const x = Math.abs(g - m) / Y, w = Xn(([, , D]) => D).right(o, x);
355
+ if (w === o.length) return t.every(Le(m / ue, g / ue, Y));
356
+ if (w === 0) return $t.every(Math.max(Le(m, g, Y), 1));
357
+ const [R, I] = o[x / o[w - 1][2] < o[w][2] / x ? w - 1 : w];
358
+ return R.every(I);
359
+ }
360
+ return [y, _];
361
+ }
362
+ const [wr, Cr] = xr(yt, Ht, Wt, Tt, Lt, It);
363
+ function de(t) {
364
+ if (0 <= t.y && t.y < 100) {
365
+ var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
366
+ return e.setFullYear(t.y), e;
367
+ }
368
+ return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
369
+ }
370
+ function fe(t) {
371
+ if (0 <= t.y && t.y < 100) {
372
+ var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
373
+ return e.setUTCFullYear(t.y), e;
374
+ }
375
+ return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
376
+ }
377
+ function At(t, e, n) {
378
+ return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
379
+ }
380
+ function Dr(t) {
381
+ var e = t.dateTime, n = t.date, r = t.time, a = t.periods, s = t.days, o = t.shortDays, y = t.months, _ = t.shortMonths, m = Ut(a), g = Et(a), Y = Ut(s), x = Et(s), w = Ut(o), R = Et(o), I = Ut(y), D = Et(y), U = Ut(_), z = Et(_), E = {
382
+ a: v,
383
+ A: i,
384
+ b: T,
385
+ B: c,
386
+ c: null,
387
+ d: je,
388
+ e: je,
389
+ f: Xr,
390
+ g: ii,
391
+ G: si,
392
+ H: Gr,
393
+ I: Nr,
394
+ j: Rr,
395
+ L: Tn,
396
+ m: qr,
397
+ M: Jr,
398
+ p: L,
399
+ q: A,
400
+ Q: Re,
401
+ s: Xe,
402
+ S: Kr,
403
+ u: Qr,
404
+ U: Zr,
405
+ V: ti,
406
+ w: ei,
407
+ W: ni,
408
+ x: null,
409
+ X: null,
410
+ y: ri,
411
+ Y: ai,
412
+ Z: oi,
413
+ "%": Ne
414
+ }, G = {
415
+ a: X,
416
+ A: N,
417
+ b: kt,
418
+ B: J,
419
+ c: null,
420
+ d: Ge,
421
+ e: Ge,
422
+ f: di,
423
+ g: bi,
424
+ G: wi,
425
+ H: ci,
426
+ I: li,
427
+ j: ui,
428
+ L: bn,
429
+ m: fi,
430
+ M: hi,
431
+ p: st,
432
+ q: pt,
433
+ Q: Re,
434
+ s: Xe,
435
+ S: gi,
436
+ u: yi,
437
+ U: mi,
438
+ V: ki,
439
+ w: pi,
440
+ W: Ti,
441
+ x: null,
442
+ X: null,
443
+ y: vi,
444
+ Y: xi,
445
+ Z: Ci,
446
+ "%": Ne
447
+ }, q = {
448
+ a: $,
449
+ A: M,
450
+ b: p,
451
+ B: S,
452
+ c: l,
453
+ d: Be,
454
+ e: Be,
455
+ f: zr,
456
+ g: ze,
457
+ G: Pe,
458
+ H: Ve,
459
+ I: Ve,
460
+ j: Or,
461
+ L: Pr,
462
+ m: Lr,
463
+ M: Hr,
464
+ p: F,
465
+ q: Ir,
466
+ Q: Vr,
467
+ s: jr,
468
+ S: Wr,
469
+ u: Fr,
470
+ U: Yr,
471
+ V: Ar,
472
+ w: $r,
473
+ W: Ur,
474
+ x: h,
475
+ X: d,
476
+ y: ze,
477
+ Y: Pe,
478
+ Z: Er,
479
+ "%": Br
480
+ };
481
+ E.x = C(n, E), E.X = C(r, E), E.c = C(e, E), G.x = C(n, G), G.X = C(r, G), G.c = C(e, G);
482
+ function C(k, O) {
483
+ return function(P) {
484
+ var u = [], B = -1, H = 0, j = k.length, K, tt, ot;
485
+ for (P instanceof Date || (P = /* @__PURE__ */ new Date(+P)); ++B < j; )
486
+ k.charCodeAt(B) === 37 && (u.push(k.slice(H, B)), (tt = We[K = k.charAt(++B)]) != null ? K = k.charAt(++B) : tt = K === "e" ? " " : "0", (ot = O[K]) && (K = ot(P, tt)), u.push(K), H = B + 1);
487
+ return u.push(k.slice(H, B)), u.join("");
488
+ };
489
+ }
490
+ function W(k, O) {
491
+ return function(P) {
492
+ var u = At(1900, void 0, 1), B = b(u, k, P += "", 0), H, j;
493
+ if (B != P.length) return null;
494
+ if ("Q" in u) return new Date(u.Q);
495
+ if ("s" in u) return new Date(u.s * 1e3 + ("L" in u ? u.L : 0));
496
+ if (O && !("Z" in u) && (u.Z = 0), "p" in u && (u.H = u.H % 12 + u.p * 12), u.m === void 0 && (u.m = "q" in u ? u.q : 0), "V" in u) {
497
+ if (u.V < 1 || u.V > 53) return null;
498
+ "w" in u || (u.w = 1), "Z" in u ? (H = fe(At(u.y, 0, 1)), j = H.getUTCDay(), H = j > 4 || j === 0 ? Kt.ceil(H) : Kt(H), H = Ce.offset(H, (u.V - 1) * 7), u.y = H.getUTCFullYear(), u.m = H.getUTCMonth(), u.d = H.getUTCDate() + (u.w + 6) % 7) : (H = de(At(u.y, 0, 1)), j = H.getDay(), H = j > 4 || j === 0 ? Ot.ceil(H) : Ot(H), H = Tt.offset(H, (u.V - 1) * 7), u.y = H.getFullYear(), u.m = H.getMonth(), u.d = H.getDate() + (u.w + 6) % 7);
499
+ } else ("W" in u || "U" in u) && ("w" in u || (u.w = "u" in u ? u.u % 7 : "W" in u ? 1 : 0), j = "Z" in u ? fe(At(u.y, 0, 1)).getUTCDay() : de(At(u.y, 0, 1)).getDay(), u.m = 0, u.d = "W" in u ? (u.w + 6) % 7 + u.W * 7 - (j + 5) % 7 : u.w + u.U * 7 - (j + 6) % 7);
500
+ return "Z" in u ? (u.H += u.Z / 100 | 0, u.M += u.Z % 100, fe(u)) : de(u);
501
+ };
502
+ }
503
+ function b(k, O, P, u) {
504
+ for (var B = 0, H = O.length, j = P.length, K, tt; B < H; ) {
505
+ if (u >= j) return -1;
506
+ if (K = O.charCodeAt(B++), K === 37) {
507
+ if (K = O.charAt(B++), tt = q[K in We ? O.charAt(B++) : K], !tt || (u = tt(k, P, u)) < 0) return -1;
508
+ } else if (K != P.charCodeAt(u++))
509
+ return -1;
510
+ }
511
+ return u;
512
+ }
513
+ function F(k, O, P) {
514
+ var u = m.exec(O.slice(P));
515
+ return u ? (k.p = g.get(u[0].toLowerCase()), P + u[0].length) : -1;
516
+ }
517
+ function $(k, O, P) {
518
+ var u = w.exec(O.slice(P));
519
+ return u ? (k.w = R.get(u[0].toLowerCase()), P + u[0].length) : -1;
520
+ }
521
+ function M(k, O, P) {
522
+ var u = Y.exec(O.slice(P));
523
+ return u ? (k.w = x.get(u[0].toLowerCase()), P + u[0].length) : -1;
524
+ }
525
+ function p(k, O, P) {
526
+ var u = U.exec(O.slice(P));
527
+ return u ? (k.m = z.get(u[0].toLowerCase()), P + u[0].length) : -1;
528
+ }
529
+ function S(k, O, P) {
530
+ var u = I.exec(O.slice(P));
531
+ return u ? (k.m = D.get(u[0].toLowerCase()), P + u[0].length) : -1;
532
+ }
533
+ function l(k, O, P) {
534
+ return b(k, e, O, P);
535
+ }
536
+ function h(k, O, P) {
537
+ return b(k, n, O, P);
538
+ }
539
+ function d(k, O, P) {
540
+ return b(k, r, O, P);
541
+ }
542
+ function v(k) {
543
+ return o[k.getDay()];
544
+ }
545
+ function i(k) {
546
+ return s[k.getDay()];
547
+ }
548
+ function T(k) {
549
+ return _[k.getMonth()];
550
+ }
551
+ function c(k) {
552
+ return y[k.getMonth()];
553
+ }
554
+ function L(k) {
555
+ return a[+(k.getHours() >= 12)];
556
+ }
557
+ function A(k) {
558
+ return 1 + ~~(k.getMonth() / 3);
559
+ }
560
+ function X(k) {
561
+ return o[k.getUTCDay()];
562
+ }
563
+ function N(k) {
564
+ return s[k.getUTCDay()];
565
+ }
566
+ function kt(k) {
567
+ return _[k.getUTCMonth()];
568
+ }
569
+ function J(k) {
570
+ return y[k.getUTCMonth()];
571
+ }
572
+ function st(k) {
573
+ return a[+(k.getUTCHours() >= 12)];
574
+ }
575
+ function pt(k) {
576
+ return 1 + ~~(k.getUTCMonth() / 3);
577
+ }
578
+ return {
579
+ format: function(k) {
580
+ var O = C(k += "", E);
581
+ return O.toString = function() {
582
+ return k;
583
+ }, O;
584
+ },
585
+ parse: function(k) {
586
+ var O = W(k += "", !1);
587
+ return O.toString = function() {
588
+ return k;
589
+ }, O;
590
+ },
591
+ utcFormat: function(k) {
592
+ var O = C(k += "", G);
593
+ return O.toString = function() {
594
+ return k;
595
+ }, O;
596
+ },
597
+ utcParse: function(k) {
598
+ var O = W(k += "", !0);
599
+ return O.toString = function() {
600
+ return k;
601
+ }, O;
602
+ }
603
+ };
604
+ }
605
+ var We = { "-": "", _: " ", 0: "0" }, et = /^\s*\d+/, _r = /^%/, Mr = /[\\^$*+?|[\]().{}]/g;
606
+ function V(t, e, n) {
607
+ var r = t < 0 ? "-" : "", a = (r ? -t : t) + "", s = a.length;
608
+ return r + (s < n ? new Array(n - s + 1).join(e) + a : a);
609
+ }
610
+ function Sr(t) {
611
+ return t.replace(Mr, "\\$&");
612
+ }
613
+ function Ut(t) {
614
+ return new RegExp("^(?:" + t.map(Sr).join("|") + ")", "i");
615
+ }
616
+ function Et(t) {
617
+ return new Map(t.map((e, n) => [e.toLowerCase(), n]));
618
+ }
619
+ function $r(t, e, n) {
620
+ var r = et.exec(e.slice(n, n + 1));
621
+ return r ? (t.w = +r[0], n + r[0].length) : -1;
622
+ }
623
+ function Fr(t, e, n) {
624
+ var r = et.exec(e.slice(n, n + 1));
625
+ return r ? (t.u = +r[0], n + r[0].length) : -1;
626
+ }
627
+ function Yr(t, e, n) {
628
+ var r = et.exec(e.slice(n, n + 2));
629
+ return r ? (t.U = +r[0], n + r[0].length) : -1;
630
+ }
631
+ function Ar(t, e, n) {
632
+ var r = et.exec(e.slice(n, n + 2));
633
+ return r ? (t.V = +r[0], n + r[0].length) : -1;
634
+ }
635
+ function Ur(t, e, n) {
636
+ var r = et.exec(e.slice(n, n + 2));
637
+ return r ? (t.W = +r[0], n + r[0].length) : -1;
638
+ }
639
+ function Pe(t, e, n) {
640
+ var r = et.exec(e.slice(n, n + 4));
641
+ return r ? (t.y = +r[0], n + r[0].length) : -1;
642
+ }
643
+ function ze(t, e, n) {
644
+ var r = et.exec(e.slice(n, n + 2));
645
+ return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
646
+ }
647
+ function Er(t, e, n) {
648
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
649
+ return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
650
+ }
651
+ function Ir(t, e, n) {
652
+ var r = et.exec(e.slice(n, n + 1));
653
+ return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
654
+ }
655
+ function Lr(t, e, n) {
656
+ var r = et.exec(e.slice(n, n + 2));
657
+ return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
658
+ }
659
+ function Be(t, e, n) {
660
+ var r = et.exec(e.slice(n, n + 2));
661
+ return r ? (t.d = +r[0], n + r[0].length) : -1;
662
+ }
663
+ function Or(t, e, n) {
664
+ var r = et.exec(e.slice(n, n + 3));
665
+ return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
666
+ }
667
+ function Ve(t, e, n) {
668
+ var r = et.exec(e.slice(n, n + 2));
669
+ return r ? (t.H = +r[0], n + r[0].length) : -1;
670
+ }
671
+ function Hr(t, e, n) {
672
+ var r = et.exec(e.slice(n, n + 2));
673
+ return r ? (t.M = +r[0], n + r[0].length) : -1;
674
+ }
675
+ function Wr(t, e, n) {
676
+ var r = et.exec(e.slice(n, n + 2));
677
+ return r ? (t.S = +r[0], n + r[0].length) : -1;
678
+ }
679
+ function Pr(t, e, n) {
680
+ var r = et.exec(e.slice(n, n + 3));
681
+ return r ? (t.L = +r[0], n + r[0].length) : -1;
682
+ }
683
+ function zr(t, e, n) {
684
+ var r = et.exec(e.slice(n, n + 6));
685
+ return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
686
+ }
687
+ function Br(t, e, n) {
688
+ var r = _r.exec(e.slice(n, n + 1));
689
+ return r ? n + r[0].length : -1;
690
+ }
691
+ function Vr(t, e, n) {
692
+ var r = et.exec(e.slice(n));
693
+ return r ? (t.Q = +r[0], n + r[0].length) : -1;
694
+ }
695
+ function jr(t, e, n) {
696
+ var r = et.exec(e.slice(n));
697
+ return r ? (t.s = +r[0], n + r[0].length) : -1;
698
+ }
699
+ function je(t, e) {
700
+ return V(t.getDate(), e, 2);
701
+ }
702
+ function Gr(t, e) {
703
+ return V(t.getHours(), e, 2);
704
+ }
705
+ function Nr(t, e) {
706
+ return V(t.getHours() % 12 || 12, e, 2);
707
+ }
708
+ function Rr(t, e) {
709
+ return V(1 + Tt.count(yt(t), t), e, 3);
710
+ }
711
+ function Tn(t, e) {
712
+ return V(t.getMilliseconds(), e, 3);
713
+ }
714
+ function Xr(t, e) {
715
+ return Tn(t, e) + "000";
716
+ }
717
+ function qr(t, e) {
718
+ return V(t.getMonth() + 1, e, 2);
719
+ }
720
+ function Jr(t, e) {
721
+ return V(t.getMinutes(), e, 2);
722
+ }
723
+ function Kr(t, e) {
724
+ return V(t.getSeconds(), e, 2);
725
+ }
726
+ function Qr(t) {
727
+ var e = t.getDay();
728
+ return e === 0 ? 7 : e;
729
+ }
730
+ function Zr(t, e) {
731
+ return V(Wt.count(yt(t) - 1, t), e, 2);
732
+ }
733
+ function vn(t) {
734
+ var e = t.getDay();
735
+ return e >= 4 || e === 0 ? vt(t) : vt.ceil(t);
736
+ }
737
+ function ti(t, e) {
738
+ return t = vn(t), V(vt.count(yt(t), t) + (yt(t).getDay() === 4), e, 2);
739
+ }
740
+ function ei(t) {
741
+ return t.getDay();
742
+ }
743
+ function ni(t, e) {
744
+ return V(Ot.count(yt(t) - 1, t), e, 2);
745
+ }
746
+ function ri(t, e) {
747
+ return V(t.getFullYear() % 100, e, 2);
748
+ }
749
+ function ii(t, e) {
750
+ return t = vn(t), V(t.getFullYear() % 100, e, 2);
751
+ }
752
+ function ai(t, e) {
753
+ return V(t.getFullYear() % 1e4, e, 4);
754
+ }
755
+ function si(t, e) {
756
+ var n = t.getDay();
757
+ return t = n >= 4 || n === 0 ? vt(t) : vt.ceil(t), V(t.getFullYear() % 1e4, e, 4);
758
+ }
759
+ function oi(t) {
760
+ var e = t.getTimezoneOffset();
761
+ return (e > 0 ? "-" : (e *= -1, "+")) + V(e / 60 | 0, "0", 2) + V(e % 60, "0", 2);
762
+ }
763
+ function Ge(t, e) {
764
+ return V(t.getUTCDate(), e, 2);
765
+ }
766
+ function ci(t, e) {
767
+ return V(t.getUTCHours(), e, 2);
768
+ }
769
+ function li(t, e) {
770
+ return V(t.getUTCHours() % 12 || 12, e, 2);
771
+ }
772
+ function ui(t, e) {
773
+ return V(1 + Ce.count(bt(t), t), e, 3);
774
+ }
775
+ function bn(t, e) {
776
+ return V(t.getUTCMilliseconds(), e, 3);
777
+ }
778
+ function di(t, e) {
779
+ return bn(t, e) + "000";
780
+ }
781
+ function fi(t, e) {
782
+ return V(t.getUTCMonth() + 1, e, 2);
783
+ }
784
+ function hi(t, e) {
785
+ return V(t.getUTCMinutes(), e, 2);
786
+ }
787
+ function gi(t, e) {
788
+ return V(t.getUTCSeconds(), e, 2);
789
+ }
790
+ function yi(t) {
791
+ var e = t.getUTCDay();
792
+ return e === 0 ? 7 : e;
793
+ }
794
+ function mi(t, e) {
795
+ return V(pn.count(bt(t) - 1, t), e, 2);
796
+ }
797
+ function xn(t) {
798
+ var e = t.getUTCDay();
799
+ return e >= 4 || e === 0 ? Ft(t) : Ft.ceil(t);
800
+ }
801
+ function ki(t, e) {
802
+ return t = xn(t), V(Ft.count(bt(t), t) + (bt(t).getUTCDay() === 4), e, 2);
803
+ }
804
+ function pi(t) {
805
+ return t.getUTCDay();
806
+ }
807
+ function Ti(t, e) {
808
+ return V(Kt.count(bt(t) - 1, t), e, 2);
809
+ }
810
+ function vi(t, e) {
811
+ return V(t.getUTCFullYear() % 100, e, 2);
812
+ }
813
+ function bi(t, e) {
814
+ return t = xn(t), V(t.getUTCFullYear() % 100, e, 2);
815
+ }
816
+ function xi(t, e) {
817
+ return V(t.getUTCFullYear() % 1e4, e, 4);
818
+ }
819
+ function wi(t, e) {
820
+ var n = t.getUTCDay();
821
+ return t = n >= 4 || n === 0 ? Ft(t) : Ft.ceil(t), V(t.getUTCFullYear() % 1e4, e, 4);
822
+ }
823
+ function Ci() {
824
+ return "+0000";
825
+ }
826
+ function Ne() {
827
+ return "%";
828
+ }
829
+ function Re(t) {
830
+ return +t;
831
+ }
832
+ function Xe(t) {
833
+ return Math.floor(+t / 1e3);
834
+ }
835
+ var Dt, Qt;
836
+ Di({
837
+ dateTime: "%x, %X",
838
+ date: "%-m/%-d/%Y",
839
+ time: "%-I:%M:%S %p",
840
+ periods: ["AM", "PM"],
841
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
842
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
843
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
844
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
845
+ });
846
+ function Di(t) {
847
+ return Dt = Dr(t), Qt = Dt.format, Dt.parse, Dt.utcFormat, Dt.utcParse, Dt;
848
+ }
849
+ function _i(t) {
850
+ return new Date(t);
851
+ }
852
+ function Mi(t) {
853
+ return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
854
+ }
855
+ function wn(t, e, n, r, a, s, o, y, _, m) {
856
+ var g = Nn(), Y = g.invert, x = g.domain, w = m(".%L"), R = m(":%S"), I = m("%I:%M"), D = m("%I %p"), U = m("%a %d"), z = m("%b %d"), E = m("%B"), G = m("%Y");
857
+ function q(C) {
858
+ return (_(C) < C ? w : y(C) < C ? R : o(C) < C ? I : s(C) < C ? D : r(C) < C ? a(C) < C ? U : z : n(C) < C ? E : G)(C);
859
+ }
860
+ return g.invert = function(C) {
861
+ return new Date(Y(C));
862
+ }, g.domain = function(C) {
863
+ return arguments.length ? x(Array.from(C, Mi)) : x().map(_i);
864
+ }, g.ticks = function(C) {
865
+ var W = x();
866
+ return t(W[0], W[W.length - 1], C ?? 10);
867
+ }, g.tickFormat = function(C, W) {
868
+ return W == null ? q : m(W);
869
+ }, g.nice = function(C) {
870
+ var W = x();
871
+ return (!C || typeof C.range != "function") && (C = e(W[0], W[W.length - 1], C ?? 10)), C ? x(hr(W, C)) : g;
872
+ }, g.copy = function() {
873
+ return Rn(g, wn(t, e, n, r, a, s, o, y, _, m));
874
+ }, g;
875
+ }
876
+ function Si() {
877
+ return qn.apply(wn(wr, Cr, yt, Ht, Wt, Tt, Lt, It, mt, Qt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
878
+ }
879
+ var ye = { exports: {} }, $i = ye.exports, qe;
880
+ function Fi() {
881
+ return qe || (qe = 1, function(t, e) {
882
+ (function(n, r) {
883
+ t.exports = r();
884
+ })($i, function() {
885
+ var n = "day";
886
+ return function(r, a, s) {
887
+ var o = function(m) {
888
+ return m.add(4 - m.isoWeekday(), n);
889
+ }, y = a.prototype;
890
+ y.isoWeekYear = function() {
891
+ return o(this).year();
892
+ }, y.isoWeek = function(m) {
893
+ if (!this.$utils().u(m)) return this.add(7 * (m - this.isoWeek()), n);
894
+ var g, Y, x, w, R = o(this), I = (g = this.isoWeekYear(), Y = this.$u, x = (Y ? s.utc : s)().year(g).startOf("year"), w = 4 - x.isoWeekday(), x.isoWeekday() > 4 && (w += 7), x.add(w, n));
895
+ return R.diff(I, "week") + 1;
896
+ }, y.isoWeekday = function(m) {
897
+ return this.$utils().u(m) ? this.day() || 7 : this.day(this.day() % 7 ? m : m - 7);
898
+ };
899
+ var _ = y.startOf;
900
+ y.startOf = function(m, g) {
901
+ var Y = this.$utils(), x = !!Y.u(g) || g;
902
+ return Y.p(m) === "isoweek" ? x ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : _.bind(this)(m, g);
903
+ };
904
+ };
905
+ });
906
+ }(ye)), ye.exports;
907
+ }
908
+ var Yi = Fi();
909
+ const Ai = /* @__PURE__ */ xe(Yi);
910
+ var me = { exports: {} }, Ui = me.exports, Je;
911
+ function Ei() {
912
+ return Je || (Je = 1, function(t, e) {
913
+ (function(n, r) {
914
+ t.exports = r();
915
+ })(Ui, function() {
916
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, s = /\d\d/, o = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, _ = {}, m = function(D) {
917
+ return (D = +D) + (D > 68 ? 1900 : 2e3);
918
+ }, g = function(D) {
919
+ return function(U) {
920
+ this[D] = +U;
921
+ };
922
+ }, Y = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
923
+ (this.zone || (this.zone = {})).offset = function(U) {
924
+ if (!U || U === "Z") return 0;
925
+ var z = U.match(/([+-]|\d\d)/g), E = 60 * z[1] + (+z[2] || 0);
926
+ return E === 0 ? 0 : z[0] === "+" ? -E : E;
927
+ }(D);
928
+ }], x = function(D) {
929
+ var U = _[D];
930
+ return U && (U.indexOf ? U : U.s.concat(U.f));
931
+ }, w = function(D, U) {
932
+ var z, E = _.meridiem;
933
+ if (E) {
934
+ for (var G = 1; G <= 24; G += 1) if (D.indexOf(E(G, 0, U)) > -1) {
935
+ z = G > 12;
936
+ break;
937
+ }
938
+ } else z = D === (U ? "pm" : "PM");
939
+ return z;
940
+ }, R = { A: [y, function(D) {
941
+ this.afternoon = w(D, !1);
942
+ }], a: [y, function(D) {
943
+ this.afternoon = w(D, !0);
944
+ }], Q: [a, function(D) {
945
+ this.month = 3 * (D - 1) + 1;
946
+ }], S: [a, function(D) {
947
+ this.milliseconds = 100 * +D;
948
+ }], SS: [s, function(D) {
949
+ this.milliseconds = 10 * +D;
950
+ }], SSS: [/\d{3}/, function(D) {
951
+ this.milliseconds = +D;
952
+ }], s: [o, g("seconds")], ss: [o, g("seconds")], m: [o, g("minutes")], mm: [o, g("minutes")], H: [o, g("hours")], h: [o, g("hours")], HH: [o, g("hours")], hh: [o, g("hours")], D: [o, g("day")], DD: [s, g("day")], Do: [y, function(D) {
953
+ var U = _.ordinal, z = D.match(/\d+/);
954
+ if (this.day = z[0], U) for (var E = 1; E <= 31; E += 1) U(E).replace(/\[|\]/g, "") === D && (this.day = E);
955
+ }], w: [o, g("week")], ww: [s, g("week")], M: [o, g("month")], MM: [s, g("month")], MMM: [y, function(D) {
956
+ var U = x("months"), z = (x("monthsShort") || U.map(function(E) {
957
+ return E.slice(0, 3);
958
+ })).indexOf(D) + 1;
959
+ if (z < 1) throw new Error();
960
+ this.month = z % 12 || z;
961
+ }], MMMM: [y, function(D) {
962
+ var U = x("months").indexOf(D) + 1;
963
+ if (U < 1) throw new Error();
964
+ this.month = U % 12 || U;
965
+ }], Y: [/[+-]?\d+/, g("year")], YY: [s, function(D) {
966
+ this.year = m(D);
967
+ }], YYYY: [/\d{4}/, g("year")], Z: Y, ZZ: Y };
968
+ function I(D) {
969
+ var U, z;
970
+ U = D, z = _ && _.formats;
971
+ for (var E = (D = U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function($, M, p) {
972
+ var S = p && p.toUpperCase();
973
+ return M || z[p] || n[p] || z[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(l, h, d) {
974
+ return h || d.slice(1);
975
+ });
976
+ })).match(r), G = E.length, q = 0; q < G; q += 1) {
977
+ var C = E[q], W = R[C], b = W && W[0], F = W && W[1];
978
+ E[q] = F ? { regex: b, parser: F } : C.replace(/^\[|\]$/g, "");
979
+ }
980
+ return function($) {
981
+ for (var M = {}, p = 0, S = 0; p < G; p += 1) {
982
+ var l = E[p];
983
+ if (typeof l == "string") S += l.length;
984
+ else {
985
+ var h = l.regex, d = l.parser, v = $.slice(S), i = h.exec(v)[0];
986
+ d.call(M, i), $ = $.replace(i, "");
987
+ }
988
+ }
989
+ return function(T) {
990
+ var c = T.afternoon;
991
+ if (c !== void 0) {
992
+ var L = T.hours;
993
+ c ? L < 12 && (T.hours += 12) : L === 12 && (T.hours = 0), delete T.afternoon;
994
+ }
995
+ }(M), M;
996
+ };
997
+ }
998
+ return function(D, U, z) {
999
+ z.p.customParseFormat = !0, D && D.parseTwoDigitYear && (m = D.parseTwoDigitYear);
1000
+ var E = U.prototype, G = E.parse;
1001
+ E.parse = function(q) {
1002
+ var C = q.date, W = q.utc, b = q.args;
1003
+ this.$u = W;
1004
+ var F = b[1];
1005
+ if (typeof F == "string") {
1006
+ var $ = b[2] === !0, M = b[3] === !0, p = $ || M, S = b[2];
1007
+ M && (S = b[2]), _ = this.$locale(), !$ && S && (_ = z.Ls[S]), this.$d = function(v, i, T, c) {
1008
+ try {
1009
+ if (["x", "X"].indexOf(i) > -1) return new Date((i === "X" ? 1e3 : 1) * v);
1010
+ var L = I(i)(v), A = L.year, X = L.month, N = L.day, kt = L.hours, J = L.minutes, st = L.seconds, pt = L.milliseconds, k = L.zone, O = L.week, P = /* @__PURE__ */ new Date(), u = N || (A || X ? 1 : P.getDate()), B = A || P.getFullYear(), H = 0;
1011
+ A && !X || (H = X > 0 ? X - 1 : P.getMonth());
1012
+ var j, K = kt || 0, tt = J || 0, ot = st || 0, rt = pt || 0;
1013
+ return k ? new Date(Date.UTC(B, H, u, K, tt, ot, rt + 60 * k.offset * 1e3)) : T ? new Date(Date.UTC(B, H, u, K, tt, ot, rt)) : (j = new Date(B, H, u, K, tt, ot, rt), O && (j = c(j).week(O).toDate()), j);
1014
+ } catch {
1015
+ return /* @__PURE__ */ new Date("");
1016
+ }
1017
+ }(C, F, W, z), this.init(), S && S !== !0 && (this.$L = this.locale(S).$L), p && C != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), _ = {};
1018
+ } else if (F instanceof Array) for (var l = F.length, h = 1; h <= l; h += 1) {
1019
+ b[1] = F[h - 1];
1020
+ var d = z.apply(this, b);
1021
+ if (d.isValid()) {
1022
+ this.$d = d.$d, this.$L = d.$L, this.init();
1023
+ break;
1024
+ }
1025
+ h === l && (this.$d = /* @__PURE__ */ new Date(""));
1026
+ }
1027
+ else G.call(this, q);
1028
+ };
1029
+ };
1030
+ });
1031
+ }(me)), me.exports;
1032
+ }
1033
+ var Ii = Ei();
1034
+ const Li = /* @__PURE__ */ xe(Ii);
1035
+ var ke = { exports: {} }, Oi = ke.exports, Ke;
1036
+ function Hi() {
1037
+ return Ke || (Ke = 1, function(t, e) {
1038
+ (function(n, r) {
1039
+ t.exports = r();
1040
+ })(Oi, function() {
1041
+ return function(n, r) {
1042
+ var a = r.prototype, s = a.format;
1043
+ a.format = function(o) {
1044
+ var y = this, _ = this.$locale();
1045
+ if (!this.isValid()) return s.bind(this)(o);
1046
+ var m = this.$utils(), g = (o || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(Y) {
1047
+ switch (Y) {
1048
+ case "Q":
1049
+ return Math.ceil((y.$M + 1) / 3);
1050
+ case "Do":
1051
+ return _.ordinal(y.$D);
1052
+ case "gggg":
1053
+ return y.weekYear();
1054
+ case "GGGG":
1055
+ return y.isoWeekYear();
1056
+ case "wo":
1057
+ return _.ordinal(y.week(), "W");
1058
+ case "w":
1059
+ case "ww":
1060
+ return m.s(y.week(), Y === "w" ? 1 : 2, "0");
1061
+ case "W":
1062
+ case "WW":
1063
+ return m.s(y.isoWeek(), Y === "W" ? 1 : 2, "0");
1064
+ case "k":
1065
+ case "kk":
1066
+ return m.s(String(y.$H === 0 ? 24 : y.$H), Y === "k" ? 1 : 2, "0");
1067
+ case "X":
1068
+ return Math.floor(y.$d.getTime() / 1e3);
1069
+ case "x":
1070
+ return y.$d.getTime();
1071
+ case "z":
1072
+ return "[" + y.offsetName() + "]";
1073
+ case "zzz":
1074
+ return "[" + y.offsetName("long") + "]";
1075
+ default:
1076
+ return Y;
1077
+ }
1078
+ });
1079
+ return s.bind(this)(g);
1080
+ };
1081
+ };
1082
+ });
1083
+ }(ke)), ke.exports;
1084
+ }
1085
+ var Wi = Hi();
1086
+ const Pi = /* @__PURE__ */ xe(Wi);
1087
+ var pe = function() {
1088
+ var t = /* @__PURE__ */ f(function(S, l, h, d) {
1089
+ for (h = h || {}, d = S.length; d--; h[S[d]] = l) ;
1090
+ return h;
1091
+ }, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], r = [1, 27], a = [1, 28], s = [1, 29], o = [1, 30], y = [1, 31], _ = [1, 32], m = [1, 33], g = [1, 34], Y = [1, 9], x = [1, 10], w = [1, 11], R = [1, 12], I = [1, 13], D = [1, 14], U = [1, 15], z = [1, 16], E = [1, 19], G = [1, 20], q = [1, 21], C = [1, 22], W = [1, 23], b = [1, 25], F = [1, 35], $ = {
1092
+ trace: /* @__PURE__ */ f(function() {
1093
+ }, "trace"),
1094
+ yy: {},
1095
+ symbols_: { error: 2, start: 3, gantt: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NL: 10, weekday: 11, weekday_monday: 12, weekday_tuesday: 13, weekday_wednesday: 14, weekday_thursday: 15, weekday_friday: 16, weekday_saturday: 17, weekday_sunday: 18, weekend: 19, weekend_friday: 20, weekend_saturday: 21, dateFormat: 22, inclusiveEndDates: 23, topAxis: 24, axisFormat: 25, tickInterval: 26, excludes: 27, includes: 28, todayMarker: 29, title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, section: 36, clickStatement: 37, taskTxt: 38, taskData: 39, click: 40, callbackname: 41, callbackargs: 42, href: 43, clickStatementDebug: 44, $accept: 0, $end: 1 },
1096
+ terminals_: { 2: "error", 4: "gantt", 6: "EOF", 8: "SPACE", 10: "NL", 12: "weekday_monday", 13: "weekday_tuesday", 14: "weekday_wednesday", 15: "weekday_thursday", 16: "weekday_friday", 17: "weekday_saturday", 18: "weekday_sunday", 20: "weekend_friday", 21: "weekend_saturday", 22: "dateFormat", 23: "inclusiveEndDates", 24: "topAxis", 25: "axisFormat", 26: "tickInterval", 27: "excludes", 28: "includes", 29: "todayMarker", 30: "title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "section", 38: "taskTxt", 39: "taskData", 40: "click", 41: "callbackname", 42: "callbackargs", 43: "href" },
1097
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [19, 1], [19, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [37, 2], [37, 3], [37, 3], [37, 4], [37, 3], [37, 4], [37, 2], [44, 2], [44, 3], [44, 3], [44, 4], [44, 3], [44, 4], [44, 2]],
1098
+ performAction: /* @__PURE__ */ f(function(S, l, h, d, v, i, T) {
1099
+ var c = i.length - 1;
1100
+ switch (v) {
1101
+ case 1:
1102
+ return i[c - 1];
1103
+ case 2:
1104
+ this.$ = [];
1105
+ break;
1106
+ case 3:
1107
+ i[c - 1].push(i[c]), this.$ = i[c - 1];
1108
+ break;
1109
+ case 4:
1110
+ case 5:
1111
+ this.$ = i[c];
1112
+ break;
1113
+ case 6:
1114
+ case 7:
1115
+ this.$ = [];
1116
+ break;
1117
+ case 8:
1118
+ d.setWeekday("monday");
1119
+ break;
1120
+ case 9:
1121
+ d.setWeekday("tuesday");
1122
+ break;
1123
+ case 10:
1124
+ d.setWeekday("wednesday");
1125
+ break;
1126
+ case 11:
1127
+ d.setWeekday("thursday");
1128
+ break;
1129
+ case 12:
1130
+ d.setWeekday("friday");
1131
+ break;
1132
+ case 13:
1133
+ d.setWeekday("saturday");
1134
+ break;
1135
+ case 14:
1136
+ d.setWeekday("sunday");
1137
+ break;
1138
+ case 15:
1139
+ d.setWeekend("friday");
1140
+ break;
1141
+ case 16:
1142
+ d.setWeekend("saturday");
1143
+ break;
1144
+ case 17:
1145
+ d.setDateFormat(i[c].substr(11)), this.$ = i[c].substr(11);
1146
+ break;
1147
+ case 18:
1148
+ d.enableInclusiveEndDates(), this.$ = i[c].substr(18);
1149
+ break;
1150
+ case 19:
1151
+ d.TopAxis(), this.$ = i[c].substr(8);
1152
+ break;
1153
+ case 20:
1154
+ d.setAxisFormat(i[c].substr(11)), this.$ = i[c].substr(11);
1155
+ break;
1156
+ case 21:
1157
+ d.setTickInterval(i[c].substr(13)), this.$ = i[c].substr(13);
1158
+ break;
1159
+ case 22:
1160
+ d.setExcludes(i[c].substr(9)), this.$ = i[c].substr(9);
1161
+ break;
1162
+ case 23:
1163
+ d.setIncludes(i[c].substr(9)), this.$ = i[c].substr(9);
1164
+ break;
1165
+ case 24:
1166
+ d.setTodayMarker(i[c].substr(12)), this.$ = i[c].substr(12);
1167
+ break;
1168
+ case 27:
1169
+ d.setDiagramTitle(i[c].substr(6)), this.$ = i[c].substr(6);
1170
+ break;
1171
+ case 28:
1172
+ this.$ = i[c].trim(), d.setAccTitle(this.$);
1173
+ break;
1174
+ case 29:
1175
+ case 30:
1176
+ this.$ = i[c].trim(), d.setAccDescription(this.$);
1177
+ break;
1178
+ case 31:
1179
+ d.addSection(i[c].substr(8)), this.$ = i[c].substr(8);
1180
+ break;
1181
+ case 33:
1182
+ d.addTask(i[c - 1], i[c]), this.$ = "task";
1183
+ break;
1184
+ case 34:
1185
+ this.$ = i[c - 1], d.setClickEvent(i[c - 1], i[c], null);
1186
+ break;
1187
+ case 35:
1188
+ this.$ = i[c - 2], d.setClickEvent(i[c - 2], i[c - 1], i[c]);
1189
+ break;
1190
+ case 36:
1191
+ this.$ = i[c - 2], d.setClickEvent(i[c - 2], i[c - 1], null), d.setLink(i[c - 2], i[c]);
1192
+ break;
1193
+ case 37:
1194
+ this.$ = i[c - 3], d.setClickEvent(i[c - 3], i[c - 2], i[c - 1]), d.setLink(i[c - 3], i[c]);
1195
+ break;
1196
+ case 38:
1197
+ this.$ = i[c - 2], d.setClickEvent(i[c - 2], i[c], null), d.setLink(i[c - 2], i[c - 1]);
1198
+ break;
1199
+ case 39:
1200
+ this.$ = i[c - 3], d.setClickEvent(i[c - 3], i[c - 1], i[c]), d.setLink(i[c - 3], i[c - 2]);
1201
+ break;
1202
+ case 40:
1203
+ this.$ = i[c - 1], d.setLink(i[c - 1], i[c]);
1204
+ break;
1205
+ case 41:
1206
+ case 47:
1207
+ this.$ = i[c - 1] + " " + i[c];
1208
+ break;
1209
+ case 42:
1210
+ case 43:
1211
+ case 45:
1212
+ this.$ = i[c - 2] + " " + i[c - 1] + " " + i[c];
1213
+ break;
1214
+ case 44:
1215
+ case 46:
1216
+ this.$ = i[c - 3] + " " + i[c - 2] + " " + i[c - 1] + " " + i[c];
1217
+ break;
1218
+ }
1219
+ }, "anonymous"),
1220
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: a, 15: s, 16: o, 17: y, 18: _, 19: 18, 20: m, 21: g, 22: Y, 23: x, 24: w, 25: R, 26: I, 27: D, 28: U, 29: z, 30: E, 31: G, 33: q, 35: C, 36: W, 37: 24, 38: b, 40: F }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: a, 15: s, 16: o, 17: y, 18: _, 19: 18, 20: m, 21: g, 22: Y, 23: x, 24: w, 25: R, 26: I, 27: D, 28: U, 29: z, 30: E, 31: G, 33: q, 35: C, 36: W, 37: 24, 38: b, 40: F }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
1221
+ defaultActions: {},
1222
+ parseError: /* @__PURE__ */ f(function(S, l) {
1223
+ if (l.recoverable)
1224
+ this.trace(S);
1225
+ else {
1226
+ var h = new Error(S);
1227
+ throw h.hash = l, h;
1228
+ }
1229
+ }, "parseError"),
1230
+ parse: /* @__PURE__ */ f(function(S) {
1231
+ var l = this, h = [0], d = [], v = [null], i = [], T = this.table, c = "", L = 0, A = 0, X = 2, N = 1, kt = i.slice.call(arguments, 1), J = Object.create(this.lexer), st = { yy: {} };
1232
+ for (var pt in this.yy)
1233
+ Object.prototype.hasOwnProperty.call(this.yy, pt) && (st.yy[pt] = this.yy[pt]);
1234
+ J.setInput(S, st.yy), st.yy.lexer = J, st.yy.parser = this, typeof J.yylloc > "u" && (J.yylloc = {});
1235
+ var k = J.yylloc;
1236
+ i.push(k);
1237
+ var O = J.options && J.options.ranges;
1238
+ typeof st.yy.parseError == "function" ? this.parseError = st.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1239
+ function P(it) {
1240
+ h.length = h.length - 2 * it, v.length = v.length - it, i.length = i.length - it;
1241
+ }
1242
+ f(P, "popStack");
1243
+ function u() {
1244
+ var it;
1245
+ return it = d.pop() || J.lex() || N, typeof it != "number" && (it instanceof Array && (d = it, it = d.pop()), it = l.symbols_[it] || it), it;
1246
+ }
1247
+ f(u, "lex");
1248
+ for (var B, H, j, K, tt = {}, ot, rt, Ie, Vt; ; ) {
1249
+ if (H = h[h.length - 1], this.defaultActions[H] ? j = this.defaultActions[H] : ((B === null || typeof B > "u") && (B = u()), j = T[H] && T[H][B]), typeof j > "u" || !j.length || !j[0]) {
1250
+ var ee = "";
1251
+ Vt = [];
1252
+ for (ot in T[H])
1253
+ this.terminals_[ot] && ot > X && Vt.push("'" + this.terminals_[ot] + "'");
1254
+ J.showPosition ? ee = "Parse error on line " + (L + 1) + `:
1255
+ ` + J.showPosition() + `
1256
+ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ee = "Parse error on line " + (L + 1) + ": Unexpected " + (B == N ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(ee, {
1257
+ text: J.match,
1258
+ token: this.terminals_[B] || B,
1259
+ line: J.yylineno,
1260
+ loc: k,
1261
+ expected: Vt
1262
+ });
1263
+ }
1264
+ if (j[0] instanceof Array && j.length > 1)
1265
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + B);
1266
+ switch (j[0]) {
1267
+ case 1:
1268
+ h.push(B), v.push(J.yytext), i.push(J.yylloc), h.push(j[1]), B = null, A = J.yyleng, c = J.yytext, L = J.yylineno, k = J.yylloc;
1269
+ break;
1270
+ case 2:
1271
+ if (rt = this.productions_[j[1]][1], tt.$ = v[v.length - rt], tt._$ = {
1272
+ first_line: i[i.length - (rt || 1)].first_line,
1273
+ last_line: i[i.length - 1].last_line,
1274
+ first_column: i[i.length - (rt || 1)].first_column,
1275
+ last_column: i[i.length - 1].last_column
1276
+ }, O && (tt._$.range = [
1277
+ i[i.length - (rt || 1)].range[0],
1278
+ i[i.length - 1].range[1]
1279
+ ]), K = this.performAction.apply(tt, [
1280
+ c,
1281
+ A,
1282
+ L,
1283
+ st.yy,
1284
+ j[1],
1285
+ v,
1286
+ i
1287
+ ].concat(kt)), typeof K < "u")
1288
+ return K;
1289
+ rt && (h = h.slice(0, -1 * rt * 2), v = v.slice(0, -1 * rt), i = i.slice(0, -1 * rt)), h.push(this.productions_[j[1]][0]), v.push(tt.$), i.push(tt._$), Ie = T[h[h.length - 2]][h[h.length - 1]], h.push(Ie);
1290
+ break;
1291
+ case 3:
1292
+ return !0;
1293
+ }
1294
+ }
1295
+ return !0;
1296
+ }, "parse")
1297
+ }, M = /* @__PURE__ */ function() {
1298
+ var S = {
1299
+ EOF: 1,
1300
+ parseError: /* @__PURE__ */ f(function(l, h) {
1301
+ if (this.yy.parser)
1302
+ this.yy.parser.parseError(l, h);
1303
+ else
1304
+ throw new Error(l);
1305
+ }, "parseError"),
1306
+ // resets the lexer, sets new input
1307
+ setInput: /* @__PURE__ */ f(function(l, h) {
1308
+ return this.yy = h || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1309
+ first_line: 1,
1310
+ first_column: 0,
1311
+ last_line: 1,
1312
+ last_column: 0
1313
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1314
+ }, "setInput"),
1315
+ // consumes and returns one char from the input
1316
+ input: /* @__PURE__ */ f(function() {
1317
+ var l = this._input[0];
1318
+ this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
1319
+ var h = l.match(/(?:\r\n?|\n).*/g);
1320
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
1321
+ }, "input"),
1322
+ // unshifts one char (or a string) into the input
1323
+ unput: /* @__PURE__ */ f(function(l) {
1324
+ var h = l.length, d = l.split(/(?:\r\n?|\n)/g);
1325
+ this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
1326
+ var v = this.match.split(/(?:\r\n?|\n)/g);
1327
+ 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);
1328
+ var i = this.yylloc.range;
1329
+ return this.yylloc = {
1330
+ first_line: this.yylloc.first_line,
1331
+ last_line: this.yylineno + 1,
1332
+ first_column: this.yylloc.first_column,
1333
+ last_column: d ? (d.length === v.length ? this.yylloc.first_column : 0) + v[v.length - d.length].length - d[0].length : this.yylloc.first_column - h
1334
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
1335
+ }, "unput"),
1336
+ // When called from action, caches matched text and appends it on next action
1337
+ more: /* @__PURE__ */ f(function() {
1338
+ return this._more = !0, this;
1339
+ }, "more"),
1340
+ // 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.
1341
+ reject: /* @__PURE__ */ f(function() {
1342
+ if (this.options.backtrack_lexer)
1343
+ this._backtrack = !0;
1344
+ else
1345
+ 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).
1346
+ ` + this.showPosition(), {
1347
+ text: "",
1348
+ token: null,
1349
+ line: this.yylineno
1350
+ });
1351
+ return this;
1352
+ }, "reject"),
1353
+ // retain first n characters of the match
1354
+ less: /* @__PURE__ */ f(function(l) {
1355
+ this.unput(this.match.slice(l));
1356
+ }, "less"),
1357
+ // displays already matched input, i.e. for error messages
1358
+ pastInput: /* @__PURE__ */ f(function() {
1359
+ var l = this.matched.substr(0, this.matched.length - this.match.length);
1360
+ return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
1361
+ }, "pastInput"),
1362
+ // displays upcoming input, i.e. for error messages
1363
+ upcomingInput: /* @__PURE__ */ f(function() {
1364
+ var l = this.match;
1365
+ return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
1366
+ }, "upcomingInput"),
1367
+ // displays the character position where the lexing error occurred, i.e. for error messages
1368
+ showPosition: /* @__PURE__ */ f(function() {
1369
+ var l = this.pastInput(), h = new Array(l.length + 1).join("-");
1370
+ return l + this.upcomingInput() + `
1371
+ ` + h + "^";
1372
+ }, "showPosition"),
1373
+ // test the lexed token: return FALSE when not a match, otherwise return token
1374
+ test_match: /* @__PURE__ */ f(function(l, h) {
1375
+ var d, v, i;
1376
+ if (this.options.backtrack_lexer && (i = {
1377
+ yylineno: this.yylineno,
1378
+ yylloc: {
1379
+ first_line: this.yylloc.first_line,
1380
+ last_line: this.last_line,
1381
+ first_column: this.yylloc.first_column,
1382
+ last_column: this.yylloc.last_column
1383
+ },
1384
+ yytext: this.yytext,
1385
+ match: this.match,
1386
+ matches: this.matches,
1387
+ matched: this.matched,
1388
+ yyleng: this.yyleng,
1389
+ offset: this.offset,
1390
+ _more: this._more,
1391
+ _input: this._input,
1392
+ yy: this.yy,
1393
+ conditionStack: this.conditionStack.slice(0),
1394
+ done: this.done
1395
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), v = l[0].match(/(?:\r\n?|\n).*/g), v && (this.yylineno += v.length), this.yylloc = {
1396
+ first_line: this.yylloc.last_line,
1397
+ last_line: this.yylineno + 1,
1398
+ first_column: this.yylloc.last_column,
1399
+ last_column: v ? v[v.length - 1].length - v[v.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
1400
+ }, this.yytext += l[0], this.match += l[0], this.matches = l, 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(l[0].length), this.matched += l[0], d = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
1401
+ return d;
1402
+ if (this._backtrack) {
1403
+ for (var T in i)
1404
+ this[T] = i[T];
1405
+ return !1;
1406
+ }
1407
+ return !1;
1408
+ }, "test_match"),
1409
+ // return next match in input
1410
+ next: /* @__PURE__ */ f(function() {
1411
+ if (this.done)
1412
+ return this.EOF;
1413
+ this._input || (this.done = !0);
1414
+ var l, h, d, v;
1415
+ this._more || (this.yytext = "", this.match = "");
1416
+ for (var i = this._currentRules(), T = 0; T < i.length; T++)
1417
+ if (d = this._input.match(this.rules[i[T]]), d && (!h || d[0].length > h[0].length)) {
1418
+ if (h = d, v = T, this.options.backtrack_lexer) {
1419
+ if (l = this.test_match(d, i[T]), l !== !1)
1420
+ return l;
1421
+ if (this._backtrack) {
1422
+ h = !1;
1423
+ continue;
1424
+ } else
1425
+ return !1;
1426
+ } else if (!this.options.flex)
1427
+ break;
1428
+ }
1429
+ return h ? (l = this.test_match(h, i[v]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1430
+ ` + this.showPosition(), {
1431
+ text: "",
1432
+ token: null,
1433
+ line: this.yylineno
1434
+ });
1435
+ }, "next"),
1436
+ // return next match that has a token
1437
+ lex: /* @__PURE__ */ f(function() {
1438
+ var l = this.next();
1439
+ return l || this.lex();
1440
+ }, "lex"),
1441
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1442
+ begin: /* @__PURE__ */ f(function(l) {
1443
+ this.conditionStack.push(l);
1444
+ }, "begin"),
1445
+ // pop the previously active lexer condition state off the condition stack
1446
+ popState: /* @__PURE__ */ f(function() {
1447
+ var l = this.conditionStack.length - 1;
1448
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1449
+ }, "popState"),
1450
+ // produce the lexer rule set which is active for the currently active lexer condition state
1451
+ _currentRules: /* @__PURE__ */ f(function() {
1452
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1453
+ }, "_currentRules"),
1454
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1455
+ topState: /* @__PURE__ */ f(function(l) {
1456
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
1457
+ }, "topState"),
1458
+ // alias for begin(condition)
1459
+ pushState: /* @__PURE__ */ f(function(l) {
1460
+ this.begin(l);
1461
+ }, "pushState"),
1462
+ // return the number of states currently on the stack
1463
+ stateStackSize: /* @__PURE__ */ f(function() {
1464
+ return this.conditionStack.length;
1465
+ }, "stateStackSize"),
1466
+ options: { "case-insensitive": !0 },
1467
+ performAction: /* @__PURE__ */ f(function(l, h, d, v) {
1468
+ switch (d) {
1469
+ case 0:
1470
+ return this.begin("open_directive"), "open_directive";
1471
+ case 1:
1472
+ return this.begin("acc_title"), 31;
1473
+ case 2:
1474
+ return this.popState(), "acc_title_value";
1475
+ case 3:
1476
+ return this.begin("acc_descr"), 33;
1477
+ case 4:
1478
+ return this.popState(), "acc_descr_value";
1479
+ case 5:
1480
+ this.begin("acc_descr_multiline");
1481
+ break;
1482
+ case 6:
1483
+ this.popState();
1484
+ break;
1485
+ case 7:
1486
+ return "acc_descr_multiline_value";
1487
+ case 8:
1488
+ break;
1489
+ case 9:
1490
+ break;
1491
+ case 10:
1492
+ break;
1493
+ case 11:
1494
+ return 10;
1495
+ case 12:
1496
+ break;
1497
+ case 13:
1498
+ break;
1499
+ case 14:
1500
+ this.begin("href");
1501
+ break;
1502
+ case 15:
1503
+ this.popState();
1504
+ break;
1505
+ case 16:
1506
+ return 43;
1507
+ case 17:
1508
+ this.begin("callbackname");
1509
+ break;
1510
+ case 18:
1511
+ this.popState();
1512
+ break;
1513
+ case 19:
1514
+ this.popState(), this.begin("callbackargs");
1515
+ break;
1516
+ case 20:
1517
+ return 41;
1518
+ case 21:
1519
+ this.popState();
1520
+ break;
1521
+ case 22:
1522
+ return 42;
1523
+ case 23:
1524
+ this.begin("click");
1525
+ break;
1526
+ case 24:
1527
+ this.popState();
1528
+ break;
1529
+ case 25:
1530
+ return 40;
1531
+ case 26:
1532
+ return 4;
1533
+ case 27:
1534
+ return 22;
1535
+ case 28:
1536
+ return 23;
1537
+ case 29:
1538
+ return 24;
1539
+ case 30:
1540
+ return 25;
1541
+ case 31:
1542
+ return 26;
1543
+ case 32:
1544
+ return 28;
1545
+ case 33:
1546
+ return 27;
1547
+ case 34:
1548
+ return 29;
1549
+ case 35:
1550
+ return 12;
1551
+ case 36:
1552
+ return 13;
1553
+ case 37:
1554
+ return 14;
1555
+ case 38:
1556
+ return 15;
1557
+ case 39:
1558
+ return 16;
1559
+ case 40:
1560
+ return 17;
1561
+ case 41:
1562
+ return 18;
1563
+ case 42:
1564
+ return 20;
1565
+ case 43:
1566
+ return 21;
1567
+ case 44:
1568
+ return "date";
1569
+ case 45:
1570
+ return 30;
1571
+ case 46:
1572
+ return "accDescription";
1573
+ case 47:
1574
+ return 36;
1575
+ case 48:
1576
+ return 38;
1577
+ case 49:
1578
+ return 39;
1579
+ case 50:
1580
+ return ":";
1581
+ case 51:
1582
+ return 6;
1583
+ case 52:
1584
+ return "INVALID";
1585
+ }
1586
+ }, "anonymous"),
1587
+ rules: [/^(?:%%\{)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:%%(?!\{)*[^\n]*)/i, /^(?:[^\}]%%*[^\n]*)/i, /^(?:%%*[^\n]*[\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:%[^\n]*)/i, /^(?:href[\s]+["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:call[\s]+)/i, /^(?:\([\s]*\))/i, /^(?:\()/i, /^(?:[^(]*)/i, /^(?:\))/i, /^(?:[^)]*)/i, /^(?:click[\s]+)/i, /^(?:[\s\n])/i, /^(?:[^\s\n]*)/i, /^(?:gantt\b)/i, /^(?:dateFormat\s[^#\n;]+)/i, /^(?:inclusiveEndDates\b)/i, /^(?:topAxis\b)/i, /^(?:axisFormat\s[^#\n;]+)/i, /^(?:tickInterval\s[^#\n;]+)/i, /^(?:includes\s[^#\n;]+)/i, /^(?:excludes\s[^#\n;]+)/i, /^(?:todayMarker\s[^\n;]+)/i, /^(?:weekday\s+monday\b)/i, /^(?:weekday\s+tuesday\b)/i, /^(?:weekday\s+wednesday\b)/i, /^(?:weekday\s+thursday\b)/i, /^(?:weekday\s+friday\b)/i, /^(?:weekday\s+saturday\b)/i, /^(?:weekday\s+sunday\b)/i, /^(?:weekend\s+friday\b)/i, /^(?:weekend\s+saturday\b)/i, /^(?:\d\d\d\d-\d\d-\d\d\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accDescription\s[^#\n;]+)/i, /^(?:section\s[^\n]+)/i, /^(?:[^:\n]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
1588
+ conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, callbackargs: { rules: [21, 22], inclusive: !1 }, callbackname: { rules: [18, 19, 20], inclusive: !1 }, href: { rules: [15, 16], inclusive: !1 }, click: { rules: [24, 25], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 17, 23, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], inclusive: !0 } }
1589
+ };
1590
+ return S;
1591
+ }();
1592
+ $.lexer = M;
1593
+ function p() {
1594
+ this.yy = {};
1595
+ }
1596
+ return f(p, "Parser"), p.prototype = $, $.Parser = p, new p();
1597
+ }();
1598
+ pe.parser = pe;
1599
+ var zi = pe;
1600
+ nt.extend(Ai);
1601
+ nt.extend(Li);
1602
+ nt.extend(Pi);
1603
+ var Qe = { friday: 5, saturday: 6 }, ct = "", De = "", _e = void 0, Me = "", Pt = [], zt = [], Se = /* @__PURE__ */ new Map(), $e = [], Zt = [], Yt = "", Fe = "", Cn = ["active", "done", "crit", "milestone", "vert"], Ye = [], Bt = !1, Ae = !1, Ue = "sunday", te = "saturday", Te = 0, Bi = /* @__PURE__ */ f(function() {
1604
+ $e = [], Zt = [], Yt = "", Ye = [], Rt = 0, be = void 0, Xt = void 0, Q = [], ct = "", De = "", Fe = "", _e = void 0, Me = "", Pt = [], zt = [], Bt = !1, Ae = !1, Te = 0, Se = /* @__PURE__ */ new Map(), zn(), Ue = "sunday", te = "saturday";
1605
+ }, "clear"), Vi = /* @__PURE__ */ f(function(t) {
1606
+ De = t;
1607
+ }, "setAxisFormat"), ji = /* @__PURE__ */ f(function() {
1608
+ return De;
1609
+ }, "getAxisFormat"), Gi = /* @__PURE__ */ f(function(t) {
1610
+ _e = t;
1611
+ }, "setTickInterval"), Ni = /* @__PURE__ */ f(function() {
1612
+ return _e;
1613
+ }, "getTickInterval"), Ri = /* @__PURE__ */ f(function(t) {
1614
+ Me = t;
1615
+ }, "setTodayMarker"), Xi = /* @__PURE__ */ f(function() {
1616
+ return Me;
1617
+ }, "getTodayMarker"), qi = /* @__PURE__ */ f(function(t) {
1618
+ ct = t;
1619
+ }, "setDateFormat"), Ji = /* @__PURE__ */ f(function() {
1620
+ Bt = !0;
1621
+ }, "enableInclusiveEndDates"), Ki = /* @__PURE__ */ f(function() {
1622
+ return Bt;
1623
+ }, "endDatesAreInclusive"), Qi = /* @__PURE__ */ f(function() {
1624
+ Ae = !0;
1625
+ }, "enableTopAxis"), Zi = /* @__PURE__ */ f(function() {
1626
+ return Ae;
1627
+ }, "topAxisEnabled"), ta = /* @__PURE__ */ f(function(t) {
1628
+ Fe = t;
1629
+ }, "setDisplayMode"), ea = /* @__PURE__ */ f(function() {
1630
+ return Fe;
1631
+ }, "getDisplayMode"), na = /* @__PURE__ */ f(function() {
1632
+ return ct;
1633
+ }, "getDateFormat"), ra = /* @__PURE__ */ f(function(t) {
1634
+ Pt = t.toLowerCase().split(/[\s,]+/);
1635
+ }, "setIncludes"), ia = /* @__PURE__ */ f(function() {
1636
+ return Pt;
1637
+ }, "getIncludes"), aa = /* @__PURE__ */ f(function(t) {
1638
+ zt = t.toLowerCase().split(/[\s,]+/);
1639
+ }, "setExcludes"), sa = /* @__PURE__ */ f(function() {
1640
+ return zt;
1641
+ }, "getExcludes"), oa = /* @__PURE__ */ f(function() {
1642
+ return Se;
1643
+ }, "getLinks"), ca = /* @__PURE__ */ f(function(t) {
1644
+ Yt = t, $e.push(t);
1645
+ }, "addSection"), la = /* @__PURE__ */ f(function() {
1646
+ return $e;
1647
+ }, "getSections"), ua = /* @__PURE__ */ f(function() {
1648
+ let t = Ze();
1649
+ const e = 10;
1650
+ let n = 0;
1651
+ for (; !t && n < e; )
1652
+ t = Ze(), n++;
1653
+ return Zt = Q, Zt;
1654
+ }, "getTasks"), Dn = /* @__PURE__ */ f(function(t, e, n, r) {
1655
+ const a = t.format(e.trim()), s = t.format("YYYY-MM-DD");
1656
+ return r.includes(a) || r.includes(s) ? !1 : n.includes("weekends") && (t.isoWeekday() === Qe[te] || t.isoWeekday() === Qe[te] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(a) || n.includes(s);
1657
+ }, "isInvalidDate"), da = /* @__PURE__ */ f(function(t) {
1658
+ Ue = t;
1659
+ }, "setWeekday"), fa = /* @__PURE__ */ f(function() {
1660
+ return Ue;
1661
+ }, "getWeekday"), ha = /* @__PURE__ */ f(function(t) {
1662
+ te = t;
1663
+ }, "setWeekend"), _n = /* @__PURE__ */ f(function(t, e, n, r) {
1664
+ if (!n.length || t.manualEndTime)
1665
+ return;
1666
+ let a;
1667
+ t.startTime instanceof Date ? a = nt(t.startTime) : a = nt(t.startTime, e, !0), a = a.add(1, "d");
1668
+ let s;
1669
+ t.endTime instanceof Date ? s = nt(t.endTime) : s = nt(t.endTime, e, !0);
1670
+ const [o, y] = ga(
1671
+ a,
1672
+ s,
1673
+ e,
1674
+ n,
1675
+ r
1676
+ );
1677
+ t.endTime = o.toDate(), t.renderEndTime = y;
1678
+ }, "checkTaskDates"), ga = /* @__PURE__ */ f(function(t, e, n, r, a) {
1679
+ let s = !1, o = null;
1680
+ for (; t <= e; )
1681
+ s || (o = e.toDate()), s = Dn(t, n, r, a), s && (e = e.add(1, "d")), t = t.add(1, "d");
1682
+ return [e, o];
1683
+ }, "fixTaskDates"), ve = /* @__PURE__ */ f(function(t, e, n) {
1684
+ n = n.trim();
1685
+ const r = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
1686
+ if (r !== null) {
1687
+ let s = null;
1688
+ for (const y of r.groups.ids.split(" ")) {
1689
+ let _ = Ct(y);
1690
+ _ !== void 0 && (!s || _.endTime > s.endTime) && (s = _);
1691
+ }
1692
+ if (s)
1693
+ return s.endTime;
1694
+ const o = /* @__PURE__ */ new Date();
1695
+ return o.setHours(0, 0, 0, 0), o;
1696
+ }
1697
+ let a = nt(n, e.trim(), !0);
1698
+ if (a.isValid())
1699
+ return a.toDate();
1700
+ {
1701
+ qt.debug("Invalid date:" + n), qt.debug("With date format:" + e.trim());
1702
+ const s = new Date(n);
1703
+ if (s === void 0 || isNaN(s.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1704
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
1705
+ // This can cause virtually infinite loops while rendering, so for the
1706
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
1707
+ // invalid.
1708
+ s.getFullYear() < -1e4 || s.getFullYear() > 1e4)
1709
+ throw new Error("Invalid date:" + n);
1710
+ return s;
1711
+ }
1712
+ }, "getStartDate"), Mn = /* @__PURE__ */ f(function(t) {
1713
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1714
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1715
+ }, "parseDuration"), Sn = /* @__PURE__ */ f(function(t, e, n, r = !1) {
1716
+ n = n.trim();
1717
+ const a = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
1718
+ if (a !== null) {
1719
+ let m = null;
1720
+ for (const Y of a.groups.ids.split(" ")) {
1721
+ let x = Ct(Y);
1722
+ x !== void 0 && (!m || x.startTime < m.startTime) && (m = x);
1723
+ }
1724
+ if (m)
1725
+ return m.startTime;
1726
+ const g = /* @__PURE__ */ new Date();
1727
+ return g.setHours(0, 0, 0, 0), g;
1728
+ }
1729
+ let s = nt(n, e.trim(), !0);
1730
+ if (s.isValid())
1731
+ return r && (s = s.add(1, "d")), s.toDate();
1732
+ let o = nt(t);
1733
+ const [y, _] = Mn(n);
1734
+ if (!Number.isNaN(y)) {
1735
+ const m = o.add(y, _);
1736
+ m.isValid() && (o = m);
1737
+ }
1738
+ return o.toDate();
1739
+ }, "getEndDate"), Rt = 0, St = /* @__PURE__ */ f(function(t) {
1740
+ return t === void 0 ? (Rt = Rt + 1, "task" + Rt) : t;
1741
+ }, "parseId"), ya = /* @__PURE__ */ f(function(t, e) {
1742
+ let n;
1743
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1744
+ const r = n.split(","), a = {};
1745
+ Ee(r, a, Cn);
1746
+ for (let o = 0; o < r.length; o++)
1747
+ r[o] = r[o].trim();
1748
+ let s = "";
1749
+ switch (r.length) {
1750
+ case 1:
1751
+ a.id = St(), a.startTime = t.endTime, s = r[0];
1752
+ break;
1753
+ case 2:
1754
+ a.id = St(), a.startTime = ve(void 0, ct, r[0]), s = r[1];
1755
+ break;
1756
+ case 3:
1757
+ a.id = St(r[0]), a.startTime = ve(void 0, ct, r[1]), s = r[2];
1758
+ break;
1759
+ }
1760
+ return s && (a.endTime = Sn(a.startTime, ct, s, Bt), a.manualEndTime = nt(s, "YYYY-MM-DD", !0).isValid(), _n(a, ct, zt, Pt)), a;
1761
+ }, "compileData"), ma = /* @__PURE__ */ f(function(t, e) {
1762
+ let n;
1763
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1764
+ const r = n.split(","), a = {};
1765
+ Ee(r, a, Cn);
1766
+ for (let s = 0; s < r.length; s++)
1767
+ r[s] = r[s].trim();
1768
+ switch (r.length) {
1769
+ case 1:
1770
+ a.id = St(), a.startTime = {
1771
+ type: "prevTaskEnd",
1772
+ id: t
1773
+ }, a.endTime = {
1774
+ data: r[0]
1775
+ };
1776
+ break;
1777
+ case 2:
1778
+ a.id = St(), a.startTime = {
1779
+ type: "getStartDate",
1780
+ startData: r[0]
1781
+ }, a.endTime = {
1782
+ data: r[1]
1783
+ };
1784
+ break;
1785
+ case 3:
1786
+ a.id = St(r[0]), a.startTime = {
1787
+ type: "getStartDate",
1788
+ startData: r[1]
1789
+ }, a.endTime = {
1790
+ data: r[2]
1791
+ };
1792
+ break;
1793
+ }
1794
+ return a;
1795
+ }, "parseData"), be, Xt, Q = [], $n = {}, ka = /* @__PURE__ */ f(function(t, e) {
1796
+ const n = {
1797
+ section: Yt,
1798
+ type: Yt,
1799
+ processed: !1,
1800
+ manualEndTime: !1,
1801
+ renderEndTime: null,
1802
+ raw: { data: e },
1803
+ task: t,
1804
+ classes: []
1805
+ }, r = ma(Xt, e);
1806
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = Xt, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, n.order = Te, Te++;
1807
+ const a = Q.push(n);
1808
+ Xt = n.id, $n[n.id] = a - 1;
1809
+ }, "addTask"), Ct = /* @__PURE__ */ f(function(t) {
1810
+ const e = $n[t];
1811
+ return Q[e];
1812
+ }, "findTaskById"), pa = /* @__PURE__ */ f(function(t, e) {
1813
+ const n = {
1814
+ section: Yt,
1815
+ type: Yt,
1816
+ description: t,
1817
+ task: t,
1818
+ classes: []
1819
+ }, r = ya(be, e);
1820
+ n.startTime = r.startTime, n.endTime = r.endTime, n.id = r.id, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, be = n, Zt.push(n);
1821
+ }, "addTaskOrg"), Ze = /* @__PURE__ */ f(function() {
1822
+ const t = /* @__PURE__ */ f(function(n) {
1823
+ const r = Q[n];
1824
+ let a = "";
1825
+ switch (Q[n].raw.startTime.type) {
1826
+ case "prevTaskEnd": {
1827
+ const s = Ct(r.prevTaskId);
1828
+ r.startTime = s.endTime;
1829
+ break;
1830
+ }
1831
+ case "getStartDate":
1832
+ a = ve(void 0, ct, Q[n].raw.startTime.startData), a && (Q[n].startTime = a);
1833
+ break;
1834
+ }
1835
+ return Q[n].startTime && (Q[n].endTime = Sn(
1836
+ Q[n].startTime,
1837
+ ct,
1838
+ Q[n].raw.endTime.data,
1839
+ Bt
1840
+ ), Q[n].endTime && (Q[n].processed = !0, Q[n].manualEndTime = nt(
1841
+ Q[n].raw.endTime.data,
1842
+ "YYYY-MM-DD",
1843
+ !0
1844
+ ).isValid(), _n(Q[n], ct, zt, Pt))), Q[n].processed;
1845
+ }, "compileTask");
1846
+ let e = !0;
1847
+ for (const [n, r] of Q.entries())
1848
+ t(n), e = e && r.processed;
1849
+ return e;
1850
+ }, "compileTasks"), Ta = /* @__PURE__ */ f(function(t, e) {
1851
+ let n = e;
1852
+ _t().securityLevel !== "loose" && (n = Pn.sanitizeUrl(e)), t.split(",").forEach(function(r) {
1853
+ Ct(r) !== void 0 && (Yn(r, () => {
1854
+ window.open(n, "_self");
1855
+ }), Se.set(r, n));
1856
+ }), Fn(t, "clickable");
1857
+ }, "setLink"), Fn = /* @__PURE__ */ f(function(t, e) {
1858
+ t.split(",").forEach(function(n) {
1859
+ let r = Ct(n);
1860
+ r !== void 0 && r.classes.push(e);
1861
+ });
1862
+ }, "setClass"), va = /* @__PURE__ */ f(function(t, e, n) {
1863
+ if (_t().securityLevel !== "loose" || e === void 0)
1864
+ return;
1865
+ let r = [];
1866
+ if (typeof n == "string") {
1867
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1868
+ for (let a = 0; a < r.length; a++) {
1869
+ let s = r[a].trim();
1870
+ s.startsWith('"') && s.endsWith('"') && (s = s.substr(1, s.length - 2)), r[a] = s;
1871
+ }
1872
+ }
1873
+ r.length === 0 && r.push(t), Ct(t) !== void 0 && Yn(t, () => {
1874
+ Bn.runFunc(e, ...r);
1875
+ });
1876
+ }, "setClickFun"), Yn = /* @__PURE__ */ f(function(t, e) {
1877
+ Ye.push(
1878
+ function() {
1879
+ const n = document.querySelector(`[id="${t}"]`);
1880
+ n !== null && n.addEventListener("click", function() {
1881
+ e();
1882
+ });
1883
+ },
1884
+ function() {
1885
+ const n = document.querySelector(`[id="${t}-text"]`);
1886
+ n !== null && n.addEventListener("click", function() {
1887
+ e();
1888
+ });
1889
+ }
1890
+ );
1891
+ }, "pushFun"), ba = /* @__PURE__ */ f(function(t, e, n) {
1892
+ t.split(",").forEach(function(r) {
1893
+ va(r, e, n);
1894
+ }), Fn(t, "clickable");
1895
+ }, "setClickEvent"), xa = /* @__PURE__ */ f(function(t) {
1896
+ Ye.forEach(function(e) {
1897
+ e(t);
1898
+ });
1899
+ }, "bindFunctions"), wa = {
1900
+ getConfig: /* @__PURE__ */ f(() => _t().gantt, "getConfig"),
1901
+ clear: Bi,
1902
+ setDateFormat: qi,
1903
+ getDateFormat: na,
1904
+ enableInclusiveEndDates: Ji,
1905
+ endDatesAreInclusive: Ki,
1906
+ enableTopAxis: Qi,
1907
+ topAxisEnabled: Zi,
1908
+ setAxisFormat: Vi,
1909
+ getAxisFormat: ji,
1910
+ setTickInterval: Gi,
1911
+ getTickInterval: Ni,
1912
+ setTodayMarker: Ri,
1913
+ getTodayMarker: Xi,
1914
+ setAccTitle: On,
1915
+ getAccTitle: Ln,
1916
+ setDiagramTitle: In,
1917
+ getDiagramTitle: En,
1918
+ setDisplayMode: ta,
1919
+ getDisplayMode: ea,
1920
+ setAccDescription: Un,
1921
+ getAccDescription: An,
1922
+ addSection: ca,
1923
+ getSections: la,
1924
+ getTasks: ua,
1925
+ addTask: ka,
1926
+ findTaskById: Ct,
1927
+ addTaskOrg: pa,
1928
+ setIncludes: ra,
1929
+ getIncludes: ia,
1930
+ setExcludes: aa,
1931
+ getExcludes: sa,
1932
+ setClickEvent: ba,
1933
+ setLink: Ta,
1934
+ getLinks: oa,
1935
+ bindFunctions: xa,
1936
+ parseDuration: Mn,
1937
+ isInvalidDate: Dn,
1938
+ setWeekday: da,
1939
+ getWeekday: fa,
1940
+ setWeekend: ha
1941
+ };
1942
+ function Ee(t, e, n) {
1943
+ let r = !0;
1944
+ for (; r; )
1945
+ r = !1, n.forEach(function(a) {
1946
+ const s = "^\\s*" + a + "\\s*$", o = new RegExp(s);
1947
+ t[0].match(o) && (e[a] = !0, t.shift(1), r = !0);
1948
+ });
1949
+ }
1950
+ f(Ee, "getTaskTags");
1951
+ var Ca = /* @__PURE__ */ f(function() {
1952
+ qt.debug("Something is calling, setConf, remove the call");
1953
+ }, "setConf"), tn = {
1954
+ monday: Ot,
1955
+ tuesday: gn,
1956
+ wednesday: yn,
1957
+ thursday: vt,
1958
+ friday: mn,
1959
+ saturday: kn,
1960
+ sunday: Wt
1961
+ }, Da = /* @__PURE__ */ f((t, e) => {
1962
+ let n = [...t].map(() => -1 / 0), r = [...t].sort((s, o) => s.startTime - o.startTime || s.order - o.order), a = 0;
1963
+ for (const s of r)
1964
+ for (let o = 0; o < n.length; o++)
1965
+ if (s.startTime >= n[o]) {
1966
+ n[o] = s.endTime, s.order = o + e, o > a && (a = o);
1967
+ break;
1968
+ }
1969
+ return a;
1970
+ }, "getMaxIntersections"), ut, _a = /* @__PURE__ */ f(function(t, e, n, r) {
1971
+ const a = _t().gantt, s = _t().securityLevel;
1972
+ let o;
1973
+ s === "sandbox" && (o = jt("#i" + e));
1974
+ const y = s === "sandbox" ? jt(o.nodes()[0].contentDocument.body) : jt("body"), _ = s === "sandbox" ? o.nodes()[0].contentDocument : document, m = _.getElementById(e);
1975
+ ut = m.parentElement.offsetWidth, ut === void 0 && (ut = 1200), a.useWidth !== void 0 && (ut = a.useWidth);
1976
+ const g = r.db.getTasks();
1977
+ let Y = [];
1978
+ for (const b of g)
1979
+ Y.push(b.type);
1980
+ Y = W(Y);
1981
+ const x = {};
1982
+ let w = 2 * a.topPadding;
1983
+ if (r.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1984
+ const b = {};
1985
+ for (const $ of g)
1986
+ b[$.section] === void 0 ? b[$.section] = [$] : b[$.section].push($);
1987
+ let F = 0;
1988
+ for (const $ of Object.keys(b)) {
1989
+ const M = Da(b[$], F) + 1;
1990
+ F += M, w += M * (a.barHeight + a.barGap), x[$] = M;
1991
+ }
1992
+ } else {
1993
+ w += g.length * (a.barHeight + a.barGap);
1994
+ for (const b of Y)
1995
+ x[b] = g.filter((F) => F.type === b).length;
1996
+ }
1997
+ m.setAttribute("viewBox", "0 0 " + ut + " " + w);
1998
+ const R = y.select(`[id="${e}"]`), I = Si().domain([
1999
+ Kn(g, function(b) {
2000
+ return b.startTime;
2001
+ }),
2002
+ Jn(g, function(b) {
2003
+ return b.endTime;
2004
+ })
2005
+ ]).rangeRound([0, ut - a.leftPadding - a.rightPadding]);
2006
+ function D(b, F) {
2007
+ const $ = b.startTime, M = F.startTime;
2008
+ let p = 0;
2009
+ return $ > M ? p = 1 : $ < M && (p = -1), p;
2010
+ }
2011
+ f(D, "taskCompare"), g.sort(D), U(g, ut, w), Hn(R, w, ut, a.useMaxWidth), R.append("text").text(r.db.getDiagramTitle()).attr("x", ut / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
2012
+ function U(b, F, $) {
2013
+ const M = a.barHeight, p = M + a.barGap, S = a.topPadding, l = a.leftPadding, h = Gn().domain([0, Y.length]).range(["#00B9FA", "#F95002"]).interpolate(fr);
2014
+ E(
2015
+ p,
2016
+ S,
2017
+ l,
2018
+ F,
2019
+ $,
2020
+ b,
2021
+ r.db.getExcludes(),
2022
+ r.db.getIncludes()
2023
+ ), G(l, S, F, $), z(b, p, S, l, M, h, F), q(p, S), C(l, S, F, $);
2024
+ }
2025
+ f(U, "makeGantt");
2026
+ function z(b, F, $, M, p, S, l) {
2027
+ b.sort((i, T) => i.vert === T.vert ? 0 : i.vert ? 1 : -1);
2028
+ const h = [...new Set(b.map((i) => i.order))].map((i) => b.find((T) => T.order === i));
2029
+ R.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(i, T) {
2030
+ return T = i.order, T * F + $ - 2;
2031
+ }).attr("width", function() {
2032
+ return l - a.rightPadding / 2;
2033
+ }).attr("height", F).attr("class", function(i) {
2034
+ for (const [T, c] of Y.entries())
2035
+ if (i.type === c)
2036
+ return "section section" + T % a.numberSectionStyles;
2037
+ return "section section0";
2038
+ }).enter();
2039
+ const d = R.append("g").selectAll("rect").data(b).enter(), v = r.db.getLinks();
2040
+ if (d.append("rect").attr("id", function(i) {
2041
+ return i.id;
2042
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(i) {
2043
+ return i.milestone ? I(i.startTime) + M + 0.5 * (I(i.endTime) - I(i.startTime)) - 0.5 * p : I(i.startTime) + M;
2044
+ }).attr("y", function(i, T) {
2045
+ return T = i.order, i.vert ? a.gridLineStartPadding : T * F + $;
2046
+ }).attr("width", function(i) {
2047
+ return i.milestone ? p : i.vert ? 0.08 * p : I(i.renderEndTime || i.endTime) - I(i.startTime);
2048
+ }).attr("height", function(i) {
2049
+ return i.vert ? g.length * (a.barHeight + a.barGap) + a.barHeight * 2 : p;
2050
+ }).attr("transform-origin", function(i, T) {
2051
+ return T = i.order, (I(i.startTime) + M + 0.5 * (I(i.endTime) - I(i.startTime))).toString() + "px " + (T * F + $ + 0.5 * p).toString() + "px";
2052
+ }).attr("class", function(i) {
2053
+ const T = "task";
2054
+ let c = "";
2055
+ i.classes.length > 0 && (c = i.classes.join(" "));
2056
+ let L = 0;
2057
+ for (const [X, N] of Y.entries())
2058
+ i.type === N && (L = X % a.numberSectionStyles);
2059
+ let A = "";
2060
+ return i.active ? i.crit ? A += " activeCrit" : A = " active" : i.done ? i.crit ? A = " doneCrit" : A = " done" : i.crit && (A += " crit"), A.length === 0 && (A = " task"), i.milestone && (A = " milestone " + A), i.vert && (A = " vert " + A), A += L, A += " " + c, T + A;
2061
+ }), d.append("text").attr("id", function(i) {
2062
+ return i.id + "-text";
2063
+ }).text(function(i) {
2064
+ return i.task;
2065
+ }).attr("font-size", a.fontSize).attr("x", function(i) {
2066
+ let T = I(i.startTime), c = I(i.renderEndTime || i.endTime);
2067
+ if (i.milestone && (T += 0.5 * (I(i.endTime) - I(i.startTime)) - 0.5 * p, c = T + p), i.vert)
2068
+ return I(i.startTime) + M;
2069
+ const L = this.getBBox().width;
2070
+ return L > c - T ? c + L + 1.5 * a.leftPadding > l ? T + M - 5 : c + M + 5 : (c - T) / 2 + T + M;
2071
+ }).attr("y", function(i, T) {
2072
+ return i.vert ? a.gridLineStartPadding + g.length * (a.barHeight + a.barGap) + 60 : (T = i.order, T * F + a.barHeight / 2 + (a.fontSize / 2 - 2) + $);
2073
+ }).attr("text-height", p).attr("class", function(i) {
2074
+ const T = I(i.startTime);
2075
+ let c = I(i.endTime);
2076
+ i.milestone && (c = T + p);
2077
+ const L = this.getBBox().width;
2078
+ let A = "";
2079
+ i.classes.length > 0 && (A = i.classes.join(" "));
2080
+ let X = 0;
2081
+ for (const [kt, J] of Y.entries())
2082
+ i.type === J && (X = kt % a.numberSectionStyles);
2083
+ let N = "";
2084
+ return i.active && (i.crit ? N = "activeCritText" + X : N = "activeText" + X), i.done ? i.crit ? N = N + " doneCritText" + X : N = N + " doneText" + X : i.crit && (N = N + " critText" + X), i.milestone && (N += " milestoneText"), i.vert && (N += " vertText"), L > c - T ? c + L + 1.5 * a.leftPadding > l ? A + " taskTextOutsideLeft taskTextOutside" + X + " " + N : A + " taskTextOutsideRight taskTextOutside" + X + " " + N + " width-" + L : A + " taskText taskText" + X + " " + N + " width-" + L;
2085
+ }), _t().securityLevel === "sandbox") {
2086
+ let i;
2087
+ i = jt("#i" + e);
2088
+ const T = i.nodes()[0].contentDocument;
2089
+ d.filter(function(c) {
2090
+ return v.has(c.id);
2091
+ }).each(function(c) {
2092
+ var L = T.querySelector("#" + c.id), A = T.querySelector("#" + c.id + "-text");
2093
+ const X = L.parentNode;
2094
+ var N = T.createElement("a");
2095
+ N.setAttribute("xlink:href", v.get(c.id)), N.setAttribute("target", "_top"), X.appendChild(N), N.appendChild(L), N.appendChild(A);
2096
+ });
2097
+ }
2098
+ }
2099
+ f(z, "drawRects");
2100
+ function E(b, F, $, M, p, S, l, h) {
2101
+ if (l.length === 0 && h.length === 0)
2102
+ return;
2103
+ let d, v;
2104
+ for (const { startTime: A, endTime: X } of S)
2105
+ (d === void 0 || A < d) && (d = A), (v === void 0 || X > v) && (v = X);
2106
+ if (!d || !v)
2107
+ return;
2108
+ if (nt(v).diff(nt(d), "year") > 5) {
2109
+ qt.warn(
2110
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
2111
+ );
2112
+ return;
2113
+ }
2114
+ const i = r.db.getDateFormat(), T = [];
2115
+ let c = null, L = nt(d);
2116
+ for (; L.valueOf() <= v; )
2117
+ r.db.isInvalidDate(L, i, l, h) ? c ? c.end = L : c = {
2118
+ start: L,
2119
+ end: L
2120
+ } : c && (T.push(c), c = null), L = L.add(1, "d");
2121
+ R.append("g").selectAll("rect").data(T).enter().append("rect").attr("id", (A) => "exclude-" + A.start.format("YYYY-MM-DD")).attr("x", (A) => I(A.start.startOf("day")) + $).attr("y", a.gridLineStartPadding).attr("width", (A) => I(A.end.endOf("day")) - I(A.start.startOf("day"))).attr("height", p - F - a.gridLineStartPadding).attr("transform-origin", function(A, X) {
2122
+ return (I(A.start) + $ + 0.5 * (I(A.end) - I(A.start))).toString() + "px " + (X * b + 0.5 * p).toString() + "px";
2123
+ }).attr("class", "exclude-range");
2124
+ }
2125
+ f(E, "drawExcludeDays");
2126
+ function G(b, F, $, M) {
2127
+ const p = r.db.getDateFormat(), S = r.db.getAxisFormat();
2128
+ let l;
2129
+ S ? l = S : p === "D" ? l = "%d" : l = a.axisFormat ?? "%Y-%m-%d";
2130
+ let h = ar(I).tickSize(-M + F + a.gridLineStartPadding).tickFormat(Qt(l));
2131
+ const d = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
2132
+ r.db.getTickInterval() || a.tickInterval
2133
+ );
2134
+ if (d !== null) {
2135
+ const v = d[1], i = d[2], T = r.db.getWeekday() || a.weekday;
2136
+ switch (i) {
2137
+ case "millisecond":
2138
+ h.ticks($t.every(v));
2139
+ break;
2140
+ case "second":
2141
+ h.ticks(mt.every(v));
2142
+ break;
2143
+ case "minute":
2144
+ h.ticks(It.every(v));
2145
+ break;
2146
+ case "hour":
2147
+ h.ticks(Lt.every(v));
2148
+ break;
2149
+ case "day":
2150
+ h.ticks(Tt.every(v));
2151
+ break;
2152
+ case "week":
2153
+ h.ticks(tn[T].every(v));
2154
+ break;
2155
+ case "month":
2156
+ h.ticks(Ht.every(v));
2157
+ break;
2158
+ }
2159
+ }
2160
+ if (R.append("g").attr("class", "grid").attr("transform", "translate(" + b + ", " + (M - 50) + ")").call(h).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || a.topAxis) {
2161
+ let v = ir(I).tickSize(-M + F + a.gridLineStartPadding).tickFormat(Qt(l));
2162
+ if (d !== null) {
2163
+ const i = d[1], T = d[2], c = r.db.getWeekday() || a.weekday;
2164
+ switch (T) {
2165
+ case "millisecond":
2166
+ v.ticks($t.every(i));
2167
+ break;
2168
+ case "second":
2169
+ v.ticks(mt.every(i));
2170
+ break;
2171
+ case "minute":
2172
+ v.ticks(It.every(i));
2173
+ break;
2174
+ case "hour":
2175
+ v.ticks(Lt.every(i));
2176
+ break;
2177
+ case "day":
2178
+ v.ticks(Tt.every(i));
2179
+ break;
2180
+ case "week":
2181
+ v.ticks(tn[c].every(i));
2182
+ break;
2183
+ case "month":
2184
+ v.ticks(Ht.every(i));
2185
+ break;
2186
+ }
2187
+ }
2188
+ R.append("g").attr("class", "grid").attr("transform", "translate(" + b + ", " + F + ")").call(v).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2189
+ }
2190
+ }
2191
+ f(G, "makeGrid");
2192
+ function q(b, F) {
2193
+ let $ = 0;
2194
+ const M = Object.keys(x).map((p) => [p, x[p]]);
2195
+ R.append("g").selectAll("text").data(M).enter().append(function(p) {
2196
+ const S = p[0].split(Wn.lineBreakRegex), l = -(S.length - 1) / 2, h = _.createElementNS("http://www.w3.org/2000/svg", "text");
2197
+ h.setAttribute("dy", l + "em");
2198
+ for (const [d, v] of S.entries()) {
2199
+ const i = _.createElementNS("http://www.w3.org/2000/svg", "tspan");
2200
+ i.setAttribute("alignment-baseline", "central"), i.setAttribute("x", "10"), d > 0 && i.setAttribute("dy", "1em"), i.textContent = v, h.appendChild(i);
2201
+ }
2202
+ return h;
2203
+ }).attr("x", 10).attr("y", function(p, S) {
2204
+ if (S > 0)
2205
+ for (let l = 0; l < S; l++)
2206
+ return $ += M[S - 1][1], p[1] * b / 2 + $ * b + F;
2207
+ else
2208
+ return p[1] * b / 2 + F;
2209
+ }).attr("font-size", a.sectionFontSize).attr("class", function(p) {
2210
+ for (const [S, l] of Y.entries())
2211
+ if (p[0] === l)
2212
+ return "sectionTitle sectionTitle" + S % a.numberSectionStyles;
2213
+ return "sectionTitle";
2214
+ });
2215
+ }
2216
+ f(q, "vertLabels");
2217
+ function C(b, F, $, M) {
2218
+ const p = r.db.getTodayMarker();
2219
+ if (p === "off")
2220
+ return;
2221
+ const S = R.append("g").attr("class", "today"), l = /* @__PURE__ */ new Date(), h = S.append("line");
2222
+ h.attr("x1", I(l) + b).attr("x2", I(l) + b).attr("y1", a.titleTopMargin).attr("y2", M - a.titleTopMargin).attr("class", "today"), p !== "" && h.attr("style", p.replace(/,/g, ";"));
2223
+ }
2224
+ f(C, "drawToday");
2225
+ function W(b) {
2226
+ const F = {}, $ = [];
2227
+ for (let M = 0, p = b.length; M < p; ++M)
2228
+ Object.prototype.hasOwnProperty.call(F, b[M]) || (F[b[M]] = !0, $.push(b[M]));
2229
+ return $;
2230
+ }
2231
+ f(W, "checkUnique");
2232
+ }, "draw"), Ma = {
2233
+ setConf: Ca,
2234
+ draw: _a
2235
+ }, Sa = /* @__PURE__ */ f((t) => `
2236
+ .mermaid-main-font {
2237
+ font-family: ${t.fontFamily};
2238
+ }
2239
+
2240
+ .exclude-range {
2241
+ fill: ${t.excludeBkgColor};
2242
+ }
2243
+
2244
+ .section {
2245
+ stroke: none;
2246
+ opacity: 0.2;
2247
+ }
2248
+
2249
+ .section0 {
2250
+ fill: ${t.sectionBkgColor};
2251
+ }
2252
+
2253
+ .section2 {
2254
+ fill: ${t.sectionBkgColor2};
2255
+ }
2256
+
2257
+ .section1,
2258
+ .section3 {
2259
+ fill: ${t.altSectionBkgColor};
2260
+ opacity: 0.2;
2261
+ }
2262
+
2263
+ .sectionTitle0 {
2264
+ fill: ${t.titleColor};
2265
+ }
2266
+
2267
+ .sectionTitle1 {
2268
+ fill: ${t.titleColor};
2269
+ }
2270
+
2271
+ .sectionTitle2 {
2272
+ fill: ${t.titleColor};
2273
+ }
2274
+
2275
+ .sectionTitle3 {
2276
+ fill: ${t.titleColor};
2277
+ }
2278
+
2279
+ .sectionTitle {
2280
+ text-anchor: start;
2281
+ font-family: ${t.fontFamily};
2282
+ }
2283
+
2284
+
2285
+ /* Grid and axis */
2286
+
2287
+ .grid .tick {
2288
+ stroke: ${t.gridColor};
2289
+ opacity: 0.8;
2290
+ shape-rendering: crispEdges;
2291
+ }
2292
+
2293
+ .grid .tick text {
2294
+ font-family: ${t.fontFamily};
2295
+ fill: ${t.textColor};
2296
+ }
2297
+
2298
+ .grid path {
2299
+ stroke-width: 0;
2300
+ }
2301
+
2302
+
2303
+ /* Today line */
2304
+
2305
+ .today {
2306
+ fill: none;
2307
+ stroke: ${t.todayLineColor};
2308
+ stroke-width: 2px;
2309
+ }
2310
+
2311
+
2312
+ /* Task styling */
2313
+
2314
+ /* Default task */
2315
+
2316
+ .task {
2317
+ stroke-width: 2;
2318
+ }
2319
+
2320
+ .taskText {
2321
+ text-anchor: middle;
2322
+ font-family: ${t.fontFamily};
2323
+ }
2324
+
2325
+ .taskTextOutsideRight {
2326
+ fill: ${t.taskTextDarkColor};
2327
+ text-anchor: start;
2328
+ font-family: ${t.fontFamily};
2329
+ }
2330
+
2331
+ .taskTextOutsideLeft {
2332
+ fill: ${t.taskTextDarkColor};
2333
+ text-anchor: end;
2334
+ }
2335
+
2336
+
2337
+ /* Special case clickable */
2338
+
2339
+ .task.clickable {
2340
+ cursor: pointer;
2341
+ }
2342
+
2343
+ .taskText.clickable {
2344
+ cursor: pointer;
2345
+ fill: ${t.taskTextClickableColor} !important;
2346
+ font-weight: bold;
2347
+ }
2348
+
2349
+ .taskTextOutsideLeft.clickable {
2350
+ cursor: pointer;
2351
+ fill: ${t.taskTextClickableColor} !important;
2352
+ font-weight: bold;
2353
+ }
2354
+
2355
+ .taskTextOutsideRight.clickable {
2356
+ cursor: pointer;
2357
+ fill: ${t.taskTextClickableColor} !important;
2358
+ font-weight: bold;
2359
+ }
2360
+
2361
+
2362
+ /* Specific task settings for the sections*/
2363
+
2364
+ .taskText0,
2365
+ .taskText1,
2366
+ .taskText2,
2367
+ .taskText3 {
2368
+ fill: ${t.taskTextColor};
2369
+ }
2370
+
2371
+ .task0,
2372
+ .task1,
2373
+ .task2,
2374
+ .task3 {
2375
+ fill: ${t.taskBkgColor};
2376
+ stroke: ${t.taskBorderColor};
2377
+ }
2378
+
2379
+ .taskTextOutside0,
2380
+ .taskTextOutside2
2381
+ {
2382
+ fill: ${t.taskTextOutsideColor};
2383
+ }
2384
+
2385
+ .taskTextOutside1,
2386
+ .taskTextOutside3 {
2387
+ fill: ${t.taskTextOutsideColor};
2388
+ }
2389
+
2390
+
2391
+ /* Active task */
2392
+
2393
+ .active0,
2394
+ .active1,
2395
+ .active2,
2396
+ .active3 {
2397
+ fill: ${t.activeTaskBkgColor};
2398
+ stroke: ${t.activeTaskBorderColor};
2399
+ }
2400
+
2401
+ .activeText0,
2402
+ .activeText1,
2403
+ .activeText2,
2404
+ .activeText3 {
2405
+ fill: ${t.taskTextDarkColor} !important;
2406
+ }
2407
+
2408
+
2409
+ /* Completed task */
2410
+
2411
+ .done0,
2412
+ .done1,
2413
+ .done2,
2414
+ .done3 {
2415
+ stroke: ${t.doneTaskBorderColor};
2416
+ fill: ${t.doneTaskBkgColor};
2417
+ stroke-width: 2;
2418
+ }
2419
+
2420
+ .doneText0,
2421
+ .doneText1,
2422
+ .doneText2,
2423
+ .doneText3 {
2424
+ fill: ${t.taskTextDarkColor} !important;
2425
+ }
2426
+
2427
+
2428
+ /* Tasks on the critical line */
2429
+
2430
+ .crit0,
2431
+ .crit1,
2432
+ .crit2,
2433
+ .crit3 {
2434
+ stroke: ${t.critBorderColor};
2435
+ fill: ${t.critBkgColor};
2436
+ stroke-width: 2;
2437
+ }
2438
+
2439
+ .activeCrit0,
2440
+ .activeCrit1,
2441
+ .activeCrit2,
2442
+ .activeCrit3 {
2443
+ stroke: ${t.critBorderColor};
2444
+ fill: ${t.activeTaskBkgColor};
2445
+ stroke-width: 2;
2446
+ }
2447
+
2448
+ .doneCrit0,
2449
+ .doneCrit1,
2450
+ .doneCrit2,
2451
+ .doneCrit3 {
2452
+ stroke: ${t.critBorderColor};
2453
+ fill: ${t.doneTaskBkgColor};
2454
+ stroke-width: 2;
2455
+ cursor: pointer;
2456
+ shape-rendering: crispEdges;
2457
+ }
2458
+
2459
+ .milestone {
2460
+ transform: rotate(45deg) scale(0.8,0.8);
2461
+ }
2462
+
2463
+ .milestoneText {
2464
+ font-style: italic;
2465
+ }
2466
+ .doneCritText0,
2467
+ .doneCritText1,
2468
+ .doneCritText2,
2469
+ .doneCritText3 {
2470
+ fill: ${t.taskTextDarkColor} !important;
2471
+ }
2472
+
2473
+ .vert {
2474
+ stroke: ${t.vertLineColor};
2475
+ }
2476
+
2477
+ .vertText {
2478
+ font-size: 15px;
2479
+ text-anchor: middle;
2480
+ fill: ${t.vertLineColor} !important;
2481
+ }
2482
+
2483
+ .activeCritText0,
2484
+ .activeCritText1,
2485
+ .activeCritText2,
2486
+ .activeCritText3 {
2487
+ fill: ${t.taskTextDarkColor} !important;
2488
+ }
2489
+
2490
+ .titleText {
2491
+ text-anchor: middle;
2492
+ font-size: 18px;
2493
+ fill: ${t.titleColor || t.textColor};
2494
+ font-family: ${t.fontFamily};
2495
+ }
2496
+ `, "getStyles"), $a = Sa, Ua = {
2497
+ parser: zi,
2498
+ db: wa,
2499
+ renderer: Ma,
2500
+ styles: $a
2501
+ };
2502
+ export {
2503
+ Ua as diagram
2504
+ };