@intent-hq/web 2.369.0 → 2.370.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/bin/intent-web.mjs +113 -2
- package/package.json +1 -1
- package/web/app/immutable/chunks/{DodshHwq.js → -7AqlW5j.js} +1 -1
- package/web/app/immutable/chunks/{Qnx8Hmfg.js → 1DKpnRTj.js} +1 -1
- package/web/app/immutable/chunks/{Ck5xuk0H.js → 1GGKXNxU.js} +1 -1
- package/web/app/immutable/chunks/{C6vnD-WG.js → 1GrJvO3a.js} +1 -1
- package/web/app/immutable/chunks/{s1m3ujOc.js → 1pIqWRUk.js} +1 -1
- package/web/app/immutable/chunks/{CV10cSI4.js → 1q0xL14K.js} +1 -1
- package/web/app/immutable/chunks/{C6yPb5D8.js → 5lieSvED.js} +1 -1
- package/web/app/immutable/chunks/{oZkhvgMl.js → 9-nUCsGi.js} +1 -1
- package/web/app/immutable/chunks/{V6SVTu37.js → 9sCF_0su.js} +1 -1
- package/web/app/immutable/chunks/{D0Z6csIX.js → A4nvdmL6.js} +1 -1
- package/web/app/immutable/chunks/{9wk-Hes5.js → B-1iBpaq.js} +1 -1
- package/web/app/immutable/chunks/{CDqnAH9U.js → B-_ROixI.js} +2 -2
- package/web/app/immutable/chunks/{iI6LFAGI.js → B-kUJzil.js} +1 -1
- package/web/app/immutable/chunks/{AIQuxhpV.js → B0SoVMRS.js} +1 -1
- package/web/app/immutable/chunks/{ykNMRL6H.js → B1hj1DGj.js} +1 -1
- package/web/app/immutable/chunks/{tVHyNPqL.js → B1lYPzEU.js} +1 -1
- package/web/app/immutable/chunks/{DF0Pm5yp.js → B2AfKG58.js} +2 -2
- package/web/app/immutable/chunks/{DyBkeTEM.js → B3Gso1ut.js} +1 -1
- package/web/app/immutable/chunks/{BJTl-SyI.js → B8_Ff8zl.js} +1 -1
- package/web/app/immutable/chunks/{CMRXUPn9.js → B9BjyTgZ.js} +1 -1
- package/web/app/immutable/chunks/{B3rtR-T9.js → B9mj0qwd.js} +1 -1
- package/web/app/immutable/chunks/{SX1khnGy.js → BAymCgEX.js} +1 -1
- package/web/app/immutable/chunks/{DMl4Z5o_.js → BBWuirRW.js} +1 -1
- package/web/app/immutable/chunks/{Dy_4BU07.js → BCQ1W7zT.js} +3 -3
- package/web/app/immutable/chunks/{C3CJZFT3.js → BDA31WCY.js} +1 -1
- package/web/app/immutable/chunks/{DZTT1V6G.js → BDcauMkX.js} +1 -1
- package/web/app/immutable/chunks/{CQw_RyF_.js → BEV9WkWU.js} +1 -1
- package/web/app/immutable/chunks/{D4q8ggLU.js → BG2RPA7A.js} +2 -2
- package/web/app/immutable/chunks/{CxVedbHg.js → BGT9uvaQ.js} +5 -5
- package/web/app/immutable/chunks/{BUHAwVs7.js → BHaE4286.js} +1 -1
- package/web/app/immutable/chunks/{CGOlqeU_.js → BIv0yV05.js} +1 -1
- package/web/app/immutable/chunks/{CuHlAB4d.js → BR2t5nsF.js} +2 -2
- package/web/app/immutable/chunks/{DUItrdZb.js → BRRvOx4M.js} +1 -1
- package/web/app/immutable/chunks/{B6P0nIFd.js → BSD34ZVo.js} +1 -1
- package/web/app/immutable/chunks/{oOuL5l8A.js → BSfkjlLx.js} +1 -1
- package/web/app/immutable/chunks/{DWLnWMNZ.js → BSsEOl8-.js} +1 -1
- package/web/app/immutable/chunks/{ge7HDe-3.js → BUA7BUyu.js} +1 -1
- package/web/app/immutable/chunks/{CJb9CQqu.js → BVLa_5Le.js} +1 -1
- package/web/app/immutable/chunks/{CpL3Nqus.js → BX9hgO_H.js} +1 -1
- package/web/app/immutable/chunks/{BgJ-6yg0.js → BYMXwcID.js} +1 -1
- package/web/app/immutable/chunks/{DNieQhK8.js → B_IEMfS6.js} +3 -3
- package/web/app/immutable/chunks/{C5rcw_c7.js → Bc7pHsTy.js} +1 -1
- package/web/app/immutable/chunks/{BipEZFvA.js → Bg7YNbVH.js} +1 -1
- package/web/app/immutable/chunks/{nRmTo2Eh.js → BgPtjifd.js} +1 -1
- package/web/app/immutable/chunks/{Cp81xhuN.js → BhZDGIfe.js} +1 -1
- package/web/app/immutable/chunks/{COmDhl6S.js → Bi0vr71w.js} +1 -1
- package/web/app/immutable/chunks/{DfSzfqox.js → BimRiD6s.js} +1 -1
- package/web/app/immutable/chunks/{Ckp5O1pb.js → BinPWBvt.js} +1 -1
- package/web/app/immutable/chunks/{Ch30XVIS.js → BkFHmpuY.js} +1 -1
- package/web/app/immutable/chunks/{6i_wfV3v.js → Blu9C_Vv.js} +1 -1
- package/web/app/immutable/chunks/{CgXGPBF5.js → BmBa9vQp.js} +1 -1
- package/web/app/immutable/chunks/{BTIkMWVv.js → BmjF1SON.js} +1 -1
- package/web/app/immutable/chunks/{ByCxDC-R.js → BnNJN3Ls.js} +1 -1
- package/web/app/immutable/chunks/{BxOfEPjL.js → BnhOIUmr.js} +1 -1
- package/web/app/immutable/chunks/{DzFkUqsC.js → Bp098-aN.js} +1 -1
- package/web/app/immutable/chunks/{BLzqYDED.js → BpEHjU4g.js} +1 -1
- package/web/app/immutable/chunks/Bqd7fdCF.js +1 -0
- package/web/app/immutable/chunks/{BuveYyQe.js → Bqm2Rf6d.js} +1 -1
- package/web/app/immutable/chunks/{BuLzqNKd.js → BqxcrzZH.js} +1 -1
- package/web/app/immutable/chunks/{TaTYmBM5.js → Bu13V5mO.js} +1 -1
- package/web/app/immutable/chunks/{B2CG0f08.js → BulBKnVz.js} +1 -1
- package/web/app/immutable/chunks/{P4OctF9m.js → Bus1Z5ou.js} +1 -1
- package/web/app/immutable/chunks/{CLalkdxk.js → BvKqDQXM.js} +1 -1
- package/web/app/immutable/chunks/{U3137Ii1.js → BvZfa6RH.js} +1 -1
- package/web/app/immutable/chunks/{DWsHBNeU.js → Bvo32SXP.js} +1 -1
- package/web/app/immutable/chunks/{DLEm9Cyg.js → BwtGEQS3.js} +1 -1
- package/web/app/immutable/chunks/{BE2y8JEQ.js → BzFy3u2D.js} +1 -1
- package/web/app/immutable/chunks/{CqesqBNM.js → C0wua3Vt.js} +1 -1
- package/web/app/immutable/chunks/{Cmm2Uwq6.js → C14Hgf8a.js} +1 -1
- package/web/app/immutable/chunks/{zhSFUcJz.js → C1AEP5wW.js} +1 -1
- package/web/app/immutable/chunks/{D1cY0pVs.js → C2Vj5Vs6.js} +1 -1
- package/web/app/immutable/chunks/{ClSUFCtq.js → C2YH0P-B.js} +1 -1
- package/web/app/immutable/chunks/{DQUvqa9o.js → CA2ANaNj.js} +1 -1
- package/web/app/immutable/chunks/{C3SM2b7L.js → CADQyVDS.js} +2 -2
- package/web/app/immutable/chunks/{DMjF7NYG.js → CBRZjI7P.js} +2 -2
- package/web/app/immutable/chunks/{BDbtK9be.js → CBafvv8h.js} +1 -1
- package/web/app/immutable/chunks/{BnRltR11.js → CCSbqNiH.js} +1 -1
- package/web/app/immutable/chunks/{DzMdBKPh.js → CCrwZkau.js} +1 -1
- package/web/app/immutable/chunks/{Q8rtHwbz.js → CCsCF1Mh.js} +1 -1
- package/web/app/immutable/chunks/CFNJHO2G.js +1 -0
- package/web/app/immutable/chunks/{CxmJEenA.js → CGzD6XfW.js} +1 -1
- package/web/app/immutable/chunks/{3_UV1UgL.js → CH7fgKro.js} +1 -1
- package/web/app/immutable/chunks/CK4eAyad.js +1 -0
- package/web/app/immutable/chunks/{Cstrfm23.js → CKnpbRTh.js} +4 -4
- package/web/app/immutable/chunks/{DCOxMTSf.js → CL3a4Hm1.js} +1 -1
- package/web/app/immutable/chunks/{uWDJKH9B.js → CMLBE7U6.js} +1 -1
- package/web/app/immutable/chunks/{C7H74phM.js → CPlH-52U.js} +1 -1
- package/web/app/immutable/chunks/{XPs8BW44.js → CQAAihrI.js} +1 -1
- package/web/app/immutable/chunks/{CnM1-KSC.js → CQHtdg39.js} +1 -1
- package/web/app/immutable/chunks/{dx9b_0TP.js → CQ_NwL45.js} +2 -2
- package/web/app/immutable/chunks/{DupNtpYi.js → CR2m4w2U.js} +1 -1
- package/web/app/immutable/chunks/{CFvGekuw.js → CRNfAyhd.js} +1 -1
- package/web/app/immutable/chunks/{CLg2G62j.js → CRY4aELR.js} +3 -3
- package/web/app/immutable/chunks/{BsjFeGOg.js → CSBGusi9.js} +1 -1
- package/web/app/immutable/chunks/{BgVn7-pK.js → CUMRLgxB.js} +1 -1
- package/web/app/immutable/chunks/{DrBi0w5G.js → CUNx-_2d.js} +4 -4
- package/web/app/immutable/chunks/{CSFyiYHp.js → CUdMuhJF.js} +1 -1
- package/web/app/immutable/chunks/{CF2xUnmW.js → CY-vjmpy.js} +1 -1
- package/web/app/immutable/chunks/{C1McR-sz.js → CYKOPxuJ.js} +1 -1
- package/web/app/immutable/chunks/{CMqhKAKf.js → C_-WdiR8.js} +1 -1
- package/web/app/immutable/chunks/{DZCGZjzG.js → C_E26DWe.js} +1 -1
- package/web/app/immutable/chunks/{CxF8L5mw.js → CaHds95Q.js} +1 -1
- package/web/app/immutable/chunks/{CJj_lU-4.js → Caqml6gj.js} +1 -1
- package/web/app/immutable/chunks/{BXHaIh_f.js → CbRNm5he.js} +1 -1
- package/web/app/immutable/chunks/{Zldsekdv.js → CbRsc9i4.js} +1 -1
- package/web/app/immutable/chunks/{Bf02lG8Y.js → CblB0zCN.js} +1 -1
- package/web/app/immutable/chunks/{BQGSaBlM.js → CbyU6cEf.js} +1 -1
- package/web/app/immutable/chunks/{Cdw_CIdg.js → CdOh_Fmv.js} +1 -1
- package/web/app/immutable/chunks/{BsE4jMhr.js → CfUtc4-L.js} +1 -1
- package/web/app/immutable/chunks/{Bq_CYpxm.js → CgS_FiQI.js} +1 -1
- package/web/app/immutable/chunks/{CF1Tu_8c.js → Cgn_eC9-.js} +3 -3
- package/web/app/immutable/chunks/{XJqoy2ap.js → CgwFGLCK.js} +1 -1
- package/web/app/immutable/chunks/{sG8VksRm.js → Chnr0_jK.js} +1 -1
- package/web/app/immutable/chunks/{BR9s3igW.js → CiZzqOpk.js} +1 -1
- package/web/app/immutable/chunks/{0jRiL-di.js → CjTGc2Y5.js} +1 -1
- package/web/app/immutable/chunks/{Cs_DX3BC.js → Cj_UUgNI.js} +1 -1
- package/web/app/immutable/chunks/{Bo900RGs.js → CkrbZXJF.js} +1 -1
- package/web/app/immutable/chunks/{E_jRuW-b.js → CmVXj6KK.js} +2 -2
- package/web/app/immutable/chunks/{DWjKA8Pm.js → CmW3Zqh6.js} +1 -1
- package/web/app/immutable/chunks/{LKW_Bid7.js → CnztNSaN.js} +1 -1
- package/web/app/immutable/chunks/{C3YB0zcV.js → Cq4X6ptS.js} +1 -1
- package/web/app/immutable/chunks/{8TQkfju3.js → CqVZxU_G.js} +1 -1
- package/web/app/immutable/chunks/{CASKMy_V.js → CqwiFk32.js} +1 -1
- package/web/app/immutable/chunks/{DdkDv5Sd.js → Cv2YUgTX.js} +1 -1
- package/web/app/immutable/chunks/{CeBDdapO.js → CwWm64yZ.js} +1 -1
- package/web/app/immutable/chunks/{D3SYIfTl.js → CyWgrZMk.js} +4 -4
- package/web/app/immutable/chunks/{p8jwzOYN.js → CylWx-GB.js} +1 -1
- package/web/app/immutable/chunks/{BVVyDeyd.js → CzS5ny-g.js} +1 -1
- package/web/app/immutable/chunks/{Bs9TCQJX.js → CzW29tkb.js} +1 -1
- package/web/app/immutable/chunks/{Cc2FSrQK.js → D-NrCL67.js} +1 -1
- package/web/app/immutable/chunks/{BgLPrJ77.js → D0DIS-cT.js} +1 -1
- package/web/app/immutable/chunks/{dP7u_sPF.js → D1V2Et17.js} +1 -1
- package/web/app/immutable/chunks/{DRLOB6Gw.js → D1bivTve.js} +2 -2
- package/web/app/immutable/chunks/{C7RXZVwZ.js → D2dAlclh.js} +3 -3
- package/web/app/immutable/chunks/{CC08YY4X.js → D5_auhOU.js} +2 -2
- package/web/app/immutable/chunks/{hHeBjODU.js → D69ZLPjW.js} +1 -1
- package/web/app/immutable/chunks/{BswUVSRu.js → D6VfSAVQ.js} +1 -1
- package/web/app/immutable/chunks/{JKboQXkL.js → D6dNunKo.js} +1 -1
- package/web/app/immutable/chunks/{Cu0mADIg.js → D9MwZkzV.js} +1 -1
- package/web/app/immutable/chunks/{KykWEhyB.js → DB9n2KBT.js} +1 -1
- package/web/app/immutable/chunks/{v2EYTTpI.js → DBdkAKrm.js} +3 -3
- package/web/app/immutable/chunks/{6GNWsakm.js → DCW2c0FY.js} +1 -1
- package/web/app/immutable/chunks/{CiyIhnuP.js → DC_1j_gh.js} +3 -3
- package/web/app/immutable/chunks/{Druyrynh.js → DELYEsRi.js} +1 -1
- package/web/app/immutable/chunks/{B_QtiZYt.js → DFBd8tOh.js} +1 -1
- package/web/app/immutable/chunks/{Dbpb1w7S.js → DFr6bn5t.js} +3 -3
- package/web/app/immutable/chunks/{CgeBiXYG.js → DISyGoja.js} +1 -1
- package/web/app/immutable/chunks/{C-dUgTvj.js → DIukqb9l.js} +1 -1
- package/web/app/immutable/chunks/{lVHjTAAb.js → DJFAYXyc.js} +1 -1
- package/web/app/immutable/chunks/{BR5vKj6f.js → DL1CE4TH.js} +1 -1
- package/web/app/immutable/chunks/{D-2bQKif.js → DONrLvvt.js} +1 -1
- package/web/app/immutable/chunks/{DpSi4PLY.js → DRy2oEmj.js} +1 -1
- package/web/app/immutable/chunks/{RsJMsDHX.js → DSacn4II.js} +1 -1
- package/web/app/immutable/chunks/{DcvxsgOZ.js → DUGztmZo.js} +1 -1
- package/web/app/immutable/chunks/{Bp0nVWtT.js → DWDPOFkL.js} +1 -1
- package/web/app/immutable/chunks/{CMh2xRIF.js → DWEA_zul.js} +1 -1
- package/web/app/immutable/chunks/{BgDYQZ_0.js → DZIz7Wk9.js} +1 -1
- package/web/app/immutable/chunks/{D1FzC71c.js → DZRLhNnQ.js} +1 -1
- package/web/app/immutable/chunks/{D8BdISor.js → D_-ztW_Y.js} +1 -1
- package/web/app/immutable/chunks/{D9d8HfDB.js → D_hG-oZK.js} +1 -1
- package/web/app/immutable/chunks/{C2jA6pM8.js → D_r5h8IL.js} +1 -1
- package/web/app/immutable/chunks/{aHO4L7kg.js → Dawt227W.js} +1 -1
- package/web/app/immutable/chunks/{Csxq8_TN.js → Db8-C0Zq.js} +1 -1
- package/web/app/immutable/chunks/{B3Zt92Gh.js → DbCFTbwM.js} +1 -1
- package/web/app/immutable/chunks/{CLZkKjaI.js → DcUCHDGY.js} +1 -1
- package/web/app/immutable/chunks/{DcmaumPg.js → DeE0yn_3.js} +1 -1
- package/web/app/immutable/chunks/{C9r0mVfa.js → Dekzflbl.js} +1 -1
- package/web/app/immutable/chunks/{DqgCp5ae.js → Df-HaYIr.js} +1 -1
- package/web/app/immutable/chunks/{B5L5kFMu.js → DgMr61cU.js} +1 -1
- package/web/app/immutable/chunks/{S5vPfW1A.js → DkJkWZTE.js} +1 -1
- package/web/app/immutable/chunks/{BW6PhteS.js → DksUdusM.js} +1 -1
- package/web/app/immutable/chunks/{CtFSFfLz.js → Dp9fBXaC.js} +1 -1
- package/web/app/immutable/chunks/{CZTVb5IB.js → DrOwYgbZ.js} +1 -1
- package/web/app/immutable/chunks/{CS3R6Yuh.js → Dsn82AW0.js} +1 -1
- package/web/app/immutable/chunks/{Deg_SlHr.js → DtHX0_aW.js} +2 -2
- package/web/app/immutable/chunks/{3IxT-Mrl.js → DtfuSWPd.js} +1 -1
- package/web/app/immutable/chunks/{Ct_Zx4ru.js → Dv0Jc2Nv.js} +1 -1
- package/web/app/immutable/chunks/{DumeSIrz.js → DvATy2o1.js} +1 -1
- package/web/app/immutable/chunks/{M18r7swD.js → DvrEye74.js} +1 -1
- package/web/app/immutable/chunks/{93RUSyHg.js → DwXKCf3Q.js} +1 -1
- package/web/app/immutable/chunks/{Cdhrdfve.js → DxyI4IUi.js} +1 -1
- package/web/app/immutable/chunks/{DCrqv4Go.js → Ev5lig9W.js} +1 -1
- package/web/app/immutable/chunks/{a34jwGLW.js → EzpfJOSe.js} +1 -1
- package/web/app/immutable/chunks/{BsKhFZ0Q.js → FtGWFokI.js} +1 -1
- package/web/app/immutable/chunks/{4pFiTcXi.js → Hd1u2Z-S.js} +1 -1
- package/web/app/immutable/chunks/{k3tEZZCe.js → Iq8JI4_0.js} +1 -1
- package/web/app/immutable/chunks/{gcij4Gee.js → MifrdpDQ.js} +1 -1
- package/web/app/immutable/chunks/{_UNYBFXm.js → NQru5r2h.js} +1 -1
- package/web/app/immutable/chunks/{WHfdsTrE.js → NqK_XT0y.js} +1 -1
- package/web/app/immutable/chunks/{D5sw7nR1.js → R1s5ARST.js} +1 -1
- package/web/app/immutable/chunks/{DaXgwzm7.js → R2N5eDxY.js} +1 -1
- package/web/app/immutable/chunks/{B5ht1e3g.js → TE7UDCh6.js} +1 -1
- package/web/app/immutable/chunks/{DmhHEMPi.js → THdp5Vpk.js} +1 -1
- package/web/app/immutable/chunks/UGr2VEtG.js +1 -0
- package/web/app/immutable/chunks/{BUNNt_Jr.js → UN8KT7fR.js} +1 -1
- package/web/app/immutable/chunks/{B9XvejAu.js → UQXXh4U7.js} +1 -1
- package/web/app/immutable/chunks/{5NOp7PNZ.js → VJkCr9xp.js} +1 -1
- package/web/app/immutable/chunks/VdR0DXlW.js +410 -0
- package/web/app/immutable/chunks/{CvC_PTf7.js → WlqVlpOk.js} +1 -1
- package/web/app/immutable/chunks/{0NGflniG.js → YV53nLSc.js} +1 -1
- package/web/app/immutable/chunks/{TrRXD94r.js → YcqSYZ1W.js} +1 -1
- package/web/app/immutable/chunks/{DtnAdLQg.js → ZIOU9Sxd.js} +1 -1
- package/web/app/immutable/chunks/{Bn5goMn4.js → _EqQOSVK.js} +1 -1
- package/web/app/immutable/chunks/{eln8hjjQ.js → bb5Wjkri.js} +1 -1
- package/web/app/immutable/chunks/{DPLuga0X.js → cFozej4U.js} +3 -3
- package/web/app/immutable/chunks/{D_MzuSit.js → d1EmVp98.js} +1 -1
- package/web/app/immutable/chunks/{BkrPhcBU.js → eCVtubQ8.js} +1 -1
- package/web/app/immutable/chunks/{DeVwq4Xj.js → f686-QUd.js} +1 -1
- package/web/app/immutable/chunks/{BVUXyHGH.js → fr0BmHL-.js} +1 -1
- package/web/app/immutable/chunks/{BUtBz-tz.js → gHT8Z5q-.js} +1 -1
- package/web/app/immutable/chunks/{BTYfh5fW.js → gySpGbnA.js} +2 -2
- package/web/app/immutable/chunks/i8PKWJT0.js +1 -0
- package/web/app/immutable/chunks/{DdkBNH3W.js → ir8Qz45r.js} +1 -1
- package/web/app/immutable/chunks/{5E3JQYey.js → jG-4Z8qH.js} +1 -1
- package/web/app/immutable/chunks/{DA4getmI.js → qHChsLZZ.js} +1 -1
- package/web/app/immutable/chunks/{DOi8NPXE.js → qi41b1Ac.js} +1 -1
- package/web/app/immutable/chunks/{CFybzafc.js → qjcf4Gb9.js} +1 -1
- package/web/app/immutable/chunks/{dSvJdwG_.js → qvt-0QTi.js} +3 -3
- package/web/app/immutable/chunks/{Cu91VTQn.js → rB5UfCey.js} +1 -1
- package/web/app/immutable/chunks/{DVy6H5Ng.js → sS3MW5B6.js} +1 -1
- package/web/app/immutable/chunks/{Bi5_2qbB.js → t7yAUuZn.js} +2 -2
- package/web/app/immutable/chunks/{BEjEPSxp.js → tDUnXf7O.js} +1 -1
- package/web/app/immutable/chunks/{CQt5NIo9.js → uCQEgTob.js} +1 -1
- package/web/app/immutable/chunks/{CZ_Dk1nz.js → vLtMR-kj.js} +1 -1
- package/web/app/immutable/chunks/{iBqqkWL_.js → wEnqV1Ol.js} +1 -1
- package/web/app/immutable/chunks/{CNAilJvj.js → wgljT0D3.js} +1 -1
- package/web/app/immutable/chunks/{DlqetqWw.js → zye35u-t.js} +1 -1
- package/web/app/immutable/entry/{app.AtsW0EhM.js → app.jT7Rd2u4.js} +2 -2
- package/web/app/immutable/entry/start.CSuXA93h.js +1 -0
- package/web/app/immutable/nodes/{0.CegL6Bfc.js → 0.9lwWQtfB.js} +1 -1
- package/web/app/immutable/nodes/{1.B6-BTMS1.js → 1.Ck4yEk2l.js} +1 -1
- package/web/app/immutable/nodes/{10.qlZM4NPl.js → 10.C4FEQjC7.js} +16 -16
- package/web/app/immutable/nodes/{11.BR5ZtLjn.js → 11.C-vXNNmX.js} +1 -1
- package/web/app/immutable/nodes/{13.DYH2a5Wx.js → 13.DhKVmEQi.js} +1 -1
- package/web/app/immutable/nodes/{14.B6MrEg8x.js → 14.INZu_e5k.js} +1 -1
- package/web/app/immutable/nodes/{15.Bitx8r2v.js → 15.DdKSdQ-h.js} +1 -1
- package/web/app/immutable/nodes/{16.CKbY5VRM.js → 16.Ad-t6nft.js} +1 -1
- package/web/app/immutable/nodes/{17.DPSU7Eqq.js → 17.pLS5JsPi.js} +1 -1
- package/web/app/immutable/nodes/{18.BlD6ustd.js → 18.DIVxEUeB.js} +1 -1
- package/web/app/immutable/nodes/{19.BRj21xes.js → 19.BB9LuT5j.js} +2 -2
- package/web/app/immutable/nodes/{2.BBHXaN8p.js → 2.Bp80wZmn.js} +4 -4
- package/web/app/immutable/nodes/{20.Cj4TGw20.js → 20.BGTcjiLa.js} +1 -1
- package/web/app/immutable/nodes/{3.JJmMGjhS.js → 3.DRJnaOSe.js} +1 -1
- package/web/app/immutable/nodes/{4.C3VD-4KP.js → 4.p67SnElB.js} +1 -1
- package/web/app/immutable/nodes/{5.DIJ6nzqY.js → 5.DRmIJA2c.js} +1 -1
- package/web/app/immutable/nodes/{6.DIzZZwt4.js → 6.Bjeibumi.js} +1 -1
- package/web/app/immutable/nodes/{7.Xo0EbJUd.js → 7.CjIaxqZ1.js} +1 -1
- package/web/app/immutable/nodes/{8.xZANL-qg.js → 8.DAlxovqG.js} +1 -1
- package/web/app/immutable/nodes/{9.BVBQgdJj.js → 9.BKQZzsCi.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +15 -15
- package/web/app/immutable/chunks/BxTyo7yU.js +0 -1
- package/web/app/immutable/chunks/C1FbWx7h.js +0 -1
- package/web/app/immutable/chunks/C_qOm4aX.js +0 -410
- package/web/app/immutable/chunks/CcNIw4Px.js +0 -1
- package/web/app/immutable/chunks/CqJQ3ikU.js +0 -1
- package/web/app/immutable/chunks/DW3gkA_F.js +0 -1
- package/web/app/immutable/entry/start.DHsRk6-P.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./DkJkWZTE.js";import{s as Ci}from"./Caqml6gj.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./CUNx-_2d.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as K,bo as g,bw as Q,b as T,bm as D}from"./51_h0jm2.js";import{bs as U,b_ as P,W as m,bn as X,aA as b,aC as ae,a7 as j,ay as B,aD as t,a5 as Z,bS as $,bH as h,bA as E,be as ie,b$ as se,bO as G,c9 as f,aB as F,bV as V,bl as ee,bk as oe}from"./CJxGDkBm.js";import{s as le,f as ue,c as ce}from"./CpPNoOk-.js";import{i as R}from"./PXCFrn2V.js";import{k as fe}from"./C9UsZ4re.js";import{g as me,i as de}from"./Bjy4ygfJ.js";import{I as pe}from"./
|
|
1
|
+
import{t as K,bo as g,bw as Q,b as T,bm as D}from"./51_h0jm2.js";import{bs as U,b_ as P,W as m,bn as X,aA as b,aC as ae,a7 as j,ay as B,aD as t,a5 as Z,bS as $,bH as h,bA as E,be as ie,b$ as se,bO as G,c9 as f,aB as F,bV as V,bl as ee,bk as oe}from"./CJxGDkBm.js";import{s as le,f as ue,c as ce}from"./CpPNoOk-.js";import{i as R}from"./PXCFrn2V.js";import{k as fe}from"./C9UsZ4re.js";import{g as me,i as de}from"./Bjy4ygfJ.js";import{I as pe}from"./DZIz7Wk9.js";import"./DKn1sQ32.js";import{L as ge}from"./DB9n2KBT.js";import"./BGP1lrgu.js";import{D as be}from"./CSBGusi9.js";import{b as te}from"./Bc7pHsTy.js";import{J as ve,H as O}from"./BimRiD6s.js";var _e=ae('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function Ce(p,i){if(new.target)return K({component:Ce,...p});U(i,!0);let s=g(i,"width",7,24),e=g(i,"class",7,"");var a={get width(){return s()},set width(o=24){s(o),b()},get class(){return e()},set class(o=""){e(o),b()},$set:Q,$on:(o,u)=>T(i,o,u)},l=_e();return P(()=>{le(l,"width",s()),ue(l,0,ce(e()))}),m(p,l),X(a)}var he=F('<span class="min-w-0 shrink truncate text-subtle"> </span>'),we=F('<li class="flex min-w-0 items-baseline justify-between gap-3"><span class="min-w-0 truncate"> </span> <!></li>'),Le=F('<ul class="grid gap-1.5"></ul>'),ye=F('<div class="grid gap-2"><!> <!></div>');function re(p,i){if(new.target)return K({component:re,...p});U(i,!0);const s=r=>{var c=j(),x=B(c);{var A=_=>{var H=Le();me(H,21,()=>e().options.items??[],de,(q,w)=>{var M=we(),I=Z(M),C=ee(I,!0),S=$(I,2);{var L=y=>{var Y=he(),ne=ee(Y,!0);P(()=>G(ne,t(w).detail)),m(y,Y)};R(S,y=>{t(w).detail&&y(L)})}E(M),P(()=>G(C,t(w).label)),m(q,M)}),E(H),m(_,H)};R(x,_=>{e().kind==="confirm"&&_(A)})}m(r,c)};let e=g(i,"request",7),a=g(i,"value",15,""),l=g(i,"busy",7,!1),o=g(i,"static",7,!1),u=g(i,"onAccept",7),v=g(i,"onCancel",7),k=V(null);var J={get request(){return e()},set request(r){e(r),b()},get value(){return a()},set value(r=""){a(r),b()},get busy(){return l()},set busy(r=!1){l(r),b()},get static(){return o()},set static(r=!1){o(r),b()},get onAccept(){return u()},set onAccept(r){u(r),b()},get onCancel(){return v()},set onCancel(r){v(r),b()},$set:Q,$on:(r,c)=>T(i,r,c)},n=j(),d=B(n);{var N=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_bulkActionConfirm_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_bulkActionConfirm_cancel_label()),A=f(()=>e().options.destructive??!1),_=f(()=>e().options.items?.length?s:void 0);be(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return t(c)},get cancelLabel(){return t(x)},get destructive(){return t(A)},get details(){return t(_)},get busy(){return l()},onConfirm:()=>u()(a()),get onCancel(){return v()}})}},W=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_input_cancel_label()),A=f(()=>!e().options.field.required||a().trim().length>0);te(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},get cancelLabel(){return t(x)},get canSubmit(){return t(A)},get busy(){return l()},get initialFocus(){return t(k)},onSubmit:()=>u()(a()),get onCancel(){return v()},children:(_,H)=>{var q=ye(),w=Z(q);{var M=C=>{ge(C,{for:"confirm-prompt-field",children:(S,L)=>{ie();var y=se();P(()=>G(y,e().options.field.label)),m(S,y)},$$slots:{default:!0}})};R(w,C=>{e().options.field.label&&C(M)})}var I=$(w,2);{let C=f(()=>e().options.field.type??"text"),S=f(()=>e().options.field.label?void 0:e().options.title);pe(I,{id:"confirm-prompt-field",get type(){return t(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return t(S)},get ref(){return t(k)},set ref(L){h(k,L,!0)},get value(){return a()},set value(L){a(L)}})}E(q),m(_,q)},$$slots:{default:!0}})}},z=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label());te(r,{open:!0,get static(){return o()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return l()},onSubmit:()=>u()(a()),onCancel:()=>u()(a())})}};R(d,r=>{e()?.kind==="confirm"?r(N):e()?.kind==="prompt"?r(W,1):e()?.kind==="alert"&&r(z,2)})}return m(p,n),X(J)}function ke(p,i){if(new.target)return K({component:ke,...p});U(i,!0);let s=V(null),e=V(""),a=V(!1);oe(()=>ve(n=>{h(s,n,!0),h(e,n?.kind==="prompt"?n.options.field.initialValue??"":"",!0),h(a,!1)}));function l(){!t(s)||t(a)||O(t(s).id,t(s).kind==="confirm"?!1:null)}async function o(){if(!t(s)||t(a))return;const n=t(s);h(a,!0);try{n.kind==="confirm"?(await n.options.onConfirm?.(),O(n.id,!0)):n.kind==="prompt"?(await n.options.onConfirm?.(t(e).trim()),O(n.id,t(e).trim())):O(n.id,void 0)}catch(d){throw console.error("Confirm action failed:",d),h(a,!1),d}}var u={$set:Q,$on:(n,d)=>T(i,n,d)},v=j(),k=B(v);{var J=n=>{var d=j(),N=B(d);fe(N,()=>t(s).id,W=>{re(W,{get request(){return t(s)},get busy(){return t(a)},onAccept:o,onCancel:l,get value(){return t(e)},set value(z){h(e,z,!0)}})}),m(n,d)};R(k,n=>{t(s)&&n(J)})}return m(p,v),X(u)}export{ke as C,Ce as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as b}from"./
|
|
1
|
+
import{z as b}from"./Bqd7fdCF.js";const u=/^[A-Za-z0-9._:-]{1,128}$/,C="connections.manage",l="";class f extends Error{constructor(t,e){super(t),this.status=e,this.name="HostRequestError"}}function d(n){return typeof n=="string"&&n.startsWith("/")&&!n.startsWith("//")}function h(){const n=globalThis.__INTENT_RUNTIME_CONFIG__;if(!n)return null;const{backendId:t,connectionsUrl:e,eventsUrl:o,hostCapabilities:s}=n,r=Array.isArray(s)&&s.includes(C),a=t===null&&r;return!a&&(typeof t!="string"||!u.test(t))||!d(e)?null:{backendId:a?null:t,connectionsUrl:e,eventsUrl:d(o)?o:null,canManageConnections:r,tailcatAvailable:n.tailcatAvailable===!0}}function g(){return b()?null:h()}function E(){const n=g();return n?.canManageConnections?n:null}function w(n,t){const e=n.backendId??l;return{...t,activeId:t.activeId??l,windowBackendId:e}}async function H(n,t=fetch){const e=n.backendId===null?n.connectionsUrl:`${n.connectionsUrl}?backend=${encodeURIComponent(n.backendId)}`,o=await t(e,{credentials:"same-origin",cache:"no-store"});if(!o.ok)throw new f(`connections list failed: HTTP ${o.status}`,o.status);return w(n,await o.json())}function I(n,t=(s,r,a)=>globalThis.open?.(s,r,a),e=s=>globalThis.location?.assign(s),o=!1){if(!u.test(n))throw new Error(`invalid connection id: ${n}`);const s=`/?backend=${encodeURIComponent(n)}`;return o?e(s):t(s,"_blank","noopener"),{status:"opened",id:n}}function i(n,t,e){if(!u.test(t))throw new Error(`invalid connection id: ${t}`);return`${n.connectionsUrl}/${encodeURIComponent(t)}${e?`/${e}`:""}`}async function c(n,t,e,o){const s=await n(e,{method:t,credentials:"same-origin",cache:"no-store",...o===void 0?{}:{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}});if(!s.ok)throw new f(`connections request failed: HTTP ${s.status}`,s.status);return await s.json()}async function k(n,t,e=fetch){const o=await c(e,"POST",`${n.connectionsUrl}/capture-fingerprint`,{host:t.host,port:t.port,...t.token?{token:t.token}:{}});if(!o.ok)throw new Error(o.error??"fingerprint capture failed");return{fingerprint:o.fingerprint,tokenValid:o.tokenValid,...o.statusCode!==void 0?{statusCode:o.statusCode}:{}}}function y(n,t,e=fetch){const{syncExcluded:o,...s}=t;return c(e,"POST",n.connectionsUrl,s)}function A(n,t,e=fetch){const{id:o,syncExcluded:s,...r}=t;return c(e,"PATCH",i(n,o),r)}function _(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"test"),s)}function N(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"rotate-secret"),s)}function P(n,t,e=fetch){return c(e,"GET",i(n,t,"tunnel"))}function U(n,t,e=fetch){return c(e,"PUT",i(n,t.id,"tunnel"),{enabled:t.enabled})}async function $(n,t,e=fetch){return await c(e,"DELETE",i(n,t),{}),{id:t}}function T(n){return{manageConnections:n.canManageConnections,backendBound:n.backendId!==null,tailcatAvailable:n.tailcatAvailable}}function O(n){const t=g(),e=n?.connections;if(!t||e&&"browserHost"in e)return n;const o={...e,browserHost:T(t)};return{...n,connections:o}}export{f as H,y as a,w as b,k as c,$ as d,P as e,H as f,h as g,E as h,g as i,T as j,I as o,N as r,U as s,_ as t,A as u,O as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Fe}from"./B3Zt92Gh.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./DrBi0w5G.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
|
|
1
|
+
import{g as Fe}from"./DbCFTbwM.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./CUNx-_2d.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(F+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(v[0]){case 1:l.push(N),E.push(D.yytext),r.push(D.yylloc),l.push(v[1]),N=null,Y=D.yyleng,n=D.yytext,F=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[v[1]][1],M.$=E[E.length-B],M._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Re&&(M._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),ee=this.performAction.apply(M,[n,Y,F,z.yy,v[1],E,r].concat(Z)),typeof ee<"u")return ee;B&&(l=l.slice(0,-1*B*2),E=E.slice(0,-1*B),r=r.slice(0,-1*B)),l.push(this.productions_[v[1]][0]),E.push(M.$),r.push(M._$),pe=K[l[l.length-2]][l[l.length-1]],l.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var C={EOF:1,parseError:u(function(i,l){if(this.yy.parser)this.yy.parser.parseError(i,l);else throw new Error(i)},"parseError"),setInput:u(function(d,i){return this.yy=i||this.yy||{},this._input=d,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:u(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var i=d.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),d},"input"),unput:u(function(d){var i=d.length,l=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var p=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),l.length-1&&(this.yylineno-=l.length-1);var E=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(d){this.unput(this.match.slice(d))},"less"),pastInput:u(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var d=this.pastInput(),i=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as N,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./CJxGDkBm.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./51_h0jm2.js";import{i as U}from"./PXCFrn2V.js";import{b as W,e as F}from"./CpPNoOk-.js";import{b as q}from"./NtFyWdpR.js";import{s as Be}from"./DxvSggY5.js";import{n as G,l as We,c as De}from"./BxwkoIbZ.js";import"./DKn1sQ32.js";import{a_ as Me}from"./Cdw_CIdg.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
|
|
1
|
+
import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as N,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./CJxGDkBm.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./51_h0jm2.js";import{i as U}from"./PXCFrn2V.js";import{b as W,e as F}from"./CpPNoOk-.js";import{b as q}from"./NtFyWdpR.js";import{s as Be}from"./DxvSggY5.js";import{n as G,l as We,c as De}from"./BxwkoIbZ.js";import"./DKn1sQ32.js";import{a_ as Me}from"./CdOh_Fmv.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as k1}from"./
|
|
1
|
+
import{g as k1}from"./DbCFTbwM.js";import{g as E1}from"./DkJkWZTE.js";import{s as C1}from"./Caqml6gj.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./CUNx-_2d.js";import{c as G1}from"./BulBKnVz.js";import{aR as U1}from"./CMLBE7U6.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
|
|
2
2
|
`)){if(u!==void 0){const p=c.length-c.trimStart().length;if(c.trim()===""||p>u){l.push(c);continue}u=void 0}let a=-1;for(let p=0;p<c.length;p++){const A=c[p];if(n)A==="\\"?p++:A==='"'&&(n=!1);else if(i)A==="'"&&(i=!1);else if(A==='"')n=!0;else if(A==="'")i=!0;else if(A==="#"&&(p===0||c[p-1]===" "||c[p-1]===" ")){a=p;break}else A==="["||A==="{"?r++:(A==="]"||A==="}")&&(r=Math.max(0,r-1))}if(i||n||r>0){l.push(c);continue}const h=a>=0?c.slice(0,a):c,g=a>=0?c.slice(a):"";if(/:\s*[>|][\d+-]*\s*$/.test(h)){u=c.length-c.trimStart().length,l.push(c);continue}l.push(h.replace(/,([\t ]*)$/,"$1")+g)}return l.join(`
|
|
3
3
|
`)}k(d1,"stripLineTrailingCommas");var Ze,X1=(Ze=class{constructor(){this.vertexCounter=0,this.config=Ce(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=T1,this.setAccDescription=D1,this.setDiagramTitle=_1,this.getAccTitle=v1,this.getAccDescription=F1,this.getDiagramTitle=V1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return I1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,r,u,l,c,a={},h,g){if(!i||i.trim().length===0)return;let p;if(h!==void 0){let m;h.includes(`
|
|
4
4
|
`)?m=h+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./qHChsLZZ.js";import{p}from"./CbRNm5he.js";import{b as t,ay as o}from"./CUNx-_2d.js";import{M as u,b as c}from"./C0gEyGJV.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./
|
|
1
|
+
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./CUNx-_2d.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;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),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J4 as s,m7 as o,nM as a,nL as i}from"./
|
|
1
|
+
import{J4 as s,m7 as o,nM as a,nL as i}from"./CbRsc9i4.js";const n=s.createSelector((e,t)=>e.files.byWorkspaceId[t]??o),S=s.createSelector((e,t)=>a(n.select(e,t).files)),c=s.createSelector((e,t,l)=>{if(l)return i(n.select(e,t).files,l)}),d=s.createSelector((e,t,l)=>c.select(e,t,l)?.localContent??null),f=s.createSelector((e,t,l)=>c.select(e,t,l)?.originalContent??null),u=s.createSelector((e,t,l)=>c.select(e,t,l)?.lastUpdated??0),g=s.createSelector((e,t,l)=>c.select(e,t,l)?.loading??!1),C=s.createSelector((e,t,l)=>c.select(e,t,l)?.saving??!1),p=s.createSelector((e,t,l)=>c.select(e,t,l)?.error??null),y=s.createSelector((e,t,l)=>c.select(e,t,l)?.errorInfo??null),I=s.createSelector((e,t,l)=>c.select(e,t,l)?.notFoundCandidates??null),m=s.createSelector((e,t,l)=>c.select(e,t,l)?.isBinary??!1),k=s.createSelector((e,t,l)=>{const r=c.select(e,t,l);return r?r.localContent!==r.originalContent:!1});export{d as a,c as b,p as c,y as d,m as e,k as f,u as g,g as h,I as i,C as j,f as k,S as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=Object.defineProperty;var h=(o,e,t)=>e in o?p(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var a=(o,e,t)=>h(o,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./51_h0jm2.js";import{nT as g,nR as m,nS as d}from"./
|
|
1
|
+
var p=Object.defineProperty;var h=(o,e,t)=>e in o?p(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var a=(o,e,t)=>h(o,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./51_h0jm2.js";import{nT as g,nR as m,nS as d}from"./CbRsc9i4.js";class l{constructor(){a(this,"types",new Map);a(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const t=this.types.get(e);if(!t)return Promise.reject(new Error(`Unknown tab type: ${e}`));const s=this.componentLoads.get(e);if(s?.registration===t)return s.promise;const n={registration:t},i="component"in t&&t.component?Promise.resolve(t.component):Promise.resolve().then(()=>t.loadComponent()).then(r=>r.default);return n.promise=i.then(r=>(this.componentLoads.get(e)===n&&(n.component=r),r)).catch(r=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),r}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const t=this.types.get(e);if(!t)return;if("component"in t)return t.component;const s=this.componentLoads.get(e);return s?.registration===t?s.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??c.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??g(e)}getDefaultWidth(e,t=0){const s=this.types.get(e);return s?m(s.defaultWidthTier,t):d(e,t)}}const b=new l;export{b as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as se,bo as u,bw as ie,b as ae}from"./51_h0jm2.js";import{bs as ne,a5 as A,bl as M,bS as N,bA as y,bf as oe,b_ as U,aD as e,bO as X,W as g,bn as de,c9 as c,aA as m,aB as B,a7 as D,ay as F}from"./CJxGDkBm.js";import{i as P}from"./PXCFrn2V.js";import{g as Y}from"./Bjy4ygfJ.js";import{s as Z}from"./DxvSggY5.js";import{S as Se}from"./
|
|
1
|
+
import{t as se,bo as u,bw as ie,b as ae}from"./51_h0jm2.js";import{bs as ne,a5 as A,bl as M,bS as N,bA as y,bf as oe,b_ as U,aD as e,bO as X,W as g,bn as de,c9 as c,aA as m,aB as B,a7 as D,ay as F}from"./CJxGDkBm.js";import{i as P}from"./PXCFrn2V.js";import{g as Y}from"./Bjy4ygfJ.js";import{s as Z}from"./DxvSggY5.js";import{S as Se}from"./DB9n2KBT.js";import{c as ke,e as Ie,s as _,f as ye}from"./CpPNoOk-.js";import{S as Ce}from"./d1EmVp98.js";import{J4 as ce,jb as Le,qO as Pe}from"./CbRsc9i4.js";var Be=B('<div class="max-w-full shrink-0"><!></div>'),je=B('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),Qe=B('<p class="type-body mt-2 text-danger" role="alert"> </p>'),Te=B('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function le(a,i){if(new.target)return se({component:le,...a});ne(i,!0);let o=u(i,"id",7),v=u(i,"title",7),p=u(i,"description",7),w=u(i,"busy",7,!1),h=u(i,"error",7),x=u(i,"actions",7),S=u(i,"children",7),C=u(i,"class",7);const j=c(()=>o()?`${o()}-title`:void 0),O=c(()=>o()&&p()?`${o()}-description`:void 0),Q=c(()=>o()&&h()?`${o()}-error`:void 0),V=c(()=>[e(O),e(Q)].filter(Boolean).join(" ")||void 0);var W={get id(){return o()},set id(r){o(r),m()},get title(){return v()},set title(r){v(r),m()},get description(){return p()},set description(r){p(r),m()},get busy(){return w()},set busy(r=!1){w(r),m()},get error(){return h()},set error(r){h(r),m()},get actions(){return x()},set actions(r){x(r),m()},get children(){return S()},set children(r){S(r),m()},get class(){return C()},set class(r){C(r),m()},$set:ie,$on:(r,d)=>ae(i,r,d)},f=Te(),t=A(f),n=A(t),l=A(n),b=M(l,!0),k=N(l,2);{var s=r=>{var d=Be(),I=A(d);Z(I,x),y(d),g(r,d)};P(k,r=>{x()&&r(s)})}y(n);var q=N(n,2);{var z=r=>{var d=je(),I=M(d,!0);U(()=>{_(d,"id",e(O)),X(I,p())}),g(r,d)};P(q,r=>{p()&&r(z)})}y(t);var T=N(t,2);{var E=r=>{var d=Qe(),I=M(d,!0);U(()=>{_(d,"id",e(Q)),X(I,h())}),g(r,d)};P(T,r=>{h()&&r(E)})}var J=N(T,2),G=A(J);return Z(G,()=>S()??oe),y(J),y(f),U(r=>{_(f,"id",o()),_(f,"data-highlight-id",o()),ye(f,1,r),_(f,"aria-labelledby",e(j)),_(f,"aria-label",e(j)?void 0:v()),_(f,"aria-describedby",e(V)),_(f,"aria-busy",w()||void 0),_(l,"id",e(j)),X(b,v())},[()=>ke(Ie("min-w-0 scroll-mt-20",C()))]),g(a,f),de(W)}function He(a){return a}function Ke(a){return a}function R(a,i){return a===void 0?i:typeof a=="function"?a():a}function Ae(a,i){const o=i.trim().toLocaleLowerCase();return o?[a.label,a.description,a.featureCode,a.id].filter(Boolean).some(v=>v.toLocaleLowerCase().includes(o)):!0}var De=B('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),Fe=B('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function Oe(a,i){if(new.target)return se({component:Oe,...a});ne(i,!0);const o=(t,n=oe)=>{var l=D(),b=F(l);Y(b,17,n,k=>k.id,(k,s)=>{const q=c(()=>`setting-${e(s).id}`),z=c(()=>R(e(s).disabled,!1)),T=c(()=>R(e(s).busy,!1)),E=c(()=>R(e(s).error,void 0)),J=c(()=>R(e(s).status,void 0));{const G=(me,H)=>{let fe=()=>(H?.()).labelId,ge=()=>(H?.()).descriptionId,ve=()=>(H?.()).errorId;const $=c(()=>({entry:e(s),controlId:e(q),labelId:fe(),descriptionId:ge(),errorId:ve(),disabled:e(z),busy:e(T)}));var ee=D(),be=F(ee);{var pe=L=>{var te=D(),_e=F(te);{var we=K=>{var re=D(),xe=F(re);Z(xe,()=>w()[e(s).id],()=>e($)),g(K,re)};P(_e,K=>{w()[e(s).id]&&K(we)})}g(L,te)},he=L=>{Ce(L,{get entry(){return e(s)},get context(){return e($)},get compact(){return S()}})};P(be,L=>{e(s).kind==="custom"?L(pe):L(he,-1)})}g(me,ee)};let r=c(()=>e(s).kind==="custom"&&e(s).layout==="full-width"),d=c(()=>j(e(s).kind)?e(q):void 0),I=c(()=>e(s).kind==="select"),ue=c(()=>[e(s).label,e(s).description,e(s).featureCode].filter(Boolean).join(" "));Se(k,{get compact(){return S()},get id(){return e(s).id},get label(){return e(s).label},get description(){return e(s).description},get info(){return e(s).info},get descriptionContent(){return h()[e(s).id]},get controlOnly(){return e(r)},get htmlFor(){return e(d)},get activateLabel(){return e(I)},get disabled(){return e(z)},get busy(){return e(T)},get error(){return e(E)},get status(){return e(J)},get statusTone(){return e(s).statusTone},get danger(){return e(s).danger},get experimental(){return e(s).experimental},get featureCode(){return e(s).featureCode},get searchText(){return e(ue)},get class(){return e(s).class},control:G,$$slots:{control:!0}})}}),g(t,l)};let v=u(i,"schema",7),p=u(i,"searchQuery",7,""),w=u(i,"custom",23,()=>({})),h=u(i,"descriptions",23,()=>({})),x=u(i,"embedded",7,!1),S=u(i,"compact",7,!0);const C=c(()=>v().sections.filter(t=>t.when?.()??!0).map(t=>({...t,entries:t.entries.filter(n=>(n.when?.()??!0)&&Ae(n,p()))})).filter(t=>t.entries.length>0)),j=t=>["select","input","number","path","keybinding"].includes(t);var O={get schema(){return v()},set schema(t){v(t),m()},get searchQuery(){return p()},set searchQuery(t=""){p(t),m()},get custom(){return w()},set custom(t={}){w(t),m()},get descriptions(){return h()},set descriptions(t={}){h(t),m()},get embedded(){return x()},set embedded(t=!1){x(t),m()},get compact(){return S()},set compact(t=!0){S(t),m()},$set:ie,$on:(t,n)=>ae(i,t,n)},Q=D(),V=F(Q);{var W=t=>{var n=De();Y(n,21,()=>e(C),l=>l.id,(l,b)=>{o(l,()=>e(b).entries)}),y(n),g(t,n)},f=t=>{var n=Fe();Y(n,21,()=>e(C),l=>l.id,(l,b)=>{le(l,{get id(){return e(b).id},get title(){return e(b).title},get description(){return e(b).description},children:(k,s)=>{o(k,()=>e(b).entries)},$$slots:{default:!0}})}),y(n),g(t,n)};P(V,t=>{x()?t(W):t(f,-1)})}return g(a,Q),de(O)}const Me=ce.createSelector(a=>Le(a.devicePasskeys??Pe)),Ue=ce.createSelector(a=>{const i=a.devicePasskeys?.status??"unknown";return i==="ready"||i==="error"||i==="loading"});export{Oe as S,le as a,Ke as b,Ue as c,He as d,Me as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J4 as o,m6 as L,nL as E,no as C,J9 as W}from"./
|
|
1
|
+
import{J4 as o,m6 as L,nL as E,no as C,J9 as W}from"./CbRsc9i4.js";import{w as z}from"./PVXvIyE8.js";import{dE as b,dI as f}from"./CgwFGLCK.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??L),G=o.createSelector((t,e,s)=>{const n=E(t.fileExplorer.searches,s);return n?.workspaceId===e?n:void 0}),J=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),M=o.createSelector((t,e)=>a.select(t,e).nodes.map),R=o.createSelector((t,e)=>a.select(t,e).isLoading),q=o.createSelector((t,e)=>a.select(t,e).isInitialized),B=o.createSelector((t,e)=>a.select(t,e).error),K=o.createSelector((t,e)=>a.select(t,e).fileCount),O=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=b.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),V=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const A=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),Q=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),T=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(n=>n!==s.workspacePath)}),U=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const n=a.select(t,e),p=f.select(t,e);return n.workspacePath!==s?!0:n.isLoading?!1:n.isInitialized?p?.type==="remote"&&!n.isRemoteInitialized:!0}),F=new WeakMap,X=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const n=E(s.nodes,s.rootPath);if(!n)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=C(s.nodes,n.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",c=v[i],d=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:c&&c.length>0?c:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=c&&c.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...c&&c.length>0?{agentEdits:c}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{B as a,K as b,O as c,V as d,q as e,R as f,M as g,J as h,G as i,a as j,X as k,T as l,A as m,Q as n,U as o,g as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Cl=Object.defineProperty;var Ml=(r,t,a)=>t in r?Cl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var ma=(r,t,a)=>Ml(r,typeof t!="symbol"?t+"":t,a);import{t as St,bo as g,bw as Tt,b as Ct,bm as u,bq as Ha,bs as cr,br as Al,bp as mn}from"./51_h0jm2.js";import{ai as Ja,bs as Mt,ca as ar,aD as e,bH as H,ay as ve,bS as C,a7 as kt,W as d,a5 as W,bA as O,bn as At,c9 as n,bV as _e,aA as m,b_ as $,aj as Mr,aB as x,be as vr,b$ as Wr,bO as Y,bf as rr,c0 as ba,bl as le,bj as Wa,c6 as Pl,bo as On,br as Xr,am as $a,ax as Oa,bk as Jn,aw as gn,bz as es,cb as ds,c5 as Dn,aC as Sr,cd as uo,bv as Rl}from"./CJxGDkBm.js";import{i as D}from"./PXCFrn2V.js";import{g as Ar,e as ua,p as cs,i as Za,I as El,h as Zs,X as ii,o as Nl}from"./Bjy4ygfJ.js";import{n as Ut,l as En,c as Qa,g as rn,s as hs,k as ts,S as Ll}from"./BxwkoIbZ.js";import{s as ee,f as Fe,g as pn,c as xt,e as tr,b as vn,p as $l,S as Ol,C as ql}from"./CpPNoOk-.js";import{b as sa}from"./NtFyWdpR.js";import{f as st,ae as Qs,a_ as Dl}from"./Cdw_CIdg.js";import{J as Bl,O as Fl,Q as _s}from"./CF1Tu_8c.js";import"./DKn1sQ32.js";import"./BGP1lrgu.js";import"./CN-6Tr26.js";import{k as li,s as Ra}from"./DxvSggY5.js";import{F as Ot,a4 as $s,bg as ya,cK as us,au as di,aZ as ci,aK as Wl,c9 as zl,a6 as rs,aN as Hl,cN as Ul,cM as jl,a3 as fs,aC as as,aw as Xs,I as fo,aj as Vl,bu as Kl,aS as Gl,aX as Zl,bJ as Ql,ao as Xl,cC as Yl,aP as go,c0 as ys,aI as Bn,cW as Jl,cb as ed,bn as td,b as rd,cp as ad,ag as nd,ba as bs,cr as _n,cF as sd}from"./DSQT151l.js";import{C as ui,A as od,o as id}from"./M18r7swD.js";import{b as ws,V as mo}from"./CjswKKTa.js";import{A as fi,I as ld,R as dd,q as cd}from"./v2EYTTpI.js";import{bZ as gi,j as Hn,a6 as Os,am as ns,F as ud,av as Un,aP as fd,aS as po}from"./uWDJKH9B.js";import{t as an,o as gd}from"./DAsc1V4f.js";import{ce as jn,aN as Nn,c$ as mi,d1 as za,c3 as gs,q as md,cU as pi,c_ as ms,cZ as vi,cX as hi,n as Pa,al as pd,am as vd,aI as hd,z as _d,V as yd,a3 as vo,D as _i,e0 as bd,aE as wd,ak as xd,r as kd,C as xs,ag as Id,U as yn,d$ as Sd,ab as Td,k as ho,u as Cd,Z as Md,v as Ad,i as Pd,g as ks,f as _o,a0 as Rd,$ as Ed,a9 as Nd,x as yi,y as bi,l as wi,j as Ld,s as $d,a as Od,d2 as qd,ae as Dd,L as Bd,F as Fd,a2 as yo}from"./XJqoy2ap.js";import{J4 as yt,oO as Wd,tz as Vn,nD as bo,vs as xi,vu as ki,rM as zd,yq as ss,uL as Ii,ny as Si,bl as Kn,yr as Hd,qm as Ud,t3 as jd,vl as Ti,nx as Vd,mD as Kd,i as Gd,yU as Zd,yR as Qd,yT as Xd}from"./Zldsekdv.js";import{a3 as Yd,y as Is,a1 as Jd,O as Ss,W as ec,$ as tc,k as rc,p as bn,P as cn,q as ac,G as nc,v as sc,t as oc,M as Ts,K as ic,z as lc,L as dc,_ as Sn,U as Fn,N as wo,n as xo,E as cc,c as Cs,F as ko,B as uc,w as Io,J as Tn,Q as fc,H as gc,j as mc,R as pc,T as vc,A as hc,g as _c,b as yc,D as bc,f as wc,e as xc,a as kc,C as Ic,i as Sc,d as qs,V as Ci,a4 as Tc,u as Cc,l as Mc}from"./CLg2G62j.js";import{i as Ac,e as Pc}from"./LKW_Bid7.js";import{g as Ms}from"./B5aYN90J.js";import{M as wn,C as Cn}from"./CiyIhnuP.js";import{C as So}from"./Ck5xuk0H.js";import"./DdkBNH3W.js";import{P as Rc}from"./BW6PhteS.js";import"./C2jA6pM8.js";import{c as Mi}from"./ChTqQfQN.js";import{S as Ec}from"./Qnx8Hmfg.js";import{D as To,M as Nc}from"./DrBi0w5G.js";import{b as Lc,s as Ya,c as os}from"./DdkDv5Sd.js";import{O as Gn,y as As,E as Ps,B as Rs,N as $c,m as Oc,l as qc,k as Dc,d as Ln,C as Co,f as Bc,e as Fc,g as Wc}from"./4pFiTcXi.js";import{a as Ai,s as Mo}from"./BsieX9dN.js";import{f as zc}from"./BdWqymET.js";import{c as na}from"./BxTyo7yU.js";import{a as Hc,k as Pi,h as Ys,q as Ri,l as Ir}from"./DqFWZ_g1.js";import{P as Uc}from"./DmhHEMPi.js";import{r as Es,q as Ns,B as Ao,i as jc}from"./CuHlAB4d.js";import{R as Ei,C as ps,m as Vc,h as Kc,g as Gc,i as Po,P as Zc}from"./SX1khnGy.js";import"./JKboQXkL.js";import{c as Qc,s as Xc}from"./DNieQhK8.js";import{h as An}from"./CC08YY4X.js";import{b as Yc,a as Ni}from"./CnM1-KSC.js";import{P as Li}from"./DUctnn_k.js";import{B as Jc}from"./93RUSyHg.js";import{o as $i,r as eu,e as tu}from"./Bf02lG8Y.js";import{o as Oi}from"./D4q8ggLU.js";import{A as Zn,b as qi}from"./D1cY0pVs.js";import{g as Js}from"./D0Z6csIX.js";import{a as ru,M as au}from"./BQDGTBxC.js";import{t as Nr}from"./D2MmXC4A.js";import{c as xn}from"./DGmOjLYi.js";import{A as nu}from"./CtFSFfLz.js";import{f as su,d as ou}from"./BswUVSRu.js";import{a8 as iu,N as lu,Y as du,K as Ro,X as cu,v as uu}from"./D3SYIfTl.js";import{a as fu}from"./CC7to1B5.js";import{k as gu}from"./C9UsZ4re.js";import{S as mu}from"./eln8hjjQ.js";import{u as pu,a as vu,c as Eo,S as hu}from"./DJfJ5NWH.js";import{T as Ds}from"./CFvGekuw.js";import"./DCv0ZqUq.js";import{g as _u}from"./BgDYQZ_0.js";import{a as yu}from"./C3-0e__R.js";import{b as bu}from"./C5rcw_c7.js";import{b as No}from"./DfTSMq0b.js";import{ah as Fa,n as wu}from"./Bs9TCQJX.js";import{x as xu}from"./Cs_DX3BC.js";import{c as ku}from"./CxVedbHg.js";import{r as Lo}from"./Bn5goMn4.js";function Iu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof l!="string"||!l||typeof c!="string"||!c||f!=="finished"&&f!=="ttl-expired"&&f!=="output-match"&&f!=="line-count")return null;const y=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f,...f==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function Su(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Tu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,l=iu(r)&&r.author?.principalId!==null&&o===t;return{edit:l,remove:l||t===a||s,sendNow:(l||s)&&!Di(r)}}function kn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Di(r){return Su(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function $o(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),l=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!l&&!o&&!Di(r)}const F_="pl-3.5! pr-2!";var Cu=x('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Oo=x('<span class="attachment-status svelte-d8pwpf"> </span>'),Mu=x('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Au=x("<!><span> </span>",1),Pu=x('<img alt="" draggable="false"/>'),Ru=x('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Eu=x('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),Nu=x('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Lu=x('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),$u=x("<!> <!> <!>",1),Ou=x('<img draggable="false" class="svelte-d8pwpf"/>'),qu=x('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Du=x('<div class="media-viewer svelte-d8pwpf"><!></div>'),Bu=x("<!> <!>",1);function Fu(r,t){if(new.target)return St({component:Fu,...r});Mt(t,!0);const a=(P,ye=rr,ce=rr)=>{var T=Cu(),ge=W(T);st(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return l()},get"aria-label"(){return ce()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return ce()},onclick:()=>L(ye()),children:(Me,$e)=>{ws(Me,{glyph:"x"})},$$slots:{default:!0}}),O(T),d(P,T)};let s=g(t,"items",7),o=g(t,"labels",7),l=g(t,"disabled",7,!1),c=g(t,"onMarkUp",7),f=g(t,"onEdit",7),y=g(t,"onRemove",7),v=g(t,"onRetry",7),I=g(t,"onCopy",7),N=g(t,"onMenu",7);const q=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],X=n(()=>[...s()].sort((P,ye)=>q(P)-q(ye)));let k=_e(null),E=_e(!1),se=_e(null),G=null;const R=n(()=>s().find(P=>P.id===e(se)));ar(()=>{(!e(R)||e(R).kind==="image"&&!U(e(R)))&&H(E,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function B(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ne(P,ye){if(!(l()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&f()){f()(P.id);return}G=ye,H(se,P.id,!0),H(E,!0)}}async function L(P){l()||(e(se)===P&&H(E,!1),y()(P),await ba(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const ye=s().find(ce=>ce.id===P);l()||!ye||!U(ye)||(H(E,!1),f()?f()(P):c()(P))}function te(P,ye){P.key!=="Delete"||l()||(P.preventDefault(),P.stopPropagation(),L(ye))}function S(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function J(P,ye){const ce=Bl()?P.metaKey:P.ctrlKey,T=P.key.toLowerCase();if(ce&&!P.shiftKey&&!P.altKey&&(T==="c"||T==="x")){if(!I()||!S(ye)||(P.preventDefault(),P.stopPropagation(),T==="x"&&l()))return;I()(ye.id,T==="x");return}te(P,ye.id)}function oe(P,ye){!N()||!S(ye)||(P.preventDefault(),N()(ye.id))}var ke={get items(){return s()},set items(P){s(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return l()},set disabled(P=!1){l(P),m()},get onMarkUp(){return c()},set onMarkUp(P){c(P),m()},get onEdit(){return f()},set onEdit(P){f(P),m()},get onRemove(){return y()},set onRemove(P){y(P),m()},get onRetry(){return v()},set onRetry(P){v(P),m()},get onCopy(){return I()},set onCopy(P){I(P),m()},get onMenu(){return N()},set onMenu(P){N(P),m()},$set:Tt,$on:(P,ye)=>Ct(t,P,ye)},ue=Bu(),Ce=ve(ue);{var De=P=>{var ye=Lu();Ar(ye,21,()=>e(X),ce=>ce.id,(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Ie=>{var M=Mu(),Z=W(M);{let V=n(()=>l()||e(T).status==="placing");fi(Z,{get id(){return e(T).id},get name(){return e(T).file.name},get type(){return e(T).file.imageMimeType},get imageData(){return e(T).file.imageData},get imageMimeType(){return e(T).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(V)},get placementStatus(){return e(T).status},get placementError(){return e(T).error}})}var re=C(Z,2);{var ie=V=>{var Re=Oo(),We=le(Re,!0);$(()=>{ee(Re,"data-failed",e(T).status==="failed"||void 0),ee(Re,"role",e(T).status==="failed"?"alert":"status"),ee(Re,"title",e(T).error),Y(We,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(V,Re)};D(re,V=>{e(T).status&&V(ie)})}var b=C(re,2),be=W(b);{var Ne=V=>{st(V,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Re,We)=>{Ot(Re,{get icon(){return $s},size:16})},$$slots:{default:!0}})};D(be,V=>{e(T).status==="failed"&&v()&&V(Ne)})}var A=C(be,2);{let V=n(()=>u.chat_attachmentPreview_remove_ariaLabel({name:e(T).file.name}));a(A,()=>e(T).id,()=>e(V))}O(b),O(M),$(()=>ee(M,"data-attachment-id",e(T).id)),Mr("keydown",M,V=>J(V,e(T))),Mr("contextmenu",M,V=>oe(V,e(T))),Ut(1,M,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,M,()=>Qa,()=>({tier:"fast"})),d(Ie,M)},Pe=Ie=>{const M=n(()=>e(T).kind==="image"&&!U(e(T))&&e(T).status!=="failed");var Z=Nu(),re=W(Z);{var ie=me=>{st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(T).name},get disabled(){return l()},onkeydown:Oe=>te(Oe,e(T).id),children:(Oe,Se)=>{var Be=Au(),ae=ve(Be);Ot(ae,{get icon(){return ya},size:20});var Ge=C(ae),dt=le(Ge,!0);$(()=>Y(dt,e(T).name)),d(Oe,Be)},$$slots:{default:!0}})},b=me=>{{let Oe=n(()=>B(e(T))),Se=n(()=>l()||e(T).kind==="clip"&&(e(T).recording||!e(T).url));st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(Se)},onkeydown:Be=>J(Be,e(T)),onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{var Ge=kt(),dt=ve(Ge);{var sr=Le=>{var lt=Pu();$(()=>ee(lt,"src",e(T).url)),d(Le,lt)},Gt=Le=>{var lt=Eu(),qt=C(W(lt)),Je=le(qt,!0),qe=C(qt);{var bt=j=>{var h=Ru(),he=le(h,!0);$(()=>Y(he,e(T).summary)),d(j,h)};D(qe,j=>{e(T).summary&&j(bt)})}O(lt),$(()=>Y(Je,e(T).duration)),d(Le,lt)};D(dt,Le=>{e(T).kind==="image"?Le(sr):Le(Gt,-1)})}d(Be,Ge)},$$slots:{default:!0}})}},be=n(()=>e(T).kind!=="image"||U(e(T)));D(re,me=>{e(T).kind==="file"?me(ie):e(be)&&me(b,1)})}var Ne=C(re,2);{var A=me=>{var Oe=Oo(),Se=le(Oe,!0);$(()=>{ee(Oe,"data-failed",e(T).status==="failed"||void 0),ee(Oe,"role",e(T).status==="failed"?"alert":"status"),ee(Oe,"title",e(T).error),Y(Se,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(me,Oe)};D(Ne,me=>{(e(T).status||e(M))&&me(A)})}var V=C(Ne,2),Re=W(V);{var We=me=>{st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Oe,Se)=>{Ot(Oe,{get icon(){return $s},size:16})},$$slots:{default:!0}})},et=me=>{{let Oe=n(()=>f()?o().edit:o().markUp),Se=n(()=>f()?o().edit:o().markUp);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:()=>F(e(T).id),children:(Be,ae)=>{ws(Be,{glyph:"pencil"})},$$slots:{default:!0}})}},Ke=n(()=>U(e(T))),Bt=me=>{{let Oe=n(()=>f()?o().edit:o().play),Se=n(()=>f()?o().edit:o().play);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{{let Ge=n(()=>f()?"pencil":"play");ws(Be,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};D(Re,me=>{e(T).status==="failed"&&v()?me(We):e(Ke)?me(et,1):e(T).kind==="clip"&&!e(T).recording&&e(T).url&&me(Bt,2)})}var we=C(Re,2);a(we,()=>e(T).id,()=>o().remove),O(V),O(Z),$(()=>{ee(Z,"data-kind",e(T).kind),ee(Z,"data-attachment-id",e(T).id),ee(Z,"aria-busy",e(M)||void 0)}),Mr("contextmenu",Z,me=>oe(me,e(T))),Ut(1,Z,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,Z,()=>Qa,()=>({tier:"fast"})),d(Ie,Z)};D(Me,Ie=>{e(T).kind==="image"&&e(T).file?Ie($e):Ie(Pe,-1)})}d(ce,ge)}),O(ye),sa(ye,ce=>H(k,ce),()=>e(k)),$(()=>ee(ye,"aria-label",o().attachments)),d(P,ye)};D(Ce,P=>{e(X).length&&P(De)})}var at=C(Ce,2);{const P=ce=>{var T=kt(),ge=ve(T);{var Me=$e=>{var Pe=$u(),Ie=ve(Pe);{var M=b=>{st(b,{variant:"primary",get disabled(){return l()},onclick:()=>e(R)&&F(e(R).id),children:(be,Ne)=>{vr();var A=Wr();$(()=>Y(A,o().markUp)),d(be,A)},$$slots:{default:!0}})},Z=n(()=>U(e(R)));D(Ie,b=>{e(Z)&&b(M)})}var re=C(Ie,2);st(re,{variant:"secondary",get disabled(){return l()},onclick:()=>e(R)&&L(e(R).id),children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().remove)),d(b,Ne)},$$slots:{default:!0}});var ie=C(re,2);st(ie,{variant:"ghost-light",onclick:()=>{H(E,!1)},children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().done)),d(b,Ne)},$$slots:{default:!0}}),d($e,Pe)};D(ge,$e=>{e(R)&&e(R).kind!=="file"&&$e(Me)})}d(ce,T)};let ye=n(()=>e(R)?B(e(R)):o().attachments);ui(at,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:ce=>{ce.preventDefault(),G?.isConnected?G.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(E)},set open(ce){H(E,ce,!0)},footer:P,children:(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Pe=>{var Ie=Du(),M=W(Ie);{var Z=b=>{var be=Ou();$(Ne=>{ee(be,"src",e(R).url),ee(be,"alt",Ne)},[()=>B(e(R))]),d(b,be)},re=n(()=>e(R).kind==="image"&&U(e(R))),ie=b=>{var be=qu();$(Ne=>{ee(be,"src",e(R).url),ee(be,"aria-label",Ne)},[()=>B(e(R))]),d(b,be)};D(M,b=>{e(re)?b(Z):e(R).kind==="clip"&&e(R).url&&b(ie,1)})}O(Ie),d(Pe,Ie)};D(Me,Pe=>{e(R)&&e(R).kind!=="file"&&Pe($e)})}d(ce,ge)},$$slots:{footer:!0,default:!0}})}return d(r,ue),At(ke)}Ja(["keydown","contextmenu"]);var Wu=x("<!> ",1),zu=x('<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 Bi(r,t){if(new.target)return St({component:Bi,...r});Mt(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),l=g(t,"onUseScript",7),c=_e(!1);function f(){navigator.clipboard.writeText(o()),H(c,!0),setTimeout(()=>{H(c,!1)},2e3)}function y(){l()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(S){a(S),m()},get description(){return s()},set description(S){s(S),m()},get content(){return o()},set content(S){o(S),m()},get onUseScript(){return l()},set onUseScript(S){l(S),m()},$set:Tt,$on:(S,J)=>Ct(t,S,J)},I=zu(),N=W(I),q=W(N),X=W(q),k=W(X);Ot(k,{get icon(){return us},size:"sm"}),O(X);var E=C(X,2),se=le(E,!0);O(q);var G=C(q,2),R=W(G);st(R,{variant:"ghost-light",size:"sm",onclick:f,class:"h-7 px-2",children:(S,J)=>{var oe=Wu(),ke=ve(oe);{let Ce=n(()=>e(c)?di:ci);Ot(ke,{get icon(){return e(Ce)},class:"mr-1"})}var ue=C(ke);$(Ce=>Y(ue,` ${Ce??""}`),[()=>e(c)?u.chat_shared_copied_label():u.chat_shared_copy_label()]),d(S,oe)},$$slots:{default:!0}});var U=C(R,2);{var B=S=>{st(S,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(J,oe)=>{vr();var ke=Wr();$(ue=>Y(ke,ue),[()=>u.chat_setupScriptCard_useScript_label()]),d(J,ke)},$$slots:{default:!0}})};D(U,S=>{l()&&S(B)})}O(G),O(N);var ne=C(N,2),L=le(ne,!0),F=C(ne,2),te=le(F,!0);return O(I),$(()=>{Y(se,a()),Y(L,s()),Y(te,o())}),d(r,I),At(v)}const kr={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 Hu{constructor(){ma(this,"buffer","");ma(this,"currentToolName",null);ma(this,"currentToolId",null);ma(this,"lastToolId",null);ma(this,"currentToolParams",[]);ma(this,"currentToolResultContent",[]);ma(this,"inToolResult",!1);ma(this,"inCodeBlock",!1);ma(this,"codeBlockLanguage","");ma(this,"codeBlockContent","");ma(this,"characterBuffer","");ma(this,"inCharacterMode",!1);ma(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const f=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),y=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var Cl=Object.defineProperty;var Ml=(r,t,a)=>t in r?Cl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var ma=(r,t,a)=>Ml(r,typeof t!="symbol"?t+"":t,a);import{t as St,bo as g,bw as Tt,b as Ct,bm as u,bq as Ha,bs as cr,br as Al,bp as mn}from"./51_h0jm2.js";import{ai as Ja,bs as Mt,ca as ar,aD as e,bH as H,ay as ve,bS as C,a7 as kt,W as d,a5 as W,bA as O,bn as At,c9 as n,bV as _e,aA as m,b_ as $,aj as Mr,aB as x,be as vr,b$ as Wr,bO as Y,bf as rr,c0 as ba,bl as le,bj as Wa,c6 as Pl,bo as On,br as Xr,am as $a,ax as Oa,bk as Jn,aw as gn,bz as es,cb as ds,c5 as Dn,aC as Sr,cd as uo,bv as Rl}from"./CJxGDkBm.js";import{i as D}from"./PXCFrn2V.js";import{g as Ar,e as ua,p as cs,i as Za,I as El,h as Zs,X as ii,o as Nl}from"./Bjy4ygfJ.js";import{n as Ut,l as En,c as Qa,g as rn,s as hs,k as ts,S as Ll}from"./BxwkoIbZ.js";import{s as ee,f as Fe,g as pn,c as xt,e as tr,b as vn,p as $l,S as Ol,C as ql}from"./CpPNoOk-.js";import{b as sa}from"./NtFyWdpR.js";import{f as st,ae as Qs,a_ as Dl}from"./CdOh_Fmv.js";import{J as Bl,O as Fl,Q as _s}from"./Cgn_eC9-.js";import"./DKn1sQ32.js";import"./BGP1lrgu.js";import"./CN-6Tr26.js";import{k as li,s as Ra}from"./DxvSggY5.js";import{F as Ot,a4 as $s,bg as ya,cK as us,au as di,aZ as ci,aK as Wl,c9 as zl,a6 as rs,aN as Hl,cN as Ul,cM as jl,a3 as fs,aC as as,aw as Xs,I as fo,aj as Vl,bu as Kl,aS as Gl,aX as Zl,bJ as Ql,ao as Xl,cC as Yl,aP as go,c0 as ys,aI as Bn,cW as Jl,cb as ed,bn as td,b as rd,cp as ad,ag as nd,ba as bs,cr as _n,cF as sd}from"./DSQT151l.js";import{C as ui,A as od,o as id}from"./DvrEye74.js";import{b as ws,V as mo}from"./CjswKKTa.js";import{A as fi,I as ld,R as dd,q as cd}from"./DBdkAKrm.js";import{bZ as gi,j as Hn,a6 as Os,am as ns,F as ud,av as Un,aP as fd,aS as po}from"./CMLBE7U6.js";import{t as an,o as gd}from"./DAsc1V4f.js";import{ce as jn,aN as Nn,c$ as mi,d1 as za,c3 as gs,q as md,cU as pi,c_ as ms,cZ as vi,cX as hi,n as Pa,al as pd,am as vd,aI as hd,z as _d,V as yd,a3 as vo,D as _i,e0 as bd,aE as wd,ak as xd,r as kd,C as xs,ag as Id,U as yn,d$ as Sd,ab as Td,k as ho,u as Cd,Z as Md,v as Ad,i as Pd,g as ks,f as _o,a0 as Rd,$ as Ed,a9 as Nd,x as yi,y as bi,l as wi,j as Ld,s as $d,a as Od,d2 as qd,ae as Dd,L as Bd,F as Fd,a2 as yo}from"./CgwFGLCK.js";import{J4 as yt,oO as Wd,tz as Vn,nD as bo,vs as xi,vu as ki,rM as zd,yq as ss,uL as Ii,ny as Si,bl as Kn,yr as Hd,qm as Ud,t3 as jd,vl as Ti,nx as Vd,mD as Kd,i as Gd,yU as Zd,yR as Qd,yT as Xd}from"./CbRsc9i4.js";import{a3 as Yd,y as Is,a1 as Jd,O as Ss,W as ec,$ as tc,k as rc,p as bn,P as cn,q as ac,G as nc,v as sc,t as oc,M as Ts,K as ic,z as lc,L as dc,_ as Sn,U as Fn,N as wo,n as xo,E as cc,c as Cs,F as ko,B as uc,w as Io,J as Tn,Q as fc,H as gc,j as mc,R as pc,T as vc,A as hc,g as _c,b as yc,D as bc,f as wc,e as xc,a as kc,C as Ic,i as Sc,d as qs,V as Ci,a4 as Tc,u as Cc,l as Mc}from"./CRY4aELR.js";import{i as Ac,e as Pc}from"./CnztNSaN.js";import{g as Ms}from"./B5aYN90J.js";import{M as wn,C as Cn}from"./DC_1j_gh.js";import{C as So}from"./1GGKXNxU.js";import"./ir8Qz45r.js";import{P as Rc}from"./DksUdusM.js";import"./D_r5h8IL.js";import{c as Mi}from"./ChTqQfQN.js";import{S as Ec}from"./1DKpnRTj.js";import{D as To,M as Nc}from"./CUNx-_2d.js";import{b as Lc,s as Ya,c as os}from"./Cv2YUgTX.js";import{O as Gn,y as As,E as Ps,B as Rs,N as $c,m as Oc,l as qc,k as Dc,d as Ln,C as Co,f as Bc,e as Fc,g as Wc}from"./Hd1u2Z-S.js";import{a as Ai,s as Mo}from"./BsieX9dN.js";import{f as zc}from"./BdWqymET.js";import{c as na}from"./i8PKWJT0.js";import{a as Hc,k as Pi,h as Ys,q as Ri,l as Ir}from"./DqFWZ_g1.js";import{P as Uc}from"./THdp5Vpk.js";import{r as Es,q as Ns,B as Ao,i as jc}from"./BR2t5nsF.js";import{R as Ei,C as ps,m as Vc,h as Kc,g as Gc,i as Po,P as Zc}from"./BAymCgEX.js";import"./D6dNunKo.js";import{c as Qc,s as Xc}from"./B_IEMfS6.js";import{h as An}from"./D5_auhOU.js";import{b as Yc,a as Ni}from"./CQHtdg39.js";import{P as Li}from"./DUctnn_k.js";import{B as Jc}from"./DwXKCf3Q.js";import{o as $i,r as eu,e as tu}from"./CblB0zCN.js";import{o as Oi}from"./BG2RPA7A.js";import{A as Zn,b as qi}from"./C2Vj5Vs6.js";import{g as Js}from"./A4nvdmL6.js";import{a as ru,M as au}from"./BQDGTBxC.js";import{t as Nr}from"./D2MmXC4A.js";import{c as xn}from"./DGmOjLYi.js";import{A as nu}from"./Dp9fBXaC.js";import{f as su,d as ou}from"./D6VfSAVQ.js";import{a8 as iu,N as lu,Y as du,K as Ro,X as cu,v as uu}from"./CyWgrZMk.js";import{a as fu}from"./CC7to1B5.js";import{k as gu}from"./C9UsZ4re.js";import{S as mu}from"./bb5Wjkri.js";import{u as pu,a as vu,c as Eo,S as hu}from"./DJfJ5NWH.js";import{T as Ds}from"./CRNfAyhd.js";import"./DCv0ZqUq.js";import{g as _u}from"./DZIz7Wk9.js";import{a as yu}from"./C3-0e__R.js";import{b as bu}from"./Bc7pHsTy.js";import{b as No}from"./DfTSMq0b.js";import{ah as Fa,n as wu}from"./CzW29tkb.js";import{x as xu}from"./Cj_UUgNI.js";import{c as ku}from"./BGT9uvaQ.js";import{r as Lo}from"./_EqQOSVK.js";function Iu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof l!="string"||!l||typeof c!="string"||!c||f!=="finished"&&f!=="ttl-expired"&&f!=="output-match"&&f!=="line-count")return null;const y=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f,...f==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function Su(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Tu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,l=iu(r)&&r.author?.principalId!==null&&o===t;return{edit:l,remove:l||t===a||s,sendNow:(l||s)&&!Di(r)}}function kn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Di(r){return Su(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function $o(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),l=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!l&&!o&&!Di(r)}const F_="pl-3.5! pr-2!";var Cu=x('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Oo=x('<span class="attachment-status svelte-d8pwpf"> </span>'),Mu=x('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Au=x("<!><span> </span>",1),Pu=x('<img alt="" draggable="false"/>'),Ru=x('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Eu=x('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),Nu=x('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Lu=x('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),$u=x("<!> <!> <!>",1),Ou=x('<img draggable="false" class="svelte-d8pwpf"/>'),qu=x('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Du=x('<div class="media-viewer svelte-d8pwpf"><!></div>'),Bu=x("<!> <!>",1);function Fu(r,t){if(new.target)return St({component:Fu,...r});Mt(t,!0);const a=(P,ye=rr,ce=rr)=>{var T=Cu(),ge=W(T);st(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return l()},get"aria-label"(){return ce()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return ce()},onclick:()=>L(ye()),children:(Me,$e)=>{ws(Me,{glyph:"x"})},$$slots:{default:!0}}),O(T),d(P,T)};let s=g(t,"items",7),o=g(t,"labels",7),l=g(t,"disabled",7,!1),c=g(t,"onMarkUp",7),f=g(t,"onEdit",7),y=g(t,"onRemove",7),v=g(t,"onRetry",7),I=g(t,"onCopy",7),N=g(t,"onMenu",7);const q=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],X=n(()=>[...s()].sort((P,ye)=>q(P)-q(ye)));let k=_e(null),E=_e(!1),se=_e(null),G=null;const R=n(()=>s().find(P=>P.id===e(se)));ar(()=>{(!e(R)||e(R).kind==="image"&&!U(e(R)))&&H(E,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function B(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ne(P,ye){if(!(l()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&f()){f()(P.id);return}G=ye,H(se,P.id,!0),H(E,!0)}}async function L(P){l()||(e(se)===P&&H(E,!1),y()(P),await ba(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const ye=s().find(ce=>ce.id===P);l()||!ye||!U(ye)||(H(E,!1),f()?f()(P):c()(P))}function te(P,ye){P.key!=="Delete"||l()||(P.preventDefault(),P.stopPropagation(),L(ye))}function S(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function J(P,ye){const ce=Bl()?P.metaKey:P.ctrlKey,T=P.key.toLowerCase();if(ce&&!P.shiftKey&&!P.altKey&&(T==="c"||T==="x")){if(!I()||!S(ye)||(P.preventDefault(),P.stopPropagation(),T==="x"&&l()))return;I()(ye.id,T==="x");return}te(P,ye.id)}function oe(P,ye){!N()||!S(ye)||(P.preventDefault(),N()(ye.id))}var ke={get items(){return s()},set items(P){s(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return l()},set disabled(P=!1){l(P),m()},get onMarkUp(){return c()},set onMarkUp(P){c(P),m()},get onEdit(){return f()},set onEdit(P){f(P),m()},get onRemove(){return y()},set onRemove(P){y(P),m()},get onRetry(){return v()},set onRetry(P){v(P),m()},get onCopy(){return I()},set onCopy(P){I(P),m()},get onMenu(){return N()},set onMenu(P){N(P),m()},$set:Tt,$on:(P,ye)=>Ct(t,P,ye)},ue=Bu(),Ce=ve(ue);{var De=P=>{var ye=Lu();Ar(ye,21,()=>e(X),ce=>ce.id,(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Ie=>{var M=Mu(),Z=W(M);{let V=n(()=>l()||e(T).status==="placing");fi(Z,{get id(){return e(T).id},get name(){return e(T).file.name},get type(){return e(T).file.imageMimeType},get imageData(){return e(T).file.imageData},get imageMimeType(){return e(T).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(V)},get placementStatus(){return e(T).status},get placementError(){return e(T).error}})}var re=C(Z,2);{var ie=V=>{var Re=Oo(),We=le(Re,!0);$(()=>{ee(Re,"data-failed",e(T).status==="failed"||void 0),ee(Re,"role",e(T).status==="failed"?"alert":"status"),ee(Re,"title",e(T).error),Y(We,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(V,Re)};D(re,V=>{e(T).status&&V(ie)})}var b=C(re,2),be=W(b);{var Ne=V=>{st(V,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Re,We)=>{Ot(Re,{get icon(){return $s},size:16})},$$slots:{default:!0}})};D(be,V=>{e(T).status==="failed"&&v()&&V(Ne)})}var A=C(be,2);{let V=n(()=>u.chat_attachmentPreview_remove_ariaLabel({name:e(T).file.name}));a(A,()=>e(T).id,()=>e(V))}O(b),O(M),$(()=>ee(M,"data-attachment-id",e(T).id)),Mr("keydown",M,V=>J(V,e(T))),Mr("contextmenu",M,V=>oe(V,e(T))),Ut(1,M,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,M,()=>Qa,()=>({tier:"fast"})),d(Ie,M)},Pe=Ie=>{const M=n(()=>e(T).kind==="image"&&!U(e(T))&&e(T).status!=="failed");var Z=Nu(),re=W(Z);{var ie=me=>{st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(T).name},get disabled(){return l()},onkeydown:Oe=>te(Oe,e(T).id),children:(Oe,Se)=>{var Be=Au(),ae=ve(Be);Ot(ae,{get icon(){return ya},size:20});var Ge=C(ae),dt=le(Ge,!0);$(()=>Y(dt,e(T).name)),d(Oe,Be)},$$slots:{default:!0}})},b=me=>{{let Oe=n(()=>B(e(T))),Se=n(()=>l()||e(T).kind==="clip"&&(e(T).recording||!e(T).url));st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(Se)},onkeydown:Be=>J(Be,e(T)),onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{var Ge=kt(),dt=ve(Ge);{var sr=Le=>{var lt=Pu();$(()=>ee(lt,"src",e(T).url)),d(Le,lt)},Gt=Le=>{var lt=Eu(),qt=C(W(lt)),Je=le(qt,!0),qe=C(qt);{var bt=j=>{var h=Ru(),he=le(h,!0);$(()=>Y(he,e(T).summary)),d(j,h)};D(qe,j=>{e(T).summary&&j(bt)})}O(lt),$(()=>Y(Je,e(T).duration)),d(Le,lt)};D(dt,Le=>{e(T).kind==="image"?Le(sr):Le(Gt,-1)})}d(Be,Ge)},$$slots:{default:!0}})}},be=n(()=>e(T).kind!=="image"||U(e(T)));D(re,me=>{e(T).kind==="file"?me(ie):e(be)&&me(b,1)})}var Ne=C(re,2);{var A=me=>{var Oe=Oo(),Se=le(Oe,!0);$(()=>{ee(Oe,"data-failed",e(T).status==="failed"||void 0),ee(Oe,"role",e(T).status==="failed"?"alert":"status"),ee(Oe,"title",e(T).error),Y(Se,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(me,Oe)};D(Ne,me=>{(e(T).status||e(M))&&me(A)})}var V=C(Ne,2),Re=W(V);{var We=me=>{st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Oe,Se)=>{Ot(Oe,{get icon(){return $s},size:16})},$$slots:{default:!0}})},et=me=>{{let Oe=n(()=>f()?o().edit:o().markUp),Se=n(()=>f()?o().edit:o().markUp);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:()=>F(e(T).id),children:(Be,ae)=>{ws(Be,{glyph:"pencil"})},$$slots:{default:!0}})}},Ke=n(()=>U(e(T))),Bt=me=>{{let Oe=n(()=>f()?o().edit:o().play),Se=n(()=>f()?o().edit:o().play);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{{let Ge=n(()=>f()?"pencil":"play");ws(Be,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};D(Re,me=>{e(T).status==="failed"&&v()?me(We):e(Ke)?me(et,1):e(T).kind==="clip"&&!e(T).recording&&e(T).url&&me(Bt,2)})}var we=C(Re,2);a(we,()=>e(T).id,()=>o().remove),O(V),O(Z),$(()=>{ee(Z,"data-kind",e(T).kind),ee(Z,"data-attachment-id",e(T).id),ee(Z,"aria-busy",e(M)||void 0)}),Mr("contextmenu",Z,me=>oe(me,e(T))),Ut(1,Z,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,Z,()=>Qa,()=>({tier:"fast"})),d(Ie,Z)};D(Me,Ie=>{e(T).kind==="image"&&e(T).file?Ie($e):Ie(Pe,-1)})}d(ce,ge)}),O(ye),sa(ye,ce=>H(k,ce),()=>e(k)),$(()=>ee(ye,"aria-label",o().attachments)),d(P,ye)};D(Ce,P=>{e(X).length&&P(De)})}var at=C(Ce,2);{const P=ce=>{var T=kt(),ge=ve(T);{var Me=$e=>{var Pe=$u(),Ie=ve(Pe);{var M=b=>{st(b,{variant:"primary",get disabled(){return l()},onclick:()=>e(R)&&F(e(R).id),children:(be,Ne)=>{vr();var A=Wr();$(()=>Y(A,o().markUp)),d(be,A)},$$slots:{default:!0}})},Z=n(()=>U(e(R)));D(Ie,b=>{e(Z)&&b(M)})}var re=C(Ie,2);st(re,{variant:"secondary",get disabled(){return l()},onclick:()=>e(R)&&L(e(R).id),children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().remove)),d(b,Ne)},$$slots:{default:!0}});var ie=C(re,2);st(ie,{variant:"ghost-light",onclick:()=>{H(E,!1)},children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().done)),d(b,Ne)},$$slots:{default:!0}}),d($e,Pe)};D(ge,$e=>{e(R)&&e(R).kind!=="file"&&$e(Me)})}d(ce,T)};let ye=n(()=>e(R)?B(e(R)):o().attachments);ui(at,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:ce=>{ce.preventDefault(),G?.isConnected?G.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(E)},set open(ce){H(E,ce,!0)},footer:P,children:(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Pe=>{var Ie=Du(),M=W(Ie);{var Z=b=>{var be=Ou();$(Ne=>{ee(be,"src",e(R).url),ee(be,"alt",Ne)},[()=>B(e(R))]),d(b,be)},re=n(()=>e(R).kind==="image"&&U(e(R))),ie=b=>{var be=qu();$(Ne=>{ee(be,"src",e(R).url),ee(be,"aria-label",Ne)},[()=>B(e(R))]),d(b,be)};D(M,b=>{e(re)?b(Z):e(R).kind==="clip"&&e(R).url&&b(ie,1)})}O(Ie),d(Pe,Ie)};D(Me,Pe=>{e(R)&&e(R).kind!=="file"&&Pe($e)})}d(ce,ge)},$$slots:{footer:!0,default:!0}})}return d(r,ue),At(ke)}Ja(["keydown","contextmenu"]);var Wu=x("<!> ",1),zu=x('<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 Bi(r,t){if(new.target)return St({component:Bi,...r});Mt(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),l=g(t,"onUseScript",7),c=_e(!1);function f(){navigator.clipboard.writeText(o()),H(c,!0),setTimeout(()=>{H(c,!1)},2e3)}function y(){l()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(S){a(S),m()},get description(){return s()},set description(S){s(S),m()},get content(){return o()},set content(S){o(S),m()},get onUseScript(){return l()},set onUseScript(S){l(S),m()},$set:Tt,$on:(S,J)=>Ct(t,S,J)},I=zu(),N=W(I),q=W(N),X=W(q),k=W(X);Ot(k,{get icon(){return us},size:"sm"}),O(X);var E=C(X,2),se=le(E,!0);O(q);var G=C(q,2),R=W(G);st(R,{variant:"ghost-light",size:"sm",onclick:f,class:"h-7 px-2",children:(S,J)=>{var oe=Wu(),ke=ve(oe);{let Ce=n(()=>e(c)?di:ci);Ot(ke,{get icon(){return e(Ce)},class:"mr-1"})}var ue=C(ke);$(Ce=>Y(ue,` ${Ce??""}`),[()=>e(c)?u.chat_shared_copied_label():u.chat_shared_copy_label()]),d(S,oe)},$$slots:{default:!0}});var U=C(R,2);{var B=S=>{st(S,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(J,oe)=>{vr();var ke=Wr();$(ue=>Y(ke,ue),[()=>u.chat_setupScriptCard_useScript_label()]),d(J,ke)},$$slots:{default:!0}})};D(U,S=>{l()&&S(B)})}O(G),O(N);var ne=C(N,2),L=le(ne,!0),F=C(ne,2),te=le(F,!0);return O(I),$(()=>{Y(se,a()),Y(L,s()),Y(te,o())}),d(r,I),At(v)}const kr={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 Hu{constructor(){ma(this,"buffer","");ma(this,"currentToolName",null);ma(this,"currentToolId",null);ma(this,"lastToolId",null);ma(this,"currentToolParams",[]);ma(this,"currentToolResultContent",[]);ma(this,"inToolResult",!1);ma(this,"inCodeBlock",!1);ma(this,"codeBlockLanguage","");ma(this,"codeBlockContent","");ma(this,"characterBuffer","");ma(this,"inCharacterMode",!1);ma(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const f=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),y=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:y,metadata:{toolId:this.currentToolId,isError:f}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const l=t.indexOf("🤖"),c=t.substring(l+2);if(this.inCharacterMode=!0,this.characterBuffer="",c&&c.trim()&&c!==`
|
|
3
3
|
`){const f=c.replace(/^\n/,"");f&&(this.characterBuffer=f)}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(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as d}from"./DqFWZ_g1.js";import{bm as t}from"./51_h0jm2.js";import{J4 as n,nL as m,p1 as _}from"./
|
|
1
|
+
import{h as d}from"./DqFWZ_g1.js";import{bm as t}from"./51_h0jm2.js";import{J4 as n,nL as m,p1 as _}from"./CbRsc9i4.js";import{c2 as h,aZ as g}from"./CgwFGLCK.js";import{P as H}from"./CbyU6cEf.js";import{w as f,m as w,e as b}from"./YcqSYZ1W.js";function u(e){return e.lastBackupAt?d(e.lastBackupAt):""}function k(e){if(e.starting)return t.workspaceHome_starting_label();if(e.state==="moving")return t.workspaceHome_banner_moving();if(e.unknownState)return t.workspaceHome_banner_detachedNoBackup({name:e.name});const o=u(e);return o?t.workspaceHome_banner_detached({name:e.name,time:o}):t.workspaceHome_banner_detachedNoBackup({name:e.name})}function A(e){return e?.unavailable?k(e):null}function y(e){if(e.banner==="detached"||e.banner==="moving")return k(e);if(e.banner!=="backupWarning")return"";const o=u(e);return o?t.workspaceHome_banner_backupWarning({name:e.name,time:o}):t.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function N(e){switch(e.setup?.phase){case"preparing":case"runningSetup":return t.workspaceHome_opening_title({name:e.name});case"openFailed":return t.workspaceHome_openFailed_title({name:e.name});case"setupFailed":return t.remoteAgent_notice_setupFailed_title({machine:e.name});default:return""}}function R(e){const o=e.setup;switch(o?.phase){case"preparing":return t.remoteAgent_status_preparingCheckout();case"runningSetup":return t.remoteAgent_status_runningSetup();case"openFailed":return t.workspaceHome_openFailed_hint({name:e.name});case"setupFailed":return o.exitCode!==null?t.workspaceHome_setupFailed_exitCode({code:String(o.exitCode)}):o.timedOut?t.workspaceHome_setupFailed_timeout():t.workspaceHome_setupFailed_generic();default:return null}}function D(e){const o=e.setup,r=o?.phase==="openFailed"||o?.phase==="setupFailed"?o.error:null;return r&&r.replace(/^[a-z][a-z0-9-]*:\s*/,"").trim()||null}function E(e){return e==="detached"?t.workspaceHome_marker_detached():t.workspaceHome_marker_moving()}function C(e){const o=u(e);return o?t.workspaceHome_header_lastBackup({time:o}):null}function V(e){if(!e.moveWarning)return null;const o=u(e);return o?t.workspaceHome_moveDialog_warning({name:e.name,time:o}):t.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function L(e){switch(e.code){case"forbidden":return t.workspaceHome_moveError_forbidden();case"homes-unsupported":return t.workspaceHome_moveError_homesUnsupported();case"home-moving":return t.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return t.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return t.workspaceHome_moveError_updateRequired();default:return t.workspaceHome_moveError_failed({message:e.message})}}const i=new WeakMap,S=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o),a=r?.home;if(!a)return null;const s=i.get(a);if(s)return s;const c=f(r);return c&&i.set(a,c),c}),q=n.createSelector((e,o)=>w(m(e.workspace.workspaces,o),!h.select(e,o))),F=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o)?.home;return r?.setup?.state==="failed"?_(r.homeId,r.setup.finishedAt):""}),U=n.createSelector((e,o)=>{const r=S.select(e,o);if(r?.banner!=="setupFailed")return r;const a=F.select(e,o);if(!a||!e.workspaceHome.dismissedSetupFailures[a])return r;const s=p.get(r);if(s)return s;const c={...r,banner:null};return p.set(r,c),c}),p=new WeakMap,z=n.createSelector((e,o)=>{const r=e.workspaceHome.setupOutputs[o],a=m(e.workspace.workspaces,o)?.home?.homeId;return r&&r.homeId===a?r:null}),I=n.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),J=n.createSelector(e=>e.workspaceHome.dialogWorkspaceId),K=n.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),P=n.createSelector(e=>e.workspaceHome.moveFailure),W=[],l=new Map,j=n.createSelector((e,o)=>{if(!o)return W;const r=b({agents:g.select(e,o),machineRows:H.select(e)}),a=JSON.stringify(r),s=l.get(o);return s?.key===a?s.options:(l.set(o,{key:a,options:r}),r)}),Z=n.createSelector((e,o)=>m(e.workspace.workspaces,o)!==void 0);export{C as a,E as b,V as c,D as d,A as e,R as f,N as g,y as h,k as i,F as j,z as k,I as l,L as m,J as n,P as o,j as p,K as q,U as r,q as s,S as t,Z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./B5aYN90J.js";import{z as i,o as c,aX as s}from"./
|
|
1
|
+
import{a as l}from"./B5aYN90J.js";import{z as i,o as c,aX as s}from"./CbRsc9i4.js";async function b(e){if(!e)throw new Error("Missing required parameter: url");let o;try{o=new URL(e)}catch{throw new Error(`Invalid external URL: ${e}`)}if(!l.EXTERNAL.includes(o.protocol)&&!l.EXTERNAL_EXACT.includes(e))throw new Error(`Refusing to open URL externally (scheme not allowed): ${o.protocol}`);if(typeof window>"u")throw new Error("Unable to open external URL outside a window context");const r=window.electronAPI;if(r&&typeof r.invoke=="function")try{const a=await r.invoke("shell:openExternal",{url:e});if(a&&a.success===!0)return}catch{}const t=window.open(e,"_blank");if(t){t.opener=null;return}const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener noreferrer",document.body.appendChild(n),n.click(),n.remove()}const p={blue:"bg-blue-600 dark:bg-blue-400",indigo:"bg-indigo-600 dark:bg-indigo-400",violet:"bg-violet-600 dark:bg-violet-400",rose:"bg-rose-600 dark:bg-rose-400",orange:"bg-orange-600 dark:bg-orange-400",emerald:"bg-emerald-600 dark:bg-emerald-400",teal:"bg-teal-600 dark:bg-teal-400"},d={blue:"var(--color-blue-500)",indigo:"var(--color-indigo-500)",violet:"var(--color-violet-500)",rose:"var(--color-rose-500)",orange:"var(--color-orange-500)",emerald:"var(--color-emerald-500)",teal:"var(--color-teal-500)"};function g(e){return e===void 0?i:e}function f(e){return[null,...c.filter(o=>s.includes(o)||o===e)]}function C(e,o){const r=g(e);return o||r===null?"transparent":`color-mix(in srgb, ${d[r]} 7%, transparent)`}function N(e,o){const r=C(e,o);return r==="transparent"?void 0:`linear-gradient(${r} 0 0)`}export{p as C,d as a,N as b,f as c,C as d,b as o,g as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J4 as s,i7 as a,ma as S,nL as f,mn as m}from"./
|
|
1
|
+
import{J4 as s,i7 as a,ma as S,nL as f,mn as m}from"./CbRsc9i4.js";import{v as O}from"./BSsEOl8-.js";import{dL as d,b4 as b,dT as k}from"./CgwFGLCK.js";const v=s.createSelector((t,e)=>{if(b.select(t,e)&&k.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),L=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),B=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),G=s.createSelector((t,e)=>i(t,e).detectionOperation),J=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),P=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),T=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),U=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),V=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),q=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{T as selectAllWorkspaceScriptEntries,V as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,G as selectScriptDetectionOperation,W as selectScriptEntries,q as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,U as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,J as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,L as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,P as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,aW as o}from"./
|
|
1
|
+
import{b as a,aW as o}from"./CUNx-_2d.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
|