ryugi-artifacts 1.29.1 → 1.30.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/cli.cjs +1 -1
- package/dist/server.cjs +1 -1
- package/dist/viewer/CloudDocument-F3ikpU1A.js +1 -0
- package/dist/viewer/{CloudLiveDocument-qcS9WpDB.js → CloudLiveDocument-DuFE3g-N.js} +1 -1
- package/dist/viewer/{DocumentLayout-DYTnCgfH.js → DocumentLayout-CDZm1Mud.js} +156 -154
- package/dist/viewer/DocumentPage-DJWzglCT.js +1 -0
- package/dist/viewer/DocumentPage-RHTp39ah.css +1 -0
- package/dist/viewer/{abnfDiagram-VCTEODGH-B4hF9R2U.js → abnfDiagram-VCTEODGH-bIgNbjEv.js} +1 -1
- package/dist/viewer/{ar-SA-G6X2FPQ2-B0MSU5l9.js → ar-SA-G6X2FPQ2-CBD4Eb4b.js} +1 -1
- package/dist/viewer/{architectureDiagram-5GKGNRK7-Cd8Xx-hV.js → architectureDiagram-5GKGNRK7-DmUtD0jW.js} +1 -1
- package/dist/viewer/{az-AZ-76LH7QW2-DQpVWUnU.js → az-AZ-76LH7QW2-Dawes6_l.js} +1 -1
- package/dist/viewer/{bg-BG-XCXSNQG7-CFWizXaa.js → bg-BG-XCXSNQG7-BjL-bwQR.js} +1 -1
- package/dist/viewer/{blockDiagram-I7D4REHJ-C2yu7mK-.js → blockDiagram-I7D4REHJ-DecnBxKr.js} +1 -1
- package/dist/viewer/{bn-BD-2XOGV67Q-DoeoV9n5.js → bn-BD-2XOGV67Q-DazPpl6F.js} +1 -1
- package/dist/viewer/{c4Diagram-7LVT6UL2-B5orhRgE.js → c4Diagram-7LVT6UL2-CyUvAiLu.js} +1 -1
- package/dist/viewer/{ca-ES-6MX7JW3Y-B6_hkxTX.js → ca-ES-6MX7JW3Y-CHN5F-MT.js} +1 -1
- package/dist/viewer/{chunk-4HAMMTFA-BGybz_si.js → chunk-4HAMMTFA-BqCV0tLQ.js} +1 -1
- package/dist/viewer/{chunk-EIO257PC-D9F5NHVA.js → chunk-EIO257PC-CI3oDVqd.js} +1 -1
- package/dist/viewer/{chunk-GMAD6QVW-C0XbWNVH.js → chunk-GMAD6QVW-_ArBNgmm.js} +1 -1
- package/dist/viewer/{chunk-GVQU2GXP-vRk2m9ao.js → chunk-GVQU2GXP-Bp9ybMmF.js} +1 -1
- package/dist/viewer/{chunk-IMKFNOWR-DmpawLXk.js → chunk-IMKFNOWR-B_rSZWOf.js} +1 -1
- package/dist/viewer/{chunk-L3NEJ4N5-DUZfiZWj.js → chunk-L3NEJ4N5-BoNmCXoa.js} +1 -1
- package/dist/viewer/{chunk-OSK3NFVY-BvVtm98g.js → chunk-OSK3NFVY-BULGZbtp.js} +1 -1
- package/dist/viewer/chunk-PWAF6VOD-CAWzBUKW.js +1 -0
- package/dist/viewer/{chunk-SHT3W25Y-BIOqc_9G.js → chunk-SHT3W25Y-BJQbbp7D.js} +1 -1
- package/dist/viewer/{chunk-SVP7TREG-CzXvGBkp.js → chunk-SVP7TREG-CtvQoWMe.js} +1 -1
- package/dist/viewer/{chunk-TICWLB2K-BGDOLNPy.js → chunk-TICWLB2K-Bv95TsNF.js} +1 -1
- package/dist/viewer/{classDiagram-ZZMXUADV-1LD9MdPj.js → classDiagram-ZZMXUADV-HxzLFa3r.js} +1 -1
- package/dist/viewer/{classDiagram-v2-VYDZK3BY-1LD9MdPj.js → classDiagram-v2-VYDZK3BY-HxzLFa3r.js} +1 -1
- package/dist/viewer/{cs-CZ-2BRQDIVT-DvQX9epx.js → cs-CZ-2BRQDIVT-DgtgaiDS.js} +1 -1
- package/dist/viewer/{cynefinDiagram-5FMLGOSQ-Ck6iqdN1.js → cynefinDiagram-5FMLGOSQ-COYP2ZfW.js} +1 -1
- package/dist/viewer/{da-DK-5WZEPLOC-CIkD-mT-.js → da-DK-5WZEPLOC-3I0OTBiS.js} +1 -1
- package/dist/viewer/{dagre-GXQ25YYZ-Bw4MivVe.js → dagre-GXQ25YYZ-D1rndX4t.js} +1 -1
- package/dist/viewer/{de-DE-XR44H4JA-CkZg3nnD.js → de-DE-XR44H4JA-B9iziAr2.js} +1 -1
- package/dist/viewer/{diagram-S7CK7UJ4-DcU-yw6G.js → diagram-S7CK7UJ4-p76_pN6n.js} +1 -1
- package/dist/viewer/{diagram-UQ7AKVKN-DnKTK9PW.js → diagram-UQ7AKVKN-BZeUM6LQ.js} +1 -1
- package/dist/viewer/{diagram-VX7I27RA-BBU-ZVb0.js → diagram-VX7I27RA-BH6DOtBA.js} +1 -1
- package/dist/viewer/{diagram-Z3DM3KII-CKk14xfI.js → diagram-Z3DM3KII-sfyUv_ve.js} +1 -1
- package/dist/viewer/{dist-CqRkCb8-.js → dist-3LZ0NP21.js} +1 -1
- package/dist/viewer/dist-B8MRULN_.js +6 -0
- package/dist/viewer/{dist-D_WrKoQ5.js → dist-BA4-A1Cd.js} +4 -4
- package/dist/viewer/{dist-DImjGUkS.js → dist-BM_aMsng.js} +1 -1
- package/dist/viewer/{dist-BKBE5pov.js → dist-BqWUq_oe.js} +1 -1
- package/dist/viewer/dist-BxVKiIee.js +1 -0
- package/dist/viewer/dist-C47_vNXB.js +1 -0
- package/dist/viewer/{dist-8kfzVrJL.js → dist-CEMvvLBZ.js} +1 -1
- package/dist/viewer/dist-CGRa5563.js +9 -0
- package/dist/viewer/{dist-uAqigpP8.js → dist-CK9txTdI.js} +1 -1
- package/dist/viewer/dist-CjL7F6gd.js +1 -0
- package/dist/viewer/{dist-7oXSkB_P.js → dist-DBvKpXmJ.js} +2 -2
- package/dist/viewer/{dist-DcUDFAUF.js → dist-DK-B8LN7.js} +5 -5
- package/dist/viewer/{dist-Dj78KV6Q.js → dist-DMMVvQeB.js} +1 -1
- package/dist/viewer/{dist-CYozWt7T.js → dist-Drowm01h.js} +1 -1
- package/dist/viewer/{dist-BhZ13kjD.js → dist-DyDaX5RO.js} +1 -1
- package/dist/viewer/{dist-CCKpuvTI.js → dist-Edi9zuA8.js} +1 -1
- package/dist/viewer/dist-YDT1APnG.js +1 -0
- package/dist/viewer/{dist-DH-ho6_2.js → dist-Zi8sHrLY.js} +1 -1
- package/dist/viewer/{dist-B9K9D6SC.js → dist-_r49mWqe.js} +1 -1
- package/dist/viewer/{dist-BRb242lg.js → dist-cVUMcmuG.js} +1 -1
- package/dist/viewer/{dist-C_kp_dU8.js → dist-eWnihDK-.js} +1 -1
- package/dist/viewer/{dist-B5g7S3C3.js → dist-s15uIKEV.js} +1 -1
- package/dist/viewer/{dist-DpLi82dR.js → dist-vujJ95vP.js} +2 -2
- package/dist/viewer/{ebnfDiagram-PWID7BFC-CUH9C71X.js → ebnfDiagram-PWID7BFC-Cwzg9YYr.js} +1 -1
- package/dist/viewer/{el-GR-BZB4AONW-Cl1kWlzB.js → el-GR-BZB4AONW-Bpku_fd2.js} +1 -1
- package/dist/viewer/{en-B4ZKOASM-CT3OzVWV.js → en-B4ZKOASM-JcO5O6ZA.js} +1 -1
- package/dist/viewer/{erDiagram-RLTQ6QDP-BZbuVZrG.js → erDiagram-RLTQ6QDP-fnZn2zGn.js} +1 -1
- package/dist/viewer/{es-ES-U4NZUMDT-BAD-ccHs.js → es-ES-U4NZUMDT-c2vvUvhU.js} +1 -1
- package/dist/viewer/{eu-ES-A7QVB2H4-Cj2NDws-.js → eu-ES-A7QVB2H4-C-syu7wy.js} +1 -1
- package/dist/viewer/{fa-IR-HGAKTJCU-C0FVEGIZ.js → fa-IR-HGAKTJCU-2ZjoxLW1.js} +1 -1
- package/dist/viewer/{fi-FI-Z5N7JZ37-D2AdBx48.js → fi-FI-Z5N7JZ37-Cm2EWw3m.js} +1 -1
- package/dist/viewer/flowDiagram-HODETNUW-BWCd1R3C.js +1 -0
- package/dist/viewer/{fr-FR-RHASNOE6-BFreNJCR.js → fr-FR-RHASNOE6-kwukqNI-.js} +1 -1
- package/dist/viewer/ganttDiagram-EL5Y4UJY-CfW25j5s.js +292 -0
- package/dist/viewer/{gl-ES-HMX3MZ6V-DkkhEoWc.js → gl-ES-HMX3MZ6V-DctejPjR.js} +1 -1
- package/dist/viewer/{he-IL-6SHJWFNN-VvaCcliL.js → he-IL-6SHJWFNN-BbKgaNUV.js} +1 -1
- package/dist/viewer/{hi-IN-IWLTKZ5I-DJSuk02I.js → hi-IN-IWLTKZ5I-_zDSxbjx.js} +1 -1
- package/dist/viewer/{hu-HU-A5ZG7DT2-CNvqWgoH.js → hu-HU-A5ZG7DT2-zY2bFqfB.js} +1 -1
- package/dist/viewer/{id-ID-SAP4L64H-BdPRkPOp.js → id-ID-SAP4L64H-BJOftWhs.js} +1 -1
- package/dist/viewer/{image-GAAHSSAO-C5hSHSJ9.js → image-GAAHSSAO-B0SzUEyg.js} +1 -1
- package/dist/viewer/index.html +1 -1
- package/dist/viewer/index.js +8 -8
- package/dist/viewer/index2.css +4 -0
- package/dist/viewer/{infoDiagram-27XIBGKW-Dz669Ti5.js → infoDiagram-27XIBGKW-i0jDaaMj.js} +1 -1
- package/dist/viewer/{ishikawaDiagram-5VMMS53U-BO2EV1vm.js → ishikawaDiagram-5VMMS53U-BkPu7Jq-.js} +1 -1
- package/dist/viewer/{it-IT-JPQ66NNP-BAm2zqLD.js → it-IT-JPQ66NNP-D6NtFjc_.js} +1 -1
- package/dist/viewer/{ja-JP-DBVTYXUO-Dux__a-p.js → ja-JP-DBVTYXUO-dfhQ8Eqf.js} +1 -1
- package/dist/viewer/{journeyDiagram-3NMN7TZE-B8pnfhpY.js → journeyDiagram-3NMN7TZE-DXHqPWxU.js} +1 -1
- package/dist/viewer/{kaa-6HZHGXH3-5P_fyC_H.js → kaa-6HZHGXH3-D_iRpg5w.js} +1 -1
- package/dist/viewer/{kab-KAB-ZGHBKWFO-9hTPNvCU.js → kab-KAB-ZGHBKWFO-cuwM4TOO.js} +1 -1
- package/dist/viewer/{kanban-definition-UXKFOSKX-B8Pjf3dY.js → kanban-definition-UXKFOSKX-DukKBuS_.js} +1 -1
- package/dist/viewer/{kk-KZ-P5N5QNE5-CGou3WF6.js → kk-KZ-P5N5QNE5-Cu2Xwqho.js} +1 -1
- package/dist/viewer/{km-KH-HSX4SM5Z-DOyT_tEV.js → km-KH-HSX4SM5Z-C2519YyM.js} +1 -1
- package/dist/viewer/{ko-KR-MTYHY66A-DftVvGn6.js → ko-KR-MTYHY66A-rDIeV__F.js} +1 -1
- package/dist/viewer/{ku-TR-6OUDTVRD-CVdlBZmx.js → ku-TR-6OUDTVRD-Dp1Pftew.js} +1 -1
- package/dist/viewer/{lt-LT-XHIRWOB4-CUlT0RyT.js → lt-LT-XHIRWOB4-CzjYAKUN.js} +1 -1
- package/dist/viewer/{lv-LV-5QDEKY6T-6wWFJoM0.js → lv-LV-5QDEKY6T-CjR7CWID.js} +1 -1
- package/dist/viewer/{mindmap-definition-YA3MSWOX-BcDNUqMO.js → mindmap-definition-YA3MSWOX-B0XyshNq.js} +1 -1
- package/dist/viewer/{mr-IN-CRQNXWMA-DnzpVGTc.js → mr-IN-CRQNXWMA-BUdSFgBe.js} +1 -1
- package/dist/viewer/{my-MM-5M5IBNSE-Cm4pCcPj.js → my-MM-5M5IBNSE-hDaDBPRH.js} +1 -1
- package/dist/viewer/{nb-NO-T6EIAALU-BcuxE4U7.js → nb-NO-T6EIAALU-BKm89ZTQ.js} +1 -1
- package/dist/viewer/{nl-NL-IS3SIHDZ-CQexxASS.js → nl-NL-IS3SIHDZ-BqhTIFG4.js} +1 -1
- package/dist/viewer/{nn-NO-6E72VCQL-C6pPjApO.js → nn-NO-6E72VCQL-CIzmcY9M.js} +1 -1
- package/dist/viewer/{oc-FR-POXYY2M6-CovxAT6s.js → oc-FR-POXYY2M6-DN0amV9z.js} +1 -1
- package/dist/viewer/{pa-IN-N4M65BXN-CM-0Bi_k.js → pa-IN-N4M65BXN-BBDfy7a_.js} +1 -1
- package/dist/viewer/{pegDiagram-XKGWAZYB-DHtXRebi.js → pegDiagram-XKGWAZYB-CyYKmP8R.js} +1 -1
- package/dist/viewer/percentages-BXMCSKIN-D6mV4By3.js +1 -0
- package/dist/viewer/{pieDiagram-E7YTZNPT-CxPTGmMv.js → pieDiagram-E7YTZNPT-C6zpNDN7.js} +3 -3
- package/dist/viewer/{pl-PL-T2D74RX3-Ce8egCLJ.js → pl-PL-T2D74RX3-uxeYKI3E.js} +1 -1
- package/dist/viewer/{prod-DLkZlcd2.js → prod-CqlW_rj5.js} +9 -9
- package/dist/viewer/{pt-BR-5N22H2LF-CwjXtf87.js → pt-BR-5N22H2LF-C1Z9eZIX.js} +1 -1
- package/dist/viewer/{pt-PT-UZXXM6DQ-Q9ejxTg5.js → pt-PT-UZXXM6DQ-C0y_uQrS.js} +1 -1
- package/dist/viewer/{quadrantDiagram-AXDQQJYC-z7Tz0_0k.js → quadrantDiagram-AXDQQJYC-C_dg2m-b.js} +1 -1
- package/dist/viewer/{railroadDiagram-O6MQD6OU-DwyNHCPY.js → railroadDiagram-O6MQD6OU-CqSn-tUv.js} +1 -1
- package/dist/viewer/{requirementDiagram-BXWQKSXE-BTL35j9A.js → requirementDiagram-BXWQKSXE-BifGv7Yp.js} +1 -1
- package/dist/viewer/{ro-RO-JPDTUUEW-J9XQ6U80.js → ro-RO-JPDTUUEW-C3XSytg4.js} +1 -1
- package/dist/viewer/{ru-RU-B4JR7IUQ-BBA1AdyW.js → ru-RU-B4JR7IUQ-DQIBK3MO.js} +1 -1
- package/dist/viewer/{sequenceDiagram-WJ2MYXX4-DLJNXQ8o.js → sequenceDiagram-WJ2MYXX4-17ZZS3Xp.js} +1 -1
- package/dist/viewer/{si-LK-N5RQ5JYF-U__xLKqD.js → si-LK-N5RQ5JYF-CykyDGoa.js} +1 -1
- package/dist/viewer/{sk-SK-C5VTKIMK-DnbPvh29.js → sk-SK-C5VTKIMK-zaXAzBEq.js} +1 -1
- package/dist/viewer/{sl-SI-NN7IZMDC-C8Eoz0pl.js → sl-SI-NN7IZMDC-VL133hzg.js} +1 -1
- package/dist/viewer/stateDiagram-D77RDMKH-CDp1mhdn.js +1 -0
- package/dist/viewer/{stateDiagram-v2-MP3YSRHH-CXwzb1Xj.js → stateDiagram-v2-MP3YSRHH-CznJp7-4.js} +1 -1
- package/dist/viewer/subset-shared.chunk-BZZzz7hv.js +1 -0
- package/dist/viewer/{subset-worker.chunk-B0UjzhBX.js → subset-worker.chunk-CpBimtVU.js} +1 -1
- package/dist/viewer/{sv-SE-XGPEYMSR-B82M1B45.js → sv-SE-XGPEYMSR-DorRBqhq.js} +1 -1
- package/dist/viewer/{swimlanes-42K2YHIH-CVnTCkti.js → swimlanes-42K2YHIH-DArQjMFS.js} +1 -1
- package/dist/viewer/{swimlanesDiagram-VR7AAH4N-CAsLGxAi.js → swimlanesDiagram-VR7AAH4N-BsHu3KM8.js} +1 -1
- package/dist/viewer/{ta-IN-2NMHFXQM-CDtoSBaY.js → ta-IN-2NMHFXQM-nmSQGl6D.js} +1 -1
- package/dist/viewer/{th-TH-HPSO5L25-CiNISjF4.js → th-TH-HPSO5L25-DbUatfoe.js} +1 -1
- package/dist/viewer/{timeline-definition-24CTP7MA-DCb3aOrx.js → timeline-definition-24CTP7MA-Bzg9DS-G.js} +1 -1
- package/dist/viewer/{tr-TR-DEFEU3FU-CJmFpjiQ.js → tr-TR-DEFEU3FU-CzemawLb.js} +1 -1
- package/dist/viewer/{uk-UA-QMV73CPH-BMLxQJ4h.js → uk-UA-QMV73CPH-s2YqebSD.js} +1 -1
- package/dist/viewer/{useSandboxFrame-rZO0A3sZ.js → useSandboxFrame-DJc_WnFq.js} +8 -8
- package/dist/viewer/{vennDiagram-4TSXK5OY-CuIg1PcQ.js → vennDiagram-4TSXK5OY-Cn2PBzsD.js} +1 -1
- package/dist/viewer/{vi-VN-M7AON7JQ-BOwqnpoG.js → vi-VN-M7AON7JQ-CNV_0Z3D.js} +1 -1
- package/dist/viewer/{wardleyDiagram-VM6X3IG4-D7TjtyXK.js → wardleyDiagram-VM6X3IG4-WYlJVagH.js} +1 -1
- package/dist/viewer/{xychartDiagram-S5SC5T6Z-D6WkQ4f2.js → xychartDiagram-S5SC5T6Z-aiKJ08dD.js} +2 -2
- package/dist/viewer/{zh-CN-LNUGB5OW-BGvgy1n4.js → zh-CN-LNUGB5OW-xMrtVmHe.js} +1 -1
- package/dist/viewer/{zh-HK-E62DVLB3-D7vhuMPK.js → zh-HK-E62DVLB3-CFjWlXxH.js} +1 -1
- package/dist/viewer/{zh-TW-RAJ6MFWO-vpZcm2KN.js → zh-TW-RAJ6MFWO-fjFsXTim.js} +1 -1
- package/package.json +3 -1
- package/dist/viewer/CloudDocument-DaS9ceOa.js +0 -1
- package/dist/viewer/DocumentPage-BLL9x3pY.js +0 -1
- package/dist/viewer/chunk-PWAF6VOD-BugGgSc5.js +0 -1
- package/dist/viewer/dist-B0J-I7r2.js +0 -6
- package/dist/viewer/dist-BUHcTBPN.js +0 -1
- package/dist/viewer/dist-BkV7Dy_o.js +0 -1
- package/dist/viewer/dist-CGL9Y16x.js +0 -9
- package/dist/viewer/dist-DVVjoE8q.js +0 -1
- package/dist/viewer/dist-DmaYQh00.js +0 -1
- package/dist/viewer/flowDiagram-HODETNUW-CAHqUwH1.js +0 -1
- package/dist/viewer/ganttDiagram-EL5Y4UJY-CF5GNdln.js +0 -292
- package/dist/viewer/percentages-BXMCSKIN-dSCeY2Vz.js +0 -1
- package/dist/viewer/stateDiagram-D77RDMKH-BfdN30HE.js +0 -1
- package/dist/viewer/subset-shared.chunk-Cd4b8GJL.js +0 -1
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{$ as n,A as r,B as i,F as a,G as o,H as s,I as c,J as l,K as u,L as d,M as f,N as p,P as m,Q as h,R as g,U as _,V as v,W as y,X as b,Y as x,Z as S,at as C,ct as w,dt as T,et as E,ft as D,it as O,j as k,nt as A,ot as ee,pt as te,q as j,rt as ne,st as re,tt as ie,z as ae}from"./DocumentLayout-DYTnCgfH.js";import{g as oe}from"./chunk-75Z2AOVW-IHFnkteN.js";import{i as se,n as M,t as ce}from"./src-Caqqw6Gw.js";import{n as N}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as le,K as ue,U as de,a as fe,c as pe,s as me,v as he,w as ge,x as P,y as _e}from"./chunk-DU6HZSFF-CokhknAA.js";import{t as ve}from"./init-C-OQMol4.js";import{t as ye}from"./dist-CN30VTUJ.js";var be=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(n,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),xe=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(n,(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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))}));function Se(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Ce(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function we(e){return e}var F=1,Te=2,Ee=3,De=4,Oe=1e-6;function ke(e){return`translate(`+e+`,0)`}function Ae(e){return`translate(0,`+e+`)`}function je(e){return t=>+e(t)}function Me(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Ne(){return!this.__axis}function Pe(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===F||e===De?-1:1,u=e===De||e===Te?`x`:`y`,d=e===F||e===Ee?ke:Ae;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):we),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?Me:je)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===F?`0em`:e===Ee?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,Oe).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,Oe).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===De||e===Te?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(Ne).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===Te?`start`:e===De?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function Fe(e){return Pe(F,e)}function Ie(e){return Pe(Ee,e)}function Le(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var I=C(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);I.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?C(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):I),I.range;function Re(e,t,r,i,a,o){let s=[[S,1,A],[S,5,5*A],[S,15,15*A],[S,30,30*A],[o,1,E],[o,5,5*E],[o,15,15*E],[o,30,30*E],[a,1,n],[a,3,3*n],[a,6,6*n],[a,12,12*n],[i,1,h],[i,2,2*h],[r,1,ne],[t,1,ie],[t,3,3*ie],[e,1,O]];function c(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,n,r){let i=Math.abs(n-t)/r,a=te(([,,e])=>e).right(s,i);if(a===s.length)return e.every(D(t/O,n/O,r));if(a===0)return I.every(Math.max(D(t,n,r),1));let[o,c]=s[i/s[a-1][2]<s[a][2]/i?a-1:a];return o.every(c)}return[c,l]}var[ze,Be]=Re(k,p,s,o,l,b),[Ve,He]=Re(r,f,d,y,j,x);function Ue(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function We(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function L(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,c=e.months,l=e.shortMonths,d=B(i),f=V(i),p=B(o),m=V(o),h=B(s),g=V(s),_=B(c),b=V(c),x=B(l),S=V(l),C={a:ae,A:oe,b:se,B:M,c:null,d:gt,e:gt,f:xt,g:Mt,G:Pt,H:_t,I:vt,j:yt,L:bt,m:St,M:Ct,p:ce,q:N,Q:rn,s:an,S:wt,u:Tt,U:Et,V:Ot,w:kt,W:At,x:null,X:null,y:jt,Y:Nt,Z:Ft,"%":nn},w={a:le,A:ue,b:de,B:fe,c:null,d:It,e:It,f:Vt,g:Qt,G:en,H:Lt,I:Rt,j:zt,L:Bt,m:Ht,M:Ut,p:pe,q:me,Q:rn,s:an,S:Wt,u:Gt,U:Kt,V:Jt,w:Yt,W:Xt,x:null,X:null,y:Zt,Y:$t,Z:tn,"%":nn},T={a:A,A:ee,b:te,B:j,c:ne,d:ot,e:ot,f:ft,g:nt,G:tt,H:ct,I:ct,j:st,L:dt,m:at,M:lt,p:k,q:it,Q:mt,s:ht,S:ut,u:Ze,U:Qe,V:$e,w:Xe,W:et,x:re,X:ie,y:nt,Y:tt,Z:rt,"%":pt};C.x=E(n,C),C.X=E(r,C),C.c=E(t,C),w.x=E(n,w),w.X=E(r,w),w.c=E(t,w);function E(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=Ke[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function D(e,t){return function(n){var r=L(1900,void 0,1),i=O(r,e,n+=``,0),o,s;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(o=We(L(r.y,0,1)),s=o.getUTCDay(),o=s>4||s===0?v.ceil(o):v(o),o=u.offset(o,(r.V-1)*7),r.y=o.getUTCFullYear(),r.m=o.getUTCMonth(),r.d=o.getUTCDate()+(r.w+6)%7):(o=Ue(L(r.y,0,1)),s=o.getDay(),o=s>4||s===0?a.ceil(o):a(o),o=y.offset(o,(r.V-1)*7),r.y=o.getFullYear(),r.m=o.getMonth(),r.d=o.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),s=`Z`in r?We(L(r.y,0,1)).getUTCDay():Ue(L(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(s+5)%7:r.w+r.U*7-(s+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,We(r)):Ue(r)}}function O(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=T[s in Ke?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function k(e,t,n){var r=d.exec(t.slice(n));return r?(e.p=f.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function te(e,t,n){var r=x.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1}function ne(e,n,r){return O(e,t,n,r)}function re(e,t,r){return O(e,n,t,r)}function ie(e,t,n){return O(e,r,t,n)}function ae(e){return s[e.getDay()]}function oe(e){return o[e.getDay()]}function se(e){return l[e.getMonth()]}function M(e){return c[e.getMonth()]}function ce(e){return i[+(e.getHours()>=12)]}function N(e){return 1+~~(e.getMonth()/3)}function le(e){return s[e.getUTCDay()]}function ue(e){return o[e.getUTCDay()]}function de(e){return l[e.getUTCMonth()]}function fe(e){return c[e.getUTCMonth()]}function pe(e){return i[+(e.getUTCHours()>=12)]}function me(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=E(e+=``,C);return t.toString=function(){return e},t},parse:function(e){var t=D(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+=``,w);return t.toString=function(){return e},t},utcParse:function(e){var t=D(e+=``,!0);return t.toString=function(){return e},t}}}var Ke={"-":``,_:` `,0:`0`},R=/^\s*\d+/,qe=/^%/,Je=/[\\^$*+?|[\]().{}]/g;function z(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Ye(e){return e.replace(Je,`\\$&`)}function B(e){return RegExp(`^(?:`+e.map(Ye).join(`|`)+`)`,`i`)}function V(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Xe(e,t,n){var r=R.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ze(e,t,n){var r=R.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qe(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $e(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function et(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tt(e,t,n){var r=R.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nt(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function it(e,t,n){var r=R.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function at(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ot(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function st(e,t,n){var r=R.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ct(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lt(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ut(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dt(e,t,n){var r=R.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ft(e,t,n){var r=R.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pt(e,t,n){var r=qe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function mt(e,t,n){var r=R.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ht(e,t,n){var r=R.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gt(e,t){return z(e.getDate(),t,2)}function _t(e,t){return z(e.getHours(),t,2)}function vt(e,t){return z(e.getHours()%12||12,t,2)}function yt(e,t){return z(1+y.count(r(e),e),t,3)}function bt(e,t){return z(e.getMilliseconds(),t,3)}function xt(e,t){return bt(e,t)+`000`}function St(e,t){return z(e.getMonth()+1,t,2)}function Ct(e,t){return z(e.getMinutes(),t,2)}function wt(e,t){return z(e.getSeconds(),t,2)}function Tt(e){var t=e.getDay();return t===0?7:t}function Et(e,t){return z(d.count(r(e)-1,e),t,2)}function Dt(e){var t=e.getDay();return t>=4||t===0?g(e):g.ceil(e)}function Ot(e,t){return e=Dt(e),z(g.count(r(e),e)+(r(e).getDay()===4),t,2)}function kt(e){return e.getDay()}function At(e,t){return z(a.count(r(e)-1,e),t,2)}function jt(e,t){return z(e.getFullYear()%100,t,2)}function Mt(e,t){return e=Dt(e),z(e.getFullYear()%100,t,2)}function Nt(e,t){return z(e.getFullYear()%1e4,t,4)}function Pt(e,t){var n=e.getDay();return e=n>=4||n===0?g(e):g.ceil(e),z(e.getFullYear()%1e4,t,4)}function Ft(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+z(t/60|0,`0`,2)+z(t%60,`0`,2)}function It(e,t){return z(e.getUTCDate(),t,2)}function Lt(e,t){return z(e.getUTCHours(),t,2)}function Rt(e,t){return z(e.getUTCHours()%12||12,t,2)}function zt(e,t){return z(1+u.count(k(e),e),t,3)}function Bt(e,t){return z(e.getUTCMilliseconds(),t,3)}function Vt(e,t){return Bt(e,t)+`000`}function Ht(e,t){return z(e.getUTCMonth()+1,t,2)}function Ut(e,t){return z(e.getUTCMinutes(),t,2)}function Wt(e,t){return z(e.getUTCSeconds(),t,2)}function Gt(e){var t=e.getUTCDay();return t===0?7:t}function Kt(e,t){return z(s.count(k(e)-1,e),t,2)}function qt(e){var t=e.getUTCDay();return t>=4||t===0?_(e):_.ceil(e)}function Jt(e,t){return e=qt(e),z(_.count(k(e),e)+(k(e).getUTCDay()===4),t,2)}function Yt(e){return e.getUTCDay()}function Xt(e,t){return z(v.count(k(e)-1,e),t,2)}function Zt(e,t){return z(e.getUTCFullYear()%100,t,2)}function Qt(e,t){return e=qt(e),z(e.getUTCFullYear()%100,t,2)}function $t(e,t){return z(e.getUTCFullYear()%1e4,t,4)}function en(e,t){var n=e.getUTCDay();return e=n>=4||n===0?_(e):_.ceil(e),z(e.getUTCFullYear()%1e4,t,4)}function tn(){return`+0000`}function nn(){return`%`}function rn(e){return+e}function an(e){return Math.floor(e/1e3)}var H,on;sn({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 sn(e){return H=Ge(e),on=H.format,H.parse,H.utcFormat,H.utcParse,H}function cn(e){return new Date(e)}function ln(e){return e instanceof Date?+e:+new Date(+e)}function un(e,t,n,r,i,a,o,s,c,l){var u=re(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,ln)):f().map(cn)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(Le(n,e)):u},u.copy=function(){return w(u,un(e,t,n,r,i,a,o,s,c,l))},u}function dn(){return ve.apply(un(Ve,He,r,f,d,y,j,x,S,on).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var fn=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(n,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),pn=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(n,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),mn=ye(),U=e(se(),1),hn=e(fn(),1),gn=e(xe(),1),_n=e(be(),1),vn=e(pn(),1),yn=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],c=[1,32],l=[1,33],u=[1,34],d=[1,9],f=[1,10],p=[1,11],m=[1,12],h=[1,13],g=[1,14],_=[1,15],v=[1,16],y=[1,19],b=[1,20],x=[1,21],S=[1,22],C=[1,23],w=[1,25],T=[1,35],E={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}N(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(b,`lex`);for(var x,S,C,w,T,E={},D,O,k,A;;){if(C=n[n.length-1],this.defaultActions[C]?w=this.defaultActions[C]:(x??=b(),w=o[C]&&o[C][x]),w===void 0||!w.length||!w[0]){var ee=``;for(D in A=[],o[C])this.terminals_[D]&&D>d&&A.push(`'`+this.terminals_[D]+`'`);ee=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
-
`+m.showPosition()+`
|
|
3
|
-
Expecting `+A.join(`, `)+`, got '`+(this.terminals_[x]||x)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(x==f?`end of input`:`'`+(this.terminals_[x]||x)+`'`),this.parseError(ee,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:_,expected:A})}if(w[0]instanceof Array&&w.length>1)throw Error(`Parse Error: multiple actions possible at state: `+C+`, token: `+x);switch(w[0]){case 1:n.push(x),i.push(m.yytext),a.push(m.yylloc),n.push(w[1]),x=null,S?(x=S,S=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(O=this.productions_[w[1]][1],E.$=i[i.length-O],E._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},v&&(E._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(E,[s,l,c,h.yy,w[1],i,a].concat(p)),T!==void 0)return T;O&&(n=n.slice(0,-1*O*2),i=i.slice(0,-1*O),a=a.slice(0,-1*O)),n.push(this.productions_[w[1]][0]),i.push(E.$),a.push(E._$),k=o[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0},`parse`)};E.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,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]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
-
`+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;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}}}})();function D(){this.yy={}}return N(D,`Parser`),D.prototype=E,E.Parser=D,new D})();yn.parser=yn;var bn=yn;U.default.extend(hn.default),U.default.extend(gn.default),U.default.extend(_n.default);var xn={friday:5,saturday:6},W=``,Sn=``,Cn=void 0,wn=``,G=[],K=[],Tn=new Map,En=[],Dn=[],q=``,On=``,kn=[`active`,`done`,`crit`,`milestone`,`vert`],An=[],J=``,Y=!1,jn=!1,Mn=`sunday`,Nn=`saturday`,Pn=0,Fn=N(function(){En=[],Dn=[],q=``,An=[],hr=0,vr=void 0,yr=void 0,Z=[],W=``,Sn=``,On=``,Cn=void 0,wn=``,G=[],K=[],Y=!1,jn=!1,Pn=0,Tn=new Map,J=``,fe(),Mn=`sunday`,Nn=`saturday`},`clear`),In=N(function(e){J=e},`setDiagramId`),Ln=N(function(e){Sn=e},`setAxisFormat`),Rn=N(function(){return Sn},`getAxisFormat`),zn=N(function(e){Cn=e},`setTickInterval`),Bn=N(function(){return Cn},`getTickInterval`),Vn=N(function(e){wn=e},`setTodayMarker`),Hn=N(function(){return wn},`getTodayMarker`),Un=N(function(e){W=e},`setDateFormat`),Wn=N(function(){Y=!0},`enableInclusiveEndDates`),Gn=N(function(){return Y},`endDatesAreInclusive`),Kn=N(function(){jn=!0},`enableTopAxis`),qn=N(function(){return jn},`topAxisEnabled`),Jn=N(function(e){On=e},`setDisplayMode`),Yn=N(function(){return On},`getDisplayMode`),Xn=N(function(){return W},`getDateFormat`),Zn=N((e,t)=>{let n=t.toLowerCase().split(/[\s,]+/).filter(e=>e!==``);return[...new Set([...e,...n])]},`mergeTokens`),Qn=N(function(e){G=Zn(G,e)},`setIncludes`),$n=N(function(){return G},`getIncludes`),er=N(function(e){K=Zn(K,e)},`setExcludes`),tr=N(function(){return K},`getExcludes`),nr=N(function(){return Tn},`getLinks`),rr=N(function(e){q=e,En.push(e)},`addSection`),ir=N(function(){return En},`getSections`),ar=N(function(){let e=Cr(),t=0;for(;!e&&t<10;)e=Cr(),t++;return Dn=Z,Dn},`getTasks`),or=N(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===xn[Nn]||e.isoWeekday()===xn[Nn]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),sr=N(function(e){Mn=e},`setWeekday`),cr=N(function(){return Mn},`getWeekday`),lr=N(function(e){Nn=e},`setWeekend`),ur=N(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,U.default)(e.startTime):(0,U.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,U.default)(e.endTime):(0,U.default)(e.endTime,t,!0);let[o,s]=dr(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),dr=N(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=or(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),fr=N(function(e,t,n){if(n=n.trim(),N(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(r!==null){let e=null;for(let t of r.groups.ids.split(` `)){let n=Q(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let i=(0,U.default)(n,t.trim(),!0);if(i.isValid())return i.toDate();{M.debug(`Invalid date:`+n),M.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),pr=N(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),mr=N(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Q(t);n!==void 0&&(!e||n.startTime<e.startTime)&&(e=n)}if(e)return e.startTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,U.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,U.default)(e),[s,c]=pr(n);if(!Number.isNaN(s)){let e=o.add(s,c);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),hr=0,X=N(function(e){return e===void 0?(hr+=1,`task`+hr):e},`parseId`),gr=N(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};kr(r,i,kn);for(let e=0;e<r.length;e++)r[e]=r[e].trim();let a=``;switch(r.length){case 1:i.id=X(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=X(),i.startTime=fr(void 0,W,r[0]),a=r[1];break;case 3:i.id=X(r[0]),i.startTime=fr(void 0,W,r[1]),a=r[2]}return a&&(i.endTime=mr(i.startTime,W,a,Y),i.manualEndTime=(0,U.default)(a,`YYYY-MM-DD`,!0).isValid(),ur(i,W,K,G)),i},`compileData`),_r=N(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};kr(r,i,kn);for(let e=0;e<r.length;e++)r[e]=r[e].trim();switch(r.length){case 1:i.id=X(),i.startTime={type:`prevTaskEnd`,id:e},i.endTime={data:r[0]};break;case 2:i.id=X(),i.startTime={type:`getStartDate`,startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=X(r[0]),i.startTime={type:`getStartDate`,startData:r[1]},i.endTime={data:r[2]}}return i},`parseData`),vr,yr,Z=[],br={},xr=N(function(e,t){let n={section:q,type:q,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=_r(yr,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=yr,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=Pn,Pn++);let i=Z.push(n);yr=n.id,br[n.id]=i-1},`addTask`),Q=N(function(e){let t=br[e];return Z[t]},`findTaskById`),Sr=N(function(e,t){let n={section:q,type:q,description:e,task:e,classes:[]},r=gr(vr,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,vr=n,Dn.push(n)},`addTaskOrg`),Cr=N(function(){let e=N(function(e){let t=Z[e],n=``;switch(Z[e].raw.startTime.type){case`prevTaskEnd`:t.startTime=Q(t.prevTaskId).endTime;break;case`getStartDate`:n=fr(void 0,W,Z[e].raw.startTime.startData),n&&(Z[e].startTime=n)}return Z[e].startTime&&(Z[e].endTime=mr(Z[e].startTime,W,Z[e].raw.endTime.data,Y),Z[e].endTime&&(Z[e].processed=!0,Z[e].manualEndTime=(0,U.default)(Z[e].raw.endTime.data,`YYYY-MM-DD`,!0).isValid(),ur(Z[e],W,K,G))),Z[e].processed},`compileTask`),t=!0;for(let[n,r]of Z.entries())e(n),t&&=r.processed;return t},`compileTasks`),wr=N(function(e,t){let n=t;P().securityLevel!==`loose`&&(n=(0,mn.sanitizeUrl)(t)),e.split(`,`).forEach(function(e){Q(e)!==void 0&&(Dr(e,()=>{window.open(n,`_self`)}),Tn.set(e,n))}),Tr(e,`clickable`)},`setLink`),Tr=N(function(e,t){e.split(`,`).forEach(function(e){let n=Q(e);n!==void 0&&n.classes.push(t)})},`setClass`),Er=N(function(e,t,n){if(P().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),r[e]=t}}r.length===0&&r.push(e),Q(e)!==void 0&&Dr(e,()=>{oe.runFunc(t,...r)})},`setClickFun`),Dr=N(function(e,t){An.push(function(){let n=J?`${J}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=J?`${J}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),Or={getConfig:N(()=>P().gantt,`getConfig`),clear:Fn,setDateFormat:Un,getDateFormat:Xn,enableInclusiveEndDates:Wn,endDatesAreInclusive:Gn,enableTopAxis:Kn,topAxisEnabled:qn,setAxisFormat:Ln,getAxisFormat:Rn,setTickInterval:zn,getTickInterval:Bn,setTodayMarker:Vn,getTodayMarker:Hn,setAccTitle:de,getAccTitle:_e,setDiagramTitle:ue,getDiagramTitle:ge,setDiagramId:In,setDisplayMode:Jn,getDisplayMode:Yn,setAccDescription:le,getAccDescription:he,addSection:rr,getSections:ir,getTasks:ar,addTask:xr,findTaskById:Q,addTaskOrg:Sr,setIncludes:Qn,getIncludes:$n,setExcludes:er,getExcludes:tr,setClickEvent:N(function(e,t,n){e.split(`,`).forEach(function(e){Er(e,t,n)}),Tr(e,`clickable`)},`setClickEvent`),setLink:wr,getLinks:nr,bindFunctions:N(function(e){An.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:pr,isInvalidDate:or,setWeekday:sr,getWeekday:cr,setWeekend:lr};function kr(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}N(kr,`getTaskTags`),U.default.extend(vn.default);var Ar=N(function(){M.debug(`Something is calling, setConf, remove the call`)},`setConf`),jr={monday:a,tuesday:ae,wednesday:i,thursday:g,friday:m,saturday:c,sunday:d},Mr=N((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r<n.length;r++)if(e.startTime>=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),$,Nr=1e4,Pr={parser:bn,db:Or,renderer:{setConf:Ar,draw:N(function(e,t,n,r){let i=P().gantt;r.db.setDiagramId(t);let a=P().securityLevel,o;a===`sandbox`&&(o=ce(`#i`+t));let s=ce(a===`sandbox`?o.nodes()[0].contentDocument.body:`body`),c=a===`sandbox`?o.nodes()[0].contentDocument:document,l=c.getElementById(t);$=l.parentElement.offsetWidth,$===void 0&&($=1200),i.useWidth!==void 0&&($=i.useWidth);let u=r.db.getTasks(),d=u.filter(e=>!e.vert),p=[];for(let e of d)p.push(e.type);p=A(p);let m={},h=2*i.topPadding;if(r.db.getDisplayMode()===`compact`||i.displayMode===`compact`){let e={};for(let t of d)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=Mr(e[n],t)+1;t+=r,h+=r*(i.barHeight+i.barGap),m[n]=r}}else{h+=d.length*(i.barHeight+i.barGap);for(let e of p)m[e]=d.filter(t=>t.type===e).length}l.setAttribute(`viewBox`,`0 0 `+$+` `+h);let g=s.select(`[id="${t}"]`),_=dn().domain([Ce(u,function(e){return e.startTime}),Se(u,function(e){return e.endTime})]).rangeRound([0,$-i.leftPadding-i.rightPadding]);function v(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i}N(v,`taskCompare`),u.sort(v),b(u,$,h),pe(g,h,$,i.useMaxWidth),g.append(`text`).text(r.db.getDiagramTitle()).attr(`x`,$/2).attr(`y`,i.titleTopMargin).attr(`class`,`titleText`);function b(e,t,n){let a=i.barHeight,o=a+i.barGap,s=i.topPadding,c=i.leftPadding,l=ee().domain([0,p.length]).range([`#00B9FA`,`#F95002`]).interpolate(T);w(o,s,c,t,n,e,r.db.getExcludes(),r.db.getIncludes()),D(c,s,t,n),C(e,o,s,c,a,l,t,n),O(o,s,c,a,l),k(c,s,t,n)}N(b,`makeGantt`);function C(e,n,a,o,s,c,l){e.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);let u=e.filter(e=>!e.vert),d=[...new Set(u.map(e=>e.order))].map(e=>u.find(t=>t.order===e));g.append(`g`).selectAll(`rect`).data(d).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+a-2}).attr(`width`,function(){return l-i.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of p.entries())if(e.type===n)return`section section`+t%i.numberSectionStyles;return`section section0`}).enter();let f=g.append(`g`).selectAll(`rect`).data(e).enter(),m=r.db.getLinks();if(f.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))-.5*s:_(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?i.gridLineStartPadding:t*n+a}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:_(e.renderEndTime||e.endTime)-_(e.startTime)}).attr(`height`,function(e){return e.vert?u.length*(i.barHeight+i.barGap)+i.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))).toString()+`px `+(t*n+a+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of p.entries())e.type===r&&(n=t%i.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),f.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,i.fontSize).attr(`x`,function(e){let t=_(e.startTime),n=_(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(_(e.endTime)-_(e.startTime))-.5*s,n=t+s),e.vert)return _(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>l?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?i.gridLineStartPadding+u.length*(i.barHeight+i.barGap)+60:(t=e.order,t*n+i.barHeight/2+(i.fontSize/2-2)+a)}).attr(`text-height`,s).attr(`class`,function(e){let t=_(e.startTime),n=_(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,a=``;e.classes.length>0&&(a=e.classes.join(` `));let o=0;for(let[t,n]of p.entries())e.type===n&&(o=t%i.numberSectionStyles);let c=``;return e.active&&(c=e.crit?`activeCritText`+o:`activeText`+o),e.done?c=e.crit?c+` doneCritText`+o:c+` doneText`+o:e.crit&&(c=c+` critText`+o),e.milestone&&(c+=` milestoneText`),e.vert&&(c+=` vertText`),r>n-t?n+r+1.5*i.leftPadding>l?a+` taskTextOutsideLeft taskTextOutside`+o+` `+c:a+` taskTextOutsideRight taskTextOutside`+o+` `+c+` width-`+r:a+` taskText taskText`+o+` `+c+` width-`+r}),P().securityLevel===`sandbox`){let e;e=ce(`#i`+t);let n=e.nodes()[0].contentDocument;f.filter(function(e){return m.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,m.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}N(C,`drawRects`);function w(e,n,a,o,s,c,l,u){if(l.length===0&&u.length===0)return;let d,f;for(let{startTime:e,endTime:t}of c)(d===void 0||e<d)&&(d=e),(f===void 0||t>f)&&(f=t);if(!d||!f)return;if((0,U.default)(f).diff((0,U.default)(d),`year`)>5){M.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 p=r.db.getDateFormat(),m=[],h=null,v=(0,U.default)(d);for(;v.valueOf()<=f;)r.db.isInvalidDate(v,p,l,u)?h?h.end=v:h={start:v,end:v}:h&&=(m.push(h),null),v=v.add(1,`d`);g.append(`g`).selectAll(`rect`).data(m).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>_(e.start.startOf(`day`))+a).attr(`y`,i.gridLineStartPadding).attr(`width`,e=>_(e.end.endOf(`day`))-_(e.start.startOf(`day`))).attr(`height`,s-n-i.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(_(t.start)+a+.5*(_(t.end)-_(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}N(w,`drawExcludeDays`);function E(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=U.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}N(E,`getEstimatedTickCount`);function D(e,t,n,a){let o=r.db.getDateFormat(),s=r.db.getAxisFormat(),c;c=s||(o===`D`?`%d`:i.axisFormat??`%Y-%m-%d`);let l=Ie(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(on(c)),u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(u!==null){let e=parseInt(u[1],10);if(isNaN(e)||e<=0)M.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let t=u[2],n=r.db.getWeekday()||i.weekday,a=_.domain(),o=a[0],s=a[1],c=E(o,s,e,t);if(c>Nr)M.warn(`The tick interval "${e}${t}" would generate ${c} ticks, which exceeds the maximum allowed (${Nr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:l.ticks(I.every(e));break;case`second`:l.ticks(S.every(e));break;case`minute`:l.ticks(x.every(e));break;case`hour`:l.ticks(j.every(e));break;case`day`:l.ticks(y.every(e));break;case`week`:l.ticks(jr[n].every(e));break;case`month`:l.ticks(f.every(e))}}}if(g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(a-50)+`)`).call(l).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),r.db.topAxisEnabled()||i.topAxis){let n=Fe(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(on(c));if(u!==null){let e=parseInt(u[1],10);if(isNaN(e)||e<=0)M.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let t=u[2],a=r.db.getWeekday()||i.weekday,o=_.domain(),s=o[0],c=o[1];if(E(s,c,e,t)<=Nr)switch(t){case`millisecond`:n.ticks(I.every(e));break;case`second`:n.ticks(S.every(e));break;case`minute`:n.ticks(x.every(e));break;case`hour`:n.ticks(j.every(e));break;case`day`:n.ticks(y.every(e));break;case`week`:n.ticks(jr[a].every(e));break;case`month`:n.ticks(f.every(e))}}}g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}N(D,`makeGrid`);function O(e,t){let n=0,r=Object.keys(m).map(e=>[e,m[e]]);g.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(me.lineBreakRegex),n=-(t.length-1)/2,r=c.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=c.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o<a;o++)return n+=r[a-1][1],i[1]*e/2+n*e+t;else return i[1]*e/2+t}).attr(`font-size`,i.sectionFontSize).attr(`class`,function(e){for(let[t,n]of p.entries())if(e[0]===n)return`sectionTitle sectionTitle`+t%i.numberSectionStyles;return`sectionTitle`})}N(O,`vertLabels`);function k(e,t,n,a){let o=r.db.getTodayMarker();if(o===`off`)return;let s=g.append(`g`).attr(`class`,`today`),c=new Date,l=s.append(`line`);l.attr(`x1`,_(c)+e).attr(`x2`,_(c)+e).attr(`y1`,i.titleTopMargin).attr(`y2`,a-i.titleTopMargin).attr(`class`,`today`),o!==``&&l.attr(`style`,o.replace(/,/g,`;`))}N(k,`drawToday`);function A(e){let t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}N(A,`checkUnique`)},`draw`)},styles:N(e=>`
|
|
7
|
-
.mermaid-main-font {
|
|
8
|
-
font-family: ${e.fontFamily};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.exclude-range {
|
|
12
|
-
fill: ${e.excludeBkgColor};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.section {
|
|
16
|
-
stroke: none;
|
|
17
|
-
opacity: 0.2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.section0 {
|
|
21
|
-
fill: ${e.sectionBkgColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.section2 {
|
|
25
|
-
fill: ${e.sectionBkgColor2};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.section1,
|
|
29
|
-
.section3 {
|
|
30
|
-
fill: ${e.altSectionBkgColor};
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.sectionTitle0 {
|
|
35
|
-
fill: ${e.titleColor};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sectionTitle1 {
|
|
39
|
-
fill: ${e.titleColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.sectionTitle2 {
|
|
43
|
-
fill: ${e.titleColor};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sectionTitle3 {
|
|
47
|
-
fill: ${e.titleColor};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.sectionTitle {
|
|
51
|
-
text-anchor: start;
|
|
52
|
-
font-family: ${e.fontFamily};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* Grid and axis */
|
|
57
|
-
|
|
58
|
-
.grid .tick {
|
|
59
|
-
stroke: ${e.gridColor};
|
|
60
|
-
opacity: 0.8;
|
|
61
|
-
shape-rendering: crispEdges;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.grid .tick text {
|
|
65
|
-
font-family: ${e.fontFamily};
|
|
66
|
-
fill: ${e.textColor};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.grid path {
|
|
70
|
-
stroke-width: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/* Today line */
|
|
75
|
-
|
|
76
|
-
.today {
|
|
77
|
-
fill: none;
|
|
78
|
-
stroke: ${e.todayLineColor};
|
|
79
|
-
stroke-width: 2px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/* Task styling */
|
|
84
|
-
|
|
85
|
-
/* Default task */
|
|
86
|
-
|
|
87
|
-
.task {
|
|
88
|
-
stroke-width: 2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.taskText {
|
|
92
|
-
text-anchor: middle;
|
|
93
|
-
font-family: ${e.fontFamily};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.taskTextOutsideRight {
|
|
97
|
-
fill: ${e.taskTextDarkColor};
|
|
98
|
-
text-anchor: start;
|
|
99
|
-
font-family: ${e.fontFamily};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.taskTextOutsideLeft {
|
|
103
|
-
fill: ${e.taskTextDarkColor};
|
|
104
|
-
text-anchor: end;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/* Special case clickable */
|
|
109
|
-
|
|
110
|
-
.task.clickable {
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.taskText.clickable {
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.taskTextOutsideLeft.clickable {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.taskTextOutsideRight.clickable {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
129
|
-
font-weight: bold;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* Specific task settings for the sections*/
|
|
134
|
-
|
|
135
|
-
.taskText0,
|
|
136
|
-
.taskText1,
|
|
137
|
-
.taskText2,
|
|
138
|
-
.taskText3 {
|
|
139
|
-
fill: ${e.taskTextColor};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.task0,
|
|
143
|
-
.task1,
|
|
144
|
-
.task2,
|
|
145
|
-
.task3 {
|
|
146
|
-
fill: ${e.taskBkgColor};
|
|
147
|
-
stroke: ${e.taskBorderColor};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.taskTextOutside0,
|
|
151
|
-
.taskTextOutside2
|
|
152
|
-
{
|
|
153
|
-
fill: ${e.taskTextOutsideColor};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.taskTextOutside1,
|
|
157
|
-
.taskTextOutside3 {
|
|
158
|
-
fill: ${e.taskTextOutsideColor};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/* Active task */
|
|
163
|
-
|
|
164
|
-
.active0,
|
|
165
|
-
.active1,
|
|
166
|
-
.active2,
|
|
167
|
-
.active3 {
|
|
168
|
-
fill: ${e.activeTaskBkgColor};
|
|
169
|
-
stroke: ${e.activeTaskBorderColor};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.activeText0,
|
|
173
|
-
.activeText1,
|
|
174
|
-
.activeText2,
|
|
175
|
-
.activeText3 {
|
|
176
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* Completed task */
|
|
181
|
-
|
|
182
|
-
.done0,
|
|
183
|
-
.done1,
|
|
184
|
-
.done2,
|
|
185
|
-
.done3 {
|
|
186
|
-
stroke: ${e.doneTaskBorderColor};
|
|
187
|
-
fill: ${e.doneTaskBkgColor};
|
|
188
|
-
stroke-width: 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.doneText0,
|
|
192
|
-
.doneText1,
|
|
193
|
-
.doneText2,
|
|
194
|
-
.doneText3 {
|
|
195
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
-
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
-
.doneText0.taskTextOutsideLeft,
|
|
201
|
-
.doneText0.taskTextOutsideRight,
|
|
202
|
-
.doneText1.taskTextOutsideLeft,
|
|
203
|
-
.doneText1.taskTextOutsideRight,
|
|
204
|
-
.doneText2.taskTextOutsideLeft,
|
|
205
|
-
.doneText2.taskTextOutsideRight,
|
|
206
|
-
.doneText3.taskTextOutsideLeft,
|
|
207
|
-
.doneText3.taskTextOutsideRight {
|
|
208
|
-
fill: ${e.taskTextOutsideColor} !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* Tasks on the critical line */
|
|
213
|
-
|
|
214
|
-
.crit0,
|
|
215
|
-
.crit1,
|
|
216
|
-
.crit2,
|
|
217
|
-
.crit3 {
|
|
218
|
-
stroke: ${e.critBorderColor};
|
|
219
|
-
fill: ${e.critBkgColor};
|
|
220
|
-
stroke-width: 2;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.activeCrit0,
|
|
224
|
-
.activeCrit1,
|
|
225
|
-
.activeCrit2,
|
|
226
|
-
.activeCrit3 {
|
|
227
|
-
stroke: ${e.critBorderColor};
|
|
228
|
-
fill: ${e.activeTaskBkgColor};
|
|
229
|
-
stroke-width: 2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.doneCrit0,
|
|
233
|
-
.doneCrit1,
|
|
234
|
-
.doneCrit2,
|
|
235
|
-
.doneCrit3 {
|
|
236
|
-
stroke: ${e.critBorderColor};
|
|
237
|
-
fill: ${e.doneTaskBkgColor};
|
|
238
|
-
stroke-width: 2;
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
shape-rendering: crispEdges;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.milestone {
|
|
244
|
-
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.milestoneText {
|
|
248
|
-
font-style: italic;
|
|
249
|
-
}
|
|
250
|
-
.doneCritText0,
|
|
251
|
-
.doneCritText1,
|
|
252
|
-
.doneCritText2,
|
|
253
|
-
.doneCritText3 {
|
|
254
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
|
258
|
-
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
-
.doneCritText0.taskTextOutsideRight,
|
|
260
|
-
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
-
.doneCritText1.taskTextOutsideRight,
|
|
262
|
-
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
-
.doneCritText2.taskTextOutsideRight,
|
|
264
|
-
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
-
.doneCritText3.taskTextOutsideRight {
|
|
266
|
-
fill: ${e.taskTextOutsideColor} !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.vert {
|
|
270
|
-
stroke: ${e.vertLineColor};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.vertText {
|
|
274
|
-
font-size: 15px;
|
|
275
|
-
text-anchor: middle;
|
|
276
|
-
fill: ${e.vertLineColor} !important;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.activeCritText0,
|
|
280
|
-
.activeCritText1,
|
|
281
|
-
.activeCritText2,
|
|
282
|
-
.activeCritText3 {
|
|
283
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.titleText {
|
|
287
|
-
text-anchor: middle;
|
|
288
|
-
font-size: 18px;
|
|
289
|
-
fill: ${e.titleColor||e.textColor};
|
|
290
|
-
font-family: ${e.fontFamily};
|
|
291
|
-
}
|
|
292
|
-
`,`getStyles`)};export{Pr as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{n as default,r as en,i as kaa}from"./prod-DLkZlcd2.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as e}from"./DocumentLayout-DYTnCgfH.js";import{E as t,g as n}from"./chunk-75Z2AOVW-IHFnkteN.js";import{n as r,t as i}from"./src-Caqqw6Gw.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{O as o,c as s,s as c,x as l}from"./chunk-DU6HZSFF-CokhknAA.js";import"./chunk-P2QGCYS3-8Db5vyU5.js";import"./chunk-PWAF6VOD-BugGgSc5.js";import"./chunk-GMAD6QVW-C0XbWNVH.js";import"./chunk-4HAMMTFA-BGybz_si.js";import"./chunk-GVQU2GXP-vRk2m9ao.js";import"./chunk-L3NEJ4N5-DUZfiZWj.js";import"./chunk-OSK3NFVY-BvVtm98g.js";import{t as u}from"./graphlib-DS17s2tU.js";import{t as d}from"./dagre-D7JM2Yhv.js";import"./dist-D_WrKoQ5.js";import"./chunk-F27PBJKO-Cw3GCNMv.js";import"./chunk-XXDRQBXY-CRm7H5Qv.js";import"./chunk-POPQ4Y6H-DdPcMCae.js";import{i as f,n as p,t as m}from"./chunk-IMKFNOWR-DmpawLXk.js";var h=a(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,l().state.sizeUnit).attr(`cx`,l().state.padding+l().state.sizeUnit).attr(`cy`,l().state.padding+l().state.sizeUnit),`drawStartState`),g=a(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,l().state.textHeight).attr(`class`,`divider`).attr(`x2`,l().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=a((e,t)=>{let n=e.append(`text`).attr(`x`,2*l().state.padding).attr(`y`,l().state.textHeight+2*l().state.padding).attr(`font-size`,l().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,l().state.padding).attr(`y`,l().state.padding).attr(`width`,r.width+2*l().state.padding).attr(`height`,r.height+2*l().state.padding).attr(`rx`,l().state.radius),n},`drawSimpleState`),v=a((e,t)=>{let n=a(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*l().state.padding).text(t);n||r.attr(`dy`,l().state.textHeight)},`addTspan`),r=e.append(`text`).attr(`x`,2*l().state.padding).attr(`y`,l().state.textHeight+1.3*l().state.padding).attr(`font-size`,l().state.fontSize).attr(`class`,`state-title`).text(t.descriptions[0]).node().getBBox(),i=r.height,o=e.append(`text`).attr(`x`,l().state.padding).attr(`y`,i+l().state.padding*.4+l().state.dividerMargin+l().state.textHeight).attr(`class`,`state-description`),s=!0,c=!0;t.descriptions.forEach(function(e){s||(n(o,e,c),c=!1),s=!1});let u=e.append(`line`).attr(`x1`,l().state.padding).attr(`y1`,l().state.padding+i+l().state.dividerMargin/2).attr(`y2`,l().state.padding+i+l().state.dividerMargin/2).attr(`class`,`descr-divider`),d=o.node().getBBox(),f=Math.max(d.width,r.width);return u.attr(`x2`,f+3*l().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,l().state.padding).attr(`y`,l().state.padding).attr(`width`,f+2*l().state.padding).attr(`height`,d.height+i+2*l().state.padding).attr(`rx`,l().state.radius),e},`drawDescrState`),y=a((e,t,n)=>{let r=l().state.padding,i=2*l().state.padding,a=e.node().getBBox(),o=a.width,s=a.x,c=e.append(`text`).attr(`x`,0).attr(`y`,l().state.titleShift).attr(`font-size`,l().state.fontSize).attr(`class`,`state-title`).text(t.id),u=c.node().getBBox().width+i,d=Math.max(u,o);d===o&&(d+=i);let f,p=e.node().getBBox();t.doc,f=s-r,u>o&&(f=(o-d)/2+r),Math.abs(s-p.x)<r&&u>o&&(f=s-(u-o)/2);let m=1-l().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+l().state.textHeight+l().state.titleShift+1).attr(`rx`,`0`),c.attr(`x`,f+r),u<=o&&c.attr(`x`,s+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,l().state.titleShift-l().state.textHeight-l().state.padding).attr(`width`,d).attr(`height`,l().state.textHeight*3).attr(`rx`,l().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,l().state.titleShift-l().state.textHeight-l().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*l().state.textHeight).attr(`rx`,l().state.radius),e},`addTitleAndBox`),b=a(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,l().state.sizeUnit+l().state.miniPadding).attr(`cx`,l().state.padding+l().state.sizeUnit+l().state.miniPadding).attr(`cy`,l().state.padding+l().state.sizeUnit+l().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,l().state.sizeUnit).attr(`cx`,l().state.padding+l().state.sizeUnit+2).attr(`cy`,l().state.padding+l().state.sizeUnit+2)),`drawEndState`),x=a((e,t)=>{let n=l().state.forkWidth,r=l().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,l().state.padding).attr(`y`,l().state.padding)},`drawForkJoinState`),S=a((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let o=e.replace(/\r\n/g,`<br/>`);o=o.replace(/\n/g,`<br/>`);let s=o.split(c.lineBreakRegex),u=1.25*l().state.noteMargin;for(let e of s){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}i+=u,e.attr(`x`,t+l().state.noteMargin),e.attr(`y`,n+i+1.25*l().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),C=a((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,l().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*l().state.noteMargin),n.attr(`width`,r+l().state.noteMargin*2),n},`drawNote`),w=a(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type==="default"&&t.descriptions.length===0&&_(i,t),t.type==="default"&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*l().state.padding,r.height=a.height+2*l().state.padding,r},`drawState`),T=0,E=a(function(i,s,u){let d=a(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);s.points=s.points.filter(e=>!Number.isNaN(e.y));let f=s.points,p=e().x(function(e){return e.x}).y(function(e){return e.y}).curve(t),h=i.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(l().state.arrowMarkerAbsolute&&(g=o(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=i.append(`g`).attr(`class`,`stateLabel`),{x:t,y:a}=n.calcLabelPosition(s.points),o=c.getRows(u.title),d=0,f=[],p=0,m=0;for(let n=0;n<=o.length;n++){let i=e.append(`text`).attr(`text-anchor`,`middle`).text(o[n]).attr(`x`,t).attr(`y`,a+d),s=i.node().getBBox();p=Math.max(p,s.width),m=Math.min(m,s.x),r.info(s.x,t,a+d),d===0&&(d=i.node().getBBox().height,r.info(`Title height`,d,a)),f.push(i)}let h=d*o.length;if(o.length>1){let e=(o.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,a+n*d-e)),h=d*o.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,t-p/2-l().state.padding/2).attr(`y`,a-h/2-l().state.padding/2-3.5).attr(`width`,p+l().state.padding).attr(`height`,h+l().state.padding),r.info(g)}T++},`drawEdge`),D,O={},k=a(function(){},`setConf`),A=a(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=a(function(e,t,n,a){D=l().state;let o=l().securityLevel,c;o===`sandbox`&&(c=i(`#i`+t));let u=i(o===`sandbox`?c.nodes()[0].contentDocument.body:`body`),d=o===`sandbox`?c.nodes()[0].contentDocument:document;r.debug(`Rendering diagram `+e);let f=u.select(`[id='${t}']`);A(f),N(a.db.getRootDoc(),f.append(`g`).attr(`id`,t+`-root`),void 0,!1,u,d,a);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2,_=h*1.75;s(f,g,_,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=a(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=a((e,t,n,i,a,o,s)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}n?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=s.db.getStates(),h=s.db.getRelations(),g=Object.keys(m);for(let e of g){let r=m[e];n&&(r.parentId=n);let c;if(r.doc){let e=t.append(`g`).attr(`id`,r.id).attr(`class`,`stateGroup`);c=N(r.doc,e,r.id,!i,a,o,s);{e=y(e,r,i);let t=e.node().getBBox();c.width=t.width,c.height=t.height+D.padding/2,O[r.id]={y:D.compositTitleSize}}}else c=w(t,r,l);if(r.note){let e=w(t,{descriptions:[],id:r.id+`-note`,note:r.note,type:`note`},l);r.note.position===`left of`?(l.setNode(c.id+`-note`,e),l.setNode(c.id,c)):(l.setNode(c.id,c),l.setNode(c.id+`-note`,e)),l.setParent(c.id,c.id+`-group`),l.setParent(c.id+`-note`,c.id+`-group`)}else l.setNode(c.id,c)}r.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,r.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*c.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),r.debug(`Graph after layout`,l.nodes());let v=t.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(r.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),a.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),a.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),o.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):r.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(r.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(t,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:n||`root`,label:n||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,r.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:a(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./prod-DLkZlcd2.js";export{n as Commands,i as subsetToBase64,r as subsetToBinary,t as toBase64}from"./chunk-EIO257PC-D9F5NHVA.js";
|