@altimateai/ui-components 0.0.77-beta.7 → 0.0.77

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 (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +24114 -67797
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2274 -2824
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +4788 -5963
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/arc.js +53 -53
  10. package/dist/architectureDiagram-VXUJARFQ.js +4315 -480
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +19 -57
  16. package/dist/chatbotV2/index.js +56 -91
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +14 -14
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +2535 -160
  28. package/dist/dagre-6UL2VRFP.js +101 -101
  29. package/dist/dayjs.min.js +2 -2
  30. package/dist/defaultLocale.js +3 -3
  31. package/dist/diagram-PSM6KHXK.js +414 -198
  32. package/dist/diagram-QEK2KX5R.js +26 -26
  33. package/dist/diagram-S2PKOQOG.js +12 -12
  34. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  35. package/dist/flowDiagram-NV44I4VS.js +6 -6
  36. package/dist/ganttDiagram-LVOFAZNH.js +1718 -843
  37. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  38. package/dist/graph.js +18 -17
  39. package/dist/index.d.ts +6 -101
  40. package/dist/index.js +37 -37
  41. package/dist/index2.js +684 -216
  42. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  43. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  44. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  45. package/dist/layout.js +678 -567
  46. package/dist/lineage/index.js +1315 -1308
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +151 -151
  50. package/dist/mermaid-parser.core.js +155 -155
  51. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  52. package/dist/pieDiagram-ADFJNKIX.js +108 -68
  53. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  54. package/dist/redux-toolkit.modern.js +555 -563
  55. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  56. package/dist/sankeyDiagram-TZEHDZUN.js +622 -229
  57. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  58. package/dist/shadcn/index.d.ts +40 -24
  59. package/dist/shadcn/index.js +4733 -6547
  60. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  61. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  62. package/dist/storybook/Typography.stories.tsx +120 -93
  63. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  64. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  65. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  66. package/package.json +1 -1
  67. package/dist/abap.js +0 -6
  68. package/dist/actionscript-3.js +0 -6
  69. package/dist/ada.js +0 -6
  70. package/dist/andromeeda.js +0 -4
  71. package/dist/angular-html.js +0 -32
  72. package/dist/angular-ts.js +0 -21
  73. package/dist/apache.js +0 -6
  74. package/dist/apex.js +0 -6
  75. package/dist/apl.js +0 -16
  76. package/dist/applescript.js +0 -6
  77. package/dist/ara.js +0 -6
  78. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  79. package/dist/asciidoc.js +0 -6
  80. package/dist/asm.js +0 -6
  81. package/dist/astro.js +0 -18
  82. package/dist/aurora-x.js +0 -4
  83. package/dist/awk.js +0 -6
  84. package/dist/ayu-dark.js +0 -4
  85. package/dist/ballerina.js +0 -6
  86. package/dist/band.js +0 -46
  87. package/dist/bat.js +0 -6
  88. package/dist/beancount.js +0 -6
  89. package/dist/berry.js +0 -6
  90. package/dist/bibtex.js +0 -6
  91. package/dist/bicep.js +0 -6
  92. package/dist/blade.js +0 -20
  93. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  94. package/dist/bsl.js +0 -8
  95. package/dist/c.js +0 -6
  96. package/dist/c3.js +0 -6
  97. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  98. package/dist/cadence.js +0 -6
  99. package/dist/cairo.js +0 -8
  100. package/dist/catppuccin-frappe.js +0 -4
  101. package/dist/catppuccin-latte.js +0 -4
  102. package/dist/catppuccin-macchiato.js +0 -4
  103. package/dist/catppuccin-mocha.js +0 -4
  104. package/dist/chunk-4BX2VUAB2.js +0 -9
  105. package/dist/chunk-55IACEB62.js +0 -9
  106. package/dist/chunk-B4BG7PRW2.js +0 -1377
  107. package/dist/chunk-DI55MBZ52.js +0 -1382
  108. package/dist/chunk-FMBD7UC42.js +0 -19
  109. package/dist/chunk-QN33PNHL2.js +0 -20
  110. package/dist/chunk-QZHKN3VN2.js +0 -15
  111. package/dist/chunk-TZMSLE5B2.js +0 -64
  112. package/dist/clarity.js +0 -6
  113. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  114. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  115. package/dist/clojure.js +0 -6
  116. package/dist/cmake.js +0 -6
  117. package/dist/cobol.js +0 -10
  118. package/dist/code-block-37QAKDTI.js +0 -27
  119. package/dist/codeowners.js +0 -6
  120. package/dist/codeql.js +0 -6
  121. package/dist/coffee.js +0 -8
  122. package/dist/common-lisp.js +0 -6
  123. package/dist/coq.js +0 -6
  124. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  125. package/dist/cpp.js +0 -18
  126. package/dist/crystal.js +0 -18
  127. package/dist/csharp.js +0 -6
  128. package/dist/css.js +0 -6
  129. package/dist/csv.js +0 -6
  130. package/dist/cue.js +0 -6
  131. package/dist/cypher.js +0 -6
  132. package/dist/cytoscape-cose-bilkent.js +0 -2380
  133. package/dist/cytoscape-fcose.js +0 -3840
  134. package/dist/d.js +0 -6
  135. package/dist/dagre-6UL2VRFP2.js +0 -447
  136. package/dist/dark-plus.js +0 -4
  137. package/dist/dart.js +0 -6
  138. package/dist/dax.js +0 -6
  139. package/dist/desktop.js +0 -6
  140. package/dist/diagram-PSM6KHXK2.js +0 -319
  141. package/dist/diagram-QEK2KX5R2.js +0 -221
  142. package/dist/diagram-S2PKOQOG2.js +0 -143
  143. package/dist/diff.js +0 -6
  144. package/dist/docker.js +0 -6
  145. package/dist/dotenv.js +0 -6
  146. package/dist/dracula-soft.js +0 -4
  147. package/dist/dracula.js +0 -4
  148. package/dist/dream-maker.js +0 -6
  149. package/dist/edge.js +0 -12
  150. package/dist/elixir.js +0 -8
  151. package/dist/elm.js +0 -8
  152. package/dist/emacs-lisp.js +0 -6
  153. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  154. package/dist/erb.js +0 -10
  155. package/dist/erlang.js +0 -8
  156. package/dist/everforest-dark.js +0 -4
  157. package/dist/everforest-light.js +0 -4
  158. package/dist/fennel.js +0 -6
  159. package/dist/fish.js +0 -6
  160. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  161. package/dist/fluent.js +0 -6
  162. package/dist/fortran-fixed-form.js +0 -8
  163. package/dist/fortran-free-form.js +0 -6
  164. package/dist/fsharp.js +0 -8
  165. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  166. package/dist/gdresource.js +0 -10
  167. package/dist/gdscript.js +0 -6
  168. package/dist/gdshader.js +0 -6
  169. package/dist/genie.js +0 -6
  170. package/dist/gherkin.js +0 -6
  171. package/dist/git-commit.js +0 -8
  172. package/dist/git-rebase.js +0 -8
  173. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  174. package/dist/github-dark-default.js +0 -4
  175. package/dist/github-dark-dimmed.js +0 -4
  176. package/dist/github-dark-high-contrast.js +0 -4
  177. package/dist/github-dark.js +0 -4
  178. package/dist/github-light-default.js +0 -4
  179. package/dist/github-light-high-contrast.js +0 -4
  180. package/dist/github-light.js +0 -4
  181. package/dist/gleam.js +0 -6
  182. package/dist/glimmer-js.js +0 -14
  183. package/dist/glimmer-ts.js +0 -14
  184. package/dist/glsl.js +0 -8
  185. package/dist/gn.js +0 -6
  186. package/dist/gnuplot.js +0 -6
  187. package/dist/go.js +0 -6
  188. package/dist/graph2.js +0 -246
  189. package/dist/graphql.js +0 -14
  190. package/dist/groovy.js +0 -6
  191. package/dist/gruvbox-dark-hard.js +0 -4
  192. package/dist/gruvbox-dark-medium.js +0 -4
  193. package/dist/gruvbox-dark-soft.js +0 -4
  194. package/dist/gruvbox-light-hard.js +0 -4
  195. package/dist/gruvbox-light-medium.js +0 -4
  196. package/dist/gruvbox-light-soft.js +0 -4
  197. package/dist/hack.js +0 -10
  198. package/dist/haml.js +0 -10
  199. package/dist/handlebars.js +0 -14
  200. package/dist/haskell.js +0 -6
  201. package/dist/haxe.js +0 -6
  202. package/dist/hcl.js +0 -6
  203. package/dist/hjson.js +0 -6
  204. package/dist/hlsl.js +0 -6
  205. package/dist/houston.js +0 -4
  206. package/dist/html-derivative.js +0 -8
  207. package/dist/html.js +0 -10
  208. package/dist/http.js +0 -14
  209. package/dist/hurl.js +0 -12
  210. package/dist/hxml.js +0 -8
  211. package/dist/hy.js +0 -6
  212. package/dist/imba.js +0 -6
  213. package/dist/index3.js +0 -689
  214. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  215. package/dist/ini.js +0 -6
  216. package/dist/java.js +0 -6
  217. package/dist/javascript.js +0 -6
  218. package/dist/jinja.js +0 -11
  219. package/dist/jison.js +0 -8
  220. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  221. package/dist/json.js +0 -6
  222. package/dist/json5.js +0 -6
  223. package/dist/jsonc.js +0 -6
  224. package/dist/jsonl.js +0 -6
  225. package/dist/jsonnet.js +0 -6
  226. package/dist/jssm.js +0 -6
  227. package/dist/jsx.js +0 -6
  228. package/dist/julia.js +0 -16
  229. package/dist/kanagawa-dragon.js +0 -4
  230. package/dist/kanagawa-lotus.js +0 -4
  231. package/dist/kanagawa-wave.js +0 -4
  232. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  233. package/dist/katex2.js +0 -11691
  234. package/dist/kdl.js +0 -6
  235. package/dist/kotlin.js +0 -6
  236. package/dist/kusto.js +0 -6
  237. package/dist/laserwave.js +0 -4
  238. package/dist/latex.js +0 -8
  239. package/dist/layout2.js +0 -1224
  240. package/dist/lean.js +0 -6
  241. package/dist/less.js +0 -6
  242. package/dist/light-plus.js +0 -4
  243. package/dist/liquid.js +0 -14
  244. package/dist/llvm.js +0 -6
  245. package/dist/log.js +0 -6
  246. package/dist/logo.js +0 -6
  247. package/dist/lua.js +0 -8
  248. package/dist/luau.js +0 -6
  249. package/dist/make.js +0 -6
  250. package/dist/markdown.js +0 -6
  251. package/dist/marko.js +0 -14
  252. package/dist/material-theme-darker.js +0 -4
  253. package/dist/material-theme-lighter.js +0 -4
  254. package/dist/material-theme-ocean.js +0 -4
  255. package/dist/material-theme-palenight.js +0 -4
  256. package/dist/material-theme.js +0 -4
  257. package/dist/matlab.js +0 -6
  258. package/dist/mdc.js +0 -12
  259. package/dist/mdx.js +0 -6
  260. package/dist/mermaid-4DMBBIKO.js +0 -4
  261. package/dist/mermaid.js +0 -6
  262. package/dist/min-dark.js +0 -4
  263. package/dist/min-light.js +0 -4
  264. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  265. package/dist/mipsasm.js +0 -6
  266. package/dist/mojo.js +0 -6
  267. package/dist/monokai.js +0 -4
  268. package/dist/moonbit.js +0 -6
  269. package/dist/move.js +0 -6
  270. package/dist/narrat.js +0 -6
  271. package/dist/nextflow.js +0 -6
  272. package/dist/nginx.js +0 -8
  273. package/dist/night-owl.js +0 -4
  274. package/dist/nim.js +0 -20
  275. package/dist/nix.js +0 -9
  276. package/dist/nord.js +0 -4
  277. package/dist/nushell.js +0 -6
  278. package/dist/objective-c.js +0 -6
  279. package/dist/objective-cpp.js +0 -6
  280. package/dist/ocaml.js +0 -6
  281. package/dist/one-dark-pro.js +0 -4
  282. package/dist/one-light.js +0 -4
  283. package/dist/openscad.js +0 -6
  284. package/dist/pascal.js +0 -6
  285. package/dist/perl.js +0 -16
  286. package/dist/php.js +0 -18
  287. package/dist/pie.js +0 -45
  288. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  289. package/dist/pkl.js +0 -6
  290. package/dist/plastic.js +0 -4
  291. package/dist/plsql.js +0 -6
  292. package/dist/po.js +0 -6
  293. package/dist/poimandres.js +0 -4
  294. package/dist/polar.js +0 -6
  295. package/dist/postcss.js +0 -6
  296. package/dist/powerquery.js +0 -6
  297. package/dist/powershell.js +0 -6
  298. package/dist/prisma.js +0 -6
  299. package/dist/prolog.js +0 -6
  300. package/dist/proto.js +0 -6
  301. package/dist/pug.js +0 -12
  302. package/dist/puppet.js +0 -6
  303. package/dist/purescript.js +0 -6
  304. package/dist/python.js +0 -6
  305. package/dist/qml.js +0 -8
  306. package/dist/qmldir.js +0 -6
  307. package/dist/qss.js +0 -6
  308. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  309. package/dist/r.js +0 -6
  310. package/dist/racket.js +0 -6
  311. package/dist/raku.js +0 -6
  312. package/dist/razor.js +0 -10
  313. package/dist/red.js +0 -4
  314. package/dist/reg.js +0 -6
  315. package/dist/regexp.js +0 -6
  316. package/dist/rel.js +0 -6
  317. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  318. package/dist/riscv.js +0 -6
  319. package/dist/rose-pine-dawn.js +0 -4
  320. package/dist/rose-pine-moon.js +0 -4
  321. package/dist/rose-pine.js +0 -4
  322. package/dist/rosmsg.js +0 -6
  323. package/dist/rst.js +0 -22
  324. package/dist/ruby.js +0 -30
  325. package/dist/rust.js +0 -6
  326. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  327. package/dist/sankeyLinkHorizontal.js +0 -403
  328. package/dist/sas.js +0 -8
  329. package/dist/sass.js +0 -6
  330. package/dist/scala.js +0 -6
  331. package/dist/scheme.js +0 -6
  332. package/dist/scss.js +0 -8
  333. package/dist/sdbl.js +0 -6
  334. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  335. package/dist/shaderlab.js +0 -8
  336. package/dist/shellscript.js +0 -6
  337. package/dist/shellsession.js +0 -8
  338. package/dist/slack-dark.js +0 -4
  339. package/dist/slack-ochin.js +0 -4
  340. package/dist/smalltalk.js +0 -6
  341. package/dist/snazzy-light.js +0 -4
  342. package/dist/solarized-dark.js +0 -4
  343. package/dist/solarized-light.js +0 -4
  344. package/dist/solidity.js +0 -6
  345. package/dist/soy.js +0 -8
  346. package/dist/sparql.js +0 -8
  347. package/dist/splunk.js +0 -6
  348. package/dist/sql.js +0 -6
  349. package/dist/ssh-config.js +0 -6
  350. package/dist/stata.js +0 -8
  351. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  352. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  353. package/dist/stylus.js +0 -6
  354. package/dist/svelte.js +0 -14
  355. package/dist/swift.js +0 -6
  356. package/dist/synthwave-84.js +0 -4
  357. package/dist/system-verilog.js +0 -6
  358. package/dist/systemd.js +0 -6
  359. package/dist/talonscript.js +0 -6
  360. package/dist/tasl.js +0 -6
  361. package/dist/tcl.js +0 -6
  362. package/dist/templ.js +0 -12
  363. package/dist/terraform.js +0 -6
  364. package/dist/tex.js +0 -8
  365. package/dist/time.js +0 -900
  366. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  367. package/dist/tokyo-night.js +0 -4
  368. package/dist/toml.js +0 -6
  369. package/dist/ts-tags.js +0 -41
  370. package/dist/tsv.js +0 -6
  371. package/dist/tsx.js +0 -6
  372. package/dist/turtle.js +0 -6
  373. package/dist/twig.js +0 -18
  374. package/dist/typescript.js +0 -6
  375. package/dist/typespec.js +0 -6
  376. package/dist/typst.js +0 -6
  377. package/dist/union.js +0 -8
  378. package/dist/v.js +0 -6
  379. package/dist/vala.js +0 -6
  380. package/dist/vb.js +0 -6
  381. package/dist/verilog.js +0 -6
  382. package/dist/vesper.js +0 -4
  383. package/dist/vhdl.js +0 -6
  384. package/dist/viml.js +0 -6
  385. package/dist/vitesse-black.js +0 -4
  386. package/dist/vitesse-dark.js +0 -4
  387. package/dist/vitesse-light.js +0 -4
  388. package/dist/vue-html.js +0 -8
  389. package/dist/vue-vine.js +0 -18
  390. package/dist/vue.js +0 -31
  391. package/dist/vyper.js +0 -6
  392. package/dist/wasm.js +0 -7
  393. package/dist/wasm2.js +0 -6
  394. package/dist/wenyan.js +0 -6
  395. package/dist/wgsl.js +0 -6
  396. package/dist/wikitext.js +0 -6
  397. package/dist/wit.js +0 -6
  398. package/dist/wolfram.js +0 -6
  399. package/dist/xml.js +0 -8
  400. package/dist/xsl.js +0 -8
  401. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  402. package/dist/yaml.js +0 -6
  403. package/dist/zenscript.js +0 -6
  404. package/dist/zig.js +0 -6
  405. package/dist/zipObject.js +0 -128
@@ -1,1788 +0,0 @@
1
- import { aG as c, cQ as X, aM as lt, aI as ue, aJ as de, aV as fe, aW as he, aL as me, aK as ke, b0 as ye, k as ge, aS as nt, aT as ve, aO as pe, a$ as Te } from "./CoachForm.js";
2
- import { c as wt, g as _t, s as vt } from "./redux-toolkit.modern.js";
3
- import { t as xe, m as be, a as we, i as _e, b as De, c as Rt, d as Ht, e as Bt, f as Gt, g as jt, s as Xt, h as qt, j as Se, k as Me, l as Ce, n as Ee, o as Ie, p as Ye, q as $e, r as Ae } from "./time.js";
4
- import { l as Fe } from "./linear.js";
5
- var Kt = { exports: {} };
6
- (function(t, a) {
7
- (function(r, i) {
8
- t.exports = i();
9
- })(wt, function() {
10
- var r = "day";
11
- return function(i, n, k) {
12
- var y = function(F) {
13
- return F.add(4 - F.isoWeekday(), r);
14
- }, _ = n.prototype;
15
- _.isoWeekYear = function() {
16
- return y(this).year();
17
- }, _.isoWeek = function(F) {
18
- if (!this.$utils().u(F)) return this.add(7 * (F - this.isoWeek()), r);
19
- var b, L, V, N, z = y(this), C = (b = this.isoWeekYear(), L = this.$u, V = (L ? k.utc : k)().year(b).startOf("year"), N = 4 - V.isoWeekday(), V.isoWeekday() > 4 && (N += 7), V.add(N, r));
20
- return z.diff(C, "week") + 1;
21
- }, _.isoWeekday = function(F) {
22
- return this.$utils().u(F) ? this.day() || 7 : this.day(this.day() % 7 ? F : F - 7);
23
- };
24
- var W = _.startOf;
25
- _.startOf = function(F, b) {
26
- var L = this.$utils(), V = !!L.u(b) || b;
27
- return L.p(F) === "isoweek" ? V ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : W.bind(this)(F, b);
28
- };
29
- };
30
- });
31
- })(Kt);
32
- var Le = Kt.exports;
33
- const We = /* @__PURE__ */ _t(Le);
34
- var Jt = { exports: {} };
35
- (function(t, a) {
36
- (function(r, i) {
37
- t.exports = i();
38
- })(wt, function() {
39
- var r = { 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" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, k = /\d\d/, y = /\d\d?/, _ = /\d*[^-_:/,()\s\d]+/, W = {}, F = function(D) {
40
- return (D = +D) + (D > 68 ? 1900 : 2e3);
41
- }, b = function(D) {
42
- return function(S) {
43
- this[D] = +S;
44
- };
45
- }, L = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
46
- (this.zone || (this.zone = {})).offset = function(S) {
47
- if (!S || S === "Z") return 0;
48
- var O = S.match(/([+-]|\d\d)/g), $ = 60 * O[1] + (+O[2] || 0);
49
- return $ === 0 ? 0 : O[0] === "+" ? -$ : $;
50
- }(D);
51
- }], V = function(D) {
52
- var S = W[D];
53
- return S && (S.indexOf ? S : S.s.concat(S.f));
54
- }, N = function(D, S) {
55
- var O, $ = W.meridiem;
56
- if ($) {
57
- for (var R = 1; R <= 24; R += 1) if (D.indexOf($(R, 0, S)) > -1) {
58
- O = R > 12;
59
- break;
60
- }
61
- } else O = D === (S ? "pm" : "PM");
62
- return O;
63
- }, z = { A: [_, function(D) {
64
- this.afternoon = N(D, !1);
65
- }], a: [_, function(D) {
66
- this.afternoon = N(D, !0);
67
- }], Q: [n, function(D) {
68
- this.month = 3 * (D - 1) + 1;
69
- }], S: [n, function(D) {
70
- this.milliseconds = 100 * +D;
71
- }], SS: [k, function(D) {
72
- this.milliseconds = 10 * +D;
73
- }], SSS: [/\d{3}/, function(D) {
74
- this.milliseconds = +D;
75
- }], s: [y, b("seconds")], ss: [y, b("seconds")], m: [y, b("minutes")], mm: [y, b("minutes")], H: [y, b("hours")], h: [y, b("hours")], HH: [y, b("hours")], hh: [y, b("hours")], D: [y, b("day")], DD: [k, b("day")], Do: [_, function(D) {
76
- var S = W.ordinal, O = D.match(/\d+/);
77
- if (this.day = O[0], S) for (var $ = 1; $ <= 31; $ += 1) S($).replace(/\[|\]/g, "") === D && (this.day = $);
78
- }], w: [y, b("week")], ww: [k, b("week")], M: [y, b("month")], MM: [k, b("month")], MMM: [_, function(D) {
79
- var S = V("months"), O = (V("monthsShort") || S.map(function($) {
80
- return $.slice(0, 3);
81
- })).indexOf(D) + 1;
82
- if (O < 1) throw new Error();
83
- this.month = O % 12 || O;
84
- }], MMMM: [_, function(D) {
85
- var S = V("months").indexOf(D) + 1;
86
- if (S < 1) throw new Error();
87
- this.month = S % 12 || S;
88
- }], Y: [/[+-]?\d+/, b("year")], YY: [k, function(D) {
89
- this.year = F(D);
90
- }], YYYY: [/\d{4}/, b("year")], Z: L, ZZ: L };
91
- function C(D) {
92
- var S, O;
93
- S = D, O = W && W.formats;
94
- for (var $ = (D = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(p, v, g) {
95
- var f = g && g.toUpperCase();
96
- return v || O[g] || r[g] || O[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(o, l, h) {
97
- return l || h.slice(1);
98
- });
99
- })).match(i), R = $.length, G = 0; G < R; G += 1) {
100
- var E = $[G], T = z[E], d = T && T[0], u = T && T[1];
101
- $[G] = u ? { regex: d, parser: u } : E.replace(/^\[|\]$/g, "");
102
- }
103
- return function(p) {
104
- for (var v = {}, g = 0, f = 0; g < R; g += 1) {
105
- var o = $[g];
106
- if (typeof o == "string") f += o.length;
107
- else {
108
- var l = o.regex, h = o.parser, m = p.slice(f), x = l.exec(m)[0];
109
- h.call(v, x), p = p.replace(x, "");
110
- }
111
- }
112
- return function(s) {
113
- var P = s.afternoon;
114
- if (P !== void 0) {
115
- var e = s.hours;
116
- P ? e < 12 && (s.hours += 12) : e === 12 && (s.hours = 0), delete s.afternoon;
117
- }
118
- }(v), v;
119
- };
120
- }
121
- return function(D, S, O) {
122
- O.p.customParseFormat = !0, D && D.parseTwoDigitYear && (F = D.parseTwoDigitYear);
123
- var $ = S.prototype, R = $.parse;
124
- $.parse = function(G) {
125
- var E = G.date, T = G.utc, d = G.args;
126
- this.$u = T;
127
- var u = d[1];
128
- if (typeof u == "string") {
129
- var p = d[2] === !0, v = d[3] === !0, g = p || v, f = d[2];
130
- v && (f = d[2]), W = this.$locale(), !p && f && (W = O.Ls[f]), this.$d = function(m, x, s, P) {
131
- try {
132
- if (["x", "X"].indexOf(x) > -1) return new Date((x === "X" ? 1e3 : 1) * m);
133
- var e = C(x)(m), w = e.year, A = e.month, Y = e.day, I = e.hours, j = e.minutes, M = e.seconds, Q = e.milliseconds, st = e.zone, ot = e.week, ft = /* @__PURE__ */ new Date(), ht = Y || (w || A ? 1 : ft.getDate()), ct = w || ft.getFullYear(), H = 0;
134
- w && !A || (H = A > 0 ? A - 1 : ft.getMonth());
135
- var Z, q = I || 0, rt = j || 0, K = M || 0, it = Q || 0;
136
- return st ? new Date(Date.UTC(ct, H, ht, q, rt, K, it + 60 * st.offset * 1e3)) : s ? new Date(Date.UTC(ct, H, ht, q, rt, K, it)) : (Z = new Date(ct, H, ht, q, rt, K, it), ot && (Z = P(Z).week(ot).toDate()), Z);
137
- } catch {
138
- return /* @__PURE__ */ new Date("");
139
- }
140
- }(E, u, T, O), this.init(), f && f !== !0 && (this.$L = this.locale(f).$L), g && E != this.format(u) && (this.$d = /* @__PURE__ */ new Date("")), W = {};
141
- } else if (u instanceof Array) for (var o = u.length, l = 1; l <= o; l += 1) {
142
- d[1] = u[l - 1];
143
- var h = O.apply(this, d);
144
- if (h.isValid()) {
145
- this.$d = h.$d, this.$L = h.$L, this.init();
146
- break;
147
- }
148
- l === o && (this.$d = /* @__PURE__ */ new Date(""));
149
- }
150
- else R.call(this, G);
151
- };
152
- };
153
- });
154
- })(Jt);
155
- var Oe = Jt.exports;
156
- const Pe = /* @__PURE__ */ _t(Oe);
157
- var te = { exports: {} };
158
- (function(t, a) {
159
- (function(r, i) {
160
- t.exports = i();
161
- })(wt, function() {
162
- return function(r, i) {
163
- var n = i.prototype, k = n.format;
164
- n.format = function(y) {
165
- var _ = this, W = this.$locale();
166
- if (!this.isValid()) return k.bind(this)(y);
167
- var F = this.$utils(), b = (y || "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(L) {
168
- switch (L) {
169
- case "Q":
170
- return Math.ceil((_.$M + 1) / 3);
171
- case "Do":
172
- return W.ordinal(_.$D);
173
- case "gggg":
174
- return _.weekYear();
175
- case "GGGG":
176
- return _.isoWeekYear();
177
- case "wo":
178
- return W.ordinal(_.week(), "W");
179
- case "w":
180
- case "ww":
181
- return F.s(_.week(), L === "w" ? 1 : 2, "0");
182
- case "W":
183
- case "WW":
184
- return F.s(_.isoWeek(), L === "W" ? 1 : 2, "0");
185
- case "k":
186
- case "kk":
187
- return F.s(String(_.$H === 0 ? 24 : _.$H), L === "k" ? 1 : 2, "0");
188
- case "X":
189
- return Math.floor(_.$d.getTime() / 1e3);
190
- case "x":
191
- return _.$d.getTime();
192
- case "z":
193
- return "[" + _.offsetName() + "]";
194
- case "zzz":
195
- return "[" + _.offsetName("long") + "]";
196
- default:
197
- return L;
198
- }
199
- });
200
- return k.bind(this)(b);
201
- };
202
- };
203
- });
204
- })(te);
205
- var Ve = te.exports;
206
- const Ne = /* @__PURE__ */ _t(Ve);
207
- var ee = { exports: {} };
208
- (function(t, a) {
209
- (function(r, i) {
210
- t.exports = i();
211
- })(wt, function() {
212
- var r, i, n = 1e3, k = 6e4, y = 36e5, _ = 864e5, W = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = 31536e6, b = 2628e6, L = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, V = { years: F, months: b, days: _, hours: y, minutes: k, seconds: n, milliseconds: 1, weeks: 6048e5 }, N = function(E) {
213
- return E instanceof R;
214
- }, z = function(E, T, d) {
215
- return new R(E, d, T.$l);
216
- }, C = function(E) {
217
- return i.p(E) + "s";
218
- }, D = function(E) {
219
- return E < 0;
220
- }, S = function(E) {
221
- return D(E) ? Math.ceil(E) : Math.floor(E);
222
- }, O = function(E) {
223
- return Math.abs(E);
224
- }, $ = function(E, T) {
225
- return E ? D(E) ? { negative: !0, format: "" + O(E) + T } : { negative: !1, format: "" + E + T } : { negative: !1, format: "" };
226
- }, R = function() {
227
- function E(d, u, p) {
228
- var v = this;
229
- if (this.$d = {}, this.$l = p, d === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), u) return z(d * V[C(u)], this);
230
- if (typeof d == "number") return this.$ms = d, this.parseFromMilliseconds(), this;
231
- if (typeof d == "object") return Object.keys(d).forEach(function(o) {
232
- v.$d[C(o)] = d[o];
233
- }), this.calMilliseconds(), this;
234
- if (typeof d == "string") {
235
- var g = d.match(L);
236
- if (g) {
237
- var f = g.slice(2).map(function(o) {
238
- return o != null ? Number(o) : 0;
239
- });
240
- return this.$d.years = f[0], this.$d.months = f[1], this.$d.weeks = f[2], this.$d.days = f[3], this.$d.hours = f[4], this.$d.minutes = f[5], this.$d.seconds = f[6], this.calMilliseconds(), this;
241
- }
242
- }
243
- return this;
244
- }
245
- var T = E.prototype;
246
- return T.calMilliseconds = function() {
247
- var d = this;
248
- this.$ms = Object.keys(this.$d).reduce(function(u, p) {
249
- return u + (d.$d[p] || 0) * V[p];
250
- }, 0);
251
- }, T.parseFromMilliseconds = function() {
252
- var d = this.$ms;
253
- this.$d.years = S(d / F), d %= F, this.$d.months = S(d / b), d %= b, this.$d.days = S(d / _), d %= _, this.$d.hours = S(d / y), d %= y, this.$d.minutes = S(d / k), d %= k, this.$d.seconds = S(d / n), d %= n, this.$d.milliseconds = d;
254
- }, T.toISOString = function() {
255
- var d = $(this.$d.years, "Y"), u = $(this.$d.months, "M"), p = +this.$d.days || 0;
256
- this.$d.weeks && (p += 7 * this.$d.weeks);
257
- var v = $(p, "D"), g = $(this.$d.hours, "H"), f = $(this.$d.minutes, "M"), o = this.$d.seconds || 0;
258
- this.$d.milliseconds && (o += this.$d.milliseconds / 1e3, o = Math.round(1e3 * o) / 1e3);
259
- var l = $(o, "S"), h = d.negative || u.negative || v.negative || g.negative || f.negative || l.negative, m = g.format || f.format || l.format ? "T" : "", x = (h ? "-" : "") + "P" + d.format + u.format + v.format + m + g.format + f.format + l.format;
260
- return x === "P" || x === "-P" ? "P0D" : x;
261
- }, T.toJSON = function() {
262
- return this.toISOString();
263
- }, T.format = function(d) {
264
- var u = d || "YYYY-MM-DDTHH:mm:ss", p = { Y: this.$d.years, YY: i.s(this.$d.years, 2, "0"), YYYY: i.s(this.$d.years, 4, "0"), M: this.$d.months, MM: i.s(this.$d.months, 2, "0"), D: this.$d.days, DD: i.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: i.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: i.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: i.s(this.$d.seconds, 2, "0"), SSS: i.s(this.$d.milliseconds, 3, "0") };
265
- return u.replace(W, function(v, g) {
266
- return g || String(p[v]);
267
- });
268
- }, T.as = function(d) {
269
- return this.$ms / V[C(d)];
270
- }, T.get = function(d) {
271
- var u = this.$ms, p = C(d);
272
- return p === "milliseconds" ? u %= 1e3 : u = p === "weeks" ? S(u / V[p]) : this.$d[p], u || 0;
273
- }, T.add = function(d, u, p) {
274
- var v;
275
- return v = u ? d * V[C(u)] : N(d) ? d.$ms : z(d, this).$ms, z(this.$ms + v * (p ? -1 : 1), this);
276
- }, T.subtract = function(d, u) {
277
- return this.add(d, u, !0);
278
- }, T.locale = function(d) {
279
- var u = this.clone();
280
- return u.$l = d, u;
281
- }, T.clone = function() {
282
- return z(this.$ms, this);
283
- }, T.humanize = function(d) {
284
- return r().add(this.$ms, "ms").locale(this.$l).fromNow(!d);
285
- }, T.valueOf = function() {
286
- return this.asMilliseconds();
287
- }, T.milliseconds = function() {
288
- return this.get("milliseconds");
289
- }, T.asMilliseconds = function() {
290
- return this.as("milliseconds");
291
- }, T.seconds = function() {
292
- return this.get("seconds");
293
- }, T.asSeconds = function() {
294
- return this.as("seconds");
295
- }, T.minutes = function() {
296
- return this.get("minutes");
297
- }, T.asMinutes = function() {
298
- return this.as("minutes");
299
- }, T.hours = function() {
300
- return this.get("hours");
301
- }, T.asHours = function() {
302
- return this.as("hours");
303
- }, T.days = function() {
304
- return this.get("days");
305
- }, T.asDays = function() {
306
- return this.as("days");
307
- }, T.weeks = function() {
308
- return this.get("weeks");
309
- }, T.asWeeks = function() {
310
- return this.as("weeks");
311
- }, T.months = function() {
312
- return this.get("months");
313
- }, T.asMonths = function() {
314
- return this.as("months");
315
- }, T.years = function() {
316
- return this.get("years");
317
- }, T.asYears = function() {
318
- return this.as("years");
319
- }, E;
320
- }(), G = function(E, T, d) {
321
- return E.add(T.years() * d, "y").add(T.months() * d, "M").add(T.days() * d, "d").add(T.hours() * d, "h").add(T.minutes() * d, "m").add(T.seconds() * d, "s").add(T.milliseconds() * d, "ms");
322
- };
323
- return function(E, T, d) {
324
- r = d, i = d().$utils(), d.duration = function(v, g) {
325
- var f = d.locale();
326
- return z(v, { $l: f }, g);
327
- }, d.isDuration = N;
328
- var u = T.prototype.add, p = T.prototype.subtract;
329
- T.prototype.add = function(v, g) {
330
- return N(v) ? G(this, v, 1) : u.bind(this)(v, g);
331
- }, T.prototype.subtract = function(v, g) {
332
- return N(v) ? G(this, v, -1) : p.bind(this)(v, g);
333
- };
334
- };
335
- });
336
- })(ee);
337
- var ze = ee.exports;
338
- const Re = /* @__PURE__ */ _t(ze);
339
- var Mt = function() {
340
- var t = /* @__PURE__ */ c(function(f, o, l, h) {
341
- for (l = l || {}, h = f.length; h--; l[f[h]] = o) ;
342
- return l;
343
- }, "o"), a = [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], r = [1, 26], i = [1, 27], n = [1, 28], k = [1, 29], y = [1, 30], _ = [1, 31], W = [1, 32], F = [1, 33], b = [1, 34], L = [1, 9], V = [1, 10], N = [1, 11], z = [1, 12], C = [1, 13], D = [1, 14], S = [1, 15], O = [1, 16], $ = [1, 19], R = [1, 20], G = [1, 21], E = [1, 22], T = [1, 23], d = [1, 25], u = [1, 35], p = {
344
- trace: /* @__PURE__ */ c(function() {
345
- }, "trace"),
346
- yy: {},
347
- 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 },
348
- 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" },
349
- 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]],
350
- performAction: /* @__PURE__ */ c(function(o, l, h, m, x, s, P) {
351
- var e = s.length - 1;
352
- switch (x) {
353
- case 1:
354
- return s[e - 1];
355
- case 2:
356
- this.$ = [];
357
- break;
358
- case 3:
359
- s[e - 1].push(s[e]), this.$ = s[e - 1];
360
- break;
361
- case 4:
362
- case 5:
363
- this.$ = s[e];
364
- break;
365
- case 6:
366
- case 7:
367
- this.$ = [];
368
- break;
369
- case 8:
370
- m.setWeekday("monday");
371
- break;
372
- case 9:
373
- m.setWeekday("tuesday");
374
- break;
375
- case 10:
376
- m.setWeekday("wednesday");
377
- break;
378
- case 11:
379
- m.setWeekday("thursday");
380
- break;
381
- case 12:
382
- m.setWeekday("friday");
383
- break;
384
- case 13:
385
- m.setWeekday("saturday");
386
- break;
387
- case 14:
388
- m.setWeekday("sunday");
389
- break;
390
- case 15:
391
- m.setWeekend("friday");
392
- break;
393
- case 16:
394
- m.setWeekend("saturday");
395
- break;
396
- case 17:
397
- m.setDateFormat(s[e].substr(11)), this.$ = s[e].substr(11);
398
- break;
399
- case 18:
400
- m.enableInclusiveEndDates(), this.$ = s[e].substr(18);
401
- break;
402
- case 19:
403
- m.TopAxis(), this.$ = s[e].substr(8);
404
- break;
405
- case 20:
406
- m.setAxisFormat(s[e].substr(11)), this.$ = s[e].substr(11);
407
- break;
408
- case 21:
409
- m.setTickInterval(s[e].substr(13)), this.$ = s[e].substr(13);
410
- break;
411
- case 22:
412
- m.setExcludes(s[e].substr(9)), this.$ = s[e].substr(9);
413
- break;
414
- case 23:
415
- m.setIncludes(s[e].substr(9)), this.$ = s[e].substr(9);
416
- break;
417
- case 24:
418
- m.setTodayMarker(s[e].substr(12)), this.$ = s[e].substr(12);
419
- break;
420
- case 27:
421
- m.setDiagramTitle(s[e].substr(6)), this.$ = s[e].substr(6);
422
- break;
423
- case 28:
424
- this.$ = s[e].trim(), m.setAccTitle(this.$);
425
- break;
426
- case 29:
427
- case 30:
428
- this.$ = s[e].trim(), m.setAccDescription(this.$);
429
- break;
430
- case 31:
431
- m.addSection(s[e].substr(8)), this.$ = s[e].substr(8);
432
- break;
433
- case 33:
434
- m.addTask(s[e - 1], s[e]), this.$ = "task";
435
- break;
436
- case 34:
437
- this.$ = s[e - 1], m.setClickEvent(s[e - 1], s[e], null);
438
- break;
439
- case 35:
440
- this.$ = s[e - 2], m.setClickEvent(s[e - 2], s[e - 1], s[e]);
441
- break;
442
- case 36:
443
- this.$ = s[e - 2], m.setClickEvent(s[e - 2], s[e - 1], null), m.setLink(s[e - 2], s[e]);
444
- break;
445
- case 37:
446
- this.$ = s[e - 3], m.setClickEvent(s[e - 3], s[e - 2], s[e - 1]), m.setLink(s[e - 3], s[e]);
447
- break;
448
- case 38:
449
- this.$ = s[e - 2], m.setClickEvent(s[e - 2], s[e], null), m.setLink(s[e - 2], s[e - 1]);
450
- break;
451
- case 39:
452
- this.$ = s[e - 3], m.setClickEvent(s[e - 3], s[e - 1], s[e]), m.setLink(s[e - 3], s[e - 2]);
453
- break;
454
- case 40:
455
- this.$ = s[e - 1], m.setLink(s[e - 1], s[e]);
456
- break;
457
- case 41:
458
- case 47:
459
- this.$ = s[e - 1] + " " + s[e];
460
- break;
461
- case 42:
462
- case 43:
463
- case 45:
464
- this.$ = s[e - 2] + " " + s[e - 1] + " " + s[e];
465
- break;
466
- case 44:
467
- case 46:
468
- this.$ = s[e - 3] + " " + s[e - 2] + " " + s[e - 1] + " " + s[e];
469
- break;
470
- }
471
- }, "anonymous"),
472
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(a, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: r, 13: i, 14: n, 15: k, 16: y, 17: _, 18: W, 19: 18, 20: F, 21: b, 22: L, 23: V, 24: N, 25: z, 26: C, 27: D, 28: S, 29: O, 30: $, 31: R, 33: G, 35: E, 36: T, 37: 24, 38: d, 40: u }, t(a, [2, 7], { 1: [2, 1] }), t(a, [2, 3]), { 9: 36, 11: 17, 12: r, 13: i, 14: n, 15: k, 16: y, 17: _, 18: W, 19: 18, 20: F, 21: b, 22: L, 23: V, 24: N, 25: z, 26: C, 27: D, 28: S, 29: O, 30: $, 31: R, 33: G, 35: E, 36: T, 37: 24, 38: d, 40: u }, t(a, [2, 5]), t(a, [2, 6]), t(a, [2, 17]), t(a, [2, 18]), t(a, [2, 19]), t(a, [2, 20]), t(a, [2, 21]), t(a, [2, 22]), t(a, [2, 23]), t(a, [2, 24]), t(a, [2, 25]), t(a, [2, 26]), t(a, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(a, [2, 30]), t(a, [2, 31]), t(a, [2, 32]), { 39: [1, 39] }, t(a, [2, 8]), t(a, [2, 9]), t(a, [2, 10]), t(a, [2, 11]), t(a, [2, 12]), t(a, [2, 13]), t(a, [2, 14]), t(a, [2, 15]), t(a, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(a, [2, 4]), t(a, [2, 28]), t(a, [2, 29]), t(a, [2, 33]), t(a, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(a, [2, 40], { 41: [1, 44] }), t(a, [2, 35], { 43: [1, 45] }), t(a, [2, 36]), t(a, [2, 38], { 42: [1, 46] }), t(a, [2, 37]), t(a, [2, 39])],
473
- defaultActions: {},
474
- parseError: /* @__PURE__ */ c(function(o, l) {
475
- if (l.recoverable)
476
- this.trace(o);
477
- else {
478
- var h = new Error(o);
479
- throw h.hash = l, h;
480
- }
481
- }, "parseError"),
482
- parse: /* @__PURE__ */ c(function(o) {
483
- var l = this, h = [0], m = [], x = [null], s = [], P = this.table, e = "", w = 0, A = 0, Y = 2, I = 1, j = s.slice.call(arguments, 1), M = Object.create(this.lexer), Q = { yy: {} };
484
- for (var st in this.yy)
485
- Object.prototype.hasOwnProperty.call(this.yy, st) && (Q.yy[st] = this.yy[st]);
486
- M.setInput(o, Q.yy), Q.yy.lexer = M, Q.yy.parser = this, typeof M.yylloc > "u" && (M.yylloc = {});
487
- var ot = M.yylloc;
488
- s.push(ot);
489
- var ft = M.options && M.options.ranges;
490
- typeof Q.yy.parseError == "function" ? this.parseError = Q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
491
- function ht(U) {
492
- h.length = h.length - 2 * U, x.length = x.length - U, s.length = s.length - U;
493
- }
494
- c(ht, "popStack");
495
- function ct() {
496
- var U;
497
- return U = m.pop() || M.lex() || I, typeof U != "number" && (U instanceof Array && (m = U, U = m.pop()), U = l.symbols_[U] || U), U;
498
- }
499
- c(ct, "lex");
500
- for (var H, Z, q, rt, K = {}, it, J, zt, gt; ; ) {
501
- if (Z = h[h.length - 1], this.defaultActions[Z] ? q = this.defaultActions[Z] : ((H === null || typeof H > "u") && (H = ct()), q = P[Z] && P[Z][H]), typeof q > "u" || !q.length || !q[0]) {
502
- var Dt = "";
503
- gt = [];
504
- for (it in P[Z])
505
- this.terminals_[it] && it > Y && gt.push("'" + this.terminals_[it] + "'");
506
- M.showPosition ? Dt = "Parse error on line " + (w + 1) + `:
507
- ` + M.showPosition() + `
508
- Expecting ` + gt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : Dt = "Parse error on line " + (w + 1) + ": Unexpected " + (H == I ? "end of input" : "'" + (this.terminals_[H] || H) + "'"), this.parseError(Dt, {
509
- text: M.match,
510
- token: this.terminals_[H] || H,
511
- line: M.yylineno,
512
- loc: ot,
513
- expected: gt
514
- });
515
- }
516
- if (q[0] instanceof Array && q.length > 1)
517
- throw new Error("Parse Error: multiple actions possible at state: " + Z + ", token: " + H);
518
- switch (q[0]) {
519
- case 1:
520
- h.push(H), x.push(M.yytext), s.push(M.yylloc), h.push(q[1]), H = null, A = M.yyleng, e = M.yytext, w = M.yylineno, ot = M.yylloc;
521
- break;
522
- case 2:
523
- if (J = this.productions_[q[1]][1], K.$ = x[x.length - J], K._$ = {
524
- first_line: s[s.length - (J || 1)].first_line,
525
- last_line: s[s.length - 1].last_line,
526
- first_column: s[s.length - (J || 1)].first_column,
527
- last_column: s[s.length - 1].last_column
528
- }, ft && (K._$.range = [
529
- s[s.length - (J || 1)].range[0],
530
- s[s.length - 1].range[1]
531
- ]), rt = this.performAction.apply(K, [
532
- e,
533
- A,
534
- w,
535
- Q.yy,
536
- q[1],
537
- x,
538
- s
539
- ].concat(j)), typeof rt < "u")
540
- return rt;
541
- J && (h = h.slice(0, -1 * J * 2), x = x.slice(0, -1 * J), s = s.slice(0, -1 * J)), h.push(this.productions_[q[1]][0]), x.push(K.$), s.push(K._$), zt = P[h[h.length - 2]][h[h.length - 1]], h.push(zt);
542
- break;
543
- case 3:
544
- return !0;
545
- }
546
- }
547
- return !0;
548
- }, "parse")
549
- }, v = /* @__PURE__ */ function() {
550
- var f = {
551
- EOF: 1,
552
- parseError: /* @__PURE__ */ c(function(l, h) {
553
- if (this.yy.parser)
554
- this.yy.parser.parseError(l, h);
555
- else
556
- throw new Error(l);
557
- }, "parseError"),
558
- // resets the lexer, sets new input
559
- setInput: /* @__PURE__ */ c(function(o, l) {
560
- return this.yy = l || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
561
- first_line: 1,
562
- first_column: 0,
563
- last_line: 1,
564
- last_column: 0
565
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
566
- }, "setInput"),
567
- // consumes and returns one char from the input
568
- input: /* @__PURE__ */ c(function() {
569
- var o = this._input[0];
570
- this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
571
- var l = o.match(/(?:\r\n?|\n).*/g);
572
- return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
573
- }, "input"),
574
- // unshifts one char (or a string) into the input
575
- unput: /* @__PURE__ */ c(function(o) {
576
- var l = o.length, h = o.split(/(?:\r\n?|\n)/g);
577
- this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
578
- var m = this.match.split(/(?:\r\n?|\n)/g);
579
- 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);
580
- var x = this.yylloc.range;
581
- return this.yylloc = {
582
- first_line: this.yylloc.first_line,
583
- last_line: this.yylineno + 1,
584
- first_column: this.yylloc.first_column,
585
- last_column: h ? (h.length === m.length ? this.yylloc.first_column : 0) + m[m.length - h.length].length - h[0].length : this.yylloc.first_column - l
586
- }, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
587
- }, "unput"),
588
- // When called from action, caches matched text and appends it on next action
589
- more: /* @__PURE__ */ c(function() {
590
- return this._more = !0, this;
591
- }, "more"),
592
- // 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.
593
- reject: /* @__PURE__ */ c(function() {
594
- if (this.options.backtrack_lexer)
595
- this._backtrack = !0;
596
- else
597
- 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).
598
- ` + this.showPosition(), {
599
- text: "",
600
- token: null,
601
- line: this.yylineno
602
- });
603
- return this;
604
- }, "reject"),
605
- // retain first n characters of the match
606
- less: /* @__PURE__ */ c(function(o) {
607
- this.unput(this.match.slice(o));
608
- }, "less"),
609
- // displays already matched input, i.e. for error messages
610
- pastInput: /* @__PURE__ */ c(function() {
611
- var o = this.matched.substr(0, this.matched.length - this.match.length);
612
- return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
613
- }, "pastInput"),
614
- // displays upcoming input, i.e. for error messages
615
- upcomingInput: /* @__PURE__ */ c(function() {
616
- var o = this.match;
617
- return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
618
- }, "upcomingInput"),
619
- // displays the character position where the lexing error occurred, i.e. for error messages
620
- showPosition: /* @__PURE__ */ c(function() {
621
- var o = this.pastInput(), l = new Array(o.length + 1).join("-");
622
- return o + this.upcomingInput() + `
623
- ` + l + "^";
624
- }, "showPosition"),
625
- // test the lexed token: return FALSE when not a match, otherwise return token
626
- test_match: /* @__PURE__ */ c(function(o, l) {
627
- var h, m, x;
628
- if (this.options.backtrack_lexer && (x = {
629
- yylineno: this.yylineno,
630
- yylloc: {
631
- first_line: this.yylloc.first_line,
632
- last_line: this.last_line,
633
- first_column: this.yylloc.first_column,
634
- last_column: this.yylloc.last_column
635
- },
636
- yytext: this.yytext,
637
- match: this.match,
638
- matches: this.matches,
639
- matched: this.matched,
640
- yyleng: this.yyleng,
641
- offset: this.offset,
642
- _more: this._more,
643
- _input: this._input,
644
- yy: this.yy,
645
- conditionStack: this.conditionStack.slice(0),
646
- done: this.done
647
- }, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), m = o[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
648
- first_line: this.yylloc.last_line,
649
- last_line: this.yylineno + 1,
650
- first_column: this.yylloc.last_column,
651
- last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
652
- }, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(o[0].length), this.matched += o[0], h = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
653
- return h;
654
- if (this._backtrack) {
655
- for (var s in x)
656
- this[s] = x[s];
657
- return !1;
658
- }
659
- return !1;
660
- }, "test_match"),
661
- // return next match in input
662
- next: /* @__PURE__ */ c(function() {
663
- if (this.done)
664
- return this.EOF;
665
- this._input || (this.done = !0);
666
- var o, l, h, m;
667
- this._more || (this.yytext = "", this.match = "");
668
- for (var x = this._currentRules(), s = 0; s < x.length; s++)
669
- if (h = this._input.match(this.rules[x[s]]), h && (!l || h[0].length > l[0].length)) {
670
- if (l = h, m = s, this.options.backtrack_lexer) {
671
- if (o = this.test_match(h, x[s]), o !== !1)
672
- return o;
673
- if (this._backtrack) {
674
- l = !1;
675
- continue;
676
- } else
677
- return !1;
678
- } else if (!this.options.flex)
679
- break;
680
- }
681
- return l ? (o = this.test_match(l, x[m]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
682
- ` + this.showPosition(), {
683
- text: "",
684
- token: null,
685
- line: this.yylineno
686
- });
687
- }, "next"),
688
- // return next match that has a token
689
- lex: /* @__PURE__ */ c(function() {
690
- var l = this.next();
691
- return l || this.lex();
692
- }, "lex"),
693
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
694
- begin: /* @__PURE__ */ c(function(l) {
695
- this.conditionStack.push(l);
696
- }, "begin"),
697
- // pop the previously active lexer condition state off the condition stack
698
- popState: /* @__PURE__ */ c(function() {
699
- var l = this.conditionStack.length - 1;
700
- return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
701
- }, "popState"),
702
- // produce the lexer rule set which is active for the currently active lexer condition state
703
- _currentRules: /* @__PURE__ */ c(function() {
704
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
705
- }, "_currentRules"),
706
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
707
- topState: /* @__PURE__ */ c(function(l) {
708
- return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
709
- }, "topState"),
710
- // alias for begin(condition)
711
- pushState: /* @__PURE__ */ c(function(l) {
712
- this.begin(l);
713
- }, "pushState"),
714
- // return the number of states currently on the stack
715
- stateStackSize: /* @__PURE__ */ c(function() {
716
- return this.conditionStack.length;
717
- }, "stateStackSize"),
718
- options: { "case-insensitive": !0 },
719
- performAction: /* @__PURE__ */ c(function(l, h, m, x) {
720
- switch (m) {
721
- case 0:
722
- return this.begin("open_directive"), "open_directive";
723
- case 1:
724
- return this.begin("acc_title"), 31;
725
- case 2:
726
- return this.popState(), "acc_title_value";
727
- case 3:
728
- return this.begin("acc_descr"), 33;
729
- case 4:
730
- return this.popState(), "acc_descr_value";
731
- case 5:
732
- this.begin("acc_descr_multiline");
733
- break;
734
- case 6:
735
- this.popState();
736
- break;
737
- case 7:
738
- return "acc_descr_multiline_value";
739
- case 8:
740
- break;
741
- case 9:
742
- break;
743
- case 10:
744
- break;
745
- case 11:
746
- return 10;
747
- case 12:
748
- break;
749
- case 13:
750
- break;
751
- case 14:
752
- this.begin("href");
753
- break;
754
- case 15:
755
- this.popState();
756
- break;
757
- case 16:
758
- return 43;
759
- case 17:
760
- this.begin("callbackname");
761
- break;
762
- case 18:
763
- this.popState();
764
- break;
765
- case 19:
766
- this.popState(), this.begin("callbackargs");
767
- break;
768
- case 20:
769
- return 41;
770
- case 21:
771
- this.popState();
772
- break;
773
- case 22:
774
- return 42;
775
- case 23:
776
- this.begin("click");
777
- break;
778
- case 24:
779
- this.popState();
780
- break;
781
- case 25:
782
- return 40;
783
- case 26:
784
- return 4;
785
- case 27:
786
- return 22;
787
- case 28:
788
- return 23;
789
- case 29:
790
- return 24;
791
- case 30:
792
- return 25;
793
- case 31:
794
- return 26;
795
- case 32:
796
- return 28;
797
- case 33:
798
- return 27;
799
- case 34:
800
- return 29;
801
- case 35:
802
- return 12;
803
- case 36:
804
- return 13;
805
- case 37:
806
- return 14;
807
- case 38:
808
- return 15;
809
- case 39:
810
- return 16;
811
- case 40:
812
- return 17;
813
- case 41:
814
- return 18;
815
- case 42:
816
- return 20;
817
- case 43:
818
- return 21;
819
- case 44:
820
- return "date";
821
- case 45:
822
- return 30;
823
- case 46:
824
- return "accDescription";
825
- case 47:
826
- return 36;
827
- case 48:
828
- return 38;
829
- case 49:
830
- return 39;
831
- case 50:
832
- return ":";
833
- case 51:
834
- return 6;
835
- case 52:
836
- return "INVALID";
837
- }
838
- }, "anonymous"),
839
- 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],
840
- 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 } }
841
- };
842
- return f;
843
- }();
844
- p.lexer = v;
845
- function g() {
846
- this.yy = {};
847
- }
848
- return c(g, "Parser"), g.prototype = p, p.Parser = g, new g();
849
- }();
850
- Mt.parser = Mt;
851
- var He = Mt;
852
- X.extend(We);
853
- X.extend(Pe);
854
- X.extend(Ne);
855
- var Ut = { friday: 5, saturday: 6 }, tt = "", Yt = "", $t = void 0, At = "", mt = [], kt = [], Ft = /* @__PURE__ */ new Map(), Lt = [], xt = [], dt = "", Wt = "", se = ["active", "done", "crit", "milestone", "vert"], Ot = [], yt = !1, Pt = !1, Vt = "sunday", bt = "saturday", Ct = 0, Be = /* @__PURE__ */ c(function() {
856
- Lt = [], xt = [], dt = "", Ot = [], pt = 0, It = void 0, Tt = void 0, B = [], tt = "", Yt = "", Wt = "", $t = void 0, At = "", mt = [], kt = [], yt = !1, Pt = !1, Ct = 0, Ft = /* @__PURE__ */ new Map(), ye(), Vt = "sunday", bt = "saturday";
857
- }, "clear"), Ge = /* @__PURE__ */ c(function(t) {
858
- Yt = t;
859
- }, "setAxisFormat"), je = /* @__PURE__ */ c(function() {
860
- return Yt;
861
- }, "getAxisFormat"), Xe = /* @__PURE__ */ c(function(t) {
862
- $t = t;
863
- }, "setTickInterval"), qe = /* @__PURE__ */ c(function() {
864
- return $t;
865
- }, "getTickInterval"), Ue = /* @__PURE__ */ c(function(t) {
866
- At = t;
867
- }, "setTodayMarker"), Ze = /* @__PURE__ */ c(function() {
868
- return At;
869
- }, "getTodayMarker"), Qe = /* @__PURE__ */ c(function(t) {
870
- tt = t;
871
- }, "setDateFormat"), Ke = /* @__PURE__ */ c(function() {
872
- yt = !0;
873
- }, "enableInclusiveEndDates"), Je = /* @__PURE__ */ c(function() {
874
- return yt;
875
- }, "endDatesAreInclusive"), ts = /* @__PURE__ */ c(function() {
876
- Pt = !0;
877
- }, "enableTopAxis"), es = /* @__PURE__ */ c(function() {
878
- return Pt;
879
- }, "topAxisEnabled"), ss = /* @__PURE__ */ c(function(t) {
880
- Wt = t;
881
- }, "setDisplayMode"), is = /* @__PURE__ */ c(function() {
882
- return Wt;
883
- }, "getDisplayMode"), rs = /* @__PURE__ */ c(function() {
884
- return tt;
885
- }, "getDateFormat"), ns = /* @__PURE__ */ c(function(t) {
886
- mt = t.toLowerCase().split(/[\s,]+/);
887
- }, "setIncludes"), as = /* @__PURE__ */ c(function() {
888
- return mt;
889
- }, "getIncludes"), os = /* @__PURE__ */ c(function(t) {
890
- kt = t.toLowerCase().split(/[\s,]+/);
891
- }, "setExcludes"), cs = /* @__PURE__ */ c(function() {
892
- return kt;
893
- }, "getExcludes"), ls = /* @__PURE__ */ c(function() {
894
- return Ft;
895
- }, "getLinks"), us = /* @__PURE__ */ c(function(t) {
896
- dt = t, Lt.push(t);
897
- }, "addSection"), ds = /* @__PURE__ */ c(function() {
898
- return Lt;
899
- }, "getSections"), fs = /* @__PURE__ */ c(function() {
900
- let t = Zt();
901
- const a = 10;
902
- let r = 0;
903
- for (; !t && r < a; )
904
- t = Zt(), r++;
905
- return xt = B, xt;
906
- }, "getTasks"), ie = /* @__PURE__ */ c(function(t, a, r, i) {
907
- const n = t.format(a.trim()), k = t.format("YYYY-MM-DD");
908
- return i.includes(n) || i.includes(k) ? !1 : r.includes("weekends") && (t.isoWeekday() === Ut[bt] || t.isoWeekday() === Ut[bt] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(n) || r.includes(k);
909
- }, "isInvalidDate"), hs = /* @__PURE__ */ c(function(t) {
910
- Vt = t;
911
- }, "setWeekday"), ms = /* @__PURE__ */ c(function() {
912
- return Vt;
913
- }, "getWeekday"), ks = /* @__PURE__ */ c(function(t) {
914
- bt = t;
915
- }, "setWeekend"), re = /* @__PURE__ */ c(function(t, a, r, i) {
916
- if (!r.length || t.manualEndTime)
917
- return;
918
- let n;
919
- t.startTime instanceof Date ? n = X(t.startTime) : n = X(t.startTime, a, !0), n = n.add(1, "d");
920
- let k;
921
- t.endTime instanceof Date ? k = X(t.endTime) : k = X(t.endTime, a, !0);
922
- const [y, _] = ys(
923
- n,
924
- k,
925
- a,
926
- r,
927
- i
928
- );
929
- t.endTime = y.toDate(), t.renderEndTime = _;
930
- }, "checkTaskDates"), ys = /* @__PURE__ */ c(function(t, a, r, i, n) {
931
- let k = !1, y = null;
932
- for (; t <= a; )
933
- k || (y = a.toDate()), k = ie(t, r, i, n), k && (a = a.add(1, "d")), t = t.add(1, "d");
934
- return [a, y];
935
- }, "fixTaskDates"), Et = /* @__PURE__ */ c(function(t, a, r) {
936
- if (r = r.trim(), (/* @__PURE__ */ c((_) => {
937
- const W = _.trim();
938
- return W === "x" || W === "X";
939
- }, "isTimestampFormat"))(a) && /^\d+$/.test(r))
940
- return new Date(Number(r));
941
- const k = /^after\s+(?<ids>[\d\w- ]+)/.exec(r);
942
- if (k !== null) {
943
- let _ = null;
944
- for (const F of k.groups.ids.split(" ")) {
945
- let b = at(F);
946
- b !== void 0 && (!_ || b.endTime > _.endTime) && (_ = b);
947
- }
948
- if (_)
949
- return _.endTime;
950
- const W = /* @__PURE__ */ new Date();
951
- return W.setHours(0, 0, 0, 0), W;
952
- }
953
- let y = X(r, a.trim(), !0);
954
- if (y.isValid())
955
- return y.toDate();
956
- {
957
- nt.debug("Invalid date:" + r), nt.debug("With date format:" + a.trim());
958
- const _ = new Date(r);
959
- if (_ === void 0 || isNaN(_.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
960
- // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
961
- // This can cause virtually infinite loops while rendering, so for the
962
- // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
963
- // invalid.
964
- _.getFullYear() < -1e4 || _.getFullYear() > 1e4)
965
- throw new Error("Invalid date:" + r);
966
- return _;
967
- }
968
- }, "getStartDate"), ne = /* @__PURE__ */ c(function(t) {
969
- const a = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
970
- return a !== null ? [Number.parseFloat(a[1]), a[2]] : [NaN, "ms"];
971
- }, "parseDuration"), ae = /* @__PURE__ */ c(function(t, a, r, i = !1) {
972
- r = r.trim();
973
- const k = /^until\s+(?<ids>[\d\w- ]+)/.exec(r);
974
- if (k !== null) {
975
- let b = null;
976
- for (const V of k.groups.ids.split(" ")) {
977
- let N = at(V);
978
- N !== void 0 && (!b || N.startTime < b.startTime) && (b = N);
979
- }
980
- if (b)
981
- return b.startTime;
982
- const L = /* @__PURE__ */ new Date();
983
- return L.setHours(0, 0, 0, 0), L;
984
- }
985
- let y = X(r, a.trim(), !0);
986
- if (y.isValid())
987
- return i && (y = y.add(1, "d")), y.toDate();
988
- let _ = X(t);
989
- const [W, F] = ne(r);
990
- if (!Number.isNaN(W)) {
991
- const b = _.add(W, F);
992
- b.isValid() && (_ = b);
993
- }
994
- return _.toDate();
995
- }, "getEndDate"), pt = 0, ut = /* @__PURE__ */ c(function(t) {
996
- return t === void 0 ? (pt = pt + 1, "task" + pt) : t;
997
- }, "parseId"), gs = /* @__PURE__ */ c(function(t, a) {
998
- let r;
999
- a.substr(0, 1) === ":" ? r = a.substr(1, a.length) : r = a;
1000
- const i = r.split(","), n = {};
1001
- Nt(i, n, se);
1002
- for (let y = 0; y < i.length; y++)
1003
- i[y] = i[y].trim();
1004
- let k = "";
1005
- switch (i.length) {
1006
- case 1:
1007
- n.id = ut(), n.startTime = t.endTime, k = i[0];
1008
- break;
1009
- case 2:
1010
- n.id = ut(), n.startTime = Et(void 0, tt, i[0]), k = i[1];
1011
- break;
1012
- case 3:
1013
- n.id = ut(i[0]), n.startTime = Et(void 0, tt, i[1]), k = i[2];
1014
- break;
1015
- }
1016
- return k && (n.endTime = ae(n.startTime, tt, k, yt), n.manualEndTime = X(k, "YYYY-MM-DD", !0).isValid(), re(n, tt, kt, mt)), n;
1017
- }, "compileData"), vs = /* @__PURE__ */ c(function(t, a) {
1018
- let r;
1019
- a.substr(0, 1) === ":" ? r = a.substr(1, a.length) : r = a;
1020
- const i = r.split(","), n = {};
1021
- Nt(i, n, se);
1022
- for (let k = 0; k < i.length; k++)
1023
- i[k] = i[k].trim();
1024
- switch (i.length) {
1025
- case 1:
1026
- n.id = ut(), n.startTime = {
1027
- type: "prevTaskEnd",
1028
- id: t
1029
- }, n.endTime = {
1030
- data: i[0]
1031
- };
1032
- break;
1033
- case 2:
1034
- n.id = ut(), n.startTime = {
1035
- type: "getStartDate",
1036
- startData: i[0]
1037
- }, n.endTime = {
1038
- data: i[1]
1039
- };
1040
- break;
1041
- case 3:
1042
- n.id = ut(i[0]), n.startTime = {
1043
- type: "getStartDate",
1044
- startData: i[1]
1045
- }, n.endTime = {
1046
- data: i[2]
1047
- };
1048
- break;
1049
- }
1050
- return n;
1051
- }, "parseData"), It, Tt, B = [], oe = {}, ps = /* @__PURE__ */ c(function(t, a) {
1052
- const r = {
1053
- section: dt,
1054
- type: dt,
1055
- processed: !1,
1056
- manualEndTime: !1,
1057
- renderEndTime: null,
1058
- raw: { data: a },
1059
- task: t,
1060
- classes: []
1061
- }, i = vs(Tt, a);
1062
- r.raw.startTime = i.startTime, r.raw.endTime = i.endTime, r.id = i.id, r.prevTaskId = Tt, r.active = i.active, r.done = i.done, r.crit = i.crit, r.milestone = i.milestone, r.vert = i.vert, r.order = Ct, Ct++;
1063
- const n = B.push(r);
1064
- Tt = r.id, oe[r.id] = n - 1;
1065
- }, "addTask"), at = /* @__PURE__ */ c(function(t) {
1066
- const a = oe[t];
1067
- return B[a];
1068
- }, "findTaskById"), Ts = /* @__PURE__ */ c(function(t, a) {
1069
- const r = {
1070
- section: dt,
1071
- type: dt,
1072
- description: t,
1073
- task: t,
1074
- classes: []
1075
- }, i = gs(It, a);
1076
- r.startTime = i.startTime, r.endTime = i.endTime, r.id = i.id, r.active = i.active, r.done = i.done, r.crit = i.crit, r.milestone = i.milestone, r.vert = i.vert, It = r, xt.push(r);
1077
- }, "addTaskOrg"), Zt = /* @__PURE__ */ c(function() {
1078
- const t = /* @__PURE__ */ c(function(r) {
1079
- const i = B[r];
1080
- let n = "";
1081
- switch (B[r].raw.startTime.type) {
1082
- case "prevTaskEnd": {
1083
- const k = at(i.prevTaskId);
1084
- i.startTime = k.endTime;
1085
- break;
1086
- }
1087
- case "getStartDate":
1088
- n = Et(void 0, tt, B[r].raw.startTime.startData), n && (B[r].startTime = n);
1089
- break;
1090
- }
1091
- return B[r].startTime && (B[r].endTime = ae(
1092
- B[r].startTime,
1093
- tt,
1094
- B[r].raw.endTime.data,
1095
- yt
1096
- ), B[r].endTime && (B[r].processed = !0, B[r].manualEndTime = X(
1097
- B[r].raw.endTime.data,
1098
- "YYYY-MM-DD",
1099
- !0
1100
- ).isValid(), re(B[r], tt, kt, mt))), B[r].processed;
1101
- }, "compileTask");
1102
- let a = !0;
1103
- for (const [r, i] of B.entries())
1104
- t(r), a = a && i.processed;
1105
- return a;
1106
- }, "compileTasks"), xs = /* @__PURE__ */ c(function(t, a) {
1107
- let r = a;
1108
- lt().securityLevel !== "loose" && (r = ge(a)), t.split(",").forEach(function(i) {
1109
- at(i) !== void 0 && (le(i, () => {
1110
- window.open(r, "_self");
1111
- }), Ft.set(i, r));
1112
- }), ce(t, "clickable");
1113
- }, "setLink"), ce = /* @__PURE__ */ c(function(t, a) {
1114
- t.split(",").forEach(function(r) {
1115
- let i = at(r);
1116
- i !== void 0 && i.classes.push(a);
1117
- });
1118
- }, "setClass"), bs = /* @__PURE__ */ c(function(t, a, r) {
1119
- if (lt().securityLevel !== "loose" || a === void 0)
1120
- return;
1121
- let i = [];
1122
- if (typeof r == "string") {
1123
- i = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1124
- for (let k = 0; k < i.length; k++) {
1125
- let y = i[k].trim();
1126
- y.startsWith('"') && y.endsWith('"') && (y = y.substr(1, y.length - 2)), i[k] = y;
1127
- }
1128
- }
1129
- i.length === 0 && i.push(t), at(t) !== void 0 && le(t, () => {
1130
- Te.runFunc(a, ...i);
1131
- });
1132
- }, "setClickFun"), le = /* @__PURE__ */ c(function(t, a) {
1133
- Ot.push(
1134
- function() {
1135
- const r = document.querySelector(`[id="${t}"]`);
1136
- r !== null && r.addEventListener("click", function() {
1137
- a();
1138
- });
1139
- },
1140
- function() {
1141
- const r = document.querySelector(`[id="${t}-text"]`);
1142
- r !== null && r.addEventListener("click", function() {
1143
- a();
1144
- });
1145
- }
1146
- );
1147
- }, "pushFun"), ws = /* @__PURE__ */ c(function(t, a, r) {
1148
- t.split(",").forEach(function(i) {
1149
- bs(i, a, r);
1150
- }), ce(t, "clickable");
1151
- }, "setClickEvent"), _s = /* @__PURE__ */ c(function(t) {
1152
- Ot.forEach(function(a) {
1153
- a(t);
1154
- });
1155
- }, "bindFunctions"), Ds = {
1156
- getConfig: /* @__PURE__ */ c(() => lt().gantt, "getConfig"),
1157
- clear: Be,
1158
- setDateFormat: Qe,
1159
- getDateFormat: rs,
1160
- enableInclusiveEndDates: Ke,
1161
- endDatesAreInclusive: Je,
1162
- enableTopAxis: ts,
1163
- topAxisEnabled: es,
1164
- setAxisFormat: Ge,
1165
- getAxisFormat: je,
1166
- setTickInterval: Xe,
1167
- getTickInterval: qe,
1168
- setTodayMarker: Ue,
1169
- getTodayMarker: Ze,
1170
- setAccTitle: ue,
1171
- getAccTitle: de,
1172
- setDiagramTitle: fe,
1173
- getDiagramTitle: he,
1174
- setDisplayMode: ss,
1175
- getDisplayMode: is,
1176
- setAccDescription: me,
1177
- getAccDescription: ke,
1178
- addSection: us,
1179
- getSections: ds,
1180
- getTasks: fs,
1181
- addTask: ps,
1182
- findTaskById: at,
1183
- addTaskOrg: Ts,
1184
- setIncludes: ns,
1185
- getIncludes: as,
1186
- setExcludes: os,
1187
- getExcludes: cs,
1188
- setClickEvent: ws,
1189
- setLink: xs,
1190
- getLinks: ls,
1191
- bindFunctions: _s,
1192
- parseDuration: ne,
1193
- isInvalidDate: ie,
1194
- setWeekday: hs,
1195
- getWeekday: ms,
1196
- setWeekend: ks
1197
- };
1198
- function Nt(t, a, r) {
1199
- let i = !0;
1200
- for (; i; )
1201
- i = !1, r.forEach(function(n) {
1202
- const k = "^\\s*" + n + "\\s*$", y = new RegExp(k);
1203
- t[0].match(y) && (a[n] = !0, t.shift(1), i = !0);
1204
- });
1205
- }
1206
- c(Nt, "getTaskTags");
1207
- X.extend(Re);
1208
- var Ss = /* @__PURE__ */ c(function() {
1209
- nt.debug("Something is calling, setConf, remove the call");
1210
- }, "setConf"), Qt = {
1211
- monday: Me,
1212
- tuesday: Ce,
1213
- wednesday: Ee,
1214
- thursday: Ie,
1215
- friday: Ye,
1216
- saturday: $e,
1217
- sunday: Ae
1218
- }, Ms = /* @__PURE__ */ c((t, a) => {
1219
- let r = [...t].map(() => -1 / 0), i = [...t].sort((k, y) => k.startTime - y.startTime || k.order - y.order), n = 0;
1220
- for (const k of i)
1221
- for (let y = 0; y < r.length; y++)
1222
- if (k.startTime >= r[y]) {
1223
- r[y] = k.endTime, k.order = y + a, y > n && (n = y);
1224
- break;
1225
- }
1226
- return n;
1227
- }, "getMaxIntersections"), et, St = 1e4, Cs = /* @__PURE__ */ c(function(t, a, r, i) {
1228
- const n = lt().gantt, k = lt().securityLevel;
1229
- let y;
1230
- k === "sandbox" && (y = vt("#i" + a));
1231
- const _ = k === "sandbox" ? vt(y.nodes()[0].contentDocument.body) : vt("body"), W = k === "sandbox" ? y.nodes()[0].contentDocument : document, F = W.getElementById(a);
1232
- et = F.parentElement.offsetWidth, et === void 0 && (et = 1200), n.useWidth !== void 0 && (et = n.useWidth);
1233
- const b = i.db.getTasks();
1234
- let L = [];
1235
- for (const u of b)
1236
- L.push(u.type);
1237
- L = d(L);
1238
- const V = {};
1239
- let N = 2 * n.topPadding;
1240
- if (i.db.getDisplayMode() === "compact" || n.displayMode === "compact") {
1241
- const u = {};
1242
- for (const v of b)
1243
- u[v.section] === void 0 ? u[v.section] = [v] : u[v.section].push(v);
1244
- let p = 0;
1245
- for (const v of Object.keys(u)) {
1246
- const g = Ms(u[v], p) + 1;
1247
- p += g, N += g * (n.barHeight + n.barGap), V[v] = g;
1248
- }
1249
- } else {
1250
- N += b.length * (n.barHeight + n.barGap);
1251
- for (const u of L)
1252
- V[u] = b.filter((p) => p.type === u).length;
1253
- }
1254
- F.setAttribute("viewBox", "0 0 " + et + " " + N);
1255
- const z = _.select(`[id="${a}"]`), C = xe().domain([
1256
- be(b, function(u) {
1257
- return u.startTime;
1258
- }),
1259
- we(b, function(u) {
1260
- return u.endTime;
1261
- })
1262
- ]).rangeRound([0, et - n.leftPadding - n.rightPadding]);
1263
- function D(u, p) {
1264
- const v = u.startTime, g = p.startTime;
1265
- let f = 0;
1266
- return v > g ? f = 1 : v < g && (f = -1), f;
1267
- }
1268
- c(D, "taskCompare"), b.sort(D), S(b, et, N), ve(z, N, et, n.useMaxWidth), z.append("text").text(i.db.getDiagramTitle()).attr("x", et / 2).attr("y", n.titleTopMargin).attr("class", "titleText");
1269
- function S(u, p, v) {
1270
- const g = n.barHeight, f = g + n.barGap, o = n.topPadding, l = n.leftPadding, h = Fe().domain([0, L.length]).range(["#00B9FA", "#F95002"]).interpolate(_e);
1271
- $(
1272
- f,
1273
- o,
1274
- l,
1275
- p,
1276
- v,
1277
- u,
1278
- i.db.getExcludes(),
1279
- i.db.getIncludes()
1280
- ), G(l, o, p, v), O(u, f, o, l, g, h, p), E(f, o), T(l, o, p, v);
1281
- }
1282
- c(S, "makeGantt");
1283
- function O(u, p, v, g, f, o, l) {
1284
- u.sort((e, w) => e.vert === w.vert ? 0 : e.vert ? 1 : -1);
1285
- const m = [...new Set(u.map((e) => e.order))].map((e) => u.find((w) => w.order === e));
1286
- z.append("g").selectAll("rect").data(m).enter().append("rect").attr("x", 0).attr("y", function(e, w) {
1287
- return w = e.order, w * p + v - 2;
1288
- }).attr("width", function() {
1289
- return l - n.rightPadding / 2;
1290
- }).attr("height", p).attr("class", function(e) {
1291
- for (const [w, A] of L.entries())
1292
- if (e.type === A)
1293
- return "section section" + w % n.numberSectionStyles;
1294
- return "section section0";
1295
- }).enter();
1296
- const x = z.append("g").selectAll("rect").data(u).enter(), s = i.db.getLinks();
1297
- if (x.append("rect").attr("id", function(e) {
1298
- return e.id;
1299
- }).attr("rx", 3).attr("ry", 3).attr("x", function(e) {
1300
- return e.milestone ? C(e.startTime) + g + 0.5 * (C(e.endTime) - C(e.startTime)) - 0.5 * f : C(e.startTime) + g;
1301
- }).attr("y", function(e, w) {
1302
- return w = e.order, e.vert ? n.gridLineStartPadding : w * p + v;
1303
- }).attr("width", function(e) {
1304
- return e.milestone ? f : e.vert ? 0.08 * f : C(e.renderEndTime || e.endTime) - C(e.startTime);
1305
- }).attr("height", function(e) {
1306
- return e.vert ? b.length * (n.barHeight + n.barGap) + n.barHeight * 2 : f;
1307
- }).attr("transform-origin", function(e, w) {
1308
- return w = e.order, (C(e.startTime) + g + 0.5 * (C(e.endTime) - C(e.startTime))).toString() + "px " + (w * p + v + 0.5 * f).toString() + "px";
1309
- }).attr("class", function(e) {
1310
- const w = "task";
1311
- let A = "";
1312
- e.classes.length > 0 && (A = e.classes.join(" "));
1313
- let Y = 0;
1314
- for (const [j, M] of L.entries())
1315
- e.type === M && (Y = j % n.numberSectionStyles);
1316
- let I = "";
1317
- return e.active ? e.crit ? I += " activeCrit" : I = " active" : e.done ? e.crit ? I = " doneCrit" : I = " done" : e.crit && (I += " crit"), I.length === 0 && (I = " task"), e.milestone && (I = " milestone " + I), e.vert && (I = " vert " + I), I += Y, I += " " + A, w + I;
1318
- }), x.append("text").attr("id", function(e) {
1319
- return e.id + "-text";
1320
- }).text(function(e) {
1321
- return e.task;
1322
- }).attr("font-size", n.fontSize).attr("x", function(e) {
1323
- let w = C(e.startTime), A = C(e.renderEndTime || e.endTime);
1324
- if (e.milestone && (w += 0.5 * (C(e.endTime) - C(e.startTime)) - 0.5 * f, A = w + f), e.vert)
1325
- return C(e.startTime) + g;
1326
- const Y = this.getBBox().width;
1327
- return Y > A - w ? A + Y + 1.5 * n.leftPadding > l ? w + g - 5 : A + g + 5 : (A - w) / 2 + w + g;
1328
- }).attr("y", function(e, w) {
1329
- return e.vert ? n.gridLineStartPadding + b.length * (n.barHeight + n.barGap) + 60 : (w = e.order, w * p + n.barHeight / 2 + (n.fontSize / 2 - 2) + v);
1330
- }).attr("text-height", f).attr("class", function(e) {
1331
- const w = C(e.startTime);
1332
- let A = C(e.endTime);
1333
- e.milestone && (A = w + f);
1334
- const Y = this.getBBox().width;
1335
- let I = "";
1336
- e.classes.length > 0 && (I = e.classes.join(" "));
1337
- let j = 0;
1338
- for (const [Q, st] of L.entries())
1339
- e.type === st && (j = Q % n.numberSectionStyles);
1340
- let M = "";
1341
- return e.active && (e.crit ? M = "activeCritText" + j : M = "activeText" + j), e.done ? e.crit ? M = M + " doneCritText" + j : M = M + " doneText" + j : e.crit && (M = M + " critText" + j), e.milestone && (M += " milestoneText"), e.vert && (M += " vertText"), Y > A - w ? A + Y + 1.5 * n.leftPadding > l ? I + " taskTextOutsideLeft taskTextOutside" + j + " " + M : I + " taskTextOutsideRight taskTextOutside" + j + " " + M + " width-" + Y : I + " taskText taskText" + j + " " + M + " width-" + Y;
1342
- }), lt().securityLevel === "sandbox") {
1343
- let e;
1344
- e = vt("#i" + a);
1345
- const w = e.nodes()[0].contentDocument;
1346
- x.filter(function(A) {
1347
- return s.has(A.id);
1348
- }).each(function(A) {
1349
- var Y = w.querySelector("#" + A.id), I = w.querySelector("#" + A.id + "-text");
1350
- const j = Y.parentNode;
1351
- var M = w.createElement("a");
1352
- M.setAttribute("xlink:href", s.get(A.id)), M.setAttribute("target", "_top"), j.appendChild(M), M.appendChild(Y), M.appendChild(I);
1353
- });
1354
- }
1355
- }
1356
- c(O, "drawRects");
1357
- function $(u, p, v, g, f, o, l, h) {
1358
- if (l.length === 0 && h.length === 0)
1359
- return;
1360
- let m, x;
1361
- for (const { startTime: Y, endTime: I } of o)
1362
- (m === void 0 || Y < m) && (m = Y), (x === void 0 || I > x) && (x = I);
1363
- if (!m || !x)
1364
- return;
1365
- if (X(x).diff(X(m), "year") > 5) {
1366
- nt.warn(
1367
- "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
1368
- );
1369
- return;
1370
- }
1371
- const s = i.db.getDateFormat(), P = [];
1372
- let e = null, w = X(m);
1373
- for (; w.valueOf() <= x; )
1374
- i.db.isInvalidDate(w, s, l, h) ? e ? e.end = w : e = {
1375
- start: w,
1376
- end: w
1377
- } : e && (P.push(e), e = null), w = w.add(1, "d");
1378
- z.append("g").selectAll("rect").data(P).enter().append("rect").attr("id", (Y) => "exclude-" + Y.start.format("YYYY-MM-DD")).attr("x", (Y) => C(Y.start.startOf("day")) + v).attr("y", n.gridLineStartPadding).attr("width", (Y) => C(Y.end.endOf("day")) - C(Y.start.startOf("day"))).attr("height", f - p - n.gridLineStartPadding).attr("transform-origin", function(Y, I) {
1379
- return (C(Y.start) + v + 0.5 * (C(Y.end) - C(Y.start))).toString() + "px " + (I * u + 0.5 * f).toString() + "px";
1380
- }).attr("class", "exclude-range");
1381
- }
1382
- c($, "drawExcludeDays");
1383
- function R(u, p, v, g) {
1384
- if (v <= 0 || u > p)
1385
- return 1 / 0;
1386
- const f = p - u, o = X.duration({ [g ?? "day"]: v }).asMilliseconds();
1387
- return o <= 0 ? 1 / 0 : Math.ceil(f / o);
1388
- }
1389
- c(R, "getEstimatedTickCount");
1390
- function G(u, p, v, g) {
1391
- const f = i.db.getDateFormat(), o = i.db.getAxisFormat();
1392
- let l;
1393
- o ? l = o : f === "D" ? l = "%d" : l = n.axisFormat ?? "%Y-%m-%d";
1394
- let h = De(C).tickSize(-g + p + n.gridLineStartPadding).tickFormat(Rt(l));
1395
- const x = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
1396
- i.db.getTickInterval() || n.tickInterval
1397
- );
1398
- if (x !== null) {
1399
- const s = parseInt(x[1], 10);
1400
- if (isNaN(s) || s <= 0)
1401
- nt.warn(
1402
- `Invalid tick interval value: "${x[1]}". Skipping custom tick interval.`
1403
- );
1404
- else {
1405
- const P = x[2], e = i.db.getWeekday() || n.weekday, w = C.domain(), A = w[0], Y = w[1], I = R(A, Y, s, P);
1406
- if (I > St)
1407
- nt.warn(
1408
- `The tick interval "${s}${P}" would generate ${I} ticks, which exceeds the maximum allowed (${St}). This may indicate an invalid date or time range. Skipping custom tick interval.`
1409
- );
1410
- else
1411
- switch (P) {
1412
- case "millisecond":
1413
- h.ticks(qt.every(s));
1414
- break;
1415
- case "second":
1416
- h.ticks(Xt.every(s));
1417
- break;
1418
- case "minute":
1419
- h.ticks(jt.every(s));
1420
- break;
1421
- case "hour":
1422
- h.ticks(Gt.every(s));
1423
- break;
1424
- case "day":
1425
- h.ticks(Bt.every(s));
1426
- break;
1427
- case "week":
1428
- h.ticks(Qt[e].every(s));
1429
- break;
1430
- case "month":
1431
- h.ticks(Ht.every(s));
1432
- break;
1433
- }
1434
- }
1435
- }
1436
- if (z.append("g").attr("class", "grid").attr("transform", "translate(" + u + ", " + (g - 50) + ")").call(h).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), i.db.topAxisEnabled() || n.topAxis) {
1437
- let s = Se(C).tickSize(-g + p + n.gridLineStartPadding).tickFormat(Rt(l));
1438
- if (x !== null) {
1439
- const P = parseInt(x[1], 10);
1440
- if (isNaN(P) || P <= 0)
1441
- nt.warn(
1442
- `Invalid tick interval value: "${x[1]}". Skipping custom tick interval.`
1443
- );
1444
- else {
1445
- const e = x[2], w = i.db.getWeekday() || n.weekday, A = C.domain(), Y = A[0], I = A[1];
1446
- if (R(Y, I, P, e) <= St)
1447
- switch (e) {
1448
- case "millisecond":
1449
- s.ticks(qt.every(P));
1450
- break;
1451
- case "second":
1452
- s.ticks(Xt.every(P));
1453
- break;
1454
- case "minute":
1455
- s.ticks(jt.every(P));
1456
- break;
1457
- case "hour":
1458
- s.ticks(Gt.every(P));
1459
- break;
1460
- case "day":
1461
- s.ticks(Bt.every(P));
1462
- break;
1463
- case "week":
1464
- s.ticks(Qt[w].every(P));
1465
- break;
1466
- case "month":
1467
- s.ticks(Ht.every(P));
1468
- break;
1469
- }
1470
- }
1471
- }
1472
- z.append("g").attr("class", "grid").attr("transform", "translate(" + u + ", " + p + ")").call(s).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
1473
- }
1474
- }
1475
- c(G, "makeGrid");
1476
- function E(u, p) {
1477
- let v = 0;
1478
- const g = Object.keys(V).map((f) => [f, V[f]]);
1479
- z.append("g").selectAll("text").data(g).enter().append(function(f) {
1480
- const o = f[0].split(pe.lineBreakRegex), l = -(o.length - 1) / 2, h = W.createElementNS("http://www.w3.org/2000/svg", "text");
1481
- h.setAttribute("dy", l + "em");
1482
- for (const [m, x] of o.entries()) {
1483
- const s = W.createElementNS("http://www.w3.org/2000/svg", "tspan");
1484
- s.setAttribute("alignment-baseline", "central"), s.setAttribute("x", "10"), m > 0 && s.setAttribute("dy", "1em"), s.textContent = x, h.appendChild(s);
1485
- }
1486
- return h;
1487
- }).attr("x", 10).attr("y", function(f, o) {
1488
- if (o > 0)
1489
- for (let l = 0; l < o; l++)
1490
- return v += g[o - 1][1], f[1] * u / 2 + v * u + p;
1491
- else
1492
- return f[1] * u / 2 + p;
1493
- }).attr("font-size", n.sectionFontSize).attr("class", function(f) {
1494
- for (const [o, l] of L.entries())
1495
- if (f[0] === l)
1496
- return "sectionTitle sectionTitle" + o % n.numberSectionStyles;
1497
- return "sectionTitle";
1498
- });
1499
- }
1500
- c(E, "vertLabels");
1501
- function T(u, p, v, g) {
1502
- const f = i.db.getTodayMarker();
1503
- if (f === "off")
1504
- return;
1505
- const o = z.append("g").attr("class", "today"), l = /* @__PURE__ */ new Date(), h = o.append("line");
1506
- h.attr("x1", C(l) + u).attr("x2", C(l) + u).attr("y1", n.titleTopMargin).attr("y2", g - n.titleTopMargin).attr("class", "today"), f !== "" && h.attr("style", f.replace(/,/g, ";"));
1507
- }
1508
- c(T, "drawToday");
1509
- function d(u) {
1510
- const p = {}, v = [];
1511
- for (let g = 0, f = u.length; g < f; ++g)
1512
- Object.prototype.hasOwnProperty.call(p, u[g]) || (p[u[g]] = !0, v.push(u[g]));
1513
- return v;
1514
- }
1515
- c(d, "checkUnique");
1516
- }, "draw"), Es = {
1517
- setConf: Ss,
1518
- draw: Cs
1519
- }, Is = /* @__PURE__ */ c((t) => `
1520
- .mermaid-main-font {
1521
- font-family: ${t.fontFamily};
1522
- }
1523
-
1524
- .exclude-range {
1525
- fill: ${t.excludeBkgColor};
1526
- }
1527
-
1528
- .section {
1529
- stroke: none;
1530
- opacity: 0.2;
1531
- }
1532
-
1533
- .section0 {
1534
- fill: ${t.sectionBkgColor};
1535
- }
1536
-
1537
- .section2 {
1538
- fill: ${t.sectionBkgColor2};
1539
- }
1540
-
1541
- .section1,
1542
- .section3 {
1543
- fill: ${t.altSectionBkgColor};
1544
- opacity: 0.2;
1545
- }
1546
-
1547
- .sectionTitle0 {
1548
- fill: ${t.titleColor};
1549
- }
1550
-
1551
- .sectionTitle1 {
1552
- fill: ${t.titleColor};
1553
- }
1554
-
1555
- .sectionTitle2 {
1556
- fill: ${t.titleColor};
1557
- }
1558
-
1559
- .sectionTitle3 {
1560
- fill: ${t.titleColor};
1561
- }
1562
-
1563
- .sectionTitle {
1564
- text-anchor: start;
1565
- font-family: ${t.fontFamily};
1566
- }
1567
-
1568
-
1569
- /* Grid and axis */
1570
-
1571
- .grid .tick {
1572
- stroke: ${t.gridColor};
1573
- opacity: 0.8;
1574
- shape-rendering: crispEdges;
1575
- }
1576
-
1577
- .grid .tick text {
1578
- font-family: ${t.fontFamily};
1579
- fill: ${t.textColor};
1580
- }
1581
-
1582
- .grid path {
1583
- stroke-width: 0;
1584
- }
1585
-
1586
-
1587
- /* Today line */
1588
-
1589
- .today {
1590
- fill: none;
1591
- stroke: ${t.todayLineColor};
1592
- stroke-width: 2px;
1593
- }
1594
-
1595
-
1596
- /* Task styling */
1597
-
1598
- /* Default task */
1599
-
1600
- .task {
1601
- stroke-width: 2;
1602
- }
1603
-
1604
- .taskText {
1605
- text-anchor: middle;
1606
- font-family: ${t.fontFamily};
1607
- }
1608
-
1609
- .taskTextOutsideRight {
1610
- fill: ${t.taskTextDarkColor};
1611
- text-anchor: start;
1612
- font-family: ${t.fontFamily};
1613
- }
1614
-
1615
- .taskTextOutsideLeft {
1616
- fill: ${t.taskTextDarkColor};
1617
- text-anchor: end;
1618
- }
1619
-
1620
-
1621
- /* Special case clickable */
1622
-
1623
- .task.clickable {
1624
- cursor: pointer;
1625
- }
1626
-
1627
- .taskText.clickable {
1628
- cursor: pointer;
1629
- fill: ${t.taskTextClickableColor} !important;
1630
- font-weight: bold;
1631
- }
1632
-
1633
- .taskTextOutsideLeft.clickable {
1634
- cursor: pointer;
1635
- fill: ${t.taskTextClickableColor} !important;
1636
- font-weight: bold;
1637
- }
1638
-
1639
- .taskTextOutsideRight.clickable {
1640
- cursor: pointer;
1641
- fill: ${t.taskTextClickableColor} !important;
1642
- font-weight: bold;
1643
- }
1644
-
1645
-
1646
- /* Specific task settings for the sections*/
1647
-
1648
- .taskText0,
1649
- .taskText1,
1650
- .taskText2,
1651
- .taskText3 {
1652
- fill: ${t.taskTextColor};
1653
- }
1654
-
1655
- .task0,
1656
- .task1,
1657
- .task2,
1658
- .task3 {
1659
- fill: ${t.taskBkgColor};
1660
- stroke: ${t.taskBorderColor};
1661
- }
1662
-
1663
- .taskTextOutside0,
1664
- .taskTextOutside2
1665
- {
1666
- fill: ${t.taskTextOutsideColor};
1667
- }
1668
-
1669
- .taskTextOutside1,
1670
- .taskTextOutside3 {
1671
- fill: ${t.taskTextOutsideColor};
1672
- }
1673
-
1674
-
1675
- /* Active task */
1676
-
1677
- .active0,
1678
- .active1,
1679
- .active2,
1680
- .active3 {
1681
- fill: ${t.activeTaskBkgColor};
1682
- stroke: ${t.activeTaskBorderColor};
1683
- }
1684
-
1685
- .activeText0,
1686
- .activeText1,
1687
- .activeText2,
1688
- .activeText3 {
1689
- fill: ${t.taskTextDarkColor} !important;
1690
- }
1691
-
1692
-
1693
- /* Completed task */
1694
-
1695
- .done0,
1696
- .done1,
1697
- .done2,
1698
- .done3 {
1699
- stroke: ${t.doneTaskBorderColor};
1700
- fill: ${t.doneTaskBkgColor};
1701
- stroke-width: 2;
1702
- }
1703
-
1704
- .doneText0,
1705
- .doneText1,
1706
- .doneText2,
1707
- .doneText3 {
1708
- fill: ${t.taskTextDarkColor} !important;
1709
- }
1710
-
1711
-
1712
- /* Tasks on the critical line */
1713
-
1714
- .crit0,
1715
- .crit1,
1716
- .crit2,
1717
- .crit3 {
1718
- stroke: ${t.critBorderColor};
1719
- fill: ${t.critBkgColor};
1720
- stroke-width: 2;
1721
- }
1722
-
1723
- .activeCrit0,
1724
- .activeCrit1,
1725
- .activeCrit2,
1726
- .activeCrit3 {
1727
- stroke: ${t.critBorderColor};
1728
- fill: ${t.activeTaskBkgColor};
1729
- stroke-width: 2;
1730
- }
1731
-
1732
- .doneCrit0,
1733
- .doneCrit1,
1734
- .doneCrit2,
1735
- .doneCrit3 {
1736
- stroke: ${t.critBorderColor};
1737
- fill: ${t.doneTaskBkgColor};
1738
- stroke-width: 2;
1739
- cursor: pointer;
1740
- shape-rendering: crispEdges;
1741
- }
1742
-
1743
- .milestone {
1744
- transform: rotate(45deg) scale(0.8,0.8);
1745
- }
1746
-
1747
- .milestoneText {
1748
- font-style: italic;
1749
- }
1750
- .doneCritText0,
1751
- .doneCritText1,
1752
- .doneCritText2,
1753
- .doneCritText3 {
1754
- fill: ${t.taskTextDarkColor} !important;
1755
- }
1756
-
1757
- .vert {
1758
- stroke: ${t.vertLineColor};
1759
- }
1760
-
1761
- .vertText {
1762
- font-size: 15px;
1763
- text-anchor: middle;
1764
- fill: ${t.vertLineColor} !important;
1765
- }
1766
-
1767
- .activeCritText0,
1768
- .activeCritText1,
1769
- .activeCritText2,
1770
- .activeCritText3 {
1771
- fill: ${t.taskTextDarkColor} !important;
1772
- }
1773
-
1774
- .titleText {
1775
- text-anchor: middle;
1776
- font-size: 18px;
1777
- fill: ${t.titleColor || t.textColor};
1778
- font-family: ${t.fontFamily};
1779
- }
1780
- `, "getStyles"), Ys = Is, Ws = {
1781
- parser: He,
1782
- db: Ds,
1783
- renderer: Es,
1784
- styles: Ys
1785
- };
1786
- export {
1787
- Ws as diagram
1788
- };