@intent-hq/web 2.391.0 → 2.392.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 (327) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DalTYFZn.js → 1NvRJVY9.js} +1 -1
  3. package/web/app/immutable/chunks/{B2awO10u.js → 2OP7IVCM.js} +1 -1
  4. package/web/app/immutable/chunks/{BZ27qIg1.js → 2z64ELW5.js} +1 -1
  5. package/web/app/immutable/chunks/{DLqZuVvj.js → 52kdRKiP.js} +1 -1
  6. package/web/app/immutable/chunks/{RFYaUG5G.js → 7590d3_e.js} +1 -1
  7. package/web/app/immutable/chunks/{ChSyGlG9.js → 7BHYBi88.js} +1 -1
  8. package/web/app/immutable/chunks/{BzX67fGt.js → 8ljmIEEj.js} +1 -1
  9. package/web/app/immutable/chunks/{DXCHCOFX.js → 9ryMZ44V.js} +1 -1
  10. package/web/app/immutable/chunks/{CmvX1OIv.js → AVUhaNFO.js} +1 -1
  11. package/web/app/immutable/chunks/{DCLeEFTU.js → B-mEBo1a.js} +1 -1
  12. package/web/app/immutable/chunks/{CVtLV3_x.js → B0SSzYpD.js} +1 -1
  13. package/web/app/immutable/chunks/{9eqoPT_C.js → B2-ooCTr.js} +1 -1
  14. package/web/app/immutable/chunks/{CedswVQA.js → B36ccT8S.js} +1 -1
  15. package/web/app/immutable/chunks/{CrbOuYLj.js → B469nFvV.js} +2 -2
  16. package/web/app/immutable/chunks/{Dhh3ve0v.js → B4OBYHli.js} +1 -1
  17. package/web/app/immutable/chunks/{g5QqP-QE.js → B6Qz5J1y.js} +1 -1
  18. package/web/app/immutable/chunks/{BdCPH0Ry.js → B6SGYvow.js} +3 -3
  19. package/web/app/immutable/chunks/{Ct3K7T3j.js → B76dt5zP.js} +1 -1
  20. package/web/app/immutable/chunks/{Dzp668Nh.js → B77w2td3.js} +1 -1
  21. package/web/app/immutable/chunks/{3zZ5VtMA.js → B8RXlIBH.js} +1 -1
  22. package/web/app/immutable/chunks/{DG3-me8H.js → B8m3-qrW.js} +1 -1
  23. package/web/app/immutable/chunks/{D970Mqsu.js → B8pX1T5t.js} +1 -1
  24. package/web/app/immutable/chunks/{Df09ThmJ.js → B9-jkWWp.js} +1 -1
  25. package/web/app/immutable/chunks/{DPk2fLxi.js → B9R2bql6.js} +1 -1
  26. package/web/app/immutable/chunks/{CT8vPg_p.js → BAtAwQ72.js} +2 -2
  27. package/web/app/immutable/chunks/{DGU9U1O6.js → BBfR26V0.js} +1 -1
  28. package/web/app/immutable/chunks/{f0YGFw5j.js → BCL-o_Md.js} +3 -3
  29. package/web/app/immutable/chunks/{C4l6men1.js → BCw-LKCu.js} +1 -1
  30. package/web/app/immutable/chunks/{DCoRWScq.js → BCwKGJpG.js} +1 -1
  31. package/web/app/immutable/chunks/{WYNXUtt9.js → BDQvAsU6.js} +1 -1
  32. package/web/app/immutable/chunks/{KWtYfwVq.js → BE4DZU9i.js} +1 -1
  33. package/web/app/immutable/chunks/{C3JJkOFb.js → BEGGqaof.js} +1 -1
  34. package/web/app/immutable/chunks/{CyvzL5p8.js → BFO-Le8U.js} +3 -3
  35. package/web/app/immutable/chunks/{CUZpLDKB.js → BFVncOQi.js} +1 -1
  36. package/web/app/immutable/chunks/BGSmaq6H.js +1 -0
  37. package/web/app/immutable/chunks/{CEyWnfg4.js → BJIUXUAo.js} +1 -1
  38. package/web/app/immutable/chunks/{CxXCJ2kp.js → BJRZEnHw.js} +1 -1
  39. package/web/app/immutable/chunks/{Dd_KPYBw.js → BK5l06W2.js} +1 -1
  40. package/web/app/immutable/chunks/{B_JGVEqN.js → BKGQPtRi.js} +1 -1
  41. package/web/app/immutable/chunks/BKxcGjV6.js +1 -0
  42. package/web/app/immutable/chunks/{DoJ49Zrl.js → BLUGgUG-.js} +1 -1
  43. package/web/app/immutable/chunks/{CXlmxn9D.js → BN9pl0_x.js} +1 -1
  44. package/web/app/immutable/chunks/{D0Z4j4KD.js → BNNeufNk.js} +1 -1
  45. package/web/app/immutable/chunks/{CT1weljk.js → BPd-Q6x4.js} +1 -1
  46. package/web/app/immutable/chunks/{CV17KbhT.js → BQ5x_RaT.js} +1 -1
  47. package/web/app/immutable/chunks/{B26ZHg3s.js → BRCr02in.js} +1 -1
  48. package/web/app/immutable/chunks/{BudXN7v1.js → BRPh2Gky.js} +2 -2
  49. package/web/app/immutable/chunks/{CHIxjTWu.js → BS1zON0P.js} +1 -1
  50. package/web/app/immutable/chunks/{kkKMJ9w9.js → BS5e_kKu.js} +1 -1
  51. package/web/app/immutable/chunks/{6JlgfFWd.js → BT6sDnDt.js} +1 -1
  52. package/web/app/immutable/chunks/{BSKVcPN7.js → BVhnyyZ7.js} +1 -1
  53. package/web/app/immutable/chunks/{CH6Im5iM.js → BYfDvU8j.js} +1 -1
  54. package/web/app/immutable/chunks/{DPZ2um_T.js → BZnji9hP.js} +4 -4
  55. package/web/app/immutable/chunks/{Bvnhw_a1.js → B_4oJZFT.js} +1 -1
  56. package/web/app/immutable/chunks/{C6xamGmH.js → B_DmwFyf.js} +3 -3
  57. package/web/app/immutable/chunks/{B1U2wa0T.js → B_GvRk21.js} +1 -1
  58. package/web/app/immutable/chunks/{b776P7Kr.js → BbK9qDRy.js} +1 -1
  59. package/web/app/immutable/chunks/{Ci6PI5sn.js → Bc4EBjSN.js} +1 -1
  60. package/web/app/immutable/chunks/{CiHhUIjb.js → BdWMbiFk.js} +1 -1
  61. package/web/app/immutable/chunks/{CdVvsm2p.js → Bdh-SKNo.js} +1 -1
  62. package/web/app/immutable/chunks/{D9R5fzn8.js → Beq_QLuz.js} +1 -1
  63. package/web/app/immutable/chunks/{CKBFGMc-.js → Bg5K6Ci3.js} +3 -3
  64. package/web/app/immutable/chunks/{B2Ny2uiy.js → Bh3yfjRP.js} +1 -1
  65. package/web/app/immutable/chunks/{DynUeYUu.js → BhYXv0ZM.js} +1 -1
  66. package/web/app/immutable/chunks/{BPS-xChS.js → BhxHPYvf.js} +1 -1
  67. package/web/app/immutable/chunks/{CGBripl0.js → BirGv2ci.js} +1 -1
  68. package/web/app/immutable/chunks/{Csqi0oV3.js → Bj58rFtD.js} +1 -1
  69. package/web/app/immutable/chunks/{COpm3Tww.js → BjEG_fCJ.js} +4 -4
  70. package/web/app/immutable/chunks/{DQbu7pou.js → BjPpzZjk.js} +2 -2
  71. package/web/app/immutable/chunks/{DvpTRyHt.js → Bk3dX2Ob.js} +1 -1
  72. package/web/app/immutable/chunks/{B_FwdBlO.js → BkxevPaB.js} +1 -1
  73. package/web/app/immutable/chunks/{OsJD3pkm.js → Bky3Gaqa.js} +1 -1
  74. package/web/app/immutable/chunks/{CwCvyVGi.js → BmqZzhgO.js} +1 -1
  75. package/web/app/immutable/chunks/{B28HQLvX.js → BmyNM7bS.js} +1 -1
  76. package/web/app/immutable/chunks/{h_d2oU3d.js → BnGY4PVn.js} +1 -1
  77. package/web/app/immutable/chunks/{CY5E-txU.js → BnJ52enz.js} +1 -1
  78. package/web/app/immutable/chunks/{DQMrEH0w.js → BnbmXiW4.js} +2 -2
  79. package/web/app/immutable/chunks/{Chbrtg19.js → BnnKw3Va.js} +1 -1
  80. package/web/app/immutable/chunks/{DmQ5G_6J.js → Bo0PodRV.js} +1 -1
  81. package/web/app/immutable/chunks/{_U0OqOFt.js → Boky5e4-.js} +1 -1
  82. package/web/app/immutable/chunks/{Cxc8q3rR.js → BonA_mfc.js} +1 -1
  83. package/web/app/immutable/chunks/{DIIj7EWA.js → BpFxCD0b.js} +1 -1
  84. package/web/app/immutable/chunks/{Bdz7xLoU.js → BqF1bVQC.js} +2 -2
  85. package/web/app/immutable/chunks/{DqtLBCnq.js → BqRQBnTW.js} +1 -1
  86. package/web/app/immutable/chunks/{zBrnybDu.js → Bs5b-3jJ.js} +1 -1
  87. package/web/app/immutable/chunks/{BM39k1x6.js → BusD2v6a.js} +1 -1
  88. package/web/app/immutable/chunks/{Bhyo7hBL.js → Bvwrya09.js} +1 -1
  89. package/web/app/immutable/chunks/{RV6uszBL.js → Bw-Zu1Zf.js} +1 -1
  90. package/web/app/immutable/chunks/{QzxpbvSo.js → BwweojP5.js} +1 -1
  91. package/web/app/immutable/chunks/{B0qyjQ39.js → BxCgCRwx.js} +1 -1
  92. package/web/app/immutable/chunks/{CnDgS0vt.js → ByaJIEgQ.js} +1 -1
  93. package/web/app/immutable/chunks/{TU7ngkX4.js → BybDBA-a.js} +1 -1
  94. package/web/app/immutable/chunks/{CyinuwPx.js → BzKqzACd.js} +1 -1
  95. package/web/app/immutable/chunks/{Bz80vYvX.js → BzXQ5SMs.js} +1 -1
  96. package/web/app/immutable/chunks/{CUWwQrpD.js → C-BJXKy-.js} +1 -1
  97. package/web/app/immutable/chunks/{B55WAZno.js → C-e2e9PC.js} +1 -1
  98. package/web/app/immutable/chunks/{B4kHSLJr.js → C0JQvbI4.js} +2 -2
  99. package/web/app/immutable/chunks/{CAGrRNbp.js → C1SGWBXH.js} +1 -1
  100. package/web/app/immutable/chunks/{B4Yz29Q3.js → C2RnxEnO.js} +1 -1
  101. package/web/app/immutable/chunks/{CqVzh7wS.js → C3AR_gNB.js} +1 -1
  102. package/web/app/immutable/chunks/{DcraaizU.js → C3KgmGxd.js} +1 -1
  103. package/web/app/immutable/chunks/C3cVfkio.js +1 -0
  104. package/web/app/immutable/chunks/{BrS-M4QZ.js → C4AJzMws.js} +46 -46
  105. package/web/app/immutable/chunks/{5JwmgTp3.js → C6DQmPVB.js} +1 -1
  106. package/web/app/immutable/chunks/{DMEIbJII.js → C7b3vXLD.js} +1 -1
  107. package/web/app/immutable/chunks/{Bk1TahM2.js → C7q_UkFQ.js} +1 -1
  108. package/web/app/immutable/chunks/{BMTanQ2Z.js → C8OXQeb2.js} +1 -1
  109. package/web/app/immutable/chunks/{Bb-kpHQF.js → C8PR5GO9.js} +1 -1
  110. package/web/app/immutable/chunks/{CRwY2AeH.js → C8TRSNUb.js} +1 -1
  111. package/web/app/immutable/chunks/{CnFZbWXv.js → CA6H1-bp.js} +1 -1
  112. package/web/app/immutable/chunks/{Bn3gcMEi.js → CB8FMdnB.js} +2 -2
  113. package/web/app/immutable/chunks/{Bhq56Jsu.js → CCAtqaSn.js} +1 -1
  114. package/web/app/immutable/chunks/{CREbzS7Z.js → CCSQmeuF.js} +1 -1
  115. package/web/app/immutable/chunks/{BlIQH-6S.js → CDD7ui9Z.js} +1 -1
  116. package/web/app/immutable/chunks/{DwJc_V5I.js → CDUMf4mn.js} +1 -1
  117. package/web/app/immutable/chunks/{3hx_Pv3I.js → CDjbPb5H.js} +1 -1
  118. package/web/app/immutable/chunks/{CAUJiTuz.js → CDtaIFAl.js} +1 -1
  119. package/web/app/immutable/chunks/{CDqF0p7U.js → CGO_zr9m.js} +1 -1
  120. package/web/app/immutable/chunks/{BkcCJyDK.js → CH7HNVC2.js} +1 -1
  121. package/web/app/immutable/chunks/{3bAApxgI.js → CIqC9ucK.js} +1 -1
  122. package/web/app/immutable/chunks/{BOPrepKH.js → COmspkQo.js} +1 -1
  123. package/web/app/immutable/chunks/{Cs94v59b.js → CPUJ3EYc.js} +1 -1
  124. package/web/app/immutable/chunks/{Bt4BDbd9.js → CQPid4Qr.js} +1 -1
  125. package/web/app/immutable/chunks/{CbB6SI0i.js → CRm25OCR.js} +1 -1
  126. package/web/app/immutable/chunks/{mFWmuyR-.js → CS6als-f.js} +1 -1
  127. package/web/app/immutable/chunks/{DHQU4kkd.js → CSbEYhAV.js} +1 -1
  128. package/web/app/immutable/chunks/{DHkcvVzr.js → CTkkv_Ih.js} +1 -1
  129. package/web/app/immutable/chunks/{DGwxrltY.js → CUtsQ_at.js} +1 -1
  130. package/web/app/immutable/chunks/{Drn9m8Tp.js → CV86ty5-.js} +1 -1
  131. package/web/app/immutable/chunks/{0WykzpsL.js → CVZzx9IJ.js} +1 -1
  132. package/web/app/immutable/chunks/{DQpGArF7.js → CVx5OKWy.js} +1 -1
  133. package/web/app/immutable/chunks/{CGmYraIa.js → CWfjuhY2.js} +1 -1
  134. package/web/app/immutable/chunks/{CRXlvdEs.js → CWtyXmQ4.js} +1 -1
  135. package/web/app/immutable/chunks/{1-MeqddK.js → CXTQXSCs.js} +1 -1
  136. package/web/app/immutable/chunks/{CWXVdpgZ.js → CXygwMkb.js} +1 -1
  137. package/web/app/immutable/chunks/{B1lpukIv.js → CZfU7DE3.js} +1 -1
  138. package/web/app/immutable/chunks/{D6q64aEo.js → Ca1iiPGq.js} +3 -3
  139. package/web/app/immutable/chunks/{fImwePKC.js → Cb6ALa0V.js} +1 -1
  140. package/web/app/immutable/chunks/{Ao0jjYj2.js → CbSZGuz9.js} +1 -1
  141. package/web/app/immutable/chunks/{DFKhOU69.js → Cc0763mU.js} +1 -1
  142. package/web/app/immutable/chunks/{B28GhEWZ.js → CcijsN8m.js} +1 -1
  143. package/web/app/immutable/chunks/{-CpNnXIW.js → CdtwTpzR.js} +1 -1
  144. package/web/app/immutable/chunks/{C9N7yhqm.js → Ce-va2I0.js} +1 -1
  145. package/web/app/immutable/chunks/{C22cBcHz.js → Ch9YoFhc.js} +1 -1
  146. package/web/app/immutable/chunks/{COofQgO0.js → ChHRVjww.js} +1 -1
  147. package/web/app/immutable/chunks/{BlzuDW6O.js → CjrqEuvI.js} +1 -1
  148. package/web/app/immutable/chunks/{OloUMTJw.js → CkTAy7fl.js} +1 -1
  149. package/web/app/immutable/chunks/{BvKMYZXt.js → CkyxPppw.js} +1 -1
  150. package/web/app/immutable/chunks/{D49mWFig.js → CnPYlvZC.js} +1 -1
  151. package/web/app/immutable/chunks/{DUTvR2si.js → CpK0xLH4.js} +1 -1
  152. package/web/app/immutable/chunks/{jyQWudgn.js → Cq97NFfR.js} +1 -1
  153. package/web/app/immutable/chunks/{BbXTs-zc.js → CqPoxrPz.js} +1 -1
  154. package/web/app/immutable/chunks/{BczcQRsN.js → CqRvL4xi.js} +1 -1
  155. package/web/app/immutable/chunks/{DWZL93Dc.js → CtBzyNOX.js} +1 -1
  156. package/web/app/immutable/chunks/{CpmTFmUr.js → CtcGxSOx.js} +1 -1
  157. package/web/app/immutable/chunks/{CjpWOZGa.js → Cu9dGfYE.js} +1 -1
  158. package/web/app/immutable/chunks/{DJqiMUht.js → Cv-fAWZf.js} +1 -1
  159. package/web/app/immutable/chunks/{C0wQm_cl.js → Cv6grH4l.js} +1 -1
  160. package/web/app/immutable/chunks/{CU15H7o_.js → Cx394IAH.js} +1 -1
  161. package/web/app/immutable/chunks/{CM8uib8e.js → Cx8Rw_sH.js} +3 -3
  162. package/web/app/immutable/chunks/{Bx1P9uW7.js → CxR-pcVt.js} +1 -1
  163. package/web/app/immutable/chunks/{avlg638g.js → CxuKWK-9.js} +6 -6
  164. package/web/app/immutable/chunks/{BRSPDdkI.js → CyHB14hJ.js} +1 -1
  165. package/web/app/immutable/chunks/{kNaK7_sp.js → CykElrvo.js} +2 -2
  166. package/web/app/immutable/chunks/{CTgYTdXw.js → Cz3WzTlQ.js} +1 -1
  167. package/web/app/immutable/chunks/{CiKoEJ2m.js → D0qhIm1r.js} +1 -1
  168. package/web/app/immutable/chunks/{CeoBhFo7.js → D179JMBI.js} +1 -1
  169. package/web/app/immutable/chunks/{Rsl51Ay4.js → D3m2Y1N8.js} +1 -1
  170. package/web/app/immutable/chunks/{D-wrxbVY.js → D42wJcQ3.js} +1 -1
  171. package/web/app/immutable/chunks/{DFlZYhla.js → D5A4PJDt.js} +1 -1
  172. package/web/app/immutable/chunks/{Cgz4dZpP.js → D5ocbEo-.js} +1 -1
  173. package/web/app/immutable/chunks/{DoB-G8kB.js → D6H34kDj.js} +1 -1
  174. package/web/app/immutable/chunks/{aWBSU8IQ.js → D7KhILhs.js} +1 -1
  175. package/web/app/immutable/chunks/{Bnz_gGcf.js → D7VoSTzK.js} +1 -1
  176. package/web/app/immutable/chunks/{fKRR6mVT.js → D7rh8Clb.js} +1 -1
  177. package/web/app/immutable/chunks/{Bi8v8T9s.js → D7z6HEeo.js} +1 -1
  178. package/web/app/immutable/chunks/{JpEb3pk8.js → D8CQQUv8.js} +1 -1
  179. package/web/app/immutable/chunks/{DyreqWqr.js → D8cNe_33.js} +1 -1
  180. package/web/app/immutable/chunks/{CzxEKNiF.js → D9gMMVdB.js} +1 -1
  181. package/web/app/immutable/chunks/{CDh2mZdS.js → DEQnE_KB.js} +1 -1
  182. package/web/app/immutable/chunks/{DcPZfWKB.js → DFRVxmWf.js} +1 -1
  183. package/web/app/immutable/chunks/{Dgo57zmq.js → DHMxSQaO.js} +1 -1
  184. package/web/app/immutable/chunks/{6zjpUzOd.js → DITs7RNY.js} +1 -1
  185. package/web/app/immutable/chunks/{Cc9GRpTQ.js → DJSAkzw5.js} +1 -1
  186. package/web/app/immutable/chunks/{KaOLys0u.js → DJZIHUd7.js} +1 -1
  187. package/web/app/immutable/chunks/{HiIoMspb.js → DLPlXnVY.js} +1 -1
  188. package/web/app/immutable/chunks/{k48f0Jn8.js → DMOXpjfz.js} +1 -1
  189. package/web/app/immutable/chunks/{B7pblHOt.js → DON9zoQ1.js} +1 -1
  190. package/web/app/immutable/chunks/{CwqyVbqi.js → DP31pjuo.js} +3 -3
  191. package/web/app/immutable/chunks/{COJ7FcW0.js → DPbxpEc3.js} +4 -4
  192. package/web/app/immutable/chunks/{kRR2H6lu.js → DQ3EU1b-.js} +1 -1
  193. package/web/app/immutable/chunks/{HyJzJ05j.js → DQYwt0RJ.js} +1 -1
  194. package/web/app/immutable/chunks/{BFfRQORP.js → DRMe5Ypb.js} +1 -1
  195. package/web/app/immutable/chunks/{CR1CxoNP.js → DT_a2Oi3.js} +1 -1
  196. package/web/app/immutable/chunks/{Cxmepjfl.js → DWjpzYNk.js} +1 -1
  197. package/web/app/immutable/chunks/{Bf739dtf.js → DYrrsQ1p.js} +1 -1
  198. package/web/app/immutable/chunks/{Cv_bDXRO.js → D_-4DIK6.js} +1 -1
  199. package/web/app/immutable/chunks/{BGeImWEk.js → D_jEt7ej.js} +1 -1
  200. package/web/app/immutable/chunks/{BWQPB65O.js → DbPBKS19.js} +1 -1
  201. package/web/app/immutable/chunks/{CWm_v4XX.js → DbSflHPQ.js} +1 -1
  202. package/web/app/immutable/chunks/{BHgSQJqT.js → Dbqo6rfT.js} +1 -1
  203. package/web/app/immutable/chunks/{TPru2I57.js → DcrCEeFN.js} +1 -1
  204. package/web/app/immutable/chunks/{B6mEh1Cs.js → DeLdUBWT.js} +1 -1
  205. package/web/app/immutable/chunks/{D3tqOSzT.js → DepS1LOg.js} +1 -1
  206. package/web/app/immutable/chunks/{DW8fwVBf.js → DfINI0LK.js} +1 -1
  207. package/web/app/immutable/chunks/{DUkc2huG.js → DfyDNbbj.js} +4 -4
  208. package/web/app/immutable/chunks/{CktgkomQ.js → DhXSKt_a.js} +1 -1
  209. package/web/app/immutable/chunks/{DOhHP999.js → DjAFd7Fr.js} +1 -1
  210. package/web/app/immutable/chunks/{l7sDKa65.js → Dk9lUzSs.js} +1 -1
  211. package/web/app/immutable/chunks/{C3jMXj_V.js → DkQdSPDN.js} +1 -1
  212. package/web/app/immutable/chunks/{XaYlDebr.js → DnNE_pmq.js} +1 -1
  213. package/web/app/immutable/chunks/{BM2ubpAw.js → DoFGyuPK.js} +1 -1
  214. package/web/app/immutable/chunks/{D1FTpY7r.js → DpDGJXfb.js} +2 -2
  215. package/web/app/immutable/chunks/{B5TWkOLI.js → DqQWmhFJ.js} +1 -1
  216. package/web/app/immutable/chunks/{C8E14ldW.js → DrCYFWYk.js} +1 -1
  217. package/web/app/immutable/chunks/{D7QFmXLb.js → DsDbrkJf.js} +1 -1
  218. package/web/app/immutable/chunks/{BnLeDIe_.js → DtuubiMf.js} +1 -1
  219. package/web/app/immutable/chunks/{BT8mEFV6.js → DuYgHIqV.js} +1 -1
  220. package/web/app/immutable/chunks/{BJCm9MUD.js → Dusq2uGc.js} +1 -1
  221. package/web/app/immutable/chunks/{ChLkDI4a.js → Dv2WcD53.js} +1 -1
  222. package/web/app/immutable/chunks/DvEcqVUt.js +1 -0
  223. package/web/app/immutable/chunks/{BZ2BunMM.js → DwJUGAx4.js} +3 -3
  224. package/web/app/immutable/chunks/{DPmtJhEg.js → DwwEvwlj.js} +1 -1
  225. package/web/app/immutable/chunks/{C4BZMChh.js → DzNzbnYA.js} +1 -1
  226. package/web/app/immutable/chunks/{DhTLwmro.js → EK8GFErl.js} +1 -1
  227. package/web/app/immutable/chunks/Fcr7AvC-.js +1 -0
  228. package/web/app/immutable/chunks/{B60nx31p.js → Fiwts6D3.js} +1 -1
  229. package/web/app/immutable/chunks/{Byobtdo1.js → G_kSYo3Y.js} +1 -1
  230. package/web/app/immutable/chunks/{DedU58Eo.js → IHdKCjQM.js} +2 -2
  231. package/web/app/immutable/chunks/{DeKlxkvP.js → IhhtpC0N.js} +1 -1
  232. package/web/app/immutable/chunks/{BS9WBIBb.js → O5ZlQHf9.js} +1 -1
  233. package/web/app/immutable/chunks/{ChYLETZB.js → OqslD7bF.js} +1 -1
  234. package/web/app/immutable/chunks/{By2YlE-l.js → Qvf67TfJ.js} +1 -1
  235. package/web/app/immutable/chunks/{CxKuw3AV.js → R2QRct6h.js} +1 -1
  236. package/web/app/immutable/chunks/{BNYZa6GV.js → Rq6GuI3F.js} +1 -1
  237. package/web/app/immutable/chunks/{Xgzr3BTD.js → T6UBEOFc.js} +1 -1
  238. package/web/app/immutable/chunks/{BpezAJRw.js → TdGvVwuC.js} +1 -1
  239. package/web/app/immutable/chunks/{DSZbBNDD.js → Tgw7Kdvt.js} +1 -1
  240. package/web/app/immutable/chunks/{P7zPRuFC.js → U5o8u-di.js} +1 -1
  241. package/web/app/immutable/chunks/{BUSErGiB.js → UWtWVoQE.js} +1 -1
  242. package/web/app/immutable/chunks/{BCLYeYwk.js → W7uazUja.js} +1 -1
  243. package/web/app/immutable/chunks/{CDUYzZ2W.js → WWDClKTE.js} +1 -1
  244. package/web/app/immutable/chunks/{qhttc0fS.js → Xk1ND_1x.js} +2 -2
  245. package/web/app/immutable/chunks/{DlljGo_I.js → Y8hdNZSZ.js} +1 -1
  246. package/web/app/immutable/chunks/{Dh-DCh2Y.js → YsAO4v_N.js} +1 -1
  247. package/web/app/immutable/chunks/{BP9YAxnw.js → Z_lXVxA_.js} +1 -1
  248. package/web/app/immutable/chunks/{C-nTKxY9.js → ZfkZCfTr.js} +1 -1
  249. package/web/app/immutable/chunks/{CLvqghA8.js → ZmAQurQV.js} +1 -1
  250. package/web/app/immutable/chunks/{BijokBFk.js → _IIJlCYC.js} +1 -1
  251. package/web/app/immutable/chunks/{BU3y3Xes.js → _IjN0Lbt.js} +1 -1
  252. package/web/app/immutable/chunks/{iQDlfKDR.js → cD292w1o.js} +1 -1
  253. package/web/app/immutable/chunks/{ClaP_sir.js → dvKmN4h6.js} +1 -1
  254. package/web/app/immutable/chunks/{Crey45Oa.js → f5b-J-bi.js} +1 -1
  255. package/web/app/immutable/chunks/{ZX798KkU.js → gKdztwD8.js} +1 -1
  256. package/web/app/immutable/chunks/{BdhKX9ZN.js → gNR_yDDX.js} +1 -1
  257. package/web/app/immutable/chunks/{CA_E2EO_.js → ggRB4LMK.js} +1 -1
  258. package/web/app/immutable/chunks/{axwUS21u.js → ghzRmqKs.js} +1 -1
  259. package/web/app/immutable/chunks/{FM3MDwzB.js → gocm4HZf.js} +1 -1
  260. package/web/app/immutable/chunks/{CkoYXKFa.js → i2kR60wc.js} +2 -2
  261. package/web/app/immutable/chunks/{CdTSfppl.js → iCTyujt5.js} +1 -1
  262. package/web/app/immutable/chunks/{IxxdIKNN.js → iMqZaR5X.js} +1 -1
  263. package/web/app/immutable/chunks/{BT5iyspK.js → iNacp7Sr.js} +1 -1
  264. package/web/app/immutable/chunks/{BjGqF2I6.js → iViWtmHm.js} +1 -1
  265. package/web/app/immutable/chunks/{D3JNbQ4D.js → jphlY6bT.js} +1 -1
  266. package/web/app/immutable/chunks/{JvFe2B29.js → k5fprFtz.js} +1 -1
  267. package/web/app/immutable/chunks/{C_8_aEto.js → kSTrWIIB.js} +1 -1
  268. package/web/app/immutable/chunks/{CEA7jD1C.js → koUs6Gjt.js} +1 -1
  269. package/web/app/immutable/chunks/{rwibDzZr.js → l3Y4i65_.js} +1 -1
  270. package/web/app/immutable/chunks/{BmlW0rtZ.js → lE7gD_tn.js} +1 -1
  271. package/web/app/immutable/chunks/{BTvJ4T_4.js → lK1e5NlM.js} +1 -1
  272. package/web/app/immutable/chunks/{uWX23oC4.js → m8Q2Rt7R.js} +2 -2
  273. package/web/app/immutable/chunks/{tNEZffSS.js → mE5-Vs-0.js} +1 -1
  274. package/web/app/immutable/chunks/{BkoVJN8J.js → mpTxy2jJ.js} +1 -1
  275. package/web/app/immutable/chunks/pUywXnJP.js +1 -0
  276. package/web/app/immutable/chunks/{CBZWgc2D.js → qLTVpfPn.js} +1 -1
  277. package/web/app/immutable/chunks/{DaWbxwE_.js → qqJggbSF.js} +1 -1
  278. package/web/app/immutable/chunks/s_T1Uukt.js +1 -0
  279. package/web/app/immutable/chunks/{CyJX_0ZH.js → uPtH8pRz.js} +1 -1
  280. package/web/app/immutable/chunks/{Cn-Afla1.js → u_H5ILVa.js} +1 -1
  281. package/web/app/immutable/chunks/{Zm39im0I.js → udmuNwTR.js} +1 -1
  282. package/web/app/immutable/chunks/{D5tDAzIo.js → vezRCn6E.js} +1 -1
  283. package/web/app/immutable/chunks/{Di-MwTUE.js → vpLnaArD.js} +1 -1
  284. package/web/app/immutable/chunks/{DcNjiASe.js → w3KJAO4V.js} +2 -2
  285. package/web/app/immutable/chunks/{D1tq2CRk.js → wRT2cc73.js} +1 -1
  286. package/web/app/immutable/chunks/{CPjnlep8.js → wtJmZfcy.js} +1 -1
  287. package/web/app/immutable/chunks/{B3T1oiJl.js → x4bPxhVW.js} +1 -1
  288. package/web/app/immutable/chunks/{Dxe27_xZ.js → xK5y1U34.js} +1 -1
  289. package/web/app/immutable/chunks/{VdQBQKAO.js → y83c7yRZ.js} +1 -1
  290. package/web/app/immutable/chunks/{Bv7vQoAK.js → ynQC8xZQ.js} +1 -1
  291. package/web/app/immutable/chunks/{DJSvqrCI.js → zFu37m6L.js} +1 -1
  292. package/web/app/immutable/entry/{app.DHDoU_7H.js → app.aDjWpyk7.js} +3 -3
  293. package/web/app/immutable/entry/start.1qdHg029.js +1 -0
  294. package/web/app/immutable/nodes/{0.Cu9LrIhB.js → 0.D_e7AeTl.js} +1 -1
  295. package/web/app/immutable/nodes/{1.D2vLkPwg.js → 1.DA21OvwY.js} +1 -1
  296. package/web/app/immutable/nodes/{10.CsTau1tB.js → 10.CSASJEbg.js} +14 -14
  297. package/web/app/immutable/nodes/{11.BJH0IaNU.js → 11.DW2JfBsq.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DUMat2GN.js → 12.B8s5KuaN.js} +1 -1
  299. package/web/app/immutable/nodes/{13.BEiznOPk.js → 13.J8EpPA9A.js} +1 -1
  300. package/web/app/immutable/nodes/{14.DFolVj6c.js → 14.C5TLXVit.js} +3 -3
  301. package/web/app/immutable/nodes/{15.CODir9mj.js → 15.DrH3We44.js} +1 -1
  302. package/web/app/immutable/nodes/{16.cptOJ-f9.js → 16.T0PyvW1V.js} +1 -1
  303. package/web/app/immutable/nodes/{17.BVn1LtfR.js → 17.pi-yfOoM.js} +1 -1
  304. package/web/app/immutable/nodes/{18.BLC8YWHJ.js → 18.CTVha2lA.js} +1 -1
  305. package/web/app/immutable/nodes/{19.D4bkkQ_T.js → 19.DyUaZQFK.js} +2 -2
  306. package/web/app/immutable/nodes/{2.Dyr3gNeq.js → 2.CTOsyef2.js} +4 -4
  307. package/web/app/immutable/nodes/{20.g9As4rvG.js → 20.BPfqGZ4o.js} +1 -1
  308. package/web/app/immutable/nodes/{3.NGM8GOql.js → 3.xcZps6DB.js} +1 -1
  309. package/web/app/immutable/nodes/{4.yPviv-Bq.js → 4.DaJkDmFI.js} +1 -1
  310. package/web/app/immutable/nodes/{5.W4sBVxOK.js → 5.7rTxN-4O.js} +1 -1
  311. package/web/app/immutable/nodes/6.tsWwri9c.js +5 -0
  312. package/web/app/immutable/nodes/{7.yUloHxmW.js → 7.CDTojphP.js} +1 -1
  313. package/web/app/immutable/nodes/{8.BT8o95-5.js → 8.BO5ffLDm.js} +1 -1
  314. package/web/app/immutable/nodes/9.D0POivb2.js +14 -0
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +49 -49
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/B1ZnKKBC.js +0 -1
  319. package/web/app/immutable/chunks/Bmr0NXg9.js +0 -1
  320. package/web/app/immutable/chunks/CDVPwJHE.js +0 -1
  321. package/web/app/immutable/chunks/CtfEuoOH.js +0 -1
  322. package/web/app/immutable/chunks/DQkOZWKk.js +0 -1
  323. package/web/app/immutable/chunks/DRuLniWc.js +0 -1
  324. package/web/app/immutable/chunks/jlu1ZSD8.js +0 -1
  325. package/web/app/immutable/entry/start.nfTNgo5B.js +0 -1
  326. package/web/app/immutable/nodes/6.C_4emjsH.js +0 -5
  327. package/web/app/immutable/nodes/9.Izg3VgEv.js +0 -14
