@intent-hq/web 2.386.0 → 2.387.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{-VR23WhZ.js → -2rOENSl.js} +1 -1
  3. package/web/app/immutable/chunks/{B4F7GG5Q.js → -hTxjwFO.js} +1 -1
  4. package/web/app/immutable/chunks/{D5xlMOwU.js → 0Kw0mmSW.js} +1 -1
  5. package/web/app/immutable/chunks/{B9kUdNbG.js → 6NStP9u7.js} +1 -1
  6. package/web/app/immutable/chunks/{Dm3wAkDL.js → 6uD0LviT.js} +1 -1
  7. package/web/app/immutable/chunks/{BeUuk8D1.js → 9fNNDfgo.js} +1 -1
  8. package/web/app/immutable/chunks/{COBhx_l-.js → AXzVloaq.js} +1 -1
  9. package/web/app/immutable/chunks/{DDdsJrHq.js → AfZNmzF0.js} +1 -1
  10. package/web/app/immutable/chunks/{D2Tzo4Hp.js → B-bGycam.js} +1 -1
  11. package/web/app/immutable/chunks/{Bf_4e4N2.js → B0RPkrmZ.js} +1 -1
  12. package/web/app/immutable/chunks/{Bv_0mmoe.js → B1TtNV9x.js} +1 -1
  13. package/web/app/immutable/chunks/{CM9GoLV5.js → B3QTKmHy.js} +1 -1
  14. package/web/app/immutable/chunks/{DaOKbar2.js → B3ziY5oo.js} +2 -2
  15. package/web/app/immutable/chunks/{BolJpU8l.js → B6-aVrNf.js} +4 -4
  16. package/web/app/immutable/chunks/{D5A9atQX.js → B79iAtSu.js} +2 -2
  17. package/web/app/immutable/chunks/{Di_ao8Rc.js → B7esq_NU.js} +1 -1
  18. package/web/app/immutable/chunks/{bojY7ttK.js → B9BALnhr.js} +1 -1
  19. package/web/app/immutable/chunks/{BYYtBM5R.js → B9GWGWit.js} +1 -1
  20. package/web/app/immutable/chunks/{BCFB88Wl.js → BAAQt1ZW.js} +1 -1
  21. package/web/app/immutable/chunks/{Bk14_fvY.js → BC5HDfRR.js} +1 -1
  22. package/web/app/immutable/chunks/BC6tIXxU.js +1 -0
  23. package/web/app/immutable/chunks/{HcbkpXC1.js → BFMlH_mp.js} +2 -2
  24. package/web/app/immutable/chunks/{h5ZeHogL.js → BFi0zRRv.js} +1 -1
  25. package/web/app/immutable/chunks/{fC3yz20p.js → BH3eRhvI.js} +1 -1
  26. package/web/app/immutable/chunks/{Dyx6ysl7.js → BIfjK4Wy.js} +1 -1
  27. package/web/app/immutable/chunks/{Cpw2gXhG.js → BJEUIKTL.js} +1 -1
  28. package/web/app/immutable/chunks/{3Kr2ijlK.js → BJbm_MWC.js} +1 -1
  29. package/web/app/immutable/chunks/{BweHPPaS.js → BK0IkwFP.js} +2 -2
  30. package/web/app/immutable/chunks/{BqCTtUhB.js → BLMhg4vm.js} +1 -1
  31. package/web/app/immutable/chunks/{DFKO8V-Y.js → BLhJfI63.js} +1 -1
  32. package/web/app/immutable/chunks/{9AJtSub0.js → BNDTLRE1.js} +1 -1
  33. package/web/app/immutable/chunks/{COsxNPUV.js → BOyRg328.js} +1 -1
  34. package/web/app/immutable/chunks/{BbWnSSTS.js → BP-cDE7g.js} +1 -1
  35. package/web/app/immutable/chunks/{DOir9M0E.js → BPscmH6M.js} +1 -1
  36. package/web/app/immutable/chunks/{DtQHtXEW.js → BQ8hOnRo.js} +1 -1
  37. package/web/app/immutable/chunks/{BCuI_zgX.js → BQhBnAuP.js} +1 -1
  38. package/web/app/immutable/chunks/{Dpvv-9m3.js → BRRnx9NG.js} +1 -1
  39. package/web/app/immutable/chunks/{C8TrySMt.js → BSt1DBgt.js} +1 -1
  40. package/web/app/immutable/chunks/{IG43rVtJ.js → BSu_WKe5.js} +1 -1
  41. package/web/app/immutable/chunks/{DY5rw8pn.js → BUsnh1ZW.js} +1 -1
  42. package/web/app/immutable/chunks/{DNDJdxKs.js → BVYisuIY.js} +1 -1
  43. package/web/app/immutable/chunks/{CF_a5Llj.js → BVmCM-pH.js} +1 -1
  44. package/web/app/immutable/chunks/{DQvAX2eX.js → BWJopR_X.js} +1 -1
  45. package/web/app/immutable/chunks/{DIWzdBfB.js → BXlN4FOb.js} +1 -1
  46. package/web/app/immutable/chunks/{C6Wi6O6n.js → BaOiWDrc.js} +1 -1
  47. package/web/app/immutable/chunks/{Nrq0Uf9_.js → Bajx4HLb.js} +1 -1
  48. package/web/app/immutable/chunks/{DdRupUfV.js → Bbae4OrB.js} +2 -2
  49. package/web/app/immutable/chunks/{i8jM24jD.js → Bbs1UlDC.js} +1 -1
  50. package/web/app/immutable/chunks/{DyLERSuu.js → BcrN1yjB.js} +1 -1
  51. package/web/app/immutable/chunks/{0y7aytZM.js → BfQFKWzJ.js} +1 -1
  52. package/web/app/immutable/chunks/{Df4a242o.js → Bj4IsLvN.js} +1 -1
  53. package/web/app/immutable/chunks/{DBwdk2-0.js → BkcO6l5G.js} +1 -1
  54. package/web/app/immutable/chunks/{C6afU4he.js → Bl72eYFn.js} +1 -1
  55. package/web/app/immutable/chunks/{TN7R9Ny0.js → BlAMrm5X.js} +1 -1
  56. package/web/app/immutable/chunks/{BPDyvu9A.js → BlJAndP6.js} +1 -1
  57. package/web/app/immutable/chunks/{B1xM1EBM.js → Blt813S0.js} +1 -1
  58. package/web/app/immutable/chunks/{Pyf1FzKM.js → Bm3beBRj.js} +1 -1
  59. package/web/app/immutable/chunks/{CFdI48b2.js → BmM9C7Gu.js} +1 -1
  60. package/web/app/immutable/chunks/{BqrahRdk.js → Bmm_g7di.js} +4 -4
  61. package/web/app/immutable/chunks/{3LCOBHm6.js → BoUQWR1c.js} +1 -1
  62. package/web/app/immutable/chunks/{Cwg3XF5F.js → BoZ2kJyE.js} +1 -1
  63. package/web/app/immutable/chunks/{Dde9Z_vp.js → BpXDXz8J.js} +1 -1
  64. package/web/app/immutable/chunks/{DX2U4Mz9.js → BpwKnO7b.js} +3 -3
  65. package/web/app/immutable/chunks/{CQ5BHnSj.js → Bq7euxCs.js} +1 -1
  66. package/web/app/immutable/chunks/{CGUVvS8r.js → Bsdq-idi.js} +1 -1
  67. package/web/app/immutable/chunks/{DbUDL_oo.js → Bsru2omj.js} +1 -1
  68. package/web/app/immutable/chunks/{DEKjIPd8.js → Bstq-Mm1.js} +1 -1
  69. package/web/app/immutable/chunks/{COlfJVPs.js → Bt11uxE8.js} +4 -4
  70. package/web/app/immutable/chunks/{DxWgWHgi.js → BtchneSc.js} +1 -1
  71. package/web/app/immutable/chunks/{QA00-uqv.js → Bu67WlMm.js} +1 -1
  72. package/web/app/immutable/chunks/{CfnXjWQL.js → BuTcdZo7.js} +1 -1
  73. package/web/app/immutable/chunks/{aixoUWDq.js → BuXXIZt7.js} +1 -1
  74. package/web/app/immutable/chunks/{E8oicBhU.js → BudPFdIj.js} +1 -1
  75. package/web/app/immutable/chunks/{DxuwadpA.js → BuiwW61u.js} +1 -1
  76. package/web/app/immutable/chunks/{DJb2lMGn.js → BvjgIPau.js} +1 -1
  77. package/web/app/immutable/chunks/{Dh-HeAnQ.js → BxTCsbTV.js} +1 -1
  78. package/web/app/immutable/chunks/{awY5HvZY.js → ByBw1QkA.js} +1 -1
  79. package/web/app/immutable/chunks/{CnQVxh95.js → Byr10Y9u.js} +1 -1
  80. package/web/app/immutable/chunks/{DfgH7-YK.js → C-y1uW-U.js} +1 -1
  81. package/web/app/immutable/chunks/{De2a277N.js → C07_BcWL.js} +1 -1
  82. package/web/app/immutable/chunks/{maZzJmVw.js → C2zt__Wj.js} +1 -1
  83. package/web/app/immutable/chunks/{B-MjuJTx.js → C4t02ICg.js} +2 -2
  84. package/web/app/immutable/chunks/{CnMzOGNL.js → C53ouDFl.js} +1 -1
  85. package/web/app/immutable/chunks/{YbqMJoDi.js → C6rcni5e.js} +1 -1
  86. package/web/app/immutable/chunks/{Ksiiix3Q.js → C7ajdkO4.js} +1 -1
  87. package/web/app/immutable/chunks/{DU1c0itA.js → C8Wy-uTf.js} +1 -1
  88. package/web/app/immutable/chunks/{BCiWc-GH.js → CACH34FC.js} +1 -1
  89. package/web/app/immutable/chunks/{CY0EK8Cm.js → CAiDxi6i.js} +3 -3
  90. package/web/app/immutable/chunks/{bIL0xbKX.js → CBbdbU2x.js} +1 -1
  91. package/web/app/immutable/chunks/{BB-hf8IY.js → CCzan1r_.js} +4 -4
  92. package/web/app/immutable/chunks/{BE08e7Se.js → CD9WEaPg.js} +1 -1
  93. package/web/app/immutable/chunks/{EQgYvydQ.js → CEap7Fwz.js} +1 -1
  94. package/web/app/immutable/chunks/{lSLkjC_I.js → CG28d89U.js} +1 -1
  95. package/web/app/immutable/chunks/{DeY70dof.js → CGdXewiA.js} +1 -1
  96. package/web/app/immutable/chunks/{_HPNXgkR.js → CHApvLbz.js} +3 -3
  97. package/web/app/immutable/chunks/{CdGl_2eX.js → CIWQMI37.js} +1 -1
  98. package/web/app/immutable/chunks/{BRPJcG-m.js → CIlqcFRn.js} +1 -1
  99. package/web/app/immutable/chunks/{DcMTwn77.js → CJ7hw6mW.js} +1 -1
  100. package/web/app/immutable/chunks/{DvnO7gWT.js → CKcb8dge.js} +3 -3
  101. package/web/app/immutable/chunks/{Ly7eBIj5.js → CMsGHYhn.js} +1 -1
  102. package/web/app/immutable/chunks/{v7JbBbwR.js → CNl453qs.js} +1 -1
  103. package/web/app/immutable/chunks/{DJJ2Xrlq.js → COVS9Crf.js} +1 -1
  104. package/web/app/immutable/chunks/{CaMRSd1-.js → CPdyCf2B.js} +1 -1
  105. package/web/app/immutable/chunks/{CGHwi-2H.js → CQA1q0F9.js} +1 -1
  106. package/web/app/immutable/chunks/{D9_wDL10.js → CS6HVyHp.js} +1 -1
  107. package/web/app/immutable/chunks/{DgzMHcMD.js → CSlvwZw1.js} +1 -1
  108. package/web/app/immutable/chunks/{QIFiwjW0.js → CTVz-pXS.js} +3 -3
  109. package/web/app/immutable/chunks/{zFAkpaJn.js → CTowDLQa.js} +1 -1
  110. package/web/app/immutable/chunks/{BwVjpKmH.js → CULu7FSf.js} +1 -1
  111. package/web/app/immutable/chunks/{XMluVOSf.js → CUxtJz1o.js} +1 -1
  112. package/web/app/immutable/chunks/{BVyOECUU.js → CV5qbjYN.js} +1 -1
  113. package/web/app/immutable/chunks/{Bj4j6g-o.js → CVd7xnlx.js} +1 -1
  114. package/web/app/immutable/chunks/{9R_52XLX.js → CW4vzFn_.js} +1 -1
  115. package/web/app/immutable/chunks/{TXPMw3n4.js → CY2g-8Xo.js} +1 -1
  116. package/web/app/immutable/chunks/{BDbFQqI8.js → CY4ZK6xA.js} +3 -3
  117. package/web/app/immutable/chunks/{BXHbm15d.js → CZB2ndi9.js} +1 -1
  118. package/web/app/immutable/chunks/{CjLfgoGI.js → CZex5Cac.js} +1 -1
  119. package/web/app/immutable/chunks/{7EQMYysM.js → C_4qh07f.js} +1 -1
  120. package/web/app/immutable/chunks/{MoxNukrR.js → CbQ8NVeY.js} +1 -1
  121. package/web/app/immutable/chunks/{-8AxW0IA.js → CbQYR4R2.js} +3 -3
  122. package/web/app/immutable/chunks/{DY1YVoxv.js → CcgSaDDB.js} +1 -1
  123. package/web/app/immutable/chunks/CeeeYtIE.js +1 -0
  124. package/web/app/immutable/chunks/{De0cdeOU.js → CfIVswBm.js} +1 -1
  125. package/web/app/immutable/chunks/{CvSLeFQo.js → CfaCrhAh.js} +1 -1
  126. package/web/app/immutable/chunks/{CSb1CnpN.js → CggFXl4B.js} +1 -1
  127. package/web/app/immutable/chunks/{Dt3xwKL6.js → Chg0KuUy.js} +2 -2
  128. package/web/app/immutable/chunks/{3Qz3qAhk.js → Ci75CkmK.js} +1 -1
  129. package/web/app/immutable/chunks/{BVcaPXq9.js → CisSEUth.js} +1 -1
  130. package/web/app/immutable/chunks/{D6_ybykj.js → Ck8ZqpbB.js} +1 -1
  131. package/web/app/immutable/chunks/{DKupjKLn.js → ClQE9kQf.js} +1 -1
  132. package/web/app/immutable/chunks/{DSDM77x3.js → ClSbVEed.js} +1 -1
  133. package/web/app/immutable/chunks/{DAVG7sIL.js → CmhKJ6Ie.js} +1 -1
  134. package/web/app/immutable/chunks/{tHETzssD.js → CndJcn8K.js} +1 -1
  135. package/web/app/immutable/chunks/{BIkt0YE0.js → Co9CFvqw.js} +1 -1
  136. package/web/app/immutable/chunks/{Bb8ARnaK.js → CoAfXTHr.js} +1 -1
  137. package/web/app/immutable/chunks/CoCy46Yy.js +1 -0
  138. package/web/app/immutable/chunks/{DXDbxM_W.js → CoOgBJzu.js} +1 -1
  139. package/web/app/immutable/chunks/{BYJh9adv.js → Cq8MD_3v.js} +1 -1
  140. package/web/app/immutable/chunks/{DsOS7N8Z.js → CqGq5PHb.js} +1 -1
  141. package/web/app/immutable/chunks/{BmLlDCoW.js → CrL2Nk6a.js} +1 -1
  142. package/web/app/immutable/chunks/{BNJkKc31.js → CrZlcn4Y.js} +1 -1
  143. package/web/app/immutable/chunks/{Bu3PKqut.js → CrpUtGFn.js} +1 -1
  144. package/web/app/immutable/chunks/{BthojcF8.js → CrvtnK13.js} +2 -2
  145. package/web/app/immutable/chunks/{BNFvOw36.js → CrwLq8nY.js} +1 -1
  146. package/web/app/immutable/chunks/{BHJpo3VA.js → Cs-DtA5c.js} +1 -1
  147. package/web/app/immutable/chunks/{DcLVN86K.js → CtDIyzmZ.js} +1 -1
  148. package/web/app/immutable/chunks/{D5evzUZd.js → Cuqu6DgP.js} +1 -1
  149. package/web/app/immutable/chunks/{Drf1gLyo.js → Cw2fqKk9.js} +1 -1
  150. package/web/app/immutable/chunks/{FQkCsxt2.js → CwCTYQp7.js} +1 -1
  151. package/web/app/immutable/chunks/{DbxqdYAO.js → CxMr7p-O.js} +3 -3
  152. package/web/app/immutable/chunks/{DZjSAGjX.js → Cyr0PKv3.js} +1 -1
  153. package/web/app/immutable/chunks/{mRUS_S7Z.js → CzTSi5lc.js} +1 -1
  154. package/web/app/immutable/chunks/{BGo6FK-0.js → CzjElr82.js} +1 -1
  155. package/web/app/immutable/chunks/{BKFxm3WK.js → D-DyBHf9.js} +1 -1
  156. package/web/app/immutable/chunks/{CFB2mNds.js → D-aEx3GL.js} +2 -2
  157. package/web/app/immutable/chunks/{COSIRxZC.js → D1R1FWjP.js} +1 -1
  158. package/web/app/immutable/chunks/{B18ybwa0.js → D1YPh_5n.js} +1 -1
  159. package/web/app/immutable/chunks/{ByZL9dMf.js → D24Of5Kd.js} +1 -1
  160. package/web/app/immutable/chunks/{PkPZtGfM.js → D25lWS8Q.js} +1 -1
  161. package/web/app/immutable/chunks/{CW979n9w.js → D2ch709U.js} +1 -1
  162. package/web/app/immutable/chunks/{yqEyUNVG.js → D2kIeaeO.js} +1 -1
  163. package/web/app/immutable/chunks/{C4M_mNFP.js → D2y-zN_4.js} +1 -1
  164. package/web/app/immutable/chunks/{UQ6MIVTw.js → D3waRWO1.js} +1 -1
  165. package/web/app/immutable/chunks/{2aKRVAvL.js → D48_y-cl.js} +1 -1
  166. package/web/app/immutable/chunks/{x-RVzKqZ.js → D49zWKPf.js} +1 -1
  167. package/web/app/immutable/chunks/{CIoJPvjg.js → D5wnbxHp.js} +1 -1
  168. package/web/app/immutable/chunks/{C21Z9LLF.js → D7AX9X0W.js} +1 -1
  169. package/web/app/immutable/chunks/{BtMIAxno.js → DCL7QtVR.js} +1 -1
  170. package/web/app/immutable/chunks/{0b3rkAam.js → DEQDOTA1.js} +1 -1
  171. package/web/app/immutable/chunks/{BdY8OnZP.js → DGK5CsQK.js} +1 -1
  172. package/web/app/immutable/chunks/{BdlYeRHB.js → DGj-492Z.js} +2 -2
  173. package/web/app/immutable/chunks/{W05hyx94.js → DIEHuZ8f.js} +1 -1
  174. package/web/app/immutable/chunks/{CJke1tnU.js → DIoT8eB4.js} +1 -1
  175. package/web/app/immutable/chunks/{CIKXOyvw.js → DJivXy66.js} +2 -2
  176. package/web/app/immutable/chunks/{CUeOEnqq.js → DKeBnsgS.js} +1 -1
  177. package/web/app/immutable/chunks/DLO_0egf.js +1 -0
  178. package/web/app/immutable/chunks/{UnM4qztD.js → DLttsd3i.js} +1 -1
  179. package/web/app/immutable/chunks/{DGdWzkgm.js → DMV5KQix.js} +1 -1
  180. package/web/app/immutable/chunks/{ChKOG1mU.js → DNZCPKpq.js} +1 -1
  181. package/web/app/immutable/chunks/{BhtJVlVx.js → DNnmVx8j.js} +1 -1
  182. package/web/app/immutable/chunks/DP0K41jk.js +1 -0
  183. package/web/app/immutable/chunks/{CaHWSiOY.js → DP2r4UWt.js} +1 -1
  184. package/web/app/immutable/chunks/{21kfe-mS.js → DPG1HUgG.js} +1 -1
  185. package/web/app/immutable/chunks/{r5JNAzEM.js → DPjr22dV.js} +1 -1
  186. package/web/app/immutable/chunks/{CZ5zON0R.js → DPmNtGFj.js} +1 -1
  187. package/web/app/immutable/chunks/{Bb-hI5du.js → DQ8CqY9L.js} +2 -2
  188. package/web/app/immutable/chunks/{3IpMTtMx.js → DQpDIYyw.js} +1 -1
  189. package/web/app/immutable/chunks/{B8foSZsl.js → DRLJuUwT.js} +1 -1
  190. package/web/app/immutable/chunks/{CTTICX_5.js → DRXgE6SQ.js} +1 -1
  191. package/web/app/immutable/chunks/{Bn4F-JIh.js → DU1ubslo.js} +1 -1
  192. package/web/app/immutable/chunks/{BIcof04i.js → DUFN_Pzm.js} +1 -1
  193. package/web/app/immutable/chunks/{BcYVm7io.js → DWqaYE81.js} +1 -1
  194. package/web/app/immutable/chunks/{CB8gRmKb.js → DXI99C-u.js} +1 -1
  195. package/web/app/immutable/chunks/{C9ij7Z2h.js → D_5u7gP_.js} +1 -1
  196. package/web/app/immutable/chunks/{BD7jFvJp.js → D_AhXAPc.js} +1 -1
  197. package/web/app/immutable/chunks/{COS4Sgoi.js → DaMlaKH_.js} +2 -2
  198. package/web/app/immutable/chunks/{hRfDutUE.js → Db1BGAZN.js} +1 -1
  199. package/web/app/immutable/chunks/{yy2JFRyT.js → DcRqMoeH.js} +1 -1
  200. package/web/app/immutable/chunks/{BWI85bGY.js → Dd3UnPYB.js} +1 -1
  201. package/web/app/immutable/chunks/{CYq58ltZ.js → DdLy5J3P.js} +1 -1
  202. package/web/app/immutable/chunks/{CRUcTVFP.js → DezlVQ1h.js} +1 -1
  203. package/web/app/immutable/chunks/{OMssb4xF.js → Dga6E45c.js} +1 -1
  204. package/web/app/immutable/chunks/{BoEcbLG-.js → DgtVALrr.js} +1 -1
  205. package/web/app/immutable/chunks/{B-4i031c.js → DhVLJG6D.js} +1 -1
  206. package/web/app/immutable/chunks/{BRdQpeCl.js → DkERMj5B.js} +1 -1
  207. package/web/app/immutable/chunks/{A3z9XWMi.js → DkJYBjJg.js} +1 -1
  208. package/web/app/immutable/chunks/{Djah0WfC.js → DkOk28fz.js} +1 -1
  209. package/web/app/immutable/chunks/{kAav5o2h.js → Dk_Hc5oq.js} +1 -1
  210. package/web/app/immutable/chunks/{Dbr8gjWS.js → DlfbUU6o.js} +1 -1
  211. package/web/app/immutable/chunks/{DdjeekcY.js → DlwTP-AJ.js} +1 -1
  212. package/web/app/immutable/chunks/{6SOEgr71.js → Dm98YBgx.js} +3 -3
  213. package/web/app/immutable/chunks/{DAI6QH7D.js → DmWvRjk6.js} +1 -1
  214. package/web/app/immutable/chunks/{CyHe7TdT.js → DmpdpJAo.js} +1 -1
  215. package/web/app/immutable/chunks/{DIad5c9_.js → Dn_aCJkC.js} +1 -1
  216. package/web/app/immutable/chunks/{DIQ-xR1q.js → Do-SaITx.js} +1 -1
  217. package/web/app/immutable/chunks/{BPpACIC2.js → DoY7_Wfd.js} +1 -1
  218. package/web/app/immutable/chunks/{Z8DHXl17.js → DqEoTQds.js} +1 -1
  219. package/web/app/immutable/chunks/{TyVpf8MX.js → DtVrXGBM.js} +1 -1
  220. package/web/app/immutable/chunks/{CsilY7l9.js → DtkIwON_.js} +1 -1
  221. package/web/app/immutable/chunks/{CDxV78M0.js → DuoQQplG.js} +1 -1
  222. package/web/app/immutable/chunks/{Y_tkjygB.js → DwGyIIXK.js} +1 -1
  223. package/web/app/immutable/chunks/{LdXAlc1O.js → DwbEs_9r.js} +1 -1
  224. package/web/app/immutable/chunks/{CvusaaYc.js → DwiE5WsI.js} +1 -1
  225. package/web/app/immutable/chunks/{BW2en5Js.js → DxSE2XEK.js} +1 -1
  226. package/web/app/immutable/chunks/{jyNUu-ZR.js → DxnZvDv0.js} +1 -1
  227. package/web/app/immutable/chunks/{Bx7gCv2M.js → Dy9FYRX8.js} +1 -1
  228. package/web/app/immutable/chunks/{yMcNgg0D.js → DzTn7KcX.js} +1 -1
  229. package/web/app/immutable/chunks/{rsUVVEzx.js → ELYZilX0.js} +1 -1
  230. package/web/app/immutable/chunks/{DOZ82gYM.js → ExR0UceK.js} +1 -1
  231. package/web/app/immutable/chunks/{BlRGZv8u.js → FLpsgWeB.js} +1 -1
  232. package/web/app/immutable/chunks/{C1La-Fme.js → GTsIF2uA.js} +1 -1
  233. package/web/app/immutable/chunks/{BpLxj3s3.js → HLNbJ-7M.js} +1 -1
  234. package/web/app/immutable/chunks/{D22j4iWy.js → Hi2H4bj8.js} +1 -1
  235. package/web/app/immutable/chunks/{dFhS46gw.js → I9b9apiN.js} +1 -1
  236. package/web/app/immutable/chunks/{UqcU95a7.js → Idk978zJ.js} +1 -1
  237. package/web/app/immutable/chunks/{C_wfHKmM.js → Ii0VTY5h.js} +1 -1
  238. package/web/app/immutable/chunks/{CTqRHXfu.js → ItBm4ElA.js} +1 -1
  239. package/web/app/immutable/chunks/{Dduwpj0a.js → Jk9a4xPx.js} +1 -1
  240. package/web/app/immutable/chunks/{B0kNPCxU.js → KtEuoG00.js} +1 -1
  241. package/web/app/immutable/chunks/{Btst3lgy.js → L3K71tUU.js} +1 -1
  242. package/web/app/immutable/chunks/{DzpuLv6U.js → Lk7a_7W9.js} +1 -1
  243. package/web/app/immutable/chunks/{DpxbS0Pj.js → Mmc_61iE.js} +1 -1
  244. package/web/app/immutable/chunks/{7i0OJtNQ.js → R5lmOJFS.js} +1 -1
  245. package/web/app/immutable/chunks/{8jO_MBKF.js → RTRAqswA.js} +1 -1
  246. package/web/app/immutable/chunks/{BOnTc4ny.js → T-5C1GqS.js} +1 -1
  247. package/web/app/immutable/chunks/{DpESY8ko.js → UYAhegVx.js} +1 -1
  248. package/web/app/immutable/chunks/{CUA9hM4m.js → UsbmbYa0.js} +1 -1
  249. package/web/app/immutable/chunks/{DyXOhKE5.js → VcnbZvDh.js} +1 -1
  250. package/web/app/immutable/chunks/{77KTvr2w.js → WvHbj6rB.js} +1 -1
  251. package/web/app/immutable/chunks/{BCVhFPNJ.js → XK8g38bo.js} +1 -1
  252. package/web/app/immutable/chunks/{BbfEcBPg.js → Y2a1lhL9.js} +1 -1
  253. package/web/app/immutable/chunks/YLhFQnIu.js +1 -0
  254. package/web/app/immutable/chunks/{VTJf_qPn.js → YeOAvjnW.js} +1 -1
  255. package/web/app/immutable/chunks/{BrDfJqC4.js → _3Ca9E4W.js} +1 -1
  256. package/web/app/immutable/chunks/{DhaHSPPQ.js → _duPkHC1.js} +1 -1
  257. package/web/app/immutable/chunks/{Cpgxz5sK.js → aR8LYT4O.js} +1 -1
  258. package/web/app/immutable/chunks/{DjNuITHM.js → cEIzYo-d.js} +1 -1
  259. package/web/app/immutable/chunks/{cfiNEg68.js → cPsAlOmH.js} +1 -1
  260. package/web/app/immutable/chunks/{HeVxSGdr.js → cc1gQUub.js} +1 -1
  261. package/web/app/immutable/chunks/{Dh438xC0.js → cpPIph2M.js} +2 -2
  262. package/web/app/immutable/chunks/{CPWMushE.js → d028N8d2.js} +1 -1
  263. package/web/app/immutable/chunks/{DC1xYxUn.js → ewL2yuZ8.js} +1 -1
  264. package/web/app/immutable/chunks/{DlMrAlfA.js → g08hegP2.js} +1 -1
  265. package/web/app/immutable/chunks/{Bax102l4.js → gHZWxIPZ.js} +1 -1
  266. package/web/app/immutable/chunks/{CLqqc_hU.js → gJJMUdOI.js} +1 -1
  267. package/web/app/immutable/chunks/{D7yetF0v.js → gwv5JQYH.js} +1 -1
  268. package/web/app/immutable/chunks/{Cerl373K.js → iAKTK0Nq.js} +1 -1
  269. package/web/app/immutable/chunks/{BxU747mj.js → j5ppcWWU.js} +1 -1
  270. package/web/app/immutable/chunks/{E1uoF1cW.js → jAIXVFR4.js} +1 -1
  271. package/web/app/immutable/chunks/{B3OJ_2Dd.js → kvtKUeBe.js} +1 -1
  272. package/web/app/immutable/chunks/{B3JbrKDZ.js → lZ7zkdkp.js} +1 -1
  273. package/web/app/immutable/chunks/{DpvQ3NRH.js → mUNs8NSR.js} +1 -1
  274. package/web/app/immutable/chunks/{CueOVPTy.js → oBIu7LTI.js} +1 -1
  275. package/web/app/immutable/chunks/{DZSbMOPJ.js → oHUzFHtp.js} +2 -2
  276. package/web/app/immutable/chunks/{BhYFIrRM.js → pHYq50Ny.js} +1 -1
  277. package/web/app/immutable/chunks/{24f6N9l0.js → pJyYpzre.js} +1 -1
  278. package/web/app/immutable/chunks/{ico0GHoP.js → qm1BBGRe.js} +13 -13
  279. package/web/app/immutable/chunks/{BjdIR-od.js → qoDJOBiM.js} +1 -1
  280. package/web/app/immutable/chunks/{C6rz0msZ.js → r2R1I-D0.js} +1 -1
  281. package/web/app/immutable/chunks/{DrkDJmY5.js → rlNXEIUc.js} +1 -1
  282. package/web/app/immutable/chunks/{DzBJS0Lp.js → scTXKJzg.js} +1 -1
  283. package/web/app/immutable/chunks/{CDxGu9F5.js → tVmNccZ-.js} +1 -1
  284. package/web/app/immutable/chunks/{DQBViT5w.js → w-7j2Qtq.js} +1 -1
  285. package/web/app/immutable/chunks/{ChOMtuod.js → x2AHvZeQ.js} +1 -1
  286. package/web/app/immutable/chunks/{B2OS2WTh.js → xPYDsdm4.js} +1 -1
  287. package/web/app/immutable/chunks/{DOLX5oss.js → xzksWQ-h.js} +1 -1
  288. package/web/app/immutable/chunks/{CJEwuNO9.js → ygDvZWWC.js} +1 -1
  289. package/web/app/immutable/chunks/{DgjIVRdE.js → z91bgOZ6.js} +1 -1
  290. package/web/app/immutable/chunks/{Y4bYs1dr.js → z_SeEaJQ.js} +1 -1
  291. package/web/app/immutable/chunks/{hstOawAs.js → zxxqPN9_.js} +1 -1
  292. package/web/app/immutable/entry/{app.gkm8TnXW.js → app.DOLk01Bm.js} +3 -3
  293. package/web/app/immutable/entry/start.CIQw0TYU.js +1 -0
  294. package/web/app/immutable/nodes/{0.xKtnYOA2.js → 0.qPBEcapg.js} +1 -1
  295. package/web/app/immutable/nodes/{1.BMx4VsW1.js → 1.Bi3sNEdL.js} +1 -1
  296. package/web/app/immutable/nodes/10.DHyl6QAs.js +39 -0
  297. package/web/app/immutable/nodes/{11._cAIrch_.js → 11.pqpLvrmB.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DOoAvwLA.js → 12.C5GV0W_U.js} +1 -1
  299. package/web/app/immutable/nodes/{13.Coj_sRB4.js → 13.BpCKbOND.js} +1 -1
  300. package/web/app/immutable/nodes/{14.AVrz3ZLQ.js → 14.DomreN-2.js} +3 -3
  301. package/web/app/immutable/nodes/{15.BGK-JRWm.js → 15.CKbUOFrf.js} +1 -1
  302. package/web/app/immutable/nodes/{16.CMkcwVoI.js → 16.BcdRdVBS.js} +1 -1
  303. package/web/app/immutable/nodes/{17.BS5un5d0.js → 17.C5h-oNNo.js} +1 -1
  304. package/web/app/immutable/nodes/{18._hTG2-17.js → 18.vgJOUK1N.js} +1 -1
  305. package/web/app/immutable/nodes/{19.DuCFyr_N.js → 19.3QLuvvWY.js} +2 -2
  306. package/web/app/immutable/nodes/{2.uAqDAg4D.js → 2.CSj73FLT.js} +4 -4
  307. package/web/app/immutable/nodes/{20.C1pW6BvW.js → 20.CuOgTm-x.js} +1 -1
  308. package/web/app/immutable/nodes/{3.M-EbuqKW.js → 3.BUbQ5Tes.js} +1 -1
  309. package/web/app/immutable/nodes/{4.ByPZ1Nrn.js → 4.Byn29Mul.js} +1 -1
  310. package/web/app/immutable/nodes/{5.DKAjjuf7.js → 5.CMHzkmR-.js} +1 -1
  311. package/web/app/immutable/nodes/{6.DOc_YxMK.js → 6.N0CPg2uE.js} +1 -1
  312. package/web/app/immutable/nodes/{7.gFNAyoNX.js → 7.4Szvqobl.js} +1 -1
  313. package/web/app/immutable/nodes/{8.C_Kp8pWz.js → 8.BKw9KMbS.js} +1 -1
  314. package/web/app/immutable/nodes/{9.C6HX35Sq.js → 9.BBJWosck.js} +4 -4
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +44 -44
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/B2LBPAIA.js +0 -1
  319. package/web/app/immutable/chunks/BUTuN2nE.js +0 -1
  320. package/web/app/immutable/chunks/CH-Qi35K.js +0 -1
  321. package/web/app/immutable/chunks/DWvCfaBg.js +0 -1
  322. package/web/app/immutable/chunks/Da8rtzmJ.js +0 -1
  323. package/web/app/immutable/chunks/wBNgrgMC.js +0 -1
  324. package/web/app/immutable/entry/start.CMMmzvCE.js +0 -1
  325. package/web/app/immutable/nodes/10.HyXPJR8g.js +0 -39
