@intent-hq/web 2.286.1 → 2.286.4

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 (209) hide show
  1. package/bin/intent-web.mjs +11 -2
  2. package/package.json +1 -1
  3. package/web/app/immutable/assets/0.B2ssLqMh.css +1 -0
  4. package/web/app/immutable/chunks/{R0wDqNpY.js → 0azY1Euo.js} +1 -1
  5. package/web/app/immutable/chunks/{BdMP-rwq.js → 1Xl1_j69.js} +1 -1
  6. package/web/app/immutable/chunks/{CzK2fiHA.js → 1iwlWivR.js} +1 -1
  7. package/web/app/immutable/chunks/{DqkDKEMV.js → 2N--vaHR.js} +1 -1
  8. package/web/app/immutable/chunks/3kw_jVcY.js +3 -0
  9. package/web/app/immutable/chunks/{BUqUwu2G.js → 3oGwK09B.js} +1 -1
  10. package/web/app/immutable/chunks/{DuzQF9m7.js → 5JOOVIIo.js} +1 -1
  11. package/web/app/immutable/chunks/{2oaDc1nn.js → 6CBvudM-.js} +1 -1
  12. package/web/app/immutable/chunks/{Dh52so4o.js → 6gxnLEJP.js} +3 -3
  13. package/web/app/immutable/chunks/{DiBTM3GP.js → 976zYcoh.js} +1 -1
  14. package/web/app/immutable/chunks/{BB0aq9c_.js → B-GuaxD4.js} +1 -1
  15. package/web/app/immutable/chunks/{2FstYM1s.js → B2Ta8ZYX.js} +1 -1
  16. package/web/app/immutable/chunks/{HHGL3CBU.js → B2jOXbpl.js} +1 -1
  17. package/web/app/immutable/chunks/{B1kJVNhf.js → B3foPak9.js} +1 -1
  18. package/web/app/immutable/chunks/{CJKeXT5H.js → B5mo4ccL.js} +1 -1
  19. package/web/app/immutable/chunks/{Fy3QvGgT.js → B6n3m66K.js} +1 -1
  20. package/web/app/immutable/chunks/{C5E1PJb6.js → B781x4pz.js} +2 -2
  21. package/web/app/immutable/chunks/{Ct7iVnk5.js → B7JUZ-OL.js} +2 -2
  22. package/web/app/immutable/chunks/{D9qYrFLr.js → B8mLANMy.js} +1 -1
  23. package/web/app/immutable/chunks/{CQlclm_i.js → BCFbCagC.js} +1 -1
  24. package/web/app/immutable/chunks/{CdEtW7wp.js → BCPDBuLJ.js} +1 -1
  25. package/web/app/immutable/chunks/{xpCT4rnW.js → BHBAtBBB.js} +1 -1
  26. package/web/app/immutable/chunks/{Bxc57npw.js → BJwk8LqM.js} +1 -1
  27. package/web/app/immutable/chunks/{BnDVzHAF.js → BLFT0vk0.js} +1 -1
  28. package/web/app/immutable/chunks/{Cv6pFp-w.js → BME8wn-Y.js} +1 -1
  29. package/web/app/immutable/chunks/{Bn4hj7HG.js → BMoKffXR.js} +1 -1
  30. package/web/app/immutable/chunks/{CjOWZNUy.js → BOlugeJj.js} +1 -1
  31. package/web/app/immutable/chunks/{RNQdr-NN.js → BPDNj0Ug.js} +1 -1
  32. package/web/app/immutable/chunks/{CeHlFtmN.js → BSZTRNsD.js} +1 -1
  33. package/web/app/immutable/chunks/{CgOfeXf8.js → BUVJimmV.js} +1 -1
  34. package/web/app/immutable/chunks/{D7y4iPD0.js → BZBudGQG.js} +1 -1
  35. package/web/app/immutable/chunks/{3q61Z6zu.js → B_vj7xxI.js} +1 -1
  36. package/web/app/immutable/chunks/{p20Ma5Ub.js → Bb0plfAx.js} +1 -1
  37. package/web/app/immutable/chunks/{C4Zcz5ig.js → BbJXkiov.js} +1 -1
  38. package/web/app/immutable/chunks/{Cbe4LDCb.js → BbNzaCQR.js} +1 -1
  39. package/web/app/immutable/chunks/{DdZVLxLI.js → BctbI4aU.js} +1 -1
  40. package/web/app/immutable/chunks/{B2SAFlE_.js → BeQ1MqDU.js} +1 -1
  41. package/web/app/immutable/chunks/{aWlYJ1qq.js → BeddIW6i.js} +1 -1
  42. package/web/app/immutable/chunks/{O_LhoKyf.js → Bf4Ffzqn.js} +1 -1
  43. package/web/app/immutable/chunks/{B8N5zbP-.js → BfS0Q-nX.js} +1 -1
  44. package/web/app/immutable/chunks/{4LCvEsVS.js → BfnrA5Ab.js} +1 -1
  45. package/web/app/immutable/chunks/{Dj9OdxPP.js → Bmq5LtFr.js} +1 -1
  46. package/web/app/immutable/chunks/{C68FzyYL.js → BmufqNuq.js} +1 -1
  47. package/web/app/immutable/chunks/{fsCYHFC5.js → BnWH1iQz.js} +1 -1
  48. package/web/app/immutable/chunks/{qsyNpi2_.js → BnoRvwv3.js} +1 -1
  49. package/web/app/immutable/chunks/{BIGmpOjZ.js → Bp8wUB3U.js} +1 -1
  50. package/web/app/immutable/chunks/Bpruhzz0.js +4 -0
  51. package/web/app/immutable/chunks/{CqwbuddS.js → Bq3GTaKG.js} +1 -1
  52. package/web/app/immutable/chunks/{9JjZRepm.js → BqJHaeQw.js} +1 -1
  53. package/web/app/immutable/chunks/{YIljg4QC.js → BrEqoZ1p.js} +1 -1
  54. package/web/app/immutable/chunks/{CfHaLL96.js → BrHwmqrG.js} +1 -1
  55. package/web/app/immutable/chunks/{DZ2EweHv.js → BrhmFCB4.js} +1 -1
  56. package/web/app/immutable/chunks/{ALbX902-.js → BuEHStYX.js} +1 -1
  57. package/web/app/immutable/chunks/{DWvbS4mu.js → BvzONeHW.js} +1 -1
  58. package/web/app/immutable/chunks/{BsKoK3Rk.js → Bwxf2JuH.js} +1 -1
  59. package/web/app/immutable/chunks/{2LPpSBFe.js → ByIRYR8A.js} +1 -1
  60. package/web/app/immutable/chunks/{Du9ULB4g.js → BzoF1_ij.js} +1 -1
  61. package/web/app/immutable/chunks/{oTkHTTGI.js → C-OvZCj_.js} +1 -1
  62. package/web/app/immutable/chunks/{B5WfnJ_I.js → C24Rzfzk.js} +1 -1
  63. package/web/app/immutable/chunks/{BsNGkCax.js → C2pKnlEJ.js} +1 -1
  64. package/web/app/immutable/chunks/{CG-WEY6g.js → C3jNWf9W.js} +1 -1
  65. package/web/app/immutable/chunks/{B78OjmQ3.js → C5p3cAYv.js} +1 -1
  66. package/web/app/immutable/chunks/{BdvBYYZC.js → C5qP0fL9.js} +1 -1
  67. package/web/app/immutable/chunks/{QOLdaLP0.js → C6AX083-.js} +1 -1
  68. package/web/app/immutable/chunks/{DHLYr2dR.js → C6FMFHeq.js} +1 -1
  69. package/web/app/immutable/chunks/{BCiyShif.js → CAE5fLft.js} +1 -1
  70. package/web/app/immutable/chunks/{BxKmCVSh.js → CB76QYmX.js} +1 -1
  71. package/web/app/immutable/chunks/{DQprfQGN.js → CCYqEJG1.js} +1 -1
  72. package/web/app/immutable/chunks/{DcOGngFl.js → CGid_txv.js} +1 -1
  73. package/web/app/immutable/chunks/{Uvf94Vit.js → CGy8AR53.js} +1 -1
  74. package/web/app/immutable/chunks/{BgX6IJDk.js → CHq8gooQ.js} +1 -1
  75. package/web/app/immutable/chunks/{CEiokx4X.js → CHwcICZW.js} +1 -1
  76. package/web/app/immutable/chunks/{B_IE7AMR.js → CK1AF7GU.js} +1 -1
  77. package/web/app/immutable/chunks/{BhBL2il-.js → CL28-RkP.js} +1 -1
  78. package/web/app/immutable/chunks/{VwRqUxpW.js → CLBb9J0e.js} +1 -1
  79. package/web/app/immutable/chunks/{B5NXv3LV.js → CMAxIbm4.js} +6 -6
  80. package/web/app/immutable/chunks/{Ov_SEXEY.js → CMUt7G5B.js} +1 -1
  81. package/web/app/immutable/chunks/{kpgdVhmB.js → COgknoIp.js} +1 -1
  82. package/web/app/immutable/chunks/{BHwB2t2J.js → CQcnUt15.js} +6 -6
  83. package/web/app/immutable/chunks/{C5RdKv5y.js → CSEB8cDa.js} +1 -1
  84. package/web/app/immutable/chunks/{l9lbU6dU.js → CSKprktf.js} +1 -1
  85. package/web/app/immutable/chunks/{hTe-_Fjh.js → CXsEQ4Fe.js} +3 -3
  86. package/web/app/immutable/chunks/{ChOA9PWi.js → C_CE49CT.js} +1 -1
  87. package/web/app/immutable/chunks/{Cg71xtru.js → C_m_o9vM.js} +1 -1
  88. package/web/app/immutable/chunks/{CN6UuCI4.js → Cae3uxuh.js} +2 -2
  89. package/web/app/immutable/chunks/{vkDSSzeI.js → Caf4tDH7.js} +1 -1
  90. package/web/app/immutable/chunks/{B-jWalbO.js → CeWSuA2o.js} +1 -1
  91. package/web/app/immutable/chunks/{CJPP3n_b.js → ChBqCTy0.js} +1 -1
  92. package/web/app/immutable/chunks/{CnT2T-Bp.js → Cix_mnLj.js} +4 -4
  93. package/web/app/immutable/chunks/{CusMGTEg.js → CmWV3gyr.js} +1 -1
  94. package/web/app/immutable/chunks/{BAEKjYyz.js → CnLkqvzY.js} +1 -1
  95. package/web/app/immutable/chunks/{D61mreVc.js → Cniog18G.js} +1 -1
  96. package/web/app/immutable/chunks/{cKTNBTNE.js → Cnlrbhbh.js} +1 -1
  97. package/web/app/immutable/chunks/{B0jdpkVd.js → CpiOwqpL.js} +1 -1
  98. package/web/app/immutable/chunks/{DGWxO_aL.js → CqTutsn0.js} +1 -1
  99. package/web/app/immutable/chunks/{CNG6DDdt.js → CrsB8npl.js} +1 -1
  100. package/web/app/immutable/chunks/{B5VfU0KM.js → CuYFxjMF.js} +1 -1
  101. package/web/app/immutable/chunks/{3sa2ZSPC.js → Cui_1F-9.js} +1 -1
  102. package/web/app/immutable/chunks/{zln0bEou.js → Cx463bih.js} +1 -1
  103. package/web/app/immutable/chunks/{Ds-FLOE0.js → CxFDPuIk.js} +1 -1
  104. package/web/app/immutable/chunks/{DM4MRAyE.js → CyGw7JU5.js} +1 -1
  105. package/web/app/immutable/chunks/{DyjYgqtH.js → CyMVqmzv.js} +1 -1
  106. package/web/app/immutable/chunks/{HjNzRj_q.js → D0M9u_n-.js} +1 -1
  107. package/web/app/immutable/chunks/{CC-oK8xP.js → D2b1hcog.js} +2 -2
  108. package/web/app/immutable/chunks/{XgTDusK7.js → D5VLKYyC.js} +1 -1
  109. package/web/app/immutable/chunks/{Cic3Ymv4.js → D7KhJm9U.js} +2 -2
  110. package/web/app/immutable/chunks/{DAPK9slU.js → D9ScELxf.js} +1 -1
  111. package/web/app/immutable/chunks/{F7QETuhI.js → DC3ZkLye.js} +1 -1
  112. package/web/app/immutable/chunks/{BDFJ3z4C.js → DD0At2PN.js} +1 -1
  113. package/web/app/immutable/chunks/{B_Ngo80M.js → DD6Pkbic.js} +1 -1
  114. package/web/app/immutable/chunks/{laFenviK.js → DDFSWjQU.js} +3 -3
  115. package/web/app/immutable/chunks/{DeD2_APR.js → DGjH5-Hx.js} +1 -1
  116. package/web/app/immutable/chunks/{BmnDHgDT.js → DIFKHzYL.js} +1 -1
  117. package/web/app/immutable/chunks/{CM-RTisq.js → DIoX_b5x.js} +1 -1
  118. package/web/app/immutable/chunks/{PSWhBTN5.js → DK77esWJ.js} +1 -1
  119. package/web/app/immutable/chunks/{DKnyYiOE.js → DL9fM9Z6.js} +1 -1
  120. package/web/app/immutable/chunks/{B5OVBjIf.js → DNo8L_9b.js} +1 -1
  121. package/web/app/immutable/chunks/{BR5lR6Td.js → DOL39Ac3.js} +1 -1
  122. package/web/app/immutable/chunks/{BbANJKYX.js → DOpb_Wa_.js} +1 -1
  123. package/web/app/immutable/chunks/{DU5u4CoB.js → DPBL52wT.js} +7 -7
  124. package/web/app/immutable/chunks/{CMieQf0P.js → DQ04s54w.js} +1 -1
  125. package/web/app/immutable/chunks/{BGgB8Pc0.js → DQ070aDn.js} +2 -2
  126. package/web/app/immutable/chunks/{Cdv2uRTZ.js → DQayjjKQ.js} +1 -1
  127. package/web/app/immutable/chunks/{Dz40TuR7.js → DQkyZkjw.js} +1 -1
  128. package/web/app/immutable/chunks/{JktSJt1s.js → DQpQ_Eis.js} +1 -1
  129. package/web/app/immutable/chunks/{C9g8CU4z.js → DRbQFCiN.js} +1 -1
  130. package/web/app/immutable/chunks/{C9129WmZ.js → DSkl9mpQ.js} +1 -1
  131. package/web/app/immutable/chunks/DTosDNas.js +8 -0
  132. package/web/app/immutable/chunks/{D4uZwrDX.js → DXJ8guE-.js} +1 -1
  133. package/web/app/immutable/chunks/{BKAT2tIv.js → DYiKRSyK.js} +1 -1
  134. package/web/app/immutable/chunks/{Cc8gV_FE.js → DZzZGRg-.js} +1 -1
  135. package/web/app/immutable/chunks/{BY3DTY8F.js → DauuhR4o.js} +1 -1
  136. package/web/app/immutable/chunks/{F9nw4iUp.js → DbulPCWG.js} +1 -1
  137. package/web/app/immutable/chunks/{C6RQmr0V.js → DdMy5hhm.js} +1 -1
  138. package/web/app/immutable/chunks/{DeMWATch.js → DfYC2vFl.js} +1 -1
  139. package/web/app/immutable/chunks/{BIY56SBV.js → Dft5YBpv.js} +1 -1
  140. package/web/app/immutable/chunks/{Cf1Jz9Vb.js → DiD3o6_1.js} +1 -1
  141. package/web/app/immutable/chunks/{D6eVIgjz.js → Dj-i-4vt.js} +1 -1
  142. package/web/app/immutable/chunks/{-4iKCYSl.js → Djhs3H6B.js} +1 -1
  143. package/web/app/immutable/chunks/{pUHkzJ_d.js → Dm08LoPV.js} +1 -1
  144. package/web/app/immutable/chunks/{B-34RgWF.js → DojlGzur.js} +1 -1
  145. package/web/app/immutable/chunks/{CJlBFmXK.js → DpTBUsJF.js} +1 -1
  146. package/web/app/immutable/chunks/{C4lY6YLh.js → DssISSPU.js} +1 -1
  147. package/web/app/immutable/chunks/{DuXpwSkB.js → DvgbaoNK.js} +1 -1
  148. package/web/app/immutable/chunks/{BOFk1KrL.js → DvxEHPPT.js} +1 -1
  149. package/web/app/immutable/chunks/{Bz08MgGK.js → DyfUN8R7.js} +1 -1
  150. package/web/app/immutable/chunks/{CcDZ8sih.js → DzjRhthn.js} +4 -4
  151. package/web/app/immutable/chunks/{BCYRUItZ.js → FSpiE1wW.js} +4 -4
  152. package/web/app/immutable/chunks/{CcFGFqFC.js → FhGlrjm8.js} +1 -1
  153. package/web/app/immutable/chunks/{ChMhvUux.js → H3_j1RTy.js} +1 -1
  154. package/web/app/immutable/chunks/{DvDXb3dW.js → HOnA76CN.js} +1 -1
  155. package/web/app/immutable/chunks/{DoIwXvY5.js → HgUF9JxD.js} +1 -1
  156. package/web/app/immutable/chunks/{BwqCA_Tg.js → LcC8t7uh.js} +1 -1
  157. package/web/app/immutable/chunks/{CQ8xUw8b.js → NiM-1eU3.js} +1 -1
  158. package/web/app/immutable/chunks/{BwixslcF.js → OOZgSySO.js} +1 -1
  159. package/web/app/immutable/chunks/{BaWkgFPr.js → OduqxoGp.js} +1 -1
  160. package/web/app/immutable/chunks/{BkBZtLYF.js → PCjNYuXW.js} +1 -1
  161. package/web/app/immutable/chunks/Pd6GM4gY.js +1 -0
  162. package/web/app/immutable/chunks/{DrI7rzCm.js → QEDJCahU.js} +1 -1
  163. package/web/app/immutable/chunks/{CaJjlkv1.js → QLIsYm_0.js} +1 -1
  164. package/web/app/immutable/chunks/{TKnaMJht.js → QPnNKbqJ.js} +1 -1
  165. package/web/app/immutable/chunks/{De60mY1u.js → QjTgQQZx.js} +1 -1
  166. package/web/app/immutable/chunks/{pqiENG4w.js → RykOFORR.js} +1 -1
  167. package/web/app/immutable/chunks/{DES0UXLU.js → W48e0TcX.js} +1 -1
  168. package/web/app/immutable/chunks/{Bluyq349.js → Xsgb18SC.js} +1 -1
  169. package/web/app/immutable/chunks/{CjOA3fQ_.js → YlwMMeOs.js} +1 -1
  170. package/web/app/immutable/chunks/{DJeS0Z6Z.js → Z0VS8LLQ.js} +1 -1
  171. package/web/app/immutable/chunks/{Bg8XhRuy.js → dbgkJ9GM.js} +1 -1
  172. package/web/app/immutable/chunks/{CbQJkQ1_.js → eFMkdoaf.js} +1 -1
  173. package/web/app/immutable/chunks/{BTRxaITj.js → es3FqSjg.js} +1 -1
  174. package/web/app/immutable/chunks/{l6-BV5ui.js → j1f7tS2i.js} +1 -1
  175. package/web/app/immutable/chunks/{bb6KeZoT.js → jvKdDF7D.js} +1 -1
  176. package/web/app/immutable/chunks/{DLOFCVO4.js → pRcFjb-H.js} +1 -1
  177. package/web/app/immutable/chunks/{CN1yc9sw.js → rgwCePpO.js} +1 -1
  178. package/web/app/immutable/chunks/{b7qEBWdv.js → u-Y0Tv7i.js} +1 -1
  179. package/web/app/immutable/chunks/{Dxitz0gG.js → umDdblid.js} +1 -1
  180. package/web/app/immutable/chunks/{BhIrT2jr.js → vGBd4whl.js} +2 -2
  181. package/web/app/immutable/chunks/{gn8kmMF6.js → vKQIfgIp.js} +1 -1
  182. package/web/app/immutable/chunks/{qk0mFpjO.js → x1zid8su.js} +1 -1
  183. package/web/app/immutable/chunks/{nvAK9EyO.js → xHA823KN.js} +1 -1
  184. package/web/app/immutable/chunks/{lN-utS8K.js → xpSH95ot.js} +1 -1
  185. package/web/app/immutable/chunks/{CU9uaZDq.js → zcEXOR-1.js} +1 -1
  186. package/web/app/immutable/entry/{app.BvKW_t2N.js → app.DzBvG1_l.js} +2 -2
  187. package/web/app/immutable/entry/start.CErE1GCU.js +1 -0
  188. package/web/app/immutable/nodes/{0.BYMSP7Y-.js → 0.C2zst7i8.js} +1 -1
  189. package/web/app/immutable/nodes/{1.DIEji4Js.js → 1.BIkIikjL.js} +1 -1
  190. package/web/app/immutable/nodes/{10.DvTvrgji.js → 10.NQQ6RXJ5.js} +1 -1
  191. package/web/app/immutable/nodes/{14.CJs3OY3_.js → 14.DjgXWnV3.js} +1 -1
  192. package/web/app/immutable/nodes/{16.DsO7YO_c.js → 16.DIpAzx7I.js} +2 -2
  193. package/web/app/immutable/nodes/{2.Cht0dQl2.js → 2.D39xDr6a.js} +3 -3
  194. package/web/app/immutable/nodes/{3.BGeidrSE.js → 3.CXiy3cZ4.js} +1 -1
  195. package/web/app/immutable/nodes/{4.iguZO2rl.js → 4.Dc4411ZQ.js} +1 -1
  196. package/web/app/immutable/nodes/{5.BppWO1IB.js → 5.p_n2sq1_.js} +1 -1
  197. package/web/app/immutable/nodes/{6.ChXOvT3x.js → 6.D6xC5nhC.js} +1 -1
  198. package/web/app/immutable/nodes/{7.CgsIeK3J.js → 7.DXE6hDOy.js} +1 -1
  199. package/web/app/immutable/nodes/{8.Bq2NzD4c.js → 8.BU4_235n.js} +11 -11
  200. package/web/app/immutable/nodes/{9.CvEBRJEV.js → 9.CYdkB-g-.js} +1 -1
  201. package/web/app/version.json +1 -1
  202. package/web/generated/paraglide.js +8 -8
  203. package/web/index.html +10 -10
  204. package/web/app/immutable/assets/0.Racpq4cy.css +0 -1
  205. package/web/app/immutable/chunks/172GvQgx.js +0 -4
  206. package/web/app/immutable/chunks/BZXl3la6.js +0 -1
  207. package/web/app/immutable/chunks/CDuyWy4D.js +0 -3
  208. package/web/app/immutable/chunks/DNOilvOO.js +0 -8
  209. package/web/app/immutable/entry/start.CQ7TZDH6.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as it}from"./2oaDc1nn.js";import{g as at}from"./C6RQmr0V.js";import{a as f,ad as Pe,N as B,R as rt,ax as nt,aV as Me,as as ut,aG as lt,L as ct,aF as ot,K as ht,aI as dt,O as pt,p as O,k as At,P as ft,aD as mt,ao as K}from"./DU5u4CoB.js";import{s as gt}from"./Cbe4LDCb.js";import{c as Ct}from"./4LCvEsVS.js";import{g as F,c3 as fe}from"./BHwB2t2J.js";var Re=(function(){var s=f(function(V,o,h,p){for(h=h||{},p=V.length;p--;h[V[p]]=o);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],c=[1,26],u=[1,42],d=[1,24],g=[1,25],m=[1,32],x=[1,33],ge=[1,34],b=[1,45],Ce=[1,35],be=[1,36],ke=[1,37],Ee=[1,38],Te=[1,27],ye=[1,28],De=[1,29],Fe=[1,30],Be=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],_e=[1,9],A=[1,8,9],se=[1,58],ie=[1,59],ae=[1,60],re=[1,61],ne=[1,62],Se=[1,63],Ne=[1,64],S=[1,8,9,41],Ge=[1,77],U=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ue=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],Y=[13,60,73,74,86,100,102,103],Ue=[13,60,68,69,70,71,72,86,100,102,103],ce=[1,103],W=[1,121],Q=[1,117],j=[1,113],X=[1,119],q=[1,114],H=[1,115],J=[1,116],Z=[1,118],$=[1,120],ze=[22,50,60,61,82,86,87,88,89,90],Ke=[1,128],oe=[12,39],xe=[1,8,9,39,41,44,46],he=[1,8,9,22],Ye=[1,153],We=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(F(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(F(function(o,h,p,l,C,e,te){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(_e,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne}),{39:[1,65]},s(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Ge,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(U,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(U,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(ue,[2,133]),s(ue,[2,134]),s(ue,[2,135]),s(ue,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(_e,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne},s(A,[2,64]),{67:93,73:Se,74:Ne},s(le,[2,83],{66:94,68:se,69:ie,70:ae,71:re,72:ne}),s(Y,[2,84]),s(Y,[2,85]),s(Y,[2,86]),s(Y,[2,87]),s(Y,[2,88]),s(Ue,[2,89]),s(Ue,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:m,56:x},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ce},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:j,82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},{60:[1,122]},{13:Ge,55:123},s(S,[2,72]),s(S,[2,138]),{22:W,50:Q,59:124,60:j,61:[1,125],82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},s(ze,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(U,[2,16]),s(U,[2,17]),s(U,[2,18]),{11:127,12:Ke,39:[2,36]},s(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(oe,[2,10]),s(xe,[2,55],{11:131,12:Ke}),s(_e,[2,7]),{9:[1,132]},s(he,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(le,[2,82],{66:136,68:se,69:ie,70:ae,71:re,72:ne}),s(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:m,56:x},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(S,[2,48],{39:[1,142]}),{41:[1,143]},s(S,[2,50]),{41:[2,61],45:144,51:ce},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:Ye}),s(We,[2,107],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(v,[2,109]),s(v,[2,111]),s(v,[2,112]),s(v,[2,113]),s(v,[2,114]),s(v,[2,115]),s(v,[2,116]),s(v,[2,117]),s(v,[2,118]),s(v,[2,119]),s(A,[2,106]),s(S,[2,71]),s(A,[2,73],{61:Ye}),{60:[1,155]},s(U,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(oe,[2,12]),s(xe,[2,56]),{1:[2,4]},s(he,[2,69]),s(he,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(le,[2,80]),s(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:m,56:x},{45:163,51:ce},s(S,[2,49]),{41:[2,62]},s(S,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:j,82:X,84:169,85:112,86:q,87:H,88:J,89:Z,90:$},s(v,[2,110]),s(ze,[2,75]),{14:[1,170]},s(oe,[2,11]),s(he,[2,70]),s(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ce},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(We,[2,108],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(xe,[2,8]),s(S,[2,51]),{41:[1,175]},s(S,[2,54]),s(A,[2,104]),s(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(F(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),"parseError"),parse:f(F(function(o){var h=this,p=[0],l=[],C=[null],e=[],te=this.table,t="",de=0,Qe=0,et=2,je=1,tt=e.slice.call(arguments,1),D=Object.create(this.lexer),P={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(P.yy[ve]=this.yy[ve]);D.setInput(o,P.yy),P.yy.lexer=D,P.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ie=D.yylloc;e.push(Ie);var st=D.options&&D.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}F(Xe,"popStack"),f(Xe,"popStack");function Oe(){var N;return N=l.pop()||D.lex()||je,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=h.symbols_[N]||N),N}F(Oe,"lex"),f(Oe,"lex");for(var _,M,L,we,z={},pe,I,qe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((_===null||typeof _>"u")&&(_=Oe()),L=te[M]&&te[M][_]),typeof L>"u"||!L.length||!L[0]){var Ve="";Ae=[];for(pe in te[M])this.terminals_[pe]&&pe>et&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Ve="Parse error on line "+(de+1)+`:
1
+ import{g as it}from"./C24Rzfzk.js";import{g as at}from"./DdMy5hhm.js";import{a as f,ad as Pe,N as B,R as rt,ax as nt,aV as Me,as as ut,aG as lt,L as ct,aF as ot,K as ht,aI as dt,O as pt,p as O,k as At,P as ft,aD as mt,ao as K}from"./DPBL52wT.js";import{s as gt}from"./BbNzaCQR.js";import{c as Ct}from"./BfnrA5Ab.js";import{g as F,c3 as fe}from"./CQcnUt15.js";var Re=(function(){var s=f(function(V,o,h,p){for(h=h||{},p=V.length;p--;h[V[p]]=o);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],c=[1,26],u=[1,42],d=[1,24],g=[1,25],m=[1,32],x=[1,33],ge=[1,34],b=[1,45],Ce=[1,35],be=[1,36],ke=[1,37],Ee=[1,38],Te=[1,27],ye=[1,28],De=[1,29],Fe=[1,30],Be=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],_e=[1,9],A=[1,8,9],se=[1,58],ie=[1,59],ae=[1,60],re=[1,61],ne=[1,62],Se=[1,63],Ne=[1,64],S=[1,8,9,41],Ge=[1,77],U=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ue=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],Y=[13,60,73,74,86,100,102,103],Ue=[13,60,68,69,70,71,72,86,100,102,103],ce=[1,103],W=[1,121],Q=[1,117],j=[1,113],X=[1,119],q=[1,114],H=[1,115],J=[1,116],Z=[1,118],$=[1,120],ze=[22,50,60,61,82,86,87,88,89,90],Ke=[1,128],oe=[12,39],xe=[1,8,9,39,41,44,46],he=[1,8,9,22],Ye=[1,153],We=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(F(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(F(function(o,h,p,l,C,e,te){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(_e,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne}),{39:[1,65]},s(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Ge,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(U,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(U,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(ue,[2,133]),s(ue,[2,134]),s(ue,[2,135]),s(ue,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(_e,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne},s(A,[2,64]),{67:93,73:Se,74:Ne},s(le,[2,83],{66:94,68:se,69:ie,70:ae,71:re,72:ne}),s(Y,[2,84]),s(Y,[2,85]),s(Y,[2,86]),s(Y,[2,87]),s(Y,[2,88]),s(Ue,[2,89]),s(Ue,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:m,56:x},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ce},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:j,82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},{60:[1,122]},{13:Ge,55:123},s(S,[2,72]),s(S,[2,138]),{22:W,50:Q,59:124,60:j,61:[1,125],82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},s(ze,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(U,[2,16]),s(U,[2,17]),s(U,[2,18]),{11:127,12:Ke,39:[2,36]},s(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(oe,[2,10]),s(xe,[2,55],{11:131,12:Ke}),s(_e,[2,7]),{9:[1,132]},s(he,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(le,[2,82],{66:136,68:se,69:ie,70:ae,71:re,72:ne}),s(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:m,56:x},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(S,[2,48],{39:[1,142]}),{41:[1,143]},s(S,[2,50]),{41:[2,61],45:144,51:ce},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:Ye}),s(We,[2,107],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(v,[2,109]),s(v,[2,111]),s(v,[2,112]),s(v,[2,113]),s(v,[2,114]),s(v,[2,115]),s(v,[2,116]),s(v,[2,117]),s(v,[2,118]),s(v,[2,119]),s(A,[2,106]),s(S,[2,71]),s(A,[2,73],{61:Ye}),{60:[1,155]},s(U,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(oe,[2,12]),s(xe,[2,56]),{1:[2,4]},s(he,[2,69]),s(he,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(le,[2,80]),s(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:m,56:x},{45:163,51:ce},s(S,[2,49]),{41:[2,62]},s(S,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:j,82:X,84:169,85:112,86:q,87:H,88:J,89:Z,90:$},s(v,[2,110]),s(ze,[2,75]),{14:[1,170]},s(oe,[2,11]),s(he,[2,70]),s(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ce},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(We,[2,108],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(xe,[2,8]),s(S,[2,51]),{41:[1,175]},s(S,[2,54]),s(A,[2,104]),s(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(F(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),"parseError"),parse:f(F(function(o){var h=this,p=[0],l=[],C=[null],e=[],te=this.table,t="",de=0,Qe=0,et=2,je=1,tt=e.slice.call(arguments,1),D=Object.create(this.lexer),P={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(P.yy[ve]=this.yy[ve]);D.setInput(o,P.yy),P.yy.lexer=D,P.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ie=D.yylloc;e.push(Ie);var st=D.options&&D.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}F(Xe,"popStack"),f(Xe,"popStack");function Oe(){var N;return N=l.pop()||D.lex()||je,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=h.symbols_[N]||N),N}F(Oe,"lex"),f(Oe,"lex");for(var _,M,L,we,z={},pe,I,qe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((_===null||typeof _>"u")&&(_=Oe()),L=te[M]&&te[M][_]),typeof L>"u"||!L.length||!L[0]){var Ve="";Ae=[];for(pe in te[M])this.terminals_[pe]&&pe>et&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Ve="Parse error on line "+(de+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Ae.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Ve="Parse error on line "+(de+1)+": Unexpected "+(_==je?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Ve,{text:D.match,token:this.terminals_[_]||_,line:D.yylineno,loc:Ie,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+_);switch(L[0]){case 1:p.push(_),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),_=null,Qe=D.yyleng,t=D.yytext,de=D.yylineno,Ie=D.yylloc;break;case 2:if(I=this.productions_[L[1]][1],z.$=C[C.length-I],z._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},st&&(z._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),we=this.performAction.apply(z,[t,Qe,de,P.yy,L[1],C,e].concat(tt)),typeof we<"u")return we;I&&(p=p.slice(0,-1*I*2),C=C.slice(0,-1*I),e=e.slice(0,-1*I)),p.push(this.productions_[L[1]][0]),C.push(z.$),e.push(z._$),qe=te[p[p.length-2]][p[p.length-1]],p.push(qe);break;case 3:return!0}}return!0},"parse"),"parse")},$e=(function(){var V={EOF:1,parseError:f(F(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),"parseError"),setInput:f(function(o,h){return this.yy=h||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:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(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:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=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),p.length-1&&(this.yylineno-=p.length-1);var C=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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(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:f(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:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{g as p,r as u,d as n}from"./pUHkzJ_d.js";import{p as f}from"./CqwbuddS.js";import{M as c,c as d}from"./HjNzRj_q.js";import{a,ad as o}from"./DU5u4CoB.js";import"./BHwB2t2J.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},B={parser:R,db:n,renderer:u,styles:p};export{B as diagram};
1
+ import{g as p,r as u,d as n}from"./Dm08LoPV.js";import{p as f}from"./Bq3GTaKG.js";import{M as c,c as d}from"./D0M9u_n-.js";import{a,ad as o}from"./DPBL52wT.js";import"./CQcnUt15.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},B={parser:R,db:n,renderer:u,styles:p};export{B as diagram};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/172GvQgx.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/COCO5InB.js","/app/immutable/chunks/Dck4Okga.js","/app/immutable/chunks/-fWJi05-.js","/app/immutable/chunks/Bqoyy9yx.js","/app/immutable/chunks/Crs9I2MT.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C5Xi5eLp.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/oALOmsvi.js","/app/immutable/chunks/Cdhgfy6h.js","/app/immutable/chunks/BY3Ptqbg.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CjVTzfqV.js","/app/immutable/chunks/BqRJyrRC.js","/app/immutable/chunks/BjFoJgFv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/bjkNeafo.js","/app/immutable/chunks/1jz3AJ7K.js","/app/immutable/chunks/BDq7EC2K.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/B7mAnbbv.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.D4mrl2M9.css","/app/immutable/chunks/BUVaYTVI.js","/app/immutable/chunks/B6LKhrY2.js","/app/immutable/chunks/C563feV7.js","/app/immutable/chunks/DUT4V6mb.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CaQ_vubD.js","/app/immutable/chunks/BlJs0v1V.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/hMX_6Iel.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BONnxsQv.js","/app/immutable/chunks/CJvhopKt.js","/app/immutable/assets/notify.CaX-6yIe.css","/app/immutable/chunks/3QmaYnff.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/9JjZRepm.js","/app/immutable/chunks/DJu_D7ND.js","/app/immutable/chunks/Dx5-Ovf5.js","/app/immutable/chunks/Ct7iVnk5.js","/app/immutable/chunks/BKAT2tIv.js","/app/immutable/chunks/CN6UuCI4.js","/app/immutable/chunks/CNG6DDdt.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Cdv2uRTZ.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bo as m,t as Ht,bq as y,a_ as M,by as jt,b as Wt,br as df,bu as Ft,bs as ca,bt as ni,b7 as Wi,ba as uf,bl as ff,bb as pf,bm as gf,a$ as vf,b9 as mf,b8 as hf,b2 as bf,bf as yf,bg as _f,bk as xf,be as wf,bn as kf,b0 as If,b4 as Sf,bi as Cf,bh as Ef,b6 as Pf,b5 as Af,b3 as Tf,bd as Rf,bc as Lf,bj as Nf,b1 as Mf,_ as Of}from"./COCO5InB.js";import{bI as Df,bj as fs,aG as Bf,bs as Ut,aD as e,a5 as S,bS as v,bA as w,W as d,bn as qt,c9 as u,aA as _,a7 as kt,ay as ze,be as sr,b$ as Lt,aC as ya,bl as R,b_ as k,bO as x,aB as I,bo as ps,ca as Ct,bH as N,bV as we,br as Ur,bk as gs,c0 as Zn,ai as Aa,cd as Ns,aw as wn,a as Ff,aj as Ar,c7 as zf,c6 as Ui,c5 as Ln,bf as Ms,bz as Rc}from"./B8o4lNgr.js";import{B as Os,I as Hf,x as jf}from"./Cdhgfy6h.js";import{c as Wf,s as oe,a as Nn,l as Mn,f as kn,d as cr,k as mt,I as vs,h as Tt,i as Rr,o as Uf,j as qf,g as Vf,n as Kf}from"./Crs9I2MT.js";import{s as dn}from"./Dck4Okga.js";import{c as Xr}from"./oALOmsvi.js";import{H as Lo,t as lr,n as Gf,i as qi,u as Vi}from"./Bqoyy9yx.js";import{b as gr}from"./D2g8BuR1.js";import{h as Lc,bs as Jf,cH as Yf,dz as Xf,dk as Zf,av as Qf,cr as $f,a1 as ep,cN as tp,dj as ns,aA as Gs,c0 as rp,H as np,c as ap,$ as Ki,cT as sp,bQ as op,L as ip,dg as lp,V as cp,dq as dp,ae as up,f as fp,t as pp}from"./DUT4V6mb.js";import{c as gp}from"./D-62MVd3.js";import{n as ra,w as vp,C as Nc,M as mp,R as hp}from"./CJvhopKt.js";import{f as yt,ap as ja,ai as bp,am as No,bb as yp}from"./C5Xi5eLp.js";import{ai as _p,a7 as Gi,X as xp,at as wp,aM as kp,I as Ip,R as Sp,an as Cp,ab as Ep,Y as Pp,b as Ji,q as Ap,n as Tp,aS as Rp,m as Lp,aU as Mo,A as Yi,aa as Np,aT as Mp,ak as Mc,L as Oc,a3 as Op,a2 as Xi,J as Zi}from"./BCYRUItZ.js";import{cU as Dp,F as Et,be as Oo,bH as Bp,an as Fp,aO as zp,cE as Hp,bi as ai,bx as jp,aE as Dc,aJ as si,cT as Ds,aa as Do,ci as Wp,c8 as Up,cd as oi,cz as Bc,bo as qp,e as Vp,bX as Qi,c4 as Kp,cg as Gp,cP as Fc,bR as $i,b5 as po,bb as $a,aD as Jp,ay as Bo,at as zc,b9 as Hc,by as Yp,B as Xp,br as Zp,a6 as jc,cc as Qp,ak as Wc,cG as Uc,cC as el,ar as qc,aI as tl,a1 as $p,cq as eg,cN as tg,bK as Vc,bk as rg,c0 as rl,am as Kc,ax as ng,a8 as ag,a7 as sg}from"./BDq7EC2K.js";import{c as Gc}from"./ChTqQfQN.js";import{h as og}from"./BlJs0v1V.js";import{G2 as Mt,bG as ig,r2 as lg,GP as cg,GU as dg,g as Jc,FQ as ug,mt as Yc,mI as Xc,mH as Zc,mm as Js,oU as ii,vW as fg,tf as Es,sA as Fo,th as pg,ma as Qc,G7 as gg,rA as vg,nv as $c,pU as li,kW as nl,a0 as al,pv as mg,pr as hg,pw as bg,pn as yg,pt as _g,t5 as xg,yq as ed,yu as td,mJ as sl,b9 as zo,Ez as wg,FM as kg,mD as Ig,u2 as Sg,u3 as Cg,u1 as ol,zm as Xn,ck as rd,c8 as Eg,cY as Pg,d3 as Ag,yA as Tg}from"./BjFoJgFv.js";import{k as nd,f as il,O as ll,M as Rg,J as Lg,E as Ng,r as Mg,q as Og,R as Dg,Q as ad,N as Ho,e as as,a2 as cl,i as Bg}from"./172GvQgx.js";import{bi as Fg,bp as zg,h as Hg,t as jg,bs as Wg,U as Ug,W as qg,Y as Vg}from"./BUVaYTVI.js";import{i as Kg,h as Gg,p as jo,bO as Jg,E as Yg,bN as Xg,bK as Zg,au as dl,bM as Qg,bl as Wo,aE as $g,n as ev,b5 as tv,s as rv}from"./9JjZRepm.js";import{a0 as nv,ah as ws,ag as av,au as ul,aC as sv,af as ov,B as iv,i as lv,C as Ps,cz as cv,aP as fl,cE as dv,ac as uv,a4 as fv,r as pv,p as gv,az as vv,cH as mv,cq as hv,cj as bv,ca as yv,bD as _v}from"./D6eVIgjz.js";import{s as xv,j as wv,i as kv,I as Ua,c as pl}from"./CjVTzfqV.js";import"./BqRJyrRC.js";import"./B7mAnbbv.js";import{I as ci,P as Iv,s as Sv,k as Cv,G as Ev,o as Pv,l as Av,M as Tv,H as Rv,w as za,a as Lv,K as Nv,n as Mv,R as Ov}from"./bjkNeafo.js";import{t as ss,m as Dv,O as Bv,M as Fv,S as ha}from"./1jz3AJ7K.js";import{C as Uo}from"./ykvYWYIa.js";import{J as zv,L as Hv,K as jv,u as di,w as Wv,v as Ys,G as Uv,A as gl,e as os,d as ba,I as vl,c as qv,f as Vv,g as ml,i as Kv,b as Gv,o as sd,j as Jv,O as Yv,x as Xv,k as od,S as Zv,N as Qv,q as hl,p as $v,n as bl,z as em,s as tm}from"./PSWhBTN5.js";import{aK as rm,aS as nm,aI as am,aO as sm,a6 as Va,aY as yl,aE as om,aL as im,aR as ui,aM as fi,V as go,an as lm,W as cm,aU as dm,aD as um,aN as fm,aQ as pm,a$ as gm,aZ as vm,av as id,p as mm,n as hm,aP as bm,Z as ym,z as _m}from"./laFenviK.js";import{s as qo}from"./Cv6pFp-w.js";import{M as xm}from"./CpWqDujk.js";import{o as _l,a as xl,T as vo,b as wm}from"./C5E1PJb6.js";import{ad as km,a4 as Im,J as Sm,E as Cm,ag as Em}from"./D62E6eA-.js";import{D as is}from"./3sa2ZSPC.js";import"./DROi8p_h.js";import{C as na}from"./Bxc57npw.js";import{M as Pm}from"./BHwB2t2J.js";import{g as pi}from"./-fWJi05-.js";import{f as wl}from"./BKAT2tIv.js";import{c as As}from"./Ck11Hn8r.js";import{handleIntentLink as Am}from"./Cic3Ymv4.js";import{s as Tm,a as Rm,f as Lm,d as Nm,r as Mm,h as Om,w as es,g as Dm,W as Bm,H as Fm,c as zm,M as ld}from"./CcDZ8sih.js";import{e as Hm,q as jm}from"./B6LKhrY2.js";import{showAssistantContent as Wm}from"./BGgB8Pc0.js";import{o as Bs,c as Um,n as qm}from"./Cdv2uRTZ.js";import{p as Vm}from"./Cc8gV_FE.js";import{m as Km}from"./DY0zw3Os.js";import{h as ks}from"./DoLFtAtL.js";import{i as cd}from"./DJu_D7ND.js";import{b as Gm,f as Jm,h as Ym,j as Xm}from"./C563feV7.js";import{T as mo}from"./_cwefpRI.js";import{i as Zm,r as kl}from"./Bg8XhRuy.js";import{a as Qm}from"./3QmaYnff.js";import{a as $m}from"./BJzHxIyr.js";import{p as eh}from"./DAPK9slU.js";const th="intent:inline-visual-draft";function WI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Bpruhzz0.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/COCO5InB.js","/app/immutable/chunks/Dck4Okga.js","/app/immutable/chunks/-fWJi05-.js","/app/immutable/chunks/Bqoyy9yx.js","/app/immutable/chunks/Crs9I2MT.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C5Xi5eLp.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/oALOmsvi.js","/app/immutable/chunks/Cdhgfy6h.js","/app/immutable/chunks/BY3Ptqbg.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CjVTzfqV.js","/app/immutable/chunks/BqRJyrRC.js","/app/immutable/chunks/BjFoJgFv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/bjkNeafo.js","/app/immutable/chunks/1jz3AJ7K.js","/app/immutable/chunks/BDq7EC2K.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/B7mAnbbv.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.D4mrl2M9.css","/app/immutable/chunks/BUVaYTVI.js","/app/immutable/chunks/B6LKhrY2.js","/app/immutable/chunks/C563feV7.js","/app/immutable/chunks/DUT4V6mb.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CaQ_vubD.js","/app/immutable/chunks/BlJs0v1V.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/hMX_6Iel.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BONnxsQv.js","/app/immutable/chunks/CJvhopKt.js","/app/immutable/assets/notify.CaX-6yIe.css","/app/immutable/chunks/3QmaYnff.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BqJHaeQw.js","/app/immutable/chunks/DJu_D7ND.js","/app/immutable/chunks/Dx5-Ovf5.js","/app/immutable/chunks/B7JUZ-OL.js","/app/immutable/chunks/DYiKRSyK.js","/app/immutable/chunks/Cae3uxuh.js","/app/immutable/chunks/CrsB8npl.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DQayjjKQ.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bo as m,t as Ht,bq as y,a_ as M,by as jt,b as Wt,br as df,bu as Ft,bs as ca,bt as ni,b7 as Wi,ba as uf,bl as ff,bb as pf,bm as gf,a$ as vf,b9 as mf,b8 as hf,b2 as bf,bf as yf,bg as _f,bk as xf,be as wf,bn as kf,b0 as If,b4 as Sf,bi as Cf,bh as Ef,b6 as Pf,b5 as Af,b3 as Tf,bd as Rf,bc as Lf,bj as Nf,b1 as Mf,_ as Of}from"./COCO5InB.js";import{bI as Df,bj as fs,aG as Bf,bs as Ut,aD as e,a5 as S,bS as v,bA as w,W as d,bn as qt,c9 as u,aA as _,a7 as kt,ay as ze,be as sr,b$ as Lt,aC as ya,bl as R,b_ as k,bO as x,aB as I,bo as ps,ca as Ct,bH as N,bV as we,br as Ur,bk as gs,c0 as Zn,ai as Aa,cd as Ns,aw as wn,a as Ff,aj as Ar,c7 as zf,c6 as Ui,c5 as Ln,bf as Ms,bz as Rc}from"./B8o4lNgr.js";import{B as Os,I as Hf,x as jf}from"./Cdhgfy6h.js";import{c as Wf,s as oe,a as Nn,l as Mn,f as kn,d as cr,k as mt,I as vs,h as Tt,i as Rr,o as Uf,j as qf,g as Vf,n as Kf}from"./Crs9I2MT.js";import{s as dn}from"./Dck4Okga.js";import{c as Xr}from"./oALOmsvi.js";import{H as Lo,t as lr,n as Gf,i as qi,u as Vi}from"./Bqoyy9yx.js";import{b as gr}from"./D2g8BuR1.js";import{h as Lc,bs as Jf,cH as Yf,dz as Xf,dk as Zf,av as Qf,cr as $f,a1 as ep,cN as tp,dj as ns,aA as Gs,c0 as rp,H as np,c as ap,$ as Ki,cT as sp,bQ as op,L as ip,dg as lp,V as cp,dq as dp,ae as up,f as fp,t as pp}from"./DUT4V6mb.js";import{c as gp}from"./D-62MVd3.js";import{n as ra,w as vp,C as Nc,M as mp,R as hp}from"./CJvhopKt.js";import{f as yt,ap as ja,ai as bp,am as No,bb as yp}from"./C5Xi5eLp.js";import{ai as _p,a7 as Gi,X as xp,at as wp,aM as kp,I as Ip,R as Sp,an as Cp,ab as Ep,Y as Pp,b as Ji,q as Ap,n as Tp,aS as Rp,m as Lp,aU as Mo,A as Yi,aa as Np,aT as Mp,ak as Mc,L as Oc,a3 as Op,a2 as Xi,J as Zi}from"./FSpiE1wW.js";import{cU as Dp,F as Et,be as Oo,bH as Bp,an as Fp,aO as zp,cE as Hp,bi as ai,bx as jp,aE as Dc,aJ as si,cT as Ds,aa as Do,ci as Wp,c8 as Up,cd as oi,cz as Bc,bo as qp,e as Vp,bX as Qi,c4 as Kp,cg as Gp,cP as Fc,bR as $i,b5 as po,bb as $a,aD as Jp,ay as Bo,at as zc,b9 as Hc,by as Yp,B as Xp,br as Zp,a6 as jc,cc as Qp,ak as Wc,cG as Uc,cC as el,ar as qc,aI as tl,a1 as $p,cq as eg,cN as tg,bK as Vc,bk as rg,c0 as rl,am as Kc,ax as ng,a8 as ag,a7 as sg}from"./BDq7EC2K.js";import{c as Gc}from"./ChTqQfQN.js";import{h as og}from"./BlJs0v1V.js";import{G2 as Mt,bG as ig,r2 as lg,GP as cg,GU as dg,g as Jc,FQ as ug,mt as Yc,mI as Xc,mH as Zc,mm as Js,oU as ii,vW as fg,tf as Es,sA as Fo,th as pg,ma as Qc,G7 as gg,rA as vg,nv as $c,pU as li,kW as nl,a0 as al,pv as mg,pr as hg,pw as bg,pn as yg,pt as _g,t5 as xg,yq as ed,yu as td,mJ as sl,b9 as zo,Ez as wg,FM as kg,mD as Ig,u2 as Sg,u3 as Cg,u1 as ol,zm as Xn,ck as rd,c8 as Eg,cY as Pg,d3 as Ag,yA as Tg}from"./BjFoJgFv.js";import{k as nd,f as il,O as ll,M as Rg,J as Lg,E as Ng,r as Mg,q as Og,R as Dg,Q as ad,N as Ho,e as as,a2 as cl,i as Bg}from"./Bpruhzz0.js";import{bi as Fg,bp as zg,h as Hg,t as jg,bs as Wg,U as Ug,W as qg,Y as Vg}from"./BUVaYTVI.js";import{i as Kg,h as Gg,p as jo,bO as Jg,E as Yg,bN as Xg,bK as Zg,au as dl,bM as Qg,bl as Wo,aE as $g,n as ev,b5 as tv,s as rv}from"./BqJHaeQw.js";import{a0 as nv,ah as ws,ag as av,au as ul,aC as sv,af as ov,B as iv,i as lv,C as Ps,cz as cv,aP as fl,cE as dv,ac as uv,a4 as fv,r as pv,p as gv,az as vv,cH as mv,cq as hv,cj as bv,ca as yv,bD as _v}from"./Dj-i-4vt.js";import{s as xv,j as wv,i as kv,I as Ua,c as pl}from"./CjVTzfqV.js";import"./BqRJyrRC.js";import"./B7mAnbbv.js";import{I as ci,P as Iv,s as Sv,k as Cv,G as Ev,o as Pv,l as Av,M as Tv,H as Rv,w as za,a as Lv,K as Nv,n as Mv,R as Ov}from"./bjkNeafo.js";import{t as ss,m as Dv,O as Bv,M as Fv,S as ha}from"./1jz3AJ7K.js";import{C as Uo}from"./ykvYWYIa.js";import{J as zv,L as Hv,K as jv,u as di,w as Wv,v as Ys,G as Uv,A as gl,e as os,d as ba,I as vl,c as qv,f as Vv,g as ml,i as Kv,b as Gv,o as sd,j as Jv,O as Yv,x as Xv,k as od,S as Zv,N as Qv,q as hl,p as $v,n as bl,z as em,s as tm}from"./DK77esWJ.js";import{aK as rm,aS as nm,aI as am,aO as sm,a6 as Va,aY as yl,aE as om,aL as im,aR as ui,aM as fi,V as go,an as lm,W as cm,aU as dm,aD as um,aN as fm,aQ as pm,a$ as gm,aZ as vm,av as id,p as mm,n as hm,aP as bm,Z as ym,z as _m}from"./DDFSWjQU.js";import{s as qo}from"./BME8wn-Y.js";import{M as xm}from"./CpWqDujk.js";import{o as _l,a as xl,T as vo,b as wm}from"./B781x4pz.js";import{ad as km,a4 as Im,J as Sm,E as Cm,ag as Em}from"./D62E6eA-.js";import{D as is}from"./Cui_1F-9.js";import"./DROi8p_h.js";import{C as na}from"./BJwk8LqM.js";import{M as Pm}from"./CQcnUt15.js";import{g as pi}from"./-fWJi05-.js";import{f as wl}from"./DYiKRSyK.js";import{c as As}from"./Ck11Hn8r.js";import{handleIntentLink as Am}from"./D7KhJm9U.js";import{s as Tm,a as Rm,f as Lm,d as Nm,r as Mm,h as Om,w as es,g as Dm,W as Bm,H as Fm,c as zm,M as ld}from"./DzjRhthn.js";import{e as Hm,q as jm}from"./B6LKhrY2.js";import{showAssistantContent as Wm}from"./DQ070aDn.js";import{o as Bs,c as Um,n as qm}from"./DQayjjKQ.js";import{p as Vm}from"./DZzZGRg-.js";import{m as Km}from"./DY0zw3Os.js";import{h as ks}from"./DoLFtAtL.js";import{i as cd}from"./DJu_D7ND.js";import{b as Gm,f as Jm,h as Ym,j as Xm}from"./C563feV7.js";import{T as mo}from"./_cwefpRI.js";import{i as Zm,r as kl}from"./dbgkJ9GM.js";import{a as Qm}from"./3QmaYnff.js";import{a as $m}from"./BJzHxIyr.js";import{p as eh}from"./D9ScELxf.js";const th="intent:inline-visual-draft";function WI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -257,7 +257,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
257
257
  `,u1=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Po=96,fc=2e4,f1=480,gu=512,p1=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function g1(r,t,n,a,s,o){const l=new MessageChannel,c=MessagePort.prototype.postMessage.bind(l.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[l.port2]);const f=(C,F={})=>{window.parent.postMessage({channel:r,type:C,...F},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const F=JSON.parse(JSON.stringify(C));return i=F.state,p=F,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let L=!1,b=-1,h=innerHeight,A=Number.NaN,T=0,H=0;const B=()=>{if(L=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const F=innerHeight,K=C-F;if(F>h+1&&K>1&&Math.abs(K-A)<=1?T+=1:(F!==h||K<=1)&&(T=0),h=F,A=K,!H&&T>=3){H=Math.max(a,F);const X="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(X),f("layout",{message:X})}H&&(C=Math.min(C,H)),C!==b&&(b=C,f("resize",{height:C}))},O=()=>{L||(L=!0,requestAnimationFrame(B))},D=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const F=document.documentElement;F.classList.toggle("dark",C.dark),F.style.colorScheme=C.dark?"dark":"light";const K=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof K=="string"&&K.length<512&&F.style.setProperty("--inline-html-root-font-size",K);for(const X of Object.keys(t.variables)){if(X==="--inline-html-root-font-size")continue;const de=C.variables[X];typeof de=="string"&&de.length<512&&F.style.setProperty(X,de)}O()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&D(C.data.theme)});const U=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const F=de=>{const Pe=getComputedStyle(de);if(de!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Pe.overflowY)||/^(hidden|clip)$/.test(Pe.overflowY))return!1;const ue=de.scrollHeight-de.clientHeight;return ue>1&&(C.deltaY<0?de.scrollTop>1:de.scrollTop<ue-1)};if(C.composedPath().some(de=>de instanceof Element&&F(de))||document.scrollingElement&&F(document.scrollingElement))return;const K=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,X=Math.max(-n,Math.min(n,C.deltaY*K));Number.isFinite(X)&&(C.preventDefault(),c({deltaY:X}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&f("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const F=C.reason;f("error",{message:String(F instanceof Error?F.message:F).slice(0,300)})}),window.addEventListener("click",C=>{const F=C.target instanceof Element?C.target.closest("a, area"):null;if(!F)return;(F.getAttribute("href")??F.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),D(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function v1(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let l;const c=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!l&&f.ports.length===1){l=f.ports[0],l.onmessage=c;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function m1(r,t,n,a,s,o,l,c){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=X=>{X.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(de=>de.remove()),X.querySelectorAll("template").forEach(de=>p(de.content)),X.querySelectorAll("a, area").forEach(de=>{for(const Pe of["href","xlink:href"])de.getAttribute(Pe)?.startsWith("#")||de.removeAttribute(Pe);de.removeAttribute("target"),de.removeAttribute("ping"),de.removeAttribute("download")})};p(f);const g=X=>JSON.stringify(X).replace(/</g,"\\u003c"),L=f.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),A=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(c)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
258
258
  font-display: swap; src: url('${c}') format('woff2'); }`:"";h.textContent=`${A}${r.styles}`;const T=f.createElement("script"),H=g([a,s,r.maxScrollDelta,r.lockHeight,t(l)?l:null]);T.textContent=`(${r.bridge})(...${H}, (${r.validate}));`,f.head.prepend(L,b,h,T);const B=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),D=O.createElement("meta");D.httpEquiv="Content-Security-Policy",D.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=O.createElement("meta");U.setAttribute("charset","utf-8");const C=O.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const F=O.createElement("script"),K=g([a,B,o,r.maxScrollDelta]);return F.textContent=`(${r.shell})(...${K}, (${r.validate}));`,O.head.prepend(D,U,C,F),`<!doctype html>${O.documentElement.outerHTML}`}const h1=()=>({csp:p1,styles:d1,maxScrollDelta:gu,lockHeight:f1,bridge:g1.toString(),shell:v1.toString(),validate:li.toString()});function b1(r,t,n,a,s=null,o=""){return m1(h1(),li,r,t,n,a,s,o)}function pc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(u1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function y1(r,t,n,a,s=null){return b1(r,t,n,a,s,c1)}var _1=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),x1=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),w1=I('<p class="sr-only" role="status"> </p>'),k1=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),I1=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),S1=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),C1=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),E1=I('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),P1=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),A1=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),T1=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),R1=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),L1=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),N1=I('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),M1=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function vu(r,t){if(new.target)return Ht({component:vu,...r});Ut(t,!0);const n=720;let a=y(t,"source",7),s=y(t,"isStreaming",7,!1),o=y(t,"isComplete",7,!0),l=y(t,"record",7),c=y(t,"storageStatus",7,"ready"),f=y(t,"onRecordChange",7),i=y(t,"onUseConfiguration",7),p=y(t,"onExport",7),g=y(t,"onRetry",7),L=y(t,"storageError",7),b=y(t,"exportStatus",7),h=y(t,"exportPath",7),A=y(t,"exportError",7),T,H=we(void 0),B=we(!1),O=we(!1),D=we(0),U=we(""),C=we(""),F=we(!1),K=we(""),X=we(Ur(Po)),de=we(n),Pe=we(""),ue=we(nl()),Z=we(void 0),ge,Me=we(void 0),G=we(!1);const fe=u(()=>l()??e(ue)),$=u(()=>c()!=="loading"&&(c()!=="error"||!!e(fe).current)),Ae=u(()=>!s()&&o()&&!!a().trim()&&e($)),Se=u(()=>Math.min(fc,Math.max(Po,e(X)))),Ie=u(()=>s()||c()==="loading"?"loading":o()?a().trim()?e(K)?"error":e(F)?"ready":"loading":"empty":"incomplete"),Ye=u(()=>s()||c()==="loading"||e(Ae)&&!e(F)&&!e(K));function Xe(ee){const ke={...ee,current:e(Z)??ee.current};N(ue,ke),f()?.(ke)}function $e(){const ee=e(Z);!ee||e(fe).scenarios.length>=al||(Xe({...e(fe),scenarios:[...e(fe).scenarios,{id:crypto.randomUUID(),name:xf({number:Vi(e(fe).scenarios.length+1)}),snapshot:structuredClone(ee)}]}),N(G,!0))}function te(ee,ke){const at=ke.trim().slice(0,120);at&&Xe({...e(fe),scenarios:e(fe).scenarios.map(et=>et.id===ee?{...et,name:at}:et)})}function Q(ee){const ke=structuredClone(ee);N(Z,ke),N(Me,ke),Xe({...e(fe),current:ke}),N(D,e(D)+1)}function tt(ee){return typeof ee=="number"?Vi(ee):typeof ee=="string"?ee:JSON.stringify(ee)}function J(){!e(H)?.contentWindow||!e(C)||e(H).contentWindow.postMessage({channel:e(C),type:"theme",theme:pc(T)},"*")}function V(ee){let ke=T.parentElement;for(;ke;){const at=getComputedStyle(ke),et=ke.scrollHeight-ke.clientHeight;if(/^(auto|scroll|overlay)$/.test(at.overflowY)&&et>1){if(ee<0?ke.scrollTop>0:ke.scrollTop<et){ke.dispatchEvent(new WheelEvent("wheel",{deltaY:ee,bubbles:!0})),ke.scrollTop+=ee;return}if(/^(contain|none)$/.test(at.overscrollBehaviorY))return}ke=ke.parentElement}window.scrollBy({top:ee,behavior:"instant"})}Ct(()=>{if(!e(B))return;const ee=a(),ke=e(Ae);e(D),Ln(()=>{ge!==ee&&(N(ue,nl()),N(Z,void 0),N(G,!1),N(Me,void 0),ge=ee),N(F,!1),N(K,""),N(Pe,""),N(X,Po,!0),N(C,crypto.randomUUID(),!0),N(U,ke?y1(ee,e(C),pc(T),Wi(),e(Me)??e(Z)??e(fe).current):"",!0),N(Me,void 0)})}),gs(()=>{N(B,!0);const ee=gt=>{if(gt.source!==e(H)?.contentWindow||gt.origin!=="null")return;const He=gt.data;if(!(!He||typeof He!="object"||He.channel!==e(C)))if(He.type==="resize"&&typeof He.height=="number"&&Number.isFinite(He.height)&&He.height>=0)N(X,Math.min(fc,Math.ceil(He.height)),!0);else if(He.type==="ready")N(F,!0),J();else if(He.type==="error"&&typeof He.message=="string")N(K,He.message.slice(0,300),!0);else if(He.type==="layout"&&typeof He.message=="string")N(Pe,He.message.slice(0,300),!0);else if(He.type==="snapshot"&&e(Ae)&&li(He.snapshot)){const ht=He.snapshot;N(Z,ht),Xe({...e(fe),current:ht})}else He.type==="wheel"&&e(F)&&e(Ae)&&!e(O)&&!e(Ye)&&typeof He.deltaY=="number"&&Number.isFinite(He.deltaY)&&He.deltaY!==0&&Math.abs(He.deltaY)<=gu&&V(He.deltaY)},ke=()=>{N(de,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},at=new MutationObserver(J);at.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const et=window.matchMedia("(prefers-color-scheme: dark)");return et.addEventListener("change",J),window.addEventListener("message",ee),window.addEventListener("resize",ke),ke(),()=>{at.disconnect(),et.removeEventListener("change",J),window.removeEventListener("message",ee),window.removeEventListener("resize",ke)}});var q={get source(){return a()},set source(ee){a(ee),_()},get isStreaming(){return s()},set isStreaming(ee=!1){s(ee),_()},get isComplete(){return o()},set isComplete(ee=!0){o(ee),_()},get record(){return l()},set record(ee){l(ee),_()},get storageStatus(){return c()},set storageStatus(ee="ready"){c(ee),_()},get onRecordChange(){return f()},set onRecordChange(ee){f(ee),_()},get onUseConfiguration(){return i()},set onUseConfiguration(ee){i(ee),_()},get onExport(){return p()},set onExport(ee){p(ee),_()},get onRetry(){return g()},set onRetry(ee){g(ee),_()},get storageError(){return L()},set storageError(ee){L(ee),_()},get exportStatus(){return b()},set exportStatus(ee){b(ee),_()},get exportPath(){return h()},set exportPath(ee){h(ee),_()},get exportError(){return A()},set exportError(ee){A(ee),_()},$set:jt,$on:(ee,ke)=>Wt(t,ee,ke)},ce=M1(),_e=S(ce),Y=S(_e);yt(Y,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{N(O,!e(O))},children:(ee,ke)=>{sr();var at=Lt();k(et=>x(at,et),[()=>e(O)?uf():ff()]),d(ee,at)},$$slots:{default:!0}});var he=v(Y,2);{let ee=u(()=>!e(Ae));yt(he,{variant:"ghost",size:"sm",get disabled(){return e(ee)},onclick:()=>{N(D,e(D)+1)},children:(ke,at)=>{sr();var et=Lt();k(gt=>x(et,gt),[()=>pf()]),d(ke,et)},$$slots:{default:!0}})}w(_e);var Le=v(_e,2);{var je=ee=>{var ke=x1(),at=ze(ke),et=S(at),gt=R(et,!0),He=v(et,2);{var ht=ft=>{yt(ft,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Pt,At)=>{sr();var Zt=Lt();k(xt=>x(Zt,xt),[()=>wf()]),d(Pt,Zt)},$$slots:{default:!0}})};M(He,ft=>{g()&&ft(ht)})}w(at);var ot=v(at,2);{var vt=ft=>{var Pt=_1(),At=R(Pt,!0);k(()=>x(At,L())),d(ft,Pt)};M(ot,ft=>{L()&&ft(vt)})}k(ft=>x(gt,ft),[()=>gf()]),d(ee,ke)};M(Le,ee=>{c()==="error"&&ee(je)})}var st=v(Le,2);{var z=ee=>{var ke=w1(),at=R(ke,!0);k(et=>x(at,et),[()=>s()?vf():mf()]),d(ee,ke)},ie=ee=>{var ke=k1(),at=R(ke,!0);k(et=>x(at,et),[()=>o()?bf():hf()]),d(ee,ke)},Te=ee=>{var ke=I1(),at=S(ke),et=R(at,!0),gt=v(at,2),He=R(gt,!0);w(ke),k(ht=>{x(et,ht),x(He,e(K))},[()=>yf()]),d(ee,ke)};M(st,ee=>{e(Ye)?ee(z):e(Ae)?e(K)&&ee(Te,2):ee(ie,1)})}var Ge=v(st,2),ve=S(Ge);{var P=ee=>{var ke=S1();let at,et;gr(ke,gt=>N(H,gt),()=>e(H)),k(gt=>{oe(ke,"title",gt),oe(ke,"srcdoc",e(U)),at=mt(ke,1,"block w-full border-0 svelte-1kkow1d",null,at,{"preview-hidden":e(O)||e(Ye)}),oe(ke,"aria-hidden",e(O)||e(Ye)),et=Mn(ke,"",et,{height:`${e(Se)}px`})},[()=>Wi()]),d(ee,ke)};M(ve,ee=>{e(Ae)&&e(U)&&ee(P)})}var j=v(ve,2);{var me=ee=>{na(ee,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(de)}})},qe=ee=>{var ke=C1(),at=S(ke),et=S(at);za(et,{class:"h-4 w-32 max-w-1/2"});var gt=v(et,2);za(gt,{class:"h-3 w-2/3"}),w(at);var He=v(at,2);za(He,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=v(He,2),ot=S(ht);za(ot,{class:"h-3 w-16"});var vt=v(ot,2);za(vt,{class:"h-2 min-w-0 flex-1"});var ft=v(vt,2);za(ft,{class:"h-3 w-10"}),w(ht),w(ke),d(ee,ke)};M(j,ee=>{e(O)?ee(me):e(Ye)&&ee(qe,1)})}w(Ge);var Ce=v(Ge,2);{var Ve=ee=>{var ke=N1(),at=ze(ke),et=S(at);{var gt=St=>{{let Gt=u(()=>!e(F)||!!e(K));yt(St,{size:"sm",get disabled(){return e(Gt)},onclick:()=>e(Z)&&i()(e(Z)),children:(Ot,pe)=>{sr();var re=Lt();k(Ue=>x(re,Ue),[()=>kf()]),d(Ot,re)},$$slots:{default:!0}})}};M(et,St=>{i()&&St(gt)})}var He=v(et,2);{let St=u(()=>!e(F)||!!e(K)||e(fe).scenarios.length>=al);yt(He,{variant:"ghost",size:"sm",get disabled(){return e(St)},onclick:$e,children:(Gt,Ot)=>{sr();var pe=Lt();k(re=>x(pe,re),[()=>_f()]),d(Gt,pe)},$$slots:{default:!0}})}var ht=v(He,2);{var ot=St=>{yt(St,{variant:"ghost",size:"sm",get active(){return e(G)},get"aria-expanded"(){return e(G)},onclick:()=>N(G,!e(G)),children:(Gt,Ot)=>{sr();var pe=Lt();k(re=>x(pe,re),[()=>If()]),d(Gt,pe)},$$slots:{default:!0}})};M(ht,St=>{e(fe).scenarios.length&&St(ot)})}var vt=v(ht,2);{var ft=St=>{{let Gt=u(()=>!e(F)||b()==="saving");yt(St,{variant:"ghost",size:"sm",get disabled(){return e(Gt)},onclick:()=>p()({...e(fe),current:e(Z)??null}),children:(Ot,pe)=>{sr();var re=Lt();k(Ue=>x(re,Ue),[()=>Sf()]),d(Ot,re)},$$slots:{default:!0}})}};M(vt,St=>{p()&&St(ft)})}var Pt=v(vt,2);{var At=St=>{var Gt=E1(),Ot=R(Gt,!0);k(pe=>x(Ot,pe),[()=>c()==="saving"?Cf():c()==="ready"?Ef():""]),d(St,Gt)};M(Pt,St=>{f()&&St(At)})}w(at);var Zt=v(at,2);{var xt=St=>{var Gt=P1(),Ot=S(Gt),pe=v(Ot);{var re=Ue=>{var rt=Lt();k(()=>x(rt,A())),d(Ue,rt)};M(pe,Ue=>{b()==="error"&&A()&&Ue(re)})}w(Gt),k(Ue=>x(Ot,`${Ue??""} `),[()=>b()==="saving"?Pf():b()==="saved"?Af({path:h()??""}):Tf()]),d(St,Gt)};M(Zt,St=>{b()&&St(xt)})}var zt=v(Zt,2);{var er=St=>{var Gt=L1(),Ot=S(Gt),pe=S(Ot),re=S(pe),Ue=S(re),rt=R(Ue,!0),lt=v(Ue),Oe=R(lt,!0),se=v(lt);Tt(se,17,()=>e(fe).scenarios,ae=>ae.id,(ae,be)=>{var xe=A1(),Be=S(xe);{let De=u(()=>Nf());Ua(Be,{get value(){return e(be).name},get"aria-label"(){return e(De)},maxlength:120,onblur:Fe=>{Fe.currentTarget.value.trim()||(Fe.currentTarget.value=e(be).name),te(e(be).id,Fe.currentTarget.value)},onkeydown:Fe=>{Fe.key==="Enter"&&Fe.currentTarget.blur(),Fe.key==="Escape"&&(Fe.currentTarget.value=e(be).name,Fe.currentTarget.blur())}})}var Re=v(Be,2),Ze=S(Re);yt(Ze,{variant:"ghost",size:"sm",onclick:()=>Q(e(be).snapshot),children:(De,Fe)=>{sr();var We=Lt();k(Qe=>x(We,Qe),[()=>Rf()]),d(De,We)},$$slots:{default:!0}});var Je=v(Ze,2);yt(Je,{variant:"ghost",size:"sm",onclick:()=>Xe({...e(fe),scenarios:e(fe).scenarios.filter(De=>De.id!==e(be).id)}),children:(De,Fe)=>{sr();var We=Lt();k(Qe=>x(We,Qe),[()=>Lf()]),d(De,We)},$$slots:{default:!0}}),w(Re),w(xe),d(ae,xe)}),w(re),w(pe);var le=v(pe);Tt(le,20,()=>["inputs","results"],Rr,(ae,be)=>{const xe=u(()=>be),Be=u(()=>Array.from(new Set([...Object.keys(e(Z)[e(xe)]),...e(fe).scenarios.flatMap(Je=>Object.keys(Je.snapshot[e(xe)]))])));var Re=kt(),Ze=ze(Re);Tt(Ze,16,()=>e(Be),Je=>Je,(Je,De)=>{var Fe=R1(),We=S(Fe),Qe=R(We,!0),ut=v(We);Tt(ut,17,()=>[e(Z),...e(fe).scenarios.map(ct=>ct.snapshot)],Rr,(ct,dt)=>{var wt=T1(),bt=R(wt,!0);k(Rt=>x(bt,Rt),[()=>Object.hasOwn(e(dt)[e(xe)],De)?tt(e(dt)[e(xe)][De]):"—"]),d(ct,wt)}),w(Fe),k(()=>x(Qe,De)),d(Je,Fe)}),d(ae,Re)}),w(le),w(Ot),w(Gt),k(ae=>{x(rt,e(Z).title),x(Oe,ae)},[()=>Mf()]),d(St,Gt)};M(zt,St=>{e(G)&&e(fe).scenarios.length&&St(er)})}d(ee,ke)};M(Ce,ee=>{e(Z)&&e(Ae)&&ee(Ve)})}return w(ce),gr(ce,ee=>T=ee,()=>T),k(()=>{oe(ce,"data-inline-html-status",e(Ie)),oe(ce,"data-inline-html-layout",e(Pe)?"viewport-locked":void 0),oe(ce,"aria-busy",e(Ye))}),d(r,ce),qt(q)}var O1=I('<div class="w-full min-w-0"><!></div>');function D1(r,t){if(new.target)return Ht({component:D1,...r});Ut(t,!0);const n=()=>Ft(e(b),"$agent$",s),a=()=>Ft(e(H),"$entry$",s),[s,o]=ca();let l=y(t,"block",7),c=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),L=we(void 0);const b=u(()=>Gs(i()??"")),h=u(()=>c()==="assistant"&&f()&&i()&&p()&&l().metadata?.fenceClosed&&!l().metadata?.isStreaming&&n()&&!$c(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),l().metadata?.fenceStart??0]),source:l().content}:void 0),A=u(()=>!!(f()&&i()&&p()&&l().metadata?.fenceClosed&&!n())),T=u(()=>e(h)?_g(e(h)):""),H=u(()=>am(e(T)));Ct(()=>{e(h)&&Mt.dispatch(mg(e(h)))});function B(X){!f()||!i()||n()?.retiredAt||e(L)?.dispatchEvent(new CustomEvent(th,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:X}}))}var O={get block(){return l()},set block(X){l(X),_()},get role(){return c()},set role(X){c(X),_()},get workspaceId(){return f()},set workspaceId(X){f(X),_()},get agentId(){return i()},set agentId(X){i(X),_()},get messageId(){return p()},set messageId(X){p(X),_()},get contentBlockKey(){return g()},set contentBlockKey(X=""){g(X),_()},$set:jt,$on:(X,de)=>Wt(t,X,de)},D=kt(),U=ze(D);{var C=X=>{var de=O1(),Pe=S(de);{let ue=u(()=>l().metadata?.isStreaming??!1),Z=u(()=>l().metadata?.fenceClosed??!1),ge=u(()=>a()?.record),Me=u(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),G=u(()=>a()?.error),fe=u(()=>e(h)?$e=>Mt.dispatch(yg(e(T),$e)):void 0),$=u(()=>f()&&i()&&n()&&!n().retiredAt?B:void 0),Ae=u(()=>e(h)?()=>Mt.dispatch(bg(e(T))):void 0),Se=u(()=>e(h)?$e=>Mt.dispatch(hg(e(T),crypto.randomUUID(),$e)):void 0),Ie=u(()=>a()?.export?.status),Ye=u(()=>a()?.export?.path),Xe=u(()=>a()?.export?.error);vu(Pe,{get source(){return l().content},get isStreaming(){return e(ue)},get isComplete(){return e(Z)},get record(){return e(ge)},get storageStatus(){return e(Me)},get storageError(){return e(G)},get onRecordChange(){return e(fe)},get onUseConfiguration(){return e($)},get onRetry(){return e(Ae)},get onExport(){return e(Se)},get exportStatus(){return e(Ie)},get exportPath(){return e(Ye)},get exportError(){return e(Xe)}})}w(de),gr(de,ue=>N(L,ue),()=>e(L)),d(X,de)},F=X=>{na(X,{get code(){return l().content},language:"html"})};M(U,X=>{c()==="assistant"?X(C):X(F,-1)})}d(r,D);var K=qt(O);return o(),K}var B1=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function F1(r,t){if(new.target)return Ht({component:F1,...r});Ut(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(l){n(l),_()},$set:jt,$on:(l,c)=>Wt(t,l,c)},s=B1(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),qt(a)}var z1=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),H1=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),j1=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),W1=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),U1=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function q1(r,t){if(new.target)return Ht({component:q1,...r});Ut(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:jt,$on:(b,h)=>Wt(t,b,h)},s=U1(),o=S(s),l=S(o);Et(l,{get icon(){return Fc},size:"sm",class:"text-primary-ink/70"});var c=v(l,2),f=R(c,!0);w(o);var i=v(o,2);Tt(i,21,n,b=>b.name+b.command,(b,h)=>{var A=W1(),T=S(A),H=S(T),B=S(H),O=R(B,!0),D=v(B,2);{var U=Pe=>{var ue=z1(),Z=R(ue,!0);k(ge=>x(Z,ge),[()=>m.chat_detectedScripts_service_badge()]),d(Pe,ue)},C=Pe=>{var ue=H1(),Z=R(ue,!0);k(ge=>x(Z,ge),[()=>m.chat_detectedScripts_command_badge()]),d(Pe,ue)};M(D,Pe=>{e(h).mode==="service"?Pe(U):Pe(C,-1)})}var F=v(D,2);{var K=Pe=>{var ue=j1(),Z=R(ue,!0);k(()=>x(Z,e(h).category)),d(Pe,ue)};M(F,Pe=>{e(h).category&&e(h).category!=="other"&&Pe(K)})}w(H);var X=v(H,2),de=R(X,!0);w(T),w(A),k(()=>{x(O,e(h).name),x(de,e(h).command)}),d(b,A)}),w(i);var p=v(i,2),g=S(p),L=R(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(L,h)},[()=>m.chat_detectedScripts_title(),()=>n().length===1?m.chat_detectedScripts_count_one({count:lr(n().length)}):m.chat_detectedScripts_count_many({count:lr(n().length)})]),d(r,s),qt(a)}function V1(r,t){if(new.target)return Ht({component:V1,...r});Ut(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),l=y(t,"onReject",7);function c(){o()?.(),ra.success(m.chat_diffViewer_applied_toast())}function f(){l()?.(),ra.info(m.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:m.chat_diffViewer_apply_label(),variant:"success",onClick:c}),l()&&g.push({label:m.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return l()},set onReject(g){l(g),_()},$set:jt,$on:(g,L)=>Wt(t,g,L)};{let g=u(()=>a()||m.chat_diffViewer_suggestedChanges_fallback());is(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return qt(p)}var K1=ya('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),gc=ya("<circle></circle>"),G1=ya('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),J1=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Ls(r,t){if(new.target)return Ht({component:Ls,...r});Ut(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),l=u(()=>s()/2),c=u(()=>e(l)),f=u(()=>e(l)),i=u(()=>s()*.12),p=u(()=>e(l)-e(i)/2),g=u(()=>e(l)*.35),L=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(L));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let A=u(()=>h[n()]||"currentColor");var T={get phase(){return n()},set phase(ue){n(ue),_()},get progress(){return a()},set progress(ue=0){a(ue),_()},get size(){return s()},set size(ue=16){s(ue),_()},get class(){return o()},set class(ue=""){o(ue),_()},$set:jt,$on:(ue,Z)=>Wt(t,ue,Z)},H=J1(),B=S(H),O=S(B),D=v(O);{var U=ue=>{},C=ue=>{var Z=K1();k(()=>{oe(Z,"cx",e(c)),oe(Z,"cy",e(f)),oe(Z,"r",e(g)*.8),oe(Z,"stroke",e(A)),oe(Z,"stroke-width",e(g)*1.5),oe(Z,"stroke-dasharray",`${e(b)??""} ${e(L)??""}`),oe(Z,"stroke-dashoffset",e(L)*.25),oe(Z,"transform",`rotate(-90 ${e(c)??""} ${e(f)??""})`)}),d(ue,Z)},F=ue=>{var Z=gc();k(()=>{oe(Z,"cx",e(c)),oe(Z,"cy",e(f)),oe(Z,"r",e(p)*.6),oe(Z,"fill",e(A))}),d(ue,Z)},K=ue=>{var Z=gc();k(()=>{oe(Z,"cx",e(c)),oe(Z,"cy",e(f)),oe(Z,"r",e(p)),oe(Z,"fill",e(A))}),d(ue,Z)};M(D,ue=>{n()==="planning"?ue(U):n()==="building"?ue(C,1):n()==="reviewing"?ue(F,2):n()==="shipped"&&ue(K,3)})}w(B);var X=v(B,2);{var de=ue=>{},Pe=ue=>{var Z=G1();k(()=>oe(Z,"width",s()*.5)),d(ue,Z)};M(X,ue=>{n()==="reviewing"?ue(de):n()==="shipped"&&ue(Pe,1)})}return w(H),k(()=>{oe(B,"width",s()),oe(B,"height",s()),oe(B,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(B,0,cr(o())),oe(O,"cx",e(c)),oe(O,"cy",e(f)),oe(O,"r",e(p)),oe(O,"stroke",e(A)),oe(O,"stroke-width",e(i))}),d(r,H),qt(T)}var vc=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),Y1=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),mc=I('<span class="text-ui text-subtle truncate"> </span>'),hc=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),bc=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),X1=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),Z1=I('<span class="text-ui text-subtle pl-4"> </span>'),Q1=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),$1=I('<div class="text-ui text-subtle"> </div>'),e0=I("<!> <!> <!> <!>",1),t0=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),r0=I('<div class="rounded-[0.5px]"></div>');function mu(r,t){if(new.target)return Ht({component:mu,...r});Ut(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),l=y(t,"barHeight",7,"16px"),c=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:D,inProgress:U,notStarted:C,total:F}=n();if(F===0)return[];const K=[...Array(D).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return K.length<=s()?K:K.slice(K.length-s())}),g=u(()=>a().filter(D=>D.status==="complete")),L=u(()=>a().filter(D=>D.status==="in_progress"||D.status==="review_required")),b=u(()=>a().filter(D=>D.status!=="complete"&&D.status!=="in_progress"&&D.status!=="review_required"&&D.status!=="cancelled")),h=u(()=>a().filter(D=>D.status==="cancelled")),A=u(()=>a().length>0);var T={get stats(){return n()},set stats(D){n(D),_()},get tasks(){return a()},set tasks(D=[]){a(D),_()},get maxBars(){return s()},set maxBars(D=20){s(D),_()},get barWidth(){return o()},set barWidth(D="1px"){o(D),_()},get barHeight(){return l()},set barHeight(D="16px"){l(D),_()},get gap(){return c()},set gap(D="1px"){c(D),_()},get class(){return f()},set class(D){f(D),_()},$set:jt,$on:(D,U)=>Wt(t,D,U)},H=kt(),B=ze(H);{var O=D=>{No(D,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var F=t0(),K=S(F),X=S(K),de=R(X,!0),Pe=v(X,2),ue=S(Pe);{var Z=Se=>{var Ie=vc(),Ye=S(Ie);Mn(Ye,"",{},{"background-color":"#22c55e"});var Xe=v(Ye);w(Ie),k(()=>x(Xe,` ${n().completed??""}`)),d(Se,Ie)};M(ue,Se=>{n().completed>0&&Se(Z)})}var ge=v(ue,2);{var Me=Se=>{var Ie=vc(),Ye=S(Ie);Mn(Ye,"",{},{"background-color":"#4F7BF7"});var Xe=v(Ye);w(Ie),k(()=>x(Xe,` ${n().inProgress??""}`)),d(Se,Ie)};M(ge,Se=>{n().inProgress>0&&Se(Me)})}var G=v(ge,2);{var fe=Se=>{var Ie=Y1(),Ye=v(S(Ie));w(Ie),k(()=>x(Ye,` ${n().notStarted??""}`)),d(Se,Ie)};M(G,Se=>{n().notStarted>0&&Se(fe)})}w(Pe),w(K);var $=v(K,2);{var Ae=Se=>{var Ie=e0(),Ye=ze(Ie);Tt(Ye,17,()=>e(L),Rr,(J,V)=>{var q=bc(),ce=S(q),_e=S(ce);vo(_e,{get status(){return e(V).status},size:14}),w(ce);var Y=v(ce,2),he=S(Y),Le=R(he,!0),je=v(he,2);{var st=z=>{var ie=hc(),Te=S(ie);{let P=u(()=>e(V).agentState||"idle");Yi(Te,{get agentId(){return e(V).agentId},get state(){return e(P)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ge=v(Te,2);{var ve=P=>{var j=mc(),me=R(j,!0);k(()=>x(me,e(V).agentName)),d(P,j)};M(Ge,P=>{e(V).agentName&&P(ve)})}w(ie),d(z,ie)};M(je,z=>{e(V).agentId&&z(st)})}w(Y),w(q),k(()=>x(Le,e(V).title)),d(J,q)});var Xe=v(Ye,2);Tt(Xe,17,()=>e(b),Rr,(J,V)=>{var q=bc(),ce=S(q),_e=S(ce);vo(_e,{get status(){return e(V).status},size:14}),w(ce);var Y=v(ce,2),he=S(Y),Le=R(he,!0),je=v(he,2);{var st=z=>{var ie=hc(),Te=S(ie);{let P=u(()=>e(V).agentState||"idle");Yi(Te,{get agentId(){return e(V).agentId},get state(){return e(P)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ge=v(Te,2);{var ve=P=>{var j=mc(),me=R(j,!0);k(()=>x(me,e(V).agentName)),d(P,j)};M(Ge,P=>{e(V).agentName&&P(ve)})}w(ie),d(z,ie)};M(je,z=>{e(V).agentId&&z(st)})}w(Y),w(q),k(()=>x(Le,e(V).title)),d(J,q)});var $e=v(Xe,2);{var te=J=>{var V=Q1(),q=S(V);Tt(q,17,()=>e(g).slice(0,3),Rr,(Y,he)=>{var Le=X1(),je=S(Le),st=S(je);vo(st,{status:"complete",size:12}),w(je);var z=v(je,2),ie=R(z,!0);w(Le),k(()=>x(ie,e(he).title)),d(Y,Le)});var ce=v(q,2);{var _e=Y=>{var he=Z1(),Le=R(he,!0);k(je=>x(Le,je),[()=>m.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d(Y,he)};M(ce,Y=>{e(g).length>3&&Y(_e)})}w(V),d(J,V)};M($e,J=>{e(g).length>0&&J(te)})}var Q=v($e,2);{var tt=J=>{var V=$1(),q=R(V,!0);k(ce=>x(q,ce),[()=>m.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(J,V)};M(Q,J=>{e(h).length>0&&J(tt)})}d(Se,Ie)};M($,Se=>{e(A)&&Se(Ae)})}w(F),k(Se=>x(de,Se),[()=>m.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,F)},children:(C,F)=>{{let K=u(()=>kn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),X=u(()=>`gap: ${c()}`),de=u(()=>m.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)}));yt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(K)},get style(){return e(X)},get"aria-label"(){return e(de)},"data-task-progress-trigger":!0,children:(Pe,ue)=>{var Z=kt(),ge=ze(Z);Tt(ge,17,()=>e(p),Rr,(Me,G)=>{var fe=r0();let $;k(()=>$=Mn(fe,"",$,{width:o(),height:l(),"background-color":i[e(G)]})),d(Me,fe)}),d(Pe,Z)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};M(B,D=>{n().total>0&&D(O)})}return d(r,H),qt(T)}function wi(r,t){if(new.target)return Ht({component:wi,...r});Ut(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),l=y(t,"selection",7),c=y(t,"class",7,"");const f=u(()=>Mp(n(),l(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return l()},set selection(p){l(p),_()},get class(){return c()},set class(p=""){c(p),_()},$set:jt,$on:(p,g)=>Wt(t,p,g)};return Lv(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Np(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,L)=>{let b=()=>(L?.()).props;yt(g,ni(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return c()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,A)=>{Nv(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var n0=I('<span class="contents"><!></span>'),a0=I("<!> <!>",1);function hu(r,t){if(new.target)return Ht({component:hu,...r});Ut(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>og(a()));let o=we(null);Ct(()=>{e(o)&&e(o).workspaceId!==n()&&N(o,null)});function l(h){const A=Mc(h);A&&N(o,{...A,workspaceId:n()},!0)}function c(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();N(o,{x:A.left,y:A.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){N(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:jt,$on:(h,A)=>Wt(t,h,A)},p=a0(),g=ze(p);{let h=u(()=>m.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),A=u(()=>m.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),T=u(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(A)},onclick:c,oncontextmenu:l,onkeydown:l,"aria-haspopup":"menu",get"aria-expanded"(){return e(T)},children:(H,B)=>{var O=n0(),D=S(O);mp(D,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(H,O)},$$slots:{default:!0}})}var L=v(g,2);{var b=h=>{{let A=u(()=>e(o)?.x??0),T=u(()=>e(o)?.y??0),H=u(()=>e(o)?.returnFocus),B=u(()=>m.workspace_card_assignMicroKey_label()),O=u(()=>Lm(n(),f));Oc(h,{get x(){return e(A)},get y(){return e(T)},get returnFocus(){return e(H)},selection:"single",get ariaLabel(){return e(B)},get items(){return e(O)},onClickOutside:f})}};M(L,h=>{e(o)&&h(b)})}return d(r,p),qt(i)}var s0=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),o0=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),i0=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),l0=I('<span data-workspace-card-pr-item=""><!></span>'),c0=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),d0=I('<span data-workspace-card-time=""><!></span>'),u0=I('<span aria-hidden="true"><!></span>'),f0=I("<div><!> <!> <!> <!></div>"),p0=I('<div data-workspace-card-hover-surface=""><!></div>'),g0=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),v0=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),m0=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),h0=I('<div class="text-sm font-semibold truncate"> </div>'),yc=I('<span class="truncate"> </span>'),b0=I('<span class="text-muted-foreground">·</span>'),y0=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),_0=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),x0=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),w0=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),k0=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),I0=I('<div class="flex items-center text-ui"><span> </span></div>'),S0=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),C0=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),E0=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),P0=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function bu(r,t){if(new.target)return Ht({component:bu,...r});Ut(t,!0);const n=()=>Ft(Xe,"$prMonitors$",l),a=()=>Ft($e,"$microConnected$",l),s=()=>Ft(Q,"$hidesOwnerActions$",l),o=()=>Ft(te,"$workspaceKeySlot$",l),[l,c]=ca();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),L=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),A=y(t,"isWaiting",7),T=y(t,"isPinned",7,!1),H=y(t,"streamingAgentIds",23,()=>[]),B=y(t,"hasSpec",7,!1),O=y(t,"isAgentRunning",7,!1),D=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),C=y(t,"title",7),F=y(t,"repoName",7),K=y(t,"branch",7),X=y(t,"onClick",7),de=y(t,"onAction",7),Pe=y(t,"onTogglePin",7),ue=y(t,"onMarkAsRead",7),Z=y(t,"onOpenInNewWindow",7),ge=y(t,"onHover",7),Me=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),fe=y(t,"highlightId",7),$=y(t,"suppressHover",7,!1),Ae=y(t,"isolateHoverReveal",7,!1),Se=y(t,"class",7),Ie=y(t,"actions",7);const Ye=Ns("");Ct(()=>{Ye.set(f()?.id??"")});const Xe=sp(Ye),$e=Km(),te=Wg(Ye),Q=op(Ye),tt=u(()=>Mm(f()??{})),J=u(()=>Om(e(tt)));let V=u(()=>f()?Vm.url.pathname===`/workspace/${f().id}`:!1),q=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),ce=we(!1),_e=we(null),Y=we(null);Ct(()=>{if(!e(Y))return;const ne=ks(e(Y),{id:fe()});return()=>ne.destroy()});let he=we(null),Le=we(null),je=we(null),st=we(0),z=we(0),ie=u(()=>e(st)+(e(z)>0?e(z)+4:0));function Te(){const ne=e(he),pt=e(je);N(st,ne?Math.max(0,ne.scrollWidth-ne.clientWidth):0,!0),N(z,ne&&pt&&pt.getClientRects().length>0?Math.max(0,ne.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}Ct(()=>{const ne=e(he),pt=e(Le),Dt=e(je);if(!ne||!pt||(Te(),typeof ResizeObserver>"u"))return;const mr=new ResizeObserver(Te);return mr.observe(ne),mr.observe(pt),Dt&&mr.observe(Dt),()=>mr.disconnect()});let Ge=null,ve=null,P=!1,j=!1,me=!1,qe=!1,Ce=!1,Ve=!1,ee=we(!1),ke=!1,at=null,et=we(null),gt=null,He;function ht(){Ge!==null&&(clearTimeout(Ge),Ge=null)}function ot(){ve!==null&&(clearTimeout(ve),ve=null),gt?.(),gt=null}function vt(){ot(),N(ee,!0),N(ce,!0),!Ce&&(Ce=!0,es.notifyOpened())}function ft(){ot(),clearTimeout(He),N(ee,!1),N(ce,!1),j=!1,qe=!1,Ce&&(Ce=!1,es.notifyClosed())}function Pt(){return P||j||me||qe}function At(){if(!e(ce)){ft();return}ot(),ve=setTimeout(()=>{ve=null,Pt()||ft()},Bm),gt=es.deferClose(ft)}function Zt(){j=!0,ot()}function xt(){j=!1,!me&&!qe&&At()}function zt(){qe=!0,clearTimeout(He),ot()}function er(ne){const pt=ne.relatedTarget instanceof Node?ne.relatedTarget:null;if(pt&&le()?.contains(pt)||(qe=!1,pt&&e(_e)?.contains(pt)))return;if(pt){!P&&!j&&ft();return}const Dt=ne.target;clearTimeout(He),He=setTimeout(()=>{const mr=document.activeElement,yr=le()?.contains(mr)||e(_e)?.contains(mr);mr&&mr!==Dt&&yr||!P&&!j&&ft()},0)}function St(){at!==null&&clearTimeout(at),ke=!0,at=setTimeout(()=>{ke=!1,at=null},0)}function Gt(ne){const pt=ne.target,Dt=le();pt instanceof Node&&Dt?.contains(pt)||ne.type==="scroll"&&e(_e)&&pt instanceof Node&&!pt.contains(e(_e))||(ne.type==="pointerdown"&&St(),ht(),ft())}Ct(()=>{if(e(ee))return window.addEventListener("pointerdown",Gt,!0),window.addEventListener("scroll",Gt,!0),()=>{window.removeEventListener("pointerdown",Gt,!0),window.removeEventListener("scroll",Gt,!0)}});function Ot(ne){if(ne.key!=="Escape")return;const pt=ne.target;pt instanceof Node&&le()?.contains(pt)||(ne.preventDefault(),ne.stopPropagation(),Ve=me,ht(),ft())}Ct(()=>{if(e(ce))return window.addEventListener("keydown",Ot,!0),()=>window.removeEventListener("keydown",Ot,!0)});const pe=u(()=>f()?lp.select(Mt.state,f().id):null),re=u(()=>e(pe)?e(pe):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:m.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ue=u(()=>ip(f())),rt=u(()=>{if(!f()||e(Ue))return[];const ne=f(),pt=ne.repositoryOwner&&ne.repositoryName?`${ne.repositoryOwner}/${ne.repositoryName}`:void 0;return Op({workspacePRs:ne.pullRequests,activePR:e(re),monitors:n(),workspaceRepo:pt,buildPrUrl:(Dt,mr)=>gv(Dt,ne.repositoryOwner,ne.repositoryName,mr),getDisplayTitle:Dt=>Dt.title})}),lt=u(()=>e(rt)[0]);function Oe(ne){const pt=ne.resource?.repository.provider==="gitlab"?`${ne.repo} !${ne.number}`:ne.repo?m.workspace_card_prBadge_repoLine_tooltip({repo:ne.repo,number:ne.number}):m.workspace_card_prBadge_label({number:` #${ne.number}`});return[cp(pt,ne),ne.title,ne.details].filter(Boolean).join(`
259
259
  `)}function se(ne){ne.key==="Enter"&&X()?.(ne)}function le(){return e(q)?document.getElementById(e(q)):null}function ae(){return Array.from(le()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function be(){const ne=e(_e)?.querySelector("[data-workspace-card-trigger]"),pt=le();if(!ne||!pt)return null;const Dt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(yr=>yr.tabIndex>=0&&!pt.contains(yr)),mr=Dt.indexOf(ne);return mr>=0?Dt[mr+1]:null}function xe(ne){Ve=!!e(_e)?.contains(ne),ft(),ne.focus({preventScroll:!0})}function Be(){const ne=e(_e)?.querySelector("[data-workspace-card-trigger]");ne&&xe(ne)}async function Re(ne){if(ne.key==="Escape"&&e(ce)){ne.preventDefault(),ne.stopPropagation(),ft();return}ne.key!=="ArrowDown"||$()||!f()||(ne.preventDefault(),ne.stopPropagation(),N(ee,!0),N(ce,!0),await Zn(),ae()[0]?.focus({preventScroll:!0}))}function Ze(ne){const pt=ae(),Dt=ne.key==="Tab"&&ne.shiftKey&&ne.currentTarget===pt[0],yr=ne.key==="Tab"&&!ne.shiftKey&&ne.currentTarget===pt.at(-1)?be():null;ne.key!=="Escape"&&!Dt&&!yr||(ne.preventDefault(),ne.stopPropagation(),yr?xe(yr):Be())}function Je(){P=!0,ot(),es.settleDeferredCloses(),Te(),ge()?.(),f()&&!$()&&!me&&(ht(),N(ee,!0),Ge=setTimeout(()=>{Ge=null,vt()},es.currentOpenDelay))}function De(){P=!1,ht(),!me&&!qe&&At()}function Fe(){me=!0,ht(),ot(),!Ve&&(ke||f()&&!$()&&(N(ee,!0),N(ce,!0)))}function We(ne){const pt=ne.relatedTarget instanceof Node?ne.relatedTarget:null;pt&&e(_e)?.contains(pt)||(Ve=!1,me=!1,!(pt&&le()?.contains(pt))&&!P&&!j&&ft())}Ct(()=>{$()&&(ht(),ot(),ft())});let Qe=we(null),ut=we(!1),ct;Ct(()=>{const ne=f()?.id;ct!==ne&&(ct=ne,N(ut,!1)),e(Qe)&&e(Qe).workspaceId!==f()?.id&&wt()});function dt(ne){if(!f())return;const pt=Mc(ne);if(pt){if(N(ut,!1),bt().length===0){N(Qe,null);return}N(Qe,{...pt,returnFocus:ne.target instanceof HTMLElement?ne.target.closest("button")??e(_e)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function wt(){N(Qe,null),N(ut,!1)}Ct(()=>{e(ut)&&N(Qe,null)}),fs(()=>{ht(),ot(),at!==null&&(clearTimeout(at),at=null),ft()});function bt(){if(!f())return[];const ne=[];return Z()&&ne.push({id:"open-new-window",label:m.workspace_card_openNewWindow_label(),icon:jc,onClick:()=>{Z()?.(),wt()}}),ne.push(...Dm(f().id,{connected:a(),onClose:wt})),s()||(e(Ue)||ne.push({id:"transfer",label:m.workspace_card_transfer_label(),icon:Qp,onClick:()=>{Mt.dispatch(xg({workspaceId:f().id,workspaceTitle:f().title})),wt()}}),ne.push({id:"archive",label:m.workspace_card_archive_label(),icon:Wc,onClick:()=>{Mt.dispatch(ed(f().id)),wt()}}),ne.push({id:"delete",label:m.workspace_card_deleteSpace_label(),icon:Uc,destructive:!0,onClick:()=>{Mt.dispatch(td(f().id)),wt()}})),ne}let Rt=u(()=>O()&&D()?D():i()?.subtitle??""),Jt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),tr=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Yt=u(()=>e(Ue)?void 0:K()),Fr=u(()=>!p()||e(Ue)?"":p().pr.hasMerged?m.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?m.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),Zr=u(()=>i()?.phase==="planning"?O()?{primary:{label:m.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:m.workspace_card_pause_label(),action:"pause"}}:B()||(p()?.tasks.total??0)>0?{primary:{label:m.workspace_card_approveStart_label(),action:"approve"},secondary:{label:m.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:m.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:m.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:m.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:m.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:m.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:m.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:m.workspace_card_archive_label(),action:"archive"},secondary:{label:m.workspace_card_showChanges_label(),action:"show-changes"}});const un={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var In={get workspace(){return f()},set workspace(ne){f(ne),_()},get phase(){return i()},set phase(ne){i(ne),_()},get stats(){return p()},set stats(ne){p(ne),_()},get variant(){return g()},set variant(ne="compact"){g(ne),_()},get showTime(){return L()},set showTime(ne=!0){L(ne),_()},get isRunning(){return b()},set isRunning(ne=!1){b(ne),_()},get isUnread(){return h()},set isUnread(ne=!1){h(ne),_()},get isWaiting(){return A()},set isWaiting(ne){A(ne),_()},get isPinned(){return T()},set isPinned(ne=!1){T(ne),_()},get streamingAgentIds(){return H()},set streamingAgentIds(ne=[]){H(ne),_()},get hasSpec(){return B()},set hasSpec(ne=!1){B(ne),_()},get isAgentRunning(){return O()},set isAgentRunning(ne=!1){O(ne),_()},get agentDigest(){return D()},set agentDigest(ne){D(ne),_()},get trailingLabel(){return U()},set trailingLabel(ne){U(ne),_()},get title(){return C()},set title(ne){C(ne),_()},get repoName(){return F()},set repoName(ne){F(ne),_()},get branch(){return K()},set branch(ne){K(ne),_()},get onClick(){return X()},set onClick(ne){X(ne),_()},get onAction(){return de()},set onAction(ne){de(ne),_()},get onTogglePin(){return Pe()},set onTogglePin(ne){Pe(ne),_()},get onMarkAsRead(){return ue()},set onMarkAsRead(ne){ue(ne),_()},get onOpenInNewWindow(){return Z()},set onOpenInNewWindow(ne){Z(ne),_()},get onHover(){return ge()},set onHover(ne){ge(ne),_()},get highlighted(){return Me()},set highlighted(ne=!1){Me(ne),_()},get selected(){return G()},set selected(ne=!1){G(ne),_()},get highlightId(){return fe()},set highlightId(ne){fe(ne),_()},get suppressHover(){return $()},set suppressHover(ne=!1){$(ne),_()},get isolateHoverReveal(){return Ae()},set isolateHoverReveal(ne=!1){Ae(ne),_()},get class(){return Se()},set class(ne){Se(ne),_()},get actions(){return Ie()},set actions(ne){Ie(ne),_()},$set:jt,$on:(ne,pt)=>Wt(t,ne,pt)},nn=kt(),Un=ze(nn);{var hn=ne=>{var pt=g0(),Dt=ze(pt);let mr;var yr=S(Dt);{let Ee=u(()=>f().title||m.workspace_links_untitled_label()),nt=u(()=>`workspace-status-state-${f().id}${T()?` workspace-pinned-state-${f().id}`:""}${e(ce)?` ${e(q)}`:""}`),Qt=u(()=>e(V)?"page":void 0);yt(yr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(Ee)},get"aria-describedby"(){return e(nt)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:Re,onclick:Nt=>{Nt.stopPropagation(),X()?.(Nt)}})}var bn=v(yr,2),Nr=S(bn);{var Sn=Ee=>{var nt=s0(),Qt=S(nt);{var Nt=rr=>{hu(rr,{get workspaceId(){return f().id},get slot(){return o()}})};M(Qt,rr=>{o()!==null&&rr(Nt)})}w(nt),d(Ee,nt)};M(Nr,Ee=>{a()&&Ee(Sn)})}var qn=v(Nr,2);No(qn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(Ee,nt)=>{Nm(Ee,{get status(){return e(tt)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var $n=v(qn,2),ea=R($n,!0);w(bn);var qr=v(bn,2),yn=S(qr),or=S(yn),an=S(or),Vn=R(an,!0);gr(an,Ee=>N(Le,Ee),()=>e(Le)),w(or),gr(or,Ee=>N(he,Ee),()=>e(he));var _r=v(or,2);{var Tr=Ee=>{var nt=o0(),Qt=ze(nt),Nt=S(Qt);Et(Nt,{get icon(){return el},size:"xs"}),w(Qt);var rr=v(Qt,2),Sr=R(rr,!0);k(Cn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
260
- ${Pe()?Me()?"opacity-0":$()?"":Ae()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),oe(rr,"id",`workspace-pinned-state-${f().id??""}`),x(Sr,Cn)},[()=>m.layout_activeCard_pinned_header()]),d(Ee,nt)};M(_r,Ee=>{T()&&Ee(Tr)})}w(yn);var sn=v(yn,2);{var sa=Ee=>{var nt=i0(),Qt=R(nt,!0);k(()=>x(Qt,U())),d(Ee,nt)};M(sn,Ee=>{U()&&Ee(sa)})}var Qr=v(sn,2);{var Vr=Ee=>{const nt=u(()=>e(lt));var Qt=c0(),Nt=S(Qt);{let rr=u(()=>Oe(e(nt)));No(Nt,{get content(){return e(rr)},side:"bottom",sideOffset:4,children:(Sr,Cn)=>{var Kn=kt(),_n=ze(Kn);{var xr=Hr=>{{let wr=u(()=>Oe(e(nt)));yt(Hr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(nt).foregroundClass??""}`},get"aria-label"(){return e(wr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(nt).identity},get"data-pr-status"(){return e(nt).status},onclick:on=>{on.stopPropagation();const jr=f().id;Of(async()=>{const{handleLink:$r}=await import("./172GvQgx.js").then(Gn=>Gn.V);return{handleLink:$r}},__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]),import.meta.url).then(({handleLink:$r})=>$r(e(nt).url,{workspaceId:jr,event:on}))},children:(on,jr)=>{Et(on,{get icon(){return e(nt).statusIcon},size:14})},$$slots:{default:!0}})}},zr=Hr=>{var wr=l0(),on=S(wr);Et(on,{get icon(){return e(nt).statusIcon},size:14}),w(wr),k(jr=>{mt(wr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(nt).foregroundClass??""}`,"svelte-1ct56pd"),oe(wr,"aria-label",jr),oe(wr,"data-pr-identity",e(nt).identity),oe(wr,"data-pr-status",e(nt).status)},[()=>Oe(e(nt))]),d(Hr,wr)};M(_n,Hr=>{e(nt).url?Hr(xr):Hr(zr,-1)})}d(Sr,Kn)},$$slots:{default:!0}})}w(Qt),k(rr=>oe(Qt,"aria-label",rr),[()=>e(nt).resource?.repository.provider==="gitlab"?m.workspace_hoverCard_mergeRequest_label():m.workspace_hoverCard_pullRequest_label()]),d(Ee,Qt)};M(Qr,Ee=>{e(lt)&&Ee(Vr)})}var Cr=v(Qr,2);{var On=Ee=>{var nt=d0(),Qt=S(nt);{var Nt=Sr=>{{let Cn=u(()=>sl(f()));hp(Sr,{get date(){return e(Cn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},rr=u(()=>sl(f())>0);M(Qt,Sr=>{e(rr)&&Sr(Nt)})}w(nt),k(()=>mt(nt,1,`wc-secondary shrink-0 ${Ie()||Pe()||h()&&ue()?Me()?"opacity-0":$()?"":Ae()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Ee,nt)};M(Cr,Ee=>{L()&&Ee(On)})}w(qr);var pa=v(qr,2);{var _a=Ee=>{var nt=f0(),Qt=S(nt);{var Nt=xr=>{{let zr=u(()=>T()?"text-primary-ink":"text-muted-foreground"),Hr=u(()=>T()?m.workspace_card_unpin_ariaLabel():m.workspace_card_pin_ariaLabel()),wr=u(()=>T()?m.workspace_card_unpin_tooltip():m.workspace_card_pin_tooltip());yt(xr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
260
+ ${Pe()?Me()?"opacity-0":$()?"":Ae()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),oe(rr,"id",`workspace-pinned-state-${f().id??""}`),x(Sr,Cn)},[()=>m.layout_activeCard_pinned_header()]),d(Ee,nt)};M(_r,Ee=>{T()&&Ee(Tr)})}w(yn);var sn=v(yn,2);{var sa=Ee=>{var nt=i0(),Qt=R(nt,!0);k(()=>x(Qt,U())),d(Ee,nt)};M(sn,Ee=>{U()&&Ee(sa)})}var Qr=v(sn,2);{var Vr=Ee=>{const nt=u(()=>e(lt));var Qt=c0(),Nt=S(Qt);{let rr=u(()=>Oe(e(nt)));No(Nt,{get content(){return e(rr)},side:"bottom",sideOffset:4,children:(Sr,Cn)=>{var Kn=kt(),_n=ze(Kn);{var xr=Hr=>{{let wr=u(()=>Oe(e(nt)));yt(Hr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(nt).foregroundClass??""}`},get"aria-label"(){return e(wr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(nt).identity},get"data-pr-status"(){return e(nt).status},onclick:on=>{on.stopPropagation();const jr=f().id;Of(async()=>{const{handleLink:$r}=await import("./Bpruhzz0.js").then(Gn=>Gn.V);return{handleLink:$r}},__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]),import.meta.url).then(({handleLink:$r})=>$r(e(nt).url,{workspaceId:jr,event:on}))},children:(on,jr)=>{Et(on,{get icon(){return e(nt).statusIcon},size:14})},$$slots:{default:!0}})}},zr=Hr=>{var wr=l0(),on=S(wr);Et(on,{get icon(){return e(nt).statusIcon},size:14}),w(wr),k(jr=>{mt(wr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(nt).foregroundClass??""}`,"svelte-1ct56pd"),oe(wr,"aria-label",jr),oe(wr,"data-pr-identity",e(nt).identity),oe(wr,"data-pr-status",e(nt).status)},[()=>Oe(e(nt))]),d(Hr,wr)};M(_n,Hr=>{e(nt).url?Hr(xr):Hr(zr,-1)})}d(Sr,Kn)},$$slots:{default:!0}})}w(Qt),k(rr=>oe(Qt,"aria-label",rr),[()=>e(nt).resource?.repository.provider==="gitlab"?m.workspace_hoverCard_mergeRequest_label():m.workspace_hoverCard_pullRequest_label()]),d(Ee,Qt)};M(Qr,Ee=>{e(lt)&&Ee(Vr)})}var Cr=v(Qr,2);{var On=Ee=>{var nt=d0(),Qt=S(nt);{var Nt=Sr=>{{let Cn=u(()=>sl(f()));hp(Sr,{get date(){return e(Cn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},rr=u(()=>sl(f())>0);M(Qt,Sr=>{e(rr)&&Sr(Nt)})}w(nt),k(()=>mt(nt,1,`wc-secondary shrink-0 ${Ie()||Pe()||h()&&ue()?Me()?"opacity-0":$()?"":Ae()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Ee,nt)};M(Cr,Ee=>{L()&&Ee(On)})}w(qr);var pa=v(qr,2);{var _a=Ee=>{var nt=f0(),Qt=S(nt);{var Nt=xr=>{{let zr=u(()=>T()?"text-primary-ink":"text-muted-foreground"),Hr=u(()=>T()?m.workspace_card_unpin_ariaLabel():m.workspace_card_pin_ariaLabel()),wr=u(()=>T()?m.workspace_card_unpin_tooltip():m.workspace_card_pin_tooltip());yt(xr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
261
261
  ${e(zr)??""}`},onclick:on=>{on.stopPropagation(),Pe()?.(on)},get"aria-label"(){return e(Hr)},get title(){return e(wr)},children:(on,jr)=>{var $r=u0(),Gn=S($r);Et(Gn,{get icon(){return el},size:"xs"}),w($r),d(on,$r)},$$slots:{default:!0}})}};M(Qt,xr=>{Pe()&&xr(Nt)})}var rr=v(Qt,2);{var Sr=xr=>{{let zr=u(()=>m.workspace_card_markAsRead_label()),Hr=u(()=>m.workspace_card_markAsRead_label());yt(xr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:wr=>{wr.stopPropagation(),ue()?.(wr)},get"aria-label"(){return e(zr)},get title(){return e(Hr)},children:(wr,on)=>{Et(wr,{get icon(){return qc},size:"xs"})},$$slots:{default:!0}})}};M(rr,xr=>{h()&&ue()&&xr(Sr)})}var Cn=v(rr,2);dn(Cn,()=>Ie()??Ms);var Kn=v(Cn,2);{var _n=xr=>{{let zr=u(bt),Hr=u(()=>m.workspace_progressCard_actions_ariaLabel());wi(xr,{get items(){return e(zr)},get ariaLabel(){return e(Hr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ut)},set open(wr){N(ut,wr,!0)}})}};M(Kn,xr=>{Z()&&xr(_n)})}w(nt),gr(nt,xr=>N(je,xr),()=>e(je)),k(()=>mt(nt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
262
262
  ${Ae()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
263
263
  ${Me()?"opacity-100":$()?"opacity-0":Ae()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Ee,nt)};M(pa,Ee=>{(Ie()||Z()||Pe()||h()&&ue())&&Ee(_a)})}w(Dt),gr(Dt,Ee=>N(_e,Ee),()=>e(_e)),Nn(Dt,(Ee,nt)=>ks?.(Ee,nt),()=>({id:fe()}));var Er=v(Dt,2);{var Mr=Ee=>{Fm(Ee,{get id(){return e(q)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(_e)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:xt,onfocusin:zt,onfocusout:er,children:(nt,Qt)=>{var Nt=p0(),rr=S(Nt);zm(rr,{get workspace(){return f()},get activeAgentIds(){return H()},onkeydown:Ze}),w(Nt),gr(Nt,Sr=>N(et,Sr),()=>e(et)),wn("pointerenter",Nt,Zt),wn("pointerleave",Nt,xt),Ar("focusin",Nt,zt),Ar("focusout",Nt,er),d(nt,Nt)},$$slots:{default:!0}})};M(Er,Ee=>{e(ce)&&!$()&&Ee(Mr)})}var W=v(Er,2);{var Ne=Ee=>{const nt=u(bt);var Qt=kt(),Nt=ze(Qt);{var rr=Sr=>{{let Cn=u(()=>e(Qe)?.x??0),Kn=u(()=>e(Qe)?.y??0),_n=u(()=>e(Qe)?.returnFocus),xr=u(()=>m.workspace_progressCard_actions_ariaLabel());Oc(Sr,{get x(){return e(Cn)},get y(){return e(Kn)},get returnFocus(){return e(_n)},get ariaLabel(){return e(xr)},get items(){return e(nt)},onClickOutside:wt})}};M(Nt,Sr=>{e(nt).length>0&&Sr(rr)})}d(Ee,Qt)};M(W,Ee=>{e(Qe)&&Ee(Ne)})}k((Ee,nt,Qt)=>{mt(Dt,1,Ee,"svelte-1ct56pd"),oe(Dt,"data-pinned",T()),oe(Dt,"data-highlight-id",fe()),mr=Mn(Dt,"",mr,{"anchor-name":`--workspace-list-${f().id??""}`}),oe($n,"id",`workspace-status-state-${f().id??""}`),x(ea,e(J).accessibleName),mt(or,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{g as Xt}from"./B5WfnJ_I.js";import{g as Qt}from"./B8N5zbP-.js";import{s as Zt}from"./CzK2fiHA.js";import{f as k,aZ as Jt,c8 as Mt,bC as $,aO as ke,aS as $t,bZ as e1,cx as rt,c7 as t1,c6 as s1,c9 as i1,aL as r1,aK as a1,aP as n1,a4 as u1,bB as o1,J as l1,bw as c1,aQ as st,c3 as it,a0 as h1,aw as d1,c0 as p1}from"./BHwB2t2J.js";import{c as f1}from"./CEiokx4X.js";import{aI as g1}from"./D6eVIgjz.js";import{c as b1}from"./BZXl3la6.js";var A1="flowchart-",Pe,k1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=t1,this.setAccDescription=s1,this.setDiagramTitle=i1,this.getAccTitle=r1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return u1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
1
+ import{g as Xt}from"./6CBvudM-.js";import{g as Qt}from"./BfS0Q-nX.js";import{s as Zt}from"./1iwlWivR.js";import{f as k,aZ as Jt,c8 as Mt,bC as $,aO as ke,aS as $t,bZ as e1,cx as rt,c7 as t1,c6 as s1,c9 as i1,aL as r1,aK as a1,aP as n1,a4 as u1,bB as o1,J as l1,bw as c1,aQ as st,c3 as it,a0 as h1,aw as d1,c0 as p1}from"./CQcnUt15.js";import{c as f1}from"./CHwcICZW.js";import{aI as g1}from"./Dj-i-4vt.js";import{c as b1}from"./Pd6GM4gY.js";var A1="flowchart-",Pe,k1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=t1,this.setAccDescription=s1,this.setDiagramTitle=i1,this.getAccTitle=r1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return u1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
2
2
  `)?u=m+`
3
3
  `:u=`{
4
4
  `+m+`
@@ -1 +1 @@
1
- import{t as Qe,bq as h,a_ as D,by as Ye,b as Ze,bs as ot,bo as k,bu as je}from"./COCO5InB.js";import{bo as nt,bs as $e,a7 as J,ay as y,aD as e,bS as L,W as c,a5 as Ie,bA as Pe,bH as z,bl as _e,b_ as oe,bO as de,bn as et,bf as ze,bV as Me,aA as v,c9 as w,aB as X,be as st,b$ as it,bj as lt,cd as dt,ca as Ue,bk as ct}from"./B8o4lNgr.js";import{i as G}from"./DJu_D7ND.js";import{G2 as Ve,lQ as ut,sO as pt}from"./BjFoJgFv.js";import{aN as ft}from"./9JjZRepm.js";import{cj as ht}from"./DUT4V6mb.js";import{c as vt}from"./ChTqQfQN.js";import{i as Je,t as Le}from"./H2jLkRRS.js";import{v as gt}from"./Cdhgfy6h.js";import{d as _t}from"./B0Z-1lwJ.js";import{F as Se,at as mt,au as bt,cJ as Xe,aU as He,bb as kt,al as wt,ak as yt,cG as qe}from"./BDq7EC2K.js";import{n as K,w as At}from"./CJvhopKt.js";import{h as Ft,s as Re,a as Ne,k as Te,d as Wt}from"./Crs9I2MT.js";import{s as xt}from"./Dck4Okga.js";import{f as Ct,ai as It,aW as Pt}from"./C5Xi5eLp.js";import"./BlJs0v1V.js";import{c as Q}from"./oALOmsvi.js";import{a as Dt,r as Mt}from"./Bn4hj7HG.js";import{M as Ot,t as Be}from"./1jz3AJ7K.js";import{o as Ge,r as Et,q as St,R as Rt,p as Nt,n as Tt,j as Bt,l as jt}from"./bjkNeafo.js";var zt=X('<img alt="" class="size-4"/>'),Ut=X('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Vt=X("<span> </span>"),Jt=X('<span data-menu-action-detail=""> </span>'),Lt=X('<span aria-hidden="true"><!></span>'),Ke=X("<!> <!> <!>",1),Xt=X('<div class="my-1 h-px bg-border" role="separator"></div>'),De=X("<!> <!>",1),Ht=X('<!> <p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>',1),qt=X('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Gt=X('<p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>'),Kt=X('<div class="pl-4"><!> <!></div>'),Qt=X('<span class="sr-only"> </span>');function me(be,d){const ke=nt();if(new.target)return Qe({component:me,...be});$e(d,!0);const xe=(p,r=ze)=>{var O=J(),E=y(O);{var U=W=>{const C=w(()=>Dt(r().editor));var V=J(),m=y(V);{var f=s=>{var i=zt();oe(()=>Re(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=J(),b=y(i);Q(b,()=>e(C),(N,ae)=>{ae(N,{size:16})}),c(s,i)},R=s=>{{let i=w(()=>Mt(r().editor.category));Se(s,{get icon(){return e(i)},size:16})}};D(m,s=>{r().editor.iconBase64?s(f):e(C)?s(o,1):s(R,-1)})}c(W,V)},S=W=>{var C=J(),V=y(C);xt(V,()=>r().iconSnippet),c(W,C)},q=W=>{{let C=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Se(W,{get icon(){return r().icon},get weight(){return H()},size:16,get class(){return e(C)}})}};D(E,W=>{r().editor?W(U):r().iconSnippet?W(S,1):r().icon&&W(q,2)})}c(p,O)},ne=(p,r=ze)=>{var O=Ke(),E=y(O);{var U=m=>{var f=Ut(),o=Ie(f),R=_e(o,!0);Ne(o,(b,N)=>Be?.(b,N),()=>r().label);var s=L(o,2),i=_e(s,!0);Pe(f),oe(()=>{de(R,r().label),de(i,r().disabledReason)}),c(m,f)},S=m=>{var f=Vt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().label),oe(()=>{Te(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};D(E,m=>{r().disabledReason?m(U):m(S,-1)})}var q=L(E,2);{var W=m=>{var f=Jt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().detail),oe(()=>{Te(f,1,`ml-4 min-w-0 truncate ${r().detailTone==="danger"?"text-danger":"text-muted-foreground"}`),de(o,r().detail)}),c(m,f)};D(q,m=>{r().detail&&m(W)})}var C=L(q,2);{var V=m=>{var f=Lt(),o=Ie(f);It(o,{children:(R,s)=>{st();var i=it();oe(b=>de(i,b),[()=>Pt(r().shortcut)]),c(R,i)},$$slots:{default:!0}}),Pe(f),oe(()=>Te(f,1,Wt(M()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};D(C,m=>{r().shortcut&&m(V)})}c(p,O)};let we=h(d,"actions",7),M=h(d,"menu",7),H=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Me(null);function Y(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return M()},set menu(p){M(p),v()},get iconWeight(){return H()},set iconWeight(p){H(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Ye,$on:(p,r)=>Ze(d,p,r)},se=J(),ie=y(se);return Ft(ie,17,we,p=>p.id,(p,r)=>{const O=i=>{xe(i,()=>e(r))},E=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),U=w(()=>e(r).disabled||e(r).disabledReason!==void 0),S=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Ke(),W=y(q);{var C=i=>{var b=J(),N=y(b);{var ae=a=>{var n=J(),g=y(n);Q(g,()=>Ge,(x,P)=>{P(x,{})}),c(a,n)},ue=a=>{var n=Xt();c(a,n)};D(N,a=>{M()?a(ae):a(ue,-1)})}c(i,b)};D(W,i=>{e(r).dividerBefore&&i(C)})}var V=L(W,2);{var m=i=>{var b=J(),N=y(b);{var ae=g=>{var x=J(),P=y(x);Q(P,()=>Nt,(I,T)=>{T(I,{children:(B,Z)=>{var $=De(),pe=y($);{let te=w(()=>e(E)?O:void 0);Q(pe,()=>Et,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=L(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Q(ee,()=>St,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=De(),l=y(t);{var _=re=>{var Ae=De(),Fe=y(Ae);{let We=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Q(Fe,()=>Rt,(ge,Ee)=>{Ee(ge,{get value(){return e(We)},get"aria-label"(){return e(r).label},children:(tt,Zt)=>{{let rt=w(()=>e(r).submenu.filter(at=>at.checked!==void 0));me(tt,{get actions(){return e(rt)},selection:"single",get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var Ce=L(Fe,2);{let We=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(Ce,{get actions(){return e(We)},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}c(re,Ae)},j=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})};D(l,re=>{e(r).selection==="single"?re(_):re(j,-1)})}var le=L(l,2);{var Oe=re=>{var Ae=Ht(),Fe=y(Ae);Q(Fe,()=>Ge,(ge,Ee)=>{Ee(ge,{})});var Ce=L(Fe,2),We=_e(Ce,!0);oe(()=>{Re(Ce,"id",`${ke}-${e(r).id}-note`),de(We,e(r).note)}),c(re,Ae)};D(le,re=>{e(r).note&&re(Oe)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,x)},ue=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Tt,(T,B)=>{B(T,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},a=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Bt,(T,B)=>{B(T,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},n=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0),T=w(()=>e(r).variant==="destructive");Q(P,()=>jt,(B,Z)=>{Z(B,{get leading(){return e(I)},get destructive(){return e(T)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,x)};D(N,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})},o=i=>{var b=De(),N=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);Ct(N,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?z(F,e(F)===e(r).id?null:e(r).id,!0):Y(e(r)),children:(g,x)=>{var P=qt(),I=y(P),T=Ie(I);xe(T,()=>e(r)),Pe(I);var B=L(I,2);ne(B,()=>e(r));var Z=L(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?mt:bt);Se(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=J(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Q(fe,()=>Ot,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};D(Z,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=L(N,2);{var ue=a=>{var n=Kt(),g=Ie(n);me(g,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}});var x=L(g,2);{var P=I=>{var T=Gt(),B=_e(T,!0);oe(()=>de(B,e(r).note)),c(I,T)};D(x,I=>{e(r).note&&I(P)})}Pe(n),c(a,n)};D(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};D(V,i=>{M()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var R=L(V,2);{var s=i=>{var b=Qt(),N=_e(b,!0);oe(()=>{Re(b,"id",e(S)),de(N,e(r).disabledReason)}),c(i,b)};D(R,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),et(ce)}function Yt(be,d){if(new.target)return Qe({component:Yt,...be});$e(d,!0);const ke=()=>je(N,"$installedEditors$",ne),xe=()=>je(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=ot();let M=h(d,"layout",7,"list"),H=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Y=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),O=h(d,"showArchiveOption",7,!1),E=h(d,"showPathCopy",7,!0),U=h(d,"showFileNameCopy",7,!1),S=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),C=h(d,"isWorkspaceRoot",7,!1),V=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=vt("WorkspaceActionsMenu");let R=!1;lt(()=>{R=!0});function s(){R||p()?.()}const i=gt("externalEditors"),b=dt(A());Ue(()=>{b.set(A())});const N=ft(b),ae=w(ke),ue=ht(b);let a=Me(""),n=Me(""),g=Me(!1);ct(()=>{Ve.dispatch(ut())}),Ue(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,j=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(j){const le=j.replace(/\\/g,"/");C()?z(a,le,!0):Je(u())?z(a,u().replace(/\\/g,"/"),!0):z(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),z(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:j,resolvedPath:e(a)})}else z(a,u()),z(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else z(a,u()),z(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{z(a,u()),z(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(z(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function x(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!C()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ve.dispatch(pt(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function T(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await x();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Z(){if(e(a))try{await navigator.clipboard.writeText(Le(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Je(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Le(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Y()&&(Y()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){z(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const j=await G("file:delete",{path:l,workspaceId:A()});if(j?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),At({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),_t("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Oe){o.error("[WorkspaceActionsMenu] Failed to restore file",Oe),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:j?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{z(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];S()&&(i&&xe()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:Xe,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{T(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:Xe,onClick:()=>{B()}}]}),E()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:He,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Z()}}),E()&&!C()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:He,disabled:!u(),onClick:()=>{$()}}),U()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:kt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(j=>({...j,submenu:j.submenu?l(j.submenu):void 0,onClick:()=>{j.onClick(),s()}}));return t.push(...l(V())),O()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?wt:yt,dividerBefore:t.length>0,onClick:fe}),r()&&Y()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:qe,variant:"destructive",dividerBefore:t.length>0,onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:qe,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return M()},set layout(t="list"){M(t),v()},get iconWeight(){return H()},set iconWeight(t){H(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Y()},set onDelete(t=void 0){Y(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return O()},set showArchiveOption(t=!1){O(t),v()},get showPathCopy(){return E()},set showPathCopy(t=!0){E(t),v()},get showFileNameCopy(){return U()},set showFileNameCopy(t=!1){U(t),v()},get showFileActions(){return S()},set showFileActions(t=!0){S(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return C()},set isWorkspaceRoot(t=!1){C(t),v()},get additionalActions(){return V()},set additionalActions(t=[]){V(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Ye,$on:(t,l)=>Ze(d,t,l)};{let t=w(()=>M()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return H()}})}var ye=et(ve);return we(),ye}export{Yt as default};
1
+ import{t as Qe,bq as h,a_ as D,by as Ye,b as Ze,bs as ot,bo as k,bu as je}from"./COCO5InB.js";import{bo as nt,bs as $e,a7 as J,ay as y,aD as e,bS as L,W as c,a5 as Ie,bA as Pe,bH as z,bl as _e,b_ as oe,bO as de,bn as et,bf as ze,bV as Me,aA as v,c9 as w,aB as X,be as st,b$ as it,bj as lt,cd as dt,ca as Ue,bk as ct}from"./B8o4lNgr.js";import{i as G}from"./DJu_D7ND.js";import{G2 as Ve,lQ as ut,sO as pt}from"./BjFoJgFv.js";import{aN as ft}from"./BqJHaeQw.js";import{cj as ht}from"./DUT4V6mb.js";import{c as vt}from"./ChTqQfQN.js";import{i as Je,t as Le}from"./H2jLkRRS.js";import{v as gt}from"./Cdhgfy6h.js";import{d as _t}from"./B0Z-1lwJ.js";import{F as Se,at as mt,au as bt,cJ as Xe,aU as He,bb as kt,al as wt,ak as yt,cG as qe}from"./BDq7EC2K.js";import{n as K,w as At}from"./CJvhopKt.js";import{h as Ft,s as Re,a as Ne,k as Te,d as Wt}from"./Crs9I2MT.js";import{s as xt}from"./Dck4Okga.js";import{f as Ct,ai as It,aW as Pt}from"./C5Xi5eLp.js";import"./BlJs0v1V.js";import{c as Q}from"./oALOmsvi.js";import{a as Dt,r as Mt}from"./BMoKffXR.js";import{M as Ot,t as Be}from"./1jz3AJ7K.js";import{o as Ge,r as Et,q as St,R as Rt,p as Nt,n as Tt,j as Bt,l as jt}from"./bjkNeafo.js";var zt=X('<img alt="" class="size-4"/>'),Ut=X('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Vt=X("<span> </span>"),Jt=X('<span data-menu-action-detail=""> </span>'),Lt=X('<span aria-hidden="true"><!></span>'),Ke=X("<!> <!> <!>",1),Xt=X('<div class="my-1 h-px bg-border" role="separator"></div>'),De=X("<!> <!>",1),Ht=X('<!> <p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>',1),qt=X('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Gt=X('<p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>'),Kt=X('<div class="pl-4"><!> <!></div>'),Qt=X('<span class="sr-only"> </span>');function me(be,d){const ke=nt();if(new.target)return Qe({component:me,...be});$e(d,!0);const xe=(p,r=ze)=>{var O=J(),E=y(O);{var U=W=>{const C=w(()=>Dt(r().editor));var V=J(),m=y(V);{var f=s=>{var i=zt();oe(()=>Re(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=J(),b=y(i);Q(b,()=>e(C),(N,ae)=>{ae(N,{size:16})}),c(s,i)},R=s=>{{let i=w(()=>Mt(r().editor.category));Se(s,{get icon(){return e(i)},size:16})}};D(m,s=>{r().editor.iconBase64?s(f):e(C)?s(o,1):s(R,-1)})}c(W,V)},S=W=>{var C=J(),V=y(C);xt(V,()=>r().iconSnippet),c(W,C)},q=W=>{{let C=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Se(W,{get icon(){return r().icon},get weight(){return H()},size:16,get class(){return e(C)}})}};D(E,W=>{r().editor?W(U):r().iconSnippet?W(S,1):r().icon&&W(q,2)})}c(p,O)},ne=(p,r=ze)=>{var O=Ke(),E=y(O);{var U=m=>{var f=Ut(),o=Ie(f),R=_e(o,!0);Ne(o,(b,N)=>Be?.(b,N),()=>r().label);var s=L(o,2),i=_e(s,!0);Pe(f),oe(()=>{de(R,r().label),de(i,r().disabledReason)}),c(m,f)},S=m=>{var f=Vt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().label),oe(()=>{Te(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};D(E,m=>{r().disabledReason?m(U):m(S,-1)})}var q=L(E,2);{var W=m=>{var f=Jt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().detail),oe(()=>{Te(f,1,`ml-4 min-w-0 truncate ${r().detailTone==="danger"?"text-danger":"text-muted-foreground"}`),de(o,r().detail)}),c(m,f)};D(q,m=>{r().detail&&m(W)})}var C=L(q,2);{var V=m=>{var f=Lt(),o=Ie(f);It(o,{children:(R,s)=>{st();var i=it();oe(b=>de(i,b),[()=>Pt(r().shortcut)]),c(R,i)},$$slots:{default:!0}}),Pe(f),oe(()=>Te(f,1,Wt(M()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};D(C,m=>{r().shortcut&&m(V)})}c(p,O)};let we=h(d,"actions",7),M=h(d,"menu",7),H=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Me(null);function Y(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return M()},set menu(p){M(p),v()},get iconWeight(){return H()},set iconWeight(p){H(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Ye,$on:(p,r)=>Ze(d,p,r)},se=J(),ie=y(se);return Ft(ie,17,we,p=>p.id,(p,r)=>{const O=i=>{xe(i,()=>e(r))},E=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),U=w(()=>e(r).disabled||e(r).disabledReason!==void 0),S=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Ke(),W=y(q);{var C=i=>{var b=J(),N=y(b);{var ae=a=>{var n=J(),g=y(n);Q(g,()=>Ge,(x,P)=>{P(x,{})}),c(a,n)},ue=a=>{var n=Xt();c(a,n)};D(N,a=>{M()?a(ae):a(ue,-1)})}c(i,b)};D(W,i=>{e(r).dividerBefore&&i(C)})}var V=L(W,2);{var m=i=>{var b=J(),N=y(b);{var ae=g=>{var x=J(),P=y(x);Q(P,()=>Nt,(I,T)=>{T(I,{children:(B,Z)=>{var $=De(),pe=y($);{let te=w(()=>e(E)?O:void 0);Q(pe,()=>Et,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=L(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Q(ee,()=>St,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=De(),l=y(t);{var _=re=>{var Ae=De(),Fe=y(Ae);{let We=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Q(Fe,()=>Rt,(ge,Ee)=>{Ee(ge,{get value(){return e(We)},get"aria-label"(){return e(r).label},children:(tt,Zt)=>{{let rt=w(()=>e(r).submenu.filter(at=>at.checked!==void 0));me(tt,{get actions(){return e(rt)},selection:"single",get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var Ce=L(Fe,2);{let We=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(Ce,{get actions(){return e(We)},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}c(re,Ae)},j=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})};D(l,re=>{e(r).selection==="single"?re(_):re(j,-1)})}var le=L(l,2);{var Oe=re=>{var Ae=Ht(),Fe=y(Ae);Q(Fe,()=>Ge,(ge,Ee)=>{Ee(ge,{})});var Ce=L(Fe,2),We=_e(Ce,!0);oe(()=>{Re(Ce,"id",`${ke}-${e(r).id}-note`),de(We,e(r).note)}),c(re,Ae)};D(le,re=>{e(r).note&&re(Oe)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,x)},ue=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Tt,(T,B)=>{B(T,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},a=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Bt,(T,B)=>{B(T,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},n=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0),T=w(()=>e(r).variant==="destructive");Q(P,()=>jt,(B,Z)=>{Z(B,{get leading(){return e(I)},get destructive(){return e(T)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,x)};D(N,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})},o=i=>{var b=De(),N=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);Ct(N,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?z(F,e(F)===e(r).id?null:e(r).id,!0):Y(e(r)),children:(g,x)=>{var P=qt(),I=y(P),T=Ie(I);xe(T,()=>e(r)),Pe(I);var B=L(I,2);ne(B,()=>e(r));var Z=L(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?mt:bt);Se(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=J(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Q(fe,()=>Ot,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};D(Z,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=L(N,2);{var ue=a=>{var n=Kt(),g=Ie(n);me(g,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}});var x=L(g,2);{var P=I=>{var T=Gt(),B=_e(T,!0);oe(()=>de(B,e(r).note)),c(I,T)};D(x,I=>{e(r).note&&I(P)})}Pe(n),c(a,n)};D(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};D(V,i=>{M()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var R=L(V,2);{var s=i=>{var b=Qt(),N=_e(b,!0);oe(()=>{Re(b,"id",e(S)),de(N,e(r).disabledReason)}),c(i,b)};D(R,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),et(ce)}function Yt(be,d){if(new.target)return Qe({component:Yt,...be});$e(d,!0);const ke=()=>je(N,"$installedEditors$",ne),xe=()=>je(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=ot();let M=h(d,"layout",7,"list"),H=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Y=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),O=h(d,"showArchiveOption",7,!1),E=h(d,"showPathCopy",7,!0),U=h(d,"showFileNameCopy",7,!1),S=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),C=h(d,"isWorkspaceRoot",7,!1),V=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=vt("WorkspaceActionsMenu");let R=!1;lt(()=>{R=!0});function s(){R||p()?.()}const i=gt("externalEditors"),b=dt(A());Ue(()=>{b.set(A())});const N=ft(b),ae=w(ke),ue=ht(b);let a=Me(""),n=Me(""),g=Me(!1);ct(()=>{Ve.dispatch(ut())}),Ue(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,j=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(j){const le=j.replace(/\\/g,"/");C()?z(a,le,!0):Je(u())?z(a,u().replace(/\\/g,"/"),!0):z(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),z(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:j,resolvedPath:e(a)})}else z(a,u()),z(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else z(a,u()),z(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{z(a,u()),z(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(z(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function x(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!C()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ve.dispatch(pt(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function T(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await x();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Z(){if(e(a))try{await navigator.clipboard.writeText(Le(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Je(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Le(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Y()&&(Y()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){z(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const j=await G("file:delete",{path:l,workspaceId:A()});if(j?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),At({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),_t("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Oe){o.error("[WorkspaceActionsMenu] Failed to restore file",Oe),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:j?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{z(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];S()&&(i&&xe()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:Xe,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{T(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:Xe,onClick:()=>{B()}}]}),E()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:He,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Z()}}),E()&&!C()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:He,disabled:!u(),onClick:()=>{$()}}),U()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:kt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(j=>({...j,submenu:j.submenu?l(j.submenu):void 0,onClick:()=>{j.onClick(),s()}}));return t.push(...l(V())),O()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?wt:yt,dividerBefore:t.length>0,onClick:fe}),r()&&Y()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:qe,variant:"destructive",dividerBefore:t.length>0,onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:qe,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return M()},set layout(t="list"){M(t),v()},get iconWeight(){return H()},set iconWeight(t){H(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Y()},set onDelete(t=void 0){Y(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return O()},set showArchiveOption(t=!1){O(t),v()},get showPathCopy(){return E()},set showPathCopy(t=!0){E(t),v()},get showFileNameCopy(){return U()},set showFileNameCopy(t=!1){U(t),v()},get showFileActions(){return S()},set showFileActions(t=!0){S(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return C()},set isWorkspaceRoot(t=!1){C(t),v()},get additionalActions(){return V()},set additionalActions(t=[]){V(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Ye,$on:(t,l)=>Ze(d,t,l)};{let t=w(()=>M()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return H()}})}var ye=et(ve);return we(),ye}export{Yt as default};