hub-ui-x 0.0.1

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