@ucap-llm/ai-ui 1.1.13 → 1.1.15

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