@intent-hq/web 2.284.0 → 2.285.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{BLEfessf.js → -KtznSS-.js} +1 -1
- package/web/app/immutable/chunks/{BfCf1CX7.js → 1lVCCXL6.js} +1 -1
- package/web/app/immutable/chunks/{rL78ODLZ.js → 2eBUyHOS.js} +1 -1
- package/web/app/immutable/chunks/{D-aPtTCv.js → 6ASkEKEx.js} +1 -1
- package/web/app/immutable/chunks/{C6Lk-C_n.js → 70g8kmTR.js} +1 -1
- package/web/app/immutable/chunks/{CclADFoZ.js → 9s6R6NFl.js} +1 -1
- package/web/app/immutable/chunks/{BghJZEqX.js → ASxUuKIZ.js} +1 -1
- package/web/app/immutable/chunks/{BYvXj8cv.js → B0UymEvm.js} +1 -1
- package/web/app/immutable/chunks/{BoffG-0C.js → B0a31Ljt.js} +1 -1
- package/web/app/immutable/chunks/{gNzz3jGE.js → B4GCMjY3.js} +1 -1
- package/web/app/immutable/chunks/B4kKZm1B.js +1 -0
- package/web/app/immutable/chunks/{Dkj8SIBR.js → B91hcydD.js} +1 -1
- package/web/app/immutable/chunks/{Bj2uvmt-.js → B9DD1rvd.js} +1 -1
- package/web/app/immutable/chunks/{B1s7HAuZ.js → BA2m5W5p.js} +1 -1
- package/web/app/immutable/chunks/{CajYOO74.js → BB-v27nE.js} +1 -1
- package/web/app/immutable/chunks/{CeMTgCB3.js → BDnf9UFd.js} +1 -1
- package/web/app/immutable/chunks/{DyQA18KQ.js → BEu9jjb7.js} +1 -1
- package/web/app/immutable/chunks/{Byp8PswU.js → BFDtkLj3.js} +1 -1
- package/web/app/immutable/chunks/{C-AxUu93.js → BFlCxloC.js} +1 -1
- package/web/app/immutable/chunks/{DR4RT4VO.js → BLT4lwJH.js} +1 -1
- package/web/app/immutable/chunks/{CyO8AnLs.js → BMCIczJY.js} +1 -1
- package/web/app/immutable/chunks/{BcemBG1g.js → BMqkZHSQ.js} +4 -4
- package/web/app/immutable/chunks/{DcoQTetB.js → BOxsG-23.js} +1 -1
- package/web/app/immutable/chunks/{D2hiI0dA.js → BRaDvZhu.js} +1 -1
- package/web/app/immutable/chunks/{BUtQhKox.js → BRiWAWWR.js} +1 -1
- package/web/app/immutable/chunks/{vICHfDZm.js → BRrnGZdq.js} +1 -1
- package/web/app/immutable/chunks/{8n4ougjP.js → BRsvqYQJ.js} +1 -1
- package/web/app/immutable/chunks/{Bj6-QOR3.js → BW5WMYMF.js} +1 -1
- package/web/app/immutable/chunks/{DZ-8K7hK.js → BYD9CrbJ.js} +1 -1
- package/web/app/immutable/chunks/{CEkEURUB.js → BerKnKvV.js} +1 -1
- package/web/app/immutable/chunks/{J2ZKQ-lu.js → BfCM8g6D.js} +1 -1
- package/web/app/immutable/chunks/{BFDD1pyQ.js → Bi5G5jdW.js} +1 -1
- package/web/app/immutable/chunks/{BSLrzoVf.js → BijxVENA.js} +1 -1
- package/web/app/immutable/chunks/{JqZ92YB_.js → BioKfdhs.js} +1 -1
- package/web/app/immutable/chunks/{5ZpW5rVB.js → Bj2REgAl.js} +1 -1
- package/web/app/immutable/chunks/{5BmKVYc1.js → Bj2YjLqH.js} +4 -4
- package/web/app/immutable/chunks/{B8xgoeqo.js → BkTES_s_.js} +1 -1
- package/web/app/immutable/chunks/{oPjZ8e3L.js → BlGCnZqu.js} +1 -1
- package/web/app/immutable/chunks/{CBF5TBJQ.js → BoAgG62K.js} +1 -1
- package/web/app/immutable/chunks/{cesw6DqW.js → Bpei5bK8.js} +1 -1
- package/web/app/immutable/chunks/{CqyYuyXE.js → BqEq2gS8.js} +1 -1
- package/web/app/immutable/chunks/{Bir-_mB8.js → BrPrpju0.js} +1 -1
- package/web/app/immutable/chunks/{DbdgMxO8.js → Btdv9Hrh.js} +1 -1
- package/web/app/immutable/chunks/{C1FIrZNw.js → BuKPgt_Y.js} +1 -1
- package/web/app/immutable/chunks/{CLDGr3DL.js → BuRX-tbO.js} +1 -1
- package/web/app/immutable/chunks/{BQqtq_EY.js → Butq4Y1l.js} +4 -4
- package/web/app/immutable/chunks/{CoEKpjkL.js → BwcCzTcz.js} +1 -1
- package/web/app/immutable/chunks/{DxyRwm0L.js → C-PJ15bY.js} +1 -1
- package/web/app/immutable/chunks/{D0GCGQZA.js → C4eeWJf-.js} +1 -1
- package/web/app/immutable/chunks/{lKWYFdqV.js → C4mRaa7L.js} +1 -1
- package/web/app/immutable/chunks/{BOV2-YtX.js → C5vTcsb2.js} +1 -1
- package/web/app/immutable/chunks/{Dwola7mR.js → C64d2sYd.js} +1 -1
- package/web/app/immutable/chunks/{D9ZfYqMq.js → C7A26Vlu.js} +1 -1
- package/web/app/immutable/chunks/{kjKGIJZ6.js → C8BEXIPc.js} +1 -1
- package/web/app/immutable/chunks/{DWW4w6Jk.js → C8xd2WWY.js} +1 -1
- package/web/app/immutable/chunks/{CWMWrTe0.js → C9o24MoC.js} +1 -1
- package/web/app/immutable/chunks/{7IZupueL.js → CAkMXI-6.js} +3 -3
- package/web/app/immutable/chunks/{LoyMyTg_.js → CDnN0LSW.js} +1 -1
- package/web/app/immutable/chunks/{Ri_Gwy-5.js → CEQqb3fD.js} +1 -1
- package/web/app/immutable/chunks/{DPd_IJJ7.js → CFzJYgT5.js} +1 -1
- package/web/app/immutable/chunks/{DSJT83nX.js → CHXt_ftw.js} +1 -1
- package/web/app/immutable/chunks/{RAzXpC6i.js → CHaUiotE.js} +1 -1
- package/web/app/immutable/chunks/{BIkNHTNp.js → CHjSilfW.js} +1 -1
- package/web/app/immutable/chunks/{CLCaT9pi.js → CJQrM64N.js} +3 -3
- package/web/app/immutable/chunks/{U9YbfUz9.js → CMO5zsjQ.js} +1 -1
- package/web/app/immutable/chunks/{BCkgwkHF.js → CMt5MqSJ.js} +1 -1
- package/web/app/immutable/chunks/{580ALcE7.js → COL0pyet.js} +1 -1
- package/web/app/immutable/chunks/{D_mcoMIN.js → CQ7Jnj9E.js} +1 -1
- package/web/app/immutable/chunks/{DoBcYmem.js → CRhgbDg2.js} +5 -5
- package/web/app/immutable/chunks/{DDi4fKeR.js → CTozw_6a.js} +1 -1
- package/web/app/immutable/chunks/{--3ZEJ9J.js → CTwzQE4y.js} +1 -1
- package/web/app/immutable/chunks/{Dk3JYfn4.js → CULilvBT.js} +1 -1
- package/web/app/immutable/chunks/{BnZq-I73.js → CV2PaujE.js} +2 -2
- package/web/app/immutable/chunks/{bin8Us0N.js → CVUNrf_6.js} +1 -1
- package/web/app/immutable/chunks/{GJVVHDkb.js → CWgAcLvx.js} +1 -1
- package/web/app/immutable/chunks/{CTthB0JK.js → CYElNz1m.js} +1 -1
- package/web/app/immutable/chunks/{CoQLGQdj.js → CZUDc12W.js} +1 -1
- package/web/app/immutable/chunks/{Bmnp4Cni.js → CdT170lG.js} +6 -6
- package/web/app/immutable/chunks/{B96HYSUr.js → Ceyasj46.js} +1 -1
- package/web/app/immutable/chunks/{IrWlayTZ.js → CfAqizJ3.js} +1 -1
- package/web/app/immutable/chunks/{D8GxmJaV.js → CfYh5raT.js} +1 -1
- package/web/app/immutable/chunks/{DkJafW99.js → CgWJ7tKh.js} +1 -1
- package/web/app/immutable/chunks/{CwYn_cZy.js → ChDcu7sM.js} +1 -1
- package/web/app/immutable/chunks/{C-tRLOED.js → ChmO5DTP.js} +1 -1
- package/web/app/immutable/chunks/{CXruy7R4.js → Cj_Tm5wU.js} +1 -1
- package/web/app/immutable/chunks/{BXwgWEmz.js → CkNc-1DL.js} +1 -1
- package/web/app/immutable/chunks/{DpiQDkOO.js → CkqPtSf5.js} +1 -1
- package/web/app/immutable/chunks/{Cci8BWX_.js → ClNs6jou.js} +1 -1
- package/web/app/immutable/chunks/{qb0bPcr5.js → CotgBJSP.js} +1 -1
- package/web/app/immutable/chunks/{CHK5bSfe.js → CoyHhRwd.js} +1 -1
- package/web/app/immutable/chunks/{Dd_avILP.js → CozIiFS7.js} +1 -1
- package/web/app/immutable/chunks/{B5HPrVzu.js → Cp09JH6d.js} +1 -1
- package/web/app/immutable/chunks/{BYhzE2Id.js → CpPsvdhC.js} +1 -1
- package/web/app/immutable/chunks/{v3KbAU5c.js → CrXlvCkv.js} +1 -1
- package/web/app/immutable/chunks/{DKwy0FDy.js → Crq4Js3_.js} +1 -1
- package/web/app/immutable/chunks/{BZjntufp.js → CvZhT_UL.js} +1 -1
- package/web/app/immutable/chunks/{Ds-TYeKV.js → Cve5pOPi.js} +2 -2
- package/web/app/immutable/chunks/{CQMmROUx.js → CwK4Fl7A.js} +2 -2
- package/web/app/immutable/chunks/{Bhov0MTz.js → Cwxvd99b.js} +1 -1
- package/web/app/immutable/chunks/{CbNazQqj.js → Cz9_gz0r.js} +1 -1
- package/web/app/immutable/chunks/{CXu6aWOL.js → Czc4IAh9.js} +1 -1
- package/web/app/immutable/chunks/{BmY5L1Op.js → Czzw_Pvc.js} +1 -1
- package/web/app/immutable/chunks/{BCHni7By.js → D0csyvlS.js} +1 -1
- package/web/app/immutable/chunks/{pl6-mRrC.js → D1dPbxoX.js} +1 -1
- package/web/app/immutable/chunks/{CNzOZ9MW.js → D2Fdja4t.js} +1 -1
- package/web/app/immutable/chunks/{DPfdnkfB.js → D38kCxZ9.js} +1 -1
- package/web/app/immutable/chunks/{DZpe54cf.js → D4K0RFHm.js} +1 -1
- package/web/app/immutable/chunks/{BLjf4WQt.js → D4RvTAYA.js} +1 -1
- package/web/app/immutable/chunks/{DG8rkBW-.js → D6XYE7JV.js} +1 -1
- package/web/app/immutable/chunks/{k5qVf45I.js → D6dtEt_1.js} +1 -1
- package/web/app/immutable/chunks/{DOdMtNpo.js → D72pFxfr.js} +1 -1
- package/web/app/immutable/chunks/{D6K58w6v.js → D7P2CXpO.js} +3 -3
- package/web/app/immutable/chunks/{BE5jLkkZ.js → D82TCSK5.js} +1 -1
- package/web/app/immutable/chunks/{CJuSN2hh.js → D8HMZQ9R.js} +1 -1
- package/web/app/immutable/chunks/{syg_Gxp6.js → D8U0PEIU.js} +1 -1
- package/web/app/immutable/chunks/{CrPyrftw.js → DB6_aOnf.js} +1 -1
- package/web/app/immutable/chunks/{4kHCfKWR.js → DB_2g4tK.js} +1 -1
- package/web/app/immutable/chunks/{1wcS2GHA.js → DBicYI5c.js} +1 -1
- package/web/app/immutable/chunks/{BQu3cSOx.js → DFXw4s8S.js} +1 -1
- package/web/app/immutable/chunks/{CCzzpn5X.js → DFvnP41F.js} +1 -1
- package/web/app/immutable/chunks/{BmeKmSN1.js → DG5KvEVf.js} +1 -1
- package/web/app/immutable/chunks/{oU2ii1bq.js → DKF2EjTY.js} +1 -1
- package/web/app/immutable/chunks/{BSIOWZWq.js → DOPcy6T2.js} +1 -1
- package/web/app/immutable/chunks/{Dzk1FZ-5.js → DPY72hn4.js} +1 -1
- package/web/app/immutable/chunks/{CAS7It7T.js → DQafeec3.js} +1 -1
- package/web/app/immutable/chunks/{D6CS23-9.js → DRdRLmUz.js} +1 -1
- package/web/app/immutable/chunks/{D5bYJMaB.js → DWzbf_aU.js} +1 -1
- package/web/app/immutable/chunks/{BAyTpaq3.js → DX0AlGFV.js} +1 -1
- package/web/app/immutable/chunks/{DI5O_gLl.js → DX0hE1oC.js} +1 -1
- package/web/app/immutable/chunks/{BxFP5cPu.js → DX3MlPN0.js} +1 -1
- package/web/app/immutable/chunks/{Tpzyol5T.js → DXJ3D6-0.js} +2 -2
- package/web/app/immutable/chunks/{wXtCM_sb.js → DYX4kEq9.js} +1 -1
- package/web/app/immutable/chunks/{BuSZooEw.js → DZRaa7LH.js} +1 -1
- package/web/app/immutable/chunks/{BMBobKUo.js → Dbuv3b_7.js} +2 -2
- package/web/app/immutable/chunks/{CEZnJlwn.js → DhQAmnDS.js} +1 -1
- package/web/app/immutable/chunks/{BrvhC6GL.js → DhkOw60r.js} +1 -1
- package/web/app/immutable/chunks/{D805RV1I.js → Dijv8faG.js} +1 -1
- package/web/app/immutable/chunks/{Djthn66V.js → DlYL66WK.js} +2 -2
- package/web/app/immutable/chunks/{BS6Z2wWv.js → DlYrPe_w.js} +1 -1
- package/web/app/immutable/chunks/{cfTDb37Y.js → Dlu0_GVa.js} +1 -1
- package/web/app/immutable/chunks/{BNfbL3_i.js → DpXfO8nM.js} +1 -1
- package/web/app/immutable/chunks/{BE6av5p4.js → DuKFlC9j.js} +1 -1
- package/web/app/immutable/chunks/{DqUTyEPN.js → DwW5MiN3.js} +1 -1
- package/web/app/immutable/chunks/{BRk6sSrF.js → DxJXJeWp.js} +1 -1
- package/web/app/immutable/chunks/{03ESLWB1.js → DxlpLNnB.js} +1 -1
- package/web/app/immutable/chunks/{BYB7SynS.js → F42L1irN.js} +1 -1
- package/web/app/immutable/chunks/{FcnPtqUv.js → I1eQnBry.js} +1 -1
- package/web/app/immutable/chunks/{B5KLQb3J.js → J5Q3706J.js} +1 -1
- package/web/app/immutable/chunks/{mf6N49ed.js → JUqct0gC.js} +1 -1
- package/web/app/immutable/chunks/{BxUDfZfX.js → KxpMwUsB.js} +1 -1
- package/web/app/immutable/chunks/{BKAQdyqG.js → LiYeJQ_y.js} +1 -1
- package/web/app/immutable/chunks/{CZ1Jg-sG.js → Qyi-W7KZ.js} +1 -1
- package/web/app/immutable/chunks/{CyBNkEuV.js → RDcDz1X1.js} +1 -1
- package/web/app/immutable/chunks/{Blhl4Kzo.js → SlH326tK.js} +1 -1
- package/web/app/immutable/chunks/{lLF0vfI3.js → UMObs5wi.js} +1 -1
- package/web/app/immutable/chunks/{BEQXbC7q.js → Uv0U-1kP.js} +1 -1
- package/web/app/immutable/chunks/{DIvWSFnj.js → WPmFGY7m.js} +1 -1
- package/web/app/immutable/chunks/{DRYCjR4c.js → Xb_csWgU.js} +1 -1
- package/web/app/immutable/chunks/{aVNMqNTp.js → Y3UAS5wV.js} +1 -1
- package/web/app/immutable/chunks/{CZFoI5QY.js → YpQeV5ep.js} +6 -6
- package/web/app/immutable/chunks/{DO0tFr72.js → _Y7Nvr11.js} +1 -1
- package/web/app/immutable/chunks/{lflImyZ6.js → _bgnudZi.js} +2 -2
- package/web/app/immutable/chunks/{CRQOCmwo.js → _eQjP0_7.js} +7 -7
- package/web/app/immutable/chunks/{C6NP7Wkf.js → c0MObYhr.js} +1 -1
- package/web/app/immutable/chunks/{CYvdhBss.js → hAyFyjes.js} +1 -1
- package/web/app/immutable/chunks/{BLjxHwvZ.js → iPSaMdjW.js} +1 -1
- package/web/app/immutable/chunks/{Jyr4akMd.js → ingscYYg.js} +1 -1
- package/web/app/immutable/chunks/{goXBWNik.js → lrd8vBcb.js} +1 -1
- package/web/app/immutable/chunks/{BlhXsK8K.js → nvBTDqJi.js} +1 -1
- package/web/app/immutable/chunks/{CzfXsXYz.js → oDL-pLcj.js} +1 -1
- package/web/app/immutable/chunks/{C83cffhG.js → s4JAFzR2.js} +1 -1
- package/web/app/immutable/chunks/{DyaiTi8A.js → sgXcAFR7.js} +1 -1
- package/web/app/immutable/chunks/{DQ_zmHT9.js → t61BPD62.js} +1 -1
- package/web/app/immutable/chunks/{CRqiQDbX.js → t7uelISx.js} +1 -1
- package/web/app/immutable/chunks/{CzTIJ9gY.js → tWOclZbM.js} +1 -1
- package/web/app/immutable/chunks/{i_sqIi_B.js → u9Jr5xJ2.js} +1 -1
- package/web/app/immutable/chunks/{CtwCGSFA.js → uKt9v9GZ.js} +1 -1
- package/web/app/immutable/chunks/{CsP-2ecL.js → xS44oH53.js} +1 -1
- package/web/app/immutable/chunks/{CX89Aogf.js → yQykulND.js} +1 -1
- package/web/app/immutable/chunks/{NfelpfPi.js → z5aynuor.js} +1 -1
- package/web/app/immutable/chunks/{B1P0TORE.js → zOdhHtWD.js} +1 -1
- package/web/app/immutable/chunks/{C1GRqLCq.js → zuhzlizP.js} +1 -1
- package/web/app/immutable/entry/{app.Cn1_ubOc.js → app.ZJRI8LL8.js} +2 -2
- package/web/app/immutable/entry/start.B_ChBWnN.js +1 -0
- package/web/app/immutable/nodes/{0.wKUTDWdz.js → 0.B_5IeAcY.js} +1 -1
- package/web/app/immutable/nodes/{1.DxJUaPzW.js → 1.D2RcMrk8.js} +1 -1
- package/web/app/immutable/nodes/{10.eeMW9oGM.js → 10.a-yBB_mg.js} +1 -1
- package/web/app/immutable/nodes/{14.DMbmYykJ.js → 14.BRMrhd95.js} +1 -1
- package/web/app/immutable/nodes/{16.D7z1ouJw.js → 16.DsObfcQu.js} +2 -2
- package/web/app/immutable/nodes/{2.BHOa4yl6.js → 2.BX2UV9md.js} +3 -3
- package/web/app/immutable/nodes/{3.DLeJMfu1.js → 3.BAb5j4vs.js} +1 -1
- package/web/app/immutable/nodes/{4.BEPpJpXB.js → 4.i3m7hv4J.js} +1 -1
- package/web/app/immutable/nodes/{5.Cb4CR-KH.js → 5.kQ7xzuNs.js} +1 -1
- package/web/app/immutable/nodes/{6.Bko4vkVy.js → 6.De5Z6N1w.js} +1 -1
- package/web/app/immutable/nodes/{7.z66lh95v.js → 7.Dqm5QJxM.js} +1 -1
- package/web/app/immutable/nodes/{8.Cykwxl0x.js → 8.BT-G_bE5.js} +2 -2
- package/web/app/immutable/nodes/{9.Bm3FCmVg.js → 9.DIcsOChV.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/DsYKN9zh.js +0 -1
- package/web/app/immutable/entry/start.7mFy7hlx.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gF as C,gl as G,Gg as x,G_ as R,rN as B,sC as F,x$ as N,y0 as $,Ge as D,Gf as H,y1 as V}from"./C51KzdSG.js";import{N as d,o as K,B as U,e as j,l as g,p as q,u as z,v as J}from"./Di6XfBOT.js";import{dv as M}from"./dimBDqRX.js";import{r as Q}from"./
|
|
1
|
+
import{gF as C,gl as G,Gg as x,G_ as R,rN as B,sC as F,x$ as N,y0 as $,Ge as D,Gf as H,y1 as V}from"./C51KzdSG.js";import{N as d,o as K,B as U,e as j,l as g,p as q,u as z,v as J}from"./Di6XfBOT.js";import{dv as M}from"./dimBDqRX.js";import{r as Q}from"./iPSaMdjW.js";import{bo as l}from"./D4MoKNoK.js";import{b4 as X,a9 as T}from"./DgFojmqv.js";import{g as Y}from"./LFOlphb5.js";function I(e,t){const a=d.select(e.state),n=g.select(e.state);if(!n)return null;const c=a.indexOf(n),s=c+(t==="left"?-1:1),r=a[s];return c<0||!r?null:(e.dispatch(B(n,r,t==="left"?"before":"after")),n)}function E(e){const t=g.select(e);return t&&d.select(e).includes(t)?t:null}function f(e,t,a){const n=E(e.state),c=n?`/workspace/${n}`:Q(M.select(e.state));return t!==c&&a(c),n}function Z(e,t,a,n){return e.dispatch(C(t)),f(e,a,n),t}function y(e,t){const n=t.match(/^\/workspace\/([^/]+)/)?.[1];return n?n==="new"?null:n:null}function ee(e,t,a,n){if(a==="/")return A(e,t==="next"?0:"last",a,n);e.dispatch(t==="next"?D():H());const c=g.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return a!==s&&n(s),c}function te(e,t,a){const n=y(e,t);return n?Z(e,n,t,a):null}function ae(e,t,a){const n=y(e,t);if(!n)return null;const c=K.select(e.state,n);if(!c)return null;const s=c.tabs.find(m=>m.id===c.activeTabId),r=c.tabs.length===0&&c.activeTabId===null,w=U.select(e.state,n)>1&&(r||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!w)return null;const _=a??Y(n)?.availableCanvasWidth??void 0;return e.dispatch(G(n,void 0,_)),s?.id??c.id}function ne(e,t){const a=e.state.panelLayout.byWorkspaceId[t];return!a||a.restoreStatus==="pending"?!1:j.select(e.state,t).length===0}function oe(e,t,a){E(e.state)||e.dispatch(x(0)),f(e,t,a)}function S(e,t,{navigate:a,closeWindow:n}){return n?(n(),"window"):(f(e,t,a),null)}function ce(e,t,a){const n=y(e,t);return n?ae(e,t,a.availableCanvasWidth)!==null?"panel":ne(e,n)?(e.dispatch(C(n)),d.select(e.state).length>0?(oe(e,t,a.navigate),"workspace"):S(e,t,a)??"workspace"):null:d.select(e.state).length>0?null:S(e,t,a)}function se(e,t,a){return e.dispatch(V()),f(e,t,a)}function le(e,t,a){const n=t.match(/^\/workspace\/([^/]+)/),c=n&&n[1]!=="new"?n[1]:null,s=z.select(e.state),r=c?J.select(e.state,c):null;return c&&r&&(!s||r.closedAt>=s.closedAt)?r.kind==="column"?(e.dispatch(N(c)),"column"):(e.dispatch($(c)),r.kind):s?(se(e,t,a),"workspace"):null}function re(e,t){const a=t.match(/^\/workspace\/([^/]+)/),n=a&&a[1]!=="new"?a[1]:null;if(!n)return null;const c=F(n);return e.dispatch(c),q.select(e.state,n)}function A(e,t,a,n){const c=d.select(e.state),s=t==="last"?c.length-1:t;return s<0||s>=c.length?null:(e.dispatch(x(s)),f(e,a,n))}function we({isMac:e,register:t,store:a,getCurrentPath:n,navigate:c,openNewWorkspace:s,onCreateAgent:r,onCreateNote:w,onCreateTerminal:_,onCreateBrowser:m,onWorkspaceTabMoved:W,closeWindow:O,resolveBinding:k}){const u=e?{meta:!0}:{ctrl:!0},P=X("TOGGLE_SIDEBAR",e),b=o=>()=>o(n()),L=o=>()=>{const p=n().match(/^\/workspace\/([^/]+)/);p?.[1]&&p[1]!=="new"&&o(p[1])},i=o=>k?{binding:()=>k(o)}:{};t({...i("global.new-space"),...u,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),t({...i("panel.toggle-sidebar"),...P,global:!0,description:T.TOGGLE_SIDEBAR.label,action:()=>a.dispatch(R())}),t({...i("navigation.new-tab"),...u,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:b(o=>re(a,o))});for(const[o,p,h,v]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),r],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),w],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),_],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),m]])v&&t({...i(o),...u,key:p,alt:!0,global:!0,allowInTerminal:!0,description:h,action:L(v)});t({...i("navigation.close-tab"),...u,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:b(o=>ce(a,o,{navigate:c,closeWindow:O}))}),t({...i("navigation.close-space-tab"),...u,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:b(o=>te(a,o,c))}),t({...i("navigation.reopen-tab"),...u,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:b(o=>le(a,o,c))}),t({...i("navigation.move-space-tab-left"),...u,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:T.MOVE_SPACE_TAB_LEFT.label,action:()=>{const o=I(a,"left");o&&W?.({workspaceId:o,position:d.select(a.state).indexOf(o)+1})}}),t({...i("navigation.move-space-tab-right"),...u,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:T.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const o=I(a,"right");o&&W?.({workspaceId:o,position:d.select(a.state).indexOf(o)+1})}});for(const[o,p]of[["next",!1],["previous",!0]])t({...i(o==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:p,global:!0,description:o==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:b(h=>ee(a,o,h,c))});for(let o=1;o<=9;o++)t({...k?{binding:()=>k("navigation.go-to-tab").replace(/([1-8])-9$/,String(o))}:{},...u,key:String(o),global:!0,description:o===1?l.home_navigation_description():o===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:o}),action:b(p=>o===1?c("/"):A(a,o===9?"last":o-2,p,c))})}export{ce as c,we as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./D4MoKNoK.js";import{bs as It,ca as K,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as B,bO as S}from"./B8o4lNgr.js";import{B as St}from"./HfuFYz2u.js";import{c as Wt}from"./BPQohPc9.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./
|
|
1
|
+
import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./D4MoKNoK.js";import{bs as It,ca as K,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as B,bO as S}from"./B8o4lNgr.js";import{B as St}from"./HfuFYz2u.js";import{c as Wt}from"./BPQohPc9.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./CpPsvdhC.js";import"./WVYGrHqE.js";import"./WZHg24tN.js";import{bb as Dt}from"./CG5J-qd_.js";import"./DgFojmqv.js";import"./Dbuv3b_7.js";import{G2 as E,Gz as Nt,GN as Ft,GE as Bt,t3 as Et}from"./C51KzdSG.js";import{T as Lt}from"./B0UymEvm.js";import{g as Ut}from"./CoSk1zgY.js";import{dj as Ot}from"./dimBDqRX.js";import{bC as jt,bA as Gt,aX as Ht}from"./t61BPD62.js";import"./Ds7can9q.js";import{M as Mt}from"./D8_OuTD3.js";import{V as Vt}from"./BqSjWCdR.js";import{O as qt}from"./DB_2g4tK.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Xt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Xt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Jt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Kt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
4
|
`)}}var Qt=x("<!> <!>",1),Yt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>E.dispatch(Bt()),get wrapEnabled(){return d()},onToggleWrap:()=>E.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>E.dispatch(Nt())})},it=a=>{var i=Qt(),g=Q(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var C=F(g,2);{var y=m=>{qt(m,{get filePath(){return t(z)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(C,m=>{t(z)&&m(y)})}w(a,i)},rt=jt(),st=Gt(),ot=Ht(),dt=Rt("ActivityChangesTabType");let L=H(n,"tab",7),_=H(n,"workspaceId",7),U=H(n,"isActive",7);const R=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?Jt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),z=f(()=>t(p)&&t(O)?zt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),X=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(X)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(j)();return a?Kt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};E.dispatch(Et(_(),g))}K(()=>{!R||!U()||R.registerActions({display:at,actions:it})}),K(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(X)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},J=At(),mt=Q(J);{var vt=a=>{var i=Zt(),g=I(i);{var C=l=>{var h=Yt(),$=I(h),G=P($,!0);A(h),B(_t=>S(G,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(C)})}var y=F(g,2),m=I(y);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(y),A(i),w(a,i)},Ct=a=>{var i=te(),g=I(i),C=P(g,!0),y=F(g,2),m=P(y,!0);A(i),B((l,h)=>{S(C,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},yt=a=>{var i=ne(),g=I(i),C=P(g,!0),y=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);B(G=>S($,G),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(y,l=>{t(o)&&l(m)})}A(i),B(l=>S(C,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(Ct,1):a(yt,-1)})}w(e,J);var bt=Pt(ht);return nt(),bt}export{ae as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i,ab as d,aB as c}from"./
|
|
1
|
+
import{a as i,ab as d,aB as c}from"./_eQjP0_7.js";import{c3 as l,h as p}from"./CdT170lG.js";var o=p(c()),x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),g=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),h=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),f=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",n)},"drawImage"),w=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),k=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),v=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),E=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{w as a,f as b,E as c,g as d,x as e,h as f,k as g,v as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ge}from"./
|
|
1
|
+
import{g as ge}from"./BRsvqYQJ.js";import{a as h,ad as R,R as ue,ax as pe,M as fe,y as H,N as U,aD as j,W as me,a8 as ye,aa as _e,w as Ee}from"./_eQjP0_7.js";import{s as ke}from"./BRaDvZhu.js";import{g as m}from"./CdT170lG.js";var k=[];for(let t=0;t<256;++t)k.push((t+256).toString(16).slice(1));function se(t,e=0){return(k[t[e+0]]+k[t[e+1]]+k[t[e+2]]+k[t[e+3]]+"-"+k[t[e+4]]+k[t[e+5]]+"-"+k[t[e+6]]+k[t[e+7]]+"-"+k[t[e+8]]+k[t[e+9]]+"-"+k[t[e+10]]+k[t[e+11]]+k[t[e+12]]+k[t[e+13]]+k[t[e+14]]+k[t[e+15]]).toLowerCase()}m(se,"unsafeStringify");var Se=new Uint8Array(16);function re(){return crypto.getRandomValues(Se)}m(re,"rng");function ae(t,e,a){return!e&&!t&&crypto.randomUUID?crypto.randomUUID():oe(t,e,a)}m(ae,"v4");function oe(t,e,a){t=t||{};const l=t.random??t.rng?.()??re();if(l.length<16)throw new Error("Random bytes length must be >= 16");if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,e){if(a=a||0,a<0||a+16>e.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let n=0;n<16;++n)e[a+n]=l[n];return e}return se(l)}m(oe,"_v4");var be=ae,K=(function(){var t=h(function(v,s,i,o){for(i=i||{},o=v.length;o--;i[v[o]]=s);return i},"o"),e=[1,4],a=[1,13],l=[1,12],n=[1,15],d=[1,16],f=[1,20],_=[1,19],E=[6,7,8],S=[1,26],T=[1,24],A=[1,25],g=[6,7,11],$=[1,6,13,15,16,19,22],Q=[1,33],Z=[1,34],B=[1,6,7,11,13,15,16,19,22],W={trace:h(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(m(function(s,i,o,c,p,r,P){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},t(E,[2,3]),{1:[2,2]},t(E,[2,4]),t(E,[2,5]),{1:[2,6],6:a,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},{6:a,9:22,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},{6:S,7:T,10:23,11:A},t(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:_}),t(g,[2,18]),t(g,[2,19]),t(g,[2,20]),t(g,[2,21]),t(g,[2,23]),t(g,[2,24]),t(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:S,7:T,10:32,11:A},{1:[2,7],6:a,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},t($,[2,14],{7:Q,11:Z}),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(g,[2,15]),t(g,[2,16]),t(g,[2,17]),{20:[1,35]},{21:[1,36]},t($,[2,13],{7:Q,11:Z}),t(B,[2,11]),t(B,[2,12]),{21:[1,37]},t(g,[2,25]),t(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(m(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),"parseError"),parse:h(m(function(s){var i=this,o=[0],c=[],p=[null],r=[],P=this.table,u="",V=0,ee=0,le=2,te=1,he=r.slice.call(arguments,1),y=Object.create(this.lexer),O={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(O.yy[z]=this.yy[z]);y.setInput(s,O.yy),O.yy.lexer=y,O.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var X=y.yylloc;r.push(X);var de=y.options&&y.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ne(N){o.length=o.length-2*N,p.length=p.length-N,r.length=r.length-N}m(ne,"popStack"),h(ne,"popStack");function Y(){var N;return N=c.pop()||y.lex()||te,typeof N!="number"&&(N instanceof Array&&(c=N,N=c.pop()),N=i.symbols_[N]||N),N}m(Y,"lex"),h(Y,"lex");for(var b,I,x,q,w={},F,D,ie,G;;){if(I=o[o.length-1],this.defaultActions[I]?x=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=Y()),x=P[I]&&P[I][b]),typeof x>"u"||!x.length||!x[0]){var J="";G=[];for(F in P[I])this.terminals_[F]&&F>le&&G.push("'"+this.terminals_[F]+"'");y.showPosition?J="Parse error on line "+(V+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(V+1)+": Unexpected "+(b==te?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:y.match,token:this.terminals_[b]||b,line:y.yylineno,loc:X,expected:G})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(x[0]){case 1:o.push(b),p.push(y.yytext),r.push(y.yylloc),o.push(x[1]),b=null,ee=y.yyleng,u=y.yytext,V=y.yylineno,X=y.yylloc;break;case 2:if(D=this.productions_[x[1]][1],w.$=p[p.length-D],w._$={first_line:r[r.length-(D||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(D||1)].first_column,last_column:r[r.length-1].last_column},de&&(w._$.range=[r[r.length-(D||1)].range[0],r[r.length-1].range[1]]),q=this.performAction.apply(w,[u,ee,V,O.yy,x[1],p,r].concat(he)),typeof q<"u")return q;D&&(o=o.slice(0,-1*D*2),p=p.slice(0,-1*D),r=r.slice(0,-1*D)),o.push(this.productions_[x[1]][0]),p.push(w.$),r.push(w._$),ie=P[o[o.length-2]][o[o.length-1]],o.push(ie);break;case 3:return!0}}return!0},"parse"),"parse")},ce=(function(){var v={EOF:1,parseError:h(m(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),"parseError"),setInput:h(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:h(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(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:h(function(s){this.unput(this.match.slice(s))},"less"),pastInput:h(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:h(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:h(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -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"./CdT170lG.js";import{l as j}from"./CDnN0LSW.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};
|