@intent-hq/web 2.386.0 → 2.387.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{DfgH7-YK.js → -hGB5JIm.js} +1 -1
- package/web/app/immutable/chunks/{D5xlMOwU.js → 0Kw0mmSW.js} +1 -1
- package/web/app/immutable/chunks/{Pyf1FzKM.js → 2S2jdRaL.js} +1 -1
- package/web/app/immutable/chunks/{BCFB88Wl.js → 4EMyw6Bc.js} +1 -1
- package/web/app/immutable/chunks/{DIWzdBfB.js → 4T0RCl9z.js} +1 -1
- package/web/app/immutable/chunks/{CJEwuNO9.js → 5j6plyZH.js} +1 -1
- package/web/app/immutable/chunks/{B9kUdNbG.js → 6NStP9u7.js} +1 -1
- package/web/app/immutable/chunks/{DbxqdYAO.js → 7lcZWflB.js} +3 -3
- package/web/app/immutable/chunks/{CUeOEnqq.js → 84z5wXrw.js} +1 -1
- package/web/app/immutable/chunks/{COBhx_l-.js → AXzVloaq.js} +1 -1
- package/web/app/immutable/chunks/{DDdsJrHq.js → AfZNmzF0.js} +1 -1
- package/web/app/immutable/chunks/{Dbr8gjWS.js → B-9zOddN.js} +1 -1
- package/web/app/immutable/chunks/{D2Tzo4Hp.js → B-bGycam.js} +1 -1
- package/web/app/immutable/chunks/{Bf_4e4N2.js → B0RPkrmZ.js} +1 -1
- package/web/app/immutable/chunks/{TXPMw3n4.js → B0tiGTFc.js} +1 -1
- package/web/app/immutable/chunks/{Bv_0mmoe.js → B1TtNV9x.js} +1 -1
- package/web/app/immutable/chunks/{BolJpU8l.js → B1lrKll_.js} +4 -4
- package/web/app/immutable/chunks/{DZjSAGjX.js → B2Bshsum.js} +1 -1
- package/web/app/immutable/chunks/{Di_ao8Rc.js → B7esq_NU.js} +1 -1
- package/web/app/immutable/chunks/{bojY7ttK.js → B9BALnhr.js} +1 -1
- package/web/app/immutable/chunks/{DxuwadpA.js → B9guVudk.js} +1 -1
- package/web/app/immutable/chunks/{BNJkKc31.js → B9iclnD1.js} +1 -1
- package/web/app/immutable/chunks/{ByZL9dMf.js → BAVqPace.js} +1 -1
- package/web/app/immutable/chunks/BC6tIXxU.js +1 -0
- package/web/app/immutable/chunks/{CfnXjWQL.js → BDSbC3H_.js} +1 -1
- package/web/app/immutable/chunks/{hRfDutUE.js → BEuhalzY.js} +1 -1
- package/web/app/immutable/chunks/{ico0GHoP.js → BGh7-lCM.js} +13 -13
- package/web/app/immutable/chunks/{fC3yz20p.js → BH3eRhvI.js} +1 -1
- package/web/app/immutable/chunks/{DOZ82gYM.js → BHqyzGtP.js} +1 -1
- package/web/app/immutable/chunks/{Dyx6ysl7.js → BIfjK4Wy.js} +1 -1
- package/web/app/immutable/chunks/{3Kr2ijlK.js → BJbm_MWC.js} +1 -1
- package/web/app/immutable/chunks/{BCiWc-GH.js → BJfXDnA-.js} +1 -1
- package/web/app/immutable/chunks/{3IpMTtMx.js → BKpfaDrr.js} +1 -1
- package/web/app/immutable/chunks/{CY0EK8Cm.js → BKqd3SpJ.js} +3 -3
- package/web/app/immutable/chunks/{BqCTtUhB.js → BLMhg4vm.js} +1 -1
- package/web/app/immutable/chunks/{DFKO8V-Y.js → BLhJfI63.js} +1 -1
- package/web/app/immutable/chunks/{9AJtSub0.js → BNDTLRE1.js} +1 -1
- package/web/app/immutable/chunks/{COsxNPUV.js → BOyRg328.js} +1 -1
- package/web/app/immutable/chunks/{BbWnSSTS.js → BP-cDE7g.js} +1 -1
- package/web/app/immutable/chunks/{CF_a5Llj.js → BP6IQXl5.js} +1 -1
- package/web/app/immutable/chunks/{DtQHtXEW.js → BQ8hOnRo.js} +1 -1
- package/web/app/immutable/chunks/{BCuI_zgX.js → BQhBnAuP.js} +1 -1
- package/web/app/immutable/chunks/{COSIRxZC.js → BQmS_6pd.js} +1 -1
- package/web/app/immutable/chunks/{Dpvv-9m3.js → BRRnx9NG.js} +1 -1
- package/web/app/immutable/chunks/{C8TrySMt.js → BSt1DBgt.js} +1 -1
- package/web/app/immutable/chunks/{DY5rw8pn.js → BUsnh1ZW.js} +1 -1
- package/web/app/immutable/chunks/{DNDJdxKs.js → BVYisuIY.js} +1 -1
- package/web/app/immutable/chunks/{DQvAX2eX.js → BWJopR_X.js} +1 -1
- package/web/app/immutable/chunks/{DXDbxM_W.js → BWmQYGJo.js} +1 -1
- package/web/app/immutable/chunks/{DhaHSPPQ.js → BWq8kRZa.js} +1 -1
- package/web/app/immutable/chunks/{C1La-Fme.js → B_5X6pL_.js} +1 -1
- package/web/app/immutable/chunks/{C6Wi6O6n.js → BaOiWDrc.js} +1 -1
- package/web/app/immutable/chunks/{Nrq0Uf9_.js → Bajx4HLb.js} +1 -1
- package/web/app/immutable/chunks/{i8jM24jD.js → Bbs1UlDC.js} +1 -1
- package/web/app/immutable/chunks/{TyVpf8MX.js → Bd8IVx5H.js} +1 -1
- package/web/app/immutable/chunks/{DAI6QH7D.js → Be5fV6fq.js} +1 -1
- package/web/app/immutable/chunks/{MoxNukrR.js → BevVqXi3.js} +1 -1
- package/web/app/immutable/chunks/{BYYtBM5R.js → Bf-yBg_f.js} +1 -1
- package/web/app/immutable/chunks/{0y7aytZM.js → BfQFKWzJ.js} +1 -1
- package/web/app/immutable/chunks/{BtMIAxno.js → BfhnpOE4.js} +1 -1
- package/web/app/immutable/chunks/{DU1c0itA.js → BgKaGgl0.js} +1 -1
- package/web/app/immutable/chunks/{D5A9atQX.js → BgV6mURq.js} +2 -2
- package/web/app/immutable/chunks/{DY1YVoxv.js → BhFMyG47.js} +1 -1
- package/web/app/immutable/chunks/{Df4a242o.js → Bj4IsLvN.js} +1 -1
- package/web/app/immutable/chunks/{DZSbMOPJ.js → BlaJXdkI.js} +2 -2
- package/web/app/immutable/chunks/{CFdI48b2.js → BmM9C7Gu.js} +1 -1
- package/web/app/immutable/chunks/{CGHwi-2H.js → BoGNoNFW.js} +1 -1
- package/web/app/immutable/chunks/{3LCOBHm6.js → BoUQWR1c.js} +1 -1
- package/web/app/immutable/chunks/{Cwg3XF5F.js → BoZ2kJyE.js} +1 -1
- package/web/app/immutable/chunks/{DBwdk2-0.js → BpNCDrL-.js} +1 -1
- package/web/app/immutable/chunks/{B1xM1EBM.js → BpPZlehu.js} +1 -1
- package/web/app/immutable/chunks/{Dde9Z_vp.js → BpXDXz8J.js} +1 -1
- package/web/app/immutable/chunks/{BPDyvu9A.js → BpiO5nnh.js} +1 -1
- package/web/app/immutable/chunks/{DX2U4Mz9.js → BpwKnO7b.js} +3 -3
- package/web/app/immutable/chunks/{CQ5BHnSj.js → Bq7euxCs.js} +1 -1
- package/web/app/immutable/chunks/{Bk14_fvY.js → BsCPiCkz.js} +1 -1
- package/web/app/immutable/chunks/{CGUVvS8r.js → Bsdq-idi.js} +1 -1
- package/web/app/immutable/chunks/{DEKjIPd8.js → Bstq-Mm1.js} +1 -1
- package/web/app/immutable/chunks/{DcMTwn77.js → Bt9izmhQ.js} +1 -1
- package/web/app/immutable/chunks/BtUFJg3H.js +1 -0
- package/web/app/immutable/chunks/{DxWgWHgi.js → BtchneSc.js} +1 -1
- package/web/app/immutable/chunks/{6SOEgr71.js → BteojGYq.js} +3 -3
- package/web/app/immutable/chunks/{DOir9M0E.js → Btsk8yXd.js} +1 -1
- package/web/app/immutable/chunks/{QA00-uqv.js → Bu67WlMm.js} +1 -1
- package/web/app/immutable/chunks/{aixoUWDq.js → BuXXIZt7.js} +1 -1
- package/web/app/immutable/chunks/{E8oicBhU.js → BudPFdIj.js} +1 -1
- package/web/app/immutable/chunks/{DJb2lMGn.js → BvjgIPau.js} +1 -1
- package/web/app/immutable/chunks/{Dh-HeAnQ.js → BxTCsbTV.js} +1 -1
- package/web/app/immutable/chunks/{maZzJmVw.js → C2zt__Wj.js} +1 -1
- package/web/app/immutable/chunks/{BdY8OnZP.js → C4JyfUH_.js} +1 -1
- package/web/app/immutable/chunks/{v7JbBbwR.js → C4S7j2UJ.js} +1 -1
- package/web/app/immutable/chunks/{DcLVN86K.js → C64UuXDx.js} +1 -1
- package/web/app/immutable/chunks/{h5ZeHogL.js → C7JeHEH2.js} +1 -1
- package/web/app/immutable/chunks/{Ksiiix3Q.js → C7ajdkO4.js} +1 -1
- package/web/app/immutable/chunks/{CM9GoLV5.js → C7dAe4yg.js} +1 -1
- package/web/app/immutable/chunks/{IG43rVtJ.js → C8guha5a.js} +1 -1
- package/web/app/immutable/chunks/{Bb8ARnaK.js → C9wBKZsV.js} +1 -1
- package/web/app/immutable/chunks/{BCVhFPNJ.js → CA_3gGLy.js} +1 -1
- package/web/app/immutable/chunks/{DaOKbar2.js → CB-znH8P.js} +2 -2
- package/web/app/immutable/chunks/{BIcof04i.js → CB2VKTMK.js} +1 -1
- package/web/app/immutable/chunks/{bIL0xbKX.js → CBbdbU2x.js} +1 -1
- package/web/app/immutable/chunks/{EQgYvydQ.js → CEap7Fwz.js} +1 -1
- package/web/app/immutable/chunks/{lSLkjC_I.js → CG28d89U.js} +1 -1
- package/web/app/immutable/chunks/{DgzMHcMD.js → CGPxDdZI.js} +1 -1
- package/web/app/immutable/chunks/{DeY70dof.js → CGdXewiA.js} +1 -1
- package/web/app/immutable/chunks/{C6afU4he.js → CHKOALDI.js} +1 -1
- package/web/app/immutable/chunks/{CdGl_2eX.js → CIWQMI37.js} +1 -1
- package/web/app/immutable/chunks/{BRPJcG-m.js → CIlqcFRn.js} +1 -1
- package/web/app/immutable/chunks/{DvnO7gWT.js → CKcb8dge.js} +3 -3
- package/web/app/immutable/chunks/{D9_wDL10.js → CLvqNeoi.js} +1 -1
- package/web/app/immutable/chunks/{DJJ2Xrlq.js → COVS9Crf.js} +1 -1
- package/web/app/immutable/chunks/{COS4Sgoi.js → CP7zJE2f.js} +2 -2
- package/web/app/immutable/chunks/{CaMRSd1-.js → CPdyCf2B.js} +1 -1
- package/web/app/immutable/chunks/{Cpgxz5sK.js → CQU55hIk.js} +1 -1
- package/web/app/immutable/chunks/{Dh438xC0.js → CSdAdmLZ.js} +2 -2
- package/web/app/immutable/chunks/{zFAkpaJn.js → CTowDLQa.js} +1 -1
- package/web/app/immutable/chunks/{BVyOECUU.js → CV5qbjYN.js} +1 -1
- package/web/app/immutable/chunks/{CFB2mNds.js → CV7mOfKN.js} +2 -2
- package/web/app/immutable/chunks/{-8AxW0IA.js → CXCilPkm.js} +3 -3
- package/web/app/immutable/chunks/{HcbkpXC1.js → CXkLsKgj.js} +2 -2
- package/web/app/immutable/chunks/{BXHbm15d.js → CZB2ndi9.js} +1 -1
- package/web/app/immutable/chunks/{CjLfgoGI.js → CZex5Cac.js} +1 -1
- package/web/app/immutable/chunks/{7EQMYysM.js → C_-0Y1ed.js} +1 -1
- package/web/app/immutable/chunks/{D5evzUZd.js → Caqb9E2M.js} +1 -1
- package/web/app/immutable/chunks/{CTTICX_5.js → Ccr7s0GQ.js} +1 -1
- package/web/app/immutable/chunks/CeeeYtIE.js +1 -0
- package/web/app/immutable/chunks/{De0cdeOU.js → CfIVswBm.js} +1 -1
- package/web/app/immutable/chunks/{DQBViT5w.js → CfK5RUHZ.js} +1 -1
- package/web/app/immutable/chunks/{CvSLeFQo.js → CfaCrhAh.js} +1 -1
- package/web/app/immutable/chunks/{Dm3wAkDL.js → CffZor2V.js} +1 -1
- package/web/app/immutable/chunks/{CSb1CnpN.js → CggFXl4B.js} +1 -1
- package/web/app/immutable/chunks/{3Qz3qAhk.js → Ci75CkmK.js} +1 -1
- package/web/app/immutable/chunks/{BVcaPXq9.js → CisSEUth.js} +1 -1
- package/web/app/immutable/chunks/{BHJpo3VA.js → Ck3g194G.js} +1 -1
- package/web/app/immutable/chunks/{BPpACIC2.js → CkXORNl2.js} +1 -1
- package/web/app/immutable/chunks/{DAVG7sIL.js → CmhKJ6Ie.js} +1 -1
- package/web/app/immutable/chunks/{CnQVxh95.js → Cn034oEm.js} +1 -1
- package/web/app/immutable/chunks/{tHETzssD.js → CndJcn8K.js} +1 -1
- package/web/app/immutable/chunks/{DdjeekcY.js → CnqyGFOt.js} +1 -1
- package/web/app/immutable/chunks/{BIkt0YE0.js → Co9CFvqw.js} +1 -1
- package/web/app/immutable/chunks/{BYJh9adv.js → Cq8MD_3v.js} +1 -1
- package/web/app/immutable/chunks/{BmLlDCoW.js → CrL2Nk6a.js} +1 -1
- package/web/app/immutable/chunks/{Bu3PKqut.js → CrpUtGFn.js} +1 -1
- package/web/app/immutable/chunks/{BNFvOw36.js → CrwLq8nY.js} +1 -1
- package/web/app/immutable/chunks/{Drf1gLyo.js → Cw2fqKk9.js} +1 -1
- package/web/app/immutable/chunks/{FQkCsxt2.js → CwCTYQp7.js} +1 -1
- package/web/app/immutable/chunks/{24f6N9l0.js → CwGPCWH6.js} +1 -1
- package/web/app/immutable/chunks/{awY5HvZY.js → CxCmx5S0.js} +1 -1
- package/web/app/immutable/chunks/{CaHWSiOY.js → CzFfpwQB.js} +1 -1
- package/web/app/immutable/chunks/{HeVxSGdr.js → CzRhnymD.js} +1 -1
- package/web/app/immutable/chunks/{mRUS_S7Z.js → CzTSi5lc.js} +1 -1
- package/web/app/immutable/chunks/{BGo6FK-0.js → CzjElr82.js} +1 -1
- package/web/app/immutable/chunks/{DSDM77x3.js → D-6Jv2pD.js} +1 -1
- package/web/app/immutable/chunks/{BKFxm3WK.js → D-DyBHf9.js} +1 -1
- package/web/app/immutable/chunks/{Z8DHXl17.js → D0hLqQX-.js} +1 -1
- package/web/app/immutable/chunks/{B18ybwa0.js → D1YPh_5n.js} +1 -1
- package/web/app/immutable/chunks/{PkPZtGfM.js → D25lWS8Q.js} +1 -1
- package/web/app/immutable/chunks/{yqEyUNVG.js → D2kIeaeO.js} +1 -1
- package/web/app/immutable/chunks/{C4M_mNFP.js → D2y-zN_4.js} +1 -1
- package/web/app/immutable/chunks/{UQ6MIVTw.js → D3waRWO1.js} +1 -1
- package/web/app/immutable/chunks/{2aKRVAvL.js → D48_y-cl.js} +1 -1
- package/web/app/immutable/chunks/{x-RVzKqZ.js → D49zWKPf.js} +1 -1
- package/web/app/immutable/chunks/{dFhS46gw.js → D55LTeKe.js} +1 -1
- package/web/app/immutable/chunks/{DbUDL_oo.js → D57Jyp6W.js} +1 -1
- package/web/app/immutable/chunks/{CIoJPvjg.js → D5wnbxHp.js} +1 -1
- package/web/app/immutable/chunks/{BhtJVlVx.js → D67AA9yd.js} +1 -1
- package/web/app/immutable/chunks/{B-MjuJTx.js → D6Q-N0-R.js} +2 -2
- package/web/app/immutable/chunks/{C21Z9LLF.js → D7AX9X0W.js} +1 -1
- package/web/app/immutable/chunks/{XMluVOSf.js → D83yV23-.js} +1 -1
- package/web/app/immutable/chunks/{BE08e7Se.js → D8BzOeFD.js} +1 -1
- package/web/app/immutable/chunks/{BqrahRdk.js → D8bY4ERR.js} +4 -4
- package/web/app/immutable/chunks/{BDbFQqI8.js → D9Hjcszu.js} +3 -3
- package/web/app/immutable/chunks/{DC1xYxUn.js → D9M659lc.js} +1 -1
- package/web/app/immutable/chunks/{Ly7eBIj5.js → D9MZU0Xg.js} +1 -1
- package/web/app/immutable/chunks/{CW979n9w.js → DC1CSztK.js} +1 -1
- package/web/app/immutable/chunks/{BeUuk8D1.js → DCkRL43S.js} +1 -1
- package/web/app/immutable/chunks/{0b3rkAam.js → DEQDOTA1.js} +1 -1
- package/web/app/immutable/chunks/{W05hyx94.js → DIEHuZ8f.js} +1 -1
- package/web/app/immutable/chunks/{DIad5c9_.js → DINctf8I.js} +1 -1
- package/web/app/immutable/chunks/{DsOS7N8Z.js → DIcuhccs.js} +1 -1
- package/web/app/immutable/chunks/{CJke1tnU.js → DIoT8eB4.js} +1 -1
- package/web/app/immutable/chunks/{Bb-hI5du.js → DJKfrY8C.js} +2 -2
- package/web/app/immutable/chunks/{CIKXOyvw.js → DJivXy66.js} +2 -2
- package/web/app/immutable/chunks/{BthojcF8.js → DL95yZo7.js} +6 -6
- package/web/app/immutable/chunks/DLO_0egf.js +1 -0
- package/web/app/immutable/chunks/{CnMzOGNL.js → DLs3P_Wt.js} +1 -1
- package/web/app/immutable/chunks/{UnM4qztD.js → DLttsd3i.js} +1 -1
- package/web/app/immutable/chunks/{DGdWzkgm.js → DMV5KQix.js} +1 -1
- package/web/app/immutable/chunks/{yy2JFRyT.js → DMlhLPB0.js} +1 -1
- package/web/app/immutable/chunks/DP0K41jk.js +1 -0
- package/web/app/immutable/chunks/{21kfe-mS.js → DPG1HUgG.js} +1 -1
- package/web/app/immutable/chunks/{r5JNAzEM.js → DPjr22dV.js} +1 -1
- package/web/app/immutable/chunks/{CZ5zON0R.js → DPmNtGFj.js} +1 -1
- package/web/app/immutable/chunks/{ChKOG1mU.js → DQZhKtkC.js} +1 -1
- package/web/app/immutable/chunks/{B8foSZsl.js → DRLJuUwT.js} +1 -1
- package/web/app/immutable/chunks/{COlfJVPs.js → DTtB67Qo.js} +4 -4
- package/web/app/immutable/chunks/{Bn4F-JIh.js → DU1ubslo.js} +1 -1
- package/web/app/immutable/chunks/{BB-hf8IY.js → DW_seDlm.js} +4 -4
- package/web/app/immutable/chunks/{BcYVm7io.js → DWqaYE81.js} +1 -1
- package/web/app/immutable/chunks/{C9ij7Z2h.js → D_5u7gP_.js} +1 -1
- package/web/app/immutable/chunks/{_HPNXgkR.js → D_j4wRX_.js} +3 -3
- package/web/app/immutable/chunks/{CB8gRmKb.js → Da6yJ5JS.js} +1 -1
- package/web/app/immutable/chunks/{BOnTc4ny.js → Dcnwzgw6.js} +1 -1
- package/web/app/immutable/chunks/{BWI85bGY.js → Dd3UnPYB.js} +1 -1
- package/web/app/immutable/chunks/{CYq58ltZ.js → DdLy5J3P.js} +1 -1
- package/web/app/immutable/chunks/{BD7jFvJp.js → Ddc7chXR.js} +1 -1
- package/web/app/immutable/chunks/{DdRupUfV.js → Dde5tnWd.js} +2 -2
- package/web/app/immutable/chunks/{CRUcTVFP.js → DezlVQ1h.js} +1 -1
- package/web/app/immutable/chunks/{OMssb4xF.js → Dga6E45c.js} +1 -1
- package/web/app/immutable/chunks/{CLqqc_hU.js → Dgmou2n8.js} +1 -1
- package/web/app/immutable/chunks/{BoEcbLG-.js → DgtVALrr.js} +1 -1
- package/web/app/immutable/chunks/{BRdQpeCl.js → DkERMj5B.js} +1 -1
- package/web/app/immutable/chunks/{A3z9XWMi.js → DkJYBjJg.js} +1 -1
- package/web/app/immutable/chunks/{Djah0WfC.js → DkOk28fz.js} +1 -1
- package/web/app/immutable/chunks/{kAav5o2h.js → Dk_Hc5oq.js} +1 -1
- package/web/app/immutable/chunks/{CyHe7TdT.js → DmpdpJAo.js} +1 -1
- package/web/app/immutable/chunks/{DIQ-xR1q.js → Do-SaITx.js} +1 -1
- package/web/app/immutable/chunks/{DyLERSuu.js → DqfdHjn7.js} +1 -1
- package/web/app/immutable/chunks/{YbqMJoDi.js → DrStWuxU.js} +1 -1
- package/web/app/immutable/chunks/{CsilY7l9.js → DtkIwON_.js} +1 -1
- package/web/app/immutable/chunks/{-VR23WhZ.js → DujtjgwV.js} +1 -1
- package/web/app/immutable/chunks/{Y_tkjygB.js → DwGyIIXK.js} +1 -1
- package/web/app/immutable/chunks/{LdXAlc1O.js → DwbEs_9r.js} +1 -1
- package/web/app/immutable/chunks/{CvusaaYc.js → DwiE5WsI.js} +1 -1
- package/web/app/immutable/chunks/{Cpw2gXhG.js → Dx1ZiLP_.js} +1 -1
- package/web/app/immutable/chunks/{BW2en5Js.js → DxSE2XEK.js} +1 -1
- package/web/app/immutable/chunks/{jyNUu-ZR.js → DxnZvDv0.js} +1 -1
- package/web/app/immutable/chunks/{Bx7gCv2M.js → Dy9FYRX8.js} +1 -1
- package/web/app/immutable/chunks/{C6rz0msZ.js → DzI8RUwZ.js} +1 -1
- package/web/app/immutable/chunks/{rsUVVEzx.js → ELYZilX0.js} +1 -1
- package/web/app/immutable/chunks/{BlRGZv8u.js → FLpsgWeB.js} +1 -1
- package/web/app/immutable/chunks/{BweHPPaS.js → FhJRiT1S.js} +2 -2
- package/web/app/immutable/chunks/{BpLxj3s3.js → HLNbJ-7M.js} +1 -1
- package/web/app/immutable/chunks/{D22j4iWy.js → Hi2H4bj8.js} +1 -1
- package/web/app/immutable/chunks/{UqcU95a7.js → Idk978zJ.js} +1 -1
- package/web/app/immutable/chunks/{C_wfHKmM.js → Ii0VTY5h.js} +1 -1
- package/web/app/immutable/chunks/{CTqRHXfu.js → ItBm4ElA.js} +1 -1
- package/web/app/immutable/chunks/{Dduwpj0a.js → Jk9a4xPx.js} +1 -1
- package/web/app/immutable/chunks/{yMcNgg0D.js → KlNP4OZJ.js} +1 -1
- package/web/app/immutable/chunks/{B0kNPCxU.js → KtEuoG00.js} +1 -1
- package/web/app/immutable/chunks/{Btst3lgy.js → L3K71tUU.js} +1 -1
- package/web/app/immutable/chunks/{DzpuLv6U.js → Lk7a_7W9.js} +1 -1
- package/web/app/immutable/chunks/{DpxbS0Pj.js → Mmc_61iE.js} +1 -1
- package/web/app/immutable/chunks/{DrkDJmY5.js → NpwlBTfT.js} +1 -1
- package/web/app/immutable/chunks/{7i0OJtNQ.js → R5lmOJFS.js} +1 -1
- package/web/app/immutable/chunks/{8jO_MBKF.js → RTRAqswA.js} +1 -1
- package/web/app/immutable/chunks/{DpESY8ko.js → UYAhegVx.js} +1 -1
- package/web/app/immutable/chunks/{CUA9hM4m.js → UsbmbYa0.js} +1 -1
- package/web/app/immutable/chunks/{DyXOhKE5.js → VcnbZvDh.js} +1 -1
- package/web/app/immutable/chunks/{TN7R9Ny0.js → WoPFTWyQ.js} +1 -1
- package/web/app/immutable/chunks/{77KTvr2w.js → WvHbj6rB.js} +1 -1
- package/web/app/immutable/chunks/{BbfEcBPg.js → Y2a1lhL9.js} +1 -1
- package/web/app/immutable/chunks/{D6_ybykj.js → YFBzMq6w.js} +1 -1
- package/web/app/immutable/chunks/YLhFQnIu.js +1 -0
- package/web/app/immutable/chunks/{VTJf_qPn.js → YeOAvjnW.js} +1 -1
- package/web/app/immutable/chunks/{BwVjpKmH.js → Yz7dkp3Z.js} +1 -1
- package/web/app/immutable/chunks/{BrDfJqC4.js → _3Ca9E4W.js} +1 -1
- package/web/app/immutable/chunks/{BdlYeRHB.js → aoPstOyp.js} +2 -2
- package/web/app/immutable/chunks/{B4F7GG5Q.js → bs-TVtqR.js} +1 -1
- package/web/app/immutable/chunks/{DjNuITHM.js → cEIzYo-d.js} +1 -1
- package/web/app/immutable/chunks/{QIFiwjW0.js → cHm1EnSF.js} +3 -3
- package/web/app/immutable/chunks/{B-4i031c.js → cKeJwK9J.js} +1 -1
- package/web/app/immutable/chunks/{cfiNEg68.js → cPsAlOmH.js} +1 -1
- package/web/app/immutable/chunks/{CPWMushE.js → d028N8d2.js} +1 -1
- package/web/app/immutable/chunks/{CDxV78M0.js → eJwA1uvO.js} +1 -1
- package/web/app/immutable/chunks/{DlMrAlfA.js → g08hegP2.js} +1 -1
- package/web/app/immutable/chunks/{D7yetF0v.js → gwv5JQYH.js} +1 -1
- package/web/app/immutable/chunks/{Cerl373K.js → iAKTK0Nq.js} +1 -1
- package/web/app/immutable/chunks/{BxU747mj.js → j5ppcWWU.js} +1 -1
- package/web/app/immutable/chunks/{E1uoF1cW.js → jAIXVFR4.js} +1 -1
- package/web/app/immutable/chunks/{B3OJ_2Dd.js → kvtKUeBe.js} +1 -1
- package/web/app/immutable/chunks/{B3JbrKDZ.js → lZ7zkdkp.js} +1 -1
- package/web/app/immutable/chunks/{DpvQ3NRH.js → mUNs8NSR.js} +1 -1
- package/web/app/immutable/chunks/{Bax102l4.js → nOvpikoA.js} +1 -1
- package/web/app/immutable/chunks/{CueOVPTy.js → oBIu7LTI.js} +1 -1
- package/web/app/immutable/chunks/{DKupjKLn.js → oVV8Q_Hb.js} +1 -1
- package/web/app/immutable/chunks/{BhYFIrRM.js → pHYq50Ny.js} +1 -1
- package/web/app/immutable/chunks/{De2a277N.js → ptqq1hqu.js} +1 -1
- package/web/app/immutable/chunks/{BjdIR-od.js → qoDJOBiM.js} +1 -1
- package/web/app/immutable/chunks/{DzBJS0Lp.js → scTXKJzg.js} +1 -1
- package/web/app/immutable/chunks/{Bj4j6g-o.js → tU2KtqMG.js} +1 -1
- package/web/app/immutable/chunks/{CDxGu9F5.js → tVmNccZ-.js} +1 -1
- package/web/app/immutable/chunks/{9R_52XLX.js → whliLT1v.js} +1 -1
- package/web/app/immutable/chunks/{ChOMtuod.js → x2AHvZeQ.js} +1 -1
- package/web/app/immutable/chunks/{B2OS2WTh.js → xPYDsdm4.js} +1 -1
- package/web/app/immutable/chunks/{DOLX5oss.js → xzksWQ-h.js} +1 -1
- package/web/app/immutable/chunks/{Dt3xwKL6.js → yMNZVIZN.js} +2 -2
- package/web/app/immutable/chunks/{DgjIVRdE.js → z91bgOZ6.js} +1 -1
- package/web/app/immutable/chunks/{Y4bYs1dr.js → z_SeEaJQ.js} +1 -1
- package/web/app/immutable/chunks/{hstOawAs.js → zxxqPN9_.js} +1 -1
- package/web/app/immutable/entry/{app.gkm8TnXW.js → app.TFdw1N9t.js} +3 -3
- package/web/app/immutable/entry/start.CSPHmABT.js +1 -0
- package/web/app/immutable/nodes/{0.xKtnYOA2.js → 0.D7LoWNFt.js} +1 -1
- package/web/app/immutable/nodes/{1.BMx4VsW1.js → 1.T820Pcdi.js} +1 -1
- package/web/app/immutable/nodes/10.TooAJmth.js +39 -0
- package/web/app/immutable/nodes/{11._cAIrch_.js → 11.YCt8uKtA.js} +1 -1
- package/web/app/immutable/nodes/{12.DOoAvwLA.js → 12.C5GV0W_U.js} +1 -1
- package/web/app/immutable/nodes/{13.Coj_sRB4.js → 13.BpCKbOND.js} +1 -1
- package/web/app/immutable/nodes/{14.AVrz3ZLQ.js → 14.DomreN-2.js} +3 -3
- package/web/app/immutable/nodes/{15.BGK-JRWm.js → 15.BaajVSfs.js} +1 -1
- package/web/app/immutable/nodes/{16.CMkcwVoI.js → 16.BcdRdVBS.js} +1 -1
- package/web/app/immutable/nodes/{17.BS5un5d0.js → 17.C5h-oNNo.js} +1 -1
- package/web/app/immutable/nodes/{18._hTG2-17.js → 18.vgJOUK1N.js} +1 -1
- package/web/app/immutable/nodes/{19.DuCFyr_N.js → 19.BBw49idM.js} +2 -2
- package/web/app/immutable/nodes/{2.uAqDAg4D.js → 2.CXHTT9vG.js} +4 -4
- package/web/app/immutable/nodes/{20.C1pW6BvW.js → 20.CuOgTm-x.js} +1 -1
- package/web/app/immutable/nodes/{3.M-EbuqKW.js → 3.CafUSpEU.js} +1 -1
- package/web/app/immutable/nodes/{4.ByPZ1Nrn.js → 4.wtpkgmx_.js} +1 -1
- package/web/app/immutable/nodes/{5.DKAjjuf7.js → 5.D26Atcdx.js} +1 -1
- package/web/app/immutable/nodes/{6.DOc_YxMK.js → 6.uEepPxKF.js} +1 -1
- package/web/app/immutable/nodes/{7.gFNAyoNX.js → 7.D-r8R1wS.js} +1 -1
- package/web/app/immutable/nodes/{8.C_Kp8pWz.js → 8.ELuFvMEz.js} +1 -1
- package/web/app/immutable/nodes/{9.C6HX35Sq.js → 9.tuk9n1NJ.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +44 -44
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B2LBPAIA.js +0 -1
- package/web/app/immutable/chunks/BUTuN2nE.js +0 -1
- package/web/app/immutable/chunks/CH-Qi35K.js +0 -1
- package/web/app/immutable/chunks/DWvCfaBg.js +0 -1
- package/web/app/immutable/chunks/Da8rtzmJ.js +0 -1
- package/web/app/immutable/chunks/wBNgrgMC.js +0 -1
- package/web/app/immutable/entry/start.CMMmzvCE.js +0 -1
- package/web/app/immutable/nodes/10.HyXPJR8g.js +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),F=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),N=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Ft,R as Nt,as as kt,c5 as mt,T as Ct,b1 as Tt,bt as it,bf as R,cc as ht,K as xt,M as St,bV as ot,ao as gt,bY as at,by as Mt,bH as L,aD as ct,cd as Ot,aE as ut,c2 as At}from"./3SdAC2_C.js";import{p as j}from"./
|
|
1
|
+
var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),F=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),N=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Ft,R as Nt,as as kt,c5 as mt,T as Ct,b1 as Tt,bt as it,bf as R,cc as ht,K as xt,M as St,bV as ot,ao as gt,bY as at,by as Mt,bH as L,aD as ct,cd as Ot,aE as ut,c2 as At}from"./3SdAC2_C.js";import{p as j}from"./oBIu7LTI.js";const Et=()=>performance.now(),$={tick:t=>requestAnimationFrame(t),now:()=>Et(),tasks:new Set};function yt(){const t=$.now();$.tasks.forEach(r=>{r.c(t)||($.tasks.delete(r),r.f())}),$.tasks.size!==0&&$.tick(yt)}function H(t){let r;return $.tasks.size===0&&$.tick(yt),{promise:new Promise(e=>{$.tasks.add(r={c:t,f:e})}),abort(){$.tasks.delete(r)}}}function V(t,r){ht(()=>{t.dispatchEvent(new CustomEvent(r))})}function Rt(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const r=t.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function ft(t){const r={},e=t.split(";");for(const n of e){const[i,s]=n.split(":");if(!i||s===void 0)break;const o=Rt(i.trim());r[o]=s.trim()}return r}const It=t=>t;let bt=null;function Yt(t){bt=t}function Jt(t,r,e){var n=bt??lt,i=n.nodes,s,o,a,c=null;i.a??={element:t,measure(){s=this.element.getBoundingClientRect()},apply(){if(a?.abort(),o=this.element.getBoundingClientRect(),s.left!==o.left||s.right!==o.right||s.top!==o.top||s.bottom!==o.bottom){const u=r()(this.element,{from:s,to:o},e?.());a=W(this.element,u,void 0,1,()=>{},()=>{a?.abort(),a=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:l}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=l;var p=t.getBoundingClientRect();if(s.left!==p.left||s.top!==p.top){var g=`translate(${s.left-p.left}px, ${s.top-p.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}},i.a.element=t}function Qt(t,r,e,n){var i=(t&xt)!==0,s=(t&St)!==0,o=i&&s,a=(t&Ct)!==0,c=o?"both":i?"in":"out",u,f=r.inert,l=r.style.overflow,d,p;function g(){return ht(()=>u??=e()(r,n?.()??{},{direction:c}))}var y={is_global:a,in(){if(r.inert=f,!i){p?.abort(),p?.reset?.();return}s||d?.abort(),d=W(r,g(),p,1,()=>{V(r,"introstart")},()=>{V(r,"introend"),d?.abort(),d=u=void 0,r.style.overflow=l})},out(k){if(!s){k?.(),u=void 0;return}r.inert=!0,p=W(r,g(),d,0,()=>{V(r,"outrostart")},()=>{V(r,"outroend"),k?.()})},stop:()=>{d?.abort(),p?.abort()}},b=lt;if((b.nodes.t??=[]).push(y),i&&_t){var h=a;if(!h){for(var v=b.parent;v&&(v.f&wt)!==0;)for(;(v=v.parent)&&(v.f&Ft)===0;);h=!v||(v.f&Nt)!==0}h&&kt(()=>{mt(()=>y.in())})}}function W(t,r,e,n,i,s){var o=n===1,a=!1;if(Tt(r)){var c;return it(()=>{if(!a){var y=r({direction:o?"in":"out"});c=W(t,y,e,n,i,s)}}),{abort:()=>{a=!0,c?.abort()},deactivate:()=>c?.deactivate(),reset:()=>c?.reset(),t:()=>c?.t()??1-n}}if(e?.deactivate(),!r?.duration&&!r?.delay)return i(),s(),{abort:R,deactivate:R,reset:R,t:()=>n};const{delay:u=0,css:f,tick:l,easing:d=It}=r;var p,g=()=>1-n;return it(()=>{if(!a){var y=[];if(o&&e===void 0&&(l&&l(0,1),f)){var b=ft(f(0,1));y.push(b,b)}p=t.animate(y,{duration:u,fill:"forwards"}),p.onfinish=()=>{p.cancel(),i();var h=e?.t()??1-n;e?.abort();var v=n-h,k=r.duration*Math.abs(v),X=[];if(k>0){var Z=!1;if(f)for(var tt=Math.ceil(k/16.666666666666668),D=0;D<=tt;D+=1){var rt=h+v*d(D/tt),et=ft(f(rt,1-rt));X.push(et),Z||=et.overflow==="hidden"}Z&&(t.style.overflow="hidden"),g=()=>{var B=p.currentTime;return h+v*d(B/k)},l&&H(()=>{if(p.playState!=="running")return!1;var B=g();return l(B,1-B),!0})}p=t.animate(X,{duration:k,fill:"forwards"}),p.onfinish=()=>{g=()=>n,l?.(n,1-n),s()}}}}),{abort:()=>{a=!0,p&&(p.cancel(),p.effect=null,p.onfinish=R)},deactivate:()=>{s=R},reset:()=>{n===0&&l?.(1,0)},t:()=>g()}}function Y(t){return t}function M(t){const r=t-1;return r*r*r+1}function Xt(t){return--t*t*t*t*t+1}function pt(t){return Object.prototype.toString.call(t)==="[object Date]"}function q(t,r){if(t===r||t!==t)return()=>t;const e=typeof t;if(e!==typeof r||Array.isArray(t)!==Array.isArray(r))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const n=r.map((i,s)=>q(t[s],i));return i=>n.map(s=>s(i))}if(e==="object"){if(!t||!r)throw new Error("Object cannot be null");if(pt(t)&&pt(r)){const s=t.getTime(),a=r.getTime()-s;return c=>new Date(s+c*a)}const n=Object.keys(r),i={};return n.forEach(s=>{i[s]=q(t[s],r[s])}),s=>{const o={};return n.forEach(a=>{o[a]=i[a](s)}),o}}if(e==="number"){const n=r-t;return i=>t+i*n}return()=>r}function Pt(t,r={}){const e=Ot(t);let n,i=t;function s(o,a){if(i=o,t==null)return e.set(t=o),Promise.resolve();let c=n,u=!1,{delay:f=0,duration:l=400,easing:d=Y,interpolate:p=q}={...r,...a};if(l===0)return c&&(c.abort(),c=null),e.set(t=i),Promise.resolve();const g=$.now()+f;let y;return n=H(b=>{if(b<g)return!0;u||(y=p(t,o),typeof l=="function"&&(l=l(t,o)),u=!0),c&&(c.abort(),c=null);const h=b-g;return h>l?(e.set(t=o),!1):(e.set(t=y(d(h/l))),!0)}),n.promise}return{set:s,update:(o,a)=>s(o(i,t),a),subscribe:e.subscribe}}var _,x,P,S;const Q=class Q{constructor(r,e={}){F(this,_);F(this,x);F(this,P);F(this,S,null);N(this,_,ot(r)),N(this,x,ot(r)),N(this,P,e),gt&&(at(m(this,_),"Tween.current"),at(m(this,x),"Tween.target"))}static of(r,e){const n=new Q(r(),e);return Mt(()=>{n.set(r())}),n}set(r,e){L(m(this,x),r);let{delay:n=0,duration:i=400,easing:s=Y,interpolate:o=q}={...m(this,P),...e};if(i===0)return m(this,S)?.abort(),L(m(this,_),r),Promise.resolve();const a=$.now()+n;let c,u=!1,f=m(this,S);return N(this,S,H(l=>{if(l<a)return!0;if(!u){u=!0;const p=m(this,_).v;c=o(p,r),typeof i=="function"&&(i=i(p,r)),f?.abort(),f=null}const d=l-a;return d>i?(L(m(this,_),r),!1):(L(m(this,_),c(s(d/i))),!0)})),m(this,S).promise}get current(){return ct(m(this,_))}get target(){return ct(m(this,x))}set target(r){this.set(r)}};_=new WeakMap,x=new WeakMap,P=new WeakMap,S=new WeakMap;let K=Q;const T={fast:{settleMs:80,easing:M,exit:{duration:60,easing:M}},moderate:{settleMs:160,easing:M,exit:{duration:120,easing:M}},slow:{settleMs:240,easing:M,exit:{duration:160,easing:M}}},Zt={openMs:350,closeMs:280,reducedMs:200};var w,O,A;class tr{constructor(r,e="moderate"){F(this,w);F(this,O);F(this,A,Promise.resolve());N(this,O,T[e]),N(this,w,new K(r))}get current(){return m(this,w).current}get target(){return m(this,w).target}set target(r){this.set(r)}set(r,e){return mt(()=>{const n=e?.instant||j();return!n&&Object.is(r,m(this,w).target)?m(this,A):(m(this,w).set(m(this,w).current,{duration:0}),N(this,A,m(this,w).set(r,{duration:n?0:m(this,O).settleMs,easing:m(this,O).easing})),m(this,A))})}}w=new WeakMap,O=new WeakMap,A=new WeakMap;function jt(t,r="moderate"){const e=Pt(t);let n=t,i=Promise.resolve();const s=(o,a)=>{const c=a?.hard||j();return!c&&Object.is(o,n)||(n=o,e.set(ut(e),{duration:0}),i=e.set(o,{duration:c?0:T[r].settleMs,easing:T[r].easing})),i};return{subscribe:e.subscribe,set:s,update:(o,a)=>s(o(n,ut(e)),a)}}function rr(t,r="moderate"){const e=jt(t,r);return{subscribe:e.subscribe,set:n=>e.set(n),update:n=>e.update(n)}}function er(t){return t.exit.duration+100}const Bt=t=>t;function J(t){const r=t-1;return r*r*r+1}function vt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function G(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}function C(t,r,e){return Number.isNaN(r)?"":`${t}: ${e*r}px;`}function Lt(t,{delay:r=0,duration:e=400,easing:n=vt,amount:i=5,opacity:s=0}={}){const o=getComputedStyle(t),a=+o.opacity,c=o.filter==="none"?"":o.filter,u=a*(1-s),[f,l]=G(i);return{delay:r,duration:e,easing:n,css:(d,p)=>`opacity: ${a-u*p}; filter: ${c} blur(${p*f}${l});`}}function $t(t,{delay:r=0,duration:e=400,easing:n=Bt}={}){const i=+getComputedStyle(t).opacity;return{delay:r,duration:e,easing:n,css:s=>`opacity: ${s*i}`}}function Vt(t,{delay:r=0,duration:e=400,easing:n=J,x:i=0,y:s=0,opacity:o=0}={}){const a=getComputedStyle(t),c=+a.opacity,u=a.transform==="none"?"":a.transform,f=c*(1-o),[l,d]=G(i),[p,g]=G(s);return{delay:r,duration:e,easing:n,css:(y,b)=>`
|
|
2
2
|
transform: ${u} translate(${(1-y)*l}${d}, ${(1-y)*p}${g});
|
|
3
3
|
opacity: ${c-f*b}`}}var U=!1;function Wt(t,{delay:r=0,duration:e=400,easing:n=J,axis:i="y"}={}){const s=getComputedStyle(t);gt&&!U&&/(contents|inline|table)/.test(s.display)&&(U=!0,Promise.resolve().then(()=>U=!1),At(s.display));const o=+s.opacity,a=i==="y"?"height":"width",c=parseFloat(s[a]),u=i==="y"?["top","bottom"]:["left","right"],f=u.map(h=>`${h[0].toUpperCase()}${h.slice(1)}`),l=parseFloat(s[`padding${f[0]}`]),d=parseFloat(s[`padding${f[1]}`]),p=parseFloat(s[`margin${f[0]}`]),g=parseFloat(s[`margin${f[1]}`]),y=parseFloat(s[`border${f[0]}Width`]),b=parseFloat(s[`border${f[1]}Width`]);return{delay:r,duration:e,easing:n,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*o};`+C(a,c,h)+C(`padding-${u[0]}`,l,h)+C(`padding-${u[1]}`,d,h)+C(`margin-${u[0]}`,p,h)+C(`margin-${u[1]}`,g,h)+C(`border-${u[0]}-width`,y,h)+C(`border-${u[1]}-width`,b,h)+`min-${a}: 0`}}function qt(t,{delay:r=0,duration:e=400,easing:n=J,start:i=0,opacity:s=0}={}){const o=getComputedStyle(t),a=+o.opacity,c=o.transform==="none"?"":o.transform,u=1-i,f=a*(1-s);return{delay:r,duration:e,easing:n,css:(l,d)=>`
|
|
4
4
|
transform: ${c} scale(${1-u*d});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as v,_ as h}from"./DWvCfaBg.js";import{a as H}from"./BdWqymET.js";import{br as A,Jx as k,m as T,I0 as C,G$ as D,vu as j,vs as B,vJ as V,nF as z}from"./CIoJPvjg.js";import{bK as $}from"./CFB2mNds.js";import{m as R}from"./BXHbm15d.js";import"./3SdAC2_C.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import{R as N,F as g,E as G,Q as O}from"./CIKXOyvw.js";import"./ChTqQfQN.js";import"./2aKRVAvL.js";import{o as K}from"./BrDfJqC4.js";import{i as F}from"./BBWuirRW.js";const L=new WeakMap;function Le(e,t){const a=n=>{n&&n!=="new"?L.set(e,n):L.delete(e)};return a(t),{update:a,destroy(){L.delete(e)}}}function q(e){for(let t=e;t;t=t.parentElement){const a=L.get(t);if(a)return a}}function J(e,t){const a=e?.closest("[data-workspace-link-target]")?.dataset.workspaceLinkTarget;return{openInWorkspace:!!t&&a===t,panelId:e?.closest("[data-panel-id]")?.dataset.panelId,assistantLayoutId:e?.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId,surfaceWorkspaceId:q(e)}}const s=new H("LinkHandler");async function Q(e,t){try{const a=t.event?.target,n=J(a instanceof Element?a:null,t.workspaceId),o=t.openInWorkspace??n.openInWorkspace,r=o?void 0:t.sourcePanelId||n.panelId,{assistantLayoutId:l}=n,u=t.workspaceId??(n.surfaceWorkspaceId?A(n.surfaceWorkspaceId):void 0);if(t={...t,workspaceId:u,openInWorkspace:o,sourcePanelId:r},t.customHandler&&await t.customHandler(e))return s.debug("Link handled by custom handler",{url:e}),!0;if(/^workspace-asset:/i.test(e.trim()))return R.error(v.ui_linkHandler_assetUnavailable_error()),!1;const i=N(e),{event:d}=t,f=i&&d&&!g(t)?t.githubLinkDefaultAction??K.select(k.state):void 0,c=!f||f==="open-in-app";if(t.workspaceId===T&&!t.forceExternal&&c){const{showAssistantContent:m}=await h(async()=>{const{showAssistantContent:_}=await import("./DZSbMOPJ.js");return{showAssistantContent:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),I=t.rawHref?.startsWith("/workspace/")?t.rawHref:e;if(await m(I,{layoutId:l}))return!0}if(e.startsWith("intent://"))return await X(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await Y(e,{...t,sourcePanelId:r});const p=ne(e,t.rawHref);if(p)return await re(p.path,{...t,sourcePanelId:r},p.fromResolvedUrl);if(e.startsWith("http://")||e.startsWith("https://")){if(G(e))return s.debug("Auth URL detected, opening in external browser",{url:e}),await w(e);if(t.forceExternal)return await w(e);if(o&&c||g(t))return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):(s.debug("No workspaceId available, opening in external browser",{url:e}),await w(e));if(i&&d&&f)switch(f){case"open-in-browser":return await w(e);case"open-in-app":return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):await w(e);case"copy-link":return await $(e),!0;case"start-workspace":return k.dispatch(C({...i,url:e})),k.dispatch(D(!0)),!0;case"show-choices":return await oe(e,i,d,t,l)}return await w(e)}return e.startsWith("file://")?t.canOpenFile?.()===!1?!1:await M(e):(s.warn("Unknown link type, falling back to external browser",{url:e}),await w(e))}catch(a){return s.error("Failed to handle link",{url:e,error:a}),!1}}async function X(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./D5A9atQX.js");return{parseIntentLink:l,handleIntentLink:u}},__vite__mapDeps([24,1,2,25,11,7,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39,40,22,41,42,23]),import.meta.url),o=a(e);if(t.canOpenFile&&o.type==="file"&&!t.canOpenFile())return!1;const r=o.workspaceId?A(o.workspaceId):t.workspaceId;return o.valid&&o.type!=="workspace"&&await y(r,t),P(t),await n(e,{workspaceId:t.openInWorkspace?r:t.workspaceId,sourcePanelId:t.sourcePanelId,openInAdjacentPanel:t.openInAdjacentPanel??g(t),openInNewAdjacentPanel:t.openInNewAdjacentPanel??!1})}catch(a){return s.error("Failed to handle intent link",{url:e,error:a}),!1}}async function Y(e,t){try{const a=e.match(/^devspace:\/\/terminal\/(.+)$/);if(a){if(!t.workspaceId)return s.warn("Cannot open terminal without workspaceId",{url:e}),!1;const n=decodeURIComponent(a[1]);s.debug("Opening terminal from devspace link",{terminalId:n,workspaceId:t.workspaceId}),await y(t.workspaceId,t),P(t);const o={type:"terminal",title:v.layout_tabTypes_terminal_title(),terminalId:n,closable:!0};return g(t)?k.dispatch(j(t.workspaceId,o,t.sourcePanelId)):k.dispatch(B(t.workspaceId,o)),!0}return s.warn("Unhandled devspace:// link type",{url:e}),!1}catch(a){return s.error("Failed to handle devspace link",{url:e,error:a}),!1}}const Z=/^[a-z][a-z0-9+.-]*:/i,x=/^[a-z]:\/(?!\/)/i;function W(e){return e.replace(/\\/g,"/")}function ee(e){try{return W(decodeURIComponent(e))}catch{return null}}function te(e){return e.split("/").some(t=>t==="..")}function ae(e){const t=e.split("/").filter(a=>a&&a!==".");return t.length===0||t.some(a=>a==="..")?null:t.join("/")}async function y(e,t){if(!t.openInWorkspace||!e)return;const{openAndShowWorkspace:a}=await h(async()=>{const{openAndShowWorkspace:n}=await import("./TN7R9Ny0.js").then(o=>o.s);return{openAndShowWorkspace:n}},__vite__mapDeps([45,4,2,3,5,6,7,8,1,9,10,11,46,47]),import.meta.url);try{await a(e)}catch(n){throw R.error(v.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:v.ui_linkHandler_unknownError_label()}),n}}function P(e){!e.workspaceId||!e.sourcePanelId||k.dispatch(z(e.workspaceId,e.sourcePanelId))}function ne(e,t){const a=t??e;if(a){if(a.startsWith("#"))return null;const n=O(a).path;if(!a.startsWith("//")&&(x.test(W(n))||!Z.test(n)))return{path:a,fromResolvedUrl:!1}}if((e.startsWith("http://")||e.startsWith("https://"))&&typeof window<"u")try{const n=new URL(e);if(n.origin===window.location.origin)return{path:n.pathname+n.hash,fromResolvedUrl:!0}}catch{}return null}async function re(e,t,a){try{if(t.canOpenFile?.()===!1)return!1;const n=O(e),o=ee(n.path);if(!o||o.includes("\0"))return!1;let r=o;const{line:l,column:u}=n,{workspaceId:i}=t;if(!i)return s.warn("Cannot open file link without workspaceId",{path:r}),!1;if(te(r))return s.warn("Rejected file link with path traversal",{path:r}),!1;if(r.startsWith("/")||x.test(r)){const{selectWorkspaceById:c}=await h(async()=>{const{selectWorkspaceById:b}=await import("./3Kr2ijlK.js").then(S=>S.ee);return{selectWorkspaceById:b}},__vite__mapDeps([40,10,7,1,2,3,4,5,6,8,9,11,35,30,26,16,17,29,22,14,15,18,41,32]),import.meta.url),p=c.select(k.state,i),m=p?.worktreePath??p?.path,I=m?W(m):void 0,_=I?.endsWith("/")?I.slice(0,-1):I;if(_&&r.startsWith(`${_}/`))r=r.slice(_.length+1);else if(a)r=r.replace(/^\/+/,"");else{s.debug("Absolute path outside workspace root, opening in external editor",{path:r});const b=l===void 0?"":`:${l}${u===void 0?"":`:${u}`}`;return await M(`file://${r}${b}`)}}const d=ae(r);if(!d)return s.warn("Rejected invalid workspace file link",{path:r}),!1;r=d;const f=g(t);return await y(i,t),P(t),k.dispatch(V(i,r,{filePathIsLiteral:!0,line:l,openInAdjacentPanel:f,...t.sourcePanelId?{sourcePanelId:t.sourcePanelId}:{}})),s.debug("Opened file link in workspace file viewer",{path:r,workspaceId:i,line:l}),!0}catch(n){return s.error("Failed to open file link",{target:e,error:n}),!1}}async function oe(e,t,a,{workspaceId:n,openInWorkspace:o,sourcePanelId:r},l){try{const{showLinkActionMenu:u}=await h(async()=>{const{showLinkActionMenu:p}=await import("./CGcJ5lqH.js");return{showLinkActionMenu:p}},__vite__mapDeps([48,2]),import.meta.url),i=a.target instanceof HTMLElement?a.target:null;let d=a instanceof MouseEvent?a.clientX:0,f=a instanceof MouseEvent?a.clientY:0;if(d===0&&f===0&&i){const p=i.getBoundingClientRect();d=p.left,f=p.bottom}const c=u({url:e,gitHubRef:t,x:d,y:f,workspaceId:n,anchorElement:i,openInWorkspace:o??!1,sourcePanelId:r,assistantLayoutId:l});return t.kind==="pr"&&se(c,e),s.debug("Opened link action menu",{url:e,workspaceId:n}),!0}catch(u){return s.warn("Failed to open link action menu, falling back to external browser",{url:e,error:u}),await w(e)}}function se(e,t){h(async()=>{const{loadLinkActionMenuLinkedWorkspaces:a}=await import("./aixoUWDq.js");return{loadLinkActionMenuLinkedWorkspaces:a}},__vite__mapDeps([49,12,13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,40,35,30,26,29,41,32,48]),import.meta.url).then(({loadLinkActionMenuLinkedWorkspaces:a})=>a(e,t)).catch(a=>{s.debug("PR workspace lookup unavailable",{url:t,error:a})})}async function ie(e){try{return await y(e,{openInWorkspace:!0}),!0}catch(t){return s.warn("Failed to open linked workspace",{workspaceId:e,error:t}),!1}}async function E(e,t,a={}){if(t===T){try{const{showAssistantContent:o}=await h(async()=>{const{showAssistantContent:r}=await import("./DZSbMOPJ.js");return{showAssistantContent:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await o(e,{layoutId:a.assistantLayoutId}))return!0}catch(o){s.warn("Assistant panel unavailable, opening in external browser",{url:e,error:o})}return await w(e)}try{await y(t,a)}catch(o){return s.warn("Failed to enter workspace for in-app link",{url:e,workspaceId:t,error:o}),!1}const n=a.openInWorkspace?void 0:a.sourcePanelId;return await U(e,t,n)}async function U(e,t,a){let n=e,o;try{const{resolveBrowserLinkForOpen:r}=await h(async()=>{const{resolveBrowserLinkForOpen:u}=await import("./DpxbS0Pj.js").then(i=>i.b);return{resolveBrowserLinkForOpen:u}},__vite__mapDeps([50,25,11,7,1,2,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39]),import.meta.url),l=await r(e);n=l.url,o=l.requestedUrl}catch(r){s.warn("URL resolution failed, opening the URL unresolved",{url:e,error:r})}try{P({workspaceId:t,sourcePanelId:a});const{getPanelLayoutManager:r}=await h(async()=>{const{getPanelLayoutManager:u}=await import("./BIkt0YE0.js").then(i=>i.p);return{getPanelLayoutManager:u}},__vite__mapDeps([51,3,4,2,5,6,7,8,1,9,10,11,43]),import.meta.url);return r(t).openBrowserPanel(n,void 0,a,o),s.debug("Opened URL in browser panel",{url:e,targetUrl:n,workspaceId:t}),!0}catch(r){return s.warn("Failed to open URL in browser panel, falling back to external browser",{url:e,error:r}),await w(n)}}async function w(e){try{return await F("shell:openExternal",{url:e}),s.debug("Opened URL in external browser",{url:e}),!0}catch(t){return s.error("Failed to open URL in external browser",{url:e,error:t}),!1}}async function M(e){try{const t=e.replace("file://","");return typeof window<"u"&&window.electronAPI?(await F("shell:openExternal",{url:`vscode://file/${t}`}),s.debug("Opened file in external editor",{filePath:t}),!0):!1}catch(t){return s.error("Failed to open file in external editor",{url:e,error:t}),!1}}function ce(e,t={}){let a=null,n=null,o=null;async function r(){if(!n||!o){const d=await h(()=>import("./CIKXOyvw.js").then(f=>f.K),__vite__mapDeps([14,1,2,11,7,15,10,16,8,17,18]),import.meta.url);n=d.showLinkTooltip,o=d.hideLinkTooltip}}function l(d){const c=d.target.closest("a");if(c?.href&&!c.href.startsWith("intent://")&&!c.href.startsWith("devspace://")){if(c===a)return;a=c;const p=t.workspaceId??c.closest("[data-workspace-id]")?.dataset.workspaceId??c.closest("[data-workspace-surface]")?.dataset.workspaceSurface;r().then(()=>{a===c&&n&&n(c,c.href,p)})}else a&&(a=null,o?.())}function u(d){const c=d.target.closest("a");if(c&&c===a){const p=d.relatedTarget;if(p&&c.contains(p))return;a=null,o?.()}}function i(){a&&(a=null,o?.())}return e.addEventListener("mouseover",l),e.addEventListener("mouseout",u),e.addEventListener("click",i),()=>{e.removeEventListener("mouseover",l),e.removeEventListener("mouseout",u),e.removeEventListener("click",i),o?.()}}const ve=Object.freeze(Object.defineProperty({__proto__:null,createLinkTooltipHandler:ce,handleLink:Q,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,Q as h,ve as l,w as o,J as r,Le as w};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BlaJXdkI.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/0Kw0mmSW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DJivXy66.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/BgV6mURq.js","/app/immutable/chunks/CZB2ndi9.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/Cw2fqKk9.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/CBbdbU2x.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/D48_y-cl.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/FLpsgWeB.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Bsdq-idi.js","/app/immutable/chunks/WoPFTWyQ.js","/app/immutable/chunks/DJKfrY8C.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/BuXXIZt7.js","/app/immutable/chunks/Mmc_61iE.js","/app/immutable/chunks/Co9CFvqw.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as v,_ as h}from"./YLhFQnIu.js";import{a as H}from"./BdWqymET.js";import{br as A,Jx as k,m as T,I0 as C,G$ as D,vu as j,vs as B,vJ as V,nF as z}from"./D5wnbxHp.js";import{bK as $}from"./CV7mOfKN.js";import{m as R}from"./CZB2ndi9.js";import"./3SdAC2_C.js";import"./BQhBnAuP.js";import"./CrpUtGFn.js";import{R as N,F as g,E as G,Q as O}from"./DJivXy66.js";import"./ChTqQfQN.js";import"./D48_y-cl.js";import{o as K}from"./_3Ca9E4W.js";import{i as F}from"./BBWuirRW.js";const L=new WeakMap;function Le(e,t){const a=n=>{n&&n!=="new"?L.set(e,n):L.delete(e)};return a(t),{update:a,destroy(){L.delete(e)}}}function q(e){for(let t=e;t;t=t.parentElement){const a=L.get(t);if(a)return a}}function J(e,t){const a=e?.closest("[data-workspace-link-target]")?.dataset.workspaceLinkTarget;return{openInWorkspace:!!t&&a===t,panelId:e?.closest("[data-panel-id]")?.dataset.panelId,assistantLayoutId:e?.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId,surfaceWorkspaceId:q(e)}}const s=new H("LinkHandler");async function Q(e,t){try{const a=t.event?.target,n=J(a instanceof Element?a:null,t.workspaceId),o=t.openInWorkspace??n.openInWorkspace,r=o?void 0:t.sourcePanelId||n.panelId,{assistantLayoutId:l}=n,u=t.workspaceId??(n.surfaceWorkspaceId?A(n.surfaceWorkspaceId):void 0);if(t={...t,workspaceId:u,openInWorkspace:o,sourcePanelId:r},t.customHandler&&await t.customHandler(e))return s.debug("Link handled by custom handler",{url:e}),!0;if(/^workspace-asset:/i.test(e.trim()))return R.error(v.ui_linkHandler_assetUnavailable_error()),!1;const i=N(e),{event:d}=t,f=i&&d&&!g(t)?t.githubLinkDefaultAction??K.select(k.state):void 0,c=!f||f==="open-in-app";if(t.workspaceId===T&&!t.forceExternal&&c){const{showAssistantContent:m}=await h(async()=>{const{showAssistantContent:_}=await import("./BlaJXdkI.js");return{showAssistantContent:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),I=t.rawHref?.startsWith("/workspace/")?t.rawHref:e;if(await m(I,{layoutId:l}))return!0}if(e.startsWith("intent://"))return await X(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await Y(e,{...t,sourcePanelId:r});const p=ne(e,t.rawHref);if(p)return await re(p.path,{...t,sourcePanelId:r},p.fromResolvedUrl);if(e.startsWith("http://")||e.startsWith("https://")){if(G(e))return s.debug("Auth URL detected, opening in external browser",{url:e}),await w(e);if(t.forceExternal)return await w(e);if(o&&c||g(t))return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):(s.debug("No workspaceId available, opening in external browser",{url:e}),await w(e));if(i&&d&&f)switch(f){case"open-in-browser":return await w(e);case"open-in-app":return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):await w(e);case"copy-link":return await $(e),!0;case"start-workspace":return k.dispatch(C({...i,url:e})),k.dispatch(D(!0)),!0;case"show-choices":return await oe(e,i,d,t,l)}return await w(e)}return e.startsWith("file://")?t.canOpenFile?.()===!1?!1:await M(e):(s.warn("Unknown link type, falling back to external browser",{url:e}),await w(e))}catch(a){return s.error("Failed to handle link",{url:e,error:a}),!1}}async function X(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./BgV6mURq.js");return{parseIntentLink:l,handleIntentLink:u}},__vite__mapDeps([24,1,2,25,11,7,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39,40,22,41,42,23]),import.meta.url),o=a(e);if(t.canOpenFile&&o.type==="file"&&!t.canOpenFile())return!1;const r=o.workspaceId?A(o.workspaceId):t.workspaceId;return o.valid&&o.type!=="workspace"&&await y(r,t),P(t),await n(e,{workspaceId:t.openInWorkspace?r:t.workspaceId,sourcePanelId:t.sourcePanelId,openInAdjacentPanel:t.openInAdjacentPanel??g(t),openInNewAdjacentPanel:t.openInNewAdjacentPanel??!1})}catch(a){return s.error("Failed to handle intent link",{url:e,error:a}),!1}}async function Y(e,t){try{const a=e.match(/^devspace:\/\/terminal\/(.+)$/);if(a){if(!t.workspaceId)return s.warn("Cannot open terminal without workspaceId",{url:e}),!1;const n=decodeURIComponent(a[1]);s.debug("Opening terminal from devspace link",{terminalId:n,workspaceId:t.workspaceId}),await y(t.workspaceId,t),P(t);const o={type:"terminal",title:v.layout_tabTypes_terminal_title(),terminalId:n,closable:!0};return g(t)?k.dispatch(j(t.workspaceId,o,t.sourcePanelId)):k.dispatch(B(t.workspaceId,o)),!0}return s.warn("Unhandled devspace:// link type",{url:e}),!1}catch(a){return s.error("Failed to handle devspace link",{url:e,error:a}),!1}}const Z=/^[a-z][a-z0-9+.-]*:/i,x=/^[a-z]:\/(?!\/)/i;function W(e){return e.replace(/\\/g,"/")}function ee(e){try{return W(decodeURIComponent(e))}catch{return null}}function te(e){return e.split("/").some(t=>t==="..")}function ae(e){const t=e.split("/").filter(a=>a&&a!==".");return t.length===0||t.some(a=>a==="..")?null:t.join("/")}async function y(e,t){if(!t.openInWorkspace||!e)return;const{openAndShowWorkspace:a}=await h(async()=>{const{openAndShowWorkspace:n}=await import("./WoPFTWyQ.js").then(o=>o.s);return{openAndShowWorkspace:n}},__vite__mapDeps([45,4,2,3,5,6,7,8,1,9,10,11,46,47]),import.meta.url);try{await a(e)}catch(n){throw R.error(v.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:v.ui_linkHandler_unknownError_label()}),n}}function P(e){!e.workspaceId||!e.sourcePanelId||k.dispatch(z(e.workspaceId,e.sourcePanelId))}function ne(e,t){const a=t??e;if(a){if(a.startsWith("#"))return null;const n=O(a).path;if(!a.startsWith("//")&&(x.test(W(n))||!Z.test(n)))return{path:a,fromResolvedUrl:!1}}if((e.startsWith("http://")||e.startsWith("https://"))&&typeof window<"u")try{const n=new URL(e);if(n.origin===window.location.origin)return{path:n.pathname+n.hash,fromResolvedUrl:!0}}catch{}return null}async function re(e,t,a){try{if(t.canOpenFile?.()===!1)return!1;const n=O(e),o=ee(n.path);if(!o||o.includes("\0"))return!1;let r=o;const{line:l,column:u}=n,{workspaceId:i}=t;if(!i)return s.warn("Cannot open file link without workspaceId",{path:r}),!1;if(te(r))return s.warn("Rejected file link with path traversal",{path:r}),!1;if(r.startsWith("/")||x.test(r)){const{selectWorkspaceById:c}=await h(async()=>{const{selectWorkspaceById:b}=await import("./BJbm_MWC.js").then(S=>S.ee);return{selectWorkspaceById:b}},__vite__mapDeps([40,10,7,1,2,3,4,5,6,8,9,11,35,30,26,16,17,29,22,14,15,18,41,32]),import.meta.url),p=c.select(k.state,i),m=p?.worktreePath??p?.path,I=m?W(m):void 0,_=I?.endsWith("/")?I.slice(0,-1):I;if(_&&r.startsWith(`${_}/`))r=r.slice(_.length+1);else if(a)r=r.replace(/^\/+/,"");else{s.debug("Absolute path outside workspace root, opening in external editor",{path:r});const b=l===void 0?"":`:${l}${u===void 0?"":`:${u}`}`;return await M(`file://${r}${b}`)}}const d=ae(r);if(!d)return s.warn("Rejected invalid workspace file link",{path:r}),!1;r=d;const f=g(t);return await y(i,t),P(t),k.dispatch(V(i,r,{filePathIsLiteral:!0,line:l,openInAdjacentPanel:f,...t.sourcePanelId?{sourcePanelId:t.sourcePanelId}:{}})),s.debug("Opened file link in workspace file viewer",{path:r,workspaceId:i,line:l}),!0}catch(n){return s.error("Failed to open file link",{target:e,error:n}),!1}}async function oe(e,t,a,{workspaceId:n,openInWorkspace:o,sourcePanelId:r},l){try{const{showLinkActionMenu:u}=await h(async()=>{const{showLinkActionMenu:p}=await import("./CGcJ5lqH.js");return{showLinkActionMenu:p}},__vite__mapDeps([48,2]),import.meta.url),i=a.target instanceof HTMLElement?a.target:null;let d=a instanceof MouseEvent?a.clientX:0,f=a instanceof MouseEvent?a.clientY:0;if(d===0&&f===0&&i){const p=i.getBoundingClientRect();d=p.left,f=p.bottom}const c=u({url:e,gitHubRef:t,x:d,y:f,workspaceId:n,anchorElement:i,openInWorkspace:o??!1,sourcePanelId:r,assistantLayoutId:l});return t.kind==="pr"&&se(c,e),s.debug("Opened link action menu",{url:e,workspaceId:n}),!0}catch(u){return s.warn("Failed to open link action menu, falling back to external browser",{url:e,error:u}),await w(e)}}function se(e,t){h(async()=>{const{loadLinkActionMenuLinkedWorkspaces:a}=await import("./BuXXIZt7.js");return{loadLinkActionMenuLinkedWorkspaces:a}},__vite__mapDeps([49,12,13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,40,35,30,26,29,41,32,48]),import.meta.url).then(({loadLinkActionMenuLinkedWorkspaces:a})=>a(e,t)).catch(a=>{s.debug("PR workspace lookup unavailable",{url:t,error:a})})}async function ie(e){try{return await y(e,{openInWorkspace:!0}),!0}catch(t){return s.warn("Failed to open linked workspace",{workspaceId:e,error:t}),!1}}async function E(e,t,a={}){if(t===T){try{const{showAssistantContent:o}=await h(async()=>{const{showAssistantContent:r}=await import("./BlaJXdkI.js");return{showAssistantContent:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await o(e,{layoutId:a.assistantLayoutId}))return!0}catch(o){s.warn("Assistant panel unavailable, opening in external browser",{url:e,error:o})}return await w(e)}try{await y(t,a)}catch(o){return s.warn("Failed to enter workspace for in-app link",{url:e,workspaceId:t,error:o}),!1}const n=a.openInWorkspace?void 0:a.sourcePanelId;return await U(e,t,n)}async function U(e,t,a){let n=e,o;try{const{resolveBrowserLinkForOpen:r}=await h(async()=>{const{resolveBrowserLinkForOpen:u}=await import("./Mmc_61iE.js").then(i=>i.b);return{resolveBrowserLinkForOpen:u}},__vite__mapDeps([50,25,11,7,1,2,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39]),import.meta.url),l=await r(e);n=l.url,o=l.requestedUrl}catch(r){s.warn("URL resolution failed, opening the URL unresolved",{url:e,error:r})}try{P({workspaceId:t,sourcePanelId:a});const{getPanelLayoutManager:r}=await h(async()=>{const{getPanelLayoutManager:u}=await import("./Co9CFvqw.js").then(i=>i.p);return{getPanelLayoutManager:u}},__vite__mapDeps([51,3,4,2,5,6,7,8,1,9,10,11,43]),import.meta.url);return r(t).openBrowserPanel(n,void 0,a,o),s.debug("Opened URL in browser panel",{url:e,targetUrl:n,workspaceId:t}),!0}catch(r){return s.warn("Failed to open URL in browser panel, falling back to external browser",{url:e,error:r}),await w(n)}}async function w(e){try{return await F("shell:openExternal",{url:e}),s.debug("Opened URL in external browser",{url:e}),!0}catch(t){return s.error("Failed to open URL in external browser",{url:e,error:t}),!1}}async function M(e){try{const t=e.replace("file://","");return typeof window<"u"&&window.electronAPI?(await F("shell:openExternal",{url:`vscode://file/${t}`}),s.debug("Opened file in external editor",{filePath:t}),!0):!1}catch(t){return s.error("Failed to open file in external editor",{url:e,error:t}),!1}}function ce(e,t={}){let a=null,n=null,o=null;async function r(){if(!n||!o){const d=await h(()=>import("./DJivXy66.js").then(f=>f.K),__vite__mapDeps([14,1,2,11,7,15,10,16,8,17,18]),import.meta.url);n=d.showLinkTooltip,o=d.hideLinkTooltip}}function l(d){const c=d.target.closest("a");if(c?.href&&!c.href.startsWith("intent://")&&!c.href.startsWith("devspace://")){if(c===a)return;a=c;const p=t.workspaceId??c.closest("[data-workspace-id]")?.dataset.workspaceId??c.closest("[data-workspace-surface]")?.dataset.workspaceSurface;r().then(()=>{a===c&&n&&n(c,c.href,p)})}else a&&(a=null,o?.())}function u(d){const c=d.target.closest("a");if(c&&c===a){const p=d.relatedTarget;if(p&&c.contains(p))return;a=null,o?.()}}function i(){a&&(a=null,o?.())}return e.addEventListener("mouseover",l),e.addEventListener("mouseout",u),e.addEventListener("click",i),()=>{e.removeEventListener("mouseover",l),e.removeEventListener("mouseout",u),e.removeEventListener("click",i),o?.()}}const ve=Object.freeze(Object.defineProperty({__proto__:null,createLinkTooltipHandler:ce,handleLink:Q,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,Q as h,ve as l,w as o,J as r,Le as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as c,a0 as n}from"./
|
|
1
|
+
import{_ as c,a0 as n}from"./BUsnh1ZW.js";function f(s,o){const r=c(o,s,null),e=new Set([0,s.durationMs,...s.batches.flatMap(t=>t.clearAtMs===null?[]:[t.clearAtMs]),...r.marks.flatMap(t=>[t.frameAtMs,t.visibleUntilMs,...n(s,t.mark)?[n(s,t.mark).completedAtMs]:[]])]),l=[...new Set(r.marks.flatMap(t=>n(s,t.mark)?.samples.map(m=>m.atMs)??[]))].filter(t=>!e.has(t)&&t>=0&&t<=s.durationMs).sort((t,a)=>t-a),M=Math.max(0,1001-e.size),d=M>=l.length?l:Array.from({length:M},(t,a)=>l[Math.floor(a*l.length/M)]),i=[...new Set([...e,...d])].filter(t=>t>=0&&t<=s.durationMs).sort((t,a)=>t-a);return i.slice(0,-1).map((t,a)=>({atMs:t,endMs:i[a+1]})).filter(t=>t.endMs>t.atMs&&r.marks.some(a=>t.atMs>=a.frameAtMs&&t.atMs<a.visibleUntilMs))}function k(s,o,r){const e=n(s,o);return!e||r>=e.completedAtMs}export{f as a,k as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bv as t,ak as c}from"./3SdAC2_C.js";import{O as o}from"./Bqd7fdCF.js";import{Jx as r}from"./
|
|
1
|
+
import{bv as t,ak as c}from"./3SdAC2_C.js";import{O as o}from"./Bqd7fdCF.js";import{Jx as r}from"./D5wnbxHp.js";function u(){try{return r.state.userPreferences?.shortcutOverrides??{}}catch{return{}}}function a(e){return o(e,u())}function h(e){if(typeof r.getReadableState!="function")return t(a(e));try{return c(r.getReadableState(),s=>o(e,s.userPreferences?.shortcutOverrides??{}))}catch{return t(a(e))}}export{h as e,a as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bm as r}from"./DWvCfaBg.js";import{Jx as s,nZ as p,C2 as N,yI as f,q_ as T,nY as F,s1 as m,hu as B,LK as U,o as H,mY as V,hq as k,F as Y}from"./CIoJPvjg.js";import{w as W}from"./BrDfJqC4.js";import{cx as z,cf as K,cS as $,co as h,cc as M,cJ as R,c$ as C,c_ as G,dH as I,cY as X,cZ as Z,d1 as J}from"./3Kr2ijlK.js";const Q={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},ee=new Map(Object.entries(Q).map(([e,t])=>[t,e]));function te(e,t){const o=ee.get(t);return o===void 0?void 0:e?.providers[o]}function De(e,t){const o=te(e,t);return o?.available===!0&&O(t,o.authenticated)}const je=new Set(["claude-code"]);function O(e,t){return t!==!1}const y=new WeakMap,qe=s.createSelector((e,t)=>e.agentAvailability.providerStatusMap[t]?.viaNpx===!0),w=s.createSelector(e=>{if(!z.select(e))return e.agentAvailability.providerStatusMap;const t=e.providerCatalog?.providers;if(!t)return{};let o=y.get(t);return o||(o=Object.fromEntries(p(t).map(n=>[n.id,{available:!0}])),y.set(t,o)),o}),Ne=s.createSelector(e=>e.agentAvailability.providerLoadingMap),Te=s.createSelector(e=>e.agentAvailability.providerCheckEpochMap),re=s.createSelector(e=>e.agentAvailability.hasCheckedOnce),Fe=s.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),Be=s.createSelector(e=>e.agentAvailability.npxStatus),Ue=s.createSelector(e=>e.agentAvailability.hiddenProviders),He=s.createSelector(e=>e.agentAvailability.discoveryError),Ve=s.createSelector(e=>e.agentAvailability.discoveryRevision),Ye=s.createSelector(e=>e.agentAvailability.refreshModelsPending),We=s.createSelector(e=>e.agentAvailability.refreshModelsRevision),ze=s.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&K.select(e)==="owner"?$.select(e):null),Ke=s.createSelector((e,t)=>p(e.providerSettings.requests).filter(o=>o.sessionId===t)),$e=s.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Ge=s.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),Xe=s.createSelector(e=>e.providerSettings.paths),Ze=s.createSelector(e=>e.providerSettings.pathsRevision),g=s.createSelector(e=>h.select(e)?M.select(e)?.defaultProviderId??"":e.model.defaultProviderId);s.createSelector((e,t)=>g.select(e)===t);const oe=s.createSelector(e=>h.select(e)?Object.fromEntries((M.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),A=s.createSelector((e,t)=>{if(h.select(e))return M.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return N(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),L=s.createSelector(e=>{if(h.select(e))return M.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?p(e.providerCatalog.providers):[],n=new Set(o.filter(c=>A.select(e,c.id)).map(c=>c.id)),i=g.select(e),a=f(i);a&&t[a]!==!1&&n.add(a);for(const[c,l]of Object.entries(t))l&&n.add(c);return[...n]});function ne(e,t){const o=C.select(e,t);return h.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const S=s.createSelector(e=>{const t=w.select(e);return L.select(e).filter(o=>!ne(e,o)&&t[o]?.available===!0)}),Je=s.createSelector((e,t)=>{const o=w.select(e),n=R.select(e,t);return S.select(e).filter(i=>R.select(e,i)!==n&&A.select(e,i)&&O(i,o[i]?.authenticated))}),Qe=s.createSelector(e=>re.select(e)?S.select(e):L.select(e)),et=s.createSelector(e=>{const t=f(g.select(e));return S.select(e).includes(t)}),tt=s.createSelector(e=>e.providerSettings.fastMode),rt=s.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[n,i]of Object.entries(t?.pending??{}))o[n]=i.enabled;return o}),ot=s.createSelector(e=>Object.values(u(e).defaults).some(t=>t.remoteLaunch!==void 0)),nt=s.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>C.select(e,t)?.supportsFastMode===!0):[]),u=e=>e.providerSettings?.profiles??T,st=s.createSelector(e=>G.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),at=s.createSelector((e,t)=>p(u(e).items).filter(o=>o.baseProviderId===t)),it=s.createSelector(e=>[...new Set(p(u(e).items).map(t=>t.baseProviderId))]),ct=s.createSelector(e=>u(e).defaults),lt=s.createSelector((e,t)=>u(e).defaults[t]),dt=s.createSelector((e,t)=>F(u(e).items,t)),ut=s.createSelector(e=>u(e).revision),_t=s.createSelector(e=>u(e).loadStatus),pt=s.createSelector(e=>u(e).status),ft=s.createSelector(e=>u(e).activation),ht=s.createSelector(e=>Object.fromEntries(p(u(e).mutations).map(t=>[t.id,t]))),se={},vt=s.createSelector(e=>u(e).identity??se),ae={},mt=s.createSelector(e=>u(e).setups??ae),Mt=s.createSelector(e=>(e.providerSettings?.sessions.length??0)>0);function E(e){const t=e.trim();if(!t.startsWith("tc"))return!1;const o=t.slice(2);if(o.length<50||o.length%4===1||!/^[A-Za-z0-9_-]+$/.test(o))return!1;const n=atob(o.slice(0,4).replace(/-/g,"+").replace(/_/g,"/")).charCodeAt(0);return n>=161&&n<=187||n===191}function bt(e){if(!e||typeof e!="object")return null;const t=e;for(const o of[t.collaborationName,t.prettyHostname,t.hostname])if(typeof o=="string"&&v(o))return v(o);return null}function gt(e){return[...v(e)].length<=100&&!/\p{Cc}/u.test(e)}function v(e){return e.replace(/^\p{White_Space}+|\p{White_Space}+$/gu,"")}function ie(e){const t=e.label.trim(),o=e.host&&e.port!=null?`${e.host}:${e.port}`:"";return(t&&t!==o?t:"")||e.hostname?.trim()||t||o}function ce(e){return r.layout_daemonStatus_localConnection_label()}function St(e,t){return e.isLocal?ce():ie(e)}function le(e){const t=v(e.hostname??"");return t||(E(e.label)?r.connection_unknownHost_label():e.label)}function Pt(e){const t=e.label.trim();return!t||E(t)?null:t!==le(e)?t:null}function kt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.defaultRemoteLaunch||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Rt(e,t,o){if(m(e)){const n=t.find(i=>i.providerRef===e);return n?.remoteCompatible!==!1?null:n.remoteIncompatibility??{reason:"unknown",keys:[]}}return null}const de=1440*60*1e3;function x(e,t){if(!e?.capabilities)return"missing";const o=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(o)&&t-o>de?"stale":"fresh"}function yt(e,t,o){if(!e||x(e,o)!=="fresh")return;const n=f(t),i=e.capabilities?.providers.find(a=>a.id===n);return i&&i.models.length>0?i.models:void 0}function Ct(e,t,o){const n=f(t),i=new Set;for(const a of e){if(a.state==="revoked"||x(a,o)!=="fresh")continue;const c=a.capabilities?.providers.find(l=>l.id===n);if(!(!c||!_e(c)))for(const l of c.models)i.add(l)}return[...i]}const ue=new Set(["cli-missing","prerequisite-missing"]);function _e(e){return e.visible!==!1&&!ue.has(e.status)}const pe=new Set(["signed-out","auth-failed"]);function fe(e){return pe.has(e)}function he(e,t){if(m(t))return!1;const o=f(t),n=e?.capabilities?.providers.find(i=>i.id===o);return!!n&&fe(n.status)}function D(e,t){return(t.defaultRemoteLaunch?t.defaultRemoteLaunch[e]==="send":!t.defaultRemoteIncompatibility?.[e])&&t.defaultHasOverrides?.[e]!==!1}function ve(e,t,o){return o.defaultRemoteLaunch?.[t]==="refused"?!1:!e.cloud&&!he(e,t)}function It(e){const{machine:t,providerRef:o}=e;return m(o)||ve(t,o,e)||D(o,e)?null:e.catalogProfiles.find(n=>n.baseProviderId===o&&n.remoteCompatible===!0)??null}const me="https://e2b.dev/dashboard",Me="https://app.northflank.com",be="https://www.agent37.com/dashboard/cloud",ge="https://vercel.com/dashboard";function Ot(e="e2b"){return e==="vercel"?ge:e==="northflank"?Me:e==="agent37"?be:me}function Se(e){switch(e){case"northflank":return{keyRejected:r.cloudMachines_northflank_state_tokenRejected_label(),unreachable:r.cloudMachines_northflank_state_unreachable_label(),ownerOnly:r.cloudMachines_northflank_error_ownerOnly(),saved:r.cloudMachines_northflank_saved_toast(),listTitle:r.cloudMachines_northflank_services_title(),dashboardOpen:r.cloudMachines_northflank_dashboardOpen_label(),deleteTitle:r.cloudMachines_northflank_delete_confirmTitle,deleteDescription:r.cloudMachines_northflank_delete_confirm_description(),creating:r.cloudMachines_northflank_start_creating(),startFailed:r.cloudMachines_northflank_startFailure_title(),startUnknown:r.cloudMachines_northflank_startFailure_unknown_cause()};case"agent37":return{keyRejected:r.cloudMachines_state_keyRejected_label(),unreachable:r.cloudMachines_agent37_state_unreachable_label(),ownerOnly:r.cloudMachines_agent37_error_ownerOnly(),saved:r.cloudMachines_agent37_saved_toast(),listTitle:r.cloudMachines_agent37_instances_title(),dashboardOpen:r.cloudMachines_agent37_dashboardOpen_label(),deleteTitle:r.cloudMachines_agent37_delete_confirmTitle,deleteDescription:r.cloudMachines_agent37_delete_confirm_description(),creating:r.cloudMachines_agent37_start_creating(),startFailed:r.cloudMachines_agent37_startFailure_title(),startUnknown:r.cloudMachines_agent37_startFailure_unknown_cause()};case"vercel":return{keyRejected:r.cloudMachines_vercel_state_tokenRejected_label(),unreachable:r.cloudMachines_vercel_state_unreachable_label(),ownerOnly:r.cloudMachines_vercel_error_ownerOnly(),saved:r.cloudMachines_vercel_saved_toast(),listTitle:r.cloudMachines_vercel_sandboxes_title(),dashboardOpen:r.cloudMachines_vercel_dashboardOpen_label(),deleteTitle:r.cloudMachines_delete_confirmTitle,deleteDescription:r.cloudMachines_vercel_delete_confirm_description(),creating:r.cloudMachines_vercel_start_creating(),startFailed:r.cloudMachines_vercel_startFailure_title(),startUnknown:r.cloudMachines_vercel_startFailure_unknown_cause()};default:return{keyRejected:r.cloudMachines_state_keyRejected_label(),unreachable:r.cloudMachines_state_unreachable_label(),ownerOnly:r.cloudMachines_error_ownerOnly(),saved:r.cloudMachines_saved_toast(),listTitle:r.cloudMachines_sandboxes_title(),dashboardOpen:r.cloudMachines_dashboardOpen_label(),deleteTitle:r.cloudMachines_delete_confirmTitle,deleteDescription:r.cloudMachines_delete_confirm_description(),creating:r.cloudMachines_start_creating(),startFailed:r.cloudMachines_startFailure_title(),startUnknown:r.cloudMachines_startFailure_unknown_cause()}}}function wt(e){return e==="vm"?r.cloudMachines_agent37_form_type_vm():r.cloudMachines_agent37_form_type_default()}function At(e){return e==="eu"?r.cloudMachines_agent37_region_eu():e==="ap-south"?r.cloudMachines_agent37_region_apSouth():r.cloudMachines_agent37_region_us()}const Pe=/^E2B\s*·\s*/u;function Lt(e,t){const o=t?`${t} · `:null;return(o&&e.name.startsWith(o)?e.name.slice(o.length):e.name.replace(Pe,"")).trim()||e.name}function Et(e){const t=B(e);return t?r.cloudMachines_size_label({vcpu:String(t.vcpu),memory:String(t.memoryGiB)}):e}function xt(e,t,o){const n=e.cloud;if(!n)return 0;const i=n.state==="running"&&t>0?Math.max(0,(o-t)/1e3):0;return Math.floor(n.runningSeconds+i)}function Dt(e){const t=Math.floor(e/60);if(t<1)return r.cloudMachines_uptime_underMinute();if(t<60)return r.cloudMachines_uptime_minutes({minutes:String(t)});const o=Math.floor(t/60),n=t%60;return n===0?r.cloudMachines_uptime_hours({hours:String(o)}):r.cloudMachines_uptime_hoursMinutes({hours:String(o),minutes:String(n)})}const ke=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function jt(e){const t=V(e,3600);return t===null?null:r.cloudMachines_size_hourly({amount:ke.format(t)})}function j(e){try{return new URL(e).host||e}catch{return e}}function qt(e){const t=e.find(o=>o.cloud?.state==="running")?.cloud?.relayUrl;return t?r.cloudMachines_relay_host({host:j(t)}):null}function Nt(e){const t=a=>e.filter(c=>c.cloud?.state===a).length,o=t("running"),n=t("paused"),i=[o>0?r.cloudMachines_sandboxes_running_count({count:String(o)}):null,n>0?r.cloudMachines_sandboxes_paused_count({count:String(n)}):null].filter(a=>a!==null);return i.length>0?i.join(" · "):null}function Tt(e,t){const o=new Map;for(const a of e){const c=a.cloud?.workspaceId,l=c?t(c):null,_=c&&l?c:"";let d=o.get(_);d||(d={key:_,name:l??r.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},o.set(_,d)),d.sandboxes.push(a)}const n=a=>+(a.cloud?.state==="paused"),i=a=>Number(a.sandboxes.every(c=>n(c)));for(const a of o.values())a.sandboxes.sort((c,l)=>n(c)-n(l)||(l.cloud?.startedAt??"").localeCompare(c.cloud?.startedAt??"")||c.id.localeCompare(l.id));return[...o.values()].sort((a,c)=>i(a)-i(c)||+(a.key==="")-+(c.key==="")||a.name.localeCompare(c.name,void 0,{sensitivity:"base"})||a.key.localeCompare(c.key))}function Re(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_northflank_error_profileRequired_title(),description:r.cloudMachines_northflank_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_northflank_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_northflank_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_northflank_error_quotaRate_description():r.cloudMachines_northflank_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_northflank_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_northflank_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_northflank_error_tokenRejected_title(),description:r.cloudMachines_northflank_error_tokenRejected_description()};case"project-missing":return t(r.cloudMachines_northflank_error_projectMissing_description());case"permission-denied":return{title:r.cloudMachines_northflank_error_permissionDenied_title(),description:r.cloudMachines_northflank_error_permissionDenied_description()};case"template-missing":return t(r.cloudMachines_northflank_error_imageMissing_description());case"sandbox-lost":return{title:r.cloudMachines_northflank_error_serviceLost_title(),description:r.cloudMachines_northflank_error_serviceLost_description()};case"bootstrap-failed":return t(r.cloudMachines_northflank_error_bootstrapFailed_description());default:return t(r.cloudMachines_northflank_error_apiError_description())}}}}function ye(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_agent37_error_profileRequired_title(),description:r.cloudMachines_agent37_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_agent37_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_agent37_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_agent37_error_quotaRate_description():r.cloudMachines_agent37_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_agent37_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_agent37_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_agent37_error_keyRejected_title(),description:r.cloudMachines_agent37_error_keyRejected_description()};case"permission-denied":return{title:r.cloudMachines_agent37_error_permissionDenied_title(),description:r.cloudMachines_agent37_error_permissionDenied_description()};case"no-capacity":return{title:r.cloudMachines_agent37_error_noCapacity_title(),description:r.cloudMachines_agent37_error_noCapacity_description()};case"template-missing":return t(r.cloudMachines_agent37_error_templateMissing_description());case"sandbox-lost":return{title:r.cloudMachines_agent37_error_instanceLost_title(),description:r.cloudMachines_agent37_error_instanceLost_description()};case"bootstrap-failed":return t(r.cloudMachines_agent37_error_bootstrapFailed_description());default:return t(r.cloudMachines_agent37_error_apiError_description())}}}}function Ce(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_vercel_error_profileRequired_title(),description:r.cloudMachines_vercel_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_vercel_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_vercel_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_vercel_error_quotaRate_description():r.cloudMachines_vercel_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_vercel_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_vercel_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_vercel_error_keyRejected_title(),description:r.cloudMachines_vercel_error_keyRejected_description()};case"project-missing":return t(r.cloudMachines_vercel_error_projectMissing_description());case"permission-denied":return{title:r.cloudMachines_vercel_error_permissionDenied_title(),description:r.cloudMachines_vercel_error_permissionDenied_description()};case"template-missing":return t(r.cloudMachines_vercel_error_imageMissing_description());case"sandbox-lost":return{title:r.cloudMachines_vercel_error_sandboxLost_title(),description:r.cloudMachines_vercel_error_sandboxLost_description()};case"bootstrap-failed":return t(r.cloudMachines_vercel_error_bootstrapFailed_description());default:return t(r.cloudMachines_vercel_error_apiError_description())}}}}function Ft(e,t){if(e.code==="cloud-machine-unavailable"&&e.reason==="relay-unreachable")return{title:r.cloudMachines_error_relayUnreachable_title(),description:e.relayUrl?r.cloudMachines_error_relayUnreachable_description({host:j(e.relayUrl)}):r.cloudMachines_error_relayUnreachable_noHost_description()};const o=e.provider??t;if(o==="northflank")return Re(e);if(o==="agent37")return ye(e);if(o==="vercel")return Ce(e);switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_error_profileRequired_title(),description:r.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_error_quotaRate_description():r.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(e.reason){case"not-configured":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:r.cloudMachines_error_keyRejected_title(),description:r.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:r.cloudMachines_error_sandboxLost_title(),description:r.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_bootstrapFailed_description()};default:return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_apiError_description()}}}}function Bt(e,t,o){const n=e.trim();if(!n)return r.cloudMachines_form_name_required();if(U(n)>H||/[\u0000-\u001f\u007f]/u.test(n))return r.cloudMachines_form_name_invalid();const i=n.toLowerCase();return t.some(a=>a.id!==o&&a.name.trim().toLowerCase()===i)?r.cloudMachines_form_name_taken():null}const Ie=s.createSelector(e=>W.select(e)&&e.remoteMachines?.supported===!0&&e.cloudMachines?.supported===!0),Ut=s.createSelector(e=>{const t=e.cloudMachines?.providerKinds??["e2b"];return e.cloudMachines?.entries===!0?t:t.filter(o=>o==="e2b")}),Ht=s.createSelector(e=>e.cloudMachines?.diskSettings??{}),Vt=s.createSelector(e=>e.cloudMachines?.entries===!0);function q(e){return Object.values(e.cloudMachines?.providers??{}).sort((t,o)=>t.configuredAt.localeCompare(o.configuredAt)||t.name.localeCompare(o.name))}const Yt=s.createSelector(q),Wt=s.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).sort((t,o)=>(t.cloud?.startedAt??"").localeCompare(o.cloud?.startedAt??""))),zt=s.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).filter(t=>t.cloud?.state==="paused").length);function Oe(e,t){const o=t.cloud;return!o?.agentId||!o.workspaceId||!I.select(e,o.workspaceId)?null:{workspaceId:o.workspaceId,agentId:o.agentId}}const Kt=s.createSelector((e,t)=>{const o={},n={};for(const i of t){const a=i.cloud?.workspaceId;if(a&&!(a in o)){const c=I.select(e,a);o[a]=c?.title||c?.name||null}n[i.id]=Oe(e,i)}return{workspaceNames:o,agentLinks:n}}),$t=s.createSelector(e=>e.cloudMachines?.readAt??{}),Gt=s.createSelector(e=>e.cloudMachines?.pending??{}),Xt=s.createSelector(e=>e.cloudMachines?.failures??{}),Zt=s.createSelector(e=>e.cloudMachines?.validated??null);function Jt(e){if(!Ie.select(e))return null;const t=q(e);if(t.length===0)return null;const o=e.cloudMachines?.entries===!0;return t.map(n=>({cloudMachineId:n.id,label:n.provider==="e2b"?o&&(t.length>1||n.name.trim().toLowerCase()!=="e2b")?r.cloudMachines_startOn_entry_label({name:n.name}):r.cloudMachines_startOn_label():n.name.trim().toLowerCase()===k(n.provider).toLowerCase()?k(n.provider):n.provider==="northflank"?r.cloudMachines_startOn_northflank_label({name:n.name}):n.provider==="agent37"?r.cloudMachines_startOn_agent37_label({name:n.name}):r.cloudMachines_startOn_vercel_label({name:n.name}),unavailableReason:n.state==="key-rejected"?Se(n.provider).keyRejected:null,needsProfile:!we(e,n)}))}function we(e,t){const o=oe.select(e),n=e.providerSettings?.profiles?.defaults??{},i={defaultRemoteLaunch:Z.select(e),defaultRemoteIncompatibility:X.select(e)},a=d=>o[d]!==!1&&(t.agentProviders.length===0||t.agentProviders.includes(d)),c=new Set([...t.agentProviders,...Object.keys(i.defaultRemoteLaunch??{})]);for(const d of c)if(a(d)&&(n[d]?.env.length??0)>0&&D(d,i))return!0;const l=e.providerSettings?.profiles?.items,_=l?p(l):[];return J.select(e).some(d=>{if(d.remoteCompatible!==!0||!a(d.baseProviderId))return!1;const P=_.find(b=>b.providerRef===d.providerRef);return!P||P.env.some(b=>b.kind==="set")})}function Qt(e,t,o=e.cloudMachines?.providers[Y]??null){if(!t)return null;const n=o,i=f(t);if(n&&n.agentProviders.length>0&&!n.agentProviders.includes(i))return r.cloudMachines_startOn_providerMissing();const a=e.providerSettings?.profiles;if(m(t)){const l=a?p(a.items).find(_=>_.providerRef===t):void 0;return l?l.remoteCompatible===!1?r.cloudMachines_startOn_needsProfile():l.env.some(_=>_.kind==="set")?null:r.cloudMachines_startOn_needsProfile():null}const c=a?.defaults?.[i];return c?c.remoteCompatible===!1?r.cloudMachines_startOn_needsProfile():c.env.some(l=>l.kind==="set")?null:r.cloudMachines_startOn_needsProfile():a?.loadStatus==="success"?r.cloudMachines_startOn_needsProfile():null}export{re as $,E as A,xt as B,x as C,yt as D,v as E,Ct as F,It as G,Rt as H,kt as I,Lt as J,g as K,S as L,it as M,je as N,Ht as O,Q as P,Yt as Q,Vt as R,Xt as S,Ie as T,Gt as U,Ut as V,$t as W,Wt as X,Zt as Y,oe as Z,nt as _,At as a,et as a0,Fe as a1,A as a2,Qe as a3,Be as a4,ze as a5,zt as a6,st as a7,Te as a8,lt as a9,Je as aA,ot as aB,Kt as aC,Jt as aD,gt as aE,ct as aa,He as ab,Ve as ac,tt as ad,rt as ae,Ue as af,Ne as ag,Ye as ah,We as ai,Xe as aj,Ze as ak,dt as al,ft as am,vt as an,ht as ao,mt as ap,pt as aq,at as ar,_t as as,ut as at,qe as au,Mt as av,$e as aw,Ke as ax,w as ay,Ge as az,wt as b,Ot as c,Bt as d,qt as e,Ft as f,Qt as g,Se as h,Nt as i,Et as j,bt as k,ve as l,D as m,ie as n,Pt as o,le as p,ce as q,St as r,Dt as s,te as t,Tt as u,jt as v,_e as w,O as x,De as y,he as z};
|
|
1
|
+
import{bm as r}from"./YLhFQnIu.js";import{Jx as s,nZ as p,C2 as N,yI as f,q_ as T,nY as F,s1 as m,hu as B,LK as U,o as H,mY as V,hq as k,F as Y}from"./D5wnbxHp.js";import{w as W}from"./_3Ca9E4W.js";import{cx as z,cf as K,cS as $,co as h,cc as M,cJ as R,c$ as C,c_ as G,dH as I,cY as X,cZ as Z,d1 as J}from"./BJbm_MWC.js";const Q={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},ee=new Map(Object.entries(Q).map(([e,t])=>[t,e]));function te(e,t){const o=ee.get(t);return o===void 0?void 0:e?.providers[o]}function De(e,t){const o=te(e,t);return o?.available===!0&&O(t,o.authenticated)}const je=new Set(["claude-code"]);function O(e,t){return t!==!1}const y=new WeakMap,qe=s.createSelector((e,t)=>e.agentAvailability.providerStatusMap[t]?.viaNpx===!0),w=s.createSelector(e=>{if(!z.select(e))return e.agentAvailability.providerStatusMap;const t=e.providerCatalog?.providers;if(!t)return{};let o=y.get(t);return o||(o=Object.fromEntries(p(t).map(n=>[n.id,{available:!0}])),y.set(t,o)),o}),Ne=s.createSelector(e=>e.agentAvailability.providerLoadingMap),Te=s.createSelector(e=>e.agentAvailability.providerCheckEpochMap),re=s.createSelector(e=>e.agentAvailability.hasCheckedOnce),Fe=s.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),Be=s.createSelector(e=>e.agentAvailability.npxStatus),Ue=s.createSelector(e=>e.agentAvailability.hiddenProviders),He=s.createSelector(e=>e.agentAvailability.discoveryError),Ve=s.createSelector(e=>e.agentAvailability.discoveryRevision),Ye=s.createSelector(e=>e.agentAvailability.refreshModelsPending),We=s.createSelector(e=>e.agentAvailability.refreshModelsRevision),ze=s.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&K.select(e)==="owner"?$.select(e):null),Ke=s.createSelector((e,t)=>p(e.providerSettings.requests).filter(o=>o.sessionId===t)),$e=s.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Ge=s.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),Xe=s.createSelector(e=>e.providerSettings.paths),Ze=s.createSelector(e=>e.providerSettings.pathsRevision),g=s.createSelector(e=>h.select(e)?M.select(e)?.defaultProviderId??"":e.model.defaultProviderId);s.createSelector((e,t)=>g.select(e)===t);const oe=s.createSelector(e=>h.select(e)?Object.fromEntries((M.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),A=s.createSelector((e,t)=>{if(h.select(e))return M.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return N(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),L=s.createSelector(e=>{if(h.select(e))return M.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?p(e.providerCatalog.providers):[],n=new Set(o.filter(c=>A.select(e,c.id)).map(c=>c.id)),i=g.select(e),a=f(i);a&&t[a]!==!1&&n.add(a);for(const[c,l]of Object.entries(t))l&&n.add(c);return[...n]});function ne(e,t){const o=C.select(e,t);return h.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const S=s.createSelector(e=>{const t=w.select(e);return L.select(e).filter(o=>!ne(e,o)&&t[o]?.available===!0)}),Je=s.createSelector((e,t)=>{const o=w.select(e),n=R.select(e,t);return S.select(e).filter(i=>R.select(e,i)!==n&&A.select(e,i)&&O(i,o[i]?.authenticated))}),Qe=s.createSelector(e=>re.select(e)?S.select(e):L.select(e)),et=s.createSelector(e=>{const t=f(g.select(e));return S.select(e).includes(t)}),tt=s.createSelector(e=>e.providerSettings.fastMode),rt=s.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[n,i]of Object.entries(t?.pending??{}))o[n]=i.enabled;return o}),ot=s.createSelector(e=>Object.values(u(e).defaults).some(t=>t.remoteLaunch!==void 0)),nt=s.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>C.select(e,t)?.supportsFastMode===!0):[]),u=e=>e.providerSettings?.profiles??T,st=s.createSelector(e=>G.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),at=s.createSelector((e,t)=>p(u(e).items).filter(o=>o.baseProviderId===t)),it=s.createSelector(e=>[...new Set(p(u(e).items).map(t=>t.baseProviderId))]),ct=s.createSelector(e=>u(e).defaults),lt=s.createSelector((e,t)=>u(e).defaults[t]),dt=s.createSelector((e,t)=>F(u(e).items,t)),ut=s.createSelector(e=>u(e).revision),_t=s.createSelector(e=>u(e).loadStatus),pt=s.createSelector(e=>u(e).status),ft=s.createSelector(e=>u(e).activation),ht=s.createSelector(e=>Object.fromEntries(p(u(e).mutations).map(t=>[t.id,t]))),se={},vt=s.createSelector(e=>u(e).identity??se),ae={},mt=s.createSelector(e=>u(e).setups??ae),Mt=s.createSelector(e=>(e.providerSettings?.sessions.length??0)>0);function E(e){const t=e.trim();if(!t.startsWith("tc"))return!1;const o=t.slice(2);if(o.length<50||o.length%4===1||!/^[A-Za-z0-9_-]+$/.test(o))return!1;const n=atob(o.slice(0,4).replace(/-/g,"+").replace(/_/g,"/")).charCodeAt(0);return n>=161&&n<=187||n===191}function bt(e){if(!e||typeof e!="object")return null;const t=e;for(const o of[t.collaborationName,t.prettyHostname,t.hostname])if(typeof o=="string"&&v(o))return v(o);return null}function gt(e){return[...v(e)].length<=100&&!/\p{Cc}/u.test(e)}function v(e){return e.replace(/^\p{White_Space}+|\p{White_Space}+$/gu,"")}function ie(e){const t=e.label.trim(),o=e.host&&e.port!=null?`${e.host}:${e.port}`:"";return(t&&t!==o?t:"")||e.hostname?.trim()||t||o}function ce(e){return r.layout_daemonStatus_localConnection_label()}function St(e,t){return e.isLocal?ce():ie(e)}function le(e){const t=v(e.hostname??"");return t||(E(e.label)?r.connection_unknownHost_label():e.label)}function Pt(e){const t=e.label.trim();return!t||E(t)?null:t!==le(e)?t:null}function kt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.defaultRemoteLaunch||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Rt(e,t,o){if(m(e)){const n=t.find(i=>i.providerRef===e);return n?.remoteCompatible!==!1?null:n.remoteIncompatibility??{reason:"unknown",keys:[]}}return null}const de=1440*60*1e3;function x(e,t){if(!e?.capabilities)return"missing";const o=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(o)&&t-o>de?"stale":"fresh"}function yt(e,t,o){if(!e||x(e,o)!=="fresh")return;const n=f(t),i=e.capabilities?.providers.find(a=>a.id===n);return i&&i.models.length>0?i.models:void 0}function Ct(e,t,o){const n=f(t),i=new Set;for(const a of e){if(a.state==="revoked"||x(a,o)!=="fresh")continue;const c=a.capabilities?.providers.find(l=>l.id===n);if(!(!c||!_e(c)))for(const l of c.models)i.add(l)}return[...i]}const ue=new Set(["cli-missing","prerequisite-missing"]);function _e(e){return e.visible!==!1&&!ue.has(e.status)}const pe=new Set(["signed-out","auth-failed"]);function fe(e){return pe.has(e)}function he(e,t){if(m(t))return!1;const o=f(t),n=e?.capabilities?.providers.find(i=>i.id===o);return!!n&&fe(n.status)}function D(e,t){return(t.defaultRemoteLaunch?t.defaultRemoteLaunch[e]==="send":!t.defaultRemoteIncompatibility?.[e])&&t.defaultHasOverrides?.[e]!==!1}function ve(e,t,o){return o.defaultRemoteLaunch?.[t]==="refused"?!1:!e.cloud&&!he(e,t)}function It(e){const{machine:t,providerRef:o}=e;return m(o)||ve(t,o,e)||D(o,e)?null:e.catalogProfiles.find(n=>n.baseProviderId===o&&n.remoteCompatible===!0)??null}const me="https://e2b.dev/dashboard",Me="https://app.northflank.com",be="https://www.agent37.com/dashboard/cloud",ge="https://vercel.com/dashboard";function Ot(e="e2b"){return e==="vercel"?ge:e==="northflank"?Me:e==="agent37"?be:me}function Se(e){switch(e){case"northflank":return{keyRejected:r.cloudMachines_northflank_state_tokenRejected_label(),unreachable:r.cloudMachines_northflank_state_unreachable_label(),ownerOnly:r.cloudMachines_northflank_error_ownerOnly(),saved:r.cloudMachines_northflank_saved_toast(),listTitle:r.cloudMachines_northflank_services_title(),dashboardOpen:r.cloudMachines_northflank_dashboardOpen_label(),deleteTitle:r.cloudMachines_northflank_delete_confirmTitle,deleteDescription:r.cloudMachines_northflank_delete_confirm_description(),creating:r.cloudMachines_northflank_start_creating(),startFailed:r.cloudMachines_northflank_startFailure_title(),startUnknown:r.cloudMachines_northflank_startFailure_unknown_cause()};case"agent37":return{keyRejected:r.cloudMachines_state_keyRejected_label(),unreachable:r.cloudMachines_agent37_state_unreachable_label(),ownerOnly:r.cloudMachines_agent37_error_ownerOnly(),saved:r.cloudMachines_agent37_saved_toast(),listTitle:r.cloudMachines_agent37_instances_title(),dashboardOpen:r.cloudMachines_agent37_dashboardOpen_label(),deleteTitle:r.cloudMachines_agent37_delete_confirmTitle,deleteDescription:r.cloudMachines_agent37_delete_confirm_description(),creating:r.cloudMachines_agent37_start_creating(),startFailed:r.cloudMachines_agent37_startFailure_title(),startUnknown:r.cloudMachines_agent37_startFailure_unknown_cause()};case"vercel":return{keyRejected:r.cloudMachines_vercel_state_tokenRejected_label(),unreachable:r.cloudMachines_vercel_state_unreachable_label(),ownerOnly:r.cloudMachines_vercel_error_ownerOnly(),saved:r.cloudMachines_vercel_saved_toast(),listTitle:r.cloudMachines_vercel_sandboxes_title(),dashboardOpen:r.cloudMachines_vercel_dashboardOpen_label(),deleteTitle:r.cloudMachines_delete_confirmTitle,deleteDescription:r.cloudMachines_vercel_delete_confirm_description(),creating:r.cloudMachines_vercel_start_creating(),startFailed:r.cloudMachines_vercel_startFailure_title(),startUnknown:r.cloudMachines_vercel_startFailure_unknown_cause()};default:return{keyRejected:r.cloudMachines_state_keyRejected_label(),unreachable:r.cloudMachines_state_unreachable_label(),ownerOnly:r.cloudMachines_error_ownerOnly(),saved:r.cloudMachines_saved_toast(),listTitle:r.cloudMachines_sandboxes_title(),dashboardOpen:r.cloudMachines_dashboardOpen_label(),deleteTitle:r.cloudMachines_delete_confirmTitle,deleteDescription:r.cloudMachines_delete_confirm_description(),creating:r.cloudMachines_start_creating(),startFailed:r.cloudMachines_startFailure_title(),startUnknown:r.cloudMachines_startFailure_unknown_cause()}}}function wt(e){return e==="vm"?r.cloudMachines_agent37_form_type_vm():r.cloudMachines_agent37_form_type_default()}function At(e){return e==="eu"?r.cloudMachines_agent37_region_eu():e==="ap-south"?r.cloudMachines_agent37_region_apSouth():r.cloudMachines_agent37_region_us()}const Pe=/^E2B\s*·\s*/u;function Lt(e,t){const o=t?`${t} · `:null;return(o&&e.name.startsWith(o)?e.name.slice(o.length):e.name.replace(Pe,"")).trim()||e.name}function Et(e){const t=B(e);return t?r.cloudMachines_size_label({vcpu:String(t.vcpu),memory:String(t.memoryGiB)}):e}function xt(e,t,o){const n=e.cloud;if(!n)return 0;const i=n.state==="running"&&t>0?Math.max(0,(o-t)/1e3):0;return Math.floor(n.runningSeconds+i)}function Dt(e){const t=Math.floor(e/60);if(t<1)return r.cloudMachines_uptime_underMinute();if(t<60)return r.cloudMachines_uptime_minutes({minutes:String(t)});const o=Math.floor(t/60),n=t%60;return n===0?r.cloudMachines_uptime_hours({hours:String(o)}):r.cloudMachines_uptime_hoursMinutes({hours:String(o),minutes:String(n)})}const ke=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function jt(e){const t=V(e,3600);return t===null?null:r.cloudMachines_size_hourly({amount:ke.format(t)})}function j(e){try{return new URL(e).host||e}catch{return e}}function qt(e){const t=e.find(o=>o.cloud?.state==="running")?.cloud?.relayUrl;return t?r.cloudMachines_relay_host({host:j(t)}):null}function Nt(e){const t=a=>e.filter(c=>c.cloud?.state===a).length,o=t("running"),n=t("paused"),i=[o>0?r.cloudMachines_sandboxes_running_count({count:String(o)}):null,n>0?r.cloudMachines_sandboxes_paused_count({count:String(n)}):null].filter(a=>a!==null);return i.length>0?i.join(" · "):null}function Tt(e,t){const o=new Map;for(const a of e){const c=a.cloud?.workspaceId,l=c?t(c):null,_=c&&l?c:"";let d=o.get(_);d||(d={key:_,name:l??r.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},o.set(_,d)),d.sandboxes.push(a)}const n=a=>+(a.cloud?.state==="paused"),i=a=>Number(a.sandboxes.every(c=>n(c)));for(const a of o.values())a.sandboxes.sort((c,l)=>n(c)-n(l)||(l.cloud?.startedAt??"").localeCompare(c.cloud?.startedAt??"")||c.id.localeCompare(l.id));return[...o.values()].sort((a,c)=>i(a)-i(c)||+(a.key==="")-+(c.key==="")||a.name.localeCompare(c.name,void 0,{sensitivity:"base"})||a.key.localeCompare(c.key))}function Re(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_northflank_error_profileRequired_title(),description:r.cloudMachines_northflank_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_northflank_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_northflank_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_northflank_error_quotaRate_description():r.cloudMachines_northflank_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_northflank_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_northflank_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_northflank_error_tokenRejected_title(),description:r.cloudMachines_northflank_error_tokenRejected_description()};case"project-missing":return t(r.cloudMachines_northflank_error_projectMissing_description());case"permission-denied":return{title:r.cloudMachines_northflank_error_permissionDenied_title(),description:r.cloudMachines_northflank_error_permissionDenied_description()};case"template-missing":return t(r.cloudMachines_northflank_error_imageMissing_description());case"sandbox-lost":return{title:r.cloudMachines_northflank_error_serviceLost_title(),description:r.cloudMachines_northflank_error_serviceLost_description()};case"bootstrap-failed":return t(r.cloudMachines_northflank_error_bootstrapFailed_description());default:return t(r.cloudMachines_northflank_error_apiError_description())}}}}function ye(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_agent37_error_profileRequired_title(),description:r.cloudMachines_agent37_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_agent37_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_agent37_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_agent37_error_quotaRate_description():r.cloudMachines_agent37_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_agent37_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_agent37_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_agent37_error_keyRejected_title(),description:r.cloudMachines_agent37_error_keyRejected_description()};case"permission-denied":return{title:r.cloudMachines_agent37_error_permissionDenied_title(),description:r.cloudMachines_agent37_error_permissionDenied_description()};case"no-capacity":return{title:r.cloudMachines_agent37_error_noCapacity_title(),description:r.cloudMachines_agent37_error_noCapacity_description()};case"template-missing":return t(r.cloudMachines_agent37_error_templateMissing_description());case"sandbox-lost":return{title:r.cloudMachines_agent37_error_instanceLost_title(),description:r.cloudMachines_agent37_error_instanceLost_description()};case"bootstrap-failed":return t(r.cloudMachines_agent37_error_bootstrapFailed_description());default:return t(r.cloudMachines_agent37_error_apiError_description())}}}}function Ce(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_vercel_error_profileRequired_title(),description:r.cloudMachines_vercel_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_vercel_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_vercel_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_vercel_error_quotaRate_description():r.cloudMachines_vercel_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_vercel_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_vercel_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_vercel_error_keyRejected_title(),description:r.cloudMachines_vercel_error_keyRejected_description()};case"project-missing":return t(r.cloudMachines_vercel_error_projectMissing_description());case"permission-denied":return{title:r.cloudMachines_vercel_error_permissionDenied_title(),description:r.cloudMachines_vercel_error_permissionDenied_description()};case"template-missing":return t(r.cloudMachines_vercel_error_imageMissing_description());case"sandbox-lost":return{title:r.cloudMachines_vercel_error_sandboxLost_title(),description:r.cloudMachines_vercel_error_sandboxLost_description()};case"bootstrap-failed":return t(r.cloudMachines_vercel_error_bootstrapFailed_description());default:return t(r.cloudMachines_vercel_error_apiError_description())}}}}function Ft(e,t){if(e.code==="cloud-machine-unavailable"&&e.reason==="relay-unreachable")return{title:r.cloudMachines_error_relayUnreachable_title(),description:e.relayUrl?r.cloudMachines_error_relayUnreachable_description({host:j(e.relayUrl)}):r.cloudMachines_error_relayUnreachable_noHost_description()};const o=e.provider??t;if(o==="northflank")return Re(e);if(o==="agent37")return ye(e);if(o==="vercel")return Ce(e);switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_error_profileRequired_title(),description:r.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_error_quotaRate_description():r.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(e.reason){case"not-configured":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:r.cloudMachines_error_keyRejected_title(),description:r.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:r.cloudMachines_error_sandboxLost_title(),description:r.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_bootstrapFailed_description()};default:return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_apiError_description()}}}}function Bt(e,t,o){const n=e.trim();if(!n)return r.cloudMachines_form_name_required();if(U(n)>H||/[\u0000-\u001f\u007f]/u.test(n))return r.cloudMachines_form_name_invalid();const i=n.toLowerCase();return t.some(a=>a.id!==o&&a.name.trim().toLowerCase()===i)?r.cloudMachines_form_name_taken():null}const Ie=s.createSelector(e=>W.select(e)&&e.remoteMachines?.supported===!0&&e.cloudMachines?.supported===!0),Ut=s.createSelector(e=>{const t=e.cloudMachines?.providerKinds??["e2b"];return e.cloudMachines?.entries===!0?t:t.filter(o=>o==="e2b")}),Ht=s.createSelector(e=>e.cloudMachines?.diskSettings??{}),Vt=s.createSelector(e=>e.cloudMachines?.entries===!0);function q(e){return Object.values(e.cloudMachines?.providers??{}).sort((t,o)=>t.configuredAt.localeCompare(o.configuredAt)||t.name.localeCompare(o.name))}const Yt=s.createSelector(q),Wt=s.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).sort((t,o)=>(t.cloud?.startedAt??"").localeCompare(o.cloud?.startedAt??""))),zt=s.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).filter(t=>t.cloud?.state==="paused").length);function Oe(e,t){const o=t.cloud;return!o?.agentId||!o.workspaceId||!I.select(e,o.workspaceId)?null:{workspaceId:o.workspaceId,agentId:o.agentId}}const Kt=s.createSelector((e,t)=>{const o={},n={};for(const i of t){const a=i.cloud?.workspaceId;if(a&&!(a in o)){const c=I.select(e,a);o[a]=c?.title||c?.name||null}n[i.id]=Oe(e,i)}return{workspaceNames:o,agentLinks:n}}),$t=s.createSelector(e=>e.cloudMachines?.readAt??{}),Gt=s.createSelector(e=>e.cloudMachines?.pending??{}),Xt=s.createSelector(e=>e.cloudMachines?.failures??{}),Zt=s.createSelector(e=>e.cloudMachines?.validated??null);function Jt(e){if(!Ie.select(e))return null;const t=q(e);if(t.length===0)return null;const o=e.cloudMachines?.entries===!0;return t.map(n=>({cloudMachineId:n.id,label:n.provider==="e2b"?o&&(t.length>1||n.name.trim().toLowerCase()!=="e2b")?r.cloudMachines_startOn_entry_label({name:n.name}):r.cloudMachines_startOn_label():n.name.trim().toLowerCase()===k(n.provider).toLowerCase()?k(n.provider):n.provider==="northflank"?r.cloudMachines_startOn_northflank_label({name:n.name}):n.provider==="agent37"?r.cloudMachines_startOn_agent37_label({name:n.name}):r.cloudMachines_startOn_vercel_label({name:n.name}),unavailableReason:n.state==="key-rejected"?Se(n.provider).keyRejected:null,needsProfile:!we(e,n)}))}function we(e,t){const o=oe.select(e),n=e.providerSettings?.profiles?.defaults??{},i={defaultRemoteLaunch:Z.select(e),defaultRemoteIncompatibility:X.select(e)},a=d=>o[d]!==!1&&(t.agentProviders.length===0||t.agentProviders.includes(d)),c=new Set([...t.agentProviders,...Object.keys(i.defaultRemoteLaunch??{})]);for(const d of c)if(a(d)&&(n[d]?.env.length??0)>0&&D(d,i))return!0;const l=e.providerSettings?.profiles?.items,_=l?p(l):[];return J.select(e).some(d=>{if(d.remoteCompatible!==!0||!a(d.baseProviderId))return!1;const P=_.find(b=>b.providerRef===d.providerRef);return!P||P.env.some(b=>b.kind==="set")})}function Qt(e,t,o=e.cloudMachines?.providers[Y]??null){if(!t)return null;const n=o,i=f(t);if(n&&n.agentProviders.length>0&&!n.agentProviders.includes(i))return r.cloudMachines_startOn_providerMissing();const a=e.providerSettings?.profiles;if(m(t)){const l=a?p(a.items).find(_=>_.providerRef===t):void 0;return l?l.remoteCompatible===!1?r.cloudMachines_startOn_needsProfile():l.env.some(_=>_.kind==="set")?null:r.cloudMachines_startOn_needsProfile():null}const c=a?.defaults?.[i];return c?c.remoteCompatible===!1?r.cloudMachines_startOn_needsProfile():c.env.some(l=>l.kind==="set")?null:r.cloudMachines_startOn_needsProfile():a?.loadStatus==="success"?r.cloudMachines_startOn_needsProfile():null}export{re as $,E as A,xt as B,x as C,yt as D,v as E,Ct as F,It as G,Rt as H,kt as I,Lt as J,g as K,S as L,it as M,je as N,Ht as O,Q as P,Yt as Q,Vt as R,Xt as S,Ie as T,Gt as U,Ut as V,$t as W,Wt as X,Zt as Y,oe as Z,nt as _,At as a,et as a0,Fe as a1,A as a2,Qe as a3,Be as a4,ze as a5,zt as a6,st as a7,Te as a8,lt as a9,Je as aA,ot as aB,Kt as aC,Jt as aD,gt as aE,ct as aa,He as ab,Ve as ac,tt as ad,rt as ae,Ue as af,Ne as ag,Ye as ah,We as ai,Xe as aj,Ze as ak,dt as al,ft as am,vt as an,ht as ao,mt as ap,pt as aq,at as ar,_t as as,ut as at,qe as au,Mt as av,$e as aw,Ke as ax,w as ay,Ge as az,wt as b,Ot as c,Bt as d,qt as e,Ft as f,Qt as g,Se as h,Nt as i,Et as j,bt as k,ve as l,D as m,ie as n,Pt as o,le as p,ce as q,St as r,Dt as s,te as t,Tt as u,jt as v,_e as w,O as x,De as y,he as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bv as f}from"./3SdAC2_C.js";import{W as o}from"./DONrLvvt.js";import{bm as u}from"./
|
|
1
|
+
import{bv as f}from"./3SdAC2_C.js";import{W as o}from"./DONrLvvt.js";import{bm as u}from"./YLhFQnIu.js";import{m as b}from"./CZB2ndi9.js";import"./BQhBnAuP.js";import"./CrpUtGFn.js";import"./DJivXy66.js";import"./ChTqQfQN.js";import"./D48_y-cl.js";import"./D5wnbxHp.js";function l(){return globalThis.electronAPI??null}function i(r){const e=r?.enabled;return typeof e=="boolean"?e:null}const k=f(!1,r=>{const e=l();if(!e)return;let t=!0,s=!1;const c=e.on(o.DOCK_LAB_CHANGED,a=>{if(!t)return;const n=i(a);n!==null&&(s=!0,r(n))});return e.invoke(o.GET_DOCK_LAB,{}).then(a=>{const n=i(a);t&&!s&&n!==null&&r(n)}).catch(()=>{}),()=>{t=!1,e.offById(o.DOCK_LAB_CHANGED,c)}});async function d(r){const e=l();if(!e)return!1;try{const t=await e.invoke(o.SET_DOCK_LAB,{enabled:r});if(i(t)===r)return!0}catch{}return b.error(u.settings_gitWorkspace_saveError()),!1}async function y(r){await d(r)}export{k as d,d as r,y as s};
|