@intent-hq/web 2.348.0 → 2.349.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{0Vx84DUP.js → -QpofkRx.js} +25 -25
- package/web/app/immutable/chunks/{Cn_Rbwyb.js → 0Ys9jF9i.js} +1 -1
- package/web/app/immutable/chunks/{Bqhh4FH7.js → 0vrZgCji.js} +1 -1
- package/web/app/immutable/chunks/{2F-Ze5uG.js → 2CGxw1E-.js} +1 -1
- package/web/app/immutable/chunks/{hW3N4eWd.js → 5SqYTp29.js} +1 -1
- package/web/app/immutable/chunks/{CIvmWNlW.js → 9YwuUfsE.js} +1 -1
- package/web/app/immutable/chunks/{DR_T7fiX.js → B0rIXGc4.js} +1 -1
- package/web/app/immutable/chunks/{BfyBZYmK.js → B1yX4XGq.js} +1 -1
- package/web/app/immutable/chunks/{CB8I0xcf.js → B21_6eW6.js} +1 -1
- package/web/app/immutable/chunks/{D6EREClH.js → B2eAyNSi.js} +1 -1
- package/web/app/immutable/chunks/{CBiHrObN.js → B3RsHzWp.js} +1 -1
- package/web/app/immutable/chunks/{Cy-Gmjfw.js → B3SGnWra.js} +1 -1
- package/web/app/immutable/chunks/{CFnuU2Q9.js → B4CR5dfb.js} +1 -1
- package/web/app/immutable/chunks/{Btz71F4v.js → B51DLOiX.js} +1 -1
- package/web/app/immutable/chunks/{Bbk1k0zD.js → B5G4SPkG.js} +1 -1
- package/web/app/immutable/chunks/{3eJAoKag.js → B7Df-Pbj.js} +2 -2
- package/web/app/immutable/chunks/{COcWmgqo.js → B7lF313M.js} +1 -1
- package/web/app/immutable/chunks/{BWBs_VhF.js → B8MtVUO1.js} +1 -1
- package/web/app/immutable/chunks/{DIaPAOHO.js → B9CbdVRS.js} +1 -1
- package/web/app/immutable/chunks/{Fz0URFlj.js → B9O5QYHa.js} +1 -1
- package/web/app/immutable/chunks/{Qz-8JMY9.js → B9lVck2z.js} +1 -1
- package/web/app/immutable/chunks/{B69VjfVW.js → BFU2DTxE.js} +1 -1
- package/web/app/immutable/chunks/{CGw07Xyz.js → BFllbeCZ.js} +1 -1
- package/web/app/immutable/chunks/{3Y6lb7OZ.js → BHeDLdQn.js} +1 -1
- package/web/app/immutable/chunks/{CMgf2JhK.js → BHqqRyT8.js} +1 -1
- package/web/app/immutable/chunks/{gd66hMGv.js → BIBA0Biz.js} +1 -1
- package/web/app/immutable/chunks/{C8eS8Wxk.js → BJbIj2f5.js} +3 -3
- package/web/app/immutable/chunks/{BB2E6zUl.js → BJlw6wnz.js} +1 -1
- package/web/app/immutable/chunks/{CV2DFyPr.js → BJm_eT-U.js} +1 -1
- package/web/app/immutable/chunks/{COEzShcb.js → BKawFF96.js} +2 -2
- package/web/app/immutable/chunks/BKdLSL00.js +1 -0
- package/web/app/immutable/chunks/{BCiuPd8v.js → BLAOZHWQ.js} +1 -1
- package/web/app/immutable/chunks/{BeIO7jOE.js → BLLsZVvW.js} +1 -1
- package/web/app/immutable/chunks/{CipMzp9h.js → BLOjz32P.js} +1 -1
- package/web/app/immutable/chunks/{DNIjwT-T.js → BMOxNEff.js} +1 -1
- package/web/app/immutable/chunks/{mSFHDc3j.js → BNS1LCAy.js} +1 -1
- package/web/app/immutable/chunks/{wm0Oy5pp.js → BNodOXul.js} +1 -1
- package/web/app/immutable/chunks/{C0OVkc7f.js → BPrwAqEs.js} +1 -1
- package/web/app/immutable/chunks/{BRxcN_af.js → BRPmfbNP.js} +1 -1
- package/web/app/immutable/chunks/{ShK1ywMo.js → BRadcq2w.js} +2 -2
- package/web/app/immutable/chunks/{B_82dd46.js → BRomtsr7.js} +1 -1
- package/web/app/immutable/chunks/{DsM8cZvP.js → BTHEWI_S.js} +1 -1
- package/web/app/immutable/chunks/{BnbzkcOJ.js → BTUjIyAV.js} +1 -1
- package/web/app/immutable/chunks/{BNYHFEBz.js → BWzmS9rr.js} +1 -1
- package/web/app/immutable/chunks/{DP4AQNt-.js → BYBv_fLl.js} +3 -3
- package/web/app/immutable/chunks/{B0wbZnxi.js → B_Tk6TVS.js} +1 -1
- package/web/app/immutable/chunks/{CEw_Ojs2.js → BaV_HcgG.js} +1 -1
- package/web/app/immutable/chunks/{C4rFO2Hf.js → Baz0g_kI.js} +1 -1
- package/web/app/immutable/chunks/{kVzVNgmU.js → Bb5T6-Tv.js} +2 -2
- package/web/app/immutable/chunks/{DAXBrrD-.js → BbgSAX3i.js} +1 -1
- package/web/app/immutable/chunks/{-dJluFvm.js → BcDnMnye.js} +1 -1
- package/web/app/immutable/chunks/{DDLB_hVd.js → BdyAQuf8.js} +1 -1
- package/web/app/immutable/chunks/{7Kg0aRC7.js → BdzBn7bA.js} +1 -1
- package/web/app/immutable/chunks/{CUFDAb6B.js → BeCIalNK.js} +1 -1
- package/web/app/immutable/chunks/{DNhivPW8.js → BeQfIbwM.js} +1 -1
- package/web/app/immutable/chunks/{CojufscG.js → BfHcmF2O.js} +1 -1
- package/web/app/immutable/chunks/{CWKqJsJy.js → BgUSjvxc.js} +1 -1
- package/web/app/immutable/chunks/{CsKSizCz.js → BjFyT_W2.js} +1 -1
- package/web/app/immutable/chunks/{C8vhldb0.js → Bjp6Z7YT.js} +1 -1
- package/web/app/immutable/chunks/{4juZDnmT.js → Bkf7F_Qx.js} +1 -1
- package/web/app/immutable/chunks/{Bo8Vb7mw.js → BmagX6n5.js} +1 -1
- package/web/app/immutable/chunks/BnJDHHUb.js +1 -0
- package/web/app/immutable/chunks/{CEixATbX.js → Bpb2sW6o.js} +1 -1
- package/web/app/immutable/chunks/{CY_11EtD.js → BpftDedA.js} +1 -1
- package/web/app/immutable/chunks/{DuncjXt7.js → BqobArwh.js} +1 -1
- package/web/app/immutable/chunks/{8-qXyFVf.js → Bsismerr.js} +1 -1
- package/web/app/immutable/chunks/{BFnV2iJZ.js → BtKOOSsW.js} +1 -1
- package/web/app/immutable/chunks/{IYJiuR5Y.js → Bu9v967D.js} +1 -1
- package/web/app/immutable/chunks/{CcJbyRBU.js → Bw5h0b4B.js} +1 -1
- package/web/app/immutable/chunks/{BHS_T8V0.js → Bw6C51Z8.js} +1 -1
- package/web/app/immutable/chunks/{Bi4olNhp.js → BwUnz25X.js} +1 -1
- package/web/app/immutable/chunks/{CHK9comt.js → BwYW1dkK.js} +1 -1
- package/web/app/immutable/chunks/{ADSB-roI.js → By_us5QF.js} +1 -1
- package/web/app/immutable/chunks/{C8aWNHHq.js → BzXXtRZY.js} +2 -2
- package/web/app/immutable/chunks/{BZMcByQ2.js → C-enyvpk.js} +1 -1
- package/web/app/immutable/chunks/{DvfHX1n9.js → C-vkWK8U.js} +1 -1
- package/web/app/immutable/chunks/{B5varbso.js → C-wtKDF4.js} +1 -1
- package/web/app/immutable/chunks/{Cy8AeYBK.js → C17Klvq4.js} +1 -1
- package/web/app/immutable/chunks/{CoHCPcUH.js → C1HHC_7R.js} +1 -1
- package/web/app/immutable/chunks/{DHO9Wxu6.js → C20jcbNk.js} +1 -1
- package/web/app/immutable/chunks/{D8a7_5Ny.js → C2XB0GY0.js} +1 -1
- package/web/app/immutable/chunks/{DsQW_Oo3.js → C5uQZx4q.js} +1 -1
- package/web/app/immutable/chunks/{CIjm5Ho8.js → C6liPF0f.js} +1 -1
- package/web/app/immutable/chunks/{DVeWWknf.js → C73NY2AB.js} +1 -1
- package/web/app/immutable/chunks/{hwOnI0Qg.js → C7Wb4_Fy.js} +1 -1
- package/web/app/immutable/chunks/{n7G96yg-.js → C8_8H2HU.js} +2 -2
- package/web/app/immutable/chunks/{B5o_1DGD.js → C9qO9uPq.js} +1 -1
- package/web/app/immutable/chunks/{CpXOs3du.js → CA0nf0gO.js} +1 -1
- package/web/app/immutable/chunks/{BfuGl5Yh.js → CAKCzVLn.js} +1 -1
- package/web/app/immutable/chunks/{Dl2IplSW.js → CCoYF4yh.js} +1 -1
- package/web/app/immutable/chunks/{VlCONpJu.js → CE90SUHM.js} +3 -3
- package/web/app/immutable/chunks/{SK6qKYG6.js → CESQT1SZ.js} +1 -1
- package/web/app/immutable/chunks/{DmpGcxj7.js → CFPsFOEM.js} +1 -1
- package/web/app/immutable/chunks/{fZqCaChB.js → CHJZj-fd.js} +1 -1
- package/web/app/immutable/chunks/{D10dSkvY.js → CIOLxD2z.js} +1 -1
- package/web/app/immutable/chunks/{DGD-U5Bo.js → CJyP11U5.js} +1 -1
- package/web/app/immutable/chunks/{DTMC7Bz7.js → CM7GBUHK.js} +1 -1
- package/web/app/immutable/chunks/{BJx6o7Ck.js → CMDErhcM.js} +1 -1
- package/web/app/immutable/chunks/{BgBv_oVS.js → CNttRhcj.js} +1 -1
- package/web/app/immutable/chunks/{DbqjhTxc.js → CQk97DU6.js} +1 -1
- package/web/app/immutable/chunks/{ClNwh2X4.js → CQnuk5Vr.js} +1 -1
- package/web/app/immutable/chunks/{CMXGjuKe.js → CSHUdNXY.js} +1 -1
- package/web/app/immutable/chunks/CT36W95j.js +1 -0
- package/web/app/immutable/chunks/{DDR5ATRf.js → CTA4usCn.js} +1 -1
- package/web/app/immutable/chunks/{D6_UiQP2.js → CTBZsDJn.js} +1 -1
- package/web/app/immutable/chunks/{AsDAWvyv.js → CU5gGNrG.js} +1 -1
- package/web/app/immutable/chunks/{DEit52eN.js → CUyvQglq.js} +1 -1
- package/web/app/immutable/chunks/{hSO5HDzm.js → CVc3afbh.js} +3 -3
- package/web/app/immutable/chunks/{D9ypzy3_.js → CXrz3Q9k.js} +2 -2
- package/web/app/immutable/chunks/{DWZFevW5.js → C_p41hnk.js} +1 -1
- package/web/app/immutable/chunks/{BMZTgpKM.js → Ca30sbat.js} +4 -4
- package/web/app/immutable/chunks/{CS9rwHkY.js → Cayy-ftZ.js} +1 -1
- package/web/app/immutable/chunks/{Cw6V9axU.js → CbAeWmeg.js} +1 -1
- package/web/app/immutable/chunks/{4pmevG3-.js → CcWSFJ-V.js} +1 -1
- package/web/app/immutable/chunks/{BzfZfCQf.js → Ce3Ams7F.js} +1 -1
- package/web/app/immutable/chunks/{RFiIZzYq.js → CgQUkF-P.js} +1 -1
- package/web/app/immutable/chunks/{CxHceMFQ.js → Ch4_kkqM.js} +1 -1
- package/web/app/immutable/chunks/{DbaWuKaJ.js → CiLRDPyT.js} +1 -1
- package/web/app/immutable/chunks/ClBJ4iZ6.js +1 -0
- package/web/app/immutable/chunks/{Cr-VSi-M.js → ClKki07I.js} +1 -1
- package/web/app/immutable/chunks/{DJq2OFOa.js → ClQp3PSY.js} +2 -2
- package/web/app/immutable/chunks/{lqRrFWoK.js → CmG1GbmA.js} +1 -1
- package/web/app/immutable/chunks/{CWmwYDNG.js → Cn5kmzaj.js} +1 -1
- package/web/app/immutable/chunks/{CWFSIfn9.js → Cnd7G5VB.js} +1 -1
- package/web/app/immutable/chunks/{CZuVFY9F.js → Co3f6qKm.js} +1 -1
- package/web/app/immutable/chunks/{CZ56Xi_v.js → CtiseZKO.js} +1 -1
- package/web/app/immutable/chunks/{DMhC9LKs.js → CtnRAN1I.js} +1 -1
- package/web/app/immutable/chunks/{5zeKz6ol.js → Ctp2YBhQ.js} +1 -1
- package/web/app/immutable/chunks/{DhiahJsn.js → Cu-I2HTr.js} +1 -1
- package/web/app/immutable/chunks/{C2RkweJs.js → CuK2Zw46.js} +1 -1
- package/web/app/immutable/chunks/{G_T2qAAV.js → Cw3xVp_u.js} +1 -1
- package/web/app/immutable/chunks/{KmtLXugw.js → Cw7ROLv9.js} +1 -1
- package/web/app/immutable/chunks/{CT1z3096.js → CyZzaZYX.js} +1 -1
- package/web/app/immutable/chunks/{U7noOj6Q.js → CyhLcHZ_.js} +1 -1
- package/web/app/immutable/chunks/{DauNXbYG.js → Cyu02R5O.js} +1 -1
- package/web/app/immutable/chunks/{BkbXY6dY.js → D-5Zsg_M.js} +1 -1
- package/web/app/immutable/chunks/{Zbow58Yt.js → D-IkFfCX.js} +1 -1
- package/web/app/immutable/chunks/{DRBNGj_-.js → D0yYfpFT.js} +1 -1
- package/web/app/immutable/chunks/{CMlQo89-.js → D1QW0Kek.js} +1 -1
- package/web/app/immutable/chunks/{DlZTlvi9.js → D1WSBSxV.js} +1 -1
- package/web/app/immutable/chunks/{BrhnR-ID.js → D4LrTene.js} +1 -1
- package/web/app/immutable/chunks/{XnpstU-2.js → D4bOZmAv.js} +1 -1
- package/web/app/immutable/chunks/{CDbqbXk4.js → D4nVXLyT.js} +1 -1
- package/web/app/immutable/chunks/{B12HSa3p.js → D4r0rKFl.js} +1 -1
- package/web/app/immutable/chunks/{C-gBprWE.js → D8oCNZJt.js} +3 -3
- package/web/app/immutable/chunks/{Co17KOMP.js → D9BiEPlJ.js} +1 -1
- package/web/app/immutable/chunks/{DH8xXeC1.js → D9xzAHI_.js} +1 -1
- package/web/app/immutable/chunks/{BWVi-EJ0.js → DAPuPOz3.js} +1 -1
- package/web/app/immutable/chunks/{BLWZRT3p.js → DBigkuTi.js} +1 -1
- package/web/app/immutable/chunks/{BgQrVLPV.js → DCZ5UGy-.js} +4 -4
- package/web/app/immutable/chunks/{CjlaSeGJ.js → DDgbK4p-.js} +1 -1
- package/web/app/immutable/chunks/{CFtvHvEH.js → DFXV1wIW.js} +3 -3
- package/web/app/immutable/chunks/{ButPbiBY.js → DFl_UPDl.js} +1 -1
- package/web/app/immutable/chunks/{1EEYpvtO.js → DHClt9az.js} +1 -1
- package/web/app/immutable/chunks/{G3wMjZ9O.js → DJiBCJAD.js} +1 -1
- package/web/app/immutable/chunks/{BTR3RbCu.js → DJkyIBda.js} +1 -1
- package/web/app/immutable/chunks/{Cwf8tFwL.js → DJz4QGRL.js} +1 -1
- package/web/app/immutable/chunks/{Djp1SSHW.js → DK1WtQKR.js} +3 -3
- package/web/app/immutable/chunks/{De4CKtf6.js → DKkMoi_7.js} +1 -1
- package/web/app/immutable/chunks/{BgfkhG1x.js → DLyvIErQ.js} +1 -1
- package/web/app/immutable/chunks/{CizJ7rQ5.js → DMJ_kXWl.js} +1 -1
- package/web/app/immutable/chunks/{t1ZXWA1s.js → DNy6UqlX.js} +1 -1
- package/web/app/immutable/chunks/{E3Zijj0F.js → DNzfQenZ.js} +1 -1
- package/web/app/immutable/chunks/{BW9zIwc0.js → DOjarwrj.js} +2 -2
- package/web/app/immutable/chunks/{MSmU5tc0.js → DPevKyzH.js} +4 -4
- package/web/app/immutable/chunks/{BcqStwzo.js → DQh8iE7C.js} +1 -1
- package/web/app/immutable/chunks/{BLXS06dm.js → DR-BIfRu.js} +1 -1
- package/web/app/immutable/chunks/{Bt4kKs00.js → DSWBNeO8.js} +1 -1
- package/web/app/immutable/chunks/{Cmt1ga7s.js → DSWXlbxm.js} +1 -1
- package/web/app/immutable/chunks/{CXAeontZ.js → DThHr-M9.js} +1 -1
- package/web/app/immutable/chunks/{CDPO_wX9.js → DZ7i3acf.js} +1 -1
- package/web/app/immutable/chunks/{fsqlfl9k.js → DZVkFfA6.js} +1 -1
- package/web/app/immutable/chunks/DZyjGspJ.js +408 -0
- package/web/app/immutable/chunks/{CvWGOqV6.js → D_rHnmLE.js} +1 -1
- package/web/app/immutable/chunks/{DTYxFA3y.js → DbxGcVeS.js} +5 -5
- package/web/app/immutable/chunks/{2Lw-DzvO.js → DgOx26JX.js} +1 -1
- package/web/app/immutable/chunks/{C8y1Abl_.js → Dgv1nn7D.js} +1 -1
- package/web/app/immutable/chunks/{C9sB2HsS.js → DjhrVk-G.js} +1 -1
- package/web/app/immutable/chunks/{nXbhxidw.js → DkJKEJ06.js} +1 -1
- package/web/app/immutable/chunks/{DTG9_7_9.js → Dn-5sae7.js} +1 -1
- package/web/app/immutable/chunks/{DEfRWwmu.js → DozUkl5C.js} +4 -4
- package/web/app/immutable/chunks/{DPuyFsTN.js → DpNO08YA.js} +1 -1
- package/web/app/immutable/chunks/{DaYj80Qs.js → Dsa4n88U.js} +1 -1
- package/web/app/immutable/chunks/{BFmjOdeB.js → Du0V4O1Q.js} +1 -1
- package/web/app/immutable/chunks/{CrmW6ekG.js → DvvIOlOp.js} +1 -1
- package/web/app/immutable/chunks/{DqZi8n0P.js → DwvH6ihg.js} +1 -1
- package/web/app/immutable/chunks/{BXPefMgB.js → DxWZwZdx.js} +1 -1
- package/web/app/immutable/chunks/{CZL7jnx7.js → Dy3Z_3JL.js} +1 -1
- package/web/app/immutable/chunks/{Tx7lrkZd.js → Dz1riI3m.js} +1 -1
- package/web/app/immutable/chunks/{F8LkPv3G.js → EMb2ha4n.js} +1 -1
- package/web/app/immutable/chunks/{CYYhQFAn.js → ERFmpNRs.js} +1 -1
- package/web/app/immutable/chunks/{JyTruf69.js → EhMQOMj3.js} +1 -1
- package/web/app/immutable/chunks/{Be5MJLTH.js → Fq8M_XAT.js} +1 -1
- package/web/app/immutable/chunks/{DZjCsshe.js → GpPmLIf8.js} +1 -1
- package/web/app/immutable/chunks/{DG0FHH4R.js → Gq5VdtSX.js} +1 -1
- package/web/app/immutable/chunks/{oG2g18ab.js → Gz_dGLcm.js} +1 -1
- package/web/app/immutable/chunks/{BT5gFy0f.js → H0FtMLfI.js} +1 -1
- package/web/app/immutable/chunks/{lfjw8hnT.js → IOLk9WTr.js} +1 -1
- package/web/app/immutable/chunks/{Bg8aMuhb.js → JzReAjFF.js} +1 -1
- package/web/app/immutable/chunks/{BriVbLDU.js → K6Z_l6pq.js} +1 -1
- package/web/app/immutable/chunks/{0aynuPUC.js → LMNLZ1NY.js} +1 -1
- package/web/app/immutable/chunks/{oNe1xT1B.js → MpnM4XaB.js} +1 -1
- package/web/app/immutable/chunks/{Hp_5KBak.js → NBz8yHrY.js} +1 -1
- package/web/app/immutable/chunks/{CdfwUBxI.js → NSYi6AlX.js} +1 -1
- package/web/app/immutable/chunks/{0KTgJhJS.js → PysgAWQl.js} +2 -2
- package/web/app/immutable/chunks/{D-uVnCxU.js → QZ612f-7.js} +1 -1
- package/web/app/immutable/chunks/{Bj1VmHmJ.js → QiHSe7pE.js} +1 -1
- package/web/app/immutable/chunks/{DPiwgBxV.js → RAtz5BJe.js} +1 -1
- package/web/app/immutable/chunks/{C59xgYPp.js → T-UCXbJS.js} +1 -1
- package/web/app/immutable/chunks/{CwxaNadx.js → TRV263rQ.js} +1 -1
- package/web/app/immutable/chunks/{BcAaHHj_.js → UkcaZDPC.js} +1 -1
- package/web/app/immutable/chunks/{BILCfAeY.js → VH54VSPn.js} +1 -1
- package/web/app/immutable/chunks/{CDGcnZR5.js → VlylMxmA.js} +1 -1
- package/web/app/immutable/chunks/{DR7XO1uo.js → WvnHVkBo.js} +1 -1
- package/web/app/immutable/chunks/{C111lYGO.js → Y7H0Q9T9.js} +1 -1
- package/web/app/immutable/chunks/{CIUOjVit.js → _639dNbm.js} +1 -1
- package/web/app/immutable/chunks/{bp1OJROF.js → aQ1wweeY.js} +1 -1
- package/web/app/immutable/chunks/{BzW_8cyh.js → cjWrgEc5.js} +1 -1
- package/web/app/immutable/chunks/{CbsveYrS.js → e5cMrke8.js} +1 -1
- package/web/app/immutable/chunks/{COokUMpm.js → jeQJPkPX.js} +1 -1
- package/web/app/immutable/chunks/{Bi9J7ZWc.js → jvSooljK.js} +1 -1
- package/web/app/immutable/chunks/{wEDjfGMo.js → lbBEThX6.js} +1 -1
- package/web/app/immutable/chunks/{T5gyQ5hy.js → mp0CeHil.js} +1 -1
- package/web/app/immutable/chunks/{CP9eXkGz.js → ndibvDk5.js} +1 -1
- package/web/app/immutable/chunks/{tbq-oxb3.js → o3xy8uhx.js} +1 -1
- package/web/app/immutable/chunks/{aBVNuo2p.js → ra3YYtwY.js} +1 -1
- package/web/app/immutable/chunks/u2UWf7Y4.js +2 -0
- package/web/app/immutable/chunks/{e8UxY0el.js → u8LnBJs1.js} +1 -1
- package/web/app/immutable/chunks/{axg0Ndkk.js → utDAmz_H.js} +1 -1
- package/web/app/immutable/chunks/{BB12pUFu.js → v9ob0vCO.js} +1 -1
- package/web/app/immutable/chunks/{CUH-D27g.js → vxHAGoo-.js} +1 -1
- package/web/app/immutable/chunks/{CDkIMW0_.js → wzM9lg7r.js} +1 -1
- package/web/app/immutable/chunks/{B30jTa2N.js → xKssrPyL.js} +1 -1
- package/web/app/immutable/chunks/{gTulAhJn.js → xmUlEbpq.js} +1 -1
- package/web/app/immutable/chunks/{Bfg47dIU.js → ycNH2fN8.js} +1 -1
- package/web/app/immutable/entry/{app.Dm8wR6Rj.js → app.B5_j9_5M.js} +3 -3
- package/web/app/immutable/entry/start.mb9UH8tB.js +1 -0
- package/web/app/immutable/nodes/{0.CwEG7GgD.js → 0.DHuGbpUL.js} +1 -1
- package/web/app/immutable/nodes/{1.DqpCQ0oj.js → 1.WwJLTbbm.js} +1 -1
- package/web/app/immutable/nodes/{10.cnSuSi5Z.js → 10.CPuWWcG0.js} +1 -1
- package/web/app/immutable/nodes/{11.CC3qLADs.js → 11.D_8o4hy2.js} +1 -1
- package/web/app/immutable/nodes/{12.DSb5Am3H.js → 12.CZZ5SuMc.js} +1 -1
- package/web/app/immutable/nodes/{13.CCDV1skO.js → 13.BCLve-7_.js} +3 -3
- package/web/app/immutable/nodes/{14.DeCwT4BN.js → 14.BcQJ7NXl.js} +1 -1
- package/web/app/immutable/nodes/{15.k51Sg7jX.js → 15.ClAlFdyg.js} +1 -1
- package/web/app/immutable/nodes/{16.DpXdz_jE.js → 16.CuGK30BG.js} +1 -1
- package/web/app/immutable/nodes/{17.D8r3aG2k.js → 17.D7rHJr6p.js} +1 -1
- package/web/app/immutable/nodes/{18.BqQgYdRA.js → 18.zJtnTeH6.js} +2 -2
- package/web/app/immutable/nodes/{2.B6rlXtKu.js → 2.0AUsew1o.js} +4 -4
- package/web/app/immutable/nodes/{3.C3QOw0-1.js → 3.BAKoHu3T.js} +1 -1
- package/web/app/immutable/nodes/{4.w6LAxxf2.js → 4.DvgOQOfh.js} +1 -1
- package/web/app/immutable/nodes/{5.iL_EURMh.js → 5.B3LUyqZc.js} +1 -1
- package/web/app/immutable/nodes/{6.ycdot7zh.js → 6.CQSK8GlV.js} +1 -1
- package/web/app/immutable/nodes/{7.HdIw4pKx.js → 7.C0YP__gO.js} +1 -1
- package/web/app/immutable/nodes/8.CCQs8dWr.js +14 -0
- package/web/app/immutable/nodes/{9.gXjT92Zl.js → 9.BLr02eF_.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +45 -45
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/BQy38IRs.js +0 -1
- package/web/app/immutable/chunks/BvIap_Mf.js +0 -408
- package/web/app/immutable/chunks/CD8un3Yt.js +0 -1
- package/web/app/immutable/chunks/CiyfjWlF.js +0 -1
- package/web/app/immutable/chunks/DUCyNlB1.js +0 -1
- package/web/app/immutable/chunks/_EdWPAoo.js +0 -2
- package/web/app/immutable/entry/start.D6r48319.js +0 -1
- package/web/app/immutable/nodes/8.B8D0hgU8.js +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./YqTahsxp.js";import{Iv as r}from"./BmagX6n5.js";import{c4 as o}from"./CmG1GbmA.js";function a(e){return!e||t().status!=="connected"?null:o.select(r.state,e)}export{a as resolveConnectedWorkspaceKeySlot};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./CT36W95j.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./DYhIMPy1.js";import{i as we}from"./Cn5kmzaj.js";import{f as un,g as pi,s as cn}from"./TRV263rQ.js";import{b as ko}from"./p7znhYIU.js";import{b as pn}from"./BaIAhI85.js";import{h as Eo,c as Ye,w as lr,N as O,O as Jt,b2 as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,ab as cr,U as Ro,f as Ao,e as pr,T as Ho,g as To,S as Do,a4 as Ze,a3 as Ve,C as Mo,G as gr,F as Io,I as Fo,A as At,ah as No,$ as Ht,ad as Tt,v as St,a1 as Ti,s as J,r as Ue,an as wt,D as Po,d as zo,aa as mr,b as gn,u as mn,aI as Uo,ap as ct,ac as _o,K as Le,M as Ut,L as Oo,a0 as Dt,E as Bo,al as vr,a6 as Vo,a2 as vn,t as br,af as ft,a5 as kt,ae as ot,ag as Sr,B as gi,a9 as mi,k as Wo,aH as bn}from"./D8oCNZJt.js";import{g as Go,i as $o}from"./Bw5h0b4B.js";import{F as vi,c4 as jo,be as qo,at as Ko,as as Xo}from"./D_rHnmLE.js";import{f as Di}from"./D9xzAHI_.js";import"./ClQp3PSY.js";import{g as Yo}from"./BFllbeCZ.js";import{c as Qo}from"./CJyP11U5.js";import{P as Jo}from"./DPevKyzH.js";import{t as Sn}from"./D-IkFfCX.js";class Zo extends Eo{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./CWKqJsJy.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./ggQuSgBM.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
|
|
1
|
+
import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./BgUSjvxc.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./ggQuSgBM.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Ft,bq as R,bo as u,by as Ot,b as Rt}from"./BQy38IRs.js";import{bs as Dt,bV as K,br as rt,bk as er,bj as tr,bH as r,a5 as c,aD as e,bS as n,bl as S,bA as l,b_ as g,bO as m,W as o,bn as Gt,aA as D,c9 as z,be as Ve,b$ as Be,aB as b,c5 as mt,ca as ft,a7 as Ue,ay as U,ai as rr,aj as ar,bf as sr}from"./DYhIMPy1.js";import{i as W}from"./CWmwYDNG.js";import{I as or,g as Xe}from"./CcJbyRBU.js";import{c as Ee}from"./RFiIZzYq.js";import{I as Fe,D as Ze,h as $t}from"./Zbow58Yt.js";import{f as Oe,c as gt,s as nr}from"./CwxaNadx.js";import{b as xt}from"./BaIAhI85.js";import{F as Te,cM as ir,aq as lr,cF as bt,cW as Pt,c8 as cr}from"./CvWGOqV6.js";import{f as we}from"./DH8xXeC1.js";import"./DJq2OFOa.js";import"./CHK9comt.js";import{t as nt}from"./MSmU5tc0.js";import{M as dr}from"./DWZFevW5.js";import{e as pr,W as _e}from"./ShK1ywMo.js";import{h as Ct,i as Et,g as Tt,P as At}from"./COcWmgqo.js";import{C as ht}from"./-dJluFvm.js";import{c as ur}from"./ChTqQfQN.js";import"./1EEYpvtO.js";import{d as vr}from"./hSO5HDzm.js";import{Iv as _r}from"./Bo8Vb7mw.js";import{dC as mr}from"./DPuyFsTN.js";import{S as et,k as fr,a as jt}from"./BgQrVLPV.js";import{R as qe,c as it,m as gr,bE as tt}from"./VlCONpJu.js";import"./CXAeontZ.js";var xr=b('<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>'),br=b('<div class="text-sm text-danger bg-danger-background/10 rounded-md p-3"> </div>'),hr=b('<div class="flex items-center gap-2 text-subtle"><!> <span class="text-sm"> </span></div>'),Sr=b('<div class="p-4 max-h-60 overflow-y-auto overscroll-contain"><!></div>'),yr=b('<div class="p-3 bg-muted/30"><div class="flex items-center justify-between mb-2"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!></div> <p class="text-xs text-subtle mb-2"> </p> <div class="h-32 rounded border border-border overflow-hidden"><!></div></div>'),wr=b('<div class="flex flex-col bg-background border border-border rounded-lg overflow-hidden"><div class="flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span> <!></div> <div class="flex items-center gap-1"><!></div></div> <!> <!></div>');function St(He,P){if(new.target)return Ft({component:St,...He});Dt(P,!0);const at=ur("SetupScriptAgent");let Ae=R(P,"repoPath",7),Re=R(P,"onScriptGenerated",7),De=R(P,"onClose",7),Ge=K(rt(crypto.randomUUID())),F=K(!1),ae=K(null),me=!1,ie=K(null);er(()=>{me=!0,C()}),tr(()=>{me=!1});async function le(){try{const v=mr.select(_r.state).find(E=>E.repositoryPath===Ae()||E.path===Ae()||E.worktreePath===Ae());return v?String(v.id):null}catch{return null}}async function C(){r(F,!0),r(ae,null),r(ie,null);try{const s=await le();if(!me)return;if(!s){r(ae,u.workspace_setupScriptAgent_noWorkspace_error(),!0),r(F,!1);return}const v=await vr.setupScripts.generate(s);if(!me)return;if(!v||!v.script){r(ae,u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1);return}r(ie,{name:v.projectType?u.workspace_setupScriptAgent_projectTypeSetup_label({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedSetup_label(),description:v.projectType?u.workspace_setupScriptAgent_generatedForProject_description({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedFromAnalysis_description(),content:v.script},!0),r(F,!1)}catch(s){if(at.error("Failed to generate setup script",s),!me)return;r(ae,s instanceof Error?s.message:u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1)}}function fe(s){Re()?.(s)}var ge={get repoPath(){return Ae()},set repoPath(s){Ae(s),D()},get onScriptGenerated(){return Re()},set onScriptGenerated(s){Re(s),D()},get onClose(){return De()},set onClose(s){De(s),D()},$set:Ot,$on:(s,v)=>Rt(P,s,v)},ce=wr(),xe=c(ce),be=c(xe),Me=c(be);pr(Me,{variant:"standard",get agentId(){return e(Ge)}});var Le=n(Me,2),je=S(Le,!0),he=n(Le,2);{var de=s=>{var v=xr();o(s,v)};W(he,s=>{e(F)&&s(de)})}l(be);var J=n(be,2),ke=c(J);{let s=z(()=>u.workspace_setupScriptAgent_close_ariaLabel());we(ke,{variant:"ghost-light",size:"icon-sm",iconOnly:!0,get"aria-label"(){return e(s)},get onclick(){return De()},children:(v,E)=>{Te(v,{get icon(){return ir}})},$$slots:{default:!0}})}l(J),l(xe);var $e=n(xe,2);{var Ie=s=>{var v=Sr(),E=c(v);{var q=B=>{var G=br(),Q=S(G,!0);g(()=>m(Q,e(ae))),o(B,G)},se=B=>{var G=hr(),Q=c(G);or(Q,{size:16,class:"text-primary"});var Se=n(Q,2),ze=S(Se,!0);l(G),g(ye=>m(ze,ye),[()=>u.workspace_setupScriptAgent_analyzing_label()]),o(B,G)};W(E,B=>{e(ae)?B(q):B(se,-1)})}l(v),o(s,v)};W($e,s=>{(e(ae)||e(F))&&s(Ie)})}var Ye=n($e,2);{var pe=s=>{var v=yr(),E=c(v),q=c(E),se=c(q);Te(se,{get icon(){return lr},class:"text-green-500"});var B=n(se,2),G=S(B,!0);l(q);var Q=n(q,2);we(Q,{variant:"primary",size:"sm",onclick:()=>fe(e(ie)),class:"h-7",children:(Pe,st)=>{Ve();var Je=Be();g(ct=>m(Je,ct),[()=>u.workspace_setupScriptAgent_createScript_label()]),o(Pe,Je)},$$slots:{default:!0}}),l(E);var Se=n(E,2),ze=S(Se,!0),ye=n(Se,2),lt=c(ye);ht(lt,{get value(){return e(ie).content},language:"shell",readOnly:!0,lineNumbers:!1}),l(ye),l(v),g(()=>{m(G,e(ie).name),m(ze,e(ie).description)}),o(s,v)};W(Ye,s=>{e(ie)&&!e(F)&&s(pe)})}return l(ce),g(s=>m(je,s),[()=>u.workspace_setupScriptAgent_title()]),o(He,ce),Gt(ge)}var kr=b('<span class="block truncate"> </span>'),$r=b("<div></div>"),Pr=b('<div role="group"></div> <div class="mt-2 border-t border-border pt-2"><!></div> <!> <div class="mt-2 border-t border-border pt-2"><!> <!></div>',1),Cr=b('<code class="type-caption text-muted-foreground"> </code>'),Er=b('<p> </p> <code class="type-caption"> </code>',1),It=b("<!> <!>",1),Tr=b('<div class="mt-2 flex flex-wrap gap-2 px-2"></div>'),Ar=b('<div class="h-44 min-w-0 overflow-hidden rounded-(--radius-medium) border border-border bg-background py-2"><!></div> <div class="mt-2 px-1"><!> <!></div>',1),jr=b('<div class="mb-2 flex items-center justify-between gap-3 px-2"><div class="min-w-0"><h3> </h3> <p class="type-caption truncate text-muted-foreground"> </p></div> <!></div> <!>',1),Ke=b("<div><!></div>"),Ir=b("<!> ",1),Nt=b('<div class="min-w-0 w-full"><span class="text-sm"> </span> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ut=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>'),Nr=b('<span class="type-caption px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium shrink-0"> </span>'),Ur=b('<div class="min-w-0 w-full"><div class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="text-sm"> </span> <!></div> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Fr=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <p class="text-xs text-subtle px-2 mb-2"> </p> <!></div> <!> <!> <div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>',1),Or=b('<code class="type-caption px-1.5 py-0.5 rounded bg-background/80 text-muted-foreground font-mono cursor-pointer hover:bg-background hover:text-foreground transition-colors"> </code>'),Rr=b('<p class="text-xs"> </p> <p class="mt-1 text-xs text-muted-foreground"> <code class="type-caption"> </code></p>',1),Dr=b('<div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-1.5 bg-muted/30 shrink-0"><span class="type-caption font-medium text-muted-foreground shrink-0"> </span> <div class="flex flex-wrap gap-1.5"></div></div> <div class="flex-1 min-h-0 min-w-0 overflow-hidden py-3 bg-background"><!></div>',1),Gr=b('<div class="flex min-h-0 min-w-0 flex-col overflow-y-auto"><!></div> <div class="flex min-h-0 min-w-0 flex-col"><!></div>',1),Mr=b('<div class="flex flex-col min-h-0 min-w-0 overflow-y-auto p-2 md:pr-4"><!></div> <div class="flex flex-col min-w-0 min-h-0"><!></div>',1),Lr=b('<!> <span class="text-sm font-normal text-subtle"> </span> <span class="text-subtle font-normal"> </span>',1),zr=b('<div class="mt-1 pl-7 space-y-3"><!></div>'),Wr=b('<div class="space-y-3"><!></div>'),qr=b("<div><!> <!></div> <!>",1);function Kr(He,P){if(new.target)return Ft({component:Kr,...He});Dt(P,!0);const at=(t,a=sr)=>{{const w=_=>{Te(_,{get icon(){return bt},get class(){return _e.icon}})},j=_=>{var i=kr(),f=S(i,!0);g(()=>m(f,a().name)),o(_,i)},T=_=>{{let i=z(()=>e(st)===a().id?"checked":"empty");dr(_,{get state(){return e(i)}})}};let h=z(()=>e(st)===a().id),$=z(()=>e(st)===a().id);nt(t,{get selected(){return e(h)},get"aria-pressed"(){return e($)},get"data-setup-source"(){return a().id},get class(){return _e.row},onclick:()=>a().id==="custom"?Mt():ye(a().id),leading:w,title:j,trailing:T,$$slots:{leading:!0,title:!0,trailing:!0}})}},Ae=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Pr(),_=U($);Xe(_,21,()=>e(Je),I=>I.id,(I,O)=>{at(I,()=>e(O))}),l(_);var i=n(_,2),f=c(i);nt(f,{get"aria-expanded"(){return e($e)},get class(){return _e.row},onclick:()=>r($e,!e($e)),leading:y=>{Te(y,{get icon(){return cr},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptEditor_templates_label()]),o(y,d)},$$slots:{leading:!0,title:!0}}),l(i);var x=n(i,2);{var k=I=>{var O=$r();Xe(O,21,()=>e(ct),y=>y.id,(y,d)=>{at(y,()=>({id:`template-${e(d).id}`,name:e(d).name}))}),l(O),Fe(3,O,()=>Ze,()=>({tier:"moderate"})),o(I,O)};W(x,I=>{e($e)&&I(k)})}var M=n(x,2),ue=c(M);nt(ue,{get class(){return _e.row},onclick:()=>r(ke,!0),leading:y=>{Te(y,{get icon(){return bt},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptPicker_edit_label()]),o(y,d)},$$slots:{leading:!0,title:!0}});var ve=n(ue,2);{const I=d=>{Te(d,{get icon(){return Pt},get class(){return _e.icon}})},O=d=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(d,p)};let y=z(()=>!F());nt(ve,{get class(){return _e.row},get disabled(){return e(y)},onclick:()=>{r(ke,!0),r(J,!0)},leading:I,title:O,$$slots:{leading:!0,title:!0}})}l(M),g(I=>nr(_,"aria-label",I),[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(h,$)},T=h=>{var $=jr(),_=U($),i=c(_),f=c(i),x=S(f,!0),k=n(f,2),M=S(k,!0);l(i);var ue=n(i,2);we(ue,{variant:"ghost",size:"sm",onclick:()=>{r(ke,!1),r(J,!1)},children:(y,d)=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptPicker_choose_label()]),o(y,p)},$$slots:{default:!0}}),l(_);var ve=n(_,2);{var I=y=>{St(y,{get repoPath(){return F()},onScriptGenerated:Lt,onClose:()=>r(J,!1)})},O=y=>{var d=Ar(),p=U(d),N=c(p);xt(ht(N,{language:"shell",lineNumbers:!1,get lineWrapping(){return e(Se)},get value(){return C()},set value(A){C(A)}}),A=>r(pe,A,!0),()=>e(pe)),l(p);var X=n(p,2),H=c(X);we(H,{variant:"ghost",size:"sm",get active(){return e(Ie)},get"aria-expanded"(){return e(Ie)},onclick:()=>r(Ie,!e(Ie)),children:(A,oe)=>{Ve();var L=Be();g(ee=>m(L,ee),[()=>u.workspace_setupScriptEditor_variables_label()]),o(A,L)},$$slots:{default:!0}});var V=n(H,2);{var Z=A=>{var oe=Ue(),L=U(oe);Ee(L,()=>At,(ee,te)=>{te(ee,{delayDuration:100,children:(ne,Ce)=>{var Y=Tr();Xe(Y,21,()=>jt,re=>re.name,(re,Ne)=>{var We=Ue(),pt=U(We);Ee(pt,()=>Ct,(Vt,Bt)=>{Bt(Vt,{children:(Ht,Vr)=>{var wt=It(),kt=U(wt);Ee(kt,()=>Et,(ut,vt)=>{vt(ut,{children:(_t,Jt)=>{var Qe=Cr(),ot=S(Qe);g(()=>m(ot,`$${e(Ne).name??""}`)),o(_t,Qe)},$$slots:{default:!0}})});var Yt=n(kt,2);Ee(Yt,()=>Tt,(ut,vt)=>{vt(ut,{side:"top",class:"max-w-xs",children:(_t,Jt)=>{var Qe=Er(),ot=U(Qe),Qt=S(ot,!0),Xt=n(ot,2),Zt=S(Xt,!0);g(()=>{m(Qt,e(Ne).description),m(Zt,e(Ne).example)}),o(_t,Qe)},$$slots:{default:!0}})}),o(Ht,wt)},$$slots:{default:!0}})}),o(re,We)}),l(Y),o(ne,Y)},$$slots:{default:!0}})}),o(A,oe)};W(V,A=>{e(Ie)&&A(Z)})}l(X),o(y,d)};W(ve,y=>{e(J)&&F()?y(I):y(O,-1)})}g(y=>{Oe(f,1,gt(_e.title),"svelte-1yy464i"),m(x,y),m(M,e(ze))},[()=>u.workspace_setupScriptPicker_commands_label()]),o(h,$)};W(w,h=>{e(ke)?h(T,-1):h(j)})}l(a),xt(a,h=>r(Ye,h),()=>e(Ye)),g(()=>Oe(a,1,`${_e.rows} min-w-0`,"svelte-1yy464i")),o(t,a)},Re=t=>{var a=Fr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2),$=S(h,!0),_=n(h,2);{var i=d=>{var p=Ke(),N=c(p);St(N,{get repoPath(){return F()},onScriptGenerated:X=>{r(se,!0),r(s,""),C(X.content),r(E,X.name,!0),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())},onClose:()=>r(J,!1)}),l(p),Fe(3,p,()=>Ze,()=>({tier:"moderate"})),o(d,p)},f=d=>{{let p=z(()=>!F());we(d,{variant:"ghost",size:"sm",class:"w-full justify-start text-subtle",onclick:()=>r(J,!0),get disabled(){return e(p)},children:(N,X)=>{var H=Ir(),V=U(H);Te(V,{get icon(){return Pt},class:"mr-1.5"});var Z=n(V);g(A=>m(Z,` ${A??""}`),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(N,H)},$$slots:{default:!0}})}};W(_,d=>{e(J)&&F()?d(i):d(f,-1)})}l(w);var x=n(w,2);{var k=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=z(()=>e(s)===qe),Z=z(()=>e(s)===qe);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(qe),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(it,"repo-config"),()=>u.workspace_setupScriptEditor_repoConfig_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_repoConfig_label()]),o(d,p)};W(x,d=>{le()&&d(k)})}var M=n(x,2);{var ue=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=z(()=>e(s)===B),Z=z(()=>e(s)===B);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(B),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(e(G).name,e(G).nameSource),()=>u.workspace_setupScriptEditor_lastUsed_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_lastUsed_label()]),o(d,p)};W(M,d=>{e(G)&&d(ue)})}var ve=n(M,2),I=c(ve),O=S(I,!0),y=n(I,2);Xe(y,17,()=>et,d=>d.id,(d,p)=>{{let N=z(()=>e(s)===`template-${e(p).id}`),X=z(()=>e(s)===`template-${e(p).id}`);we(d,{variant:"ghost",truncateLabel:!1,get active(){return e(N)},get"aria-pressed"(){return e(X)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(`template-${e(p).id}`),children:(H,V)=>{var Z=Ur(),A=c(Z),oe=c(A),L=S(oe,!0),ee=n(oe,2);{var te=Y=>{var re=Nr(),Ne=S(re,!0);g(We=>m(Ne,We),[()=>u.workspace_setupScriptEditor_recommended_label()]),o(Y,re)};W(ee,Y=>{e(p).projectType===ie()&&Y(te)})}l(A);var ne=n(A,2),Ce=S(ne,!0);l(Z),g(()=>{m(L,e(p).name),m(Ce,e(p).description)}),o(H,Z)},$$slots:{default:!0}})}}),l(ve),g((d,p,N)=>{m(T,d),m($,p),m(O,N)},[()=>u.workspace_setupScriptEditor_generate_label(),()=>u.workspace_setupScriptEditor_generate_description(),()=>u.workspace_setupScriptEditor_templates_label()]),o(t,a)},De=t=>{var a=Dr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2);Xe(h,21,()=>jt,i=>i.name,(i,f)=>{var x=Ue(),k=U(x);Ee(k,()=>At,(M,ue)=>{ue(M,{delayDuration:100,children:(ve,I)=>{var O=Ue(),y=U(O);Ee(y,()=>Ct,(d,p)=>{p(d,{delayDuration:100,children:(N,X)=>{var H=It(),V=U(H);Ee(V,()=>Et,(A,oe)=>{oe(A,{children:(L,ee)=>{var te=Or(),ne=S(te);g(()=>m(ne,`$${e(f).name??""}`)),o(L,te)},$$slots:{default:!0}})});var Z=n(V,2);Ee(Z,()=>Tt,(A,oe)=>{oe(A,{side:"bottom",class:"max-w-xs z-[200]",children:(L,ee)=>{var te=Rr(),ne=U(te),Ce=S(ne,!0),Y=n(ne,2),re=c(Y),Ne=n(re),We=S(Ne,!0);l(Y),g(pt=>{m(Ce,e(f).description),m(re,`${pt??""} `),m(We,e(f).example)},[()=>u.workspace_setupScriptEditor_example_before()]),o(L,te)},$$slots:{default:!0}})}),o(N,H)},$$slots:{default:!0}})}),o(ve,O)},$$slots:{default:!0}})}),o(i,x)}),l(h),l(w);var $=n(w,2),_=c($);xt(ht(_,{language:"shell",lineNumbers:!0,get lineWrapping(){return e(Se)},get value(){return C()},set value(i){C(i)}}),i=>r(pe,i,!0),()=>e(pe)),l($),g(i=>m(T,i),[()=>u.workspace_setupScriptEditor_variables_label()]),ar("keydown",$,i=>{i.altKey&&i.key==="z"&&(i.preventDefault(),r(Se,!e(Se)))}),o(t,a)},Ge=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Gr(),_=U($),i=c(_);Re(i),l(_);var f=n(_,2),x=c(f);De(x),l(f),Fe(1,_,()=>$t,()=>({tier:"moderate",axis:"x",distance:-8})),Fe(1,f,()=>$t,()=>({tier:"moderate",axis:"x"})),o(h,$)},T=h=>{var $=Mr(),_=U($),i=c(_);Re(i),l(_);var f=n(_,2),x=c(f);De(x),l(f),o(h,$)};W(w,h=>{he()==="workspace"?h(j):h(T,-1)})}l(a),g(()=>Oe(a,1,gt(he()==="workspace"?"setup-workspace-layout":"grid flex-1 min-h-0 min-w-0 grid-cols-1 grid-rows-[minmax(0,1fr)_minmax(0,2fr)] md:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] md:grid-rows-1"),"svelte-1yy464i")),o(t,a)};let F=R(P,"repoPath",7,""),ae=R(P,"repositoryKey",7),me=R(P,"githubUrl",7,null),ie=R(P,"projectType",7,void 0),le=R(P,"repoConfigScript",7,null),C=R(P,"value",15,""),fe=R(P,"expanded",15,!1),ge=R(P,"scriptName",31,()=>rt(u.workspace_setupScriptEditor_custom_name())),ce=R(P,"scriptNameSource",15,"named"),xe=R(P,"isCustomScript",15,!1),be=R(P,"compact",7,!1),Me=R(P,"triggerClass",7,""),Le=R(P,"contentOnly",7,!1),je=R(P,"contentClass",7,""),he=R(P,"presentation",7,"editor"),de=R(P,"onchange",7),J=K(!1),ke=K(rt(mt(()=>xe()))),$e=K(!1),Ie=K(!1),Ye=K(void 0),pe=K(void 0),s=K(""),v=K(!1),E=K(rt(ge())),q=K(rt(ce())),se=K(!1);const B="last-used",G=z(()=>{const t=ae()??F(),a=t?gr(t,me()):void 0;return a?.nameSource==="repo-config"?{...a,name:"Custom",nameSource:"custom"}:a}),Q=z(()=>{const t=new Map;return le()&&t.set(qe,{content:le(),label:it,source:"repo-config"}),e(G)&&t.set(B,{content:e(G).content,label:e(G).name,source:e(G).nameSource}),et.forEach(a=>{t.set(`template-${a.id}`,{content:fr(a),label:a.name,source:"named"})}),t});let Se=K(!0);const ze=z(()=>{if(e(v))return tt(e(E),e(q));if(!e(s))return u.workspace_setupScriptEditor_custom_name();const t=e(Q).get(e(s));return t?tt(t.label,t.source):u.workspace_setupScriptEditor_custom_name()});function ye(t){r(s,t,!0),r(v,!1),r(se,!0);const a=e(Q).get(t);a&&(C(a.content),r(E,a.label,!0),r(q,a.source,!0),de()?.(C())),he()==="picker"?(r(ke,!1),r($e,!1),requestAnimationFrame(()=>e(Ye)?.querySelector("[data-setup-source][aria-pressed=true]")?.focus())):requestAnimationFrame(()=>e(pe)?.focus())}function lt(t){if(e(s)&&e(s)!=="none"){const a=e(Q).get(e(s));a&&r(v,t!==a.content)}else t&&r(v,!0)}const Pe=(()=>{const t=et.find(a=>a.id==="generic");return t?`template-${t.id}`:""})(),st=z(()=>e(v)||!e(s)?"custom":e(s)),Je=z(()=>{const t=[];le()&&t.push({id:qe,name:tt(it,"repo-config")}),e(G)&&t.push({id:B,name:u.workspace_setupScriptEditor_lastUsed_label()});for(const a of et){const w=`template-${a.id}`;(w===Pe||w===e(s))&&t.push({id:w,name:a.name})}return t.push({id:"custom",name:u.workspace_setupScriptPicker_custom_label()}),t}),ct=z(()=>et.filter(t=>!e(Je).some(a=>a.id===`template-${t.id}`)));function Mt(){r(s,""),r(v,!0),r(E,"Custom"),r(q,"custom"),r(J,!1),r(ke,!0),requestAnimationFrame(()=>e(pe)?.focus())}function Lt(t){r(se,!0),r(s,""),C(t.content),r(E,t.name,!0),r(q,"named"),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())}let dt=K(null);ft(()=>{const t=ae()??F();if(t===e(dt))return;const a=e(dt)===null&&(xe()||C().trim().length>0);if(r(dt,t,!0),a){mt(()=>{let T=!1;const h=C().trim();for(const[$,_]of e(Q).entries())if(h===_.content.trim()&&_.source===ce()&&_.label===ge()){r(s,$,!0),r(E,_.label,!0),r(q,_.source,!0),r(v,!1),T=!0;break}T||(r(v,!0),e(E)||(r(E,ge()||u.workspace_setupScriptEditor_custom_name(),!0),r(q,ge()?ce():"named",!0))),r(se,!0)});return}const w=!!le(),j=e(G);if(mt(()=>{if(r(v,!1),r(se,!0),w)r(s,qe,!0),r(E,it,!0),r(q,"repo-config");else if(j)r(s,B),r(E,j.name,!0),r(q,j.nameSource,!0);else if(Pe){r(s,Pe,!0);const T=e(Q).get(Pe);r(E,T?.label||u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}else r(E,u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}),w&&le())C(le()),de()?.(C());else if(j)C(j.content),de()?.(C());else if(Pe){const T=e(Q).get(Pe);T&&(C(T.content),de()?.(C()))}}),ft(()=>{if(e(se)){r(se,!1);return}C()!==void 0&<(C())}),ft(()=>{ge(e(E)),ce(e(q)),xe(e(v))});var zt={get repoPath(){return F()},set repoPath(t=""){F(t),D()},get repositoryKey(){return ae()},set repositoryKey(t){ae(t),D()},get githubUrl(){return me()},set githubUrl(t=null){me(t),D()},get projectType(){return ie()},set projectType(t=void 0){ie(t),D()},get repoConfigScript(){return le()},set repoConfigScript(t=null){le(t),D()},get value(){return C()},set value(t=""){C(t),D()},get expanded(){return fe()},set expanded(t=!1){fe(t),D()},get scriptName(){return ge()},set scriptName(t=u.workspace_setupScriptEditor_custom_name()){ge(t),D()},get scriptNameSource(){return ce()},set scriptNameSource(t="named"){ce(t),D()},get isCustomScript(){return xe()},set isCustomScript(t=!1){xe(t),D()},get compact(){return be()},set compact(t=!1){be(t),D()},get triggerClass(){return Me()},set triggerClass(t=""){Me(t),D()},get contentOnly(){return Le()},set contentOnly(t=!1){Le(t),D()},get contentClass(){return je()},set contentClass(t=""){je(t),D()},get presentation(){return he()},set presentation(t="editor"){he(t),D()},get onchange(){return de()},set onchange(t){de(t),D()},$set:Ot,$on:(t,a)=>Rt(P,t,a)},yt=Ue(),Wt=U(yt);{var qt=t=>{var a=Ue(),w=U(a);{var j=T=>{var h=Ue(),$=U(h);{var _=x=>{var k=Ke(),M=c(k);Ae(M),l(k),g(()=>Oe(k,1,`${je()??""} min-w-0`,"svelte-1yy464i")),o(x,k)},i=x=>{var k=Ke(),M=c(k);Ge(M),l(k),g(()=>Oe(k,1,`${je()??""} flex min-h-0 min-w-0 flex-1 flex-col`,"svelte-1yy464i")),o(x,k)},f=x=>{var k=Ke(),M=c(k);Ge(M),l(k),g(()=>Oe(k,1,`${je()??""} flex flex-col gap-3 flex-1 min-h-0 min-w-0`,"svelte-1yy464i")),Fe(3,k,()=>Ze,()=>({tier:"moderate"})),o(x,k)};W($,x=>{he()==="picker"?x(_):he()==="workspace"?x(i,1):x(f,-1)})}o(T,h)};W(w,T=>{fe()&&T(j)})}o(t,a)},Kt=t=>{var a=qr(),w=U(a),j=c(w);we(j,{variant:"ghost",size:"sm",get class(){return`whitespace-nowrap hover:text-inherit! ${Me()??""}`},onclick:()=>fe(!fe()),children:(i,f)=>{var x=Lr(),k=U(x);Te(k,{get icon(){return bt},size:"xs"});var M=n(k,2),ue=S(M,!0),ve=n(M,2),I=S(ve,!0);g(O=>{m(ue,O),m(I,e(ze))},[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(i,x)},$$slots:{default:!0}});var T=n(j,2);{var h=i=>{var f=zr(),x=c(f);Ge(x),l(f),Fe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W(T,i=>{fe()&&!be()&&i(h)})}l(w);var $=n(w,2);{var _=i=>{var f=Wr(),x=c(f);Ge(x),l(f),Fe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W($,i=>{fe()&&be()&&i(_)})}g(()=>Oe(w,1,gt(be()?"":"w-full"))),o(t,a)};W(Wt,t=>{Le()?t(qt):t(Kt,-1)})}return o(He,yt),Gt(zt)}rr(["keydown"]);export{Kr as default};
|
|
1
|
+
import{t as Ft,bq as R,bo as u,by as Ot,b as Rt}from"./CT36W95j.js";import{bs as Dt,bV as K,br as rt,bk as er,bj as tr,bH as r,a5 as c,aD as e,bS as n,bl as S,bA as l,b_ as g,bO as m,W as o,bn as Gt,aA as D,c9 as z,be as Ve,b$ as Be,aB as b,c5 as mt,ca as ft,a7 as Ue,ay as U,ai as rr,aj as ar,bf as sr}from"./DYhIMPy1.js";import{i as W}from"./Cn5kmzaj.js";import{I as or,g as Xe}from"./Bw5h0b4B.js";import{c as Ee}from"./CgQUkF-P.js";import{I as Fe,D as Ze,h as $t}from"./D-IkFfCX.js";import{f as Oe,c as gt,s as nr}from"./TRV263rQ.js";import{b as xt}from"./BaIAhI85.js";import{F as Te,cM as ir,aq as lr,cF as bt,cW as Pt,c8 as cr}from"./D_rHnmLE.js";import{f as we}from"./D9xzAHI_.js";import"./ClQp3PSY.js";import"./BwYW1dkK.js";import{t as nt}from"./DPevKyzH.js";import{M as dr}from"./C_p41hnk.js";import{e as pr,W as _e}from"./BRadcq2w.js";import{h as Ct,i as Et,g as Tt,P as At}from"./B7lF313M.js";import{C as ht}from"./BcDnMnye.js";import{c as ur}from"./ChTqQfQN.js";import"./DHClt9az.js";import{d as vr}from"./CVc3afbh.js";import{Iv as _r}from"./BmagX6n5.js";import{dC as mr}from"./DpNO08YA.js";import{S as et,k as fr,a as jt}from"./DCZ5UGy-.js";import{R as qe,c as it,m as gr,bE as tt}from"./CE90SUHM.js";import"./DThHr-M9.js";var xr=b('<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>'),br=b('<div class="text-sm text-danger bg-danger-background/10 rounded-md p-3"> </div>'),hr=b('<div class="flex items-center gap-2 text-subtle"><!> <span class="text-sm"> </span></div>'),Sr=b('<div class="p-4 max-h-60 overflow-y-auto overscroll-contain"><!></div>'),yr=b('<div class="p-3 bg-muted/30"><div class="flex items-center justify-between mb-2"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!></div> <p class="text-xs text-subtle mb-2"> </p> <div class="h-32 rounded border border-border overflow-hidden"><!></div></div>'),wr=b('<div class="flex flex-col bg-background border border-border rounded-lg overflow-hidden"><div class="flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span> <!></div> <div class="flex items-center gap-1"><!></div></div> <!> <!></div>');function St(He,P){if(new.target)return Ft({component:St,...He});Dt(P,!0);const at=ur("SetupScriptAgent");let Ae=R(P,"repoPath",7),Re=R(P,"onScriptGenerated",7),De=R(P,"onClose",7),Ge=K(rt(crypto.randomUUID())),F=K(!1),ae=K(null),me=!1,ie=K(null);er(()=>{me=!0,C()}),tr(()=>{me=!1});async function le(){try{const v=mr.select(_r.state).find(E=>E.repositoryPath===Ae()||E.path===Ae()||E.worktreePath===Ae());return v?String(v.id):null}catch{return null}}async function C(){r(F,!0),r(ae,null),r(ie,null);try{const s=await le();if(!me)return;if(!s){r(ae,u.workspace_setupScriptAgent_noWorkspace_error(),!0),r(F,!1);return}const v=await vr.setupScripts.generate(s);if(!me)return;if(!v||!v.script){r(ae,u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1);return}r(ie,{name:v.projectType?u.workspace_setupScriptAgent_projectTypeSetup_label({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedSetup_label(),description:v.projectType?u.workspace_setupScriptAgent_generatedForProject_description({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedFromAnalysis_description(),content:v.script},!0),r(F,!1)}catch(s){if(at.error("Failed to generate setup script",s),!me)return;r(ae,s instanceof Error?s.message:u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1)}}function fe(s){Re()?.(s)}var ge={get repoPath(){return Ae()},set repoPath(s){Ae(s),D()},get onScriptGenerated(){return Re()},set onScriptGenerated(s){Re(s),D()},get onClose(){return De()},set onClose(s){De(s),D()},$set:Ot,$on:(s,v)=>Rt(P,s,v)},ce=wr(),xe=c(ce),be=c(xe),Me=c(be);pr(Me,{variant:"standard",get agentId(){return e(Ge)}});var Le=n(Me,2),je=S(Le,!0),he=n(Le,2);{var de=s=>{var v=xr();o(s,v)};W(he,s=>{e(F)&&s(de)})}l(be);var J=n(be,2),ke=c(J);{let s=z(()=>u.workspace_setupScriptAgent_close_ariaLabel());we(ke,{variant:"ghost-light",size:"icon-sm",iconOnly:!0,get"aria-label"(){return e(s)},get onclick(){return De()},children:(v,E)=>{Te(v,{get icon(){return ir}})},$$slots:{default:!0}})}l(J),l(xe);var $e=n(xe,2);{var Ie=s=>{var v=Sr(),E=c(v);{var q=B=>{var G=br(),Q=S(G,!0);g(()=>m(Q,e(ae))),o(B,G)},se=B=>{var G=hr(),Q=c(G);or(Q,{size:16,class:"text-primary"});var Se=n(Q,2),ze=S(Se,!0);l(G),g(ye=>m(ze,ye),[()=>u.workspace_setupScriptAgent_analyzing_label()]),o(B,G)};W(E,B=>{e(ae)?B(q):B(se,-1)})}l(v),o(s,v)};W($e,s=>{(e(ae)||e(F))&&s(Ie)})}var Ye=n($e,2);{var pe=s=>{var v=yr(),E=c(v),q=c(E),se=c(q);Te(se,{get icon(){return lr},class:"text-green-500"});var B=n(se,2),G=S(B,!0);l(q);var Q=n(q,2);we(Q,{variant:"primary",size:"sm",onclick:()=>fe(e(ie)),class:"h-7",children:(Pe,st)=>{Ve();var Je=Be();g(ct=>m(Je,ct),[()=>u.workspace_setupScriptAgent_createScript_label()]),o(Pe,Je)},$$slots:{default:!0}}),l(E);var Se=n(E,2),ze=S(Se,!0),ye=n(Se,2),lt=c(ye);ht(lt,{get value(){return e(ie).content},language:"shell",readOnly:!0,lineNumbers:!1}),l(ye),l(v),g(()=>{m(G,e(ie).name),m(ze,e(ie).description)}),o(s,v)};W(Ye,s=>{e(ie)&&!e(F)&&s(pe)})}return l(ce),g(s=>m(je,s),[()=>u.workspace_setupScriptAgent_title()]),o(He,ce),Gt(ge)}var kr=b('<span class="block truncate"> </span>'),$r=b("<div></div>"),Pr=b('<div role="group"></div> <div class="mt-2 border-t border-border pt-2"><!></div> <!> <div class="mt-2 border-t border-border pt-2"><!> <!></div>',1),Cr=b('<code class="type-caption text-muted-foreground"> </code>'),Er=b('<p> </p> <code class="type-caption"> </code>',1),It=b("<!> <!>",1),Tr=b('<div class="mt-2 flex flex-wrap gap-2 px-2"></div>'),Ar=b('<div class="h-44 min-w-0 overflow-hidden rounded-(--radius-medium) border border-border bg-background py-2"><!></div> <div class="mt-2 px-1"><!> <!></div>',1),jr=b('<div class="mb-2 flex items-center justify-between gap-3 px-2"><div class="min-w-0"><h3> </h3> <p class="type-caption truncate text-muted-foreground"> </p></div> <!></div> <!>',1),Ke=b("<div><!></div>"),Ir=b("<!> ",1),Nt=b('<div class="min-w-0 w-full"><span class="text-sm"> </span> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ut=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>'),Nr=b('<span class="type-caption px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium shrink-0"> </span>'),Ur=b('<div class="min-w-0 w-full"><div class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="text-sm"> </span> <!></div> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Fr=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <p class="text-xs text-subtle px-2 mb-2"> </p> <!></div> <!> <!> <div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>',1),Or=b('<code class="type-caption px-1.5 py-0.5 rounded bg-background/80 text-muted-foreground font-mono cursor-pointer hover:bg-background hover:text-foreground transition-colors"> </code>'),Rr=b('<p class="text-xs"> </p> <p class="mt-1 text-xs text-muted-foreground"> <code class="type-caption"> </code></p>',1),Dr=b('<div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-1.5 bg-muted/30 shrink-0"><span class="type-caption font-medium text-muted-foreground shrink-0"> </span> <div class="flex flex-wrap gap-1.5"></div></div> <div class="flex-1 min-h-0 min-w-0 overflow-hidden py-3 bg-background"><!></div>',1),Gr=b('<div class="flex min-h-0 min-w-0 flex-col overflow-y-auto"><!></div> <div class="flex min-h-0 min-w-0 flex-col"><!></div>',1),Mr=b('<div class="flex flex-col min-h-0 min-w-0 overflow-y-auto p-2 md:pr-4"><!></div> <div class="flex flex-col min-w-0 min-h-0"><!></div>',1),Lr=b('<!> <span class="text-sm font-normal text-subtle"> </span> <span class="text-subtle font-normal"> </span>',1),zr=b('<div class="mt-1 pl-7 space-y-3"><!></div>'),Wr=b('<div class="space-y-3"><!></div>'),qr=b("<div><!> <!></div> <!>",1);function Kr(He,P){if(new.target)return Ft({component:Kr,...He});Dt(P,!0);const at=(t,a=sr)=>{{const w=_=>{Te(_,{get icon(){return bt},get class(){return _e.icon}})},j=_=>{var i=kr(),f=S(i,!0);g(()=>m(f,a().name)),o(_,i)},T=_=>{{let i=z(()=>e(st)===a().id?"checked":"empty");dr(_,{get state(){return e(i)}})}};let h=z(()=>e(st)===a().id),$=z(()=>e(st)===a().id);nt(t,{get selected(){return e(h)},get"aria-pressed"(){return e($)},get"data-setup-source"(){return a().id},get class(){return _e.row},onclick:()=>a().id==="custom"?Mt():ye(a().id),leading:w,title:j,trailing:T,$$slots:{leading:!0,title:!0,trailing:!0}})}},Ae=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Pr(),_=U($);Xe(_,21,()=>e(Je),I=>I.id,(I,O)=>{at(I,()=>e(O))}),l(_);var i=n(_,2),f=c(i);nt(f,{get"aria-expanded"(){return e($e)},get class(){return _e.row},onclick:()=>r($e,!e($e)),leading:y=>{Te(y,{get icon(){return cr},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptEditor_templates_label()]),o(y,d)},$$slots:{leading:!0,title:!0}}),l(i);var x=n(i,2);{var k=I=>{var O=$r();Xe(O,21,()=>e(ct),y=>y.id,(y,d)=>{at(y,()=>({id:`template-${e(d).id}`,name:e(d).name}))}),l(O),Fe(3,O,()=>Ze,()=>({tier:"moderate"})),o(I,O)};W(x,I=>{e($e)&&I(k)})}var M=n(x,2),ue=c(M);nt(ue,{get class(){return _e.row},onclick:()=>r(ke,!0),leading:y=>{Te(y,{get icon(){return bt},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptPicker_edit_label()]),o(y,d)},$$slots:{leading:!0,title:!0}});var ve=n(ue,2);{const I=d=>{Te(d,{get icon(){return Pt},get class(){return _e.icon}})},O=d=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(d,p)};let y=z(()=>!F());nt(ve,{get class(){return _e.row},get disabled(){return e(y)},onclick:()=>{r(ke,!0),r(J,!0)},leading:I,title:O,$$slots:{leading:!0,title:!0}})}l(M),g(I=>nr(_,"aria-label",I),[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(h,$)},T=h=>{var $=jr(),_=U($),i=c(_),f=c(i),x=S(f,!0),k=n(f,2),M=S(k,!0);l(i);var ue=n(i,2);we(ue,{variant:"ghost",size:"sm",onclick:()=>{r(ke,!1),r(J,!1)},children:(y,d)=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptPicker_choose_label()]),o(y,p)},$$slots:{default:!0}}),l(_);var ve=n(_,2);{var I=y=>{St(y,{get repoPath(){return F()},onScriptGenerated:Lt,onClose:()=>r(J,!1)})},O=y=>{var d=Ar(),p=U(d),N=c(p);xt(ht(N,{language:"shell",lineNumbers:!1,get lineWrapping(){return e(Se)},get value(){return C()},set value(A){C(A)}}),A=>r(pe,A,!0),()=>e(pe)),l(p);var X=n(p,2),H=c(X);we(H,{variant:"ghost",size:"sm",get active(){return e(Ie)},get"aria-expanded"(){return e(Ie)},onclick:()=>r(Ie,!e(Ie)),children:(A,oe)=>{Ve();var L=Be();g(ee=>m(L,ee),[()=>u.workspace_setupScriptEditor_variables_label()]),o(A,L)},$$slots:{default:!0}});var V=n(H,2);{var Z=A=>{var oe=Ue(),L=U(oe);Ee(L,()=>At,(ee,te)=>{te(ee,{delayDuration:100,children:(ne,Ce)=>{var Y=Tr();Xe(Y,21,()=>jt,re=>re.name,(re,Ne)=>{var We=Ue(),pt=U(We);Ee(pt,()=>Ct,(Vt,Bt)=>{Bt(Vt,{children:(Ht,Vr)=>{var wt=It(),kt=U(wt);Ee(kt,()=>Et,(ut,vt)=>{vt(ut,{children:(_t,Jt)=>{var Qe=Cr(),ot=S(Qe);g(()=>m(ot,`$${e(Ne).name??""}`)),o(_t,Qe)},$$slots:{default:!0}})});var Yt=n(kt,2);Ee(Yt,()=>Tt,(ut,vt)=>{vt(ut,{side:"top",class:"max-w-xs",children:(_t,Jt)=>{var Qe=Er(),ot=U(Qe),Qt=S(ot,!0),Xt=n(ot,2),Zt=S(Xt,!0);g(()=>{m(Qt,e(Ne).description),m(Zt,e(Ne).example)}),o(_t,Qe)},$$slots:{default:!0}})}),o(Ht,wt)},$$slots:{default:!0}})}),o(re,We)}),l(Y),o(ne,Y)},$$slots:{default:!0}})}),o(A,oe)};W(V,A=>{e(Ie)&&A(Z)})}l(X),o(y,d)};W(ve,y=>{e(J)&&F()?y(I):y(O,-1)})}g(y=>{Oe(f,1,gt(_e.title),"svelte-1yy464i"),m(x,y),m(M,e(ze))},[()=>u.workspace_setupScriptPicker_commands_label()]),o(h,$)};W(w,h=>{e(ke)?h(T,-1):h(j)})}l(a),xt(a,h=>r(Ye,h),()=>e(Ye)),g(()=>Oe(a,1,`${_e.rows} min-w-0`,"svelte-1yy464i")),o(t,a)},Re=t=>{var a=Fr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2),$=S(h,!0),_=n(h,2);{var i=d=>{var p=Ke(),N=c(p);St(N,{get repoPath(){return F()},onScriptGenerated:X=>{r(se,!0),r(s,""),C(X.content),r(E,X.name,!0),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())},onClose:()=>r(J,!1)}),l(p),Fe(3,p,()=>Ze,()=>({tier:"moderate"})),o(d,p)},f=d=>{{let p=z(()=>!F());we(d,{variant:"ghost",size:"sm",class:"w-full justify-start text-subtle",onclick:()=>r(J,!0),get disabled(){return e(p)},children:(N,X)=>{var H=Ir(),V=U(H);Te(V,{get icon(){return Pt},class:"mr-1.5"});var Z=n(V);g(A=>m(Z,` ${A??""}`),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(N,H)},$$slots:{default:!0}})}};W(_,d=>{e(J)&&F()?d(i):d(f,-1)})}l(w);var x=n(w,2);{var k=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=z(()=>e(s)===qe),Z=z(()=>e(s)===qe);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(qe),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(it,"repo-config"),()=>u.workspace_setupScriptEditor_repoConfig_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_repoConfig_label()]),o(d,p)};W(x,d=>{le()&&d(k)})}var M=n(x,2);{var ue=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=z(()=>e(s)===B),Z=z(()=>e(s)===B);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(B),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(e(G).name,e(G).nameSource),()=>u.workspace_setupScriptEditor_lastUsed_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_lastUsed_label()]),o(d,p)};W(M,d=>{e(G)&&d(ue)})}var ve=n(M,2),I=c(ve),O=S(I,!0),y=n(I,2);Xe(y,17,()=>et,d=>d.id,(d,p)=>{{let N=z(()=>e(s)===`template-${e(p).id}`),X=z(()=>e(s)===`template-${e(p).id}`);we(d,{variant:"ghost",truncateLabel:!1,get active(){return e(N)},get"aria-pressed"(){return e(X)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(`template-${e(p).id}`),children:(H,V)=>{var Z=Ur(),A=c(Z),oe=c(A),L=S(oe,!0),ee=n(oe,2);{var te=Y=>{var re=Nr(),Ne=S(re,!0);g(We=>m(Ne,We),[()=>u.workspace_setupScriptEditor_recommended_label()]),o(Y,re)};W(ee,Y=>{e(p).projectType===ie()&&Y(te)})}l(A);var ne=n(A,2),Ce=S(ne,!0);l(Z),g(()=>{m(L,e(p).name),m(Ce,e(p).description)}),o(H,Z)},$$slots:{default:!0}})}}),l(ve),g((d,p,N)=>{m(T,d),m($,p),m(O,N)},[()=>u.workspace_setupScriptEditor_generate_label(),()=>u.workspace_setupScriptEditor_generate_description(),()=>u.workspace_setupScriptEditor_templates_label()]),o(t,a)},De=t=>{var a=Dr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2);Xe(h,21,()=>jt,i=>i.name,(i,f)=>{var x=Ue(),k=U(x);Ee(k,()=>At,(M,ue)=>{ue(M,{delayDuration:100,children:(ve,I)=>{var O=Ue(),y=U(O);Ee(y,()=>Ct,(d,p)=>{p(d,{delayDuration:100,children:(N,X)=>{var H=It(),V=U(H);Ee(V,()=>Et,(A,oe)=>{oe(A,{children:(L,ee)=>{var te=Or(),ne=S(te);g(()=>m(ne,`$${e(f).name??""}`)),o(L,te)},$$slots:{default:!0}})});var Z=n(V,2);Ee(Z,()=>Tt,(A,oe)=>{oe(A,{side:"bottom",class:"max-w-xs z-[200]",children:(L,ee)=>{var te=Rr(),ne=U(te),Ce=S(ne,!0),Y=n(ne,2),re=c(Y),Ne=n(re),We=S(Ne,!0);l(Y),g(pt=>{m(Ce,e(f).description),m(re,`${pt??""} `),m(We,e(f).example)},[()=>u.workspace_setupScriptEditor_example_before()]),o(L,te)},$$slots:{default:!0}})}),o(N,H)},$$slots:{default:!0}})}),o(ve,O)},$$slots:{default:!0}})}),o(i,x)}),l(h),l(w);var $=n(w,2),_=c($);xt(ht(_,{language:"shell",lineNumbers:!0,get lineWrapping(){return e(Se)},get value(){return C()},set value(i){C(i)}}),i=>r(pe,i,!0),()=>e(pe)),l($),g(i=>m(T,i),[()=>u.workspace_setupScriptEditor_variables_label()]),ar("keydown",$,i=>{i.altKey&&i.key==="z"&&(i.preventDefault(),r(Se,!e(Se)))}),o(t,a)},Ge=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Gr(),_=U($),i=c(_);Re(i),l(_);var f=n(_,2),x=c(f);De(x),l(f),Fe(1,_,()=>$t,()=>({tier:"moderate",axis:"x",distance:-8})),Fe(1,f,()=>$t,()=>({tier:"moderate",axis:"x"})),o(h,$)},T=h=>{var $=Mr(),_=U($),i=c(_);Re(i),l(_);var f=n(_,2),x=c(f);De(x),l(f),o(h,$)};W(w,h=>{he()==="workspace"?h(j):h(T,-1)})}l(a),g(()=>Oe(a,1,gt(he()==="workspace"?"setup-workspace-layout":"grid flex-1 min-h-0 min-w-0 grid-cols-1 grid-rows-[minmax(0,1fr)_minmax(0,2fr)] md:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] md:grid-rows-1"),"svelte-1yy464i")),o(t,a)};let F=R(P,"repoPath",7,""),ae=R(P,"repositoryKey",7),me=R(P,"githubUrl",7,null),ie=R(P,"projectType",7,void 0),le=R(P,"repoConfigScript",7,null),C=R(P,"value",15,""),fe=R(P,"expanded",15,!1),ge=R(P,"scriptName",31,()=>rt(u.workspace_setupScriptEditor_custom_name())),ce=R(P,"scriptNameSource",15,"named"),xe=R(P,"isCustomScript",15,!1),be=R(P,"compact",7,!1),Me=R(P,"triggerClass",7,""),Le=R(P,"contentOnly",7,!1),je=R(P,"contentClass",7,""),he=R(P,"presentation",7,"editor"),de=R(P,"onchange",7),J=K(!1),ke=K(rt(mt(()=>xe()))),$e=K(!1),Ie=K(!1),Ye=K(void 0),pe=K(void 0),s=K(""),v=K(!1),E=K(rt(ge())),q=K(rt(ce())),se=K(!1);const B="last-used",G=z(()=>{const t=ae()??F(),a=t?gr(t,me()):void 0;return a?.nameSource==="repo-config"?{...a,name:"Custom",nameSource:"custom"}:a}),Q=z(()=>{const t=new Map;return le()&&t.set(qe,{content:le(),label:it,source:"repo-config"}),e(G)&&t.set(B,{content:e(G).content,label:e(G).name,source:e(G).nameSource}),et.forEach(a=>{t.set(`template-${a.id}`,{content:fr(a),label:a.name,source:"named"})}),t});let Se=K(!0);const ze=z(()=>{if(e(v))return tt(e(E),e(q));if(!e(s))return u.workspace_setupScriptEditor_custom_name();const t=e(Q).get(e(s));return t?tt(t.label,t.source):u.workspace_setupScriptEditor_custom_name()});function ye(t){r(s,t,!0),r(v,!1),r(se,!0);const a=e(Q).get(t);a&&(C(a.content),r(E,a.label,!0),r(q,a.source,!0),de()?.(C())),he()==="picker"?(r(ke,!1),r($e,!1),requestAnimationFrame(()=>e(Ye)?.querySelector("[data-setup-source][aria-pressed=true]")?.focus())):requestAnimationFrame(()=>e(pe)?.focus())}function lt(t){if(e(s)&&e(s)!=="none"){const a=e(Q).get(e(s));a&&r(v,t!==a.content)}else t&&r(v,!0)}const Pe=(()=>{const t=et.find(a=>a.id==="generic");return t?`template-${t.id}`:""})(),st=z(()=>e(v)||!e(s)?"custom":e(s)),Je=z(()=>{const t=[];le()&&t.push({id:qe,name:tt(it,"repo-config")}),e(G)&&t.push({id:B,name:u.workspace_setupScriptEditor_lastUsed_label()});for(const a of et){const w=`template-${a.id}`;(w===Pe||w===e(s))&&t.push({id:w,name:a.name})}return t.push({id:"custom",name:u.workspace_setupScriptPicker_custom_label()}),t}),ct=z(()=>et.filter(t=>!e(Je).some(a=>a.id===`template-${t.id}`)));function Mt(){r(s,""),r(v,!0),r(E,"Custom"),r(q,"custom"),r(J,!1),r(ke,!0),requestAnimationFrame(()=>e(pe)?.focus())}function Lt(t){r(se,!0),r(s,""),C(t.content),r(E,t.name,!0),r(q,"named"),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())}let dt=K(null);ft(()=>{const t=ae()??F();if(t===e(dt))return;const a=e(dt)===null&&(xe()||C().trim().length>0);if(r(dt,t,!0),a){mt(()=>{let T=!1;const h=C().trim();for(const[$,_]of e(Q).entries())if(h===_.content.trim()&&_.source===ce()&&_.label===ge()){r(s,$,!0),r(E,_.label,!0),r(q,_.source,!0),r(v,!1),T=!0;break}T||(r(v,!0),e(E)||(r(E,ge()||u.workspace_setupScriptEditor_custom_name(),!0),r(q,ge()?ce():"named",!0))),r(se,!0)});return}const w=!!le(),j=e(G);if(mt(()=>{if(r(v,!1),r(se,!0),w)r(s,qe,!0),r(E,it,!0),r(q,"repo-config");else if(j)r(s,B),r(E,j.name,!0),r(q,j.nameSource,!0);else if(Pe){r(s,Pe,!0);const T=e(Q).get(Pe);r(E,T?.label||u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}else r(E,u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}),w&&le())C(le()),de()?.(C());else if(j)C(j.content),de()?.(C());else if(Pe){const T=e(Q).get(Pe);T&&(C(T.content),de()?.(C()))}}),ft(()=>{if(e(se)){r(se,!1);return}C()!==void 0&<(C())}),ft(()=>{ge(e(E)),ce(e(q)),xe(e(v))});var zt={get repoPath(){return F()},set repoPath(t=""){F(t),D()},get repositoryKey(){return ae()},set repositoryKey(t){ae(t),D()},get githubUrl(){return me()},set githubUrl(t=null){me(t),D()},get projectType(){return ie()},set projectType(t=void 0){ie(t),D()},get repoConfigScript(){return le()},set repoConfigScript(t=null){le(t),D()},get value(){return C()},set value(t=""){C(t),D()},get expanded(){return fe()},set expanded(t=!1){fe(t),D()},get scriptName(){return ge()},set scriptName(t=u.workspace_setupScriptEditor_custom_name()){ge(t),D()},get scriptNameSource(){return ce()},set scriptNameSource(t="named"){ce(t),D()},get isCustomScript(){return xe()},set isCustomScript(t=!1){xe(t),D()},get compact(){return be()},set compact(t=!1){be(t),D()},get triggerClass(){return Me()},set triggerClass(t=""){Me(t),D()},get contentOnly(){return Le()},set contentOnly(t=!1){Le(t),D()},get contentClass(){return je()},set contentClass(t=""){je(t),D()},get presentation(){return he()},set presentation(t="editor"){he(t),D()},get onchange(){return de()},set onchange(t){de(t),D()},$set:Ot,$on:(t,a)=>Rt(P,t,a)},yt=Ue(),Wt=U(yt);{var qt=t=>{var a=Ue(),w=U(a);{var j=T=>{var h=Ue(),$=U(h);{var _=x=>{var k=Ke(),M=c(k);Ae(M),l(k),g(()=>Oe(k,1,`${je()??""} min-w-0`,"svelte-1yy464i")),o(x,k)},i=x=>{var k=Ke(),M=c(k);Ge(M),l(k),g(()=>Oe(k,1,`${je()??""} flex min-h-0 min-w-0 flex-1 flex-col`,"svelte-1yy464i")),o(x,k)},f=x=>{var k=Ke(),M=c(k);Ge(M),l(k),g(()=>Oe(k,1,`${je()??""} flex flex-col gap-3 flex-1 min-h-0 min-w-0`,"svelte-1yy464i")),Fe(3,k,()=>Ze,()=>({tier:"moderate"})),o(x,k)};W($,x=>{he()==="picker"?x(_):he()==="workspace"?x(i,1):x(f,-1)})}o(T,h)};W(w,T=>{fe()&&T(j)})}o(t,a)},Kt=t=>{var a=qr(),w=U(a),j=c(w);we(j,{variant:"ghost",size:"sm",get class(){return`whitespace-nowrap hover:text-inherit! ${Me()??""}`},onclick:()=>fe(!fe()),children:(i,f)=>{var x=Lr(),k=U(x);Te(k,{get icon(){return bt},size:"xs"});var M=n(k,2),ue=S(M,!0),ve=n(M,2),I=S(ve,!0);g(O=>{m(ue,O),m(I,e(ze))},[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(i,x)},$$slots:{default:!0}});var T=n(j,2);{var h=i=>{var f=zr(),x=c(f);Ge(x),l(f),Fe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W(T,i=>{fe()&&!be()&&i(h)})}l(w);var $=n(w,2);{var _=i=>{var f=Wr(),x=c(f);Ge(x),l(f),Fe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W($,i=>{fe()&&be()&&i(_)})}g(()=>Oe(w,1,gt(be()?"":"w-full"))),o(t,a)};W(Wt,t=>{Le()?t(qt):t(Kt,-1)})}return o(He,yt),Gt(zt)}rr(["keydown"]);export{Kr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./BdWqymET.js";import{aE as l}from"./DYhIMPy1.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BdWqymET.js";import{aE as l}from"./DYhIMPy1.js";import{g as c}from"./DbxGcVeS.js";import{p as g}from"./Y7H0Q9T9.js";import{d as I}from"./B0Z-1lwJ.js";import{dC as f}from"./DpNO08YA.js";import{Bx as u,i as y,Iv as o,gT as A,v0 as m,v1 as N,v3 as b}from"./BmagX6n5.js";import{g as W,n as h}from"./D4bOZmAv.js";import{S as D,a as R,n as E}from"./Bb5T6-Tv.js";import{n as O,o as v}from"./DgOx26JX.js";const k="intent:onboarding-skip:v1";function P(e){return u.getItem(h(k,e))==="1"}function re(e){P(e)||u.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(f.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function C(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function $(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function B(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function M(){r.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function G(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function H(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=w();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function w(e){return f.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=w();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function x(e){const a=w(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:M,findSourcePanelId:$,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:x,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:H,navigateToSpec:B,navigateToTask:G,navigateToTerminal:C},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,H as d,G as e,$ as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DYhIMPy1.js";import{p as De}from"./CcJbyRBU.js";import"./CwxaNadx.js";import{D as Oe,E as we,c as We,F as ke}from"./Zbow58Yt.js";import{s as qe}from"./C4rFO2Hf.js";import{i as _e}from"./Ct1WxQS6.js";function Ze(t,i={}){const l=(i.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const v=i.duration??160,y=v<=80?"fast":v<=160?"moderate":"slow";return Oe(t,{axis:i.axis,tier:y},{direction:"in"})}function $e(){return qe.get("enableComponentTransitions")}const Ae={request(){},settle(){}},O=new WeakMap,He=2,ze=2e3,re=2,Pe=1e3,Ve=3e3;function et(t,i){let l=i.enabled??!0,o=i.follow,v=i.onFollowChange,y=i.onScrollStateChange,T=i.threshold??100,w=!1,h=null,u=null,m=null,x=null,d=null,b=null,M=null,F=null,S=0,R=null,g=!1,$=null;const L=new Set,W=new Map,P=new WeakSet,k=new Map,A=document.createElement("div");A.dataset.followBottomAnchor="",A.setAttribute("aria-hidden","true"),A.style.cssText=`height:1px;${i.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function G(e){e===A||k.has(e)||(k.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function V(e){const n=k.get(e);n!==void 0&&(e.style.overflowAnchor=n,k.delete(e))}function I(e){if(e)for(const r of t.children)r instanceof HTMLElement&&G(r);else for(const r of k.keys())V(r);const n=e?"auto":"none";A.style.overflowAnchor!==n&&(A.style.overflowAnchor=n),e?(A.parentElement!==t||A.nextSibling)&&t.append(A):A.remove()}function H(){I(o)}function C(){A.remove();for(const e of k.keys())V(e)}function Y(e){P.add(e),x?.observe(e)}function j(){d!==null&&cancelAnimationFrame(d),F!==null&&cancelAnimationFrame(F),d=null,F=null,S=0,R=null}function c(){return Math.max(0,t.scrollHeight-t.clientHeight)}function D(){return $??=getComputedStyle(t).overflowAnchor!=="none",$}function q(){const e=c(),n=t.scrollTop,r=h??void 0;h={maximum:e,scrollTop:n};const f={maximum:e,scrollTop:n,previous:r};return p.observe(f),f}function U(e=q()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),h={maximum:e.maximum,scrollTop:e.maximum},{maximum:e.maximum,scrollTop:e.maximum}}function N(e=q()){const n=Math.max(0,e.maximum-e.scrollTop),r=n<=T;u?.distanceFromBottom===n&&u.isAtBottom===r&&u.isFollowing===o||(u={distanceFromBottom:n,isAtBottom:r,isFollowing:o},y?.({distanceFromBottom:n,isAtBottom:r,isFollowing:o}))}function _(e,n=!0){if(p.cancel(),!l){o=e;return}const r=o!==e;r&&(o=e,I(e)),r&&n&&v?.(e),e||j(),N()}function ee(e,n=!0){if(!L.delete(e))return;const r=(W.get(e.element)??1)-1;r>0?W.set(e.element,r):(W.delete(e.element),P.has(e.element)||x?.unobserve?.(e.element)),S=0,n&&X()}function te(e=!0){if(L.size===0)return;const n=performance.now();for(const r of L)(!t.contains(r.element)||n>=r.expiresAt)&&ee(r,e)}function oe(){if(d=null,g||!l||!o)return;if(te(!1),L.size>0){d=requestAnimationFrame(oe);return}const e=U(),{maximum:n}=e;N(e),n===R?S+=1:(S=0,R=n),S<He&&(d=requestAnimationFrame(oe))}function X(){g||!l||!o||d!==null||(d=requestAnimationFrame(oe))}function z(e=!0){if(g||!l||!o)return;const n=U(),{maximum:r}=n;N(n),S=0,R=r,e&&X()}function ne(){M===null&&(M=requestAnimationFrame(()=>{M=null,!(g||!l)&&N()}))}function Te(){if(F=null,g||!l)return;let e=q();const n=e.scrollTop!==e.maximum;e=U(e),(n||e.maximum!==R||L.size>0)&&(S=0,R=e.maximum,X()),N(e)}function Fe(){if(!(g||!l)){if(o){if(d!==null||F!==null)return;F=requestAnimationFrame(Te);return}ne()}}function Se(){if(!(g||!l)){if(o){z(F===null);return}ne()}}const K={followAndScroll(){_(!0),z()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(te(),L.size>0):!1,beforeMutation(e,n){if(g||!l||!o)return Ae;const r={element:e,expiresAt:performance.now()+(n.maxHoldMs??ze)};L.add(r);const f=W.get(e)??0;return W.set(e,f+1),f===0&&!P.has(e)&&x?.observe(e),S=0,X(),{request(){!L.has(r)||g||(D()?X():z())},settle(){if(!(g||!L.has(r))){if(D()){ee(r);return}ee(r,!1),z()}}}}};function Le(){let e=null,n=null,r=null,f;function Q(s){return!e||s&&e.wheel!==s?!1:!e.wheel?.defaultPrevented&&performance.now()<e.expiresAt}function Me(s,a){if(s.maximum-s.scrollTop<=re)return!0;const B=s.previous;return a&&B!==void 0&&B.maximum<s.maximum&&B.maximum-s.scrollTop<=re}function Z(s,a){return Me(s,a)?(K.followAndScroll(),!0):!1}function ge(s){const a=q();return Q(s)&&Z(a,!0)}function Re(s){f=s,r===null&&(r=requestAnimationFrame(()=>{r=null;const a=f;f=void 0,!(g||!l||!Q(a))&&(ge(a)||N())}))}function Ne(s,a){const B=Math.max(0,a.maximum-a.scrollTop);if(a.maximum!==s.maximum)return s.maximum=a.maximum,s.distance=B,s.movedTowardBottom=!1,!1;const ve=B-s.distance;return s.distance=B,ve>0?(s.movedTowardBottom=!1,_(!1),!0):ve===0?!1:(s.movedTowardBottom=!0,Z(a,!1))}function Ce(s){if(o||!e)return!1;const a=s.previous;return a&&s.scrollTop<a.scrollTop?(e=null,!1):(!a||s.scrollTop>a.scrollTop)&&Q()&&Z(s,!0)}return{isDragging:()=>n!==null,start(s,a){const B=s==="touch"?Ve:Pe;e={wheel:a,expiresAt:performance.now()+B}},grab(s){if(e=null,!s){n=null;return}const a=c();n={maximum:a,distance:Math.max(0,a-t.scrollTop),movedTowardBottom:!1}},move(s){return n?Ne(n,s):Ce(s)},land(s,a){if(s==="frame"){Re(a);return}if(s==="scrollend"){Q()&&ge(),e=null;return}if(!n)return;const{movedTowardBottom:B}=n;n=null,B&&Z(q(),!1)||N()},observe(s){const a=s.previous;e&&a!==void 0&&s.maximum<a.maximum&&s.maximum-s.scrollTop<=re&&(e=null)},cancel(){e=null},requestBottom(){K.followAndScroll()},reset(){e=null,n=null,f=void 0,r!==null&&cancelAnimationFrame(r),r=null}}}const p=Le();function ie(e){e.deltaY<0?_(!1):e.deltaY>0&&(p.start("wheel",e),p.land("frame",e))}function le(e){e.target===t?p.land("scrollend"):p.cancel()}let se=0;function ae(e){p.cancel(),w=!1,se=e.touches[0]?.clientY??0}function ue(e){const n=e.touches[0]?.clientY??0,r=se-n;w=r>0,r<0&&_(!1)}function ce(){w&&p.start("touch"),p.land("frame")}function fe(e){if(p.cancel(),["ArrowUp","PageUp","Home"].includes(e.key))_(!1);else if(["ArrowDown","PageDown","End"].includes(e.key)){if(e.target instanceof Element&&_e(e.target))return;if(e.key==="End"){p.requestBottom();return}p.start("keyboard"),p.land("frame")}}function Be(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const r=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(r.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=r.left+f:e.clientX>=r.right-f}function me(){const e=p.isDragging();if(!e&&o&&d!==null)return;let n=q();p.move(n)||(o&&!e&&(n=U(n)),N(n))}function de(e){p.grab(Be(e))}function J(){p.land("release")}function Ee(){if(!m){m=new MutationObserver(e=>{let n=!1;for(const r of e)if(r.type==="childList"){for(const f of r.removedNodes)n=!0,f instanceof HTMLElement&&V(f);for(const f of r.addedNodes)f instanceof HTMLElement&&f!==A&&x&&(Y(f),o&&f.parentElement===t&&G(f))}n&&te(),I(o),Fe()}),m.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),x=new ResizeObserver(Se),Y(t);for(const e of t.children)e instanceof HTMLElement&&e!==A&&Y(e)}}function be(){m?.disconnect(),m=null,x?.disconnect(),x=null}function pe(e=!1){if(!l||g)return;if(O.set(t,K),t.addEventListener("scroll",me,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",ie,{passive:!0}),t.addEventListener("touchstart",ae,{passive:!0}),t.addEventListener("touchmove",ue,{passive:!0}),t.addEventListener("touchend",ce,{passive:!0}),t.addEventListener("keydown",fe),t.addEventListener("pointerdown",de,{passive:!0}),window.addEventListener("pointerup",J,{passive:!0}),window.addEventListener("pointercancel",J,{passive:!0}),H(),Ee(),e){b=requestAnimationFrame(()=>{b=null,!(g||!l)&&(D(),o?z():N())});return}D();let n=q();o&&(n=U(n),R=n.maximum),N(n)}function he(){p.reset(),w=!1,h=null,L.clear(),W.clear(),j(),b!==null&&cancelAnimationFrame(b),b=null,M!==null&&cancelAnimationFrame(M),M=null,u=null,$=null,O.get(t)===K&&O.delete(t),be(),C(),t.removeEventListener("scroll",me),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",ie),t.removeEventListener("touchstart",ae),t.removeEventListener("touchmove",ue),t.removeEventListener("touchend",ce),t.removeEventListener("keydown",fe),t.removeEventListener("pointerdown",de),window.removeEventListener("pointerup",J),window.removeEventListener("pointercancel",J)}return pe(!0),{update(e){v=e.onFollowChange,y=e.onScrollStateChange,T=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,pe(!0);return}l?e.follow&&!o?(_(!0,!1),z()):!e.follow&&o?_(!1,!1):b===null&&ne():o=e.follow},destroy(){g=!0,he()}}}function tt(t){return O.get(t)?.isFollowing()??!1}function ot(t){return O.get(t)?.isNativeScrollAnchoringActive()??!1}function nt(t){return O.get(t)?.hasActiveMutation()??!1}function xe(t,i={}){let l=t;for(;l;){const o=O.get(l);if(o)return o.beforeMutation(t,i);l=l.parentElement}return Ae}function Ie(t){const{scrollTop:i,scrollHeight:l,clientHeight:o}=t;return l-i-o}function Ye(t,i=100){return Ie(t)<=i}function Ue(t,i=!1){t.scrollTo({top:t.scrollHeight,behavior:i?"smooth":"auto"})}function rt(t){const i=O.get(t);if(i){i.followAndScroll();return}Ue(t)}function it(t,i,l=150,o){const v=t();if(!v)return;const y=v.scrollTop,T=performance.now();function w(u){return 1-Math.pow(1-u,3)}function h(u){const m=t();if(!m)return;const x=u-T,d=Math.min(x/l,1),b=typeof i=="function"?i(m):i;m.scrollTop=y+(b-y)*w(d),d<1?requestAnimationFrame(h):o?.(m)}requestAnimationFrame(h)}function lt(t,i="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),v=Ye(t,100);if(v&&O.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:v};const y=t.querySelectorAll(i);let T=null,w=0,h;for(const u of y){const m=u.getBoundingClientRect();if(m.top>=o.bottom)break;if(m.top>=o.top){T||(T=u,w=m.top-o.top);const x=u.getAttribute("data-message-id");if(x){h={id:x,offsetFromViewport:m.top-o.top};break}}}return{element:T,offsetFromViewport:w,scrollTop:l,isNearBottom:v,...h?{message:h}:{}}}function ye(t,i){if(i.message){const l=t.querySelector(`[data-message-id="${CSS.escape(i.message.id)}"]`);if(l)return{element:l,offsetFromViewport:i.message.offsetFromViewport}}return i.element?.isConnected?{element:i.element,offsetFromViewport:i.offsetFromViewport}:null}function st(t,i){return ye(t,i)!==null}function at(t,i){const l=ye(t,i);if(l){const{element:o,offsetFromViewport:v}=l,y=t.getBoundingClientRect(),h=o.getBoundingClientRect().top-y.top-v;Math.abs(h)>5&&(t.scrollTop+=h)}}function E(t,i){const l=Number.parseFloat(String(t[i]));return Number.isFinite(l)?l:0}function ut(t,i={},l={}){const o=t,y={maxHoldMs:we[i.tier??"moderate"].settleMs*2+500};let T=xe(o,y);const w=()=>{T?.settle(),T=null},h=()=>{T??=xe(o,y)};if(!$e()||De())return w(),{duration:0};const u=getComputedStyle(o),m=i.axis??"y",x=o.getBoundingClientRect(),d=m==="y"?E(u,"height")||x.height:E(u,"width")||x.width;if(!Number.isFinite(d)||d<=0)return w(),{duration:0};const b=E(u,"opacity")||1,M=i.tier??"moderate",F=we[M],S=l.direction==="out",R=typeof u.getPropertyValue=="function"?S?We(o,{tier:M}):ke(o,{tier:M}):{duration:S?F.exit.duration:F.settleMs,easing:F.exit.easing},g=R.duration??(S?F.exit.duration:F.settleMs),$=i.y??-4,L=E(u,"paddingTop"),W=E(u,"paddingBottom"),P=E(u,"marginTop"),k=E(u,"marginBottom"),A=E(u,"paddingLeft"),G=E(u,"paddingRight"),V=E(u,"marginLeft"),I=E(u,"marginRight");let H=null,C=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const Y=(c,D)=>{o.style.overflow="hidden",m==="y"?(o.style.height=`${c*d}px`,o.style.paddingTop=`${c*L}px`,o.style.paddingBottom=`${c*W}px`,o.style.marginTop=`${c*P}px`,o.style.marginBottom=`${c*k}px`):(o.style.width=`${c*d}px`,o.style.paddingLeft=`${c*A}px`,o.style.paddingRight=`${c*G}px`,o.style.marginLeft=`${c*V}px`,o.style.marginRight=`${c*I}px`),o.style.opacity=`${c*b}`,o.style.transform=m==="y"?`translateY(${$*D}px)`:`translateX(${$*D}px)`},j=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:g,easing:R.easing,tick:(c,D)=>{if(l.direction==="both"&&(H===null?c<1&&(C="outro"):c<H?(h(),C="outro"):c>H&&(h(),C="intro")),H=c,c===1&&C!=="outro"){j(),w(),C="idle";return}Y(c,D),T?.request(),c===0&&C==="outro"&&(w(),C="idle")}}}export{it as a,$e as b,xe as c,st as d,lt as e,et as f,rt as g,nt as h,tt as i,ot as j,Ze as k,Ue as l,at as r,ut as s};
|
|
1
|
+
import"./DYhIMPy1.js";import{p as De}from"./Bw5h0b4B.js";import"./TRV263rQ.js";import{D as Oe,E as we,c as We,F as ke}from"./D-IkFfCX.js";import{s as qe}from"./Baz0g_kI.js";import{i as _e}from"./Ct1WxQS6.js";function Ze(t,i={}){const l=(i.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const v=i.duration??160,y=v<=80?"fast":v<=160?"moderate":"slow";return Oe(t,{axis:i.axis,tier:y},{direction:"in"})}function $e(){return qe.get("enableComponentTransitions")}const Ae={request(){},settle(){}},O=new WeakMap,He=2,ze=2e3,re=2,Pe=1e3,Ve=3e3;function et(t,i){let l=i.enabled??!0,o=i.follow,v=i.onFollowChange,y=i.onScrollStateChange,T=i.threshold??100,w=!1,h=null,u=null,m=null,x=null,d=null,b=null,M=null,F=null,S=0,R=null,g=!1,$=null;const L=new Set,W=new Map,P=new WeakSet,k=new Map,A=document.createElement("div");A.dataset.followBottomAnchor="",A.setAttribute("aria-hidden","true"),A.style.cssText=`height:1px;${i.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function G(e){e===A||k.has(e)||(k.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function V(e){const n=k.get(e);n!==void 0&&(e.style.overflowAnchor=n,k.delete(e))}function I(e){if(e)for(const r of t.children)r instanceof HTMLElement&&G(r);else for(const r of k.keys())V(r);const n=e?"auto":"none";A.style.overflowAnchor!==n&&(A.style.overflowAnchor=n),e?(A.parentElement!==t||A.nextSibling)&&t.append(A):A.remove()}function H(){I(o)}function C(){A.remove();for(const e of k.keys())V(e)}function Y(e){P.add(e),x?.observe(e)}function j(){d!==null&&cancelAnimationFrame(d),F!==null&&cancelAnimationFrame(F),d=null,F=null,S=0,R=null}function c(){return Math.max(0,t.scrollHeight-t.clientHeight)}function D(){return $??=getComputedStyle(t).overflowAnchor!=="none",$}function q(){const e=c(),n=t.scrollTop,r=h??void 0;h={maximum:e,scrollTop:n};const f={maximum:e,scrollTop:n,previous:r};return p.observe(f),f}function U(e=q()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),h={maximum:e.maximum,scrollTop:e.maximum},{maximum:e.maximum,scrollTop:e.maximum}}function N(e=q()){const n=Math.max(0,e.maximum-e.scrollTop),r=n<=T;u?.distanceFromBottom===n&&u.isAtBottom===r&&u.isFollowing===o||(u={distanceFromBottom:n,isAtBottom:r,isFollowing:o},y?.({distanceFromBottom:n,isAtBottom:r,isFollowing:o}))}function _(e,n=!0){if(p.cancel(),!l){o=e;return}const r=o!==e;r&&(o=e,I(e)),r&&n&&v?.(e),e||j(),N()}function ee(e,n=!0){if(!L.delete(e))return;const r=(W.get(e.element)??1)-1;r>0?W.set(e.element,r):(W.delete(e.element),P.has(e.element)||x?.unobserve?.(e.element)),S=0,n&&X()}function te(e=!0){if(L.size===0)return;const n=performance.now();for(const r of L)(!t.contains(r.element)||n>=r.expiresAt)&&ee(r,e)}function oe(){if(d=null,g||!l||!o)return;if(te(!1),L.size>0){d=requestAnimationFrame(oe);return}const e=U(),{maximum:n}=e;N(e),n===R?S+=1:(S=0,R=n),S<He&&(d=requestAnimationFrame(oe))}function X(){g||!l||!o||d!==null||(d=requestAnimationFrame(oe))}function z(e=!0){if(g||!l||!o)return;const n=U(),{maximum:r}=n;N(n),S=0,R=r,e&&X()}function ne(){M===null&&(M=requestAnimationFrame(()=>{M=null,!(g||!l)&&N()}))}function Te(){if(F=null,g||!l)return;let e=q();const n=e.scrollTop!==e.maximum;e=U(e),(n||e.maximum!==R||L.size>0)&&(S=0,R=e.maximum,X()),N(e)}function Fe(){if(!(g||!l)){if(o){if(d!==null||F!==null)return;F=requestAnimationFrame(Te);return}ne()}}function Se(){if(!(g||!l)){if(o){z(F===null);return}ne()}}const K={followAndScroll(){_(!0),z()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(te(),L.size>0):!1,beforeMutation(e,n){if(g||!l||!o)return Ae;const r={element:e,expiresAt:performance.now()+(n.maxHoldMs??ze)};L.add(r);const f=W.get(e)??0;return W.set(e,f+1),f===0&&!P.has(e)&&x?.observe(e),S=0,X(),{request(){!L.has(r)||g||(D()?X():z())},settle(){if(!(g||!L.has(r))){if(D()){ee(r);return}ee(r,!1),z()}}}}};function Le(){let e=null,n=null,r=null,f;function Q(s){return!e||s&&e.wheel!==s?!1:!e.wheel?.defaultPrevented&&performance.now()<e.expiresAt}function Me(s,a){if(s.maximum-s.scrollTop<=re)return!0;const B=s.previous;return a&&B!==void 0&&B.maximum<s.maximum&&B.maximum-s.scrollTop<=re}function Z(s,a){return Me(s,a)?(K.followAndScroll(),!0):!1}function ge(s){const a=q();return Q(s)&&Z(a,!0)}function Re(s){f=s,r===null&&(r=requestAnimationFrame(()=>{r=null;const a=f;f=void 0,!(g||!l||!Q(a))&&(ge(a)||N())}))}function Ne(s,a){const B=Math.max(0,a.maximum-a.scrollTop);if(a.maximum!==s.maximum)return s.maximum=a.maximum,s.distance=B,s.movedTowardBottom=!1,!1;const ve=B-s.distance;return s.distance=B,ve>0?(s.movedTowardBottom=!1,_(!1),!0):ve===0?!1:(s.movedTowardBottom=!0,Z(a,!1))}function Ce(s){if(o||!e)return!1;const a=s.previous;return a&&s.scrollTop<a.scrollTop?(e=null,!1):(!a||s.scrollTop>a.scrollTop)&&Q()&&Z(s,!0)}return{isDragging:()=>n!==null,start(s,a){const B=s==="touch"?Ve:Pe;e={wheel:a,expiresAt:performance.now()+B}},grab(s){if(e=null,!s){n=null;return}const a=c();n={maximum:a,distance:Math.max(0,a-t.scrollTop),movedTowardBottom:!1}},move(s){return n?Ne(n,s):Ce(s)},land(s,a){if(s==="frame"){Re(a);return}if(s==="scrollend"){Q()&&ge(),e=null;return}if(!n)return;const{movedTowardBottom:B}=n;n=null,B&&Z(q(),!1)||N()},observe(s){const a=s.previous;e&&a!==void 0&&s.maximum<a.maximum&&s.maximum-s.scrollTop<=re&&(e=null)},cancel(){e=null},requestBottom(){K.followAndScroll()},reset(){e=null,n=null,f=void 0,r!==null&&cancelAnimationFrame(r),r=null}}}const p=Le();function ie(e){e.deltaY<0?_(!1):e.deltaY>0&&(p.start("wheel",e),p.land("frame",e))}function le(e){e.target===t?p.land("scrollend"):p.cancel()}let se=0;function ae(e){p.cancel(),w=!1,se=e.touches[0]?.clientY??0}function ue(e){const n=e.touches[0]?.clientY??0,r=se-n;w=r>0,r<0&&_(!1)}function ce(){w&&p.start("touch"),p.land("frame")}function fe(e){if(p.cancel(),["ArrowUp","PageUp","Home"].includes(e.key))_(!1);else if(["ArrowDown","PageDown","End"].includes(e.key)){if(e.target instanceof Element&&_e(e.target))return;if(e.key==="End"){p.requestBottom();return}p.start("keyboard"),p.land("frame")}}function Be(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const r=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(r.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=r.left+f:e.clientX>=r.right-f}function me(){const e=p.isDragging();if(!e&&o&&d!==null)return;let n=q();p.move(n)||(o&&!e&&(n=U(n)),N(n))}function de(e){p.grab(Be(e))}function J(){p.land("release")}function Ee(){if(!m){m=new MutationObserver(e=>{let n=!1;for(const r of e)if(r.type==="childList"){for(const f of r.removedNodes)n=!0,f instanceof HTMLElement&&V(f);for(const f of r.addedNodes)f instanceof HTMLElement&&f!==A&&x&&(Y(f),o&&f.parentElement===t&&G(f))}n&&te(),I(o),Fe()}),m.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),x=new ResizeObserver(Se),Y(t);for(const e of t.children)e instanceof HTMLElement&&e!==A&&Y(e)}}function be(){m?.disconnect(),m=null,x?.disconnect(),x=null}function pe(e=!1){if(!l||g)return;if(O.set(t,K),t.addEventListener("scroll",me,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",ie,{passive:!0}),t.addEventListener("touchstart",ae,{passive:!0}),t.addEventListener("touchmove",ue,{passive:!0}),t.addEventListener("touchend",ce,{passive:!0}),t.addEventListener("keydown",fe),t.addEventListener("pointerdown",de,{passive:!0}),window.addEventListener("pointerup",J,{passive:!0}),window.addEventListener("pointercancel",J,{passive:!0}),H(),Ee(),e){b=requestAnimationFrame(()=>{b=null,!(g||!l)&&(D(),o?z():N())});return}D();let n=q();o&&(n=U(n),R=n.maximum),N(n)}function he(){p.reset(),w=!1,h=null,L.clear(),W.clear(),j(),b!==null&&cancelAnimationFrame(b),b=null,M!==null&&cancelAnimationFrame(M),M=null,u=null,$=null,O.get(t)===K&&O.delete(t),be(),C(),t.removeEventListener("scroll",me),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",ie),t.removeEventListener("touchstart",ae),t.removeEventListener("touchmove",ue),t.removeEventListener("touchend",ce),t.removeEventListener("keydown",fe),t.removeEventListener("pointerdown",de),window.removeEventListener("pointerup",J),window.removeEventListener("pointercancel",J)}return pe(!0),{update(e){v=e.onFollowChange,y=e.onScrollStateChange,T=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,pe(!0);return}l?e.follow&&!o?(_(!0,!1),z()):!e.follow&&o?_(!1,!1):b===null&&ne():o=e.follow},destroy(){g=!0,he()}}}function tt(t){return O.get(t)?.isFollowing()??!1}function ot(t){return O.get(t)?.isNativeScrollAnchoringActive()??!1}function nt(t){return O.get(t)?.hasActiveMutation()??!1}function xe(t,i={}){let l=t;for(;l;){const o=O.get(l);if(o)return o.beforeMutation(t,i);l=l.parentElement}return Ae}function Ie(t){const{scrollTop:i,scrollHeight:l,clientHeight:o}=t;return l-i-o}function Ye(t,i=100){return Ie(t)<=i}function Ue(t,i=!1){t.scrollTo({top:t.scrollHeight,behavior:i?"smooth":"auto"})}function rt(t){const i=O.get(t);if(i){i.followAndScroll();return}Ue(t)}function it(t,i,l=150,o){const v=t();if(!v)return;const y=v.scrollTop,T=performance.now();function w(u){return 1-Math.pow(1-u,3)}function h(u){const m=t();if(!m)return;const x=u-T,d=Math.min(x/l,1),b=typeof i=="function"?i(m):i;m.scrollTop=y+(b-y)*w(d),d<1?requestAnimationFrame(h):o?.(m)}requestAnimationFrame(h)}function lt(t,i="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),v=Ye(t,100);if(v&&O.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:v};const y=t.querySelectorAll(i);let T=null,w=0,h;for(const u of y){const m=u.getBoundingClientRect();if(m.top>=o.bottom)break;if(m.top>=o.top){T||(T=u,w=m.top-o.top);const x=u.getAttribute("data-message-id");if(x){h={id:x,offsetFromViewport:m.top-o.top};break}}}return{element:T,offsetFromViewport:w,scrollTop:l,isNearBottom:v,...h?{message:h}:{}}}function ye(t,i){if(i.message){const l=t.querySelector(`[data-message-id="${CSS.escape(i.message.id)}"]`);if(l)return{element:l,offsetFromViewport:i.message.offsetFromViewport}}return i.element?.isConnected?{element:i.element,offsetFromViewport:i.offsetFromViewport}:null}function st(t,i){return ye(t,i)!==null}function at(t,i){const l=ye(t,i);if(l){const{element:o,offsetFromViewport:v}=l,y=t.getBoundingClientRect(),h=o.getBoundingClientRect().top-y.top-v;Math.abs(h)>5&&(t.scrollTop+=h)}}function E(t,i){const l=Number.parseFloat(String(t[i]));return Number.isFinite(l)?l:0}function ut(t,i={},l={}){const o=t,y={maxHoldMs:we[i.tier??"moderate"].settleMs*2+500};let T=xe(o,y);const w=()=>{T?.settle(),T=null},h=()=>{T??=xe(o,y)};if(!$e()||De())return w(),{duration:0};const u=getComputedStyle(o),m=i.axis??"y",x=o.getBoundingClientRect(),d=m==="y"?E(u,"height")||x.height:E(u,"width")||x.width;if(!Number.isFinite(d)||d<=0)return w(),{duration:0};const b=E(u,"opacity")||1,M=i.tier??"moderate",F=we[M],S=l.direction==="out",R=typeof u.getPropertyValue=="function"?S?We(o,{tier:M}):ke(o,{tier:M}):{duration:S?F.exit.duration:F.settleMs,easing:F.exit.easing},g=R.duration??(S?F.exit.duration:F.settleMs),$=i.y??-4,L=E(u,"paddingTop"),W=E(u,"paddingBottom"),P=E(u,"marginTop"),k=E(u,"marginBottom"),A=E(u,"paddingLeft"),G=E(u,"paddingRight"),V=E(u,"marginLeft"),I=E(u,"marginRight");let H=null,C=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const Y=(c,D)=>{o.style.overflow="hidden",m==="y"?(o.style.height=`${c*d}px`,o.style.paddingTop=`${c*L}px`,o.style.paddingBottom=`${c*W}px`,o.style.marginTop=`${c*P}px`,o.style.marginBottom=`${c*k}px`):(o.style.width=`${c*d}px`,o.style.paddingLeft=`${c*A}px`,o.style.paddingRight=`${c*G}px`,o.style.marginLeft=`${c*V}px`,o.style.marginRight=`${c*I}px`),o.style.opacity=`${c*b}`,o.style.transform=m==="y"?`translateY(${$*D}px)`:`translateX(${$*D}px)`},j=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:g,easing:R.easing,tick:(c,D)=>{if(l.direction==="both"&&(H===null?c<1&&(C="outro"):c<H?(h(),C="outro"):c>H&&(h(),C="intro")),H=c,c===1&&C!=="outro"){j(),w(),C="idle";return}Y(c,D),T?.request(),c===0&&C==="outro"&&(w(),C="idle")}}}export{it as a,$e as b,xe as c,st as d,lt as e,et as f,rt as g,nt as h,tt as i,ot as j,Ze as k,Ue as l,at as r,ut as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Iv as S,Bx as o,aP as d,aQ as l,aR as a}from"./
|
|
1
|
+
import{Iv as S,Bx as o,aP as d,aQ as l,aR as a}from"./BmagX6n5.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./d5dkOEAr.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},R=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return R(r),x(t),r};export{m as initAppStore,S as store};
|