@elmethis/core 1.0.0-alpha.134 → 1.0.0-alpha.136

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