@kong-ui-public/documentation 0.3.42 → 0.4.0

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