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