@@ -1,4 +1,4 @@
1
- import{t as Jt,bo as v,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./CtfEuoOH.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as I,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as me}from"./DynUeYUu.js";import{g as on,i as rn}from"./CnFZbWXv.js";import{f as ln}from"./B26ZHg3s.js";import{f as cn}from"./BkcCJyDK.js";import{k as dn}from"./DoB-G8kB.js";import{JH as Se,ol as fn,Ad as un,sI as bt,on as hn,ad as kt}from"./CiKoEJ2m.js";import{b$ as gn,dI as vn}from"./iQDlfKDR.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./BkoVJN8J.js";import{F as wt,ba as _t}from"./COofQgO0.js";import{f as Qe}from"./D9R5fzn8.js";import"./CT8vPg_p.js";import{S as Ie}from"./aWBSU8IQ.js";import{l as bn}from"./DMEIbJII.js";import{g as kn}from"./BGeImWEk.js";function wn(q,c,oe,Re=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,X=_n(Re)-1,De=We.split(`
1
+ import{t as Jt,bo as v,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./Fcr7AvC-.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as I,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as me}from"./BhYXv0ZM.js";import{g as on,i as rn}from"./CA6H1-bp.js";import{f as ln}from"./BRCr02in.js";import{f as cn}from"./CH7HNVC2.js";import{k as dn}from"./D6H34kDj.js";import{JH as Se,ol as fn,Ad as un,sI as bt,on as hn,ad as kt}from"./D0qhIm1r.js";import{b$ as gn,dI as vn}from"./cD292w1o.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./mpTxy2jJ.js";import{F as wt,ba as _t}from"./ChHRVjww.js";import{f as Qe}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import{S as Ie}from"./D7KhILhs.js";import{l as bn}from"./C7b3vXLD.js";import{g as kn}from"./D_jEt7ej.js";function wn(q,c,oe,Re=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,X=_n(Re)-1,De=We.split(`
2
2
  `);let s=0,R=0,le=!1;for(const $ of De)if($.startsWith("@@")){le=!0;const Z=$.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);Z&&(R=parseInt(Z[1],10),s=parseInt(Z[2],10))}else le&&($.startsWith("+")?(re.add(s+X),s++):$.startsWith("-")?(pe.add(R+X),R++):$.startsWith(" ")&&(s++,R++));return{additions:re,deletions:pe}}function _n(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),In=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),Rn=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Jt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Re=()=>Ye(It,"$workspace$",re),We=()=>Ye(Rt,"$workingTreeFileContentStore",re),[re,pe]=Zt(),X=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),R=v(c,"active",7,!0),le=v(c,"workspaceId",7),$=v(c,"viewMode",7,"unified"),Z=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Ae=v(c,"lineWrapping",7,!1),M=v(c,"onStageHunk",7),U=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Me=v(c,"refreshKey",7),Ue=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),$e=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Je(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),Be=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,Be),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),B=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?Ut(t(Q).chunk,t(ee)):""),xt=d(()=>!t(B)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
3
3
  `.repeat(W()-1):""),St=d(()=>t(st)+t(B)),Ht=d(()=>t(st)+t(V));let w=ae(null),Ke=ae(null),we=null,_e=ae(!1);const It=vn(de),at=pt(void 0),ot=pt(""),Rt=dn(ot,at),rt=d(Re),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Mt(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t(B))}:off${W()}`:void 0),At=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Mt(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function Ut(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
4
4
  `)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
