@chrisjowen/wheelhouse 0.22.0 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1522) hide show
  1. package/README.md +2 -1
  2. package/build/client/_app/immutable/assets/0.qRWjtWq3.css +1 -0
  3. package/build/client/_app/immutable/assets/0.qRWjtWq3.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.qRWjtWq3.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/2.meoe_KFK.css +1 -0
  6. package/build/client/_app/immutable/assets/2.meoe_KFK.css.br +0 -0
  7. package/build/client/_app/immutable/assets/2.meoe_KFK.css.gz +0 -0
  8. package/build/client/_app/immutable/chunks/0sYpgigu.js +96 -0
  9. package/build/client/_app/immutable/chunks/0sYpgigu.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/0sYpgigu.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/3DGzQTMH.js +249 -0
  12. package/build/client/_app/immutable/chunks/3DGzQTMH.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/3DGzQTMH.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/3WY8aZ2Q.js +7 -0
  15. package/build/client/_app/immutable/chunks/3WY8aZ2Q.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/3WY8aZ2Q.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/3XowoO28.js +1 -0
  18. package/build/client/_app/immutable/chunks/3XowoO28.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/3XowoO28.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/4DPf7zan.js +1 -0
  21. package/build/client/_app/immutable/chunks/4DPf7zan.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/4DPf7zan.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/6RHaml95.js +1 -0
  24. package/build/client/_app/immutable/chunks/6RHaml95.js.br +4 -0
  25. package/build/client/_app/immutable/chunks/6RHaml95.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/8Vs3qoOm.js +1 -0
  27. package/build/client/_app/immutable/chunks/8Vs3qoOm.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/8Vs3qoOm.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/9MoIYj4l.js +1 -0
  30. package/build/client/_app/immutable/chunks/9MoIYj4l.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/9MoIYj4l.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/9fRy5PA-.js +5 -0
  33. package/build/client/_app/immutable/chunks/9fRy5PA-.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/9fRy5PA-.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/B0tbY5sp.js +1 -0
  36. package/build/client/_app/immutable/chunks/B0tbY5sp.js.br +5 -0
  37. package/build/client/_app/immutable/chunks/B0tbY5sp.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/B0zdZHgO.js +24 -0
  39. package/build/client/_app/immutable/chunks/B0zdZHgO.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/B0zdZHgO.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/B1r5mhzg.js +1 -0
  42. package/build/client/_app/immutable/chunks/B1r5mhzg.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/B1r5mhzg.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/B27c-PP_.js +1 -0
  45. package/build/client/_app/immutable/chunks/B27c-PP_.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/B27c-PP_.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/B3Iw5AjE.js +1 -0
  48. package/build/client/_app/immutable/chunks/B3Iw5AjE.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/B3Iw5AjE.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/B4S7lFaW.js +1 -0
  51. package/build/client/_app/immutable/chunks/B4S7lFaW.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/B4S7lFaW.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/B5LK4iv8.js +24 -0
  54. package/build/client/_app/immutable/chunks/B5LK4iv8.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/B5LK4iv8.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/B6YOtYDk.js +1 -0
  57. package/build/client/_app/immutable/chunks/B6YOtYDk.js.br +3 -0
  58. package/build/client/_app/immutable/chunks/B6YOtYDk.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/B8ZTEP3p.js +1 -0
  60. package/build/client/_app/immutable/chunks/B8ZTEP3p.js.br +2 -0
  61. package/build/client/_app/immutable/chunks/B8ZTEP3p.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/B9mssl2A.js +292 -0
  63. package/build/client/_app/immutable/chunks/B9mssl2A.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/B9mssl2A.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/BBW8BHiX.js +1 -0
  66. package/build/client/_app/immutable/chunks/BBW8BHiX.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/BBW8BHiX.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/BDHDFGrC.js +3 -0
  69. package/build/client/_app/immutable/chunks/BDHDFGrC.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/BDHDFGrC.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/BDJZf7X_.js +4 -0
  72. package/build/client/_app/immutable/chunks/BDJZf7X_.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/BDJZf7X_.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/BG2J3BHn.js +1 -0
  75. package/build/client/_app/immutable/chunks/BG2J3BHn.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/BG2J3BHn.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/BHVQxZ8j.js +1 -0
  78. package/build/client/_app/immutable/chunks/BHVQxZ8j.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/BHVQxZ8j.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/BHa1VTXv.js +321 -0
  81. package/build/client/_app/immutable/chunks/BHa1VTXv.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/BHa1VTXv.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/BHlYl7xH.js +1 -0
  84. package/build/client/_app/immutable/chunks/BHlYl7xH.js.br +0 -0
  85. package/build/client/_app/immutable/chunks/BHlYl7xH.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/BIAqP8Ww.js +1 -0
  87. package/build/client/_app/immutable/chunks/BIAqP8Ww.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/BIAqP8Ww.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/BI_iZ-MY.js +1 -0
  90. package/build/client/_app/immutable/chunks/BI_iZ-MY.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/BI_iZ-MY.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/BJ4eea7U.js +1 -0
  93. package/build/client/_app/immutable/chunks/BJ4eea7U.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/BJ4eea7U.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/BJBRPIx6.js +106 -0
  96. package/build/client/_app/immutable/chunks/BJBRPIx6.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/BJBRPIx6.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/BJl_OH5S.js +1 -0
  99. package/build/client/_app/immutable/chunks/BJl_OH5S.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/BJl_OH5S.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/BPITxfuK.js +62 -0
  102. package/build/client/_app/immutable/chunks/BPITxfuK.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/BPITxfuK.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/BPq9FYZ0.js +40 -0
  105. package/build/client/_app/immutable/chunks/BPq9FYZ0.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/BPq9FYZ0.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/BQ0l7ESI.js +4 -0
  108. package/build/client/_app/immutable/chunks/BQ0l7ESI.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/BQ0l7ESI.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/BRKOeLML.js +1 -0
  111. package/build/client/_app/immutable/chunks/BRKOeLML.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/BRKOeLML.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/BVaOGgl3.js +129 -0
  114. package/build/client/_app/immutable/chunks/BVaOGgl3.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/BVaOGgl3.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/BW6RmZIt.js +2 -0
  117. package/build/client/_app/immutable/chunks/BW6RmZIt.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/BW6RmZIt.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/BXDIFTFV.js +1 -0
  120. package/build/client/_app/immutable/chunks/BXDIFTFV.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/BXDIFTFV.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/B_w1XHWJ.js +1 -0
  123. package/build/client/_app/immutable/chunks/B_w1XHWJ.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/B_w1XHWJ.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/Ba3YV-ZC.js +1 -0
  126. package/build/client/_app/immutable/chunks/Ba3YV-ZC.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/Ba3YV-ZC.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/Bb-r3y4C.js +41 -0
  129. package/build/client/_app/immutable/chunks/Bb-r3y4C.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/Bb-r3y4C.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/Bkzv7FRV.js +1 -0
  132. package/build/client/_app/immutable/chunks/Bkzv7FRV.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/Bkzv7FRV.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/Blq1W4m0.js +2 -0
  135. package/build/client/_app/immutable/chunks/Blq1W4m0.js.br +0 -0
  136. package/build/client/_app/immutable/chunks/Blq1W4m0.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/BpEbWI7L.js +3 -0
  138. package/build/client/_app/immutable/chunks/BpEbWI7L.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/BpEbWI7L.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/BpYCeUum.js +1 -0
  141. package/build/client/_app/immutable/chunks/BpYCeUum.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/BpYCeUum.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/BsvfIscj.js +2 -0
  144. package/build/client/_app/immutable/chunks/BsvfIscj.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/BsvfIscj.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/Bw3vXArA.js +1 -0
  147. package/build/client/_app/immutable/chunks/Bw3vXArA.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/Bw3vXArA.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/BwnzFNry.js +1 -0
  150. package/build/client/_app/immutable/chunks/BwnzFNry.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/BwnzFNry.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/BxaeaGfi.js +1 -0
  153. package/build/client/_app/immutable/chunks/BxaeaGfi.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/BxaeaGfi.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/C-3_of0w.js +1 -0
  156. package/build/client/_app/immutable/chunks/C-3_of0w.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/C-3_of0w.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/C-Jjmtog.js +166 -0
  159. package/build/client/_app/immutable/chunks/C-Jjmtog.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/C-Jjmtog.js.gz +0 -0
  161. package/build/client/_app/immutable/chunks/C0Bkj1f9.js +84 -0
  162. package/build/client/_app/immutable/chunks/C0Bkj1f9.js.br +0 -0
  163. package/build/client/_app/immutable/chunks/C0Bkj1f9.js.gz +0 -0
  164. package/build/client/_app/immutable/chunks/C14pDzYB.js +1 -0
  165. package/build/client/_app/immutable/chunks/C14pDzYB.js.br +0 -0
  166. package/build/client/_app/immutable/chunks/C14pDzYB.js.gz +0 -0
  167. package/build/client/_app/immutable/chunks/C2vxtxo0.js +1 -0
  168. package/build/client/_app/immutable/chunks/C2vxtxo0.js.br +0 -0
  169. package/build/client/_app/immutable/chunks/C2vxtxo0.js.gz +0 -0
  170. package/build/client/_app/immutable/chunks/C4Rfj8GW.js +168 -0
  171. package/build/client/_app/immutable/chunks/C4Rfj8GW.js.br +0 -0
  172. package/build/client/_app/immutable/chunks/C4Rfj8GW.js.gz +0 -0
  173. package/build/client/_app/immutable/chunks/C4a2X4N_.js +1 -0
  174. package/build/client/_app/immutable/chunks/C4a2X4N_.js.br +0 -0
  175. package/build/client/_app/immutable/chunks/C4a2X4N_.js.gz +0 -0
  176. package/build/client/_app/immutable/chunks/C4kvXl8Z.js +1 -0
  177. package/build/client/_app/immutable/chunks/C4kvXl8Z.js.br +0 -0
  178. package/build/client/_app/immutable/chunks/C4kvXl8Z.js.gz +0 -0
  179. package/build/client/_app/immutable/chunks/C4tyuY2c.js +1 -0
  180. package/build/client/_app/immutable/chunks/C4tyuY2c.js.br +0 -0
  181. package/build/client/_app/immutable/chunks/C4tyuY2c.js.gz +0 -0
  182. package/build/client/_app/immutable/chunks/C64kRQ9C.js +30 -0
  183. package/build/client/_app/immutable/chunks/C64kRQ9C.js.br +0 -0
  184. package/build/client/_app/immutable/chunks/C64kRQ9C.js.gz +0 -0
  185. package/build/client/_app/immutable/chunks/C8-wd_UW.js +1 -0
  186. package/build/client/_app/immutable/chunks/C8-wd_UW.js.br +0 -0
  187. package/build/client/_app/immutable/chunks/C8-wd_UW.js.gz +0 -0
  188. package/build/client/_app/immutable/chunks/C93yurIH.js +1 -0
  189. package/build/client/_app/immutable/chunks/C93yurIH.js.br +0 -0
  190. package/build/client/_app/immutable/chunks/C93yurIH.js.gz +0 -0
  191. package/build/client/_app/immutable/chunks/CA5kFhE2.js +231 -0
  192. package/build/client/_app/immutable/chunks/CA5kFhE2.js.br +0 -0
  193. package/build/client/_app/immutable/chunks/CA5kFhE2.js.gz +0 -0
  194. package/build/client/_app/immutable/chunks/CAKQFOun.js +5 -0
  195. package/build/client/_app/immutable/chunks/CAKQFOun.js.br +0 -0
  196. package/build/client/_app/immutable/chunks/CAKQFOun.js.gz +0 -0
  197. package/build/client/_app/immutable/chunks/CArqSZta.js +1 -0
  198. package/build/client/_app/immutable/chunks/CArqSZta.js.br +0 -0
  199. package/build/client/_app/immutable/chunks/CArqSZta.js.gz +0 -0
  200. package/build/client/_app/immutable/chunks/CBJl8RFX.js +1 -0
  201. package/build/client/_app/immutable/chunks/CBJl8RFX.js.br +0 -0
  202. package/build/client/_app/immutable/chunks/CBJl8RFX.js.gz +0 -0
  203. package/build/client/_app/immutable/chunks/CBQGf7i4.js +1 -0
  204. package/build/client/_app/immutable/chunks/CBQGf7i4.js.br +0 -0
  205. package/build/client/_app/immutable/chunks/CBQGf7i4.js.gz +0 -0
  206. package/build/client/_app/immutable/chunks/CC6U6O9O.js +1 -0
  207. package/build/client/_app/immutable/chunks/CC6U6O9O.js.br +3 -0
  208. package/build/client/_app/immutable/chunks/CC6U6O9O.js.gz +0 -0
  209. package/build/client/_app/immutable/chunks/CE5my3kM.js +1 -0
  210. package/build/client/_app/immutable/chunks/CE5my3kM.js.br +1 -0
  211. package/build/client/_app/immutable/chunks/CE5my3kM.js.gz +0 -0
  212. package/build/client/_app/immutable/chunks/CFUEU5Nl.js +1 -0
  213. package/build/client/_app/immutable/chunks/CFUEU5Nl.js.br +0 -0
  214. package/build/client/_app/immutable/chunks/CFUEU5Nl.js.gz +0 -0
  215. package/build/client/_app/immutable/chunks/CFXp4bzz.js +1 -0
  216. package/build/client/_app/immutable/chunks/CFXp4bzz.js.br +0 -0
  217. package/build/client/_app/immutable/chunks/CFXp4bzz.js.gz +0 -0
  218. package/build/client/_app/immutable/chunks/CI-toNaN.js +1 -0
  219. package/build/client/_app/immutable/chunks/CI-toNaN.js.br +0 -0
  220. package/build/client/_app/immutable/chunks/CI-toNaN.js.gz +0 -0
  221. package/build/client/_app/immutable/chunks/CIZoGyNC.js +1 -0
  222. package/build/client/_app/immutable/chunks/CIZoGyNC.js.br +0 -0
  223. package/build/client/_app/immutable/chunks/CIZoGyNC.js.gz +0 -0
  224. package/build/client/_app/immutable/chunks/CIcPUteJ.js +2 -0
  225. package/build/client/_app/immutable/chunks/CIcPUteJ.js.br +0 -0
  226. package/build/client/_app/immutable/chunks/CIcPUteJ.js.gz +0 -0
  227. package/build/client/_app/immutable/chunks/CJQpQkOK.js +36 -0
  228. package/build/client/_app/immutable/chunks/CJQpQkOK.js.br +0 -0
  229. package/build/client/_app/immutable/chunks/CJQpQkOK.js.gz +0 -0
  230. package/build/client/_app/immutable/chunks/CK-V7wjL.js +1 -0
  231. package/build/client/_app/immutable/chunks/CK-V7wjL.js.br +0 -0
  232. package/build/client/_app/immutable/chunks/CK-V7wjL.js.gz +0 -0
  233. package/build/client/_app/immutable/chunks/CMKuhFK2.js +6 -0
  234. package/build/client/_app/immutable/chunks/CMKuhFK2.js.br +0 -0
  235. package/build/client/_app/immutable/chunks/CMKuhFK2.js.gz +0 -0
  236. package/build/client/_app/immutable/chunks/CNPXEqnm.js +1 -0
  237. package/build/client/_app/immutable/chunks/CNPXEqnm.js.br +0 -0
  238. package/build/client/_app/immutable/chunks/CNPXEqnm.js.gz +0 -0
  239. package/build/client/_app/immutable/chunks/CN_aaQJc.js +6 -0
  240. package/build/client/_app/immutable/chunks/CN_aaQJc.js.br +0 -0
  241. package/build/client/_app/immutable/chunks/CN_aaQJc.js.gz +0 -0
  242. package/build/client/_app/immutable/chunks/COVPhMh-.js +1 -0
  243. package/build/client/_app/immutable/chunks/COVPhMh-.js.br +0 -0
  244. package/build/client/_app/immutable/chunks/COVPhMh-.js.gz +0 -0
  245. package/build/client/_app/immutable/chunks/CPYrjZxD.js +1 -0
  246. package/build/client/_app/immutable/chunks/CPYrjZxD.js.br +0 -0
  247. package/build/client/_app/immutable/chunks/CPYrjZxD.js.gz +0 -0
  248. package/build/client/_app/immutable/chunks/CSQi64co.js +1 -0
  249. package/build/client/_app/immutable/chunks/CSQi64co.js.br +0 -0
  250. package/build/client/_app/immutable/chunks/CSQi64co.js.gz +0 -0
  251. package/build/client/_app/immutable/chunks/CTViHs6g.js +2 -0
  252. package/build/client/_app/immutable/chunks/CTViHs6g.js.br +0 -0
  253. package/build/client/_app/immutable/chunks/CTViHs6g.js.gz +0 -0
  254. package/build/client/_app/immutable/chunks/CUKBEnHF.js +78 -0
  255. package/build/client/_app/immutable/chunks/CUKBEnHF.js.br +0 -0
  256. package/build/client/_app/immutable/chunks/CUKBEnHF.js.gz +0 -0
  257. package/build/client/_app/immutable/chunks/CX-M4F5k.js +1 -0
  258. package/build/client/_app/immutable/chunks/CX-M4F5k.js.br +0 -0
  259. package/build/client/_app/immutable/chunks/CX-M4F5k.js.gz +0 -0
  260. package/build/client/_app/immutable/chunks/CXICpFkf.js +1 -0
  261. package/build/client/_app/immutable/chunks/CXICpFkf.js.br +0 -0
  262. package/build/client/_app/immutable/chunks/CXICpFkf.js.gz +0 -0
  263. package/build/client/_app/immutable/chunks/C_UyAoTW.js +1 -0
  264. package/build/client/_app/immutable/chunks/C_UyAoTW.js.br +0 -0
  265. package/build/client/_app/immutable/chunks/C_UyAoTW.js.gz +0 -0
  266. package/build/client/_app/immutable/chunks/CasjVk9W.js +34 -0
  267. package/build/client/_app/immutable/chunks/CasjVk9W.js.br +0 -0
  268. package/build/client/_app/immutable/chunks/CasjVk9W.js.gz +0 -0
  269. package/build/client/_app/immutable/chunks/CbWQJ7q6.js +1 -0
  270. package/build/client/_app/immutable/chunks/CbWQJ7q6.js.br +0 -0
  271. package/build/client/_app/immutable/chunks/CbWQJ7q6.js.gz +0 -0
  272. package/build/client/_app/immutable/chunks/CcJZ4Ryv.js +3 -0
  273. package/build/client/_app/immutable/chunks/CcJZ4Ryv.js.br +0 -0
  274. package/build/client/_app/immutable/chunks/CcJZ4Ryv.js.gz +0 -0
  275. package/build/client/_app/immutable/chunks/ChqBjBkC.js +1 -0
  276. package/build/client/_app/immutable/chunks/ChqBjBkC.js.br +0 -0
  277. package/build/client/_app/immutable/chunks/ChqBjBkC.js.gz +0 -0
  278. package/build/client/_app/immutable/chunks/CioDbcGP.js +1 -0
  279. package/build/client/_app/immutable/chunks/CioDbcGP.js.br +2 -0
  280. package/build/client/_app/immutable/chunks/CioDbcGP.js.gz +0 -0
  281. package/build/client/_app/immutable/chunks/Ck-8e8TW.js +1 -0
  282. package/build/client/_app/immutable/chunks/Ck-8e8TW.js.br +0 -0
  283. package/build/client/_app/immutable/chunks/Ck-8e8TW.js.gz +0 -0
  284. package/build/client/_app/immutable/chunks/ClW5XsT3.js +1 -0
  285. package/build/client/_app/immutable/chunks/ClW5XsT3.js.br +0 -0
  286. package/build/client/_app/immutable/chunks/ClW5XsT3.js.gz +0 -0
  287. package/build/client/_app/immutable/chunks/Cm8AB1ox.js +1 -0
  288. package/build/client/_app/immutable/chunks/Cm8AB1ox.js.br +0 -0
  289. package/build/client/_app/immutable/chunks/Cm8AB1ox.js.gz +0 -0
  290. package/build/client/_app/immutable/chunks/CmLjl9Jc.js +1 -0
  291. package/build/client/_app/immutable/chunks/CmLjl9Jc.js.br +0 -0
  292. package/build/client/_app/immutable/chunks/CmLjl9Jc.js.gz +0 -0
  293. package/build/client/_app/immutable/chunks/Crdi5svS.js +1 -0
  294. package/build/client/_app/immutable/chunks/Crdi5svS.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/Crdi5svS.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/CtffiUi1.js +1 -0
  297. package/build/client/_app/immutable/chunks/CtffiUi1.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/CtffiUi1.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/CuLW7UjU.js +99 -0
  300. package/build/client/_app/immutable/chunks/CuLW7UjU.js.br +0 -0
  301. package/build/client/_app/immutable/chunks/CuLW7UjU.js.gz +0 -0
  302. package/build/client/_app/immutable/chunks/CukBkIEb.js +3 -0
  303. package/build/client/_app/immutable/chunks/CukBkIEb.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/CukBkIEb.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/Cw8YWg-m.js +15 -0
  306. package/build/client/_app/immutable/chunks/Cw8YWg-m.js.br +0 -0
  307. package/build/client/_app/immutable/chunks/Cw8YWg-m.js.gz +0 -0
  308. package/build/client/_app/immutable/chunks/Cz4e2F0V.js +1 -0
  309. package/build/client/_app/immutable/chunks/Cz4e2F0V.js.br +0 -0
  310. package/build/client/_app/immutable/chunks/Cz4e2F0V.js.gz +0 -0
  311. package/build/client/_app/immutable/chunks/D-zaPTRX.js +1 -0
  312. package/build/client/_app/immutable/chunks/D-zaPTRX.js.br +0 -0
  313. package/build/client/_app/immutable/chunks/D-zaPTRX.js.gz +0 -0
  314. package/build/client/_app/immutable/chunks/D0JXJPyC.js +2 -0
  315. package/build/client/_app/immutable/chunks/D0JXJPyC.js.br +0 -0
  316. package/build/client/_app/immutable/chunks/D0JXJPyC.js.gz +0 -0
  317. package/build/client/_app/immutable/chunks/D1CLgFmr.js +1 -0
  318. package/build/client/_app/immutable/chunks/D1CLgFmr.js.br +0 -0
  319. package/build/client/_app/immutable/chunks/D1CLgFmr.js.gz +0 -0
  320. package/build/client/_app/immutable/chunks/D1ctx90p.js +1 -0
  321. package/build/client/_app/immutable/chunks/D1ctx90p.js.br +0 -0
  322. package/build/client/_app/immutable/chunks/D1ctx90p.js.gz +0 -0
  323. package/build/client/_app/immutable/chunks/D7-1sbzI.js +1 -0
  324. package/build/client/_app/immutable/chunks/D7-1sbzI.js.br +0 -0
  325. package/build/client/_app/immutable/chunks/D7-1sbzI.js.gz +0 -0
  326. package/build/client/_app/immutable/chunks/D8TvECTZ.js +1 -0
  327. package/build/client/_app/immutable/chunks/D8TvECTZ.js.br +0 -0
  328. package/build/client/_app/immutable/chunks/D8TvECTZ.js.gz +0 -0
  329. package/build/client/_app/immutable/chunks/D9KRxYwi.js +1 -0
  330. package/build/client/_app/immutable/chunks/D9KRxYwi.js.br +0 -0
  331. package/build/client/_app/immutable/chunks/D9KRxYwi.js.gz +0 -0
  332. package/build/client/_app/immutable/chunks/D9OSLH_o.js +1 -0
  333. package/build/client/_app/immutable/chunks/D9OSLH_o.js.br +0 -0
  334. package/build/client/_app/immutable/chunks/D9OSLH_o.js.gz +0 -0
  335. package/build/client/_app/immutable/chunks/DBuAe07o.js +8 -0
  336. package/build/client/_app/immutable/chunks/DBuAe07o.js.br +0 -0
  337. package/build/client/_app/immutable/chunks/DBuAe07o.js.gz +0 -0
  338. package/build/client/_app/immutable/chunks/DDRb49GV.js +39 -0
  339. package/build/client/_app/immutable/chunks/DDRb49GV.js.br +0 -0
  340. package/build/client/_app/immutable/chunks/DDRb49GV.js.gz +0 -0
  341. package/build/client/_app/immutable/chunks/DDcw5zdi.js +1 -0
  342. package/build/client/_app/immutable/chunks/DDcw5zdi.js.br +0 -0
  343. package/build/client/_app/immutable/chunks/DDcw5zdi.js.gz +0 -0
  344. package/build/client/_app/immutable/chunks/DDrX-JDw.js +1 -0
  345. package/build/client/_app/immutable/chunks/DDrX-JDw.js.br +0 -0
  346. package/build/client/_app/immutable/chunks/DDrX-JDw.js.gz +0 -0
  347. package/build/client/_app/immutable/chunks/DEA_cSpG.js +1 -0
  348. package/build/client/_app/immutable/chunks/DEA_cSpG.js.br +0 -0
  349. package/build/client/_app/immutable/chunks/DEA_cSpG.js.gz +0 -0
  350. package/build/client/_app/immutable/chunks/DELl3-mG.js +1 -0
  351. package/build/client/_app/immutable/chunks/DELl3-mG.js.br +0 -0
  352. package/build/client/_app/immutable/chunks/DELl3-mG.js.gz +0 -0
  353. package/build/client/_app/immutable/chunks/DGFy0yuU.js +1 -0
  354. package/build/client/_app/immutable/chunks/DGFy0yuU.js.br +0 -0
  355. package/build/client/_app/immutable/chunks/DGFy0yuU.js.gz +0 -0
  356. package/build/client/_app/immutable/chunks/DHUIxaz6.js +1 -0
  357. package/build/client/_app/immutable/chunks/DHUIxaz6.js.br +0 -0
  358. package/build/client/_app/immutable/chunks/DHUIxaz6.js.gz +0 -0
  359. package/build/client/_app/immutable/chunks/DIVES_LH.js +1 -0
  360. package/build/client/_app/immutable/chunks/DIVES_LH.js.br +0 -0
  361. package/build/client/_app/immutable/chunks/DIVES_LH.js.gz +0 -0
  362. package/build/client/_app/immutable/chunks/DIs8JEci.js +1 -0
  363. package/build/client/_app/immutable/chunks/DIs8JEci.js.br +0 -0
  364. package/build/client/_app/immutable/chunks/DIs8JEci.js.gz +0 -0
  365. package/build/client/_app/immutable/chunks/DK9_tRLU.js +1 -0
  366. package/build/client/_app/immutable/chunks/DK9_tRLU.js.br +0 -0
  367. package/build/client/_app/immutable/chunks/DK9_tRLU.js.gz +0 -0
  368. package/build/client/_app/immutable/chunks/DNyxOJUs.js +1 -0
  369. package/build/client/_app/immutable/chunks/DNyxOJUs.js.br +0 -0
  370. package/build/client/_app/immutable/chunks/DNyxOJUs.js.gz +0 -0
  371. package/build/client/_app/immutable/chunks/DPP9hyyA.js +89 -0
  372. package/build/client/_app/immutable/chunks/DPP9hyyA.js.br +0 -0
  373. package/build/client/_app/immutable/chunks/DPP9hyyA.js.gz +0 -0
  374. package/build/client/_app/immutable/chunks/DRUMJjv9.js +1 -0
  375. package/build/client/_app/immutable/chunks/DRUMJjv9.js.br +1 -0
  376. package/build/client/_app/immutable/chunks/DRUMJjv9.js.gz +0 -0
  377. package/build/client/_app/immutable/chunks/DS36wcHH.js +1 -0
  378. package/build/client/_app/immutable/chunks/DS36wcHH.js.br +0 -0
  379. package/build/client/_app/immutable/chunks/DS36wcHH.js.gz +0 -0
  380. package/build/client/_app/immutable/chunks/DVCsHdGj.js +1 -0
  381. package/build/client/_app/immutable/chunks/DVCsHdGj.js.br +0 -0
  382. package/build/client/_app/immutable/chunks/DVCsHdGj.js.gz +0 -0
  383. package/build/client/_app/immutable/chunks/DXbpIGw8.js +1 -0
  384. package/build/client/_app/immutable/chunks/DXbpIGw8.js.br +0 -0
  385. package/build/client/_app/immutable/chunks/DXbpIGw8.js.gz +0 -0
  386. package/build/client/_app/immutable/chunks/Db066mLa.js +1 -0
  387. package/build/client/_app/immutable/chunks/Db066mLa.js.br +0 -0
  388. package/build/client/_app/immutable/chunks/Db066mLa.js.gz +0 -0
  389. package/build/client/_app/immutable/chunks/Ddah-xMR.js +1 -0
  390. package/build/client/_app/immutable/chunks/Ddah-xMR.js.br +2 -0
  391. package/build/client/_app/immutable/chunks/Ddah-xMR.js.gz +0 -0
  392. package/build/client/_app/immutable/chunks/DeoDIOCo.js +1 -0
  393. package/build/client/_app/immutable/chunks/DeoDIOCo.js.br +0 -0
  394. package/build/client/_app/immutable/chunks/DeoDIOCo.js.gz +0 -0
  395. package/build/client/_app/immutable/chunks/DiXmTtYI.js +7 -0
  396. package/build/client/_app/immutable/chunks/DiXmTtYI.js.br +0 -0
  397. package/build/client/_app/immutable/chunks/DiXmTtYI.js.gz +0 -0
  398. package/build/client/_app/immutable/chunks/Dj0GMYWt.js +1 -0
  399. package/build/client/_app/immutable/chunks/Dj0GMYWt.js.br +0 -0
  400. package/build/client/_app/immutable/chunks/Dj0GMYWt.js.gz +0 -0
  401. package/build/client/_app/immutable/chunks/DlYVwHSQ.js +3 -0
  402. package/build/client/_app/immutable/chunks/DlYVwHSQ.js.br +0 -0
  403. package/build/client/_app/immutable/chunks/DlYVwHSQ.js.gz +0 -0
  404. package/build/client/_app/immutable/chunks/Dm6F1MzB.js +1 -0
  405. package/build/client/_app/immutable/chunks/Dm6F1MzB.js.br +0 -0
  406. package/build/client/_app/immutable/chunks/Dm6F1MzB.js.gz +0 -0
  407. package/build/client/_app/immutable/chunks/Dr1o5Tgo.js +38 -0
  408. package/build/client/_app/immutable/chunks/Dr1o5Tgo.js.br +0 -0
  409. package/build/client/_app/immutable/chunks/Dr1o5Tgo.js.gz +0 -0
  410. package/build/client/_app/immutable/chunks/DxC6-DdZ.js +70 -0
  411. package/build/client/_app/immutable/chunks/DxC6-DdZ.js.br +0 -0
  412. package/build/client/_app/immutable/chunks/DxC6-DdZ.js.gz +0 -0
  413. package/build/client/_app/immutable/chunks/Dzlk32Te.js +1 -0
  414. package/build/client/_app/immutable/chunks/Dzlk32Te.js.br +0 -0
  415. package/build/client/_app/immutable/chunks/Dzlk32Te.js.gz +0 -0
  416. package/build/client/_app/immutable/chunks/DzmuTynR.js +1 -0
  417. package/build/client/_app/immutable/chunks/DzmuTynR.js.br +0 -0
  418. package/build/client/_app/immutable/chunks/DzmuTynR.js.gz +0 -0
  419. package/build/client/_app/immutable/chunks/DzrNoQI1.js +1 -0
  420. package/build/client/_app/immutable/chunks/DzrNoQI1.js.br +0 -0
  421. package/build/client/_app/immutable/chunks/DzrNoQI1.js.gz +0 -0
  422. package/build/client/_app/immutable/chunks/DzrXgv0V.js +88 -0
  423. package/build/client/_app/immutable/chunks/DzrXgv0V.js.br +0 -0
  424. package/build/client/_app/immutable/chunks/DzrXgv0V.js.gz +0 -0
  425. package/build/client/_app/immutable/chunks/Dzw-SVcG.js +1 -0
  426. package/build/client/_app/immutable/chunks/Dzw-SVcG.js.br +0 -0
  427. package/build/client/_app/immutable/chunks/Dzw-SVcG.js.gz +0 -0
  428. package/build/client/_app/immutable/chunks/FIAR-fQd.js +1 -0
  429. package/build/client/_app/immutable/chunks/FIAR-fQd.js.br +0 -0
  430. package/build/client/_app/immutable/chunks/FIAR-fQd.js.gz +0 -0
  431. package/build/client/_app/immutable/chunks/FkN0it88.js +1 -0
  432. package/build/client/_app/immutable/chunks/FkN0it88.js.br +0 -0
  433. package/build/client/_app/immutable/chunks/FkN0it88.js.gz +0 -0
  434. package/build/client/_app/immutable/chunks/H65m8wRV.js +1 -0
  435. package/build/client/_app/immutable/chunks/H65m8wRV.js.br +0 -0
  436. package/build/client/_app/immutable/chunks/H65m8wRV.js.gz +0 -0
  437. package/build/client/_app/immutable/chunks/HP8lGamR.js +257 -0
  438. package/build/client/_app/immutable/chunks/HP8lGamR.js.br +0 -0
  439. package/build/client/_app/immutable/chunks/HP8lGamR.js.gz +0 -0
  440. package/build/client/_app/immutable/chunks/IUXMoaw_.js +6 -0
  441. package/build/client/_app/immutable/chunks/IUXMoaw_.js.br +0 -0
  442. package/build/client/_app/immutable/chunks/IUXMoaw_.js.gz +0 -0
  443. package/build/client/_app/immutable/chunks/LxevZj8R.js +120 -0
  444. package/build/client/_app/immutable/chunks/LxevZj8R.js.br +0 -0
  445. package/build/client/_app/immutable/chunks/LxevZj8R.js.gz +0 -0
  446. package/build/client/_app/immutable/chunks/M2BYVI70.js +206 -0
  447. package/build/client/_app/immutable/chunks/M2BYVI70.js.br +0 -0
  448. package/build/client/_app/immutable/chunks/M2BYVI70.js.gz +0 -0
  449. package/build/client/_app/immutable/chunks/NZgNgYxY.js +1 -0
  450. package/build/client/_app/immutable/chunks/NZgNgYxY.js.br +0 -0
  451. package/build/client/_app/immutable/chunks/NZgNgYxY.js.gz +0 -0
  452. package/build/client/_app/immutable/chunks/PIDKqgYe.js +1 -0
  453. package/build/client/_app/immutable/chunks/PIDKqgYe.js.br +0 -0
  454. package/build/client/_app/immutable/chunks/PIDKqgYe.js.gz +0 -0
  455. package/build/client/_app/immutable/chunks/PKzJfzQb.js +1 -0
  456. package/build/client/_app/immutable/chunks/PKzJfzQb.js.br +2 -0
  457. package/build/client/_app/immutable/chunks/PKzJfzQb.js.gz +0 -0
  458. package/build/client/_app/immutable/chunks/PvILxv6-.js +1 -0
  459. package/build/client/_app/immutable/chunks/PvILxv6-.js.br +0 -0
  460. package/build/client/_app/immutable/chunks/PvILxv6-.js.gz +0 -0
  461. package/build/client/_app/immutable/chunks/RjH1AB9i.js +1 -0
  462. package/build/client/_app/immutable/chunks/RjH1AB9i.js.br +0 -0
  463. package/build/client/_app/immutable/chunks/RjH1AB9i.js.gz +0 -0
  464. package/build/client/_app/immutable/chunks/UCkzcw6v.js +162 -0
  465. package/build/client/_app/immutable/chunks/UCkzcw6v.js.br +0 -0
  466. package/build/client/_app/immutable/chunks/UCkzcw6v.js.gz +0 -0
  467. package/build/client/_app/immutable/chunks/UgYjvoOY.js +1 -0
  468. package/build/client/_app/immutable/chunks/UgYjvoOY.js.br +0 -0
  469. package/build/client/_app/immutable/chunks/UgYjvoOY.js.gz +0 -0
  470. package/build/client/_app/immutable/chunks/XeQqE5Le.js +3 -0
  471. package/build/client/_app/immutable/chunks/XeQqE5Le.js.br +0 -0
  472. package/build/client/_app/immutable/chunks/XeQqE5Le.js.gz +0 -0
  473. package/build/client/_app/immutable/chunks/_9KU6-qn.js +1 -0
  474. package/build/client/_app/immutable/chunks/_9KU6-qn.js.br +2 -0
  475. package/build/client/_app/immutable/chunks/_9KU6-qn.js.gz +0 -0
  476. package/build/client/_app/immutable/chunks/a-JPOVQB.js +1 -0
  477. package/build/client/_app/immutable/chunks/a-JPOVQB.js.br +0 -0
  478. package/build/client/_app/immutable/chunks/a-JPOVQB.js.gz +0 -0
  479. package/build/client/_app/immutable/chunks/cTCWh2o_.js +1 -0
  480. package/build/client/_app/immutable/chunks/cTCWh2o_.js.br +4 -0
  481. package/build/client/_app/immutable/chunks/cTCWh2o_.js.gz +0 -0
  482. package/build/client/_app/immutable/chunks/ceRp2Wf3.js +1 -0
  483. package/build/client/_app/immutable/chunks/ceRp2Wf3.js.br +0 -0
  484. package/build/client/_app/immutable/chunks/ceRp2Wf3.js.gz +0 -0
  485. package/build/client/_app/immutable/chunks/fyT-HKYu.js +1 -0
  486. package/build/client/_app/immutable/chunks/fyT-HKYu.js.br +0 -0
  487. package/build/client/_app/immutable/chunks/fyT-HKYu.js.gz +0 -0
  488. package/build/client/_app/immutable/chunks/lpKHpkrM.js +1 -0
  489. package/build/client/_app/immutable/chunks/lpKHpkrM.js.br +0 -0
  490. package/build/client/_app/immutable/chunks/lpKHpkrM.js.gz +0 -0
  491. package/build/client/_app/immutable/chunks/nGxSuLbC.js +1 -0
  492. package/build/client/_app/immutable/chunks/nGxSuLbC.js.br +0 -0
  493. package/build/client/_app/immutable/chunks/nGxSuLbC.js.gz +0 -0
  494. package/build/client/_app/immutable/chunks/njM0O-gI.js +139 -0
  495. package/build/client/_app/immutable/chunks/njM0O-gI.js.br +0 -0
  496. package/build/client/_app/immutable/chunks/njM0O-gI.js.gz +0 -0
  497. package/build/client/_app/immutable/chunks/qljlsftH.js +7 -0
  498. package/build/client/_app/immutable/chunks/qljlsftH.js.br +0 -0
  499. package/build/client/_app/immutable/chunks/qljlsftH.js.gz +0 -0
  500. package/build/client/_app/immutable/chunks/sX4ThU7s.js +2 -0
  501. package/build/client/_app/immutable/chunks/sX4ThU7s.js.br +0 -0
  502. package/build/client/_app/immutable/chunks/sX4ThU7s.js.gz +0 -0
  503. package/build/client/_app/immutable/chunks/scfloRaw.js +1 -0
  504. package/build/client/_app/immutable/chunks/scfloRaw.js.br +0 -0
  505. package/build/client/_app/immutable/chunks/scfloRaw.js.gz +0 -0
  506. package/build/client/_app/immutable/chunks/uc0jtTUU.js +1 -0
  507. package/build/client/_app/immutable/chunks/uc0jtTUU.js.br +0 -0
  508. package/build/client/_app/immutable/chunks/uc0jtTUU.js.gz +0 -0
  509. package/build/client/_app/immutable/chunks/w4idq0jH.js +1 -0
  510. package/build/client/_app/immutable/chunks/w4idq0jH.js.br +1 -0
  511. package/build/client/_app/immutable/chunks/w4idq0jH.js.gz +0 -0
  512. package/build/client/_app/immutable/chunks/yWtFHF99.js +1 -0
  513. package/build/client/_app/immutable/chunks/yWtFHF99.js.br +0 -0
  514. package/build/client/_app/immutable/chunks/yWtFHF99.js.gz +0 -0
  515. package/build/client/_app/immutable/chunks/zvd1Az_D.js +62 -0
  516. package/build/client/_app/immutable/chunks/zvd1Az_D.js.br +0 -0
  517. package/build/client/_app/immutable/chunks/zvd1Az_D.js.gz +0 -0
  518. package/build/client/_app/immutable/entry/app.CzPEb1d2.js +2 -0
  519. package/build/client/_app/immutable/entry/app.CzPEb1d2.js.br +0 -0
  520. package/build/client/_app/immutable/entry/app.CzPEb1d2.js.gz +0 -0
  521. package/build/client/_app/immutable/entry/start.CRLqN06h.js +1 -0
  522. package/build/client/_app/immutable/entry/start.CRLqN06h.js.br +0 -0
  523. package/build/client/_app/immutable/entry/start.CRLqN06h.js.gz +0 -0
  524. package/build/client/_app/immutable/nodes/0.pWbRJNLu.js +9 -0
  525. package/build/client/_app/immutable/nodes/0.pWbRJNLu.js.br +0 -0
  526. package/build/client/_app/immutable/nodes/0.pWbRJNLu.js.gz +0 -0
  527. package/build/client/_app/immutable/nodes/1.HJII6BCm.js +1 -0
  528. package/build/client/_app/immutable/nodes/1.HJII6BCm.js.br +0 -0
  529. package/build/client/_app/immutable/nodes/1.HJII6BCm.js.gz +0 -0
  530. package/build/client/_app/immutable/nodes/10.V7KNkpai.js +6 -0
  531. package/build/client/_app/immutable/nodes/10.V7KNkpai.js.br +0 -0
  532. package/build/client/_app/immutable/nodes/10.V7KNkpai.js.gz +0 -0
  533. package/build/client/_app/immutable/nodes/11.CNaPxZkz.js +1 -0
  534. package/build/client/_app/immutable/nodes/11.CNaPxZkz.js.br +0 -0
  535. package/build/client/_app/immutable/nodes/11.CNaPxZkz.js.gz +0 -0
  536. package/build/client/_app/immutable/nodes/12.ZFbfsrws.js +10 -0
  537. package/build/client/_app/immutable/nodes/12.ZFbfsrws.js.br +0 -0
  538. package/build/client/_app/immutable/nodes/12.ZFbfsrws.js.gz +0 -0
  539. package/build/client/_app/immutable/nodes/13.Bc1OyEla.js +1 -0
  540. package/build/client/_app/immutable/nodes/13.Bc1OyEla.js.br +0 -0
  541. package/build/client/_app/immutable/nodes/13.Bc1OyEla.js.gz +0 -0
  542. package/build/client/_app/immutable/nodes/14.DoqlZ0z7.js +3 -0
  543. package/build/client/_app/immutable/nodes/14.DoqlZ0z7.js.br +0 -0
  544. package/build/client/_app/immutable/nodes/14.DoqlZ0z7.js.gz +0 -0
  545. package/build/client/_app/immutable/nodes/15.3Ya3Fh0D.js +1 -0
  546. package/build/client/_app/immutable/nodes/15.3Ya3Fh0D.js.br +0 -0
  547. package/build/client/_app/immutable/nodes/15.3Ya3Fh0D.js.gz +0 -0
  548. package/build/client/_app/immutable/nodes/16.BBblyjhF.js +14 -0
  549. package/build/client/_app/immutable/nodes/16.BBblyjhF.js.br +0 -0
  550. package/build/client/_app/immutable/nodes/16.BBblyjhF.js.gz +0 -0
  551. package/build/client/_app/immutable/nodes/17.B5blvUGb.js +150 -0
  552. package/build/client/_app/immutable/nodes/17.B5blvUGb.js.br +0 -0
  553. package/build/client/_app/immutable/nodes/17.B5blvUGb.js.gz +0 -0
  554. package/build/client/_app/immutable/nodes/18.CmtlCXpB.js +25 -0
  555. package/build/client/_app/immutable/nodes/18.CmtlCXpB.js.br +0 -0
  556. package/build/client/_app/immutable/nodes/18.CmtlCXpB.js.gz +0 -0
  557. package/build/client/_app/immutable/nodes/19.BMsymd1l.js +5 -0
  558. package/build/client/_app/immutable/nodes/19.BMsymd1l.js.br +0 -0
  559. package/build/client/_app/immutable/nodes/19.BMsymd1l.js.gz +0 -0
  560. package/build/client/_app/immutable/nodes/2.CT3mHDSn.js +34 -0
  561. package/build/client/_app/immutable/nodes/2.CT3mHDSn.js.br +0 -0
  562. package/build/client/_app/immutable/nodes/2.CT3mHDSn.js.gz +0 -0
  563. package/build/client/_app/immutable/nodes/20.BgTmceNa.js +17 -0
  564. package/build/client/_app/immutable/nodes/20.BgTmceNa.js.br +0 -0
  565. package/build/client/_app/immutable/nodes/20.BgTmceNa.js.gz +0 -0
  566. package/build/client/_app/immutable/nodes/22.CZT1v63r.js +4 -0
  567. package/build/client/_app/immutable/nodes/22.CZT1v63r.js.br +0 -0
  568. package/build/client/_app/immutable/nodes/22.CZT1v63r.js.gz +0 -0
  569. package/build/client/_app/immutable/nodes/23.YJu8W2PV.js +1 -0
  570. package/build/client/_app/immutable/nodes/23.YJu8W2PV.js.br +1 -0
  571. package/build/client/_app/immutable/nodes/23.YJu8W2PV.js.gz +0 -0
  572. package/build/client/_app/immutable/nodes/24.CQxilE8c.js +6 -0
  573. package/build/client/_app/immutable/nodes/24.CQxilE8c.js.br +0 -0
  574. package/build/client/_app/immutable/nodes/24.CQxilE8c.js.gz +0 -0
  575. package/build/client/_app/immutable/nodes/25.CkZ7gK9g.js +8 -0
  576. package/build/client/_app/immutable/nodes/25.CkZ7gK9g.js.br +0 -0
  577. package/build/client/_app/immutable/nodes/25.CkZ7gK9g.js.gz +0 -0
  578. package/build/client/_app/immutable/nodes/26.D_CkVsh-.js +2 -0
  579. package/build/client/_app/immutable/nodes/26.D_CkVsh-.js.br +0 -0
  580. package/build/client/_app/immutable/nodes/26.D_CkVsh-.js.gz +0 -0
  581. package/build/client/_app/immutable/nodes/27.Em4I6dbN.js +5 -0
  582. package/build/client/_app/immutable/nodes/27.Em4I6dbN.js.br +0 -0
  583. package/build/client/_app/immutable/nodes/27.Em4I6dbN.js.gz +0 -0
  584. package/build/client/_app/immutable/nodes/28.IMyvl6Vp.js +4 -0
  585. package/build/client/_app/immutable/nodes/28.IMyvl6Vp.js.br +0 -0
  586. package/build/client/_app/immutable/nodes/28.IMyvl6Vp.js.gz +0 -0
  587. package/build/client/_app/immutable/nodes/29.wFKZevuD.js +7 -0
  588. package/build/client/_app/immutable/nodes/29.wFKZevuD.js.br +0 -0
  589. package/build/client/_app/immutable/nodes/29.wFKZevuD.js.gz +0 -0
  590. package/build/client/_app/immutable/nodes/3.Ni7KfATw.js +2 -0
  591. package/build/client/_app/immutable/nodes/3.Ni7KfATw.js.br +0 -0
  592. package/build/client/_app/immutable/nodes/3.Ni7KfATw.js.gz +0 -0
  593. package/build/client/_app/immutable/nodes/30.DeZ1waJl.js +2 -0
  594. package/build/client/_app/immutable/nodes/30.DeZ1waJl.js.br +0 -0
  595. package/build/client/_app/immutable/nodes/30.DeZ1waJl.js.gz +0 -0
  596. package/build/client/_app/immutable/nodes/31.B50WzINo.js +4 -0
  597. package/build/client/_app/immutable/nodes/31.B50WzINo.js.br +0 -0
  598. package/build/client/_app/immutable/nodes/31.B50WzINo.js.gz +0 -0
  599. package/build/client/_app/immutable/nodes/32.87O-VUhI.js +7 -0
  600. package/build/client/_app/immutable/nodes/32.87O-VUhI.js.br +0 -0
  601. package/build/client/_app/immutable/nodes/32.87O-VUhI.js.gz +0 -0
  602. package/build/client/_app/immutable/nodes/33.BN5zeJkZ.js +6 -0
  603. package/build/client/_app/immutable/nodes/33.BN5zeJkZ.js.br +0 -0
  604. package/build/client/_app/immutable/nodes/33.BN5zeJkZ.js.gz +0 -0
  605. package/build/client/_app/immutable/nodes/34.GzT8007j.js +23 -0
  606. package/build/client/_app/immutable/nodes/34.GzT8007j.js.br +0 -0
  607. package/build/client/_app/immutable/nodes/34.GzT8007j.js.gz +0 -0
  608. package/build/client/_app/immutable/nodes/35.BmXfdUco.js +3 -0
  609. package/build/client/_app/immutable/nodes/35.BmXfdUco.js.br +0 -0
  610. package/build/client/_app/immutable/nodes/35.BmXfdUco.js.gz +0 -0
  611. package/build/client/_app/immutable/nodes/36.JzQtmWjz.js +1 -0
  612. package/build/client/_app/immutable/nodes/36.JzQtmWjz.js.br +0 -0
  613. package/build/client/_app/immutable/nodes/36.JzQtmWjz.js.gz +0 -0
  614. package/build/client/_app/immutable/nodes/37.BXQYzCsE.js +6 -0
  615. package/build/client/_app/immutable/nodes/37.BXQYzCsE.js.br +0 -0
  616. package/build/client/_app/immutable/nodes/37.BXQYzCsE.js.gz +0 -0
  617. package/build/client/_app/immutable/nodes/4.Deqh-XPt.js +5 -0
  618. package/build/client/_app/immutable/nodes/4.Deqh-XPt.js.br +0 -0
  619. package/build/client/_app/immutable/nodes/4.Deqh-XPt.js.gz +0 -0
  620. package/build/client/_app/immutable/nodes/5.Bt7FRTuy.js +1 -0
  621. package/build/client/_app/immutable/nodes/5.Bt7FRTuy.js.br +0 -0
  622. package/build/client/_app/immutable/nodes/5.Bt7FRTuy.js.gz +0 -0
  623. package/build/client/_app/immutable/nodes/7.C-LP_ycL.js +1 -0
  624. package/build/client/_app/immutable/nodes/7.C-LP_ycL.js.br +0 -0
  625. package/build/client/_app/immutable/nodes/7.C-LP_ycL.js.gz +0 -0
  626. package/build/client/_app/immutable/nodes/8.BljsERa8.js +2 -0
  627. package/build/client/_app/immutable/nodes/8.BljsERa8.js.br +0 -0
  628. package/build/client/_app/immutable/nodes/8.BljsERa8.js.gz +0 -0
  629. package/build/client/_app/immutable/nodes/9.ByCm8TUZ.js +10 -0
  630. package/build/client/_app/immutable/nodes/9.ByCm8TUZ.js.br +0 -0
  631. package/build/client/_app/immutable/nodes/9.ByCm8TUZ.js.gz +0 -0
  632. package/build/client/_app/version.json +1 -1
  633. package/build/client/_app/version.json.br +0 -0
  634. package/build/client/_app/version.json.gz +0 -0
  635. package/build/handler.js +4 -4
  636. package/build/index.js +4 -4
  637. package/build/server/chunks/chunks/Activity.js-CVotE9na.js +46 -0
  638. package/build/server/chunks/chunks/ConsoleWindow.js-BHNWqM9g.js +120 -0
  639. package/build/server/chunks/chunks/DecisionCard.js-QY9htT6b.js +2206 -0
  640. package/build/server/chunks/chunks/Discussion.js-BpKNy-zU.js +592 -0
  641. package/build/server/chunks/chunks/EtaLine.js-C_vpaPD4.js +98 -0
  642. package/build/server/chunks/chunks/InsightsNav.js-Du6rc1fW.js +18 -0
  643. package/build/server/chunks/chunks/InstallFromGitHub.js-CGbSzIB1.js +272 -0
  644. package/build/server/chunks/chunks/Lightbox.js-DoiLSEBT.js +200 -0
  645. package/build/server/chunks/chunks/OpenDecision.js-BXWJZZq0.js +29 -0
  646. package/build/server/chunks/chunks/PluginElement.js-DW1ooWEo.js +25 -0
  647. package/build/server/chunks/chunks/SettingsNav.js-C2J-VY7I.js +39 -0
  648. package/build/server/chunks/chunks/Sheet.js-6nHEEt3S.js +3854 -0
  649. package/build/server/chunks/chunks/SlotContent.js-BsZHHN_u.js +704 -0
  650. package/build/server/chunks/chunks/VaultAdd.js-PcFUxHT9.js +146 -0
  651. package/build/server/chunks/chunks/blocks.js-DuedYFvd.js +156 -0
  652. package/build/server/chunks/chunks/chat.svelte.js-CN2Dl5hL.js +590 -0
  653. package/build/server/chunks/chunks/client.js-eyO8nh9R.js +24 -0
  654. package/build/server/chunks/chunks/detail.js-DRLnqEyQ.js +151 -0
  655. package/build/server/chunks/chunks/dialog-close.js-0Lh57mtO.js +42 -0
  656. package/build/server/chunks/chunks/dialog-content.js-B8ISMiZP.js +3356 -0
  657. package/build/server/chunks/chunks/dialog.js-hQ4Lcqz_.js +392 -0
  658. package/build/server/chunks/chunks/features.js-Bi0sPXvU.js +140 -0
  659. package/build/server/chunks/chunks/feedback.js-CESyaUOB.js +67 -0
  660. package/build/server/chunks/chunks/fold.js-BNM4Ug44.js +395 -0
  661. package/build/server/chunks/chunks/hourglass.js-BRDWs1ar.js +30 -0
  662. package/build/server/chunks/chunks/index-server.js-DMc-UvjC.js +19 -0
  663. package/build/server/chunks/chunks/index-server2.js-qvYADcF_.js +17 -0
  664. package/build/server/chunks/chunks/index2.js-CwJbkPWB.js +40 -0
  665. package/build/server/chunks/chunks/insights.svelte.js-BjCJwX23.js +681 -0
  666. package/build/server/chunks/chunks/internal.js-DoJl8rwN.js +151 -0
  667. package/build/server/chunks/chunks/live.svelte.js-bE0H0fOh.js +259 -0
  668. package/build/server/chunks/chunks/marketplace-service.js-DXm8rtSf.js +557 -0
  669. package/build/server/chunks/chunks/package.js-CrrQoAnK.js +154 -0
  670. package/build/server/chunks/chunks/page.js-C8gcgUih.js +11 -0
  671. package/build/server/chunks/chunks/phone.svelte.js-Bz4rhdR6.js +7 -0
  672. package/build/server/chunks/chunks/plugins.js-CEZaeLDm.js +58 -0
  673. package/build/server/chunks/chunks/previewhelper2.js-CPW-ym9F.js +166 -0
  674. package/build/server/chunks/chunks/repo.js-Du-fw6dp.js +33 -0
  675. package/build/server/chunks/chunks/runtime.js-mgwdmp8t.js +23378 -0
  676. package/build/server/chunks/chunks/service.js-DrkaOdZh.js +1339 -0
  677. package/build/server/chunks/chunks/service2.js-Bll5vrZ9.js +835 -0
  678. package/build/server/chunks/chunks/service3.js-CPx2wPWX.js +811 -0
  679. package/build/server/chunks/chunks/sessions.js-Bjm8IMKp.js +452 -0
  680. package/build/server/chunks/chunks/settings.js-DqKx7bPt.js +379 -0
  681. package/build/server/chunks/chunks/settings3.js-BlZbXkzQ.js +21 -0
  682. package/build/server/chunks/chunks/settings4.js-8JjZvg3U.js +690 -0
  683. package/build/server/chunks/chunks/starter.js-JTMo1Mvg.js +400 -0
  684. package/build/server/chunks/chunks/state.svelte.js-kNm-eS2R.js +13 -0
  685. package/build/server/chunks/chunks/tmux.js-iKfXN6X8.js +450 -0
  686. package/build/server/chunks/chunks/tools.js-DijWil7F.js +155 -0
  687. package/build/server/chunks/chunks/vault.js-giGoLNSu.js +12 -0
  688. package/build/server/chunks/chunks/view.js-C1OUGijL.js +76 -0
  689. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-BuSitHCg.js +105 -0
  690. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CNl9Ias2.js +111 -0
  691. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-bQyXxBQf.js +52 -0
  692. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-C0O0609p.js +68 -0
  693. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-0w4WXHDi.js +72 -0
  694. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CaBYHg-p.js +134 -0
  695. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-mlT973XN.js +56 -0
  696. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-mOOjBpQ5.js +64 -0
  697. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-BQ9tsuI4.js +98 -0
  698. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-BUcW4PvM.js +76 -0
  699. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-D8qRYxh1.js +65 -0
  700. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-C-VI8e2k.js +59 -0
  701. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CVujdoKz.js +59 -0
  702. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-0VJvxe2Y.js +60 -0
  703. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DHFt8CoD.js +66 -0
  704. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DQgW9Ntd.js +59 -0
  705. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-UGhSPzFZ.js +108 -0
  706. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BPU6Xpdp.js +69 -0
  707. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-bvYU2Ioc.js +80 -0
  708. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BDB2BVgs.js +68 -0
  709. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-C1ZKwy2B.js +59 -0
  710. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Cu9vBWfZ.js +51 -0
  711. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-CG-XB_Ym.js +51 -0
  712. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-Cox5jJ2Q.js +78 -0
  713. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-C3DNu8pd.js +76 -0
  714. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-Fxrg4PGy.js +69 -0
  715. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BAU5WTFf.js +51 -0
  716. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-C3KNOI_z.js +70 -0
  717. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-BKqsHvHg.js +65 -0
  718. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-BjAQnIN6.js +23 -0
  719. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-ZTtHt5q3.js +26 -0
  720. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-CUPyprsc.js +86 -0
  721. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-ClesSc9w.js +69 -0
  722. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-D4Xc7hJR.js +65 -0
  723. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BmXyODw3.js +86 -0
  724. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-to_a3SYk.js +75 -0
  725. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-LyQRMWvK.js +70 -0
  726. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-Byj9O_J1.js +67 -0
  727. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-DVdmEXgI.js +27 -0
  728. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-DaanKmt_.js +74 -0
  729. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DyJ-NyJA.js +39 -0
  730. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CNFJbTf1.js +51 -0
  731. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BMlNgjWs.js +39 -0
  732. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BW7qwxw4.js +42 -0
  733. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-DBJbPZGJ.js +56 -0
  734. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-Dc2np-kT.js +65 -0
  735. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-u8BgK2aT.js +62 -0
  736. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-1Yto-9_p.js +66 -0
  737. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-DsE6Q13G.js +27 -0
  738. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-ooBKDSjB.js +74 -0
  739. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CSm3fpDB.js +56 -0
  740. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-nTrpwAyt.js +65 -0
  741. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BvVFR97i.js +77 -0
  742. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-BpfSXCKZ.js +64 -0
  743. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-yy9LH6Wm.js +87 -0
  744. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-D4qOEHTQ.js +70 -0
  745. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Ch4KyB7C.js +569 -0
  746. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-xBFdDBRB.js +81 -0
  747. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js--ijsVFNn.js +60 -0
  748. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DAWsPyHN.js +70 -0
  749. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-CCirdhaF.js +130 -0
  750. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DpbDXwle.js +59 -0
  751. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-DmtswYlE.js +56 -0
  752. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BH2dqm4H.js +75 -0
  753. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BxbmyFJ9.js +100 -0
  754. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-CgP1wlDY.js +68 -0
  755. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-CUDKIOC-.js +116 -0
  756. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-B89iytOD.js +70 -0
  757. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-o-MMdyQY.js +73 -0
  758. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-Be6RPnv3.js +74 -0
  759. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-1Xpy0Skk.js +23 -0
  760. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BXEBQai-.js +30 -0
  761. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-BfgrNGGr.js +32 -0
  762. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-DwOSe2Xb.js +86 -0
  763. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-C0qxImm3.js +40 -0
  764. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-DnXLeCOG.js +27 -0
  765. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-BDBVyy_4.js +27 -0
  766. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-BqohXKPa.js +55 -0
  767. package/build/server/chunks/entries/fallbacks/error.svelte.js-CQ6LuoCk.js +16 -0
  768. package/build/server/chunks/entries/hooks.server.js-3OcmRF6Y.js +97 -0
  769. package/build/server/chunks/entries/pages/_layout.server.ts.js-DEdQNKf4.js +54 -0
  770. package/build/server/chunks/entries/pages/_layout.svelte.js-DYo_IIVD.js +5630 -0
  771. package/build/server/chunks/entries/pages/_page.server.ts.js-ChltsQ0Z.js +16 -0
  772. package/build/server/chunks/entries/pages/_page.svelte.js-koYjFwMr.js +4444 -0
  773. package/build/server/chunks/entries/pages/crew/_page.svelte.js-D75Ou9XE.js +136 -0
  774. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CsdK96p0.js +11 -0
  775. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-q0GzHUU9.js +203 -0
  776. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-D02oYejY.js +16 -0
  777. package/build/server/chunks/entries/pages/deck/_page.svelte.js-BTFq3iWb.js +110 -0
  778. package/build/server/chunks/entries/pages/files/_page.server.ts.js-BrGpZdiN.js +17 -0
  779. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-DvT9q8I7.js +47 -0
  780. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-B9TjegrQ.js +752 -0
  781. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-B7S2-K6e.js +11 -0
  782. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-Dwzou84I.js +296 -0
  783. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-28IqYicd.js +11 -0
  784. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-PIMnXd72.js +217 -0
  785. package/build/server/chunks/entries/pages/more/_page.svelte.js-BpPI8mng.js +144 -0
  786. package/build/server/chunks/entries/pages/plugins/_page.svelte.js-BfGhV09D.js +677 -0
  787. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-D5RIxVu_.js +16 -0
  788. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-Cpuc83Iz.js +60 -0
  789. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-D6ODIMJe.js +23 -0
  790. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-DyzbY0r0.js +957 -0
  791. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-JYQaYPT1.js +21 -0
  792. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-D6D5AH7J.js +82 -0
  793. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DiH7Xgxh.js +27 -0
  794. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-BEja-Msc.js +420 -0
  795. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DXN1Pz6N.js +15 -0
  796. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-VthWhHjD.js +1867 -0
  797. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-unNhJXMe.js +11 -0
  798. package/build/server/chunks/entries/pages/remotes/_page.svelte.js-CBQbWcJc.js +336 -0
  799. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CvFse8fa.js +13 -0
  800. package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-x-oZvzb6.js +432 -0
  801. package/build/server/chunks/entries/pages/second-mates/add/_page.svelte.js-C4UNV2C4.js +51 -0
  802. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-C6YK0DH6.js +12 -0
  803. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-DLWo2WbV.js +18 -0
  804. package/build/server/chunks/entries/pages/settings/chat/_page.svelte.js-kO0jkmet.js +77 -0
  805. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-BRhWAJHp.js +19 -0
  806. package/build/server/chunks/entries/pages/settings/discussion/_page.svelte.js-BXuafe1n.js +125 -0
  807. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-DiI_TaEO.js +16 -0
  808. package/build/server/chunks/entries/pages/settings/events/_page.svelte.js-BbnawBPo.js +111 -0
  809. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-BOJ5ZyM9.js +15 -0
  810. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-BHqMDcoN.js +68 -0
  811. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-DN1bZUKc.js +797 -0
  812. package/build/server/chunks/entries/pages/settings/firstmate/_page.svelte.js-D4BUKnQE.js +254 -0
  813. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BB8VWh97.js +11 -0
  814. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-CLIBt7cn.js +248 -0
  815. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BGUvTLnA.js +19 -0
  816. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BfF1T4_C.js +566 -0
  817. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-CLDJv8c7.js +17 -0
  818. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-DCCuPnVH.js +239 -0
  819. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BclOpKsO.js +11 -0
  820. package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-BfjVuU7n.js +56 -0
  821. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-DRjpy-3P.js +11 -0
  822. package/build/server/chunks/entries/pages/settings/update/_page.svelte.js-DCadYd7c.js +62 -0
  823. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-CrCnBoyl.js +15 -0
  824. package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-bT1bJsEw.js +179 -0
  825. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-DeC7oHWi.js +18 -0
  826. package/build/server/chunks/entries/pages/setup/_page.svelte.js-B1bBmKtN.js +1439 -0
  827. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-DS2cCumK.js +36 -0
  828. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-C11bllW6.js +3017 -0
  829. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BmIPemm2.js +24 -0
  830. package/build/server/chunks/entries/pages/time/_page.server.ts.js-YJ6bz3kM.js +11 -0
  831. package/build/server/chunks/entries/pages/time/_page.svelte.js-BNFJtEjQ.js +109 -0
  832. package/build/server/chunks/handler-DkqWdYGS.js +1474 -0
  833. package/build/server/chunks/index.js-CkJF4slq.js +4296 -0
  834. package/build/server/chunks/manifest.js-Bs7BUT9P.js +889 -0
  835. package/build/server/chunks/nodes/0.js-BLa84UcD.js +59 -0
  836. package/build/server/chunks/nodes/1.js-CoZLKs_5.js +9 -0
  837. package/build/server/chunks/nodes/10.js-CZt42Sbx.js +56 -0
  838. package/build/server/chunks/nodes/11.js-CBpDHAYR.js +9 -0
  839. package/build/server/chunks/nodes/12.js-43L-gzrz.js +9 -0
  840. package/build/server/chunks/nodes/13.js-CnypCFEM.js +56 -0
  841. package/build/server/chunks/nodes/14.js-DuIh16yC.js +59 -0
  842. package/build/server/chunks/nodes/15.js-B2yybaHF.js +57 -0
  843. package/build/server/chunks/nodes/16.js-BA2nus4V.js +58 -0
  844. package/build/server/chunks/nodes/17.js-D292D7q8.js +57 -0
  845. package/build/server/chunks/nodes/18.js-CAY8fIZd.js +26 -0
  846. package/build/server/chunks/nodes/19.js-XA1Xw7Au.js +25 -0
  847. package/build/server/chunks/nodes/2.js-Dpz6x1T7.js +56 -0
  848. package/build/server/chunks/nodes/20.js-BoIi2_y2.js +9 -0
  849. package/build/server/chunks/nodes/21.js-ByqHK-r-.js +25 -0
  850. package/build/server/chunks/nodes/22.js-DWJ3DgEA.js +56 -0
  851. package/build/server/chunks/nodes/23.js-CSOx5wG0.js +16 -0
  852. package/build/server/chunks/nodes/24.js-DGHoTZcL.js +57 -0
  853. package/build/server/chunks/nodes/25.js-eOrNKIXr.js +56 -0
  854. package/build/server/chunks/nodes/26.js-Ceaqnuy-.js +25 -0
  855. package/build/server/chunks/nodes/27.js-sFX3iijs.js +56 -0
  856. package/build/server/chunks/nodes/28.js-ByZFjWh5.js +26 -0
  857. package/build/server/chunks/nodes/29.js-C1B9W3tQ.js +56 -0
  858. package/build/server/chunks/nodes/3.js-BH_6ASRs.js +9 -0
  859. package/build/server/chunks/nodes/30.js-Bk0O1CPW.js +59 -0
  860. package/build/server/chunks/nodes/31.js-BFHuPPYT.js +58 -0
  861. package/build/server/chunks/nodes/32.js-BiQg4dhH.js +26 -0
  862. package/build/server/chunks/nodes/33.js-zzJuoF-k.js +58 -0
  863. package/build/server/chunks/nodes/34.js-BJqPvgXC.js +60 -0
  864. package/build/server/chunks/nodes/35.js-DIqcKF3q.js +57 -0
  865. package/build/server/chunks/nodes/36.js-DPnWfRPH.js +57 -0
  866. package/build/server/chunks/nodes/37.js-DOoDt57E.js +56 -0
  867. package/build/server/chunks/nodes/4.js-91cTeZNJ.js +56 -0
  868. package/build/server/chunks/nodes/5.js-vruaHYMc.js +56 -0
  869. package/build/server/chunks/nodes/7.js-BIhblnu_.js +56 -0
  870. package/build/server/chunks/nodes/8.js-CyITTuZ1.js +61 -0
  871. package/build/server/chunks/nodes/9.js-RBViwGx9.js +56 -0
  872. package/dist/cli.js +18 -6
  873. package/dist/wh-vault.js +1 -1
  874. package/firstmate-extension/firstmate-extension.json +1 -1
  875. package/package.json +3 -1
  876. package/skills/manage-wheelhouse/references/operations.md +20 -20
  877. package/build/client/_app/immutable/assets/0.DPXXVvQJ.css +0 -1
  878. package/build/client/_app/immutable/assets/0.DPXXVvQJ.css.br +0 -0
  879. package/build/client/_app/immutable/assets/0.DPXXVvQJ.css.gz +0 -0
  880. package/build/client/_app/immutable/assets/2.9iA_78o1.css +0 -1
  881. package/build/client/_app/immutable/assets/2.9iA_78o1.css.br +0 -0
  882. package/build/client/_app/immutable/assets/2.9iA_78o1.css.gz +0 -0
  883. package/build/client/_app/immutable/chunks/-7ouQdsG.js +0 -1
  884. package/build/client/_app/immutable/chunks/-7ouQdsG.js.br +0 -0
  885. package/build/client/_app/immutable/chunks/-7ouQdsG.js.gz +0 -0
  886. package/build/client/_app/immutable/chunks/4pTUx6eL.js +0 -1
  887. package/build/client/_app/immutable/chunks/4pTUx6eL.js.br +0 -4
  888. package/build/client/_app/immutable/chunks/4pTUx6eL.js.gz +0 -0
  889. package/build/client/_app/immutable/chunks/55XEoNtX.js +0 -1
  890. package/build/client/_app/immutable/chunks/55XEoNtX.js.br +0 -2
  891. package/build/client/_app/immutable/chunks/55XEoNtX.js.gz +0 -0
  892. package/build/client/_app/immutable/chunks/6DAn206W.js +0 -1
  893. package/build/client/_app/immutable/chunks/6DAn206W.js.br +0 -0
  894. package/build/client/_app/immutable/chunks/6DAn206W.js.gz +0 -0
  895. package/build/client/_app/immutable/chunks/6rTUl_co.js +0 -1
  896. package/build/client/_app/immutable/chunks/6rTUl_co.js.br +0 -0
  897. package/build/client/_app/immutable/chunks/6rTUl_co.js.gz +0 -0
  898. package/build/client/_app/immutable/chunks/8Fai-wPF.js +0 -1
  899. package/build/client/_app/immutable/chunks/8Fai-wPF.js.br +0 -0
  900. package/build/client/_app/immutable/chunks/8Fai-wPF.js.gz +0 -0
  901. package/build/client/_app/immutable/chunks/8WgbCzWs.js +0 -1
  902. package/build/client/_app/immutable/chunks/8WgbCzWs.js.br +0 -0
  903. package/build/client/_app/immutable/chunks/8WgbCzWs.js.gz +0 -0
  904. package/build/client/_app/immutable/chunks/B0-xhMiU.js +0 -5
  905. package/build/client/_app/immutable/chunks/B0-xhMiU.js.br +0 -0
  906. package/build/client/_app/immutable/chunks/B0-xhMiU.js.gz +0 -0
  907. package/build/client/_app/immutable/chunks/B1V3Ajhv.js +0 -1
  908. package/build/client/_app/immutable/chunks/B1V3Ajhv.js.br +0 -0
  909. package/build/client/_app/immutable/chunks/B1V3Ajhv.js.gz +0 -0
  910. package/build/client/_app/immutable/chunks/B60LYfBd.js +0 -1
  911. package/build/client/_app/immutable/chunks/B60LYfBd.js.br +0 -0
  912. package/build/client/_app/immutable/chunks/B60LYfBd.js.gz +0 -0
  913. package/build/client/_app/immutable/chunks/BACvplXC.js +0 -2
  914. package/build/client/_app/immutable/chunks/BACvplXC.js.br +0 -0
  915. package/build/client/_app/immutable/chunks/BACvplXC.js.gz +0 -0
  916. package/build/client/_app/immutable/chunks/BAsiHkaZ.js +0 -1
  917. package/build/client/_app/immutable/chunks/BAsiHkaZ.js.br +0 -0
  918. package/build/client/_app/immutable/chunks/BAsiHkaZ.js.gz +0 -0
  919. package/build/client/_app/immutable/chunks/BAuCcuxw.js +0 -1
  920. package/build/client/_app/immutable/chunks/BAuCcuxw.js.br +0 -0
  921. package/build/client/_app/immutable/chunks/BAuCcuxw.js.gz +0 -0
  922. package/build/client/_app/immutable/chunks/BBYXgHkS.js +0 -5
  923. package/build/client/_app/immutable/chunks/BBYXgHkS.js.br +0 -0
  924. package/build/client/_app/immutable/chunks/BBYXgHkS.js.gz +0 -0
  925. package/build/client/_app/immutable/chunks/BGW1RfKQ.js +0 -1
  926. package/build/client/_app/immutable/chunks/BGW1RfKQ.js.br +0 -2
  927. package/build/client/_app/immutable/chunks/BGW1RfKQ.js.gz +0 -0
  928. package/build/client/_app/immutable/chunks/BJoMiuA8.js +0 -1
  929. package/build/client/_app/immutable/chunks/BJoMiuA8.js.br +0 -0
  930. package/build/client/_app/immutable/chunks/BJoMiuA8.js.gz +0 -0
  931. package/build/client/_app/immutable/chunks/BTUBKbNp.js +0 -1
  932. package/build/client/_app/immutable/chunks/BTUBKbNp.js.br +0 -0
  933. package/build/client/_app/immutable/chunks/BTUBKbNp.js.gz +0 -0
  934. package/build/client/_app/immutable/chunks/BVzdpycb.js +0 -1
  935. package/build/client/_app/immutable/chunks/BVzdpycb.js.br +0 -0
  936. package/build/client/_app/immutable/chunks/BVzdpycb.js.gz +0 -0
  937. package/build/client/_app/immutable/chunks/BWPYBmh1.js +0 -1
  938. package/build/client/_app/immutable/chunks/BWPYBmh1.js.br +0 -2
  939. package/build/client/_app/immutable/chunks/BWPYBmh1.js.gz +0 -0
  940. package/build/client/_app/immutable/chunks/BW_JnYeB.js +0 -1
  941. package/build/client/_app/immutable/chunks/BW_JnYeB.js.br +0 -0
  942. package/build/client/_app/immutable/chunks/BW_JnYeB.js.gz +0 -0
  943. package/build/client/_app/immutable/chunks/BXnxklRE.js +0 -6
  944. package/build/client/_app/immutable/chunks/BXnxklRE.js.br +0 -0
  945. package/build/client/_app/immutable/chunks/BXnxklRE.js.gz +0 -0
  946. package/build/client/_app/immutable/chunks/BbNNG5a4.js +0 -1
  947. package/build/client/_app/immutable/chunks/BbNNG5a4.js.br +0 -0
  948. package/build/client/_app/immutable/chunks/BbNNG5a4.js.gz +0 -0
  949. package/build/client/_app/immutable/chunks/BcCorYoj.js +0 -1
  950. package/build/client/_app/immutable/chunks/BcCorYoj.js.br +0 -0
  951. package/build/client/_app/immutable/chunks/BcCorYoj.js.gz +0 -0
  952. package/build/client/_app/immutable/chunks/Bf46oUeB.js +0 -1
  953. package/build/client/_app/immutable/chunks/Bf46oUeB.js.br +0 -0
  954. package/build/client/_app/immutable/chunks/Bf46oUeB.js.gz +0 -0
  955. package/build/client/_app/immutable/chunks/BfNiKjWt.js +0 -1
  956. package/build/client/_app/immutable/chunks/BfNiKjWt.js.br +0 -0
  957. package/build/client/_app/immutable/chunks/BfNiKjWt.js.gz +0 -0
  958. package/build/client/_app/immutable/chunks/BgdwPfvE.js +0 -1
  959. package/build/client/_app/immutable/chunks/BgdwPfvE.js.br +0 -0
  960. package/build/client/_app/immutable/chunks/BgdwPfvE.js.gz +0 -0
  961. package/build/client/_app/immutable/chunks/BjfHpW4u.js +0 -1
  962. package/build/client/_app/immutable/chunks/BjfHpW4u.js.br +0 -0
  963. package/build/client/_app/immutable/chunks/BjfHpW4u.js.gz +0 -0
  964. package/build/client/_app/immutable/chunks/BjlKuhi7.js +0 -1
  965. package/build/client/_app/immutable/chunks/BjlKuhi7.js.br +0 -3
  966. package/build/client/_app/immutable/chunks/BjlKuhi7.js.gz +0 -0
  967. package/build/client/_app/immutable/chunks/Bt6KUUDH.js +0 -1
  968. package/build/client/_app/immutable/chunks/Bt6KUUDH.js.br +0 -0
  969. package/build/client/_app/immutable/chunks/Bt6KUUDH.js.gz +0 -0
  970. package/build/client/_app/immutable/chunks/Buvnupwl.js +0 -1
  971. package/build/client/_app/immutable/chunks/Buvnupwl.js.br +0 -0
  972. package/build/client/_app/immutable/chunks/Buvnupwl.js.gz +0 -0
  973. package/build/client/_app/immutable/chunks/BvA9ozND.js +0 -3
  974. package/build/client/_app/immutable/chunks/BvA9ozND.js.br +0 -0
  975. package/build/client/_app/immutable/chunks/BvA9ozND.js.gz +0 -0
  976. package/build/client/_app/immutable/chunks/C-hNi8vR.js +0 -1
  977. package/build/client/_app/immutable/chunks/C-hNi8vR.js.br +0 -0
  978. package/build/client/_app/immutable/chunks/C-hNi8vR.js.gz +0 -0
  979. package/build/client/_app/immutable/chunks/C00jDMn9.js +0 -6
  980. package/build/client/_app/immutable/chunks/C00jDMn9.js.br +0 -0
  981. package/build/client/_app/immutable/chunks/C00jDMn9.js.gz +0 -0
  982. package/build/client/_app/immutable/chunks/C3RYx8bC.js +0 -1
  983. package/build/client/_app/immutable/chunks/C3RYx8bC.js.br +0 -0
  984. package/build/client/_app/immutable/chunks/C3RYx8bC.js.gz +0 -0
  985. package/build/client/_app/immutable/chunks/C3tLc6qk.js +0 -1
  986. package/build/client/_app/immutable/chunks/C3tLc6qk.js.br +0 -2
  987. package/build/client/_app/immutable/chunks/C3tLc6qk.js.gz +0 -0
  988. package/build/client/_app/immutable/chunks/C6Hf7_tG.js +0 -1
  989. package/build/client/_app/immutable/chunks/C6Hf7_tG.js.br +0 -0
  990. package/build/client/_app/immutable/chunks/C6Hf7_tG.js.gz +0 -0
  991. package/build/client/_app/immutable/chunks/C6jVoo_e.js +0 -2
  992. package/build/client/_app/immutable/chunks/C6jVoo_e.js.br +0 -0
  993. package/build/client/_app/immutable/chunks/C6jVoo_e.js.gz +0 -0
  994. package/build/client/_app/immutable/chunks/C8KbmUF3.js +0 -1
  995. package/build/client/_app/immutable/chunks/C8KbmUF3.js.br +0 -2
  996. package/build/client/_app/immutable/chunks/C8KbmUF3.js.gz +0 -0
  997. package/build/client/_app/immutable/chunks/CA87s_sP.js +0 -1
  998. package/build/client/_app/immutable/chunks/CA87s_sP.js.br +0 -0
  999. package/build/client/_app/immutable/chunks/CA87s_sP.js.gz +0 -0
  1000. package/build/client/_app/immutable/chunks/CBDCrDpK.js +0 -3
  1001. package/build/client/_app/immutable/chunks/CBDCrDpK.js.br +0 -0
  1002. package/build/client/_app/immutable/chunks/CBDCrDpK.js.gz +0 -0
  1003. package/build/client/_app/immutable/chunks/CCIw75Yv.js +0 -7
  1004. package/build/client/_app/immutable/chunks/CCIw75Yv.js.br +0 -0
  1005. package/build/client/_app/immutable/chunks/CCIw75Yv.js.gz +0 -0
  1006. package/build/client/_app/immutable/chunks/CFTCozxo.js +0 -1
  1007. package/build/client/_app/immutable/chunks/CFTCozxo.js.br +0 -0
  1008. package/build/client/_app/immutable/chunks/CFTCozxo.js.gz +0 -0
  1009. package/build/client/_app/immutable/chunks/CFm6pZG0.js +0 -1
  1010. package/build/client/_app/immutable/chunks/CFm6pZG0.js.br +0 -0
  1011. package/build/client/_app/immutable/chunks/CFm6pZG0.js.gz +0 -0
  1012. package/build/client/_app/immutable/chunks/CJNEYVWj.js +0 -2
  1013. package/build/client/_app/immutable/chunks/CJNEYVWj.js.br +0 -0
  1014. package/build/client/_app/immutable/chunks/CJNEYVWj.js.gz +0 -0
  1015. package/build/client/_app/immutable/chunks/CLd-Yktx.js +0 -1
  1016. package/build/client/_app/immutable/chunks/CLd-Yktx.js.br +0 -0
  1017. package/build/client/_app/immutable/chunks/CLd-Yktx.js.gz +0 -0
  1018. package/build/client/_app/immutable/chunks/CMHkuJ4s.js +0 -1
  1019. package/build/client/_app/immutable/chunks/CMHkuJ4s.js.br +0 -0
  1020. package/build/client/_app/immutable/chunks/CMHkuJ4s.js.gz +0 -0
  1021. package/build/client/_app/immutable/chunks/CNX1VoIh.js +0 -1
  1022. package/build/client/_app/immutable/chunks/CNX1VoIh.js.br +0 -0
  1023. package/build/client/_app/immutable/chunks/CNX1VoIh.js.gz +0 -0
  1024. package/build/client/_app/immutable/chunks/CNvNrJS-.js +0 -1
  1025. package/build/client/_app/immutable/chunks/CNvNrJS-.js.br +0 -0
  1026. package/build/client/_app/immutable/chunks/CNvNrJS-.js.gz +0 -0
  1027. package/build/client/_app/immutable/chunks/CONXZwsH.js +0 -1
  1028. package/build/client/_app/immutable/chunks/CONXZwsH.js.br +0 -0
  1029. package/build/client/_app/immutable/chunks/CONXZwsH.js.gz +0 -0
  1030. package/build/client/_app/immutable/chunks/CQL7onaq.js +0 -1
  1031. package/build/client/_app/immutable/chunks/CQL7onaq.js.br +0 -0
  1032. package/build/client/_app/immutable/chunks/CQL7onaq.js.gz +0 -0
  1033. package/build/client/_app/immutable/chunks/CUE4X2zW.js +0 -2
  1034. package/build/client/_app/immutable/chunks/CUE4X2zW.js.br +0 -0
  1035. package/build/client/_app/immutable/chunks/CUE4X2zW.js.gz +0 -0
  1036. package/build/client/_app/immutable/chunks/CUngZJag.js +0 -4
  1037. package/build/client/_app/immutable/chunks/CUngZJag.js.br +0 -0
  1038. package/build/client/_app/immutable/chunks/CUngZJag.js.gz +0 -0
  1039. package/build/client/_app/immutable/chunks/Cbb01QYB.js +0 -1
  1040. package/build/client/_app/immutable/chunks/Cbb01QYB.js.br +0 -0
  1041. package/build/client/_app/immutable/chunks/Cbb01QYB.js.gz +0 -0
  1042. package/build/client/_app/immutable/chunks/Cd67i1u_.js +0 -62
  1043. package/build/client/_app/immutable/chunks/Cd67i1u_.js.br +0 -0
  1044. package/build/client/_app/immutable/chunks/Cd67i1u_.js.gz +0 -0
  1045. package/build/client/_app/immutable/chunks/CddGcyNX.js +0 -1
  1046. package/build/client/_app/immutable/chunks/CddGcyNX.js.br +0 -0
  1047. package/build/client/_app/immutable/chunks/CddGcyNX.js.gz +0 -0
  1048. package/build/client/_app/immutable/chunks/Cf6pdpsz.js +0 -1
  1049. package/build/client/_app/immutable/chunks/Cf6pdpsz.js.br +0 -0
  1050. package/build/client/_app/immutable/chunks/Cf6pdpsz.js.gz +0 -0
  1051. package/build/client/_app/immutable/chunks/Cg5o-Sdi.js +0 -1
  1052. package/build/client/_app/immutable/chunks/Cg5o-Sdi.js.br +0 -0
  1053. package/build/client/_app/immutable/chunks/Cg5o-Sdi.js.gz +0 -0
  1054. package/build/client/_app/immutable/chunks/CkNCm7Ts.js +0 -1
  1055. package/build/client/_app/immutable/chunks/CkNCm7Ts.js.br +0 -0
  1056. package/build/client/_app/immutable/chunks/CkNCm7Ts.js.gz +0 -0
  1057. package/build/client/_app/immutable/chunks/CloMQgCF.js +0 -1
  1058. package/build/client/_app/immutable/chunks/CloMQgCF.js.br +0 -0
  1059. package/build/client/_app/immutable/chunks/CloMQgCF.js.gz +0 -0
  1060. package/build/client/_app/immutable/chunks/CmLAxoyv.js +0 -1
  1061. package/build/client/_app/immutable/chunks/CmLAxoyv.js.br +0 -0
  1062. package/build/client/_app/immutable/chunks/CmLAxoyv.js.gz +0 -0
  1063. package/build/client/_app/immutable/chunks/CmYKKTYS.js +0 -1
  1064. package/build/client/_app/immutable/chunks/CmYKKTYS.js.br +0 -0
  1065. package/build/client/_app/immutable/chunks/CmYKKTYS.js.gz +0 -0
  1066. package/build/client/_app/immutable/chunks/Cox57RCx.js +0 -1
  1067. package/build/client/_app/immutable/chunks/Cox57RCx.js.br +0 -0
  1068. package/build/client/_app/immutable/chunks/Cox57RCx.js.gz +0 -0
  1069. package/build/client/_app/immutable/chunks/CrfUP_VX.js +0 -1
  1070. package/build/client/_app/immutable/chunks/CrfUP_VX.js.br +0 -0
  1071. package/build/client/_app/immutable/chunks/CrfUP_VX.js.gz +0 -0
  1072. package/build/client/_app/immutable/chunks/CvmB6XOk.js +0 -1
  1073. package/build/client/_app/immutable/chunks/CvmB6XOk.js.br +0 -0
  1074. package/build/client/_app/immutable/chunks/CvmB6XOk.js.gz +0 -0
  1075. package/build/client/_app/immutable/chunks/CwMBkOM6.js +0 -1
  1076. package/build/client/_app/immutable/chunks/CwMBkOM6.js.br +0 -0
  1077. package/build/client/_app/immutable/chunks/CwMBkOM6.js.gz +0 -0
  1078. package/build/client/_app/immutable/chunks/Cx5j6iHA.js +0 -1
  1079. package/build/client/_app/immutable/chunks/Cx5j6iHA.js.br +0 -0
  1080. package/build/client/_app/immutable/chunks/Cx5j6iHA.js.gz +0 -0
  1081. package/build/client/_app/immutable/chunks/CyXpILz0.js +0 -1
  1082. package/build/client/_app/immutable/chunks/CyXpILz0.js.br +0 -3
  1083. package/build/client/_app/immutable/chunks/CyXpILz0.js.gz +0 -0
  1084. package/build/client/_app/immutable/chunks/CzzMm39R.js +0 -1
  1085. package/build/client/_app/immutable/chunks/CzzMm39R.js.br +0 -0
  1086. package/build/client/_app/immutable/chunks/CzzMm39R.js.gz +0 -0
  1087. package/build/client/_app/immutable/chunks/D3nPFlu1.js +0 -1
  1088. package/build/client/_app/immutable/chunks/D3nPFlu1.js.br +0 -0
  1089. package/build/client/_app/immutable/chunks/D3nPFlu1.js.gz +0 -0
  1090. package/build/client/_app/immutable/chunks/D5JDx3SO.js +0 -1
  1091. package/build/client/_app/immutable/chunks/D5JDx3SO.js.br +0 -0
  1092. package/build/client/_app/immutable/chunks/D5JDx3SO.js.gz +0 -0
  1093. package/build/client/_app/immutable/chunks/D6iImB2R.js +0 -1
  1094. package/build/client/_app/immutable/chunks/D6iImB2R.js.br +0 -0
  1095. package/build/client/_app/immutable/chunks/D6iImB2R.js.gz +0 -0
  1096. package/build/client/_app/immutable/chunks/D7FYExvP.js +0 -1
  1097. package/build/client/_app/immutable/chunks/D7FYExvP.js.br +0 -0
  1098. package/build/client/_app/immutable/chunks/D7FYExvP.js.gz +0 -0
  1099. package/build/client/_app/immutable/chunks/DCCfudFU.js +0 -1
  1100. package/build/client/_app/immutable/chunks/DCCfudFU.js.br +0 -0
  1101. package/build/client/_app/immutable/chunks/DCCfudFU.js.gz +0 -0
  1102. package/build/client/_app/immutable/chunks/DDdiwn-U.js +0 -1
  1103. package/build/client/_app/immutable/chunks/DDdiwn-U.js.br +0 -0
  1104. package/build/client/_app/immutable/chunks/DDdiwn-U.js.gz +0 -0
  1105. package/build/client/_app/immutable/chunks/DNoFJI2q.js +0 -1
  1106. package/build/client/_app/immutable/chunks/DNoFJI2q.js.br +0 -0
  1107. package/build/client/_app/immutable/chunks/DNoFJI2q.js.gz +0 -0
  1108. package/build/client/_app/immutable/chunks/DNy30I3F.js +0 -1
  1109. package/build/client/_app/immutable/chunks/DNy30I3F.js.br +0 -0
  1110. package/build/client/_app/immutable/chunks/DNy30I3F.js.gz +0 -0
  1111. package/build/client/_app/immutable/chunks/DP4AJpRJ.js +0 -1
  1112. package/build/client/_app/immutable/chunks/DP4AJpRJ.js.br +0 -0
  1113. package/build/client/_app/immutable/chunks/DP4AJpRJ.js.gz +0 -0
  1114. package/build/client/_app/immutable/chunks/DQ1JWnwW.js +0 -1
  1115. package/build/client/_app/immutable/chunks/DQ1JWnwW.js.br +0 -0
  1116. package/build/client/_app/immutable/chunks/DQ1JWnwW.js.gz +0 -0
  1117. package/build/client/_app/immutable/chunks/DRN_mvpb.js +0 -1
  1118. package/build/client/_app/immutable/chunks/DRN_mvpb.js.br +0 -0
  1119. package/build/client/_app/immutable/chunks/DRN_mvpb.js.gz +0 -0
  1120. package/build/client/_app/immutable/chunks/DY9OJPPO.js +0 -1
  1121. package/build/client/_app/immutable/chunks/DY9OJPPO.js.br +0 -0
  1122. package/build/client/_app/immutable/chunks/DY9OJPPO.js.gz +0 -0
  1123. package/build/client/_app/immutable/chunks/DYyCX7y8.js +0 -1
  1124. package/build/client/_app/immutable/chunks/DYyCX7y8.js.br +0 -0
  1125. package/build/client/_app/immutable/chunks/DYyCX7y8.js.gz +0 -0
  1126. package/build/client/_app/immutable/chunks/DZCe_kkO.js +0 -1
  1127. package/build/client/_app/immutable/chunks/DZCe_kkO.js.br +0 -0
  1128. package/build/client/_app/immutable/chunks/DZCe_kkO.js.gz +0 -0
  1129. package/build/client/_app/immutable/chunks/DcVEd5MS.js +0 -1
  1130. package/build/client/_app/immutable/chunks/DcVEd5MS.js.br +0 -0
  1131. package/build/client/_app/immutable/chunks/DcVEd5MS.js.gz +0 -0
  1132. package/build/client/_app/immutable/chunks/De4O2In1.js +0 -1
  1133. package/build/client/_app/immutable/chunks/De4O2In1.js.br +0 -0
  1134. package/build/client/_app/immutable/chunks/De4O2In1.js.gz +0 -0
  1135. package/build/client/_app/immutable/chunks/DflltLwV.js +0 -1
  1136. package/build/client/_app/immutable/chunks/DflltLwV.js.br +0 -0
  1137. package/build/client/_app/immutable/chunks/DflltLwV.js.gz +0 -0
  1138. package/build/client/_app/immutable/chunks/DlKNcnrA.js +0 -1
  1139. package/build/client/_app/immutable/chunks/DlKNcnrA.js.br +0 -0
  1140. package/build/client/_app/immutable/chunks/DlKNcnrA.js.gz +0 -0
  1141. package/build/client/_app/immutable/chunks/Dr1I4h-s.js +0 -1
  1142. package/build/client/_app/immutable/chunks/Dr1I4h-s.js.br +0 -0
  1143. package/build/client/_app/immutable/chunks/Dr1I4h-s.js.gz +0 -0
  1144. package/build/client/_app/immutable/chunks/Duo3wamr.js +0 -3
  1145. package/build/client/_app/immutable/chunks/Duo3wamr.js.br +0 -0
  1146. package/build/client/_app/immutable/chunks/Duo3wamr.js.gz +0 -0
  1147. package/build/client/_app/immutable/chunks/Dx4-AA8Z.js +0 -1
  1148. package/build/client/_app/immutable/chunks/Dx4-AA8Z.js.br +0 -0
  1149. package/build/client/_app/immutable/chunks/Dx4-AA8Z.js.gz +0 -0
  1150. package/build/client/_app/immutable/chunks/DyxFq-Tu.js +0 -1
  1151. package/build/client/_app/immutable/chunks/DyxFq-Tu.js.br +0 -0
  1152. package/build/client/_app/immutable/chunks/DyxFq-Tu.js.gz +0 -0
  1153. package/build/client/_app/immutable/chunks/H9HCKj99.js +0 -1
  1154. package/build/client/_app/immutable/chunks/H9HCKj99.js.br +0 -0
  1155. package/build/client/_app/immutable/chunks/H9HCKj99.js.gz +0 -0
  1156. package/build/client/_app/immutable/chunks/JUcpD7p2.js +0 -1
  1157. package/build/client/_app/immutable/chunks/JUcpD7p2.js.br +0 -0
  1158. package/build/client/_app/immutable/chunks/JUcpD7p2.js.gz +0 -0
  1159. package/build/client/_app/immutable/chunks/Jwgp9Ian.js +0 -1
  1160. package/build/client/_app/immutable/chunks/Jwgp9Ian.js.br +0 -0
  1161. package/build/client/_app/immutable/chunks/Jwgp9Ian.js.gz +0 -0
  1162. package/build/client/_app/immutable/chunks/Kc5eW0mD.js +0 -1
  1163. package/build/client/_app/immutable/chunks/Kc5eW0mD.js.br +0 -0
  1164. package/build/client/_app/immutable/chunks/Kc5eW0mD.js.gz +0 -0
  1165. package/build/client/_app/immutable/chunks/MfmuqTIn.js +0 -2
  1166. package/build/client/_app/immutable/chunks/MfmuqTIn.js.br +0 -0
  1167. package/build/client/_app/immutable/chunks/MfmuqTIn.js.gz +0 -0
  1168. package/build/client/_app/immutable/chunks/OB0MS-qW.js +0 -1
  1169. package/build/client/_app/immutable/chunks/OB0MS-qW.js.br +0 -0
  1170. package/build/client/_app/immutable/chunks/OB0MS-qW.js.gz +0 -0
  1171. package/build/client/_app/immutable/chunks/RqfDdPGP.js +0 -1
  1172. package/build/client/_app/immutable/chunks/RqfDdPGP.js.br +0 -0
  1173. package/build/client/_app/immutable/chunks/RqfDdPGP.js.gz +0 -0
  1174. package/build/client/_app/immutable/chunks/SwQNkIpc.js +0 -1
  1175. package/build/client/_app/immutable/chunks/SwQNkIpc.js.br +0 -0
  1176. package/build/client/_app/immutable/chunks/SwQNkIpc.js.gz +0 -0
  1177. package/build/client/_app/immutable/chunks/Sz_v_ihG.js +0 -1
  1178. package/build/client/_app/immutable/chunks/Sz_v_ihG.js.br +0 -0
  1179. package/build/client/_app/immutable/chunks/Sz_v_ihG.js.gz +0 -0
  1180. package/build/client/_app/immutable/chunks/XNI4QyoL.js +0 -1
  1181. package/build/client/_app/immutable/chunks/XNI4QyoL.js.br +0 -0
  1182. package/build/client/_app/immutable/chunks/XNI4QyoL.js.gz +0 -0
  1183. package/build/client/_app/immutable/chunks/XcArh8sq.js +0 -1
  1184. package/build/client/_app/immutable/chunks/XcArh8sq.js.br +0 -0
  1185. package/build/client/_app/immutable/chunks/XcArh8sq.js.gz +0 -0
  1186. package/build/client/_app/immutable/chunks/Y8TXbmCY.js +0 -1
  1187. package/build/client/_app/immutable/chunks/Y8TXbmCY.js.br +0 -0
  1188. package/build/client/_app/immutable/chunks/Y8TXbmCY.js.gz +0 -0
  1189. package/build/client/_app/immutable/chunks/j2tARAl0.js +0 -1
  1190. package/build/client/_app/immutable/chunks/j2tARAl0.js.br +0 -0
  1191. package/build/client/_app/immutable/chunks/j2tARAl0.js.gz +0 -0
  1192. package/build/client/_app/immutable/chunks/pJK9uwuX.js +0 -1
  1193. package/build/client/_app/immutable/chunks/pJK9uwuX.js.br +0 -0
  1194. package/build/client/_app/immutable/chunks/pJK9uwuX.js.gz +0 -0
  1195. package/build/client/_app/immutable/chunks/s22ocs02.js +0 -2
  1196. package/build/client/_app/immutable/chunks/s22ocs02.js.br +0 -0
  1197. package/build/client/_app/immutable/chunks/s22ocs02.js.gz +0 -0
  1198. package/build/client/_app/immutable/chunks/s_pTaNbp.js +0 -6
  1199. package/build/client/_app/immutable/chunks/s_pTaNbp.js.br +0 -0
  1200. package/build/client/_app/immutable/chunks/s_pTaNbp.js.gz +0 -0
  1201. package/build/client/_app/immutable/chunks/siUtttqk.js +0 -1
  1202. package/build/client/_app/immutable/chunks/siUtttqk.js.br +0 -0
  1203. package/build/client/_app/immutable/chunks/siUtttqk.js.gz +0 -0
  1204. package/build/client/_app/immutable/chunks/vvzN7ZZi.js +0 -1
  1205. package/build/client/_app/immutable/chunks/vvzN7ZZi.js.br +0 -0
  1206. package/build/client/_app/immutable/chunks/vvzN7ZZi.js.gz +0 -0
  1207. package/build/client/_app/immutable/chunks/wu_NjAkT.js +0 -1
  1208. package/build/client/_app/immutable/chunks/wu_NjAkT.js.br +0 -0
  1209. package/build/client/_app/immutable/chunks/wu_NjAkT.js.gz +0 -0
  1210. package/build/client/_app/immutable/chunks/x63vhHzM.js +0 -1
  1211. package/build/client/_app/immutable/chunks/x63vhHzM.js.br +0 -0
  1212. package/build/client/_app/immutable/chunks/x63vhHzM.js.gz +0 -0
  1213. package/build/client/_app/immutable/entry/app.uuGtI25T.js +0 -2
  1214. package/build/client/_app/immutable/entry/app.uuGtI25T.js.br +0 -0
  1215. package/build/client/_app/immutable/entry/app.uuGtI25T.js.gz +0 -0
  1216. package/build/client/_app/immutable/entry/start.BSrz3Y1X.js +0 -1
  1217. package/build/client/_app/immutable/entry/start.BSrz3Y1X.js.br +0 -0
  1218. package/build/client/_app/immutable/entry/start.BSrz3Y1X.js.gz +0 -0
  1219. package/build/client/_app/immutable/nodes/0.DHLw1DuY.js +0 -9
  1220. package/build/client/_app/immutable/nodes/0.DHLw1DuY.js.br +0 -0
  1221. package/build/client/_app/immutable/nodes/0.DHLw1DuY.js.gz +0 -0
  1222. package/build/client/_app/immutable/nodes/1.BuIhidhM.js +0 -1
  1223. package/build/client/_app/immutable/nodes/1.BuIhidhM.js.br +0 -0
  1224. package/build/client/_app/immutable/nodes/1.BuIhidhM.js.gz +0 -0
  1225. package/build/client/_app/immutable/nodes/10.E-WSN4T5.js +0 -6
  1226. package/build/client/_app/immutable/nodes/10.E-WSN4T5.js.br +0 -0
  1227. package/build/client/_app/immutable/nodes/10.E-WSN4T5.js.gz +0 -0
  1228. package/build/client/_app/immutable/nodes/11.CvugthMP.js +0 -1
  1229. package/build/client/_app/immutable/nodes/11.CvugthMP.js.br +0 -0
  1230. package/build/client/_app/immutable/nodes/11.CvugthMP.js.gz +0 -0
  1231. package/build/client/_app/immutable/nodes/12.Fzr8RW6d.js +0 -10
  1232. package/build/client/_app/immutable/nodes/12.Fzr8RW6d.js.br +0 -0
  1233. package/build/client/_app/immutable/nodes/12.Fzr8RW6d.js.gz +0 -0
  1234. package/build/client/_app/immutable/nodes/13.BjOr1wFE.js +0 -1
  1235. package/build/client/_app/immutable/nodes/13.BjOr1wFE.js.br +0 -0
  1236. package/build/client/_app/immutable/nodes/13.BjOr1wFE.js.gz +0 -0
  1237. package/build/client/_app/immutable/nodes/14.DcPZGJeS.js +0 -3
  1238. package/build/client/_app/immutable/nodes/14.DcPZGJeS.js.br +0 -0
  1239. package/build/client/_app/immutable/nodes/14.DcPZGJeS.js.gz +0 -0
  1240. package/build/client/_app/immutable/nodes/15.Bq0AXBlK.js +0 -1
  1241. package/build/client/_app/immutable/nodes/15.Bq0AXBlK.js.br +0 -0
  1242. package/build/client/_app/immutable/nodes/15.Bq0AXBlK.js.gz +0 -0
  1243. package/build/client/_app/immutable/nodes/16.GK549RnR.js +0 -14
  1244. package/build/client/_app/immutable/nodes/16.GK549RnR.js.br +0 -0
  1245. package/build/client/_app/immutable/nodes/16.GK549RnR.js.gz +0 -0
  1246. package/build/client/_app/immutable/nodes/17.C6Xme4bR.js +0 -150
  1247. package/build/client/_app/immutable/nodes/17.C6Xme4bR.js.br +0 -0
  1248. package/build/client/_app/immutable/nodes/17.C6Xme4bR.js.gz +0 -0
  1249. package/build/client/_app/immutable/nodes/18.DA2gN3Zp.js +0 -25
  1250. package/build/client/_app/immutable/nodes/18.DA2gN3Zp.js.br +0 -0
  1251. package/build/client/_app/immutable/nodes/18.DA2gN3Zp.js.gz +0 -0
  1252. package/build/client/_app/immutable/nodes/19.OMjVNIrY.js +0 -5
  1253. package/build/client/_app/immutable/nodes/19.OMjVNIrY.js.br +0 -0
  1254. package/build/client/_app/immutable/nodes/19.OMjVNIrY.js.gz +0 -0
  1255. package/build/client/_app/immutable/nodes/2.OhKE5yg3.js +0 -28
  1256. package/build/client/_app/immutable/nodes/2.OhKE5yg3.js.br +0 -0
  1257. package/build/client/_app/immutable/nodes/2.OhKE5yg3.js.gz +0 -0
  1258. package/build/client/_app/immutable/nodes/21.C2Elewbr.js +0 -4
  1259. package/build/client/_app/immutable/nodes/21.C2Elewbr.js.br +0 -0
  1260. package/build/client/_app/immutable/nodes/21.C2Elewbr.js.gz +0 -0
  1261. package/build/client/_app/immutable/nodes/22.BirH-Y0c.js +0 -1
  1262. package/build/client/_app/immutable/nodes/22.BirH-Y0c.js.br +0 -0
  1263. package/build/client/_app/immutable/nodes/22.BirH-Y0c.js.gz +0 -0
  1264. package/build/client/_app/immutable/nodes/23.BQ06Ajmr.js +0 -8
  1265. package/build/client/_app/immutable/nodes/23.BQ06Ajmr.js.br +0 -0
  1266. package/build/client/_app/immutable/nodes/23.BQ06Ajmr.js.gz +0 -0
  1267. package/build/client/_app/immutable/nodes/24.CyKUK8Wm.js +0 -3
  1268. package/build/client/_app/immutable/nodes/24.CyKUK8Wm.js.br +0 -0
  1269. package/build/client/_app/immutable/nodes/24.CyKUK8Wm.js.gz +0 -0
  1270. package/build/client/_app/immutable/nodes/25.BfpY0ghB.js +0 -5
  1271. package/build/client/_app/immutable/nodes/25.BfpY0ghB.js.br +0 -0
  1272. package/build/client/_app/immutable/nodes/25.BfpY0ghB.js.gz +0 -0
  1273. package/build/client/_app/immutable/nodes/26.Drzj3UR-.js +0 -4
  1274. package/build/client/_app/immutable/nodes/26.Drzj3UR-.js.br +0 -0
  1275. package/build/client/_app/immutable/nodes/26.Drzj3UR-.js.gz +0 -0
  1276. package/build/client/_app/immutable/nodes/27.DHASVqGW.js +0 -7
  1277. package/build/client/_app/immutable/nodes/27.DHASVqGW.js.br +0 -0
  1278. package/build/client/_app/immutable/nodes/27.DHASVqGW.js.gz +0 -0
  1279. package/build/client/_app/immutable/nodes/28.BNb2AUP8.js +0 -2
  1280. package/build/client/_app/immutable/nodes/28.BNb2AUP8.js.br +0 -0
  1281. package/build/client/_app/immutable/nodes/28.BNb2AUP8.js.gz +0 -0
  1282. package/build/client/_app/immutable/nodes/29.jpTIxdq3.js +0 -4
  1283. package/build/client/_app/immutable/nodes/29.jpTIxdq3.js.br +0 -0
  1284. package/build/client/_app/immutable/nodes/29.jpTIxdq3.js.gz +0 -0
  1285. package/build/client/_app/immutable/nodes/3.pAUOFGEO.js +0 -2
  1286. package/build/client/_app/immutable/nodes/3.pAUOFGEO.js.br +0 -0
  1287. package/build/client/_app/immutable/nodes/3.pAUOFGEO.js.gz +0 -0
  1288. package/build/client/_app/immutable/nodes/30.BQ2dL-8_.js +0 -7
  1289. package/build/client/_app/immutable/nodes/30.BQ2dL-8_.js.br +0 -0
  1290. package/build/client/_app/immutable/nodes/30.BQ2dL-8_.js.gz +0 -0
  1291. package/build/client/_app/immutable/nodes/31.C5KnXHFg.js +0 -23
  1292. package/build/client/_app/immutable/nodes/31.C5KnXHFg.js.br +0 -0
  1293. package/build/client/_app/immutable/nodes/31.C5KnXHFg.js.gz +0 -0
  1294. package/build/client/_app/immutable/nodes/32.D5rROnzU.js +0 -3
  1295. package/build/client/_app/immutable/nodes/32.D5rROnzU.js.br +0 -0
  1296. package/build/client/_app/immutable/nodes/32.D5rROnzU.js.gz +0 -0
  1297. package/build/client/_app/immutable/nodes/33.DEE9D8C0.js +0 -1
  1298. package/build/client/_app/immutable/nodes/33.DEE9D8C0.js.br +0 -0
  1299. package/build/client/_app/immutable/nodes/33.DEE9D8C0.js.gz +0 -0
  1300. package/build/client/_app/immutable/nodes/34.DL3OSrSy.js +0 -6
  1301. package/build/client/_app/immutable/nodes/34.DL3OSrSy.js.br +0 -0
  1302. package/build/client/_app/immutable/nodes/34.DL3OSrSy.js.gz +0 -0
  1303. package/build/client/_app/immutable/nodes/4.BtyNCyAc.js +0 -5
  1304. package/build/client/_app/immutable/nodes/4.BtyNCyAc.js.br +0 -0
  1305. package/build/client/_app/immutable/nodes/4.BtyNCyAc.js.gz +0 -0
  1306. package/build/client/_app/immutable/nodes/5.Cg22lw4L.js +0 -1
  1307. package/build/client/_app/immutable/nodes/5.Cg22lw4L.js.br +0 -0
  1308. package/build/client/_app/immutable/nodes/5.Cg22lw4L.js.gz +0 -0
  1309. package/build/client/_app/immutable/nodes/7.DE_eLV5y.js +0 -1
  1310. package/build/client/_app/immutable/nodes/7.DE_eLV5y.js.br +0 -0
  1311. package/build/client/_app/immutable/nodes/7.DE_eLV5y.js.gz +0 -0
  1312. package/build/client/_app/immutable/nodes/8.BohzG6Ll.js +0 -2
  1313. package/build/client/_app/immutable/nodes/8.BohzG6Ll.js.br +0 -0
  1314. package/build/client/_app/immutable/nodes/8.BohzG6Ll.js.gz +0 -0
  1315. package/build/client/_app/immutable/nodes/9.tKLlJBbl.js +0 -9
  1316. package/build/client/_app/immutable/nodes/9.tKLlJBbl.js.br +0 -0
  1317. package/build/client/_app/immutable/nodes/9.tKLlJBbl.js.gz +0 -0
  1318. package/build/server/chunks/chunks/Activity.js-DXjVG5xT.js +0 -46
  1319. package/build/server/chunks/chunks/ConsoleWindow.js-DEk3iKGa.js +0 -120
  1320. package/build/server/chunks/chunks/DecisionCard.js-86G6u4pB.js +0 -2206
  1321. package/build/server/chunks/chunks/Discussion.js-IMI0BumV.js +0 -592
  1322. package/build/server/chunks/chunks/EtaLine.js-CKEZyLau.js +0 -98
  1323. package/build/server/chunks/chunks/InsightsNav.js-B21jABX7.js +0 -18
  1324. package/build/server/chunks/chunks/InstallFromGitHub.js-DTgSNvPF.js +0 -272
  1325. package/build/server/chunks/chunks/MicButton.svelte_svelte_type_style_lang.js-B10vMz9A.js +0 -200
  1326. package/build/server/chunks/chunks/OpenDecision.js-BMOUb2a9.js +0 -29
  1327. package/build/server/chunks/chunks/PluginElement.js-B4PKHT2H.js +0 -25
  1328. package/build/server/chunks/chunks/SettingsNav.js-D2wjoTYl.js +0 -36
  1329. package/build/server/chunks/chunks/Sheet.js-CkERuQ6f.js +0 -3854
  1330. package/build/server/chunks/chunks/SlotContent.js-yg9VzqdZ.js +0 -702
  1331. package/build/server/chunks/chunks/chat.svelte.js-Jj2-jIOn.js +0 -981
  1332. package/build/server/chunks/chunks/client.js-Z9ZB5A3s.js +0 -24
  1333. package/build/server/chunks/chunks/detail.js-h2WY9B-a.js +0 -146
  1334. package/build/server/chunks/chunks/dialog-close.js-B-uEcIR7.js +0 -42
  1335. package/build/server/chunks/chunks/dialog-content.js-p_-FwAQn.js +0 -3356
  1336. package/build/server/chunks/chunks/dialog.js-iAYK6Lpj.js +0 -392
  1337. package/build/server/chunks/chunks/features.js-BNl8N8us.js +0 -124
  1338. package/build/server/chunks/chunks/feedback.js-DtdkVGaR.js +0 -67
  1339. package/build/server/chunks/chunks/index-server.js-qvYADcF_.js +0 -17
  1340. package/build/server/chunks/chunks/index-server2.js-DMc-UvjC.js +0 -19
  1341. package/build/server/chunks/chunks/index2.js-BuH5pXIO.js +0 -46
  1342. package/build/server/chunks/chunks/insights.svelte.js-DJcO7VuV.js +0 -681
  1343. package/build/server/chunks/chunks/internal.js-znYfQ1HJ.js +0 -151
  1344. package/build/server/chunks/chunks/live.svelte.js-CBuX_3NN.js +0 -259
  1345. package/build/server/chunks/chunks/marketplace-service.js-qgfTmeMS.js +0 -557
  1346. package/build/server/chunks/chunks/package.js-B5dZmzVs.js +0 -154
  1347. package/build/server/chunks/chunks/page.js-C1VI5Agm.js +0 -11
  1348. package/build/server/chunks/chunks/phone.svelte.js-DSEWkTcb.js +0 -7
  1349. package/build/server/chunks/chunks/plugins.js-Du4zNBUe.js +0 -58
  1350. package/build/server/chunks/chunks/previewhelper2.js-pH32HExn.js +0 -165
  1351. package/build/server/chunks/chunks/repo.js-TzM_q4Ml.js +0 -33
  1352. package/build/server/chunks/chunks/runtime.js-iskKh3WS.js +0 -23421
  1353. package/build/server/chunks/chunks/service.js-B8uVAAJO.js +0 -1339
  1354. package/build/server/chunks/chunks/service2.js-DJscZN-9.js +0 -834
  1355. package/build/server/chunks/chunks/settings.js-jCWCFSel.js +0 -379
  1356. package/build/server/chunks/chunks/settings3.js-8JjZvg3U.js +0 -690
  1357. package/build/server/chunks/chunks/starter.js-CNnOITdO.js +0 -400
  1358. package/build/server/chunks/chunks/vault.js-kx-rYEM0.js +0 -165
  1359. package/build/server/chunks/chunks/view.js-Dt9V6vBw.js +0 -76
  1360. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-BWmPum-r.js +0 -103
  1361. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CHr6cC6-.js +0 -111
  1362. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-DMcUFEkU.js +0 -50
  1363. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js--5-v-HEh.js +0 -66
  1364. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-Hzw53ZE9.js +0 -70
  1365. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DQs18R-c.js +0 -132
  1366. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-DNgC2fr8.js +0 -54
  1367. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-C3h1JVSm.js +0 -62
  1368. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-0fuU3CZy.js +0 -96
  1369. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-BIpJu9lv.js +0 -74
  1370. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-1qStOVIz.js +0 -63
  1371. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-DPB-BXzL.js +0 -57
  1372. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-PQdfiXhT.js +0 -57
  1373. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CgwfyIcM.js +0 -58
  1374. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DB-goAvl.js +0 -64
  1375. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-vfQiQrWY.js +0 -57
  1376. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CH9cWr6L.js +0 -106
  1377. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DYIjWXk_.js +0 -67
  1378. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-Dwj64bp4.js +0 -78
  1379. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-2oBSUOwH.js +0 -66
  1380. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-BOm196n5.js +0 -57
  1381. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Dzh2dz63.js +0 -49
  1382. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BVcRcLBW.js +0 -49
  1383. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-mtSppklX.js +0 -76
  1384. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CeMDSH3a.js +0 -74
  1385. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-BJghUuJZ.js +0 -67
  1386. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-CaEPa3qc.js +0 -49
  1387. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BXk4ftaK.js +0 -84
  1388. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-Cx9tobhn.js +0 -73
  1389. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-CxnHx_UG.js +0 -68
  1390. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-zzleI1kG.js +0 -65
  1391. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-DDL6pYDf.js +0 -27
  1392. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Cjokk0EA.js +0 -72
  1393. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DW1Y6-fs.js +0 -39
  1394. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-C8cuYPAi.js +0 -49
  1395. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BOoflE2z.js +0 -39
  1396. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DdblLh1l.js +0 -42
  1397. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-aoiQJ5ui.js +0 -54
  1398. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-B8dcLLk8.js +0 -63
  1399. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CBvDp3iX.js +0 -60
  1400. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-C1Vy8kpH.js +0 -64
  1401. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-D0JnNPDZ.js +0 -27
  1402. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-DyeK2SOL.js +0 -72
  1403. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BDnl2dEb.js +0 -54
  1404. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C2YEnDJy.js +0 -63
  1405. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-DYvELKvA.js +0 -75
  1406. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Bu7EKOYw.js +0 -62
  1407. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-Ks8nxeIT.js +0 -85
  1408. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-Cj3-7RBt.js +0 -68
  1409. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BKuYRWDZ.js +0 -79
  1410. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-qlyQmm3t.js +0 -58
  1411. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-b8w5BaH9.js +0 -68
  1412. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-CbRX-qIU.js +0 -128
  1413. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DvTNqcoC.js +0 -57
  1414. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BajPdJ_c.js +0 -54
  1415. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CnqOshFr.js +0 -73
  1416. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-C5v9kl6f.js +0 -98
  1417. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-mRxlCUEZ.js +0 -66
  1418. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-QYrbIt8N.js +0 -114
  1419. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-yjFea8cM.js +0 -68
  1420. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-NaaYRC-R.js +0 -71
  1421. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-B33Rq8m0.js +0 -72
  1422. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-IkzH2tH_.js +0 -84
  1423. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-GxOCpSB8.js +0 -40
  1424. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BYjgkknY.js +0 -27
  1425. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-IaA8CDCk.js +0 -27
  1426. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-BmgMztzl.js +0 -53
  1427. package/build/server/chunks/entries/fallbacks/error.svelte.js-C0-QO05E.js +0 -15
  1428. package/build/server/chunks/entries/hooks.server.js-CqRRwrz6.js +0 -95
  1429. package/build/server/chunks/entries/pages/_layout.server.ts.js-BwBuidlK.js +0 -54
  1430. package/build/server/chunks/entries/pages/_layout.svelte.js-Bl5-NbQq.js +0 -5624
  1431. package/build/server/chunks/entries/pages/_page.server.ts.js-B25LNBfB.js +0 -16
  1432. package/build/server/chunks/entries/pages/_page.svelte.js-BlopBrAk.js +0 -3279
  1433. package/build/server/chunks/entries/pages/crew/_page.svelte.js-BF5K8zoV.js +0 -134
  1434. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-VoIJpJDg.js +0 -11
  1435. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-Ds4xjfuV.js +0 -202
  1436. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-D8B_Ju1Z.js +0 -16
  1437. package/build/server/chunks/entries/pages/deck/_page.svelte.js-B3j1apFG.js +0 -107
  1438. package/build/server/chunks/entries/pages/files/_page.server.ts.js-CybDTQNP.js +0 -17
  1439. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CximdI4O.js +0 -46
  1440. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-osLHLxVk.js +0 -751
  1441. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Dnr6wtnN.js +0 -11
  1442. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-vvwNnV07.js +0 -290
  1443. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DjZU2DUj.js +0 -11
  1444. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-B15AVX_c.js +0 -215
  1445. package/build/server/chunks/entries/pages/more/_page.svelte.js-DOf4Awv5.js +0 -143
  1446. package/build/server/chunks/entries/pages/plugins/_page.svelte.js-CLdrz-XA.js +0 -676
  1447. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CA69sVMV.js +0 -16
  1448. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-CkcJyKQ4.js +0 -58
  1449. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-ZsfeRt8m.js +0 -23
  1450. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-BTXYH5-g.js +0 -978
  1451. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-B4tTrS9b.js +0 -21
  1452. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-CD_Blsw9.js +0 -80
  1453. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-D_EEOAsF.js +0 -27
  1454. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-61qrv1Hx.js +0 -419
  1455. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Du3_ZEEX.js +0 -15
  1456. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-B49gjxTM.js +0 -1866
  1457. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CZBDXh7w.js +0 -11
  1458. package/build/server/chunks/entries/pages/remotes/_page.svelte.js-BKjibxGx.js +0 -335
  1459. package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-D0ng6b-W.js +0 -421
  1460. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-Cr5jVgGI.js +0 -12
  1461. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-DjBwvkNT.js +0 -18
  1462. package/build/server/chunks/entries/pages/settings/chat/_page.svelte.js-Bppo_LHG.js +0 -76
  1463. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-C5XnUVOt.js +0 -16
  1464. package/build/server/chunks/entries/pages/settings/events/_page.svelte.js-BMgyxQA5.js +0 -110
  1465. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-DvXcvQMa.js +0 -15
  1466. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-DMgIFEB6.js +0 -53
  1467. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BUDD0h_g.js +0 -796
  1468. package/build/server/chunks/entries/pages/settings/firstmate/_page.svelte.js-CJZx5WlZ.js +0 -253
  1469. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-VjLJiwM9.js +0 -11
  1470. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-Iwfr2BCD.js +0 -247
  1471. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-uvSSB2Oi.js +0 -19
  1472. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BGjIG10E.js +0 -565
  1473. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-CKiqKIDc.js +0 -17
  1474. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-Dfi_Loha.js +0 -238
  1475. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-Bs0UiYXi.js +0 -11
  1476. package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-CLRHx36O.js +0 -55
  1477. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-CUlxKtsU.js +0 -11
  1478. package/build/server/chunks/entries/pages/settings/update/_page.svelte.js-BXbaUlyB.js +0 -61
  1479. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-kecZ3ABg.js +0 -18
  1480. package/build/server/chunks/entries/pages/setup/_page.svelte.js-Ba-ZtZ1O.js +0 -1438
  1481. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-RTy8XT8u.js +0 -25
  1482. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-C12olDYH.js +0 -2987
  1483. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-Pqf3ZwCG.js +0 -24
  1484. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CwWtq4ff.js +0 -11
  1485. package/build/server/chunks/entries/pages/time/_page.svelte.js-Covw-Y4G.js +0 -108
  1486. package/build/server/chunks/handler-OfGhsd7S.js +0 -1474
  1487. package/build/server/chunks/index.js-5hwgreGG.js +0 -4296
  1488. package/build/server/chunks/manifest.js-DWiMrbal.js +0 -788
  1489. package/build/server/chunks/nodes/0.js-CMzJ5YpG.js +0 -57
  1490. package/build/server/chunks/nodes/1.js-CoCqnACa.js +0 -9
  1491. package/build/server/chunks/nodes/10.js-CV5WUHV6.js +0 -54
  1492. package/build/server/chunks/nodes/11.js-DuaSbp-S.js +0 -9
  1493. package/build/server/chunks/nodes/12.js-XW39r-BU.js +0 -9
  1494. package/build/server/chunks/nodes/13.js-CNwOSurV.js +0 -54
  1495. package/build/server/chunks/nodes/14.js-B60MQoH_.js +0 -57
  1496. package/build/server/chunks/nodes/15.js-YPgyj4p-.js +0 -55
  1497. package/build/server/chunks/nodes/16.js-mT1tG4MP.js +0 -56
  1498. package/build/server/chunks/nodes/17.js-CjbiiilI.js +0 -55
  1499. package/build/server/chunks/nodes/18.js-D0fseh8H.js +0 -26
  1500. package/build/server/chunks/nodes/19.js-CVpld47s.js +0 -9
  1501. package/build/server/chunks/nodes/2.js-CFdtvdkb.js +0 -54
  1502. package/build/server/chunks/nodes/20.js-CO0jqK-v.js +0 -25
  1503. package/build/server/chunks/nodes/21.js-DS5xmOBk.js +0 -54
  1504. package/build/server/chunks/nodes/22.js-Bu0MnVtI.js +0 -16
  1505. package/build/server/chunks/nodes/23.js-CD-OGmM6.js +0 -54
  1506. package/build/server/chunks/nodes/24.js-c8wXfmlV.js +0 -25
  1507. package/build/server/chunks/nodes/25.js-B59EsG7D.js +0 -54
  1508. package/build/server/chunks/nodes/26.js-DkHqtg17.js +0 -26
  1509. package/build/server/chunks/nodes/27.js-CxaZun20.js +0 -54
  1510. package/build/server/chunks/nodes/28.js-CywEF58D.js +0 -57
  1511. package/build/server/chunks/nodes/29.js-CZ_UpAay.js +0 -56
  1512. package/build/server/chunks/nodes/3.js-CN1M_JdV.js +0 -9
  1513. package/build/server/chunks/nodes/30.js-Di1OUQf9.js +0 -26
  1514. package/build/server/chunks/nodes/31.js-Cy0B83mg.js +0 -58
  1515. package/build/server/chunks/nodes/32.js-CnFTWdO1.js +0 -55
  1516. package/build/server/chunks/nodes/33.js-2Yv4Z1FK.js +0 -55
  1517. package/build/server/chunks/nodes/34.js-DnNFCPcR.js +0 -54
  1518. package/build/server/chunks/nodes/4.js-CQm39RYP.js +0 -54
  1519. package/build/server/chunks/nodes/5.js-CqcHx4uC.js +0 -54
  1520. package/build/server/chunks/nodes/7.js-BsPk-yGL.js +0 -54
  1521. package/build/server/chunks/nodes/8.js-B5oF6ymd.js +0 -59
  1522. package/build/server/chunks/nodes/9.js-C8L8k8Gd.js +0 -54
@@ -0,0 +1,4444 @@
1
+ import { al as head, am as attr_class, _ as derived, ak as escape_html, ao as attr, ap as stringify, a8 as ensure_array_like, ac as spread_props, a6 as clsx, a7 as bind_props, a5 as attributes } from '../../chunks/index.js-CNAJQSM0.js';
2
+ import { p as page } from '../../chunks/index2.js-CwJbkPWB.js';
3
+ import { l as live, a as currentFleet, d as currentMessages, b as currentHealth } from '../../chunks/live.svelte.js-bE0H0fOh.js';
4
+ import { s as slots } from '../../chunks/slots.svelte.js-CLIV5nwM.js';
5
+ import { s as slotKey } from '../../chunks/keys.js-iHygUPeb.js';
6
+ import { h as harbour } from '../../chunks/harbour.js-D3N7u1_p.js';
7
+ import { p as parseAttachments, k as kindLabel, f as fileSize, a as UPLOAD_MAX_BYTES, t as thumbUrl, i as isImage, b as pastedName, N as NAME_HEADER, T as TYPE_HEADER } from '../../chunks/attachments.js-BAnnqpd-.js';
8
+ import { S as SESSION_HEADER } from '../../chunks/messages.js-CFyGKoqq.js';
9
+ import { a as DecisionForm, C as Circle_x, M as Monitor_off, L as Layout_dashboard, b as LivePreview, P as PreviewActions, S as Send, c as dictationEngine, e as DecisionLinks, f as answerWith, g as chatAboutHref, U as Undo_2, h as DecisionDetails, r as reviewSurface, i as Mic, j as MicButton, k as Square, l as editableTarget, m as PreviewStudio } from '../../chunks/DecisionCard.js-QY9htT6b.js';
10
+ import { B as BROWSER } from '../../chunks/settings3.js-BlZbXkzQ.js';
11
+ import { I as Icon } from '../../chunks/Icon.js-DZKsF3Gu.js';
12
+ import { A as Arrow_up } from '../../chunks/arrow-up.js-D8v3fwUB.js';
13
+ import { m as markdown, F as File_text } from '../../chunks/markdown.js-8EKwlA8M.js';
14
+ import { a as ago } from '../../chunks/format.js-D72dE2wD.js';
15
+ import { a as Monitor_play, C as Compass, M as Maximize_2, L as Lightbox, p as pullRequests, b as previewChecks, u as urlKey } from '../../chunks/Lightbox.js-DoiLSEBT.js';
16
+ import { R as ResizableRail, G as Git_merge } from '../../chunks/ResizableRail.js-Clu-Wya9.js';
17
+ import { G as Git_pull_request } from '../../chunks/git-pull-request.js-DPwvD_k6.js';
18
+ import { E as External_link } from '../../chunks/external-link.js-DDXtld4W.js';
19
+ import { C as Circle_dashed } from '../../chunks/circle-dashed.js-DCwzYTH0.js';
20
+ import { C as Circle_check } from '../../chunks/circle-check.js-oWgE2-Ib.js';
21
+ import { H as Hourglass } from '../../chunks/hourglass.js-BRDWs1ar.js';
22
+ import { X } from '../../chunks/x.js-vo5qKISo.js';
23
+ import { L as Loader_circle } from '../../chunks/loader-circle.js-B1RYi3bC.js';
24
+ import { h as html } from '../../chunks/html.js-FW6Ia4bL.js';
25
+ import { t as escalated, w as cardContext, g as choiceLabel, y as cardTaskHref } from '../../chunks/inbox.js-cDDxDr-d.js';
26
+ import { f as formIn, a as formIdIn, c as cardForm, b as decidedLabel, w as withoutForm, D as DECIDED_MAX } from '../../chunks/decisionform.js-BgBiAAsS.js';
27
+ import { U as UNSORTED, p as parseReply$1, i as parseThread, j as UNSORTED_TAG, B as Bell, t as topicName, k as foldRuns, l as tagChat, q as quotes, m as parseRefs, n as chipLabel, o as parseMarkers, r as previewCards, s as cardTag, u as threadRows, S as Sheet, P as Popover, v as snippetOf, a as Popover_trigger, b as Popover_content } from '../../chunks/Sheet.js-6nHEEt3S.js';
28
+ import { d as duration } from '../../chunks/fold.js-BNM4Ug44.js';
29
+ import { S as SECRET_NAME, P as PROJECT_ID, a as andList } from '../../chunks/vault.js-giGoLNSu.js';
30
+ import { f as firstmateChat, p as pendingLabel, i as inbox } from '../../chunks/chat.svelte.js-CN2Dl5hL.js';
31
+ import { h as hue, p as projectLabels, a as aliases } from '../../chunks/aliases.svelte.js-C2TIS6Rl.js';
32
+ import { H as HARNESS_NAMES } from '../../chunks/harness.js-DvhIhjw1.js';
33
+ import { t as terminalWait } from '../../chunks/bell.js-D6xuggvQ.js';
34
+ import { m as matchBridgeCards } from '../../chunks/blocks.js-DuedYFvd.js';
35
+ import { B as Blocks, A as AppFrame } from '../../chunks/SlotContent.js-BsZHHN_u.js';
36
+ import { L as LinkedText } from '../../chunks/LinkedText.js-Bto6J20h.js';
37
+ import { A as Activity } from '../../chunks/Activity.js-CVotE9na.js';
38
+ import { C as Chevron_right } from '../../chunks/chevron-right.js-PPUgqXgy.js';
39
+ import { M as Messages_square } from '../../chunks/messages-square.js-K86OwN55.js';
40
+ import { H as Hand } from '../../chunks/hand.js-OgzocAnn.js';
41
+ import { R as Refresh_cw } from '../../chunks/refresh-cw.js-CbDhy8fm.js';
42
+ import { M as Message_square } from '../../chunks/message-square.js-CrZeO0AI.js';
43
+ import { R as Rotate_cw } from '../../chunks/rotate-cw.js-BPC6IxqZ.js';
44
+ import { P as Puzzle } from '../../chunks/puzzle.js-DISwYPxF.js';
45
+ import { p as parseBatch } from '../../chunks/previewhelper.js-D_I_aa96.js';
46
+ import { C as Circle_alert } from '../../chunks/circle-alert.js-B6F_Zxc7.js';
47
+ import '../../chunks/state.svelte.js-kNm-eS2R.js';
48
+ import '../../chunks/exports.js-BZBK1HC9.js';
49
+ import '../../chunks/utils2.js-BQzn9ikS.js';
50
+ import '../../chunks/utils.js-BJgm9WbO.js';
51
+ import '../../chunks/root.js-BMwYWidL.js';
52
+ import { P as Plus } from '../../chunks/plus.js-_sWZi-RM.js';
53
+ import { K as Key_round } from '../../chunks/key-round.js-Ch8DEqV4.js';
54
+ import { S as Square_terminal } from '../../chunks/square-terminal.js-CBs-sBt1.js';
55
+ import { M as Message_circle_question_mark } from '../../chunks/message-circle-question-mark.js-DhKP-ciZ.js';
56
+ import { C as Check } from '../../chunks/check.js-BizfScOy.js';
57
+ import { C as Copy } from '../../chunks/copy.js-BTlHqk6c.js';
58
+ import '../../chunks/button.js-Bg2ee8PR.js';
59
+ import { p as phone } from '../../chunks/phone.svelte.js-Bz4rhdR6.js';
60
+ import { P as Portal } from '../../chunks/dialog-content.js-B8ISMiZP.js';
61
+ import { V as VaultAdd } from '../../chunks/VaultAdd.js-PcFUxHT9.js';
62
+ import { S as Search } from '../../chunks/search.js-D4_Ymk2F.js';
63
+ import { T as Triangle_alert } from '../../chunks/triangle-alert.js-DCXyDwgC.js';
64
+ import { R as Rail, r as railInsights } from '../../chunks/insights.svelte.js-BjCJwX23.js';
65
+ import { g as goto } from '../../chunks/client.js-eyO8nh9R.js';
66
+ import '../../chunks/chevron-down.js-DLf9oWYQ.js';
67
+ import '../../chunks/cloud.js-CNJrzYEH.js';
68
+ import '../../chunks/addresses.js-DmMJzvLK.js';
69
+ import '../../chunks/preview.js-CbgkVvT_.js';
70
+ import '../../chunks/urls.js-CM6aklCF.js';
71
+ import '../../chunks/utils3.js-ByN3K_WW.js';
72
+ import '../../chunks/index-server2.js-qvYADcF_.js';
73
+ import '../../chunks/PluginElement.js-DW1ooWEo.js';
74
+ import '../../chunks/docpath.js-D27w_pf9.js';
75
+ import '../../chunks/clock.js-BRFOn_JF.js';
76
+ import '../../chunks/scale.js-5D4jKhvV.js';
77
+ import '../../chunks/pullrequests.js-CCzk2sqm.js';
78
+ import '../../chunks/chevron-left.js-D17b39o2.js';
79
+ import '../../chunks/index-server.js-DMc-UvjC.js';
80
+ import '../../chunks/previewnote.js-DB6VK2fp.js';
81
+ import '../../chunks/eye.js-BTtIKcHk.js';
82
+ import '../../chunks/lock.js-NF_B51Fb.js';
83
+ import '../../chunks/matelink.js-D9ilVdpZ.js';
84
+ import '../../chunks/insights.js-CzzfyHGp.js';
85
+ import '../../chunks/checks.js-Cn5S6WhT.js';
86
+ import '../../chunks/TimeBar.js-Dduf0kTb.js';
87
+ import '../../chunks/MateHealthPill.js-DlhkG33B.js';
88
+ import '../../chunks/EtaLine.js-C_vpaPD4.js';
89
+ import '../../chunks/WhereBadge.js-bxjlBG9F.js';
90
+ import '../../chunks/tone.js-Ci1XHrIZ.js';
91
+ import '../../chunks/ship.js-BVQ9iFsJ.js';
92
+ import '../../chunks/OpenDecision.js-BXWJZZq0.js';
93
+ import '../../chunks/arrow-up-right.js-B5ORjULl.js';
94
+ import '../../chunks/bridge.js-D-xKM47V.js';
95
+ import '../../chunks/gauge.js-cdrDtC-R.js';
96
+ import '../../chunks/arrow-right.js-vz3YukWJ.js';
97
+
98
+ function App_window($$renderer, $$props) {
99
+ let { $$slots, $$events, ...props } = $$props;
100
+ const iconData = {
101
+ "name": "app-window",
102
+ "size": 24,
103
+ "node": [
104
+ [
105
+ "rect",
106
+ { "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }
107
+ ],
108
+ ["path", { "d": "M10 4v4" }],
109
+ ["path", { "d": "M2 8h20" }],
110
+ ["path", { "d": "M6 4v4" }]
111
+ ]
112
+ };
113
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
114
+ }
115
+ function Arrow_left_right($$renderer, $$props) {
116
+ let { $$slots, $$events, ...props } = $$props;
117
+ const iconData = {
118
+ "name": "arrow-left-right",
119
+ "size": 24,
120
+ "node": [
121
+ ["path", { "d": "M8 3 4 7l4 4" }],
122
+ ["path", { "d": "M4 7h16" }],
123
+ ["path", { "d": "m16 21 4-4-4-4" }],
124
+ ["path", { "d": "M20 17H4" }]
125
+ ]
126
+ };
127
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
128
+ }
129
+ function Audio_lines($$renderer, $$props) {
130
+ let { $$slots, $$events, ...props } = $$props;
131
+ const iconData = {
132
+ "name": "audio-lines",
133
+ "size": 24,
134
+ "node": [
135
+ ["path", { "d": "M2 10v3" }],
136
+ ["path", { "d": "M6 6v11" }],
137
+ ["path", { "d": "M10 3v18" }],
138
+ ["path", { "d": "M14 8v7" }],
139
+ ["path", { "d": "M18 5v13" }],
140
+ ["path", { "d": "M22 10v3" }]
141
+ ]
142
+ };
143
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
144
+ }
145
+ function Chart_column($$renderer, $$props) {
146
+ let { $$slots, $$events, ...props } = $$props;
147
+ const iconData = {
148
+ "name": "chart-column",
149
+ "size": 24,
150
+ "node": [
151
+ ["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }],
152
+ ["path", { "d": "M18 17V9" }],
153
+ ["path", { "d": "M13 17V5" }],
154
+ ["path", { "d": "M8 17v-3" }]
155
+ ],
156
+ "aliases": ["bar-chart-3"]
157
+ };
158
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
159
+ }
160
+ function Image($$renderer, $$props) {
161
+ let { $$slots, $$events, ...props } = $$props;
162
+ const iconData = {
163
+ "name": "image",
164
+ "size": 24,
165
+ "node": [
166
+ [
167
+ "rect",
168
+ {
169
+ "width": "18",
170
+ "height": "18",
171
+ "x": "3",
172
+ "y": "3",
173
+ "rx": "2",
174
+ "ry": "2"
175
+ }
176
+ ],
177
+ ["circle", { "cx": "9", "cy": "9", "r": "2" }],
178
+ ["path", { "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
179
+ ]
180
+ };
181
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
182
+ }
183
+ function Mic_off($$renderer, $$props) {
184
+ let { $$slots, $$events, ...props } = $$props;
185
+ const iconData = {
186
+ "name": "mic-off",
187
+ "size": 24,
188
+ "node": [
189
+ ["path", { "d": "M12 19v3" }],
190
+ ["path", { "d": "M15 9.34V5a3 3 0 0 0-5.68-1.33" }],
191
+ ["path", { "d": "M16.95 16.95A7 7 0 0 1 5 12v-2" }],
192
+ ["path", { "d": "M18.89 13.23A7 7 0 0 0 19 12v-2" }],
193
+ ["path", { "d": "m2 2 20 20" }],
194
+ ["path", { "d": "M9 9v3a3 3 0 0 0 5.12 2.12" }]
195
+ ]
196
+ };
197
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
198
+ }
199
+ function Panel_left($$renderer, $$props) {
200
+ let { $$slots, $$events, ...props } = $$props;
201
+ const iconData = {
202
+ "name": "panel-left",
203
+ "size": 24,
204
+ "node": [
205
+ [
206
+ "rect",
207
+ { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
208
+ ],
209
+ ["path", { "d": "M9 3v18" }]
210
+ ],
211
+ "aliases": ["sidebar"]
212
+ };
213
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
214
+ }
215
+ function Panel_right($$renderer, $$props) {
216
+ let { $$slots, $$events, ...props } = $$props;
217
+ const iconData = {
218
+ "name": "panel-right",
219
+ "size": 24,
220
+ "node": [
221
+ [
222
+ "rect",
223
+ { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
224
+ ],
225
+ ["path", { "d": "M15 3v18" }]
226
+ ]
227
+ };
228
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
229
+ }
230
+ function Paperclip($$renderer, $$props) {
231
+ let { $$slots, $$events, ...props } = $$props;
232
+ const iconData = {
233
+ "name": "paperclip",
234
+ "size": 24,
235
+ "node": [
236
+ [
237
+ "path",
238
+ {
239
+ "d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"
240
+ }
241
+ ]
242
+ ]
243
+ };
244
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
245
+ }
246
+ function Reply($$renderer, $$props) {
247
+ let { $$slots, $$events, ...props } = $$props;
248
+ const iconData = {
249
+ "name": "reply",
250
+ "size": 24,
251
+ "node": [
252
+ ["path", { "d": "M20 18v-2a4 4 0 0 0-4-4H4" }],
253
+ ["path", { "d": "m9 17-5-5 5-5" }]
254
+ ]
255
+ };
256
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
257
+ }
258
+ function Sliders_horizontal($$renderer, $$props) {
259
+ let { $$slots, $$events, ...props } = $$props;
260
+ const iconData = {
261
+ "name": "sliders-horizontal",
262
+ "size": 24,
263
+ "node": [
264
+ ["path", { "d": "M10 5H3" }],
265
+ ["path", { "d": "M12 19H3" }],
266
+ ["path", { "d": "M14 3v4" }],
267
+ ["path", { "d": "M16 17v4" }],
268
+ ["path", { "d": "M21 12h-9" }],
269
+ ["path", { "d": "M21 19h-5" }],
270
+ ["path", { "d": "M21 5h-7" }],
271
+ ["path", { "d": "M8 10v4" }],
272
+ ["path", { "d": "M8 12H3" }]
273
+ ]
274
+ };
275
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
276
+ }
277
+ function Thumbs_up($$renderer, $$props) {
278
+ let { $$slots, $$events, ...props } = $$props;
279
+ const iconData = {
280
+ "name": "thumbs-up",
281
+ "size": 24,
282
+ "node": [
283
+ [
284
+ "path",
285
+ {
286
+ "d": "M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"
287
+ }
288
+ ],
289
+ ["path", { "d": "M7 10v12" }]
290
+ ]
291
+ };
292
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
293
+ }
294
+ function Workflow($$renderer, $$props) {
295
+ let { $$slots, $$events, ...props } = $$props;
296
+ const iconData = {
297
+ "name": "workflow",
298
+ "size": 24,
299
+ "node": [
300
+ [
301
+ "rect",
302
+ { "width": "8", "height": "8", "x": "3", "y": "3", "rx": "2" }
303
+ ],
304
+ ["path", { "d": "M7 11v4a2 2 0 0 0 2 2h4" }],
305
+ [
306
+ "rect",
307
+ { "width": "8", "height": "8", "x": "13", "y": "13", "rx": "2" }
308
+ ]
309
+ ]
310
+ };
311
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
312
+ }
313
+ function shipHealth(h) {
314
+ if (h.stepFailed.length || h.trouble.some((t) => t.status === "failed")) {
315
+ return { label: "Something failed", tone: "danger" };
316
+ }
317
+ const n = h.needsYou.length;
318
+ if (n) return { label: `${n} need${n === 1 ? "s" : ""} you`, tone: "sea" };
319
+ if (h.trouble.length) return { label: "Keeping an eye on a problem", tone: "warning" };
320
+ return { label: "All well", tone: "success" };
321
+ }
322
+ function parseReply(text) {
323
+ const parts = [];
324
+ let i = 0;
325
+ while (i < text.length) {
326
+ const open = text.indexOf("```", i);
327
+ if (open < 0) {
328
+ parts.push({ type: "prose", text: text.slice(i) });
329
+ break;
330
+ }
331
+ if (open > i) parts.push({ type: "prose", text: text.slice(i, open) });
332
+ const nl = text.indexOf("\n", open + 3);
333
+ if (nl < 0) {
334
+ parts.push({
335
+ type: "block",
336
+ lang: text.slice(open + 3).trim().toLowerCase(),
337
+ body: "",
338
+ closed: false
339
+ });
340
+ break;
341
+ }
342
+ const lang = text.slice(open + 3, nl).trim().toLowerCase();
343
+ const close = text.indexOf("```", nl + 1);
344
+ if (close < 0) {
345
+ parts.push({ type: "block", lang, body: text.slice(nl + 1), closed: false });
346
+ break;
347
+ }
348
+ parts.push({ type: "block", lang, body: text.slice(nl + 1, close), closed: true });
349
+ i = close + 3;
350
+ }
351
+ const last = parts[parts.length - 1];
352
+ if (last?.type === "prose") last.text = last.text.replace(/`{1,2}$/, "");
353
+ return parts;
354
+ }
355
+ function speakableProse(text) {
356
+ const out = [];
357
+ for (const p of parseReply(text)) {
358
+ if (p.type === "prose") out.push(p.text);
359
+ else if (!p.closed) break;
360
+ }
361
+ return out.join(" ");
362
+ }
363
+ function nextSentences(prose, from, final) {
364
+ const sentences = [];
365
+ let rest = prose.slice(from);
366
+ let to = from;
367
+ let m;
368
+ const END = /^([\s\S]*?[.!?…:])(["')\]]*)(\s+)(?=\S)/;
369
+ while (m = END.exec(rest)) {
370
+ sentences.push(m[0]);
371
+ to += m[0].length;
372
+ rest = rest.slice(m[0].length);
373
+ }
374
+ if (final && rest.trim()) {
375
+ sentences.push(rest);
376
+ to += rest.length;
377
+ }
378
+ return { sentences, to };
379
+ }
380
+ function forSpeech(text) {
381
+ return text.replace(/https?:\/\/\S+/g, "the link").replace(/[*_`#>]/g, "").replace(/\bPR\s*#?(\d+)/g, "pull request $1").replace(/#(\d+)/g, "number $1").replace(/\s+—\s+/g, ", ").trim();
382
+ }
383
+ const words = (s) => s.toLowerCase().replace(/[^a-z0-9' ]+/g, " ").split(/\s+/).filter(Boolean);
384
+ function isEcho(heard, saying) {
385
+ const said = ` ${words(saying).join(" ")} `;
386
+ if (!said.trim()) return false;
387
+ const w = words(heard);
388
+ if (!w.length) return true;
389
+ return w.filter((x) => said.includes(` ${x} `)).length / w.length >= 0.6;
390
+ }
391
+ const json = (s) => {
392
+ try {
393
+ return JSON.parse(s);
394
+ } catch {
395
+ try {
396
+ return JSON.parse(s.replace(/,\s*([}\]])/g, "$1"));
397
+ } catch {
398
+ return null;
399
+ }
400
+ }
401
+ };
402
+ const str = (v, max = 300) => typeof v === "string" && v.trim() ? v.trim().slice(0, max) : null;
403
+ const web = (v) => {
404
+ const s = str(v, 2e3);
405
+ return s && /^https?:\/\//.test(s) ? s : null;
406
+ };
407
+ function diagramTitle(code) {
408
+ const t = /%%\s*title:\s*(.+)/i.exec(code) ?? /^\s*title[:\s]+(.+)$/im.exec(code);
409
+ if (t) return t[1].trim().slice(0, 80);
410
+ const first = code.trim().split("\n")[0] ?? "";
411
+ if (/^sequenceDiagram/.test(first)) return "Sequence";
412
+ if (/^stateDiagram/.test(first)) return "States";
413
+ if (/^classDiagram/.test(first)) return "Model";
414
+ if (/^erDiagram/.test(first)) return "Data model";
415
+ if (/^timeline/.test(first)) return "Timeline";
416
+ return "Architecture";
417
+ }
418
+ function readBlock(lang, body) {
419
+ const bad = (reason) => ({ kind: "invalid", lang, reason, body });
420
+ if (lang === "mermaid")
421
+ return body.trim() ? { kind: "diagram", code: body.trim(), title: diagramTitle(body) } : bad("The diagram is empty.");
422
+ const v = json(body);
423
+ const rec = (x) => x && typeof x === "object" && !Array.isArray(x) ? x : null;
424
+ if (lang === "chart") {
425
+ const r = rec(v);
426
+ const labels = Array.isArray(r?.labels) ? r.labels.map((l) => String(l).slice(0, 60)) : null;
427
+ const series = Array.isArray(r?.series) ? r.series.map(rec).filter((s) => !!s && Array.isArray(s.data)).map((s) => ({
428
+ name: str(s.name, 60) ?? "",
429
+ data: s.data.map(
430
+ (d) => typeof d === "number" && Number.isFinite(d) ? d : 0
431
+ )
432
+ })) : [];
433
+ if (!r || !labels?.length || !series.length) return bad("The chart data could not be read.");
434
+ const type = r.type === "line" || r.type === "doughnut" ? r.type : "bar";
435
+ return {
436
+ kind: "chart",
437
+ spec: {
438
+ type,
439
+ title: str(r.title, 80) ?? "Chart",
440
+ labels,
441
+ series: series.slice(0, 6),
442
+ unit: str(r.unit, 20)
443
+ }
444
+ };
445
+ }
446
+ if (lang === "card") {
447
+ const list = (Array.isArray(v) ? v : [v]).map(rec).filter(Boolean);
448
+ const cards = [];
449
+ for (const c of list.slice(0, 6)) {
450
+ if (str(c.task, 160)) cards.push({ kind: "task", task: str(c.task, 160) });
451
+ else if (web(c.pr)) cards.push({ kind: "pr", url: web(c.pr), title: str(c.title, 160) });
452
+ else if (web(c.link ?? c.url))
453
+ cards.push({
454
+ kind: "link",
455
+ url: web(c.link ?? c.url),
456
+ title: str(c.title, 160),
457
+ note: str(c.note)
458
+ });
459
+ }
460
+ return cards.length ? { kind: "cards", cards } : bad("The card could not be read.");
461
+ }
462
+ if (lang === "image") {
463
+ const r = rec(v);
464
+ const prompt = str(r?.prompt, 2e3) ?? (r ? null : str(body, 2e3));
465
+ return prompt ? { kind: "picture", title: str(r?.title, 80) ?? "Picture", prompt } : bad("Nothing to draw.");
466
+ }
467
+ if (lang === "firstmate") {
468
+ const note = str(rec(v)?.note, 600) ?? str(body, 600);
469
+ return note ? { kind: "passon", note } : bad("Nothing to pass on.");
470
+ }
471
+ return bad(`Unknown block: ${lang}`);
472
+ }
473
+ const PREFS_KEY = "wheelhouse.live.prefs";
474
+ const nowIso = () => (/* @__PURE__ */ new Date()).toISOString();
475
+ const uid = () => Math.random().toString(36).slice(2, 10);
476
+ function loadPrefs() {
477
+ const fallback = { input: "ptt", headphones: false, speed: 1 };
478
+ try {
479
+ const raw = JSON.parse(localStorage.getItem(PREFS_KEY) ?? "{}");
480
+ return {
481
+ input: raw.input === "always" ? "always" : "ptt",
482
+ headphones: raw.headphones === true,
483
+ speed: typeof raw.speed === "number" && raw.speed >= 0.7 && raw.speed <= 1.3 ? raw.speed : 1
484
+ };
485
+ } catch {
486
+ return fallback;
487
+ }
488
+ }
489
+ class LiveCall {
490
+ state = "off";
491
+ entries = [];
492
+ /** Words heard so far in this utterance: settled, then still forming. */
493
+ heard = { settled: "", forming: "" };
494
+ prefs = { input: "ptt", headphones: false, speed: 1 };
495
+ voice = null;
496
+ startedAt = 0;
497
+ model = "";
498
+ context = "";
499
+ problem = null;
500
+ pressing = false;
501
+ token = "";
502
+ id = null;
503
+ events = null;
504
+ active = null;
505
+ early = [];
506
+ // Speech out
507
+ queue = [];
508
+ current = null;
509
+ gen = 0;
510
+ player = null;
511
+ recent = null;
512
+ // Speech in
513
+ session = null;
514
+ consumed = 0;
515
+ commitTimer = null;
516
+ utterStart = 0;
517
+ stream = null;
518
+ audioCtx = null;
519
+ micAnalyser = null;
520
+ outAnalyser = null;
521
+ recorder = null;
522
+ pulse = 0;
523
+ loudSince = 0;
524
+ get on() {
525
+ return this.state !== "off";
526
+ }
527
+ /** How loud whoever is talking is now, 0–1, for the meter. */
528
+ level() {
529
+ const read = (a) => {
530
+ if (!a) return 0;
531
+ const buf = new Float32Array(a.fftSize);
532
+ a.getFloatTimeDomainData(buf);
533
+ let s = 0;
534
+ for (const v of buf) s += v * v;
535
+ return Math.min(1, Math.max(0, (20 * Math.log10(Math.sqrt(s / buf.length) + 1e-6) + 52) / 34));
536
+ };
537
+ if (this.state === "speaking") {
538
+ this.pulse *= 0.96;
539
+ return Math.max(this.player ? read(this.outAnalyser) : 0, this.pulse, 0.12);
540
+ }
541
+ const listening = this.prefs.input === "always" ? this.state !== "muted" : this.pressing;
542
+ const lvl = listening ? read(this.micAnalyser) : 0;
543
+ this.headphoneBargeIn(lvl);
544
+ return lvl;
545
+ }
546
+ // ---------------------------------------------------------------- the call
547
+ async start(token) {
548
+ if (this.on) return;
549
+ this.token = token;
550
+ this.prefs = loadPrefs();
551
+ this.entries = [];
552
+ this.problem = null;
553
+ this.state = "starting";
554
+ this.note("Live mode: a discussion crew member joins to talk this through with you. Firstmate stays on watch.");
555
+ if (typeof speechSynthesis !== "undefined") {
556
+ const warm = new SpeechSynthesisUtterance(" ");
557
+ warm.volume = 0;
558
+ speechSynthesis.speak(warm);
559
+ }
560
+ await this.openMicrophone();
561
+ this.voice = await fetch("/api/voice").then((r2) => r2.ok ? r2.json() : null).catch(() => null);
562
+ const r = await this.post("/api/live", {});
563
+ const body = await r?.json().catch(() => null);
564
+ if (!r?.ok || !body?.id) {
565
+ this.problem = body?.message ?? "The discussion crew could not start.";
566
+ this.note(this.problem);
567
+ this.close();
568
+ return;
569
+ }
570
+ this.id = body.id;
571
+ this.model = body.model ?? "";
572
+ this.context = body.context ?? "";
573
+ this.startedAt = Date.now();
574
+ this.events = new EventSource(`/api/live/${body.id}/events`);
575
+ this.events.onmessage = (m) => this.onEvent(JSON.parse(m.data));
576
+ this.state = this.idle();
577
+ this.applyInput();
578
+ const k = body.knows ?? { live: 0, decisions: 0 };
579
+ const greet = this.crew();
580
+ greet.text = `I'm here and I've read the fleet: ${k.live} under way, ${k.decisions} decision${k.decisions === 1 ? "" : "s"} waiting on you. ${this.prefs.input === "ptt" ? matchMedia("(pointer: coarse)").matches ? "Hold the talk button and tell me what's on your mind." : "Hold space and tell me what's on your mind." : "What's on your mind?"}`;
581
+ greet.streaming = false;
582
+ this.active = greet;
583
+ this.feedSpeech(greet, true);
584
+ }
585
+ /** End the call: the crew writes the Captain's briefing, and the fleet's changes are summed up. */
586
+ async end() {
587
+ if (!this.on || this.state === "ending") return;
588
+ const id = this.id;
589
+ this.stopSpeech();
590
+ this.stopListening();
591
+ this.state = "ending";
592
+ if (!id) return this.close();
593
+ const writing = { kind: "writing", id: uid(), at: nowIso() };
594
+ this.entries.push(writing);
595
+ const r = await this.post(`/api/live/${id}/end`, {});
596
+ const body = await r?.json().catch(() => null);
597
+ this.entries = this.entries.filter((e) => e !== writing);
598
+ if (body) this.entries.push({
599
+ kind: "brief",
600
+ id: uid(),
601
+ at: nowIso(),
602
+ sent: false,
603
+ ...body,
604
+ catchUp: body.catchUp ?? []
605
+ });
606
+ else this.note("The discussion ended, but the briefing could not be written.");
607
+ this.close();
608
+ }
609
+ close() {
610
+ this.events?.close();
611
+ this.events = null;
612
+ this.id = null;
613
+ this.stopSpeech();
614
+ this.stopListening();
615
+ this.stream?.getTracks().forEach((t) => t.stop());
616
+ this.stream = null;
617
+ this.micAnalyser = null;
618
+ void this.audioCtx?.close().catch(() => {
619
+ });
620
+ this.audioCtx = null;
621
+ this.outAnalyser = null;
622
+ this.state = "off";
623
+ }
624
+ setPrefs(next) {
625
+ this.prefs = { ...this.prefs, ...next };
626
+ try {
627
+ localStorage.setItem(PREFS_KEY, JSON.stringify(this.prefs));
628
+ } catch {
629
+ }
630
+ if (this.on && this.state !== "starting" && this.state !== "ending") this.applyInput();
631
+ }
632
+ async refreshVoice() {
633
+ this.voice = await fetch("/api/voice").then((r) => r.ok ? r.json() : this.voice).catch(() => this.voice);
634
+ }
635
+ /** The captain typed instead of talking. */
636
+ type(text) {
637
+ const t = text.trim();
638
+ if (t) void this.send(t, "typed");
639
+ }
640
+ /** The captain corrected what was heard: the crew answers the corrected words instead. */
641
+ fix(entry, text) {
642
+ const t = text.trim();
643
+ if (!t || t === entry.text) return;
644
+ const before = entry.text;
645
+ entry.text = t;
646
+ entry.how = "fixed";
647
+ void this.send(`(Correction: speech recognition got my last words wrong. I said "${t}", not "${before}". Answer that instead.)`, "fixed", true);
648
+ }
649
+ markSent(entry) {
650
+ entry.sent = true;
651
+ }
652
+ // ---------------------------------------------------------------- talking to the crew
653
+ crew() {
654
+ const r = {
655
+ kind: "crew",
656
+ id: uid(),
657
+ at: nowIso(),
658
+ text: "",
659
+ spoken: 0,
660
+ queued: 0,
661
+ streaming: true,
662
+ interrupted: false,
663
+ visuals: [],
664
+ turn: null
665
+ };
666
+ this.entries.push(r);
667
+ return this.entries[this.entries.length - 1];
668
+ }
669
+ note(text) {
670
+ this.entries.push({ kind: "notice", id: uid(), at: nowIso(), text });
671
+ }
672
+ async send(text, how, silent = false) {
673
+ if (!this.id) return;
674
+ if (this.active) this.bargeIn();
675
+ if (!silent) this.entries.push({
676
+ kind: "captain",
677
+ id: uid(),
678
+ at: nowIso(),
679
+ text,
680
+ how,
681
+ pending: false
682
+ });
683
+ const reply = this.crew();
684
+ this.active = reply;
685
+ this.state = "thinking";
686
+ const r = await this.post(`/api/live/${this.id}/say`, { text });
687
+ const body = await r?.json().catch(() => null);
688
+ if (this.active !== reply) return;
689
+ if (!body?.turn) {
690
+ reply.streaming = false;
691
+ reply.text = "The crew did not answer. Try again, or end the discussion.";
692
+ this.state = this.idle();
693
+ return;
694
+ }
695
+ reply.turn = body.turn;
696
+ const held = this.early.find((e) => e.turn === body.turn);
697
+ this.early = this.early.filter((e) => e !== held);
698
+ for (const e of held?.events ?? []) this.onEvent({ ...e, turn: body.turn });
699
+ }
700
+ onEvent(e) {
701
+ if (e.type === "gone") {
702
+ if (this.on && this.state !== "ending") {
703
+ this.note("The discussion crew stopped.");
704
+ this.close();
705
+ }
706
+ return;
707
+ }
708
+ const reply = this.active;
709
+ if (!reply || !e.turn) return;
710
+ if (reply.turn === null) {
711
+ let held = this.early.find((x) => x.turn === e.turn);
712
+ if (!held) this.early.push(held = { turn: e.turn, events: [] });
713
+ held.events.push(e);
714
+ return;
715
+ }
716
+ if (e.turn !== reply.turn) return;
717
+ if (e.type === "delta" && e.text) {
718
+ reply.text += e.text;
719
+ this.readVisuals(reply);
720
+ this.feedSpeech(reply, false);
721
+ } else if (e.type === "done") {
722
+ reply.streaming = false;
723
+ if (!reply.text.trim() && !reply.interrupted) {
724
+ reply.text = e.error ? `I couldn’t answer: ${e.error}` : "I couldn’t answer that. Try again?";
725
+ reply.queued = reply.spoken = reply.text.length;
726
+ }
727
+ this.readVisuals(reply);
728
+ this.feedSpeech(reply, true);
729
+ if (!this.current && !this.queue.length) this.state = this.idle();
730
+ }
731
+ }
732
+ readVisuals(reply) {
733
+ const closed = parseReply(reply.text).filter((p) => p.type === "block" && p.closed);
734
+ for (let i = reply.visuals.length; i < closed.length; i++) {
735
+ const p = closed[i];
736
+ reply.visuals.push(readBlock(p.lang, p.body));
737
+ }
738
+ }
739
+ /** Speak each complete sentence of the reply's prose as soon as it is there. */
740
+ feedSpeech(reply, final) {
741
+ const prose = speakableProse(reply.text);
742
+ const blockFollows = parseReply(reply.text).some((p) => p.type === "block");
743
+ const { sentences, to } = nextSentences(prose, reply.queued, final || blockFollows);
744
+ reply.queued = to;
745
+ for (const s of sentences) this.speak(s, reply);
746
+ }
747
+ /** The captain talked over the crew: stop speaking and stop its answer. */
748
+ bargeIn() {
749
+ const reply = this.active;
750
+ const live2 = reply && (reply.streaming || this.speakingFor(reply));
751
+ this.stopSpeech();
752
+ if (reply && live2) {
753
+ reply.interrupted = true;
754
+ reply.streaming = false;
755
+ if (this.id) void this.post(`/api/live/${this.id}/interrupt`, {});
756
+ }
757
+ this.active = null;
758
+ }
759
+ speakingFor(reply) {
760
+ return this.current?.reply === reply || this.queue.some((q) => q.reply === reply);
761
+ }
762
+ // ---------------------------------------------------------------- speech out
763
+ provider() {
764
+ return this.voice?.effective.speak ?? BROWSER;
765
+ }
766
+ speak(text, reply) {
767
+ const said = forSpeech(text);
768
+ if (!said) {
769
+ if (reply) reply.spoken += text.length;
770
+ return;
771
+ }
772
+ const item = { text, reply, audio: null };
773
+ if (this.provider() !== BROWSER) item.audio = this.fetchAudio(said);
774
+ this.queue.push(item);
775
+ this.pump();
776
+ }
777
+ async fetchAudio(text) {
778
+ const r = await this.post("/api/voice/speak", { text, speed: this.prefs.speed });
779
+ if (!r || r.status !== 200) return null;
780
+ return r.blob().catch(() => null);
781
+ }
782
+ pump() {
783
+ if (this.current || !this.queue.length) return;
784
+ const item = this.queue.shift();
785
+ const gen = this.gen;
786
+ this.current = item;
787
+ const finish = () => {
788
+ if (gen !== this.gen || this.current !== item) return;
789
+ if (item.reply) item.reply.spoken += item.text.length;
790
+ this.recent = {
791
+ text: `${this.recent && Date.now() - this.recent.at < 4e3 ? this.recent.text : ""} ${item.text}`,
792
+ at: Date.now()
793
+ };
794
+ this.current = null;
795
+ this.player = null;
796
+ if (this.queue.length) this.pump();
797
+ else if (item.reply?.streaming) this.state = "thinking";
798
+ else if (this.state === "speaking" || this.state === "thinking") this.state = this.idle();
799
+ };
800
+ const browser = () => {
801
+ if (gen !== this.gen) return;
802
+ if (typeof speechSynthesis === "undefined") return finish();
803
+ const u = new SpeechSynthesisUtterance(forSpeech(item.text));
804
+ const voices = speechSynthesis.getVoices().filter((v) => v.lang.startsWith("en"));
805
+ u.voice = [
806
+ "Google UK English Male",
807
+ "Daniel",
808
+ "Google UK English Female",
809
+ "Serena",
810
+ "Samantha"
811
+ ].map((n) => voices.find((v) => v.name.includes(n))).find(Boolean) ?? null;
812
+ u.rate = this.prefs.speed * 1.05;
813
+ u.onstart = () => {
814
+ if (gen === this.gen) this.state = "speaking";
815
+ };
816
+ u.onboundary = () => this.pulse = 0.45 + Math.random() * 0.35;
817
+ const guard = setTimeout(finish, 4e3 + item.text.length * 110);
818
+ u.onend = u.onerror = () => {
819
+ clearTimeout(guard);
820
+ finish();
821
+ };
822
+ speechSynthesis.speak(u);
823
+ };
824
+ if (!item.audio) return browser();
825
+ void item.audio.then((blob) => {
826
+ if (gen !== this.gen) return;
827
+ if (!blob) return browser();
828
+ const a = new Audio(URL.createObjectURL(blob));
829
+ this.player = a;
830
+ try {
831
+ if (this.audioCtx && this.outAnalyser) this.audioCtx.createMediaElementSource(a).connect(this.outAnalyser);
832
+ } catch {
833
+ }
834
+ a.onplaying = () => {
835
+ if (gen === this.gen) this.state = "speaking";
836
+ };
837
+ a.onended = () => {
838
+ URL.revokeObjectURL(a.src);
839
+ finish();
840
+ };
841
+ a.onerror = () => browser();
842
+ a.play().catch(() => browser());
843
+ });
844
+ }
845
+ stopSpeech() {
846
+ this.gen++;
847
+ this.queue = [];
848
+ this.current = null;
849
+ this.player?.pause();
850
+ this.player = null;
851
+ if (typeof speechSynthesis !== "undefined") speechSynthesis.cancel();
852
+ }
853
+ // ---------------------------------------------------------------- speech in
854
+ idle() {
855
+ if (this.prefs.input === "ptt") return "ready";
856
+ return this.state === "muted" ? "muted" : "listening";
857
+ }
858
+ hearsWithProvider() {
859
+ return (this.voice?.effective.hear ?? BROWSER) !== BROWSER;
860
+ }
861
+ async openMicrophone() {
862
+ try {
863
+ this.stream = await navigator.mediaDevices.getUserMedia({
864
+ audio: {
865
+ echoCancellation: true,
866
+ noiseSuppression: true,
867
+ autoGainControl: true
868
+ }
869
+ });
870
+ this.audioCtx = new AudioContext();
871
+ const src = this.audioCtx.createMediaStreamSource(this.stream);
872
+ this.micAnalyser = this.audioCtx.createAnalyser();
873
+ this.micAnalyser.fftSize = 1024;
874
+ src.connect(this.micAnalyser);
875
+ this.outAnalyser = this.audioCtx.createAnalyser();
876
+ this.outAnalyser.fftSize = 512;
877
+ this.outAnalyser.connect(this.audioCtx.destination);
878
+ } catch {
879
+ this.problem = "No microphone: you can still type to the crew.";
880
+ }
881
+ }
882
+ /** Start or stop listening to match push to talk or always on. */
883
+ applyInput() {
884
+ if (this.prefs.input === "always" && this.state !== "muted") {
885
+ this.listen();
886
+ if (this.hearsWithProvider() && !this.recorder) this.record();
887
+ } else if (!this.pressing) this.stopListening();
888
+ if (["ready", "listening", "muted"].includes(this.state)) this.state = this.idle();
889
+ }
890
+ toggleMute() {
891
+ if (this.prefs.input !== "always" || !this.on) return;
892
+ if (this.state === "muted") {
893
+ this.state = "listening";
894
+ this.applyInput();
895
+ } else {
896
+ this.stopListening();
897
+ this.state = "muted";
898
+ }
899
+ }
900
+ listen() {
901
+ if (this.session) return;
902
+ const engine = dictationEngine();
903
+ if (!engine.supported()) return;
904
+ this.consumed = 0;
905
+ this.session = engine.start("en-GB", {
906
+ text: (final, interim) => this.onHeard(final, interim),
907
+ problem: (p) => {
908
+ if (p === "blocked" || p === "no-microphone") this.problem = "The microphone is blocked: allow it from the address bar, or type.";
909
+ },
910
+ end: () => {
911
+ this.session = null;
912
+ const wanted = this.on && this.state !== "ending" && (this.prefs.input === "always" ? this.state !== "muted" : this.pressing);
913
+ if (wanted) setTimeout(() => this.listen(), 100);
914
+ }
915
+ });
916
+ }
917
+ stopListening(keep = false) {
918
+ if (this.commitTimer) clearTimeout(this.commitTimer);
919
+ const s = this.session;
920
+ this.session = null;
921
+ if (keep) s?.stop();
922
+ else s?.abort();
923
+ if (this.recorder) {
924
+ try {
925
+ this.recorder.mr.stop();
926
+ } catch {
927
+ }
928
+ this.recorder = null;
929
+ }
930
+ }
931
+ onHeard(final, interim) {
932
+ const settled = final.slice(this.consumed).trim();
933
+ const fresh = `${settled} ${interim}`.trim();
934
+ if (!fresh || !this.on) return;
935
+ if (this.prefs.input === "ptt") {
936
+ if (this.pressing) this.heard = { settled, forming: interim };
937
+ return;
938
+ }
939
+ if (this.state === "muted") return;
940
+ const saying = `${this.current?.text ?? ""} ${this.queue.map((q) => q.text).join(" ")} ${this.recent && Date.now() - this.recent.at < 2500 ? this.recent.text : ""}`;
941
+ if (!this.prefs.headphones && isEcho(fresh, saying)) {
942
+ this.consumed = final.length;
943
+ return;
944
+ }
945
+ const crewTalking = this.state === "speaking" || !!this.current;
946
+ if (crewTalking) {
947
+ if (fresh.split(/\s+/).length < 2 && !settled) return;
948
+ this.bargeIn();
949
+ } else if (this.state === "thinking" && fresh.split(/\s+/).length >= 2) this.bargeIn();
950
+ if (!this.utterStart) this.utterStart = performance.now();
951
+ this.heard = { settled, forming: interim };
952
+ this.state = "hearing";
953
+ if (this.commitTimer) clearTimeout(this.commitTimer);
954
+ this.commitTimer = setTimeout(() => void this.commit(final.length), interim ? 1500 : 850);
955
+ }
956
+ /** Always on: a pause ends the captain's turn. */
957
+ async commit(upTo) {
958
+ const text = `${this.heard.settled} ${this.heard.forming}`.trim();
959
+ this.consumed = Math.max(this.consumed, upTo);
960
+ this.heard = { settled: "", forming: "" };
961
+ const started = this.utterStart;
962
+ this.utterStart = 0;
963
+ if (!text) return;
964
+ if (this.hearsWithProvider() && this.recorder) {
965
+ const rec = this.recorder;
966
+ const from = Math.max(0, (started - rec.t0) / 1e3 - 1.6);
967
+ this.recorder = null;
968
+ const clip = this.stopRecorder(rec);
969
+ this.record();
970
+ const better = await this.transcribe(await clip, from, text);
971
+ return this.send(better ?? text, better ? "provider" : "voice");
972
+ }
973
+ return this.send(text, "voice");
974
+ }
975
+ /** Push to talk: Space (or the button) went down. */
976
+ press() {
977
+ if (!this.on || this.pressing || this.prefs.input !== "ptt" || !this.id) return;
978
+ this.pressing = true;
979
+ this.heard = { settled: "", forming: "" };
980
+ if (this.active && (this.active.streaming || this.speakingFor(this.active))) this.bargeIn();
981
+ else this.stopSpeech();
982
+ this.state = "hearing";
983
+ if (this.hearsWithProvider()) this.record();
984
+ this.listen();
985
+ this.pressedAt = performance.now();
986
+ }
987
+ pressedAt = 0;
988
+ /** Push to talk: released, so send what was said. */
989
+ /** Push to talk: slid away before letting go, so nothing is sent. */
990
+ cancel() {
991
+ if (!this.pressing) return;
992
+ this.pressing = false;
993
+ const rec = this.recorder;
994
+ this.recorder = null;
995
+ try {
996
+ rec?.mr.stop();
997
+ } catch {
998
+ }
999
+ const s = this.session;
1000
+ this.session = null;
1001
+ s?.abort();
1002
+ this.heard = { settled: "", forming: "" };
1003
+ this.state = this.idle();
1004
+ }
1005
+ async release() {
1006
+ if (!this.pressing) return;
1007
+ this.pressing = false;
1008
+ const held = performance.now() - this.pressedAt;
1009
+ const rec = this.recorder;
1010
+ this.recorder = null;
1011
+ const clip = rec ? this.stopRecorder(rec) : null;
1012
+ const s = this.session;
1013
+ this.session = null;
1014
+ s?.stop();
1015
+ await new Promise((r) => setTimeout(r, 450));
1016
+ const text = `${this.heard.settled} ${this.heard.forming}`.trim();
1017
+ this.heard = { settled: "", forming: "" };
1018
+ if (held < 300 || !text && !clip) {
1019
+ this.state = this.idle();
1020
+ return;
1021
+ }
1022
+ if (clip) {
1023
+ const better = await this.transcribe(await clip, 0, text || "…");
1024
+ if (better || text) return this.send(better ?? text, better ? "provider" : "voice");
1025
+ this.state = this.idle();
1026
+ return;
1027
+ }
1028
+ if (text) return this.send(text, "voice");
1029
+ this.state = this.idle();
1030
+ }
1031
+ record() {
1032
+ if (!this.stream || typeof MediaRecorder === "undefined") return;
1033
+ const type = ["audio/webm;codecs=opus", "audio/webm", "audio/mp4"].find((t) => MediaRecorder.isTypeSupported(t));
1034
+ const mr = new MediaRecorder(this.stream, type ? { mimeType: type } : void 0);
1035
+ const rec = { mr, chunks: [], t0: performance.now() };
1036
+ mr.ondataavailable = (e) => {
1037
+ if (e.data.size) rec.chunks.push(e.data);
1038
+ };
1039
+ mr.start(250);
1040
+ this.recorder = rec;
1041
+ }
1042
+ stopRecorder(rec) {
1043
+ return new Promise((resolve) => {
1044
+ rec.mr.onstop = () => resolve(new Blob(rec.chunks, { type: rec.mr.mimeType || "audio/webm" }));
1045
+ try {
1046
+ rec.mr.stop();
1047
+ } catch {
1048
+ resolve(null);
1049
+ }
1050
+ });
1051
+ }
1052
+ /** A clip heard by the provider; shows the browser's words as pending meanwhile. */
1053
+ async transcribe(clip, from, shown) {
1054
+ if (!clip || clip.size < 1500) return null;
1055
+ const pending = {
1056
+ kind: "captain",
1057
+ id: uid(),
1058
+ at: nowIso(),
1059
+ text: shown,
1060
+ how: "voice",
1061
+ pending: true
1062
+ };
1063
+ this.entries.push(pending);
1064
+ this.state = "transcribing";
1065
+ try {
1066
+ const r = await fetch(`/api/voice/hear?from=${from.toFixed(2)}`, {
1067
+ method: "POST",
1068
+ headers: { "content-type": clip.type, [SESSION_HEADER]: this.token },
1069
+ body: clip
1070
+ });
1071
+ const body = await r.json().catch(() => null);
1072
+ return body?.text?.trim() || null;
1073
+ } catch {
1074
+ return null;
1075
+ } finally {
1076
+ this.entries = this.entries.filter((e) => e.id !== pending.id);
1077
+ }
1078
+ }
1079
+ /** With headphones on, a sustained voice interrupts the crew at once. */
1080
+ headphoneBargeIn(lvl) {
1081
+ if (!this.prefs.headphones || this.prefs.input !== "always" || this.state !== "speaking" && this.state !== "thinking") {
1082
+ this.loudSince = 0;
1083
+ return;
1084
+ }
1085
+ if (lvl < 0.45) this.loudSince = 0;
1086
+ else if (!this.loudSince) this.loudSince = performance.now();
1087
+ else if (performance.now() - this.loudSince > 220) {
1088
+ this.loudSince = 0;
1089
+ this.bargeIn();
1090
+ this.state = "hearing";
1091
+ }
1092
+ }
1093
+ async post(path, body) {
1094
+ try {
1095
+ return await fetch(path, {
1096
+ method: "POST",
1097
+ headers: {
1098
+ "content-type": "application/json",
1099
+ [SESSION_HEADER]: this.token
1100
+ },
1101
+ body: JSON.stringify(body)
1102
+ });
1103
+ } catch {
1104
+ return null;
1105
+ }
1106
+ }
1107
+ }
1108
+ const liveCall = new LiveCall();
1109
+ function LiveBar($$renderer, $$props) {
1110
+ $$renderer.component(($$renderer2) => {
1111
+ let open = false;
1112
+ let clock = "00:00";
1113
+ const ptt = derived(() => liveCall.prefs.input === "ptt");
1114
+ const LINES = {
1115
+ off: "",
1116
+ starting: "Briefing the crew on the fleet…",
1117
+ ready: "Your turn",
1118
+ listening: "Listening · talk any time",
1119
+ muted: "Microphone off · type, or press M",
1120
+ hearing: "Hearing you",
1121
+ transcribing: "Transcribing what you said…",
1122
+ thinking: "Thinking",
1123
+ speaking: "Speaking",
1124
+ ending: "Writing the Captain’s briefing…"
1125
+ };
1126
+ const hint = derived(() => liveCall.state === "ready" ? " · hold Space to talk" : liveCall.state === "hearing" ? ptt() ? ` · let go${" of Space"} to send` : " · pause when you are done" : liveCall.state === "thinking" || liveCall.state === "speaking" ? ptt() ? ` · hold${" Space"} to cut in` : " · talk to cut in" : "");
1127
+ const voiceName = derived(() => {
1128
+ const v = liveCall.voice;
1129
+ if (!v || v.effective.speak === BROWSER) return "Browser voice";
1130
+ const p = v.providers.find((x) => x.id === v.effective.speak);
1131
+ return `${p?.voices.find((x) => x.id === v.effective.voice)?.name ?? p?.voices[0]?.name ?? ""} · ${p?.label ?? ""}`;
1132
+ });
1133
+ $$renderer2.push(`<div class="flex items-center gap-3 border-b border-sea/25 bg-sea/5 px-4 py-2 sm:px-6 lg:px-10" data-live-bar=""><span class="flex size-8 shrink-0 items-center justify-center rounded-full border-[1.5px] border-brass bg-sea/10 text-sea">`);
1134
+ Audio_lines($$renderer2, { class: "size-4", "aria-hidden": "true" });
1135
+ $$renderer2.push(`<!----></span> <div class="min-w-0 flex-1"><p class="flex items-baseline gap-2 text-sm whitespace-nowrap"><b class="font-semibold">Discussion crew</b> <span class="font-mono text-xs text-muted-foreground tabular-nums">${escape_html(
1136
+ // The meter: fixed bars, eased toward the level, so nothing on the page moves but the bars.
1137
+ clock
1138
+ )}</span> <span class="hidden truncate text-xs text-muted-foreground sm:inline">${escape_html(voiceName())}</span></p> <p class="h-[1.15rem] truncate text-xs text-muted-foreground" role="status"><b class="font-semibold text-sea">${escape_html(LINES[liveCall.state])}</b>${escape_html(hint())}</p></div> <canvas width="184" height="52" class="h-[22px] w-[56px] shrink-0 sm:h-[26px] sm:w-[92px]" aria-hidden="true"></canvas> <div class="relative" data-live-settings=""><button class="flex size-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Live mode settings"${attr("aria-expanded", open)}>`);
1139
+ Sliders_horizontal($$renderer2, { class: "size-4" });
1140
+ $$renderer2.push(`<!----></button> `);
1141
+ {
1142
+ $$renderer2.push("<!--[-1-->");
1143
+ }
1144
+ $$renderer2.push(`<!--]--></div> <button class="h-8 shrink-0 cursor-pointer rounded-md border border-danger/50 px-3 text-sm font-medium text-danger hover:bg-danger/10 disabled:opacity-50"${attr("disabled", liveCall.state === "ending" || liveCall.state === "starting", true)}>End</button></div> <dialog class="m-auto w-[min(56rem,92vw)] rounded-xl border bg-popover p-0 text-foreground backdrop:bg-black/60"><div class="flex items-center border-b px-4 py-3 text-sm"><b class="font-semibold">What the discussion crew was told</b> <button class="ml-auto cursor-pointer text-muted-foreground hover:text-foreground">Close</button></div> <pre class="max-h-[70vh] overflow-auto p-4 font-mono text-xs whitespace-pre-wrap">${escape_html(liveCall.context)}</pre></dialog>`);
1145
+ });
1146
+ }
1147
+ function muteButton($$renderer, big) {
1148
+ $$renderer.push(`<button${attr_class(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-full border font-semibold ${"h-9 px-3.5 text-sm"} ${liveCall.state === "muted" ? "border-danger/55 bg-danger/10 text-danger" : "border-teal/55 bg-teal/10 text-teal"}`)}${attr("aria-label", liveCall.state === "muted" ? "Unmute" : "Mute")}>`);
1149
+ if (liveCall.state === "muted") {
1150
+ $$renderer.push("<!--[0-->");
1151
+ Mic_off($$renderer, { class: "size-4", "aria-hidden": "true" });
1152
+ $$renderer.push(`<!---->Muted`);
1153
+ } else {
1154
+ $$renderer.push("<!--[-1-->");
1155
+ Mic($$renderer, { class: "size-4", "aria-hidden": "true" });
1156
+ $$renderer.push(`<!---->Listening`);
1157
+ }
1158
+ $$renderer.push(`<!--]--></button>`);
1159
+ }
1160
+ function LiveComposer($$renderer, $$props) {
1161
+ $$renderer.component(($$renderer2) => {
1162
+ let text = "";
1163
+ const ptt = derived(() => liveCall.prefs.input === "ptt");
1164
+ function holdButton($$renderer3, big) {
1165
+ $$renderer3.push(`<button${attr_class(`inline-flex shrink-0 cursor-pointer touch-none items-center justify-center gap-2 rounded-full border font-semibold transition select-none [-webkit-touch-callout:none] ${"h-9 px-3.5 text-sm"} ${liveCall.pressing ? "scale-[0.98] border-sea bg-sea text-on-accent" : "border-sea/55 bg-sea/10 text-sea"}`)} aria-label="Hold to talk"${attr("aria-pressed", liveCall.pressing)}>`);
1166
+ Mic($$renderer3, { class: "size-4", "aria-hidden": "true" });
1167
+ $$renderer3.push(`<!----> ${escape_html(liveCall.pressing ? "Let go to send" : "Hold to talk")}</button>`);
1168
+ }
1169
+ $$renderer2.push(`<div data-live-composer=""><p class="flex h-6 items-center gap-2 overflow-hidden px-1 pb-1 text-sm whitespace-nowrap" aria-live="polite"><span${attr_class(`shrink-0 font-mono text-[0.65rem] tracking-widest uppercase ${liveCall.state === "transcribing" ? "text-sea" : "text-teal"}`)}>${escape_html(liveCall.state === "transcribing" ? "Transcribing" : liveCall.heard.settled || liveCall.heard.forming ? "Hearing" : ptt() ? "Push to talk" : "Hands-free")}</span> <span class="min-w-0 truncate">`);
1170
+ if (liveCall.heard.settled || liveCall.heard.forming) {
1171
+ $$renderer2.push(`<!--[0-->${escape_html(liveCall.heard.settled)} <span class="text-muted-foreground">${escape_html(liveCall.heard.forming)}</span>`);
1172
+ } else {
1173
+ $$renderer2.push(`<!--[-1--><span class="text-muted-foreground">${escape_html(liveCall.problem ?? (ptt() ? "Hold Space and talk; let go to send." : "Talk any time; it sends when you pause."))}</span>`);
1174
+ }
1175
+ $$renderer2.push(`<!--]--></span></p> `);
1176
+ {
1177
+ $$renderer2.push("<!--[-1-->");
1178
+ }
1179
+ $$renderer2.push(`<!--]--> <div class="flex items-center gap-2 rounded-xl border border-sea/45 bg-card p-1.5 pl-2">`);
1180
+ {
1181
+ $$renderer2.push("<!--[0-->");
1182
+ if (ptt()) {
1183
+ $$renderer2.push("<!--[0-->");
1184
+ holdButton($$renderer2);
1185
+ } else {
1186
+ $$renderer2.push("<!--[-1-->");
1187
+ muteButton($$renderer2);
1188
+ }
1189
+ $$renderer2.push(`<!--]-->`);
1190
+ }
1191
+ $$renderer2.push(`<!--]--> <input class="min-w-0 flex-1 bg-transparent px-2 text-base outline-none placeholder:text-muted-foreground sm:text-[0.95rem]"${attr("placeholder", ptt() ? "Talk to the crew (hold Space), or type here" : "Type to the crew")} aria-label="Message the discussion crew" enterkeyhint="send"${attr("value", text)}/> <button class="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full bg-sea text-on-accent disabled:opacity-40" aria-label="Send to the crew"${attr("disabled", !text.trim(), true)}>`);
1192
+ Arrow_up($$renderer2, { class: "size-4" });
1193
+ $$renderer2.push(`<!----></button></div></div>`);
1194
+ });
1195
+ }
1196
+ function ChatPreview($$renderer, $$props) {
1197
+ $$renderer.component(($$renderer2) => {
1198
+ let { preview, project = null, now } = $$props;
1199
+ const task = derived(() => preview.task);
1200
+ const url = derived(() => task() ? task().preview?.url ?? task().board?.url ?? null : preview.url);
1201
+ const key = derived(() => task()?.preview ? task().id : urlKey(url() ?? ""));
1202
+ const byTask = derived(() => !!task()?.preview);
1203
+ const check = derived(() => previewChecks.checks[key()] ?? null);
1204
+ const checked = derived(() => check()?.state ?? null);
1205
+ const stopped = derived(() => checked() === "down");
1206
+ const shown = derived(() => check()?.url ?? url());
1207
+ const board = derived(() => task()?.preview && task().board && !reviewSurface() ? task().board.url : null);
1208
+ const title = derived(() => task()?.shortTitle ?? (preview.board ? "Review board" : URL.parse(url() ?? "")?.host ?? "Preview"));
1209
+ const action = derived(() => shown() && checked() === "live" ? {
1210
+ url: shown(),
1211
+ taskId: task()?.id ?? null,
1212
+ title: task()?.shortTitle ?? null,
1213
+ projectId: task()?.projectId ?? null,
1214
+ board: preview.board
1215
+ } : null);
1216
+ const prLink = derived(() => task()?.pr ? pullRequests.review(task().projectId, task().pr) : null);
1217
+ let full = false;
1218
+ let from = null;
1219
+ function open() {
1220
+ from = null;
1221
+ full = true;
1222
+ }
1223
+ const CHECKS = {
1224
+ green: {
1225
+ icon: Circle_check,
1226
+ text: "Checks passed",
1227
+ tone: "text-success"
1228
+ },
1229
+ pending: {
1230
+ icon: Circle_dashed,
1231
+ text: "Checks running",
1232
+ tone: "text-muted-foreground"
1233
+ },
1234
+ red: { icon: Circle_x, text: "Checks failed", tone: "text-danger" }
1235
+ };
1236
+ const checks = derived(() => task()?.pipeline?.ci ? CHECKS[task().pipeline.ci] : null);
1237
+ const reported = derived(() => task()?.preview?.reportedAt ?? task()?.board?.reportedAt ?? null);
1238
+ const at = derived(() => preview.landed ? task()?.mergedAt ?? reported() : reported());
1239
+ $$renderer2.push(`<div class="w-full max-w-[min(100%,40rem)] overflow-hidden rounded-xl border border-hair bg-card"${attr("data-chat-preview", preview.landed ? "landed" : "live")}${attr("data-chat-preview-for", task() ? "task" : "link")}><header class="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 px-4 pt-2.5 pb-2 text-sm"><span${attr_class(`flex shrink-0 items-center gap-1 rounded px-1.5 text-xs leading-[1.15rem] font-medium ${preview.landed ? "bg-success/10 text-success" : stopped() ? "bg-muted text-muted-foreground" : "bg-sea/10 text-sea"}`)}>`);
1240
+ if (preview.landed) {
1241
+ $$renderer2.push("<!--[0-->");
1242
+ Git_merge($$renderer2, { class: "size-3", "aria-hidden": "true" });
1243
+ $$renderer2.push(`<!---->Landed`);
1244
+ } else if (stopped()) {
1245
+ $$renderer2.push("<!--[1-->");
1246
+ Monitor_off($$renderer2, { class: "size-3", "aria-hidden": "true" });
1247
+ $$renderer2.push(`<!---->${escape_html(preview.board ? "Board stopped" : "Preview stopped")}`);
1248
+ } else if (preview.board) {
1249
+ $$renderer2.push("<!--[2-->");
1250
+ Layout_dashboard($$renderer2, { class: "size-3", "aria-hidden": "true" });
1251
+ $$renderer2.push(`<!---->Review board`);
1252
+ } else {
1253
+ $$renderer2.push("<!--[-1-->");
1254
+ Monitor_play($$renderer2, { class: "size-3", "aria-hidden": "true" });
1255
+ $$renderer2.push(`<!---->Live preview`);
1256
+ }
1257
+ $$renderer2.push(`<!--]--></span> `);
1258
+ if (project) {
1259
+ $$renderer2.push(`<!--[0--><span class="shrink-0 rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]">${escape_html(project)}</span>`);
1260
+ } else {
1261
+ $$renderer2.push("<!--[-1-->");
1262
+ }
1263
+ $$renderer2.push(`<!--]--> `);
1264
+ if (task()) {
1265
+ $$renderer2.push(`<!--[0--><a${attr("href", `/tasks/${stringify(encodeURIComponent(task().id))}`)} class="order-last min-w-0 basis-full truncate font-medium hover:underline sm:order-none sm:basis-auto">${escape_html(task().shortTitle)}</a>`);
1266
+ } else {
1267
+ $$renderer2.push(`<!--[-1--><span class="order-last min-w-0 basis-full truncate font-mono text-xs text-muted-foreground sm:order-none sm:basis-auto"${attr("title", url())}>${escape_html(url())}</span>`);
1268
+ }
1269
+ $$renderer2.push(`<!--]--> `);
1270
+ if (at()) {
1271
+ $$renderer2.push(`<!--[0--><span class="ml-auto shrink-0 text-xs text-muted-foreground tabular-nums">${escape_html(ago(at(), now))}</span>`);
1272
+ } else {
1273
+ $$renderer2.push("<!--[-1-->");
1274
+ }
1275
+ $$renderer2.push(`<!--]--></header> <div class="border-y border-hair">`);
1276
+ if (byTask()) {
1277
+ $$renderer2.push("<!--[0-->");
1278
+ LivePreview($$renderer2, {
1279
+ taskId: task()?.id,
1280
+ compact: true,
1281
+ toolbar: false,
1282
+ onopen: open
1283
+ });
1284
+ } else {
1285
+ $$renderer2.push("<!--[-1-->");
1286
+ LivePreview($$renderer2, { url: url(), compact: true, toolbar: false, onopen: open });
1287
+ }
1288
+ $$renderer2.push(`<!--]--></div> <footer class="flex flex-wrap items-center gap-x-3 gap-y-1 px-4 py-2 text-xs">`);
1289
+ if (task()?.pr) {
1290
+ $$renderer2.push(`<!--[0--><a${attr("href", task().pr.url)} target="_blank" rel="noreferrer" class="inline-flex min-w-0 items-center gap-1 text-sea hover:underline">`);
1291
+ if (preview.landed) {
1292
+ $$renderer2.push("<!--[0-->");
1293
+ Git_merge($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
1294
+ } else {
1295
+ $$renderer2.push("<!--[-1-->");
1296
+ Git_pull_request($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
1297
+ }
1298
+ $$renderer2.push(`<!--]--><span class="truncate">${escape_html(task().pr.number ? `Pull request #${task().pr.number}` : "Pull request")}</span></a>`);
1299
+ } else {
1300
+ $$renderer2.push("<!--[-1-->");
1301
+ }
1302
+ $$renderer2.push(`<!--]--> `);
1303
+ if (checks()) {
1304
+ $$renderer2.push(`<!--[0--><span${attr_class(`inline-flex items-center gap-1 ${stringify(checks().tone)}`)}>`);
1305
+ if (checks().icon) {
1306
+ $$renderer2.push("<!--[-->");
1307
+ checks().icon($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1308
+ $$renderer2.push("<!--]-->");
1309
+ } else {
1310
+ $$renderer2.push("<!--[!-->");
1311
+ $$renderer2.push("<!--]-->");
1312
+ }
1313
+ $$renderer2.push(`${escape_html(checks().text)}</span>`);
1314
+ } else {
1315
+ $$renderer2.push("<!--[-1-->");
1316
+ }
1317
+ $$renderer2.push(`<!--]--> `);
1318
+ if (board()) {
1319
+ $$renderer2.push(`<!--[0--><a${attr("href", board())} target="_blank" rel="noreferrer" class="inline-flex min-w-0 items-center gap-1 text-sea hover:underline"${attr("title", board())} data-open-board="">`);
1320
+ Layout_dashboard($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
1321
+ $$renderer2.push(`<!----><span class="truncate">Open the board</span></a>`);
1322
+ } else {
1323
+ $$renderer2.push("<!--[-1-->");
1324
+ }
1325
+ $$renderer2.push(`<!--]--> <span class="ml-auto flex flex-wrap items-center justify-end gap-1">`);
1326
+ if (action()) {
1327
+ $$renderer2.push("<!--[0-->");
1328
+ PreviewActions($$renderer2, { preview: action() });
1329
+ } else {
1330
+ $$renderer2.push("<!--[-1-->");
1331
+ }
1332
+ $$renderer2.push(`<!--]--> `);
1333
+ if (prLink() && !prLink().external) {
1334
+ $$renderer2.push(`<!--[0--><a${attr("href", prLink().href)} class="inline-flex items-center gap-1 rounded px-1.5 py-0.5 font-medium hover:bg-accent" data-review-pr="">`);
1335
+ Compass($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1336
+ $$renderer2.push(`<!---->Review</a>`);
1337
+ } else {
1338
+ $$renderer2.push("<!--[-1-->");
1339
+ }
1340
+ $$renderer2.push(`<!--]--> `);
1341
+ if (checked() === "live") {
1342
+ $$renderer2.push(`<!--[0--><button type="button" class="inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-medium hover:bg-accent">`);
1343
+ Maximize_2($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1344
+ $$renderer2.push(`<!---->Full size</button>`);
1345
+ } else {
1346
+ $$renderer2.push("<!--[-1-->");
1347
+ }
1348
+ $$renderer2.push(`<!--]--> `);
1349
+ if (shown() && (checked() === "live" || checked() === "blocked")) {
1350
+ $$renderer2.push(`<!--[0--><a${attr("href", shown())} target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-muted-foreground hover:bg-accent hover:text-foreground"${attr("title", shown())}>New tab`);
1351
+ External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1352
+ $$renderer2.push(`<!----></a>`);
1353
+ } else {
1354
+ $$renderer2.push("<!--[-1-->");
1355
+ }
1356
+ $$renderer2.push(`<!--]--></span></footer></div> `);
1357
+ if (full && url()) {
1358
+ $$renderer2.push("<!--[0-->");
1359
+ PreviewStudio($$renderer2, {
1360
+ taskId: byTask() ? task()?.id ?? null : null,
1361
+ title: title(),
1362
+ url: url(),
1363
+ talk: !preview.landed,
1364
+ board: preview.board,
1365
+ from,
1366
+ onclose: () => full = false
1367
+ });
1368
+ } else {
1369
+ $$renderer2.push("<!--[-1-->");
1370
+ }
1371
+ $$renderer2.push(`<!--]-->`);
1372
+ });
1373
+ }
1374
+ function LiveVisual($$renderer, $$props) {
1375
+ $$renderer.component(($$renderer2) => {
1376
+ let { visual, tasks, now, projectName } = $$props;
1377
+ const KIND = {
1378
+ diagram: ["Diagram", Workflow],
1379
+ chart: ["Chart", Chart_column],
1380
+ picture: ["Picture", Image]
1381
+ };
1382
+ const title = derived(() => visual.kind === "diagram" ? visual.title : visual.kind === "chart" ? visual.spec.title : visual.kind === "picture" ? visual.title : "");
1383
+ const prNumber = (url) => /\/pull\/(\d+)/.exec(url)?.[1] ?? null;
1384
+ const repo = (url) => /github\.com\/([^/]+\/[^/]+)\//.exec(url)?.[1] ?? null;
1385
+ const find = (id) => {
1386
+ const q = id.toLowerCase();
1387
+ return tasks.find((t) => t.id.toLowerCase() === q) ?? tasks.find((t) => t.id.toLowerCase().startsWith(q)) ?? null;
1388
+ };
1389
+ if (visual.kind === "passon") {
1390
+ $$renderer2.push(`<!--[0--><div class="flex max-w-[62ch] items-start gap-2.5 rounded-lg border border-sea/40 bg-sea/5 px-3.5 py-2.5 text-sm" data-live-passon="">`);
1391
+ Hourglass($$renderer2, {
1392
+ class: "mt-0.5 size-4 shrink-0 text-sea",
1393
+ "aria-hidden": "true"
1394
+ });
1395
+ $$renderer2.push(`<!----> <div><p class="font-semibold text-sea">Firstmate is busy right now · I’ll pass this on</p> <p class="mt-0.5">${escape_html(visual.note)}</p></div></div>`);
1396
+ } else if (visual.kind === "cards") {
1397
+ $$renderer2.push(`<!--[1--><!--[-->`);
1398
+ const each_array = ensure_array_like(visual.cards);
1399
+ for (let i = 0, $$length = each_array.length; i < $$length; i++) {
1400
+ let card = each_array[i];
1401
+ const task = card.kind === "task" ? find(card.task) : null;
1402
+ if (task?.preview) {
1403
+ $$renderer2.push("<!--[0-->");
1404
+ ChatPreview($$renderer2, {
1405
+ preview: {
1406
+ task,
1407
+ url: task.preview.url,
1408
+ board: false,
1409
+ landed: task.status === "landed"
1410
+ },
1411
+ project: projectName(task.projectId),
1412
+ now
1413
+ });
1414
+ } else {
1415
+ $$renderer2.push(`<!--[-1--><div class="w-full max-w-[min(100%,40rem)] overflow-hidden rounded-xl border border-hair bg-card text-sm"${attr("data-live-card", card.kind)}><header class="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 px-4 pt-2.5 pb-2">`);
1416
+ if (card.kind === "task") {
1417
+ $$renderer2.push(`<!--[0--><span${attr_class(`rounded px-1.5 text-xs leading-[1.15rem] font-medium ${task?.status === "landed" ? "bg-success/10 text-success" : task?.status === "blocked" ? "bg-danger/10 text-danger" : "bg-sea/10 text-sea"}`)}>${escape_html(task?.statusLabel ?? "Task")}</span> `);
1418
+ if (task && projectName(task.projectId)) {
1419
+ $$renderer2.push(`<!--[0--><span class="rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]">${escape_html(projectName(task.projectId))}</span>`);
1420
+ } else {
1421
+ $$renderer2.push("<!--[-1-->");
1422
+ }
1423
+ $$renderer2.push(`<!--]--> `);
1424
+ if (task) {
1425
+ $$renderer2.push(`<!--[0--><a${attr("href", `/tasks/${stringify(encodeURIComponent(task.id))}`)} class="min-w-0 truncate font-medium hover:underline">${escape_html(task.shortTitle)}</a>`);
1426
+ } else {
1427
+ $$renderer2.push(`<!--[-1--><span class="font-mono text-xs text-muted-foreground">${escape_html(card.task)}</span>`);
1428
+ }
1429
+ $$renderer2.push(`<!--]-->`);
1430
+ } else if (card.kind === "pr") {
1431
+ $$renderer2.push(`<!--[1--><span class="flex items-center gap-1 rounded bg-sea/10 px-1.5 text-xs leading-[1.15rem] font-medium text-sea">`);
1432
+ Git_pull_request($$renderer2, { class: "size-3", "aria-hidden": "true" });
1433
+ $$renderer2.push(`<!---->Pull request</span> <span class="min-w-0 truncate font-medium">${escape_html(card.title ?? `#${prNumber(card.url) ?? ""}`)}</span>`);
1434
+ } else {
1435
+ $$renderer2.push(`<!--[-1--><span class="rounded bg-muted px-1.5 text-xs leading-[1.15rem] font-medium text-muted-foreground">Link</span> <span class="min-w-0 truncate font-medium">${escape_html(card.title ?? card.url)}</span>`);
1436
+ }
1437
+ $$renderer2.push(`<!--]--></header> `);
1438
+ if (card.kind === "task" && task?.summary) {
1439
+ $$renderer2.push(`<!--[0--><p class="border-t border-hair px-4 py-2.5 text-muted-foreground">${escape_html(task.summary)}</p>`);
1440
+ } else if (card.kind === "task" && !task) {
1441
+ $$renderer2.push(`<!--[1--><p class="border-t border-hair px-4 py-2.5 text-muted-foreground">Not in the fleet right now.</p>`);
1442
+ } else if (card.kind === "link" && card.note) {
1443
+ $$renderer2.push(`<!--[2--><p class="border-t border-hair px-4 py-2.5 text-muted-foreground">${escape_html(card.note)}</p>`);
1444
+ } else {
1445
+ $$renderer2.push("<!--[-1-->");
1446
+ }
1447
+ $$renderer2.push(`<!--]--> <footer class="flex flex-wrap items-center gap-x-3 gap-y-1 border-t border-hair px-4 py-2 text-xs">`);
1448
+ if (card.kind === "task" && task?.pr) {
1449
+ $$renderer2.push(`<!--[0--><a${attr("href", task.pr.url)} target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 text-sea hover:underline">`);
1450
+ Git_pull_request($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1451
+ $$renderer2.push(`<!---->Pull request #${escape_html(task.pr.number)}</a>`);
1452
+ } else if (card.kind === "pr") {
1453
+ $$renderer2.push(`<!--[1--><a${attr("href", card.url)} target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 text-sea hover:underline">`);
1454
+ External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1455
+ $$renderer2.push(`<!---->${escape_html(repo(card.url) ?? "Open")}${escape_html(prNumber(card.url) ? `#${prNumber(card.url)}` : "")}</a>`);
1456
+ } else if (card.kind === "link") {
1457
+ $$renderer2.push(`<!--[2--><a${attr("href", card.url)} target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 text-sea hover:underline">`);
1458
+ External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1459
+ $$renderer2.push(`<!---->${escape_html(URL.parse(card.url)?.host ?? card.url)}</a>`);
1460
+ } else {
1461
+ $$renderer2.push("<!--[-1-->");
1462
+ }
1463
+ $$renderer2.push(`<!--]--> `);
1464
+ if (card.kind === "task") {
1465
+ $$renderer2.push(`<!--[0--><span class="font-mono text-muted-foreground">${escape_html(card.task)}</span>`);
1466
+ } else {
1467
+ $$renderer2.push("<!--[-1-->");
1468
+ }
1469
+ $$renderer2.push(`<!--]--></footer></div>`);
1470
+ }
1471
+ $$renderer2.push(`<!--]-->`);
1472
+ }
1473
+ $$renderer2.push(`<!--]-->`);
1474
+ } else if (visual.kind === "invalid") {
1475
+ $$renderer2.push(`<!--[2--><p class="text-xs text-muted-foreground" data-live-invalid="">${escape_html(visual.reason)}</p>`);
1476
+ } else {
1477
+ $$renderer2.push("<!--[-1-->");
1478
+ const [label, Icon2] = KIND[visual.kind];
1479
+ $$renderer2.push(`<figure class="w-full max-w-[min(100%,44rem)] overflow-hidden rounded-xl border border-hair bg-card"${attr("data-live-visual", visual.kind)}><header class="flex min-w-0 items-center gap-2 px-4 pt-2.5 pb-2 text-sm"><span class="flex shrink-0 items-center gap-1 rounded bg-sea/10 px-1.5 text-xs leading-[1.15rem] font-medium text-sea">`);
1480
+ if (Icon2) {
1481
+ $$renderer2.push("<!--[-->");
1482
+ Icon2($$renderer2, { class: "size-3", "aria-hidden": "true" });
1483
+ $$renderer2.push("<!--]-->");
1484
+ } else {
1485
+ $$renderer2.push("<!--[!-->");
1486
+ $$renderer2.push("<!--]-->");
1487
+ }
1488
+ $$renderer2.push(`${escape_html(label)}</span> <span class="min-w-0 truncate font-medium">${escape_html(title())}</span></header> <div class="border-y border-hair bg-panel">`);
1489
+ if (visual.kind === "chart") {
1490
+ $$renderer2.push(`<!--[0--><div class="relative h-64 p-3"><canvas${attr("aria-label", title())}></canvas></div>`);
1491
+ } else {
1492
+ $$renderer2.push(`<!--[2--><p class="flex items-center gap-2 px-4 py-5 text-sm text-muted-foreground" role="status">`);
1493
+ Audio_lines($$renderer2, {
1494
+ class: "size-4 animate-pulse text-sea",
1495
+ "aria-hidden": "true"
1496
+ });
1497
+ $$renderer2.push(`<!---->${escape_html(visual.kind === "picture" ? "The illustrator is drawing it (about twenty seconds)…" : "Drawing…")}</p>`);
1498
+ }
1499
+ $$renderer2.push(`<!--]--></div> <footer class="flex items-center gap-3 px-4 py-2 text-xs text-muted-foreground"><span>From the discussion crew</span> `);
1500
+ if (visual.kind === "chart") {
1501
+ $$renderer2.push(`<!--[0--><button class="ml-auto inline-flex cursor-pointer items-center gap-1 hover:text-foreground hover:underline">`);
1502
+ Maximize_2($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1503
+ $$renderer2.push(`<!---->Full size</button>`);
1504
+ } else {
1505
+ $$renderer2.push("<!--[-1-->");
1506
+ }
1507
+ $$renderer2.push(`<!--]--></footer></figure> <dialog class="m-auto h-[88vh] w-[92vw] max-w-none rounded-xl border bg-panel p-0 text-foreground backdrop:bg-black/60"><div class="flex items-center gap-2 border-b px-4 py-3 text-sm"><span class="font-medium">${escape_html(title())}</span> <button class="ml-auto flex size-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Close">`);
1508
+ X($$renderer2, { class: "size-4" });
1509
+ $$renderer2.push(`<!----></button></div> <div class="flex h-[calc(88vh-3.5rem)] items-center justify-center overflow-auto p-6">`);
1510
+ {
1511
+ $$renderer2.push("<!--[-1-->");
1512
+ }
1513
+ $$renderer2.push(`<!--]--></div></dialog>`);
1514
+ }
1515
+ $$renderer2.push(`<!--]-->`);
1516
+ });
1517
+ }
1518
+ function LiveEntries($$renderer, $$props) {
1519
+ $$renderer.component(($$renderer2) => {
1520
+ let { tasks, now, projectName } = $$props;
1521
+ const time2 = (iso) => new Date(iso).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: false });
1522
+ let fixing = null;
1523
+ let fixText = "";
1524
+ function parts(r) {
1525
+ let off = 0;
1526
+ let block = 0;
1527
+ return parseReply(r.text).map((p) => {
1528
+ if (p.type === "prose") {
1529
+ const start = off;
1530
+ off += p.text.length + 1;
1531
+ return { ...p, start };
1532
+ }
1533
+ return { ...p, start: -1, index: p.closed ? block++ : -1 };
1534
+ });
1535
+ }
1536
+ const speaking = (r) => liveCall.state === "speaking" && r.spoken < r.queued;
1537
+ let sending = null;
1538
+ $$renderer2.push(`<!--[-->`);
1539
+ const each_array = ensure_array_like(liveCall.entries);
1540
+ for (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {
1541
+ let e = each_array[$$index_2];
1542
+ if (e.kind === "notice") {
1543
+ $$renderer2.push(`<!--[0--><p class="flex items-center justify-center gap-2 text-center text-xs text-muted-foreground" data-live-notice="">`);
1544
+ Audio_lines($$renderer2, { class: "size-3.5 shrink-0 text-sea", "aria-hidden": "true" });
1545
+ $$renderer2.push(`<!---->${escape_html(e.text)}</p>`);
1546
+ } else if (e.kind === "captain") {
1547
+ $$renderer2.push(`<!--[1--><article class="msg msg-captain"${attr("aria-label", `You, ${stringify(time2(e.at))}`)}${attr("data-live-captain", e.pending ? "pending" : "sent")}><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="msg-name">You</span><time${attr("datetime", e.at)}>${escape_html(time2(e.at))}</time> <span class="rounded border border-sea/50 px-1 font-mono text-[0.65rem] tracking-wider text-sea">LIVE</span> `);
1548
+ if (e.how === "typed" || e.how === "fixed") {
1549
+ $$renderer2.push(`<!--[0--><span class="rounded border px-1 font-mono text-[0.65rem] tracking-wider">${escape_html(e.how.toUpperCase())}</span>`);
1550
+ } else {
1551
+ $$renderer2.push("<!--[-1-->");
1552
+ }
1553
+ $$renderer2.push(`<!--]--></header> `);
1554
+ if (fixing === e.id) {
1555
+ $$renderer2.push(`<!--[0--><form class="flex w-full max-w-[min(85%,62ch)] gap-2"><input class="min-w-0 flex-1 rounded-md border border-sea bg-card px-3 py-1.5 text-sm"${attr("value", fixText)} aria-label="What you said"/> <button class="cursor-pointer rounded-md bg-sea px-3 text-sm font-medium text-on-accent">Send fix</button></form>`);
1556
+ } else {
1557
+ $$renderer2.push(`<!--[-1--><div${attr_class(`bubble bubble-captain ${e.pending ? "border-dashed opacity-60" : ""}`)}>${escape_html(e.text)}</div> `);
1558
+ if (!e.pending && e.how !== "typed") {
1559
+ $$renderer2.push(`<!--[0--><button class="mt-1 cursor-pointer text-xs text-muted-foreground underline underline-offset-2 hover:text-foreground">Fix what I said</button>`);
1560
+ } else {
1561
+ $$renderer2.push("<!--[-1-->");
1562
+ }
1563
+ $$renderer2.push(`<!--]-->`);
1564
+ }
1565
+ $$renderer2.push(`<!--]--></div></article>`);
1566
+ } else {
1567
+ $$renderer2.push(`<!--[-1--><article class="msg msg-firstmate"${attr("aria-label", `Discussion crew, ${stringify(time2(e.at))}`)} data-live-crew=""><span class="flex size-8 shrink-0 items-center justify-center rounded-full border-[1.5px] border-brass bg-sea/10 text-sea">`);
1568
+ Audio_lines($$renderer2, { class: "size-4", "aria-hidden": "true" });
1569
+ $$renderer2.push(`<!----></span> <div class="flex min-w-0 flex-1 flex-col items-start gap-2"><header class="msg-head"><span class="msg-name">Discussion crew</span><time${attr("datetime", e.at)}>${escape_html(time2(e.at))}</time> <span class="rounded border border-sea/50 px-1 font-mono text-[0.65rem] tracking-wider text-sea">LIVE</span></header> `);
1570
+ if (e.kind === "writing") {
1571
+ $$renderer2.push(`<!--[0--><p class="flex items-center gap-2 text-sm text-muted-foreground" role="status">`);
1572
+ Loader_circle($$renderer2, { class: "size-4 animate-spin", "aria-hidden": "true" });
1573
+ $$renderer2.push(`<!---->Writing the Captain’s
1574
+ briefing for Firstmate…</p>`);
1575
+ } else if (e.kind === "brief") {
1576
+ $$renderer2.push("<!--[1-->");
1577
+ if (e.briefing) {
1578
+ $$renderer2.push(`<!--[0--><div class="w-full max-w-[min(100%,44rem)] overflow-hidden rounded-xl border border-sea/45 bg-card" data-live-brief=""><div class="flex items-center gap-2 border-b border-sea/25 bg-sea/10 px-4 py-2.5 text-sm font-semibold text-sea">`);
1579
+ File_text($$renderer2, { class: "size-4", "aria-hidden": "true" });
1580
+ $$renderer2.push(`<!---->Captain’s briefing · for Firstmate <span class="ml-auto font-mono text-[0.7rem] font-normal">${escape_html(e.minutes)} min</span></div> <div class="chat-md bg-paper px-5 py-4 font-reading text-ink">${html(markdown(e.briefing))}</div> <div class="flex items-center gap-3 border-t border-hair px-4 py-2.5"><span class="text-xs text-muted-foreground">${escape_html(e.sent ? "Sent to Firstmate." : "Read it over, then send it to Firstmate as your message.")}</span> <button class="ml-auto inline-flex cursor-pointer items-center gap-2 rounded-md bg-sea px-3 py-1.5 text-sm font-medium text-on-accent disabled:cursor-default disabled:opacity-50"${attr("disabled", e.sent || sending === e.id, true)}>`);
1581
+ Send($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
1582
+ $$renderer2.push(`<!---->${escape_html(e.sent ? "Sent" : "Send to Firstmate")}</button></div></div>`);
1583
+ } else {
1584
+ $$renderer2.push(`<!--[-1--><div class="bubble bubble-firstmate">Nothing was discussed, so there is no briefing to hand over.</div>`);
1585
+ }
1586
+ $$renderer2.push(`<!--]--> <p class="text-xs text-muted-foreground" data-live-catchup="">`);
1587
+ if (e.catchUp.length) {
1588
+ $$renderer2.push(`<!--[0-->While you talked: <!--[-->`);
1589
+ const each_array_1 = ensure_array_like(e.catchUp);
1590
+ for (let i = 0, $$length2 = each_array_1.length; i < $$length2; i++) {
1591
+ let c = each_array_1[i];
1592
+ $$renderer2.push(`<!---->${escape_html(i ? " · " : "")}<b class="font-medium text-foreground">${escape_html(c.title || c.task)}</b> ${escape_html(c.text)}`);
1593
+ }
1594
+ $$renderer2.push(`<!--]-->`);
1595
+ } else {
1596
+ $$renderer2.push(`<!--[-1-->While you talked (${escape_html(e.minutes)} min), nothing changed state. Firstmate is still on watch:
1597
+ ${escape_html(e.fleet.live)} under way, ${escape_html(e.fleet.decisions)} decision${escape_html(e.fleet.decisions === 1 ? "" : "s")} open.`);
1598
+ }
1599
+ $$renderer2.push(`<!--]--></p>`);
1600
+ } else if (e.kind === "crew") {
1601
+ $$renderer2.push(`<!--[2--><!--[-->`);
1602
+ const each_array_2 = ensure_array_like(parts(e));
1603
+ for (let i = 0, $$length2 = each_array_2.length; i < $$length2; i++) {
1604
+ let p = each_array_2[i];
1605
+ if (p.type === "prose") {
1606
+ $$renderer2.push("<!--[0-->");
1607
+ const shown = e.interrupted ? p.text.slice(0, Math.max(0, e.spoken - p.start)) : p.text;
1608
+ if (shown.trim()) {
1609
+ $$renderer2.push("<!--[0-->");
1610
+ if (speaking(e) || e.streaming) {
1611
+ $$renderer2.push("<!--[0-->");
1612
+ const lit = Math.max(0, Math.min(shown.length, e.spoken - p.start));
1613
+ $$renderer2.push(`<div class="bubble bubble-firstmate border-sea/30">${escape_html(shown.slice(0, lit))}<span class="text-muted-foreground">${escape_html(shown.slice(lit))}</span></div>`);
1614
+ } else {
1615
+ $$renderer2.push(`<!--[-1--><div class="chat-md bubble bubble-firstmate border-sea/30">${html(markdown(shown.trim()))}</div>`);
1616
+ }
1617
+ $$renderer2.push(`<!--]-->`);
1618
+ } else {
1619
+ $$renderer2.push("<!--[-1-->");
1620
+ }
1621
+ $$renderer2.push(`<!--]-->`);
1622
+ } else if ("index" in p && p.index >= 0 && e.visuals[p.index]) {
1623
+ $$renderer2.push("<!--[1-->");
1624
+ LiveVisual($$renderer2, { visual: e.visuals[p.index], tasks, now, projectName });
1625
+ } else if (!e.interrupted) {
1626
+ $$renderer2.push(`<!--[2--><p class="flex items-center gap-2 text-sm text-muted-foreground">`);
1627
+ Loader_circle($$renderer2, { class: "size-4 animate-spin", "aria-hidden": "true" });
1628
+ $$renderer2.push(`<!---->Putting something up…</p>`);
1629
+ } else {
1630
+ $$renderer2.push("<!--[-1-->");
1631
+ }
1632
+ $$renderer2.push(`<!--]-->`);
1633
+ }
1634
+ $$renderer2.push(`<!--]--> `);
1635
+ if (!e.text && e.streaming) {
1636
+ $$renderer2.push(`<!--[0--><div class="flex gap-1 py-2" role="status" aria-label="The discussion crew is thinking"><span class="size-1.5 animate-bounce rounded-full bg-sea [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-sea [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-sea"></span></div>`);
1637
+ } else {
1638
+ $$renderer2.push("<!--[-1-->");
1639
+ }
1640
+ $$renderer2.push(`<!--]--> `);
1641
+ if (e.interrupted) {
1642
+ $$renderer2.push(`<!--[0--><span class="worked-for w-full">Interrupted</span>`);
1643
+ } else {
1644
+ $$renderer2.push("<!--[-1-->");
1645
+ }
1646
+ $$renderer2.push(`<!--]-->`);
1647
+ } else {
1648
+ $$renderer2.push("<!--[-1-->");
1649
+ }
1650
+ $$renderer2.push(`<!--]--></div></article>`);
1651
+ }
1652
+ $$renderer2.push(`<!--]-->`);
1653
+ }
1654
+ $$renderer2.push(`<!--]-->`);
1655
+ });
1656
+ }
1657
+ const TOO_LARGE = `Too large · ${UPLOAD_MAX_BYTES / (1024 * 1024)} MB at most`;
1658
+ class Attachments {
1659
+ drafts = [];
1660
+ /** Files dropped on the chat, for the composer to take. */
1661
+ dropped = [];
1662
+ inflight = /* @__PURE__ */ new Map();
1663
+ /** Add files and start uploading them. `pasted`: from the clipboard, so an image under the browser's generic name gets a readable one. */
1664
+ add(files, token, pasted = false) {
1665
+ for (const f of files) {
1666
+ const generic = pasted && isImage(f.type) && /^image\.\w+$/.test(f.name);
1667
+ const name = generic || !f.name ? pastedName(f.type) : f.name;
1668
+ this.drafts.push({
1669
+ id: crypto.randomUUID(),
1670
+ name,
1671
+ size: f.size,
1672
+ type: f.type,
1673
+ preview: isImage(f.type) ? URL.createObjectURL(f) : null,
1674
+ state: "uploading",
1675
+ progress: 0,
1676
+ error: null,
1677
+ upload: null
1678
+ });
1679
+ const d = this.drafts[this.drafts.length - 1];
1680
+ if (f.size > UPLOAD_MAX_BYTES) this.fail(d, TOO_LARGE);
1681
+ else if (f.size === 0) this.fail(d, "Empty file");
1682
+ else this.send(d, f, token);
1683
+ }
1684
+ }
1685
+ remove(id) {
1686
+ this.inflight.get(id)?.abort();
1687
+ this.inflight.delete(id);
1688
+ const d = this.drafts.find((x) => x.id === id);
1689
+ if (d?.preview) URL.revokeObjectURL(d.preview);
1690
+ this.drafts = this.drafts.filter((x) => x.id !== id);
1691
+ }
1692
+ /** The uploaded files, handed to the message; failed ones stay listed. */
1693
+ take() {
1694
+ const ready = this.drafts.filter((d) => d.state === "ready" && d.upload);
1695
+ for (const d of ready) if (d.preview) URL.revokeObjectURL(d.preview);
1696
+ this.drafts = this.drafts.filter((d) => !ready.includes(d));
1697
+ return ready.map((d) => d.upload);
1698
+ }
1699
+ get uploading() {
1700
+ return this.drafts.some((d) => d.state === "uploading");
1701
+ }
1702
+ get ready() {
1703
+ return this.drafts.some((d) => d.state === "ready");
1704
+ }
1705
+ fail(d, error) {
1706
+ d.state = "failed";
1707
+ d.error = error;
1708
+ }
1709
+ send(d, file, token) {
1710
+ const xhr = new XMLHttpRequest();
1711
+ this.inflight.set(d.id, xhr);
1712
+ xhr.open("POST", "/api/firstmate/uploads");
1713
+ xhr.setRequestHeader(SESSION_HEADER, token);
1714
+ xhr.setRequestHeader(NAME_HEADER, encodeURIComponent(d.name));
1715
+ xhr.setRequestHeader(TYPE_HEADER, file.type);
1716
+ xhr.setRequestHeader("content-type", "application/octet-stream");
1717
+ xhr.upload.onprogress = (e) => {
1718
+ if (e.lengthComputable) d.progress = e.loaded / e.total;
1719
+ };
1720
+ xhr.onload = () => {
1721
+ this.inflight.delete(d.id);
1722
+ let body = {};
1723
+ try {
1724
+ body = JSON.parse(xhr.responseText);
1725
+ } catch {
1726
+ }
1727
+ if (xhr.status === 201 && typeof body.path === "string") {
1728
+ d.upload = {
1729
+ path: body.path,
1730
+ name: body.name ?? d.name,
1731
+ size: body.size ?? d.size,
1732
+ type: body.type ?? ""
1733
+ };
1734
+ d.progress = 1;
1735
+ d.state = "ready";
1736
+ } else if (xhr.status === 413) this.fail(d, TOO_LARGE);
1737
+ else this.fail(d, body.message ?? `Not uploaded · Wheelhouse answered ${xhr.status}`);
1738
+ };
1739
+ xhr.onerror = () => {
1740
+ this.inflight.delete(d.id);
1741
+ this.fail(d, "Could not reach the Wheelhouse server");
1742
+ };
1743
+ xhr.send(file);
1744
+ }
1745
+ }
1746
+ const attachments = new Attachments();
1747
+ function SentFiles($$renderer, $$props) {
1748
+ $$renderer.component(($$renderer2) => {
1749
+ let { files, pending = false } = $$props;
1750
+ let broken = {};
1751
+ const thumb = (a) => broken[a.path] ? null : thumbUrl(a);
1752
+ const images = derived(() => files.filter((a) => thumb(a)));
1753
+ let open = null;
1754
+ let $$settled = true;
1755
+ let $$inner_renderer;
1756
+ function $$render_inner($$renderer3) {
1757
+ $$renderer3.push(`<div${attr_class(`mt-1.5 w-full max-w-[min(85%,62ch)] min-w-0 rounded-lg border border-hair bg-card px-3 py-2 sm:min-w-72 ${pending ? "border-dashed opacity-60" : ""}`)} data-sent-files=""><p class="mb-0.5 text-[0.8rem] font-semibold tracking-[0.08em] text-muted-foreground" style="font-variant-caps: all-small-caps">${escape_html(files.length === 1 ? "1 file attached" : `${files.length} files attached`)}</p> <ul class="flex flex-col divide-y divide-hair"><!--[-->`);
1758
+ const each_array = ensure_array_like(files);
1759
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
1760
+ let a = each_array[$$index];
1761
+ const src = thumb(a);
1762
+ $$renderer3.push(`<li class="flex items-center gap-2.5 py-1.5 text-sm">`);
1763
+ if (src) {
1764
+ $$renderer3.push(`<!--[0--><button type="button" class="shrink-0 cursor-zoom-in rounded"${attr("aria-label", `Enlarge ${stringify(a.name)}`)}><img${attr("src", src)} alt="" loading="lazy" class="size-10 rounded border border-hair bg-muted object-cover" onerror="this.__e=event"/></button>`);
1765
+ } else {
1766
+ $$renderer3.push(`<!--[-1--><span class="flex size-10 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
1767
+ File_text($$renderer3, { class: "size-4" });
1768
+ $$renderer3.push(`<!----></span>`);
1769
+ }
1770
+ $$renderer3.push(`<!--]--> <span class="min-w-0 truncate font-medium"${attr("title", a.name)}>${escape_html(a.name)}</span> <span class="ml-auto shrink-0 pl-2 text-xs text-muted-foreground">${escape_html(kindLabel(a))} · ${escape_html(fileSize(a.size))}</span></li>`);
1771
+ }
1772
+ $$renderer3.push(`<!--]--></ul></div> `);
1773
+ if (images().length) {
1774
+ $$renderer3.push("<!--[0-->");
1775
+ Lightbox($$renderer3, {
1776
+ shots: images().map((a) => ({ name: a.name, url: thumb(a) ?? "" })),
1777
+ get index() {
1778
+ return open;
1779
+ },
1780
+ set index($$value) {
1781
+ open = $$value;
1782
+ $$settled = false;
1783
+ }
1784
+ });
1785
+ } else {
1786
+ $$renderer3.push("<!--[-1-->");
1787
+ }
1788
+ $$renderer3.push(`<!--]-->`);
1789
+ }
1790
+ do {
1791
+ $$settled = true;
1792
+ $$inner_renderer = $$renderer2.copy();
1793
+ $$render_inner($$inner_renderer);
1794
+ } while (!$$settled);
1795
+ $$renderer2.subsume($$inner_renderer);
1796
+ });
1797
+ }
1798
+ const headOf = (c) => ({
1799
+ cardId: c.id,
1800
+ taskId: c.taskId,
1801
+ taskTitle: c.taskTitle,
1802
+ projectId: c.projectId,
1803
+ kind: c.kind,
1804
+ key: c.key,
1805
+ question: c.title,
1806
+ askedAt: c.askedAt,
1807
+ secondMate: c.secondMate ?? null
1808
+ });
1809
+ function chatDecisions(cards, answered, local, opened = /* @__PURE__ */ new Set()) {
1810
+ const out = [];
1811
+ const shown = /* @__PURE__ */ new Set();
1812
+ for (const c of cards) {
1813
+ const head2 = headOf(c);
1814
+ const mine = local[c.id]?.question === c.question ? local[c.id] : null;
1815
+ const taken = c.sent && c.sent.delivery !== "failed" ? c.sent : null;
1816
+ if (!escalated(c) && !opened.has(c.id) && !mine && !taken) continue;
1817
+ if (mine && !(mine.posted && taken)) {
1818
+ out.push({
1819
+ id: c.id,
1820
+ head: head2,
1821
+ card: c,
1822
+ answer: {
1823
+ choice: mine.choice,
1824
+ label: choiceLabel(c, mine.choice),
1825
+ picks: mine.picks,
1826
+ note: mine.note,
1827
+ at: null,
1828
+ delivery: mine.posted ? null : "sending"
1829
+ }
1830
+ });
1831
+ } else if (taken) {
1832
+ shown.add(taken.requestId);
1833
+ out.push({
1834
+ id: c.id,
1835
+ head: head2,
1836
+ card: c,
1837
+ answer: {
1838
+ choice: taken.choice,
1839
+ label: choiceLabel(c, taken.choice),
1840
+ picks: taken.picks,
1841
+ note: taken.note,
1842
+ at: taken.at,
1843
+ delivery: taken.delivery
1844
+ }
1845
+ });
1846
+ } else {
1847
+ out.push({ id: c.id, head: head2, card: c, answer: null });
1848
+ }
1849
+ }
1850
+ const open = new Map(out.map((d) => [d.id, d]));
1851
+ for (const a of answered) {
1852
+ if (shown.has(a.requestId) || a.delivery === "failed") continue;
1853
+ if (open.get(a.cardId)?.head.question === a.question) continue;
1854
+ out.push({
1855
+ id: `answer:${a.requestId}`,
1856
+ head: {
1857
+ cardId: a.cardId,
1858
+ taskId: a.taskId,
1859
+ taskTitle: a.taskTitle,
1860
+ projectId: a.projectId,
1861
+ kind: a.kind,
1862
+ key: a.key,
1863
+ question: a.question,
1864
+ askedAt: a.askedAt
1865
+ },
1866
+ card: null,
1867
+ answer: {
1868
+ choice: a.choice,
1869
+ label: a.label,
1870
+ picks: a.picks,
1871
+ note: a.note,
1872
+ at: a.answeredAt,
1873
+ delivery: a.delivery
1874
+ }
1875
+ });
1876
+ }
1877
+ return out;
1878
+ }
1879
+ function decisionFor(id, decisions) {
1880
+ if (!id) return null;
1881
+ const held = decisions.filter((d) => d.head.kind === "hold");
1882
+ const named = (d) => d.head.taskId === id || d.head.key === id;
1883
+ return held.find((d) => d.card && named(d)) ?? held.findLast(named) ?? null;
1884
+ }
1885
+ const time = (s) => {
1886
+ const t = s ? Date.parse(s) : NaN;
1887
+ return Number.isNaN(t) ? null : t;
1888
+ };
1889
+ const placeAt = (d) => time(d.head.askedAt) ?? time(d.answer?.at);
1890
+ function placeDecisions(items, decisions) {
1891
+ const before = /* @__PURE__ */ new Map();
1892
+ const end = [];
1893
+ const times = items.map((it) => time(it.at));
1894
+ const first = times.find((t) => t !== null) ?? null;
1895
+ const sorted = decisions.map((d) => ({ d, at: placeAt(d) })).sort((a, b) => (a.at ?? Infinity) - (b.at ?? Infinity) || a.d.id.localeCompare(b.d.id));
1896
+ for (const { d, at } of sorted) {
1897
+ if (at === null) {
1898
+ end.push(d);
1899
+ continue;
1900
+ }
1901
+ if (d.answer && !d.card && (first === null || at < first)) continue;
1902
+ const i = times.findIndex((t) => t !== null && t > at);
1903
+ if (i < 0) end.push(d);
1904
+ else before.set(i, [...before.get(i) ?? [], d]);
1905
+ }
1906
+ return { before, end };
1907
+ }
1908
+ const QUOTED = /^> About the decision on ([^\s()]+) \(key ([^\s()]+)\), not an answer yet: “(.*)”\n(?:> [^\n]*\n)*\n([\s\S]+)$/;
1909
+ const cardIdOf = (ref) => `${ref.taskId}:${ref.key}`;
1910
+ function parseDiscuss(text) {
1911
+ const m = text.replace(/\r\n?/g, "\n").match(QUOTED);
1912
+ if (!m || !m[4].trim()) return null;
1913
+ return { cardId: cardIdOf({ taskId: m[1], key: m[2] }), question: m[3], body: m[4].trim() };
1914
+ }
1915
+ function refinedForm(thread, question) {
1916
+ const quoted = snippetOf(question);
1917
+ const msgs = thread?.messages ?? [];
1918
+ for (let i = msgs.length - 1; i >= 0; i--) {
1919
+ const m = msgs[i];
1920
+ const f = m.who === "firstmate" && m.question === quoted ? formIn(m.text) : null;
1921
+ if (f) return { id: m.id, form: f };
1922
+ }
1923
+ return null;
1924
+ }
1925
+ function byQuestion(thread, question) {
1926
+ const quoted = snippetOf(question);
1927
+ const earlier = [];
1928
+ const current = [];
1929
+ for (const m of thread?.messages ?? []) {
1930
+ if (m.question === quoted) {
1931
+ current.push(m);
1932
+ continue;
1933
+ }
1934
+ const last = earlier.at(-1);
1935
+ if (last?.question === m.question) last.messages.push(m);
1936
+ else earlier.push({ question: m.question, messages: [m] });
1937
+ }
1938
+ return { earlier, current };
1939
+ }
1940
+ function threads(items, cards) {
1941
+ const byCard = /* @__PURE__ */ new Map();
1942
+ const hidden = /* @__PURE__ */ new Set();
1943
+ for (let i = 0; i < items.length; i++) {
1944
+ const it = items[i];
1945
+ if (it.kind !== "user") continue;
1946
+ const d = parseDiscuss(it.text);
1947
+ if (!d || !cards.has(d.cardId)) continue;
1948
+ const thread = byCard.get(d.cardId) ?? { messages: [], answering: false };
1949
+ byCard.set(d.cardId, thread);
1950
+ thread.messages.push({
1951
+ id: it.id,
1952
+ who: "captain",
1953
+ text: d.body,
1954
+ at: it.at,
1955
+ question: d.question
1956
+ });
1957
+ thread.answering = false;
1958
+ hidden.add(it.id);
1959
+ const next = items[i + 1];
1960
+ if (next?.kind !== "turn" || next.trigger !== "captain") continue;
1961
+ if (next.parts.some((p) => p.kind === "question")) continue;
1962
+ hidden.add(next.id);
1963
+ for (const p of next.parts) {
1964
+ if (p.kind === "text")
1965
+ thread.messages.push({
1966
+ id: p.id,
1967
+ who: "firstmate",
1968
+ text: p.text,
1969
+ at: next.at,
1970
+ question: d.question
1971
+ });
1972
+ }
1973
+ thread.answering = !next.done && !next.interrupted;
1974
+ i++;
1975
+ }
1976
+ return { byCard, hidden };
1977
+ }
1978
+ function pendingThreads(pending) {
1979
+ const out = /* @__PURE__ */ new Map();
1980
+ for (const p of pending) {
1981
+ const d = parseDiscuss(p.text);
1982
+ if (!d) continue;
1983
+ out.set(d.cardId, [...out.get(d.cardId) ?? [], { pending: p, body: d.body }]);
1984
+ }
1985
+ return out;
1986
+ }
1987
+ const BRIEFING_MIN_CHARS = 500;
1988
+ function isBriefing(text) {
1989
+ if (!text || text.length < BRIEFING_MIN_CHARS) return false;
1990
+ const prose = text.replace(
1991
+ /^ {0,3}(`{3,}|~{3,})[^\n]*\n[\s\S]*?(?:^ {0,3}\1[`~]*[ \t]*$|(?![\s\S]))/gm,
1992
+ ""
1993
+ );
1994
+ return /^\s{0,3}(?:[-*+]|\d+[.)]|#{1,4})\s+\S/m.test(prose);
1995
+ }
1996
+ const BLOCK$1 = /```decision-form[^\n]*\n[\s\S]*?(?:```|$)/g;
1997
+ const ANSWER = /^Decided( \(other\))?: (.+?)(?: — for: “(.+)”)?$/;
1998
+ const DISMISSED = /^Dismissed(?: — for: “(.+)”)?$/;
1999
+ const tidy = (s) => s.replace(/\s+/g, " ").trim();
2000
+ function formAtEnd(text) {
2001
+ const blocks = [...text.matchAll(BLOCK$1)];
2002
+ const last = blocks[blocks.length - 1];
2003
+ if (!last || text.slice(last.index + last[0].length).trim()) return null;
2004
+ const form = formIn(text);
2005
+ return form && { form, words: text.slice(0, last.index).trim(), id: formIdIn(text) };
2006
+ }
2007
+ function answerText(form, a, note) {
2008
+ const words2 = tidy(a.decided ?? "").slice(0, DECIDED_MAX);
2009
+ if (!words2) return "";
2010
+ const question = tidy(form.prompt ?? "");
2011
+ const line = question ? `Decided: ${words2} — for: “${question}”` : `Decided${a.other ? " (other)" : ""}: ${words2}`;
2012
+ const more = note?.trim();
2013
+ return more ? `${line}
2014
+
2015
+ ${more}` : line;
2016
+ }
2017
+ function dismissText(form, reason) {
2018
+ const question = tidy(form.prompt ?? "");
2019
+ const line = question ? `Dismissed — for: “${question}”` : "Dismissed";
2020
+ const why = tidy(reason ?? "");
2021
+ return why ? `${line}
2022
+
2023
+ Reason: ${why}` : line;
2024
+ }
2025
+ function parseAnswer(text) {
2026
+ const lines = text.replace(/\r\n?/g, "\n").trim().split("\n");
2027
+ const d = DISMISSED.exec(lines[0]);
2028
+ if (d) {
2029
+ const why = lines.slice(1).find((l) => l.startsWith("Reason: "));
2030
+ return {
2031
+ words: "",
2032
+ question: d[1] ? tidy(d[1]) : null,
2033
+ other: false,
2034
+ dismissed: why ? tidy(why.slice("Reason: ".length)) : ""
2035
+ };
2036
+ }
2037
+ const m = ANSWER.exec(lines[0]);
2038
+ const words2 = m ? tidy(m[2]) : "";
2039
+ return words2 ? { words: words2, question: m?.[3] ? tidy(m[3]) : null, other: !!m?.[1], dismissed: null } : null;
2040
+ }
2041
+ const fits = (form, a) => a.other || a.dismissed !== null || form.kind === "text" || form.kind !== "picks" && form.options.some((o) => o.answer.decided === a.words);
2042
+ function chatForms(items, hidden, pending = [], inbox2 = []) {
2043
+ const said = [];
2044
+ const note = (m) => ({
2045
+ id: null,
2046
+ text: m.text,
2047
+ item: null,
2048
+ failed: m.delivery === "failed"
2049
+ });
2050
+ let n = 0;
2051
+ for (const it of items) {
2052
+ const at = Date.parse(it.at);
2053
+ while (n < inbox2.length && Date.parse(inbox2[n].submittedAt) < at) said.push(note(inbox2[n++]));
2054
+ if (hidden.has(it.id)) continue;
2055
+ said.push({ id: it.id, text: it.kind === "user" ? it.text : null, item: it, failed: false });
2056
+ }
2057
+ for (const m of inbox2.slice(n)) said.push(note(m));
2058
+ const shown = /* @__PURE__ */ new Set();
2059
+ const unshown = pending.filter((p) => {
2060
+ const from = said.findIndex((x) => x.id !== null && x.id === p.after);
2061
+ const echo = said.findIndex(
2062
+ (x, i) => i > from && !shown.has(i) && x.text !== null && tidy(x.text) === tidy(p.text)
2063
+ );
2064
+ if (echo < 0) return true;
2065
+ shown.add(echo);
2066
+ return false;
2067
+ });
2068
+ const out = /* @__PURE__ */ new Map();
2069
+ const asked = [];
2070
+ const waiting = (f) => f.decided === null && f.dismissed === null;
2071
+ const answer = (text) => {
2072
+ const a = parseAnswer(text);
2073
+ if (!a) return;
2074
+ const to = a.question ? asked.findLast((f) => waiting(f) && tidy(f.form.prompt ?? "") === a.question) : asked.at(-1);
2075
+ if (!to || !waiting(to) || !(a.question || fits(to.form, a))) return;
2076
+ if (a.dismissed !== null) to.dismissed = a.dismissed;
2077
+ else to.decided = a.words;
2078
+ };
2079
+ for (const { text, item, failed } of said) {
2080
+ if (text !== null && !failed) answer(text);
2081
+ if (item?.kind !== "turn") continue;
2082
+ for (const p of item.parts) {
2083
+ const reply = p.kind === "text" ? formAtEnd(p.text) : null;
2084
+ if (!reply) continue;
2085
+ const f = { ...reply, decided: null, dismissed: null, active: false };
2086
+ out.set(p.id, f);
2087
+ asked.push(f);
2088
+ }
2089
+ }
2090
+ for (const p of unshown) answer(p.text);
2091
+ const seen = /* @__PURE__ */ new Set();
2092
+ for (const f of asked.toReversed()) {
2093
+ const key = f.form.prompt ? tidy(f.form.prompt) : null;
2094
+ f.active = waiting(f) && (key === null ? f === asked.at(-1) : !seen.has(key));
2095
+ if (key !== null) seen.add(key);
2096
+ }
2097
+ return out;
2098
+ }
2099
+ const PURPOSE_MAX = 300;
2100
+ const PROJECTS_MAX = 20;
2101
+ const BLOCK = /^```vault-request[ \t]*\r?\n([\s\S]*?)\r?\n?```[ \t]*$/gm;
2102
+ const STORED = /^Stored secret ([A-Za-z_][A-Za-z0-9_]{0,127}) in the vault\.(?: |$)/;
2103
+ function parseRequest(body) {
2104
+ const fields = /* @__PURE__ */ new Map();
2105
+ for (const raw of body.split(/\r?\n/)) {
2106
+ const line = raw.trim();
2107
+ if (!line) continue;
2108
+ const m = /^([a-z]+)\s*:\s*(.*)$/i.exec(line);
2109
+ if (!m) return null;
2110
+ const key = m[1].toLowerCase();
2111
+ if (!["name", "purpose", "projects"].includes(key) || fields.has(key)) return null;
2112
+ fields.set(key, m[2].trim());
2113
+ }
2114
+ const name = fields.get("name") ?? "";
2115
+ if (!SECRET_NAME.test(name)) return null;
2116
+ const purpose = fields.get("purpose") ?? "";
2117
+ if (purpose.length > PURPOSE_MAX) return null;
2118
+ const projects = [
2119
+ ...new Set(
2120
+ (fields.get("projects") ?? "").split(/[\s,]+/).map((p) => p.trim()).filter(Boolean)
2121
+ )
2122
+ ];
2123
+ if (projects.length > PROJECTS_MAX || !projects.every((p) => PROJECT_ID.test(p))) return null;
2124
+ return { name, purpose, projects };
2125
+ }
2126
+ function vaultRequests(text) {
2127
+ if (!text.includes("```vault-request")) return { words: text, requests: [] };
2128
+ const requests = [];
2129
+ const words2 = text.replace(BLOCK, (block, body) => {
2130
+ const r = parseRequest(body);
2131
+ if (!r) return block;
2132
+ requests.push(r);
2133
+ return "";
2134
+ });
2135
+ return requests.length ? { words: words2.replace(/\n{3,}/g, "\n\n").trim(), requests } : { words: text, requests };
2136
+ }
2137
+ function storedText(name, projects) {
2138
+ const who = projects.length ? `${andList(projects)} can use it.` : "No project can use it yet.";
2139
+ return `Stored secret ${name} in the vault. ${who}`;
2140
+ }
2141
+ function parseStored(text) {
2142
+ return STORED.exec(text.trim())?.[1] ?? null;
2143
+ }
2144
+ function vaultAsks(items, pending = [], inbox2 = []) {
2145
+ const out = /* @__PURE__ */ new Map();
2146
+ const asked = [];
2147
+ const stored = (text, at = Infinity) => {
2148
+ const name = parseStored(text);
2149
+ if (!name) return;
2150
+ for (const [a, when] of asked) if (a.request.name === name && when < at) a.stored = true;
2151
+ };
2152
+ for (const it of items) {
2153
+ if (it.kind === "user") stored(it.text);
2154
+ if (it.kind !== "turn") continue;
2155
+ const at = Date.parse(it.at);
2156
+ for (const p of it.parts) {
2157
+ if (p.kind !== "text") continue;
2158
+ const { requests } = vaultRequests(p.text);
2159
+ if (!requests.length) continue;
2160
+ const asks = requests.map((request) => ({ request, stored: false }));
2161
+ out.set(p.id, asks);
2162
+ asked.push(...asks.map((a) => [a, at]));
2163
+ }
2164
+ }
2165
+ for (const m of inbox2) {
2166
+ if (m.delivery !== "failed") stored(m.text, Date.parse(m.submittedAt));
2167
+ }
2168
+ for (const p of pending) stored(p.text);
2169
+ return out;
2170
+ }
2171
+ const KEY$1 = "wheelhouse-chat-tags";
2172
+ const FOLD_KEY = "wheelhouse-chat-fold";
2173
+ const MAX = 1e3;
2174
+ class ChatTags {
2175
+ retags = {};
2176
+ fold = false;
2177
+ loaded = false;
2178
+ load() {
2179
+ if (this.loaded) return;
2180
+ this.loaded = true;
2181
+ try {
2182
+ const v = JSON.parse(localStorage.getItem(KEY$1) ?? "{}");
2183
+ if (v && typeof v === "object" && !Array.isArray(v)) this.retags = Object.fromEntries(Object.entries(v).filter((e) => typeof e[1] === "string"));
2184
+ this.fold = localStorage.getItem(FOLD_KEY) === "1";
2185
+ } catch {
2186
+ this.retags = {};
2187
+ }
2188
+ }
2189
+ /** Moves a message or card to a thread. */
2190
+ move(key, topic) {
2191
+ this.load();
2192
+ const next = { ...this.retags };
2193
+ delete next[key];
2194
+ next[key] = topic;
2195
+ const keys = Object.keys(next);
2196
+ for (const k of keys.slice(0, Math.max(0, keys.length - MAX))) delete next[k];
2197
+ this.retags = next;
2198
+ try {
2199
+ localStorage.setItem(KEY$1, JSON.stringify(next));
2200
+ } catch {
2201
+ }
2202
+ }
2203
+ setFold(on) {
2204
+ this.fold = on;
2205
+ try {
2206
+ localStorage.setItem(FOLD_KEY, on ? "1" : "0");
2207
+ } catch {
2208
+ }
2209
+ }
2210
+ }
2211
+ const chatTags = new ChatTags();
2212
+ const KEY = "wheelhouse-chat-decisions";
2213
+ class OpenedDecisions {
2214
+ ids = [];
2215
+ loaded = false;
2216
+ load() {
2217
+ if (this.loaded) return;
2218
+ this.loaded = true;
2219
+ try {
2220
+ const v = JSON.parse(localStorage.getItem(KEY) ?? "[]");
2221
+ if (Array.isArray(v)) this.ids = v.filter((x) => typeof x === "string");
2222
+ } catch {
2223
+ this.ids = [];
2224
+ }
2225
+ }
2226
+ add(id) {
2227
+ this.load();
2228
+ if (this.ids.includes(id)) return;
2229
+ this.ids = [...this.ids, id].slice(-50);
2230
+ try {
2231
+ localStorage.setItem(KEY, JSON.stringify(this.ids));
2232
+ } catch {
2233
+ }
2234
+ }
2235
+ }
2236
+ const openedDecisions = new OpenedDecisions();
2237
+ const ENDPOINT = "/api/firstmate/reactions";
2238
+ const ids = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string") : null;
2239
+ class Reactions {
2240
+ liked = [];
2241
+ seq = 0;
2242
+ /** Reads the marks from the server again. */
2243
+ async refresh() {
2244
+ const n = ++this.seq;
2245
+ try {
2246
+ const res = await fetch(ENDPOINT);
2247
+ const v = res.ok ? ids((await res.json()).liked) : null;
2248
+ if (v && n === this.seq) this.liked = v;
2249
+ } catch {
2250
+ }
2251
+ }
2252
+ has(id) {
2253
+ return this.liked.includes(id);
2254
+ }
2255
+ /**
2256
+ * Marks or unmarks a message at once and has the server keep it; a refused
2257
+ * change is undone. True only when the server newly marked it.
2258
+ */
2259
+ async set(id, on, token) {
2260
+ this.mark(id, on);
2261
+ const n = ++this.seq;
2262
+ try {
2263
+ const res = await fetch(ENDPOINT, {
2264
+ method: "POST",
2265
+ headers: { "content-type": "application/json", [SESSION_HEADER]: token },
2266
+ body: JSON.stringify({ id, on })
2267
+ });
2268
+ if (res.ok) {
2269
+ const data = await res.json().catch(() => null);
2270
+ const v = ids(data?.liked);
2271
+ if (v && n === this.seq) this.liked = v;
2272
+ return on && data?.changed === true;
2273
+ }
2274
+ } catch {
2275
+ }
2276
+ if (n === this.seq) this.mark(id, !on);
2277
+ return false;
2278
+ }
2279
+ mark(id, on) {
2280
+ const rest = this.liked.filter((x) => x !== id);
2281
+ this.liked = on ? [...rest, id] : rest;
2282
+ }
2283
+ /** Forgets the marks shown, as a fresh page does (for tests). */
2284
+ reset() {
2285
+ this.seq++;
2286
+ this.liked = [];
2287
+ }
2288
+ }
2289
+ const reactions = new Reactions();
2290
+ const composerBus = { decision: null };
2291
+ function Avatar($$renderer, $$props) {
2292
+ let { class: className = "" } = $$props;
2293
+ const SPOKES = [0, 45, 90, 135, 180, 225, 270, 315];
2294
+ $$renderer.push(`<svg viewBox="0 0 32 32"${attr_class(`shrink-0 ${stringify(className)}`)} role="img" aria-label="Firstmate" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="15.25" class="fill-primary stroke-brass" stroke-width="1.5"></circle><g class="fill-none stroke-primary-foreground" stroke-linecap="round"><circle cx="16" cy="16" r="7" stroke-width="1.6"></circle><!--[-->`);
2295
+ const each_array = ensure_array_like(SPOKES);
2296
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
2297
+ let a = each_array[$$index];
2298
+ $$renderer.push(`<line x1="16" y1="12.4" x2="16" y2="5.6" stroke-width="1.3"${attr("transform", `rotate(${stringify(a)} 16 16)`)}></line>`);
2299
+ }
2300
+ $$renderer.push(`<!--]--></g><circle cx="16" cy="16" r="2.4" class="fill-primary-foreground"></circle><!--[-->`);
2301
+ const each_array_1 = ensure_array_like(SPOKES);
2302
+ for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
2303
+ let a = each_array_1[$$index_1];
2304
+ $$renderer.push(`<circle cx="16" cy="5.2" r="1.3" class="fill-primary-foreground"${attr("transform", `rotate(${stringify(a)} 16 16)`)}></circle>`);
2305
+ }
2306
+ $$renderer.push(`<!--]--></svg>`);
2307
+ }
2308
+ function ChatApp($$renderer, $$props) {
2309
+ $$renderer.component(($$renderer2) => {
2310
+ let {
2311
+ id,
2312
+ app,
2313
+ open = true
2314
+ /** Whether the app is drawn: expanded unless the captain collapsed it. */
2315
+ } = $$props;
2316
+ const MAX_HEIGHT = 480;
2317
+ $$renderer2.push(`<div class="max-w-[80ch] rounded-xl border bg-card"${attr("data-chat-app", id)}><button class="flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-xl px-4 py-2.5 text-left text-sm transition-colors hover:bg-muted/60"${attr("aria-expanded", open)}>`);
2318
+ App_window($$renderer2, {
2319
+ class: "size-4 shrink-0 text-muted-foreground",
2320
+ "aria-hidden": "true"
2321
+ });
2322
+ $$renderer2.push(`<!----> <span class="shrink-0 font-medium">${escape_html(app.title)}</span> <span class="min-w-0 truncate text-muted-foreground">· an app from ${escape_html(app.server.title)}</span> <span class="ml-auto shrink-0 text-xs text-muted-foreground">${escape_html(open ? "Collapse" : "Expand")}</span> `);
2323
+ Chevron_right($$renderer2, {
2324
+ class: `size-3.5 shrink-0 text-muted-foreground transition-transform ${open ? "rotate-90" : ""}`,
2325
+ "aria-hidden": "true"
2326
+ });
2327
+ $$renderer2.push(`<!----></button> `);
2328
+ if (open) {
2329
+ $$renderer2.push(`<!--[0--><div class="border-t px-4 pt-3 pb-3">`);
2330
+ AppFrame($$renderer2, {
2331
+ ref: {},
2332
+ title: app.title,
2333
+ plugin: app.plugin,
2334
+ maxHeight: MAX_HEIGHT
2335
+ });
2336
+ $$renderer2.push(`<!----></div>`);
2337
+ } else {
2338
+ $$renderer2.push("<!--[-1-->");
2339
+ }
2340
+ $$renderer2.push(`<!--]--></div>`);
2341
+ bind_props($$props, { open });
2342
+ });
2343
+ }
2344
+ function ChatDecision($$renderer, $$props) {
2345
+ $$renderer.component(($$renderer2) => {
2346
+ let {
2347
+ decision,
2348
+ project = null,
2349
+ now,
2350
+ thread = null,
2351
+ pending = [],
2352
+ asked = null
2353
+ } = $$props;
2354
+ const KIND = {
2355
+ review: "Review question",
2356
+ decision: "Decision",
2357
+ blocked: "Stuck",
2358
+ hold: "Your call",
2359
+ merge: "Merge call",
2360
+ preview: "Preview sign-off"
2361
+ };
2362
+ const head2 = derived(() => decision.head);
2363
+ const answer = derived(() => decision.answer);
2364
+ const count = derived(() => (thread?.messages.length ?? 0) + pending.length);
2365
+ const open = derived(() => count() > 0 && (!answer() && pending.length > 0));
2366
+ let expanded = false;
2367
+ let dismissing = false;
2368
+ const card = derived(() => decision.card);
2369
+ const token = derived(() => page.data.sessionToken ?? "");
2370
+ const canAnswer = derived(() => inbox.view(page.data.inbox)?.canAnswer ?? false);
2371
+ const refined = derived(() => refinedForm(thread, head2().question));
2372
+ const parts = derived(() => byQuestion(thread, head2().question));
2373
+ const plain = (s) => (s ?? "").replace(/[\s?.:]+$/, "").trim().toLowerCase();
2374
+ const form = derived(() => {
2375
+ const f = refined()?.form ?? asked ?? (card() ? cardForm(card()) : null);
2376
+ return f && f.prompt && plain(f.prompt) === plain(head2().question) ? { ...f, prompt: null } : f;
2377
+ });
2378
+ const decided = derived(() => answer() ? decidedLabel(cardForm(card() ?? { kind: head2().kind, choices: null, recommendation: null }), answer()) : "");
2379
+ const prLink = derived(() => card()?.evidence.pr ? pullRequests.review(card().projectId, card().evidence.pr) : null);
2380
+ const quiet = "inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50 max-md:min-h-11 sm:min-h-9";
2381
+ const time2 = (at) => at ? new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : "";
2382
+ const delivered = derived(() => !answer() ? "" : answer().delivery === "sending" ? "Sending to Firstmate…" : answer().delivery === "delivered" ? "Firstmate has it and passes it on" : answer().delivery === "failed" ? "Firstmate did not take it" : answer().delivery === "uncertain" ? "Sent; Firstmate has not confirmed it yet" : "Sent to Firstmate");
2383
+ function message($$renderer3, m, current) {
2384
+ $$renderer3.push(`<li class="flex gap-2.5">`);
2385
+ if (m.who === "firstmate") {
2386
+ $$renderer3.push("<!--[0-->");
2387
+ Avatar($$renderer3, { class: "mt-0.5 size-5" });
2388
+ } else {
2389
+ $$renderer3.push(`<!--[-1--><span class="captain-avatar mt-0.5 !size-5 !text-[0.7rem]">C</span>`);
2390
+ }
2391
+ $$renderer3.push(`<!--]--> <div class="min-w-0 flex-1"><p class="text-xs text-muted-foreground"><span class="font-medium text-foreground">${escape_html(m.who === "firstmate" ? "Firstmate" : "You")}</span>`);
2392
+ if (m.at) {
2393
+ $$renderer3.push(`<!--[0-->· ${escape_html(time2(m.at))}`);
2394
+ } else {
2395
+ $$renderer3.push("<!--[-1-->");
2396
+ }
2397
+ $$renderer3.push(`<!--]--></p> `);
2398
+ if (m.who === "firstmate") {
2399
+ $$renderer3.push(`<!--[0--><div class="chat-md mt-0.5 text-sm">${html(markdown(withoutForm(m.text), { docLinks: true }))}</div> `);
2400
+ if (current && formIn(m.text)) {
2401
+ $$renderer3.push(`<!--[0--><p class="mt-0.5 text-xs text-muted-foreground">Firstmate updated the options above.</p>`);
2402
+ } else {
2403
+ $$renderer3.push("<!--[-1-->");
2404
+ }
2405
+ $$renderer3.push(`<!--]-->`);
2406
+ } else {
2407
+ $$renderer3.push(`<!--[-1--><p class="mt-0.5 text-sm leading-relaxed whitespace-pre-line">${escape_html(m.text)}</p>`);
2408
+ }
2409
+ $$renderer3.push(`<!--]--></div></li>`);
2410
+ }
2411
+ function talk($$renderer3) {
2412
+ if (count()) {
2413
+ $$renderer3.push(`<!--[0--><button${attr_class(`inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50 max-md:min-h-11 sm:min-h-9 ${open() ? "bg-accent text-foreground" : ""}`)}${attr("aria-expanded", open())} title="What you and Firstmate said about it under this card before" data-discuss="">`);
2414
+ Messages_square($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
2415
+ $$renderer3.push(`<!---->Earlier talk<span class="text-xs tabular-nums">· ${escape_html(count())}</span></button>`);
2416
+ } else {
2417
+ $$renderer3.push("<!--[-1-->");
2418
+ }
2419
+ $$renderer3.push(`<!--]-->`);
2420
+ }
2421
+ $$renderer2.push(`<div class="flex w-full max-w-[min(100%,40rem)] scroll-mt-24 flex-col"${attr("data-chat-decision", decision.id)}>`);
2422
+ if (card() && form() && !answer()) {
2423
+ $$renderer2.push("<!--[0-->");
2424
+ const mine = escalated(card());
2425
+ const following = !!card().following;
2426
+ $$renderer2.push(`<article${attr_class(`rounded-lg border border-l-[3px] bg-card px-4 pt-3.5 pb-3 sm:px-5 ${following ? "border-l-sea/50" : mine ? "border-l-sea" : "border-l-brass"}`)}${attr("data-open-decision", card().owner)}${attr("data-following", following || void 0)}><header class="flex flex-wrap items-center gap-x-2 gap-y-1">`);
2427
+ if (project) {
2428
+ $$renderer2.push(`<!--[0--><span class="rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]">${escape_html(project)}</span>`);
2429
+ } else {
2430
+ $$renderer2.push("<!--[-1-->");
2431
+ }
2432
+ $$renderer2.push(`<!--]--> `);
2433
+ if (following) {
2434
+ $$renderer2.push(`<!--[0--><span class="flex items-center gap-1 rounded bg-muted px-1.5 text-xs leading-[1.15rem] font-medium text-sea">`);
2435
+ Messages_square($$renderer2, { class: "size-3", "aria-hidden": "true" });
2436
+ $$renderer2.push(`<!---->Following up</span>`);
2437
+ } else {
2438
+ $$renderer2.push(`<!--[-1--><span${attr_class(`flex items-center gap-1 rounded px-1.5 text-xs leading-[1.15rem] font-medium ${mine ? "bg-sea/10 text-sea" : "bg-muted text-foreground/80"}`)}>`);
2439
+ Hand($$renderer2, { class: "size-3", "aria-hidden": "true" });
2440
+ $$renderer2.push(`<!---->${escape_html(KIND[card().kind])}</span>`);
2441
+ }
2442
+ $$renderer2.push(`<!--]--> <span class="text-xs text-muted-foreground">${escape_html(following ? "Following up with Firstmate separately" : mine ? "Waiting on you" : "Firstmate is handling it; yours to take over")}</span> `);
2443
+ if (card().askedAt) {
2444
+ $$renderer2.push(`<!--[0--><span class="ml-auto text-xs text-muted-foreground tabular-nums">${escape_html(ago(card().askedAt, now))}</span>`);
2445
+ } else {
2446
+ $$renderer2.push("<!--[-1-->");
2447
+ }
2448
+ $$renderer2.push(`<!--]--></header> <h3 class="mt-2 font-sans text-base leading-snug font-medium sm:text-[1.05rem]">`);
2449
+ LinkedText($$renderer2, { text: head2().question });
2450
+ $$renderer2.push(`<!----></h3> `);
2451
+ if (cardContext(card())) {
2452
+ $$renderer2.push(`<!--[0--><p class="mt-0.5 line-clamp-3 text-sm leading-snug text-muted-foreground" data-context="">`);
2453
+ LinkedText($$renderer2, { text: cardContext(card()) ?? "" });
2454
+ $$renderer2.push(`<!----></p>`);
2455
+ } else {
2456
+ $$renderer2.push("<!--[-1-->");
2457
+ }
2458
+ $$renderer2.push(`<!--]--> <p class="mt-0.5 text-xs text-muted-foreground">${escape_html(head2().taskTitle)}</p> `);
2459
+ DecisionLinks($$renderer2, { card: card() });
2460
+ $$renderer2.push(`<!----> `);
2461
+ if (card().recommendation) {
2462
+ $$renderer2.push(`<!--[0--><p class="mt-2.5 border-l-2 border-brass pl-2.5 text-sm leading-snug"><span class="font-medium">Firstmate recommends</span><span class="text-muted-foreground">· `);
2463
+ LinkedText($$renderer2, { text: card().recommendation.text });
2464
+ $$renderer2.push(`<!----></span></p>`);
2465
+ } else {
2466
+ $$renderer2.push("<!--[-1-->");
2467
+ }
2468
+ $$renderer2.push(`<!--]--> `);
2469
+ if (refined()) {
2470
+ $$renderer2.push(`<!--[0--><p class="mt-3 flex items-center gap-1.5 text-xs text-muted-foreground" data-refined="">`);
2471
+ Refresh_cw($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2472
+ $$renderer2.push(`<!---->Firstmate changed the options after your
2473
+ question.</p>`);
2474
+ } else {
2475
+ $$renderer2.push("<!--[-1-->");
2476
+ }
2477
+ $$renderer2.push(`<!--]--> <!---->`);
2478
+ {
2479
+ DecisionForm($$renderer2, {
2480
+ form: form(),
2481
+ name: decision.id,
2482
+ canAnswer: canAnswer(),
2483
+ onAnswer: (a, note) => answerWith(card(), a, note, token())
2484
+ });
2485
+ }
2486
+ $$renderer2.push(`<!----> `);
2487
+ if (card().sent?.delivery === "failed" && !inbox.errors[card().id]) {
2488
+ $$renderer2.push(`<!--[0--><p class="mt-2 text-sm text-danger" role="alert">Not delivered to Firstmate: ${escape_html(card().sent.picks ?? choiceLabel(card(), card().sent.choice))}. ${escape_html(card().sent.detail ?? "Try again.")}</p>`);
2489
+ } else {
2490
+ $$renderer2.push("<!--[-1-->");
2491
+ }
2492
+ $$renderer2.push(`<!--]--> `);
2493
+ if (inbox.errors[card().id]) {
2494
+ $$renderer2.push(`<!--[0--><p class="mt-2 text-sm text-danger" role="alert">${escape_html(inbox.errors[card().id])}</p>`);
2495
+ } else {
2496
+ $$renderer2.push("<!--[-1-->");
2497
+ }
2498
+ $$renderer2.push(`<!--]--> <div class="mt-2.5 flex flex-wrap items-center gap-1.5 border-t border-hair/70 pt-2"><a${attr("href", chatAboutHref(card()))}${attr_class(clsx(quiet))} title="Start a message to Firstmate about this; it waits as following up meanwhile" data-chat-about="">`);
2499
+ Message_square($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2500
+ $$renderer2.push(`<!---->Chat with Firstmate about this</a> `);
2501
+ if (following) {
2502
+ $$renderer2.push(`<!--[0--><button${attr_class(clsx(quiet))} title="It waits on you again, and counts as waiting" data-unfollow="">`);
2503
+ Undo_2($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2504
+ $$renderer2.push(`<!---->Back to waiting</button>`);
2505
+ } else {
2506
+ $$renderer2.push("<!--[-1-->");
2507
+ }
2508
+ $$renderer2.push(`<!--]--> `);
2509
+ talk($$renderer2);
2510
+ $$renderer2.push(`<!----> `);
2511
+ if (prLink()) {
2512
+ $$renderer2.push(`<!--[0--><a${attr_class(clsx(quiet))}${attr("href", prLink().href)}${attr("target", prLink().external ? "_blank" : void 0)}${attr("rel", prLink().external ? "noreferrer" : void 0)} title="Open the pull request to review it; this answers nothing" data-review-pr="">`);
2513
+ Compass($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2514
+ $$renderer2.push(`<!---->Review`);
2515
+ if (prLink().external) {
2516
+ $$renderer2.push("<!--[0-->");
2517
+ External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2518
+ } else {
2519
+ $$renderer2.push("<!--[-1-->");
2520
+ }
2521
+ $$renderer2.push(`<!--]--></a>`);
2522
+ } else {
2523
+ $$renderer2.push("<!--[-1-->");
2524
+ }
2525
+ $$renderer2.push(`<!--]--> <button class="inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50 max-md:min-h-11 sm:min-h-9 ml-auto"${attr("disabled", !canAnswer(), true)}${attr("aria-expanded", dismissing)} title="No answer needed: Firstmate records it closed, with your reason" data-dismiss="">`);
2526
+ X($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2527
+ $$renderer2.push(`<!---->Dismiss</button></div> `);
2528
+ {
2529
+ $$renderer2.push("<!--[-1-->");
2530
+ }
2531
+ $$renderer2.push(`<!--]--> `);
2532
+ DecisionDetails($$renderer2, { card: card(), expanded, onToggle: () => expanded = !expanded });
2533
+ $$renderer2.push(`<!----></article>`);
2534
+ } else if (answer()) {
2535
+ $$renderer2.push("<!--[1-->");
2536
+ const closed = answer().choice === "close";
2537
+ $$renderer2.push(`<article${attr_class(`rounded-lg border border-l-[3px] bg-card px-4 pt-3 pb-2 sm:px-5 ${closed ? "border-l-hair" : "border-l-success/70"}`)}${attr("data-answered", closed ? "dismissed" : "answered")}><header class="flex flex-wrap items-center gap-x-2 gap-y-1">`);
2538
+ if (project) {
2539
+ $$renderer2.push(`<!--[0--><span class="rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]">${escape_html(project)}</span>`);
2540
+ } else {
2541
+ $$renderer2.push("<!--[-1-->");
2542
+ }
2543
+ $$renderer2.push(`<!--]--> <span class="rounded bg-muted px-1.5 text-xs leading-[1.15rem] font-medium text-foreground/80">${escape_html(KIND[head2().kind])}</span> `);
2544
+ if (closed) {
2545
+ $$renderer2.push(`<!--[0--><span class="flex items-center gap-1 text-xs text-muted-foreground">`);
2546
+ Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2547
+ $$renderer2.push(`<!---->Dismissed</span>`);
2548
+ } else {
2549
+ $$renderer2.push(`<!--[-1--><span class="flex items-center gap-1 text-xs text-success">`);
2550
+ Circle_check($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2551
+ $$renderer2.push(`<!---->Answered</span>`);
2552
+ }
2553
+ $$renderer2.push(`<!--]--> `);
2554
+ if (answer().at) {
2555
+ $$renderer2.push(`<!--[0--><span class="ml-auto text-xs text-muted-foreground tabular-nums">${escape_html(ago(answer().at, now))}</span>`);
2556
+ } else {
2557
+ $$renderer2.push("<!--[-1-->");
2558
+ }
2559
+ $$renderer2.push(`<!--]--></header> <p class="mt-1.5 text-sm leading-snug text-muted-foreground">${escape_html(head2().question)}</p> <a${attr("href", cardTaskHref(head2()))} class="block text-xs text-muted-foreground hover:text-foreground hover:underline">${escape_html(head2().taskTitle)}</a> <p class="mt-1.5 text-sm leading-snug" data-decided="">`);
2560
+ if (closed) {
2561
+ $$renderer2.push(`<!--[0-->You dismissed it without an answer`);
2562
+ } else {
2563
+ $$renderer2.push(`<!--[-1-->You decided <span class="font-semibold">${escape_html(decided())}</span>`);
2564
+ }
2565
+ $$renderer2.push(`<!--]--></p> `);
2566
+ if (answer().note) {
2567
+ $$renderer2.push(`<!--[0--><p class="mt-1 border-l-2 border-hair pl-2.5 text-sm whitespace-pre-line text-muted-foreground">${escape_html(closed ? `Why: ${answer().note}` : answer().note)}</p>`);
2568
+ } else {
2569
+ $$renderer2.push("<!--[-1-->");
2570
+ }
2571
+ $$renderer2.push(`<!--]--> <div class="mt-1 flex flex-wrap items-center gap-2 text-xs text-muted-foreground"><span role="status" class="inline-flex items-center gap-1">`);
2572
+ if (answer().delivery === "sending") {
2573
+ $$renderer2.push("<!--[0-->");
2574
+ Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
2575
+ } else {
2576
+ $$renderer2.push("<!--[-1-->");
2577
+ }
2578
+ $$renderer2.push(`<!--]-->${escape_html(delivered())}${escape_html(answer().at ? ` · ${time2(answer().at)}` : "")}</span> <span class="ml-auto">`);
2579
+ talk($$renderer2);
2580
+ $$renderer2.push(`<!----></span></div></article>`);
2581
+ } else {
2582
+ $$renderer2.push("<!--[-1-->");
2583
+ }
2584
+ $$renderer2.push(`<!--]--> `);
2585
+ if (open()) {
2586
+ $$renderer2.push(`<!--[0--><div class="mt-1 ml-4 border-l-2 border-hair pt-2 pl-4" role="region" aria-label="What was said about this question before" data-discussion="">`);
2587
+ if (thread?.messages.length || pending.length) {
2588
+ $$renderer2.push(`<!--[0--><ul class="flex flex-col gap-3 pb-1"><!--[-->`);
2589
+ const each_array = ensure_array_like(parts().earlier);
2590
+ for (let i = 0, $$length = each_array.length; i < $$length; i++) {
2591
+ let e = each_array[i];
2592
+ $$renderer2.push(`<li><details data-earlier=""><summary class="cursor-pointer text-xs text-muted-foreground hover:text-foreground">Earlier question: “${escape_html(e.question)}”</summary> <ul class="mt-2 flex flex-col gap-3 border-b border-hair/70 pb-3"><!--[-->`);
2593
+ const each_array_1 = ensure_array_like(e.messages);
2594
+ for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {
2595
+ let m = each_array_1[$$index];
2596
+ message($$renderer2, m, false);
2597
+ }
2598
+ $$renderer2.push(`<!--]--></ul></details></li>`);
2599
+ }
2600
+ $$renderer2.push(`<!--]--> <!--[-->`);
2601
+ const each_array_2 = ensure_array_like(parts().current);
2602
+ for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
2603
+ let m = each_array_2[$$index_2];
2604
+ message($$renderer2, m, true);
2605
+ }
2606
+ $$renderer2.push(`<!--]--> <!--[-->`);
2607
+ const each_array_3 = ensure_array_like(pending);
2608
+ for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
2609
+ let p = each_array_3[$$index_3];
2610
+ $$renderer2.push(`<li class="flex gap-2.5"${attr("data-pending", p.pending.state)}><span class="captain-avatar mt-0.5 !size-5 !text-[0.7rem]">C</span> <div class="min-w-0 flex-1"><p class="text-sm leading-relaxed whitespace-pre-line opacity-60">${escape_html(p.body)}</p> <p${attr_class(`mt-0.5 flex flex-wrap items-center gap-1.5 text-xs ${p.pending.state === "failed" ? "text-danger" : "text-muted-foreground"}`)} role="status">`);
2611
+ if (p.pending.state === "failed") {
2612
+ $$renderer2.push("<!--[0-->");
2613
+ Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2614
+ $$renderer2.push(`<!---->${escape_html(pendingLabel(p.pending))} <button class="ml-1 inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-muted">`);
2615
+ Rotate_cw($$renderer2, { class: "size-3", "aria-hidden": "true" });
2616
+ $$renderer2.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
2617
+ } else {
2618
+ $$renderer2.push("<!--[-1-->");
2619
+ Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
2620
+ $$renderer2.push(`<!---->${escape_html(pendingLabel(p.pending))}`);
2621
+ }
2622
+ $$renderer2.push(`<!--]--></p></div></li>`);
2623
+ }
2624
+ $$renderer2.push(`<!--]--></ul>`);
2625
+ } else {
2626
+ $$renderer2.push(`<!--[-1--><p class="text-xs text-muted-foreground">Nothing was said about it here.</p>`);
2627
+ }
2628
+ $$renderer2.push(`<!--]--> `);
2629
+ if (thread?.answering) {
2630
+ $$renderer2.push(`<!--[0--><div class="flex gap-1 py-2 pl-7" role="status" aria-label="Firstmate is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></div>`);
2631
+ } else {
2632
+ $$renderer2.push("<!--[-1-->");
2633
+ }
2634
+ $$renderer2.push(`<!--]--></div>`);
2635
+ } else {
2636
+ $$renderer2.push("<!--[-1-->");
2637
+ }
2638
+ $$renderer2.push(`<!--]--></div>`);
2639
+ });
2640
+ }
2641
+ function FeedbackBatch($$renderer, $$props) {
2642
+ $$renderer.component(($$renderer2) => {
2643
+ let { batch, project = null } = $$props;
2644
+ const time2 = (at) => new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
2645
+ const settled = derived(() => batch.status.startsWith("Firstmate has it"));
2646
+ const waiting = derived(() => !batch.failed && !settled() && batch.status !== "Sent to Firstmate");
2647
+ const from = derived(() => batch.batch.plugin);
2648
+ const label = derived(() => from() ? `${from().name} feedback` : "preview feedback");
2649
+ $$renderer2.push(`<article class="msg msg-captain"${attr("aria-label", `Your ${label()}, ${stringify(time2(batch.at))}`)} data-feedback-batch=""><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="msg-name">You</span><time${attr("datetime", batch.at)}>${escape_html(time2(batch.at))}</time></header> <div class="w-full max-w-[34rem] rounded-lg border border-l-[3px] border-l-sea bg-card px-4 py-3 text-left"><header class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="flex items-center gap-1 rounded bg-sea/10 px-1.5 text-xs leading-[1.15rem] font-medium text-sea">`);
2650
+ if (from()) {
2651
+ $$renderer2.push("<!--[0-->");
2652
+ Puzzle($$renderer2, { class: "size-3", "aria-hidden": "true" });
2653
+ } else {
2654
+ $$renderer2.push("<!--[-1-->");
2655
+ Monitor_play($$renderer2, { class: "size-3", "aria-hidden": "true" });
2656
+ }
2657
+ $$renderer2.push(`<!--]-->To Firstmate · ${escape_html(label())}</span> `);
2658
+ if (project) {
2659
+ $$renderer2.push(`<!--[0--><span class="rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]">${escape_html(project)}</span>`);
2660
+ } else {
2661
+ $$renderer2.push("<!--[-1-->");
2662
+ }
2663
+ $$renderer2.push(`<!--]--></header> <a${attr("href", `/tasks/${stringify(encodeURIComponent(batch.batch.taskId))}${from() ? "" : "?tab=preview"}`)} class="mt-1.5 block text-sm font-medium hover:underline">${escape_html(batch.batch.title)}</a> `);
2664
+ if (from()?.subject) {
2665
+ $$renderer2.push(`<!--[0--><p class="mt-0.5 text-xs text-muted-foreground">About ${escape_html(from().subject)}</p>`);
2666
+ } else {
2667
+ $$renderer2.push("<!--[-1-->");
2668
+ }
2669
+ $$renderer2.push(`<!--]--> <ol class="mt-2 list-decimal space-y-1.5 pl-5 text-sm leading-snug"><!--[-->`);
2670
+ const each_array = ensure_array_like(batch.batch.items);
2671
+ for (let i = 0, $$length = each_array.length; i < $$length; i++) {
2672
+ let it = each_array[i];
2673
+ $$renderer2.push(`<li>${escape_html(it.text)} `);
2674
+ if (it.points) {
2675
+ $$renderer2.push(`<!--[0--><span class="mt-0.5 block text-xs text-muted-foreground">Points at ${escape_html(it.points)}</span>`);
2676
+ } else {
2677
+ $$renderer2.push("<!--[-1-->");
2678
+ }
2679
+ $$renderer2.push(`<!--]--></li>`);
2680
+ }
2681
+ $$renderer2.push(`<!--]--></ol> <p${attr_class(`mt-2.5 flex items-center gap-1.5 text-xs ${batch.failed ? "text-danger" : "text-muted-foreground"}`)} role="status">`);
2682
+ if (batch.failed) {
2683
+ $$renderer2.push("<!--[0-->");
2684
+ Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
2685
+ } else if (waiting()) {
2686
+ $$renderer2.push("<!--[1-->");
2687
+ Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
2688
+ } else {
2689
+ $$renderer2.push("<!--[-1-->");
2690
+ Circle_check($$renderer2, { class: "size-3.5 text-success", "aria-hidden": "true" });
2691
+ }
2692
+ $$renderer2.push(`<!--]-->${escape_html(batch.status)}</p> `);
2693
+ if (batch.reply) {
2694
+ $$renderer2.push(`<!--[0--><p class="mt-2 rounded-md bg-muted px-3 py-2 text-sm leading-relaxed whitespace-pre-line"><span class="font-medium">Firstmate:</span> ${escape_html(batch.reply)}</p>`);
2695
+ } else {
2696
+ $$renderer2.push("<!--[-1-->");
2697
+ }
2698
+ $$renderer2.push(`<!--]--></div></div></article>`);
2699
+ });
2700
+ }
2701
+ const STATUS = {
2702
+ sending: "Sending to Firstmate…",
2703
+ uncertain: "Confirming Firstmate has it…",
2704
+ "saved-unannounced": "Saved; Firstmate reads it at its next check",
2705
+ delivered: "Sent to Firstmate",
2706
+ failed: "Not delivered"
2707
+ };
2708
+ function chatBatches(messages) {
2709
+ const out = [];
2710
+ for (const m of messages) {
2711
+ const batch = parseBatch(m.text);
2712
+ if (!batch) continue;
2713
+ out.push({
2714
+ id: m.requestId,
2715
+ at: m.submittedAt,
2716
+ batch,
2717
+ status: m.delivery === "delivered" && m.acknowledged ? "Firstmate has it and passes it to the same task" : STATUS[m.delivery],
2718
+ failed: m.delivery === "failed",
2719
+ reply: m.reply?.body ?? null
2720
+ });
2721
+ }
2722
+ return out;
2723
+ }
2724
+ function placeBatches(items, batches) {
2725
+ const before = /* @__PURE__ */ new Map();
2726
+ const end = [];
2727
+ const times = items.map((it) => Date.parse(it.at));
2728
+ const first = times.find((t) => !Number.isNaN(t));
2729
+ for (const b of batches) {
2730
+ const at = Date.parse(b.at);
2731
+ if (first !== void 0 && at < first) continue;
2732
+ const i = times.findIndex((t) => !Number.isNaN(t) && t > at);
2733
+ if (i < 0) end.push(b);
2734
+ else before.set(i, [...before.get(i) ?? [], b]);
2735
+ }
2736
+ return { before, end };
2737
+ }
2738
+ function AttachedFiles($$renderer, $$props) {
2739
+ $$renderer.component(($$renderer2) => {
2740
+ if (
2741
+ /**
2742
+ * The files waiting to go with the message, under the text in the composer:
2743
+ * one hairline-ruled row each, with a thumbnail for an image, its kind and
2744
+ * size (or how far it has uploaded, or why it failed) and a way to remove it.
2745
+ */
2746
+ attachments.drafts.length
2747
+ ) {
2748
+ $$renderer2.push(`<!--[0--><ul class="mx-2 mb-1 flex flex-col divide-y divide-hair border-t border-hair" aria-label="Attached files"><!--[-->`);
2749
+ const each_array = ensure_array_like(attachments.drafts);
2750
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
2751
+ let d = each_array[$$index];
2752
+ $$renderer2.push(`<li class="flex items-center gap-2.5 px-1.5 py-1.5 text-sm"${attr("data-attachment", d.state)}>`);
2753
+ if (d.preview) {
2754
+ $$renderer2.push(`<!--[0--><img${attr("src", d.preview)} alt="" class="size-7 shrink-0 rounded border border-hair object-cover"/>`);
2755
+ } else {
2756
+ $$renderer2.push(`<!--[-1--><span class="flex size-7 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
2757
+ File_text($$renderer2, { class: "size-3.5" });
2758
+ $$renderer2.push(`<!----></span>`);
2759
+ }
2760
+ $$renderer2.push(`<!--]--> <span class="min-w-0 truncate font-medium"${attr("title", d.name)}>${escape_html(d.name)}</span> <span${attr_class(`flex shrink-0 items-center gap-1 text-xs ${d.state === "failed" ? "text-danger" : "text-muted-foreground"}`)}${attr("role", d.state === "failed" ? "alert" : void 0)}>`);
2761
+ if (d.state === "uploading") {
2762
+ $$renderer2.push("<!--[0-->");
2763
+ Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
2764
+ $$renderer2.push(`<!---->Uploading ${escape_html(Math.round(d.progress * 100))}%`);
2765
+ } else if (d.state === "failed") {
2766
+ $$renderer2.push("<!--[1-->");
2767
+ Circle_alert($$renderer2, { class: "size-3", "aria-hidden": "true" });
2768
+ $$renderer2.push(`<!---->${escape_html(d.error)}`);
2769
+ } else {
2770
+ $$renderer2.push(`<!--[-1-->${escape_html(kindLabel(d))} · ${escape_html(fileSize(d.size))}`);
2771
+ }
2772
+ $$renderer2.push(`<!--]--></span> <button type="button" class="ml-auto flex size-7 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"${attr("aria-label", `Remove ${stringify(d.name)}`)} title="Remove">`);
2773
+ X($$renderer2, { class: "size-3.5" });
2774
+ $$renderer2.push(`<!----></button></li>`);
2775
+ }
2776
+ $$renderer2.push(`<!--]--></ul>`);
2777
+ } else {
2778
+ $$renderer2.push("<!--[-1-->");
2779
+ }
2780
+ $$renderer2.push(`<!--]-->`);
2781
+ });
2782
+ }
2783
+ function Composer($$renderer, $$props) {
2784
+ $$renderer.component(($$renderer2) => {
2785
+ let {
2786
+ via,
2787
+ reason,
2788
+ working,
2789
+ held = null,
2790
+ reply = null,
2791
+ thread = null,
2792
+ threads: threads2 = [],
2793
+ onvault
2794
+ /** session: typed into Wheelhouse's session; inbox: Firstmate's inbox; null: nowhere. */
2795
+ /** Why typing is off, shown in place of the placeholder. */
2796
+ /** Why sending waits for now (a menu is open in the session), or null. */
2797
+ /** The message being replied to, or null. */
2798
+ /** The thread the chat is reading, which messages are sent in, or null. */
2799
+ /** The threads a message can be sent in instead. */
2800
+ /** Open the Add a secret popup; no key button without it. */
2801
+ } = $$props;
2802
+ let chosen = void 0;
2803
+ const threadTopic = derived(() => thread?.topic ?? null);
2804
+ const sendIn = derived(() => threadTopic());
2805
+ const sendInName = derived(() => sendIn() ? (threads2.find((t) => t.topic === sendIn()) ?? thread)?.name ?? sendIn() : null);
2806
+ const sendInHue = derived(() => sendIn() ? (threads2.find((t) => t.topic === sendIn()) ?? thread)?.hue ?? null : null);
2807
+ const canSend = derived(() => via !== null);
2808
+ let editor = void 0;
2809
+ let empty = true;
2810
+ let dictating = false;
2811
+ let extrasOpen = false;
2812
+ let stopping = false;
2813
+ const placeholder = derived(() => via === "session" ? "Message Firstmate · / for commands · # for a task or thread" : via === "inbox" ? "Message Firstmate’s inbox · # for a task or thread" : reason ?? "Firstmate is not running here.");
2814
+ const shortPlaceholder = derived(() => via === "session" ? "Message Firstmate" : via === "inbox" ? "Message Firstmate’s inbox" : reason ?? "Firstmate is not running here.");
2815
+ const sendable = derived(() => attachments.ready);
2816
+ let $$settled = true;
2817
+ let $$inner_renderer;
2818
+ function $$render_inner($$renderer3) {
2819
+ $$renderer3.push(`<div class="relative">`);
2820
+ {
2821
+ $$renderer3.push("<!--[-1-->");
2822
+ }
2823
+ $$renderer3.push(`<!--]--> `);
2824
+ if (sendIn() || thread && chosen === null) {
2825
+ $$renderer3.push(`<!--[0--><div class="mb-1.5 flex items-center gap-1.5 text-xs text-muted-foreground" data-send-in="">`);
2826
+ if (sendIn()) {
2827
+ $$renderer3.push(`<!--[0--><span>Sent in</span> <span class="thread-tag pointer-events-none"${attr("data-hue", sendInHue() ?? void 0)}>${escape_html(sendInName())}</span> <button class="cursor-pointer rounded px-1 hover:bg-muted hover:text-foreground" aria-label="Send this message in no thread" title="Send this message in no thread">`);
2828
+ X($$renderer3, { class: "size-3.5" });
2829
+ $$renderer3.push(`<!----></button>`);
2830
+ } else if (thread) {
2831
+ $$renderer3.push(`<!--[1--><span>Sent in no thread ·</span> <button class="cursor-pointer font-medium text-sea hover:underline">Send in ${escape_html(thread.name)}</button>`);
2832
+ } else {
2833
+ $$renderer3.push("<!--[-1-->");
2834
+ }
2835
+ $$renderer3.push(`<!--]--></div>`);
2836
+ } else {
2837
+ $$renderer3.push("<!--[-1-->");
2838
+ }
2839
+ $$renderer3.push(`<!--]--> `);
2840
+ if (reply) {
2841
+ $$renderer3.push(`<!--[0--><div class="reply-draft" role="group" aria-label="Replying to a message">`);
2842
+ Reply($$renderer3, { class: "size-4 shrink-0 text-sea", "aria-hidden": "true" });
2843
+ $$renderer3.push(`<!----> <div class="min-w-0 flex-1"><p class="text-xs font-medium text-sea">Replying to ${escape_html(reply.who === "firstmate" ? "Firstmate" : "yourself")}</p> <p class="truncate text-sm text-muted-foreground">${escape_html(reply.snippet)}</p></div> <button class="flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Cancel the reply" title="Cancel the reply (Esc)">`);
2844
+ X($$renderer3, { class: "size-4" });
2845
+ $$renderer3.push(`<!----></button></div>`);
2846
+ } else {
2847
+ $$renderer3.push("<!--[-1-->");
2848
+ }
2849
+ $$renderer3.push(`<!--]--> <div${attr_class(`rounded-xl border bg-card/75 focus-within:ring-2 focus-within:ring-ring/30 ${canSend() ? "" : "opacity-70"} ${reply ? "rounded-t-none" : ""}`)}><div class="flex items-end gap-2 p-2.5 pl-2"><input type="file" multiple="" class="hidden" tabindex="-1" aria-hidden="true"/> <div class="relative shrink-0 md:hidden"><button type="button" aria-label="Attach files or add a secret"${attr("aria-expanded", extrasOpen)} aria-haspopup="menu"${attr("disabled", !canSend(), true)} class="flex size-11 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40">`);
2850
+ Plus($$renderer3, { class: "size-5" });
2851
+ $$renderer3.push(`<!----></button> `);
2852
+ {
2853
+ $$renderer3.push("<!--[-1-->");
2854
+ }
2855
+ $$renderer3.push(`<!--]--></div> <button type="button" aria-label="Attach files"${attr("title", `Attach files (or drop them on the chat, or paste an image), up to ${stringify(UPLOAD_MAX_BYTES / (1024 * 1024))} MB each`)}${attr("disabled", !canSend(), true)} class="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40 max-md:hidden">`);
2856
+ Paperclip($$renderer3, { class: "size-4" });
2857
+ $$renderer3.push(`<!----></button> `);
2858
+ if (onvault) {
2859
+ $$renderer3.push(`<!--[0--><button type="button" aria-label="Add a secret to the vault" title="Add a secret to the vault: its value goes to the Keychain, never into the chat" class="-ml-1 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground max-md:hidden">`);
2860
+ Key_round($$renderer3, { class: "size-4" });
2861
+ $$renderer3.push(`<!----></button>`);
2862
+ } else {
2863
+ $$renderer3.push("<!--[-1-->");
2864
+ }
2865
+ $$renderer3.push(`<!--]--> <div${attr("contenteditable", canSend() ? "true" : "false")} role="textbox"${attr("tabindex", canSend() ? 0 : -1)} aria-multiline="true" aria-label="Message Firstmate"${attr("aria-disabled", !canSend())}${attr("data-placeholder", placeholder())}${attr("data-placeholder-short", shortPlaceholder())}${attr_class(`editor no-scrollbar max-h-48 min-h-10 min-w-0 flex-1 overflow-y-auto py-2 text-base leading-relaxed whitespace-pre-wrap outline-none ${"is-empty"} ${canSend() ? "" : "cursor-not-allowed"}`, "svelte-w61w6e")}></div> <div${attr_class(`contents ${sendable() && !dictating ? "max-md:hidden" : ""}`)}>`);
2866
+ MicButton($$renderer3, {
2867
+ field: editor,
2868
+ target: () => editableTarget(editor),
2869
+ label: "Dictate a message",
2870
+ disabled: !canSend(),
2871
+ get listening() {
2872
+ return dictating;
2873
+ },
2874
+ set listening($$value) {
2875
+ dictating = $$value;
2876
+ $$settled = false;
2877
+ }
2878
+ });
2879
+ $$renderer3.push(`<!----></div> `);
2880
+ if (working && empty && !attachments.drafts.length && via === "session") {
2881
+ $$renderer3.push(`<!--[0--><button aria-label="Stop Firstmate" title="Stop what Firstmate is doing (Escape)"${attr("disabled", stopping, true)} class="flex size-10 shrink-0 cursor-pointer items-center justify-center rounded-full bg-sea text-on-accent transition-opacity disabled:opacity-40 max-md:size-11">`);
2882
+ {
2883
+ $$renderer3.push("<!--[-1-->");
2884
+ Square($$renderer3, { class: "size-3.5 fill-current" });
2885
+ }
2886
+ $$renderer3.push(`<!--]--></button>`);
2887
+ } else {
2888
+ $$renderer3.push(`<!--[-1--><button aria-label="Send"${attr("disabled", !attachments.ready || !canSend() || !!held || attachments.uploading, true)}${attr_class(`flex size-10 shrink-0 max-md:size-11 ${sendable() ? "" : "max-md:hidden"} cursor-pointer items-center justify-center rounded-full bg-sea text-on-accent transition-opacity disabled:cursor-not-allowed disabled:opacity-30`)}>`);
2889
+ Arrow_up($$renderer3, { class: "size-4" });
2890
+ $$renderer3.push(`<!----></button>`);
2891
+ }
2892
+ $$renderer3.push(`<!--]--></div> `);
2893
+ AttachedFiles($$renderer3);
2894
+ $$renderer3.push(`<!----></div> `);
2895
+ if (held) {
2896
+ $$renderer3.push(`<!--[1--><p class="mt-2 text-xs text-muted-foreground" data-held="">${escape_html(held)}</p>`);
2897
+ } else if (attachments.uploading) {
2898
+ $$renderer3.push(`<!--[2--><p class="mt-2 text-xs text-muted-foreground">Send waits until the files finish uploading.</p>`);
2899
+ } else if (via === "inbox") {
2900
+ $$renderer3.push(`<!--[3--><p class="mt-2 text-xs text-muted-foreground">${escape_html("Firstmate runs in another terminal, so messages go to its inbox.")}</p>`);
2901
+ } else {
2902
+ $$renderer3.push("<!--[-1-->");
2903
+ }
2904
+ $$renderer3.push(`<!--]--></div>`);
2905
+ }
2906
+ do {
2907
+ $$settled = true;
2908
+ $$inner_renderer = $$renderer2.copy();
2909
+ $$render_inner($$inner_renderer);
2910
+ } while (!$$settled);
2911
+ $$renderer2.subsume($$inner_renderer);
2912
+ });
2913
+ }
2914
+ function MenuCard($$renderer, $$props) {
2915
+ $$renderer.component(($$renderer2) => {
2916
+ let { menu, tool = "Claude Code" } = $$props;
2917
+ let busy = false;
2918
+ $$renderer2.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-sea bg-card p-4" role="group"${attr("aria-label", `A ${stringify(tool)} menu is open`)}><p class="mb-2 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
2919
+ App_window($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
2920
+ $$renderer2.push(`<!---->A ${escape_html(tool)} menu is open</p> <p class="mb-3 text-sm text-muted-foreground">`);
2921
+ if (menu.title) {
2922
+ $$renderer2.push(`<!--[0--><span class="font-medium text-foreground">${escape_html(menu.title)}</span>`);
2923
+ } else {
2924
+ $$renderer2.push(`<!--[-1-->A menu`);
2925
+ }
2926
+ $$renderer2.push(`<!--]--> is open in Firstmate’s session, and the chat can’t use it. Close it to carry on chatting, or use it
2927
+ in Firstmate’s terminal.</p> <div class="flex flex-wrap items-center gap-3 text-sm">`);
2928
+ if (menu.canDismiss !== false) {
2929
+ $$renderer2.push(`<!--[0--><button class="flex cursor-pointer items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 font-medium text-background disabled:opacity-40"${attr("disabled", busy, true)}>`);
2930
+ {
2931
+ $$renderer2.push("<!--[-1-->");
2932
+ X($$renderer2, { class: "size-4", "aria-hidden": "true" });
2933
+ }
2934
+ $$renderer2.push(`<!--]-->Close menu</button>`);
2935
+ } else {
2936
+ $$renderer2.push("<!--[-1-->");
2937
+ }
2938
+ $$renderer2.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
2939
+ Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
2940
+ $$renderer2.push(`<!---->Use it in the terminal</button> `);
2941
+ {
2942
+ $$renderer2.push("<!--[-1-->");
2943
+ }
2944
+ $$renderer2.push(`<!--]--></div></div>`);
2945
+ });
2946
+ }
2947
+ function PickerCard($$renderer, $$props) {
2948
+ $$renderer.component(($$renderer2) => {
2949
+ let { picker } = $$props;
2950
+ let busy = false;
2951
+ $$renderer2.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-sea bg-card p-4" role="group" aria-label="Firstmate is asking you"><p class="mb-2 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
2952
+ Message_circle_question_mark($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
2953
+ $$renderer2.push(`<!---->Firstmate is asking you `);
2954
+ {
2955
+ $$renderer2.push("<!--[-1-->");
2956
+ }
2957
+ $$renderer2.push(`<!--]--></p> `);
2958
+ if (picker.tabs.length > 1) {
2959
+ $$renderer2.push(`<!--[0--><div class="mb-3 flex flex-wrap gap-1.5 text-xs"><!--[-->`);
2960
+ const each_array = ensure_array_like(picker.tabs);
2961
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
2962
+ let tab = each_array[$$index];
2963
+ $$renderer2.push(`<span${attr_class(`flex items-center gap-1 rounded border px-1.5 py-0.5 ${tab.done ? "text-muted-foreground" : "border-sea/50 text-foreground"}`)}>`);
2964
+ if (tab.done) {
2965
+ $$renderer2.push("<!--[0-->");
2966
+ Check($$renderer2, { class: "size-3", "aria-label": "Answered" });
2967
+ } else {
2968
+ $$renderer2.push("<!--[-1-->");
2969
+ }
2970
+ $$renderer2.push(`<!--]-->${escape_html(tab.label)}</span>`);
2971
+ }
2972
+ $$renderer2.push(`<!--]--></div>`);
2973
+ } else {
2974
+ $$renderer2.push("<!--[-1-->");
2975
+ }
2976
+ $$renderer2.push(`<!--]--> `);
2977
+ if (picker.title) {
2978
+ $$renderer2.push(`<!--[0--><p class="mb-3 text-base whitespace-pre-line">${escape_html(picker.title)}</p>`);
2979
+ } else {
2980
+ $$renderer2.push("<!--[-1-->");
2981
+ }
2982
+ $$renderer2.push(`<!--]--> <div class="flex flex-col gap-1.5"><!--[-->`);
2983
+ const each_array_1 = ensure_array_like(picker.options);
2984
+ for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
2985
+ let o = each_array_1[$$index_1];
2986
+ if (o.freeText) {
2987
+ $$renderer2.push(`<!--[0--><button class="flex w-full cursor-pointer items-center gap-3 rounded-lg border border-dashed bg-background px-3 py-2 text-left text-sm text-muted-foreground hover:border-sea/60">`);
2988
+ Square_terminal($$renderer2, { class: "size-4 shrink-0", "aria-hidden": "true" });
2989
+ $$renderer2.push(`<!----> <span>Type an answer in Firstmate’s terminal</span></button>`);
2990
+ } else {
2991
+ $$renderer2.push(`<!--[-1--><button${attr_class(`flex w-full cursor-pointer items-start gap-3 rounded-lg border px-3 py-2 text-left text-sm transition-colors disabled:cursor-default ${o.checked ? "border-sea bg-sea/10" : "bg-background hover:border-sea/60"}`)}${attr("disabled", busy, true)}${attr("aria-pressed", o.checked === null ? void 0 : o.checked)}><span class="tabular w-4 shrink-0 text-muted-foreground">`);
2992
+ if (o.checked) {
2993
+ $$renderer2.push("<!--[0-->");
2994
+ Check($$renderer2, { class: "size-4 text-sea", "aria-label": "Chosen" });
2995
+ } else {
2996
+ $$renderer2.push(`<!--[-1-->${escape_html(o.n)}`);
2997
+ }
2998
+ $$renderer2.push(`<!--]--></span> <span class="min-w-0"><span class="font-medium">${escape_html(o.label)}</span> `);
2999
+ if (o.description) {
3000
+ $$renderer2.push(`<!--[0--><span class="block text-xs text-muted-foreground">${escape_html(o.description)}</span>`);
3001
+ } else {
3002
+ $$renderer2.push("<!--[-1-->");
3003
+ }
3004
+ $$renderer2.push(`<!--]--></span></button>`);
3005
+ }
3006
+ $$renderer2.push(`<!--]-->`);
3007
+ }
3008
+ $$renderer2.push(`<!--]--></div> <div class="mt-3 flex flex-wrap items-center gap-3 text-sm">`);
3009
+ if (picker.multiSelect && picker.submitMoves !== null) {
3010
+ $$renderer2.push(`<!--[0--><button class="cursor-pointer rounded-lg bg-foreground px-3 py-1.5 font-medium text-background disabled:opacity-40"${attr("disabled", !picker.options.some((o) => o.checked), true)}>Done</button>`);
3011
+ } else {
3012
+ $$renderer2.push("<!--[-1-->");
3013
+ }
3014
+ $$renderer2.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
3015
+ Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
3016
+ $$renderer2.push(`<!---->Answer in the terminal instead</button> `);
3017
+ {
3018
+ $$renderer2.push("<!--[-1-->");
3019
+ }
3020
+ $$renderer2.push(`<!--]--></div></div>`);
3021
+ });
3022
+ }
3023
+ function QuestionCard($$renderer, $$props) {
3024
+ $$renderer.component(($$renderer2) => {
3025
+ let { part } = $$props;
3026
+ if (part.answers) {
3027
+ $$renderer2.push(`<!--[0--><div class="flex max-w-[80ch] flex-col gap-1 text-sm text-muted-foreground"><!--[-->`);
3028
+ const each_array = ensure_array_like(part.questions);
3029
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3030
+ let q = each_array[$$index];
3031
+ $$renderer2.push(`<p class="flex items-start gap-2">`);
3032
+ Circle_check($$renderer2, {
3033
+ class: "mt-0.5 size-4 shrink-0 text-success",
3034
+ "aria-hidden": "true"
3035
+ });
3036
+ $$renderer2.push(`<!----> <span>${escape_html(q.question)} <span class="font-medium text-foreground">${escape_html(part.answers[q.question] ?? "No answer")}</span></span></p>`);
3037
+ }
3038
+ $$renderer2.push(`<!--]--></div>`);
3039
+ } else {
3040
+ $$renderer2.push("<!--[-1-->");
3041
+ }
3042
+ $$renderer2.push(`<!--]-->`);
3043
+ });
3044
+ }
3045
+ function SignInCard($$renderer, $$props) {
3046
+ $$renderer.component(($$renderer2) => {
3047
+ let { signIn, tool = "Claude Code" } = $$props;
3048
+ let code = "";
3049
+ let busy = false;
3050
+ $$renderer2.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-warning bg-card p-4" role="group"${attr("aria-label", `Sign in to ${stringify(tool)}`)} data-sign-in=""><p class="mb-1 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
3051
+ Key_round($$renderer2, { class: "size-4 text-warning", "aria-hidden": "true" });
3052
+ $$renderer2.push(`<!---->Sign in to ${escape_html(tool)}</p> <p class="mb-4 text-sm text-muted-foreground">Firstmate is waiting for you to sign ${escape_html(tool)} in before it can carry on.</p> <ol class="flex flex-col gap-4 text-sm"><li class="flex flex-col gap-2"><span><span class="tabular text-muted-foreground">1.</span> Open the sign-in page and sign in.</span> <a class="flex w-fit items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 font-medium text-background hover:opacity-90"${attr("href", signIn.url)} target="_blank" rel="noopener noreferrer">`);
3053
+ External_link($$renderer2, { class: "size-4", "aria-hidden": "true" });
3054
+ $$renderer2.push(`<!---->Open the sign-in page</a></li> `);
3055
+ if (signIn.code) {
3056
+ $$renderer2.push(`<!--[0--><li class="flex flex-col gap-2"><span><span class="tabular text-muted-foreground">2.</span> Enter this code on that page.</span> <span class="flex items-center gap-2"><code class="rounded border bg-background px-2 py-1 font-mono text-base tracking-wider select-all">${escape_html(signIn.code)}</code> <button class="flex cursor-pointer items-center gap-1 text-muted-foreground hover:text-foreground">`);
3057
+ {
3058
+ $$renderer2.push("<!--[-1-->");
3059
+ Copy($$renderer2, { class: "size-4", "aria-hidden": "true" });
3060
+ $$renderer2.push(`<!---->Copy code`);
3061
+ }
3062
+ $$renderer2.push(`<!--]--></button></span></li>`);
3063
+ } else {
3064
+ $$renderer2.push("<!--[-1-->");
3065
+ }
3066
+ $$renderer2.push(`<!--]--> `);
3067
+ if (signIn.paste) {
3068
+ $$renderer2.push(`<!--[0--><li class="flex flex-col gap-2"><label for="wh-sign-in-code"><span class="tabular text-muted-foreground">2.</span> Paste the code the page gives you.</label> <form class="flex flex-wrap items-center gap-2"><input id="wh-sign-in-code" class="min-w-0 flex-1 rounded-lg border bg-background px-3 py-1.5 font-mono text-sm" autocomplete="off" autocapitalize="off" spellcheck="false" placeholder="Sign-in code"${attr("value", code)}${attr("disabled", busy, true)}/> <button type="submit" class="flex cursor-pointer items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 font-medium text-background disabled:cursor-default disabled:opacity-40"${attr("disabled", !code.trim(), true)}>`);
3069
+ {
3070
+ $$renderer2.push("<!--[-1-->");
3071
+ }
3072
+ $$renderer2.push(`<!--]-->Sign in</button></form> `);
3073
+ {
3074
+ $$renderer2.push("<!--[-1-->");
3075
+ }
3076
+ $$renderer2.push(`<!--]--></li>`);
3077
+ } else {
3078
+ $$renderer2.push(`<!--[-1--><li class="text-muted-foreground">${escape_html(tool)} carries on by itself once you have signed in.</li>`);
3079
+ }
3080
+ $$renderer2.push(`<!--]--></ol> `);
3081
+ if (signIn.note) {
3082
+ $$renderer2.push(`<!--[0--><p class="mt-3 text-xs text-muted-foreground">${escape_html(signIn.note)}</p>`);
3083
+ } else {
3084
+ $$renderer2.push("<!--[-1-->");
3085
+ }
3086
+ $$renderer2.push(`<!--]--> <div class="mt-4 flex flex-wrap items-center gap-3 text-sm"><button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
3087
+ Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
3088
+ $$renderer2.push(`<!---->Sign in in the terminal instead</button> `);
3089
+ {
3090
+ $$renderer2.push("<!--[-1-->");
3091
+ }
3092
+ $$renderer2.push(`<!--]--></div></div>`);
3093
+ });
3094
+ }
3095
+ function TerminalNotice($$renderer, $$props) {
3096
+ let { detail, tool = "Claude Code" } = $$props;
3097
+ $$renderer.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-warning bg-card p-4" role="alert" aria-label="Firstmate is waiting for you in the terminal" data-terminal-notice=""><p class="mb-2 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
3098
+ Square_terminal($$renderer, { class: "size-4 text-warning", "aria-hidden": "true" });
3099
+ $$renderer.push(`<!---->Firstmate is waiting for you in
3100
+ the terminal</p> <p class="mb-3 text-sm text-muted-foreground">${escape_html(tool)} is showing something the chat can’t answer. Open the terminal to carry on; the chat picks up
3101
+ again once it’s done.</p> `);
3102
+ if (detail) {
3103
+ $$renderer.push(`<!--[0--><pre class="mb-3 overflow-x-auto rounded border bg-background px-3 py-2 font-mono text-xs whitespace-pre-wrap text-muted-foreground">${escape_html(detail)}</pre>`);
3104
+ } else {
3105
+ $$renderer.push("<!--[-1-->");
3106
+ }
3107
+ $$renderer.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 text-sm font-medium text-background hover:opacity-90">`);
3108
+ Square_terminal($$renderer, { class: "size-4", "aria-hidden": "true" });
3109
+ $$renderer.push(`<!---->Open terminal</button></div>`);
3110
+ }
3111
+ function ThreadTag($$renderer, $$props) {
3112
+ $$renderer.component(($$renderer2) => {
3113
+ let { tag, threads: threads2 } = $$props;
3114
+ const SOURCE = {
3115
+ marker: "Firstmate filed this here",
3116
+ decision: "The decision’s project",
3117
+ task: "The task’s project",
3118
+ thread: "Sent in this thread",
3119
+ you: "You moved this here",
3120
+ guess: "A guess from what it names"
3121
+ };
3122
+ const me = derived(() => threads2.find((t) => t.topic === tag.topic) ?? { topic: tag.topic, name: tag.topic, hue: null });
3123
+ let open = false;
3124
+ let fresh = "";
3125
+ function tagButton($$renderer3, props) {
3126
+ $$renderer3.push(`<button${attributes({
3127
+ ...props,
3128
+ class: "thread-tag touch-target",
3129
+ "data-hue": me().hue ?? void 0,
3130
+ "data-unsorted": tag.topic === UNSORTED ? "" : void 0,
3131
+ "data-source": tag.source ?? void 0,
3132
+ title: `${stringify(tag.source ? SOURCE[tag.source] : "Not filed under a thread")}. Click to move it.`,
3133
+ "aria-label": `Thread: ${stringify(me().name)}${tag.source === "guess" ? " (a guess)" : ""}. Move it`
3134
+ })}><span class="thread-tag-name">${escape_html(me().name)}</span>`);
3135
+ if (tag.source === "guess") {
3136
+ $$renderer3.push(`<!--[0--><span class="thread-tag-src">· guess</span>`);
3137
+ } else if (tag.source === "you") {
3138
+ $$renderer3.push(`<!--[1--><span class="thread-tag-src">· moved</span>`);
3139
+ } else {
3140
+ $$renderer3.push("<!--[-1-->");
3141
+ }
3142
+ $$renderer3.push(`<!--]--></button>`);
3143
+ }
3144
+ function moveTo($$renderer3) {
3145
+ $$renderer3.push(`<p class="px-2 pt-1 pb-1.5 text-xs text-muted-foreground max-md:hidden">Move to thread</p> <div class="no-scrollbar max-h-64 overflow-y-auto max-md:max-h-none"><!--[-->`);
3146
+ const each_array = ensure_array_like(threads2);
3147
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3148
+ let t = each_array[$$index];
3149
+ $$renderer3.push(`<button class="flex w-full cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-left hover:bg-muted max-md:min-h-12 max-md:text-base pointer-coarse:min-h-11"><span class="thread-dot"${attr("data-hue", t.hue ?? void 0)} aria-hidden="true"></span> <span class="min-w-0 flex-1 truncate">${escape_html(t.name)}</span> `);
3150
+ if (t.topic === tag.topic) {
3151
+ $$renderer3.push("<!--[0-->");
3152
+ Check($$renderer3, { class: "size-3.5 text-muted-foreground" });
3153
+ } else {
3154
+ $$renderer3.push("<!--[-1-->");
3155
+ }
3156
+ $$renderer3.push(`<!--]--></button>`);
3157
+ }
3158
+ $$renderer3.push(`<!--]--></div> <form class="mt-1 flex items-center gap-1.5 border-t px-1 pt-1.5">`);
3159
+ Plus($$renderer3, {
3160
+ class: "size-3.5 shrink-0 text-muted-foreground",
3161
+ "aria-hidden": "true"
3162
+ });
3163
+ $$renderer3.push(`<!----> <input class="min-w-0 flex-1 bg-transparent py-1 text-sm outline-none placeholder:text-muted-foreground max-md:min-h-12 max-md:text-base" placeholder="New topic…" aria-label="New topic"${attr("value", fresh)}/></form>`);
3164
+ }
3165
+ let $$settled = true;
3166
+ let $$inner_renderer;
3167
+ function $$render_inner($$renderer3) {
3168
+ if (phone.current) {
3169
+ $$renderer3.push("<!--[0-->");
3170
+ tagButton($$renderer3, {
3171
+ type: "button",
3172
+ "aria-haspopup": "dialog",
3173
+ onclick: () => open = true
3174
+ });
3175
+ $$renderer3.push(`<!----> `);
3176
+ Sheet($$renderer3, {
3177
+ title: "Move to thread",
3178
+ get open() {
3179
+ return open;
3180
+ },
3181
+ set open($$value) {
3182
+ open = $$value;
3183
+ $$settled = false;
3184
+ },
3185
+ children: ($$renderer4) => {
3186
+ $$renderer4.push(`<div class="px-3 pb-3">`);
3187
+ moveTo($$renderer4);
3188
+ $$renderer4.push(`<!----></div>`);
3189
+ },
3190
+ $$slots: { default: true }
3191
+ });
3192
+ $$renderer3.push(`<!---->`);
3193
+ } else {
3194
+ $$renderer3.push("<!--[-1-->");
3195
+ if (Popover) {
3196
+ $$renderer3.push("<!--[-->");
3197
+ Popover($$renderer3, {
3198
+ get open() {
3199
+ return open;
3200
+ },
3201
+ set open($$value) {
3202
+ open = $$value;
3203
+ $$settled = false;
3204
+ },
3205
+ children: ($$renderer4) => {
3206
+ {
3207
+ let child = function($$renderer5, { props }) {
3208
+ tagButton($$renderer5, props);
3209
+ };
3210
+ if (Popover_trigger) {
3211
+ $$renderer4.push("<!--[-->");
3212
+ Popover_trigger($$renderer4, { child, $$slots: { child: true } });
3213
+ $$renderer4.push("<!--]-->");
3214
+ } else {
3215
+ $$renderer4.push("<!--[!-->");
3216
+ $$renderer4.push("<!--]-->");
3217
+ }
3218
+ }
3219
+ $$renderer4.push(` `);
3220
+ if (Portal) {
3221
+ $$renderer4.push("<!--[-->");
3222
+ Portal($$renderer4, {
3223
+ children: ($$renderer5) => {
3224
+ if (Popover_content) {
3225
+ $$renderer5.push("<!--[-->");
3226
+ Popover_content($$renderer5, {
3227
+ align: "start",
3228
+ sideOffset: 4,
3229
+ class: "z-50 w-60 max-w-[calc(100vw-2rem)] rounded-md bg-popover p-1.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10",
3230
+ children: ($$renderer6) => {
3231
+ moveTo($$renderer6);
3232
+ },
3233
+ $$slots: { default: true }
3234
+ });
3235
+ $$renderer5.push("<!--]-->");
3236
+ } else {
3237
+ $$renderer5.push("<!--[!-->");
3238
+ $$renderer5.push("<!--]-->");
3239
+ }
3240
+ }
3241
+ });
3242
+ $$renderer4.push("<!--]-->");
3243
+ } else {
3244
+ $$renderer4.push("<!--[!-->");
3245
+ $$renderer4.push("<!--]-->");
3246
+ }
3247
+ },
3248
+ $$slots: { default: true }
3249
+ });
3250
+ $$renderer3.push("<!--]-->");
3251
+ } else {
3252
+ $$renderer3.push("<!--[!-->");
3253
+ $$renderer3.push("<!--]-->");
3254
+ }
3255
+ }
3256
+ $$renderer3.push(`<!--]-->`);
3257
+ }
3258
+ do {
3259
+ $$settled = true;
3260
+ $$inner_renderer = $$renderer2.copy();
3261
+ $$render_inner($$inner_renderer);
3262
+ } while (!$$settled);
3263
+ $$renderer2.subsume($$inner_renderer);
3264
+ });
3265
+ }
3266
+ function captainText($$renderer, text, linked) {
3267
+ $$renderer.push(`<!--[-->`);
3268
+ const each_array_1 = ensure_array_like(parseRefs(text));
3269
+ for (let pi = 0, $$length = each_array_1.length; pi < $$length; pi++) {
3270
+ let piece = each_array_1[pi];
3271
+ if (typeof piece === "string") {
3272
+ $$renderer.push(`<!--[0-->${escape_html(piece)}`);
3273
+ } else if (linked) {
3274
+ $$renderer.push(`<!--[1--><a${attr("href", `/tasks/${stringify(encodeURIComponent(piece.id))}`)} class="mx-px inline-block rounded-md bg-sea/15 px-1.5 text-[0.875em] font-medium whitespace-nowrap text-sea no-underline hover:bg-sea/25"${attr("title", piece.url ?? piece.title)}>${escape_html(chipLabel(piece))}</a>`);
3275
+ } else {
3276
+ $$renderer.push(`<!--[-1--><span class="mx-px inline-block rounded-md bg-sea/15 px-1.5 text-[0.875em] font-medium whitespace-nowrap text-sea">${escape_html(chipLabel(piece))}</span>`);
3277
+ }
3278
+ $$renderer.push(`<!--]-->`);
3279
+ }
3280
+ $$renderer.push(`<!--]-->`);
3281
+ }
3282
+ function Chat($$renderer, $$props) {
3283
+ $$renderer.component(($$renderer2) => {
3284
+ let {
3285
+ token,
3286
+ railOpen,
3287
+ railSide = "right",
3288
+ onSwapRail,
3289
+ waiting = 0,
3290
+ health,
3291
+ now,
3292
+ pluginEntries = [],
3293
+ tasks = [],
3294
+ projects = [],
3295
+ thread = null,
3296
+ onPickThread
3297
+ /** Which side of the chat the On deck rail docks to. */
3298
+ /** Moves the rail to the chat's other side; without it there is no button. */
3299
+ /** Items waiting on the captain, for the rail button's dot. */
3300
+ /** Plugin entries for the fleet, whose bridge.card cards follow replies that link them. */
3301
+ /** The fleet's tasks, whose live previews follow the replies about them. */
3302
+ /** The fleet's projects, for the cards' project names. */
3303
+ /** The thread being read (a project id, a topic or Unsorted), or null for all. */
3304
+ /** Picks the thread to read; without it the chat keeps the choice itself. */
3305
+ } = $$props;
3306
+ const HEALTH_ICON = {
3307
+ success: Circle_check,
3308
+ sea: Hand,
3309
+ warning: Triangle_alert,
3310
+ danger: Circle_x
3311
+ };
3312
+ const HEALTH_TEXT = {
3313
+ success: "text-success",
3314
+ sea: "text-sea",
3315
+ warning: "text-warning",
3316
+ danger: "text-danger"
3317
+ };
3318
+ const session = derived(() => firstmateChat.session);
3319
+ const chat = derived(() => firstmateChat.chat);
3320
+ const items = derived(() => chat().items);
3321
+ const lastItem = derived(() => items()[items().length - 1]);
3322
+ const working = derived(() => firstmateChat.working);
3323
+ const liveEnabled = derived(() => page.data.features?.discussion === true);
3324
+ const picker = derived(() => session()?.canSend ? session().picker : null);
3325
+ const menu = derived(() => session()?.canSend ? session().menu : null);
3326
+ const signIn = derived(() => session()?.canSend ? session().signIn ?? null : null);
3327
+ const inTerminal = derived(() => session()?.canSend ? terminalWait(session()) : null);
3328
+ const tool = derived(() => HARNESS_NAMES[session()?.harness ?? "claude"]);
3329
+ const waitingOnAnswer = derived(() => !!picker() || !!menu() || !!signIn() || !!inTerminal());
3330
+ const held = derived(() => picker() ? "Answer the question above to send your message." : signIn() ? `Sign in to ${tool()} above to send your message.` : inTerminal() ? "Firstmate is waiting for you in its terminal. Open it and answer there to send your message." : menu() ? "Close the menu above to send your message." : null);
3331
+ const lastCheck = derived(() => chat().checks[chat().checks.length - 1]);
3332
+ const checking = derived(() => !!lastCheck() && !lastCheck().done);
3333
+ const HIcon = derived(() => HEALTH_ICON[health.tone]);
3334
+ const canSend = derived(() => session()?.canSend === true);
3335
+ const via = derived(() => canSend() ? "session" : session()?.state === "external" && currentHealth()?.messaging.available ? "inbox" : null);
3336
+ const inboxView = derived(() => inbox.view(page.data.inbox));
3337
+ const opened = derived(() => /* @__PURE__ */ new Set([
3338
+ ...openedDecisions.ids,
3339
+ ...[],
3340
+ ...items().flatMap((it) => {
3341
+ const d = it.kind === "user" ? parseDiscuss(it.text) : null;
3342
+ return d ? [d.cardId] : [];
3343
+ }),
3344
+ ...firstmateChat.pending.flatMap((p) => {
3345
+ const d = parseDiscuss(p.text);
3346
+ return d ? [d.cardId] : [];
3347
+ })
3348
+ ]));
3349
+ const decisions = derived(() => inboxView()?.available ? chatDecisions(inboxView().cards, inboxView().answered ?? [], inbox.pending, opened()) : []);
3350
+ const allPlaced = derived(() => placeDecisions(items(), decisions()));
3351
+ const batches = derived(() => placeBatches(items(), chatBatches(currentMessages()?.messages ?? [])));
3352
+ const shown = derived(() => [
3353
+ ...[...allPlaced().before.values()].flat(),
3354
+ ...allPlaced().end
3355
+ ]);
3356
+ const decisionIds = derived(() => new Set(shown().map((d) => d.head.cardId)));
3357
+ const discussed = derived(() => threads(items(), decisionIds()));
3358
+ const asking = derived(() => pendingThreads(firstmateChat.pending));
3359
+ const threadOwner = derived(() => {
3360
+ const owner = /* @__PURE__ */ new Map();
3361
+ for (const d of shown()) {
3362
+ const held2 = owner.get(d.head.cardId);
3363
+ if (!held2 || !shown().find((x) => x.id === held2)?.card) owner.set(d.head.cardId, d.id);
3364
+ }
3365
+ return owner;
3366
+ });
3367
+ const chatPending = derived(() => firstmateChat.pending.filter((p) => {
3368
+ const d = parseDiscuss(p.text);
3369
+ return !d || !decisionIds().has(d.cardId);
3370
+ }));
3371
+ const ownPort = derived(() => typeof location !== "undefined" && ["127.0.0.1", "localhost"].includes(location.hostname) ? location.port || (location.protocol === "https:" ? "443" : "80") : null);
3372
+ const previews = derived(() => previewCards(items(), tasks, ownPort()));
3373
+ const projectName = (id) => !id || id === "unassigned" ? null : projects.find((p) => p.id === id)?.name ?? id;
3374
+ const forms = derived(() => chatForms(items(), discussed().hidden, firstmateChat.pending, currentMessages()?.messages ?? []));
3375
+ const formLinks = derived(() => {
3376
+ const linked2 = /* @__PURE__ */ new Map();
3377
+ const earlier = /* @__PURE__ */ new Map();
3378
+ const taken = /* @__PURE__ */ new Map();
3379
+ for (const [partId, f] of forms()) {
3380
+ const d = decisionFor(f.id, decisions());
3381
+ if (!d) continue;
3382
+ const before = taken.get(d.id);
3383
+ if (before) {
3384
+ linked2.delete(before);
3385
+ earlier.set(before, d);
3386
+ }
3387
+ linked2.set(partId, d);
3388
+ taken.set(d.id, partId);
3389
+ }
3390
+ return { linked: linked2, earlier };
3391
+ });
3392
+ const linked = derived(() => formLinks().linked);
3393
+ const linkedIds = derived(() => new Set([...linked().values()].map((d) => d.id)));
3394
+ const placed = derived(() => ({
3395
+ before: new Map([...allPlaced().before].map(([i, ds]) => [i, ds.filter((d) => !linkedIds().has(d.id))]).filter(([, ds]) => ds.length)),
3396
+ end: allPlaced().end.filter((d) => !linkedIds().has(d.id))
3397
+ }));
3398
+ const replyWords = (part) => parseMarkers(vaultRequests(forms().get(part.id)?.words ?? part.text).words).map((s) => s.text).join("\n\n");
3399
+ const md = (text) => markdown(vaultRequests(text).words, { docLinks: true });
3400
+ const asks = derived(() => vaultAsks(items(), firstmateChat.pending, currentMessages()?.messages ?? []));
3401
+ let vaultOpen = false;
3402
+ let vaultAsk = null;
3403
+ let vaultNotice = null;
3404
+ function addSecret(ask) {
3405
+ vaultAsk = ask;
3406
+ vaultNotice = null;
3407
+ vaultOpen = true;
3408
+ }
3409
+ function secretStored(name, granted) {
3410
+ const text = storedText(name, granted);
3411
+ if (via() && !held()) {
3412
+ void firstmateChat.send(text, via(), token, working() && !waitingOnAnswer());
3413
+ return;
3414
+ }
3415
+ vaultNotice = `${text} Firstmate was not told: ${held() ?? "there is no Firstmate session to send to."}`;
3416
+ }
3417
+ let ownThread = null;
3418
+ const current = derived(() => onPickThread ? thread : ownThread);
3419
+ const tagged = derived(() => tagChat(items(), tasks, projects, chatTags.retags));
3420
+ const labels = derived(() => projectLabels(projects, aliases.names));
3421
+ const threadName = (topic) => topic === UNSORTED ? "Unsorted" : labels().get(topic)?.label ?? topicName(topic);
3422
+ const threadHue = (topic) => topic === UNSORTED ? null : labels().get(topic)?.hue ?? hue(topic);
3423
+ const decisionTag = (d) => cardTag(`decision:${d.head.cardId}`, d.head.projectId, "decision", chatTags.retags);
3424
+ const batchTag = (b) => cardTag(`batch:${b.id}`, tasks.find((t) => t.id === b.batch.taskId)?.projectId, "task", chatTags.retags);
3425
+ const previewTag = (taskId, projectId) => cardTag(`preview:${taskId}`, projectId, "task", chatTags.retags);
3426
+ function itemTopics(it) {
3427
+ if (it.kind === "user") return [tagged().users.get(it.id)?.topic ?? UNSORTED];
3428
+ if (it.kind !== "turn") return [UNSORTED];
3429
+ const out = /* @__PURE__ */ new Set();
3430
+ for (const p of it.parts) {
3431
+ if (p.kind !== "text") continue;
3432
+ for (const sec of tagged().parts.get(p.id) ?? []) if (!sec.intro) out.add(sec.tag.topic);
3433
+ for (const pv of previews().get(p.id) ?? []) if (pv.task) out.add(previewTag(pv.task.id, pv.task.projectId).topic);
3434
+ }
3435
+ if (!out.size) out.add(tagged().turns.get(it.id)?.topic ?? UNSORTED);
3436
+ return [...out];
3437
+ }
3438
+ const entries = derived(() => {
3439
+ const out = [];
3440
+ const decision = (d) => out.push({
3441
+ key: `d:${d.id}`,
3442
+ topics: [decisionTag(d).topic],
3443
+ at: d.head.askedAt,
3444
+ needs: !!d.card && !d.answer
3445
+ });
3446
+ const batch = (b) => out.push({
3447
+ key: `b:${b.id}`,
3448
+ topics: [batchTag(b).topic],
3449
+ at: b.at,
3450
+ needs: false
3451
+ });
3452
+ items().forEach((it, i) => {
3453
+ for (const d of placed().before.get(i) ?? []) decision(d);
3454
+ for (const b of batches().before.get(i) ?? []) batch(b);
3455
+ if (!discussed().hidden.has(it.id) && it.kind !== "session") out.push({ key: it.id, topics: itemTopics(it), at: it.at, needs: false });
3456
+ });
3457
+ for (const d of placed().end) decision(d);
3458
+ for (const b of batches().end) batch(b);
3459
+ return out;
3460
+ });
3461
+ const topicsOf = derived(() => new Map(entries().map((e) => [e.key, e.topics])));
3462
+ const rows = derived(() => threadRows(entries(), current()));
3463
+ const inThread = derived(() => current() ? entries().filter((e) => e.topics.includes(current())).length : entries().length);
3464
+ const moveTo = derived(() => {
3465
+ const seen = new Set(rows().map((r) => r.topic).filter((t) => t !== UNSORTED));
3466
+ const topics = [
3467
+ ...seen,
3468
+ ...projects.filter((p) => p.registered && !seen.has(p.id)).map((p) => p.id).sort((a, b) => threadName(a).localeCompare(threadName(b))),
3469
+ UNSORTED
3470
+ ];
3471
+ return topics.map((topic) => ({ topic, name: threadName(topic), hue: threadHue(topic) }));
3472
+ });
3473
+ const runs = derived(() => current() && chatTags.fold ? foldRuns(entries(), current()) : /* @__PURE__ */ new Map());
3474
+ let openRuns = {};
3475
+ function view(key) {
3476
+ const topics = topicsOf().get(key);
3477
+ if (!current() || !topics || topics.includes(current())) return "show";
3478
+ const run = runs().get(key);
3479
+ if (!run) return "hide";
3480
+ if (openRuns[run.first]) return "dim";
3481
+ return run.first === key ? "line" : "hide";
3482
+ }
3483
+ function lastTopic(it) {
3484
+ if (it.kind === "user") return tagged().users.get(it.id)?.topic ?? null;
3485
+ if (it.kind !== "turn") return null;
3486
+ for (let pi = it.parts.length - 1; pi >= 0; pi--) {
3487
+ const secs = tagged().parts.get(it.parts[pi].id);
3488
+ if (secs?.length) return secs[secs.length - 1].tag.topic;
3489
+ }
3490
+ return tagged().turns.get(it.id)?.topic ?? null;
3491
+ }
3492
+ function layoutTurn(it, all, grouped, prev) {
3493
+ const parts = /* @__PURE__ */ new Map();
3494
+ let head2 = null;
3495
+ let hidden = 0;
3496
+ let first = true;
3497
+ for (const p of it.parts) {
3498
+ if (p.kind !== "text") continue;
3499
+ const every = tagged().parts.get(p.id) ?? [];
3500
+ const inCurrent = (x) => !x.intro && x.tag.topic === current();
3501
+ const asked = forms().get(p.id);
3502
+ const words2 = asked && parseMarkers(asked.words);
3503
+ const own = !words2 ? every : all ? every.map((s, i) => ({ ...s, text: words2[i]?.text ?? "" })) : every.length ? [every.find(inCurrent) || every[0]] : [];
3504
+ const filed = all ? own : own.filter(inCurrent);
3505
+ const secs = filed.length && own[0]?.intro && !filed.includes(own[0]) ? [own[0], ...filed] : filed;
3506
+ hidden += own.length - secs.length - (own[0]?.intro && !secs.length ? 1 : 0);
3507
+ let above = null;
3508
+ if (secs.length === 1) {
3509
+ if (first && !grouped) head2 = secs[0];
3510
+ else if (secs[0].tag.topic !== prev) above = secs[0];
3511
+ prev = secs[0].tag.topic;
3512
+ } else if (secs.length) prev = null;
3513
+ if (secs.length) first = false;
3514
+ parts.set(p.id, { secs, whole: secs.length === own.length, above });
3515
+ }
3516
+ if (first && !grouped) head2 = {
3517
+ key: `turn:${it.id}`,
3518
+ text: "",
3519
+ tag: tagged().turns.get(it.id) ?? UNSORTED_TAG,
3520
+ intro: false
3521
+ };
3522
+ return { parts, head: head2, hidden };
3523
+ }
3524
+ function decide(partId, a, note) {
3525
+ const asked = forms().get(partId);
3526
+ const text = asked ? answerText(asked.form, a, note) : "";
3527
+ if (!text || !via() || held()) return;
3528
+ void firstmateChat.send(text, via(), token, working() && !waitingOnAnswer());
3529
+ }
3530
+ function dismissForm(partId, reason) {
3531
+ const asked = forms().get(partId);
3532
+ if (!asked || !via() || held()) return;
3533
+ void firstmateChat.send(dismissText(asked.form, reason), via(), token, working() && !waitingOnAnswer());
3534
+ }
3535
+ let showChecks = false;
3536
+ let terminalOpen = false;
3537
+ let apps = {};
3538
+ let collapsedApps = {};
3539
+ let openNotice = {};
3540
+ let starting = false;
3541
+ const GROUP_MS = 5 * 6e4;
3542
+ function previousShown(i) {
3543
+ let j = i - 1;
3544
+ while (j >= 0 && (discussed().hidden.has(items()[j].id) || view(items()[j].id) === "hide")) j--;
3545
+ return j;
3546
+ }
3547
+ function groupedWithPrevious(i) {
3548
+ const j = previousShown(i);
3549
+ const v = view(items()[i].id);
3550
+ if (v !== "show" && runs().get(items()[i].id)?.first === items()[i].id) return false;
3551
+ if (j >= 0 && view(items()[j].id) !== v) return false;
3552
+ for (let k = j + 1; k <= i; k++) if ((placed().before.get(k) ?? []).some((d) => view(`d:${d.id}`) !== "hide") || (batches().before.get(k) ?? []).some((b2) => view(`b:${b2.id}`) !== "hide")) return false;
3553
+ const a = items()[j];
3554
+ const b = items()[i];
3555
+ if (!a || !b || a.kind !== b.kind || b.kind !== "user" && b.kind !== "turn") return false;
3556
+ return Date.parse(b.at) - Date.parse(a.at) <= GROUP_MS;
3557
+ }
3558
+ const time2 = (at) => {
3559
+ const d = new Date(at);
3560
+ const clock = d.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
3561
+ return d.toDateString() === new Date(now).toDateString() ? clock : `${d.toLocaleDateString([], { weekday: "short", day: "numeric", month: "short" })}, ${clock}`;
3562
+ };
3563
+ const when = (at) => new Date(at).toLocaleString([], {
3564
+ weekday: "short",
3565
+ day: "numeric",
3566
+ month: "short",
3567
+ hour: "2-digit",
3568
+ minute: "2-digit"
3569
+ });
3570
+ let searching = false;
3571
+ const status = derived(() => {
3572
+ if (firstmateChat.connection === "lost") return { dot: "bg-danger", label: "Reconnecting" };
3573
+ if (!session()) return { dot: "bg-muted-foreground", label: "Connecting" };
3574
+ if (session().state === "external") return { dot: "bg-muted-foreground", label: "Read-only" };
3575
+ if (session().state === "starting") return { dot: "animate-pulse bg-sea", label: "Starting" };
3576
+ if (session().state !== "ours") return { dot: "bg-muted-foreground", label: "Not running" };
3577
+ if (!session().canSend) return { dot: "bg-warning", label: "Restart needed" };
3578
+ if (picker()) return { dot: "bg-sea", label: "Asking you" };
3579
+ if (signIn()) return { dot: "bg-warning", label: "Waiting on you to sign in" };
3580
+ if (inTerminal()) return { dot: "bg-warning", label: "Waiting on you in terminal" };
3581
+ if (menu()) return { dot: "bg-sea", label: "Menu open" };
3582
+ return working() ? { dot: "animate-pulse bg-working", label: "Working" } : { dot: "bg-success", label: "Waiting for you" };
3583
+ });
3584
+ let replyTo = null;
3585
+ const captainWords = (text) => parseAttachments(parseThread(parseReply$1(text).body).text).text;
3586
+ function original(to, before = items().length) {
3587
+ for (let i = Math.min(before, items().length) - 1; i >= 0; i--) {
3588
+ const it = items()[i];
3589
+ if (to.who === "captain" && it.kind === "user" && quotes(to, captainWords(it.text))) return it.id;
3590
+ if (to.who === "firstmate" && it.kind === "turn") for (let pi = it.parts.length - 1; pi >= 0; pi--) {
3591
+ const part = it.parts[pi];
3592
+ if (part.kind === "text" && quotes(to, replyWords(part))) return part.id;
3593
+ }
3594
+ }
3595
+ return null;
3596
+ }
3597
+ let revealed = null;
3598
+ const isLive = (item, pi) => working() && item === lastItem() && item.kind === "turn" && pi === item.parts.length - 1;
3599
+ function replyButton($$renderer3, key, who, text) {
3600
+ $$renderer3.push(`<button${attr_class(`reply-btn ${revealed === key ? "is-revealed" : ""}`)}${attr("aria-label", who === "firstmate" ? "Reply to this message from Firstmate" : "Reply to your message")} title="Reply">`);
3601
+ Reply($$renderer3, { class: "size-4", "aria-hidden": "true" });
3602
+ $$renderer3.push(`<!----></button>`);
3603
+ }
3604
+ function thumbsButton($$renderer3, key, words2) {
3605
+ const on = reactions.has(key);
3606
+ $$renderer3.push(`<button${attr_class(`reply-btn thumbs-btn ${revealed === key ? "is-revealed" : ""} ${on ? "is-on" : ""}`)}${attr("aria-label", on ? "Take back your thumbs-up" : "Thumbs up this message from Firstmate")}${attr("aria-pressed", on)}${attr("title", on ? "Take back 👍" : "👍")}${attr("disabled", !on && !!held(), true)}>`);
3607
+ Thumbs_up($$renderer3, { class: "size-4", "aria-hidden": "true" });
3608
+ $$renderer3.push(`<!----></button>`);
3609
+ }
3610
+ function quote($$renderer3, to, target) {
3611
+ $$renderer3.push(`<button${attr_class(`reply-quote reply-quote-${stringify(to.who)}`)}${attr("disabled", !target, true)}${attr("title", target ? "Show the message this replies to" : "That message is no longer in the chat")}><span class="reply-quote-who">${escape_html(to.who === "firstmate" ? "Firstmate" : "You")}</span> <span class="reply-quote-text">${escape_html(to.snippet)}</span></button>`);
3612
+ }
3613
+ function decisionCard($$renderer3, d, asked) {
3614
+ ChatDecision($$renderer3, {
3615
+ decision: d,
3616
+ project: projectName(d.head.projectId),
3617
+ now,
3618
+ asked,
3619
+ thread: threadOwner().get(d.head.cardId) === d.id ? discussed().byCard.get(d.head.cardId) ?? null : null,
3620
+ pending: threadOwner().get(d.head.cardId) === d.id ? asking().get(d.head.cardId) ?? [] : [],
3621
+ focus: firstmateChat.synced && composerBus.decision === d.head.cardId && threadOwner().get(d.head.cardId) === d.id
3622
+ });
3623
+ }
3624
+ function decisionRow($$renderer3, d) {
3625
+ $$renderer3.push(`<div class="msg msg-firstmate msg-grouped"><span class="msg-gutter" aria-hidden="true"></span> <div class="min-w-0 flex-1"><div class="msg-tagline">`);
3626
+ tagOf($$renderer3, decisionTag(d), `decision:${d.head.cardId}`);
3627
+ $$renderer3.push(`<!----></div> `);
3628
+ decisionCard($$renderer3, d, null);
3629
+ $$renderer3.push(`<!----></div></div>`);
3630
+ }
3631
+ function decisionEntry($$renderer3, d) {
3632
+ const key = `d:${d.id}`;
3633
+ const v = view(key);
3634
+ if (v !== "show" && runs().get(key)?.first === key) {
3635
+ $$renderer3.push("<!--[0-->");
3636
+ foldLine($$renderer3, runs().get(key));
3637
+ } else {
3638
+ $$renderer3.push("<!--[-1-->");
3639
+ }
3640
+ $$renderer3.push(`<!--]--> `);
3641
+ if (v === "show" || v === "dim") {
3642
+ $$renderer3.push(`<!--[0--><div${attr_class(clsx(v === "dim" ? "thread-dim" : "contents"))}>`);
3643
+ decisionRow($$renderer3, d);
3644
+ $$renderer3.push(`<!----></div>`);
3645
+ } else {
3646
+ $$renderer3.push("<!--[-1-->");
3647
+ }
3648
+ $$renderer3.push(`<!--]-->`);
3649
+ }
3650
+ function batchEntry($$renderer3, b) {
3651
+ const key = `b:${b.id}`;
3652
+ const v = view(key);
3653
+ if (v !== "show" && runs().get(key)?.first === key) {
3654
+ $$renderer3.push("<!--[0-->");
3655
+ foldLine($$renderer3, runs().get(key));
3656
+ } else {
3657
+ $$renderer3.push("<!--[-1-->");
3658
+ }
3659
+ $$renderer3.push(`<!--]--> `);
3660
+ if (v === "show" || v === "dim") {
3661
+ $$renderer3.push(`<!--[0--><div${attr_class(`flex flex-col gap-1 ${v === "dim" ? "thread-dim" : ""}`)}><div class="msg-tagline">`);
3662
+ tagOf($$renderer3, batchTag(b), `batch:${b.id}`);
3663
+ $$renderer3.push(`<!----></div> `);
3664
+ FeedbackBatch($$renderer3, {
3665
+ batch: b,
3666
+ project: projectName(tasks.find((t) => t.id === b.batch.taskId)?.projectId ?? null)
3667
+ });
3668
+ $$renderer3.push(`<!----></div>`);
3669
+ } else {
3670
+ $$renderer3.push("<!--[-1-->");
3671
+ }
3672
+ $$renderer3.push(`<!--]-->`);
3673
+ }
3674
+ function tagOf($$renderer3, tag, key) {
3675
+ ThreadTag($$renderer3, {
3676
+ tag,
3677
+ threads: moveTo()
3678
+ });
3679
+ }
3680
+ function foldLine($$renderer3, run) {
3681
+ $$renderer3.push(`<button class="thread-fold"${attr("aria-expanded", !!openRuns[run.first])}${attr("data-fold", run.first)}>`);
3682
+ Chevron_right($$renderer3, {
3683
+ class: `size-3.5 shrink-0 transition-transform ${openRuns[run.first] ? "rotate-90" : ""}`,
3684
+ "aria-hidden": "true"
3685
+ });
3686
+ $$renderer3.push(`<!----> <span class="shrink-0">${escape_html(run.count)} ${escape_html(run.count === 1 ? "message" : "messages")} about</span> <span class="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5"><!--[-->`);
3687
+ const each_array = ensure_array_like(run.topics);
3688
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3689
+ let t = each_array[$$index];
3690
+ $$renderer3.push(`<span class="inline-flex items-center gap-1"><span class="thread-dot"${attr("data-hue", threadHue(t) ?? void 0)} aria-hidden="true"></span>${escape_html(threadName(t))}</span>`);
3691
+ }
3692
+ $$renderer3.push(`<!--]--></span> `);
3693
+ if (run.from && run.to) {
3694
+ $$renderer3.push(`<!--[0--><span class="tabular ml-auto shrink-0">${escape_html(time2(run.from))}${escape_html(run.to !== run.from ? `–${time2(run.to)}` : "")}</span>`);
3695
+ } else {
3696
+ $$renderer3.push("<!--[-1-->");
3697
+ }
3698
+ $$renderer3.push(`<!--]--></button>`);
3699
+ }
3700
+ let $$settled = true;
3701
+ let $$inner_renderer;
3702
+ function $$render_inner($$renderer3) {
3703
+ $$renderer3.push(`<section class="chat-grid relative flex min-h-0 min-w-0 flex-1 flex-col bg-panel" aria-label="Firstmate">`);
3704
+ {
3705
+ $$renderer3.push("<!--[-1-->");
3706
+ }
3707
+ $$renderer3.push(`<!--]--> <div class="border-b"><div class="flex h-14 items-center gap-3 px-4 text-sm sm:px-6 lg:px-10"><span class="text-[1.08rem] font-bold">Firstmate</span> `);
3708
+ if (chat().title) {
3709
+ $$renderer3.push(`<!--[0--><span class="hidden truncate text-[1.02rem] text-foreground/80 sm:inline">${escape_html(chat().title)}</span>`);
3710
+ } else {
3711
+ $$renderer3.push("<!--[-1-->");
3712
+ }
3713
+ $$renderer3.push(`<!--]--> <div class="relative ml-auto shrink-0"><button class="flex h-8.5 cursor-pointer items-center gap-1.5 rounded-full border bg-card/50 px-3 text-xs transition-colors hover:bg-muted max-md:h-11"${attr("aria-expanded", showChecks)} aria-haspopup="dialog">`);
3714
+ if (HIcon()) {
3715
+ $$renderer3.push("<!--[-->");
3716
+ HIcon()($$renderer3, {
3717
+ class: `size-3.5 ${stringify(HEALTH_TEXT[health.tone])}`,
3718
+ "aria-hidden": "true"
3719
+ });
3720
+ $$renderer3.push("<!--]-->");
3721
+ } else {
3722
+ $$renderer3.push("<!--[!-->");
3723
+ $$renderer3.push("<!--]-->");
3724
+ }
3725
+ $$renderer3.push(` <span class="font-medium">${escape_html(health.label)}</span> <span class="hidden text-muted-foreground md:inline">· `);
3726
+ if (checking()) {
3727
+ $$renderer3.push(`<!--[0--><span class="inline-flex items-center gap-1">`);
3728
+ Loader_circle($$renderer3, { class: "size-3 animate-spin", "aria-hidden": "true" });
3729
+ $$renderer3.push(`<!---->checking now</span>`);
3730
+ } else if (lastCheck()) {
3731
+ $$renderer3.push(`<!--[1-->checked ${escape_html(ago(lastCheck().at, now))}`);
3732
+ } else {
3733
+ $$renderer3.push(`<!--[-1-->no checks yet`);
3734
+ }
3735
+ $$renderer3.push(`<!--]--></span></button> `);
3736
+ {
3737
+ $$renderer3.push("<!--[-1-->");
3738
+ }
3739
+ $$renderer3.push(`<!--]--></div> <span${attr_class(`hidden h-8.5 shrink-0 items-center gap-2 rounded-full md:flex ${status().label === "Working" ? "border border-working/55 bg-working/10 px-3.5 font-medium text-foreground" : "text-muted-foreground"}`)}><span${attr_class(`size-2 rounded-full ${stringify(status().dot)}`)} aria-hidden="true"></span>${escape_html(status().label)}</span> `);
3740
+ if (liveEnabled()) {
3741
+ $$renderer3.push(`<!--[0--><button${attr_class(`flex h-9 shrink-0 cursor-pointer items-center gap-2 rounded-full border px-3 text-sm font-semibold transition-colors max-md:h-11 ${liveCall.on ? "border-sea/60 bg-sea/10 text-sea" : "text-muted-foreground hover:bg-muted hover:text-foreground"}`)}${attr("aria-pressed", liveCall.on)}${attr("aria-label", liveCall.on ? "End Live mode" : "Start Live mode")} title="Live mode: talk it through out loud with a discussion crew member while Firstmate keeps the watch"${attr("disabled", liveCall.state === "starting" || liveCall.state === "ending", true)}>`);
3742
+ Audio_lines($$renderer3, { class: "size-4", "aria-hidden": "true" });
3743
+ $$renderer3.push(`<!---->Live</button>`);
3744
+ } else {
3745
+ $$renderer3.push("<!--[-1-->");
3746
+ }
3747
+ $$renderer3.push(`<!--]--> <button${attr_class(`flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border transition-colors hover:bg-muted max-md:size-11 ${"text-muted-foreground"}`)}${attr("aria-label", "Search the chat history")}${attr("aria-pressed", searching)} title="Search every conversation with Firstmate">`);
3748
+ Search($$renderer3, { class: "size-4" });
3749
+ $$renderer3.push(`<!----></button> `);
3750
+ if (session()?.state === "ours") {
3751
+ $$renderer3.push(`<!--[0--><button${attr_class(`flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border transition-colors hover:bg-muted max-md:size-11 ${"text-muted-foreground"}`)}${attr("aria-label", "Show Firstmate’s terminal")}${attr("aria-pressed", terminalOpen)} title="Firstmate’s own terminal, for anything the chat cannot show">`);
3752
+ Square_terminal($$renderer3, { class: "size-4" });
3753
+ $$renderer3.push(`<!----></button>`);
3754
+ } else {
3755
+ $$renderer3.push("<!--[-1-->");
3756
+ }
3757
+ $$renderer3.push(`<!--]--> `);
3758
+ if (onSwapRail && railOpen) {
3759
+ $$renderer3.push(`<!--[0--><button class="hidden size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border text-muted-foreground transition-colors hover:bg-muted hover:text-foreground lg:flex"${attr("aria-label", railSide === "left" ? "Move On deck to the right" : "Move On deck to the left")}${attr("title", railSide === "left" ? "Move On deck to the right" : "Move On deck to the left")}>`);
3760
+ Arrow_left_right($$renderer3, { class: "size-4" });
3761
+ $$renderer3.push(`<!----></button>`);
3762
+ } else {
3763
+ $$renderer3.push("<!--[-1-->");
3764
+ }
3765
+ $$renderer3.push(`<!--]--> <button class="relative flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border text-muted-foreground transition-colors hover:bg-muted hover:text-foreground max-md:hidden"${attr("aria-label", railOpen ? "Hide tasks and decisions" : "Show tasks and decisions")}${attr("aria-pressed", railOpen)}>`);
3766
+ if (railSide === "left") {
3767
+ $$renderer3.push("<!--[0-->");
3768
+ Panel_left($$renderer3, { class: "size-4" });
3769
+ } else {
3770
+ $$renderer3.push("<!--[-1-->");
3771
+ Panel_right($$renderer3, { class: "size-4" });
3772
+ }
3773
+ $$renderer3.push(`<!--]--> `);
3774
+ if (waiting && !railOpen) {
3775
+ $$renderer3.push(`<!--[0--><span class="absolute top-1.5 right-1.5 size-2 rounded-full bg-sea"${attr("aria-label", `${stringify(waiting)} waiting on you`)}></span>`);
3776
+ } else {
3777
+ $$renderer3.push("<!--[-1-->");
3778
+ }
3779
+ $$renderer3.push(`<!--]--></button></div></div> `);
3780
+ if (liveEnabled() && liveCall.on) {
3781
+ $$renderer3.push("<!--[0-->");
3782
+ LiveBar($$renderer3);
3783
+ } else {
3784
+ $$renderer3.push("<!--[-1-->");
3785
+ }
3786
+ $$renderer3.push(`<!--]--> `);
3787
+ {
3788
+ $$renderer3.push("<!--[-1-->");
3789
+ }
3790
+ $$renderer3.push(`<!--]--> <div class="relative min-h-0 flex-1"><div class="no-scrollbar h-full overflow-y-auto"><div class="flex flex-col gap-6 px-4 pt-8 pb-10 sm:px-6 lg:px-10"><div${attr("data-chat-history", firstmateChat.older)}>`);
3791
+ if (firstmateChat.older === "loading") {
3792
+ $$renderer3.push(`<!--[0--><p class="history-edge" role="status">`);
3793
+ Loader_circle($$renderer3, { class: "size-3.5 animate-spin", "aria-hidden": "true" });
3794
+ $$renderer3.push(`<!---->Reading earlier
3795
+ messages…</p>`);
3796
+ } else if (firstmateChat.older === "failed") {
3797
+ $$renderer3.push(`<!--[1--><p class="history-edge" role="alert">Earlier messages could not be read. <button class="cursor-pointer underline underline-offset-2 hover:text-foreground">Try again</button></p>`);
3798
+ } else if (firstmateChat.older === "more") {
3799
+ $$renderer3.push(`<!--[2--><button class="history-edge cursor-pointer hover:text-foreground">Show earlier messages</button>`);
3800
+ } else if (firstmateChat.older === "none" && items().length) {
3801
+ $$renderer3.push(`<!--[3--><p class="history-edge">The chat history begins here.</p>`);
3802
+ } else if (firstmateChat.older === "unavailable" && firstmateChat.source?.truncated) {
3803
+ $$renderer3.push(`<!--[4--><p class="history-edge">Earlier messages are not shown here; the full conversation is in Firstmate’s terminal.</p>`);
3804
+ } else {
3805
+ $$renderer3.push("<!--[-1-->");
3806
+ }
3807
+ $$renderer3.push(`<!--]--></div> `);
3808
+ if (session()?.state === "ours" && !session().canSend) {
3809
+ $$renderer3.push(`<!--[0--><div class="my-8 flex max-w-lg flex-col items-start gap-3 rounded-lg border border-warning/40 bg-warning/5 p-4" role="alert" data-session-recovery=""><p class="font-medium">Restart needed to connect chat</p> <p class="text-sm text-muted-foreground">${escape_html(session().reason)}</p> <button class="cursor-pointer rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background">Open Firstmate’s terminal</button> <p class="text-sm text-muted-foreground">Exit the coding tool from its prompt. Closing Wheelhouse alone leaves it running. Then
3810
+ choose “Start Firstmate here” to launch it with chat connected.</p></div>`);
3811
+ } else if (session() && session().state !== "ours" && session().state !== "external") {
3812
+ $$renderer3.push(`<!--[1--><div class="my-8 flex max-w-md flex-col items-start gap-3"><p class="font-medium">${escape_html(session().state === "starting" ? "Starting Firstmate…" : "Firstmate is not running")}</p> `);
3813
+ if (session().reason && session().state !== "starting") {
3814
+ $$renderer3.push(`<!--[0--><p class="text-sm text-muted-foreground">${escape_html(session().reason)}</p>`);
3815
+ } else {
3816
+ $$renderer3.push("<!--[-1-->");
3817
+ }
3818
+ $$renderer3.push(`<!--]--> `);
3819
+ if (session().state === "none") {
3820
+ $$renderer3.push(`<!--[0--><button class="flex cursor-pointer items-center gap-2 rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background disabled:opacity-50"${attr("disabled", starting, true)}>`);
3821
+ {
3822
+ $$renderer3.push("<!--[-1-->");
3823
+ }
3824
+ $$renderer3.push(`<!--]-->Start Firstmate here</button> <p class="text-xs text-muted-foreground">It runs in Firstmate’s checkout${escape_html(session().skipPermissions ? " with --dangerously-skip-permissions" : "")}, inside a tmux session that keeps going when you close Wheelhouse.</p> `);
3825
+ {
3826
+ $$renderer3.push("<!--[-1-->");
3827
+ }
3828
+ $$renderer3.push(`<!--]-->`);
3829
+ } else {
3830
+ $$renderer3.push("<!--[-1-->");
3831
+ }
3832
+ $$renderer3.push(`<!--]--></div>`);
3833
+ } else if (!items().length) {
3834
+ $$renderer3.push(`<!--[2--><p class="py-20 text-sm text-muted-foreground">${escape_html(session() ? "No messages yet. Say hello to Firstmate." : "Reading the conversation…")}</p>`);
3835
+ } else {
3836
+ $$renderer3.push("<!--[-1-->");
3837
+ }
3838
+ $$renderer3.push(`<!--]--> `);
3839
+ if (current()) {
3840
+ $$renderer3.push(`<!--[0--><div class="thread-note" role="status" data-thread-note=""><p>Showing the <b>${escape_html(threadName(current()))}</b> thread: ${escape_html(inThread())} of ${escape_html(entries().length)}
3841
+ ${escape_html(entries().length === 1 ? "message" : "messages")}.${escape_html(current() !== UNSORTED ? " What you send from here is sent in it." : "")}</p> <div class="flex flex-wrap items-center gap-x-4 gap-y-1"><label class="flex cursor-pointer items-center gap-1.5"><input type="checkbox" class="accent-sea"${attr("checked", chatTags.fold, true)}/>Fold other threads to a line</label> <button class="cursor-pointer font-medium text-sea hover:underline">Show all threads</button></div></div>`);
3842
+ } else {
3843
+ $$renderer3.push("<!--[-1-->");
3844
+ }
3845
+ $$renderer3.push(`<!--]--> <!--[-->`);
3846
+ const each_array_3 = ensure_array_like(items());
3847
+ for (let i = 0, $$length = each_array_3.length; i < $$length; i++) {
3848
+ let item = each_array_3[i];
3849
+ const grouped = groupedWithPrevious(i);
3850
+ const v = view(item.id);
3851
+ $$renderer3.push(`<!--[-->`);
3852
+ const each_array_4 = ensure_array_like(placed().before.get(i) ?? []);
3853
+ for (let $$index_3 = 0, $$length2 = each_array_4.length; $$index_3 < $$length2; $$index_3++) {
3854
+ let d = each_array_4[$$index_3];
3855
+ decisionEntry($$renderer3, d);
3856
+ }
3857
+ $$renderer3.push(`<!--]--> <!--[-->`);
3858
+ const each_array_5 = ensure_array_like(batches().before.get(i) ?? []);
3859
+ for (let $$index_4 = 0, $$length2 = each_array_5.length; $$index_4 < $$length2; $$index_4++) {
3860
+ let b = each_array_5[$$index_4];
3861
+ batchEntry($$renderer3, b);
3862
+ }
3863
+ $$renderer3.push(`<!--]--> `);
3864
+ if (discussed().hidden.has(item.id)) {
3865
+ $$renderer3.push("<!--[0-->");
3866
+ } else if (v !== "show" && runs().get(item.id)?.first === item.id) {
3867
+ $$renderer3.push("<!--[1-->");
3868
+ foldLine($$renderer3, runs().get(item.id));
3869
+ } else {
3870
+ $$renderer3.push("<!--[-1-->");
3871
+ }
3872
+ $$renderer3.push(`<!--]--> `);
3873
+ if (discussed().hidden.has(item.id) || v === "hide" || v === "line") {
3874
+ $$renderer3.push("<!--[0-->");
3875
+ } else if (item.kind === "user") {
3876
+ $$renderer3.push("<!--[1-->");
3877
+ const reply = parseReply$1(item.text);
3878
+ const sent = parseAttachments(parseThread(reply.body).text);
3879
+ const tag = tagged().users.get(item.id) ?? UNSORTED_TAG;
3880
+ const prevAt = previousShown(i);
3881
+ $$renderer3.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""} ${v === "dim" ? "thread-dim" : ""}`)}${attr("aria-label", `You, ${stringify(time2(item.at))}`)}>`);
3882
+ if (grouped) {
3883
+ $$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
3884
+ } else {
3885
+ $$renderer3.push(`<!--[-1--><span class="captain-avatar">C</span>`);
3886
+ }
3887
+ $$renderer3.push(`<!--]--> <div class="min-w-0 flex-1">`);
3888
+ if (!grouped) {
3889
+ $$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time> `);
3890
+ if (item.queued) {
3891
+ $$renderer3.push(`<!--[0--><span>· sent while Firstmate was working</span>`);
3892
+ } else {
3893
+ $$renderer3.push("<!--[-1-->");
3894
+ }
3895
+ $$renderer3.push(`<!--]--> `);
3896
+ tagOf($$renderer3, tag, item.id);
3897
+ $$renderer3.push(`<!----></header>`);
3898
+ } else if (prevAt < 0 || lastTopic(items()[prevAt]) !== tag.topic) {
3899
+ $$renderer3.push(`<!--[1--><div class="msg-tagline">`);
3900
+ tagOf($$renderer3, tag, item.id);
3901
+ $$renderer3.push(`<!----></div>`);
3902
+ } else {
3903
+ $$renderer3.push("<!--[-1-->");
3904
+ }
3905
+ $$renderer3.push(`<!--]--> `);
3906
+ if (reply.to || sent.text) {
3907
+ $$renderer3.push(`<!--[0--><div class="bubble-row"><div${attr_class(`bubble bubble-captain ${item.command ? "font-mono text-sm" : ""}`)}${attr("data-bubble", item.id)}>`);
3908
+ if (reply.to) {
3909
+ $$renderer3.push("<!--[0-->");
3910
+ quote($$renderer3, reply.to, original(reply.to, i));
3911
+ } else {
3912
+ $$renderer3.push("<!--[-1-->");
3913
+ }
3914
+ $$renderer3.push(`<!--]-->`);
3915
+ captainText($$renderer3, sent.text, true);
3916
+ $$renderer3.push(`<!----></div> `);
3917
+ if (via() && !item.command) {
3918
+ $$renderer3.push("<!--[0-->");
3919
+ replyButton($$renderer3, item.id, "captain", item.text);
3920
+ } else {
3921
+ $$renderer3.push("<!--[-1-->");
3922
+ }
3923
+ $$renderer3.push(`<!--]--></div>`);
3924
+ } else {
3925
+ $$renderer3.push("<!--[-1-->");
3926
+ }
3927
+ $$renderer3.push(`<!--]--> `);
3928
+ if (sent.files.length) {
3929
+ $$renderer3.push("<!--[0-->");
3930
+ SentFiles($$renderer3, { files: sent.files });
3931
+ } else {
3932
+ $$renderer3.push("<!--[-1-->");
3933
+ }
3934
+ $$renderer3.push(`<!--]--></div></article>`);
3935
+ } else if (item.kind === "session") {
3936
+ $$renderer3.push(`<!--[2--><div class="session-divider" role="separator"${attr("aria-label", `${item.first ? "Firstmate session started" : "Firstmate restarted"}, ${stringify(when(item.at))}`)} data-session-divider=""><span>${escape_html(item.first ? "Firstmate session started" : "Firstmate restarted")} · <time${attr("datetime", item.at)}>${escape_html(when(item.at))}</time></span></div>`);
3937
+ } else if (item.kind === "output") {
3938
+ $$renderer3.push(`<!--[3--><pre${attr_class(`no-scrollbar max-h-80 max-w-[80ch] overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground ${v === "dim" ? "thread-dim" : ""}`)}>${escape_html(item.text)}</pre>`);
3939
+ } else if (item.kind === "notice") {
3940
+ $$renderer3.push(`<!--[4--><div${attr_class(`flex flex-col items-start ${v === "dim" ? "thread-dim" : ""}`)}><button class="-ml-3 flex max-w-full cursor-pointer items-center gap-2 rounded-full px-3 py-1 text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"${attr("aria-expanded", !!openNotice[item.id])}>`);
3941
+ Bell($$renderer3, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
3942
+ $$renderer3.push(`<!----> <span class="truncate">${escape_html(item.title)} · ${escape_html(time2(item.at))}</span> `);
3943
+ Chevron_right($$renderer3, {
3944
+ class: `size-3.5 shrink-0 transition-transform ${openNotice[item.id] ? "rotate-90" : ""}`,
3945
+ "aria-hidden": "true"
3946
+ });
3947
+ $$renderer3.push(`<!----></button> `);
3948
+ if (openNotice[item.id]) {
3949
+ $$renderer3.push(`<!--[0--><div class="mt-2 w-full max-w-[80ch] rounded-lg border bg-card px-4 py-3 text-sm whitespace-pre-wrap text-muted-foreground">`);
3950
+ LinkedText($$renderer3, { text: item.detail });
3951
+ $$renderer3.push(`<!----></div>`);
3952
+ } else {
3953
+ $$renderer3.push("<!--[-1-->");
3954
+ }
3955
+ $$renderer3.push(`<!--]--></div>`);
3956
+ } else {
3957
+ $$renderer3.push("<!--[-1-->");
3958
+ const prevAt = previousShown(i);
3959
+ const lay = layoutTurn(item, v === "dim" || !current(), grouped, prevAt >= 0 ? lastTopic(items()[prevAt]) : null);
3960
+ $$renderer3.push(`<article${attr_class(`msg msg-firstmate ${grouped ? "msg-grouped" : ""} ${v === "dim" ? "thread-dim" : ""}`)}${attr("aria-label", `Firstmate, ${stringify(time2(item.at))}`)}>`);
3961
+ if (grouped) {
3962
+ $$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
3963
+ } else {
3964
+ $$renderer3.push("<!--[-1-->");
3965
+ Avatar($$renderer3, { class: "msg-avatar size-8" });
3966
+ }
3967
+ $$renderer3.push(`<!--]--> <div class="flex min-w-0 flex-1 flex-col gap-2">`);
3968
+ if (!grouped) {
3969
+ $$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">Firstmate</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time> `);
3970
+ if (lay.head) {
3971
+ $$renderer3.push("<!--[0-->");
3972
+ tagOf($$renderer3, lay.head.tag, lay.head.key);
3973
+ } else {
3974
+ $$renderer3.push("<!--[-1-->");
3975
+ }
3976
+ $$renderer3.push(`<!--]--></header>`);
3977
+ } else {
3978
+ $$renderer3.push("<!--[-1-->");
3979
+ }
3980
+ $$renderer3.push(`<!--]--> <!--[-->`);
3981
+ const each_array_6 = ensure_array_like(item.parts);
3982
+ for (let pi = 0, $$length2 = each_array_6.length; pi < $$length2; pi++) {
3983
+ let part = each_array_6[pi];
3984
+ if (part.kind === "text") {
3985
+ $$renderer3.push("<!--[0-->");
3986
+ const asked = forms().get(part.id);
3987
+ const words2 = replyWords(part);
3988
+ const shown2 = lay.parts.get(part.id);
3989
+ const tracked = linked().get(part.id);
3990
+ const again = formLinks().earlier.get(part.id);
3991
+ if (shown2?.above) {
3992
+ $$renderer3.push(`<!--[0--><div class="msg-tagline -mb-1">`);
3993
+ tagOf($$renderer3, shown2.above.tag, shown2.above.key);
3994
+ $$renderer3.push(`<!----></div>`);
3995
+ } else {
3996
+ $$renderer3.push("<!--[-1-->");
3997
+ }
3998
+ $$renderer3.push(`<!--]--> `);
3999
+ if (words2 && shown2?.secs.length) {
4000
+ $$renderer3.push("<!--[0-->");
4001
+ const brief = isBriefing(words2);
4002
+ $$renderer3.push(`<div class="bubble-row"><div${attr_class(`chat-md bubble bubble-firstmate ${brief ? "bubble-brief" : ""}`)}${attr("data-bubble", part.id)}${attr("data-briefing", brief || void 0)}>`);
4003
+ if (brief) {
4004
+ $$renderer3.push(`<!--[0--><div class="brief-head"><span class="brief-tag">Briefing</span><span class="truncate">Firstmate${escape_html(chat().title ? ` · ${chat().title}` : "")}</span></div>`);
4005
+ } else {
4006
+ $$renderer3.push("<!--[-1-->");
4007
+ }
4008
+ $$renderer3.push(`<!--]--> `);
4009
+ if (shown2.secs.length > 1) {
4010
+ $$renderer3.push(`<!--[0--><!--[-->`);
4011
+ const each_array_7 = ensure_array_like(shown2.secs);
4012
+ for (let $$index_5 = 0, $$length3 = each_array_7.length; $$index_5 < $$length3; $$index_5++) {
4013
+ let sec = each_array_7[$$index_5];
4014
+ if (sec.intro) {
4015
+ $$renderer3.push(`<!--[0--><div class="mb-3">${html(md(sec.text))}</div>`);
4016
+ } else {
4017
+ $$renderer3.push(`<!--[-1--><div class="thread-section"${attr("data-hue", threadHue(sec.tag.topic) ?? void 0)}><div class="mb-1">`);
4018
+ tagOf($$renderer3, sec.tag, sec.key);
4019
+ $$renderer3.push(`<!----></div> ${html(md(sec.text))}</div>`);
4020
+ }
4021
+ $$renderer3.push(`<!--]-->`);
4022
+ }
4023
+ $$renderer3.push(`<!--]-->`);
4024
+ } else {
4025
+ $$renderer3.push(`<!--[-1-->${html(md(shown2.whole ? words2 : shown2.secs[0].text))}`);
4026
+ }
4027
+ $$renderer3.push(`<!--]-->`);
4028
+ if (reactions.has(part.id)) {
4029
+ $$renderer3.push(`<!--[0--><span class="thumbs-mark" role="img" aria-label="You gave this a thumbs-up">👍</span>`);
4030
+ } else {
4031
+ $$renderer3.push("<!--[-1-->");
4032
+ }
4033
+ $$renderer3.push(`<!--]--></div> `);
4034
+ if (via()) {
4035
+ $$renderer3.push("<!--[0-->");
4036
+ replyButton($$renderer3, part.id, "firstmate");
4037
+ $$renderer3.push(`<!---->`);
4038
+ thumbsButton($$renderer3, part.id);
4039
+ $$renderer3.push(`<!---->`);
4040
+ } else {
4041
+ $$renderer3.push("<!--[-1-->");
4042
+ }
4043
+ $$renderer3.push(`<!--]--></div>`);
4044
+ } else {
4045
+ $$renderer3.push("<!--[-1-->");
4046
+ }
4047
+ $$renderer3.push(`<!--]--> `);
4048
+ if (asked && tracked && shown2?.secs.length) {
4049
+ $$renderer3.push("<!--[0-->");
4050
+ decisionCard($$renderer3, tracked, asked.form);
4051
+ } else if (asked && again && shown2?.secs.length) {
4052
+ $$renderer3.push(`<!--[1--><p class="flex w-full max-w-[min(100%,40rem)] items-center gap-1.5 rounded-lg border bg-card/60 px-4 py-2 text-xs text-muted-foreground sm:px-5" data-chat-form="replaced"${attr("data-asked-again", again.id)}>`);
4053
+ Message_circle_question_mark($$renderer3, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
4054
+ $$renderer3.push(`<!----><span>Firstmate asked this decision again below: “${escape_html(again.card?.title ?? again.head.question)}”</span></p>`);
4055
+ } else if (asked && shown2?.secs.length) {
4056
+ $$renderer3.push(`<!--[2--><div${attr_class(`w-full max-w-[min(100%,40rem)] rounded-lg border border-dashed bg-card/60 px-4 pt-2 pb-3 sm:px-5 ${asked.active ? "border-sea/60" : ""}`)}${attr("data-chat-form", asked.active ? "open" : asked.decided !== null ? "answered" : asked.dismissed !== null ? "dismissed" : "replaced")} data-quick-question=""><p class="flex items-center gap-1.5 text-xs text-muted-foreground" title="Asked here only: it is not on the Decisions page, and answering it closes nothing there">`);
4057
+ Message_circle_question_mark($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
4058
+ $$renderer3.push(`<!----><span>Quick question · not a tracked decision</span></p> `);
4059
+ DecisionForm($$renderer3, {
4060
+ form: asked.form,
4061
+ name: part.id,
4062
+ canAnswer: asked.active && !!via() && !held(),
4063
+ decided: asked.decided,
4064
+ dismissed: asked.dismissed,
4065
+ onAnswer: (a, note) => decide(part.id, a, note),
4066
+ onDismiss: (reason) => dismissForm(part.id, reason)
4067
+ });
4068
+ $$renderer3.push(`<!----> `);
4069
+ if (!asked.active && asked.decided === null && asked.dismissed === null) {
4070
+ $$renderer3.push(`<!--[0--><p class="mt-2 text-xs text-muted-foreground">A later question from Firstmate replaced this one.</p>`);
4071
+ } else {
4072
+ $$renderer3.push("<!--[-1-->");
4073
+ }
4074
+ $$renderer3.push(`<!--]--></div>`);
4075
+ } else {
4076
+ $$renderer3.push("<!--[-1-->");
4077
+ }
4078
+ $$renderer3.push(`<!--]--> `);
4079
+ if (shown2?.secs.length) {
4080
+ $$renderer3.push(`<!--[0--><!--[-->`);
4081
+ const each_array_8 = ensure_array_like(asks().get(part.id) ?? []);
4082
+ for (let ai = 0, $$length3 = each_array_8.length; ai < $$length3; ai++) {
4083
+ let a = each_array_8[ai];
4084
+ $$renderer3.push(`<div${attr_class(`flex w-full max-w-[min(100%,40rem)] items-start gap-3 rounded-lg border border-l-[3px] bg-card px-4 py-3 ${a.stored ? "border-l-success/70" : "border-l-brass"}`)}${attr("data-vault-request", a.stored ? "stored" : "open")}>`);
4085
+ Key_round($$renderer3, {
4086
+ class: "mt-0.5 size-4 shrink-0 text-brass",
4087
+ "aria-hidden": "true"
4088
+ });
4089
+ $$renderer3.push(`<!----> <div class="min-w-0 flex-1"><p class="text-sm">Firstmate asks for <span class="font-mono font-medium">${escape_html(a.request.name)}</span></p> `);
4090
+ if (a.request.purpose) {
4091
+ $$renderer3.push(`<!--[0--><p class="mt-0.5 text-sm text-muted-foreground">${escape_html(a.request.purpose)}</p>`);
4092
+ } else {
4093
+ $$renderer3.push("<!--[-1-->");
4094
+ }
4095
+ $$renderer3.push(`<!--]--> `);
4096
+ if (a.stored) {
4097
+ $$renderer3.push(`<!--[0--><p class="mt-1 flex items-center gap-1 text-xs text-muted-foreground">`);
4098
+ Circle_check($$renderer3, { class: "size-3.5 text-success", "aria-hidden": "true" });
4099
+ $$renderer3.push(`<!---->Stored in the vault</p>`);
4100
+ } else {
4101
+ $$renderer3.push("<!--[-1-->");
4102
+ }
4103
+ $$renderer3.push(`<!--]--></div> <button type="button" class="shrink-0 cursor-pointer rounded-md border px-3 py-1.5 text-sm transition-colors hover:bg-muted">${escape_html(a.stored ? "Store again…" : `Add ${a.request.name}…`)}</button></div>`);
4104
+ }
4105
+ $$renderer3.push(`<!--]--> <!--[-->`);
4106
+ const each_array_9 = ensure_array_like(matchBridgeCards(part.text, pluginEntries));
4107
+ for (let $$index_7 = 0, $$length3 = each_array_9.length; $$index_7 < $$length3; $$index_7++) {
4108
+ let { entry, card } = each_array_9[$$index_7];
4109
+ $$renderer3.push(`<div class="max-w-[80ch] rounded-xl border bg-card p-4" data-slot="bridge.card"><p class="font-medium">${escape_html(card.title)}</p> <div class="mt-2">`);
4110
+ Blocks($$renderer3, { blocks: card.blocks });
4111
+ $$renderer3.push(`<!----></div></div>`);
4112
+ }
4113
+ $$renderer3.push(`<!--]-->`);
4114
+ } else {
4115
+ $$renderer3.push("<!--[-1-->");
4116
+ }
4117
+ $$renderer3.push(`<!--]--> <!--[-->`);
4118
+ const each_array_10 = ensure_array_like(previews().get(part.id) ?? []);
4119
+ for (let $$index_8 = 0, $$length3 = each_array_10.length; $$index_8 < $$length3; $$index_8++) {
4120
+ let pv = each_array_10[$$index_8];
4121
+ if (!pv.task) {
4122
+ $$renderer3.push("<!--[0-->");
4123
+ ChatPreview($$renderer3, { preview: pv, now });
4124
+ } else {
4125
+ $$renderer3.push("<!--[-1-->");
4126
+ const ptag = previewTag(pv.task.id, pv.task.projectId);
4127
+ if (v === "dim" || !current() || ptag.topic === current()) {
4128
+ $$renderer3.push(`<!--[0--><div class="flex flex-col gap-1"><div class="msg-tagline">`);
4129
+ tagOf($$renderer3, ptag, `preview:${pv.task.id}`);
4130
+ $$renderer3.push(`<!----></div> `);
4131
+ ChatPreview($$renderer3, { preview: pv, project: projectName(pv.task.projectId), now });
4132
+ $$renderer3.push(`<!----></div>`);
4133
+ } else {
4134
+ $$renderer3.push("<!--[-1-->");
4135
+ }
4136
+ $$renderer3.push(`<!--]-->`);
4137
+ }
4138
+ $$renderer3.push(`<!--]-->`);
4139
+ }
4140
+ $$renderer3.push(`<!--]-->`);
4141
+ } else if (part.kind === "question") {
4142
+ $$renderer3.push("<!--[1-->");
4143
+ QuestionCard($$renderer3, { part });
4144
+ } else {
4145
+ $$renderer3.push("<!--[-1-->");
4146
+ Activity($$renderer3, { steps: part.steps, live: isLive(item, pi) });
4147
+ $$renderer3.push(`<!----> <!--[-->`);
4148
+ const each_array_11 = ensure_array_like(part.steps);
4149
+ for (let $$index_9 = 0, $$length3 = each_array_11.length; $$index_9 < $$length3; $$index_9++) {
4150
+ let step = each_array_11[$$index_9];
4151
+ if (apps[step.id]) {
4152
+ $$renderer3.push("<!--[0-->");
4153
+ var bind_get = () => !collapsedApps[step.id];
4154
+ var bind_set = (v2) => collapsedApps[step.id] = !v2;
4155
+ ChatApp($$renderer3, {
4156
+ id: step.id,
4157
+ app: apps[step.id],
4158
+ get open() {
4159
+ return bind_get();
4160
+ },
4161
+ set open($$value) {
4162
+ bind_set($$value);
4163
+ }
4164
+ });
4165
+ } else {
4166
+ $$renderer3.push("<!--[-1-->");
4167
+ }
4168
+ $$renderer3.push(`<!--]-->`);
4169
+ }
4170
+ $$renderer3.push(`<!--]-->`);
4171
+ }
4172
+ $$renderer3.push(`<!--]-->`);
4173
+ }
4174
+ $$renderer3.push(`<!--]--> `);
4175
+ if (lay.hidden) {
4176
+ $$renderer3.push(`<!--[0--><span class="text-xs text-muted-foreground" data-other-threads="">+ ${escape_html(lay.hidden)}
4177
+ ${escape_html(lay.hidden === 1 ? "part" : "parts")} about other threads</span>`);
4178
+ } else {
4179
+ $$renderer3.push("<!--[-1-->");
4180
+ }
4181
+ $$renderer3.push(`<!--]--> `);
4182
+ if (item.interrupted) {
4183
+ $$renderer3.push(`<!--[0--><span class="text-xs text-muted-foreground">Stopped</span>`);
4184
+ } else if (item.done && item.durationMs) {
4185
+ $$renderer3.push(`<!--[1--><span class="worked-for">Worked for ${escape_html(duration(item.durationMs))}</span>`);
4186
+ } else {
4187
+ $$renderer3.push("<!--[-1-->");
4188
+ }
4189
+ $$renderer3.push(`<!--]--></div></article>`);
4190
+ }
4191
+ $$renderer3.push(`<!--]-->`);
4192
+ }
4193
+ $$renderer3.push(`<!--]--> <!--[-->`);
4194
+ const each_array_12 = ensure_array_like(placed().end);
4195
+ for (let $$index_12 = 0, $$length = each_array_12.length; $$index_12 < $$length; $$index_12++) {
4196
+ let d = each_array_12[$$index_12];
4197
+ decisionEntry($$renderer3, d);
4198
+ }
4199
+ $$renderer3.push(`<!--]--> <!--[-->`);
4200
+ const each_array_13 = ensure_array_like(batches().end);
4201
+ for (let $$index_13 = 0, $$length = each_array_13.length; $$index_13 < $$length; $$index_13++) {
4202
+ let b = each_array_13[$$index_13];
4203
+ batchEntry($$renderer3, b);
4204
+ }
4205
+ $$renderer3.push(`<!--]--> <!--[-->`);
4206
+ const each_array_14 = ensure_array_like(chatPending());
4207
+ for (let pi = 0, $$length = each_array_14.length; pi < $$length; pi++) {
4208
+ let p = each_array_14[pi];
4209
+ const grouped = pi > 0 || lastItem()?.kind === "user";
4210
+ const reply = parseReply$1(p.text);
4211
+ const sent = parseAttachments(parseThread(reply.body).text);
4212
+ $$renderer3.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""}`)}${attr("data-pending", p.state)}${attr("aria-label", `You, ${stringify(pendingLabel(p))}`)}>`);
4213
+ if (grouped) {
4214
+ $$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
4215
+ } else {
4216
+ $$renderer3.push(`<!--[-1--><span class="captain-avatar">C</span>`);
4217
+ }
4218
+ $$renderer3.push(`<!--]--> <div class="min-w-0 flex-1">`);
4219
+ if (!grouped) {
4220
+ $$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span></header>`);
4221
+ } else {
4222
+ $$renderer3.push("<!--[-1-->");
4223
+ }
4224
+ $$renderer3.push(`<!--]--> `);
4225
+ if (reply.to || sent.text) {
4226
+ $$renderer3.push(`<!--[0--><div${attr_class(`bubble bubble-captain border-dashed ${p.state === "failed" ? "border-danger/60" : "opacity-60"}`)}>`);
4227
+ if (reply.to) {
4228
+ $$renderer3.push("<!--[0-->");
4229
+ quote($$renderer3, reply.to, original(reply.to));
4230
+ } else {
4231
+ $$renderer3.push("<!--[-1-->");
4232
+ }
4233
+ $$renderer3.push(`<!--]-->`);
4234
+ captainText($$renderer3, sent.text, false);
4235
+ $$renderer3.push(`<!----></div>`);
4236
+ } else {
4237
+ $$renderer3.push("<!--[-1-->");
4238
+ }
4239
+ $$renderer3.push(`<!--]--> `);
4240
+ if (sent.files.length) {
4241
+ $$renderer3.push("<!--[0-->");
4242
+ SentFiles($$renderer3, { files: sent.files, pending: true });
4243
+ } else {
4244
+ $$renderer3.push("<!--[-1-->");
4245
+ }
4246
+ $$renderer3.push(`<!--]--> <p${attr_class(`mt-1.5 flex flex-wrap items-center gap-1.5 text-xs ${p.state === "failed" ? "text-danger" : "text-muted-foreground"}`)} role="status">`);
4247
+ if (p.state === "failed") {
4248
+ $$renderer3.push("<!--[0-->");
4249
+ Circle_x($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
4250
+ $$renderer3.push(`<!---->${escape_html(pendingLabel(p))} <button class="ml-1 inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-muted">`);
4251
+ Rotate_cw($$renderer3, { class: "size-3", "aria-hidden": "true" });
4252
+ $$renderer3.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
4253
+ } else {
4254
+ $$renderer3.push("<!--[-1-->");
4255
+ Loader_circle($$renderer3, { class: "size-3 animate-spin", "aria-hidden": "true" });
4256
+ $$renderer3.push(`<!---->${escape_html(pendingLabel(p))}`);
4257
+ }
4258
+ $$renderer3.push(`<!--]--></p></div></article>`);
4259
+ }
4260
+ $$renderer3.push(`<!--]--> `);
4261
+ if (liveEnabled() && liveCall.entries.length) {
4262
+ $$renderer3.push("<!--[0-->");
4263
+ LiveEntries($$renderer3, { tasks, now, projectName });
4264
+ } else {
4265
+ $$renderer3.push("<!--[-1-->");
4266
+ }
4267
+ $$renderer3.push(`<!--]--> `);
4268
+ if (picker()) {
4269
+ $$renderer3.push("<!--[0-->");
4270
+ PickerCard($$renderer3, { picker: picker() });
4271
+ } else if (signIn()) {
4272
+ $$renderer3.push("<!--[1-->");
4273
+ SignInCard($$renderer3, {
4274
+ signIn: signIn(),
4275
+ tool: tool()
4276
+ });
4277
+ } else if (inTerminal()) {
4278
+ $$renderer3.push("<!--[2-->");
4279
+ TerminalNotice($$renderer3, {
4280
+ detail: inTerminal().detail,
4281
+ tool: tool()
4282
+ });
4283
+ } else if (menu()) {
4284
+ $$renderer3.push("<!--[3-->");
4285
+ MenuCard($$renderer3, { menu: menu(), tool: tool() });
4286
+ } else if (working()) {
4287
+ $$renderer3.push(`<!--[4--><div class="flex gap-1 py-1" aria-label="Firstmate is working" role="status"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></div>`);
4288
+ } else {
4289
+ $$renderer3.push("<!--[-1-->");
4290
+ }
4291
+ $$renderer3.push(`<!--]--></div></div> `);
4292
+ {
4293
+ $$renderer3.push("<!--[-1-->");
4294
+ }
4295
+ $$renderer3.push(`<!--]--> `);
4296
+ {
4297
+ $$renderer3.push("<!--[-1-->");
4298
+ }
4299
+ $$renderer3.push(`<!--]--></div> <div class="bg-panel px-4 pb-4 sm:px-6 lg:px-10">`);
4300
+ if (vaultNotice) {
4301
+ $$renderer3.push(`<!--[0--><p class="mb-2 flex items-start gap-2 rounded-md border border-success/40 bg-success/5 px-3 py-2 text-sm" role="status" data-vault-notice=""><span class="min-w-0 flex-1">${escape_html(vaultNotice)}</span> <button class="-my-0.5 shrink-0 cursor-pointer rounded p-0.5 text-muted-foreground hover:text-foreground" aria-label="Dismiss">`);
4302
+ X($$renderer3, { class: "size-4" });
4303
+ $$renderer3.push(`<!----></button></p>`);
4304
+ } else {
4305
+ $$renderer3.push("<!--[-1-->");
4306
+ }
4307
+ $$renderer3.push(`<!--]--> `);
4308
+ if (liveEnabled() && liveCall.on) {
4309
+ $$renderer3.push("<!--[0-->");
4310
+ LiveComposer($$renderer3);
4311
+ } else {
4312
+ $$renderer3.push("<!--[-1-->");
4313
+ Composer($$renderer3, {
4314
+ onvault: () => addSecret(null),
4315
+ via: via(),
4316
+ reason: session()?.state === "ours" && !session().canSend ? "Open the terminal above to reconnect chat." : session()?.reason ?? null,
4317
+ working: working() && !waitingOnAnswer(),
4318
+ held: held(),
4319
+ commands: firstmateChat.commands,
4320
+ reply: replyTo,
4321
+ thread: current() && current() !== UNSORTED ? {
4322
+ topic: current(),
4323
+ name: threadName(current()),
4324
+ hue: threadHue(current())
4325
+ } : null,
4326
+ threads: moveTo().filter((t) => t.topic !== UNSORTED)
4327
+ });
4328
+ }
4329
+ $$renderer3.push(`<!--]--></div> `);
4330
+ VaultAdd($$renderer3, {
4331
+ ask: vaultAsk,
4332
+ projects: projects.map((p) => p.id),
4333
+ token,
4334
+ onstored: secretStored,
4335
+ get open() {
4336
+ return vaultOpen;
4337
+ },
4338
+ set open($$value) {
4339
+ vaultOpen = $$value;
4340
+ $$settled = false;
4341
+ }
4342
+ });
4343
+ $$renderer3.push(`<!----></section>`);
4344
+ }
4345
+ do {
4346
+ $$settled = true;
4347
+ $$inner_renderer = $$renderer2.copy();
4348
+ $$render_inner($$inner_renderer);
4349
+ } while (!$$settled);
4350
+ $$renderer2.subsume($$inner_renderer);
4351
+ });
4352
+ }
4353
+ const RAIL_SIDE_KEY = "wheelhouse-ondeck-side";
4354
+ function parseRailSide(raw) {
4355
+ return raw === "right" ? "right" : "left";
4356
+ }
4357
+ class HomeLayout {
4358
+ side = "left";
4359
+ load() {
4360
+ try {
4361
+ this.side = parseRailSide(localStorage.getItem(RAIL_SIDE_KEY));
4362
+ } catch {
4363
+ }
4364
+ }
4365
+ swap() {
4366
+ this.side = this.side === "left" ? "right" : "left";
4367
+ try {
4368
+ localStorage.setItem(RAIL_SIDE_KEY, this.side);
4369
+ } catch {
4370
+ }
4371
+ }
4372
+ }
4373
+ const homeLayout = new HomeLayout();
4374
+ function _page($$renderer, $$props) {
4375
+ $$renderer.component(($$renderer2) => {
4376
+ let { data } = $$props;
4377
+ const fleet = derived(currentFleet);
4378
+ const scope = derived(() => page.url.searchParams.get("project"));
4379
+ const thread = derived(() => page.url.searchParams.get("thread") ?? scope());
4380
+ function pickThread(topic) {
4381
+ const project = topic && fleet()?.projects.some((p) => p.id === topic);
4382
+ const q = !topic ? "" : project ? `?project=${encodeURIComponent(topic)}` : `?thread=${encodeURIComponent(topic)}`;
4383
+ void goto(`/${q}`, {});
4384
+ }
4385
+ const tasks = derived(() => (fleet()?.tasks ?? []).filter((t) => !scope() || t.projectId === scope()));
4386
+ const h = derived(() => harbour(tasks(), live.now));
4387
+ const health = derived(() => shipHealth(h()));
4388
+ const waiting = derived(() => h().needsYou.length + h().stepFailed.length);
4389
+ const pluginEntries = derived(() => slots.entries(slotKey.fleet, data.slots, data.slotsAt));
4390
+ const cards = derived(() => pluginEntries().filter((e) => e.slot === "home.card"));
4391
+ const insights = derived(() => railInsights.value ?? data.insights);
4392
+ let railOpen = true;
4393
+ head("1uha8ag", $$renderer2, ($$renderer3) => {
4394
+ $$renderer3.title(($$renderer4) => {
4395
+ $$renderer4.push(`<title>Firstmate · Wheelhouse</title>`);
4396
+ });
4397
+ });
4398
+ $$renderer2.push(`<main${attr_class(`flex min-h-0 flex-1 ${homeLayout.side === "left" ? "flex-row-reverse" : ""}`)}>`);
4399
+ Chat($$renderer2, {
4400
+ token: data.sessionToken,
4401
+ railOpen,
4402
+ waiting: waiting(),
4403
+ health: health(),
4404
+ now: live.now,
4405
+ pluginEntries: pluginEntries(),
4406
+ tasks: fleet()?.tasks ?? [],
4407
+ projects: fleet()?.projects ?? [],
4408
+ railSide: homeLayout.side,
4409
+ thread: thread(),
4410
+ onPickThread: pickThread,
4411
+ onSwapRail: () => homeLayout.swap()
4412
+ });
4413
+ $$renderer2.push(`<!----> `);
4414
+ {
4415
+ $$renderer2.push("<!--[0-->");
4416
+ ResizableRail($$renderer2, {
4417
+ storageKey: "wheelhouse-rail-width",
4418
+ label: "Resize the rail",
4419
+ defaultWidth: 460,
4420
+ side: homeLayout.side,
4421
+ class: "bg-panel",
4422
+ children: ($$renderer3) => {
4423
+ Rail($$renderer3, {
4424
+ tasks: tasks(),
4425
+ projects: fleet()?.projects ?? [],
4426
+ secondMates: fleet()?.secondMates ?? [],
4427
+ now: live.now,
4428
+ insights: insights(),
4429
+ scope: scope(),
4430
+ cards: cards()
4431
+ });
4432
+ }
4433
+ });
4434
+ }
4435
+ $$renderer2.push(`<!--]--></main> `);
4436
+ {
4437
+ $$renderer2.push("<!--[-1-->");
4438
+ }
4439
+ $$renderer2.push(`<!--]-->`);
4440
+ });
4441
+ }
4442
+
4443
+ export { _page as default };
4444
+ //# sourceMappingURL=_page.svelte.js-koYjFwMr.js.map