@intent-hq/web 2.334.1 → 2.334.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/{0.C1mKQsv9.css → 0.CvWOFl38.css} +1 -1
- package/web/app/immutable/chunks/{BETOnFVA.js → 0IkOcvfJ.js} +1 -1
- package/web/app/immutable/chunks/{C2Hj1FZO.js → 0dBJ92VY.js} +1 -1
- package/web/app/immutable/chunks/{7AKPDTqy.js → 16fWZzGr.js} +1 -1
- package/web/app/immutable/chunks/{H6rH-O5e.js → 1P3Svk7C.js} +1 -1
- package/web/app/immutable/chunks/{xTKdEUQT.js → 2qetztQU.js} +1 -1
- package/web/app/immutable/chunks/{CAtd-0zD.js → 3J8ppa8V.js} +1 -1
- package/web/app/immutable/chunks/{BrgY-0wa.js → 3NsULH4n.js} +1 -1
- package/web/app/immutable/chunks/{m5UczIQR.js → 41Ipz5fb.js} +3 -3
- package/web/app/immutable/chunks/{nd4329YU.js → 4T3lottW.js} +1 -1
- package/web/app/immutable/chunks/{G3lcIaVb.js → 51VxIFjP.js} +1 -1
- package/web/app/immutable/chunks/{CEgGFCzF.js → 5JCKoNHo.js} +1 -1
- package/web/app/immutable/chunks/{Qx6kHYb-.js → 7vX_zhDt.js} +1 -1
- package/web/app/immutable/chunks/{4seVPSlv.js → 83X8qYIZ.js} +1 -1
- package/web/app/immutable/chunks/{Bobasviv.js → B-4znbWr.js} +1 -1
- package/web/app/immutable/chunks/{CSSojjBG.js → B1RNPPnR.js} +1 -1
- package/web/app/immutable/chunks/{mEDFle3S.js → B2B7A5cv.js} +2 -2
- package/web/app/immutable/chunks/{HB5uhQNm.js → B3S-8r8Q.js} +1 -1
- package/web/app/immutable/chunks/{BI3OQg3X.js → B4PvTMN9.js} +1 -1
- package/web/app/immutable/chunks/{C3KFiFcK.js → B4aHlPCL.js} +1 -1
- package/web/app/immutable/chunks/{TvrcPonj.js → B60bH8TA.js} +2 -2
- package/web/app/immutable/chunks/{CsabU_jS.js → B912rMNR.js} +1 -1
- package/web/app/immutable/chunks/{ITJu9SqW.js → B9A9lomt.js} +1 -1
- package/web/app/immutable/chunks/{tj2YkYbp.js → B9zRktrl.js} +1 -1
- package/web/app/immutable/chunks/{DkPqbYEN.js → BARxRXsX.js} +1 -1
- package/web/app/immutable/chunks/{Dzg-ll0I.js → BCaN323R.js} +1 -1
- package/web/app/immutable/chunks/{Z1K5P4U2.js → BF6wMmoi.js} +1 -1
- package/web/app/immutable/chunks/{BuxSPewv.js → BFmeDjr6.js} +1 -1
- package/web/app/immutable/chunks/{Bbdedrbg.js → BGmE7S8e.js} +1 -1
- package/web/app/immutable/chunks/{BRvPqeED.js → BGoB55YD.js} +1 -1
- package/web/app/immutable/chunks/{BX5Kqzmw.js → BHtY6ESy.js} +1 -1
- package/web/app/immutable/chunks/{CESOOiWP.js → BLLBrDig.js} +1 -1
- package/web/app/immutable/chunks/{CO7hmy56.js → BObyhEvF.js} +1 -1
- package/web/app/immutable/chunks/BQXOfNZI.js +1 -0
- package/web/app/immutable/chunks/{V1oMiVfu.js → BR-IQj2I.js} +1 -1
- package/web/app/immutable/chunks/{CjijEKrk.js → BSR6aHSL.js} +1 -1
- package/web/app/immutable/chunks/{MCnrQrjH.js → BUdGspGY.js} +1 -1
- package/web/app/immutable/chunks/{CDSwBgYD.js → BUqlMR9S.js} +1 -1
- package/web/app/immutable/chunks/{BcOksEI9.js → BVODtnZ_.js} +1 -1
- package/web/app/immutable/chunks/{PA5tKchu.js → BVT3kXik.js} +1 -1
- package/web/app/immutable/chunks/{BAmhsi1_.js → BVuWCaMK.js} +1 -1
- package/web/app/immutable/chunks/{CKR6ReFI.js → BWwVI2wD.js} +3 -3
- package/web/app/immutable/chunks/{DZRICUjW.js → BX9uJGYE.js} +1 -1
- package/web/app/immutable/chunks/{CFbTpfHS.js → BaZD6F_F.js} +1 -1
- package/web/app/immutable/chunks/{BI01o9a_.js → Bb3V-mzB.js} +1 -1
- package/web/app/immutable/chunks/{BE3xHJK-.js → BbSfUzNJ.js} +1 -1
- package/web/app/immutable/chunks/{Diees_tN.js → Bc5aSxx7.js} +1 -1
- package/web/app/immutable/chunks/{BAzeccV1.js → BcyT7b7x.js} +1 -1
- package/web/app/immutable/chunks/{C7Fm8r7x.js → BeRQmB1S.js} +1 -1
- package/web/app/immutable/chunks/{CiQ6prZ_.js → Beby3oGf.js} +1 -1
- package/web/app/immutable/chunks/{BkLJcH_z.js → BequUoOf.js} +1 -1
- package/web/app/immutable/chunks/{Co38dt7I.js → Bis1tGsD.js} +1 -1
- package/web/app/immutable/chunks/{D_i6tc5B.js → Bjk1uPNC.js} +1 -1
- package/web/app/immutable/chunks/{LULQY_VI.js → BjuFNGmO.js} +1 -1
- package/web/app/immutable/chunks/{DRvCShWO.js → BkdzL4yw.js} +1 -1
- package/web/app/immutable/chunks/{BfDRfZ1x.js → Bl-MloT_.js} +1 -1
- package/web/app/immutable/chunks/{td5hg6sa.js → BmdspVDq.js} +1 -1
- package/web/app/immutable/chunks/{BAOVYkFF.js → Bmk4jf3b.js} +1 -1
- package/web/app/immutable/chunks/{CyImu6JF.js → BpNgI678.js} +1 -1
- package/web/app/immutable/chunks/{DafANtkC.js → BpYO6-9F.js} +1 -1
- package/web/app/immutable/chunks/{CPYxy-X1.js → BpaYHJ-9.js} +1 -1
- package/web/app/immutable/chunks/{vvvz0E4v.js → BpytSwck.js} +1 -1
- package/web/app/immutable/chunks/{CIqnL4UD.js → Bqxl7Ok8.js} +1 -1
- package/web/app/immutable/chunks/{Cz-qaXwq.js → BtHWj1ie.js} +1 -1
- package/web/app/immutable/chunks/{HZf189bi.js → BtpLmNi5.js} +1 -1
- package/web/app/immutable/chunks/{CEtwgF3e.js → BupUzFbt.js} +1 -1
- package/web/app/immutable/chunks/{BWLkc8Du.js → Bv1IZ9jZ.js} +1 -1
- package/web/app/immutable/chunks/{BV0hRaXE.js → Bvq04Q4o.js} +4 -4
- package/web/app/immutable/chunks/{DbWOkCcI.js → BwP7dxjv.js} +1 -1
- package/web/app/immutable/chunks/{JlZEAwzh.js → BxyNxuc4.js} +1 -1
- package/web/app/immutable/chunks/{DEA_eMvz.js → BzPAs2gJ.js} +1 -1
- package/web/app/immutable/chunks/{DCCFERAn.js → C-g-ql7J.js} +1 -1
- package/web/app/immutable/chunks/{BJGG6xS6.js → C05_S9Ju.js} +5 -5
- package/web/app/immutable/chunks/{CEXEpW2y.js → C1ULDuoI.js} +1 -1
- package/web/app/immutable/chunks/{Df-CfLbF.js → C1o4etfa.js} +1 -1
- package/web/app/immutable/chunks/{CnMdEUN9.js → C2-OrDhN.js} +1 -1
- package/web/app/immutable/chunks/{D3DGxoeO.js → C29Sz8Eb.js} +1 -1
- package/web/app/immutable/chunks/{CArqGgyL.js → C4E6vJ_G.js} +1 -1
- package/web/app/immutable/chunks/{Dbqyis-m.js → C58Ew98r.js} +1 -1
- package/web/app/immutable/chunks/{RlWPb-l5.js → C5Q4eAq_.js} +1 -1
- package/web/app/immutable/chunks/{Dk1_0x0Q.js → C5wvNL0Z.js} +1 -1
- package/web/app/immutable/chunks/{Qk-BsDf0.js → C7c_HqY-.js} +1 -1
- package/web/app/immutable/chunks/{5deW2fcc.js → CBU3Lv61.js} +1 -1
- package/web/app/immutable/chunks/{35OKERyz.js → CCOrMVtA.js} +3 -3
- package/web/app/immutable/chunks/{DPXyAfng.js → CHs7x3NU.js} +1 -1
- package/web/app/immutable/chunks/{mdduA0pr.js → CMDD5oco.js} +1 -1
- package/web/app/immutable/chunks/{CXzbClP6.js → CMZSUqQp.js} +1 -1
- package/web/app/immutable/chunks/{DBdE3z4X.js → CNdKMo_I.js} +1 -1
- package/web/app/immutable/chunks/{CTcbitCM.js → CNfyvq-I.js} +1 -1
- package/web/app/immutable/chunks/{CP_jYxTi.js → CQrOkYTr.js} +1 -1
- package/web/app/immutable/chunks/{C--Z5JHB.js → CQyqfCr-.js} +1 -1
- package/web/app/immutable/chunks/{DhIC-K93.js → CRB0-tlS.js} +1 -1
- package/web/app/immutable/chunks/{4doVsrTt.js → CSbsxmgR.js} +1 -1
- package/web/app/immutable/chunks/{5iBTGhZe.js → CUF34JFV.js} +1 -1
- package/web/app/immutable/chunks/{71wna1Z8.js → CUNn6i7t.js} +1 -1
- package/web/app/immutable/chunks/{B3IB9jzF.js → CUZSIyX_.js} +1 -1
- package/web/app/immutable/chunks/{BxDyhHLD.js → CUtjYppD.js} +1 -1
- package/web/app/immutable/chunks/{B4GGgwli.js → CVsqcMdv.js} +1 -1
- package/web/app/immutable/chunks/{D8UOq-cZ.js → CWKtbi5E.js} +1 -1
- package/web/app/immutable/chunks/{DuoF8WPm.js → CWR6--Dq.js} +2 -2
- package/web/app/immutable/chunks/{BjWMcF7P.js → CXA1l_nB.js} +1 -1
- package/web/app/immutable/chunks/{B8888LoS.js → CYftfbzB.js} +1 -1
- package/web/app/immutable/chunks/{CCPn5VZR.js → CZHiAprx.js} +1 -1
- package/web/app/immutable/chunks/{C5vuxPIj.js → CZNaDcm1.js} +1 -1
- package/web/app/immutable/chunks/C_S5gHJT.js +1 -0
- package/web/app/immutable/chunks/{Bd-UWJsU.js → CaNtsQ6t.js} +1 -1
- package/web/app/immutable/chunks/{BzOameBd.js → CcOazRqG.js} +1 -1
- package/web/app/immutable/chunks/{CvkTsTXh.js → CcSz6OD0.js} +1 -1
- package/web/app/immutable/chunks/{C-IDQ1xK.js → Cc_wNDFs.js} +2 -2
- package/web/app/immutable/chunks/{C3vEbnKP.js → CcmNsa21.js} +1 -1
- package/web/app/immutable/chunks/{CgWmg0h0.js → CfXGXIMF.js} +1 -1
- package/web/app/immutable/chunks/{CXexmtc2.js → CgKLWzRK.js} +1 -1
- package/web/app/immutable/chunks/{oJD7n1Ce.js → Cge5Oj9H.js} +1 -1
- package/web/app/immutable/chunks/{BfNeIJAh.js → CiOA93tK.js} +1 -1
- package/web/app/immutable/chunks/{Z9shPzgu.js → Cj2dc64O.js} +12 -12
- package/web/app/immutable/chunks/{Az9OQ8Pw.js → Co39i4D_.js} +1 -1
- package/web/app/immutable/chunks/{C0VK7z_4.js → Cp8jLuzv.js} +1 -1
- package/web/app/immutable/chunks/{jrcipDnr.js → Cr6Ymkww.js} +1 -1
- package/web/app/immutable/chunks/{B3KrGqdQ.js → CrHvmPQ7.js} +1 -1
- package/web/app/immutable/chunks/{DXNrmOAj.js → Cs7-VJBr.js} +1 -1
- package/web/app/immutable/chunks/{DPiebq8X.js → CshRaRo1.js} +1 -1
- package/web/app/immutable/chunks/{2cP0f-ZS.js → CsrBCZPr.js} +1 -1
- package/web/app/immutable/chunks/{BcSES-Dp.js → CyqvmVzu.js} +1 -1
- package/web/app/immutable/chunks/{DGcTdGo8.js → D-SEHwlM.js} +1 -1
- package/web/app/immutable/chunks/{DXQ8FQgn.js → D0JCFoTY.js} +1 -1
- package/web/app/immutable/chunks/{D9wogWMJ.js → D2HiAf4f.js} +1 -1
- package/web/app/immutable/chunks/{DFDLegE6.js → D2X1yeHE.js} +1 -1
- package/web/app/immutable/chunks/{DHwdjtxe.js → D32hPhdk.js} +1 -1
- package/web/app/immutable/chunks/{BACRSxRg.js → D3OuHEjp.js} +1 -1
- package/web/app/immutable/chunks/{DCD7Mz5K.js → D4W6_VO7.js} +1 -1
- package/web/app/immutable/chunks/{DXO_adPf.js → D4t8kT73.js} +1 -1
- package/web/app/immutable/chunks/{B8ouaI3V.js → D58OiNyq.js} +1 -1
- package/web/app/immutable/chunks/{BsmVNOQl.js → D5Fs_hsG.js} +1 -1
- package/web/app/immutable/chunks/{DkO3fP2t.js → D8RjiNFi.js} +1 -1
- package/web/app/immutable/chunks/{BHNjUi-M.js → D8Xo7ebv.js} +1 -1
- package/web/app/immutable/chunks/{CUWQIUPR.js → D8qLY3IO.js} +2 -2
- package/web/app/immutable/chunks/{DAGiwOmW.js → DANPHJjT.js} +1 -1
- package/web/app/immutable/chunks/{Bdtl8KA4.js → DBhGb_Ln.js} +1 -1
- package/web/app/immutable/chunks/{x67B9CPX.js → DBzFzsOq.js} +4 -4
- package/web/app/immutable/chunks/{b8po137L.js → DCOUSIAo.js} +3 -3
- package/web/app/immutable/chunks/{CfwVmHCf.js → DCkTXZ4K.js} +1 -1
- package/web/app/immutable/chunks/{C3mDeV9d.js → DD4gpfya.js} +1 -1
- package/web/app/immutable/chunks/{C1ZTS4Sh.js → DFNitlZj.js} +1 -1
- package/web/app/immutable/chunks/{B-1pTbth.js → DHxo7JaE.js} +1 -1
- package/web/app/immutable/chunks/DK1Q4u0g.js +1 -0
- package/web/app/immutable/chunks/{B_VQj7hH.js → DMHoyG-_.js} +1 -1
- package/web/app/immutable/chunks/{CRdjZtzP.js → DN50CcaN.js} +1 -1
- package/web/app/immutable/chunks/{BnU-5qYi.js → DNVh6skU.js} +1 -1
- package/web/app/immutable/chunks/{De1yQ4of.js → DPnZkhsu.js} +3 -3
- package/web/app/immutable/chunks/{C0A_RMeu.js → DQD8AO34.js} +1 -1
- package/web/app/immutable/chunks/{DfBE7crq.js → DRsuOWdV.js} +1 -1
- package/web/app/immutable/chunks/{CGVLIZz9.js → DSCDt1B-.js} +1 -1
- package/web/app/immutable/chunks/{DYUpH2Hg.js → DUKJlKr0.js} +1 -1
- package/web/app/immutable/chunks/{CXKfuiUF.js → DUMOrivW.js} +1 -1
- package/web/app/immutable/chunks/{CsdbM4yO.js → DU_JwB8F.js} +1 -1
- package/web/app/immutable/chunks/{CYAPxNuV.js → DWxC3NKo.js} +1 -1
- package/web/app/immutable/chunks/{DyrELBv-.js → DXteS7Ar.js} +1 -1
- package/web/app/immutable/chunks/{BHVl-WA3.js → DY0W5oKg.js} +1 -1
- package/web/app/immutable/chunks/DY1wP2k5.js +2 -0
- package/web/app/immutable/chunks/{CYnSw8gK.js → DYRhXLvx.js} +1 -1
- package/web/app/immutable/chunks/{5gwO8o7P.js → DY_yMB44.js} +1 -1
- package/web/app/immutable/chunks/{CI96OvIs.js → DaNtBioc.js} +1 -1
- package/web/app/immutable/chunks/{CLT3XZ7_.js → Daz6_dof.js} +1 -1
- package/web/app/immutable/chunks/{D0NsovPG.js → Db3n1wC9.js} +1 -1
- package/web/app/immutable/chunks/{kJ4G2_k4.js → Deznn6cZ.js} +3 -3
- package/web/app/immutable/chunks/{C7Ro1E0r.js → DfXRQ23_.js} +1 -1
- package/web/app/immutable/chunks/{C5VwFEJA.js → DgKbDa2w.js} +1 -1
- package/web/app/immutable/chunks/{BMXLxN42.js → DgviNcJr.js} +1 -1
- package/web/app/immutable/chunks/{Gz-Odby1.js → DiF0fpUd.js} +1 -1
- package/web/app/immutable/chunks/DkL-L4y9.js +1 -0
- package/web/app/immutable/chunks/{DsbITls1.js → DkgRZeaF.js} +1 -1
- package/web/app/immutable/chunks/{Do9Il6aW.js → DnLhVTI5.js} +4 -4
- package/web/app/immutable/chunks/{C1MSnWt8.js → DniQ8kjc.js} +1 -1
- package/web/app/immutable/chunks/{D-v3doGL.js → DquYyo5r.js} +1 -1
- package/web/app/immutable/chunks/{B4egTWvZ.js → Ds8B9oQ5.js} +1 -1
- package/web/app/immutable/chunks/{Cxbk0QV6.js → DwPpQNAK.js} +1 -1
- package/web/app/immutable/chunks/{BsbCFjWI.js → Dx1-1ztE.js} +1 -1
- package/web/app/immutable/chunks/{9oNS7b_T.js → DxJU8PfF.js} +1 -1
- package/web/app/immutable/chunks/{C6vcWSYF.js → DxT48JWz.js} +1 -1
- package/web/app/immutable/chunks/{Cl-7Au8R.js → DyI4Jpqs.js} +1 -1
- package/web/app/immutable/chunks/{DuD0elPz.js → DymvZ-Mk.js} +1 -1
- package/web/app/immutable/chunks/{CEboTiDi.js → Dyrlx70E.js} +3 -3
- package/web/app/immutable/chunks/{5gyILap3.js → Dz-EQI05.js} +1 -1
- package/web/app/immutable/chunks/{CrnkHSpK.js → GuBMnGsB.js} +2 -2
- package/web/app/immutable/chunks/{GY5YfSD1.js → H_J_o8pe.js} +1 -1
- package/web/app/immutable/chunks/{Cs1tcw-s.js → HdQmLMU7.js} +1 -1
- package/web/app/immutable/chunks/{DkoS0ApO.js → HmbW7Ern.js} +1 -1
- package/web/app/immutable/chunks/{2aqEG8x0.js → JIf-ri8o.js} +1 -1
- package/web/app/immutable/chunks/{kKBf0CYQ.js → JZw6itpU.js} +3 -3
- package/web/app/immutable/chunks/{MMlRGdRy.js → KxE8uB8g.js} +1 -1
- package/web/app/immutable/chunks/{psHvDGLZ.js → M5YnvJkZ.js} +1 -1
- package/web/app/immutable/chunks/{DE30zKyE.js → MprxwvTp.js} +1 -1
- package/web/app/immutable/chunks/{Bxd9OUMD.js → N14qS9Qe.js} +1 -1
- package/web/app/immutable/chunks/{Oz6u8hl_.js → O-D_vZnv.js} +1 -1
- package/web/app/immutable/chunks/{DGUKdi7i.js → QxmoFbx9.js} +1 -1
- package/web/app/immutable/chunks/{sT0KaY62.js → SSsTlNjk.js} +1 -1
- package/web/app/immutable/chunks/{D8zn-h1a.js → TwOG2jW7.js} +1 -1
- package/web/app/immutable/chunks/{CoVAqVcd.js → U4mdLoC-.js} +1 -1
- package/web/app/immutable/chunks/{CMhVAKzx.js → WtMABcqO.js} +1 -1
- package/web/app/immutable/chunks/{tO-hey33.js → XJV_dABS.js} +1 -1
- package/web/app/immutable/chunks/{DBhO1Z-R.js → YPW6yKdR.js} +1 -1
- package/web/app/immutable/chunks/{Wjuib0ag.js → _T1ymZGh.js} +1 -1
- package/web/app/immutable/chunks/{B4OuSSm9.js → aOcuYL1F.js} +1 -1
- package/web/app/immutable/chunks/{DulGwXPf.js → aUs_qmPG.js} +2 -2
- package/web/app/immutable/chunks/{ayrFAfGH.js → bWqn_R6a.js} +1 -1
- package/web/app/immutable/chunks/{k3FE0FJZ.js → c2DN1TPU.js} +1 -1
- package/web/app/immutable/chunks/c5r-4P7O.js +1 -0
- package/web/app/immutable/chunks/{BBH-BNcw.js → c7K9Ywjt.js} +1 -1
- package/web/app/immutable/chunks/{D2laB2lQ.js → cIVqD9Xn.js} +1 -1
- package/web/app/immutable/chunks/{fQAPkS9v.js → eVnyW2fp.js} +1 -1
- package/web/app/immutable/chunks/{BEbbGjvZ.js → gKg0gn4E.js} +1 -1
- package/web/app/immutable/chunks/{DIyqmlUg.js → gz2jgC75.js} +1 -1
- package/web/app/immutable/chunks/{tHW2xu85.js → h9cSqXFU.js} +4 -4
- package/web/app/immutable/chunks/{DRe7r98g.js → iBvoqrfw.js} +1 -1
- package/web/app/immutable/chunks/{DKxrs1sS.js → jPHMDY20.js} +2 -2
- package/web/app/immutable/chunks/{C043lRmr.js → kv373IlD.js} +1 -1
- package/web/app/immutable/chunks/{B-lr2mEf.js → lfsj60VV.js} +1 -1
- package/web/app/immutable/chunks/{Ci__OGHt.js → lnSs2a5p.js} +1 -1
- package/web/app/immutable/chunks/{Bjpp5QFb.js → m8h5IS1T.js} +1 -1
- package/web/app/immutable/chunks/{Di0Cytfq.js → oNuVmIMP.js} +1 -1
- package/web/app/immutable/chunks/{DxGil5MD.js → obZ2a9yR.js} +1 -1
- package/web/app/immutable/chunks/{DcZ6Y3e4.js → obxiK2Di.js} +1 -1
- package/web/app/immutable/chunks/{Do3D3adr.js → pLNG5zfI.js} +1 -1
- package/web/app/immutable/chunks/{Bv6lXJbF.js → qh5NvcGx.js} +1 -1
- package/web/app/immutable/chunks/{CZ_kVWbN.js → rJUllCO_.js} +2 -2
- package/web/app/immutable/chunks/{FEnI6pqw.js → roSdX03M.js} +1 -1
- package/web/app/immutable/chunks/{DxFUSFjo.js → sRnl0PU9.js} +1 -1
- package/web/app/immutable/chunks/{CMOnvdXp.js → tH-RhVo1.js} +1 -1
- package/web/app/immutable/chunks/{DMW_Ogh_.js → tKvKjLkU.js} +1 -1
- package/web/app/immutable/chunks/{9x9_-mfx.js → ta0XTRL7.js} +1 -1
- package/web/app/immutable/chunks/{BuNYZSRv.js → vAB9kLHE.js} +1 -1
- package/web/app/immutable/chunks/{Ckt4hpBJ.js → w328gIvs.js} +1 -1
- package/web/app/immutable/chunks/{BEycbtuj.js → wpJJDATB.js} +1 -1
- package/web/app/immutable/chunks/{CKJpktTE.js → wwXPdVUm.js} +1 -1
- package/web/app/immutable/chunks/{DWJnCcL3.js → x8c-ZjEZ.js} +2 -2
- package/web/app/immutable/chunks/{BCGsV37m.js → xDnHZYOV.js} +1 -1
- package/web/app/immutable/chunks/{DYSyQTlz.js → xIEypq_8.js} +1 -1
- package/web/app/immutable/chunks/{C0WAGZJ9.js → zrJ8j4C7.js} +1 -1
- package/web/app/immutable/entry/{app.D0MtdmTS.js → app.Bx13Xy07.js} +3 -3
- package/web/app/immutable/entry/start.BQv5FV82.js +1 -0
- package/web/app/immutable/nodes/{0.SQd1rw9F.js → 0.D84EYz8y.js} +1 -1
- package/web/app/immutable/nodes/{1.DEkMxnM3.js → 1.DwOsrLgj.js} +1 -1
- package/web/app/immutable/nodes/{10.BwG-rwIb.js → 10.qgK08QR-.js} +1 -1
- package/web/app/immutable/nodes/{11.CVezrggv.js → 11.CEyqnFKf.js} +1 -1
- package/web/app/immutable/nodes/{12.BPw8mLRI.js → 12.DutEo2iA.js} +1 -1
- package/web/app/immutable/nodes/{13.DEB8Wg7Z.js → 13.BZD8HUaN.js} +3 -3
- package/web/app/immutable/nodes/{14.D7uqFGya.js → 14.BN3HQRTY.js} +1 -1
- package/web/app/immutable/nodes/{15.FeIesTUd.js → 15.90ZVFO-M.js} +1 -1
- package/web/app/immutable/nodes/{16.CxMj36A8.js → 16.BhEWJbkY.js} +1 -1
- package/web/app/immutable/nodes/{17.CLHcSNQ3.js → 17.BdGR9I1-.js} +2 -2
- package/web/app/immutable/nodes/{2.wp3qumBD.js → 2.CNUQ7sHL.js} +12 -12
- package/web/app/immutable/nodes/{3.beA-w1Z7.js → 3.Bz31wWbs.js} +1 -1
- package/web/app/immutable/nodes/{4.CApSdQYP.js → 4.C-oeEJCf.js} +1 -1
- package/web/app/immutable/nodes/{5.CI2v691d.js → 5.B9gJw7uM.js} +1 -1
- package/web/app/immutable/nodes/{6.CMzDhNh4.js → 6.BW9VBH9x.js} +1 -1
- package/web/app/immutable/nodes/{7.DLco_Cq5.js → 7.D-aNxCp3.js} +1 -1
- package/web/app/immutable/nodes/{8.CZiVpecT.js → 8.Byk-dWqA.js} +4 -4
- package/web/app/immutable/nodes/{9.D1WSkrvW.js → 9.CTLkAppy.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +20 -20
- package/web/app/immutable/chunks/BeA8kzlg.js +0 -1
- package/web/app/immutable/chunks/C7wbrsvU.js +0 -1
- package/web/app/immutable/chunks/CIB-2rN9.js +0 -1
- package/web/app/immutable/chunks/CZEeLj55.js +0 -1
- package/web/app/immutable/chunks/Dso1_H3c.js +0 -1
- package/web/app/immutable/chunks/DzXiplW2.js +0 -2
- package/web/app/immutable/entry/start.CBgUCIjA.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as Mt,bq as ae,_ as Lr,a_ as re,by as Ut,bu as be,bs as Gt,b as jt,bo as d}from"./Dso1_H3c.js";import{bs as zt,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as Et,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ze,b$ as et,b_ as C,bO as g,bS as p,bl as S,aB as k,bj as Ar,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Wr,br as Br}from"./DYhIMPy1.js";import{G as mr,H as Or}from"./DCCFERAn.js";import{u as rt,w as yt,v as or,n as Pt}from"./CnMdEUN9.js";import{c as St}from"./B3KrGqdQ.js";import{b as _r}from"./BaIAhI85.js";import{Ik as A,nx as hr,vo as wr,vn as br,Ky as qr,Kz as Hr,eu as Jr,ev as Kr,J_ as ir,lJ as qt,Br as nr,rZ as sr,nV as Xr,z3 as Yr,a5 as lr,IQ as Zr,J6 as Gr,n8 as Qr,iF as ea,nz as ta,uR as ra,zq as aa,JZ as oa}from"./Dk1_0x0Q.js";import{g as ia}from"./DfN8_dcw.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as Ht}from"./BzOameBd.js";import{bA as va,bN as pa,dr as ga}from"./CArqGgyL.js";import{w as cr,d as ma}from"./4doVsrTt.js";import{f as _a}from"./CIqnL4UD.js";import{k as Jt}from"./BuNYZSRv.js";import{f as Fe,ax as ha}from"./m5UczIQR.js";import"./BfNeIJAh.js";import{F as Qe,a8 as wa,aq as ba,aV as xa,a$ as Tt,cn as ya,co as Pa,bi as $a,cM as ka,c3 as Ia}from"./DAGiwOmW.js";import{d as Ca,f as Fa,t as ur}from"./Az9OQ8Pw.js";import{c as Sa}from"./ChTqQfQN.js";import"./C7Fm8r7x.js";import{$ as Da}from"./Z9shPzgu.js";import{i as Kt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Yt,p as Ma}from"./CSSojjBG.js";import{M as Ua}from"./BV0hRaXE.js";import{t as Xt,u as xr}from"./Cl-7Au8R.js";import"./DXNrmOAj.js";import"./BAOVYkFF.js";import{M as Dt}from"./B-lr2mEf.js";import{V as ja}from"./mdduA0pr.js";import{bQ as za,b4 as Ea}from"./MMlRGdRy.js";import{am as Va}from"./x67B9CPX.js";const yr=A.createSelector((Y,x)=>hr(Y.pdfPreview.previews,x));var La=k('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Aa=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Zt(Y,x){if(new.target)return Mt({component:Zt,...Y});zt(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Gt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Ce=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),He=O(void 0),N=O(1),B=O(1),se=O(!0),z=O(!1),Ee=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(Ee)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const E=crypto.randomUUID();return A.dispatch(wr(Se,E,l,y,...Ce()?[{gitRootId:Ce()}]:[])),()=>{A.dispatch(br(Se,E))}}),ke(()=>{const l=Ie()?.url;let y=!1,E;if(u(Q,null),u(Ee,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Lr(async()=>{const{loadPdfDocument:he}=await import("./cb1JHFKl.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;E=K(l);const le=await E.promise;y||u(Q,le)}catch(K){if(y)return;u(Ee,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,E?.destroy()}}),ke(()=>{const l=e(Q),y=e(He),E=e(N),K=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const X=(_e.get(U)??1)-1;X?_e.set(U,X):(_e.delete(U),U.cleanup()),U=void 0};return u(z,!0),(async()=>{try{if(U=await l.getPage(E),_e.set(U,(_e.get(U)??0)+1),le){de();return}const X=U.getViewport({scale:K}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*ee),y.height=Math.ceil(X.height*ee),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,he=U.render({canvas:y,viewport:X,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(Ee,"invalid")}finally{le||u(z,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Ce()},set gitRootId(l){Ce(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Aa(),c=R(o);{var M=l=>{{const y=K=>{Ze();var le=et();C(()=>g(le,e(De))),s(K,le)};let E=i(()=>d.ui_combobox_retry_label());Ca(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(E)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Fa(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=La(),E=ue(y),K=R(E);{let ge=i(()=>e(N)<=1);Fe(K,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(K,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Fe(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Fe(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var X=p(de,2),ee=S(X,!0),ot=p(X,2);{let ge=i(()=>e(B)>=3);Fe(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(E);var it=p(E,2),Je=R(it);let Ge;_r(Je,ge=>u(He,ge),()=>e(He)),P(it),C((ge,Pe,Ke)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(z)),rt(Je,"aria-label",Ke),Ge=yt(Je,"",Ge,{visibility:e(z)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Xt(e(N)),total:Xt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Xt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(Y,o);var Ve=Et(We);return ie(),Ve}const Na=A.createSelector((Y,x)=>hr(Y.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),qa=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(Y,x){if(new.target)return Mt({component:Pr,...Y});zt(x,!0);const Ie=()=>be(He,"$preview",at),[at,ie]=Gt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Ce=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),He=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,z=!1;Ar(()=>{z=!0,A.dispatch(qr(Q))});function Ee(){if(z||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(Hr(Q,m.hostname,m.toString()))}function Ne(m){if(z)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&Ee()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Ce()},set allowDownload(m){Ce(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=Ha(),We=R(De);{var o=m=>{var w=Oa(),Ve=R(w),l=S(Ve,!0),y=p(Ve,2);{var E=U=>{var de=Wa(),X=S(de,!0);C(ee=>g(X,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},K=U=>{var de=Ba(),X=S(de,!0);C(ee=>g(X,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(N)?U(E):U(K,-1)})}var le=p(y,2);{var he=U=>{Fe(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,X)=>{Ze();var ee=et();C(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Ce()&&U(he)})}P(w),C(()=>g(l,ne())),s(m,w)},c=m=>{var w=qa(),Ve=S(w,!0);C(l=>{rt(w,"src",Ie()?.url??$()),g(Ve,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ee()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(Y,De);var M=Et(ye);return ie(),M}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ka=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ya=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Za=k("<!> ",1),Ga=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(Y,x){if(new.target)return Mt({component:Rt,...Y});zt(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Fe(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,q)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,q)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ze(2),C(()=>g(h,e(Ee))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Ce=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},N=i(()=>He(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),z=O(0);const Ee=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function Ve(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(We,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(z),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},E=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=E(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},X=()=>{u(z,(e(z)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():K(),t.download=e(B),t.click()},ot=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
|
|
1
|
+
import{t as Mt,bq as ae,_ as Lr,a_ as re,by as Ut,bu as be,bs as Gt,b as jt,bo as d}from"./C_S5gHJT.js";import{bs as zt,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as Et,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ze,b$ as et,b_ as C,bO as g,bS as p,bl as S,aB as k,bj as Ar,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Wr,br as Br}from"./DYhIMPy1.js";import{G as mr,H as Or}from"./C-g-ql7J.js";import{u as rt,w as yt,v as or,n as Pt}from"./C2-OrDhN.js";import{c as St}from"./CrHvmPQ7.js";import{b as _r}from"./BaIAhI85.js";import{Ik as A,nx as hr,vo as wr,vn as br,Ky as qr,Kz as Hr,eu as Jr,ev as Kr,J_ as ir,lJ as qt,Br as nr,rZ as sr,nV as Xr,z3 as Yr,a5 as lr,IQ as Zr,J6 as Gr,n8 as Qr,iF as ea,nz as ta,uR as ra,zq as aa,JZ as oa}from"./C5wvNL0Z.js";import{g as ia}from"./DfN8_dcw.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as Ht}from"./CcOazRqG.js";import{bA as va,bN as pa,dr as ga}from"./C4E6vJ_G.js";import{w as cr,d as ma}from"./CSbsxmgR.js";import{f as _a}from"./Bqxl7Ok8.js";import{k as Jt}from"./vAB9kLHE.js";import{f as Fe,ax as ha}from"./41Ipz5fb.js";import"./CiOA93tK.js";import{F as Qe,a8 as wa,aq as ba,aV as xa,a$ as Tt,cn as ya,co as Pa,bi as $a,cM as ka,c3 as Ia}from"./DANPHJjT.js";import{d as Ca,f as Fa,t as ur}from"./Co39i4D_.js";import{c as Sa}from"./ChTqQfQN.js";import"./BeRQmB1S.js";import{$ as Da}from"./Cj2dc64O.js";import{i as Kt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Yt,p as Ma}from"./B1RNPPnR.js";import{M as Ua}from"./Bvq04Q4o.js";import{t as Xt,u as xr}from"./DyI4Jpqs.js";import"./Cs7-VJBr.js";import"./Bmk4jf3b.js";import{M as Dt}from"./lfsj60VV.js";import{V as ja}from"./CMDD5oco.js";import{bQ as za,b4 as Ea}from"./KxE8uB8g.js";import{am as Va}from"./DBzFzsOq.js";const yr=A.createSelector((Y,x)=>hr(Y.pdfPreview.previews,x));var La=k('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Aa=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Zt(Y,x){if(new.target)return Mt({component:Zt,...Y});zt(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Gt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Ce=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),He=O(void 0),N=O(1),B=O(1),se=O(!0),z=O(!1),Ee=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(Ee)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const E=crypto.randomUUID();return A.dispatch(wr(Se,E,l,y,...Ce()?[{gitRootId:Ce()}]:[])),()=>{A.dispatch(br(Se,E))}}),ke(()=>{const l=Ie()?.url;let y=!1,E;if(u(Q,null),u(Ee,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Lr(async()=>{const{loadPdfDocument:he}=await import("./cb1JHFKl.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;E=K(l);const le=await E.promise;y||u(Q,le)}catch(K){if(y)return;u(Ee,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,E?.destroy()}}),ke(()=>{const l=e(Q),y=e(He),E=e(N),K=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const X=(_e.get(U)??1)-1;X?_e.set(U,X):(_e.delete(U),U.cleanup()),U=void 0};return u(z,!0),(async()=>{try{if(U=await l.getPage(E),_e.set(U,(_e.get(U)??0)+1),le){de();return}const X=U.getViewport({scale:K}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*ee),y.height=Math.ceil(X.height*ee),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,he=U.render({canvas:y,viewport:X,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(Ee,"invalid")}finally{le||u(z,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Ce()},set gitRootId(l){Ce(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Aa(),c=R(o);{var M=l=>{{const y=K=>{Ze();var le=et();C(()=>g(le,e(De))),s(K,le)};let E=i(()=>d.ui_combobox_retry_label());Ca(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(E)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Fa(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=La(),E=ue(y),K=R(E);{let ge=i(()=>e(N)<=1);Fe(K,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(K,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Fe(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Fe(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var X=p(de,2),ee=S(X,!0),ot=p(X,2);{let ge=i(()=>e(B)>=3);Fe(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Ke)=>{Ze();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(E);var it=p(E,2),Je=R(it);let Ge;_r(Je,ge=>u(He,ge),()=>e(He)),P(it),C((ge,Pe,Ke)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(z)),rt(Je,"aria-label",Ke),Ge=yt(Je,"",Ge,{visibility:e(z)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Xt(e(N)),total:Xt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Xt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(Y,o);var Ve=Et(We);return ie(),Ve}const Na=A.createSelector((Y,x)=>hr(Y.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),qa=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(Y,x){if(new.target)return Mt({component:Pr,...Y});zt(x,!0);const Ie=()=>be(He,"$preview",at),[at,ie]=Gt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Ce=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),He=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,z=!1;Ar(()=>{z=!0,A.dispatch(qr(Q))});function Ee(){if(z||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(Hr(Q,m.hostname,m.toString()))}function Ne(m){if(z)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&Ee()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Ce()},set allowDownload(m){Ce(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=Ha(),We=R(De);{var o=m=>{var w=Oa(),Ve=R(w),l=S(Ve,!0),y=p(Ve,2);{var E=U=>{var de=Wa(),X=S(de,!0);C(ee=>g(X,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},K=U=>{var de=Ba(),X=S(de,!0);C(ee=>g(X,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(N)?U(E):U(K,-1)})}var le=p(y,2);{var he=U=>{Fe(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,X)=>{Ze();var ee=et();C(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Ce()&&U(he)})}P(w),C(()=>g(l,ne())),s(m,w)},c=m=>{var w=qa(),Ve=S(w,!0);C(l=>{rt(w,"src",Ie()?.url??$()),g(Ve,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ee()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(Y,De);var M=Et(ye);return ie(),M}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ka=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ya=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Za=k("<!> ",1),Ga=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(Y,x){if(new.target)return Mt({component:Rt,...Y});zt(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Fe(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,q)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,q)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ze(2),C(()=>g(h,e(Ee))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Ce=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},N=i(()=>He(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),z=O(0);const Ee=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function Ve(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(We,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(z),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},E=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=E(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},X=()=>{u(z,(e(z)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():K(),t.download=e(B),t.click()},ot=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
|
|
2
2
|
`).map(f=>f.split(",").map(_=>_.trim()));var Ge={get filePath(){return ie()},set filePath(t){ie(t),oe()},get fileContent(){return $()},set fileContent(t=""){$(t),oe()},get sourceUrl(){return ne()},set sourceUrl(t){ne(t),oe()},get language(){return Ce()},set language(t){Ce(t),oe()},get isBinary(){return Se()},set isBinary(t){Se(t),oe()},get allowDownload(){return xe()},set allowDownload(t=!0){xe(t),oe()},get onDownload(){return _e()},set onDownload(t){_e(t),oe()},get downloading(){return Q()},set downloading(t=!1){Q(t),oe()},$set:Ut,$on:(t,a)=>jt(x,t,a)},ge=io();tt("blur",gr,m);var Pe=R(ge);{var Ke=t=>{var a=Ka(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let te=i(()=>d.editor_fileViewer_rotate_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:X,get title(){return e(te)},children:(we,Te)=>{Qe(we,{get icon(){return wa},size:"sm"})},$$slots:{default:!0}})}var j=p(h,4);{let te=i(()=>d.editor_fileViewer_copyImage_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ot,get title(){return e(te)},children:(we,Te)=>{var ze=je(),Be=ue(ze);{var Lt=Xe=>{Qe(Xe,{get icon(){return ba},size:"sm",class:"text-green-500"})},pt=Xe=>{Qe(Xe,{get icon(){return xa},size:"sm"})};re(Be,Xe=>{e(Ne)?Xe(Lt):Xe(pt,-1)})}s(we,ze)},$$slots:{default:!0}})}var D=p(j,2);{let te=i(()=>!xe()||Q()),we=i(()=>d.editor_fileViewer_download_tooltip());Fe(D,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(te)},get title(){return e(we)},children:(Te,ze)=>{Qe(Te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var T=p(D,2),q=S(T,!0);P(f);var V=p(f,2),Z=S(V);P(a),C(te=>{g(q,e(B)),or(V,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(V,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(Z,"src",te),rt(Z,"alt",e(B)),yt(Z,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(z)??""}deg); transition: transform 0.2s;`)},[()=>K()]),vt("pointerdown",V,w),vt("pointermove",V,Ve),vt("pointerup",V,l),tt("pointercancel",V,l),tt("lostpointercapture",V,l),s(t,a)},$e=t=>{var a=Xa(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let V=i(()=>!xe()||Q()),Z=i(()=>d.editor_fileViewer_download_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(V)},get title(){return e(Z)},children:(te,we)=>{Qe(te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var j=p(h,2),D=S(j,!0);P(f);var T=p(f,2),q=S(T);P(a),C(V=>{g(D,e(B)),or(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(T,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(q,"src",V),rt(q,"alt",e(B)),yt(q,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>he()]),vt("pointerdown",T,w),vt("pointermove",T,Ve),vt("pointerup",T,l),tt("pointercancel",T,l),tt("lostpointercapture",T,l),s(t,a)},fe=t=>{const a=i(le);var f=je(),_=ue(f);mr(_,()=>ie()+e(a),h=>{Pr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return xe()},get downloading(){return Q()},onDownload:ee})}),s(t,f)},nt=t=>{var a=Ya(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=R(h),D=p(j);P(h),P(a),C((T,q)=>{g(_,e(B)),rt(j,"src",T),g(D,` ${q??""}`)},[()=>K(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,a)},$t=t=>{var a=Ga(),f=p(R(a),2),_=S(f,!0),h=p(f,2);{let j=i(()=>!xe()||Q());Fe(h,{size:"sm",variant:"secondary",onclick:ee,get disabled(){return e(j)},children:(D,T)=>{var q=Za(),V=ue(q);Qe(V,{get icon(){return Tt},size:"sm",class:"mr-2"});var Z=p(V);C(te=>g(Z,` ${te??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(D,q)},$$slots:{default:!0}})}P(a),C(j=>g(_,j),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},ct=t=>{{let a=i(()=>it($().toString()));Yt(t,{get value(){return e(a)},language:"json",get fileName(){return ie()},lineNumbers:!0,readOnly:!0})}},ut=t=>{const a=i(()=>Je($().toString()));var f=ro(),_=R(f),h=R(_),j=R(h);Pt(j,23,()=>e(a)[0]||[],(T,q)=>`header-${q}-${T}`,(T,q)=>{var V=Qa(),Z=S(V,!0);C(()=>g(Z,e(q))),s(T,V)}),P(j),P(h);var D=p(h);Pt(D,23,()=>e(a).slice(1),(T,q)=>`row-${q}`,(T,q,V)=>{var Z=to();Pt(Z,23,()=>e(q),(te,we)=>`cell-${e(V)}-${we}`,(te,we)=>{var Te=eo(),ze=S(Te,!0);C(()=>g(ze,e(we))),s(te,Te)}),P(Z),s(T,Z)}),P(D),P(_),P(f),s(t,f)},kt=t=>{var a=ao(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),C(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_archive_label()]),s(t,a)},Vt=t=>{var a=oo(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),C(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_binary_label()]),s(t,a)},It=t=>{{let a=i(()=>$().toString());Yt(t,{get value(){return e(a)},get language(){return Ce()},get fileName(){return ie()},lineNumbers:!0,highlightActiveLine:!0})}};re(Pe,t=>{e(N)==="image"?t(Ke):e(N)==="svg"?t($e,1):e(N)==="video"?t(fe,2):e(N)==="audio"?t(nt,3):e(N)==="pdf"?t($t,4):e(N)==="json"?t(ct,5):e(N)==="csv"?t(ut,6):e(N)==="archive"?t(kt,7):e(N)==="binary"?t(Vt,8):t(It,-1)})}return P(ge),s(Y,ge),Et(Ge)}Nr(["pointerdown","pointermove","pointerup"]);const no=/access denied|permission denied|outside (?:the )?workspace/i,so=/file not found|no such file or directory/i;function lo(Y){return no.test(Y)?"access-denied":Y===d.files_read_notFound_error()||so.test(Y)?"not-found":"generic"}function co(Y){switch(Y){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var uo=k("<!> <!>",1),fo=k("<!> <!> <!>",1),vo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),fr=k('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),po=k('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),vr=k('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),go=k('<div class="flex items-center gap-3"><!> <!></div>'),mo=k('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),_o=k('<p class="text-xs"> </p>'),ho=k("<li><!></li>"),wo=k('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),bo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),xo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),yo=k('<div class="h-full overflow-auto p-4"><!></div>');function Po(Y,x){if(new.target)return Mt({component:Po,...Y});zt(x,!0);const Ie=()=>be($e,"$workspace",z),at=()=>be(K,"$fileContentStore",z),ie=()=>be(le,"$fileLoadingStore",z),$=()=>be(he,"$fileSavingStore",z),ne=()=>be(U,"$fileErrorStore",z),Ce=()=>be(de,"$fileNotFoundCandidatesStore",z),Se=()=>be(X,"$isFileBinaryStore",z),xe=()=>be(ee,"$isFileDirtyStore",z),_e=()=>be(ot,"$fileLastUpdatedStore",z),Q=()=>be(it,"$ftChanges$",z),He=()=>be(Ke,"$gutterRead$",z),N=()=>be(De,"$lineWrapping",z),B=()=>be(We,"$diffIndicators",z),se=()=>be(ge,"$rootMediaPreview",z),[z,Ee]=Gt(),Ne=r=>{var n=uo(),I=ue(n);{var F=pe=>{var Le=je(),Oe=ue(Le);St(Oe,()=>Dt,(ft,_t)=>{_t(ft,{get icon(){return $a},get label(){return e(_)},disabled:!0})}),s(pe,Le)};re(I,pe=>{!e(te)&&!e(l)&&!e(t)&&pe(F)})}var ve=p(I,2);{var Re=pe=>{{let Le=i(()=>!e(Ct)||!e(V)),Oe=i(()=>!e(l)&&(!e(Ct)||!e(V)));ja(pe,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Ct)},get previewEnabled(){return e(V)},onTogglePreview:()=>u(V,!e(V)),get showWrap(){return e(Le)},get wrapEnabled(){return N()},onToggleWrap:()=>A.dispatch(Gr()),get showDiff(){return e(Oe)},get diffEnabled(){return B()},onToggleDiff:()=>A.dispatch(Zr())})}};re(ve,pe=>{o().filePath&&!e(te)&&!e(t)&&pe(Re)})}s(r,n)},ye=r=>{var n=je(),I=ue(n);{var F=ve=>{var Re=fo(),pe=ue(Re);{var Le=Ae=>{var Ye=je(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_goToChanges_tooltip());St(lt,()=>Dt,(wt,bt)=>{bt(wt,{get icon(){return Ia},get label(){return e(ht)},onclick:Tr})})}s(Ae,Ye)};re(pe,Ae=>{e(kr)&&Ae(Le)})}var Oe=p(pe,2);{var ft=Ae=>{var Ye=je(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_downloadFile_label()),wt=i(()=>!e(gt)||e(st));St(lt,()=>Dt,(bt,Nt)=>{Nt(bt,{get icon(){return Tt},get label(){return e(ht)},onclick:Ft,get disabled(){return e(wt)}})})}s(Ae,Ye)};re(Oe,Ae=>{e(Be)&&Ae(ft)})}var _t=p(Oe,2);{let Ae=i(()=>d.layout_fileTab_deleteFile_tooltip());St(_t,()=>Dt,(Ye,lt)=>{lt(Ye,{get icon(){return ka},get label(){return e(Ae)},onclick:Rr,destructive:!0})})}s(ve,Re)};re(I,ve=>{o().filePath&&!e(te)&&!e(l)&&ve(F)})}s(r,n)},De=za(),We=Ea();let o=ae(x,"tab",7),c=ae(x,"workspaceId",7),M=ae(x,"isActive",7),m=ae(x,"isPanelFocused",7);ke(()=>{const r=c();if(!(!M()||!r||e(w)))return A.dispatch(Jr(r,"files")),()=>A.dispatch(Kr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),Ve=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?_a(o().filePath,e(w)):o().filePath),E=Wr(e(y));ke(()=>{E.set(e(y))});const K=na(c(),E),le=sa(c(),E),he=la(c(),E),U=da(c(),E),de=ca(c(),E),X=ua(c(),E),ee=dr(c(),E),ot=fa(c(),E),it=va(c()),Je=ia(),Ge=crypto.randomUUID(),ge=yr(Ge),Pe=`file-gutter:${crypto.randomUUID()}`,Ke=pa(c(),Pe),$e=ga(c()),fe=i(()=>Ie()?.worktreePath||Ie()?.repositoryPath||Ie()?.path||null),nt=i(at),$t=i(ie),ct=i($),ut=i(ne),kt=i(()=>e(ut)?lo(e(ut)):"generic"),Vt=5,It=i(()=>(Ce()??[]).slice(0,Vt)),t=i(Se),a=i(xe),f=i(_e),_=i(()=>e(ct)?d.ui_saveIndicator_saving_tooltip():e(a)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let h=O(null),j=O(Br([])),D=O(null),T=O(void 0),q=O(void 0),V=O(!0);ke(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(q)||(u(q,n,!0),u(T,{line:r},!0),u(V,!1))});const Z=i(()=>e(w)?cr(o().filePath,e(Ve)):null),te=i(()=>e(w)?!e(Z):!!(o().filePath&&(Ta(o().filePath)||e(fe)&&Ra(o().filePath,e(fe))))),we=i(()=>o().filePath&&e(fe)?Kt(o().filePath)?o().filePath:`${e(fe)}/${o().filePath}`:null),Te=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),ze=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Be=i(()=>c()&&/^[A-Za-z0-9._-]+$/.test(c())?cr(o().filePath,e(fe)):null),Lt=i(()=>!e(w)&&e(Be)?e(Be).split("/").slice(0,-1).join("/"):void 0),pt=i(()=>e(Te)||e(ze)?e(Be):null),Xe=i(()=>e(w)&&e(ze)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);ke(()=>{if(!M()||!e(w)||!e(Z)||!e(Xe))return;const r=crypto.randomUUID();return A.dispatch(wr(Ge,r,c(),e(Z),{gitRootId:e(w),mimeType:e(Xe)})),()=>A.dispatch(br(Ge,r))});let st=O(!1);const gt=i(()=>!!e(Be)&&!e($t)&&(!e(ze)||e(D)===e(Be))),Qt=i(()=>e(D)&&c()?`workspace-file://${c()}/${e(D).split("/").map(encodeURIComponent).join("/")}`:null),At=i(()=>o().filePath?ta(o().filePath):"plaintext"),Ct=i(()=>e(At)==="markdown");ke(()=>{if(!M()||e(Te)||e(w))return;const r=e(pt),n=o().filePath,I=c(),F=o().id;if(u(D,null),!r||!n||!I)return;let ve=!1;const Re=()=>!ve&&c()===I&&o().id===F&&o().filePath===n;return(async()=>{let pe=!1;try{pe=(await ha("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Re())return;if(pe){u(D,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(D,r,!0);return}const{candidates:Le,truncated:Oe}=await Da(I,r);if(Re()){if(!Oe&&Le.length===1){A.dispatch(ir(I,n,Le[0],F));return}u(D,r,!0)}})(),()=>{ve=!0}});function $r(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const mt=i(()=>e(l)||!o().filePath?null:Q().find(r=>$r(r,o().filePath))??null),kr=i(()=>!!e(mt));ke(()=>{if(e(l))return;const r=c(),n=o().filePath,I=e(fe);return()=>{if(!r||!n)return;const F=Ht.select(A.state,r,n);if(F?.kind!=="editable-text")return;const ve=qt(F.localContent),Re=dr.select(A.state,r,n),pe=Kt(n)?n:I?`${I}/${n}`:null;Re&&pe&&A.dispatch(nr(r,n,pe,ve))}}),ke(()=>{const r=o().filePath,n=e(we),I=c();if(!M())return;const F=!e(w)&&!!r&&Kt(r)&&!e(fe);r&&I&&!e(te)&&!e(ze)&&!e(Te)&&!F&&(e(w)&&e(Z)&&e(y)?A.dispatch(sr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(Z)}})):A.dispatch(sr(I,r,n??r)))});function Ir(){return e(nt)??""}function Cr(r){e(l)||e(t)||!o().filePath||!c()||!e(we)||A.dispatch(oa(c(),o().filePath,qt(r)))}function Fr(){if(e(l)||e(t)||!o().filePath||!e(we)||e(nt)===null||e(ct))return;const r=Ht.select(A.state,c(),o().filePath);r?.kind==="editable-text"&&A.dispatch(nr(c(),o().filePath,e(we),qt(r.localContent)))}function Sr(r){const n=o().filePath;!n||!c()||(A.dispatch(aa(c(),n)),A.dispatch(ir(c(),n,r,o().id)))}ke(()=>{const r=o().filePath,n=e(mt);if(!r||!n){u(j,[],!0);return}if(!M())return;const I=c(),F=crypto.randomUUID();return A.dispatch(Xr(I,Pe,F,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Yr(I,Pe,F))}}),ke(()=>{const r=He(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(F=>F.file===o().filePath)??n[0];u(j,I?Ma(I.chunks.map(F=>({oldStart:F.oldStart,oldLines:F.oldLines,newStart:F.newStart,newLines:F.newLines,lines:F.lines.map(ve=>(ve.type===lr.Addition?"+":ve.type===lr.Deletion?"-":" ")+ve.content)}))):[],!0)});function Dr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Re=>Or(r,Va(Re),n);if(I("editor.save")){r.preventDefault(),e(a)&&!e(ct)&&Fr();return}const F=I("editor.undo")?"undo":I("editor.redo")?"redo":I("editor.toggle-task-list")?"toggle-task-list":I("editor.copy")?"copy":I("editor.select-all")?"select-all":null;if(!F||e(l)&&F!=="copy"&&F!=="select-all")return;F!=="toggle-task-list"&&e(h)?.runShortcut(F)&&r.preventDefault()}function Tr(r){if(!o().filePath||!e(mt))return;const n=r?.metaKey||r?.ctrlKey||!1,F=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ra(c(),e(mt),{filePath:o().filePath,changeId:e(mt).id,openInAdjacentPanel:n,sourcePanelId:F}))}async function Ft(){const r=e(Be);if(!(e(l)||!r||!c()||!e(gt)||e(st))){u(st,!0);try{const n=await ma(c(),r,e(fe));!n?.success&&!n?.canceled&&Jt.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{Jt.error(d.layout_fileTab_downloadFailed_error())}finally{u(st,!1)}}}function Rr(){const r=e(we);if(e(l)||!o().filePath||!c()||!r)return;const n=Qr(Ht.select(A.state,c(),o().filePath));if(!n){Jt.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(ea(c(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}ke(()=>{if(!Je||!M())return;const r={isDirty:!e(l)&&e(a),isSaving:!e(l)&&e(ct)};pr(()=>{Je.registerActions({display:Ne,actions:ye}),Je.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),oe()},get workspaceId(){return c()},set workspaceId(r){c(r),oe()},get isActive(){return M()},set isActive(r){M(r),oe()},get isPanelFocused(){return m()},set isPanelFocused(r){m(r),oe()},$set:Ut,$on:(r,n)=>jt(x,r,n)},er=je();tt("keydown",gr,r=>M()&&Dr(r));var Ur=ue(er);{var jr=r=>{var n=je(),I=ue(n);mr(I,()=>o().filePath,F=>{var ve=je(),Re=ue(ve);{var pe=b=>{var v=vo(),L=R(v),H=S(L,!0),W=p(L,2),Me=S(W,!0);P(v),C(G=>{g(H,G),g(Me,o().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Le=b=>{var v=je(),L=ue(v);{var H=W=>{Zt(W,{get workspaceId(){return c()},get filePath(){return e(Z)},get gitRootId(){return e(w)}})};re(L,W=>{M()&&W(H)})}s(b,v)},Oe=b=>{var v=je(),L=ue(v);{var H=G=>{var J=fr(),ce=R(J),Ue=S(ce,!0);P(J),C(me=>g(Ue,me),[()=>d.layout_fileTab_errorLoading_label()]),s(G,J)},W=G=>{Rt(G,{get filePath(){return o().filePath},get sourceUrl(){return se().url},allowDownload:!1})},Me=G=>{var J=po(),ce=R(J),Ue=S(ce,!0);P(J),C(me=>g(Ue,me),[()=>d.layout_fileTab_preparing_label()]),s(G,J)};re(L,G=>{se()?.error?G(H):se()?.url?G(W,1):G(Me,-1)})}s(b,v)},ft=b=>{var v=je(),L=ue(v);{var H=W=>{Zt(W,{get workspaceId(){return c()},get filePath(){return e(pt)}})};re(L,W=>{M()&&W(H)})}s(b,v)},_t=b=>{var v=fr(),L=R(v),H=S(L,!0);P(v),C(W=>g(H,W),[()=>d.file_pdf_load_error()]),s(b,v)},Ae=b=>{{let v=i(()=>e(D)??o().filePath),L=i(()=>!e(l)&&e(gt));Rt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Qt)},onDownload:Ft,get allowDownload(){return e(L)},get downloading(){return e(st)}})}},Ye=b=>{var v=vr(),L=R(v),H=S(L,!0);P(v),C(W=>g(H,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)},lt=b=>{var v=mo(),L=R(v);Pt(L,20,()=>[...Array(20).keys()],H=>H,(H,W)=>{var Me=go(),G=R(Me);ur(G,{class:"h-3 w-8 shrink-0"});var J=p(G,2);ur(J,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Me),s(H,Me)}),P(L),P(v),s(b,v)},ht=b=>{var v=bo(),L=R(v),H=S(L,!0),W=p(L,2),Me=S(W,!0),G=p(W,2);{var J=me=>{var qe=_o(),dt=S(qe,!0);C(()=>g(dt,e(ut))),s(me,qe)};re(G,me=>{e(kt)==="generic"&&me(J)})}var ce=p(G,2);{var Ue=me=>{var qe=wo(),dt=ue(qe),Wt=S(dt,!0),tr=p(dt,2);Pt(tr,20,()=>e(It),xt=>xt,(xt,rr)=>{var Bt=ho(),Er=R(Bt);Fe(Er,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Sr(rr),children:(Vr,$o)=>{Ze();var ar=et();C(()=>g(ar,rr)),s(Vr,ar)},$$slots:{default:!0}}),P(Bt),s(xt,Bt)}),P(tr),C(xt=>g(Wt,xt),[()=>d.layout_fileTab_didYouMean_label()]),s(me,qe)};re(ce,me=>{e(It).length>0&&me(Ue)})}P(v),C(me=>{g(H,me),g(Me,o().filePath)},[()=>co(e(kt))]),s(b,v)},wt=b=>{var v=xo(),L=R(v),H=S(L,!0),W=p(L,2),Me=S(W,!0),G=p(W,2);{var J=ce=>{{let Ue=i(()=>!e(gt)||e(st));Fe(ce,{variant:"secondary",size:"sm",onclick:Ft,get disabled(){return e(Ue)},children:(me,qe)=>{Ze();var dt=et();C(Wt=>g(dt,Wt),[()=>d.layout_fileTab_downloadFile_label()]),s(me,dt)},$$slots:{default:!0}})}};re(G,ce=>{!e(l)&&e(Be)&&ce(J)})}P(v),C(ce=>{g(H,ce),g(Me,o().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(b,v)},bt=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var L=je(),H=ue(L);{var W=J=>{{let ce=i(()=>o().filePath||""),Ue=i(()=>!e(l)&&e(gt));Rt(J,{get filePath(){return e(ce)},get fileContent(){return e(nt)},get language(){return e(At)},get isBinary(){return e(t)},onDownload:Ft,get allowDownload(){return e(Ue)},get downloading(){return e(st)}})}},Me=J=>{var ce=yo(),Ue=R(ce);Ua(Ue,{get content(){return e(nt)},get workspaceId(){return c()},get relativeMediaBase(){return e(Lt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(ce),s(J,ce)},G=J=>{var ce=Ir,Ue=Cr;{let me=i(()=>B()?e(j):[]);_r(Yt(J,{get value(){return ce()},set value(qe){Ue(qe)},get language(){return e(At)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return c()},get filePath(){return o().filePath},get lineWrapping(){return N()},get lineChanges(){return e(me)},get jumpTo(){return e(T)},get externalContentVersion(){return e(f)},get isPanelFocused(){return m()}}),qe=>u(h,qe,!0),()=>e(h))}};re(H,J=>{e(v)?J(W):e(Ct)&&e(V)?J(Me,1):J(G,-1)})}s(b,L)},Nt=b=>{var v=vr(),L=R(v),H=S(L,!0);P(v),C(W=>g(H,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)};re(Re,b=>{e(te)?b(pe):e(w)&&e(Te)&&e(Z)?b(Le,1):e(w)&&e(ze)?b(Oe,2):e(Te)&&e(pt)?b(ft,3):e(Te)?b(_t,4):e(Qt)?b(Ae,5):e(ze)?b(Ye,6):e($t)?b(lt,7):e(ut)?b(ht,8):e(t)?b(wt,9):e(nt)!==null?b(bt,10):b(Nt,-1)})}s(F,ve)}),s(r,n)};re(Ur,r=>{o().filePath&&r(jr)})}s(Y,er);var zr=Et(Mr);return Ee(),zr}export{Po as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Oe=Object.defineProperty;var ke=t=>{throw TypeError(t)};var Be=(t,e,s)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var O=(t,e,s)=>Be(t,typeof e!="symbol"?e+"":e,s),ye=(t,e,s)=>e.has(t)||ke("Cannot "+s);var l=(t,e,s)=>(ye(t,e,"read from private field"),s?s.call(t):e.get(t)),k=(t,e,s)=>e.has(t)?ke("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s);var Y=(t,e,s)=>(ye(t,e,"access private method"),s);import{t as oe,a_ as ue,by as de,b as ce,bt as Re,bq as i,br as De}from"./
|
|
1
|
+
var Oe=Object.defineProperty;var ke=t=>{throw TypeError(t)};var Be=(t,e,s)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var O=(t,e,s)=>Be(t,typeof e!="symbol"?e+"":e,s),ye=(t,e,s)=>e.has(t)||ke("Cannot "+s);var l=(t,e,s)=>(ye(t,e,"read from private field"),s?s.call(t):e.get(t)),k=(t,e,s)=>e.has(t)?ke("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s);var Y=(t,e,s)=>(ye(t,e,"access private method"),s);import{t as oe,a_ as ue,by as de,b as ce,bt as Re,bq as i,br as De}from"./C_S5gHJT.js";import{ao as N,aZ as He,aL as Je,bh as je,c9 as m,aD as b,bH as w,bs as le,a7 as he,ay as ee,W as D,bn as fe,bo as Ge,bS as Ve,aA as o,a5 as Se,bf as We,bA as Pe,aB as Le,b_ as Fe,aC as ge}from"./DYhIMPy1.js";import{c as Ue}from"./CrHvmPQ7.js";import{i as Ze,v as Ke,l as Qe}from"./C2-OrDhN.js";import{H as Xe}from"./H_J_o8pe.js";import{s as Ce}from"./CiOA93tK.js";import{h as Ie,av as Ye,bM as se,l as $e,ad as et,aE as _e,aF as we,a$ as tt,bh as rt,aS as nt,aT as xe,aJ as C,bn as st}from"./41Ipz5fb.js";import"./BWYr8u9e.js";import{i as at}from"./BeP4UORy.js";var it="font-weight: bold",ot="font-weight: normal";function qe(t){N?console.warn(`%c[svelte] state_snapshot_uncloneable
|
|
2
2
|
%c${t?`The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
|
|
3
3
|
|
|
4
4
|
${t}`:"Value cannot be cloned with `$state.snapshot` — the original value was returned"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t,s as r}from"./
|
|
1
|
+
import{c as t,s as r}from"./CgKLWzRK.js";import{b as a}from"./DnLhVTI5.js";var s=a(e=>`${r(e)}
|
|
2
2
|
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./CCOrMVtA.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{n as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{Ik as c,uW as w}from"./
|
|
1
|
+
import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{Ik as c,uW as w}from"./C5wvNL0Z.js";import{i as W,c as s,n as u,b as m}from"./B60bH8TA.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return b(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as b,_ as C}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Bv1IZ9jZ.js","/app/immutable/chunks/vAB9kLHE.js","/app/immutable/chunks/C-g-ql7J.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/C_S5gHJT.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C2-OrDhN.js","/app/immutable/chunks/CiOA93tK.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/41Ipz5fb.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CrHvmPQ7.js","/app/immutable/chunks/BtpLmNi5.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DyI4Jpqs.js","/app/immutable/chunks/BeRQmB1S.js","/app/immutable/chunks/C5wvNL0Z.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DBhGb_Ln.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DANPHJjT.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/iBvoqrfw.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DRsuOWdV.js","/app/immutable/chunks/cIVqD9Xn.js","/app/immutable/chunks/CZHiAprx.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D4t8kT73.js","/app/immutable/chunks/C4E6vJ_G.js","/app/immutable/chunks/DwPpQNAK.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B60bH8TA.js","/app/immutable/chunks/aOcuYL1F.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as b,_ as C}from"./C_S5gHJT.js";import{g as f,Ik as a,db as P,GI as S,yn as q,EU as N,v2 as R,qv as W,uC as H,Kn as U}from"./C5wvNL0Z.js";import{d as I}from"./DRsuOWdV.js";import{bb as V}from"./41Ipz5fb.js";import{parseIntentLink as j}from"./jPHMDY20.js";import{k as y}from"./vAB9kLHE.js";import"./DYhIMPy1.js";import"./C2-OrDhN.js";import"./CiOA93tK.js";import"./ChTqQfQN.js";import"./BeRQmB1S.js";import{I as B,q as x,H as L}from"./Bqxl7Ok8.js";import{dr as D}from"./C4E6vJ_G.js";import{p as E,o as K,h as $}from"./4T3lottW.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:x.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await C(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./Bv1IZ9jZ.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||x.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await C(async()=>{const{openMessage:h}=await import("./iBvoqrfw.js");return{openMessage:h}},__vite__mapDeps([27,28,29,30,4,3,17,18,19,20,5,7,21,13,2,9,6,8,10,11,12,14,31,32,33,34,35,23,36,15,37,38,39]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as m}from"./
|
|
1
|
+
import{I as m}from"./C-g-ql7J.js";const s=m.BACKEND,T=1e4;function d(t,e){return t?t.status==="connected"||t.daemonStartup||t.sidecarStartupFailed?!0:e&&(t.status==="disconnected"||(t.reconnectAttempts??0)>0):!1}function A(t,e={}){const c=e.api!==void 0?e.api:typeof window<"u"?window.electronAPI:void 0,a=e.timeoutMs??T,l=e.settleOnConnectFailure??!1;if(!c)return t(),()=>{};const r=c;let u=!1,n=null,i=null;const S=f=>{d(f,l)&&o()};function o(){u||(u=!0,n&&(clearTimeout(n),n=null),i&&(r.offById(s.STATUS,i),i=null),t())}return i=r.on(s.STATUS,S),n=setTimeout(o,a),r.invoke(s.GET_STATUS).then(f=>{d(f,l)&&o()}).catch(()=>{}),()=>{u||(u=!0,n&&(clearTimeout(n),n=null),i&&(r.offById(s.STATUS,i),i=null))}}function C(t){t&&(t.classList.add("mounted"),t.addEventListener("transitionend",()=>t.remove(),{once:!0}))}function I(t,e){return t?A(()=>C(t),e):()=>{}}export{C as d,A as s,I as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ik as o,b1 as d}from"./
|
|
1
|
+
import{Ik as o,b1 as d}from"./C5wvNL0Z.js";const f=o.createSelector((t,r)=>t.uiHighlight.activeById[r.trim()]??0),m=o.createSelector((t,r)=>t.uiHighlight.durationMsById[r.trim()]),n="ui-highlight-pulse-ring";function u(t){return(t??"").trim()}function T(t,r={}){let s=u(r.id??t.dataset.highlightId),a=0,l;function c(){t.classList.remove(n)}function g(e){t.classList.remove(n),t.offsetWidth,t.classList.add(n),l&&clearTimeout(l),l=setTimeout(c,e??d)}function h(){if(!s)return;let e;try{e=o.state}catch{return}const i=f.select(e,s);i>0&&i!==a&&(a=i,g(m.select(e,s)))}const I=setInterval(h,100);return h(),{update(e={}){const i=u(e.id??t.dataset.highlightId);i!==s&&(s=i,a=0,c(),h())},destroy(){clearInterval(I),l&&clearTimeout(l),c()}}}export{T as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r}from"./Bl-MloT_.js";import{w as a,I as e}from"./C-g-ql7J.js";import{Ik as s}from"./C5wvNL0Z.js";import{c as t}from"./xIEypq_8.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ik as g,rl as b,HZ as S}from"./
|
|
1
|
+
import{Ik as g,rl as b,HZ as S}from"./C5wvNL0Z.js";import{V as A,bk as _}from"./rJUllCO_.js";import{bv as k}from"./C4E6vJ_G.js";import{bM as y,bI as w}from"./BequUoOf.js";import{bo as n}from"./C_S5gHJT.js";import{t as P}from"./DyI4Jpqs.js";const z=g.createSelector(e=>e.backgroundAgentSettings.defaultModel),B=g.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=g.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=g.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),j=g.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["labs","Labs","Experimental feature switches.","advanced"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function F(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const U=g.createSelector(e=>{const t=new Map,i=(s,c)=>{const d=t.get(s)??new Set;d.add(c),t.set(s,d)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),d=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>d&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:d,path:c}):d?n.settings_providers_inUseSource_label({reason:l,source:d}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
|
|
2
2
|
`)]))});g.createSelector((e,t)=>U.select(e)[t]??null);const H=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],q=H.map(({id:e})=>e);export{q as T,H as a,G as b,j as c,B as d,W as e,U as f,F as i,R as r,z as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var w=Object.defineProperty;var b=(o,s,a)=>s in o?w(o,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[s]=a;var g=(o,s,a)=>b(o,typeof s!="symbol"?s+"":s,a);import{b as I}from"./
|
|
1
|
+
var w=Object.defineProperty;var b=(o,s,a)=>s in o?w(o,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[s]=a;var g=(o,s,a)=>b(o,typeof s!="symbol"?s+"":s,a);import{b as I}from"./C-g-ql7J.js";import{o as t,_ as c,n as f,s as e,c as r,b as p,r as i,a as n,u as y}from"./CIyUrgF0.js";import{a as E}from"./BdWqymET.js";const l=t({id:e(),name:e().optional(),title:e(),branch:e(),baseRef:e().optional(),baseCommitSha:e().optional(),initialPrompt:e().optional(),status:c(["active","archived","deleted","initializing"]),createdAt:e(),updatedAt:e(),lastActivity:e().optional(),tags:p(e()).optional(),path:e().optional(),repositoryPath:e().optional(),repositoryOwner:e().optional(),repositoryName:e().optional(),worktreePath:e().optional(),scope:e().optional(),isRemote:r().optional(),prUrl:e().optional(),prNumber:f().optional(),prStatus:c(["open","closed","merged","draft"]).optional(),checkoutMode:c(["cow","worktree","direct"]).optional(),defaultAgentPlacement:I.optional()}),v=t({id:e(),workspaceId:e(),title:e(),content:e(),contentType:c(["markdown","plaintext","code"]),visibility:c(["private","workspace","public"]),author:e(),authorType:c(["user","agent","system"]),createdAt:e(),updatedAt:e(),tags:p(e()).optional(),metadata:i(e(),n()).optional(),parentId:e().optional(),threadId:e().optional()}),q=t({path:e(),name:e(),owner:e().optional(),githubUrl:e().optional(),addedAt:e(),lastUsedAt:e()});t({workspaceId:e(),workspacePath:e(),name:e(),agentId:e().optional(),model:e().optional(),provider:e().optional(),agentType:e().optional(),behaviorPrompt:e().optional(),specialistName:e().optional(),roleReminder:e().optional(),systemPrompt:e().optional(),rules:e().optional(),initialMessage:e().optional(),contextReferences:p(n()).optional(),metadata:i(e(),n()).optional()}),t({agent:n(),sessionId:e()}),t({agentId:e(),content:e(),contextReferences:p(n()).optional(),metadata:i(e(),n()).optional()}),t({messageId:e(),status:c(["sent","queued","failed"])}),t({title:e(),branch:e().optional(),baseRef:e().optional(),tags:p(e()).optional()}),t({workspace:l}),t({workspaceId:e(),title:e(),content:e(),contentType:c(["markdown","plaintext","code"]).optional(),tags:p(e()).optional(),metadata:i(e(),n()).optional()}),t({note:v}),t({sessionId:e(),context:i(e(),n())}),t({success:r()}),t({workspaceId:e()}),t({context:i(e(),n())}),t({sessionId:e()}),t({context:i(e(),n())}),t({}),t({success:r(),data:p(l).optional(),error:e().optional()}),y([e(),t({id:e()})]),t({success:r(),data:l.optional(),error:e().optional()}),t({workspaceId:e()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e(),title:e().optional(),baseCommitSha:e().optional(),worktreePath:e().optional(),gitInfo:t({branch:e().optional(),remote:e().optional()}).optional()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e()}),t({success:r(),error:e().optional()}),t({id:e()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e()}),t({success:r(),error:e().optional()}),t({workspaceId:e()}),e().nullable(),t({limit:f().optional()}),t({success:r(),data:p(q),error:e().optional()}),t({repository:e(),name:e().optional(),owner:e().optional(),githubUrl:e().optional()}),t({success:r()}),t({}),t({success:r()}),t({workspaceId:e(),gitInfo:t({branch:e().optional(),remote:e().optional(),status:e().optional()})}),t({success:r()}),t({workspaceId:e()}),t({settings:i(e(),n())}),t({workspaceId:e(),settings:i(e(),n())}),t({success:r()}),t({workspaceId:e()}),t({rules:e()}),t({path:e(),encoding:e().optional()}),t({success:r(),data:e().optional(),error:e().optional()}),t({path:e(),content:e(),encoding:e().optional()}),t({success:r(),error:e().optional()}),t({path:e()}),t({success:r(),exists:r().optional(),error:e().optional()}),t({path:e(),recursive:r().optional()}),t({success:r(),files:p(e()).optional(),error:e().optional()}),t({}),t({platform:e(),version:e(),arch:e()}),t({}),t({version:e()}),t({}),t({onBattery:r()});new E("TypeValidation");const k=new Map,u=new Map,m=new Map([["workspace:get-root",void 0],["auggie:get-user-info",void 0],["config:get",null],["config:set",{success:!1,error:"Legacy config store is not bridged to the daemon (renderer persistence uses localStorage)"}],["git:get-auto-commit-status",void 0],["debug:trigger-backend-resume",{success:!1,error:"The backend-resume debug trigger is not bridged in this build"}],["system:write-clipboard",{success:!1,error:"Clipboard IPC is not available in this build"}],["patch:apply",{ok:!1,error:"Applying patches is not available in this build"}],["patch:revert",{ok:!1,error:"Reverting patches is not available in this build"}],["reference:resolve",{ok:!1,error:"Code-reference resolution is not bridged to the daemon"}],["remote-fs:exists",{success:!1,error:"Remote SSH file access is not available in this build"}],["workspace:get-info",void 0]]),T=new Set(["terminal:created","workspace:updated","task:ready-tasks-changed","window:fullscreen","power:battery-changed"]),S=["terminal:professional:exit:"],_=new Map([["note-suggestion","legacy agent note-suggestion flow not ported — no producer"]]);function N(o){return T.has(o)?!0:S.some(s=>o.startsWith(s))}const h=new Set;class L extends Error{constructor(a){super(`No mock IPC handler registered for channel '${a}'. This build routes legacy renderer→main IPC through the in-memory mock router; an unbridged channel used to resolve undefined and silently corrupt the caller. Bridge the channel to the daemon in a seeder under src/store/renderer/seeders/ (see agent-ipc-bridge-seeder.ts), or — only if every caller legitimately tolerates absence — add it to UNBRIDGED_INVOKE_ALLOWLIST in src/shared/ipc-mock-router.ts with a justification.`);g(this,"channel");this.name="UnbridgedMockIpcChannelError",this.channel=a}}function O(o,s){k.set(o,s)}async function M(o,...s){const a=k.get(o);if(a)return await a(...s);if(m.has(o))return m.get(o);throw new L(o)}function U(o,s){return!N(o)&&!_.has(o)&&!h.has(o)&&(h.add(o),console.error(`[ipc-mock-router] Listener registered on event channel '${o}' that NO production emitter delivers — it will never fire (silent-gap class). Wire an emitter (a seeder under src/store/renderer/seeders/ or the daemon-events-bridge legacy relay) and declare it in EMITTED_MOCK_IPC_EVENT_CHANNELS, or — only if the listener legitimately stays silent in this build — justify an UNEMITTED_LISTENER_ALLOWLIST entry in src/shared/ipc-mock-router.ts.`)),C(o,s)}function C(o,s){let a=u.get(o);return a||(a=new Set,u.set(o,a)),a.add(s),()=>{const d=u.get(o);d&&(d.delete(s),d.size===0&&u.delete(o))}}function D(o,s){const a=u.get(o);if(a)for(const d of[...a])d(s)}async function W(o,...s){return M(o,...s)}export{U as a,D as e,W as i,O as r};
|