@intent-hq/web 2.329.1 → 2.331.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Bu8Z06IG.js → -K8wVqNz.js} +1 -1
- package/web/app/immutable/chunks/{Bl8pGyWE.js → 01xZ54YC.js} +6 -6
- package/web/app/immutable/chunks/{DsmIFgBW.js → 0BYYiVms.js} +1 -1
- package/web/app/immutable/chunks/{BWBt_0S9.js → 1bECqo-j.js} +1 -1
- package/web/app/immutable/chunks/{CrAIOpwj.js → 3QqszLYa.js} +1 -1
- package/web/app/immutable/chunks/{D3VV-t_O.js → 4XNONbWq.js} +1 -1
- package/web/app/immutable/chunks/{vrmnmJTo.js → 4dgb2d4o.js} +1 -1
- package/web/app/immutable/chunks/{CmgsU15D.js → 4q6E5opn.js} +1 -1
- package/web/app/immutable/chunks/{pJpiiUGa.js → 5CRwyeUL.js} +2 -2
- package/web/app/immutable/chunks/{DVX6Tk_b.js → 5mKZ17P9.js} +1 -1
- package/web/app/immutable/chunks/{0W7Jbq6n.js → 61i9Nc66.js} +1 -1
- package/web/app/immutable/chunks/{DpFreuz_.js → 72TQselO.js} +1 -1
- package/web/app/immutable/chunks/{C7ivcElf.js → 79sYHzZU.js} +1 -1
- package/web/app/immutable/chunks/{r_PLSAE7.js → 8mBhsgHs.js} +1 -1
- package/web/app/immutable/chunks/{Dvh0fZaP.js → 9DtejLvs.js} +1 -1
- package/web/app/immutable/chunks/{Dr4yXXs1.js → 9SVo7XCQ.js} +1 -1
- package/web/app/immutable/chunks/{CFP6h_yj.js → A67C19bI.js} +1 -1
- package/web/app/immutable/chunks/{CenHMQnL.js → AUoP55vG.js} +1 -1
- package/web/app/immutable/chunks/{Cn1b85JG.js → ArzfqCkr.js} +1 -1
- package/web/app/immutable/chunks/{ClUsr6sz.js → B-3aWyWM.js} +1 -1
- package/web/app/immutable/chunks/{DfUDzzt8.js → B0CAZcrL.js} +1 -1
- package/web/app/immutable/chunks/{NyR8pG10.js → B0do3DVm.js} +1 -1
- package/web/app/immutable/chunks/{DrQfmm9r.js → B0hlE4IJ.js} +1 -1
- package/web/app/immutable/chunks/{F5JMTljA.js → B0ztGBdw.js} +1 -1
- package/web/app/immutable/chunks/{DoVePPmG.js → B4--vvYs.js} +1 -1
- package/web/app/immutable/chunks/{ikj2reaR.js → B4585dIt.js} +1 -1
- package/web/app/immutable/chunks/{CAmF3PXk.js → B66L8YEe.js} +1 -1
- package/web/app/immutable/chunks/B6hMBAzw.js +1 -0
- package/web/app/immutable/chunks/{DBVnJFMb.js → B7pBUSNy.js} +1 -1
- package/web/app/immutable/chunks/{ClOS_-e_.js → B8Qavkks.js} +1 -1
- package/web/app/immutable/chunks/{BICcGRy9.js → B9PO2UZy.js} +1 -1
- package/web/app/immutable/chunks/{CfG5iS_N.js → B9vJwMca.js} +1 -1
- package/web/app/immutable/chunks/{DNvaSS2U.js → BADXJ9gY.js} +1 -1
- package/web/app/immutable/chunks/{DiCGl5kq.js → BBIyvTX5.js} +3 -3
- package/web/app/immutable/chunks/{z4RHZh7P.js → BD5-GbKS.js} +1 -1
- package/web/app/immutable/chunks/{CBoIo15V.js → BD9kDOxT.js} +1 -1
- package/web/app/immutable/chunks/{CnOr9NAz.js → BEisWjsh.js} +1 -1
- package/web/app/immutable/chunks/{DWRjMQoO.js → BEtQ8T77.js} +1 -1
- package/web/app/immutable/chunks/{kNiuD9tS.js → BHKTKUUz.js} +1 -1
- package/web/app/immutable/chunks/{YSPfcYKn.js → BHhmm7k4.js} +1 -1
- package/web/app/immutable/chunks/{C9R-YW9d.js → BHuNDg-W.js} +1 -1
- package/web/app/immutable/chunks/{C_nJgshO.js → BJWZv5Sk.js} +1 -1
- package/web/app/immutable/chunks/{gCaQv1mQ.js → BL-QaGSE.js} +1 -1
- package/web/app/immutable/chunks/{BBl75qdv.js → BLwfMBUc.js} +1 -1
- package/web/app/immutable/chunks/{1BCEBCxj.js → BMEM9WGe.js} +1 -1
- package/web/app/immutable/chunks/{Cpc4w0Bm.js → BNQhz-c4.js} +1 -1
- package/web/app/immutable/chunks/BPu-f3m6.js +4 -0
- package/web/app/immutable/chunks/{Q-qQLirG.js → BRxNa3zf.js} +1 -1
- package/web/app/immutable/chunks/{BNC-J9Pl.js → BU2dz_aB.js} +1 -1
- package/web/app/immutable/chunks/{kwSDV9fJ.js → BVZOiDhO.js} +4 -4
- package/web/app/immutable/chunks/{BSVIIPqo.js → BXKILicD.js} +1 -1
- package/web/app/immutable/chunks/{BsxJ3VR0.js → BX_A8Fz4.js} +1 -1
- package/web/app/immutable/chunks/BXdz7Mej.js +1 -0
- package/web/app/immutable/chunks/BXyIWb9p.js +1 -0
- package/web/app/immutable/chunks/{BA1PODMh.js → BZ_DkSCc.js} +1 -1
- package/web/app/immutable/chunks/{YIKSjExn.js → B_X9fjxm.js} +1 -1
- package/web/app/immutable/chunks/{D2jMyaf8.js → Bd4BZaTp.js} +1 -1
- package/web/app/immutable/chunks/{Cm3D0ZVR.js → Be7sI0Wr.js} +1 -1
- package/web/app/immutable/chunks/{ByQlGVkM.js → Bkcm6WO0.js} +1 -1
- package/web/app/immutable/chunks/{BLZx5Jln.js → Bkeityp2.js} +1 -1
- package/web/app/immutable/chunks/{BLYi9_ai.js → Bl2M7dQb.js} +1 -1
- package/web/app/immutable/chunks/{DZzmT9V_.js → Blawqk8W.js} +1 -1
- package/web/app/immutable/chunks/{IyX2wNBZ.js → Bncjw5PN.js} +2 -2
- package/web/app/immutable/chunks/{BVaU_GbR.js → BqjPyYOt.js} +1 -1
- package/web/app/immutable/chunks/BrQIXt6A.js +1 -0
- package/web/app/immutable/chunks/{dWvje8eu.js → Bs48vxzD.js} +1 -1
- package/web/app/immutable/chunks/{DnRXhZ6_.js → BsKm9b4M.js} +1 -1
- package/web/app/immutable/chunks/{DwAHzX3q.js → Bss6gHyN.js} +1 -1
- package/web/app/immutable/chunks/{Bbr8E1-T.js → BtYbNvgG.js} +1 -1
- package/web/app/immutable/chunks/{ee2kv8V7.js → BtjBnfiA.js} +1 -1
- package/web/app/immutable/chunks/{B4nCDPQA.js → BulkbkYU.js} +1 -1
- package/web/app/immutable/chunks/{BFeR9qbJ.js → BurMbBp5.js} +1 -1
- package/web/app/immutable/chunks/{CbkAERDZ.js → Bvupquu5.js} +1 -1
- package/web/app/immutable/chunks/{gpmK1kqQ.js → BxX3m2UX.js} +1 -1
- package/web/app/immutable/chunks/{vRomtSEH.js → By8Sq-ft.js} +1 -1
- package/web/app/immutable/chunks/{BRH9kOBU.js → ByQXhpKS.js} +1 -1
- package/web/app/immutable/chunks/{Cx2ztPW2.js → C-5H7e4K.js} +1 -1
- package/web/app/immutable/chunks/{C376IId1.js → C-gRduKt.js} +1 -1
- package/web/app/immutable/chunks/{BQVyHt6n.js → C02TD_sM.js} +1 -1
- package/web/app/immutable/chunks/{DVuaeV8Y.js → C05u3DrM.js} +1 -1
- package/web/app/immutable/chunks/C1LegaQy.js +1 -0
- package/web/app/immutable/chunks/{BN9lTuka.js → C1uebkkA.js} +1 -1
- package/web/app/immutable/chunks/{CODzDoHx.js → C23vUV7W.js} +1 -1
- package/web/app/immutable/chunks/{Crq31h4w.js → C2dNFWEv.js} +1 -1
- package/web/app/immutable/chunks/{9JfuDVAI.js → C2winPI_.js} +1 -1
- package/web/app/immutable/chunks/{DukFUCSi.js → C4byWn93.js} +1 -1
- package/web/app/immutable/chunks/{DShjTjco.js → C6VOY2Ed.js} +1 -1
- package/web/app/immutable/chunks/{BQEuQ5so.js → C8xZ0qNv.js} +1 -1
- package/web/app/immutable/chunks/{BXQHI4eX.js → C9dmGIaz.js} +1 -1
- package/web/app/immutable/chunks/{SYyiTNGD.js → CBsVLKPu.js} +1 -1
- package/web/app/immutable/chunks/{BGCj8f4n.js → CC8PUB7z.js} +2 -2
- package/web/app/immutable/chunks/{lfhgTSoj.js → CCxHAHqB.js} +1 -1
- package/web/app/immutable/chunks/{BvBD37j2.js → CD3weFBA.js} +1 -1
- package/web/app/immutable/chunks/{q8l-xXLl.js → CDYYgEuj.js} +2 -2
- package/web/app/immutable/chunks/{BFtvBSew.js → CDksRI-c.js} +1 -1
- package/web/app/immutable/chunks/{BQpK3CeI.js → CFukky70.js} +1 -1
- package/web/app/immutable/chunks/{DgPKRk-d.js → CH4TOBlm.js} +1 -1
- package/web/app/immutable/chunks/{BQJ4WjRD.js → CIBo29o4.js} +1 -1
- package/web/app/immutable/chunks/{BasqomxX.js → CKOIJ0IP.js} +1 -1
- package/web/app/immutable/chunks/{DdGFeF49.js → CLUAF-ra.js} +3 -3
- package/web/app/immutable/chunks/{Ij0kpg_f.js → CNMI-zGd.js} +1 -1
- package/web/app/immutable/chunks/{M4GSoHng.js → CNbjMDZm.js} +48 -48
- package/web/app/immutable/chunks/{BcNmLUvA.js → CO_V-6EQ.js} +1 -1
- package/web/app/immutable/chunks/{CBYLlCL4.js → CPO35toG.js} +1 -1
- package/web/app/immutable/chunks/{CyvkPwON.js → CPa4nnG1.js} +1 -1
- package/web/app/immutable/chunks/{B2Pgyqsq.js → CPiRiDCt.js} +1 -1
- package/web/app/immutable/chunks/{DwJV5y_l.js → CPizSuTO.js} +1 -1
- package/web/app/immutable/chunks/{fthv3J-S.js → CURSeRFX.js} +1 -1
- package/web/app/immutable/chunks/{1_OFWWss.js → CY6hJTg2.js} +1 -1
- package/web/app/immutable/chunks/{XDo28UMB.js → CYl6Lvh4.js} +3 -3
- package/web/app/immutable/chunks/{g6g5zZQD.js → CZb8tVz5.js} +1 -1
- package/web/app/immutable/chunks/{DnsljLCu.js → C_9ekWa1.js} +4 -4
- package/web/app/immutable/chunks/{DGy8ScKF.js → CaHWmzVB.js} +1 -1
- package/web/app/immutable/chunks/{OyVPvX5W.js → CbCE1pwF.js} +1 -1
- package/web/app/immutable/chunks/{BZ-EICJi.js → CdqUGZeZ.js} +1 -1
- package/web/app/immutable/chunks/{D8--oZc6.js → Cf7_9vnO.js} +1 -1
- package/web/app/immutable/chunks/{BC6-b3Dv.js → Ch0hL0V-.js} +3 -3
- package/web/app/immutable/chunks/{2uCE_ZPn.js → ChIqxVTs.js} +1 -1
- package/web/app/immutable/chunks/{B7El2OF0.js → CiLnzvU7.js} +1 -1
- package/web/app/immutable/chunks/{cYR0zuXX.js → CjMEl34P.js} +1 -1
- package/web/app/immutable/chunks/{C0wuuFa7.js → Cl0TebPK.js} +1 -1
- package/web/app/immutable/chunks/{CkAAitlR.js → CloY0vJA.js} +1 -1
- package/web/app/immutable/chunks/{4Tv95AMr.js → CnAtabD8.js} +1 -1
- package/web/app/immutable/chunks/{DlQXxpP-.js → CoeEqCAd.js} +1 -1
- package/web/app/immutable/chunks/{Cx0E7JMD.js → CqoECVux.js} +1 -1
- package/web/app/immutable/chunks/{DwIsNA5R.js → CrKYeBTQ.js} +1 -1
- package/web/app/immutable/chunks/{BzT2S2ou.js → Cv1ykEZ5.js} +1 -1
- package/web/app/immutable/chunks/{BmS-LVXj.js → CvJKDv5e.js} +1 -1
- package/web/app/immutable/chunks/{DYfj3lcw.js → CvTcUzFW.js} +1 -1
- package/web/app/immutable/chunks/{_2fOudXW.js → CvurNR1W.js} +3 -3
- package/web/app/immutable/chunks/{T0VysRBQ.js → CwWxAoHb.js} +1 -1
- package/web/app/immutable/chunks/{C3Utm2D5.js → Cwey7ct7.js} +1 -1
- package/web/app/immutable/chunks/{lBxfStnS.js → CxEB7RsJ.js} +1 -1
- package/web/app/immutable/chunks/{ys17TXF0.js → Cxjclr_4.js} +1 -1
- package/web/app/immutable/chunks/{BxG6A9b4.js → CzHSdjMD.js} +1 -1
- package/web/app/immutable/chunks/{DomfbKVx.js → D-TU-2ME.js} +1 -1
- package/web/app/immutable/chunks/{BdJ2kTDg.js → D-mqBiUo.js} +1 -1
- package/web/app/immutable/chunks/{CTld-PL6.js → D-uhCX3w.js} +1 -1
- package/web/app/immutable/chunks/{CRSENXWv.js → D09nC1GH.js} +1 -1
- package/web/app/immutable/chunks/{83fIOp0Q.js → D1gMVCw_.js} +1 -1
- package/web/app/immutable/chunks/{Mne-RwlA.js → D1pAML4P.js} +1 -1
- package/web/app/immutable/chunks/{BWX9-gTx.js → D22O0lQY.js} +1 -1
- package/web/app/immutable/chunks/{B1Vhnxzz.js → D2gfYd_D.js} +1 -1
- package/web/app/immutable/chunks/{DC8fssXE.js → D5iylRNB.js} +1 -1
- package/web/app/immutable/chunks/{Qos47XEo.js → D6_4An9q.js} +1 -1
- package/web/app/immutable/chunks/{DZehrap8.js → D9352X9R.js} +1 -1
- package/web/app/immutable/chunks/{B7jicnjL.js → DAeWNQ3N.js} +1 -1
- package/web/app/immutable/chunks/{BiuqRP28.js → DAnMADno.js} +1 -1
- package/web/app/immutable/chunks/{D5t4Sb61.js → DCfwli1b.js} +1 -1
- package/web/app/immutable/chunks/{B5qHFYtB.js → DFxm7j9Z.js} +1 -1
- package/web/app/immutable/chunks/{CYZxRRWB.js → DHoMpHTR.js} +1 -1
- package/web/app/immutable/chunks/{B8TzQVK2.js → DJI9bjVo.js} +1 -1
- package/web/app/immutable/chunks/{4pk0Z0U9.js → DKgDFDH4.js} +1 -1
- package/web/app/immutable/chunks/{s5wpRW1P.js → DLDsTWl7.js} +1 -1
- package/web/app/immutable/chunks/{CK_EC_Zv.js → DLDwz3Jk.js} +3 -3
- package/web/app/immutable/chunks/{C3QEllyF.js → DNd6DGz3.js} +1 -1
- package/web/app/immutable/chunks/{DW8uhmxw.js → DNjAbZct.js} +1 -1
- package/web/app/immutable/chunks/{CS6iaD-m.js → DPrS1NlO.js} +1 -1
- package/web/app/immutable/chunks/{AGFKnm2P.js → DQ9yqoWl.js} +1 -1
- package/web/app/immutable/chunks/{D9dP_Ett.js → DQpdaJ6T.js} +1 -1
- package/web/app/immutable/chunks/{B4VyGGYM.js → DRJOZJ6-.js} +1 -1
- package/web/app/immutable/chunks/{CEeOHP8e.js → DSkFz5VN.js} +1 -1
- package/web/app/immutable/chunks/{Ca8dpfL7.js → DU1KIlN0.js} +1 -1
- package/web/app/immutable/chunks/{B7tvViul.js → DVFTLZww.js} +2 -2
- package/web/app/immutable/chunks/{r5gxpJo8.js → DVnXSrnX.js} +1 -1
- package/web/app/immutable/chunks/{5lnJq6sM.js → DW-ALZ6y.js} +1 -1
- package/web/app/immutable/chunks/{-j1F8NEs.js → DWKuJ6Hr.js} +1 -1
- package/web/app/immutable/chunks/{ByFoaxbG.js → DWx1UA63.js} +1 -1
- package/web/app/immutable/chunks/{CZiWVYjs.js → DXDOTLs_.js} +1 -1
- package/web/app/immutable/chunks/{DfSn9hGW.js → DXhnL_QC.js} +1 -1
- package/web/app/immutable/chunks/{BYBxN_iz.js → DZif8G3V.js} +1 -1
- package/web/app/immutable/chunks/{B58pcVYz.js → DZzjO28f.js} +1 -1
- package/web/app/immutable/chunks/{e0dgj-dl.js → DcSenGcU.js} +1 -1
- package/web/app/immutable/chunks/{BJYSsWSU.js → DeAvGdvh.js} +1 -1
- package/web/app/immutable/chunks/{DcoxMA27.js → DeJsl-aZ.js} +1 -1
- package/web/app/immutable/chunks/{DkXjvKmg.js → Dfltx80e.js} +1 -1
- package/web/app/immutable/chunks/{CPgenjJJ.js → DhabgDm5.js} +1 -1
- package/web/app/immutable/chunks/{DtaTESlI.js → DiLbGQuc.js} +1 -1
- package/web/app/immutable/chunks/{AsRiGNKE.js → DkvlYl1r.js} +1 -1
- package/web/app/immutable/chunks/Dm58JeH4.js +4 -0
- package/web/app/immutable/chunks/{CN6k04kg.js → DnMyotqB.js} +1 -1
- package/web/app/immutable/chunks/{DBp7mVI8.js → Doc9Z9QQ.js} +1 -1
- package/web/app/immutable/chunks/{DwMfNnNV.js → Dp5CK5E2.js} +2 -2
- package/web/app/immutable/chunks/DpZbkRU1.js +2 -0
- package/web/app/immutable/chunks/{743JVs4Q.js → DsYe-lzR.js} +1 -1
- package/web/app/immutable/chunks/{DCR2yORR.js → DstArZ_G.js} +1 -1
- package/web/app/immutable/chunks/{BYhv5ULD.js → Du45nhw1.js} +1 -1
- package/web/app/immutable/chunks/{DawDK143.js → DuqO5YYx.js} +1 -1
- package/web/app/immutable/chunks/{DCMUMliQ.js → Dv-MAuki.js} +1 -1
- package/web/app/immutable/chunks/{Bg6EMrHe.js → Dw6H-2WQ.js} +4 -4
- package/web/app/immutable/chunks/{D8VQPXfA.js → DxQllgk1.js} +1 -1
- package/web/app/immutable/chunks/{ChNVaYkZ.js → DxXHe9XL.js} +1 -1
- package/web/app/immutable/chunks/{DBXDrA8G.js → Dz4zGm0b.js} +1 -1
- package/web/app/immutable/chunks/{CLLGUAol.js → DzrG6LRJ.js} +1 -1
- package/web/app/immutable/chunks/{DOnVAbj0.js → ENk3kCNh.js} +1 -1
- package/web/app/immutable/chunks/{vQwN4WXd.js → Ebo0jR7g.js} +1 -1
- package/web/app/immutable/chunks/{DhQzPxYK.js → Hqp9lhkv.js} +1 -1
- package/web/app/immutable/chunks/{DAyLQqmH.js → IS3lk0hL.js} +1 -1
- package/web/app/immutable/chunks/{B5P3MlXt.js → K6c57sYm.js} +1 -1
- package/web/app/immutable/chunks/{C4MOq5FS.js → LjFrXSKU.js} +1 -1
- package/web/app/immutable/chunks/LuyeE9EP.js +1 -0
- package/web/app/immutable/chunks/{Bbtr-1K4.js → LywjnD7L.js} +1 -1
- package/web/app/immutable/chunks/{DEBEHaOd.js → MHMez6vJ.js} +1 -1
- package/web/app/immutable/chunks/{u4f1abDP.js → NbM9xEi7.js} +1 -1
- package/web/app/immutable/chunks/NqHwC243.js +1 -0
- package/web/app/immutable/chunks/{Bo9ahub4.js → OQFffAXE.js} +2 -2
- package/web/app/immutable/chunks/{hRXpLgdr.js → Q7GICaZA.js} +4 -4
- package/web/app/immutable/chunks/{CzNFeyXq.js → RWrc-xf9.js} +1 -1
- package/web/app/immutable/chunks/{B2uGo8UC.js → S4yHrePv.js} +1 -1
- package/web/app/immutable/chunks/{CN_bicqw.js → TGii5dZx.js} +1 -1
- package/web/app/immutable/chunks/{BqEu3ShV.js → TpzTLNOD.js} +1 -1
- package/web/app/immutable/chunks/{DaWbYcBW.js → TwGZmfYW.js} +1 -1
- package/web/app/immutable/chunks/{CKdLa-Uz.js → VjR26_WS.js} +1 -1
- package/web/app/immutable/chunks/{DZIg-0qV.js → XJvRRqZY.js} +2 -2
- package/web/app/immutable/chunks/{B86uOqdH.js → Z2gbRxA0.js} +1 -1
- package/web/app/immutable/chunks/{CXgjAj37.js → ZUCHJs0z.js} +1 -1
- package/web/app/immutable/chunks/{CnNF86D9.js → aZx3cD8V.js} +1 -1
- package/web/app/immutable/chunks/{HBVhNaGe.js → at5Op_FE.js} +1 -1
- package/web/app/immutable/chunks/{CYnvHqAo.js → c-xC05gO.js} +3 -3
- package/web/app/immutable/chunks/{BFbSkULM.js → dJyv-siL.js} +1 -1
- package/web/app/immutable/chunks/{BAbkls59.js → dmvnbvsQ.js} +1 -1
- package/web/app/immutable/chunks/{B0TS4hgi.js → ediMbqWo.js} +1 -1
- package/web/app/immutable/chunks/{BiMshSJB.js → gVaQ50Mb.js} +1 -1
- package/web/app/immutable/chunks/{ClsELQC1.js → hiFoK9HW.js} +1 -1
- package/web/app/immutable/chunks/{khmuPkH1.js → ho_wzPgZ.js} +1 -1
- package/web/app/immutable/chunks/{0RMdFti5.js → jkBt9jHY.js} +1 -1
- package/web/app/immutable/chunks/{Bvvd2zh3.js → kG7yHiIe.js} +1 -1
- package/web/app/immutable/chunks/{BmuAz9YM.js → lAsY7teh.js} +1 -1
- package/web/app/immutable/chunks/{BFOOw1dI.js → n4HRXsWs.js} +1 -1
- package/web/app/immutable/chunks/{cxunVpZz.js → nY6Ai7XD.js} +1 -1
- package/web/app/immutable/chunks/{5r_d4X6e.js → qYwSdo-K.js} +3 -3
- package/web/app/immutable/chunks/{sYQprIK6.js → rKiAyfMI.js} +1 -1
- package/web/app/immutable/chunks/{ij7Gv2VI.js → sisoY2vh.js} +1 -1
- package/web/app/immutable/chunks/{Bq6o_ftd.js → uO0IO955.js} +1 -1
- package/web/app/immutable/chunks/{r4Kn8ryM.js → x8V1qvZr.js} +1 -1
- package/web/app/immutable/chunks/{Ba12nCEG.js → xOOK71rW.js} +1 -1
- package/web/app/immutable/chunks/{Dhqi7cA-.js → zuDkoDer.js} +1 -1
- package/web/app/immutable/entry/app.S5CWPbDK.js +4 -0
- package/web/app/immutable/entry/start.DinkqhBP.js +1 -0
- package/web/app/immutable/nodes/{0.DvHREjig.js → 0.B4U_qChs.js} +1 -1
- package/web/app/immutable/nodes/{1.ClPj5TCv.js → 1.pNWMoj9V.js} +1 -1
- package/web/app/immutable/nodes/{10.Ca2-F8qL.js → 10.CaBIMNie.js} +1 -1
- package/web/app/immutable/nodes/{11.AT9-T1cz.js → 11.xKpwCHv6.js} +1 -1
- package/web/app/immutable/nodes/{12.UnKFeRcB.js → 12.B4sH0GII.js} +1 -1
- package/web/app/immutable/nodes/{13.CPShrjOW.js → 13.CfDkqDId.js} +3 -3
- package/web/app/immutable/nodes/{14.DR4jcijT.js → 14.BI8ewYLs.js} +1 -1
- package/web/app/immutable/nodes/{15.DITl_gdk.js → 15.DDXz42ax.js} +1 -1
- package/web/app/immutable/nodes/{16.SMwU6zOj.js → 16.Cxa0f4JH.js} +1 -1
- package/web/app/immutable/nodes/{17.ploub82N.js → 17.UGEWL_p3.js} +2 -2
- package/web/app/immutable/nodes/{2.CWTxlS6d.js → 2.-Qf9E2iv.js} +4 -4
- package/web/app/immutable/nodes/{3.7XW5RNaq.js → 3.DLT-Yg27.js} +1 -1
- package/web/app/immutable/nodes/{4.B8c9sA1f.js → 4.DmcEH-RC.js} +1 -1
- package/web/app/immutable/nodes/{5.8AXtwblD.js → 5.BFD4xsaH.js} +1 -1
- package/web/app/immutable/nodes/{6.DYnY5u72.js → 6.RyyedfVo.js} +1 -1
- package/web/app/immutable/nodes/{7.CGylAw3f.js → 7.C0oAoj9c.js} +1 -1
- package/web/app/immutable/nodes/8.1ulerr0C.js +14 -0
- package/web/app/immutable/nodes/{9.QQqXOPhv.js → 9.fVLpMpdp.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/chunks/8obSPONn.js +0 -1
- package/web/app/immutable/chunks/Bgs5Oygw.js +0 -1
- package/web/app/immutable/chunks/BhAlvK4b.js +0 -4
- package/web/app/immutable/chunks/CBQNI-Hj.js +0 -1
- package/web/app/immutable/chunks/CXY1P6C9.js +0 -1
- package/web/app/immutable/chunks/CijnEJw0.js +0 -1
- package/web/app/immutable/chunks/DKPv6b-m.js +0 -2
- package/web/app/immutable/chunks/DKyn5QCF.js +0 -1
- package/web/app/immutable/chunks/kOvgsK93.js +0 -4
- package/web/app/immutable/chunks/s3gu_1Am.js +0 -1
- package/web/app/immutable/entry/app.DrmM2gXC.js +0 -4
- package/web/app/immutable/entry/start.B5qs3plV.js +0 -1
- package/web/app/immutable/nodes/8.D5h4WyUO.js +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Re,bq as i,a_ as Z,bo as n,by as Fe,bu as Oe,bs as Wt,b as Ue}from"./8obSPONn.js";import{ai as Kt,bo as Vt,bs as je,bV as $,br as Gt,ca as _e,aD as e,bj as Jt,bH as a,c5 as nt,a5 as z,bl as N,bS as c,bA as O,b_ as H,bO as h,W as m,bn as ze,c9 as _,aA as d,ay as V,a7 as Be,aB as B,bf as rt,aj as Qt,be as X,b$ as Y}from"./DYhIMPy1.js";import{b as Xt}from"./BaIAhI85.js";import{u as at,n as Yt,j as Zt,l as lt,v as en,p as tn}from"./Crq31h4w.js";import"./DrQfmm9r.js";import"./BICcGRy9.js";import"./CXgjAj37.js";import{f as K}from"./CYnvHqAo.js";import"./BiuqRP28.js";import{s as nn,c as rn}from"./CBoIo15V.js";import{x as ve,Ii as W,hI as pe,s6 as an,hL as st}from"./DomfbKVx.js";import{C as ln,b as sn,T as on,c as cn,S as dn}from"./Bu8Z06IG.js";import{I as Ae}from"./CN_bicqw.js";import"./ikj2reaR.js";import"./DwIsNA5R.js";import"./CTld-PL6.js";import"./ChTqQfQN.js";import"./DYfj3lcw.js";import{o as un}from"./DIP3ex32.js";import{af as fn,aP as _n,aG as pn,E as vn}from"./BhAlvK4b.js";import{i as bn,p as gn}from"./BNC-J9Pl.js";var mn=B('<span class="size-4 rounded-full border border-muted-foreground/60 bg-background" aria-hidden="true"></span>'),hn=B('<span aria-hidden="true"></span>'),xn=B('<p class="text-xs text-subtle"> </p> <p class="text-xs text-subtle"> <a class="text-primary-ink hover:underline">github.com/intent-hq/intentd</a> </p>',1),yn=B('<div class="space-y-1"><label class="text-xs text-subtle" for="connect-name"> </label> <!></div> <div class="flex min-w-0 items-end gap-4" data-connect-appearance=""><fieldset class="min-w-0 flex-1 space-y-1"><legend class="text-xs text-subtle"> </legend> <div class="flex flex-wrap gap-1"></div></fieldset> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-host"> </label> <!> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-port"> </label> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-token"> </label> <!></div> <!> <!> <!>',1),kn=B('<div class="space-y-1"><span class="text-xs text-subtle"> </span> <p class="font-mono text-xs break-all bg-muted/50 rounded p-2"> </p></div>'),Cn=B('<p class="text-xs text-danger" role="alert"> </p>'),An=B('<div class="space-y-4"><p class="text-sm text-subtle" role="status" aria-live="polite"> </p> <!> <!></div>');function ct(q,l){const p=Vt();if(new.target)return Re({component:ct,...q});je(l,!0);const g=()=>Oe(dt,"$workflow$",T),R=()=>Oe(pt,"$hostManagesConnections$",T),w=()=>Oe(_t,"$syncState$",T),[T,F]=Wt(),M=(t,o=rt)=>{{const b=(de,ue=rt)=>{{let Q=_(()=>({...ue(),entry:o(),controlId:o().id}));dn(de,{get entry(){return o()},get context(){return e(Q)}})}};let ne=_(()=>`${o().id}-field`);nn(t,{get id(){return e(ne)},get label(){return o().label},get description(){return o().description},get htmlFor(){return o().id},get disabled(){return e(ce)},get busy(){return e(ce)},compact:!0,class:"grid-cols-[minmax(0,1fr)_auto] items-start py-0 first:pt-0 last:pb-0 [&_[data-field-control]]:w-auto",control:b,$$slots:{control:!0}})}};let D=i(l,"active",7),x=i(l,"step",15,"details"),U=i(l,"busy",15,!1),j=i(l,"canContinue",15,!1),L=i(l,"firstInput",15,null),s=i(l,"prefillHost",7,null),y=i(l,"prefillPort",7,null),I=i(l,"prefillLabel",7,null),P=i(l,"prefillAccent",7,void 0),r=i(l,"defaultAccent",7,ve),k=i(l,"showHelp",7,!0),C=i(l,"onDone",7);const v="5181",S="https://github.com/intent-hq/intentd";function qe(t){t.preventDefault(),un(S)}let A=$(""),ee=$(Gt(ve)),se=$("auto"),E=$(""),G=$(v),J=$(""),te=$(null),be=$(!0),oe=$(!0),ge=$("");const dt=fn(p),ce=_(()=>!!g()&&g().phase!=="settled");_e(()=>{U(e(ce))});const Me=_(()=>{const t=g()?.outcome;return t?.kind==="error"||t?.kind==="syncError"?t.message:t?.kind==="secretUnavailable"?n.modals_connect_secretUnavailable_error():t?.kind==="captureRejected"?t.statusCode===403?n.modals_connect_wsApiDisabled_error():n.modals_connect_tokenRejected_error():null});Jt(()=>W.dispatch(pe(p))),_e(()=>{const t=g()?.outcome;t?.kind==="captured"?(a(ge,t.fingerprint,!0),x("confirm"),W.dispatch(pe(p))):t?.kind==="done"&&nt(()=>{we(),C()()})});const ut=_(()=>cn(P()===void 0?r():P())),ft=typeof window<"u"&&window.electronAPI?.platform==="darwin",_t=_n(),pt=pn(),Se=_(()=>!R()&&(w()?.supported??ft)),vt=_(()=>w()?.enabled??!1),bt=_(()=>({kind:"switch",id:"connect-detect-hosts",label:n.modals_connect_detectHosts_label(),description:n.modals_connect_detectHosts_description(),get:()=>e(be),set:t=>{a(be,t,!0)}})),gt=_(()=>({kind:"switch",id:"connect-save-to-icloud",label:n.modals_connect_saveToICloud_label(),description:n.modals_connect_saveToICloud_description(),get:()=>e(oe),set:t=>{a(oe,t,!0)}})),ie=_(()=>Number(e(G).trim())),We=_(()=>e(A).trim().length>0&&e(E).trim().length>0&&Number.isInteger(e(ie))&&e(ie)>0&&e(ie)<=65535&&e(J).trim().length>0&&!e(ce));_e(()=>{j(e(We))});function we(){x("details"),a(A,""),a(ee,r(),!0),a(se,"auto"),a(E,""),a(G,v),a(J,""),a(te,null),a(be,!0),a(oe,!0),a(ge,""),W.dispatch(pe(p))}function mt(t){const o=t.clipboardData?.getData("text")??"";if(!bn(o))return;const b=gn(o);b&&(t.preventDefault(),b.hosts.length>0&&a(E,b.hosts[0],!0),b.port!==null&&a(G,String(b.port),!0),b.token&&a(J,b.token,!0),a(te,b.tcAddress,!0))}function ht(){a(te,vn(e(E))?e(E).trim():null,!0)}function xt(){e(We)&&W.dispatch(st(p,{kind:"capture",params:{host:e(E).trim(),port:e(ie),token:e(J).trim()}}))}function yt(){if(e(Se)&&!e(vt)&&e(oe)){W.dispatch(pe(p)),x("syncConfirm");return}Ie(e(Se)&&!e(oe))}function Ie(t,o={}){const b=e(E).trim();W.dispatch(st(p,{kind:"connect",enableSync:o.enableSyncAfterAdd===!0,params:{label:e(A).trim(),accent:e(ee),deviceIcon:e(se),host:b,port:e(ie),fingerprint:e(ge),token:e(J).trim(),...e(te)?{tcAddress:e(te)}:{},detectHosts:e(be),...t?{syncExcluded:!0}:{}}}))}function kt(){Ie(!1,{enableSyncAfterAdd:!0})}function Ct(){Ie(!0)}function At(){x("details"),W.dispatch(pe(p))}const me="w-full px-3 py-2 bg-background border border-border rounded text-foreground text-sm focus:outline-none focus:border-primary-ink";function St(t){return t===null?n.settings_devices_accentNone_label():{blue:n.settings_devices_accentBlue_label(),indigo:n.settings_devices_accentIndigo_label(),violet:n.settings_devices_accentViolet_label(),rose:n.settings_devices_accentRose_label(),orange:n.settings_devices_accentOrange_label(),emerald:n.settings_devices_accentEmerald_label(),teal:n.settings_devices_accentTeal_label()}[t]}_e(()=>{if(D()&&x()==="details"&&L()){const t=L();requestAnimationFrame(()=>t.focus())}});let Pe=!1;_e(()=>{const t=D()&&!Pe,o=!D()&&Pe;Pe=D(),o&&nt(we),t&&(I()&&e(A)===""&&a(A,I()),a(ee,P()===void 0?r():P(),!0),s()&&e(E)===""&&a(E,s()),y()!=null&&e(G)===v&&a(G,String(y()),!0),W.dispatch(an()))});var wt={reset:we,capture:xt,confirm:yt,enableSyncAndAdd:kt,declineSync:Ct,back:At,get active(){return D()},set active(t){D(t),d()},get step(){return x()},set step(t="details"){x(t),d()},get busy(){return U()},set busy(t=!1){U(t),d()},get canContinue(){return j()},set canContinue(t=!1){j(t),d()},get firstInput(){return L()},set firstInput(t=null){L(t),d()},get prefillHost(){return s()},set prefillHost(t=null){s(t),d()},get prefillPort(){return y()},set prefillPort(t=null){y(t),d()},get prefillLabel(){return I()},set prefillLabel(t=null){I(t),d()},get prefillAccent(){return P()},set prefillAccent(t=void 0){P(t),d()},get defaultAccent(){return r()},set defaultAccent(t=ve){r(t),d()},get showHelp(){return k()},set showHelp(t=!0){k(t),d()},get onDone(){return C()},set onDone(t){C(t),d()},$set:Fe,$on:(t,o)=>Ue(l,t,o)},he=An(),Ke=z(he),It=N(Ke,!0),Ve=c(Ke,2);{var Pt=t=>{var o=yn(),b=V(o),ne=z(b),de=N(ne,!0),ue=c(ne,2);{let u=_(()=>n.modals_connect_name_placeholder());Ae(ue,{id:"connect-name",type:"text",get placeholder(){return e(u)},class:me,autocomplete:"off",get ref(){return L()},set ref(f){L(f)},get value(){return e(A)},set value(f){a(A,f,!0)}})}O(b);var Q=c(b,2),$e=z(Q),Ge=z($e),Tt=N(Ge,!0),Je=c(Ge,2);Yt(Je,21,()=>e(ut),tn,(u,f)=>{{let re=_(()=>lt("flex size-8 cursor-pointer items-center justify-center rounded-full border bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e(f)===e(ee)?"border-foreground shadow-[0_0_0_2px_var(--color-background),0_0_0_4px_var(--color-foreground)]":"border-border hover:border-input")),fe=_(()=>n.modals_connect_accentOption_ariaLabel({color:St(e(f))})),ae=_(()=>e(f)===e(ee));K(u,{type:"button",variant:"plain",get class(){return e(re)},get"aria-label"(){return e(fe)},get"aria-pressed"(){return e(ae)},onclick:()=>a(ee,e(f),!0),children:(xe,ye)=>{var ke=Be(),Te=V(ke);{var Ee=le=>{var Ce=mn();m(le,Ce)},Ne=le=>{var Ce=hn();H(Mt=>en(Ce,1,Mt),[()=>Zt(lt("size-4 rounded-full",ln[e(f)]))]),m(le,Ce)};Z(Te,le=>{e(f)===null?le(Ee):le(Ne,-1)})}m(xe,ke)},$$slots:{default:!0}})}}),O(Je),O($e);var Et=c($e,2);{let u=_(()=>({deviceIcon:e(se)}));sn(Et,{get record(){return e(u)},portal:!0,contentClass:"z-[calc(var(--layer-modal)+1)]",get value(){return e(se)},set value(f){a(se,f,!0)}})}O(Q);var De=c(Q,2),Qe=z(De),Nt=N(Qe,!0),Xe=c(Qe,2);{let u=_(()=>n.modals_connect_host_placeholder());Ae(Xe,{id:"connect-host",type:"text",get placeholder(){return e(u)},class:me,autocorrect:"off",autocapitalize:"off",spellcheck:"false",onpaste:mt,oninput:ht,get value(){return e(E)},set value(f){a(E,f,!0)}})}var Ot=c(Xe,2);{let u=_(()=>e(te)!==null);on(Ot,{get relevant(){return e(u)}})}O(De);var He=c(De,2),Ye=z(He),Rt=N(Ye,!0),Ft=c(Ye,2);{let u=_(()=>n.modals_connect_port_placeholder());Ae(Ft,{id:"connect-port",type:"text",inputmode:"numeric",get placeholder(){return e(u)},class:me,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(G)},set value(f){a(G,f,!0)}})}O(He);var Le=c(He,2),Ze=z(Le),Ut=N(Ze,!0),jt=c(Ze,2);{let u=_(()=>n.modals_connect_token_placeholder());Ae(jt,{id:"connect-token",type:"password",get placeholder(){return e(u)},class:me,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(J)},set value(f){a(J,f,!0)}})}O(Le);var et=c(Le,2);M(et,()=>e(bt));var tt=c(et,2);{var zt=u=>{M(u,()=>e(gt))};Z(tt,u=>{e(Se)&&u(zt)})}var Bt=c(tt,2);{var qt=u=>{var f=xn(),re=V(f),fe=N(re,!0),ae=c(re,2),xe=z(ae),ye=c(xe);at(ye,"href",S);var ke=c(ye);O(ae),H((Te,Ee,Ne)=>{h(fe,Te),h(xe,`${Ee??""} `),h(ke,` ${Ne??""}`)},[()=>n.modals_connect_whereToFind_help(),()=>n.modals_connect_headless_before(),()=>n.modals_connect_headless_after()]),Qt("click",ye,qe),m(u,f)};Z(Bt,u=>{k()&&u(qt)})}H((u,f,re,fe,ae)=>{h(de,u),h(Tt,f),h(Nt,re),h(Rt,fe),h(Ut,ae)},[()=>n.modals_connect_name_label(),()=>n.settings_devices_accent_label(),()=>n.modals_connect_host_label(),()=>n.modals_connect_port_label(),()=>n.modals_connect_token_label()]),m(t,o)},$t=t=>{var o=kn(),b=z(o),ne=N(b,!0),de=c(b,2),ue=N(de,!0);O(o),H(Q=>{h(ne,Q),h(ue,e(ge))},[()=>n.modals_connect_fingerprint_label()]),m(t,o)};Z(Ve,t=>{x()==="details"?t(Pt):x()==="confirm"&&t($t,1)})}var Dt=c(Ve,2);{var Ht=t=>{var o=Cn(),b=N(o,!0);H(()=>h(b,e(Me))),m(t,o)};Z(Dt,t=>{e(Me)&&t(Ht)})}O(he),H(t=>{at(he,"aria-busy",e(ce)),h(It,t)},[()=>x()==="details"?n.modals_connect_details_description():x()==="confirm"?n.modals_connect_confirmStep_description():n.modals_connect_enableSync_description()]),m(q,he);var Lt=ze(wt);return F(),Lt}Kt(["click"]);var ot=B("<!> <!>",1),Sn=B("<!> <!> <!>",1);function it(q,l){if(new.target)return Re({component:it,...q});je(l,!0);let p=i(l,"step",7),g=i(l,"busy",7),R=i(l,"canContinue",7),w=i(l,"form",7),T=i(l,"detailsSecondaryLabel",23,()=>n.modals_connect_cancel_label()),F=i(l,"onDetailsSecondary",7);var M={get step(){return p()},set step(s){p(s),d()},get busy(){return g()},set busy(s){g(s),d()},get canContinue(){return R()},set canContinue(s){R(s),d()},get form(){return w()},set form(s){w(s),d()},get detailsSecondaryLabel(){return T()},set detailsSecondaryLabel(s=n.modals_connect_cancel_label()){T(s),d()},get onDetailsSecondary(){return F()},set onDetailsSecondary(s){F(s),d()},$set:Fe,$on:(s,y)=>Ue(l,s,y)},D=Be(),x=V(D);{var U=s=>{var y=ot(),I=V(y);K(I,{variant:"ghost",get disabled(){return g()},get onclick(){return F()},children:(r,k)=>{X();var C=Y();H(()=>h(C,T())),m(r,C)},$$slots:{default:!0}});var P=c(I,2);{let r=_(()=>!R());K(P,{variant:"secondary",onclick:()=>w()?.capture(),get disabled(){return e(r)},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>g()?n.modals_connect_connecting_label():n.modals_connect_continue_label()]),m(k,v)},$$slots:{default:!0}})}m(s,y)},j=s=>{var y=ot(),I=V(y);K(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return g()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>n.modals_connect_back_label()]),m(r,C)},$$slots:{default:!0}});var P=c(I,2);K(P,{variant:"secondary",onclick:()=>w()?.confirm(),get disabled(){return g()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>g()?n.modals_connect_connecting_label():n.modals_connect_confirm_label()]),m(r,C)},$$slots:{default:!0}}),m(s,y)},L=s=>{var y=Sn(),I=V(y);K(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return g()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_back_label()]),m(k,v)},$$slots:{default:!0}});var P=c(I,2);K(P,{variant:"ghost",onclick:()=>w()?.declineSync(),get disabled(){return g()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_enableSync_decline_label()]),m(k,v)},$$slots:{default:!0}});var r=c(P,2);K(r,{variant:"secondary",onclick:()=>w()?.enableSyncAndAdd(),get disabled(){return g()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>g()?n.modals_connect_connecting_label():n.modals_connect_enableSync_confirm_label()]),m(k,v)},$$slots:{default:!0}}),m(s,y)};Z(x,s=>{p()==="details"?s(U):p()==="confirm"?s(j,1):s(L,-1)})}return m(q,D),ze(M)}function wn(q,l){if(new.target)return Re({component:wn,...q});je(l,!0);let p=i(l,"open",15,!1),g=i(l,"prefillHost",7,null),R=i(l,"prefillPort",7,null),w=i(l,"prefillLabel",7,null),T=i(l,"prefillAccent",7,void 0),F=i(l,"defaultAccent",7,ve),M=$(void 0),D=$("details"),x=$(!1),U=$(!1),j=$(null);function L(){p(!1)}var s={get open(){return p()},set open(r=!1){p(r),d()},get prefillHost(){return g()},set prefillHost(r=null){g(r),d()},get prefillPort(){return R()},set prefillPort(r=null){R(r),d()},get prefillLabel(){return w()},set prefillLabel(r=null){w(r),d()},get prefillAccent(){return T()},set prefillAccent(r=void 0){T(r),d()},get defaultAccent(){return F()},set defaultAccent(r=ve){F(r),d()},$set:Fe,$on:(r,k)=>Ue(l,r,k)},y=Be(),I=V(y);{var P=r=>{{const k=S=>{it(S,{get step(){return e(D)},get busy(){return e(x)},get canContinue(){return e(U)},get form(){return e(M)},onDetailsSecondary:L})};let C=_(()=>n.modals_connect_title()),v=_(()=>n.modals_connect_close_ariaLabel());rn(r,{get title(){return e(C)},get closeLabel(){return e(v)},get busy(){return e(x)},get initialFocus(){return e(j)},onClose:L,dismissOnInteractOutside:!1,get open(){return p()},set open(S){p(S)},footer:k,children:(S,qe)=>{Xt(ct(S,{get active(){return p()},get prefillHost(){return g()},get prefillPort(){return R()},get prefillLabel(){return w()},get prefillAccent(){return T()},get defaultAccent(){return F()},onDone:L,get step(){return e(D)},set step(A){a(D,A,!0)},get busy(){return e(x)},set busy(A){a(x,A,!0)},get canContinue(){return e(U)},set canContinue(A){a(U,A,!0)},get firstInput(){return e(j)},set firstInput(A){a(j,A,!0)}}),A=>a(M,A,!0),()=>e(M))},$$slots:{footer:!0,default:!0}})}};Z(I,r=>{p()&&r(P)})}return m(q,y),ze(s)}export{it as C,ct as a,wn as b};
|
|
1
|
+
import{t as Re,bq as i,a_ as Z,bo as n,by as Fe,bu as Oe,bs as Wt,b as Ue}from"./NqHwC243.js";import{ai as Kt,bo as Vt,bs as je,bV as $,br as Gt,ca as _e,aD as e,bj as Jt,bH as a,c5 as nt,a5 as z,bl as N,bS as c,bA as O,b_ as H,bO as h,W as m,bn as ze,c9 as _,aA as d,ay as V,a7 as Be,aB as B,bf as rt,aj as Qt,be as X,b$ as Y}from"./DYhIMPy1.js";import{b as Xt}from"./BaIAhI85.js";import{u as at,n as Yt,j as Zt,l as lt,v as en,p as tn}from"./C2dNFWEv.js";import"./B0hlE4IJ.js";import"./B9PO2UZy.js";import"./ZUCHJs0z.js";import{f as K}from"./c-xC05gO.js";import"./DAnMADno.js";import{s as nn,c as rn}from"./BD9kDOxT.js";import{x as ve,Ii as W,hI as pe,s6 as an,hL as st}from"./D-TU-2ME.js";import{C as ln,b as sn,T as on,c as cn,S as dn}from"./-K8wVqNz.js";import{I as Ae}from"./TGii5dZx.js";import"./B4585dIt.js";import"./CrKYeBTQ.js";import"./D-uhCX3w.js";import"./ChTqQfQN.js";import"./CvTcUzFW.js";import{o as un}from"./DIP3ex32.js";import{af as fn,aP as _n,aG as pn,E as vn}from"./BPu-f3m6.js";import{i as bn,p as gn}from"./BU2dz_aB.js";var mn=B('<span class="size-4 rounded-full border border-muted-foreground/60 bg-background" aria-hidden="true"></span>'),hn=B('<span aria-hidden="true"></span>'),xn=B('<p class="text-xs text-subtle"> </p> <p class="text-xs text-subtle"> <a class="text-primary-ink hover:underline">github.com/intent-hq/intentd</a> </p>',1),yn=B('<div class="space-y-1"><label class="text-xs text-subtle" for="connect-name"> </label> <!></div> <div class="flex min-w-0 items-end gap-4" data-connect-appearance=""><fieldset class="min-w-0 flex-1 space-y-1"><legend class="text-xs text-subtle"> </legend> <div class="flex flex-wrap gap-1"></div></fieldset> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-host"> </label> <!> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-port"> </label> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-token"> </label> <!></div> <!> <!> <!>',1),kn=B('<div class="space-y-1"><span class="text-xs text-subtle"> </span> <p class="font-mono text-xs break-all bg-muted/50 rounded p-2"> </p></div>'),Cn=B('<p class="text-xs text-danger" role="alert"> </p>'),An=B('<div class="space-y-4"><p class="text-sm text-subtle" role="status" aria-live="polite"> </p> <!> <!></div>');function ct(q,l){const p=Vt();if(new.target)return Re({component:ct,...q});je(l,!0);const g=()=>Oe(dt,"$workflow$",T),R=()=>Oe(pt,"$hostManagesConnections$",T),w=()=>Oe(_t,"$syncState$",T),[T,F]=Wt(),M=(t,o=rt)=>{{const b=(de,ue=rt)=>{{let Q=_(()=>({...ue(),entry:o(),controlId:o().id}));dn(de,{get entry(){return o()},get context(){return e(Q)}})}};let ne=_(()=>`${o().id}-field`);nn(t,{get id(){return e(ne)},get label(){return o().label},get description(){return o().description},get htmlFor(){return o().id},get disabled(){return e(ce)},get busy(){return e(ce)},compact:!0,class:"grid-cols-[minmax(0,1fr)_auto] items-start py-0 first:pt-0 last:pb-0 [&_[data-field-control]]:w-auto",control:b,$$slots:{control:!0}})}};let D=i(l,"active",7),x=i(l,"step",15,"details"),U=i(l,"busy",15,!1),j=i(l,"canContinue",15,!1),L=i(l,"firstInput",15,null),s=i(l,"prefillHost",7,null),y=i(l,"prefillPort",7,null),I=i(l,"prefillLabel",7,null),P=i(l,"prefillAccent",7,void 0),r=i(l,"defaultAccent",7,ve),k=i(l,"showHelp",7,!0),C=i(l,"onDone",7);const v="5181",S="https://github.com/intent-hq/intentd";function qe(t){t.preventDefault(),un(S)}let A=$(""),ee=$(Gt(ve)),se=$("auto"),E=$(""),G=$(v),J=$(""),te=$(null),be=$(!0),oe=$(!0),ge=$("");const dt=fn(p),ce=_(()=>!!g()&&g().phase!=="settled");_e(()=>{U(e(ce))});const Me=_(()=>{const t=g()?.outcome;return t?.kind==="error"||t?.kind==="syncError"?t.message:t?.kind==="secretUnavailable"?n.modals_connect_secretUnavailable_error():t?.kind==="captureRejected"?t.statusCode===403?n.modals_connect_wsApiDisabled_error():n.modals_connect_tokenRejected_error():null});Jt(()=>W.dispatch(pe(p))),_e(()=>{const t=g()?.outcome;t?.kind==="captured"?(a(ge,t.fingerprint,!0),x("confirm"),W.dispatch(pe(p))):t?.kind==="done"&&nt(()=>{we(),C()()})});const ut=_(()=>cn(P()===void 0?r():P())),ft=typeof window<"u"&&window.electronAPI?.platform==="darwin",_t=_n(),pt=pn(),Se=_(()=>!R()&&(w()?.supported??ft)),vt=_(()=>w()?.enabled??!1),bt=_(()=>({kind:"switch",id:"connect-detect-hosts",label:n.modals_connect_detectHosts_label(),description:n.modals_connect_detectHosts_description(),get:()=>e(be),set:t=>{a(be,t,!0)}})),gt=_(()=>({kind:"switch",id:"connect-save-to-icloud",label:n.modals_connect_saveToICloud_label(),description:n.modals_connect_saveToICloud_description(),get:()=>e(oe),set:t=>{a(oe,t,!0)}})),ie=_(()=>Number(e(G).trim())),We=_(()=>e(A).trim().length>0&&e(E).trim().length>0&&Number.isInteger(e(ie))&&e(ie)>0&&e(ie)<=65535&&e(J).trim().length>0&&!e(ce));_e(()=>{j(e(We))});function we(){x("details"),a(A,""),a(ee,r(),!0),a(se,"auto"),a(E,""),a(G,v),a(J,""),a(te,null),a(be,!0),a(oe,!0),a(ge,""),W.dispatch(pe(p))}function mt(t){const o=t.clipboardData?.getData("text")??"";if(!bn(o))return;const b=gn(o);b&&(t.preventDefault(),b.hosts.length>0&&a(E,b.hosts[0],!0),b.port!==null&&a(G,String(b.port),!0),b.token&&a(J,b.token,!0),a(te,b.tcAddress,!0))}function ht(){a(te,vn(e(E))?e(E).trim():null,!0)}function xt(){e(We)&&W.dispatch(st(p,{kind:"capture",params:{host:e(E).trim(),port:e(ie),token:e(J).trim()}}))}function yt(){if(e(Se)&&!e(vt)&&e(oe)){W.dispatch(pe(p)),x("syncConfirm");return}Ie(e(Se)&&!e(oe))}function Ie(t,o={}){const b=e(E).trim();W.dispatch(st(p,{kind:"connect",enableSync:o.enableSyncAfterAdd===!0,params:{label:e(A).trim(),accent:e(ee),deviceIcon:e(se),host:b,port:e(ie),fingerprint:e(ge),token:e(J).trim(),...e(te)?{tcAddress:e(te)}:{},detectHosts:e(be),...t?{syncExcluded:!0}:{}}}))}function kt(){Ie(!1,{enableSyncAfterAdd:!0})}function Ct(){Ie(!0)}function At(){x("details"),W.dispatch(pe(p))}const me="w-full px-3 py-2 bg-background border border-border rounded text-foreground text-sm focus:outline-none focus:border-primary-ink";function St(t){return t===null?n.settings_devices_accentNone_label():{blue:n.settings_devices_accentBlue_label(),indigo:n.settings_devices_accentIndigo_label(),violet:n.settings_devices_accentViolet_label(),rose:n.settings_devices_accentRose_label(),orange:n.settings_devices_accentOrange_label(),emerald:n.settings_devices_accentEmerald_label(),teal:n.settings_devices_accentTeal_label()}[t]}_e(()=>{if(D()&&x()==="details"&&L()){const t=L();requestAnimationFrame(()=>t.focus())}});let Pe=!1;_e(()=>{const t=D()&&!Pe,o=!D()&&Pe;Pe=D(),o&&nt(we),t&&(I()&&e(A)===""&&a(A,I()),a(ee,P()===void 0?r():P(),!0),s()&&e(E)===""&&a(E,s()),y()!=null&&e(G)===v&&a(G,String(y()),!0),W.dispatch(an()))});var wt={reset:we,capture:xt,confirm:yt,enableSyncAndAdd:kt,declineSync:Ct,back:At,get active(){return D()},set active(t){D(t),d()},get step(){return x()},set step(t="details"){x(t),d()},get busy(){return U()},set busy(t=!1){U(t),d()},get canContinue(){return j()},set canContinue(t=!1){j(t),d()},get firstInput(){return L()},set firstInput(t=null){L(t),d()},get prefillHost(){return s()},set prefillHost(t=null){s(t),d()},get prefillPort(){return y()},set prefillPort(t=null){y(t),d()},get prefillLabel(){return I()},set prefillLabel(t=null){I(t),d()},get prefillAccent(){return P()},set prefillAccent(t=void 0){P(t),d()},get defaultAccent(){return r()},set defaultAccent(t=ve){r(t),d()},get showHelp(){return k()},set showHelp(t=!0){k(t),d()},get onDone(){return C()},set onDone(t){C(t),d()},$set:Fe,$on:(t,o)=>Ue(l,t,o)},he=An(),Ke=z(he),It=N(Ke,!0),Ve=c(Ke,2);{var Pt=t=>{var o=yn(),b=V(o),ne=z(b),de=N(ne,!0),ue=c(ne,2);{let u=_(()=>n.modals_connect_name_placeholder());Ae(ue,{id:"connect-name",type:"text",get placeholder(){return e(u)},class:me,autocomplete:"off",get ref(){return L()},set ref(f){L(f)},get value(){return e(A)},set value(f){a(A,f,!0)}})}O(b);var Q=c(b,2),$e=z(Q),Ge=z($e),Tt=N(Ge,!0),Je=c(Ge,2);Yt(Je,21,()=>e(ut),tn,(u,f)=>{{let re=_(()=>lt("flex size-8 cursor-pointer items-center justify-center rounded-full border bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e(f)===e(ee)?"border-foreground shadow-[0_0_0_2px_var(--color-background),0_0_0_4px_var(--color-foreground)]":"border-border hover:border-input")),fe=_(()=>n.modals_connect_accentOption_ariaLabel({color:St(e(f))})),ae=_(()=>e(f)===e(ee));K(u,{type:"button",variant:"plain",get class(){return e(re)},get"aria-label"(){return e(fe)},get"aria-pressed"(){return e(ae)},onclick:()=>a(ee,e(f),!0),children:(xe,ye)=>{var ke=Be(),Te=V(ke);{var Ee=le=>{var Ce=mn();m(le,Ce)},Ne=le=>{var Ce=hn();H(Mt=>en(Ce,1,Mt),[()=>Zt(lt("size-4 rounded-full",ln[e(f)]))]),m(le,Ce)};Z(Te,le=>{e(f)===null?le(Ee):le(Ne,-1)})}m(xe,ke)},$$slots:{default:!0}})}}),O(Je),O($e);var Et=c($e,2);{let u=_(()=>({deviceIcon:e(se)}));sn(Et,{get record(){return e(u)},portal:!0,contentClass:"z-[calc(var(--layer-modal)+1)]",get value(){return e(se)},set value(f){a(se,f,!0)}})}O(Q);var De=c(Q,2),Qe=z(De),Nt=N(Qe,!0),Xe=c(Qe,2);{let u=_(()=>n.modals_connect_host_placeholder());Ae(Xe,{id:"connect-host",type:"text",get placeholder(){return e(u)},class:me,autocorrect:"off",autocapitalize:"off",spellcheck:"false",onpaste:mt,oninput:ht,get value(){return e(E)},set value(f){a(E,f,!0)}})}var Ot=c(Xe,2);{let u=_(()=>e(te)!==null);on(Ot,{get relevant(){return e(u)}})}O(De);var He=c(De,2),Ye=z(He),Rt=N(Ye,!0),Ft=c(Ye,2);{let u=_(()=>n.modals_connect_port_placeholder());Ae(Ft,{id:"connect-port",type:"text",inputmode:"numeric",get placeholder(){return e(u)},class:me,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(G)},set value(f){a(G,f,!0)}})}O(He);var Le=c(He,2),Ze=z(Le),Ut=N(Ze,!0),jt=c(Ze,2);{let u=_(()=>n.modals_connect_token_placeholder());Ae(jt,{id:"connect-token",type:"password",get placeholder(){return e(u)},class:me,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(J)},set value(f){a(J,f,!0)}})}O(Le);var et=c(Le,2);M(et,()=>e(bt));var tt=c(et,2);{var zt=u=>{M(u,()=>e(gt))};Z(tt,u=>{e(Se)&&u(zt)})}var Bt=c(tt,2);{var qt=u=>{var f=xn(),re=V(f),fe=N(re,!0),ae=c(re,2),xe=z(ae),ye=c(xe);at(ye,"href",S);var ke=c(ye);O(ae),H((Te,Ee,Ne)=>{h(fe,Te),h(xe,`${Ee??""} `),h(ke,` ${Ne??""}`)},[()=>n.modals_connect_whereToFind_help(),()=>n.modals_connect_headless_before(),()=>n.modals_connect_headless_after()]),Qt("click",ye,qe),m(u,f)};Z(Bt,u=>{k()&&u(qt)})}H((u,f,re,fe,ae)=>{h(de,u),h(Tt,f),h(Nt,re),h(Rt,fe),h(Ut,ae)},[()=>n.modals_connect_name_label(),()=>n.settings_devices_accent_label(),()=>n.modals_connect_host_label(),()=>n.modals_connect_port_label(),()=>n.modals_connect_token_label()]),m(t,o)},$t=t=>{var o=kn(),b=z(o),ne=N(b,!0),de=c(b,2),ue=N(de,!0);O(o),H(Q=>{h(ne,Q),h(ue,e(ge))},[()=>n.modals_connect_fingerprint_label()]),m(t,o)};Z(Ve,t=>{x()==="details"?t(Pt):x()==="confirm"&&t($t,1)})}var Dt=c(Ve,2);{var Ht=t=>{var o=Cn(),b=N(o,!0);H(()=>h(b,e(Me))),m(t,o)};Z(Dt,t=>{e(Me)&&t(Ht)})}O(he),H(t=>{at(he,"aria-busy",e(ce)),h(It,t)},[()=>x()==="details"?n.modals_connect_details_description():x()==="confirm"?n.modals_connect_confirmStep_description():n.modals_connect_enableSync_description()]),m(q,he);var Lt=ze(wt);return F(),Lt}Kt(["click"]);var ot=B("<!> <!>",1),Sn=B("<!> <!> <!>",1);function it(q,l){if(new.target)return Re({component:it,...q});je(l,!0);let p=i(l,"step",7),g=i(l,"busy",7),R=i(l,"canContinue",7),w=i(l,"form",7),T=i(l,"detailsSecondaryLabel",23,()=>n.modals_connect_cancel_label()),F=i(l,"onDetailsSecondary",7);var M={get step(){return p()},set step(s){p(s),d()},get busy(){return g()},set busy(s){g(s),d()},get canContinue(){return R()},set canContinue(s){R(s),d()},get form(){return w()},set form(s){w(s),d()},get detailsSecondaryLabel(){return T()},set detailsSecondaryLabel(s=n.modals_connect_cancel_label()){T(s),d()},get onDetailsSecondary(){return F()},set onDetailsSecondary(s){F(s),d()},$set:Fe,$on:(s,y)=>Ue(l,s,y)},D=Be(),x=V(D);{var U=s=>{var y=ot(),I=V(y);K(I,{variant:"ghost",get disabled(){return g()},get onclick(){return F()},children:(r,k)=>{X();var C=Y();H(()=>h(C,T())),m(r,C)},$$slots:{default:!0}});var P=c(I,2);{let r=_(()=>!R());K(P,{variant:"secondary",onclick:()=>w()?.capture(),get disabled(){return e(r)},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>g()?n.modals_connect_connecting_label():n.modals_connect_continue_label()]),m(k,v)},$$slots:{default:!0}})}m(s,y)},j=s=>{var y=ot(),I=V(y);K(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return g()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>n.modals_connect_back_label()]),m(r,C)},$$slots:{default:!0}});var P=c(I,2);K(P,{variant:"secondary",onclick:()=>w()?.confirm(),get disabled(){return g()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>g()?n.modals_connect_connecting_label():n.modals_connect_confirm_label()]),m(r,C)},$$slots:{default:!0}}),m(s,y)},L=s=>{var y=Sn(),I=V(y);K(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return g()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_back_label()]),m(k,v)},$$slots:{default:!0}});var P=c(I,2);K(P,{variant:"ghost",onclick:()=>w()?.declineSync(),get disabled(){return g()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_enableSync_decline_label()]),m(k,v)},$$slots:{default:!0}});var r=c(P,2);K(r,{variant:"secondary",onclick:()=>w()?.enableSyncAndAdd(),get disabled(){return g()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>g()?n.modals_connect_connecting_label():n.modals_connect_enableSync_confirm_label()]),m(k,v)},$$slots:{default:!0}}),m(s,y)};Z(x,s=>{p()==="details"?s(U):p()==="confirm"?s(j,1):s(L,-1)})}return m(q,D),ze(M)}function wn(q,l){if(new.target)return Re({component:wn,...q});je(l,!0);let p=i(l,"open",15,!1),g=i(l,"prefillHost",7,null),R=i(l,"prefillPort",7,null),w=i(l,"prefillLabel",7,null),T=i(l,"prefillAccent",7,void 0),F=i(l,"defaultAccent",7,ve),M=$(void 0),D=$("details"),x=$(!1),U=$(!1),j=$(null);function L(){p(!1)}var s={get open(){return p()},set open(r=!1){p(r),d()},get prefillHost(){return g()},set prefillHost(r=null){g(r),d()},get prefillPort(){return R()},set prefillPort(r=null){R(r),d()},get prefillLabel(){return w()},set prefillLabel(r=null){w(r),d()},get prefillAccent(){return T()},set prefillAccent(r=void 0){T(r),d()},get defaultAccent(){return F()},set defaultAccent(r=ve){F(r),d()},$set:Fe,$on:(r,k)=>Ue(l,r,k)},y=Be(),I=V(y);{var P=r=>{{const k=S=>{it(S,{get step(){return e(D)},get busy(){return e(x)},get canContinue(){return e(U)},get form(){return e(M)},onDetailsSecondary:L})};let C=_(()=>n.modals_connect_title()),v=_(()=>n.modals_connect_close_ariaLabel());rn(r,{get title(){return e(C)},get closeLabel(){return e(v)},get busy(){return e(x)},get initialFocus(){return e(j)},onClose:L,dismissOnInteractOutside:!1,get open(){return p()},set open(S){p(S)},footer:k,children:(S,qe)=>{Xt(ct(S,{get active(){return p()},get prefillHost(){return g()},get prefillPort(){return R()},get prefillLabel(){return w()},get prefillAccent(){return T()},get defaultAccent(){return F()},onDone:L,get step(){return e(D)},set step(A){a(D,A,!0)},get busy(){return e(x)},set busy(A){a(x,A,!0)},get canContinue(){return e(U)},set canContinue(A){a(U,A,!0)},get firstInput(){return e(j)},set firstInput(A){a(j,A,!0)}}),A=>a(M,A,!0),()=>e(M))},$$slots:{footer:!0,default:!0}})}};Z(I,r=>{p()&&r(P)})}return m(q,y),ze(s)}export{it as C,ct as a,wn as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as c}from"./WFvSJ9zU.js";import{a4 as t}from"./
|
|
1
|
+
import{v as c}from"./WFvSJ9zU.js";import{a4 as t}from"./D-TU-2ME.js";function a(n){return n.connections?.windowBackendId??t}function i(n,e){return e===t?n:`backend:${e}:${n}`}function*s(){return yield*c(a)}export{a as g,i as n,s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as E,o as l,b,s as x,d as dt,l as S,c as ct,_ as M,r as ut}from"./CIyUrgF0.js";import{Z as _}from"./
|
|
1
|
+
import{n as E,o as l,b,s as x,d as dt,l as S,c as ct,_ as M,r as ut}from"./CIyUrgF0.js";import{Z as _}from"./ZUCHJs0z.js";import{c as lt,a as mt}from"./DxwfiAWm.js";const L=E().finite().nonnegative(),Q=l({completedAtMs:L,samples:b(l({atMs:L,pointCount:E().int().min(0).max(2048),end:l({x:E().finite(),y:E().finite()}).strict()}).strict()).min(1).max(64)}).strict().refine(t=>t.samples.every((s,n)=>s.atMs<=t.completedAtMs&&(!n||s.atMs>=t.samples[n-1].atMs)),"Invalid gesture clock");function Vt(t,s,n){if(!s||n>=s.completedAtMs)return t;const i=[...s.samples].reverse().find(e=>e.atMs<=n);if(!i)return null;if(t.kind==="path")return i.pointCount?{kind:"path",points:t.points.slice(0,i.pointCount)}:null;if(t.kind==="arrow")return{kind:"arrow",from:t.from,to:i.end};if(t.kind==="rect"){const e=s.samples[0].end,a=Math.abs(i.end.x-e.x),r=Math.abs(i.end.y-e.y);return a>0&&r>0?{kind:"rect",x:Math.min(e.x,i.end.x),y:Math.min(e.y,i.end.y),w:a,h:r}:null}return t}const f=E().finite(),A=f.nonnegative(),R=E().int().nonnegative(),h=x().min(1).max(512),V=l({startMs:A,endMs:A}).strict().refine(t=>t.endMs>=t.startMs,"Reversed range"),z=l({x:f,y:f}).strict(),$=l({x:f,y:f,w:f.positive(),h:f.positive()}).strict(),ft=$.extend({id:h}),Wt=16,W=2,q=l({id:h,radius:f.positive().max(4096),points:b(z).min(1).max(4096)}).strict();function Zt(t){const s=t.points.map(a=>a.x),n=t.points.map(a=>a.y),i=Math.min(...s)-t.radius,e=Math.min(...n)-t.radius;return{x:i,y:e,w:Math.max(...s)+t.radius-i,h:Math.max(...n)+t.radius-e}}function Qt(t,s){return q.parse({...t,radius:t.radius*Math.max(Math.abs(s.scaleX),Math.abs(s.scaleY)),points:t.points.map(n=>({x:n.x*s.scaleX+s.offsetX,y:n.y*s.scaleY+s.offsetY}))})}const tt=dt("kind",[$.extend({kind:S("rect")}),l({kind:S("point"),x:f,y:f}).strict(),l({kind:S("path"),points:b(z).min(1).max(4096)}).strict(),l({kind:S("arrow"),from:z,to:z}).strict(),l({kind:S("text"),x:f,y:f,text:x().max(1e4),fontSize:f.positive(),style:S("sticky").optional(),width:f.positive().max(4096).optional(),padding:f.nonnegative().max(1024).optional()}).strict()]);function st(t){const s=t.fontSize*1.4,n=t.style==="sticky"?t.padding??8:0;if(t.style!=="sticky"){const r=t.text.split(`
|
|
2
2
|
`);return{lines:r,width:Math.max(1,...r.map(d=>d.length))*t.fontSize*.65,height:r.length*s,padding:n,lineHeight:s}}const i=Math.max(n*2+1,t.width??240),e=Math.max(1,Math.floor((i-n*2)/(t.fontSize*.65))),a=[];for(const r of t.text.split(`
|
|
3
3
|
`)){let d=r;for(;d.length>e;){const c=d.lastIndexOf(" ",e),u=c>0?c:e;a.push(d.slice(0,u).trimEnd()),d=d.slice(u).trimStart()}a.push(d)}return{lines:a,width:i,height:a.length*s+n*2,padding:n,lineHeight:s}}function qt(t,s){const n=st(t),i=tt.parse({...t,x:t.x*s.scaleX+s.offsetX,y:t.y*s.scaleY+s.offsetY,fontSize:t.fontSize*Math.abs(s.scaleY),...t.style==="sticky"?{width:n.width*Math.abs(s.scaleX),padding:n.padding*Math.min(Math.abs(s.scaleX),Math.abs(s.scaleY))}:{}});if(i.kind!=="text")throw new Error("invalid-text-transform");return i}const U=l({gestureProgress:Q.optional(),id:h,atMs:A,batchId:h,source:M(["recording","editor"]),kind:M(["click","box","draw","arrow","element","text"]),included:ct(),geometry:tt,label:x().max(2048),note:x().max(2e4),context:l({selector:x().max(8192).nullable(),text:x().max(2e4).nullable(),url:x().max(8192).nullable()}).strict()}).strict(),pt=l({id:h,atMs:A,clearAtMs:A.nullable()}).strict().refine(t=>t.clearAtMs===null||t.clearAtMs>=t.atMs,"Reversed batch"),ht=l({mode:M(["fullscreen","window","region"]),frame:l({displayId:E().int(),rect:$,coordinateSpace:S("screen-points-top-left")}).strict().nullable()}).strict(),j=l({id:h,revision:R,kind:M(["recording","screenshot"]),capture:ht.optional(),attachmentId:h,path:x().refine(t=>t.startsWith(".intent/attachments/")&&!/[\\\x00]/.test(t)&&!t.split("/").some(s=>!s||s==="."||s===".."),"Invalid attachment path"),durationMs:A,width:f.positive(),height:f.positive(),audio:M(["available","none","unknown"]),batches:b(pt).max(1e4),visuals:M(["clean","baked-marks"]),capturedMarks:b(U).max(1e4).optional(),bakedMarks:b(U).max(1e4).optional()}).strict().superRefine((t,s)=>{for(const n of t.capturedMarks??[]){const i=n.gestureProgress;i&&(t.kind!=="recording"||i.completedAtMs>t.durationMs||i.samples.some(e=>e.atMs<n.atMs||n.geometry.kind==="path"&&e.pointCount>n.geometry.points.length))&&s.addIssue({code:_.custom,path:["capturedMarks"],message:"Gesture timing does not match the recording"})}t.kind==="recording"&&t.durationMs<=0&&s.addIssue({code:_.custom,path:["durationMs"],message:"Recording duration is missing"})}),Mt=l({status:M(["pending","ready","no-speech","unavailable","failed"]),revision:R,words:b(l({id:h,text:x().max(2e4),startMs:A.nullable(),endMs:A.nullable(),alignment:M(["word","segment","untimed"])}).strict().superRefine((t,s)=>{(t.startMs===null!=(t.endMs===null)||t.startMs!==null&&t.endMs!==null&&t.endMs<t.startMs)&&s.addIssue({code:_.custom,message:"Incomplete or reversed recognition timing"}),t.alignment!=="untimed"&&(t.startMs===null||t.endMs===null)&&s.addIssue({code:_.custom,message:"Timed recognition units require genuine timestamps"}),t.alignment==="untimed"&&t.startMs!==null&&s.addIssue({code:_.custom,message:"Untimed text cannot claim timestamps"})})).max(2e5),error:x().max(2048).optional()}).strict();l({video:M(["full","highlights"]),voice:M(["audio","transcript","off"])}).strict();const G=l({version:S(1),kind:M(["recording","screenshot"]),sourceId:h,sourceRevision:R,revision:R,trim:V,cuts:b(V).max(1e4),marks:b(U).max(1e4),blurRegions:b(ft).max(1e3),blurStrokes:b(q).max(1e3).optional(),crop:$.nullable(),video:M(["full","highlights"]),voice:M(["audio","transcript","off"]),wordEdits:ut(x(),x().max(2e4))}).strict().superRefine((t,s)=>{const n=new Set;for(const i of t.marks)n.has(i.id)&&s.addIssue({code:_.custom,path:["marks"],message:"Duplicate mark identity"}),n.add(i.id)}),kt=l({openId:h,outputVersion:S(W).optional(),sourceId:h,sourceRevision:R,pair:l({workspaceId:h,agentId:h}).strict(),expectedEditRevision:R,edit:G,replacement:l({candidateToken:h,source:j}).strict().optional()}).strict().refine(t=>!(t.edit.blurStrokes?.length||t.edit.marks.some(s=>s.geometry.kind==="text"&&s.geometry.style==="sticky"))||t.outputVersion===W,"This edit requires an admitted output version");function X(t){const s=t.filter(i=>Number.isFinite(i.startMs)&&Number.isFinite(i.endMs)&&i.endMs>i.startMs).map(i=>({...i})).sort((i,e)=>i.startMs-e.startMs),n=[];for(const i of s){const e=n.at(-1);e&&i.startMs<=e.endMs?e.endMs=Math.max(e.endMs,i.endMs):n.push(i)}return n}function K(t,s){let n=X(t);for(const i of X(s))n=n.flatMap(e=>i.endMs<=e.startMs||i.startMs>=e.endMs?[e]:[...i.startMs>e.startMs?[{startMs:e.startMs,endMs:i.startMs}]:[],...i.endMs<e.endMs?[{startMs:i.endMs,endMs:e.endMs}]:[]]);return n}function Y(t,s,n){const i=t===n?Math.max(0,t-.001):t;return s.some(e=>i>=e.startMs&&i<e.endMs)}const N=6;function xt(t){if(t.kind==="point")return{x:t.x-N,y:t.y-N,w:N*2,h:N*2};if(t.kind==="rect")return{x:t.x,y:t.y,w:t.w,h:t.h};if(t.kind==="text"){const e=st(t);return{x:t.x,y:t.y,w:e.width,h:e.height}}const s=t.kind==="path"?t.points:[t.from,t.to],n=Math.min(...s.map(e=>e.x)),i=Math.min(...s.map(e=>e.y));return{x:n,y:i,w:Math.max(1,Math.max(...s.map(e=>e.x))-n),h:Math.max(1,Math.max(...s.map(e=>e.y))-i)}}function gt(t,s){if(!s)return!1;const n=xt(t.geometry);return n.x+n.w<s.x||n.x>s.x+s.w||n.y+n.h<s.y||n.y>s.y+s.h}function It(t){const s=K([t.trim],t.cuts);return t.marks.some(n=>n.included&&Y(n.atMs,s,t.trim.endMs))}function ts(t){return t.visuals==="clean"}function ss(t,s){const n=t.kind==="recording",i=s?.status==="ready";return{audio:{enabled:n&&t.audio==="available",reason:t.audio==="available"?null:"audio-unavailable"},transcript:{enabled:n&&i,reason:i?null:s?.status==="pending"?"transcript-pending":"transcript-unavailable"},off:{enabled:!0,reason:null}}}function ns(t,s,n,i=null){const e={version:1,kind:t.kind,sourceId:t.id,sourceRevision:t.revision,revision:0,trim:{startMs:0,endMs:t.durationMs},cuts:[],marks:structuredClone([...s]),blurRegions:[],blurStrokes:[],crop:null,video:i?.video??"highlights",voice:i?.voice??"transcript",wordEdits:{}};return t.kind==="screenshot"?(e.video="full",e.voice="off",e):(It(e)||(e.video="full"),(t.audio==="none"||n?.status==="no-speech"||e.voice==="audio"&&t.audio!=="available")&&(e.voice="off"),e)}function yt(t,s,n,i,e){const a=[],r=t.cuts.length>0||t.trim.startMs>0||t.trim.endMs<s.durationMs;if(!r&&n.words.some(o=>{const m=t.wordEdits[o.id]??o.text;return/^[\s\p{P}]*$/u.test(m)&&/^[\s\p{P}]*$/u.test(o.text)?!1:o.startMs===null||o.endMs===null||o.startMs<s.durationMs&&o.endMs>s.durationMs})){const o=[];let m=!1;for(const y of n.words){const D=t.wordEdits[y.id]??y.text;if(!D.trim()){y.text.trim()&&(m=!1);continue}/^[\s\p{P}]*$/u.test(D)?m&&(o[o.length-1]+=D.trim()):(o.push(D.trim()),m=!0)}const v=[...i].sort((y,D)=>y.mark.atMs-D.mark.atMs||y.n-D.n).map(({n:y,mark:D})=>`[mark ${y}: ${D.label||D.kind}]`).join(`
|
|
4
4
|
`);return{text:[o.join(" ").replace(/[^\S\n]+/g," ").trim(),v].filter(Boolean).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as xt}from"./
|
|
1
|
+
import{p as xt}from"./DFxm7j9Z.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./BVZOiDhO.js";import{p as Bt}from"./kG7yHiIe.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
|
|
2
2
|
.cynefinDomain {
|
|
3
3
|
stroke: none;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./
|
|
1
|
+
import{g as ae}from"./Du45nhw1.js";import{s as ce}from"./DSkFz5VN.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./BVZOiDhO.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(z,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as F,bq as L,bo as H,a_ as B,by as G,bs as dt,b as J,bu as nt}from"./
|
|
1
|
+
import{t as F,bq as L,bo as H,a_ as B,by as G,bs as dt,b as J,bu as nt}from"./NqHwC243.js";import{bs as K,cd as lt,ca as z,c5 as ct,a5 as T,be as D,b$ as M,b_ as h,bO as _,W as l,bH as U,aD as e,bS as C,bA as q,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./DYhIMPy1.js";import{C as ut}from"./ho_wzPgZ.js";import{f as V}from"./c-xC05gO.js";import{k as bt}from"./BD5-GbKS.js";import{Ii as W,dp as vt,dm as kt,dq as _t}from"./D-TU-2ME.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),ft=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),mt=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return F({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=L(c,"workspaceId",7),I=L(c,"hookId",7);const d=lt(s());z(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));z(()=>{if(!s())return;const t=s();return ct(()=>{W.dispatch(vt(t)),W.dispatch(kt(t))}),()=>W.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:G,$on:(t,r)=>J(c,t,r)},A=It(),O=T(A),j=T(O);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(j,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=C(j,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}q(O);var Z=C(O,2);{var tt=t=>{var r=ft(),p=T(r);{var y=a=>{var f=gt(),o=S(f,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,f)},i=a=>{{let f=u(()=>e(v)?.code??"");ut(a,{get code(){return e(f)},language:"javascript",noMargin:!0})}};B(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}q(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=mt(),m=pt(n),P=S(m,!0),at=C(m,2),ot=S(at,!0);h(st=>{_(P,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};B(p,o=>{e(v)?.lastError&&o(y)})}var i=C(p,2);{var a=o=>{var n=ht(),m=S(n,!0);h(()=>_(m,e(v).lastLogs)),l(o,n)},f=o=>{var n=xt(),m=S(n,!0);h(P=>_(m,P),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};B(i,o=>{e(v)?.lastLogs?o(a):o(f,-1)})}q(r),l(t,r)};B(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}q(A),l(x,A);var rt=N(X);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return F({component:yt,...x});K(c,!0);let g=L(c,"tab",7),w=L(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:G,$on:(d,$)=>J(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return q(s),l(x,s),N(E)}export{yt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,a_ as B,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./8obSPONn.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{n as Tr,u as te,v as ze,g as _n,s as ps,w as _a,j as kt,l as ar,p as Yn,I as Fl,i as ya,r as zl,o as eo,X as _i,q as Wl,S as Hl,C as Ul}from"./Crq31h4w.js";import{I as Kt,F as qa,c as ea,j as jl,s as yi,p as to,y as Vl,u as Kl,t as $r,g as oa,B as ws,E as os,S as Gl}from"./DpFreuz_.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,bj as Ql,am as ro,bt as Zl,bx as xs,bL as Jl}from"./CYnvHqAo.js";import"./DrQfmm9r.js";import"./BICcGRy9.js";import"./BiuqRP28.js";import{s as Ln}from"./CXgjAj37.js";import{F as jt,a0 as zs,bc as Tn,cE as no,aq as bi,aV as wi,aG as Xl,c3 as Yl,a2 as is,aJ as ed,cH as td,cG as rd,$ as vs,as as ao,I as yo,af as nd,bp as ad,aO as sd,aT as od,bE as id,ak as ld,cw as dd,ay as bo,aL as wo,bW as ks,aE as Ua,cQ as cd,c5 as ud,bj as fd,b as gd,cj as md,ac as pd,b6 as Is,cl as xa,cz as vd,a as hd}from"./CAmF3PXk.js";import{c as xi,A as _d,x as yd}from"./CBoIo15V.js";import{b as Ss,V as xo}from"./D2jMyaf8.js";import{a as ki,b1 as Pr,A as Ga,ak as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,at as Id,$ as Sd}from"./Bg6EMrHe.js";import{bW as Ti,j as Qa,a5 as Ws,ak as ls,F as Td,at as Za,aM as Cd,aP as ko}from"./CzNFeyXq.js";import{t as ia,o as Ad}from"./CTld-PL6.js";import{c2 as Ja,aC as Da,cO as Ci,cQ as Vn,bT as hs,j as Md,cH as Ai,cN as _s,cM as Mi,cK as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dM as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cR as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./DkXjvKmg.js";import{Ii as yt,oy as Zd,t3 as Xa,no as To,uR as Li,uT as $i,rj as Jd,xN as ds,u8 as Oi,nj as qi,be as Ya,xO as Xd,p_ as Yd,sA as ec,uK as Di,ni as tc,mp as rc,g as nc,ye as ac,yb as sc,yd as oc}from"./DomfbKVx.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./_2fOudXW.js";import{i as Dc,e as Bc}from"./ClUsr6sz.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./hRXpLgdr.js";import{C as Eo}from"./khmuPkH1.js";import"./D8--oZc6.js";import{P as Fc}from"./B1Vhnxzz.js";import"./DCR2yORR.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./D3VV-t_O.js";import{D as No,M as Wc}from"./kwSDV9fJ.js";import{b as Hc,s as na,c as cs}from"./Bgs5Oygw.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./vQwN4WXd.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./CijnEJw0.js";import{P as Jc}from"./DwIsNA5R.js";import{p as $s,o as Os,y as Oo,h as Xc}from"./IyX2wNBZ.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./BLYi9_ai.js";import"./CFP6h_yj.js";import{R as Do,x as Na,o as Wi}from"./kOvgsK93.js";import{B as nu}from"./CRSENXWv.js";import{o as Hi,r as au,e as su}from"./BA1PODMh.js";import{o as Ui}from"./DZIg-0qV.js";import{g as so}from"./CLLGUAol.js";import{a as ou,M as iu}from"./C_nJgshO.js";import{c as Sa}from"./Mne-RwlA.js";import{A as lu}from"./CrAIOpwj.js";import{f as du,d as cu}from"./BFtvBSew.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./5r_d4X6e.js";import{a as vu}from"./CC7to1B5.js";import{G as hu}from"./BcNmLUvA.js";import{S as _u}from"./BWBt_0S9.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./Cn1b85JG.js";import"./DYfj3lcw.js";import{g as xu}from"./CN_bicqw.js";import{a as ku}from"./CPgenjJJ.js";import{b as Iu}from"./Bq6o_ftd.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./BFeR9qbJ.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{aV as Un,z as Mu}from"./BhAlvK4b.js";import{y as Pu}from"./DC8fssXE.js";import{c as Ru}from"./Bl8pGyWE.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const v=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof v?.matchedLine=="string"?{matchedLine:v.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const j_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),v=g(t,"onRemove",7),h=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),v()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Ql()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return v()},set onRemove(O){v(O),m()},get onRetry(){return h()},set onRetry(O){h(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&h()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&h()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function v(){i()?.({name:n(),description:a(),content:o()})}var h={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:v,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(h)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(h=>h.startsWith("❌")||h.startsWith("Error:")),v=this.currentToolResultContent.map(h=>h.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,a_ as B,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./NqHwC243.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{n as Tr,u as te,v as ze,g as _n,s as ps,w as _a,j as kt,l as ar,p as Yn,I as Fl,i as ya,r as zl,o as eo,X as _i,q as Wl,S as Hl,C as Ul}from"./C2dNFWEv.js";import{I as Kt,F as qa,c as ea,j as jl,s as yi,p as to,y as Vl,u as Kl,t as $r,g as oa,B as ws,E as os,S as Gl}from"./72TQselO.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,bj as Ql,am as ro,bt as Zl,bx as xs,bL as Jl}from"./c-xC05gO.js";import"./B0hlE4IJ.js";import"./B9PO2UZy.js";import"./DAnMADno.js";import{s as Ln}from"./ZUCHJs0z.js";import{F as jt,a0 as zs,bc as Tn,cE as no,aq as bi,aV as wi,aG as Xl,c3 as Yl,a2 as is,aJ as ed,cH as td,cG as rd,$ as vs,as as ao,I as yo,af as nd,bp as ad,aO as sd,aT as od,bE as id,ak as ld,cw as dd,ay as bo,aL as wo,bW as ks,aE as Ua,cQ as cd,c5 as ud,bj as fd,b as gd,cj as md,ac as pd,b6 as Is,cl as xa,cz as vd,a as hd}from"./B66L8YEe.js";import{c as xi,A as _d,x as yd}from"./BD9kDOxT.js";import{b as Ss,V as xo}from"./Bd4BZaTp.js";import{a as ki,b1 as Pr,A as Ga,ak as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,at as Id,$ as Sd}from"./Dw6H-2WQ.js";import{bW as Ti,j as Qa,a5 as Ws,ak as ls,F as Td,at as Za,aM as Cd,aP as ko}from"./RWrc-xf9.js";import{t as ia,o as Ad}from"./D-uhCX3w.js";import{c2 as Ja,aC as Da,cO as Ci,cQ as Vn,bT as hs,j as Md,cH as Ai,cN as _s,cM as Mi,cK as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dM as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cR as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./Dfltx80e.js";import{Ii as yt,oy as Zd,t3 as Xa,no as To,uR as Li,uT as $i,rj as Jd,xN as ds,u8 as Oi,nj as qi,be as Ya,xO as Xd,p_ as Yd,sA as ec,uK as Di,ni as tc,mp as rc,g as nc,ye as ac,yb as sc,yd as oc}from"./D-TU-2ME.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./CvurNR1W.js";import{i as Dc,e as Bc}from"./B-3aWyWM.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./Q7GICaZA.js";import{C as Eo}from"./ho_wzPgZ.js";import"./Cf7_9vnO.js";import{P as Fc}from"./D2gfYd_D.js";import"./DstArZ_G.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./4XNONbWq.js";import{D as No,M as Wc}from"./BVZOiDhO.js";import{b as Hc,s as na,c as cs}from"./B6hMBAzw.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./Ebo0jR7g.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./BXdz7Mej.js";import{P as Jc}from"./CrKYeBTQ.js";import{p as $s,o as Os,y as Oo,h as Xc}from"./Bncjw5PN.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./Bl2M7dQb.js";import"./A67C19bI.js";import{R as Do,x as Na,o as Wi}from"./Dm58JeH4.js";import{B as nu}from"./D09nC1GH.js";import{o as Hi,r as au,e as su}from"./BZ_DkSCc.js";import{o as Ui}from"./XJvRRqZY.js";import{g as so}from"./DzrG6LRJ.js";import{a as ou,M as iu}from"./BJWZv5Sk.js";import{c as Sa}from"./D1pAML4P.js";import{A as lu}from"./3QqszLYa.js";import{f as du,d as cu}from"./CDksRI-c.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./qYwSdo-K.js";import{a as vu}from"./CC7to1B5.js";import{G as hu}from"./CO_V-6EQ.js";import{S as _u}from"./1bECqo-j.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./ArzfqCkr.js";import"./CvTcUzFW.js";import{g as xu}from"./TGii5dZx.js";import{a as ku}from"./DhabgDm5.js";import{b as Iu}from"./uO0IO955.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./BurMbBp5.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{aV as Un,z as Mu}from"./BPu-f3m6.js";import{y as Pu}from"./D5iylRNB.js";import{c as Ru}from"./01xZ54YC.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const v=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof v?.matchedLine=="string"?{matchedLine:v.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const j_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),v=g(t,"onRemove",7),h=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),v()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Ql()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return v()},set onRemove(O){v(O),m()},get onRetry(){return h()},set onRetry(O){h(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&h()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&h()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function v(){i()?.({name:n(),description:a(),content:o()})}var h={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:v,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(h)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(h=>h.startsWith("❌")||h.startsWith("Error:")),v=this.currentToolResultContent.map(h=>h.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:v,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),d=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
|
|
3
3
|
`){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|