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