@openbkn/workshop 0.2.2-rc.5 → 0.2.2

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/README.md +83 -13
  2. package/component.d.ts +10 -0
  3. package/dist/ActionConfirm-DJ91X3ml.js +236 -0
  4. package/dist/ActionFailure-ZgPt_3B-.js +37 -0
  5. package/dist/AgentChat-CRYai8ge.js +1062 -0
  6. package/dist/AppFormModal-D73ucaHK.js +4282 -0
  7. package/dist/AppListPage-D87piiOw.js +1364 -0
  8. package/dist/AskDrawer-BUMYsRnt.js +38 -0
  9. package/dist/ComputedView-CgYrDbx1.js +3221 -0
  10. package/dist/ConclusionApply-sjGfoEBY.js +153 -0
  11. package/dist/CypherEditor-lus6FA5L.js +485 -0
  12. package/dist/LandingList-6JI6864C.js +230 -0
  13. package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
  14. package/dist/ModelTrial-ClHFGTpQ.js +359 -0
  15. package/dist/PageRenderer-DBd_g6mN.js +85480 -0
  16. package/dist/README-DjRyTQSR.js +76 -0
  17. package/dist/ScenarioApply-DtW_hh47.js +590 -0
  18. package/dist/SimulateForm-C-i08Jjd.js +153 -0
  19. package/dist/Subgraph-CnrkH9AN.js +32586 -0
  20. package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
  21. package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
  22. package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
  23. package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
  24. package/dist/actionButton-DA5CNEzx.js +94 -0
  25. package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
  26. package/dist/agentChat-EoDznd58.js +116 -0
  27. package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
  28. package/dist/alertList-DqditwM8.js +84 -0
  29. package/dist/alertList.en-US-BAXAgltP.js +84 -0
  30. package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
  31. package/dist/asOfSlider-QPvHWUMV.js +83 -0
  32. package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
  33. package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
  34. package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
  35. package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
  36. package/dist/channel-B034hcOF.js +5 -0
  37. package/dist/china-C6m7zXIv.js +9 -0
  38. package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
  39. package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
  40. package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
  41. package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
  42. package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
  43. package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
  44. package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
  45. package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
  46. package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
  47. package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
  48. package/dist/component.d-DFoMKuUv.js +179 -0
  49. package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
  50. package/dist/customComponents-DasaZ6pq.js +4 -0
  51. package/dist/customComponents.en-US-CkabuCXg.js +79 -0
  52. package/dist/customParseFormat-C0uLEpdq.js +182 -0
  53. package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
  54. package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
  55. package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
  56. package/dist/d3-scale-DA8IHmf0.js +1841 -0
  57. package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
  58. package/dist/dateRange-BbkLMg8L.js +79 -0
  59. package/dist/dateRange.en-US-CV12Q02G.js +79 -0
  60. package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
  61. package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
  62. package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
  63. package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
  64. package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
  65. package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
  66. package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
  67. package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
  68. package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
  69. package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
  70. package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
  71. package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
  72. package/dist/eventList-CnsAwfDS.js +115 -0
  73. package/dist/eventList.en-US-Cof3rCLq.js +115 -0
  74. package/dist/eventReport-XS-HegnH.js +76 -0
  75. package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
  76. package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
  77. package/dist/ganttChart-DEeSvTJA.js +77 -0
  78. package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
  79. package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
  80. package/dist/generateCypher-Ch9_lQa6.js +399 -0
  81. package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
  82. package/dist/graph-CKJmgLki.js +1541 -0
  83. package/dist/index-BA-GzCXt.js +441 -0
  84. package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
  85. package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
  86. package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
  87. package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
  88. package/dist/katex-BsrBVQKd.js +11314 -0
  89. package/dist/manifest-BjV1PJ6u.js +41 -0
  90. package/dist/mermaid.core-yQghUlIz.js +17642 -0
  91. package/dist/metricCards-CSb-_cT2.js +104 -0
  92. package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
  93. package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
  94. package/dist/modelTrial-Bvb-RhGt.js +137 -0
  95. package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
  96. package/dist/models-DekiCOuZ.js +6 -0
  97. package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
  98. package/dist/object-metric.service-flZgBMRX.js +233 -0
  99. package/dist/objectDetail-SQUbp4Py.js +117 -0
  100. package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
  101. package/dist/objectList-D99wPtJH.js +97 -0
  102. package/dist/objectList.en-US-PBBNyVLW.js +97 -0
  103. package/dist/objectTable-0jsFFMN3.js +127 -0
  104. package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
  105. package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
  106. package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
  107. package/dist/pivotTable-CHmQw18-.js +102 -0
  108. package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
  109. package/dist/prompt-DYrjlEFr.js +373 -0
  110. package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
  111. package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
  112. package/dist/regionMap-Cme-JyV_.js +128 -0
  113. package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
  114. package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
  115. package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
  116. package/dist/scenarioBar-BV43p7n-.js +122 -0
  117. package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
  118. package/dist/scheduleGantt-CTYO-zYP.js +180 -0
  119. package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
  120. package/dist/searchBox-Ca7w0f_6.js +67 -0
  121. package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
  122. package/dist/segmentedFilter-MhjVcWo0.js +80 -0
  123. package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
  124. package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
  125. package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
  126. package/dist/stageChain-BxBafwjD.js +74 -0
  127. package/dist/stageChain.en-US-CP0G27n8.js +74 -0
  128. package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
  129. package/dist/subgraph-7n4SwliR.js +71 -0
  130. package/dist/subgraph.en-US-BNvY18IW.js +71 -0
  131. package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
  132. package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
  133. package/dist/taskInbox-DGWYeI2b.js +118 -0
  134. package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
  135. package/dist/text-BqSVQKS6.js +78 -0
  136. package/dist/text.en-US-BhAxy_LE.js +78 -0
  137. package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
  138. package/dist/trendChart-BjEeRS5_.js +135 -0
  139. package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
  140. package/dist/useLabData-Df-jEHKs.js +20470 -0
  141. package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
  142. package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
  143. package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
  144. package/dist/workshop-app-DnHNjBqy.js +86038 -0
  145. package/dist/workshop-app.css +1 -0
  146. package/dist/workshop-app.js +4 -0
  147. package/dist/world-Djau1JyJ.js +9 -0
  148. package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
  149. package/dist-cli/workshop.js +341 -218
  150. package/example/host.js +109 -0
  151. package/example/index.html +93 -0
  152. package/example/server.mjs +237 -0
  153. package/index.d.ts +48 -0
  154. package/lib/validate.js +47 -1
  155. package/package.json +17 -5
  156. package/runtime/frame-runtime.js +13 -1
  157. package/workshop-component.js +32 -12
  158. package/workshop.js +2 -0