@@ -0,0 +1 @@
1
+ import{o as S,e as A,s as C,g as M}from"./TdGvVwuC.js";function U(){return!0}const a=new Date().toISOString(),g=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:a,updatedAt:a,lastActivity:a,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:a,updatedAt:a,lastActivity:a,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],p=[{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 B(t){const e=p.find(o=>o.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 R(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,T=0;const W=crypto.randomUUID(),f=Symbol("browser-mock-error");function m(t,e,r){return{[f]:{code:t,message:r,data:{code:t},rpcCode:e}}}function v(t){return typeof t=="object"&&t!==null&&f in t}function y(t,e){if(t==="workspace.list")return{workspaces:g};if(t==="workspace.get"){const r=g.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:W};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++T}`};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:p,revision:l};if(t==="settings.get")return B(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:o,value:c}=i,u=p.find(I=>I.path===o);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:R(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 N(t,e){const r=y(t,e);if(v(r)){const{rpcCode:s,message:i,data:o}=r[f];return{error:{code:s,message:i,data:o}}}return r===void 0?void 0:{result:r}}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=y(r,e?.params);return v(s)?{ok:!1,error:s[f]}: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=M();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=A();return s?{status:"connecting",transport:{mode:"external-ws",target:C(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:g}: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 d(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 o=n.findIndex(c=>c.id===r);o!==-1&&n.splice(o,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;S(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{d("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{d("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{d("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled,N as mockDaemonMethodReply};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Bf739dtf.js","/app/immutable/chunks/CtfEuoOH.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/DynUeYUu.js","/app/immutable/chunks/DPZ2um_T.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B4kHSLJr.js","/app/immutable/chunks/iQDlfKDR.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CiKoEJ2m.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CHIxjTWu.js","/app/immutable/chunks/CGmYraIa.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/B1lpukIv.js","/app/immutable/chunks/COofQgO0.js","/app/immutable/chunks/BZ27qIg1.js","/app/immutable/chunks/B26ZHg3s.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CnFZbWXv.js","/app/immutable/chunks/CT8vPg_p.js","/app/immutable/chunks/BpezAJRw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/QzxpbvSo.js","/app/immutable/chunks/DMEIbJII.js","/app/immutable/chunks/qhttc0fS.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/JvFe2B29.js","/app/immutable/chunks/BU3y3Xes.js","/app/immutable/chunks/BkcCJyDK.js","/app/immutable/chunks/C8E14ldW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/Bdz7xLoU.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CVtLV3_x.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/D9R5fzn8.js","/app/immutable/chunks/DFKhOU69.js","/app/immutable/chunks/D-wrxbVY.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/aWBSU8IQ.js","/app/immutable/chunks/DW8fwVBf.js","/app/immutable/chunks/DcraaizU.js","/app/immutable/chunks/Bx1P9uW7.js","/app/immutable/chunks/B3T1oiJl.js","/app/immutable/chunks/CRXlvdEs.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CTgYTdXw.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/BS9WBIBb.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/Bz80vYvX.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/DG3-me8H.js","/app/immutable/chunks/DUTvR2si.js","/app/immutable/chunks/B4Yz29Q3.js","/app/immutable/chunks/BFfRQORP.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/C3jMXj_V.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/assets/notify.DylRFR3N.css","/app/immutable/chunks/CEA7jD1C.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/DQpGArF7.js","/app/immutable/chunks/CrbOuYLj.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/IxxdIKNN.js","/app/immutable/chunks/CktgkomQ.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/Bnz_gGcf.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css"])))=>i.map(i=>d[i]);
2
- import{t as Ue,bo as x,bw as ze,b as Be,bm as Le,_ as Tt}from"./CtfEuoOH.js";import{bs as Ne,ca as vt,aD as a,bH as y,ay as ie,bS as Z,W,bn as Oe,bV as z,aA as F,c9 as H,aB as j,a5 as q,bA as V,b_ as te,a7 as He,bl as Re,aw as ke,aC as Lt,c3 as be,bb as Pe,bO as Ze,ai as Pt,aF as St,br as Ht,bj as Rt,aj as ee}from"./3SdAC2_C.js";import{i as X}from"./DynUeYUu.js";import{e as _e,g as Wt,i as Ut}from"./CnFZbWXv.js";import{h as tt}from"./BKD7o1lQ.js";import{g as Xe,s as rt,f as le}from"./B26ZHg3s.js";import{b as Te}from"./Dn334wJv.js";import{d3 as Ae,d2 as nt,ao as zt,d5 as ht,a7 as We,aF as kt,aX as Bt,aw as Nt,a5 as at,r as Ot,aO as Vt,aT as Dt,E as qt}from"./B4kHSLJr.js";import{m as jt,br as ot,JH as Ke,vK as Kt,tl as Gt,vM as Jt}from"./CiKoEJ2m.js";import{K as Zt,a9 as Xt}from"./iQDlfKDR.js";import{l as Se}from"./ChTqQfQN.js";import{h as st}from"./CrbOuYLj.js";import{a as Qt,c as bt,b as Qe,V as Ye,p as Fe,f as wt,I as Yt,r as $t,s as er}from"./D-wrxbVY.js";import{g as it}from"./BGeImWEk.js";import{t as tr}from"./CGmYraIa.js";import{f as rr}from"./D9R5fzn8.js";import{F as Ge}from"./CT8vPg_p.js";import{p as lt}from"./CVtLV3_x.js";import{F as nr,bF as ar}from"./COofQgO0.js";import{t as or}from"./DAsc1V4f.js";function xe(r,o){return o||/^(?:https?:|data:|blob:|workspace-asset:)/i.test(r.trim())}function sr(r,o){if(o||!r)return r;const n=document.createElement("template");n.innerHTML=r;for(const l of n.content.querySelectorAll("img, video")){const c=l.getAttribute("src")||l.getAttribute("data-media-src")||"",u=[...l.querySelectorAll("source")];if(!xe(c,!1)||u.some(f=>!xe(f.getAttribute("src")||"",!1))){const f=document.createElement("img");f.setAttribute("alt",l.getAttribute("alt")||l.getAttribute("data-name")||""),f.setAttribute("data-media-unavailable","node-owned"),l.replaceWith(f);continue}l.removeAttribute("srcset");const s=l.getAttribute("poster");s&&!xe(s,!1)&&l.removeAttribute("poster")}return n.innerHTML}const ir=[/(^|[^\\])\$(?!\$)(?=\S)(?:\\.|[^\\$\n])+?\$(?!\$)/,/(^|[^\\])\\\((?:\\.|[^\\\n])*?\\\)/,/^(?: {0,3})(?:\$\$|\\\[)/m,/^\s*[-*]\s*\[[ x]\]/m,/```/,/`[^`]+`/,/\|.*\|/,/\[.*\]\(.*\)/,/!\[.*\]\(.*\)/,/<[a-z][\s\S]*>/i,/^#{1,6}\s/m,/^\s*>\s/m,/\*\*[^*]+\*\*/,/\*[^*]+\*/,/_[^_]+_/,/~~[^~]+~~/,/^[-*_]{3,}\s*$/m,/^\s*[-*+]\s/m,/^\s*\d+\.\s/m];function lr(r){return r&&(ir.some(o=>o.test(r))||Zt(r,"markdown"))?"static":"simple"}var cr=j("<!> <!>",1);function It(r,o){if(new.target)return Ue({component:It,...r});Ne(o,!0);let n=x(o,"workspaceId",7),l=x(o,"canUseMedia",7),c=z(null),u=z(null),s=z(!1),f=z(!1);function _(m){y(c,{url:m.getAttribute("src")||"",name:m.getAttribute("alt")||void 0,opener:m},!0),y(s,!0)}function I(m){const h=nt(m.getAttribute("href")||"",n());return h&&l()(h)?(y(c,{url:h,name:m.textContent?.trim()||void 0,opener:m,assetLink:!0},!0),y(s,!0),!0):p(m)}function p(m){const h=Ae(m.getAttribute("href")||"",n());return!h||!l()(h.url)?!1:(y(u,{url:h.url,mimeType:h.mimeType,name:m.textContent?.trim()||void 0,opener:m},!0),y(f,!0),!0)}vt(()=>{a(u)&&!Ae(a(u).url,n())&&(y(f,!1),y(u,null)),a(c)?.assetLink&&!nt(a(c).url,n())&&(y(s,!1),y(c,null))});var k={openImage:_,openAsset:I,get workspaceId(){return n()},set workspaceId(m){n(m),F()},get canUseMedia(){return l()},set canUseMedia(m){l(m),F()},$set:ze,$on:(m,h)=>Be(o,m,h)},v=cr(),w=ie(v);{var A=m=>{Qt(m,{get imageUrl(){return a(c).url},get imageName(){return a(c).name},get openerElement(){return a(c).opener},showActionsMenu:!0,get open(){return a(s)},set open(h){y(s,h,!0)}})},T=H(()=>a(c)&&l()(a(c).url));X(w,m=>{a(T)&&m(A)})}var C=Z(w,2);{var t=m=>{bt(m,{get videoUrl(){return a(u).url},get videoName(){return a(u).name},get mimeType(){return a(u).mimeType},sourceKind:"workspace",get openerElement(){return a(u).opener},get open(){return a(f)},set open(h){y(f,h,!0)}})},d=H(()=>a(u)&&Ae(a(u).url,n())&&l()(a(u).url));X(C,m=>{a(d)&&m(t)})}return W(r,v),Oe(k)}var dr=j('<div class="flex items-center gap-2"><!> <!></div>'),ur=Lt('<svg viewBox="0 0 24 24" class="size-10" fill="none"><rect x="3" y="5" width="18" height="14" rx="2" stroke="currentColor"></rect><path d="m10 9 5 3-5 3V9Z" fill="currentColor"></path></svg>'),fr=j('<div class="absolute inset-0 flex items-center justify-center bg-muted text-muted-foreground" aria-hidden="true"><!></div> <video preload="metadata" playsinline="" tabindex="-1" aria-hidden="true"></video> <span class="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/20 motion-reduce:transition-none forced-colors:bg-transparent" aria-hidden="true"><span><svg viewBox="0 0 20 20" fill="currentColor"><path d="m7 5 7 5-7 5V5Z"></path></svg></span></span>',3),mr=j("<div><!> <!></div>"),pr=j('<div class="my-2 min-w-0 max-w-2xl" data-chat-video=""><!></div> <!>',1);function yt(r,o){if(new.target)return Ue({component:yt,...r});Ne(o,!0);let n=x(o,"source",7),l=x(o,"name",23,()=>Le.chat_videoBlock_fromAgent_label()),c=x(o,"poster",7),u=x(o,"allowFileMedia",7,!0),s=x(o,"canOpenFile",7),f=x(o,"fluid",7,!1),_=x(o,"compact",7,!1),I=x(o,"compactPreview",7),p=z(!1),k=z(!1),v=z(!1),w=z(null);const A=H(()=>n().kind==="inline"?`data:${n().mimeType};base64,${n().data}`:n().url);function T(g){return xe(g,u()&&s()?.()!==!1)}const C=H(()=>!T(a(A))),t=H(()=>Fe(a(A))),d=H(()=>{if(!(!c()||!T(c()))){if(/^data:image\/(?:gif|jpeg|png|webp);base64,[a-z0-9+/=]+$/i.test(c()))return c();try{const g=new URL(c());return(g.protocol==="https:"||g.protocol==="workspace-file:")&&!g.username&&!g.password?c():void 0}catch{return}}});function m(){y(k,!0),y(v,!1)}var h={get source(){return n()},set source(g){n(g),F()},get name(){return l()},set name(g=Le.chat_videoBlock_fromAgent_label()){l(g),F()},get poster(){return c()},set poster(g){c(g),F()},get allowFileMedia(){return u()},set allowFileMedia(g=!0){u(g),F()},get canOpenFile(){return s()},set canOpenFile(g){s(g),F()},get fluid(){return f()},set fluid(g=!1){f(g),F()},get compact(){return _()},set compact(g=!1){_(g),F()},get compactPreview(){return I()},set compactPreview(g){I(g),F()},$set:ze,$on:(g,R)=>Be(o,g,R)},E=pr(),U=ie(E);let O;var ve=q(U);{var D=g=>{Qe(g,{get name(){return l()},reason:"load-failed"})},ae=g=>{var R=dr(),ce=q(R);{let Q=H(()=>a(t)?.path),re=H(()=>a(t)?.workspaceId);Qe(ce,{get name(){return l()},reason:"load-failed",get path(){return a(Q)},get workspaceId(){return a(re)}})}var se=Z(ce,2);Ye(se,{get videoUrl(){return a(A)},get videoName(){return l()},get sourceKind(){return n().kind},get mimeType(){return n().mimeType}}),V(R),W(g,R)},K=g=>{var R=mr();let ce;var se=q(R);{let de=H(()=>Le.chat_videoBlock_play_ariaLabel({name:l()}));rr(se,{wrapContent:!1,type:"button",variant:"ghost",size:"default",class:"relative block size-full cursor-pointer overflow-hidden rounded-lg border border-border bg-muted/40 p-0 shadow-(--elevation-raised) focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 forced-colors:border",get"aria-label"(){return a(de)},"data-testid":"chat-video-snapshot",onclick:()=>{T(a(A))&&y(p,!0)},get ref(){return a(w)},set ref(he){y(w,he,!0)},children:(he,De)=>{var ue=He(),B=ie(ue);{var we=Y=>{var G=He(),J=ie(G);tr(J,I),W(Y,G)},fe=Y=>{var G=fr(),J=ie(G),Ce=q(J);{var Ee=pe=>{var qe=ur();W(pe,qe)};X(Ce,pe=>{f()||pe(Ee)})}V(J);var $=Z(J,2);$.muted=!0;var me=Z($,2),Ie=q(me),ye=Re(Ie);V(me),te(()=>{rt($,"src",a(A)),rt($,"poster",a(d)),le($,1,`pointer-events-none absolute inset-0 size-full object-contain transition-opacity motion-reduce:transition-none ${a(d)||a(k)&&!a(v)?"opacity-100":"opacity-0"}`),le(Ie,1,`flex ${_()?"size-6":"size-11"} shrink-0 aspect-square items-center justify-center rounded-full border border-white/70 bg-black/60 text-white shadow-(--elevation-raised) forced-colors:border forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]`),le(ye,0,`ml-0.5 ${_()?"size-3":"size-5"}`)}),ke("loadeddata",$,m),ke("error",$,()=>y(v,!0)),W(Y,G)};X(B,Y=>{I()?Y(we):Y(fe,-1)})}W(he,ue)},$$slots:{default:!0}})}var Q=Z(se,2);{var re=de=>{Ye(de,{get videoUrl(){return a(A)},get videoName(){return l()},get sourceKind(){return n().kind},get mimeType(){return n().mimeType},triggerClass:"absolute right-1.5 top-1.5 opacity-0 transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100"})};X(Q,de=>{I()||de(re)})}V(R),te(()=>{le(R,1,`group relative aspect-video w-full max-w-2xl ${f()?"max-h-72":"max-h-40"}`),ce=Xe(R,"",ce,{height:I()?"100%":void 0,width:f()?"min(100%, calc(18rem * 16 / 9))":"min(100%, calc(10rem * 16 / 9))"})}),W(g,R)};X(ve,g=>{a(C)?g(D):a(v)?g(ae,1):g(K,-1)})}V(U);var oe=Z(U,2);{var Ve=g=>{bt(g,{get videoUrl(){return a(A)},get videoName(){return l()},get poster(){return a(d)},get sourceKind(){return n().kind},get mimeType(){return n().mimeType},get openerElement(){return a(w)},get open(){return a(p)},set open(R){y(p,R,!0)}})};X(oe,g=>{!a(v)&&!a(C)&&g(Ve)})}return te(()=>O=Xe(U,"",O,{height:I()?"100%":void 0})),W(r,E),Oe(h)}const gr=/^\s*!\[([^\]\n]*)\]\((?:<)?((?:intent:\/\/local\/|workspace-file:\/\/|workspace-asset:\/\/)[^)\s>]+)(?:>)?\)\s*$/,vr=/^ {0,3}(`{3,}|~{3,})(.*)$/;function ct(r,o){if(typeof r!="string"||!r||r!==r.trim())return null;if(r.startsWith("workspace-asset://"))return Ae(r,o);if(r.startsWith("workspace-file://")){const l=Fe(r);if(!l||l.workspaceId!==o)return null;const c=ht(r);return c?lt(c,o):null}const n=r.startsWith("intent://")?r:`intent://local/file/${r}`;return lt(n,o)}function hr(r,o){if(r.startsWith("workspace-file://")){const n=Fe(r);if(!n||n.workspaceId!==o)return!1;const l=ht(r);return!!l&&!!We(l,o)}return!!We(r,o,{readOnly:!0})}function kr(r,o){return(o===0||!r[o-1].trim())&&(o===r.length-1||!r[o+1].trim())}function br(r,o,n){const l=n[0];return r.findIndex((c,u)=>{if(u<=o)return!1;const s=c.trim();return s.length>=n.length&&s.split("").every(f=>f===l)})}function wr(r,o){const n=r.split(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DYrrsQ1p.js","/app/immutable/chunks/Fcr7AvC-.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BhYXv0ZM.js","/app/immutable/chunks/BZnji9hP.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/C0JQvbI4.js","/app/immutable/chunks/cD292w1o.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/D0qhIm1r.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BS1zON0P.js","/app/immutable/chunks/CWfjuhY2.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CZfU7DE3.js","/app/immutable/chunks/ChHRVjww.js","/app/immutable/chunks/2z64ELW5.js","/app/immutable/chunks/BRCr02in.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CA6H1-bp.js","/app/immutable/chunks/BAtAwQ72.js","/app/immutable/chunks/TdGvVwuC.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BwweojP5.js","/app/immutable/chunks/C7b3vXLD.js","/app/immutable/chunks/Xk1ND_1x.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/k5fprFtz.js","/app/immutable/chunks/_IjN0Lbt.js","/app/immutable/chunks/CH7HNVC2.js","/app/immutable/chunks/DrCYFWYk.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BqF1bVQC.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B0SSzYpD.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Beq_QLuz.js","/app/immutable/chunks/Cc0763mU.js","/app/immutable/chunks/D42wJcQ3.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/D7KhILhs.js","/app/immutable/chunks/DfINI0LK.js","/app/immutable/chunks/C3KgmGxd.js","/app/immutable/chunks/CxR-pcVt.js","/app/immutable/chunks/x4bPxhVW.js","/app/immutable/chunks/CWtyXmQ4.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/Cz3WzTlQ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/O5ZlQHf9.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BzXQ5SMs.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/B8m3-qrW.js","/app/immutable/chunks/CpK0xLH4.js","/app/immutable/chunks/C2RnxEnO.js","/app/immutable/chunks/DRMe5Ypb.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/DkQdSPDN.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/assets/notify.DylRFR3N.css","/app/immutable/chunks/koUs6Gjt.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/CVx5OKWy.js","/app/immutable/chunks/B469nFvV.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/iMqZaR5X.js","/app/immutable/chunks/DhXSKt_a.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/D7VoSTzK.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css"])))=>i.map(i=>d[i]);
2
+ import{t as Ue,bo as x,bw as ze,b as Be,bm as Le,_ as Tt}from"./Fcr7AvC-.js";import{bs as Ne,ca as vt,aD as a,bH as y,ay as ie,bS as Z,W,bn as Oe,bV as z,aA as F,c9 as H,aB as j,a5 as q,bA as V,b_ as te,a7 as He,bl as Re,aw as ke,aC as Lt,c3 as be,bb as Pe,bO as Ze,ai as Pt,aF as St,br as Ht,bj as Rt,aj as ee}from"./3SdAC2_C.js";import{i as X}from"./BhYXv0ZM.js";import{e as _e,g as Wt,i as Ut}from"./CA6H1-bp.js";import{h as tt}from"./BKD7o1lQ.js";import{g as Xe,s as rt,f as le}from"./BRCr02in.js";import{b as Te}from"./Dn334wJv.js";import{d3 as Ae,d2 as nt,ao as zt,d5 as ht,a7 as We,aF as kt,aX as Bt,aw as Nt,a5 as at,r as Ot,aO as Vt,aT as Dt,E as qt}from"./C0JQvbI4.js";import{m as jt,br as ot,JH as Ke,vK as Kt,tl as Gt,vM as Jt}from"./D0qhIm1r.js";import{K as Zt,a9 as Xt}from"./cD292w1o.js";import{l as Se}from"./ChTqQfQN.js";import{h as st}from"./B469nFvV.js";import{a as Qt,c as bt,b as Qe,V as Ye,p as Fe,f as wt,I as Yt,r as $t,s as er}from"./D42wJcQ3.js";import{g as it}from"./D_jEt7ej.js";import{t as tr}from"./CWfjuhY2.js";import{f as rr}from"./Beq_QLuz.js";import{F as Ge}from"./BAtAwQ72.js";import{p as lt}from"./B0SSzYpD.js";import{F as nr,bF as ar}from"./ChHRVjww.js";import{t as or}from"./DAsc1V4f.js";function xe(r,o){return o||/^(?:https?:|data:|blob:|workspace-asset:)/i.test(r.trim())}function sr(r,o){if(o||!r)return r;const n=document.createElement("template");n.innerHTML=r;for(const l of n.content.querySelectorAll("img, video")){const c=l.getAttribute("src")||l.getAttribute("data-media-src")||"",u=[...l.querySelectorAll("source")];if(!xe(c,!1)||u.some(f=>!xe(f.getAttribute("src")||"",!1))){const f=document.createElement("img");f.setAttribute("alt",l.getAttribute("alt")||l.getAttribute("data-name")||""),f.setAttribute("data-media-unavailable","node-owned"),l.replaceWith(f);continue}l.removeAttribute("srcset");const s=l.getAttribute("poster");s&&!xe(s,!1)&&l.removeAttribute("poster")}return n.innerHTML}const ir=[/(^|[^\\])\$(?!\$)(?=\S)(?:\\.|[^\\$\n])+?\$(?!\$)/,/(^|[^\\])\\\((?:\\.|[^\\\n])*?\\\)/,/^(?: {0,3})(?:\$\$|\\\[)/m,/^\s*[-*]\s*\[[ x]\]/m,/```/,/`[^`]+`/,/\|.*\|/,/\[.*\]\(.*\)/,/!\[.*\]\(.*\)/,/<[a-z][\s\S]*>/i,/^#{1,6}\s/m,/^\s*>\s/m,/\*\*[^*]+\*\*/,/\*[^*]+\*/,/_[^_]+_/,/~~[^~]+~~/,/^[-*_]{3,}\s*$/m,/^\s*[-*+]\s/m,/^\s*\d+\.\s/m];function lr(r){return r&&(ir.some(o=>o.test(r))||Zt(r,"markdown"))?"static":"simple"}var cr=j("<!> <!>",1);function It(r,o){if(new.target)return Ue({component:It,...r});Ne(o,!0);let n=x(o,"workspaceId",7),l=x(o,"canUseMedia",7),c=z(null),u=z(null),s=z(!1),f=z(!1);function _(m){y(c,{url:m.getAttribute("src")||"",name:m.getAttribute("alt")||void 0,opener:m},!0),y(s,!0)}function I(m){const h=nt(m.getAttribute("href")||"",n());return h&&l()(h)?(y(c,{url:h,name:m.textContent?.trim()||void 0,opener:m,assetLink:!0},!0),y(s,!0),!0):p(m)}function p(m){const h=Ae(m.getAttribute("href")||"",n());return!h||!l()(h.url)?!1:(y(u,{url:h.url,mimeType:h.mimeType,name:m.textContent?.trim()||void 0,opener:m},!0),y(f,!0),!0)}vt(()=>{a(u)&&!Ae(a(u).url,n())&&(y(f,!1),y(u,null)),a(c)?.assetLink&&!nt(a(c).url,n())&&(y(s,!1),y(c,null))});var k={openImage:_,openAsset:I,get workspaceId(){return n()},set workspaceId(m){n(m),F()},get canUseMedia(){return l()},set canUseMedia(m){l(m),F()},$set:ze,$on:(m,h)=>Be(o,m,h)},v=cr(),w=ie(v);{var A=m=>{Qt(m,{get imageUrl(){return a(c).url},get imageName(){return a(c).name},get openerElement(){return a(c).opener},showActionsMenu:!0,get open(){return a(s)},set open(h){y(s,h,!0)}})},T=H(()=>a(c)&&l()(a(c).url));X(w,m=>{a(T)&&m(A)})}var C=Z(w,2);{var t=m=>{bt(m,{get videoUrl(){return a(u).url},get videoName(){return a(u).name},get mimeType(){return a(u).mimeType},sourceKind:"workspace",get openerElement(){return a(u).opener},get open(){return a(f)},set open(h){y(f,h,!0)}})},d=H(()=>a(u)&&Ae(a(u).url,n())&&l()(a(u).url));X(C,m=>{a(d)&&m(t)})}return W(r,v),Oe(k)}var dr=j('<div class="flex items-center gap-2"><!> <!></div>'),ur=Lt('<svg viewBox="0 0 24 24" class="size-10" fill="none"><rect x="3" y="5" width="18" height="14" rx="2" stroke="currentColor"></rect><path d="m10 9 5 3-5 3V9Z" fill="currentColor"></path></svg>'),fr=j('<div class="absolute inset-0 flex items-center justify-center bg-muted text-muted-foreground" aria-hidden="true"><!></div> <video preload="metadata" playsinline="" tabindex="-1" aria-hidden="true"></video> <span class="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/20 motion-reduce:transition-none forced-colors:bg-transparent" aria-hidden="true"><span><svg viewBox="0 0 20 20" fill="currentColor"><path d="m7 5 7 5-7 5V5Z"></path></svg></span></span>',3),mr=j("<div><!> <!></div>"),pr=j('<div class="my-2 min-w-0 max-w-2xl" data-chat-video=""><!></div> <!>',1);function yt(r,o){if(new.target)return Ue({component:yt,...r});Ne(o,!0);let n=x(o,"source",7),l=x(o,"name",23,()=>Le.chat_videoBlock_fromAgent_label()),c=x(o,"poster",7),u=x(o,"allowFileMedia",7,!0),s=x(o,"canOpenFile",7),f=x(o,"fluid",7,!1),_=x(o,"compact",7,!1),I=x(o,"compactPreview",7),p=z(!1),k=z(!1),v=z(!1),w=z(null);const A=H(()=>n().kind==="inline"?`data:${n().mimeType};base64,${n().data}`:n().url);function T(g){return xe(g,u()&&s()?.()!==!1)}const C=H(()=>!T(a(A))),t=H(()=>Fe(a(A))),d=H(()=>{if(!(!c()||!T(c()))){if(/^data:image\/(?:gif|jpeg|png|webp);base64,[a-z0-9+/=]+$/i.test(c()))return c();try{const g=new URL(c());return(g.protocol==="https:"||g.protocol==="workspace-file:")&&!g.username&&!g.password?c():void 0}catch{return}}});function m(){y(k,!0),y(v,!1)}var h={get source(){return n()},set source(g){n(g),F()},get name(){return l()},set name(g=Le.chat_videoBlock_fromAgent_label()){l(g),F()},get poster(){return c()},set poster(g){c(g),F()},get allowFileMedia(){return u()},set allowFileMedia(g=!0){u(g),F()},get canOpenFile(){return s()},set canOpenFile(g){s(g),F()},get fluid(){return f()},set fluid(g=!1){f(g),F()},get compact(){return _()},set compact(g=!1){_(g),F()},get compactPreview(){return I()},set compactPreview(g){I(g),F()},$set:ze,$on:(g,R)=>Be(o,g,R)},E=pr(),U=ie(E);let O;var ve=q(U);{var D=g=>{Qe(g,{get name(){return l()},reason:"load-failed"})},ae=g=>{var R=dr(),ce=q(R);{let Q=H(()=>a(t)?.path),re=H(()=>a(t)?.workspaceId);Qe(ce,{get name(){return l()},reason:"load-failed",get path(){return a(Q)},get workspaceId(){return a(re)}})}var se=Z(ce,2);Ye(se,{get videoUrl(){return a(A)},get videoName(){return l()},get sourceKind(){return n().kind},get mimeType(){return n().mimeType}}),V(R),W(g,R)},K=g=>{var R=mr();let ce;var se=q(R);{let de=H(()=>Le.chat_videoBlock_play_ariaLabel({name:l()}));rr(se,{wrapContent:!1,type:"button",variant:"ghost",size:"default",class:"relative block size-full cursor-pointer overflow-hidden rounded-lg border border-border bg-muted/40 p-0 shadow-(--elevation-raised) focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 forced-colors:border",get"aria-label"(){return a(de)},"data-testid":"chat-video-snapshot",onclick:()=>{T(a(A))&&y(p,!0)},get ref(){return a(w)},set ref(he){y(w,he,!0)},children:(he,De)=>{var ue=He(),B=ie(ue);{var we=Y=>{var G=He(),J=ie(G);tr(J,I),W(Y,G)},fe=Y=>{var G=fr(),J=ie(G),Ce=q(J);{var Ee=pe=>{var qe=ur();W(pe,qe)};X(Ce,pe=>{f()||pe(Ee)})}V(J);var $=Z(J,2);$.muted=!0;var me=Z($,2),Ie=q(me),ye=Re(Ie);V(me),te(()=>{rt($,"src",a(A)),rt($,"poster",a(d)),le($,1,`pointer-events-none absolute inset-0 size-full object-contain transition-opacity motion-reduce:transition-none ${a(d)||a(k)&&!a(v)?"opacity-100":"opacity-0"}`),le(Ie,1,`flex ${_()?"size-6":"size-11"} shrink-0 aspect-square items-center justify-center rounded-full border border-white/70 bg-black/60 text-white shadow-(--elevation-raised) forced-colors:border forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]`),le(ye,0,`ml-0.5 ${_()?"size-3":"size-5"}`)}),ke("loadeddata",$,m),ke("error",$,()=>y(v,!0)),W(Y,G)};X(B,Y=>{I()?Y(we):Y(fe,-1)})}W(he,ue)},$$slots:{default:!0}})}var Q=Z(se,2);{var re=de=>{Ye(de,{get videoUrl(){return a(A)},get videoName(){return l()},get sourceKind(){return n().kind},get mimeType(){return n().mimeType},triggerClass:"absolute right-1.5 top-1.5 opacity-0 transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100"})};X(Q,de=>{I()||de(re)})}V(R),te(()=>{le(R,1,`group relative aspect-video w-full max-w-2xl ${f()?"max-h-72":"max-h-40"}`),ce=Xe(R,"",ce,{height:I()?"100%":void 0,width:f()?"min(100%, calc(18rem * 16 / 9))":"min(100%, calc(10rem * 16 / 9))"})}),W(g,R)};X(ve,g=>{a(C)?g(D):a(v)?g(ae,1):g(K,-1)})}V(U);var oe=Z(U,2);{var Ve=g=>{bt(g,{get videoUrl(){return a(A)},get videoName(){return l()},get poster(){return a(d)},get sourceKind(){return n().kind},get mimeType(){return n().mimeType},get openerElement(){return a(w)},get open(){return a(p)},set open(R){y(p,R,!0)}})};X(oe,g=>{!a(v)&&!a(C)&&g(Ve)})}return te(()=>O=Xe(U,"",O,{height:I()?"100%":void 0})),W(r,E),Oe(h)}const gr=/^\s*!\[([^\]\n]*)\]\((?:<)?((?:intent:\/\/local\/|workspace-file:\/\/|workspace-asset:\/\/)[^)\s>]+)(?:>)?\)\s*$/,vr=/^ {0,3}(`{3,}|~{3,})(.*)$/;function ct(r,o){if(typeof r!="string"||!r||r!==r.trim())return null;if(r.startsWith("workspace-asset://"))return Ae(r,o);if(r.startsWith("workspace-file://")){const l=Fe(r);if(!l||l.workspaceId!==o)return null;const c=ht(r);return c?lt(c,o):null}const n=r.startsWith("intent://")?r:`intent://local/file/${r}`;return lt(n,o)}function hr(r,o){if(r.startsWith("workspace-file://")){const n=Fe(r);if(!n||n.workspaceId!==o)return!1;const l=ht(r);return!!l&&!!We(l,o)}return!!We(r,o,{readOnly:!0})}function kr(r,o){return(o===0||!r[o-1].trim())&&(o===r.length-1||!r[o+1].trim())}function br(r,o,n){const l=n[0];return r.findIndex((c,u)=>{if(u<=o)return!1;const s=c.trim();return s.length>=n.length&&s.split("").every(f=>f===l)})}function wr(r,o){const n=r.split(`
3
3
  `),l=[];let c=[];const u=()=>{const s=c.join(`
4
4
  `);s.trim()&&l.push({type:"markdown",content:s}),c=[]};for(let s=0;s<n.length;s+=1){const f=n[s].match(vr);if(f){const w=br(n,s,f[1]);if(w>s){const A=n.slice(s,w+1);if(f[2].trim()==="ws-block:video")try{const T=JSON.parse(n.slice(s+1,w).join(`
5
- `)),C=ct(T?.path,o);if(C){u(),l.push({type:"video",source:C,name:typeof T.path=="string"?T.path:void 0,poster:typeof T.poster=="string"?T.poster:void 0}),s=w;continue}}catch{}c.push(...A),s=w;continue}c.push(...n.slice(s));break}const I=!/^(?: {4}|\t)/.test(n[s])&&kr(n,s)?n[s].match(gr):null;if(!I){c.push(n[s]);continue}const[,p,k]=I,v=ct(k,o);v?(u(),l.push({type:"video",source:v,name:p||void 0})):k.startsWith("workspace-asset://")&&!zt(k)||hr(k,o)?c.push(n[s]):c.push(`[${p}](${k})`)}return u(),l}function Me(r){return wt(r.getAttribute("src")||"")}function Je(r){return r instanceof HTMLImageElement?r:r instanceof HTMLAnchorElement?r.querySelector("img"):null}function Ir(r,o){const n=r.getBoundingClientRect(),l=o.getBoundingClientRect();return{top:n.top-l.top+6,right:l.right-n.right+6}}function dt(r,o){const n=document.activeElement;return!!(n&&(n===r||n===r?.closest("a")||o?.contains(n)))}function yr(r,o){const n=r.getAttribute("src")||"",l=Fe(n)?.path??kt(n,o)?.path;if(l)return l;if(n.startsWith("workspace-asset://")){const c=n.split(/[?#]/)[0].split("/").pop();if(c)return c}if(n&&!/^[a-z][a-z0-9+.-]*:/i.test(n)&&!n.startsWith("//"))try{return decodeURI(n)}catch{return n}return r.getAttribute("alt")||void 0}const _t="data-image-sized",ut=r=>typeof r=="number"&&Number.isInteger(r)&&r>0;function _r(r){try{return encodeURI(r).replace(/%25/g,"%")}catch{return null}}function Mr(r){return r.startsWith("workspace-file://")?r.split(/[?#]/)[0]:r}function Ar(r,o,n){const l=new Map;for(const[c,u]of Object.entries(r)){if(!u||!ut(u.width)||!ut(u.height))continue;const s={width:u.width,height:u.height},f=new Set([c]),_=_r(c);_&&f.add(_);for(const I of[...f]){const p=We(I,o);if(p&&f.add(p),n!==void 0){const k=Bt(I,n);if(k){const v=We(`intent://local/file/${k.split("/").map(encodeURIComponent).join("/")}`,o);v&&f.add(v)}}}for(const I of f)l.has(I)||l.set(I,s)}return l}function xr(r,o,n,l){if(!o||!r.includes("<img"))return r;const c=Ar(o,n,l);return c.size===0?r:r.replace(/<img\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi,u=>{if(/\s(?:width|height)="/i.test(u))return u;const s=/\ssrc="([^"]*)"/i.exec(u);if(!s)return u;const f=Mr(s[1].replace(/&amp;/g,"&")),_=c.get(f);return _?u.replace(/\s*\/?>$/,` width="${_.width}" height="${_.height}" ${_t}="">`):u})}function ft(r,o){let n=o,l,c=!1,u=!1;const s=new Map;function f(){for(const[p,{component:k,source:v}]of s)be(k),r.contains(p)&&p.replaceWith(v);s.clear()}function _(){if(!u){for(const[p,{component:k}]of s)r.contains(p)||(be(k),s.delete(p));if(n.enabled)for(const p of r.querySelectorAll("pre > code")){if(p.closest("[data-markdown-diagram]"))continue;const k=[...p.classList].find(C=>C.startsWith("language-"))?.slice(9);let v;if(k==="mermaid")v="mermaid";else if(k==="diagram"||k==="ws-block:diagram")v="diagram";else if(k==="ws-block")try{if(JSON.parse(p.textContent??"").type!=="diagram")continue;v="diagram"}catch{continue}else continue;const w=p.parentElement;if(!w)continue;if(!l){c||(c=!0,Tt(()=>import("./Bf739dtf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]),import.meta.url).then(C=>{l=C.default,c=!1,_()}).catch(C=>{c=!1,Se.error("Failed to load the Markdown diagram renderer",{error:C})}));return}const A=document.createElement("div");A.dataset.markdownDiagram=v,w.replaceWith(A);const T=Pe(l,{target:A,context:n.context,props:{kind:v,source:p.textContent??"",workspaceId:n.workspaceId}});s.set(A,{component:T,source:w})}}}const I=new MutationObserver(_);return I.observe(r,{childList:!0,subtree:!0}),queueMicrotask(_),{update(p){(n.enabled!==p.enabled||n.workspaceId!==p.workspaceId)&&f(),n=p,_()},destroy(){u=!0,I.disconnect(),f()}}}var Fr=j('<span class="min-w-0 max-w-full truncate"> </span>'),Cr=j('<span class="type-caption flex min-w-0 max-w-full items-start gap-2 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-loading-placeholder"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="flex min-w-0 flex-wrap items-baseline gap-x-1.5"><span> </span> <!></span></span>');function Mt(r,o){if(new.target)return Ue({component:Mt,...r});Ne(o,!0);let n=x(o,"name",7);var l={get name(){return n()},set name(v){n(v),F()},$set:ze,$on:(v,w)=>Be(o,v,w)},c=Cr(),u=q(c),s=q(u);nr(s,{get icon(){return ar},class:"size-3.5"}),V(u);var f=Z(u,2),_=q(f),I=Re(_,!0),p=Z(_,2);{var k=v=>{var w=Fr(),A=Re(w,!0);_e(w,(T,C)=>or?.(T,C),n),te(()=>Ze(A,n())),W(v,w)};X(p,v=>{n()&&v(k)})}return V(f),V(c),te(v=>Ze(I,v),[()=>Le.ui_mediaLoadingPlaceholder_title_label()]),W(r,c),Oe(l)}const mt="markdown-image-frame";function Er(r,o){const n=new Map,l=new Map,c=new Map,u=[300,1e3];let s=!1;function f(t){let d=l.get(t);return d||(d={source:t.getAttribute("src")||"",workspaceId:o.getWorkspaceId(),retries:0,failureHandled:!1},l.set(t,d)),d}function _(t){const d=f(t);return!s&&r.contains(d.fallbackHost??t)&&d.workspaceId===o.getWorkspaceId()&&o.canUseMedia(d.source)&&!t.hasAttribute("data-media-unavailable")&&!t.hasAttribute("data-media-unsupported")&&at(d.source)!==null}function I(t,d=!1){if(!_(t))return;const m=f(t),h=at(m.source);if(!h)return;const E=m.fallbackHost,U=E?.contains(document.activeElement)??!1;if(m.failureHandled=!1,m.fallbackHost=void 0,d&&(m.retries=0),t.removeAttribute("src"),t.setAttribute("src",h),E){const O=n.get(E);O&&be(O),n.delete(E),E.replaceWith(t),A(),U&&r.contains(t)&&t.focus()}}function p(t){const d=f(t);s||!r.contains(t)||d.failureHandled||(d.failureHandled=!0,_(t)&&d.retries<u.length?d.timer=setTimeout(()=>{d.timer=void 0,I(t)},u[d.retries++]):w(t,"load-failed"))}function k(t){const d=t.parentElement;return d?.classList.contains(mt)?d:null}function v(t){const d=Number(t.getAttribute("width")),m=Number(t.getAttribute("height"));if(!(d>0&&m>0))return;const h=document.createElement("span");h.className=mt,h.style.aspectRatio=`${d} / ${m}`,h.style.setProperty("--image-aspect-ratio",`${d} / ${m}`),h.style.setProperty("--image-width",`${d}px`),h.dataset.loaded="false",t.replaceWith(h),h.appendChild(t);const E=h.appendChild(document.createElement("span"));E.className="markdown-image-frame-placeholder",n.set(E,Pe(Mt,{target:E,props:{name:yr(t,o.getWorkspaceId())}}));const U=()=>{if(c.delete(t),s||!r.contains(h))return;h.dataset.loaded="true";const O=n.get(E);O&&(be(O),n.delete(E)),E.remove()};t.complete&&t.naturalWidth>0?U():(c.set(t,U),t.addEventListener("load",U,{once:!0}))}function w(t,d){const m=t.getAttribute("src")||t.getAttribute("data-media-src")||"",h=Fe(m),E=kt(m,o.getWorkspaceId()),U=h?.path??E?.path,O=h?.workspaceId??E?.workspaceId,ve=t.getAttribute("data-name")||t.getAttribute("alt")||U?.split("/").pop()||void 0,D=document.createElement(t instanceof HTMLVideoElement?"div":"span");D.className="media-unavailable-host",(k(t)??t).replaceWith(D),o.onMediaRemoved(t);let ae;if(t instanceof HTMLImageElement&&d==="load-failed"){const oe=f(t);oe.fallbackHost=D,_(t)&&(ae=()=>I(t,!0))}const K=Pe(Qe,{target:D,props:{name:ve,reason:d,path:U,workspaceId:O,onRetry:ae}});if(n.set(D,K),t instanceof HTMLVideoElement){D.classList.add("flex","items-center","gap-2");const oe=D.appendChild(document.createElement("span"));n.set(oe,Pe(Ye,{target:oe,props:{videoUrl:m,videoName:ve,sourceKind:"workspace",mimeType:Ae(m,o.getWorkspaceId())?.mimeType}}))}}function A(){if(!s){for(const t of r.querySelectorAll("img"))Me(t)&&!t.closest("a")&&(t.tabIndex=0,t.setAttribute("role","button")),!(t.hasAttribute("data-media-unsupported")||t.hasAttribute("data-media-unavailable"))&&(f(t),t.hasAttribute(_t)&&!k(t)&&v(t),t.getAttribute("src")&&t.complete&&t.naturalWidth===0&&p(t));for(const t of r.querySelectorAll("[data-media-unsupported]"))w(t,"unsupported");for(const t of r.querySelectorAll("[data-media-unavailable]"))w(t,Nt(t));for(const[t,d]of l)r.contains(d.fallbackHost??t)||(d.timer!==void 0&&clearTimeout(d.timer),l.delete(t));for(const[t,d]of c)r.contains(t)||(t.removeEventListener("load",d),c.delete(t));for(const[t,d]of n)r.contains(t)||(be(d),n.delete(t))}}function T(t){const d=t.target;(d instanceof HTMLImageElement||d instanceof HTMLVideoElement)&&(d instanceof HTMLImageElement?p(d):w(d,"load-failed"))}const C=new MutationObserver(A);return C.observe(r,{childList:!0,subtree:!0}),r.addEventListener("error",T,!0),queueMicrotask(A),{destroy(){s=!0,C.disconnect();for(const t of l.values())t.timer!==void 0&&clearTimeout(t.timer);l.clear();for(const[t,d]of c)t.removeEventListener("load",d);c.clear(),r.removeEventListener("error",T,!0);for(const t of n.values())be(t);n.clear()}}}var Tr=j('<div class="image-actions-overlay absolute z-10 svelte-nzvuq5" data-testid="markdown-image-actions-overlay"><!></div>'),Lr=j("<div></div>"),pt=j('<div role="group"><!> <!></div>'),Pr=j('<div><p class="whitespace-pre-wrap svelte-nzvuq5"> </p></div>'),Sr=j("<!> <!>",1);function gt(r,o){if(new.target)return Ue({component:gt,...r});Ne(o,!0);const n=e=>{var i=He(),M=ie(i);{var b=P=>{var S=Tr(),ne=q(S);{let N=H(()=>a(B).getAttribute("src")||""),ge=H(()=>a(B).getAttribute("alt")||void 0);Te(Yt(ne,{get imageUrl(){return a(N)},get imageName(){return a(ge)},get open(){return a(fe)},set open(je){y(fe,je,!0)}}),je=>y(Y,je,!0),()=>a(Y))}V(S),Te(S,N=>y(G,N),()=>a(G)),te(()=>Xe(S,`top: ${a(we).top??""}px; right: ${a(we).right??""}px;`)),W(P,S)},L=H(()=>a(B)&&K(a(B).getAttribute("src")||""));X(M,P=>{a(L)&&P(b)})}W(e,i)};let l=x(o,"content",7),c=x(o,"isStreaming",7,!1),u=x(o,"className",7,""),s=x(o,"workspaceId",23,()=>it()?.workspaceId??void 0),f=x(o,"relativeMediaBase",7),_=x(o,"onCodeBlockAction",7),I=x(o,"onFileClick",7),p=x(o,"canOpenFile",7),k=x(o,"allowFileMedia",7,!0),v=x(o,"taskBlockRenderMode",7,"placeholder"),w=x(o,"chatImageThumbnails",7,!1),A=x(o,"forceExternalLinks",7,!1),T=x(o,"renderRichFencesAsCode",7,!1),C=x(o,"renderDiagrams",7,!1),t=x(o,"allowSanitizedHtml",7,!1),d=x(o,"media",7);const m=Ot(),h=St(),E=H(()=>wr(l(),s())),U=H(()=>a(E).some(e=>e.type==="video")),O=H(()=>!a(U)&&a(E).length===1&&a(E)[0].type==="markdown"?a(E)[0].content:l()),ve=H(()=>lr(a(O)));let D=z(null),ae=z("");function K(e){return xe(e,k()&&p()?.()!==!1)}const oe=H(()=>sr(a(ae),k()&&p()?.()!==!1)),Ve=H(()=>$t(a(oe),s(),er)),g=H(()=>`<div class="markdown-content">${a(Ve)}</div>`);let R=0;const ce=150;let se=-1/0,Q=null,re=null;async function de(e,i,M,b){try{const L=await Vt(e,{...i,readOnly:!0});if(b!==R)return;y(ae,xr(L,M,i?.workspaceId,i?.relativeMediaBase),!0)}catch(L){if(b!==R)return;Se.error("Failed to process markdown:",L);const P=e.replace(/[&<>"']/g,S=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[S]||S);y(ae,`<p>${P}</p>`)}}function he(){if(!re)return;const e=ce-(performance.now()-se);if(e>0){Q=setTimeout(()=>{Q=null,he()},e);return}const i=re;re=null,se=performance.now(),i()}function De(){Q!==null&&(clearTimeout(Q),Q=null),re=null,se=-1/0}vt(()=>{const e=a(O),i={allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!0,taskBlockRenderMode:v(),workspaceId:s(),relativeMediaBase:f()??(s()&&s()!==jt?"":void 0),renderRichFencesAsCode:T()||C(),processPrimitives:!C(),allowSanitizedHtml:t(),renderMath:!c(),workspaceFileVersion:m},M=d(),b=++R,L=()=>void de(e,i,M,b);c()?(re=L,Q===null&&he()):(De(),L())});let ue=z(void 0),B=z(null),we=z(Ht({top:0,right:0})),fe=z(!1),Y=z(void 0),G=z(null);function J(e){if(e.type==="mouseover"&&dt(a(B),a(G)))return;const i=e.target,M=Je(i);if(M&&Me(M)&&K(M.getAttribute("src")||"")){if(a(B)===M)return;y(B,M,!0),y(we,Ir(M,e.currentTarget),!0)}else if(a(B)&&!a(fe)){if(i instanceof Node&&a(G)?.contains(i))return;y(B,null)}}function Ce(){!a(fe)&&!dt(a(B),a(G))&&y(B,null)}function Ee(e){const i=Je(e.target);!i||!Me(i)||!K(i.getAttribute("src")||"")||(e.preventDefault(),e.stopPropagation(),J(e),y(fe,!0))}function $(e){return Er(e,{getWorkspaceId:()=>s(),canUseMedia:K,onMediaRemoved:i=>{a(B)===i&&y(B,null)}})}function me(e){const i=e.target,M=i.closest("a");if(!M&&i instanceof HTMLImageElement){const L=i.getAttribute("src")||"";if(wt(L)&&K(L)){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openImage(i);return}}if(M?.href){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openAsset(M))return;const L=pe(e),P=s()?ot(s()):void 0;st(M.href,{workspaceId:P,canOpenFile:p(),sourcePanelId:L,event:e,rawHref:M.getAttribute("href")??void 0,...A()?{forceExternal:!0}:{}});return}const b=Dt(i.closest("[data-mention]"));if(b){const{type:L,meta:P}=b;if(L==="file"&&b.filePath){if(p()?.()===!1)return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.filePath;Se.debug("[MarkdownViewer] File mention clicked",{filePath:S,meta:P});const ne=pe(e),N=Ge({event:e});if(I())I()(S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne});else{const ge=s();ge&&Ke.dispatch(Kt(ge,S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne}))}}else if(b.folderPath!==void 0){if(p()?.()===!1||!s())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),Ke.dispatch(Gt(s(),qt(b.folderPath)))}else if(L==="note"&&b.note){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.note.id;Se.debug("[MarkdownViewer] Note mention clicked",{noteId:S,meta:P});const ne=pe(e),N=Ge({event:e});if(b.note.workspaceId&&b.note.workspaceId!==s()){st(Xt(S,b.note.workspaceId),{workspaceId:s()?ot(s()):void 0,sourcePanelId:ne,event:e});return}const ge=s();ge&&Ke.dispatch(Jt(ge,S,{openInAdjacentPanel:N,sourcePanelId:ne}))}}}function Ie(e){if(ye(e),!e.defaultPrevented){if(e.target instanceof HTMLImageElement&&Me(e.target)&&(e.key==="Enter"||e.key===" ")){me(e);return}e.key!=="Enter"||!Ge({event:e})||me(e)}}function ye(e){const i=Je(e.target);!i||!Me(i)||!K(i.getAttribute("src")||"")||a(Y)?.handleCopy(e,i.getAttribute("src")||"")}function pe(e){const i=e.target;if(i instanceof HTMLElement)return i.closest("[data-panel-id]")?.dataset.panelId}Rt(()=>{R+=1,De()});var qe={get content(){return l()},set content(e){l(e),F()},get isStreaming(){return c()},set isStreaming(e=!1){c(e),F()},get className(){return u()},set className(e=""){u(e),F()},get workspaceId(){return s()},set workspaceId(e=it()?.workspaceId??void 0){s(e),F()},get relativeMediaBase(){return f()},set relativeMediaBase(e){f(e),F()},get onCodeBlockAction(){return _()},set onCodeBlockAction(e){_(e),F()},get onFileClick(){return I()},set onFileClick(e){I(e),F()},get canOpenFile(){return p()},set canOpenFile(e){p(e),F()},get allowFileMedia(){return k()},set allowFileMedia(e=!0){k(e),F()},get taskBlockRenderMode(){return v()},set taskBlockRenderMode(e="placeholder"){v(e),F()},get chatImageThumbnails(){return w()},set chatImageThumbnails(e=!1){w(e),F()},get forceExternalLinks(){return A()},set forceExternalLinks(e=!1){A(e),F()},get renderRichFencesAsCode(){return T()},set renderRichFencesAsCode(e=!1){T(e),F()},get renderDiagrams(){return C()},set renderDiagrams(e=!1){C(e),F()},get allowSanitizedHtml(){return t()},set allowSanitizedHtml(e=!1){t(e),F()},get media(){return d()},set media(e){d(e),F()},$set:ze,$on:(e,i)=>Be(o,e,i)},$e=Sr(),et=ie($e);{var At=e=>{var i=Lr();Wt(i,21,()=>a(E),Ut,(M,b)=>{var L=He(),P=ie(L);{var S=N=>{yt(N,{get allowFileMedia(){return k()},get canOpenFile(){return p()},get source(){return a(b).source},get name(){return a(b).name},get poster(){return a(b).poster}})},ne=N=>{gt(N,{get content(){return a(b).content},get isStreaming(){return c()},get workspaceId(){return s()},get relativeMediaBase(){return f()},get onCodeBlockAction(){return _()},get onFileClick(){return I()},get canOpenFile(){return p()},get allowFileMedia(){return k()},get taskBlockRenderMode(){return v()},get chatImageThumbnails(){return w()},get forceExternalLinks(){return A()},get renderRichFencesAsCode(){return T()},get renderDiagrams(){return C()},get allowSanitizedHtml(){return t()},get media(){return d()}})};X(P,N=>{a(b).type==="video"?N(S):N(ne,-1)})}W(M,L)}),V(i),te(()=>le(i,1,`markdown-video-segments ${u()??""}`,"svelte-nzvuq5")),W(e,i)},xt=e=>{var i=pt();let M;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>M=le(i,1,`markdown-viewer streaming-content ${u()??""}`,"svelte-nzvuq5",M,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Ee),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)},Ft=e=>{var i=Pr(),M=q(i),b=Re(M,!0);V(i),te(()=>{le(i,1,`markdown-viewer simple-content ${u()??""}`,"svelte-nzvuq5"),Ze(b,a(O))}),W(e,i)},Ct=e=>{var i=pt();let M;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),Te(i,P=>y(D,P),()=>a(D)),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>M=le(i,1,`markdown-viewer static-content ${u()??""}`,"svelte-nzvuq5",M,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Ee),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)};X(et,e=>{a(U)?e(At):c()?e(xt,1):a(ve)==="simple"&&!t()?e(Ft,2):e(Ct,-1)})}var Et=Z(et,2);return Te(It(Et,{get workspaceId(){return s()},canUseMedia:K}),e=>y(ue,e,!0),()=>a(ue)),W(r,$e),Oe(qe)}Pt(["click","keydown","contextmenu","mouseover","focusin"]);export{yt as C,gt as M,Mt as a,wr as s};
5
+ `)),C=ct(T?.path,o);if(C){u(),l.push({type:"video",source:C,name:typeof T.path=="string"?T.path:void 0,poster:typeof T.poster=="string"?T.poster:void 0}),s=w;continue}}catch{}c.push(...A),s=w;continue}c.push(...n.slice(s));break}const I=!/^(?: {4}|\t)/.test(n[s])&&kr(n,s)?n[s].match(gr):null;if(!I){c.push(n[s]);continue}const[,p,k]=I,v=ct(k,o);v?(u(),l.push({type:"video",source:v,name:p||void 0})):k.startsWith("workspace-asset://")&&!zt(k)||hr(k,o)?c.push(n[s]):c.push(`[${p}](${k})`)}return u(),l}function Me(r){return wt(r.getAttribute("src")||"")}function Je(r){return r instanceof HTMLImageElement?r:r instanceof HTMLAnchorElement?r.querySelector("img"):null}function Ir(r,o){const n=r.getBoundingClientRect(),l=o.getBoundingClientRect();return{top:n.top-l.top+6,right:l.right-n.right+6}}function dt(r,o){const n=document.activeElement;return!!(n&&(n===r||n===r?.closest("a")||o?.contains(n)))}function yr(r,o){const n=r.getAttribute("src")||"",l=Fe(n)?.path??kt(n,o)?.path;if(l)return l;if(n.startsWith("workspace-asset://")){const c=n.split(/[?#]/)[0].split("/").pop();if(c)return c}if(n&&!/^[a-z][a-z0-9+.-]*:/i.test(n)&&!n.startsWith("//"))try{return decodeURI(n)}catch{return n}return r.getAttribute("alt")||void 0}const _t="data-image-sized",ut=r=>typeof r=="number"&&Number.isInteger(r)&&r>0;function _r(r){try{return encodeURI(r).replace(/%25/g,"%")}catch{return null}}function Mr(r){return r.startsWith("workspace-file://")?r.split(/[?#]/)[0]:r}function Ar(r,o,n){const l=new Map;for(const[c,u]of Object.entries(r)){if(!u||!ut(u.width)||!ut(u.height))continue;const s={width:u.width,height:u.height},f=new Set([c]),_=_r(c);_&&f.add(_);for(const I of[...f]){const p=We(I,o);if(p&&f.add(p),n!==void 0){const k=Bt(I,n);if(k){const v=We(`intent://local/file/${k.split("/").map(encodeURIComponent).join("/")}`,o);v&&f.add(v)}}}for(const I of f)l.has(I)||l.set(I,s)}return l}function xr(r,o,n,l){if(!o||!r.includes("<img"))return r;const c=Ar(o,n,l);return c.size===0?r:r.replace(/<img\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi,u=>{if(/\s(?:width|height)="/i.test(u))return u;const s=/\ssrc="([^"]*)"/i.exec(u);if(!s)return u;const f=Mr(s[1].replace(/&amp;/g,"&")),_=c.get(f);return _?u.replace(/\s*\/?>$/,` width="${_.width}" height="${_.height}" ${_t}="">`):u})}function ft(r,o){let n=o,l,c=!1,u=!1;const s=new Map;function f(){for(const[p,{component:k,source:v}]of s)be(k),r.contains(p)&&p.replaceWith(v);s.clear()}function _(){if(!u){for(const[p,{component:k}]of s)r.contains(p)||(be(k),s.delete(p));if(n.enabled)for(const p of r.querySelectorAll("pre > code")){if(p.closest("[data-markdown-diagram]"))continue;const k=[...p.classList].find(C=>C.startsWith("language-"))?.slice(9);let v;if(k==="mermaid")v="mermaid";else if(k==="diagram"||k==="ws-block:diagram")v="diagram";else if(k==="ws-block")try{if(JSON.parse(p.textContent??"").type!=="diagram")continue;v="diagram"}catch{continue}else continue;const w=p.parentElement;if(!w)continue;if(!l){c||(c=!0,Tt(()=>import("./DYrrsQ1p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]),import.meta.url).then(C=>{l=C.default,c=!1,_()}).catch(C=>{c=!1,Se.error("Failed to load the Markdown diagram renderer",{error:C})}));return}const A=document.createElement("div");A.dataset.markdownDiagram=v,w.replaceWith(A);const T=Pe(l,{target:A,context:n.context,props:{kind:v,source:p.textContent??"",workspaceId:n.workspaceId}});s.set(A,{component:T,source:w})}}}const I=new MutationObserver(_);return I.observe(r,{childList:!0,subtree:!0}),queueMicrotask(_),{update(p){(n.enabled!==p.enabled||n.workspaceId!==p.workspaceId)&&f(),n=p,_()},destroy(){u=!0,I.disconnect(),f()}}}var Fr=j('<span class="min-w-0 max-w-full truncate"> </span>'),Cr=j('<span class="type-caption flex min-w-0 max-w-full items-start gap-2 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-loading-placeholder"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="flex min-w-0 flex-wrap items-baseline gap-x-1.5"><span> </span> <!></span></span>');function Mt(r,o){if(new.target)return Ue({component:Mt,...r});Ne(o,!0);let n=x(o,"name",7);var l={get name(){return n()},set name(v){n(v),F()},$set:ze,$on:(v,w)=>Be(o,v,w)},c=Cr(),u=q(c),s=q(u);nr(s,{get icon(){return ar},class:"size-3.5"}),V(u);var f=Z(u,2),_=q(f),I=Re(_,!0),p=Z(_,2);{var k=v=>{var w=Fr(),A=Re(w,!0);_e(w,(T,C)=>or?.(T,C),n),te(()=>Ze(A,n())),W(v,w)};X(p,v=>{n()&&v(k)})}return V(f),V(c),te(v=>Ze(I,v),[()=>Le.ui_mediaLoadingPlaceholder_title_label()]),W(r,c),Oe(l)}const mt="markdown-image-frame";function Er(r,o){const n=new Map,l=new Map,c=new Map,u=[300,1e3];let s=!1;function f(t){let d=l.get(t);return d||(d={source:t.getAttribute("src")||"",workspaceId:o.getWorkspaceId(),retries:0,failureHandled:!1},l.set(t,d)),d}function _(t){const d=f(t);return!s&&r.contains(d.fallbackHost??t)&&d.workspaceId===o.getWorkspaceId()&&o.canUseMedia(d.source)&&!t.hasAttribute("data-media-unavailable")&&!t.hasAttribute("data-media-unsupported")&&at(d.source)!==null}function I(t,d=!1){if(!_(t))return;const m=f(t),h=at(m.source);if(!h)return;const E=m.fallbackHost,U=E?.contains(document.activeElement)??!1;if(m.failureHandled=!1,m.fallbackHost=void 0,d&&(m.retries=0),t.removeAttribute("src"),t.setAttribute("src",h),E){const O=n.get(E);O&&be(O),n.delete(E),E.replaceWith(t),A(),U&&r.contains(t)&&t.focus()}}function p(t){const d=f(t);s||!r.contains(t)||d.failureHandled||(d.failureHandled=!0,_(t)&&d.retries<u.length?d.timer=setTimeout(()=>{d.timer=void 0,I(t)},u[d.retries++]):w(t,"load-failed"))}function k(t){const d=t.parentElement;return d?.classList.contains(mt)?d:null}function v(t){const d=Number(t.getAttribute("width")),m=Number(t.getAttribute("height"));if(!(d>0&&m>0))return;const h=document.createElement("span");h.className=mt,h.style.aspectRatio=`${d} / ${m}`,h.style.setProperty("--image-aspect-ratio",`${d} / ${m}`),h.style.setProperty("--image-width",`${d}px`),h.dataset.loaded="false",t.replaceWith(h),h.appendChild(t);const E=h.appendChild(document.createElement("span"));E.className="markdown-image-frame-placeholder",n.set(E,Pe(Mt,{target:E,props:{name:yr(t,o.getWorkspaceId())}}));const U=()=>{if(c.delete(t),s||!r.contains(h))return;h.dataset.loaded="true";const O=n.get(E);O&&(be(O),n.delete(E)),E.remove()};t.complete&&t.naturalWidth>0?U():(c.set(t,U),t.addEventListener("load",U,{once:!0}))}function w(t,d){const m=t.getAttribute("src")||t.getAttribute("data-media-src")||"",h=Fe(m),E=kt(m,o.getWorkspaceId()),U=h?.path??E?.path,O=h?.workspaceId??E?.workspaceId,ve=t.getAttribute("data-name")||t.getAttribute("alt")||U?.split("/").pop()||void 0,D=document.createElement(t instanceof HTMLVideoElement?"div":"span");D.className="media-unavailable-host",(k(t)??t).replaceWith(D),o.onMediaRemoved(t);let ae;if(t instanceof HTMLImageElement&&d==="load-failed"){const oe=f(t);oe.fallbackHost=D,_(t)&&(ae=()=>I(t,!0))}const K=Pe(Qe,{target:D,props:{name:ve,reason:d,path:U,workspaceId:O,onRetry:ae}});if(n.set(D,K),t instanceof HTMLVideoElement){D.classList.add("flex","items-center","gap-2");const oe=D.appendChild(document.createElement("span"));n.set(oe,Pe(Ye,{target:oe,props:{videoUrl:m,videoName:ve,sourceKind:"workspace",mimeType:Ae(m,o.getWorkspaceId())?.mimeType}}))}}function A(){if(!s){for(const t of r.querySelectorAll("img"))Me(t)&&!t.closest("a")&&(t.tabIndex=0,t.setAttribute("role","button")),!(t.hasAttribute("data-media-unsupported")||t.hasAttribute("data-media-unavailable"))&&(f(t),t.hasAttribute(_t)&&!k(t)&&v(t),t.getAttribute("src")&&t.complete&&t.naturalWidth===0&&p(t));for(const t of r.querySelectorAll("[data-media-unsupported]"))w(t,"unsupported");for(const t of r.querySelectorAll("[data-media-unavailable]"))w(t,Nt(t));for(const[t,d]of l)r.contains(d.fallbackHost??t)||(d.timer!==void 0&&clearTimeout(d.timer),l.delete(t));for(const[t,d]of c)r.contains(t)||(t.removeEventListener("load",d),c.delete(t));for(const[t,d]of n)r.contains(t)||(be(d),n.delete(t))}}function T(t){const d=t.target;(d instanceof HTMLImageElement||d instanceof HTMLVideoElement)&&(d instanceof HTMLImageElement?p(d):w(d,"load-failed"))}const C=new MutationObserver(A);return C.observe(r,{childList:!0,subtree:!0}),r.addEventListener("error",T,!0),queueMicrotask(A),{destroy(){s=!0,C.disconnect();for(const t of l.values())t.timer!==void 0&&clearTimeout(t.timer);l.clear();for(const[t,d]of c)t.removeEventListener("load",d);c.clear(),r.removeEventListener("error",T,!0);for(const t of n.values())be(t);n.clear()}}}var Tr=j('<div class="image-actions-overlay absolute z-10 svelte-nzvuq5" data-testid="markdown-image-actions-overlay"><!></div>'),Lr=j("<div></div>"),pt=j('<div role="group"><!> <!></div>'),Pr=j('<div><p class="whitespace-pre-wrap svelte-nzvuq5"> </p></div>'),Sr=j("<!> <!>",1);function gt(r,o){if(new.target)return Ue({component:gt,...r});Ne(o,!0);const n=e=>{var i=He(),M=ie(i);{var b=P=>{var S=Tr(),ne=q(S);{let N=H(()=>a(B).getAttribute("src")||""),ge=H(()=>a(B).getAttribute("alt")||void 0);Te(Yt(ne,{get imageUrl(){return a(N)},get imageName(){return a(ge)},get open(){return a(fe)},set open(je){y(fe,je,!0)}}),je=>y(Y,je,!0),()=>a(Y))}V(S),Te(S,N=>y(G,N),()=>a(G)),te(()=>Xe(S,`top: ${a(we).top??""}px; right: ${a(we).right??""}px;`)),W(P,S)},L=H(()=>a(B)&&K(a(B).getAttribute("src")||""));X(M,P=>{a(L)&&P(b)})}W(e,i)};let l=x(o,"content",7),c=x(o,"isStreaming",7,!1),u=x(o,"className",7,""),s=x(o,"workspaceId",23,()=>it()?.workspaceId??void 0),f=x(o,"relativeMediaBase",7),_=x(o,"onCodeBlockAction",7),I=x(o,"onFileClick",7),p=x(o,"canOpenFile",7),k=x(o,"allowFileMedia",7,!0),v=x(o,"taskBlockRenderMode",7,"placeholder"),w=x(o,"chatImageThumbnails",7,!1),A=x(o,"forceExternalLinks",7,!1),T=x(o,"renderRichFencesAsCode",7,!1),C=x(o,"renderDiagrams",7,!1),t=x(o,"allowSanitizedHtml",7,!1),d=x(o,"media",7);const m=Ot(),h=St(),E=H(()=>wr(l(),s())),U=H(()=>a(E).some(e=>e.type==="video")),O=H(()=>!a(U)&&a(E).length===1&&a(E)[0].type==="markdown"?a(E)[0].content:l()),ve=H(()=>lr(a(O)));let D=z(null),ae=z("");function K(e){return xe(e,k()&&p()?.()!==!1)}const oe=H(()=>sr(a(ae),k()&&p()?.()!==!1)),Ve=H(()=>$t(a(oe),s(),er)),g=H(()=>`<div class="markdown-content">${a(Ve)}</div>`);let R=0;const ce=150;let se=-1/0,Q=null,re=null;async function de(e,i,M,b){try{const L=await Vt(e,{...i,readOnly:!0});if(b!==R)return;y(ae,xr(L,M,i?.workspaceId,i?.relativeMediaBase),!0)}catch(L){if(b!==R)return;Se.error("Failed to process markdown:",L);const P=e.replace(/[&<>"']/g,S=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[S]||S);y(ae,`<p>${P}</p>`)}}function he(){if(!re)return;const e=ce-(performance.now()-se);if(e>0){Q=setTimeout(()=>{Q=null,he()},e);return}const i=re;re=null,se=performance.now(),i()}function De(){Q!==null&&(clearTimeout(Q),Q=null),re=null,se=-1/0}vt(()=>{const e=a(O),i={allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!0,taskBlockRenderMode:v(),workspaceId:s(),relativeMediaBase:f()??(s()&&s()!==jt?"":void 0),renderRichFencesAsCode:T()||C(),processPrimitives:!C(),allowSanitizedHtml:t(),renderMath:!c(),workspaceFileVersion:m},M=d(),b=++R,L=()=>void de(e,i,M,b);c()?(re=L,Q===null&&he()):(De(),L())});let ue=z(void 0),B=z(null),we=z(Ht({top:0,right:0})),fe=z(!1),Y=z(void 0),G=z(null);function J(e){if(e.type==="mouseover"&&dt(a(B),a(G)))return;const i=e.target,M=Je(i);if(M&&Me(M)&&K(M.getAttribute("src")||"")){if(a(B)===M)return;y(B,M,!0),y(we,Ir(M,e.currentTarget),!0)}else if(a(B)&&!a(fe)){if(i instanceof Node&&a(G)?.contains(i))return;y(B,null)}}function Ce(){!a(fe)&&!dt(a(B),a(G))&&y(B,null)}function Ee(e){const i=Je(e.target);!i||!Me(i)||!K(i.getAttribute("src")||"")||(e.preventDefault(),e.stopPropagation(),J(e),y(fe,!0))}function $(e){return Er(e,{getWorkspaceId:()=>s(),canUseMedia:K,onMediaRemoved:i=>{a(B)===i&&y(B,null)}})}function me(e){const i=e.target,M=i.closest("a");if(!M&&i instanceof HTMLImageElement){const L=i.getAttribute("src")||"";if(wt(L)&&K(L)){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openImage(i);return}}if(M?.href){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openAsset(M))return;const L=pe(e),P=s()?ot(s()):void 0;st(M.href,{workspaceId:P,canOpenFile:p(),sourcePanelId:L,event:e,rawHref:M.getAttribute("href")??void 0,...A()?{forceExternal:!0}:{}});return}const b=Dt(i.closest("[data-mention]"));if(b){const{type:L,meta:P}=b;if(L==="file"&&b.filePath){if(p()?.()===!1)return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.filePath;Se.debug("[MarkdownViewer] File mention clicked",{filePath:S,meta:P});const ne=pe(e),N=Ge({event:e});if(I())I()(S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne});else{const ge=s();ge&&Ke.dispatch(Kt(ge,S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne}))}}else if(b.folderPath!==void 0){if(p()?.()===!1||!s())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),Ke.dispatch(Gt(s(),qt(b.folderPath)))}else if(L==="note"&&b.note){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.note.id;Se.debug("[MarkdownViewer] Note mention clicked",{noteId:S,meta:P});const ne=pe(e),N=Ge({event:e});if(b.note.workspaceId&&b.note.workspaceId!==s()){st(Xt(S,b.note.workspaceId),{workspaceId:s()?ot(s()):void 0,sourcePanelId:ne,event:e});return}const ge=s();ge&&Ke.dispatch(Jt(ge,S,{openInAdjacentPanel:N,sourcePanelId:ne}))}}}function Ie(e){if(ye(e),!e.defaultPrevented){if(e.target instanceof HTMLImageElement&&Me(e.target)&&(e.key==="Enter"||e.key===" ")){me(e);return}e.key!=="Enter"||!Ge({event:e})||me(e)}}function ye(e){const i=Je(e.target);!i||!Me(i)||!K(i.getAttribute("src")||"")||a(Y)?.handleCopy(e,i.getAttribute("src")||"")}function pe(e){const i=e.target;if(i instanceof HTMLElement)return i.closest("[data-panel-id]")?.dataset.panelId}Rt(()=>{R+=1,De()});var qe={get content(){return l()},set content(e){l(e),F()},get isStreaming(){return c()},set isStreaming(e=!1){c(e),F()},get className(){return u()},set className(e=""){u(e),F()},get workspaceId(){return s()},set workspaceId(e=it()?.workspaceId??void 0){s(e),F()},get relativeMediaBase(){return f()},set relativeMediaBase(e){f(e),F()},get onCodeBlockAction(){return _()},set onCodeBlockAction(e){_(e),F()},get onFileClick(){return I()},set onFileClick(e){I(e),F()},get canOpenFile(){return p()},set canOpenFile(e){p(e),F()},get allowFileMedia(){return k()},set allowFileMedia(e=!0){k(e),F()},get taskBlockRenderMode(){return v()},set taskBlockRenderMode(e="placeholder"){v(e),F()},get chatImageThumbnails(){return w()},set chatImageThumbnails(e=!1){w(e),F()},get forceExternalLinks(){return A()},set forceExternalLinks(e=!1){A(e),F()},get renderRichFencesAsCode(){return T()},set renderRichFencesAsCode(e=!1){T(e),F()},get renderDiagrams(){return C()},set renderDiagrams(e=!1){C(e),F()},get allowSanitizedHtml(){return t()},set allowSanitizedHtml(e=!1){t(e),F()},get media(){return d()},set media(e){d(e),F()},$set:ze,$on:(e,i)=>Be(o,e,i)},$e=Sr(),et=ie($e);{var At=e=>{var i=Lr();Wt(i,21,()=>a(E),Ut,(M,b)=>{var L=He(),P=ie(L);{var S=N=>{yt(N,{get allowFileMedia(){return k()},get canOpenFile(){return p()},get source(){return a(b).source},get name(){return a(b).name},get poster(){return a(b).poster}})},ne=N=>{gt(N,{get content(){return a(b).content},get isStreaming(){return c()},get workspaceId(){return s()},get relativeMediaBase(){return f()},get onCodeBlockAction(){return _()},get onFileClick(){return I()},get canOpenFile(){return p()},get allowFileMedia(){return k()},get taskBlockRenderMode(){return v()},get chatImageThumbnails(){return w()},get forceExternalLinks(){return A()},get renderRichFencesAsCode(){return T()},get renderDiagrams(){return C()},get allowSanitizedHtml(){return t()},get media(){return d()}})};X(P,N=>{a(b).type==="video"?N(S):N(ne,-1)})}W(M,L)}),V(i),te(()=>le(i,1,`markdown-video-segments ${u()??""}`,"svelte-nzvuq5")),W(e,i)},xt=e=>{var i=pt();let M;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>M=le(i,1,`markdown-viewer streaming-content ${u()??""}`,"svelte-nzvuq5",M,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Ee),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)},Ft=e=>{var i=Pr(),M=q(i),b=Re(M,!0);V(i),te(()=>{le(i,1,`markdown-viewer simple-content ${u()??""}`,"svelte-nzvuq5"),Ze(b,a(O))}),W(e,i)},Ct=e=>{var i=pt();let M;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),Te(i,P=>y(D,P),()=>a(D)),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>M=le(i,1,`markdown-viewer static-content ${u()??""}`,"svelte-nzvuq5",M,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Ee),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)};X(et,e=>{a(U)?e(At):c()?e(xt,1):a(ve)==="simple"&&!t()?e(Ft,2):e(Ct,-1)})}var Et=Z(et,2);return Te(It(Et,{get workspaceId(){return s()},canUseMedia:K}),e=>y(ue,e,!0),()=>a(ue)),W(r,$e),Oe(qe)}Pt(["click","keydown","contextmenu","mouseover","focusin"]);export{yt as C,gt as M,Mt as a,wr as s};
@@ -1,4 +1,4 @@
1
- import{g as ie}from"./b776P7Kr.js";import{s as re}from"./BijokBFk.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./DPZ2um_T.js";import{c as Ee}from"./JpEb3pk8.js";import{aR as _e}from"./B4kHSLJr.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],N=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(R){n.length=n.length-2*R,E.length=E.length-R,i.length=i.length-R}p(se,"popStack");function Rt(){var R;return R=T.pop()||k.lex()||Q,typeof R!="number"&&(R instanceof Array&&(T=R,R=T.pop()),R=f.symbols_[R]||R),R}p(Rt,"lex");for(var x,U,O,bt,J={},ft,Y,Nt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Rt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
1
+ import{g as ie}from"./BbK9qDRy.js";import{s as re}from"./_IIJlCYC.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./BZnji9hP.js";import{c as Ee}from"./D8CQQUv8.js";import{aR as _e}from"./C0JQvbI4.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],N=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(R){n.length=n.length-2*R,E.length=E.length-R,i.length=i.length-R}p(se,"popStack");function Rt(){var R;return R=T.pop()||k.lex()||Q,typeof R!="number"&&(R instanceof Array&&(T=R,R=T.pop()),R=f.symbols_[R]||R),R}p(Rt,"lex");for(var x,U,O,bt,J={},ft,Y,Nt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Rt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[x]||x)+"'":kt="Parse error on line "+(G+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(kt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:pt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+x);switch(O[0]){case 1:n.push(x),E.push(k.yytext),i.push(k.yylloc),n.push(O[1]),x=null,X=k.yyleng,d=k.yytext,G=k.yylineno,_t=k.yylloc;break;case 2:if(Y=this.productions_[O[1]][1],J.$=E[E.length-Y],J._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ee&&(J._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),bt=this.performAction.apply(J,[d,X,G,W.yy,O[1],E,i].concat(Tt)),typeof bt<"u")return bt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),i=i.slice(0,-1*Y)),n.push(this.productions_[O[1]][0]),E.push(J.$),i.push(J._$),Nt=B[n[n.length-2]][n[n.length-1]],n.push(Nt);break;case 3:return!0}}return!0},"parse")},te=(function(){var V={EOF:1,parseError:p(function(f,n){if(this.yy.parser)this.yy.parser.parseError(f,n);else throw new Error(f)},"parseError"),setInput:p(function(o,f){return this.yy=f||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var f=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===T.length?this.yylloc.first_column:0)+T[T.length-n.length].length-n[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{b as s}from"./DPZ2um_T.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
1
+ import{b as s}from"./BZnji9hP.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
@@ -1 +1 @@
1
- import{l as e}from"./CyvzL5p8.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},r={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,r as language};
1
+ import{l as e}from"./BFO-Le8U.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},r={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,r as language};