@intent-hq/web 2.384.2 → 2.385.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/{CBvkahdk.js → -9EwpXCb.js} +1 -1
- package/web/app/immutable/chunks/{D5u143LD.js → 0Ipp5cFr.js} +1 -1
- package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
- package/web/app/immutable/chunks/{CbDsELcV.js → 3xVgojWv.js} +3 -3
- package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.js} +1 -1
- package/web/app/immutable/chunks/{CNzCvSR9.js → 44rP4fzJ.js} +1 -1
- package/web/app/immutable/chunks/{BTtAt-Pu.js → 4PAYwk2I.js} +1 -1
- package/web/app/immutable/chunks/{DXdFemRu.js → 4g_iHoQm.js} +1 -1
- package/web/app/immutable/chunks/{CXul4WJt.js → 5-0LQoqd.js} +1 -1
- package/web/app/immutable/chunks/{BTc_j7Dt.js → 7KxcPj98.js} +1 -1
- package/web/app/immutable/chunks/{CpMQqUEz.js → 7OH6WUSt.js} +1 -1
- package/web/app/immutable/chunks/{BwLxx4IG.js → 7y3Z0Q49.js} +3 -3
- package/web/app/immutable/chunks/{B4mHWFlW.js → 8jMQM9h0.js} +1 -1
- package/web/app/immutable/chunks/{xmnalplU.js → 94vL4WlW.js} +1 -1
- package/web/app/immutable/chunks/{BVlMQ1xQ.js → 9GO97JAL.js} +1 -1
- package/web/app/immutable/chunks/{CpimfPxg.js → A0KsbysW.js} +1 -1
- package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
- package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
- package/web/app/immutable/chunks/{MsC14vMO.js → B3SHGkI_.js} +1 -1
- package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
- package/web/app/immutable/chunks/{55FYKQCf.js → B5qiyEpH.js} +1 -1
- package/web/app/immutable/chunks/{BNN0vAFF.js → B5tvpTFB.js} +1 -1
- package/web/app/immutable/chunks/{CE0jr9sE.js → B6FGs8l2.js} +1 -1
- package/web/app/immutable/chunks/{Di3TE7pQ.js → B6d1Nolc.js} +1 -1
- package/web/app/immutable/chunks/{B4PfEXaO.js → B6eTPmJH.js} +1 -1
- package/web/app/immutable/chunks/{Ipu7_2rx.js → B72XM8Fm.js} +1 -1
- package/web/app/immutable/chunks/{B7JHU89G.js → B8HnjSSF.js} +1 -1
- package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
- package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
- package/web/app/immutable/chunks/{leDczq9h.js → BD9db4FR.js} +1 -1
- package/web/app/immutable/chunks/{DLvrhtSt.js → BDsciJGp.js} +1 -1
- package/web/app/immutable/chunks/{X-wIiWCo.js → BECK4OaG.js} +1 -1
- package/web/app/immutable/chunks/{qLxI2L63.js → BGReMCaT.js} +1 -1
- package/web/app/immutable/chunks/{BAdVoGAI.js → BHqp2vwo.js} +1 -1
- package/web/app/immutable/chunks/{CIU_APaR.js → BIGqOuh0.js} +1 -1
- package/web/app/immutable/chunks/{DilOhRAO.js → BJO0de_7.js} +1 -1
- package/web/app/immutable/chunks/{BDPP0w0q.js → BJgwBOBz.js} +1 -1
- package/web/app/immutable/chunks/{DxDZbRkP.js → BLKFshyr.js} +1 -1
- package/web/app/immutable/chunks/{BcffwE-d.js → BNV0s95-.js} +1 -1
- package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
- package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
- package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
- package/web/app/immutable/chunks/{CgJXgMzB.js → BQ53265L.js} +1 -1
- package/web/app/immutable/chunks/{DN-MAVuE.js → BQvwLP7I.js} +1 -1
- package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
- package/web/app/immutable/chunks/{Df4fyHSB.js → BSgFpkqa.js} +1 -1
- package/web/app/immutable/chunks/{BOpszErG.js → BSntxgH1.js} +1 -1
- package/web/app/immutable/chunks/{NZ_vlsKe.js → BTEoQf52.js} +1 -1
- package/web/app/immutable/chunks/{jiLgt56M.js → BTLG1BY-.js} +1 -1
- package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
- package/web/app/immutable/chunks/{_0LhNaan.js → BV4VuEnO.js} +1 -1
- package/web/app/immutable/chunks/{CIzFSDuO.js → BVkAOJlr.js} +1 -1
- package/web/app/immutable/chunks/{Bosi029J.js → BVl79jmM.js} +1 -1
- package/web/app/immutable/chunks/{Bw8_vMki.js → BVqF0sgN.js} +1 -1
- package/web/app/immutable/chunks/{iVHs_bWz.js → BVuLEX_p.js} +1 -1
- package/web/app/immutable/chunks/{uAXEbxa8.js → BW1iql_y.js} +1 -1
- package/web/app/immutable/chunks/{DZnKNdAN.js → BWzMAxc1.js} +1 -1
- package/web/app/immutable/chunks/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
- package/web/app/immutable/chunks/{CbucW-av.js → BYl8t9od.js} +1 -1
- package/web/app/immutable/chunks/{D4ZMSrvm.js → BZVhwNIm.js} +3 -3
- package/web/app/immutable/chunks/{Mh0PqgbP.js → B_4WsP9b.js} +1 -1
- package/web/app/immutable/chunks/{D5-RCLzi.js → B_75gRww.js} +1 -1
- package/web/app/immutable/chunks/{CQZUFyS7.js → BbLh3POL.js} +1 -1
- package/web/app/immutable/chunks/{D5q2XDzo.js → BbuLzldI.js} +1 -1
- package/web/app/immutable/chunks/{72S4_8Fo.js → Bc1vJq_Z.js} +1 -1
- package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
- package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
- package/web/app/immutable/chunks/{BXE_7Biv.js → Bf_nrOhg.js} +1 -1
- package/web/app/immutable/chunks/{CwHPdS9l.js → BgDnzAo4.js} +1 -1
- package/web/app/immutable/chunks/{0tWsVa0y.js → Bi_Yd73A.js} +1 -1
- package/web/app/immutable/chunks/{CEjK2ich.js → BjlMkd10.js} +1 -1
- package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
- package/web/app/immutable/chunks/{Ciei8d6b.js → Bs7M8kXA.js} +3 -3
- package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
- package/web/app/immutable/chunks/{CcmN1reb.js → Bu-RLSv9.js} +1 -1
- package/web/app/immutable/chunks/{CXrVII1G.js → BuFDqZnJ.js} +1 -1
- package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
- package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
- package/web/app/immutable/chunks/{DkET5D1Z.js → BvgjsneA.js} +1 -1
- package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
- package/web/app/immutable/chunks/{B4l71ix-.js → By4iSN8L.js} +1 -1
- package/web/app/immutable/chunks/{CU_25eHm.js → BzSCTZkL.js} +1 -1
- package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
- package/web/app/immutable/chunks/{DpeQIGDn.js → C-L0-C2F.js} +2 -2
- package/web/app/immutable/chunks/{0v4yIgtg.js → C-PQQ8rb.js} +1 -1
- package/web/app/immutable/chunks/{D400ElMz.js → C-zB-6G6.js} +1 -1
- package/web/app/immutable/chunks/{YtoDeXhM.js → C0Zo7HuP.js} +1 -1
- package/web/app/immutable/chunks/{ump_SWLl.js → C1AUaRa8.js} +1 -1
- package/web/app/immutable/chunks/{COB2k0Aa.js → C2F2Vd1P.js} +1 -1
- package/web/app/immutable/chunks/{Bm6FDHvN.js → C2WwQCOk.js} +1 -1
- package/web/app/immutable/chunks/{YTt0B0lA.js → C37ZqG4e.js} +1 -1
- package/web/app/immutable/chunks/{D0sQr-H_.js → C429ZMSU.js} +1 -1
- package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
- package/web/app/immutable/chunks/{4oPBEC4-.js → C5b7nimj.js} +1 -1
- package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
- package/web/app/immutable/chunks/{Za_i3D8P.js → C6TTEdST.js} +4 -4
- package/web/app/immutable/chunks/{Bap7o4n5.js → C78AfvXn.js} +1 -1
- package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.js} +1 -1
- package/web/app/immutable/chunks/C8qAflad.js +2 -0
- package/web/app/immutable/chunks/{B7h1ZmQS.js → C8zl7aIj.js} +1 -1
- package/web/app/immutable/chunks/{Bb9tq6rt.js → C9ew0Hx2.js} +1 -1
- package/web/app/immutable/chunks/{DpChblex.js → C9p4fddz.js} +1 -1
- package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
- package/web/app/immutable/chunks/{CBZTF7Qa.js → CC-IHSah.js} +4 -4
- package/web/app/immutable/chunks/CCIZBeez.js +1 -0
- package/web/app/immutable/chunks/{BhVPbMnV.js → CD-M_2xD.js} +1 -1
- package/web/app/immutable/chunks/{cKonll34.js → CDAnHxmJ.js} +1 -1
- package/web/app/immutable/chunks/{Dfh8DRT0.js → CE70-gZI.js} +3 -3
- package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
- package/web/app/immutable/chunks/{BYU-C1jV.js → CGPajdHq.js} +2 -2
- package/web/app/immutable/chunks/{DETS1-K4.js → CGYPBD6G.js} +1 -1
- package/web/app/immutable/chunks/{C0CrTfQC.js → CHto7_WH.js} +1 -1
- package/web/app/immutable/chunks/{KMO8sO00.js → CI0C7_h-.js} +1 -1
- package/web/app/immutable/chunks/{CHMwcoWM.js → CIaruUrd.js} +1 -1
- package/web/app/immutable/chunks/{BzqJYEOZ.js → CJB-ebPL.js} +1 -1
- package/web/app/immutable/chunks/{DJM7b4MF.js → CN-EAu8o.js} +1 -1
- package/web/app/immutable/chunks/{CYQKXGJn.js → CNE5cVvC.js} +1 -1
- package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
- package/web/app/immutable/chunks/CNWb-jYE.js +1 -0
- package/web/app/immutable/chunks/{BEiVNbJd.js → CNnF3Cms.js} +1 -1
- package/web/app/immutable/chunks/{O63l2zGE.js → COgn_CzG.js} +1 -1
- package/web/app/immutable/chunks/{BWtgRgi0.js → CPI5xBWX.js} +1 -1
- package/web/app/immutable/chunks/{McOgUz0K.js → CPO5_F83.js} +1 -1
- package/web/app/immutable/chunks/{ByYwSpDO.js → CQMFoUkp.js} +1 -1
- package/web/app/immutable/chunks/{BmALJKBY.js → CR-JVxLD.js} +1 -1
- package/web/app/immutable/chunks/{CP9jggxp.js → CRSY1kuo.js} +1 -1
- package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
- package/web/app/immutable/chunks/{Cx6Utm5I.js → CUsqN2sK.js} +1 -1
- package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
- package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
- package/web/app/immutable/chunks/{CJHIllR1.js → CX4-Z2NI.js} +1 -1
- package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.js} +1 -1
- package/web/app/immutable/chunks/{BJZU-qAV.js → CXpEvkVR.js} +1 -1
- package/web/app/immutable/chunks/{_Tye__BB.js → CYSndAne.js} +1 -1
- package/web/app/immutable/chunks/{DnHJL326.js → C_SKcJv7.js} +1 -1
- package/web/app/immutable/chunks/{Ct8L3-dh.js → CdSTecgc.js} +1 -1
- package/web/app/immutable/chunks/{D3qs3VJZ.js → CfYZevDu.js} +1 -1
- package/web/app/immutable/chunks/{BEjISjEF.js → Che-KvdU.js} +1 -1
- package/web/app/immutable/chunks/{CUWtSiZ5.js → Cj1KG0_l.js} +1 -1
- package/web/app/immutable/chunks/{BBV_EtXR.js → Cl_O0hHI.js} +1 -1
- package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
- package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
- package/web/app/immutable/chunks/{BCx-pM-8.js → CmyBYYR3.js} +1 -1
- package/web/app/immutable/chunks/{CWezNj5-.js → CoJyxFcH.js} +1 -1
- package/web/app/immutable/chunks/{DCP9TL-A.js → Cp02CBjf.js} +1 -1
- package/web/app/immutable/chunks/{BaJfBXet.js → Cp7Byf5d.js} +1 -1
- package/web/app/immutable/chunks/{C4IVoYqo.js → CpFDUMBH.js} +1 -1
- package/web/app/immutable/chunks/{BK6CZrM5.js → CqUPwDgo.js} +1 -1
- package/web/app/immutable/chunks/{DKrlwauu.js → CqVGtsXz.js} +1 -1
- package/web/app/immutable/chunks/{4QXQvR4H.js → Cq_jjcoF.js} +1 -1
- package/web/app/immutable/chunks/{DnozpXMO.js → CrbAS4DB.js} +1 -1
- package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
- package/web/app/immutable/chunks/{DV6uX7ff.js → CrvVM5aL.js} +1 -1
- package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
- package/web/app/immutable/chunks/{D6Hf6lXy.js → CuWLpCl5.js} +1 -1
- package/web/app/immutable/chunks/{BGaOyp5o.js → CuljOS_X.js} +1 -1
- package/web/app/immutable/chunks/{BhpCwvYl.js → Cv0wEzuo.js} +1 -1
- package/web/app/immutable/chunks/Cw-qJqDx.js +2 -0
- package/web/app/immutable/chunks/{oTjaecL9.js → Cx0QXTIW.js} +1 -1
- package/web/app/immutable/chunks/{WWSsQ21S.js → CxndkliV.js} +1 -1
- package/web/app/immutable/chunks/{2bsrY56g.js → Cy3lhXYa.js} +6 -6
- package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
- package/web/app/immutable/chunks/{BHKaBN6i.js → CzDPvHAo.js} +1 -1
- package/web/app/immutable/chunks/{Df-2xtN9.js → D-KE4WZ3.js} +1 -1
- package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
- package/web/app/immutable/chunks/{Dk0Z1pVU.js → D1zX4MuR.js} +1 -1
- package/web/app/immutable/chunks/{Dm9EHXJZ.js → D2hNxvgD.js} +4 -4
- package/web/app/immutable/chunks/{BGN0Ete3.js → D2kwjrZB.js} +1 -1
- package/web/app/immutable/chunks/{oki3b9jv.js → D5Pfy-wQ.js} +1 -1
- package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
- package/web/app/immutable/chunks/{CCAcpS1o.js → D7xjMCds.js} +2 -2
- package/web/app/immutable/chunks/{CdMAY9xp.js → DBH_GMOZ.js} +1 -1
- package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
- package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
- package/web/app/immutable/chunks/{DoStKyYK.js → DFGMgfIk.js} +2 -2
- package/web/app/immutable/chunks/{CceLSCZq.js → DG0pBglL.js} +1 -1
- package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
- package/web/app/immutable/chunks/{CvxVjZLu.js → DI71nFp4.js} +1 -1
- package/web/app/immutable/chunks/{AXE1aiRo.js → DJPIUVkw.js} +1 -1
- package/web/app/immutable/chunks/{BWmYJDmC.js → DLCFUd4s.js} +1 -1
- package/web/app/immutable/chunks/{2V6-Yhg-.js → DM1_VFfD.js} +1 -1
- package/web/app/immutable/chunks/{jmJoSjVa.js → DMe_MB5T.js} +1 -1
- package/web/app/immutable/chunks/{ZNhLMxqQ.js → DN-DN78v.js} +2 -2
- package/web/app/immutable/chunks/{CI-VmE1m.js → DNDlsdj4.js} +1 -1
- package/web/app/immutable/chunks/{wZz1J3UE.js → DOkArUrJ.js} +1 -1
- package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
- package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
- package/web/app/immutable/chunks/{BNFLngEB.js → DRqy_Wmb.js} +1 -1
- package/web/app/immutable/chunks/{BPZBxYco.js → DRsDUO-4.js} +1 -1
- package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
- package/web/app/immutable/chunks/{BzllE3aT.js → DT5eV1e8.js} +2 -2
- package/web/app/immutable/chunks/{RzextV4B.js → DTMxJ5IC.js} +2 -2
- package/web/app/immutable/chunks/{DKLk3Wx8.js → DTwG0V2f.js} +1 -1
- package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.js} +1 -1
- package/web/app/immutable/chunks/{Chx7ONT3.js → DVUFgbJK.js} +1 -1
- package/web/app/immutable/chunks/{ez7LBTR9.js → DVwMeV9X.js} +1 -1
- package/web/app/immutable/chunks/{CSIAWhhl.js → DW25Ls6A.js} +1 -1
- package/web/app/immutable/chunks/{BEvFtidS.js → DWa-2rkZ.js} +1 -1
- package/web/app/immutable/chunks/{CRFehAxF.js → DX9N1RQz.js} +1 -1
- package/web/app/immutable/chunks/{DCGl0RXW.js → DXRkYB1Y.js} +47 -47
- package/web/app/immutable/chunks/{DAzQ7i2U.js → DYEwyuIx.js} +1 -1
- package/web/app/immutable/chunks/{BaodMpKG.js → DZmGZ5am.js} +1 -1
- package/web/app/immutable/chunks/{DB4f78Ip.js → D_VvdZe2.js} +1 -1
- package/web/app/immutable/chunks/{BNm3whw0.js → Da-Blgd9.js} +1 -1
- package/web/app/immutable/chunks/{BXT21uPn.js → DcOkWaeN.js} +1 -1
- package/web/app/immutable/chunks/{QFC15GkG.js → De0kCZ4v.js} +2 -2
- package/web/app/immutable/chunks/{CK2Cr1RP.js → Dg0Tdf_A.js} +1 -1
- package/web/app/immutable/chunks/{Cb0AGw5F.js → DgKpR9KC.js} +1 -1
- package/web/app/immutable/chunks/{D2LsUZli.js → DhXcDqZX.js} +1 -1
- package/web/app/immutable/chunks/{DGZLYT-c.js → DiMo2JnB.js} +1 -1
- package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.js} +1 -1
- package/web/app/immutable/chunks/{gkPeOUJv.js → DjIQY_o5.js} +1 -1
- package/web/app/immutable/chunks/{C5tAJtyd.js → DlU1rxYV.js} +1 -1
- package/web/app/immutable/chunks/{BQ1b28aV.js → DlUpt_0u.js} +1 -1
- package/web/app/immutable/chunks/{BRsOtr8M.js → Dm-WfTCg.js} +1 -1
- package/web/app/immutable/chunks/{Dl9we4aZ.js → DmCKwthV.js} +1 -1
- package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
- package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
- package/web/app/immutable/chunks/{BEpYOO0x.js → Dqd75Edx.js} +1 -1
- package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
- package/web/app/immutable/chunks/{Cw2ZnpX7.js → DtFzaymP.js} +1 -1
- package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
- package/web/app/immutable/chunks/{CXCw-Jw-.js → DuAAGnM9.js} +1 -1
- package/web/app/immutable/chunks/{CAmQkXZq.js → Dval4sTX.js} +1 -1
- package/web/app/immutable/chunks/{CJtFSxbf.js → Dvi4g0xk.js} +1 -1
- package/web/app/immutable/chunks/Dws-34a7.js +1 -0
- package/web/app/immutable/chunks/{DaZ7K0cS.js → DxAjMnFs.js} +3 -3
- package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
- package/web/app/immutable/chunks/{B8nUpMEz.js → DxRojUvw.js} +1 -1
- package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
- package/web/app/immutable/chunks/{BAAb6Ol7.js → DyXAZ9tr.js} +1 -1
- package/web/app/immutable/chunks/{BqU6TsU1.js → DzG7lmwB.js} +1 -1
- package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
- package/web/app/immutable/chunks/{D4g4334W.js → GP4LXuR4.js} +1 -1
- package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
- package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
- package/web/app/immutable/chunks/{Dg5FvxXA.js → KzySRhDw.js} +3 -3
- package/web/app/immutable/chunks/{CJ72QIuX.js → L-Sh3Ble.js} +3 -3
- package/web/app/immutable/chunks/{DOU-V4Cg.js → LI9J8Eor.js} +2 -2
- package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
- package/web/app/immutable/chunks/{DB0jxR-D.js → L_sfch_N.js} +1 -1
- package/web/app/immutable/chunks/{rYnu2FeJ.js → LgyvMkc8.js} +1 -1
- package/web/app/immutable/chunks/{CayjT2l8.js → M1XBe23f.js} +1 -1
- package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
- package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.js} +1 -1
- package/web/app/immutable/chunks/{ChdMCKvy.js → Q2C1NT93.js} +1 -1
- package/web/app/immutable/chunks/{BaJMqkSd.js → QRUY44Ff.js} +1 -1
- package/web/app/immutable/chunks/{9Bk8hwX5.js → RHSH5iZ7.js} +1 -1
- package/web/app/immutable/chunks/{C9aF-Sor.js → SbTG0nwQ.js} +1 -1
- package/web/app/immutable/chunks/{DltbAw1B.js → THqyVjkf.js} +1 -1
- package/web/app/immutable/chunks/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
- package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
- package/web/app/immutable/chunks/{H9nIRlnK.js → V6efYFFY.js} +1 -1
- package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
- package/web/app/immutable/chunks/{DHbqsCcC.js → VvLcPf2a.js} +1 -1
- package/web/app/immutable/chunks/Whej1Dge.js +1 -0
- package/web/app/immutable/chunks/{hcDGwCEP.js → XEsFBJqZ.js} +1 -1
- package/web/app/immutable/chunks/{BziYv9ZW.js → ZR3wQ419.js} +2 -2
- package/web/app/immutable/chunks/{B7RoQL2j.js → _i0M7_-r.js} +2 -2
- package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
- package/web/app/immutable/chunks/{BLZhAOLT.js → deEweluJ.js} +1 -1
- package/web/app/immutable/chunks/{Do6vtrQf.js → dmZv6JOg.js} +1 -1
- package/web/app/immutable/chunks/{DZjKvOyB.js → e2ymG0j7.js} +1 -1
- package/web/app/immutable/chunks/{DLKd3Oyl.js → e3_wv2e_.js} +1 -1
- package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
- package/web/app/immutable/chunks/{CnHcPhIW.js → fVXs4sxg.js} +4 -4
- package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
- package/web/app/immutable/chunks/{BFc0Rlfo.js → gZJn6Sk0.js} +1 -1
- package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
- package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
- package/web/app/immutable/chunks/{h3LTJhAu.js → iPHmrqbo.js} +1 -1
- package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
- package/web/app/immutable/chunks/{DVL_BM5a.js → jH2J-9un.js} +1 -1
- package/web/app/immutable/chunks/{tF7VK2wM.js → l1lBFBJz.js} +1 -1
- package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
- package/web/app/immutable/chunks/{DcACHBPs.js → n5-dpvss.js} +1 -1
- package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.js} +1 -1
- package/web/app/immutable/chunks/{CjyJQV6j.js → pHBnQb5R.js} +1 -1
- package/web/app/immutable/chunks/{05jEdw2V.js → pMP23LzB.js} +1 -1
- package/web/app/immutable/chunks/{BJTYazIn.js → pomj9evG.js} +1 -1
- package/web/app/immutable/chunks/{mLzVJBUx.js → qO0mYaJv.js} +1 -1
- package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
- package/web/app/immutable/chunks/rcXEnwTB.js +158 -0
- package/web/app/immutable/chunks/{BXyd6A9p.js → sSXTMg2P.js} +1 -1
- package/web/app/immutable/chunks/{B0fUscDD.js → tLFaYuVN.js} +1 -1
- package/web/app/immutable/chunks/{B7o2QL9R.js → waHi6l7h.js} +1 -1
- package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.js} +1 -1
- package/web/app/immutable/chunks/{D8s3q34H.js → xGzY0FqC.js} +1 -1
- package/web/app/immutable/chunks/{CCPr9hs_.js → yDmmPu6L.js} +1 -1
- package/web/app/immutable/chunks/{Dv-bjgEk.js → zB9UbdEg.js} +1 -1
- package/web/app/immutable/entry/{app.CHgb5yMQ.js → app.BXfGjD4L.js} +3 -3
- package/web/app/immutable/entry/start.DRVSg-kr.js +1 -0
- package/web/app/immutable/nodes/{0.DECevrtM.js → 0.CoxSTVXk.js} +1 -1
- package/web/app/immutable/nodes/{1.LZZdSQoJ.js → 1.BbjU9IH_.js} +1 -1
- package/web/app/immutable/nodes/10.D6wyP02T.js +39 -0
- package/web/app/immutable/nodes/{11.D5CTYtT6.js → 11.ukc3KQLY.js} +1 -1
- package/web/app/immutable/nodes/{12.iQywXLwT.js → 12.D6rxlIQy.js} +1 -1
- package/web/app/immutable/nodes/{13.m6xe0bMv.js → 13.CHYsmiD_.js} +1 -1
- package/web/app/immutable/nodes/{14.CyaNpqAL.js → 14.mG-YN9pn.js} +3 -3
- package/web/app/immutable/nodes/{15.5st_fzCN.js → 15.CUWA_Nvq.js} +1 -1
- package/web/app/immutable/nodes/{16.MUmBS-bv.js → 16.BsFtzH0D.js} +1 -1
- package/web/app/immutable/nodes/{17.C_k1qpf6.js → 17.me_aOx8O.js} +1 -1
- package/web/app/immutable/nodes/{18.BjTfofOz.js → 18.BO1oZWgm.js} +1 -1
- package/web/app/immutable/nodes/{19.wB7XsK3B.js → 19.D9cBSCEY.js} +2 -2
- package/web/app/immutable/nodes/{2.C7whbYui.js → 2.pGtn3nxM.js} +4 -4
- package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
- package/web/app/immutable/nodes/{3.KbBbpAm6.js → 3.Bm-Ewkeu.js} +1 -1
- package/web/app/immutable/nodes/{4.C1b_QyI0.js → 4.bypHtb3m.js} +1 -1
- package/web/app/immutable/nodes/{5.CG-B5vOM.js → 5.YWphdJEW.js} +1 -1
- package/web/app/immutable/nodes/{6.v-GnNHdu.js → 6.DQRfO1Qb.js} +1 -1
- package/web/app/immutable/nodes/{7.D9LU-AZb.js → 7.b1goQuXf.js} +1 -1
- package/web/app/immutable/nodes/{8.BJP_1POW.js → 8.BBgV9gU6.js} +1 -1
- package/web/app/immutable/nodes/{9.f8mHa7_b.js → 9.BJdtENce.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B8evz7o6.js +0 -2
- package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
- package/web/app/immutable/chunks/D8elUKsb.js +0 -158
- package/web/app/immutable/chunks/DY52XPja.js +0 -2
- package/web/app/immutable/chunks/KU76P7cR.js +0 -1
- package/web/app/immutable/chunks/akx8_VtJ.js +0 -1
- package/web/app/immutable/chunks/hY0rMePc.js +0 -1
- package/web/app/immutable/entry/start.CINDVXKj.js +0 -1
- package/web/app/immutable/nodes/10.KUh1filM.js +0 -39
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import{t as je,bo as v,bm as c,bw as Ze,b as Xe,br as lr,bs as bt,bq as Gr}from"./Dws-34a7.js";import{bs as Je,ay as H,be as ht,b$ as ct,b_ as D,bO as J,W as C,bS as h,aD as e,a7 as ut,bl as ke,bn as Ye,c9 as f,aA as w,aB as re,ca as Ue,c0 as It,bH as d,a5 as ie,bA as se,bV as W,br as Rt,bk as qr,bj as Hr,bf as zo,bo as Kr,c5 as pt,aw as or,bz as Wo,cd as Jt}from"./3SdAC2_C.js";import{i as be}from"./DLCFUd4s.js";import{c as Y}from"./B5tvpTFB.js";import{g as Pr,i as Go,e as Ct,I as qo}from"./C-zB-6G6.js";import{f as xt,s as Be,g as Ho}from"./BD9db4FR.js";import{b as kt}from"./Dn334wJv.js";import{b as Er}from"./Cp02CBjf.js";import{k as Ko}from"./5-0LQoqd.js";import{c as Dt}from"./ChTqQfQN.js";import{a as jo}from"./CC7to1B5.js";import{f as Oe}from"./BIGqOuh0.js";import{F as Zo}from"./BPuz5cN_.js";import{m as vt}from"./rXKOJqUt.js";import{t as Xo}from"./D-rRuAXZ.js";import{cp as jr,F as ye,aZ as Jo,ar as Yo,cK as Qo,aM as en,a_ as nr,a0 as dr,a2 as ur,b1 as Zr,bb as tn,a8 as rn,aw as on,aC as Xr,cT as nn,ci as Jr,bS as Yr,cn as an}from"./CGYPBD6G.js";import"./DcOkWaeN.js";import{rU as sn,Jx as Se,g0 as ln,bE as dn,A2 as un,zk as cn,Ly as Fr,dV as fn,bY as gn,Lx as vn,v0 as wn,Lv as Sr,gI as pn,um as bn,Lw as mn,Lb as Lr,Lu as Rr}from"./4g_iHoQm.js";import"./C_SKcJv7.js";import{R as hn,g as Yt,h as mt,f as _n,e as Ke,l as Qr,d as eo,K as yn,i as xn,k as Cn,j as In,M as to,E as kn}from"./jBG7W4tL.js";import{a as ro,B as $t}from"./B5aYN90J.js";import{bK as Pn}from"./DN-DN78v.js";import{a5 as En,w as Fn,ah as Sn}from"./C-L0-C2F.js";import{m as Ln,z as Rn}from"./B6eTPmJH.js";import{I as Nt}from"./C63WwVct.js";import{d as $n}from"./CQ409-Pj.js";import{H as Tn,I as Un}from"./Bqd7fdCF.js";import{a as An,e as Bn,h as On,g as Nn,k as Mn,p as Dn,b as oo}from"./D4WPlvMg.js";import{e as Vn}from"./B2CniqS1.js";import{i as ar}from"./CL3a4Hm1.js";import{i as zn,a as Wn}from"./nwO3KCpP.js";import{B as Gn}from"./U7dpdlAf.js";import"./DWa-2rkZ.js";import{l as ze}from"./B8HnjSSF.js";import{M as no}from"./Bv_xG3nA.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import{b as qn}from"./B6d1Nolc.js";import"./gU2qspu9.js";import{t as Hn,b as Kn}from"./CXXVPWBH.js";import{T as jn}from"./wiGlLVr-.js";import{c as Zn,d as Xn}from"./BByf3ILj.js";import{o as $r,s as wt,n as Bt}from"./CIyUrgF0.js";import{g as Jn}from"./DWGXN6Nr.js";import{f as Yn}from"./CrbAS4DB.js";import{ay as Qn,$ as ea}from"./3xVgojWv.js";import{a_ as ta}from"./SbTG0nwQ.js";import{i as ra}from"./DKwAaLwd.js";import{o as oa}from"./DxC0zTSc.js";function na(o,t){return o.loadURL(t)}function aa(o){return{previousUrlProp:o||null}}function Tr(o,t){o.previousUrlProp=t}function ia(o,t,n){const g=n||t;return o.previousUrlProp===g?null:(o.previousUrlProp=g,g)}function sa(o,t,n){return t?o.previousUrlProp===null?(o.previousUrlProp=t,{shouldLoad:!1,targetUrl:null}):t===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:n.webviewReady?(o.previousUrlProp=t,n.isValidBrowserUrl(t)?{shouldLoad:!0,targetUrl:t}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const ao=Dt("TabBoundsReporter"),la=150;function Qt(o,t,n){!(t>0)||!(n>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:t,height:n}).catch(g=>{ao.debug("Failed to report tab bounds",{tabId:o,error:g})})}function Ur(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(t=>{ao.debug("Failed to clear tab bounds",{tabId:o,error:t})})}function io(o,t){let n=t,g;const m=typeof ResizeObserver>"u"?void 0:new ResizeObserver(P=>{if(!n)return;const b=P[P.length-1]?.contentRect;if(!b)return;const F=n;clearTimeout(g),g=setTimeout(()=>{Qt(F,b.width,b.height)},la)});if(m?.observe(o),n){const P=o.getBoundingClientRect();Qt(n,P.width,P.height)}return{update(P){if(P!==n&&(clearTimeout(g),n&&Ur(n),n=P,n)){const b=o.getBoundingClientRect();Qt(n,b.width,b.height)}},destroy(){clearTimeout(g),m?.disconnect(),n&&Ur(n)}}}function so(o){let t=o.trim();if(!t)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(t)||(t=(t.includes("localhost")||t.includes("127.0.0.1")||t.includes("0.0.0.0")?"http://":"https://")+t);try{return new URL(t),t}catch{return null}}function dt(o,t=typeof window<"u"?window.location.origin:""){return o==="about:blank"||lo(o,t)}function lo(o,t=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const n=new URL(o);return ro.NAVIGATION_ALLOWED.includes(n.protocol)&&n.origin!==t}catch{return!1}}const Mt=[{id:"iphone-se",name:"iPhone SE",category:"phone",width:375,height:667},{id:"iphone-15",name:"iPhone 15",category:"phone",width:393,height:852},{id:"pixel-8",name:"Pixel 8",category:"phone",width:412,height:915},{id:"ipad-mini",name:"iPad Mini",category:"tablet",width:768,height:1024},{id:"ipad-pro-11",name:"iPad Pro 11″",category:"tablet",width:834,height:1194},{id:"desktop-1280x800",name:"1280 × 800",category:"desktop",width:1280,height:800},{id:"desktop-1440x900",name:"1440 × 900",category:"desktop",width:1440,height:900}];function da(o){return{...o,width:o.height,height:o.width}}var ua=re('<span class="min-w-0 flex-1 truncate"> </span> <span class="type-caption ml-3 text-muted-foreground"> </span>',1),er=re("<!> <!> <!>",1),ca=re('<span class="min-w-0 flex-1"> </span> <span class="type-caption text-muted-foreground"> </span>',1),tr=re("<!> <!>",1);function cr(o,t){if(new.target)return je({component:cr,...o});Je(t,!0);let n=v(t,"viewport",7),g=v(t,"onViewportChange",7),m=v(t,"onCustom",7);const P=["phone","tablet","desktop"],b=f(()=>n().mode==="fit"?"fit":n().mode==="preset"?n().presetId:"custom");function F(u){if(u==="fit")return g()({mode:"fit"});const k=Mt.find(O=>O.id===u);k&&g()({mode:"preset",presetId:k.id,width:k.width,height:k.height})}var A={get viewport(){return n()},set viewport(u){n(u),w()},get onViewportChange(){return g()},set onViewportChange(u){g(u),w()},get onCustom(){return m()},set onCustom(u){m(u),w()},$set:Ze,$on:(u,k)=>Xe(t,u,k)},S=er(),s=H(S);Y(s,()=>hn,(u,k)=>{k(u,{get value(){return e(b)},onValueChange:F,children:(O,x)=>{var I=er(),R=H(I);Y(R,()=>Yt,(G,K)=>{K(G,{value:"fit",children:(oe,te)=>{ht();var X=ct();D(le=>J(X,le),[()=>c.browser_viewport_fitPanel_label()]),C(oe,X)},$$slots:{default:!0}})});var T=h(R,2);Pr(T,17,()=>P,Go,(G,K)=>{var oe=er(),te=H(oe);Y(te,()=>mt,(B,ae)=>{ae(B,{})});var X=h(te,2);Y(X,()=>_n,(B,ae)=>{ae(B,{children:(a,l)=>{ht();var j=ct();D(ue=>J(j,ue),[()=>e(K)==="phone"?c.browser_viewport_phoneGroup_label():e(K)==="tablet"?c.browser_viewport_tabletGroup_label():c.browser_viewport_desktopGroup_label()]),C(a,j)},$$slots:{default:!0}})});var le=h(X,2);Pr(le,17,()=>Mt.filter(B=>B.category===e(K)),B=>B.id,(B,ae)=>{var a=ut(),l=H(a);Y(l,()=>Yt,(j,ue)=>{ue(j,{get value(){return e(ae).id},children:(Ie,he)=>{var M=ua(),_=H(M),Z=ke(_,!0),V=h(_,2),z=ke(V,!0);D(y=>{J(Z,e(ae).name),J(z,y)},[()=>c.browser_viewport_dimensions_label({width:ze(e(ae).width),height:ze(e(ae).height)})]),C(Ie,M)},$$slots:{default:!0}})}),C(B,a)}),C(G,oe)});var ee=h(T,2);{var ge=G=>{var K=tr(),oe=H(K);Y(oe,()=>mt,(X,le)=>{le(X,{})});var te=h(oe,2);Y(te,()=>Yt,(X,le)=>{le(X,{value:"custom",get onSelect(){return m()},children:(B,ae)=>{var a=ca(),l=H(a),j=ke(l,!0),ue=h(l,2),Ie=ke(ue,!0);D((he,M)=>{J(j,he),J(Ie,M)},[()=>c.browser_viewport_custom_label(),()=>c.browser_viewport_dimensions_label({width:ze(n().width),height:ze(n().height)})]),C(B,a)},$$slots:{default:!0}})}),C(G,K)};be(ee,G=>{n().mode==="custom"&&G(ge)})}C(O,I)},$$slots:{default:!0}})});var L=h(s,2);{var Q=u=>{var k=tr(),O=H(k);Y(O,()=>mt,(I,R)=>{R(I,{})});var x=h(O,2);Y(x,()=>Ke,(I,R)=>{R(I,{get onSelect(){return m()},children:(T,ee)=>{ht();var ge=ct();D(G=>J(ge,G),[()=>c.browser_viewport_custom_label()]),C(T,ge)},$$slots:{default:!0}})}),C(u,k)};be(L,u=>{n().mode!=="custom"&&u(Q)})}var U=h(L,2);{var $=u=>{var k=tr(),O=H(k);Y(O,()=>mt,(I,R)=>{R(I,{})});var x=h(O,2);{let I=f(()=>c.browser_viewport_rotate_label());Y(x,()=>no,(R,T)=>{T(R,{get icon(){return jr},get label(){return e(I)},onSelect:()=>g()(da(n()))})})}C(u,k)};be(U,u=>{n().mode!=="fit"&&u($)})}return C(o,S),Ye(A)}var fa=re('<div class="grid grid-cols-2 gap-3"><label class="space-y-1 type-caption"><span> </span> <!></label> <label class="space-y-1 type-caption"><span> </span> <!></label></div>');function fr(o,t){if(new.target)return je({component:fr,...o});Je(t,!0);let n=v(t,"open",15,!1),g=v(t,"viewport",7),m=v(t,"onViewportChange",7),P=v(t,"returnFocus",7);const b=320,F=3840;let A=W(1280),S=W(800),s=W(null);function L(u){return typeof u=="number"&&Number.isInteger(u)&&u>=b&&u<=F}const Q=f(()=>L(e(A))&&L(e(S)));Ue(()=>{if(n())return()=>{It().then(()=>{P()?.isConnected&&P().focus()})}}),Ue(()=>{n()||(d(A,g().mode==="fit"?1280:g().width,!0),d(S,g().mode==="fit"?800:g().height,!0))});function U(){!e(Q)||e(A)===null||e(S)===null||(m()({mode:"custom",width:e(A),height:e(S)}),n(!1))}var $={get open(){return n()},set open(u=!1){n(u),w()},get viewport(){return g()},set viewport(u){g(u),w()},get onViewportChange(){return m()},set onViewportChange(u){m(u),w()},get returnFocus(){return P()},set returnFocus(u){P(u),w()},$set:Ze,$on:(u,k)=>Xe(t,u,k)};{let u=f(()=>c.browser_viewport_custom_label()),k=f(()=>c.browser_viewport_sizeRange_description({min:ze(b),max:ze(F)})),O=f(()=>c.browser_viewport_apply_label());qn(o,{get title(){return e(u)},get description(){return e(k)},get submitLabel(){return e(O)},get canSubmit(){return e(Q)},onSubmit:U,get initialFocus(){return e(s)},get open(){return n()},set open(x){n(x)},children:(x,I)=>{var R=fa(),T=ie(R),ee=ie(T),ge=ke(ee,!0),G=h(ee,2);{let le=f(()=>!L(e(A)));Nt(G,{type:"number",min:b,max:F,step:"1",get"aria-invalid"(){return e(le)},get value(){return e(A)},set value(B){d(A,B,!0)},get ref(){return e(s)},set ref(B){d(s,B,!0)}})}se(T);var K=h(T,2),oe=ie(K),te=ke(oe,!0),X=h(oe,2);{let le=f(()=>!L(e(S)));Nt(X,{type:"number",min:b,max:F,step:"1",get"aria-invalid"(){return e(le)},get value(){return e(S)},set value(B){d(S,B,!0)}})}se(K),se(R),D((le,B)=>{J(ge,le),J(te,B)},[()=>c.browser_viewport_width_label(),()=>c.browser_viewport_height_label()]),C(x,R)},$$slots:{default:!0}})}return Ye($)}var Ot=re("<!> <!>",1),ot=re("<!> ",1),ga=re('<!> <span class="min-w-0 flex-1 truncate"> </span>',1),va=re("<!> <!> <!> <!> <!>",1),wa=re('<!> <span class="min-w-0 flex-1"> </span> <kbd class="type-caption ml-5 text-muted-foreground" aria-hidden="true">⌘⌥I</kbd>',1),pa=re("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function uo(o,t){if(new.target)return je({component:uo,...o});Je(t,!0);let n=v(t,"errorCount",7,0),g=v(t,"disabled",7,!1),m=v(t,"collapsed",7,!1),P=v(t,"canGoBack",7,!1),b=v(t,"canGoForward",7,!1),F=v(t,"canSelectElement",7,!1),A=v(t,"selectingElement",7,!1),S=v(t,"viewport",23,()=>({mode:"fit"})),s=v(t,"onGoBack",7),L=v(t,"onGoForward",7),Q=v(t,"onToggleElementPicker",7),U=v(t,"onViewportChange",7),$=v(t,"onOpenExternal",7),u=v(t,"onFullScreen",7),k=v(t,"onCopyUrl",7),O=v(t,"onScreenshot",7),x=v(t,"onOpenConsole",7),I=v(t,"onOpenSource",7),R=v(t,"onOpenInspector",7),T=v(t,"onReloadWithoutCache",7);const ee=f(()=>n()>0?c.browser_overflow_triggerWithErrors_ariaLabel({count:ze(n())}):c.browser_overflow_trigger_ariaLabel()),ge=f(()=>S().mode==="preset"?Mt.find(l=>l.id===S().presetId):void 0),G=f(()=>S().mode==="fit"?c.browser_viewport_fitPanel_label():e(ge)?.name??c.browser_viewport_dimensions_label({width:ze(S().width),height:ze(S().height)}));let K=W(!1),oe=W(null),te=W(!1);async function X(){d(te,!1),await It(),d(K,!0)}var le={get errorCount(){return n()},set errorCount(l=0){n(l),w()},get disabled(){return g()},set disabled(l=!1){g(l),w()},get collapsed(){return m()},set collapsed(l=!1){m(l),w()},get canGoBack(){return P()},set canGoBack(l=!1){P(l),w()},get canGoForward(){return b()},set canGoForward(l=!1){b(l),w()},get canSelectElement(){return F()},set canSelectElement(l=!1){F(l),w()},get selectingElement(){return A()},set selectingElement(l=!1){A(l),w()},get viewport(){return S()},set viewport(l={mode:"fit"}){S(l),w()},get onGoBack(){return s()},set onGoBack(l){s(l),w()},get onGoForward(){return L()},set onGoForward(l){L(l),w()},get onToggleElementPicker(){return Q()},set onToggleElementPicker(l){Q(l),w()},get onViewportChange(){return U()},set onViewportChange(l){U(l),w()},get onOpenExternal(){return $()},set onOpenExternal(l){$(l),w()},get onFullScreen(){return u()},set onFullScreen(l){u(l),w()},get onCopyUrl(){return k()},set onCopyUrl(l){k(l),w()},get onScreenshot(){return O()},set onScreenshot(l){O(l),w()},get onOpenConsole(){return x()},set onOpenConsole(l){x(l),w()},get onOpenSource(){return I()},set onOpenSource(l){I(l),w()},get onOpenInspector(){return R()},set onOpenInspector(l){R(l),w()},get onReloadWithoutCache(){return T()},set onReloadWithoutCache(l){T(l),w()},$set:Ze,$on:(l,j)=>Xe(t,l,j)},B=Ot(),ae=H(B);Y(ae,()=>to,(l,j)=>{j(l,{get open(){return e(te)},set open(ue){d(te,ue,!0)},children:(ue,Ie)=>{var he=Ot(),M=H(he);{const Z=(V,z)=>{let y=()=>(z?.()).props;{let q=f(()=>c.browser_overflow_trigger_tooltip());Oe(V,lr(y,{variant:"ghost-light",size:"icon-xs",class:"relative",get disabled(){return g()},get tooltip(){return e(q)},tooltipSide:"bottom",get"aria-label"(){return e(ee)},"data-testid":"browser-overflow-trigger",get ref(){return e(oe)},set ref(E){d(oe,E,!0)},children:(E,Pe)=>{var fe=Ot(),Qe=H(fe);yn(Qe,{class:"size-3.5"});var nt=h(Qe,2);{var We=Fe=>{Gn(Fe,{variant:"destructive",class:"absolute -right-1.5 -top-1.5 h-4 min-w-4 px-1 text-xs leading-none","data-testid":"browser-console-error-badge",children:(Ge,at)=>{ht();var it=ct();D(Me=>J(it,Me),[()=>n()>9?"9+":ze(n())]),C(Ge,it)},$$slots:{default:!0}})};be(nt,Fe=>{n()>0&&Fe(We)})}C(E,fe)},$$slots:{default:!0}}))}};Y(M,()=>Qr,(V,z)=>{z(V,{child:Z,$$slots:{child:!0}})})}var _=h(M,2);Y(_,()=>eo,(Z,V)=>{V(Z,{align:"end",class:"w-56",onCloseAutoFocus:z=>e(K)&&z.preventDefault(),children:(z,y)=>{var q=pa(),E=H(q);{var Pe=ve=>{var we=va(),Ee=H(we);{let ce=f(()=>!P());Y(Ee,()=>Ke,(xe,De)=>{De(xe,{get disabled(){return e(ce)},get onSelect(){return s()},children:(Ne,st)=>{var Ce=ot(),He=H(Ce);ye(He,{get icon(){return dr},size:"xs",class:"w-4 text-muted-foreground"});var et=h(He);D(Ve=>J(et,` ${Ve??""}`),[()=>c.browser_embedded_goBack_ariaLabel()]),C(Ne,Ce)},$$slots:{default:!0}})})}var Re=h(Ee,2);{let ce=f(()=>!b());Y(Re,()=>Ke,(xe,De)=>{De(xe,{get disabled(){return e(ce)},get onSelect(){return L()},children:(Ne,st)=>{var Ce=ot(),He=H(Ce);ye(He,{get icon(){return ur},size:"xs",class:"w-4 text-muted-foreground"});var et=h(He);D(Ve=>J(et,` ${Ve??""}`),[()=>c.browser_embedded_goForward_ariaLabel()]),C(Ne,Ce)},$$slots:{default:!0}})})}var pe=h(Re,2);{let ce=f(()=>!F());Y(pe,()=>Ke,(xe,De)=>{De(xe,{get disabled(){return e(ce)},onSelect:()=>void Q()?.(),children:(Ne,st)=>{var Ce=ot(),He=H(Ce);ye(He,{get icon(){return nr},size:"xs",class:"w-4 text-muted-foreground"});var et=h(He);D(Ve=>J(et,` ${Ve??""}`),[()=>A()?c.browser_embedded_cancelElementSelection_ariaLabel():c.browser_embedded_selectElement_ariaLabel()]),C(Ne,Ce)},$$slots:{default:!0}})})}var me=h(pe,2);Y(me,()=>xn,(ce,xe)=>{xe(ce,{children:(De,Ne)=>{var st=Ot(),Ce=H(st);{let et=f(()=>!U());Y(Ce,()=>Cn,(Ve,ft)=>{ft(Ve,{get disabled(){return e(et)},children:(St,gt)=>{var Pt=ga(),Et=H(Pt);ye(Et,{get icon(){return Zr},size:"xs",class:"w-4 text-muted-foreground"});var Ft=h(Et,2),Ut=ke(Ft,!0);D(Lt=>J(Ut,Lt),[()=>c.browser_viewport_trigger_ariaLabel({mode:e(G)})]),C(St,Pt)},$$slots:{default:!0}})})}var He=h(Ce,2);Y(He,()=>In,(et,Ve)=>{Ve(et,{class:"w-64",children:(ft,St)=>{cr(ft,{get viewport(){return S()},onViewportChange:gt=>U()?.(gt),onCustom:X})},$$slots:{default:!0}})}),C(De,st)},$$slots:{default:!0}})});var Ae=h(me,2);Y(Ae,()=>mt,(ce,xe)=>{xe(ce,{})}),C(ve,we)};be(E,ve=>{m()&&ve(Pe)})}var fe=h(E,2);{var Qe=ve=>{var we=ut(),Ee=H(we);Y(Ee,()=>Ke,(Re,pe)=>{pe(Re,{onSelect:()=>u()(),children:(me,Ae)=>{var ce=ot(),xe=H(ce);ye(xe,{get icon(){return tn},size:"xs",class:"w-4 text-muted-foreground"});var De=h(xe);D(Ne=>J(De,` ${Ne??""}`),[()=>c.browser_overflow_fullScreen_label()]),C(me,ce)},$$slots:{default:!0}})}),C(ve,we)},nt=ve=>{var we=ut(),Ee=H(we);Y(Ee,()=>Ke,(Re,pe)=>{pe(Re,{onSelect:()=>void $()(),children:(me,Ae)=>{var ce=ot(),xe=H(ce);ye(xe,{get icon(){return rn},size:"xs",class:"w-4 text-muted-foreground"});var De=h(xe);D(Ne=>J(De,` ${Ne??""}`),[()=>c.browser_overflow_openExternal_label()]),C(me,ce)},$$slots:{default:!0}})}),C(ve,we)};be(fe,ve=>{u()?ve(Qe):$()&&ve(nt,1)})}var We=h(fe,2);Y(We,()=>Ke,(ve,we)=>{we(ve,{onSelect:()=>void k()(),children:(Ee,Re)=>{var pe=ot(),me=H(pe);ye(me,{get icon(){return Jo},size:"xs",class:"w-4 text-muted-foreground"});var Ae=h(me);D(ce=>J(Ae,` ${ce??""}`),[()=>c.browser_overflow_copyUrl_label()]),C(Ee,pe)},$$slots:{default:!0}})});var Fe=h(We,2);Y(Fe,()=>mt,(ve,we)=>{we(ve,{})});var Ge=h(Fe,2);Y(Ge,()=>Ke,(ve,we)=>{we(ve,{onSelect:()=>void O()(),children:(Ee,Re)=>{var pe=ot(),me=H(pe);ye(me,{get icon(){return Yo},size:"xs",class:"w-4 text-muted-foreground"});var Ae=h(me);D(ce=>J(Ae,` ${ce??""}`),[()=>c.browser_overflow_screenshot_label()]),C(Ee,pe)},$$slots:{default:!0}})});var at=h(Ge,2);Y(at,()=>mt,(ve,we)=>{we(ve,{})});var it=h(at,2);Y(it,()=>Ke,(ve,we)=>{we(ve,{onSelect:()=>void x()(),children:(Ee,Re)=>{var pe=ot(),me=H(pe);ye(me,{get icon(){return Qo},size:"xs",class:"w-4 text-muted-foreground"});var Ae=h(me);D(ce=>J(Ae,` ${ce??""}`),[()=>c.browser_overflow_console_label()]),C(Ee,pe)},$$slots:{default:!0}})});var Me=h(it,2);Y(Me,()=>Ke,(ve,we)=>{we(ve,{onSelect:()=>void I()(),children:(Ee,Re)=>{var pe=ot(),me=H(pe);ye(me,{get icon(){return en},size:"xs",class:"w-4 text-muted-foreground"});var Ae=h(me);D(ce=>J(Ae,` ${ce??""}`),[()=>c.browser_overflow_source_label()]),C(Ee,pe)},$$slots:{default:!0}})});var qe=h(Me,2);Y(qe,()=>Ke,(ve,we)=>{we(ve,{onSelect:()=>void R()(),children:(Ee,Re)=>{var pe=wa(),me=H(pe);ye(me,{get icon(){return nr},size:"xs",class:"w-4 text-muted-foreground"});var Ae=h(me,2),ce=ke(Ae,!0);ht(2),D(xe=>J(ce,xe),[()=>c.browser_overflow_inspector_label()]),C(Ee,pe)},$$slots:{default:!0}})});var Le=h(qe,2);Y(Le,()=>mt,(ve,we)=>{we(ve,{})});var _t=h(Le,2);Y(_t,()=>Ke,(ve,we)=>{we(ve,{onSelect:()=>void T()(),children:(Ee,Re)=>{var pe=ot(),me=H(pe);ye(me,{get icon(){return jr},size:"xs",class:"w-4 text-muted-foreground"});var Ae=h(me);D(ce=>J(Ae,` ${ce??""}`),[()=>c.browser_overflow_reloadWithoutCache_label()]),C(Ee,pe)},$$slots:{default:!0}})}),C(z,q)},$$slots:{default:!0}})}),C(ue,he)},$$slots:{default:!0}})});var a=h(ae,2);return fr(a,{get viewport(){return S()},onViewportChange:l=>U()?.(l),get returnFocus(){return e(oe)},get open(){return e(K)},set open(l){d(K,l,!0)}}),C(o,B),Ye(le)}var ba=re('<span class="truncate"> </span> <!>',1),Ar=re("<!> <!>",1);function co(o,t){if(new.target)return je({component:co,...o});Je(t,!0);let n=v(t,"viewport",7),g=v(t,"onViewportChange",7),m=W(!1),P=W(!1),b=W(null);const F=f(()=>n().mode==="preset"?Mt.find(k=>k.id===n().presetId):void 0),A=f(()=>n().mode==="fit"?"":c.browser_viewport_dimensions_label({width:ze(n().width),height:ze(n().height)})),S=f(()=>n().mode==="fit"?c.browser_viewport_fit_short_label():n().mode==="preset"&&e(F)?e(F).name:e(A)),s=f(()=>n().mode==="fit"?c.browser_viewport_fitPanel_label():e(S));async function L(){d(m,!1),await It(),d(P,!0)}var Q={get viewport(){return n()},set viewport(k){n(k),w()},get onViewportChange(){return g()},set onViewportChange(k){g(k),w()},$set:Ze,$on:(k,O)=>Xe(t,k,O)},U=Ar(),$=H(U);Y($,()=>to,(k,O)=>{O(k,{get open(){return e(m)},set open(x){d(m,x,!0)},children:(x,I)=>{var R=Ar(),T=H(R);{const ge=(G,K)=>{let oe=()=>(K?.()).props;{let te=f(()=>c.browser_viewport_trigger_ariaLabel({mode:e(s)}));Oe(G,lr(oe,{variant:"ghost-light",size:"xs",class:"h-6 max-w-36 gap-1 rounded-full bg-muted px-2 text-xs hover:bg-muted/80",get"aria-label"(){return e(te)},"data-testid":"browser-viewport-trigger",get ref(){return e(b)},set ref(X){d(b,X,!0)},children:(X,le)=>{var B=ba(),ae=H(B),a=ke(ae,!0),l=h(ae,2);ye(l,{get icon(){return on},size:"xs",class:"shrink-0"}),D(()=>J(a,e(S))),C(X,B)},$$slots:{default:!0}}))}};Y(T,()=>Qr,(G,K)=>{K(G,{child:ge,$$slots:{child:!0}})})}var ee=h(T,2);Y(ee,()=>eo,(ge,G)=>{G(ge,{align:"end",class:"w-64",onCloseAutoFocus:K=>e(P)&&K.preventDefault(),children:(K,oe)=>{cr(K,{get viewport(){return n()},get onViewportChange(){return g()},onCustom:L})},$$slots:{default:!0}})}),C(x,R)},$$slots:{default:!0}})});var u=h($,2);return fr(u,{get viewport(){return n()},get onViewportChange(){return g()},get returnFocus(){return e(b)},get open(){return e(P)},set open(k){d(P,k,!0)}}),C(o,U),Ye(Q)}var ma=re('<span data-browser-viewport-readout=""> </span> <!>',1),ha=re('<div data-browser-device-frame-container=""><div><div><!> <!></div> <!></div></div>');function fo(o,t){if(new.target)return je({component:fo,...o});Je(t,!0);const n=320,g=3840,m=150,P=24;let b=v(t,"viewport",7),F=v(t,"onViewportChange",7),A=v(t,"chromeOutside",7,!1),S=v(t,"children",7),s=W(Rt(b().mode==="fit"?n:b().width)),L=W(Rt(b().mode==="fit"?n:b().height)),Q,U=W(0),$=W(0),u=W(!1),k=null,O=0,x=0,I=0,R=0,T;const ee=f(()=>b().mode==="fit"),ge=f(()=>c.browser_viewport_dimensions_label({width:ze(e(s)),height:ze(e(L))})),G=f(()=>A()?Math.max(0,e($)-P):e($)),K=f(()=>!e(ee)&&e(U)>0&&e(G)>0?Math.min(1,e(U)/e(s),e(G)/e(L)):1),oe=f(()=>e(s)*e(K)),te=f(()=>e(L)*e(K));Ue(()=>{e(u)||b().mode==="fit"||(d(s,b().width,!0),d(L,b().height,!0))});function X(y){return Math.min(g,Math.max(n,Math.round(y)))}function le(){F()({mode:"custom",width:e(s),height:e(L)})}function B(){clearTimeout(T),T=setTimeout(le,m)}function ae(y){e(ee)||y.button!==0||(y.preventDefault(),d(u,!0),k=y.pointerId,O=y.clientX,x=y.clientY,I=e(s),R=e(L),y.currentTarget instanceof HTMLElement&&y.currentTarget.setPointerCapture?.(y.pointerId))}function a(y){!e(u)||y.pointerId!==k||(d(s,X(I+y.clientX-O),!0),d(L,X(R+y.clientY-x),!0),B())}function l(y){if(!e(u)||y.pointerId!==k)return;clearTimeout(T),d(u,!1),k=null;const q=y.currentTarget;q instanceof HTMLElement&&q.hasPointerCapture?.(y.pointerId)&&q.releasePointerCapture&&q.releasePointerCapture(y.pointerId),le()}qr(()=>{const y=(E,Pe)=>{d(U,E,!0),d($,Pe,!0)};y(Q.clientWidth,Q.clientHeight);const q=typeof ResizeObserver>"u"?void 0:new ResizeObserver(([E])=>{y(E?.contentRect.width??Q.clientWidth,E?.contentRect.height??Q.clientHeight)});return q?.observe(Q),()=>q?.disconnect()}),Hr(()=>clearTimeout(T));var j={get viewport(){return b()},set viewport(y){b(y),w()},get onViewportChange(){return F()},set onViewportChange(y){F(y),w()},get chromeOutside(){return A()},set chromeOutside(y=!1){A(y),w()},get children(){return S()},set children(y){S(y),w()},$set:Ze,$on:(y,q)=>Xe(t,y,q)},ue=ha();{const y=E=>{var Pe=ma(),fe=H(Pe),Qe=ke(fe,!0),nt=h(fe,2);{let We=f(()=>A()?"top-full":"bottom-0"),Fe=f(()=>c.browser_viewport_resizeHandle_ariaLabel());Oe(nt,{type:"button",variant:"ghost",size:"icon-xs",iconOnly:!0,get class(){return`absolute right-0 z-20 size-5 cursor-nwse-resize touch-none border-0 bg-transparent p-0 after:absolute after:bottom-1 after:right-1 after:size-2 after:border-b-2 after:border-r-2 after:border-muted-foreground ${e(We)??""}`},get"aria-label"(){return e(Fe)},"data-testid":"browser-device-resize-handle",onpointerdown:ae,onpointermove:a,onpointerup:l,onpointercancel:l})}D(()=>{xt(fe,1,`pointer-events-none absolute left-1/2 z-10 -translate-x-1/2 rounded bg-background/90 px-1.5 py-0.5 text-xs text-muted-foreground shadow-sm backdrop-blur ${A()?"top-full mt-0.5":"bottom-1"}`),J(Qe,e(ge))}),C(E,Pe)};var Ie=ie(ue),he=ie(Ie);let q;var M=ie(he);Xo(M,()=>S()??zo);var _=h(M,2);{var Z=E=>{y(E)};be(_,E=>{!e(ee)&&!A()&&E(Z)})}se(he);var V=h(he,2);{var z=E=>{y(E)};be(V,E=>{!e(ee)&&A()&&E(z)})}se(Ie),se(ue),kt(ue,E=>Q=E,()=>Q),D(()=>{xt(Ie,1,`relative ${e(ee)?"h-full w-full":""} ${A()&&!e(ee)?"mb-6":""}`),xt(he,1,`relative overflow-hidden bg-background ${e(ee)?"h-full w-full":e(u)?"ring-2 ring-primary/30":""}`),Be(he,"data-browser-device-frame",e(ee)?void 0:""),Be(he,"data-width",e(ee)?void 0:e(s)),Be(he,"data-height",e(ee)?void 0:e(L)),q=Ho(he,"",q,{width:e(ee)?void 0:`${e(oe)}px`,height:e(ee)?void 0:`${e(te)}px`})})}return D(()=>xt(ue,1,`flex h-full w-full items-center justify-center overflow-hidden ${e(ee)?"bg-background":"bg-muted/40"}`)),C(o,ue),Ye(j)}const rr=Dt("BrowserViewSlot"),Br=()=>new Promise(o=>requestAnimationFrame(()=>o())),Or=async()=>{await Br(),await Br()};function Nr(o,t){return o===t?!0:!o||!t?!1:o.x===t.x&&o.y===t.y&&o.width===t.width&&o.height===t.height}function Mr(o){const t=o.getBoundingClientRect();return t.width<=0||t.height<=0?null:{x:t.left,y:t.top,width:t.width,height:t.height}}function _a(o){return o.isConnected?typeof o.checkVisibility=="function"?o.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):!0:!1}function ya(o,t){let n=Dr(o,t),g=`${t.workspaceId}\0${t.tabId}`;return{update(m){const P=`${m.workspaceId}\0${m.tabId}`;if(P===g){n.update(m);return}n.destroy(),g=P,n=Dr(o,m)},destroy(){n.destroy()}}}function Dr(o,t){let n=t;const g=An(o,{tabId:n.tabId,workspaceId:n.workspaceId,url:n.url,...n.pinned===void 0?{}:{pinned:n.pinned}});n.onWebview?.(g.webview);let m=null,P=Promise.resolve(),b="live",F=0,A=null,S=null,s=!1;const L=()=>{A?.remove(),A=null},Q=x=>{m=x;const I=n.tabId;return P=On(I,x.rect,x.visible).catch(R=>rr.debug("Could not place the browser page",{tabId:I,error:R})),P},U=()=>{if(S=null,s)return;const x=Mr(o),I=n.visible&&x!==null&&_a(o)&&b!=="frozen"&&g.ready;g.ready&&(!m||m.visible!==I||x&&!Nr(m.rect,x))&&(Nr(m?.rect??null,x)||Kn(),Q({rect:x??m?.rect??null,visible:I})),S=requestAnimationFrame(U)};S=requestAnimationFrame(U);const $=async x=>{if(b="freezing",g.ready&&m?.visible)try{const I=await g.webview.capturePage?.();if(x!==F||s)return;const R=I?.toDataURL()??"";if(R){const T=document.createElement("img");if(T.alt="",T.setAttribute("aria-hidden","true"),T.dataset.browserViewSnapshot="",T.style.cssText="position:absolute;inset:0;width:100%;height:100%;pointer-events:none;",T.src=R,await T.decode().catch(()=>{}),x!==F||s||(L(),o.append(T),A=T,await Or(),x!==F||s))return}}catch(I){rr.debug("Could not snapshot the browser page",{tabId:n.tabId,error:I})}x!==F||s||(b="frozen")},u=async x=>{if(b="thawing",g.ready&&n.visible){const I=Mr(o);I&&await Q({rect:I,visible:!0}),await Or()}x!==F||s||(L(),b="live")},k=Hn({element:o,onCoveredChange(x){const I=++F;x?$(I):u(I)}});return{update(x){n=x},destroy:()=>{const x=n.tabId;s=!0,S!==null&&cancelAnimationFrame(S),S=null,k(),L(),g.dispose(),n.onWebview?.(null),P.then(()=>Bn(x).catch(I=>rr.debug("Could not take the browser page off screen",{tabId:x,error:I})))}}}var xa=re('<div class="relative h-full w-full overflow-hidden"></div>');function go(o,t){if(new.target)return je({component:go,...o});Je(t,!0);let n=v(t,"tabId",7),g=v(t,"workspaceId",7),m=v(t,"url",7),P=v(t,"pinned",7),b=v(t,"visible",7),F=v(t,"webview",15,null);var A={get tabId(){return n()},set tabId(s){n(s),w()},get workspaceId(){return g()},set workspaceId(s){g(s),w()},get url(){return m()},set url(s){m(s),w()},get pinned(){return P()},set pinned(s){P(s),w()},get visible(){return b()},set visible(s){b(s),w()},get webview(){return F()},set webview(s=null){F(s),w()},$set:Ze,$on:(s,L)=>Xe(t,s,L)},S=xa();return Ct(S,(s,L)=>ya?.(s,L),()=>({tabId:n(),workspaceId:g(),url:m(),...P()===void 0?{}:{pinned:P()},visible:b(),onWebview:s=>F(s)})),Ct(S,(s,L)=>io?.(s,L),n),D(()=>Be(S,"data-browser-view-slot",n())),C(o,S),Ye(A)}function vo(o,t){if(new.target)return je({component:vo,...o});Je(t,!0);let n=v(t,"active",7),g=v(t,"disabled",7),m=v(t,"onToggle",7);var P={get active(){return n()},set active(b){n(b),w()},get disabled(){return g()},set disabled(b){g(b),w()},get onToggle(){return m()},set onToggle(b){m(b),w()},$set:Ze,$on:(b,F)=>Xe(t,b,F)};{let b=f(()=>n()?"bg-muted text-foreground":""),F=f(()=>n()?c.browser_embedded_cancelElementSelection_tooltip():c.browser_embedded_selectElement_tooltip()),A=f(()=>n()?c.browser_embedded_cancelElementSelection_ariaLabel():c.browser_embedded_selectElement_ariaLabel());Oe(o,{variant:"ghost-light",size:"icon-xs",get class(){return e(b)},get onclick(){return m()},get disabled(){return g()},get tooltip(){return e(F)},tooltipSide:"bottom",get"aria-label"(){return e(A)},get"aria-pressed"(){return n()},"data-testid":"browser-select-element",children:(S,s)=>{ye(S,{get icon(){return nr},size:"xs"})},$$slots:{default:!0}})}return Ye(P)}var Ca=re('<span class="sr-only"> </span>'),Ia=re('<p class="min-h-0 overflow-y-auto text-sm text-foreground [overflow-wrap:anywhere]"> </p> <!>',1),ka=re("<!> <!>",1),Pa=re('<span class="inline-flex shrink-0"><!> <!></span>');function gr(o,t){const n=Kr();if(new.target)return je({component:gr,...o});Je(t,!0);let g=v(t,"label",7),m=v(t,"description",7),P=v(t,"ariaLabel",23,g),b=v(t,"tone",7,"info"),F=v(t,"actionLabel",7),A=v(t,"onAction",7),S=v(t,"actionFocusTarget",7),s=v(t,"descriptionId",7),L=W(!1),Q=!1;async function U(){Q=!0,d(L,!1),await It(),S()?.focus(),A()?.()}var $={get label(){return g()},set label(I){g(I),w()},get description(){return m()},set description(I){m(I),w()},get ariaLabel(){return P()},set ariaLabel(I=g){P(I),w()},get tone(){return b()},set tone(I="info"){b(I),w()},get actionLabel(){return F()},set actionLabel(I){F(I),w()},get onAction(){return A()},set onAction(I){A(I),w()},get actionFocusTarget(){return S()},set actionFocusTarget(I){S(I),w()},get descriptionId(){return s()},set descriptionId(I){s(I),w()},$set:Ze,$on:(I,R)=>Xe(t,I,R)},u=Pa(),k=ie(u);{var O=I=>{var R=Ca(),T=ke(R,!0);D(()=>{Be(R,"id",n),Be(R,"role",b()==="error"?"alert":"status"),J(T,m())}),C(I,R)};be(k,I=>{s()||I(O)})}var x=h(k,2);return Y(x,()=>Xn,(I,R)=>{R(I,{get open(){return e(L)},set open(T){d(L,T,!0)},children:(T,ee)=>{var ge=ka(),G=H(ge);{const oe=(te,X)=>{let le=()=>(X?.()).props;{let B=f(()=>b()==="error"?"text-danger":b()==="warning"?"text-warning-ink":"text-muted-foreground"),ae=f(()=>s()??n);Oe(te,lr(le,{variant:"ghost-light",size:"icon-compact",wrapContent:!1,get class(){return e(B)},get"aria-label"(){return P()},get"aria-describedby"(){return e(ae)},get tooltip(){return m()},get tooltipDisabled(){return e(L)},tooltipSide:"bottom",tooltipDelayDuration:300,children:(a,l)=>{{let j=f(()=>b()==="error"?Xr:b()==="warning"?nn:Zr);ye(a,{get icon(){return e(j)},size:"xs",class:"shrink-0"})}},$$slots:{default:!0}}))}};Y(G,()=>jn,(te,X)=>{X(te,{child:oe,$$slots:{child:!0}})})}var K=h(G,2);Y(K,()=>Zn,(oe,te)=>{te(oe,{align:"end",class:"flex max-h-[var(--bits-popover-content-available-height,calc(100dvh-1rem))] w-72 max-w-[calc(100vw-1rem)] flex-col gap-3 p-3",get"aria-label"(){return P()},onCloseAutoFocus:X=>{Q&&S()&&(X.preventDefault(),S().focus()),Q=!1},children:(X,le)=>{var B=Ia(),ae=H(B),a=ke(ae,!0),l=h(ae,2);{var j=ue=>{Oe(ue,{variant:"secondary",size:"sm",class:"self-start",onclick:()=>void U(),children:(Ie,he)=>{ht();var M=ct();D(()=>J(M,F())),C(Ie,M)},$$slots:{default:!0}})};be(l,ue=>{F()&&A()&&ue(j)})}D(()=>J(a,m())),C(X,B)},$$slots:{default:!0}})}),C(T,ge)},$$slots:{default:!0}})}),se(u),D(()=>Be(u,"data-browser-status",b())),C(o,u),Ye($)}function Ea(o,t,n){const g=n.width>0?t.width/n.width:1,m=n.height>0?t.height/n.height:1,P=Math.max(0,Math.floor(o.x*g)),b=Math.max(0,Math.floor(o.y*m)),F=Math.min(t.width,Math.ceil((o.x+o.width)*g)),A=Math.min(t.height,Math.ceil((o.y+o.height)*m));return{x:P,y:b,width:Math.max(0,F-P),height:Math.max(0,A-b)}}const Fa=$r({selector:wt().min(1),domPath:wt().min(1),tagName:wt().min(1),id:wt(),className:wt(),textSnippet:wt().max(120),rect:$r({x:Bt().finite(),y:Bt().finite(),width:Bt().finite().nonnegative(),height:Bt().finite().nonnegative()}).strict(),pageUrl:wt().min(1),sourceRef:wt().min(1).optional()}).strict(),Vr="__INTENT_ELEMENT_PICKED__:";function Sa(o){if(o==="__INTENT_ELEMENT_PICK_CANCELLED__")return{type:"cancelled"};if(!o.startsWith(Vr))return null;let t;try{t=JSON.parse(o.slice(Vr.length))}catch{t=null}const n=Fa.safeParse(t);return n.success?{type:"picked",element:n.data}:{type:"malformed",issues:n.error.issues}}const La=String.raw`
|
|
2
|
+
(function() {
|
|
3
|
+
var PICKED_PREFIX = '__INTENT_ELEMENT_PICKED__:';
|
|
4
|
+
var CANCELLED = '__INTENT_ELEMENT_PICK_CANCELLED__';
|
|
5
|
+
var existingCleanup = window.__intentElementPickerCleanup;
|
|
6
|
+
if (typeof existingCleanup === 'function') existingCleanup();
|
|
7
|
+
|
|
8
|
+
var overlay = document.createElement('div');
|
|
9
|
+
var label = document.createElement('div');
|
|
10
|
+
overlay.setAttribute('data-intent-element-picker-overlay', '');
|
|
11
|
+
overlay.style.cssText = 'position:fixed;z-index:2147483647;pointer-events:none;border:2px solid #7c3aed;background:rgba(124,58,237,.12);box-sizing:border-box;display:none;';
|
|
12
|
+
label.style.cssText = 'position:absolute;left:-2px;bottom:100%;max-width:320px;padding:2px 5px;background:#7c3aed;color:#fff;font:11px/1.4 ui-monospace,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;';
|
|
13
|
+
overlay.appendChild(label);
|
|
14
|
+
(document.documentElement || document.body).appendChild(overlay);
|
|
15
|
+
|
|
16
|
+
function escapeCss(value) {
|
|
17
|
+
if (window.CSS && typeof window.CSS.escape === 'function') return window.CSS.escape(value);
|
|
18
|
+
return value.replace(/[^a-zA-Z0-9_-]/g, function(character) {
|
|
19
|
+
return '\\' + character;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function segment(element) {
|
|
24
|
+
var value = element.tagName.toLowerCase();
|
|
25
|
+
if (element.id) return value + '#' + escapeCss(element.id);
|
|
26
|
+
var classValue = typeof element.className === 'string' ? element.className.trim() : '';
|
|
27
|
+
if (classValue) value += '.' + classValue.split(/\s+/).map(escapeCss).join('.');
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function uniqueSelector(element) {
|
|
32
|
+
if (element.id) {
|
|
33
|
+
var idSelector = '#' + escapeCss(element.id);
|
|
34
|
+
if (document.querySelectorAll(idSelector).length === 1) return idSelector;
|
|
35
|
+
}
|
|
36
|
+
var parts = [];
|
|
37
|
+
var current = element;
|
|
38
|
+
while (current && current.nodeType === 1) {
|
|
39
|
+
var part = segment(current);
|
|
40
|
+
var parent = current.parentElement;
|
|
41
|
+
if (parent) {
|
|
42
|
+
var siblings = Array.prototype.filter.call(parent.children, function(child) {
|
|
43
|
+
return child.tagName === current.tagName;
|
|
44
|
+
});
|
|
45
|
+
if (siblings.length > 1) part += ':nth-of-type(' + (siblings.indexOf(current) + 1) + ')';
|
|
46
|
+
}
|
|
47
|
+
parts.unshift(part);
|
|
48
|
+
var selector = parts.join(' > ');
|
|
49
|
+
try {
|
|
50
|
+
if (document.querySelectorAll(selector).length === 1) return selector;
|
|
51
|
+
} catch (_) {}
|
|
52
|
+
current = parent;
|
|
53
|
+
}
|
|
54
|
+
return parts.join(' > ');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function domPath(element) {
|
|
58
|
+
var parts = [];
|
|
59
|
+
var current = element;
|
|
60
|
+
while (current && current.nodeType === 1) {
|
|
61
|
+
parts.unshift(segment(current));
|
|
62
|
+
current = current.parentElement;
|
|
63
|
+
}
|
|
64
|
+
return parts.join('>');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function sourceReference(element) {
|
|
68
|
+
try {
|
|
69
|
+
var attribute = element.getAttribute('data-source') || element.getAttribute('data-loc');
|
|
70
|
+
if (attribute) return attribute;
|
|
71
|
+
var testId = element.getAttribute('data-testid');
|
|
72
|
+
if (testId) return 'data-testid=' + testId;
|
|
73
|
+
} catch (_) {}
|
|
74
|
+
try {
|
|
75
|
+
var svelteLoc = element.__svelte_meta && element.__svelte_meta.loc;
|
|
76
|
+
if (svelteLoc && svelteLoc.file) {
|
|
77
|
+
return svelteLoc.file + (svelteLoc.line == null ? '' : ':' + svelteLoc.line + ':' + (svelteLoc.column || 0));
|
|
78
|
+
}
|
|
79
|
+
} catch (_) {}
|
|
80
|
+
try {
|
|
81
|
+
var fiberKey = Object.keys(element).find(function(key) {
|
|
82
|
+
return key.indexOf('__reactFiber$') === 0 || key.indexOf('__reactInternalInstance$') === 0;
|
|
83
|
+
});
|
|
84
|
+
var fiber = fiberKey ? element[fiberKey] : null;
|
|
85
|
+
while (fiber) {
|
|
86
|
+
if (fiber._debugSource && fiber._debugSource.fileName) {
|
|
87
|
+
return fiber._debugSource.fileName + ':' + (fiber._debugSource.lineNumber || 0) + ':' + (fiber._debugSource.columnNumber || 0);
|
|
88
|
+
}
|
|
89
|
+
var ownerType = fiber._debugOwner && fiber._debugOwner.type;
|
|
90
|
+
var ownerName = ownerType && (ownerType.displayName || ownerType.name);
|
|
91
|
+
if (ownerName) return 'React:' + ownerName;
|
|
92
|
+
fiber = fiber.return;
|
|
93
|
+
}
|
|
94
|
+
} catch (_) {}
|
|
95
|
+
try {
|
|
96
|
+
var vueType = element.__vueParentComponent && element.__vueParentComponent.type;
|
|
97
|
+
if (vueType && vueType.__file) return vueType.__file;
|
|
98
|
+
} catch (_) {}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function cleanup() {
|
|
102
|
+
document.removeEventListener('mousemove', onMove, true);
|
|
103
|
+
document.removeEventListener('click', onClick, true);
|
|
104
|
+
document.removeEventListener('keydown', onKeyDown, true);
|
|
105
|
+
overlay.remove();
|
|
106
|
+
if (window.__intentElementPickerCleanup === cleanup) delete window.__intentElementPickerCleanup;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function onMove(event) {
|
|
110
|
+
var target = event.target;
|
|
111
|
+
if (!target || target === overlay || overlay.contains(target) || !target.getBoundingClientRect) return;
|
|
112
|
+
var rect = target.getBoundingClientRect();
|
|
113
|
+
overlay.style.display = 'block';
|
|
114
|
+
overlay.style.left = rect.left + 'px';
|
|
115
|
+
overlay.style.top = rect.top + 'px';
|
|
116
|
+
overlay.style.width = rect.width + 'px';
|
|
117
|
+
overlay.style.height = rect.height + 'px';
|
|
118
|
+
label.textContent = segment(target) + ' ' + Math.round(rect.width) + '×' + Math.round(rect.height);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function onClick(event) {
|
|
122
|
+
var target = event.target;
|
|
123
|
+
if (!target || target === overlay || overlay.contains(target) || !target.getBoundingClientRect) return;
|
|
124
|
+
event.preventDefault();
|
|
125
|
+
event.stopPropagation();
|
|
126
|
+
event.stopImmediatePropagation();
|
|
127
|
+
var rect = target.getBoundingClientRect();
|
|
128
|
+
var text = (target.textContent || '').replace(/\s+/g, ' ').trim().slice(0, 120);
|
|
129
|
+
var payload = {
|
|
130
|
+
selector: uniqueSelector(target),
|
|
131
|
+
domPath: domPath(target),
|
|
132
|
+
tagName: target.tagName.toLowerCase(),
|
|
133
|
+
id: target.id || '',
|
|
134
|
+
className: typeof target.className === 'string' ? target.className : '',
|
|
135
|
+
textSnippet: text,
|
|
136
|
+
rect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height },
|
|
137
|
+
pageUrl: window.location.href
|
|
138
|
+
};
|
|
139
|
+
var sourceRef = sourceReference(target);
|
|
140
|
+
if (sourceRef) payload.sourceRef = sourceRef;
|
|
141
|
+
cleanup();
|
|
142
|
+
console.log(PICKED_PREFIX + JSON.stringify(payload));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function onKeyDown(event) {
|
|
146
|
+
if (event.key !== 'Escape') return;
|
|
147
|
+
event.preventDefault();
|
|
148
|
+
event.stopPropagation();
|
|
149
|
+
cleanup();
|
|
150
|
+
console.log(CANCELLED);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
window.__intentElementPickerCleanup = cleanup;
|
|
154
|
+
document.addEventListener('mousemove', onMove, true);
|
|
155
|
+
document.addEventListener('click', onClick, true);
|
|
156
|
+
document.addEventListener('keydown', onKeyDown, true);
|
|
157
|
+
})();
|
|
158
|
+
`;function Ra(o){return o<400?"controls-collapsed":o<560?"hostname-hidden":"full"}function $a(o,t){let n=t,g;const m=b=>{if(b<=0)return;const F=Ra(b);F!==g&&(g=F,n(F))};m(o.getBoundingClientRect().width);const P=typeof ResizeObserver>"u"?void 0:new ResizeObserver(([b])=>m(b?.contentRect.width??o.clientWidth));return P?.observe(o),{update(b){n=b,g&&n(g)},destroy(){P?.disconnect()}}}var Ta=re('<webview class="w-full h-full border-none" allowpopups=""></webview>'),Ua=re('<span class="size-5 shrink-0 rounded-full bg-muted" aria-hidden="true" data-browser-page-favicon-fallback=""></span>'),Aa=re('<img alt="" class="size-5 shrink-0 rounded-sm" data-browser-page-favicon=""/>'),Ba=re('<form class="relative z-10 flex h-full min-w-0 flex-1 items-center px-2"><!> <!></form>'),Oa=re('<span class="browser-toolbar-hostname truncate text-xs text-muted-foreground svelte-n30m5t"> </span>'),Na=re('<!> <span class="min-w-0 flex-1 truncate text-sm font-medium text-foreground"> </span> <!>',1),Ma=re('<div class="flex items-center justify-center h-full text-subtle"><div class="text-center"><div class="text-4xl mb-3 opacity-50">⚠️</div> <p class="text-lg font-medium mb-1"> </p> <p class="text-sm"><!></p> <p class="text-xs mt-2 max-w-md break-all text-muted-foreground"> </p></div></div>'),Da=re('<div class="flex items-center justify-center h-full text-subtle"><div class="text-center"><div class="text-4xl mb-3 opacity-50">🌐</div> <p class="text-lg font-medium mb-1"> </p> <p class="text-sm"> </p></div></div>'),Va=re('<p class="text-foreground"> </p>'),za=re('<div class="absolute inset-0 z-30 flex flex-col overflow-y-auto bg-background" data-browser-load-error=""><!></div>'),Wa=re('<div class="flex flex-col h-full bg-background"><div class="browser-toolbar flex h-12 shrink-0 items-center gap-1 border-b border-border bg-muted/30 px-2 svelte-n30m5t" data-browser-toolbar=""><div class="flex gap-0.5"><div class="browser-toolbar-history flex gap-0.5 svelte-n30m5t"><!> <!></div> <!> <!></div> <div class="flex min-w-0 flex-1 items-center gap-2"><!> <div class="relative flex h-8 min-w-0 flex-1 items-center rounded-md bg-background" data-browser-address-surface=""><!> <span aria-hidden="true"></span></div></div> <div class="browser-toolbar-picker h-7 w-7 shrink-0 svelte-n30m5t" data-browser-select-element-slot=""><!></div> <div class="browser-toolbar-viewport flex shrink-0 items-center svelte-n30m5t" data-browser-viewport-slot=""><!></div> <div class="flex h-7 w-7 shrink-0 items-center" data-browser-overflow-slot=""><!></div></div> <div class="min-h-0 flex-1 relative overflow-hidden"><!> <!></div></div>');function wo(o,t){const n=Kr();if(new.target)return je({component:wo,...o});Je(t,!0);const g=()=>bt(X,"$pendingZoom$",b),m=()=>bt(le,"$pagesMode$",b),P=()=>bt(L,"$copyBrowserUrlShortcut$",b),[b,F]=Gr(),A=r=>{var i=ut(),p=H(i);{var N=ne=>{{let _e=f(()=>pt(()=>e(Le))),$e=f(()=>!!ge()),Te=f(()=>ee()&&!e(y));go(ne,{get tabId(){return u()},get workspaceId(){return $()},get url(){return e(_e)},get pinned(){return e($e)},get visible(){return e(Te)},get webview(){return e(a)},set webview(rt){d(a,rt,!0)}})}},de=ne=>{S(ne)};be(p,ne=>{e(B)&&u()?ne(N):ne(de,-1)})}C(r,i)},S=r=>{var i=Ta();kt(i,p=>d(a,p),()=>e(a)),Ct(i,(p,N)=>io?.(p,N),u),D(p=>{i.inert=!!e(y),Be(i,"src",p),Be(i,"partition",$t)},[()=>pt(()=>e(Le))]),C(r,i)},s=Dt("EmbeddedBrowser"),L=Vn("panel.copy-browser-url"),Q=ro.NAVIGATION_ALLOWED;let U=v(t,"url",7),$=v(t,"workspaceId",7),u=v(t,"tabId",7),k=v(t,"onNavigate",7),O=v(t,"onTitleChange",7),x=v(t,"onFaviconChange",7),I=v(t,"onFocus",7),R=v(t,"focusUrlBarOnMount",7,!1),T=v(t,"isFocused",7,!1),ee=v(t,"isActive",7,!0),ge=v(t,"ownerAgentId",7),G=v(t,"viewport",23,()=>({mode:"fit"})),K=v(t,"onViewportChange",7),oe=v(t,"onFullScreen",7);const te=sn(),X=u()?En($(),u()):null;Ue(()=>{s.info("EmbeddedBrowser URL prop",{url:U(),isValid:dt(U()),appOrigin:typeof window<"u"?window.location.origin:"N/A",workspaceId:$()})}),Ue(()=>{if(!X||!u())return;const r=g();if(!(!r||r.length===0)&&!(!e(a)||!e(E))){try{for(const i of r){const p=e(a).getZoomLevel?.()??0;i==="in"?e(a).setZoomLevel?.(p+.5):i==="out"?e(a).setZoomLevel?.(p-.5):i==="reset"&&e(a).setZoomLevel?.(0)}}catch{}Se.dispatch(ln($(),u()))}});const le=oo,B=f(()=>m()==="main"&&!!u());let ae=W(null),a=W(null);Ue(()=>{if(!e(a)||!u())return;const r=u(),i=crypto.randomUUID();return pt(()=>Se.dispatch(dn(r,i))),()=>{pt(()=>Se.dispatch(un(r,i)))}});let l=W(Rt(U()||"")),j=W(""),ue=W(!1),Ie=W(""),he=W(""),M=W(!1),_=W(!1),Z=W(!1),V=W(!1),z=W(Rt(U()?.startsWith("https://")??!1)),y=W(""),q=W(null),E=W(!1),Pe=W(0),fe=W(!1),Qe=W("full");function nt(r){d(Qe,r,!0)}let We=W(!1),Fe=0,Ge="",at="",it="";function Me(){return Ge="",at="",it="",++Fe}let qe=W(!1),Le=W(Rt(dt(U())?U():"about:blank"));Ue(()=>{if(e(a))try{e(a).setAudioMuted?.(!ee())}catch{}});const _t=aa(U());function ve(r){if(!r||r==="about:blank")return"";try{return new URL(r).hostname}catch{return""}}const we=f(()=>ve(e(l))),Ee=f(()=>e(Ie)||e(we)||(e(l)&&e(l)!=="about:blank"?e(l):c.browser_embedded_url_placeholder()));async function Re(){d(j,e(l),!0),d(ue,!0),await It(),requestAnimationFrame(()=>{e(ae)?.focus(),e(ae)?.select()})}function pe(){d(ue,!1),d(j,"")}function me(r){if((r.metaKey||r.ctrlKey)&&!r.shiftKey&&!r.altKey&&r.key.toLowerCase()==="l"){r.preventDefault(),e(ae)?.select();return}r.key==="Escape"&&(r.preventDefault(),r.stopPropagation(),pe())}let Ae=f(()=>dt(e(Le)));Ue(()=>{const r=sa(_t,U(),{webviewReady:e(E)||!e(a),isValidBrowserUrl:dt});if(r.shouldLoad&&r.targetUrl){if(pt(()=>e(B))&&(r.targetUrl==="about:blank"||r.targetUrl===pt(()=>ft())))return;d(l,r.targetUrl,!0),gt(r.targetUrl)}});let ce=[],xe;function De(){!e(a)||e(B)||e(a).executeJavaScript(Mn).then(()=>{}).catch(r=>{s.debug("Failed to inject keyboard interceptor",{error:r.message})})}Ue(()=>{const r=e(a);if(r){!e(B)&&!r.getAttribute("partition")&&(r.setAttribute("partition",$t),s.debug("Set partition attribute on webview",{partition:$t})),!e(B)&&!r.hasAttribute("allowpopups")&&(r.setAttribute("allowpopups",""),s.debug("Set allowpopups attribute on webview")),et();const i=()=>{if(d(E,!0),s.debug("Webview ready",{url:e(Le)}),De(),u()&&!e(B))try{const N=r.getWebContentsId();N!==xe&&(xe=N,s.info("Registering browser tab for CDP",{tabId:u(),webContentsId:N}),window.electronAPI?.invoke("browser:register-tab",{tabId:u(),webContentsId:N,workspaceId:$()}).catch(de=>{s.error("Failed to register browser tab for CDP",{tabId:u(),webContentsId:N,error:de}),xe===N&&(xe=void 0)}))}catch{s.debug("Failed to get webContentsId for CDP registration",{tabId:u()})}};r.addEventListener("dom-ready",i),ce.push({event:"dom-ready",handler:i});const p=()=>{De()};return r.addEventListener("did-finish-load",p),ce.push({event:"did-finish-load",handler:p}),()=>{st(r)}}});const Ne={current:!1};Ue(()=>{Ne.current=T(),s.debug("isFocused changed",{isFocused:T(),url:U()})}),qr(()=>{R()&&Re();const r=i=>{const p=jo(i.target),N=i.metaKey||i.ctrlKey,de=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent);if(e(fe)&&i.key==="Escape"){i.preventDefault(),i.stopPropagation(),br();return}if(Ne.current&&!p&&N&&!i.shiftKey&&!i.altKey&&i.key.toLowerCase()==="l"){i.preventDefault(),i.stopPropagation(),Re();return}if(Ne.current&&!p&&Tn(i,P(),de)){i.preventDefault(),i.stopPropagation(),Vt();return}const ne=Nn(i);ne==="back"&&!p?e(E)&&e(a)&&(i.preventDefault(),Pt()):ne==="forward"&&!p&&e(E)&&e(a)&&(i.preventDefault(),Et()),(i.key==="F5"||N&&i.key==="r")&&Ne.current&&(i.preventDefault(),i.stopPropagation(),Ft())};return window.addEventListener("keydown",r,!0),()=>{window.removeEventListener("keydown",r,!0),Me(),st()}});function st(r=e(a)){if(r)for(const{event:i,handler:p}of ce)try{r.removeEventListener?.(i,p)}catch{}ce=[]}function Ce(r,i){e(a)&&(e(a).addEventListener(r,i),ce.push({event:r,handler:i}))}function He(r){try{r.getWebContentsId()}catch{return"none"}try{return r.getURL?.(),"live"}catch{return"dead"}}function et(){e(a)&&(Ce("did-start-loading",()=>{d(V,!0),d(fe,!1)}),Ce("did-stop-loading",()=>{d(V,!1),d(E,!0),St(e(l)),Ve()}),Ce("destroyed",()=>{const r=e(a),i=r?He(r):"none";if(!r?.isConnected||i!=="dead"){s.debug("Ignoring destroyed event for a replaced guest",{tabId:u(),guest:i});return}s.warn("Webview guest was destroyed",{tabId:u(),url:$n(e(Le))}),st(),d(E,!1),d(V,!1),d(fe,!1),d(_,!1),d(Z,!1),xe=void 0,d(y,c.browser_embedded_pageClosed_error(),!0),d(qe,!0)}),Ce("did-navigate",r=>{d(Pe,0),d(Le,r.url,!0),d(l,r.url,!0),d(Ie,""),d(he,""),d(M,!1),d(z,r.url?.startsWith("https://"),!0),d(y,"");const i=cn(it||void 0,r.url,at||void 0);Me(),Tr(_t,r.url),i?k()?.(r.url,i):k()?.(r.url),Ve()}),Ce("did-navigate-in-page",r=>{r.isMainFrame&&(d(y,""),d(Le,r.url,!0),d(l,r.url,!0),d(z,r.url?.startsWith("https://"),!0),Me(),Tr(_t,r.url),k()?.(r.url),Ve())}),Ce("page-title-updated",r=>{d(Ie,r.title??"",!0),Se.dispatch(Fr($(),e(l),r.title,void 0)),O()?.(r.title)}),Ce("page-favicon-updated",r=>{r.favicons?.length>0&&(d(he,r.favicons[0],!0),d(M,!1),Se.dispatch(Fr($(),e(l),void 0,r.favicons[0])),x()?.(r.favicons[0]))}),Ce("did-fail-load",r=>{if(r.isMainFrame!==!1){if(r.errorCode!==-3){const i=r.validatedURL||e(Le),p=i?.includes("localhost")||i?.includes("127.0.0.1");if(Ge)d(y,Ge,!0),s.warn("Webview failed to load after a resolver error",{url:i,errorCode:r.errorCode,errorDescription:r.errorDescription});else if(r.errorCode===-102&&p){const N=i?.match(/:(\d+)/)?.[1];d(y,N?c.browser_embedded_localhostRefusedPort_error({port:N}):c.browser_embedded_localhostRefused_error(),!0),s.warn("Localhost connection refused",{url:i,errorCode:r.errorCode})}else d(y,r.errorDescription||c.browser_embedded_loadFailed_error(),!0),s.error("Webview failed to load",{errorCode:r.errorCode,errorDescription:r.errorDescription})}d(V,!1)}}),Ce("focus",()=>{I()?.()}),Ce("console-message",r=>{r.level===3&&d(Pe,e(Pe)+1);const i=r.message;if(i==="__INTENT_CLOSE_TAB__"){const p=new KeyboardEvent("keydown",{key:"w",code:"KeyW",metaKey:!0,ctrlKey:!1,bubbles:!0,cancelable:!0});window.dispatchEvent(p)}else if(i==="__INTENT_REFRESH__")Ft();else if(i==="__INTENT_FOCUS_URL__")Re();else if(i.startsWith("__INTENT_PANEL_BRACKET__:")){const p=Dn(i);if(!p)return;window.dispatchEvent(new KeyboardEvent("keydown",{...p,bubbles:!0,cancelable:!0}))}else if(i==="__INTENT_COPY_URL__")Vt();else if(i==="__INTENT_DEVTOOLS__")xo();else{const p=Sa(i);if(p&&!e(fe)){s.debug("Ignored element picker message while picker was inactive");return}p?.type==="cancelled"&&d(fe,!1),p?.type==="malformed"&&(d(fe,!1),s.warn("Ignored malformed element picker payload",{issues:p.issues})),p?.type==="picked"&&(d(fe,!1),_o(p.element))}}))}function Ve(){if(e(a)&&e(E))try{d(_,e(a).canGoBack?.()??!1,!0),d(Z,e(a).canGoForward?.()??!1,!0)}catch{d(_,!1),d(Z,!1)}}function ft(){try{return e(a)?.getURL?.()}catch{return}}function St(r){const i=ia(_t,r,ft());i&&(d(l,i,!0),d(z,i.startsWith("https://"),!0),k()?.(i))}async function gt(r){if(r){if(Me(),!dt(r)){try{const i=new URL(r);Q.includes(i.protocol)?(d(y,c.browser_embedded_selfLoad_error(),!0),s.warn("Prevented loading app URL in webview",{url:r})):(d(y,c.browser_embedded_protocolNotAllowed_error({protocol:i.protocol,protocols:Q.join(", ")}),!0),s.warn("Blocked disallowed protocol in webview",{url:r,protocol:i.protocol}))}catch{d(y,c.browser_embedded_invalidUrlFormat_error(),!0),s.warn("Invalid URL format",{url:r})}return}try{if(new URL(r),d(y,""),s.info("loadUrl: validated URL",{url:r,webviewRef:!!e(a),webviewReady:e(E)}),e(a)){s.info("loadUrl: calling webviewRef.loadURL",{targetUrl:r});const i=e(a);na(i,r).then(()=>{St(r),Ve()}).catch(p=>{s.warn("Webview navigation failed",{targetUrl:r,error:p})})}else s.info("loadUrl: recreating webview",{targetUrl:r}),d(We,!0),await It(),d(Le,r,!0),d(qe,!1),d(We,!1),d(E,!1)}catch(i){d(y,c.browser_embedded_invalidUrl_error(),!0),s.error("Invalid URL",{url:r,error:i})}}}function Pt(){if(!(!e(E)||!e(a)))try{e(a).canGoBack?.()&&(Me(),e(a).goBack())}catch{}}function Et(){if(!(!e(E)||!e(a)))try{e(a).canGoForward?.()&&(Me(),e(a).goForward())}catch{}}function Ft(){if(e(qe)){const r=e(Le)!=="about:blank"?e(Le):e(l);r&>(r);return}if(!(!e(E)||!e(a)))try{Me(),e(a).reload?.(),e(y)||e(a).focus?.()}catch{}}function Ut(){if(e(q)?.focus(),e(E)||e(qe)){Ft();return}const r=ft()||e(l)||e(Le);dt(r)?gt(r):Re()}function Lt(){const r=ft();return r&&r!=="about:blank"?r:e(Le)!=="about:blank"?e(Le):""}async function Vt(){const r=Lt();if(!r){vt.error(c.browser_embedded_noUrlToCopy_error());return}try{await Pn(r),vt.success(c.browser_embedded_urlCopied_label())}catch(i){s.error("Failed to copy browser URL",i,{url:r}),vt.error(c.browser_embedded_copyFailed_error())}}async function mo(){const r=Lt();if(!r){vt.error(c.browser_embedded_noUrlToOpen_error());return}try{await ar("shell:openExternal",{url:r})}catch(i){s.error("Failed to open browser URL externally",i,{url:r}),vt.error(c.browser_embedded_openExternalFailed_error())}}function vr(r){const i="data:",p=";base64,",N=r.indexOf(p,i.length),de=r.slice(i.length,N),ne=r.slice(N+p.length);if(!r.startsWith(i)||N<0||!de.startsWith("image/")||!ne)throw new Error("Captured image did not produce a valid base64 data URL");return{data:ne,mimeType:de}}function wr(r,i){if(!u()||!e(a))return;const p=i?.pageUrl||Lt(),N=Ln.select(Se.state,$())?.agentId??ge();if(!N){vt.error(c.browser_embedded_noTargetAgent_error());return}Se.dispatch(fn($(),{tabId:u(),ownerAgentId:ge(),targetAgentId:N,pageUrl:p,title:e(Ie)||ve(p)||p,viewport:G().mode==="fit"?{width:e(a).clientWidth,height:e(a).clientHeight}:{width:G().width,height:G().height},image:r,...i?{element:i}:{}}))}async function ho(){if(!(!e(a)?.capturePage||!e(E)||!u()))try{const r=await e(a).capturePage();wr(vr(r.toDataURL()))}catch(r){s.error("Failed to capture browser screenshot",r),vt.error(c.browser_embedded_screenshotFailed_error())}}async function _o(r){if(!e(a)?.capturePage||!e(E)||!u())return;const i={width:e(a).clientWidth,height:e(a).clientHeight},p=G().mode==="fit"?i:{width:G().width,height:G().height},N=Ea(r.rect,i,p);if(N.width<=0||N.height<=0){s.warn("Ignored offscreen element picker rectangle",{rect:r.rect});return}try{const de=await e(a).capturePage(N);wr(vr(de.toDataURL()),r)}catch(de){s.error("Failed to capture selected browser element",de),vt.error(c.browser_embedded_screenshotFailed_error())}}async function pr(){if(e(fe)){br();return}if(!(!e(a)||!e(E)||!u()))try{await e(a).executeJavaScript(La),d(fe,!0),e(a).focus?.()}catch(r){s.debug("Failed to inject element picker",{error:r}),d(fe,!1)}}function br(){d(fe,!1),e(a)?.executeJavaScript("typeof window.__intentElementPickerCleanup === 'function' && window.__intentElementPickerCleanup()").catch(r=>s.debug("Failed to clean up element picker",{error:r}))}async function zt(r){if(!(!e(a)||!e(E))){if(!u()){e(a).openDevTools?.();return}try{await window.electronAPI?.invoke("browser:open-devtools-panel",{tabId:u(),panel:r})}catch(i){s.warn("Failed to select DevTools panel; opening plain DevTools",{panel:r,error:i}),e(a).openDevTools?.()}}}function yo(){if(!(!e(a)||!e(E)))try{Me(),e(a).reloadIgnoringCache?.(),e(a).focus?.()}catch{}}function xo(){if(!(!e(a)||!e(E))){if(e(a).toggleDevTools){e(a).toggleDevTools();return}try{e(a).isDevToolsOpened?.()?e(a).closeDevTools?.():e(a).openDevTools?.()}catch{}}}function Co(r){if(r.preventDefault(),s.info("Form submitted",{urlDraft:e(j),currentWebviewUrl:e(Le),previousUrlProp:_t.previousUrlProp,webviewReady:e(E),webviewRef:!!e(a)}),e(j)){const i=so(e(j));if(i===null){d(y,c.browser_embedded_invalidUrlFormat_error(),!0),s.warn("Invalid URL format",{url:e(j)}),pe();return}s.info("Loading URL from form",{urlToLoad:i}),zn(i)?Io(i):gt(i),Se.dispatch(gn($(),i,void 0,void 0,new Date().toISOString())),pe()}}async function Io(r){const i=Me(),p=await Wn(r,ar);if(i!==Fe){s.info("Dropping superseded address-bar alias resolution",{requestedUrl:r,url:p.url});return}s.info("Resolved address-bar loopback alias",{requestedUrl:r,url:p.url,rewritten:p.rewritten,tunneled:p.tunneled,reason:p.reason,error:p.error}),await gt(p.url),p.rewritten&&(at=r,it=p.url),p.error&&p.rewritten&&(Ge=p.forbidden?c.browser_linkOpen_ownerOnlyForward_error():c.browser_embedded_resolveFailed_error(),d(y,Ge,!0))}var ko={get url(){return U()},set url(r){U(r),w()},get workspaceId(){return $()},set workspaceId(r){$(r),w()},get tabId(){return u()},set tabId(r){u(r),w()},get onNavigate(){return k()},set onNavigate(r){k(r),w()},get onTitleChange(){return O()},set onTitleChange(r){O(r),w()},get onFaviconChange(){return x()},set onFaviconChange(r){x(r),w()},get onFocus(){return I()},set onFocus(r){I(r),w()},get focusUrlBarOnMount(){return R()},set focusUrlBarOnMount(r=!1){R(r),w()},get isFocused(){return T()},set isFocused(r=!1){T(r),w()},get isActive(){return ee()},set isActive(r=!0){ee(r),w()},get ownerAgentId(){return ge()},set ownerAgentId(r){ge(r),w()},get viewport(){return G()},set viewport(r={mode:"fit"}){G(r),w()},get onViewportChange(){return K()},set onViewportChange(r){K(r),w()},get onFullScreen(){return oe()},set onFullScreen(r){oe(r),w()},$set:Ze,$on:(r,i)=>Xe(t,r,i)},Wt=Wa(),At=ie(Wt),Gt=ie(At),qt=ie(Gt),mr=ie(qt);{let r=f(()=>!e(_)),i=f(()=>c.browser_embedded_goBack_tooltip()),p=f(()=>c.browser_embedded_goBack_ariaLabel());Oe(mr,{variant:"ghost-light",size:"icon-xs",onclick:Pt,get disabled(){return e(r)},get tooltip(){return e(i)},tooltipShortcut:"alt+←",tooltipSide:"bottom",get"aria-label"(){return e(p)},children:(N,de)=>{ye(N,{get icon(){return dr},size:"xs"})},$$slots:{default:!0}})}var Po=h(mr,2);{let r=f(()=>!e(Z)),i=f(()=>c.browser_embedded_goForward_tooltip()),p=f(()=>c.browser_embedded_goForward_ariaLabel());Oe(Po,{variant:"ghost-light",size:"icon-xs",onclick:Et,get disabled(){return e(r)},get tooltip(){return e(i)},tooltipShortcut:"alt+→",tooltipSide:"bottom",get"aria-label"(){return e(p)},children:(N,de)=>{ye(N,{get icon(){return ur},size:"xs"})},$$slots:{default:!0}})}se(qt);var hr=h(qt,2);{let r=f(()=>c.browser_embedded_refresh_tooltip()),i=f(()=>c.browser_embedded_refresh_ariaLabel());Oe(hr,{variant:"ghost-light",size:"icon-xs",onclick:Ft,get disabled(){return e(V)},get tooltip(){return e(r)},tooltipShortcut:"mod+r",tooltipSide:"bottom",get"aria-label"(){return e(i)},get ref(){return e(q)},set ref(p){d(q,p,!0)},children:(p,N)=>{var de=ut(),ne=H(de);{var _e=Te=>{qo(Te,{size:12})},$e=Te=>{ye(Te,{get icon(){return Jr},size:"xs"})};be(ne,Te=>{e(V)?Te(_e):Te($e,-1)})}C(p,de)},$$slots:{default:!0}})}var Eo=h(hr,2);{var Fo=r=>{{let i=f(()=>c.browser_status_error_label()),p=f(()=>c.chat_shared_retry_label());gr(r,{get label(){return e(i)},get description(){return e(y)},tone:"error",get actionLabel(){return e(p)},onAction:Ut,get actionFocusTarget(){return e(q)},get descriptionId(){return n}})}};be(Eo,r=>{e(y)&&!e(qe)&&r(Fo)})}se(Gt);var Ht=h(Gt,2),_r=ie(Ht);{var So=r=>{var i=ut(),p=H(i);{var N=ne=>{var _e=Ua();C(ne,_e)},de=ne=>{var _e=ut(),$e=H(_e);Ko($e,()=>e(he),Te=>{var rt=Aa();D(()=>Be(rt,"src",e(he))),or("error",rt,()=>d(M,!0)),Wo(rt),C(Te,rt)}),C(ne,_e)};be(p,ne=>{e(M)?ne(N):ne(de,-1)})}C(r,i)};be(_r,r=>{e(he)&&r(So)})}var yr=h(_r,2),xr=ie(yr);{var Lo=r=>{var i=Ba(),p=ie(i);{let de=f(()=>c.browser_embedded_url_placeholder()),ne=f(()=>c.browser_embedded_addressInput_ariaLabel());kt(Nt(p,{type:"text",onkeydown:me,onblur:pe,noFocusStyle:!0,class:"inline-edit-input h-full flex-1 rounded-none border-0 bg-transparent px-0 hover:border-transparent",get placeholder(){return e(de)},get"aria-label"(){return e(ne)},get value(){return e(j)},set value(_e){d(j,_e,!0)}}),_e=>d(ae,_e,!0),()=>e(ae))}var N=h(p,2);Oe(N,{type:"submit",variant:"ghost",size:"xs",class:"sr-only",children:(de,ne)=>{ht();var _e=ct();D($e=>J(_e,$e),[()=>c.browser_embedded_go_label()]),C(de,_e)},$$slots:{default:!0}}),se(i),or("submit",i,Co),C(r,i)},Ro=r=>{{let i=f(()=>c.browser_embedded_editAddress_ariaLabel());Oe(r,{type:"button",variant:"plain",size:"sm",class:"relative z-10 flex h-full min-w-0 flex-1 cursor-text items-center gap-1.5 rounded-md px-2 text-left outline-none hover:bg-hover active:bg-active focus-visible:ring-1 focus-visible:ring-focus-ring",onclick:()=>void Re(),get"aria-label"(){return e(i)},children:(p,N)=>{var de=Na(),ne=H(de);{var _e=lt=>{ye(lt,{get icon(){return Yr},class:"shrink-0 text-muted-foreground",size:"sm"})};be(ne,lt=>{e(z)&<(_e)})}var $e=h(ne,2),Te=ke($e,!0),rt=h($e,2);{var Zt=lt=>{var tt=Oa(),yt=ke(tt,!0);D(()=>J(yt,e(we))),C(lt,tt)};be(rt,lt=>{e(Ie)&&e(we)&&e(we)!==e(Ie)&<(Zt)})}D(()=>J(Te,e(Ee))),C(p,de)},$$slots:{default:!0}})}};be(xr,r=>{e(ue)?r(Lo):r(Ro,-1)})}var $o=h(xr,2);se(yr),se(Ht);var Kt=h(Ht,2),To=ie(Kt);{let r=f(()=>!e(E)||!u());vo(To,{get active(){return e(fe)},get disabled(){return e(r)},onToggle:()=>void pr()})}se(Kt);var jt=h(Kt,2),Uo=ie(jt);co(Uo,{get viewport(){return G()},onViewportChange:r=>K()?.(r)}),se(jt);var Cr=h(jt,2),Ao=ie(Cr);{let r=f(()=>!e(E)),i=f(()=>e(Qe)==="controls-collapsed"),p=f(()=>e(E)&&!!u()),N=f(()=>te?void 0:mo),de=f(()=>te?oe():void 0);uo(Ao,{get errorCount(){return e(Pe)},get disabled(){return e(r)},get collapsed(){return e(i)},get canGoBack(){return e(_)},get canGoForward(){return e(Z)},get canSelectElement(){return e(p)},get selectingElement(){return e(fe)},get viewport(){return G()},onGoBack:Pt,onGoForward:Et,onToggleElementPicker:()=>void pr(),onViewportChange:ne=>K()?.(ne),get onOpenExternal(){return e(N)},get onFullScreen(){return e(de)},onCopyUrl:Vt,onScreenshot:ho,onOpenConsole:()=>zt("console"),onOpenSource:()=>zt("sources"),onOpenInspector:()=>zt("elements"),onReloadWithoutCache:yo})}se(Cr),se(At),Ct(At,(r,i)=>$a?.(r,i),()=>nt);var Ir=h(At,2),kr=ie(Ir);{var Bo=r=>{fo(r,{get viewport(){return G()},get chromeOutside(){return e(B)},onViewportChange:i=>K()?.(i),children:(i,p)=>{A(i)},$$slots:{default:!0}})},Oo=r=>{var i=Ma(),p=ie(i),N=h(ie(p),2),de=ke(N,!0),ne=h(N,2),_e=ie(ne);{var $e=tt=>{var yt=ct();D(Xt=>J(yt,Xt),[()=>c.browser_embedded_protocolBlocked_description()]),C(tt,yt)},Te=f(()=>U().startsWith("javascript:")||U().startsWith("data:")),rt=tt=>{var yt=ct();D(Xt=>J(yt,Xt),[()=>c.browser_embedded_selfLoadBlocked_description()]),C(tt,yt)};be(_e,tt=>{e(Te)?tt($e):tt(rt,-1)})}se(ne);var Zt=h(ne,2),lt=ke(Zt,!0);se(p),se(i),D(tt=>{J(de,tt),J(lt,U())},[()=>c.browser_embedded_cannotLoadUrl_label()]),C(r,i)},No=r=>{var i=Da(),p=ie(i),N=h(ie(p),2),de=ke(N,!0),ne=h(N,2),_e=ke(ne,!0);se(p),se(i),D(($e,Te)=>{J(de,$e),J(_e,Te)},[()=>c.browser_embedded_noUrl_label(),()=>c.browser_embedded_noUrl_description()]),C(r,i)};be(kr,r=>{e(Ae)&&!e(We)&&!e(qe)?r(Bo):U()&&!e(We)&&!e(qe)?r(Oo,1):e(qe)||r(No,2)})}var Mo=h(kr,2);{var Do=r=>{var i=za(),p=ie(i);{const N=_e=>{ye(_e,{get icon(){return Xr},size:"lg"})},de=_e=>{var $e=Va(),Te=ke($e,!0);D(()=>{Be($e,"id",n),J(Te,e(y))}),C(_e,$e)};let ne=f(()=>c.chat_shared_retry_label());kn(p,{class:"my-auto min-h-0 w-full shrink-0 py-6 [overflow-wrap:anywhere]",severity:"danger",get retryLabel(){return e(ne)},onRetry:Ut,icon:N,message:de,$$slots:{icon:!0,message:!0}})}se(i),D(()=>Be(i,"data-browser-guest-destroyed",e(qe)||void 0)),C(r,i)};be(Mo,r=>{e(y)&&r(Do)})}se(Ir),se(Wt),D(()=>xt($o,1,`pointer-events-none absolute z-0 rounded-(--radius-small) border transition-[inset,border-color,background-color] duration-(--motion-standard) ease-(--ease-standard) motion-reduce:transition-none ${e(ue)?"-inset-x-2 -inset-y-1.5 border-ring/60 bg-background":"-inset-x-1 -inset-y-0.5 border-transparent bg-transparent"}`)),C(o,Wt);var Vo=Ye(ko);return F(),Vo}var Ga=re('<form class="flex h-full min-w-0 flex-1 items-center px-2"><!> <!></form>'),qa=re('<span class="browser-viewer-hostname truncate text-xs text-muted-foreground svelte-1jyro9v"> </span>'),Ha=re('<!> <span class="min-w-0 flex-1 truncate text-sm font-medium text-foreground"> </span> <!>',1),Ka=re('<div class="flex flex-col"><div class="flex h-12 shrink-0 items-center gap-1 border-b border-border bg-muted/30 px-2 svelte-1jyro9v" data-browser-toolbar=""><div class="flex gap-0.5"><div class="browser-viewer-history flex gap-0.5 svelte-1jyro9v"><!> <!></div> <!></div> <div data-browser-address-surface=""><!></div> <!></div></div>');function po(o,t){if(new.target)return je({component:po,...o});Je(t,!0);let n=v(t,"url",7),g=v(t,"title",7),m=v(t,"host",7),P=v(t,"agentOwned",7,!1),b=v(t,"showHostStatus",7,!0),F=v(t,"canGoBack",7,!0),A=v(t,"canGoForward",7,!0),S=v(t,"onNavigate",7),s=v(t,"onGoBack",7),L=v(t,"onGoForward",7),Q=v(t,"onRefresh",7),U=v(t,"onClose",7),$=W(!1),u=W(""),k=W(!1),O=W(null);const x=f(()=>!m().connected),I=f(()=>n().startsWith("https://")),R=f(()=>{try{return new URL(n()).hostname}catch{return""}}),T=f(()=>g()?.trim()||e(R)||n());async function ee(){e(x)||(d(u,n(),!0),d(k,!1),d($,!0),await It(),e(O)?.focus(),e(O)?.select())}Ue(()=>{e(x)&&(d($,!1),d(k,!1))});function ge(_){if(_.preventDefault(),e(x)||!e(u).trim()){d($,!1);return}const Z=so(e(u));if(!Z||!dt(Z)){d(k,!0);return}d($,!1),Z!==n()&&S()?.(Z)}function G(_){_.key==="Escape"&&(_.preventDefault(),d($,!1))}var K={get url(){return n()},set url(_){n(_),w()},get title(){return g()},set title(_){g(_),w()},get host(){return m()},set host(_){m(_),w()},get agentOwned(){return P()},set agentOwned(_=!1){P(_),w()},get showHostStatus(){return b()},set showHostStatus(_=!0){b(_),w()},get canGoBack(){return F()},set canGoBack(_=!0){F(_),w()},get canGoForward(){return A()},set canGoForward(_=!0){A(_),w()},get onNavigate(){return S()},set onNavigate(_){S(_),w()},get onGoBack(){return s()},set onGoBack(_){s(_),w()},get onGoForward(){return L()},set onGoForward(_){L(_),w()},get onRefresh(){return Q()},set onRefresh(_){Q(_),w()},get onClose(){return U()},set onClose(_){U(_),w()},$set:Ze,$on:(_,Z)=>Xe(t,_,Z)},oe=Ka(),te=ie(oe),X=ie(te),le=ie(X),B=ie(le);{let _=f(()=>e(x)||!F()),Z=f(()=>c.browser_embedded_goBack_tooltip()),V=f(()=>c.browser_embedded_goBack_ariaLabel());Oe(B,{variant:"ghost-light",size:"icon-compact",onclick:()=>s()?.(),get disabled(){return e(_)},get tooltip(){return e(Z)},tooltipSide:"bottom",get"aria-label"(){return e(V)},children:(z,y)=>{ye(z,{get icon(){return dr},size:"xs"})},$$slots:{default:!0}})}var ae=h(B,2);{let _=f(()=>e(x)||!A()),Z=f(()=>c.browser_embedded_goForward_tooltip()),V=f(()=>c.browser_embedded_goForward_ariaLabel());Oe(ae,{variant:"ghost-light",size:"icon-compact",onclick:()=>L()?.(),get disabled(){return e(_)},get tooltip(){return e(Z)},tooltipSide:"bottom",get"aria-label"(){return e(V)},children:(z,y)=>{ye(z,{get icon(){return ur},size:"xs"})},$$slots:{default:!0}})}se(le);var a=h(le,2);{let _=f(()=>c.browser_embedded_refresh_tooltip()),Z=f(()=>c.browser_embedded_refresh_ariaLabel());Oe(a,{variant:"ghost-light",size:"icon-compact",onclick:()=>Q()?.(),get disabled(){return e(x)},get tooltip(){return e(_)},tooltipSide:"bottom",get"aria-label"(){return e(Z)},children:(V,z)=>{ye(V,{get icon(){return Jr},size:"xs"})},$$slots:{default:!0}})}se(X);var l=h(X,2),j=ie(l);{var ue=_=>{var Z=Ga(),V=ie(Z);{let y=f(()=>c.browser_embedded_url_placeholder()),q=f(()=>c.browser_embedded_addressInput_ariaLabel()),E=f(()=>e(k)||void 0),Pe=f(()=>e(k)?c.browser_panel_invalidUrl_error():void 0);kt(Nt(V,{type:"text",oninput:()=>d(k,!1),onkeydown:G,onblur:()=>d($,!1),noFocusStyle:!0,get disabled(){return e(x)},class:"h-full flex-1 rounded-none border-0 bg-transparent px-0 hover:border-transparent",get placeholder(){return e(y)},get"aria-label"(){return e(q)},get"aria-invalid"(){return e(E)},get title(){return e(Pe)},get value(){return e(u)},set value(fe){d(u,fe,!0)}}),fe=>d(O,fe,!0),()=>e(O))}var z=h(V,2);Oe(z,{type:"submit",variant:"ghost",size:"compact",class:"sr-only",children:(y,q)=>{ht();var E=ct();D(Pe=>J(E,Pe),[()=>c.browser_embedded_go_label()]),C(y,E)},$$slots:{default:!0}}),se(Z),or("submit",Z,ge),C(_,Z)},Ie=_=>{{let Z=f(()=>c.browser_embedded_editAddress_ariaLabel()),V=f(()=>e(x)?c.browser_viewer_navigationPaused_tooltip({host:m().name}):void 0);Oe(_,{variant:"plain",type:"button",class:"flex h-full min-w-0 flex-1 items-center gap-1.5 rounded-md px-2 text-left outline-none hover:bg-hover active:bg-active focus-visible:ring-1 focus-visible:ring-focus-ring disabled:cursor-not-allowed disabled:hover:bg-transparent",onclick:()=>void ee(),get disabled(){return e(x)},get"aria-label"(){return e(Z)},get title(){return e(V)},children:(z,y)=>{var q=Ha(),E=H(q);{var Pe=Fe=>{ye(Fe,{get icon(){return Yr},class:"shrink-0 text-muted-foreground",size:"sm"})};be(E,Fe=>{e(I)&&Fe(Pe)})}var fe=h(E,2),Qe=ke(fe,!0),nt=h(fe,2);{var We=Fe=>{var Ge=qa(),at=ke(Ge,!0);D(()=>J(at,e(R))),C(Fe,Ge)};be(nt,Fe=>{g()&&e(R)&&e(R)!==g()&&Fe(We)})}D(()=>J(Qe,e(T))),C(z,q)},$$slots:{default:!0}})}};be(j,_=>{e($)?_(ue):_(Ie,-1)})}se(l);var he=h(l,2);{var M=_=>{{let Z=f(()=>e(x)?c.browser_status_offline_label():m().name),V=f(()=>e(x)?c.browser_status_offlineHost_ariaLabel({host:m().name}):c.browser_status_host_label({host:m().name})),z=f(()=>e(x)?c.browser_viewer_hostOffline_description({host:m().name}):P()?c.browser_tabNotice_notPrimary_description({host:m().name}):c.browser_status_host_description({host:m().name})),y=f(()=>e(x)?"warning":"info"),q=f(()=>e(x)?c.browser_viewer_forceClose_label():void 0),E=f(()=>e(x)&&U()?()=>U()?.({force:!0}):void 0);gr(_,{get label(){return e(Z)},get ariaLabel(){return e(V)},get description(){return e(z)},get tone(){return e(y)},get actionLabel(){return e(q)},get onAction(){return e(E)}})}};be(he,_=>{(e(x)||b())&&_(M)})}return se(te),se(oe),D(()=>{Be(oe,"data-browser-viewer-header",e(x)?"offline":"online"),xt(l,1,`flex h-8 min-w-0 flex-1 items-center rounded-md bg-background ${e(x)?"opacity-60":""}`)}),C(o,oe),Ye(K)}function ja(o){return{followSeq:0,activeFollowSeq:null,activeFollowCommitted:!1,forwardSeq:0,pendingForward:null,canonicalUrl:null,webviewReady:!1,targetUrl:null,mirrorUrl:null,isValidBrowserUrl:o.isValidBrowserUrl,isForwardableUrl:o.isForwardableUrl}}function Tt(o,t){return o.followSeq+=1,o.activeFollowSeq=o.followSeq,o.activeFollowCommitted=!1,o.targetUrl=t,{type:"load",seq:o.followSeq,url:t}}function zr(o,t){return[Tt(o,t),ir(o,t)]}function Za(o){const t=o.canonicalUrl;return!t||t===o.mirrorUrl||!o.webviewReady?[]:o.isValidBrowserUrl(t)?[Tt(o,t)]:[]}function ir(o,t,n={retarget:!0}){return o.forwardSeq+=1,o.pendingForward={seq:o.forwardSeq,followSeq:o.followSeq},n.retarget&&(o.targetUrl=t),{type:"forward",seq:o.forwardSeq,url:t}}function Xa(o,t){switch(t.type){case"canonical":return o.webviewReady=t.webviewReady,t.url?(o.canonicalUrl=t.url,o.followSeq===0?(o.followSeq=1,o.activeFollowSeq=1,o.activeFollowCommitted=!1,o.targetUrl=t.url,[]):t.url===o.targetUrl?[]:t.webviewReady?o.isValidBrowserUrl(t.url)?o.activeFollowSeq===null&&t.url===o.mirrorUrl?(o.targetUrl=t.url,[]):[Tt(o,t.url)]:[]:[]):[];case"guest-navigated":{if(!t.isMainFrame||!t.url)return[];if(o.mirrorUrl=t.url,o.activeFollowSeq!==null){if(!t.inPage)return o.activeFollowCommitted=!0,[];if(!o.activeFollowCommitted||t.url===o.targetUrl)return[]}return o.isForwardableUrl(t.url)?[ir(o,t.url)]:Za(o)}case"follow-settled":return t.seq===o.activeFollowSeq&&(o.activeFollowSeq=null),[];case"forward-settled":{const n=o.pendingForward;if(!n||n.seq!==t.seq)return[];if(o.pendingForward=null,t.ok)return[];if(o.followSeq!==n.followSeq)return[];const g=o.canonicalUrl;if(!g||!o.isValidBrowserUrl(g))return[];if(!o.webviewReady)return[];const m=o.activeFollowSeq===null||o.targetUrl===g;return g===o.mirrorUrl&&m?(o.targetUrl=g,[]):[Tt(o,g)]}case"address":return!t.url||!o.isForwardableUrl(t.url)?[]:o.webviewReady?zr(o,t.url):[ir(o,t.url,{retarget:!1})];case"refresh":{const n=o.canonicalUrl;return!n||!o.isValidBrowserUrl(n)||!o.webviewReady?[]:o.isForwardableUrl(n)?zr(o,n):[Tt(o,n)]}}}var Ja=re('<div class="flex h-full flex-col bg-background" data-browser-viewer-tab=""><!> <div><webview class="h-full w-full border-none" allowpopups=""></webview></div></div>');function bo(o,t){if(new.target)return je({component:bo,...o});Je(t,!0);let n=v(t,"url",7),g=v(t,"title",7),m=v(t,"host",7),P=v(t,"agentOwned",7,!1),b=v(t,"isActive",7,!0),F=v(t,"onNavigate",7),A=v(t,"onClose",7),S=v(t,"onFaviconChange",7),s=v(t,"onFocus",7);const L=dt(n())?n():"about:blank",Q=ja({isValidBrowserUrl:dt,isForwardableUrl:lo}),U=1;let $=W(null),u=W(!1),k=W(!1),O=W(!1),x=[];function I(a){if(a.type==="load"){const j=e($),ue=()=>R({type:"follow-settled",seq:a.seq});if(!j)return ue();try{j.loadURL(a.url).then(ue,ue)}catch{ue()}return}const l=j=>R({type:"forward-settled",seq:a.seq,ok:j});if(!m().connected){queueMicrotask(()=>l(!1));return}try{Promise.resolve(F()?.(a.url)).then(()=>l(!0),()=>l(!1))}catch{l(!1)}}function R(a){for(const l of Xa(Q,a))I(l)}function T(a,l,j){a.addEventListener(l,j),x.push({event:l,handler:j})}function ee(a){if(a)for(const{event:l,handler:j}of x)try{a.removeEventListener?.(l,j)}catch{}x=[]}function ge(a){try{d(k,a.canGoBack(),!0),d(O,a.canGoForward(),!0)}catch{}}function G(a,l,j){R({type:"guest-navigated",url:l.url??"",isMainFrame:l.isMainFrame!==!1,inPage:j}),ge(a)}function K(a){m().connected&&R({type:"address",url:a})}Ue(()=>{const a=e($);if(a)return a.getAttribute("partition")||a.setAttribute("partition",$t),a.hasAttribute("allowpopups")||a.setAttribute("allowpopups",""),T(a,"dom-ready",()=>{d(u,!0),ge(a)}),T(a,"did-stop-loading",()=>{d(u,!0),R({type:"follow-settled",seq:U}),ge(a)}),T(a,"did-fail-load",l=>{l.isMainFrame!==!1&&R({type:"follow-settled",seq:U})}),T(a,"did-navigate",l=>G(a,l,!1)),T(a,"did-navigate-in-page",l=>G(a,l,!0)),T(a,"page-favicon-updated",l=>{l.favicons?.length>0&&S()?.(l.favicons[0])}),T(a,"focus",()=>s()?.()),()=>ee(a)}),Ue(()=>{R({type:"canonical",url:n(),webviewReady:e(u)})}),Ue(()=>{const a=e($);if(!(!a||!e(u)))try{a.setAudioMuted?.(!b())}catch{}}),Hr(()=>ee(e($)));var oe={get url(){return n()},set url(a){n(a),w()},get title(){return g()},set title(a){g(a),w()},get host(){return m()},set host(a){m(a),w()},get agentOwned(){return P()},set agentOwned(a=!1){P(a),w()},get isActive(){return b()},set isActive(a=!0){b(a),w()},get onNavigate(){return F()},set onNavigate(a){F(a),w()},get onClose(){return A()},set onClose(a){A(a),w()},get onFaviconChange(){return S()},set onFaviconChange(a){S(a),w()},get onFocus(){return s()},set onFocus(a){s(a),w()},$set:Ze,$on:(a,l)=>Xe(t,a,l)},te=Ja(),X=ie(te);po(X,{get url(){return n()},get title(){return g()},get host(){return m()},get agentOwned(){return P()},get canGoBack(){return e(k)},get canGoForward(){return e(O)},onNavigate:K,onGoBack:()=>e(u)&&e($)?.goBack(),onGoForward:()=>e(u)&&e($)?.goForward(),onRefresh:()=>e(u)&&R({type:"refresh"}),get onClose(){return A()}});var le=h(X,2);let B;var ae=ie(le);return kt(ae,a=>d($,a),()=>e($)),se(le),se(te),D(()=>{B=xt(le,1,"relative min-h-0 flex-1",null,B,{"pointer-events-none":!m().connected}),Be(ae,"src",L),Be(ae,"partition",$t)}),C(o,te),Ye(oe)}const Ya=Dt("BrowserViewport"),sr="browser-viewport-change";function Qa(o,t,n){Se.dispatch(vn(o,t,n)),ar(Un.BROWSER.SET_TAB_VIEWPORT,{tabId:t,viewport:n}).catch(g=>{Ya.warn("Failed to apply browser viewport in the main process",{tabId:t,error:g})})}function ei(o,t){let n=t;const g=m=>{Qa(n.layoutId,n.tabId,m.detail)};return o.addEventListener(sr,g),{update(m){n=m},destroy(){o.removeEventListener(sr,g)}}}var Wr=re('<div class="min-h-0 flex-1"><!></div>'),ti=re('<div class="flex h-full flex-col" data-browser-tab-frame=""><!></div>');function ri(o,t){if(new.target)return je({component:ri,...o});Je(t,!0);const n=()=>bt(oo,"$browserPagesMode",F),g=()=>bt(R,"$pendingPanelReveal$",F),m=()=>bt(ge,"$agents$",F),P=()=>bt(X,"$ownClientId$",F),b=()=>bt(ae,"$tabHost$",F),[F,A]=Gr(),S=M=>{var _=ut(),Z=H(_);{var V=z=>{var y=ut(),q=H(y);{let E=f(()=>c.browser_embedded_ownerChip_ariaLabel({name:e(G)??s().ownerAgentId}));Y(q,()=>no,(Pe,fe)=>{fe(Pe,{get icon(){return an},get label(){return e(E)},onclick:K,get"data-browser-owner-chip"(){return s().ownerAgentId}})})}C(z,y)};be(Z,z=>{s().ownerAgentId&&z(V)})}C(M,_)};let s=v(t,"tab",7),L=v(t,"workspaceId",7),Q=v(t,"layoutId",7),U=v(t,"isActive",7),$=v(t,"isPanelFocused",7),u=v(t,"onFocus",7);const k=f(()=>s().browserUrl??"about:blank"),O=f(()=>Q()??L()),x=f(()=>n()==="main"&&Sn()&&!ra(e(O))),I=Jt(pt(()=>e(O)));Ue(()=>I.set(e(O)));const R=Rn(I),T=f(()=>g()?.tabId===s().id&&g().preserveFocus===!0),ee=Jt(L());Ue(()=>ee.set(L()));const ge=ta(ee),G=f(()=>s().ownerAgentId?Fn(s().ownerAgentId,m(),s().ownerAgentName):void 0);function K(M){s().ownerAgentId&&Se.dispatch(wn(L(),{agentId:s().ownerAgentId,sourcePanelId:Yn(e(te)??M.target),openInAdjacentPanel:Zo({event:M})}))}const oe=Jn();Ue(()=>{if(!(!oe||!U()||!s().ownerAgentId))return oe.registerActions({actions:S})});let te=W(null);const X=Qn(),le=f(()=>s().hostClientId===void 0||s().hostClientId===P()),B=Jt(pt(()=>s().hostClientId??""));Ue(()=>B.set(s().hostClientId??""));const ae=ea(B,ee);var a={get tab(){return s()},set tab(M){s(M),w()},get workspaceId(){return L()},set workspaceId(M){L(M),w()},get layoutId(){return Q()},set layoutId(M){Q(M),w()},get isActive(){return U()},set isActive(M){U(M),w()},get isPanelFocused(){return $()},set isPanelFocused(M){$(M),w()},get onFocus(){return u()},set onFocus(M){u(M),w()},$set:Ze,$on:(M,_)=>Xe(t,M,_)},l=ti(),j=ie(l);{var ue=M=>{var _=Wr(),Z=ie(_);{let V=f(()=>!!s().ownerAgentId);bo(Z,{get url(){return e(k)},get title(){return s().title},get host(){return b()},get agentOwned(){return e(V)},get isActive(){return U()},onNavigate:z=>Se.dispatch(bn(s().id,z)),onClose:({force:z})=>{Se.dispatch(pn(s().id,z))},onFaviconChange:z=>{Se.dispatch(Sr(e(O),s().id,z))},get onFocus(){return u()}})}se(_),Ct(_,(V,z)=>Er?.(V,z),L),kt(_,V=>d(te,V),()=>e(te)),D(()=>Be(_,"data-browser-tab-mirror",s().hostClientId)),C(M,_)},Ie=M=>{var _=Wr(),Z=ie(_);{let V=f(()=>U()&&$()&&!e(T)),z=f(()=>s().viewport??{mode:"fit"}),y=f(()=>e(x)?()=>Se.dispatch(oa(e(O),L(),s().id)):void 0);wo(Z,{get url(){return e(k)},get workspaceId(){return L()},get tabId(){return s().id},get isActive(){return U()},get focusUrlBarOnMount(){return e(V)},get isFocused(){return $()},get ownerAgentId(){return s().ownerAgentId},get viewport(){return e(z)},onViewportChange:q=>{e(te)?.dispatchEvent(new CustomEvent(sr,{detail:q}))},onNavigate:(q,E)=>{Se.dispatch(E===void 0?Rr(e(O),s().id,q):Rr(e(O),s().id,q,E)),s().contextItemId&&Se.dispatch(Lr(L(),s().contextItemId,{url:q}))},onTitleChange:q=>{Se.dispatch(mn(e(O),s().id,q)),s().contextItemId&&Se.dispatch(Lr(L(),s().contextItemId,{title:q}))},onFaviconChange:q=>{Se.dispatch(Sr(e(O),s().id,q))},get onFocus(){return u()},get onFullScreen(){return e(y)}})}se(_),Ct(_,(V,z)=>Er?.(V,z),L),kt(_,V=>d(te,V),()=>e(te)),Ct(_,(V,z)=>ei?.(V,z),()=>({layoutId:e(O),tabId:s().id})),C(M,_)};be(j,M=>{e(le)?e(k)&&M(Ie,1):M(ue)})}se(l),C(o,l);var he=Ye(a);return A(),he}export{ri as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as O,a as V,d as z}from"./CQcEqK4G.js";import{K as G,T as F,_ as J,d as X,f as Q,X as Y,Q as Z,a0 as q,n as P,e as tt,c as et,m as U,h as N,l as E}from"./B4mHWFlW.js";import{o as u,b as _,s as r,n as h,l as M,_ as x,c as B,u as nt}from"./CIyUrgF0.js";import{I as it}from"./Bqd7fdCF.js";const at="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const W=O.badgeFontFamily;function K(){return R??W}function L(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${at}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((l,o)=>{t=setTimeout(()=>o(new Error("font-load-timeout")),2e3)})]);i.add(a),R=O.fontFamily}catch{R=W}finally{clearTimeout(t)}})(),D)}let k=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(k||(k=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!k))return i;k.font=`${t.fontSize}px ${K()}`,k.textAlign="left",k.textBaseline="top",k.letterSpacing="0px",k.wordSpacing="0px";let a=1/0,l=1/0,o=-1/0,e=-1/0;const{lines:f,lineHeight:c}=F(t);for(const[s,p]of f.entries()){if(!p.trim())continue;const g=k.measureText(p),b=s*c,m=[-g.actualBoundingBoxLeft,b-g.actualBoundingBoxAscent,g.actualBoundingBoxRight,b+g.actualBoundingBoxDescent];if(!m.every(Number.isFinite))return i;a=Math.min(a,m[0]),l=Math.min(l,m[1]),o=Math.max(o,m[2]),e=Math.max(e,m[3])}if(!(o>a&&e>l))return i;const n=Math.max(1,t.fontSize/24);return{x:t.x+a-n,y:t.y+l-n,w:o-a+2*n,h:e-l+2*n}}const C=16e3;function rt(t,i){const l=t.length*2,o=new ArrayBuffer(44+l),e=new DataView(o),f=(n,s)=>{for(let p=0;p<s.length;p+=1)e.setUint8(n+p,s.charCodeAt(p))};f(0,"RIFF"),e.setUint32(4,36+l,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,i,!0),e.setUint32(28,i*2,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,l,!0);let c=44;for(let n=0;n<t.length;n+=1){const s=Math.max(-1,Math.min(1,t[n]));e.setInt16(c,s<0?s*32768:s*32767,!0),c+=2}return o}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const l=t.getChannelData(a);for(let o=0;o<l.length;o+=1)i[o]+=l[o]/t.numberOfChannels}return i}async function gt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),l=Math.max(1,Math.ceil(a.length*C/a.sampleRate)),o=new OfflineAudioContext(1,l,C),e=o.createBufferSource();e.buffer=a,e.connect(o.destination),e.start();const f=await o.startRendering();return rt(st(f),C)}finally{await i.close().catch(()=>{})}}function $(t){const i=new Uint8Array(t),a=32768;let l="";for(let o=0;o<i.length;o+=a)l+=String.fromCharCode(...i.subarray(o,o+a));return btoa(l)}const d={...O,get fontFamily(){return K()},blurRadius:X};function H(t,i,a=0,l){const o=t.crop??{x:0,y:0,w:i.width,h:i.height},e=Math.max(1,Math.max(i.width,i.height)/1440),f=Math.min(d.badgeRadius*e,o.w/2,o.h/2);return Y(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:n})=>{const s=i.kind==="recording"?Z(n.geometry,q(i,n),a):n.geometry;if(!s)return[];const p=ot(s),g=z(p,o,e,f);return[...n.id===l&&s.kind==="text"?[]:[{kind:"geometry",geometry:s,unit:e}],...d.showNumbers?[{kind:"badge",...g,radius:f,label:String(c),unit:e}]:[]]})}function j(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const l=a.unit??1,o=(c,n)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*l,n?t.stroke(n):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,n?t.stroke(n):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*l,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const e=a.geometry;t.fillStyle=d.accent;const f=(e.kind==="path"?d.pen:d.stroke)*l;if(e.kind==="rect")t.beginPath(),t.rect(e.x,e.y,e.w,e.h),o(f);else if(e.kind==="text"){const c=F(e);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${e.fontSize}px ${d.fontFamily}`,c.lines.forEach((n,s)=>{const p=e.x+c.padding,g=e.y+c.padding+s*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*l;const b=e.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(n,p,g,b),t.fillText(n,p,g,b)})}else if(e.kind==="point")t.beginPath(),t.arc(e.x,e.y,Q,0,Math.PI*2),o(f);else if(e.kind==="path")o(f,new Path2D(V(e.points)));else{const c=[e.from,e.to];if(t.beginPath(),c.forEach((n,s)=>s?t.lineTo(n.x,n.y):t.moveTo(n.x,n.y)),e.kind==="arrow"){const n=Math.atan2(e.to.y-e.from.y,e.to.x-e.from.x),s=d.arrowHead*l;t.moveTo(e.to.x-s*Math.cos(n-d.arrowSpread),e.to.y-s*Math.sin(n-d.arrowSpread)),t.lineTo(e.to.x,e.to.y),t.lineTo(e.to.x-s*Math.cos(n+d.arrowSpread),e.to.y-s*Math.sin(n+d.arrowSpread))}o(f)}}t.restore()}function v(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),l=a.getContext("2d");if(!l)throw new Error("capture-render-unavailable");return{image:a,context:l}}async function pt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const{image:l,context:o}=v(t.width,t.height);return j(o,H(i,t,a)),$(await(await l.convertToBlob({type:"image/png"})).arrayBuffer())}async function yt(t,i,a,l){const o=J(i,t,null);if(t.kind!=="screenshot"||o.errors.length)throw new Error(o.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const e=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),f=await createImageBitmap(new Blob([e],{type:a.mimeType}));try{if(f.width!==t.width||f.height!==t.height)throw new Error("stale-source-pixels");const c=v(t.width,t.height);if(c.context.drawImage(f,0,0),i.blurRegions.length||i.blurStrokes?.length){const g=v(t.width,t.height);g.context.fillStyle="#000000",g.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(g.context.filter=b,g.context.filter!==b)throw new Error("capture-blur-unavailable");g.context.drawImage(f,0,0);const m=v(t.width,t.height);m.context.fillStyle="#ffffff",m.context.strokeStyle="#ffffff",m.context.lineCap="round",m.context.lineJoin="round";for(const y of i.blurRegions)m.context.fillRect(y.x,y.y,y.w,y.h);for(const y of i.blurStrokes??[]){const S=y.points.filter((I,A)=>A===0||I.x!==y.points[A-1].x||I.y!==y.points[A-1].y);if(m.context.beginPath(),S.length===1){const I=S[0];m.context.arc(I.x,I.y,y.radius,0,Math.PI*2),m.context.fill()}else{m.context.lineWidth=y.radius*2,m.context.moveTo(S[0].x,S[0].y);for(const I of S.slice(1))m.context.lineTo(I.x,I.y);m.context.stroke()}}const T=v(t.width,t.height);T.context.drawImage(g.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(m.image,0,0),c.context.drawImage(T.image,0,0)}const n=i.crop??{x:0,y:0,w:t.width,h:t.height},s=v(n.w,n.h);s.context.drawImage(c.image,n.x,n.y,n.w,n.h,0,0,s.image.width,s.image.height),s.context.scale(s.image.width/n.w,s.image.height/n.h),s.context.translate(-n.x,-n.y),j(s.context,H(i,t,0,l?.hiddenTextMarkId));const p=await s.image.convertToBlob({type:"image/png"});return{data:$(await p.arrayBuffer()),mimeType:"image/png",width:s.image.width,height:s.image.height}}finally{f.close()}}const kt=u({outputVersion:M(tt),jobId:r().uuid(),media:P,layers:_(u({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:r().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),wt=u({jobId:r().uuid(),media:P,locale:r().min(1).max(80).optional()}).strict(),lt=u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:M(50),peaks:_(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");u({jobId:r().uuid(),media:P}).strict();u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=it.DOCK_CAPTURE_EDITOR,w=r().min(1).max(200),ct=u({id:w,tool:x(et),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:r().max(200).optional()}).strict();u({kind:x(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:r().min(1).max(512),attachmentPath:r().min(1).max(1024),title:r().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:_(ct).max(500),provenance:u({captureApi:r().max(100).optional(),hasMicAudio:B().optional(),visuals:x(["clean","baked-marks"])}).strict(),source:E.optional(),originalSource:E.optional(),saved:N.nullable().optional(),transcript:U.nullable().optional(),holdToken:r().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");u({openId:r().uuid(),intent:M("attach").optional()}).strict();u({openId:r().uuid(),accept:B()}).strict();u({token:r().uuid(),hide:M(!0).optional()}).strict();u({openId:r().uuid(),requestId:r().uuid()}).strict();u({requestId:r().uuid(),result:x(["saved","stale-source","revision-conflict","failed"]),saved:N.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:U}).strict();nt([u({requestId:r().uuid(),ok:M(!0),source:E}).strict(),u({requestId:r().uuid(),ok:M(!1),error:x(["cancelled","permission","failed"])}).strict()]);const dt=2e4;u({openId:r().uuid(),markId:r().min(1).max(512),generation:h().int().nonnegative(),phase:x(["start","stop"])}).strict();u({requestId:r().uuid(),generation:h().int().nonnegative(),text:r().max(dt),final:B(),error:x(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const bt=u({requestId:r().uuid(),openId:w,pair:u({workspaceId:w,agentId:w}).strict(),kind:x(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();u({requestId:r().uuid(),result:x(["deleted","stale-source","failed"])}).strict();const It=u({endedOpenId:r().uuid()}).strict();export{xt as D,d as a,dt as b,bt as c,It as d,kt as e,wt as f,$ as g,gt as h,ot as i,K as j,L as k,H as l,pt as m,j as p,yt as r};
|
|
1
|
+
import{D as O,a as V,d as z}from"./CQcEqK4G.js";import{K as G,T as F,_ as J,d as X,f as Q,X as Y,Q as Z,a0 as q,n as P,e as tt,c as et,m as U,h as N,l as E}from"./8jMQM9h0.js";import{o as u,b as _,s as r,n as h,l as M,_ as x,c as B,u as nt}from"./CIyUrgF0.js";import{I as it}from"./Bqd7fdCF.js";const at="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const W=O.badgeFontFamily;function K(){return R??W}function L(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${at}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((l,o)=>{t=setTimeout(()=>o(new Error("font-load-timeout")),2e3)})]);i.add(a),R=O.fontFamily}catch{R=W}finally{clearTimeout(t)}})(),D)}let k=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(k||(k=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!k))return i;k.font=`${t.fontSize}px ${K()}`,k.textAlign="left",k.textBaseline="top",k.letterSpacing="0px",k.wordSpacing="0px";let a=1/0,l=1/0,o=-1/0,e=-1/0;const{lines:f,lineHeight:c}=F(t);for(const[s,p]of f.entries()){if(!p.trim())continue;const g=k.measureText(p),b=s*c,m=[-g.actualBoundingBoxLeft,b-g.actualBoundingBoxAscent,g.actualBoundingBoxRight,b+g.actualBoundingBoxDescent];if(!m.every(Number.isFinite))return i;a=Math.min(a,m[0]),l=Math.min(l,m[1]),o=Math.max(o,m[2]),e=Math.max(e,m[3])}if(!(o>a&&e>l))return i;const n=Math.max(1,t.fontSize/24);return{x:t.x+a-n,y:t.y+l-n,w:o-a+2*n,h:e-l+2*n}}const C=16e3;function rt(t,i){const l=t.length*2,o=new ArrayBuffer(44+l),e=new DataView(o),f=(n,s)=>{for(let p=0;p<s.length;p+=1)e.setUint8(n+p,s.charCodeAt(p))};f(0,"RIFF"),e.setUint32(4,36+l,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,i,!0),e.setUint32(28,i*2,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,l,!0);let c=44;for(let n=0;n<t.length;n+=1){const s=Math.max(-1,Math.min(1,t[n]));e.setInt16(c,s<0?s*32768:s*32767,!0),c+=2}return o}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const l=t.getChannelData(a);for(let o=0;o<l.length;o+=1)i[o]+=l[o]/t.numberOfChannels}return i}async function gt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),l=Math.max(1,Math.ceil(a.length*C/a.sampleRate)),o=new OfflineAudioContext(1,l,C),e=o.createBufferSource();e.buffer=a,e.connect(o.destination),e.start();const f=await o.startRendering();return rt(st(f),C)}finally{await i.close().catch(()=>{})}}function $(t){const i=new Uint8Array(t),a=32768;let l="";for(let o=0;o<i.length;o+=a)l+=String.fromCharCode(...i.subarray(o,o+a));return btoa(l)}const d={...O,get fontFamily(){return K()},blurRadius:X};function H(t,i,a=0,l){const o=t.crop??{x:0,y:0,w:i.width,h:i.height},e=Math.max(1,Math.max(i.width,i.height)/1440),f=Math.min(d.badgeRadius*e,o.w/2,o.h/2);return Y(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:n})=>{const s=i.kind==="recording"?Z(n.geometry,q(i,n),a):n.geometry;if(!s)return[];const p=ot(s),g=z(p,o,e,f);return[...n.id===l&&s.kind==="text"?[]:[{kind:"geometry",geometry:s,unit:e}],...d.showNumbers?[{kind:"badge",...g,radius:f,label:String(c),unit:e}]:[]]})}function j(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const l=a.unit??1,o=(c,n)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*l,n?t.stroke(n):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,n?t.stroke(n):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*l,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const e=a.geometry;t.fillStyle=d.accent;const f=(e.kind==="path"?d.pen:d.stroke)*l;if(e.kind==="rect")t.beginPath(),t.rect(e.x,e.y,e.w,e.h),o(f);else if(e.kind==="text"){const c=F(e);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${e.fontSize}px ${d.fontFamily}`,c.lines.forEach((n,s)=>{const p=e.x+c.padding,g=e.y+c.padding+s*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*l;const b=e.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(n,p,g,b),t.fillText(n,p,g,b)})}else if(e.kind==="point")t.beginPath(),t.arc(e.x,e.y,Q,0,Math.PI*2),o(f);else if(e.kind==="path")o(f,new Path2D(V(e.points)));else{const c=[e.from,e.to];if(t.beginPath(),c.forEach((n,s)=>s?t.lineTo(n.x,n.y):t.moveTo(n.x,n.y)),e.kind==="arrow"){const n=Math.atan2(e.to.y-e.from.y,e.to.x-e.from.x),s=d.arrowHead*l;t.moveTo(e.to.x-s*Math.cos(n-d.arrowSpread),e.to.y-s*Math.sin(n-d.arrowSpread)),t.lineTo(e.to.x,e.to.y),t.lineTo(e.to.x-s*Math.cos(n+d.arrowSpread),e.to.y-s*Math.sin(n+d.arrowSpread))}o(f)}}t.restore()}function v(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),l=a.getContext("2d");if(!l)throw new Error("capture-render-unavailable");return{image:a,context:l}}async function pt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const{image:l,context:o}=v(t.width,t.height);return j(o,H(i,t,a)),$(await(await l.convertToBlob({type:"image/png"})).arrayBuffer())}async function yt(t,i,a,l){const o=J(i,t,null);if(t.kind!=="screenshot"||o.errors.length)throw new Error(o.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const e=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),f=await createImageBitmap(new Blob([e],{type:a.mimeType}));try{if(f.width!==t.width||f.height!==t.height)throw new Error("stale-source-pixels");const c=v(t.width,t.height);if(c.context.drawImage(f,0,0),i.blurRegions.length||i.blurStrokes?.length){const g=v(t.width,t.height);g.context.fillStyle="#000000",g.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(g.context.filter=b,g.context.filter!==b)throw new Error("capture-blur-unavailable");g.context.drawImage(f,0,0);const m=v(t.width,t.height);m.context.fillStyle="#ffffff",m.context.strokeStyle="#ffffff",m.context.lineCap="round",m.context.lineJoin="round";for(const y of i.blurRegions)m.context.fillRect(y.x,y.y,y.w,y.h);for(const y of i.blurStrokes??[]){const S=y.points.filter((I,A)=>A===0||I.x!==y.points[A-1].x||I.y!==y.points[A-1].y);if(m.context.beginPath(),S.length===1){const I=S[0];m.context.arc(I.x,I.y,y.radius,0,Math.PI*2),m.context.fill()}else{m.context.lineWidth=y.radius*2,m.context.moveTo(S[0].x,S[0].y);for(const I of S.slice(1))m.context.lineTo(I.x,I.y);m.context.stroke()}}const T=v(t.width,t.height);T.context.drawImage(g.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(m.image,0,0),c.context.drawImage(T.image,0,0)}const n=i.crop??{x:0,y:0,w:t.width,h:t.height},s=v(n.w,n.h);s.context.drawImage(c.image,n.x,n.y,n.w,n.h,0,0,s.image.width,s.image.height),s.context.scale(s.image.width/n.w,s.image.height/n.h),s.context.translate(-n.x,-n.y),j(s.context,H(i,t,0,l?.hiddenTextMarkId));const p=await s.image.convertToBlob({type:"image/png"});return{data:$(await p.arrayBuffer()),mimeType:"image/png",width:s.image.width,height:s.image.height}}finally{f.close()}}const kt=u({outputVersion:M(tt),jobId:r().uuid(),media:P,layers:_(u({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:r().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),wt=u({jobId:r().uuid(),media:P,locale:r().min(1).max(80).optional()}).strict(),lt=u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:M(50),peaks:_(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");u({jobId:r().uuid(),media:P}).strict();u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=it.DOCK_CAPTURE_EDITOR,w=r().min(1).max(200),ct=u({id:w,tool:x(et),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:r().max(200).optional()}).strict();u({kind:x(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:r().min(1).max(512),attachmentPath:r().min(1).max(1024),title:r().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:_(ct).max(500),provenance:u({captureApi:r().max(100).optional(),hasMicAudio:B().optional(),visuals:x(["clean","baked-marks"])}).strict(),source:E.optional(),originalSource:E.optional(),saved:N.nullable().optional(),transcript:U.nullable().optional(),holdToken:r().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");u({openId:r().uuid(),intent:M("attach").optional()}).strict();u({openId:r().uuid(),accept:B()}).strict();u({token:r().uuid(),hide:M(!0).optional()}).strict();u({openId:r().uuid(),requestId:r().uuid()}).strict();u({requestId:r().uuid(),result:x(["saved","stale-source","revision-conflict","failed"]),saved:N.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:U}).strict();nt([u({requestId:r().uuid(),ok:M(!0),source:E}).strict(),u({requestId:r().uuid(),ok:M(!1),error:x(["cancelled","permission","failed"])}).strict()]);const dt=2e4;u({openId:r().uuid(),markId:r().min(1).max(512),generation:h().int().nonnegative(),phase:x(["start","stop"])}).strict();u({requestId:r().uuid(),generation:h().int().nonnegative(),text:r().max(dt),final:B(),error:x(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const bt=u({requestId:r().uuid(),openId:w,pair:u({workspaceId:w,agentId:w}).strict(),kind:x(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();u({requestId:r().uuid(),result:x(["deleted","stale-source","failed"])}).strict();const It=u({endedOpenId:r().uuid()}).strict();export{xt as D,d as a,dt as b,bt as c,It as d,kt as e,wt as f,$ as g,gt as h,ot as i,K as j,L as k,H as l,pt as m,j as p,yt as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as t}from"./Dms_DO28.js";import{ac as c}from"./
|
|
1
|
+
import{v as t}from"./Dms_DO28.js";import{ac as c}from"./4g_iHoQm.js";function a(n){return n.connections?.windowBackendId??c}function i(n,e){return e===c?n:`backend:${e}:${n}`}function*s(){return yield*t(a)}export{a as g,i as n,s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as F,bo as l,bm as u,bw as G,b as H,bs as re,bq as se}from"./
|
|
1
|
+
import{t as F,bo as l,bm as u,bw as G,b as H,bs as re,bq as se}from"./Dws-34a7.js";import{bs as K,a5 as P,bl as w,bS as m,bA as $,be as z,b$ as N,b_ as k,bO as _,W as v,aD as ae,bn as L,aA as p,c9 as ne,aB as B,c5 as R,a7 as oe,ay as ie}from"./3SdAC2_C.js";import{i as q}from"./DLCFUd4s.js";import{s as T}from"./BD9db4FR.js";import{f as A}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{D as ce}from"./Ex_x2wO5.js";import{a3 as de}from"./D7xjMCds.js";import{Jx as ue,j2 as le}from"./4g_iHoQm.js";var pe=B('<p class="text-sm text-muted-foreground"> </p>'),W=B('<p role="status" class="text-sm"> </p>'),ge=B('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function M(y,r){if(new.target)return F({component:M,...y});K(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),I=P(f),U=w(I,!0),D=m(I,2),n=w(D,!0),h=m(D,2);{var Q=e=>{var t=pe(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};q(h,e=>{a().claimsPrimary&&e(Q)})}var O=m(h,2);{var V=e=>{ce(e,{get checklist(){return d()}})};q(O,e=>{d()&&e(V)})}var S=m(O,2);{var X=e=>{var t=W(),s=w(t,!0);k(()=>_(s,c())),v(e,t)};q(S,e=>{c()&&e(X)})}var Y=m(S,2);{var Z=e=>{var t=W(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};q(Y,e=>{g()&&!b()&&e(Z)})}$(f);var j=m(f,2),E=P(j);A(E,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var J=m(E,2);A(J,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=m(J,2);{let e=ne(()=>g()&&!b());A(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>_(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(j),$(x),k((e,t,s,o)=>{T(x,"aria-label",e),T(f,"aria-label",t),_(U,s),_(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),L(C)}function me(y,r){if(new.target)return F({component:me,...y});K(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(R(()=>c()),R(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),I=ie(f);{var U=n=>{M(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};q(I,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=L(x);return b(),D}export{me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as z,bs as I,a7 as O,ay as x,W as y,aD as S,a5 as Q,bf as j,bA as q,bn as E,c9 as G,aA as r,aB as J}from"./3SdAC2_C.js";import{t as K,bo as a,bw as L,b as M,bp as N}from"./
|
|
1
|
+
import{bo as z,bs as I,a7 as O,ay as x,W as y,aD as S,a5 as Q,bf as j,bA as q,bn as E,c9 as G,aA as r,aB as J}from"./3SdAC2_C.js";import{t as K,bo as a,bw as L,b as M,bp as N}from"./Dws-34a7.js";import{b as R}from"./BD9db4FR.js";import"./DWa-2rkZ.js";import{i as U}from"./DLCFUd4s.js";import{t as w}from"./D-rRuAXZ.js";import{a as V}from"./BByf3ILj.js";import{az as T,av as n,aQ as X}from"./BIGqOuh0.js";import{F as Y}from"./BNa9zzEx.js";var Z=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),$=J("<button><!></button>");function A(v,t){const _=z();if(new.target)return K({component:A,...v});I(t,!0);let p=a(t,"children",7),l=a(t,"child",7),i=a(t,"id",23,()=>T(_)),d=a(t,"ref",15,null),c=a(t,"type",7,"button"),f=a(t,"disabled",7,!1),u=a(t,"openOnHover",7,!1),g=a(t,"openDelay",7,700),m=a(t,"closeDelay",7,300),B=N(t,Z);const h=V.create({id:n(()=>i()),ref:n(()=>d(),e=>d(e)),disabled:n(()=>!!f()),openOnHover:n(()=>u()),openDelay:n(()=>g()),closeDelay:n(()=>m())}),D=G(()=>X(B,h.props,{type:c()}));var C={get children(){return p()},set children(e){p(e),r()},get child(){return l()},set child(e){l(e),r()},get id(){return i()},set id(e=T(_)){i(e),r()},get ref(){return d()},set ref(e=null){d(e),r()},get type(){return c()},set type(e="button"){c(e),r()},get disabled(){return f()},set disabled(e=!1){f(e),r()},get openOnHover(){return u()},set openOnHover(e=!1){u(e),r()},get openDelay(){return g()},set openDelay(e=700){g(e),r()},get closeDelay(){return m()},set closeDelay(e=300){m(e),r()},$set:L,$on:(e,P)=>M(t,e,P)};return Y(v,{get id(){return i()},get ref(){return h.opts.ref},children:(e,P)=>{var H=O(),F=x(H);{var W=s=>{var o=O(),b=x(o);w(b,l,()=>({props:S(D)})),y(s,o)},k=s=>{var o=$();R(o,()=>({...S(D)}));var b=Q(o);w(b,()=>p()??j),q(o),y(s,o)};U(F,s=>{l()?s(W):s(k,-1)})}y(e,H)},$$slots:{default:!0}}),E(C)}const de=A;export{A as P,de as T};
|