@intent-hq/web 2.352.0 → 2.352.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/14.DqC-ohbL.css +1 -0
- package/web/app/immutable/chunks/{DJnc5r8U.js → -iXO69ce.js} +1 -1
- package/web/app/immutable/chunks/{B_sYr-qY.js → 2VuBywRP.js} +1 -1
- package/web/app/immutable/chunks/{DF7SJcHw.js → 3XzoopWe.js} +1 -1
- package/web/app/immutable/chunks/{DFbFLnMx.js → 3gLoJ45p.js} +1 -1
- package/web/app/immutable/chunks/{-lzAI0Yg.js → 42g-QhQV.js} +2 -2
- package/web/app/immutable/chunks/{CMeXe72Y.js → 4YiJ0ND9.js} +1 -1
- package/web/app/immutable/chunks/{BhzNHo5H.js → 7H-n9zof.js} +1 -1
- package/web/app/immutable/chunks/{CDJiCuQl.js → 7y1QtJjP.js} +1 -1
- package/web/app/immutable/chunks/{6dKWFbhS.js → 9BnYs1hu.js} +1 -1
- package/web/app/immutable/chunks/{BReF7PxO.js → 9G_vzB9L.js} +1 -1
- package/web/app/immutable/chunks/{C4rL7fPq.js → 9ZrH1aY4.js} +1 -1
- package/web/app/immutable/chunks/{DE-3_OpQ.js → A-WQk-3j.js} +1 -1
- package/web/app/immutable/chunks/{D1z1qVWr.js → B--Bllfx.js} +1 -1
- package/web/app/immutable/chunks/{BO5Pq4fi.js → B1uicwDR.js} +1 -1
- package/web/app/immutable/chunks/{BA4kNZus.js → B2EPbB5o.js} +1 -1
- package/web/app/immutable/chunks/{Cjd2lqUF.js → B51SDTRI.js} +1 -1
- package/web/app/immutable/chunks/{CgbHaDpG.js → B6YGydaZ.js} +1 -1
- package/web/app/immutable/chunks/{lwGMtA_8.js → B93i7ayb.js} +1 -1
- package/web/app/immutable/chunks/{DEo5mzFE.js → B96uZ9bz.js} +4 -4
- package/web/app/immutable/chunks/{D1PZlLC_.js → B9pVpwXj.js} +1 -1
- package/web/app/immutable/chunks/{hQlemDzn.js → BANZxiwI.js} +1 -1
- package/web/app/immutable/chunks/{ChYZv5SJ.js → BBAAgrj4.js} +1 -1
- package/web/app/immutable/chunks/{BfmiyhX4.js → BDxUZFPM.js} +1 -1
- package/web/app/immutable/chunks/{CnTu6sc6.js → BEWd3Wd2.js} +1 -1
- package/web/app/immutable/chunks/{Qpp-eumr.js → BFe96yI4.js} +1 -1
- package/web/app/immutable/chunks/{CRZhk1kc.js → BHl6gZVr.js} +1 -1
- package/web/app/immutable/chunks/{DyLYtK5N.js → BKkglBqM.js} +1 -1
- package/web/app/immutable/chunks/{4dL6nLyL.js → BLkznJGy.js} +1 -1
- package/web/app/immutable/chunks/{CDFph9XW.js → BLx2u3_L.js} +1 -1
- package/web/app/immutable/chunks/{BotG4DRY.js → BM-quT2Y.js} +1 -1
- package/web/app/immutable/chunks/{B7oLLIgw.js → BMFTNhcT.js} +4 -4
- package/web/app/immutable/chunks/{Bmm9qguf.js → BMY_-gp1.js} +1 -1
- package/web/app/immutable/chunks/{BeeeYKV6.js → BN8E3HGF.js} +1 -1
- package/web/app/immutable/chunks/{CmpBd6Tg.js → BOh3NU76.js} +1 -1
- package/web/app/immutable/chunks/{BQYuNS07.js → BPxJwcRN.js} +1 -1
- package/web/app/immutable/chunks/{C79qeQUX.js → BQ_vw_jH.js} +1 -1
- package/web/app/immutable/chunks/{JxvzDmDF.js → BQi20dkR.js} +1 -1
- package/web/app/immutable/chunks/{D1nX-Mgh.js → BRCIAK0M.js} +1 -1
- package/web/app/immutable/chunks/{sbDqysXr.js → BRF08a2k.js} +1 -1
- package/web/app/immutable/chunks/{B32BlPhm.js → BSlI9zJ7.js} +1 -1
- package/web/app/immutable/chunks/{C2Y-3LOO.js → BTn81WXW.js} +1 -1
- package/web/app/immutable/chunks/{Bs7PlXA3.js → BVywtjLl.js} +1 -1
- package/web/app/immutable/chunks/{jOuwgRm6.js → BW4tbUu2.js} +1 -1
- package/web/app/immutable/chunks/{ceF1L-gS.js → BWbAywHh.js} +1 -1
- package/web/app/immutable/chunks/{hRTaoCvf.js → BWcjZ4Fj.js} +1 -1
- package/web/app/immutable/chunks/{OyCLeO1d.js → BXBvjtiY.js} +1 -1
- package/web/app/immutable/chunks/{C-_Lx3Nm.js → BXpZ7iBl.js} +1 -1
- package/web/app/immutable/chunks/{B5oIPQ5b.js → BYzh_tA7.js} +1 -1
- package/web/app/immutable/chunks/{DCOf4rfq.js → B_-41aBJ.js} +1 -1
- package/web/app/immutable/chunks/{D5fTH_R4.js → Bax3V5fr.js} +1 -1
- package/web/app/immutable/chunks/{B6eIRRKX.js → Bbx-xmDT.js} +2 -2
- package/web/app/immutable/chunks/{DQuLjWyg.js → Bdisv45z.js} +1 -1
- package/web/app/immutable/chunks/{9zOi9r5I.js → Bdq4y4cj.js} +1 -1
- package/web/app/immutable/chunks/{BJ4sw9rR.js → BeMtjFt-.js} +1 -1
- package/web/app/immutable/chunks/{Dcd40P4V.js → BgFp_75_.js} +1 -1
- package/web/app/immutable/chunks/{vgvfRyJV.js → BgRO_jMm.js} +1 -1
- package/web/app/immutable/chunks/{DkkZo56B.js → Bh0pGToL.js} +1 -1
- package/web/app/immutable/chunks/{3DUg3Vrc.js → BiVCDDwc.js} +1 -1
- package/web/app/immutable/chunks/{BS0GmsgM.js → BigTi-DL.js} +1 -1
- package/web/app/immutable/chunks/{Cnntv_QI.js → BiwSch_R.js} +1 -1
- package/web/app/immutable/chunks/{DaVLGnNn.js → BjVdTOP4.js} +1 -1
- package/web/app/immutable/chunks/{4fLmPVdQ.js → BjlLvkns.js} +1 -1
- package/web/app/immutable/chunks/{DsPTvO1D.js → BlLJ5NFL.js} +1 -1
- package/web/app/immutable/chunks/{Da2MW7PY.js → Bmj12UUL.js} +1 -1
- package/web/app/immutable/chunks/{DdSHHwG-.js → BmnyoS7_.js} +1 -1
- package/web/app/immutable/chunks/{BIQ14Jou.js → BoRMZRdC.js} +1 -1
- package/web/app/immutable/chunks/{CSDwAwlx.js → Bp-VyqNC.js} +1 -1
- package/web/app/immutable/chunks/{BYO1ou6X.js → BpwAjMRH.js} +1 -1
- package/web/app/immutable/chunks/{BszXPYBq.js → Bt7pQW1u.js} +1 -1
- package/web/app/immutable/chunks/{BlsliAvk.js → BwKG6cFP.js} +1 -1
- package/web/app/immutable/chunks/{IsZH9joj.js → BzK5IDDm.js} +1 -1
- package/web/app/immutable/chunks/{DifK42p0.js → BzZzLv4Q.js} +1 -1
- package/web/app/immutable/chunks/{HZ9TCfKK.js → Bzfr2EHI.js} +1 -1
- package/web/app/immutable/chunks/{DXBnJ5oH.js → C0Xfm4kR.js} +1 -1
- package/web/app/immutable/chunks/{Cbew16AD.js → C1enlV3Q.js} +1 -1
- package/web/app/immutable/chunks/{DhPqduTn.js → C35re5In.js} +1 -1
- package/web/app/immutable/chunks/{bl5nff1M.js → C3gqOCHk.js} +1 -1
- package/web/app/immutable/chunks/{C12ljpSn.js → C70D7FhU.js} +1 -1
- package/web/app/immutable/chunks/{CUHqJ1Vg.js → C7XJXaB7.js} +4 -4
- package/web/app/immutable/chunks/{CNgwOiTE.js → C8B0zONc.js} +1 -1
- package/web/app/immutable/chunks/{D4uvglha.js → C96vib0x.js} +1 -1
- package/web/app/immutable/chunks/{Co5bimwo.js → CCVYeY-e.js} +1 -1
- package/web/app/immutable/chunks/{XHXZbc0Q.js → CFhL5yzr.js} +1 -1
- package/web/app/immutable/chunks/{C7lasS44.js → CFkpeGQ5.js} +1 -1
- package/web/app/immutable/chunks/{D7LYGcjf.js → CFtzUtOD.js} +1 -1
- package/web/app/immutable/chunks/{CPjC-KKN.js → CGwcLPH6.js} +1 -1
- package/web/app/immutable/chunks/{CGuBCqy6.js → CHOnTvs1.js} +1 -1
- package/web/app/immutable/chunks/{B8PxK7sP.js → CJtCxj01.js} +1 -1
- package/web/app/immutable/chunks/{DlNogvkm.js → CNRbDA27.js} +1 -1
- package/web/app/immutable/chunks/{DV_c4cZz.js → CNqgoGJU.js} +1 -1
- package/web/app/immutable/chunks/{IH85nSha.js → COSepW13.js} +1 -1
- package/web/app/immutable/chunks/{DHnebSEV.js → COgZvOvQ.js} +1 -1
- package/web/app/immutable/chunks/{EbPgJF03.js → CP9ivNHa.js} +1 -1
- package/web/app/immutable/chunks/{GVSL2sGk.js → CPHJOAlO.js} +1 -1
- package/web/app/immutable/chunks/{CDvr6QES.js → CPnIka8O.js} +1 -1
- package/web/app/immutable/chunks/{BXyNrc2B.js → CQANJb_H.js} +1 -1
- package/web/app/immutable/chunks/{D0ArSCdC.js → CROLa_Im.js} +1 -1
- package/web/app/immutable/chunks/{OXVbQQSu.js → CTknV-EG.js} +1 -1
- package/web/app/immutable/chunks/{BAp1A2ZH.js → CV4M1NA3.js} +1 -1
- package/web/app/immutable/chunks/{CPY58-tp.js → CVnLnlH1.js} +1 -1
- package/web/app/immutable/chunks/{DS2QhtLm.js → CVtHgVrS.js} +1 -1
- package/web/app/immutable/chunks/{Bvd0DfwC.js → CWqKPDkJ.js} +1 -1
- package/web/app/immutable/chunks/{DMVl8bez.js → CZNy5do6.js} +1 -1
- package/web/app/immutable/chunks/{CbIRB05A.js → CZucG27k.js} +12 -12
- package/web/app/immutable/chunks/CZyKzFn6.js +1 -0
- package/web/app/immutable/chunks/C_bpTLt9.js +1 -0
- package/web/app/immutable/chunks/{BEpQx2rq.js → C_f5SDUL.js} +1 -1
- package/web/app/immutable/chunks/{CZ8DhcrQ.js → C_ny7WcD.js} +1 -1
- package/web/app/immutable/chunks/{WSPGY2Jm.js → Cce8c6OS.js} +1 -1
- package/web/app/immutable/chunks/{i4rQF8gq.js → Cfc1whKN.js} +1 -1
- package/web/app/immutable/chunks/{CLi8c-Jc.js → CgSWRIvD.js} +1 -1
- package/web/app/immutable/chunks/{Bfba9qCM.js → CgXne1WE.js} +1 -1
- package/web/app/immutable/chunks/{Da7V4qRA.js → ChCN1Gu-.js} +1 -1
- package/web/app/immutable/chunks/{BQpZAVZ0.js → Ci1iDxHS.js} +1 -1
- package/web/app/immutable/chunks/{DD4J0jul.js → CiFdZ1u1.js} +1 -1
- package/web/app/immutable/chunks/{DTNUQDFX.js → CjyVjWQm.js} +1 -1
- package/web/app/immutable/chunks/{Kn9ZbRDu.js → CkLrBTU_.js} +1 -1
- package/web/app/immutable/chunks/{COO6ldt4.js → Cki2vNyW.js} +1 -1
- package/web/app/immutable/chunks/{BMYSQl-k.js → ClT9lHTq.js} +1 -1
- package/web/app/immutable/chunks/{B3Wey9bw.js → CoW2v1qV.js} +1 -1
- package/web/app/immutable/chunks/{B6lWPidK.js → CodBnHd8.js} +1 -1
- package/web/app/immutable/chunks/{D76YpzZQ.js → Cp-IRK5Y.js} +1 -1
- package/web/app/immutable/chunks/CqyTmKyd.js +1 -0
- package/web/app/immutable/chunks/{vSkHI-FK.js → CsfjhBJJ.js} +2 -2
- package/web/app/immutable/chunks/{C1WXXen7.js → CtZw5rYt.js} +1 -1
- package/web/app/immutable/chunks/{iqwxOx7o.js → CuiSWPlc.js} +1 -1
- package/web/app/immutable/chunks/{C1X9EbCK.js → Cujcdo3J.js} +3 -3
- package/web/app/immutable/chunks/{HtolvgCH.js → Cv4LBZVV.js} +1 -1
- package/web/app/immutable/chunks/{BodHilN5.js → CwChgvHr.js} +1 -1
- package/web/app/immutable/chunks/{BgOj6lPu.js → CwFEdD3h.js} +1 -1
- package/web/app/immutable/chunks/{4gwN8kRi.js → D-4WuS6g.js} +1 -1
- package/web/app/immutable/chunks/{XJEHWeE3.js → D-qjRHfG.js} +1 -1
- package/web/app/immutable/chunks/{BMQBnpVJ.js → D0Jvqbyo.js} +1 -1
- package/web/app/immutable/chunks/{B9Ccf4_O.js → D0MGMinc.js} +1 -1
- package/web/app/immutable/chunks/{D16yE-CH.js → D3MP9WT1.js} +2 -2
- package/web/app/immutable/chunks/{Dzmm4LX6.js → D4V4ch-K.js} +2 -2
- package/web/app/immutable/chunks/{CDhg3msv.js → D56uFwAO.js} +2 -2
- package/web/app/immutable/chunks/{Db2Jl7w7.js → D66Wwf7O.js} +1 -1
- package/web/app/immutable/chunks/D7ppHbEC.js +1 -0
- package/web/app/immutable/chunks/{DVdgjGW2.js → D9uk5SNv.js} +1 -1
- package/web/app/immutable/chunks/{B48wzP5i.js → DC3B_5LT.js} +1 -1
- package/web/app/immutable/chunks/{CRrFC3B8.js → DCJF1EsI.js} +1 -1
- package/web/app/immutable/chunks/{BROObX9U.js → DCn-eN19.js} +1 -1
- package/web/app/immutable/chunks/{Buh7J53B.js → DGIV4Vo-.js} +1 -1
- package/web/app/immutable/chunks/{CH2B1dsg.js → DHwoF-g6.js} +1 -1
- package/web/app/immutable/chunks/{DrPWazGq.js → DI6jgBJE.js} +1 -1
- package/web/app/immutable/chunks/{DeLItg2s.js → DJy3Z5wg.js} +1 -1
- package/web/app/immutable/chunks/{BAj9Av-i.js → DK3sBN-X.js} +1 -1
- package/web/app/immutable/chunks/{CZwN60O3.js → DKy3ij-K.js} +1 -1
- package/web/app/immutable/chunks/{BGkKDEs0.js → DMgU3Vk3.js} +1 -1
- package/web/app/immutable/chunks/{CltuTtDv.js → DN1kdXB2.js} +1 -1
- package/web/app/immutable/chunks/{BAkYMES1.js → DNFzjXTg.js} +1 -1
- package/web/app/immutable/chunks/{DRDTrHX3.js → DOiBG4Xt.js} +1 -1
- package/web/app/immutable/chunks/{C1l_AdDU.js → DPcZSvbx.js} +1 -1
- package/web/app/immutable/chunks/{B87_3X7t.js → DQI5zOsq.js} +1 -1
- package/web/app/immutable/chunks/{hmNmIDzu.js → DSFNjfq2.js} +1 -1
- package/web/app/immutable/chunks/{SAoHFFQz.js → DUfd5L3a.js} +1 -1
- package/web/app/immutable/chunks/{D8Uhwh7R.js → DVzpe44v.js} +1 -1
- package/web/app/immutable/chunks/{BgasfqLM.js → DWMg25J9.js} +1 -1
- package/web/app/immutable/chunks/{9cOnZvFz.js → DWtjDbhy.js} +1 -1
- package/web/app/immutable/chunks/{CrxGBxMK.js → D_ZD5RNe.js} +1 -1
- package/web/app/immutable/chunks/{CVxBES9o.js → DbMr_M0v.js} +1 -1
- package/web/app/immutable/chunks/{B82ywBwW.js → DbX7gvUZ.js} +1 -1
- package/web/app/immutable/chunks/{C-d_8VyS.js → Dbym7Ujf.js} +2 -2
- package/web/app/immutable/chunks/{B4qnea7H.js → Dd1JOibt.js} +1 -1
- package/web/app/immutable/chunks/{BnfhlAnU.js → De5x5gzU.js} +1 -1
- package/web/app/immutable/chunks/{CbBwTVsV.js → DefRdJrZ.js} +1 -1
- package/web/app/immutable/chunks/{HpSr1h8y.js → DfP8-E4c.js} +1 -1
- package/web/app/immutable/chunks/{D0fcdSwZ.js → Dj891R26.js} +3 -3
- package/web/app/immutable/chunks/{BzNn-vV2.js → Djzf9L5n.js} +1 -1
- package/web/app/immutable/chunks/{B58e63dk.js → Dk5pYfFx.js} +1 -1
- package/web/app/immutable/chunks/{B8u7Bszh.js → DkCcVZv8.js} +1 -1
- package/web/app/immutable/chunks/{vj4vOyOm.js → DkVzCi0x.js} +1 -1
- package/web/app/immutable/chunks/{Cs1vro6u.js → DkwBBG07.js} +1 -1
- package/web/app/immutable/chunks/{CGtiJZ6Q.js → DlUEqLkC.js} +2 -2
- package/web/app/immutable/chunks/{DBGsU6bn.js → DliR8x2J.js} +1 -1
- package/web/app/immutable/chunks/{CMbQPqLg.js → Dnr4oHmH.js} +1 -1
- package/web/app/immutable/chunks/{CacD4jQL.js → Do4lV0Gm.js} +1 -1
- package/web/app/immutable/chunks/{CmSGn2AH.js → Dp-INXxI.js} +1 -1
- package/web/app/immutable/chunks/{61CqOAVf.js → DqpQ10ho.js} +3 -3
- package/web/app/immutable/chunks/{DgGohlQK.js → DrMo8olQ.js} +1 -1
- package/web/app/immutable/chunks/{D8eSz7L_.js → Drru83uz.js} +1 -1
- package/web/app/immutable/chunks/{CYYbdMIM.js → DsGIBuOx.js} +1 -1
- package/web/app/immutable/chunks/{j5tG0B2t.js → DuIO-fff.js} +1 -1
- package/web/app/immutable/chunks/{vJ7Dp7-k.js → DvLxeXQt.js} +1 -1
- package/web/app/immutable/chunks/{fEnLQxJ4.js → DxKz2kXi.js} +1 -1
- package/web/app/immutable/chunks/{Cep-BDRS.js → DxwEJH0_.js} +1 -1
- package/web/app/immutable/chunks/{DoWpanLy.js → EFc0Q3Ph.js} +1 -1
- package/web/app/immutable/chunks/{jK-m9hL8.js → FoPHB-pC.js} +1 -1
- package/web/app/immutable/chunks/{Bw0E8NsL.js → Ghi6Ot-2.js} +1 -1
- package/web/app/immutable/chunks/{DNBLhM9P.js → GvPMNA5h.js} +1 -1
- package/web/app/immutable/chunks/{B3I1nFXA.js → KLtatjN6.js} +1 -1
- package/web/app/immutable/chunks/{Cx8Xjey1.js → KRzw34LA.js} +3 -3
- package/web/app/immutable/chunks/{_L5AdDNH.js → NA-6snAa.js} +1 -1
- package/web/app/immutable/chunks/{hwFphMxp.js → NeYI0LTt.js} +1 -1
- package/web/app/immutable/chunks/{tSZXsoGb.js → Oljw-CHa.js} +1 -1
- package/web/app/immutable/chunks/{CZkLaz_S.js → Onx6XErR.js} +3 -3
- package/web/app/immutable/chunks/{6J2j9GGS.js → P8wRK4co.js} +1 -1
- package/web/app/immutable/chunks/{DLHLuX0B.js → RQbokbVe.js} +1 -1
- package/web/app/immutable/chunks/{B1s_9zgm.js → S5Sbp0zl.js} +2 -2
- package/web/app/immutable/chunks/{DXIggtiA.js → StdfQQmZ.js} +1 -1
- package/web/app/immutable/chunks/{DjaIRWIW.js → VW0lVlpA.js} +1 -1
- package/web/app/immutable/chunks/{DR5IxY_q.js → WJn4wQtU.js} +1 -1
- package/web/app/immutable/chunks/{gWBpiwO7.js → WXBZRbJY.js} +1 -1
- package/web/app/immutable/chunks/{C_Q5e0bX.js → XQd1JSku.js} +1 -1
- package/web/app/immutable/chunks/{6cjeTxFJ.js → YpeHZXNr.js} +1 -1
- package/web/app/immutable/chunks/{AnpLuuuk.js → ZlqIk0xQ.js} +1 -1
- package/web/app/immutable/chunks/{CzoxGXV9.js → _JYhOJCj.js} +1 -1
- package/web/app/immutable/chunks/{Ci51i12B.js → _OiZv6Vf.js} +1 -1
- package/web/app/immutable/chunks/{xeIBXGKb.js → aSeQxvml.js} +1 -1
- package/web/app/immutable/chunks/{Dbd3M4VX.js → cFAs9x9A.js} +4 -4
- package/web/app/immutable/chunks/{ztG-0WIA.js → cIN3tPpg.js} +1 -1
- package/web/app/immutable/chunks/{DevaRANM.js → cVQbeQMu.js} +3 -3
- package/web/app/immutable/chunks/{CWr4n77L.js → eM0lx0Fs.js} +3 -3
- package/web/app/immutable/chunks/{CaZWRaBD.js → eSVAw_jr.js} +1 -1
- package/web/app/immutable/chunks/{D6eYnkBB.js → elwoNDMK.js} +1 -1
- package/web/app/immutable/chunks/{iYz7qSVO.js → fSyO2umz.js} +1 -1
- package/web/app/immutable/chunks/{Dfo7IcH5.js → g6dwab4X.js} +1 -1
- package/web/app/immutable/chunks/{BR9y4bsr.js → gqGuWn1w.js} +2 -2
- package/web/app/immutable/chunks/{xpT8lZyG.js → i5dViSDM.js} +2 -2
- package/web/app/immutable/chunks/{BM7Fn-M6.js → iJ00-f4f.js} +1 -1
- package/web/app/immutable/chunks/{Bz6dDdb9.js → k-x0h0G_.js} +1 -1
- package/web/app/immutable/chunks/{DEo3brV5.js → mDC9F6Wl.js} +2 -2
- package/web/app/immutable/chunks/{CfdX4Lfl.js → mNUHj1rI.js} +1 -1
- package/web/app/immutable/chunks/{Qg7vTeHw.js → nLAho21u.js} +1 -1
- package/web/app/immutable/chunks/{DlySFqed.js → o0XOKzhL.js} +1 -1
- package/web/app/immutable/chunks/{CUolE7JW.js → otE5vrME.js} +1 -1
- package/web/app/immutable/chunks/{42Hi6Nev.js → qXbpTVv4.js} +1 -1
- package/web/app/immutable/chunks/{D62BIRhv.js → szbQDjlS.js} +1 -1
- package/web/app/immutable/chunks/{D529OnQb.js → u0caEYlz.js} +1 -1
- package/web/app/immutable/chunks/{DUy6xMdY.js → vydwWxv4.js} +1 -1
- package/web/app/immutable/chunks/{CYqtKpzf.js → wm8arB5J.js} +1 -1
- package/web/app/immutable/chunks/{CLL457e6.js → xC5Mhger.js} +1 -1
- package/web/app/immutable/chunks/{Bi2Crhsq.js → xMccKwo6.js} +1 -1
- package/web/app/immutable/chunks/{CZd1y8kW.js → xS92bFN5.js} +1 -1
- package/web/app/immutable/entry/{app.RSzHSDgw.js → app.BaibgLwt.js} +3 -3
- package/web/app/immutable/entry/start.Co6iWbEi.js +1 -0
- package/web/app/immutable/nodes/{0.Da435p_w.js → 0.BTXCY2oK.js} +1 -1
- package/web/app/immutable/nodes/{1.D1nY11Eo.js → 1.DyWs24Kf.js} +1 -1
- package/web/app/immutable/nodes/{10.C15wfgwX.js → 10.Do5sGDsB.js} +1 -1
- package/web/app/immutable/nodes/{11.TMR29QT0.js → 11.Dg8bLTdG.js} +1 -1
- package/web/app/immutable/nodes/{12.Dkcg23hr.js → 12.Bgh3OszP.js} +1 -1
- package/web/app/immutable/nodes/{13.BANT9s8o.js → 13.B7xRzQQj.js} +3 -3
- package/web/app/immutable/nodes/14.B61dmkg6.js +3 -0
- package/web/app/immutable/nodes/{15.BXSdgmt8.js → 15.JAWW7FfP.js} +1 -1
- package/web/app/immutable/nodes/{16.Cp3myrhK.js → 16.B1iP7QfQ.js} +1 -1
- package/web/app/immutable/nodes/{17.AJ0Z4n7s.js → 17.D5xXxywZ.js} +1 -1
- package/web/app/immutable/nodes/{18.BYytq5r4.js → 18.C1KajwpW.js} +2 -2
- package/web/app/immutable/nodes/{2.B_tahnsH.js → 2.DXqEHhPy.js} +4 -4
- package/web/app/immutable/nodes/{3.l2wlNZto.js → 3.BA7C_i6W.js} +1 -1
- package/web/app/immutable/nodes/{4.DSLW-lsR.js → 4.COIJYDGD.js} +1 -1
- package/web/app/immutable/nodes/{5.DaH-2DbB.js → 5.CPq3hRgd.js} +1 -1
- package/web/app/immutable/nodes/{6.CWNY9M3R.js → 6.CgfGy-y1.js} +1 -1
- package/web/app/immutable/nodes/{7.DI6SUPGK.js → 7.CIkuIOzY.js} +1 -1
- package/web/app/immutable/nodes/{8.j51qyATM.js → 8.C8xVLEh-.js} +4 -4
- package/web/app/immutable/nodes/{9.C4rF4IYL.js → 9.BUk--8nH.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/assets/14.CU62PBbE.css +0 -1
- package/web/app/immutable/chunks/A4OD-mjJ.js +0 -1
- package/web/app/immutable/chunks/BUAFIktJ.js +0 -1
- package/web/app/immutable/chunks/C5H4Pe0T.js +0 -1
- package/web/app/immutable/chunks/Ce8ODqPP.js +0 -1
- package/web/app/immutable/entry/start.BVuekftv.js +0 -1
- package/web/app/immutable/nodes/14.DChhRykH.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
var dt=Object.defineProperty;var je=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||je("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?je("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as U,bq as i,by as W,b as X,br as L,bt as Ne}from"./BUAFIktJ.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as j,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./DYhIMPy1.js";import{i as q}from"./Bvd0DfwC.js";import{s as k}from"./CnTu6sc6.js";import{b as Pe}from"./COO6ldt4.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as E,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./hwFphMxp.js";import{c as wt}from"./BgOj6lPu.js";import{s as St}from"./DyLYtK5N.js";import{f as xt,E as Nt}from"./DCOf4rfq.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),G=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=G.getOr(null);return G.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,G.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let Ee=Ke;var pe;const qe=class qe{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new qe(e,G.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let ke=qe;var ge;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new ze(e,G.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=ze;var fe,ve;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ge(e,G.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ge;var me,ye;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new Ue(e,G.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=Ue;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function Et(n,e){const r=be();if(new.target)return U({component:Et,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=ke.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>v()??Q),Oe(h),C(t,h)};q(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var kt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return U({component:Mt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,kt);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));k(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);k(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};q(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};q(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return U({component:Bt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);k(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);k(h,()=>g()??Q),Oe(t),C(o,t)};q(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return U({component:et,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,E),g=i(e,"onOpenChangeComplete",7,E),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=E){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=E){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:W,$on:(p,f)=>X(e,p,f)},m=A(),w=x(m);return k(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),qt=Y("<button><!></button>");function zt(n,e){const r=be();if(new.target)return U({component:zt,...n});j(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=Ee.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=qt();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>s()??Q),Oe(h),C(t,h)};q(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Gt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Ut=Y("<!> <!>",1),Wt=Y("<!> <div><!></div>",1);function Xt(n,e){const r=be();if(new.target)return U({component:Xt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,E),p=i(e,"onOpenAutoFocus",7,E),f=i(e,"onEscapeKeydown",7,E),S=i(e,"onInteractOutside",7,E),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Gt);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=E){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=E){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=E){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=E){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:W,$on:(d,V)=>X(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let We=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var Xe=A(),it=x(Xe);{var at=J=>{var Z=Ut(),$=x(Z);{var ee=z=>{Ve(z,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};q($,z=>{t.root.opts.open.current&&z(ee)})}var Ae=He($,2);{let z=N(()=>({props:B(c(h),We()),...t.snippetProps}));k(Ae,u,()=>c(z))}C(J,Z)},lt=J=>{var Z=Wt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,z=>({...z}),[()=>B(c(h),We())]);var Ae=Ce(ee);k(Ae,()=>g()??Q),Oe(ee),C(J,Z)};q(it,J=>{u()?J(at):J(lt,-1)})}C(st,Xe)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};q(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},jt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...jt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return U({component:Jt,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:W,$on:(f,S)=>X(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);k(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{zt as D,Jt as O,Xt as a,Bt as b,Mt as c,Et as d,hr as e,ur as f,dr as o,cr as u};
|
|
1
|
+
var dt=Object.defineProperty;var je=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||je("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?je("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as U,bq as i,by as W,b as X,br as L,bt as Ne}from"./D7ppHbEC.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as j,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./DYhIMPy1.js";import{i as q}from"./CWqKPDkJ.js";import{s as k}from"./BEWd3Wd2.js";import{b as Pe}from"./Cki2vNyW.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as E,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./NeYI0LTt.js";import{c as wt}from"./CwFEdD3h.js";import{s as St}from"./BKkglBqM.js";import{f as xt,E as Nt}from"./B_-41aBJ.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),G=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=G.getOr(null);return G.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,G.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let Ee=Ke;var pe;const qe=class qe{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new qe(e,G.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let ke=qe;var ge;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new ze(e,G.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=ze;var fe,ve;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ge(e,G.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ge;var me,ye;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new Ue(e,G.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=Ue;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function Et(n,e){const r=be();if(new.target)return U({component:Et,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=ke.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>v()??Q),Oe(h),C(t,h)};q(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var kt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return U({component:Mt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,kt);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));k(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);k(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};q(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};q(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return U({component:Bt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);k(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);k(h,()=>g()??Q),Oe(t),C(o,t)};q(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return U({component:et,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,E),g=i(e,"onOpenChangeComplete",7,E),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=E){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=E){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:W,$on:(p,f)=>X(e,p,f)},m=A(),w=x(m);return k(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),qt=Y("<button><!></button>");function zt(n,e){const r=be();if(new.target)return U({component:zt,...n});j(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=Ee.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=qt();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>s()??Q),Oe(h),C(t,h)};q(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Gt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Ut=Y("<!> <!>",1),Wt=Y("<!> <div><!></div>",1);function Xt(n,e){const r=be();if(new.target)return U({component:Xt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,E),p=i(e,"onOpenAutoFocus",7,E),f=i(e,"onEscapeKeydown",7,E),S=i(e,"onInteractOutside",7,E),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Gt);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=E){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=E){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=E){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=E){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:W,$on:(d,V)=>X(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let We=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var Xe=A(),it=x(Xe);{var at=J=>{var Z=Ut(),$=x(Z);{var ee=z=>{Ve(z,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};q($,z=>{t.root.opts.open.current&&z(ee)})}var Ae=He($,2);{let z=N(()=>({props:B(c(h),We()),...t.snippetProps}));k(Ae,u,()=>c(z))}C(J,Z)},lt=J=>{var Z=Wt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,z=>({...z}),[()=>B(c(h),We())]);var Ae=Ce(ee);k(Ae,()=>g()??Q),Oe(ee),C(J,Z)};q(it,J=>{u()?J(at):J(lt,-1)})}C(st,Xe)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};q(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},jt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...jt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return U({component:Jt,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:W,$on:(f,S)=>X(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);k(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{zt as D,Jt as O,Xt as a,Bt as b,Mt as c,Et as d,hr as e,ur as f,dr as o,cr as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as fe}from"./
|
|
1
|
+
import{g as fe}from"./DPcZSvbx.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./B96uZ9bz.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./uXuxG9cN.js";import{u as J,o as T,_ as C,s as b,l as _,n as U}from"./CIyUrgF0.js";import{bo as $}from"./BUAFIktJ.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:_("backoff"),retryAt:b()}),T({state:_("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),_e=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","machineOrder","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:_(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,Oe as M,_e as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
1
|
+
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./uXuxG9cN.js";import{u as J,o as T,_ as C,s as b,l as _,n as U}from"./CIyUrgF0.js";import{bo as $}from"./D7ppHbEC.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:_("backoff"),retryAt:b()}),T({state:_("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),_e=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","machineOrder","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:_(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,Oe as M,_e as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as Mt}from"./
|
|
1
|
+
import{p as Mt}from"./VW0lVlpA.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./B96uZ9bz.js";import{p as Rt}from"./Oljw-CHa.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
|
|
2
2
|
`+o);const a=jt(),d=Ht(),w=a.nodeRadius*1.6,C=h.db,g=C.getWardleyData(),R=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,Y=It(r);Y.selectAll("*").remove(),Bt(Y,b,S,a.useMaxWidth),Y.attr("viewBox",`0 0 ${S} ${b}`);const v=Y.append("g").attr("class","wardley-map"),q=Y.append("defs");q.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const I=S-a.padding*2,B=b-a.padding*2;R&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const z=u(t=>a.padding+t/100*I,"projectX"),L=u(t=>b-a.padding-t/100*B,"projectY"),O=v.append("g").attr("class","wardley-axes");O.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const wt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+I/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(wt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+B/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:qt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*I,x=a.padding+l.end*I,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+I*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-B*n).attr("y2",b-a.padding-B*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(n.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=v.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||Z.get(t.target)?.has(t.source)));_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,P=-l/x,N=i+m*y,W=p+P*y;let A=Math.atan2(f,l)*180/Math.PI;return(A>90||A<-90)&&(A+=180),`rotate(${A} ${N} ${W})`}).text(t=>t.label);const kt=v.append("g").attr("class","wardley-trends"),bt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=z(t.targetX),i=L(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);kt.selectAll("line").data(bt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),n=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(x.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",n+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(j=>{const D=j.node(),Ct=D.getComputedTextLength();m=Math.max(m,Ct);const St=D.getBBox();P=Math.max(P,St.height)});const N=m+i*2+105,W=x.length*p+i*2+P/2,A=a.padding,$t=S-a.padding-N,vt=a.padding,Pt=b-a.padding-W;s=Math.max(A,Math.min(s,$t)),n=Math.max(vt,Math.min(n,Pt)),y.forEach((j,D)=>{j.attr("x",s+i).attr("y",n+i+(D+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",N).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=z(s.x),i=L(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=z(s.x),i=L(s.y),p=60,l=30,f=20,x=`
|
|
3
3
|
M ${n} ${i-l/2}
|
|
4
4
|
L ${n+p-f} ${i-l/2}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./
|
|
1
|
+
import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./B96uZ9bz.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,R=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var K=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,W={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>R&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+w.showPosition()+`
|
|
3
3
|
Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(_==O?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:w.match,token:this.terminals_[_]||_,line:w.yylineno,loc:F,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+_);switch(T[0]){case 1:l.push(_),x.push(w.yytext),u.push(w.yylloc),l.push(T[1]),_=null,C=w.yyleng,v=w.yytext,I=w.yylineno,F=w.yylloc;break;case 2:if(B=this.productions_[T[1]][1],W.$=x[x.length-B],W._$={first_line:u[u.length-(B||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(B||1)].first_column,last_column:u[u.length-1].last_column},K&&(W._$.range=[u[u.length-(B||1)].range[0],u[u.length-1].range[1]]),P=this.performAction.apply(W,[v,C,I,H.yy,T[1],x,u].concat(L)),typeof P<"u")return P;B&&(l=l.slice(0,-1*B*2),x=x.slice(0,-1*B),u=u.slice(0,-1*B)),l.push(this.productions_[T[1]][0]),x.push(W.$),u.push(W._$),Z=S[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:o(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),setInput:o(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:o(function(a){var d=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===g.length?this.yylloc.first_column:0)+g[g.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(a){this.unput(this.match.slice(a))},"less"),pastInput:o(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as t}from"./
|
|
1
|
+
import{l as t}from"./Cujcdo3J.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{o as conf,m as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as k}from"./
|
|
1
|
+
import{p as k}from"./B_-41aBJ.js";import{bo as a}from"./D7ppHbEC.js";import{Iv as r,nx as i}from"./fSyO2umz.js";import{bT as _,aO as g}from"./B9pVpwXj.js";import{bU as H}from"./DliR8x2J.js";import{ap as d,x as f,y as b}from"./D4V4ch-K.js";function c(e){return e.lastBackupAt?k(e.lastBackupAt):""}function l(e){if(e.starting)return a.workspaceHome_starting_label();if(e.state==="moving")return a.workspaceHome_banner_moving();if(e.unknownState)return a.workspaceHome_banner_detachedNoBackup({name:e.name});const o=c(e);return o?a.workspaceHome_banner_detached({name:e.name,time:o}):a.workspaceHome_banner_detachedNoBackup({name:e.name})}function T(e){return e?.unavailable?l(e):null}function O(e){if(e.banner==="detached"||e.banner==="moving")return l(e);if(e.banner!=="backupWarning")return"";const o=c(e);return o?a.workspaceHome_banner_backupWarning({name:e.name,time:o}):a.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function x(e){return e==="detached"?a.workspaceHome_marker_detached():a.workspaceHome_marker_moving()}function N(e){const o=c(e);return o?a.workspaceHome_header_lastBackup({time:o}):null}function y(e){if(!e.moveWarning)return null;const o=c(e);return o?a.workspaceHome_moveDialog_warning({name:e.name,time:o}):a.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function E(e){switch(e.code){case"forbidden":return a.workspaceHome_moveError_forbidden();case"homes-unsupported":return a.workspaceHome_moveError_homesUnsupported();case"home-moving":return a.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return a.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return a.workspaceHome_moveError_updateRequired();default:return a.workspaceHome_moveError_failed({message:e.message})}}const u=new WeakMap,R=r.createSelector((e,o)=>{const n=i(e.workspace.workspaces,o),t=n?.home;if(!t)return null;const s=u.get(t);if(s)return s;const m=d(n);return m&&u.set(t,m),m}),A=r.createSelector((e,o)=>f(i(e.workspace.workspaces,o),!_.select(e,o))),D=r.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),U=r.createSelector(e=>e.workspaceHome.dialogWorkspaceId),F=r.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),L=r.createSelector(e=>e.workspaceHome.moveFailure),h=[],p=new Map,V=r.createSelector((e,o)=>{if(!o)return h;const n=b({agents:g.select(e,o),machineRows:H.select(e)}),t=JSON.stringify(n),s=p.get(o);return s?.key===t?s.options:(p.set(o,{key:t,options:n}),n)}),q=r.createSelector((e,o)=>i(e.workspace.workspaces,o)!==void 0);export{N as a,x as b,y as c,T as d,l as e,D as f,U as g,O as h,L as i,V as j,F as k,R as l,E as m,q as n,A as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as te,bq as a,bt as le,by as re,br as ce,b as ae,bo as Oe}from"./BUAFIktJ.js";import{bs as se,a7 as A,ay as P,W as d,bn as oe,aA as s,aD as _,c9 as D,aB as q,ca as Le,bS as Z,a5 as U,bf as ke,bA as Y,aC as Xe,c0 as Ze,bV as et,be as _e,b$ as xe,b_ as pe,bO as we,bH as tt}from"./DYhIMPy1.js";import{i as R}from"./Bvd0DfwC.js";import{s as ie}from"./CnTu6sc6.js";import{c as T}from"./BgOj6lPu.js";import{I as ye,F as ze,c as $e}from"./DCOf4rfq.js";import{b as Ce,e as de,f as rt,p as at}from"./COO6ldt4.js";import{i as st,h as ot,a as nt}from"./DyLYtK5N.js";import{a_ as lt,a1 as it,f as Ne}from"./hwFphMxp.js";import"./B1s_9zgm.js";import{u as Re,c as ct,o as Pe,f as dt,e as ut,a as vt,D as ft,b as gt,d as mt}from"./GVSL2sGk.js";import{c as pt,u as bt,s as ht,a as _t}from"./DfxQWSVU.js";import{p as xt}from"./Buh7J53B.js";import"./hmNmIDzu.js";import{b as Te}from"./BaIAhI85.js";import"./Co5bimwo.js";import{F as wt,Y as yt}from"./CfdX4Lfl.js";import"./CGuBCqy6.js";var Pt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),kt=q("<div></div>");function qe(b,e){if(new.target)return te({component:qe,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),f=a(e,"staticPosition",7,!1),l=ce(e,Pt);const i=Re();var r={get ref(){return c()},set ref(p=null){c(p),s()},get class(){return n()},set class(p){n(p),s()},get forceMount(){return v()},set forceMount(p=!1){v(p),s()},get contained(){return g()},set contained(p=!1){g(p),s()},get staticPosition(){return f()},set staticPosition(p=!1){f(p),s()},$set:re,$on:(p,F)=>ae(e,p,F)},m=A(),k=P(m);{const p=(F,H)=>{let L=()=>(H?.()).props;var V=A(),J=P(V);{var ee=G=>{var K=kt();Ce(K,o=>({...L(),"data-slot":"dialog-overlay","data-static-position":f()||void 0,class:o}),[()=>de(g()||f()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,K,()=>ze,()=>Pe.backdrop.enter),ye(2,K,()=>$e,()=>Pe.backdrop.exit),d(G,K)},ue=D(()=>v()||i());R(J,G=>{_(ue)&&G(ee)})}d(F,V)};T(k,()=>ct,(F,H)=>{H(F,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:p,$$slots:{child:!0}}))})}return d(b,m),oe(r)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),Dt=Xe('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),St=q("<div><!> <!></div>"),At=q("<!> <!>",1);function Ft(b,e){if(new.target)return te({component:Ft,...b});se(e,!0);const c=t=>{var C=At(),N=P(C);{let W=D(()=>!!f()),j=D(u);qe(N,{get contained(){return _(W)},get staticPosition(){return _(j)}})}var X=Z(N,2);{const W=(ve,fe)=>{let ge=()=>(fe?.()).props;var be=A(),Ie=P(be);{var He=Se=>{var ne=St();Ce(ne,(me,he)=>({...ge(),role:p(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:he,"data-surface-level":O,onoutroend:x.finishExit}),[()=>u()||void 0,()=>de(u()?"relative mx-auto":f()?"absolute":"fixed",!u()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",_t(O),v())]);var Be=U(ne);ie(Be,()=>ee()??ke);var Ge=Z(Be,2);{var Qe=me=>{var he=A(),Ue=P(he);{const Ye=(Ae,Fe)=>{Ne(Ae,le(()=>(Fe?.()).props,{get"aria-label"(){return k()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Je,Vt)=>{var Ke=Dt();d(Je,Ke)},$$slots:{default:!0}}))};T(Ue,()=>ft,(Ae,Fe)=>{Fe(Ae,{get disabled(){return m()},child:Ye,$$slots:{child:!0}})})}d(me,he)};R(Ge,me=>{r()&&me(Qe)})}Y(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),d(Se,ne)},Ve=D(()=>Q());R(Ie,Se=>{_(Ve)&&Se(He)})}d(ve,be)};let j=D(()=>u()?M:$),E=D(()=>u()?M:L()),y=D(()=>u()?!1:V()),De=D(()=>u()?!1:J());T(X,()=>vt,(ve,fe)=>{fe(ve,le({forceMount:!0},()=>ue,{onInteractOutside:h,get onOpenAutoFocus(){return _(j)},get onCloseAutoFocus(){return _(E)},get trapFocus(){return _(y)},get preventScroll(){return _(De)},get ref(){return n()},set ref(ge){n(ge)},child:W,$$slots:{child:!0}}))})}d(t,C)};let n=a(e,"ref",15,null),v=a(e,"class",7),g=a(e,"portalProps",7),f=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),k=a(e,"closeLabel",23,()=>Oe.ui_dialog_close_ariaLabel()),p=a(e,"role",7,"dialog"),F=a(e,"onInteractOutside",7),H=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),J=a(e,"preventScroll",7),ee=a(e,"children",7),ue=ce(e,Ct);const G=st(),K=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,K)});const o=Re(),u=dt(),O=pt(bt()+2);ht(O);const z=lt(),Q=()=>i()||o(),x=ut(Q);xt(()=>n());function h(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),F()?.(t)}function $(t){if(H()?.(t),t.defaultPrevented||!n())return;const C=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",X=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(C),W=X.find(y=>y.hasAttribute("data-dialog-primary-action"))??X.at(-1),j=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>C(y)&&N(y)),E=W&&N(W)?W:j??n();t.preventDefault(),E.focus({preventScroll:!0})}function M(t){t.preventDefault()}var S={get ref(){return n()},set ref(t=null){n(t),s()},get class(){return v()},set class(t){v(t),s()},get portalProps(){return g()},set portalProps(t){g(t),s()},get container(){return f()},set container(t=null){f(t),s()},get size(){return l()},set size(t="default"){l(t),s()},get forceMount(){return i()},set forceMount(t=!1){i(t),s()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),s()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),s()},get closeLabel(){return k()},set closeLabel(t=Oe.ui_dialog_close_ariaLabel()){k(t),s()},get role(){return p()},set role(t="dialog"){p(t),s()},get onInteractOutside(){return F()},set onInteractOutside(t){F(t),s()},get onOpenAutoFocus(){return H()},set onOpenAutoFocus(t){H(t),s()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),s()},get trapFocus(){return V()},set trapFocus(t){V(t),s()},get preventScroll(){return J()},set preventScroll(t){J(t),s()},get children(){return ee()},set children(t){ee(t),s()},$set:re,$on:(t,C)=>ae(e,t,C)},I=A(),w=P(I);{var B=t=>{var C=A(),N=P(C);{var X=E=>{c(E)},W=D(()=>u()),j=E=>{var y=A(),De=P(y);{let ve=D(()=>f()??g()?.to??G?.target());T(De,()=>it,(fe,ge)=>{ge(fe,le(g,{get to(){return _(ve)},children:(be,Ie)=>{c(be)},$$slots:{default:!0}}))})}d(E,y)};R(N,E=>{_(W)?E(X):E(j,-1)})}d(t,C)};R(w,t=>{x.mounted&&t(B)})}return d(b,I),oe(S)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class"]);function We(b,e){if(new.target)return te({component:We,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=ce(e,Ot);var g={get ref(){return c()},set ref(i=null){c(i),s()},get class(){return n()},set class(i){n(i),s()},$set:re,$on:(i,r)=>ae(e,i,r)},f=A(),l=P(f);{let i=D(()=>de("type-caption break-words text-muted-foreground",n()));T(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return _(i)}},()=>v,{get ref(){return c()},set ref(k){c(k)}}))})}return d(b,f),oe(g)}var Mt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=q("<div><!></div>");function je(b,e){if(new.target)return te({component:je,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"children",7),g=ce(e,Mt);var f={get ref(){return c()},set ref(r=null){c(r),s()},get class(){return n()},set class(r){n(r),s()},get children(){return v()},set children(r){v(r),s()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ce(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>de("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=U(l);return ie(i,()=>v()??ke),Y(l),Te(l,r=>c(r),()=>c()),d(b,l),oe(f)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Lt=q("<div><!></div>");function Ee(b,e){if(new.target)return te({component:Ee,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"children",7),g=ce(e,Bt);var f={get ref(){return c()},set ref(r=null){c(r),s()},get class(){return n()},set class(r){n(r),s()},get children(){return v()},set children(r){v(r),s()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Lt();Ce(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>de("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=U(l);return ie(i,()=>v()??ke),Y(l),Te(l,r=>c(r),()=>c()),d(b,l),oe(f)}var zt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Me(b,e){if(new.target)return te({component:Me,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=ce(e,zt);var g={get ref(){return c()},set ref(i=null){c(i),s()},get class(){return n()},set class(i){n(i),s()},$set:re,$on:(i,r)=>ae(e,i,r)},f=A(),l=P(f);{let i=D(()=>de("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));T(l,()=>mt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return _(i)}},()=>v,{get ref(){return c()},set ref(k){c(k)}}))})}return d(b,f),oe(g)}var $t=q('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),Nt=q('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Rt=q("<!> <!>",1),Tt=q('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=q('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Wt=q('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function jt(b,e){if(new.target)return te({component:jt,...b});se(e,!0);const c=o=>{var u=A(),O=P(u);{var z=x=>{var h=$t(),$=U(h);{let S=D(()=>p()??Oe.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return _(S)},get onclick(){return k()},get ref(){return _(F)},set ref(I){tt(F,I,!0)},children:(I,w)=>{wt(I,{get icon(){return yt}})},$$slots:{default:!0}})}var M=Z($,2);T(M,()=>Me,(S,I)=>{I(S,{get id(){return g()},children:(w,B)=>{_e();var t=xe();pe(()=>we(t,n())),d(w,t)},$$slots:{default:!0}})}),Y(h),d(x,h)},Q=x=>{var h=A(),$=P(h);T($,()=>Me,(M,S)=>{S(M,{get id(){return g()},children:(I,w)=>{_e();var B=xe();pe(()=>we(B,n())),d(I,B)},$$slots:{default:!0}})}),d(x,h)};R(O,x=>{k()?x(z):x(Q,-1)})}d(o,u)};let n=a(e,"title",7),v=a(e,"description",7),g=a(e,"titleId",7),f=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),k=a(e,"onBack",7),p=a(e,"backLabel",7),F=et(null);Le(()=>{k()&&Ze().then(()=>_(F)?.focus())});var H={get title(){return n()},set title(o){n(o),s()},get description(){return v()},set description(o){v(o),s()},get titleId(){return g()},set titleId(o){g(o),s()},get descriptionId(){return f()},set descriptionId(o){f(o),s()},get children(){return l()},set children(o){l(o),s()},get headerActions(){return i()},set headerActions(o){i(o),s()},get footer(){return r()},set footer(o){r(o),s()},get error(){return m()},set error(o){m(o),s()},get onBack(){return k()},set onBack(o){k(o),s()},get backLabel(){return p()},set backLabel(o){p(o),s()},$set:re,$on:(o,u)=>ae(e,o,u)},L=Wt(),V=U(L);{let o=D(()=>i()?"pr-22":"pr-14");T(V,()=>Ee,(u,O)=>{O(u,{get class(){return`m-0 shrink-0 px-6 pt-6 ${_(o)??""}`},children:(z,Q)=>{var x=Rt(),h=P(x);{var $=w=>{var B=Nt(),t=U(B);c(t);var C=Z(t,2),N=U(C);ie(N,i),Y(C),Y(B),d(w,B)},M=w=>{c(w)};R(h,w=>{i()?w($):w(M,-1)})}var S=Z(h,2);{var I=w=>{var B=A(),t=P(B);T(t,()=>We,(C,N)=>{N(C,{get id(){return f()},children:(X,W)=>{_e();var j=xe();pe(()=>we(j,v())),d(X,j)},$$slots:{default:!0}})}),d(w,B)};R(S,w=>{v()&&w(I)})}d(z,x)},$$slots:{default:!0}})})}var J=Z(V,2);{var ee=o=>{var u=Tt(),O=U(u),z=U(O);ie(z,()=>l()??ke);var Q=Z(z,2);{var x=h=>{nt(h,{tone:"error",children:($,M)=>{_e();var S=xe();pe(()=>we(S,m())),d($,S)},$$slots:{default:!0}})};R(Q,h=>{m()&&h(x)})}Y(O),Y(u),pe(()=>rt(u,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),d(o,u)};R(J,o=>{(l()||m())&&o(ee)})}var ue=Z(J,2);{var G=o=>{var u=A(),O=P(u);{let z=D(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");T(O,()=>je,(Q,x)=>{x(Q,{get class(){return _(z)},children:(h,$)=>{var M=A(),S=P(M);ie(S,r),d(h,M)},$$slots:{default:!0}})})}d(o,u)},K=o=>{var u=qt();d(o,u)};R(ue,o=>{r()?o(G):l()||o(K,1)})}return Y(L),d(b,L),oe(H)}const Et=[{id:"textarea-state-matrix",title:"Textarea states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","auto-expand","max-height-scroll","long-content","light","dark","zoom-200","keyboard-focus","compact","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];at({id:"textarea",source:"src/lib/components/ui/textarea/textarea.svelte",publicImport:"$lib/components/ui/textarea",legacyImports:["$lib/components/ui/textarea/textarea.svelte"],exports:["Textarea","textareaMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/discussions/components/DiscussionThread.svelte","src/features/hud/components/dock-composer-media.preview.svelte","src/features/hud/media-editor/screenshot/ScreenshotCanvas.svelte","src/features/machine-rail/machine-rail.preview.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/chat/QueuedMessageList.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/modals/ReplaceAgentModal.svelte","src/lib/components/patterns/settings/SettingsTextarea.svelte","src/lib/components/patterns/settings/settings-textarea.preview.svelte","src/lib/components/tiptap/CommentDialog.svelte","src/lib/components/tiptap/LaunchFromSelectionDialog.svelte","src/lib/components/tiptap/MermaidBlockNodeView.svelte","src/lib/components/ui/ask-user-questions/ask-user-questions.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/sidebar-tabs.preview.svelte","src/lib/components/workspace/sidebar/CommitDrawer.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/textarea/textarea.test.ts",removalGate:"Retain while exported and binding, resize, validation, and fixture tests pass.",dynamicImports:[],fixtures:Et});export{jt as D,Ft as a,We as b,Me as c};
|
|
1
|
+
import{t as te,bq as a,bt as le,by as re,br as ce,b as ae,bo as Oe}from"./D7ppHbEC.js";import{bs as se,a7 as A,ay as P,W as d,bn as oe,aA as s,aD as _,c9 as D,aB as q,ca as Le,bS as Z,a5 as U,bf as ke,bA as Y,aC as Xe,c0 as Ze,bV as et,be as _e,b$ as xe,b_ as pe,bO as we,bH as tt}from"./DYhIMPy1.js";import{i as R}from"./CWqKPDkJ.js";import{s as ie}from"./BEWd3Wd2.js";import{c as T}from"./CwFEdD3h.js";import{I as ye,F as ze,c as $e}from"./B_-41aBJ.js";import{b as Ce,e as de,f as rt,p as at}from"./Cki2vNyW.js";import{i as st,h as ot,a as nt}from"./BKkglBqM.js";import{a_ as lt,a1 as it,f as Ne}from"./NeYI0LTt.js";import"./S5Sbp0zl.js";import{u as Re,c as ct,o as Pe,f as dt,e as ut,a as vt,D as ft,b as gt,d as mt}from"./CPHJOAlO.js";import{c as pt,u as bt,s as ht,a as _t}from"./DfxQWSVU.js";import{p as xt}from"./DGIV4Vo-.js";import"./DSFNjfq2.js";import{b as Te}from"./BaIAhI85.js";import"./CCVYeY-e.js";import{F as wt,Y as yt}from"./mNUHj1rI.js";import"./CHOnTvs1.js";var Pt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),kt=q("<div></div>");function qe(b,e){if(new.target)return te({component:qe,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),f=a(e,"staticPosition",7,!1),l=ce(e,Pt);const i=Re();var r={get ref(){return c()},set ref(p=null){c(p),s()},get class(){return n()},set class(p){n(p),s()},get forceMount(){return v()},set forceMount(p=!1){v(p),s()},get contained(){return g()},set contained(p=!1){g(p),s()},get staticPosition(){return f()},set staticPosition(p=!1){f(p),s()},$set:re,$on:(p,F)=>ae(e,p,F)},m=A(),k=P(m);{const p=(F,H)=>{let L=()=>(H?.()).props;var V=A(),J=P(V);{var ee=G=>{var K=kt();Ce(K,o=>({...L(),"data-slot":"dialog-overlay","data-static-position":f()||void 0,class:o}),[()=>de(g()||f()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,K,()=>ze,()=>Pe.backdrop.enter),ye(2,K,()=>$e,()=>Pe.backdrop.exit),d(G,K)},ue=D(()=>v()||i());R(J,G=>{_(ue)&&G(ee)})}d(F,V)};T(k,()=>ct,(F,H)=>{H(F,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:p,$$slots:{child:!0}}))})}return d(b,m),oe(r)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),Dt=Xe('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),St=q("<div><!> <!></div>"),At=q("<!> <!>",1);function Ft(b,e){if(new.target)return te({component:Ft,...b});se(e,!0);const c=t=>{var C=At(),N=P(C);{let W=D(()=>!!f()),j=D(u);qe(N,{get contained(){return _(W)},get staticPosition(){return _(j)}})}var X=Z(N,2);{const W=(ve,fe)=>{let ge=()=>(fe?.()).props;var be=A(),Ie=P(be);{var He=Se=>{var ne=St();Ce(ne,(me,he)=>({...ge(),role:p(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:he,"data-surface-level":O,onoutroend:x.finishExit}),[()=>u()||void 0,()=>de(u()?"relative mx-auto":f()?"absolute":"fixed",!u()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",_t(O),v())]);var Be=U(ne);ie(Be,()=>ee()??ke);var Ge=Z(Be,2);{var Qe=me=>{var he=A(),Ue=P(he);{const Ye=(Ae,Fe)=>{Ne(Ae,le(()=>(Fe?.()).props,{get"aria-label"(){return k()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Je,Vt)=>{var Ke=Dt();d(Je,Ke)},$$slots:{default:!0}}))};T(Ue,()=>ft,(Ae,Fe)=>{Fe(Ae,{get disabled(){return m()},child:Ye,$$slots:{child:!0}})})}d(me,he)};R(Ge,me=>{r()&&me(Qe)})}Y(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),d(Se,ne)},Ve=D(()=>Q());R(Ie,Se=>{_(Ve)&&Se(He)})}d(ve,be)};let j=D(()=>u()?M:$),E=D(()=>u()?M:L()),y=D(()=>u()?!1:V()),De=D(()=>u()?!1:J());T(X,()=>vt,(ve,fe)=>{fe(ve,le({forceMount:!0},()=>ue,{onInteractOutside:h,get onOpenAutoFocus(){return _(j)},get onCloseAutoFocus(){return _(E)},get trapFocus(){return _(y)},get preventScroll(){return _(De)},get ref(){return n()},set ref(ge){n(ge)},child:W,$$slots:{child:!0}}))})}d(t,C)};let n=a(e,"ref",15,null),v=a(e,"class",7),g=a(e,"portalProps",7),f=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),k=a(e,"closeLabel",23,()=>Oe.ui_dialog_close_ariaLabel()),p=a(e,"role",7,"dialog"),F=a(e,"onInteractOutside",7),H=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),J=a(e,"preventScroll",7),ee=a(e,"children",7),ue=ce(e,Ct);const G=st(),K=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,K)});const o=Re(),u=dt(),O=pt(bt()+2);ht(O);const z=lt(),Q=()=>i()||o(),x=ut(Q);xt(()=>n());function h(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),F()?.(t)}function $(t){if(H()?.(t),t.defaultPrevented||!n())return;const C=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",X=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(C),W=X.find(y=>y.hasAttribute("data-dialog-primary-action"))??X.at(-1),j=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>C(y)&&N(y)),E=W&&N(W)?W:j??n();t.preventDefault(),E.focus({preventScroll:!0})}function M(t){t.preventDefault()}var S={get ref(){return n()},set ref(t=null){n(t),s()},get class(){return v()},set class(t){v(t),s()},get portalProps(){return g()},set portalProps(t){g(t),s()},get container(){return f()},set container(t=null){f(t),s()},get size(){return l()},set size(t="default"){l(t),s()},get forceMount(){return i()},set forceMount(t=!1){i(t),s()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),s()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),s()},get closeLabel(){return k()},set closeLabel(t=Oe.ui_dialog_close_ariaLabel()){k(t),s()},get role(){return p()},set role(t="dialog"){p(t),s()},get onInteractOutside(){return F()},set onInteractOutside(t){F(t),s()},get onOpenAutoFocus(){return H()},set onOpenAutoFocus(t){H(t),s()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),s()},get trapFocus(){return V()},set trapFocus(t){V(t),s()},get preventScroll(){return J()},set preventScroll(t){J(t),s()},get children(){return ee()},set children(t){ee(t),s()},$set:re,$on:(t,C)=>ae(e,t,C)},I=A(),w=P(I);{var B=t=>{var C=A(),N=P(C);{var X=E=>{c(E)},W=D(()=>u()),j=E=>{var y=A(),De=P(y);{let ve=D(()=>f()??g()?.to??G?.target());T(De,()=>it,(fe,ge)=>{ge(fe,le(g,{get to(){return _(ve)},children:(be,Ie)=>{c(be)},$$slots:{default:!0}}))})}d(E,y)};R(N,E=>{_(W)?E(X):E(j,-1)})}d(t,C)};R(w,t=>{x.mounted&&t(B)})}return d(b,I),oe(S)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class"]);function We(b,e){if(new.target)return te({component:We,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=ce(e,Ot);var g={get ref(){return c()},set ref(i=null){c(i),s()},get class(){return n()},set class(i){n(i),s()},$set:re,$on:(i,r)=>ae(e,i,r)},f=A(),l=P(f);{let i=D(()=>de("type-caption break-words text-muted-foreground",n()));T(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return _(i)}},()=>v,{get ref(){return c()},set ref(k){c(k)}}))})}return d(b,f),oe(g)}var Mt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=q("<div><!></div>");function je(b,e){if(new.target)return te({component:je,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"children",7),g=ce(e,Mt);var f={get ref(){return c()},set ref(r=null){c(r),s()},get class(){return n()},set class(r){n(r),s()},get children(){return v()},set children(r){v(r),s()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ce(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>de("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=U(l);return ie(i,()=>v()??ke),Y(l),Te(l,r=>c(r),()=>c()),d(b,l),oe(f)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Lt=q("<div><!></div>");function Ee(b,e){if(new.target)return te({component:Ee,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"children",7),g=ce(e,Bt);var f={get ref(){return c()},set ref(r=null){c(r),s()},get class(){return n()},set class(r){n(r),s()},get children(){return v()},set children(r){v(r),s()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Lt();Ce(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>de("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=U(l);return ie(i,()=>v()??ke),Y(l),Te(l,r=>c(r),()=>c()),d(b,l),oe(f)}var zt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Me(b,e){if(new.target)return te({component:Me,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=ce(e,zt);var g={get ref(){return c()},set ref(i=null){c(i),s()},get class(){return n()},set class(i){n(i),s()},$set:re,$on:(i,r)=>ae(e,i,r)},f=A(),l=P(f);{let i=D(()=>de("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));T(l,()=>mt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return _(i)}},()=>v,{get ref(){return c()},set ref(k){c(k)}}))})}return d(b,f),oe(g)}var $t=q('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),Nt=q('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Rt=q("<!> <!>",1),Tt=q('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=q('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Wt=q('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function jt(b,e){if(new.target)return te({component:jt,...b});se(e,!0);const c=o=>{var u=A(),O=P(u);{var z=x=>{var h=$t(),$=U(h);{let S=D(()=>p()??Oe.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return _(S)},get onclick(){return k()},get ref(){return _(F)},set ref(I){tt(F,I,!0)},children:(I,w)=>{wt(I,{get icon(){return yt}})},$$slots:{default:!0}})}var M=Z($,2);T(M,()=>Me,(S,I)=>{I(S,{get id(){return g()},children:(w,B)=>{_e();var t=xe();pe(()=>we(t,n())),d(w,t)},$$slots:{default:!0}})}),Y(h),d(x,h)},Q=x=>{var h=A(),$=P(h);T($,()=>Me,(M,S)=>{S(M,{get id(){return g()},children:(I,w)=>{_e();var B=xe();pe(()=>we(B,n())),d(I,B)},$$slots:{default:!0}})}),d(x,h)};R(O,x=>{k()?x(z):x(Q,-1)})}d(o,u)};let n=a(e,"title",7),v=a(e,"description",7),g=a(e,"titleId",7),f=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),k=a(e,"onBack",7),p=a(e,"backLabel",7),F=et(null);Le(()=>{k()&&Ze().then(()=>_(F)?.focus())});var H={get title(){return n()},set title(o){n(o),s()},get description(){return v()},set description(o){v(o),s()},get titleId(){return g()},set titleId(o){g(o),s()},get descriptionId(){return f()},set descriptionId(o){f(o),s()},get children(){return l()},set children(o){l(o),s()},get headerActions(){return i()},set headerActions(o){i(o),s()},get footer(){return r()},set footer(o){r(o),s()},get error(){return m()},set error(o){m(o),s()},get onBack(){return k()},set onBack(o){k(o),s()},get backLabel(){return p()},set backLabel(o){p(o),s()},$set:re,$on:(o,u)=>ae(e,o,u)},L=Wt(),V=U(L);{let o=D(()=>i()?"pr-22":"pr-14");T(V,()=>Ee,(u,O)=>{O(u,{get class(){return`m-0 shrink-0 px-6 pt-6 ${_(o)??""}`},children:(z,Q)=>{var x=Rt(),h=P(x);{var $=w=>{var B=Nt(),t=U(B);c(t);var C=Z(t,2),N=U(C);ie(N,i),Y(C),Y(B),d(w,B)},M=w=>{c(w)};R(h,w=>{i()?w($):w(M,-1)})}var S=Z(h,2);{var I=w=>{var B=A(),t=P(B);T(t,()=>We,(C,N)=>{N(C,{get id(){return f()},children:(X,W)=>{_e();var j=xe();pe(()=>we(j,v())),d(X,j)},$$slots:{default:!0}})}),d(w,B)};R(S,w=>{v()&&w(I)})}d(z,x)},$$slots:{default:!0}})})}var J=Z(V,2);{var ee=o=>{var u=Tt(),O=U(u),z=U(O);ie(z,()=>l()??ke);var Q=Z(z,2);{var x=h=>{nt(h,{tone:"error",children:($,M)=>{_e();var S=xe();pe(()=>we(S,m())),d($,S)},$$slots:{default:!0}})};R(Q,h=>{m()&&h(x)})}Y(O),Y(u),pe(()=>rt(u,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),d(o,u)};R(J,o=>{(l()||m())&&o(ee)})}var ue=Z(J,2);{var G=o=>{var u=A(),O=P(u);{let z=D(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");T(O,()=>je,(Q,x)=>{x(Q,{get class(){return _(z)},children:(h,$)=>{var M=A(),S=P(M);ie(S,r),d(h,M)},$$slots:{default:!0}})})}d(o,u)},K=o=>{var u=qt();d(o,u)};R(ue,o=>{r()?o(G):l()||o(K,1)})}return Y(L),d(b,L),oe(H)}const Et=[{id:"textarea-state-matrix",title:"Textarea states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","auto-expand","max-height-scroll","long-content","light","dark","zoom-200","keyboard-focus","compact","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];at({id:"textarea",source:"src/lib/components/ui/textarea/textarea.svelte",publicImport:"$lib/components/ui/textarea",legacyImports:["$lib/components/ui/textarea/textarea.svelte"],exports:["Textarea","textareaMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/discussions/components/DiscussionThread.svelte","src/features/hud/components/dock-composer-media.preview.svelte","src/features/hud/media-editor/screenshot/ScreenshotCanvas.svelte","src/features/machine-rail/machine-rail.preview.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/chat/QueuedMessageList.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/modals/ReplaceAgentModal.svelte","src/lib/components/patterns/settings/SettingsTextarea.svelte","src/lib/components/patterns/settings/settings-textarea.preview.svelte","src/lib/components/tiptap/CommentDialog.svelte","src/lib/components/tiptap/LaunchFromSelectionDialog.svelte","src/lib/components/tiptap/MermaidBlockNodeView.svelte","src/lib/components/ui/ask-user-questions/ask-user-questions.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/sidebar-tabs.preview.svelte","src/lib/components/workspace/sidebar/CommitDrawer.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/textarea/textarea.test.ts",removalGate:"Retain while exported and binding, resize, validation, and fixture tests pass.",dynamicImports:[],fixtures:Et});export{jt as D,Ft as a,We as b,Me as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a0 as b,aR as o,aP as c,l,bu as p,bT as v,bL as g,bM as f,aQ as m}from"./DYhIMPy1.js";import{B as y}from"./
|
|
1
|
+
import{a0 as b,aR as o,aP as c,l,bu as p,bT as v,bL as g,bM as f,aQ as m}from"./DYhIMPy1.js";import{B as y}from"./D7ppHbEC.js";function R(u,_,d=!1){var n;o&&(n=m,c());var s=new y(u),h=d?l:0;function t(a,r){if(o){var e=p(n);if(a!==parseInt(e.substring(1))){var i=v();g(i),s.anchor=i,f(!1),s.ensure(a,r),f(!0);return}}s.ensure(a,r)}b(()=>{var a=!1;_((r,e=0)=>{a=!0,t(e,r)}),a||t(-1,null)},h)}export{R as i};
|