@@ -1 +1 @@
1
- import{Jx as s}from"./CIoJPvjg.js";import{bm as r}from"./DWvCfaBg.js";import{l as t,m as c}from"./W05hyx94.js";const u=s.createSelector((a,e)=>e?a.workspaceCreateProgress.byProgressId[e]??null:null);function o(a){const e=a?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function n(a){const e=a?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function i(a){const e=a?.match(/^Starting agent on (.+?)(?:\.\.\.|…)$/);return e?e[1]:null}function _(a){switch(a.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=n(a.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=o(a.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:t(e.current),total:t(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"agent":{const e=i(a.message);return e?r.workspace_compactInitializer_progressAgent_label({machine:e}):r.workspace_compactInitializer_progressAgentGeneric_label()}case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function g(a){const e=Math.min(Math.max(a,0),100);return c(e/100,{style:"percent",maximumFractionDigits:0})}export{_ as c,g as f,u as s};
1
+ import{Jx as s}from"./D5wnbxHp.js";import{bm as r}from"./YLhFQnIu.js";import{l as t,m as c}from"./DIEHuZ8f.js";const u=s.createSelector((a,e)=>e?a.workspaceCreateProgress.byProgressId[e]??null:null);function o(a){const e=a?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function n(a){const e=a?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function i(a){const e=a?.match(/^Starting agent on (.+?)(?:\.\.\.|…)$/);return e?e[1]:null}function _(a){switch(a.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=n(a.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=o(a.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:t(e.current),total:t(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"agent":{const e=i(a.message);return e?r.workspace_compactInitializer_progressAgent_label({machine:e}):r.workspace_compactInitializer_progressAgentGeneric_label()}case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function g(a){const e=Math.min(Math.max(a,0),100);return c(e/100,{style:"percent",maximumFractionDigits:0})}export{_ as c,g as f,u as s};
@@ -1 +1 @@
1
- import{o as y,e as I,s as S,g as A}from"./zFAkpaJn.js";function U(){return!0}const o=new Date().toISOString(),d=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/example",repositoryOwner:"demo",repositoryName:"example-project",tags:[],agentSummary:{agentIds:["agent-1"]}},{id:"mock-ws-2",title:"Design System",branch:"feature/tokens",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],g=[{path:"workspaceInitializer.state",label:"Workspace initializer state",description:"Browser-preview workspace initializer state.",category:"workspace",type:"object",defaultValue:{},value:{hydrated:!0}},{path:"hardwareConsole.state",label:"Hardware console state",description:"Browser-preview hardware console state.",category:"hardwareConsole",type:"object",defaultValue:{},value:{}},{path:"rtk.enabled",label:"RTK enabled",description:"Use RTK compressed command output.",category:"tools",type:"boolean",defaultValue:!1,value:!1,origin:"default"}];let l=0;function C(t){const e=g.find(a=>a.path===t);if(!e)return m("INVALID_PARAMS",-32602,`Browser mock: setting "${String(t)}" not found`);const{value:r,origin:s,...i}=e;return{path:e.path,value:r,definition:i,...s?{origin:s}:{},revision:l}}function M(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,B=0;const R=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function T(t){return typeof t=="object"&&t!==null&&p in t}function W(t,e){if(t==="workspace.list")return{workspaces:d};if(t==="workspace.get"){const r=d.find(s=>s.id===e?.workspaceId);return r?{workspace:r}:m("INVALID_PARAMS",-32602,`Browser mock: workspace "${String(e?.workspaceId)}" not found`)}if(t==="task.listAgentLinks")return{links:[],linksByNoteId:{}};if(t==="workspace.getTokenUsage")return{tokenUsage:{byAgentId:{},totals:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0},byModel:{},byAgentModel:[],lastScanAt:null}};if(t==="workspace.getContext")return{items:[]};if(t==="script.list")return{scripts:[]};if(t==="terminal.list")return{terminals:[],daemonBootId:R};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++B}`};if(t==="terminal.write"||t==="terminal.resize"||t==="terminal.kill")return{ok:!0};if(t==="terminal.getBuffer")return{terminalId:String(e?.terminalId??""),data:""};if(t==="terminal.readOutput")return"";if(t==="agent.listActive")return{streams:[]};if(t==="prMonitor.list")return{monitors:[]};if(t==="gitRoot.list")return{gitRoots:[]};if(t==="file.tree")return[];if(t==="file-tracking.getChanges")return{changes:[],truncated:!1,totalCount:0};if(t==="file-tracking.loadCommits")return{commits:[],boundarySha:null,nextToken:null};if(t==="repo.list")return{repos:[]};if(t==="settings.list")return{settings:g,revision:l};if(t==="settings.get")return C(e?.path);if(t==="settings.update"){const r=Array.isArray(e?.changes)?e.changes:[],s=[];for(const i of r){if(typeof i!="object"||i===null)continue;const{path:a,value:c}=i,u=g.find(v=>v.path===a);u&&(u.value=c,s.push({path:u.path,value:c,...u.origin?{origin:u.origin}:{}}))}return s.length>0&&(l+=1),{applied:s,revision:l}}if(t==="host.checkAuggie"||t==="host.findBinary")return{available:!1};if(t==="host.toolAvailability")return{tools:M(e?.tools)};if(t==="host.providerAuthStatus")return{providers:[]};if(t==="host.providerDiscovery")return{providers:[]};if(t==="system.status")return{running:!0,listenMode:"browser-mock",version:"0.0.0-browser",protocolVersion:"0.0.0-browser",host:{os:"browser",arch:"browser",locality:"local"}};if(t==="agent.list")return{agents:[],retiredCount:0};if(t==="agent.listInterrupted")return{agents:[]};if(t==="models.list")return{models:[]};if(t==="skill.list")return{skills:[]};if(t==="search.fileNames")return{files:[]};if(t==="comment.list")return{threads:[]};if(t==="task.list")return{tasks:[],stats:{total:0,completed:0,inProgress:0}};if(t==="note.list")return{notes:[]};if(t==="git.status")return{branch:"",ahead:0,behind:0,diverged:!1,files:[],hasUncommittedChanges:!1,hasUntrackedFiles:!1};if(t==="event.query")return e?.paginate===!0||typeof e?.nextToken=="string"?{items:[],nextToken:null}:[];if(t==="events.subscribe")return{subscriptionId:`browser-mock-sub-${++w}`};if(t==="events.unsubscribe")return{}}function O(t,e){if(t==="backend:request"){const r=e?.method;if(typeof r!="string"||r.length===0)return{ok:!1,error:{code:"INVALID_PARAMS",message:"method is required"}};const s=W(r,e?.params);return T(s)?{ok:!1,error:s[p]}:s!==void 0?{ok:!0,result:s}:{ok:!1,error:{code:"NOT_IMPLEMENTED",message:`Browser mock: backend method "${r}" not implemented`}}}if(t==="backend:subscribe")return{ok:!0,result:{subscriptionId:`browser-mock-sub-${++w}`}};if(t==="backend:unsubscribe")return{ok:!0,result:{}};if(t==="backend:get-status"){const r=A();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=I();return s?{status:"connecting",transport:{mode:"external-ws",target:S(s)}}:{status:"connected",transport:"browser-mock"}}}function P(t,e){const r=O(t,e);return r!==void 0?r:t==="workspace:list"?{success:!0,data:d}:t==="workspace:get-recent-repositories"?{success:!0,data:[]}:t==="workspace:get-settings"||t==="workspace:getSettings"?{success:!0,data:{}}:t==="app:version"||t==="app:get-version"?{success:!0,data:"0.0.0-browser"}:t==="system:get-info"?{success:!0,data:{platform:"browser",arch:"wasm",hostname:"localhost"}}:t==="providers:get-models"?{success:!0,data:[]}:t==="providers:get-availability"?{success:!0,data:{}}:t==="providers:get-paths"?{success:!0,data:{}}:t==="feature-codes:get-active"?{features:[]}:t==="config:get"||t==="config:get-all"||t==="config:getAll"?{success:!0,data:{}}:t==="settings:get"||t==="settings:getAll"?{success:!0,data:{}}:t==="auto-update:get-state"?{success:!0,data:{channel:"stable",status:"idle"}}:t.startsWith("window:")?{success:!0}:t==="panel-layout:load"?{success:!0,data:null}:t==="first-visit-state:load"?{success:!0,data:null}:t==="rules:list"||t==="rules:load-workspace"?{success:!0,data:[]}:t.startsWith("specialists:")?{success:!0,data:[]}:t.startsWith("user-rules:")?{success:!0,data:t.includes("get-all")?[]:""}:t.startsWith("git:")?{success:!0,data:null}:t.startsWith("persistence:")||t.startsWith("storage:")?{success:!0,data:null}:t.startsWith("notes:")?{success:!0,data:t.includes("list")?[]:null}:t.startsWith("agent:")?{success:!0,data:null}:t.startsWith("log:")?{success:!0,data:null}:t.startsWith("user-mcp:")||t.startsWith("mcp:")?{success:!0,data:t.includes("list")?[]:null}:t==="skills:list"?{success:!0,data:[]}:t.includes("-auth:")||t.includes("auth:")?{success:!0,data:{authenticated:!1}}:t.startsWith("dialog:")?{success:!0,data:{canceled:!0,filePaths:[]}}:(console.debug(`[BrowserMock] Unhandled IPC channel: ${t}`),{success:!1,error:`Browser mock: channel "${t}" not implemented`})}const n=[];function f(t,e){for(const r of[...n])r.channel===t&&r.callback(e)}let k=0;const x={invoke:async(t,e)=>(console.warn(`[BrowserMock] Serving MOCK response for IPC channel '${t}' — this is dev-only mock data, not a real bridge`),P(t,e)),send:(t,...e)=>{},on:(t,e)=>{const r=`browser-mock-${++k}`;return n.push({id:r,channel:t,callback:e}),r},off:(t,e)=>{},offById:(t,e)=>{const r=n.findIndex(s=>s.id===e);r!==-1&&n.splice(r,1)},removeAllListeners:t=>{for(let e=n.length-1;e>=0;e--)n[e].channel===t&&n.splice(e,1)},once:(t,e)=>{const r=`browser-mock-${++k}`,s=(...i)=>{e(...i);const a=n.findIndex(c=>c.id===r);a!==-1&&n.splice(a,1)};n.push({id:r,channel:t,callback:s})},getPathForFile:t=>"",platform:"darwin",arch:"arm64",versions:{node:"20.0.0",chrome:"120.0.0",electron:"0.0.0-browser"}};function D(){return typeof window>"u"||window.electronAPI?!1:(console.warn("[BrowserMock] Installing mock electronAPI for browser-mode rendering — all IPC responses are DEV MOCKS"),window.electronAPI=x,_(),!0)}let b=!1;function _(){if(b)return;b=!0;let t=null,e=null,r=null;y(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{f("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{f("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{f("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled};
1
+ import{o as y,e as I,s as S,g as A}from"./CTowDLQa.js";function U(){return!0}const o=new Date().toISOString(),d=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/example",repositoryOwner:"demo",repositoryName:"example-project",tags:[],agentSummary:{agentIds:["agent-1"]}},{id:"mock-ws-2",title:"Design System",branch:"feature/tokens",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],g=[{path:"workspaceInitializer.state",label:"Workspace initializer state",description:"Browser-preview workspace initializer state.",category:"workspace",type:"object",defaultValue:{},value:{hydrated:!0}},{path:"hardwareConsole.state",label:"Hardware console state",description:"Browser-preview hardware console state.",category:"hardwareConsole",type:"object",defaultValue:{},value:{}},{path:"rtk.enabled",label:"RTK enabled",description:"Use RTK compressed command output.",category:"tools",type:"boolean",defaultValue:!1,value:!1,origin:"default"}];let l=0;function C(t){const e=g.find(a=>a.path===t);if(!e)return m("INVALID_PARAMS",-32602,`Browser mock: setting "${String(t)}" not found`);const{value:r,origin:s,...i}=e;return{path:e.path,value:r,definition:i,...s?{origin:s}:{},revision:l}}function M(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,B=0;const R=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function T(t){return typeof t=="object"&&t!==null&&p in t}function W(t,e){if(t==="workspace.list")return{workspaces:d};if(t==="workspace.get"){const r=d.find(s=>s.id===e?.workspaceId);return r?{workspace:r}:m("INVALID_PARAMS",-32602,`Browser mock: workspace "${String(e?.workspaceId)}" not found`)}if(t==="task.listAgentLinks")return{links:[],linksByNoteId:{}};if(t==="workspace.getTokenUsage")return{tokenUsage:{byAgentId:{},totals:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0},byModel:{},byAgentModel:[],lastScanAt:null}};if(t==="workspace.getContext")return{items:[]};if(t==="script.list")return{scripts:[]};if(t==="terminal.list")return{terminals:[],daemonBootId:R};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++B}`};if(t==="terminal.write"||t==="terminal.resize"||t==="terminal.kill")return{ok:!0};if(t==="terminal.getBuffer")return{terminalId:String(e?.terminalId??""),data:""};if(t==="terminal.readOutput")return"";if(t==="agent.listActive")return{streams:[]};if(t==="prMonitor.list")return{monitors:[]};if(t==="gitRoot.list")return{gitRoots:[]};if(t==="file.tree")return[];if(t==="file-tracking.getChanges")return{changes:[],truncated:!1,totalCount:0};if(t==="file-tracking.loadCommits")return{commits:[],boundarySha:null,nextToken:null};if(t==="repo.list")return{repos:[]};if(t==="settings.list")return{settings:g,revision:l};if(t==="settings.get")return C(e?.path);if(t==="settings.update"){const r=Array.isArray(e?.changes)?e.changes:[],s=[];for(const i of r){if(typeof i!="object"||i===null)continue;const{path:a,value:c}=i,u=g.find(v=>v.path===a);u&&(u.value=c,s.push({path:u.path,value:c,...u.origin?{origin:u.origin}:{}}))}return s.length>0&&(l+=1),{applied:s,revision:l}}if(t==="host.checkAuggie"||t==="host.findBinary")return{available:!1};if(t==="host.toolAvailability")return{tools:M(e?.tools)};if(t==="host.providerAuthStatus")return{providers:[]};if(t==="host.providerDiscovery")return{providers:[]};if(t==="system.status")return{running:!0,listenMode:"browser-mock",version:"0.0.0-browser",protocolVersion:"0.0.0-browser",host:{os:"browser",arch:"browser",locality:"local"}};if(t==="agent.list")return{agents:[],retiredCount:0};if(t==="agent.listInterrupted")return{agents:[]};if(t==="models.list")return{models:[]};if(t==="skill.list")return{skills:[]};if(t==="search.fileNames")return{files:[]};if(t==="comment.list")return{threads:[]};if(t==="task.list")return{tasks:[],stats:{total:0,completed:0,inProgress:0}};if(t==="note.list")return{notes:[]};if(t==="git.status")return{branch:"",ahead:0,behind:0,diverged:!1,files:[],hasUncommittedChanges:!1,hasUntrackedFiles:!1};if(t==="event.query")return e?.paginate===!0||typeof e?.nextToken=="string"?{items:[],nextToken:null}:[];if(t==="events.subscribe")return{subscriptionId:`browser-mock-sub-${++w}`};if(t==="events.unsubscribe")return{}}function O(t,e){if(t==="backend:request"){const r=e?.method;if(typeof r!="string"||r.length===0)return{ok:!1,error:{code:"INVALID_PARAMS",message:"method is required"}};const s=W(r,e?.params);return T(s)?{ok:!1,error:s[p]}:s!==void 0?{ok:!0,result:s}:{ok:!1,error:{code:"NOT_IMPLEMENTED",message:`Browser mock: backend method "${r}" not implemented`}}}if(t==="backend:subscribe")return{ok:!0,result:{subscriptionId:`browser-mock-sub-${++w}`}};if(t==="backend:unsubscribe")return{ok:!0,result:{}};if(t==="backend:get-status"){const r=A();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=I();return s?{status:"connecting",transport:{mode:"external-ws",target:S(s)}}:{status:"connected",transport:"browser-mock"}}}function P(t,e){const r=O(t,e);return r!==void 0?r:t==="workspace:list"?{success:!0,data:d}:t==="workspace:get-recent-repositories"?{success:!0,data:[]}:t==="workspace:get-settings"||t==="workspace:getSettings"?{success:!0,data:{}}:t==="app:version"||t==="app:get-version"?{success:!0,data:"0.0.0-browser"}:t==="system:get-info"?{success:!0,data:{platform:"browser",arch:"wasm",hostname:"localhost"}}:t==="providers:get-models"?{success:!0,data:[]}:t==="providers:get-availability"?{success:!0,data:{}}:t==="providers:get-paths"?{success:!0,data:{}}:t==="feature-codes:get-active"?{features:[]}:t==="config:get"||t==="config:get-all"||t==="config:getAll"?{success:!0,data:{}}:t==="settings:get"||t==="settings:getAll"?{success:!0,data:{}}:t==="auto-update:get-state"?{success:!0,data:{channel:"stable",status:"idle"}}:t.startsWith("window:")?{success:!0}:t==="panel-layout:load"?{success:!0,data:null}:t==="first-visit-state:load"?{success:!0,data:null}:t==="rules:list"||t==="rules:load-workspace"?{success:!0,data:[]}:t.startsWith("specialists:")?{success:!0,data:[]}:t.startsWith("user-rules:")?{success:!0,data:t.includes("get-all")?[]:""}:t.startsWith("git:")?{success:!0,data:null}:t.startsWith("persistence:")||t.startsWith("storage:")?{success:!0,data:null}:t.startsWith("notes:")?{success:!0,data:t.includes("list")?[]:null}:t.startsWith("agent:")?{success:!0,data:null}:t.startsWith("log:")?{success:!0,data:null}:t.startsWith("user-mcp:")||t.startsWith("mcp:")?{success:!0,data:t.includes("list")?[]:null}:t==="skills:list"?{success:!0,data:[]}:t.includes("-auth:")||t.includes("auth:")?{success:!0,data:{authenticated:!1}}:t.startsWith("dialog:")?{success:!0,data:{canceled:!0,filePaths:[]}}:(console.debug(`[BrowserMock] Unhandled IPC channel: ${t}`),{success:!1,error:`Browser mock: channel "${t}" not implemented`})}const n=[];function f(t,e){for(const r of[...n])r.channel===t&&r.callback(e)}let k=0;const x={invoke:async(t,e)=>(console.warn(`[BrowserMock] Serving MOCK response for IPC channel '${t}' — this is dev-only mock data, not a real bridge`),P(t,e)),send:(t,...e)=>{},on:(t,e)=>{const r=`browser-mock-${++k}`;return n.push({id:r,channel:t,callback:e}),r},off:(t,e)=>{},offById:(t,e)=>{const r=n.findIndex(s=>s.id===e);r!==-1&&n.splice(r,1)},removeAllListeners:t=>{for(let e=n.length-1;e>=0;e--)n[e].channel===t&&n.splice(e,1)},once:(t,e)=>{const r=`browser-mock-${++k}`,s=(...i)=>{e(...i);const a=n.findIndex(c=>c.id===r);a!==-1&&n.splice(a,1)};n.push({id:r,channel:t,callback:s})},getPathForFile:t=>"",platform:"darwin",arch:"arm64",versions:{node:"20.0.0",chrome:"120.0.0",electron:"0.0.0-browser"}};function D(){return typeof window>"u"||window.electronAPI?!1:(console.warn("[BrowserMock] Installing mock electronAPI for browser-mode rendering — all IPC responses are DEV MOCKS"),window.electronAPI=x,_(),!0)}let b=!1;function _(){if(b)return;b=!0;let t=null,e=null,r=null;y(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{f("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{f("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{f("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled};
@@ -1 +1 @@
1
- var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./DWvCfaBg.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./BqrahRdk.js";import{B as Ft,D as Kt}from"./TyVpf8MX.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
1
+ var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./YLhFQnIu.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./Bmm_g7di.js";import{B as Ft,D as Kt}from"./DtVrXGBM.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
@@ -1 +1 @@
1
- import{g as c}from"./DX2U4Mz9.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function s(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{s as c};
1
+ import{g as c}from"./BpwKnO7b.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function s(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{s as c};
@@ -1,4 +1,4 @@
1
- import{g as w,U as F,b as P,M as v,l as f,t as M,R as O}from"./DX2U4Mz9.js";import{c as K}from"./DgjIVRdE.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/ts.worker-CxdBT0zU.js",import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class W extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
1
+ import{g as w,U as F,b as P,M as v,l as f,t as M,R as O}from"./BpwKnO7b.js";import{c as K}from"./z91bgOZ6.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/ts.worker-CxdBT0zU.js",import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class W extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
2
2
  `),code:t.code.toString(),tags:u,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const o=[];return t.forEach(i=>{let l=e;if(i.file&&(l=this._libFiles.getOrCreateModel(i.file.fileName)),!l)return;const p=i.start||0,n=i.length||1,{lineNumber:r,column:u}=l.getPositionAt(p),{lineNumber:d,column:g}=l.getPositionAt(p+n);o.push({resource:l.uri,startLineNumber:r,startColumn:u,endLineNumber:d,endColumn:g,message:A(i.messageText,`
3
3
  `)})}),o}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return v.Error;case 3:return v.Info;case 0:return v.Warning;case 2:return v.Hint}return v.Info}}class C extends y{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,o,i){const l=e.getWordUntilPosition(t),p=new O(t.lineNumber,l.startColumn,t.lineNumber,l.endColumn),n=e.uri,r=e.getOffsetAt(t),u=await this._worker(n);if(e.isDisposed())return;const d=await u.getCompletionsAtPosition(n.toString(),r);return!d||e.isDisposed()?void 0:{suggestions:d.entries.map(b=>{let h=p;if(b.replacementSpan){const x=e.getPositionAt(b.replacementSpan.start),D=e.getPositionAt(b.replacementSpan.start+b.replacementSpan.length);h=new O(x.lineNumber,x.column,D.lineNumber,D.column)}const k=[];return b.kindModifiers!==void 0&&b.kindModifiers.indexOf("deprecated")!==-1&&k.push(f.CompletionItemTag.Deprecated),{uri:n,position:t,offset:r,range:h,label:b.name,insertText:b.name,sortText:b.sortText,kind:C.convertKind(b.kind),tags:k}})}}async resolveCompletionItem(e,t){const o=e,i=o.uri,l=o.position,p=o.offset,r=await(await this._worker(i)).getCompletionEntryDetails(i.toString(),p,o.label);return r?{uri:i,position:l,label:r.name,kind:C.convertKind(r.kind),detail:_(r.displayParts),documentation:{value:C.createDocumentationString(r)}}:o}static convertKind(e){switch(e){case a.primitiveType:case a.keyword:return f.CompletionItemKind.Keyword;case a.variable:case a.localVariable:return f.CompletionItemKind.Variable;case a.memberVariable:case a.memberGetAccessor:case a.memberSetAccessor:return f.CompletionItemKind.Field;case a.function:case a.memberFunction:case a.constructSignature:case a.callSignature:case a.indexSignature:return f.CompletionItemKind.Function;case a.enum:return f.CompletionItemKind.Enum;case a.module:return f.CompletionItemKind.Module;case a.class:return f.CompletionItemKind.Class;case a.interface:return f.CompletionItemKind.Interface;case a.warning:return f.CompletionItemKind.File}return f.CompletionItemKind.Property}static createDocumentationString(e){let t=_(e.documentation);if(e.tags)for(const o of e.tags)t+=`
4
4
 
@@ -1 +1 @@
1
- import{Jx as t}from"./CIoJPvjg.js";const c=t.createSelector(e=>e.autocompleteSettings),a=t.createSelector(e=>e.autocompleteSettings.available&&e.autocompleteSettings.enabled);export{c as a,a as s};
1
+ import{Jx as t}from"./D5wnbxHp.js";const c=t.createSelector(e=>e.autocompleteSettings),a=t.createSelector(e=>e.autocompleteSettings.available&&e.autocompleteSettings.enabled);export{c as a,a as s};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DOLX5oss.js","/app/immutable/chunks/zFAkpaJn.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DWvCfaBg.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/nodes/0.xKtnYOA2.js","/app/immutable/chunks/Bu3PKqut.js","/app/immutable/chunks/VTJf_qPn.js","/app/immutable/chunks/bIL0xbKX.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIoJPvjg.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY5rw8pn.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/LdXAlc1O.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/BrDfJqC4.js","/app/immutable/chunks/Bb-hI5du.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.DSZNT9Vm.css","/app/immutable/nodes/1.BMx4VsW1.js","/app/immutable/chunks/BthojcF8.js","/app/immutable/chunks/Bb8ARnaK.js","/app/immutable/chunks/D7yetF0v.js","/app/immutable/chunks/Y_tkjygB.js","/app/immutable/chunks/BCuI_zgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CueOVPTy.js","/app/immutable/chunks/Drf1gLyo.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/CIKXOyvw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.uAqDAg4D.js","/app/immutable/chunks/rsUVVEzx.js","/app/immutable/chunks/3Kr2ijlK.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/W05hyx94.js","/app/immutable/chunks/TN7R9Ny0.js","/app/immutable/chunks/BIcof04i.js","/app/immutable/chunks/BCiWc-GH.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CQ5BHnSj.js","/app/immutable/chunks/ico0GHoP.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/D5xlMOwU.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/awY5HvZY.js","/app/immutable/chunks/CFB2mNds.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/DpvQ3NRH.js","/app/immutable/chunks/Btst3lgy.js","/app/immutable/chunks/DJJ2Xrlq.js","/app/immutable/chunks/UqcU95a7.js","/app/immutable/chunks/CY0EK8Cm.js","/app/immutable/chunks/Cerl373K.js","/app/immutable/chunks/Dh438xC0.js","/app/immutable/chunks/BXHbm15d.js","/app/immutable/chunks/2aKRVAvL.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/BlRGZv8u.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/FQkCsxt2.js","/app/immutable/chunks/BGo6FK-0.js","/app/immutable/chunks/BB-hf8IY.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/0y7aytZM.js","/app/immutable/chunks/BpLxj3s3.js","/app/immutable/chunks/C21Z9LLF.js","/app/immutable/chunks/CZ5zON0R.js","/app/immutable/chunks/BqrahRdk.js","/app/immutable/chunks/Dbr8gjWS.js","/app/immutable/chunks/BcYVm7io.js","/app/immutable/chunks/CDxV78M0.js","/app/immutable/chunks/CGUVvS8r.js","/app/immutable/chunks/B-MjuJTx.js","/app/immutable/chunks/BUTuN2nE.js","/app/immutable/chunks/x-RVzKqZ.js","/app/immutable/chunks/B3OJ_2Dd.js","/app/immutable/chunks/B0kNPCxU.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/77KTvr2w.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/hstOawAs.js","/app/immutable/chunks/DyXOhKE5.js","/app/immutable/chunks/DpxbS0Pj.js","/app/immutable/chunks/BIkt0YE0.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CLqqc_hU.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/3LCOBHm6.js","/app/immutable/chunks/BxU747mj.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/Dyx6ysl7.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/D2Tzo4Hp.js","/app/immutable/chunks/B3JbrKDZ.js","/app/immutable/chunks/DtQHtXEW.js","/app/immutable/chunks/DX2U4Mz9.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/ChKOG1mU.js","/app/immutable/chunks/BRdQpeCl.js","/app/immutable/chunks/CvusaaYc.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/BRPJcG-m.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/CUA9hM4m.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/A3z9XWMi.js","/app/immutable/chunks/CdGl_2eX.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/COBhx_l-.js","/app/immutable/chunks/21kfe-mS.js","/app/immutable/chunks/DEKjIPd8.js","/app/immutable/chunks/B8foSZsl.js","/app/immutable/chunks/BweHPPaS.js","/app/immutable/chunks/CTqRHXfu.js","/app/immutable/chunks/Df4a242o.js","/app/immutable/chunks/DeY70dof.js","/app/immutable/chunks/yqEyUNVG.js","/app/immutable/chunks/Dduwpj0a.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/Bv_0mmoe.js","/app/immutable/chunks/Di_ao8Rc.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/DAVG7sIL.js","/app/immutable/chunks/BVyOECUU.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/BYYtBM5R.js","/app/immutable/chunks/BOnTc4ny.js","/app/immutable/chunks/CsilY7l9.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/DNDJdxKs.js","/app/immutable/chunks/CYq58ltZ.js","/app/immutable/chunks/Dh-HeAnQ.js","/app/immutable/chunks/BVcaPXq9.js","/app/immutable/chunks/9AJtSub0.js","/app/immutable/chunks/fC3yz20p.js","/app/immutable/chunks/UQ6MIVTw.js","/app/immutable/chunks/Pyf1FzKM.js","/app/immutable/chunks/cfiNEg68.js","/app/immutable/chunks/_HPNXgkR.js","/app/immutable/chunks/Cwg3XF5F.js","/app/immutable/chunks/3Qz3qAhk.js","/app/immutable/chunks/Dde9Z_vp.js","/app/immutable/chunks/bojY7ttK.js","/app/immutable/chunks/QIFiwjW0.js","/app/immutable/chunks/lSLkjC_I.js","/app/immutable/chunks/Bf_4e4N2.js","/app/immutable/chunks/Dt3xwKL6.js","/app/immutable/chunks/CvSLeFQo.js","/app/immutable/chunks/r5JNAzEM.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/D22j4iWy.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/0b3rkAam.js","/app/immutable/chunks/DzBJS0Lp.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/DcLVN86K.js","/app/immutable/chunks/CPWMushE.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/DvnO7gWT.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/CjLfgoGI.js","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/COlfJVPs.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/DFKO8V-Y.js","/app/immutable/chunks/BNFvOw36.js","/app/immutable/chunks/B2OS2WTh.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/BWI85bGY.js","/app/immutable/chunks/-8AxW0IA.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/CRUcTVFP.js","/app/immutable/chunks/CSb1CnpN.js","/app/immutable/chunks/Djah0WfC.js","/app/immutable/chunks/BDbFQqI8.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/jyNUu-ZR.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/maZzJmVw.js","/app/immutable/chunks/BdlYeRHB.js","/app/immutable/chunks/ChOMtuod.js","/app/immutable/chunks/BbWnSSTS.js","/app/immutable/chunks/C9ij7Z2h.js","/app/immutable/chunks/De0cdeOU.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/C6Wi6O6n.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.M-EbuqKW.js","/app/immutable/nodes/4.ByPZ1Nrn.js","/app/immutable/nodes/5.DKAjjuf7.js","/app/immutable/nodes/6.DOc_YxMK.js","/app/immutable/chunks/Ksiiix3Q.js","/app/immutable/chunks/7i0OJtNQ.js","/app/immutable/chunks/wBNgrgMC.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/E1uoF1cW.js","/app/immutable/chunks/B1xM1EBM.js","/app/immutable/chunks/COSIRxZC.js","/app/immutable/chunks/DbxqdYAO.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/UnM4qztD.js","/app/immutable/chunks/COsxNPUV.js","/app/immutable/chunks/BmLlDCoW.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/DKupjKLn.js","/app/immutable/chunks/DzpuLv6U.js","/app/immutable/chunks/BCVhFPNJ.js","/app/immutable/chunks/DdRupUfV.js","/app/immutable/chunks/BW2en5Js.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/BeUuk8D1.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/BbfEcBPg.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/BolJpU8l.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/Da8rtzmJ.js","/app/immutable/chunks/D5A9atQX.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/DZSbMOPJ.js","/app/immutable/chunks/8jO_MBKF.js","/app/immutable/chunks/DsOS7N8Z.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/MoxNukrR.js","/app/immutable/chunks/Dm3wAkDL.js","/app/immutable/chunks/BwVjpKmH.js","/app/immutable/chunks/BoEcbLG-.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/DJb2lMGn.js","/app/immutable/chunks/DxWgWHgi.js","/app/immutable/chunks/B9kUdNbG.js","/app/immutable/chunks/Dpvv-9m3.js","/app/immutable/chunks/BD7jFvJp.js","/app/immutable/chunks/DAI6QH7D.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/BqCTtUhB.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/DaOKbar2.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.gFNAyoNX.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.C_Kp8pWz.js","/app/immutable/chunks/B2LBPAIA.js","/app/immutable/nodes/9.C6HX35Sq.js","/app/immutable/chunks/BHJpo3VA.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/Bn4F-JIh.js","/app/immutable/chunks/C_wfHKmM.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.HyXPJR8g.js","/app/immutable/chunks/CyHe7TdT.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/COS4Sgoi.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/BYJh9adv.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/DjNuITHM.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/CDxGu9F5.js","/app/immutable/chunks/C6rz0msZ.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11._cAIrch_.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.DOoAvwLA.js","/app/immutable/nodes/13.Coj_sRB4.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.AVrz3ZLQ.js","/app/immutable/chunks/BhYFIrRM.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15.BGK-JRWm.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.CMkcwVoI.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.BS5un5d0.js","/app/immutable/nodes/18._hTG2-17.js","/app/immutable/nodes/19.DuCFyr_N.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.C1pW6BvW.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
2
- import{_ as o,bm as X,t as lt,bo as f,bw as dt,b as pt,c as ft}from"../chunks/DWvCfaBg.js";import{l as x}from"../chunks/BdWqymET.js";import{s as gt}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as Tt,bk as bt,aD as m,bH as F,c0 as ht,ay as T,bS as It,W as c,bn as At,bV as U,aA as g,a7 as I,c9 as y,a5 as Ot,bA as Rt,aB as q,b$ as Pt,b_ as Dt,bO as Lt}from"../chunks/3SdAC2_C.js";import{i as k}from"../chunks/VTJf_qPn.js";import{c as V}from"../chunks/Y_tkjygB.js";import{b as S}from"../chunks/Dn334wJv.js";const yt=async()=>{window.location.pathname.startsWith("/sandbox")||await o(()=>import("../chunks/DOLX5oss.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},Vt=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function St(t){return t instanceof Error&&t.name==="TypeError"&&Vt.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const K=500,wt=8,xt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",a=t.slice(0,t.length-e.length),n=a.indexOf("://"),i=a.slice(0,n),s=a.slice(n+3).split("#")[0].split("?")[0],_=s.indexOf("/"),l=_===-1?s:s.slice(0,_),d=l.slice(l.lastIndexOf("@")+1),p=_===-1?"":s.slice(_);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function w(t){const e=t.replace(xt,Ct);return e.length>K?`${e.slice(0,K)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/xzksWQ-h.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/nodes/0.qPBEcapg.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/CBbdbU2x.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DwbEs_9r.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/DQ8CqY9L.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.DSZNT9Vm.css","/app/immutable/nodes/1.Bi3sNEdL.js","/app/immutable/chunks/CrvtnK13.js","/app/immutable/chunks/CoAfXTHr.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/Cw2fqKk9.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/DJivXy66.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CSj73FLT.js","/app/immutable/chunks/ELYZilX0.js","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/BlAMrm5X.js","/app/immutable/chunks/DUFN_Pzm.js","/app/immutable/chunks/CACH34FC.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/qm1BBGRe.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/0Kw0mmSW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/ByBw1QkA.js","/app/immutable/chunks/D-aEx3GL.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/mUNs8NSR.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Idk978zJ.js","/app/immutable/chunks/CAiDxi6i.js","/app/immutable/chunks/iAKTK0Nq.js","/app/immutable/chunks/cpPIph2M.js","/app/immutable/chunks/CZB2ndi9.js","/app/immutable/chunks/D48_y-cl.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/FLpsgWeB.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/CwCTYQp7.js","/app/immutable/chunks/CzjElr82.js","/app/immutable/chunks/CCzan1r_.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/BfQFKWzJ.js","/app/immutable/chunks/HLNbJ-7M.js","/app/immutable/chunks/D7AX9X0W.js","/app/immutable/chunks/DPmNtGFj.js","/app/immutable/chunks/Bmm_g7di.js","/app/immutable/chunks/DlfbUU6o.js","/app/immutable/chunks/DWqaYE81.js","/app/immutable/chunks/DuoQQplG.js","/app/immutable/chunks/Bsdq-idi.js","/app/immutable/chunks/C4t02ICg.js","/app/immutable/chunks/DLO_0egf.js","/app/immutable/chunks/D49zWKPf.js","/app/immutable/chunks/kvtKUeBe.js","/app/immutable/chunks/KtEuoG00.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/WvHbj6rB.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/zxxqPN9_.js","/app/immutable/chunks/VcnbZvDh.js","/app/immutable/chunks/Mmc_61iE.js","/app/immutable/chunks/Co9CFvqw.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/gJJMUdOI.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/BoUQWR1c.js","/app/immutable/chunks/j5ppcWWU.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/BIfjK4Wy.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/B-bGycam.js","/app/immutable/chunks/lZ7zkdkp.js","/app/immutable/chunks/BQ8hOnRo.js","/app/immutable/chunks/BpwKnO7b.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/DNZCPKpq.js","/app/immutable/chunks/DkERMj5B.js","/app/immutable/chunks/DwiE5WsI.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/CIlqcFRn.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/UsbmbYa0.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/DkJYBjJg.js","/app/immutable/chunks/CIWQMI37.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/AXzVloaq.js","/app/immutable/chunks/DPG1HUgG.js","/app/immutable/chunks/Bstq-Mm1.js","/app/immutable/chunks/DRLJuUwT.js","/app/immutable/chunks/BK0IkwFP.js","/app/immutable/chunks/ItBm4ElA.js","/app/immutable/chunks/Bj4IsLvN.js","/app/immutable/chunks/CGdXewiA.js","/app/immutable/chunks/D2kIeaeO.js","/app/immutable/chunks/Jk9a4xPx.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/B1TtNV9x.js","/app/immutable/chunks/B7esq_NU.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CmhKJ6Ie.js","/app/immutable/chunks/CV5qbjYN.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/B9GWGWit.js","/app/immutable/chunks/T-5C1GqS.js","/app/immutable/chunks/DtkIwON_.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/BVYisuIY.js","/app/immutable/chunks/DdLy5J3P.js","/app/immutable/chunks/BxTCsbTV.js","/app/immutable/chunks/CisSEUth.js","/app/immutable/chunks/BNDTLRE1.js","/app/immutable/chunks/BH3eRhvI.js","/app/immutable/chunks/D3waRWO1.js","/app/immutable/chunks/Bm3beBRj.js","/app/immutable/chunks/cPsAlOmH.js","/app/immutable/chunks/CHApvLbz.js","/app/immutable/chunks/BoZ2kJyE.js","/app/immutable/chunks/Ci75CkmK.js","/app/immutable/chunks/BpXDXz8J.js","/app/immutable/chunks/B9BALnhr.js","/app/immutable/chunks/CTVz-pXS.js","/app/immutable/chunks/CG28d89U.js","/app/immutable/chunks/B0RPkrmZ.js","/app/immutable/chunks/Chg0KuUy.js","/app/immutable/chunks/CfaCrhAh.js","/app/immutable/chunks/DPjr22dV.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/Hi2H4bj8.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/DEQDOTA1.js","/app/immutable/chunks/scTXKJzg.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/CtDIyzmZ.js","/app/immutable/chunks/d028N8d2.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CKcb8dge.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/CZex5Cac.js","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/Bt11uxE8.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/BLhJfI63.js","/app/immutable/chunks/CrwLq8nY.js","/app/immutable/chunks/xPYDsdm4.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/Dd3UnPYB.js","/app/immutable/chunks/CbQYR4R2.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/DezlVQ1h.js","/app/immutable/chunks/CggFXl4B.js","/app/immutable/chunks/DkOk28fz.js","/app/immutable/chunks/CY4ZK6xA.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/DxnZvDv0.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/C2zt__Wj.js","/app/immutable/chunks/DGj-492Z.js","/app/immutable/chunks/x2AHvZeQ.js","/app/immutable/chunks/BP-cDE7g.js","/app/immutable/chunks/D_5u7gP_.js","/app/immutable/chunks/CfIVswBm.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/BaOiWDrc.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.BUbQ5Tes.js","/app/immutable/nodes/4.Byn29Mul.js","/app/immutable/nodes/5.CMHzkmR-.js","/app/immutable/nodes/6.N0CPg2uE.js","/app/immutable/chunks/C7ajdkO4.js","/app/immutable/chunks/R5lmOJFS.js","/app/immutable/chunks/DP0K41jk.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/jAIXVFR4.js","/app/immutable/chunks/Blt813S0.js","/app/immutable/chunks/D1R1FWjP.js","/app/immutable/chunks/CxMr7p-O.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/DLttsd3i.js","/app/immutable/chunks/BOyRg328.js","/app/immutable/chunks/CrL2Nk6a.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/ClQE9kQf.js","/app/immutable/chunks/Lk7a_7W9.js","/app/immutable/chunks/XK8g38bo.js","/app/immutable/chunks/Bbae4OrB.js","/app/immutable/chunks/DxSE2XEK.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/9fNNDfgo.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/Y2a1lhL9.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/B6-aVrNf.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/CeeeYtIE.js","/app/immutable/chunks/B79iAtSu.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/oHUzFHtp.js","/app/immutable/chunks/RTRAqswA.js","/app/immutable/chunks/CqGq5PHb.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/CbQ8NVeY.js","/app/immutable/chunks/6uD0LviT.js","/app/immutable/chunks/CULu7FSf.js","/app/immutable/chunks/DgtVALrr.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/BvjgIPau.js","/app/immutable/chunks/BtchneSc.js","/app/immutable/chunks/6NStP9u7.js","/app/immutable/chunks/BRRnx9NG.js","/app/immutable/chunks/D_AhXAPc.js","/app/immutable/chunks/DmWvRjk6.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/BLMhg4vm.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/B3ziY5oo.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.4Szvqobl.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.BKw9KMbS.js","/app/immutable/chunks/CoCy46Yy.js","/app/immutable/nodes/9.BBJWosck.js","/app/immutable/chunks/Cs-DtA5c.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/DU1ubslo.js","/app/immutable/chunks/Ii0VTY5h.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.DHyl6QAs.js","/app/immutable/chunks/DmpdpJAo.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/DaMlaKH_.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/Cq8MD_3v.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/cEIzYo-d.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/tVmNccZ-.js","/app/immutable/chunks/r2R1I-D0.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11.pqpLvrmB.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.C5GV0W_U.js","/app/immutable/nodes/13.BpCKbOND.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.DomreN-2.js","/app/immutable/chunks/pHYq50Ny.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15.CKbUOFrf.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.BcdRdVBS.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.C5h-oNNo.js","/app/immutable/nodes/18.vgJOUK1N.js","/app/immutable/nodes/19.3QLuvvWY.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.CuOgTm-x.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
2
+ import{_ as o,bm as X,t as lt,bo as f,bw as dt,b as pt,c as ft}from"../chunks/YLhFQnIu.js";import{l as x}from"../chunks/BdWqymET.js";import{s as gt}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as Tt,bk as bt,aD as m,bH as F,c0 as ht,ay as T,bS as It,W as c,bn as At,bV as U,aA as g,a7 as I,c9 as y,a5 as Ot,bA as Rt,aB as q,b$ as Pt,b_ as Dt,bO as Lt}from"../chunks/3SdAC2_C.js";import{i as k}from"../chunks/YeOAvjnW.js";import{c as V}from"../chunks/DwGyIIXK.js";import{b as S}from"../chunks/Dn334wJv.js";const yt=async()=>{window.location.pathname.startsWith("/sandbox")||await o(()=>import("../chunks/xzksWQ-h.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},Vt=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function St(t){return t instanceof Error&&t.name==="TypeError"&&Vt.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const K=500,wt=8,xt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",a=t.slice(0,t.length-e.length),n=a.indexOf("://"),i=a.slice(0,n),s=a.slice(n+3).split("#")[0].split("?")[0],_=s.indexOf("/"),l=_===-1?s:s.slice(0,_),d=l.slice(l.lastIndexOf("@")+1),p=_===-1?"":s.slice(_);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function w(t){const e=t.replace(xt,Ct);return e.length>K?`${e.slice(0,K)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
3
3
  `).slice(0,wt).map(w).join(`
4
- `)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.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(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<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=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.xKtnYOA2.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.BMx4VsW1.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.uAqDAg4D.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,32,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,19,101,102,103,10,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,18,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.M-EbuqKW.js"),__vite__mapDeps([212,4,5,8,65,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.ByPZ1Nrn.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,32,33,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.DKAjjuf7.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,151,130,129,32,33,34,1,35,9,128,125,112,65,86,126,64,121,122,89,90,87,67,88,131,63,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.DOc_YxMK.js"),__vite__mapDeps([215,4,5,66,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,114,82,56,46,57,62,63,64,65,67,68,112,86,87,88,124,125,126,121,122,89,90,97,111,113,115,116,117,118,119,120,123,127,44,53,54,48,21,22,55,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,154,155,148,156,157,158,110,159,141,18,142,143,160,161,162,167,168,169,149,170,151,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,144,230,96,231,232,233,234,195,235,80,95,187,236,237,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,26,251,183,252,253,254,72,75,76,61,69,255,256,150,257,208,209,258,259,93,260,261,262,263,264,265,184,102,185,266,267,268,269,192,92,172,270,271,193,272,37,204,273,274,179,275]),import.meta.url),()=>o(()=>import("../nodes/7.gFNAyoNX.js"),__vite__mapDeps([276,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,65,224,62,32,63,64,66,67,68,160,54,141,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,55,56,57,58,142,143,137,127,116,117,225,73,226,124,74,227,149,228,229,52,154,155,135,115,136,148,156,157,158,110,70,111,113,114,118,119,120,123,132,133,134,43,42,45,41,138,139,159,161,162,163,164,165,166,167,168,169,170,151,171,140,77,144,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,82,188,189,180,91,251,183,252,253,254,256,98,99,277]),import.meta.url),()=>o(()=>import("../nodes/8.C_Kp8pWz.js"),__vite__mapDeps([278,4,5,66,114,279,21,14,22,41,13,12,15,3,7,16,2,11,62,8,29,30,32,33,31,34,1,35,28,9,40,63,64,27,65,67,68,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.C6HX35Sq.js"),__vite__mapDeps([280,4,5,8,9,31,7,29,3,30,33,32,34,11,1,2,35,28,86,121,65,112,122,89,90,111,113,66,114,115,27,87,67,88,116,117,118,119,120,123,124,125,126,64,97,62,40,63,12,13,14,15,16,68,127,44,53,38,39,20,54,48,21,22,55,56,46,57,58,51,128,129,130,131,132,133,134,135,136,137,43,25,42,45,41,70,138,139,173,147,148,151,142,143,149,26,60,158,281,282,204,79,160,161,227,234,195,83,71,50,49,251,265,184,183,102,164,165,150,169,81,279,155,156,261,262,100,92,283,91,284,285,82,69,106,268,157,167,286,229]),import.meta.url),()=>o(()=>import("../nodes/10.HyXPJR8g.js"),__vite__mapDeps([287,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,26,25,56,46,57,181,65,44,182,59,52,53,54,48,21,22,55,51,50,49,60,61,62,63,64,66,67,68,69,96,97,132,114,115,112,86,133,155,131,121,122,89,90,135,136,148,156,157,158,128,125,126,87,88,154,110,111,113,116,117,118,119,120,123,124,127,134,137,43,42,45,41,138,139,159,141,18,142,143,160,161,162,163,164,165,166,167,168,169,149,170,151,171,183,184,140,77,144,178,185,37,186,95,260,99,197,190,82,281,282,204,93,81,272,80,102,231,273,264,232,230,233,234,195,235,227,187,236,265,266,249,274,176,205,175,105,106,107,108,109,177,206,207,288,201,289,290,94,291,153,150,100,292,293,101,294,295,296,257,297,199,298,172,262,193,299]),import.meta.url),()=>o(()=>import("../nodes/11._cAIrch_.js"),__vite__mapDeps([300,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,65,112,86,62,40,63,64,66,67,68,110,97,258,193,156,125,292,293,101,38,39,20,288,201,108,109,107,54,48,44,45,161,289,118,103,296,102,301]),import.meta.url),()=>o(()=>import("../nodes/12.DOoAvwLA.js"),__vite__mapDeps([302,4,5,66,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.Coj_sRB4.js"),__vite__mapDeps([303,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,304]),import.meta.url),()=>o(()=>import("../nodes/14.AVrz3ZLQ.js"),__vite__mapDeps([305,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,306,13,174,197,112,65,86,40,116,117,132,66,114,115,133,134,135,136,27,131,121,122,64,89,90,307]),import.meta.url),()=>o(()=>import("../nodes/15.BGK-JRWm.js"),__vite__mapDeps([308,4,5,8,55,12,13,14,15,3,7,16,2,11,56,46,57,38,27,28,29,30,31,39,34,1,35,20,40,58,51,130,220,33,47,48,44,49,50,52,53,54,21,22,59,60,61,62,32,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,245,195,141,18,128,125,112,126,121,122,129,131,142,143,137,127,116,117,210,118,191,246,145,113,114,115,119,123,124,164,165,178,163,166,188,154,155,135,136,148,156,157,158,110,111,120,132,133,134,138,139,159,160,161,162,167,168,169,149,170,151,171,189,285,255,225,140,144,223,224,226,227,228,229,230,231,232,233,234,235,187,236,237,197,238,239,206,240,241,242,243,244,247,248,249,194,196,250,26,180,251,183,252,253,254,256,150,257,208,209,258,259,306,309]),import.meta.url),()=>o(()=>import("../nodes/16.CMkcwVoI.js"),__vite__mapDeps([310,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,65,73,225,28,16,197,32,9,76,77,40,54,48,44,311,229]),import.meta.url),()=>o(()=>import("../nodes/17.BS5un5d0.js"),__vite__mapDeps([312,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,267,31,97,226,15,16,32,28,86,87,67,88,124,125,112,65,126,64,121,122,89,90,27,54,48,44,49,74,73,225,227,149,228,229,123,40,268,197,75,269]),import.meta.url),()=>o(()=>import("../nodes/18._hTG2-17.js"),__vite__mapDeps([313,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.DuCFyr_N.js"),__vite__mapDeps([314,4,5,8,54,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,65,187,80,38,39,20,40,55,56,46,57,58,51,180,91,63,85,113,66,114,115,112,86,87,67,88,116,117,118,119,161,128,125,126,64,121,122,89,90,129,130,131,137,146,147,134,135,136,148,142,143,149,71,133,100,43,25,42,45,21,22,41,315]),import.meta.url),()=>o(()=>import("../nodes/20.C1pW6BvW.js"),__vite__mapDeps([316,4,5,66,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,58,84,219,273,249,167,57,22,104,317]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
4
+ `)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.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(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<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=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.qPBEcapg.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.Bi3sNEdL.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.CSj73FLT.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,32,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,19,101,102,103,10,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,18,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.BUbQ5Tes.js"),__vite__mapDeps([212,4,5,8,65,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.Byn29Mul.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,32,33,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.CMHzkmR-.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,151,130,129,32,33,34,1,35,9,128,125,112,65,86,126,64,121,122,89,90,87,67,88,131,63,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.N0CPg2uE.js"),__vite__mapDeps([215,4,5,66,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,114,82,56,46,57,62,63,64,65,67,68,112,86,87,88,124,125,126,121,122,89,90,97,111,113,115,116,117,118,119,120,123,127,44,53,54,48,21,22,55,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,154,155,148,156,157,158,110,159,141,18,142,143,160,161,162,167,168,169,149,170,151,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,144,230,96,231,232,233,234,195,235,80,95,187,236,237,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,26,251,183,252,253,254,72,75,76,61,69,255,256,150,257,208,209,258,259,93,260,261,262,263,264,265,184,102,185,266,267,268,269,192,92,172,270,271,193,272,37,204,273,274,179,275]),import.meta.url),()=>o(()=>import("../nodes/7.4Szvqobl.js"),__vite__mapDeps([276,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,65,224,62,32,63,64,66,67,68,160,54,141,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,55,56,57,58,142,143,137,127,116,117,225,73,226,124,74,227,149,228,229,52,154,155,135,115,136,148,156,157,158,110,70,111,113,114,118,119,120,123,132,133,134,43,42,45,41,138,139,159,161,162,163,164,165,166,167,168,169,170,151,171,140,77,144,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,82,188,189,180,91,251,183,252,253,254,256,98,99,277]),import.meta.url),()=>o(()=>import("../nodes/8.BKw9KMbS.js"),__vite__mapDeps([278,4,5,66,114,279,21,14,22,41,13,12,15,3,7,16,2,11,62,8,29,30,32,33,31,34,1,35,28,9,40,63,64,27,65,67,68,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.BBJWosck.js"),__vite__mapDeps([280,4,5,8,9,31,7,29,3,30,33,32,34,11,1,2,35,28,86,121,65,112,122,89,90,111,113,66,114,115,27,87,67,88,116,117,118,119,120,123,124,125,126,64,97,62,40,63,12,13,14,15,16,68,127,44,53,38,39,20,54,48,21,22,55,56,46,57,58,51,128,129,130,131,132,133,134,135,136,137,43,25,42,45,41,70,138,139,173,147,148,151,142,143,149,26,60,158,281,282,204,79,160,161,227,234,195,83,71,50,49,251,265,184,183,102,164,165,150,169,81,279,155,156,261,262,100,92,283,91,284,285,82,69,106,268,157,167,286,229]),import.meta.url),()=>o(()=>import("../nodes/10.DHyl6QAs.js"),__vite__mapDeps([287,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,26,25,56,46,57,181,65,44,182,59,52,53,54,48,21,22,55,51,50,49,60,61,62,63,64,66,67,68,69,96,97,132,114,115,112,86,133,155,131,121,122,89,90,135,136,148,156,157,158,128,125,126,87,88,154,110,111,113,116,117,118,119,120,123,124,127,134,137,43,42,45,41,138,139,159,141,18,142,143,160,161,162,163,164,165,166,167,168,169,149,170,151,171,183,184,140,77,144,178,185,37,186,95,260,99,197,190,82,281,282,204,93,81,272,80,102,231,273,264,232,230,233,234,195,235,227,187,236,265,266,249,274,176,205,175,105,106,107,108,109,177,206,207,288,201,289,290,94,291,153,150,100,292,293,101,294,295,296,257,297,199,298,172,262,193,299]),import.meta.url),()=>o(()=>import("../nodes/11.pqpLvrmB.js"),__vite__mapDeps([300,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,65,112,86,62,40,63,64,66,67,68,110,97,258,193,156,125,292,293,101,38,39,20,288,201,108,109,107,54,48,44,45,161,289,118,103,296,102,301]),import.meta.url),()=>o(()=>import("../nodes/12.C5GV0W_U.js"),__vite__mapDeps([302,4,5,66,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.BpCKbOND.js"),__vite__mapDeps([303,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,304]),import.meta.url),()=>o(()=>import("../nodes/14.DomreN-2.js"),__vite__mapDeps([305,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,306,13,174,197,112,65,86,40,116,117,132,66,114,115,133,134,135,136,27,131,121,122,64,89,90,307]),import.meta.url),()=>o(()=>import("../nodes/15.CKbUOFrf.js"),__vite__mapDeps([308,4,5,8,55,12,13,14,15,3,7,16,2,11,56,46,57,38,27,28,29,30,31,39,34,1,35,20,40,58,51,130,220,33,47,48,44,49,50,52,53,54,21,22,59,60,61,62,32,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,245,195,141,18,128,125,112,126,121,122,129,131,142,143,137,127,116,117,210,118,191,246,145,113,114,115,119,123,124,164,165,178,163,166,188,154,155,135,136,148,156,157,158,110,111,120,132,133,134,138,139,159,160,161,162,167,168,169,149,170,151,171,189,285,255,225,140,144,223,224,226,227,228,229,230,231,232,233,234,235,187,236,237,197,238,239,206,240,241,242,243,244,247,248,249,194,196,250,26,180,251,183,252,253,254,256,150,257,208,209,258,259,306,309]),import.meta.url),()=>o(()=>import("../nodes/16.BcdRdVBS.js"),__vite__mapDeps([310,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,65,73,225,28,16,197,32,9,76,77,40,54,48,44,311,229]),import.meta.url),()=>o(()=>import("../nodes/17.C5h-oNNo.js"),__vite__mapDeps([312,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,267,31,97,226,15,16,32,28,86,87,67,88,124,125,112,65,126,64,121,122,89,90,27,54,48,44,49,74,73,225,227,149,228,229,123,40,268,197,75,269]),import.meta.url),()=>o(()=>import("../nodes/18.vgJOUK1N.js"),__vite__mapDeps([313,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.3QLuvvWY.js"),__vite__mapDeps([314,4,5,8,54,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,65,187,80,38,39,20,40,55,56,46,57,58,51,180,91,63,85,113,66,114,115,112,86,87,67,88,116,117,118,119,161,128,125,126,64,121,122,89,90,129,130,131,137,146,147,134,135,136,148,142,143,149,71,133,100,43,25,42,45,21,22,41,315]),import.meta.url),()=>o(()=>import("../nodes/20.CuOgTm-x.js"),__vite__mapDeps([316,4,5,66,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,58,84,219,273,249,167,57,22,104,317]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,s as r}from"../chunks/CrvtnK13.js";export{o as load_css,r as start};
@@ -1 +1 @@
1
- import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/DWvCfaBg.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/3SdAC2_C.js";import{t as $}from"../chunks/Bu3PKqut.js";import{i as ie}from"../chunks/VTJf_qPn.js";import{k as ae}from"../chunks/bIL0xbKX.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jx as ue}from"../chunks/CIoJPvjg.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/LdXAlc1O.js";import{J as fe,H as me}from"../chunks/BrDfJqC4.js";import{i as pe}from"../chunks/Bb-hI5du.js";const we=!1,ve=!1,ge=!0,Ce=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(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 j=3,Y=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function q(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function C(e){q(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===Y&&(e.preventDefault(),S("forward")))}function F(e){q(e)||(e.button===j||e.button===Y)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",C,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",C,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(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 z(e,t){if(new.target)return L({component:z,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),K=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,H=de();let y;a(),n&&(H?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),U=window.electronAPI?.on?.(B.APP.HISTORY_NAVIGATE,Ae);return()=>{K(),Q.destroy(),y?D.offById("window:focus",y):n&&!H&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),U&&window.electronAPI.offById(B.APP.HISTORY_NAVIGATE,U)}});var u={get children(){return s()},set children(n){s(n),R()},$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,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function J(e,t){if(new.target)return L({component:J,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{z(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return J(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,Ce as universal};
1
+ import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/YLhFQnIu.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/3SdAC2_C.js";import{t as $}from"../chunks/CrpUtGFn.js";import{i as ie}from"../chunks/YeOAvjnW.js";import{k as ae}from"../chunks/CBbdbU2x.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jx as ue}from"../chunks/D5wnbxHp.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/DwbEs_9r.js";import{J as fe,H as me}from"../chunks/_3Ca9E4W.js";import{i as pe}from"../chunks/DQ8CqY9L.js";const we=!1,ve=!1,ge=!0,Ce=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(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 j=3,Y=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function q(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function C(e){q(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===Y&&(e.preventDefault(),S("forward")))}function F(e){q(e)||(e.button===j||e.button===Y)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",C,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",C,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(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 z(e,t){if(new.target)return L({component:z,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),K=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,H=de();let y;a(),n&&(H?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),U=window.electronAPI?.on?.(B.APP.HISTORY_NAVIGATE,Ae);return()=>{K(),Q.destroy(),y?D.offById("window:focus",y):n&&!H&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),U&&window.electronAPI.offById(B.APP.HISTORY_NAVIGATE,U)}});var u={get children(){return s()},set children(n){s(n),R()},$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,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function J(e,t){if(new.target)return L({component:J,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{z(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return J(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,Ce as universal};
@@ -1 +1 @@
1
- import{t as W,bw as A,b as D,bm as u,br as R,bp as U}from"../chunks/DWvCfaBg.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,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/3SdAC2_C.js";import{i as T}from"../chunks/VTJf_qPn.js";import{g as re}from"../chunks/BthojcF8.js";import{p as b}from"../chunks/Bb8ARnaK.js";import{F as te,cT as ae}from"../chunks/D7yetF0v.js";import{f as se}from"../chunks/Drf1gLyo.js";import"../chunks/CIKXOyvw.js";var oe=O('<p class="text-sm text-subtle"> </p>'),ie=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 q(i,o){if(new.target)return W({component:q,...i});E(o,!0);let c=y(()=>b.error),r=y(()=>b.status),v=y(()=>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:A,$on:(l,n)=>D(o,l,n)},j=X(),G=Y(j);{var H=l=>{var n=ie(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),p=$(d,!0);k(h=>m(p,h),[()=>u.error_page_status_label({status:e(r)})]),_(t,d)};T(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 p=ee();k(h=>m(p,h),[()=>u.error_page_reload_button()]),_(t,p)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>u.error_page_title(),()=>e(c)?.message||u.error_page_unexpected_fallback()]),_(l,n)};T(G,l=>{e(v)||l(H)})}return _(i,j),N(g)}var le=new Set(["$$slots","$$events","$$legacy"]);function ne(i,o){if(new.target)return W({component:ne,...i});E(o,!0);let c=U(o,le);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(i,R(()=>c)),N(r)}export{ne as component};
1
+ import{t as W,bw as A,b as D,bm as u,br as R,bp as U}from"../chunks/YLhFQnIu.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,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/3SdAC2_C.js";import{i as T}from"../chunks/YeOAvjnW.js";import{g as re}from"../chunks/CrvtnK13.js";import{p as b}from"../chunks/CoAfXTHr.js";import{F as te,cT as ae}from"../chunks/gwv5JQYH.js";import{f as se}from"../chunks/Cw2fqKk9.js";import"../chunks/DJivXy66.js";var oe=O('<p class="text-sm text-subtle"> </p>'),ie=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 q(i,o){if(new.target)return W({component:q,...i});E(o,!0);let c=y(()=>b.error),r=y(()=>b.status),v=y(()=>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:A,$on:(l,n)=>D(o,l,n)},j=X(),G=Y(j);{var H=l=>{var n=ie(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),p=$(d,!0);k(h=>m(p,h),[()=>u.error_page_status_label({status:e(r)})]),_(t,d)};T(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 p=ee();k(h=>m(p,h),[()=>u.error_page_reload_button()]),_(t,p)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>u.error_page_title(),()=>e(c)?.message||u.error_page_unexpected_fallback()]),_(l,n)};T(G,l=>{e(v)||l(H)})}return _(i,j),N(g)}var le=new Set(["$$slots","$$events","$$legacy"]);function ne(i,o){if(new.target)return W({component:ne,...i});E(o,!0);let c=U(o,le);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(i,R(()=>c)),N(r)}export{ne as component};