@intent-hq/web 2.306.0 → 2.306.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Kg93yoGm.js → -K3sHbfD.js} +1 -1
  3. package/web/app/immutable/chunks/{KGFmy0fB.js → 0HA-zoBe.js} +1 -1
  4. package/web/app/immutable/chunks/{29dNc4rH.js → 0Nbop-Gi.js} +1 -1
  5. package/web/app/immutable/chunks/{D37NtYaH.js → 0hAdbvCp.js} +1 -1
  6. package/web/app/immutable/chunks/{DqYNVW4f.js → 1aiNROX6.js} +1 -1
  7. package/web/app/immutable/chunks/{Cd6oHz3J.js → 2OgXQdTg.js} +2 -2
  8. package/web/app/immutable/chunks/3MYqLfq_.js +271 -0
  9. package/web/app/immutable/chunks/{CD79Z9v-.js → 3RXdGE8s.js} +1 -1
  10. package/web/app/immutable/chunks/{C_1Gq9jA.js → 42IGKw40.js} +6 -6
  11. package/web/app/immutable/chunks/{s2w2kRY0.js → 75Mjj_Cx.js} +1 -1
  12. package/web/app/immutable/chunks/{RUd8eW7z.js → B-pTdxG4.js} +1 -1
  13. package/web/app/immutable/chunks/{CmXITn5s.js → B1iyvpX6.js} +1 -1
  14. package/web/app/immutable/chunks/{Cm3C9uYy.js → B2qNjN_9.js} +1 -1
  15. package/web/app/immutable/chunks/{GwJ0slBw.js → B2ug7y40.js} +1 -1
  16. package/web/app/immutable/chunks/{CGVPV3tv.js → B3-l5a7t.js} +1 -1
  17. package/web/app/immutable/chunks/{Cxvm5h8B.js → B4lg_Ax7.js} +1 -1
  18. package/web/app/immutable/chunks/{jRj_rYu9.js → B7gjFXSc.js} +1 -1
  19. package/web/app/immutable/chunks/{74tu-skL.js → B9OQrvrS.js} +1 -1
  20. package/web/app/immutable/chunks/{DSooNw98.js → BAQwZ6tH.js} +1 -1
  21. package/web/app/immutable/chunks/{wgOokBrD.js → BCnyxzRd.js} +1 -1
  22. package/web/app/immutable/chunks/{_Yj0U2JL.js → BDCpfZ88.js} +1 -1
  23. package/web/app/immutable/chunks/{B_0TLBM6.js → BDIeayOD.js} +1 -1
  24. package/web/app/immutable/chunks/{Czbl-pwg.js → BEnZG6kV.js} +3 -3
  25. package/web/app/immutable/chunks/{C5st-KLS.js → BGIVyURR.js} +1 -1
  26. package/web/app/immutable/chunks/{Dn_URCm9.js → BHbAr34k.js} +1 -1
  27. package/web/app/immutable/chunks/{BQ0kJvqK.js → BHf163Hp.js} +1 -1
  28. package/web/app/immutable/chunks/{6YnmgLlF.js → BI0pA2tO.js} +1 -1
  29. package/web/app/immutable/chunks/{4NvrtXiy.js → BIOT9N5A.js} +1 -1
  30. package/web/app/immutable/chunks/{DtMVJy-g.js → BJ0avpLy.js} +1 -1
  31. package/web/app/immutable/chunks/{s57WPGBK.js → BJcmRhm6.js} +1 -1
  32. package/web/app/immutable/chunks/{COMCZIt7.js → BKDPRUCm.js} +1 -1
  33. package/web/app/immutable/chunks/{DsZCr7hJ.js → BNVqbH8q.js} +1 -1
  34. package/web/app/immutable/chunks/{WC6N15NU.js → BONAG0Zz.js} +1 -1
  35. package/web/app/immutable/chunks/{CZjTL3U8.js → BOm8F3gI.js} +1 -1
  36. package/web/app/immutable/chunks/{C-CnX7vG.js → BRHyGztV.js} +1 -1
  37. package/web/app/immutable/chunks/{jm36PzUz.js → BRnQTv1M.js} +1 -1
  38. package/web/app/immutable/chunks/{DEdCYnC-.js → BS4DuXZu.js} +1 -1
  39. package/web/app/immutable/chunks/{8DeZuS5J.js → BV8oXBag.js} +1 -1
  40. package/web/app/immutable/chunks/{CcioTZY2.js → BVF7zxAh.js} +1 -1
  41. package/web/app/immutable/chunks/{CZ6oPQCg.js → BVPsIjUM.js} +2 -2
  42. package/web/app/immutable/chunks/{D5uQkARh.js → BWFN-ppd.js} +1 -1
  43. package/web/app/immutable/chunks/{DB7lxxBT.js → BY7rSI16.js} +1 -1
  44. package/web/app/immutable/chunks/{ByR8YQwU.js → BYFI8VKx.js} +1 -1
  45. package/web/app/immutable/chunks/{DsMnRsze.js → BYrFf537.js} +1 -1
  46. package/web/app/immutable/chunks/{DVUg9Xe-.js → B_BCGMxl.js} +1 -1
  47. package/web/app/immutable/chunks/{CBkRcZee.js → B_tVrT-3.js} +1 -1
  48. package/web/app/immutable/chunks/{oqglbldc.js → BbZxBrDb.js} +1 -1
  49. package/web/app/immutable/chunks/{DxubiDMb.js → Be8SKg4r.js} +1 -1
  50. package/web/app/immutable/chunks/{Dzbq5nTn.js → Bib1Ld0w.js} +1 -1
  51. package/web/app/immutable/chunks/{D42j1SEd.js → BidEZr_U.js} +7 -7
  52. package/web/app/immutable/chunks/{C7c4gpSt.js → BjyIUK2N.js} +1 -1
  53. package/web/app/immutable/chunks/{DdawHd0B.js → BkX9Ps_M.js} +1 -1
  54. package/web/app/immutable/chunks/{Bx3S0HWY.js → BnM-ma7F.js} +1 -1
  55. package/web/app/immutable/chunks/{D4UCqYDH.js → BqQ3Q4fn.js} +1 -1
  56. package/web/app/immutable/chunks/{CKv9mVym.js → BrmDKYa_.js} +1 -1
  57. package/web/app/immutable/chunks/{23wXkEF6.js → BsfO9-p0.js} +1 -1
  58. package/web/app/immutable/chunks/{DtZuCbAU.js → BuNzpDog.js} +1 -1
  59. package/web/app/immutable/chunks/{8y_1poY4.js → BumG-Dux.js} +1 -1
  60. package/web/app/immutable/chunks/{yovLUjuK.js → Byc4c_PD.js} +1 -1
  61. package/web/app/immutable/chunks/{COdu0yKt.js → C-YgnCug.js} +1 -1
  62. package/web/app/immutable/chunks/{jxyETF7R.js → C0fLk--m.js} +2 -2
  63. package/web/app/immutable/chunks/{JGMDPc6g.js → C0zMyiSJ.js} +2 -2
  64. package/web/app/immutable/chunks/{BlfeiOgv.js → C28n7Phb.js} +1 -1
  65. package/web/app/immutable/chunks/{B0IFzh9X.js → C40RaU5h.js} +1 -1
  66. package/web/app/immutable/chunks/{D74E14DS.js → C4dLiyBe.js} +1 -1
  67. package/web/app/immutable/chunks/{cEzKLidW.js → C5m72sFm.js} +1 -1
  68. package/web/app/immutable/chunks/{BrZUKM39.js → C6K10lBI.js} +1 -1
  69. package/web/app/immutable/chunks/{BgIz4XO-.js → C9Yj84IB.js} +1 -1
  70. package/web/app/immutable/chunks/{CRqt9_Cc.js → C9b_UldH.js} +3 -3
  71. package/web/app/immutable/chunks/{DHlmoCrx.js → CA87WQ97.js} +1 -1
  72. package/web/app/immutable/chunks/CBey_WvY.js +1 -0
  73. package/web/app/immutable/chunks/{DvTwdSdS.js → CCmyu--d.js} +1 -1
  74. package/web/app/immutable/chunks/{C_h8CQJe.js → CGO73jr0.js} +1 -1
  75. package/web/app/immutable/chunks/{CsONrL_3.js → CIgF-_ah.js} +4 -4
  76. package/web/app/immutable/chunks/{CYgNglb2.js → CJ1yzJ2P.js} +1 -1
  77. package/web/app/immutable/chunks/{DsvOgwbj.js → CLMqzZ5J.js} +1 -1
  78. package/web/app/immutable/chunks/{BCxldDM0.js → CNkhSLlP.js} +1 -1
  79. package/web/app/immutable/chunks/{6M4H96s5.js → CO-R7h4z.js} +1 -1
  80. package/web/app/immutable/chunks/{DLXWRCqM.js → CO_WqJhg.js} +1 -1
  81. package/web/app/immutable/chunks/{DnyD1zCB.js → CPMKvYRM.js} +1 -1
  82. package/web/app/immutable/chunks/{euo7acDN.js → CPuUl-lT.js} +1 -1
  83. package/web/app/immutable/chunks/{DBNBDsSD.js → CPw4HgKM.js} +1 -1
  84. package/web/app/immutable/chunks/{SZyF-ndo.js → CQihckew.js} +1 -1
  85. package/web/app/immutable/chunks/{B7zCWgA3.js → CR1rdNrg.js} +1 -1
  86. package/web/app/immutable/chunks/{bSSFocjw.js → CRSNBWlx.js} +1 -1
  87. package/web/app/immutable/chunks/{BkodBoBP.js → CRu4158N.js} +1 -1
  88. package/web/app/immutable/chunks/{DbVTI_EH.js → CUo3zxTn.js} +1 -1
  89. package/web/app/immutable/chunks/{BdLaCRsE.js → CVcsFKHY.js} +1 -1
  90. package/web/app/immutable/chunks/{D66P93Qq.js → CX5RDv3-.js} +1 -1
  91. package/web/app/immutable/chunks/{BCAzyHA9.js → CXa3rz5Q.js} +1 -1
  92. package/web/app/immutable/chunks/{DXeEXuP4.js → CXlZTXlW.js} +4 -4
  93. package/web/app/immutable/chunks/{CwSg4UxO.js → CYDYhvZF.js} +1 -1
  94. package/web/app/immutable/chunks/{BirDtNb4.js → CZTlVo5m.js} +1 -1
  95. package/web/app/immutable/chunks/{CQaoUoUg.js → C_ChNDuQ.js} +1 -1
  96. package/web/app/immutable/chunks/{DEShheo_.js → Ce_r6kn0.js} +1 -1
  97. package/web/app/immutable/chunks/{BpxJrnxe.js → CegsXivu.js} +1 -1
  98. package/web/app/immutable/chunks/{DPwoTber.js → CfFdOG65.js} +1 -1
  99. package/web/app/immutable/chunks/{DY1WFAZY.js → CgVFypp-.js} +1 -1
  100. package/web/app/immutable/chunks/{BMQ6HPvn.js → ChjpbDRF.js} +2 -2
  101. package/web/app/immutable/chunks/{mHeOJdNu.js → CjhLgs0z.js} +1 -1
  102. package/web/app/immutable/chunks/{DkPBKTmm.js → Cl0LHNCY.js} +1 -1
  103. package/web/app/immutable/chunks/{DLvxwNno.js → CloidBrq.js} +1 -1
  104. package/web/app/immutable/chunks/{CE-MJwR9.js → CmHp2c79.js} +1 -1
  105. package/web/app/immutable/chunks/{DW1sz-bZ.js → CpFCp0wR.js} +2 -2
  106. package/web/app/immutable/chunks/{DslISh5T.js → CrR64OQD.js} +1 -1
  107. package/web/app/immutable/chunks/{Cg1pgOTR.js → CrU2g8Lw.js} +1 -1
  108. package/web/app/immutable/chunks/{BeBP_kmD.js → CtrXPyDb.js} +1 -1
  109. package/web/app/immutable/chunks/{CzT0HixX.js → CvAiCjNI.js} +1 -1
  110. package/web/app/immutable/chunks/{DwZ9TxIq.js → Cvx6WR8e.js} +1 -1
  111. package/web/app/immutable/chunks/{BhjnDHlN.js → CxJmMAMJ.js} +1 -1
  112. package/web/app/immutable/chunks/{Ox03GGv7.js → D29m4edw.js} +1 -1
  113. package/web/app/immutable/chunks/{2J4vETqe.js → D4B4SY0N.js} +1 -1
  114. package/web/app/immutable/chunks/{CQ_EHFkc.js → D4TTKIXY.js} +1 -1
  115. package/web/app/immutable/chunks/{vS0l1m3h.js → D4yLKhN-.js} +1 -1
  116. package/web/app/immutable/chunks/{BCMNYaLU.js → D6IJGuYW.js} +1 -1
  117. package/web/app/immutable/chunks/{DdZhZWDI.js → D86k9p2-.js} +1 -1
  118. package/web/app/immutable/chunks/{R6JDi5-3.js → D8D1idBX.js} +1 -1
  119. package/web/app/immutable/chunks/{CdNCT23e.js → DF2glIxL.js} +1 -1
  120. package/web/app/immutable/chunks/{2TPGsu2N.js → DF__1SnN.js} +1 -1
  121. package/web/app/immutable/chunks/{DW78ZPhK.js → DHBcRJcB.js} +6 -6
  122. package/web/app/immutable/chunks/{8N2GfGQr.js → DOAK5m3C.js} +1 -1
  123. package/web/app/immutable/chunks/{Ccq1KQi4.js → DPZAEbfI.js} +1 -1
  124. package/web/app/immutable/chunks/{Cu1lndig.js → DQS4KQBf.js} +1 -1
  125. package/web/app/immutable/chunks/{Dl_roi9s.js → DSHmhxH8.js} +1 -1
  126. package/web/app/immutable/chunks/{C2d4nvNu.js → DVdwcMiY.js} +1 -1
  127. package/web/app/immutable/chunks/{CBPhYVeW.js → DWHMODuY.js} +1 -1
  128. package/web/app/immutable/chunks/{p9Nr9xHJ.js → DYOQcDOJ.js} +1 -1
  129. package/web/app/immutable/chunks/{CL9vM6dm.js → DZHoUGI1.js} +1 -1
  130. package/web/app/immutable/chunks/{CT4-zPqk.js → DZpNEtTX.js} +4 -4
  131. package/web/app/immutable/chunks/{DcSLjWiT.js → D_2-9QO1.js} +1 -1
  132. package/web/app/immutable/chunks/{CiYjHHrV.js → Da2v32Gp.js} +1 -1
  133. package/web/app/immutable/chunks/{DCTKd-xk.js → DcurLbc0.js} +1 -1
  134. package/web/app/immutable/chunks/{CUM9GfEm.js → Der702Q6.js} +1 -1
  135. package/web/app/immutable/chunks/{mzekf2UR.js → DhlcxDcm.js} +1 -1
  136. package/web/app/immutable/chunks/{Dfl2Nbow.js → DjGuyNgW.js} +1 -1
  137. package/web/app/immutable/chunks/{CIDuqdfA.js → DjT1S-Kc.js} +1 -1
  138. package/web/app/immutable/chunks/{vCHxiCpS.js → Dk5yx39p.js} +1 -1
  139. package/web/app/immutable/chunks/{BFBas2DV.js → DkKpEnZx.js} +1 -1
  140. package/web/app/immutable/chunks/{Don1ihlc.js → DnBH3z_J.js} +1 -1
  141. package/web/app/immutable/chunks/{C-8hh9QU.js → DpQR-S-c.js} +2 -2
  142. package/web/app/immutable/chunks/{DwxSPPxX.js → DreNRaSX.js} +1 -1
  143. package/web/app/immutable/chunks/{CTPvEbLw.js → Ds2C0KCr.js} +1 -1
  144. package/web/app/immutable/chunks/{BB3pPOoG.js → DsIvSToZ.js} +1 -1
  145. package/web/app/immutable/chunks/{CqlOXgsM.js → DsKcKI-9.js} +1 -1
  146. package/web/app/immutable/chunks/{EVOA43eV.js → DsbRw6KR.js} +1 -1
  147. package/web/app/immutable/chunks/{BKBGVipO.js → Dt7c4Pax.js} +1 -1
  148. package/web/app/immutable/chunks/{CmQGxHeC.js → DtaNgayX.js} +1 -1
  149. package/web/app/immutable/chunks/{C1ThY53p.js → DuRStaSH.js} +1 -1
  150. package/web/app/immutable/chunks/{CZXxuKk9.js → DyY7UYao.js} +1 -1
  151. package/web/app/immutable/chunks/{BAbrZn3P.js → Dz4U5flk.js} +1 -1
  152. package/web/app/immutable/chunks/{CpCFvUR5.js → E4DVU0Ve.js} +1 -1
  153. package/web/app/immutable/chunks/{CgmgZICf.js → H4uzJ5tm.js} +1 -1
  154. package/web/app/immutable/chunks/{Cw0ShLcQ.js → HTWPmWo1.js} +1 -1
  155. package/web/app/immutable/chunks/{CuYKMtC1.js → JmvNQ7rA.js} +6 -6
  156. package/web/app/immutable/chunks/{BY7wkT_3.js → KibtbkvS.js} +1 -1
  157. package/web/app/immutable/chunks/{BTl3Oubf.js → LSEXtdfW.js} +1 -1
  158. package/web/app/immutable/chunks/{kkN2TyDA.js → NaAGj30I.js} +1 -1
  159. package/web/app/immutable/chunks/{DN0QxpZD.js → OEOiw8Zv.js} +1 -1
  160. package/web/app/immutable/chunks/{ahk4WUI6.js → OMRwJRL3.js} +1 -1
  161. package/web/app/immutable/chunks/{B7GWHjGP.js → OS4xDcHB.js} +1 -1
  162. package/web/app/immutable/chunks/{D1bW_55a.js → P9pyTxbM.js} +1 -1
  163. package/web/app/immutable/chunks/{COSy8ZX2.js → RtqIZ-T6.js} +1 -1
  164. package/web/app/immutable/chunks/{_mDSby89.js → USpWVHnm.js} +1 -1
  165. package/web/app/immutable/chunks/{Bgx4nALQ.js → XKM6D1dO.js} +1 -1
  166. package/web/app/immutable/chunks/{1rtICZ3o.js → Ya8nHHAL.js} +1 -1
  167. package/web/app/immutable/chunks/{DlPKqNjY.js → Z37kMhne.js} +1 -1
  168. package/web/app/immutable/chunks/{DdTz1oBw.js → ZMx24H1A.js} +1 -1
  169. package/web/app/immutable/chunks/{D1OuxwIH.js → ZnLt0fE9.js} +1 -1
  170. package/web/app/immutable/chunks/{NnttFqcV.js → aZF6bDlv.js} +1 -1
  171. package/web/app/immutable/chunks/{taB8rlcJ.js → bUI5sY1p.js} +1 -1
  172. package/web/app/immutable/chunks/{2H2pOzgE.js → coW2EBlC.js} +1 -1
  173. package/web/app/immutable/chunks/{vR2M2tXQ.js → i_ui2AtK.js} +1 -1
  174. package/web/app/immutable/chunks/{Co2pOTXg.js → jc_41O92.js} +1 -1
  175. package/web/app/immutable/chunks/{ErIhP1Or.js → jon-ILd-.js} +1 -1
  176. package/web/app/immutable/chunks/{Bf6adiRl.js → kt1QlIBw.js} +1 -1
  177. package/web/app/immutable/chunks/{CrhVTGSy.js → ofkEm09W.js} +1 -1
  178. package/web/app/immutable/chunks/{CDZHyQz9.js → pSGqM4EC.js} +1 -1
  179. package/web/app/immutable/chunks/{BK1dEhnI.js → ppicpx3_.js} +1 -1
  180. package/web/app/immutable/chunks/{jpTEu9Uq.js → w0evRwYG.js} +1 -1
  181. package/web/app/immutable/chunks/{DLrbfbYe.js → xk8hviOq.js} +1 -1
  182. package/web/app/immutable/chunks/{6YU1rTnu.js → y3EfY1iq.js} +1 -1
  183. package/web/app/immutable/chunks/{D-f__bmd.js → yE0GefJh.js} +1 -1
  184. package/web/app/immutable/chunks/yICy9AKh.js +1 -0
  185. package/web/app/immutable/chunks/{CpcIkzJ3.js → yjed4m93.js} +1 -1
  186. package/web/app/immutable/chunks/{BMQBiu4H.js → zsK7C4zF.js} +1 -1
  187. package/web/app/immutable/entry/{app.CK-Hpyh2.js → app.BsugBf_l.js} +2 -2
  188. package/web/app/immutable/entry/start.Dd2pvNuB.js +1 -0
  189. package/web/app/immutable/nodes/{0.BxwgNys0.js → 0.BUEIE24N.js} +1 -1
  190. package/web/app/immutable/nodes/{1.tN8Tzr0D.js → 1.BKC59JW5.js} +1 -1
  191. package/web/app/immutable/nodes/{10.DfctsIbO.js → 10.BMoBViEo.js} +1 -1
  192. package/web/app/immutable/nodes/{14.B5tO7fGp.js → 14.Dau7GBym.js} +1 -1
  193. package/web/app/immutable/nodes/{16.DdEDRsVP.js → 16.DXc_h5PO.js} +2 -2
  194. package/web/app/immutable/nodes/{2.CipDiEFv.js → 2.BsBA5i5n.js} +3 -3
  195. package/web/app/immutable/nodes/{3.Dpx3c-rl.js → 3.WswdjeM1.js} +1 -1
  196. package/web/app/immutable/nodes/{4.CMSVuHVO.js → 4.-Gv7tAts.js} +1 -1
  197. package/web/app/immutable/nodes/{5.Cm0OfeIw.js → 5.DdQ7rrQh.js} +1 -1
  198. package/web/app/immutable/nodes/{6.Bffpx01N.js → 6.OopM0IgM.js} +1 -1
  199. package/web/app/immutable/nodes/{7.CaPWhsaS.js → 7.CWcWl9G3.js} +1 -1
  200. package/web/app/immutable/nodes/{8.HUlPWPAa.js → 8.EzsX9Tkq.js} +2 -2
  201. package/web/app/immutable/nodes/{9.CDXOgyhA.js → 9._bY29opp.js} +1 -1
  202. package/web/app/version.json +1 -1
  203. package/web/index.html +9 -9
  204. package/web/app/immutable/chunks/BWfRUytQ.js +0 -1
  205. package/web/app/immutable/chunks/C_xoyHDc.js +0 -1
  206. package/web/app/immutable/chunks/E73kLELh.js +0 -271
  207. package/web/app/immutable/entry/start.KSs_sHzq.js +0 -1
