@intent-hq/web 2.303.0 → 2.303.1
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/chunks/{o3jAyq2Q.js → 2nZ4DEDk.js} +1 -1
- package/web/app/immutable/chunks/{I-jE7nTc.js → 3C0u635Z.js} +1 -1
- package/web/app/immutable/chunks/{C2vTRI6X.js → 6HM0WwrI.js} +1 -1
- package/web/app/immutable/chunks/{D_TKkCPK.js → 8CC8TVgI.js} +1 -1
- package/web/app/immutable/chunks/{ByACHrz5.js → 8L6UQh4N.js} +1 -1
- package/web/app/immutable/chunks/{BqDsguwv.js → 8ouV2ksN.js} +1 -1
- package/web/app/immutable/chunks/{DTjD4zeW.js → 8wsU44-j.js} +1 -1
- package/web/app/immutable/chunks/{DAtVbVsS.js → A4Dmh4Er.js} +1 -1
- package/web/app/immutable/chunks/{v5vYCVrf.js → A5biXxJf.js} +1 -1
- package/web/app/immutable/chunks/{BfVCjn3m.js → B5OCTRwy.js} +1 -1
- package/web/app/immutable/chunks/{Ck-LL3ed.js → B6AD3L6o.js} +1 -1
- package/web/app/immutable/chunks/{PNQ1m_CS.js → B7kIvU97.js} +1 -1
- package/web/app/immutable/chunks/{BGBckFMe.js → BA0tWkIy.js} +1 -1
- package/web/app/immutable/chunks/{AJtVnhIc.js → BD6dhUAy.js} +1 -1
- package/web/app/immutable/chunks/{Bj8ymBdJ.js → BDnl1KXt.js} +1 -1
- package/web/app/immutable/chunks/{BQ8ALGA9.js → BE5Fv7qN.js} +1 -1
- package/web/app/immutable/chunks/{97h7YGw7.js → BEOehA7p.js} +1 -1
- package/web/app/immutable/chunks/{C3PvtSMl.js → BEpG-KhT.js} +1 -1
- package/web/app/immutable/chunks/{CVTVaQji.js → BFAvFQtn.js} +1 -1
- package/web/app/immutable/chunks/{Ci-IeJJ3.js → BFf5Uhiw.js} +2 -2
- package/web/app/immutable/chunks/{DdpI6OOT.js → BIZa5Cf_.js} +1 -1
- package/web/app/immutable/chunks/{CwBqheGE.js → BJZA2e1k.js} +1 -1
- package/web/app/immutable/chunks/{VUF07YVv.js → BK4u9wtb.js} +1 -1
- package/web/app/immutable/chunks/{zSrQFJSH.js → BKb1USDa.js} +1 -1
- package/web/app/immutable/chunks/{Ddxi1vXg.js → BOUU5n11.js} +1 -1
- package/web/app/immutable/chunks/{TuV551_5.js → BP5uTKE_.js} +1 -1
- package/web/app/immutable/chunks/{CF3ASrh5.js → BRWGra38.js} +1 -1
- package/web/app/immutable/chunks/{CllDLn8I.js → BVN4ilux.js} +1 -1
- package/web/app/immutable/chunks/{bFN78kMF.js → BVvgEXvX.js} +1 -1
- package/web/app/immutable/chunks/{BAf0DpTf.js → BXoIE56p.js} +1 -1
- package/web/app/immutable/chunks/{CwAeATOR.js → BZlF9cZE.js} +1 -1
- package/web/app/immutable/chunks/{DHXO_GXc.js → B_RQpkN5.js} +1 -1
- package/web/app/immutable/chunks/{BE462hO2.js → B_USDn20.js} +1 -1
- package/web/app/immutable/chunks/{5MHba1xk.js → B__rt0-I.js} +4 -4
- package/web/app/immutable/chunks/{B8cf5lme.js → Ba6ldMEi.js} +1 -1
- package/web/app/immutable/chunks/{VLI4PPZ8.js → BbfCrwpS.js} +1 -1
- package/web/app/immutable/chunks/{B0rYdaYY.js → BbwEzwME.js} +1 -1
- package/web/app/immutable/chunks/{C9C3aXN4.js → Bc8F17WQ.js} +1 -1
- package/web/app/immutable/chunks/{Uqyp_Z5g.js → BeoKf2Nm.js} +1 -1
- package/web/app/immutable/chunks/{CpMOYtor.js → Bfve9onU.js} +1 -1
- package/web/app/immutable/chunks/{pKHTNJjH.js → Bg-9J17z.js} +1 -1
- package/web/app/immutable/chunks/{DVzAdR49.js → BhPgWKZZ.js} +1 -1
- package/web/app/immutable/chunks/{CVyJXdHx.js → Bj8NtCfK.js} +1 -1
- package/web/app/immutable/chunks/{BBGqB1Iv.js → BnaVNQ5C.js} +1 -1
- package/web/app/immutable/chunks/{DooB2XO8.js → Bosjw8O3.js} +1 -1
- package/web/app/immutable/chunks/{Bfq2NG2E.js → Bp0o4QK_.js} +1 -1
- package/web/app/immutable/chunks/{Dc87vv58.js → Br_vwCYL.js} +3 -3
- package/web/app/immutable/chunks/{DuLaaA6-.js → Brbvu9Bf.js} +1 -1
- package/web/app/immutable/chunks/{BVAdPP5H.js → Bu7emN7b.js} +1 -1
- package/web/app/immutable/chunks/{BFBxkMdn.js → BvuwU8jV.js} +7 -7
- package/web/app/immutable/chunks/{B2mQPZBP.js → C0AUyzcq.js} +1 -1
- package/web/app/immutable/chunks/{Kb7gEpi7.js → C1SVvLkf.js} +1 -1
- package/web/app/immutable/chunks/{BMsD16_3.js → C2zQhN_1.js} +1 -1
- package/web/app/immutable/chunks/{CFMQFeRy.js → C5PE5dRA.js} +1 -1
- package/web/app/immutable/chunks/{S7byAssO.js → C5b0K3dK.js} +1 -1
- package/web/app/immutable/chunks/{CN0juutS.js → C6BkQqQb.js} +1 -1
- package/web/app/immutable/chunks/{Cca849ph.js → C6q6LFl7.js} +6 -6
- package/web/app/immutable/chunks/{anXEajM1.js → CCkicAWR.js} +1 -1
- package/web/app/immutable/chunks/{C0UTtBMM.js → CDHK1MhW.js} +1 -1
- package/web/app/immutable/chunks/{CzrjeBLh.js → CDIkpSZv.js} +1 -1
- package/web/app/immutable/chunks/{CBc7jb8Q.js → CDjySRKh.js} +1 -1
- package/web/app/immutable/chunks/{R9MY3CbI.js → CE9oTb_7.js} +1 -1
- package/web/app/immutable/chunks/{Cxvrw3bm.js → CGTwtuZB.js} +1 -1
- package/web/app/immutable/chunks/{Bm2MGeAn.js → CJ9pemY5.js} +1 -1
- package/web/app/immutable/chunks/{D7HSLF3F.js → CKMwvgmW.js} +1 -1
- package/web/app/immutable/chunks/{D0aTvP2D.js → CMdvdycX.js} +1 -1
- package/web/app/immutable/chunks/{BNJpxlGa.js → CMmFp0Pt.js} +1 -1
- package/web/app/immutable/chunks/{BtLMNwhe.js → CPUt5W4G.js} +1 -1
- package/web/app/immutable/chunks/{C1rG2kRq.js → CQ3a1EyG.js} +1 -1
- package/web/app/immutable/chunks/{CexToh2A.js → CQchJimX.js} +1 -1
- package/web/app/immutable/chunks/{C8OQrIIm.js → CQp6uUPO.js} +1 -1
- package/web/app/immutable/chunks/{DLA-s1b2.js → CRASodpm.js} +1 -1
- package/web/app/immutable/chunks/{D3PYAISi.js → CRf1KTYE.js} +1 -1
- package/web/app/immutable/chunks/{Bkptxo7s.js → CSxiQIqf.js} +1 -1
- package/web/app/immutable/chunks/{Cd4YH471.js → CTFAhMsj.js} +1 -1
- package/web/app/immutable/chunks/{DlCMYEtT.js → CU742qVA.js} +1 -1
- package/web/app/immutable/chunks/{Dw3mdpNm.js → CXYSZJwQ.js} +1 -1
- package/web/app/immutable/chunks/{DecbABF7.js → C_lHU_9L.js} +2 -2
- package/web/app/immutable/chunks/{Cx-YXwmH.js → CbfNaFu6.js} +1 -1
- package/web/app/immutable/chunks/{CHFzcWvZ.js → CbgVFYxx.js} +1 -1
- package/web/app/immutable/chunks/{D9nEByRA.js → Cbo9e-lk.js} +1 -1
- package/web/app/immutable/chunks/{BSwEKQ1_.js → CcWcrRx2.js} +1 -1
- package/web/app/immutable/chunks/{BE__XMIp.js → CcwPQ9O4.js} +1 -1
- package/web/app/immutable/chunks/{DvLWLX5y.js → CflfeJIa.js} +1 -1
- package/web/app/immutable/chunks/{YoGNCXo4.js → CgoYLyrh.js} +1 -1
- package/web/app/immutable/chunks/{DuvPWUsz.js → CjHpP5RK.js} +1 -1
- package/web/app/immutable/chunks/{DFwdQIO-.js → CjPzTuqd.js} +1 -1
- package/web/app/immutable/chunks/{8Alqs5BQ.js → CluMc6c4.js} +5 -5
- package/web/app/immutable/chunks/{CgbrFn69.js → CnXUfSkf.js} +1 -1
- package/web/app/immutable/chunks/{OFlMqCXp.js → CpO5voiW.js} +1 -1
- package/web/app/immutable/chunks/{DfmdJdwv.js → CqIXbU6G.js} +1 -1
- package/web/app/immutable/chunks/{CP8kh5mB.js → Cqpkx5D-.js} +1 -1
- package/web/app/immutable/chunks/{DcPnShx8.js → CrHeSy6g.js} +1 -1
- package/web/app/immutable/chunks/{B2VEN5u-.js → CrqpGEjY.js} +1 -1
- package/web/app/immutable/chunks/{D0Yzm6Tr.js → CuxOQF3U.js} +1 -1
- package/web/app/immutable/chunks/{Dy7JBRvs.js → CxXNCTXN.js} +1 -1
- package/web/app/immutable/chunks/{DxXerxkL.js → CyntsY8m.js} +1 -1
- package/web/app/immutable/chunks/{DgekGtPq.js → CyrC60Vp.js} +1 -1
- package/web/app/immutable/chunks/{Ct4xVHP2.js → D-D5GX62.js} +1 -1
- package/web/app/immutable/chunks/{C7VgYeWn.js → D-M2DNIU.js} +1 -1
- package/web/app/immutable/chunks/{PdV-3XT4.js → D0ftNzpH.js} +1 -1
- package/web/app/immutable/chunks/{BteZSr1k.js → D1wQuS9X.js} +1 -1
- package/web/app/immutable/chunks/{CeNpZHYY.js → D4t7Z7vv.js} +1 -1
- package/web/app/immutable/chunks/{a2HQi9wL.js → D4uurSjm.js} +2 -2
- package/web/app/immutable/chunks/{Be2jiTan.js → D5ffGNx9.js} +1 -1
- package/web/app/immutable/chunks/{D3MI97KG.js → D6_E0s-v.js} +1 -1
- package/web/app/immutable/chunks/{DqjmLIQK.js → D8GJ611X.js} +1 -1
- package/web/app/immutable/chunks/{CzSlsGoP.js → DAL0Y3FS.js} +1 -1
- package/web/app/immutable/chunks/{BChUH2Be.js → DCtWL3QH.js} +1 -1
- package/web/app/immutable/chunks/{BJuO6D8C.js → DDXJdNWs.js} +1 -1
- package/web/app/immutable/chunks/{BU7Z2EF0.js → DDXSm5kb.js} +1 -1
- package/web/app/immutable/chunks/{EbFvsc3p.js → DDevx-cQ.js} +1 -1
- package/web/app/immutable/chunks/{BBiyRGtr.js → DE-ZJyo7.js} +1 -1
- package/web/app/immutable/chunks/{BqCB5d8M.js → DHaw_3Nr.js} +1 -1
- package/web/app/immutable/chunks/{LlFTKxal.js → DHzasNfT.js} +1 -1
- package/web/app/immutable/chunks/{BfVcof_o.js → DIKzzQEG.js} +1 -1
- package/web/app/immutable/chunks/{BigIsyj-.js → DIPmbnAQ.js} +1 -1
- package/web/app/immutable/chunks/{Dzgwo0GZ.js → DJGQatsU.js} +1 -1
- package/web/app/immutable/chunks/{DirNRoXa.js → DKXptzLp.js} +1 -1
- package/web/app/immutable/chunks/{BtQ4PSLG.js → DLg1LKff.js} +1 -1
- package/web/app/immutable/chunks/{IA3w-uN7.js → DTbuwXvH.js} +1 -1
- package/web/app/immutable/chunks/{2B1R4jRU.js → DTonRSsv.js} +1 -1
- package/web/app/immutable/chunks/{DJSEF8k8.js → DW0i1p3h.js} +3 -3
- package/web/app/immutable/chunks/{DrQZ_5ep.js → DXwWG0kg.js} +1 -1
- package/web/app/immutable/chunks/{D-Id8F3a.js → DYrmWLZS.js} +1 -1
- package/web/app/immutable/chunks/{DDGwSFq5.js → DZVScUjw.js} +1 -1
- package/web/app/immutable/chunks/{DEwxJ7iL.js → Da8-5i7r.js} +1 -1
- package/web/app/immutable/chunks/{CSJVGysw.js → Dam5_Z8s.js} +3 -3
- package/web/app/immutable/chunks/{Rc4VcH_q.js → Dcd7scoM.js} +4 -4
- package/web/app/immutable/chunks/{CcxlKj8X.js → DdAufyF9.js} +2 -2
- package/web/app/immutable/chunks/{BlwZkVqv.js → Ddsqeq3q.js} +1 -1
- package/web/app/immutable/chunks/{KjuwwTcE.js → DeIkS6Ir.js} +1 -1
- package/web/app/immutable/chunks/{5-xtIxmm.js → DiIl-PCx.js} +1 -1
- package/web/app/immutable/chunks/{CXKLXdSt.js → Di_N5xxx.js} +1 -1
- package/web/app/immutable/chunks/{BoGuiO53.js → DjDCBOVS.js} +1 -1
- package/web/app/immutable/chunks/{DbBvr8WB.js → Dm6zmEG5.js} +1 -1
- package/web/app/immutable/chunks/{CQBka_wr.js → DnZciTxO.js} +1 -1
- package/web/app/immutable/chunks/{313bnnXe.js → DqZfiNRX.js} +1 -1
- package/web/app/immutable/chunks/Ds156ydk.js +1 -0
- package/web/app/immutable/chunks/{Br9kjSBP.js → DsuTjoON.js} +1 -1
- package/web/app/immutable/chunks/{DAk3LZcR.js → DtPH5jDv.js} +1 -1
- package/web/app/immutable/chunks/{CdJFh0TZ.js → DtVW9_m7.js} +1 -1
- package/web/app/immutable/chunks/{Dzh2k03L.js → Du_FFECf.js} +4 -4
- package/web/app/immutable/chunks/{CtY6JHRa.js → DyUJKXsD.js} +1 -1
- package/web/app/immutable/chunks/{ITC0lU_J.js → DyzwKjcO.js} +1 -1
- package/web/app/immutable/chunks/{CJ8yc0DP.js → Dz0HBLX5.js} +1 -1
- package/web/app/immutable/chunks/{BOjYXcVe.js → EY1yX4lQ.js} +1 -1
- package/web/app/immutable/chunks/{BqEArC05.js → IS2i-qON.js} +2 -2
- package/web/app/immutable/chunks/{B2G7y0XK.js → JxxJ9mXU.js} +1 -1
- package/web/app/immutable/chunks/{DmjB9mMi.js → K-3wWXoG.js} +1 -1
- package/web/app/immutable/chunks/{BQljjSCN.js → LYkiL1Z7.js} +1 -1
- package/web/app/immutable/chunks/{BF_QBoo8.js → MPaSCQWF.js} +2 -2
- package/web/app/immutable/chunks/{Cp2w4Aoq.js → Mfxk6hrK.js} +1 -1
- package/web/app/immutable/chunks/{CaNii-Ah.js → Mw-Gpasz.js} +1 -1
- package/web/app/immutable/chunks/{BQyRZ41z.js → NBksFwgt.js} +1 -1
- package/web/app/immutable/chunks/{CUDTlaFj.js → PM-2gCwH.js} +2 -2
- package/web/app/immutable/chunks/{Bge5dh1B.js → TO63wgKH.js} +1 -1
- package/web/app/immutable/chunks/{CotXze-m.js → UNcL8nMD.js} +1 -1
- package/web/app/immutable/chunks/{fHyhzSl9.js → VNIUMXZ1.js} +1 -1
- package/web/app/immutable/chunks/{BuVa2eFx.js → YaNhYlLh.js} +1 -1
- package/web/app/immutable/chunks/{Bz_Ux7Cj.js → YgJaoLfT.js} +1 -1
- package/web/app/immutable/chunks/{B7Avn4wl.js → aPknFgnB.js} +1 -1
- package/web/app/immutable/chunks/{fotZrDMM.js → bFa0TDbD.js} +6 -6
- package/web/app/immutable/chunks/{C-schCPB.js → bU-QghYU.js} +1 -1
- package/web/app/immutable/chunks/{D2rmBgSd.js → bzm-2n30.js} +1 -1
- package/web/app/immutable/chunks/{xtLfMwsc.js → d5YX3jLF.js} +1 -1
- package/web/app/immutable/chunks/{DSl1LR8y.js → hV-a3cEo.js} +1 -1
- package/web/app/immutable/chunks/{C0ZFfsPl.js → i6zTaEpb.js} +1 -1
- package/web/app/immutable/chunks/{Cnt9Xhr-.js → jfXvxS2S.js} +1 -1
- package/web/app/immutable/chunks/{Ctpp2ZEX.js → k-g3rTlx.js} +1 -1
- package/web/app/immutable/chunks/{F3rH8MkV.js → kGwqxarX.js} +1 -1
- package/web/app/immutable/chunks/{heLBnDWs.js → lM8ThUgn.js} +1 -1
- package/web/app/immutable/chunks/{Ccv0zhgY.js → n309YBvY.js} +1 -1
- package/web/app/immutable/chunks/{DBson49o.js → os23peQy.js} +1 -1
- package/web/app/immutable/chunks/{CAiomrJ4.js → pbklRmq5.js} +1 -1
- package/web/app/immutable/chunks/{cGdzQWNj.js → qVeyMZUH.js} +1 -1
- package/web/app/immutable/chunks/{CiUEMn04.js → sPXVt7LC.js} +1 -1
- package/web/app/immutable/chunks/{D4xrSP2W.js → tjLyHM1H.js} +1 -1
- package/web/app/immutable/chunks/{ZfQn4F-U.js → uaFePogj.js} +1 -1
- package/web/app/immutable/chunks/{BXfAbeiD.js → w3jeSEdx.js} +1 -1
- package/web/app/immutable/chunks/{rrqRhvrj.js → x7K3UR1M.js} +1 -1
- package/web/app/immutable/chunks/{Ctj6dlZG.js → zZLFVw4s.js} +1 -1
- package/web/app/immutable/entry/{app.B9uDIvO4.js → app.DE4M1e5K.js} +2 -2
- package/web/app/immutable/entry/start.Cx6ojV1T.js +1 -0
- package/web/app/immutable/nodes/{0.DxDi28Fc.js → 0.DzKcGMpw.js} +1 -1
- package/web/app/immutable/nodes/{1.BgNW_lIz.js → 1.BRKnSVrJ.js} +1 -1
- package/web/app/immutable/nodes/{10.Dq5xHqVF.js → 10.Dq2vvlba.js} +1 -1
- package/web/app/immutable/nodes/{14.BiFAnsPE.js → 14.vi5_3ajt.js} +1 -1
- package/web/app/immutable/nodes/{16.BflOgUt1.js → 16.B4hQ-11c.js} +2 -2
- package/web/app/immutable/nodes/{2.D4IoOmMO.js → 2.CIWkcax4.js} +3 -3
- package/web/app/immutable/nodes/{3.ChiAVYk6.js → 3.nHUMIbz4.js} +1 -1
- package/web/app/immutable/nodes/{4.BrpIsxVq.js → 4.CuGifUZf.js} +1 -1
- package/web/app/immutable/nodes/5.B28pUbsn.js +5 -0
- package/web/app/immutable/nodes/{6.BJlVb40R.js → 6.D04srF9Y.js} +1 -1
- package/web/app/immutable/nodes/{7.sjxnbCBj.js → 7.U-29Oxv0.js} +1 -1
- package/web/app/immutable/nodes/{8.DHiXeaLn.js → 8.Bw_t7MQd.js} +2 -2
- package/web/app/immutable/nodes/{9.CQl5M2II.js → 9.Dr8DgxLF.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/QrkzYSgq.js +0 -1
- package/web/app/immutable/entry/start.Co8Id4RS.js +0 -1
- package/web/app/immutable/nodes/5.CnAllYkd.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as _}from"./
|
|
1
|
+
import{p as _}from"./DeIkS6Ir.js";import{p as E}from"./CpO5voiW.js";import{aF as F,K as D,O as G,aI as P,L as z,aG as B,a as c,aE as W,k as V,j as C,M as T,y as j,ad as k,U as H,r as U}from"./BvuwU8jV.js";import{g as w}from"./bFa0TDbD.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,S={axes:[],curves:[],options:x},m=structuredClone(S),K=j.radar,X=c(()=>C({...K,...T().radar}),"getConfig"),O=c(()=>m.axes,"getAxes"),N=c(()=>m.curves,"getCurves"),Y=c(()=>m.options,"getOptions"),Z=c(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),q=c(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=O();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Q=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});m.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},m.options.ticks>y&&(k.warn(`Radar diagram ticks (${m.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),m.options.ticks=y)},"setOptions"),tt=c(()=>{V(),m=structuredClone(S)},"clear"),$={getAxes:O,getCurves:N,getOptions:Y,setAxes:Z,setCurves:q,setOptions:Q,getConfig:X,clear:tt,setAccTitle:B,getAccTitle:z,setDiagramTitle:P,getDiagramTitle:G,getAccDescription:D,setAccDescription:F},et=c(a=>{_(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),at={parse:c(async a=>{const t=await E("radar",a);k.debug(t),et(t)},"parse")},rt=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=W(t),u=st(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;nt(u,i,v,n.ticks,n.graticule),ot(u,i,v,o),b(u,i,l,h,g,n.graticule,o),L(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),st=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return U(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),nt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),ot=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function b(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=A(g,r,s,o),R=f*Math.cos(v),I=f*Math.sin(v);return{x:R,y:I}});i==="circle"?a.append("path").attr("d",M(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}w(b,"drawCurves");c(b,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}w(A,"relativeRadius");c(A,"relativeRadius");function M(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}w(M,"closedRoundCurve");c(M,"closedRoundCurve");function L(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}w(L,"drawLegend");c(L,"drawLegend");var it={draw:rt},lt=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./BZlF9cZE.js";import{p}from"./DeIkS6Ir.js";import{M as u,b as c}from"./CpO5voiW.js";import{a as t,ad as o}from"./BvuwU8jV.js";import"./bFa0TDbD.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:b,db:a,renderer:m,styles:l};export{G as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as m,ch as x,aO as O,G as k,bC as p,l as A,ab as Y,a1 as E,ac as T,cw as _,ca as H,aF as D,b7 as J,aU as z,b6 as X,bU as C,b4 as F,b5 as U,bT as W}from"./
|
|
1
|
+
import{f as m,ch as x,aO as O,G as k,bC as p,l as A,ab as Y,a1 as E,ac as T,cw as _,ca as H,aF as D,b7 as J,aU as z,b6 as X,bU as C,b4 as F,b5 as U,bT as W}from"./bFa0TDbD.js";import{l as j}from"./YgJaoLfT.js";var R=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),K=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],Q=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),V=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=R(Math.max(d,t.width*.35),36,l),i=R(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}case"top":default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),Z=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};case"top":default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,w)=>u.edge.selfLoop.order-w.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=Q(t,o,h,i.start,f),b=V(o,L,e,n.width??0),y=Z(o,b,L,e,n),g={...l.edge,...i,id:i.id,points:b,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=T(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,y,`
|
|
3
3
|
data=`,u.height,`
|
|
4
4
|
Parent cluster`,a.height),e.setNode(a.id,u),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,u))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:u,nodesep:w}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:u+25,nodesep:w});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;_(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),H(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),E.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),h),await J(i,e.node(y),{config:f,dir:h}))})),await m(async()=>{const y=e.edges().map(async function(g){const u=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",E,"ids:",g.v,g.w,"Translating: ",E.get(g.v),E.get(g.w)),n&&u.selfLoop){if(u.selfLoop.order!==1)return;const w={...u.originalEdge,...u,id:u.selfLoop.id,startLabelLeft:u.originalEdge?.startLabelLeft??u.startLabelLeft,startLabelRight:u.originalEdge?.startLabelRight??u.startLabelRight,endLabelLeft:u.originalEdge?.endLabelLeft??u.endLabelLeft,endLabelRight:u.originalEdge?.endLabelRight??u.endLabelRight};await X(s,w),u.width=w.width,u.height=w.height,u.labelStyle=w.labelStyle;return}await X(s,u)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:b}=z(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:b}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),j(t)},"runDagreGraphLayout"),$=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{K.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=$(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const h=a/2;return t.edges=B(r,h,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,h)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:h,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),E.get(n.id).node=n,C(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,b=n?.labelBBox?.height||0,y=b-L||0;p.debug("OffsetY",y,"labelHeight",b,"halfPadding",L),await F(r,n),E.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),C(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:h}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(u=>u.y+=s);const b=e.node(n),y=e.node(L),g=U(d,o,E,a,b,y,f);W(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),G=m(t=>{const e=new k({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",h=e.node(d);e.setNode(a,{domId:a,id:a,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,h.parentId),e.setNode(f,{domId:f,id:f,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,h.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",h.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),A(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??G(t),a=O(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),ce=Y({prepareLayout:G,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:E,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,G as prepareLayoutForDagre,ce as render,ne as runDagreLayoutCore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o,r as l,d as t}from"./
|
|
1
|
+
import{g as o,r as l,d as t}from"./DDevx-cQ.js";import{p as m}from"./D4t7Z7vv.js";import{f as n,bC as s}from"./bFa0TDbD.js";import{M as p,d as u}from"./B96tyeqv.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),f=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),f(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as oe,bq as st,a_ as at,bo as Q,by as ie,bu as $t,bs as Me,b as ce}from"./rfbsWJY8.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as H,b_ as A,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Ne,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./B8o4lNgr.js";import{k as Xt,I as ea,l as ne,h as jt,s as gt,i as Se,d as se}from"./Z4aRP2F9.js";import{b as ba}from"./D2g8BuR1.js";import{f as Ut}from"./_hjrl4Qq.js";import{A as aa,ag as na,af as sa}from"./
|
|
1
|
+
import{t as oe,bq as st,a_ as at,bo as Q,by as ie,bu as $t,bs as Me,b as ce}from"./rfbsWJY8.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as H,b_ as A,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Ne,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./B8o4lNgr.js";import{k as Xt,I as ea,l as ne,h as jt,s as gt,i as Se,d as se}from"./Z4aRP2F9.js";import{b as ba}from"./D2g8BuR1.js";import{f as Ut}from"./_hjrl4Qq.js";import{A as aa,ag as na,af as sa}from"./Dcd7scoM.js";import"./DYvAONpX.js";import{ak as ra,aB as oa,am as ka,an as Aa,ao as We,af as ia,c as $a,o as Ta,dq as Ca,aN as Na,ap as Sa}from"./BtwWpYbv.js";import{R as Fa}from"./C95Ch7tj.js";import{F as pe,bv as Oa,bb as Ra,az as Ma,aR as Wa,cv as Da}from"./DPDCKuA3.js";import{H as Ba}from"./Du_FFECf.js";import{e as La}from"./DdAufyF9.js";import{s as Ea}from"./8L6UQh4N.js";import{f as Pa}from"./C1SVvLkf.js";import{c as St,Hi as Oe,n5 as Ga,fC as za,bY as ja,rj as Ha,to as Ka}from"./CM_x_DK5.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Qa=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Za=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),N=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(k=>h()?.get(k)||Q.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=ka(n().agentId),P=Aa(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const k={attentionKind:s()?.kind??null};return g()?na(g(),k):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...k,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(k){n(k),rt()},get activeFile(){return p()},set activeFile(k){p(k),rt()},get activeNote(){return R()},set activeNote(k){R(k),rt()},get agentNames(){return h()},set agentNames(k){h(k),rt()},get onclick(){return v()},set onclick(k){v(k),rt()},get onmouseenter(){return b()},set onmouseenter(k){b(k),rt()},get onmouseleave(){return N()},set onmouseleave(k){N(k),rt()},$set:ie,$on:(k,B)=>ce(a,k,B)},ht=nn(),bt=L(ht);{var Ht=k=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),A(()=>D(Rt,` ${p()??""}`)),_(k,B)};at(bt,k=>{p()&&u()&&k(Ht)})}var Ot=C(bt,2);{let k=y(()=>d()?"border-primary-ink border-2":"");Ut(Ot,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
|
|
2
2
|
hover:shadow transition-all cursor-pointer ${t(k)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return N()},children:(B,Tt)=>{var Rt=an(),Lt=Yt(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ft)},get specialist(){return n().specialist}}),$(Lt);var Zt=C(Lt,2),_e=H(Zt,!0),Jt=C(Zt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=H(W,!0);$(f);var K=C(f,2);{var nt=z=>{var It=Ua(),ot=H(It,!0);A(()=>D(ot,s().reason)),_(z,It)};at(K,z=>{s().reason&&z(nt)})}var S=C(K,2);{var G=z=>{Fa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(S,z=>{s().timestamp&&z(G)})}$(r),A(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),D(m,z)},[()=>s().kind==="blocker"?Q.chat_agentCard_attentionBlocker_label():Q.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Qa(),f=L(r);pe(f,{get icon(){return Oa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=H(M,!0);$(r),A(m=>D(W,m),[()=>Q.agentOverview_hierarchyCard_waitingFor_label({names:t(E).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var K=C(m,2);{var nt=Y=>{var Z=Fe(),pt=H(Z,!0);A(Et=>D(pt,Et),[()=>Q.agentOverview_hierarchyCard_thinking_label()]),_(Y,Z)},S=Y=>{var Z=Za(),pt=H(Z);A(()=>D(pt,`${t(f).verb??""}
|
|
3
3
|
${t(f).subject??""}`)),_(Y,Z)},G=Y=>{var Z=Fe(),pt=H(Z);A(()=>D(pt,`${t(f).verb??""}...`)),_(Y,Z)},z=Y=>{var Z=Fe(),pt=H(Z,!0);A(Et=>D(pt,Et),[()=>Q.agentOverview_hierarchyCard_responding_label()]),_(Y,Z)};at(K,Y=>{i()?Y(nt):t(f)&&t(f).subject?Y(S,1):t(f)?Y(G,2):Y(z,-1)})}$(W);var It=C(W,2);{var ot=Y=>{var Z=Ja(),pt=H(Z,!0);A(()=>D(pt,n().lastResponse)),_(Y,Z)};at(It,Y=>{!t(f)&&n().lastResponse&&Y(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=H(r,!0);A(()=>D(f,n().lastResponse)),_(ft,r)};at(te,ft=>{s()?ft(ye):c()?ft(yt,1):u()||i()?ft(Ie,2):n().lastResponse&&ft(xe,3)})}$(Jt),A(()=>D(_e,n().name)),_(B,Rt)},$$slots:{default:!0}})}var ge=C(Ot,2);{var Bt=k=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Da},size:"xs",class:"inline"});var Rt=C(Tt);$(B),A(Lt=>D(Rt,` ${Lt??""}`),[()=>Q.agentOverview_hierarchyCard_note_label()]),_(k,B)};at(ge,k=>{R()&&u()&&k(Bt)})}$(ht),_(e,ht);var Qt=de(Dt);return l(),Qt}const sn=50;var rn=O('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Ut(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var E=rn(),I=Yt(E),P=H(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),A(()=>D(P,i().name)),_(x,E)},$$slots:{default:!0}});var N=de(b);return d(),N}var re=he('<path fill="none"></path>'),on=O('<div class="batch-group-box relative z-10 bg-background border border-border rounded-xl"></div>'),cn=O('<svg class="connector-svg" style="overflow: visible; display: block;"><!><!></svg> <div class="children-items-row flex items-start justify-center"></div>',1),ln=O('<div class="children-wrapper flex flex-col items-center"></div>'),dn=O('<div class="agent-tree-node flex flex-col items-center"><div class="agent-card-wrapper relative z-10"><!></div> <!></div>'),gn=O('<div class="absolute inset-0 flex items-center justify-center"><div class="text-center text-subtle"><p class="text-lg font-medium"> </p> <p class="text-sm mt-1"> </p></div></div>'),un=O('<div class="utility-corral border border-dashed border-border rounded-lg p-3 min-w-20"><div class="corral-label text-xs text-subtle font-medium mb-2 text-center"> </div> <div class="corral-agents flex flex-col items-center gap-2"></div></div>'),fn=O('<div class="utility-corrals flex flex-col gap-4"></div>'),pn=O('<div class="text-xs text-subtle capitalize"> </div>'),vn=O('<span class="px-1.5 py-0.5 text-ui font-medium bg-muted text-subtle rounded"> </span>'),hn=O('<span class="text-warning-ink"> </span>'),mn=O('<span class="text-primary-ink"> </span>'),_n=O('<span class="text-green-500"> </span>'),yn=O('<span class="text-red-500"> </span>'),In=O("<span> </span>"),xn=O('<div class="text-xs text-subtle line-clamp-3 border-t border-border pt-2 mt-2"> </div>'),wn=O('<div class="text-xs text-subtle flex items-center gap-1"><!> <span> </span></div>'),bn=O('<div class="p-3 space-y-2"><div class="flex items-center gap-2"><!> <div class="flex-1 min-w-0"><div class="font-medium text-sm truncate"> </div> <!></div> <!></div> <div class="text-xs text-subtle"><!></div> <div class="text-xs text-subtle"> </div> <!> <!></div>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),An=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=O('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=O('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),K=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),S=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(K),i):[]),z=y(()=>(()=>{const F=[];for(let q=0;q<t(G).length;q+=Tt)F.push(t(G).slice(q,q+Tt));return F})()),It=y(()=>t(z).map(F=>F.reduce((q,J)=>q+J.width,0)+Math.max(0,F.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var Y=dn(),Z=L(Y),pt=L(Z);{var Et=F=>{Re(F,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=F=>{ca(F,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,F=>{t(W)?F(Et):F(we,-1)})}$(Z);var be=C(Z,2);{var U=F=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(S)/2);var xt=ln();jt(xt,21,()=>t(z),Se,(Kt,kt,Ct)=>{const Pt=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Pt))/2),ke=y(()=>(()=>{let ut=0;return t(kt).map(j=>{const Nt=ut+j.width/2;return ut+=j.width+i,Nt})})());var ue=cn(),Gt=Yt(ue);gt(Gt,"height",t(S));var qt=L(Gt);{var Ae=ut=>{var j=re();A(()=>{gt(j,"d",`M ${t(ot)/2} -${Ya} L ${t(ot)/2} ${t(S)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)},$e=ut=>{var j=re();A(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(S)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)};at(qt,ut=>{Ct>0?ut(Ae):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(kt),Se,(ut,j,Nt)=>{const vt=y(()=>t(ee)+t(ke)[Nt]),lt=y(()=>t(ot)/2),zt=y(()=>t(j).type==="batch"?t(j).children.some(wt=>t(q).includes(wt.agent.agentId)):t(q).includes(t(j).child.agent.agentId)),mt=y(()=>t(zt)?"var(--color-primary)":"currentColor"),At=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(S)-k:t(S)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=Be(),Ce=Yt(fe);{var va=wt=>{var dt=re();A(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(S)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(At)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();A(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(S)/3}
|
|
4
4
|
L ${t(lt)??""} ${t(et)-t(X)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Pe}from"./Bfq2NG2E.js";import{bq as Fe,aV as xe,bt as Me,cs as Ke,cr as Ye,cu as We,ct as Ve,cn as Ue,cl as He,cb as Xe,bX as Ge,bN as je,bM as qe,bD as Je,ba as Ze,b9 as Qe,bb as $e,aH as et,aG as tt,au as st,N as rt,at as it,o as nt,s as at,m as ot,f as u,aN as Y,c3 as X,bF as ct,a6 as lt,bC as y,a0 as ut,c0 as gt,aO as Le,G as ht,b5 as dt,b6 as pt,bT as ft,a4 as bt,aT as St,b8 as me,bU as xt}from"./fotZrDMM.js";import{c as Lt}from"./QrkzYSgq.js";function mt(e){return Array.isArray(e)}function yt(e){if(Fe(e))return e;const n=xe(e);if(!wt(e))return{};if(mt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(n==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(n==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(n==="[object Boolean]"||n==="[object Number]"||n==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return n==="[object String]"?_t(l,e):se(l,e),l}if(n==="[object Date]")return new Date(Number(e));if(n==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(n==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(n==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(n==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(n==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case at:case nt:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case je:case Ge:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,n){for(const o in n)Object.hasOwn(n,o)&&(e[o]=n[o])}function Et(e,n){const o=Object.getOwnPropertySymbols(n);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(n,l)&&(e[l]=n[l])}}function _t(e,n){const o=n.valueOf().length;for(const r in n)Object.hasOwn(n,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=n[r])}function kt(e,n){const o=Object.getPrototypeOf(n);o!==null&&typeof n.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),n=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],m=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={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(g,i,c,p,E,t,M){var a=t.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: ",t[a-1]),p.setHierarchy(t[a-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: ",t[a]),typeof t[a].length=="number"?this.$=t[a]:this.$=[t[a]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[a-1]),this.$=[t[a-1]].concat(t[a]);break;case 14:p.getLogger().debug("Rule: link: ",t[a],g),this.$={edgeTypeStr:t[a],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[a-3],t[a-1],t[a]),this.$={edgeTypeStr:t[a],label:t[a-1]};break;case 18:const P=parseInt(t[a]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[a-2],t[a-1],t[a]," typestr: ",t[a-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[a-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[a-1].edgeTypeStr),Z=p.edgeStrToThickness(t[a-1].edgeTypeStr),D=p.edgeStrToPattern(t[a-1].edgeTypeStr);this.$=[{id:t[a-2].id,label:t[a-2].label,type:t[a-2].type,directions:t[a-2].directions},{id:t[a-2].id+"-"+t[a].id,start:t[a-2].id,end:t[a].id,label:t[a-1].label,type:"edge",thickness:Z,pattern:D,directions:t[a].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[a-1],t[a]),this.$={id:t[a-1].id,label:t[a-1].label,type:p.typeStr2Type(t[a-1].typeStr),directions:t[a-1].directions,widthInColumns:parseInt(t[a],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[a]),this.$={id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[a]),this.$={type:"column-setting",columns:t[a]==="auto"?-1:parseInt(t[a])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[a-2],t[a-1]),p.generateId(),this.$={...t[a-2],type:"composite",children:t[a-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[a-2],t[a-1],t[a]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[a-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[a]),this.$={id:t[a]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[a-1],t[a]),this.$={id:t[a-1],label:t[a].label,typeStr:t[a].typeStr,directions:t[a].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[a]),this.$=[t[a]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[a-1],t[a]),this.$=[t[a-1]].concat(t[a]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[a-2],t[a-1],t[a]),this.$={typeStr:t[a-2]+t[a],label:t[a-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[a-3],t[a-2]," #3:",t[a-1],t[a]),this.$={typeStr:t[a-3]+t[a],label:t[a-2],directions:t[a-1]};break;case 35:case 36:this.$={type:"classDef",id:t[a-1].trim(),css:t[a].trim()};break;case 37:this.$={type:"applyClass",id:t[a-1].trim(),styleClass:t[a].trim()};break;case 38:this.$={type:"applyStyles",id:t[a-1].trim(),stylesStr:t[a].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(m,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:n,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(m,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,a="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(O){c.length=c.length-2*O,E.length=E.length-O,t.length=t.length-O}u(Re,"popStack");function de(){var O;return O=p.pop()||D.lex()||V,typeof O!="number"&&(O instanceof Array&&(p=O,O=p.pop()),O=i.symbols_[O]||O),O}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
|
|
1
|
+
import{g as Pe}from"./Bp0o4QK_.js";import{bq as Fe,aV as xe,bt as Me,cs as Ke,cr as Ye,cu as We,ct as Ve,cn as Ue,cl as He,cb as Xe,bX as Ge,bN as je,bM as qe,bD as Je,ba as Ze,b9 as Qe,bb as $e,aH as et,aG as tt,au as st,N as rt,at as it,o as nt,s as at,m as ot,f as u,aN as Y,c3 as X,bF as ct,a6 as lt,bC as y,a0 as ut,c0 as gt,aO as Le,G as ht,b5 as dt,b6 as pt,bT as ft,a4 as bt,aT as St,b8 as me,bU as xt}from"./bFa0TDbD.js";import{c as Lt}from"./Ds156ydk.js";function mt(e){return Array.isArray(e)}function yt(e){if(Fe(e))return e;const n=xe(e);if(!wt(e))return{};if(mt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(n==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(n==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(n==="[object Boolean]"||n==="[object Number]"||n==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return n==="[object String]"?_t(l,e):se(l,e),l}if(n==="[object Date]")return new Date(Number(e));if(n==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(n==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(n==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(n==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(n==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case at:case nt:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case je:case Ge:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,n){for(const o in n)Object.hasOwn(n,o)&&(e[o]=n[o])}function Et(e,n){const o=Object.getOwnPropertySymbols(n);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(n,l)&&(e[l]=n[l])}}function _t(e,n){const o=n.valueOf().length;for(const r in n)Object.hasOwn(n,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=n[r])}function kt(e,n){const o=Object.getPrototypeOf(n);o!==null&&typeof n.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),n=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],m=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={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(g,i,c,p,E,t,M){var a=t.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: ",t[a-1]),p.setHierarchy(t[a-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: ",t[a]),typeof t[a].length=="number"?this.$=t[a]:this.$=[t[a]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[a-1]),this.$=[t[a-1]].concat(t[a]);break;case 14:p.getLogger().debug("Rule: link: ",t[a],g),this.$={edgeTypeStr:t[a],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[a-3],t[a-1],t[a]),this.$={edgeTypeStr:t[a],label:t[a-1]};break;case 18:const P=parseInt(t[a]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[a-2],t[a-1],t[a]," typestr: ",t[a-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[a-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[a-1].edgeTypeStr),Z=p.edgeStrToThickness(t[a-1].edgeTypeStr),D=p.edgeStrToPattern(t[a-1].edgeTypeStr);this.$=[{id:t[a-2].id,label:t[a-2].label,type:t[a-2].type,directions:t[a-2].directions},{id:t[a-2].id+"-"+t[a].id,start:t[a-2].id,end:t[a].id,label:t[a-1].label,type:"edge",thickness:Z,pattern:D,directions:t[a].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[a-1],t[a]),this.$={id:t[a-1].id,label:t[a-1].label,type:p.typeStr2Type(t[a-1].typeStr),directions:t[a-1].directions,widthInColumns:parseInt(t[a],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[a]),this.$={id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[a]),this.$={type:"column-setting",columns:t[a]==="auto"?-1:parseInt(t[a])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[a-2],t[a-1]),p.generateId(),this.$={...t[a-2],type:"composite",children:t[a-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[a-2],t[a-1],t[a]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[a-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[a]),this.$={id:t[a]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[a-1],t[a]),this.$={id:t[a-1],label:t[a].label,typeStr:t[a].typeStr,directions:t[a].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[a]),this.$=[t[a]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[a-1],t[a]),this.$=[t[a-1]].concat(t[a]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[a-2],t[a-1],t[a]),this.$={typeStr:t[a-2]+t[a],label:t[a-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[a-3],t[a-2]," #3:",t[a-1],t[a]),this.$={typeStr:t[a-3]+t[a],label:t[a-2],directions:t[a-1]};break;case 35:case 36:this.$={type:"classDef",id:t[a-1].trim(),css:t[a].trim()};break;case 37:this.$={type:"applyClass",id:t[a-1].trim(),styleClass:t[a].trim()};break;case 38:this.$={type:"applyStyles",id:t[a-1].trim(),stylesStr:t[a].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(m,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:n,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(m,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,a="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(O){c.length=c.length-2*O,E.length=E.length-O,t.length=t.length-O}u(Re,"popStack");function de(){var O;return O=p.pop()||D.lex()||V,typeof O!="number"&&(O instanceof Array&&(p=O,O=p.pop()),O=i.symbols_[O]||O),O}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(P+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:H})}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:c.push(N),E.push(D.yytext),t.push(D.yylloc),c.push(C[1]),N=null,W=D.yyleng,a=D.yytext,P=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[C[1]][1],F.$=E[E.length-B],F._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Be&&(F._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),ee=this.performAction.apply(F,[a,W,P,A.yy,C[1],E,t].concat(Z)),typeof ee<"u")return ee;B&&(c=c.slice(0,-1*B*2),E=E.slice(0,-1*B),t=t.slice(0,-1*B)),c.push(this.productions_[C[1]][0]),E.push(F.$),t.push(F._$),pe=M[c[c.length-2]][c[c.length-1]],c.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var v={EOF:1,parseError:u(function(i,c){if(this.yy.parser)this.yy.parser.parseError(i,c);else throw new Error(i)},"parseError"),setInput:u(function(g,i){return this.yy=i||this.yy||{},this._input=g,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 g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var i=g.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),g},"input"),unput:u(function(g){var i=g.length,c=g.split(/(?:\r\n?|\n)/g);this._input=g+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),c.length-1&&(this.yylineno-=c.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:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(g){this.unput(this.match.slice(g))},"less"),pastInput:u(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var g=this.pastInput(),i=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as de}from"./CeNpZHYY.js";import{f as m,aX as he,aN as Y,$ as O,c4 as me,a6 as ue,bC as X,cm as L,c3 as H,c7 as fe,aL as ye,c9 as ge,aP as Se,aK as xe,c6 as be,ax as ve,bn as Ce,a0 as we}from"./fotZrDMM.js";import{s as Te}from"./BqDsguwv.js";import{p as $e}from"./B96tyeqv.js";import{f as V}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Le,t as Fe}from"./CvYzv8kf.js";var N,te=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const l=ve,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Ce(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(N,"TreeMapDB"),N);function ae(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}m(ae,"buildHierarchy");var Ne=m((p,l)=>{de(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=ze(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=ae(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),ze=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{try{const i=await $e("treemap",p);X.debug("Treemap AST:",i);const r=le.parser?.yy;if(!(r instanceof te))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.");Ne(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},Ae=10,F=10,M=25,Pe=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??Ae,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=me(l),j=s.nodeWidth?s.nodeWidth*F:960,K=s.nodeHeight?s.nodeHeight*F:500,R=j,U=K+z;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+V(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+V(t||"")(o),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Fe().size([j,K]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),ne=J.descendants().filter(e=>e.children&&e.children.length>0),P=q.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Q=J.leaves(),g=Q.length>20,oe=g?16:38,E=g?14:28,T=g?4:8,D=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.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 t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+W(e.data.name)+";",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(D,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(D,Math.min(E,Math.round(c*v))),!(S<D&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(D,Math.min(E,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;o.node().getComputedTextLength()>pe||S+c>ee||c<D?o.style("display","none"):o.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",s?.useMaxWidth||!1)},"draw"),De=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:De},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const l=he(),i=Y(),r=O(l,i.themeVariables),n=O(Me,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
|
|
1
|
+
import{p as de}from"./D4t7Z7vv.js";import{f as m,aX as he,aN as Y,$ as O,c4 as me,a6 as ue,bC as X,cm as L,c3 as H,c7 as fe,aL as ye,c9 as ge,aP as Se,aK as xe,c6 as be,ax as ve,bn as Ce,a0 as we}from"./bFa0TDbD.js";import{s as Te}from"./8ouV2ksN.js";import{p as $e}from"./B96tyeqv.js";import{f as V}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Le,t as Fe}from"./CvYzv8kf.js";var N,te=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const l=ve,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Ce(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(N,"TreeMapDB"),N);function ae(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}m(ae,"buildHierarchy");var Ne=m((p,l)=>{de(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=ze(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=ae(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),ze=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{try{const i=await $e("treemap",p);X.debug("Treemap AST:",i);const r=le.parser?.yy;if(!(r instanceof te))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.");Ne(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},Ae=10,F=10,M=25,Pe=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??Ae,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=me(l),j=s.nodeWidth?s.nodeWidth*F:960,K=s.nodeHeight?s.nodeHeight*F:500,R=j,U=K+z;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+V(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+V(t||"")(o),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Fe().size([j,K]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),ne=J.descendants().filter(e=>e.children&&e.children.length>0),P=q.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Q=J.leaves(),g=Q.length>20,oe=g?16:38,E=g?14:28,T=g?4:8,D=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.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 t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+W(e.data.name)+";",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(D,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(D,Math.min(E,Math.round(c*v))),!(S<D&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(D,Math.min(E,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;o.node().getComputedTextLength()>pe||S+c>ee||c<D?o.style("display","none"):o.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",s?.useMaxWidth||!1)},"draw"),De=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:De},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const l=he(),i=Y(),r=O(l,i.themeVariables),n=O(Me,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${n.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${n.sectionStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o,ad as se,N as W,aE as ye,$ as me,a3 as be,ar as _e,aK as Ee,y as Y,aD as G,ac as ke,J as Se,a8 as Ne,aa as he,w as ue}from"./
|
|
1
|
+
import{a as o,ad as se,N as W,aE as ye,$ as me,a3 as be,ar as _e,aK as Ee,y as Y,aD as G,ac as ke,J as Se,a8 as Ne,aa as he,w as ue}from"./BvuwU8jV.js";import{g as xe}from"./CrHeSy6g.js";import{g as _}from"./bFa0TDbD.js";var te=(function(){var e=o(function(I,s,n,r){for(n=n||{},r=I.length;r--;n[I[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],E=[1,16],b=[1,20],l=[1,19],L=[6,7,8],C=[1,26],g=[1,24],A=[1,25],k=[6,7,11],M=[1,31],x=[6,7,11,24],j=[1,6,13,16,17,20,23],f=[1,35],T=[1,36],O=[1,6,7,11,13,16,17,20,23],U=[1,38],R={trace:o(_(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(_(function(s,n,r,a,u,t,H){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},{6:C,7:g,10:23,11:A},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:M}),e(k,[2,22]),e(k,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:A},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},e(j,[2,14],{7:f,11:T}),e(O,[2,8]),e(O,[2,9]),e(O,[2,10]),e(k,[2,16],{15:37,24:M}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:U}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(j,[2,13],{7:f,11:T}),e(O,[2,11]),e(O,[2,12]),e(k,[2,15],{24:U}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(_(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),"parseError"),parse:o(_(function(s){var n=this,r=[0],a=[],u=[null],t=[],H=this.table,c="",z=0,ae=0,de=2,oe=1,pe=t.slice.call(arguments,1),m=Object.create(this.lexer),V={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(V.yy[q]=this.yy[q]);m.setInput(s,V.yy),V.yy.lexer=m,V.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;t.push(Q);var fe=m.options&&m.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(N){r.length=r.length-2*N,u.length=u.length-N,t.length=t.length-N}_(ce,"popStack"),o(ce,"popStack");function Z(){var N;return N=a.pop()||m.lex()||oe,typeof N!="number"&&(N instanceof Array&&(a=N,N=a.pop()),N=n.symbols_[N]||N),N}_(Z,"lex"),o(Z,"lex");for(var S,B,v,$,F={},K,w,le,X;;){if(B=r[r.length-1],this.defaultActions[B]?v=this.defaultActions[B]:((S===null||typeof S>"u")&&(S=Z()),v=H[B]&&H[B][S]),typeof v>"u"||!v.length||!v[0]){var ee="";X=[];for(K in H[B])this.terminals_[K]&&K>de&&X.push("'"+this.terminals_[K]+"'");m.showPosition?ee="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ee="Parse error on line "+(z+1)+": Unexpected "+(S==oe?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ee,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:Q,expected:X})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+S);switch(v[0]){case 1:r.push(S),u.push(m.yytext),t.push(m.yylloc),r.push(v[1]),S=null,ae=m.yyleng,c=m.yytext,z=m.yylineno,Q=m.yylloc;break;case 2:if(w=this.productions_[v[1]][1],F.$=u[u.length-w],F._$={first_line:t[t.length-(w||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(w||1)].first_column,last_column:t[t.length-1].last_column},fe&&(F._$.range=[t[t.length-(w||1)].range[0],t[t.length-1].range[1]]),$=this.performAction.apply(F,[c,ae,z,V.yy,v[1],u,t].concat(pe)),typeof $<"u")return $;w&&(r=r.slice(0,-1*w*2),u=u.slice(0,-1*w),t=t.slice(0,-1*w)),r.push(this.productions_[v[1]][0]),u.push(F.$),t.push(F._$),le=H[r[r.length-2]][r[r.length-1]],r.push(le);break;case 3:return!0}}return!0},"parse"),"parse")},J=(function(){var I={EOF:1,parseError:o(_(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CkHhXW1g.js","/app/immutable/chunks/_X_zaIBj.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/rfbsWJY8.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CkHhXW1g.js","/app/immutable/chunks/_X_zaIBj.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/rfbsWJY8.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.DzKcGMpw.js","/app/immutable/chunks/DYvAONpX.js","/app/immutable/chunks/D5WwA0O_.js","/app/immutable/chunks/CIf7CPyv.js","/app/immutable/chunks/CM_x_DK5.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/9hA4gnqW.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/Cw4izdIx.js","/app/immutable/chunks/Bb8-l2NT.js","/app/immutable/chunks/C_lHU_9L.js","/app/immutable/assets/0.s5U1UHML.css","/app/immutable/nodes/1.BRKnSVrJ.js","/app/immutable/chunks/CluMc6c4.js","/app/immutable/chunks/lM8ThUgn.js","/app/immutable/chunks/DPDCKuA3.js","/app/immutable/chunks/DcUVqsa0.js","/app/immutable/chunks/Z4aRP2F9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/_hjrl4Qq.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CIWkcax4.js","/app/immutable/chunks/Dr8lo3pg.js","/app/immutable/chunks/DVqY3xlL.js","/app/immutable/chunks/BtwWpYbv.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Mw-Gpasz.js","/app/immutable/chunks/Ba6ldMEi.js","/app/immutable/chunks/C1SVvLkf.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/D8dE5NKO.js","/app/immutable/chunks/C6q6LFl7.js","/app/immutable/chunks/CkCUFgWs.js","/app/immutable/chunks/L8URHs0O.js","/app/immutable/chunks/CXgisfCc.js","/app/immutable/chunks/jfXvxS2S.js","/app/immutable/chunks/D1wQuS9X.js","/app/immutable/chunks/VdNAjP0_.js","/app/immutable/chunks/hnekB-ms.js","/app/immutable/chunks/DjMZotf0.js","/app/immutable/chunks/DtY788JX.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/Br_vwCYL.js","/app/immutable/chunks/CuKZEahF.js","/app/immutable/chunks/BP5uTKE_.js","/app/immutable/chunks/C95Ch7tj.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DQv8uZln.js","/app/immutable/chunks/8L6UQh4N.js","/app/immutable/chunks/DW0i1p3h.js","/app/immutable/chunks/CnsJaE4q.js","/app/immutable/chunks/Mfxk6hrK.js","/app/immutable/chunks/QsqAizRM.js","/app/immutable/chunks/D4uurSjm.js","/app/immutable/chunks/D5ofQm_d.js","/app/immutable/chunks/pnJ0wUVz.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/B6ClLesJ.js","/app/immutable/chunks/CpW6JN4X.js","/app/immutable/chunks/CaBhd4u6.js","/app/immutable/chunks/DiIl-PCx.js","/app/immutable/chunks/DXPYZ6rf.js","/app/immutable/chunks/DVM_XdOB.js","/app/immutable/chunks/BDq7JyWo.js","/app/immutable/chunks/e3l8byhA.js","/app/immutable/chunks/CSxiQIqf.js","/app/immutable/chunks/Do10YjMk.js","/app/immutable/chunks/DXIzFsrF.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/B3OI09xu.js","/app/immutable/chunks/DOWBIpFV.js","/app/immutable/chunks/zwttfD12.js","/app/immutable/chunks/DZdbf6Q8.js","/app/immutable/chunks/BkllaCTf.js","/app/immutable/chunks/DdjvcH0T.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DdAufyF9.js","/app/immutable/chunks/CJNlkHJe.js","/app/immutable/chunks/NrSLRYFK.js","/app/immutable/chunks/D0KbJAaw.js","/app/immutable/chunks/D1yEb1Sd.js","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/CQV_d_bF.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/DzE101BE.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/BIZa5Cf_.js","/app/immutable/chunks/B82cpCVD.js","/app/immutable/chunks/B_RQpkN5.js","/app/immutable/chunks/DE-ZJyo7.js","/app/immutable/chunks/DHTfRD1Q.js","/app/immutable/chunks/Dcd7scoM.js","/app/immutable/chunks/WzIYNTPt.js","/app/immutable/chunks/CxP2tIQc.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/BE5Fv7qN.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/DUfq24zA.js","/app/immutable/chunks/CNUIVnY7.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/Da8-5i7r.js","/app/immutable/chunks/DY0zw3Os.js","/app/immutable/chunks/B__rt0-I.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/DtaRcep-.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/Bu7emN7b.js","/app/immutable/chunks/DMGL7u0S.js","/app/immutable/chunks/Du_FFECf.js","/app/immutable/assets/accessibility.Cjws-1uy.css","/app/immutable/chunks/C17G-Swu.js","/app/immutable/chunks/CSl248TP.js","/app/immutable/chunks/oFtYQz7b.js","/app/immutable/chunks/C3hWtekV.js","/app/immutable/chunks/C8YkhSPO.js","/app/immutable/chunks/CYABgIem.js","/app/immutable/chunks/BVN4ilux.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.XOARAn4C.css","/app/immutable/nodes/3.nHUMIbz4.js","/app/immutable/nodes/4.CuGifUZf.js","/app/immutable/nodes/5.B28pUbsn.js","/app/immutable/chunks/IS2i-qON.js","/app/immutable/chunks/C_J7hVU_.js","/app/immutable/chunks/CoSk1zgY.js","/app/immutable/chunks/D6_E0s-v.js","/app/immutable/chunks/CU742qVA.js","/app/immutable/chunks/bU-QghYU.js","/app/immutable/chunks/MPaSCQWF.js","/app/immutable/chunks/CDjySRKh.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/CdOX8bTl.js","/app/immutable/assets/AgentCard.4uIFUDRc.css","/app/immutable/chunks/BnaVNQ5C.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.Dlk-yueV.css","/app/immutable/chunks/CuNdrm2Q.js","/app/immutable/chunks/DyzwKjcO.js","/app/immutable/chunks/CnXUfSkf.js","/app/immutable/chunks/Dam5_Z8s.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/CQ3a1EyG.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/DZVScUjw.js","/app/immutable/chunks/CoZ28bOB.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/bFa0TDbD.js","/app/immutable/assets/DiagramPresentation.fimBl1wP.css","/app/immutable/chunks/JeW4QH0b.js","/app/immutable/chunks/BFf5Uhiw.js","/app/immutable/chunks/PM-2gCwH.js","/app/immutable/chunks/CGP7l8n1.js","/app/immutable/chunks/C0AUyzcq.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/DLg1LKff.js","/app/immutable/chunks/C5PE5dRA.js","/app/immutable/chunks/CKMwvgmW.js","/app/immutable/chunks/DW8xsLbH.js","/app/immutable/assets/conversation-turns.Cw6qSz_q.css","/app/immutable/chunks/DNsTK8Zn.js","/app/immutable/chunks/Dm6zmEG5.js","/app/immutable/chunks/B4k80c64.js","/app/immutable/chunks/BCes7Yq6.js","/app/immutable/assets/ChatPanel.CbI83JII.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.D04srF9Y.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.U-29Oxv0.js","/app/immutable/nodes/8.Bw_t7MQd.js","/app/immutable/chunks/DyUJKXsD.js","/app/immutable/chunks/Bsxt04FP.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/assets/dock-tokens.CevytPYC.css","/app/immutable/nodes/9.Dr8DgxLF.js","/app/immutable/chunks/C6s3cg4n.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/JxxJ9mXU.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/DuD7LWu0.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/DqpObZM9.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/Djxq7-FU.js","/app/immutable/chunks/DvZQ4VGd.js","/app/immutable/chunks/Bosjw8O3.js","/app/immutable/assets/9.7X-ygXtc.css","/app/immutable/nodes/10.Dq2vvlba.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.CseT_Bi0.js","/app/immutable/nodes/12.xXnBnpBZ.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.BOV3I8HB.js","/app/immutable/chunks/CxbsYsdo.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14.vi5_3ajt.js","/app/immutable/chunks/CCNp2HrT.js","/app/immutable/assets/14.BlmY1boZ.css","/app/immutable/nodes/15.DlA66kM0.js","/app/immutable/assets/15.COfTIH7u.css","/app/immutable/nodes/16.B4hQ-11c.js","/app/immutable/assets/16.Cznk2DRv.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{_ as a,bo as X,t as lt,bq as g,a_ as w,by as dt,b as pt,c as gt}from"../chunks/rfbsWJY8.js";import{l as k}from"../chunks/BJzHxIyr.js";import{s as ft}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as bt,bk as Tt,aD as c,bH as F,c0 as ht,ay as b,bS as It,W as m,bn as At,bV as U,aA as f,a7 as I,c9 as L,a5 as Ot,bA as Rt,aB as Z,b$ as Pt,b_ as Dt,bO as yt}from"../chunks/B8o4lNgr.js";import{c as S}from"../chunks/DcUVqsa0.js";import{b as V}from"../chunks/D2g8BuR1.js";const Lt=async()=>{window.location.pathname.startsWith("/sandbox")||await a(()=>import("../chunks/CkHhXW1g.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},St=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function Vt(t){return t instanceof Error&&t.name==="TypeError"&&St.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const q=500,xt=8,wt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",o=t.slice(0,t.length-e.length),n=o.indexOf("://"),i=o.slice(0,n),s=o.slice(n+3).split("#")[0].split("?")[0],u=s.indexOf("/"),l=u===-1?s:s.slice(0,u),d=l.slice(l.lastIndexOf("@")+1),p=u===-1?"":s.slice(u);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function x(t){const e=t.replace(wt,Ct);return e.length>q?`${e.slice(0,q)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
|
|
3
3
|
`).slice(0,xt).map(x).join(`
|
|
4
|
-
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.
|
|
4
|
+
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.DzKcGMpw.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,2,14,15,16,17,18,19]),import.meta.url),()=>a(()=>import("../nodes/1.BRKnSVrJ.js"),__vite__mapDeps([20,4,5,21,22,23,24,7,25,3,26,27,28,8,1,2,29]),import.meta.url),()=>a(()=>import("../nodes/2.CIWkcax4.js"),__vite__mapDeps([30,4,5,7,31,10,11,12,13,2,3,8,23,24,25,26,32,33,34,27,28,1,29,17,21,35,18,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,16,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,15,105,106,107,108,109,110,111,112,113,114,115,116,117,118,22,119,120,121,122,123,124,125,126,127,128,9,129,130,131]),import.meta.url),()=>a(()=>import("../nodes/3.nHUMIbz4.js"),__vite__mapDeps([132,4,5,32,25,3,26,7,21,22,23,24,27,28,8,1,2,29,37,38,36,39,33,10,11,12,13,34,17,18,35]),import.meta.url),()=>a(()=>import("../nodes/4.CuGifUZf.js"),__vite__mapDeps([133,4,5,7,9,8,3,41,10,11,12,13,2,33,23,24,25,26,34,27,28,1,29,17,32,42,38,43,44,45,46,47,18,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,35,39,70,71,72,73,74,75,76,77,40,78,37,21,36,16,79,80,81,82,83,84,85,86,87]),import.meta.url),()=>a(()=>import("../nodes/5.B28pUbsn.js"),__vite__mapDeps([134,4,5,57,135,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,92,90,66,56,67,68,93,91,89,48,49,44,33,34,17,50,51,94,95,96,47,42,38,55,58,88,76,97,46,18,37,21,36,39,35,98,104,45,43,15,105,106,107,54,62,80,136,71,137,138,139,140,141,142,143,73,144,120,145,146,117,147,148,64,121,61,63,122,114,70,149,150,151,126,152,153,154,155,81,156,157,158,159,160,161,162,163,164,22,165,166,167,168,60,169,170,101,171,129,130,172,173,174,175,176,177,113,75,108,69,178,179,124,119,180]),import.meta.url),()=>a(()=>import("../nodes/6.D04srF9Y.js"),__vite__mapDeps([181,4,5,25,3,26,28,33,2,10,11,12,13,7,8,23,24,34,27,1,29,17,32,38,22,21,43,44,42,152,153,55,50,56,57,58,104,45,46,47,18,48,49,51,91,92,90,66,67,68,93,89,94,95,96,76,88,97,37,36,39,35,98,15,105,106,107,61,62,63,140,136,139,141,142,143,73,144,120,145,154,126,155,81,156,157,158,159,160,121,122,161,162,163,164,64,114,70,165,166,167,168,170,77,40,182]),import.meta.url),()=>a(()=>import("../nodes/7.U-29Oxv0.js"),__vite__mapDeps([183,4,5,57,94,18,12,35,11,10,13,2,3,7,8,55,25,26,27,28,24,1,29,32,50,56,23,58,95,149]),import.meta.url),()=>a(()=>import("../nodes/8.Bw_t7MQd.js"),__vite__mapDeps([184,4,5,8,3,25,26,24,28,27,7,1,2,29,66,92,90,32,23,56,67,68,93,91,89,10,11,12,13,48,49,44,33,34,17,50,51,57,94,95,96,125,100,59,88,76,55,58,97,38,46,47,42,18,37,21,36,39,35,98,22,53,185,65,43,63,186,144,142,165,119,146,117,80,101,72,69,175,176,105,78,84,187,70,110,188,189]),import.meta.url),()=>a(()=>import("../nodes/9.Dr8DgxLF.js"),__vite__mapDeps([190,4,5,135,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,92,90,66,56,67,68,93,91,89,48,49,44,33,34,17,50,51,57,94,95,96,47,42,38,55,58,88,76,97,46,18,37,21,36,39,35,98,104,45,43,15,105,106,107,54,62,80,136,71,137,138,139,140,141,142,143,73,144,120,145,146,117,147,148,22,115,116,52,53,111,83,84,85,86,87,112,75,118,174,40,126,123,64,72,191,128,192,193,186,74,194,103,185,101,78,195,196,79,197,198,199,171,200,201,108,176,124,202]),import.meta.url),()=>a(()=>import("../nodes/10.Dq2vvlba.js"),__vite__mapDeps([203,4,5,36,21,25,3,26,24,10,11,12,13,2,7,8,23,28,123,90,32,66,27,1,29,97,55,50,56,57,58,106,76,172,124,89,195,196,79,33,34,17,191,128,86,87,85,47,42,38,39,192,81,199,80,204]),import.meta.url),()=>a(()=>import("../nodes/11.CseT_Bi0.js"),__vite__mapDeps([205,4,5,57,94,23,24,7,25,3,26]),import.meta.url),()=>a(()=>import("../nodes/12.xXnBnpBZ.js"),__vite__mapDeps([206,4,5,8,3,27,7,25,26,28,24,1,2,29,23,95,149,207]),import.meta.url),()=>a(()=>import("../nodes/13.BOV3I8HB.js"),__vite__mapDeps([208,4,5,25,3,26,7,27,28,24,8,1,2,29,95,149,209,11,109,126,90,32,66,92,23,56,67,68,93,105,57,94,210]),import.meta.url),()=>a(()=>import("../nodes/14.vi5_3ajt.js"),__vite__mapDeps([211,4,5,48,10,11,12,13,2,3,7,8,49,44,33,23,24,25,26,34,27,28,1,29,17,32,50,51,95,149,41,42,38,43,45,46,47,18,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,35,39,70,71,72,73,74,75,76,77,40,78,37,21,36,16,79,80,81,82,83,84,85,86,87,160,88,89,90,91,92,93,94,96,97,98,104,15,105,106,107,121,122,161,99,110,169,152,153,140,136,139,141,142,143,144,120,145,154,126,155,156,157,158,159,162,163,164,22,114,165,166,167,168,170,101,171,129,130,172,173,209,212,213,189]),import.meta.url),()=>a(()=>import("../nodes/15.DlA66kM0.js"),__vite__mapDeps([214,4,5,25,3,26,7,27,28,24,8,1,2,29,95,149,32,13,126,212,47,42,38,215]),import.meta.url),()=>a(()=>import("../nodes/16.B4hQ-11c.js"),__vite__mapDeps([216,4,5,47,8,3,42,38,23,24,7,25,26,27,28,1,2,29,10,11,12,13,32,120,62,33,34,17,48,49,44,50,51,114,70,82,91,92,90,66,56,67,68,93,89,57,94,95,96,100,59,78,37,21,36,39,18,35,217]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock":[14],"/hud":[16,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,s as r}from"../chunks/CluMc6c4.js";export{o as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/rfbsWJY8.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as y,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as D}from"../chunks/DYvAONpX.js";import{x as ie,I as C,D as ae}from"../chunks/D5WwA0O_.js";import{w as ce}from"../chunks/CIf7CPyv.js";import{Hi as ue}from"../chunks/CM_x_DK5.js";import{initAppStore as de}from"../chunks/9hA4gnqW.js";import{F as le,D as fe}from"../chunks/Bb8-l2NT.js";import{i as me}from"../chunks/
|
|
1
|
+
import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/rfbsWJY8.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as y,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as D}from"../chunks/DYvAONpX.js";import{x as ie,I as C,D as ae}from"../chunks/D5WwA0O_.js";import{w as ce}from"../chunks/CIf7CPyv.js";import{Hi as ue}from"../chunks/CM_x_DK5.js";import{initAppStore as de}from"../chunks/9hA4gnqW.js";import{F as le,D as fe}from"../chunks/Bb8-l2NT.js";import{i as me}from"../chunks/C_lHU_9L.js";const pe=!1,we=!1,ve=!0,Me=Object.freeze(Object.defineProperty({__proto__:null,csr:ve,prerender:we,ssr:pe},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){const f=de(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const V=3,j=4,be=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<be||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function he(){return document.querySelector("webview:hover")!==null}function ye(e){e!=="back"&&e!=="forward"||he()||S(e)}function Y(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function U(e){Y(e)||(e.button===V?(e.preventDefault(),S("back")):e.button===j&&(e.preventDefault(),S("forward")))}function F(e){Y(e)||(e.button===V||e.button===j)&&e.preventDefault()}function Ae(e=window){return e.addEventListener("mouseup",U,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",U,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function Ee(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function q(e,t){if(new.target)return L({component:q,...e});P(t,!0);const r=()=>Z(m,"$resolvedLocale$",f),[f,p]=ee();let s=O(t,"children",7);const l=ge(ue,{startSagas:()=>[]},void 0);re(l);const m=le(),v=fe();se(()=>{const n=!me()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},R=()=>c(!1),H=()=>c(!0),z=v.subscribe(_=>{d=_,a()}),M=window.electronAPI,k=ie();let E;a(),n&&(k?E=M?.on?.("window:focus",c):(window.addEventListener("blur",R),window.addEventListener("focus",H)));const J=Ee(document.documentElement),Q=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const X=Ae(window),B=window.electronAPI?.on?.(C.APP.HISTORY_NAVIGATE,ye);return()=>{z(),J.destroy(),E?M.offById("window:focus",E):n&&!k&&(window.removeEventListener("blur",R),window.removeEventListener("focus",H)),document.documentElement.removeAttribute("data-window-blurred"),Q(),X(),B&&window.electronAPI.offById(C.APP.HISTORY_NAVIGATE,B)}});var u={get children(){return s()},set children(n){s(n),$()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);D(d,()=>s()??W),y(n,o)}),y(e,w);var i=T(u);return p(),i}const x="/dev-console";function _e(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Se(e){return e===G||e.startsWith(`${G}/`)}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(_e(window.location.pathname)||Se(window.location.pathname));var p={get children(){return r()},set children(u){r(u),$()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);D(g,()=>r()??W),y(u,w)},v=u=>{q(u,{get children(){return r()}})};te(l,u=>{f?u(m):u(v,-1)})}return y(e,s),T(p)}var Le=new Set(["$$slots","$$events","$$legacy","children"]);function Oe(e,t){if(new.target)return L({component:Oe,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Le);var p={get children(){return r()},set children(s){r(s),$()},$set:I,$on:(s,l)=>N(t,s,l)};return K(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);D(v,()=>r()??W),y(s,m)},$$slots:{default:!0}})),T(p)}export{Oe as component,Me as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as A,a_ as W,by as D,b as E,bo as p,bt as R,br as U}from"../chunks/rfbsWJY8.js";import{bs as J,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/
|
|
1
|
+
import{t as A,a_ as W,by as D,b as E,bo as p,bt as R,br as U}from"../chunks/rfbsWJY8.js";import{bs as J,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/CluMc6c4.js";import{p as b}from"../chunks/lM8ThUgn.js";import{F as te,cJ as ae}from"../chunks/DPDCKuA3.js";import{f as se}from"../chunks/_hjrl4Qq.js";var oe=O('<p class="text-sm text-subtle"> </p>'),le=O('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function T(l,o){if(new.target)return A({component:T,...l});J(o,!0);let c=h(()=>b.error),r=h(()=>b.status),v=h(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:D,$on:(i,n)=>E(o,i,n)},j=X(),q=Y(j);{var G=i=>{var n=le(),F=a(n),S=a(F),x=a(S),z=a(x),H=a(z);te(H,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),I=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),u=$(d,!0);k(y=>m(u,y),[()=>p.error_page_status_label({status:e(r)})]),_(t,d)};W(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var P=f(w,2),Q=a(P);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var u=ee();k(y=>m(u,y),[()=>p.error_page_reload_button()]),_(t,u)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(I,t),m(M,d)},[()=>p.error_page_title(),()=>e(c)?.message||p.error_page_unexpected_fallback()]),_(i,n)};W(q,i=>{e(v)||i(G)})}return _(l,j),N(g)}var ie=new Set(["$$slots","$$events","$$legacy"]);function ne(l,o){if(new.target)return A({component:ne,...l});J(o,!0);let c=U(o,ie);var r={$set:D,$on:(v,g)=>E(o,v,g)};return T(l,R(()=>c)),N(r)}export{ne as component};
|