@@ -0,0 +1,1741 @@
1
+ import { g as pe, s as ve, x as Te, v as xe, a as be, b as we, _ as c, c as at, k as kt, d as _e, l as et, m as De, p as Se, D as Ce, u as Ee } from "./mermaid.core-yQghUlIz.js";
2
+ import { d as q } from "./dayjs.min-DZ-YV8Mv.js";
3
+ import { N as re } from "./workshop-app-DnHNjBqy.js";
4
+ import { d as Ie, a as Me } from "./customParseFormat-C0uLEpdq.js";
5
+ import { t as Ae, m as Fe, a as $e, l as Oe, h as Le, c as jt, d as Ut, e as We, g as Ye, i as Ve, j as Pe, k as Re, n as Ne, p as ze, q as Xt, r as Gt, s as Kt, u as Jt, v as Qt } from "./d3-scale-DA8IHmf0.js";
6
+ function Be(t) {
7
+ return t;
8
+ }
9
+ var gt = 1, Ct = 2, It = 3, yt = 4, Zt = 1e-6;
10
+ function He(t) {
11
+ return "translate(" + t + ",0)";
12
+ }
13
+ function qe(t) {
14
+ return "translate(0," + t + ")";
15
+ }
16
+ function je(t) {
17
+ return (e) => +t(e);
18
+ }
19
+ function Ue(t, e) {
20
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (i) => +t(i) + e;
21
+ }
22
+ function Xe() {
23
+ return !this.__axis;
24
+ }
25
+ function ae(t, e) {
26
+ var i = [], s = null, r = null, k = 6, v = 6, S = 3, A = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, F = t === gt || t === yt ? -1 : 1, O = t === yt || t === Ct ? "x" : "y", L = t === gt || t === It ? He : qe;
27
+ function x(b) {
28
+ var P = s ?? (e.ticks ? e.ticks.apply(e, i) : e.domain()), W = r ?? (e.tickFormat ? e.tickFormat.apply(e, i) : Be), I = Math.max(k, 0) + S, z = e.range(), K = +z[0] + A, B = +z[z.length - 1] + A, X = (e.bandwidth ? Ue : je)(e.copy(), A), j = b.selection ? b.selection() : b, M = j.selectAll(".domain").data([null]), y = j.selectAll(".tick").data(P, e).order(), m = y.exit(), $ = y.enter().append("g").attr("class", "tick"), f = y.select("line"), T = y.select("text");
29
+ M = M.merge(M.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), y = y.merge($), f = f.merge($.append("line").attr("stroke", "currentColor").attr(O + "2", F * k)), T = T.merge($.append("text").attr("fill", "currentColor").attr(O, F * I).attr("dy", t === gt ? "0em" : t === It ? "0.71em" : "0.32em")), b !== j && (M = M.transition(b), y = y.transition(b), f = f.transition(b), T = T.transition(b), m = m.transition(b).attr("opacity", Zt).attr("transform", function(g) {
30
+ return isFinite(g = X(g)) ? L(g + A) : this.getAttribute("transform");
31
+ }), $.attr("opacity", Zt).attr("transform", function(g) {
32
+ var p = this.parentNode.__axis;
33
+ return L((p && isFinite(p = p(g)) ? p : X(g)) + A);
34
+ })), m.remove(), M.attr("d", t === yt || t === Ct ? v ? "M" + F * v + "," + K + "H" + A + "V" + B + "H" + F * v : "M" + A + "," + K + "V" + B : v ? "M" + K + "," + F * v + "V" + A + "H" + B + "V" + F * v : "M" + K + "," + A + "H" + B), y.attr("opacity", 1).attr("transform", function(g) {
35
+ return L(X(g) + A);
36
+ }), f.attr(O + "2", F * k), T.attr(O, F * I).text(W), j.filter(Xe).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Ct ? "start" : t === yt ? "end" : "middle"), j.each(function() {
37
+ this.__axis = X;
38
+ });
39
+ }
40
+ return x.scale = function(b) {
41
+ return arguments.length ? (e = b, x) : e;
42
+ }, x.ticks = function() {
43
+ return i = Array.from(arguments), x;
44
+ }, x.tickArguments = function(b) {
45
+ return arguments.length ? (i = b == null ? [] : Array.from(b), x) : i.slice();
46
+ }, x.tickValues = function(b) {
47
+ return arguments.length ? (s = b == null ? null : Array.from(b), x) : s && s.slice();
48
+ }, x.tickFormat = function(b) {
49
+ return arguments.length ? (r = b, x) : r;
50
+ }, x.tickSize = function(b) {
51
+ return arguments.length ? (k = v = +b, x) : k;
52
+ }, x.tickSizeInner = function(b) {
53
+ return arguments.length ? (k = +b, x) : k;
54
+ }, x.tickSizeOuter = function(b) {
55
+ return arguments.length ? (v = +b, x) : v;
56
+ }, x.tickPadding = function(b) {
57
+ return arguments.length ? (S = +b, x) : S;
58
+ }, x.offset = function(b) {
59
+ return arguments.length ? (A = +b, x) : A;
60
+ }, x;
61
+ }
62
+ function Ge(t) {
63
+ return ae(gt, t);
64
+ }
65
+ function Ke(t) {
66
+ return ae(It, t);
67
+ }
68
+ var pt = { exports: {} }, Je = pt.exports, te;
69
+ function Qe() {
70
+ return te || (te = 1, (function(t, e) {
71
+ (function(i, s) {
72
+ t.exports = s();
73
+ })(Je, (function() {
74
+ var i = "day";
75
+ return function(s, r, k) {
76
+ var v = function(F) {
77
+ return F.add(4 - F.isoWeekday(), i);
78
+ }, S = r.prototype;
79
+ S.isoWeekYear = function() {
80
+ return v(this).year();
81
+ }, S.isoWeek = function(F) {
82
+ if (!this.$utils().u(F)) return this.add(7 * (F - this.isoWeek()), i);
83
+ var O, L, x, b, P = v(this), W = (O = this.isoWeekYear(), L = this.$u, x = (L ? k.utc : k)().year(O).startOf("year"), b = 4 - x.isoWeekday(), x.isoWeekday() > 4 && (b += 7), x.add(b, i));
84
+ return P.diff(W, "week") + 1;
85
+ }, S.isoWeekday = function(F) {
86
+ return this.$utils().u(F) ? this.day() || 7 : this.day(this.day() % 7 ? F : F - 7);
87
+ };
88
+ var A = S.startOf;
89
+ S.startOf = function(F, O) {
90
+ var L = this.$utils(), x = !!L.u(O) || O;
91
+ return L.p(F) === "isoweek" ? x ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : A.bind(this)(F, O);
92
+ };
93
+ };
94
+ }));
95
+ })(pt)), pt.exports;
96
+ }
97
+ var Ze = Qe();
98
+ const ts = /* @__PURE__ */ re(Ze);
99
+ var vt = { exports: {} }, es = vt.exports, ee;
100
+ function ss() {
101
+ return ee || (ee = 1, (function(t, e) {
102
+ (function(i, s) {
103
+ t.exports = s();
104
+ })(es, (function() {
105
+ var i, s, r = 1e3, k = 6e4, v = 36e5, S = 864e5, A = 31536e6, F = 2628e6, O = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, L = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, x = { years: A, months: F, days: S, hours: v, minutes: k, seconds: r, milliseconds: 1, weeks: 6048e5 }, b = function(M) {
106
+ return M instanceof X;
107
+ }, P = function(M, y, m) {
108
+ return new X(M, m, y.$l);
109
+ }, W = function(M) {
110
+ return s.p(M) + "s";
111
+ }, I = function(M) {
112
+ return M < 0;
113
+ }, z = function(M) {
114
+ return I(M) ? Math.ceil(M) : Math.floor(M);
115
+ }, K = function(M) {
116
+ return Math.abs(M);
117
+ }, B = function(M, y) {
118
+ return M ? I(M) ? { negative: !0, format: "" + K(M) + y } : { negative: !1, format: "" + M + y } : { negative: !1, format: "" };
119
+ }, X = (function() {
120
+ function M(m, $, f) {
121
+ var T = this;
122
+ if (this.$d = {}, this.$l = f, m === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), $) return P(m * x[W($)], this);
123
+ if (typeof m == "number") return this.$ms = m, this.parseFromMilliseconds(), this;
124
+ if (typeof m == "object") return Object.keys(m).forEach((function(a) {
125
+ T.$d[W(a)] = m[a];
126
+ })), this.calMilliseconds(), this;
127
+ if (typeof m == "string") {
128
+ var g = m.match(O);
129
+ if (g) {
130
+ var p = g.slice(2).map((function(a) {
131
+ return a != null ? Number(a) : 0;
132
+ }));
133
+ return this.$d.years = p[0], this.$d.months = p[1], this.$d.weeks = p[2], this.$d.days = p[3], this.$d.hours = p[4], this.$d.minutes = p[5], this.$d.seconds = p[6], this.calMilliseconds(), this;
134
+ }
135
+ }
136
+ return this;
137
+ }
138
+ var y = M.prototype;
139
+ return y.calMilliseconds = function() {
140
+ var m = this;
141
+ this.$ms = Object.keys(this.$d).reduce((function($, f) {
142
+ return $ + (m.$d[f] || 0) * x[f];
143
+ }), 0);
144
+ }, y.parseFromMilliseconds = function() {
145
+ var m = this.$ms;
146
+ this.$d.years = z(m / A), m %= A, this.$d.months = z(m / F), m %= F, this.$d.days = z(m / S), m %= S, this.$d.hours = z(m / v), m %= v, this.$d.minutes = z(m / k), m %= k, this.$d.seconds = z(m / r), m %= r, this.$d.milliseconds = m;
147
+ }, y.toISOString = function() {
148
+ var m = B(this.$d.years, "Y"), $ = B(this.$d.months, "M"), f = +this.$d.days || 0;
149
+ this.$d.weeks && (f += 7 * this.$d.weeks);
150
+ var T = B(f, "D"), g = B(this.$d.hours, "H"), p = B(this.$d.minutes, "M"), a = this.$d.seconds || 0;
151
+ this.$d.milliseconds && (a += this.$d.milliseconds / 1e3, a = Math.round(1e3 * a) / 1e3);
152
+ var d = B(a, "S"), h = m.negative || $.negative || T.negative || g.negative || p.negative || d.negative, u = g.format || p.format || d.format ? "T" : "", C = (h ? "-" : "") + "P" + m.format + $.format + T.format + u + g.format + p.format + d.format;
153
+ return C === "P" || C === "-P" ? "P0D" : C;
154
+ }, y.toJSON = function() {
155
+ return this.toISOString();
156
+ }, y.format = function(m) {
157
+ var $ = m || "YYYY-MM-DDTHH:mm:ss", f = { Y: this.$d.years, YY: s.s(this.$d.years, 2, "0"), YYYY: s.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s.s(this.$d.seconds, 2, "0"), SSS: s.s(this.$d.milliseconds, 3, "0") };
158
+ return $.replace(L, (function(T, g) {
159
+ return g || String(f[T]);
160
+ }));
161
+ }, y.as = function(m) {
162
+ return this.$ms / x[W(m)];
163
+ }, y.get = function(m) {
164
+ var $ = this.$ms, f = W(m);
165
+ return f === "milliseconds" ? $ %= 1e3 : $ = f === "weeks" ? z($ / x[f]) : this.$d[f], $ || 0;
166
+ }, y.add = function(m, $, f) {
167
+ var T;
168
+ return T = $ ? m * x[W($)] : b(m) ? m.$ms : P(m, this).$ms, P(this.$ms + T * (f ? -1 : 1), this);
169
+ }, y.subtract = function(m, $) {
170
+ return this.add(m, $, !0);
171
+ }, y.locale = function(m) {
172
+ var $ = this.clone();
173
+ return $.$l = m, $;
174
+ }, y.clone = function() {
175
+ return P(this.$ms, this);
176
+ }, y.humanize = function(m) {
177
+ return i().add(this.$ms, "ms").locale(this.$l).fromNow(!m);
178
+ }, y.valueOf = function() {
179
+ return this.asMilliseconds();
180
+ }, y.milliseconds = function() {
181
+ return this.get("milliseconds");
182
+ }, y.asMilliseconds = function() {
183
+ return this.as("milliseconds");
184
+ }, y.seconds = function() {
185
+ return this.get("seconds");
186
+ }, y.asSeconds = function() {
187
+ return this.as("seconds");
188
+ }, y.minutes = function() {
189
+ return this.get("minutes");
190
+ }, y.asMinutes = function() {
191
+ return this.as("minutes");
192
+ }, y.hours = function() {
193
+ return this.get("hours");
194
+ }, y.asHours = function() {
195
+ return this.as("hours");
196
+ }, y.days = function() {
197
+ return this.get("days");
198
+ }, y.asDays = function() {
199
+ return this.as("days");
200
+ }, y.weeks = function() {
201
+ return this.get("weeks");
202
+ }, y.asWeeks = function() {
203
+ return this.as("weeks");
204
+ }, y.months = function() {
205
+ return this.get("months");
206
+ }, y.asMonths = function() {
207
+ return this.as("months");
208
+ }, y.years = function() {
209
+ return this.get("years");
210
+ }, y.asYears = function() {
211
+ return this.as("years");
212
+ }, M;
213
+ })(), j = function(M, y, m) {
214
+ return M.add(y.years() * m, "y").add(y.months() * m, "M").add(y.days() * m, "d").add(y.hours() * m, "h").add(y.minutes() * m, "m").add(y.seconds() * m, "s").add(y.milliseconds() * m, "ms");
215
+ };
216
+ return function(M, y, m) {
217
+ i = m, s = m().$utils(), m.duration = function(T, g) {
218
+ var p = m.locale();
219
+ return P(T, { $l: p }, g);
220
+ }, m.isDuration = b;
221
+ var $ = y.prototype.add, f = y.prototype.subtract;
222
+ y.prototype.add = function(T, g) {
223
+ return b(T) ? j(this, T, 1) : $.bind(this)(T, g);
224
+ }, y.prototype.subtract = function(T, g) {
225
+ return b(T) ? j(this, T, -1) : f.bind(this)(T, g);
226
+ };
227
+ };
228
+ }));
229
+ })(vt)), vt.exports;
230
+ }
231
+ var is = ss();
232
+ const ns = /* @__PURE__ */ re(is);
233
+ var Mt = (function() {
234
+ var t = /* @__PURE__ */ c(function(p, a, d, h) {
235
+ for (d = d || {}, h = p.length; h--; d[p[h]] = a) ;
236
+ return d;
237
+ }, "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], i = [1, 26], s = [1, 27], r = [1, 28], k = [1, 29], v = [1, 30], S = [1, 31], A = [1, 32], F = [1, 33], O = [1, 34], L = [1, 9], x = [1, 10], b = [1, 11], P = [1, 12], W = [1, 13], I = [1, 14], z = [1, 15], K = [1, 16], B = [1, 19], X = [1, 20], j = [1, 21], M = [1, 22], y = [1, 23], m = [1, 25], $ = [1, 35], f = {
238
+ trace: /* @__PURE__ */ c(function() {
239
+ }, "trace"),
240
+ yy: {},
241
+ 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 },
242
+ 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" },
243
+ 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]],
244
+ performAction: /* @__PURE__ */ c(function(a, d, h, u, C, n, E) {
245
+ var l = n.length - 1;
246
+ switch (C) {
247
+ case 1:
248
+ return n[l - 1];
249
+ case 2:
250
+ this.$ = [];
251
+ break;
252
+ case 3:
253
+ n[l - 1].push(n[l]), this.$ = n[l - 1];
254
+ break;
255
+ case 4:
256
+ case 5:
257
+ this.$ = n[l];
258
+ break;
259
+ case 6:
260
+ case 7:
261
+ this.$ = [];
262
+ break;
263
+ case 8:
264
+ u.setWeekday("monday");
265
+ break;
266
+ case 9:
267
+ u.setWeekday("tuesday");
268
+ break;
269
+ case 10:
270
+ u.setWeekday("wednesday");
271
+ break;
272
+ case 11:
273
+ u.setWeekday("thursday");
274
+ break;
275
+ case 12:
276
+ u.setWeekday("friday");
277
+ break;
278
+ case 13:
279
+ u.setWeekday("saturday");
280
+ break;
281
+ case 14:
282
+ u.setWeekday("sunday");
283
+ break;
284
+ case 15:
285
+ u.setWeekend("friday");
286
+ break;
287
+ case 16:
288
+ u.setWeekend("saturday");
289
+ break;
290
+ case 17:
291
+ u.setDateFormat(n[l].substr(11)), this.$ = n[l].substr(11);
292
+ break;
293
+ case 18:
294
+ u.enableInclusiveEndDates(), this.$ = n[l].substr(18);
295
+ break;
296
+ case 19:
297
+ u.TopAxis(), this.$ = n[l].substr(8);
298
+ break;
299
+ case 20:
300
+ u.setAxisFormat(n[l].substr(11)), this.$ = n[l].substr(11);
301
+ break;
302
+ case 21:
303
+ u.setTickInterval(n[l].substr(13)), this.$ = n[l].substr(13);
304
+ break;
305
+ case 22:
306
+ u.setExcludes(n[l].substr(9)), this.$ = n[l].substr(9);
307
+ break;
308
+ case 23:
309
+ u.setIncludes(n[l].substr(9)), this.$ = n[l].substr(9);
310
+ break;
311
+ case 24:
312
+ u.setTodayMarker(n[l].substr(12)), this.$ = n[l].substr(12);
313
+ break;
314
+ case 27:
315
+ u.setDiagramTitle(n[l].substr(6)), this.$ = n[l].substr(6);
316
+ break;
317
+ case 28:
318
+ this.$ = n[l].trim(), u.setAccTitle(this.$);
319
+ break;
320
+ case 29:
321
+ case 30:
322
+ this.$ = n[l].trim(), u.setAccDescription(this.$);
323
+ break;
324
+ case 31:
325
+ u.addSection(n[l].substr(8)), this.$ = n[l].substr(8);
326
+ break;
327
+ case 33:
328
+ u.addTask(n[l - 1], n[l]), this.$ = "task";
329
+ break;
330
+ case 34:
331
+ this.$ = n[l - 1], u.setClickEvent(n[l - 1], n[l], null);
332
+ break;
333
+ case 35:
334
+ this.$ = n[l - 2], u.setClickEvent(n[l - 2], n[l - 1], n[l]);
335
+ break;
336
+ case 36:
337
+ this.$ = n[l - 2], u.setClickEvent(n[l - 2], n[l - 1], null), u.setLink(n[l - 2], n[l]);
338
+ break;
339
+ case 37:
340
+ this.$ = n[l - 3], u.setClickEvent(n[l - 3], n[l - 2], n[l - 1]), u.setLink(n[l - 3], n[l]);
341
+ break;
342
+ case 38:
343
+ this.$ = n[l - 2], u.setClickEvent(n[l - 2], n[l], null), u.setLink(n[l - 2], n[l - 1]);
344
+ break;
345
+ case 39:
346
+ this.$ = n[l - 3], u.setClickEvent(n[l - 3], n[l - 1], n[l]), u.setLink(n[l - 3], n[l - 2]);
347
+ break;
348
+ case 40:
349
+ this.$ = n[l - 1], u.setLink(n[l - 1], n[l]);
350
+ break;
351
+ case 41:
352
+ case 47:
353
+ this.$ = n[l - 1] + " " + n[l];
354
+ break;
355
+ case 42:
356
+ case 43:
357
+ case 45:
358
+ this.$ = n[l - 2] + " " + n[l - 1] + " " + n[l];
359
+ break;
360
+ case 44:
361
+ case 46:
362
+ this.$ = n[l - 3] + " " + n[l - 2] + " " + n[l - 1] + " " + n[l];
363
+ break;
364
+ }
365
+ }, "anonymous"),
366
+ 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: i, 13: s, 14: r, 15: k, 16: v, 17: S, 18: A, 19: 18, 20: F, 21: O, 22: L, 23: x, 24: b, 25: P, 26: W, 27: I, 28: z, 29: K, 30: B, 31: X, 33: j, 35: M, 36: y, 37: 24, 38: m, 40: $ }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: i, 13: s, 14: r, 15: k, 16: v, 17: S, 18: A, 19: 18, 20: F, 21: O, 22: L, 23: x, 24: b, 25: P, 26: W, 27: I, 28: z, 29: K, 30: B, 31: X, 33: j, 35: M, 36: y, 37: 24, 38: m, 40: $ }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
367
+ defaultActions: {},
368
+ parseError: /* @__PURE__ */ c(function(a, d) {
369
+ if (d.recoverable)
370
+ this.trace(a);
371
+ else {
372
+ var h = new Error(a);
373
+ throw h.hash = d, h;
374
+ }
375
+ }, "parseError"),
376
+ parse: /* @__PURE__ */ c(function(a) {
377
+ var d = this, h = [0], u = [], C = [null], n = [], E = this.table, l = "", H = 0, o = 0, w = 2, _ = 1, Y = n.slice.call(arguments, 1), D = Object.create(this.lexer), R = { yy: {} };
378
+ for (var V in this.yy)
379
+ Object.prototype.hasOwnProperty.call(this.yy, V) && (R.yy[V] = this.yy[V]);
380
+ D.setInput(a, R.yy), R.yy.lexer = D, R.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
381
+ var dt = D.yylloc;
382
+ n.push(dt);
383
+ var _t = D.options && D.options.ranges;
384
+ typeof R.yy.parseError == "function" ? this.parseError = R.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
385
+ function ge(G) {
386
+ h.length = h.length - 2 * G, C.length = C.length - G, n.length = n.length - G;
387
+ }
388
+ c(ge, "popStack");
389
+ function Ht() {
390
+ var G;
391
+ return G = u.pop() || D.lex() || _, typeof G != "number" && (G instanceof Array && (u = G, G = u.pop()), G = d.symbols_[G] || G), G;
392
+ }
393
+ c(Ht, "lex");
394
+ for (var U, st, J, Dt, nt = {}, ht, Z, qt, mt; ; ) {
395
+ if (st = h[h.length - 1], this.defaultActions[st] ? J = this.defaultActions[st] : ((U === null || typeof U > "u") && (U = Ht()), J = E[st] && E[st][U]), typeof J > "u" || !J.length || !J[0]) {
396
+ var St = "";
397
+ mt = [];
398
+ for (ht in E[st])
399
+ this.terminals_[ht] && ht > w && mt.push("'" + this.terminals_[ht] + "'");
400
+ D.showPosition ? St = "Parse error on line " + (H + 1) + `:
401
+ ` + D.showPosition() + `
402
+ Expecting ` + mt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : St = "Parse error on line " + (H + 1) + ": Unexpected " + (U == _ ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError(St, {
403
+ text: D.match,
404
+ token: this.terminals_[U] || U,
405
+ line: D.yylineno,
406
+ loc: dt,
407
+ expected: mt
408
+ });
409
+ }
410
+ if (J[0] instanceof Array && J.length > 1)
411
+ throw new Error("Parse Error: multiple actions possible at state: " + st + ", token: " + U);
412
+ switch (J[0]) {
413
+ case 1:
414
+ h.push(U), C.push(D.yytext), n.push(D.yylloc), h.push(J[1]), U = null, o = D.yyleng, l = D.yytext, H = D.yylineno, dt = D.yylloc;
415
+ break;
416
+ case 2:
417
+ if (Z = this.productions_[J[1]][1], nt.$ = C[C.length - Z], nt._$ = {
418
+ first_line: n[n.length - (Z || 1)].first_line,
419
+ last_line: n[n.length - 1].last_line,
420
+ first_column: n[n.length - (Z || 1)].first_column,
421
+ last_column: n[n.length - 1].last_column
422
+ }, _t && (nt._$.range = [
423
+ n[n.length - (Z || 1)].range[0],
424
+ n[n.length - 1].range[1]
425
+ ]), Dt = this.performAction.apply(nt, [
426
+ l,
427
+ o,
428
+ H,
429
+ R.yy,
430
+ J[1],
431
+ C,
432
+ n
433
+ ].concat(Y)), typeof Dt < "u")
434
+ return Dt;
435
+ Z && (h = h.slice(0, -1 * Z * 2), C = C.slice(0, -1 * Z), n = n.slice(0, -1 * Z)), h.push(this.productions_[J[1]][0]), C.push(nt.$), n.push(nt._$), qt = E[h[h.length - 2]][h[h.length - 1]], h.push(qt);
436
+ break;
437
+ case 3:
438
+ return !0;
439
+ }
440
+ }
441
+ return !0;
442
+ }, "parse")
443
+ }, T = /* @__PURE__ */ (function() {
444
+ var p = {
445
+ EOF: 1,
446
+ parseError: /* @__PURE__ */ c(function(d, h) {
447
+ if (this.yy.parser)
448
+ this.yy.parser.parseError(d, h);
449
+ else
450
+ throw new Error(d);
451
+ }, "parseError"),
452
+ // resets the lexer, sets new input
453
+ setInput: /* @__PURE__ */ c(function(a, d) {
454
+ return this.yy = d || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
455
+ first_line: 1,
456
+ first_column: 0,
457
+ last_line: 1,
458
+ last_column: 0
459
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
460
+ }, "setInput"),
461
+ // consumes and returns one char from the input
462
+ input: /* @__PURE__ */ c(function() {
463
+ var a = this._input[0];
464
+ this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a;
465
+ var d = a.match(/(?:\r\n?|\n).*/g);
466
+ return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
467
+ }, "input"),
468
+ // unshifts one char (or a string) into the input
469
+ unput: /* @__PURE__ */ c(function(a) {
470
+ var d = a.length, h = a.split(/(?:\r\n?|\n)/g);
471
+ this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
472
+ var u = this.match.split(/(?:\r\n?|\n)/g);
473
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
474
+ var C = this.yylloc.range;
475
+ return this.yylloc = {
476
+ first_line: this.yylloc.first_line,
477
+ last_line: this.yylineno + 1,
478
+ first_column: this.yylloc.first_column,
479
+ last_column: h ? (h.length === u.length ? this.yylloc.first_column : 0) + u[u.length - h.length].length - h[0].length : this.yylloc.first_column - d
480
+ }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
481
+ }, "unput"),
482
+ // When called from action, caches matched text and appends it on next action
483
+ more: /* @__PURE__ */ c(function() {
484
+ return this._more = !0, this;
485
+ }, "more"),
486
+ // 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.
487
+ reject: /* @__PURE__ */ c(function() {
488
+ if (this.options.backtrack_lexer)
489
+ this._backtrack = !0;
490
+ else
491
+ 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).
492
+ ` + this.showPosition(), {
493
+ text: "",
494
+ token: null,
495
+ line: this.yylineno
496
+ });
497
+ return this;
498
+ }, "reject"),
499
+ // retain first n characters of the match
500
+ less: /* @__PURE__ */ c(function(a) {
501
+ this.unput(this.match.slice(a));
502
+ }, "less"),
503
+ // displays already matched input, i.e. for error messages
504
+ pastInput: /* @__PURE__ */ c(function() {
505
+ var a = this.matched.substr(0, this.matched.length - this.match.length);
506
+ return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
507
+ }, "pastInput"),
508
+ // displays upcoming input, i.e. for error messages
509
+ upcomingInput: /* @__PURE__ */ c(function() {
510
+ var a = this.match;
511
+ return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
512
+ }, "upcomingInput"),
513
+ // displays the character position where the lexing error occurred, i.e. for error messages
514
+ showPosition: /* @__PURE__ */ c(function() {
515
+ var a = this.pastInput(), d = new Array(a.length + 1).join("-");
516
+ return a + this.upcomingInput() + `
517
+ ` + d + "^";
518
+ }, "showPosition"),
519
+ // test the lexed token: return FALSE when not a match, otherwise return token
520
+ test_match: /* @__PURE__ */ c(function(a, d) {
521
+ var h, u, C;
522
+ if (this.options.backtrack_lexer && (C = {
523
+ yylineno: this.yylineno,
524
+ yylloc: {
525
+ first_line: this.yylloc.first_line,
526
+ last_line: this.last_line,
527
+ first_column: this.yylloc.first_column,
528
+ last_column: this.yylloc.last_column
529
+ },
530
+ yytext: this.yytext,
531
+ match: this.match,
532
+ matches: this.matches,
533
+ matched: this.matched,
534
+ yyleng: this.yyleng,
535
+ offset: this.offset,
536
+ _more: this._more,
537
+ _input: this._input,
538
+ yy: this.yy,
539
+ conditionStack: this.conditionStack.slice(0),
540
+ done: this.done
541
+ }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), u = a[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
542
+ first_line: this.yylloc.last_line,
543
+ last_line: this.yylineno + 1,
544
+ first_column: this.yylloc.last_column,
545
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
546
+ }, this.yytext += a[0], this.match += a[0], this.matches = a, 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(a[0].length), this.matched += a[0], h = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
547
+ return h;
548
+ if (this._backtrack) {
549
+ for (var n in C)
550
+ this[n] = C[n];
551
+ return !1;
552
+ }
553
+ return !1;
554
+ }, "test_match"),
555
+ // return next match in input
556
+ next: /* @__PURE__ */ c(function() {
557
+ if (this.done)
558
+ return this.EOF;
559
+ this._input || (this.done = !0);
560
+ var a, d, h, u;
561
+ this._more || (this.yytext = "", this.match = "");
562
+ for (var C = this._currentRules(), n = 0; n < C.length; n++)
563
+ if (h = this._input.match(this.rules[C[n]]), h && (!d || h[0].length > d[0].length)) {
564
+ if (d = h, u = n, this.options.backtrack_lexer) {
565
+ if (a = this.test_match(h, C[n]), a !== !1)
566
+ return a;
567
+ if (this._backtrack) {
568
+ d = !1;
569
+ continue;
570
+ } else
571
+ return !1;
572
+ } else if (!this.options.flex)
573
+ break;
574
+ }
575
+ return d ? (a = this.test_match(d, C[u]), a !== !1 ? a : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
576
+ ` + this.showPosition(), {
577
+ text: "",
578
+ token: null,
579
+ line: this.yylineno
580
+ });
581
+ }, "next"),
582
+ // return next match that has a token
583
+ lex: /* @__PURE__ */ c(function() {
584
+ var d = this.next();
585
+ return d || this.lex();
586
+ }, "lex"),
587
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
588
+ begin: /* @__PURE__ */ c(function(d) {
589
+ this.conditionStack.push(d);
590
+ }, "begin"),
591
+ // pop the previously active lexer condition state off the condition stack
592
+ popState: /* @__PURE__ */ c(function() {
593
+ var d = this.conditionStack.length - 1;
594
+ return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
595
+ }, "popState"),
596
+ // produce the lexer rule set which is active for the currently active lexer condition state
597
+ _currentRules: /* @__PURE__ */ c(function() {
598
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
599
+ }, "_currentRules"),
600
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
601
+ topState: /* @__PURE__ */ c(function(d) {
602
+ return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
603
+ }, "topState"),
604
+ // alias for begin(condition)
605
+ pushState: /* @__PURE__ */ c(function(d) {
606
+ this.begin(d);
607
+ }, "pushState"),
608
+ // return the number of states currently on the stack
609
+ stateStackSize: /* @__PURE__ */ c(function() {
610
+ return this.conditionStack.length;
611
+ }, "stateStackSize"),
612
+ options: { "case-insensitive": !0 },
613
+ performAction: /* @__PURE__ */ c(function(d, h, u, C) {
614
+ switch (u) {
615
+ case 0:
616
+ return this.begin("open_directive"), "open_directive";
617
+ case 1:
618
+ return this.begin("acc_title"), 31;
619
+ case 2:
620
+ return this.popState(), "acc_title_value";
621
+ case 3:
622
+ return this.begin("acc_descr"), 33;
623
+ case 4:
624
+ return this.popState(), "acc_descr_value";
625
+ case 5:
626
+ this.begin("acc_descr_multiline");
627
+ break;
628
+ case 6:
629
+ this.popState();
630
+ break;
631
+ case 7:
632
+ return "acc_descr_multiline_value";
633
+ case 8:
634
+ break;
635
+ case 9:
636
+ break;
637
+ case 10:
638
+ break;
639
+ case 11:
640
+ return 10;
641
+ case 12:
642
+ break;
643
+ case 13:
644
+ break;
645
+ case 14:
646
+ this.begin("href");
647
+ break;
648
+ case 15:
649
+ this.popState();
650
+ break;
651
+ case 16:
652
+ return 43;
653
+ case 17:
654
+ this.begin("callbackname");
655
+ break;
656
+ case 18:
657
+ this.popState();
658
+ break;
659
+ case 19:
660
+ this.popState(), this.begin("callbackargs");
661
+ break;
662
+ case 20:
663
+ return 41;
664
+ case 21:
665
+ this.popState();
666
+ break;
667
+ case 22:
668
+ return 42;
669
+ case 23:
670
+ this.begin("click");
671
+ break;
672
+ case 24:
673
+ this.popState();
674
+ break;
675
+ case 25:
676
+ return 40;
677
+ case 26:
678
+ return 4;
679
+ case 27:
680
+ return 22;
681
+ case 28:
682
+ return 23;
683
+ case 29:
684
+ return 24;
685
+ case 30:
686
+ return 25;
687
+ case 31:
688
+ return 26;
689
+ case 32:
690
+ return 28;
691
+ case 33:
692
+ return 27;
693
+ case 34:
694
+ return 29;
695
+ case 35:
696
+ return 12;
697
+ case 36:
698
+ return 13;
699
+ case 37:
700
+ return 14;
701
+ case 38:
702
+ return 15;
703
+ case 39:
704
+ return 16;
705
+ case 40:
706
+ return 17;
707
+ case 41:
708
+ return 18;
709
+ case 42:
710
+ return 20;
711
+ case 43:
712
+ return 21;
713
+ case 44:
714
+ return "date";
715
+ case 45:
716
+ return 30;
717
+ case 46:
718
+ return "accDescription";
719
+ case 47:
720
+ return 36;
721
+ case 48:
722
+ return 38;
723
+ case 49:
724
+ return 39;
725
+ case 50:
726
+ return ":";
727
+ case 51:
728
+ return 6;
729
+ case 52:
730
+ return "INVALID";
731
+ }
732
+ }, "anonymous"),
733
+ 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],
734
+ 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 } }
735
+ };
736
+ return p;
737
+ })();
738
+ f.lexer = T;
739
+ function g() {
740
+ this.yy = {};
741
+ }
742
+ return c(g, "Parser"), g.prototype = f, f.Parser = g, new g();
743
+ })();
744
+ Mt.parser = Mt;
745
+ var rs = Mt;
746
+ q.extend(ts);
747
+ q.extend(Ie);
748
+ q.extend(Me);
749
+ var se = { friday: 5, saturday: 6 }, Q = "", Ot = "", Lt = void 0, Wt = "", ct = [], lt = [], Yt = /* @__PURE__ */ new Map(), Vt = [], bt = [], ut = "", Pt = "", oe = ["active", "done", "crit", "milestone", "vert"], Rt = [], rt = "", ft = !1, Nt = !1, zt = "sunday", wt = "saturday", At = 0, as = /* @__PURE__ */ c(function() {
750
+ Vt = [], bt = [], ut = "", Rt = [], Tt = 0, $t = void 0, xt = void 0, N = [], Q = "", Ot = "", Pt = "", Lt = void 0, Wt = "", ct = [], lt = [], ft = !1, Nt = !1, At = 0, Yt = /* @__PURE__ */ new Map(), rt = "", Ce(), zt = "sunday", wt = "saturday";
751
+ }, "clear"), os = /* @__PURE__ */ c(function(t) {
752
+ rt = t;
753
+ }, "setDiagramId"), cs = /* @__PURE__ */ c(function(t) {
754
+ Ot = t;
755
+ }, "setAxisFormat"), ls = /* @__PURE__ */ c(function() {
756
+ return Ot;
757
+ }, "getAxisFormat"), us = /* @__PURE__ */ c(function(t) {
758
+ Lt = t;
759
+ }, "setTickInterval"), ds = /* @__PURE__ */ c(function() {
760
+ return Lt;
761
+ }, "getTickInterval"), fs = /* @__PURE__ */ c(function(t) {
762
+ Wt = t;
763
+ }, "setTodayMarker"), hs = /* @__PURE__ */ c(function() {
764
+ return Wt;
765
+ }, "getTodayMarker"), ms = /* @__PURE__ */ c(function(t) {
766
+ Q = t;
767
+ }, "setDateFormat"), ks = /* @__PURE__ */ c(function() {
768
+ ft = !0;
769
+ }, "enableInclusiveEndDates"), ys = /* @__PURE__ */ c(function() {
770
+ return ft;
771
+ }, "endDatesAreInclusive"), gs = /* @__PURE__ */ c(function() {
772
+ Nt = !0;
773
+ }, "enableTopAxis"), ps = /* @__PURE__ */ c(function() {
774
+ return Nt;
775
+ }, "topAxisEnabled"), vs = /* @__PURE__ */ c(function(t) {
776
+ Pt = t;
777
+ }, "setDisplayMode"), Ts = /* @__PURE__ */ c(function() {
778
+ return Pt;
779
+ }, "getDisplayMode"), xs = /* @__PURE__ */ c(function() {
780
+ return Q;
781
+ }, "getDateFormat"), ce = /* @__PURE__ */ c((t, e) => {
782
+ const i = e.toLowerCase().split(/[\s,]+/).filter((s) => s !== "");
783
+ return [.../* @__PURE__ */ new Set([...t, ...i])];
784
+ }, "mergeTokens"), bs = /* @__PURE__ */ c(function(t) {
785
+ ct = ce(ct, t);
786
+ }, "setIncludes"), ws = /* @__PURE__ */ c(function() {
787
+ return ct;
788
+ }, "getIncludes"), _s = /* @__PURE__ */ c(function(t) {
789
+ lt = ce(lt, t);
790
+ }, "setExcludes"), Ds = /* @__PURE__ */ c(function() {
791
+ return lt;
792
+ }, "getExcludes"), Ss = /* @__PURE__ */ c(function() {
793
+ return Yt;
794
+ }, "getLinks"), Cs = /* @__PURE__ */ c(function(t) {
795
+ ut = t, Vt.push(t);
796
+ }, "addSection"), Es = /* @__PURE__ */ c(function() {
797
+ return Vt;
798
+ }, "getSections"), Is = /* @__PURE__ */ c(function() {
799
+ let t = ie();
800
+ const e = 10;
801
+ let i = 0;
802
+ for (; !t && i < e; )
803
+ t = ie(), i++;
804
+ return bt = N, bt;
805
+ }, "getTasks"), le = /* @__PURE__ */ c(function(t, e, i, s) {
806
+ const r = t.format(e.trim()), k = t.format("YYYY-MM-DD");
807
+ return s.includes(r) || s.includes(k) ? !1 : i.includes("weekends") && (t.isoWeekday() === se[wt] || t.isoWeekday() === se[wt] + 1) || i.includes(t.format("dddd").toLowerCase()) ? !0 : i.includes(r) || i.includes(k);
808
+ }, "isInvalidDate"), Ms = /* @__PURE__ */ c(function(t) {
809
+ zt = t;
810
+ }, "setWeekday"), As = /* @__PURE__ */ c(function() {
811
+ return zt;
812
+ }, "getWeekday"), Fs = /* @__PURE__ */ c(function(t) {
813
+ wt = t;
814
+ }, "setWeekend"), ue = /* @__PURE__ */ c(function(t, e, i, s) {
815
+ if (!i.length || t.manualEndTime)
816
+ return;
817
+ let r;
818
+ t.startTime instanceof Date ? r = q(t.startTime) : r = q(t.startTime, e, !0), r = r.add(1, "d");
819
+ let k;
820
+ t.endTime instanceof Date ? k = q(t.endTime) : k = q(t.endTime, e, !0);
821
+ const [v, S] = $s(
822
+ r,
823
+ k,
824
+ e,
825
+ i,
826
+ s
827
+ );
828
+ t.endTime = v.toDate(), t.renderEndTime = S;
829
+ }, "checkTaskDates"), $s = /* @__PURE__ */ c(function(t, e, i, s, r) {
830
+ let k = !1, v = null;
831
+ const S = e.add(1e4, "d");
832
+ for (; t <= e; ) {
833
+ if (k || (v = e.toDate()), k = le(t, i, s, r), k && (e = e.add(1, "d"), e > S))
834
+ throw new Error(
835
+ "Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations."
836
+ );
837
+ t = t.add(1, "d");
838
+ }
839
+ return [e, v];
840
+ }, "fixTaskDates"), de = /* @__PURE__ */ c(function(t, e) {
841
+ et.warn(
842
+ `Gantt: the "${t}" statement references unknown task id(s): ${e.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`
843
+ );
844
+ }, "warnAboutUnknownTaskIds"), Ft = /* @__PURE__ */ c(function(t, e, i) {
845
+ if (i = i.trim(), (/* @__PURE__ */ c((S) => {
846
+ const A = S.trim();
847
+ return A === "x" || A === "X";
848
+ }, "isTimestampFormat"))(e) && /^\d+$/.test(i))
849
+ return new Date(Number(i));
850
+ const k = /^after\s+(?<ids>[\d\w- ]+)/.exec(i);
851
+ if (k !== null) {
852
+ let S = null;
853
+ const A = [], F = k.groups.ids.split(" ").filter((L) => L !== "");
854
+ for (const L of F) {
855
+ const x = it(L);
856
+ if (x === void 0) {
857
+ A.push(L);
858
+ continue;
859
+ }
860
+ (!S || x.endTime > S.endTime) && (S = x);
861
+ }
862
+ if (A.length > 0 && de("after", A), S)
863
+ return S.endTime;
864
+ const O = /* @__PURE__ */ new Date();
865
+ return O.setHours(0, 0, 0, 0), O;
866
+ }
867
+ let v = q(i, e.trim(), !0);
868
+ if (v.isValid())
869
+ return v.toDate();
870
+ {
871
+ et.debug("Invalid date:" + i), et.debug("With date format:" + e.trim());
872
+ const S = new Date(i);
873
+ if (S === void 0 || isNaN(S.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
874
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
875
+ // This can cause virtually infinite loops while rendering, so for the
876
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
877
+ // invalid.
878
+ S.getFullYear() < -1e4 || S.getFullYear() > 1e4)
879
+ throw new Error("Invalid date:" + i);
880
+ return S;
881
+ }
882
+ }, "getStartDate"), fe = /* @__PURE__ */ c(function(t) {
883
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
884
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
885
+ }, "parseDuration"), he = /* @__PURE__ */ c(function(t, e, i, s = !1) {
886
+ i = i.trim();
887
+ const k = /^until\s+(?<ids>[\d\w- ]+)/.exec(i);
888
+ if (k !== null) {
889
+ let O = null;
890
+ const L = [], x = k.groups.ids.split(" ").filter((P) => P !== "");
891
+ for (const P of x) {
892
+ const W = it(P);
893
+ if (W === void 0) {
894
+ L.push(P);
895
+ continue;
896
+ }
897
+ (!O || W.startTime < O.startTime) && (O = W);
898
+ }
899
+ if (L.length > 0 && de("until", L), O)
900
+ return O.startTime;
901
+ const b = /* @__PURE__ */ new Date();
902
+ return b.setHours(0, 0, 0, 0), b;
903
+ }
904
+ let v = q(i, e.trim(), !0);
905
+ if (v.isValid())
906
+ return s && (v = v.add(1, "d")), v.toDate();
907
+ let S = q(t);
908
+ const [A, F] = fe(i);
909
+ if (Number.isNaN(A))
910
+ et.warn(
911
+ `Gantt: "${i}" is neither a valid date for the "${e.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`
912
+ );
913
+ else {
914
+ const O = S.add(A, F);
915
+ O.isValid() && (S = O);
916
+ }
917
+ return S.toDate();
918
+ }, "getEndDate"), Tt = 0, ot = /* @__PURE__ */ c(function(t) {
919
+ return t === void 0 ? (Tt = Tt + 1, "task" + Tt) : t;
920
+ }, "parseId"), Os = /* @__PURE__ */ c(function(t, e) {
921
+ let i;
922
+ e.substr(0, 1) === ":" ? i = e.substr(1, e.length) : i = e;
923
+ const s = i.split(","), r = {};
924
+ Bt(s, r, oe);
925
+ for (let v = 0; v < s.length; v++)
926
+ s[v] = s[v].trim();
927
+ let k = "";
928
+ switch (s.length) {
929
+ case 1:
930
+ r.id = ot(), r.startTime = t.endTime, k = s[0];
931
+ break;
932
+ case 2:
933
+ r.id = ot(), r.startTime = Ft(void 0, Q, s[0]), k = s[1];
934
+ break;
935
+ case 3:
936
+ r.id = ot(s[0]), r.startTime = Ft(void 0, Q, s[1]), k = s[2];
937
+ break;
938
+ }
939
+ return k && (r.endTime = he(r.startTime, Q, k, ft), r.manualEndTime = q(k, "YYYY-MM-DD", !0).isValid(), ue(r, Q, lt, ct)), r;
940
+ }, "compileData"), Ls = /* @__PURE__ */ c(function(t, e) {
941
+ let i;
942
+ e.substr(0, 1) === ":" ? i = e.substr(1, e.length) : i = e;
943
+ const s = i.split(","), r = {};
944
+ Bt(s, r, oe);
945
+ for (let k = 0; k < s.length; k++)
946
+ s[k] = s[k].trim();
947
+ switch (s.length) {
948
+ case 1:
949
+ r.id = ot(), r.startTime = {
950
+ type: "prevTaskEnd",
951
+ id: t
952
+ }, r.endTime = {
953
+ data: s[0]
954
+ };
955
+ break;
956
+ case 2:
957
+ r.id = ot(), r.startTime = {
958
+ type: "getStartDate",
959
+ startData: s[0]
960
+ }, r.endTime = {
961
+ data: s[1]
962
+ };
963
+ break;
964
+ case 3:
965
+ r.id = ot(s[0]), r.startTime = {
966
+ type: "getStartDate",
967
+ startData: s[1]
968
+ }, r.endTime = {
969
+ data: s[2]
970
+ };
971
+ break;
972
+ }
973
+ return r;
974
+ }, "parseData"), $t, xt, N = [], me = {}, Ws = /* @__PURE__ */ c(function(t, e) {
975
+ const i = {
976
+ section: ut,
977
+ type: ut,
978
+ processed: !1,
979
+ manualEndTime: !1,
980
+ renderEndTime: null,
981
+ raw: { data: e },
982
+ task: t,
983
+ classes: []
984
+ }, s = Ls(xt, e);
985
+ i.raw.startTime = s.startTime, i.raw.endTime = s.endTime, i.id = s.id, i.prevTaskId = xt, i.active = s.active, i.done = s.done, i.crit = s.crit, i.milestone = s.milestone, i.vert = s.vert, i.vert ? i.order = -1 : (i.order = At, At++);
986
+ const r = N.push(i);
987
+ xt = i.id, me[i.id] = r - 1;
988
+ }, "addTask"), it = /* @__PURE__ */ c(function(t) {
989
+ const e = me[t];
990
+ return N[e];
991
+ }, "findTaskById"), Ys = /* @__PURE__ */ c(function(t, e) {
992
+ const i = {
993
+ section: ut,
994
+ type: ut,
995
+ description: t,
996
+ task: t,
997
+ classes: []
998
+ }, s = Os($t, e);
999
+ i.startTime = s.startTime, i.endTime = s.endTime, i.id = s.id, i.active = s.active, i.done = s.done, i.crit = s.crit, i.milestone = s.milestone, i.vert = s.vert, $t = i, bt.push(i);
1000
+ }, "addTaskOrg"), ie = /* @__PURE__ */ c(function() {
1001
+ const t = /* @__PURE__ */ c(function(i) {
1002
+ const s = N[i];
1003
+ let r = "";
1004
+ switch (N[i].raw.startTime.type) {
1005
+ case "prevTaskEnd": {
1006
+ const k = it(s.prevTaskId);
1007
+ s.startTime = k.endTime;
1008
+ break;
1009
+ }
1010
+ case "getStartDate":
1011
+ r = Ft(void 0, Q, N[i].raw.startTime.startData), r && (N[i].startTime = r);
1012
+ break;
1013
+ }
1014
+ return N[i].startTime && (N[i].endTime = he(
1015
+ N[i].startTime,
1016
+ Q,
1017
+ N[i].raw.endTime.data,
1018
+ ft
1019
+ ), N[i].endTime && (N[i].processed = !0, N[i].manualEndTime = q(
1020
+ N[i].raw.endTime.data,
1021
+ "YYYY-MM-DD",
1022
+ !0
1023
+ ).isValid(), ue(N[i], Q, lt, ct))), N[i].processed;
1024
+ }, "compileTask");
1025
+ let e = !0;
1026
+ for (const [i, s] of N.entries())
1027
+ t(i), e = e && s.processed;
1028
+ return e;
1029
+ }, "compileTasks"), Vs = /* @__PURE__ */ c(function(t, e) {
1030
+ let i = e;
1031
+ at().securityLevel !== "loose" && (i = Se.sanitizeUrl(e)), t.split(",").forEach(function(s) {
1032
+ it(s) !== void 0 && (ye(s, () => {
1033
+ window.open(i, "_self");
1034
+ }), Yt.set(s, i));
1035
+ }), ke(t, "clickable");
1036
+ }, "setLink"), ke = /* @__PURE__ */ c(function(t, e) {
1037
+ t.split(",").forEach(function(i) {
1038
+ let s = it(i);
1039
+ s !== void 0 && s.classes.push(e);
1040
+ });
1041
+ }, "setClass"), Ps = /* @__PURE__ */ c(function(t, e, i) {
1042
+ if (at().securityLevel !== "loose" || e === void 0)
1043
+ return;
1044
+ let s = [];
1045
+ if (typeof i == "string") {
1046
+ s = i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1047
+ for (let k = 0; k < s.length; k++) {
1048
+ let v = s[k].trim();
1049
+ v.startsWith('"') && v.endsWith('"') && (v = v.substr(1, v.length - 2)), s[k] = v;
1050
+ }
1051
+ }
1052
+ s.length === 0 && s.push(t), it(t) !== void 0 && ye(t, () => {
1053
+ Ee.runFunc(e, ...s);
1054
+ });
1055
+ }, "setClickFun"), ye = /* @__PURE__ */ c(function(t, e) {
1056
+ Rt.push(
1057
+ function() {
1058
+ const i = rt ? `${rt}-${t}` : t, s = document.querySelector(`[id="${i}"]`);
1059
+ s !== null && s.addEventListener("click", function() {
1060
+ e();
1061
+ });
1062
+ },
1063
+ function() {
1064
+ const i = rt ? `${rt}-${t}` : t, s = document.querySelector(`[id="${i}-text"]`);
1065
+ s !== null && s.addEventListener("click", function() {
1066
+ e();
1067
+ });
1068
+ }
1069
+ );
1070
+ }, "pushFun"), Rs = /* @__PURE__ */ c(function(t, e, i) {
1071
+ t.split(",").forEach(function(s) {
1072
+ Ps(s, e, i);
1073
+ }), ke(t, "clickable");
1074
+ }, "setClickEvent"), Ns = /* @__PURE__ */ c(function(t) {
1075
+ Rt.forEach(function(e) {
1076
+ e(t);
1077
+ });
1078
+ }, "bindFunctions"), zs = {
1079
+ getConfig: /* @__PURE__ */ c(() => at().gantt, "getConfig"),
1080
+ clear: as,
1081
+ setDateFormat: ms,
1082
+ getDateFormat: xs,
1083
+ enableInclusiveEndDates: ks,
1084
+ endDatesAreInclusive: ys,
1085
+ enableTopAxis: gs,
1086
+ topAxisEnabled: ps,
1087
+ setAxisFormat: cs,
1088
+ getAxisFormat: ls,
1089
+ setTickInterval: us,
1090
+ getTickInterval: ds,
1091
+ setTodayMarker: fs,
1092
+ getTodayMarker: hs,
1093
+ setAccTitle: we,
1094
+ getAccTitle: be,
1095
+ setDiagramTitle: xe,
1096
+ getDiagramTitle: Te,
1097
+ setDiagramId: os,
1098
+ setDisplayMode: vs,
1099
+ getDisplayMode: Ts,
1100
+ setAccDescription: ve,
1101
+ getAccDescription: pe,
1102
+ addSection: Cs,
1103
+ getSections: Es,
1104
+ getTasks: Is,
1105
+ addTask: Ws,
1106
+ findTaskById: it,
1107
+ addTaskOrg: Ys,
1108
+ setIncludes: bs,
1109
+ getIncludes: ws,
1110
+ setExcludes: _s,
1111
+ getExcludes: Ds,
1112
+ setClickEvent: Rs,
1113
+ setLink: Vs,
1114
+ getLinks: Ss,
1115
+ bindFunctions: Ns,
1116
+ parseDuration: fe,
1117
+ isInvalidDate: le,
1118
+ setWeekday: Ms,
1119
+ getWeekday: As,
1120
+ setWeekend: Fs
1121
+ };
1122
+ function Bt(t, e, i) {
1123
+ let s = !0;
1124
+ for (; s; )
1125
+ s = !1, i.forEach(function(r) {
1126
+ const k = "^\\s*" + r + "\\s*$", v = new RegExp(k);
1127
+ t[0].match(v) && (e[r] = !0, t.shift(1), s = !0);
1128
+ });
1129
+ }
1130
+ c(Bt, "getTaskTags");
1131
+ q.extend(ns);
1132
+ var Bs = /* @__PURE__ */ c(function() {
1133
+ et.debug("Something is calling, setConf, remove the call");
1134
+ }, "setConf"), ne = {
1135
+ monday: ze,
1136
+ tuesday: Ne,
1137
+ wednesday: Re,
1138
+ thursday: Pe,
1139
+ friday: Ve,
1140
+ saturday: Ye,
1141
+ sunday: We
1142
+ }, Hs = /* @__PURE__ */ c((t, e) => {
1143
+ let i = [...t].map(() => -1 / 0), s = [...t].sort((k, v) => k.startTime - v.startTime || k.order - v.order), r = 0;
1144
+ for (const k of s)
1145
+ for (let v = 0; v < i.length; v++)
1146
+ if (k.startTime >= i[v]) {
1147
+ i[v] = k.endTime, k.order = v + e, v > r && (r = v);
1148
+ break;
1149
+ }
1150
+ return r;
1151
+ }, "getMaxIntersections"), tt, Et = 1e4, qs = /* @__PURE__ */ c(function(t, e, i, s) {
1152
+ const r = at().gantt;
1153
+ s.db.setDiagramId(e);
1154
+ const k = at().securityLevel;
1155
+ let v;
1156
+ k === "sandbox" && (v = kt("#i" + e));
1157
+ const S = k === "sandbox" ? kt(v.nodes()[0].contentDocument.body) : kt("body"), A = k === "sandbox" ? v.nodes()[0].contentDocument : document, F = A.getElementById(e);
1158
+ tt = F.parentElement.offsetWidth, tt === void 0 && (tt = 1200), r.useWidth !== void 0 && (tt = r.useWidth);
1159
+ const O = s.db.getTasks(), L = O.filter((f) => !f.vert);
1160
+ let x = [];
1161
+ for (const f of L)
1162
+ x.push(f.type);
1163
+ x = $(x);
1164
+ const b = {};
1165
+ let P = 2 * r.topPadding;
1166
+ if (s.db.getDisplayMode() === "compact" || r.displayMode === "compact") {
1167
+ const f = {};
1168
+ for (const g of L)
1169
+ f[g.section] === void 0 ? f[g.section] = [g] : f[g.section].push(g);
1170
+ let T = 0;
1171
+ for (const g of Object.keys(f)) {
1172
+ const p = Hs(f[g], T) + 1;
1173
+ T += p, P += p * (r.barHeight + r.barGap), b[g] = p;
1174
+ }
1175
+ } else {
1176
+ P += L.length * (r.barHeight + r.barGap);
1177
+ for (const f of x)
1178
+ b[f] = L.filter((T) => T.type === f).length;
1179
+ }
1180
+ F.setAttribute("viewBox", "0 0 " + tt + " " + P);
1181
+ const W = S.select(`[id="${e}"]`), I = Ae().domain([
1182
+ Fe(O, function(f) {
1183
+ return f.startTime;
1184
+ }),
1185
+ $e(O, function(f) {
1186
+ return f.endTime;
1187
+ })
1188
+ ]).rangeRound([0, tt - r.leftPadding - r.rightPadding]);
1189
+ function z(f, T) {
1190
+ const g = f.startTime, p = T.startTime;
1191
+ let a = 0;
1192
+ return g > p ? a = 1 : g < p && (a = -1), a;
1193
+ }
1194
+ c(z, "taskCompare"), O.sort(z), K(O, tt, P), _e(W, P, tt, r.useMaxWidth), W.append("text").text(s.db.getDiagramTitle()).attr("x", tt / 2).attr("y", r.titleTopMargin).attr("class", "titleText");
1195
+ function K(f, T, g) {
1196
+ const p = r.barHeight, a = p + r.barGap, d = r.topPadding, h = r.leftPadding, u = Oe().domain([0, x.length]).range(["#00B9FA", "#F95002"]).interpolate(Le);
1197
+ X(
1198
+ a,
1199
+ d,
1200
+ h,
1201
+ T,
1202
+ g,
1203
+ f,
1204
+ s.db.getExcludes(),
1205
+ s.db.getIncludes()
1206
+ ), M(h, d, T, g), B(f, a, d, h, p, u, T), y(a, d), m(h, d, T, g);
1207
+ }
1208
+ c(K, "makeGantt");
1209
+ function B(f, T, g, p, a, d, h) {
1210
+ f.sort((o, w) => o.vert === w.vert ? 0 : o.vert ? 1 : -1);
1211
+ const u = f.filter((o) => !o.vert), n = [...new Set(u.map((o) => o.order))].map(
1212
+ (o) => u.find((w) => w.order === o)
1213
+ );
1214
+ W.append("g").selectAll("rect").data(n).enter().append("rect").attr("x", 0).attr("y", function(o, w) {
1215
+ return w = o.order, w * T + g - 2;
1216
+ }).attr("width", function() {
1217
+ return h - r.rightPadding / 2;
1218
+ }).attr("height", T).attr("class", function(o) {
1219
+ for (const [w, _] of x.entries())
1220
+ if (o.type === _)
1221
+ return "section section" + w % r.numberSectionStyles;
1222
+ return "section section0";
1223
+ }).enter();
1224
+ const E = W.append("g").selectAll("rect").data(f).enter(), l = s.db.getLinks();
1225
+ if (E.append("rect").attr("id", function(o) {
1226
+ return e + "-" + o.id;
1227
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(o) {
1228
+ return o.milestone ? I(o.startTime) + p + 0.5 * (I(o.endTime) - I(o.startTime)) - 0.5 * a : I(o.startTime) + p;
1229
+ }).attr("y", function(o, w) {
1230
+ return w = o.order, o.vert ? r.gridLineStartPadding : w * T + g;
1231
+ }).attr("width", function(o) {
1232
+ return o.milestone ? a : o.vert ? 0.08 * a : I(o.renderEndTime || o.endTime) - I(o.startTime);
1233
+ }).attr("height", function(o) {
1234
+ return o.vert ? u.length * (r.barHeight + r.barGap) + r.barHeight * 2 : a;
1235
+ }).attr("transform-origin", function(o, w) {
1236
+ return w = o.order, (I(o.startTime) + p + 0.5 * (I(o.endTime) - I(o.startTime))).toString() + "px " + (w * T + g + 0.5 * a).toString() + "px";
1237
+ }).attr("class", function(o) {
1238
+ const w = "task";
1239
+ let _ = "";
1240
+ o.classes.length > 0 && (_ = o.classes.join(" "));
1241
+ let Y = 0;
1242
+ for (const [R, V] of x.entries())
1243
+ o.type === V && (Y = R % r.numberSectionStyles);
1244
+ let D = "";
1245
+ return o.active ? o.crit ? D += " activeCrit" : D = " active" : o.done ? o.crit ? D = " doneCrit" : D = " done" : o.crit && (D += " crit"), D.length === 0 && (D = " task"), o.milestone && (D = " milestone " + D), o.vert && (D = " vert " + D), D += Y, D += " " + _, w + D;
1246
+ }), E.append("text").attr("id", function(o) {
1247
+ return e + "-" + o.id + "-text";
1248
+ }).text(function(o) {
1249
+ return o.task;
1250
+ }).attr("font-size", r.fontSize).attr("x", function(o) {
1251
+ let w = I(o.startTime), _ = I(o.renderEndTime || o.endTime);
1252
+ if (o.milestone && (w += 0.5 * (I(o.endTime) - I(o.startTime)) - 0.5 * a, _ = w + a), o.vert)
1253
+ return I(o.startTime) + p;
1254
+ const Y = this.getBBox().width;
1255
+ return Y > _ - w ? _ + Y + 1.5 * r.leftPadding > h ? w + p - 5 : _ + p + 5 : (_ - w) / 2 + w + p;
1256
+ }).attr("y", function(o, w) {
1257
+ return o.vert ? r.gridLineStartPadding + u.length * (r.barHeight + r.barGap) + 60 : (w = o.order, w * T + r.barHeight / 2 + (r.fontSize / 2 - 2) + g);
1258
+ }).attr("text-height", a).attr("class", function(o) {
1259
+ const w = I(o.startTime);
1260
+ let _ = I(o.endTime);
1261
+ o.milestone && (_ = w + a);
1262
+ const Y = this.getBBox().width;
1263
+ let D = "";
1264
+ o.classes.length > 0 && (D = o.classes.join(" "));
1265
+ let R = 0;
1266
+ for (const [dt, _t] of x.entries())
1267
+ o.type === _t && (R = dt % r.numberSectionStyles);
1268
+ let V = "";
1269
+ return o.active && (o.crit ? V = "activeCritText" + R : V = "activeText" + R), o.done ? o.crit ? V = V + " doneCritText" + R : V = V + " doneText" + R : o.crit && (V = V + " critText" + R), o.milestone && (V += " milestoneText"), o.vert && (V += " vertText"), Y > _ - w ? _ + Y + 1.5 * r.leftPadding > h ? D + " taskTextOutsideLeft taskTextOutside" + R + " " + V : D + " taskTextOutsideRight taskTextOutside" + R + " " + V + " width-" + Y : D + " taskText taskText" + R + " " + V + " width-" + Y;
1270
+ }), at().securityLevel === "sandbox") {
1271
+ let o;
1272
+ o = kt("#i" + e);
1273
+ const w = o.nodes()[0].contentDocument;
1274
+ E.filter(function(_) {
1275
+ return l.has(_.id);
1276
+ }).each(function(_) {
1277
+ var Y = w.querySelector("#" + CSS.escape(e + "-" + _.id)), D = w.querySelector("#" + CSS.escape(e + "-" + _.id + "-text"));
1278
+ const R = Y.parentNode;
1279
+ var V = w.createElement("a");
1280
+ V.setAttribute("xlink:href", l.get(_.id)), V.setAttribute("target", "_top"), R.appendChild(V), V.appendChild(Y), V.appendChild(D);
1281
+ });
1282
+ }
1283
+ }
1284
+ c(B, "drawRects");
1285
+ function X(f, T, g, p, a, d, h, u) {
1286
+ if (h.length === 0 && u.length === 0)
1287
+ return;
1288
+ let C, n;
1289
+ for (const { startTime: _, endTime: Y } of d)
1290
+ (C === void 0 || _ < C) && (C = _), (n === void 0 || Y > n) && (n = Y);
1291
+ if (!C || !n)
1292
+ return;
1293
+ if (q(n).diff(q(C), "year") > 5) {
1294
+ et.warn(
1295
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
1296
+ );
1297
+ return;
1298
+ }
1299
+ const E = s.db.getDateFormat(), l = [];
1300
+ let H = null, o = q(C);
1301
+ for (; o.valueOf() <= n; )
1302
+ s.db.isInvalidDate(o, E, h, u) ? H ? H.end = o : H = {
1303
+ start: o,
1304
+ end: o
1305
+ } : H && (l.push(H), H = null), o = o.add(1, "d");
1306
+ W.append("g").selectAll("rect").data(l).enter().append("rect").attr("id", (_) => e + "-exclude-" + _.start.format("YYYY-MM-DD")).attr("x", (_) => I(_.start.startOf("day")) + g).attr("y", r.gridLineStartPadding).attr("width", (_) => I(_.end.endOf("day")) - I(_.start.startOf("day"))).attr("height", a - T - r.gridLineStartPadding).attr("transform-origin", function(_, Y) {
1307
+ return (I(_.start) + g + 0.5 * (I(_.end) - I(_.start))).toString() + "px " + (Y * f + 0.5 * a).toString() + "px";
1308
+ }).attr("class", "exclude-range");
1309
+ }
1310
+ c(X, "drawExcludeDays");
1311
+ function j(f, T, g, p) {
1312
+ if (g <= 0 || f > T)
1313
+ return 1 / 0;
1314
+ const a = T - f, d = q.duration({ [p ?? "day"]: g }).asMilliseconds();
1315
+ return d <= 0 ? 1 / 0 : Math.ceil(a / d);
1316
+ }
1317
+ c(j, "getEstimatedTickCount");
1318
+ function M(f, T, g, p) {
1319
+ const a = s.db.getDateFormat(), d = s.db.getAxisFormat();
1320
+ let h;
1321
+ d ? h = d : a === "D" ? h = "%d" : h = r.axisFormat ?? "%Y-%m-%d";
1322
+ let u = Ke(I).tickSize(-p + T + r.gridLineStartPadding).tickFormat(jt(h));
1323
+ const n = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
1324
+ s.db.getTickInterval() || r.tickInterval
1325
+ );
1326
+ if (n !== null) {
1327
+ const E = parseInt(n[1], 10);
1328
+ if (isNaN(E) || E <= 0)
1329
+ et.warn(
1330
+ `Invalid tick interval value: "${n[1]}". Skipping custom tick interval.`
1331
+ );
1332
+ else {
1333
+ const l = n[2], H = s.db.getWeekday() || r.weekday, o = I.domain(), w = o[0], _ = o[1], Y = j(w, _, E, l);
1334
+ if (Y > Et)
1335
+ et.warn(
1336
+ `The tick interval "${E}${l}" would generate ${Y} ticks, which exceeds the maximum allowed (${Et}). This may indicate an invalid date or time range. Skipping custom tick interval.`
1337
+ );
1338
+ else
1339
+ switch (l) {
1340
+ case "millisecond":
1341
+ u.ticks(Qt.every(E));
1342
+ break;
1343
+ case "second":
1344
+ u.ticks(Jt.every(E));
1345
+ break;
1346
+ case "minute":
1347
+ u.ticks(Kt.every(E));
1348
+ break;
1349
+ case "hour":
1350
+ u.ticks(Gt.every(E));
1351
+ break;
1352
+ case "day":
1353
+ u.ticks(Xt.every(E));
1354
+ break;
1355
+ case "week":
1356
+ u.ticks(ne[H].every(E));
1357
+ break;
1358
+ case "month":
1359
+ u.ticks(Ut.every(E));
1360
+ break;
1361
+ }
1362
+ }
1363
+ }
1364
+ if (W.append("g").attr("class", "grid").attr("transform", "translate(" + f + ", " + (p - 50) + ")").call(u).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), s.db.topAxisEnabled() || r.topAxis) {
1365
+ let E = Ge(I).tickSize(-p + T + r.gridLineStartPadding).tickFormat(jt(h));
1366
+ if (n !== null) {
1367
+ const l = parseInt(n[1], 10);
1368
+ if (isNaN(l) || l <= 0)
1369
+ et.warn(
1370
+ `Invalid tick interval value: "${n[1]}". Skipping custom tick interval.`
1371
+ );
1372
+ else {
1373
+ const H = n[2], o = s.db.getWeekday() || r.weekday, w = I.domain(), _ = w[0], Y = w[1];
1374
+ if (j(_, Y, l, H) <= Et)
1375
+ switch (H) {
1376
+ case "millisecond":
1377
+ E.ticks(Qt.every(l));
1378
+ break;
1379
+ case "second":
1380
+ E.ticks(Jt.every(l));
1381
+ break;
1382
+ case "minute":
1383
+ E.ticks(Kt.every(l));
1384
+ break;
1385
+ case "hour":
1386
+ E.ticks(Gt.every(l));
1387
+ break;
1388
+ case "day":
1389
+ E.ticks(Xt.every(l));
1390
+ break;
1391
+ case "week":
1392
+ E.ticks(ne[o].every(l));
1393
+ break;
1394
+ case "month":
1395
+ E.ticks(Ut.every(l));
1396
+ break;
1397
+ }
1398
+ }
1399
+ }
1400
+ W.append("g").attr("class", "grid").attr("transform", "translate(" + f + ", " + T + ")").call(E).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
1401
+ }
1402
+ }
1403
+ c(M, "makeGrid");
1404
+ function y(f, T) {
1405
+ let g = 0;
1406
+ const p = Object.keys(b).map((a) => [a, b[a]]);
1407
+ W.append("g").selectAll("text").data(p).enter().append(function(a) {
1408
+ const d = a[0].split(De.lineBreakRegex), h = -(d.length - 1) / 2, u = A.createElementNS("http://www.w3.org/2000/svg", "text");
1409
+ u.setAttribute("dy", h + "em");
1410
+ for (const [C, n] of d.entries()) {
1411
+ const E = A.createElementNS("http://www.w3.org/2000/svg", "tspan");
1412
+ E.setAttribute("alignment-baseline", "central"), E.setAttribute("x", "10"), C > 0 && E.setAttribute("dy", "1em"), E.textContent = n, u.appendChild(E);
1413
+ }
1414
+ return u;
1415
+ }).attr("x", 10).attr("y", function(a, d) {
1416
+ if (d > 0)
1417
+ for (let h = 0; h < d; h++)
1418
+ return g += p[d - 1][1], a[1] * f / 2 + g * f + T;
1419
+ else
1420
+ return a[1] * f / 2 + T;
1421
+ }).attr("font-size", r.sectionFontSize).attr("class", function(a) {
1422
+ for (const [d, h] of x.entries())
1423
+ if (a[0] === h)
1424
+ return "sectionTitle sectionTitle" + d % r.numberSectionStyles;
1425
+ return "sectionTitle";
1426
+ });
1427
+ }
1428
+ c(y, "vertLabels");
1429
+ function m(f, T, g, p) {
1430
+ const a = s.db.getTodayMarker();
1431
+ if (a === "off")
1432
+ return;
1433
+ const d = W.append("g").attr("class", "today"), h = /* @__PURE__ */ new Date(), u = d.append("line");
1434
+ u.attr("x1", I(h) + f).attr("x2", I(h) + f).attr("y1", r.titleTopMargin).attr("y2", p - r.titleTopMargin).attr("class", "today"), a !== "" && u.attr("style", a.replace(/,/g, ";"));
1435
+ }
1436
+ c(m, "drawToday");
1437
+ function $(f) {
1438
+ const T = {}, g = [];
1439
+ for (let p = 0, a = f.length; p < a; ++p)
1440
+ Object.prototype.hasOwnProperty.call(T, f[p]) || (T[f[p]] = !0, g.push(f[p]));
1441
+ return g;
1442
+ }
1443
+ c($, "checkUnique");
1444
+ }, "draw"), js = {
1445
+ setConf: Bs,
1446
+ draw: qs
1447
+ }, Us = /* @__PURE__ */ c((t) => `
1448
+ .mermaid-main-font {
1449
+ font-family: ${t.fontFamily};
1450
+ }
1451
+
1452
+ .exclude-range {
1453
+ fill: ${t.excludeBkgColor};
1454
+ }
1455
+
1456
+ .section {
1457
+ stroke: none;
1458
+ opacity: 0.2;
1459
+ }
1460
+
1461
+ .section0 {
1462
+ fill: ${t.sectionBkgColor};
1463
+ }
1464
+
1465
+ .section2 {
1466
+ fill: ${t.sectionBkgColor2};
1467
+ }
1468
+
1469
+ .section1,
1470
+ .section3 {
1471
+ fill: ${t.altSectionBkgColor};
1472
+ opacity: 0.2;
1473
+ }
1474
+
1475
+ .sectionTitle0 {
1476
+ fill: ${t.titleColor};
1477
+ }
1478
+
1479
+ .sectionTitle1 {
1480
+ fill: ${t.titleColor};
1481
+ }
1482
+
1483
+ .sectionTitle2 {
1484
+ fill: ${t.titleColor};
1485
+ }
1486
+
1487
+ .sectionTitle3 {
1488
+ fill: ${t.titleColor};
1489
+ }
1490
+
1491
+ .sectionTitle {
1492
+ text-anchor: start;
1493
+ font-family: ${t.fontFamily};
1494
+ }
1495
+
1496
+
1497
+ /* Grid and axis */
1498
+
1499
+ .grid .tick {
1500
+ stroke: ${t.gridColor};
1501
+ opacity: 0.8;
1502
+ shape-rendering: crispEdges;
1503
+ }
1504
+
1505
+ .grid .tick text {
1506
+ font-family: ${t.fontFamily};
1507
+ fill: ${t.textColor};
1508
+ }
1509
+
1510
+ .grid path {
1511
+ stroke-width: 0;
1512
+ }
1513
+
1514
+
1515
+ /* Today line */
1516
+
1517
+ .today {
1518
+ fill: none;
1519
+ stroke: ${t.todayLineColor};
1520
+ stroke-width: 2px;
1521
+ }
1522
+
1523
+
1524
+ /* Task styling */
1525
+
1526
+ /* Default task */
1527
+
1528
+ .task {
1529
+ stroke-width: 2;
1530
+ }
1531
+
1532
+ .taskText {
1533
+ text-anchor: middle;
1534
+ font-family: ${t.fontFamily};
1535
+ }
1536
+
1537
+ .taskTextOutsideRight {
1538
+ fill: ${t.taskTextDarkColor};
1539
+ text-anchor: start;
1540
+ font-family: ${t.fontFamily};
1541
+ }
1542
+
1543
+ .taskTextOutsideLeft {
1544
+ fill: ${t.taskTextDarkColor};
1545
+ text-anchor: end;
1546
+ }
1547
+
1548
+
1549
+ /* Special case clickable */
1550
+
1551
+ .task.clickable {
1552
+ cursor: pointer;
1553
+ }
1554
+
1555
+ .taskText.clickable {
1556
+ cursor: pointer;
1557
+ fill: ${t.taskTextClickableColor} !important;
1558
+ font-weight: bold;
1559
+ }
1560
+
1561
+ .taskTextOutsideLeft.clickable {
1562
+ cursor: pointer;
1563
+ fill: ${t.taskTextClickableColor} !important;
1564
+ font-weight: bold;
1565
+ }
1566
+
1567
+ .taskTextOutsideRight.clickable {
1568
+ cursor: pointer;
1569
+ fill: ${t.taskTextClickableColor} !important;
1570
+ font-weight: bold;
1571
+ }
1572
+
1573
+
1574
+ /* Specific task settings for the sections*/
1575
+
1576
+ .taskText0,
1577
+ .taskText1,
1578
+ .taskText2,
1579
+ .taskText3 {
1580
+ fill: ${t.taskTextColor};
1581
+ }
1582
+
1583
+ .task0,
1584
+ .task1,
1585
+ .task2,
1586
+ .task3 {
1587
+ fill: ${t.taskBkgColor};
1588
+ stroke: ${t.taskBorderColor};
1589
+ }
1590
+
1591
+ .taskTextOutside0,
1592
+ .taskTextOutside2
1593
+ {
1594
+ fill: ${t.taskTextOutsideColor};
1595
+ }
1596
+
1597
+ .taskTextOutside1,
1598
+ .taskTextOutside3 {
1599
+ fill: ${t.taskTextOutsideColor};
1600
+ }
1601
+
1602
+
1603
+ /* Active task */
1604
+
1605
+ .active0,
1606
+ .active1,
1607
+ .active2,
1608
+ .active3 {
1609
+ fill: ${t.activeTaskBkgColor};
1610
+ stroke: ${t.activeTaskBorderColor};
1611
+ }
1612
+
1613
+ .activeText0,
1614
+ .activeText1,
1615
+ .activeText2,
1616
+ .activeText3 {
1617
+ fill: ${t.taskTextDarkColor} !important;
1618
+ }
1619
+
1620
+
1621
+ /* Completed task */
1622
+
1623
+ .done0,
1624
+ .done1,
1625
+ .done2,
1626
+ .done3 {
1627
+ stroke: ${t.doneTaskBorderColor};
1628
+ fill: ${t.doneTaskBkgColor};
1629
+ stroke-width: 2;
1630
+ }
1631
+
1632
+ .doneText0,
1633
+ .doneText1,
1634
+ .doneText2,
1635
+ .doneText3 {
1636
+ fill: ${t.taskTextDarkColor} !important;
1637
+ }
1638
+
1639
+ /* Done task text displayed outside the bar sits against the diagram background,
1640
+ not against the done-task bar, so it must use the outside/contrast color. */
1641
+ .doneText0.taskTextOutsideLeft,
1642
+ .doneText0.taskTextOutsideRight,
1643
+ .doneText1.taskTextOutsideLeft,
1644
+ .doneText1.taskTextOutsideRight,
1645
+ .doneText2.taskTextOutsideLeft,
1646
+ .doneText2.taskTextOutsideRight,
1647
+ .doneText3.taskTextOutsideLeft,
1648
+ .doneText3.taskTextOutsideRight {
1649
+ fill: ${t.taskTextOutsideColor} !important;
1650
+ }
1651
+
1652
+
1653
+ /* Tasks on the critical line */
1654
+
1655
+ .crit0,
1656
+ .crit1,
1657
+ .crit2,
1658
+ .crit3 {
1659
+ stroke: ${t.critBorderColor};
1660
+ fill: ${t.critBkgColor};
1661
+ stroke-width: 2;
1662
+ }
1663
+
1664
+ .activeCrit0,
1665
+ .activeCrit1,
1666
+ .activeCrit2,
1667
+ .activeCrit3 {
1668
+ stroke: ${t.critBorderColor};
1669
+ fill: ${t.activeTaskBkgColor};
1670
+ stroke-width: 2;
1671
+ }
1672
+
1673
+ .doneCrit0,
1674
+ .doneCrit1,
1675
+ .doneCrit2,
1676
+ .doneCrit3 {
1677
+ stroke: ${t.critBorderColor};
1678
+ fill: ${t.doneTaskBkgColor};
1679
+ stroke-width: 2;
1680
+ cursor: pointer;
1681
+ shape-rendering: crispEdges;
1682
+ }
1683
+
1684
+ .milestone {
1685
+ transform: rotate(45deg) scale(0.8,0.8);
1686
+ }
1687
+
1688
+ .milestoneText {
1689
+ font-style: italic;
1690
+ }
1691
+ .doneCritText0,
1692
+ .doneCritText1,
1693
+ .doneCritText2,
1694
+ .doneCritText3 {
1695
+ fill: ${t.taskTextDarkColor} !important;
1696
+ }
1697
+
1698
+ /* Done-crit task text outside the bar — same reasoning as doneText above. */
1699
+ .doneCritText0.taskTextOutsideLeft,
1700
+ .doneCritText0.taskTextOutsideRight,
1701
+ .doneCritText1.taskTextOutsideLeft,
1702
+ .doneCritText1.taskTextOutsideRight,
1703
+ .doneCritText2.taskTextOutsideLeft,
1704
+ .doneCritText2.taskTextOutsideRight,
1705
+ .doneCritText3.taskTextOutsideLeft,
1706
+ .doneCritText3.taskTextOutsideRight {
1707
+ fill: ${t.taskTextOutsideColor} !important;
1708
+ }
1709
+
1710
+ .vert {
1711
+ stroke: ${t.vertLineColor};
1712
+ }
1713
+
1714
+ .vertText {
1715
+ font-size: 15px;
1716
+ text-anchor: middle;
1717
+ fill: ${t.vertLineColor} !important;
1718
+ }
1719
+
1720
+ .activeCritText0,
1721
+ .activeCritText1,
1722
+ .activeCritText2,
1723
+ .activeCritText3 {
1724
+ fill: ${t.taskTextDarkColor} !important;
1725
+ }
1726
+
1727
+ .titleText {
1728
+ text-anchor: middle;
1729
+ font-size: 18px;
1730
+ fill: ${t.titleColor || t.textColor};
1731
+ font-family: ${t.fontFamily};
1732
+ }
1733
+ `, "getStyles"), Xs = Us, ti = {
1734
+ parser: rs,
1735
+ db: zs,
1736
+ renderer: js,
1737
+ styles: Xs
1738
+ };
1739
+ export {
1740
+ ti as diagram
1741
+ };