@layers-app/editor 0.5.3 → 0.5.5-optimization

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