@intent-hq/web 2.310.0 → 2.310.2
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/{DXIbhld5.js → 189zCzpy.js} +1 -1
- package/web/app/immutable/chunks/6XLvYn_R.js +4 -0
- package/web/app/immutable/chunks/{DE2cS7Gk.js → 7LPFBi2V.js} +2 -2
- package/web/app/immutable/chunks/{DvPohY9Y.js → 9Al7uANH.js} +1 -1
- package/web/app/immutable/chunks/{CCiSNRYo.js → 9Ax53qRD.js} +2 -2
- package/web/app/immutable/chunks/{B2RUMnVi.js → 9U2m-KE4.js} +1 -1
- package/web/app/immutable/chunks/{DEg_be2d.js → B08PB3d6.js} +1 -1
- package/web/app/immutable/chunks/B1wLVJWc.js +7 -0
- package/web/app/immutable/chunks/B1zCpBoo.js +217 -0
- package/web/app/immutable/chunks/{D4n7ImP1.js → B2-LFLJm.js} +1 -1
- package/web/app/immutable/chunks/{BhPGdKCS.js → B3NZDdp-.js} +1 -1
- package/web/app/immutable/chunks/{B6F4Lh4e.js → B3u9yhMd.js} +1 -1
- package/web/app/immutable/chunks/{BCWCSGn-.js → B6ACa1PM.js} +1 -1
- package/web/app/immutable/chunks/{DfEETRjs.js → B7VxeONz.js} +1 -1
- package/web/app/immutable/chunks/{2t50lsua.js → BGOzArFr.js} +6 -6
- package/web/app/immutable/chunks/{9jrhCQLH.js → BGSgFd0R.js} +1 -1
- package/web/app/immutable/chunks/{CaSAI0VT.js → BHMk19Fd.js} +1 -1
- package/web/app/immutable/chunks/{BZJTxW0W.js → BRp0P9cF.js} +1 -1
- package/web/app/immutable/chunks/{DRr3RJL8.js → BS3KKa6i.js} +5 -5
- package/web/app/immutable/chunks/{dxICYcDB.js → BSN7-Qxa.js} +4 -4
- package/web/app/immutable/chunks/{BpsqLTOp.js → BU1SD4F5.js} +2 -2
- package/web/app/immutable/chunks/BUvLOETw.js +8 -0
- package/web/app/immutable/chunks/{CZZvWnXg.js → B_CxKeY9.js} +1 -1
- package/web/app/immutable/chunks/{BibcbnTP.js → B_F8B07u.js} +5 -5
- package/web/app/immutable/chunks/{DFCDnAax.js → B_u6ph9g.js} +1 -1
- package/web/app/immutable/chunks/{Cg-2uoaY.js → BbajLcMi.js} +1 -1
- package/web/app/immutable/chunks/{tBYaHQw_.js → BcGA_XKM.js} +79 -79
- package/web/app/immutable/chunks/Bdj20t_M.js +200 -0
- package/web/app/immutable/chunks/{SJdoTqK2.js → BfVF2I5Q.js} +3 -3
- package/web/app/immutable/chunks/{B-AmXRdp.js → BgjzIHmr.js} +2 -2
- package/web/app/immutable/chunks/BhFdeIZl.js +1 -0
- package/web/app/immutable/chunks/{CMcFXsiy.js → BjS3bCVA.js} +1 -1
- package/web/app/immutable/chunks/Bl1SUWQK.js +1 -0
- package/web/app/immutable/chunks/BtFywNMt.js +40 -0
- package/web/app/immutable/chunks/{CCJs9cZU.js → BwThkZnv.js} +1 -1
- package/web/app/immutable/chunks/ByGoYv9M.js +1 -0
- package/web/app/immutable/chunks/Bz2AaX7v.js +38 -0
- package/web/app/immutable/chunks/{CjKEz27r.js → BzqKIdEP.js} +1 -1
- package/web/app/immutable/chunks/{gMys6NxR.js → C-27EQSK.js} +6 -6
- package/web/app/immutable/chunks/C2FKcF8a.js +99 -0
- package/web/app/immutable/chunks/{kOoRis7L.js → C2ypXh8V.js} +4 -4
- package/web/app/immutable/chunks/{Bbi-Ieb_.js → C5bjHjx4.js} +1 -1
- package/web/app/immutable/chunks/{CS85fbWZ.js → C64YVcCh.js} +1 -1
- package/web/app/immutable/chunks/{xq16NT3q.js → C7-VQsLR.js} +1 -1
- package/web/app/immutable/chunks/C7ldC6zu.js +41 -0
- package/web/app/immutable/chunks/{Z1IVvFmx.js → C7xfOFNZ.js} +4 -4
- package/web/app/immutable/chunks/{CBvSxWdG.js → CAt8c0ls.js} +1 -1
- package/web/app/immutable/chunks/CC-vc0Sh.js +2 -0
- package/web/app/immutable/chunks/{D2b3DtCR.js → CDmxeAFz.js} +1 -1
- package/web/app/immutable/chunks/{BeFewn7K.js → CLUug_7o.js} +1 -1
- package/web/app/immutable/chunks/{CDACoTI2.js → CLyqqizl.js} +11 -11
- package/web/app/immutable/chunks/{B_EqlvEE.js → CO5Qz17e.js} +1 -1
- package/web/app/immutable/chunks/{DDfFKaoN.js → COBtdbv4.js} +1 -1
- package/web/app/immutable/chunks/COZ8XMYr.js +2 -0
- package/web/app/immutable/chunks/{BVxirgV2.js → CQK97B3l.js} +1 -1
- package/web/app/immutable/chunks/{50gvEURs.js → CYTBw0CY.js} +1 -1
- package/web/app/immutable/chunks/{CGizsEXq.js → CZLMJ41d.js} +3 -3
- package/web/app/immutable/chunks/{CjdtUG_a.js → CZqaUHhn.js} +1 -1
- package/web/app/immutable/chunks/CeVWos-t.js +1 -0
- package/web/app/immutable/chunks/CepoDpYW.js +1 -0
- package/web/app/immutable/chunks/{xFj9RuQx.js → CiBABzvX.js} +1 -1
- package/web/app/immutable/chunks/{D8SVxzqF.js → CjcP6chv.js} +1 -1
- package/web/app/immutable/chunks/{DUVw4Tv2.js → CkactGV1.js} +30 -30
- package/web/app/immutable/chunks/ClebXGIM.js +141 -0
- package/web/app/immutable/chunks/{DO_qdDGF.js → CnfDI0G9.js} +1 -1
- package/web/app/immutable/chunks/{CQSBplf3.js → CoiqgZqV.js} +1 -1
- package/web/app/immutable/chunks/{CGMhstmi.js → CpQksukT.js} +1 -1
- package/web/app/immutable/chunks/CrX2GQl1.js +1 -0
- package/web/app/immutable/chunks/{BKTwjZpB.js → CtDXgUYh.js} +2 -2
- package/web/app/immutable/chunks/CvEzUeZj.js +39 -0
- package/web/app/immutable/chunks/{C_YR_yV-.js → CxP8jrn2.js} +1 -1
- package/web/app/immutable/chunks/{BPG20H4B.js → D2XAsGw-.js} +1 -1
- package/web/app/immutable/chunks/D3in5AGo.js +34 -0
- package/web/app/immutable/chunks/D3ma4MWK.js +84 -0
- package/web/app/immutable/chunks/{DqvIKmgg.js → D3p4HGPq.js} +1 -1
- package/web/app/immutable/chunks/D57k4GEE.js +344 -0
- package/web/app/immutable/chunks/{_otPiQOz.js → D5mZ2XGM.js} +1 -1
- package/web/app/immutable/chunks/{swAYnpK6.js → DE1vhlzN.js} +1 -1
- package/web/app/immutable/chunks/{NdkVneBF.js → DI-WSiIl.js} +1 -1
- package/web/app/immutable/chunks/DMfS3QUv.js +213 -0
- package/web/app/immutable/chunks/DMmGJ3th.js +140 -0
- package/web/app/immutable/chunks/DPADHNob.js +3 -0
- package/web/app/immutable/chunks/DPcySxOl.js +24 -0
- package/web/app/immutable/chunks/{BMvGDYIO.js → DQNwUygY.js} +3 -3
- package/web/app/immutable/chunks/{Bj5SHeCl.js → DR3ukAe9.js} +2 -2
- package/web/app/immutable/chunks/{DZpxiGBS.js → DRKyy5zo.js} +1 -1
- package/web/app/immutable/chunks/DTpCNXVX.js +62 -0
- package/web/app/immutable/chunks/DW02E8JU.js +291 -0
- package/web/app/immutable/chunks/{DyHBOL0Q.js → DbnaPZDp.js} +2 -2
- package/web/app/immutable/chunks/Dhhgf7-r.js +36 -0
- package/web/app/immutable/chunks/{Cbh5ofn-.js → DjaKy3j_.js} +1 -1
- package/web/app/immutable/chunks/{KljALMT3.js → Dk4znOdW.js} +1 -1
- package/web/app/immutable/chunks/{BANQT5xk.js → Dl1xcl6N.js} +1 -1
- package/web/app/immutable/chunks/Dmv_LV6R.js +106 -0
- package/web/app/immutable/chunks/{BreeoU2c.js → Dr28se2A.js} +2 -2
- package/web/app/immutable/chunks/Dr_BXnmT.js +169 -0
- package/web/app/immutable/chunks/{CoIY5b-q.js → Dvt2xumc.js} +1 -1
- package/web/app/immutable/chunks/DxHqMweQ.js +27 -0
- package/web/app/immutable/chunks/Dyv7eW7r.js +1 -0
- package/web/app/immutable/chunks/{W2kuqRhi.js → DzDnAGVP.js} +1 -1
- package/web/app/immutable/chunks/{CJNlKuUY.js → IIWxUL8F.js} +1 -1
- package/web/app/immutable/chunks/IjQ_akx8.js +24 -0
- package/web/app/immutable/chunks/{wihFHGRA.js → JFNcUgqI.js} +3 -3
- package/web/app/immutable/chunks/{BoTxE-Dg.js → JvGvDA7z.js} +1 -1
- package/web/app/immutable/chunks/{3xT4xHCc.js → LXPDKlyI.js} +1 -1
- package/web/app/immutable/chunks/{BPlpnhzH.js → M5rEGvXZ.js} +1 -1
- package/web/app/immutable/chunks/{C_sPSbma.js → O55LMojB.js} +1 -1
- package/web/app/immutable/chunks/{BmhnS69e.js → O86272iX.js} +2 -2
- package/web/app/immutable/chunks/{CZT_wjvA.js → PW60rHG1.js} +2 -2
- package/web/app/immutable/chunks/{D8xJeFNR.js → UzQ5fjmd.js} +7 -7
- package/web/app/immutable/chunks/VmPClZ6P.js +98 -0
- package/web/app/immutable/chunks/WKN7DEK1.js +292 -0
- package/web/app/immutable/chunks/{B7YFRmY9.js → YuniekLU.js} +2 -2
- package/web/app/immutable/chunks/{DWztuYd2.js → _Q4NEhG2.js} +1 -1
- package/web/app/immutable/chunks/{DyPRCICU.js → _sFm91KN.js} +4 -4
- package/web/app/immutable/chunks/{NChdTnqQ.js → cF0DaKkd.js} +1 -1
- package/web/app/immutable/chunks/{B2O-zJJK.js → d9OF_ecy.js} +1 -1
- package/web/app/immutable/chunks/eHLf0w_s.js +1 -0
- package/web/app/immutable/chunks/ey5Fwige.js +1 -0
- package/web/app/immutable/chunks/gq2RHuUM.js +120 -0
- package/web/app/immutable/chunks/{C0oSivDJ.js → hJG5qV93.js} +1 -1
- package/web/app/immutable/chunks/jfltPaLX.js +370 -0
- package/web/app/immutable/chunks/{CjUOGaIe.js → l0v05b1J.js} +3 -3
- package/web/app/immutable/chunks/{zeRt85dY.js → le8iLKoG.js} +1 -1
- package/web/app/immutable/chunks/{C0f7EiIR.js → mCGfnSaU.js} +1 -1
- package/web/app/immutable/chunks/{u7rudBWt.js → mNrkfPcL.js} +1 -1
- package/web/app/immutable/chunks/{Da48jYxu.js → tzNFwvLY.js} +1 -1
- package/web/app/immutable/chunks/{C1rjgyNe.js → xL2Hl8pt.js} +1 -1
- package/web/app/immutable/chunks/{D6QUdzQ1.js → yEkT96At.js} +1 -1
- package/web/app/immutable/chunks/{DhbOsIE5.js → yGxUPrAb.js} +14 -14
- package/web/app/immutable/entry/{app.CYN435_6.js → app.CWgSMPHo.js} +2 -2
- package/web/app/immutable/entry/start.DRM4Ek1S.js +1 -0
- package/web/app/immutable/nodes/{0.Dns3lFCs.js → 0.DsHcmAxw.js} +1 -1
- package/web/app/immutable/nodes/{1.Cd7O-58t.js → 1.CkY-7ake.js} +1 -1
- package/web/app/immutable/nodes/{10.BhPCwuSS.js → 10.CdTsXOpX.js} +1 -1
- package/web/app/immutable/nodes/{14.CbX9Og6B.js → 14.juvATfIp.js} +1 -1
- package/web/app/immutable/nodes/{16.DYSTj8m0.js → 16.DuXLhJX1.js} +2 -2
- package/web/app/immutable/nodes/{2.n7fSSeCW.js → 2.DL0H4Ehj.js} +8 -8
- package/web/app/immutable/nodes/{3.CfhffOh-.js → 3.CsarMzm8.js} +1 -1
- package/web/app/immutable/nodes/{4.DNZDs0vZ.js → 4.DOKXGcKD.js} +1 -1
- package/web/app/immutable/nodes/{5.DooL0KdY.js → 5.5nmYhZgy.js} +1 -1
- package/web/app/immutable/nodes/{6.pzplS1TY.js → 6.BMO8vjvw.js} +1 -1
- package/web/app/immutable/nodes/{7.CRhweboS.js → 7.Rmoc-ypk.js} +1 -1
- package/web/app/immutable/nodes/{8.CuuXIPiR.js → 8.Dy5AT1iw.js} +2 -2
- package/web/app/immutable/nodes/{9.hhdT3UPw.js → 9.Dtv2dSUT.js} +18 -18
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/41W03kYB.js +0 -96
- package/web/app/immutable/chunks/4jLfrK-n.js +0 -84
- package/web/app/immutable/chunks/70PyZUYg.js +0 -70
- package/web/app/immutable/chunks/9H8XjRUA.js +0 -106
- package/web/app/immutable/chunks/B-2EcDun.js +0 -78
- package/web/app/immutable/chunks/B6EdH0gk.js +0 -120
- package/web/app/immutable/chunks/B7d6B8i2.js +0 -1
- package/web/app/immutable/chunks/BCaDoF8Y.js +0 -1
- package/web/app/immutable/chunks/BCfzoYfU.js +0 -1
- package/web/app/immutable/chunks/BDEqpi1y.js +0 -106
- package/web/app/immutable/chunks/BDchM60p.js +0 -178
- package/web/app/immutable/chunks/BDuevalq.js +0 -1
- package/web/app/immutable/chunks/BFcpLy2V.js +0 -24
- package/web/app/immutable/chunks/BGS2SWF9.js +0 -40
- package/web/app/immutable/chunks/BKpC4hzB.js +0 -1
- package/web/app/immutable/chunks/BLOlf2p9.js +0 -39
- package/web/app/immutable/chunks/BN912nIE.js +0 -1
- package/web/app/immutable/chunks/BQqlXz7Q.js +0 -24
- package/web/app/immutable/chunks/BZmA3QXk.js +0 -24
- package/web/app/immutable/chunks/BdluP0Re.js +0 -120
- package/web/app/immutable/chunks/BgmOiuVG.js +0 -342
- package/web/app/immutable/chunks/BmKF0wck.js +0 -1
- package/web/app/immutable/chunks/BpJz1MvJ.js +0 -7
- package/web/app/immutable/chunks/Br2I_00T.js +0 -7
- package/web/app/immutable/chunks/Br8EhifD.js +0 -89
- package/web/app/immutable/chunks/BriIY-V6.js +0 -2
- package/web/app/immutable/chunks/Bs-gIQLt.js +0 -4
- package/web/app/immutable/chunks/BwBhkp82.js +0 -292
- package/web/app/immutable/chunks/Bz-Yc7Wl.js +0 -34
- package/web/app/immutable/chunks/BzAchneh.js +0 -1
- package/web/app/immutable/chunks/C10ooCp1.js +0 -24
- package/web/app/immutable/chunks/C3OhkOVO.js +0 -1
- package/web/app/immutable/chunks/C519ihU9.js +0 -231
- package/web/app/immutable/chunks/C7T4LQE1.js +0 -257
- package/web/app/immutable/chunks/C7_3LSl8.js +0 -162
- package/web/app/immutable/chunks/CAM1CwRY.js +0 -1
- package/web/app/immutable/chunks/CHx78N0-.js +0 -1
- package/web/app/immutable/chunks/CJRXWUIB.js +0 -36
- package/web/app/immutable/chunks/CKRb139P.js +0 -1
- package/web/app/immutable/chunks/COamqMg3.js +0 -1
- package/web/app/immutable/chunks/CPm7NntQ.js +0 -38
- package/web/app/immutable/chunks/CSNcNZAr.js +0 -1
- package/web/app/immutable/chunks/CTI6K_Uf.js +0 -1
- package/web/app/immutable/chunks/CUuCn5ps.js +0 -1
- package/web/app/immutable/chunks/CXVxtSkJ.js +0 -38
- package/web/app/immutable/chunks/CYhtIPW_.js +0 -62
- package/web/app/immutable/chunks/CaNdc6nO.js +0 -292
- package/web/app/immutable/chunks/CbMdHBoe.js +0 -1
- package/web/app/immutable/chunks/Citosjx7.js +0 -41
- package/web/app/immutable/chunks/Cj_j-lXn.js +0 -206
- package/web/app/immutable/chunks/CnCQnNEp.js +0 -354
- package/web/app/immutable/chunks/CnsnqDQd.js +0 -1
- package/web/app/immutable/chunks/CqBIsc3j.js +0 -99
- package/web/app/immutable/chunks/CqslOMwD.js +0 -96
- package/web/app/immutable/chunks/CvOaoHrI.js +0 -1
- package/web/app/immutable/chunks/CvYzv8kf.js +0 -1
- package/web/app/immutable/chunks/CwpRQv-w.js +0 -8
- package/web/app/immutable/chunks/CyfBUrNA.js +0 -1
- package/web/app/immutable/chunks/Cyhorubq.js +0 -231
- package/web/app/immutable/chunks/D1SkvgLK.js +0 -1
- package/web/app/immutable/chunks/D6XiPT-X.js +0 -1
- package/web/app/immutable/chunks/D7jRh74W.js +0 -1
- package/web/app/immutable/chunks/D9ytGf5e.js +0 -1
- package/web/app/immutable/chunks/DF1EzKEK.js +0 -41
- package/web/app/immutable/chunks/DGaGjBKU.js +0 -168
- package/web/app/immutable/chunks/DKQ9ngHk.js +0 -99
- package/web/app/immutable/chunks/DNmtQDpd.js +0 -8
- package/web/app/immutable/chunks/DOXLMb3q.js +0 -129
- package/web/app/immutable/chunks/DPpctSbu.js +0 -84
- package/web/app/immutable/chunks/DR8edmqz.js +0 -139
- package/web/app/immutable/chunks/DUYSWpmE.js +0 -1
- package/web/app/immutable/chunks/DXaxEP8U.js +0 -1
- package/web/app/immutable/chunks/DYy64AXn.js +0 -338
- package/web/app/immutable/chunks/DcI5wCZ5.js +0 -1
- package/web/app/immutable/chunks/DdRfFUWu.js +0 -1
- package/web/app/immutable/chunks/DfF0sVRg.js +0 -3
- package/web/app/immutable/chunks/Divbj3b8.js +0 -40
- package/web/app/immutable/chunks/DmUq9QE3.js +0 -162
- package/web/app/immutable/chunks/Dqn0Ivcg.js +0 -39
- package/web/app/immutable/chunks/DsJW9cbJ.js +0 -88
- package/web/app/immutable/chunks/DtFtH7jZ.js +0 -4
- package/web/app/immutable/chunks/DvZBb8H_.js +0 -168
- package/web/app/immutable/chunks/GX9YV5ly.js +0 -129
- package/web/app/immutable/chunks/HP8lGamR.js +0 -257
- package/web/app/immutable/chunks/I1Pwq7BS.js +0 -15
- package/web/app/immutable/chunks/Jj6giUQG.js +0 -7
- package/web/app/immutable/chunks/K10ifhfc.js +0 -1
- package/web/app/immutable/chunks/PDuKM1t5.js +0 -1
- package/web/app/immutable/chunks/PUlhNAJH.js +0 -1
- package/web/app/immutable/chunks/VtMTQAXA.js +0 -30
- package/web/app/immutable/chunks/YqyEOqRv.js +0 -178
- package/web/app/immutable/chunks/b7kGm9Ly.js +0 -36
- package/web/app/immutable/chunks/d1jIpATl.js +0 -62
- package/web/app/immutable/chunks/eCj-hB88.js +0 -3
- package/web/app/immutable/chunks/g3iFlZMW.js +0 -1
- package/web/app/immutable/chunks/iYpMWPUv.js +0 -206
- package/web/app/immutable/chunks/kqGPx169.js +0 -2
- package/web/app/immutable/chunks/ojOCNOao.js +0 -1
- package/web/app/immutable/chunks/v70CwcHz.js +0 -34
- package/web/app/immutable/chunks/zkqMQ7Ph.js +0 -1
- package/web/app/immutable/entry/start.Cuiv1qlw.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bo as C,t as wt,bq as q,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./7rNOGHzs.js";import{bs as It,ca as
|
|
1
|
+
import{bo as C,t as wt,bq as q,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./7rNOGHzs.js";import{bs as It,ca as J,aD as t,a7 as At,ay as K,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./B8o4lNgr.js";import{E as St}from"./DCaHy20k.js";import{c as Wt}from"./CiENRH6A.js";import{C as R}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./9U2m-KE4.js";import"./DmsDslNo.js";import"./CQ4a5a4v.js";import{be as Dt}from"./CFejQM6t.js";import"./Bgegixo2.js";import"./O86272iX.js";import{Hq as L,HX as Nt,Ib as Ft,I0 as Et,tZ as Lt}from"./CRwmdgt6.js";import{T as Bt}from"./le8iLKoG.js";import{g as Ot}from"./CoSk1zgY.js";import{dl as Ut}from"./KQTrHxko.js";import{bO as Ht,bL as jt,b6 as qt}from"./BcGA_XKM.js";import"./Ck-Ax5yG.js";import{M as Mt}from"./yI5lBaQ8.js";import{V as Vt}from"./CZERqHN7.js";import{O as Rt}from"./BGSgFd0R.js";import{c as Gt}from"./ChTqQfQN.js";import{i as Xt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Q(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Zt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||C.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||C.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Y(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Zt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Q(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:R.Unstaged,stats:d,attribution:Y(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:R.Unstaged,stats:Q(d),attribution:Y(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
|
-
`)}}var
|
|
4
|
+
`)}}var Kt=x("<!> <!>",1),Qt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Yt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>L.dispatch(Et()),get wrapEnabled(){return d()},onToggleWrap:()=>L.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>L.dispatch(Nt())})},it=a=>{var i=Kt(),g=K(i);{let m=f(()=>C.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var b=F(g,2);{var y=m=>{Rt(m,{get filePath(){return t(X)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(U)}})};D(b,m=>{t(X)&&m(y)})}w(a,i)},rt=Ht(),st=jt(),ot=qt(),dt=Gt("ActivityChangesTabType");let B=q(n,"tab",7),_=q(n,"workspaceId",7),O=q(n,"isActive",7);const G=Ot(),lt=Ut(_()),U=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>B().data?.event),ct=f(()=>t(o)?zt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),X=f(()=>t(p)&&t(U)?Xt(t(p))?t(p):`${t(U)}/${t(p)}`:null),H=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),Z=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(Z)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(H)();return a?Jt(a):null}),W=f(()=>ft(t(H)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:R.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};L.dispatch(Lt(_(),g))}J(()=>{!G||!O()||G.registerActions({display:at,actions:it})}),J(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(H)(),hasOldNewContent:t(Z)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return B()},set tab(a){B(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return O()},set isActive(a){O(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},z=At(),mt=K(z);{var vt=a=>{var i=Yt(),g=I(i);{var b=l=>{var h=Qt(),$=I(h),j=P($,!0);A(h),E(_t=>S(j,_t),[()=>C.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(b)})}var y=F(g,2),m=I(y);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Bt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(y),A(i),w(a,i)},bt=a=>{var i=te(),g=I(i),b=P(g,!0),y=F(g,2),m=P(y,!0);A(i),E((l,h)=>{S(b,l),S(m,h)},[()=>C.layout_activityChanges_noDiffStored_label(),()=>C.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},yt=a=>{var i=ne(),g=I(i),b=P(g,!0),y=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);E(j=>S($,j),[()=>C.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(y,l=>{t(o)&&l(m)})}A(i),E(l=>S(b,l),[()=>C.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(bt,1):a(yt,-1)})}w(e,z);var Ct=Pt(ht);return nt(),Ct}export{ae as default};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as fe}from"./O55LMojB.js";import{c as o,aN as te,a8 as H,bd as ye,ap as be,at as me,b1 as ke,bl as Ee,W as J,bb as F,aM as _e,J as Se,aC as Ne,aJ as ce,Q as le}from"./D57k4GEE.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(R.yy[Y]=this.yy[Y]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Q=b.yylloc;t.push(Q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=U[P]&&U[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
|
-
Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:
|
|
3
|
+
Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:Q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,Q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof q<"u")return q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=U[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},K=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||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:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(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:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(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:o(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:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
5
|
`+n+"^"},"showPosition"),test_match:o(function(s,n){var r,a,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),a=s[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.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],r=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var t in u)this[t]=u[t];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,r,a;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),t=0;t<u.length;t++)if(r=this._input.match(this.rules[u[t]]),r&&(!n||r[0].length>n[0].length)){if(n=r,a=t,this.options.backtrack_lexer){if(s=this.test_match(r,u[t]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,u[a]),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:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,r,a,u){switch(a){case 0:return this.pushState("shapeData"),r.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const t=/\n\s*/g;return r.yytext=r.yytext.replace(t,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",r.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",r.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),n.getLogger().trace("node end ...",r.yytext),"NODE_DEND";case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 41:return n.getLogger().trace("Long description:",r.yytext),21;case 42:return n.getLogger().trace("Long description:",r.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();T.lexer=
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,r,a,u){switch(a){case 0:return this.pushState("shapeData"),r.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const t=/\n\s*/g;return r.yytext=r.yytext.replace(t,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",r.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",r.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),n.getLogger().trace("node end ...",r.yytext),"NODE_DEND";case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 41:return n.getLogger().trace("Long description:",r.yytext),21;case 42:return n.getLogger().trace("Long description:",r.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();T.lexer=K;function B(){this.yy={}}return o(B,"Parser"),B.prototype=T,T.Parser=B,new B})();$.parser=$;var xe=$,v=[],ne=[],ee=0,se={},ve=o(()=>{v=[],ne=[],ee=0,se={}},"clear"),De=o(e=>{if(v.length===0)return null;const h=v[0].level;let p=null;for(let i=v.length-1;i>=0;i--)if(v[i].level===h&&!p&&(p=v[i]),v[i].level<h)throw new Error('Items without section detected, found section ("'+v[i].label+'")');return e===p?.level?null:p},"getSection"),he=o(function(){return ne},"getSections"),Le=o(function(){const e=[],h=[],p=he(),i=H();for(const d of p){const k={id:d.id,label:F(d.label??"",i),labelType:"markdown",isGroup:!0,ticket:d.ticket,shape:"kanbanSection",level:d.level,look:i.look};h.push(k);const m=v.filter(l=>l.parentId===d.id);for(const l of m){const D={id:l.id,parentId:d.id,label:F(l.label??"",i),labelType:"markdown",isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};h.push(D)}}return{nodes:h,edges:e,other:{},config:H()}},"getData"),Oe=o((e,h,p,i,d)=>{const k=H();let m=k.mindmap?.padding??J.mindmap.padding;switch(i){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:m*=2}const l={id:F(h,k)||"kbn"+ee++,level:e,label:F(p,k),width:k.mindmap?.maxNodeWidth??J.mindmap.maxNodeWidth,padding:m,isGroup:!1};if(d!==void 0){let I;d.includes(`
|
|
7
7
|
`)?I=d+`
|
|
8
8
|
`:I=`{
|
|
9
9
|
`+d+`
|
|
10
|
-
}`;const g=
|
|
11
|
-
`+e);const k=i.db.getData(),m=H();m.htmlLabels=!1;const l=
|
|
10
|
+
}`;const g=_e(I,{schema:Se});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon.toString()),g?.assigned&&(l.assigned=g?.assigned.toString()),g?.ticket&&(l.ticket=g?.ticket.toString()),g?.priority&&(l.priority=g?.priority)}const D=De(e);D?l.parentId=D.id||"kbn"+ee++:ne.push(l),v.push(l)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=o((e,h)=>{switch(te.debug("In get type",e,h),e){case"[":return y.RECT;case"(":return h===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),Ce=o((e,h)=>{se[e]=h},"setElementForId"),we=o(e=>{if(!e)return;const h=H(),p=v[v.length-1];e.icon&&(p.icon=F(e.icon,h)),e.class&&(p.cssClasses=F(e.class,h))},"decorateNode"),Ae=o(e=>{switch(e){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Te=o(()=>te,"getLogger"),Re=o(e=>se[e],"getElementById"),Pe={clear:ve,addNode:Oe,getSections:he,getData:Le,nodeType:y,getType:Ie,setElementForId:Ce,decorateNode:we,type2Str:Ae,getLogger:Te,getElementById:Re},Ve=Pe,Be=o(async(e,h,p,i)=>{te.debug(`Rendering kanban diagram
|
|
11
|
+
`+e);const k=i.db.getData(),m=H();m.htmlLabels=!1;const l=ye(h);for(const f of k.nodes)f.domId=`${h}-${f.id}`;const D=l.append("g");D.attr("class","sections");const I=l.append("g");I.attr("class","items");const g=k.nodes.filter(f=>f.isGroup);let w=0;const E=10,G=[];let N=25;for(const f of g){const A=m?.kanban?.sectionWidth||200;w=w+1,f.x=A*w+(w-1)*E/2,f.width=A,f.y=0,f.height=A*3,f.rx=5,f.ry=5,f.cssClasses=f.cssClasses+" section-"+w;const L=await be(D,f);N=Math.max(N,L?.labelBBox?.height),G.push(L)}let V=0;for(const f of g){const A=G[V];V=V+1;const L=m?.kanban?.sectionWidth||200,M=-L*3/2+N;let T=M;const K=k.nodes.filter(s=>s.parentId===f.id);for(const s of K){if(s.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");s.x=f.x,s.width=L-1.5*E;const r=(await me(I,s,{config:m})).node().getBBox();s.y=T+r.height/2,await ke(s),T=s.y+r.height/2+E/2}const B=A.cluster.select("rect"),O=Math.max(T-M+3*E,50)+(N-25);B.attr("height",O)}Ee(void 0,l,m.mindmap?.padding??J.kanban.padding,m.mindmap?.useMaxWidth??J.kanban.useMaxWidth)},"draw"),je={draw:Be},Fe=o(e=>{let h="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],Ne(e["lineColor"+i])?e["lineColor"+i]=ce(e["lineColor"+i],20):e["lineColor"+i]=le(e["lineColor"+i],20);const p=o((i,d)=>e.darkMode?le(i,d):ce(i,d),"adjuster");for(let i=0;i<e.THEME_COLOR_LIMIT;i++){const d=""+(17-3*i);h+=`
|
|
12
12
|
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
|
|
13
13
|
fill: ${p(e["cScale"+i],10)};
|
|
14
14
|
stroke: ${p(e["cScale"+i],10)};
|
|
@@ -85,5 +85,5 @@ Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on
|
|
|
85
85
|
dominant-baseline: middle;
|
|
86
86
|
text-align: center;
|
|
87
87
|
}
|
|
88
|
-
${
|
|
89
|
-
`,"getStyles"),
|
|
88
|
+
${fe()}
|
|
89
|
+
`,"getStyles"),Me=Ge,We={db:Ve,renderer:je,parser:xe,styles:Me};export{We as diagram};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import{g as ae}from"./BzqKIdEP.js";import{s as ce}from"./Dyv7eW7r.js";import{c as l,aN as C,ac as le,b5 as he,a7 as de,W as G,a8 as B,bb as F,aj as ge,aC as ue,aJ as pe,Q as fe}from"./D57k4GEE.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],J=[1,33],Q=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:J,11:Q}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:J,11:Q}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,q=0,ie=2,K=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||K,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?X="Parse error on line "+(M+1)+`:
|
|
2
|
+
`+y.showPosition()+`
|
|
3
|
+
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==K?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,q=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(O,[p,q,M,v.yy,S[1],f,r].concat(se)),typeof z<"u")return z;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||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:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(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:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=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),o.length-1&&(this.yylineno-=o.length-1);var f=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),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(s){this.unput(this.match.slice(s))},"less"),pastInput:l(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:l(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:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
+
`+i+"^"},"showPosition"),test_match:l(function(s,i){var o,c,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),c=s[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.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],o=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in f)this[r]=f[r];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,i,o,c;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),r=0;r<f.length;r++)if(o=this._input.match(this.rules[f[r]]),o&&(!i||o[0].length>i[0].length)){if(i=o,c=r,this.options.backtrack_lexer){if(s=this.test_match(o,f[r]),s!==!1)return s;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(s=this.test_match(i,f[c]),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:l(function(){var i=this.next();return i||this.lex()},"lex"),begin:l(function(i){this.conditionStack.push(i)},"begin"),popState:l(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:l(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:l(function(i){this.begin(i)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(i,o,c,f){switch(c){case 0:return i.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return i.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:i.getLogger().trace("end icon"),this.popState();break;case 10:return i.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return i.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return i.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),i.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 35:return i.getLogger().trace("Long description:",o.yytext),20;case 36:return i.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return x})();j.lexer=ne;function P(){this.yy={}}return l(P,"Parser"),P.prototype=j,j.Parser=P,new P})();Y.parser=Y;var me=Y,te=12,L={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},I,ye=(I=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=L,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let a=this.nodes.length-1;a>=0;a--)if(this.nodes[a].level<e)return this.nodes[a];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,a,d,t){C.info("addNode",e,a,d,t);let h=!1;this.nodes.length===0?(this.baseLevel=e,e=0,h=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,h=!1);const u=B();let m=u.mindmap?.padding??G.mindmap.padding;switch(t){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:m*=2;break}const E={id:this.count++,nodeId:F(a,u),level:e,descr:F(d,u),type:t,children:[],width:u.mindmap?.maxNodeWidth??G.mindmap.maxNodeWidth,padding:m,isRoot:h},_=this.getParent(e);if(_)_.children.push(E),this.nodes.push(E);else if(h)this.nodes.push(E);else throw new Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,a){switch(C.debug("In get type",e,a),e){case"[":return this.nodeType.RECT;case"(":return a===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,a){this.elements[e]=a}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const a=B(),d=this.nodes[this.nodes.length-1];e.icon&&(d.icon=F(e.icon,a)),e.class&&(d.class=F(e.class,a))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,a,d=0,t=!1){if(e.level===0?e.section=void 0:e.section=t?(d-1)%(te-1):a,e.children)for(const[h,u]of e.children.entries()){const m=e.level===0?h%(te-1):a;this.assignSections(u,m,d+1,t)}}flattenNodes(e,a){const d=B(),t=["mindmap-node"];e.isRoot===!0?t.push("section-root","section--1"):e.section!==void 0&&t.push(`section-${e.section}`),e.class&&t.push(e.class);const h=t.join(" "),u=l(E=>{const D=(d.theme?.toLowerCase()??"").includes("redux");switch(E){case L.CIRCLE:return"mindmapCircle";case L.RECT:return"rect";case L.ROUNDED_RECT:return"rounded";case L.CLOUD:return"cloud";case L.BANG:return"bang";case L.HEXAGON:return"hexagon";case L.DEFAULT:return D?"rounded":"defaultMindmapNode";case L.NO_BORDER:default:return"rect"}},"getShapeFromType"),m={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:u(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:h,cssStyles:[],centerLabel:!0,look:d.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(a.push(m),e.children)for(const E of e.children)this.flattenNodes(E,a)}generateEdges(e,a){if(!e.children)return;const d=B();for(const t of e.children){let h="edge";t.section!==void 0&&(h+=` section-edge-${t.section}`);const u=e.level+1;h+=` edge-depth-${u}`;const m={id:`edge_${e.id}_${t.id}`,start:e.id.toString(),end:t.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:d.look,classes:h,depth:e.level,section:t.section};a.push(m),this.generateEdges(t,a)}}getData(){const e=this.getMindmap(),a=B(),t=ge().layout!==void 0,h=a;if(t||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};C.debug("getData: mindmapRoot",e,a),this.assignSections(e,void 0,0,a.mindmap?.colorBy==="depth");const u=[],m=[];this.flattenNodes(e,u),this.generateEdges(e,m),C.debug(`getData: processed ${u.length} nodes and ${m.length} edges`);const E=new Map;for(const _ of u)E.set(_.id,{shape:_.shape,width:_.width,height:_.height,padding:_.padding});return{nodes:u,edges:m,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap"}}getLogger(){return C}},l(I,"MindmapDB"),I),Ee=l(async(n,e,a,d)=>{C.debug(`Rendering mindmap diagram
|
|
7
|
+
`+n);const t=d.db,h=t.getData(),u=ae(e,h.config.securityLevel);if(h.type=d.type,h.layoutAlgorithm=le(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,!t.getMindmap())return;h.nodes.forEach(g=>{g.shape==="rounded"?(g.radius=15,g.taper=15,g.stroke="none",g.width=0,g.padding=15):g.shape==="circle"?g.padding=10:g.shape==="rect"?(g.width=0,g.padding=10):g.shape==="hexagon"&&(g.width=0,g.height=0)}),await he(h,u);const{themeVariables:E}=de(),{useGradient:_,gradientStart:D,gradientStop:w}=E;if(_&&D&&w){const g=u.attr("id"),R=u.append("defs").append("linearGradient").attr("id",`${g}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",D).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}ce(u,h.config.mindmap?.padding??G.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??G.mindmap.useMaxWidth)},"draw"),_e={draw:Ee},ke=l(n=>{const{theme:e,look:a}=n;let d="";for(let t=0;t<n.THEME_COLOR_LIMIT;t++)n["lineColor"+t]=n["lineColor"+t]||n["cScaleInv"+t],ue(n["lineColor"+t])?n["lineColor"+t]=pe(n["lineColor"+t],20):n["lineColor"+t]=fe(n["lineColor"+t],20);for(let t=0;t<n.THEME_COLOR_LIMIT;t++){const h=""+(a==="neo"?Math.max(10-(t-1)*2,2):17-3*t),u=e==="redux"||e==="redux-dark"?n.nodeBorder:n["cScaleLabel"+(e==="neutral"?1:t)];d+=`
|
|
8
|
+
.section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
|
|
9
|
+
fill: ${n["cScale"+t]};
|
|
10
|
+
}
|
|
11
|
+
.section-${t-1} text {
|
|
12
|
+
fill: ${n["cScaleLabel"+t]};
|
|
13
|
+
}
|
|
14
|
+
.section-${t-1} span {
|
|
15
|
+
color: ${n["cScaleLabel"+t]};
|
|
16
|
+
}
|
|
17
|
+
.node-icon-${t-1} {
|
|
18
|
+
font-size: 40px;
|
|
19
|
+
color: ${n["cScaleLabel"+t]};
|
|
20
|
+
}
|
|
21
|
+
.section-edge-${t-1}{
|
|
22
|
+
stroke: ${n["cScale"+t]};
|
|
23
|
+
}
|
|
24
|
+
.edge-depth-${t-1}{
|
|
25
|
+
stroke-width: ${h};
|
|
26
|
+
}
|
|
27
|
+
.section-${t-1} line {
|
|
28
|
+
stroke: ${n["cScaleInv"+t]} ;
|
|
29
|
+
stroke-width: 3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
[data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
|
|
39
|
+
fill: ${e==="redux"||e==="redux-dark"||e==="neutral"?n.mainBkg:n["cScale"+t]};
|
|
40
|
+
stroke: ${e==="redux"||e==="redux-dark"?n.nodeBorder:n["cScale"+t]};
|
|
41
|
+
stroke-width: ${n.strokeWidth??2}px;
|
|
42
|
+
}
|
|
43
|
+
[data-look="neo"].section-edge-${t-1}{
|
|
44
|
+
stroke: ${e?.includes("redux")||e==="neo-dark"?n.nodeBorder:n["cScale"+t]};
|
|
45
|
+
}
|
|
46
|
+
[data-look="neo"].mindmap-node.section-${t-1} text, [data-look="neo"].mindmap-node.section-${t-1} span {
|
|
47
|
+
fill: ${u};
|
|
48
|
+
color: ${u};
|
|
49
|
+
}
|
|
50
|
+
`}return d},"genSections"),be=l((n,e,a)=>{let d="";for(let t=0;t<n;t++)d+=`
|
|
51
|
+
[data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
|
|
52
|
+
stroke: url(${e}-gradient);
|
|
53
|
+
fill: ${a};
|
|
54
|
+
}
|
|
55
|
+
.section-${t-1} line {
|
|
56
|
+
stroke-width: 0;
|
|
57
|
+
}`;return d},"genGradient"),Se=l(n=>{const{theme:e}=n,a=n.svgId,d=e?.includes("redux")?n.nodeBorder:n["cScaleLabel"+(e==="neutral"?1:0)],t=n.dropShadow?n.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none";return`
|
|
58
|
+
.edge {
|
|
59
|
+
stroke-width: 3;
|
|
60
|
+
}
|
|
61
|
+
${ke(n)}
|
|
62
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
+
fill: ${n.git0};
|
|
64
|
+
}
|
|
65
|
+
.section-root text {
|
|
66
|
+
fill: ${n.gitBranchLabel0};
|
|
67
|
+
}
|
|
68
|
+
.section-root span {
|
|
69
|
+
color: ${e?.includes("redux")?n.nodeBorder:n.gitBranchLabel0};
|
|
70
|
+
}
|
|
71
|
+
.icon-container {
|
|
72
|
+
height:100%;
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
.edge {
|
|
78
|
+
fill: none;
|
|
79
|
+
}
|
|
80
|
+
.mindmap-node-label {
|
|
81
|
+
dy: 1em;
|
|
82
|
+
alignment-baseline: middle;
|
|
83
|
+
text-anchor: middle;
|
|
84
|
+
dominant-baseline: middle;
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
[data-look="neo"].mindmap-node {
|
|
88
|
+
filter: ${t};
|
|
89
|
+
}
|
|
90
|
+
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
91
|
+
fill: ${e?.includes("redux")?n.mainBkg:n.git0};
|
|
92
|
+
}
|
|
93
|
+
[data-look="neo"].mindmap-node.section-root .text-inner-tspan, [data-look="neo"].mindmap-node.section-root span {
|
|
94
|
+
fill: ${d};
|
|
95
|
+
color: ${d};
|
|
96
|
+
}
|
|
97
|
+
${n.useGradient&&a&&n.mainBkg?be(n.THEME_COLOR_LIMIT,a,n.mainBkg):""}
|
|
98
|
+
`},"getStyles"),Ne=Se,ve={get db(){return new ye},renderer:_e,parser:me,styles:Ne};export{ve as diagram};
|