@chrisjowen/wheelhouse 0.24.1 → 0.25.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 (833) hide show
  1. package/build/client/_app/immutable/assets/0.Bi7wbObi.css +1 -0
  2. package/build/client/_app/immutable/assets/0.Bi7wbObi.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.Bi7wbObi.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/28SuhBcT.js +1 -0
  5. package/build/client/_app/immutable/chunks/28SuhBcT.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/28SuhBcT.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/7W-6I0W5.js +1 -0
  8. package/build/client/_app/immutable/chunks/7W-6I0W5.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/7W-6I0W5.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/B-PCtbJj.js +1 -0
  11. package/build/client/_app/immutable/chunks/B-PCtbJj.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/B-PCtbJj.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/BTF7kOWj.js +5 -0
  14. package/build/client/_app/immutable/chunks/BTF7kOWj.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BTF7kOWj.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/BnGC1hPK.js +8 -0
  17. package/build/client/_app/immutable/chunks/BnGC1hPK.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BnGC1hPK.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/BpMceauw.js +7 -0
  20. package/build/client/_app/immutable/chunks/BpMceauw.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BpMceauw.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/BuKI2ZJL.js +7 -0
  23. package/build/client/_app/immutable/chunks/BuKI2ZJL.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/BuKI2ZJL.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/CEgeDr98.js +3 -0
  26. package/build/client/_app/immutable/chunks/CEgeDr98.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CEgeDr98.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/CIppRg38.js +2 -0
  29. package/build/client/_app/immutable/chunks/CIppRg38.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CIppRg38.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/CWXMOoE5.js +1 -0
  32. package/build/client/_app/immutable/chunks/CWXMOoE5.js.br +2 -0
  33. package/build/client/_app/immutable/chunks/CWXMOoE5.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/CcZQvhp1.js +1 -0
  35. package/build/client/_app/immutable/chunks/CcZQvhp1.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CcZQvhp1.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/CdXXnfvS.js +1 -0
  38. package/build/client/_app/immutable/chunks/CdXXnfvS.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CdXXnfvS.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/CfSmEcaH.js +6 -0
  41. package/build/client/_app/immutable/chunks/CfSmEcaH.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/CfSmEcaH.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/CgJcnAcm.js +3 -0
  44. package/build/client/_app/immutable/chunks/CgJcnAcm.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/CgJcnAcm.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/CgvWEeQK.js +2 -0
  47. package/build/client/_app/immutable/chunks/CgvWEeQK.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/CgvWEeQK.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/CqwyiX4n.js +1 -0
  50. package/build/client/_app/immutable/chunks/CqwyiX4n.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/CqwyiX4n.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/CtfzluSe.js +1 -0
  53. package/build/client/_app/immutable/chunks/CtfzluSe.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/CtfzluSe.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/DQZynC5d.js +1 -0
  56. package/build/client/_app/immutable/chunks/DQZynC5d.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/DQZynC5d.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/DhFU494N.js +3 -0
  59. package/build/client/_app/immutable/chunks/DhFU494N.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DhFU494N.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/DotKSDx1.js +4 -0
  62. package/build/client/_app/immutable/chunks/DotKSDx1.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/DotKSDx1.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/ITHHFCAt.js +1 -0
  65. package/build/client/_app/immutable/chunks/ITHHFCAt.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/ITHHFCAt.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/KLlJvBx3.js +1 -0
  68. package/build/client/_app/immutable/chunks/KLlJvBx3.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/KLlJvBx3.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/Kh20FmpZ.js +3 -0
  71. package/build/client/_app/immutable/chunks/Kh20FmpZ.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/Kh20FmpZ.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/RTsEYL93.js +1 -0
  74. package/build/client/_app/immutable/chunks/RTsEYL93.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/RTsEYL93.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/_NxO7pzE.js +1 -0
  77. package/build/client/_app/immutable/chunks/_NxO7pzE.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/_NxO7pzE.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/uFHn3SsP.js +2 -0
  80. package/build/client/_app/immutable/chunks/uFHn3SsP.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/uFHn3SsP.js.gz +0 -0
  82. package/build/client/_app/immutable/entry/app.D6StH31U.js +2 -0
  83. package/build/client/_app/immutable/entry/app.D6StH31U.js.br +0 -0
  84. package/build/client/_app/immutable/entry/app.D6StH31U.js.gz +0 -0
  85. package/build/client/_app/immutable/entry/start.B2z8DOZI.js +1 -0
  86. package/build/client/_app/immutable/entry/start.B2z8DOZI.js.br +0 -0
  87. package/build/client/_app/immutable/entry/start.B2z8DOZI.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/0.CKuUS76g.js +9 -0
  89. package/build/client/_app/immutable/nodes/0.CKuUS76g.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/0.CKuUS76g.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/1.ClSKcXXD.js +1 -0
  92. package/build/client/_app/immutable/nodes/1.ClSKcXXD.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/1.ClSKcXXD.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/10.C1VYgF4o.js +10 -0
  95. package/build/client/_app/immutable/nodes/10.C1VYgF4o.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/10.C1VYgF4o.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/11.Cz3SoD3J.js +9 -0
  98. package/build/client/_app/immutable/nodes/11.Cz3SoD3J.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/11.Cz3SoD3J.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/12.Ck8hTl9o.js +3 -0
  101. package/build/client/_app/immutable/nodes/12.Ck8hTl9o.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/12.Ck8hTl9o.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/13.uPkonAXk.js +2 -0
  104. package/build/client/_app/immutable/nodes/13.uPkonAXk.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/13.uPkonAXk.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/14.BhgJgo-p.js +6 -0
  107. package/build/client/_app/immutable/nodes/14.BhgJgo-p.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/14.BhgJgo-p.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/15.C8fHy07w.js +1 -0
  110. package/build/client/_app/immutable/nodes/15.C8fHy07w.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/15.C8fHy07w.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/16.BIiXdOvw.js +10 -0
  113. package/build/client/_app/immutable/nodes/16.BIiXdOvw.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/16.BIiXdOvw.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/17.UCTOPfQ9.js +1 -0
  116. package/build/client/_app/immutable/nodes/17.UCTOPfQ9.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/17.UCTOPfQ9.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/18.BIIxWe2_.js +3 -0
  119. package/build/client/_app/immutable/nodes/18.BIIxWe2_.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/18.BIIxWe2_.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/19.MIMOOdHv.js +1 -0
  122. package/build/client/_app/immutable/nodes/19.MIMOOdHv.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/19.MIMOOdHv.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/2.DtoFWLWO.js +28 -0
  125. package/build/client/_app/immutable/nodes/2.DtoFWLWO.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/2.DtoFWLWO.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/20.6wKzQBq7.js +14 -0
  128. package/build/client/_app/immutable/nodes/20.6wKzQBq7.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/20.6wKzQBq7.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/21.5HKRevgQ.js +150 -0
  131. package/build/client/_app/immutable/nodes/21.5HKRevgQ.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/21.5HKRevgQ.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/22.D2Go4NAd.js +3 -0
  134. package/build/client/_app/immutable/nodes/22.D2Go4NAd.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/22.D2Go4NAd.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/23.CD_BMpjF.js +2 -0
  137. package/build/client/_app/immutable/nodes/23.CD_BMpjF.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/23.CD_BMpjF.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/24.T-WCg51Y.js +25 -0
  140. package/build/client/_app/immutable/nodes/24.T-WCg51Y.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/24.T-WCg51Y.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/25.BeupWX4f.js +5 -0
  143. package/build/client/_app/immutable/nodes/25.BeupWX4f.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/25.BeupWX4f.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/26.Yu_f5rJN.js +18 -0
  146. package/build/client/_app/immutable/nodes/26.Yu_f5rJN.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/26.Yu_f5rJN.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/28.CXVRuiJO.js +4 -0
  149. package/build/client/_app/immutable/nodes/28.CXVRuiJO.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/28.CXVRuiJO.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/3.CQz7EPod.js +2 -0
  152. package/build/client/_app/immutable/nodes/3.CQz7EPod.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/3.CQz7EPod.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/30.Cn5WjjU2.js +6 -0
  155. package/build/client/_app/immutable/nodes/30.Cn5WjjU2.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/30.Cn5WjjU2.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/31.X3AmUS0p.js +8 -0
  158. package/build/client/_app/immutable/nodes/31.X3AmUS0p.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/31.X3AmUS0p.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/32.ByxI0zka.js +2 -0
  161. package/build/client/_app/immutable/nodes/32.ByxI0zka.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/32.ByxI0zka.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/33.D3i9rpHh.js +5 -0
  164. package/build/client/_app/immutable/nodes/33.D3i9rpHh.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/33.D3i9rpHh.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/34.0c6Z2Z6d.js +4 -0
  167. package/build/client/_app/immutable/nodes/34.0c6Z2Z6d.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/34.0c6Z2Z6d.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/35.BWPVbOEr.js +3 -0
  170. package/build/client/_app/immutable/nodes/35.BWPVbOEr.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/35.BWPVbOEr.js.gz +0 -0
  172. package/build/client/_app/immutable/nodes/36.CvLYsEYT.js +7 -0
  173. package/build/client/_app/immutable/nodes/36.CvLYsEYT.js.br +0 -0
  174. package/build/client/_app/immutable/nodes/36.CvLYsEYT.js.gz +0 -0
  175. package/build/client/_app/immutable/nodes/37.BJz6-lS3.js +2 -0
  176. package/build/client/_app/immutable/nodes/37.BJz6-lS3.js.br +0 -0
  177. package/build/client/_app/immutable/nodes/37.BJz6-lS3.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/38.D_9ntghd.js +4 -0
  179. package/build/client/_app/immutable/nodes/38.D_9ntghd.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/38.D_9ntghd.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/39.HPPVcNOu.js +7 -0
  182. package/build/client/_app/immutable/nodes/39.HPPVcNOu.js.br +0 -0
  183. package/build/client/_app/immutable/nodes/39.HPPVcNOu.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/4.Doi_SYLu.js +5 -0
  185. package/build/client/_app/immutable/nodes/4.Doi_SYLu.js.br +0 -0
  186. package/build/client/_app/immutable/nodes/4.Doi_SYLu.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/40.CrsYdbJ2.js +6 -0
  188. package/build/client/_app/immutable/nodes/40.CrsYdbJ2.js.br +0 -0
  189. package/build/client/_app/immutable/nodes/40.CrsYdbJ2.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/41.gEqeY20t.js +23 -0
  191. package/build/client/_app/immutable/nodes/41.gEqeY20t.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/41.gEqeY20t.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/42.B2LWwGrT.js +1 -0
  194. package/build/client/_app/immutable/nodes/42.B2LWwGrT.js.br +1 -0
  195. package/build/client/_app/immutable/nodes/42.B2LWwGrT.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/44.CdUnQCqR.js +6 -0
  197. package/build/client/_app/immutable/nodes/44.CdUnQCqR.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/44.CdUnQCqR.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/5.B4uTy-0f.js +1 -0
  200. package/build/client/_app/immutable/nodes/5.B4uTy-0f.js.br +0 -0
  201. package/build/client/_app/immutable/nodes/5.B4uTy-0f.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/6.CmIB-igu.js +6 -0
  203. package/build/client/_app/immutable/nodes/6.CmIB-igu.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/6.CmIB-igu.js.gz +0 -0
  205. package/build/client/_app/immutable/nodes/9.D5kLV1OU.js +3 -0
  206. package/build/client/_app/immutable/nodes/9.D5kLV1OU.js.br +0 -0
  207. package/build/client/_app/immutable/nodes/9.D5kLV1OU.js.gz +0 -0
  208. package/build/client/_app/version.json +1 -1
  209. package/build/client/_app/version.json.br +0 -0
  210. package/build/client/_app/version.json.gz +0 -0
  211. package/build/handler.js +4 -4
  212. package/build/index.js +4 -4
  213. package/build/server/chunks/chunks/ResizableRail.js-D0idmMXk.js +708 -0
  214. package/build/server/chunks/chunks/TaskView.js-d4_0kZ-e.js +3029 -0
  215. package/build/server/chunks/chunks/detail.js-DNmr2zHv.js +149 -0
  216. package/build/server/chunks/chunks/features.js-BhXyRT_1.js +181 -0
  217. package/build/server/chunks/chunks/feedback.js-CHXRyn5n.js +67 -0
  218. package/build/server/chunks/chunks/internal.js-O-vX00u6.js +151 -0
  219. package/build/server/chunks/chunks/livereview.js-FqdWoyiJ.js +261 -0
  220. package/build/server/chunks/chunks/marketplace-service.js-7cE4n6mo.js +557 -0
  221. package/build/server/chunks/chunks/package.js-X-RlQsSA.js +160 -0
  222. package/build/server/chunks/chunks/page.js-B6PDBS51.js +13 -0
  223. package/build/server/chunks/chunks/previewhelper.js-Cz95M8xJ.js +246 -0
  224. package/build/server/chunks/chunks/previewhelper2.js-CawzBO7t.js +214 -0
  225. package/build/server/chunks/chunks/repo.js-OOqVL99k.js +33 -0
  226. package/build/server/chunks/chunks/runtime.js-D7BWZr4r.js +26676 -0
  227. package/build/server/chunks/chunks/scribe.js-CrX8YPGp.js +1591 -0
  228. package/build/server/chunks/chunks/service.js-BNXHwz0z.js +1339 -0
  229. package/build/server/chunks/chunks/service2.js-K1G_0p9s.js +835 -0
  230. package/build/server/chunks/chunks/service3.js-DsuUdHqU.js +234 -0
  231. package/build/server/chunks/chunks/sessions.js-qcyBTO1C.js +534 -0
  232. package/build/server/chunks/chunks/settings.js-C5VqzDhW.js +379 -0
  233. package/build/server/chunks/chunks/starter.js-ClhdKcek.js +400 -0
  234. package/build/server/chunks/chunks/store.js-CBYhaqF1.js +334 -0
  235. package/build/server/chunks/chunks/tmux.js-BnFtiGpm.js +504 -0
  236. package/build/server/chunks/chunks/tools.js-CSWRR-_m.js +156 -0
  237. package/build/server/chunks/chunks/uploads.js-ZX2kg51N.js +107 -0
  238. package/build/server/chunks/chunks/view.js-8odN6g23.js +76 -0
  239. package/build/server/chunks/chunks/volume-2.js-BdrATtWy.js +24 -0
  240. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-BDWFdikr.js +116 -0
  241. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-fQe2vCi_.js +112 -0
  242. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-BVRNsIIW.js +63 -0
  243. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-ySb9KZ_-.js +79 -0
  244. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-BdAhPgNT.js +83 -0
  245. package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-Deuf72TK.js +68 -0
  246. package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-xQ85tCJ6.js +73 -0
  247. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js--A6MYR5G.js +158 -0
  248. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-C9jkqC7K.js +57 -0
  249. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BX1LxrEa.js +75 -0
  250. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-C0J5w0FB.js +111 -0
  251. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-BTs5o7Mw.js +87 -0
  252. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-C8FKFafE.js +77 -0
  253. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-WkSY6nlu.js +70 -0
  254. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BJwI8Gmn.js +70 -0
  255. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DVXInXQI.js +71 -0
  256. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-KRUnXG1_.js +77 -0
  257. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-C3wD-Bsc.js +70 -0
  258. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-yknBiY0D.js +119 -0
  259. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DWcY1uoX.js +80 -0
  260. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-BOaD3IeK.js +91 -0
  261. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BoSwn8Tv.js +79 -0
  262. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-BdmoziWD.js +70 -0
  263. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CSSUNhkV.js +32 -0
  264. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-yZHelvlp.js +40 -0
  265. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-CUL8Pq_B.js +62 -0
  266. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-CEdzoclv.js +62 -0
  267. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BjVzUKNa.js +89 -0
  268. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-hDF9NFq_.js +87 -0
  269. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CQFmK6Jj.js +80 -0
  270. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-BgL_OBuS.js +172 -0
  271. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Bj3ArJ8e.js +62 -0
  272. package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-Ytj8LRyz.js +71 -0
  273. package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-Bsw-coX5.js +72 -0
  274. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-BAq01f1Q.js +91 -0
  275. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-DuDvfPGO.js +72 -0
  276. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-DOA618e_.js +27 -0
  277. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-XXsEGuag.js +30 -0
  278. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-AHdWEtIp.js +105 -0
  279. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DzPUeQTi.js +74 -0
  280. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-D_OL9OX2.js +122 -0
  281. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-CsVJLGBv.js +76 -0
  282. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-B21zqtCS.js +97 -0
  283. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-D7dwIUHu.js +86 -0
  284. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DV8iGc2m.js +81 -0
  285. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-HOT8HzRk.js +78 -0
  286. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-TVTyRXGB.js +27 -0
  287. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Cpz_Nwq9.js +85 -0
  288. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DWCTugFd.js +39 -0
  289. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Dm0eRjNy.js +62 -0
  290. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BUs16W7B.js +39 -0
  291. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-COg9oQo8.js +42 -0
  292. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-oAXY6lwM.js +67 -0
  293. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-C4oBldsb.js +76 -0
  294. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BPPmeb1O.js +73 -0
  295. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-DcRonc0M.js +77 -0
  296. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-D650HWSB.js +27 -0
  297. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-bYzuM3AX.js +86 -0
  298. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DgBbAzui.js +67 -0
  299. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-I7Q9NEeo.js +76 -0
  300. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Cqsk5blC.js +88 -0
  301. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-DhcvEOaq.js +75 -0
  302. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-DnepVFAC.js +98 -0
  303. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-DW1M5BKY.js +81 -0
  304. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Dw6RfG7L.js +476 -0
  305. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-B8bvA9DM.js +92 -0
  306. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-D6eYs2D1.js +71 -0
  307. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-q1F7JDi4.js +81 -0
  308. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-3dHJdpfk.js +141 -0
  309. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CuKl_RQf.js +70 -0
  310. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-CFd99DmZ.js +84 -0
  311. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-C-2St0o7.js +70 -0
  312. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-vvMmWUno.js +73 -0
  313. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CLqanxiv.js +67 -0
  314. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DVxSMd63.js +86 -0
  315. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-2ZTB9AOc.js +113 -0
  316. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-Bqz9Jxq-.js +79 -0
  317. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-B7cAJcuZ.js +108 -0
  318. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-qGkkUc0n.js +127 -0
  319. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BVyk7T-v.js +82 -0
  320. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-BMwxujEw.js +84 -0
  321. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-40rgCCP-.js +85 -0
  322. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-4PZyHkNr.js +24 -0
  323. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BjhLHXXA.js +31 -0
  324. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-0u91Zt3R.js +33 -0
  325. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-deys_OrX.js +97 -0
  326. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-CXK5O72T.js +40 -0
  327. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-VNIH1gz4.js +27 -0
  328. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DWmyyxxj.js +27 -0
  329. package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-BjRdBCjC.js +78 -0
  330. package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-C1DBUIIo.js +68 -0
  331. package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-D-qgAHe2.js +75 -0
  332. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-B_YfmtCr.js +87 -0
  333. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-B8wpApaS.js +66 -0
  334. package/build/server/chunks/entries/hooks.server.js-C2Jq471K.js +108 -0
  335. package/build/server/chunks/entries/pages/_layout.server.ts.js-Bt-gmVC8.js +55 -0
  336. package/build/server/chunks/entries/pages/_layout.svelte.js-CkPHJ6iw.js +6023 -0
  337. package/build/server/chunks/entries/pages/_page.server.ts.js-DfN7-68h.js +16 -0
  338. package/build/server/chunks/entries/pages/_page.svelte.js-Bp57ktWC.js +4907 -0
  339. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cmkth9fT.js +14 -0
  340. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-C0ulhk4E.js +16 -0
  341. package/build/server/chunks/entries/pages/documents/_page.server.ts.js-lb2y3RrU.js +15 -0
  342. package/build/server/chunks/entries/pages/files/_page.server.ts.js-C8K8Bywk.js +17 -0
  343. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-g48T0kd-.js +11 -0
  344. package/build/server/chunks/entries/pages/health/_page.server.ts.js-BtYNItQA.js +16 -0
  345. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-BgSMH_CR.js +18 -0
  346. package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-BGT47EiL.js +18 -0
  347. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DBvqb-4n.js +16 -0
  348. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-C5lDScfS.js +23 -0
  349. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-OHtCg3ps.js +21 -0
  350. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-C5T5xtcE.js +27 -0
  351. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-4wFc1XPC.js +15 -0
  352. package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-BljSK7lM.js +25 -0
  353. package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-CXnAVg7S.js +37 -0
  354. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-C-gvokYd.js +11 -0
  355. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-C5r6-ShC.js +13 -0
  356. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DGKwb104.js +12 -0
  357. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B3YDnmmB.js +18 -0
  358. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-sFixjDN7.js +19 -0
  359. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-ORPe-Udr.js +16 -0
  360. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-DRjZBOes.js +15 -0
  361. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-CuJj3RFV.js +797 -0
  362. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-7_ZbhFWy.js +11 -0
  363. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BhiagNIi.js +19 -0
  364. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-Dgl8iOBp.js +17 -0
  365. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-KsPYJwiB.js +11 -0
  366. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BZZoApKT.js +11 -0
  367. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-GCgZEZdm.js +15 -0
  368. package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-CPtKfR3g.js +161 -0
  369. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-BOorm5Wm.js +18 -0
  370. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Feuxftuj.js +36 -0
  371. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Bz5xWZGZ.js +121 -0
  372. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BMEYrcpa.js +24 -0
  373. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CwBRGUi5.js +11 -0
  374. package/build/server/chunks/handler-HICo2rBa.js +1474 -0
  375. package/build/server/chunks/index.js-mXeyfwOL.js +4296 -0
  376. package/build/server/chunks/manifest.js-BXvg7MTn.js +1050 -0
  377. package/build/server/chunks/nodes/0.js-B6FWOub_.js +69 -0
  378. package/build/server/chunks/nodes/1.js-A3LTU5o8.js +9 -0
  379. package/build/server/chunks/nodes/10.js-CylXMpAM.js +67 -0
  380. package/build/server/chunks/nodes/11.js-COltHAQK.js +69 -0
  381. package/build/server/chunks/nodes/12.js-D4Upu6y1.js +68 -0
  382. package/build/server/chunks/nodes/13.js-DVK7Dh6e.js +69 -0
  383. package/build/server/chunks/nodes/14.js-4qz1fO9Q.js +12 -0
  384. package/build/server/chunks/nodes/15.js-ChjTgj9K.js +9 -0
  385. package/build/server/chunks/nodes/16.js-P8F-wWtO.js +9 -0
  386. package/build/server/chunks/nodes/17.js-DjuCCIpy.js +67 -0
  387. package/build/server/chunks/nodes/18.js-C993M6oc.js +70 -0
  388. package/build/server/chunks/nodes/19.js-D9Embfjr.js +68 -0
  389. package/build/server/chunks/nodes/2.js-Wc5kZHvb.js +67 -0
  390. package/build/server/chunks/nodes/20.js-BPRKQiIS.js +69 -0
  391. package/build/server/chunks/nodes/21.js-CUAn10i3.js +68 -0
  392. package/build/server/chunks/nodes/22.js-TBH6F4dy.js +69 -0
  393. package/build/server/chunks/nodes/23.js-szYvETrv.js +69 -0
  394. package/build/server/chunks/nodes/24.js-D3VP7c7Q.js +25 -0
  395. package/build/server/chunks/nodes/25.js-CBoW-4He.js +25 -0
  396. package/build/server/chunks/nodes/26.js-DzXVuGMS.js +9 -0
  397. package/build/server/chunks/nodes/27.js-rQgQSbRQ.js +25 -0
  398. package/build/server/chunks/nodes/28.js-Cd8QuiHE.js +67 -0
  399. package/build/server/chunks/nodes/3.js-DZsIWxJx.js +9 -0
  400. package/build/server/chunks/nodes/30.js-DoJvIlX5.js +68 -0
  401. package/build/server/chunks/nodes/31.js-D8IGmFgH.js +67 -0
  402. package/build/server/chunks/nodes/32.js-B20MERXQ.js +25 -0
  403. package/build/server/chunks/nodes/33.js-DOlfd37i.js +67 -0
  404. package/build/server/chunks/nodes/34.js-DWWZCvyG.js +25 -0
  405. package/build/server/chunks/nodes/35.js-oWOgHh8Z.js +22 -0
  406. package/build/server/chunks/nodes/36.js-DZ-lKaYT.js +67 -0
  407. package/build/server/chunks/nodes/37.js-eAJH-k_k.js +70 -0
  408. package/build/server/chunks/nodes/38.js-BNDRcNzX.js +69 -0
  409. package/build/server/chunks/nodes/39.js-o8Oz_jZ9.js +26 -0
  410. package/build/server/chunks/nodes/4.js-XBXJC9EJ.js +68 -0
  411. package/build/server/chunks/nodes/40.js-BruOvnJW.js +69 -0
  412. package/build/server/chunks/nodes/41.js-ygYBXXUn.js +71 -0
  413. package/build/server/chunks/nodes/42.js-DVVbf2pp.js +68 -0
  414. package/build/server/chunks/nodes/43.js-4kkcs8x3.js +68 -0
  415. package/build/server/chunks/nodes/44.js-Dz4_viSC.js +67 -0
  416. package/build/server/chunks/nodes/5.js-CESSNTmC.js +67 -0
  417. package/build/server/chunks/nodes/6.js-ReQxzqU3.js +67 -0
  418. package/build/server/chunks/nodes/8.js-Bp5GVhBi.js +67 -0
  419. package/build/server/chunks/nodes/9.js-hs2_Bguy.js +14 -0
  420. package/dist/cli.js +1 -1
  421. package/dist/wh-vault.js +1 -1
  422. package/firstmate-extension/firstmate-extension.json +1 -1
  423. package/package.json +1 -1
  424. package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css +0 -1
  425. package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.br +0 -0
  426. package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.gz +0 -0
  427. package/build/client/_app/immutable/chunks/BBesepuR.js +0 -2
  428. package/build/client/_app/immutable/chunks/BBesepuR.js.br +0 -0
  429. package/build/client/_app/immutable/chunks/BBesepuR.js.gz +0 -0
  430. package/build/client/_app/immutable/chunks/BY1C16HZ.js +0 -3
  431. package/build/client/_app/immutable/chunks/BY1C16HZ.js.br +0 -0
  432. package/build/client/_app/immutable/chunks/BY1C16HZ.js.gz +0 -0
  433. package/build/client/_app/immutable/chunks/BhOOgzoY.js +0 -1
  434. package/build/client/_app/immutable/chunks/BhOOgzoY.js.br +0 -0
  435. package/build/client/_app/immutable/chunks/BhOOgzoY.js.gz +0 -0
  436. package/build/client/_app/immutable/chunks/BnPVAF08.js +0 -7
  437. package/build/client/_app/immutable/chunks/BnPVAF08.js.br +0 -0
  438. package/build/client/_app/immutable/chunks/BnPVAF08.js.gz +0 -0
  439. package/build/client/_app/immutable/chunks/BoV2Cb3u.js +0 -3
  440. package/build/client/_app/immutable/chunks/BoV2Cb3u.js.br +0 -0
  441. package/build/client/_app/immutable/chunks/BoV2Cb3u.js.gz +0 -0
  442. package/build/client/_app/immutable/chunks/BxUfJDlK.js +0 -3
  443. package/build/client/_app/immutable/chunks/BxUfJDlK.js.br +0 -0
  444. package/build/client/_app/immutable/chunks/BxUfJDlK.js.gz +0 -0
  445. package/build/client/_app/immutable/chunks/CEqUfztC.js +0 -1
  446. package/build/client/_app/immutable/chunks/CEqUfztC.js.br +0 -0
  447. package/build/client/_app/immutable/chunks/CEqUfztC.js.gz +0 -0
  448. package/build/client/_app/immutable/chunks/CTPaAaT8.js +0 -1
  449. package/build/client/_app/immutable/chunks/CTPaAaT8.js.br +0 -0
  450. package/build/client/_app/immutable/chunks/CTPaAaT8.js.gz +0 -0
  451. package/build/client/_app/immutable/chunks/CidiHe2w.js +0 -1
  452. package/build/client/_app/immutable/chunks/CidiHe2w.js.br +0 -0
  453. package/build/client/_app/immutable/chunks/CidiHe2w.js.gz +0 -0
  454. package/build/client/_app/immutable/chunks/CjpC_avs.js +0 -1
  455. package/build/client/_app/immutable/chunks/CjpC_avs.js.br +0 -0
  456. package/build/client/_app/immutable/chunks/CjpC_avs.js.gz +0 -0
  457. package/build/client/_app/immutable/chunks/CqTNazs8.js +0 -3
  458. package/build/client/_app/immutable/chunks/CqTNazs8.js.br +0 -0
  459. package/build/client/_app/immutable/chunks/CqTNazs8.js.gz +0 -0
  460. package/build/client/_app/immutable/chunks/Cv8vU_7G.js +0 -1
  461. package/build/client/_app/immutable/chunks/Cv8vU_7G.js.br +0 -0
  462. package/build/client/_app/immutable/chunks/Cv8vU_7G.js.gz +0 -0
  463. package/build/client/_app/immutable/chunks/D0W-yI5k.js +0 -1
  464. package/build/client/_app/immutable/chunks/D0W-yI5k.js.br +0 -0
  465. package/build/client/_app/immutable/chunks/D0W-yI5k.js.gz +0 -0
  466. package/build/client/_app/immutable/chunks/D2UqGNPw.js +0 -4
  467. package/build/client/_app/immutable/chunks/D2UqGNPw.js.br +0 -0
  468. package/build/client/_app/immutable/chunks/D2UqGNPw.js.gz +0 -0
  469. package/build/client/_app/immutable/chunks/D3m3qs9L.js +0 -5
  470. package/build/client/_app/immutable/chunks/D3m3qs9L.js.br +0 -0
  471. package/build/client/_app/immutable/chunks/D3m3qs9L.js.gz +0 -0
  472. package/build/client/_app/immutable/chunks/D5k4wnt7.js +0 -1
  473. package/build/client/_app/immutable/chunks/D5k4wnt7.js.br +0 -0
  474. package/build/client/_app/immutable/chunks/D5k4wnt7.js.gz +0 -0
  475. package/build/client/_app/immutable/chunks/DN2Bw8XE.js +0 -1
  476. package/build/client/_app/immutable/chunks/DN2Bw8XE.js.br +0 -0
  477. package/build/client/_app/immutable/chunks/DN2Bw8XE.js.gz +0 -0
  478. package/build/client/_app/immutable/chunks/DWJRIYp5.js +0 -1
  479. package/build/client/_app/immutable/chunks/DWJRIYp5.js.br +0 -0
  480. package/build/client/_app/immutable/chunks/DWJRIYp5.js.gz +0 -0
  481. package/build/client/_app/immutable/chunks/DZhEGM3P.js +0 -2
  482. package/build/client/_app/immutable/chunks/DZhEGM3P.js.br +0 -0
  483. package/build/client/_app/immutable/chunks/DZhEGM3P.js.gz +0 -0
  484. package/build/client/_app/immutable/chunks/De08PyIM.js +0 -2
  485. package/build/client/_app/immutable/chunks/De08PyIM.js.br +0 -0
  486. package/build/client/_app/immutable/chunks/De08PyIM.js.gz +0 -0
  487. package/build/client/_app/immutable/chunks/DgeYJw1V.js +0 -8
  488. package/build/client/_app/immutable/chunks/DgeYJw1V.js.br +0 -0
  489. package/build/client/_app/immutable/chunks/DgeYJw1V.js.gz +0 -0
  490. package/build/client/_app/immutable/chunks/ZFly2pmD.js +0 -6
  491. package/build/client/_app/immutable/chunks/ZFly2pmD.js.br +0 -0
  492. package/build/client/_app/immutable/chunks/ZFly2pmD.js.gz +0 -0
  493. package/build/client/_app/immutable/chunks/_sdkObeO.js +0 -1
  494. package/build/client/_app/immutable/chunks/_sdkObeO.js.br +0 -1
  495. package/build/client/_app/immutable/chunks/_sdkObeO.js.gz +0 -0
  496. package/build/client/_app/immutable/chunks/v1_0RI9s.js +0 -1
  497. package/build/client/_app/immutable/chunks/v1_0RI9s.js.br +0 -0
  498. package/build/client/_app/immutable/chunks/v1_0RI9s.js.gz +0 -0
  499. package/build/client/_app/immutable/chunks/yLS4MyUX.js +0 -7
  500. package/build/client/_app/immutable/chunks/yLS4MyUX.js.br +0 -0
  501. package/build/client/_app/immutable/chunks/yLS4MyUX.js.gz +0 -0
  502. package/build/client/_app/immutable/entry/app.DHcKVmKY.js +0 -2
  503. package/build/client/_app/immutable/entry/app.DHcKVmKY.js.br +0 -0
  504. package/build/client/_app/immutable/entry/app.DHcKVmKY.js.gz +0 -0
  505. package/build/client/_app/immutable/entry/start.Pwknkd-J.js +0 -1
  506. package/build/client/_app/immutable/entry/start.Pwknkd-J.js.br +0 -0
  507. package/build/client/_app/immutable/entry/start.Pwknkd-J.js.gz +0 -0
  508. package/build/client/_app/immutable/nodes/0.d_V6I31n.js +0 -9
  509. package/build/client/_app/immutable/nodes/0.d_V6I31n.js.br +0 -0
  510. package/build/client/_app/immutable/nodes/0.d_V6I31n.js.gz +0 -0
  511. package/build/client/_app/immutable/nodes/1.BHMHInUO.js +0 -1
  512. package/build/client/_app/immutable/nodes/1.BHMHInUO.js.br +0 -0
  513. package/build/client/_app/immutable/nodes/1.BHMHInUO.js.gz +0 -0
  514. package/build/client/_app/immutable/nodes/10.BSyzQxNk.js +0 -10
  515. package/build/client/_app/immutable/nodes/10.BSyzQxNk.js.br +0 -0
  516. package/build/client/_app/immutable/nodes/10.BSyzQxNk.js.gz +0 -0
  517. package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js +0 -9
  518. package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js.br +0 -0
  519. package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js.gz +0 -0
  520. package/build/client/_app/immutable/nodes/12.Cq63mXMK.js +0 -3
  521. package/build/client/_app/immutable/nodes/12.Cq63mXMK.js.br +0 -0
  522. package/build/client/_app/immutable/nodes/12.Cq63mXMK.js.gz +0 -0
  523. package/build/client/_app/immutable/nodes/13.BUbIjJfF.js +0 -2
  524. package/build/client/_app/immutable/nodes/13.BUbIjJfF.js.br +0 -0
  525. package/build/client/_app/immutable/nodes/13.BUbIjJfF.js.gz +0 -0
  526. package/build/client/_app/immutable/nodes/14.Ddky97Wb.js +0 -6
  527. package/build/client/_app/immutable/nodes/14.Ddky97Wb.js.br +0 -0
  528. package/build/client/_app/immutable/nodes/14.Ddky97Wb.js.gz +0 -0
  529. package/build/client/_app/immutable/nodes/15.B4xWeGxa.js +0 -1
  530. package/build/client/_app/immutable/nodes/15.B4xWeGxa.js.br +0 -0
  531. package/build/client/_app/immutable/nodes/15.B4xWeGxa.js.gz +0 -0
  532. package/build/client/_app/immutable/nodes/16.LQrwVbEB.js +0 -10
  533. package/build/client/_app/immutable/nodes/16.LQrwVbEB.js.br +0 -0
  534. package/build/client/_app/immutable/nodes/16.LQrwVbEB.js.gz +0 -0
  535. package/build/client/_app/immutable/nodes/17.DYmttVYk.js +0 -1
  536. package/build/client/_app/immutable/nodes/17.DYmttVYk.js.br +0 -0
  537. package/build/client/_app/immutable/nodes/17.DYmttVYk.js.gz +0 -0
  538. package/build/client/_app/immutable/nodes/18.B2MYLx89.js +0 -3
  539. package/build/client/_app/immutable/nodes/18.B2MYLx89.js.br +0 -0
  540. package/build/client/_app/immutable/nodes/18.B2MYLx89.js.gz +0 -0
  541. package/build/client/_app/immutable/nodes/19.DXwfInRR.js +0 -1
  542. package/build/client/_app/immutable/nodes/19.DXwfInRR.js.br +0 -0
  543. package/build/client/_app/immutable/nodes/19.DXwfInRR.js.gz +0 -0
  544. package/build/client/_app/immutable/nodes/2.F5N7XU8C.js +0 -28
  545. package/build/client/_app/immutable/nodes/2.F5N7XU8C.js.br +0 -0
  546. package/build/client/_app/immutable/nodes/2.F5N7XU8C.js.gz +0 -0
  547. package/build/client/_app/immutable/nodes/20.SAWcBx0p.js +0 -14
  548. package/build/client/_app/immutable/nodes/20.SAWcBx0p.js.br +0 -0
  549. package/build/client/_app/immutable/nodes/20.SAWcBx0p.js.gz +0 -0
  550. package/build/client/_app/immutable/nodes/21.D6qFz2sa.js +0 -150
  551. package/build/client/_app/immutable/nodes/21.D6qFz2sa.js.br +0 -0
  552. package/build/client/_app/immutable/nodes/21.D6qFz2sa.js.gz +0 -0
  553. package/build/client/_app/immutable/nodes/22.tV2rJSEI.js +0 -3
  554. package/build/client/_app/immutable/nodes/22.tV2rJSEI.js.br +0 -0
  555. package/build/client/_app/immutable/nodes/22.tV2rJSEI.js.gz +0 -0
  556. package/build/client/_app/immutable/nodes/23.DuW8-oym.js +0 -2
  557. package/build/client/_app/immutable/nodes/23.DuW8-oym.js.br +0 -0
  558. package/build/client/_app/immutable/nodes/23.DuW8-oym.js.gz +0 -0
  559. package/build/client/_app/immutable/nodes/24.CnP1JJLb.js +0 -25
  560. package/build/client/_app/immutable/nodes/24.CnP1JJLb.js.br +0 -0
  561. package/build/client/_app/immutable/nodes/24.CnP1JJLb.js.gz +0 -0
  562. package/build/client/_app/immutable/nodes/25.DeEfy92d.js +0 -5
  563. package/build/client/_app/immutable/nodes/25.DeEfy92d.js.br +0 -0
  564. package/build/client/_app/immutable/nodes/25.DeEfy92d.js.gz +0 -0
  565. package/build/client/_app/immutable/nodes/26.D-8mzx-R.js +0 -18
  566. package/build/client/_app/immutable/nodes/26.D-8mzx-R.js.br +0 -0
  567. package/build/client/_app/immutable/nodes/26.D-8mzx-R.js.gz +0 -0
  568. package/build/client/_app/immutable/nodes/28.C2P7oxne.js +0 -4
  569. package/build/client/_app/immutable/nodes/28.C2P7oxne.js.br +0 -0
  570. package/build/client/_app/immutable/nodes/28.C2P7oxne.js.gz +0 -0
  571. package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js +0 -2
  572. package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js.br +0 -0
  573. package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js.gz +0 -0
  574. package/build/client/_app/immutable/nodes/30.CEgnqL0a.js +0 -6
  575. package/build/client/_app/immutable/nodes/30.CEgnqL0a.js.br +0 -0
  576. package/build/client/_app/immutable/nodes/30.CEgnqL0a.js.gz +0 -0
  577. package/build/client/_app/immutable/nodes/31.BYFAiOJd.js +0 -8
  578. package/build/client/_app/immutable/nodes/31.BYFAiOJd.js.br +0 -0
  579. package/build/client/_app/immutable/nodes/31.BYFAiOJd.js.gz +0 -0
  580. package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js +0 -2
  581. package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js.br +0 -0
  582. package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js.gz +0 -0
  583. package/build/client/_app/immutable/nodes/33.DRQLqVjL.js +0 -5
  584. package/build/client/_app/immutable/nodes/33.DRQLqVjL.js.br +0 -0
  585. package/build/client/_app/immutable/nodes/33.DRQLqVjL.js.gz +0 -0
  586. package/build/client/_app/immutable/nodes/34.DTI61C_T.js +0 -4
  587. package/build/client/_app/immutable/nodes/34.DTI61C_T.js.br +0 -0
  588. package/build/client/_app/immutable/nodes/34.DTI61C_T.js.gz +0 -0
  589. package/build/client/_app/immutable/nodes/35.-X5S6mPa.js +0 -3
  590. package/build/client/_app/immutable/nodes/35.-X5S6mPa.js.br +0 -0
  591. package/build/client/_app/immutable/nodes/35.-X5S6mPa.js.gz +0 -0
  592. package/build/client/_app/immutable/nodes/36.jtWdNkRT.js +0 -7
  593. package/build/client/_app/immutable/nodes/36.jtWdNkRT.js.br +0 -0
  594. package/build/client/_app/immutable/nodes/36.jtWdNkRT.js.gz +0 -0
  595. package/build/client/_app/immutable/nodes/37.BL9MLXZv.js +0 -2
  596. package/build/client/_app/immutable/nodes/37.BL9MLXZv.js.br +0 -0
  597. package/build/client/_app/immutable/nodes/37.BL9MLXZv.js.gz +0 -0
  598. package/build/client/_app/immutable/nodes/38.CMuF_Clt.js +0 -4
  599. package/build/client/_app/immutable/nodes/38.CMuF_Clt.js.br +0 -0
  600. package/build/client/_app/immutable/nodes/38.CMuF_Clt.js.gz +0 -0
  601. package/build/client/_app/immutable/nodes/39.tiSwGz1u.js +0 -7
  602. package/build/client/_app/immutable/nodes/39.tiSwGz1u.js.br +0 -0
  603. package/build/client/_app/immutable/nodes/39.tiSwGz1u.js.gz +0 -0
  604. package/build/client/_app/immutable/nodes/4.dUo8OlOh.js +0 -5
  605. package/build/client/_app/immutable/nodes/4.dUo8OlOh.js.br +0 -0
  606. package/build/client/_app/immutable/nodes/4.dUo8OlOh.js.gz +0 -0
  607. package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js +0 -6
  608. package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js.br +0 -0
  609. package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js.gz +0 -0
  610. package/build/client/_app/immutable/nodes/41.CCo8O58Y.js +0 -23
  611. package/build/client/_app/immutable/nodes/41.CCo8O58Y.js.br +0 -0
  612. package/build/client/_app/immutable/nodes/41.CCo8O58Y.js.gz +0 -0
  613. package/build/client/_app/immutable/nodes/42.CBMdYvRk.js +0 -1
  614. package/build/client/_app/immutable/nodes/42.CBMdYvRk.js.br +0 -0
  615. package/build/client/_app/immutable/nodes/42.CBMdYvRk.js.gz +0 -0
  616. package/build/client/_app/immutable/nodes/44.CZPoIuC8.js +0 -6
  617. package/build/client/_app/immutable/nodes/44.CZPoIuC8.js.br +0 -0
  618. package/build/client/_app/immutable/nodes/44.CZPoIuC8.js.gz +0 -0
  619. package/build/client/_app/immutable/nodes/5.Dafp5GI5.js +0 -1
  620. package/build/client/_app/immutable/nodes/5.Dafp5GI5.js.br +0 -0
  621. package/build/client/_app/immutable/nodes/5.Dafp5GI5.js.gz +0 -0
  622. package/build/client/_app/immutable/nodes/6.BE696aJ4.js +0 -6
  623. package/build/client/_app/immutable/nodes/6.BE696aJ4.js.br +0 -0
  624. package/build/client/_app/immutable/nodes/6.BE696aJ4.js.gz +0 -0
  625. package/build/client/_app/immutable/nodes/9.DhQeTbmU.js +0 -3
  626. package/build/client/_app/immutable/nodes/9.DhQeTbmU.js.br +0 -0
  627. package/build/client/_app/immutable/nodes/9.DhQeTbmU.js.gz +0 -0
  628. package/build/server/chunks/chunks/ResizableRail.js-DWTZXucY.js +0 -708
  629. package/build/server/chunks/chunks/TaskView.js-Djh37gNV.js +0 -3029
  630. package/build/server/chunks/chunks/detail.js-DgGYGF6E.js +0 -149
  631. package/build/server/chunks/chunks/features.js-C0RFlCU9.js +0 -181
  632. package/build/server/chunks/chunks/feedback.js-C6iqEsPN.js +0 -67
  633. package/build/server/chunks/chunks/internal.js-DVvBSC2Y.js +0 -151
  634. package/build/server/chunks/chunks/livereview.js-BJxqrnBd.js +0 -261
  635. package/build/server/chunks/chunks/marketplace-service.js-rqq8C3T1.js +0 -557
  636. package/build/server/chunks/chunks/package.js-CVpRo49m.js +0 -160
  637. package/build/server/chunks/chunks/page.js-Zj6kzOqn.js +0 -13
  638. package/build/server/chunks/chunks/previewhelper.js-CUjqs8rl.js +0 -245
  639. package/build/server/chunks/chunks/previewhelper2.js-BfPvB6QX.js +0 -214
  640. package/build/server/chunks/chunks/repo.js-zZjENX9B.js +0 -33
  641. package/build/server/chunks/chunks/runtime.js-DcSUF_r8.js +0 -26530
  642. package/build/server/chunks/chunks/scribe.js-BwiXC-bJ.js +0 -1376
  643. package/build/server/chunks/chunks/service.js-D4yz0pF8.js +0 -1339
  644. package/build/server/chunks/chunks/service2.js-BzDKAz-w.js +0 -835
  645. package/build/server/chunks/chunks/service3.js-8zLUKBxg.js +0 -234
  646. package/build/server/chunks/chunks/sessions.js--Esog5VV.js +0 -534
  647. package/build/server/chunks/chunks/settings.js-D7vi6kH7.js +0 -379
  648. package/build/server/chunks/chunks/starter.js-JAh-nUu5.js +0 -400
  649. package/build/server/chunks/chunks/store.js-DHAfX_W5.js +0 -334
  650. package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +0 -504
  651. package/build/server/chunks/chunks/tools.js-BnmGImVp.js +0 -156
  652. package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +0 -107
  653. package/build/server/chunks/chunks/view.js-G_-xy6c3.js +0 -76
  654. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-B2J5-Jaz.js +0 -116
  655. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js--wAlyFki.js +0 -112
  656. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-BNkJb1Ei.js +0 -63
  657. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-CE4ho2tR.js +0 -79
  658. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-jEjvyX3L.js +0 -83
  659. package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-vYs_6t0J.js +0 -68
  660. package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-D6QVYL_4.js +0 -73
  661. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-BJ3Ravc8.js +0 -158
  662. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-BEPV7YR2.js +0 -57
  663. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BcZoObuM.js +0 -75
  664. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-CdU3fF0J.js +0 -111
  665. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-XzPx-PzQ.js +0 -87
  666. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-CzXJdEjR.js +0 -77
  667. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-X5fNEQPZ.js +0 -70
  668. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BS5jyhRw.js +0 -70
  669. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DUhm2FN4.js +0 -71
  670. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-Dm129oxx.js +0 -77
  671. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-CZVuQvpx.js +0 -70
  672. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CKJzfKIQ.js +0 -119
  673. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-rgQhLN38.js +0 -80
  674. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-E5Mf_VJv.js +0 -91
  675. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-C4yUZjAY.js +0 -79
  676. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-B86FNiew.js +0 -70
  677. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +0 -32
  678. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +0 -40
  679. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-rJYpVlFE.js +0 -62
  680. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-D0Nr2g1y.js +0 -62
  681. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CqTI0_pM.js +0 -89
  682. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-VNW7HGOT.js +0 -87
  683. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-BU-5ub-I.js +0 -80
  684. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-brrrZ6Zb.js +0 -172
  685. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Dhw2YuZk.js +0 -62
  686. package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-Dfoof_SQ.js +0 -71
  687. package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-CJ1FKLLp.js +0 -72
  688. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DpCseNhF.js +0 -91
  689. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-D4LS14N_.js +0 -72
  690. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-oJKS0Y1M.js +0 -27
  691. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-CiJNPYNd.js +0 -30
  692. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-BvbgYeeF.js +0 -105
  693. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +0 -74
  694. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-CodtKfl8.js +0 -122
  695. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-D1d85rzP.js +0 -76
  696. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-CC45m6Sr.js +0 -97
  697. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-DRZ8098M.js +0 -86
  698. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BHVex3Sd.js +0 -81
  699. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-CXlTitlI.js +0 -78
  700. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-C-b29jqN.js +0 -27
  701. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-C_DJ_pLg.js +0 -85
  702. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-xnGpQeHD.js +0 -39
  703. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-zMwJlAc8.js +0 -62
  704. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-44pVKE3k.js +0 -39
  705. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DWkAJEde.js +0 -42
  706. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-C-d6SYqR.js +0 -67
  707. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BrosK67i.js +0 -76
  708. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-otCGnd88.js +0 -73
  709. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BjoKSVe1.js +0 -77
  710. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-DX72RZRk.js +0 -27
  711. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-CzlxdvlD.js +0 -86
  712. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DZj1G9bN.js +0 -67
  713. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C5UJ7mLX.js +0 -76
  714. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-ClT0DY2-.js +0 -88
  715. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-BPJkenRn.js +0 -75
  716. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-Djs5J_D0.js +0 -98
  717. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-CH-_wkku.js +0 -81
  718. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-BGqL9IgY.js +0 -476
  719. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-CZy6ifJ_.js +0 -92
  720. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-B_SZ7MPW.js +0 -71
  721. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-4zkQC71I.js +0 -81
  722. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-CQ1vZ3MD.js +0 -141
  723. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-B78jOuRe.js +0 -70
  724. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DZv8AryD.js +0 -84
  725. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-fIpsUXJq.js +0 -70
  726. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BGaAEIbl.js +0 -73
  727. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-ksbo_110.js +0 -67
  728. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DkY1Gc2u.js +0 -86
  729. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-KhbknjpT.js +0 -113
  730. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-CViAXfb1.js +0 -79
  731. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-gDOC8B1N.js +0 -108
  732. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-D3Q8zW0q.js +0 -127
  733. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-DIqci-Ed.js +0 -82
  734. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-BybuPQi8.js +0 -84
  735. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-oWGGEMWD.js +0 -85
  736. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-_OAduKHo.js +0 -24
  737. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-yAP1YQDd.js +0 -31
  738. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-D_ecs712.js +0 -33
  739. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-D1Z78xWD.js +0 -97
  740. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BBFI9Moo.js +0 -40
  741. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-vAklFRiS.js +0 -27
  742. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DJsAgBb2.js +0 -27
  743. package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-CyCBaAZh.js +0 -78
  744. package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-CJgWNPC3.js +0 -68
  745. package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-zG5FVAtZ.js +0 -75
  746. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DX_RntZ9.js +0 -87
  747. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-CQOH8Ec_.js +0 -66
  748. package/build/server/chunks/entries/hooks.server.js-_T8-2Tdu.js +0 -108
  749. package/build/server/chunks/entries/pages/_layout.server.ts.js-BDFW8AE9.js +0 -55
  750. package/build/server/chunks/entries/pages/_layout.svelte.js-DsvCGNUI.js +0 -6023
  751. package/build/server/chunks/entries/pages/_page.server.ts.js-CQdBzftA.js +0 -16
  752. package/build/server/chunks/entries/pages/_page.svelte.js-Er6DIvYo.js +0 -4886
  753. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CmIcdp1K.js +0 -14
  754. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-CP46-bdg.js +0 -16
  755. package/build/server/chunks/entries/pages/documents/_page.server.ts.js-DoRczVBi.js +0 -15
  756. package/build/server/chunks/entries/pages/files/_page.server.ts.js-CZ5J1a0b.js +0 -17
  757. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-B-dJ56_o.js +0 -11
  758. package/build/server/chunks/entries/pages/health/_page.server.ts.js-FCGMZnS0.js +0 -16
  759. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-C1IMl0G3.js +0 -18
  760. package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-CvH6UZxP.js +0 -18
  761. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DYwy2QGP.js +0 -16
  762. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-CdqA3d8R.js +0 -23
  763. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-Dgc8jz0C.js +0 -21
  764. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BHxIGyYx.js +0 -27
  765. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-BeGIXTTQ.js +0 -15
  766. package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-BxSyKg7G.js +0 -25
  767. package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-WjfloLST.js +0 -37
  768. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-BHC_zI7E.js +0 -11
  769. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +0 -13
  770. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +0 -12
  771. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-C6gVOPBz.js +0 -18
  772. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-C28nfj0b.js +0 -19
  773. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-DD6wxYn3.js +0 -16
  774. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +0 -15
  775. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-w65a8vFY.js +0 -797
  776. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-Cf9cF9Bz.js +0 -11
  777. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-Cp-xHYfh.js +0 -19
  778. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-B0Yf6JFN.js +0 -17
  779. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-DlITF4bJ.js +0 -11
  780. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BnmlV12r.js +0 -11
  781. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Db7HqVFS.js +0 -15
  782. package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-qEc5nPtP.js +0 -178
  783. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-BipeV31Z.js +0 -18
  784. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-DHH6191x.js +0 -36
  785. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-BLYEV0pM.js +0 -121
  786. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DdNVejxy.js +0 -24
  787. package/build/server/chunks/entries/pages/time/_page.server.ts.js-C6_FcMaS.js +0 -11
  788. package/build/server/chunks/handler-DHfoWPhz.js +0 -1474
  789. package/build/server/chunks/index.js-B6Yr1yas.js +0 -4296
  790. package/build/server/chunks/manifest.js-royf2dM1.js +0 -1050
  791. package/build/server/chunks/nodes/0.js-Dv68eeJF.js +0 -69
  792. package/build/server/chunks/nodes/1.js-Bxx2N9rK.js +0 -9
  793. package/build/server/chunks/nodes/10.js-zqhC3nkd.js +0 -67
  794. package/build/server/chunks/nodes/11.js-DTii3QXJ.js +0 -69
  795. package/build/server/chunks/nodes/12.js-C7XBevXO.js +0 -68
  796. package/build/server/chunks/nodes/13.js-CdiONLGC.js +0 -69
  797. package/build/server/chunks/nodes/14.js-Jv0pUrsU.js +0 -12
  798. package/build/server/chunks/nodes/15.js-Dbq_BT7w.js +0 -9
  799. package/build/server/chunks/nodes/16.js-DxoDzZTm.js +0 -9
  800. package/build/server/chunks/nodes/17.js-mUmz_n5H.js +0 -67
  801. package/build/server/chunks/nodes/18.js-uI_lyO4m.js +0 -70
  802. package/build/server/chunks/nodes/19.js-DOjvikEu.js +0 -68
  803. package/build/server/chunks/nodes/2.js-CsyDQ9CR.js +0 -67
  804. package/build/server/chunks/nodes/20.js-BhZ3mJKX.js +0 -69
  805. package/build/server/chunks/nodes/21.js-B5qpuRmg.js +0 -68
  806. package/build/server/chunks/nodes/22.js-DIBxNE7D.js +0 -69
  807. package/build/server/chunks/nodes/23.js-_XdUJeXm.js +0 -69
  808. package/build/server/chunks/nodes/24.js-DFXLT-Ko.js +0 -25
  809. package/build/server/chunks/nodes/25.js-CubMvH_3.js +0 -25
  810. package/build/server/chunks/nodes/26.js-xEySzqTy.js +0 -9
  811. package/build/server/chunks/nodes/27.js-CqinYfdy.js +0 -25
  812. package/build/server/chunks/nodes/28.js-5W6qLa9a.js +0 -67
  813. package/build/server/chunks/nodes/3.js-wGSl8npu.js +0 -9
  814. package/build/server/chunks/nodes/30.js-CvU5RIda.js +0 -68
  815. package/build/server/chunks/nodes/31.js-Cc2URZTj.js +0 -67
  816. package/build/server/chunks/nodes/32.js-BzCsYJ2M.js +0 -25
  817. package/build/server/chunks/nodes/33.js-CsNDupaq.js +0 -67
  818. package/build/server/chunks/nodes/34.js-tUO-53DO.js +0 -25
  819. package/build/server/chunks/nodes/35.js-CzPtBxQF.js +0 -22
  820. package/build/server/chunks/nodes/36.js-vG_Yz-ba.js +0 -67
  821. package/build/server/chunks/nodes/37.js-B_Wn1hwE.js +0 -70
  822. package/build/server/chunks/nodes/38.js-DJipjIA8.js +0 -69
  823. package/build/server/chunks/nodes/39.js-BZ83h5TG.js +0 -26
  824. package/build/server/chunks/nodes/4.js-ueU4Ep-j.js +0 -68
  825. package/build/server/chunks/nodes/40.js-nFgIGStD.js +0 -69
  826. package/build/server/chunks/nodes/41.js-Dfq_Yre5.js +0 -71
  827. package/build/server/chunks/nodes/42.js-Cb-ls2O-.js +0 -68
  828. package/build/server/chunks/nodes/43.js-CL7RkfbH.js +0 -68
  829. package/build/server/chunks/nodes/44.js-BxrjdnVk.js +0 -67
  830. package/build/server/chunks/nodes/5.js-BsbkF-v-.js +0 -67
  831. package/build/server/chunks/nodes/6.js-TEqG30Pn.js +0 -67
  832. package/build/server/chunks/nodes/8.js-CMqXiMJ-.js +0 -67
  833. package/build/server/chunks/nodes/9.js-D53SUe7a.js +0 -14
