mermaid
Version:
Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.
1,430 lines • 84.5 kB
JavaScript
import { K as Xe, L as qe, R as Ge, M as je, N as An, O as Kt, P as In, Q as ke, T as pe, c as vt, s as Wn, g as On, B as zn, D as Nn, b as Hn, a as Vn, U as et, E as Pn, e as Rn, z as Bn, l as Rt, j as zt, k as Zn, f as Xn } from "./mermaid-5f2d2ec5.js";
import { b as qn, t as Ue, c as Gn, a as jn, l as Qn } from "./linear-c9300245.js";
import { i as $n } from "./init-f9637058.js";
function Jn(t, e) {
let n;
if (e === void 0)
for (const r of t)
r != null && (n < r || n === void 0 && r >= r) && (n = r);
else {
let r = -1;
for (let i of t)
(i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
}
return n;
}
function Kn(t, e) {
let n;
if (e === void 0)
for (const r of t)
r != null && (n > r || n === void 0 && r >= r) && (n = r);
else {
let r = -1;
for (let i of t)
(i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
}
return n;
}
function tr(t) {
return t;
}
var Ht = 1, te = 2, le = 3, Nt = 4, Le = 1e-6;
function er(t) {
return "translate(" + t + ",0)";
}
function nr(t) {
return "translate(0," + t + ")";
}
function rr(t) {
return (e) => +t(e);
}
function ir(t, e) {
return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
}
function ar() {
return !this.__axis;
}
function Qe(t, e) {
var n = [], r = null, i = null, a = 6, s = 6, y = 3, _ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, k = t === Ht || t === Nt ? -1 : 1, D = t === Nt || t === te ? "x" : "y", U = t === Ht || t === le ? er : nr;
function w(x) {
var q = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), g = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : tr), L = Math.max(a, 0) + y, O = e.range(), W = +O[0] + _, B = +O[O.length - 1] + _, Z = (e.bandwidth ? ir : rr)(e.copy(), _), Q = x.selection ? x.selection() : x, v = Q.selectAll(".domain").data([null]), A = Q.selectAll(".tick").data(q, e).order(), T = A.exit(), F = A.enter().append("g").attr("class", "tick"), C = A.select("line"), b = A.select("text");
v = v.merge(v.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), A = A.merge(F), C = C.merge(F.append("line").attr("stroke", "currentColor").attr(D + "2", k * a)), b = b.merge(F.append("text").attr("fill", "currentColor").attr(D, k * L).attr("dy", t === Ht ? "0em" : t === le ? "0.71em" : "0.32em")), x !== Q && (v = v.transition(x), A = A.transition(x), C = C.transition(x), b = b.transition(x), T = T.transition(x).attr("opacity", Le).attr("transform", function(o) {
return isFinite(o = Z(o)) ? U(o + _) : this.getAttribute("transform");
}), F.attr("opacity", Le).attr("transform", function(o) {
var d = this.parentNode.__axis;
return U((d && isFinite(d = d(o)) ? d : Z(o)) + _);
})), T.remove(), v.attr("d", t === Nt || t === te ? s ? "M" + k * s + "," + W + "H" + _ + "V" + B + "H" + k * s : "M" + _ + "," + W + "V" + B : s ? "M" + W + "," + k * s + "V" + _ + "H" + B + "V" + k * s : "M" + W + "," + _ + "H" + B), A.attr("opacity", 1).attr("transform", function(o) {
return U(Z(o) + _);
}), C.attr(D + "2", k * a), b.attr(D, k * L).text(g), Q.filter(ar).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === te ? "start" : t === Nt ? "end" : "middle"), Q.each(function() {
this.__axis = Z;
});
}
return w.scale = function(x) {
return arguments.length ? (e = x, w) : e;
}, w.ticks = function() {
return n = Array.from(arguments), w;
}, w.tickArguments = function(x) {
return arguments.length ? (n = x == null ? [] : Array.from(x), w) : n.slice();
}, w.tickValues = function(x) {
return arguments.length ? (r = x == null ? null : Array.from(x), w) : r && r.slice();
}, w.tickFormat = function(x) {
return arguments.length ? (i = x, w) : i;
}, w.tickSize = function(x) {
return arguments.length ? (a = s = +x, w) : a;
}, w.tickSizeInner = function(x) {
return arguments.length ? (a = +x, w) : a;
}, w.tickSizeOuter = function(x) {
return arguments.length ? (s = +x, w) : s;
}, w.tickPadding = function(x) {
return arguments.length ? (y = +x, w) : y;
}, w.offset = function(x) {
return arguments.length ? (_ = +x, w) : _;
}, w;
}
function sr(t) {
return Qe(Ht, t);
}
function or(t) {
return Qe(le, t);
}
const cr = Math.PI / 180, ur = 180 / Math.PI, Bt = 18, $e = 0.96422, Je = 1, Ke = 0.82521, tn = 4 / 29, bt = 6 / 29, en = 3 * bt * bt, lr = bt * bt * bt;
function nn(t) {
if (t instanceof ot)
return new ot(t.l, t.a, t.b, t.opacity);
if (t instanceof lt)
return rn(t);
t instanceof Ge || (t = An(t));
var e = ie(t.r), n = ie(t.g), r = ie(t.b), i = ee((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / Je), a, s;
return e === n && n === r ? a = s = i : (a = ee((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / $e), s = ee((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / Ke)), new ot(116 * i - 16, 500 * (a - i), 200 * (i - s), t.opacity);
}
function fr(t, e, n, r) {
return arguments.length === 1 ? nn(t) : new ot(t, e, n, r ?? 1);
}
function ot(t, e, n, r) {
this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
}
Xe(ot, fr, qe(je, {
brighter(t) {
return new ot(this.l + Bt * (t ?? 1), this.a, this.b, this.opacity);
},
darker(t) {
return new ot(this.l - Bt * (t ?? 1), this.a, this.b, this.opacity);
},
rgb() {
var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
return e = $e * ne(e), t = Je * ne(t), n = Ke * ne(n), new Ge(
re(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
re(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
re(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
this.opacity
);
}
}));
function ee(t) {
return t > lr ? Math.pow(t, 1 / 3) : t / en + tn;
}
function ne(t) {
return t > bt ? t * t * t : en * (t - tn);
}
function re(t) {
return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
}
function ie(t) {
return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
}
function hr(t) {
if (t instanceof lt)
return new lt(t.h, t.c, t.l, t.opacity);
if (t instanceof ot || (t = nn(t)), t.a === 0 && t.b === 0)
return new lt(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
var e = Math.atan2(t.b, t.a) * ur;
return new lt(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
}
function fe(t, e, n, r) {
return arguments.length === 1 ? hr(t) : new lt(t, e, n, r ?? 1);
}
function lt(t, e, n, r) {
this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
}
function rn(t) {
if (isNaN(t.h))
return new ot(t.l, 0, 0, t.opacity);
var e = t.h * cr;
return new ot(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
}
Xe(lt, fe, qe(je, {
brighter(t) {
return new lt(this.h, this.c, this.l + Bt * (t ?? 1), this.opacity);
},
darker(t) {
return new lt(this.h, this.c, this.l - Bt * (t ?? 1), this.opacity);
},
rgb() {
return rn(this).rgb();
}
}));
function dr(t) {
return function(e, n) {
var r = t((e = fe(e)).h, (n = fe(n)).h), i = Kt(e.c, n.c), a = Kt(e.l, n.l), s = Kt(e.opacity, n.opacity);
return function(y) {
return e.h = r(y), e.c = i(y), e.l = a(y), e.opacity = s(y), e + "";
};
};
}
const mr = dr(In);
function gr(t, e) {
t = t.slice();
var n = 0, r = t.length - 1, i = t[n], a = t[r], s;
return a < i && (s = n, n = r, r = s, s = i, i = a, a = s), t[n] = e.floor(i), t[r] = e.ceil(a), t;
}
var ae = /* @__PURE__ */ new Date(), se = /* @__PURE__ */ new Date();
function nt(t, e, n, r) {
function i(a) {
return t(a = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+a)), a;
}
return i.floor = function(a) {
return t(a = /* @__PURE__ */ new Date(+a)), a;
}, i.ceil = function(a) {
return t(a = new Date(a - 1)), e(a, 1), t(a), a;
}, i.round = function(a) {
var s = i(a), y = i.ceil(a);
return a - s < y - a ? s : y;
}, i.offset = function(a, s) {
return e(a = /* @__PURE__ */ new Date(+a), s == null ? 1 : Math.floor(s)), a;
}, i.range = function(a, s, y) {
var _ = [], k;
if (a = i.ceil(a), y = y == null ? 1 : Math.floor(y), !(a < s) || !(y > 0))
return _;
do
_.push(k = /* @__PURE__ */ new Date(+a)), e(a, y), t(a);
while (k < a && a < s);
return _;
}, i.filter = function(a) {
return nt(function(s) {
if (s >= s)
for (; t(s), !a(s); )
s.setTime(s - 1);
}, function(s, y) {
if (s >= s)
if (y < 0)
for (; ++y <= 0; )
for (; e(s, -1), !a(s); )
;
else
for (; --y >= 0; )
for (; e(s, 1), !a(s); )
;
});
}, n && (i.count = function(a, s) {
return ae.setTime(+a), se.setTime(+s), t(ae), t(se), Math.floor(n(ae, se));
}, i.every = function(a) {
return a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? i.filter(r ? function(s) {
return r(s) % a === 0;
} : function(s) {
return i.count(0, s) % a === 0;
}) : i;
}), i;
}
var Zt = nt(function() {
}, function(t, e) {
t.setTime(+t + e);
}, function(t, e) {
return e - t;
});
Zt.every = function(t) {
return t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? nt(function(e) {
e.setTime(Math.floor(e / t) * t);
}, function(e, n) {
e.setTime(+e + n * t);
}, function(e, n) {
return (n - e) / t;
}) : Zt;
};
const he = Zt;
Zt.range;
const ft = 1e3, at = ft * 60, ht = at * 60, mt = ht * 24, Te = mt * 7, Ee = mt * 30, oe = mt * 365;
var an = nt(function(t) {
t.setTime(t - t.getMilliseconds());
}, function(t, e) {
t.setTime(+t + e * ft);
}, function(t, e) {
return (e - t) / ft;
}, function(t) {
return t.getUTCSeconds();
});
const dt = an;
an.range;
var sn = nt(function(t) {
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ft);
}, function(t, e) {
t.setTime(+t + e * at);
}, function(t, e) {
return (e - t) / at;
}, function(t) {
return t.getMinutes();
});
const Xt = sn;
sn.range;
var on = nt(function(t) {
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ft - t.getMinutes() * at);
}, function(t, e) {
t.setTime(+t + e * ht);
}, function(t, e) {
return (e - t) / ht;
}, function(t) {
return t.getHours();
});
const qt = on;
on.range;
var cn = nt(
(t) => t.setHours(0, 0, 0, 0),
(t, e) => t.setDate(t.getDate() + e),
(t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * at) / mt,
(t) => t.getDate() - 1
);
const wt = cn;
cn.range;
function kt(t) {
return nt(function(e) {
e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
}, function(e, n) {
e.setDate(e.getDate() + n * 7);
}, function(e, n) {
return (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * at) / Te;
});
}
var Et = kt(0), Ut = kt(1), un = kt(2), ln = kt(3), gt = kt(4), fn = kt(5), hn = kt(6);
Et.range;
Ut.range;
un.range;
ln.range;
gt.range;
fn.range;
hn.range;
var dn = nt(function(t) {
t.setDate(1), t.setHours(0, 0, 0, 0);
}, function(t, e) {
t.setMonth(t.getMonth() + e);
}, function(t, e) {
return e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12;
}, function(t) {
return t.getMonth();
});
const Gt = dn;
dn.range;
var ve = nt(function(t) {
t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, function(t, e) {
t.setFullYear(t.getFullYear() + e);
}, function(t, e) {
return e.getFullYear() - t.getFullYear();
}, function(t) {
return t.getFullYear();
});
ve.every = function(t) {
return !isFinite(t = Math.floor(t)) || !(t > 0) ? null : nt(function(e) {
e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, function(e, n) {
e.setFullYear(e.getFullYear() + n * t);
});
};
const yt = ve;
ve.range;
var mn = nt(function(t) {
t.setUTCHours(0, 0, 0, 0);
}, function(t, e) {
t.setUTCDate(t.getUTCDate() + e);
}, function(t, e) {
return (e - t) / mt;
}, function(t) {
return t.getUTCDate() - 1;
});
const gn = mn;
mn.range;
function pt(t) {
return nt(function(e) {
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
}, function(e, n) {
e.setUTCDate(e.getUTCDate() + n * 7);
}, function(e, n) {
return (n - e) / Te;
});
}
var yn = pt(0), jt = pt(1), yr = pt(2), kr = pt(3), Dt = pt(4), pr = pt(5), Tr = pt(6);
yn.range;
jt.range;
yr.range;
kr.range;
Dt.range;
pr.range;
Tr.range;
var be = nt(function(t) {
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, function(t, e) {
t.setUTCFullYear(t.getUTCFullYear() + e);
}, function(t, e) {
return e.getUTCFullYear() - t.getUTCFullYear();
}, function(t) {
return t.getUTCFullYear();
});
be.every = function(t) {
return !isFinite(t = Math.floor(t)) || !(t > 0) ? null : nt(function(e) {
e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, function(e, n) {
e.setUTCFullYear(e.getUTCFullYear() + n * t);
});
};
const Lt = be;
be.range;
function vr(t, e, n, r, i, a) {
const s = [
[dt, 1, ft],
[dt, 5, 5 * ft],
[dt, 15, 15 * ft],
[dt, 30, 30 * ft],
[a, 1, at],
[a, 5, 5 * at],
[a, 15, 15 * at],
[a, 30, 30 * at],
[i, 1, ht],
[i, 3, 3 * ht],
[i, 6, 6 * ht],
[i, 12, 12 * ht],
[r, 1, mt],
[r, 2, 2 * mt],
[n, 1, Te],
[e, 1, Ee],
[e, 3, 3 * Ee],
[t, 1, oe]
];
function y(k, D, U) {
const w = D < k;
w && ([k, D] = [D, k]);
const x = U && typeof U.range == "function" ? U : _(k, D, U), q = x ? x.range(k, +D + 1) : [];
return w ? q.reverse() : q;
}
function _(k, D, U) {
const w = Math.abs(D - k) / U, x = qn(([, , L]) => L).right(s, w);
if (x === s.length)
return t.every(Ue(k / oe, D / oe, U));
if (x === 0)
return he.every(Math.max(Ue(k, D, U), 1));
const [q, g] = s[w / s[x - 1][2] < s[x][2] / w ? x - 1 : x];
return q.every(g);
}
return [y, _];
}
const [br, xr] = vr(yt, Gt, Et, wt, qt, Xt);
function ce(t) {
if (0 <= t.y && t.y < 100) {
var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
return e.setFullYear(t.y), e;
}
return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
}
function ue(t) {
if (0 <= t.y && t.y < 100) {
var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
return e.setUTCFullYear(t.y), e;
}
return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
}
function _t(t, e, n) {
return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
}
function wr(t) {
var e = t.dateTime, n = t.date, r = t.time, i = t.periods, a = t.days, s = t.shortDays, y = t.months, _ = t.shortMonths, k = Yt(i), D = Ft(i), U = Yt(a), w = Ft(a), x = Yt(s), q = Ft(s), g = Yt(y), L = Ft(y), O = Yt(_), W = Ft(_), B = {
a: c,
A: X,
b: f,
B: h,
c: null,
d: Ne,
e: Ne,
f: Xr,
g: ni,
G: ii,
H: Rr,
I: Br,
j: Zr,
L: kn,
m: qr,
M: Gr,
p: Y,
q: G,
Q: Pe,
s: Re,
S: jr,
u: Qr,
U: $r,
V: Jr,
w: Kr,
W: ti,
x: null,
X: null,
y: ei,
Y: ri,
Z: ai,
"%": Ve
}, Z = {
a: z,
A: H,
b: I,
B: V,
c: null,
d: He,
e: He,
f: ui,
g: Ti,
G: bi,
H: si,
I: oi,
j: ci,
L: Tn,
m: li,
M: fi,
p: it,
q: rt,
Q: Pe,
s: Re,
S: hi,
u: di,
U: mi,
V: gi,
w: yi,
W: ki,
x: null,
X: null,
y: pi,
Y: vi,
Z: xi,
"%": Ve
}, Q = {
a: C,
A: b,
b: o,
B: d,
c: m,
d: Oe,
e: Oe,
f: Nr,
g: We,
G: Ie,
H: ze,
I: ze,
j: Ir,
L: zr,
m: Ar,
M: Wr,
p: F,
q: Er,
Q: Vr,
s: Pr,
S: Or,
u: _r,
U: Yr,
V: Fr,
w: Sr,
W: Ur,
x: l,
X: S,
y: We,
Y: Ie,
Z: Lr,
"%": Hr
};
B.x = v(n, B), B.X = v(r, B), B.c = v(e, B), Z.x = v(n, Z), Z.X = v(r, Z), Z.c = v(e, Z);
function v(p, E) {
return function(M) {
var u = [], R = -1, N = 0, j = p.length, $, tt, St;
for (M instanceof Date || (M = /* @__PURE__ */ new Date(+M)); ++R < j; )
p.charCodeAt(R) === 37 && (u.push(p.slice(N, R)), (tt = Ae[$ = p.charAt(++R)]) != null ? $ = p.charAt(++R) : tt = $ === "e" ? " " : "0", (St = E[$]) && ($ = St(M, tt)), u.push($), N = R + 1);
return u.push(p.slice(N, R)), u.join("");
};
}
function A(p, E) {
return function(M) {
var u = _t(1900, void 0, 1), R = T(u, p, M += "", 0), N, j;
if (R != M.length)
return null;
if ("Q" in u)
return new Date(u.Q);
if ("s" in u)
return new Date(u.s * 1e3 + ("L" in u ? u.L : 0));
if (E && !("Z" in u) && (u.Z = 0), "p" in u && (u.H = u.H % 12 + u.p * 12), u.m === void 0 && (u.m = "q" in u ? u.q : 0), "V" in u) {
if (u.V < 1 || u.V > 53)
return null;
"w" in u || (u.w = 1), "Z" in u ? (N = ue(_t(u.y, 0, 1)), j = N.getUTCDay(), N = j > 4 || j === 0 ? jt.ceil(N) : jt(N), N = gn.offset(N, (u.V - 1) * 7), u.y = N.getUTCFullYear(), u.m = N.getUTCMonth(), u.d = N.getUTCDate() + (u.w + 6) % 7) : (N = ce(_t(u.y, 0, 1)), j = N.getDay(), N = j > 4 || j === 0 ? Ut.ceil(N) : Ut(N), N = wt.offset(N, (u.V - 1) * 7), u.y = N.getFullYear(), u.m = N.getMonth(), u.d = N.getDate() + (u.w + 6) % 7);
} else
("W" in u || "U" in u) && ("w" in u || (u.w = "u" in u ? u.u % 7 : "W" in u ? 1 : 0), j = "Z" in u ? ue(_t(u.y, 0, 1)).getUTCDay() : ce(_t(u.y, 0, 1)).getDay(), u.m = 0, u.d = "W" in u ? (u.w + 6) % 7 + u.W * 7 - (j + 5) % 7 : u.w + u.U * 7 - (j + 6) % 7);
return "Z" in u ? (u.H += u.Z / 100 | 0, u.M += u.Z % 100, ue(u)) : ce(u);
};
}
function T(p, E, M, u) {
for (var R = 0, N = E.length, j = M.length, $, tt; R < N; ) {
if (u >= j)
return -1;
if ($ = E.charCodeAt(R++), $ === 37) {
if ($ = E.charAt(R++), tt = Q[$ in Ae ? E.charAt(R++) : $], !tt || (u = tt(p, M, u)) < 0)
return -1;
} else if ($ != M.charCodeAt(u++))
return -1;
}
return u;
}
function F(p, E, M) {
var u = k.exec(E.slice(M));
return u ? (p.p = D.get(u[0].toLowerCase()), M + u[0].length) : -1;
}
function C(p, E, M) {
var u = x.exec(E.slice(M));
return u ? (p.w = q.get(u[0].toLowerCase()), M + u[0].length) : -1;
}
function b(p, E, M) {
var u = U.exec(E.slice(M));
return u ? (p.w = w.get(u[0].toLowerCase()), M + u[0].length) : -1;
}
function o(p, E, M) {
var u = O.exec(E.slice(M));
return u ? (p.m = W.get(u[0].toLowerCase()), M + u[0].length) : -1;
}
function d(p, E, M) {
var u = g.exec(E.slice(M));
return u ? (p.m = L.get(u[0].toLowerCase()), M + u[0].length) : -1;
}
function m(p, E, M) {
return T(p, e, E, M);
}
function l(p, E, M) {
return T(p, n, E, M);
}
function S(p, E, M) {
return T(p, r, E, M);
}
function c(p) {
return s[p.getDay()];
}
function X(p) {
return a[p.getDay()];
}
function f(p) {
return _[p.getMonth()];
}
function h(p) {
return y[p.getMonth()];
}
function Y(p) {
return i[+(p.getHours() >= 12)];
}
function G(p) {
return 1 + ~~(p.getMonth() / 3);
}
function z(p) {
return s[p.getUTCDay()];
}
function H(p) {
return a[p.getUTCDay()];
}
function I(p) {
return _[p.getUTCMonth()];
}
function V(p) {
return y[p.getUTCMonth()];
}
function it(p) {
return i[+(p.getUTCHours() >= 12)];
}
function rt(p) {
return 1 + ~~(p.getUTCMonth() / 3);
}
return {
format: function(p) {
var E = v(p += "", B);
return E.toString = function() {
return p;
}, E;
},
parse: function(p) {
var E = A(p += "", !1);
return E.toString = function() {
return p;
}, E;
},
utcFormat: function(p) {
var E = v(p += "", Z);
return E.toString = function() {
return p;
}, E;
},
utcParse: function(p) {
var E = A(p += "", !0);
return E.toString = function() {
return p;
}, E;
}
};
}
var Ae = { "-": "", _: " ", 0: "0" }, K = /^\s*\d+/, Dr = /^%/, Cr = /[\\^$*+?|[\]().{}]/g;
function P(t, e, n) {
var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", a = i.length;
return r + (a < n ? new Array(n - a + 1).join(e) + i : i);
}
function Mr(t) {
return t.replace(Cr, "\\$&");
}
function Yt(t) {
return new RegExp("^(?:" + t.map(Mr).join("|") + ")", "i");
}
function Ft(t) {
return new Map(t.map((e, n) => [e.toLowerCase(), n]));
}
function Sr(t, e, n) {
var r = K.exec(e.slice(n, n + 1));
return r ? (t.w = +r[0], n + r[0].length) : -1;
}
function _r(t, e, n) {
var r = K.exec(e.slice(n, n + 1));
return r ? (t.u = +r[0], n + r[0].length) : -1;
}
function Yr(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.U = +r[0], n + r[0].length) : -1;
}
function Fr(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.V = +r[0], n + r[0].length) : -1;
}
function Ur(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.W = +r[0], n + r[0].length) : -1;
}
function Ie(t, e, n) {
var r = K.exec(e.slice(n, n + 4));
return r ? (t.y = +r[0], n + r[0].length) : -1;
}
function We(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
function Lr(t, e, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
function Er(t, e, n) {
var r = K.exec(e.slice(n, n + 1));
return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
function Ar(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
}
function Oe(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.d = +r[0], n + r[0].length) : -1;
}
function Ir(t, e, n) {
var r = K.exec(e.slice(n, n + 3));
return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
}
function ze(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.H = +r[0], n + r[0].length) : -1;
}
function Wr(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.M = +r[0], n + r[0].length) : -1;
}
function Or(t, e, n) {
var r = K.exec(e.slice(n, n + 2));
return r ? (t.S = +r[0], n + r[0].length) : -1;
}
function zr(t, e, n) {
var r = K.exec(e.slice(n, n + 3));
return r ? (t.L = +r[0], n + r[0].length) : -1;
}
function Nr(t, e, n) {
var r = K.exec(e.slice(n, n + 6));
return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
function Hr(t, e, n) {
var r = Dr.exec(e.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
function Vr(t, e, n) {
var r = K.exec(e.slice(n));
return r ? (t.Q = +r[0], n + r[0].length) : -1;
}
function Pr(t, e, n) {
var r = K.exec(e.slice(n));
return r ? (t.s = +r[0], n + r[0].length) : -1;
}
function Ne(t, e) {
return P(t.getDate(), e, 2);
}
function Rr(t, e) {
return P(t.getHours(), e, 2);
}
function Br(t, e) {
return P(t.getHours() % 12 || 12, e, 2);
}
function Zr(t, e) {
return P(1 + wt.count(yt(t), t), e, 3);
}
function kn(t, e) {
return P(t.getMilliseconds(), e, 3);
}
function Xr(t, e) {
return kn(t, e) + "000";
}
function qr(t, e) {
return P(t.getMonth() + 1, e, 2);
}
function Gr(t, e) {
return P(t.getMinutes(), e, 2);
}
function jr(t, e) {
return P(t.getSeconds(), e, 2);
}
function Qr(t) {
var e = t.getDay();
return e === 0 ? 7 : e;
}
function $r(t, e) {
return P(Et.count(yt(t) - 1, t), e, 2);
}
function pn(t) {
var e = t.getDay();
return e >= 4 || e === 0 ? gt(t) : gt.ceil(t);
}
function Jr(t, e) {
return t = pn(t), P(gt.count(yt(t), t) + (yt(t).getDay() === 4), e, 2);
}
function Kr(t) {
return t.getDay();
}
function ti(t, e) {
return P(Ut.count(yt(t) - 1, t), e, 2);
}
function ei(t, e) {
return P(t.getFullYear() % 100, e, 2);
}
function ni(t, e) {
return t = pn(t), P(t.getFullYear() % 100, e, 2);
}
function ri(t, e) {
return P(t.getFullYear() % 1e4, e, 4);
}
function ii(t, e) {
var n = t.getDay();
return t = n >= 4 || n === 0 ? gt(t) : gt.ceil(t), P(t.getFullYear() % 1e4, e, 4);
}
function ai(t) {
var e = t.getTimezoneOffset();
return (e > 0 ? "-" : (e *= -1, "+")) + P(e / 60 | 0, "0", 2) + P(e % 60, "0", 2);
}
function He(t, e) {
return P(t.getUTCDate(), e, 2);
}
function si(t, e) {
return P(t.getUTCHours(), e, 2);
}
function oi(t, e) {
return P(t.getUTCHours() % 12 || 12, e, 2);
}
function ci(t, e) {
return P(1 + gn.count(Lt(t), t), e, 3);
}
function Tn(t, e) {
return P(t.getUTCMilliseconds(), e, 3);
}
function ui(t, e) {
return Tn(t, e) + "000";
}
function li(t, e) {
return P(t.getUTCMonth() + 1, e, 2);
}
function fi(t, e) {
return P(t.getUTCMinutes(), e, 2);
}
function hi(t, e) {
return P(t.getUTCSeconds(), e, 2);
}
function di(t) {
var e = t.getUTCDay();
return e === 0 ? 7 : e;
}
function mi(t, e) {
return P(yn.count(Lt(t) - 1, t), e, 2);
}
function vn(t) {
var e = t.getUTCDay();
return e >= 4 || e === 0 ? Dt(t) : Dt.ceil(t);
}
function gi(t, e) {
return t = vn(t), P(Dt.count(Lt(t), t) + (Lt(t).getUTCDay() === 4), e, 2);
}
function yi(t) {
return t.getUTCDay();
}
function ki(t, e) {
return P(jt.count(Lt(t) - 1, t), e, 2);
}
function pi(t, e) {
return P(t.getUTCFullYear() % 100, e, 2);
}
function Ti(t, e) {
return t = vn(t), P(t.getUTCFullYear() % 100, e, 2);
}
function vi(t, e) {
return P(t.getUTCFullYear() % 1e4, e, 4);
}
function bi(t, e) {
var n = t.getUTCDay();
return t = n >= 4 || n === 0 ? Dt(t) : Dt.ceil(t), P(t.getUTCFullYear() % 1e4, e, 4);
}
function xi() {
return "+0000";
}
function Ve() {
return "%";
}
function Pe(t) {
return +t;
}
function Re(t) {
return Math.floor(+t / 1e3);
}
var Tt, Qt;
wi({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
periods: ["AM", "PM"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
});
function wi(t) {
return Tt = wr(t), Qt = Tt.format, Tt.parse, Tt.utcFormat, Tt.utcParse, Tt;
}
function Di(t) {
return new Date(t);
}
function Ci(t) {
return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
}
function bn(t, e, n, r, i, a, s, y, _, k) {
var D = Gn(), U = D.invert, w = D.domain, x = k(".%L"), q = k(":%S"), g = k("%I:%M"), L = k("%I %p"), O = k("%a %d"), W = k("%b %d"), B = k("%B"), Z = k("%Y");
function Q(v) {
return (_(v) < v ? x : y(v) < v ? q : s(v) < v ? g : a(v) < v ? L : r(v) < v ? i(v) < v ? O : W : n(v) < v ? B : Z)(v);
}
return D.invert = function(v) {
return new Date(U(v));
}, D.domain = function(v) {
return arguments.length ? w(Array.from(v, Ci)) : w().map(Di);
}, D.ticks = function(v) {
var A = w();
return t(A[0], A[A.length - 1], v ?? 10);
}, D.tickFormat = function(v, A) {
return A == null ? Q : k(A);
}, D.nice = function(v) {
var A = w();
return (!v || typeof v.range != "function") && (v = e(A[0], A[A.length - 1], v ?? 10)), v ? w(gr(A, v)) : D;
}, D.copy = function() {
return jn(D, bn(t, e, n, r, i, a, s, y, _, k));
}, D;
}
function Mi() {
return $n.apply(bn(br, xr, yt, Gt, Et, wt, qt, Xt, dt, Qt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
var de = function() {
var t = function(b, o, d, m) {
for (d = d || {}, m = b.length; m--; d[b[m]] = o)
;
return d;
}, e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 30, 32, 33, 35, 37], n = [1, 25], r = [1, 26], i = [1, 27], a = [1, 28], s = [1, 29], y = [1, 30], _ = [1, 31], k = [1, 9], D = [1, 10], U = [1, 11], w = [1, 12], x = [1, 13], q = [1, 14], g = [1, 15], L = [1, 16], O = [1, 18], W = [1, 19], B = [1, 20], Z = [1, 21], Q = [1, 22], v = [1, 24], A = [1, 32], T = {
trace: function() {
},
yy: {},
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, dateFormat: 19, inclusiveEndDates: 20, topAxis: 21, axisFormat: 22, tickInterval: 23, excludes: 24, includes: 25, todayMarker: 26, title: 27, acc_title: 28, acc_title_value: 29, acc_descr: 30, acc_descr_value: 31, acc_descr_multiline_value: 32, section: 33, clickStatement: 34, taskTxt: 35, taskData: 36, click: 37, callbackname: 38, callbackargs: 39, href: 40, clickStatementDebug: 41, $accept: 0, $end: 1 },
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", 19: "dateFormat", 20: "inclusiveEndDates", 21: "topAxis", 22: "axisFormat", 23: "tickInterval", 24: "excludes", 25: "includes", 26: "todayMarker", 27: "title", 28: "acc_title", 29: "acc_title_value", 30: "acc_descr", 31: "acc_descr_value", 32: "acc_descr_multiline_value", 33: "section", 35: "taskTxt", 36: "taskData", 37: "click", 38: "callbackname", 39: "callbackargs", 40: "href" },
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], [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], [34, 2], [34, 3], [34, 3], [34, 4], [34, 3], [34, 4], [34, 2], [41, 2], [41, 3], [41, 3], [41, 4], [41, 3], [41, 4], [41, 2]],
performAction: function(o, d, m, l, S, c, X) {
var f = c.length - 1;
switch (S) {
case 1:
return c[f - 1];
case 2:
this.$ = [];
break;
case 3:
c[f - 1].push(c[f]), this.$ = c[f - 1];
break;
case 4:
case 5:
this.$ = c[f];
break;
case 6:
case 7:
this.$ = [];
break;
case 8:
l.setWeekday("monday");
break;
case 9:
l.setWeekday("tuesday");
break;
case 10:
l.setWeekday("wednesday");
break;
case 11:
l.setWeekday("thursday");
break;
case 12:
l.setWeekday("friday");
break;
case 13:
l.setWeekday("saturday");
break;
case 14:
l.setWeekday("sunday");
break;
case 15:
l.setDateFormat(c[f].substr(11)), this.$ = c[f].substr(11);
break;
case 16:
l.enableInclusiveEndDates(), this.$ = c[f].substr(18);
break;
case 17:
l.TopAxis(), this.$ = c[f].substr(8);
break;
case 18:
l.setAxisFormat(c[f].substr(11)), this.$ = c[f].substr(11);
break;
case 19:
l.setTickInterval(c[f].substr(13)), this.$ = c[f].substr(13);
break;
case 20:
l.setExcludes(c[f].substr(9)), this.$ = c[f].substr(9);
break;
case 21:
l.setIncludes(c[f].substr(9)), this.$ = c[f].substr(9);
break;
case 22:
l.setTodayMarker(c[f].substr(12)), this.$ = c[f].substr(12);
break;
case 24:
l.setDiagramTitle(c[f].substr(6)), this.$ = c[f].substr(6);
break;
case 25:
this.$ = c[f].trim(), l.setAccTitle(this.$);
break;
case 26:
case 27:
this.$ = c[f].trim(), l.setAccDescription(this.$);
break;
case 28:
l.addSection(c[f].substr(8)), this.$ = c[f].substr(8);
break;
case 30:
l.addTask(c[f - 1], c[f]), this.$ = "task";
break;
case 31:
this.$ = c[f - 1], l.setClickEvent(c[f - 1], c[f], null);
break;
case 32:
this.$ = c[f - 2], l.setClickEvent(c[f - 2], c[f - 1], c[f]);
break;
case 33:
this.$ = c[f - 2], l.setClickEvent(c[f - 2], c[f - 1], null), l.setLink(c[f - 2], c[f]);
break;
case 34:
this.$ = c[f - 3], l.setClickEvent(c[f - 3], c[f - 2], c[f - 1]), l.setLink(c[f - 3], c[f]);
break;
case 35:
this.$ = c[f - 2], l.setClickEvent(c[f - 2], c[f], null), l.setLink(c[f - 2], c[f - 1]);
break;
case 36:
this.$ = c[f - 3], l.setClickEvent(c[f - 3], c[f - 1], c[f]), l.setLink(c[f - 3], c[f - 2]);
break;
case 37:
this.$ = c[f - 1], l.setLink(c[f - 1], c[f]);
break;
case 38:
case 44:
this.$ = c[f - 1] + " " + c[f];
break;
case 39:
case 40:
case 42:
this.$ = c[f - 2] + " " + c[f - 1] + " " + c[f];
break;
case 41:
case 43:
this.$ = c[f - 3] + " " + c[f - 2] + " " + c[f - 1] + " " + c[f];
break;
}
},
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: i, 15: a, 16: s, 17: y, 18: _, 19: k, 20: D, 21: U, 22: w, 23: x, 24: q, 25: g, 26: L, 27: O, 28: W, 30: B, 32: Z, 33: Q, 34: 23, 35: v, 37: A }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 33, 11: 17, 12: n, 13: r, 14: i, 15: a, 16: s, 17: y, 18: _, 19: k, 20: D, 21: U, 22: w, 23: x, 24: q, 25: g, 26: L, 27: O, 28: W, 30: B, 32: Z, 33: Q, 34: 23, 35: v, 37: A }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 15]), t(e, [2, 16]), 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]), { 29: [1, 34] }, { 31: [1, 35] }, t(e, [2, 27]), t(e, [2, 28]), t(e, [2, 29]), { 36: [1, 36] }, 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]), { 38: [1, 37], 40: [1, 38] }, t(e, [2, 4]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 30]), t(e, [2, 31], { 39: [1, 39], 40: [1, 40] }), t(e, [2, 37], { 38: [1, 41] }), t(e, [2, 32], { 40: [1, 42] }), t(e, [2, 33]), t(e, [2, 35], { 39: [1, 43] }), t(e, [2, 34]), t(e, [2, 36])],
defaultActions: {},
parseError: function(o, d) {
if (d.recoverable)
this.trace(o);
else {
var m = new Error(o);
throw m.hash = d, m;
}
},
parse: function(o) {
var d = this, m = [0], l = [], S = [null], c = [], X = this.table, f = "", h = 0, Y = 0, G = 2, z = 1, H = c.slice.call(arguments, 1), I = Object.create(this.lexer), V = { yy: {} };
for (var it in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, it) && (V.yy[it] = this.yy[it]);
I.setInput(o, V.yy), V.yy.lexer = I, V.yy.parser = this, typeof I.yylloc > "u" && (I.yylloc = {});
var rt = I.yylloc;
c.push(rt);
var p = I.options && I.options.ranges;
typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
function E() {
var ct;
return ct = l.pop() || I.lex() || z, typeof ct != "number" && (ct instanceof Array && (l = ct, ct = l.pop()), ct = d.symbols_[ct] || ct), ct;
}
for (var M, u, R, N, j = {}, $, tt, St, Ot; ; ) {
if (u = m[m.length - 1], this.defaultActions[u] ? R = this.defaultActions[u] : ((M === null || typeof M > "u") && (M = E()), R = X[u] && X[u][M]), typeof R > "u" || !R.length || !R[0]) {
var Jt = "";
Ot = [];
for ($ in X[u])
this.terminals_[$] && $ > G && Ot.push("'" + this.terminals_[$] + "'");
I.showPosition ? Jt = "Parse error on line " + (h + 1) + `:
` + I.showPosition() + `
Expecting ` + Ot.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Jt = "Parse error on line " + (h + 1) + ": Unexpected " + (M == z ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(Jt, {
text: I.match,
token: this.terminals_[M] || M,
line: I.yylineno,
loc: rt,
expected: Ot
});
}
if (R[0] instanceof Array && R.length > 1)
throw new Error("Parse Error: multiple actions possible at state: " + u + ", token: " + M);
switch (R[0]) {
case 1:
m.push(M), S.push(I.yytext), c.push(I.yylloc), m.push(R[1]), M = null, Y = I.yyleng, f = I.yytext, h = I.yylineno, rt = I.yylloc;
break;
case 2:
if (tt = this.productions_[R[1]][1], j.$ = S[S.length - tt], j._$ = {
first_line: c[c.length - (tt || 1)].first_line,
last_line: c[c.length - 1].last_line,
first_column: c[c.length - (tt || 1)].first_column,
last_column: c[c.length - 1].last_column
}, p && (j._$.range = [
c[c.length - (tt || 1)].range[0],
c[c.length - 1].range[1]
]), N = this.performAction.apply(j, [
f,
Y,
h,
V.yy,
R[1],
S,
c
].concat(H)), typeof N < "u")
return N;
tt && (m = m.slice(0, -1 * tt * 2), S = S.slice(0, -1 * tt), c = c.slice(0, -1 * tt)), m.push(this.productions_[R[1]][0]), S.push(j.$), c.push(j._$), St = X[m[m.length - 2]][m[m.length - 1]], m.push(St);
break;
case 3:
return !0;
}
}
return !0;
}
}, F = function() {
var b = {
EOF: 1,
parseError: function(d, m) {
if (this.yy.parser)
this.yy.parser.parseError(d, m);
else
throw new Error(d);
},
// resets the lexer, sets new input
setInput: function(o, d) {
return this.yy = d || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
first_line: 1,
first_column: 0,
last_line: 1,
last_column: 0
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
},
// consumes and returns one char from the input
input: function() {
var o = this._input[0];
this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
var d = o.match(/(?:\r\n?|\n).*/g);
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), o;
},
// unshifts one char (or a string) into the input
unput: function(o) {
var d = o.length, m = o.split(/(?:\r\n?|\n)/g);
this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
var l = this.match.split(/(?:\r\n?|\n)/g);
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), m.length - 1 && (this.yylineno -= m.length - 1);
var S = this.yylloc.range;
return this.yylloc = {
first_line: this.yylloc.first_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.first_column,
last_column: m ? (m.length === l.length ? this.yylloc.first_column : 0) + l[l.length - m.length].length - m[0].length : this.yylloc.first_column - d
}, this.options.ranges && (this.yylloc.range = [S[0], S[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
},
// When called from action, caches matched text and appends it on next action
more: function() {
return this._more = !0, this;
},
// 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.
reject: function() {
if (this.options.backtrack_lexer)
this._backtrack = !0;
else
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).
` + this.showPosition(), {
text: "",
token: null,
line: this.yylineno
});
return this;
},
// retain first n characters of the match
less: function(o) {
this.unput(this.match.slice(o));
},
// displays already matched input, i.e. for error messages
pastInput: function() {
var o = this.matched.substr(0, this.matched.length - this.match.length);
return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
},
// displays upcoming input, i.e. for error messages
upcomingInput: function() {
var o = this.match;
return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
},
// displays the character position where the lexing error occurred, i.e. for error messages
showPosition: function() {
var o = this.pastInput(), d = new Array(o.length + 1).join("-");
return o + this.upcomingInput() + `
` + d + "^";
},
// test the lexed token: return FALSE when not a match, otherwise return token
test_match: function(o, d) {
var m, l, S;
if (this.options.backtrack_lexer && (S = {
yylineno: this.yylineno,
yylloc: {
first_line: this.yylloc.first_line,
last_line: this.last_line,
first_column: this.yylloc.first_column,
last_column: this.yylloc.last_column
},
yytext: this.yytext,
match: this.match,
matches: this.matches,
matched: this.matched,
yyleng: this.yyleng,
offset: this.offset,
_more: this._more,
_input: this._input,
yy: this.yy,
conditionStack: this.conditionStack.slice(0),
done: this.done
}, this.options.ranges && (S.yylloc.range = this.yylloc.range.slice(0))), l = o[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
}, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], m = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), m)
return m;
if (this._backtrack) {
for (var c in S)
this[c] = S[c];
return !1;
}
return !1;
},
// return next match in input
next: function() {
if (this.done)
return this.EOF;
this._input || (this.done = !0);
var o, d, m, l;
this._more || (this.yytext = "", this.match = "");
for (var S = this._currentRules(), c = 0; c < S.length; c++)
if (m = this._input.match(this.rules[S[c]]), m && (!d || m[0].length > d[0].length)) {
if (d = m, l = c, this.options.backtrack_lexer) {
if (o = this.test_match(m, S[c]), o !== !1)
return o;
if (this._backtrack) {
d = !1;
continue;
} else
return !1;
} else if (!this.options.flex)
break;
}
return d ? (o = this.test_match(d, S[l]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
` + this.showPosition(), {
text: "",
token: null,
line: this.yylineno
});
},
// return next match that has a token
lex: function() {
var d = this.next();
return d || this.lex();
},
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
begin: function(d) {
this.conditionStack.push(d);
},
// pop the previously active lexer condition state off the condition stack
popState: function() {
var d = this.conditionStack.length - 1;
return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
},
// produce the lexer rule set which is active for the currently active lexer condition state
_currentRules: function() {
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
},
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
topState: function(d) {
return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
},
// alias for begin(condition)
pushState: function(d) {
this.begin(d);
},
// return the number of states currently on the stack
stateStackSize: function() {
return this.conditionStack.length;
},
options: { "case-insensitive": !0 },
performAction: function(d, m, l, S) {
switch (l) {
case 0:
return this.begin("open_directive"), "open_directive";
case 1:
return this.begin("acc_title"), 28;
case 2:
return this.popState(), "acc_title_value";
case 3:
return this.begin("acc_descr"), 30;
case 4:
return this.popState(), "acc_descr_value";
case 5:
this.begin("acc_descr_multiline");
break;
case 6:
this.popState();
break;
case 7:
return "acc_descr_multiline_value";
case 8:
break;
case 9:
break;
case 10:
break;
case 11:
return 10;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
this.begin("href");
break;
case 16:
this.popState();
break;
case 17:
return 40;
case 18:
this.begin("callbackname");
break;
case 19:
this.popState();
break;
case 20:
this.popState(), this.begin("callbackargs");
break;
case 21:
return 38;
case 22:
this.popState();
break;
case 23:
return 39;
case 24:
this.begin("click");
break;
case 25:
this.popState();
break;
case 26:
return 37;
case 27:
return 4;
case 28:
return 19;
case 29:
return 20;
case 30:
return 21;
case 31:
return 22;
case 32:
return 23;
case 33:
return 25;
case 34:
return 24;
case 35:
return 26;
case 36:
return 12;
case 37:
return 13;
case 38:
return 14;
case 39:
return 15;
case 40:
return 16;
case 41:
return 17;
case 42:
return 18;
case 43:
return "date";
case 44:
return 27;
case 45:
return "accDescription";
case 46:
return 33;
case 47:
return 35;
case 48:
return 36;
case 49:
return ":";
case 50:
return 6;
case 51:
return "INVALID";
}
},
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, /^(?:%[^\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, /^(?:\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],
conditi