@intent-hq/web 2.327.2 → 2.327.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 (242) hide show
  1. package/bin/intent-web.mjs +2 -0
  2. package/package.json +1 -1
  3. package/web/app/immutable/assets/{14.HorMMNG4.css → 14.CU62PBbE.css} +1 -1
  4. package/web/app/immutable/assets/16.DdJIHg9f.css +1 -0
  5. package/web/app/immutable/assets/ChatPanel.B73KM22O.css +1 -0
  6. package/web/app/immutable/assets/{16.CQiMfhJh.css → DockRecordingEditor.Cpd07eyT.css} +1 -1
  7. package/web/app/immutable/assets/conversation-turns.BHHyRLdd.css +1 -0
  8. package/web/app/immutable/chunks/{7k5ozo9c.js → -DqWFMjY.js} +1 -1
  9. package/web/app/immutable/chunks/{DvnDAxdo.js → 0rLfviYO.js} +1 -1
  10. package/web/app/immutable/chunks/{BV4AHhCq.js → 13JKYtK_.js} +1 -1
  11. package/web/app/immutable/chunks/{CAL5qbag.js → 4IYHA49l.js} +1 -1
  12. package/web/app/immutable/chunks/{C1TwLTiC.js → 4Zskc9_e.js} +1 -1
  13. package/web/app/immutable/chunks/{DQfuBwT8.js → 4mn3OQkh.js} +1 -1
  14. package/web/app/immutable/chunks/{BK3YE2GB.js → 5fWnBOdu.js} +1 -1
  15. package/web/app/immutable/chunks/{Ca3Yads8.js → 5lVDKMGV.js} +4 -4
  16. package/web/app/immutable/chunks/{Aw3-65IC.js → 95-CBX6k.js} +1 -1
  17. package/web/app/immutable/chunks/{fSndiqme.js → 9jHc2HrQ.js} +1 -1
  18. package/web/app/immutable/chunks/{CKjldRop.js → 9o72bVmU.js} +1 -1
  19. package/web/app/immutable/chunks/{Ou2B083h.js → 9xAB6iEw.js} +3 -3
  20. package/web/app/immutable/chunks/{BbEZgkca.js → A7QYlP8X.js} +2 -2
  21. package/web/app/immutable/chunks/{7rjdCDDK.js → B0J8YEPJ.js} +1 -1
  22. package/web/app/immutable/chunks/{DF5OSHTI.js → B3GFeWXU.js} +1 -1
  23. package/web/app/immutable/chunks/{DTOenBGo.js → B5JLqeOx.js} +1 -1
  24. package/web/app/immutable/chunks/{C-am1GTe.js → B6X5Wi93.js} +1 -1
  25. package/web/app/immutable/chunks/{B-LxAE4l.js → B6hQw8HR.js} +1 -1
  26. package/web/app/immutable/chunks/B7dOkBeu.js +1 -0
  27. package/web/app/immutable/chunks/{D4fSLYwV.js → B8AHyIcJ.js} +1 -1
  28. package/web/app/immutable/chunks/{Bhff3giG.js → B9k9ipWN.js} +1 -1
  29. package/web/app/immutable/chunks/{HpcR9-ZP.js → B9xeURWe.js} +1 -1
  30. package/web/app/immutable/chunks/{DeQzn7pT.js → BA1UhUwc.js} +7 -7
  31. package/web/app/immutable/chunks/{BXo80d0I.js → BAgeXgSf.js} +1 -1
  32. package/web/app/immutable/chunks/{Gh0Bk6WC.js → BBy57-xG.js} +1 -1
  33. package/web/app/immutable/chunks/{C9-oKvmU.js → BCc6fRgu.js} +1 -1
  34. package/web/app/immutable/chunks/{CypQ6Hrf.js → BEOwcfbQ.js} +1 -1
  35. package/web/app/immutable/chunks/{CLDLGPLG.js → BGT3aL1b.js} +1 -1
  36. package/web/app/immutable/chunks/BH7mKpum.js +1 -0
  37. package/web/app/immutable/chunks/{2Yr7qZy-.js → BJptJeKO.js} +1 -1
  38. package/web/app/immutable/chunks/{ChyK3c5O.js → BJqJJOp_.js} +1 -1
  39. package/web/app/immutable/chunks/{BxRFeUGV.js → BJyBc51V.js} +1 -1
  40. package/web/app/immutable/chunks/{D7NWkz7l.js → BL9TmjaL.js} +1 -1
  41. package/web/app/immutable/chunks/{D4wVqBkS.js → BLyZPAr5.js} +1 -1
  42. package/web/app/immutable/chunks/{C1vc2ZF2.js → BMtNlV8v.js} +1 -1
  43. package/web/app/immutable/chunks/{CqnfptVg.js → BOR1_TRO.js} +1 -1
  44. package/web/app/immutable/chunks/{CpOX1cm0.js → BRdBfY-O.js} +4 -4
  45. package/web/app/immutable/chunks/{XKfxOi0c.js → BRpgL-_J.js} +1 -1
  46. package/web/app/immutable/chunks/{C0AexULD.js → BS6nPK7B.js} +1 -1
  47. package/web/app/immutable/chunks/{DkPB5Gyi.js → BSVsWuXl.js} +1 -1
  48. package/web/app/immutable/chunks/{DAXKoZjm.js → BT5Z8Ufg.js} +1 -1
  49. package/web/app/immutable/chunks/{DCo2M5nt.js → BU_i_vpd.js} +1 -1
  50. package/web/app/immutable/chunks/{BvULLTwA.js → BUsZHo0X.js} +2 -2
  51. package/web/app/immutable/chunks/BX9t7Lu-.js +190 -0
  52. package/web/app/immutable/chunks/{DZzTUgIA.js → BY8Jls8O.js} +1 -1
  53. package/web/app/immutable/chunks/{jgNaB-mi.js → BZ9svoQk.js} +1 -1
  54. package/web/app/immutable/chunks/{CdlZ8r5v.js → BZKFinnt.js} +1 -1
  55. package/web/app/immutable/chunks/{Dmq2MLxr.js → BbOZc-at.js} +1 -1
  56. package/web/app/immutable/chunks/{D_TIL4Xc.js → Bc2kn6EH.js} +1 -1
  57. package/web/app/immutable/chunks/{M0UFWl_S.js → BdQCA_Nv.js} +1 -1
  58. package/web/app/immutable/chunks/BdWqymET.js +1 -0
  59. package/web/app/immutable/chunks/{_tv07_-D.js → Bdhho7CC.js} +1 -1
  60. package/web/app/immutable/chunks/{Bq9BF2kT.js → BfIdeT8L.js} +1 -1
  61. package/web/app/immutable/chunks/{Dd-c6aT7.js → BfWiwhpc.js} +1 -1
  62. package/web/app/immutable/chunks/{BerYBtY0.js → BgxXTSJ6.js} +1 -1
  63. package/web/app/immutable/chunks/{Q-FVgluz.js → Bjrk7UMZ.js} +1 -1
  64. package/web/app/immutable/chunks/{RgXiUiyX.js → BmIgxNuB.js} +1 -1
  65. package/web/app/immutable/chunks/{BJpbRkma.js → BoIGV7s7.js} +1 -1
  66. package/web/app/immutable/chunks/{D-YrUZis.js → Br_KUH7F.js} +1 -1
  67. package/web/app/immutable/chunks/{CuimWTUN.js → Bs5pujY-.js} +1 -1
  68. package/web/app/immutable/chunks/{BclymnXe.js → BtrIIAMB.js} +1 -1
  69. package/web/app/immutable/chunks/{C6LN2Lq-.js → Bv_0taxh.js} +1 -1
  70. package/web/app/immutable/chunks/{CDFRtA1F.js → Bw4y3_Ol.js} +1 -1
  71. package/web/app/immutable/chunks/{BOod2-vo.js → Bxub7VY-.js} +1 -1
  72. package/web/app/immutable/chunks/{B6ZEHAgn.js → BxxGMnsj.js} +1 -1
  73. package/web/app/immutable/chunks/BzV5CowC.js +1 -0
  74. package/web/app/immutable/chunks/{C5bHHEee.js → C3Gi_9p3.js} +1 -1
  75. package/web/app/immutable/chunks/{dinOFH6z.js → C4Tw7-py.js} +1 -1
  76. package/web/app/immutable/chunks/{Dr-K85Pz.js → C4xkBjNQ.js} +1 -1
  77. package/web/app/immutable/chunks/{CPzusSaQ.js → C58HgKcj.js} +1 -1
  78. package/web/app/immutable/chunks/{ewlOsRgS.js → C5MuNtit.js} +1 -1
  79. package/web/app/immutable/chunks/{D19QPbvx.js → C5PRf5_x.js} +3 -3
  80. package/web/app/immutable/chunks/{BbiJIN_E.js → C6DXM5lO.js} +1 -1
  81. package/web/app/immutable/chunks/{ColHxoku.js → C6bEmXfu.js} +4 -4
  82. package/web/app/immutable/chunks/{CNZwPZBB.js → C8PcVt0F.js} +1 -1
  83. package/web/app/immutable/chunks/{DhJNH_hq.js → C9ruBEtx.js} +1 -1
  84. package/web/app/immutable/chunks/{B4Rscrf6.js → CB_tD4hW.js} +1 -1
  85. package/web/app/immutable/chunks/{B1nmZwVF.js → CBgs1jD4.js} +1 -1
  86. package/web/app/immutable/chunks/{D1ynivqZ.js → CIJcws70.js} +1 -1
  87. package/web/app/immutable/chunks/{BaUvfuFA.js → CKGr2YTz.js} +1 -1
  88. package/web/app/immutable/chunks/{marbulK7.js → CMR4YeKo.js} +1 -1
  89. package/web/app/immutable/chunks/{C7eFRIGF.js → CMmbfhfC.js} +1 -1
  90. package/web/app/immutable/chunks/{C_4hXDel.js → CP2Kg1B4.js} +1 -1
  91. package/web/app/immutable/chunks/{Dp0wSsDS.js → CPFrNISL.js} +2 -2
  92. package/web/app/immutable/chunks/{DeB-Py0k.js → CQNA0ds6.js} +1 -1
  93. package/web/app/immutable/chunks/{BwVx_Xm9.js → CR1VVB-y.js} +1 -1
  94. package/web/app/immutable/chunks/{D4wUHJ-V.js → CR7xGCmU.js} +1 -1
  95. package/web/app/immutable/chunks/{CW9PUdij.js → CRCP-bLi.js} +1 -1
  96. package/web/app/immutable/chunks/{Cwdoe-yo.js → CRinz0qf.js} +1 -1
  97. package/web/app/immutable/chunks/{CTMsT2IU.js → CRkupLLY.js} +3 -3
  98. package/web/app/immutable/chunks/{D8dE5NKO.js → CSiaiLHL.js} +1 -1
  99. package/web/app/immutable/chunks/{B4Qf0RS5.js → CUF2wY0B.js} +1 -1
  100. package/web/app/immutable/chunks/{D_kdhP8o.js → CUNya7Ty.js} +1 -1
  101. package/web/app/immutable/chunks/{DgtgAyRj.js → CVCmU8cH.js} +1 -1
  102. package/web/app/immutable/chunks/{CpPVAOg5.js → CVWsHMge.js} +1 -1
  103. package/web/app/immutable/chunks/{Cw26kBCe.js → CZnfw8n4.js} +1 -1
  104. package/web/app/immutable/chunks/{BGUHg5o_.js → Cb0R6qJM.js} +1 -1
  105. package/web/app/immutable/chunks/{CoZ28bOB.js → CcNhqKh5.js} +1 -1
  106. package/web/app/immutable/chunks/CdVR7Ll7.js +1 -0
  107. package/web/app/immutable/chunks/{BJFbczXI.js → CdbmwjaM.js} +1 -1
  108. package/web/app/immutable/chunks/{COyObFie.js → Cds8-CeJ.js} +1 -1
  109. package/web/app/immutable/chunks/{jxb5pgpW.js → CgpltzkY.js} +1 -1
  110. package/web/app/immutable/chunks/{DoKuqfYA.js → Cjxd8cwf.js} +1 -1
  111. package/web/app/immutable/chunks/{BFQmpH-Y.js → ClIEAc52.js} +1 -1
  112. package/web/app/immutable/chunks/{BedviAdk.js → CmPULPQO.js} +1 -1
  113. package/web/app/immutable/chunks/{Cy1SRgRj.js → CqajeRKF.js} +1 -1
  114. package/web/app/immutable/chunks/{C7VjZ5I1.js → Cr2ds2GX.js} +1 -1
  115. package/web/app/immutable/chunks/{uxNvmxnz.js → Crtm1Tdw.js} +1 -1
  116. package/web/app/immutable/chunks/{DacYbmEF.js → CsQZrNPD.js} +1 -1
  117. package/web/app/immutable/chunks/{DoV4Ngwf.js → CseMAxRT.js} +1 -1
  118. package/web/app/immutable/chunks/{BDUVRWqe.js → CtDsnagM.js} +3 -3
  119. package/web/app/immutable/chunks/{l7AMrk83.js → Cue9ti62.js} +1 -1
  120. package/web/app/immutable/chunks/{b8_D7H9k.js → CwBXGgp6.js} +1 -1
  121. package/web/app/immutable/chunks/{CTc1mqQ1.js → CwW6ndDl.js} +1 -1
  122. package/web/app/immutable/chunks/{DbYMKWAI.js → D17qSIEz.js} +2 -2
  123. package/web/app/immutable/chunks/{Do9PiZ5P.js → D1EubvTh.js} +2 -2
  124. package/web/app/immutable/chunks/D1Wd8yWC.js +12 -0
  125. package/web/app/immutable/chunks/{DwkxcWNI.js → D3glRUn0.js} +2 -2
  126. package/web/app/immutable/chunks/{qB-JaQGy.js → D3pCGnn6.js} +1 -1
  127. package/web/app/immutable/chunks/{Byv1V5rF.js → D5Vbuf5Q.js} +1 -1
  128. package/web/app/immutable/chunks/{DguixOqZ.js → D86pbdSK.js} +1 -1
  129. package/web/app/immutable/chunks/{DGuIJztL.js → D8POxNfK.js} +1 -1
  130. package/web/app/immutable/chunks/{ffjPpoAP.js → D9fDSLwb.js} +1 -1
  131. package/web/app/immutable/chunks/{C5mH9Vrl.js → DG3MtJwi.js} +1 -1
  132. package/web/app/immutable/chunks/DKDYIgLv.js +11 -0
  133. package/web/app/immutable/chunks/{LknVBIaq.js → DMsh1yGi.js} +1 -1
  134. package/web/app/immutable/chunks/{BOY33UBS.js → DMv-E05P.js} +4 -4
  135. package/web/app/immutable/chunks/{D7jA8MQK.js → DPXmbcdl.js} +1 -1
  136. package/web/app/immutable/chunks/{D9E32u14.js → DRBvR0Tt.js} +1 -1
  137. package/web/app/immutable/chunks/{DhAAH4rU.js → DRLE5FVS.js} +1 -1
  138. package/web/app/immutable/chunks/{Bw8BPAST.js → DSjgIWnH.js} +1 -1
  139. package/web/app/immutable/chunks/{gnxdhh79.js → DUGrMwWd.js} +1 -1
  140. package/web/app/immutable/chunks/{CaaDYQm4.js → DV6D0Bkp.js} +5 -5
  141. package/web/app/immutable/chunks/{DVnJa0eT.js → DVAV2MG2.js} +1 -1
  142. package/web/app/immutable/chunks/{Fb6bTqJy.js → DVEpt846.js} +1 -1
  143. package/web/app/immutable/chunks/{Ciht8P3-.js → DXmYCfpj.js} +1 -1
  144. package/web/app/immutable/chunks/{BmnlV2jU.js → DYU4YpuR.js} +1 -1
  145. package/web/app/immutable/chunks/{DFxg8FPE.js → Dc2Hdtlu.js} +1 -1
  146. package/web/app/immutable/chunks/{BsesepNZ.js → De3HYtL6.js} +1 -1
  147. package/web/app/immutable/chunks/{7nLxl2IJ.js → DfxmKh09.js} +1 -1
  148. package/web/app/immutable/chunks/{CB-J-0bJ.js → DgyZhpgg.js} +1 -1
  149. package/web/app/immutable/chunks/{YcWsBw0J.js → DhFS-yhc.js} +1 -1
  150. package/web/app/immutable/chunks/{CvG8wNT6.js → Dk4Ddrsx.js} +1 -1
  151. package/web/app/immutable/chunks/{MgRcWC-F.js → Dk8ELDo2.js} +1 -1
  152. package/web/app/immutable/chunks/{CLbcqiJX.js → DkHQqDIr.js} +1 -1
  153. package/web/app/immutable/chunks/{DT-w4ZA3.js → DlTQCTDP.js} +1 -1
  154. package/web/app/immutable/chunks/DmQ8h8xi.js +1 -0
  155. package/web/app/immutable/chunks/{X6OEIYik.js → Dn7dutqt.js} +1 -1
  156. package/web/app/immutable/chunks/{9taqgPH1.js → DnkVLfZ3.js} +1 -1
  157. package/web/app/immutable/chunks/{BgiA9PsC.js → DrS3YtfK.js} +2 -2
  158. package/web/app/immutable/chunks/{ClHpwdNk.js → Dv5hWj70.js} +1 -1
  159. package/web/app/immutable/chunks/{Bil-5-Mv.js → DvSMiV5j.js} +1 -1
  160. package/web/app/immutable/chunks/{Es_LZ_6E.js → DvzRlb0E.js} +1 -1
  161. package/web/app/immutable/chunks/{n9Db8fQb.js → DxGU3xpZ.js} +1 -1
  162. package/web/app/immutable/chunks/{ClBnJ15C.js → ECTD8W-L.js} +1 -1
  163. package/web/app/immutable/chunks/{CcSZNfbk.js → EotFP58O.js} +1 -1
  164. package/web/app/immutable/chunks/{BwY7DKzU.js → FQUUYt8f.js} +1 -1
  165. package/web/app/immutable/chunks/{BBYPPwon.js → FyCAxxbB.js} +1 -1
  166. package/web/app/immutable/chunks/{wOsjtdPJ.js → KVLkeJBt.js} +1 -1
  167. package/web/app/immutable/chunks/{DFghII67.js → Ld9N5V0Z.js} +1 -1
  168. package/web/app/immutable/chunks/{CdhZKdub.js → NjepB5TE.js} +1 -1
  169. package/web/app/immutable/chunks/{Ph7T0qF8.js → OY7xFhVZ.js} +1 -1
  170. package/web/app/immutable/chunks/{DkcUxSHK.js → PlbZiyMr.js} +1 -1
  171. package/web/app/immutable/chunks/{2bCqOBlF.js → PnXyzret.js} +2 -2
  172. package/web/app/immutable/chunks/PpSNoAPM.js +1 -0
  173. package/web/app/immutable/chunks/Pw8-HxaI.js +408 -0
  174. package/web/app/immutable/chunks/{COPJQClu.js → Q9zhiNlv.js} +1 -1
  175. package/web/app/immutable/chunks/{CIno4eJd.js → R736-vzp.js} +1 -1
  176. package/web/app/immutable/chunks/{B_oexMWu.js → SP1g61ea.js} +1 -1
  177. package/web/app/immutable/chunks/{95PmebfY.js → U2OaO8zU.js} +1 -1
  178. package/web/app/immutable/chunks/{HdOtmFfs.js → UvxFr-I2.js} +1 -1
  179. package/web/app/immutable/chunks/VCguIe99.js +1 -0
  180. package/web/app/immutable/chunks/{IsBHRTqp.js → VxpSEzE0.js} +1 -1
  181. package/web/app/immutable/chunks/{BTxVcBTE.js → WKwDz9jQ.js} +1 -1
  182. package/web/app/immutable/chunks/{C4ih-xND.js → WPm8oU1g.js} +2 -2
  183. package/web/app/immutable/chunks/{B-B22ZmQ.js → X9_JIY5I.js} +1 -1
  184. package/web/app/immutable/chunks/{CpW6JN4X.js → YqTahsxp.js} +1 -1
  185. package/web/app/immutable/chunks/{CYgFtonv.js → Z311vB9V.js} +1 -1
  186. package/web/app/immutable/chunks/{BYCQnKWG.js → bqazsiqQ.js} +1 -1
  187. package/web/app/immutable/chunks/e_7d0HhT.js +271 -0
  188. package/web/app/immutable/chunks/{1JDc8gDP.js → evMM8bqV.js} +1 -1
  189. package/web/app/immutable/chunks/{BUU84hQY.js → felZLd_I.js} +1 -1
  190. package/web/app/immutable/chunks/{CBEZBV7x.js → gDHuvKO5.js} +1 -1
  191. package/web/app/immutable/chunks/gP4ZqKh0.js +5 -0
  192. package/web/app/immutable/chunks/{-ntpqjUQ.js → hua24XJh.js} +1 -1
  193. package/web/app/immutable/chunks/{B-mVY4KG.js → hwMB9Jx_.js} +1 -1
  194. package/web/app/immutable/chunks/{D6NxvjAo.js → kw6HOG6J.js} +2 -2
  195. package/web/app/immutable/chunks/{CXCbFJ1d.js → mo2YzLEW.js} +1 -1
  196. package/web/app/immutable/chunks/{C2vxCrLD.js → qH6ij_zT.js} +1 -1
  197. package/web/app/immutable/chunks/{C5SMJxa0.js → rDgjtPAw.js} +2 -2
  198. package/web/app/immutable/chunks/{DpJ6ItFS.js → rz5fXBI2.js} +1 -1
  199. package/web/app/immutable/chunks/{CzSCQAr8.js → sAd9qIlC.js} +1 -1
  200. package/web/app/immutable/chunks/{DqLpc8uk.js → sm9FgN6B.js} +1 -1
  201. package/web/app/immutable/entry/app.nL8LhceC.js +4 -0
  202. package/web/app/immutable/entry/start.DMMboC2Z.js +1 -0
  203. package/web/app/immutable/nodes/{0.D4UmpUyl.js → 0.DnTOWH22.js} +1 -1
  204. package/web/app/immutable/nodes/{1.DTuLvyGe.js → 1.DdFwPgy2.js} +1 -1
  205. package/web/app/immutable/nodes/{10.yW5YYZcV.js → 10.BodWJQlD.js} +1 -1
  206. package/web/app/immutable/nodes/{12.B-WFagfi.js → 12.CZF6J8V0.js} +1 -1
  207. package/web/app/immutable/nodes/{13.knDmuG_H.js → 13.CmgBwUCN.js} +1 -1
  208. package/web/app/immutable/nodes/14.Cch3Hlry.js +3 -0
  209. package/web/app/immutable/nodes/{15.5d-87wXx.js → 15.D8X9TwUZ.js} +1 -1
  210. package/web/app/immutable/nodes/16.DDUlFhjD.js +2 -0
  211. package/web/app/immutable/nodes/{17.S_DWC10F.js → 17.CR8Vf-gp.js} +2 -2
  212. package/web/app/immutable/nodes/{2.D-iQ8fmd.js → 2.DJ8VmJpJ.js} +12 -12
  213. package/web/app/immutable/nodes/{3.CQKvVdrW.js → 3.B0GEDD6l.js} +1 -1
  214. package/web/app/immutable/nodes/{4.Dq9WSzj3.js → 4.C1EmG9sP.js} +1 -1
  215. package/web/app/immutable/nodes/{5.C2b8MeJP.js → 5.weYY_j2P.js} +1 -1
  216. package/web/app/immutable/nodes/{6.DZyVWynY.js → 6.BDlVx9Dk.js} +1 -1
  217. package/web/app/immutable/nodes/{7.BNPj2Hjb.js → 7.C0Ip3FSb.js} +1 -1
  218. package/web/app/immutable/nodes/{8.CYaF3iZ7.js → 8.CpQw4Gbe.js} +4 -4
  219. package/web/app/immutable/nodes/{9.D9yeuWg6.js → 9.DT0bh2W_.js} +5 -5
  220. package/web/app/version.json +1 -1
  221. package/web/index.html +14 -14
  222. package/web/app/immutable/assets/ChatPanel.CbI83JII.css +0 -1
  223. package/web/app/immutable/assets/conversation-turns.uwdl8ht7.css +0 -1
  224. package/web/app/immutable/chunks/BJzHxIyr.js +0 -1
  225. package/web/app/immutable/chunks/BQKilZql.js +0 -190
  226. package/web/app/immutable/chunks/Bdee7uP3.js +0 -1
  227. package/web/app/immutable/chunks/C3g8Ux-E.js +0 -408
  228. package/web/app/immutable/chunks/CJvik4ry.js +0 -1
  229. package/web/app/immutable/chunks/D0OfnhNR.js +0 -11
  230. package/web/app/immutable/chunks/D3NOBSUZ.js +0 -271
  231. package/web/app/immutable/chunks/DLrZLCmS.js +0 -1
  232. package/web/app/immutable/chunks/DSwaqM2D.js +0 -1
  233. package/web/app/immutable/chunks/Debl1LJu.js +0 -1
  234. package/web/app/immutable/chunks/DqIdPWw6.js +0 -1
  235. package/web/app/immutable/chunks/DsvlGcLM.js +0 -9
  236. package/web/app/immutable/chunks/DuXpPbhO.js +0 -5
  237. package/web/app/immutable/chunks/tVWh__3e.js +0 -1
  238. package/web/app/immutable/chunks/xNaKu_mj.js +0 -1
  239. package/web/app/immutable/entry/app.CUk63TN3.js +0 -4
  240. package/web/app/immutable/entry/start.ByRHyT3-.js +0 -1
  241. package/web/app/immutable/nodes/14.CtAbrlVb.js +0 -3
  242. package/web/app/immutable/nodes/16.BcAEiIYy.js +0 -2