@@ -1 +1 @@
1
- import{f as o}from"./CuYKMtC1.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
1
+ import{f as o}from"./JmvNQ7rA.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
@@ -1 +1 @@
1
- import{f as i}from"./CuYKMtC1.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
1
+ import{f as i}from"./JmvNQ7rA.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
@@ -0,0 +1 @@
1
+ var U=Object.defineProperty;var P=e=>{throw TypeError(e)};var K=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var x=(e,t,r)=>K(e,typeof t!="symbol"?t+"":t,r),Q=(e,t,r)=>t.has(e)||P("Cannot "+r);var T=(e,t,r)=>(Q(e,t,"read from private field"),r?r.call(e):t.get(e)),j=(e,t,r)=>t.has(e)?P("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);import{at as V,ca as X,c9 as G,aD as M,bH as Y,bo as Z,bs as $,a7 as q,ay as E,W as z,bn as ee,aA as m,a5 as te,bf as re,bA as oe,aB as se}from"./B8o4lNgr.js";import{j as F,s as ie}from"./DyNuRYlY.js";import{o as ne,j as N,c as ae}from"./DhxGbYJa.js";import{S as ce}from"./Dhg8yDyv.js";import{t as le,bq as b,a_ as de,by as ue,b as fe,br as he}from"./Hm6HJMdl.js";import{s as k}from"./Czh4UePJ.js";import{av as pe,aG as ve,aS as ge,aT as D,aJ as S,bn as me}from"./DMAjhyuj.js";function A(e){return typeof e=="object"?{open:e.open??!0,tier:e.tier??"slow",onClosed:e.onClosed}:{open:e??!0,tier:"slow",onClosed:void 0}}function be(e){const t=e.querySelectorAll("[data-animated-height-target]"),r=t.item(t.length-1)||e.firstElementChild;if(!r)return e.scrollHeight;const a=getComputedStyle(r),c=Number.parseFloat(a.height);return Number.isFinite(c)?a.boxSizing==="border-box"?c:c+["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((s,l)=>s+(Number.parseFloat(a[l])||0),0):r.offsetHeight}const Re=(e,t=!0)=>{let{open:r,onClosed:a}=A(t);const{tier:c}=A(t),s=new ce(0,c);let l=!r,h,n=!1,v,g,u;const H=e.style.overflow,w=e.style.height,C=()=>{e.style.overflow="clip",h=s.current,e.style.height=`${h}px`},O=V(()=>{X(()=>{const d=s.current;!l||n||d===h||(u?.(),u=F(()=>{u=void 0,n||C()}))})}),p=()=>{if(n)return;v?.(),g?.();const d=y=>{g=F(()=>{if(g=void 0,n)return;const J=s.set(y,{instant:!l||N()});l=!0,r||J.then(()=>{!n&&!r&&s.current===0&&a?.()}),u?.(),C()})};r?v=ie(()=>{v=void 0,d(be(e))}):d(0)},o=()=>{N()&&p()},i=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{r&&p()});let f=null;const B=()=>{const d=e.querySelectorAll("[data-animated-height-target]"),y=d.item(d.length-1)||e.firstElementChild||e;y!==f&&(f&&i?.unobserve(f),f=y,i?.observe(y))};B();const L=typeof MutationObserver>"u"?void 0:new MutationObserver(()=>{n||(B(),r&&p())});L?.observe(e,{childList:!0,subtree:!0});const I=ne(o);return p(),{update(d=!0){({open:r,onClosed:a}=A(d)),p()},destroy(){n=!0,v?.(),g?.(),u?.(),s.set(s.current,{instant:!0}),i?.disconnect(),L?.disconnect(),I(),O(),e.style.height=w,e.style.overflow=H}}},ye=ge({component:"separator",parts:["root"]});var _;const W=class W{constructor(t){x(this,"opts");x(this,"attachment");j(this,_,G(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":ve(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[ye.root]:"",...this.attachment})));this.opts=t,this.attachment=pe(t.ref)}static create(t){return new W(t)}get props(){return M(T(this,_))}set props(t){Y(T(this,_),t)}};_=new WeakMap;let R=W;var _e=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]),we=se("<div><!></div>");function Ce(e,t){const r=Z();if(new.target)return le({component:Ce,...e});$(t,!0);let a=b(t,"id",23,()=>D(r)),c=b(t,"ref",15,null),s=b(t,"child",7),l=b(t,"children",7),h=b(t,"decorative",7,!1),n=b(t,"orientation",7,"horizontal"),v=he(t,_e);const g=R.create({ref:S(()=>c(),o=>c(o)),id:S(()=>a()),decorative:S(()=>h()),orientation:S(()=>n())}),u=G(()=>me(v,g.props));var H={get id(){return a()},set id(o=D(r)){a(o),m()},get ref(){return c()},set ref(o=null){c(o),m()},get child(){return s()},set child(o){s(o),m()},get children(){return l()},set children(o){l(o),m()},get decorative(){return h()},set decorative(o=!1){h(o),m()},get orientation(){return n()},set orientation(o="horizontal"){n(o),m()},$set:ue,$on:(o,i)=>fe(t,o,i)},w=q(),C=E(w);{var O=o=>{var i=q(),f=E(i);k(f,s,()=>({props:M(u)})),z(o,i)},p=o=>{var i=we();ae(i,()=>({...M(u)}));var f=te(i);k(f,()=>l()??re),oe(i),z(o,i)};de(C,o=>{s()?o(O):o(p,-1)})}return z(e,w),ee(H)}export{Ce as S,Re as a};
@@ -1 +1 @@
1
- import{i as r}from"./DxL2WveA.js";import{v as a,I as e}from"./BvqaU45v.js";import{Hp as s}from"./knTaiA68.js";import{c as t}from"./BQ0kJvqK.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
1
+ import{i as r}from"./DxL2WveA.js";import{v as a,I as e}from"./BvqaU45v.js";import{Hp as s}from"./knTaiA68.js";import{c as t}from"./BHf163Hp.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
@@ -1,2 +1,2 @@
1
- import{t as Mt,bq as ae,_ as Vr,a_ as re,by as Ut,bu as be,bs as Zt,b as jt,bo as d}from"./Hm6HJMdl.js";import{bs as Et,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as Lt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ge,b$ as et,b_ as C,bO as g,bS as p,bl as S,aB as k,bj as Ar,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Wr,br as Br}from"./B8o4lNgr.js";import{D as mr,E as Or}from"./BvqaU45v.js";import{s as rt,l as yt,k as or,h as Pt}from"./DhxGbYJa.js";import{c as St}from"./CZ41NJh6.js";import{b as _r}from"./D2g8BuR1.js";import{Hp as A,n5 as hr,uH as wr,uG as br,JE as Hr,JF as qr,eu as Jr,ev as Kr,J3 as ir,lg as Ht,AL as nr,rp as sr,nt as Xr,yn as Yr,a9 as lr,HV as Gr,Ia as Zr,mH as Qr,iA as ea,n7 as ta,u6 as ra,yK as aa,J2 as oa}from"./knTaiA68.js";import{g as ia}from"./CoSk1zgY.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./B6IJ2aS0.js";import{by as va,bL as pa,dl as ga}from"./C2a2cvUs.js";import{w as cr,d as ma}from"./CWNwuo8T.js";import{f as _a}from"./Cc7qn74w.js";import{n as Jt}from"./CUMuaQIy.js";import{f as Fe,ax as ha}from"./DMAjhyuj.js";import"./Czh4UePJ.js";import{F as Qe,a9 as wa,ar as ba,aU as xa,a_ as Tt,cl as ya,cm as Pa,bh as $a,cI as ka,c2 as Ia}from"./P09O58_5.js";import{g as Ca,i as Fa,w as ur}from"./CI_NLoyz.js";import{c as Sa}from"./ChTqQfQN.js";import"./DHf8cy6I.js";import{V as Da}from"./C_1Gq9jA.js";import{i as Kt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Yt,p as Ma}from"./CGX0HX83.js";import{M as Ua}from"./CT4-zPqk.js";import{t as Xt,u as xr}from"./Dhg8yDyv.js";import"./CUF7ux4e.js";import"./p97llLQ-.js";import{M as Dt}from"./NL2hP03-.js";import{V as ja}from"./B86TWLIj.js";import{bN as Ea,b4 as La}from"./DdZhZWDI.js";import{aj as za}from"./CsONrL_3.js";const yr=A.createSelector((Y,x)=>hr(Y.pdfPreview.previews,x));var Va=k('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Aa=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Gt(Y,x){if(new.target)return Mt({component:Gt,...Y});Et(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Zt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Ce=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),N=O(1),B=O(1),se=O(!0),E=O(!1),Le=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(Le)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const L=crypto.randomUUID();return A.dispatch(wr(Se,L,l,y,...Ce()?[{gitRootId:Ce()}]:[])),()=>{A.dispatch(br(Se,L))}}),ke(()=>{const l=Ie()?.url;let y=!1,L;if(u(Q,null),u(Le,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:he}=await import("./BqoyBPEG.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;L=K(l);const le=await L.promise;y||u(Q,le)}catch(K){if(y)return;u(Le,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,L?.destroy()}}),ke(()=>{const l=e(Q),y=e(qe),L=e(N),K=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const X=(_e.get(U)??1)-1;X?_e.set(U,X):(_e.delete(U),U.cleanup()),U=void 0};return u(E,!0),(async()=>{try{if(U=await l.getPage(L),_e.set(U,(_e.get(U)??0)+1),le){de();return}const X=U.getViewport({scale:K}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*ee),y.height=Math.ceil(X.height*ee),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,he=U.render({canvas:y,viewport:X,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(Le,"invalid")}finally{le||u(E,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Ce()},set gitRootId(l){Ce(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Aa(),c=R(o);{var M=l=>{{const y=K=>{Ge();var le=et();C(()=>g(le,e(De))),s(K,le)};let L=i(()=>d.ui_combobox_retry_label());Ca(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(L)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Fa(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),L=ue(y),K=R(L);{let ge=i(()=>e(N)<=1);Fe(K,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(K,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Fe(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Fe(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var X=p(de,2),ee=S(X,!0),ot=p(X,2);{let ge=i(()=>e(B)>=3);Fe(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(L);var it=p(L,2),Je=R(it);let Ze;_r(Je,ge=>u(qe,ge),()=>e(qe)),P(it),C((ge,Pe,Ke)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(E)),rt(Je,"aria-label",Ke),Ze=yt(Je,"",Ze,{visibility:e(E)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Xt(e(N)),total:Xt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Xt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(Y,o);var ze=Lt(We);return ie(),ze}const Na=A.createSelector((Y,x)=>hr(Y.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(Y,x){if(new.target)return Mt({component:Pr,...Y});Et(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Zt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Ce=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,E=!1;Ar(()=>{E=!0,A.dispatch(Hr(Q))});function Le(){if(E||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(qr(Q,m.hostname,m.toString()))}function Ne(m){if(E)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&Le()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Ce()},set allowDownload(m){Ce(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=qa(),We=R(De);{var o=m=>{var w=Oa(),ze=R(w),l=S(ze,!0),y=p(ze,2);{var L=U=>{var de=Wa(),X=S(de,!0);C(ee=>g(X,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},K=U=>{var de=Ba(),X=S(de,!0);C(ee=>g(X,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(N)?U(L):U(K,-1)})}var le=p(y,2);{var he=U=>{Fe(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,X)=>{Ge();var ee=et();C(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Ce()&&U(he)})}P(w),C(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),ze=S(w,!0);C(l=>{rt(w,"src",Ie()?.url??$()),g(ze,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Le()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(Y,De);var M=Lt(ye);return ie(),M}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ka=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ya=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ga=k("<!> ",1),Za=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(Y,x){if(new.target)return Mt({component:Rt,...Y});Et(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Fe(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ge(2),C(()=>g(h,e(Le))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Ce=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},N=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),E=O(0);const Le=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function ze(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(We,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(E),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},L=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=L(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},X=()=>{u(E,(e(E)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():K(),t.download=e(B),t.click()},ot=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
1
+ import{t as Mt,bq as ae,_ as Vr,a_ as re,by as Ut,bu as be,bs as Zt,b as jt,bo as d}from"./Hm6HJMdl.js";import{bs as Et,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as Lt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ge,b$ as et,b_ as C,bO as g,bS as p,bl as S,aB as k,bj as Ar,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Wr,br as Br}from"./B8o4lNgr.js";import{D as mr,E as Or}from"./BvqaU45v.js";import{s as rt,l as yt,k as or,h as Pt}from"./DhxGbYJa.js";import{c as St}from"./CZ41NJh6.js";import{b as _r}from"./D2g8BuR1.js";import{Hp as A,n5 as hr,uH as wr,uG as br,JE as Hr,JF as qr,eu as Jr,ev as Kr,J3 as ir,lg as Ht,AL as nr,rp as sr,nt as Xr,yn as Yr,a9 as lr,HV as Gr,Ia as Zr,mH as Qr,iA as ea,n7 as ta,u6 as ra,yK as aa,J2 as oa}from"./knTaiA68.js";import{g as ia}from"./CoSk1zgY.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./B6IJ2aS0.js";import{by as va,bL as pa,dl as ga}from"./C2a2cvUs.js";import{w as cr,d as ma}from"./CWNwuo8T.js";import{f as _a}from"./Cc7qn74w.js";import{n as Jt}from"./CUMuaQIy.js";import{f as Fe,ax as ha}from"./DMAjhyuj.js";import"./Czh4UePJ.js";import{F as Qe,a9 as wa,ar as ba,aU as xa,a_ as Tt,cl as ya,cm as Pa,bh as $a,cI as ka,c2 as Ia}from"./P09O58_5.js";import{g as Ca,i as Fa,w as ur}from"./CI_NLoyz.js";import{c as Sa}from"./ChTqQfQN.js";import"./DHf8cy6I.js";import{V as Da}from"./42IGKw40.js";import{i as Kt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Yt,p as Ma}from"./CGX0HX83.js";import{M as Ua}from"./DZpNEtTX.js";import{t as Xt,u as xr}from"./Dhg8yDyv.js";import"./CUF7ux4e.js";import"./p97llLQ-.js";import{M as Dt}from"./NL2hP03-.js";import{V as ja}from"./B86TWLIj.js";import{bN as Ea,b4 as La}from"./D86k9p2-.js";import{aj as za}from"./CIgF-_ah.js";const yr=A.createSelector((Y,x)=>hr(Y.pdfPreview.previews,x));var Va=k('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Aa=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Gt(Y,x){if(new.target)return Mt({component:Gt,...Y});Et(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Zt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Ce=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),N=O(1),B=O(1),se=O(!0),E=O(!1),Le=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(Le)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const L=crypto.randomUUID();return A.dispatch(wr(Se,L,l,y,...Ce()?[{gitRootId:Ce()}]:[])),()=>{A.dispatch(br(Se,L))}}),ke(()=>{const l=Ie()?.url;let y=!1,L;if(u(Q,null),u(Le,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:he}=await import("./BqoyBPEG.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;L=K(l);const le=await L.promise;y||u(Q,le)}catch(K){if(y)return;u(Le,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,L?.destroy()}}),ke(()=>{const l=e(Q),y=e(qe),L=e(N),K=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const X=(_e.get(U)??1)-1;X?_e.set(U,X):(_e.delete(U),U.cleanup()),U=void 0};return u(E,!0),(async()=>{try{if(U=await l.getPage(L),_e.set(U,(_e.get(U)??0)+1),le){de();return}const X=U.getViewport({scale:K}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*ee),y.height=Math.ceil(X.height*ee),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,he=U.render({canvas:y,viewport:X,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(Le,"invalid")}finally{le||u(E,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Ce()},set gitRootId(l){Ce(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Aa(),c=R(o);{var M=l=>{{const y=K=>{Ge();var le=et();C(()=>g(le,e(De))),s(K,le)};let L=i(()=>d.ui_combobox_retry_label());Ca(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(L)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Fa(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),L=ue(y),K=R(L);{let ge=i(()=>e(N)<=1);Fe(K,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(K,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Fe(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Fe(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var X=p(de,2),ee=S(X,!0),ot=p(X,2);{let ge=i(()=>e(B)>=3);Fe(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Ke)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(L);var it=p(L,2),Je=R(it);let Ze;_r(Je,ge=>u(qe,ge),()=>e(qe)),P(it),C((ge,Pe,Ke)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(E)),rt(Je,"aria-label",Ke),Ze=yt(Je,"",Ze,{visibility:e(E)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Xt(e(N)),total:Xt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Xt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(Y,o);var ze=Lt(We);return ie(),ze}const Na=A.createSelector((Y,x)=>hr(Y.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(Y,x){if(new.target)return Mt({component:Pr,...Y});Et(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Zt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Ce=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,E=!1;Ar(()=>{E=!0,A.dispatch(Hr(Q))});function Le(){if(E||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(qr(Q,m.hostname,m.toString()))}function Ne(m){if(E)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&Le()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Ce()},set allowDownload(m){Ce(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=qa(),We=R(De);{var o=m=>{var w=Oa(),ze=R(w),l=S(ze,!0),y=p(ze,2);{var L=U=>{var de=Wa(),X=S(de,!0);C(ee=>g(X,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},K=U=>{var de=Ba(),X=S(de,!0);C(ee=>g(X,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(N)?U(L):U(K,-1)})}var le=p(y,2);{var he=U=>{Fe(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,X)=>{Ge();var ee=et();C(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Ce()&&U(he)})}P(w),C(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),ze=S(w,!0);C(l=>{rt(w,"src",Ie()?.url??$()),g(ze,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Le()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(Y,De);var M=Lt(ye);return ie(),M}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ka=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ya=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ga=k("<!> ",1),Za=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(Y,x){if(new.target)return Mt({component:Rt,...Y});Et(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Fe(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ge(2),C(()=>g(h,e(Le))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Ce=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},N=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),E=O(0);const Le=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function ze(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(We,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(E),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},L=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=L(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},X=()=>{u(E,(e(E)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():K(),t.download=e(B),t.click()},ot=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
2
2
  `).map(f=>f.split(",").map(_=>_.trim()));var Ze={get filePath(){return ie()},set filePath(t){ie(t),oe()},get fileContent(){return $()},set fileContent(t=""){$(t),oe()},get sourceUrl(){return ne()},set sourceUrl(t){ne(t),oe()},get language(){return Ce()},set language(t){Ce(t),oe()},get isBinary(){return Se()},set isBinary(t){Se(t),oe()},get allowDownload(){return xe()},set allowDownload(t=!0){xe(t),oe()},get onDownload(){return _e()},set onDownload(t){_e(t),oe()},get downloading(){return Q()},set downloading(t=!1){Q(t),oe()},$set:Ut,$on:(t,a)=>jt(x,t,a)},ge=io();tt("blur",gr,m);var Pe=R(ge);{var Ke=t=>{var a=Ka(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let te=i(()=>d.editor_fileViewer_rotate_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:X,get title(){return e(te)},children:(we,Te)=>{Qe(we,{get icon(){return wa},size:"sm"})},$$slots:{default:!0}})}var j=p(h,4);{let te=i(()=>d.editor_fileViewer_copyImage_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ot,get title(){return e(te)},children:(we,Te)=>{var Ee=je(),Be=ue(Ee);{var Vt=Xe=>{Qe(Xe,{get icon(){return ba},size:"sm",class:"text-green-500"})},pt=Xe=>{Qe(Xe,{get icon(){return xa},size:"sm"})};re(Be,Xe=>{e(Ne)?Xe(Vt):Xe(pt,-1)})}s(we,Ee)},$$slots:{default:!0}})}var D=p(j,2);{let te=i(()=>!xe()||Q()),we=i(()=>d.editor_fileViewer_download_tooltip());Fe(D,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(te)},get title(){return e(we)},children:(Te,Ee)=>{Qe(Te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var T=p(D,2),H=S(T,!0);P(f);var z=p(f,2),G=S(z);P(a),C(te=>{g(H,e(B)),or(z,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(z,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(G,"src",te),rt(G,"alt",e(B)),yt(G,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(E)??""}deg); transition: transform 0.2s;`)},[()=>K()]),vt("pointerdown",z,w),vt("pointermove",z,ze),vt("pointerup",z,l),tt("pointercancel",z,l),tt("lostpointercapture",z,l),s(t,a)},$e=t=>{var a=Xa(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let z=i(()=>!xe()||Q()),G=i(()=>d.editor_fileViewer_download_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(z)},get title(){return e(G)},children:(te,we)=>{Qe(te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var j=p(h,2),D=S(j,!0);P(f);var T=p(f,2),H=S(T);P(a),C(z=>{g(D,e(B)),or(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(T,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(H,"src",z),rt(H,"alt",e(B)),yt(H,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>he()]),vt("pointerdown",T,w),vt("pointermove",T,ze),vt("pointerup",T,l),tt("pointercancel",T,l),tt("lostpointercapture",T,l),s(t,a)},fe=t=>{const a=i(le);var f=je(),_=ue(f);mr(_,()=>ie()+e(a),h=>{Pr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return xe()},get downloading(){return Q()},onDownload:ee})}),s(t,f)},nt=t=>{var a=Ya(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=R(h),D=p(j);P(h),P(a),C((T,H)=>{g(_,e(B)),rt(j,"src",T),g(D,` ${H??""}`)},[()=>K(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,a)},$t=t=>{var a=Za(),f=p(R(a),2),_=S(f,!0),h=p(f,2);{let j=i(()=>!xe()||Q());Fe(h,{size:"sm",variant:"secondary",onclick:ee,get disabled(){return e(j)},children:(D,T)=>{var H=Ga(),z=ue(H);Qe(z,{get icon(){return Tt},size:"sm",class:"mr-2"});var G=p(z);C(te=>g(G,` ${te??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(D,H)},$$slots:{default:!0}})}P(a),C(j=>g(_,j),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},ct=t=>{{let a=i(()=>it($().toString()));Yt(t,{get value(){return e(a)},language:"json",get fileName(){return ie()},lineNumbers:!0,readOnly:!0})}},ut=t=>{const a=i(()=>Je($().toString()));var f=ro(),_=R(f),h=R(_),j=R(h);Pt(j,23,()=>e(a)[0]||[],(T,H)=>`header-${H}-${T}`,(T,H)=>{var z=Qa(),G=S(z,!0);C(()=>g(G,e(H))),s(T,z)}),P(j),P(h);var D=p(h);Pt(D,23,()=>e(a).slice(1),(T,H)=>`row-${H}`,(T,H,z)=>{var G=to();Pt(G,23,()=>e(H),(te,we)=>`cell-${e(z)}-${we}`,(te,we)=>{var Te=eo(),Ee=S(Te,!0);C(()=>g(Ee,e(we))),s(te,Te)}),P(G),s(T,G)}),P(D),P(_),P(f),s(t,f)},kt=t=>{var a=ao(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),C(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_archive_label()]),s(t,a)},zt=t=>{var a=oo(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),C(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_binary_label()]),s(t,a)},It=t=>{{let a=i(()=>$().toString());Yt(t,{get value(){return e(a)},get language(){return Ce()},get fileName(){return ie()},lineNumbers:!0,highlightActiveLine:!0})}};re(Pe,t=>{e(N)==="image"?t(Ke):e(N)==="svg"?t($e,1):e(N)==="video"?t(fe,2):e(N)==="audio"?t(nt,3):e(N)==="pdf"?t($t,4):e(N)==="json"?t(ct,5):e(N)==="csv"?t(ut,6):e(N)==="archive"?t(kt,7):e(N)==="binary"?t(zt,8):t(It,-1)})}return P(ge),s(Y,ge),Lt(Ze)}Nr(["pointerdown","pointermove","pointerup"]);const no=/access denied|permission denied|outside (?:the )?workspace/i,so=/file not found|no such file or directory/i;function lo(Y){return no.test(Y)?"access-denied":Y===d.files_read_notFound_error()||so.test(Y)?"not-found":"generic"}function co(Y){switch(Y){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var uo=k("<!> <!>",1),fo=k("<!> <!> <!>",1),vo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),fr=k('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),po=k('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),vr=k('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),go=k('<div class="flex items-center gap-3"><!> <!></div>'),mo=k('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),_o=k('<p class="text-xs"> </p>'),ho=k("<li><!></li>"),wo=k('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),bo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),xo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),yo=k('<div class="h-full overflow-auto p-4"><!></div>');function Po(Y,x){if(new.target)return Mt({component:Po,...Y});Et(x,!0);const Ie=()=>be($e,"$workspace",E),at=()=>be(K,"$fileContentStore",E),ie=()=>be(le,"$fileLoadingStore",E),$=()=>be(he,"$fileSavingStore",E),ne=()=>be(U,"$fileErrorStore",E),Ce=()=>be(de,"$fileNotFoundCandidatesStore",E),Se=()=>be(X,"$isFileBinaryStore",E),xe=()=>be(ee,"$isFileDirtyStore",E),_e=()=>be(ot,"$fileLastUpdatedStore",E),Q=()=>be(it,"$ftChanges$",E),qe=()=>be(Ke,"$gutterRead$",E),N=()=>be(De,"$lineWrapping",E),B=()=>be(We,"$diffIndicators",E),se=()=>be(ge,"$rootMediaPreview",E),[E,Le]=Zt(),Ne=r=>{var n=uo(),I=ue(n);{var F=pe=>{var Ve=je(),Oe=ue(Ve);St(Oe,()=>Dt,(ft,_t)=>{_t(ft,{get icon(){return $a},get label(){return e(_)},disabled:!0})}),s(pe,Ve)};re(I,pe=>{!e(te)&&!e(l)&&!e(t)&&pe(F)})}var ve=p(I,2);{var Re=pe=>{{let Ve=i(()=>!e(Ct)||!e(z)),Oe=i(()=>!e(l)&&(!e(Ct)||!e(z)));ja(pe,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Ct)},get previewEnabled(){return e(z)},onTogglePreview:()=>u(z,!e(z)),get showWrap(){return e(Ve)},get wrapEnabled(){return N()},onToggleWrap:()=>A.dispatch(Zr()),get showDiff(){return e(Oe)},get diffEnabled(){return B()},onToggleDiff:()=>A.dispatch(Gr())})}};re(ve,pe=>{o().filePath&&!e(te)&&!e(t)&&pe(Re)})}s(r,n)},ye=r=>{var n=je(),I=ue(n);{var F=ve=>{var Re=fo(),pe=ue(Re);{var Ve=Ae=>{var Ye=je(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_goToChanges_tooltip());St(lt,()=>Dt,(wt,bt)=>{bt(wt,{get icon(){return Ia},get label(){return e(ht)},onclick:Tr})})}s(Ae,Ye)};re(pe,Ae=>{e(kr)&&Ae(Ve)})}var Oe=p(pe,2);{var ft=Ae=>{var Ye=je(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_downloadFile_label()),wt=i(()=>!e(gt)||e(st));St(lt,()=>Dt,(bt,Nt)=>{Nt(bt,{get icon(){return Tt},get label(){return e(ht)},onclick:Ft,get disabled(){return e(wt)}})})}s(Ae,Ye)};re(Oe,Ae=>{e(Be)&&Ae(ft)})}var _t=p(Oe,2);{let Ae=i(()=>d.layout_fileTab_deleteFile_tooltip());St(_t,()=>Dt,(Ye,lt)=>{lt(Ye,{get icon(){return ka},get label(){return e(Ae)},onclick:Rr,destructive:!0})})}s(ve,Re)};re(I,ve=>{o().filePath&&!e(te)&&!e(l)&&ve(F)})}s(r,n)},De=Ea(),We=La();let o=ae(x,"tab",7),c=ae(x,"workspaceId",7),M=ae(x,"isActive",7),m=ae(x,"isPanelFocused",7);ke(()=>{const r=c();if(!(!M()||!r||e(w)))return A.dispatch(Jr(r,"files")),()=>A.dispatch(Kr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),ze=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?_a(o().filePath,e(w)):o().filePath),L=Wr(e(y));ke(()=>{L.set(e(y))});const K=na(c(),L),le=sa(c(),L),he=la(c(),L),U=da(c(),L),de=ca(c(),L),X=ua(c(),L),ee=dr(c(),L),ot=fa(c(),L),it=va(c()),Je=ia(),Ze=crypto.randomUUID(),ge=yr(Ze),Pe=`file-gutter:${crypto.randomUUID()}`,Ke=pa(c(),Pe),$e=ga(c()),fe=i(()=>Ie()?.worktreePath||Ie()?.repositoryPath||Ie()?.path||null),nt=i(at),$t=i(ie),ct=i($),ut=i(ne),kt=i(()=>e(ut)?lo(e(ut)):"generic"),zt=5,It=i(()=>(Ce()??[]).slice(0,zt)),t=i(Se),a=i(xe),f=i(_e),_=i(()=>e(ct)?d.ui_saveIndicator_saving_tooltip():e(a)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let h=O(null),j=O(Br([])),D=O(null),T=O(void 0),H=O(void 0),z=O(!0);ke(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(H)||(u(H,n,!0),u(T,{line:r},!0),u(z,!1))});const G=i(()=>e(w)?cr(o().filePath,e(ze)):null),te=i(()=>e(w)?!e(G):!!(o().filePath&&(Ta(o().filePath)||e(fe)&&Ra(o().filePath,e(fe))))),we=i(()=>o().filePath&&e(fe)?Kt(o().filePath)?o().filePath:`${e(fe)}/${o().filePath}`:null),Te=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),Ee=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Be=i(()=>c()&&/^[A-Za-z0-9._-]+$/.test(c())?cr(o().filePath,e(fe)):null),Vt=i(()=>!e(w)&&e(Be)?e(Be).split("/").slice(0,-1).join("/"):void 0),pt=i(()=>e(Te)||e(Ee)?e(Be):null),Xe=i(()=>e(w)&&e(Ee)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);ke(()=>{if(!M()||!e(w)||!e(G)||!e(Xe))return;const r=crypto.randomUUID();return A.dispatch(wr(Ze,r,c(),e(G),{gitRootId:e(w),mimeType:e(Xe)})),()=>A.dispatch(br(Ze,r))});let st=O(!1);const gt=i(()=>!!e(Be)&&!e($t)&&(!e(Ee)||e(D)===e(Be))),Qt=i(()=>e(D)&&c()?`workspace-file://${c()}/${e(D).split("/").map(encodeURIComponent).join("/")}`:null),At=i(()=>o().filePath?ta(o().filePath):"plaintext"),Ct=i(()=>e(At)==="markdown");ke(()=>{if(!M()||e(Te)||e(w))return;const r=e(pt),n=o().filePath,I=c(),F=o().id;if(u(D,null),!r||!n||!I)return;let ve=!1;const Re=()=>!ve&&c()===I&&o().id===F&&o().filePath===n;return(async()=>{let pe=!1;try{pe=(await ha("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Re())return;if(pe){u(D,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(D,r,!0);return}const{candidates:Ve,truncated:Oe}=await Da(I,r);if(Re()){if(!Oe&&Ve.length===1){A.dispatch(ir(I,n,Ve[0],F));return}u(D,r,!0)}})(),()=>{ve=!0}});function $r(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const mt=i(()=>e(l)||!o().filePath?null:Q().find(r=>$r(r,o().filePath))??null),kr=i(()=>!!e(mt));ke(()=>{if(e(l))return;const r=c(),n=o().filePath,I=e(fe);return()=>{if(!r||!n)return;const F=qt.select(A.state,r,n);if(F?.kind!=="editable-text")return;const ve=Ht(F.localContent),Re=dr.select(A.state,r,n),pe=Kt(n)?n:I?`${I}/${n}`:null;Re&&pe&&A.dispatch(nr(r,n,pe,ve))}}),ke(()=>{const r=o().filePath,n=e(we),I=c();if(!M())return;const F=!e(w)&&!!r&&Kt(r)&&!e(fe);r&&I&&!e(te)&&!e(Ee)&&!e(Te)&&!F&&(e(w)&&e(G)&&e(y)?A.dispatch(sr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(G)}})):A.dispatch(sr(I,r,n??r)))});function Ir(){return e(nt)??""}function Cr(r){e(l)||e(t)||!o().filePath||!c()||!e(we)||A.dispatch(oa(c(),o().filePath,Ht(r)))}function Fr(){if(e(l)||e(t)||!o().filePath||!e(we)||e(nt)===null||e(ct))return;const r=qt.select(A.state,c(),o().filePath);r?.kind==="editable-text"&&A.dispatch(nr(c(),o().filePath,e(we),Ht(r.localContent)))}function Sr(r){const n=o().filePath;!n||!c()||(A.dispatch(aa(c(),n)),A.dispatch(ir(c(),n,r,o().id)))}ke(()=>{const r=o().filePath,n=e(mt);if(!r||!n){u(j,[],!0);return}if(!M())return;const I=c(),F=crypto.randomUUID();return A.dispatch(Xr(I,Pe,F,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Yr(I,Pe,F))}}),ke(()=>{const r=qe(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(F=>F.file===o().filePath)??n[0];u(j,I?Ma(I.chunks.map(F=>({oldStart:F.oldStart,oldLines:F.oldLines,newStart:F.newStart,newLines:F.newLines,lines:F.lines.map(ve=>(ve.type===lr.Addition?"+":ve.type===lr.Deletion?"-":" ")+ve.content)}))):[],!0)});function Dr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Re=>Or(r,za(Re),n);if(I("editor.save")){r.preventDefault(),e(a)&&!e(ct)&&Fr();return}const F=I("editor.undo")?"undo":I("editor.redo")?"redo":I("editor.toggle-task-list")?"toggle-task-list":I("editor.copy")?"copy":I("editor.select-all")?"select-all":null;if(!F||e(l)&&F!=="copy"&&F!=="select-all")return;F!=="toggle-task-list"&&e(h)?.runShortcut(F)&&r.preventDefault()}function Tr(r){if(!o().filePath||!e(mt))return;const n=r?.metaKey||r?.ctrlKey||!1,F=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ra(c(),e(mt),{filePath:o().filePath,changeId:e(mt).id,openInAdjacentPanel:n,sourcePanelId:F}))}async function Ft(){const r=e(Be);if(!(e(l)||!r||!c()||!e(gt)||e(st))){u(st,!0);try{const n=await ma(c(),r,e(fe));!n?.success&&!n?.canceled&&Jt.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{Jt.error(d.layout_fileTab_downloadFailed_error())}finally{u(st,!1)}}}function Rr(){const r=e(we);if(e(l)||!o().filePath||!c()||!r)return;const n=Qr(qt.select(A.state,c(),o().filePath));if(!n){Jt.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(ea(c(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}ke(()=>{if(!Je||!M())return;const r={isDirty:!e(l)&&e(a),isSaving:!e(l)&&e(ct)};pr(()=>{Je.registerActions({display:Ne,actions:ye}),Je.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),oe()},get workspaceId(){return c()},set workspaceId(r){c(r),oe()},get isActive(){return M()},set isActive(r){M(r),oe()},get isPanelFocused(){return m()},set isPanelFocused(r){m(r),oe()},$set:Ut,$on:(r,n)=>jt(x,r,n)},er=je();tt("keydown",gr,r=>M()&&Dr(r));var Ur=ue(er);{var jr=r=>{var n=je(),I=ue(n);mr(I,()=>o().filePath,F=>{var ve=je(),Re=ue(ve);{var pe=b=>{var v=vo(),V=R(v),q=S(V,!0),W=p(V,2),Me=S(W,!0);P(v),C(Z=>{g(q,Z),g(Me,o().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ve=b=>{var v=je(),V=ue(v);{var q=W=>{Gt(W,{get workspaceId(){return c()},get filePath(){return e(G)},get gitRootId(){return e(w)}})};re(V,W=>{M()&&W(q)})}s(b,v)},Oe=b=>{var v=je(),V=ue(v);{var q=Z=>{var J=fr(),ce=R(J),Ue=S(ce,!0);P(J),C(me=>g(Ue,me),[()=>d.layout_fileTab_errorLoading_label()]),s(Z,J)},W=Z=>{Rt(Z,{get filePath(){return o().filePath},get sourceUrl(){return se().url},allowDownload:!1})},Me=Z=>{var J=po(),ce=R(J),Ue=S(ce,!0);P(J),C(me=>g(Ue,me),[()=>d.layout_fileTab_preparing_label()]),s(Z,J)};re(V,Z=>{se()?.error?Z(q):se()?.url?Z(W,1):Z(Me,-1)})}s(b,v)},ft=b=>{var v=je(),V=ue(v);{var q=W=>{Gt(W,{get workspaceId(){return c()},get filePath(){return e(pt)}})};re(V,W=>{M()&&W(q)})}s(b,v)},_t=b=>{var v=fr(),V=R(v),q=S(V,!0);P(v),C(W=>g(q,W),[()=>d.file_pdf_load_error()]),s(b,v)},Ae=b=>{{let v=i(()=>e(D)??o().filePath),V=i(()=>!e(l)&&e(gt));Rt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Qt)},onDownload:Ft,get allowDownload(){return e(V)},get downloading(){return e(st)}})}},Ye=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),C(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)},lt=b=>{var v=mo(),V=R(v);Pt(V,20,()=>[...Array(20).keys()],q=>q,(q,W)=>{var Me=go(),Z=R(Me);ur(Z,{class:"h-3 w-8 shrink-0"});var J=p(Z,2);ur(J,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Me),s(q,Me)}),P(V),P(v),s(b,v)},ht=b=>{var v=bo(),V=R(v),q=S(V,!0),W=p(V,2),Me=S(W,!0),Z=p(W,2);{var J=me=>{var He=_o(),dt=S(He,!0);C(()=>g(dt,e(ut))),s(me,He)};re(Z,me=>{e(kt)==="generic"&&me(J)})}var ce=p(Z,2);{var Ue=me=>{var He=wo(),dt=ue(He),Wt=S(dt,!0),tr=p(dt,2);Pt(tr,20,()=>e(It),xt=>xt,(xt,rr)=>{var Bt=ho(),Lr=R(Bt);Fe(Lr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Sr(rr),children:(zr,$o)=>{Ge();var ar=et();C(()=>g(ar,rr)),s(zr,ar)},$$slots:{default:!0}}),P(Bt),s(xt,Bt)}),P(tr),C(xt=>g(Wt,xt),[()=>d.layout_fileTab_didYouMean_label()]),s(me,He)};re(ce,me=>{e(It).length>0&&me(Ue)})}P(v),C(me=>{g(q,me),g(Me,o().filePath)},[()=>co(e(kt))]),s(b,v)},wt=b=>{var v=xo(),V=R(v),q=S(V,!0),W=p(V,2),Me=S(W,!0),Z=p(W,2);{var J=ce=>{{let Ue=i(()=>!e(gt)||e(st));Fe(ce,{variant:"secondary",size:"sm",onclick:Ft,get disabled(){return e(Ue)},children:(me,He)=>{Ge();var dt=et();C(Wt=>g(dt,Wt),[()=>d.layout_fileTab_downloadFile_label()]),s(me,dt)},$$slots:{default:!0}})}};re(Z,ce=>{!e(l)&&e(Be)&&ce(J)})}P(v),C(ce=>{g(q,ce),g(Me,o().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(b,v)},bt=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var V=je(),q=ue(V);{var W=J=>{{let ce=i(()=>o().filePath||""),Ue=i(()=>!e(l)&&e(gt));Rt(J,{get filePath(){return e(ce)},get fileContent(){return e(nt)},get language(){return e(At)},get isBinary(){return e(t)},onDownload:Ft,get allowDownload(){return e(Ue)},get downloading(){return e(st)}})}},Me=J=>{var ce=yo(),Ue=R(ce);Ua(Ue,{get content(){return e(nt)},get workspaceId(){return c()},get relativeMediaBase(){return e(Vt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(ce),s(J,ce)},Z=J=>{var ce=Ir,Ue=Cr;{let me=i(()=>B()?e(j):[]);_r(Yt(J,{get value(){return ce()},set value(He){Ue(He)},get language(){return e(At)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return c()},get filePath(){return o().filePath},get lineWrapping(){return N()},get lineChanges(){return e(me)},get jumpTo(){return e(T)},get externalContentVersion(){return e(f)},get isPanelFocused(){return m()}}),He=>u(h,He,!0),()=>e(h))}};re(q,J=>{e(v)?J(W):e(Ct)&&e(z)?J(Me,1):J(Z,-1)})}s(b,V)},Nt=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),C(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)};re(Re,b=>{e(te)?b(pe):e(w)&&e(Te)&&e(G)?b(Ve,1):e(w)&&e(Ee)?b(Oe,2):e(Te)&&e(pt)?b(ft,3):e(Te)?b(_t,4):e(Qt)?b(Ae,5):e(Ee)?b(Ye,6):e($t)?b(lt,7):e(ut)?b(ht,8):e(t)?b(wt,9):e(nt)!==null?b(bt,10):b(Nt,-1)})}s(F,ve)}),s(r,n)};re(Ur,r=>{o().filePath&&r(jr)})}s(Y,er);var Er=Lt(Mr);return Le(),Er}export{Po as default};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CO9cPI-y.js","/app/immutable/chunks/D2BJsiYN.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/Hm6HJMdl.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.BxwgNys0.js","/app/immutable/chunks/Czh4UePJ.js","/app/immutable/chunks/BvqaU45v.js","/app/immutable/chunks/BGjI9Y6a.js","/app/immutable/chunks/knTaiA68.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DRRd_Im2.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/biUQR1sj.js","/app/immutable/chunks/D-cv-J4E.js","/app/immutable/chunks/JGMDPc6g.js","/app/immutable/assets/0.Dtgq0yX6.css","/app/immutable/nodes/1.tN8Tzr0D.js","/app/immutable/chunks/DW78ZPhK.js","/app/immutable/chunks/8DeZuS5J.js","/app/immutable/chunks/P09O58_5.js","/app/immutable/chunks/CZ41NJh6.js","/app/immutable/chunks/DhxGbYJa.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DMAjhyuj.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CipDiEFv.js","/app/immutable/chunks/iPqcTXdB.js","/app/immutable/chunks/Dhg8yDyv.js","/app/immutable/chunks/C2a2cvUs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CTPvEbLw.js","/app/immutable/chunks/_Yj0U2JL.js","/app/immutable/chunks/DEdCYnC-.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/426jZhlC.js","/app/immutable/chunks/D8dE5NKO.js","/app/immutable/chunks/C_1Gq9jA.js","/app/immutable/chunks/Dcp13zgM.js","/app/immutable/chunks/efEO4po9.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DdZhZWDI.js","/app/immutable/chunks/Ccq1KQi4.js","/app/immutable/chunks/DxL2WveA.js","/app/immutable/chunks/B1b30ohy.js","/app/immutable/chunks/Cc7qn74w.js","/app/immutable/chunks/DHf8cy6I.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/CRqt9_Cc.js","/app/immutable/chunks/DdFs_I58.js","/app/immutable/chunks/D66P93Qq.js","/app/immutable/chunks/CUMuaQIy.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BmW_s-QS.js","/app/immutable/chunks/BAbrZn3P.js","/app/immutable/chunks/Czbl-pwg.js","/app/immutable/chunks/p9Nr9xHJ.js","/app/immutable/chunks/DMKTJjUk.js","/app/immutable/chunks/Coz2ksTS.js","/app/immutable/chunks/DW1sz-bZ.js","/app/immutable/chunks/Cmjk8ggx.js","/app/immutable/chunks/HMdomBNY.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BaAjpPnU.js","/app/immutable/chunks/CpW6JN4X.js","/app/immutable/chunks/DhBHHdi-.js","/app/immutable/chunks/COMCZIt7.js","/app/immutable/chunks/D4SdpHwW.js","/app/immutable/chunks/BIuOEIhQ.js","/app/immutable/chunks/Ctf3CTKp.js","/app/immutable/chunks/Cobwc5w0.js","/app/immutable/chunks/Bgx4nALQ.js","/app/immutable/chunks/BVv9C2Nh.js","/app/immutable/chunks/udMA7cVN.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/B6IJ2aS0.js","/app/immutable/chunks/D_sFUsFI.js","/app/immutable/chunks/BaB987dU.js","/app/immutable/chunks/7p422hMO.js","/app/immutable/chunks/pquKm3Gs.js","/app/immutable/chunks/CniL_2oM.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DlodKoXT.js","/app/immutable/chunks/CZ6oPQCg.js","/app/immutable/chunks/C6pRWW6E.js","/app/immutable/chunks/DyNuRYlY.js","/app/immutable/chunks/CI_NLoyz.js","/app/immutable/chunks/p97llLQ-.js","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/CUF7ux4e.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/C_xoyHDc.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/DslISh5T.js","/app/immutable/chunks/3mRiykq7.js","/app/immutable/chunks/ahk4WUI6.js","/app/immutable/chunks/BQ0kJvqK.js","/app/immutable/chunks/G4G1yJEW.js","/app/immutable/chunks/CsONrL_3.js","/app/immutable/chunks/BLRsVZLo.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DPwoTber.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CNAUnNV3.js","/app/immutable/chunks/-t9Tnunn.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/29dNc4rH.js","/app/immutable/chunks/DY0zw3Os.js","/app/immutable/chunks/DXeEXuP4.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/CO6DkG3A.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/oqglbldc.js","/app/immutable/chunks/BJb8i1t6.js","/app/immutable/chunks/CT4-zPqk.js","/app/immutable/assets/accessibility.Cjws-1uy.css","/app/immutable/chunks/jdhd6kTw.js","/app/immutable/chunks/BirDtNb4.js","/app/immutable/chunks/DRahrof_.js","/app/immutable/chunks/C3hWtekV.js","/app/immutable/chunks/C8YkhSPO.js","/app/immutable/chunks/546SeDj4.js","/app/immutable/chunks/BhjnDHlN.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.CtMzQVzR.css","/app/immutable/nodes/3.Dpx3c-rl.js","/app/immutable/nodes/4.CMSVuHVO.js","/app/immutable/nodes/5.Cm0OfeIw.js","/app/immutable/chunks/Cd6oHz3J.js","/app/immutable/chunks/NL2hP03-.js","/app/immutable/chunks/CoSk1zgY.js","/app/immutable/chunks/CE-MJwR9.js","/app/immutable/chunks/s57WPGBK.js","/app/immutable/chunks/COdu0yKt.js","/app/immutable/chunks/jxyETF7R.js","/app/immutable/chunks/ByR8YQwU.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/D1tUD9NH.js","/app/immutable/assets/AgentCard.4uIFUDRc.css","/app/immutable/chunks/BdLaCRsE.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.Dlk-yueV.css","/app/immutable/chunks/CDjGm44I.js","/app/immutable/chunks/CzT0HixX.js","/app/immutable/chunks/CiYjHHrV.js","/app/immutable/chunks/E73kLELh.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/DcSLjWiT.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/CYgNglb2.js","/app/immutable/chunks/CoZ28bOB.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/CuYKMtC1.js","/app/immutable/assets/DiagramPresentation.fimBl1wP.css","/app/immutable/chunks/BSfAf3nO.js","/app/immutable/chunks/C-8hh9QU.js","/app/immutable/chunks/BMQ6HPvn.js","/app/immutable/chunks/CSROyTjK.js","/app/immutable/chunks/DsZCr7hJ.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/B7zCWgA3.js","/app/immutable/chunks/BrZUKM39.js","/app/immutable/chunks/DdTz1oBw.js","/app/immutable/chunks/D7YuvnAv.js","/app/immutable/assets/conversation-turns.Cw6qSz_q.css","/app/immutable/chunks/uLY_XLZ1.js","/app/immutable/chunks/DwxSPPxX.js","/app/immutable/chunks/BTRJE4MQ.js","/app/immutable/chunks/cg3lif8G.js","/app/immutable/assets/ChatPanel.CbI83JII.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.Bffpx01N.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.CaPWhsaS.js","/app/immutable/chunks/CZXxuKk9.js","/app/immutable/nodes/8.HUlPWPAa.js","/app/immutable/chunks/taB8rlcJ.js","/app/immutable/chunks/Bsxt04FP.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/assets/dock-tokens.CevytPYC.css","/app/immutable/nodes/9.CDXOgyhA.js","/app/immutable/chunks/CGX0HX83.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/D5uQkARh.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/C_XjfV5C.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/CaaArvAW.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/CWNwuo8T.js","/app/immutable/chunks/Dg_sRwQ4.js","/app/immutable/chunks/DsMnRsze.js","/app/immutable/assets/9.BrOjqpcv.css","/app/immutable/nodes/10.DfctsIbO.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.DeGZKtU6.js","/app/immutable/nodes/12.BeKcHcid.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.C1Kb-bLP.js","/app/immutable/chunks/DKH-Ny4K.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14.B5tO7fGp.js","/app/immutable/chunks/tmF9Resq.js","/app/immutable/assets/14.BlmY1boZ.css","/app/immutable/nodes/15.B6REzttZ.js","/app/immutable/assets/15.COfTIH7u.css","/app/immutable/nodes/16.DdEDRsVP.js","/app/immutable/assets/16.Cznk2DRv.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CO9cPI-y.js","/app/immutable/chunks/D2BJsiYN.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/Hm6HJMdl.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.BUEIE24N.js","/app/immutable/chunks/Czh4UePJ.js","/app/immutable/chunks/BvqaU45v.js","/app/immutable/chunks/BGjI9Y6a.js","/app/immutable/chunks/knTaiA68.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DRRd_Im2.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/biUQR1sj.js","/app/immutable/chunks/D-cv-J4E.js","/app/immutable/chunks/C0zMyiSJ.js","/app/immutable/assets/0.Dtgq0yX6.css","/app/immutable/nodes/1.BKC59JW5.js","/app/immutable/chunks/DHBcRJcB.js","/app/immutable/chunks/BV8oXBag.js","/app/immutable/chunks/P09O58_5.js","/app/immutable/chunks/CZ41NJh6.js","/app/immutable/chunks/DhxGbYJa.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DMAjhyuj.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.BsBA5i5n.js","/app/immutable/chunks/iPqcTXdB.js","/app/immutable/chunks/Dhg8yDyv.js","/app/immutable/chunks/C2a2cvUs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Ds2C0KCr.js","/app/immutable/chunks/BDCpfZ88.js","/app/immutable/chunks/BS4DuXZu.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/426jZhlC.js","/app/immutable/chunks/D8dE5NKO.js","/app/immutable/chunks/42IGKw40.js","/app/immutable/chunks/Dcp13zgM.js","/app/immutable/chunks/efEO4po9.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D86k9p2-.js","/app/immutable/chunks/DPZAEbfI.js","/app/immutable/chunks/DxL2WveA.js","/app/immutable/chunks/B1b30ohy.js","/app/immutable/chunks/Cc7qn74w.js","/app/immutable/chunks/DHf8cy6I.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/C9b_UldH.js","/app/immutable/chunks/DdFs_I58.js","/app/immutable/chunks/CX5RDv3-.js","/app/immutable/chunks/CUMuaQIy.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BmW_s-QS.js","/app/immutable/chunks/Dz4U5flk.js","/app/immutable/chunks/BEnZG6kV.js","/app/immutable/chunks/DYOQcDOJ.js","/app/immutable/chunks/DMKTJjUk.js","/app/immutable/chunks/Coz2ksTS.js","/app/immutable/chunks/CpFCp0wR.js","/app/immutable/chunks/Cmjk8ggx.js","/app/immutable/chunks/HMdomBNY.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BaAjpPnU.js","/app/immutable/chunks/CpW6JN4X.js","/app/immutable/chunks/DhBHHdi-.js","/app/immutable/chunks/BKDPRUCm.js","/app/immutable/chunks/D4SdpHwW.js","/app/immutable/chunks/BIuOEIhQ.js","/app/immutable/chunks/Ctf3CTKp.js","/app/immutable/chunks/Cobwc5w0.js","/app/immutable/chunks/XKM6D1dO.js","/app/immutable/chunks/BVv9C2Nh.js","/app/immutable/chunks/udMA7cVN.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/B6IJ2aS0.js","/app/immutable/chunks/D_sFUsFI.js","/app/immutable/chunks/BaB987dU.js","/app/immutable/chunks/7p422hMO.js","/app/immutable/chunks/pquKm3Gs.js","/app/immutable/chunks/CniL_2oM.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DlodKoXT.js","/app/immutable/chunks/BVPsIjUM.js","/app/immutable/chunks/C6pRWW6E.js","/app/immutable/chunks/DyNuRYlY.js","/app/immutable/chunks/CI_NLoyz.js","/app/immutable/chunks/p97llLQ-.js","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/CUF7ux4e.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/yICy9AKh.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/CrR64OQD.js","/app/immutable/chunks/3mRiykq7.js","/app/immutable/chunks/OMRwJRL3.js","/app/immutable/chunks/BHf163Hp.js","/app/immutable/chunks/G4G1yJEW.js","/app/immutable/chunks/CIgF-_ah.js","/app/immutable/chunks/BLRsVZLo.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/CfFdOG65.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CNAUnNV3.js","/app/immutable/chunks/-t9Tnunn.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/0Nbop-Gi.js","/app/immutable/chunks/DY0zw3Os.js","/app/immutable/chunks/CXlZTXlW.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/CO6DkG3A.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/BbZxBrDb.js","/app/immutable/chunks/BJb8i1t6.js","/app/immutable/chunks/DZpNEtTX.js","/app/immutable/assets/accessibility.Cjws-1uy.css","/app/immutable/chunks/jdhd6kTw.js","/app/immutable/chunks/CZTlVo5m.js","/app/immutable/chunks/DRahrof_.js","/app/immutable/chunks/C3hWtekV.js","/app/immutable/chunks/C8YkhSPO.js","/app/immutable/chunks/546SeDj4.js","/app/immutable/chunks/CxJmMAMJ.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.CtMzQVzR.css","/app/immutable/nodes/3.WswdjeM1.js","/app/immutable/nodes/4.-Gv7tAts.js","/app/immutable/nodes/5.DdQ7rrQh.js","/app/immutable/chunks/2OgXQdTg.js","/app/immutable/chunks/NL2hP03-.js","/app/immutable/chunks/CoSk1zgY.js","/app/immutable/chunks/CmHp2c79.js","/app/immutable/chunks/BJcmRhm6.js","/app/immutable/chunks/C-YgnCug.js","/app/immutable/chunks/C0fLk--m.js","/app/immutable/chunks/BYFI8VKx.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/D1tUD9NH.js","/app/immutable/assets/AgentCard.4uIFUDRc.css","/app/immutable/chunks/CVcsFKHY.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.Dlk-yueV.css","/app/immutable/chunks/CDjGm44I.js","/app/immutable/chunks/CvAiCjNI.js","/app/immutable/chunks/Da2v32Gp.js","/app/immutable/chunks/3MYqLfq_.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/D_2-9QO1.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/CJ1yzJ2P.js","/app/immutable/chunks/CoZ28bOB.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/JmvNQ7rA.js","/app/immutable/assets/DiagramPresentation.fimBl1wP.css","/app/immutable/chunks/BSfAf3nO.js","/app/immutable/chunks/DpQR-S-c.js","/app/immutable/chunks/ChjpbDRF.js","/app/immutable/chunks/CSROyTjK.js","/app/immutable/chunks/BNVqbH8q.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/CR1rdNrg.js","/app/immutable/chunks/C6K10lBI.js","/app/immutable/chunks/ZMx24H1A.js","/app/immutable/chunks/D7YuvnAv.js","/app/immutable/assets/conversation-turns.Cw6qSz_q.css","/app/immutable/chunks/uLY_XLZ1.js","/app/immutable/chunks/DreNRaSX.js","/app/immutable/chunks/BTRJE4MQ.js","/app/immutable/chunks/cg3lif8G.js","/app/immutable/assets/ChatPanel.CbI83JII.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.OopM0IgM.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.CWcWl9G3.js","/app/immutable/chunks/DyY7UYao.js","/app/immutable/nodes/8.EzsX9Tkq.js","/app/immutable/chunks/bUI5sY1p.js","/app/immutable/chunks/Bsxt04FP.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/assets/dock-tokens.CevytPYC.css","/app/immutable/nodes/9._bY29opp.js","/app/immutable/chunks/CGX0HX83.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/BWFN-ppd.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/C_XjfV5C.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/CaaArvAW.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/CWNwuo8T.js","/app/immutable/chunks/Dg_sRwQ4.js","/app/immutable/chunks/BYrFf537.js","/app/immutable/assets/9.BrOjqpcv.css","/app/immutable/nodes/10.BMoBViEo.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.DeGZKtU6.js","/app/immutable/nodes/12.BeKcHcid.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.C1Kb-bLP.js","/app/immutable/chunks/DKH-Ny4K.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14.Dau7GBym.js","/app/immutable/chunks/tmF9Resq.js","/app/immutable/assets/14.BlmY1boZ.css","/app/immutable/nodes/15.B6REzttZ.js","/app/immutable/assets/15.COfTIH7u.css","/app/immutable/nodes/16.DXc_h5PO.js","/app/immutable/assets/16.Cznk2DRv.css"])))=>i.map(i=>d[i]);
2
2
  import{_ as a,bo as X,t as lt,bq as g,a_ as w,by as dt,b as pt,c as gt}from"../chunks/Hm6HJMdl.js";import{l as k}from"../chunks/BJzHxIyr.js";import{s as ft}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as bt,bk as Tt,aD as c,bH as F,c0 as ht,ay as b,bS as It,W as m,bn as At,bV as U,aA as f,a7 as I,c9 as L,a5 as Ot,bA as Rt,aB as Z,b$ as Pt,b_ as Dt,bO as yt}from"../chunks/B8o4lNgr.js";import{c as S}from"../chunks/CZ41NJh6.js";import{b as V}from"../chunks/D2g8BuR1.js";const Lt=async()=>{window.location.pathname.startsWith("/sandbox")||await a(()=>import("../chunks/CO9cPI-y.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},St=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function Vt(t){return t instanceof Error&&t.name==="TypeError"&&St.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const q=500,xt=8,wt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",o=t.slice(0,t.length-e.length),n=o.indexOf("://"),i=o.slice(0,n),s=o.slice(n+3).split("#")[0].split("?")[0],u=s.indexOf("/"),l=u===-1?s:s.slice(0,u),d=l.slice(l.lastIndexOf("@")+1),p=u===-1?"":s.slice(u);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function x(t){const e=t.replace(wt,Ct);return e.length>q?`${e.slice(0,q)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
3
3
  `).slice(0,xt).map(x).join(`
4
- `)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.BxwgNys0.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,2,14,15,16,17,18,19]),import.meta.url),()=>a(()=>import("../nodes/1.tN8Tzr0D.js"),__vite__mapDeps([20,4,5,21,22,23,24,7,25,3,26,27,28,8,1,2,29]),import.meta.url),()=>a(()=>import("../nodes/2.CipDiEFv.js"),__vite__mapDeps([30,4,5,7,31,10,11,12,13,2,3,8,23,24,25,26,32,33,34,27,28,1,29,17,21,35,18,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,16,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,15,107,108,109,110,111,112,113,114,115,116,117,118,119,22,120,121,122,123,124,125,126,127,128,129,9,130,131,132]),import.meta.url),()=>a(()=>import("../nodes/3.Dpx3c-rl.js"),__vite__mapDeps([133,4,5,32,25,3,26,7,21,22,23,24,27,28,8,1,2,29,37,38,36,39,33,10,11,12,13,34,17,40,18,35]),import.meta.url),()=>a(()=>import("../nodes/4.CMSVuHVO.js"),__vite__mapDeps([134,4,5,7,9,8,3,42,10,11,12,13,2,33,23,24,25,26,34,27,28,1,29,17,32,43,38,44,45,40,46,47,48,18,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88]),import.meta.url),()=>a(()=>import("../nodes/5.Cm0OfeIw.js"),__vite__mapDeps([135,4,5,58,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,65,122,62,63,123,115,71,150,151,152,127,153,154,155,156,82,157,158,159,160,161,162,163,164,165,22,166,167,168,169,61,170,171,103,172,130,131,173,174,175,176,177,178,114,76,109,70,179,180,125,120,181]),import.meta.url),()=>a(()=>import("../nodes/6.Bffpx01N.js"),__vite__mapDeps([182,4,5,25,3,26,28,33,2,10,11,12,13,7,8,23,24,34,27,1,29,17,32,38,22,21,44,45,43,40,153,154,56,51,57,58,59,106,46,47,48,18,49,50,52,93,94,92,67,68,69,95,91,96,97,98,77,90,99,37,36,39,35,100,15,107,89,108,62,63,141,137,140,142,143,144,64,74,145,121,146,155,127,156,82,157,158,159,160,161,122,123,162,163,164,165,65,115,71,166,167,168,169,171,78,41,183]),import.meta.url),()=>a(()=>import("../nodes/7.CaPWhsaS.js"),__vite__mapDeps([184,4,5,58,96,185,18,12,35,11,10,13,2,3,7,8,56,25,26,27,28,24,1,29,32,51,57,23,59,97,150]),import.meta.url),()=>a(()=>import("../nodes/8.HUlPWPAa.js"),__vite__mapDeps([186,4,5,8,3,25,26,24,28,27,7,1,2,29,67,94,92,32,23,57,68,69,95,93,91,10,11,12,13,49,50,40,33,34,17,45,51,52,58,96,97,98,126,102,60,90,77,56,59,99,38,47,48,43,18,37,21,36,39,35,100,22,54,187,66,44,63,188,145,143,166,120,147,118,81,103,73,70,185,176,177,107,79,85,189,71,111,190,191]),import.meta.url),()=>a(()=>import("../nodes/9.CDXOgyhA.js"),__vite__mapDeps([192,4,5,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,58,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,22,116,117,53,54,112,84,85,86,87,88,113,76,119,175,41,127,124,65,73,193,129,194,195,188,75,196,105,187,103,79,197,198,80,199,200,201,172,202,203,109,177,125,204]),import.meta.url),()=>a(()=>import("../nodes/10.DfctsIbO.js"),__vite__mapDeps([205,4,5,36,21,25,3,26,24,10,11,12,13,2,7,8,23,28,124,92,32,67,27,1,29,99,56,51,57,58,59,89,77,173,125,91,197,198,80,33,34,17,193,129,87,88,86,48,43,38,39,194,82,201,81,206]),import.meta.url),()=>a(()=>import("../nodes/11.DeGZKtU6.js"),__vite__mapDeps([207,4,5,58,96,23,24,7,25,3,26]),import.meta.url),()=>a(()=>import("../nodes/12.BeKcHcid.js"),__vite__mapDeps([208,4,5,8,3,27,7,25,26,28,24,1,2,29,23,97,150,209]),import.meta.url),()=>a(()=>import("../nodes/13.C1Kb-bLP.js"),__vite__mapDeps([210,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,211,11,110,127,92,32,67,94,23,57,68,69,95,107,58,96,212]),import.meta.url),()=>a(()=>import("../nodes/14.B5tO7fGp.js"),__vite__mapDeps([213,4,5,49,10,11,12,13,2,3,7,8,50,40,33,23,24,25,26,34,27,28,1,29,17,32,45,51,52,97,150,42,43,38,44,46,47,48,18,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88,161,90,91,92,93,94,95,96,98,99,100,106,15,107,89,108,122,123,162,101,111,170,153,154,141,137,140,142,143,144,145,121,146,155,127,156,157,158,159,160,163,164,165,22,115,166,167,168,169,171,103,172,130,131,173,174,211,214,215,191]),import.meta.url),()=>a(()=>import("../nodes/15.B6REzttZ.js"),__vite__mapDeps([216,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,32,13,127,214,48,43,38,217]),import.meta.url),()=>a(()=>import("../nodes/16.DdEDRsVP.js"),__vite__mapDeps([218,4,5,48,8,3,43,38,23,24,7,25,26,27,28,1,2,29,10,11,12,13,32,121,64,33,34,17,49,50,40,45,51,52,115,71,83,93,94,92,67,57,68,69,95,91,58,96,97,98,102,60,79,37,21,36,39,18,35,219]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock":[14],"/hud":[16,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
4
+ `)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.BUEIE24N.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,2,14,15,16,17,18,19]),import.meta.url),()=>a(()=>import("../nodes/1.BKC59JW5.js"),__vite__mapDeps([20,4,5,21,22,23,24,7,25,3,26,27,28,8,1,2,29]),import.meta.url),()=>a(()=>import("../nodes/2.BsBA5i5n.js"),__vite__mapDeps([30,4,5,7,31,10,11,12,13,2,3,8,23,24,25,26,32,33,34,27,28,1,29,17,21,35,18,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,16,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,15,107,108,109,110,111,112,113,114,115,116,117,118,119,22,120,121,122,123,124,125,126,127,128,129,9,130,131,132]),import.meta.url),()=>a(()=>import("../nodes/3.WswdjeM1.js"),__vite__mapDeps([133,4,5,32,25,3,26,7,21,22,23,24,27,28,8,1,2,29,37,38,36,39,33,10,11,12,13,34,17,40,18,35]),import.meta.url),()=>a(()=>import("../nodes/4.-Gv7tAts.js"),__vite__mapDeps([134,4,5,7,9,8,3,42,10,11,12,13,2,33,23,24,25,26,34,27,28,1,29,17,32,43,38,44,45,40,46,47,48,18,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88]),import.meta.url),()=>a(()=>import("../nodes/5.DdQ7rrQh.js"),__vite__mapDeps([135,4,5,58,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,65,122,62,63,123,115,71,150,151,152,127,153,154,155,156,82,157,158,159,160,161,162,163,164,165,22,166,167,168,169,61,170,171,103,172,130,131,173,174,175,176,177,178,114,76,109,70,179,180,125,120,181]),import.meta.url),()=>a(()=>import("../nodes/6.OopM0IgM.js"),__vite__mapDeps([182,4,5,25,3,26,28,33,2,10,11,12,13,7,8,23,24,34,27,1,29,17,32,38,22,21,44,45,43,40,153,154,56,51,57,58,59,106,46,47,48,18,49,50,52,93,94,92,67,68,69,95,91,96,97,98,77,90,99,37,36,39,35,100,15,107,89,108,62,63,141,137,140,142,143,144,64,74,145,121,146,155,127,156,82,157,158,159,160,161,122,123,162,163,164,165,65,115,71,166,167,168,169,171,78,41,183]),import.meta.url),()=>a(()=>import("../nodes/7.CWcWl9G3.js"),__vite__mapDeps([184,4,5,58,96,185,18,12,35,11,10,13,2,3,7,8,56,25,26,27,28,24,1,29,32,51,57,23,59,97,150]),import.meta.url),()=>a(()=>import("../nodes/8.EzsX9Tkq.js"),__vite__mapDeps([186,4,5,8,3,25,26,24,28,27,7,1,2,29,67,94,92,32,23,57,68,69,95,93,91,10,11,12,13,49,50,40,33,34,17,45,51,52,58,96,97,98,126,102,60,90,77,56,59,99,38,47,48,43,18,37,21,36,39,35,100,22,54,187,66,44,63,188,145,143,166,120,147,118,81,103,73,70,185,176,177,107,79,85,189,71,111,190,191]),import.meta.url),()=>a(()=>import("../nodes/9._bY29opp.js"),__vite__mapDeps([192,4,5,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,58,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,22,116,117,53,54,112,84,85,86,87,88,113,76,119,175,41,127,124,65,73,193,129,194,195,188,75,196,105,187,103,79,197,198,80,199,200,201,172,202,203,109,177,125,204]),import.meta.url),()=>a(()=>import("../nodes/10.BMoBViEo.js"),__vite__mapDeps([205,4,5,36,21,25,3,26,24,10,11,12,13,2,7,8,23,28,124,92,32,67,27,1,29,99,56,51,57,58,59,89,77,173,125,91,197,198,80,33,34,17,193,129,87,88,86,48,43,38,39,194,82,201,81,206]),import.meta.url),()=>a(()=>import("../nodes/11.DeGZKtU6.js"),__vite__mapDeps([207,4,5,58,96,23,24,7,25,3,26]),import.meta.url),()=>a(()=>import("../nodes/12.BeKcHcid.js"),__vite__mapDeps([208,4,5,8,3,27,7,25,26,28,24,1,2,29,23,97,150,209]),import.meta.url),()=>a(()=>import("../nodes/13.C1Kb-bLP.js"),__vite__mapDeps([210,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,211,11,110,127,92,32,67,94,23,57,68,69,95,107,58,96,212]),import.meta.url),()=>a(()=>import("../nodes/14.Dau7GBym.js"),__vite__mapDeps([213,4,5,49,10,11,12,13,2,3,7,8,50,40,33,23,24,25,26,34,27,28,1,29,17,32,45,51,52,97,150,42,43,38,44,46,47,48,18,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88,161,90,91,92,93,94,95,96,98,99,100,106,15,107,89,108,122,123,162,101,111,170,153,154,141,137,140,142,143,144,145,121,146,155,127,156,157,158,159,160,163,164,165,22,115,166,167,168,169,171,103,172,130,131,173,174,211,214,215,191]),import.meta.url),()=>a(()=>import("../nodes/15.B6REzttZ.js"),__vite__mapDeps([216,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,32,13,127,214,48,43,38,217]),import.meta.url),()=>a(()=>import("../nodes/16.DXc_h5PO.js"),__vite__mapDeps([218,4,5,48,8,3,43,38,23,24,7,25,26,27,28,1,2,29,10,11,12,13,32,121,64,33,34,17,49,50,40,45,51,52,115,71,83,93,94,92,67,57,68,69,95,91,58,96,97,98,102,60,79,37,21,36,39,18,35,219]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock":[14],"/hud":[16,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,s as r}from"../chunks/DHBcRJcB.js";export{o as load_css,r as start};
@@ -1 +1 @@
1
- import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/Hm6HJMdl.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as y,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as D}from"../chunks/Czh4UePJ.js";import{x as ie,I as C,D as ae}from"../chunks/BvqaU45v.js";import{w as ce}from"../chunks/BGjI9Y6a.js";import{Hp as ue}from"../chunks/knTaiA68.js";import{initAppStore as de}from"../chunks/DRRd_Im2.js";import{F as le,D as fe}from"../chunks/D-cv-J4E.js";import{i as me}from"../chunks/JGMDPc6g.js";const pe=!1,we=!1,ve=!0,Me=Object.freeze(Object.defineProperty({__proto__:null,csr:ve,prerender:we,ssr:pe},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){const f=de(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const V=3,j=4,be=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<be||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function he(){return document.querySelector("webview:hover")!==null}function ye(e){e!=="back"&&e!=="forward"||he()||S(e)}function Y(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function U(e){Y(e)||(e.button===V?(e.preventDefault(),S("back")):e.button===j&&(e.preventDefault(),S("forward")))}function F(e){Y(e)||(e.button===V||e.button===j)&&e.preventDefault()}function Ae(e=window){return e.addEventListener("mouseup",U,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",U,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function Ee(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function q(e,t){if(new.target)return L({component:q,...e});P(t,!0);const r=()=>Z(m,"$resolvedLocale$",f),[f,p]=ee();let s=O(t,"children",7);const l=ge(ue,{startSagas:()=>[]},void 0);re(l);const m=le(),v=fe();se(()=>{const n=!me()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},R=()=>c(!1),H=()=>c(!0),z=v.subscribe(_=>{d=_,a()}),M=window.electronAPI,k=ie();let E;a(),n&&(k?E=M?.on?.("window:focus",c):(window.addEventListener("blur",R),window.addEventListener("focus",H)));const J=Ee(document.documentElement),Q=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const X=Ae(window),B=window.electronAPI?.on?.(C.APP.HISTORY_NAVIGATE,ye);return()=>{z(),J.destroy(),E?M.offById("window:focus",E):n&&!k&&(window.removeEventListener("blur",R),window.removeEventListener("focus",H)),document.documentElement.removeAttribute("data-window-blurred"),Q(),X(),B&&window.electronAPI.offById(C.APP.HISTORY_NAVIGATE,B)}});var u={get children(){return s()},set children(n){s(n),$()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);D(d,()=>s()??W),y(n,o)}),y(e,w);var i=T(u);return p(),i}const x="/dev-console";function _e(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Se(e){return e===G||e.startsWith(`${G}/`)}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(_e(window.location.pathname)||Se(window.location.pathname));var p={get children(){return r()},set children(u){r(u),$()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);D(g,()=>r()??W),y(u,w)},v=u=>{q(u,{get children(){return r()}})};te(l,u=>{f?u(m):u(v,-1)})}return y(e,s),T(p)}var Le=new Set(["$$slots","$$events","$$legacy","children"]);function Oe(e,t){if(new.target)return L({component:Oe,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Le);var p={get children(){return r()},set children(s){r(s),$()},$set:I,$on:(s,l)=>N(t,s,l)};return K(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);D(v,()=>r()??W),y(s,m)},$$slots:{default:!0}})),T(p)}export{Oe as component,Me as universal};
1
+ import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/Hm6HJMdl.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as y,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as D}from"../chunks/Czh4UePJ.js";import{x as ie,I as C,D as ae}from"../chunks/BvqaU45v.js";import{w as ce}from"../chunks/BGjI9Y6a.js";import{Hp as ue}from"../chunks/knTaiA68.js";import{initAppStore as de}from"../chunks/DRRd_Im2.js";import{F as le,D as fe}from"../chunks/D-cv-J4E.js";import{i as me}from"../chunks/C0zMyiSJ.js";const pe=!1,we=!1,ve=!0,Me=Object.freeze(Object.defineProperty({__proto__:null,csr:ve,prerender:we,ssr:pe},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){const f=de(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const V=3,j=4,be=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<be||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function he(){return document.querySelector("webview:hover")!==null}function ye(e){e!=="back"&&e!=="forward"||he()||S(e)}function Y(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function U(e){Y(e)||(e.button===V?(e.preventDefault(),S("back")):e.button===j&&(e.preventDefault(),S("forward")))}function F(e){Y(e)||(e.button===V||e.button===j)&&e.preventDefault()}function Ae(e=window){return e.addEventListener("mouseup",U,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",U,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function Ee(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function q(e,t){if(new.target)return L({component:q,...e});P(t,!0);const r=()=>Z(m,"$resolvedLocale$",f),[f,p]=ee();let s=O(t,"children",7);const l=ge(ue,{startSagas:()=>[]},void 0);re(l);const m=le(),v=fe();se(()=>{const n=!me()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},R=()=>c(!1),H=()=>c(!0),z=v.subscribe(_=>{d=_,a()}),M=window.electronAPI,k=ie();let E;a(),n&&(k?E=M?.on?.("window:focus",c):(window.addEventListener("blur",R),window.addEventListener("focus",H)));const J=Ee(document.documentElement),Q=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const X=Ae(window),B=window.electronAPI?.on?.(C.APP.HISTORY_NAVIGATE,ye);return()=>{z(),J.destroy(),E?M.offById("window:focus",E):n&&!k&&(window.removeEventListener("blur",R),window.removeEventListener("focus",H)),document.documentElement.removeAttribute("data-window-blurred"),Q(),X(),B&&window.electronAPI.offById(C.APP.HISTORY_NAVIGATE,B)}});var u={get children(){return s()},set children(n){s(n),$()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);D(d,()=>s()??W),y(n,o)}),y(e,w);var i=T(u);return p(),i}const x="/dev-console";function _e(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Se(e){return e===G||e.startsWith(`${G}/`)}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(_e(window.location.pathname)||Se(window.location.pathname));var p={get children(){return r()},set children(u){r(u),$()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);D(g,()=>r()??W),y(u,w)},v=u=>{q(u,{get children(){return r()}})};te(l,u=>{f?u(m):u(v,-1)})}return y(e,s),T(p)}var Le=new Set(["$$slots","$$events","$$legacy","children"]);function Oe(e,t){if(new.target)return L({component:Oe,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Le);var p={get children(){return r()},set children(s){r(s),$()},$set:I,$on:(s,l)=>N(t,s,l)};return K(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);D(v,()=>r()??W),y(s,m)},$$slots:{default:!0}})),T(p)}export{Oe as component,Me as universal};
@@ -1 +1 @@
1
- import{t as A,a_ as W,by as D,b as E,bo as p,bt as R,br as U}from"../chunks/Hm6HJMdl.js";import{bs as J,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/DW78ZPhK.js";import{p as b}from"../chunks/8DeZuS5J.js";import{F as te,cJ as ae}from"../chunks/P09O58_5.js";import{f as se}from"../chunks/DMAjhyuj.js";var oe=O('<p class="text-sm text-subtle"> </p>'),le=O('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function T(l,o){if(new.target)return A({component:T,...l});J(o,!0);let c=h(()=>b.error),r=h(()=>b.status),v=h(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:D,$on:(i,n)=>E(o,i,n)},j=X(),q=Y(j);{var G=i=>{var n=le(),F=a(n),S=a(F),x=a(S),z=a(x),H=a(z);te(H,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),I=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),u=$(d,!0);k(y=>m(u,y),[()=>p.error_page_status_label({status:e(r)})]),_(t,d)};W(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var P=f(w,2),Q=a(P);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var u=ee();k(y=>m(u,y),[()=>p.error_page_reload_button()]),_(t,u)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(I,t),m(M,d)},[()=>p.error_page_title(),()=>e(c)?.message||p.error_page_unexpected_fallback()]),_(i,n)};W(q,i=>{e(v)||i(G)})}return _(l,j),N(g)}var ie=new Set(["$$slots","$$events","$$legacy"]);function ne(l,o){if(new.target)return A({component:ne,...l});J(o,!0);let c=U(o,ie);var r={$set:D,$on:(v,g)=>E(o,v,g)};return T(l,R(()=>c)),N(r)}export{ne as component};
1
+ import{t as A,a_ as W,by as D,b as E,bo as p,bt as R,br as U}from"../chunks/Hm6HJMdl.js";import{bs as J,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/DHBcRJcB.js";import{p as b}from"../chunks/BV8oXBag.js";import{F as te,cJ as ae}from"../chunks/P09O58_5.js";import{f as se}from"../chunks/DMAjhyuj.js";var oe=O('<p class="text-sm text-subtle"> </p>'),le=O('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function T(l,o){if(new.target)return A({component:T,...l});J(o,!0);let c=h(()=>b.error),r=h(()=>b.status),v=h(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:D,$on:(i,n)=>E(o,i,n)},j=X(),q=Y(j);{var G=i=>{var n=le(),F=a(n),S=a(F),x=a(S),z=a(x),H=a(z);te(H,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),I=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),u=$(d,!0);k(y=>m(u,y),[()=>p.error_page_status_label({status:e(r)})]),_(t,d)};W(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var P=f(w,2),Q=a(P);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var u=ee();k(y=>m(u,y),[()=>p.error_page_reload_button()]),_(t,u)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(I,t),m(M,d)},[()=>p.error_page_title(),()=>e(c)?.message||p.error_page_unexpected_fallback()]),_(i,n)};W(q,i=>{e(v)||i(G)})}return _(l,j),N(g)}var ie=new Set(["$$slots","$$events","$$legacy"]);function ne(l,o){if(new.target)return A({component:ne,...l});J(o,!0);let c=U(o,ie);var r={$set:D,$on:(v,g)=>E(o,v,g)};return T(l,R(()=>c)),N(r)}export{ne as component};