@intent-hq/web 2.310.1 → 2.310.3
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/package.json +1 -1
- package/web/app/immutable/assets/{DiagramPresentation.fimBl1wP.css → DiagramPresentation.Bfi3xHm0.css} +1 -1
- package/web/app/immutable/chunks/-xK_vQQs.js +1 -0
- package/web/app/immutable/chunks/{CeEeQIAV.js → 2rlMb19F.js} +1 -1
- package/web/app/immutable/chunks/{Bhcwd2SW.js → 6Z5k9P1U.js} +4 -4
- package/web/app/immutable/chunks/7xAw-BT0.js +213 -0
- package/web/app/immutable/chunks/{t3bi-ExW.js → B1s3oEqm.js} +2 -2
- package/web/app/immutable/chunks/{phowbgF-.js → B2JLNOy6.js} +1 -1
- package/web/app/immutable/chunks/B53WwE3a.js +1 -0
- package/web/app/immutable/chunks/{R7gFhaG_.js → B7VncZW5.js} +1 -1
- package/web/app/immutable/chunks/{EZw3rvya.js → B7s4-XTz.js} +30 -30
- package/web/app/immutable/chunks/{DOHtPCK9.js → BDPXN-l5.js} +1 -1
- package/web/app/immutable/chunks/{zXW6V5sa.js → BENBNSN7.js} +1 -1
- package/web/app/immutable/chunks/{DevHtnbn.js → BFXzH5IE.js} +1 -1
- package/web/app/immutable/chunks/BGcL9rs9.js +217 -0
- package/web/app/immutable/chunks/BHnD9zfx.js +99 -0
- package/web/app/immutable/chunks/{qMHHnffV.js → BI_SwxaN.js} +1 -1
- package/web/app/immutable/chunks/{BV9p4X5I.js → BMMFveB2.js} +6 -6
- package/web/app/immutable/chunks/BP6OqM9o.js +1 -0
- package/web/app/immutable/chunks/BRvgBsbx.js +291 -0
- package/web/app/immutable/chunks/{Cuozo7M1.js → BSel_zEu.js} +1 -1
- package/web/app/immutable/chunks/{B4dTn6xv.js → BUlPMLws.js} +1 -1
- package/web/app/immutable/chunks/{xMirTl3q.js → BYxB_o2p.js} +2 -2
- package/web/app/immutable/chunks/{CsYRAdgB.js → B_mbXOka.js} +1 -1
- package/web/app/immutable/chunks/BakMVsPT.js +2 -0
- package/web/app/immutable/chunks/{DeopB2f-.js → Bd0N6Q84.js} +3 -3
- package/web/app/immutable/chunks/{CHH2PtZ7.js → BfPWAh77.js} +1 -1
- package/web/app/immutable/chunks/BfZK-g4H.js +2 -0
- package/web/app/immutable/chunks/BhWJ-mUa.js +292 -0
- package/web/app/immutable/chunks/{CwH3s3Sg.js → Bhw4MKUW.js} +1 -1
- package/web/app/immutable/chunks/{CUvX4uDB.js → BmpVZmDT.js} +3 -3
- package/web/app/immutable/chunks/{BNg3GOxL.js → Bn-4GS40.js} +2 -2
- package/web/app/immutable/chunks/BpXeqZkK.js +12 -0
- package/web/app/immutable/chunks/{D-9LH0ah.js → Bpofk5Ge.js} +1 -1
- package/web/app/immutable/chunks/{DjEB6QMF.js → BrV7vQ-C.js} +1 -1
- package/web/app/immutable/chunks/ByGoYv9M.js +1 -0
- package/web/app/immutable/chunks/C-1nTNwc.js +120 -0
- package/web/app/immutable/chunks/{CBHPIqXg.js → C3nOF7W6.js} +1 -1
- package/web/app/immutable/chunks/{BIxkRFIj.js → C72YfPmr.js} +2 -2
- package/web/app/immutable/chunks/{DMGAuSgb.js → C87YV7yB.js} +4 -4
- package/web/app/immutable/chunks/{Coy9jSf1.js → CCDTjxXZ.js} +1 -1
- package/web/app/immutable/chunks/CEXJj_TX.js +62 -0
- package/web/app/immutable/chunks/CHFvnHJS.js +39 -0
- package/web/app/immutable/chunks/{CWyh7Yhz.js → CK1qXB1I.js} +1 -1
- package/web/app/immutable/chunks/{CCIGQjYf.js → CLEySo6k.js} +1 -1
- package/web/app/immutable/chunks/{DXOCO_oS.js → CNxOtEoC.js} +1 -1
- package/web/app/immutable/chunks/{7KTbkf4W.js → CPi1vTiT.js} +2 -2
- package/web/app/immutable/chunks/{ejL3HmTG.js → CQI-dvtu.js} +3 -3
- package/web/app/immutable/chunks/CSiG9Hvp.js +1 -0
- package/web/app/immutable/chunks/{C0DDaBnV.js → CTaTQq2B.js} +1 -1
- package/web/app/immutable/chunks/{dtB9lR1B.js → CUMlGGeg.js} +1 -1
- package/web/app/immutable/chunks/{fULl8IO9.js → CVyfvlNb.js} +7 -7
- package/web/app/immutable/chunks/{DUkegami.js → C_tu278J.js} +1 -1
- package/web/app/immutable/chunks/CcUMYVEM.js +41 -0
- package/web/app/immutable/chunks/Ccfa6x-j.js +24 -0
- package/web/app/immutable/chunks/{BmDskjjc.js → Cd_IIsl2.js} +1 -1
- package/web/app/immutable/chunks/CeijcUhC.js +38 -0
- package/web/app/immutable/chunks/Ci2_N-bK.js +370 -0
- package/web/app/immutable/chunks/CiPifYNB.js +1 -0
- package/web/app/immutable/chunks/{D8SVxzqF.js → CjcP6chv.js} +1 -1
- package/web/app/immutable/chunks/Cl430GWg.js +344 -0
- package/web/app/immutable/chunks/ClKsLSpN.js +27 -0
- package/web/app/immutable/chunks/ClebXGIM.js +141 -0
- package/web/app/immutable/chunks/{DOVnLHFz.js → CnIb6mve.js} +1 -1
- package/web/app/immutable/chunks/{qOCErwrn.js → CrdTEIp7.js} +1 -1
- package/web/app/immutable/chunks/{CPvhRhlk.js → Cstq9SM5.js} +11 -11
- package/web/app/immutable/chunks/CuzanJ4G.js +1 -0
- package/web/app/immutable/chunks/{D81gRUjY.js → D-QdqmeZ.js} +1 -1
- package/web/app/immutable/chunks/D0gJOzJU.js +40 -0
- package/web/app/immutable/chunks/{CoeuT-m3.js → D2ffSQ9J.js} +1 -1
- package/web/app/immutable/chunks/D2ojbL4J.js +98 -0
- package/web/app/immutable/chunks/{Bfkn2BGM.js → D3lH_sy-.js} +1 -1
- package/web/app/immutable/chunks/{C0Yks_oS.js → D5XrjD_m.js} +1 -1
- package/web/app/immutable/chunks/{DzvQOT8_.js → D5gGhPeB.js} +1 -1
- package/web/app/immutable/chunks/{DLm51UIm.js → D7ePuUtq.js} +1 -1
- package/web/app/immutable/chunks/{B9r0JXjW.js → D9RktmhG.js} +1 -1
- package/web/app/immutable/chunks/{Si43_nYW.js → D9zTmP-H.js} +3 -3
- package/web/app/immutable/chunks/{DQEBW0YT.js → DAhqFWJw.js} +1 -1
- package/web/app/immutable/chunks/{B20hJMKp.js → DAmyup4Q.js} +2 -2
- package/web/app/immutable/chunks/{B0X6Qy4e.js → DH-0T9oO.js} +1 -1
- package/web/app/immutable/chunks/{D-o9b0Cd.js → DHf042m3.js} +2 -2
- package/web/app/immutable/chunks/DICP2Iar.js +169 -0
- package/web/app/immutable/chunks/{D04E4MVv.js → DJ4er0zy.js} +4 -4
- package/web/app/immutable/chunks/{BtHVXttl.js → DLTK7s08.js} +5 -5
- package/web/app/immutable/chunks/{DQulsXJ7.js → DM80xiYc.js} +1 -1
- package/web/app/immutable/chunks/{BsP5G0Fo.js → DPWD_Z0m.js} +1 -1
- package/web/app/immutable/chunks/{t9id1Dgw.js → DPjuFI2m.js} +1 -1
- package/web/app/immutable/chunks/{DhdMM_zt.js → DR30pTuY.js} +14 -14
- package/web/app/immutable/chunks/{D_9AVJm5.js → DStbB4cJ.js} +1 -1
- package/web/app/immutable/chunks/{C8CCN24q.js → DV_gHrZ4.js} +1 -1
- package/web/app/immutable/chunks/{CQe4IdgR.js → DWqMBuHP.js} +1 -1
- package/web/app/immutable/chunks/DhDem5lD.js +34 -0
- package/web/app/immutable/chunks/{DaEQgqyy.js → Dj7a19mR.js} +1 -1
- package/web/app/immutable/chunks/{CnmCWFKQ.js → Dn1Hge9W.js} +2 -2
- package/web/app/immutable/chunks/{DxlwMmI8.js → DpbPS--w.js} +1 -1
- package/web/app/immutable/chunks/{Drg52kVf.js → DqPGIq9m.js} +1 -1
- package/web/app/immutable/chunks/Dr9n9KYD.js +8 -0
- package/web/app/immutable/chunks/Dx4xDmS-.js +1 -0
- package/web/app/immutable/chunks/{D411lQkp.js → DxBZwGJl.js} +1 -1
- package/web/app/immutable/chunks/{CEdLQlJ6.js → EF47gh5F.js} +6 -6
- package/web/app/immutable/chunks/FTZaXc8b.js +106 -0
- package/web/app/immutable/chunks/NHQiGgbv.js +200 -0
- package/web/app/immutable/chunks/{BCm8Gasf.js → OEEtadht.js} +1 -1
- package/web/app/immutable/chunks/{DCeW9_0X.js → PR2rc_KV.js} +2 -2
- package/web/app/immutable/chunks/{_F3xl3RI.js → Q48HTbqK.js} +1 -1
- package/web/app/immutable/chunks/{TQIai6Ne.js → Sd4DhpzB.js} +79 -79
- package/web/app/immutable/chunks/{C-Mmob1s.js → WaYTk5P-.js} +1 -1
- package/web/app/immutable/chunks/{ByGsJxdn.js → X-Frg4xt.js} +1 -1
- package/web/app/immutable/chunks/YDWB9C4j.js +36 -0
- package/web/app/immutable/chunks/{BUSwtV99.js → YqBgboHy.js} +1 -1
- package/web/app/immutable/chunks/{B_D0NLtg.js → _GDZ01fB.js} +1 -1
- package/web/app/immutable/chunks/{C7oH1dbI.js → aloh9OcN.js} +1 -1
- package/web/app/immutable/chunks/{BEhoKnQT.js → ap51LBWo.js} +1 -1
- package/web/app/immutable/chunks/bBO0iA4_.js +7 -0
- package/web/app/immutable/chunks/cMysCMc_.js +24 -0
- package/web/app/immutable/chunks/dpdLM1Cx.js +140 -0
- package/web/app/immutable/chunks/eHLf0w_s.js +1 -0
- package/web/app/immutable/chunks/fyjA8lOg.js +4 -0
- package/web/app/immutable/chunks/{CQf-fH5v.js → h6Xb9K7f.js} +1 -1
- package/web/app/immutable/chunks/{j0ThtFJc.js → iX-41BqF.js} +1 -1
- package/web/app/immutable/chunks/ibC6Wlul.js +3 -0
- package/web/app/immutable/chunks/jU5_8m_P.js +84 -0
- package/web/app/immutable/chunks/{BKGPkCRs.js → kHJUvxPR.js} +1 -1
- package/web/app/immutable/chunks/{BBTS8ZOM.js → lG67Zx5D.js} +3 -3
- package/web/app/immutable/chunks/{CgAIOmc3.js → lb9Uy5lM.js} +4 -4
- package/web/app/immutable/chunks/{DdAxykhC.js → lh2cjQS1.js} +1 -1
- package/web/app/immutable/chunks/{r1_PrlQL.js → lqs_HYEw.js} +1 -1
- package/web/app/immutable/chunks/{CnszEr0a.js → oEWQ7BWN.js} +1 -1
- package/web/app/immutable/chunks/{BGLkcG6I.js → ry72TFIz.js} +2 -2
- package/web/app/immutable/chunks/{BV7dztYI.js → ryFwnMjp.js} +1 -1
- package/web/app/immutable/chunks/{CsASRGy9.js → uOEty9O6.js} +5 -5
- package/web/app/immutable/chunks/wh3Y68il.js +1 -0
- package/web/app/immutable/chunks/{DRMT9vvq.js → xPs_63iv.js} +1 -1
- package/web/app/immutable/entry/{app.DlF41taB.js → app.np0VAfbg.js} +2 -2
- package/web/app/immutable/entry/start.BGCfjmAX.js +1 -0
- package/web/app/immutable/nodes/{0.BLjNhnkb.js → 0.DoZAnEaT.js} +1 -1
- package/web/app/immutable/nodes/{1.DaghOy3j.js → 1.BfLNDde5.js} +1 -1
- package/web/app/immutable/nodes/{10.CbV_flkh.js → 10.WVRhKQHR.js} +1 -1
- package/web/app/immutable/nodes/{14.N_oC1pv5.js → 14.BGrxllXE.js} +1 -1
- package/web/app/immutable/nodes/{16.Cn0uYbJe.js → 16.CkZkKSWx.js} +2 -2
- package/web/app/immutable/nodes/{2.CMERPJYK.js → 2.COM3w17g.js} +8 -8
- package/web/app/immutable/nodes/{3.Dk5w9XeG.js → 3.BhRx3b1m.js} +1 -1
- package/web/app/immutable/nodes/{4.CvLiKH0B.js → 4.C02hhSi-.js} +1 -1
- package/web/app/immutable/nodes/{5.BL5oLCOi.js → 5.Dgt2hWD3.js} +1 -1
- package/web/app/immutable/nodes/{6.DiKzgiKt.js → 6.KyP4WP5g.js} +1 -1
- package/web/app/immutable/nodes/{7.CM-hNW3A.js → 7.BxnoAMeX.js} +1 -1
- package/web/app/immutable/nodes/{8.BThIGSQR.js → 8.CnlHpTsC.js} +2 -2
- package/web/app/immutable/nodes/{9.D70tN3NX.js → 9.CJ1_wepy.js} +18 -18
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/-SL67XKV.js +0 -1
- package/web/app/immutable/chunks/351KaJp_.js +0 -24
- package/web/app/immutable/chunks/7Iuyw4Ow.js +0 -106
- package/web/app/immutable/chunks/9ySBq1wF.js +0 -36
- package/web/app/immutable/chunks/B2safKX4.js +0 -1
- package/web/app/immutable/chunks/B8QrskMI.js +0 -139
- package/web/app/immutable/chunks/BCO4VeSA.js +0 -1
- package/web/app/immutable/chunks/BCaDoF8Y.js +0 -1
- package/web/app/immutable/chunks/BEdJCn-8.js +0 -1
- package/web/app/immutable/chunks/BGBb6fI-.js +0 -120
- package/web/app/immutable/chunks/BGQ3htf5.js +0 -1
- package/web/app/immutable/chunks/BKLEAopb.js +0 -7
- package/web/app/immutable/chunks/BKSgn5w-.js +0 -1
- package/web/app/immutable/chunks/BKY64haD.js +0 -12
- package/web/app/immutable/chunks/BOXqfDS_.js +0 -40
- package/web/app/immutable/chunks/BP_ooGOd.js +0 -24
- package/web/app/immutable/chunks/BQApP15C.js +0 -99
- package/web/app/immutable/chunks/BS6cE8e9.js +0 -231
- package/web/app/immutable/chunks/BTXk2yGf.js +0 -96
- package/web/app/immutable/chunks/BVrOGXf1.js +0 -78
- package/web/app/immutable/chunks/BZoKWA-r.js +0 -96
- package/web/app/immutable/chunks/BbiXTFqz.js +0 -1
- package/web/app/immutable/chunks/BgmKjqUX.js +0 -1
- package/web/app/immutable/chunks/Bk7xBWHf.js +0 -34
- package/web/app/immutable/chunks/BoiNnj2h.js +0 -1
- package/web/app/immutable/chunks/BrVvVCxw.js +0 -1
- package/web/app/immutable/chunks/ByM2DIOs.js +0 -1
- package/web/app/immutable/chunks/ByzYvvQp.js +0 -70
- package/web/app/immutable/chunks/Bz0SnIMO.js +0 -1
- package/web/app/immutable/chunks/C1IwSyrV.js +0 -99
- package/web/app/immutable/chunks/C9gL5x04.js +0 -39
- package/web/app/immutable/chunks/C9nyJoiB.js +0 -41
- package/web/app/immutable/chunks/CBV2Z_QZ.js +0 -89
- package/web/app/immutable/chunks/CDHds8o_.js +0 -3
- package/web/app/immutable/chunks/CHIHAnR-.js +0 -1
- package/web/app/immutable/chunks/CHj2oCmD.js +0 -39
- package/web/app/immutable/chunks/CIXNMjfT.js +0 -206
- package/web/app/immutable/chunks/CKFDW9cI.js +0 -24
- package/web/app/immutable/chunks/CKQlE_M1.js +0 -88
- package/web/app/immutable/chunks/CSBhPNbN.js +0 -206
- package/web/app/immutable/chunks/CSLTsum9.js +0 -38
- package/web/app/immutable/chunks/CSbiiZpm.js +0 -354
- package/web/app/immutable/chunks/CToDhNW4.js +0 -1
- package/web/app/immutable/chunks/CYFK9YEX.js +0 -168
- package/web/app/immutable/chunks/CcGF51wP.js +0 -1
- package/web/app/immutable/chunks/Cd5vVJw4.js +0 -292
- package/web/app/immutable/chunks/CgjSMAIJ.js +0 -120
- package/web/app/immutable/chunks/Ck7B90Kr.js +0 -38
- package/web/app/immutable/chunks/CkAILno9.js +0 -62
- package/web/app/immutable/chunks/CkawHIFZ.js +0 -1
- package/web/app/immutable/chunks/ClXr1b-t.js +0 -8
- package/web/app/immutable/chunks/CmWBRPmR.js +0 -24
- package/web/app/immutable/chunks/Cmo-9vFV.js +0 -1
- package/web/app/immutable/chunks/CoFCa7Mb.js +0 -231
- package/web/app/immutable/chunks/CrcLvVto.js +0 -84
- package/web/app/immutable/chunks/Cs_Q6mos.js +0 -1
- package/web/app/immutable/chunks/CsnLwu9F.js +0 -2
- package/web/app/immutable/chunks/CuYeKLE8.js +0 -8
- package/web/app/immutable/chunks/CvOaoHrI.js +0 -1
- package/web/app/immutable/chunks/CvYzv8kf.js +0 -1
- package/web/app/immutable/chunks/CxRm1vYn.js +0 -342
- package/web/app/immutable/chunks/CyfBUrNA.js +0 -1
- package/web/app/immutable/chunks/D1QKDDLH.js +0 -1
- package/web/app/immutable/chunks/D61DwhDw.js +0 -3
- package/web/app/immutable/chunks/DBAJPVI_.js +0 -1
- package/web/app/immutable/chunks/DBt8jmEX.js +0 -40
- package/web/app/immutable/chunks/DD-T_Om0.js +0 -178
- package/web/app/immutable/chunks/DEOiJZFa.js +0 -168
- package/web/app/immutable/chunks/DHW4IXFj.js +0 -36
- package/web/app/immutable/chunks/DJ0w8Oax.js +0 -129
- package/web/app/immutable/chunks/DJ52BT20.js +0 -1
- package/web/app/immutable/chunks/DK1048Bw.js +0 -129
- package/web/app/immutable/chunks/DZ0nrC9W.js +0 -162
- package/web/app/immutable/chunks/DeRneTJF.js +0 -106
- package/web/app/immutable/chunks/Df6EnPla.js +0 -4
- package/web/app/immutable/chunks/DfMKUxMU.js +0 -30
- package/web/app/immutable/chunks/DkH3yb1j.js +0 -34
- package/web/app/immutable/chunks/Doxgswr3.js +0 -4
- package/web/app/immutable/chunks/Dt53cexP.js +0 -1
- package/web/app/immutable/chunks/Dx6eBL0x.js +0 -1
- package/web/app/immutable/chunks/HP7Asd0t.js +0 -2
- package/web/app/immutable/chunks/HP8lGamR.js +0 -257
- package/web/app/immutable/chunks/HzpfURmp.js +0 -84
- package/web/app/immutable/chunks/PJfe_iA1.js +0 -1
- package/web/app/immutable/chunks/PXMyYXQv.js +0 -1
- package/web/app/immutable/chunks/Qi3HrsAm.js +0 -1
- package/web/app/immutable/chunks/S1FanOB0.js +0 -162
- package/web/app/immutable/chunks/SuMU9B9i.js +0 -1
- package/web/app/immutable/chunks/UaGv-ChR.js +0 -257
- package/web/app/immutable/chunks/YqyEOqRv.js +0 -178
- package/web/app/immutable/chunks/_MGNV7ZN.js +0 -338
- package/web/app/immutable/chunks/_lZu5Dth.js +0 -292
- package/web/app/immutable/chunks/gzjZWAx8.js +0 -62
- package/web/app/immutable/chunks/hqSEunOk.js +0 -15
- package/web/app/immutable/chunks/nGCCQCpO.js +0 -1
- package/web/app/immutable/chunks/o-kBqlaj.js +0 -7
- package/web/app/immutable/chunks/opO2fBQB.js +0 -1
- package/web/app/immutable/chunks/pdFamTTi.js +0 -7
- package/web/app/immutable/chunks/rEI8JpP3.js +0 -1
- package/web/app/immutable/chunks/s5P9UVzf.js +0 -1
- package/web/app/immutable/chunks/sIHUXgeh.js +0 -41
- package/web/app/immutable/entry/start.CCtO40vu.js +0 -1
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import{K as de,aF as fe,O as he,aI as me,L as ke,aG as ye,a as l,N as mt,r as ge,ad as lt,p as pe,k as ve,aA as ee,aB as Te,aV as xe}from"./CSbiiZpm.js";import{c3 as bt,g as Y,h as ut,_ as Ct}from"./CxRm1vYn.js";import{t as be,d as we,m as _e,i as De,a as Se,f as Bt,l as qt,o as Ce,n as Me,g as Ee,p as Ie,r as Ye,q as $e,k as Le,e as Gt,h as Xt,j as Ut,s as Zt,c as Qt,b as Ae}from"./BKSgn5w-.js";import{l as Fe}from"./DJ52BT20.js";var Oe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isoWeek.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=e()})(t,(function(){var i="day";return function(e,a,g){var p=Y(function(F){return F.add(4-F.isoWeekday(),i)},"a"),b=a.prototype;b.isoWeekYear=function(){return p(this).year()},b.isoWeek=function(F){if(!this.$utils().u(F))return this.add(7*(F-this.isoWeek()),i);var w,V,O,z,U=p(this),N=(w=this.isoWeekYear(),V=this.$u,O=(V?g.utc:g)().year(w).startOf("year"),z=4-O.isoWeekday(),O.isoWeekday()>4&&(z+=7),O.add(z,i));return U.diff(N,"week")+1},b.isoWeekday=function(F){return this.$utils().u(F)?this.day()||7:this.day(this.day()%7?F:F-7)};var A=b.startOf;b.startOf=function(F,w){var V=this.$utils(),O=!!V.u(w)||w;return V.p(F)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):A.bind(this)(F,w)}}}))}}),We=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=e()})(t,(function(){var i={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,g=/\d\d/,p=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,A={},F=Y(function(k){return(k=+k)+(k>68?1900:2e3)},"a"),w=Y(function(k){return function(D){this[k]=+D}},"f"),V=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(D){if(!D||D==="Z")return 0;var W=D.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L})(k)}],O=Y(function(k){var D=A[k];return D&&(D.indexOf?D:D.s.concat(D.f))},"u"),z=Y(function(k,D){var W,L=A.meridiem;if(L){for(var q=1;q<=24;q+=1)if(k.indexOf(L(q,0,D))>-1){W=q>12;break}}else W=k===(D?"pm":"PM");return W},"d"),U={A:[b,function(k){this.afternoon=z(k,!1)}],a:[b,function(k){this.afternoon=z(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[p,w("seconds")],ss:[p,w("seconds")],m:[p,w("minutes")],mm:[p,w("minutes")],H:[p,w("hours")],h:[p,w("hours")],HH:[p,w("hours")],hh:[p,w("hours")],D:[p,w("day")],DD:[g,w("day")],Do:[b,function(k){var D=A.ordinal,W=k.match(/\d+/);if(this.day=W[0],D)for(var L=1;L<=31;L+=1)D(L).replace(/\[|\]/g,"")===k&&(this.day=L)}],w:[p,w("week")],ww:[g,w("week")],M:[p,w("month")],MM:[g,w("month")],MMM:[b,function(k){var D=O("months"),W=(O("monthsShort")||D.map((function(L){return L.slice(0,3)}))).indexOf(k)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[b,function(k){var D=O("months").indexOf(k)+1;if(D<1)throw new Error;this.month=D%12||D}],Y:[/[+-]?\d+/,w("year")],YY:[g,function(k){this.year=F(k)}],YYYY:[/\d{4}/,w("year")],Z:V,ZZ:V};function N(k){var D,W;D=k,W=A&&A.formats;for(var L=(k=D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(m,T,v){var y=v&&v.toUpperCase();return T||W[v]||i[v]||W[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(r,d,f){return d||f.slice(1)}))}))).match(e),q=L.length,B=0;B<q;B+=1){var $=L[B],x=U[$],h=x&&x[0],I=x&&x[1];L[B]=I?{regex:h,parser:I}:$.replace(/^\[|\]$/g,"")}return function(m){for(var T={},v=0,y=0;v<q;v+=1){var r=L[v];if(typeof r=="string")y+=r.length;else{var d=r.regex,f=r.parser,u=m.slice(y),_=d.exec(u)[0];f.call(T,_),m=m.replace(_,"")}}return(function(n){var S=n.afternoon;if(S!==void 0){var o=n.hours;S?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return Y(N,"l"),function(k,D,W){W.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(F=k.parseTwoDigitYear);var L=D.prototype,q=L.parse;L.parse=function(B){var $=B.date,x=B.utc,h=B.args;this.$u=x;var I=h[1];if(typeof I=="string"){var m=h[2]===!0,T=h[3]===!0,v=m||T,y=h[2];T&&(y=h[2]),A=this.$locale(),!m&&y&&(A=W.Ls[y]),this.$d=(function(u,_,n,S){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*u);var o=N(_)(u),H=o.year,c=o.month,C=o.day,M=o.hours,R=o.minutes,E=o.seconds,j=o.milliseconds,P=o.zone,nt=o.week,at=new Date,ft=C||(H||c?1:at.getDate()),ot=H||at.getFullYear(),G=0;H&&!c||(G=c>0?c-1:at.getMonth());var K,Z=M||0,ct=R||0,tt=E||0,rt=j||0;return P?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt+60*P.offset*1e3)):n?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt)):(K=new Date(ot,G,ft,Z,ct,tt,rt),nt&&(K=S(K).week(nt).toDate()),K)}catch{return new Date("")}})($,I,x,W),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),v&&$!=this.format(I)&&(this.$d=new Date("")),A={}}else if(I instanceof Array)for(var r=I.length,d=1;d<=r;d+=1){h[1]=I[d-1];var f=W.apply(this,h);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}d===r&&(this.$d=new Date(""))}else q.call(this,B)}}}))}}),Pe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=e()})(t,(function(){return function(i,e){var a=e.prototype,g=a.format;a.format=function(p){var b=this,A=this.$locale();if(!this.isValid())return g.bind(this)(p);var F=this.$utils(),w=(p||"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(V){switch(V){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return A.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return A.ordinal(b.week(),"W");case"w":case"ww":return F.s(b.week(),V==="w"?1:2,"0");case"W":case"WW":return F.s(b.isoWeek(),V==="W"?1:2,"0");case"k":case"kk":return F.s(String(b.$H===0?24:b.$H),V==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return V}}));return g.bind(this)(w)}}}))}}),Ve=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/duration.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=e()})(t,(function(){var i,e,a=1e3,g=6e4,p=36e5,b=864e5,A=31536e6,F=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,V=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:A,months:F,days:b,hours:p,minutes:g,seconds:a,milliseconds:1,weeks:6048e5},z=Y(function($){return $ instanceof q},"c"),U=Y(function($,x,h){return new q($,h,x.$l)},"f"),N=Y(function($){return e.p($)+"s"},"m"),k=Y(function($){return $<0},"l"),D=Y(function($){return k($)?Math.ceil($):Math.floor($)},"$"),W=Y(function($){return Math.abs($)},"y"),L=Y(function($,x){return $?k($)?{negative:!0,format:""+W($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},"v"),q=(function(){function $(h,I,m){var T=this;if(this.$d={},this.$l=m,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return U(h*O[N(I)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(r){T.$d[N(r)]=h[r]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(w);if(v){var y=v.slice(2).map((function(r){return r!=null?Number(r):0}));return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}Y($,"l");var x=$.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(I,m){return I+(h.$d[m]||0)*O[m]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=D(h/A),h%=A,this.$d.months=D(h/F),h%=F,this.$d.days=D(h/b),h%=b,this.$d.hours=D(h/p),h%=p,this.$d.minutes=D(h/g),h%=g,this.$d.seconds=D(h/a),h%=a,this.$d.milliseconds=h},x.toISOString=function(){var h=L(this.$d.years,"Y"),I=L(this.$d.months,"M"),m=+this.$d.days||0;this.$d.weeks&&(m+=7*this.$d.weeks);var T=L(m,"D"),v=L(this.$d.hours,"H"),y=L(this.$d.minutes,"M"),r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3,r=Math.round(1e3*r)/1e3);var d=L(r,"S"),f=h.negative||I.negative||T.negative||v.negative||y.negative||d.negative,u=v.format||y.format||d.format?"T":"",_=(f?"-":"")+"P"+h.format+I.format+T.format+u+v.format+y.format+d.format;return _==="P"||_==="-P"?"P0D":_},x.toJSON=function(){return this.toISOString()},x.format=function(h){var I=h||"YYYY-MM-DDTHH:mm:ss",m={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return I.replace(V,(function(T,v){return v||String(m[T])}))},x.as=function(h){return this.$ms/O[N(h)]},x.get=function(h){var I=this.$ms,m=N(h);return m==="milliseconds"?I%=1e3:I=m==="weeks"?D(I/O[m]):this.$d[m],I||0},x.add=function(h,I,m){var T;return T=I?h*O[N(I)]:z(h)?h.$ms:U(h,this).$ms,U(this.$ms+T*(m?-1:1),this)},x.subtract=function(h,I){return this.add(h,I,!0)},x.locale=function(h){var I=this.clone();return I.$l=h,I},x.clone=function(){return U(this.$ms,this)},x.humanize=function(h){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$})(),B=Y(function($,x,h){return $.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")},"p");return function($,x,h){i=h,e=h().$utils(),h.duration=function(T,v){var y=h.locale();return U(T,{$l:y},v)},h.isDuration=z;var I=x.prototype.add,m=x.prototype.subtract;x.prototype.add=function(T,v){return z(T)?B(this,T,1):I.bind(this)(T,v)},x.prototype.subtract=function(T,v){return z(T)?B(this,T,-1):m.bind(this)(T,v)}}}))}}),Re=ut(Te()),J=ut(ee()),ze=ut(Oe()),Ne=ut(We()),je=ut(Pe()),vt=ut(ee()),He=ut(Ve()),Yt=(function(){var t=l(function(y,r,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=r);return d},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],e=[1,27],a=[1,28],g=[1,29],p=[1,30],b=[1,31],A=[1,32],F=[1,33],w=[1,34],V=[1,9],O=[1,10],z=[1,11],U=[1,12],N=[1,13],k=[1,14],D=[1,15],W=[1,16],L=[1,19],q=[1,20],B=[1,21],$=[1,22],x=[1,23],h=[1,25],I=[1,35],m={trace:l(Y(function(){},"trace"),"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:l(Y(function(r,d,f,u,_,n,S){var o=n.length-1;switch(_){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:A,19:18,20:F,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:A,19:18,20:F,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:l(Y(function(r,d){if(d.recoverable)this.trace(r);else{var f=new Error(r);throw f.hash=d,f}},"parseError"),"parseError"),parse:l(Y(function(r){var d=this,f=[0],u=[],_=[null],n=[],S=this.table,o="",H=0,c=0,C=2,M=1,R=n.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(j.yy[P]=this.yy[P]);E.setInput(r,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var nt=E.yylloc;n.push(nt);var at=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Q){f.length=f.length-2*Q,_.length=_.length-Q,n.length=n.length-Q}Y(ft,"popStack"),l(ft,"popStack");function ot(){var Q;return Q=u.pop()||E.lex()||M,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}Y(ot,"lex"),l(ot,"lex");for(var G,K,Z,ct,tt={},rt,et,Ht,xt;;){if(K=f[f.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((G===null||typeof G>"u")&&(G=ot()),Z=S[K]&&S[K][G]),typeof Z>"u"||!Z.length||!Z[0]){var Et="";xt=[];for(rt in S[K])this.terminals_[rt]&&rt>C&&xt.push("'"+this.terminals_[rt]+"'");E.showPosition?Et="Parse error on line "+(H+1)+`:
|
|
2
|
-
`+E.showPosition()+`
|
|
3
|
-
Expecting `+xt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Et="Parse error on line "+(H+1)+": Unexpected "+(G==M?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Et,{text:E.match,token:this.terminals_[G]||G,line:E.yylineno,loc:nt,expected:xt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+G);switch(Z[0]){case 1:f.push(G),_.push(E.yytext),n.push(E.yylloc),f.push(Z[1]),G=null,c=E.yyleng,o=E.yytext,H=E.yylineno,nt=E.yylloc;break;case 2:if(et=this.productions_[Z[1]][1],tt.$=_[_.length-et],tt._$={first_line:n[n.length-(et||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(et||1)].first_column,last_column:n[n.length-1].last_column},at&&(tt._$.range=[n[n.length-(et||1)].range[0],n[n.length-1].range[1]]),ct=this.performAction.apply(tt,[o,c,H,j.yy,Z[1],_,n].concat(R)),typeof ct<"u")return ct;et&&(f=f.slice(0,-1*et*2),_=_.slice(0,-1*et),n=n.slice(0,-1*et)),f.push(this.productions_[Z[1]][0]),_.push(tt.$),n.push(tt._$),Ht=S[f[f.length-2]][f[f.length-1]],f.push(Ht);break;case 3:return!0}}return!0},"parse"),"parse")},T=(function(){var y={EOF:1,parseError:l(Y(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),"parseError"),setInput:l(function(r,d){return this.yy=d||this.yy||{},this._input=r,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:l(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var d=r.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:l(function(r){var d=r.length,f=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),f.length-1&&(this.yylineno-=f.length-1);var _=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:f?(f.length===u.length?this.yylloc.first_column:0)+u[u.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(r){this.unput(this.match.slice(r))},"less"),pastInput:l(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var r=this.pastInput(),d=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
-
`+d+"^"},"showPosition"),test_match:l(function(r,d){var f,u,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),u=r[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],f=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var n in _)this[n]=_[n];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,d,f,u;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),n=0;n<_.length;n++)if(f=this._input.match(this.rules[_[n]]),f&&(!d||f[0].length>d[0].length)){if(d=f,u=n,this.options.backtrack_lexer){if(r=this.test_match(f,_[n]),r!==!1)return r;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(r=this.test_match(d,_[u]),r!==!1?r:!1):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:l(Y(function(){var d=this.next();return d||this.lex()},"lex"),"lex"),begin:l(Y(function(d){this.conditionStack.push(d)},"begin"),"begin"),popState:l(Y(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:l(Y(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"),"_currentRules"),topState:l(Y(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),"topState"),pushState:l(Y(function(d){this.begin(d)},"pushState"),"pushState"),stateStackSize:l(Y(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:l(Y(function(d,f,u,_){switch(u){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"),"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 y})();m.lexer=T;function v(){this.yy={}}return Y(v,"Parser"),l(v,"Parser"),v.prototype=m,m.Parser=v,new v})();Yt.parser=Yt;var Be=Yt;J.default.extend(ze.default);J.default.extend(Ne.default);J.default.extend(je.default);var Kt={friday:5,saturday:6},st="",Ft="",Ot=void 0,Wt="",yt=[],gt=[],Pt=new Map,Vt=[],Dt=[],pt="",Rt="",se=["active","done","crit","milestone","vert"],zt=[],ht="",Tt=!1,Nt=!1,jt="sunday",St="saturday",$t=0,qe=l(function(){Vt=[],Dt=[],pt="",zt=[],wt=0,At=void 0,_t=void 0,X=[],st="",Ft="",Rt="",Ot=void 0,Wt="",yt=[],gt=[],Tt=!1,Nt=!1,$t=0,Pt=new Map,ht="",ve(),jt="sunday",St="saturday"},"clear"),Ge=l(function(t){ht=t},"setDiagramId"),Xe=l(function(t){Ft=t},"setAxisFormat"),Ue=l(function(){return Ft},"getAxisFormat"),Ze=l(function(t){Ot=t},"setTickInterval"),Qe=l(function(){return Ot},"getTickInterval"),Ke=l(function(t){Wt=t},"setTodayMarker"),Je=l(function(){return Wt},"getTodayMarker"),ts=l(function(t){st=t},"setDateFormat"),es=l(function(){Tt=!0},"enableInclusiveEndDates"),ss=l(function(){return Tt},"endDatesAreInclusive"),is=l(function(){Nt=!0},"enableTopAxis"),ns=l(function(){return Nt},"topAxisEnabled"),rs=l(function(t){Rt=t},"setDisplayMode"),as=l(function(){return Rt},"getDisplayMode"),os=l(function(){return st},"getDateFormat"),ie=l((t,s)=>{const i=s.toLowerCase().split(/[\s,]+/).filter(e=>e!=="");return[...new Set([...t,...i])]},"mergeTokens"),cs=l(function(t){yt=ie(yt,t)},"setIncludes"),ls=l(function(){return yt},"getIncludes"),us=l(function(t){gt=ie(gt,t)},"setExcludes"),ds=l(function(){return gt},"getExcludes"),fs=l(function(){return Pt},"getLinks"),hs=l(function(t){pt=t,Vt.push(t)},"addSection"),ms=l(function(){return Vt},"getSections"),ks=l(function(){let t=Jt();const s=10;let i=0;for(;!t&&i<s;)t=Jt(),i++;return Dt=X,Dt},"getTasks"),ne=l(function(t,s,i,e){const a=t.format(s.trim()),g=t.format("YYYY-MM-DD");return e.includes(a)||e.includes(g)?!1:i.includes("weekends")&&(t.isoWeekday()===Kt[St]||t.isoWeekday()===Kt[St]+1)||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(a)||i.includes(g)},"isInvalidDate"),ys=l(function(t){jt=t},"setWeekday"),gs=l(function(){return jt},"getWeekday"),ps=l(function(t){St=t},"setWeekend"),re=l(function(t,s,i,e){if(!i.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=(0,J.default)(t.startTime):a=(0,J.default)(t.startTime,s,!0),a=a.add(1,"d");let g;t.endTime instanceof Date?g=(0,J.default)(t.endTime):g=(0,J.default)(t.endTime,s,!0);const[p,b]=vs(a,g,s,i,e);t.endTime=p.toDate(),t.renderEndTime=b},"checkTaskDates"),vs=l(function(t,s,i,e,a){let g=!1,p=null;const b=s.add(1e4,"d");for(;t<=s;){if(g||(p=s.toDate()),g=ne(t,i,e,a),g&&(s=s.add(1,"d"),s>b))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[s,p]},"fixTaskDates"),Lt=l(function(t,s,i){if(i=i.trim(),l(b=>{const A=b.trim();return A==="x"||A==="X"},"isTimestampFormat")(s)&&/^\d+$/.test(i))return new Date(Number(i));const g=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let b=null;for(const F of g.groups.ids.split(" ")){let w=dt(F);w!==void 0&&(!b||w.endTime>b.endTime)&&(b=w)}if(b)return b.endTime;const A=new Date;return A.setHours(0,0,0,0),A}let p=(0,J.default)(i,s.trim(),!0);if(p.isValid())return p.toDate();{lt.debug("Invalid date:"+i),lt.debug("With date format:"+s.trim());const b=new Date(i);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+i);return b}},"getStartDate"),ae=l(function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},"parseDuration"),oe=l(function(t,s,i,e=!1){i=i.trim();const g=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let w=null;for(const O of g.groups.ids.split(" ")){let z=dt(O);z!==void 0&&(!w||z.startTime<w.startTime)&&(w=z)}if(w)return w.startTime;const V=new Date;return V.setHours(0,0,0,0),V}let p=(0,J.default)(i,s.trim(),!0);if(p.isValid())return e&&(p=p.add(1,"d")),p.toDate();let b=(0,J.default)(t);const[A,F]=ae(i);if(!Number.isNaN(A)){const w=b.add(A,F);w.isValid()&&(b=w)}return b.toDate()},"getEndDate"),wt=0,kt=l(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),Ts=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let p=0;p<e.length;p++)e[p]=e[p].trim();let g="";switch(e.length){case 1:a.id=kt(),a.startTime=t.endTime,g=e[0];break;case 2:a.id=kt(),a.startTime=Lt(void 0,st,e[0]),g=e[1];break;case 3:a.id=kt(e[0]),a.startTime=Lt(void 0,st,e[1]),g=e[2];break}return g&&(a.endTime=oe(a.startTime,st,g,Tt),a.manualEndTime=(0,J.default)(g,"YYYY-MM-DD",!0).isValid(),re(a,st,gt,yt)),a},"compileData"),xs=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let g=0;g<e.length;g++)e[g]=e[g].trim();switch(e.length){case 1:a.id=kt(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:e[0]};break;case 2:a.id=kt(),a.startTime={type:"getStartDate",startData:e[0]},a.endTime={data:e[1]};break;case 3:a.id=kt(e[0]),a.startTime={type:"getStartDate",startData:e[1]},a.endTime={data:e[2]};break}return a},"parseData"),At,_t,X=[],ce={},bs=l(function(t,s){const i={section:pt,type:pt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},e=xs(_t,s);i.raw.startTime=e.startTime,i.raw.endTime=e.endTime,i.id=e.id,i.prevTaskId=_t,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,i.vert?i.order=-1:(i.order=$t,$t++);const a=X.push(i);_t=i.id,ce[i.id]=a-1},"addTask"),dt=l(function(t){const s=ce[t];return X[s]},"findTaskById"),ws=l(function(t,s){const i={section:pt,type:pt,description:t,task:t,classes:[]},e=Ts(At,s);i.startTime=e.startTime,i.endTime=e.endTime,i.id=e.id,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,At=i,Dt.push(i)},"addTaskOrg"),Jt=l(function(){const t=l(function(i){const e=X[i];let a="";switch(X[i].raw.startTime.type){case"prevTaskEnd":{const g=dt(e.prevTaskId);e.startTime=g.endTime;break}case"getStartDate":a=Lt(void 0,st,X[i].raw.startTime.startData),a&&(X[i].startTime=a);break}return X[i].startTime&&(X[i].endTime=oe(X[i].startTime,st,X[i].raw.endTime.data,Tt),X[i].endTime&&(X[i].processed=!0,X[i].manualEndTime=(0,J.default)(X[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),re(X[i],st,gt,yt))),X[i].processed},"compileTask");let s=!0;for(const[i,e]of X.entries())t(i),s=s&&e.processed;return s},"compileTasks"),_s=l(function(t,s){let i=s;mt().securityLevel!=="loose"&&(i=(0,Re.sanitizeUrl)(s)),t.split(",").forEach(function(e){dt(e)!==void 0&&(ue(e,()=>{window.open(i,"_self")}),Pt.set(e,i))}),le(t,"clickable")},"setLink"),le=l(function(t,s){t.split(",").forEach(function(i){let e=dt(i);e!==void 0&&e.classes.push(s)})},"setClass"),Ds=l(function(t,s,i){if(mt().securityLevel!=="loose"||s===void 0)return;let e=[];if(typeof i=="string"){e=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<e.length;g++){let p=e[g].trim();p.startsWith('"')&&p.endsWith('"')&&(p=p.substr(1,p.length-2)),e[g]=p}}e.length===0&&e.push(t),dt(t)!==void 0&&ue(t,()=>{xe.runFunc(s,...e)})},"setClickFun"),ue=l(function(t,s){zt.push(function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}"]`);e!==null&&e.addEventListener("click",function(){s()})},function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}-text"]`);e!==null&&e.addEventListener("click",function(){s()})})},"pushFun"),Ss=l(function(t,s,i){t.split(",").forEach(function(e){Ds(e,s,i)}),le(t,"clickable")},"setClickEvent"),Cs=l(function(t){zt.forEach(function(s){s(t)})},"bindFunctions"),Ms={getConfig:l(()=>mt().gantt,"getConfig"),clear:qe,setDateFormat:ts,getDateFormat:os,enableInclusiveEndDates:es,endDatesAreInclusive:ss,enableTopAxis:is,topAxisEnabled:ns,setAxisFormat:Xe,getAxisFormat:Ue,setTickInterval:Ze,getTickInterval:Qe,setTodayMarker:Ke,getTodayMarker:Je,setAccTitle:ye,getAccTitle:ke,setDiagramTitle:me,getDiagramTitle:he,setDiagramId:Ge,setDisplayMode:rs,getDisplayMode:as,setAccDescription:fe,getAccDescription:de,addSection:hs,getSections:ms,getTasks:ks,addTask:bs,findTaskById:dt,addTaskOrg:ws,setIncludes:cs,getIncludes:ls,setExcludes:us,getExcludes:ds,setClickEvent:Ss,setLink:_s,getLinks:fs,bindFunctions:Cs,parseDuration:ae,isInvalidDate:ne,setWeekday:ys,getWeekday:gs,setWeekend:ps};function Mt(t,s,i){let e=!0;for(;e;)e=!1,i.forEach(function(a){const g="^\\s*"+a+"\\s*$",p=new RegExp(g);t[0].match(p)&&(s[a]=!0,t.shift(1),e=!0)})}Y(Mt,"getTaskTags");l(Mt,"getTaskTags");vt.default.extend(He.default);var Es=l(function(){lt.debug("Something is calling, setConf, remove the call")},"setConf"),te={monday:Le,tuesday:$e,wednesday:Ye,thursday:Ie,friday:Ee,saturday:Me,sunday:Ce},Is=l((t,s)=>{let i=[...t].map(()=>-1/0),e=[...t].sort((g,p)=>g.startTime-p.startTime||g.order-p.order),a=0;for(const g of e)for(let p=0;p<i.length;p++)if(g.startTime>=i[p]){i[p]=g.endTime,g.order=p+s,p>a&&(a=p);break}return a},"getMaxIntersections"),it,It=1e4,Ys=l(function(t,s,i,e){const a=mt().gantt;e.db.setDiagramId(s);const g=mt().securityLevel;let p;g==="sandbox"&&(p=bt("#i"+s));const b=g==="sandbox"?bt(p.nodes()[0].contentDocument.body):bt("body"),A=g==="sandbox"?p.nodes()[0].contentDocument:document,F=A.getElementById(s);it=F.parentElement.offsetWidth,it===void 0&&(it=1200),a.useWidth!==void 0&&(it=a.useWidth);const w=e.db.getTasks(),V=w.filter(m=>!m.vert);let O=[];for(const m of V)O.push(m.type);O=I(O);const z={};let U=2*a.topPadding;if(e.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const m={};for(const v of V)m[v.section]===void 0?m[v.section]=[v]:m[v.section].push(v);let T=0;for(const v of Object.keys(m)){const y=Is(m[v],T)+1;T+=y,U+=y*(a.barHeight+a.barGap),z[v]=y}}else{U+=V.length*(a.barHeight+a.barGap);for(const m of O)z[m]=V.filter(T=>T.type===m).length}F.setAttribute("viewBox","0 0 "+it+" "+U);const N=b.select(`[id="${s}"]`),k=be().domain([we(w,function(m){return m.startTime}),_e(w,function(m){return m.endTime})]).rangeRound([0,it-a.leftPadding-a.rightPadding]);function D(m,T){const v=m.startTime,y=T.startTime;let r=0;return v>y?r=1:v<y&&(r=-1),r}Y(D,"taskCompare"),l(D,"taskCompare"),w.sort(D),W(w,it,U),ge(N,U,it,a.useMaxWidth),N.append("text").text(e.db.getDiagramTitle()).attr("x",it/2).attr("y",a.titleTopMargin).attr("class","titleText");function W(m,T,v){const y=a.barHeight,r=y+a.barGap,d=a.topPadding,f=a.leftPadding,u=Fe().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(De);q(r,d,f,T,v,m,e.db.getExcludes(),e.db.getIncludes()),$(f,d,T,v),L(m,r,d,f,y,u,T),x(r,d),h(f,d,T,v)}Y(W,"makeGantt"),l(W,"makeGantt");function L(m,T,v,y,r,d,f){m.sort((c,C)=>c.vert===C.vert?0:c.vert?1:-1);const u=m.filter(c=>!c.vert),n=[...new Set(u.map(c=>c.order))].map(c=>u.find(C=>C.order===c));N.append("g").selectAll("rect").data(n).enter().append("rect").attr("x",0).attr("y",function(c,C){return C=c.order,C*T+v-2}).attr("width",function(){return f-a.rightPadding/2}).attr("height",T).attr("class",function(c){for(const[C,M]of O.entries())if(c.type===M)return"section section"+C%a.numberSectionStyles;return"section section0"}).enter();const S=N.append("g").selectAll("rect").data(m).enter(),o=e.db.getLinks();if(S.append("rect").attr("id",function(c){return s+"-"+c.id}).attr("rx",3).attr("ry",3).attr("x",function(c){return c.milestone?k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))-.5*r:k(c.startTime)+y}).attr("y",function(c,C){return C=c.order,c.vert?a.gridLineStartPadding:C*T+v}).attr("width",function(c){return c.milestone?r:c.vert?.08*r:k(c.renderEndTime||c.endTime)-k(c.startTime)}).attr("height",function(c){return c.vert?u.length*(a.barHeight+a.barGap)+a.barHeight*2:r}).attr("transform-origin",function(c,C){return C=c.order,(k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))).toString()+"px "+(C*T+v+.5*r).toString()+"px"}).attr("class",function(c){const C="task";let M="";c.classes.length>0&&(M=c.classes.join(" "));let R=0;for(const[j,P]of O.entries())c.type===P&&(R=j%a.numberSectionStyles);let E="";return c.active?c.crit?E+=" activeCrit":E=" active":c.done?c.crit?E=" doneCrit":E=" done":c.crit&&(E+=" crit"),E.length===0&&(E=" task"),c.milestone&&(E=" milestone "+E),c.vert&&(E=" vert "+E),E+=R,E+=" "+M,C+E}),S.append("text").attr("id",function(c){return s+"-"+c.id+"-text"}).text(function(c){return c.task}).attr("font-size",a.fontSize).attr("x",function(c){let C=k(c.startTime),M=k(c.renderEndTime||c.endTime);if(c.milestone&&(C+=.5*(k(c.endTime)-k(c.startTime))-.5*r,M=C+r),c.vert)return k(c.startTime)+y;const R=this.getBBox().width;return R>M-C?M+R+1.5*a.leftPadding>f?C+y-5:M+y+5:(M-C)/2+C+y}).attr("y",function(c,C){return c.vert?a.gridLineStartPadding+u.length*(a.barHeight+a.barGap)+60:(C=c.order,C*T+a.barHeight/2+(a.fontSize/2-2)+v)}).attr("text-height",r).attr("class",function(c){const C=k(c.startTime);let M=k(c.endTime);c.milestone&&(M=C+r);const R=this.getBBox().width;let E="";c.classes.length>0&&(E=c.classes.join(" "));let j=0;for(const[nt,at]of O.entries())c.type===at&&(j=nt%a.numberSectionStyles);let P="";return c.active&&(c.crit?P="activeCritText"+j:P="activeText"+j),c.done?c.crit?P=P+" doneCritText"+j:P=P+" doneText"+j:c.crit&&(P=P+" critText"+j),c.milestone&&(P+=" milestoneText"),c.vert&&(P+=" vertText"),R>M-C?M+R+1.5*a.leftPadding>f?E+" taskTextOutsideLeft taskTextOutside"+j+" "+P:E+" taskTextOutsideRight taskTextOutside"+j+" "+P+" width-"+R:E+" taskText taskText"+j+" "+P+" width-"+R}),mt().securityLevel==="sandbox"){let c;c=bt("#i"+s);const C=c.nodes()[0].contentDocument;S.filter(function(M){return o.has(M.id)}).each(function(M){var R=C.querySelector("#"+CSS.escape(s+"-"+M.id)),E=C.querySelector("#"+CSS.escape(s+"-"+M.id+"-text"));const j=R.parentNode;var P=C.createElement("a");P.setAttribute("xlink:href",o.get(M.id)),P.setAttribute("target","_top"),j.appendChild(P),P.appendChild(R),P.appendChild(E)})}}Y(L,"drawRects"),l(L,"drawRects");function q(m,T,v,y,r,d,f,u){if(f.length===0&&u.length===0)return;let _,n;for(const{startTime:M,endTime:R}of d)(_===void 0||M<_)&&(_=M),(n===void 0||R>n)&&(n=R);if(!_||!n)return;if((0,vt.default)(n).diff((0,vt.default)(_),"year")>5){lt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const S=e.db.getDateFormat(),o=[];let H=null,c=(0,vt.default)(_);for(;c.valueOf()<=n;)e.db.isInvalidDate(c,S,f,u)?H?H.end=c:H={start:c,end:c}:H&&(o.push(H),H=null),c=c.add(1,"d");N.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",M=>s+"-exclude-"+M.start.format("YYYY-MM-DD")).attr("x",M=>k(M.start.startOf("day"))+v).attr("y",a.gridLineStartPadding).attr("width",M=>k(M.end.endOf("day"))-k(M.start.startOf("day"))).attr("height",r-T-a.gridLineStartPadding).attr("transform-origin",function(M,R){return(k(M.start)+v+.5*(k(M.end)-k(M.start))).toString()+"px "+(R*m+.5*r).toString()+"px"}).attr("class","exclude-range")}Y(q,"drawExcludeDays"),l(q,"drawExcludeDays");function B(m,T,v,y){if(v<=0||m>T)return 1/0;const r=T-m,d=vt.default.duration({[y??"day"]:v}).asMilliseconds();return d<=0?1/0:Math.ceil(r/d)}Y(B,"getEstimatedTickCount"),l(B,"getEstimatedTickCount");function $(m,T,v,y){const r=e.db.getDateFormat(),d=e.db.getAxisFormat();let f;d?f=d:r==="D"?f="%d":f=a.axisFormat??"%Y-%m-%d";let u=Se(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));const n=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(e.db.getTickInterval()||a.tickInterval);if(n!==null){const S=parseInt(n[1],10);if(isNaN(S)||S<=0)lt.warn(`Invalid tick interval value: "${n[1]}". Skipping custom tick interval.`);else{const o=n[2],H=e.db.getWeekday()||a.weekday,c=k.domain(),C=c[0],M=c[1],R=B(C,M,S,o);if(R>It)lt.warn(`The tick interval "${S}${o}" would generate ${R} ticks, which exceeds the maximum allowed (${It}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(o){case"millisecond":u.ticks(Qt.every(S));break;case"second":u.ticks(Zt.every(S));break;case"minute":u.ticks(Ut.every(S));break;case"hour":u.ticks(Xt.every(S));break;case"day":u.ticks(Gt.every(S));break;case"week":u.ticks(te[H].every(S));break;case"month":u.ticks(qt.every(S));break}}}if(N.append("g").attr("class","grid").attr("transform","translate("+m+", "+(y-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),e.db.topAxisEnabled()||a.topAxis){let S=Ae(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));if(n!==null){const o=parseInt(n[1],10);if(isNaN(o)||o<=0)lt.warn(`Invalid tick interval value: "${n[1]}". Skipping custom tick interval.`);else{const H=n[2],c=e.db.getWeekday()||a.weekday,C=k.domain(),M=C[0],R=C[1];if(B(M,R,o,H)<=It)switch(H){case"millisecond":S.ticks(Qt.every(o));break;case"second":S.ticks(Zt.every(o));break;case"minute":S.ticks(Ut.every(o));break;case"hour":S.ticks(Xt.every(o));break;case"day":S.ticks(Gt.every(o));break;case"week":S.ticks(te[c].every(o));break;case"month":S.ticks(qt.every(o));break}}}N.append("g").attr("class","grid").attr("transform","translate("+m+", "+T+")").call(S).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}Y($,"makeGrid"),l($,"makeGrid");function x(m,T){let v=0;const y=Object.keys(z).map(r=>[r,z[r]]);N.append("g").selectAll("text").data(y).enter().append(function(r){const d=r[0].split(pe.lineBreakRegex),f=-(d.length-1)/2,u=A.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[_,n]of d.entries()){const S=A.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttribute("alignment-baseline","central"),S.setAttribute("x","10"),_>0&&S.setAttribute("dy","1em"),S.textContent=n,u.appendChild(S)}return u}).attr("x",10).attr("y",function(r,d){if(d>0)for(let f=0;f<d;f++)return v+=y[d-1][1],r[1]*m/2+v*m+T;else return r[1]*m/2+T}).attr("font-size",a.sectionFontSize).attr("class",function(r){for(const[d,f]of O.entries())if(r[0]===f)return"sectionTitle sectionTitle"+d%a.numberSectionStyles;return"sectionTitle"})}Y(x,"vertLabels"),l(x,"vertLabels");function h(m,T,v,y){const r=e.db.getTodayMarker();if(r==="off")return;const d=N.append("g").attr("class","today"),f=new Date,u=d.append("line");u.attr("x1",k(f)+m).attr("x2",k(f)+m).attr("y1",a.titleTopMargin).attr("y2",y-a.titleTopMargin).attr("class","today"),r!==""&&u.attr("style",r.replace(/,/g,";"))}Y(h,"drawToday"),l(h,"drawToday");function I(m){const T={},v=[];for(let y=0,r=m.length;y<r;++y)Object.prototype.hasOwnProperty.call(T,m[y])||(T[m[y]]=!0,v.push(m[y]));return v}Y(I,"checkUnique"),l(I,"checkUnique")},"draw"),$s={setConf:Es,draw:Ys},Ls=l(t=>`
|
|
7
|
-
.mermaid-main-font {
|
|
8
|
-
font-family: ${t.fontFamily};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.exclude-range {
|
|
12
|
-
fill: ${t.excludeBkgColor};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.section {
|
|
16
|
-
stroke: none;
|
|
17
|
-
opacity: 0.2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.section0 {
|
|
21
|
-
fill: ${t.sectionBkgColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.section2 {
|
|
25
|
-
fill: ${t.sectionBkgColor2};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.section1,
|
|
29
|
-
.section3 {
|
|
30
|
-
fill: ${t.altSectionBkgColor};
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.sectionTitle0 {
|
|
35
|
-
fill: ${t.titleColor};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sectionTitle1 {
|
|
39
|
-
fill: ${t.titleColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.sectionTitle2 {
|
|
43
|
-
fill: ${t.titleColor};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sectionTitle3 {
|
|
47
|
-
fill: ${t.titleColor};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.sectionTitle {
|
|
51
|
-
text-anchor: start;
|
|
52
|
-
font-family: ${t.fontFamily};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* Grid and axis */
|
|
57
|
-
|
|
58
|
-
.grid .tick {
|
|
59
|
-
stroke: ${t.gridColor};
|
|
60
|
-
opacity: 0.8;
|
|
61
|
-
shape-rendering: crispEdges;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.grid .tick text {
|
|
65
|
-
font-family: ${t.fontFamily};
|
|
66
|
-
fill: ${t.textColor};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.grid path {
|
|
70
|
-
stroke-width: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/* Today line */
|
|
75
|
-
|
|
76
|
-
.today {
|
|
77
|
-
fill: none;
|
|
78
|
-
stroke: ${t.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: ${t.fontFamily};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.taskTextOutsideRight {
|
|
97
|
-
fill: ${t.taskTextDarkColor};
|
|
98
|
-
text-anchor: start;
|
|
99
|
-
font-family: ${t.fontFamily};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.taskTextOutsideLeft {
|
|
103
|
-
fill: ${t.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: ${t.taskTextClickableColor} !important;
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.taskTextOutsideLeft.clickable {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
fill: ${t.taskTextClickableColor} !important;
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.taskTextOutsideRight.clickable {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
fill: ${t.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: ${t.taskTextColor};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.task0,
|
|
143
|
-
.task1,
|
|
144
|
-
.task2,
|
|
145
|
-
.task3 {
|
|
146
|
-
fill: ${t.taskBkgColor};
|
|
147
|
-
stroke: ${t.taskBorderColor};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.taskTextOutside0,
|
|
151
|
-
.taskTextOutside2
|
|
152
|
-
{
|
|
153
|
-
fill: ${t.taskTextOutsideColor};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.taskTextOutside1,
|
|
157
|
-
.taskTextOutside3 {
|
|
158
|
-
fill: ${t.taskTextOutsideColor};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/* Active task */
|
|
163
|
-
|
|
164
|
-
.active0,
|
|
165
|
-
.active1,
|
|
166
|
-
.active2,
|
|
167
|
-
.active3 {
|
|
168
|
-
fill: ${t.activeTaskBkgColor};
|
|
169
|
-
stroke: ${t.activeTaskBorderColor};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.activeText0,
|
|
173
|
-
.activeText1,
|
|
174
|
-
.activeText2,
|
|
175
|
-
.activeText3 {
|
|
176
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* Completed task */
|
|
181
|
-
|
|
182
|
-
.done0,
|
|
183
|
-
.done1,
|
|
184
|
-
.done2,
|
|
185
|
-
.done3 {
|
|
186
|
-
stroke: ${t.doneTaskBorderColor};
|
|
187
|
-
fill: ${t.doneTaskBkgColor};
|
|
188
|
-
stroke-width: 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.doneText0,
|
|
192
|
-
.doneText1,
|
|
193
|
-
.doneText2,
|
|
194
|
-
.doneText3 {
|
|
195
|
-
fill: ${t.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: ${t.taskTextOutsideColor} !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* Tasks on the critical line */
|
|
213
|
-
|
|
214
|
-
.crit0,
|
|
215
|
-
.crit1,
|
|
216
|
-
.crit2,
|
|
217
|
-
.crit3 {
|
|
218
|
-
stroke: ${t.critBorderColor};
|
|
219
|
-
fill: ${t.critBkgColor};
|
|
220
|
-
stroke-width: 2;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.activeCrit0,
|
|
224
|
-
.activeCrit1,
|
|
225
|
-
.activeCrit2,
|
|
226
|
-
.activeCrit3 {
|
|
227
|
-
stroke: ${t.critBorderColor};
|
|
228
|
-
fill: ${t.activeTaskBkgColor};
|
|
229
|
-
stroke-width: 2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.doneCrit0,
|
|
233
|
-
.doneCrit1,
|
|
234
|
-
.doneCrit2,
|
|
235
|
-
.doneCrit3 {
|
|
236
|
-
stroke: ${t.critBorderColor};
|
|
237
|
-
fill: ${t.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: ${t.taskTextDarkColor} !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Done-crit task text outside the bar — 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: ${t.taskTextOutsideColor} !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.vert {
|
|
270
|
-
stroke: ${t.vertLineColor};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.vertText {
|
|
274
|
-
font-size: 15px;
|
|
275
|
-
text-anchor: middle;
|
|
276
|
-
fill: ${t.vertLineColor} !important;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.activeCritText0,
|
|
280
|
-
.activeCritText1,
|
|
281
|
-
.activeCritText2,
|
|
282
|
-
.activeCritText3 {
|
|
283
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.titleText {
|
|
287
|
-
text-anchor: middle;
|
|
288
|
-
font-size: 18px;
|
|
289
|
-
fill: ${t.titleColor||t.textColor};
|
|
290
|
-
font-family: ${t.fontFamily};
|
|
291
|
-
}
|
|
292
|
-
`,"getStyles"),As=Ls,Vs={parser:Be,db:Ms,renderer:$s,styles:As};export{Vs as diagram};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import{a as c,M as gt,a8 as Ct,aa as Wt,w as Pt,N as ft,ad as T,aE as Bt,an as Vt,aK as yt,_ as Ft,o as zt,k as Ot}from"./CSbiiZpm.js";import{g as k,c3 as Z}from"./CxRm1vYn.js";import{d as ct}from"./PXMyYXQv.js";var nt=(function(){var e=c(function(v,s,d,l){for(d=d||{},l=v.length;l--;d[v[l]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],h=[1,15],o=[1,16],a=[1,19],f=[1,20],g={trace:c(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:c(k(function(s,d,l,p,x,u,E){var _=u.length-1;switch(x){case 1:return u[_-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[_-1].push(u[_]),this.$=u[_-1];break;case 7:case 8:this.$=u[_];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[_].substr(6)),this.$=u[_].substr(6);break;case 12:this.$=u[_].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[_].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[_].substr(8)),this.$=u[_].substr(8);break;case 18:p.addTask(u[_],0,""),this.$=u[_];break;case 19:p.addEvent(u[_].substr(2)),this.$=u[_];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:c(k(function(s,d){if(d.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=d,l}},"parseError"),"parseError"),parse:c(k(function(s){var d=this,l=[0],p=[],x=[null],u=[],E=this.table,_="",H=0,C=0,P=2,G=1,M=u.slice.call(arguments,1),S=Object.create(this.lexer),L={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(L.yy[F]=this.yy[F]);S.setInput(s,L.yy),L.yy.lexer=S,L.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var z=S.yylloc;u.push(z);var X=S.options&&S.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(R){l.length=l.length-2*R,x.length=x.length-R,u.length=u.length-R}k(N,"popStack"),c(N,"popStack");function b(){var R;return R=p.pop()||S.lex()||G,typeof R!="number"&&(R instanceof Array&&(p=R,R=p.pop()),R=d.symbols_[R]||R),R}k(b,"lex"),c(b,"lex");for(var w,I,$,B,W={},D,V,j,q;;){if(I=l[l.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((w===null||typeof w>"u")&&(w=b()),$=E[I]&&E[I][w]),typeof $>"u"||!$.length||!$[0]){var et="";q=[];for(D in E[I])this.terminals_[D]&&D>P&&q.push("'"+this.terminals_[D]+"'");S.showPosition?et="Parse error on line "+(H+1)+`:
|
|
2
|
-
`+S.showPosition()+`
|
|
3
|
-
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(H+1)+": Unexpected "+(w==G?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:z,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+w);switch($[0]){case 1:l.push(w),x.push(S.yytext),u.push(S.yylloc),l.push($[1]),w=null,C=S.yyleng,_=S.yytext,H=S.yylineno,z=S.yylloc;break;case 2:if(V=this.productions_[$[1]][1],W.$=x[x.length-V],W._$={first_line:u[u.length-(V||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(V||1)].first_column,last_column:u[u.length-1].last_column},X&&(W._$.range=[u[u.length-(V||1)].range[0],u[u.length-1].range[1]]),B=this.performAction.apply(W,[_,C,H,L.yy,$[1],x,u].concat(M)),typeof B<"u")return B;V&&(l=l.slice(0,-1*V*2),x=x.slice(0,-1*V),u=u.slice(0,-1*V)),l.push(this.productions_[$[1]][0]),x.push(W.$),u.push(W._$),j=E[l[l.length-2]][l[l.length-1]],l.push(j);break;case 3:return!0}}return!0},"parse"),"parse")},m=(function(){var v={EOF:1,parseError:c(k(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),"parseError"),setInput:c(function(s,d){return this.yy=d||this.yy||{},this._input=s,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:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var d=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var p=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),l.length-1&&(this.yylineno-=l.length-1);var x=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
-
`+d+"^"},"showPosition"),test_match:c(function(s,d){var l,p,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),p=s[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],l=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var u in x)this[u]=x[u];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,d,l,p;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),u=0;u<x.length;u++)if(l=this._input.match(this.rules[x[u]]),l&&(!d||l[0].length>d[0].length)){if(d=l,p=u,this.options.backtrack_lexer){if(s=this.test_match(l,x[u]),s!==!1)return s;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(s=this.test_match(d,x[p]),s!==!1?s:!1):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:c(k(function(){var d=this.next();return d||this.lex()},"lex"),"lex"),begin:c(k(function(d){this.conditionStack.push(d)},"begin"),"begin"),popState:c(k(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:c(k(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"),"_currentRules"),topState:c(k(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),"topState"),pushState:c(k(function(d){this.begin(d)},"pushState"),"pushState"),stateStackSize:c(k(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:c(k(function(d,l,p,x){switch(p){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return v})();g.lexer=m;function y(){this.yy={}}return k(y,"Parser"),c(y,"Parser"),y.prototype=g,g.Parser=y,new y})();nt.parser=nt;var Gt=nt,mt={};Ft(mt,{addEvent:k(()=>$t,"addEvent"),addSection:k(()=>wt,"addSection"),addTask:k(()=>Tt,"addTask"),addTaskOrg:k(()=>Nt,"addTaskOrg"),clear:k(()=>vt,"clear"),default:k(()=>Dt,"default"),getCommonDb:k(()=>kt,"getCommonDb"),getDirection:k(()=>_t,"getDirection"),getSections:k(()=>St,"getSections"),getTasks:k(()=>Et,"getTasks"),setDirection:k(()=>bt,"setDirection")});var K="",xt=0,st="LR",it=[],J=[],U=[],kt=c(()=>zt,"getCommonDb"),vt=c(function(){it.length=0,J.length=0,K="",U.length=0,st="LR",Ot()},"clear"),bt=c(function(e){st=e},"setDirection"),_t=c(function(){return st},"getDirection"),wt=c(function(e){K=e,it.push(e)},"addSection"),St=c(function(){return it},"getSections"),Et=c(function(){let e=lt();const t=100;let n=0;for(;!e&&n<t;)e=lt(),n++;return J.push(...U),J},"getTasks"),Tt=c(function(e,t,n){const i={id:xt++,section:K,type:K,task:e,score:t||0,events:n?[n]:[]};U.push(i)},"addTask"),$t=c(function(e){U.find(n=>n.id===xt-1).events.push(e)},"addEvent"),Nt=c(function(e){const t={section:K,type:K,description:e,task:e,classes:[]};J.push(t)},"addTaskOrg"),lt=c(function(){const e=c(function(n){return U[n].processed},"compileTask");let t=!0;for(const[n,i]of U.entries())e(n),t=t&&i.processed;return t},"compileTasks"),Dt={clear:vt,getCommonDb:kt,getDirection:_t,setDirection:bt,addSection:wt,getSections:St,getTasks:Et,addTask:Tt,addTaskOrg:Nt,addEvent:$t},It=0,Q=c(function(e,t){const n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),t.class!==void 0&&n.attr("class",t.class),n},"drawRect"),Kt=c(function(e,t){const i=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=e.append("g");r.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(f){const g=ct().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}k(h,"smile"),c(h,"smile");function o(f){const g=ct().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}k(o,"sad"),c(o,"sad");function a(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return k(a,"ambivalent"),c(a,"ambivalent"),t.score>3?h(r):t.score<3?o(r):a(r),i},"drawFace"),Ut=c(function(e,t){const n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("class","actor-"+t.pos),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),n.class!==void 0&&n.attr("class",n.class),t.title!==void 0&&n.append("title").text(t.title),n},"drawCircle"),Ht=c(function(e,t){const n=t.text.replace(/<br\s*\/?>/gi," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.attr("class","legend"),i.style("text-anchor",t.anchor),t.class!==void 0&&i.attr("class",t.class);const r=i.append("tspan");return r.attr("x",t.x+t.textMargin*2),r.text(n),i},"drawText"),Xt=c(function(e,t){function n(r,h,o,a,f){return r+","+h+" "+(r+o)+","+h+" "+(r+o)+","+(h+a-f)+" "+(r+o-f*1.2)+","+(h+a)+" "+r+","+(h+a)}k(n,"genPoints"),c(n,"genPoints");const i=e.append("polygon");i.attr("points",n(t.x,t.y,50,20,7)),i.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Ht(e,t)},"drawLabel"),Zt=c(function(e,t,n){const i=e.append("g"),r=at();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,Q(i,r),Lt(n)(t.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},n,t.colour)},"drawSection"),rt=-1,jt=c(function(e,t,n,i){const r=t.x+n.width/2,h=e.append("g");rt++,h.append("line").attr("id",i+"-task"+rt).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Kt(h,{cx:r,cy:300+(5-t.score)*30,score:t.score});const a=at();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+t.num,a.rx=3,a.ry=3,Q(h,a),Lt(n)(t.task,h,a.x,a.y,a.width,a.height,{class:"task"},n,t.colour)},"drawTask"),qt=c(function(e,t){Q(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Jt=c(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),at=c(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Lt=(function(){function e(r,h,o,a,f,g,m,y){const v=h.append("text").attr("x",o+f/2).attr("y",a+g/2+5).style("font-color",y).style("text-anchor","middle").text(r);i(v,m)}k(e,"byText"),c(e,"byText");function t(r,h,o,a,f,g,m,y,v){const{taskFontSize:s,taskFontFamily:d}=y,l=r.split(/<br\s*\/?>/gi);for(let p=0;p<l.length;p++){const x=p*s-s*(l.length-1)/2,u=h.append("text").attr("x",o+f/2).attr("y",a).attr("fill",v).style("text-anchor","middle").style("font-size",s).style("font-family",d);u.append("tspan").attr("x",o+f/2).attr("dy",x).text(l[p]),u.attr("y",a+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(u,m)}}k(t,"byTspan"),c(t,"byTspan");function n(r,h,o,a,f,g,m,y){const v=h.append("switch"),d=v.append("foreignObject").attr("x",o).attr("y",a).attr("width",f).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),t(r,v,o,a,f,g,m,y),i(d,m)}k(n,"byFo"),c(n,"byFo");function i(r,h){for(const o in h)o in h&&r.attr(o,h[o])}return k(i,"_setTextAttrs"),c(i,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?n:r.textPlacement==="old"?e:t}})(),Qt=c(function(e,t){It=0,rt=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function Y(e,t){e.each(function(){var n=Z(this),i=n.text().split(/(\s+|<br>)/).reverse(),r,h=[],o=1.1,a=n.attr("y"),f=parseFloat(n.attr("dy")),g=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",f+"em");for(let m=0;m<i.length;m++)r=i[i.length-1-m],h.push(r),g.text(h.join(" ").trim()),(g.node().getComputedTextLength()>t||r==="<br>")&&(h.pop(),g.text(h.join(" ").trim()),r==="<br>"?h=[""]:h=[r],g=n.append("tspan").attr("x",0).attr("y",a).attr("dy",o+"em").text(r))})}k(Y,"wrap");c(Y,"wrap");var Yt=c(function(e,t,n,i,r,h=!1){const{theme:o,look:a}=i,f=o?.includes("redux"),g=i?.themeVariables?.THEME_COLOR_LIMIT??12,m=n%g-1,y=e.append("g");t.section=m,y.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+m));const v=y.append("g"),s=y.append("g"),l=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Y,t.width).node().getBBox(),p=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(t.height=l.height+p*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,s.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),f&&s.attr("transform",`translate(${t.width/2}, ${h?t.padding/2+3:t.padding})`),ee(v,t,m,r,i),a==="neo"&&(y.attr("data-look","neo"),f)){const x=o.includes("dark"),u=e.node()?.ownerSVGElement??e.node(),E=Z(u),_=E.attr("id")??"",H=_?`${_}-drop-shadow`:"drop-shadow";if(E.select(`#${H}`).empty()){const C=E.select("defs");(C.empty()?E.append("defs"):C).append("filter").attr("id",H).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",x?"0.2":"0.06").attr("flood-color",x?"#FFFFFF":"#000000")}}return t},"drawNode"),te=c(function(e,t,n){const i=e.append("g"),h=i.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Y,t.width).node().getBBox(),o=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),h.height+o*1.1*.5+t.padding},"getVirtualNodeHeight"),ee=c(function(e,t,n,i,r){const{theme:h}=r,o=h?.includes("redux")?0:5,a=5,f=o>0?`M0 ${t.height-a} v${-t.height+2*a} q0,-${o},${o},-${o} h${t.width-2*a} q${o},0,${o},${o} v${t.height-a} H0 Z`:`M0 ${t.height-a} v${-(t.height-a)} h${t.width} v${t.height} H0 Z`;e.append("path").attr("id",i+"-node-"+It++).attr("class","node-bkg node-"+t.type).attr("d",f),h?.includes("redux")||e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),A={drawRect:Q,drawCircle:Ut,drawSection:Zt,drawText:Ht,drawLabel:Xt,drawTask:jt,drawBackgroundRect:qt,getTextObj:Jt,getNoteRect:at,initGraphics:Qt,drawNode:Yt,getVirtualNodeHeight:te},ne=c(function(e,t,n,i){const r=ft(),{look:h,theme:o,themeVariables:a}=r,{useGradient:f,gradientStart:g,gradientStop:m}=a,y=r.timeline?.leftMargin??50;T.debug("timeline",i.db);const v=r.securityLevel;let s;v==="sandbox"&&(s=Z("#i"+t));const l=(v==="sandbox"?Z(s.nodes()[0].contentDocument.body):Z("body")).select("#"+t);l.append("g");const p=i.db.getTasks(),x=i.db.getCommonDb().getDiagramTitle();T.debug("task",p),A.initGraphics(l,t);const u=i.db.getSections();T.debug("sections",u);let E=0,_=0,H=0,C=0,P=50+y,G=50;C=50;let M=0,S=!0;u.forEach(function(N){const b={number:M,descr:N,section:M,width:150,padding:20,maxHeight:E},w=A.getVirtualNodeHeight(l,b,r);T.debug("sectionHeight before draw",w),E=Math.max(E,w+20)});let L=0,F=0;T.debug("tasks.length",p.length);for(const[N,b]of p.entries()){const w={number:N,descr:b,section:b.section,width:150,padding:20,maxHeight:_},I=A.getVirtualNodeHeight(l,w,r);T.debug("taskHeight before draw",I),_=Math.max(_,I+20),L=Math.max(L,b.events.length);let $=0;for(const B of b.events){const W={descr:B,section:b.section,number:b.section,width:150,padding:20,maxHeight:50};$+=A.getVirtualNodeHeight(l,W,r)}b.events.length>0&&($+=(b.events.length-1)*10),F=Math.max(F,$)}T.debug("maxSectionHeight before draw",E),T.debug("maxTaskHeight before draw",_),u&&u.length>0?u.forEach(N=>{const b=p.filter(B=>B.section===N),w={number:M,descr:N,section:M,width:200*Math.max(b.length,1)-50,padding:20,maxHeight:E};T.debug("sectionNode",w);const I=l.append("g"),$=A.drawNode(I,w,M,r,t);T.debug("sectionNode output",$),I.attr("transform",`translate(${P}, ${C})`),G+=E+50,b.length>0&&ht(l,b,M,P,G,_,r,L,F,E,!1,t),P+=200*Math.max(b.length,1),G=C,M++}):(S=!1,ht(l,p,M,P,G,_,r,L,F,E,!0,t));const z=l.node().getBBox();if(T.debug("bounds",z),x&&l.append("text").text(x).attr("x",h==="neo"?z.x*2+y:z.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),H=S?E+_+150:_+100,l.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",H).attr("x2",z.width+3*y).attr("y2",H).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),h==="neo"&&f&&o!=="neutral"){const N=l.select("defs"),w=(N.empty()?l.append("defs"):N).append("linearGradient").attr("id",l.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");w.append("stop").attr("offset","0%").attr("stop-color",g).attr("stop-opacity",1),w.append("stop").attr("offset","100%").attr("stop-color",m).attr("stop-opacity",1)}yt(void 0,l,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),ht=c(function(e,t,n,i,r,h,o,a,f,g,m,y){for(const v of t){const s={descr:v.task,section:n,number:n,width:150,padding:20,maxHeight:h};T.debug("taskNode",s);const d=e.append("g").attr("class","taskWrapper"),p=A.drawNode(d,s,n,o,y).height;if(T.debug("taskHeight after draw",p),d.attr("transform",`translate(${i}, ${r})`),h=Math.max(h,p),v.events){const x=e.append("g").attr("class","lineWrapper");let u=h;r+=100,u=u+re(e,v.events,n,i,r,o,y),r-=100,x.append("line").attr("x1",i+190/2).attr("y1",r+h).attr("x2",i+190/2).attr("y2",r+h+100+f+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${y}-arrowhead)`).attr("stroke-dasharray","5,5")}i=i+200,m&&!o.timeline?.disableMulticolor&&n++}r=r-10},"drawTasks"),re=c(function(e,t,n,i,r,h,o){let a=0;const f=r;r=r+100;for(const g of t){const m={descr:g,section:n,number:n,width:150,padding:20,maxHeight:50};T.debug("eventNode",m);const y=e.append("g").attr("class","eventWrapper"),s=A.drawNode(y,m,n,h,o,!0).height;a=a+s,y.attr("transform",`translate(${i}, ${r})`),r=r+10+s}return r=f,a},"drawEvents"),se={setConf:c(()=>{},"setConf"),draw:ne},tt=200,O=5,ie=tt+O*2,ot=tt+100,ae=ot+O*2,Mt=10,oe=0,dt=20,At=20,ut=30,Rt=50,ce=c(function(e,t,n,i){const r=ft(),h=r.timeline?.leftMargin??50;T.debug("timeline",i.db);const o=Bt(t);o.append("g");const a=i.db.getTasks(),f=i.db.getCommonDb().getDiagramTitle();T.debug("task",a),A.initGraphics(o);const g=i.db.getSections();T.debug("sections",g);let m=0,y=0;const v=50+h;let s=50;const d=s,l=v,p=ie+At,x=ae+Rt,u=l+p;let E=0;const _=g&&g.length>0,H=_?u:v+p,C=Math.max(50,p+x-O*2);g.forEach(function(N){const b={number:E,descr:N,section:E,width:C,padding:O,maxHeight:m},w=A.getVirtualNodeHeight(o,b,r);T.debug("sectionHeight before draw",w),m=Math.max(m,w)});let P=0;T.debug("tasks.length",a.length);for(const[N,b]of a.entries()){const w={number:N,descr:b,section:b.section,width:tt,padding:O,maxHeight:y},I=A.getVirtualNodeHeight(o,w,r);T.debug("taskHeight before draw",I),y=Math.max(y,I);let $=0;for(const B of b.events){const W={descr:B,section:b.section,number:b.section,width:ot,padding:O,maxHeight:50};$+=A.getVirtualNodeHeight(o,W,r)}b.events.length>0&&($+=(b.events.length-1)*Mt),P=Math.max(P,$)+oe}T.debug("maxSectionHeight before draw",m),T.debug("maxTaskHeight before draw",y);const M=Math.max(y,P)+ut;_?g.forEach(N=>{const b=a.filter(j=>j.section===N),w={number:E,descr:N,section:E,width:C,padding:O,maxHeight:m};T.debug("sectionNode",w);const I=o.append("g"),$=A.drawNode(I,w,E,r);T.debug("sectionNode output",$);const B=H-p;I.attr("transform",`translate(${B}, ${s})`);const W=s+$.height+dt;b.length>0&&pt(o,b,E,H,W,y,r,M,!1);const D=b.length,V=$.height+dt+M*Math.max(D,1)-(D>0?ut*2:0);s+=V,E++}):pt(o,a,E,H,s,y,r,M,!0);let S=o.node()?.getBBox();if(!S)throw new Error("bbox not found");if(T.debug("bounds",S),f){if(o.append("text").text(f).attr("x",S.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),S=o.node()?.getBBox(),!S)throw new Error("bbox not found");T.debug("bounds after title",S)}const[L]=Vt(r.fontSize),F=(L??16)*2,z=(L??16)*.5+20,X=o.append("g").attr("class","lineWrapper");X.append("line").attr("x1",H).attr("y1",d-F).attr("x2",H).attr("y2",S.y+S.height+z).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),X.lower(),yt(void 0,o,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),pt=c(function(e,t,n,i,r,h,o,a,f){for(const g of t){const m={descr:g.task,section:n,number:n,width:tt,padding:O,maxHeight:h};T.debug("taskNode",m);const y=e.append("g").attr("class","taskWrapper"),v=A.drawNode(y,m,n,o),s=v.height;T.debug("taskHeight after draw",s);const d=i-At-v.width;if(y.attr("transform",`translate(${d}, ${r})`),h=Math.max(h,s),g.events&&g.events.length>0){const l=r,p=i+Rt;le(e,g.events,n,i,p,l,o)}r=r+a,f&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),le=c(function(e,t,n,i,r,h,o){let a=h;for(const f of t){const g={descr:f,section:n,number:n,width:ot,padding:O,maxHeight:0};T.debug("eventNode",g);const m=e.append("g").attr("class","eventWrapper"),v=A.drawNode(m,g,n,o).height;m.attr("transform",`translate(${r}, ${a})`);const s=e.append("g").attr("class","lineWrapper"),d=a+v/2;s.append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),a=a+v+Mt}return a-h},"drawEvents"),he={setConf:c(()=>{},"setConf"),draw:ce},de=c(e=>{const{theme:t}=gt(),n=t?.includes("dark"),i=t?.includes("color"),r=e.svgId?.replace(/^#/,"")??"",h=r?`url(#${r}-drop-shadow)`:e.dropShadow??"none";let o="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++){const f=`${17-3*a}`,g=i?e.borderColorArray[a]:e.mainBkg,m=i?e.borderColorArray[a]:e.nodeBorder;o+=`
|
|
7
|
-
.section-${a-1} rect,
|
|
8
|
-
.section-${a-1} path,
|
|
9
|
-
.section-${a-1} circle {
|
|
10
|
-
fill: ${n&&i?e.mainBkg:g};
|
|
11
|
-
stroke: ${m};
|
|
12
|
-
stroke-width: ${e.strokeWidth};
|
|
13
|
-
filter: ${h};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.section-${a-1} text {
|
|
17
|
-
fill: ${e.nodeBorder};
|
|
18
|
-
font-weight: ${e.fontWeight}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.node-icon-${a-1} {
|
|
22
|
-
font-size: 40px;
|
|
23
|
-
color: ${e["cScaleLabel"+a]};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.section-edge-${a-1} {
|
|
27
|
-
stroke: ${e["cScale"+a]};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.edge-depth-${a-1} {
|
|
31
|
-
stroke-width: ${f};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.section-${a-1} line {
|
|
35
|
-
stroke: ${e["cScaleInv"+a]};
|
|
36
|
-
stroke-width: 3;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.lineWrapper line {
|
|
40
|
-
stroke: ${e.nodeBorder};
|
|
41
|
-
stroke-width:${e.strokeWidth}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.disabled,
|
|
45
|
-
.disabled circle,
|
|
46
|
-
.disabled text {
|
|
47
|
-
fill: ${e.tertiaryColor??"lightgray"};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.disabled text {
|
|
51
|
-
fill: ${e.clusterBorder??"#efefef"};
|
|
52
|
-
}
|
|
53
|
-
`}return o},"genReduxSections"),ue=c(e=>{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],Ct(e["lineColor"+n])?e["lineColor"+n]=Wt(e["lineColor"+n],20):e["lineColor"+n]=Pt(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);t+=`
|
|
54
|
-
.section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
|
|
55
|
-
fill: ${e["cScale"+n]};
|
|
56
|
-
}
|
|
57
|
-
.section-${n-1} text {
|
|
58
|
-
fill: ${e["cScaleLabel"+n]};
|
|
59
|
-
}
|
|
60
|
-
.node-icon-${n-1} {
|
|
61
|
-
font-size: 40px;
|
|
62
|
-
color: ${e["cScaleLabel"+n]};
|
|
63
|
-
}
|
|
64
|
-
.section-edge-${n-1}{
|
|
65
|
-
stroke: ${e["cScale"+n]};
|
|
66
|
-
}
|
|
67
|
-
.edge-depth-${n-1}{
|
|
68
|
-
stroke-width: ${i};
|
|
69
|
-
}
|
|
70
|
-
.section-${n-1} line {
|
|
71
|
-
stroke: ${e["cScaleInv"+n]} ;
|
|
72
|
-
stroke-width: 3;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.lineWrapper line{
|
|
76
|
-
stroke: ${e["cScaleLabel"+n]} ;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.disabled, .disabled circle, .disabled text {
|
|
80
|
-
fill: ${e.tertiaryColor??"lightgray"};
|
|
81
|
-
}
|
|
82
|
-
.disabled text {
|
|
83
|
-
fill: ${e.clusterBorder??"#efefef"};
|
|
84
|
-
}
|
|
85
|
-
`}return t},"genSections"),pe=c(e=>{const{theme:t}=gt(),n=t?.includes("redux"),i=t==="neutral",r=e.svgId?.replace(/^#/,"")??"";let h="";if(e.useGradient&&r&&e.THEME_COLOR_LIMIT&&!i)for(let o=0;o<e.THEME_COLOR_LIMIT;o++)h+=`
|
|
86
|
-
.section-${o-1}[data-look="neo"] rect,
|
|
87
|
-
.section-${o-1}[data-look="neo"] path,
|
|
88
|
-
.section-${o-1}[data-look="neo"] circle {
|
|
89
|
-
fill: ${e.mainBkg};
|
|
90
|
-
stroke: url(#${r}-gradient);
|
|
91
|
-
stroke-width: 2;
|
|
92
|
-
}
|
|
93
|
-
.section-${o-1}[data-look="neo"] line {
|
|
94
|
-
stroke: url(#${r}-gradient);
|
|
95
|
-
stroke-width: 2;
|
|
96
|
-
}`;return`
|
|
97
|
-
.edge {
|
|
98
|
-
stroke-width: 3;
|
|
99
|
-
}
|
|
100
|
-
${n?de(e):ue(e)}
|
|
101
|
-
${h}
|
|
102
|
-
.section-root rect, .section-root path, .section-root circle {
|
|
103
|
-
fill: ${e.git0};
|
|
104
|
-
}
|
|
105
|
-
.section-root text {
|
|
106
|
-
fill: ${e.gitBranchLabel0};
|
|
107
|
-
}
|
|
108
|
-
.icon-container {
|
|
109
|
-
height:100%;
|
|
110
|
-
display: flex;
|
|
111
|
-
justify-content: center;
|
|
112
|
-
align-items: center;
|
|
113
|
-
}
|
|
114
|
-
.edge {
|
|
115
|
-
fill: none;
|
|
116
|
-
}
|
|
117
|
-
.eventWrapper {
|
|
118
|
-
filter: brightness(120%);
|
|
119
|
-
}
|
|
120
|
-
`},"getStyles"),ge=pe,fe={setConf:c(()=>{},"setConf"),draw:c((e,t,n,i)=>(i?.db?.getDirection?.()??"LR")==="TD"?he.draw(e,t,n,i):se.draw(e,t,n,i),"draw")},ke={db:mt,renderer:fe,parser:Gt,styles:ge};export{ke as diagram};
|