@altimateai/ui-components 0.0.78-beta.1 → 0.0.78

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 (404) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +23919 -67654
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2231 -2829
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +5100 -6285
  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 +1309 -1302
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +150 -150
  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 +8 -11
  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/timeline-definition-IT6M3QCI.js +63 -63
  63. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  64. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  65. package/package.json +1 -1
  66. package/dist/abap.js +0 -6
  67. package/dist/actionscript-3.js +0 -6
  68. package/dist/ada.js +0 -6
  69. package/dist/andromeeda.js +0 -4
  70. package/dist/angular-html.js +0 -32
  71. package/dist/angular-ts.js +0 -21
  72. package/dist/apache.js +0 -6
  73. package/dist/apex.js +0 -6
  74. package/dist/apl.js +0 -16
  75. package/dist/applescript.js +0 -6
  76. package/dist/ara.js +0 -6
  77. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  78. package/dist/asciidoc.js +0 -6
  79. package/dist/asm.js +0 -6
  80. package/dist/astro.js +0 -18
  81. package/dist/aurora-x.js +0 -4
  82. package/dist/awk.js +0 -6
  83. package/dist/ayu-dark.js +0 -4
  84. package/dist/ballerina.js +0 -6
  85. package/dist/band.js +0 -46
  86. package/dist/bat.js +0 -6
  87. package/dist/beancount.js +0 -6
  88. package/dist/berry.js +0 -6
  89. package/dist/bibtex.js +0 -6
  90. package/dist/bicep.js +0 -6
  91. package/dist/blade.js +0 -20
  92. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  93. package/dist/bsl.js +0 -8
  94. package/dist/c.js +0 -6
  95. package/dist/c3.js +0 -6
  96. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  97. package/dist/cadence.js +0 -6
  98. package/dist/cairo.js +0 -8
  99. package/dist/catppuccin-frappe.js +0 -4
  100. package/dist/catppuccin-latte.js +0 -4
  101. package/dist/catppuccin-macchiato.js +0 -4
  102. package/dist/catppuccin-mocha.js +0 -4
  103. package/dist/chunk-4BX2VUAB2.js +0 -9
  104. package/dist/chunk-55IACEB62.js +0 -9
  105. package/dist/chunk-B4BG7PRW2.js +0 -1377
  106. package/dist/chunk-DI55MBZ52.js +0 -1382
  107. package/dist/chunk-FMBD7UC42.js +0 -19
  108. package/dist/chunk-QN33PNHL2.js +0 -20
  109. package/dist/chunk-QZHKN3VN2.js +0 -15
  110. package/dist/chunk-TZMSLE5B2.js +0 -64
  111. package/dist/clarity.js +0 -6
  112. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  113. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  114. package/dist/clojure.js +0 -6
  115. package/dist/cmake.js +0 -6
  116. package/dist/cobol.js +0 -10
  117. package/dist/code-block-37QAKDTI.js +0 -27
  118. package/dist/codeowners.js +0 -6
  119. package/dist/codeql.js +0 -6
  120. package/dist/coffee.js +0 -8
  121. package/dist/common-lisp.js +0 -6
  122. package/dist/coq.js +0 -6
  123. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  124. package/dist/cpp.js +0 -18
  125. package/dist/crystal.js +0 -18
  126. package/dist/csharp.js +0 -6
  127. package/dist/css.js +0 -6
  128. package/dist/csv.js +0 -6
  129. package/dist/cue.js +0 -6
  130. package/dist/cypher.js +0 -6
  131. package/dist/cytoscape-cose-bilkent.js +0 -2380
  132. package/dist/cytoscape-fcose.js +0 -3840
  133. package/dist/d.js +0 -6
  134. package/dist/dagre-6UL2VRFP2.js +0 -447
  135. package/dist/dark-plus.js +0 -4
  136. package/dist/dart.js +0 -6
  137. package/dist/dax.js +0 -6
  138. package/dist/desktop.js +0 -6
  139. package/dist/diagram-PSM6KHXK2.js +0 -319
  140. package/dist/diagram-QEK2KX5R2.js +0 -221
  141. package/dist/diagram-S2PKOQOG2.js +0 -143
  142. package/dist/diff.js +0 -6
  143. package/dist/docker.js +0 -6
  144. package/dist/dotenv.js +0 -6
  145. package/dist/dracula-soft.js +0 -4
  146. package/dist/dracula.js +0 -4
  147. package/dist/dream-maker.js +0 -6
  148. package/dist/edge.js +0 -12
  149. package/dist/elixir.js +0 -8
  150. package/dist/elm.js +0 -8
  151. package/dist/emacs-lisp.js +0 -6
  152. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  153. package/dist/erb.js +0 -10
  154. package/dist/erlang.js +0 -8
  155. package/dist/everforest-dark.js +0 -4
  156. package/dist/everforest-light.js +0 -4
  157. package/dist/fennel.js +0 -6
  158. package/dist/fish.js +0 -6
  159. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  160. package/dist/fluent.js +0 -6
  161. package/dist/fortran-fixed-form.js +0 -8
  162. package/dist/fortran-free-form.js +0 -6
  163. package/dist/fsharp.js +0 -8
  164. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  165. package/dist/gdresource.js +0 -10
  166. package/dist/gdscript.js +0 -6
  167. package/dist/gdshader.js +0 -6
  168. package/dist/genie.js +0 -6
  169. package/dist/gherkin.js +0 -6
  170. package/dist/git-commit.js +0 -8
  171. package/dist/git-rebase.js +0 -8
  172. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  173. package/dist/github-dark-default.js +0 -4
  174. package/dist/github-dark-dimmed.js +0 -4
  175. package/dist/github-dark-high-contrast.js +0 -4
  176. package/dist/github-dark.js +0 -4
  177. package/dist/github-light-default.js +0 -4
  178. package/dist/github-light-high-contrast.js +0 -4
  179. package/dist/github-light.js +0 -4
  180. package/dist/gleam.js +0 -6
  181. package/dist/glimmer-js.js +0 -14
  182. package/dist/glimmer-ts.js +0 -14
  183. package/dist/glsl.js +0 -8
  184. package/dist/gn.js +0 -6
  185. package/dist/gnuplot.js +0 -6
  186. package/dist/go.js +0 -6
  187. package/dist/graph2.js +0 -246
  188. package/dist/graphql.js +0 -14
  189. package/dist/groovy.js +0 -6
  190. package/dist/gruvbox-dark-hard.js +0 -4
  191. package/dist/gruvbox-dark-medium.js +0 -4
  192. package/dist/gruvbox-dark-soft.js +0 -4
  193. package/dist/gruvbox-light-hard.js +0 -4
  194. package/dist/gruvbox-light-medium.js +0 -4
  195. package/dist/gruvbox-light-soft.js +0 -4
  196. package/dist/hack.js +0 -10
  197. package/dist/haml.js +0 -10
  198. package/dist/handlebars.js +0 -14
  199. package/dist/haskell.js +0 -6
  200. package/dist/haxe.js +0 -6
  201. package/dist/hcl.js +0 -6
  202. package/dist/hjson.js +0 -6
  203. package/dist/hlsl.js +0 -6
  204. package/dist/houston.js +0 -4
  205. package/dist/html-derivative.js +0 -8
  206. package/dist/html.js +0 -10
  207. package/dist/http.js +0 -14
  208. package/dist/hurl.js +0 -12
  209. package/dist/hxml.js +0 -8
  210. package/dist/hy.js +0 -6
  211. package/dist/imba.js +0 -6
  212. package/dist/index3.js +0 -689
  213. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  214. package/dist/ini.js +0 -6
  215. package/dist/java.js +0 -6
  216. package/dist/javascript.js +0 -6
  217. package/dist/jinja.js +0 -11
  218. package/dist/jison.js +0 -8
  219. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  220. package/dist/json.js +0 -6
  221. package/dist/json5.js +0 -6
  222. package/dist/jsonc.js +0 -6
  223. package/dist/jsonl.js +0 -6
  224. package/dist/jsonnet.js +0 -6
  225. package/dist/jssm.js +0 -6
  226. package/dist/jsx.js +0 -6
  227. package/dist/julia.js +0 -16
  228. package/dist/kanagawa-dragon.js +0 -4
  229. package/dist/kanagawa-lotus.js +0 -4
  230. package/dist/kanagawa-wave.js +0 -4
  231. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  232. package/dist/katex2.js +0 -11691
  233. package/dist/kdl.js +0 -6
  234. package/dist/kotlin.js +0 -6
  235. package/dist/kusto.js +0 -6
  236. package/dist/laserwave.js +0 -4
  237. package/dist/latex.js +0 -8
  238. package/dist/layout2.js +0 -1224
  239. package/dist/lean.js +0 -6
  240. package/dist/less.js +0 -6
  241. package/dist/light-plus.js +0 -4
  242. package/dist/liquid.js +0 -14
  243. package/dist/llvm.js +0 -6
  244. package/dist/log.js +0 -6
  245. package/dist/logo.js +0 -6
  246. package/dist/lua.js +0 -8
  247. package/dist/luau.js +0 -6
  248. package/dist/make.js +0 -6
  249. package/dist/markdown.js +0 -6
  250. package/dist/marko.js +0 -14
  251. package/dist/material-theme-darker.js +0 -4
  252. package/dist/material-theme-lighter.js +0 -4
  253. package/dist/material-theme-ocean.js +0 -4
  254. package/dist/material-theme-palenight.js +0 -4
  255. package/dist/material-theme.js +0 -4
  256. package/dist/matlab.js +0 -6
  257. package/dist/mdc.js +0 -12
  258. package/dist/mdx.js +0 -6
  259. package/dist/mermaid-4DMBBIKO.js +0 -4
  260. package/dist/mermaid.js +0 -6
  261. package/dist/min-dark.js +0 -4
  262. package/dist/min-light.js +0 -4
  263. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  264. package/dist/mipsasm.js +0 -6
  265. package/dist/mojo.js +0 -6
  266. package/dist/monokai.js +0 -4
  267. package/dist/moonbit.js +0 -6
  268. package/dist/move.js +0 -6
  269. package/dist/narrat.js +0 -6
  270. package/dist/nextflow.js +0 -6
  271. package/dist/nginx.js +0 -8
  272. package/dist/night-owl.js +0 -4
  273. package/dist/nim.js +0 -20
  274. package/dist/nix.js +0 -9
  275. package/dist/nord.js +0 -4
  276. package/dist/nushell.js +0 -6
  277. package/dist/objective-c.js +0 -6
  278. package/dist/objective-cpp.js +0 -6
  279. package/dist/ocaml.js +0 -6
  280. package/dist/one-dark-pro.js +0 -4
  281. package/dist/one-light.js +0 -4
  282. package/dist/openscad.js +0 -6
  283. package/dist/pascal.js +0 -6
  284. package/dist/perl.js +0 -16
  285. package/dist/php.js +0 -18
  286. package/dist/pie.js +0 -45
  287. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  288. package/dist/pkl.js +0 -6
  289. package/dist/plastic.js +0 -4
  290. package/dist/plsql.js +0 -6
  291. package/dist/po.js +0 -6
  292. package/dist/poimandres.js +0 -4
  293. package/dist/polar.js +0 -6
  294. package/dist/postcss.js +0 -6
  295. package/dist/powerquery.js +0 -6
  296. package/dist/powershell.js +0 -6
  297. package/dist/prisma.js +0 -6
  298. package/dist/prolog.js +0 -6
  299. package/dist/proto.js +0 -6
  300. package/dist/pug.js +0 -12
  301. package/dist/puppet.js +0 -6
  302. package/dist/purescript.js +0 -6
  303. package/dist/python.js +0 -6
  304. package/dist/qml.js +0 -8
  305. package/dist/qmldir.js +0 -6
  306. package/dist/qss.js +0 -6
  307. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  308. package/dist/r.js +0 -6
  309. package/dist/racket.js +0 -6
  310. package/dist/raku.js +0 -6
  311. package/dist/razor.js +0 -10
  312. package/dist/red.js +0 -4
  313. package/dist/reg.js +0 -6
  314. package/dist/regexp.js +0 -6
  315. package/dist/rel.js +0 -6
  316. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  317. package/dist/riscv.js +0 -6
  318. package/dist/rose-pine-dawn.js +0 -4
  319. package/dist/rose-pine-moon.js +0 -4
  320. package/dist/rose-pine.js +0 -4
  321. package/dist/rosmsg.js +0 -6
  322. package/dist/rst.js +0 -22
  323. package/dist/ruby.js +0 -30
  324. package/dist/rust.js +0 -6
  325. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  326. package/dist/sankeyLinkHorizontal.js +0 -403
  327. package/dist/sas.js +0 -8
  328. package/dist/sass.js +0 -6
  329. package/dist/scala.js +0 -6
  330. package/dist/scheme.js +0 -6
  331. package/dist/scss.js +0 -8
  332. package/dist/sdbl.js +0 -6
  333. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  334. package/dist/shaderlab.js +0 -8
  335. package/dist/shellscript.js +0 -6
  336. package/dist/shellsession.js +0 -8
  337. package/dist/slack-dark.js +0 -4
  338. package/dist/slack-ochin.js +0 -4
  339. package/dist/smalltalk.js +0 -6
  340. package/dist/snazzy-light.js +0 -4
  341. package/dist/solarized-dark.js +0 -4
  342. package/dist/solarized-light.js +0 -4
  343. package/dist/solidity.js +0 -6
  344. package/dist/soy.js +0 -8
  345. package/dist/sparql.js +0 -8
  346. package/dist/splunk.js +0 -6
  347. package/dist/sql.js +0 -6
  348. package/dist/ssh-config.js +0 -6
  349. package/dist/stata.js +0 -8
  350. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  351. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  352. package/dist/stylus.js +0 -6
  353. package/dist/svelte.js +0 -14
  354. package/dist/swift.js +0 -6
  355. package/dist/synthwave-84.js +0 -4
  356. package/dist/system-verilog.js +0 -6
  357. package/dist/systemd.js +0 -6
  358. package/dist/talonscript.js +0 -6
  359. package/dist/tasl.js +0 -6
  360. package/dist/tcl.js +0 -6
  361. package/dist/templ.js +0 -12
  362. package/dist/terraform.js +0 -6
  363. package/dist/tex.js +0 -8
  364. package/dist/time.js +0 -900
  365. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  366. package/dist/tokyo-night.js +0 -4
  367. package/dist/toml.js +0 -6
  368. package/dist/ts-tags.js +0 -41
  369. package/dist/tsv.js +0 -6
  370. package/dist/tsx.js +0 -6
  371. package/dist/turtle.js +0 -6
  372. package/dist/twig.js +0 -18
  373. package/dist/typescript.js +0 -6
  374. package/dist/typespec.js +0 -6
  375. package/dist/typst.js +0 -6
  376. package/dist/union.js +0 -8
  377. package/dist/v.js +0 -6
  378. package/dist/vala.js +0 -6
  379. package/dist/vb.js +0 -6
  380. package/dist/verilog.js +0 -6
  381. package/dist/vesper.js +0 -4
  382. package/dist/vhdl.js +0 -6
  383. package/dist/viml.js +0 -6
  384. package/dist/vitesse-black.js +0 -4
  385. package/dist/vitesse-dark.js +0 -4
  386. package/dist/vitesse-light.js +0 -4
  387. package/dist/vue-html.js +0 -8
  388. package/dist/vue-vine.js +0 -18
  389. package/dist/vue.js +0 -31
  390. package/dist/vyper.js +0 -6
  391. package/dist/wasm.js +0 -7
  392. package/dist/wasm2.js +0 -6
  393. package/dist/wenyan.js +0 -6
  394. package/dist/wgsl.js +0 -6
  395. package/dist/wikitext.js +0 -6
  396. package/dist/wit.js +0 -6
  397. package/dist/wolfram.js +0 -6
  398. package/dist/xml.js +0 -8
  399. package/dist/xsl.js +0 -8
  400. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  401. package/dist/yaml.js +0 -6
  402. package/dist/zenscript.js +0 -6
  403. package/dist/zig.js +0 -6
  404. package/dist/zipObject.js +0 -128
