@kabmo-labs/kabmo 0.39.1 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +364 -363
- package/dist/client/static/js/{CsvGrid-7synegzg.js → CsvGrid-60njj97j.js} +2 -2
- package/dist/client/static/js/{DocxView-v5d9n5yw.js → DocxView-rsv0j46a.js} +5 -5
- package/dist/client/static/js/{DrawioView-ww7y98tt.js → DrawioView-n2g5df3a.js} +2 -2
- package/dist/client/static/js/ImageView-t330jx6y.js +1 -0
- package/dist/client/static/js/LayoutWrapper-qp6nsw65.js +2 -0
- package/dist/client/static/js/{Modal-qj39shgb.js → Modal-sbya4ahp.js} +17 -17
- package/dist/client/static/js/{PdfView-t9v4datp.js → PdfView-1r7a0qkp.js} +1 -1
- package/dist/client/static/js/SessionsView-yqs5m8tj.js +1 -0
- package/dist/client/static/js/{SheetView-6zkxbjd4.js → SheetView-bt5pp042.js} +24 -24
- package/dist/client/static/js/{SvgPreview-7rt2p1y1.js → SvgPreview-vfmqgmrx.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-888zn5zg.js → abnfDiagram-O67JEVCF-8k5hk1yx.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-1wqga929.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-b04e26rb.js → architectureDiagram-NJMV4G6O-7jcb7fgy.js} +3 -3
- package/dist/client/static/js/{astro-4ybhkc9b.js → astro-0rh34hha.js} +1 -1
- package/dist/client/static/js/bash-vv2ysp0a.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-32ph2m52.js → blockDiagram-BEXU5L5S-04sbtdth.js} +5 -5
- package/dist/client/static/js/c-67jyc7sg.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-hwnaa333.js → c4Diagram-YGBWAQC7-vwac9za0.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-2kg7dqeb.js → classDiagram-v2-NBCMYWYE-18cc0bsb.js} +5 -5
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-tj2sbtyv.js → cose-bilkent-JH36ORCC-dk683zvp.js} +1 -1
- package/dist/client/static/js/cpp-crfbnwv8.js +1 -0
- package/dist/client/static/js/css-2re5mbea.js +1 -0
- package/dist/client/static/js/css-983fbv00.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-j2dpdgkh.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-wx2y8dhm.js → cynefinDiagram-VND7K2PF-m2sx8d8s.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-5v3rzdxd.js → dagre-6A5THRUB-qf3pr59p.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-7er2jwy1.js → diagram-22UHCM2B-twnz23mt.js} +11 -11
- package/dist/client/static/js/{diagram-3UASUU5V-2b7nmdha.js → diagram-3UASUU5V-417bas6t.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-yf61ftn0.js → diagram-ATOU4E4O-n63cpdnx.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-cn3rs9xn.js → diagram-CDSNMT55-v86p14dd.js} +3 -3
- package/dist/client/static/js/{diagram-MLGK6HIB-7kvtsj6c.js → diagram-MLGK6HIB-7a0h1hs3.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-g3zg3r5e.js → diagram-MPIPVDR6-w75bftmd.js} +2 -2
- package/dist/client/static/js/{dockerfile-f9j396wm.js → dockerfile-g5qbaeq3.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-ft02nzne.js → ebnfDiagram-ZINNZB2B-vdzm3tsv.js} +1 -1
- package/dist/client/static/js/{elixir-v9bbxsgg.js → elixir-gpez1k9m.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-87fvkn2k.js → elk-276RUBZZ-2fsbb484.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-gh9mp6j8.js → erDiagram-OPXOYQCR-vnkztq7d.js} +5 -5
- package/dist/client/static/js/{erlang-55r0skxa.js → erlang-jqqa3ehb.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-xjvjawd3.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-j21f2bfg.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-227xs61z.js → ganttDiagram-FUAMR5RP-pbvcch52.js} +2 -2
- package/dist/client/static/js/{ghostty-web-2gt2tp72.js → ghostty-web-22pdvhta.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-r0zbk95f.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-4671gdym.js → gitGraphDiagram-X574FWY7-dkvktvzr.js} +2 -2
- package/dist/client/static/js/graphql-npbd9fdx.js +1 -0
- package/dist/client/static/js/html-1cpe2xc8.js +1 -0
- package/dist/client/static/js/{index-enmh3w27.js → index-0c6vpk89.js} +2 -2
- package/dist/client/static/js/{index-35mh9kbs.js → index-0xaz2eyv.js} +3 -3
- package/dist/client/static/js/{index-668chrpq.js → index-1sw00wm0.js} +1 -1
- package/dist/client/static/js/index-2z9wrb46.js +2 -0
- package/dist/client/static/js/{index-qbnd827h.js → index-3rymer2w.js} +1 -1
- package/dist/client/static/js/{index-f1nqk6z6.js → index-4jk8ngjg.js} +2 -2
- package/dist/client/static/js/index-55hq7tnj.js +1 -0
- package/dist/client/static/js/{index-8egjccbq.js → index-6fx2t6y7.js} +52 -52
- package/dist/client/static/js/{index-8xasfxf3.js → index-7fwppdkn.js} +1 -1
- package/dist/client/static/js/{index-28a5kf88.js → index-7w3gqw2b.js} +1 -1
- package/dist/client/static/js/{index-c1be3rva.js → index-9dnkfpx4.js} +2 -2
- package/dist/client/static/js/{index-s80x8d58.js → index-9fnzcg2x.js} +2 -2
- package/dist/client/static/js/{index-h8rr48px.js → index-a4ed3mks.js} +4 -4
- package/dist/client/static/js/{index-j2g39xq7.js → index-ae91g8ka.js} +5 -5
- package/dist/client/static/js/{index-xrp2zv8z.js → index-agdbjh5k.js} +2 -2
- package/dist/client/static/js/{index-2rs03vfy.js → index-ajjq0b8y.js} +2 -2
- package/dist/client/static/js/{index-xfr6r539.js → index-amawahyh.js} +2 -2
- package/dist/client/static/js/{index-y5ymgp20.js → index-b6cyn4hr.js} +50 -50
- package/dist/client/static/js/index-c6kx7s6a.js +2 -0
- package/dist/client/static/js/{index-k7sdsmgv.js → index-ce4vytm6.js} +2 -2
- package/dist/client/static/js/{index-b08hx4tw.js → index-cytks03p.js} +2 -2
- package/dist/client/static/js/{index-cfnxda13.js → index-djv15k5s.js} +2 -2
- package/dist/client/static/js/{index-kkfbd1db.js → index-ds6a2cx7.js} +5 -5
- package/dist/client/static/js/{index-tmnnafht.js → index-e6qjfcz9.js} +1 -1
- package/dist/client/static/js/{index-442mbhwb.js → index-e7yf273s.js} +2 -2
- package/dist/client/static/js/{index-f73v86a3.js → index-efn233xp.js} +4 -4
- package/dist/client/static/js/index-esx3zwnt.js +1 -0
- package/dist/client/static/js/{index-d3prrt2q.js → index-f8pq132s.js} +1 -1
- package/dist/client/static/js/index-fbbp5cwj.js +2 -0
- package/dist/client/static/js/{index-drjtwfp5.js → index-fg965t62.js} +2 -2
- package/dist/client/static/js/{index-xnk1500f.js → index-g1cggqgx.js} +12 -12
- package/dist/client/static/js/index-ghsdzs4m.js +1 -0
- package/dist/client/static/js/{index-4wvtar0v.js → index-gn92c6hp.js} +2 -2
- package/dist/client/static/js/{index-4c2zcvem.js → index-gs7ytgdw.js} +180 -180
- package/dist/client/static/js/{index-q0bph5x0.js → index-haaz8t7e.js} +2 -2
- package/dist/client/static/js/{index-t6gznaxm.js → index-hz177dr2.js} +2 -2
- package/dist/client/static/js/{index-7qc2avfy.js → index-j5ram1ve.js} +2 -2
- package/dist/client/static/js/{index-cst843zs.css → index-jqs23cc7.css} +1 -1
- package/dist/client/static/js/{index-y91j4t1q.js → index-ne131hmw.js} +2 -2
- package/dist/client/static/js/{index-1sgad84m.js → index-ngk9h0v9.js} +2 -2
- package/dist/client/static/js/{index-4wtr5wjp.js → index-ntcqyqd5.js} +2 -2
- package/dist/client/static/js/{index-m847wafq.js → index-pbsm2vw7.js} +2 -2
- package/dist/client/static/js/{index-vb3srfyc.js → index-pfbyfab5.js} +2 -2
- package/dist/client/static/js/{index-qsrw5c67.js → index-pn91shfp.js} +2 -2
- package/dist/client/static/js/{index-6rs8e8ng.js → index-qjsy6p86.js} +1 -1
- package/dist/client/static/js/{index-fjnkzk12.js → index-qsw5edtk.js} +5 -5
- package/dist/client/static/js/{index-72289dgx.js → index-rc8wrs2a.js} +2 -2
- package/dist/client/static/js/{index-w0rbyw47.js → index-rdqn92tc.js} +2 -2
- package/dist/client/static/js/{index-phm1zb8m.js → index-re1xz433.js} +1 -1
- package/dist/client/static/js/{index-mtadrbxt.js → index-rebnv57p.js} +2 -2
- package/dist/client/static/js/{index-9d6x1f3t.js → index-s78n0dtv.js} +2 -2
- package/dist/client/static/js/{index-c36pag9y.js → index-sj4y8kj2.js} +2 -2
- package/dist/client/static/js/{index-87qandgr.js → index-tgper3yy.js} +2 -2
- package/dist/client/static/js/index-x2kb1kx5.js +3 -0
- package/dist/client/static/js/{index-0j518hqm.js → index-xf36nmbm.js} +2 -2
- package/dist/client/static/js/{index-hdd8nqz8.js → index-xfa5hswh.js} +1 -1
- package/dist/client/static/js/{index-9gepbvdt.js → index-yq9vnd1y.js} +2 -2
- package/dist/client/static/js/{index-y3qxrs90.js → index-yzg9mbsv.js} +2 -2
- package/dist/client/static/js/{index-wgvysmnr.js → index-zfykeg7x.js} +10 -10
- package/dist/client/static/js/{index-rj81xrvw.js → index-zye9309h.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-a8xap43w.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-k1jnhhbp.js → infoDiagram-VRGFBTTK-mh6yks62.js} +1 -1
- package/dist/client/static/js/ini-df5bw23e.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ar94x2gr.js → ishikawaDiagram-OU5B5YK6-hnfqppnv.js} +2 -2
- package/dist/client/static/js/java-8j33rj1p.js +1 -0
- package/dist/client/static/js/javascript-zegm06a1.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-ntfp0w54.js → journeyDiagram-ZHPQQLJL-s4nv1f3q.js} +3 -3
- package/dist/client/static/js/json-g5ggnd94.js +1 -0
- package/dist/client/static/js/jsx-f6p72qpc.js +1 -0
- package/dist/client/static/js/{julia-jhe2vd4f.js → julia-yre4bxb9.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-q5rsr6j3.js → kanban-definition-PNTS6WVX-t8kbfefp.js} +8 -8
- package/dist/client/static/js/lua-bahx6qze.js +1 -0
- package/dist/client/static/js/markdown-9dhg1fax.js +1 -0
- package/dist/client/static/js/{mermaid.core-0gafsqrm.js → mermaid.core-0784021p.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jgz6nyhk.js → mindmap-definition-NLK3R4M7-swkkze8c.js} +8 -8
- package/dist/client/static/js/one-dark-pro-h5tmw145.js +1 -0
- package/dist/client/static/js/one-light-x7vj1pxr.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-b5bvg6v1.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-b3e9ma2c.js → pegDiagram-GJSIUBJH-jqayzh7z.js} +1 -1
- package/dist/client/static/js/{perl-qhj6tk7k.js → perl-weeskn1v.js} +1 -1
- package/dist/client/static/js/{php-arycc4w7.js → php-vf3045p9.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-77ee73zg.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-66mn2qnt.js → pieDiagram-5QR66LMP-w03a65ky.js} +2 -2
- package/dist/client/static/js/properties-49mfnee4.js +1 -0
- package/dist/client/static/js/python-qb69wp1s.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-n7warg0e.js → quadrantDiagram-O4NWA36T-2j7sfa9s.js} +3 -3
- package/dist/client/static/js/r-s3mf2tch.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-cp79xtvb.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-dcpgqhcb.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-qasqv686.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-e46908rd.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7009t6bk.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-k8j43rxj.js → railroadDiagram-XR7U4H2S-jtkkgy34.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-ef2v7nyq.js → requirementDiagram-PLB6GJNP-t85ckjdb.js} +3 -3
- package/dist/client/static/js/{ruby-fb6zzevm.js → ruby-1a2ryzy6.js} +1 -1
- package/dist/client/static/js/{rust-jvkbr060.js → rust-736r0f0v.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-3njbd1yd.js → sankeyDiagram-IPEJSGJF-5pfkw8ne.js} +3 -3
- package/dist/client/static/js/{sass-fzs6a0kr.js → sass-tq4vw7hd.js} +1 -1
- package/dist/client/static/js/{scss-gdb52d0c.js → scss-x7ddw6gb.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-k2wqc0qt.js → sequenceDiagram-PO4LG4MO-55vs9zv5.js} +7 -7
- package/dist/client/static/js/{sizeCapture-INFHLROL-cpnd12ee.js → sizeCapture-INFHLROL-pzqqd7f4.js} +1 -1
- package/dist/client/static/js/sql-aczp05f2.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-1ydpxaeg.js → stateDiagram-v2-GCMORJYK-6nhrph8n.js} +3 -3
- package/dist/client/static/js/{svelte-8s3k6qjd.js → svelte-0hv6pak2.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-4md43da2.js → swimlanes-2SLR337P-6tcnxfbv.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-7xrkrkpa.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-sp32bf3e.js → timeline-definition-EJHVYXUP-1dz46nt5.js} +4 -4
- package/dist/client/static/js/treeView-Q6P3EWNA-tpn62q8j.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-w910f1g4.js +1 -0
- package/dist/client/static/js/tsx-s1shkfg9.js +1 -0
- package/dist/client/static/js/typescript-htx9v6bf.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-p2ssettn.js → usecaseDiagram-POWQR4AR-b3jfveq6.js} +28 -28
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-ejqq8b82.js → vennDiagram-UO4OBE2U-dnc3jqvp.js} +3 -3
- package/dist/client/static/js/{vue-k3f3chre.js → vue-zccj3qa5.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-pt9tq808.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-tkk79rsn.js → wardleyDiagram-VNRHLVJA-466m8400.js} +3 -3
- package/dist/client/static/js/xml-wr1dxav5.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-zhgrsqpb.js → xychartDiagram-PMCCYNJV-kryrpqp1.js} +3 -3
- package/dist/client/static/js/yaml-0y9fdskg.js +1 -0
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/panel/Custom.test.tsx +1 -0
- package/marketplace/plugins/command-runner/src/panel/Groups.test.tsx +10 -0
- package/marketplace/plugins/command-runner/src/panel/Groups.tsx +24 -3
- package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -0
- package/marketplace/plugins/command-runner/src/protocol.ts +10 -0
- package/marketplace/plugins/command-runner/src/server/discovery.test.ts +30 -0
- package/marketplace/plugins/command-runner/src/server/scan.ts +16 -3
- package/package.json +1 -1
- package/src/client/components/common/header-controls/MoreMenu.tsx +24 -14
- package/src/client/components/common/header-controls/index.test.tsx +22 -0
- package/src/client/components/common/header-controls/index.tsx +8 -2
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +7 -0
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +2 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.test.tsx +1 -1
- package/src/client/components/mobile/LayoutWrapper.tsx +19 -2
- package/src/client/components/mobile/RightSidebar.tsx +49 -1
- package/src/client/components/mobile/SessionSidebar.tsx +29 -1
- package/src/client/components/mobile/header-titlebar.test.tsx +17 -0
- package/src/client/components/mobile/mobile-main-view/Header.test.tsx +43 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +30 -0
- package/src/client/components/mobile/mobile-session-sidebar/Dock.tsx +5 -1
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +12 -1
- package/src/client/components/mobile/panel-chips.test.tsx +13 -0
- package/src/client/components/mobile/panel-chips.tsx +9 -2
- package/src/client/components/settings/categories/connect-settings/DeviceTable.test.tsx +92 -0
- package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +22 -3
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +19 -19
- package/src/client/components/workspace/git-panel/commit-modal/Header.test.tsx +21 -0
- package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +13 -9
- package/src/client/components/workspace/terminal-panel/focus-target.test.ts +121 -0
- package/src/client/components/workspace/terminal-panel/focus-target.ts +54 -0
- package/src/client/components/workspace/terminal-panel/index.tsx +7 -1
- package/src/client/components/workspace/terminal-panel/instance.ts +82 -0
- package/src/client/components/workspace/terminal-panel/mount.ts +22 -63
- package/src/client/components/workspace/terminal-panel/soft-keyboard.ts +29 -0
- package/src/client/hooks/commands/use-command-runtime.ts +15 -0
- package/src/client/hooks/ui/touch-device.ts +8 -3
- package/src/client/hooks/ui/updates/check-request.ts +41 -0
- package/src/client/hooks/ui/updates/index.ts +13 -5
- package/src/client/hooks/ui/visibility-menu-trigger.test.ts +155 -0
- package/src/client/hooks/ui/visibility-menu-trigger.ts +85 -0
- package/src/client/hooks/workspace/panel-visibility-menu.ts +50 -0
- package/src/client/lib/native/run-command.test.ts +95 -0
- package/src/client/lib/native/run-command.ts +52 -0
- package/src/client/lib/router/open-session.test.ts +26 -1
- package/src/client/lib/router/open-session.ts +21 -0
- package/src/client/lib/ui/soft-keyboard.test.ts +103 -0
- package/src/client/lib/ui/soft-keyboard.ts +90 -0
- package/src/client/main.tsx +9 -0
- package/src/server/lib/auth/guard.ts +8 -2
- package/src/server/lib/changes/capture-shell.test.ts +253 -0
- package/src/server/lib/changes/capture-targets.test.ts +83 -0
- package/src/server/lib/changes/capture-targets.ts +51 -0
- package/src/server/lib/changes/capture-write.server.ts +2 -2
- package/src/server/lib/changes/capture.server.ts +14 -29
- package/src/server/lib/changes/capture.test.ts +69 -149
- package/src/server/lib/changes/patch-paths.ts +37 -0
- package/src/server/lib/connect/devices.server.test.ts +70 -0
- package/src/server/lib/connect/devices.server.ts +43 -1
- package/src/server/lib/connect/last-connect.gate.test.ts +52 -0
- package/src/server/routes/connect/devices.ts +5 -4
- package/src/shared/lib/commands/catalog.test.ts +36 -0
- package/src/shared/lib/commands/catalog.ts +16 -0
- package/src/shared/lib/connect/types.ts +1 -0
- package/src/shared/lib/updates/popup-state.ts +11 -0
- package/dist/client/static/js/ImageView-t3rkypzs.js +0 -1
- package/dist/client/static/js/LayoutWrapper-th2pd4yt.js +0 -2
- package/dist/client/static/js/SessionsView-yqy0a1xg.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-y0zb4vqa.js +0 -1
- package/dist/client/static/js/bash-k6p3y3pr.js +0 -1
- package/dist/client/static/js/c-ve09y19q.js +0 -1
- package/dist/client/static/js/cpp-vhqp7bcy.js +0 -1
- package/dist/client/static/js/css-77mvf0ca.js +0 -1
- package/dist/client/static/js/css-tys2rrny.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-nt1ed192.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-v4edaxx7.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-6gc6gd1d.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-adzhec96.js +0 -1
- package/dist/client/static/js/graphql-g97hycb3.js +0 -1
- package/dist/client/static/js/html-2syect3n.js +0 -1
- package/dist/client/static/js/index-1jeyjqkh.js +0 -2
- package/dist/client/static/js/index-4ry8kz8h.js +0 -3
- package/dist/client/static/js/index-fjqp03xe.js +0 -2
- package/dist/client/static/js/index-fs3pbqwn.js +0 -1
- package/dist/client/static/js/index-jze0zg3z.js +0 -2
- package/dist/client/static/js/index-w0xvdda9.js +0 -1
- package/dist/client/static/js/index-wfcgqjzr.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-2ye26vqn.js +0 -1
- package/dist/client/static/js/ini-7ffv28px.js +0 -1
- package/dist/client/static/js/java-4x5yky4a.js +0 -1
- package/dist/client/static/js/javascript-4kw2j9t3.js +0 -1
- package/dist/client/static/js/json-h3kwpty2.js +0 -1
- package/dist/client/static/js/jsx-jk20f0dr.js +0 -1
- package/dist/client/static/js/lua-k02dpxq8.js +0 -1
- package/dist/client/static/js/markdown-fhhg7ms6.js +0 -1
- package/dist/client/static/js/one-dark-pro-n0as47q7.js +0 -1
- package/dist/client/static/js/one-light-05nw3mzj.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-b0j3te0q.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-28qq62fn.js +0 -1
- package/dist/client/static/js/properties-qhvcxc13.js +0 -1
- package/dist/client/static/js/python-3qsrs510.js +0 -1
- package/dist/client/static/js/r-z2ng7mza.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-fyrcbpyd.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-9s62qncd.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-f7yjmhrk.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-sfrw8gkz.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-4mm4cern.js +0 -1
- package/dist/client/static/js/sql-ypk53ntb.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-d48g5gjf.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-a5vgg4gz.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-ctqhajgg.js +0 -1
- package/dist/client/static/js/tsx-zy7hb2hw.js +0 -1
- package/dist/client/static/js/typescript-2hr53c8j.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-ns7e0fqf.js +0 -1
- package/dist/client/static/js/xml-p4742r9b.js +0 -1
- package/dist/client/static/js/yaml-qbckg671.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,jd,l,x,te,R,F,z,P,U,q,j,p,h,Si,Fl,Ti,If,En,Tg,qo,co,Ss,K}from"./index-y5ymgp20.js";import{yl,hu,wd,bu,oa}from"./index-y91j4t1q.js";import{dn,Cn}from"./index-t6gznaxm.js";var fn=Cn(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(w){return w.add(4-w.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),e);var D,A,_,rt,O=a(this),Y=(D=this.isoWeekYear(),A=this.$u,_=(A?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return O.diff(Y,"week")+1},s.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var c=s.startOf;s.startOf=function(w,D){var A=this.$utils(),_=!!A.u(D)||D;return A.p(w)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(w,D)}}})});var mn=Cn(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={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,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},w=function(E){return(E=+E)+(E>68?1900:2000)},D=function(E){return function(H){this[E]=+H}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(E){(this.zone||(this.zone={})).offset=function(H){if(!H)return 0;if(H==="Z")return 0;var I=H.match(/([+-]|\d\d)/g),Q=60*I[1]+(+I[2]||0);return Q===0?0:I[0]==="+"?-Q:Q}(E)}],_=function(E){var H=c[E];return H&&(H.indexOf?H:H.s.concat(H.f))},rt=function(E,H){var I,Q=c.meridiem;if(Q){for(var lt=1;lt<=24;lt+=1)if(E.indexOf(Q(lt,0,H))>-1){I=lt>12;break}}else I=E===(H?"pm":"PM");return I},O={A:[s,function(E){this.afternoon=rt(E,!1)}],a:[s,function(E){this.afternoon=rt(E,!0)}],Q:[n,function(E){this.month=3*(E-1)+1}],S:[n,function(E){this.milliseconds=100*+E}],SS:[i,function(E){this.milliseconds=10*+E}],SSS:[/\d{3}/,function(E){this.milliseconds=+E}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(E){var H=c.ordinal,I=E.match(/\d+/);if(this.day=I[0],H)for(var Q=1;Q<=31;Q+=1)H(Q).replace(/\[|\]/g,"")===E&&(this.day=Q)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(E){var H=_("months"),I=(_("monthsShort")||H.map(function(Q){return Q.slice(0,3)})).indexOf(E)+1;if(I<1)throw Error();this.month=I%12||I}],MMMM:[s,function(E){var H=_("months").indexOf(E)+1;if(H<1)throw Error();this.month=H%12||H}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(E){this.year=w(E)}],YYYY:[/\d{4}/,D("year")],Z:A,ZZ:A};function Y(E){var H,I;H=E,I=c&&c.formats;for(var Q=(E=H.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,v){var S=v&&v.toUpperCase();return et||I[v]||e[v]||I[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,W,f){return W||f.slice(1)})})).match(r),lt=Q.length,it=0;it<lt;it+=1){var N=Q[it],M=O[N],u=M&&M[0],L=M&&M[1];Q[it]=L?{regex:u,parser:L}:N.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},v=0,S=0;v<lt;v+=1){var C=Q[v];if(typeof C=="string")S+=C.length;else{var{regex:W,parser:f}=C,b=tt.slice(S),T=W.exec(b)[0];f.call(et,T),tt=tt.replace(T,"")}}return function(k){var Z=k.afternoon;if(Z!==void 0){var o=k.hours;Z?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(E,H,I){I.p.customParseFormat=!0,E&&E.parseTwoDigitYear&&(w=E.parseTwoDigitYear);var Q=H.prototype,lt=Q.parse;Q.parse=function(it){var{date:N,utc:M,args:u}=it;this.$u=M;var L=u[1];if(typeof L=="string"){var tt=u[2]===!0,et=u[3]===!0,v=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=I.Ls[S]),this.$d=function(b,T,k,Z){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1000:1)*b);var o=Y(T)(b),{year:X,month:m,day:dt,hours:d,minutes:B,seconds:G,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,V=dt||(X||m?1:g.getDate()),J=X||g.getFullYear(),y=0;X&&!m||(y=m>0?m-1:g.getMonth());var mt,at=d||0,st=B||0,ht=G||0,yt=ct||0;return ut?new Date(Date.UTC(J,y,V,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(J,y,V,at,st,ht,yt)):(mt=new Date(J,y,V,at,st,ht,yt),nt&&(mt=Z(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(N,L,M,I),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),v&&N!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var C=L.length,W=1;W<=C;W+=1){u[1]=L[W-1];var f=I.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}W===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var hn=Cn(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var w=this.$utils(),D=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return w.s(s.week(),A==="w"?1:2,"0");case"W":case"WW":return w.s(s.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return w.s(String(s.$H===0?24:s.$H),A==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return A}});return i.bind(this)(D)}}})});var yn=Cn(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,w=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:w,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(N){return N instanceof lt},O=function(N,M,u){return new lt(N,u,M.$l)},Y=function(N){return r.p(N)+"s"},E=function(N){return N<0},H=function(N){return E(N)?Math.ceil(N):Math.floor(N)},I=function(N){return Math.abs(N)},Q=function(N,M){return N?E(N)?{negative:!0,format:""+I(N)+M}:{negative:!1,format:""+N+M}:{negative:!1,format:""}},lt=function(){function N(u,L,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return O(u*_[Y(L)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var v=u.match(D);if(v){var S=v.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=N.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(L,tt){return L+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=H(u/c),u%=c,this.$d.months=H(u/w),u%=w,this.$d.days=H(u/s),u%=s,this.$d.hours=H(u/a),u%=a,this.$d.minutes=H(u/i),u%=i,this.$d.seconds=H(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=Q(this.$d.years,"Y"),L=Q(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=Q(tt,"D"),v=Q(this.$d.hours,"H"),S=Q(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var W=Q(C,"S"),f=u.negative||L.negative||et.negative||v.negative||S.negative||W.negative,b=v.format||S.format||W.format?"T":"",T=(f?"-":"")+"P"+u.format+L.format+et.format+b+v.format+S.format+W.format;return T==="P"||T==="-P"?"P0D":T},M.toJSON=function(){return this.toISOString()},M.format=function(u){var L=u||"YYYY-MM-DDTHH:mm:ss",tt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(A,function(et,v){return v||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var L=this.$ms,tt=Y(u);return tt==="milliseconds"?L%=1000:L=tt==="weeks"?H(L/_[tt]):this.$d[tt],L||0},M.add=function(u,L,tt){var et;return et=L?u*_[Y(L)]:rt(u)?u.$ms:O(u,this).$ms,O(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,L){return this.add(u,L,!0)},M.locale=function(u){var L=this.clone();return L.$l=u,L},M.clone=function(){return O(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},N}(),it=function(N,M,u){return N.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(N,M,u){e=u,r=u().$utils(),u.duration=function(et,v){var S=u.locale();return O(et,{$l:S},v)},u.isDuration=rt;var L=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,v){return rt(et)?it(this,et,1):L.bind(this)(et,v)},M.prototype.subtract=function(et,v){return rt(et)?it(this,et,-1):tt.bind(this)(et,v)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function Wn(e){return"translate("+e+",0)"}function An(e){return"translate(0,"+e+")"}function On(e){return(r)=>+e(r)}function $n(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function Hn(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,w=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,A=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?Wn:An;function O(Y){var E=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,H=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,I=Math.max(s,0)+w,Q=r.range(),lt=+Q[0]+D,it=+Q[Q.length-1]+D,N=(r.bandwidth?$n:On)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),L=M.selectAll(".tick").data(E,r).order(),tt=L.exit(),et=L.enter().append("g").attr("class","tick"),v=L.select("line"),S=L.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(et),v=v.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",A*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,A*I).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),L=L.transition(Y),v=v.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=N(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var W=this.parentNode.__axis;return rt((W&&isFinite(W=W(C))?W:N(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+A*c+","+lt+"H"+D+"V"+it+"H"+A*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+A*c+"V"+D+"H"+it+"V"+A*c:"M"+lt+","+D+"H"+it),L.attr("opacity",1).attr("transform",function(C){return rt(N(C)+D)}),v.attr(_+"2",A*s),S.attr(_,A*I).text(H),M.filter(Hn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=N})}return O.scale=function(Y){return arguments.length?(r=Y,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),O):n.slice()},O.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),O):i&&i.slice()},O.tickFormat=function(Y){return arguments.length?(a=Y,O):a},O.tickSize=function(Y){return arguments.length?(s=c=+Y,O):s},O.tickSizeInner=function(Y){return arguments.length?(s=+Y,O):s},O.tickSizeOuter=function(Y){return arguments.length?(c=+Y,O):c},O.tickPadding=function(Y){return arguments.length?(w=+Y,O):w},O.offset=function(Y){return arguments.length?(D=+Y,O):D},O}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,Nn=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof En))e=If(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Si(_t,Lr,Fl(Ti,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new En(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>Nn?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Pn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Pn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Si(Wt,ye,Fl(Ti,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=qo(r.c,n.c),s=qo(r.l,n.l),c=qo(r.opacity,n.opacity);return function(w){return r.h=i(w),r.c=a(w),r.l=s(w),r.opacity=c(w),r+""}}}var Ar=Er(Tg),Ms=Er(qo);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),w=a.ceil(s);return s-c<w-s?c:w},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,w)=>{let D=[];if(s=a.ceil(s),w=w==null?1:Math.floor(w),!(s<c)||!(w>0))return D;let A;do D.push(A=new Date(+s)),r(s,w),e(s);while(A<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,w)=>{if(c>=c)if(w<0)while(++w<=0)while(r(c,-1),!s(c));else while(--w>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Vn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),zn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),Rn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Bn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Zn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),jn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),Xn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,qn=Nt.range,Gn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),oi=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ci=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var ui=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var li=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function w(A,_,rt){let O=_<A;if(O)[A,_]=[_,A];let Y=rt&&typeof rt.range==="function"?rt:D(A,_,rt),E=Y?Y.range(A,+_+1):[];return O?E.reverse():E}function D(A,_,rt){let O=Math.abs(_-A)/rt,Y=yl(([,,I])=>I).right(c,O);if(Y===c.length)return e.every(hu(A/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(hu(A,_,rt),1));let[E,H]=c[O/c[Y-1][2]<c[Y][2]/O?Y-1:Y];return E.every(H)}return[w,D]}var[fi,di]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:w,shortMonths:D}=e,A=oe(a),_=ce(a),rt=oe(s),O=ce(s),Y=oe(c),E=ce(c),H=oe(w),I=ce(w),Q=oe(D),lt=ce(D),it={a:k,A:Z,b:o,B:X,c:null,d:Qr,e:Qr,f:Oi,g:ji,G:qi,H:Wi,I:Ei,j:Ai,L:rn,m:$i,M:Hi,p:m,q:dt,Q:tn,s:en,S:Ni,u:Pi,U:Vi,V:zi,w:Ri,W:Bi,x:null,X:null,y:Zi,Y:Xi,Z:Gi,"%":Kr},N={a:d,A:B,b:G,B:ct,c:null,d:Jr,e:Jr,f:ta,g:fa,G:ma,H:Qi,I:Ji,j:Ki,L:an,m:ea,M:ra,p:ut,q:nt,Q:tn,s:en,S:na,u:ia,U:aa,V:sa,w:ca,W:ua,x:null,X:null,y:la,Y:da,Z:ha,"%":Kr},M={a:v,A:S,b:C,B:W,c:f,d:qr,e:qr,f:Fi,g:Xr,G:jr,H:Gr,I:Gr,j:Di,L:Yi,m:Mi,M:Ci,p:et,q:wi,Q:Ui,s:Li,S:_i,u:ki,U:pi,V:vi,w:gi,W:xi,x:b,X:T,y:Xr,Y:jr,Z:bi,"%":Ii};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),N.x=u(n,N),N.X=u(i,N),N.c=u(r,N);function u(g,V){return function(J){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(J instanceof Date))J=new Date(+J);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=V[ht])ht=pt(J,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function L(g,V){return function(J){var y=se(1900,void 0,1),mt=tt(y,g,J+="",0),at,st;if(mt!=J.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(V&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,V,J,y){var mt=0,at=V.length,st=J.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=V.charCodeAt(mt++),ht===37){if(ht=V.charAt(mt++),yt=M[ht in Zr?V.charAt(mt++):ht],!yt||(y=yt(g,J,y))<0)return-1}else if(ht!=J.charCodeAt(y++))return-1}return y}function et(g,V,J){var y=A.exec(V.slice(J));return y?(g.p=_.get(y[0].toLowerCase()),J+y[0].length):-1}function v(g,V,J){var y=Y.exec(V.slice(J));return y?(g.w=E.get(y[0].toLowerCase()),J+y[0].length):-1}function S(g,V,J){var y=rt.exec(V.slice(J));return y?(g.w=O.get(y[0].toLowerCase()),J+y[0].length):-1}function C(g,V,J){var y=Q.exec(V.slice(J));return y?(g.m=lt.get(y[0].toLowerCase()),J+y[0].length):-1}function W(g,V,J){var y=H.exec(V.slice(J));return y?(g.m=I.get(y[0].toLowerCase()),J+y[0].length):-1}function f(g,V,J){return tt(g,r,V,J)}function b(g,V,J){return tt(g,n,V,J)}function T(g,V,J){return tt(g,i,V,J)}function k(g){return c[g.getDay()]}function Z(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function X(g){return w[g.getMonth()]}function m(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function B(g){return s[g.getUTCDay()]}function G(g){return D[g.getUTCMonth()]}function ct(g){return w[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var V=u(g+="",it);return V.toString=function(){return g},V},parse:function(g){var V=L(g+="",!1);return V.toString=function(){return g},V},utcFormat:function(g){var V=u(g+="",N);return V.toString=function(){return g},V},utcParse:function(g){var V=L(g+="",!0);return V.toString=function(){return g},V}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,mi=/^%/,hi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function yi(e){return e.replace(hi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(yi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function gi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function xi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function bi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Ii(e,r,n){var i=mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Ui(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Li(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Wi(e,r){return ot(e.getHours(),r,2)}function Ei(e,r){return ot(e.getHours()%12||12,r,2)}function Ai(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Oi(e,r){return rn(e,r)+"000"}function $i(e,r){return ot(e.getMonth()+1,r,2)}function Hi(e,r){return ot(e.getMinutes(),r,2)}function Ni(e,r){return ot(e.getSeconds(),r,2)}function Pi(e){var r=e.getDay();return r===0?7:r}function Vi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function zi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function Ri(e){return e.getDay()}function Bi(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Zi(e,r){return ot(e.getFullYear()%100,r,2)}function ji(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function Xi(e,r){return ot(e.getFullYear()%1e4,r,4)}function qi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function Gi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Qi(e,r){return ot(e.getUTCHours(),r,2)}function Ji(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ki(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function ta(e,r){return an(e,r)+"000"}function ea(e,r){return ot(e.getUTCMonth()+1,r,2)}function ra(e,r){return ot(e.getUTCMinutes(),r,2)}function na(e,r){return ot(e.getUTCSeconds(),r,2)}function ia(e){var r=e.getUTCDay();return r===0?7:r}function aa(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function sa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function ca(e){return e.getUTCDay()}function ua(e,r){return ot(qt.count(St(e)-1,e),r,2)}function la(e,r){return ot(e.getUTCFullYear()%100,r,2)}function fa(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function da(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function ma(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function ha(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,on,cn,un;Qe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qe(e){return Gt=Ge(e),Bt=Gt.format,on=Gt.parse,cn=Gt.utcFormat,un=Gt.utcParse,Gt}function ya(e){return new Date(e)}function ga(e){return e instanceof Date?+e:+new Date(+e)}function ln(e,r,n,i,a,s,c,w,D,A){var _=bu(),{invert:rt,domain:O}=_,Y=A(".%L"),E=A(":%S"),H=A("%I:%M"),I=A("%I %p"),Q=A("%a %d"),lt=A("%b %d"),it=A("%B"),N=A("%Y");function M(u){return(D(u)<u?Y:w(u)<u?E:c(u)<u?H:s(u)<u?I:i(u)<u?a(u)<u?Q:lt:n(u)<u?it:N)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?O(Array.from(u,ga)):O().map(ya)},_.ticks=function(u){var L=O();return e(L[0],L[L.length-1],u==null?10:u)},_.tickFormat=function(u,L){return L==null?M:A(L)},_.nice=function(u){var L=O();if(!u||typeof u.range!=="function")u=r(L[0],L[L.length-1],u==null?10:u);return u?O(Ve(L,u)):_},_.copy=function(){return wd(_,ln(e,r,n,i,a,s,c,w,D,A))},_}function Je(){return co.apply(ln(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Tn=dn(Ss(),1),bt=dn(jd(),1),vn=dn(fn(),1),xn=dn(mn(),1),bn=dn(hn(),1),Jt=dn(jd(),1),Ln=dn(yn(),1);var cr=function(){var e=t(function(W,f,b,T){for(b=b||{},T=W.length;T--;b[W[T]]=f);return b},"o"),r=[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],i=[1,27],a=[1,28],s=[1,29],c=[1,30],w=[1,31],D=[1,32],A=[1,33],_=[1,34],rt=[1,9],O=[1,10],Y=[1,11],E=[1,12],H=[1,13],I=[1,14],Q=[1,15],lt=[1,16],it=[1,19],N=[1,20],M=[1,21],u=[1,22],L=[1,23],tt=[1,25],et=[1,35],v={trace:t(function(){},"trace"),yy:{},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},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"},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]],performAction:t(function(f,b,T,k,Z,o,X){var m=o.length-1;switch(Z){case 1:return o[m-1];case 2:this.$=[];break;case 3:o[m-1].push(o[m]),this.$=o[m-1];break;case 4:case 5:this.$=o[m];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[m].substr(18);break;case 19:k.TopAxis(),this.$=o[m].substr(8);break;case 20:k.setAxisFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 21:k.setTickInterval(o[m].substr(13)),this.$=o[m].substr(13);break;case 22:k.setExcludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 23:k.setIncludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 24:k.setTodayMarker(o[m].substr(12)),this.$=o[m].substr(12);break;case 27:k.setDiagramTitle(o[m].substr(6)),this.$=o[m].substr(6);break;case 28:this.$=o[m].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[m].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[m].substr(8)),this.$=o[m].substr(8);break;case 33:k.addTask(o[m-1],o[m]),this.$="task";break;case 34:this.$=o[m-1],k.setClickEvent(o[m-1],o[m],null);break;case 35:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],o[m]);break;case 36:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],null),k.setLink(o[m-2],o[m]);break;case 37:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-2],o[m-1]),k.setLink(o[m-3],o[m]);break;case 38:this.$=o[m-2],k.setClickEvent(o[m-2],o[m],null),k.setLink(o[m-2],o[m-1]);break;case 39:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-1],o[m]),k.setLink(o[m-3],o[m-2]);break;case 40:this.$=o[m-1],k.setLink(o[m-1],o[m]);break;case 41:case 47:this.$=o[m-1]+" "+o[m];break;case 42:case 43:case 45:this.$=o[m-2]+" "+o[m-1]+" "+o[m];break;case 44:case 46:this.$=o[m-3]+" "+o[m-2]+" "+o[m-1]+" "+o[m];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,b){if(b.recoverable)this.trace(f);else{var T=Error(f);throw T.hash=b,T}},"parseError"),parse:t(function(f){var b=this,T=[0],k=[],Z=[null],o=[],X=this.table,m="",dt=0,d=0,B=0,G=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var V in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,V))g.yy[V]=this.yy[V];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var J=nt.yylloc;o.push(J);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){T.length=T.length-2*wt,Z.length=Z.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=b.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,os,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=T[T.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=X[yt]&&X[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in X[yt])if(this.terminals_[le]&&le>G)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
1
|
+
import{t,Zd,l,x,te,R,F,z,P,U,q,j,p,h,Qi,$l,Ni,Mf,In,$g,Ko,uo,Rs,K}from"./index-b6cyn4hr.js";import{Cl,Cu,Dd,Eu,ia}from"./index-ne131hmw.js";import{mn,Bn}from"./index-hz177dr2.js";var fn=Bn(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(w){return w.add(4-w.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),e);var D,A,_,rt,O=a(this),Y=(D=this.isoWeekYear(),A=this.$u,_=(A?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return O.diff(Y,"week")+1},s.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var c=s.startOf;s.startOf=function(w,D){var A=this.$utils(),_=!!A.u(D)||D;return A.p(w)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(w,D)}}})});var dn=Bn(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={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,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},w=function(E){return(E=+E)+(E>68?1900:2000)},D=function(E){return function(H){this[E]=+H}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(E){(this.zone||(this.zone={})).offset=function(H){if(!H)return 0;if(H==="Z")return 0;var I=H.match(/([+-]|\d\d)/g),Q=60*I[1]+(+I[2]||0);return Q===0?0:I[0]==="+"?-Q:Q}(E)}],_=function(E){var H=c[E];return H&&(H.indexOf?H:H.s.concat(H.f))},rt=function(E,H){var I,Q=c.meridiem;if(Q){for(var lt=1;lt<=24;lt+=1)if(E.indexOf(Q(lt,0,H))>-1){I=lt>12;break}}else I=E===(H?"pm":"PM");return I},O={A:[s,function(E){this.afternoon=rt(E,!1)}],a:[s,function(E){this.afternoon=rt(E,!0)}],Q:[n,function(E){this.month=3*(E-1)+1}],S:[n,function(E){this.milliseconds=100*+E}],SS:[i,function(E){this.milliseconds=10*+E}],SSS:[/\d{3}/,function(E){this.milliseconds=+E}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(E){var H=c.ordinal,I=E.match(/\d+/);if(this.day=I[0],H)for(var Q=1;Q<=31;Q+=1)H(Q).replace(/\[|\]/g,"")===E&&(this.day=Q)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(E){var H=_("months"),I=(_("monthsShort")||H.map(function(Q){return Q.slice(0,3)})).indexOf(E)+1;if(I<1)throw Error();this.month=I%12||I}],MMMM:[s,function(E){var H=_("months").indexOf(E)+1;if(H<1)throw Error();this.month=H%12||H}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(E){this.year=w(E)}],YYYY:[/\d{4}/,D("year")],Z:A,ZZ:A};function Y(E){var H,I;H=E,I=c&&c.formats;for(var Q=(E=H.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,v){var S=v&&v.toUpperCase();return et||I[v]||e[v]||I[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,W,f){return W||f.slice(1)})})).match(r),lt=Q.length,it=0;it<lt;it+=1){var N=Q[it],M=O[N],u=M&&M[0],L=M&&M[1];Q[it]=L?{regex:u,parser:L}:N.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},v=0,S=0;v<lt;v+=1){var C=Q[v];if(typeof C=="string")S+=C.length;else{var{regex:W,parser:f}=C,b=tt.slice(S),T=W.exec(b)[0];f.call(et,T),tt=tt.replace(T,"")}}return function(k){var Z=k.afternoon;if(Z!==void 0){var o=k.hours;Z?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(E,H,I){I.p.customParseFormat=!0,E&&E.parseTwoDigitYear&&(w=E.parseTwoDigitYear);var Q=H.prototype,lt=Q.parse;Q.parse=function(it){var{date:N,utc:M,args:u}=it;this.$u=M;var L=u[1];if(typeof L=="string"){var tt=u[2]===!0,et=u[3]===!0,v=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=I.Ls[S]),this.$d=function(b,T,k,Z){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1000:1)*b);var o=Y(T)(b),{year:X,month:m,day:dt,hours:d,minutes:B,seconds:G,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,V=dt||(X||m?1:g.getDate()),J=X||g.getFullYear(),y=0;X&&!m||(y=m>0?m-1:g.getMonth());var mt,at=d||0,st=B||0,ht=G||0,yt=ct||0;return ut?new Date(Date.UTC(J,y,V,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(J,y,V,at,st,ht,yt)):(mt=new Date(J,y,V,at,st,ht,yt),nt&&(mt=Z(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(N,L,M,I),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),v&&N!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var C=L.length,W=1;W<=C;W+=1){u[1]=L[W-1];var f=I.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}W===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var hn=Bn(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var w=this.$utils(),D=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return w.s(s.week(),A==="w"?1:2,"0");case"W":case"WW":return w.s(s.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return w.s(String(s.$H===0?24:s.$H),A==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return A}});return i.bind(this)(D)}}})});var yn=Bn(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,w=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:w,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(N){return N instanceof lt},O=function(N,M,u){return new lt(N,u,M.$l)},Y=function(N){return r.p(N)+"s"},E=function(N){return N<0},H=function(N){return E(N)?Math.ceil(N):Math.floor(N)},I=function(N){return Math.abs(N)},Q=function(N,M){return N?E(N)?{negative:!0,format:""+I(N)+M}:{negative:!1,format:""+N+M}:{negative:!1,format:""}},lt=function(){function N(u,L,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return O(u*_[Y(L)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var v=u.match(D);if(v){var S=v.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=N.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(L,tt){return L+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=H(u/c),u%=c,this.$d.months=H(u/w),u%=w,this.$d.days=H(u/s),u%=s,this.$d.hours=H(u/a),u%=a,this.$d.minutes=H(u/i),u%=i,this.$d.seconds=H(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=Q(this.$d.years,"Y"),L=Q(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=Q(tt,"D"),v=Q(this.$d.hours,"H"),S=Q(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var W=Q(C,"S"),f=u.negative||L.negative||et.negative||v.negative||S.negative||W.negative,b=v.format||S.format||W.format?"T":"",T=(f?"-":"")+"P"+u.format+L.format+et.format+b+v.format+S.format+W.format;return T==="P"||T==="-P"?"P0D":T},M.toJSON=function(){return this.toISOString()},M.format=function(u){var L=u||"YYYY-MM-DDTHH:mm:ss",tt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(A,function(et,v){return v||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var L=this.$ms,tt=Y(u);return tt==="milliseconds"?L%=1000:L=tt==="weeks"?H(L/_[tt]):this.$d[tt],L||0},M.add=function(u,L,tt){var et;return et=L?u*_[Y(L)]:rt(u)?u.$ms:O(u,this).$ms,O(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,L){return this.add(u,L,!0)},M.locale=function(u){var L=this.clone();return L.$l=u,L},M.clone=function(){return O(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},N}(),it=function(N,M,u){return N.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(N,M,u){e=u,r=u().$utils(),u.duration=function(et,v){var S=u.locale();return O(et,{$l:S},v)},u.isDuration=rt;var L=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,v){return rt(et)?it(this,et,1):L.bind(this)(et,v)},M.prototype.subtract=function(et,v){return rt(et)?it(this,et,-1):tt.bind(this)(et,v)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function Wn(e){return"translate("+e+",0)"}function En(e){return"translate(0,"+e+")"}function An(e){return(r)=>+e(r)}function On(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function $n(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,w=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,A=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?Wn:En;function O(Y){var E=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,H=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,I=Math.max(s,0)+w,Q=r.range(),lt=+Q[0]+D,it=+Q[Q.length-1]+D,N=(r.bandwidth?On:An)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),L=M.selectAll(".tick").data(E,r).order(),tt=L.exit(),et=L.enter().append("g").attr("class","tick"),v=L.select("line"),S=L.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(et),v=v.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",A*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,A*I).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),L=L.transition(Y),v=v.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=N(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var W=this.parentNode.__axis;return rt((W&&isFinite(W=W(C))?W:N(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+A*c+","+lt+"H"+D+"V"+it+"H"+A*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+A*c+"V"+D+"H"+it+"V"+A*c:"M"+lt+","+D+"H"+it),L.attr("opacity",1).attr("transform",function(C){return rt(N(C)+D)}),v.attr(_+"2",A*s),S.attr(_,A*I).text(H),M.filter($n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=N})}return O.scale=function(Y){return arguments.length?(r=Y,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),O):n.slice()},O.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),O):i&&i.slice()},O.tickFormat=function(Y){return arguments.length?(a=Y,O):a},O.tickSize=function(Y){return arguments.length?(s=c=+Y,O):s},O.tickSizeInner=function(Y){return arguments.length?(s=+Y,O):s},O.tickSizeOuter=function(Y){return arguments.length?(c=+Y,O):c},O.tickPadding=function(Y){return arguments.length?(w=+Y,O):w},O.offset=function(Y){return arguments.length?(D=+Y,O):D},O}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,Hn=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof In))e=Mf(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Qi(_t,Lr,$l(Ni,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new In(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>Hn?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Nn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Nn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Qi(Wt,ye,$l(Ni,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=Ko(r.c,n.c),s=Ko(r.l,n.l),c=Ko(r.opacity,n.opacity);return function(w){return r.h=i(w),r.c=a(w),r.l=s(w),r.opacity=c(w),r+""}}}var Ar=Er($g),Ms=Er(Ko);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),w=a.ceil(s);return s-c<w-s?c:w},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,w)=>{let D=[];if(s=a.ceil(s),w=w==null?1:Math.floor(w),!(s<c)||!(w>0))return D;let A;do D.push(A=new Date(+s)),r(s,w),e(s);while(A<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,w)=>{if(c>=c)if(w<0)while(++w<=0)while(r(c,-1),!s(c));else while(--w>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Pn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),Vn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),zn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Rn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Zn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),jn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),Xn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,qn=Nt.range,Gn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),oi=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ci=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var ui=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var li=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function w(A,_,rt){let O=_<A;if(O)[A,_]=[_,A];let Y=rt&&typeof rt.range==="function"?rt:D(A,_,rt),E=Y?Y.range(A,+_+1):[];return O?E.reverse():E}function D(A,_,rt){let O=Math.abs(_-A)/rt,Y=Cl(([,,I])=>I).right(c,O);if(Y===c.length)return e.every(Cu(A/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(Cu(A,_,rt),1));let[E,H]=c[O/c[Y-1][2]<c[Y][2]/O?Y-1:Y];return E.every(H)}return[w,D]}var[fi,di]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:w,shortMonths:D}=e,A=oe(a),_=ce(a),rt=oe(s),O=ce(s),Y=oe(c),E=ce(c),H=oe(w),I=ce(w),Q=oe(D),lt=ce(D),it={a:k,A:Z,b:o,B:X,c:null,d:Qr,e:Qr,f:Ei,g:Zi,G:Xi,H:Ui,I:Li,j:Wi,L:rn,m:Ai,M:Oi,p:m,q:dt,Q:tn,s:en,S:$i,u:Hi,U:Pi,V:Vi,w:zi,W:Ri,x:null,X:null,y:Bi,Y:ji,Z:qi,"%":Kr},N={a:d,A:B,b:G,B:ct,c:null,d:Jr,e:Jr,f:ta,g:fa,G:ma,H:Gi,I:Ji,j:Ki,L:an,m:ea,M:ra,p:ut,q:nt,Q:tn,s:en,S:na,u:aa,U:sa,V:oa,w:ca,W:ua,x:null,X:null,y:la,Y:da,Z:ha,"%":Kr},M={a:v,A:S,b:C,B:W,c:f,d:qr,e:qr,f:_i,g:Xr,G:jr,H:Gr,I:Gr,j:Mi,L:Si,m:wi,M:Di,p:et,q:bi,Q:Fi,s:Ii,S:Ci,u:ki,U:pi,V:Ti,w:gi,W:vi,x:b,X:T,y:Xr,Y:jr,Z:xi,"%":Yi};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),N.x=u(n,N),N.X=u(i,N),N.c=u(r,N);function u(g,V){return function(J){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(J instanceof Date))J=new Date(+J);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=V[ht])ht=pt(J,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function L(g,V){return function(J){var y=se(1900,void 0,1),mt=tt(y,g,J+="",0),at,st;if(mt!=J.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(V&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,V,J,y){var mt=0,at=V.length,st=J.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=V.charCodeAt(mt++),ht===37){if(ht=V.charAt(mt++),yt=M[ht in Zr?V.charAt(mt++):ht],!yt||(y=yt(g,J,y))<0)return-1}else if(ht!=J.charCodeAt(y++))return-1}return y}function et(g,V,J){var y=A.exec(V.slice(J));return y?(g.p=_.get(y[0].toLowerCase()),J+y[0].length):-1}function v(g,V,J){var y=Y.exec(V.slice(J));return y?(g.w=E.get(y[0].toLowerCase()),J+y[0].length):-1}function S(g,V,J){var y=rt.exec(V.slice(J));return y?(g.w=O.get(y[0].toLowerCase()),J+y[0].length):-1}function C(g,V,J){var y=Q.exec(V.slice(J));return y?(g.m=lt.get(y[0].toLowerCase()),J+y[0].length):-1}function W(g,V,J){var y=H.exec(V.slice(J));return y?(g.m=I.get(y[0].toLowerCase()),J+y[0].length):-1}function f(g,V,J){return tt(g,r,V,J)}function b(g,V,J){return tt(g,n,V,J)}function T(g,V,J){return tt(g,i,V,J)}function k(g){return c[g.getDay()]}function Z(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function X(g){return w[g.getMonth()]}function m(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function B(g){return s[g.getUTCDay()]}function G(g){return D[g.getUTCMonth()]}function ct(g){return w[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var V=u(g+="",it);return V.toString=function(){return g},V},parse:function(g){var V=L(g+="",!1);return V.toString=function(){return g},V},utcFormat:function(g){var V=u(g+="",N);return V.toString=function(){return g},V},utcParse:function(g){var V=L(g+="",!0);return V.toString=function(){return g},V}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,mi=/^%/,hi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function yi(e){return e.replace(hi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(yi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function gi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Ti(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function xi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function bi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Si(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Yi(e,r,n){var i=mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Fi(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Ui(e,r){return ot(e.getHours(),r,2)}function Li(e,r){return ot(e.getHours()%12||12,r,2)}function Wi(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Ei(e,r){return rn(e,r)+"000"}function Ai(e,r){return ot(e.getMonth()+1,r,2)}function Oi(e,r){return ot(e.getMinutes(),r,2)}function $i(e,r){return ot(e.getSeconds(),r,2)}function Hi(e){var r=e.getDay();return r===0?7:r}function Pi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function Vi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function zi(e){return e.getDay()}function Ri(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Bi(e,r){return ot(e.getFullYear()%100,r,2)}function Zi(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function ji(e,r){return ot(e.getFullYear()%1e4,r,4)}function Xi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function qi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Gi(e,r){return ot(e.getUTCHours(),r,2)}function Ji(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ki(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function ta(e,r){return an(e,r)+"000"}function ea(e,r){return ot(e.getUTCMonth()+1,r,2)}function ra(e,r){return ot(e.getUTCMinutes(),r,2)}function na(e,r){return ot(e.getUTCSeconds(),r,2)}function aa(e){var r=e.getUTCDay();return r===0?7:r}function sa(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function oa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function ca(e){return e.getUTCDay()}function ua(e,r){return ot(qt.count(St(e)-1,e),r,2)}function la(e,r){return ot(e.getUTCFullYear()%100,r,2)}function fa(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function da(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function ma(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function ha(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,on,cn,un;Qe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qe(e){return Gt=Ge(e),Bt=Gt.format,on=Gt.parse,cn=Gt.utcFormat,un=Gt.utcParse,Gt}function ya(e){return new Date(e)}function ga(e){return e instanceof Date?+e:+new Date(+e)}function ln(e,r,n,i,a,s,c,w,D,A){var _=Eu(),{invert:rt,domain:O}=_,Y=A(".%L"),E=A(":%S"),H=A("%I:%M"),I=A("%I %p"),Q=A("%a %d"),lt=A("%b %d"),it=A("%B"),N=A("%Y");function M(u){return(D(u)<u?Y:w(u)<u?E:c(u)<u?H:s(u)<u?I:i(u)<u?a(u)<u?Q:lt:n(u)<u?it:N)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?O(Array.from(u,ga)):O().map(ya)},_.ticks=function(u){var L=O();return e(L[0],L[L.length-1],u==null?10:u)},_.tickFormat=function(u,L){return L==null?M:A(L)},_.nice=function(u){var L=O();if(!u||typeof u.range!=="function")u=r(L[0],L[L.length-1],u==null?10:u);return u?O(Ve(L,u)):_},_.copy=function(){return Dd(_,ln(e,r,n,i,a,s,c,w,D,A))},_}function Je(){return uo.apply(ln(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Tn=mn(Rs(),1),bt=mn(Zd(),1),vn=mn(fn(),1),xn=mn(dn(),1),bn=mn(hn(),1),Jt=mn(Zd(),1),Ln=mn(yn(),1);var cr=function(){var e=t(function(W,f,b,T){for(b=b||{},T=W.length;T--;b[W[T]]=f);return b},"o"),r=[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],i=[1,27],a=[1,28],s=[1,29],c=[1,30],w=[1,31],D=[1,32],A=[1,33],_=[1,34],rt=[1,9],O=[1,10],Y=[1,11],E=[1,12],H=[1,13],I=[1,14],Q=[1,15],lt=[1,16],it=[1,19],N=[1,20],M=[1,21],u=[1,22],L=[1,23],tt=[1,25],et=[1,35],v={trace:t(function(){},"trace"),yy:{},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},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"},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]],performAction:t(function(f,b,T,k,Z,o,X){var m=o.length-1;switch(Z){case 1:return o[m-1];case 2:this.$=[];break;case 3:o[m-1].push(o[m]),this.$=o[m-1];break;case 4:case 5:this.$=o[m];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[m].substr(18);break;case 19:k.TopAxis(),this.$=o[m].substr(8);break;case 20:k.setAxisFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 21:k.setTickInterval(o[m].substr(13)),this.$=o[m].substr(13);break;case 22:k.setExcludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 23:k.setIncludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 24:k.setTodayMarker(o[m].substr(12)),this.$=o[m].substr(12);break;case 27:k.setDiagramTitle(o[m].substr(6)),this.$=o[m].substr(6);break;case 28:this.$=o[m].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[m].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[m].substr(8)),this.$=o[m].substr(8);break;case 33:k.addTask(o[m-1],o[m]),this.$="task";break;case 34:this.$=o[m-1],k.setClickEvent(o[m-1],o[m],null);break;case 35:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],o[m]);break;case 36:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],null),k.setLink(o[m-2],o[m]);break;case 37:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-2],o[m-1]),k.setLink(o[m-3],o[m]);break;case 38:this.$=o[m-2],k.setClickEvent(o[m-2],o[m],null),k.setLink(o[m-2],o[m-1]);break;case 39:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-1],o[m]),k.setLink(o[m-3],o[m-2]);break;case 40:this.$=o[m-1],k.setLink(o[m-1],o[m]);break;case 41:case 47:this.$=o[m-1]+" "+o[m];break;case 42:case 43:case 45:this.$=o[m-2]+" "+o[m-1]+" "+o[m];break;case 44:case 46:this.$=o[m-3]+" "+o[m-2]+" "+o[m-1]+" "+o[m];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,b){if(b.recoverable)this.trace(f);else{var T=Error(f);throw T.hash=b,T}},"parseError"),parse:t(function(f){var b=this,T=[0],k=[],Z=[null],o=[],X=this.table,m="",dt=0,d=0,B=0,G=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var V in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,V))g.yy[V]=this.yy[V];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var J=nt.yylloc;o.push(J);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){T.length=T.length-2*wt,Z.length=Z.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=b.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,os,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=T[T.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=X[yt]&&X[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in X[yt])if(this.terminals_[le]&&le>G)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
2
2
|
`+nt.showPosition()+`
|
|
3
3
|
Expecting `+fe.join(", ")+", got '"+(this.terminals_[st]||st)+"'";else Fe="Parse error on line "+(dt+1)+": Unexpected "+(st==ct?"end of input":"'"+(this.terminals_[st]||st)+"'");this.parseError(Fe,{text:nt.match,token:this.terminals_[st]||st,line:nt.yylineno,loc:J,expected:fe})}if(pt[0]instanceof Array&&pt.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+st);switch(pt[0]){case 1:if(T.push(st),Z.push(nt.yytext),o.push(nt.yylloc),T.push(pt[1]),st=null,!ht){if(d=nt.yyleng,m=nt.yytext,dt=nt.yylineno,J=nt.yylloc,B>0)B--}else st=ht,ht=null;break;case 2:if(Lt=this.productions_[pt[1]][1],jt.$=Z[Z.length-Lt],jt._$={first_line:o[o.length-(Lt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Lt||1)].first_column,last_column:o[o.length-1].last_column},y)jt._$.range=[o[o.length-(Lt||1)].range[0],o[o.length-1].range[1]];if(Ye=this.performAction.apply(jt,[m,d,dt,g.yy,pt[1],Z,o].concat(ut)),typeof Ye<"u")return Ye;if(Lt)T=T.slice(0,-1*Lt*2),Z=Z.slice(0,-1*Lt),o=o.slice(0,-1*Lt);T.push(this.productions_[pt[1]][0]),Z.push(jt.$),o.push(jt._$),br=X[T[T.length-2]][T[T.length-1]],T.push(br);break;case 3:return!0}}return!0},"parse")},S=function(){var W={EOF:1,parseError:t(function(b,T){if(this.yy.parser)this.yy.parser.parseError(b,T);else throw Error(b)},"parseError"),setInput:t(function(f,b){if(this.yy=b||this.yy||{},this._input=f,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var b=f.match(/(?:\r\n?|\n).*/g);if(b)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),f},"input"),unput:t(function(f){var b=f.length,T=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var k=this.match.split(/(?:\r\n?|\n)/g);if(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;var Z=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===k.length?this.yylloc.first_column:0)+k[k.length-T.length].length-T[0].length:this.yylloc.first_column-b},this.options.ranges)this.yylloc.range=[Z[0],Z[0]+this.yyleng-b];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(f){this.unput(this.match.slice(f))},"less"),pastInput:t(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var f=this.match;if(f.length<20)f+=this._input.substr(0,20-f.length);return(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var f=this.pastInput(),b=Array(f.length+1).join("-");return f+this.upcomingInput()+`
|
|
5
5
|
`+b+"^"},"showPosition"),test_match:t(function(f,b){var T,k,Z;if(this.options.backtrack_lexer){if(Z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Z.yylloc.range=this.yylloc.range.slice(0)}if(k=f[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],T=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(T)return T;else if(this._backtrack){for(var o in Z)this[o]=Z[o];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var f,b,T,k;if(!this._more)this.yytext="",this.match="";var Z=this._currentRules();for(var o=0;o<Z.length;o++)if(T=this._input.match(this.rules[Z[o]]),T&&(!b||T[0].length>b[0].length)){if(b=T,k=o,this.options.backtrack_lexer)if(f=this.test_match(T,Z[o]),f!==!1)return f;else if(this._backtrack){b=!1;continue}else return!1;else if(!this.options.flex)break}if(b){if(f=this.test_match(b,Z[k]),f!==!1)return f;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var b=this.next();if(b)return b;else return this.lex()},"lex"),begin:t(function(b){this.conditionStack.push(b)},"begin"),popState:t(function(){var b=this.conditionStack.length-1;if(b>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(b){if(b=this.conditionStack.length-1-Math.abs(b||0),b>=0)return this.conditionStack[b];else return"INITIAL"},"topState"),pushState:t(function(b){this.begin(b)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(b,T,k,Z){var o=Z;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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],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}}};return W}();v.lexer=S;function C(){this.yy={}}return t(C,"Parser"),C.prototype=v,v.Parser=C,new C}();cr.parser=cr;var ka=cr;bt.default.extend(vn.default);bt.default.extend(xn.default);bt.default.extend(bn.default);var gn={friday:5,saturday:6},Ut="",dr="",mr=void 0,hr="",ee=[],re=[],yr=new Map,gr=[],Se=[],ne="",kr="",wn=["active","done","crit","milestone","vert"],pr=[],Qt="",ue=!1,Tr=!1,vr="sunday",_e="saturday",ur=0,pa=t(function(){gr=[],Se=[],ne="",pr=[],De=0,fr=void 0,Ce=void 0,gt=[],Ut="",dr="",kr="",mr=void 0,hr="",ee=[],re=[],ue=!1,Tr=!1,ur=0,yr=new Map,Qt="",R(),vr="sunday",_e="saturday"},"clear"),Ta=t(function(e){Qt=e},"setDiagramId"),va=t(function(e){dr=e},"setAxisFormat"),xa=t(function(){return dr},"getAxisFormat"),ba=t(function(e){mr=e},"setTickInterval"),wa=t(function(){return mr},"getTickInterval"),Ma=t(function(e){hr=e},"setTodayMarker"),Da=t(function(){return hr},"getTodayMarker"),Ca=t(function(e){Ut=e},"setDateFormat"),Sa=t(function(){ue=!0},"enableInclusiveEndDates"),_a=t(function(){return ue},"endDatesAreInclusive"),Ya=t(function(){Tr=!0},"enableTopAxis"),Fa=t(function(){return Tr},"topAxisEnabled"),Ia=t(function(e){kr=e},"setDisplayMode"),Ua=t(function(){return kr},"getDisplayMode"),La=t(function(){return Ut},"getDateFormat"),Mn=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Wa=t(function(e){ee=Mn(ee,e)},"setIncludes"),Ea=t(function(){return ee},"getIncludes"),Aa=t(function(e){re=Mn(re,e)},"setExcludes"),Oa=t(function(){return re},"getExcludes"),$a=t(function(){return yr},"getLinks"),Ha=t(function(e){ne=e,gr.push(e)},"addSection"),Na=t(function(){return gr},"getSections"),Pa=t(function(){let e=kn(),r=10,n=0;while(!e&&n<r)e=kn(),n++;return Se=gt,Se},"getTasks"),Dn=t(function(e,r,n,i){let a=e.format(r.trim()),s=e.format("YYYY-MM-DD");if(i.includes(a)||i.includes(s))return!1;if(n.includes("weekends")&&(e.isoWeekday()===gn[_e]||e.isoWeekday()===gn[_e]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(a)||n.includes(s)},"isInvalidDate"),Va=t(function(e){vr=e},"setWeekday"),za=t(function(){return vr},"getWeekday"),Ra=t(function(e){_e=e},"setWeekend"),Sn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let a;if(e.startTime instanceof Date)a=bt.default(e.startTime);else a=bt.default(e.startTime,r,!0);a=a.add(1,"d");let s;if(e.endTime instanceof Date)s=bt.default(e.endTime);else s=bt.default(e.endTime,r,!0);let[c,w]=Ba(a,s,r,n,i);e.endTime=c.toDate(),e.renderEndTime=w},"checkTaskDates"),Ba=t(function(e,r,n,i,a){let s=!1,c=null,w=r.add(1e4,"d");while(e<=r){if(!s)c=r.toDate();if(s=Dn(e,n,i,a),s){if(r=r.add(1,"d"),r>w)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,c]},"fixTaskDates"),lr=t(function(e,r,n){if(n=n.trim(),t((w)=>{let D=w.trim();return D==="x"||D==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let s=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let w=null;for(let A of s.groups.ids.split(" ")){let _=Zt(A);if(_!==void 0&&(!w||_.endTime>w.endTime))w=_}if(w)return w.endTime;let D=new Date;return D.setHours(0,0,0,0),D}let c=bt.default(n,r.trim(),!0);if(c.isValid())return c.toDate();else{l.debug("Invalid date:"+n),l.debug("With date format:"+r.trim());let w=new Date(n);if(w===void 0||isNaN(w.getTime())||w.getFullYear()<-1e4||w.getFullYear()>1e4)throw Error("Invalid date:"+n);return w}},"getStartDate"),_n=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Yn=t(function(e,r,n,i=!1){n=n.trim();let s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let _=null;for(let O of s.groups.ids.split(" ")){let Y=Zt(O);if(Y!==void 0&&(!_||Y.startTime<_.startTime))_=Y}if(_)return _.startTime;let rt=new Date;return rt.setHours(0,0,0,0),rt}let c=bt.default(n,r.trim(),!0);if(c.isValid()){if(i)c=c.add(1,"d");return c.toDate()}let w=bt.default(e),[D,A]=_n(n);if(!Number.isNaN(D)){let _=w.add(D,A);if(_.isValid())w=_}return w.toDate()},"getEndDate"),De=0,Kt=t(function(e){if(e===void 0)return De=De+1,"task"+De;return e},"parseId"),Za=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let c=0;c<i.length;c++)i[c]=i[c].trim();let s="";switch(i.length){case 1:a.id=Kt(),a.startTime=e.endTime,s=i[0];break;case 2:a.id=Kt(),a.startTime=lr(void 0,Ut,i[0]),s=i[1];break;case 3:a.id=Kt(i[0]),a.startTime=lr(void 0,Ut,i[1]),s=i[2];break;default:}if(s)a.endTime=Yn(a.startTime,Ut,s,ue),a.manualEndTime=bt.default(s,"YYYY-MM-DD",!0).isValid(),Sn(a,Ut,re,ee);return a},"compileData"),ja=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=Kt(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:i[0]};break;case 2:a.id=Kt(),a.startTime={type:"getStartDate",startData:i[0]},a.endTime={data:i[1]};break;case 3:a.id=Kt(i[0]),a.startTime={type:"getStartDate",startData:i[1]},a.endTime={data:i[2]};break;default:}return a},"parseData"),fr,Ce,gt=[],Fn={},Xa=t(function(e,r){let n={section:ne,type:ne,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=ja(Ce,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Ce,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=ur,ur++;let a=gt.push(n);Ce=n.id,Fn[n.id]=a-1},"addTask"),Zt=t(function(e){let r=Fn[e];return gt[r]},"findTaskById"),qa=t(function(e,r){let n={section:ne,type:ne,description:e,task:e,classes:[]},i=Za(fr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,fr=n,Se.push(n)},"addTaskOrg"),kn=t(function(){let e=t(function(n){let i=gt[n],a="";switch(gt[n].raw.startTime.type){case"prevTaskEnd":{let s=Zt(i.prevTaskId);i.startTime=s.endTime;break}case"getStartDate":if(a=lr(void 0,Ut,gt[n].raw.startTime.startData),a)gt[n].startTime=a;break}if(gt[n].startTime){if(gt[n].endTime=Yn(gt[n].startTime,Ut,gt[n].raw.endTime.data,ue),gt[n].endTime)gt[n].processed=!0,gt[n].manualEndTime=bt.default(gt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Sn(gt[n],Ut,re,ee)}return gt[n].processed},"compileTask"),r=!0;for(let[n,i]of gt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),Ga=t(function(e,r){let n=r;if(p().securityLevel!=="loose")n=Tn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Zt(i)!==void 0)Un(i,()=>{window.open(n,"_self")}),yr.set(i,n)}),In(e,"clickable")},"setLink"),In=t(function(e,r){e.split(",").forEach(function(n){let i=Zt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),Qa=t(function(e,r,n){if(p().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<i.length;s++){let c=i[s].trim();if(c.startsWith('"')&&c.endsWith('"'))c=c.substr(1,c.length-2);i[s]=c}}if(i.length===0)i.push(e);if(Zt(e)!==void 0)Un(e,()=>{K.runFunc(r,...i)})},"setClickFun"),Un=t(function(e,r){pr.push(function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),Ja=t(function(e,r,n){e.split(",").forEach(function(i){Qa(i,r,n)}),In(e,"clickable")},"setClickEvent"),Ka=t(function(e){pr.forEach(function(r){r(e)})},"bindFunctions"),ts={getConfig:t(()=>p().gantt,"getConfig"),clear:pa,setDateFormat:Ca,getDateFormat:La,enableInclusiveEndDates:Sa,endDatesAreInclusive:_a,enableTopAxis:Ya,topAxisEnabled:Fa,setAxisFormat:va,getAxisFormat:xa,setTickInterval:ba,getTickInterval:wa,setTodayMarker:Ma,getTodayMarker:Da,setAccTitle:F,getAccTitle:z,setDiagramTitle:q,getDiagramTitle:j,setDiagramId:Ta,setDisplayMode:Ia,getDisplayMode:Ua,setAccDescription:P,getAccDescription:U,addSection:Ha,getSections:Na,getTasks:Pa,addTask:Xa,findTaskById:Zt,addTaskOrg:qa,setIncludes:Wa,getIncludes:Ea,setExcludes:Aa,getExcludes:Oa,setClickEvent:Ja,setLink:Ga,getLinks:$a,bindFunctions:Ka,parseDuration:_n,isInvalidDate:Dn,setWeekday:Va,getWeekday:za,setWeekend:Ra};function xr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(a){let s="^\\s*"+a+"\\s*$",c=new RegExp(s);if(e[0].match(c))r[a]=!0,e.shift(1),i=!0})}t(xr,"getTaskTags");Jt.default.extend(Ln.default);var es=t(function(){l.debug("Something is calling, setConf, remove the call")},"setConf"),pn={monday:Nt,tuesday:ve,wednesday:xe,thursday:It,friday:be,saturday:we,sunday:Ct},rs=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((s,c)=>s.startTime-c.startTime||s.order-c.order),a=0;for(let s of i)for(let c=0;c<n.length;c++)if(s.startTime>=n[c]){if(n[c]=s.endTime,s.order=c+r,c>a)a=c;break}return a},"getMaxIntersections"),$t,or=1e4,ns=t(function(e,r,n,i){let a=p().gantt;i.db.setDiagramId(r);let s=p().securityLevel,c;if(s==="sandbox")c=h("#i"+r);let w=s==="sandbox"?h(c.nodes()[0].contentDocument.body):h("body"),D=s==="sandbox"?c.nodes()[0].contentDocument:document,A=D.getElementById(r);if($t=A.parentElement.offsetWidth,$t===void 0)$t=1200;if(a.useWidth!==void 0)$t=a.useWidth;let _=i.db.getTasks(),rt=_.filter((v)=>!v.vert),O=[];for(let v of rt)O.push(v.type);O=et(O);let Y={},E=2*a.topPadding;if(i.db.getDisplayMode()==="compact"||a.displayMode==="compact"){let v={};for(let C of rt)if(v[C.section]===void 0)v[C.section]=[C];else v[C.section].push(C);let S=0;for(let C of Object.keys(v)){let W=rs(v[C],S)+1;S+=W,E+=W*(a.barHeight+a.barGap),Y[C]=W}}else{E+=rt.length*(a.barHeight+a.barGap);for(let v of O)Y[v]=rt.filter((S)=>S.type===v).length}A.setAttribute("viewBox","0 0 "+$t+" "+E);let H=w.select(`[id="${r}"]`),I=Je().domain([Ue(_,function(v){return v.startTime}),Ie(_,function(v){return v.endTime})]).rangeRound([0,$t-a.leftPadding-a.rightPadding]);function Q(v,S){let C=v.startTime,W=S.startTime,f=0;if(C>W)f=1;else if(C<W)f=-1;return f}t(Q,"taskCompare"),_.sort(Q),lt(_,$t,E),te(H,E,$t,a.useMaxWidth),H.append("text").text(i.db.getDiagramTitle()).attr("x",$t/2).attr("y",a.titleTopMargin).attr("class","titleText");function lt(v,S,C){let W=a.barHeight,f=W+a.barGap,{topPadding:b,leftPadding:T}=a,k=oa().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Ar);N(f,b,T,S,C,v,i.db.getExcludes(),i.db.getIncludes()),u(T,b,S,C),it(v,f,b,T,W,k,S,C),L(f,b,T,W,k),tt(T,b,S,C)}t(lt,"makeGantt");function it(v,S,C,W,f,b,T){v.sort((d,B)=>d.vert===B.vert?0:d.vert?1:-1);let k=v.filter((d)=>!d.vert),o=[...new Set(k.map((d)=>d.order))].map((d)=>k.find((B)=>B.order===d));H.append("g").selectAll("rect").data(o).enter().append("rect").attr("x",0).attr("y",function(d,B){return B=d.order,B*S+C-2}).attr("width",function(){return T-a.rightPadding/2}).attr("height",S).attr("class",function(d){for(let[B,G]of O.entries())if(d.type===G)return"section section"+B%a.numberSectionStyles;return"section section0"}).enter();let X=H.append("g").selectAll("rect").data(v).enter(),m=i.db.getLinks();if(X.append("rect").attr("id",function(d){return r+"-"+d.id}).attr("rx",3).attr("ry",3).attr("x",function(d){if(d.milestone)return I(d.startTime)+W+0.5*(I(d.endTime)-I(d.startTime))-0.5*f;return I(d.startTime)+W}).attr("y",function(d,B){if(B=d.order,d.vert)return a.gridLineStartPadding;return B*S+C}).attr("width",function(d){if(d.milestone)return f;if(d.vert)return 0.08*f;return I(d.renderEndTime||d.endTime)-I(d.startTime)}).attr("height",function(d){if(d.vert)return k.length*(a.barHeight+a.barGap)+a.barHeight*2;return f}).attr("transform-origin",function(d,B){return B=d.order,(I(d.startTime)+W+0.5*(I(d.endTime)-I(d.startTime))).toString()+"px "+(B*S+C+0.5*f).toString()+"px"}).attr("class",function(d){let G="";if(d.classes.length>0)G=d.classes.join(" ");let ct=0;for(let[nt,g]of O.entries())if(d.type===g)ct=nt%a.numberSectionStyles;let ut="";if(d.active)if(d.crit)ut+=" activeCrit";else ut=" active";else if(d.done)if(d.crit)ut=" doneCrit";else ut=" done";else if(d.crit)ut+=" crit";if(ut.length===0)ut=" task";if(d.milestone)ut=" milestone "+ut;if(d.vert)ut=" vert "+ut;return ut+=ct,ut+=" "+G,"task"+ut}),X.append("text").attr("id",function(d){return r+"-"+d.id+"-text"}).text(function(d){return d.task}).attr("font-size",a.fontSize).attr("x",function(d){let B=I(d.startTime),G=I(d.renderEndTime||d.endTime);if(d.milestone)B+=0.5*(I(d.endTime)-I(d.startTime))-0.5*f,G=B+f;if(d.vert)return I(d.startTime)+W;let ct=this.getBBox().width;if(ct>G-B)if(G+ct+1.5*a.leftPadding>T)return B+W-5;else return G+W+5;else return(G-B)/2+B+W}).attr("y",function(d,B){if(d.vert)return a.gridLineStartPadding+k.length*(a.barHeight+a.barGap)+60;return B=d.order,B*S+a.barHeight/2+(a.fontSize/2-2)+C}).attr("text-height",f).attr("class",function(d){let B=I(d.startTime),G=I(d.endTime);if(d.milestone)G=B+f;let ct=this.getBBox().width,ut="";if(d.classes.length>0)ut=d.classes.join(" ");let nt=0;for(let[V,J]of O.entries())if(d.type===J)nt=V%a.numberSectionStyles;let g="";if(d.active)if(d.crit)g="activeCritText"+nt;else g="activeText"+nt;if(d.done)if(d.crit)g=g+" doneCritText"+nt;else g=g+" doneText"+nt;else if(d.crit)g=g+" critText"+nt;if(d.milestone)g+=" milestoneText";if(d.vert)g+=" vertText";if(ct>G-B)if(G+ct+1.5*a.leftPadding>T)return ut+" taskTextOutsideLeft taskTextOutside"+nt+" "+g;else return ut+" taskTextOutsideRight taskTextOutside"+nt+" "+g+" width-"+ct;else return ut+" taskText taskText"+nt+" "+g+" width-"+ct}),p().securityLevel==="sandbox"){let d;d=h("#i"+r);let B=d.nodes()[0].contentDocument;X.filter(function(G){return m.has(G.id)}).each(function(G){var ct=B.querySelector("#"+CSS.escape(r+"-"+G.id)),ut=B.querySelector("#"+CSS.escape(r+"-"+G.id+"-text"));let nt=ct.parentNode;var g=B.createElement("a");g.setAttribute("xlink:href",m.get(G.id)),g.setAttribute("target","_top"),nt.appendChild(g),g.appendChild(ct),g.appendChild(ut)})}}t(it,"drawRects");function N(v,S,C,W,f,b,T,k){if(T.length===0&&k.length===0)return;let Z,o;for(let{startTime:G,endTime:ct}of b){if(Z===void 0||G<Z)Z=G;if(o===void 0||ct>o)o=ct}if(!Z||!o)return;if(Jt.default(o).diff(Jt.default(Z),"year")>5){l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let X=i.db.getDateFormat(),m=[],dt=null,d=Jt.default(Z);while(d.valueOf()<=o){if(i.db.isInvalidDate(d,X,T,k))if(!dt)dt={start:d,end:d};else dt.end=d;else if(dt)m.push(dt),dt=null;d=d.add(1,"d")}H.append("g").selectAll("rect").data(m).enter().append("rect").attr("id",(G)=>r+"-exclude-"+G.start.format("YYYY-MM-DD")).attr("x",(G)=>I(G.start.startOf("day"))+C).attr("y",a.gridLineStartPadding).attr("width",(G)=>I(G.end.endOf("day"))-I(G.start.startOf("day"))).attr("height",f-S-a.gridLineStartPadding).attr("transform-origin",function(G,ct){return(I(G.start)+C+0.5*(I(G.end)-I(G.start))).toString()+"px "+(ct*v+0.5*f).toString()+"px"}).attr("class","exclude-range")}t(N,"drawExcludeDays");function M(v,S,C,W){if(C<=0||v>S)return 1/0;let f=S-v,b=Jt.default.duration({[W??"day"]:C}).asMilliseconds();if(b<=0)return 1/0;return Math.ceil(f/b)}t(M,"getEstimatedTickCount");function u(v,S,C,W){let f=i.db.getDateFormat(),b=i.db.getAxisFormat(),T;if(b)T=b;else if(f==="D")T="%d";else T=a.axisFormat??"%Y-%m-%d";let k=Oe(I).tickSize(-W+S+a.gridLineStartPadding).tickFormat(Bt(T)),o=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||a.tickInterval);if(o!==null){let X=parseInt(o[1],10);if(isNaN(X)||X<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let m=o[2],dt=i.db.getWeekday()||a.weekday,d=I.domain(),B=d[0],G=d[1],ct=M(B,G,X,m);if(ct>or)l.warn(`The tick interval "${X}${m}" would generate ${ct} ticks, which exceeds the maximum allowed (${or}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(m){case"millisecond":k.ticks(Yt.every(X));break;case"second":k.ticks(vt.every(X));break;case"minute":k.ticks(Et.every(X));break;case"hour":k.ticks(At.every(X));break;case"day":k.ticks(Dt.every(X));break;case"week":k.ticks(pn[dt].every(X));break;case"month":k.ticks(Ot.every(X));break}}}if(H.append("g").attr("class","grid").attr("transform","translate("+v+", "+(W-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||a.topAxis){let X=Ae(I).tickSize(-W+S+a.gridLineStartPadding).tickFormat(Bt(T));if(o!==null){let m=parseInt(o[1],10);if(isNaN(m)||m<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let dt=o[2],d=i.db.getWeekday()||a.weekday,B=I.domain(),G=B[0],ct=B[1];if(M(G,ct,m,dt)<=or)switch(dt){case"millisecond":X.ticks(Yt.every(m));break;case"second":X.ticks(vt.every(m));break;case"minute":X.ticks(Et.every(m));break;case"hour":X.ticks(At.every(m));break;case"day":X.ticks(Dt.every(m));break;case"week":X.ticks(pn[d].every(m));break;case"month":X.ticks(Ot.every(m));break}}}H.append("g").attr("class","grid").attr("transform","translate("+v+", "+S+")").call(X).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(u,"makeGrid");function L(v,S){let C=0,W=Object.keys(Y).map((f)=>[f,Y[f]]);H.append("g").selectAll("text").data(W).enter().append(function(f){let b=f[0].split(x.lineBreakRegex),T=-(b.length-1)/2,k=D.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",T+"em");for(let[Z,o]of b.entries()){let X=D.createElementNS("http://www.w3.org/2000/svg","tspan");if(X.setAttribute("alignment-baseline","central"),X.setAttribute("x","10"),Z>0)X.setAttribute("dy","1em");X.textContent=o,k.appendChild(X)}return k}).attr("x",10).attr("y",function(f,b){if(b>0)for(let T=0;T<b;T++)return C+=W[b-1][1],f[1]*v/2+C*v+S;else return f[1]*v/2+S}).attr("font-size",a.sectionFontSize).attr("class",function(f){for(let[b,T]of O.entries())if(f[0]===T)return"sectionTitle sectionTitle"+b%a.numberSectionStyles;return"sectionTitle"})}t(L,"vertLabels");function tt(v,S,C,W){let f=i.db.getTodayMarker();if(f==="off")return;let b=H.append("g").attr("class","today"),T=new Date,k=b.append("line");if(k.attr("x1",I(T)+v).attr("x2",I(T)+v).attr("y1",a.titleTopMargin).attr("y2",W-a.titleTopMargin).attr("class","today"),f!=="")k.attr("style",f.replace(/,/g,";"))}t(tt,"drawToday");function et(v){let S={},C=[];for(let W=0,f=v.length;W<f;++W)if(!Object.prototype.hasOwnProperty.call(S,v[W]))S[v[W]]=!0,C.push(v[W]);return C}t(et,"checkUnique")},"draw"),is={setConf:es,draw:ns},as=t((e)=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var b=this.next();if(b)return b;else return this.lex()},"lex"),begin:t(function(b){this.conditionStack.push(b)},"begin"),popState:t(function(){var b=this.conditionStack.length-1;if(b>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(b){if(b=this.conditionStack.length-1-Math.abs(b||0),b>=0)return this.conditionStack[b];else return"INITIAL"},"topState"),pushState:t(function(b){this.begin(b)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(b,T,k,Z){var o=Z;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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],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}}};return W}();v.lexer=S;function C(){this.yy={}}return t(C,"Parser"),C.prototype=v,v.Parser=C,new C}();cr.parser=cr;var ka=cr;bt.default.extend(vn.default);bt.default.extend(xn.default);bt.default.extend(bn.default);var gn={friday:5,saturday:6},Ut="",dr="",mr=void 0,hr="",ee=[],re=[],yr=new Map,gr=[],Se=[],ne="",kr="",wn=["active","done","crit","milestone","vert"],pr=[],Qt="",ue=!1,Tr=!1,vr="sunday",_e="saturday",ur=0,pa=t(function(){gr=[],Se=[],ne="",pr=[],De=0,fr=void 0,Ce=void 0,gt=[],Ut="",dr="",kr="",mr=void 0,hr="",ee=[],re=[],ue=!1,Tr=!1,ur=0,yr=new Map,Qt="",R(),vr="sunday",_e="saturday"},"clear"),Ta=t(function(e){Qt=e},"setDiagramId"),va=t(function(e){dr=e},"setAxisFormat"),xa=t(function(){return dr},"getAxisFormat"),ba=t(function(e){mr=e},"setTickInterval"),wa=t(function(){return mr},"getTickInterval"),Ma=t(function(e){hr=e},"setTodayMarker"),Da=t(function(){return hr},"getTodayMarker"),Ca=t(function(e){Ut=e},"setDateFormat"),Sa=t(function(){ue=!0},"enableInclusiveEndDates"),_a=t(function(){return ue},"endDatesAreInclusive"),Ya=t(function(){Tr=!0},"enableTopAxis"),Fa=t(function(){return Tr},"topAxisEnabled"),Ia=t(function(e){kr=e},"setDisplayMode"),Ua=t(function(){return kr},"getDisplayMode"),La=t(function(){return Ut},"getDateFormat"),Mn=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Wa=t(function(e){ee=Mn(ee,e)},"setIncludes"),Ea=t(function(){return ee},"getIncludes"),Aa=t(function(e){re=Mn(re,e)},"setExcludes"),Oa=t(function(){return re},"getExcludes"),$a=t(function(){return yr},"getLinks"),Ha=t(function(e){ne=e,gr.push(e)},"addSection"),Na=t(function(){return gr},"getSections"),Pa=t(function(){let e=kn(),r=10,n=0;while(!e&&n<r)e=kn(),n++;return Se=gt,Se},"getTasks"),Dn=t(function(e,r,n,i){let a=e.format(r.trim()),s=e.format("YYYY-MM-DD");if(i.includes(a)||i.includes(s))return!1;if(n.includes("weekends")&&(e.isoWeekday()===gn[_e]||e.isoWeekday()===gn[_e]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(a)||n.includes(s)},"isInvalidDate"),Va=t(function(e){vr=e},"setWeekday"),za=t(function(){return vr},"getWeekday"),Ra=t(function(e){_e=e},"setWeekend"),Cn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let a;if(e.startTime instanceof Date)a=bt.default(e.startTime);else a=bt.default(e.startTime,r,!0);a=a.add(1,"d");let s;if(e.endTime instanceof Date)s=bt.default(e.endTime);else s=bt.default(e.endTime,r,!0);let[c,w]=Ba(a,s,r,n,i);e.endTime=c.toDate(),e.renderEndTime=w},"checkTaskDates"),Ba=t(function(e,r,n,i,a){let s=!1,c=null,w=r.add(1e4,"d");while(e<=r){if(!s)c=r.toDate();if(s=Dn(e,n,i,a),s){if(r=r.add(1,"d"),r>w)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,c]},"fixTaskDates"),lr=t(function(e,r,n){if(n=n.trim(),t((w)=>{let D=w.trim();return D==="x"||D==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let s=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let w=null;for(let A of s.groups.ids.split(" ")){let _=Zt(A);if(_!==void 0&&(!w||_.endTime>w.endTime))w=_}if(w)return w.endTime;let D=new Date;return D.setHours(0,0,0,0),D}let c=bt.default(n,r.trim(),!0);if(c.isValid())return c.toDate();else{l.debug("Invalid date:"+n),l.debug("With date format:"+r.trim());let w=new Date(n);if(w===void 0||isNaN(w.getTime())||w.getFullYear()<-1e4||w.getFullYear()>1e4)throw Error("Invalid date:"+n);return w}},"getStartDate"),Sn=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),_n=t(function(e,r,n,i=!1){n=n.trim();let s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let _=null;for(let O of s.groups.ids.split(" ")){let Y=Zt(O);if(Y!==void 0&&(!_||Y.startTime<_.startTime))_=Y}if(_)return _.startTime;let rt=new Date;return rt.setHours(0,0,0,0),rt}let c=bt.default(n,r.trim(),!0);if(c.isValid()){if(i)c=c.add(1,"d");return c.toDate()}let w=bt.default(e),[D,A]=Sn(n);if(!Number.isNaN(D)){let _=w.add(D,A);if(_.isValid())w=_}return w.toDate()},"getEndDate"),De=0,Kt=t(function(e){if(e===void 0)return De=De+1,"task"+De;return e},"parseId"),Za=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let c=0;c<i.length;c++)i[c]=i[c].trim();let s="";switch(i.length){case 1:a.id=Kt(),a.startTime=e.endTime,s=i[0];break;case 2:a.id=Kt(),a.startTime=lr(void 0,Ut,i[0]),s=i[1];break;case 3:a.id=Kt(i[0]),a.startTime=lr(void 0,Ut,i[1]),s=i[2];break;default:}if(s)a.endTime=_n(a.startTime,Ut,s,ue),a.manualEndTime=bt.default(s,"YYYY-MM-DD",!0).isValid(),Cn(a,Ut,re,ee);return a},"compileData"),ja=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=Kt(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:i[0]};break;case 2:a.id=Kt(),a.startTime={type:"getStartDate",startData:i[0]},a.endTime={data:i[1]};break;case 3:a.id=Kt(i[0]),a.startTime={type:"getStartDate",startData:i[1]},a.endTime={data:i[2]};break;default:}return a},"parseData"),fr,Ce,gt=[],Yn={},Xa=t(function(e,r){let n={section:ne,type:ne,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=ja(Ce,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Ce,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=ur,ur++;let a=gt.push(n);Ce=n.id,Yn[n.id]=a-1},"addTask"),Zt=t(function(e){let r=Yn[e];return gt[r]},"findTaskById"),qa=t(function(e,r){let n={section:ne,type:ne,description:e,task:e,classes:[]},i=Za(fr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,fr=n,Se.push(n)},"addTaskOrg"),kn=t(function(){let e=t(function(n){let i=gt[n],a="";switch(gt[n].raw.startTime.type){case"prevTaskEnd":{let s=Zt(i.prevTaskId);i.startTime=s.endTime;break}case"getStartDate":if(a=lr(void 0,Ut,gt[n].raw.startTime.startData),a)gt[n].startTime=a;break}if(gt[n].startTime){if(gt[n].endTime=_n(gt[n].startTime,Ut,gt[n].raw.endTime.data,ue),gt[n].endTime)gt[n].processed=!0,gt[n].manualEndTime=bt.default(gt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Cn(gt[n],Ut,re,ee)}return gt[n].processed},"compileTask"),r=!0;for(let[n,i]of gt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),Ga=t(function(e,r){let n=r;if(p().securityLevel!=="loose")n=Tn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Zt(i)!==void 0)Un(i,()=>{window.open(n,"_self")}),yr.set(i,n)}),Fn(e,"clickable")},"setLink"),Fn=t(function(e,r){e.split(",").forEach(function(n){let i=Zt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),Qa=t(function(e,r,n){if(p().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<i.length;s++){let c=i[s].trim();if(c.startsWith('"')&&c.endsWith('"'))c=c.substr(1,c.length-2);i[s]=c}}if(i.length===0)i.push(e);if(Zt(e)!==void 0)Un(e,()=>{K.runFunc(r,...i)})},"setClickFun"),Un=t(function(e,r){pr.push(function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),Ja=t(function(e,r,n){e.split(",").forEach(function(i){Qa(i,r,n)}),Fn(e,"clickable")},"setClickEvent"),Ka=t(function(e){pr.forEach(function(r){r(e)})},"bindFunctions"),ts={getConfig:t(()=>p().gantt,"getConfig"),clear:pa,setDateFormat:Ca,getDateFormat:La,enableInclusiveEndDates:Sa,endDatesAreInclusive:_a,enableTopAxis:Ya,topAxisEnabled:Fa,setAxisFormat:va,getAxisFormat:xa,setTickInterval:ba,getTickInterval:wa,setTodayMarker:Ma,getTodayMarker:Da,setAccTitle:F,getAccTitle:z,setDiagramTitle:q,getDiagramTitle:j,setDiagramId:Ta,setDisplayMode:Ia,getDisplayMode:Ua,setAccDescription:P,getAccDescription:U,addSection:Ha,getSections:Na,getTasks:Pa,addTask:Xa,findTaskById:Zt,addTaskOrg:qa,setIncludes:Wa,getIncludes:Ea,setExcludes:Aa,getExcludes:Oa,setClickEvent:Ja,setLink:Ga,getLinks:$a,bindFunctions:Ka,parseDuration:Sn,isInvalidDate:Dn,setWeekday:Va,getWeekday:za,setWeekend:Ra};function xr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(a){let s="^\\s*"+a+"\\s*$",c=new RegExp(s);if(e[0].match(c))r[a]=!0,e.shift(1),i=!0})}t(xr,"getTaskTags");Jt.default.extend(Ln.default);var es=t(function(){l.debug("Something is calling, setConf, remove the call")},"setConf"),pn={monday:Nt,tuesday:ve,wednesday:xe,thursday:It,friday:be,saturday:we,sunday:Ct},rs=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((s,c)=>s.startTime-c.startTime||s.order-c.order),a=0;for(let s of i)for(let c=0;c<n.length;c++)if(s.startTime>=n[c]){if(n[c]=s.endTime,s.order=c+r,c>a)a=c;break}return a},"getMaxIntersections"),$t,or=1e4,ns=t(function(e,r,n,i){let a=p().gantt;i.db.setDiagramId(r);let s=p().securityLevel,c;if(s==="sandbox")c=h("#i"+r);let w=s==="sandbox"?h(c.nodes()[0].contentDocument.body):h("body"),D=s==="sandbox"?c.nodes()[0].contentDocument:document,A=D.getElementById(r);if($t=A.parentElement.offsetWidth,$t===void 0)$t=1200;if(a.useWidth!==void 0)$t=a.useWidth;let _=i.db.getTasks(),rt=_.filter((v)=>!v.vert),O=[];for(let v of rt)O.push(v.type);O=et(O);let Y={},E=2*a.topPadding;if(i.db.getDisplayMode()==="compact"||a.displayMode==="compact"){let v={};for(let C of rt)if(v[C.section]===void 0)v[C.section]=[C];else v[C.section].push(C);let S=0;for(let C of Object.keys(v)){let W=rs(v[C],S)+1;S+=W,E+=W*(a.barHeight+a.barGap),Y[C]=W}}else{E+=rt.length*(a.barHeight+a.barGap);for(let v of O)Y[v]=rt.filter((S)=>S.type===v).length}A.setAttribute("viewBox","0 0 "+$t+" "+E);let H=w.select(`[id="${r}"]`),I=Je().domain([Ue(_,function(v){return v.startTime}),Ie(_,function(v){return v.endTime})]).rangeRound([0,$t-a.leftPadding-a.rightPadding]);function Q(v,S){let C=v.startTime,W=S.startTime,f=0;if(C>W)f=1;else if(C<W)f=-1;return f}t(Q,"taskCompare"),_.sort(Q),lt(_,$t,E),te(H,E,$t,a.useMaxWidth),H.append("text").text(i.db.getDiagramTitle()).attr("x",$t/2).attr("y",a.titleTopMargin).attr("class","titleText");function lt(v,S,C){let W=a.barHeight,f=W+a.barGap,{topPadding:b,leftPadding:T}=a,k=ia().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Ar);N(f,b,T,S,C,v,i.db.getExcludes(),i.db.getIncludes()),u(T,b,S,C),it(v,f,b,T,W,k,S,C),L(f,b,T,W,k),tt(T,b,S,C)}t(lt,"makeGantt");function it(v,S,C,W,f,b,T){v.sort((d,B)=>d.vert===B.vert?0:d.vert?1:-1);let k=v.filter((d)=>!d.vert),o=[...new Set(k.map((d)=>d.order))].map((d)=>k.find((B)=>B.order===d));H.append("g").selectAll("rect").data(o).enter().append("rect").attr("x",0).attr("y",function(d,B){return B=d.order,B*S+C-2}).attr("width",function(){return T-a.rightPadding/2}).attr("height",S).attr("class",function(d){for(let[B,G]of O.entries())if(d.type===G)return"section section"+B%a.numberSectionStyles;return"section section0"}).enter();let X=H.append("g").selectAll("rect").data(v).enter(),m=i.db.getLinks();if(X.append("rect").attr("id",function(d){return r+"-"+d.id}).attr("rx",3).attr("ry",3).attr("x",function(d){if(d.milestone)return I(d.startTime)+W+0.5*(I(d.endTime)-I(d.startTime))-0.5*f;return I(d.startTime)+W}).attr("y",function(d,B){if(B=d.order,d.vert)return a.gridLineStartPadding;return B*S+C}).attr("width",function(d){if(d.milestone)return f;if(d.vert)return 0.08*f;return I(d.renderEndTime||d.endTime)-I(d.startTime)}).attr("height",function(d){if(d.vert)return k.length*(a.barHeight+a.barGap)+a.barHeight*2;return f}).attr("transform-origin",function(d,B){return B=d.order,(I(d.startTime)+W+0.5*(I(d.endTime)-I(d.startTime))).toString()+"px "+(B*S+C+0.5*f).toString()+"px"}).attr("class",function(d){let G="";if(d.classes.length>0)G=d.classes.join(" ");let ct=0;for(let[nt,g]of O.entries())if(d.type===g)ct=nt%a.numberSectionStyles;let ut="";if(d.active)if(d.crit)ut+=" activeCrit";else ut=" active";else if(d.done)if(d.crit)ut=" doneCrit";else ut=" done";else if(d.crit)ut+=" crit";if(ut.length===0)ut=" task";if(d.milestone)ut=" milestone "+ut;if(d.vert)ut=" vert "+ut;return ut+=ct,ut+=" "+G,"task"+ut}),X.append("text").attr("id",function(d){return r+"-"+d.id+"-text"}).text(function(d){return d.task}).attr("font-size",a.fontSize).attr("x",function(d){let B=I(d.startTime),G=I(d.renderEndTime||d.endTime);if(d.milestone)B+=0.5*(I(d.endTime)-I(d.startTime))-0.5*f,G=B+f;if(d.vert)return I(d.startTime)+W;let ct=this.getBBox().width;if(ct>G-B)if(G+ct+1.5*a.leftPadding>T)return B+W-5;else return G+W+5;else return(G-B)/2+B+W}).attr("y",function(d,B){if(d.vert)return a.gridLineStartPadding+k.length*(a.barHeight+a.barGap)+60;return B=d.order,B*S+a.barHeight/2+(a.fontSize/2-2)+C}).attr("text-height",f).attr("class",function(d){let B=I(d.startTime),G=I(d.endTime);if(d.milestone)G=B+f;let ct=this.getBBox().width,ut="";if(d.classes.length>0)ut=d.classes.join(" ");let nt=0;for(let[V,J]of O.entries())if(d.type===J)nt=V%a.numberSectionStyles;let g="";if(d.active)if(d.crit)g="activeCritText"+nt;else g="activeText"+nt;if(d.done)if(d.crit)g=g+" doneCritText"+nt;else g=g+" doneText"+nt;else if(d.crit)g=g+" critText"+nt;if(d.milestone)g+=" milestoneText";if(d.vert)g+=" vertText";if(ct>G-B)if(G+ct+1.5*a.leftPadding>T)return ut+" taskTextOutsideLeft taskTextOutside"+nt+" "+g;else return ut+" taskTextOutsideRight taskTextOutside"+nt+" "+g+" width-"+ct;else return ut+" taskText taskText"+nt+" "+g+" width-"+ct}),p().securityLevel==="sandbox"){let d;d=h("#i"+r);let B=d.nodes()[0].contentDocument;X.filter(function(G){return m.has(G.id)}).each(function(G){var ct=B.querySelector("#"+CSS.escape(r+"-"+G.id)),ut=B.querySelector("#"+CSS.escape(r+"-"+G.id+"-text"));let nt=ct.parentNode;var g=B.createElement("a");g.setAttribute("xlink:href",m.get(G.id)),g.setAttribute("target","_top"),nt.appendChild(g),g.appendChild(ct),g.appendChild(ut)})}}t(it,"drawRects");function N(v,S,C,W,f,b,T,k){if(T.length===0&&k.length===0)return;let Z,o;for(let{startTime:G,endTime:ct}of b){if(Z===void 0||G<Z)Z=G;if(o===void 0||ct>o)o=ct}if(!Z||!o)return;if(Jt.default(o).diff(Jt.default(Z),"year")>5){l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let X=i.db.getDateFormat(),m=[],dt=null,d=Jt.default(Z);while(d.valueOf()<=o){if(i.db.isInvalidDate(d,X,T,k))if(!dt)dt={start:d,end:d};else dt.end=d;else if(dt)m.push(dt),dt=null;d=d.add(1,"d")}H.append("g").selectAll("rect").data(m).enter().append("rect").attr("id",(G)=>r+"-exclude-"+G.start.format("YYYY-MM-DD")).attr("x",(G)=>I(G.start.startOf("day"))+C).attr("y",a.gridLineStartPadding).attr("width",(G)=>I(G.end.endOf("day"))-I(G.start.startOf("day"))).attr("height",f-S-a.gridLineStartPadding).attr("transform-origin",function(G,ct){return(I(G.start)+C+0.5*(I(G.end)-I(G.start))).toString()+"px "+(ct*v+0.5*f).toString()+"px"}).attr("class","exclude-range")}t(N,"drawExcludeDays");function M(v,S,C,W){if(C<=0||v>S)return 1/0;let f=S-v,b=Jt.default.duration({[W??"day"]:C}).asMilliseconds();if(b<=0)return 1/0;return Math.ceil(f/b)}t(M,"getEstimatedTickCount");function u(v,S,C,W){let f=i.db.getDateFormat(),b=i.db.getAxisFormat(),T;if(b)T=b;else if(f==="D")T="%d";else T=a.axisFormat??"%Y-%m-%d";let k=Oe(I).tickSize(-W+S+a.gridLineStartPadding).tickFormat(Bt(T)),o=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||a.tickInterval);if(o!==null){let X=parseInt(o[1],10);if(isNaN(X)||X<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let m=o[2],dt=i.db.getWeekday()||a.weekday,d=I.domain(),B=d[0],G=d[1],ct=M(B,G,X,m);if(ct>or)l.warn(`The tick interval "${X}${m}" would generate ${ct} ticks, which exceeds the maximum allowed (${or}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(m){case"millisecond":k.ticks(Yt.every(X));break;case"second":k.ticks(vt.every(X));break;case"minute":k.ticks(Et.every(X));break;case"hour":k.ticks(At.every(X));break;case"day":k.ticks(Dt.every(X));break;case"week":k.ticks(pn[dt].every(X));break;case"month":k.ticks(Ot.every(X));break}}}if(H.append("g").attr("class","grid").attr("transform","translate("+v+", "+(W-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||a.topAxis){let X=Ae(I).tickSize(-W+S+a.gridLineStartPadding).tickFormat(Bt(T));if(o!==null){let m=parseInt(o[1],10);if(isNaN(m)||m<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let dt=o[2],d=i.db.getWeekday()||a.weekday,B=I.domain(),G=B[0],ct=B[1];if(M(G,ct,m,dt)<=or)switch(dt){case"millisecond":X.ticks(Yt.every(m));break;case"second":X.ticks(vt.every(m));break;case"minute":X.ticks(Et.every(m));break;case"hour":X.ticks(At.every(m));break;case"day":X.ticks(Dt.every(m));break;case"week":X.ticks(pn[d].every(m));break;case"month":X.ticks(Ot.every(m));break}}}H.append("g").attr("class","grid").attr("transform","translate("+v+", "+S+")").call(X).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(u,"makeGrid");function L(v,S){let C=0,W=Object.keys(Y).map((f)=>[f,Y[f]]);H.append("g").selectAll("text").data(W).enter().append(function(f){let b=f[0].split(x.lineBreakRegex),T=-(b.length-1)/2,k=D.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",T+"em");for(let[Z,o]of b.entries()){let X=D.createElementNS("http://www.w3.org/2000/svg","tspan");if(X.setAttribute("alignment-baseline","central"),X.setAttribute("x","10"),Z>0)X.setAttribute("dy","1em");X.textContent=o,k.appendChild(X)}return k}).attr("x",10).attr("y",function(f,b){if(b>0)for(let T=0;T<b;T++)return C+=W[b-1][1],f[1]*v/2+C*v+S;else return f[1]*v/2+S}).attr("font-size",a.sectionFontSize).attr("class",function(f){for(let[b,T]of O.entries())if(f[0]===T)return"sectionTitle sectionTitle"+b%a.numberSectionStyles;return"sectionTitle"})}t(L,"vertLabels");function tt(v,S,C,W){let f=i.db.getTodayMarker();if(f==="off")return;let b=H.append("g").attr("class","today"),T=new Date,k=b.append("line");if(k.attr("x1",I(T)+v).attr("x2",I(T)+v).attr("y1",a.titleTopMargin).attr("y2",W-a.titleTopMargin).attr("class","today"),f!=="")k.attr("style",f.replace(/,/g,";"))}t(tt,"drawToday");function et(v){let S={},C=[];for(let W=0,f=v.length;W<f;++W)if(!Object.prototype.hasOwnProperty.call(S,v[W]))S[v[W]]=!0,C.push(v[W]);return C}t(et,"checkUnique")},"draw"),is={setConf:es,draw:ns},as=t((e)=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${e.fontFamily};
|
|
9
9
|
}
|