@intent-hq/web 2.283.1 → 2.285.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{DyG--B3U.js → -KtznSS-.js} +1 -1
- package/web/app/immutable/chunks/{86I704nb.js → 0XyrKsuA.js} +1 -1
- package/web/app/immutable/chunks/{Cul55jvw.js → 1lVCCXL6.js} +3 -3
- package/web/app/immutable/chunks/{CqnYcuvr.js → 1rwbAxiY.js} +1 -1
- package/web/app/immutable/chunks/{B4nXFAp1.js → 2eBUyHOS.js} +3 -3
- package/web/app/immutable/chunks/{CvLXNZbW.js → 32YnGblO.js} +1 -1
- package/web/app/immutable/chunks/{DpHc5A-z.js → 6ASkEKEx.js} +1 -1
- package/web/app/immutable/chunks/{mYHRHufZ.js → 70g8kmTR.js} +1 -1
- package/web/app/immutable/chunks/{D0ubTGV_.js → 8puonPwK.js} +1 -1
- package/web/app/immutable/chunks/{kbx4HHUe.js → 9s6R6NFl.js} +2 -2
- package/web/app/immutable/chunks/{DSakTSDY.js → ASxUuKIZ.js} +1 -1
- package/web/app/immutable/chunks/{DVch_AcI.js → B-kQ0Vz5.js} +1 -1
- package/web/app/immutable/chunks/{oRTpyK_P.js → B0UymEvm.js} +1 -1
- package/web/app/immutable/chunks/{FGzP6Npj.js → B0a31Ljt.js} +1 -1
- package/web/app/immutable/chunks/{BlxovLoL.js → B0w4Cxo_.js} +1 -1
- package/web/app/immutable/chunks/{Be5Pyj-G.js → B1EuyQvk.js} +1 -1
- package/web/app/immutable/chunks/{Dvf5hKr0.js → B3G2wO_D.js} +1 -1
- package/web/app/immutable/chunks/{itr72ypM.js → B4GCMjY3.js} +1 -1
- package/web/app/immutable/chunks/{DGTcJSfI.js → B4VDa7RO.js} +1 -1
- package/web/app/immutable/chunks/B4kKZm1B.js +1 -0
- package/web/app/immutable/chunks/{CSVS8cGP.js → B7R5ywXv.js} +1 -1
- package/web/app/immutable/chunks/{-eynjkyq.js → B8LfMxTf.js} +1 -1
- package/web/app/immutable/chunks/{CoIHYLew.js → B91hcydD.js} +1 -1
- package/web/app/immutable/chunks/{JoMw8Mnh.js → B9DD1rvd.js} +1 -1
- package/web/app/immutable/chunks/{BQkOKtmR.js → B9YdV5Lr.js} +1 -1
- package/web/app/immutable/chunks/{Bm_v6qLq.js → BA2m5W5p.js} +1 -1
- package/web/app/immutable/chunks/{QEFaNqbo.js → BAuomW3Q.js} +1 -1
- package/web/app/immutable/chunks/{CVXsWkbg.js → BB-v27nE.js} +1 -1
- package/web/app/immutable/chunks/{C8PgiJ6Y.js → BDnf9UFd.js} +1 -1
- package/web/app/immutable/chunks/{BrzmNBOR.js → BEu9jjb7.js} +1 -1
- package/web/app/immutable/chunks/{CRzjInFH.js → BFDtkLj3.js} +1 -1
- package/web/app/immutable/chunks/{CiFw-8Aw.js → BFlCxloC.js} +1 -1
- package/web/app/immutable/chunks/{yZjABy7c.js → BHdVwar2.js} +1 -1
- package/web/app/immutable/chunks/{DSad0YxQ.js → BJ5sH6i3.js} +1 -1
- package/web/app/immutable/chunks/{BIUeJ7Ke.js → BJwGOB8K.js} +1 -1
- package/web/app/immutable/chunks/{DOWY58Gk.js → BKYBbIMC.js} +1 -1
- package/web/app/immutable/chunks/{BM2v-1zr.js → BLT4lwJH.js} +1 -1
- package/web/app/immutable/chunks/{DNdUAl79.js → BMCIczJY.js} +1 -1
- package/web/app/immutable/chunks/{BSa29cCP.js → BMqkZHSQ.js} +4 -4
- package/web/app/immutable/chunks/{CI86PNUZ.js → BOIoayZB.js} +1 -1
- package/web/app/immutable/chunks/{DCpb2VL6.js → BOxsG-23.js} +1 -1
- package/web/app/immutable/chunks/{DWsGxz2C.js → BPQohPc9.js} +1 -1
- package/web/app/immutable/chunks/{MivJSmtA.js → BQ-Vdhjp.js} +1 -1
- package/web/app/immutable/chunks/{Cobn53T5.js → BRaDvZhu.js} +1 -1
- package/web/app/immutable/chunks/{CRcZFIyJ.js → BRiWAWWR.js} +1 -1
- package/web/app/immutable/chunks/{KT-2Ekxp.js → BRrnGZdq.js} +1 -1
- package/web/app/immutable/chunks/{DkfRsyNq.js → BRsvqYQJ.js} +1 -1
- package/web/app/immutable/chunks/{BzUhrKys.js → BW5WMYMF.js} +1 -1
- package/web/app/immutable/chunks/{us_QodLQ.js → BYD9CrbJ.js} +1 -1
- package/web/app/immutable/chunks/{B241tUXW.js → B_BtFokc.js} +1 -1
- package/web/app/immutable/chunks/{DHon_8tj.js → BerKnKvV.js} +1 -1
- package/web/app/immutable/chunks/{C17u3SPp.js → BfCM8g6D.js} +1 -1
- package/web/app/immutable/chunks/{BNLICSI-.js → Bi5G5jdW.js} +1 -1
- package/web/app/immutable/chunks/{CGclmlzx.js → BijxVENA.js} +1 -1
- package/web/app/immutable/chunks/{BXWTCqoP.js → BioKfdhs.js} +1 -1
- package/web/app/immutable/chunks/{D6aq9EL_.js → Bj2REgAl.js} +1 -1
- package/web/app/immutable/chunks/{D5Yn3bZC.js → Bj2YjLqH.js} +4 -4
- package/web/app/immutable/chunks/{oEdBdTuH.js → BjO6mATN.js} +1 -1
- package/web/app/immutable/chunks/{CSoIbBhB.js → BkTES_s_.js} +1 -1
- package/web/app/immutable/chunks/{B0dFfRzP.js → BlGCnZqu.js} +1 -1
- package/web/app/immutable/chunks/{uEiZ2aa0.js → BlobiUVj.js} +1 -1
- package/web/app/immutable/chunks/{D_o99_fG.js → BoAgG62K.js} +1 -1
- package/web/app/immutable/chunks/{BLfSGdog.js → BoyajzxN.js} +1 -1
- package/web/app/immutable/chunks/{D8G2wLaP.js → Bpei5bK8.js} +1 -1
- package/web/app/immutable/chunks/{DWbuBB3d.js → BqEq2gS8.js} +1 -1
- package/web/app/immutable/chunks/{BSERRzdN.js → BqSjWCdR.js} +1 -1
- package/web/app/immutable/chunks/{BweEgIMi.js → BrPrpju0.js} +1 -1
- package/web/app/immutable/chunks/{jN_7w48e.js → BrXpFLv_.js} +1 -1
- package/web/app/immutable/chunks/{-FJQK9pf.js → Btdv9Hrh.js} +1 -1
- package/web/app/immutable/chunks/BuKPgt_Y.js +184 -0
- package/web/app/immutable/chunks/{BaWdIDeU.js → BuRX-tbO.js} +1 -1
- package/web/app/immutable/chunks/{DPbm6slt.js → Butq4Y1l.js} +4 -4
- package/web/app/immutable/chunks/{CHb28ISq.js → BvuznwRa.js} +1 -1
- package/web/app/immutable/chunks/{kkexgKXz.js → BwcCzTcz.js} +1 -1
- package/web/app/immutable/chunks/{k-AP8VlM.js → C-PJ15bY.js} +1 -1
- package/web/app/immutable/chunks/{P0y5VMqy.js → C2kpUgbe.js} +1 -1
- package/web/app/immutable/chunks/{CbcE07N6.js → C4eeWJf-.js} +1 -1
- package/web/app/immutable/chunks/{Ct5pe7Ek.js → C4mRaa7L.js} +1 -1
- package/web/app/immutable/chunks/{X8KOCQId.js → C51KzdSG.js} +1 -1
- package/web/app/immutable/chunks/{LNCq34-O.js → C5vTcsb2.js} +1 -1
- package/web/app/immutable/chunks/{Mt7x2IZs.js → C64d2sYd.js} +1 -1
- package/web/app/immutable/chunks/{BqgmbqM-.js → C6LRlrtG.js} +1 -1
- package/web/app/immutable/chunks/{CuViOyzR.js → C7A26Vlu.js} +1 -1
- package/web/app/immutable/chunks/{2zaEEAE2.js → C8BEXIPc.js} +1 -1
- package/web/app/immutable/chunks/{B856U1Jr.js → C8xd2WWY.js} +1 -1
- package/web/app/immutable/chunks/{BycWLeDe.js → C8yAGnZY.js} +1 -1
- package/web/app/immutable/chunks/{BPp3W2jV.js → C9o24MoC.js} +1 -1
- package/web/app/immutable/chunks/{JKrLJ2R_.js → CAkMXI-6.js} +44 -44
- package/web/app/immutable/chunks/{Sqmoz5pv.js → CCU5YAgB.js} +1 -1
- package/web/app/immutable/chunks/{DqG8xjZW.js → CDnN0LSW.js} +1 -1
- package/web/app/immutable/chunks/{Cnz8RKk9.js → CEQqb3fD.js} +1 -1
- package/web/app/immutable/chunks/{I-6kOw9r.js → CEd0rr6P.js} +1 -1
- package/web/app/immutable/chunks/{BKkrgjsa.js → CFzJYgT5.js} +1 -1
- package/web/app/immutable/chunks/{BxuhDHqB.js → CG5J-qd_.js} +1 -1
- package/web/app/immutable/chunks/{ebuf-RO9.js → CHSBtC7Q.js} +1 -1
- package/web/app/immutable/chunks/{BW9EmetF.js → CHXt_ftw.js} +1 -1
- package/web/app/immutable/chunks/{ylZv2UEj.js → CHaUiotE.js} +1 -1
- package/web/app/immutable/chunks/{BMt7MpM8.js → CHjSilfW.js} +1 -1
- package/web/app/immutable/chunks/{Bw1SBWCL.js → CJQrM64N.js} +3 -3
- package/web/app/immutable/chunks/{D39KsI93.js → CJaPqUNh.js} +1 -1
- package/web/app/immutable/chunks/{IUhIao0l.js → CMO5zsjQ.js} +1 -1
- package/web/app/immutable/chunks/{DHN03i25.js → CMqMo1Af.js} +1 -1
- package/web/app/immutable/chunks/{CZH06yTf.js → CMt5MqSJ.js} +1 -1
- package/web/app/immutable/chunks/{BIZ0uXaU.js → COL0pyet.js} +1 -1
- package/web/app/immutable/chunks/{DPyjdIy2.js → CQ7Jnj9E.js} +1 -1
- package/web/app/immutable/chunks/{BNe0FUML.js → CQTIadOp.js} +1 -1
- package/web/app/immutable/chunks/{CeGnK4JQ.js → CRhgbDg2.js} +50 -50
- package/web/app/immutable/chunks/{B9un2a8L.js → CS1d84Cn.js} +1 -1
- package/web/app/immutable/chunks/{D7gI_V1F.js → CTozw_6a.js} +1 -1
- package/web/app/immutable/chunks/{Bq6ix99x.js → CTwzQE4y.js} +1 -1
- package/web/app/immutable/chunks/{uDFKivEo.js → CULilvBT.js} +1 -1
- package/web/app/immutable/chunks/{CmLvFRqe.js → CV2PaujE.js} +2 -2
- package/web/app/immutable/chunks/{BTxRR5tz.js → CVBBsS8i.js} +1 -1
- package/web/app/immutable/chunks/{BC7qvj8J.js → CVUNrf_6.js} +1 -1
- package/web/app/immutable/chunks/{DRHN1_Cd.js → CW2_8Qo8.js} +1 -1
- package/web/app/immutable/chunks/{DfTHDtr3.js → CWgAcLvx.js} +1 -1
- package/web/app/immutable/chunks/{C04G6COq.js → CX6Z33tv.js} +1 -1
- package/web/app/immutable/chunks/{DfDa-Hf6.js → CYElNz1m.js} +1 -1
- package/web/app/immutable/chunks/{5JlRwIXk.js → CZUDc12W.js} +1 -1
- package/web/app/immutable/chunks/{BplvCBzc.js → C_fEvnNK.js} +1 -1
- package/web/app/immutable/chunks/{CeH1-IFA.js → Ccj-b14I.js} +1 -1
- package/web/app/immutable/chunks/{-EQ6B0ad.js → CdT170lG.js} +6 -6
- package/web/app/immutable/chunks/{BpLK-vah.js → Ceyasj46.js} +1 -1
- package/web/app/immutable/chunks/{BNm8i956.js → CfAqizJ3.js} +1 -1
- package/web/app/immutable/chunks/{CuOjrr_z.js → CfYh5raT.js} +1 -1
- package/web/app/immutable/chunks/{D_PPEYyI.js → CfgPxwA4.js} +1 -1
- package/web/app/immutable/chunks/{D8AXxi58.js → CgWJ7tKh.js} +1 -1
- package/web/app/immutable/chunks/{CR7ldtgw.js → ChDcu7sM.js} +1 -1
- package/web/app/immutable/chunks/{CcEiTh-4.js → ChYWsi4Z.js} +1 -1
- package/web/app/immutable/chunks/{xHGNzBhq.js → ChmO5DTP.js} +1 -1
- package/web/app/immutable/chunks/{DWjmi9tH.js → CiB1yTSc.js} +3 -3
- package/web/app/immutable/chunks/{0K6BfmBv.js → Cj_Tm5wU.js} +1 -1
- package/web/app/immutable/chunks/{CJqvN_qS.js → CkNc-1DL.js} +1 -1
- package/web/app/immutable/chunks/{dp7e7xW2.js → CkqPtSf5.js} +1 -1
- package/web/app/immutable/chunks/{DXPPFxlV.js → ClNs6jou.js} +1 -1
- package/web/app/immutable/chunks/{CptC_Uum.js → CnuSxcLR.js} +1 -1
- package/web/app/immutable/chunks/{AL4WvJsG.js → CotgBJSP.js} +1 -1
- package/web/app/immutable/chunks/{CMiRnadp.js → CoyHhRwd.js} +1 -1
- package/web/app/immutable/chunks/{DqlqvyKI.js → CozIiFS7.js} +1 -1
- package/web/app/immutable/chunks/{cOgdKI6o.js → Cp09JH6d.js} +1 -1
- package/web/app/immutable/chunks/{AdAUM0KU.js → Cp9AnykR.js} +1 -1
- package/web/app/immutable/chunks/{BM-sVLs9.js → CpPsvdhC.js} +1 -1
- package/web/app/immutable/chunks/CrXlvCkv.js +3 -0
- package/web/app/immutable/chunks/{BM9f6Xn6.js → Crq4Js3_.js} +1 -1
- package/web/app/immutable/chunks/{ByWgRTUb.js → CvZhT_UL.js} +1 -1
- package/web/app/immutable/chunks/{Bda__gQr.js → Cve5pOPi.js} +2 -2
- package/web/app/immutable/chunks/{CE7hy_eJ.js → CwK4Fl7A.js} +2 -2
- package/web/app/immutable/chunks/{BYaK8uq0.js → Cwxvd99b.js} +1 -1
- package/web/app/immutable/chunks/{Cr8elldh.js → CxDLMfRf.js} +1 -1
- package/web/app/immutable/chunks/{Cbp3zliH.js → Cz9_gz0r.js} +1 -1
- package/web/app/immutable/chunks/{D4i52eN2.js → Czc4IAh9.js} +1 -1
- package/web/app/immutable/chunks/{C-D97gL1.js → Czzw_Pvc.js} +1 -1
- package/web/app/immutable/chunks/{dfIdHF6z.js → D0csyvlS.js} +1 -1
- package/web/app/immutable/chunks/{Bh14bdXE.js → D0pR1-a6.js} +1 -1
- package/web/app/immutable/chunks/{CARkdujD.js → D1dPbxoX.js} +1 -1
- package/web/app/immutable/chunks/{D9GJ60AX.js → D2Fdja4t.js} +1 -1
- package/web/app/immutable/chunks/{CfgmsyOw.js → D38kCxZ9.js} +1 -1
- package/web/app/immutable/chunks/{CQRR0AOa.js → D4K0RFHm.js} +1 -1
- package/web/app/immutable/chunks/D4Lumjru.js +1 -0
- package/web/app/immutable/chunks/D4MoKNoK.js +1 -0
- package/web/app/immutable/chunks/{DYpEID-4.js → D4RvTAYA.js} +1 -1
- package/web/app/immutable/chunks/{3HhYuBQ5.js → D5jqrM_N.js} +1 -1
- package/web/app/immutable/chunks/{_Ha8_PaU.js → D6XYE7JV.js} +1 -1
- package/web/app/immutable/chunks/{BB4kjTGV.js → D6dtEt_1.js} +1 -1
- package/web/app/immutable/chunks/{BYX2DQge.js → D72pFxfr.js} +1 -1
- package/web/app/immutable/chunks/{D3s69DNC.js → D7P2CXpO.js} +3 -3
- package/web/app/immutable/chunks/{C1Yon3Fs.js → D7ht9fTY.js} +1 -1
- package/web/app/immutable/chunks/{DoI-lOCr.js → D82TCSK5.js} +1 -1
- package/web/app/immutable/chunks/{T3Bh0XrL.js → D8HMZQ9R.js} +1 -1
- package/web/app/immutable/chunks/{DX7KyYLV.js → D8U0PEIU.js} +1 -1
- package/web/app/immutable/chunks/{CGtte9IE.js → D8_OuTD3.js} +1 -1
- package/web/app/immutable/chunks/{DECP5P_I.js → D8a6fWF_.js} +1 -1
- package/web/app/immutable/chunks/{DIgbsss0.js → DAY2MDvD.js} +1 -1
- package/web/app/immutable/chunks/{BJhIFFGs.js → DB6_aOnf.js} +3 -3
- package/web/app/immutable/chunks/{CqB0SlYo.js → DB_2g4tK.js} +1 -1
- package/web/app/immutable/chunks/{DcIvDrh5.js → DBicYI5c.js} +1 -1
- package/web/app/immutable/chunks/{kc3pShLm.js → DBmzovBA.js} +1 -1
- package/web/app/immutable/chunks/DC38WcVm.js +1 -0
- package/web/app/immutable/chunks/{BKUFkB2Z.js → DDhakcOb.js} +1 -1
- package/web/app/immutable/chunks/DFXw4s8S.js +1 -0
- package/web/app/immutable/chunks/{1kQYhwzI.js → DFvnP41F.js} +1 -1
- package/web/app/immutable/chunks/{BTxaodpe.js → DG5KvEVf.js} +1 -1
- package/web/app/immutable/chunks/{6Rnnu0Za.js → DHBpY1EK.js} +1 -1
- package/web/app/immutable/chunks/{DiLRxk1W.js → DI7pTzx5.js} +1 -1
- package/web/app/immutable/chunks/{DhJybiGT.js → DKF2EjTY.js} +1 -1
- package/web/app/immutable/chunks/{DJly-gFW.js → DL5rLLvU.js} +1 -1
- package/web/app/immutable/chunks/{CiV78Mds.js → DOE_TCNp.js} +1 -1
- package/web/app/immutable/chunks/{DV0nUf5d.js → DOPcy6T2.js} +1 -1
- package/web/app/immutable/chunks/{CX0jnzIf.js → DPY72hn4.js} +1 -1
- package/web/app/immutable/chunks/{BpPk83wC.js → DPvthnru.js} +1 -1
- package/web/app/immutable/chunks/{DflDaBxQ.js → DQOyHGtr.js} +1 -1
- package/web/app/immutable/chunks/{DFDb4afa.js → DQafeec3.js} +1 -1
- package/web/app/immutable/chunks/{BdMtzsOL.js → DR1QbPSk.js} +1 -1
- package/web/app/immutable/chunks/{BMOHjFjD.js → DRdRLmUz.js} +1 -1
- package/web/app/immutable/chunks/{CNLVfjPb.js → DVwKfMN5.js} +1 -1
- package/web/app/immutable/chunks/{B3t7QTl4.js → DWzbf_aU.js} +1 -1
- package/web/app/immutable/chunks/{2sWuLeQM.js → DX0AlGFV.js} +1 -1
- package/web/app/immutable/chunks/{Bcdu3rtl.js → DX0hE1oC.js} +1 -1
- package/web/app/immutable/chunks/{Bi0iCGDl.js → DX3MlPN0.js} +1 -1
- package/web/app/immutable/chunks/{Bdp7u5fL.js → DXJ3D6-0.js} +2 -2
- package/web/app/immutable/chunks/{Ctw6lIEV.js → DYX4kEq9.js} +1 -1
- package/web/app/immutable/chunks/{DwwmXlwG.js → DZRaa7LH.js} +1 -1
- package/web/app/immutable/chunks/{C1_JJ0WX.js → Dbuv3b_7.js} +2 -2
- package/web/app/immutable/chunks/{BrUeG1RC.js → DditQ6Dc.js} +1 -1
- package/web/app/immutable/chunks/{CiJsLr2J.js → De4WWpS0.js} +1 -1
- package/web/app/immutable/chunks/{-cKrxpnw.js → DeJ360tt.js} +1 -1
- package/web/app/immutable/chunks/{CBY4R5Io.js → DgFojmqv.js} +3 -3
- package/web/app/immutable/chunks/{Dr6CAh-x.js → DhQAmnDS.js} +1 -1
- package/web/app/immutable/chunks/{B9hh5ps3.js → DhkOw60r.js} +1 -1
- package/web/app/immutable/chunks/{N_3EVFPG.js → Di6XfBOT.js} +1 -1
- package/web/app/immutable/chunks/{FxlRoZ6N.js → Dijv8faG.js} +1 -1
- package/web/app/immutable/chunks/{DSpny-f5.js → DjVrYm-R.js} +1 -1
- package/web/app/immutable/chunks/{YsJRyh1t.js → DlYL66WK.js} +2 -2
- package/web/app/immutable/chunks/{DEghD5AV.js → DlYrPe_w.js} +1 -1
- package/web/app/immutable/chunks/{Btf9QGuY.js → Dlu0_GVa.js} +1 -1
- package/web/app/immutable/chunks/{D-SL5jmx.js → DmVYXUKU.js} +1 -1
- package/web/app/immutable/chunks/{Dekj0CRz.js → Dmip1qZq.js} +1 -1
- package/web/app/immutable/chunks/{DyzC-8bY.js → DpXfO8nM.js} +1 -1
- package/web/app/immutable/chunks/{BLKmUQ7j.js → DpyM727L.js} +1 -1
- package/web/app/immutable/chunks/{BGWyYsdo.js → Dq_FaIX5.js} +1 -1
- package/web/app/immutable/chunks/{DaBUZyWc.js → Ds7can9q.js} +1 -1
- package/web/app/immutable/chunks/{BIIzJP0L.js → DuKFlC9j.js} +1 -1
- package/web/app/immutable/chunks/{D7-ADqnT.js → DwW5MiN3.js} +1 -1
- package/web/app/immutable/chunks/{CQS12qgy.js → DwbzbVQ3.js} +1 -1
- package/web/app/immutable/chunks/{Clzmvd7M.js → DwwMc3td.js} +1 -1
- package/web/app/immutable/chunks/{67V3Eqst.js → DxJXJeWp.js} +1 -1
- package/web/app/immutable/chunks/{DNTeyAGR.js → DxlpLNnB.js} +1 -1
- package/web/app/immutable/chunks/{DvIWu0bM.js → DzMB8eQW.js} +1 -1
- package/web/app/immutable/chunks/{ytSsfHOi.js → EPni7PhH.js} +1 -1
- package/web/app/immutable/chunks/{DZwtNfnB.js → F42L1irN.js} +2 -2
- package/web/app/immutable/chunks/{bG4sEGuX.js → H_dyzYix.js} +1 -1
- package/web/app/immutable/chunks/{OtBI4VRo.js → HfuFYz2u.js} +1 -1
- package/web/app/immutable/chunks/{BXmUGAB5.js → I1eQnBry.js} +1 -1
- package/web/app/immutable/chunks/{_WbplBv2.js → J5Q3706J.js} +1 -1
- package/web/app/immutable/chunks/{CVC7R5g8.js → JUqct0gC.js} +1 -1
- package/web/app/immutable/chunks/{BzgtWDxy.js → KxpMwUsB.js} +1 -1
- package/web/app/immutable/chunks/{xcwRs97P.js → LFOlphb5.js} +1 -1
- package/web/app/immutable/chunks/{DO3zoQaK.js → LOxI5KoQ.js} +1 -1
- package/web/app/immutable/chunks/{BDq1sVyx.js → LiYeJQ_y.js} +1 -1
- package/web/app/immutable/chunks/{BdXZBn8p.js → OX_6myWb.js} +3 -3
- package/web/app/immutable/chunks/{BMBkpFaV.js → Qyi-W7KZ.js} +1 -1
- package/web/app/immutable/chunks/{CNPgXL7O.js → RDcDz1X1.js} +1 -1
- package/web/app/immutable/chunks/{B45Lzffx.js → S9ot6IO_.js} +1 -1
- package/web/app/immutable/chunks/Sk9pLJI5.js +6 -0
- package/web/app/immutable/chunks/{BxuY-d7z.js → SlH326tK.js} +1 -1
- package/web/app/immutable/chunks/{ED1Md46o.js → UMObs5wi.js} +1 -1
- package/web/app/immutable/chunks/{CcXmTQrG.js → Uv0U-1kP.js} +1 -1
- package/web/app/immutable/chunks/{C4ABvngM.js → WPmFGY7m.js} +1 -1
- package/web/app/immutable/chunks/{KLMKvNSD.js → WVYGrHqE.js} +1 -1
- package/web/app/immutable/chunks/{BAR22MDD.js → WZHg24tN.js} +1 -1
- package/web/app/immutable/chunks/{B_IHHwFT.js → Xb_csWgU.js} +1 -1
- package/web/app/immutable/chunks/{BLqK1w-V.js → Y3UAS5wV.js} +1 -1
- package/web/app/immutable/chunks/{mxfq8-qS.js → Y4N0iJyK.js} +1 -1
- package/web/app/immutable/chunks/{BVcYqOip.js → YpQeV5ep.js} +6 -6
- package/web/app/immutable/chunks/{Dq6jwHZ6.js → ZYYtufHC.js} +1 -1
- package/web/app/immutable/chunks/{lzVZjIHK.js → _Y7Nvr11.js} +1 -1
- package/web/app/immutable/chunks/{BMW1RYmJ.js → _bgnudZi.js} +2 -2
- package/web/app/immutable/chunks/{C07lgk2D.js → _cj4xlwz.js} +1 -1
- package/web/app/immutable/chunks/{D0QGnN9N.js → _eQjP0_7.js} +7 -7
- package/web/app/immutable/chunks/{B6f4X6Cq.js → bjlKIwQF.js} +1 -1
- package/web/app/immutable/chunks/{Bkt7VHdr.js → c0MObYhr.js} +1 -1
- package/web/app/immutable/chunks/{uzVhgdYt.js → dimBDqRX.js} +1 -1
- package/web/app/immutable/chunks/{De5CT8ah.js → fJdmRaXe.js} +1 -1
- package/web/app/immutable/chunks/{Dm5XlejL.js → fxR7QMV8.js} +1 -1
- package/web/app/immutable/chunks/{DpvwyG67.js → hAyFyjes.js} +1 -1
- package/web/app/immutable/chunks/{BtTwGRLV.js → iPSaMdjW.js} +1 -1
- package/web/app/immutable/chunks/{CBj-skM7.js → ingscYYg.js} +1 -1
- package/web/app/immutable/chunks/{Zu_hB4jz.js → lrd8vBcb.js} +1 -1
- package/web/app/immutable/chunks/{D75qE5QF.js → nvBTDqJi.js} +1 -1
- package/web/app/immutable/chunks/{DPWpLmap.js → oCNF8vh8.js} +1 -1
- package/web/app/immutable/chunks/{D7NIlQGn.js → oDL-pLcj.js} +1 -1
- package/web/app/immutable/chunks/{C1itrH63.js → pIvHob4a.js} +1 -1
- package/web/app/immutable/chunks/{DpWrzKZ5.js → s4JAFzR2.js} +1 -1
- package/web/app/immutable/chunks/{Dtvcl9ZM.js → sgXcAFR7.js} +1 -1
- package/web/app/immutable/chunks/{Bk1uVK5j.js → t61BPD62.js} +1 -1
- package/web/app/immutable/chunks/{QBqsOIpN.js → t7uelISx.js} +1 -1
- package/web/app/immutable/chunks/{SIlEqZy6.js → tWOclZbM.js} +1 -1
- package/web/app/immutable/chunks/{CFa2g-IY.js → u9Jr5xJ2.js} +1 -1
- package/web/app/immutable/chunks/{CNFZNMrf.js → uKt9v9GZ.js} +1 -1
- package/web/app/immutable/chunks/{BUcRm8Vm.js → xS44oH53.js} +1 -1
- package/web/app/immutable/chunks/{BxU3DCFg.js → yQykulND.js} +1 -1
- package/web/app/immutable/chunks/{CA6N8yqk.js → z5aynuor.js} +1 -1
- package/web/app/immutable/chunks/{ClALIxbi.js → zOdhHtWD.js} +1 -1
- package/web/app/immutable/chunks/{DNeMGvC1.js → zuhzlizP.js} +1 -1
- package/web/app/immutable/entry/{app.B7NDG9Ke.js → app.ZJRI8LL8.js} +3 -3
- package/web/app/immutable/entry/start.B_ChBWnN.js +1 -0
- package/web/app/immutable/nodes/{0.Bun1I2n8.js → 0.B_5IeAcY.js} +1 -1
- package/web/app/immutable/nodes/{1.CaXWyT2I.js → 1.D2RcMrk8.js} +1 -1
- package/web/app/immutable/nodes/{10.QcBz8vIO.js → 10.a-yBB_mg.js} +1 -1
- package/web/app/immutable/nodes/{11.CIL0R940.js → 11.DzMcYtgT.js} +1 -1
- package/web/app/immutable/nodes/{12.VioYEcq0.js → 12.BS7aI1vv.js} +1 -1
- package/web/app/immutable/nodes/{13.DXKlob-e.js → 13.Dj6DavrI.js} +3 -3
- package/web/app/immutable/nodes/{14.Del2TMMg.js → 14.BRMrhd95.js} +2 -2
- package/web/app/immutable/nodes/{15.Djr5my7L.js → 15.BWo3i95L.js} +1 -1
- package/web/app/immutable/nodes/{16.D5MyJ40_.js → 16.DsObfcQu.js} +2 -2
- package/web/app/immutable/nodes/{2.DGym_vbk.js → 2.BX2UV9md.js} +4 -4
- package/web/app/immutable/nodes/{3.s5E8H3KB.js → 3.BAb5j4vs.js} +1 -1
- package/web/app/immutable/nodes/{4.D5-aRMMy.js → 4.i3m7hv4J.js} +1 -1
- package/web/app/immutable/nodes/{5.B3_zYP1m.js → 5.kQ7xzuNs.js} +1 -1
- package/web/app/immutable/nodes/{6.DutaO_wJ.js → 6.De5Z6N1w.js} +1 -1
- package/web/app/immutable/nodes/{7.BTpm8RYp.js → 7.Dqm5QJxM.js} +1 -1
- package/web/app/immutable/nodes/{8.CZztH_7a.js → 8.BT-G_bE5.js} +4 -4
- package/web/app/immutable/nodes/{9.B2qxwSvF.js → 9.DIcsOChV.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B_KqSc_J.js +0 -3
- package/web/app/immutable/chunks/Blk8v-pB.js +0 -1
- package/web/app/immutable/chunks/BoDxQZ1k.js +0 -1
- package/web/app/immutable/chunks/COH5cIoS.js +0 -184
- package/web/app/immutable/chunks/DEI12D8u.js +0 -1
- package/web/app/immutable/chunks/DJISFfnZ.js +0 -6
- package/web/app/immutable/chunks/YDzESqGE.js +0 -1
- package/web/app/immutable/chunks/neQDnDfO.js +0 -1
- package/web/app/immutable/entry/start.BNunxuiZ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./X8KOCQId.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./uzVhgdYt.js";import{bo as re}from"./DEI12D8u.js";import{t as Je}from"./BycWLeDe.js";import{M as t1,v as yr,w as wr}from"./DJISFfnZ.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./OtBI4VRo.js";import{D as bs,b5 as i1,bl as s1}from"./Cul55jvw.js";import{p as o1}from"./BQkOKtmR.js";import{b as l1}from"./N_3EVFPG.js";import{i as Ge}from"./BKUFkB2Z.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./CBY4R5Io.js";import{i as ys}from"./DvIWu0bM.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./BplvCBzc.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
|
|
1
|
+
var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./C51KzdSG.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./dimBDqRX.js";import{bo as re}from"./D4MoKNoK.js";import{t as Je}from"./C8yAGnZY.js";import{M as t1,v as yr,w as wr}from"./Sk9pLJI5.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./HfuFYz2u.js";import{D as bs,b5 as i1,bl as s1}from"./1lVCCXL6.js";import{p as o1}from"./B9YdV5Lr.js";import{b as l1}from"./Di6XfBOT.js";import{i as Ge}from"./DDhakcOb.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./DgFojmqv.js";import{i as ys}from"./DzMB8eQW.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./C_fEvnNK.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
|
|
2
2
|
`)}function e5(t,e){return e.has(t??"manual")}function t5(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const xl=500;function r5(t,e=xl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function n5(t,e,r=xl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function a5(t){if(t.hiddenCount<=0)return"";const e=Je(t.shown),r=Je(t.shown+t.hiddenCount);return t.hiddenCount===1?re.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):re.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:Je(t.hiddenCount)})}function A1(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Oa(t){return t.startsWith("@")?t.slice(1):t}function T1(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Oa(String(a));const i=[r,e,n.trim()].map(Oa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?Bu(s).path:void 0}function E1(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function M1(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=A1(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=T1(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=E1(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Oa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function i5(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dr=mi();function Sl(t){Dr=t}var Er={exec:()=>null};function Ur(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function le(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ve.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var C1=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ur(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}>`))},z1=/^(?:[ \t]*(?:\n|$))+/,I1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,R1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,D1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Al=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tl=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),N1=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),fi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,L1=/^[^\n]+/,gi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O1=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P1=le(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,pi).getRegex(),Ln="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_1=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vi).replace("tag",Ln).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),El=t=>le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),$1=El(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),B1=El(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),q1=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B1).getRegex(),bi={blockquote:q1,code:I1,def:O1,fences:R1,heading:D1,hr:$0,html:_1,lheading:Tl,list:P1,newline:z1,paragraph:$1,table:Er,text:L1},xs=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),F1={...bi,lheading:N1,table:xs,paragraph:le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex()},H1={...bi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(fi).replace("hr",$0).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",Tl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ml=/^( {2,}|\\)\n(?!\s*$)/,G1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ut=/[\p{P}\p{S}]/u,s0=/[\s\p{P}\p{S}]/u,B0=/[^\s\p{P}\p{S}]/u,j1=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,s0).getRegex(),V1=/[\p{Pi}\p{Ps}"']/u,Cl=/(?!~)[\p{P}\p{S}]/u,X1=/(?!~)[\s\p{P}\p{S}]/u,Y1=/(?:[^\s\p{P}\p{S}]|~)/u,K1=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",C1?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z1=le(zl,"u").replace(/punct/g,Ut).getRegex(),Q1=le(zl,"u").replace(/punct/g,Cl).getRegex(),J1=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,eh=le(J1,"u").replace(/openQuote/g,V1).replace(/punct/g,Ut).getRegex(),Il="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",th=le(Il,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),rh=le(Il,"gu").replace(/notPunctSpace/g,Y1).replace(/punctSpace/g,X1).replace(/punct/g,Cl).getRegex(),nh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ah=le(nh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),ih=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),sh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",oh=le(sh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),lh=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ut).getRegex(),ch="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",uh=le(ch,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),hh=le(/\\(punct)/,"gu").replace(/punct/g,Ut).getRegex(),dh=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),mh=le(vi).replace("(?:-->|$)","-->").getRegex(),ph=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",mh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fh=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Mn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rl=le(/^!?\[(label)\]\[(ref)\]/).replace("label",Mn).replace("ref",gi).getRegex(),Dl=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",gi).getRegex(),gh=le("reflink|nolink(?!\\()","g").replace("reflink",Rl).replace("nolink",Dl).getRegex(),Ss=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yi={_backpedal:Er,anyPunctuation:hh,autolink:dh,blockSkip:K1,br:Ml,code:W1,del:Er,delLDelim:Er,delRDelim:Er,emStrongLDelim:Z1,emStrongRDelimAst:th,emStrongRDelimUnd:ih,escape:U1,link:fh,nolink:Dl,punctuation:j1,reflink:Rl,reflinkSearch:gh,tag:ph,text:G1,url:Er},vh={...yi,emStrongLDelim:eh,emStrongRDelimAst:ah,emStrongRDelimUnd:oh,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",Mn).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mn).getRegex()},Pa={...yi,emStrongRDelimAst:rh,emStrongLDelim:Q1,delLDelim:lh,delRDelim:uh,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ss).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:le(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ss).getRegex()},bh={...Pa,br:le(Ml).replace("{2,}","*").getRegex(),text:le(Pa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mn={normal:bi,gfm:F1,pedantic:H1},g0={normal:yi,gfm:Pa,breaks:bh,pedantic:vh},yh={"&":"&","<":"<",">":">",'"':""","'":"'"},As=t=>yh[t];function zt(t,e){if(e){if(Ve.escapeTest.test(t))return t.replace(Ve.escapeReplace,As)}else if(Ve.escapeTestNoEncode.test(t))return t.replace(Ve.escapeReplaceNoEncode,As);return t}function Ts(t){try{t=encodeURI(t).replace(Ve.percentDecode,"%")}catch{return null}return t}function Es(t,e){let r=t.replace(Ve.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ve.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ve.slashPipe,"|");return n}function Qt(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Ms(t){let e=t.split(`
|
|
4
4
|
`),r=e.length-1;for(;r>=0&&Ve.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as B,bq as m,a_ as P,bo as a,by as $,b as E,bu as oe,bs as ie}from"./
|
|
1
|
+
import{t as B,bq as m,a_ as P,bo as a,by as $,b as E,bu as oe,bs as ie}from"./D4MoKNoK.js";import{bs as G,a5 as S,aD as q,bS as g,bl as D,bA as O,b_ as x,bO as v,W as k,bn as M,c9 as V,aA as f,aB as R,be as W,b$ as j,c5 as L,a7 as ce,ay as le}from"./B8o4lNgr.js";import{h as de,s as N}from"./WVYGrHqE.js";import{f as A}from"./DgFojmqv.js";import{h as ue,W as _e,i as pe}from"./CG5J-qd_.js";import{a2 as ge}from"./CRhgbDg2.js";import{G2 as ve,i6 as ke}from"./C51KzdSG.js";var me=R('<li class="flex items-center gap-2"><!> <span class="min-w-0 flex-1 break-words"> </span> <span class="shrink-0 text-muted-foreground"> </span></li>'),fe=R('<ul class="space-y-1 text-sm"></ul>');function X(y,n){if(new.target)return B({component:X,...y});G(n,!0);let t=m(n,"checklist",7);const p=V(()=>{const s=_=>({state:_?"done":"waiting",status:_?a.desktop_os_checklist_allowed():a.desktop_os_checklist_missing()}),r=()=>!t().accessibility||!t().screenRecording?{state:"waiting",status:a.desktop_os_checklist_blocked()}:t().screenCapture==="ready"?{state:"done",status:a.desktop_os_checklist_ready()}:t().screenCapture==="pending"?{state:"waiting",status:a.desktop_os_checklist_checking()}:{state:"failed",status:a.desktop_os_checklist_unconfirmed()};return[{label:a.desktop_os_checklist_accessibility(),...s(t().accessibility)},{label:a.desktop_os_checklist_screenRecording(),...s(t().screenRecording)},{label:a.desktop_os_checklist_screenCapture(),...r()}]});var w={get checklist(){return t()},set checklist(s){t(s),f()},$set:$,$on:(s,r)=>E(n,s,r)},c=fe();return de(c,21,()=>q(p),s=>s.label,(s,r)=>{var _=me(),h=S(_);{var b=d=>{ue(d,{class:"size-4 shrink-0 text-success","aria-hidden":"true"})},z=d=>{_e(d,{class:"size-4 shrink-0 text-danger","aria-hidden":"true"})},U=d=>{pe(d,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})};P(h,d=>{q(r).state==="done"?d(b):q(r).state==="failed"?d(z,1):d(U,-1)})}var C=g(h,2),i=D(C,!0),I=g(C,2),T=D(I,!0);O(_),x(()=>{N(_,"data-state",q(r).state),v(i,q(r).label),v(T,q(r).status)}),k(s,_)}),O(c),x(s=>N(c,"aria-label",s),[()=>a.desktop_os_checklist_title()]),k(y,c),M(w)}var he=R('<p class="text-sm text-muted-foreground"> </p>'),Q=R('<p role="status" class="text-sm"> </p>'),be=R('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function Y(y,n){if(new.target)return B({component:Y,...y});G(n,!0);let t=m(n,"request",7),p=m(n,"pending",7,!1),w=m(n,"settingUp",7,!1),c=m(n,"guidance",7),s=m(n,"checklist",7),r=m(n,"onDecision",7);var _={get request(){return t()},set request(e){t(e),f()},get pending(){return p()},set pending(e=!1){p(e),f()},get settingUp(){return w()},set settingUp(e=!1){w(e),f()},get guidance(){return c()},set guidance(e){c(e),f()},get checklist(){return s()},set checklist(e){s(e),f()},get onDecision(){return r()},set onDecision(e){r(e),f()},$set:$,$on:(e,o)=>E(n,e,o)},h=be(),b=S(h),z=S(b),U=D(z,!0),C=g(z,2),i=D(C,!0),I=g(C,2);{var T=e=>{var o=he(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_claimPrimary({computer:t().computerName})]),k(e,o)};P(I,e=>{t().claimsPrimary&&e(T)})}var d=g(I,2);{var ee=e=>{X(e,{get checklist(){return s()}})};P(d,e=>{s()&&e(ee)})}var F=g(d,2);{var te=e=>{var o=Q(),l=D(o,!0);x(()=>v(l,c())),k(e,o)};P(F,e=>{c()&&e(te)})}var se=g(F,2);{var re=e=>{var o=Q(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_pending()]),k(e,o)};P(se,e=>{p()&&!w()&&e(re)})}O(b);var H=g(b,2),J=S(H);A(J,{size:"compact",variant:"primary",get disabled(){return p()},onclick:()=>r()("allow_once"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_once()]),k(e,l)},$$slots:{default:!0}});var K=g(J,2);A(K,{size:"compact",variant:"outline",get disabled(){return p()},onclick:()=>r()("allow_future"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_future()]),k(e,l)},$$slots:{default:!0}});var ae=g(K,2);{let e=V(()=>p()&&!w());A(ae,{size:"compact",variant:"ghost",get disabled(){return q(e)},onclick:()=>r()("deny"),children:(o,l)=>{W();var u=j();x(ne=>v(u,ne),[()=>a.desktop_consent_deny()]),k(o,u)},$$slots:{default:!0}})}return O(H),O(h),x((e,o,l,u)=>{N(h,"aria-label",e),N(b,"aria-label",o),v(U,l),v(i,u)},[()=>a.desktop_consent_title(),()=>a.desktop_consent_title(),()=>a.desktop_consent_request({agent:t().agentName,computer:t().computerName}),()=>a.desktop_consent_description()]),k(y,h),M(_)}function Z(y,n){if(new.target)return B({component:Z,...y});G(n,!0);const t=()=>oe(_,"$entry",p),[p,w]=ie();let c=m(n,"workspaceId",7),s=m(n,"agentId",7),r=m(n,"requestId",7);const _=ge(L(()=>c()),L(()=>s()));var h={get workspaceId(){return c()},set workspaceId(i){c(i),f()},get agentId(){return s()},set agentId(i){s(i),f()},get requestId(){return r()},set requestId(i){r(i),f()},$set:$,$on:(i,I)=>E(n,i,I)},b=ce(),z=le(b);{var U=i=>{Y(i,{get request(){return t().pending},get pending(){return t().submitting},get settingUp(){return t().settingUp},get guidance(){return t().error},get checklist(){return t().osChecklist},onDecision:I=>ve.dispatch(ke(c(),s(),r(),I))})};P(z,i=>{t()?.pending?.requestId===r()&&i(U)})}k(y,b);var C=M(h);return w(),C}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));export{Z as D,ze as a,X as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,a as s,c as e,C as t}from"./
|
|
1
|
+
import{s as r,a as s,c as e,C as t}from"./KxpMwUsB.js";import{f as l}from"./CdT170lG.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./DEI12D8u.js";import{g as s}from"./-EQ6B0ad.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const g={startLine:c,endLine:u};return b.defined(f)&&(g.startCharacter=f),b.defined(d)&&(g.endCharacter=d),b.defined(p)&&(g.kind=p),b.defined(m)&&(g.collapsedText=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let g={range:c,message:u};return b.defined(f)&&(g.severity=f),b.defined(d)&&(g.code=d),b.defined(p)&&(g.source=p),b.defined(m)&&(g.relatedInformation=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let g={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(g.children=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
|
|
1
|
+
var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./D4MoKNoK.js";import{g as s}from"./CdT170lG.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const g={startLine:c,endLine:u};return b.defined(f)&&(g.startCharacter=f),b.defined(d)&&(g.endCharacter=d),b.defined(p)&&(g.kind=p),b.defined(m)&&(g.collapsedText=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let g={range:c,message:u};return b.defined(f)&&(g.severity=f),b.defined(d)&&(g.code=d),b.defined(p)&&(g.source=p),b.defined(m)&&(g.relatedInformation=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let g={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(g.children=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
|
|
2
2
|
`,`\r
|
|
3
3
|
`,"\r"],(function(a){function i(f,d,p,m){return new n_(f,d,p,m)}s(i,"create"),o(i,"create"),a.create=i;function l(f){let d=f;return!!(b.defined(d)&&b.string(d.uri)&&(b.undefined(d.languageId)||b.string(d.languageId))&&b.uinteger(d.lineCount)&&b.func(d.getText)&&b.func(d.positionAt)&&b.func(d.offsetAt))}s(l,"is"),o(l,"is"),a.is=l;function c(f,d){let p=f.getText(),m=u(d,(y,$)=>{let C=y.range.start.line-$.range.start.line;return C===0?y.range.start.character-$.range.start.character:C}),g=p.length;for(let y=m.length-1;y>=0;y--){let $=m[y],C=f.offsetAt($.range.start),R=f.offsetAt($.range.end);if(R<=g)p=p.substring(0,C)+$.newText+p.substring(R,p.length);else throw new Error("Overlapping edit");g=C}return p}s(c,"applyEdits"),o(c,"applyEdits"),a.applyEdits=c;function u(f,d){if(f.length<=1)return f;const p=f.length/2|0,m=f.slice(0,p),g=f.slice(p);u(m,d),u(g,d);let y=0,$=0,C=0;for(;y<m.length&&$<g.length;)d(m[y],g[$])<=0?f[C++]=m[y++]:f[C++]=g[$++];for(;y<m.length;)f[C++]=m[y++];for(;$<g.length;)f[C++]=g[$++];return f}s(u,"mergeSort2"),o(u,"mergeSort")})(by||(by={})),n_=(n=class{constructor(i,l,c,u){this._uri=i,this._languageId=l,this._version=c,this._content=u,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let l=this.offsetAt(i.start),c=this.offsetAt(i.end);return this._content.substring(l,c)}return this._content}update(i,l){this._content=i.text,this._version=l,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],l=this._content,c=!0;for(let u=0;u<l.length;u++){c&&(i.push(u),c=!1);let f=l.charAt(u);c=f==="\r"||f===`
|
|
4
4
|
`,f==="\r"&&u+1<l.length&&l.charAt(u+1)===`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as Mt,bq as ee,_ as Vr,a_ as ce,by as Tt,bu as he,bs as Jt,b as Ut,bo as c}from"./DEI12D8u.js";import{bs as Rt,ca as $e,aD as e,bH as u,a5 as M,bA as P,W as s,bn as zt,bV as H,c9 as i,aA as te,c6 as Nt,ay as de,be as Xe,b$ as Qe,b_ as D,bO as g,bS as p,bl as S,aB as C,bj as Er,aw as et,ai as Ar,c5 as vr,a as pr,a7 as Le,aj as ct,cd as Wr,br as Br}from"./B8o4lNgr.js";import{B as gr,D as Nr}from"./OtBI4VRo.js";import{s as tt,l as bt,k as ar,h as xt}from"./KLMKvNSD.js";import{c as Ft}from"./DWsGxz2C.js";import{b as mr}from"./D2g8BuR1.js";import{G2 as A,mu as _r,tC as hr,tB as wr,I8 as Or,I9 as Hr,ei as qr,ej as Gr,HC as or,kJ as Ot,zu as ir,qC as nr,mQ as Kr,xc as Xr,a3 as sr,Gy as Yr,GN as Jr,m5 as Zr,i0 as Qr,mw as ea,td as ta,xz as ra,HB as aa}from"./X8KOCQId.js";import{g as oa}from"./CoSk1zgY.js";import{a as ia,g as na,i as sa,c as la,h as da,d as ca,e as lr,f as ua,b as Ht}from"./DSpny-f5.js";import{bx as fa,bK as va,dj as pa}from"./uzVhgdYt.js";import{w as dr,d as ga}from"./CHb28ISq.js";import{f as ma}from"./N_3EVFPG.js";import{n as qt}from"./oEdBdTuH.js";import{f as Se,ax as _a}from"./CBY4R5Io.js";import"./BAR22MDD.js";import{F as Ze,a9 as ha,ar as wa,aU as ba,a_ as Dt,cj as xa,ck as ya,bh as Pa,cG as $a,c0 as ka}from"./BxuhDHqB.js";import{g as Ia,i as Ca,w as cr}from"./MivJSmtA.js";import{c as Fa}from"./ChTqQfQN.js";import"./CiJsLr2J.js";import{M as Sa}from"./CeGnK4JQ.js";import{i as Gt,b as Da,a as ja}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./BrUeG1RC.js";import{M as Ta}from"./DPbm6slt.js";import{t as Kt,u as br}from"./BycWLeDe.js";import"./B6f4X6Cq.js";import"./DaBUZyWc.js";import{M as St}from"./CGtte9IE.js";import{V as Ua}from"./BSERRzdN.js";import{bC as Ra,aW as za}from"./Bk1uVK5j.js";import{ag as La}from"./D5Yn3bZC.js";const xr=A.createSelector((we,x)=>_r(we.pdfPreview.previews,x));var Va=C('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Ea=C('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Yt(we,x){if(new.target)return Mt({component:Yt,...we});Rt(x,!0);const ke=()=>he(be,"$preview",rt),[rt,re]=Jt();let $=ee(x,"workspaceId",7),ae=ee(x,"filePath",7),Ie=ee(x,"gitRootId",7);const De=crypto.randomUUID(),be=xr(De),me=new WeakMap;let J=H(null),He=H(void 0),W=H(1),N=H(1),oe=H(!0),R=H(!1),Ve=H(null),Be=H(0);const xe=i(()=>ke()?.error??e(Ve)),je=i(()=>e(xe)==="missing"?c.file_pdf_missing_error():e(xe)==="large"?c.file_pdf_large_error():e(xe)==="invalid"?c.file_pdf_invalid_error():e(xe)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());$e(()=>{const l=$(),y=ae();e(Be);const z=crypto.randomUUID();return A.dispatch(hr(De,z,l,y,...Ie()?[{gitRootId:Ie()}]:[])),()=>{A.dispatch(wr(De,z))}}),$e(()=>{const l=ke()?.url;let y=!1,z;if(u(J,null),u(Ve,null),u(oe,!0),u(W,1),u(N,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:_e}=await import("./BqoyBPEG.js");return{loadPdfDocument:_e}},[],import.meta.url);if(y)return;z=K(l);const ie=await z.promise;y||u(J,ie)}catch(K){if(y)return;u(Ve,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(oe,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(J),y=e(He),z=e(W),K=e(N);if(!l||!y)return;let ie=!1,_e,U;const ne=()=>{if(!U)return;const X=(me.get(U)??1)-1;X?me.set(U,X):(me.delete(U),U.cleanup()),U=void 0};return u(R,!0),(async()=>{try{if(U=await l.getPage(z),me.set(U,(me.get(U)??0)+1),ie){ne();return}const X=U.getViewport({scale:K}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*Z),y.height=Math.ceil(X.height*Z),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,_e=U.render({canvas:y,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{ie||u(Ve,"invalid")}finally{ie||u(R,!1)}})(),()=>{ie=!0,_e?.cancel(),_e?_e.promise.then(ne,ne):ne()}});var Ne={get workspaceId(){return $()},set workspaceId(l){$(l),te()},get filePath(){return ae()},set filePath(l){ae(l),te()},get gitRootId(){return Ie()},set gitRootId(l){Ie(l),te()},$set:Tt,$on:(l,y)=>Ut(x,l,y)},o=Ea(),d=M(o);{var T=l=>{{const y=K=>{Xe();var ie=Qe();D(()=>g(ie,e(je))),s(K,ie)};let z=i(()=>c.ui_combobox_retry_label());Ia(l,{onRetry:()=>Nt(Be),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},_=l=>{{let y=i(()=>c.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=de(y),K=M(z);{let pe=i(()=>e(W)<=1);Se(K,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W,-1),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_previous_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ie=p(K,2),_e=S(ie,!0),U=p(ie,2);{let pe=i(()=>e(W)>=e(J).numPages);Se(U,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_next_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ne=p(U,2);{let pe=i(()=>e(N)<=.25);Se(ne,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.max(.25,e(N)-.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomOut_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}var X=p(ne,2),Z=S(X,!0),at=p(X,2);{let pe=i(()=>e(N)>=3);Se(at,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.min(3,e(N)+.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomIn_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}P(z);var ot=p(z,2),qe=M(ot);let Ye;mr(qe,pe=>u(He,pe),()=>e(He)),P(ot),D((pe,ye,Ge)=>{g(_e,pe),g(Z,ye),tt(ot,"aria-busy",e(R)),tt(qe,"aria-label",Ge),Ye=bt(qe,"",Ye,{visibility:e(R)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(J).numPages)}),()=>br(e(N),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:Kt(e(W))})]),s(l,y)};ce(d,l=>{e(xe)?l(T):e(oe)||ke()?.status==="loading"?l(_,1):e(J)&&l(w,2)})}P(o),s(we,o);var Ee=zt(Ne);return re(),Ee}const Aa=A.createSelector((we,x)=>_r(we.videoPreview.previews,x));var Wa=C('<p role="status"> </p>'),Ba=C('<p role="alert"> </p>'),Na=C('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Oa=C('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=C('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function yr(we,x){if(new.target)return Mt({component:yr,...we});Rt(x,!0);const ke=()=>he(He,"$preview",rt),[rt,re]=Jt();let $=ee(x,"sourceUrl",7),ae=ee(x,"fileName",7),Ie=ee(x,"allowDownload",7),De=ee(x,"downloading",7),be=ee(x,"onDownload",7),me=H(null);const J=crypto.randomUUID(),He=Aa(J),W=i(()=>ke()?.status==="loading"),N=i(()=>e(me)??ke()?.error);let oe=!1,R=!1;Er(()=>{R=!0,A.dispatch(Or(J))});function Ve(){if(R||e(W))return;const _=$().startsWith("workspace-file://")?new URL($()):null;if(oe||!_||!_.pathname.toLowerCase().endsWith(".mp4")){u(me,"unsupported");return}oe=!0,_.searchParams.set("preview","h264"),A.dispatch(Hr(J,_.hostname,_.toString()))}function Be(_){if(R)return;const w=_.currentTarget.error?.code;w===2?u(me,"network"):w!==1&&Ve()}var xe={get sourceUrl(){return $()},set sourceUrl(_){$(_),te()},get fileName(){return ae()},set fileName(_){ae(_),te()},get allowDownload(){return Ie()},set allowDownload(_){Ie(_),te()},get downloading(){return De()},set downloading(_){De(_),te()},get onDownload(){return be()},set onDownload(_){be(_),te()},$set:Tt,$on:(_,w)=>Ut(x,_,w)},je=Ha(),Ne=M(je);{var o=_=>{var w=Na(),Ee=M(w),l=S(Ee,!0),y=p(Ee,2);{var z=U=>{var ne=Wa(),X=S(ne,!0);D(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),s(U,ne)},K=U=>{var ne=Ba(),X=S(ne,!0);D(Z=>g(X,Z),[()=>e(N)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),s(U,ne)};ce(y,U=>{e(W)?U(z):U(K,-1)})}var ie=p(y,2);{var _e=U=>{Se(U,{variant:"secondary",size:"sm",get onclick(){return be()},get disabled(){return De()},children:(ne,X)=>{Xe();var Z=Qe();D(at=>g(Z,at),[()=>c.layout_fileTab_downloadFile_label()]),s(ne,Z)},$$slots:{default:!0}})};ce(ie,U=>{Ie()&&U(_e)})}P(w),D(()=>g(l,ae())),s(_,w)},d=_=>{var w=Oa(),Ee=S(w,!0);D(l=>{tt(w,"src",ke()?.url??$()),g(Ee,l)},[()=>c.editor_fileViewer_videoUnsupported_label()]),et("error",w,Be),et("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ve()}),s(_,w)};ce(Ne,_=>{e(N)||e(W)?_(o):_(d,-1)})}P(je),s(we,je);var T=zt(xe);return re(),T}var qa=C('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ga=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ya=C("<!> ",1),Ja=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Za=C('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Qa=C('<td class="border border-border px-2 py-1 text-xs"> </td>'),eo=C("<tr></tr>"),to=C('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ro=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),ao=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=C('<div class="h-full flex flex-col"><!></div>');function jt(we,x){if(new.target)return Mt({component:jt,...we});Rt(x,!0);const ke=t=>{var a=qa(),f=de(a);{let O=i(()=>c.editor_fileViewer_zoomOut_tooltip());Se(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return xa},size:"sm"})},$$slots:{default:!0}})}var m=p(f,2),h=S(m,!0),k=p(m,2);{let O=i(()=>c.editor_fileViewer_zoomIn_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}Xe(2),D(()=>g(h,e(Ve))),s(t,a)},rt=Fa("FileViewer");let re=ee(x,"filePath",7),$=ee(x,"fileContent",7,""),ae=ee(x,"sourceUrl",7),Ie=ee(x,"language",7),De=ee(x,"isBinary",7),be=ee(x,"allowDownload",7,!0),me=ee(x,"onDownload",7),J=ee(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>He(re())),N=i(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let oe=H(100),R=H(0);const Ve=i(()=>br(e(oe)/100,{style:"percent",maximumFractionDigits:0}));let Be=H(!1),xe=H(0),je=H(0),Ne=H(0),o=H(0),d=H(!1),T=null;function _(){const t=T;T=null,u(d,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||T)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),T={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(d,!0),t.preventDefault()}function Ee(t){if(!(!T||t.pointerId!==T.pointerId)){if((t.buttons&1)===0){_();return}u(Ne,T.viewport.scrollLeft,!0),u(o,T.viewport.scrollTop,!0),u(xe,e(xe)+(t.clientX-T.x)),u(je,e(je)+(t.clientY-T.y)),T.x=t.clientX,T.y=t.clientY}}function l(t){t.pointerId===T?.pointerId&&_()}$e(()=>{re(),ae(),e(oe),e(R),u(Ne,0),u(o,0)}),$e(()=>(re(),ae(),vr(()=>{_(),u(xe,0),u(je,0)}),_));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ae())return ae();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():De()?`data:${y(re())};base64,${$()}`:`data:${y(re())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((m,h)=>m+String.fromCharCode(h),""),f=btoa(a);return`data:${y(re())};base64,${f}`}return""},ie=()=>{if(ae())return ae();const t=z(re());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],m=32768;for(let h=0;h<a.length;h+=m)f.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(f.join(""))}`},_e=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let m=0;m<t.length;m+=f)a.push(String.fromCharCode(...t.subarray(m,m+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(oe,Math.min(e(oe)+25,500),!0)},ne=()=>{u(oe,Math.max(e(oe)-25,25),!0)},X=()=>{u(R,(e(R)+90)%360)},Z=()=>{if(!be()||J())return;if(me()){me()();return}const t=document.createElement("a");t.href=e(W)==="video"?ie():e(W)==="svg"?_e():K(),t.download=e(N),t.click()},at=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((m,h)=>{a.onload=()=>{const k=document.createElement("canvas");k.width=a.naturalWidth,k.height=a.naturalHeight;const O=k.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),k.toBlob(j=>{j?m(j):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Be,!0),setTimeout(()=>u(Be,!1),2e3)}catch(t){rt.error("Failed to copy image:",t)}},ot=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},qe=t=>t.split(`
|
|
1
|
+
import{t as Mt,bq as ee,_ as Vr,a_ as ce,by as Tt,bu as he,bs as Jt,b as Ut,bo as c}from"./D4MoKNoK.js";import{bs as Rt,ca as $e,aD as e,bH as u,a5 as M,bA as P,W as s,bn as zt,bV as H,c9 as i,aA as te,c6 as Nt,ay as de,be as Xe,b$ as Qe,b_ as D,bO as g,bS as p,bl as S,aB as C,bj as Er,aw as et,ai as Ar,c5 as vr,a as pr,a7 as Le,aj as ct,cd as Wr,br as Br}from"./B8o4lNgr.js";import{B as gr,D as Nr}from"./HfuFYz2u.js";import{s as tt,l as bt,k as ar,h as xt}from"./WVYGrHqE.js";import{c as Ft}from"./BPQohPc9.js";import{b as mr}from"./D2g8BuR1.js";import{G2 as A,mu as _r,tC as hr,tB as wr,I8 as Or,I9 as Hr,ei as qr,ej as Gr,HC as or,kJ as Ot,zu as ir,qC as nr,mQ as Kr,xc as Xr,a3 as sr,Gy as Yr,GN as Jr,m5 as Zr,i0 as Qr,mw as ea,td as ta,xz as ra,HB as aa}from"./C51KzdSG.js";import{g as oa}from"./CoSk1zgY.js";import{a as ia,g as na,i as sa,c as la,h as da,d as ca,e as lr,f as ua,b as Ht}from"./DjVrYm-R.js";import{bx as fa,bK as va,dj as pa}from"./dimBDqRX.js";import{w as dr,d as ga}from"./BvuznwRa.js";import{f as ma}from"./Di6XfBOT.js";import{n as qt}from"./BjO6mATN.js";import{f as Se,ax as _a}from"./DgFojmqv.js";import"./WZHg24tN.js";import{F as Ze,a9 as ha,ar as wa,aU as ba,a_ as Dt,cj as xa,ck as ya,bh as Pa,cG as $a,c0 as ka}from"./CG5J-qd_.js";import{g as Ia,i as Ca,w as cr}from"./BQ-Vdhjp.js";import{c as Fa}from"./ChTqQfQN.js";import"./De4WWpS0.js";import{M as Sa}from"./CRhgbDg2.js";import{i as Gt,b as Da,a as ja}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./DditQ6Dc.js";import{M as Ta}from"./Butq4Y1l.js";import{t as Kt,u as br}from"./C8yAGnZY.js";import"./bjlKIwQF.js";import"./Ds7can9q.js";import{M as St}from"./D8_OuTD3.js";import{V as Ua}from"./BqSjWCdR.js";import{bC as Ra,aW as za}from"./t61BPD62.js";import{ag as La}from"./Bj2YjLqH.js";const xr=A.createSelector((we,x)=>_r(we.pdfPreview.previews,x));var Va=C('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Ea=C('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Yt(we,x){if(new.target)return Mt({component:Yt,...we});Rt(x,!0);const ke=()=>he(be,"$preview",rt),[rt,re]=Jt();let $=ee(x,"workspaceId",7),ae=ee(x,"filePath",7),Ie=ee(x,"gitRootId",7);const De=crypto.randomUUID(),be=xr(De),me=new WeakMap;let J=H(null),He=H(void 0),W=H(1),N=H(1),oe=H(!0),R=H(!1),Ve=H(null),Be=H(0);const xe=i(()=>ke()?.error??e(Ve)),je=i(()=>e(xe)==="missing"?c.file_pdf_missing_error():e(xe)==="large"?c.file_pdf_large_error():e(xe)==="invalid"?c.file_pdf_invalid_error():e(xe)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());$e(()=>{const l=$(),y=ae();e(Be);const z=crypto.randomUUID();return A.dispatch(hr(De,z,l,y,...Ie()?[{gitRootId:Ie()}]:[])),()=>{A.dispatch(wr(De,z))}}),$e(()=>{const l=ke()?.url;let y=!1,z;if(u(J,null),u(Ve,null),u(oe,!0),u(W,1),u(N,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:_e}=await import("./BqoyBPEG.js");return{loadPdfDocument:_e}},[],import.meta.url);if(y)return;z=K(l);const ie=await z.promise;y||u(J,ie)}catch(K){if(y)return;u(Ve,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(oe,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(J),y=e(He),z=e(W),K=e(N);if(!l||!y)return;let ie=!1,_e,U;const ne=()=>{if(!U)return;const X=(me.get(U)??1)-1;X?me.set(U,X):(me.delete(U),U.cleanup()),U=void 0};return u(R,!0),(async()=>{try{if(U=await l.getPage(z),me.set(U,(me.get(U)??0)+1),ie){ne();return}const X=U.getViewport({scale:K}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*Z),y.height=Math.ceil(X.height*Z),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,_e=U.render({canvas:y,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{ie||u(Ve,"invalid")}finally{ie||u(R,!1)}})(),()=>{ie=!0,_e?.cancel(),_e?_e.promise.then(ne,ne):ne()}});var Ne={get workspaceId(){return $()},set workspaceId(l){$(l),te()},get filePath(){return ae()},set filePath(l){ae(l),te()},get gitRootId(){return Ie()},set gitRootId(l){Ie(l),te()},$set:Tt,$on:(l,y)=>Ut(x,l,y)},o=Ea(),d=M(o);{var T=l=>{{const y=K=>{Xe();var ie=Qe();D(()=>g(ie,e(je))),s(K,ie)};let z=i(()=>c.ui_combobox_retry_label());Ia(l,{onRetry:()=>Nt(Be),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},_=l=>{{let y=i(()=>c.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=de(y),K=M(z);{let pe=i(()=>e(W)<=1);Se(K,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W,-1),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_previous_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ie=p(K,2),_e=S(ie,!0),U=p(ie,2);{let pe=i(()=>e(W)>=e(J).numPages);Se(U,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_next_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ne=p(U,2);{let pe=i(()=>e(N)<=.25);Se(ne,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.max(.25,e(N)-.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomOut_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}var X=p(ne,2),Z=S(X,!0),at=p(X,2);{let pe=i(()=>e(N)>=3);Se(at,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.min(3,e(N)+.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomIn_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}P(z);var ot=p(z,2),qe=M(ot);let Ye;mr(qe,pe=>u(He,pe),()=>e(He)),P(ot),D((pe,ye,Ge)=>{g(_e,pe),g(Z,ye),tt(ot,"aria-busy",e(R)),tt(qe,"aria-label",Ge),Ye=bt(qe,"",Ye,{visibility:e(R)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(J).numPages)}),()=>br(e(N),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:Kt(e(W))})]),s(l,y)};ce(d,l=>{e(xe)?l(T):e(oe)||ke()?.status==="loading"?l(_,1):e(J)&&l(w,2)})}P(o),s(we,o);var Ee=zt(Ne);return re(),Ee}const Aa=A.createSelector((we,x)=>_r(we.videoPreview.previews,x));var Wa=C('<p role="status"> </p>'),Ba=C('<p role="alert"> </p>'),Na=C('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Oa=C('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=C('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function yr(we,x){if(new.target)return Mt({component:yr,...we});Rt(x,!0);const ke=()=>he(He,"$preview",rt),[rt,re]=Jt();let $=ee(x,"sourceUrl",7),ae=ee(x,"fileName",7),Ie=ee(x,"allowDownload",7),De=ee(x,"downloading",7),be=ee(x,"onDownload",7),me=H(null);const J=crypto.randomUUID(),He=Aa(J),W=i(()=>ke()?.status==="loading"),N=i(()=>e(me)??ke()?.error);let oe=!1,R=!1;Er(()=>{R=!0,A.dispatch(Or(J))});function Ve(){if(R||e(W))return;const _=$().startsWith("workspace-file://")?new URL($()):null;if(oe||!_||!_.pathname.toLowerCase().endsWith(".mp4")){u(me,"unsupported");return}oe=!0,_.searchParams.set("preview","h264"),A.dispatch(Hr(J,_.hostname,_.toString()))}function Be(_){if(R)return;const w=_.currentTarget.error?.code;w===2?u(me,"network"):w!==1&&Ve()}var xe={get sourceUrl(){return $()},set sourceUrl(_){$(_),te()},get fileName(){return ae()},set fileName(_){ae(_),te()},get allowDownload(){return Ie()},set allowDownload(_){Ie(_),te()},get downloading(){return De()},set downloading(_){De(_),te()},get onDownload(){return be()},set onDownload(_){be(_),te()},$set:Tt,$on:(_,w)=>Ut(x,_,w)},je=Ha(),Ne=M(je);{var o=_=>{var w=Na(),Ee=M(w),l=S(Ee,!0),y=p(Ee,2);{var z=U=>{var ne=Wa(),X=S(ne,!0);D(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),s(U,ne)},K=U=>{var ne=Ba(),X=S(ne,!0);D(Z=>g(X,Z),[()=>e(N)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),s(U,ne)};ce(y,U=>{e(W)?U(z):U(K,-1)})}var ie=p(y,2);{var _e=U=>{Se(U,{variant:"secondary",size:"sm",get onclick(){return be()},get disabled(){return De()},children:(ne,X)=>{Xe();var Z=Qe();D(at=>g(Z,at),[()=>c.layout_fileTab_downloadFile_label()]),s(ne,Z)},$$slots:{default:!0}})};ce(ie,U=>{Ie()&&U(_e)})}P(w),D(()=>g(l,ae())),s(_,w)},d=_=>{var w=Oa(),Ee=S(w,!0);D(l=>{tt(w,"src",ke()?.url??$()),g(Ee,l)},[()=>c.editor_fileViewer_videoUnsupported_label()]),et("error",w,Be),et("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ve()}),s(_,w)};ce(Ne,_=>{e(N)||e(W)?_(o):_(d,-1)})}P(je),s(we,je);var T=zt(xe);return re(),T}var qa=C('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ga=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ya=C("<!> ",1),Ja=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Za=C('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Qa=C('<td class="border border-border px-2 py-1 text-xs"> </td>'),eo=C("<tr></tr>"),to=C('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ro=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),ao=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=C('<div class="h-full flex flex-col"><!></div>');function jt(we,x){if(new.target)return Mt({component:jt,...we});Rt(x,!0);const ke=t=>{var a=qa(),f=de(a);{let O=i(()=>c.editor_fileViewer_zoomOut_tooltip());Se(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return xa},size:"sm"})},$$slots:{default:!0}})}var m=p(f,2),h=S(m,!0),k=p(m,2);{let O=i(()=>c.editor_fileViewer_zoomIn_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}Xe(2),D(()=>g(h,e(Ve))),s(t,a)},rt=Fa("FileViewer");let re=ee(x,"filePath",7),$=ee(x,"fileContent",7,""),ae=ee(x,"sourceUrl",7),Ie=ee(x,"language",7),De=ee(x,"isBinary",7),be=ee(x,"allowDownload",7,!0),me=ee(x,"onDownload",7),J=ee(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>He(re())),N=i(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let oe=H(100),R=H(0);const Ve=i(()=>br(e(oe)/100,{style:"percent",maximumFractionDigits:0}));let Be=H(!1),xe=H(0),je=H(0),Ne=H(0),o=H(0),d=H(!1),T=null;function _(){const t=T;T=null,u(d,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||T)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),T={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(d,!0),t.preventDefault()}function Ee(t){if(!(!T||t.pointerId!==T.pointerId)){if((t.buttons&1)===0){_();return}u(Ne,T.viewport.scrollLeft,!0),u(o,T.viewport.scrollTop,!0),u(xe,e(xe)+(t.clientX-T.x)),u(je,e(je)+(t.clientY-T.y)),T.x=t.clientX,T.y=t.clientY}}function l(t){t.pointerId===T?.pointerId&&_()}$e(()=>{re(),ae(),e(oe),e(R),u(Ne,0),u(o,0)}),$e(()=>(re(),ae(),vr(()=>{_(),u(xe,0),u(je,0)}),_));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ae())return ae();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():De()?`data:${y(re())};base64,${$()}`:`data:${y(re())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((m,h)=>m+String.fromCharCode(h),""),f=btoa(a);return`data:${y(re())};base64,${f}`}return""},ie=()=>{if(ae())return ae();const t=z(re());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],m=32768;for(let h=0;h<a.length;h+=m)f.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(f.join(""))}`},_e=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let m=0;m<t.length;m+=f)a.push(String.fromCharCode(...t.subarray(m,m+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(oe,Math.min(e(oe)+25,500),!0)},ne=()=>{u(oe,Math.max(e(oe)-25,25),!0)},X=()=>{u(R,(e(R)+90)%360)},Z=()=>{if(!be()||J())return;if(me()){me()();return}const t=document.createElement("a");t.href=e(W)==="video"?ie():e(W)==="svg"?_e():K(),t.download=e(N),t.click()},at=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((m,h)=>{a.onload=()=>{const k=document.createElement("canvas");k.width=a.naturalWidth,k.height=a.naturalHeight;const O=k.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),k.toBlob(j=>{j?m(j):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Be,!0),setTimeout(()=>u(Be,!1),2e3)}catch(t){rt.error("Failed to copy image:",t)}},ot=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},qe=t=>t.split(`
|
|
2
2
|
`).map(f=>f.split(",").map(m=>m.trim()));var Ye={get filePath(){return re()},set filePath(t){re(t),te()},get fileContent(){return $()},set fileContent(t=""){$(t),te()},get sourceUrl(){return ae()},set sourceUrl(t){ae(t),te()},get language(){return Ie()},set language(t){Ie(t),te()},get isBinary(){return De()},set isBinary(t){De(t),te()},get allowDownload(){return be()},set allowDownload(t=!0){be(t),te()},get onDownload(){return me()},set onDownload(t){me(t),te()},get downloading(){return J()},set downloading(t=!1){J(t),te()},$set:Tt,$on:(t,a)=>Ut(x,t,a)},pe=oo();et("blur",pr,_);var ye=M(pe);{var Ge=t=>{var a=Ga(),f=M(a),m=M(f);ke(m);var h=p(m,2);{let Q=i(()=>c.editor_fileViewer_rotate_tooltip());Se(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:X,get title(){return e(Q)},children:(ge,Me)=>{Ze(ge,{get icon(){return ha},size:"sm"})},$$slots:{default:!0}})}var k=p(h,4);{let Q=i(()=>c.editor_fileViewer_copyImage_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:at,get title(){return e(Q)},children:(ge,Me)=>{var Ce=Le(),Vt=de(Ce);{var ut=Fe=>{Ze(Fe,{get icon(){return wa},size:"sm",class:"text-green-500"})},kt=Fe=>{Ze(Fe,{get icon(){return ba},size:"sm"})};ce(Vt,Fe=>{e(Be)?Fe(ut):Fe(kt,-1)})}s(ge,Ce)},$$slots:{default:!0}})}var O=p(k,2);{let Q=i(()=>!be()||J()),ge=i(()=>c.editor_fileViewer_download_tooltip());Se(O,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(Q)},get title(){return e(ge)},children:(Me,Ce)=>{Ze(Me,{get icon(){return Dt},size:"sm"})},$$slots:{default:!0}})}var j=p(O,2),L=S(j,!0);P(f);var V=p(f,2),se=S(V);P(a),D(Q=>{g(L,e(N)),ar(V,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(d)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),bt(V,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),tt(se,"src",Q),tt(se,"alt",e(N)),bt(se,`translate: ${e(xe)??""}px ${e(je)??""}px; transform: scale(${e(oe)/100}) rotate(${e(R)??""}deg); transition: transform 0.2s;`)},[()=>K()]),ct("pointerdown",V,w),ct("pointermove",V,Ee),ct("pointerup",V,l),et("pointercancel",V,l),et("lostpointercapture",V,l),s(t,a)},Pe=t=>{var a=Ka(),f=M(a),m=M(f);ke(m);var h=p(m,2);{let V=i(()=>!be()||J()),se=i(()=>c.editor_fileViewer_download_tooltip());Se(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(V)},get title(){return e(se)},children:(Q,ge)=>{Ze(Q,{get icon(){return Dt},size:"sm"})},$$slots:{default:!0}})}var k=p(h,2),O=S(k,!0);P(f);var j=p(f,2),L=S(j);P(a),D(V=>{g(O,e(N)),ar(j,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(d)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),bt(j,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),tt(L,"src",V),tt(L,"alt",e(N)),bt(L,`translate: ${e(xe)??""}px ${e(je)??""}px; transform: scale(${e(oe)/100});`)},[()=>_e()]),ct("pointerdown",j,w),ct("pointermove",j,Ee),ct("pointerup",j,l),et("pointercancel",j,l),et("lostpointercapture",j,l),s(t,a)},ue=t=>{const a=i(ie);var f=Le(),m=de(f);gr(m,()=>re()+e(a),h=>{yr(h,{get sourceUrl(){return e(a)},get fileName(){return e(N)},get allowDownload(){return be()},get downloading(){return J()},onDownload:Z})}),s(t,f)},it=t=>{var a=Xa(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=M(h),O=p(k);P(h),P(a),D((j,L)=>{g(m,e(N)),tt(k,"src",j),g(O,` ${L??""}`)},[()=>K(),()=>c.editor_fileViewer_audioUnsupported_label()]),s(t,a)},yt=t=>{var a=Ja(),f=p(M(a),2),m=S(f,!0),h=p(f,2);{let k=i(()=>!be()||J());Se(h,{size:"sm",variant:"secondary",onclick:Z,get disabled(){return e(k)},children:(O,j)=>{var L=Ya(),V=de(L);Ze(V,{get icon(){return Dt},size:"sm",class:"mr-2"});var se=p(V);D(Q=>g(se,` ${Q??""}`),[()=>c.editor_fileViewer_downloadPdf_label()]),s(O,L)},$$slots:{default:!0}})}P(a),D(k=>g(m,k),[()=>c.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},lt=t=>{{let a=i(()=>ot($().toString()));Xt(t,{get value(){return e(a)},language:"json",get fileName(){return re()},lineNumbers:!0,readOnly:!0})}},Pt=t=>{const a=i(()=>qe($().toString()));var f=to(),m=M(f),h=M(m),k=M(h);xt(k,23,()=>e(a)[0]||[],(j,L)=>`header-${L}-${j}`,(j,L)=>{var V=Za(),se=S(V,!0);D(()=>g(se,e(L))),s(j,V)}),P(k),P(h);var O=p(h);xt(O,23,()=>e(a).slice(1),(j,L)=>`row-${L}`,(j,L,V)=>{var se=eo();xt(se,23,()=>e(L),(Q,ge)=>`cell-${e(V)}-${ge}`,(Q,ge)=>{var Me=Qa(),Ce=S(Me,!0);D(()=>g(Ce,e(ge))),s(Q,Me)}),P(se),s(j,se)}),P(O),P(m),P(f),s(t,f)},Lt=t=>{var a=ro(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=S(h,!0);P(a),D(O=>{g(m,e(N)),g(k,O)},[()=>c.editor_fileViewer_archive_label()]),s(t,a)},$t=t=>{var a=ao(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=S(h,!0);P(a),D(O=>{g(m,e(N)),g(k,O)},[()=>c.editor_fileViewer_binary_label()]),s(t,a)},Je=t=>{{let a=i(()=>$().toString());Xt(t,{get value(){return e(a)},get language(){return Ie()},get fileName(){return re()},lineNumbers:!0,highlightActiveLine:!0})}};ce(ye,t=>{e(W)==="image"?t(Ge):e(W)==="svg"?t(Pe,1):e(W)==="video"?t(ue,2):e(W)==="audio"?t(it,3):e(W)==="pdf"?t(yt,4):e(W)==="json"?t(lt,5):e(W)==="csv"?t(Pt,6):e(W)==="archive"?t(Lt,7):e(W)==="binary"?t($t,8):t(Je,-1)})}return P(pe),s(we,pe),zt(Ye)}Ar(["pointerdown","pointermove","pointerup"]);var io=C("<!> <!>",1),no=C("<!> <!> <!>",1),so=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),ur=C('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),lo=C('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),fr=C('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),co=C('<div class="flex items-center gap-3"><!> <!></div>'),uo=C('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),fo=C("<li><!></li>"),vo=C('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),po=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger"> </p> <p class="text-xs"> </p> <p class="text-xs font-mono"> </p> <!></div>'),go=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),mo=C('<div class="h-full overflow-auto p-4"><!></div>');function _o(we,x){if(new.target)return Mt({component:_o,...we});Rt(x,!0);const ke=()=>he(Pe,"$workspace",R),rt=()=>he(K,"$fileContentStore",R),re=()=>he(ie,"$fileLoadingStore",R),$=()=>he(_e,"$fileSavingStore",R),ae=()=>he(U,"$fileErrorStore",R),Ie=()=>he(ne,"$fileNotFoundCandidatesStore",R),De=()=>he(X,"$isFileBinaryStore",R),be=()=>he(Z,"$isFileDirtyStore",R),me=()=>he(at,"$fileLastUpdatedStore",R),J=()=>he(ot,"$ftChanges$",R),He=()=>he(Ge,"$gutterRead$",R),W=()=>he(je,"$lineWrapping",R),N=()=>he(Ne,"$diffIndicators",R),oe=()=>he(pe,"$rootMediaPreview",R),[R,Ve]=Jt(),Be=r=>{var n=io(),I=de(n);{var F=ve=>{var Ae=Le(),Oe=de(Ae);Ft(Oe,()=>St,(dt,pt)=>{pt(dt,{get icon(){return Pa},get label(){return e(f)},disabled:!0})}),s(ve,Ae)};ce(I,ve=>{!e(se)&&!e(l)&&!e(Je)&&ve(F)})}var fe=p(I,2);{var Te=ve=>{{let Ae=i(()=>!e(It)||!e(L)),Oe=i(()=>!e(l)&&(!e(It)||!e(L)));Ua(ve,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(It)},get previewEnabled(){return e(L)},onTogglePreview:()=>u(L,!e(L)),get showWrap(){return e(Ae)},get wrapEnabled(){return W()},onToggleWrap:()=>A.dispatch(Jr()),get showDiff(){return e(Oe)},get diffEnabled(){return N()},onToggleDiff:()=>A.dispatch(Yr())})}};ce(fe,ve=>{o().filePath&&!e(se)&&!e(Je)&&ve(Te)})}s(r,n)},xe=r=>{var n=Le(),I=de(n);{var F=fe=>{var Te=no(),ve=de(Te);{var Ae=We=>{var Ke=Le(),nt=de(Ke);{let gt=i(()=>c.layout_fileTab_goToChanges_tooltip());Ft(nt,()=>St,(mt,_t)=>{_t(mt,{get icon(){return ka},get label(){return e(gt)},onclick:Dr})})}s(We,Ke)};ce(ve,We=>{e($r)&&We(Ae)})}var Oe=p(ve,2);{var dt=We=>{var Ke=Le(),nt=de(Ke);{let gt=i(()=>c.layout_fileTab_downloadFile_label()),mt=i(()=>!e(ft)||e(Fe));Ft(nt,()=>St,(_t,At)=>{At(_t,{get icon(){return Dt},get label(){return e(gt)},onclick:Ct,get disabled(){return e(mt)}})})}s(We,Ke)};ce(Oe,We=>{e(Ce)&&We(dt)})}var pt=p(Oe,2);{let We=i(()=>c.layout_fileTab_deleteFile_tooltip());Ft(pt,()=>St,(Ke,nt)=>{nt(Ke,{get icon(){return $a},get label(){return e(We)},onclick:jr,destructive:!0})})}s(fe,Te)};ce(I,fe=>{o().filePath&&!e(se)&&!e(l)&&fe(F)})}s(r,n)},je=Ra(),Ne=za();let o=ee(x,"tab",7),d=ee(x,"workspaceId",7),T=ee(x,"isActive",7),_=ee(x,"isPanelFocused",7);$e(()=>{const r=d();if(!(!T()||!r||e(w)))return A.dispatch(qr(r,"files")),()=>A.dispatch(Gr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),Ee=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?ma(o().filePath,e(w)):o().filePath),z=Wr(e(y));$e(()=>{z.set(e(y))});const K=ia(d(),z),ie=na(d(),z),_e=sa(d(),z),U=la(d(),z),ne=da(d(),z),X=ca(d(),z),Z=lr(d(),z),at=ua(d(),z),ot=fa(d()),qe=oa(),Ye=crypto.randomUUID(),pe=xr(Ye),ye=`file-gutter:${crypto.randomUUID()}`,Ge=va(d(),ye),Pe=pa(d()),ue=i(()=>ke()?.worktreePath||ke()?.repositoryPath||ke()?.path||null),it=i(rt),yt=i(re),lt=i($),Pt=i(ae),Lt=5,$t=i(()=>(Ie()??[]).slice(0,Lt)),Je=i(De),t=i(be),a=i(me),f=i(()=>e(lt)?c.ui_saveIndicator_saving_tooltip():e(t)?c.ui_saveIndicator_autoSaving_tooltip():c.ui_saveIndicator_saved_tooltip());let m=H(null),h=H(Br([])),k=H(null),O=H(void 0),j=H(void 0),L=H(!0);$e(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(j)||(u(j,n,!0),u(O,{line:r},!0),u(L,!1))});const V=i(()=>e(w)?dr(o().filePath,e(Ee)):null),se=i(()=>e(w)?!e(V):!!(o().filePath&&(Da(o().filePath)||e(ue)&&ja(o().filePath,e(ue))))),Q=i(()=>o().filePath&&e(ue)?Gt(o().filePath)?o().filePath:`${e(ue)}/${o().filePath}`:null),ge=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),Me=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Ce=i(()=>d()&&/^[A-Za-z0-9._-]+$/.test(d())?dr(o().filePath,e(ue)):null),Vt=i(()=>!e(w)&&e(Ce)?e(Ce).split("/").slice(0,-1).join("/"):void 0),ut=i(()=>e(ge)||e(Me)?e(Ce):null),kt=i(()=>e(w)&&e(Me)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);$e(()=>{if(!T()||!e(w)||!e(V)||!e(kt))return;const r=crypto.randomUUID();return A.dispatch(hr(Ye,r,d(),e(V),{gitRootId:e(w),mimeType:e(kt)})),()=>A.dispatch(wr(Ye,r))});let Fe=H(!1);const ft=i(()=>!!e(Ce)&&!e(yt)&&(!e(Me)||e(k)===e(Ce))),Zt=i(()=>e(k)&&d()?`workspace-file://${d()}/${e(k).split("/").map(encodeURIComponent).join("/")}`:null),Et=i(()=>o().filePath?ea(o().filePath):"plaintext"),It=i(()=>e(Et)==="markdown");$e(()=>{if(!T()||e(ge)||e(w))return;const r=e(ut),n=o().filePath,I=d(),F=o().id;if(u(k,null),!r||!n||!I)return;let fe=!1;const Te=()=>!fe&&d()===I&&o().id===F&&o().filePath===n;return(async()=>{let ve=!1;try{ve=(await _a("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Te())return;if(ve){u(k,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(k,r,!0);return}const{candidates:Ae,truncated:Oe}=await Sa(I,r);if(Te()){if(!Oe&&Ae.length===1){A.dispatch(or(I,n,Ae[0],F));return}u(k,r,!0)}})(),()=>{fe=!0}});function Pr(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const vt=i(()=>e(l)||!o().filePath?null:J().find(r=>Pr(r,o().filePath))??null),$r=i(()=>!!e(vt));$e(()=>{if(e(l))return;const r=d(),n=o().filePath,I=e(ue);return()=>{if(!r||!n)return;const F=Ht.select(A.state,r,n);if(F?.kind!=="editable-text")return;const fe=Ot(F.localContent),Te=lr.select(A.state,r,n),ve=Gt(n)?n:I?`${I}/${n}`:null;Te&&ve&&A.dispatch(ir(r,n,ve,fe))}}),$e(()=>{const r=o().filePath,n=e(Q),I=d();if(!T())return;const F=!e(w)&&!!r&&Gt(r)&&!e(ue);r&&I&&!e(se)&&!e(Me)&&!e(ge)&&!F&&(e(w)&&e(V)&&e(y)?A.dispatch(nr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(V)}})):A.dispatch(nr(I,r,n??r)))});function kr(){return e(it)??""}function Ir(r){e(l)||e(Je)||!o().filePath||!d()||!e(Q)||A.dispatch(aa(d(),o().filePath,Ot(r)))}function Cr(){if(e(l)||e(Je)||!o().filePath||!e(Q)||e(it)===null||e(lt))return;const r=Ht.select(A.state,d(),o().filePath);r?.kind==="editable-text"&&A.dispatch(ir(d(),o().filePath,e(Q),Ot(r.localContent)))}function Fr(r){const n=o().filePath;!n||!d()||(A.dispatch(ra(d(),n)),A.dispatch(or(d(),n,r,o().id)))}$e(()=>{const r=o().filePath,n=e(vt);if(!r||!n){u(h,[],!0);return}if(!T())return;const I=d(),F=crypto.randomUUID();return A.dispatch(Kr(I,ye,F,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Xr(I,ye,F))}}),$e(()=>{const r=He(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(F=>F.file===o().filePath)??n[0];u(h,I?Ma(I.chunks.map(F=>({oldStart:F.oldStart,oldLines:F.oldLines,newStart:F.newStart,newLines:F.newLines,lines:F.lines.map(fe=>(fe.type===sr.Addition?"+":fe.type===sr.Deletion?"-":" ")+fe.content)}))):[],!0)});function Sr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Te=>Nr(r,La(Te),n);if(I("editor.save")){r.preventDefault(),e(t)&&!e(lt)&&Cr();return}const F=I("editor.undo")?"undo":I("editor.redo")?"redo":I("editor.toggle-task-list")?"toggle-task-list":I("editor.copy")?"copy":I("editor.select-all")?"select-all":null;if(!F||e(l)&&F!=="copy"&&F!=="select-all")return;F!=="toggle-task-list"&&e(m)?.runShortcut(F)&&r.preventDefault()}function Dr(r){if(!o().filePath||!e(vt))return;const n=r?.metaKey||r?.ctrlKey||!1,F=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ta(d(),e(vt),{filePath:o().filePath,changeId:e(vt).id,openInAdjacentPanel:n,sourcePanelId:F}))}async function Ct(){const r=e(Ce);if(!(e(l)||!r||!d()||!e(ft)||e(Fe))){u(Fe,!0);try{const n=await ga(d(),r,e(ue));!n?.success&&!n?.canceled&&qt.error(n?.error?.message||c.layout_fileTab_downloadFailed_error())}catch{qt.error(c.layout_fileTab_downloadFailed_error())}finally{u(Fe,!1)}}}function jr(){const r=e(Q);if(e(l)||!o().filePath||!d()||!r)return;const n=Zr(Ht.select(A.state,d(),o().filePath));if(!n){qt.error(c.ui_reversibleActions_failed_error({message:c.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(Qr(d(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}$e(()=>{if(!qe||!T())return;const r={isDirty:!e(l)&&e(t),isSaving:!e(l)&&e(lt)};vr(()=>{qe.registerActions({display:Be,actions:xe}),qe.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),te()},get workspaceId(){return d()},set workspaceId(r){d(r),te()},get isActive(){return T()},set isActive(r){T(r),te()},get isPanelFocused(){return _()},set isPanelFocused(r){_(r),te()},$set:Tt,$on:(r,n)=>Ut(x,r,n)},Qt=Le();et("keydown",pr,r=>T()&&Sr(r));var Tr=de(Qt);{var Ur=r=>{var n=Le(),I=de(n);gr(I,()=>o().filePath,F=>{var fe=Le(),Te=de(fe);{var ve=b=>{var v=so(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0);P(v),D(Y=>{g(q,Y),g(Ue,o().filePath)},[()=>c.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ae=b=>{var v=Le(),E=de(v);{var q=B=>{Yt(B,{get workspaceId(){return d()},get filePath(){return e(V)},get gitRootId(){return e(w)}})};ce(E,B=>{T()&&B(q)})}s(b,v)},Oe=b=>{var v=Le(),E=de(v);{var q=Y=>{var G=ur(),le=M(G),Re=S(le,!0);P(G),D(ze=>g(Re,ze),[()=>c.layout_fileTab_errorLoading_label()]),s(Y,G)},B=Y=>{jt(Y,{get filePath(){return o().filePath},get sourceUrl(){return oe().url},allowDownload:!1})},Ue=Y=>{var G=lo(),le=M(G),Re=S(le,!0);P(G),D(ze=>g(Re,ze),[()=>c.layout_fileTab_preparing_label()]),s(Y,G)};ce(E,Y=>{oe()?.error?Y(q):oe()?.url?Y(B,1):Y(Ue,-1)})}s(b,v)},dt=b=>{var v=Le(),E=de(v);{var q=B=>{Yt(B,{get workspaceId(){return d()},get filePath(){return e(ut)}})};ce(E,B=>{T()&&B(q)})}s(b,v)},pt=b=>{var v=ur(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.file_pdf_load_error()]),s(b,v)},We=b=>{{let v=i(()=>e(k)??o().filePath),E=i(()=>!e(l)&&e(ft));jt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Zt)},onDownload:Ct,get allowDownload(){return e(E)},get downloading(){return e(Fe)}})}},Ke=b=>{var v=fr(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.layout_fileTab_preparing_label()]),s(b,v)},nt=b=>{var v=uo(),E=M(v);xt(E,20,()=>[...Array(20).keys()],q=>q,(q,B)=>{var Ue=co(),Y=M(Ue);cr(Y,{class:"h-3 w-8 shrink-0"});var G=p(Y,2);cr(G,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Ue),s(q,Ue)}),P(E),P(v),s(b,v)},gt=b=>{var v=po(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0),Y=p(B,2),G=S(Y,!0),le=p(Y,2);{var Re=ze=>{var st=vo(),ht=de(st),Wt=S(ht,!0),er=p(ht,2);xt(er,20,()=>e($t),wt=>wt,(wt,tr)=>{var Bt=fo(),zr=M(Bt);Se(zr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Fr(tr),children:(Lr,ho)=>{Xe();var rr=Qe();D(()=>g(rr,tr)),s(Lr,rr)},$$slots:{default:!0}}),P(Bt),s(wt,Bt)}),P(er),D(wt=>g(Wt,wt),[()=>c.layout_fileTab_didYouMean_label()]),s(ze,st)};ce(le,ze=>{e($t).length>0&&ze(Re)})}P(v),D(ze=>{g(q,ze),g(Ue,e(Pt)),g(G,o().filePath)},[()=>c.layout_fileTab_errorLoading_label()]),s(b,v)},mt=b=>{var v=go(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0),Y=p(B,2);{var G=le=>{{let Re=i(()=>!e(ft)||e(Fe));Se(le,{variant:"secondary",size:"sm",onclick:Ct,get disabled(){return e(Re)},children:(ze,st)=>{Xe();var ht=Qe();D(Wt=>g(ht,Wt),[()=>c.layout_fileTab_downloadFile_label()]),s(ze,ht)},$$slots:{default:!0}})}};ce(Y,le=>{!e(l)&&e(Ce)&&le(G)})}P(v),D(le=>{g(q,le),g(Ue,o().filePath)},[()=>c.editor_fileViewer_binary_label()]),s(b,v)},_t=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var E=Le(),q=de(E);{var B=G=>{{let le=i(()=>o().filePath||""),Re=i(()=>!e(l)&&e(ft));jt(G,{get filePath(){return e(le)},get fileContent(){return e(it)},get language(){return e(Et)},get isBinary(){return e(Je)},onDownload:Ct,get allowDownload(){return e(Re)},get downloading(){return e(Fe)}})}},Ue=G=>{var le=mo(),Re=M(le);Ta(Re,{get content(){return e(it)},get workspaceId(){return d()},get relativeMediaBase(){return e(Vt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(le),s(G,le)},Y=G=>{var le=kr,Re=Ir;{let ze=i(()=>N()?e(h):[]);mr(Xt(G,{get value(){return le()},set value(st){Re(st)},get language(){return e(Et)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return d()},get filePath(){return o().filePath},get lineWrapping(){return W()},get lineChanges(){return e(ze)},get jumpTo(){return e(O)},get externalContentVersion(){return e(a)},get isPanelFocused(){return _()}}),st=>u(m,st,!0),()=>e(m))}};ce(q,G=>{e(v)?G(B):e(It)&&e(L)?G(Ue,1):G(Y,-1)})}s(b,E)},At=b=>{var v=fr(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.layout_fileTab_preparing_label()]),s(b,v)};ce(Te,b=>{e(se)?b(ve):e(w)&&e(ge)&&e(V)?b(Ae,1):e(w)&&e(Me)?b(Oe,2):e(ge)&&e(ut)?b(dt,3):e(ge)?b(pt,4):e(Zt)?b(We,5):e(Me)?b(Ke,6):e(yt)?b(nt,7):e(Pt)?b(gt,8):e(Je)?b(mt,9):e(it)!==null?b(_t,10):b(At,-1)})}s(F,fe)}),s(r,n)};ce(Tr,r=>{o().filePath&&r(Ur)})}s(we,Qt);var Rr=zt(Mr);return Ve(),Rr}export{_o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./
|
|
1
|
+
import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./D4MoKNoK.js";import{bs as bt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as At,bH as G,bV as H,aA as E}from"./B8o4lNgr.js";import{B as wt}from"./HfuFYz2u.js";import{b as Dt}from"./D2g8BuR1.js";import{G2 as a,ei as Pt,ej as St,mQ as Ut,xc as Et,mU as _t,mV as xt,Gz as Ft,GN as Tt,GE as Wt,th as Bt,sA as qt}from"./C51KzdSG.js";import{aU as Gt}from"./Bj2YjLqH.js";import{g as Ht}from"./CoSk1zgY.js";import{dj as Lt,bK as Nt,bz as Ot,bD as vt,bB as Kt}from"./dimBDqRX.js";import{ai as Mt}from"./CJQrM64N.js";import{C as jt}from"./BioKfdhs.js";import{V as Vt}from"./BqSjWCdR.js";import{bC as zt,bA as Jt,aX as Qt}from"./t61BPD62.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});bt(f,!0);const L=()=>d(Z,"$gitRoots$",n),x=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),b=()=>d(tt,"$commitRead$",n),v=()=>d(Q,"$foldUnchanged",n),K=()=>d(J,"$lineWrapping",n),M=()=>d(X,"$diffSideBySide",n),j=()=>d(at,"$ftLoading$",n),[n,V]=It(),z=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{G(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return v()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(Tt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Ft())})},J=zt(),Q=Jt(),X=Qt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Ht(),g=Gt(()=>i()),Y=Lt(g),Z=Mt(g),A=crypto.randomUUID(),tt=Nt(g,A),c=s(()=>h().data?.commitHash||""),T=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||x()?.worktreePath||x()?.repositoryPath||""),st=Ot(g),ot=vt(g),at=Kt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),w=s(()=>t(p)?.files||[]),D=s(()=>b()?.request.kind==="commitDetails"&&b().request.commitHash===t(c)&&(b().request.gitRootId??"")===t(r)?b():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(w).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,A,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,A,u))});const ct=s(()=>t(w).length>0?t(w):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(T)}}));k(()=>{!F||!$()||F.registerActions({display:z})});const B=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,B)),()=>a.dispatch(xt(e,B))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>yt(f,e,o)},q=Ct(),gt=Rt(q);wt(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>j()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(T),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(jt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:y,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Bt(i(),y,{openInAdjacentPanel:P,sourcePanelId:S}))}}),y=>G(R,y,!0),()=>t(R))}}),kt(_,q);var pt=At(mt);return V(),pt}export{Yt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as b}from"./
|
|
1
|
+
import{C as b}from"./CVBBsS8i.js";import{a as T}from"./BJzHxIyr.js";import{w as M}from"./Sk9pLJI5.js";import{G2 as n,Bb as v,AI as E,g as A,sY as _,sA as C,A1 as O,Aj as D,Cb as L,A5 as P}from"./C51KzdSG.js";import{aW as p}from"./dimBDqRX.js";import{d as H}from"./B0Z-1lwJ.js";import{n as R}from"./CwK4Fl7A.js";import{o as x,e as W}from"./BoAgG62K.js";const f=new T("OpenMessage"),S=150,k=15e3,B=2,q=[150,400,800,1500,3e3],F=b;let g;function y(e){return new Promise(t=>setTimeout(t,e))}function w(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function G(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function N(e,t,s){const a=Date.now()+k;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(w(e,t))return!0;if(o>=B&&G(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await y(S)}return!s.aborted&&w(e,t)}async function Y(e,t,s,a){const o=Date.now()+k;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await y(S)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(w(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(O(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,F,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(m=>m.id===t)?!1:(n.dispatch(D(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(L(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},w(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(P(e,c))}}async function J(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===A;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(E(A,a)),n.dispatch(_("chief")));const l=c?"/":W(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await x(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await N(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,m={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of q)setTimeout(()=>{t.aborted||H("chat:open-message",m)},h)}export{J as openMessage,Y as seekConversationToMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as n}from"./
|
|
1
|
+
import{g as l,r as m,d as n}from"./DRdRLmUz.js";import{p}from"./UMObs5wi.js";import{f as t,bC as o}from"./CdT170lG.js";import{M as f,a as u}from"./H_dyzYix.js";var c=u().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new f(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
|