@@ -1 +1 @@
1
- var ke=Object.defineProperty;var Ee=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>Ee(e,typeof t!="symbol"?t+"":t,r);import{k as ye,N as Me,T as Re,d as Ce,l as we,w as Pe}from"./YcWsBw0J.js";import"./DYhIMPy1.js";import{bo as a,_ as Ie}from"./CNdlzZOD.js";import"./9iFKJfkz.js";import"./DIh4SQwA.js";import"./DwkxcWNI.js";import{c as j}from"./ChTqQfQN.js";import"./CqnfptVg.js";import{Ig as i,tK as Te,nz as M,ny as S,m2 as Oe,v7 as Fe,v5 as te,ha as Le,hb as De,c as xe,HV as Ne,a4 as We,x_ as T,x$ as U,xY as Be,xZ as Ve,bY as Ue,bX as Ge,ca as He,c9 as qe,nB as R}from"./BJpbRkma.js";import{cE as je,ct as ze,bu as Ke,cJ as $e,cI as Qe,cN as Ye,c6 as Xe,cl as Ze,c8 as Je,cC as ie,ax as et,bQ as tt,cK as rt}from"./BsesepNZ.js";import{a as st,i as nt}from"./M0UFWl_S.js";import{aI as it,U as ae,bJ as at,m as ot,L as ct,bW as z,g as lt,V as dt,bX as ut,c as pt,aJ as ft,bE as K,am as gt,aY as ht,Z as mt,aE as bt,bL as St,Y as _t,W as vt,X as At,bH as kt,w as Et}from"./IsBHRTqp.js";import{y as yt}from"./DhJNH_hq.js";import{y as I}from"./DrH3w3jB.js";import{i as N}from"./Gh0Bk6WC.js";import{n as Mt}from"./C4ih-xND.js";const Rt=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:Me,TOAST_COUNTDOWN_CLASS:Re,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:Ce,notify:ye,notifyMetadata:we,withToastCountdown:Pe},Symbol.toStringTag,{value:"Module"})),As=i.createSelector(e=>je.select(e)?.capabilities.gitlabCheckout===!0),ks=i.createSelector(e=>e.gitlabAuth.host),Es=i.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),ys=i.createSelector(e=>Te(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),Ms=i.createSelector(e=>e.gitlabAuth.isCancelling),Rs=i.createSelector(e=>e.gitlabAuth.cancelOutcome),Cs=i.createSelector(e=>e.gitlabAuth.isConfigured),ws=i.createSelector(e=>e.gitlabAuth.isAuthenticating),Ps=i.createSelector(e=>e.gitlabAuth.deviceFlow),Is=i.createSelector(e=>e.gitlabAuth.deviceGrantSupported),Ts=i.createSelector(e=>e.gitlabAuth.user),Os=i.createSelector(e=>e.gitlabAuth.error);i.createSelector(e=>e.gitlabAuth.method);const Fs=i.createSelector(e=>e.gitlabAuth.statusReady===!0),E=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"ui-designer",icon:"ui-designer",get name(){return a.specialists_builtin_uiDesigner_name()},get description(){return a.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return a.specialists_builtin_vulnerabilityScanner_name()},get description(){return a.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"developer",icon:"verifier",get name(){return a.specialists_builtin_developer_name()},get description(){return a.specialists_builtin_developer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"product-manager",icon:"coordinator",get name(){return a.specialists_builtin_productManager_name()},get description(){return a.specialists_builtin_productManager_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"maintenance-coordinator",icon:"ralph",get name(){return a.specialists_builtin_maintenanceCoordinator_name()},get description(){return a.specialists_builtin_maintenanceCoordinator_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return a.specialists_builtin_chiefOfStaff_name()},get description(){return a.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:"",promptUnavailable:!0}],oe=new Set(["pr-reviewer"]),Ls="developer";function Ds(e){return E.find(t=>t.id===e)}const Ct=i.createSelector(e=>e.githubAuth.mutationRequestId),wt=i.createSelector(e=>e.githubAuth.callbacksCancelled),Pt=i.createSelector(e=>e.githubAuth.isDisconnecting),ce=i.createSelector(e=>e.githubAuth.isAuthenticated),It=i.createSelector(e=>e.githubAuth.statusSettled===!0),Tt=i.createSelector(e=>e.githubAuth.requiresDaemonAuth),Ot=i.createSelector(e=>e.githubAuth.user),Ft=i.createSelector(e=>e.githubAuth.isAuthenticating),Lt=i.createSelector(e=>e.githubAuth.deviceFlow),Dt=i.createSelector(e=>e.githubAuth.error),xs=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:wt,selectGitHubAuthDeviceFlow:Lt,selectGitHubAuthError:Dt,selectGitHubAuthIsAuthenticated:ce,selectGitHubAuthIsAuthenticating:Ft,selectGitHubAuthIsDisconnecting:Pt,selectGitHubAuthMutationRequestId:Ct,selectGitHubAuthRequiresDaemonAuth:Tt,selectGitHubAuthStatusSettled:It,selectGitHubAuthUser:Ot},Symbol.toStringTag,{value:"Module"}));function f(e){return e??""}function xt(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((n,o)=>f(n.provider)===f(s[o].provider)&&n.model===s[o].model&&n.hint===s[o].hint&&f(n.reasoningEffort)===f(s[o].reasoningEffort))}function re(e,t){if(e.source!=="user"||!t?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const r=e.bundled;return r?f(e.name)===f(r.name)&&f(e.description)===f(r.description)&&f(e.behaviorPrompt)===f(r.behaviorPrompt)&&f(e.roleReminder)===f(r.roleReminder)&&f(e.reasoningEffort)===f(r.reasoningEffort)&&xt(e.modelOptions,r.modelOptions):!1}const Ns=i.createSelector(e=>e.specialists.bundledSpecialists),Nt=i.createSelector(e=>e.specialists.fileSpecialists),Ws=i.createSelector(e=>M(Nt.select(e))),Bs=i.createSelector(e=>e.specialists.userOverrides);i.createSelector(e=>e.specialists.overridesLoaded);const Vs=i.createSelector(e=>e.specialists.customSpecialistsLoaded),Us=i.createSelector(e=>e.specialists.fileSpecialistsLoaded),Gs=i.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Hs=i.createSelector(e=>e.specialists.specialistsFolderPath),qs=i.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});i.createSelector(e=>e.specialists.providerModelOverrides);const W=i.createSelector((e,t)=>!(oe.has(t)&&!ce.select(e)));function Wt(e,t){return t?e:e.filter(r=>!oe.has(r.id))}function Bt(e,t){return Wt(e,t).filter(r=>!r.hidden)}function js(e,t){return Bt(e,t).filter(r=>r.role!=="internal")}const _=i.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(l=>({...l,defaultModel:l.model,defaultBehaviorPrompt:l.behaviorPrompt??l.prompt??"",defaultAgentType:l.agentType}));const r=M(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,n=new Set,o=[];for(const l of r)!n.has(l.id)&&W.select(e,l.id)&&(n.add(l.id),o.push({id:l.id,name:l.name,description:l.description,codingAgent:l.codingAgent,defaultModel:l.model||void 0,defaultBehaviorPrompt:l.behaviorPrompt,roleReminder:l.roleReminder,source:l.source,importedFrom:l.importedFrom,unsupportedFields:l.unsupportedFields,requiredSkills:l.requiredSkills,missingSkills:l.missingSkills,hidden:l.hidden,resolvedModel:l.resolvedModel,resolvedProvider:l.resolvedProvider,modelOptions:l.modelOptions,reasoningEffort:l.reasoningEffort,role:l.role,teamAgents:l.teamAgents,icon:l.icon}));for(const l of s)!n.has(l.id)&&W.select(e,l.id)&&(n.add(l.id),o.push(l));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const l of E)!n.has(l.id)&&W.select(e,l.id)&&(n.add(l.id),o.push(l));const c=new Map;for(const l of E)c.has(l.id)||c.set(l.id,c.size);for(const l of s)c.has(l.id)||c.set(l.id,c.size);return o.sort((l,p)=>{const m=c.has(l.id),x=c.has(p.id);return m&&x?(c.get(l.id)??0)-(c.get(p.id)??0):m&&!x?-1:!m&&x?1:l.name.localeCompare(p.name)}),o}),zs=i.createSelector(e=>{const t=_.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...E.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,n)=>+!r.has(s.id)-+!r.has(n.id)||s.id.localeCompare(n.id)),t[0]}),Vt=i.createSelector((e,t)=>{const r=S(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(n=>n.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&M(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const n=E.find(o=>o.id===t);if(n)return{id:n.id,name:n.name,description:n.description,source:"builtin"}}return null}),Ks=i.createSelector((e,t)=>Vt.select(e,t)?.name??null),$s=i.createSelector((e,t,r)=>{const n=_.select(e,r).find(o=>o.id===t);return n?n.defaultModel?n.defaultModel:n.resolvedModel??"":""}),Qs=i.createSelector((e,t,r)=>_.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Ys=i.createSelector((e,t,r)=>_.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Xs=i.createSelector((e,t,r)=>{const n=_.select(e,r).find(o=>o.id===t);return n?n.defaultBehaviorPrompt:""});function O(e,t){return t.some(r=>r.id===e)||E.some(r=>r.id===e)}const Zs=i.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(n=>n.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&O(t,e.specialists.bundledSpecialists)}return O(t,e.specialists.bundledSpecialists)}),Js=i.createSelector((e,t,r)=>r?!!$.select(e,t,r):!!S(e.specialists.fileSpecialists,t)),en=i.createSelector((e,t,r)=>{if(r){const o=$.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:O(t,e.specialists.bundledSpecialists)&&!re(o)}if(!O(t,e.specialists.bundledSpecialists))return!1;const n=S(e.specialists.fileSpecialists,t);return!n||n.source!=="user"?!1:!re(n)}),$=i.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(n=>n.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return S(e.specialists.fileSpecialists,t)}),tn=i.createSelector((e,t,r)=>{const s=$.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(n=>n.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(n=>n.id===t)?"Built-in":null}),rn=i.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=S(e.specialists.fileSpecialists,t);if(s)return s.filePath;const n=e.specialists.bundledSpecialists.find(o=>o.id===t);if(n&&"filePath"in n)return n.filePath}),sn=i.createSelector((e,t,r)=>{if(r){const n=_.select(e,r).find(l=>l.id===t),o=n?.codingAgent||n?.resolvedProvider;if(o)return ze.select(e,o,r);const c=Ke.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[c]?.available?c:""}const s=S(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:Ut.select(e,t)}),Ut=i.createSelector((e,t)=>{const s=_.select(e).find(n=>n.id===t);return s?.codingAgent?s.codingAgent:it.select(e)?ae.select(e):""}),nn=i.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?M(r):[]}),an=i.createSelector((e,t)=>e.specialists.creationByContext?.[t]??Oe),on=i.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),B=j("Clipboard");async function cn(e){let t;if(st())try{const r=await nt("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,B.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw B.error("Browser clipboard write failed",r,{electronError:t}),r}throw B.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Gt=["connected","disconnected","unreachable","revoked","update-required"],y=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),u=e=>typeof e=="string"&&e.length>0,C=e=>typeof e=="string"&&e.length>0?e:void 0,le=e=>Number.isSafeInteger(e)&&e>=0?e:0;function Ht(e){if(!y(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(s=>y(s)&&u(s.id)?[{id:s.id,status:typeof s.status=="string"?s.status:"unknown",models:Array.isArray(s.models)?s.models.filter(n=>u(n)):[]}]:[]):[],r=C(e.intentdVersion);return{...r?{intentdVersion:r}:{},providers:t}}function ln(e){if(!y(e)||!u(e.id)||!u(e.name)||!u(e.fingerprint)||!Gt.includes(e.state)||!Number.isInteger(e.port)||!u(e.addedAt))return null;const t=y(e.platform)&&u(e.platform.os)&&u(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,r=Ht(e.capabilities),s=C(e.tcAddress),n=C(e.observedAt),o=C(e.lastConnectedAt),c=Fe(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>u(p)):[],port:e.port,...s?{tcAddress:s}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:le(e.runningAgents),...r?{capabilities:r}:{},...l!==void 0?{nodeProtocol:l}:{},...n?{observedAt:n}:{},addedAt:e.addedAt,...o?{lastConnectedAt:o}:{},...c?{cloud:c}:{}}}function dn(e){if(!y(e)||!u(e.credentialId)||!u(e.backendId)||!u(e.backendName)||!u(e.createdAt))return null;const t=C(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:le(e.runningAgents)}}function un(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function qt(e){if(!y(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&u(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&u(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function pn(e){if(!Array.isArray(e))return null;const t=[];for(const r of e){const s=qt(r);if(!s)return null;t.push(s)}return t}function jt(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function P(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const zt={macos:"macOS",linux:"Linux",windows:"Windows"},Kt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function A(e,t){const r=[e&&(zt[e]??e),t&&(Kt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function $t(e){return e?.placement?.target==="remote"||I(e?.placement?.target)}const Qt=new Set(["running","paused","resuming","pausing","stopping"]);function Yt(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const r=t?.cloud?.state;return r&&Qt.has(r)?r:e.effectiveIsolation==="pending"?"starting":null}function de(e,t){if(!e||!$t(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null;if(I(e.placement?.target))return{nodeId:r,name:e.nodeName?.trim()||Le(s?.cloud?.provider??De(e.placement?.cloudMachineId)),platform:A(s?.platform?.os,s?.platform?.arch),state:"ready",cloud:{state:Yt(e,s)}};const n=A(e.placement?.os,e.placement?.arch)??A(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||a.remoteAgent_location_unknownMachine(),platform:n,state:o}}function fn(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||a.remoteAgent_location_unknownMachine(),platform:A(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function ue(e){switch(e){case"starting":return a.cloudMachines_agent_starting();case"running":return a.cloudMachines_agent_running();case"paused":return a.cloudMachines_agent_paused();case"resuming":return a.cloudMachines_agent_resuming();case"pausing":return a.cloudMachines_agent_pausing();case"stopping":return a.cloudMachines_agent_stopping();default:return null}}function gn(e){const t=ue(e.cloud?.state);return t?a.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function hn(e){if(e.cloud){const r=ue(e.cloud.state),s=a.remoteAgent_location_tooltipNoPlatform({machine:e.name});return r?a.remoteAgent_location_tooltipWithState({location:s,state:r}):s}const t=e.platform?a.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):a.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_unreachable_label()});case"revoked":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_revoked_label()});default:return t}}function pe(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":null}function fe(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const r=JSON.parse(e.slice(t+1));if(r&&typeof r=="object"&&typeof r.code=="string")return{message:e.slice(0,t).trim(),data:r}}catch{}return null}function Xt(e,t){const r=e.detail??"",s=fe(r),n=e.code==="machine-update-required"||s?.data.code==="machine-update-required";if(n&&s?.data.reason==="prepared-checkout")return{updateRequired:n,message:a.remoteAgent_updateRequired_preparedCheckout({machine:t})};const o=te(s?.data),c=o??(e.code?te({code:e.code}):null);return c?{updateRequired:n,message:s?.message||r,cloud:c,cloudDetailKnown:!!o}:{updateRequired:n,message:s?.message||r}}function mn(e){if(!I(e?.placement?.target)||!e.placementError||e.status!==xe.Error)return null;const t=Xt(e.placementError,"");return t.cloud?t:null}const Zt=["attachments-too-large-for-machine:","node-prompt-too-large:"],Jt="remote-agent-unsupported:";function se(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function bn(e){const t=fe(e)?.message??e;for(const s of Zt){const n=t.indexOf(s);if(n<0)continue;const o=t.slice(n+s.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),c=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(o);return c?a.remoteAgent_attachmentsTooLargeSized_error({size:se(Number(c[1])),limit:se(Number(c[2]))}):o?a.remoteAgent_attachmentsTooLarge_error({detail:o}):a.remoteAgent_attachmentsTooLargeNoDetail_error()}const r=t.indexOf(Jt);return r>=0&&/attachment/i.test(t.slice(r))?a.remoteAgent_attachmentsUnsupported_error():null}function Sn(e){return I(e?.placement?.target)&&pe(e,de(e))==="starting"}function _n(e,t){if(!I(e?.placement?.target))return!1;const r=de(e,t);return r?.cloud?.state==="resuming"&&pe(e,r)===null}const v="",G="cloud:";function Q(e){return`${G}${e}`}function Y(e){return e?.startsWith(G)&&e.slice(G.length)||null}const vn=Q("e2b");function er(e,t){return e?.find(r=>Q(r.cloudMachineId)===t&&r.unavailableReason===null)}const tr=new Set(["connected","disconnected"]);function rr(e){switch(e){case"unreachable":return a.remoteMachines_state_unreachable_label();case"revoked":return a.remoteMachines_state_revoked_label();case"update-required":return a.remoteMachines_state_updateRequired_label();default:return}}function X(e){return tr.has(e.state)}function sr({backendLabel:e,backendPlatform:t,machines:r,cloud:s}){const n=[{id:v,label:e,platform:A(t?.os,t?.arch),disabled:!1},...r.map(o=>{const c=A(o.platform?.os,o.platform?.arch);return X(o)?{id:o.id,label:o.name,platform:c,disabled:!1}:{id:o.id,label:o.name,platform:c,disabled:!0,reason:rr(o.state)}})];for(const o of s??[])n.push({id:Q(o.cloudMachineId),label:o.label,platform:null,kind:"cloud",disabled:o.unavailableReason!==null,...o.unavailableReason?{reason:o.unavailableReason}:o.needsProfile?{hint:a.cloudMachines_startOn_hint()}:{}});return n}function An(e){return e.find(t=>t.id===v)?.label??""}function nr({remoteMachinesVisible:e,supported:t,machines:r,cloud:s}){return e&&t&&(r.some(X)||(s??[]).some(n=>n.unavailableReason===null))}function ir(e,t,r){if(!e)return v;if(Y(e))return er(r,e)?e:v;const s=t.find(n=>n.id===e);return s&&X(s)?s.id:v}function kn(e,{cloudEntries:t=!1,providerOf:r}={}){const s=Y(e);return s?t&&r?.(s)==="northflank"?{target:"cloud",checkout:"isolated",cloudMachineId:s}:t?{target:"e2b",checkout:"isolated",cloudMachineId:s}:{target:"e2b",checkout:"isolated"}:e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function En({groups:e,providerRef:t,model:r}){const s=c=>c.options.filter(l=>!l.disabled),n=e.find(c=>c.key===t),o=n?s(n):[];if(r){const c=Ne(r).modelId;if(o.some(l=>l.value===c))return null}else if(o.length>0)return null;if(n&&o.length>0)return{providerId:n.key,modelId:o[0].value};for(const c of e){if(c.key==="default")continue;const l=s(c);if(l.length>0)return{providerId:c.key,modelId:l[0].value}}return null}function ar(e,t,r,s){const n=e.map(P),o=n.indexOf(t),c=n.indexOf(r);if(o<0||c<0||o===c)return null;let l=c+(s==="after"?1:0);if(o<l&&(l-=1),l===o)return null;const p=[...e],[m]=p.splice(o,1);return p.splice(l,0,m),p.map(jt)}function yn(e,t,r){const s=e.findIndex(o=>P(o)===t),n=e[s+r];return s<0||!n?null:ar(e,t,P(n),r===-1?"before":"after")}function or(e,t){if(e===v)return"local";const r=t==="cloud"?Y(e):null;return P(r?{kind:"cloud",cloudMachineId:r}:{kind:"machine",nodeId:e})}function cr(e,t){const r=new Map(t.map((n,o)=>[P(n),o])),s=n=>r.get(or(n.id,n.kind))??t.length;return e.map((n,o)=>({option:n,index:o})).sort((n,o)=>s(n.option)-s(o.option)||n.index-o.index).map(({option:n})=>n)}const Z=i.createSelector(e=>yt.select(e)&&e.remoteMachines?.supported===!0),Mn=i.createSelector(e=>Z.select(e)&&at.select(e)),ge=i.createSelector(e=>Z.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),lr=i.createSelector(e=>ge.select(e)?e.remoteMachines.order??[]:[]),Rn=i.createSelector(e=>e.remoteMachines.orderSaving!==null),J=i.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Cn=i.createSelector(e=>e.remoteMachines.localFingerprint),wn=i.createSelector(e=>e.remoteMachines.pending),Pn=i.createSelector(e=>e.remoteMachines.failures),In=i.createSelector(e=>e.remoteMachines.executorBackends??[]),dr=i.createSelector((e,t)=>{if(t===We)return a.layout_daemonStatus_localConnection_label();const r=S(e.connections.connections,t);return r?ot(r):t}),ur=i.createSelector(e=>dr.select(e,e.connections.windowBackendId)),Tn=i.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),On=i.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return ct({catalogProfiles:Ye.select(e,t),defaultRemoteIncompatibility:Qe.select(e,t),defaultRemoteLaunch:$e.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),Fn=i.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),he=i.createSelector(e=>nr({remoteMachinesVisible:Z.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:J.select(e),cloud:z(e)}));function pr(e){const t=S(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const fr=i.createSelector(e=>{const t=sr({backendLabel:ur.select(e),backendPlatform:pr(e),machines:J.select(e),cloud:z(e)});return ge.select(e)?cr(t,lr.select(e)):t}),Ln=i.createSelector(e=>he.select(e)?fr.select(e):[]),Dn=i.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),xn=i.createSelector((e,t,r)=>he.select(e)?ir(t,J.select(e),me(e,r)):v);function me(e,t){const r=z(e);if(!r||!t)return r;const s=e.cloudMachines?.providers??{};return r.map(n=>{if(n.unavailableReason)return n;const o=lt(e,t,s[n.cloudMachineId]??null);return o?{...n,unavailableReason:o}:n})}const Nn=i.createSelector((e,t)=>me(e,t)),gr=j("WorkspaceValidation");async function Wn(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return hr(s)?br(s):Sr(s,t,r)}function hr(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function mr(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const n of r){const o=t.match(n);if(o){const c=o[2].replace(/\.git$/,"");return c?{owner:o[1],repo:c}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const n=s[2].replace(/\.git$/,"");return n?{owner:s[1],repo:n}:null}return null}async function br(e){return mr(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function Sr(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await N("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const c=s.data;return c.exists?c.isDirectory?c.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c}:c.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c,warning:a.workspace_validation_insideParentRepo_warning({path:c.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:c}:t?c.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:c}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:c}:t?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:c}}if(!(await N("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await N("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(gr.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Bn(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Vn(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Un(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Gn(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Hn(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const _r=["idle","exited"];function vr(e){return e===void 0||!_r.includes(e)}function qn(e){return e.status==="restarting"?"restarting":vr(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function Ar(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const jn=i.createSelector(e=>e.voiceSettings.isLoading),zn=i.createSelector(e=>e.voiceSettings.available),Kn=i.createSelector(e=>e.voiceSettings.provider),$n=i.createSelector(e=>e.voiceSettings.engine),Qn=i.createSelector(e=>e.voiceSettings.osEngineAvailable),Yn=i.createSelector(e=>e.voiceSettings.keyConfigured),Xn=i.createSelector(e=>e.voiceSettings.vocabulary),Zn=i.createSelector(e=>e.voiceSettings.openaiModel),Jn=i.createSelector(e=>e.voiceSettings.language),ei=i.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),ti=i.createSelector(e=>e.voiceSettings.inputDeviceId),ri=i.createSelector(e=>e.voiceSettings.inputDevices),si=i.createSelector(e=>e.voiceSettings.busyProvider),ni=i.createSelector(e=>e.voiceSettings.error),ii=i.createSelector(e=>Xe.select(e)?"unavailable":Ar(e.voiceSettings)),H="intent.voice.inputDevice";let q;function kr(){if(q!==void 0)return q;try{const e=localStorage.getItem(H);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ai(e){q=e;try{e===null?localStorage.removeItem(H):localStorage.setItem(H,e)}catch{}}let F=null;function oi(e){F=e}function ci(){const e=F;return F=null,e}function Er(){F=null}const yr=300,Mr=300;class Rr{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??yr,this.doublePressWindowMs=t.doublePressWindowMs??Mr,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let L=null;function li(e){L=e}function di(){const e=L;return L=null,e}function Cr(){L=null}const wr=12e4,Pr=["audio/webm;codecs=opus","audio/webm"];function ui(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Ir(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Tr(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Pr.find(e=>MediaRecorder.isTypeSupported(e))}class Or{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??wr,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Ir(this.deviceId))}catch(n){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(n),o?"discarded":"error"}if(this.discardRequested){for(const n of t.getTracks())n.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Tr(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=n=>{n.data&&n.data.size>0&&this.chunks.push(n.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=n=>this.handleRecorderError(n),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,n=this.cancelRequested;this.teardown(),!n&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Fr=300;function Lr(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Dr={stopReason:"manual",autoSend:!1};let g=null,b=null,k=0,w=null;const D=new Rr({onRecordStart:()=>{w&&xr(w)},onRecordStop:e=>{be(w,e)}});function pi(){return g!==null}function fi(){return g}function gi(e){w=e,k+=1,k===1&&D.keyDown()}function hi(e){w=e,k!==0&&(k-=1,k===0&&D.keyUp())}function xr(e){if(g!==null)return;Cr(),Er();const t=new Or({deviceId:kr(),onFinished:r=>{g===t&&(g=null);const s=b??{stopReason:"auto-stop",autoSend:!1},n=b!==null;if(b=null,e.dispatch(T()),n||D.reset(),r.durationMs<Fr){s.autoSend&&e.dispatch(U());return}e.dispatch(Be({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{g===t&&(g=null),b=null,e.dispatch(T()),e.showHint(Lr(r)?a.hardwareConsole_ptt_micDenied_message():a.hardwareConsole_ptt_recordingFailed_message())}});g=t,e.dispatch(Ve()),t.start().then(r=>{if(r!=="recording"&&(g===t&&(g=null),r==="discarded")){const s=b?.autoSend===!0;b=null,e.dispatch(T()),s&&e.dispatch(U())}})}function be(e,t){const r=g;if(r===null){t.autoSend&&e?.dispatch(U());return}b=t,r.stop()}function mi(){be(null,Dr)}function bi(e){D.reset(),k=0,b=null;const t=g;t!==null&&(g=null,t.cancel(),e.dispatch(T()))}const Nr=j("HardwareConsoleVoiceSetupToast"),Wr="hardware-console-voice-setup";let V=null;function Br(){return V||(V=Ie(()=>Promise.resolve().then(()=>Rt),void 0,import.meta.url).then(e=>e.notify)),V}function Vr(){Mt("/settings?tab=connections#voice").catch(e=>{Nr.error("Failed to open voice settings from setup toast",e)})}function Ur(){return{label:a.hardwareConsole_voice_openSettings_label(),onClick:()=>Vr()}}function Si(){Br().then(e=>{e.error(a.hardwareConsole_voice_noKey_error(),{id:Wr,action:Ur()})})}const _i=i.createSelector(e=>e.externalEditors.selectedAction),Gr=i.createSelector(e=>e.externalEditors.editors),Hr=i.createSelector(e=>{const t=M(Gr.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(c=>[c.id,c])),n=r.flatMap(c=>{const l=s.get(c);return l?[l]:[]}),o=new Set(r);return[...n,...t.filter(({id:c})=>!o.has(c))]}),vi=i.createSelector(e=>e.externalEditors.editorOrder??[]),Ai=i.createSelector(e=>e.externalEditors.loading),ki=i.createSelector(e=>e.externalEditors.lastFetched),qr=i.createSelector(e=>e.externalEditors.hiddenEditorIds),Ei=i.createSelector((e,t)=>{if(!(t?Ze.select(e,t):Je.select(e)))return[];const s=qr.select(e);return Hr.select(e).filter(n=>n.installed&&!s.includes(n.id))});function yi(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let jr=0;function zr(e,t){const r=++jr;return i.dispatch(Ge(e,t,r)),r}function Mi(e,t,r){i.dispatch(Ue(e,t,r))}async function Se(e,t,r,s){const n=crypto.randomUUID(),o=s?.source??"control";try{return(await i.dispatch(He({requestId:n,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:ie.select(i.state)},{...s,intent:s?.intent??zr(e,t)}))).status==="success"}finally{i.dispatch(qe(n,o))}}async function Ri(e,t,r,s,n){return Se(e,t,{kind:"effort",effort:r,previous:s},n)}async function Ci(e,t,r,s,n){return Se(e,t,{kind:"reconcile",current:r??null,levels:s},n)}const Kr=i.createSelector((e,t)=>M(e.agentModel.mutations).filter(r=>r.consumerId===t)),wi=i.createSelector((e,t)=>Kr.select(e,t).some(r=>r.status==="pending")),Pi=i.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],n=et.select(e,t),o=dt.select(e,t),c=e.daemonHealth.stats?.protocolVersion,l=ut(c),p=l?pt(s?.model,null,o):s?.model;return{session:s,providerId:n,levels:o,legacy:l,identity:JSON.stringify([p,n]),connection:ie.select(e),canWrite:!!s&&s.workspaceId===r&&!tt.select(e,r)}});function $r(e,t,r=!1){return e!=="auggie"||t===!0||r}const Ii=i.createSelector(e=>ft.select(e)?null:K.select(e)),Qr=i.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),h=i.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),Ti=i.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),Oi=i.createSelector((e,t)=>!!h.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===Qr.select(e)),_e=i.createSelector((e,t)=>t?h.select(e,t)?.catalog.providers??[]:rt.select(e)),ve=i.createSelector((e,t)=>{if(!t)return ae.select(e);const r=h.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),ee=i.createSelector((e,t)=>{if(!t)return gt.select(e);const r=h.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),Ae=i.createSelector((e,t)=>{if(!t)return ht.select(e);const r=ee.select(e,t),s=ve.select(e,t),n=h.select(e,t)?.readiness??{};return _e.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&n[o.id]?.available).map(o=>o.id)}),Fi=i.createSelector((e,t)=>{const r=ee.select(e,t),s=t?h.select(e,t)?.readiness??{}:K.select(e);return _e.select(e,t).filter(n=>$r(n.id,s[n.id]?.available,r[n.id]===!0)).map(n=>n.id)}),Li=i.createSelector((e,t)=>t?Ae.select(e,t):mt.select(e)),Di=i.createSelector((e,t)=>_.select(e,t)),xi=i.createSelector((e,t)=>t?!!h.select(e,t):bt.select(e)),Ni=i.createSelector((e,t)=>{if(!t)return St.select(e);const r=h.select(e,t)?.settings??[],s=ve.select(e,t),n=r.find(l=>l.path==="model.providerDefaults")?.value,o=n&&typeof n=="object"?n[s]:void 0;if(typeof o=="string")return o;const c=r.find(l=>l.path==="model.default")?.value;return typeof c=="string"?c:""}),Wi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):_t.select(e)),Bi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):vt.select(e)),Vi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):At.select(e)),Ui=i.createSelector((e,t,r)=>{if(!r)return kt.select(e,t);const s=ee.select(e,r),n=h.select(e,r);return Ae.select(e,r).filter(o=>o!==t&&(s[o]||n?.catalog.providers.find(c=>c.id===o)?.canBeDisabled===!1)&&Et(o,n?.readiness[o]?.authenticated))}),Gi=i.createSelector((e,t)=>t?h.select(e,t)?.readiness??{}:K.select(e)),Yr={},Hi=i.createSelector(e=>e.providerSettings?.profiles?.status??Yr),qi=i.createSelector(e=>e.directoryPicker.listing),ji=i.createSelector(e=>e.directoryPicker.loading),zi=i.createSelector(e=>e.directoryPicker.error),Ki=i.createSelector(e=>e.directoryPicker.pathError),$i=i.createSelector(e=>e.directoryPicker.createError),ne={},Xr=i.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Qi=i.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(n=>n.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Yi=i.createSelector(e=>e.mcpSettings.loading),Xi=i.createSelector(e=>e.mcpSettings.error),Zi=i.createSelector(e=>e.mcpSettings.mutationError??null),Ji=i.createSelector(e=>e.mcpSettings.enabled),Zr=i.createSelector(e=>e.mcpSettings.disabledServers),Jr=i.createSelector(e=>e.mcpSettings.statusMap),es=i.createSelector(e=>e.mcpSettings.toolsMap),ts=i.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(n=>[n.id,R(n)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(n=>{const o=s.get(n.serverId);return o&&n.lastError?[[o,n.lastError]]:[]}))}),rs=i.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??ne:ne),ea=i.createSelector((e,t)=>Object.keys(rs.select(e,t))),ta=i.createSelector(e=>{const t=Xr.select(e),r=Jr.select(e),s=es.select(e),n=Zr.select(e),o=ts.select(e);return t.map(c=>{const l=R(c)in n,p=s[R(c)]||[];let m=r[R(c)]||"disconnected";return l&&(m="disabled"),{...c,disabled:l,status:m,tools:p,toolCount:p.length,errorMessage:o[R(c)]}})});i.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const ra=i.createSelector(e=>e.mcpSettings.lastImportedCount),sa=i.createSelector(e=>e.mcpSettings.advancedSaveStatus),na=i.createSelector(e=>e.mcpSettings.advancedSaveError),ia=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],ss=[{path:"agentFeatures.backgroundHooks",label:()=>a.settings_agentFeatures_backgroundHooks_label(),description:()=>a.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>a.settings_agentFeatures_hostExec_label(),description:()=>a.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>a.settings_agentFeatures_scripts_label(),description:()=>a.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>a.settings_agentFeatures_terminalAccess_label(),description:()=>a.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>a.settings_agentFeatures_browserAutomation_label(),description:()=>a.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>a.settings_agentFeatures_desktopControl_label(),description:()=>a.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>a.settings_agentFeatures_richChatBlocks_label(),description:()=>a.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>a.settings_agentFeatures_structuredQuestions_label(),description:()=>a.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>a.settings_agentFeatures_secretRequests_label(),description:()=>a.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>a.settings_agentFeatures_attentionRequests_label(),description:()=>a.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>a.settings_agentFeatures_stateSnapshot_label(),description:()=>a.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>a.settings_agentFeatures_prMonitor_label(),description:()=>a.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>a.settings_agentFeatures_taskGraph_label(),description:()=>a.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>a.settings_agentFeatures_peerAgents_label(),description:()=>a.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>a.settings_agentFeatures_mcpTools_label(),description:()=>a.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],aa=Object.fromEntries(ss.map(e=>[e.path,e.defaultValue]));export{Mi as $,gi as A,hi as B,Rt as C,Ls as D,kn as E,ss as F,oe as G,vr as H,$r as I,pi as J,yi as K,re as L,ui as M,kr as N,fn as O,En as P,P as Q,A as R,E as S,zr as T,ar as U,dn as V,mr as W,pn as X,ln as Y,Xt as Z,Ci as _,aa as a,Cs as a$,bn as a0,Ar as a1,ir as a2,Vn as a3,ai as a4,wi as a5,Kr as a6,Pi as a7,Ns as a8,Gs as a9,sn as aA,$s as aB,xn as aC,ii as aD,In as aE,Qs as aF,Ys as aG,Ws as aH,Us as aI,$ as aJ,wt as aK,Lt as aL,Dt as aM,ce as aN,Ft as aO,Pt as aP,Ct as aQ,Tt as aR,Ot as aS,Rs as aT,Ps as aU,Is as aV,Os as aW,ks as aX,ys as aY,ws as aZ,Ms as a_,dr as aa,Li as ab,ve as ac,ee as ad,Fi as ae,Ae as af,_e as ag,Bi as ah,Vi as ai,Wi as aj,Ui as ak,Gi as al,xi as am,Ni as an,Di as ao,ur as ap,Vs as aq,Fn as ar,qs as as,$i as at,zi as au,qi as av,ji as aw,Ki as ax,vi as ay,Xs as az,ia as b,Kn as b$,Es as b0,Ts as b1,As as b2,Fs as b3,en as b4,qr as b5,Dn as b6,Hr as b7,Ei as b8,Ai as b9,J as bA,Z as bB,On as bC,Mn as bD,Ii as bE,Vt as bF,an as bG,on as bH,rn as bI,nn as bJ,Ks as bK,tn as bL,_ as bM,Hs as bN,Nn as bO,Ln as bP,fr as bQ,he as bR,Bs as bS,si as bT,$n as bU,ti as bV,ri as bW,Yn as bX,Jn as bY,Zn as bZ,Qn as b_,Zs as ba,Js as bb,ki as bc,Cn as bd,lr as be,Rn as bf,ge as bg,na as bh,sa as bi,Zr as bj,Ji as bk,Xi as bl,ts as bm,ra as bn,Yi as bo,Zi as bp,Xr as bq,ta as br,Jr as bs,es as bt,_i as bu,zs as bv,Hi as bw,Tn as bx,Pn as by,wn as bz,v as c,zn as c0,ni as c1,jn as c2,Xn as c3,ei as c4,h as c5,Qr as c6,Oi as c7,Ti as c8,ea as c9,Qi as ca,oi as cb,li as cc,Si as cd,An as ce,Q as cf,Y as cg,xr as ch,yn as ci,mi as cj,Un as ck,Bn as cl,Gn as cm,Wn as cn,Ur as co,cn as cp,vn as d,mn as e,Sn as f,_n as g,gn as h,de as i,hn as j,pe as k,Ri as l,bi as m,Er as n,Cr as o,ci as p,di as q,js as r,Bt as s,Wt as t,un as u,fi as v,Hn as w,qn as x,Ds as y,xs as z};
1
+ var ke=Object.defineProperty;var Ee=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>Ee(e,typeof t!="symbol"?t+"":t,r);import{k as ye,N as Me,T as Re,d as Ce,l as we,w as Pe}from"./DhFS-yhc.js";import"./DYhIMPy1.js";import{bo as a,_ as Ie}from"./CNdlzZOD.js";import"./9iFKJfkz.js";import"./DIh4SQwA.js";import"./D3glRUn0.js";import{c as j}from"./ChTqQfQN.js";import"./BOR1_TRO.js";import{Ig as i,tK as Te,nz as M,ny as S,m2 as Oe,v7 as Fe,v5 as te,ha as Le,hb as De,c as xe,HV as Ne,a4 as We,x_ as T,x$ as U,xY as Be,xZ as Ve,bY as Ue,bX as Ge,ca as He,c9 as qe,nB as R}from"./BoIGV7s7.js";import{cE as je,ct as ze,bu as Ke,cJ as $e,cI as Qe,cN as Ye,c6 as Xe,cl as Ze,c8 as Je,cC as ie,ax as et,bQ as tt,cK as rt}from"./De3HYtL6.js";import{a as st,i as nt}from"./BdQCA_Nv.js";import{aI as it,U as ae,bJ as at,m as ot,L as ct,bW as z,g as lt,V as dt,bX as ut,c as pt,aJ as ft,bE as K,am as gt,aY as ht,Z as mt,aE as bt,bL as St,Y as _t,W as vt,X as At,bH as kt,w as Et}from"./VxpSEzE0.js";import{y as yt}from"./C9ruBEtx.js";import{y as I}from"./DrH3w3jB.js";import{i as N}from"./BBy57-xG.js";import{n as Mt}from"./WPm8oU1g.js";const Rt=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:Me,TOAST_COUNTDOWN_CLASS:Re,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:Ce,notify:ye,notifyMetadata:we,withToastCountdown:Pe},Symbol.toStringTag,{value:"Module"})),As=i.createSelector(e=>je.select(e)?.capabilities.gitlabCheckout===!0),ks=i.createSelector(e=>e.gitlabAuth.host),Es=i.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),ys=i.createSelector(e=>Te(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),Ms=i.createSelector(e=>e.gitlabAuth.isCancelling),Rs=i.createSelector(e=>e.gitlabAuth.cancelOutcome),Cs=i.createSelector(e=>e.gitlabAuth.isConfigured),ws=i.createSelector(e=>e.gitlabAuth.isAuthenticating),Ps=i.createSelector(e=>e.gitlabAuth.deviceFlow),Is=i.createSelector(e=>e.gitlabAuth.deviceGrantSupported),Ts=i.createSelector(e=>e.gitlabAuth.user),Os=i.createSelector(e=>e.gitlabAuth.error);i.createSelector(e=>e.gitlabAuth.method);const Fs=i.createSelector(e=>e.gitlabAuth.statusReady===!0),E=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"ui-designer",icon:"ui-designer",get name(){return a.specialists_builtin_uiDesigner_name()},get description(){return a.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return a.specialists_builtin_vulnerabilityScanner_name()},get description(){return a.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"developer",icon:"verifier",get name(){return a.specialists_builtin_developer_name()},get description(){return a.specialists_builtin_developer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"product-manager",icon:"coordinator",get name(){return a.specialists_builtin_productManager_name()},get description(){return a.specialists_builtin_productManager_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"maintenance-coordinator",icon:"ralph",get name(){return a.specialists_builtin_maintenanceCoordinator_name()},get description(){return a.specialists_builtin_maintenanceCoordinator_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return a.specialists_builtin_chiefOfStaff_name()},get description(){return a.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:"",promptUnavailable:!0}],oe=new Set(["pr-reviewer"]),Ls="developer";function Ds(e){return E.find(t=>t.id===e)}const Ct=i.createSelector(e=>e.githubAuth.mutationRequestId),wt=i.createSelector(e=>e.githubAuth.callbacksCancelled),Pt=i.createSelector(e=>e.githubAuth.isDisconnecting),ce=i.createSelector(e=>e.githubAuth.isAuthenticated),It=i.createSelector(e=>e.githubAuth.statusSettled===!0),Tt=i.createSelector(e=>e.githubAuth.requiresDaemonAuth),Ot=i.createSelector(e=>e.githubAuth.user),Ft=i.createSelector(e=>e.githubAuth.isAuthenticating),Lt=i.createSelector(e=>e.githubAuth.deviceFlow),Dt=i.createSelector(e=>e.githubAuth.error),xs=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:wt,selectGitHubAuthDeviceFlow:Lt,selectGitHubAuthError:Dt,selectGitHubAuthIsAuthenticated:ce,selectGitHubAuthIsAuthenticating:Ft,selectGitHubAuthIsDisconnecting:Pt,selectGitHubAuthMutationRequestId:Ct,selectGitHubAuthRequiresDaemonAuth:Tt,selectGitHubAuthStatusSettled:It,selectGitHubAuthUser:Ot},Symbol.toStringTag,{value:"Module"}));function f(e){return e??""}function xt(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((n,o)=>f(n.provider)===f(s[o].provider)&&n.model===s[o].model&&n.hint===s[o].hint&&f(n.reasoningEffort)===f(s[o].reasoningEffort))}function re(e,t){if(e.source!=="user"||!t?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const r=e.bundled;return r?f(e.name)===f(r.name)&&f(e.description)===f(r.description)&&f(e.behaviorPrompt)===f(r.behaviorPrompt)&&f(e.roleReminder)===f(r.roleReminder)&&f(e.reasoningEffort)===f(r.reasoningEffort)&&xt(e.modelOptions,r.modelOptions):!1}const Ns=i.createSelector(e=>e.specialists.bundledSpecialists),Nt=i.createSelector(e=>e.specialists.fileSpecialists),Ws=i.createSelector(e=>M(Nt.select(e))),Bs=i.createSelector(e=>e.specialists.userOverrides);i.createSelector(e=>e.specialists.overridesLoaded);const Vs=i.createSelector(e=>e.specialists.customSpecialistsLoaded),Us=i.createSelector(e=>e.specialists.fileSpecialistsLoaded),Gs=i.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Hs=i.createSelector(e=>e.specialists.specialistsFolderPath),qs=i.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});i.createSelector(e=>e.specialists.providerModelOverrides);const W=i.createSelector((e,t)=>!(oe.has(t)&&!ce.select(e)));function Wt(e,t){return t?e:e.filter(r=>!oe.has(r.id))}function Bt(e,t){return Wt(e,t).filter(r=>!r.hidden)}function js(e,t){return Bt(e,t).filter(r=>r.role!=="internal")}const _=i.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(l=>({...l,defaultModel:l.model,defaultBehaviorPrompt:l.behaviorPrompt??l.prompt??"",defaultAgentType:l.agentType}));const r=M(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,n=new Set,o=[];for(const l of r)!n.has(l.id)&&W.select(e,l.id)&&(n.add(l.id),o.push({id:l.id,name:l.name,description:l.description,codingAgent:l.codingAgent,defaultModel:l.model||void 0,defaultBehaviorPrompt:l.behaviorPrompt,roleReminder:l.roleReminder,source:l.source,importedFrom:l.importedFrom,unsupportedFields:l.unsupportedFields,requiredSkills:l.requiredSkills,missingSkills:l.missingSkills,hidden:l.hidden,resolvedModel:l.resolvedModel,resolvedProvider:l.resolvedProvider,modelOptions:l.modelOptions,reasoningEffort:l.reasoningEffort,role:l.role,teamAgents:l.teamAgents,icon:l.icon}));for(const l of s)!n.has(l.id)&&W.select(e,l.id)&&(n.add(l.id),o.push(l));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const l of E)!n.has(l.id)&&W.select(e,l.id)&&(n.add(l.id),o.push(l));const c=new Map;for(const l of E)c.has(l.id)||c.set(l.id,c.size);for(const l of s)c.has(l.id)||c.set(l.id,c.size);return o.sort((l,p)=>{const m=c.has(l.id),x=c.has(p.id);return m&&x?(c.get(l.id)??0)-(c.get(p.id)??0):m&&!x?-1:!m&&x?1:l.name.localeCompare(p.name)}),o}),zs=i.createSelector(e=>{const t=_.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...E.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,n)=>+!r.has(s.id)-+!r.has(n.id)||s.id.localeCompare(n.id)),t[0]}),Vt=i.createSelector((e,t)=>{const r=S(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(n=>n.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&M(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const n=E.find(o=>o.id===t);if(n)return{id:n.id,name:n.name,description:n.description,source:"builtin"}}return null}),Ks=i.createSelector((e,t)=>Vt.select(e,t)?.name??null),$s=i.createSelector((e,t,r)=>{const n=_.select(e,r).find(o=>o.id===t);return n?n.defaultModel?n.defaultModel:n.resolvedModel??"":""}),Qs=i.createSelector((e,t,r)=>_.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Ys=i.createSelector((e,t,r)=>_.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Xs=i.createSelector((e,t,r)=>{const n=_.select(e,r).find(o=>o.id===t);return n?n.defaultBehaviorPrompt:""});function O(e,t){return t.some(r=>r.id===e)||E.some(r=>r.id===e)}const Zs=i.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(n=>n.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&O(t,e.specialists.bundledSpecialists)}return O(t,e.specialists.bundledSpecialists)}),Js=i.createSelector((e,t,r)=>r?!!$.select(e,t,r):!!S(e.specialists.fileSpecialists,t)),en=i.createSelector((e,t,r)=>{if(r){const o=$.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:O(t,e.specialists.bundledSpecialists)&&!re(o)}if(!O(t,e.specialists.bundledSpecialists))return!1;const n=S(e.specialists.fileSpecialists,t);return!n||n.source!=="user"?!1:!re(n)}),$=i.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(n=>n.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return S(e.specialists.fileSpecialists,t)}),tn=i.createSelector((e,t,r)=>{const s=$.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(n=>n.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(n=>n.id===t)?"Built-in":null}),rn=i.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=S(e.specialists.fileSpecialists,t);if(s)return s.filePath;const n=e.specialists.bundledSpecialists.find(o=>o.id===t);if(n&&"filePath"in n)return n.filePath}),sn=i.createSelector((e,t,r)=>{if(r){const n=_.select(e,r).find(l=>l.id===t),o=n?.codingAgent||n?.resolvedProvider;if(o)return ze.select(e,o,r);const c=Ke.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[c]?.available?c:""}const s=S(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:Ut.select(e,t)}),Ut=i.createSelector((e,t)=>{const s=_.select(e).find(n=>n.id===t);return s?.codingAgent?s.codingAgent:it.select(e)?ae.select(e):""}),nn=i.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?M(r):[]}),an=i.createSelector((e,t)=>e.specialists.creationByContext?.[t]??Oe),on=i.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),B=j("Clipboard");async function cn(e){let t;if(st())try{const r=await nt("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,B.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw B.error("Browser clipboard write failed",r,{electronError:t}),r}throw B.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Gt=["connected","disconnected","unreachable","revoked","update-required"],y=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),u=e=>typeof e=="string"&&e.length>0,C=e=>typeof e=="string"&&e.length>0?e:void 0,le=e=>Number.isSafeInteger(e)&&e>=0?e:0;function Ht(e){if(!y(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(s=>y(s)&&u(s.id)?[{id:s.id,status:typeof s.status=="string"?s.status:"unknown",models:Array.isArray(s.models)?s.models.filter(n=>u(n)):[]}]:[]):[],r=C(e.intentdVersion);return{...r?{intentdVersion:r}:{},providers:t}}function ln(e){if(!y(e)||!u(e.id)||!u(e.name)||!u(e.fingerprint)||!Gt.includes(e.state)||!Number.isInteger(e.port)||!u(e.addedAt))return null;const t=y(e.platform)&&u(e.platform.os)&&u(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,r=Ht(e.capabilities),s=C(e.tcAddress),n=C(e.observedAt),o=C(e.lastConnectedAt),c=Fe(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>u(p)):[],port:e.port,...s?{tcAddress:s}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:le(e.runningAgents),...r?{capabilities:r}:{},...l!==void 0?{nodeProtocol:l}:{},...n?{observedAt:n}:{},addedAt:e.addedAt,...o?{lastConnectedAt:o}:{},...c?{cloud:c}:{}}}function dn(e){if(!y(e)||!u(e.credentialId)||!u(e.backendId)||!u(e.backendName)||!u(e.createdAt))return null;const t=C(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:le(e.runningAgents)}}function un(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function qt(e){if(!y(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&u(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&u(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function pn(e){if(!Array.isArray(e))return null;const t=[];for(const r of e){const s=qt(r);if(!s)return null;t.push(s)}return t}function jt(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function P(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const zt={macos:"macOS",linux:"Linux",windows:"Windows"},Kt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function A(e,t){const r=[e&&(zt[e]??e),t&&(Kt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function $t(e){return e?.placement?.target==="remote"||I(e?.placement?.target)}const Qt=new Set(["running","paused","resuming","pausing","stopping"]);function Yt(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const r=t?.cloud?.state;return r&&Qt.has(r)?r:e.effectiveIsolation==="pending"?"starting":null}function de(e,t){if(!e||!$t(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null;if(I(e.placement?.target))return{nodeId:r,name:e.nodeName?.trim()||Le(s?.cloud?.provider??De(e.placement?.cloudMachineId)),platform:A(s?.platform?.os,s?.platform?.arch),state:"ready",cloud:{state:Yt(e,s)}};const n=A(e.placement?.os,e.placement?.arch)??A(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||a.remoteAgent_location_unknownMachine(),platform:n,state:o}}function fn(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||a.remoteAgent_location_unknownMachine(),platform:A(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function ue(e){switch(e){case"starting":return a.cloudMachines_agent_starting();case"running":return a.cloudMachines_agent_running();case"paused":return a.cloudMachines_agent_paused();case"resuming":return a.cloudMachines_agent_resuming();case"pausing":return a.cloudMachines_agent_pausing();case"stopping":return a.cloudMachines_agent_stopping();default:return null}}function gn(e){const t=ue(e.cloud?.state);return t?a.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function hn(e){if(e.cloud){const r=ue(e.cloud.state),s=a.remoteAgent_location_tooltipNoPlatform({machine:e.name});return r?a.remoteAgent_location_tooltipWithState({location:s,state:r}):s}const t=e.platform?a.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):a.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_unreachable_label()});case"revoked":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_revoked_label()});default:return t}}function pe(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":null}function fe(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const r=JSON.parse(e.slice(t+1));if(r&&typeof r=="object"&&typeof r.code=="string")return{message:e.slice(0,t).trim(),data:r}}catch{}return null}function Xt(e,t){const r=e.detail??"",s=fe(r),n=e.code==="machine-update-required"||s?.data.code==="machine-update-required";if(n&&s?.data.reason==="prepared-checkout")return{updateRequired:n,message:a.remoteAgent_updateRequired_preparedCheckout({machine:t})};const o=te(s?.data),c=o??(e.code?te({code:e.code}):null);return c?{updateRequired:n,message:s?.message||r,cloud:c,cloudDetailKnown:!!o}:{updateRequired:n,message:s?.message||r}}function mn(e){if(!I(e?.placement?.target)||!e.placementError||e.status!==xe.Error)return null;const t=Xt(e.placementError,"");return t.cloud?t:null}const Zt=["attachments-too-large-for-machine:","node-prompt-too-large:"],Jt="remote-agent-unsupported:";function se(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function bn(e){const t=fe(e)?.message??e;for(const s of Zt){const n=t.indexOf(s);if(n<0)continue;const o=t.slice(n+s.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),c=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(o);return c?a.remoteAgent_attachmentsTooLargeSized_error({size:se(Number(c[1])),limit:se(Number(c[2]))}):o?a.remoteAgent_attachmentsTooLarge_error({detail:o}):a.remoteAgent_attachmentsTooLargeNoDetail_error()}const r=t.indexOf(Jt);return r>=0&&/attachment/i.test(t.slice(r))?a.remoteAgent_attachmentsUnsupported_error():null}function Sn(e){return I(e?.placement?.target)&&pe(e,de(e))==="starting"}function _n(e,t){if(!I(e?.placement?.target))return!1;const r=de(e,t);return r?.cloud?.state==="resuming"&&pe(e,r)===null}const v="",G="cloud:";function Q(e){return`${G}${e}`}function Y(e){return e?.startsWith(G)&&e.slice(G.length)||null}const vn=Q("e2b");function er(e,t){return e?.find(r=>Q(r.cloudMachineId)===t&&r.unavailableReason===null)}const tr=new Set(["connected","disconnected"]);function rr(e){switch(e){case"unreachable":return a.remoteMachines_state_unreachable_label();case"revoked":return a.remoteMachines_state_revoked_label();case"update-required":return a.remoteMachines_state_updateRequired_label();default:return}}function X(e){return tr.has(e.state)}function sr({backendLabel:e,backendPlatform:t,machines:r,cloud:s}){const n=[{id:v,label:e,platform:A(t?.os,t?.arch),disabled:!1},...r.map(o=>{const c=A(o.platform?.os,o.platform?.arch);return X(o)?{id:o.id,label:o.name,platform:c,disabled:!1}:{id:o.id,label:o.name,platform:c,disabled:!0,reason:rr(o.state)}})];for(const o of s??[])n.push({id:Q(o.cloudMachineId),label:o.label,platform:null,kind:"cloud",disabled:o.unavailableReason!==null,...o.unavailableReason?{reason:o.unavailableReason}:o.needsProfile?{hint:a.cloudMachines_startOn_hint()}:{}});return n}function An(e){return e.find(t=>t.id===v)?.label??""}function nr({remoteMachinesVisible:e,supported:t,machines:r,cloud:s}){return e&&t&&(r.some(X)||(s??[]).some(n=>n.unavailableReason===null))}function ir(e,t,r){if(!e)return v;if(Y(e))return er(r,e)?e:v;const s=t.find(n=>n.id===e);return s&&X(s)?s.id:v}function kn(e,{cloudEntries:t=!1,providerOf:r}={}){const s=Y(e);return s?t&&r?.(s)==="northflank"?{target:"cloud",checkout:"isolated",cloudMachineId:s}:t?{target:"e2b",checkout:"isolated",cloudMachineId:s}:{target:"e2b",checkout:"isolated"}:e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function En({groups:e,providerRef:t,model:r}){const s=c=>c.options.filter(l=>!l.disabled),n=e.find(c=>c.key===t),o=n?s(n):[];if(r){const c=Ne(r).modelId;if(o.some(l=>l.value===c))return null}else if(o.length>0)return null;if(n&&o.length>0)return{providerId:n.key,modelId:o[0].value};for(const c of e){if(c.key==="default")continue;const l=s(c);if(l.length>0)return{providerId:c.key,modelId:l[0].value}}return null}function ar(e,t,r,s){const n=e.map(P),o=n.indexOf(t),c=n.indexOf(r);if(o<0||c<0||o===c)return null;let l=c+(s==="after"?1:0);if(o<l&&(l-=1),l===o)return null;const p=[...e],[m]=p.splice(o,1);return p.splice(l,0,m),p.map(jt)}function yn(e,t,r){const s=e.findIndex(o=>P(o)===t),n=e[s+r];return s<0||!n?null:ar(e,t,P(n),r===-1?"before":"after")}function or(e,t){if(e===v)return"local";const r=t==="cloud"?Y(e):null;return P(r?{kind:"cloud",cloudMachineId:r}:{kind:"machine",nodeId:e})}function cr(e,t){const r=new Map(t.map((n,o)=>[P(n),o])),s=n=>r.get(or(n.id,n.kind))??t.length;return e.map((n,o)=>({option:n,index:o})).sort((n,o)=>s(n.option)-s(o.option)||n.index-o.index).map(({option:n})=>n)}const Z=i.createSelector(e=>yt.select(e)&&e.remoteMachines?.supported===!0),Mn=i.createSelector(e=>Z.select(e)&&at.select(e)),ge=i.createSelector(e=>Z.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),lr=i.createSelector(e=>ge.select(e)?e.remoteMachines.order??[]:[]),Rn=i.createSelector(e=>e.remoteMachines.orderSaving!==null),J=i.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Cn=i.createSelector(e=>e.remoteMachines.localFingerprint),wn=i.createSelector(e=>e.remoteMachines.pending),Pn=i.createSelector(e=>e.remoteMachines.failures),In=i.createSelector(e=>e.remoteMachines.executorBackends??[]),dr=i.createSelector((e,t)=>{if(t===We)return a.layout_daemonStatus_localConnection_label();const r=S(e.connections.connections,t);return r?ot(r):t}),ur=i.createSelector(e=>dr.select(e,e.connections.windowBackendId)),Tn=i.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),On=i.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return ct({catalogProfiles:Ye.select(e,t),defaultRemoteIncompatibility:Qe.select(e,t),defaultRemoteLaunch:$e.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),Fn=i.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),he=i.createSelector(e=>nr({remoteMachinesVisible:Z.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:J.select(e),cloud:z(e)}));function pr(e){const t=S(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const fr=i.createSelector(e=>{const t=sr({backendLabel:ur.select(e),backendPlatform:pr(e),machines:J.select(e),cloud:z(e)});return ge.select(e)?cr(t,lr.select(e)):t}),Ln=i.createSelector(e=>he.select(e)?fr.select(e):[]),Dn=i.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),xn=i.createSelector((e,t,r)=>he.select(e)?ir(t,J.select(e),me(e,r)):v);function me(e,t){const r=z(e);if(!r||!t)return r;const s=e.cloudMachines?.providers??{};return r.map(n=>{if(n.unavailableReason)return n;const o=lt(e,t,s[n.cloudMachineId]??null);return o?{...n,unavailableReason:o}:n})}const Nn=i.createSelector((e,t)=>me(e,t)),gr=j("WorkspaceValidation");async function Wn(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return hr(s)?br(s):Sr(s,t,r)}function hr(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function mr(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const n of r){const o=t.match(n);if(o){const c=o[2].replace(/\.git$/,"");return c?{owner:o[1],repo:c}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const n=s[2].replace(/\.git$/,"");return n?{owner:s[1],repo:n}:null}return null}async function br(e){return mr(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function Sr(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await N("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const c=s.data;return c.exists?c.isDirectory?c.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c}:c.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c,warning:a.workspace_validation_insideParentRepo_warning({path:c.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:c}:t?c.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:c}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:c}:t?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:c}}if(!(await N("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await N("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(gr.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Bn(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Vn(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Un(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Gn(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Hn(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const _r=["idle","exited"];function vr(e){return e===void 0||!_r.includes(e)}function qn(e){return e.status==="restarting"?"restarting":vr(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function Ar(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const jn=i.createSelector(e=>e.voiceSettings.isLoading),zn=i.createSelector(e=>e.voiceSettings.available),Kn=i.createSelector(e=>e.voiceSettings.provider),$n=i.createSelector(e=>e.voiceSettings.engine),Qn=i.createSelector(e=>e.voiceSettings.osEngineAvailable),Yn=i.createSelector(e=>e.voiceSettings.keyConfigured),Xn=i.createSelector(e=>e.voiceSettings.vocabulary),Zn=i.createSelector(e=>e.voiceSettings.openaiModel),Jn=i.createSelector(e=>e.voiceSettings.language),ei=i.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),ti=i.createSelector(e=>e.voiceSettings.inputDeviceId),ri=i.createSelector(e=>e.voiceSettings.inputDevices),si=i.createSelector(e=>e.voiceSettings.busyProvider),ni=i.createSelector(e=>e.voiceSettings.error),ii=i.createSelector(e=>Xe.select(e)?"unavailable":Ar(e.voiceSettings)),H="intent.voice.inputDevice";let q;function kr(){if(q!==void 0)return q;try{const e=localStorage.getItem(H);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ai(e){q=e;try{e===null?localStorage.removeItem(H):localStorage.setItem(H,e)}catch{}}let F=null;function oi(e){F=e}function ci(){const e=F;return F=null,e}function Er(){F=null}const yr=300,Mr=300;class Rr{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??yr,this.doublePressWindowMs=t.doublePressWindowMs??Mr,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let L=null;function li(e){L=e}function di(){const e=L;return L=null,e}function Cr(){L=null}const wr=12e4,Pr=["audio/webm;codecs=opus","audio/webm"];function ui(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Ir(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Tr(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Pr.find(e=>MediaRecorder.isTypeSupported(e))}class Or{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??wr,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Ir(this.deviceId))}catch(n){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(n),o?"discarded":"error"}if(this.discardRequested){for(const n of t.getTracks())n.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Tr(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=n=>{n.data&&n.data.size>0&&this.chunks.push(n.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=n=>this.handleRecorderError(n),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,n=this.cancelRequested;this.teardown(),!n&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Fr=300;function Lr(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Dr={stopReason:"manual",autoSend:!1};let g=null,b=null,k=0,w=null;const D=new Rr({onRecordStart:()=>{w&&xr(w)},onRecordStop:e=>{be(w,e)}});function pi(){return g!==null}function fi(){return g}function gi(e){w=e,k+=1,k===1&&D.keyDown()}function hi(e){w=e,k!==0&&(k-=1,k===0&&D.keyUp())}function xr(e){if(g!==null)return;Cr(),Er();const t=new Or({deviceId:kr(),onFinished:r=>{g===t&&(g=null);const s=b??{stopReason:"auto-stop",autoSend:!1},n=b!==null;if(b=null,e.dispatch(T()),n||D.reset(),r.durationMs<Fr){s.autoSend&&e.dispatch(U());return}e.dispatch(Be({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{g===t&&(g=null),b=null,e.dispatch(T()),e.showHint(Lr(r)?a.hardwareConsole_ptt_micDenied_message():a.hardwareConsole_ptt_recordingFailed_message())}});g=t,e.dispatch(Ve()),t.start().then(r=>{if(r!=="recording"&&(g===t&&(g=null),r==="discarded")){const s=b?.autoSend===!0;b=null,e.dispatch(T()),s&&e.dispatch(U())}})}function be(e,t){const r=g;if(r===null){t.autoSend&&e?.dispatch(U());return}b=t,r.stop()}function mi(){be(null,Dr)}function bi(e){D.reset(),k=0,b=null;const t=g;t!==null&&(g=null,t.cancel(),e.dispatch(T()))}const Nr=j("HardwareConsoleVoiceSetupToast"),Wr="hardware-console-voice-setup";let V=null;function Br(){return V||(V=Ie(()=>Promise.resolve().then(()=>Rt),void 0,import.meta.url).then(e=>e.notify)),V}function Vr(){Mt("/settings?tab=connections#voice").catch(e=>{Nr.error("Failed to open voice settings from setup toast",e)})}function Ur(){return{label:a.hardwareConsole_voice_openSettings_label(),onClick:()=>Vr()}}function Si(){Br().then(e=>{e.error(a.hardwareConsole_voice_noKey_error(),{id:Wr,action:Ur()})})}const _i=i.createSelector(e=>e.externalEditors.selectedAction),Gr=i.createSelector(e=>e.externalEditors.editors),Hr=i.createSelector(e=>{const t=M(Gr.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(c=>[c.id,c])),n=r.flatMap(c=>{const l=s.get(c);return l?[l]:[]}),o=new Set(r);return[...n,...t.filter(({id:c})=>!o.has(c))]}),vi=i.createSelector(e=>e.externalEditors.editorOrder??[]),Ai=i.createSelector(e=>e.externalEditors.loading),ki=i.createSelector(e=>e.externalEditors.lastFetched),qr=i.createSelector(e=>e.externalEditors.hiddenEditorIds),Ei=i.createSelector((e,t)=>{if(!(t?Ze.select(e,t):Je.select(e)))return[];const s=qr.select(e);return Hr.select(e).filter(n=>n.installed&&!s.includes(n.id))});function yi(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let jr=0;function zr(e,t){const r=++jr;return i.dispatch(Ge(e,t,r)),r}function Mi(e,t,r){i.dispatch(Ue(e,t,r))}async function Se(e,t,r,s){const n=crypto.randomUUID(),o=s?.source??"control";try{return(await i.dispatch(He({requestId:n,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:ie.select(i.state)},{...s,intent:s?.intent??zr(e,t)}))).status==="success"}finally{i.dispatch(qe(n,o))}}async function Ri(e,t,r,s,n){return Se(e,t,{kind:"effort",effort:r,previous:s},n)}async function Ci(e,t,r,s,n){return Se(e,t,{kind:"reconcile",current:r??null,levels:s},n)}const Kr=i.createSelector((e,t)=>M(e.agentModel.mutations).filter(r=>r.consumerId===t)),wi=i.createSelector((e,t)=>Kr.select(e,t).some(r=>r.status==="pending")),Pi=i.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],n=et.select(e,t),o=dt.select(e,t),c=e.daemonHealth.stats?.protocolVersion,l=ut(c),p=l?pt(s?.model,null,o):s?.model;return{session:s,providerId:n,levels:o,legacy:l,identity:JSON.stringify([p,n]),connection:ie.select(e),canWrite:!!s&&s.workspaceId===r&&!tt.select(e,r)}});function $r(e,t,r=!1){return e!=="auggie"||t===!0||r}const Ii=i.createSelector(e=>ft.select(e)?null:K.select(e)),Qr=i.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),h=i.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),Ti=i.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),Oi=i.createSelector((e,t)=>!!h.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===Qr.select(e)),_e=i.createSelector((e,t)=>t?h.select(e,t)?.catalog.providers??[]:rt.select(e)),ve=i.createSelector((e,t)=>{if(!t)return ae.select(e);const r=h.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),ee=i.createSelector((e,t)=>{if(!t)return gt.select(e);const r=h.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),Ae=i.createSelector((e,t)=>{if(!t)return ht.select(e);const r=ee.select(e,t),s=ve.select(e,t),n=h.select(e,t)?.readiness??{};return _e.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&n[o.id]?.available).map(o=>o.id)}),Fi=i.createSelector((e,t)=>{const r=ee.select(e,t),s=t?h.select(e,t)?.readiness??{}:K.select(e);return _e.select(e,t).filter(n=>$r(n.id,s[n.id]?.available,r[n.id]===!0)).map(n=>n.id)}),Li=i.createSelector((e,t)=>t?Ae.select(e,t):mt.select(e)),Di=i.createSelector((e,t)=>_.select(e,t)),xi=i.createSelector((e,t)=>t?!!h.select(e,t):bt.select(e)),Ni=i.createSelector((e,t)=>{if(!t)return St.select(e);const r=h.select(e,t)?.settings??[],s=ve.select(e,t),n=r.find(l=>l.path==="model.providerDefaults")?.value,o=n&&typeof n=="object"?n[s]:void 0;if(typeof o=="string")return o;const c=r.find(l=>l.path==="model.default")?.value;return typeof c=="string"?c:""}),Wi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):_t.select(e)),Bi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):vt.select(e)),Vi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):At.select(e)),Ui=i.createSelector((e,t,r)=>{if(!r)return kt.select(e,t);const s=ee.select(e,r),n=h.select(e,r);return Ae.select(e,r).filter(o=>o!==t&&(s[o]||n?.catalog.providers.find(c=>c.id===o)?.canBeDisabled===!1)&&Et(o,n?.readiness[o]?.authenticated))}),Gi=i.createSelector((e,t)=>t?h.select(e,t)?.readiness??{}:K.select(e)),Yr={},Hi=i.createSelector(e=>e.providerSettings?.profiles?.status??Yr),qi=i.createSelector(e=>e.directoryPicker.listing),ji=i.createSelector(e=>e.directoryPicker.loading),zi=i.createSelector(e=>e.directoryPicker.error),Ki=i.createSelector(e=>e.directoryPicker.pathError),$i=i.createSelector(e=>e.directoryPicker.createError),ne={},Xr=i.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Qi=i.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(n=>n.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Yi=i.createSelector(e=>e.mcpSettings.loading),Xi=i.createSelector(e=>e.mcpSettings.error),Zi=i.createSelector(e=>e.mcpSettings.mutationError??null),Ji=i.createSelector(e=>e.mcpSettings.enabled),Zr=i.createSelector(e=>e.mcpSettings.disabledServers),Jr=i.createSelector(e=>e.mcpSettings.statusMap),es=i.createSelector(e=>e.mcpSettings.toolsMap),ts=i.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(n=>[n.id,R(n)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(n=>{const o=s.get(n.serverId);return o&&n.lastError?[[o,n.lastError]]:[]}))}),rs=i.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??ne:ne),ea=i.createSelector((e,t)=>Object.keys(rs.select(e,t))),ta=i.createSelector(e=>{const t=Xr.select(e),r=Jr.select(e),s=es.select(e),n=Zr.select(e),o=ts.select(e);return t.map(c=>{const l=R(c)in n,p=s[R(c)]||[];let m=r[R(c)]||"disconnected";return l&&(m="disabled"),{...c,disabled:l,status:m,tools:p,toolCount:p.length,errorMessage:o[R(c)]}})});i.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const ra=i.createSelector(e=>e.mcpSettings.lastImportedCount),sa=i.createSelector(e=>e.mcpSettings.advancedSaveStatus),na=i.createSelector(e=>e.mcpSettings.advancedSaveError),ia=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],ss=[{path:"agentFeatures.backgroundHooks",label:()=>a.settings_agentFeatures_backgroundHooks_label(),description:()=>a.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>a.settings_agentFeatures_hostExec_label(),description:()=>a.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>a.settings_agentFeatures_scripts_label(),description:()=>a.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>a.settings_agentFeatures_terminalAccess_label(),description:()=>a.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>a.settings_agentFeatures_browserAutomation_label(),description:()=>a.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>a.settings_agentFeatures_desktopControl_label(),description:()=>a.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>a.settings_agentFeatures_richChatBlocks_label(),description:()=>a.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>a.settings_agentFeatures_structuredQuestions_label(),description:()=>a.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>a.settings_agentFeatures_secretRequests_label(),description:()=>a.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>a.settings_agentFeatures_attentionRequests_label(),description:()=>a.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>a.settings_agentFeatures_stateSnapshot_label(),description:()=>a.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>a.settings_agentFeatures_prMonitor_label(),description:()=>a.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>a.settings_agentFeatures_taskGraph_label(),description:()=>a.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>a.settings_agentFeatures_peerAgents_label(),description:()=>a.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>a.settings_agentFeatures_mcpTools_label(),description:()=>a.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],aa=Object.fromEntries(ss.map(e=>[e.path,e.defaultValue]));export{Mi as $,gi as A,hi as B,Rt as C,Ls as D,kn as E,ss as F,oe as G,vr as H,$r as I,pi as J,yi as K,re as L,ui as M,kr as N,fn as O,En as P,P as Q,A as R,E as S,zr as T,ar as U,dn as V,mr as W,pn as X,ln as Y,Xt as Z,Ci as _,aa as a,Cs as a$,bn as a0,Ar as a1,ir as a2,Vn as a3,ai as a4,wi as a5,Kr as a6,Pi as a7,Ns as a8,Gs as a9,sn as aA,$s as aB,xn as aC,ii as aD,In as aE,Qs as aF,Ys as aG,Ws as aH,Us as aI,$ as aJ,wt as aK,Lt as aL,Dt as aM,ce as aN,Ft as aO,Pt as aP,Ct as aQ,Tt as aR,Ot as aS,Rs as aT,Ps as aU,Is as aV,Os as aW,ks as aX,ys as aY,ws as aZ,Ms as a_,dr as aa,Li as ab,ve as ac,ee as ad,Fi as ae,Ae as af,_e as ag,Bi as ah,Vi as ai,Wi as aj,Ui as ak,Gi as al,xi as am,Ni as an,Di as ao,ur as ap,Vs as aq,Fn as ar,qs as as,$i as at,zi as au,qi as av,ji as aw,Ki as ax,vi as ay,Xs as az,ia as b,Kn as b$,Es as b0,Ts as b1,As as b2,Fs as b3,en as b4,qr as b5,Dn as b6,Hr as b7,Ei as b8,Ai as b9,J as bA,Z as bB,On as bC,Mn as bD,Ii as bE,Vt as bF,an as bG,on as bH,rn as bI,nn as bJ,Ks as bK,tn as bL,_ as bM,Hs as bN,Nn as bO,Ln as bP,fr as bQ,he as bR,Bs as bS,si as bT,$n as bU,ti as bV,ri as bW,Yn as bX,Jn as bY,Zn as bZ,Qn as b_,Zs as ba,Js as bb,ki as bc,Cn as bd,lr as be,Rn as bf,ge as bg,na as bh,sa as bi,Zr as bj,Ji as bk,Xi as bl,ts as bm,ra as bn,Yi as bo,Zi as bp,Xr as bq,ta as br,Jr as bs,es as bt,_i as bu,zs as bv,Hi as bw,Tn as bx,Pn as by,wn as bz,v as c,zn as c0,ni as c1,jn as c2,Xn as c3,ei as c4,h as c5,Qr as c6,Oi as c7,Ti as c8,ea as c9,Qi as ca,oi as cb,li as cc,Si as cd,An as ce,Q as cf,Y as cg,xr as ch,yn as ci,mi as cj,Un as ck,Bn as cl,Gn as cm,Wn as cn,Ur as co,cn as cp,vn as d,mn as e,Sn as f,_n as g,gn as h,de as i,hn as j,pe as k,Ri as l,bi as m,Er as n,Cr as o,ci as p,di as q,js as r,Bt as s,Wt as t,un as u,fi as v,Hn as w,qn as x,Ds as y,xs as z};
@@ -1,4 +1,4 @@
1
- import{g as ze}from"./CpPVAOg5.js";import{s as Xe}from"./Es_LZ_6E.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./BOY33UBS.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
1
+ import{g as ze}from"./CVWsHMge.js";import{s as Xe}from"./DvzRlb0E.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./DMv-E05P.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:y.match,token:this.terminals_[I]||I,line:y.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(N[0]){case 1:o.push(I),E.push(y.yytext),t.push(y.yylloc),o.push(N[1]),I=null,$e=y.yyleng,l=y.yytext,ge=y.yylineno,Ie=y.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],E,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),E.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:m(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var n=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=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),o.length-1&&(this.yylineno-=o.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(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:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as pt,bq as S,a_ as E,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./CNdlzZOD.js";import{bs as $t,ca as K,aD as n,c9 as i,a7 as L,ay as _,W as w,bn as kt,bS as yt,aA as I,aB as St}from"./DYhIMPy1.js";import{G as _t}from"./DrH3w3jB.js";import{c as wt}from"./b0njYmMP.js";import{aZ as It}from"./Ca3Yads8.js";import{Ig as u,eu as Bt,ev as Wt,IM as Rt,J1 as Ut,IR as Tt,uF as Dt,o3 as V}from"./BJpbRkma.js";import{g as Ft}from"./DfN8_dcw.js";import{bz as At,bB as Ht,dp as Mt}from"./BsesepNZ.js";import{C as f}from"./DypB-Dwi.js";import"./DoV4Ngwf.js";import"./9iFKJfkz.js";import"./DIh4SQwA.js";import{bc as Nt}from"./BIfN-lxi.js";import"./DwkxcWNI.js";import"./D6NxvjAo.js";import{T as xt}from"./BUU84hQY.js";import"./BxRFeUGV.js";import{M as qt}from"./Dd-c6aT7.js";import{V as Et}from"./D7jA8MQK.js";import{O as Kt}from"./HdOtmFfs.js";import{bN as Lt,bK as Vt,b5 as Gt}from"./CdlZ8r5v.js";import{i as Ot}from"./H2jLkRRS.js";var zt=St("<!> <!>",1);function Jt(B,p){if(new.target)return pt({component:Jt,...B});$t(p,!0);const W=()=>h(et,"$workspace",m),P=()=>h(X,"$ftChanges$",m),G=()=>h(Y,"$ftCommits$",m),R=()=>h(j,"$foldUnchanged",m),U=()=>h(Z,"$lineWrapping",m),T=()=>h(Q,"$diffSideBySide",m),[m,O]=Pt(),z=t=>{Et(t,{embedded:!0,get foldEnabled(){return R()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Rt())})},J=t=>{var e=zt(),r=_(e);{let l=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>qt,(y,ht)=>{ht(y,{get icon(){return Nt},get label(){return n(l)},onclick:Zt=>ft()})})}var s=yt(r,2);{var d=l=>{Kt(l,{get filePath(){return n($)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};E(s,l=>{n($)&&l(d)})}w(t,e)},Z=Lt(),j=Vt(),Q=Gt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=It(()=>o()),X=At(C),Y=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=Ft(),et=Mt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);K(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(Bt(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),F=i(()=>a().data?.gitRootPath),v=i(()=>n(F)||n(nt)),$=i(()=>a().diffPath&&n(v)?Ot(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function A(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>A(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!A(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of G())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const M=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),N=i(()=>a().data?.branchBaseRef),x=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(N)||n(x))),k=i(()=>{if(n(g)?.commitHash)return n(g);if(n(M))return n(M);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n($)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}K(()=>{!D||!b()||D.registerActions({display:z,actions:J})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),I()},get workspaceId(){return o()},set workspaceId(t){o(t),I()},get isActive(){return b()},set isActive(t){b(t),I()},$set:bt,$on:(t,e)=>Ct(p,t,e)},q=L(),lt=_(q);{var mt=t=>{var e=L(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),l=i(()=>!n(c)&&n(k).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n(k).stage===f.Staged?ut:void 0);xt(s,{get active(){return b()},get change(){return n(k)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return R()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(N)},get branchBaseCommitSha(){return n(x)},get gitRootId(){return n(c)},get gitRootPath(){return n(F)},get onStageHunk(){return n(l)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};E(lt,t=>{a().diffPath&&t(mt)})}w(B,q);var gt=kt(ct);return O(),gt}export{Jt as default};
1
+ import{t as pt,bq as S,a_ as E,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./CNdlzZOD.js";import{bs as $t,ca as K,aD as n,c9 as i,a7 as L,ay as _,W as w,bn as kt,bS as yt,aA as I,aB as St}from"./DYhIMPy1.js";import{G as _t}from"./DrH3w3jB.js";import{c as wt}from"./b0njYmMP.js";import{aZ as It}from"./5lVDKMGV.js";import{Ig as u,eu as Bt,ev as Wt,IM as Rt,J1 as Ut,IR as Tt,uF as Dt,o3 as V}from"./BoIGV7s7.js";import{g as Ft}from"./DfN8_dcw.js";import{bz as At,bB as Ht,dp as Mt}from"./De3HYtL6.js";import{C as f}from"./DypB-Dwi.js";import"./CseMAxRT.js";import"./9iFKJfkz.js";import"./DIh4SQwA.js";import{bc as Nt}from"./BIfN-lxi.js";import"./D3glRUn0.js";import"./kw6HOG6J.js";import{T as xt}from"./felZLd_I.js";import"./BJyBc51V.js";import{M as qt}from"./BfWiwhpc.js";import{V as Et}from"./DPXmbcdl.js";import{O as Kt}from"./UvxFr-I2.js";import{bN as Lt,bK as Vt,b5 as Gt}from"./BZKFinnt.js";import{i as Ot}from"./H2jLkRRS.js";var zt=St("<!> <!>",1);function Jt(B,p){if(new.target)return pt({component:Jt,...B});$t(p,!0);const W=()=>h(et,"$workspace",m),P=()=>h(X,"$ftChanges$",m),G=()=>h(Y,"$ftCommits$",m),R=()=>h(j,"$foldUnchanged",m),U=()=>h(Z,"$lineWrapping",m),T=()=>h(Q,"$diffSideBySide",m),[m,O]=Pt(),z=t=>{Et(t,{embedded:!0,get foldEnabled(){return R()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Rt())})},J=t=>{var e=zt(),r=_(e);{let l=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>qt,(y,ht)=>{ht(y,{get icon(){return Nt},get label(){return n(l)},onclick:Zt=>ft()})})}var s=yt(r,2);{var d=l=>{Kt(l,{get filePath(){return n($)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};E(s,l=>{n($)&&l(d)})}w(t,e)},Z=Lt(),j=Vt(),Q=Gt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=It(()=>o()),X=At(C),Y=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=Ft(),et=Mt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);K(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(Bt(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),F=i(()=>a().data?.gitRootPath),v=i(()=>n(F)||n(nt)),$=i(()=>a().diffPath&&n(v)?Ot(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function A(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>A(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!A(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of G())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const M=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),N=i(()=>a().data?.branchBaseRef),x=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(N)||n(x))),k=i(()=>{if(n(g)?.commitHash)return n(g);if(n(M))return n(M);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n($)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}K(()=>{!D||!b()||D.registerActions({display:z,actions:J})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),I()},get workspaceId(){return o()},set workspaceId(t){o(t),I()},get isActive(){return b()},set isActive(t){b(t),I()},$set:bt,$on:(t,e)=>Ct(p,t,e)},q=L(),lt=_(q);{var mt=t=>{var e=L(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),l=i(()=>!n(c)&&n(k).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n(k).stage===f.Staged?ut:void 0);xt(s,{get active(){return b()},get change(){return n(k)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return R()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(N)},get branchBaseCommitSha(){return n(x)},get gitRootId(){return n(c)},get gitRootPath(){return n(F)},get onStageHunk(){return n(l)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};E(lt,t=>{a().diffPath&&t(mt)})}w(B,q);var gt=kt(ct);return O(),gt}export{Jt as default};
@@ -1 +1 @@
1
- import{aG as a,bI as l}from"./DYhIMPy1.js";import{Ig as t}from"./BJpbRkma.js";const s=Symbol("static-overlay");function n(e){l(s,e)}function b(){return a(s)??(()=>!1)}const r=["border-rose-500/30 bg-rose-500/15 text-rose-700 dark:text-rose-300","border-amber-500/30 bg-amber-500/15 text-amber-700 dark:text-amber-300","border-yellow-500/30 bg-yellow-500/15 text-yellow-700 dark:text-yellow-300","border-emerald-500/30 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300","border-sky-500/30 bg-sky-500/15 text-sky-700 dark:text-sky-300","border-violet-500/30 bg-violet-500/15 text-violet-700 dark:text-violet-300"],o=["hover:bg-rose-500/25","hover:bg-amber-500/25","hover:bg-yellow-500/25","hover:bg-emerald-500/25","hover:bg-sky-500/25","hover:bg-violet-500/25"];function h(e){return r[e%r.length]}function d(e){return o[e%o.length]}const u=t.createSelector(e=>e.theme.preference),v=t.createSelector(e=>e.theme.name==="dark"),S=t.createSelector(e=>e.theme.hasCustomTheme),g=t.createSelector(e=>e.theme.customThemeName),i=t.createSelector(e=>e.theme.activePresetId),x=t.createSelector(e=>e.theme.error);export{g as a,S as b,v as c,x as d,u as e,h as f,d as g,n as p,i as s,b as u};
1
+ import{aG as a,bI as l}from"./DYhIMPy1.js";import{Ig as t}from"./BoIGV7s7.js";const s=Symbol("static-overlay");function n(e){l(s,e)}function b(){return a(s)??(()=>!1)}const r=["border-rose-500/30 bg-rose-500/15 text-rose-700 dark:text-rose-300","border-amber-500/30 bg-amber-500/15 text-amber-700 dark:text-amber-300","border-yellow-500/30 bg-yellow-500/15 text-yellow-700 dark:text-yellow-300","border-emerald-500/30 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300","border-sky-500/30 bg-sky-500/15 text-sky-700 dark:text-sky-300","border-violet-500/30 bg-violet-500/15 text-violet-700 dark:text-violet-300"],o=["hover:bg-rose-500/25","hover:bg-amber-500/25","hover:bg-yellow-500/25","hover:bg-emerald-500/25","hover:bg-sky-500/25","hover:bg-violet-500/25"];function h(e){return r[e%r.length]}function d(e){return o[e%o.length]}const u=t.createSelector(e=>e.theme.preference),v=t.createSelector(e=>e.theme.name==="dark"),S=t.createSelector(e=>e.theme.hasCustomTheme),g=t.createSelector(e=>e.theme.customThemeName),i=t.createSelector(e=>e.theme.activePresetId),x=t.createSelector(e=>e.theme.error);export{g as a,S as b,v as c,x as d,u as e,h as f,d as g,n as p,i as s,b as u};