gradio-leaderboard 0.0.12rc0__py3-none-any.whl → 0.0.14__py3-none-any.whl

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