@@ -0,0 +1,5 @@
1
+ import"./DsnmJJEf.js";import{s as Ze,r as Je,p as Ie}from"./DQWg__9S.js";import{I as $e}from"./DE0e4nJ8.js";import{i as Ct}from"./gocvF-xl.js";import{p as Ae,d as pe,e as _t,h as d,s as n,r as o,t as h,i as e,k as j,a as s,n as ve,b as Ce,j as N,c as l,o as X,f as me,l as qe,x as Fe,m as Ot,q as Qe}from"./Jk-ASPRO.js";import{d as Ne,s as D,a as se,e as Ve}from"./DTApYZoW.js";import{i as v}from"./BEVJas-l.js";import{e as ze,r as Se,a as M,g as Re,f as He,s as ce,c as Le,i as Lt}from"./DNP6oCAK.js";import{b as We}from"./CNxxt--f.js";import{D as ut,N as kt,u as St,W as Nt,w as Et,x as Rt,y as Wt,s as Pt}from"./nqsqhzVw.js";import{X as it}from"./m8-RluHE.js";import{C as Ft}from"./BbEKXuJh.js";import{C as jt}from"./C_BRvYKD.js";import{P as Ue}from"./fzA2mGC3.js";import{C as Xe}from"./c9k4nDgn.js";import{L as Ge}from"./DFaX1kYU.js";import{C as Yt}from"./BPBomwti.js";import{G as qt}from"./MgFVe5-f.js";import{F as wt}from"./CGgXi5F1.js";import{c as vt}from"./Cq7OFmxz.js";import{L as Ut}from"./DZZuZ7Nl.js";import{p as Ke,u as pt,L as Be,M as ft}from"./DotKSDx1.js";import{b as Xt,P as Gt}from"./CEgeDr98.js";import{M as xt,c as Kt}from"./V9uGi6jc.js";import{L as Bt}from"./B65GEZdd.js";import{E as ot}from"./gEZHG5dd.js";import{h as Ht,m as Qt}from"./CGnI1F6D.js";import{b as Vt}from"./DLfKkHEy.js";import{D as Zt,d as Jt}from"./DMIaeBcI.js";import{L as $t}from"./BUmi_NPh.js";import{D as ea}from"./CQCVxehf.js";var ta=new Set(["$$slots","$$events","$$legacy"]);function sn(p,t){let i=Je(t,ta);const a={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3"}],["path",{d:"M6 6v11"}],["path",{d:"M10 3v18"}],["path",{d:"M14 8v7"}],["path",{d:"M18 5v13"}],["path",{d:"M22 10v3"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}var aa=new Set(["$$slots","$$events","$$legacy"]);function ra(p,t){let i=Je(t,aa);const a={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}var na=new Set(["$$slots","$$events","$$legacy"]);function oa(p,t){let i=Je(t,na);const a={name:"list-checks",size:24,node:[["path",{d:"M13 5h8"}],["path",{d:"M13 12h8"}],["path",{d:"M13 19h8"}],["path",{d:"m3 17 2 2 4-4"}],["path",{d:"m3 7 2 2 4-4"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}var sa=new Set(["$$slots","$$events","$$legacy"]);function dn(p,t){let i=Je(t,sa);const a={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}const ln=(p,t,i,a)=>Ct.answer(p,t.choice,i,a,t.picks,t.decided),ia=28,Pe=300,st=(p,t={})=>({choice:p,picks:null,decided:null,...t}),da={merge:[{label:"Merge",choice:"approve"},{label:"Not yet",choice:"skip"}],preview:[{label:"Sign it off",choice:"approve"},{label:"Request changes",choice:"fix"}],hold:[{label:"Go ahead",choice:"approve"},{label:"Not like this",choice:"fix"}],decision:[{label:"Go ahead",choice:"approve"},{label:"Change course",choice:"fix"}],blocked:[{label:"Go ahead",choice:"approve"},{label:"Try another way",choice:"fix"}],review:[{label:"Keep it as is",choice:"approve"},{label:"Fix it",choice:"fix"},{label:"Leave it for later",choice:"skip"}]},la=/^(?:which|what|how|where|who|when|why)\b/i;function ca(p){const t=(p??"").match(/[^.?!]*\?/g),i=t?.[t.length-1]?.trim();return!!i&&la.test(i)}function cn(p){const t=p.choices;if(t){const[w]=t.calls;return t.calls.length===1&&w.options.length?{kind:"choice",prompt:w.prompt,from:"card",options:w.options.map(f=>({id:f.id,label:f.label,detail:f.detail,recommended:f.recommended,answer:st("approve",{picks:{[w.id]:f.id}})}))}:{kind:"picks",prompt:null,choices:t,from:"card"}}if((p.kind==="hold"||p.kind==="decision")&&ca(p.question))return{kind:"text",prompt:null,from:"card"};const i=p.recommendation?.choice??(p.kind==="merge"?"approve":null),a=da[p.kind],g=a.map(w=>({id:w.choice,label:w.label,detail:null,recommended:w.choice===i,answer:st(w.choice)}));return{kind:a.length===2?"buttons":"choice",prompt:null,options:g,from:"card"}}const dt=/```decision-form[^\n]*\n([\s\S]*?)(?:```|$)/g,ht=/\s*\((?:recommended|rec)\)\s*/i,ma=/^\(written(?: answer)?\)$/i,gt=p=>p.replace(/\s+/g," ").trim();function mn(p){const t=[...p.matchAll(dt)],i=t[t.length-1]?.[1];if(i===void 0)return null;let a=null,g=!1;const w=[];for(const G of i.split(`
2
+ `)){const x=G.trim();if(!x)continue;const K=/^[-*•]\s+(.*)$/.exec(x)?.[1];if(K===void 0){a??=gt(x);continue}if(ma.test(K.trim())){g=!0;continue}const re=ht.test(K),_=gt(K.replace(ht," ")),E=_.search(/:\s|\s[–—]\s/),R=(E>0?_.slice(0,E):_).trim().slice(0,Pe),Y=E>0&&_.slice(E).replace(/^[:–—]?\s*/,"").trim()||null;R&&w.push({id:`o${w.length+1}`,label:R,detail:Y,recommended:re,answer:st("approve",{decided:R})})}return w.length?{kind:w.length===2&&w.every(G=>!G.detail&&G.label.length<=ia)?"buttons":"choice",prompt:a,options:w,from:"firstmate"}:g||a?{kind:"text",prompt:a,from:"firstmate"}:null}const ua=/^```decision-form[^\S\n]+(?:[^\n]*\s)?id=([A-Za-z0-9][\w.@-]{0,199})(?=\s|$)/;function un(p){const t=[...p.matchAll(dt)],i=t[t.length-1];return i?ua.exec(i[0])?.[1]??null:null}const vn=p=>p.replace(dt,"").trim();function pn(p,t){if(t.picks)return t.picks;if(p&&(p.kind==="buttons"||p.kind==="choice")){const i=p.options.find(a=>a.answer.choice===t.choice&&!a.answer.decided);if(i)return i.label}return t.label}var va=l('<label class="inline-flex min-h-9 cursor-pointer items-center gap-1.5 rounded-full border px-2.5 text-xs transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 max-md:min-h-11"><input type="radio" class="accent-sea"/> </label>'),pa=l('<input type="text" placeholder="Why it is not needed" aria-label="Your reason for dismissing it" class="mt-2 block h-9 w-full rounded-md border border-input bg-background px-2.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:h-11 max-md:text-base"/>'),fa=l('<form class="mt-2 rounded-md border bg-background/60 px-3 py-2.5 text-sm" data-dismiss-picker=""><fieldset><legend class="text-xs font-medium text-muted-foreground">Dismiss it without an answer. Why?</legend> <div class="mt-1.5 flex flex-wrap gap-1.5"></div></fieldset> <!> <div class="mt-2 flex flex-wrap items-center gap-1.5"><button type="submit" class="inline-flex min-h-9 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50 max-md:min-h-11" data-dismiss-confirm=""><!>Dismiss it</button> <button type="button" class="inline-flex min-h-9 cursor-pointer items-center rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground max-md:min-h-11">Cancel</button> <span class="text-xs text-muted-foreground">Firstmate records it closed everywhere.</span></div></form>');function xa(p,t){Ae(t,!0);let i=Ie(t,"disabled",3,!1);const a="own";let g=pe(_t(ut[0])),w=pe("");const f=N(()=>e(g)===a?e(w).trim():e(g));var G=fa(),x=d(G),K=n(d(x),2);ze(K,20,()=>[...ut,a],T=>T,(T,Z)=>{var ie=va(),ee=d(ie);Se(ee);var C=n(ee,1,!0);o(ie),h(()=>{M(ee,"name",`dismiss-${t.name??""}`),Re(ee,Z),He(ee,e(g)===Z),D(C,Z===a?"Another reason":Z)}),se("change",ee,()=>j(g,Z,!0)),s(T,ie)}),o(K),o(x);var re=n(x,2);{var _=T=>{var Z=pa();Se(Z),h(()=>M(Z,"maxlength",kt)),We(Z,()=>e(w),ie=>j(w,ie)),s(T,Z)};v(re,T=>{e(g)===a&&T(_)})}var E=n(re,2),R=d(E),Y=d(R);it(Y,{class:"size-3.5","aria-hidden":"true"}),ve(),o(R);var q=n(R,2);ve(2),o(E),o(G),h(()=>R.disabled=i()||e(g)===a&&!e(f)),Ve("submit",G,T=>{T.preventDefault(),!i()&&(e(g)!==a||e(f))&&t.onDismiss(e(f)||null)}),se("click",q,function(...T){t.onCancel?.apply(this,T)}),s(p,G),Ce()}Ne(["change","click"]);var ha=l('<form class="mt-2 flex items-end gap-2 rounded-lg border border-input bg-background px-2.5 py-1.5 focus-within:ring-2 focus-within:ring-ring"><textarea rows="1" placeholder="Your own answer" aria-label="Your own answer" class="field-sizing-content max-h-32 min-h-7 flex-1 resize-none bg-transparent py-0.5 text-sm placeholder:text-muted-foreground focus:outline-none max-md:self-center max-md:text-base" data-other-text=""></textarea> <button type="submit" class="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 text-sm font-medium text-on-accent disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11 max-md:px-3.5" data-other-send=""><!>Send</button></form>'),ga=l('<p class="text-sm leading-snug font-medium"> </p>'),ba=l('<p class="mt-2 flex items-start gap-1.5 text-sm leading-snug" data-decided=""><!><span>You decided <span class="font-semibold"> </span></span></p>'),_a=l('<p class="mt-2 flex items-start gap-1.5 text-sm leading-snug" data-dismissed=""><!><span> </span></p>'),ka=l('<span class="text-xs font-normal opacity-80">· recommended</span>'),wa=l("<button> <!></button>"),ya=l('<div class="mt-2 flex flex-wrap items-center gap-1.5 max-md:flex-col max-md:items-stretch max-md:gap-2" role="group" aria-label="Answer"><!> <button data-other=""><!>Other…</button></div> <!>',1),za=l('<span class="text-foreground/85"> </span>'),bt=l('<span class="ml-1.5 text-xs font-medium whitespace-nowrap text-brass">Recommended</span>'),Da=l('<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug"><span class="font-semibold"> </span><!><!></span></label>'),Ma=l('<textarea rows="2" placeholder="Your own answer" aria-label="Your own answer" class="mt-2 block field-sizing-content max-h-40 min-h-12 w-full resize-none rounded-md border border-input bg-background px-2.5 py-1.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:text-base" data-other-text=""></textarea>'),Ta=l('<div class="mt-2 flex flex-col gap-1.5 max-md:gap-2" role="radiogroup"><!> <label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border border-dashed px-2.5 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:checked]:text-foreground has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base" data-other=""><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="inline-flex min-w-0 items-center gap-1 leading-snug"><!>Other: write your own answer</span></label></div> <!> <div class="mt-2.5"><button data-decide=""><!> </button></div>',1),Ia=l('<span class="mr-1 text-muted-foreground tabular-nums"> </span>'),Aa=l('<span class="ml-1 font-normal text-muted-foreground">· optional</span>'),Ca=l('<span class="font-semibold"> </span><span class="text-foreground/85"> </span>',1),Oa=l('<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug"><!><!></span></label>'),La=l("<div></div>"),Sa=l('<input type="text" placeholder="Your answer (optional)" class="mt-1.5 block h-9 w-full rounded-md border border-input bg-background px-2.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:h-12 max-md:text-base"/>'),Na=l('<fieldset class="min-w-0"><legend class="text-sm leading-snug font-medium"><!> <!></legend> <!></fieldset>'),Ea=l('<p class="mt-1.5 text-xs text-muted-foreground"> </p>'),Ra=l('<div class="mt-2 flex flex-col gap-3" role="group" aria-label="Your picks"></div> <div class="mt-2.5"><button data-decide=""><!>Decide</button> <button data-other=""><!>Other…</button> <!></div> <!>',1),Wa=l('<form class="mt-2 flex items-end gap-2 rounded-lg border border-input bg-background px-2.5 py-1.5 focus-within:ring-2 focus-within:ring-ring"><textarea rows="1" placeholder="Your answer" class="field-sizing-content max-h-32 min-h-7 flex-1 resize-none bg-transparent py-0.5 text-sm placeholder:text-muted-foreground focus:outline-none max-md:self-center max-md:text-base"></textarea> <button type="submit" class="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 text-sm font-medium text-on-accent disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11 max-md:px-3.5" data-decide=""><!>Decide</button></form>'),Pa=l('<label class="mt-2 block"><span class="sr-only">Note for Firstmate (optional)</span> <textarea rows="1" placeholder="A note to go with your answer (optional)" class="block field-sizing-content max-h-40 min-h-9 w-full resize-none rounded-md border border-input bg-background px-2.5 py-1.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:text-base"></textarea></label>'),Fa=l('<button class="mt-1.5 inline-flex cursor-pointer items-center gap-1 rounded px-1 text-xs text-muted-foreground hover:text-foreground max-md:min-h-11 max-md:text-sm"><!>Add a note</button>'),ja=l('<button class="mt-1.5 ml-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 text-xs text-muted-foreground hover:text-foreground max-md:min-h-11 max-md:text-sm" data-dismiss=""><!>Dismiss</button>'),Ya=l('<div class="mt-3"><!> <!> <!> <!></div>');function fn(p,t){Ae(t,!0);const i=c=>{var r=ha(),m=d(r);qe(m);var k=n(m,2),A=d(k);Xe(A,{class:"size-3.5","aria-hidden":"true"}),ve(),o(k),o(r),h(u=>{M(m,"maxlength",Pe),m.disabled=!a(),k.disabled=u},[()=>!a()||!e(E).trim()]),Ve("submit",r,u=>{u.preventDefault(),ie()}),We(m,()=>e(E),u=>j(E,u)),s(c,r)};let a=Ie(t,"canAnswer",3,!0),g=Ie(t,"decided",3,null),w=Ie(t,"dismissed",3,null),f=Ie(t,"other",15,!1),G=pe(null),x=pe(_t({})),K=pe(""),re=pe(""),_=pe(!1),E=pe(""),R=pe(!1);const Y="other",q=N(()=>t.form.kind==="buttons"||t.form.kind==="choice"?t.form.options:[]),T=N(()=>f()?null:e(q).find(c=>c.id===e(G))??e(q).find(c=>c.recommended)??null),Z=N(()=>g()!==null||w()!==null),ie=()=>{const c=e(E).trim();c&&C({choice:"approve",picks:null,decided:c.slice(0,Pe),other:!0})},ee=N(()=>t.form.kind==="picks"?Rt(t.form.choices,e(x)):[]),C=c=>t.onAnswer(c,e(re).trim()||null),U=c=>c.options.every(r=>!r.detail&&r.label.length<=28),fe="border-sea bg-sea text-on-accent hover:bg-sea/90";var ne=Ya(),he=d(ne);{var ge=c=>{var r=ga(),m=X(r,!0);h(()=>D(m,t.form.prompt)),s(c,r)};v(he,c=>{t.form.prompt&&c(ge)})}var W=n(he,2);{var H=c=>{var r=ba(),m=d(r);Ft(m,{class:"mt-0.5 size-3.5 shrink-0 text-success","aria-hidden":"true"});var k=n(m),A=n(d(k)),u=X(A,!0);o(k),o(r),h(()=>D(u,g())),s(c,r)},B=c=>{var r=_a(),m=d(r);jt(m,{class:"mt-0.5 size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var k=n(m),A=X(k);o(r),h(()=>D(A,`You dismissed it${w()?`: ${w()}`:""}`)),s(c,r)},O=c=>{var r=ya(),m=me(r),k=d(m);ze(k,17,()=>t.form.options,de=>de.id,(de,be)=>{var ue=wa(),_e=d(ue,!0),Oe=n(_e);{var le=S=>{var ae=ka();s(S,ae)};v(Oe,S=>{e(be).recommended&&S(le)})}o(ue),h(()=>{ce(ue,1,`inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base ${e(be).recommended?fe:"bg-background hover:bg-accent"}`),ue.disabled=!a(),M(ue,"data-option",e(be).id),D(_e,e(be).label)}),se("click",ue,()=>C(e(be).answer)),s(de,ue)});var A=n(k,2);ce(A,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-dashed bg-background text-muted-foreground hover:bg-accent hover:text-foreground");var u=d(A);Ue(u,{class:"size-3.5","aria-hidden":"true"}),ve(),o(A),o(m);var L=n(m,2);{var V=de=>{i(de)};v(L,de=>{f()&&de(V)})}h(()=>{A.disabled=!a(),M(A,"aria-expanded",f())}),se("click",A,()=>f(!f())),s(c,r)},I=c=>{var r=Ta(),m=me(r),k=d(m);ze(k,17,()=>t.form.options,S=>S.id,(S,ae)=>{var ke=Da(),we=d(ke);Se(we);var je=n(we,2),Ee=d(je),et=X(Ee,!0),Ye=n(Ee);{var tt=J=>{var $=za(),xe=X($,!0);h(()=>D(xe,` · ${e(ae).detail}`)),s(J,$)};v(Ye,J=>{e(ae).detail&&J(tt)})}var at=n(Ye);{var rt=J=>{var $=bt();s(J,$)};v(at,J=>{e(ae).recommended&&J(rt)})}o(je),o(ke),h(()=>{M(we,"name",`form-${t.name??""}`),Re(we,e(ae).id),He(we,e(T)?.id===e(ae).id),we.disabled=!a(),D(et,e(ae).label)}),se("change",we,()=>{j(G,e(ae).id,!0),f(!1)}),s(S,ke)});var A=n(k,2),u=d(A);Se(u),Re(u,Y);var L=n(u,2),V=d(L);Ue(V,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(L),o(A),o(m);var de=n(m,2);{var be=S=>{var ae=Ma();qe(ae),h(()=>{M(ae,"maxlength",Pe),ae.disabled=!a()}),We(ae,()=>e(E),ke=>j(E,ke)),s(S,ae)};v(de,S=>{f()&&S(be)})}var ue=n(de,2),_e=d(ue);ce(_e,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90");var Oe=d(_e);Xe(Oe,{class:"size-3.5","aria-hidden":"true"});var le=n(Oe,1,!0);o(_e),o(ue),h(S=>{M(m,"aria-label",t.form.prompt??"Options"),M(u,"name",`form-${t.name??""}`),He(u,f()),u.disabled=!a(),_e.disabled=S,D(le,f()?"Send your answer":`Decide${e(T)?`: ${e(T).label}`:""}`)},[()=>!a()||(f()?!e(E).trim():!e(T))]),se("change",u,()=>f(!0)),se("click",_e,()=>f()?ie():e(T)&&C(e(T).answer)),s(c,r)},b=c=>{const r=N(()=>Et(t.form.choices,e(x)));var m=Ra(),k=me(m);ze(k,21,()=>t.form.choices.calls,le=>le.id,(le,S)=>{var ae=Na(),ke=d(ae),we=d(ke);{var je=J=>{var $=Ia(),xe=X($);h(()=>D(xe,`${e(S).number??""}.`)),s(J,$)};v(we,J=>{e(S).number!==null&&J(je)})}var Ee=n(we,1,!0),et=n(Ee);{var Ye=J=>{var $=Aa();s(J,$)};v(et,J=>{e(S).required||J(Ye)})}o(ke);var tt=n(ke,2);{var at=J=>{var $=La();ze($,21,()=>e(S).options,xe=>xe.id,(xe,De)=>{var nt=Oa(),Me=d(nt);Se(Me);var lt=n(Me,2),ct=d(lt);{var yt=ye=>{var Te=Ca(),mt=me(Te),Tt=X(mt,!0),It=n(mt),At=X(It,!0);h(()=>{D(Tt,e(De).label),D(At,` · ${e(De).detail}`)}),s(ye,Te)},zt=ye=>{var Te=Ot();h(()=>D(Te,e(De).label)),s(ye,Te)};v(ct,ye=>{e(De).detail?ye(yt):ye(zt,-1)})}var Dt=n(ct);{var Mt=ye=>{var Te=bt();s(ye,Te)};v(Dt,ye=>{e(De).recommended&&ye(Mt)})}o(lt),o(nt),h(()=>{M(Me,"name",`pick-${t.name??""}-${e(S).id??""}`),Re(Me,e(De).id),He(Me,e(r)[e(S).id]===e(De).id),Me.disabled=!a()}),se("change",Me,()=>j(x,{...e(x),[e(S).id]:e(De).id},!0)),s(xe,nt)}),o($),h(xe=>ce($,1,`mt-1.5 flex gap-1.5 max-md:flex-col max-md:gap-2 ${xe??""}`),[()=>U(e(S))?"flex-wrap":"flex-col"]),s(J,$)},rt=J=>{var $=Sa();Se($),h(xe=>{Re($,e(x)[e(S).id]??""),M($,"maxlength",Nt),$.disabled=!a(),M($,"aria-label",`Your answer to ${xe??""}`)},[()=>St(e(S))||"this call"]),se("input",$,xe=>j(x,{...e(x),[e(S).id]:xe.currentTarget.value},!0)),s(J,$)};v(tt,J=>{e(S).options.length?J(at):J(rt,-1)})}o(ae),h(()=>D(Ee,e(S).prompt??"Pick one")),s(le,ae)}),o(k);var A=n(k,2),u=d(A);ce(u,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90");var L=d(u);Xe(L,{class:"size-3.5","aria-hidden":"true"}),ve(),o(u);var V=n(u,2);ce(V,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-dashed bg-background text-muted-foreground hover:bg-accent hover:text-foreground");var de=d(V);Ue(de,{class:"size-3.5","aria-hidden":"true"}),ve(),o(V);var be=n(V,2);{var ue=le=>{var S=Ea(),ae=X(S);h(ke=>D(ae,`Pick one for ${ke??""} to decide.`),[()=>e(ee).map(Wt).join(", ")]),s(le,S)};v(be,le=>{e(ee).length&&le(ue)})}o(A);var _e=n(A,2);{var Oe=le=>{i(le)};v(_e,le=>{f()&&le(Oe)})}h(()=>{u.disabled=!a()||e(ee).length>0,V.disabled=!a(),M(V,"aria-expanded",f())}),se("click",u,()=>C({choice:"approve",picks:e(x),decided:null})),se("click",V,()=>f(!f())),s(c,m)},y=c=>{var r=Wa(),m=d(r);qe(m);var k=n(m,2),A=d(k);Xe(A,{class:"size-3.5","aria-hidden":"true"}),ve(),o(k),o(r),h(u=>{M(m,"maxlength",Pe),m.disabled=!a(),M(m,"aria-label",t.form.prompt??"Your answer"),k.disabled=u},[()=>!a()||!e(K).trim()]),Ve("submit",r,u=>{u.preventDefault();const L=e(K).trim();L&&C({choice:"approve",picks:null,decided:L})}),We(m,()=>e(K),u=>j(K,u)),s(c,r)};v(W,c=>{g()!==null?c(H):w()!==null?c(B,1):t.form.kind==="buttons"?c(O,2):t.form.kind==="choice"?c(I,3):t.form.kind==="picks"?c(b,4):c(y,-1)})}var z=n(W,2);{var P=c=>{},F=c=>{var r=Pa(),m=n(d(r),2);qe(m),o(r),h(()=>M(m,"maxlength",kt)),We(m,()=>e(re),k=>j(re,k)),s(c,r)},Q=c=>{var r=Fa(),m=d(r);Ue(m,{class:"size-3","aria-hidden":"true"}),ve(),o(r),se("click",r,()=>j(_,!0)),s(c,r)};v(z,c=>{e(Z)?c(P):e(_)?c(F,1):a()&&c(Q,2)})}var te=n(z,2);{var oe=c=>{var r=Fe(),m=me(r);{var k=u=>{xa(u,{get name(){return t.name},onDismiss:L=>{j(R,!1),t.onDismiss(L)},onCancel:()=>j(R,!1)})},A=u=>{var L=ja(),V=d(L);it(V,{class:"size-3","aria-hidden":"true"}),ve(),o(L),se("click",L,()=>j(R,!0)),s(u,L)};v(m,u=>{e(R)?u(k):u(A,-1)})}s(c,r)};v(te,c=>{t.onDismiss&&!e(Z)&&a()&&c(oe)})}o(ne),h(()=>{M(ne,"data-decision-form",t.form.kind),M(ne,"data-form-from",t.form.from)}),s(p,ne),Ce()}Ne(["click","change","input"]);var qa=l('<span class="font-normal"> </span>'),Ua=l('<dt class="text-muted-foreground">Asked</dt> <dd> </dd>',1),Xa=l('<span class="mr-1.5 rounded bg-danger/10 px-1 text-xs font-medium text-danger">Serious</span>'),Ga=l('<p class="mt-0.5 font-mono text-xs text-muted-foreground"> </p>'),Ka=l('<p class="mt-1 text-xs leading-relaxed text-muted-foreground"><!></p>'),Ba=l('<li><p class="leading-snug"><!><!></p> <!> <!></li>'),Ha=l('<ol class="space-y-2.5"></ol>'),Qa=l('<div><p class="text-xs font-medium text-muted-foreground">As Firstmate wrote it</p> <p class="mt-0.5 leading-relaxed text-muted-foreground"><!></p></div>'),Va=l('<p class="leading-relaxed whitespace-pre-line text-muted-foreground"><!></p>'),Za=l('<span class="ml-1.5 text-muted-foreground"> </span>'),Ja=l('<li><a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 break-all text-sea hover:underline"><!> </a><!></li>'),$a=l('<li class="inline-flex items-center gap-1 text-muted-foreground"><!>Findings file <span class="font-mono break-all"> </span></li>'),er=l('<ul class="flex flex-col gap-1 text-xs"><!> <!></ul>'),tr=l('<div class="mt-2 space-y-3 rounded-md border bg-background/60 p-3 text-sm" data-details-panel=""><dl class="grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">Decision</dt> <dd class="min-w-0 font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Raised by</dt> <dd class="min-w-0 break-words"> </dd></dl> <!> <!> <!> <!></div>'),ar=l('<button class="touch-target mt-3 flex cursor-pointer items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground" data-details="">Details<!><!></button> <!>',1);function xn(p,t){Ae(t,!0);let i=Ie(t,"expanded",3,!1);const a=N(()=>t.card.evidence),g=N(()=>t.card.kind==="hold"?t.card.key:`${t.card.taskId} · ${t.card.key}`),w=N(()=>t.card.question!==t.card.title?t.card.question:null),f=N(()=>t.card.askedAt?new Date(t.card.askedAt).toLocaleString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}):null);var G=ar(),x=me(G),K=n(d(x));{let Y=N(()=>i()?"rotate-180":"");Yt(K,{get class(){return`size-3.5 transition-transform ${e(Y)??""}`},"aria-hidden":"true"})}var re=n(K);{var _=Y=>{var q=qa(),T=X(q);h(()=>D(T,`${e(a).findings.length?` · ${e(a).findings.length} ${e(a).findings.length===1?"finding":"findings"}`:""}${e(a).pr?" · pull request":""}`)),s(Y,q)};v(re,Y=>{i()||Y(_)})}o(x);var E=n(x,2);{var R=Y=>{var q=tr(),T=d(q),Z=n(d(T),2),ie=X(Z,!0),ee=n(Z,2);{var C=b=>{var y=Ua(),z=n(me(y),2),P=X(z,!0);h(()=>D(P,e(f))),s(b,y)};v(ee,b=>{e(f)&&b(C)})}var U=n(ee,4),fe=X(U,!0);o(T);var ne=n(T,2);{var he=b=>{var y=Ha();ze(y,21,()=>e(a).findings,z=>z.id,(z,P)=>{var F=Ba(),Q=d(F),te=d(Q);{var oe=u=>{var L=Xa();s(u,L)};v(te,u=>{e(P).serious&&u(oe)})}var c=n(te);Ge(c,{get text(){return e(P).summary}}),o(Q);var r=n(Q,2);{var m=u=>{var L=Ga(),V=X(L,!0);h(()=>D(V,e(P).where)),s(u,L)};v(r,u=>{e(P).where&&u(m)})}var k=n(r,2);{var A=u=>{var L=Ka(),V=d(L);Ge(V,{get text(){return e(P).detail}}),o(L),s(u,L)};v(k,u=>{e(P).detail&&u(A)})}o(F),s(z,F)}),o(y),s(b,y)};v(ne,b=>{e(a).findings.length&&b(he)})}var ge=n(ne,2);{var W=b=>{var y=Qa(),z=n(d(y),2),P=d(z);Ge(P,{get text(){return e(w)}}),o(z),o(y),s(b,y)};v(ge,b=>{e(w)&&b(W)})}var H=n(ge,2);{var B=b=>{var y=Va(),z=d(y);Ge(z,{get text(){return e(a).text}}),o(y),s(b,y)};v(H,b=>{e(a).text&&b(B)})}var O=n(H,2);{var I=b=>{var y=er(),z=d(y);{var P=te=>{var oe=Ja(),c=d(oe),r=d(c);qt(r,{class:"size-3.5 shrink-0","aria-hidden":"true"});var m=n(r,1,!0);o(c);var k=n(c);{var A=u=>{var L=Za(),V=X(L);h(()=>D(V,`· checks ${e(a).checks??""}`)),s(u,L)};v(k,u=>{e(a).checks&&u(A)})}o(oe),h(()=>{M(c,"href",e(a).pr.url),D(m,e(a).pr.url)}),s(te,oe)};v(z,te=>{e(a).pr&&te(P)})}var F=n(z,2);{var Q=te=>{var oe=$a(),c=d(oe);wt(c,{class:"size-3.5 shrink-0","aria-hidden":"true"});var r=n(c,2),m=X(r,!0);o(oe),h(()=>D(m,e(a).file)),s(te,oe)};v(F,te=>{e(a).file&&te(Q)})}o(y),s(b,y)};v(O,b=>{(e(a).pr||e(a).file)&&b(I)})}o(q),h(()=>{D(ie,e(g)),D(fe,t.card.origin?`Firstmate, from ${t.card.origin}`:t.card.taskTitle)}),s(Y,q)};v(E,Y=>{i()&&Y(R)})}h(()=>M(x,"aria-expanded",i())),se("click",x,function(...Y){t.onToggle?.apply(this,Y)}),s(p,G),Ce()}Ne(["click"]);var rr=l('<div class="overflow-hidden rounded-t-md border-b"><!></div>'),nr=l('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-preview="down"><!>Preview stopped</span>'),or=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 text-muted-foreground hover:text-foreground hover:underline max-md:min-h-11"> <!></a>'),sr=l('<button type="button" class="inline-flex cursor-pointer items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" aria-haspopup="dialog" data-where-preview=""><!>Open the preview</button> <!>',1),ir=l('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-board="down"><!>Board stopped</span>'),dr=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" data-where-board=""><!>Open the board<!></a>'),lr=l('<div class="mt-2.5 rounded-md border bg-background/60 text-xs" data-decision-where=""><!> <div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-2"><span class="text-muted-foreground">Where it is</span> <!> <!></div></div>'),cr=l('<li class="w-48 max-w-full overflow-hidden rounded-md border bg-background" data-thumb-preview=""><!> <p class="flex items-center gap-1 border-t px-2 py-1 text-[0.7rem] text-muted-foreground"><!><span class="truncate"> </span></p></li>'),mr=l('<li><button type="button" class="block cursor-zoom-in overflow-hidden rounded-md border bg-background" aria-haspopup="dialog" data-thumb-shot=""><img class="h-20 w-32 object-cover object-top sm:h-24 sm:w-36" loading="lazy"/></button></li>'),ur=l('<ul class="mt-2.5 flex flex-wrap gap-2" aria-label="Thumbnails" data-decision-thumbs=""><!> <!></ul>'),vr=l("<!> <!> <!> <!>",1);function pr(p,t){Ae(t,!0);const i=N(()=>t.card.evidence),a=N(()=>Xt()?null:e(i).board),g=N(()=>e(i).previewTask??(e(i).preview?pt(e(i).preview):null)),w=N(()=>e(a)?pt(e(a)):null);Qe(()=>{if(e(g))return Ke.watch(e(g))}),Qe(()=>{if(e(w))return Ke.watch(e(w))});const f=N(()=>e(g)?Ke.checks[e(g)]:void 0),G=N(()=>e(w)?Ke.checks[e(w)]:void 0),x=N(()=>e(f)?.state==="down"),K=N(()=>e(G)?.state==="down"),re=N(()=>e(f)?.url??e(i).preview),_=W=>W?URL.parse(W)?.host??W:"",E=N(()=>t.card.kind==="preview"&&!!e(i).preview),R=N(()=>e(i).screenshots??[]),Y=N(()=>!e(E)&&!!e(g)&&!e(x));let q=pe(null),T=pe(null);const Z=W=>j(q,{from:W.currentTarget.getBoundingClientRect()},!0);var ie=vr(),ee=me(ie);{var C=W=>{var H=lr(),B=d(H);{var O=F=>{var Q=rr(),te=d(Q);{var oe=r=>{Be(r,{get taskId(){return e(i).previewTask},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})},c=r=>{Be(r,{get url(){return e(i).preview},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})};v(te,r=>{e(i).previewTask?r(oe):r(c,-1)})}o(Q),s(F,Q)};v(B,F=>{e(E)&&e(g)&&F(O)})}var I=n(B,2),b=n(d(I),2);{var y=F=>{var Q=Fe(),te=me(Q);{var oe=r=>{var m=nr(),k=d(m);ft(k,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(m),s(r,m)},c=r=>{var m=sr(),k=me(m),A=d(k);xt(A,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(k);var u=n(k,2);{var L=V=>{var de=or(),be=d(de,!0),ue=n(be);ot(ue,{class:"size-3.5 shrink-0","aria-hidden":"true"}),o(de),h(_e=>{M(de,"href",e(re)),M(de,"title",e(re)),D(be,_e)},[()=>_(e(i).preview)]),s(V,de)};v(u,V=>{e(re)&&V(L)})}se("click",k,Z),s(r,m)};v(te,r=>{e(x)?r(oe):r(c,-1)})}s(F,Q)};v(b,F=>{e(i).preview&&F(y)})}var z=n(b,2);{var P=F=>{var Q=Fe(),te=me(Q);{var oe=r=>{var m=ir(),k=d(m);ft(k,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(m),s(r,m)},c=r=>{var m=dr(),k=d(m);Bt(k,{class:"size-3.5 shrink-0","aria-hidden":"true"});var A=n(k,2);ot(A,{class:"size-3.5 shrink-0","aria-hidden":"true"}),o(m),h(()=>{M(m,"href",e(a)),M(m,"title",e(a))}),s(r,m)};v(te,r=>{e(K)?r(oe):r(c,-1)})}s(F,Q)};v(z,F=>{e(a)&&F(P)})}o(I),o(H),s(W,H)};v(ee,W=>{(e(i).preview||e(a))&&W(C)})}var U=n(ee,2);{var fe=W=>{var H=ur(),B=d(H);{var O=b=>{var y=cr(),z=d(y);{var P=r=>{Be(r,{get taskId(){return e(i).previewTask},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})},F=r=>{Be(r,{get url(){return e(i).preview},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})};v(z,r=>{e(i).previewTask?r(P):r(F,-1)})}var Q=n(z,2),te=d(Q);xt(te,{class:"size-3 shrink-0","aria-hidden":"true"});var oe=n(te),c=X(oe);o(Q),o(y),h(r=>D(c,`Preview · ${r??""}`),[()=>_(e(i).preview)]),s(b,y)};v(B,b=>{e(Y)&&b(O)})}var I=n(B,2);ze(I,19,()=>e(R),b=>b.url,(b,y,z)=>{var P=mr(),F=d(P),Q=X(F);o(P),h(()=>{M(F,"title",`Enlarge ${e(y).name??""}`),M(Q,"src",e(y).url),M(Q,"alt",e(y).name)}),se("click",F,()=>j(T,e(z),!0)),s(b,P)}),o(H),s(W,H)};v(U,W=>{(e(Y)||e(R).length)&&W(fe)})}var ne=n(U,2);Ut(ne,{get shots(){return e(R)},get index(){return e(T)},set index(W){j(T,W,!0)}});var he=n(ne,2);{var ge=W=>{{let H=N(()=>e(q)?.from??null);Gt(W,{get taskId(){return e(i).previewTask},get title(){return t.card.taskTitle},get url(){return e(i).preview},get from(){return e(H)},onclose:()=>j(q,null)})}};v(he,W=>{e(q)&&e(i).preview&&W(ge)})}s(p,ie),Ce()}Ne(["click"]);var fr=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-accent hover:text-foreground">Open in a new tab<!></a>'),xr=l('<p class="text-danger" role="alert"> </p>'),hr=l('<p class="text-muted-foreground">Reading it…</p>'),gr=l('<div class="chat-md"></div>'),br=l("<span> </span>"),_r=l('<pre class="font-mono text-xs leading-relaxed whitespace-pre-wrap" data-patch=""></pre>'),kr=l('<div class="flex items-center gap-2 border-b px-4 py-2.5 text-sm"><span class="min-w-0 flex-1"><span class="block truncate font-medium"> </span> <span class="block truncate font-mono text-xs text-muted-foreground"> </span></span> <!> <button type="button" class="flex size-9 cursor-pointer items-center justify-center rounded hover:bg-accent" aria-label="Close"><!></button></div> <div class="min-h-0 flex-1 overflow-y-auto px-4 py-3 text-sm sm:px-6"><!></div>',1),wr=l('<dialog class="m-auto flex max-h-[90vh] w-[min(94vw,56rem)] flex-col overflow-hidden rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60 [&amp;:not([open])]:hidden" data-doc-modal=""><!></dialog>');function yr(p,t){Ae(t,!0);let i=Ie(t,"doc",15,null),a=pe(null),g=pe(null);const w=N(()=>i()?i().path.split("/").pop()??i().path:""),f=N(()=>!!i()&&Zt.test(i().path));Qe(()=>{e(a)&&(i()&&!e(a).open?e(a).showModal():!i()&&e(a).open&&e(a).close())}),Qe(()=>{const _=i()?.url;!_||e(g)?.url===_||(j(g,{url:_,text:null,error:null},!0),fetch(_).then(async E=>{if(!E.ok)throw new Error;const R=await E.text();e(g)?.url===_&&j(g,{url:_,text:R,error:null},!0)}).catch(()=>{e(g)?.url===_&&j(g,{url:_,text:null,error:"It could not be read."},!0)}))});const G=_=>_.startsWith("+")&&!_.startsWith("+++")?"text-success":_.startsWith("-")&&!_.startsWith("---")?"text-danger":_.startsWith("@@")?"text-sea":"";var x=wr(),K=d(x);{var re=_=>{var E=kr(),R=me(E),Y=d(R),q=d(Y),T=X(q,!0),Z=n(q,2),ie=X(Z,!0);o(Y);var ee=n(Y,2);{var C=O=>{var I=fr(),b=n(d(I));ot(b,{class:"size-3.5","aria-hidden":"true"}),o(I),h(y=>M(I,"href",y),[()=>Jt(i().path)]),s(O,I)};v(ee,O=>{e(f)&&O(C)})}var U=n(ee,2),fe=d(U);it(fe,{class:"size-4"}),o(U),o(R);var ne=n(R,2),he=d(ne);{var ge=O=>{var I=xr(),b=X(I,!0);h(()=>D(b,e(g).error)),s(O,I)},W=O=>{var I=hr();s(O,I)},H=O=>{var I=gr();Ht(I,()=>Qt(e(g).text,{docLinks:!0}),!0),o(I),s(O,I)},B=O=>{var I=_r();ze(I,21,()=>e(g).text.split(`
3
+ `),Lt,(b,y)=>{var z=br(),P=X(z,!0);h(F=>{ce(z,1,F),D(P,`${e(y)}
4
+ `)},[()=>Le(G(e(y)))]),s(b,z)}),o(I),s(O,I)};v(he,O=>{e(g)?.error?O(ge):!e(g)||e(g).text===null?O(W,1):e(f)?O(H,2):O(B,-1)})}o(ne),h(()=>{D(T,e(w)),D(ie,i().path)}),se("click",U,()=>e(a)?.close()),s(_,E)};v(K,_=>{i()&&_(re)})}o(x),Vt(x,_=>j(a,_),()=>e(a)),h(()=>M(x,"aria-label",e(w)||"Document")),Ve("close",x,()=>i(null)),se("click",x,_=>_.target===e(a)&&e(a)?.close()),s(p,x),Ce()}Ne(["click"]);var zr=l('<a title="The task this decision came from" data-decision-origin=""><!>From <span> </span></a>'),Dr=l('<button type="button" aria-haspopup="dialog"><!> <span> </span></button>'),Mr=l('<span data-decision-doc="missing"><!> <span> </span> (not found)</span>'),Tr=l('<div class="mt-2.5 flex flex-wrap items-center gap-1.5" data-decision-links=""><a title="Open the task" data-decision-task=""><!>Task <span> </span></a> <!> <!></div> <!> <!>',1);function hn(p,t){Ae(t,!0);const i=N(()=>t.card.evidence.docs??[]),a=N(()=>t.card.secondMate?t.card.secondMate.taskId??t.card.secondMate.id:t.card.taskId);let g=pe(null);const w={report:"Report",doc:"Doc",patch:"Patch"},f=C=>C.kind==="report"?C.path:C.path.split("/").pop()??C.path,G="inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11",x="min-w-0 truncate font-mono text-[0.75rem] text-muted-foreground";var K=Tr(),re=me(K),_=d(re);ce(_,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 border-brass/60 font-medium");var E=d(_);oa(E,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var R=n(E,2);ce(R,1,Le(x));var Y=X(R,!0);o(_);var q=n(_,2);{var T=C=>{var U=zr();ce(U,1,Le(G));var fe=d(U);$t(fe,{class:"size-3.5 shrink-0","aria-hidden":"true"});var ne=n(fe,2);ce(ne,1,Le(x));var he=X(ne,!0);o(U),h(ge=>{M(U,"href",`/tasks/${ge??""}`),D(he,t.card.origin)},[()=>encodeURIComponent(t.card.origin)]),s(C,U)};v(q,C=>{t.card.origin&&C(T)})}var Z=n(q,2);ze(Z,17,()=>e(i),C=>C.path,(C,U)=>{const fe=N(()=>e(U).kind==="patch"?ra:wt);var ne=Fe(),he=me(ne);{var ge=H=>{var B=Dr();ce(B,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 cursor-pointer");var O=d(B);vt(O,()=>e(fe),(z,P)=>{P(z,{class:"size-3.5 shrink-0","aria-hidden":"true"})});var I=n(O),b=n(I);ce(b,1,Le(x));var y=X(b,!0);o(B),h(z=>{M(B,"title",`Read ${e(U).path??""}`),M(B,"data-decision-doc",e(U).kind),D(I,`${w[e(U).kind]??""} `),D(y,z)},[()=>f(e(U))]),se("click",B,()=>j(g,e(U),!0)),s(H,B)},W=H=>{var B=Mr();ce(B,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 text-muted-foreground hover:bg-background");var O=d(B);vt(O,()=>e(fe),(z,P)=>{P(z,{class:"size-3.5 shrink-0","aria-hidden":"true"})});var I=n(O),b=n(I);ce(b,1,Le(x));var y=X(b,!0);ve(),o(B),h(z=>{D(I,`${w[e(U).kind]??""} `),D(y,z)},[()=>f(e(U))]),s(H,B)};v(he,H=>{e(U).url?H(ge):H(W,-1)})}s(C,ne)}),o(re);var ie=n(re,2);pr(ie,{get card(){return t.card}});var ee=n(ie,2);yr(ee,{get doc(){return e(g)},set doc(C){j(g,C,!0)}}),h(C=>{M(_,"href",C),D(Y,e(a))},[()=>Pt(t.card)]),s(p,K),Ce()}Ne(["click"]);var Ir=l('<div class="mt-3 grid max-w-[40rem] gap-1.5" data-decision-records=""></div>');function gn(p,t){Ae(t,!0);const i=N(()=>Kt.mentioned([...(t.card.evidence.docs??[]).filter(f=>f.kind==="report").map(f=>f.path),t.card.secondMate?"":`data/${t.card.taskId}/report.md`,t.card.origin?`data/${t.card.origin}/report.md`:"",t.card.question].join(`
5
+ `)).slice(0,3));var a=Fe(),g=me(a);{var w=f=>{var G=Ir();ze(G,21,()=>e(i),x=>x.kind==="record"?x.record.key:x.kind==="library"?x.doc.key:x.prototype.id,(x,K)=>{ea(x,{get doc(){return e(K)}})}),o(G),s(f,G)};v(g,f=>{e(i).length&&f(w)})}s(p,a),Ce()}export{sn as A,gn as D,dn as U,xa as a,fn as b,hn as c,xn as d,cn as e,ln as f,mn as g,un as h,Pe as i,pn as j,vn as w};
@@ -0,0 +1,8 @@
1
+ import"./DsnmJJEf.js";import{j as C,i as g,q as rt,p as et,x as Y,f as V,y as $,a as W,b as nt,d as N,e as It,k as E,s as Tt,c as Nt,aC as Ue,h as ft,r as ht,n as wn,m as vn,t as yn}from"./Jk-ASPRO.js";import{s as X}from"./Wu0Biojm.js";import{i as pt}from"./BEVJas-l.js";import{l as Dt}from"./DNP6oCAK.js";import{p as O,s as kt,r as St}from"./DQWg__9S.js";import{i as xn,C as qt,s as it,j as bn,b as F,k as Mt,u as Xe,l as On,n as Pn,o as An,w as Bt,p as Sn,m as Ot,F as Cn,S as Fe,E as En,q as Fn,T as Tn,r as Dn,t as gt,v as Te,x as _n,y as Rt,z as In,A as Mn,B as qe,G as kn,H as Bn,I as Wn,J as Ln,c as Ze,K as yt,P as Nn,f as Hn,d as Rn,g as zn,D as Vn,h as Kn}from"./1rMfpM_v.js";import{a as Yn}from"./CeV_7ApB.js";import{c as jn,o as Ft,d as Un,s as Xn,a as ee,e as qn}from"./DTApYZoW.js";import{P as Zn}from"./BdjCJ4uL.js";import{e as Je}from"./BpMceauw.js";import{a as Jn}from"./Cl68Rk3P.js";import{c as vt}from"./Cq7OFmxz.js";import{X as Gn}from"./m8-RluHE.js";function Qn(e){return typeof e=="function"}function De(e){return Qn(e)?e():e}class $n{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=C(()=>(g(this.#n)?.(),this.getSize().width));#a=C(()=>(g(this.#n)?.(),this.getSize().height));#n=C(()=>{const t=De(this.#r);if(t)return jn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,d)=>Math.max(l,d.inlineSize),0),this.#t.height=a.reduce((l,d)=>Math.max(l,d.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??xn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=De(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),d=n-i-a,h=o-s-l;return{width:d,height:h}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return g(this.#n)?.(),this.getSize()}get width(){return g(this.#s)}get height(){return g(this.#a)}}const fe=new qt("Floating.Root"),he=new qt("Floating.Root");class zt{static create(t=!1){return t?he.set(new zt):fe.set(new zt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Vt{static create(t,n=!1){return n?new Vt(t,he.get()):new Vt(t,fe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=bn(t.virtualEl.current):n.triggerNode=t.ref}}function to(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);zt.create(n());var o=Y(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}function ut(e){return typeof e=="function"?e():e}function Ge(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _e(e,t){const n=Ge(e);return Math.round(t*n)/n}function Ie(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function eo(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Vt.create({id:F(()=>t.id),virtualEl:F(()=>t.virtualEl),ref:t.ref},n());var o=Y(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}const no=["top","right","bottom","left"],st=Math.min,G=Math.max,Kt=Math.round,Ht=Math.floor,Q=e=>({x:e,y:e}),oo={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e,t,n){return G(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function ge(e){return e==="x"?"y":"x"}function pe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function me(e){return ge(q(e))}function ro(e,t,n){n===void 0&&(n=!1);const o=Ct(e),r=me(e),i=pe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Yt(s)),[s,Yt(s)]}function io(e){const t=Yt(e);return[le(e),t,le(t)]}function le(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Me=["left","right"],ke=["right","left"],so=["top","bottom"],ao=["bottom","top"];function lo(e,t,n){switch(e){case"top":case"bottom":return n?t?ke:Me:t?Me:ke;case"left":case"right":return t?so:ao;default:return[]}}function co(e,t,n,o){const r=Ct(e);let i=lo(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(le)))),i}function Yt(e){const t=at(e);return oo[t]+e.slice(t.length)}function uo(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function $e(e){return typeof e!="number"?uo(e):{top:e,right:e,bottom:e,left:e}}function jt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Be(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=me(t),a=pe(s),l=at(t),d=i==="y",h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,u=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:h,y:o.y-r.height};break;case"bottom":c={x:h,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:p};break;case"left":c={x:o.x-r.width,y:p};break;default:c={x:o.x,y:o.y}}const f=Ct(t);return f&&(c[s]+=u*(f==="end"?1:-1)*(n&&d?-1:1)),c}async function fo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:u=!1,padding:c=0}=tt(t,e),f=$e(c),w=a[u?p==="floating"?"reference":"floating":p],v=jt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:l})),P=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},A=jt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:x,strategy:l}):P);return{top:(v.top-A.top+f.top)/b.y,bottom:(A.bottom-v.bottom+f.bottom)/b.y,left:(v.left-A.left+f.left)/b.x,right:(A.right-v.right+f.right)/b.x}}const ho=50,go=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:fo},l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:p}=Be(d,o,l),u=o,c=0;const f={};for(let m=0;m<i.length;m++){const w=i[m];if(!w)continue;const{name:v,fn:P}=w,{x,y:b,data:A,reset:y}=await P({x:h,y:p,initialPlacement:o,placement:u,strategy:r,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});h=x??h,p=b??p,f[v]={...f[v],...A},y&&c<ho&&(c++,typeof y=="object"&&(y.placement&&(u=y.placement),y.rects&&(d=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:h,y:p}=Be(d,u,l)),m=-1)}return{x:h,y:p,placement:u,strategy:r,middlewareData:f}},po=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:d,padding:h=0}=tt(e,t)||{};if(d==null)return{};const p=$e(h),u={x:n,y:o},c=me(r),f=pe(c),m=await s.getDimensions(d),w=c==="y",v=w?"top":"left",P=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=i.reference[f]+i.reference[c]-u[c]-i.floating[f],A=u[c]-i.reference[c],y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let S=y?y[x]:0;(!S||!await(s.isElement==null?void 0:s.isElement(y)))&&(S=a.floating[x]||i.floating[f]);const _=b/2-A/2,L=S/2-m[f]/2-1,I=st(p[v],L),R=st(p[P],L),H=S-m[f]-R,M=S/2-m[f]/2+_,D=Qe(I,M,H),K=!l.arrow&&Ct(r)!=null&&M!==D&&i.reference[f]/2-(M<I?I:R)-m[f]/2<0,z=K?M<I?M-I:M-H:0;return{[c]:u[c]+z,data:{[c]:D,centerOffset:M-D-z,...K&&{alignmentOffset:z}},reset:K}}}),mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...w}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=at(r),P=q(a),x=at(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!m?[Yt(a)]:io(a)),y=f!=="none";!u&&y&&A.push(...co(a,m,f,b));const S=[a,...A],_=await l.detectOverflow(t,w),L=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&L.push(_[v]),p){const D=ro(r,s,b);L.push(_[D[0]],_[D[1]])}if(I=[...I,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=S[D];if(K&&(!(p==="alignment"?P!==q(K):!1)||I.every(T=>q(T.placement)===P?T.overflows[0]>0:!0)))return{data:{index:D,overflows:I},reset:{placement:K}};let z=(H=I.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var M;const B=(M=I.filter(T=>{if(y){const k=q(T.placement);return k===P||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,j)=>k+j,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:M[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function We(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Le(e){return no.some(t=>e[t]>=0)}const wo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=We(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Le(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=We(s,n.floating);return{data:{escapedOffsets:a,escaped:Le(a)}}}default:return{}}}}},tn=new Set(["left","top"]);async function vo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=Ct(n),l=q(n)==="y",d=tn.has(s)?-1:1,h=i&&l?-1:1,p=tt(t,e);let{mainAxis:u,crossAxis:c,alignmentAxis:f}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof f=="number"&&(c=a==="end"?f*-1:f),l?{x:c*h,y:u*d}:{x:u*d,y:c*h}}const yo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await vo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},xo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x,y:b}=P;return{x,y:b}}},...d}=tt(e,t),h={x:n,y:o},p=await i.detectOverflow(t,d),u=q(r),c=ge(u);let f=h[c],m=h[u];const w=(P,x)=>Qe(x+p[P==="y"?"top":"left"],x,x-p[P==="y"?"bottom":"right"]);s&&(f=w(c,f)),a&&(m=w(u,m));const v=l.fn({...t,[c]:f,[u]:m});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[c]:s,[u]:a}}}}}},bo=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=tt(e,t),u={x:r,y:i},c=q(s),f=ge(c);let m=u[f],w=u[c];const v=tt(d,t),P=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(o=v.crossAxis)!=null?o:0};if(h){const A=f==="y"?"height":"width",y=a.reference[f]-a.floating[A]+P.mainAxis,S=a.reference[f]+a.reference[A]-P.mainAxis;m<y?m=y:m>S&&(m=S)}if(p){var x,b;const A=f==="y"?"width":"height",y=tn.has(at(s)),S=a.reference[c]-a.floating[A]+(y&&((x=l.offset)==null?void 0:x[c])||0)+(y?0:P.crossAxis),_=a.reference[c]+a.reference[A]+(y?0:((b=l.offset)==null?void 0:b[c])||0)-(y?P.crossAxis:0);w<S?w=S:w>_&&(w=_)}return{[f]:m,[c]:w}}}},Oo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),d=at(n),h=Ct(n),p=q(n)==="y",{width:u,height:c}=o.floating;let f,m;d==="top"||d==="bottom"?(f=d,m=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=d,f=h==="end"?"top":"bottom");const w=c-l.top-l.bottom,v=u-l.left-l.right,P=st(c-l[f],w),x=st(u-l[m],v),b=t.middlewareData.shift,A=!b;let y=P,S=x;b!=null&&b.enabled.x&&(S=v),b!=null&&b.enabled.y&&(y=w),A&&!h&&(p?S=u-2*G(l.left,l.right):y=c-2*G(l.top,l.bottom)),await s({...t,availableWidth:S,availableHeight:y});const _=await r.getDimensions(i.floating);return u!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function Et(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(en(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function en(e){return Zt()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Zt()?e instanceof Element||e instanceof U(e).Element:!1}function ct(e){return Zt()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Ne(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function Jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Po(e){return/^(table|td|th)$/.test(Et(e))}function Gt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ao=/transform|translate|scale|rotate|perspective|filter/,So=/paint|layout|strict|content/,dt=e=>!!e&&e!=="none";let ne;function we(e){const t=Z(e)?J(e):e;return dt(t.transform)||dt(t.translate)||dt(t.scale)||dt(t.rotate)||dt(t.perspective)||!ve()&&(dt(t.backdropFilter)||dt(t.filter))||Ao.test(t.willChange||"")||So.test(t.contain||"")}function Co(e){let t=mt(e);for(;ct(t)&&!Wt(t);){if(we(t))return t;if(Gt(t))return null;t=mt(t)}return null}function ve(){return ne==null&&(ne=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ne}function Wt(e){return/^(html|body|#document)$/.test(Et(e))}function J(e){return U(e).getComputedStyle(e)}function Qt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ne(e)&&e.host||ot(e);return Ne(t)?t.host:t}function nn(e){const t=mt(e);return Wt(t)?(e.ownerDocument||e).body:ct(t)&&Jt(t)?t:nn(t)}function Lt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=nn(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=ce(s);return t.concat(s,s.visualViewport||[],Jt(r)?r:[],a&&n?Lt(a):[])}else return t.concat(r,Lt(r,[],n))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function on(e){const t=J(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ct(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Kt(n)!==i||Kt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function ye(e){return Z(e)?e:e.contextElement}function Pt(e){const t=ye(e);if(!ct(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=on(t);let s=(i?Kt(n.width):n.width)/o,a=(i?Kt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Eo=Q(0);function rn(e){const t=U(e);return!ve()||!t.visualViewport?Eo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function wt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=ye(e);let s=Q(1);t&&(o?Z(o)&&(s=Pt(o)):s=Pt(e));const a=Fo(i,n,o)?rn(i):Q(0);let l=(r.left+a.x)/s.x,d=(r.top+a.y)/s.y,h=r.width/s.x,p=r.height/s.y;if(i&&o){const u=U(i),c=Z(o)?U(o):o;let f=u,m=ce(f);for(;m&&c!==f;){const w=Pt(m),v=m.getBoundingClientRect(),P=J(m),x=v.left+(m.clientLeft+parseFloat(P.paddingLeft))*w.x,b=v.top+(m.clientTop+parseFloat(P.paddingTop))*w.y;l*=w.x,d*=w.y,h*=w.x,p*=w.y,l+=x,d+=b,f=U(m),m=ce(f)}}return jt({width:h,height:p,x:l,y:d})}function $t(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:wt(ot(e)).left+n}function sn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-$t(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function To(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?Gt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Q(1);const h=Q(0),p=ct(o);if((p||!i)&&((Et(o)!=="body"||Jt(s))&&(l=Qt(o)),p)){const c=wt(o);d=Pt(o),h.x=c.x+o.clientLeft,h.y=c.y+o.clientTop}const u=s&&!p&&!i?sn(s,l):Q(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+u.x,y:n.y*d.y-l.scrollTop*d.y+h.y+u.y}}function Do(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _o(e){const t=Qt(e),n=e.ownerDocument.body,o=G(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=G(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+$t(e);const s=-t.scrollTop;return J(n).direction==="rtl"&&(i+=G(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Io=25;function Mo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,d=0,h=0;if(s){const u=!ve()||t==="fixed";o?u||(d=-s.offsetLeft,h=-s.offsetTop):(a=s.width,l=s.height,u&&(d=s.offsetLeft,h=s.offsetTop))}if($t(i)<=0){const u=i.ownerDocument,c=u.body,f=getComputedStyle(c),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,w=Math.abs(i.clientWidth-c.clientWidth-m),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?w/2:w;v<=Io&&(a-=v)}return{width:a,height:l,x:d,y:h}}function ko(e,t){const n=wt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Pt(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,d=o*i.y;return{width:s,height:a,x:l,y:d}}function He(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Mo(e,n,t);else if(t==="document")o=_o(ot(e));else if(Z(t))o=ko(t,n);else{const r=rn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return jt(o)}function Bo(e,t){const n=t.get(e);if(n)return n;let o=Lt(e,[],!1).filter(a=>Z(a)&&Et(a)!=="body"),r=null;const i=J(e).position==="fixed";let s=i?mt(e):e;for(;Z(s)&&!Wt(s);){const a=J(s),l=we(s),d=r?r.position:i?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?o=o.filter(p=>p!==s):r=a,s=mt(s)}return t.set(e,o),o}function Wo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Gt(t)?[]:Bo(t,this._c):[].concat(n),o],a=He(t,s[0],r);let l=a.top,d=a.right,h=a.bottom,p=a.left;for(let u=1;u<s.length;u++){const c=He(t,s[u],r);l=G(c.top,l),d=st(c.right,d),h=st(c.bottom,h),p=G(c.left,p)}return{width:d-p,height:h-l,x:p,y:l}}function Lo(e){const{width:t,height:n}=on(e);return{width:t,height:n}}function No(e,t,n){const o=ct(t),r=ot(t),i=n==="fixed",s=wt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Et(t)!=="body"||Jt(r))&&(a=Qt(t)),o)){const u=wt(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}!o&&r&&(l.x=$t(r));const d=r&&!o&&!i?sn(r,a):Q(0),h=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function oe(e){return J(e).position==="static"}function Re(e,t){if(!ct(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function an(e,t){const n=U(e);if(Gt(e))return n;if(!ct(e)){let r=mt(e);for(;r&&!Wt(r);){if(Z(r)&&!oe(r))return r;r=mt(r)}return n}let o=Re(e,t);for(;o&&Po(o)&&oe(o);)o=Re(o,t);return o&&Wt(o)&&oe(o)&&!we(o)?n:o||Co(e)||n}const Ho=async function(e){const t=this.getOffsetParent||an,n=this.getDimensions,o=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ro(e){return J(e).direction==="rtl"}const zo={convertOffsetParentRelativeRectToViewportRelativeRect:To,getDocumentElement:ot,getClippingRect:Wo,getOffsetParent:an,getElementRects:Ho,getClientRects:Do,getDimensions:Lo,getScale:Pt,isElement:Z,isRTL:Ro};function ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vo(e,t,n){let o=null,r;const i=ot(e);function s(){var h;clearTimeout(r),(h=o)==null||h.disconnect(),o=null}function a(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),s();const u=e.getBoundingClientRect(),{left:c,top:f,width:m,height:w}=u;if(h||t(),!m||!w)return;const v=Ht(f),P=Ht(i.clientWidth-(c+m)),x=Ht(i.clientHeight-(f+w)),b=Ht(c),y={rootMargin:-v+"px "+-P+"px "+-x+"px "+-b+"px",threshold:G(0,st(1,p))||1};let S=!0;function _(L){const I=L[0].intersectionRatio;if(!ln(u,e.getBoundingClientRect()))return a();if(I!==p){if(!S)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{o=new IntersectionObserver(_,{...y,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,y)}o.observe(e)}const l=U(e),d=()=>a(n);return l.addEventListener("resize",d),a(!0),()=>{l.removeEventListener("resize",d),s()}}function Ko(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,d=ye(e),h=r||i?[...d?Lt(d):[],...t?Lt(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n),i&&v.addEventListener("resize",n)});const p=d&&a?Vo(d,n,i):null;let u=-1,c=null;s&&(c=new ResizeObserver(v=>{let[P]=v;P&&P.target===d&&c&&t&&(c.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(t)})),n()}),d&&!l&&c.observe(d),t&&c.observe(t));let f,m=l?wt(e):null;l&&w();function w(){const v=wt(e);m&&!ln(m,v)&&n(),m=v,f=requestAnimationFrame(w)}return n(),()=>{var v;h.forEach(P=>{r&&P.removeEventListener("scroll",n),i&&P.removeEventListener("resize",n)}),p?.(),(v=c)==null||v.disconnect(),c=null,l&&cancelAnimationFrame(f)}}const Yo=yo,jo=xo,Uo=mo,Xo=Oo,qo=wo,Zo=po,Jo=bo,Go=(e,t,n)=>{const o=new Map,r=n??{},i={...zo,...r.platform,_c:o};return go(e,t,{...r,platform:i})};function Qo(e){const t=e.whileElementsMounted,n=C(()=>ut(e.open)??!0),o=C(()=>ut(e.middleware)),r=C(()=>ut(e.transform)??!0),i=C(()=>ut(e.placement)??"bottom"),s=C(()=>ut(e.strategy)??"absolute"),a=C(()=>ut(e.sideOffset)??0),l=C(()=>ut(e.alignOffset)??0),d=e.reference;let h=N(0),p=N(0);const u=it(null);let c=N(It(g(s))),f=N(It(g(i))),m=N(It({})),w=N(!1),v=!1,P=0,x=!1;const b=C(()=>{const R=u.current?_e(u.current,g(h)):g(h),H=u.current?_e(u.current,g(p)):g(p);return g(r)?{position:g(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...u.current&&Ge(u.current)>=1.5&&{willChange:"transform"}}:{position:g(c),left:`${R}px`,top:`${H}px`}});let A;function y(){if(x||d.current===null||u.current===null)return;const R=d.current,H=u.current,M=++P;Go(R,H,{middleware:g(o),placement:g(i),strategy:g(s)}).then(D=>{if(M!==P||d.current!==R||u.current!==H)return;if($o(R)){E(m,{...g(m),hide:{...g(m).hide,referenceHidden:!0}},!0);return}if(!g(n)&&g(h)!==0&&g(p)!==0){const z=Math.max(Math.abs(g(a)),Math.abs(g(l)),15);if(D.x<=z&&D.y<=z)return}E(h,D.x,!0),E(p,D.y,!0),E(c,D.strategy,!0),E(f,D.placement,!0),E(m,D.middlewareData,!0),E(w,!0)})}function S(){typeof A=="function"&&(A(),A=void 0),P++}function _(){if(S(),t===void 0){y();return}g(n)&&(d.current===null||u.current===null||(A=t(d.current,u.current,y)))}function L(){!g(n)&&u.current===null&&E(w,!1)}function I(){return[g(o),g(i),g(s),g(a),g(l),g(n)]}return rt(()=>{t===void 0&&g(n)&&y()}),rt(_),rt(()=>{if(t!==void 0){if(I(),!g(n)){v=!1;return}if(!g(w)){v=!1;return}if(!v){v=!0;return}y()}}),rt(L),rt(()=>()=>{x=!0,S()}),{floating:u,reference:d,get strategy(){return g(c)},get placement(){return g(f)},get middlewareData(){return g(m)},get isPositioned(){return g(w)},get floatingStyles(){return g(b)},get update(){return y}}}function $o(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const tr={top:"bottom",right:"left",bottom:"top",left:"right"},ue=new qt("Floating.Content");class Ut{static create(t,n=!1){return n?ue.set(new Ut(t,he.get())):ue.set(new Ut(t,fe.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Mt(this.contentRef);wrapperAttachment=Mt(this.wrapperRef);arrowAttachment=Mt(this.arrowRef);arrowId=it(Xe());#t=C(()=>{if(typeof this.opts.style=="string")return On(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new $n(()=>this.arrowRef.current??void 0);#r=C(()=>this.#i?.width??0);#e=C(()=>this.#i?.height??0);#s=C(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=C(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=C(()=>g(this.#a).length>0);get hasExplicitBoundaries(){return g(this.#n)}set hasExplicitBoundaries(t){E(this.#n,t)}#l=C(()=>({padding:this.opts.collisionPadding.current,boundary:g(this.#a).filter(Pn),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return g(this.#l)}set detectOverflowOptions(t){E(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=C(()=>[Yo({mainAxis:this.opts.sideOffset.current+g(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&jo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Jo():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Uo({...this.detectOverflowOptions}),Xo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;E(this.#c,n,!0),E(this.#d,o,!0),E(this.#f,r,!0),E(this.#g,i,!0)}}),this.arrowRef.current&&Zo({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),er({arrowWidth:g(this.#r),arrowHeight:g(this.#e)}),this.opts.hideWhenDetached.current&&qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return g(this.#p)}set middleware(t){E(this.#p,t)}floating;#u=C(()=>nr(this.floating.placement));get placedSide(){return g(this.#u)}set placedSide(t){E(this.#u,t)}#h=C(()=>or(this.floating.placement));get placedAlign(){return g(this.#h)}set placedAlign(t){E(this.#h,t)}#m=C(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return g(this.#m)}set arrowX(t){E(this.#m,t)}#w=C(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return g(this.#w)}set arrowY(t){E(this.#w,t)}#v=C(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return g(this.#v)}set cannotCenterArrow(t){E(this.#v,t)}#y=N();get contentZIndex(){return g(this.#y)}set contentZIndex(t){E(this.#y,t,!0)}#x=C(()=>tr[this.placedSide]);get arrowBaseSide(){return g(this.#x)}set arrowBaseSide(t){E(this.#x,t)}#b=C(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${g(this.#c)}px`,"--bits-floating-available-height":`${g(this.#d)}px`,"--bits-floating-anchor-width":`${g(this.#f)}px`,"--bits-floating-anchor-height":`${g(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...g(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return g(this.#b)}set wrapperProps(t){E(this.#b,t)}#O=C(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:An({...g(this.#t)}),...this.contentAttachment}));get props(){return g(this.#O)}set props(t){E(this.#O,t)}#P=C(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return g(this.#P)}set arrowStyle(t){E(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Bt(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=Qo({strategy:()=>this.opts.strategy.current,placement:()=>g(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>Ko(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Bt(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=Sn(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class cn{static create(t){return new cn(t,ue.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=C(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return g(this.#t)}set props(t){E(this.#t,t)}}function er(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,h]=xe(n),p={start:"0%",center:"50%",end:"100%"}[h],u=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let f="",m="";return d==="bottom"?(f=s?p:`${u}px`,m=`${-l}px`):d==="top"?(f=s?p:`${u}px`,m=`${o.floating.height+l}px`):d==="right"?(f=`${-l}px`,m=s?p:`${c}px`):d==="left"&&(f=`${o.floating.width+l}px`,m=s?p:`${c}px`),{data:{x:f,y:m}}}}}function xe(e){const[t,n="center"]=e.split("-");return[t,n]}function nr(e){return xe(e)[0]}function or(e){return xe(e)[1]}function rr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),d=O(t,"collisionPadding",3,0),h=O(t,"hideWhenDetached",3,!1),p=O(t,"onPlaced",3,()=>{}),u=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),f=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),w=O(t,"style",19,()=>({})),v=O(t,"wrapperId",19,Xe),P=O(t,"customAnchor",3,null),x=O(t,"tooltip",3,!1);const b=Ut.create({side:F(()=>n()),sideOffset:F(()=>o()),align:F(()=>r()),alignOffset:F(()=>i()),id:F(()=>t.id),arrowPadding:F(()=>s()),avoidCollisions:F(()=>a()),collisionBoundary:F(()=>l()),collisionPadding:F(()=>d()),hideWhenDetached:F(()=>h()),onPlaced:F(()=>p()),sticky:F(()=>u()),updatePositionStrategy:F(()=>c()),strategy:F(()=>f()),dir:F(()=>m()),style:F(()=>w()),enabled:F(()=>t.enabled),wrapperId:F(()=>v()),customAnchor:F(()=>P())},x()),A=C(()=>Ot(b.wrapperProps,{style:{pointerEvents:"auto"}}));var y=Y(),S=V(y);X(S,()=>t.content??$,()=>({props:b.props,wrapperProps:g(A)})),W(e,y),nt()}function ir(e,t){et(t,!0),Yn(()=>{t.onPlaced?.()});var n=Y(),o=V(n);X(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var sr=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function ar(e,t){let n=O(t,"isStatic",3,!1),o=St(t,sr);var r=Y(),i=V(r);{var s=l=>{ir(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{rr(l,kt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};pt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var lr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),cr=Nt("<!> <!>",1);function un(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),d=St(t,lr);const h=C(()=>t.preventScroll??!0),p=C(()=>t.strategy??(g(h)?"fixed":"absolute"));ar(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return g(p)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,f)=>{let m=()=>(f?.()).props,w=()=>(f?.()).wrapperProps;var v=cr(),P=V(v);{var x=y=>{Fe(y,{get preventScroll(){return g(h)}})},b=y=>{Fe(y,{get preventScroll(){return g(h)}})};pt(P,y=>{t.forceMount&&t.enabled?y(x):t.forceMount||y(b,1)})}var A=Tt(P,2);Cn(A,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(S,_)=>{let L=()=>(_?.()).props;En(S,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,R)=>{Fn(I,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,D)=>{let K=()=>(D?.()).props;Tn(M,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=Y(),k=V(T);{let j=C(()=>({props:Ot(d,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:w()}));X(k,()=>t.popper??$,()=>g(j))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,v)},$$slots:{content:!0}}),nt()}var ur=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function dr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,ur);var l=Y(),d=V(l);{var h=p=>{un(p,kt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};pt(d,p=>{t.shouldRender&&p(h)})}W(e,l)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function hr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,fr);un(e,kt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function re(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,d]=t[s]??[0,0],[h,p]=t[a]??[0,0];d>=o!=p>=o&&n<=(h-l)*(o-d)/(p-d)+l&&(r=!r)}return r}function ie(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function ze(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class gr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,Bt([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Dn(o),a=u=>{this.#p([u.clientX,u.clientY],o,r)},l=u=>{const c=u.relatedTarget;if(gt(c)&&r.contains(c))return;const f=this.#t.ignoredTargets?.()??[];gt(c)&&f.some(m=>m===c||m.contains(c))||(this.#s=gt(c)&&f.length>0?f.filter(m=>c.contains(m)):[],this.#r=[u.clientX,u.clientY],this.#e="content",this.#d())},d=()=>{this.#u()},h=()=>{this.#u()},p=u=>{const c=u.relatedTarget;gt(c)&&o.contains(c)||(this.#r=[u.clientX,u.clientY],this.#e="trigger",this.#d())};return[Ft(s,"pointermove",a),Ft(o,"pointerleave",l),Ft(o,"pointerenter",d),Ft(r,"pointerenter",h),Ft(r,"pointerleave",p)].reduce((u,c)=>()=>{u(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&ie(t,i)){this.#u();return}if(this.#e==="trigger"&&ie(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const h of this.#s){const p=h.getBoundingClientRect();if(ie(t,p))return;const u=ze(r,p),c=this.#h(r,p,u);if(c&&re(t,c))return}const s=ze(r,i),a=this.#h(r,i,s);if(a&&re(t,a))return;const l=this.#e==="content"?i:r,d=this.#m(this.#r,l,s,this.#e);re(t,d)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const de=Ln({component:"popover",parts:["root","trigger","content","close","overlay"]}),be=new qt("Popover.Root");class Oe{static create(t){return be.set(new Oe(t))}opts;#t=N(null);get contentNode(){return g(this.#t)}set contentNode(t){E(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return g(this.#o)}set triggerNode(t){E(this.#o,t,!0)}#i=N(null);get overlayNode(){return g(this.#i)}set overlayNode(t){E(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return g(this.#r)}set openedViaHover(t){E(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return g(this.#e)}set hasInteractedWithContent(t){E(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return g(this.#s)}set hoverCooldown(t){E(this.#s,t,!0)}#a=N(0);get closeDelay(){return g(this.#a)}set closeDelay(t){E(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Te({ref:F(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Te({ref:F(()=>this.overlayNode),open:this.opts.open}),Bt(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class Pe{static create(t){return new Pe(t,be.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new _n(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Bt(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Rt(t)||(E(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Rt(t)||(E(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),g(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}g(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===In||t.key===Mn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=C(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":kn(this.root.opts.open.current),"data-state":qe(this.root.opts.open.current),"aria-controls":this.#a(),[de.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#n)}set props(t){E(this.#n,t)}}class Ae{static create(t){return new Ae(t,be.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new gr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;gt(n)&&Bn(n)&&this.root.markInteraction()}onpointerenter(t){Rt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Rt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const n=t.target.closest(de.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#t)}set snippetProps(t){E(this.#t,t)}#o=C(()=>({id:this.opts.id.current,tabindex:-1,"data-state":qe(this.root.opts.open.current),...Wn(this.root.contentPresence.transitionStatus),[de.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#o)}set props(t){E(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var pr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),Ve=Nt("<div><div><!></div></div>");function wi(e,t){const n=Ue();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ze(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,yt),a=O(t,"onCloseAutoFocus",3,yt),l=O(t,"onEscapeKeydown",3,yt),d=O(t,"onInteractOutside",3,yt),h=O(t,"trapFocus",3,!0),p=O(t,"preventScroll",3,!1),u=O(t,"customAnchor",3,null),c=St(t,pr);const f=Ae.create({id:F(()=>r()),ref:F(()=>o(),y=>o(y)),onInteractOutside:F(()=>d()),onEscapeKeydown:F(()=>l()),customAnchor:F(()=>u())}),m=C(()=>Ot(c,f.props)),w=C(()=>h()&&f.shouldTrapFocus);function v(y){f.shouldTrapFocus||y.preventDefault(),s()(y)}var P=Y(),x=V(P);{var b=y=>{hr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get enabled(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=Y(),D=V(M);{var K=B=>{var T=Y(),k=V(T);{let j=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(j))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var j=ft(k);X(j,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))},A=y=>{dr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get open(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=Y(),D=V(M);{var K=B=>{var T=Y(),k=V(T);{let j=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(j))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var j=ft(k);X(j,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))};pt(x,y=>{i()?y(b):i()||y(A,1)})}W(e,P),nt()}var mr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),wr=Nt("<button><!></button>");function vi(e,t){const n=Ue();et(t,!0);let o=O(t,"id",19,()=>Ze(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),d=O(t,"closeDelay",3,300),h=St(t,mr);const p=Pe.create({id:F(()=>o()),ref:F(()=>r(),c=>r(c)),disabled:F(()=>!!s()),openOnHover:F(()=>a()),openDelay:F(()=>l()),closeDelay:F(()=>d())}),u=C(()=>Ot(h,p.props,{type:i()}));eo(e,{get id(){return o()},get ref(){return p.opts.ref},children:(c,f)=>{var m=Y(),w=V(m);{var v=x=>{var b=Y(),A=V(b);X(A,()=>t.child,()=>({props:g(u)})),W(x,b)},P=x=>{var b=wr();Dt(b,()=>({...g(u)}));var A=ft(b);X(A,()=>t.children??$),ht(b),W(x,b)};pt(w,x=>{t.child?x(v):x(P,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function yi(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,yt),r=O(t,"onOpenChangeComplete",3,yt);Oe.create({open:F(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:F(()=>r())}),to(e,{children:(i,s)=>{var a=Y(),l=V(a);X(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}const vr=6;function yr(e,t){return t.needsYou-e.needsYou||t.underWay-e.underWay||(t.lastActivity??0)-(e.lastActivity??0)||t.queued-e.queued}function xi(e,t,n){const o=new Map(e.map(r=>[r.id,[]]));for(const r of t)o.get(r.projectId)?.push(r);return new Map(e.map(r=>[r.id,Jn(o.get(r.id)??[],n)]))}const Xt=(e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:"base"});function bi(e,t,n){const o=n.limit??vr,r=new Set(n.pinned),i=e.filter(u=>r.has(u.id)),s={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null},a=u=>t.get(u.id)??s,l=e.filter(u=>!r.has(u.id)).toSorted((u,c)=>yr(a(u),a(c))||Xt(u,c)),d=l.slice(0,Math.max(0,o-i.length)),h=n.current?l.find(u=>u.id===n.current):void 0;h&&!d.includes(h)&&d.push(h);const p=new Set(d.map(u=>u.id));return{pinned:i,top:d,rest:l.filter(u=>!p.has(u.id)).toSorted(Xt)}}function Oi(e,t,n=[],o={}){const r=t.trim().toLowerCase();if(!r)return e.toSorted(Xt);const i=new Set(n),s=a=>{const l=[a.name,o[a.id]].filter(Boolean).map(d=>d.toLowerCase());return l.some(d=>d.startsWith(r))?0:l.some(d=>d.split(/[\s\-_.:/]+/).some(h=>h.startsWith(r)))?1:l.some(d=>d.includes(r))||a.id.toLowerCase().includes(r)?2:-1};return e.map(a=>({p:a,r:s(a)})).filter(a=>a.r>=0).toSorted((a,l)=>a.r-l.r||Number(i.has(l.p.id))-Number(i.has(a.p.id))||Xt(a.p,l.p)).map(a=>a.p)}function xr(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?[...new Set(t.filter(n=>typeof n=="string"))]:[]}catch{return[]}}class br{#t=N(It([]));get rows(){return g(this.#t)}set rows(t){E(this.#t,t,!0)}}const Pi=new br,Ai="x-wheelhouse-filename",Si="x-wheelhouse-filetype",Ci=25*1024*1024;function Or(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Ei(e){return`[attached file ${e.path} — ${e.name}, ${Or(e.size)}, ${e.type||"unknown type"}]`}const Pr=/^\[attached file (\/[^\n]*?\/([^/\n]+)) — \2, ([\d.]+) (B|KB|MB), ([^\]\n,]+)\][ \t]*$/gm,Ar={B:1,KB:1024,MB:1024*1024};function Sr(e){const t=[],n=e.replace(Pr,(o,r,i,s,a,l)=>(t.push({path:r,name:i,size:Math.round(Number(s)*Ar[a]),type:l==="unknown type"?"":l}),""));return t.length?{text:n.trim(),files:t}:{text:e,files:t}}const Cr=e=>/^image\/(png|jpeg|gif|webp|avif)$/.test(e);function Fi(e){if(e.type==="application/pdf")return"PDF";if(e.type.startsWith("image/"))return"Image";const t=/\.([A-Za-z0-9]{1,6})$/.exec(e.name)?.[1];return t?t.toUpperCase():e.type.startsWith("text/")?"Text":"File"}function Ti(e){if(!Cr(e.type))return null;const t=/\/uploads\/(\d{4}-\d{2}-\d{2})\/([a-f0-9]{12})\/([^/]+)$/.exec(e.path);return t?`/api/firstmate/uploads/${t[1]}/${t[2]}/${encodeURIComponent(t[3])}`:null}function Di(e,t=new Date){const n=/^image\/(png|jpeg|gif|webp|avif)$/.exec(e)?.[1]?.replace("jpeg","jpg")??"png";return`Pasted image ${t.toISOString().slice(0,19).replace("T"," ").replace(/:/g,".")}.${n}`}const Er=/^\/session\/[A-Za-z0-9_-]+\/?$/;function dn(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&Zn.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Fr(e){return dn(e)&&Er.test(URL.parse(e).pathname)}function Tr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Dr(e,t=null){const n=[];for(const o of Je(Tr(e))){if(!dn(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function At(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ke=2*6e4,_r=3,fn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Se=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(At),Ir=(e,t)=>new RegExp(`${fn(t)}(?![\\w-])`).test(e),_t=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function hn(e,t){if(e.status!=="landed")return!0;const n=_t(e.mergedAt);return n!==null&&t!==null&&t<n}function gn(e,t){const n=Se(t);return Je(e).some(o=>n.includes(At(o)))}function pn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${fn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Ir(e,t.pr.url.replace(/\/+$/,""))}function Mr(e,t){return pn(e,t)||gn(e,t)}function _i(e,t){if(!URL.parse(e))return null;const n=At(e);return t.find(o=>{if(o.status==="landed"||!o.preview)return!1;const r=At(o.preview.url);return n===r||n.startsWith(`${r}/`)})??null}const kr=e=>e.preview?.url??e.board?.url??null;function Br(e,t,n){const o=At(e);return n.some(r=>hn(r,t)&&Se(r).includes(o))}function Ye(e,t,n){e.set(t,[...e.get(t)??[],n])}function Ii(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=kr(a),d=_t(a.preview?.reportedAt??a.board?.reportedAt),h=a.status==="landed",p=h?_t(a.mergedAt):null;let u=null,c=null,f=null;for(const w of e){if(w.kind!=="turn")continue;const v=_t(w.at);if(d!==null&&(v===null||v<d-Ke))continue;const P=b=>hn(a,v)&&gn(b,a),x=w.parts.find(b=>b.kind==="text"&&(pn(b.text,a)||P(b.text)));if(!(!x||x.kind!=="text")&&(u??=x.id,P(x.text)&&(c=x.id),h&&(p===null||v!==null&&v>=p-Ke))){f=x.id;break}}const m=f??c??u;m&&(Ye(o,m,{task:a,url:l,board:!a.preview,landed:h}),i.set(m,[...i.get(m)??[],...Se(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=_t(a.at);for(const d of a.parts){if(d.kind!=="text")continue;const h=new Set;let p=0;for(const u of Dr(d.text,n)){const c=URL.parse(u).origin,f=At(u);if(i.get(d.id)?.includes(f)){s.delete(f);continue}h.has(c)||Br(u,l,r)||p>=_r||(h.add(c),p++,s.delete(f),s.set(f,{anchor:d.id,url:u}))}}}for(const{anchor:a,url:l}of s.values())Ye(o,a,{task:null,url:l,board:Fr(l),landed:!1});return o}function je(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Wr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${je(e.id)}: ${e.title}]`:`[task ${je(e.id)}: ${e.title}]`}function Mi(e){return e.map(t=>typeof t=="string"?t:Wr(t)).join("").replace(/\u00a0/g," ").trim()}function Lr(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const Nr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Hr(e){const t=[];let n=0;for(const o of e.matchAll(Nr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Rr=140,zr={firstmate:"Firstmate",captain:"my message"};function Ce(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Hr(t).map(n=>typeof n=="string"?n:Lr(n,60)).join("").replace(/\s+/g," ").trim()}function ki(e,t=Rr){const n=Ce(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function Bi(e,t){const n=t.trim();return n&&`> Replying to ${zr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
2
+
3
+ ${n}`}const Vr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function Kr(e){const t=e.replace(/\r\n?/g,`
4
+ `).match(Vr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function Wi(e,t){const n=Ce(t);if(!n)return!1;const o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return e.snippet.endsWith("…")?n.startsWith(o):n===o}const lt="unsorted",xt=(e,t,n)=>n?{topic:e,task:n,source:t}:{topic:e,source:t},bt={topic:lt,source:null},Yr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,jr=/^\s{0,3}(`{3,}|~{3,})/;function Ur(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
5
+ `).trim();s&&t.push({slug:n,text:s}),o=[]};for(const s of e.split(`
6
+ `)){const a=s.match(jr)?.[1];a&&(!r||a[0]===r[0])&&(r=r?null:a);const l=r?null:s.match(Yr);l?(i(),n=l[1]):o.push(s)}return i(),!t.length&&!e.trim()?[]:t.length?t:[{slug:n,text:""}]}const Xr=/^\[project ([^\]\s]+)\][ \u00a0]?/;function Li(e,t,n){return!t||t===lt?e:`[project ${t}${n?`/${n}`:""}] ${e}`}function qr(e){const t=e.indexOf("/");return t>0&&t<e.length-1?{slug:e.slice(0,t),task:e.slice(t+1)}:{slug:e.replace(/\/$/,""),task:null}}function Zr(e){const t=e.match(Xr);return t?{topic:t[1],text:e.slice(t[0].length)}:{topic:null,text:e}}const se=e=>e.trim().toLowerCase().replace(/[^a-z0-9.]+/g,"-").replace(/^-+|-+$/g,"");function Jr(e,t){const n=e.trim().toLowerCase(),o=se(e),r=t.find(i=>i.id.toLowerCase()===n)??t.find(i=>i.name.toLowerCase()===n)??t.find(i=>se(i.id)===o||se(i.name)===o);return r?r.id:o||lt}function Ni(e){const t=e.replace(/[-_]+/g," ").trim();return t?t[0].toUpperCase()+t.slice(1):e}function Gr(e,t,n=null){let o=null,r=null,i=!1;for(const s of t)if(!(!s.projectId||s.projectId==="unassigned")&&!(n&&s.projectId!==n)&&Mr(e,s)){if(o&&o!==s.projectId)return null;o&&(i=!0),o=s.projectId,r=s.id}return o?{project:o,task:i?null:r}:null}function Qr(e,t){const n=Ce(t),o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return!!o&&!!n&&n.startsWith(o)}const $r=(e,t)=>e?t.find(n=>n.id.toLowerCase()===e.toLowerCase())?.id??e:null;function Hi(e,t,n,o={}){const r=new Map,i=new Map,s=new Map,a=(c,f=null)=>{const m=Gr(c,t,f);return m?xt(m.project,"guess",m.task):null},l=(c,f)=>{const{slug:m,task:w}=qr(c);return xt(Jr(m,n),f,$r(w,t))},d=(c,f)=>{const m=o[c];return m?m===lt?bt:m===f.topic?{...f,source:"you"}:{topic:m,source:"you"}:f},h=[],p=c=>{for(let f=h.length-1;f>=0;f--)if(h[f].who===c.who&&Qr(c,h[f].text))return h[f].tag;return null};let u=null;for(const c of e){if(c.kind==="user"){const{to:w,body:v}=Kr(c.text),P=Zr(v),x=w&&p(w),b=P.topic?l(P.topic,"thread"):x&&x.topic!==lt?xt(x.topic,"reply",x.task):a(P.text)??bt,A=d(c.id,b);r.set(c.id,A),h.push({who:"captain",text:Sr(P.text).text,tag:A}),u=A;continue}if(c.kind!=="turn")continue;let f=null;const m=c.trigger==="captain"&&u?.source?u:null;for(const w of c.parts){if(w.kind!=="text")continue;const v=Ur(w.text),x=v.map((A,y)=>{let S;A.slug?(S=l(A.slug,"marker"),S.task||(S=xt(S.topic,"marker",a(A.text,S.topic)?.task))):f?.source==="marker"?S=f:S=a(A.text)??f??(m&&{...m,source:"guess"})??bt,S.source&&(f=S);const _=y===0&&!A.slug&&v.length>1;return{key:y?`${w.id}#${y}`:w.id,text:A.text,tag:S,intro:_}}).map(A=>({...A,tag:d(A.key,A.tag)}));i.set(w.id,x);const b=x.find(A=>!A.intro);!s.has(c.id)&&b&&s.set(c.id,b.tag),b&&h.push({who:"firstmate",text:x.map(A=>A.text).join(`
7
+
8
+ `),tag:b.tag})}s.has(c.id)||s.set(c.id,d(`turn:${c.id}`,m?{...m,source:"guess"}:bt))}return{users:r,parts:i,turns:s}}function Ri(e,t,n,o={},r=null){const i=o[e];return i===lt?bt:i?i===t?xt(i,"you",r):{topic:i,source:"you"}:t&&t!=="unassigned"?xt(t,n,r):bt}function zi(e,t=null){const n=new Map;for(const o of e){const r=o.at?Date.parse(o.at):NaN;for(const i of new Set(o.topics)){const s=n.get(i)??{topic:i,count:0,needs:0,last:0};s.count++,o.needs&&s.needs++,Number.isNaN(r)||(s.last=Math.max(s.last,r)),n.set(i,s)}}return t&&!n.has(t)&&n.set(t,{topic:t,count:0,needs:0,last:0}),[...n.values()].sort((o,r)=>+(o.topic===lt)-+(r.topic===lt)||r.last-o.last||o.topic.localeCompare(r.topic))}function Vi(e,t){const n=new Map;let o=null;for(const r of e){if(r.topics.includes(t)){o=null;continue}o||(o={first:r.key,count:0,topics:[],from:r.at,to:r.at}),o.count++,o.to=r.at??o.to;for(const i of r.topics)o.topics.includes(i)||o.topics.push(i);n.set(r.key,o)}return n}const ae="wheelhouse-pinned-projects";class ti{#t=N(It([]));get ids(){return g(this.#t)}set ids(t){E(this.#t,t,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0,this.read();try{window.addEventListener("storage",t=>{t.key===ae&&this.read()})}catch{}}}has(t){return this.ids.includes(t)}toggle(t){this.ids=this.has(t)?this.ids.filter(n=>n!==t):[...this.ids,t];try{localStorage.setItem(ae,JSON.stringify(this.ids))}catch{}}read(){try{this.ids=xr(localStorage.getItem(ae))}catch{this.ids=[]}}}const Ki=new ti;var ei=Nt('<div class="flex h-6 shrink-0 cursor-grab touch-none items-center justify-center" aria-hidden="true"><span class="h-1 w-10 rounded-full bg-muted-foreground/40"></span></div> <div class="flex shrink-0 items-center gap-2 pr-1.5 pl-5"><!> <!></div> <div class="min-h-0 flex-1 overflow-y-auto overscroll-contain"><!></div>',1),ni=Nt("<!> <!>",1);function Yi(e,t){et(t,!0);let n=O(t,"open",15,!1),o=N(0),r=null;function i(h){r=h.clientY,h.currentTarget.setPointerCapture(h.pointerId)}function s(h){r!==null&&E(o,Math.max(0,h.clientY-r),!0)}function a(){r!==null&&(r=null,g(o)>80&&n(!1),E(o,0))}var l=Y(),d=V(l);vt(d,()=>Kn,(h,p)=>{p(h,{get open(){return n()},set open(u){n(u)},children:(u,c)=>{var f=Y(),m=V(f);vt(m,()=>Nn,(w,v)=>{v(w,{children:(P,x)=>{var b=ni(),A=V(b);vt(A,()=>Hn,(S,_)=>{_(S,{class:"fixed inset-0 z-50 bg-black/40 duration-200 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"})});var y=Tt(A,2);{let S=C(()=>g(o)?`transform: translateY(${g(o)}px)`:void 0);vt(y,()=>Rn,(_,L)=>{L(_,{class:"fixed inset-x-0 bottom-0 z-50 flex max-h-[85dvh] flex-col rounded-t-2xl border-t bg-popover pb-[env(safe-area-inset-bottom,0px)] text-popover-foreground shadow-2xl duration-200 outline-none data-open:animate-in data-open:slide-in-from-bottom data-closed:animate-out data-closed:slide-out-to-bottom",get style(){return g(S)},get onOpenAutoFocus(){return t.onOpenAutoFocus},"data-sheet":!0,children:(I,R)=>{var H=ei(),M=V(H),D=Tt(M,2),K=ft(D);vt(K,()=>zn,(k,j)=>{j(k,{class:"min-w-0 flex-1 truncate font-title text-2xl leading-tight",children:(te,mn)=>{wn();var Ee=vn();yn(()=>Xn(Ee,t.title)),W(te,Ee)},$$slots:{default:!0}})});var z=Tt(K,2);vt(z,()=>Vn,(k,j)=>{j(k,{class:"grid size-11 shrink-0 place-items-center rounded-full text-muted-foreground hover:bg-accent hover:text-foreground","aria-label":"Close",children:(te,mn)=>{Gn(te,{class:"size-5","aria-hidden":"true"})},$$slots:{default:!0}})}),ht(D);var B=Tt(D,2),T=ft(B);X(T,()=>t.children),ht(B),ee("pointerdown",M,i),ee("pointermove",M,s),ee("pointerup",M,a),qn("pointercancel",M,a),W(I,H)},$$slots:{default:!0}})})}W(P,b)},$$slots:{default:!0}})}),W(u,f)},$$slots:{default:!0}})}),W(e,l),nt()}Un(["pointerdown","pointermove","pointerup"]);export{Ri as A,Ur as B,Hi as C,Ii as D,_i as E,Wi as F,cn as G,to as H,hr as I,dr as J,Ie as K,eo as L,gr as M,Ai as N,bi as O,vi as P,Oi as Q,xi as R,Yi as S,Si as T,Ci as U,Bi as a,se as b,Mi as c,Lr as d,Ei as e,Or as f,Wr as g,wi as h,Cr as i,yi as j,Fi as k,lt as l,Ki as m,Pi as n,Kr as o,Di as p,Sr as q,Zr as r,ki as s,Ti as t,zi as u,Ni as v,Li as w,Vi as x,Hr as y,bt as z};
@@ -0,0 +1,7 @@
1
+ import"./DsnmJJEf.js";import{a as zt}from"./CeV_7ApB.js";import{p as ut,d as V,e as Dt,q as wt,f as ae,h as y,o as E,s as o,i as e,r as u,t as w,a as r,b as vt,j as re,k as s,n as Se,m as be,c as i,y as He,x as We,v as Lt,z as Ot,A as It}from"./Jk-ASPRO.js";import{d as Wt,s as h,e as kt,a as rt,l as Ft}from"./DTApYZoW.js";import{i as $}from"./BEVJas-l.js";import{k as Ut}from"./CsFoEe5t.js";import{c as Ht}from"./Cq7OFmxz.js";import{r as xt,a as ie,e as $e,i as Ke,g as Vt,f as qt,s as De,c as Kt,j as Bt}from"./DNP6oCAK.js";import{s as Pt,r as At,p as at}from"./DQWg__9S.js";import{a as Jt}from"./WRwU91GU.js";import{b as Zt}from"./CNxxt--f.js";import{p as ct}from"./CWXMOoE5.js";import{S as jt}from"./BXN538J3.js";import{s as _t,a as Gt,S as Yt}from"./C14pDzYB.js";import{B as Me}from"./VrUPyiEH.js";import{L as Xt}from"./Cz0t0Wrt.js";import{K as St}from"./C-HYwD2y.js";import{C as Qt}from"./BfHvf1Rg.js";import{I as Nt}from"./DE0e4nJ8.js";import{E as er}from"./KaWfcwy_.js";import{b as yt}from"./DLfKkHEy.js";import{a as bt}from"./BdjCJ4uL.js";import{s as tr}from"./Cw6Vodkk.js";import{l as Mt,e as rr}from"./BMMeDG3C.js";import{L as Rt}from"./D73wi9-q.js";import{P as ar}from"./B_DDhx9A.js";import{C as nr}from"./BwqxEF2U.js";import{C as or}from"./c9k4nDgn.js";import{X as sr}from"./m8-RluHE.js";import{C as ir}from"./CFq-JuCn.js";import{C as lr}from"./lCxfAEBr.js";import{E as dr}from"./gEZHG5dd.js";import{P as cr}from"./CqwyiX4n.js";const ur=/https?:\/\/[^\s<>"'`]+/g,vr=/[.,;:!?)\]}'"*]+$/;function fr(a){return[...a.matchAll(ur)].map(t=>t[0].replace(vr,""))}var mr=new Set(["$$slots","$$events","$$legacy"]);function pr(a,t){let m=At(t,mr);const g={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};Nt(a,Pt(()=>m,{get icon(){return g}}))}var hr=new Set(["$$slots","$$events","$$legacy"]);function gr(a,t){let m=At(t,hr);const g={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Nt(a,Pt(()=>m,{get icon(){return g}}))}var xr=i('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),_r=i('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),yr=i('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),br=i('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),wr=i('<p class="mt-5 rounded-md border border-warning/40 bg-warning/5 px-4 py-2.5 text-sm" role="alert" data-vault-unavailable=""> </p>'),kr=i('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),jr=i('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Sr=i('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Mr=i('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Er=i('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Tr=i('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> </p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),zr=i('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Pr=i('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Ar=i('<span class="text-xs text-muted-foreground">No project yet</span>'),Nr=i('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),Rr=i('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),Cr=i('<div class="flex flex-wrap gap-2"><!> <!></div>'),$r=i('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Dr=i('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),Lr=i('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),Or=i('<a class="text-sea hover:underline"> </a>'),Ir=i('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),Wr=i('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),Fr=i('<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground"> </p> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function Ur(a,t){ut(t,!0);const m=(n,c=He,f=He,b=He)=>{var J=xr(),d=y(J);xt(d);var k=o(d,2),q=y(k);{var se=ee=>{pr(ee,{class:"size-4"})},me=ee=>{er(ee,{class:"size-4"})};$(q,ee=>{e(S)?ee(se):ee(me,-1)})}u(k),u(J),w(ee=>{ie(d,"id",c()),ie(d,"type",e(S)?"text":"password"),Vt(d,ee),d.disabled=e(Z),ie(k,"aria-label",e(S)?"Hide what you typed":"Show what you typed"),ie(k,"aria-pressed",e(S))},[()=>f()()]),rt("input",d,ee=>b()(ee.currentTarget.value)),rt("click",k,()=>s(S,!e(S))),r(n,J)},g=(n,c=He,f=He,b=He)=>{var J=We(),d=ae(J);{var k=se=>{var me=yr();$e(me,20,()=>e(l),ee=>ee,(ee,Le)=>{var Ue=_r(),te=y(Ue);xt(te);var _e=o(te,2),ze=E(_e,!0);u(Ue),w(ke=>{qt(te,ke),te.disabled=e(Z),h(ze,Le)},[()=>f().includes(Le)]),rt("change",te,ke=>{const Ve=ke.currentTarget;b()(Le,Ve.checked,Ve)}),r(ee,Ue)}),u(me),w(()=>ie(me,"aria-label",c())),r(se,me)},q=se=>{var me=br();r(se,me)};$(d,se=>{e(l).length?se(k):se(q,-1)})}r(n,J)},T=re(()=>t.data);let x=V(null);const P=re(()=>{const n=t.entry.content.available?Date.parse(t.entry.content.observedAt??""):NaN;return e(x)&&!(n>e(x).at)?e(x).secrets:e(T).secrets}),l=re(()=>{const n=(ct.data.fleet?.projects??[]).map(f=>f.id),c=e(P).flatMap(f=>f.projects).filter(f=>!n.includes(f));return[...n,...[...new Set(c)].sort()]});let C=V(null),K=V(!1),ue=V(null),ne=V(null),Z=V(!1),ve=V(null),xe=V(null),D=V(""),A=V(""),W=V(Dt([])),S=V(!1),v=V(""),j=V(""),N=V(null);const R=re(()=>e(N)?.canStore===!1);function z(){fetch("/api/vault").then(n=>n.ok?n.json():null).then(n=>{n&&s(N,n,!0)}).catch(()=>{})}wt(z);function L(n){if(!n)return"Never";const c=new Date(n);if(Number.isNaN(c.getTime()))return n;const f=b=>String(b).padStart(2,"0");return`${c.getFullYear()}-${f(c.getMonth()+1)}-${f(c.getDate())} ${f(c.getHours())}:${f(c.getMinutes())}`}function p(){s(A,""),s(j,""),s(S,!1)}function M(){s(D,""),s(W,[],!0),s(v,""),s(ve,null),s(xe,null),p(),s(K,!0)}function H(){s(K,!1),p()}async function O(n){s(Z,!0),s(xe,null),s(ve,null);try{const c=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[jt]:ct.data.sessionToken},body:JSON.stringify(n)}),f=await c.json().catch(()=>null);return c.ok?(f?.secrets&&s(x,{secrets:f.secrets,at:Date.parse(f.observedAt??"")||Date.now()},!0),s(ve,f?.message??"Done.",!0),!0):(s(xe,f?.message??`Wheelhouse could not do that (${c.status}).`,!0),c.status===503&&z(),!1)}catch{return s(xe,"Wheelhouse could not be reached. Try again."),!1}finally{s(Z,!1)}}async function F(n){if(n.preventDefault(),!Yt.test(e(D))){s(v,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(A))return;const c={action:"set",name:e(D),value:e(A),projects:e(W)};s(A,""),s(S,!1),await O(c)&&(s(K,!1),s(C,e(D),!0))}async function B(n,c){if(n.preventDefault(),!e(j))return;const f={action:"set",name:c.name,value:e(j),projects:[]};s(j,""),s(S,!1),await O(f)&&s(ue,null)}async function le(n,c,f,b){await O({action:f?"grant":"revoke",name:n.name,projects:[c]})||(b.checked=!f)}async function I(n){await O({action:"remove",name:n.name})&&(s(ne,null),s(C,null))}function de(n){s(C,e(C)===n?null:n,!0),s(ne,null),s(ue,null),p()}var Fe=Fr(),tt=ae(Fe),ot=y(tt),ft=E(ot),Ye=o(ot,2);{var mt=n=>{{let c=re(()=>e(Z)||e(R));Me(n,{onclick:M,get disabled(){return e(c)},children:(f,b)=>{Se();var J=be("Add a secret");r(f,J)},$$slots:{default:!0}})}};$(Ye,n=>{e(P).length&&!e(K)&&n(mt)})}u(tt);var st=o(tt,2);{var _=n=>{var c=wr(),f=E(c,!0);w(()=>h(f,e(N)?.reason??"The vault cannot store a secret on this computer.")),r(n,c)};$(st,n=>{e(R)&&n(_)})}var U=o(st,2);{var oe=n=>{var c=kr(),f=E(c,!0);w(()=>h(f,e(ve))),r(n,c)};$(U,n=>{e(ve)&&n(oe)})}var pe=o(U,2);{var Re=n=>{var c=jr(),f=E(c,!0);w(()=>h(f,e(xe))),r(n,c)};$(pe,n=>{e(xe)&&n(Re)})}var fe=o(pe,2);{var Ee=n=>{var c=Sr(),f=E(c,!0);w(()=>h(f,e(T).problem)),r(n,c)};$(fe,n=>{e(T).problem&&n(Ee)})}var he=o(fe,2);{var X=n=>{var c=Tr(),f=o(y(c),4),b=y(f),J=o(y(b),2);xt(J);var d=o(J,2);{var k=Y=>{var je=Mr(),Ce=E(je,!0);w(()=>h(Ce,e(v))),r(Y,je)},q=Y=>{var je=Er();r(Y,je)};$(d,Y=>{e(v)?Y(k):Y(q,-1)})}u(b);var se=o(b,2),me=o(y(se),2);m(me,()=>"vault-value",()=>()=>e(A),()=>Y=>s(A,Y,!0));var ee=o(me,2),Le=y(ee);Xt(Le,{class:"mt-px size-3.5 shrink-0"});var Ue=o(Le);u(ee),u(se);var te=o(se,2),_e=o(y(te),4);g(_e,()=>"Projects that may use it",()=>e(W),()=>(Y,je)=>{s(W,je?[...e(W),Y]:e(W).filter(Ce=>Ce!==Y),!0)}),u(te);var ze=o(te,2),ke=y(ze);{let Y=re(()=>e(Z)||!e(D)||!e(A)||e(R));Me(ke,{type:"submit",get disabled(){return e(Y)},children:(je,Ce)=>{Se();var Xe=be("Store secret");r(je,Xe)},$$slots:{default:!0}})}var Ve=o(ke,2);Me(Ve,{type:"button",variant:"outline",get disabled(){return e(Z)},onclick:H,children:(Y,je)=>{Se();var Ce=be("Cancel");r(Y,Ce)},$$slots:{default:!0}}),u(ze),u(f),u(c),w(Y=>{J.disabled=e(Z),ie(J,"aria-invalid",e(v)?"true":void 0),h(Ue,` Goes straight into ${Y??""}. Wheelhouse cannot show it again.`)},[()=>_t(e(N))]),kt("submit",f,F),rt("input",J,()=>s(v,"")),Zt(J,()=>e(D),Y=>s(D,Y)),r(n,c)};$(he,n=>{e(K)&&n(X)})}var G=o(he,2);{var Q=n=>{var c=zr(),f=y(c);St(f,{class:"size-6 text-brass","aria-hidden":"true"});var b=o(f,6);{let J=re(()=>e(Z)||e(R));Me(b,{class:"mt-5",onclick:M,get disabled(){return e(J)},children:(d,k)=>{Se();var q=be("Add a secret");r(d,q)},$$slots:{default:!0}})}u(c),r(n,c)},ce=n=>{var c=Lr();$e(c,21,()=>e(P),f=>f.name,(f,b)=>{var J=Dr(),d=y(J),k=y(d);St(k,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var q=o(k,2),se=E(q,!0),me=o(q,2);$e(me,20,()=>e(b).projects,te=>te,(te,_e)=>{var ze=Pr(),ke=E(ze,!0);w(()=>h(ke,_e)),r(te,ze)},te=>{var _e=Ar();r(te,_e)}),u(me);var ee=o(me,2);{let te=re(()=>e(C)===e(b).name?"rotate-90":"");Qt(ee,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(te)??""}`},"aria-hidden":"true"})}u(d);var Le=o(d,2);{var Ue=te=>{var _e=$r(),ze=y(_e),ke=o(y(ze),2);g(ke,()=>`Projects that may use ${e(b).name}`,()=>e(b).projects,()=>(Pe,ye,Ae)=>le(e(b),Pe,ye,Ae));var Ve=o(ke,2),Y=E(Ve,!0);u(ze);var je=o(ze,2),Ce=y(je),Xe=y(Ce),Oe=o(Xe,2);u(Ce);var Ie=o(Ce,2);{var pt=Pe=>{var ye=Nr(),Ae=o(y(ye),2);m(Ae,()=>"vault-replace",()=>()=>e(j),()=>Ne=>s(j,Ne,!0));var Be=o(Ae,2),qe=y(Be);{let Ne=re(()=>e(Z)||!e(j));Me(qe,{type:"submit",size:"sm",get disabled(){return e(Ne)},children:(Je,it)=>{Se();var Ze=be("Replace");r(Je,Ze)},$$slots:{default:!0}})}var Qe=o(qe,2);Me(Qe,{type:"button",size:"sm",variant:"outline",get disabled(){return e(Z)},onclick:()=>{s(ue,null),p()},children:(Ne,Je)=>{Se();var it=be("Cancel");r(Ne,it)},$$slots:{default:!0}}),u(Be),u(ye),kt("submit",ye,Ne=>B(Ne,e(b))),r(Pe,ye)},ht=Pe=>{var ye=Rr(),Ae=ae(ye),Be=o(y(Ae)),qe=E(Be,!0),Qe=o(Be);u(Ae);var Ne=o(Ae,2),Je=y(Ne);Me(Je,{size:"sm",variant:"destructive",get disabled(){return e(Z)},onclick:()=>I(e(b)),children:(Ze,$t)=>{Se();var gt=be("Remove");r(Ze,gt)},$$slots:{default:!0}});var it=o(Je,2);Me(it,{size:"sm",variant:"outline",get disabled(){return e(Z)},onclick:()=>s(ne,null),children:(Ze,$t)=>{Se();var gt=be("Keep it");r(Ze,gt)},$$slots:{default:!0}}),u(Ne),w(Ze=>{h(qe,e(b).name),h(Qe,`? Its value is deleted from ${Ze??""} and every project loses it. This cannot be undone.`)},[()=>_t(e(N))]),r(Pe,ye)},Ct=Pe=>{var ye=Cr(),Ae=y(ye);{let qe=re(()=>e(Z)||e(R));Me(Ae,{size:"sm",variant:"outline",get disabled(){return e(qe)},onclick:()=>{s(ue,e(b).name,!0),s(ve,null)},children:(Qe,Ne)=>{Se();var Je=be("Replace value");r(Qe,Je)},$$slots:{default:!0}})}var Be=o(Ae,2);Me(Be,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e(Z)},onclick:()=>s(ne,e(b).name,!0),children:(qe,Qe)=>{Se();var Ne=be("Remove…");r(qe,Ne)},$$slots:{default:!0}}),u(ye),r(Pe,ye)};$(Ie,Pe=>{e(ue)===e(b).name?Pe(pt):e(ne)===e(b).name?Pe(ht,1):Pe(Ct,-1)})}u(je),u(_e),w((Pe,ye,Ae)=>{ie(_e,"id",`vault-${e(b).name??""}`),h(Y,Pe),h(Xe,`Value set ${ye??""}`),h(Oe,`Last used ${Ae??""}`)},[()=>e(b).projects.length?`A command ${Gt(e(b).projects)} ${e(b).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>L(e(b).updatedAt),()=>L(e(b).lastUsedAt)]),r(te,_e)};$(Le,te=>{e(C)===e(b).name&&te(Ue)})}u(J),w(()=>{ie(d,"aria-expanded",e(C)===e(b).name),ie(d,"aria-controls",`vault-${e(b).name??""}`),h(se,e(b).name)}),rt("click",d,()=>de(e(b).name)),r(f,J)}),u(c),r(n,c)};$(G,n=>{!e(P).length&&!e(K)?n(Q):e(P).length&&n(ce,1)})}var we=o(G,2);{var Te=n=>{var c=Wr(),f=o(ae(c),2),b=y(f),J=o(y(b));$e(J,21,()=>e(T).used,Ke,(d,k)=>{var q=Ir(),se=y(q),me=E(se,!0),ee=o(se),Le=y(ee);{var Ue=Oe=>{var Ie=Or(),pt=E(Ie,!0);w(ht=>{ie(Ie,"href",`/tasks/${ht??""}`),h(pt,e(k).task)},[()=>encodeURIComponent(e(k).task)]),r(Oe,Ie)},te=Oe=>{var Ie=be();w(()=>h(Ie,e(k).task??"—")),r(Oe,Ie)};$(Le,Oe=>{e(k).task&&e(k).taskKnown?Oe(Ue):Oe(te,-1)})}u(ee);var _e=o(ee),ze=E(_e,!0),ke=o(_e),Ve=E(ke,!0),Y=o(ke),je=E(Y,!0),Ce=o(Y),Xe=E(Ce,!0);u(q),w((Oe,Ie)=>{h(me,Oe),h(ze,e(k).project??"—"),h(Ve,Ie),h(je,e(k).program??"—"),h(Xe,e(k).result)},[()=>L(e(k).at),()=>e(k).names.join(", ")||"—"]),r(d,q)}),u(J),u(b),u(f),r(n,c)};$(we,n=>{e(T).used.length&&n(Te)})}w(n=>h(ft,`Secrets your projects can use by name. Values stay in ${n??""}; Wheelhouse never
2
+ shows one.`),[()=>_t(e(N))]),r(a,Fe),vt()}Wt(["input","click","change"]);const Hr={"vault/overview":Ur},Vr="2026-01-26";class ge extends Error{constructor(t,m){super(m),this.code=t}code}const qr=-32601,et=-32602,Ge=-32e3,Kr=a=>typeof a=="string"&&a.length<=128||typeof a=="number"&&Number.isFinite(a);function Br(a){if(typeof a!="object"||a===null||Array.isArray(a))return null;const t=a;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!Kr(t.id)||t.method===void 0&&t.id===void 0?null:t}class Jr{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const m=Br(t);if(m){if(m.method!==void 0&&m.id!==void 0)this.answer(m.id,m.method,m.params);else if(m.method!==void 0)try{this.o.onNotification(m.method,m.params)}catch{}else if(m.id!==void 0){const g=this.pending.get(m.id);if(!g)return;this.pending.delete(m.id),clearTimeout(g.timer),m.error?g.reject(new ge(m.error.code,String(m.error.message))):g.resolve(m.result)}}}async answer(t,m,g){let T;try{const x=await this.o.onRequest(m,g);T={jsonrpc:"2.0",id:t,result:x??{}}}catch(x){const P=x instanceof ge?x:new ge(Ge,x instanceof Error?x.message:String(x));T={jsonrpc:"2.0",id:t,error:{code:P.code,message:P.message}}}this.closed||this.o.send(T)}request(t,m,g=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const T=this.next++;return new Promise((x,P)=>{const l=setTimeout(()=>{this.pending.delete(T),P(new Error(`The app did not answer ${t}.`))},g);this.pending.set(T,{resolve:x,reject:P,timer:l}),this.o.send({jsonrpc:"2.0",id:T,method:t,params:m})})}notify(t,m){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:m})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const dt=a=>typeof a=="object"&&a!==null&&!Array.isArray(a)?a:{},Zr=16*1024;function Gr(a,t,m){return async(g,T)=>{const x=dt(T);switch(g){case"ui/initialize":return{protocolVersion:Vr,hostInfo:t,hostCapabilities:m,hostContext:a.context()};case"ping":return{};case"tools/call":{if(typeof x.name!="string"||!x.name)throw new ge(et,"Name the tool to call.");return a.callTool(x.name,dt(x.arguments))}case"resources/read":{if(typeof x.uri!="string"||!x.uri)throw new ge(et,"Name the resource to read.");return a.readResource(x.uri)}case"ui/open-link":{let P;try{P=new URL(String(x.url))}catch{throw new ge(et,"Invalid URL")}if(P.protocol!=="http:"&&P.protocol!=="https:")throw new ge(Ge,"Policy violation: only http(s) links open.");return a.openLink(P.href),{}}case"ui/message":{const l=(Array.isArray(x.content)?x.content:[x.content]).map(C=>dt(C)).filter(C=>C.type==="text"&&typeof C.text=="string").map(C=>C.text).join(`
3
+
4
+ `).trim();if(!l)throw new ge(et,"Invalid message format: no text.");if(l.length>Zr)throw new ge(et,"The message is too long.");if(!await a.sendMessage(l))throw new ge(Ge,"Message sending denied");return{}}case"ui/request-display-mode":{const P=x.mode;if(P!=="inline"&&P!=="fullscreen"&&P!=="pip")throw new ge(et,"Unknown display mode.");return{mode:await a.displayMode(P)}}default:throw new ge(qr,`Wheelhouse does not offer ${g}.`)}}}function Yr(a){return(t,m)=>{const g=dt(m),T=x=>typeof x=="number"&&Number.isFinite(x)&&x>=0?Math.min(x,1e5):void 0;t==="ui/notifications/initialized"?a.initialized():t==="ui/notifications/size-changed"?a.resize({width:T(g.width),height:T(g.height)}):t==="notifications/message"&&a.log(typeof g.level=="string"?g.level:"info",g.data)}}const Xr={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function Qr(a){const t={};for(const[m,g]of Object.entries(Xr)){const T=a(g).trim();T&&(t[m]=T)}return t}function ea(a,t,m){const g=Math.round(a.width);return t?{width:g,height:Math.round(a.height)}:{width:g,maxHeight:m}}function ta(a){return{toolInfo:{tool:a.tool},theme:a.theme,styles:{variables:a.styles},displayMode:a.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:a.dimensions,...a.locale?{locale:a.locale}:{},...a.timeZone?{timeZone:a.timeZone}:{},userAgent:`wheelhouse/${a.version}`,platform:"web",deviceCapabilities:{hover:a.hover??!0,touch:a.touch??!1}}}function ra(a){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:a}}}const aa=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function na(a){return[...new Set(aa.flatMap(t=>a[t]??[]))]}async function nt(a,t,m){let g;try{g=await fetch(`/api/apps/${a}`,{method:"POST",headers:{"content-type":"application/json",[jt]:m},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const T=await g.json().catch(()=>null);if(T&&(g.ok||"ok"in T||"state"in T))return T;throw new Error(T?.message??`Wheelhouse answered ${g.status}.`)}const oa=(a,t)=>nt("open",a,t),sa=(a,t)=>nt("run",a,t),Et=(a,t,m)=>nt("call",{...a,...t},m),ia=(a,t,m)=>nt("read",{...a,uri:t},m),Cn=(a,t)=>nt("chat",{calls:a},t);async function la(a,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[jt]:t},body:JSON.stringify(a)})).json().catch(()=>null)}catch{return null}}var da=i('<p aria-busy="true">Opening the app…</p>'),ca=i("<!>Starting…",1),ua=i("<!> ",1),va=i('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),fa=i('<div data-app-service=""><p> </p> <!></div>'),ma=i("<p> </p>"),pa=i("<!>Exit full screen",1),ha=i('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),ga=i('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),xa=i('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),_a=i('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),ya=i('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),ba=i('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function wa(a,t){ut(t,!0);const m=720;let g=at(t,"fill",3,!1),T=at(t,"maxHeight",3,m);const x=()=>ct.data.sessionToken??"",P=()=>ct.data.health?.version??"0.0.0";let l=V("opening"),C=V(null),K=V(null),ue=V(""),ne=V(null),Z=V(null),ve=V(!1),xe=V(160),D=V("inline"),A=V(null),W=V(null),S=V(()=>{}),v=V(null),j=V(null),N=Promise.resolve();function R(_){const U=N.then(()=>new Promise(oe=>{s(v,{..._,answer:pe=>{s(v,null),oe(pe)}},!0)}));return N=U.catch(()=>{}),U}wt(()=>{e(j)&&(e(v)&&!e(j).open?e(j).showModal():!e(v)&&e(j).open&&e(j).close())});async function z(){s(l,"opening"),s(ne,null);try{const _=await oa(t.ref,x());_.state==="ready"?(s(C,_),s(ue,_.server.title,!0),s(l,"ready")):_.state==="service"?(s(K,_.service),s(ue,_.server.title,!0),s(l,"service")):(s(ne,_.reason,!0),s(l,"failed"))}catch(_){s(ne,_.message,!0),s(l,"failed")}}async function L(){if(!e(K))return;s(ve,!0);const _=await la({plugin:e(K).plugin,service:e(K).service,project:e(K).project},x());s(ve,!1),_?.state==="running"?await z():s(K,_??e(K))}zt(()=>{z()});const p=re(()=>{if(!e(C))return null;const _=new URL(bt.sandbox(e(C).sandbox));return _.searchParams.set("host",location.origin),_.href}),M=re(()=>e(C)?na(e(C).csp):[]),H=()=>document.documentElement.classList.contains("dark")?"dark":"light",O=()=>{const _=getComputedStyle(document.documentElement);return Qr(U=>_.getPropertyValue(U))},F=()=>{const _=e(A)?.getBoundingClientRect()??{width:0,height:0};return e(D)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:ea(_,g(),T())};wt(()=>{if(!e(C)||!e(W))return;const _=e(C),U=e(W);return Lt(()=>B(_,U))});function B(_,U){const oe=new URL(bt.sandbox(_.sandbox)).origin,pe=t.ref;let Re=!1,fe=null,Ee="";const he=sa(pe,x()).catch(d=>({ok:!1,reason:d.message})),X=d=>U.contentWindow?.postMessage(d,oe),G={context:()=>ta({tool:_.tool,theme:H(),styles:O(),displayMode:e(D),dimensions:F(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:P()}),async callTool(d,k){let q=await Et(pe,{name:d,arguments:k,confirmed:!1},x());if(!q.ok&&q.confirm){if(!await R({kind:"tool",title:q.confirm.title,description:q.confirm.description,args:JSON.stringify(k,null,2)}))throw new ge(Ge,"The captain declined the call.");q=await Et(pe,{name:d,arguments:k,confirmed:!0},x())}if(!q.ok)throw new ge(Ge,q.reason);return q.result},async readResource(d){const k=await ia(pe,d,x());if(!k.ok)throw new ge(Ge,k.reason);return k.result},async sendMessage(d){if(!await R({kind:"message",text:d}))return!1;const k=await tr(`From the “${t.title}” app (${t.plugin} plugin):
5
+
6
+ ${d}`,x());if(!k.ok)throw new ge(Ge,k.error);return!0},openLink(d){window.open(bt.view(d),"_blank","noopener,noreferrer")},async displayMode(d){return!(d==="inline"||d==="fullscreen")||fe&&!fe.includes(d)?e(D):(d!==e(D)&&await we(d),e(D))},resize({height:d}){d!==void 0&&!g()&&e(D)==="inline"&&s(xe,Math.max(40,Math.min(d,T())),!0)},log(d,k){console.info(`[${t.plugin} app] ${d}:`,k)},initialized(){Re||(Re=!0,Ee=JSON.stringify(F()),ce.notify("ui/notifications/tool-input",{arguments:_.input}),he.then(d=>{d.ok?ce.notify("ui/notifications/tool-result",d.result):(s(Z,`The app’s tool did not run: ${d.reason}`),ce.notify("ui/notifications/tool-cancelled",{reason:d.reason}))}))}},Q=Gr(G,{name:"wheelhouse",version:P()},ra({..._.csp})),ce=new Jr({send:X,onRequest:(d,k)=>{if(d==="ui/initialize"){const q=k?.appCapabilities;Array.isArray(q?.availableDisplayModes)&&(fe=q.availableDisplayModes)}return Q(d,k)},onNotification:Yr(G)});async function we(d){s(D,d,!0),d==="fullscreen"&&e(A)?await rr(e(A)):Mt(e(A)),Te({displayMode:e(D)})}s(S,()=>{we("inline")});function Te(d={}){if(!Re)return;const k=F(),q=JSON.stringify(k),se={...d,...q!==Ee?{containerDimensions:k}:{}};Ee=q,Object.keys(se).length&&ce.notify("ui/notifications/host-context-changed",se)}let n=!1;const c=d=>{if(d.source!==U.contentWindow||d.origin!==oe)return;const k=d.data;if(k&&k.method==="ui/notifications/sandbox-proxy-ready"){if(n)return;n=!0,X({jsonrpc:"2.0",method:"ui/notifications/sandbox-resource-ready",params:{html:_.html,csp:_.csp}});return}ce.receive(d.data)};window.addEventListener("message",c);const f=new MutationObserver(()=>Te({theme:H(),styles:{variables:O()}}));f.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});const b=new ResizeObserver(()=>Te());e(A)&&b.observe(e(A));const J=()=>{!document.fullscreenElement&&e(D)==="fullscreen"&&we("inline")};return document.addEventListener("fullscreenchange",J),()=>{Re&&ce.request("ui/resource-teardown",{},1e3).catch(()=>{}),ce.close(),window.removeEventListener("message",c),f.disconnect(),b.disconnect(),document.removeEventListener("fullscreenchange",J),Mt(e(A)),s(S,()=>{})}}const le=re(()=>e(C)?.prefersBorder!==!1);var I=ba(),de=ae(I);{var Fe=_=>{var U=da();w(()=>De(U,1,`text-sm text-muted-foreground ${g()?"px-4 py-10 sm:px-6":""}`)),r(_,U)},tt=_=>{var U=fa(),oe=y(U),pe=E(oe),Re=o(oe,2);{var fe=he=>{Me(he,{class:"mt-3",size:"sm",get disabled(){return e(ve)},onclick:L,children:(X,G)=>{var Q=We(),ce=ae(Q);{var we=n=>{var c=ca(),f=ae(c);Rt(f,{class:"size-4 animate-spin","aria-hidden":"true"}),Se(),r(n,c)},Te=n=>{var c=ua(),f=ae(c);ar(f,{class:"size-4","aria-hidden":"true"});var b=o(f);w(()=>h(b,`Start ${e(K).title??""}`)),r(n,c)};$(ce,n=>{e(ve)?n(we):n(Te,-1)})}r(X,Q)},$$slots:{default:!0}})},Ee=he=>{var X=va(),G=o(y(X)),Q=E(G,!0);u(X),w(()=>h(Q,e(K).hint)),r(he,X)};$(Re,he=>{e(K).launchable?he(fe):e(K).hint&&he(Ee,1)})}u(U),w(()=>{De(U,1,`text-sm ${g()?"px-4 py-10 sm:px-6":""}`),h(pe,`The app runs on ${e(K).title??""}, which is not running.${e(K).reason?` ${e(K).reason}`:""}`)}),r(_,U)},ot=_=>{var U=ma(),oe=E(U);w(()=>{De(U,1,`text-sm text-muted-foreground ${g()?"px-4 py-10 sm:px-6":""}`),h(oe,`Not available. ${e(ne)??""}`)}),r(_,U)},ft=_=>{var U=ga(),oe=ae(U),pe=y(oe);{var Re=G=>{var Q=ha(),ce=y(Q),we=E(ce,!0),Te=o(ce,2);Me(Te,{variant:"outline",size:"sm",onclick:()=>e(S)(),children:(n,c)=>{var f=pa(),b=ae(f);gr(b,{class:"size-4","aria-hidden":"true"}),Se(),r(n,f)},$$slots:{default:!0}}),u(Q),w(()=>h(we,t.title)),r(G,Q)};$(pe,G=>{e(D)==="fullscreen"&&G(Re)})}var fe=o(pe,2);let Ee;yt(fe,G=>s(W,G),()=>e(W)),u(oe),yt(oe,G=>s(A,G),()=>e(A));var he=o(oe,2),X=E(he);w(G=>{De(oe,1,Kt(e(D)==="fullscreen"?"fixed inset-0 z-50 flex flex-col bg-background":g()?"flex min-h-0 flex-1 flex-col":"")),ie(oe,"data-app","chat"in t.ref?`chat/${t.ref.chat}`:`${t.ref.plugin}/${t.ref.contribution}`),ie(fe,"src",e(p)),ie(fe,"title",`${t.title}: an app from ${e(C).server.title}`),De(fe,1,`block w-full ${e(D)==="fullscreen"||g()?"min-h-0 flex-1":""} ${e(le)&&e(D)==="inline"?"rounded-md border bg-card":""}`),Ee=Bt(fe,"",Ee,{height:e(D)==="inline"&&!g()?`${e(xe)}px`:null}),De(he,1,`text-xs text-muted-foreground ${g()?"px-4 pt-1.5 sm:px-6":"mt-1.5"}`),h(X,`An MCP app from ${e(C).server.title??""}, in a sandbox${G??""}.${e(Z)?` ${e(Z)}`:""}`)},[()=>e(M).length?`; it may reach ${e(M).join(", ")}`:", with no network access"]),r(_,U)};$(de,_=>{e(l)==="opening"?_(Fe):e(l)==="service"&&e(K)?_(tt,1):e(l)==="failed"?_(ot,2):e(C)&&e(p)&&_(ft,3)})}var Ye=o(de,2),mt=y(Ye);{var st=_=>{var U=ya(),oe=y(U);{var pe=X=>{var G=xa(),Q=ae(G),ce=E(Q),we=o(Q,2),Te=E(we),n=o(we,2),c=E(n,!0);w(()=>{h(ce,`Let the app run “${e(v).title??""}”?`),h(Te,`The ${t.title??""} app asks ${e(ue)??""} to run a tool that does not say it only reads, so it may
7
+ change something.${e(v).description?` ${e(v).description}`:""}`),h(c,e(v).args)}),r(X,G)},Re=X=>{var G=_a(),Q=o(ae(G),2),ce=E(Q),we=o(Q,2),Te=E(we,!0);w(()=>{h(ce,`The ${t.title??""} app wrote it. It goes as a message from you, marked as from the app.`),h(Te,e(v).text)}),r(X,G)};$(oe,X=>{e(v).kind==="tool"?X(pe):X(Re,-1)})}var fe=o(oe,2),Ee=y(fe);Me(Ee,{variant:"outline",onclick:()=>e(v)?.answer(!1),children:(X,G)=>{Se();var Q=be("No");r(X,Q)},$$slots:{default:!0}});var he=o(Ee,2);Me(he,{onclick:()=>e(v)?.answer(!0),children:(X,G)=>{Se();var Q=be();w(()=>h(Q,e(v).kind==="tool"?"Run it once":"Send it")),r(X,Q)},$$slots:{default:!0}}),u(fe),u(U),r(_,U)};$(mt,_=>{e(v)&&_(st)})}u(Ye),yt(Ye,_=>s(j,_),()=>e(j)),kt("close",Ye,()=>{e(j)?.open||e(v)?.answer(!1)}),r(a,I),vt()}function lt(a){if(typeof a!="string"||a.length>2048)return null;if(a.startsWith("/")&&!a.startsWith("//")&&!a.startsWith("/\\"))return a;try{const t=new URL(a);return t.protocol==="http:"||t.protocol==="https:"?a:null}catch{return null}}function $n(a,t){const m=new Set(fr(a));if(!m.size)return[];const g=[];for(const T of t)if(!(T.slot!=="bridge.card"||!T.content.available))for(const x of T.content.value)x.mentions.some(P=>m.has(P))&&g.push({entry:T,card:x});return g}var ka=i("<a> <!></a>"),ja=i('<p data-block="text.v1"> </p>'),Sa=i('<dt class="truncate text-muted-foreground"> </dt> <dd class="min-w-0 break-words"><!></dd>',1),Ma=i('<dl class="grid grid-cols-[minmax(0,8rem)_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm" data-block="kv.v1"></dl>'),Ea=i('<span class="ml-1.5 text-muted-foreground"> </span>'),Ta=i('<li class="min-w-0"><!><!></li>'),za=i('<ul class="flex flex-wrap gap-x-5 gap-y-1.5 text-sm" data-block="links.v1"></ul>'),Pa=i('<th class="px-3 py-2 font-medium"> </th>'),Aa=i('<thead class="border-b text-left text-xs text-muted-foreground"><tr></tr></thead>'),Na=i('<td class="px-3 py-2"><!></td>'),Ra=i("<tr></tr>"),Ca=i('<div class="overflow-x-auto rounded-lg border" data-block="table.v1"><table class="w-full text-sm"><!><tbody class="divide-y"></tbody></table></div>'),$a=i('<a target="_blank" rel="noreferrer"><img loading="lazy" class="max-h-96 rounded-lg border"/></a>'),Da=i('<img loading="lazy" class="max-h-96 rounded-lg border"/>'),La=i('<figure data-block="image.v1"><!></figure>'),Oa=i('<span class="block text-muted-foreground"> </span>'),Ia=i('<p class="flex items-start gap-2 text-sm" data-block="status.v1"><span aria-hidden="true"><!></span> <span class="min-w-0"><span> </span> <!></span></p>'),Wa=i('<span class="ml-1 text-muted-foreground"> </span>'),Fa=i('<li class="rounded-md bg-muted px-2 py-0.5 text-xs"> <!></li>'),Ua=i("<li> </li>"),Ha=i('<ul class="mt-2 space-y-0.5 font-mono text-xs text-muted-foreground"></ul>'),Va=i('<div class="rounded-lg border border-dashed p-3 text-sm" data-block="graph.v1"><p class="text-xs text-muted-foreground"> </p> <ul class="mt-2 flex flex-wrap gap-1.5"></ul> <!></div>'),qa=i('<pre class="mt-2 font-mono break-all whitespace-pre-wrap text-muted-foreground"> </pre>'),Ka=i('<div class="rounded-lg border border-dashed p-3 text-xs" data-block="unknown"><p class="flex items-center gap-1.5 text-muted-foreground"><!> </p> <!></div>'),Ba=i('<div class="space-y-3"></div>');function Ja(a,t){ut(t,!0);const m=(P,l=He,C=He,K)=>{let ue=Ot(()=>It(K?.(),"text-sea hover:underline"));const ne=re(()=>lt(C()));var Z=We(),ve=ae(Z);{var xe=A=>{var W=ka(),S=y(W,!0),v=o(S);{var j=R=>{dr(R,{class:"size-3.5 shrink-0","aria-hidden":"true"})},N=re(()=>T(e(ne)));$(v,R=>{e(N)&&R(j)})}u(W),w((R,z)=>{ie(W,"href",e(ne)),De(W,1,`inline-flex items-center gap-1 ${e(ue)??""}`),ie(W,"target",R),ie(W,"rel",z),h(S,l())},[()=>T(e(ne))?"_blank":void 0,()=>T(e(ne))?"noreferrer":void 0]),r(A,W)},D=A=>{var W=be();w(()=>h(W,l())),r(A,W)};$(ve,A=>{e(ne)?A(xe):A(D,-1)})}r(P,Z)},g={ok:"text-success",warn:"text-warning",fail:"text-danger",pending:"text-muted-foreground",unknown:"text-muted-foreground"},T=P=>!P.startsWith("/");var x=Ba();$e(x,21,()=>t.blocks,Ke,(P,l)=>{var C=We(),K=ae(C);{var ue=S=>{var v=ja(),j=E(v,!0);w(()=>{De(v,1,`text-sm leading-relaxed whitespace-pre-line ${e(l).muted?"text-muted-foreground":""}`),h(j,e(l).text)}),r(S,v)},ne=S=>{var v=Ma();$e(v,21,()=>e(l).items,Ke,(j,N)=>{var R=Sa(),z=ae(R),L=E(z,!0),p=o(z,2),M=y(p);m(M,()=>e(N).value,()=>e(N).href),u(p),w(()=>h(L,e(N).key)),r(j,R)}),u(v),r(S,v)},Z=S=>{var v=za();$e(v,21,()=>e(l).links,Ke,(j,N)=>{var R=Ta(),z=y(R);m(z,()=>e(N).label,()=>e(N).href);var L=o(z);{var p=M=>{var H=Ea(),O=E(H,!0);w(()=>h(O,e(N).note)),r(M,H)};$(L,M=>{e(N).note&&M(p)})}u(R),r(j,R)}),u(v),r(S,v)},ve=S=>{var v=Ca(),j=y(v),N=y(j);{var R=L=>{var p=Aa(),M=y(p);$e(M,21,()=>e(l).columns,Ke,(H,O)=>{var F=Pa(),B=E(F,!0);w(()=>h(B,e(O))),r(H,F)}),u(M),u(p),r(L,p)};$(N,L=>{e(l).columns.length&&L(R)})}var z=o(N);$e(z,21,()=>e(l).rows,Ke,(L,p)=>{var M=Ra();$e(M,21,()=>e(p),Ke,(H,O)=>{var F=Na(),B=y(F);{var le=de=>{var Fe=be();w(()=>h(Fe,e(O))),r(de,Fe)},I=de=>{m(de,()=>e(O).text,()=>e(O).href)};$(B,de=>{typeof e(O)=="string"?de(le):de(I,-1)})}u(F),r(H,F)}),u(M),r(L,M)}),u(z),u(j),u(v),r(S,v)},xe=S=>{const v=re(()=>lt(e(l).src));var j=We(),N=ae(j);{var R=z=>{var L=La(),p=y(L);{var M=F=>{var B=$a(),le=E(B);w(I=>{ie(B,"href",I),ie(le,"src",e(v)),ie(le,"alt",e(l).alt)},[()=>lt(e(l).href)]),r(F,B)},H=re(()=>lt(e(l).href)),O=F=>{var B=Da();w(()=>{ie(B,"src",e(v)),ie(B,"alt",e(l).alt)}),r(F,B)};$(p,F=>{e(H)?F(M):F(O,-1)})}u(L),r(z,L)};$(N,z=>{e(v)&&z(R)})}r(S,j)},D=S=>{var v=Ia(),j=y(v),N=y(j);{var R=I=>{or(I,{class:"size-4"})},z=I=>{sr(I,{class:"size-4"})},L=I=>{ir(I,{class:"size-4"})},p=I=>{Rt(I,{class:"size-4"})},M=I=>{lr(I,{class:"size-4"})};$(N,I=>{e(l).tone==="ok"?I(R):e(l).tone==="fail"?I(z,1):e(l).tone==="warn"?I(L,2):e(l).tone==="pending"?I(p,3):I(M,-1)})}u(j);var H=o(j,2),O=y(H),F=E(O,!0),B=o(O,2);{var le=I=>{var de=Oa(),Fe=E(de,!0);w(()=>h(Fe,e(l).detail)),r(I,de)};$(B,I=>{e(l).detail&&I(le)})}u(H),u(v),w(()=>{De(j,1,`mt-0.5 ${g[e(l).tone]??""}`),De(O,1,`font-medium ${(e(l).tone==="fail"||e(l).tone==="warn"?g[e(l).tone]:"")??""}`),h(F,e(l).label)}),r(S,v)},A=S=>{var v=Va(),j=y(v),N=E(j,!0),R=o(j,2);$e(R,21,()=>e(l).nodes,p=>p.id,(p,M)=>{var H=Fa(),O=y(H,!0),F=o(O);{var B=le=>{var I=Wa(),de=E(I,!0);w(()=>h(de,e(M).kind)),r(le,I)};$(F,le=>{e(M).kind&&le(B)})}u(H),w(()=>h(O,e(M).label)),r(p,H)}),u(R);var z=o(R,2);{var L=p=>{var M=Ha();$e(M,21,()=>e(l).edges,Ke,(H,O)=>{var F=Ua(),B=E(F);w(()=>h(B,`${e(O).from??""} → ${e(O).to??""}${e(O).label?` (${e(O).label})`:""}`)),r(H,F)}),u(M),r(p,M)};$(z,p=>{e(l).edges.length&&p(L)})}u(v),w(()=>h(N,`${e(l).nodes.length} ${e(l).nodes.length===1?"node":"nodes"}, ${e(l).edges.length} ${e(l).edges.length===1?"link":"links"}`)),r(S,v)},W=S=>{var v=Ka(),j=y(v),N=y(j);nr(N,{class:"size-3.5","aria-hidden":"true"});var R=o(N);u(j);var z=o(j,2);{var L=p=>{var M=qa(),H=E(M,!0);w(()=>h(H,e(l).preview)),r(p,M)};$(z,p=>{e(l).block==="unknown"&&p(L)})}u(v),w(()=>h(R,`This Wheelhouse cannot show a “${(e(l).block==="unknown"?e(l).type:"unknown")??""}” block.`)),r(S,v)};$(K,S=>{e(l).block==="text.v1"?S(ue):e(l).block==="kv.v1"?S(ne,1):e(l).block==="links.v1"?S(Z,2):e(l).block==="table.v1"?S(ve,3):e(l).block==="image.v1"?S(xe,4):e(l).block==="status.v1"?S(D,5):e(l).block==="graph.v1"?S(A,6):S(W,-1)})}r(P,C)}),u(x),r(a,x),vt()}var Za=i('<p class="text-sm text-muted-foreground" aria-busy="true">Loading…</p>'),Tt=i('<p class="text-sm text-muted-foreground"> </p>'),Ga=i("<p> </p>"),Ya=i('<div class="flex min-h-0 flex-1 flex-col"><!></div>'),Xa=i('<div class="min-h-0 flex-1 overflow-y-auto px-4 py-6 sm:px-6"><!></div>'),Qa=i("<!> <p> </p>",1);function Dn(a,t){ut(t,!0);const m=(D,A=He)=>{var W=We(),S=ae(W);{var v=p=>{Ja(p,{get blocks(){return A()}})},j=p=>{var M=Za();r(p,M)},N=p=>{var M=We(),H=ae(M);Ft(H,{failed:F=>{var B=Tt(),le=E(B);w(()=>h(le,`Not available. The ${t.entry.pluginId??""} plugin’s panel could not be shown.`)),r(F,B)}},F=>{var B=We(),le=ae(B);Ht(le,()=>e(P),(I,de)=>{de(I,{get data(){return A()},get entry(){return t.entry}})}),r(F,B)}),r(p,M)},R=p=>{cr(p,{get entry(){return t.entry},get data(){return A()}})},z=p=>{var M=We(),H=ae(M);Ut(H,()=>e(K),O=>{{let F=re(()=>({plugin:t.entry.pluginId,contribution:t.entry.contributionId,project:t.entry.projectId,task:t.entry.taskId??null}));wa(O,{get ref(){return e(F)},get title(){return t.entry.title},get plugin(){return t.entry.pluginId},get fill(){return x()}})}}),r(p,M)},L=p=>{var M=Tt(),H=E(M);w(()=>h(H,`Not available. This Wheelhouse does not include the “${t.entry.render.component??""}” panel.`)),r(p,M)};$(S,p=>{"blocks"in t.entry.render?p(v):(e(P)||e(l)||e(C))&&!e(ue)?p(j,1):e(P)?p(N,2):e(l)?p(R,3):e(C)?p(z,4):"component"in t.entry.render&&p(L,5)})}r(D,W)};let g=at(t,"now",19,()=>Date.now()),T=at(t,"panels",3,Hr),x=at(t,"fill",3,!1);const P=re(()=>"component"in t.entry.render?T()[t.entry.render.component]:void 0),l=re(()=>"element"in t.entry.render),C=re(()=>"app"in t.entry.render),K=re(()=>e(C)&&t.entry.content.available?`${t.entry.key} ${JSON.stringify(t.entry.content.value)}`:"");let ue=V(!1);zt(()=>{s(ue,!0)});var ne=We(),Z=ae(ne);{var ve=D=>{var A=Ga(),W=E(A);w(()=>{De(A,1,`text-sm text-muted-foreground ${x()?"px-4 py-10 sm:px-6":""}`),h(W,`Not available. ${t.entry.content.reason??""}`)}),r(D,A)},xe=D=>{var A=Qa(),W=ae(A);{var S=z=>{m(z,()=>t.entry.content.value)},v=z=>{var L=Ya(),p=y(L);m(p,()=>t.entry.content.value),u(L),r(z,L)},j=z=>{var L=Xa(),p=y(L);m(p,()=>t.entry.content.value),u(L),r(z,L)};$(W,z=>{x()?(e(P)||e(l)||e(C))&&e(ue)?z(v,1):z(j,-1):z(S)})}var N=o(W,2),R=E(N);w(z=>{De(N,1,`text-xs text-muted-foreground ${x()?"shrink-0 border-t px-4 py-1.5 sm:px-6":"mt-1.5"}`),h(R,`From ${t.entry.content.source??""}${z??""}.`)},[()=>t.entry.content.observedAt?`, ${Jt(t.entry.content.observedAt,g())}`:""]),r(D,A)};$(Z,D=>{t.entry.content.available?D(xe,-1):D(ve)})}r(a,ne),vt()}export{wa as A,Ja as B,gr as M,Hr as P,Dn as S,Cn as c,fr as e,$n as m};
@@ -0,0 +1,7 @@
1
+ import"./DsnmJJEf.js";import{p as vt,x as ze,f as q,i as e,a as n,b as mt,j as R,h as f,r as d,n as $,c,d as T,k,q as Ke,L as Xe,o as w,s as o,t as D,m as Fe,l as Wt}from"./Jk-ASPRO.js";import{d as $t,s as h,e as Qe,a as Oe}from"./DTApYZoW.js";import{i as C}from"./BEVJas-l.js";import{e as Ve,a as N,s as Ht}from"./DNP6oCAK.js";import{h as Yt,m as Ut}from"./CGnI1F6D.js";import{c as ue}from"./Cq7OFmxz.js";import{b as jt}from"./CNxxt--f.js";import{b as Jt}from"./DLfKkHEy.js";import{s as Ce,r as Ne}from"./DQWg__9S.js";import{k as Bt}from"./nqsqhzVw.js";import{S as Gt}from"./BXN538J3.js";import{w as Kt}from"./RYvdmj4W.js";import{c as pe}from"./WRwU91GU.js";import{D as Xt,h as Ze,i as et}from"./CdXXnfvS.js";import{H as Qt}from"./ck3_pj9L.js";import{B as re}from"./VrUPyiEH.js";import{D as Vt}from"./DqyvT7BR.js";import{D as Zt,a as es,b as ts,c as ss,d as as,e as rs}from"./Br5gy4Yk.js";import{A as is}from"./Dze9OLXA.js";import{C as ns}from"./Do7xN4Qx.js";import{p as os}from"./CWXMOoE5.js";import{i as tt}from"./gocvF-xl.js";import{l as ls}from"./ITHHFCAt.js";import{C as ds}from"./c9k4nDgn.js";import{L as Me}from"./D73wi9-q.js";import{X as cs}from"./m8-RluHE.js";import{C as us}from"./C_BRvYKD.js";import{I as qe}from"./DE0e4nJ8.js";import{C as vs}from"./teNj0U11.js";import{R as ms}from"./BgsPzvvM.js";import{S as st}from"./CuSw1clo.js";import{A as fs}from"./B374TgJF.js";import{P as at}from"./DBLsdElo.js";import{P as rt}from"./B_DDhx9A.js";var ps=new Set(["$$slots","$$events","$$legacy"]);function it(E,s){let i=Ne(s,ps);const v={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var hs=new Set(["$$slots","$$events","$$legacy"]);function _s(E,s){let i=Ne(s,hs);const v={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5"}],["path",{d:"m22 10-7.5 7.5L13 16"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var gs=new Set(["$$slots","$$events","$$legacy"]);function xs(E,s){let i=Ne(s,gs);const v={name:"users-round",size:24,node:[["path",{d:"M18 21a8 8 0 0 0-16 0"}],["circle",{cx:"10",cy:"8",r:"5"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"}]],aliases:["users-2"]};qe(E,Ce(()=>i,{get icon(){return v}}))}var ks=c('<div class="mt-5" data-task-decisions=""><!></div>'),ys=c(`<p class="mt-5 flex items-center gap-2 text-sm text-muted-foreground" role="status" data-task-decisions-answered=""><!>Your answer is with Firstmate,
2
+ which passes it on to the crew.</p>`);function ws(E,s){vt(s,!0);const i=R(()=>os.data.inbox),v=R(()=>tt.forTask(s.task.id,e(i),ls.now).length>0),b=R(()=>!e(v)&&s.task.attention?.kind==="decision"&&tt.hasDecision(s.task.id,e(i)));var Q=ze(),le=q(Q);{var Z=y=>{var F=ks(),V=f(F);{let G=R(()=>({taskId:s.task.id}));Xt(V,{get filter(){return e(G)}})}d(F),n(y,F)},we=y=>{var F=ys(),V=f(F);ds(V,{class:"size-4 shrink-0 text-success","aria-hidden":"true"}),$(),d(F),n(y,F)};C(le,y=>{e(v)?y(Z):e(b)&&y(we,1)})}n(E,Q),mt()}function bs(E){return!E.id.includes("@")&&!E.secondMate&&!["queued","done","landed","closed"].includes(E.status)}const Ss=/(?:instruction|operational input) waiting\b/i;function nt(E,s,i,v=!1){const b=[];for(const y of E)y.kind==="user"?Ss.test(y.text)||b.push({kind:"firstmate",at:y.at,item:y}):b.push({kind:"worker",at:y.at,item:y});let Q=0;if(!v){const y=b.findIndex(G=>G.at>=i),F=y<0?b.length:y,V=b.findLastIndex((G,H)=>H<F&&G.kind==="worker");Q=V>=0?V:F}const le=b.slice(Q),Z=s.map(y=>({kind:"captain",at:y.at,message:y}));return{entries:[...le,...Z].sort((y,F)=>y.at<F.at?-1:y.at>F.at?1:0),earlier:Q}}const Pe=6e3;async function ft(E,s,i,v={}){try{const b=await fetch(E,{method:"POST",headers:{"content-type":"application/json",[Gt]:s,...v},body:JSON.stringify(i)});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>null))?.message??`Wheelhouse answered ${b.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const ot=(E,s,i)=>ft("/api/crew",i,{taskId:E,action:s}),Ds=(E,s,i,v,b=crypto.randomUUID())=>ft("/api/crew/messages",v,{taskId:E,kind:s,text:i},{"idempotency-key":b});class Ps{constructor(s){this.taskId=s}taskId;#e=T(null);get session(){return e(this.#e)}set session(s){k(this.#e,s,!0)}#t=T(null);get source(){return e(this.#t)}set source(s){k(this.#t,s,!0)}#s=T([]);get records(){return e(this.#s)}set records(s){k(this.#s,s)}#a=T("connecting");get connection(){return e(this.#a)}set connection(s){k(this.#a,s,!0)}#r=T(!1);get synced(){return e(this.#r)}set synced(s){k(this.#r,s,!0)}#i=R(()=>Bt(this.records));get chat(){return e(this.#i)}set chat(s){k(this.#i,s)}#n=R(()=>{const s=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||s?.kind==="turn"&&!s.done});get working(){return e(this.#n)}set working(s){k(this.#n,s)}connect(){this.synced=!1;const s=i=>{i.addEventListener("session",v=>{this.session=JSON.parse(v.data)}),i.addEventListener("reset",v=>{this.source=JSON.parse(v.data),this.records=[]}),i.addEventListener("records",v=>{const b=[...this.records,...JSON.parse(v.data)];this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("replace",v=>{const b=JSON.parse(v.data);this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("synced",()=>this.synced=!0)};return Kt(`/api/tasks/${encodeURIComponent(this.taskId)}/chat`,s,i=>this.connection=i)}}var zs=c("<!>End discussion",1),Cs=c('<span class="text-xs text-muted-foreground">Read-only</span>'),Es=c(`<p class="crew-banner svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Sidebar</span> <span>You’re talking to <b> </b> directly. It can answer you here, and Firstmate gets a note of
3
+ each message.</span></p>`),Is=c('<p class="crew-banner crew-banner-read svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Read-only</span> <span> </span></p>'),As=c('<p class="crew-banner crew-banner-paused svelte-1f8gn6y" role="status"><span class="crew-tag svelte-1f8gn6y">Paused</span><span> </span></p>'),Ls=c('<div class="-mt-5"><!></div>'),lt=c('<p class="mt-4 rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground" role="status"> </p>'),Rs=c('<button class="mx-auto mt-4 block cursor-pointer text-sm text-sea hover:underline" data-show-earlier=""> </button>'),Fs=c('<div class="bubble-row"><div class="bubble bubble-captain"> </div></div>'),Os=c('<p class="flex items-center gap-1.5 text-sm text-muted-foreground"><!> </p>'),Ms=c('<button class="inline-flex cursor-pointer items-center gap-1 font-sans font-medium hover:underline"><!>Send again</button>'),dt=c("<span> </span>"),Ns=c('<article class="msg msg-captain"><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="crew-tag svelte-1f8gn6y">Sidebar</span><time> </time></header> <!> <p><!> <span> </span> <!></p></div></article>'),qs=c('<details class="crew-note svelte-1f8gn6y"><summary class="svelte-1f8gn6y">Typed into its session · <time> </time></summary> <p class="mt-2 whitespace-pre-wrap"> </p></details>'),Ts=c('<div class="bubble-row"><div class="chat-md bubble bubble-firstmate"></div></div>'),Ws=c('<p class="rounded-lg border px-4 py-3 text-sm"> <span class="text-muted-foreground">Answer in its terminal, or tell it here.</span></p>'),$s=c('<article class="msg msg-firstmate"><span class="mate-avatar msg-avatar svelte-1f8gn6y" aria-hidden="true"> </span> <div class="flex min-w-0 flex-1 flex-col gap-2"><header class="msg-head"><span class="msg-name font-mono"> </span><!><time> </time></header> <!></div></article>'),Hs=c('<pre class="no-scrollbar max-h-60 max-w-[80ch] overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground"> </pre>'),Ys=c('<p class="text-xs text-muted-foreground"> </p>'),Us=c(`<div class="border-t px-4 py-3 sm:px-5" data-discussion-terminal=""><p class="mb-2 flex items-center gap-2 text-xs text-muted-foreground"><!>Its terminal, read-only. Type to it
4
+ here, not there: what you send goes through its inbox.</p> <!></div>`),js=c("<!>Chat with crew",1),ct=c('<p class="mt-1 text-sm text-danger" role="alert"> </p>'),ut=c("<!> <!>",1),Js=c('<p class="text-sm text-danger" role="alert"> </p>'),Bs=c("<!>Start the discussion",1),Gs=c("<!> <!> <!>",1),Ks=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="flex items-center gap-3 rounded-xl border border-dashed bg-muted/40 py-2 pr-2 pl-4" data-chat-locked=""><span class="flex-1 text-muted-foreground/80">Read-only · talk to Firstmate about this task, or</span> <!></div> <p class="mt-1.5 text-xs text-muted-foreground"> </p> <!></div> <!>',1),Xs=c("<!>Ask for status",1),Qs=c("<!>Resume",1),Vs=c("<!>Pause after this step",1),Zs=c("<!> ",1),ea=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="mb-2 flex flex-wrap gap-2"><!> <!> <!></div> <form class="flex items-end gap-2 rounded-xl border bg-card px-3 py-2 focus-within:ring-3 focus-within:ring-ring/50"><textarea class="field-sizing-content max-h-48 min-h-10 flex-1 resize-none bg-transparent py-1.5 outline-none placeholder:text-muted-foreground" data-discussion-input=""></textarea> <!></form> <p class="mt-1.5 text-xs text-muted-foreground">Goes to its inbox as yours; Firstmate gets a note.</p> <!></div>'),ta=c('<section class="flex h-full min-h-0 flex-col"><header class="flex flex-wrap items-center gap-x-3 gap-y-2 border-b px-4 py-3 sm:px-5"><span class="mate-avatar" aria-hidden="true"> </span> <div class="min-w-0 flex-1"><p class="flex items-baseline gap-2"><a class="font-mono text-sm font-semibold hover:underline"> </a> <span class="truncate text-sm text-muted-foreground"> </span></p> <p class="text-xs text-muted-foreground"> </p></div> <!></header> <!> <!> <div class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:px-5" aria-live="polite" data-discussion-feed=""><!> <!> <!> <div class="mt-5 flex flex-col gap-6"></div></div> <!> <!></section>');function Na(E,s){vt(s,!0);const i=R(()=>s.taskId);let v=T(null);Ke(()=>{const t=new Ps(e(i));k(v,t,!0);const a=t.connect();return()=>{a(),k(v,null)}});let b=T(!1);const Q=60;let le=T(Q);const Z=R(()=>{if(s.discussion)return nt(e(v)?.chat.items??[],s.discussion.messages,s.discussion.openedAt,e(b));const{entries:t}=nt(e(v)?.chat.items??[],[],"",!0),a=Math.max(0,t.length-e(le));return{entries:t.slice(a),earlier:a}}),we=()=>s.discussion?k(b,!0):k(le,e(le)+Q),y=R(()=>s.task?s.task.secondMate||s.task.id.includes("@")?"Chatting with a second mate’s worker comes later.":bs(s.task)?null:"Its worker is not at work.":"Its task has left the fleet."),F=R(()=>e(v)?.session?.harness??s.task?.worker?.harness??null),V=R(()=>e(F)?Qt[e(F)]??e(F):null);let G=T(""),H=T(null),be=T(!1),he=T(!1),Se=T(!1),De=T(!1);async function pt(){k(De,!0),k(H,null);const t=await ot(e(i),"open",s.token);k(De,!1),t.ok?k(Se,!1):k(H,t.error,!0)}async function _e(t,a="",m){k(H,null);const P=await Ds(e(i),t,a,s.token,m);P.ok||k(H,P.error,!0)}function Te(){const t=e(G).trim();t&&(k(G,""),_e("say",t),Xe().then(()=>$e(!0)))}function ht(t){t.key==="Enter"&&!t.shiftKey&&!t.isComposing&&(t.preventDefault(),Te())}async function _t(){k(be,!0);const t=await ot(e(i),"close",s.token);k(be,!1),t.ok?s.onended?.():k(H,t.error,!0)}let ee=T(null),We=!0;function $e(t=!1){e(ee)&&(t||We)&&(e(ee).scrollTop=e(ee).scrollHeight)}Ke(()=>{e(Z).entries.length,e(v)?.records.length,Xe().then(()=>$e())});const gt=t=>t.delivery==="sending"?"Sending":t.delivery==="failed"?t.error??"Not delivered":t.seen?`Seen by ${e(i)}`:"In its inbox",xt={status:"Asked for status",pause:"Asked to pause",resume:"Asked to resume"};var ve=ta(),Ee=f(ve),Ie=f(Ee),kt=w(Ie,!0),Ae=o(Ie,2),Le=f(Ae),Re=f(Le),yt=w(Re,!0),wt=o(Re,2),bt=w(wt,!0);d(Le);var St=o(Le,2),Dt=w(St);d(Ae);var Pt=o(Ae,2);{var zt=t=>{re(t,{variant:"outline",size:"sm",onclick:_t,get disabled(){return e(be)},"data-end-discussion":!0,children:(a,m)=>{var P=zs(),U=q(P);{var ie=j=>{Me(j,{class:"animate-spin"})},de=j=>{cs(j,{})};C(U,j=>{e(be)?j(ie):j(de,-1)})}$(),n(a,P)},$$slots:{default:!0}})},Ct=t=>{var a=Cs();n(t,a)};C(Pt,t=>{s.discussion?t(zt):t(Ct,-1)})}d(Ee);var He=o(Ee,2);{var Et=t=>{var a=Es(),m=o(f(a),2),P=o(f(m)),U=w(P,!0);$(),d(m),d(a),D(()=>h(U,e(i))),n(t,a)},It=t=>{var a=Is(),m=o(f(a),2),P=w(m);d(a),D(()=>h(P,`${e(i)??""}’s own conversation. You’re watching; Firstmate steers it.`)),n(t,a)};C(He,t=>{s.discussion?t(Et):t(It,-1)})}var Ye=o(He,2);{var At=t=>{var a=As(),m=o(f(a)),P=w(m);d(a),D(()=>h(P,`You asked ${e(i)??""} to stop after its current step. It waits until you resume it.`)),n(t,a)};C(Ye,t=>{s.discussion?.paused&&t(At)})}var ge=o(Ye,2),Ue=f(ge);{var Lt=t=>{var a=Ls(),m=f(a);ws(m,{get task(){return s.task}}),d(a),n(t,a)};C(Ue,t=>{s.task&&s.discussion&&t(Lt)})}var je=o(Ue,2);{var Rt=t=>{var a=lt(),m=w(a,!0);D(()=>h(m,e(v).session.reason)),n(t,a)},Ft=t=>{var a=lt(),m=w(a);D(()=>h(m,`Wheelhouse has not found ${e(i)??""}’s conversation yet.${s.discussion?" What you send still reaches it.":""}`)),n(t,a)};C(je,t=>{e(v)?.session?.reason?t(Rt):e(v)?.synced&&!e(v).source&&t(Ft,1)})}var Je=o(je,2);{var Ot=t=>{var a=Rs(),m=w(a);D(()=>h(m,`Show its earlier work (${e(Z).earlier??""})`)),Oe("click",a,we),n(t,a)};C(Je,t=>{e(Z).earlier&&t(Ot)})}var Be=o(Je,2);Ve(Be,23,()=>e(Z).entries,(t,a)=>t.kind==="captain"?`c-${t.message.id}`:`${t.kind}-${t.item.id}-${a}`,(t,a,m)=>{var P=ze(),U=q(P);{var ie=p=>{const r=R(()=>e(a).message);var g=Ns(),O=o(f(g),2),l=f(O),z=o(f(l)),L=w(z,!0);d(l);var A=o(l,2);{var J=u=>{var x=Fs(),_=f(x),S=w(_,!0);d(x),D(()=>h(S,e(r).text)),n(u,x)},ce=u=>{var x=Os(),_=f(x);{var S=X=>{at(X,{class:"size-3.5","aria-hidden":"true"})},K=X=>{rt(X,{class:"size-3.5","aria-hidden":"true"})},W=X=>{it(X,{class:"size-3.5","aria-hidden":"true"})};C(_,X=>{e(r).kind==="pause"?X(S):e(r).kind==="resume"?X(K,1):X(W,-1)})}var fe=o(_,1,!0);d(x),D(()=>h(fe,xt[e(r).kind])),n(u,x)};C(A,u=>{e(r).kind==="say"?u(J):u(ce,-1)})}var te=o(A,2),oe=f(te);{var me=u=>{Me(u,{class:"size-3 animate-spin","aria-hidden":"true"})},ke=u=>{us(u,{class:"size-3","aria-hidden":"true"})},Y=u=>{_s(u,{class:"size-3 text-success","aria-hidden":"true"})},I=u=>{vs(u,{class:"size-3","aria-hidden":"true"})};C(oe,u=>{e(r).delivery==="sending"?u(me):e(r).delivery==="failed"?u(ke,1):e(r).seen?u(Y,2):u(I,-1)})}var M=o(oe,2),B=w(M,!0),ye=o(M,2);{var se=u=>{var x=Ms(),_=f(x);ms(_,{class:"size-3","aria-hidden":"true"}),$(),d(x),Oe("click",x,()=>_e(e(r).kind,e(r).text,e(r).id)),n(u,x)},ae=u=>{var x=dt(),_=w(x);D(()=>h(_,`· ${e(r).told==="sent"?"Firstmate told":e(r).told==="sending"?"telling Firstmate":e(r).told==="off"?"Firstmate not told (messaging is off)":"Firstmate could not be told"}`)),n(u,x)};C(ye,u=>{e(r).delivery==="failed"?u(se):e(r).delivery==="sent"&&u(ae,1)})}d(te),d(O),d(g),D((u,x,_)=>{N(g,"aria-label",`You, ${u??""}`),N(g,"data-crew-message",e(r).id),N(z,"datetime",e(r).at),h(L,x),Ht(te,1,`mt-1 flex flex-wrap items-center justify-end gap-x-2 font-mono text-[0.72rem] ${e(r).delivery==="failed"?"text-danger":"text-muted-foreground"}`),N(te,"data-receipt",e(r).delivery==="sent"?e(r).seen?"seen":"sent":e(r).delivery),h(B,_)},[()=>pe(e(r).at),()=>pe(e(r).at),()=>gt(e(r))]),n(p,g)},de=p=>{var r=qs(),g=f(r),O=o(f(g)),l=w(O,!0);d(g);var z=o(g,2),L=w(z,!0);d(r),D(A=>{N(O,"datetime",e(a).at),h(l,A),h(L,e(a).item.text)},[()=>pe(e(a).at)]),n(p,r)},j=p=>{const r=R(()=>e(a).item);var g=$s(),O=f(g),l=w(O,!0),z=o(O,2),L=f(z),A=f(L),J=w(A,!0),ce=o(A);{var te=Y=>{var I=dt(),M=w(I,!0);D(()=>h(M,e(V))),n(Y,I)};C(ce,Y=>{e(V)&&Y(te)})}var oe=o(ce),me=w(oe,!0);d(L);var ke=o(L,2);Ve(ke,19,()=>e(r).parts,Y=>Y.id,(Y,I,M)=>{var B=ze(),ye=q(B);{var se=_=>{var S=Ts(),K=f(S);Yt(K,()=>Ut(e(I).text),!0),d(K),d(S),n(_,S)},ae=R(()=>e(I).kind==="text"&&e(I).text.trim()),u=_=>{{let S=R(()=>!e(r).done&&e(M)===e(r).parts.length-1&&e(m)===e(Z).entries.length-1);is(_,{get steps(){return e(I).steps},get live(){return e(S)}})}},x=_=>{var S=Ws(),K=f(S);$(),d(S),D(W=>h(K,`It asked in its session: ${W??""} `),[()=>e(I).questions.map(W=>W.question).join(" ")]),n(_,S)};C(ye,_=>{e(ae)?_(se):e(I).kind==="activity"?_(u,1):e(I).kind==="question"&&_(x,2)})}n(Y,B)}),d(z),d(g),D((Y,I,M,B)=>{N(g,"aria-label",`${e(i)??""}, ${Y??""}`),N(O,"data-hue",I),h(l,M),h(J,e(i)),N(oe,"datetime",e(r).at),h(me,B)},[()=>pe(e(r).at),()=>Ze(e(i)),()=>et(e(i)),()=>pe(e(r).at)]),n(p,g)},xe=p=>{var r=Hs(),g=w(r,!0);D(()=>h(g,e(a).item.text)),n(p,r)},ne=p=>{var r=Ys(),g=w(r);D(O=>h(g,`${e(a).item.title??""} · ${O??""}`),[()=>pe(e(a).item.at)]),n(p,r)};C(U,p=>{e(a).kind==="captain"?p(ie):e(a).kind==="firstmate"?p(de,1):e(a).item.kind==="turn"?p(j,2):e(a).item.kind==="output"?p(xe,3):e(a).item.kind==="notice"&&p(ne,4)})}n(t,P)}),d(Be),d(ge),Jt(ge,t=>k(ee,t),()=>e(ee));var Ge=o(ge,2);{var Mt=t=>{var a=Us(),m=f(a),P=f(m);st(P,{class:"size-3.5","aria-hidden":"true"}),$(),d(m);var U=o(m,2);ns(U,{get task(){return s.task},lines:16}),d(a),n(t,a)};C(Ge,t=>{e(he)&&s.task&&t(Mt)})}var Nt=o(Ge,2);{var qt=t=>{var a=Ks(),m=q(a),P=f(m),U=o(f(P),2);{let p=R(()=>!!e(y)),r=R(()=>e(y)??void 0);re(U,{variant:"outline",size:"sm",get disabled(){return e(p)},get title(){return e(r)},onclick:()=>k(Se,!0),"data-chat-with-crew":!0,children:(g,O)=>{var l=js(),z=q(l);xs(z,{}),$(),n(g,l)},$$slots:{default:!0}})}d(P);var ie=o(P,2),de=w(ie,!0),j=o(ie,2);{var xe=p=>{var r=ct(),g=w(r,!0);D(()=>h(g,e(H))),n(p,r)};C(j,p=>{e(H)&&p(xe)})}d(m);var ne=o(m,2);ue(ne,()=>rs,(p,r)=>{r(p,{get open(){return e(Se)},set open(g){k(Se,g,!0)},children:(g,O)=>{var l=ze(),z=q(l);ue(z,()=>Zt,(L,A)=>{A(L,{class:"sm:max-w-md",children:(J,ce)=>{var te=Gs(),oe=q(te);ue(oe,()=>es,(I,M)=>{M(I,{children:(B,ye)=>{var se=ut(),ae=q(se);ue(ae,()=>ts,(x,_)=>{_(x,{class:"font-display text-lg",children:(S,K)=>{$();var W=Fe();D(()=>h(W,`Talk to ${e(i)??""} directly?`)),n(S,W)},$$slots:{default:!0}})});var u=o(ae,2);ue(u,()=>ss,(x,_)=>{_(x,{children:(S,K)=>{$();var W=Fe(`You’ll message this task’s worker yourself, outside Firstmate’s usual relay. What you
5
+ say goes to its inbox as yours, it can answer you here, and Firstmate gets a note of
6
+ each message so it stays in step. End the discussion when you’re done; most of the time,
7
+ talk to Firstmate.`);n(S,W)},$$slots:{default:!0}})}),n(B,se)},$$slots:{default:!0}})});var me=o(oe,2);{var ke=I=>{var M=Js(),B=w(M,!0);D(()=>h(B,e(H))),n(I,M)};C(me,I=>{e(H)&&I(ke)})}var Y=o(me,2);ue(Y,()=>as,(I,M)=>{M(I,{children:(B,ye)=>{var se=ut(),ae=q(se);{const x=(_,S)=>{re(_,Ce(()=>(S?.()).props,{variant:"ghost",children:(W,fe)=>{$();var X=Fe("Cancel");n(W,X)},$$slots:{default:!0}}))};ue(ae,()=>Vt,(_,S)=>{S(_,{child:x,$$slots:{child:!0}})})}var u=o(ae,2);re(u,{onclick:pt,get disabled(){return e(De)},"data-crew-confirm":!0,children:(x,_)=>{var S=Bs(),K=q(S);{var W=fe=>{Me(fe,{class:"animate-spin"})};C(K,fe=>{e(De)&&fe(W)})}$(),n(x,S)},$$slots:{default:!0}}),n(B,se)},$$slots:{default:!0}})}),n(J,te)},$$slots:{default:!0}})}),n(g,l)},$$slots:{default:!0}})}),D(()=>h(de,e(y)??"You’ll be asked to confirm first: you talk to the worker directly.")),n(t,a)},Tt=t=>{var a=ea(),m=f(a),P=f(m);re(P,{variant:"outline",size:"sm",onclick:()=>_e("status"),"data-quick":"status",children:(l,z)=>{var L=Xs(),A=q(L);it(A,{}),$(),n(l,L)},$$slots:{default:!0}});var U=o(P,2);{var ie=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("resume"),"data-quick":"resume",children:(z,L)=>{var A=Qs(),J=q(A);rt(J,{}),$(),n(z,A)},$$slots:{default:!0}})},de=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("pause"),"data-quick":"pause",children:(z,L)=>{var A=Vs(),J=q(A);at(J,{}),$(),n(z,A)},$$slots:{default:!0}})};C(U,l=>{s.discussion.paused?l(ie):l(de,-1)})}var j=o(U,2);{var xe=l=>{re(l,{variant:"outline",size:"sm",get"aria-pressed"(){return e(he)},onclick:()=>k(he,!e(he)),"data-quick":"terminal",children:(z,L)=>{var A=Zs(),J=q(A);st(J,{});var ce=o(J);D(()=>h(ce,`${e(he)?"Hide":"Show"} its terminal`)),n(z,A)},$$slots:{default:!0}})};C(j,l=>{s.task&&l(xe)})}d(m);var ne=o(m,2),p=f(ne);Wt(p);var r=o(p,2);{let l=R(()=>!e(G).trim());re(r,{type:"submit",size:"icon",class:"rounded-full",get disabled(){return e(l)},"aria-label":"Send",children:(z,L)=>{fs(z,{})},$$slots:{default:!0}})}d(ne);var g=o(ne,4);{var O=l=>{var z=ct(),L=w(z,!0);D(()=>h(L,e(H))),n(l,z)};C(g,l=>{e(H)&&l(O)})}d(a),D(()=>{N(p,"placeholder",`Message ${e(i)??""} directly`),N(p,"aria-label",`Message ${e(i)??""} directly`)}),Qe("submit",ne,l=>{l.preventDefault(),Te()}),Oe("keydown",p,ht),jt(p,()=>e(G),l=>k(G,l)),n(t,a)};C(Nt,t=>{s.discussion?t(Tt,-1):t(qt)})}d(ve),D((t,a,m)=>{N(ve,"aria-label",s.discussion?`Crew discussion with ${e(i)}`:`${e(i)}’s conversation`),N(ve,"data-discussion",s.discussion?e(i):void 0),N(ve,"data-task-chat",e(i)),N(Ie,"data-hue",t),h(kt,a),N(Re,"href",`/tasks/${m??""}`),h(yt,e(i)),h(bt,s.task?.title??s.discussion?.title??""),h(Dt,`${e(V)??"Worker"??""}${s.task?` · ${s.task.statusLabel}`:" · no longer in the fleet"}`)},[()=>Ze(e(i)),()=>et(e(i)),()=>encodeURIComponent(e(i))]),Qe("scroll",ge,()=>{e(ee)&&(We=e(ee).scrollTop+e(ee).clientHeight>=e(ee).scrollHeight-40)}),n(E,ve),mt()}$t(["click","keydown"]);export{Na as D,ws as T,xs as U};