@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
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import{g as Fe}from"./O55LMojB.js";import{aE as Me,ag as xe,aG as Ke,bx as We,bw as Ye,bz as Ve,by as Ue,bt as Ge,br as He,bk as Xe,b3 as je,aX as qe,aW as Je,aO as Ze,av as Qe,au as $e,aw as et,a3 as tt,a2 as st,T as rt,p as it,S as at,i as nt,j as ot,g as ct,c as u,a7 as P,bc as H,as as lt,aS as ut,I as ht,aN as y,w as gt,aB as dt,ba as pt,an as ft,E as bt,b9 as St,u as xt,a8 as Le,aq as Lt,ar as mt,b0 as yt,G as wt,ae as Et,at as me,bq as kt,b1 as _t}from"./D57k4GEE.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?vt(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return Ct(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case je:case Xe:case He:case Ge:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function vt(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function Ct(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,d,i,l){for(i=i||{},l=v.length;l--;i[v[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,C,ee,M={},U,B,pe,G;;){if(R=l[l.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=K[R]&&K[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";G=[];for(U in K[R])this.terminals_[U]&&U>J&&G.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
|
|
2
|
+
`+D.showPosition()+`
|
|
3
|
+
Expecting `+G.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(F+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:G})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(C[0]){case 1:l.push(N),E.push(D.yytext),r.push(D.yylloc),l.push(C[1]),N=null,Y=D.yyleng,n=D.yytext,F=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[C[1]][1],M.$=E[E.length-B],M._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Re&&(M._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),ee=this.performAction.apply(M,[n,Y,F,z.yy,C[1],E,r].concat(Z)),typeof ee<"u")return ee;B&&(l=l.slice(0,-1*B*2),E=E.slice(0,-1*B),r=r.slice(0,-1*B)),l.push(this.productions_[C[1]][0]),E.push(M.$),r.push(M._$),pe=K[l[l.length-2]][l[l.length-1]],l.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var v={EOF:1,parseError:u(function(i,l){if(this.yy.parser)this.yy.parser.parseError(i,l);else throw new Error(i)},"parseError"),setInput:u(function(d,i){return this.yy=i||this.yy||{},this._input=d,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:u(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var i=d.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),d},"input"),unput:u(function(d){var i=d.length,l=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;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 E=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-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(d){this.unput(this.match.slice(d))},"less"),pastInput:u(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var d=this.pastInput(),i=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
5
|
+
`+i+"^"},"showPosition"),test_match:u(function(d,i){var l,p,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),p=d[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+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,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(d[0].length),this.matched+=d[0],l=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var r in E)this[r]=E[r];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,i,l,p;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),r=0;r<E.length;r++)if(l=this._input.match(this.rules[E[r]]),l&&(!i||l[0].length>i[0].length)){if(i=l,p=r,this.options.backtrack_lexer){if(d=this.test_match(l,E[r]),d!==!1)return d;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(d=this.test_match(i,E[p]),d!==!1?d:!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:u(function(){var i=this.next();return i||this.lex()},"lex"),begin:u(function(i){this.conditionStack.push(i)},"begin"),popState:u(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(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:u(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:u(function(i){this.begin(i)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:u(function(i,l,p,E){switch(p){case 0:return i.getLogger().debug("Found block-beta"),10;case 1:return i.getLogger().debug("Found id-block"),29;case 2:return i.getLogger().debug("Found block"),10;case 3:i.getLogger().debug(".",l.yytext);break;case 4:i.getLogger().debug("_",l.yytext);break;case 5:return 5;case 6:return l.yytext=-1,28;case 7:return l.yytext=l.yytext.replace(/columns\s+/,""),i.getLogger().debug("COLUMNS (LEX)",l.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:i.getLogger().debug("LEX: POPPING STR:",l.yytext),this.popState();break;case 13:return i.getLogger().debug("LEX: STR end:",l.yytext),"STR";case 14:return l.yytext=l.yytext.replace(/space\:/,""),i.getLogger().debug("SPACE NUM (LEX)",l.yytext),21;case 15:return l.yytext="1",i.getLogger().debug("COLUMNS (LEX)",l.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),i.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),i.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),i.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),i.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),i.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),i.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),i.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),i.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),i.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),i.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),i.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),i.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),i.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),i.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),i.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),i.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),i.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return i.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return i.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return i.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return i.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return i.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return i.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return i.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return i.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return i.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return i.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return i.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return i.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),i.getLogger().debug("LEX ARR START"),37;case 74:return i.getLogger().debug("Lex: NODE_ID",l.yytext),31;case 75:return i.getLogger().debug("Lex: EOF",l.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:i.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:i.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return i.getLogger().debug("LEX: NODE_DESCR:",l.yytext),"NODE_DESCR";case 83:i.getLogger().debug("LEX POPPING"),this.popState();break;case 84:i.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return l.yytext=l.yytext.replace(/^,\s*/,""),i.getLogger().debug("Lex (right): dir:",l.yytext),"DIR";case 86:return l.yytext=l.yytext.replace(/^,\s*/,""),i.getLogger().debug("Lex (left):",l.yytext),"DIR";case 87:return l.yytext=l.yytext.replace(/^,\s*/,""),i.getLogger().debug("Lex (x):",l.yytext),"DIR";case 88:return l.yytext=l.yytext.replace(/^,\s*/,""),i.getLogger().debug("Lex (y):",l.yytext),"DIR";case 89:return l.yytext=l.yytext.replace(/^,\s*/,""),i.getLogger().debug("Lex (up):",l.yytext),"DIR";case 90:return l.yytext=l.yytext.replace(/^,\s*/,""),i.getLogger().debug("Lex (down):",l.yytext),"DIR";case 91:return l.yytext="]>",i.getLogger().debug("Lex (ARROW_DIR end):",l.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return i.getLogger().debug("Lex: LINK","#"+l.yytext+"#"),15;case 93:return i.getLogger().debug("Lex: LINK",l.yytext),15;case 94:return i.getLogger().debug("Lex: LINK",l.yytext),15;case 95:return i.getLogger().debug("Lex: LINK",l.yytext),15;case 96:return i.getLogger().debug("Lex: START_LINK",l.yytext),this.pushState("LLABEL"),16;case 97:return i.getLogger().debug("Lex: START_LINK",l.yytext),this.pushState("LLABEL"),16;case 98:return i.getLogger().debug("Lex: START_LINK",l.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return i.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),i.getLogger().debug("Lex: LINK","#"+l.yytext+"#"),15;case 102:return this.popState(),i.getLogger().debug("Lex: LINK",l.yytext),15;case 103:return this.popState(),i.getLogger().debug("Lex: LINK",l.yytext),15;case 104:return i.getLogger().debug("Lex: COLON",l.yytext),l.yytext=l.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return v})();k.lexer=T;function O(){this.yy={}}return u(O,"Parser"),O.prototype=k,k.Parser=O,new O})();ie.parser=ie;var At=ie,A=new Map,oe=[],ae=new Map,fe="color",be="fill",zt="bgFill",ye=",",X=new Map,ce="",Bt=u(e=>wt.sanitizeText(e,Le()),"sanitizeText"),Rt=u(function(e,a=""){let o=X.get(e);o||(o={id:e,styles:[],textStyles:[]},X.set(e,o)),a?.split(ye).forEach(s=>{const c=s.replace(/([^;]*);/,"$1").trim();if(RegExp(fe).exec(s)){const t=c.replace(be,zt).replace(fe,be);o.textStyles.push(t)}o.styles.push(c)})},"addStyleClass"),Pt=u(function(e,a=""){const o=A.get(e);a!=null&&(o.styles=a.split(ye))},"addStyle2Node"),Ft=u(function(e,a){e.split(",").forEach(function(o){let s=A.get(o);if(s===void 0){const c=o.trim();s={id:c,type:"na",children:[]},A.set(c,s)}s.classes||(s.classes=[]),s.classes.push(a)})},"setCssClass"),we=0,Ee=u((e,a)=>{const o=e.flat(),s=[],g=o.find(t=>t?.type==="column-setting")?.columns??-1;for(const t of o){if(typeof g=="number"&&g>0&&t.type!=="column-setting"&&typeof t.widthInColumns=="number"&&t.widthInColumns>g&&y.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${g}`),t.label&&(t.label=Bt(t.label)),t.type==="classDef"){Rt(t.id,t.css);continue}if(t.type==="applyClass"){Ft(t.id,t?.styleClass??"");continue}if(t.type==="applyStyles"){t?.stylesStr&&Pt(t.id,t?.stylesStr);continue}if(t.type==="column-setting")a.columns=t.columns??-1;else if(t.type==="edge"){const h=(ae.get(t.id)??0)+1;ae.set(t.id,h),t.id=h+"-"+t.id,oe.push(t)}else{t.label||(t.type==="composite"?t.label="":t.label=t.id);const h=A.get(t.id);if(h===void 0?(t.type==="composite"&&(t.colorIndex=we++),A.set(t.id,t)):(t.type!=="na"&&(h.type=t.type),t.label!==t.id&&(h.label=t.label)),t.children&&Ee(t.children,t),t.type==="space"){const x=t.width??1;for(let L=0;L<x;L++){const b=Nt(t);b.id=b.id+"-"+L,A.set(b.id,b),s.push(b)}}else h===void 0&&s.push(t)}}a.children=s},"populateBlockDatabase"),le=[],W={id:"root",type:"composite",children:[],columns:-1},Mt=u(()=>{y.debug("Clear called"),gt(),W={id:"root",type:"composite",children:[],columns:-1},A=new Map([["root",W]]),le=[],X=new Map,oe=[],ae=new Map,ce="",we=0},"clear");function ke(e){switch(y.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return y.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}u(ke,"typeStr2Type");function _e(e){switch(y.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}u(_e,"edgeTypeStr2Type");function De(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}u(De,"edgeStrToEdgeData");function Te(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}u(Te,"edgeStrToEdgeStartData");function Ne(e){return e.includes("==")?"thick":"normal"}u(Ne,"edgeStrToThickness");function Ie(e){return e.includes(".-")?"dotted":"solid"}u(Ie,"edgeStrToPattern");var Se=0,Kt=u(()=>(Se++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Se),"generateId"),Wt=u(e=>{W.children=e,Ee(e,W),le=W.children},"setHierarchy"),Yt=u(e=>{const a=A.get(e);return a?a.columns?a.columns:a.children?a.children.length:-1:-1},"getColumns"),Vt=u(()=>[...A.values()],"getBlocksFlat"),Ut=u(()=>le||[],"getBlocks"),Gt=u(()=>oe,"getEdges"),Ht=u(e=>A.get(e),"getBlock"),Xt=u(e=>{A.set(e.id,e)},"setBlock"),jt=u(e=>{ce=e},"setDiagramId"),qt=u(()=>ce,"getDiagramId"),Jt=u(()=>y,"getLogger"),Zt=u(function(){return X},"getClasses"),Qt={getConfig:u(()=>P().block,"getConfig"),typeStr2Type:ke,edgeTypeStr2Type:_e,edgeStrToEdgeData:De,edgeStrToEdgeStartData:Te,edgeStrToThickness:Ne,edgeStrToPattern:Ie,getLogger:Jt,getBlocksFlat:Vt,getBlocks:Ut,getEdges:Gt,setHierarchy:Wt,getBlock:Ht,setBlock:Xt,getColumns:Yt,getClasses:Zt,clear:Mt,generateId:Kt,setDiagramId:jt,getDiagramId:qt},$t=Qt,es=u(e=>{const{theme:a,bkgColorArray:o,borderColorArray:s}=e;if(!dt(a,s))return"";const c=pt(e.look),g=ft(o);let t="";for(let h=0;h<bt(e.THEME_COLOR_LIMIT,s);h++){const x=s[h%s.length],L=g?`fill: ${o[h%o.length]};`:"",b=`[data-look="${c}"][data-color-id="color-${h}"]`;t+=`
|
|
7
|
+
|
|
8
|
+
${b}.node rect.composite {
|
|
9
|
+
stroke: ${x};
|
|
10
|
+
${L}
|
|
11
|
+
}
|
|
12
|
+
`}return t},"genColor"),re=u((e,a)=>{const o=xt,s=o(e,"r"),c=o(e,"g"),g=o(e,"b");return St(s,c,g,a)},"fade"),ts=u(e=>`${es(e)}
|
|
13
|
+
.label {
|
|
14
|
+
font-family: ${e.fontFamily};
|
|
15
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
16
|
+
}
|
|
17
|
+
.cluster-label text {
|
|
18
|
+
fill: ${e.titleColor};
|
|
19
|
+
}
|
|
20
|
+
.cluster-label span {
|
|
21
|
+
color: ${e.titleColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.label text,span {
|
|
27
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
28
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.node rect,
|
|
32
|
+
.node circle,
|
|
33
|
+
.node ellipse,
|
|
34
|
+
.node polygon,
|
|
35
|
+
.node path {
|
|
36
|
+
fill: ${e.mainBkg};
|
|
37
|
+
stroke: ${e.nodeBorder};
|
|
38
|
+
/* From the theme, as every other diagram does. Pinned at 1px here, so block drew a
|
|
39
|
+
thinner border than an identical flowchart node under any theme asking for more --
|
|
40
|
+
the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke
|
|
41
|
+
and filter, never stroke-width. */
|
|
42
|
+
stroke-width: ${e.strokeWidth??1}px;
|
|
43
|
+
}
|
|
44
|
+
.flowchart-label text {
|
|
45
|
+
text-anchor: middle;
|
|
46
|
+
}
|
|
47
|
+
// .flowchart-label .text-outer-tspan {
|
|
48
|
+
// text-anchor: middle;
|
|
49
|
+
// }
|
|
50
|
+
// .flowchart-label .text-inner-tspan {
|
|
51
|
+
// text-anchor: start;
|
|
52
|
+
// }
|
|
53
|
+
|
|
54
|
+
.node .label {
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
.node.clickable {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.arrowheadPath {
|
|
62
|
+
fill: ${e.arrowheadColor};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.edgePaths .path {
|
|
66
|
+
stroke: ${e.lineColor};
|
|
67
|
+
stroke-width: 2.0px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flowchart-link {
|
|
71
|
+
stroke: ${e.lineColor};
|
|
72
|
+
fill: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${e.edgeLabelBackground};
|
|
77
|
+
/*
|
|
78
|
+
* This is for backward compatibility with existing code that didn't
|
|
79
|
+
* add a \`<p>\` around edge labels.
|
|
80
|
+
*
|
|
81
|
+
* TODO: We should probably remove this in a future release.
|
|
82
|
+
*/
|
|
83
|
+
p {
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
display: inline;
|
|
87
|
+
}
|
|
88
|
+
rect {
|
|
89
|
+
opacity: 0.5;
|
|
90
|
+
background-color: ${e.edgeLabelBackground};
|
|
91
|
+
fill: ${e.edgeLabelBackground};
|
|
92
|
+
}
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* For html labels only */
|
|
97
|
+
.labelBkg {
|
|
98
|
+
background-color: ${e.edgeLabelBackground};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.node .cluster {
|
|
102
|
+
// fill: ${re(e.mainBkg,.5)};
|
|
103
|
+
fill: ${re(e.clusterBkg,.5)};
|
|
104
|
+
stroke: ${re(e.clusterBorder,.2)};
|
|
105
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
106
|
+
stroke-width: 1px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cluster text {
|
|
110
|
+
fill: ${e.titleColor};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cluster span {
|
|
114
|
+
color: ${e.titleColor};
|
|
115
|
+
}
|
|
116
|
+
/* .cluster div {
|
|
117
|
+
color: ${e.titleColor};
|
|
118
|
+
} */
|
|
119
|
+
|
|
120
|
+
div.mermaidTooltip {
|
|
121
|
+
position: absolute;
|
|
122
|
+
text-align: center;
|
|
123
|
+
max-width: 200px;
|
|
124
|
+
padding: 2px;
|
|
125
|
+
font-family: ${e.fontFamily};
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
background: ${e.tertiaryColor};
|
|
128
|
+
border: 1px solid ${e.border2};
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
z-index: 100;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.flowchartTitleText {
|
|
135
|
+
text-anchor: middle;
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
fill: ${e.textColor};
|
|
138
|
+
}
|
|
139
|
+
${Fe()}
|
|
140
|
+
`,"getStyles"),ss=ts;function ne(e,a){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(e<0)return{px:a,py:0};if(e===1)return{px:0,py:a};const o=a%e,s=Math.floor(a/e);return{px:o,py:s}}u(ne,"calculateBlockPosition");var rs=u(e=>{let a=0,o=0;for(const s of e.children){const{width:c,height:g,x:t,y:h}=s.size??{width:0,height:0,x:0,y:0};if(y.debug("getMaxChildSize abc95 child:",s.id,"width:",c,"height:",g,"x:",t,"y:",h,s.type),s.type==="space")continue;const x=c/(s.widthInColumns??1);x>a&&(a=x),g>o&&(o=g)}return{width:a,height:o}},"getMaxChildSize");function j(e,a,o=0,s=0,c=8){y.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",o),e?.size?.width||(e.size={width:o,height:s,x:0,y:0});let g=0,t=0;if(e.children?.length>0){for(const S of e.children)j(S,a,0,0,c);const h=rs(e);g=h.width,t=h.height,y.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",g,t);for(const S of e.children)S.size&&(y.debug(`abc95 Setting size of children of ${e.id} id=${S.id} ${g} ${t} ${JSON.stringify(S.size)}`),S.size.width=g*(S.widthInColumns??1)+c*((S.widthInColumns??1)-1),S.size.height=t,S.size.x=0,S.size.y=0,y.debug(`abc95 updating size of ${e.id} children child:${S.id} maxWidth:${g} maxHeight:${t}`));for(const S of e.children)j(S,a,g,t,c);const x=e.columns??-1;let L=0;for(const S of e.children)L+=S.widthInColumns??1;let b=e.children.length;x>0&&x<L&&(b=x);const f=Math.ceil(L/b);let m=b*(g+c)+c,w=f*(t+c)+c;if(m<o){y.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${o} siblingHeight ${s} width ${m}`),m=o,w=s;const S=(o-b*c-c)/b,_=(s-f*c-c)/f;y.debug("Size indata abc88",e.id,"childWidth",S,"maxWidth",g),y.debug("Size indata abc88",e.id,"childHeight",_,"maxHeight",t),y.debug("Size indata abc88 xSize",b,"padding",c);for(const k of e.children)k.size&&(k.size.width=S,k.size.height=_,k.size.x=0,k.size.y=0)}if(y.debug(`abc95 (finale calc) ${e.id} xSize ${b} ySize ${f} columns ${x}${e.children.length} width=${Math.max(m,e.size?.width||0)}`),m<(e?.size?.width||0)){m=e?.size?.width||0;const S=x>0?Math.min(e.children.length,x):e.children.length;if(S>0){const _=(m-S*c-c)/S;y.debug("abc95 (growing to fit) width",e.id,m,e.size?.width,_);for(const k of e.children)k.size&&(k.size.width=_)}}e.size={width:m,height:w,x:0,y:0}}y.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}u(j,"setBlockSizes");function ue(e,a,o=8){y.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);const s=e.columns??-1;if(y.debug("layoutBlocks columns abc95",e.id,"=>",s,e),e.children&&e.children.length>0){const c=e?.children[0]?.size?.width??0,g=e.children.length*c+(e.children.length-1)*o;y.debug("widthOfChildren 88",g,"posX");const t=new Map;{let f=0;for(const m of e.children){if(!m.size)continue;const{py:w}=ne(s,f),S=t.get(w)??0;m.size.height>S&&t.set(w,m.size.height);let _=m?.widthInColumns??1;s>0&&(_=Math.min(_,s-f%s)),f+=_}}const h=new Map;{let f=0;const m=[...t.keys()].sort((w,S)=>w-S);for(const w of m)h.set(w,f),f+=(t.get(w)??0)+o}let x=0;y.debug("abc91 block?.size?.x",e.id,e?.size?.x);let L=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-o,b=0;for(const f of e.children){const m=e;if(!f.size)continue;const{width:w,height:S}=f.size,{px:_,py:k}=ne(s,x);if(k!=b&&(b=k,L=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-o,y.debug("New row in layout for block",e.id," and child ",f.id,b)),y.debug(`abc89 layout blocks (child) id: ${f.id} Pos: ${x} (px, py) ${_},${k} (${m?.size?.x},${m?.size?.y}) parent: ${m.id} width: ${w}${o}`),m.size){const O=w/2;f.size.x=L+o+O,y.debug(`abc91 layout blocks (calc) px, pyid:${f.id} startingPos=X${L} new startingPosX${f.size.x} ${O} padding=${o} width=${w} halfWidth=${O} => x:${f.size.x} y:${f.size.y} ${f.widthInColumns} (width * (child?.w || 1)) / 2 ${w*(f?.widthInColumns??1)/2}`),L=f.size.x+O;const v=h.get(k)??0,d=t.get(k)??S;f.size.y=m.size.y-m.size.height/2+v+d/2+o,y.debug(`abc88 layout blocks (calc) px, pyid:${f.id}startingPosX${L}${o}${O}=>x:${f.size.x}y:${f.size.y}${f.widthInColumns}(width * (child?.w || 1)) / 2${w*(f?.widthInColumns??1)/2}`)}f.children&&ue(f,a,o);let T=f?.widthInColumns??1;s>0&&(T=Math.min(T,s-x%s)),x+=T,y.debug("abc88 columnsPos",f,x)}}y.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}u(ue,"layoutBlocks");function he(e,{minX:a,minY:o,maxX:s,maxY:c}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:g,y:t,width:h,height:x}=e.size;g-h/2<a&&(a=g-h/2),t-x/2<o&&(o=t-x/2),g+h/2>s&&(s=g+h/2),t+x/2>c&&(c=t+x/2)}if(e.children)for(const g of e.children)({minX:a,minY:o,maxX:s,maxY:c}=he(g,{minX:a,minY:o,maxX:s,maxY:c}));return{minX:a,minY:o,maxX:s,maxY:c}}u(he,"findBounds");function Oe(e){const a=e.getBlock("root");if(!a)return;const o=Le()?.block?.padding??8;j(a,e,0,0,o),ue(a,e,o),y.debug("getBlocks",JSON.stringify(a,null,2));const{minX:s,minY:c,maxX:g,maxY:t}=he(a),h=t-c,x=g-s;return{x:s,y:c,width:x,height:h}}u(Oe,"layout");function ge(e,a,o=!1){const s=e;let c="default";(s?.classes?.length||0)>0&&(c=(s?.classes??[]).join(" ")),c=c+" flowchart-label";const g=(s?.classes??[]).flatMap(S=>a.getClasses().get(S)?.styles??[]);let t=0,h="rect",x;switch(s.type){case"round":t=5,h="rect";break;case"composite":t=0,h="composite",x=0;break;case"square":h="rect";break;case"diamond":h="question";break;case"hexagon":h="hexagon";break;case"block_arrow":h="block_arrow";break;case"odd":h="rect_left_inv_arrow";break;case"lean_right":h="lean_right";break;case"lean_left":h="lean_left";break;case"trapezoid":h="trapezoid";break;case"inv_trapezoid":h="inv_trapezoid";break;case"rect_left_inv_arrow":h="rect_left_inv_arrow";break;case"circle":h="circle";break;case"ellipse":h="ellipse";break;case"stadium":h="stadium";break;case"subroutine":h="subroutine";break;case"cylinder":h="cylinder";break;case"group":h="rect";break;case"doublecircle":h="doublecircle";break;default:h="rect"}const L=Et(s?.styles??[]),b=s.label,f=s.size??{width:0,height:0,x:0,y:0},m=a.getDiagramId();return{labelStyle:L.labelStyle,shape:h,label:b,labelText:b,rx:t,ry:t,class:c,cssClasses:c,cssStyles:s?.styles??[],cssCompiledStyles:g,style:L.style,id:s.id,domId:m?`${m}-${s.id}`:s.id,isGroup:!1,directions:s.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||Number.POSITIVE_INFINITY,x:f.x,y:f.y,positioned:o,intersect:void 0,padding:x??P()?.block?.padding??0,widthInColumns:s.widthInColumns??1,colorIndex:s.colorIndex,look:P().look}}u(ge,"getNodeFromBlock");async function ve(e,a,o){const s=ge(a,o,!1);if(a.type==="group")return;const c=P(),g=await me(e,s,{config:c}),t=g.node()?.getBBox()??{width:0,height:0},h=o.getBlock(s.id);h.size={width:t.width,height:t.height,x:0,y:0,node:g},o.setBlock(h),g.remove()}u(ve,"calculateBlockSize");async function Ce(e,a,o){const s=ge(a,o,!0);if(o.getBlock(s.id).type!=="space"){const g=P(),t=await me(e,s,{config:g});s.colorIndex!==void 0&&kt(t,s.colorIndex,g.theme,g.themeVariables?.borderColorArray),a.intersect=s?.intersect,_t(s)}}u(Ce,"insertBlockPositioned");async function q(e,a,o,s){for(const c of a)await s(e,c,o),c.children&&await q(e,c.children,o,s)}u(q,"performOperations");async function Ae(e,a,o){await q(e,a,o,ve)}u(Ae,"calculateBlockSizes");async function ze(e,a,o){await q(e,a,o,Ce)}u(ze,"insertBlocks");async function Be(e,a,o,s,c){const g=new Dt({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const t of o)t.size&&g.setNode(t.id,{width:t.size.width,height:t.size.height,intersect:t.intersect});for(const t of a)if(t.start&&t.end){const h=s.getBlock(t.start),x=s.getBlock(t.end);if(h?.size&&x?.size){const L=h.size,b=x.size,f=[{x:L.x,y:L.y},{x:L.x+(b.x-L.x)/2,y:L.y+(b.y-L.y)/2},{x:b.x,y:b.y}],m=c?`${c}-${t.id}`:t.id,w=t.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",S=t.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",_=`${w} ${S} flowchart-link LS-a1 LE-b1`;Lt(e,{...t,id:m,arrowTypeEnd:t.arrowTypeEnd,arrowTypeStart:t.arrowTypeStart,points:f,classes:_},{},"block",g.node(t.start),g.node(t.end),c),t.label&&(await mt(e,{...t,label:t.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:t.arrowTypeEnd,arrowTypeStart:t.arrowTypeStart,points:f,classes:_}),yt({...t,x:f[1].x,y:f[1].y},{originalPath:f}))}}}u(Be,"insertEdges");var is=u(function(e,a){return a.db.getClasses()},"getClasses"),as=u(async function(e,a,o,s){const{securityLevel:c,block:g}=P(),t=s.db;t.setDiagramId(a);let h;c==="sandbox"&&(h=H("#i"+a));const x=c==="sandbox"?H(h.nodes()[0].contentDocument.body):H("body"),L=c==="sandbox"?x.select(`[id="${a}"]`):H(`[id="${a}"]`);lt(L,P()),ut(L,["point","circle","cross"],s.type,a);const f=t.getBlocks(),m=t.getBlocksFlat(),w=t.getEdges(),S=L.insert("g").attr("class","block");await Ae(S,f,t);const _=Oe(t);await ze(S,f,t),await Be(S,w,m,t,a);const k=S.node()?.getBBox(),T=k&&Number.isFinite(k.width)&&Number.isFinite(k.height)?k:_;if(T){const O=Math.max(1,Math.round(.125*(T.width/T.height))),v=T.height+O+10,d=T.width+10,{useMaxWidth:i}=g;ht(L,v,d,!!i),y.debug("Here Bounds",_,T),L.attr("viewBox",`${T.x-5} ${T.y-5} ${T.width+10} ${T.height+10}`)}},"draw"),ns={draw:as,getClasses:is},us={parser:At,db:$t,renderer:ns,styles:ss};export{us as diagram};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{p as re}from"./CoiqgZqV.js";import{a9 as oe,bi as se,bf as de,a5 as le,a6 as ce,bg as me,c as o,aN as g,a8 as R,bc as ue,bm as xe,w as fe,v as ge,a7 as B,W as he,bb as P,bE as S,r as be}from"./D57k4GEE.js";import{p as pe,i as ve}from"./ClebXGIM.js";var D="position frame",N="frame positioned",k="position relation",T="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){w={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...B().eventmodeling}),"getConfig"),w={};function I(){let e=Fe;const{ast:n}=w,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:D,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:k,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:k,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(I,"getState");function O(e){w.ast=void 0;const n=new Set;for(const t of e.frames){if(n.has(t.name)){const i=t.$cstNode?.range.start.line,a=i===void 0?"":` on line ${i+1}`;throw new Error(`Duplicate event modeling frame ID "${t.name}"${a}`)}n.add(t.name)}w.ast=e}o(O,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function p(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(p,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:p(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:p(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:p(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=B();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=B(),a=P(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${S(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const b=n.find(y=>y.name===e.dataReference?.$refText);b&&(r=b.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
|
+
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=be(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:N,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let b=1;b<f.length;b++){const y=f[b],$=f[b-1];y.y=$.y+$.height+s.swimlaneGap}return h}o(Y,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function F(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(F,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(z(t.index,t.frame))return[];const i=F(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;if(t.sourceFrame)a=F(e.boxes,t.sourceFrame);else{if(ve(t.frame))return[];a=q(e.boxes,i.swimlane.index,t.index-1)}return a===void 0?[]:[{$kind:T,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[D]:V,[k]:J},Be={[N]:Y,[T]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var M={getConfig:ke,preserveCommentsWhenParsing:!0,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:O,getDiagramProps:E,getState:I},Ee={parse:o(async e=>{const n=await pe("eventmodeling",e);g.debug(n),M.setAst(n),re(n,M)},"parse")},Ae=R(),$e=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Re=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
|
|
3
|
+
`,"id:",n,t),!$e)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=R(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),De={draw:Re},Ne=o(e=>"","getStyles"),Te=Ne,We={parser:Ee,db:M,renderer:De,styles:Te};export{We as diagram};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{s as ge}from"./Dyv7eW7r.js";import{p as ye}from"./CoiqgZqV.js";import{c as w,ah as Se,a7 as ae,v as ee,bd as ve,I as xe,aN as te,bs as B,bc as U,bg as be,a6 as we,bi as Ce,a9 as Te,a5 as Le,bf as $e,W as Ae,aD as Fe,w as Ne}from"./D57k4GEE.js";import{p as Me}from"./ClebXGIM.js";import{f as O}from"./CrowFXzY.js";import{o as Q}from"./CmKTTxBW.js";function _e(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function ke(){return this.eachAfter(_e)}function ze(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Ve(t,a){for(var l=this,n=[l],s,i,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(i=s.length-1;i>=0;--i)n.push(s[i]);return this}function De(t,a){for(var l=this,n=[l],s=[],i,h,d,g=-1;l=n.pop();)if(s.push(l),i=l.children)for(h=0,d=i.length;h<d;++h)n.push(i[h]);for(;l=s.pop();)t.call(a,l,++g,this);return this}function Pe(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function Be(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function We(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Ee(t){for(var a=this,l=Re(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function Re(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ie(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function He(){return Array.from(this)}function Oe(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ge(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*qe(){var t=this,a,l=[t],n,s,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,i=n.length;s<i;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=je)):a===void 0&&(a=Ye);for(var l=new Z(t),n,s=[l],i,h,d,g;n=s.pop();)if((h=a(n.data))&&(g=(h=Array.from(h)).length))for(n.children=h,d=g-1;d>=0;--d)s.push(i=h[d]=new Z(h[d])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ze)}function Xe(){return ne(this).eachBefore(Ue)}function Ye(t){return t.children}function je(t){return Array.isArray(t)?t[1]:null}function Ue(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ze(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Z(t){this.data=t,this.depth=this.height=0,this.parent=null}Z.prototype=ne.prototype={constructor:Z,count:ke,each:ze,eachAfter:De,eachBefore:Ve,find:Pe,sum:Be,sort:We,path:Ee,ancestors:Ie,descendants:He,leaves:Oe,links:Ge,copy:Xe,[Symbol.iterator]:qe};function Je(t){if(typeof t!="function")throw new Error;return t}function G(){return 0}function q(t){return function(){return t}}function Ke(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Qe(t,a,l,n,s){for(var i=t.children,h,d=-1,g=i.length,c=t.value&&(n-a)/t.value;++d<g;)h=i[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*c}function et(t,a,l,n,s){for(var i=t.children,h,d=-1,g=i.length,c=t.value&&(s-l)/t.value;++d<g;)h=i[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*c}var tt=(1+Math.sqrt(5))/2;function at(t,a,l,n,s,i){for(var h=[],d=a.children,g,c,u=0,b=0,r=d.length,x,S,v=a.value,p,y,N,$,V,R,M;u<r;){x=s-l,S=i-n;do p=d[b++].value;while(!p&&b<r);for(y=N=p,R=Math.max(S/x,x/S)/(v*t),M=p*p*R,V=Math.max(N/M,M/y);b<r;++b){if(p+=c=d[b].value,c<y&&(y=c),c>N&&(N=c),M=p*p*R,$=Math.max(N/M,M/y),$>V){p-=c;break}V=$}h.push(g={value:p,dice:x<S,children:d.slice(u,b)}),g.dice?Qe(g,l,n,s,v?n+=S*p/v:i):et(g,l,n,v?l+=x*p/v:s,i),v-=p,u=b}return h}const nt=(function t(a){function l(n,s,i,h,d){at(a,n,s,i,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(tt);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],i=G,h=G,d=G,g=G,c=G;function u(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(b),s=[0],a&&r.eachBefore(Ke),r}function b(r){var x=s[r.depth],S=r.x0+x,v=r.y0+x,p=r.x1-x,y=r.y1-x;p<S&&(S=p=(S+p)/2),y<v&&(v=y=(v+y)/2),r.x0=S,r.y0=v,r.x1=p,r.y1=y,r.children&&(x=s[r.depth+1]=i(r)/2,S+=c(r)-x,v+=h(r)-x,p-=d(r)-x,y-=g(r)-x,p<S&&(S=p=(S+p)/2),y<v&&(v=y=(v+y)/2),t(r,S,v,p,y))}return u.round=function(r){return arguments.length?(a=!!r,u):a},u.size=function(r){return arguments.length?(l=+r[0],n=+r[1],u):[l,n]},u.tile=function(r){return arguments.length?(t=Je(r),u):t},u.padding=function(r){return arguments.length?u.paddingInner(r).paddingOuter(r):u.paddingInner()},u.paddingInner=function(r){return arguments.length?(i=typeof r=="function"?r:q(+r),u):i},u.paddingOuter=function(r){return arguments.length?u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r):u.paddingTop()},u.paddingTop=function(r){return arguments.length?(h=typeof r=="function"?r:q(+r),u):h},u.paddingRight=function(r){return arguments.length?(d=typeof r=="function"?r:q(+r),u):d},u.paddingBottom=function(r){return arguments.length?(g=typeof r=="function"?r:q(+r),u):g},u.paddingLeft=function(r){return arguments.length?(c=typeof r=="function"?r:q(+r),u):c},u}var E,oe=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=be,this.getAccTitle=we,this.setDiagramTitle=Ce,this.getDiagramTitle=Te,this.getAccDescription=Le,this.setAccDescription=$e}getNodes(){return this.nodes}getConfig(){const a=Ae,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(i=>{Fe(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ne(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(E,"TreeMapDB"),E);function ce(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const i=l[l.length-1].node;i.children?i.children.push(s):i.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}w(ce,"buildHierarchy");var st=w((t,a)=>{ye(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const h=i.item;if(!h)continue;const d=i.indent?parseInt(i.indent):0,g=rt(h),c=h.classSelector?a.getStylesForClass(h.classSelector):[],u=c.length>0?c:void 0,b={level:d,name:g,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(b)}const n=ce(l),s=w((i,h)=>{for(const d of i)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=w(t=>t.name?String(t.name):"","getItemName"),he={parser:{yy:void 0},parse:w(async t=>{try{const l=await Me("treemap",t);te.debug("Treemap AST:",l);const n=he.parser?.yy;if(!(n instanceof oe))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=w((t,a,l,n)=>{const s=n.db,i=s.getConfig(),h=i.padding??it,d=s.getDiagramTitle(),g=s.getRoot(),{themeVariables:c}=ae();if(!g)return;const u=d?30:0,b=ve(a),r=i.nodeWidth?i.nodeWidth*W:960,x=i.nodeHeight?i.nodeHeight*W:500,S=r,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),xe(b,v,S,i.useMaxWidth);let p;try{const e=i.valueFormat||",";if(e==="$0,0")p=w(o=>"$"+O(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),f=o?o[0]:"";p=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);p=w(f=>"$"+O(o||"")(f),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const y=Q().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=Q().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),$=Q().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);d&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const V=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(g).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),le=lt().size([r,x]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),de=le.descendants().filter(e=>e.children&&e.children.length>0),I=V.selectAll(".treemapSection").data(de).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);I.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),I.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),I.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=B({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),I.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,o)=>`url(#clip-section-${a}-${o})`).attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:e.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=U(this),f=e.data.name;o.text(f);const C=e.x1-e.x0,L=6;let T;i.showValues!==!1&&e.value?T=C-10-30-10-L:T=C-L-6;const m=Math.max(15,T),_=o.node();if(_.getComputedTextLength()>m){let z=f;for(;z.length>0;){if(z=f.substring(0,z.length-1),z.length===0){o.text("..."),_.getComputedTextLength()>m&&o.text("");break}if(o.text(z+"..."),_.getComputedTextLength()<=m)break}}}),i.showValues!==!1&&I.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:e.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ue=A?16:38,Y=A?14:28,D=A?4:8,H=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,j=V.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o=`text-anchor: middle; dominant-baseline: middle; font-size: ${ue}px;fill:`+$(e.data.name)+";",f=B({cssCompiledStyles:e.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=U(this),f=e.x1-e.x0,C=e.y1-e.y0,L=o.node(),T=f-2*J,P=C-2*J;if(T<re||P<re){o.style("display","none");return}let m=parseInt(o.style("font-size"),10);const _=.6;for(;L.getComputedTextLength()>T&&m>D;)m--,o.style("font-size",`${m}px`);let F=Math.max(H,Math.min(Y,Math.round(m*_))),k=m+K+F;for(;k>P&&m>D&&(m--,F=Math.max(H,Math.min(Y,Math.round(m*_))),!(F<H&&m===D));)o.style("font-size",`${m}px`),k=m+K+F;o.style("font-size",`${m}px`),A?(m<D||P<D)&&o.style("display","none"):(L.getComputedTextLength()>T||m<D||P<m)&&o.style("display","none")}),i.showValues!==!1&&j.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const f=`text-anchor: middle; dominant-baseline: hanging; font-size: ${Y}px;fill:`+$(o.data.name)+";",C=B({cssCompiledStyles:o.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,f)=>`url(#clip-${a}-${f})`).text(o=>o.value?p(o.value):"").each(function(o){const f=U(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=U(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const T=parseFloat(L.style("font-size")),m=Math.max(H,Math.min(Y,Math.round(T*.6)));f.style("font-size",`${m}px`);const F=(o.y1-o.y0)/2+T/2+K;f.attr("y",F);const k=o.x1-o.x0,ie=o.y1-o.y0-4,me=k-2*J;f.node().getComputedTextLength()>me||F+m>ie||m<H?f.style("display","none"):f.style("display",null)});const pe=i.diagramPadding??8;ge(b,pe,"flowchart",i?.useMaxWidth||!1)},"draw"),ct=w(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=w(({treemap:t}={})=>{const a=Se(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),i=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
2
|
+
.treemapNode.section {
|
|
3
|
+
stroke: ${s.sectionStrokeColor};
|
|
4
|
+
stroke-width: ${s.sectionStrokeWidth};
|
|
5
|
+
fill: ${s.sectionFillColor};
|
|
6
|
+
}
|
|
7
|
+
.treemapNode.leaf {
|
|
8
|
+
stroke: ${s.leafStrokeColor};
|
|
9
|
+
stroke-width: ${s.leafStrokeWidth};
|
|
10
|
+
fill: ${s.leafFillColor};
|
|
11
|
+
}
|
|
12
|
+
.treemapLabel {
|
|
13
|
+
fill: ${h};
|
|
14
|
+
font-size: ${s.labelFontSize};
|
|
15
|
+
}
|
|
16
|
+
.treemapValue {
|
|
17
|
+
fill: ${d};
|
|
18
|
+
font-size: ${s.valueFontSize};
|
|
19
|
+
}
|
|
20
|
+
.treemapTitle {
|
|
21
|
+
fill: ${i};
|
|
22
|
+
font-size: ${s.titleFontSize};
|
|
23
|
+
}
|
|
24
|
+
`},"getStyles"),pt=ut,bt={parser:he,get db(){return new oe},renderer:ht,styles:pt};export{bt as diagram};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as v,t as Ht,bq as _,a_ as O,by as jt,b as Wt,br as Rf,bu as Dt,bs as ia,bt as li,b7 as $i,ba as Lf,bl as Nf,bb as Mf,bm as Of,a$ as Df,b9 as Bf,b8 as Ff,b2 as zf,bf as Hf,bg as jf,bk as Wf,be as Uf,bn as qf,b0 as Vf,b4 as Kf,bi as Gf,bh as Jf,b6 as Yf,b5 as Xf,b3 as Zf,bd as Qf,bc as $f,bj as ep,b1 as tp,_ as rp}from"./7rNOGHzs.js";import{bI as np,bj as ms,aG as ap,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as f,aA as x,a7 as wt,ay as He,be as ar,b$ as Pt,aC as ba,bl as L,b_ as k,bO as y,aB as S,bo as hs,ca as kt,bH as N,bV as _e,br as qr,bk as bs,c0 as Jn,ai as Aa,cd as os,aw as Cn,a as sp,aj as Rr,c7 as op,c6 as el,c5 as Mn,bf as Ds,bz as Uc}from"./B8o4lNgr.js";import{E as Bs,I as ip,x as lp}from"./DCaHy20k.js";import{c as cp,s as se,a as On,l as An,f as En,d as ur,k as mt,I as ys,h as At,i as Tr,o as dp,j as up,g as fp,n as pp}from"./DmsDslNo.js";import{s as pn}from"./CQ4a5a4v.js";import{c as Zr}from"./CiENRH6A.js";import{H as Bo,t as lr,n as gp,i as tl,u as rl}from"./DzMmhJrp.js";import{b as gr}from"./D2g8BuR1.js";import{h as qc,bt as vp,cI as mp,dB as hp,dm as bp,aw as yp,cs as _p,a1 as xp,cO as wp,dl as is,aB as Ys,c1 as kp,H as Sp,c as Ip,$ as nl,cU as Cp,bR as Ep,L as Ap,di as Pp,V as Tp,ds as Rp,ae as Lp,f as Np,t as Mp}from"./KQTrHxko.js";import{c as Op}from"./D-62MVd3.js";import{n as $n,w as Dp,C as Vc,M as Bp,R as Fp}from"./lfJ8pseq.js";import{f as yt,ap as Ua,ai as zp,am as Fo,bc as Hp}from"./Bgegixo2.js";import{am as jp,aa as al,_ as Wp,ay as Up,ab as qp,i as Vp,aQ as Kp,I as Gp,R as Jp,ar as Yp,af as Xp,$ as Zp,b as sl,as as Qp,s as $p,o as eg,aW as tg,n as rg,aY as zo,A as ol,ae as ng,aX as ag,ao as Kc,T as Gc,a6 as sg,a5 as il,L as ll}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/O86272iX.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/7rNOGHzs.js","/app/immutable/chunks/CQ4a5a4v.js","/app/immutable/chunks/DsNWmyox.js","/app/immutable/chunks/DzMmhJrp.js","/app/immutable/chunks/DmsDslNo.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bgegixo2.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CiENRH6A.js","/app/immutable/chunks/DCaHy20k.js","/app/immutable/chunks/CzrrO9Ap.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DZX-XWnb.js","/app/immutable/chunks/DbAK3Zju.js","/app/immutable/chunks/CRwmdgt6.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DSjRkndX.js","/app/immutable/chunks/Ck-Ax5yG.js","/app/immutable/chunks/CFejQM6t.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CKEqC8_B.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/CB-g50lR.js","/app/immutable/chunks/CPQdU3ZA.js","/app/immutable/chunks/DNen9YXB.js","/app/immutable/chunks/KQTrHxko.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C_n9DeKj.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D-cnPaTJ.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DFHyIdsA.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BaQ9zUUl.js","/app/immutable/chunks/lfJ8pseq.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/eHLf0w_s.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BRp0P9cF.js","/app/immutable/chunks/BkBdyRjM.js","/app/immutable/chunks/D4jXWSLn.js","/app/immutable/chunks/CtDXgUYh.js","/app/immutable/chunks/IIWxUL8F.js","/app/immutable/chunks/DbnaPZDp.js","/app/immutable/chunks/C7-VQsLR.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/mNrkfPcL.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as v,t as Ht,bq as _,a_ as O,by as jt,b as Wt,br as Rf,bu as Dt,bs as ia,bt as li,b7 as $i,ba as Lf,bl as Nf,bb as Mf,bm as Of,a$ as Df,b9 as Bf,b8 as Ff,b2 as zf,bf as Hf,bg as jf,bk as Wf,be as Uf,bn as qf,b0 as Vf,b4 as Kf,bi as Gf,bh as Jf,b6 as Yf,b5 as Xf,b3 as Zf,bd as Qf,bc as $f,bj as ep,b1 as tp,_ as rp}from"./7rNOGHzs.js";import{bI as np,bj as ms,aG as ap,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as f,aA as x,a7 as wt,ay as He,be as ar,b$ as Pt,aC as ba,bl as L,b_ as k,bO as y,aB as S,bo as hs,ca as kt,bH as N,bV as _e,br as qr,bk as bs,c0 as Jn,ai as Aa,cd as os,aw as Cn,a as sp,aj as Rr,c7 as op,c6 as el,c5 as Mn,bf as Ds,bz as Uc}from"./B8o4lNgr.js";import{E as Bs,I as ip,x as lp}from"./DCaHy20k.js";import{c as cp,s as se,a as On,l as An,f as En,d as ur,k as mt,I as ys,h as At,i as Tr,o as dp,j as up,g as fp,n as pp}from"./DmsDslNo.js";import{s as pn}from"./CQ4a5a4v.js";import{c as Zr}from"./CiENRH6A.js";import{H as Bo,t as lr,n as gp,i as tl,u as rl}from"./DzMmhJrp.js";import{b as gr}from"./D2g8BuR1.js";import{h as qc,bt as vp,cI as mp,dB as hp,dm as bp,aw as yp,cs as _p,a1 as xp,cO as wp,dl as is,aB as Ys,c1 as kp,H as Sp,c as Ip,$ as nl,cU as Cp,bR as Ep,L as Ap,di as Pp,V as Tp,ds as Rp,ae as Lp,f as Np,t as Mp}from"./KQTrHxko.js";import{c as Op}from"./D-62MVd3.js";import{n as $n,w as Dp,C as Vc,M as Bp,R as Fp}from"./lfJ8pseq.js";import{f as yt,ap as Ua,ai as zp,am as Fo,bc as Hp}from"./Bgegixo2.js";import{am as jp,aa as al,_ as Wp,ay as Up,ab as qp,i as Vp,aQ as Kp,I as Gp,R as Jp,ar as Yp,af as Xp,$ as Zp,b as sl,as as Qp,s as $p,o as eg,aW as tg,n as rg,aY as zo,A as ol,ae as ng,aX as ag,ao as Kc,T as Gc,a6 as sg,a5 as il,L as ll}from"./CkactGV1.js";import{c$ as og,F as Tt,bh as Ho,bL as ig,ap as lg,aQ as cg,cL as dg,bl as ci,bB as ug,aG as Jc,aL as di,c_ as Fs,ac as jo,cn as fg,cd as pg,ci as ui,cF as Yc,bs as gg,e as vg,b$ as cl,c9 as mg,cl as hg,cW as Xc,bV as dl,b8 as ho,be as rs,aF as bg,aA as Wo,av as Zc,bc as Qc,bC as yg,B as _g,bv as xg,a7 as $c,ch as wg,am as ed,cN as td,cJ as ul,at as rd,aK as fl,a1 as kg,cv as Sg,cU as Ig,bO as nd,bn as Cg,c5 as pl,ao as ad,az as Eg,aa as Ag,a8 as Pg}from"./CFejQM6t.js";import{c as sd}from"./ChTqQfQN.js";import{h as Tg}from"./D-cnPaTJ.js";import{Hq as Nt,bP as Rg,rg as gl,rS as Lg,Id as Ng,Ij as Mg,g as od,Hc as Og,n4 as id,nk as ld,nj as cd,mZ as Xs,pA as fi,x5 as Dg,u9 as Ts,tu as Uo,ub as Bg,mN as dd,Hv as Fg,so as zg,o8 as ud,qF as pi,lu as vl,a6 as ml,qb as Hg,q7 as jg,qc as Wg,q3 as Ug,q9 as qg,t$ as Vg,zD as fd,zH as pd,nl as hl,bi as qo,FX as Kg,H8 as Gg,nf as Jg,vc as Yg,vd as Xg,vb as bl,AE as Gn,cu as gd,ci as Zg,d7 as Qg,de as $g,zN as ev}from"./CRwmdgt6.js";import{bw as tv,bE as rv,i as nv,w as av,bH as sv,a5 as ov,a7 as iv,a9 as lv}from"./CB-g50lR.js";import{m as cv,l as dv,t as Vo,c8 as uv,K as fv,c7 as pv,c2 as gv,aA as yl,c4 as vv,bE as Ko,aK as mv,r as hv,bo as bv,w as yv}from"./BRp0P9cF.js";import{ce as _v,cg as xv,cf as wv,b1 as kv,a$ as Sv,b0 as Iv,a3 as Cv,ak as Is,aj as Ev,aA as _l,aI as Av,ai as Pv,C as Tv,i as Rv,E as Rs,cP as Lv,aW as xl,cU as Nv,af as Mv,a7 as Ov,r as Dv,p as Bv,aF as Fv,cX as zv,cG as Hv,cz as jv,cq as Wv,bP as Uv}from"./BcGA_XKM.js";import{s as qv,j as Vv,i as Kv,I as Va,c as wl}from"./DZX-XWnb.js";import"./DbAK3Zju.js";import{k as vd,f as kl,K as Sl,M as Gv,r as Jv,q as Yv,N as md,J as Go,e as ls,a0 as Il,i as Xv}from"./O86272iX.js";import"./CKEqC8_B.js";import{J as gi,P as Zv,s as Qv,k as $v,G as em,o as tm,l as rm,M as nm,H as am,w as ja,a as sm,K as om,n as im,R as lm}from"./DSjRkndX.js";import{t as cs,n as cm,O as dm,M as um,S as ma}from"./Ck-Ax5yG.js";import{C as Jo}from"./BGspgxWf.js";import{aM as fm,aU as pm,ay as gm,aY as vm,aK as mm,aQ as hm,a6 as Ga,a$ as Cl,aG as bm,aN as ym,aT as vi,aO as mi,V as bo,an as _m,W as xm,aW as wm,aF as km,aP as Sm,aS as Im,b2 as Cm,b0 as Em,av as hd,p as Am,n as Pm,aR as Tm,Z as Rm,z as Lm}from"./yGxUPrAb.js";import{s as Yo}from"./D3p4HGPq.js";import{M as Nm}from"./yI5lBaQ8.js";import{u as hi,w as Mm,v as Zs,I as Om,A as El,e as ds,d as ha,J as Al,c as Dm,f as Bm,g as Pl,i as Fm,b as zm,o as bd,j as Hm,O as jm,x as Wm,k as yd,S as Um,N as qm,q as Tl,p as Vm,n as Rl,z as Km,s as Gm}from"./JFNcUgqI.js";import{o as Ll,a as Nl,T as yo,b as Jm}from"./DR3ukAe9.js";import{ag as Ym,a6 as Xm,M as Zm,J as Qm,aj as $m}from"./yAjP_kdp.js";import{D as us}from"./9U2m-KE4.js";import"./BAEcHnha.js";import{C as ea}from"./BjS3bCVA.js";import{M as eh}from"./D57k4GEE.js";import{g as bi}from"./DsNWmyox.js";import{f as Ml}from"./IIWxUL8F.js";import{c as Ls}from"./BEJX9KVN.js";import{handleIntentLink as th}from"./Dr28se2A.js";import{s as rh,a as nh,f as ah,d as sh,r as oh,h as ih,w as ns,g as lh,W as ch,H as dh,c as uh,M as _d}from"./BSN7-Qxa.js";import{e as fh,q as ph}from"./CPQdU3ZA.js";import{showAssistantContent as gh}from"./BgjzIHmr.js";import{o as zs,c as vh,n as mh}from"./mNrkfPcL.js";import{p as hh}from"./DRKyy5zo.js";import{m as bh}from"./DY0zw3Os.js";import{h as Cs}from"./B2TNVk3c.js";import{i as xd}from"./BkBdyRjM.js";import{g as yh,e as _h,f as xh,h as wh}from"./BvFAWM27.js";import{T as _o}from"./Bvonx6Ga.js";import{i as kh,r as Ol}from"./C64YVcCh.js";import{a as Sh}from"./eHLf0w_s.js";import{a as Ih}from"./BJzHxIyr.js";import{p as Ch}from"./mCGfnSaU.js";const Eh="intent:inline-visual-draft";function mI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
260
260
|
`,z1=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],No=96,Sc=2e4,H1=480,Pu=512,j1=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function W1(r,t,n,a,s,o){const l=new MessageChannel,c=MessagePort.prototype.postMessage.bind(l.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[l.port2]);const u=(C,z={})=>{window.parent.postMessage({channel:r,type:C,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const z=JSON.parse(JSON.stringify(C));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&u("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let R=!1,b=-1,h=innerHeight,A=Number.NaN,P=0,F=0;const B=()=>{if(R=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,K=C-z;if(z>h+1&&K>1&&Math.abs(K-A)<=1?P+=1:(z!==h||K<=1)&&(P=0),h=z,A=K,!F&&P>=3){F=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),u("layout",{message:Y})}F&&(C=Math.min(C,F)),C!==b&&(b=C,u("resize",{height:C}))},M=()=>{R||(R=!0,requestAnimationFrame(B))},D=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const z=document.documentElement;z.classList.toggle("dark",C.dark),z.style.colorScheme=C.dark?"dark":"light";const K=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof K=="string"&&K.length<512&&z.style.setProperty("--inline-html-root-font-size",K);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const oe=C.variables[Y];typeof oe=="string"&&oe.length<512&&z.style.setProperty(Y,oe)}M()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&D(C.data.theme)});const H=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const z=oe=>{const Se=getComputedStyle(oe);if(oe!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Se.overflowY)||/^(hidden|clip)$/.test(Se.overflowY))return!1;const ce=oe.scrollHeight-oe.clientHeight;return ce>1&&(C.deltaY<0?oe.scrollTop>1:oe.scrollTop<ce-1)};if(C.composedPath().some(oe=>oe instanceof Element&&z(oe))||document.scrollingElement&&z(document.scrollingElement))return;const K=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,C.deltaY*K));Number.isFinite(Y)&&(C.preventDefault(),c({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",H),window.addEventListener("wheel",H,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&u("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const z=C.reason;u("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",C=>{const z=C.target instanceof Element?C.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),D(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(M).observe(document.body),new MutationObserver(M).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",M),document.addEventListener("load",M,!0),document.fonts.ready.then(M),u("ready"),M()},{once:!0})}function U1(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let l;const c=u=>{const i=u.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",u=>{const i=u.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(u.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(u.source!==o.contentWindow||u.origin!=="null")){if(i.type==="scroll-port"&&!l&&u.ports.length===1){l=u.ports[0],l.onmessage=c;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function q1(r,t,n,a,s,o,l,c){const u=document.implementation.createHTMLDocument(""),i=u.createElement("template");i.innerHTML=n,u.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(oe=>oe.remove()),Y.querySelectorAll("template").forEach(oe=>p(oe.content)),Y.querySelectorAll("a, area").forEach(oe=>{for(const Se of["href","xlink:href"])oe.getAttribute(Se)?.startsWith("#")||oe.removeAttribute(Se);oe.removeAttribute("target"),oe.removeAttribute("ping"),oe.removeAttribute("download")})};p(u);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),R=u.createElement("meta");R.httpEquiv="Content-Security-Policy",R.content=r.csp;const b=u.createElement("meta");b.setAttribute("charset","utf-8");const h=u.createElement("style"),A=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(c)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
261
261
|
font-display: swap; src: url('${c}') format('woff2'); }`:"";h.textContent=`${A}${r.styles}`;const P=u.createElement("script"),F=g([a,s,r.maxScrollDelta,r.lockHeight,t(l)?l:null]);P.textContent=`(${r.bridge})(...${F}, (${r.validate}));`,u.head.prepend(R,b,h,P);const B=`<!doctype html>${u.documentElement.outerHTML}`,M=document.implementation.createHTMLDocument(""),D=M.createElement("meta");D.httpEquiv="Content-Security-Policy",D.content=r.csp.replace("frame-src 'none'","frame-src about:");const H=M.createElement("meta");H.setAttribute("charset","utf-8");const C=M.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=M.createElement("script"),K=g([a,B,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${K}, (${r.validate}));`,M.head.prepend(D,H,C,z),`<!doctype html>${M.documentElement.outerHTML}`}const V1=()=>({csp:j1,styles:F1,maxScrollDelta:Pu,lockHeight:H1,bridge:W1.toString(),shell:U1.toString(),validate:pi.toString()});function K1(r,t,n,a,s=null,o=""){return q1(V1(),pi,r,t,n,a,s,o)}function Ic(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(z1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function G1(r,t,n,a,s=null){return K1(r,t,n,a,s,B1)}var J1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),Y1=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),X1=S('<p class="sr-only" role="status"> </p>'),Z1=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),Q1=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),$1=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),e0=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),t0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),r0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),n0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),a0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),s0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),o0=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),i0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),l0=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function Tu(r,t){if(new.target)return Ht({component:Tu,...r});Ut(t,!0);const n=720;let a=_(t,"source",7),s=_(t,"isStreaming",7,!1),o=_(t,"isComplete",7,!0),l=_(t,"record",7),c=_(t,"storageStatus",7,"ready"),u=_(t,"onRecordChange",7),i=_(t,"onUseConfiguration",7),p=_(t,"onExport",7),g=_(t,"onRetry",7),R=_(t,"storageError",7),b=_(t,"exportStatus",7),h=_(t,"exportPath",7),A=_(t,"exportError",7),P,F=_e(void 0),B=_e(!1),M=_e(!1),D=_e(0),H=_e(""),C=_e(""),z=_e(!1),K=_e(""),Y=_e(qr(No)),oe=_e(n),Se=_e(""),ce=_e(vl()),ne=_e(void 0),ge,Oe=_e(void 0),V=_e(!1);const fe=f(()=>l()??e(ce)),de=f(()=>c()!=="loading"&&(c()!=="error"||!!e(fe).current)),Te=f(()=>!s()&&o()&&!!a().trim()&&e(de)),Ne=f(()=>Math.min(Sc,Math.max(No,e(Y)))),we=f(()=>s()||c()==="loading"?"loading":o()?a().trim()?e(K)?"error":e(z)?"ready":"loading":"empty":"incomplete"),Qe=f(()=>s()||c()==="loading"||e(Te)&&!e(z)&&!e(K));function qe(Q){const Ce={...Q,current:e(ne)??Q.current};N(ce,Ce),u()?.(Ce)}function et(){const Q=e(ne);!Q||e(fe).scenarios.length>=ml||(qe({...e(fe),scenarios:[...e(fe).scenarios,{id:crypto.randomUUID(),name:Wf({number:rl(e(fe).scenarios.length+1)}),snapshot:structuredClone(Q)}]}),N(V,!0))}function $(Q,Ce){const $e=Ce.trim().slice(0,120);$e&&qe({...e(fe),scenarios:e(fe).scenarios.map(tt=>tt.id===Q?{...tt,name:$e}:tt)})}function Z(Q){const Ce=structuredClone(Q);N(ne,Ce),N(Oe,Ce),qe({...e(fe),current:Ce}),N(D,e(D)+1)}function Ve(Q){return typeof Q=="number"?rl(Q):typeof Q=="string"?Q:JSON.stringify(Q)}function J(){!e(F)?.contentWindow||!e(C)||e(F).contentWindow.postMessage({channel:e(C),type:"theme",theme:Ic(P)},"*")}function G(Q){let Ce=P.parentElement;for(;Ce;){const $e=getComputedStyle(Ce),tt=Ce.scrollHeight-Ce.clientHeight;if(/^(auto|scroll|overlay)$/.test($e.overflowY)&&tt>1){if(Q<0?Ce.scrollTop>0:Ce.scrollTop<tt){Ce.dispatchEvent(new WheelEvent("wheel",{deltaY:Q,bubbles:!0})),Ce.scrollTop+=Q;return}if(/^(contain|none)$/.test($e.overscrollBehaviorY))return}Ce=Ce.parentElement}window.scrollBy({top:Q,behavior:"instant"})}kt(()=>{if(!e(B))return;const Q=a(),Ce=e(Te);e(D),Mn(()=>{ge!==Q&&(N(ce,vl()),N(ne,void 0),N(V,!1),N(Oe,void 0),ge=Q),N(z,!1),N(K,""),N(Se,""),N(Y,No,!0),N(C,crypto.randomUUID(),!0),N(H,Ce?G1(Q,e(C),Ic(P),$i(),e(Oe)??e(ne)??e(fe).current):"",!0),N(Oe,void 0)})}),bs(()=>{N(B,!0);const Q=ft=>{if(ft.source!==e(F)?.contentWindow||ft.origin!=="null")return;const Be=ft.data;if(!(!Be||typeof Be!="object"||Be.channel!==e(C)))if(Be.type==="resize"&&typeof Be.height=="number"&&Number.isFinite(Be.height)&&Be.height>=0)N(Y,Math.min(Sc,Math.ceil(Be.height)),!0);else if(Be.type==="ready")N(z,!0),J();else if(Be.type==="error"&&typeof Be.message=="string")N(K,Be.message.slice(0,300),!0);else if(Be.type==="layout"&&typeof Be.message=="string")N(Se,Be.message.slice(0,300),!0);else if(Be.type==="snapshot"&&e(Te)&&pi(Be.snapshot)){const ht=Be.snapshot;N(ne,ht),qe({...e(fe),current:ht})}else Be.type==="wheel"&&e(z)&&e(Te)&&!e(M)&&!e(Qe)&&typeof Be.deltaY=="number"&&Number.isFinite(Be.deltaY)&&Be.deltaY!==0&&Math.abs(Be.deltaY)<=Pu&&G(Be.deltaY)},Ce=()=>{N(oe,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},$e=new MutationObserver(J);$e.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const tt=window.matchMedia("(prefers-color-scheme: dark)");return tt.addEventListener("change",J),window.addEventListener("message",Q),window.addEventListener("resize",Ce),Ce(),()=>{$e.disconnect(),tt.removeEventListener("change",J),window.removeEventListener("message",Q),window.removeEventListener("resize",Ce)}});var q={get source(){return a()},set source(Q){a(Q),x()},get isStreaming(){return s()},set isStreaming(Q=!1){s(Q),x()},get isComplete(){return o()},set isComplete(Q=!0){o(Q),x()},get record(){return l()},set record(Q){l(Q),x()},get storageStatus(){return c()},set storageStatus(Q="ready"){c(Q),x()},get onRecordChange(){return u()},set onRecordChange(Q){u(Q),x()},get onUseConfiguration(){return i()},set onUseConfiguration(Q){i(Q),x()},get onExport(){return p()},set onExport(Q){p(Q),x()},get onRetry(){return g()},set onRetry(Q){g(Q),x()},get storageError(){return R()},set storageError(Q){R(Q),x()},get exportStatus(){return b()},set exportStatus(Q){b(Q),x()},get exportPath(){return h()},set exportPath(Q){h(Q),x()},get exportError(){return A()},set exportError(Q){A(Q),x()},$set:jt,$on:(Q,Ce)=>Wt(t,Q,Ce)},ae=l0(),he=I(ae),ee=I(he);yt(ee,{variant:"ghost",size:"sm",get active(){return e(M)},get"aria-pressed"(){return e(M)},onclick:()=>{N(M,!e(M))},children:(Q,Ce)=>{ar();var $e=Pt();k(tt=>y($e,tt),[()=>e(M)?Lf():Nf()]),d(Q,$e)},$$slots:{default:!0}});var ue=m(ee,2);{let Q=f(()=>!e(Te));yt(ue,{variant:"ghost",size:"sm",get disabled(){return e(Q)},onclick:()=>{N(D,e(D)+1)},children:(Ce,$e)=>{ar();var tt=Pt();k(ft=>y(tt,ft),[()=>Mf()]),d(Ce,tt)},$$slots:{default:!0}})}w(he);var Pe=m(he,2);{var We=Q=>{var Ce=Y1(),$e=He(Ce),tt=I($e),ft=L(tt,!0),Be=m(tt,2);{var ht=vt=>{yt(vt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ct,Rt)=>{ar();var Zt=Pt();k(_t=>y(Zt,_t),[()=>Uf()]),d(Ct,Zt)},$$slots:{default:!0}})};O(Be,vt=>{g()&&vt(ht)})}w($e);var lt=m($e,2);{var gt=vt=>{var Ct=J1(),Rt=L(Ct,!0);k(()=>y(Rt,R())),d(vt,Ct)};O(lt,vt=>{R()&&vt(gt)})}k(vt=>y(ft,vt),[()=>Of()]),d(Q,Ce)};O(Pe,Q=>{c()==="error"&&Q(We)})}var at=m(Pe,2);{var me=Q=>{var Ce=X1(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>s()?Df():Bf()]),d(Q,Ce)},Ee=Q=>{var Ce=Z1(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>o()?zf():Ff()]),d(Q,Ce)},U=Q=>{var Ce=Q1(),$e=I(Ce),tt=L($e,!0),ft=m($e,2),Be=L(ft,!0);w(Ce),k(ht=>{y(tt,ht),y(Be,e(K))},[()=>Hf()]),d(Q,Ce)};O(at,Q=>{e(Qe)?Q(me):e(Te)?e(K)&&Q(U,2):Q(Ee,1)})}var ye=m(at,2),pe=I(ye);{var T=Q=>{var Ce=$1();let $e,tt;gr(Ce,ft=>N(F,ft),()=>e(F)),k(ft=>{se(Ce,"title",ft),se(Ce,"srcdoc",e(H)),$e=mt(Ce,1,"block w-full border-0 svelte-1kkow1d",null,$e,{"preview-hidden":e(M)||e(Qe)}),se(Ce,"aria-hidden",e(M)||e(Qe)),tt=An(Ce,"",tt,{height:`${e(Ne)}px`})},[()=>$i()]),d(Q,Ce)};O(pe,Q=>{e(Te)&&e(H)&&Q(T)})}var j=m(pe,2);{var xe=Q=>{ea(Q,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(oe)}})},Ze=Q=>{var Ce=e0(),$e=I(Ce),tt=I($e);ja(tt,{class:"h-4 w-32 max-w-1/2"});var ft=m(tt,2);ja(ft,{class:"h-3 w-2/3"}),w($e);var Be=m($e,2);ja(Be,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=m(Be,2),lt=I(ht);ja(lt,{class:"h-3 w-16"});var gt=m(lt,2);ja(gt,{class:"h-2 min-w-0 flex-1"});var vt=m(gt,2);ja(vt,{class:"h-3 w-10"}),w(ht),w(Ce),d(Q,Ce)};O(j,Q=>{e(M)?Q(xe):e(Qe)&&Q(Ze,1)})}w(ye);var Re=m(ye,2);{var je=Q=>{var Ce=i0(),$e=He(Ce),tt=I($e);{var ft=Et=>{{let Jt=f(()=>!e(z)||!!e(K));yt(Et,{size:"sm",get disabled(){return e(Jt)},onclick:()=>e(ne)&&i()(e(ne)),children:(Mt,ve)=>{ar();var te=Pt();k(Ue=>y(te,Ue),[()=>qf()]),d(Mt,te)},$$slots:{default:!0}})}};O(tt,Et=>{i()&&Et(ft)})}var Be=m(tt,2);{let Et=f(()=>!e(z)||!!e(K)||e(fe).scenarios.length>=ml);yt(Be,{variant:"ghost",size:"sm",get disabled(){return e(Et)},onclick:et,children:(Jt,Mt)=>{ar();var ve=Pt();k(te=>y(ve,te),[()=>jf()]),d(Jt,ve)},$$slots:{default:!0}})}var ht=m(Be,2);{var lt=Et=>{yt(Et,{variant:"ghost",size:"sm",get active(){return e(V)},get"aria-expanded"(){return e(V)},onclick:()=>N(V,!e(V)),children:(Jt,Mt)=>{ar();var ve=Pt();k(te=>y(ve,te),[()=>Vf()]),d(Jt,ve)},$$slots:{default:!0}})};O(ht,Et=>{e(fe).scenarios.length&&Et(lt)})}var gt=m(ht,2);{var vt=Et=>{{let Jt=f(()=>!e(z)||b()==="saving");yt(Et,{variant:"ghost",size:"sm",get disabled(){return e(Jt)},onclick:()=>p()({...e(fe),current:e(ne)??null}),children:(Mt,ve)=>{ar();var te=Pt();k(Ue=>y(te,Ue),[()=>Kf()]),d(Mt,te)},$$slots:{default:!0}})}};O(gt,Et=>{p()&&Et(vt)})}var Ct=m(gt,2);{var Rt=Et=>{var Jt=t0(),Mt=L(Jt,!0);k(ve=>y(Mt,ve),[()=>c()==="saving"?Gf():c()==="ready"?Jf():""]),d(Et,Jt)};O(Ct,Et=>{u()&&Et(Rt)})}w($e);var Zt=m($e,2);{var _t=Et=>{var Jt=r0(),Mt=I(Jt),ve=m(Mt);{var te=Ue=>{var nt=Pt();k(()=>y(nt,A())),d(Ue,nt)};O(ve,Ue=>{b()==="error"&&A()&&Ue(te)})}w(Jt),k(Ue=>y(Mt,`${Ue??""} `),[()=>b()==="saving"?Yf():b()==="saved"?Xf({path:h()??""}):Zf()]),d(Et,Jt)};O(Zt,Et=>{b()&&Et(_t)})}var Vt=m(Zt,2);{var er=Et=>{var Jt=o0(),Mt=I(Jt),ve=I(Mt),te=I(ve),Ue=I(te),nt=L(Ue,!0),dt=m(Ue),ze=L(dt,!0),X=m(dt);At(X,17,()=>e(fe).scenarios,le=>le.id,(le,ke)=>{var Ae=n0(),De=I(Ae);{let Ie=f(()=>ep());Va(De,{get value(){return e(ke).name},get"aria-label"(){return e(Ie)},maxlength:120,onblur:Ye=>{Ye.currentTarget.value.trim()||(Ye.currentTarget.value=e(ke).name),$(e(ke).id,Ye.currentTarget.value)},onkeydown:Ye=>{Ye.key==="Enter"&&Ye.currentTarget.blur(),Ye.key==="Escape"&&(Ye.currentTarget.value=e(ke).name,Ye.currentTarget.blur())}})}var Fe=m(De,2),Je=I(Fe);yt(Je,{variant:"ghost",size:"sm",onclick:()=>Z(e(ke).snapshot),children:(Ie,Ye)=>{ar();var Ge=Pt();k(rt=>y(Ge,rt),[()=>Qf()]),d(Ie,Ge)},$$slots:{default:!0}});var Ke=m(Je,2);yt(Ke,{variant:"ghost",size:"sm",onclick:()=>qe({...e(fe),scenarios:e(fe).scenarios.filter(Ie=>Ie.id!==e(ke).id)}),children:(Ie,Ye)=>{ar();var Ge=Pt();k(rt=>y(Ge,rt),[()=>$f()]),d(Ie,Ge)},$$slots:{default:!0}}),w(Fe),w(Ae),d(le,Ae)}),w(te),w(ve);var ie=m(ve);At(ie,20,()=>["inputs","results"],Tr,(le,ke)=>{const Ae=f(()=>ke),De=f(()=>Array.from(new Set([...Object.keys(e(ne)[e(Ae)]),...e(fe).scenarios.flatMap(Ke=>Object.keys(Ke.snapshot[e(Ae)]))])));var Fe=wt(),Je=He(Fe);At(Je,16,()=>e(De),Ke=>Ke,(Ke,Ie)=>{var Ye=s0(),Ge=I(Ye),rt=L(Ge,!0),ot=m(Ge);At(ot,17,()=>[e(ne),...e(fe).scenarios.map(it=>it.snapshot)],Tr,(it,ut)=>{var St=a0(),bt=L(St,!0);k(Lt=>y(bt,Lt),[()=>Object.hasOwn(e(ut)[e(Ae)],Ie)?Ve(e(ut)[e(Ae)][Ie]):"—"]),d(it,St)}),w(Ye),k(()=>y(rt,Ie)),d(Ke,Ye)}),d(le,Fe)}),w(ie),w(Mt),w(Jt),k(le=>{y(nt,e(ne).title),y(ze,le)},[()=>tp()]),d(Et,Jt)};O(Vt,Et=>{e(V)&&e(fe).scenarios.length&&Et(er)})}d(Q,Ce)};O(Re,Q=>{e(ne)&&e(Te)&&Q(je)})}return w(ae),gr(ae,Q=>P=Q,()=>P),k(()=>{se(ae,"data-inline-html-status",e(we)),se(ae,"data-inline-html-layout",e(Se)?"viewport-locked":void 0),se(ae,"aria-busy",e(Qe))}),d(r,ae),qt(q)}var c0=S('<div class="w-full min-w-0"><!></div>');function d0(r,t){if(new.target)return Ht({component:d0,...r});Ut(t,!0);const n=()=>Dt(e(b),"$agent$",s),a=()=>Dt(e(F),"$entry$",s),[s,o]=ia();let l=_(t,"block",7),c=_(t,"role",7),u=_(t,"workspaceId",7),i=_(t,"agentId",7),p=_(t,"messageId",7),g=_(t,"contentBlockKey",7,""),R=_e(void 0);const b=f(()=>Ys(i()??"")),h=f(()=>c()==="assistant"&&u()&&i()&&p()&&l().metadata?.fenceClosed&&!l().metadata?.isStreaming&&n()&&!ud(n())?{workspaceId:u(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),l().metadata?.fenceStart??0]),source:l().content}:void 0),A=f(()=>!!(u()&&i()&&p()&&l().metadata?.fenceClosed&&!n())),P=f(()=>e(h)?qg(e(h)):""),F=f(()=>mm(e(P)));kt(()=>{e(h)&&Nt.dispatch(Hg(e(h)))});function B(Y){!u()||!i()||n()?.retiredAt||e(R)?.dispatchEvent(new CustomEvent(Eh,{bubbles:!0,detail:{workspaceId:u(),agentId:i(),snapshot:Y}}))}var M={get block(){return l()},set block(Y){l(Y),x()},get role(){return c()},set role(Y){c(Y),x()},get workspaceId(){return u()},set workspaceId(Y){u(Y),x()},get agentId(){return i()},set agentId(Y){i(Y),x()},get messageId(){return p()},set messageId(Y){p(Y),x()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),x()},$set:jt,$on:(Y,oe)=>Wt(t,Y,oe)},D=wt(),H=He(D);{var C=Y=>{var oe=c0(),Se=I(oe);{let ce=f(()=>l().metadata?.isStreaming??!1),ne=f(()=>l().metadata?.fenceClosed??!1),ge=f(()=>a()?.record),Oe=f(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),V=f(()=>a()?.error),fe=f(()=>e(h)?et=>Nt.dispatch(Ug(e(P),et)):void 0),de=f(()=>u()&&i()&&n()&&!n().retiredAt?B:void 0),Te=f(()=>e(h)?()=>Nt.dispatch(Wg(e(P))):void 0),Ne=f(()=>e(h)?et=>Nt.dispatch(jg(e(P),crypto.randomUUID(),et)):void 0),we=f(()=>a()?.export?.status),Qe=f(()=>a()?.export?.path),qe=f(()=>a()?.export?.error);Tu(Se,{get source(){return l().content},get isStreaming(){return e(ce)},get isComplete(){return e(ne)},get record(){return e(ge)},get storageStatus(){return e(Oe)},get storageError(){return e(V)},get onRecordChange(){return e(fe)},get onUseConfiguration(){return e(de)},get onRetry(){return e(Te)},get onExport(){return e(Ne)},get exportStatus(){return e(we)},get exportPath(){return e(Qe)},get exportError(){return e(qe)}})}w(oe),gr(oe,ce=>N(R,ce),()=>e(R)),d(Y,oe)},z=Y=>{ea(Y,{get code(){return l().content},language:"html"})};O(H,Y=>{c()==="assistant"?Y(C):Y(z,-1)})}d(r,D);var K=qt(M);return o(),K}var u0=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function f0(r,t){if(new.target)return Ht({component:f0,...r});Ut(t,!0);let n=_(t,"digest",7);var a={get digest(){return n()},set digest(l){n(l),x()},$set:jt,$on:(l,c)=>Wt(t,l,c)},s=u0(),o=L(s,!0);return k(()=>y(o,n())),d(r,s),qt(a)}var p0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),g0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),v0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),m0=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),h0=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function b0(r,t){if(new.target)return Ht({component:b0,...r});Ut(t,!0);let n=_(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),x()},$set:jt,$on:(b,h)=>Wt(t,b,h)},s=h0(),o=I(s),l=I(o);Tt(l,{get icon(){return Xc},size:"sm",class:"text-primary-ink/70"});var c=m(l,2),u=L(c,!0);w(o);var i=m(o,2);At(i,21,n,b=>b.name+b.command,(b,h)=>{var A=m0(),P=I(A),F=I(P),B=I(F),M=L(B,!0),D=m(B,2);{var H=Se=>{var ce=p0(),ne=L(ce,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_service_badge()]),d(Se,ce)},C=Se=>{var ce=g0(),ne=L(ce,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_command_badge()]),d(Se,ce)};O(D,Se=>{e(h).mode==="service"?Se(H):Se(C,-1)})}var z=m(D,2);{var K=Se=>{var ce=v0(),ne=L(ce,!0);k(()=>y(ne,e(h).category)),d(Se,ce)};O(z,Se=>{e(h).category&&e(h).category!=="other"&&Se(K)})}w(F);var Y=m(F,2),oe=L(Y,!0);w(P),w(A),k(()=>{y(M,e(h).name),y(oe,e(h).command)}),d(b,A)}),w(i);var p=m(i,2),g=I(p),R=L(g,!0);return w(p),w(s),k((b,h)=>{y(u,b),y(R,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:lr(n().length)}):v.chat_detectedScripts_count_many({count:lr(n().length)})]),d(r,s),qt(a)}function y0(r,t){if(new.target)return Ht({component:y0,...r});Ut(t,!0);let n=_(t,"diff",7),a=_(t,"filePath",7),s=_(t,"language",7),o=_(t,"onApply",7),l=_(t,"onReject",7);function c(){o()?.(),$n.success(v.chat_diffViewer_applied_toast())}function u(){l()?.(),$n.info(v.chat_diffViewer_rejected_toast())}const i=f(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:c}),l()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:u}),g});var p={get diff(){return n()},set diff(g){n(g),x()},get filePath(){return a()},set filePath(g){a(g),x()},get language(){return s()},set language(g){s(g),x()},get onApply(){return o()},set onApply(g){o(g),x()},get onReject(){return l()},set onReject(g){l(g),x()},$set:jt,$on:(g,R)=>Wt(t,g,R)};{let g=f(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());us(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return qt(p)}var _0=ba('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Cc=ba("<circle></circle>"),x0=ba('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),w0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Os(r,t){if(new.target)return Ht({component:Os,...r});Ut(t,!0);let n=_(t,"phase",7),a=_(t,"progress",7,0),s=_(t,"size",7,16),o=_(t,"class",7,""),l=f(()=>s()/2),c=f(()=>e(l)),u=f(()=>e(l)),i=f(()=>s()*.12),p=f(()=>e(l)-e(i)/2),g=f(()=>e(l)*.35),R=f(()=>2*Math.PI*e(g)),b=f(()=>Math.max(0,Math.min(1,a()))*e(R));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let A=f(()=>h[n()]||"currentColor");var P={get phase(){return n()},set phase(ce){n(ce),x()},get progress(){return a()},set progress(ce=0){a(ce),x()},get size(){return s()},set size(ce=16){s(ce),x()},get class(){return o()},set class(ce=""){o(ce),x()},$set:jt,$on:(ce,ne)=>Wt(t,ce,ne)},F=w0(),B=I(F),M=I(B),D=m(M);{var H=ce=>{},C=ce=>{var ne=_0();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(g)*.8),se(ne,"stroke",e(A)),se(ne,"stroke-width",e(g)*1.5),se(ne,"stroke-dasharray",`${e(b)??""} ${e(R)??""}`),se(ne,"stroke-dashoffset",e(R)*.25),se(ne,"transform",`rotate(-90 ${e(c)??""} ${e(u)??""})`)}),d(ce,ne)},z=ce=>{var ne=Cc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(p)*.6),se(ne,"fill",e(A))}),d(ce,ne)},K=ce=>{var ne=Cc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(p)),se(ne,"fill",e(A))}),d(ce,ne)};O(D,ce=>{n()==="planning"?ce(H):n()==="building"?ce(C,1):n()==="reviewing"?ce(z,2):n()==="shipped"&&ce(K,3)})}w(B);var Y=m(B,2);{var oe=ce=>{},Se=ce=>{var ne=x0();k(()=>se(ne,"width",s()*.5)),d(ce,ne)};O(Y,ce=>{n()==="reviewing"?ce(oe):n()==="shipped"&&ce(Se,1)})}return w(F),k(()=>{se(B,"width",s()),se(B,"height",s()),se(B,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(B,0,ur(o())),se(M,"cx",e(c)),se(M,"cy",e(u)),se(M,"r",e(p)),se(M,"stroke",e(A)),se(M,"stroke-width",e(i))}),d(r,F),qt(P)}var Ec=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),k0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Ac=S('<span class="text-ui text-subtle truncate"> </span>'),Pc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Tc=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),S0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),I0=S('<span class="text-ui text-subtle pl-4"> </span>'),C0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),E0=S('<div class="text-ui text-subtle"> </div>'),A0=S("<!> <!> <!> <!>",1),P0=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),T0=S('<div class="rounded-[0.5px]"></div>');function Ru(r,t){if(new.target)return Ht({component:Ru,...r});Ut(t,!0);let n=_(t,"stats",7),a=_(t,"tasks",23,()=>[]),s=_(t,"maxBars",7,20),o=_(t,"barWidth",7,"1px"),l=_(t,"barHeight",7,"16px"),c=_(t,"gap",7,"1px"),u=_(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=f(()=>{const{completed:D,inProgress:H,notStarted:C,total:z}=n();if(z===0)return[];const K=[...Array(D).fill("completed"),...Array(H).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return K.length<=s()?K:K.slice(K.length-s())}),g=f(()=>a().filter(D=>D.status==="complete")),R=f(()=>a().filter(D=>D.status==="in_progress"||D.status==="review_required")),b=f(()=>a().filter(D=>D.status!=="complete"&&D.status!=="in_progress"&&D.status!=="review_required"&&D.status!=="cancelled")),h=f(()=>a().filter(D=>D.status==="cancelled")),A=f(()=>a().length>0);var P={get stats(){return n()},set stats(D){n(D),x()},get tasks(){return a()},set tasks(D=[]){a(D),x()},get maxBars(){return s()},set maxBars(D=20){s(D),x()},get barWidth(){return o()},set barWidth(D="1px"){o(D),x()},get barHeight(){return l()},set barHeight(D="16px"){l(D),x()},get gap(){return c()},set gap(D="1px"){c(D),x()},get class(){return u()},set class(D){u(D),x()},$set:jt,$on:(D,H)=>Wt(t,D,H)},F=wt(),B=He(F);{var M=D=>{Fo(D,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var z=P0(),K=I(z),Y=I(K),oe=L(Y,!0),Se=m(Y,2),ce=I(Se);{var ne=Ne=>{var we=Ec(),Qe=I(we);An(Qe,"",{},{"background-color":"#22c55e"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().completed??""}`)),d(Ne,we)};O(ce,Ne=>{n().completed>0&&Ne(ne)})}var ge=m(ce,2);{var Oe=Ne=>{var we=Ec(),Qe=I(we);An(Qe,"",{},{"background-color":"#4F7BF7"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().inProgress??""}`)),d(Ne,we)};O(ge,Ne=>{n().inProgress>0&&Ne(Oe)})}var V=m(ge,2);{var fe=Ne=>{var we=k0(),Qe=m(I(we));w(we),k(()=>y(Qe,` ${n().notStarted??""}`)),d(Ne,we)};O(V,Ne=>{n().notStarted>0&&Ne(fe)})}w(Se),w(K);var de=m(K,2);{var Te=Ne=>{var we=A0(),Qe=He(we);At(Qe,17,()=>e(R),Tr,(J,G)=>{var q=Tc(),ae=I(q),he=I(ae);yo(he,{get status(){return e(G).status},size:14}),w(ae);var ee=m(ae,2),ue=I(ee),Pe=L(ue,!0),We=m(ue,2);{var at=me=>{var Ee=Pc(),U=I(Ee);{let T=f(()=>e(G).agentState||"idle");ol(U,{get agentId(){return e(G).agentId},get state(){return e(T)},size:12,get specialist(){return e(G).agentSpecialist}})}var ye=m(U,2);{var pe=T=>{var j=Ac(),xe=L(j,!0);k(()=>y(xe,e(G).agentName)),d(T,j)};O(ye,T=>{e(G).agentName&&T(pe)})}w(Ee),d(me,Ee)};O(We,me=>{e(G).agentId&&me(at)})}w(ee),w(q),k(()=>y(Pe,e(G).title)),d(J,q)});var qe=m(Qe,2);At(qe,17,()=>e(b),Tr,(J,G)=>{var q=Tc(),ae=I(q),he=I(ae);yo(he,{get status(){return e(G).status},size:14}),w(ae);var ee=m(ae,2),ue=I(ee),Pe=L(ue,!0),We=m(ue,2);{var at=me=>{var Ee=Pc(),U=I(Ee);{let T=f(()=>e(G).agentState||"idle");ol(U,{get agentId(){return e(G).agentId},get state(){return e(T)},size:12,get specialist(){return e(G).agentSpecialist}})}var ye=m(U,2);{var pe=T=>{var j=Ac(),xe=L(j,!0);k(()=>y(xe,e(G).agentName)),d(T,j)};O(ye,T=>{e(G).agentName&&T(pe)})}w(Ee),d(me,Ee)};O(We,me=>{e(G).agentId&&me(at)})}w(ee),w(q),k(()=>y(Pe,e(G).title)),d(J,q)});var et=m(qe,2);{var $=J=>{var G=C0(),q=I(G);At(q,17,()=>e(g).slice(0,3),Tr,(ee,ue)=>{var Pe=S0(),We=I(Pe),at=I(We);yo(at,{status:"complete",size:12}),w(We);var me=m(We,2),Ee=L(me,!0);w(Pe),k(()=>y(Ee,e(ue).title)),d(ee,Pe)});var ae=m(q,2);{var he=ee=>{var ue=I0(),Pe=L(ue,!0);k(We=>y(Pe,We),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d(ee,ue)};O(ae,ee=>{e(g).length>3&&ee(he)})}w(G),d(J,G)};O(et,J=>{e(g).length>0&&J($)})}var Z=m(et,2);{var Ve=J=>{var G=E0(),q=L(G,!0);k(ae=>y(q,ae),[()=>v.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(J,G)};O(Z,J=>{e(h).length>0&&J(Ve)})}d(Ne,we)};O(de,Ne=>{e(A)&&Ne(Te)})}w(z),k(Ne=>y(oe,Ne),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,z)},children:(C,z)=>{{let K=f(()=>En("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",u())),Y=f(()=>`gap: ${c()}`),oe=f(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)}));yt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(K)},get style(){return e(Y)},get"aria-label"(){return e(oe)},"data-task-progress-trigger":!0,children:(Se,ce)=>{var ne=wt(),ge=He(ne);At(ge,17,()=>e(p),Tr,(Oe,V)=>{var fe=T0();let de;k(()=>de=An(fe,"",de,{width:o(),height:l(),"background-color":i[e(V)]})),d(Oe,fe)}),d(Se,ne)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};O(B,D=>{n().total>0&&D(M)})}return d(r,F),qt(P)}function Pi(r,t){if(new.target)return Ht({component:Pi,...r});Ut(t,!0);let n=_(t,"items",7),a=_(t,"ariaLabel",7),s=_(t,"open",15,!1),o=_(t,"orientation",7,"vertical"),l=_(t,"selection",7),c=_(t,"class",7,"");const u=f(()=>ag(n(),l(),a()));var i={get items(){return n()},set items(p){n(p),x()},get ariaLabel(){return a()},set ariaLabel(p){a(p),x()},get open(){return s()},set open(p=!1){s(p),x()},get orientation(){return o()},set orientation(p="vertical"){o(p),x()},get selection(){return l()},set selection(p){l(p),x()},get class(){return c()},set class(p=""){c(p),x()},$set:jt,$on:(p,g)=>Wt(t,p,g)};return sm(r,{get actions(){return e(u)},align:"end",get ariaLabel(){return a()},onAction:g=>ng(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,R)=>{let b=()=>(R?.()).props;yt(g,li(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return c()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,A)=>{om(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var R0=S('<span class="contents"><!></span>'),L0=S("<!> <!>",1);function Lu(r,t){if(new.target)return Ht({component:Lu,...r});Ut(t,!0);let n=_(t,"workspaceId",7),a=_(t,"slot",7);const s=f(()=>Tg(a()));let o=_e(null);kt(()=>{e(o)&&e(o).workspaceId!==n()&&N(o,null)});function l(h){const A=Kc(h);A&&N(o,{...A,workspaceId:n()},!0)}function c(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();N(o,{x:A.left,y:A.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function u(){N(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),x()},get slot(){return a()},set slot(h){a(h),x()},$set:jt,$on:(h,A)=>Wt(t,h,A)},p=L0(),g=He(p);{let h=f(()=>v.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),A=f(()=>v.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),P=f(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(A)},onclick:c,oncontextmenu:l,onkeydown:l,"aria-haspopup":"menu",get"aria-expanded"(){return e(P)},children:(F,B)=>{var M=R0(),D=I(M);Bp(D,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(M),d(F,M)},$$slots:{default:!0}})}var R=m(g,2);{var b=h=>{{let A=f(()=>e(o)?.x??0),P=f(()=>e(o)?.y??0),F=f(()=>e(o)?.returnFocus),B=f(()=>v.workspace_card_assignMicroKey_label()),M=f(()=>ah(n(),u));Gc(h,{get x(){return e(A)},get y(){return e(P)},get returnFocus(){return e(F)},selection:"single",get ariaLabel(){return e(B)},get items(){return e(M)},onClickOutside:u})}};O(R,h=>{e(o)&&h(b)})}return d(r,p),qt(i)}var N0=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),M0=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),O0=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),D0=S('<span data-workspace-card-pr-item=""><!></span>'),B0=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),F0=S('<span data-workspace-card-time=""><!></span>'),z0=S('<span aria-hidden="true"><!></span>'),H0=S("<div><!> <!> <!> <!></div>"),j0=S('<div data-workspace-card-hover-surface=""><!></div>'),W0=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),U0=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),q0=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),V0=S('<div class="text-sm font-semibold truncate"> </div>'),Rc=S('<span class="truncate"> </span>'),K0=S('<span class="text-muted-foreground">·</span>'),G0=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),J0=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Y0=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),X0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Z0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Q0=S('<div class="flex items-center text-ui"><span> </span></div>'),$0=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),ek=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),tk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),rk=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Nu(r,t){if(new.target)return Ht({component:Nu,...r});Ut(t,!0);const n=()=>Dt(qe,"$prMonitors$",l),a=()=>Dt(et,"$microConnected$",l),s=()=>Dt(Z,"$hidesOwnerActions$",l),o=()=>Dt($,"$workspaceKeySlot$",l),[l,c]=ia();let u=_(t,"workspace",7),i=_(t,"phase",7),p=_(t,"stats",7),g=_(t,"variant",7,"compact"),R=_(t,"showTime",7,!0),b=_(t,"isRunning",7,!1),h=_(t,"isUnread",7,!1),A=_(t,"isWaiting",7),P=_(t,"isPinned",7,!1),F=_(t,"streamingAgentIds",23,()=>[]),B=_(t,"hasSpec",7,!1),M=_(t,"isAgentRunning",7,!1),D=_(t,"agentDigest",7),H=_(t,"trailingLabel",7),C=_(t,"title",7),z=_(t,"repoName",7),K=_(t,"branch",7),Y=_(t,"onClick",7),oe=_(t,"onAction",7),Se=_(t,"onTogglePin",7),ce=_(t,"onMarkAsRead",7),ne=_(t,"onOpenInNewWindow",7),ge=_(t,"onHover",7),Oe=_(t,"highlighted",7,!1),V=_(t,"selected",7,!1),fe=_(t,"highlightId",7),de=_(t,"suppressHover",7,!1),Te=_(t,"isolateHoverReveal",7,!1),Ne=_(t,"class",7),we=_(t,"actions",7);const Qe=os("");kt(()=>{Qe.set(u()?.id??"")});const qe=Cp(Qe),et=bh(),$=sv(Qe),Z=Ep(Qe),Ve=f(()=>oh(u()??{})),J=f(()=>ih(e(Ve)));let G=f(()=>u()?hh.url.pathname===`/workspace/${u().id}`:!1),q=f(()=>u()?`workspace-hover-card-${u().id}`:void 0),ae=_e(!1),he=_e(null),ee=_e(null);kt(()=>{if(!e(ee))return;const re=Cs(e(ee),{id:fe()});return()=>re.destroy()});let ue=_e(null),Pe=_e(null),We=_e(null),at=_e(0),me=_e(0),Ee=f(()=>e(at)+(e(me)>0?e(me)+4:0));function U(){const re=e(ue),pt=e(We);N(at,re?Math.max(0,re.scrollWidth-re.clientWidth):0,!0),N(me,re&&pt&&pt.getClientRects().length>0?Math.max(0,re.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}kt(()=>{const re=e(ue),pt=e(Pe),Bt=e(We);if(!re||!pt||(U(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(U);return hr.observe(re),hr.observe(pt),Bt&&hr.observe(Bt),()=>hr.disconnect()});let ye=null,pe=null,T=!1,j=!1,xe=!1,Ze=!1,Re=!1,je=!1,Q=_e(!1),Ce=!1,$e=null,tt=_e(null),ft=null,Be;function ht(){ye!==null&&(clearTimeout(ye),ye=null)}function lt(){pe!==null&&(clearTimeout(pe),pe=null),ft?.(),ft=null}function gt(){lt(),N(Q,!0),N(ae,!0),!Re&&(Re=!0,ns.notifyOpened())}function vt(){lt(),clearTimeout(Be),N(Q,!1),N(ae,!1),j=!1,Ze=!1,Re&&(Re=!1,ns.notifyClosed())}function Ct(){return T||j||xe||Ze}function Rt(){if(!e(ae)){vt();return}lt(),pe=setTimeout(()=>{pe=null,Ct()||vt()},ch),ft=ns.deferClose(vt)}function Zt(){j=!0,lt()}function _t(){j=!1,!xe&&!Ze&&Rt()}function Vt(){Ze=!0,clearTimeout(Be),lt()}function er(re){const pt=re.relatedTarget instanceof Node?re.relatedTarget:null;if(pt&&ie()?.contains(pt)||(Ze=!1,pt&&e(he)?.contains(pt)))return;if(pt){!T&&!j&&vt();return}const Bt=re.target;clearTimeout(Be),Be=setTimeout(()=>{const hr=document.activeElement,Cr=ie()?.contains(hr)||e(he)?.contains(hr);hr&&hr!==Bt&&Cr||!T&&!j&&vt()},0)}function Et(){$e!==null&&clearTimeout($e),Ce=!0,$e=setTimeout(()=>{Ce=!1,$e=null},0)}function Jt(re){const pt=re.target,Bt=ie();pt instanceof Node&&Bt?.contains(pt)||re.type==="scroll"&&e(he)&&pt instanceof Node&&!pt.contains(e(he))||(re.type==="pointerdown"&&Et(),ht(),vt())}kt(()=>{if(e(Q))return window.addEventListener("pointerdown",Jt,!0),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("pointerdown",Jt,!0),window.removeEventListener("scroll",Jt,!0)}});function Mt(re){if(re.key!=="Escape")return;const pt=re.target;pt instanceof Node&&ie()?.contains(pt)||(re.preventDefault(),re.stopPropagation(),je=xe,ht(),vt())}kt(()=>{if(e(ae))return window.addEventListener("keydown",Mt,!0),()=>window.removeEventListener("keydown",Mt,!0)});const ve=f(()=>u()?Pp.select(Nt.state,u().id):null),te=f(()=>e(ve)?e(ve):u()?.activePullRequest?u().activePullRequest:!u()?.prStatus||u().prNumber==null?null:{id:`legacy-pr-${u().prNumber}`,number:u().prNumber,url:u().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:u().prStatus,createdAt:u().updatedAt,updatedAt:u().updatedAt}),Ue=f(()=>Ap(u())),nt=f(()=>{if(!u()||e(Ue))return[];const re=u(),pt=re.repositoryOwner&&re.repositoryName?`${re.repositoryOwner}/${re.repositoryName}`:void 0;return sg({workspacePRs:re.pullRequests,activePR:e(te),monitors:n(),workspaceRepo:pt,buildPrUrl:(Bt,hr)=>Bv(Bt,re.repositoryOwner,re.repositoryName,hr),getDisplayTitle:Bt=>Bt.title})}),dt=f(()=>e(nt)[0]);function ze(re){const pt=re.resource?.repository.provider==="gitlab"?`${re.repo} !${re.number}`:re.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:re.repo,number:re.number}):v.workspace_card_prBadge_label({number:` #${re.number}`});return[Tp(pt,re),re.title,re.details].filter(Boolean).join(`
|
|
262
262
|
`)}function X(re){re.key==="Enter"&&Y()?.(re)}function ie(){return e(q)?document.getElementById(e(q)):null}function le(){return Array.from(ie()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function ke(){const re=e(he)?.querySelector("[data-workspace-card-trigger]"),pt=ie();if(!re||!pt)return null;const Bt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(Cr=>Cr.tabIndex>=0&&!pt.contains(Cr)),hr=Bt.indexOf(re);return hr>=0?Bt[hr+1]:null}function Ae(re){je=!!e(he)?.contains(re),vt(),re.focus({preventScroll:!0})}function De(){const re=e(he)?.querySelector("[data-workspace-card-trigger]");re&&Ae(re)}async function Fe(re){if(re.key==="Escape"&&e(ae)){re.preventDefault(),re.stopPropagation(),vt();return}re.key!=="ArrowDown"||de()||!u()||(re.preventDefault(),re.stopPropagation(),N(Q,!0),N(ae,!0),await Jn(),le()[0]?.focus({preventScroll:!0}))}function Je(re){const pt=le(),Bt=re.key==="Tab"&&re.shiftKey&&re.currentTarget===pt[0],Cr=re.key==="Tab"&&!re.shiftKey&&re.currentTarget===pt.at(-1)?ke():null;re.key!=="Escape"&&!Bt&&!Cr||(re.preventDefault(),re.stopPropagation(),Cr?Ae(Cr):De())}function Ke(){T=!0,lt(),ns.settleDeferredCloses(),U(),ge()?.(),u()&&!de()&&!xe&&(ht(),N(Q,!0),ye=setTimeout(()=>{ye=null,gt()},ns.currentOpenDelay))}function Ie(){T=!1,ht(),!xe&&!Ze&&Rt()}function Ye(){xe=!0,ht(),lt(),!je&&(Ce||u()&&!de()&&(N(Q,!0),N(ae,!0)))}function Ge(re){const pt=re.relatedTarget instanceof Node?re.relatedTarget:null;pt&&e(he)?.contains(pt)||(je=!1,xe=!1,!(pt&&ie()?.contains(pt))&&!T&&!j&&vt())}kt(()=>{de()&&(ht(),lt(),vt())});let rt=_e(null),ot=_e(!1),it;kt(()=>{const re=u()?.id;it!==re&&(it=re,N(ot,!1)),e(rt)&&e(rt).workspaceId!==u()?.id&&St()});function ut(re){if(!u())return;const pt=Kc(re);if(pt){if(N(ot,!1),bt().length===0){N(rt,null);return}N(rt,{...pt,returnFocus:re.target instanceof HTMLElement?re.target.closest("button")??e(he)?.querySelector("button")??null:null,workspaceId:u().id},!0)}}function St(){N(rt,null),N(ot,!1)}kt(()=>{e(ot)&&N(rt,null)}),ms(()=>{ht(),lt(),$e!==null&&(clearTimeout($e),$e=null),vt()});function bt(){if(!u())return[];const re=[];return ne()&&re.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:$c,onClick:()=>{ne()?.(),St()}}),re.push(...lh(u().id,{connected:a(),onClose:St})),s()||(e(Ue)||re.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:wg,onClick:()=>{Nt.dispatch(Vg({workspaceId:u().id,workspaceTitle:u().title})),St()}}),re.push({id:"archive",label:v.workspace_card_archive_label(),icon:ed,onClick:()=>{Nt.dispatch(fd(u().id)),St()}}),re.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:td,destructive:!0,onClick:()=>{Nt.dispatch(pd(u().id)),St()}})),re}let Lt=f(()=>M()&&D()?D():i()?.subtitle??""),Yt=f(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=f(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Kt=f(()=>e(Ue)?void 0:K()),Lr=f(()=>!p()||e(Ue)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),Qr=f(()=>i()?.phase==="planning"?M()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:B()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const gn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var Dn={get workspace(){return u()},set workspace(re){u(re),x()},get phase(){return i()},set phase(re){i(re),x()},get stats(){return p()},set stats(re){p(re),x()},get variant(){return g()},set variant(re="compact"){g(re),x()},get showTime(){return R()},set showTime(re=!0){R(re),x()},get isRunning(){return b()},set isRunning(re=!1){b(re),x()},get isUnread(){return h()},set isUnread(re=!1){h(re),x()},get isWaiting(){return A()},set isWaiting(re){A(re),x()},get isPinned(){return P()},set isPinned(re=!1){P(re),x()},get streamingAgentIds(){return F()},set streamingAgentIds(re=[]){F(re),x()},get hasSpec(){return B()},set hasSpec(re=!1){B(re),x()},get isAgentRunning(){return M()},set isAgentRunning(re=!1){M(re),x()},get agentDigest(){return D()},set agentDigest(re){D(re),x()},get trailingLabel(){return H()},set trailingLabel(re){H(re),x()},get title(){return C()},set title(re){C(re),x()},get repoName(){return z()},set repoName(re){z(re),x()},get branch(){return K()},set branch(re){K(re),x()},get onClick(){return Y()},set onClick(re){Y(re),x()},get onAction(){return oe()},set onAction(re){oe(re),x()},get onTogglePin(){return Se()},set onTogglePin(re){Se(re),x()},get onMarkAsRead(){return ce()},set onMarkAsRead(re){ce(re),x()},get onOpenInNewWindow(){return ne()},set onOpenInNewWindow(re){ne(re),x()},get onHover(){return ge()},set onHover(re){ge(re),x()},get highlighted(){return Oe()},set highlighted(re=!1){Oe(re),x()},get selected(){return V()},set selected(re=!1){V(re),x()},get highlightId(){return fe()},set highlightId(re){fe(re),x()},get suppressHover(){return de()},set suppressHover(re=!1){de(re),x()},get isolateHoverReveal(){return Te()},set isolateHoverReveal(re=!1){Te(re),x()},get class(){return Ne()},set class(re){Ne(re),x()},get actions(){return we()},set actions(re){we(re),x()},$set:jt,$on:(re,pt)=>Wt(t,re,pt)},cn=wt(),Xn=He(cn);{var Pn=re=>{var pt=W0(),Bt=He(pt);let hr;var Cr=I(Bt);{let Le=f(()=>u().title||v.workspace_links_untitled_label()),st=f(()=>`workspace-status-state-${u().id}${P()?` workspace-pinned-state-${u().id}`:""}${e(ae)?` ${e(q)}`:""}`),Qt=f(()=>e(G)?"page":void 0);yt(Cr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(Le)},get"aria-describedby"(){return e(st)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:Ot=>{Ot.stopPropagation(),Y()?.(Ot)}})}var Tn=m(Cr,2),kr=I(Tn);{var Bn=Le=>{var st=N0(),Qt=I(st);{var Ot=tr=>{Lu(tr,{get workspaceId(){return u().id},get slot(){return o()}})};O(Qt,tr=>{o()!==null&&tr(Ot)})}w(st),d(Le,st)};O(kr,Le=>{a()&&Le(Bn)})}var Fn=m(kr,2);Fo(Fn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(Le,st)=>{sh(Le,{get status(){return e(Ve)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Zn=m(Fn,2),zn=L(Zn,!0);w(Tn);var Vr=m(Tn,2),vn=I(Vr),sr=I(vn),Kr=I(sr),ra=L(Kr,!0);gr(Kr,Le=>N(Pe,Le),()=>e(Pe)),w(sr),gr(sr,Le=>N(ue,Le),()=>e(ue));var Sr=m(sr,2);{var Er=Le=>{var st=M0(),Qt=He(st),Ot=I(Qt);Tt(Ot,{get icon(){return ul},size:"xs"}),w(Qt);var tr=m(Qt,2),vr=L(tr,!0);k(dn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
263
|
-
${Se()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${u().id??""}`),y(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Le,st)};O(Sr,Le=>{P()&&Le(Er)})}w(vn);var $r=m(vn,2);{var ca=Le=>{var st=O0(),Qt=L(st,!0);k(()=>y(Qt,H())),d(Le,st)};O($r,Le=>{H()&&Le(ca)})}var Gr=m($r,2);{var en=Le=>{const st=f(()=>e(dt));var Qt=B0(),Ot=I(Qt);{let tr=f(()=>ze(e(st)));Fo(Ot,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=He(xn);{var fr=Nr=>{{let yr=f(()=>ze(e(st)));yt(Nr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Ar=u().id;rp(async()=>{const{handleLink:an}=await import("./
|
|
263
|
+
${Se()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${u().id??""}`),y(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Le,st)};O(Sr,Le=>{P()&&Le(Er)})}w(vn);var $r=m(vn,2);{var ca=Le=>{var st=O0(),Qt=L(st,!0);k(()=>y(Qt,H())),d(Le,st)};O($r,Le=>{H()&&Le(ca)})}var Gr=m($r,2);{var en=Le=>{const st=f(()=>e(dt));var Qt=B0(),Ot=I(Qt);{let tr=f(()=>ze(e(st)));Fo(Ot,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=He(xn);{var fr=Nr=>{{let yr=f(()=>ze(e(st)));yt(Nr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Ar=u().id;rp(async()=>{const{handleLink:an}=await import("./O86272iX.js").then(na=>na.Q);return{handleLink:an}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,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,53,54,55,56]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Ar,event:Or}))},children:(Or,Ar)=>{Tt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Nr=>{var yr=D0(),Or=I(yr);Tt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Ar=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Ar),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>ze(e(st))]),d(Nr,yr)};O(un,Nr=>{e(st).url?Nr(fr):Nr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Le,Qt)};O(Gr,Le=>{e(dt)&&Le(en)})}var Jr=m(Gr,2);{var da=Le=>{var st=F0(),Qt=I(st);{var Ot=vr=>{{let dn=f(()=>hl(u()));Fp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=f(()=>hl(u())>0);O(Qt,vr=>{e(tr)&&vr(Ot)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Se()||h()&&ce()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Le,st)};O(Jr,Le=>{R()&&Le(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Le=>{var st=H0(),Qt=I(st);{var Ot=fr=>{{let jr=f(()=>P()?"text-primary-ink":"text-muted-foreground"),Nr=f(()=>P()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=f(()=>P()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
264
264
|
${e(jr)??""}`},onclick:Or=>{Or.stopPropagation(),Se()?.(Or)},get"aria-label"(){return e(Nr)},get title(){return e(yr)},children:(Or,Ar)=>{var an=z0(),na=I(an);Tt(na,{get icon(){return ul},size:"xs"}),w(an),d(Or,an)},$$slots:{default:!0}})}};O(Qt,fr=>{Se()&&fr(Ot)})}var tr=m(Qt,2);{var vr=fr=>{{let jr=f(()=>v.workspace_card_markAsRead_label()),Nr=f(()=>v.workspace_card_markAsRead_label());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:yr=>{yr.stopPropagation(),ce()?.(yr)},get"aria-label"(){return e(jr)},get title(){return e(Nr)},children:(yr,Or)=>{Tt(yr,{get icon(){return rd},size:"xs"})},$$slots:{default:!0}})}};O(tr,fr=>{h()&&ce()&&fr(vr)})}var dn=m(tr,2);pn(dn,()=>we()??Ds);var xn=m(dn,2);{var un=fr=>{{let jr=f(bt),Nr=f(()=>v.workspace_progressCard_actions_ariaLabel());Pi(fr,{get items(){return e(jr)},get ariaLabel(){return e(Nr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ot)},set open(yr){N(ot,yr,!0)}})}};O(xn,fr=>{ne()&&fr(un)})}w(st),gr(st,fr=>N(We,fr),()=>e(We)),k(()=>mt(st,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
265
265
|
${Te()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
266
266
|
${Oe()?"opacity-100":de()?"opacity-0":Te()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Le,st)};O(Ta,Le=>{(we()||ne()||Se()||h()&&ce())&&Le(Ra)})}w(Bt),gr(Bt,Le=>N(he,Le),()=>e(he)),On(Bt,(Le,st)=>Cs?.(Le,st),()=>({id:fe()}));var Yr=m(Bt,2);{var tn=Le=>{dh(Le,{get id(){return e(q)},get anchor(){return`--workspace-list-${u().id??""}`},position:"right",get anchorElement(){return e(he)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:_t,onfocusin:Vt,onfocusout:er,children:(st,Qt)=>{var Ot=j0(),tr=I(Ot);uh(tr,{get workspace(){return u()},get activeAgentIds(){return F()},onkeydown:Je}),w(Ot),gr(Ot,vr=>N(tt,vr),()=>e(tt)),Cn("pointerenter",Ot,Zt),Cn("pointerleave",Ot,_t),Rr("focusin",Ot,Vt),Rr("focusout",Ot,er),d(st,Ot)},$$slots:{default:!0}})};O(Yr,Le=>{e(ae)&&!de()&&Le(tn)})}var W=m(Yr,2);{var Me=Le=>{const st=f(bt);var Qt=wt(),Ot=He(Qt);{var tr=vr=>{{let dn=f(()=>e(rt)?.x??0),xn=f(()=>e(rt)?.y??0),un=f(()=>e(rt)?.returnFocus),fr=f(()=>v.workspace_progressCard_actions_ariaLabel());Gc(vr,{get x(){return e(dn)},get y(){return e(xn)},get returnFocus(){return e(un)},get ariaLabel(){return e(fr)},get items(){return e(st)},onClickOutside:St})}};O(Ot,vr=>{e(st).length>0&&vr(tr)})}d(Le,Qt)};O(W,Le=>{e(rt)&&Le(Me)})}k((Le,st,Qt)=>{mt(Bt,1,Le,"svelte-1ct56pd"),se(Bt,"data-pinned",P()),se(Bt,"data-highlight-id",fe()),hr=An(Bt,"",hr,{"anchor-name":`--workspace-list-${u().id??""}`}),se(Zn,"id",`workspace-status-state-${u().id??""}`),y(zn,e(J).accessibleName),mt(sr,1,`wc-title type-body min-w-0 truncate font-normal!
|