@@ -1,412 +1,1287 @@
1
- import { _ as l, cP as X, d as ct, s as ce, g as le, m as ue, n as de, c as fe, b as he, r as ke, k as me, l as Tt, j as ye, e as ge, u as pe } from "./CoachForm.js";
2
- import { c as Et, g as Mt, s as gt } from "./redux-toolkit.modern.js";
3
- import { t as ve, m as Te, a as xe, i as be, b as we, c as Nt, d as Bt, e as Gt, f as Ht, g as jt, s as Xt, h as qt, j as _e, k as De, l as Se, n as Ce, o as Ee, p as Me, q as Ie, r as Ae } from "./time.js";
4
- import { l as Le } from "./linear.js";
5
- var $t = { exports: {} };
6
- (function(t, i) {
7
- (function(s, n) {
8
- t.exports = n();
9
- })(Et, function() {
10
- var s = "day";
11
- return function(n, a, h) {
12
- var f = function(E) {
13
- return E.add(4 - E.isoWeekday(), s);
14
- }, _ = a.prototype;
15
- _.isoWeekYear = function() {
16
- return f(this).year();
17
- }, _.isoWeek = function(E) {
18
- if (!this.$utils().u(E)) return this.add(7 * (E - this.isoWeek()), s);
19
- var p, M, V, P, B = f(this), C = (p = this.isoWeekYear(), M = this.$u, V = (M ? h.utc : h)().year(p).startOf("year"), P = 4 - V.isoWeekday(), V.isoWeekday() > 4 && (P += 7), V.add(P, s));
20
- return B.diff(C, "week") + 1;
21
- }, _.isoWeekday = function(E) {
22
- return this.$utils().u(E) ? this.day() || 7 : this.day(this.day() % 7 ? E : E - 7);
1
+ import { a1 as h, bM as at, a7 as _t, a3 as Un, a4 as En, ag as Ln, ah as An, a6 as In, a5 as Wn, an as On, af as Hn, ad as Qt, ae as Nn, a9 as Vn, am as zn } from "./CoachForm.js";
2
+ import { f as $e, h as Je, R as Ke, C as tn, r as Pn, n as re, j as Rn, c as Te, g as be, s as Zt } from "./redux-toolkit.modern.js";
3
+ import { b as Bn, t as Ie, c as Zn, a as Xn, l as qn } from "./linear.js";
4
+ import { i as Gn } from "./init.js";
5
+ function jn(t, e) {
6
+ let n;
7
+ if (e === void 0)
8
+ for (const r of t)
9
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
10
+ else {
11
+ let r = -1;
12
+ for (let a of t)
13
+ (a = e(a, ++r, t)) != null && (n < a || n === void 0 && a >= a) && (n = a);
14
+ }
15
+ return n;
16
+ }
17
+ function Qn(t, e) {
18
+ let n;
19
+ if (e === void 0)
20
+ for (const r of t)
21
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
22
+ else {
23
+ let r = -1;
24
+ for (let a of t)
25
+ (a = e(a, ++r, t)) != null && (n > a || n === void 0 && a >= a) && (n = a);
26
+ }
27
+ return n;
28
+ }
29
+ function $n(t) {
30
+ return t;
31
+ }
32
+ var qt = 1, ae = 2, me = 3, Xt = 4, We = 1e-6;
33
+ function Jn(t) {
34
+ return "translate(" + t + ",0)";
35
+ }
36
+ function Kn(t) {
37
+ return "translate(0," + t + ")";
38
+ }
39
+ function tr(t) {
40
+ return (e) => +t(e);
41
+ }
42
+ function er(t, e) {
43
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
44
+ }
45
+ function nr() {
46
+ return !this.__axis;
47
+ }
48
+ function en(t, e) {
49
+ var n = [], r = null, a = null, i = 6, s = 6, y = 3, _ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, p = t === qt || t === Xt ? -1 : 1, g = t === Xt || t === ae ? "x" : "y", E = t === qt || t === me ? Jn : Kn;
50
+ function C(b) {
51
+ var q = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), O = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : $n), M = Math.max(i, 0) + y, I = e.range(), V = +I[0] + _, W = +I[I.length - 1] + _, Z = (e.bandwidth ? er : tr)(e.copy(), _), Q = b.selection ? b.selection() : b, D = Q.selectAll(".domain").data([null]), H = Q.selectAll(".tick").data(q, e).order(), x = H.exit(), Y = H.enter().append("g").attr("class", "tick"), F = H.select("line"), S = H.select("text");
52
+ D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), H = H.merge(Y), F = F.merge(Y.append("line").attr("stroke", "currentColor").attr(g + "2", p * i)), S = S.merge(Y.append("text").attr("fill", "currentColor").attr(g, p * M).attr("dy", t === qt ? "0em" : t === me ? "0.71em" : "0.32em")), b !== Q && (D = D.transition(b), H = H.transition(b), F = F.transition(b), S = S.transition(b), x = x.transition(b).attr("opacity", We).attr("transform", function(v) {
53
+ return isFinite(v = Z(v)) ? E(v + _) : this.getAttribute("transform");
54
+ }), Y.attr("opacity", We).attr("transform", function(v) {
55
+ var U = this.parentNode.__axis;
56
+ return E((U && isFinite(U = U(v)) ? U : Z(v)) + _);
57
+ })), x.remove(), D.attr("d", t === Xt || t === ae ? s ? "M" + p * s + "," + V + "H" + _ + "V" + W + "H" + p * s : "M" + _ + "," + V + "V" + W : s ? "M" + V + "," + p * s + "V" + _ + "H" + W + "V" + p * s : "M" + V + "," + _ + "H" + W), H.attr("opacity", 1).attr("transform", function(v) {
58
+ return E(Z(v) + _);
59
+ }), F.attr(g + "2", p * i), S.attr(g, p * M).text(O), Q.filter(nr).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === ae ? "start" : t === Xt ? "end" : "middle"), Q.each(function() {
60
+ this.__axis = Z;
61
+ });
62
+ }
63
+ return C.scale = function(b) {
64
+ return arguments.length ? (e = b, C) : e;
65
+ }, C.ticks = function() {
66
+ return n = Array.from(arguments), C;
67
+ }, C.tickArguments = function(b) {
68
+ return arguments.length ? (n = b == null ? [] : Array.from(b), C) : n.slice();
69
+ }, C.tickValues = function(b) {
70
+ return arguments.length ? (r = b == null ? null : Array.from(b), C) : r && r.slice();
71
+ }, C.tickFormat = function(b) {
72
+ return arguments.length ? (a = b, C) : a;
73
+ }, C.tickSize = function(b) {
74
+ return arguments.length ? (i = s = +b, C) : i;
75
+ }, C.tickSizeInner = function(b) {
76
+ return arguments.length ? (i = +b, C) : i;
77
+ }, C.tickSizeOuter = function(b) {
78
+ return arguments.length ? (s = +b, C) : s;
79
+ }, C.tickPadding = function(b) {
80
+ return arguments.length ? (y = +b, C) : y;
81
+ }, C.offset = function(b) {
82
+ return arguments.length ? (_ = +b, C) : _;
83
+ }, C;
84
+ }
85
+ function rr(t) {
86
+ return en(qt, t);
87
+ }
88
+ function ar(t) {
89
+ return en(me, t);
90
+ }
91
+ const ir = Math.PI / 180, sr = 180 / Math.PI, $t = 18, nn = 0.96422, rn = 1, an = 0.82521, sn = 4 / 29, St = 6 / 29, on = 3 * St * St, or = St * St * St;
92
+ function cn(t) {
93
+ if (t instanceof ft) return new ft(t.l, t.a, t.b, t.opacity);
94
+ if (t instanceof dt) return ln(t);
95
+ t instanceof Ke || (t = Pn(t));
96
+ var e = ce(t.r), n = ce(t.g), r = ce(t.b), a = ie((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / rn), i, s;
97
+ return e === n && n === r ? i = s = a : (i = ie((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / nn), s = ie((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / an)), new ft(116 * a - 16, 500 * (i - a), 200 * (a - s), t.opacity);
98
+ }
99
+ function cr(t, e, n, r) {
100
+ return arguments.length === 1 ? cn(t) : new ft(t, e, n, r ?? 1);
101
+ }
102
+ function ft(t, e, n, r) {
103
+ this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
104
+ }
105
+ $e(ft, cr, Je(tn, {
106
+ brighter(t) {
107
+ return new ft(this.l + $t * (t ?? 1), this.a, this.b, this.opacity);
108
+ },
109
+ darker(t) {
110
+ return new ft(this.l - $t * (t ?? 1), this.a, this.b, this.opacity);
111
+ },
112
+ rgb() {
113
+ var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
114
+ return e = nn * se(e), t = rn * se(t), n = an * se(n), new Ke(
115
+ oe(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
116
+ oe(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
117
+ oe(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
118
+ this.opacity
119
+ );
120
+ }
121
+ }));
122
+ function ie(t) {
123
+ return t > or ? Math.pow(t, 1 / 3) : t / on + sn;
124
+ }
125
+ function se(t) {
126
+ return t > St ? t * t * t : on * (t - sn);
127
+ }
128
+ function oe(t) {
129
+ return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
130
+ }
131
+ function ce(t) {
132
+ return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
133
+ }
134
+ function lr(t) {
135
+ if (t instanceof dt) return new dt(t.h, t.c, t.l, t.opacity);
136
+ if (t instanceof ft || (t = cn(t)), t.a === 0 && t.b === 0) return new dt(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
137
+ var e = Math.atan2(t.b, t.a) * sr;
138
+ return new dt(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
139
+ }
140
+ function ge(t, e, n, r) {
141
+ return arguments.length === 1 ? lr(t) : new dt(t, e, n, r ?? 1);
142
+ }
143
+ function dt(t, e, n, r) {
144
+ this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
145
+ }
146
+ function ln(t) {
147
+ if (isNaN(t.h)) return new ft(t.l, 0, 0, t.opacity);
148
+ var e = t.h * ir;
149
+ return new ft(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
150
+ }
151
+ $e(dt, ge, Je(tn, {
152
+ brighter(t) {
153
+ return new dt(this.h, this.c, this.l + $t * (t ?? 1), this.opacity);
154
+ },
155
+ darker(t) {
156
+ return new dt(this.h, this.c, this.l - $t * (t ?? 1), this.opacity);
157
+ },
158
+ rgb() {
159
+ return ln(this).rgb();
160
+ }
161
+ }));
162
+ function ur(t) {
163
+ return function(e, n) {
164
+ var r = t((e = ge(e)).h, (n = ge(n)).h), a = re(e.c, n.c), i = re(e.l, n.l), s = re(e.opacity, n.opacity);
165
+ return function(y) {
166
+ return e.h = r(y), e.c = a(y), e.l = i(y), e.opacity = s(y), e + "";
167
+ };
168
+ };
169
+ }
170
+ const fr = ur(Rn);
171
+ function hr(t, e) {
172
+ t = t.slice();
173
+ var n = 0, r = t.length - 1, a = t[n], i = t[r], s;
174
+ return i < a && (s = n, n = r, r = s, s = a, a = i, i = s), t[n] = e.floor(a), t[r] = e.ceil(i), t;
175
+ }
176
+ const le = /* @__PURE__ */ new Date(), ue = /* @__PURE__ */ new Date();
177
+ function et(t, e, n, r) {
178
+ function a(i) {
179
+ return t(i = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+i)), i;
180
+ }
181
+ return a.floor = (i) => (t(i = /* @__PURE__ */ new Date(+i)), i), a.ceil = (i) => (t(i = new Date(i - 1)), e(i, 1), t(i), i), a.round = (i) => {
182
+ const s = a(i), y = a.ceil(i);
183
+ return i - s < y - i ? s : y;
184
+ }, a.offset = (i, s) => (e(i = /* @__PURE__ */ new Date(+i), s == null ? 1 : Math.floor(s)), i), a.range = (i, s, y) => {
185
+ const _ = [];
186
+ if (i = a.ceil(i), y = y == null ? 1 : Math.floor(y), !(i < s) || !(y > 0)) return _;
187
+ let p;
188
+ do
189
+ _.push(p = /* @__PURE__ */ new Date(+i)), e(i, y), t(i);
190
+ while (p < i && i < s);
191
+ return _;
192
+ }, a.filter = (i) => et((s) => {
193
+ if (s >= s) for (; t(s), !i(s); ) s.setTime(s - 1);
194
+ }, (s, y) => {
195
+ if (s >= s)
196
+ if (y < 0) for (; ++y <= 0; )
197
+ for (; e(s, -1), !i(s); )
198
+ ;
199
+ else for (; --y >= 0; )
200
+ for (; e(s, 1), !i(s); )
201
+ ;
202
+ }), n && (a.count = (i, s) => (le.setTime(+i), ue.setTime(+s), t(le), t(ue), Math.floor(n(le, ue))), a.every = (i) => (i = Math.floor(i), !isFinite(i) || !(i > 0) ? null : i > 1 ? a.filter(r ? (s) => r(s) % i === 0 : (s) => a.count(0, s) % i === 0) : a)), a;
203
+ }
204
+ const Yt = et(() => {
205
+ }, (t, e) => {
206
+ t.setTime(+t + e);
207
+ }, (t, e) => e - t);
208
+ Yt.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et((e) => {
209
+ e.setTime(Math.floor(e / t) * t);
210
+ }, (e, n) => {
211
+ e.setTime(+e + n * t);
212
+ }, (e, n) => (n - e) / t) : Yt);
213
+ Yt.range;
214
+ const mt = 1e3, ct = mt * 60, gt = ct * 60, yt = gt * 24, xe = yt * 7, Oe = yt * 30, fe = yt * 365, vt = et((t) => {
215
+ t.setTime(t - t.getMilliseconds());
216
+ }, (t, e) => {
217
+ t.setTime(+t + e * mt);
218
+ }, (t, e) => (e - t) / mt, (t) => t.getUTCSeconds());
219
+ vt.range;
220
+ const Wt = et((t) => {
221
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt);
222
+ }, (t, e) => {
223
+ t.setTime(+t + e * ct);
224
+ }, (t, e) => (e - t) / ct, (t) => t.getMinutes());
225
+ Wt.range;
226
+ const dr = et((t) => {
227
+ t.setUTCSeconds(0, 0);
228
+ }, (t, e) => {
229
+ t.setTime(+t + e * ct);
230
+ }, (t, e) => (e - t) / ct, (t) => t.getUTCMinutes());
231
+ dr.range;
232
+ const Ot = et((t) => {
233
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt - t.getMinutes() * ct);
234
+ }, (t, e) => {
235
+ t.setTime(+t + e * gt);
236
+ }, (t, e) => (e - t) / gt, (t) => t.getHours());
237
+ Ot.range;
238
+ const mr = et((t) => {
239
+ t.setUTCMinutes(0, 0, 0);
240
+ }, (t, e) => {
241
+ t.setTime(+t + e * gt);
242
+ }, (t, e) => (e - t) / gt, (t) => t.getUTCHours());
243
+ mr.range;
244
+ const Tt = et(
245
+ (t) => t.setHours(0, 0, 0, 0),
246
+ (t, e) => t.setDate(t.getDate() + e),
247
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ct) / yt,
248
+ (t) => t.getDate() - 1
249
+ );
250
+ Tt.range;
251
+ const we = et((t) => {
252
+ t.setUTCHours(0, 0, 0, 0);
253
+ }, (t, e) => {
254
+ t.setUTCDate(t.getUTCDate() + e);
255
+ }, (t, e) => (e - t) / yt, (t) => t.getUTCDate() - 1);
256
+ we.range;
257
+ const gr = et((t) => {
258
+ t.setUTCHours(0, 0, 0, 0);
259
+ }, (t, e) => {
260
+ t.setUTCDate(t.getUTCDate() + e);
261
+ }, (t, e) => (e - t) / yt, (t) => Math.floor(t / yt));
262
+ gr.range;
263
+ function wt(t) {
264
+ return et((e) => {
265
+ e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
266
+ }, (e, n) => {
267
+ e.setDate(e.getDate() + n * 7);
268
+ }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ct) / xe);
269
+ }
270
+ const Vt = wt(0), Ht = wt(1), un = wt(2), fn = wt(3), bt = wt(4), hn = wt(5), dn = wt(6);
271
+ Vt.range;
272
+ Ht.range;
273
+ un.range;
274
+ fn.range;
275
+ bt.range;
276
+ hn.range;
277
+ dn.range;
278
+ function Dt(t) {
279
+ return et((e) => {
280
+ e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
281
+ }, (e, n) => {
282
+ e.setUTCDate(e.getUTCDate() + n * 7);
283
+ }, (e, n) => (n - e) / xe);
284
+ }
285
+ const mn = Dt(0), Jt = Dt(1), yr = Dt(2), kr = Dt(3), Ut = Dt(4), pr = Dt(5), vr = Dt(6);
286
+ mn.range;
287
+ Jt.range;
288
+ yr.range;
289
+ kr.range;
290
+ Ut.range;
291
+ pr.range;
292
+ vr.range;
293
+ const Nt = et((t) => {
294
+ t.setDate(1), t.setHours(0, 0, 0, 0);
295
+ }, (t, e) => {
296
+ t.setMonth(t.getMonth() + e);
297
+ }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
298
+ Nt.range;
299
+ const Tr = et((t) => {
300
+ t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
301
+ }, (t, e) => {
302
+ t.setUTCMonth(t.getUTCMonth() + e);
303
+ }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
304
+ Tr.range;
305
+ const kt = et((t) => {
306
+ t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
307
+ }, (t, e) => {
308
+ t.setFullYear(t.getFullYear() + e);
309
+ }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
310
+ kt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
311
+ e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
312
+ }, (e, n) => {
313
+ e.setFullYear(e.getFullYear() + n * t);
314
+ });
315
+ kt.range;
316
+ const xt = et((t) => {
317
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
318
+ }, (t, e) => {
319
+ t.setUTCFullYear(t.getUTCFullYear() + e);
320
+ }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
321
+ xt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
322
+ e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
323
+ }, (e, n) => {
324
+ e.setUTCFullYear(e.getUTCFullYear() + n * t);
325
+ });
326
+ xt.range;
327
+ function br(t, e, n, r, a, i) {
328
+ const s = [
329
+ [vt, 1, mt],
330
+ [vt, 5, 5 * mt],
331
+ [vt, 15, 15 * mt],
332
+ [vt, 30, 30 * mt],
333
+ [i, 1, ct],
334
+ [i, 5, 5 * ct],
335
+ [i, 15, 15 * ct],
336
+ [i, 30, 30 * ct],
337
+ [a, 1, gt],
338
+ [a, 3, 3 * gt],
339
+ [a, 6, 6 * gt],
340
+ [a, 12, 12 * gt],
341
+ [r, 1, yt],
342
+ [r, 2, 2 * yt],
343
+ [n, 1, xe],
344
+ [e, 1, Oe],
345
+ [e, 3, 3 * Oe],
346
+ [t, 1, fe]
347
+ ];
348
+ function y(p, g, E) {
349
+ const C = g < p;
350
+ C && ([p, g] = [g, p]);
351
+ const b = E && typeof E.range == "function" ? E : _(p, g, E), q = b ? b.range(p, +g + 1) : [];
352
+ return C ? q.reverse() : q;
353
+ }
354
+ function _(p, g, E) {
355
+ const C = Math.abs(g - p) / E, b = Bn(([, , M]) => M).right(s, C);
356
+ if (b === s.length) return t.every(Ie(p / fe, g / fe, E));
357
+ if (b === 0) return Yt.every(Math.max(Ie(p, g, E), 1));
358
+ const [q, O] = s[C / s[b - 1][2] < s[b][2] / C ? b - 1 : b];
359
+ return q.every(O);
360
+ }
361
+ return [y, _];
362
+ }
363
+ const [xr, wr] = br(kt, Nt, Vt, Tt, Ot, Wt);
364
+ function he(t) {
365
+ if (0 <= t.y && t.y < 100) {
366
+ var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
367
+ return e.setFullYear(t.y), e;
368
+ }
369
+ return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
370
+ }
371
+ function de(t) {
372
+ if (0 <= t.y && t.y < 100) {
373
+ var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
374
+ return e.setUTCFullYear(t.y), e;
375
+ }
376
+ return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
377
+ }
378
+ function Lt(t, e, n) {
379
+ return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
380
+ }
381
+ function Dr(t) {
382
+ var e = t.dateTime, n = t.date, r = t.time, a = t.periods, i = t.days, s = t.shortDays, y = t.months, _ = t.shortMonths, p = At(a), g = It(a), E = At(i), C = It(i), b = At(s), q = It(s), O = At(y), M = It(y), I = At(_), V = It(_), W = {
383
+ a: d,
384
+ A: w,
385
+ b: c,
386
+ B: l,
387
+ c: null,
388
+ d: Re,
389
+ e: Re,
390
+ f: qr,
391
+ g: ra,
392
+ G: ia,
393
+ H: Br,
394
+ I: Zr,
395
+ j: Xr,
396
+ L: gn,
397
+ m: Gr,
398
+ M: jr,
399
+ p: o,
400
+ q: P,
401
+ Q: Xe,
402
+ s: qe,
403
+ S: Qr,
404
+ u: $r,
405
+ U: Jr,
406
+ V: Kr,
407
+ w: ta,
408
+ W: ea,
409
+ x: null,
410
+ X: null,
411
+ y: na,
412
+ Y: aa,
413
+ Z: sa,
414
+ "%": Ze
415
+ }, Z = {
416
+ a: z,
417
+ A: R,
418
+ b: K,
419
+ B: G,
420
+ c: null,
421
+ d: Be,
422
+ e: Be,
423
+ f: ua,
424
+ g: Ta,
425
+ G: xa,
426
+ H: oa,
427
+ I: ca,
428
+ j: la,
429
+ L: kn,
430
+ m: fa,
431
+ M: ha,
432
+ p: $,
433
+ q: it,
434
+ Q: Xe,
435
+ s: qe,
436
+ S: da,
437
+ u: ma,
438
+ U: ga,
439
+ V: ya,
440
+ w: ka,
441
+ W: pa,
442
+ x: null,
443
+ X: null,
444
+ y: va,
445
+ Y: ba,
446
+ Z: wa,
447
+ "%": Ze
448
+ }, Q = {
449
+ a: F,
450
+ A: S,
451
+ b: v,
452
+ B: U,
453
+ c: u,
454
+ d: ze,
455
+ e: ze,
456
+ f: Vr,
457
+ g: Ve,
458
+ G: Ne,
459
+ H: Pe,
460
+ I: Pe,
461
+ j: Wr,
462
+ L: Nr,
463
+ m: Ir,
464
+ M: Or,
465
+ p: Y,
466
+ q: Ar,
467
+ Q: Pr,
468
+ s: Rr,
469
+ S: Hr,
470
+ u: Fr,
471
+ U: Yr,
472
+ V: Ur,
473
+ w: Sr,
474
+ W: Er,
475
+ x: m,
476
+ X: T,
477
+ y: Ve,
478
+ Y: Ne,
479
+ Z: Lr,
480
+ "%": zr
481
+ };
482
+ W.x = D(n, W), W.X = D(r, W), W.c = D(e, W), Z.x = D(n, Z), Z.X = D(r, Z), Z.c = D(e, Z);
483
+ function D(k, A) {
484
+ return function(N) {
485
+ var f = [], J = -1, L = 0, j = k.length, X, rt, st;
486
+ for (N instanceof Date || (N = /* @__PURE__ */ new Date(+N)); ++J < j; )
487
+ k.charCodeAt(J) === 37 && (f.push(k.slice(L, J)), (rt = He[X = k.charAt(++J)]) != null ? X = k.charAt(++J) : rt = X === "e" ? " " : "0", (st = A[X]) && (X = st(N, rt)), f.push(X), L = J + 1);
488
+ return f.push(k.slice(L, J)), f.join("");
489
+ };
490
+ }
491
+ function H(k, A) {
492
+ return function(N) {
493
+ var f = Lt(1900, void 0, 1), J = x(f, k, N += "", 0), L, j;
494
+ if (J != N.length) return null;
495
+ if ("Q" in f) return new Date(f.Q);
496
+ if ("s" in f) return new Date(f.s * 1e3 + ("L" in f ? f.L : 0));
497
+ if (A && !("Z" in f) && (f.Z = 0), "p" in f && (f.H = f.H % 12 + f.p * 12), f.m === void 0 && (f.m = "q" in f ? f.q : 0), "V" in f) {
498
+ if (f.V < 1 || f.V > 53) return null;
499
+ "w" in f || (f.w = 1), "Z" in f ? (L = de(Lt(f.y, 0, 1)), j = L.getUTCDay(), L = j > 4 || j === 0 ? Jt.ceil(L) : Jt(L), L = we.offset(L, (f.V - 1) * 7), f.y = L.getUTCFullYear(), f.m = L.getUTCMonth(), f.d = L.getUTCDate() + (f.w + 6) % 7) : (L = he(Lt(f.y, 0, 1)), j = L.getDay(), L = j > 4 || j === 0 ? Ht.ceil(L) : Ht(L), L = Tt.offset(L, (f.V - 1) * 7), f.y = L.getFullYear(), f.m = L.getMonth(), f.d = L.getDate() + (f.w + 6) % 7);
500
+ } else ("W" in f || "U" in f) && ("w" in f || (f.w = "u" in f ? f.u % 7 : "W" in f ? 1 : 0), j = "Z" in f ? de(Lt(f.y, 0, 1)).getUTCDay() : he(Lt(f.y, 0, 1)).getDay(), f.m = 0, f.d = "W" in f ? (f.w + 6) % 7 + f.W * 7 - (j + 5) % 7 : f.w + f.U * 7 - (j + 6) % 7);
501
+ return "Z" in f ? (f.H += f.Z / 100 | 0, f.M += f.Z % 100, de(f)) : he(f);
502
+ };
503
+ }
504
+ function x(k, A, N, f) {
505
+ for (var J = 0, L = A.length, j = N.length, X, rt; J < L; ) {
506
+ if (f >= j) return -1;
507
+ if (X = A.charCodeAt(J++), X === 37) {
508
+ if (X = A.charAt(J++), rt = Q[X in He ? A.charAt(J++) : X], !rt || (f = rt(k, N, f)) < 0) return -1;
509
+ } else if (X != N.charCodeAt(f++))
510
+ return -1;
511
+ }
512
+ return f;
513
+ }
514
+ function Y(k, A, N) {
515
+ var f = p.exec(A.slice(N));
516
+ return f ? (k.p = g.get(f[0].toLowerCase()), N + f[0].length) : -1;
517
+ }
518
+ function F(k, A, N) {
519
+ var f = b.exec(A.slice(N));
520
+ return f ? (k.w = q.get(f[0].toLowerCase()), N + f[0].length) : -1;
521
+ }
522
+ function S(k, A, N) {
523
+ var f = E.exec(A.slice(N));
524
+ return f ? (k.w = C.get(f[0].toLowerCase()), N + f[0].length) : -1;
525
+ }
526
+ function v(k, A, N) {
527
+ var f = I.exec(A.slice(N));
528
+ return f ? (k.m = V.get(f[0].toLowerCase()), N + f[0].length) : -1;
529
+ }
530
+ function U(k, A, N) {
531
+ var f = O.exec(A.slice(N));
532
+ return f ? (k.m = M.get(f[0].toLowerCase()), N + f[0].length) : -1;
533
+ }
534
+ function u(k, A, N) {
535
+ return x(k, e, A, N);
536
+ }
537
+ function m(k, A, N) {
538
+ return x(k, n, A, N);
539
+ }
540
+ function T(k, A, N) {
541
+ return x(k, r, A, N);
542
+ }
543
+ function d(k) {
544
+ return s[k.getDay()];
545
+ }
546
+ function w(k) {
547
+ return i[k.getDay()];
548
+ }
549
+ function c(k) {
550
+ return _[k.getMonth()];
551
+ }
552
+ function l(k) {
553
+ return y[k.getMonth()];
554
+ }
555
+ function o(k) {
556
+ return a[+(k.getHours() >= 12)];
557
+ }
558
+ function P(k) {
559
+ return 1 + ~~(k.getMonth() / 3);
560
+ }
561
+ function z(k) {
562
+ return s[k.getUTCDay()];
563
+ }
564
+ function R(k) {
565
+ return i[k.getUTCDay()];
566
+ }
567
+ function K(k) {
568
+ return _[k.getUTCMonth()];
569
+ }
570
+ function G(k) {
571
+ return y[k.getUTCMonth()];
572
+ }
573
+ function $(k) {
574
+ return a[+(k.getUTCHours() >= 12)];
575
+ }
576
+ function it(k) {
577
+ return 1 + ~~(k.getUTCMonth() / 3);
578
+ }
579
+ return {
580
+ format: function(k) {
581
+ var A = D(k += "", W);
582
+ return A.toString = function() {
583
+ return k;
584
+ }, A;
585
+ },
586
+ parse: function(k) {
587
+ var A = H(k += "", !1);
588
+ return A.toString = function() {
589
+ return k;
590
+ }, A;
591
+ },
592
+ utcFormat: function(k) {
593
+ var A = D(k += "", Z);
594
+ return A.toString = function() {
595
+ return k;
596
+ }, A;
597
+ },
598
+ utcParse: function(k) {
599
+ var A = H(k += "", !0);
600
+ return A.toString = function() {
601
+ return k;
602
+ }, A;
603
+ }
604
+ };
605
+ }
606
+ var He = { "-": "", _: " ", 0: "0" }, nt = /^\s*\d+/, Cr = /^%/, Mr = /[\\^$*+?|[\]().{}]/g;
607
+ function B(t, e, n) {
608
+ var r = t < 0 ? "-" : "", a = (r ? -t : t) + "", i = a.length;
609
+ return r + (i < n ? new Array(n - i + 1).join(e) + a : a);
610
+ }
611
+ function _r(t) {
612
+ return t.replace(Mr, "\\$&");
613
+ }
614
+ function At(t) {
615
+ return new RegExp("^(?:" + t.map(_r).join("|") + ")", "i");
616
+ }
617
+ function It(t) {
618
+ return new Map(t.map((e, n) => [e.toLowerCase(), n]));
619
+ }
620
+ function Sr(t, e, n) {
621
+ var r = nt.exec(e.slice(n, n + 1));
622
+ return r ? (t.w = +r[0], n + r[0].length) : -1;
623
+ }
624
+ function Fr(t, e, n) {
625
+ var r = nt.exec(e.slice(n, n + 1));
626
+ return r ? (t.u = +r[0], n + r[0].length) : -1;
627
+ }
628
+ function Yr(t, e, n) {
629
+ var r = nt.exec(e.slice(n, n + 2));
630
+ return r ? (t.U = +r[0], n + r[0].length) : -1;
631
+ }
632
+ function Ur(t, e, n) {
633
+ var r = nt.exec(e.slice(n, n + 2));
634
+ return r ? (t.V = +r[0], n + r[0].length) : -1;
635
+ }
636
+ function Er(t, e, n) {
637
+ var r = nt.exec(e.slice(n, n + 2));
638
+ return r ? (t.W = +r[0], n + r[0].length) : -1;
639
+ }
640
+ function Ne(t, e, n) {
641
+ var r = nt.exec(e.slice(n, n + 4));
642
+ return r ? (t.y = +r[0], n + r[0].length) : -1;
643
+ }
644
+ function Ve(t, e, n) {
645
+ var r = nt.exec(e.slice(n, n + 2));
646
+ return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
647
+ }
648
+ function Lr(t, e, n) {
649
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
650
+ return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
651
+ }
652
+ function Ar(t, e, n) {
653
+ var r = nt.exec(e.slice(n, n + 1));
654
+ return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
655
+ }
656
+ function Ir(t, e, n) {
657
+ var r = nt.exec(e.slice(n, n + 2));
658
+ return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
659
+ }
660
+ function ze(t, e, n) {
661
+ var r = nt.exec(e.slice(n, n + 2));
662
+ return r ? (t.d = +r[0], n + r[0].length) : -1;
663
+ }
664
+ function Wr(t, e, n) {
665
+ var r = nt.exec(e.slice(n, n + 3));
666
+ return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
667
+ }
668
+ function Pe(t, e, n) {
669
+ var r = nt.exec(e.slice(n, n + 2));
670
+ return r ? (t.H = +r[0], n + r[0].length) : -1;
671
+ }
672
+ function Or(t, e, n) {
673
+ var r = nt.exec(e.slice(n, n + 2));
674
+ return r ? (t.M = +r[0], n + r[0].length) : -1;
675
+ }
676
+ function Hr(t, e, n) {
677
+ var r = nt.exec(e.slice(n, n + 2));
678
+ return r ? (t.S = +r[0], n + r[0].length) : -1;
679
+ }
680
+ function Nr(t, e, n) {
681
+ var r = nt.exec(e.slice(n, n + 3));
682
+ return r ? (t.L = +r[0], n + r[0].length) : -1;
683
+ }
684
+ function Vr(t, e, n) {
685
+ var r = nt.exec(e.slice(n, n + 6));
686
+ return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
687
+ }
688
+ function zr(t, e, n) {
689
+ var r = Cr.exec(e.slice(n, n + 1));
690
+ return r ? n + r[0].length : -1;
691
+ }
692
+ function Pr(t, e, n) {
693
+ var r = nt.exec(e.slice(n));
694
+ return r ? (t.Q = +r[0], n + r[0].length) : -1;
695
+ }
696
+ function Rr(t, e, n) {
697
+ var r = nt.exec(e.slice(n));
698
+ return r ? (t.s = +r[0], n + r[0].length) : -1;
699
+ }
700
+ function Re(t, e) {
701
+ return B(t.getDate(), e, 2);
702
+ }
703
+ function Br(t, e) {
704
+ return B(t.getHours(), e, 2);
705
+ }
706
+ function Zr(t, e) {
707
+ return B(t.getHours() % 12 || 12, e, 2);
708
+ }
709
+ function Xr(t, e) {
710
+ return B(1 + Tt.count(kt(t), t), e, 3);
711
+ }
712
+ function gn(t, e) {
713
+ return B(t.getMilliseconds(), e, 3);
714
+ }
715
+ function qr(t, e) {
716
+ return gn(t, e) + "000";
717
+ }
718
+ function Gr(t, e) {
719
+ return B(t.getMonth() + 1, e, 2);
720
+ }
721
+ function jr(t, e) {
722
+ return B(t.getMinutes(), e, 2);
723
+ }
724
+ function Qr(t, e) {
725
+ return B(t.getSeconds(), e, 2);
726
+ }
727
+ function $r(t) {
728
+ var e = t.getDay();
729
+ return e === 0 ? 7 : e;
730
+ }
731
+ function Jr(t, e) {
732
+ return B(Vt.count(kt(t) - 1, t), e, 2);
733
+ }
734
+ function yn(t) {
735
+ var e = t.getDay();
736
+ return e >= 4 || e === 0 ? bt(t) : bt.ceil(t);
737
+ }
738
+ function Kr(t, e) {
739
+ return t = yn(t), B(bt.count(kt(t), t) + (kt(t).getDay() === 4), e, 2);
740
+ }
741
+ function ta(t) {
742
+ return t.getDay();
743
+ }
744
+ function ea(t, e) {
745
+ return B(Ht.count(kt(t) - 1, t), e, 2);
746
+ }
747
+ function na(t, e) {
748
+ return B(t.getFullYear() % 100, e, 2);
749
+ }
750
+ function ra(t, e) {
751
+ return t = yn(t), B(t.getFullYear() % 100, e, 2);
752
+ }
753
+ function aa(t, e) {
754
+ return B(t.getFullYear() % 1e4, e, 4);
755
+ }
756
+ function ia(t, e) {
757
+ var n = t.getDay();
758
+ return t = n >= 4 || n === 0 ? bt(t) : bt.ceil(t), B(t.getFullYear() % 1e4, e, 4);
759
+ }
760
+ function sa(t) {
761
+ var e = t.getTimezoneOffset();
762
+ return (e > 0 ? "-" : (e *= -1, "+")) + B(e / 60 | 0, "0", 2) + B(e % 60, "0", 2);
763
+ }
764
+ function Be(t, e) {
765
+ return B(t.getUTCDate(), e, 2);
766
+ }
767
+ function oa(t, e) {
768
+ return B(t.getUTCHours(), e, 2);
769
+ }
770
+ function ca(t, e) {
771
+ return B(t.getUTCHours() % 12 || 12, e, 2);
772
+ }
773
+ function la(t, e) {
774
+ return B(1 + we.count(xt(t), t), e, 3);
775
+ }
776
+ function kn(t, e) {
777
+ return B(t.getUTCMilliseconds(), e, 3);
778
+ }
779
+ function ua(t, e) {
780
+ return kn(t, e) + "000";
781
+ }
782
+ function fa(t, e) {
783
+ return B(t.getUTCMonth() + 1, e, 2);
784
+ }
785
+ function ha(t, e) {
786
+ return B(t.getUTCMinutes(), e, 2);
787
+ }
788
+ function da(t, e) {
789
+ return B(t.getUTCSeconds(), e, 2);
790
+ }
791
+ function ma(t) {
792
+ var e = t.getUTCDay();
793
+ return e === 0 ? 7 : e;
794
+ }
795
+ function ga(t, e) {
796
+ return B(mn.count(xt(t) - 1, t), e, 2);
797
+ }
798
+ function pn(t) {
799
+ var e = t.getUTCDay();
800
+ return e >= 4 || e === 0 ? Ut(t) : Ut.ceil(t);
801
+ }
802
+ function ya(t, e) {
803
+ return t = pn(t), B(Ut.count(xt(t), t) + (xt(t).getUTCDay() === 4), e, 2);
804
+ }
805
+ function ka(t) {
806
+ return t.getUTCDay();
807
+ }
808
+ function pa(t, e) {
809
+ return B(Jt.count(xt(t) - 1, t), e, 2);
810
+ }
811
+ function va(t, e) {
812
+ return B(t.getUTCFullYear() % 100, e, 2);
813
+ }
814
+ function Ta(t, e) {
815
+ return t = pn(t), B(t.getUTCFullYear() % 100, e, 2);
816
+ }
817
+ function ba(t, e) {
818
+ return B(t.getUTCFullYear() % 1e4, e, 4);
819
+ }
820
+ function xa(t, e) {
821
+ var n = t.getUTCDay();
822
+ return t = n >= 4 || n === 0 ? Ut(t) : Ut.ceil(t), B(t.getUTCFullYear() % 1e4, e, 4);
823
+ }
824
+ function wa() {
825
+ return "+0000";
826
+ }
827
+ function Ze() {
828
+ return "%";
829
+ }
830
+ function Xe(t) {
831
+ return +t;
832
+ }
833
+ function qe(t) {
834
+ return Math.floor(+t / 1e3);
835
+ }
836
+ var Mt, Kt;
837
+ Da({
838
+ dateTime: "%x, %X",
839
+ date: "%-m/%-d/%Y",
840
+ time: "%-I:%M:%S %p",
841
+ periods: ["AM", "PM"],
842
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
843
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
844
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
845
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
846
+ });
847
+ function Da(t) {
848
+ return Mt = Dr(t), Kt = Mt.format, Mt.parse, Mt.utcFormat, Mt.utcParse, Mt;
849
+ }
850
+ function Ca(t) {
851
+ return new Date(t);
852
+ }
853
+ function Ma(t) {
854
+ return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
855
+ }
856
+ function vn(t, e, n, r, a, i, s, y, _, p) {
857
+ var g = Zn(), E = g.invert, C = g.domain, b = p(".%L"), q = p(":%S"), O = p("%I:%M"), M = p("%I %p"), I = p("%a %d"), V = p("%b %d"), W = p("%B"), Z = p("%Y");
858
+ function Q(D) {
859
+ return (_(D) < D ? b : y(D) < D ? q : s(D) < D ? O : i(D) < D ? M : r(D) < D ? a(D) < D ? I : V : n(D) < D ? W : Z)(D);
860
+ }
861
+ return g.invert = function(D) {
862
+ return new Date(E(D));
863
+ }, g.domain = function(D) {
864
+ return arguments.length ? C(Array.from(D, Ma)) : C().map(Ca);
865
+ }, g.ticks = function(D) {
866
+ var H = C();
867
+ return t(H[0], H[H.length - 1], D ?? 10);
868
+ }, g.tickFormat = function(D, H) {
869
+ return H == null ? Q : p(H);
870
+ }, g.nice = function(D) {
871
+ var H = C();
872
+ return (!D || typeof D.range != "function") && (D = e(H[0], H[H.length - 1], D ?? 10)), D ? C(hr(H, D)) : g;
873
+ }, g.copy = function() {
874
+ return Xn(g, vn(t, e, n, r, a, i, s, y, _, p));
875
+ }, g;
876
+ }
877
+ function _a() {
878
+ return Gn.apply(vn(xr, wr, kt, Nt, Vt, Tt, Ot, Wt, vt, Kt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
879
+ }
880
+ var Tn = { exports: {} };
881
+ (function(t, e) {
882
+ (function(n, r) {
883
+ t.exports = r();
884
+ })(Te, function() {
885
+ var n = "day";
886
+ return function(r, a, i) {
887
+ var s = function(p) {
888
+ return p.add(4 - p.isoWeekday(), n);
889
+ }, y = a.prototype;
890
+ y.isoWeekYear = function() {
891
+ return s(this).year();
892
+ }, y.isoWeek = function(p) {
893
+ if (!this.$utils().u(p)) return this.add(7 * (p - this.isoWeek()), n);
894
+ var g, E, C, b, q = s(this), O = (g = this.isoWeekYear(), E = this.$u, C = (E ? i.utc : i)().year(g).startOf("year"), b = 4 - C.isoWeekday(), C.isoWeekday() > 4 && (b += 7), C.add(b, n));
895
+ return q.diff(O, "week") + 1;
896
+ }, y.isoWeekday = function(p) {
897
+ return this.$utils().u(p) ? this.day() || 7 : this.day(this.day() % 7 ? p : p - 7);
23
898
  };
24
- var F = _.startOf;
25
- _.startOf = function(E, p) {
26
- var M = this.$utils(), V = !!M.u(p) || p;
27
- return M.p(E) === "isoweek" ? V ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : F.bind(this)(E, p);
899
+ var _ = y.startOf;
900
+ y.startOf = function(p, g) {
901
+ var E = this.$utils(), C = !!E.u(g) || g;
902
+ return E.p(p) === "isoweek" ? C ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : _.bind(this)(p, g);
28
903
  };
29
904
  };
30
905
  });
31
- })($t);
32
- var Ye = $t.exports;
33
- const Fe = /* @__PURE__ */ Mt(Ye);
34
- var Kt = { exports: {} };
35
- (function(t, i) {
36
- (function(s, n) {
37
- t.exports = n();
38
- })(Et, function() {
39
- var s = { 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" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, h = /\d\d/, f = /\d\d?/, _ = /\d*[^-_:/,()\s\d]+/, F = {}, E = function(v) {
40
- return (v = +v) + (v > 68 ? 1900 : 2e3);
41
- }, p = function(v) {
42
- return function(S) {
43
- this[v] = +S;
906
+ })(Tn);
907
+ var Sa = Tn.exports;
908
+ const Fa = /* @__PURE__ */ be(Sa);
909
+ var bn = { exports: {} };
910
+ (function(t, e) {
911
+ (function(n, r) {
912
+ t.exports = r();
913
+ })(Te, function() {
914
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, i = /\d\d/, s = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, _ = {}, p = function(M) {
915
+ return (M = +M) + (M > 68 ? 1900 : 2e3);
916
+ }, g = function(M) {
917
+ return function(I) {
918
+ this[M] = +I;
44
919
  };
45
- }, M = [/[+-]\d\d:?(\d\d)?|Z/, function(v) {
46
- (this.zone || (this.zone = {})).offset = function(S) {
47
- if (!S || S === "Z") return 0;
48
- var L = S.match(/([+-]|\d\d)/g), Y = 60 * L[1] + (+L[2] || 0);
49
- return Y === 0 ? 0 : L[0] === "+" ? -Y : Y;
50
- }(v);
51
- }], V = function(v) {
52
- var S = F[v];
53
- return S && (S.indexOf ? S : S.s.concat(S.f));
54
- }, P = function(v, S) {
55
- var L, Y = F.meridiem;
56
- if (Y) {
57
- for (var H = 1; H <= 24; H += 1) if (v.indexOf(Y(H, 0, S)) > -1) {
58
- L = H > 12;
920
+ }, E = [/[+-]\d\d:?(\d\d)?|Z/, function(M) {
921
+ (this.zone || (this.zone = {})).offset = function(I) {
922
+ if (!I || I === "Z") return 0;
923
+ var V = I.match(/([+-]|\d\d)/g), W = 60 * V[1] + (+V[2] || 0);
924
+ return W === 0 ? 0 : V[0] === "+" ? -W : W;
925
+ }(M);
926
+ }], C = function(M) {
927
+ var I = _[M];
928
+ return I && (I.indexOf ? I : I.s.concat(I.f));
929
+ }, b = function(M, I) {
930
+ var V, W = _.meridiem;
931
+ if (W) {
932
+ for (var Z = 1; Z <= 24; Z += 1) if (M.indexOf(W(Z, 0, I)) > -1) {
933
+ V = Z > 12;
59
934
  break;
60
935
  }
61
- } else L = v === (S ? "pm" : "PM");
62
- return L;
63
- }, B = { A: [_, function(v) {
64
- this.afternoon = P(v, !1);
65
- }], a: [_, function(v) {
66
- this.afternoon = P(v, !0);
67
- }], Q: [a, function(v) {
68
- this.month = 3 * (v - 1) + 1;
69
- }], S: [a, function(v) {
70
- this.milliseconds = 100 * +v;
71
- }], SS: [h, function(v) {
72
- this.milliseconds = 10 * +v;
73
- }], SSS: [/\d{3}/, function(v) {
74
- this.milliseconds = +v;
75
- }], s: [f, p("seconds")], ss: [f, p("seconds")], m: [f, p("minutes")], mm: [f, p("minutes")], H: [f, p("hours")], h: [f, p("hours")], HH: [f, p("hours")], hh: [f, p("hours")], D: [f, p("day")], DD: [h, p("day")], Do: [_, function(v) {
76
- var S = F.ordinal, L = v.match(/\d+/);
77
- if (this.day = L[0], S) for (var Y = 1; Y <= 31; Y += 1) S(Y).replace(/\[|\]/g, "") === v && (this.day = Y);
78
- }], w: [f, p("week")], ww: [h, p("week")], M: [f, p("month")], MM: [h, p("month")], MMM: [_, function(v) {
79
- var S = V("months"), L = (V("monthsShort") || S.map(function(Y) {
80
- return Y.slice(0, 3);
81
- })).indexOf(v) + 1;
82
- if (L < 1) throw new Error();
83
- this.month = L % 12 || L;
84
- }], MMMM: [_, function(v) {
85
- var S = V("months").indexOf(v) + 1;
86
- if (S < 1) throw new Error();
87
- this.month = S % 12 || S;
88
- }], Y: [/[+-]?\d+/, p("year")], YY: [h, function(v) {
89
- this.year = E(v);
90
- }], YYYY: [/\d{4}/, p("year")], Z: M, ZZ: M };
91
- function C(v) {
92
- var S, L;
93
- S = v, L = F && F.formats;
94
- for (var Y = (v = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(b, T, g) {
95
- var w = g && g.toUpperCase();
96
- return T || L[g] || s[g] || L[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, d, k) {
97
- return d || k.slice(1);
936
+ } else V = M === (I ? "pm" : "PM");
937
+ return V;
938
+ }, q = { A: [y, function(M) {
939
+ this.afternoon = b(M, !1);
940
+ }], a: [y, function(M) {
941
+ this.afternoon = b(M, !0);
942
+ }], Q: [a, function(M) {
943
+ this.month = 3 * (M - 1) + 1;
944
+ }], S: [a, function(M) {
945
+ this.milliseconds = 100 * +M;
946
+ }], SS: [i, function(M) {
947
+ this.milliseconds = 10 * +M;
948
+ }], SSS: [/\d{3}/, function(M) {
949
+ this.milliseconds = +M;
950
+ }], s: [s, g("seconds")], ss: [s, g("seconds")], m: [s, g("minutes")], mm: [s, g("minutes")], H: [s, g("hours")], h: [s, g("hours")], HH: [s, g("hours")], hh: [s, g("hours")], D: [s, g("day")], DD: [i, g("day")], Do: [y, function(M) {
951
+ var I = _.ordinal, V = M.match(/\d+/);
952
+ if (this.day = V[0], I) for (var W = 1; W <= 31; W += 1) I(W).replace(/\[|\]/g, "") === M && (this.day = W);
953
+ }], w: [s, g("week")], ww: [i, g("week")], M: [s, g("month")], MM: [i, g("month")], MMM: [y, function(M) {
954
+ var I = C("months"), V = (C("monthsShort") || I.map(function(W) {
955
+ return W.slice(0, 3);
956
+ })).indexOf(M) + 1;
957
+ if (V < 1) throw new Error();
958
+ this.month = V % 12 || V;
959
+ }], MMMM: [y, function(M) {
960
+ var I = C("months").indexOf(M) + 1;
961
+ if (I < 1) throw new Error();
962
+ this.month = I % 12 || I;
963
+ }], Y: [/[+-]?\d+/, g("year")], YY: [i, function(M) {
964
+ this.year = p(M);
965
+ }], YYYY: [/\d{4}/, g("year")], Z: E, ZZ: E };
966
+ function O(M) {
967
+ var I, V;
968
+ I = M, V = _ && _.formats;
969
+ for (var W = (M = I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(F, S, v) {
970
+ var U = v && v.toUpperCase();
971
+ return S || V[v] || n[v] || V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(u, m, T) {
972
+ return m || T.slice(1);
98
973
  });
99
- })).match(n), H = Y.length, j = 0; j < H; j += 1) {
100
- var Q = Y[j], q = B[Q], y = q && q[0], x = q && q[1];
101
- Y[j] = x ? { regex: y, parser: x } : Q.replace(/^\[|\]$/g, "");
974
+ })).match(r), Z = W.length, Q = 0; Q < Z; Q += 1) {
975
+ var D = W[Q], H = q[D], x = H && H[0], Y = H && H[1];
976
+ W[Q] = Y ? { regex: x, parser: Y } : D.replace(/^\[|\]$/g, "");
102
977
  }
103
- return function(b) {
104
- for (var T = {}, g = 0, w = 0; g < H; g += 1) {
105
- var c = Y[g];
106
- if (typeof c == "string") w += c.length;
978
+ return function(F) {
979
+ for (var S = {}, v = 0, U = 0; v < Z; v += 1) {
980
+ var u = W[v];
981
+ if (typeof u == "string") U += u.length;
107
982
  else {
108
- var d = c.regex, k = c.parser, u = b.slice(w), m = d.exec(u)[0];
109
- k.call(T, m), b = b.replace(m, "");
983
+ var m = u.regex, T = u.parser, d = F.slice(U), w = m.exec(d)[0];
984
+ T.call(S, w), F = F.replace(w, "");
110
985
  }
111
986
  }
112
- return function(r) {
113
- var o = r.afternoon;
114
- if (o !== void 0) {
115
- var e = r.hours;
116
- o ? e < 12 && (r.hours += 12) : e === 12 && (r.hours = 0), delete r.afternoon;
987
+ return function(c) {
988
+ var l = c.afternoon;
989
+ if (l !== void 0) {
990
+ var o = c.hours;
991
+ l ? o < 12 && (c.hours += 12) : o === 12 && (c.hours = 0), delete c.afternoon;
117
992
  }
118
- }(T), T;
993
+ }(S), S;
119
994
  };
120
995
  }
121
- return function(v, S, L) {
122
- L.p.customParseFormat = !0, v && v.parseTwoDigitYear && (E = v.parseTwoDigitYear);
123
- var Y = S.prototype, H = Y.parse;
124
- Y.parse = function(j) {
125
- var Q = j.date, q = j.utc, y = j.args;
126
- this.$u = q;
127
- var x = y[1];
128
- if (typeof x == "string") {
129
- var b = y[2] === !0, T = y[3] === !0, g = b || T, w = y[2];
130
- T && (w = y[2]), F = this.$locale(), !b && w && (F = L.Ls[w]), this.$d = function(u, m, r, o) {
996
+ return function(M, I, V) {
997
+ V.p.customParseFormat = !0, M && M.parseTwoDigitYear && (p = M.parseTwoDigitYear);
998
+ var W = I.prototype, Z = W.parse;
999
+ W.parse = function(Q) {
1000
+ var D = Q.date, H = Q.utc, x = Q.args;
1001
+ this.$u = H;
1002
+ var Y = x[1];
1003
+ if (typeof Y == "string") {
1004
+ var F = x[2] === !0, S = x[3] === !0, v = F || S, U = x[2];
1005
+ S && (U = x[2]), _ = this.$locale(), !F && U && (_ = V.Ls[U]), this.$d = function(d, w, c, l) {
131
1006
  try {
132
- if (["x", "X"].indexOf(m) > -1) return new Date((m === "X" ? 1e3 : 1) * u);
133
- var e = C(m)(u), I = e.year, D = e.month, A = e.day, N = e.hours, W = e.minutes, O = e.seconds, $ = e.milliseconds, at = e.zone, nt = e.week, dt = /* @__PURE__ */ new Date(), ft = A || (I || D ? 1 : dt.getDate()), ot = I || dt.getFullYear(), z = 0;
134
- I && !D || (z = D > 0 ? D - 1 : dt.getMonth());
135
- var Z, G = N || 0, st = W || 0, K = O || 0, rt = $ || 0;
136
- return at ? new Date(Date.UTC(ot, z, ft, G, st, K, rt + 60 * at.offset * 1e3)) : r ? new Date(Date.UTC(ot, z, ft, G, st, K, rt)) : (Z = new Date(ot, z, ft, G, st, K, rt), nt && (Z = o(Z).week(nt).toDate()), Z);
1007
+ if (["x", "X"].indexOf(w) > -1) return new Date((w === "X" ? 1e3 : 1) * d);
1008
+ var o = O(w)(d), P = o.year, z = o.month, R = o.day, K = o.hours, G = o.minutes, $ = o.seconds, it = o.milliseconds, k = o.zone, A = o.week, N = /* @__PURE__ */ new Date(), f = R || (P || z ? 1 : N.getDate()), J = P || N.getFullYear(), L = 0;
1009
+ P && !z || (L = z > 0 ? z - 1 : N.getMonth());
1010
+ var j, X = K || 0, rt = G || 0, st = $ || 0, pt = it || 0;
1011
+ return k ? new Date(Date.UTC(J, L, f, X, rt, st, pt + 60 * k.offset * 1e3)) : c ? new Date(Date.UTC(J, L, f, X, rt, st, pt)) : (j = new Date(J, L, f, X, rt, st, pt), A && (j = l(j).week(A).toDate()), j);
137
1012
  } catch {
138
1013
  return /* @__PURE__ */ new Date("");
139
1014
  }
140
- }(Q, x, q, L), this.init(), w && w !== !0 && (this.$L = this.locale(w).$L), g && Q != this.format(x) && (this.$d = /* @__PURE__ */ new Date("")), F = {};
141
- } else if (x instanceof Array) for (var c = x.length, d = 1; d <= c; d += 1) {
142
- y[1] = x[d - 1];
143
- var k = L.apply(this, y);
144
- if (k.isValid()) {
145
- this.$d = k.$d, this.$L = k.$L, this.init();
1015
+ }(D, Y, H, V), this.init(), U && U !== !0 && (this.$L = this.locale(U).$L), v && D != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), _ = {};
1016
+ } else if (Y instanceof Array) for (var u = Y.length, m = 1; m <= u; m += 1) {
1017
+ x[1] = Y[m - 1];
1018
+ var T = V.apply(this, x);
1019
+ if (T.isValid()) {
1020
+ this.$d = T.$d, this.$L = T.$L, this.init();
146
1021
  break;
147
1022
  }
148
- d === c && (this.$d = /* @__PURE__ */ new Date(""));
1023
+ m === u && (this.$d = /* @__PURE__ */ new Date(""));
149
1024
  }
150
- else H.call(this, j);
1025
+ else Z.call(this, Q);
151
1026
  };
152
1027
  };
153
1028
  });
154
- })(Kt);
155
- var We = Kt.exports;
156
- const Oe = /* @__PURE__ */ Mt(We);
157
- var Jt = { exports: {} };
158
- (function(t, i) {
159
- (function(s, n) {
160
- t.exports = n();
161
- })(Et, function() {
162
- return function(s, n) {
163
- var a = n.prototype, h = a.format;
164
- a.format = function(f) {
165
- var _ = this, F = this.$locale();
166
- if (!this.isValid()) return h.bind(this)(f);
167
- var E = this.$utils(), p = (f || "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(M) {
168
- switch (M) {
1029
+ })(bn);
1030
+ var Ya = bn.exports;
1031
+ const Ua = /* @__PURE__ */ be(Ya);
1032
+ var xn = { exports: {} };
1033
+ (function(t, e) {
1034
+ (function(n, r) {
1035
+ t.exports = r();
1036
+ })(Te, function() {
1037
+ return function(n, r) {
1038
+ var a = r.prototype, i = a.format;
1039
+ a.format = function(s) {
1040
+ var y = this, _ = this.$locale();
1041
+ if (!this.isValid()) return i.bind(this)(s);
1042
+ var p = this.$utils(), g = (s || "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(E) {
1043
+ switch (E) {
169
1044
  case "Q":
170
- return Math.ceil((_.$M + 1) / 3);
1045
+ return Math.ceil((y.$M + 1) / 3);
171
1046
  case "Do":
172
- return F.ordinal(_.$D);
1047
+ return _.ordinal(y.$D);
173
1048
  case "gggg":
174
- return _.weekYear();
1049
+ return y.weekYear();
175
1050
  case "GGGG":
176
- return _.isoWeekYear();
1051
+ return y.isoWeekYear();
177
1052
  case "wo":
178
- return F.ordinal(_.week(), "W");
1053
+ return _.ordinal(y.week(), "W");
179
1054
  case "w":
180
1055
  case "ww":
181
- return E.s(_.week(), M === "w" ? 1 : 2, "0");
1056
+ return p.s(y.week(), E === "w" ? 1 : 2, "0");
182
1057
  case "W":
183
1058
  case "WW":
184
- return E.s(_.isoWeek(), M === "W" ? 1 : 2, "0");
1059
+ return p.s(y.isoWeek(), E === "W" ? 1 : 2, "0");
185
1060
  case "k":
186
1061
  case "kk":
187
- return E.s(String(_.$H === 0 ? 24 : _.$H), M === "k" ? 1 : 2, "0");
1062
+ return p.s(String(y.$H === 0 ? 24 : y.$H), E === "k" ? 1 : 2, "0");
188
1063
  case "X":
189
- return Math.floor(_.$d.getTime() / 1e3);
1064
+ return Math.floor(y.$d.getTime() / 1e3);
190
1065
  case "x":
191
- return _.$d.getTime();
1066
+ return y.$d.getTime();
192
1067
  case "z":
193
- return "[" + _.offsetName() + "]";
1068
+ return "[" + y.offsetName() + "]";
194
1069
  case "zzz":
195
- return "[" + _.offsetName("long") + "]";
1070
+ return "[" + y.offsetName("long") + "]";
196
1071
  default:
197
- return M;
1072
+ return E;
198
1073
  }
199
1074
  });
200
- return h.bind(this)(p);
1075
+ return i.bind(this)(g);
201
1076
  };
202
1077
  };
203
1078
  });
204
- })(Jt);
205
- var Ve = Jt.exports;
206
- const Pe = /* @__PURE__ */ Mt(Ve);
207
- var _t = function() {
208
- var t = /* @__PURE__ */ l(function(w, c, d, k) {
209
- for (d = d || {}, k = w.length; k--; d[w[k]] = c) ;
210
- return d;
211
- }, "o"), i = [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], s = [1, 26], n = [1, 27], a = [1, 28], h = [1, 29], f = [1, 30], _ = [1, 31], F = [1, 32], E = [1, 33], p = [1, 34], M = [1, 9], V = [1, 10], P = [1, 11], B = [1, 12], C = [1, 13], v = [1, 14], S = [1, 15], L = [1, 16], Y = [1, 19], H = [1, 20], j = [1, 21], Q = [1, 22], q = [1, 23], y = [1, 25], x = [1, 35], b = {
212
- trace: /* @__PURE__ */ l(function() {
1079
+ })(xn);
1080
+ var Ea = xn.exports;
1081
+ const La = /* @__PURE__ */ be(Ea);
1082
+ var ye = function() {
1083
+ var t = /* @__PURE__ */ h(function(U, u, m, T) {
1084
+ for (m = m || {}, T = U.length; T--; m[U[T]] = u) ;
1085
+ return m;
1086
+ }, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], r = [1, 27], a = [1, 28], i = [1, 29], s = [1, 30], y = [1, 31], _ = [1, 32], p = [1, 33], g = [1, 34], E = [1, 9], C = [1, 10], b = [1, 11], q = [1, 12], O = [1, 13], M = [1, 14], I = [1, 15], V = [1, 16], W = [1, 19], Z = [1, 20], Q = [1, 21], D = [1, 22], H = [1, 23], x = [1, 25], Y = [1, 35], F = {
1087
+ trace: /* @__PURE__ */ h(function() {
213
1088
  }, "trace"),
214
1089
  yy: {},
215
1090
  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 },
216
1091
  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" },
217
1092
  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]],
218
- performAction: /* @__PURE__ */ l(function(c, d, k, u, m, r, o) {
219
- var e = r.length - 1;
220
- switch (m) {
1093
+ performAction: /* @__PURE__ */ h(function(u, m, T, d, w, c, l) {
1094
+ var o = c.length - 1;
1095
+ switch (w) {
221
1096
  case 1:
222
- return r[e - 1];
1097
+ return c[o - 1];
223
1098
  case 2:
224
1099
  this.$ = [];
225
1100
  break;
226
1101
  case 3:
227
- r[e - 1].push(r[e]), this.$ = r[e - 1];
1102
+ c[o - 1].push(c[o]), this.$ = c[o - 1];
228
1103
  break;
229
1104
  case 4:
230
1105
  case 5:
231
- this.$ = r[e];
1106
+ this.$ = c[o];
232
1107
  break;
233
1108
  case 6:
234
1109
  case 7:
235
1110
  this.$ = [];
236
1111
  break;
237
1112
  case 8:
238
- u.setWeekday("monday");
1113
+ d.setWeekday("monday");
239
1114
  break;
240
1115
  case 9:
241
- u.setWeekday("tuesday");
1116
+ d.setWeekday("tuesday");
242
1117
  break;
243
1118
  case 10:
244
- u.setWeekday("wednesday");
1119
+ d.setWeekday("wednesday");
245
1120
  break;
246
1121
  case 11:
247
- u.setWeekday("thursday");
1122
+ d.setWeekday("thursday");
248
1123
  break;
249
1124
  case 12:
250
- u.setWeekday("friday");
1125
+ d.setWeekday("friday");
251
1126
  break;
252
1127
  case 13:
253
- u.setWeekday("saturday");
1128
+ d.setWeekday("saturday");
254
1129
  break;
255
1130
  case 14:
256
- u.setWeekday("sunday");
1131
+ d.setWeekday("sunday");
257
1132
  break;
258
1133
  case 15:
259
- u.setWeekend("friday");
1134
+ d.setWeekend("friday");
260
1135
  break;
261
1136
  case 16:
262
- u.setWeekend("saturday");
1137
+ d.setWeekend("saturday");
263
1138
  break;
264
1139
  case 17:
265
- u.setDateFormat(r[e].substr(11)), this.$ = r[e].substr(11);
1140
+ d.setDateFormat(c[o].substr(11)), this.$ = c[o].substr(11);
266
1141
  break;
267
1142
  case 18:
268
- u.enableInclusiveEndDates(), this.$ = r[e].substr(18);
1143
+ d.enableInclusiveEndDates(), this.$ = c[o].substr(18);
269
1144
  break;
270
1145
  case 19:
271
- u.TopAxis(), this.$ = r[e].substr(8);
1146
+ d.TopAxis(), this.$ = c[o].substr(8);
272
1147
  break;
273
1148
  case 20:
274
- u.setAxisFormat(r[e].substr(11)), this.$ = r[e].substr(11);
1149
+ d.setAxisFormat(c[o].substr(11)), this.$ = c[o].substr(11);
275
1150
  break;
276
1151
  case 21:
277
- u.setTickInterval(r[e].substr(13)), this.$ = r[e].substr(13);
1152
+ d.setTickInterval(c[o].substr(13)), this.$ = c[o].substr(13);
278
1153
  break;
279
1154
  case 22:
280
- u.setExcludes(r[e].substr(9)), this.$ = r[e].substr(9);
1155
+ d.setExcludes(c[o].substr(9)), this.$ = c[o].substr(9);
281
1156
  break;
282
1157
  case 23:
283
- u.setIncludes(r[e].substr(9)), this.$ = r[e].substr(9);
1158
+ d.setIncludes(c[o].substr(9)), this.$ = c[o].substr(9);
284
1159
  break;
285
1160
  case 24:
286
- u.setTodayMarker(r[e].substr(12)), this.$ = r[e].substr(12);
1161
+ d.setTodayMarker(c[o].substr(12)), this.$ = c[o].substr(12);
287
1162
  break;
288
1163
  case 27:
289
- u.setDiagramTitle(r[e].substr(6)), this.$ = r[e].substr(6);
1164
+ d.setDiagramTitle(c[o].substr(6)), this.$ = c[o].substr(6);
290
1165
  break;
291
1166
  case 28:
292
- this.$ = r[e].trim(), u.setAccTitle(this.$);
1167
+ this.$ = c[o].trim(), d.setAccTitle(this.$);
293
1168
  break;
294
1169
  case 29:
295
1170
  case 30:
296
- this.$ = r[e].trim(), u.setAccDescription(this.$);
1171
+ this.$ = c[o].trim(), d.setAccDescription(this.$);
297
1172
  break;
298
1173
  case 31:
299
- u.addSection(r[e].substr(8)), this.$ = r[e].substr(8);
1174
+ d.addSection(c[o].substr(8)), this.$ = c[o].substr(8);
300
1175
  break;
301
1176
  case 33:
302
- u.addTask(r[e - 1], r[e]), this.$ = "task";
1177
+ d.addTask(c[o - 1], c[o]), this.$ = "task";
303
1178
  break;
304
1179
  case 34:
305
- this.$ = r[e - 1], u.setClickEvent(r[e - 1], r[e], null);
1180
+ this.$ = c[o - 1], d.setClickEvent(c[o - 1], c[o], null);
306
1181
  break;
307
1182
  case 35:
308
- this.$ = r[e - 2], u.setClickEvent(r[e - 2], r[e - 1], r[e]);
1183
+ this.$ = c[o - 2], d.setClickEvent(c[o - 2], c[o - 1], c[o]);
309
1184
  break;
310
1185
  case 36:
311
- this.$ = r[e - 2], u.setClickEvent(r[e - 2], r[e - 1], null), u.setLink(r[e - 2], r[e]);
1186
+ this.$ = c[o - 2], d.setClickEvent(c[o - 2], c[o - 1], null), d.setLink(c[o - 2], c[o]);
312
1187
  break;
313
1188
  case 37:
314
- this.$ = r[e - 3], u.setClickEvent(r[e - 3], r[e - 2], r[e - 1]), u.setLink(r[e - 3], r[e]);
1189
+ this.$ = c[o - 3], d.setClickEvent(c[o - 3], c[o - 2], c[o - 1]), d.setLink(c[o - 3], c[o]);
315
1190
  break;
316
1191
  case 38:
317
- this.$ = r[e - 2], u.setClickEvent(r[e - 2], r[e], null), u.setLink(r[e - 2], r[e - 1]);
1192
+ this.$ = c[o - 2], d.setClickEvent(c[o - 2], c[o], null), d.setLink(c[o - 2], c[o - 1]);
318
1193
  break;
319
1194
  case 39:
320
- this.$ = r[e - 3], u.setClickEvent(r[e - 3], r[e - 1], r[e]), u.setLink(r[e - 3], r[e - 2]);
1195
+ this.$ = c[o - 3], d.setClickEvent(c[o - 3], c[o - 1], c[o]), d.setLink(c[o - 3], c[o - 2]);
321
1196
  break;
322
1197
  case 40:
323
- this.$ = r[e - 1], u.setLink(r[e - 1], r[e]);
1198
+ this.$ = c[o - 1], d.setLink(c[o - 1], c[o]);
324
1199
  break;
325
1200
  case 41:
326
1201
  case 47:
327
- this.$ = r[e - 1] + " " + r[e];
1202
+ this.$ = c[o - 1] + " " + c[o];
328
1203
  break;
329
1204
  case 42:
330
1205
  case 43:
331
1206
  case 45:
332
- this.$ = r[e - 2] + " " + r[e - 1] + " " + r[e];
1207
+ this.$ = c[o - 2] + " " + c[o - 1] + " " + c[o];
333
1208
  break;
334
1209
  case 44:
335
1210
  case 46:
336
- this.$ = r[e - 3] + " " + r[e - 2] + " " + r[e - 1] + " " + r[e];
1211
+ this.$ = c[o - 3] + " " + c[o - 2] + " " + c[o - 1] + " " + c[o];
337
1212
  break;
338
1213
  }
339
1214
  }, "anonymous"),
340
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: s, 13: n, 14: a, 15: h, 16: f, 17: _, 18: F, 19: 18, 20: E, 21: p, 22: M, 23: V, 24: P, 25: B, 26: C, 27: v, 28: S, 29: L, 30: Y, 31: H, 33: j, 35: Q, 36: q, 37: 24, 38: y, 40: x }, t(i, [2, 7], { 1: [2, 1] }), t(i, [2, 3]), { 9: 36, 11: 17, 12: s, 13: n, 14: a, 15: h, 16: f, 17: _, 18: F, 19: 18, 20: E, 21: p, 22: M, 23: V, 24: P, 25: B, 26: C, 27: v, 28: S, 29: L, 30: Y, 31: H, 33: j, 35: Q, 36: q, 37: 24, 38: y, 40: x }, t(i, [2, 5]), t(i, [2, 6]), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 19]), t(i, [2, 20]), t(i, [2, 21]), t(i, [2, 22]), t(i, [2, 23]), t(i, [2, 24]), t(i, [2, 25]), t(i, [2, 26]), t(i, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(i, [2, 30]), t(i, [2, 31]), t(i, [2, 32]), { 39: [1, 39] }, t(i, [2, 8]), t(i, [2, 9]), t(i, [2, 10]), t(i, [2, 11]), t(i, [2, 12]), t(i, [2, 13]), t(i, [2, 14]), t(i, [2, 15]), t(i, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(i, [2, 4]), t(i, [2, 28]), t(i, [2, 29]), t(i, [2, 33]), t(i, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(i, [2, 40], { 41: [1, 44] }), t(i, [2, 35], { 43: [1, 45] }), t(i, [2, 36]), t(i, [2, 38], { 42: [1, 46] }), t(i, [2, 37]), t(i, [2, 39])],
1215
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: q, 26: O, 27: M, 28: I, 29: V, 30: W, 31: Z, 33: Q, 35: D, 36: H, 37: 24, 38: x, 40: Y }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: q, 26: O, 27: M, 28: I, 29: V, 30: W, 31: Z, 33: Q, 35: D, 36: H, 37: 24, 38: x, 40: Y }, 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])],
341
1216
  defaultActions: {},
342
- parseError: /* @__PURE__ */ l(function(c, d) {
343
- if (d.recoverable)
344
- this.trace(c);
1217
+ parseError: /* @__PURE__ */ h(function(u, m) {
1218
+ if (m.recoverable)
1219
+ this.trace(u);
345
1220
  else {
346
- var k = new Error(c);
347
- throw k.hash = d, k;
1221
+ var T = new Error(u);
1222
+ throw T.hash = m, T;
348
1223
  }
349
1224
  }, "parseError"),
350
- parse: /* @__PURE__ */ l(function(c) {
351
- var d = this, k = [0], u = [], m = [null], r = [], o = this.table, e = "", I = 0, D = 0, A = 2, N = 1, W = r.slice.call(arguments, 1), O = Object.create(this.lexer), $ = { yy: {} };
352
- for (var at in this.yy)
353
- Object.prototype.hasOwnProperty.call(this.yy, at) && ($.yy[at] = this.yy[at]);
354
- O.setInput(c, $.yy), $.yy.lexer = O, $.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
355
- var nt = O.yylloc;
356
- r.push(nt);
357
- var dt = O.options && O.options.ranges;
358
- typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
359
- function ft(U) {
360
- k.length = k.length - 2 * U, m.length = m.length - U, r.length = r.length - U;
1225
+ parse: /* @__PURE__ */ h(function(u) {
1226
+ var m = this, T = [0], d = [], w = [null], c = [], l = this.table, o = "", P = 0, z = 0, R = 2, K = 1, G = c.slice.call(arguments, 1), $ = Object.create(this.lexer), it = { yy: {} };
1227
+ for (var k in this.yy)
1228
+ Object.prototype.hasOwnProperty.call(this.yy, k) && (it.yy[k] = this.yy[k]);
1229
+ $.setInput(u, it.yy), it.yy.lexer = $, it.yy.parser = this, typeof $.yylloc > "u" && ($.yylloc = {});
1230
+ var A = $.yylloc;
1231
+ c.push(A);
1232
+ var N = $.options && $.options.ranges;
1233
+ typeof it.yy.parseError == "function" ? this.parseError = it.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1234
+ function f(ot) {
1235
+ T.length = T.length - 2 * ot, w.length = w.length - ot, c.length = c.length - ot;
361
1236
  }
362
- l(ft, "popStack");
363
- function ot() {
364
- var U;
365
- return U = u.pop() || O.lex() || N, typeof U != "number" && (U instanceof Array && (u = U, U = u.pop()), U = d.symbols_[U] || U), U;
1237
+ h(f, "popStack");
1238
+ function J() {
1239
+ var ot;
1240
+ return ot = d.pop() || $.lex() || K, typeof ot != "number" && (ot instanceof Array && (d = ot, ot = d.pop()), ot = m.symbols_[ot] || ot), ot;
366
1241
  }
367
- l(ot, "lex");
368
- for (var z, Z, G, st, K = {}, rt, J, Rt, yt; ; ) {
369
- if (Z = k[k.length - 1], this.defaultActions[Z] ? G = this.defaultActions[Z] : ((z === null || typeof z > "u") && (z = ot()), G = o[Z] && o[Z][z]), typeof G > "u" || !G.length || !G[0]) {
370
- var wt = "";
371
- yt = [];
372
- for (rt in o[Z])
373
- this.terminals_[rt] && rt > A && yt.push("'" + this.terminals_[rt] + "'");
374
- O.showPosition ? wt = "Parse error on line " + (I + 1) + `:
375
- ` + O.showPosition() + `
376
- Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : wt = "Parse error on line " + (I + 1) + ": Unexpected " + (z == N ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(wt, {
377
- text: O.match,
378
- token: this.terminals_[z] || z,
379
- line: O.yylineno,
380
- loc: nt,
381
- expected: yt
1242
+ h(J, "lex");
1243
+ for (var L, j, X, rt, st = {}, pt, lt, Ae, Bt; ; ) {
1244
+ if (j = T[T.length - 1], this.defaultActions[j] ? X = this.defaultActions[j] : ((L === null || typeof L > "u") && (L = J()), X = l[j] && l[j][L]), typeof X > "u" || !X.length || !X[0]) {
1245
+ var ne = "";
1246
+ Bt = [];
1247
+ for (pt in l[j])
1248
+ this.terminals_[pt] && pt > R && Bt.push("'" + this.terminals_[pt] + "'");
1249
+ $.showPosition ? ne = "Parse error on line " + (P + 1) + `:
1250
+ ` + $.showPosition() + `
1251
+ Expecting ` + Bt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : ne = "Parse error on line " + (P + 1) + ": Unexpected " + (L == K ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(ne, {
1252
+ text: $.match,
1253
+ token: this.terminals_[L] || L,
1254
+ line: $.yylineno,
1255
+ loc: A,
1256
+ expected: Bt
382
1257
  });
383
1258
  }
384
- if (G[0] instanceof Array && G.length > 1)
385
- throw new Error("Parse Error: multiple actions possible at state: " + Z + ", token: " + z);
386
- switch (G[0]) {
1259
+ if (X[0] instanceof Array && X.length > 1)
1260
+ throw new Error("Parse Error: multiple actions possible at state: " + j + ", token: " + L);
1261
+ switch (X[0]) {
387
1262
  case 1:
388
- k.push(z), m.push(O.yytext), r.push(O.yylloc), k.push(G[1]), z = null, D = O.yyleng, e = O.yytext, I = O.yylineno, nt = O.yylloc;
1263
+ T.push(L), w.push($.yytext), c.push($.yylloc), T.push(X[1]), L = null, z = $.yyleng, o = $.yytext, P = $.yylineno, A = $.yylloc;
389
1264
  break;
390
1265
  case 2:
391
- if (J = this.productions_[G[1]][1], K.$ = m[m.length - J], K._$ = {
392
- first_line: r[r.length - (J || 1)].first_line,
393
- last_line: r[r.length - 1].last_line,
394
- first_column: r[r.length - (J || 1)].first_column,
395
- last_column: r[r.length - 1].last_column
396
- }, dt && (K._$.range = [
397
- r[r.length - (J || 1)].range[0],
398
- r[r.length - 1].range[1]
399
- ]), st = this.performAction.apply(K, [
400
- e,
401
- D,
402
- I,
403
- $.yy,
404
- G[1],
405
- m,
406
- r
407
- ].concat(W)), typeof st < "u")
408
- return st;
409
- J && (k = k.slice(0, -1 * J * 2), m = m.slice(0, -1 * J), r = r.slice(0, -1 * J)), k.push(this.productions_[G[1]][0]), m.push(K.$), r.push(K._$), Rt = o[k[k.length - 2]][k[k.length - 1]], k.push(Rt);
1266
+ if (lt = this.productions_[X[1]][1], st.$ = w[w.length - lt], st._$ = {
1267
+ first_line: c[c.length - (lt || 1)].first_line,
1268
+ last_line: c[c.length - 1].last_line,
1269
+ first_column: c[c.length - (lt || 1)].first_column,
1270
+ last_column: c[c.length - 1].last_column
1271
+ }, N && (st._$.range = [
1272
+ c[c.length - (lt || 1)].range[0],
1273
+ c[c.length - 1].range[1]
1274
+ ]), rt = this.performAction.apply(st, [
1275
+ o,
1276
+ z,
1277
+ P,
1278
+ it.yy,
1279
+ X[1],
1280
+ w,
1281
+ c
1282
+ ].concat(G)), typeof rt < "u")
1283
+ return rt;
1284
+ lt && (T = T.slice(0, -1 * lt * 2), w = w.slice(0, -1 * lt), c = c.slice(0, -1 * lt)), T.push(this.productions_[X[1]][0]), w.push(st.$), c.push(st._$), Ae = l[T[T.length - 2]][T[T.length - 1]], T.push(Ae);
410
1285
  break;
411
1286
  case 3:
412
1287
  return !0;
@@ -414,18 +1289,18 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : wt =
414
1289
  }
415
1290
  return !0;
416
1291
  }, "parse")
417
- }, T = /* @__PURE__ */ function() {
418
- var w = {
1292
+ }, S = /* @__PURE__ */ function() {
1293
+ var U = {
419
1294
  EOF: 1,
420
- parseError: /* @__PURE__ */ l(function(d, k) {
1295
+ parseError: /* @__PURE__ */ h(function(m, T) {
421
1296
  if (this.yy.parser)
422
- this.yy.parser.parseError(d, k);
1297
+ this.yy.parser.parseError(m, T);
423
1298
  else
424
- throw new Error(d);
1299
+ throw new Error(m);
425
1300
  }, "parseError"),
426
1301
  // resets the lexer, sets new input
427
- setInput: /* @__PURE__ */ l(function(c, d) {
428
- return this.yy = d || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1302
+ setInput: /* @__PURE__ */ h(function(u, m) {
1303
+ return this.yy = m || this.yy || {}, this._input = u, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
429
1304
  first_line: 1,
430
1305
  first_column: 0,
431
1306
  last_line: 1,
@@ -433,32 +1308,32 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : wt =
433
1308
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
434
1309
  }, "setInput"),
435
1310
  // consumes and returns one char from the input
436
- input: /* @__PURE__ */ l(function() {
437
- var c = this._input[0];
438
- this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
439
- var d = c.match(/(?:\r\n?|\n).*/g);
440
- 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), c;
1311
+ input: /* @__PURE__ */ h(function() {
1312
+ var u = this._input[0];
1313
+ this.yytext += u, this.yyleng++, this.offset++, this.match += u, this.matched += u;
1314
+ var m = u.match(/(?:\r\n?|\n).*/g);
1315
+ return m ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), u;
441
1316
  }, "input"),
442
1317
  // unshifts one char (or a string) into the input
443
- unput: /* @__PURE__ */ l(function(c) {
444
- var d = c.length, k = c.split(/(?:\r\n?|\n)/g);
445
- this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
446
- var u = this.match.split(/(?:\r\n?|\n)/g);
447
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), k.length - 1 && (this.yylineno -= k.length - 1);
448
- var m = this.yylloc.range;
1318
+ unput: /* @__PURE__ */ h(function(u) {
1319
+ var m = u.length, T = u.split(/(?:\r\n?|\n)/g);
1320
+ this._input = u + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - m), this.offset -= m;
1321
+ var d = this.match.split(/(?:\r\n?|\n)/g);
1322
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), T.length - 1 && (this.yylineno -= T.length - 1);
1323
+ var w = this.yylloc.range;
449
1324
  return this.yylloc = {
450
1325
  first_line: this.yylloc.first_line,
451
1326
  last_line: this.yylineno + 1,
452
1327
  first_column: this.yylloc.first_column,
453
- last_column: k ? (k.length === u.length ? this.yylloc.first_column : 0) + u[u.length - k.length].length - k[0].length : this.yylloc.first_column - d
454
- }, this.options.ranges && (this.yylloc.range = [m[0], m[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
1328
+ last_column: T ? (T.length === d.length ? this.yylloc.first_column : 0) + d[d.length - T.length].length - T[0].length : this.yylloc.first_column - m
1329
+ }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - m]), this.yyleng = this.yytext.length, this;
455
1330
  }, "unput"),
456
1331
  // When called from action, caches matched text and appends it on next action
457
- more: /* @__PURE__ */ l(function() {
1332
+ more: /* @__PURE__ */ h(function() {
458
1333
  return this._more = !0, this;
459
1334
  }, "more"),
460
1335
  // 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.
461
- reject: /* @__PURE__ */ l(function() {
1336
+ reject: /* @__PURE__ */ h(function() {
462
1337
  if (this.options.backtrack_lexer)
463
1338
  this._backtrack = !0;
464
1339
  else
@@ -471,29 +1346,29 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : wt =
471
1346
  return this;
472
1347
  }, "reject"),
473
1348
  // retain first n characters of the match
474
- less: /* @__PURE__ */ l(function(c) {
475
- this.unput(this.match.slice(c));
1349
+ less: /* @__PURE__ */ h(function(u) {
1350
+ this.unput(this.match.slice(u));
476
1351
  }, "less"),
477
1352
  // displays already matched input, i.e. for error messages
478
- pastInput: /* @__PURE__ */ l(function() {
479
- var c = this.matched.substr(0, this.matched.length - this.match.length);
480
- return (c.length > 20 ? "..." : "") + c.substr(-20).replace(/\n/g, "");
1353
+ pastInput: /* @__PURE__ */ h(function() {
1354
+ var u = this.matched.substr(0, this.matched.length - this.match.length);
1355
+ return (u.length > 20 ? "..." : "") + u.substr(-20).replace(/\n/g, "");
481
1356
  }, "pastInput"),
482
1357
  // displays upcoming input, i.e. for error messages
483
- upcomingInput: /* @__PURE__ */ l(function() {
484
- var c = this.match;
485
- return c.length < 20 && (c += this._input.substr(0, 20 - c.length)), (c.substr(0, 20) + (c.length > 20 ? "..." : "")).replace(/\n/g, "");
1358
+ upcomingInput: /* @__PURE__ */ h(function() {
1359
+ var u = this.match;
1360
+ return u.length < 20 && (u += this._input.substr(0, 20 - u.length)), (u.substr(0, 20) + (u.length > 20 ? "..." : "")).replace(/\n/g, "");
486
1361
  }, "upcomingInput"),
487
1362
  // displays the character position where the lexing error occurred, i.e. for error messages
488
- showPosition: /* @__PURE__ */ l(function() {
489
- var c = this.pastInput(), d = new Array(c.length + 1).join("-");
490
- return c + this.upcomingInput() + `
491
- ` + d + "^";
1363
+ showPosition: /* @__PURE__ */ h(function() {
1364
+ var u = this.pastInput(), m = new Array(u.length + 1).join("-");
1365
+ return u + this.upcomingInput() + `
1366
+ ` + m + "^";
492
1367
  }, "showPosition"),
493
1368
  // test the lexed token: return FALSE when not a match, otherwise return token
494
- test_match: /* @__PURE__ */ l(function(c, d) {
495
- var k, u, m;
496
- if (this.options.backtrack_lexer && (m = {
1369
+ test_match: /* @__PURE__ */ h(function(u, m) {
1370
+ var T, d, w;
1371
+ if (this.options.backtrack_lexer && (w = {
497
1372
  yylineno: this.yylineno,
498
1373
  yylloc: {
499
1374
  first_line: this.yylloc.first_line,
@@ -512,41 +1387,41 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : wt =
512
1387
  yy: this.yy,
513
1388
  conditionStack: this.conditionStack.slice(0),
514
1389
  done: this.done
515
- }, this.options.ranges && (m.yylloc.range = this.yylloc.range.slice(0))), u = c[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
1390
+ }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), d = u[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
516
1391
  first_line: this.yylloc.last_line,
517
1392
  last_line: this.yylineno + 1,
518
1393
  first_column: this.yylloc.last_column,
519
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
520
- }, this.yytext += c[0], this.match += c[0], this.matches = c, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(c[0].length), this.matched += c[0], k = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), k)
521
- return k;
1394
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + u[0].length
1395
+ }, this.yytext += u[0], this.match += u[0], this.matches = u, 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(u[0].length), this.matched += u[0], T = this.performAction.call(this, this.yy, this, m, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), T)
1396
+ return T;
522
1397
  if (this._backtrack) {
523
- for (var r in m)
524
- this[r] = m[r];
1398
+ for (var c in w)
1399
+ this[c] = w[c];
525
1400
  return !1;
526
1401
  }
527
1402
  return !1;
528
1403
  }, "test_match"),
529
1404
  // return next match in input
530
- next: /* @__PURE__ */ l(function() {
1405
+ next: /* @__PURE__ */ h(function() {
531
1406
  if (this.done)
532
1407
  return this.EOF;
533
1408
  this._input || (this.done = !0);
534
- var c, d, k, u;
1409
+ var u, m, T, d;
535
1410
  this._more || (this.yytext = "", this.match = "");
536
- for (var m = this._currentRules(), r = 0; r < m.length; r++)
537
- if (k = this._input.match(this.rules[m[r]]), k && (!d || k[0].length > d[0].length)) {
538
- if (d = k, u = r, this.options.backtrack_lexer) {
539
- if (c = this.test_match(k, m[r]), c !== !1)
540
- return c;
1411
+ for (var w = this._currentRules(), c = 0; c < w.length; c++)
1412
+ if (T = this._input.match(this.rules[w[c]]), T && (!m || T[0].length > m[0].length)) {
1413
+ if (m = T, d = c, this.options.backtrack_lexer) {
1414
+ if (u = this.test_match(T, w[c]), u !== !1)
1415
+ return u;
541
1416
  if (this._backtrack) {
542
- d = !1;
1417
+ m = !1;
543
1418
  continue;
544
1419
  } else
545
1420
  return !1;
546
1421
  } else if (!this.options.flex)
547
1422
  break;
548
1423
  }
549
- return d ? (c = this.test_match(d, m[u]), c !== !1 ? c : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1424
+ return m ? (u = this.test_match(m, w[d]), u !== !1 ? u : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
550
1425
  ` + this.showPosition(), {
551
1426
  text: "",
552
1427
  token: null,
@@ -554,38 +1429,38 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : wt =
554
1429
  });
555
1430
  }, "next"),
556
1431
  // return next match that has a token
557
- lex: /* @__PURE__ */ l(function() {
558
- var d = this.next();
559
- return d || this.lex();
1432
+ lex: /* @__PURE__ */ h(function() {
1433
+ var m = this.next();
1434
+ return m || this.lex();
560
1435
  }, "lex"),
561
1436
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
562
- begin: /* @__PURE__ */ l(function(d) {
563
- this.conditionStack.push(d);
1437
+ begin: /* @__PURE__ */ h(function(m) {
1438
+ this.conditionStack.push(m);
564
1439
  }, "begin"),
565
1440
  // pop the previously active lexer condition state off the condition stack
566
- popState: /* @__PURE__ */ l(function() {
567
- var d = this.conditionStack.length - 1;
568
- return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1441
+ popState: /* @__PURE__ */ h(function() {
1442
+ var m = this.conditionStack.length - 1;
1443
+ return m > 0 ? this.conditionStack.pop() : this.conditionStack[0];
569
1444
  }, "popState"),
570
1445
  // produce the lexer rule set which is active for the currently active lexer condition state
571
- _currentRules: /* @__PURE__ */ l(function() {
1446
+ _currentRules: /* @__PURE__ */ h(function() {
572
1447
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
573
1448
  }, "_currentRules"),
574
1449
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
575
- topState: /* @__PURE__ */ l(function(d) {
576
- return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
1450
+ topState: /* @__PURE__ */ h(function(m) {
1451
+ return m = this.conditionStack.length - 1 - Math.abs(m || 0), m >= 0 ? this.conditionStack[m] : "INITIAL";
577
1452
  }, "topState"),
578
1453
  // alias for begin(condition)
579
- pushState: /* @__PURE__ */ l(function(d) {
580
- this.begin(d);
1454
+ pushState: /* @__PURE__ */ h(function(m) {
1455
+ this.begin(m);
581
1456
  }, "pushState"),
582
1457
  // return the number of states currently on the stack
583
- stateStackSize: /* @__PURE__ */ l(function() {
1458
+ stateStackSize: /* @__PURE__ */ h(function() {
584
1459
  return this.conditionStack.length;
585
1460
  }, "stateStackSize"),
586
1461
  options: { "case-insensitive": !0 },
587
- performAction: /* @__PURE__ */ l(function(d, k, u, m) {
588
- switch (u) {
1462
+ performAction: /* @__PURE__ */ h(function(m, T, d, w) {
1463
+ switch (d) {
589
1464
  case 0:
590
1465
  return this.begin("open_directive"), "open_directive";
591
1466
  case 1:
@@ -707,653 +1582,653 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : wt =
707
1582
  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],
708
1583
  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 } }
709
1584
  };
710
- return w;
1585
+ return U;
711
1586
  }();
712
- b.lexer = T;
713
- function g() {
1587
+ F.lexer = S;
1588
+ function v() {
714
1589
  this.yy = {};
715
1590
  }
716
- return l(g, "Parser"), g.prototype = b, b.Parser = g, new g();
1591
+ return h(v, "Parser"), v.prototype = F, F.Parser = v, new v();
717
1592
  }();
718
- _t.parser = _t;
719
- var ze = _t;
720
- X.extend(Fe);
721
- X.extend(Oe);
722
- X.extend(Pe);
723
- var Ut = { friday: 5, saturday: 6 }, tt = "", It = "", At = void 0, Lt = "", ht = [], kt = [], Yt = /* @__PURE__ */ new Map(), Ft = [], xt = [], ut = "", Wt = "", te = ["active", "done", "crit", "milestone", "vert"], Ot = [], mt = !1, Vt = !1, Pt = "sunday", bt = "saturday", Dt = 0, Re = /* @__PURE__ */ l(function() {
724
- Ft = [], xt = [], ut = "", Ot = [], pt = 0, Ct = void 0, vt = void 0, R = [], tt = "", It = "", Wt = "", At = void 0, Lt = "", ht = [], kt = [], mt = !1, Vt = !1, Dt = 0, Yt = /* @__PURE__ */ new Map(), ke(), Pt = "sunday", bt = "saturday";
725
- }, "clear"), Ne = /* @__PURE__ */ l(function(t) {
726
- It = t;
727
- }, "setAxisFormat"), Be = /* @__PURE__ */ l(function() {
728
- return It;
729
- }, "getAxisFormat"), Ge = /* @__PURE__ */ l(function(t) {
730
- At = t;
731
- }, "setTickInterval"), He = /* @__PURE__ */ l(function() {
732
- return At;
733
- }, "getTickInterval"), je = /* @__PURE__ */ l(function(t) {
734
- Lt = t;
735
- }, "setTodayMarker"), Xe = /* @__PURE__ */ l(function() {
736
- return Lt;
737
- }, "getTodayMarker"), qe = /* @__PURE__ */ l(function(t) {
738
- tt = t;
739
- }, "setDateFormat"), Ue = /* @__PURE__ */ l(function() {
740
- mt = !0;
741
- }, "enableInclusiveEndDates"), Ze = /* @__PURE__ */ l(function() {
742
- return mt;
743
- }, "endDatesAreInclusive"), Qe = /* @__PURE__ */ l(function() {
744
- Vt = !0;
745
- }, "enableTopAxis"), $e = /* @__PURE__ */ l(function() {
746
- return Vt;
747
- }, "topAxisEnabled"), Ke = /* @__PURE__ */ l(function(t) {
748
- Wt = t;
749
- }, "setDisplayMode"), Je = /* @__PURE__ */ l(function() {
750
- return Wt;
751
- }, "getDisplayMode"), tr = /* @__PURE__ */ l(function() {
752
- return tt;
753
- }, "getDateFormat"), er = /* @__PURE__ */ l(function(t) {
754
- ht = t.toLowerCase().split(/[\s,]+/);
755
- }, "setIncludes"), rr = /* @__PURE__ */ l(function() {
756
- return ht;
757
- }, "getIncludes"), sr = /* @__PURE__ */ l(function(t) {
758
- kt = t.toLowerCase().split(/[\s,]+/);
759
- }, "setExcludes"), ir = /* @__PURE__ */ l(function() {
760
- return kt;
761
- }, "getExcludes"), ar = /* @__PURE__ */ l(function() {
762
- return Yt;
763
- }, "getLinks"), nr = /* @__PURE__ */ l(function(t) {
764
- ut = t, Ft.push(t);
765
- }, "addSection"), or = /* @__PURE__ */ l(function() {
766
- return Ft;
767
- }, "getSections"), cr = /* @__PURE__ */ l(function() {
768
- let t = Zt();
769
- const i = 10;
770
- let s = 0;
771
- for (; !t && s < i; )
772
- t = Zt(), s++;
773
- return xt = R, xt;
774
- }, "getTasks"), ee = /* @__PURE__ */ l(function(t, i, s, n) {
775
- const a = t.format(i.trim()), h = t.format("YYYY-MM-DD");
776
- return n.includes(a) || n.includes(h) ? !1 : s.includes("weekends") && (t.isoWeekday() === Ut[bt] || t.isoWeekday() === Ut[bt] + 1) || s.includes(t.format("dddd").toLowerCase()) ? !0 : s.includes(a) || s.includes(h);
777
- }, "isInvalidDate"), lr = /* @__PURE__ */ l(function(t) {
778
- Pt = t;
779
- }, "setWeekday"), ur = /* @__PURE__ */ l(function() {
1593
+ ye.parser = ye;
1594
+ var Aa = ye;
1595
+ at.extend(Fa);
1596
+ at.extend(Ua);
1597
+ at.extend(La);
1598
+ var Ge = { friday: 5, saturday: 6 }, ut = "", De = "", Ce = void 0, Me = "", zt = [], Pt = [], _e = /* @__PURE__ */ new Map(), Se = [], te = [], Et = "", Fe = "", wn = ["active", "done", "crit", "milestone", "vert"], Ye = [], Rt = !1, Ue = !1, Ee = "sunday", ee = "saturday", ke = 0, Ia = /* @__PURE__ */ h(function() {
1599
+ Se = [], te = [], Et = "", Ye = [], Gt = 0, ve = void 0, jt = void 0, tt = [], ut = "", De = "", Fe = "", Ce = void 0, Me = "", zt = [], Pt = [], Rt = !1, Ue = !1, ke = 0, _e = /* @__PURE__ */ new Map(), On(), Ee = "sunday", ee = "saturday";
1600
+ }, "clear"), Wa = /* @__PURE__ */ h(function(t) {
1601
+ De = t;
1602
+ }, "setAxisFormat"), Oa = /* @__PURE__ */ h(function() {
1603
+ return De;
1604
+ }, "getAxisFormat"), Ha = /* @__PURE__ */ h(function(t) {
1605
+ Ce = t;
1606
+ }, "setTickInterval"), Na = /* @__PURE__ */ h(function() {
1607
+ return Ce;
1608
+ }, "getTickInterval"), Va = /* @__PURE__ */ h(function(t) {
1609
+ Me = t;
1610
+ }, "setTodayMarker"), za = /* @__PURE__ */ h(function() {
1611
+ return Me;
1612
+ }, "getTodayMarker"), Pa = /* @__PURE__ */ h(function(t) {
1613
+ ut = t;
1614
+ }, "setDateFormat"), Ra = /* @__PURE__ */ h(function() {
1615
+ Rt = !0;
1616
+ }, "enableInclusiveEndDates"), Ba = /* @__PURE__ */ h(function() {
1617
+ return Rt;
1618
+ }, "endDatesAreInclusive"), Za = /* @__PURE__ */ h(function() {
1619
+ Ue = !0;
1620
+ }, "enableTopAxis"), Xa = /* @__PURE__ */ h(function() {
1621
+ return Ue;
1622
+ }, "topAxisEnabled"), qa = /* @__PURE__ */ h(function(t) {
1623
+ Fe = t;
1624
+ }, "setDisplayMode"), Ga = /* @__PURE__ */ h(function() {
1625
+ return Fe;
1626
+ }, "getDisplayMode"), ja = /* @__PURE__ */ h(function() {
1627
+ return ut;
1628
+ }, "getDateFormat"), Qa = /* @__PURE__ */ h(function(t) {
1629
+ zt = t.toLowerCase().split(/[\s,]+/);
1630
+ }, "setIncludes"), $a = /* @__PURE__ */ h(function() {
1631
+ return zt;
1632
+ }, "getIncludes"), Ja = /* @__PURE__ */ h(function(t) {
1633
+ Pt = t.toLowerCase().split(/[\s,]+/);
1634
+ }, "setExcludes"), Ka = /* @__PURE__ */ h(function() {
780
1635
  return Pt;
781
- }, "getWeekday"), dr = /* @__PURE__ */ l(function(t) {
782
- bt = t;
783
- }, "setWeekend"), re = /* @__PURE__ */ l(function(t, i, s, n) {
784
- if (!s.length || t.manualEndTime)
1636
+ }, "getExcludes"), ti = /* @__PURE__ */ h(function() {
1637
+ return _e;
1638
+ }, "getLinks"), ei = /* @__PURE__ */ h(function(t) {
1639
+ Et = t, Se.push(t);
1640
+ }, "addSection"), ni = /* @__PURE__ */ h(function() {
1641
+ return Se;
1642
+ }, "getSections"), ri = /* @__PURE__ */ h(function() {
1643
+ let t = je();
1644
+ const e = 10;
1645
+ let n = 0;
1646
+ for (; !t && n < e; )
1647
+ t = je(), n++;
1648
+ return te = tt, te;
1649
+ }, "getTasks"), Dn = /* @__PURE__ */ h(function(t, e, n, r) {
1650
+ const a = t.format(e.trim()), i = t.format("YYYY-MM-DD");
1651
+ return r.includes(a) || r.includes(i) ? !1 : n.includes("weekends") && (t.isoWeekday() === Ge[ee] || t.isoWeekday() === Ge[ee] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(a) || n.includes(i);
1652
+ }, "isInvalidDate"), ai = /* @__PURE__ */ h(function(t) {
1653
+ Ee = t;
1654
+ }, "setWeekday"), ii = /* @__PURE__ */ h(function() {
1655
+ return Ee;
1656
+ }, "getWeekday"), si = /* @__PURE__ */ h(function(t) {
1657
+ ee = t;
1658
+ }, "setWeekend"), Cn = /* @__PURE__ */ h(function(t, e, n, r) {
1659
+ if (!n.length || t.manualEndTime)
785
1660
  return;
786
1661
  let a;
787
- t.startTime instanceof Date ? a = X(t.startTime) : a = X(t.startTime, i, !0), a = a.add(1, "d");
788
- let h;
789
- t.endTime instanceof Date ? h = X(t.endTime) : h = X(t.endTime, i, !0);
790
- const [f, _] = fr(
1662
+ t.startTime instanceof Date ? a = at(t.startTime) : a = at(t.startTime, e, !0), a = a.add(1, "d");
1663
+ let i;
1664
+ t.endTime instanceof Date ? i = at(t.endTime) : i = at(t.endTime, e, !0);
1665
+ const [s, y] = oi(
791
1666
  a,
792
- h,
793
1667
  i,
794
- s,
795
- n
1668
+ e,
1669
+ n,
1670
+ r
796
1671
  );
797
- t.endTime = f.toDate(), t.renderEndTime = _;
798
- }, "checkTaskDates"), fr = /* @__PURE__ */ l(function(t, i, s, n, a) {
799
- let h = !1, f = null;
800
- for (; t <= i; )
801
- h || (f = i.toDate()), h = ee(t, s, n, a), h && (i = i.add(1, "d")), t = t.add(1, "d");
802
- return [i, f];
803
- }, "fixTaskDates"), St = /* @__PURE__ */ l(function(t, i, s) {
804
- if (s = s.trim(), (i.trim() === "x" || i.trim() === "X") && /^\d+$/.test(s))
805
- return new Date(Number(s));
806
- const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(s);
1672
+ t.endTime = s.toDate(), t.renderEndTime = y;
1673
+ }, "checkTaskDates"), oi = /* @__PURE__ */ h(function(t, e, n, r, a) {
1674
+ let i = !1, s = null;
1675
+ for (; t <= e; )
1676
+ i || (s = e.toDate()), i = Dn(t, n, r, a), i && (e = e.add(1, "d")), t = t.add(1, "d");
1677
+ return [e, s];
1678
+ }, "fixTaskDates"), pe = /* @__PURE__ */ h(function(t, e, n) {
1679
+ if (n = n.trim(), (e.trim() === "x" || e.trim() === "X") && /^\d+$/.test(n))
1680
+ return new Date(Number(n));
1681
+ const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
807
1682
  if (a !== null) {
808
- let f = null;
809
- for (const F of a.groups.ids.split(" ")) {
810
- let E = it(F);
811
- E !== void 0 && (!f || E.endTime > f.endTime) && (f = E);
1683
+ let s = null;
1684
+ for (const _ of a.groups.ids.split(" ")) {
1685
+ let p = Ct(_);
1686
+ p !== void 0 && (!s || p.endTime > s.endTime) && (s = p);
812
1687
  }
813
- if (f)
814
- return f.endTime;
815
- const _ = /* @__PURE__ */ new Date();
816
- return _.setHours(0, 0, 0, 0), _;
817
- }
818
- let h = X(s, i.trim(), !0);
819
- if (h.isValid())
820
- return h.toDate();
1688
+ if (s)
1689
+ return s.endTime;
1690
+ const y = /* @__PURE__ */ new Date();
1691
+ return y.setHours(0, 0, 0, 0), y;
1692
+ }
1693
+ let i = at(n, e.trim(), !0);
1694
+ if (i.isValid())
1695
+ return i.toDate();
821
1696
  {
822
- Tt.debug("Invalid date:" + s), Tt.debug("With date format:" + i.trim());
823
- const f = new Date(s);
824
- if (f === void 0 || isNaN(f.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1697
+ Qt.debug("Invalid date:" + n), Qt.debug("With date format:" + e.trim());
1698
+ const s = new Date(n);
1699
+ if (s === void 0 || isNaN(s.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
825
1700
  // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
826
1701
  // This can cause virtually infinite loops while rendering, so for the
827
1702
  // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
828
1703
  // invalid.
829
- f.getFullYear() < -1e4 || f.getFullYear() > 1e4)
830
- throw new Error("Invalid date:" + s);
831
- return f;
1704
+ s.getFullYear() < -1e4 || s.getFullYear() > 1e4)
1705
+ throw new Error("Invalid date:" + n);
1706
+ return s;
832
1707
  }
833
- }, "getStartDate"), se = /* @__PURE__ */ l(function(t) {
834
- const i = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
835
- return i !== null ? [Number.parseFloat(i[1]), i[2]] : [NaN, "ms"];
836
- }, "parseDuration"), ie = /* @__PURE__ */ l(function(t, i, s, n = !1) {
837
- s = s.trim();
838
- const h = /^until\s+(?<ids>[\d\w- ]+)/.exec(s);
839
- if (h !== null) {
840
- let p = null;
841
- for (const V of h.groups.ids.split(" ")) {
842
- let P = it(V);
843
- P !== void 0 && (!p || P.startTime < p.startTime) && (p = P);
1708
+ }, "getStartDate"), Mn = /* @__PURE__ */ h(function(t) {
1709
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1710
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1711
+ }, "parseDuration"), _n = /* @__PURE__ */ h(function(t, e, n, r = !1) {
1712
+ n = n.trim();
1713
+ const i = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
1714
+ if (i !== null) {
1715
+ let g = null;
1716
+ for (const C of i.groups.ids.split(" ")) {
1717
+ let b = Ct(C);
1718
+ b !== void 0 && (!g || b.startTime < g.startTime) && (g = b);
844
1719
  }
845
- if (p)
846
- return p.startTime;
847
- const M = /* @__PURE__ */ new Date();
848
- return M.setHours(0, 0, 0, 0), M;
849
- }
850
- let f = X(s, i.trim(), !0);
851
- if (f.isValid())
852
- return n && (f = f.add(1, "d")), f.toDate();
853
- let _ = X(t);
854
- const [F, E] = se(s);
855
- if (!Number.isNaN(F)) {
856
- const p = _.add(F, E);
857
- p.isValid() && (_ = p);
858
- }
859
- return _.toDate();
860
- }, "getEndDate"), pt = 0, lt = /* @__PURE__ */ l(function(t) {
861
- return t === void 0 ? (pt = pt + 1, "task" + pt) : t;
862
- }, "parseId"), hr = /* @__PURE__ */ l(function(t, i) {
863
- let s;
864
- i.substr(0, 1) === ":" ? s = i.substr(1, i.length) : s = i;
865
- const n = s.split(","), a = {};
866
- zt(n, a, te);
867
- for (let f = 0; f < n.length; f++)
868
- n[f] = n[f].trim();
869
- let h = "";
870
- switch (n.length) {
1720
+ if (g)
1721
+ return g.startTime;
1722
+ const E = /* @__PURE__ */ new Date();
1723
+ return E.setHours(0, 0, 0, 0), E;
1724
+ }
1725
+ let s = at(n, e.trim(), !0);
1726
+ if (s.isValid())
1727
+ return r && (s = s.add(1, "d")), s.toDate();
1728
+ let y = at(t);
1729
+ const [_, p] = Mn(n);
1730
+ if (!Number.isNaN(_)) {
1731
+ const g = y.add(_, p);
1732
+ g.isValid() && (y = g);
1733
+ }
1734
+ return y.toDate();
1735
+ }, "getEndDate"), Gt = 0, Ft = /* @__PURE__ */ h(function(t) {
1736
+ return t === void 0 ? (Gt = Gt + 1, "task" + Gt) : t;
1737
+ }, "parseId"), ci = /* @__PURE__ */ h(function(t, e) {
1738
+ let n;
1739
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1740
+ const r = n.split(","), a = {};
1741
+ Le(r, a, wn);
1742
+ for (let s = 0; s < r.length; s++)
1743
+ r[s] = r[s].trim();
1744
+ let i = "";
1745
+ switch (r.length) {
871
1746
  case 1:
872
- a.id = lt(), a.startTime = t.endTime, h = n[0];
1747
+ a.id = Ft(), a.startTime = t.endTime, i = r[0];
873
1748
  break;
874
1749
  case 2:
875
- a.id = lt(), a.startTime = St(void 0, tt, n[0]), h = n[1];
1750
+ a.id = Ft(), a.startTime = pe(void 0, ut, r[0]), i = r[1];
876
1751
  break;
877
1752
  case 3:
878
- a.id = lt(n[0]), a.startTime = St(void 0, tt, n[1]), h = n[2];
1753
+ a.id = Ft(r[0]), a.startTime = pe(void 0, ut, r[1]), i = r[2];
879
1754
  break;
880
1755
  }
881
- return h && (a.endTime = ie(a.startTime, tt, h, mt), a.manualEndTime = X(h, "YYYY-MM-DD", !0).isValid(), re(a, tt, kt, ht)), a;
882
- }, "compileData"), kr = /* @__PURE__ */ l(function(t, i) {
883
- let s;
884
- i.substr(0, 1) === ":" ? s = i.substr(1, i.length) : s = i;
885
- const n = s.split(","), a = {};
886
- zt(n, a, te);
887
- for (let h = 0; h < n.length; h++)
888
- n[h] = n[h].trim();
889
- switch (n.length) {
1756
+ return i && (a.endTime = _n(a.startTime, ut, i, Rt), a.manualEndTime = at(i, "YYYY-MM-DD", !0).isValid(), Cn(a, ut, Pt, zt)), a;
1757
+ }, "compileData"), li = /* @__PURE__ */ h(function(t, e) {
1758
+ let n;
1759
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1760
+ const r = n.split(","), a = {};
1761
+ Le(r, a, wn);
1762
+ for (let i = 0; i < r.length; i++)
1763
+ r[i] = r[i].trim();
1764
+ switch (r.length) {
890
1765
  case 1:
891
- a.id = lt(), a.startTime = {
1766
+ a.id = Ft(), a.startTime = {
892
1767
  type: "prevTaskEnd",
893
1768
  id: t
894
1769
  }, a.endTime = {
895
- data: n[0]
1770
+ data: r[0]
896
1771
  };
897
1772
  break;
898
1773
  case 2:
899
- a.id = lt(), a.startTime = {
1774
+ a.id = Ft(), a.startTime = {
900
1775
  type: "getStartDate",
901
- startData: n[0]
1776
+ startData: r[0]
902
1777
  }, a.endTime = {
903
- data: n[1]
1778
+ data: r[1]
904
1779
  };
905
1780
  break;
906
1781
  case 3:
907
- a.id = lt(n[0]), a.startTime = {
1782
+ a.id = Ft(r[0]), a.startTime = {
908
1783
  type: "getStartDate",
909
- startData: n[1]
1784
+ startData: r[1]
910
1785
  }, a.endTime = {
911
- data: n[2]
1786
+ data: r[2]
912
1787
  };
913
1788
  break;
914
1789
  }
915
1790
  return a;
916
- }, "parseData"), Ct, vt, R = [], ae = {}, mr = /* @__PURE__ */ l(function(t, i) {
917
- const s = {
918
- section: ut,
919
- type: ut,
1791
+ }, "parseData"), ve, jt, tt = [], Sn = {}, ui = /* @__PURE__ */ h(function(t, e) {
1792
+ const n = {
1793
+ section: Et,
1794
+ type: Et,
920
1795
  processed: !1,
921
1796
  manualEndTime: !1,
922
1797
  renderEndTime: null,
923
- raw: { data: i },
1798
+ raw: { data: e },
924
1799
  task: t,
925
1800
  classes: []
926
- }, n = kr(vt, i);
927
- s.raw.startTime = n.startTime, s.raw.endTime = n.endTime, s.id = n.id, s.prevTaskId = vt, s.active = n.active, s.done = n.done, s.crit = n.crit, s.milestone = n.milestone, s.vert = n.vert, s.order = Dt, Dt++;
928
- const a = R.push(s);
929
- vt = s.id, ae[s.id] = a - 1;
930
- }, "addTask"), it = /* @__PURE__ */ l(function(t) {
931
- const i = ae[t];
932
- return R[i];
933
- }, "findTaskById"), yr = /* @__PURE__ */ l(function(t, i) {
934
- const s = {
935
- section: ut,
936
- type: ut,
1801
+ }, r = li(jt, e);
1802
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = jt, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, n.order = ke, ke++;
1803
+ const a = tt.push(n);
1804
+ jt = n.id, Sn[n.id] = a - 1;
1805
+ }, "addTask"), Ct = /* @__PURE__ */ h(function(t) {
1806
+ const e = Sn[t];
1807
+ return tt[e];
1808
+ }, "findTaskById"), fi = /* @__PURE__ */ h(function(t, e) {
1809
+ const n = {
1810
+ section: Et,
1811
+ type: Et,
937
1812
  description: t,
938
1813
  task: t,
939
1814
  classes: []
940
- }, n = hr(Ct, i);
941
- s.startTime = n.startTime, s.endTime = n.endTime, s.id = n.id, s.active = n.active, s.done = n.done, s.crit = n.crit, s.milestone = n.milestone, s.vert = n.vert, Ct = s, xt.push(s);
942
- }, "addTaskOrg"), Zt = /* @__PURE__ */ l(function() {
943
- const t = /* @__PURE__ */ l(function(s) {
944
- const n = R[s];
1815
+ }, r = ci(ve, e);
1816
+ n.startTime = r.startTime, n.endTime = r.endTime, n.id = r.id, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, ve = n, te.push(n);
1817
+ }, "addTaskOrg"), je = /* @__PURE__ */ h(function() {
1818
+ const t = /* @__PURE__ */ h(function(n) {
1819
+ const r = tt[n];
945
1820
  let a = "";
946
- switch (R[s].raw.startTime.type) {
1821
+ switch (tt[n].raw.startTime.type) {
947
1822
  case "prevTaskEnd": {
948
- const h = it(n.prevTaskId);
949
- n.startTime = h.endTime;
1823
+ const i = Ct(r.prevTaskId);
1824
+ r.startTime = i.endTime;
950
1825
  break;
951
1826
  }
952
1827
  case "getStartDate":
953
- a = St(void 0, tt, R[s].raw.startTime.startData), a && (R[s].startTime = a);
1828
+ a = pe(void 0, ut, tt[n].raw.startTime.startData), a && (tt[n].startTime = a);
954
1829
  break;
955
1830
  }
956
- return R[s].startTime && (R[s].endTime = ie(
957
- R[s].startTime,
958
- tt,
959
- R[s].raw.endTime.data,
960
- mt
961
- ), R[s].endTime && (R[s].processed = !0, R[s].manualEndTime = X(
962
- R[s].raw.endTime.data,
1831
+ return tt[n].startTime && (tt[n].endTime = _n(
1832
+ tt[n].startTime,
1833
+ ut,
1834
+ tt[n].raw.endTime.data,
1835
+ Rt
1836
+ ), tt[n].endTime && (tt[n].processed = !0, tt[n].manualEndTime = at(
1837
+ tt[n].raw.endTime.data,
963
1838
  "YYYY-MM-DD",
964
1839
  !0
965
- ).isValid(), re(R[s], tt, kt, ht))), R[s].processed;
1840
+ ).isValid(), Cn(tt[n], ut, Pt, zt))), tt[n].processed;
966
1841
  }, "compileTask");
967
- let i = !0;
968
- for (const [s, n] of R.entries())
969
- t(s), i = i && n.processed;
970
- return i;
971
- }, "compileTasks"), gr = /* @__PURE__ */ l(function(t, i) {
972
- let s = i;
973
- ct().securityLevel !== "loose" && (s = me(i)), t.split(",").forEach(function(n) {
974
- it(n) !== void 0 && (oe(n, () => {
975
- window.open(s, "_self");
976
- }), Yt.set(n, s));
977
- }), ne(t, "clickable");
978
- }, "setLink"), ne = /* @__PURE__ */ l(function(t, i) {
979
- t.split(",").forEach(function(s) {
980
- let n = it(s);
981
- n !== void 0 && n.classes.push(i);
1842
+ let e = !0;
1843
+ for (const [n, r] of tt.entries())
1844
+ t(n), e = e && r.processed;
1845
+ return e;
1846
+ }, "compileTasks"), hi = /* @__PURE__ */ h(function(t, e) {
1847
+ let n = e;
1848
+ _t().securityLevel !== "loose" && (n = Hn(e)), t.split(",").forEach(function(r) {
1849
+ Ct(r) !== void 0 && (Yn(r, () => {
1850
+ window.open(n, "_self");
1851
+ }), _e.set(r, n));
1852
+ }), Fn(t, "clickable");
1853
+ }, "setLink"), Fn = /* @__PURE__ */ h(function(t, e) {
1854
+ t.split(",").forEach(function(n) {
1855
+ let r = Ct(n);
1856
+ r !== void 0 && r.classes.push(e);
982
1857
  });
983
- }, "setClass"), pr = /* @__PURE__ */ l(function(t, i, s) {
984
- if (ct().securityLevel !== "loose" || i === void 0)
1858
+ }, "setClass"), di = /* @__PURE__ */ h(function(t, e, n) {
1859
+ if (_t().securityLevel !== "loose" || e === void 0)
985
1860
  return;
986
- let n = [];
987
- if (typeof s == "string") {
988
- n = s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
989
- for (let h = 0; h < n.length; h++) {
990
- let f = n[h].trim();
991
- f.startsWith('"') && f.endsWith('"') && (f = f.substr(1, f.length - 2)), n[h] = f;
1861
+ let r = [];
1862
+ if (typeof n == "string") {
1863
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1864
+ for (let i = 0; i < r.length; i++) {
1865
+ let s = r[i].trim();
1866
+ s.startsWith('"') && s.endsWith('"') && (s = s.substr(1, s.length - 2)), r[i] = s;
992
1867
  }
993
1868
  }
994
- n.length === 0 && n.push(t), it(t) !== void 0 && oe(t, () => {
995
- pe.runFunc(i, ...n);
1869
+ r.length === 0 && r.push(t), Ct(t) !== void 0 && Yn(t, () => {
1870
+ zn.runFunc(e, ...r);
996
1871
  });
997
- }, "setClickFun"), oe = /* @__PURE__ */ l(function(t, i) {
998
- Ot.push(
1872
+ }, "setClickFun"), Yn = /* @__PURE__ */ h(function(t, e) {
1873
+ Ye.push(
999
1874
  function() {
1000
- const s = document.querySelector(`[id="${t}"]`);
1001
- s !== null && s.addEventListener("click", function() {
1002
- i();
1875
+ const n = document.querySelector(`[id="${t}"]`);
1876
+ n !== null && n.addEventListener("click", function() {
1877
+ e();
1003
1878
  });
1004
1879
  },
1005
1880
  function() {
1006
- const s = document.querySelector(`[id="${t}-text"]`);
1007
- s !== null && s.addEventListener("click", function() {
1008
- i();
1881
+ const n = document.querySelector(`[id="${t}-text"]`);
1882
+ n !== null && n.addEventListener("click", function() {
1883
+ e();
1009
1884
  });
1010
1885
  }
1011
1886
  );
1012
- }, "pushFun"), vr = /* @__PURE__ */ l(function(t, i, s) {
1013
- t.split(",").forEach(function(n) {
1014
- pr(n, i, s);
1015
- }), ne(t, "clickable");
1016
- }, "setClickEvent"), Tr = /* @__PURE__ */ l(function(t) {
1017
- Ot.forEach(function(i) {
1018
- i(t);
1887
+ }, "pushFun"), mi = /* @__PURE__ */ h(function(t, e, n) {
1888
+ t.split(",").forEach(function(r) {
1889
+ di(r, e, n);
1890
+ }), Fn(t, "clickable");
1891
+ }, "setClickEvent"), gi = /* @__PURE__ */ h(function(t) {
1892
+ Ye.forEach(function(e) {
1893
+ e(t);
1019
1894
  });
1020
- }, "bindFunctions"), xr = {
1021
- getConfig: /* @__PURE__ */ l(() => ct().gantt, "getConfig"),
1022
- clear: Re,
1023
- setDateFormat: qe,
1024
- getDateFormat: tr,
1025
- enableInclusiveEndDates: Ue,
1026
- endDatesAreInclusive: Ze,
1027
- enableTopAxis: Qe,
1028
- topAxisEnabled: $e,
1029
- setAxisFormat: Ne,
1030
- getAxisFormat: Be,
1031
- setTickInterval: Ge,
1032
- getTickInterval: He,
1033
- setTodayMarker: je,
1034
- getTodayMarker: Xe,
1035
- setAccTitle: ce,
1036
- getAccTitle: le,
1037
- setDiagramTitle: ue,
1038
- getDiagramTitle: de,
1039
- setDisplayMode: Ke,
1040
- getDisplayMode: Je,
1041
- setAccDescription: fe,
1042
- getAccDescription: he,
1043
- addSection: nr,
1044
- getSections: or,
1045
- getTasks: cr,
1046
- addTask: mr,
1047
- findTaskById: it,
1048
- addTaskOrg: yr,
1049
- setIncludes: er,
1050
- getIncludes: rr,
1051
- setExcludes: sr,
1052
- getExcludes: ir,
1053
- setClickEvent: vr,
1054
- setLink: gr,
1055
- getLinks: ar,
1056
- bindFunctions: Tr,
1057
- parseDuration: se,
1058
- isInvalidDate: ee,
1059
- setWeekday: lr,
1060
- getWeekday: ur,
1061
- setWeekend: dr
1895
+ }, "bindFunctions"), yi = {
1896
+ getConfig: /* @__PURE__ */ h(() => _t().gantt, "getConfig"),
1897
+ clear: Ia,
1898
+ setDateFormat: Pa,
1899
+ getDateFormat: ja,
1900
+ enableInclusiveEndDates: Ra,
1901
+ endDatesAreInclusive: Ba,
1902
+ enableTopAxis: Za,
1903
+ topAxisEnabled: Xa,
1904
+ setAxisFormat: Wa,
1905
+ getAxisFormat: Oa,
1906
+ setTickInterval: Ha,
1907
+ getTickInterval: Na,
1908
+ setTodayMarker: Va,
1909
+ getTodayMarker: za,
1910
+ setAccTitle: Un,
1911
+ getAccTitle: En,
1912
+ setDiagramTitle: Ln,
1913
+ getDiagramTitle: An,
1914
+ setDisplayMode: qa,
1915
+ getDisplayMode: Ga,
1916
+ setAccDescription: In,
1917
+ getAccDescription: Wn,
1918
+ addSection: ei,
1919
+ getSections: ni,
1920
+ getTasks: ri,
1921
+ addTask: ui,
1922
+ findTaskById: Ct,
1923
+ addTaskOrg: fi,
1924
+ setIncludes: Qa,
1925
+ getIncludes: $a,
1926
+ setExcludes: Ja,
1927
+ getExcludes: Ka,
1928
+ setClickEvent: mi,
1929
+ setLink: hi,
1930
+ getLinks: ti,
1931
+ bindFunctions: gi,
1932
+ parseDuration: Mn,
1933
+ isInvalidDate: Dn,
1934
+ setWeekday: ai,
1935
+ getWeekday: ii,
1936
+ setWeekend: si
1062
1937
  };
1063
- function zt(t, i, s) {
1064
- let n = !0;
1065
- for (; n; )
1066
- n = !1, s.forEach(function(a) {
1067
- const h = "^\\s*" + a + "\\s*$", f = new RegExp(h);
1068
- t[0].match(f) && (i[a] = !0, t.shift(1), n = !0);
1938
+ function Le(t, e, n) {
1939
+ let r = !0;
1940
+ for (; r; )
1941
+ r = !1, n.forEach(function(a) {
1942
+ const i = "^\\s*" + a + "\\s*$", s = new RegExp(i);
1943
+ t[0].match(s) && (e[a] = !0, t.shift(1), r = !0);
1069
1944
  });
1070
1945
  }
1071
- l(zt, "getTaskTags");
1072
- var br = /* @__PURE__ */ l(function() {
1073
- Tt.debug("Something is calling, setConf, remove the call");
1074
- }, "setConf"), Qt = {
1075
- monday: De,
1076
- tuesday: Se,
1077
- wednesday: Ce,
1078
- thursday: Ee,
1079
- friday: Me,
1080
- saturday: Ie,
1081
- sunday: Ae
1082
- }, wr = /* @__PURE__ */ l((t, i) => {
1083
- let s = [...t].map(() => -1 / 0), n = [...t].sort((h, f) => h.startTime - f.startTime || h.order - f.order), a = 0;
1084
- for (const h of n)
1085
- for (let f = 0; f < s.length; f++)
1086
- if (h.startTime >= s[f]) {
1087
- s[f] = h.endTime, h.order = f + i, f > a && (a = f);
1946
+ h(Le, "getTaskTags");
1947
+ var ki = /* @__PURE__ */ h(function() {
1948
+ Qt.debug("Something is calling, setConf, remove the call");
1949
+ }, "setConf"), Qe = {
1950
+ monday: Ht,
1951
+ tuesday: un,
1952
+ wednesday: fn,
1953
+ thursday: bt,
1954
+ friday: hn,
1955
+ saturday: dn,
1956
+ sunday: Vt
1957
+ }, pi = /* @__PURE__ */ h((t, e) => {
1958
+ let n = [...t].map(() => -1 / 0), r = [...t].sort((i, s) => i.startTime - s.startTime || i.order - s.order), a = 0;
1959
+ for (const i of r)
1960
+ for (let s = 0; s < n.length; s++)
1961
+ if (i.startTime >= n[s]) {
1962
+ n[s] = i.endTime, i.order = s + e, s > a && (a = s);
1088
1963
  break;
1089
1964
  }
1090
1965
  return a;
1091
- }, "getMaxIntersections"), et, _r = /* @__PURE__ */ l(function(t, i, s, n) {
1092
- const a = ct().gantt, h = ct().securityLevel;
1093
- let f;
1094
- h === "sandbox" && (f = gt("#i" + i));
1095
- const _ = h === "sandbox" ? gt(f.nodes()[0].contentDocument.body) : gt("body"), F = h === "sandbox" ? f.nodes()[0].contentDocument : document, E = F.getElementById(i);
1096
- et = E.parentElement.offsetWidth, et === void 0 && (et = 1200), a.useWidth !== void 0 && (et = a.useWidth);
1097
- const p = n.db.getTasks();
1098
- let M = [];
1099
- for (const y of p)
1100
- M.push(y.type);
1101
- M = q(M);
1102
- const V = {};
1103
- let P = 2 * a.topPadding;
1104
- if (n.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1105
- const y = {};
1106
- for (const b of p)
1107
- y[b.section] === void 0 ? y[b.section] = [b] : y[b.section].push(b);
1108
- let x = 0;
1109
- for (const b of Object.keys(y)) {
1110
- const T = wr(y[b], x) + 1;
1111
- x += T, P += T * (a.barHeight + a.barGap), V[b] = T;
1966
+ }, "getMaxIntersections"), ht, vi = /* @__PURE__ */ h(function(t, e, n, r) {
1967
+ const a = _t().gantt, i = _t().securityLevel;
1968
+ let s;
1969
+ i === "sandbox" && (s = Zt("#i" + e));
1970
+ const y = i === "sandbox" ? Zt(s.nodes()[0].contentDocument.body) : Zt("body"), _ = i === "sandbox" ? s.nodes()[0].contentDocument : document, p = _.getElementById(e);
1971
+ ht = p.parentElement.offsetWidth, ht === void 0 && (ht = 1200), a.useWidth !== void 0 && (ht = a.useWidth);
1972
+ const g = r.db.getTasks();
1973
+ let E = [];
1974
+ for (const x of g)
1975
+ E.push(x.type);
1976
+ E = H(E);
1977
+ const C = {};
1978
+ let b = 2 * a.topPadding;
1979
+ if (r.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1980
+ const x = {};
1981
+ for (const F of g)
1982
+ x[F.section] === void 0 ? x[F.section] = [F] : x[F.section].push(F);
1983
+ let Y = 0;
1984
+ for (const F of Object.keys(x)) {
1985
+ const S = pi(x[F], Y) + 1;
1986
+ Y += S, b += S * (a.barHeight + a.barGap), C[F] = S;
1112
1987
  }
1113
1988
  } else {
1114
- P += p.length * (a.barHeight + a.barGap);
1115
- for (const y of M)
1116
- V[y] = p.filter((x) => x.type === y).length;
1117
- }
1118
- E.setAttribute("viewBox", "0 0 " + et + " " + P);
1119
- const B = _.select(`[id="${i}"]`), C = ve().domain([
1120
- Te(p, function(y) {
1121
- return y.startTime;
1989
+ b += g.length * (a.barHeight + a.barGap);
1990
+ for (const x of E)
1991
+ C[x] = g.filter((Y) => Y.type === x).length;
1992
+ }
1993
+ p.setAttribute("viewBox", "0 0 " + ht + " " + b);
1994
+ const q = y.select(`[id="${e}"]`), O = _a().domain([
1995
+ Qn(g, function(x) {
1996
+ return x.startTime;
1122
1997
  }),
1123
- xe(p, function(y) {
1124
- return y.endTime;
1998
+ jn(g, function(x) {
1999
+ return x.endTime;
1125
2000
  })
1126
- ]).rangeRound([0, et - a.leftPadding - a.rightPadding]);
1127
- function v(y, x) {
1128
- const b = y.startTime, T = x.startTime;
1129
- let g = 0;
1130
- return b > T ? g = 1 : b < T && (g = -1), g;
1131
- }
1132
- l(v, "taskCompare"), p.sort(v), S(p, et, P), ye(B, P, et, a.useMaxWidth), B.append("text").text(n.db.getDiagramTitle()).attr("x", et / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
1133
- function S(y, x, b) {
1134
- const T = a.barHeight, g = T + a.barGap, w = a.topPadding, c = a.leftPadding, d = Le().domain([0, M.length]).range(["#00B9FA", "#F95002"]).interpolate(be);
1135
- Y(
1136
- g,
1137
- w,
1138
- c,
2001
+ ]).rangeRound([0, ht - a.leftPadding - a.rightPadding]);
2002
+ function M(x, Y) {
2003
+ const F = x.startTime, S = Y.startTime;
2004
+ let v = 0;
2005
+ return F > S ? v = 1 : F < S && (v = -1), v;
2006
+ }
2007
+ h(M, "taskCompare"), g.sort(M), I(g, ht, b), Nn(q, b, ht, a.useMaxWidth), q.append("text").text(r.db.getDiagramTitle()).attr("x", ht / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
2008
+ function I(x, Y, F) {
2009
+ const S = a.barHeight, v = S + a.barGap, U = a.topPadding, u = a.leftPadding, m = qn().domain([0, E.length]).range(["#00B9FA", "#F95002"]).interpolate(fr);
2010
+ W(
2011
+ v,
2012
+ U,
2013
+ u,
2014
+ Y,
2015
+ F,
1139
2016
  x,
1140
- b,
1141
- y,
1142
- n.db.getExcludes(),
1143
- n.db.getIncludes()
1144
- ), H(c, w, x, b), L(y, g, w, c, T, d, x), j(g, w), Q(c, w, x, b);
1145
- }
1146
- l(S, "makeGantt");
1147
- function L(y, x, b, T, g, w, c) {
1148
- y.sort((o, e) => o.vert === e.vert ? 0 : o.vert ? 1 : -1);
1149
- const k = [...new Set(y.map((o) => o.order))].map((o) => y.find((e) => e.order === o));
1150
- B.append("g").selectAll("rect").data(k).enter().append("rect").attr("x", 0).attr("y", function(o, e) {
1151
- return e = o.order, e * x + b - 2;
2017
+ r.db.getExcludes(),
2018
+ r.db.getIncludes()
2019
+ ), Z(u, U, Y, F), V(x, v, U, u, S, m, Y), Q(v, U), D(u, U, Y, F);
2020
+ }
2021
+ h(I, "makeGantt");
2022
+ function V(x, Y, F, S, v, U, u) {
2023
+ x.sort((l, o) => l.vert === o.vert ? 0 : l.vert ? 1 : -1);
2024
+ const T = [...new Set(x.map((l) => l.order))].map((l) => x.find((o) => o.order === l));
2025
+ q.append("g").selectAll("rect").data(T).enter().append("rect").attr("x", 0).attr("y", function(l, o) {
2026
+ return o = l.order, o * Y + F - 2;
1152
2027
  }).attr("width", function() {
1153
- return c - a.rightPadding / 2;
1154
- }).attr("height", x).attr("class", function(o) {
1155
- for (const [e, I] of M.entries())
1156
- if (o.type === I)
1157
- return "section section" + e % a.numberSectionStyles;
2028
+ return u - a.rightPadding / 2;
2029
+ }).attr("height", Y).attr("class", function(l) {
2030
+ for (const [o, P] of E.entries())
2031
+ if (l.type === P)
2032
+ return "section section" + o % a.numberSectionStyles;
1158
2033
  return "section section0";
1159
2034
  }).enter();
1160
- const u = B.append("g").selectAll("rect").data(y).enter(), m = n.db.getLinks();
1161
- if (u.append("rect").attr("id", function(o) {
1162
- return o.id;
1163
- }).attr("rx", 3).attr("ry", 3).attr("x", function(o) {
1164
- return o.milestone ? C(o.startTime) + T + 0.5 * (C(o.endTime) - C(o.startTime)) - 0.5 * g : C(o.startTime) + T;
1165
- }).attr("y", function(o, e) {
1166
- return e = o.order, o.vert ? a.gridLineStartPadding : e * x + b;
1167
- }).attr("width", function(o) {
1168
- return o.milestone ? g : o.vert ? 0.08 * g : C(o.renderEndTime || o.endTime) - C(o.startTime);
1169
- }).attr("height", function(o) {
1170
- return o.vert ? p.length * (a.barHeight + a.barGap) + a.barHeight * 2 : g;
1171
- }).attr("transform-origin", function(o, e) {
1172
- return e = o.order, (C(o.startTime) + T + 0.5 * (C(o.endTime) - C(o.startTime))).toString() + "px " + (e * x + b + 0.5 * g).toString() + "px";
1173
- }).attr("class", function(o) {
1174
- const e = "task";
1175
- let I = "";
1176
- o.classes.length > 0 && (I = o.classes.join(" "));
1177
- let D = 0;
1178
- for (const [N, W] of M.entries())
1179
- o.type === W && (D = N % a.numberSectionStyles);
1180
- let A = "";
1181
- return o.active ? o.crit ? A += " activeCrit" : A = " active" : o.done ? o.crit ? A = " doneCrit" : A = " done" : o.crit && (A += " crit"), A.length === 0 && (A = " task"), o.milestone && (A = " milestone " + A), o.vert && (A = " vert " + A), A += D, A += " " + I, e + A;
1182
- }), u.append("text").attr("id", function(o) {
1183
- return o.id + "-text";
1184
- }).text(function(o) {
1185
- return o.task;
1186
- }).attr("font-size", a.fontSize).attr("x", function(o) {
1187
- let e = C(o.startTime), I = C(o.renderEndTime || o.endTime);
1188
- if (o.milestone && (e += 0.5 * (C(o.endTime) - C(o.startTime)) - 0.5 * g, I = e + g), o.vert)
1189
- return C(o.startTime) + T;
1190
- const D = this.getBBox().width;
1191
- return D > I - e ? I + D + 1.5 * a.leftPadding > c ? e + T - 5 : I + T + 5 : (I - e) / 2 + e + T;
1192
- }).attr("y", function(o, e) {
1193
- return o.vert ? a.gridLineStartPadding + p.length * (a.barHeight + a.barGap) + 60 : (e = o.order, e * x + a.barHeight / 2 + (a.fontSize / 2 - 2) + b);
1194
- }).attr("text-height", g).attr("class", function(o) {
1195
- const e = C(o.startTime);
1196
- let I = C(o.endTime);
1197
- o.milestone && (I = e + g);
1198
- const D = this.getBBox().width;
1199
- let A = "";
1200
- o.classes.length > 0 && (A = o.classes.join(" "));
1201
- let N = 0;
1202
- for (const [O, $] of M.entries())
1203
- o.type === $ && (N = O % a.numberSectionStyles);
1204
- let W = "";
1205
- return o.active && (o.crit ? W = "activeCritText" + N : W = "activeText" + N), o.done ? o.crit ? W = W + " doneCritText" + N : W = W + " doneText" + N : o.crit && (W = W + " critText" + N), o.milestone && (W += " milestoneText"), o.vert && (W += " vertText"), D > I - e ? I + D + 1.5 * a.leftPadding > c ? A + " taskTextOutsideLeft taskTextOutside" + N + " " + W : A + " taskTextOutsideRight taskTextOutside" + N + " " + W + " width-" + D : A + " taskText taskText" + N + " " + W + " width-" + D;
1206
- }), ct().securityLevel === "sandbox") {
1207
- let o;
1208
- o = gt("#i" + i);
1209
- const e = o.nodes()[0].contentDocument;
1210
- u.filter(function(I) {
1211
- return m.has(I.id);
1212
- }).each(function(I) {
1213
- var D = e.querySelector("#" + I.id), A = e.querySelector("#" + I.id + "-text");
1214
- const N = D.parentNode;
1215
- var W = e.createElement("a");
1216
- W.setAttribute("xlink:href", m.get(I.id)), W.setAttribute("target", "_top"), N.appendChild(W), W.appendChild(D), W.appendChild(A);
2035
+ const d = q.append("g").selectAll("rect").data(x).enter(), w = r.db.getLinks();
2036
+ if (d.append("rect").attr("id", function(l) {
2037
+ return l.id;
2038
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(l) {
2039
+ return l.milestone ? O(l.startTime) + S + 0.5 * (O(l.endTime) - O(l.startTime)) - 0.5 * v : O(l.startTime) + S;
2040
+ }).attr("y", function(l, o) {
2041
+ return o = l.order, l.vert ? a.gridLineStartPadding : o * Y + F;
2042
+ }).attr("width", function(l) {
2043
+ return l.milestone ? v : l.vert ? 0.08 * v : O(l.renderEndTime || l.endTime) - O(l.startTime);
2044
+ }).attr("height", function(l) {
2045
+ return l.vert ? g.length * (a.barHeight + a.barGap) + a.barHeight * 2 : v;
2046
+ }).attr("transform-origin", function(l, o) {
2047
+ return o = l.order, (O(l.startTime) + S + 0.5 * (O(l.endTime) - O(l.startTime))).toString() + "px " + (o * Y + F + 0.5 * v).toString() + "px";
2048
+ }).attr("class", function(l) {
2049
+ const o = "task";
2050
+ let P = "";
2051
+ l.classes.length > 0 && (P = l.classes.join(" "));
2052
+ let z = 0;
2053
+ for (const [K, G] of E.entries())
2054
+ l.type === G && (z = K % a.numberSectionStyles);
2055
+ let R = "";
2056
+ return l.active ? l.crit ? R += " activeCrit" : R = " active" : l.done ? l.crit ? R = " doneCrit" : R = " done" : l.crit && (R += " crit"), R.length === 0 && (R = " task"), l.milestone && (R = " milestone " + R), l.vert && (R = " vert " + R), R += z, R += " " + P, o + R;
2057
+ }), d.append("text").attr("id", function(l) {
2058
+ return l.id + "-text";
2059
+ }).text(function(l) {
2060
+ return l.task;
2061
+ }).attr("font-size", a.fontSize).attr("x", function(l) {
2062
+ let o = O(l.startTime), P = O(l.renderEndTime || l.endTime);
2063
+ if (l.milestone && (o += 0.5 * (O(l.endTime) - O(l.startTime)) - 0.5 * v, P = o + v), l.vert)
2064
+ return O(l.startTime) + S;
2065
+ const z = this.getBBox().width;
2066
+ return z > P - o ? P + z + 1.5 * a.leftPadding > u ? o + S - 5 : P + S + 5 : (P - o) / 2 + o + S;
2067
+ }).attr("y", function(l, o) {
2068
+ return l.vert ? a.gridLineStartPadding + g.length * (a.barHeight + a.barGap) + 60 : (o = l.order, o * Y + a.barHeight / 2 + (a.fontSize / 2 - 2) + F);
2069
+ }).attr("text-height", v).attr("class", function(l) {
2070
+ const o = O(l.startTime);
2071
+ let P = O(l.endTime);
2072
+ l.milestone && (P = o + v);
2073
+ const z = this.getBBox().width;
2074
+ let R = "";
2075
+ l.classes.length > 0 && (R = l.classes.join(" "));
2076
+ let K = 0;
2077
+ for (const [$, it] of E.entries())
2078
+ l.type === it && (K = $ % a.numberSectionStyles);
2079
+ let G = "";
2080
+ return l.active && (l.crit ? G = "activeCritText" + K : G = "activeText" + K), l.done ? l.crit ? G = G + " doneCritText" + K : G = G + " doneText" + K : l.crit && (G = G + " critText" + K), l.milestone && (G += " milestoneText"), l.vert && (G += " vertText"), z > P - o ? P + z + 1.5 * a.leftPadding > u ? R + " taskTextOutsideLeft taskTextOutside" + K + " " + G : R + " taskTextOutsideRight taskTextOutside" + K + " " + G + " width-" + z : R + " taskText taskText" + K + " " + G + " width-" + z;
2081
+ }), _t().securityLevel === "sandbox") {
2082
+ let l;
2083
+ l = Zt("#i" + e);
2084
+ const o = l.nodes()[0].contentDocument;
2085
+ d.filter(function(P) {
2086
+ return w.has(P.id);
2087
+ }).each(function(P) {
2088
+ var z = o.querySelector("#" + P.id), R = o.querySelector("#" + P.id + "-text");
2089
+ const K = z.parentNode;
2090
+ var G = o.createElement("a");
2091
+ G.setAttribute("xlink:href", w.get(P.id)), G.setAttribute("target", "_top"), K.appendChild(G), G.appendChild(z), G.appendChild(R);
1217
2092
  });
1218
2093
  }
1219
2094
  }
1220
- l(L, "drawRects");
1221
- function Y(y, x, b, T, g, w, c, d) {
1222
- if (c.length === 0 && d.length === 0)
2095
+ h(V, "drawRects");
2096
+ function W(x, Y, F, S, v, U, u, m) {
2097
+ if (u.length === 0 && m.length === 0)
1223
2098
  return;
1224
- let k, u;
1225
- for (const { startTime: D, endTime: A } of w)
1226
- (k === void 0 || D < k) && (k = D), (u === void 0 || A > u) && (u = A);
1227
- if (!k || !u)
2099
+ let T, d;
2100
+ for (const { startTime: z, endTime: R } of U)
2101
+ (T === void 0 || z < T) && (T = z), (d === void 0 || R > d) && (d = R);
2102
+ if (!T || !d)
1228
2103
  return;
1229
- if (X(u).diff(X(k), "year") > 5) {
1230
- Tt.warn(
2104
+ if (at(d).diff(at(T), "year") > 5) {
2105
+ Qt.warn(
1231
2106
  "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
1232
2107
  );
1233
2108
  return;
1234
2109
  }
1235
- const m = n.db.getDateFormat(), r = [];
1236
- let o = null, e = X(k);
1237
- for (; e.valueOf() <= u; )
1238
- n.db.isInvalidDate(e, m, c, d) ? o ? o.end = e : o = {
1239
- start: e,
1240
- end: e
1241
- } : o && (r.push(o), o = null), e = e.add(1, "d");
1242
- B.append("g").selectAll("rect").data(r).enter().append("rect").attr("id", (D) => "exclude-" + D.start.format("YYYY-MM-DD")).attr("x", (D) => C(D.start.startOf("day")) + b).attr("y", a.gridLineStartPadding).attr("width", (D) => C(D.end.endOf("day")) - C(D.start.startOf("day"))).attr("height", g - x - a.gridLineStartPadding).attr("transform-origin", function(D, A) {
1243
- return (C(D.start) + b + 0.5 * (C(D.end) - C(D.start))).toString() + "px " + (A * y + 0.5 * g).toString() + "px";
2110
+ const w = r.db.getDateFormat(), c = [];
2111
+ let l = null, o = at(T);
2112
+ for (; o.valueOf() <= d; )
2113
+ r.db.isInvalidDate(o, w, u, m) ? l ? l.end = o : l = {
2114
+ start: o,
2115
+ end: o
2116
+ } : l && (c.push(l), l = null), o = o.add(1, "d");
2117
+ q.append("g").selectAll("rect").data(c).enter().append("rect").attr("id", (z) => "exclude-" + z.start.format("YYYY-MM-DD")).attr("x", (z) => O(z.start.startOf("day")) + F).attr("y", a.gridLineStartPadding).attr("width", (z) => O(z.end.endOf("day")) - O(z.start.startOf("day"))).attr("height", v - Y - a.gridLineStartPadding).attr("transform-origin", function(z, R) {
2118
+ return (O(z.start) + F + 0.5 * (O(z.end) - O(z.start))).toString() + "px " + (R * x + 0.5 * v).toString() + "px";
1244
2119
  }).attr("class", "exclude-range");
1245
2120
  }
1246
- l(Y, "drawExcludeDays");
1247
- function H(y, x, b, T) {
1248
- const g = n.db.getDateFormat(), w = n.db.getAxisFormat();
1249
- let c;
1250
- w ? c = w : g === "D" ? c = "%d" : c = a.axisFormat ?? "%Y-%m-%d";
1251
- let d = we(C).tickSize(-T + x + a.gridLineStartPadding).tickFormat(Nt(c));
1252
- const u = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
1253
- n.db.getTickInterval() || a.tickInterval
2121
+ h(W, "drawExcludeDays");
2122
+ function Z(x, Y, F, S) {
2123
+ const v = r.db.getDateFormat(), U = r.db.getAxisFormat();
2124
+ let u;
2125
+ U ? u = U : v === "D" ? u = "%d" : u = a.axisFormat ?? "%Y-%m-%d";
2126
+ let m = ar(O).tickSize(-S + Y + a.gridLineStartPadding).tickFormat(Kt(u));
2127
+ const d = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
2128
+ r.db.getTickInterval() || a.tickInterval
1254
2129
  );
1255
- if (u !== null) {
1256
- const m = u[1], r = u[2], o = n.db.getWeekday() || a.weekday;
1257
- switch (r) {
2130
+ if (d !== null) {
2131
+ const w = d[1], c = d[2], l = r.db.getWeekday() || a.weekday;
2132
+ switch (c) {
1258
2133
  case "millisecond":
1259
- d.ticks(qt.every(m));
2134
+ m.ticks(Yt.every(w));
1260
2135
  break;
1261
2136
  case "second":
1262
- d.ticks(Xt.every(m));
2137
+ m.ticks(vt.every(w));
1263
2138
  break;
1264
2139
  case "minute":
1265
- d.ticks(jt.every(m));
2140
+ m.ticks(Wt.every(w));
1266
2141
  break;
1267
2142
  case "hour":
1268
- d.ticks(Ht.every(m));
2143
+ m.ticks(Ot.every(w));
1269
2144
  break;
1270
2145
  case "day":
1271
- d.ticks(Gt.every(m));
2146
+ m.ticks(Tt.every(w));
1272
2147
  break;
1273
2148
  case "week":
1274
- d.ticks(Qt[o].every(m));
2149
+ m.ticks(Qe[l].every(w));
1275
2150
  break;
1276
2151
  case "month":
1277
- d.ticks(Bt.every(m));
2152
+ m.ticks(Nt.every(w));
1278
2153
  break;
1279
2154
  }
1280
2155
  }
1281
- if (B.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + (T - 50) + ")").call(d).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), n.db.topAxisEnabled() || a.topAxis) {
1282
- let m = _e(C).tickSize(-T + x + a.gridLineStartPadding).tickFormat(Nt(c));
1283
- if (u !== null) {
1284
- const r = u[1], o = u[2], e = n.db.getWeekday() || a.weekday;
1285
- switch (o) {
2156
+ if (q.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + (S - 50) + ")").call(m).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || a.topAxis) {
2157
+ let w = rr(O).tickSize(-S + Y + a.gridLineStartPadding).tickFormat(Kt(u));
2158
+ if (d !== null) {
2159
+ const c = d[1], l = d[2], o = r.db.getWeekday() || a.weekday;
2160
+ switch (l) {
1286
2161
  case "millisecond":
1287
- m.ticks(qt.every(r));
2162
+ w.ticks(Yt.every(c));
1288
2163
  break;
1289
2164
  case "second":
1290
- m.ticks(Xt.every(r));
2165
+ w.ticks(vt.every(c));
1291
2166
  break;
1292
2167
  case "minute":
1293
- m.ticks(jt.every(r));
2168
+ w.ticks(Wt.every(c));
1294
2169
  break;
1295
2170
  case "hour":
1296
- m.ticks(Ht.every(r));
2171
+ w.ticks(Ot.every(c));
1297
2172
  break;
1298
2173
  case "day":
1299
- m.ticks(Gt.every(r));
2174
+ w.ticks(Tt.every(c));
1300
2175
  break;
1301
2176
  case "week":
1302
- m.ticks(Qt[e].every(r));
2177
+ w.ticks(Qe[o].every(c));
1303
2178
  break;
1304
2179
  case "month":
1305
- m.ticks(Bt.every(r));
2180
+ w.ticks(Nt.every(c));
1306
2181
  break;
1307
2182
  }
1308
2183
  }
1309
- B.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + x + ")").call(m).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2184
+ q.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + Y + ")").call(w).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
1310
2185
  }
1311
2186
  }
1312
- l(H, "makeGrid");
1313
- function j(y, x) {
1314
- let b = 0;
1315
- const T = Object.keys(V).map((g) => [g, V[g]]);
1316
- B.append("g").selectAll("text").data(T).enter().append(function(g) {
1317
- const w = g[0].split(ge.lineBreakRegex), c = -(w.length - 1) / 2, d = F.createElementNS("http://www.w3.org/2000/svg", "text");
1318
- d.setAttribute("dy", c + "em");
1319
- for (const [k, u] of w.entries()) {
1320
- const m = F.createElementNS("http://www.w3.org/2000/svg", "tspan");
1321
- m.setAttribute("alignment-baseline", "central"), m.setAttribute("x", "10"), k > 0 && m.setAttribute("dy", "1em"), m.textContent = u, d.appendChild(m);
2187
+ h(Z, "makeGrid");
2188
+ function Q(x, Y) {
2189
+ let F = 0;
2190
+ const S = Object.keys(C).map((v) => [v, C[v]]);
2191
+ q.append("g").selectAll("text").data(S).enter().append(function(v) {
2192
+ const U = v[0].split(Vn.lineBreakRegex), u = -(U.length - 1) / 2, m = _.createElementNS("http://www.w3.org/2000/svg", "text");
2193
+ m.setAttribute("dy", u + "em");
2194
+ for (const [T, d] of U.entries()) {
2195
+ const w = _.createElementNS("http://www.w3.org/2000/svg", "tspan");
2196
+ w.setAttribute("alignment-baseline", "central"), w.setAttribute("x", "10"), T > 0 && w.setAttribute("dy", "1em"), w.textContent = d, m.appendChild(w);
1322
2197
  }
1323
- return d;
1324
- }).attr("x", 10).attr("y", function(g, w) {
1325
- if (w > 0)
1326
- for (let c = 0; c < w; c++)
1327
- return b += T[w - 1][1], g[1] * y / 2 + b * y + x;
2198
+ return m;
2199
+ }).attr("x", 10).attr("y", function(v, U) {
2200
+ if (U > 0)
2201
+ for (let u = 0; u < U; u++)
2202
+ return F += S[U - 1][1], v[1] * x / 2 + F * x + Y;
1328
2203
  else
1329
- return g[1] * y / 2 + x;
1330
- }).attr("font-size", a.sectionFontSize).attr("class", function(g) {
1331
- for (const [w, c] of M.entries())
1332
- if (g[0] === c)
1333
- return "sectionTitle sectionTitle" + w % a.numberSectionStyles;
2204
+ return v[1] * x / 2 + Y;
2205
+ }).attr("font-size", a.sectionFontSize).attr("class", function(v) {
2206
+ for (const [U, u] of E.entries())
2207
+ if (v[0] === u)
2208
+ return "sectionTitle sectionTitle" + U % a.numberSectionStyles;
1334
2209
  return "sectionTitle";
1335
2210
  });
1336
2211
  }
1337
- l(j, "vertLabels");
1338
- function Q(y, x, b, T) {
1339
- const g = n.db.getTodayMarker();
1340
- if (g === "off")
2212
+ h(Q, "vertLabels");
2213
+ function D(x, Y, F, S) {
2214
+ const v = r.db.getTodayMarker();
2215
+ if (v === "off")
1341
2216
  return;
1342
- const w = B.append("g").attr("class", "today"), c = /* @__PURE__ */ new Date(), d = w.append("line");
1343
- d.attr("x1", C(c) + y).attr("x2", C(c) + y).attr("y1", a.titleTopMargin).attr("y2", T - a.titleTopMargin).attr("class", "today"), g !== "" && d.attr("style", g.replace(/,/g, ";"));
1344
- }
1345
- l(Q, "drawToday");
1346
- function q(y) {
1347
- const x = {}, b = [];
1348
- for (let T = 0, g = y.length; T < g; ++T)
1349
- Object.prototype.hasOwnProperty.call(x, y[T]) || (x[y[T]] = !0, b.push(y[T]));
1350
- return b;
1351
- }
1352
- l(q, "checkUnique");
1353
- }, "draw"), Dr = {
1354
- setConf: br,
1355
- draw: _r
1356
- }, Sr = /* @__PURE__ */ l((t) => `
2217
+ const U = q.append("g").attr("class", "today"), u = /* @__PURE__ */ new Date(), m = U.append("line");
2218
+ m.attr("x1", O(u) + x).attr("x2", O(u) + x).attr("y1", a.titleTopMargin).attr("y2", S - a.titleTopMargin).attr("class", "today"), v !== "" && m.attr("style", v.replace(/,/g, ";"));
2219
+ }
2220
+ h(D, "drawToday");
2221
+ function H(x) {
2222
+ const Y = {}, F = [];
2223
+ for (let S = 0, v = x.length; S < v; ++S)
2224
+ Object.prototype.hasOwnProperty.call(Y, x[S]) || (Y[x[S]] = !0, F.push(x[S]));
2225
+ return F;
2226
+ }
2227
+ h(H, "checkUnique");
2228
+ }, "draw"), Ti = {
2229
+ setConf: ki,
2230
+ draw: vi
2231
+ }, bi = /* @__PURE__ */ h((t) => `
1357
2232
  .mermaid-main-font {
1358
2233
  font-family: ${t.fontFamily};
1359
2234
  }
@@ -1614,12 +2489,12 @@ var br = /* @__PURE__ */ l(function() {
1614
2489
  fill: ${t.titleColor || t.textColor};
1615
2490
  font-family: ${t.fontFamily};
1616
2491
  }
1617
- `, "getStyles"), Cr = Sr, Lr = {
1618
- parser: ze,
1619
- db: xr,
1620
- renderer: Dr,
1621
- styles: Cr
2492
+ `, "getStyles"), xi = bi, _i = {
2493
+ parser: Aa,
2494
+ db: yi,
2495
+ renderer: Ti,
2496
+ styles: xi
1622
2497
  };
1623
2498
  export {
1624
- Lr as diagram
2499
+ _i as diagram
1625
2500
  };