@chrisjowen/wheelhouse 0.11.0 → 0.12.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 (403) hide show
  1. package/README.md +23 -1
  2. package/build/client/_app/immutable/assets/0.CS9-5c8D.css +1 -0
  3. package/build/client/_app/immutable/assets/0.CS9-5c8D.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.CS9-5c8D.css.gz +0 -0
  5. package/build/client/_app/immutable/chunks/{BPAziDlG.js → A55xgzkD.js} +1 -1
  6. package/build/client/_app/immutable/chunks/A55xgzkD.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/A55xgzkD.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/{DSAFUgJn.js → BBJBkIrw.js} +1 -1
  9. package/build/client/_app/immutable/chunks/BBJBkIrw.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/BBJBkIrw.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/{DnBZO8Il.js → BFhVmACN.js} +1 -1
  12. package/build/client/_app/immutable/chunks/BFhVmACN.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/BFhVmACN.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/{CC5Ts_xe.js → BdTUpAzj.js} +1 -1
  15. package/build/client/_app/immutable/chunks/BdTUpAzj.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/BdTUpAzj.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/BezBg3rs.js +1 -0
  18. package/build/client/_app/immutable/chunks/BezBg3rs.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/BezBg3rs.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/{BiiAyXOY.js → Blcu9fuE.js} +1 -1
  21. package/build/client/_app/immutable/chunks/Blcu9fuE.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/Blcu9fuE.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/{ChjkQemt.js → CEkqhJ8-.js} +1 -1
  24. package/build/client/_app/immutable/chunks/CEkqhJ8-.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/CEkqhJ8-.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/{60JlvdhQ.js → CLy6GMrT.js} +1 -1
  27. package/build/client/_app/immutable/chunks/CLy6GMrT.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/CLy6GMrT.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/{BEKG1Stw.js → CM7YbvcE.js} +1 -1
  30. package/build/client/_app/immutable/chunks/CM7YbvcE.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/CM7YbvcE.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/{C69eHrL5.js → CogyHa6-.js} +1 -1
  33. package/build/client/_app/immutable/chunks/CogyHa6-.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/CogyHa6-.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/{B597Cbe1.js → CuH1GpU9.js} +1 -1
  36. package/build/client/_app/immutable/chunks/CuH1GpU9.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/CuH1GpU9.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/{DVeiiKip.js → D90Ga_Id.js} +1 -1
  39. package/build/client/_app/immutable/chunks/D90Ga_Id.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/D90Ga_Id.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/{DjCsArDj.js → D9uOQyZY.js} +1 -1
  42. package/build/client/_app/immutable/chunks/D9uOQyZY.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/D9uOQyZY.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/{CvZklcJq.js → DQWdnL7h.js} +1 -1
  45. package/build/client/_app/immutable/chunks/DQWdnL7h.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/DQWdnL7h.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/{CSntU4ww.js → DZhp5Clk.js} +1 -1
  48. package/build/client/_app/immutable/chunks/DZhp5Clk.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/DZhp5Clk.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/DjTSkyf1.js +2 -0
  51. package/build/client/_app/immutable/chunks/DjTSkyf1.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/DjTSkyf1.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/{CPQbfMGI.js → Lo9Y985M.js} +1 -1
  54. package/build/client/_app/immutable/chunks/Lo9Y985M.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/Lo9Y985M.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/{Cbm0yS9E.js → caSIyyev.js} +1 -1
  57. package/build/client/_app/immutable/chunks/caSIyyev.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/caSIyyev.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/{IKqZ9EUq.js → n-cYDyaA.js} +5 -5
  60. package/build/client/_app/immutable/chunks/n-cYDyaA.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/n-cYDyaA.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/{Gbvs-EZ4.js → s_exGbLS.js} +1 -1
  63. package/build/client/_app/immutable/chunks/s_exGbLS.js.br +2 -0
  64. package/build/client/_app/immutable/chunks/s_exGbLS.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/yQaRdTPY.js +1 -0
  66. package/build/client/_app/immutable/chunks/yQaRdTPY.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/yQaRdTPY.js.gz +0 -0
  68. package/build/client/_app/immutable/entry/app.BgHDSK-f.js +2 -0
  69. package/build/client/_app/immutable/entry/app.BgHDSK-f.js.br +0 -0
  70. package/build/client/_app/immutable/entry/app.BgHDSK-f.js.gz +0 -0
  71. package/build/client/_app/immutable/entry/start.Cv7YY8BY.js +1 -0
  72. package/build/client/_app/immutable/entry/start.Cv7YY8BY.js.br +0 -0
  73. package/build/client/_app/immutable/entry/start.Cv7YY8BY.js.gz +0 -0
  74. package/build/client/_app/immutable/nodes/{0.CPXJEdVC.js → 0.DuFkC-WN.js} +1 -1
  75. package/build/client/_app/immutable/nodes/0.DuFkC-WN.js.br +0 -0
  76. package/build/client/_app/immutable/nodes/0.DuFkC-WN.js.gz +0 -0
  77. package/build/client/_app/immutable/nodes/{1.BsHjzKoN.js → 1.BXoD9o7T.js} +1 -1
  78. package/build/client/_app/immutable/nodes/1.BXoD9o7T.js.br +0 -0
  79. package/build/client/_app/immutable/nodes/1.BXoD9o7T.js.gz +0 -0
  80. package/build/client/_app/immutable/nodes/{10.JvkeSj5x.js → 10.Cei28q9Z.js} +1 -1
  81. package/build/client/_app/immutable/nodes/10.Cei28q9Z.js.br +0 -0
  82. package/build/client/_app/immutable/nodes/10.Cei28q9Z.js.gz +0 -0
  83. package/build/client/_app/immutable/nodes/{11.C9viE404.js → 11.BstaTigc.js} +1 -1
  84. package/build/client/_app/immutable/nodes/11.BstaTigc.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/11.BstaTigc.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/{12.BWVqITW1.js → 12.C26mRRF_.js} +1 -1
  87. package/build/client/_app/immutable/nodes/12.C26mRRF_.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/12.C26mRRF_.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/{13.D0u53Jpp.js → 13.D5cvQijt.js} +1 -1
  90. package/build/client/_app/immutable/nodes/13.D5cvQijt.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/13.D5cvQijt.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/{14.CNClDl2g.js → 14.ixNG0i6M.js} +1 -1
  93. package/build/client/_app/immutable/nodes/14.ixNG0i6M.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/14.ixNG0i6M.js.gz +0 -0
  95. package/build/client/_app/immutable/nodes/{15.BJShjxpx.js → 15.U-YpZ2mY.js} +1 -1
  96. package/build/client/_app/immutable/nodes/15.U-YpZ2mY.js.br +0 -0
  97. package/build/client/_app/immutable/nodes/15.U-YpZ2mY.js.gz +0 -0
  98. package/build/client/_app/immutable/nodes/{16.Bb3PPsch.js → 16.DYyQlMIj.js} +1 -1
  99. package/build/client/_app/immutable/nodes/16.DYyQlMIj.js.br +0 -0
  100. package/build/client/_app/immutable/nodes/16.DYyQlMIj.js.gz +0 -0
  101. package/build/client/_app/immutable/nodes/{17.COjMgZvi.js → 17.CjNdiCZc.js} +1 -1
  102. package/build/client/_app/immutable/nodes/17.CjNdiCZc.js.br +0 -0
  103. package/build/client/_app/immutable/nodes/17.CjNdiCZc.js.gz +0 -0
  104. package/build/client/_app/immutable/nodes/{19.BbeSGQyg.js → 19.aX3EJcGD.js} +1 -1
  105. package/build/client/_app/immutable/nodes/19.aX3EJcGD.js.br +0 -0
  106. package/build/client/_app/immutable/nodes/19.aX3EJcGD.js.gz +0 -0
  107. package/build/client/_app/immutable/nodes/2.MoMLMEsA.js +26 -0
  108. package/build/client/_app/immutable/nodes/2.MoMLMEsA.js.br +0 -0
  109. package/build/client/_app/immutable/nodes/2.MoMLMEsA.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/{20.2D2FCLQq.js → 20.BcpIwTNR.js} +1 -1
  111. package/build/client/_app/immutable/nodes/20.BcpIwTNR.js.br +0 -0
  112. package/build/client/_app/immutable/nodes/20.BcpIwTNR.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/{21.xQ_KUjAi.js → 21.BdNRERDN.js} +1 -1
  114. package/build/client/_app/immutable/nodes/21.BdNRERDN.js.br +0 -0
  115. package/build/client/_app/immutable/nodes/21.BdNRERDN.js.gz +0 -0
  116. package/build/client/_app/immutable/nodes/{22.DuszjIrq.js → 22.UIlcgKG0.js} +1 -1
  117. package/build/client/_app/immutable/nodes/22.UIlcgKG0.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/22.UIlcgKG0.js.gz +0 -0
  119. package/build/client/_app/immutable/nodes/{23.CKoLeDhM.js → 23.B59tMz3Z.js} +1 -1
  120. package/build/client/_app/immutable/nodes/23.B59tMz3Z.js.br +0 -0
  121. package/build/client/_app/immutable/nodes/23.B59tMz3Z.js.gz +0 -0
  122. package/build/client/_app/immutable/nodes/{24.CH1byq7o.js → 24.DQjTWFAo.js} +1 -1
  123. package/build/client/_app/immutable/nodes/24.DQjTWFAo.js.br +0 -0
  124. package/build/client/_app/immutable/nodes/24.DQjTWFAo.js.gz +0 -0
  125. package/build/client/_app/immutable/nodes/25.DX_SiK1J.js +14 -0
  126. package/build/client/_app/immutable/nodes/25.DX_SiK1J.js.br +0 -0
  127. package/build/client/_app/immutable/nodes/25.DX_SiK1J.js.gz +0 -0
  128. package/build/client/_app/immutable/nodes/{26.CHB__H6C.js → 26.Bqb00dxX.js} +1 -1
  129. package/build/client/_app/immutable/nodes/26.Bqb00dxX.js.br +0 -0
  130. package/build/client/_app/immutable/nodes/26.Bqb00dxX.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/{28.pI-7Vnsb.js → 28.DAJOyPmp.js} +1 -1
  132. package/build/client/_app/immutable/nodes/28.DAJOyPmp.js.br +0 -0
  133. package/build/client/_app/immutable/nodes/28.DAJOyPmp.js.gz +0 -0
  134. package/build/client/_app/immutable/nodes/{3.6gLsJ5iP.js → 3.CU4V9yAo.js} +1 -1
  135. package/build/client/_app/immutable/nodes/3.CU4V9yAo.js.br +0 -0
  136. package/build/client/_app/immutable/nodes/3.CU4V9yAo.js.gz +0 -0
  137. package/build/client/_app/immutable/nodes/{4.uKPQRIJV.js → 4.CIKGpO-h.js} +1 -1
  138. package/build/client/_app/immutable/nodes/4.CIKGpO-h.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/4.CIKGpO-h.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/{6.CmppqGHA.js → 6.DV-LKwUi.js} +1 -1
  141. package/build/client/_app/immutable/nodes/6.DV-LKwUi.js.br +0 -0
  142. package/build/client/_app/immutable/nodes/6.DV-LKwUi.js.gz +0 -0
  143. package/build/client/_app/immutable/nodes/{7.DDZOqRAy.js → 7.tNzUdkoK.js} +1 -1
  144. package/build/client/_app/immutable/nodes/7.tNzUdkoK.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/{7.DDZOqRAy.js.gz → 7.tNzUdkoK.js.gz} +0 -0
  146. package/build/client/_app/immutable/nodes/{8.DH6CiiFf.js → 8._d4-szlB.js} +1 -1
  147. package/build/client/_app/immutable/nodes/8._d4-szlB.js.br +0 -0
  148. package/build/client/_app/immutable/nodes/8._d4-szlB.js.gz +0 -0
  149. package/build/client/_app/immutable/nodes/{9.jlOFlXh8.js → 9.CIkGA4QL.js} +1 -1
  150. package/build/client/_app/immutable/nodes/9.CIkGA4QL.js.br +0 -0
  151. package/build/client/_app/immutable/nodes/9.CIkGA4QL.js.gz +0 -0
  152. package/build/client/_app/version.json +1 -1
  153. package/build/client/_app/version.json.br +0 -0
  154. package/build/client/_app/version.json.gz +0 -0
  155. package/build/handler.js +4 -4
  156. package/build/index.js +4 -4
  157. package/build/server/chunks/chunks/{DecisionCard.js-DQls79M-.js → DecisionCard.js-Cim80Nvw.js} +2 -2
  158. package/build/server/chunks/chunks/{OpenDecision.js-1bnVd2CO.js → OpenDecision.js-BVAXM8UF.js} +3 -3
  159. package/build/server/chunks/chunks/{chat.svelte.js-t_sykiqk.js → chat.svelte.js-BcKQjH6T.js} +5 -1
  160. package/build/server/chunks/chunks/{detail.js-BHgTIrxq.js → detail.js-kIQeRhX8.js} +2 -2
  161. package/build/server/chunks/chunks/{feedback.js-CNjq89nb.js → feedback.js-Cn_aMwGt.js} +2 -2
  162. package/build/server/chunks/chunks/harness.js-DPojOlFJ.js +16 -0
  163. package/build/server/chunks/chunks/{insights.svelte.js-jvJ6zpkP.js → insights.svelte.js-CLCl4593.js} +4 -4
  164. package/build/server/chunks/chunks/{internal.js-DxO60Agy.js → internal.js--IrZpGIw.js} +3 -3
  165. package/build/server/chunks/chunks/{keychain.js-CTV5MMKd.js → keychain.js-EzFAr7ky.js} +2 -2
  166. package/build/server/chunks/chunks/{marketplace-service.js-DZ7N3g7i.js → marketplace-service.js-BWJLUgci.js} +2 -2
  167. package/build/server/chunks/chunks/{page.js-slDjdKdN.js → page.js-uCRgTfkr.js} +2 -2
  168. package/build/server/chunks/chunks/{previewhelper2.js-D62yPZ3-.js → previewhelper2.js-CheYey18.js} +2 -2
  169. package/build/server/chunks/chunks/{repo.js-CpMWC7Dl.js → repo.js-mwBuCebU.js} +2 -2
  170. package/build/server/chunks/chunks/{runtime.js-n2Nl0Kn0.js → runtime.js-DOQwJsyV.js} +2629 -935
  171. package/build/server/chunks/chunks/{service.js-BBKBSt-r.js → service.js-BhegRU14.js} +2 -2
  172. package/build/server/chunks/chunks/{service2.js-D8unm3Dr.js → service2.js-CjX60BFh.js} +24 -10
  173. package/build/server/chunks/chunks/{starter.js-BJtAaz_v.js → starter.js-BoD-v_RX.js} +2 -2
  174. package/build/server/chunks/chunks/{terminal.js-BckfZrAP.js → terminal.js-s8yEF1TY.js} +3 -1
  175. package/build/server/chunks/chunks/{view.js-DY3ke6NQ.js → view.js-DRvLRn9a.js} +2 -2
  176. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-DU337wCA.js → _server.ts.js-LjS85cY1.js} +6 -5
  177. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-DUjwvbDq.js → _server.ts.js-CPapFlxB.js} +3 -3
  178. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-fB_wI3kP.js → _server.ts.js-C5rpQOtz.js} +6 -5
  179. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-HZjTDOIW.js → _server.ts.js-Bh9CCsJR.js} +6 -5
  180. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-vtgE6dmd.js → _server.ts.js-B81tIgYM.js} +6 -5
  181. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CBUM_cHq.js → _server.ts.js-DJe3RKYn.js} +6 -5
  182. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-gqNm0NgZ.js → _server.ts.js-DrNM-EZz.js} +9 -5
  183. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DVTt9exZ.js → _server.ts.js-CyHX-fjj.js} +6 -5
  184. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-DI8pSLdx.js → _server.ts.js-BGNA3rRL.js} +6 -5
  185. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DwNKcPAZ.js → _server.ts.js-gxW-vjq6.js} +6 -5
  186. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-gn9Pb6xh.js → _server.ts.js-CjKZKlSx.js} +7 -6
  187. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-BsuIck0U.js → _server.ts.js-Bf6fufw1.js} +6 -5
  188. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-Du1j3gY1.js → _server.ts.js-CunTg6B4.js} +6 -5
  189. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-D5_z22cM.js → _server.ts.js-BFn0GxSV.js} +6 -5
  190. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-CqUodLtV.js → _server.ts.js-BPiDH1by.js} +6 -5
  191. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-Bqvpqc3W.js → _server.ts.js-CH_ZiSS9.js} +6 -5
  192. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-U1yy4XTd.js → _server.ts.js-CHeUHBaj.js} +6 -5
  193. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-Bt1HEbxQ.js → _server.ts.js-B6-h2R89.js} +6 -5
  194. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-B1QGwJJx.js → _server.ts.js-CtXL8XCq.js} +6 -5
  195. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-4D31QJkx.js → _server.ts.js-CdsJGtOe.js} +6 -5
  196. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-BB9t2sPI.js → _server.ts.js-yVkcjBkv.js} +6 -5
  197. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-C0lNGC_e.js → _server.ts.js-BLyJO_Mo.js} +7 -6
  198. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-BCucQ7kV.js → _server.ts.js-Dp9Lk4LX.js} +7 -6
  199. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-K051c2NK.js → _server.ts.js-BKYjzuX1.js} +5 -4
  200. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DXp7CBKJ.js → _server.ts.js-DXIA842d.js} +2 -2
  201. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-BZjRhE_E.js → _server.ts.js-DkhsnbSG.js} +6 -5
  202. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-C6pSTIZl.js → _server.ts.js-SeWa829w.js} +2 -2
  203. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CPTGODgJ.js → _server.ts.js-CIQPuCVw.js} +6 -5
  204. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-CYyhaWOu.js → _server.ts.js-DT0sbWwu.js} +2 -2
  205. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-LOfrDPqm.js → _server.ts.js-Cn2rbNUE.js} +2 -2
  206. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-CqJSn65A.js → _server.ts.js-D8cqx7e8.js} +7 -6
  207. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-vWLUvqe2.js → _server.ts.js-DNxzMqSL.js} +7 -6
  208. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-CIy3Yxnj.js → _server.ts.js-CMrMjFz3.js} +7 -6
  209. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-BXKekEzg.js → _server.ts.js-Dk4WI0lC.js} +2 -2
  210. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-DZnqmxa7.js → _server.ts.js-CybVxq0q.js} +6 -5
  211. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-clRCP6Vz.js → _server.ts.js-Du0F1uRC.js} +7 -6
  212. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-C0v3Eifj.js → _server.ts.js-DktLe6aY.js} +7 -6
  213. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-B1P26NiL.js → _server.ts.js-B3AFWOQ5.js} +7 -6
  214. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-_BWFybXT.js → _server.ts.js-CFZKkvHd.js} +7 -6
  215. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-DM_qs0_P.js → _server.ts.js-DOuE8mQe.js} +7 -6
  216. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-Cp4DC5RF.js → _server.ts.js-Dnqj-B1I.js} +7 -6
  217. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-CFQmNKZw.js → _server.ts.js-CsQ9Iy4e.js} +6 -5
  218. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-C0Hp3ghu.js → _server.ts.js-Q9_2hESc.js} +6 -5
  219. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-OI33JqAV.js → _server.ts.js-fJhkF-dq.js} +6 -5
  220. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-BOetbdrI.js → _server.ts.js-DE5Za2Qf.js} +6 -5
  221. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-BE02dpgR.js → _server.ts.js-B_Wi2EUQ.js} +7 -6
  222. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-eXiYz0dl.js → _server.ts.js-ESVAlaL0.js} +6 -5
  223. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-BzPQmqhd.js → _server.ts.js-BYen5YjB.js} +6 -5
  224. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-DernPNNa.js → _server.ts.js-D9JD2y98.js} +6 -5
  225. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CIJerTYj.js → _server.ts.js-BcZEsLxW.js} +6 -5
  226. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-wMw-B2LV.js → _server.ts.js-nEQ-LWc3.js} +6 -5
  227. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BQVOZ_2W.js → _server.ts.js-BglmY8Dv.js} +6 -5
  228. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-CBdZ3Hvx.js → _server.ts.js-Dcu4o_kg.js} +2 -2
  229. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-BjmmYFHq.js → _server.ts.js-D8DNzTCl.js} +2 -2
  230. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-DxsJBLJe.js → _server.ts.js-C88U185K.js} +2 -2
  231. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-DXYaC6o9.js → _server.ts.js-D5X3NXNQ.js} +6 -5
  232. package/build/server/chunks/entries/{hooks.server.js-CN-DQ0lm.js → hooks.server.js-BoVfKVBv.js} +6 -5
  233. package/build/server/chunks/entries/pages/{_layout.server.ts.js-B3IyG3tO.js → _layout.server.ts.js-DonkPB5v.js} +2 -2
  234. package/build/server/chunks/entries/pages/{_layout.svelte.js-ClwzCpuE.js → _layout.svelte.js-CuWnZ-US.js} +2 -2
  235. package/build/server/chunks/entries/pages/{_page.server.ts.js-DF3mUKXU.js → _page.server.ts.js-BPlndbwo.js} +2 -2
  236. package/build/server/chunks/entries/pages/{_page.svelte.js-DotNRhUC.js → _page.svelte.js-CGR2VowD.js} +33 -19
  237. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-BPsRMW1m.js → _page.server.ts.js-D0TSKupF.js} +2 -2
  238. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-CRoejRrt.js → _page.server.ts.js-DGxVR_vz.js} +2 -2
  239. package/build/server/chunks/entries/pages/deck/{_page.svelte.js-DK__ZtkS.js → _page.svelte.js-zqjb3tWK.js} +5 -5
  240. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-CEQlok_v.js → _page.server.ts.js-Ccs1E7eE.js} +2 -2
  241. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-aNzCSnrW.js → _page.server.ts.js-DdVNEwXK.js} +2 -2
  242. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-DYPjOXZ7.js → _page.server.ts.js-DJkL5LjM.js} +2 -2
  243. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-CvLRSeh7.js → _page.server.ts.js-zxQIlwfl.js} +2 -2
  244. package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-aP2FP_cG.js → _page.svelte.js-DLpzhD2s.js} +3 -3
  245. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-CF2qEBQz.js → _page.server.ts.js-XD-2cABX.js} +2 -2
  246. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-Drm6Ahc4.js → _page.server.ts.js-BgCyi1X-.js} +3 -3
  247. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-DdJMUWNL.js → _page.server.ts.js-fo0xabfK.js} +3 -3
  248. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-1GII3zKY.js → _page.server.ts.js-Cbg44XDV.js} +4 -4
  249. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-CVsOhaVz.js → _page.server.ts.js-BUp_Y-KL.js} +2 -2
  250. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-Cva09MAW.js → _page.server.ts.js-0-aDiI-u.js} +2 -2
  251. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-CMMEHMa0.js → _page.server.ts.js-DUYpwlCw.js} +2 -2
  252. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-CaBLC48A.js → _page.server.ts.js-B-EvG_LJ.js} +2 -2
  253. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-C80JIole.js → _page.server.ts.js-e1XEpYYO.js} +2 -2
  254. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-GcEMXNzE.js → _page.server.ts.js-DQlX1ZXD.js} +2 -2
  255. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-fmudFG1R.js → _page.server.ts.js-3vhPyRFz.js} +2 -2
  256. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-Ck0V4NqF.js → _page.server.ts.js-CmGgMlAh.js} +2 -2
  257. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-BT2aSao4.js → _page.server.ts.js-CcUv_Pl5.js} +3 -3
  258. package/build/server/chunks/entries/pages/setup/{_page.svelte.js-BvrzY0TN.js → _page.svelte.js-CB6DNUFE.js} +108 -85
  259. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DQ9XiVXC.js → _page.server.ts.js-BSp2WAoD.js} +3 -3
  260. package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-zRkAX1kt.js → _page.svelte.js-Cali_YuK.js} +4 -4
  261. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-DYUzrHEd.js → _page.server.ts.js-BUVzUDIr.js} +2 -2
  262. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-PjptcjBY.js → _page.server.ts.js-CthFCAvj.js} +2 -2
  263. package/build/server/chunks/{handler-DhhKWgIp.js → handler-CoNcksE3.js} +3 -3
  264. package/build/server/chunks/{index.js-utiPQsQj.js → index.js-DeIgBt_r.js} +2 -2
  265. package/build/server/chunks/{manifest.js-1v5Twa8d.js → manifest.js-DABDEm-u.js} +86 -86
  266. package/build/server/chunks/nodes/{0.js-t5p4uwR-.js → 0.js-YKoWN0t_.js} +10 -9
  267. package/build/server/chunks/nodes/{1.js-B23tX379.js → 1.js-BrhSX20y.js} +2 -2
  268. package/build/server/chunks/nodes/{10.js-BYgrUxes.js → 10.js-DfgINkv2.js} +2 -2
  269. package/build/server/chunks/nodes/{11.js-D8KeSOxn.js → 11.js-DiTSd3ll.js} +8 -7
  270. package/build/server/chunks/nodes/{12.js-CSqzXf2C.js → 12.js-50Nn94Ac.js} +9 -8
  271. package/build/server/chunks/nodes/{13.js-BucPbiJc.js → 13.js-Bqj2sWs_.js} +9 -8
  272. package/build/server/chunks/nodes/{14.js-D5KFW0LX.js → 14.js-Cv1hpyWZ.js} +10 -9
  273. package/build/server/chunks/nodes/{15.js-DMi0cMxP.js → 15.js-D7gELe63.js} +9 -8
  274. package/build/server/chunks/nodes/{16.js-garu2VVL.js → 16.js-DCHbFZQk.js} +6 -6
  275. package/build/server/chunks/nodes/{17.js-CIGvZ14P.js → 17.js-CRE1rbZ5.js} +2 -2
  276. package/build/server/chunks/nodes/{19.js-D0EE2SJv.js → 19.js-CFuW5rd2.js} +6 -6
  277. package/build/server/chunks/nodes/{2.js-CGs6HugM.js → 2.js-BgPLJqKL.js} +9 -8
  278. package/build/server/chunks/nodes/{20.js-CVajTuJ7.js → 20.js-DGixTdKt.js} +8 -7
  279. package/build/server/chunks/nodes/{21.js-C53DsYbm.js → 21.js-fW8cmY-P.js} +8 -7
  280. package/build/server/chunks/nodes/{22.js-IhEljvpJ.js → 22.js-BLhqsr4_.js} +8 -7
  281. package/build/server/chunks/nodes/{23.js-xMwn6OS_.js → 23.js-I9w_LkUL.js} +9 -8
  282. package/build/server/chunks/nodes/{24.js-Bf2yyWwh.js → 24.js-Dbyn5eyG.js} +4 -4
  283. package/build/server/chunks/nodes/{25.js-B4yvgFEW.js → 25.js-Dc-E-pmn.js} +10 -9
  284. package/build/server/chunks/nodes/{26.js-BgrkaBRi.js → 26.js-Cqr1BLCa.js} +10 -9
  285. package/build/server/chunks/nodes/{27.js-CmaLV07r.js → 27.js-JKZQuSb7.js} +8 -7
  286. package/build/server/chunks/nodes/{28.js-D5cRvkTM.js → 28.js-BN16VFpu.js} +8 -7
  287. package/build/server/chunks/nodes/{3.js-Dm2pmcK2.js → 3.js-CZln8kr1.js} +8 -7
  288. package/build/server/chunks/nodes/{4.js-C4ho5OJp.js → 4.js-mbQFO9SD.js} +9 -8
  289. package/build/server/chunks/nodes/{5.js-y4HoD1YR.js → 5.js-gufn1Eo1.js} +7 -6
  290. package/build/server/chunks/nodes/{6.js-CjlWBc3h.js → 6.js-Cdfpyr6S.js} +8 -7
  291. package/build/server/chunks/nodes/{7.js-Bu-qbDJ5.js → 7.js-DRJdiMQL.js} +8 -7
  292. package/build/server/chunks/nodes/{8.js-qv_Z5rCa.js → 8.js-B4stLJHw.js} +9 -8
  293. package/build/server/chunks/nodes/{9.js-txPQIe_t.js → 9.js-DYcjt0Hs.js} +2 -2
  294. package/dist/cli.js +404 -241
  295. package/dist/wh-vault.js +1 -1
  296. package/package.json +1 -1
  297. package/build/client/_app/immutable/assets/0.C7-9O7Er.css +0 -1
  298. package/build/client/_app/immutable/assets/0.C7-9O7Er.css.br +0 -0
  299. package/build/client/_app/immutable/assets/0.C7-9O7Er.css.gz +0 -0
  300. package/build/client/_app/immutable/chunks/60JlvdhQ.js.br +0 -0
  301. package/build/client/_app/immutable/chunks/60JlvdhQ.js.gz +0 -0
  302. package/build/client/_app/immutable/chunks/B-rYWQGG.js +0 -1
  303. package/build/client/_app/immutable/chunks/B-rYWQGG.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/B-rYWQGG.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/B597Cbe1.js.br +0 -0
  306. package/build/client/_app/immutable/chunks/B597Cbe1.js.gz +0 -0
  307. package/build/client/_app/immutable/chunks/BEKG1Stw.js.br +0 -0
  308. package/build/client/_app/immutable/chunks/BEKG1Stw.js.gz +0 -0
  309. package/build/client/_app/immutable/chunks/BPAziDlG.js.br +0 -0
  310. package/build/client/_app/immutable/chunks/BPAziDlG.js.gz +0 -0
  311. package/build/client/_app/immutable/chunks/BiiAyXOY.js.br +0 -0
  312. package/build/client/_app/immutable/chunks/BiiAyXOY.js.gz +0 -0
  313. package/build/client/_app/immutable/chunks/C69eHrL5.js.br +0 -0
  314. package/build/client/_app/immutable/chunks/C69eHrL5.js.gz +0 -0
  315. package/build/client/_app/immutable/chunks/CC5Ts_xe.js.br +0 -0
  316. package/build/client/_app/immutable/chunks/CC5Ts_xe.js.gz +0 -0
  317. package/build/client/_app/immutable/chunks/CPQbfMGI.js.br +0 -0
  318. package/build/client/_app/immutable/chunks/CPQbfMGI.js.gz +0 -0
  319. package/build/client/_app/immutable/chunks/CSntU4ww.js.br +0 -0
  320. package/build/client/_app/immutable/chunks/CSntU4ww.js.gz +0 -0
  321. package/build/client/_app/immutable/chunks/Cbm0yS9E.js.br +0 -0
  322. package/build/client/_app/immutable/chunks/Cbm0yS9E.js.gz +0 -0
  323. package/build/client/_app/immutable/chunks/ChjkQemt.js.br +0 -0
  324. package/build/client/_app/immutable/chunks/ChjkQemt.js.gz +0 -0
  325. package/build/client/_app/immutable/chunks/CvZklcJq.js.br +0 -0
  326. package/build/client/_app/immutable/chunks/CvZklcJq.js.gz +0 -0
  327. package/build/client/_app/immutable/chunks/DSAFUgJn.js.br +0 -0
  328. package/build/client/_app/immutable/chunks/DSAFUgJn.js.gz +0 -0
  329. package/build/client/_app/immutable/chunks/DVeiiKip.js.br +0 -0
  330. package/build/client/_app/immutable/chunks/DVeiiKip.js.gz +0 -0
  331. package/build/client/_app/immutable/chunks/DjCsArDj.js.br +0 -0
  332. package/build/client/_app/immutable/chunks/DjCsArDj.js.gz +0 -0
  333. package/build/client/_app/immutable/chunks/DnBZO8Il.js.br +0 -0
  334. package/build/client/_app/immutable/chunks/DnBZO8Il.js.gz +0 -0
  335. package/build/client/_app/immutable/chunks/Gbvs-EZ4.js.br +0 -1
  336. package/build/client/_app/immutable/chunks/Gbvs-EZ4.js.gz +0 -0
  337. package/build/client/_app/immutable/chunks/IKqZ9EUq.js.br +0 -0
  338. package/build/client/_app/immutable/chunks/IKqZ9EUq.js.gz +0 -0
  339. package/build/client/_app/immutable/chunks/rZ2-WaWD.js +0 -2
  340. package/build/client/_app/immutable/chunks/rZ2-WaWD.js.br +0 -0
  341. package/build/client/_app/immutable/chunks/rZ2-WaWD.js.gz +0 -0
  342. package/build/client/_app/immutable/chunks/wU4H_Xw3.js +0 -1
  343. package/build/client/_app/immutable/chunks/wU4H_Xw3.js.br +0 -0
  344. package/build/client/_app/immutable/chunks/wU4H_Xw3.js.gz +0 -0
  345. package/build/client/_app/immutable/entry/app.ERrI8AQ5.js +0 -2
  346. package/build/client/_app/immutable/entry/app.ERrI8AQ5.js.br +0 -0
  347. package/build/client/_app/immutable/entry/app.ERrI8AQ5.js.gz +0 -0
  348. package/build/client/_app/immutable/entry/start.Dw33pepJ.js +0 -1
  349. package/build/client/_app/immutable/entry/start.Dw33pepJ.js.br +0 -0
  350. package/build/client/_app/immutable/entry/start.Dw33pepJ.js.gz +0 -0
  351. package/build/client/_app/immutable/nodes/0.CPXJEdVC.js.br +0 -0
  352. package/build/client/_app/immutable/nodes/0.CPXJEdVC.js.gz +0 -0
  353. package/build/client/_app/immutable/nodes/1.BsHjzKoN.js.br +0 -0
  354. package/build/client/_app/immutable/nodes/1.BsHjzKoN.js.gz +0 -0
  355. package/build/client/_app/immutable/nodes/10.JvkeSj5x.js.br +0 -0
  356. package/build/client/_app/immutable/nodes/10.JvkeSj5x.js.gz +0 -0
  357. package/build/client/_app/immutable/nodes/11.C9viE404.js.br +0 -0
  358. package/build/client/_app/immutable/nodes/11.C9viE404.js.gz +0 -0
  359. package/build/client/_app/immutable/nodes/12.BWVqITW1.js.br +0 -0
  360. package/build/client/_app/immutable/nodes/12.BWVqITW1.js.gz +0 -0
  361. package/build/client/_app/immutable/nodes/13.D0u53Jpp.js.br +0 -0
  362. package/build/client/_app/immutable/nodes/13.D0u53Jpp.js.gz +0 -0
  363. package/build/client/_app/immutable/nodes/14.CNClDl2g.js.br +0 -0
  364. package/build/client/_app/immutable/nodes/14.CNClDl2g.js.gz +0 -0
  365. package/build/client/_app/immutable/nodes/15.BJShjxpx.js.br +0 -0
  366. package/build/client/_app/immutable/nodes/15.BJShjxpx.js.gz +0 -0
  367. package/build/client/_app/immutable/nodes/16.Bb3PPsch.js.br +0 -0
  368. package/build/client/_app/immutable/nodes/16.Bb3PPsch.js.gz +0 -0
  369. package/build/client/_app/immutable/nodes/17.COjMgZvi.js.br +0 -0
  370. package/build/client/_app/immutable/nodes/17.COjMgZvi.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/19.BbeSGQyg.js.br +0 -0
  372. package/build/client/_app/immutable/nodes/19.BbeSGQyg.js.gz +0 -0
  373. package/build/client/_app/immutable/nodes/2.CBjl08IG.js +0 -25
  374. package/build/client/_app/immutable/nodes/2.CBjl08IG.js.br +0 -0
  375. package/build/client/_app/immutable/nodes/2.CBjl08IG.js.gz +0 -0
  376. package/build/client/_app/immutable/nodes/20.2D2FCLQq.js.br +0 -0
  377. package/build/client/_app/immutable/nodes/20.2D2FCLQq.js.gz +0 -0
  378. package/build/client/_app/immutable/nodes/21.xQ_KUjAi.js.br +0 -0
  379. package/build/client/_app/immutable/nodes/21.xQ_KUjAi.js.gz +0 -0
  380. package/build/client/_app/immutable/nodes/22.DuszjIrq.js.br +0 -0
  381. package/build/client/_app/immutable/nodes/22.DuszjIrq.js.gz +0 -0
  382. package/build/client/_app/immutable/nodes/23.CKoLeDhM.js.br +0 -0
  383. package/build/client/_app/immutable/nodes/23.CKoLeDhM.js.gz +0 -0
  384. package/build/client/_app/immutable/nodes/24.CH1byq7o.js.br +0 -0
  385. package/build/client/_app/immutable/nodes/24.CH1byq7o.js.gz +0 -0
  386. package/build/client/_app/immutable/nodes/25.BFrDgbR3.js +0 -12
  387. package/build/client/_app/immutable/nodes/25.BFrDgbR3.js.br +0 -0
  388. package/build/client/_app/immutable/nodes/25.BFrDgbR3.js.gz +0 -0
  389. package/build/client/_app/immutable/nodes/26.CHB__H6C.js.br +0 -0
  390. package/build/client/_app/immutable/nodes/26.CHB__H6C.js.gz +0 -0
  391. package/build/client/_app/immutable/nodes/28.pI-7Vnsb.js.br +0 -0
  392. package/build/client/_app/immutable/nodes/28.pI-7Vnsb.js.gz +0 -0
  393. package/build/client/_app/immutable/nodes/3.6gLsJ5iP.js.br +0 -0
  394. package/build/client/_app/immutable/nodes/3.6gLsJ5iP.js.gz +0 -0
  395. package/build/client/_app/immutable/nodes/4.uKPQRIJV.js.br +0 -0
  396. package/build/client/_app/immutable/nodes/4.uKPQRIJV.js.gz +0 -0
  397. package/build/client/_app/immutable/nodes/6.CmppqGHA.js.br +0 -0
  398. package/build/client/_app/immutable/nodes/6.CmppqGHA.js.gz +0 -0
  399. package/build/client/_app/immutable/nodes/7.DDZOqRAy.js.br +0 -0
  400. package/build/client/_app/immutable/nodes/8.DH6CiiFf.js.br +0 -0
  401. package/build/client/_app/immutable/nodes/8.DH6CiiFf.js.gz +0 -0
  402. package/build/client/_app/immutable/nodes/9.jlOFlXh8.js.br +0 -0
  403. package/build/client/_app/immutable/nodes/9.jlOFlXh8.js.gz +0 -0
@@ -1,2 +1,2 @@
1
- import"./DsnmJJEf.js";import{l as vt,p as pt,m as j,q as mt,u as ft,f as we,h as d,o as b,s,g as e,r as i,t as y,d as g,a as l,b as _t,i as O,v as n,n as W,w as L,x as Ue,y as _e,c as p,aa as ue,j as gt}from"./D46tdsTs.js";import{i as P}from"./DWAM9c1z.js";import{r as Ee,s as K,e as ke,i as xt,b as ht,c as bt}from"./BLivoCTk.js";import{a as yt}from"./Cqz3pSYE.js";import{p as Ze}from"./Gbvs-EZ4.js";import{S as $t}from"./BXN538J3.js";import{B as U}from"./oiLSZkWa.js";import{L as wt,K as He}from"./BE305dTg.js";import{C as kt}from"./CrXwYZhk.js";import{s as jt,r as St}from"./z5Xef_-v.js";import{I as zt}from"./B4gzexCn.js";import{E as At}from"./Cfp1M-Wz.js";const Pt=/https?:\/\/[^\s<>"'`]+/g,Et=/[.,;:!?)\]}'"*]+$/;function ha(C){return[...C.matchAll(Pt)].map(B=>B[0].replace(Et,""))}var Nt=new Set(["$$slots","$$events","$$legacy"]);function Rt(C,B){let ge=St(B,Nt);const xe={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"}]]};zt(C,jt(()=>ge,{get icon(){return xe}}))}const Tt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,ba=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function Ne(C){return C?.where??"the vault"}function Ct(C){return C.length<=1?C.join(""):`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`}var Dt=p('<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>'),Lt=p('<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>'),It=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Vt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Mt=p('<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>'),Ot=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),Wt=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Kt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Ut=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Zt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ht=p('<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>'),Bt=p('<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>'),Ft=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Gt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Jt=p('<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>'),Yt=p('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),qt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Qt=p('<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>'),Xt=p('<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>'),ea=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),ta=p('<a class="text-sea hover:underline"> </a>'),aa=p('<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>'),ra=p('<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),sa=p('<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 na(C,B){pt(B,!0);const ge=(t,a=ue,r=ue,o=ue)=>{var u=Dt(),_=d(u);Ee(_);var c=s(_,2),S=d(c);{var x=m=>{Rt(m,{class:"size-4"})},h=m=>{At(m,{class:"size-4"})};P(S,m=>{e(Z)?m(x):m(h,-1)})}i(c),i(u),y(m=>{K(_,"id",a()),K(_,"type",e(Z)?"text":"password"),ht(_,m),_.disabled=e($),K(c,"aria-label",e(Z)?"Hide what you typed":"Show what you typed"),K(c,"aria-pressed",e(Z))},[()=>r()()]),_e("input",_,m=>o()(m.currentTarget.value)),_e("click",c,()=>n(Z,!e(Z))),l(t,u)},xe=(t,a=ue,r=ue,o=ue)=>{var u=gt(),_=we(u);{var c=x=>{var h=It();ke(h,20,()=>e(Re),m=>m,(m,I)=>{var H=Lt(),f=d(H);Ee(f);var w=s(f,2),E=b(w,!0);i(H),y(z=>{bt(f,z),f.disabled=e($),g(E,I)},[()=>r().includes(I)]),_e("change",f,z=>{const F=z.currentTarget;o()(I,F.checked,F)}),l(m,H)}),i(h),y(()=>K(h,"aria-label",a())),l(x,h)},S=x=>{var h=Vt();l(x,h)};P(_,x=>{e(Re).length?x(c):x(S,-1)})}l(t,u)},ce=O(()=>B.data);let he=j(null);const ve=O(()=>{const t=B.entry.content.available?Date.parse(B.entry.content.observedAt??""):NaN;return e(he)&&!(t>e(he).at)?e(he).secrets:e(ce).secrets}),Re=O(()=>{const t=(Ze.data.fleet?.projects??[]).map(r=>r.id),a=e(ve).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let J=j(null),ae=j(!1),pe=j(null),me=j(null),$=j(!1),re=j(null),se=j(null),Y=j(""),q=j(""),ne=j(mt([])),Z=j(!1),oe=j(""),Q=j(""),le=j(null);const fe=O(()=>e(le)?.canStore===!1);function Te(){fetch("/api/vault").then(t=>t.ok?t.json():null).then(t=>{t&&n(le,t,!0)}).catch(()=>{})}ft(Te);function je(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function be(){n(q,""),n(Q,""),n(Z,!1)}function Ce(){n(Y,""),n(ne,[],!0),n(oe,""),n(re,null),n(se,null),be(),n(ae,!0)}function Be(){n(ae,!1),be()}async function ye(t){n($,!0),n(se,null),n(re,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[$t]:Ze.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(he,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(re,r?.message??"Done.",!0),!0):(n(se,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),a.status===503&&Te(),!1)}catch{return n(se,"Wheelhouse could not be reached. Try again."),!1}finally{n($,!1)}}async function Fe(t){if(t.preventDefault(),!Tt.test(e(Y))){n(oe,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(q))return;const a={action:"set",name:e(Y),value:e(q),projects:e(ne)};n(q,""),n(Z,!1),await ye(a)&&(n(ae,!1),n(J,e(Y),!0))}async function Ge(t,a){if(t.preventDefault(),!e(Q))return;const r={action:"set",name:a.name,value:e(Q),projects:[]};n(Q,""),n(Z,!1),await ye(r)&&n(pe,null)}async function Je(t,a,r,o){await ye({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ye(t){await ye({action:"remove",name:t.name})&&(n(me,null),n(J,null))}function qe(t){n(J,e(J)===t?null:t,!0),n(me,null),n(pe,null),be()}var De=sa(),Se=we(De),Le=d(Se),Qe=b(Le),Xe=s(Le,2);{var et=t=>{{let a=O(()=>e($)||e(fe));U(t,{onclick:Ce,get disabled(){return e(a)},children:(r,o)=>{W();var u=L("Add a secret");l(r,u)},$$slots:{default:!0}})}};P(Xe,t=>{e(ve).length&&!e(ae)&&t(et)})}i(Se);var Ie=s(Se,2);{var tt=t=>{var a=Mt(),r=b(a,!0);y(()=>g(r,e(le)?.reason??"The vault cannot store a secret on this computer.")),l(t,a)};P(Ie,t=>{e(fe)&&t(tt)})}var Ve=s(Ie,2);{var at=t=>{var a=Ot(),r=b(a,!0);y(()=>g(r,e(re))),l(t,a)};P(Ve,t=>{e(re)&&t(at)})}var Me=s(Ve,2);{var rt=t=>{var a=Wt(),r=b(a,!0);y(()=>g(r,e(se))),l(t,a)};P(Me,t=>{e(se)&&t(rt)})}var Oe=s(Me,2);{var st=t=>{var a=Kt(),r=b(a,!0);y(()=>g(r,e(ce).problem)),l(t,a)};P(Oe,t=>{e(ce).problem&&t(st)})}var We=s(Oe,2);{var nt=t=>{var a=Ht(),r=s(d(a),4),o=d(r),u=s(d(o),2);Ee(u);var _=s(u,2);{var c=v=>{var A=Ut(),D=b(A,!0);y(()=>g(D,e(oe))),l(v,A)},S=v=>{var A=Zt();l(v,A)};P(_,v=>{e(oe)?v(c):v(S,-1)})}i(o);var x=s(o,2),h=s(d(x),2);ge(h,()=>"vault-value",()=>()=>e(q),()=>v=>n(q,v,!0));var m=s(h,2),I=d(m);wt(I,{class:"mt-px size-3.5 shrink-0"});var H=s(I);i(m),i(x);var f=s(x,2),w=s(d(f),4);xe(w,()=>"Projects that may use it",()=>e(ne),()=>(v,A)=>{n(ne,A?[...e(ne),v]:e(ne).filter(D=>D!==v),!0)}),i(f);var E=s(f,2),z=d(E);{let v=O(()=>e($)||!e(Y)||!e(q)||e(fe));U(z,{type:"submit",get disabled(){return e(v)},children:(A,D)=>{W();var ie=L("Store secret");l(A,ie)},$$slots:{default:!0}})}var F=s(z,2);U(F,{type:"button",variant:"outline",get disabled(){return e($)},onclick:Be,children:(v,A)=>{W();var D=L("Cancel");l(v,D)},$$slots:{default:!0}}),i(E),i(r),i(a),y(v=>{u.disabled=e($),K(u,"aria-invalid",e(oe)?"true":void 0),g(H,` Goes straight into ${v??""}. Wheelhouse cannot show it again.`)},[()=>Ne(e(le))]),Ue("submit",r,Fe),_e("input",u,()=>n(oe,"")),yt(u,()=>e(Y),v=>n(Y,v)),l(t,a)};P(We,t=>{e(ae)&&t(nt)})}var Ke=s(We,2);{var ot=t=>{var a=Bt(),r=d(a);He(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);{let u=O(()=>e($)||e(fe));U(o,{class:"mt-5",onclick:Ce,get disabled(){return e(u)},children:(_,c)=>{W();var S=L("Add a secret");l(_,S)},$$slots:{default:!0}})}i(a),l(t,a)},lt=t=>{var a=ea();ke(a,21,()=>e(ve),r=>r.name,(r,o)=>{var u=Xt(),_=d(u),c=d(_);He(c,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var S=s(c,2),x=b(S,!0),h=s(S,2);ke(h,20,()=>e(o).projects,f=>f,(f,w)=>{var E=Ft(),z=b(E,!0);y(()=>g(z,w)),l(f,E)},f=>{var w=Gt();l(f,w)}),i(h);var m=s(h,2);{let f=O(()=>e(J)===e(o).name?"rotate-90":"");kt(m,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(f)??""}`},"aria-hidden":"true"})}i(_);var I=s(_,2);{var H=f=>{var w=Qt(),E=d(w),z=s(d(E),2);xe(z,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(N,k,R)=>Je(e(o),N,k,R));var F=s(z,2),v=b(F,!0);i(E);var A=s(E,2),D=d(A),ie=d(D),V=s(ie,2);i(D);var M=s(D,2);{var ze=N=>{var k=Jt(),R=s(d(k),2);ge(R,()=>"vault-replace",()=>()=>e(Q),()=>T=>n(Q,T,!0));var X=s(R,2),G=d(X);{let T=O(()=>e($)||!e(Q));U(G,{type:"submit",size:"sm",get disabled(){return e(T)},children:(ee,$e)=>{W();var te=L("Replace");l(ee,te)},$$slots:{default:!0}})}var de=s(G,2);U(de,{type:"button",size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>{n(pe,null),be()},children:(T,ee)=>{W();var $e=L("Cancel");l(T,$e)},$$slots:{default:!0}}),i(X),i(k),Ue("submit",k,T=>Ge(T,e(o))),l(N,k)},Ae=N=>{var k=Yt(),R=we(k),X=s(d(R)),G=b(X,!0),de=s(X);i(R);var T=s(R,2),ee=d(T);U(ee,{size:"sm",variant:"destructive",get disabled(){return e($)},onclick:()=>Ye(e(o)),children:(te,ct)=>{W();var Pe=L("Remove");l(te,Pe)},$$slots:{default:!0}});var $e=s(ee,2);U($e,{size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>n(me,null),children:(te,ct)=>{W();var Pe=L("Keep it");l(te,Pe)},$$slots:{default:!0}}),i(T),y(te=>{g(G,e(o).name),g(de,`? Its value is deleted from ${te??""} and every project loses it. This cannot be undone.`)},[()=>Ne(e(le))]),l(N,k)},ut=N=>{var k=qt(),R=d(k);{let G=O(()=>e($)||e(fe));U(R,{size:"sm",variant:"outline",get disabled(){return e(G)},onclick:()=>{n(pe,e(o).name,!0),n(re,null)},children:(de,T)=>{W();var ee=L("Replace value");l(de,ee)},$$slots:{default:!0}})}var X=s(R,2);U(X,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e($)},onclick:()=>n(me,e(o).name,!0),children:(G,de)=>{W();var T=L("Remove…");l(G,T)},$$slots:{default:!0}}),i(k),l(N,k)};P(M,N=>{e(pe)===e(o).name?N(ze):e(me)===e(o).name?N(Ae,1):N(ut,-1)})}i(A),i(w),y((N,k,R)=>{K(w,"id",`vault-${e(o).name??""}`),g(v,N),g(ie,`Value set ${k??""}`),g(V,`Last used ${R??""}`)},[()=>e(o).projects.length?`A command ${Ct(e(o).projects)} ${e(o).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.",()=>je(e(o).updatedAt),()=>je(e(o).lastUsedAt)]),l(f,w)};P(I,f=>{e(J)===e(o).name&&f(H)})}i(u),y(()=>{K(_,"aria-expanded",e(J)===e(o).name),K(_,"aria-controls",`vault-${e(o).name??""}`),g(x,e(o).name)}),_e("click",_,()=>qe(e(o).name)),l(r,u)}),i(a),l(t,a)};P(Ke,t=>{!e(ve).length&&!e(ae)?t(ot):e(ve).length&&t(lt,1)})}var it=s(Ke,2);{var dt=t=>{var a=ra(),r=s(we(a),2),o=d(r),u=s(d(o));ke(u,21,()=>e(ce).used,xt,(_,c)=>{var S=aa(),x=d(S),h=b(x,!0),m=s(x),I=d(m);{var H=V=>{var M=ta(),ze=b(M,!0);y(Ae=>{K(M,"href",`/tasks/${Ae??""}`),g(ze,e(c).task)},[()=>encodeURIComponent(e(c).task)]),l(V,M)},f=V=>{var M=L();y(()=>g(M,e(c).task??"—")),l(V,M)};P(I,V=>{e(c).task&&e(c).taskKnown?V(H):V(f,-1)})}i(m);var w=s(m),E=b(w,!0),z=s(w),F=b(z,!0),v=s(z),A=b(v,!0),D=s(v),ie=b(D,!0);i(S),y((V,M)=>{g(h,V),g(E,e(c).project??"—"),g(F,M),g(A,e(c).program??"—"),g(ie,e(c).result)},[()=>je(e(c).at),()=>e(c).names.join(", ")||"—"]),l(_,S)}),i(u),i(o),i(r),l(t,a)};P(it,t=>{e(ce).used.length&&t(dt)})}y(t=>g(Qe,`Secrets your projects can use by name. Values stay in ${t??""}; Wheelhouse never
1
+ import"./DsnmJJEf.js";import{l as vt,p as pt,m as j,q as mt,u as ft,f as we,h as d,o as b,s,g as e,r as i,t as y,d as g,a as l,b as _t,i as O,v as n,n as W,w as L,x as Ue,y as _e,c as p,aa as ue,j as gt}from"./D46tdsTs.js";import{i as P}from"./DWAM9c1z.js";import{r as Ee,s as K,e as ke,i as xt,b as ht,c as bt}from"./BLivoCTk.js";import{a as yt}from"./Cqz3pSYE.js";import{p as Ze}from"./s_exGbLS.js";import{S as $t}from"./BXN538J3.js";import{B as U}from"./oiLSZkWa.js";import{L as wt,K as He}from"./BE305dTg.js";import{C as kt}from"./CrXwYZhk.js";import{s as jt,r as St}from"./z5Xef_-v.js";import{I as zt}from"./B4gzexCn.js";import{E as At}from"./Cfp1M-Wz.js";const Pt=/https?:\/\/[^\s<>"'`]+/g,Et=/[.,;:!?)\]}'"*]+$/;function ha(C){return[...C.matchAll(Pt)].map(B=>B[0].replace(Et,""))}var Nt=new Set(["$$slots","$$events","$$legacy"]);function Rt(C,B){let ge=St(B,Nt);const xe={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"}]]};zt(C,jt(()=>ge,{get icon(){return xe}}))}const Tt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,ba=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function Ne(C){return C?.where??"the vault"}function Ct(C){return C.length<=1?C.join(""):`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`}var Dt=p('<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>'),Lt=p('<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>'),It=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Vt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Mt=p('<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>'),Ot=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),Wt=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Kt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Ut=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Zt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ht=p('<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>'),Bt=p('<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>'),Ft=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Gt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Jt=p('<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>'),Yt=p('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),qt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Qt=p('<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>'),Xt=p('<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>'),ea=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),ta=p('<a class="text-sea hover:underline"> </a>'),aa=p('<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>'),ra=p('<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),sa=p('<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 na(C,B){pt(B,!0);const ge=(t,a=ue,r=ue,o=ue)=>{var u=Dt(),_=d(u);Ee(_);var c=s(_,2),S=d(c);{var x=m=>{Rt(m,{class:"size-4"})},h=m=>{At(m,{class:"size-4"})};P(S,m=>{e(Z)?m(x):m(h,-1)})}i(c),i(u),y(m=>{K(_,"id",a()),K(_,"type",e(Z)?"text":"password"),ht(_,m),_.disabled=e($),K(c,"aria-label",e(Z)?"Hide what you typed":"Show what you typed"),K(c,"aria-pressed",e(Z))},[()=>r()()]),_e("input",_,m=>o()(m.currentTarget.value)),_e("click",c,()=>n(Z,!e(Z))),l(t,u)},xe=(t,a=ue,r=ue,o=ue)=>{var u=gt(),_=we(u);{var c=x=>{var h=It();ke(h,20,()=>e(Re),m=>m,(m,I)=>{var H=Lt(),f=d(H);Ee(f);var w=s(f,2),E=b(w,!0);i(H),y(z=>{bt(f,z),f.disabled=e($),g(E,I)},[()=>r().includes(I)]),_e("change",f,z=>{const F=z.currentTarget;o()(I,F.checked,F)}),l(m,H)}),i(h),y(()=>K(h,"aria-label",a())),l(x,h)},S=x=>{var h=Vt();l(x,h)};P(_,x=>{e(Re).length?x(c):x(S,-1)})}l(t,u)},ce=O(()=>B.data);let he=j(null);const ve=O(()=>{const t=B.entry.content.available?Date.parse(B.entry.content.observedAt??""):NaN;return e(he)&&!(t>e(he).at)?e(he).secrets:e(ce).secrets}),Re=O(()=>{const t=(Ze.data.fleet?.projects??[]).map(r=>r.id),a=e(ve).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let J=j(null),ae=j(!1),pe=j(null),me=j(null),$=j(!1),re=j(null),se=j(null),Y=j(""),q=j(""),ne=j(mt([])),Z=j(!1),oe=j(""),Q=j(""),le=j(null);const fe=O(()=>e(le)?.canStore===!1);function Te(){fetch("/api/vault").then(t=>t.ok?t.json():null).then(t=>{t&&n(le,t,!0)}).catch(()=>{})}ft(Te);function je(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function be(){n(q,""),n(Q,""),n(Z,!1)}function Ce(){n(Y,""),n(ne,[],!0),n(oe,""),n(re,null),n(se,null),be(),n(ae,!0)}function Be(){n(ae,!1),be()}async function ye(t){n($,!0),n(se,null),n(re,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[$t]:Ze.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(he,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(re,r?.message??"Done.",!0),!0):(n(se,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),a.status===503&&Te(),!1)}catch{return n(se,"Wheelhouse could not be reached. Try again."),!1}finally{n($,!1)}}async function Fe(t){if(t.preventDefault(),!Tt.test(e(Y))){n(oe,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(q))return;const a={action:"set",name:e(Y),value:e(q),projects:e(ne)};n(q,""),n(Z,!1),await ye(a)&&(n(ae,!1),n(J,e(Y),!0))}async function Ge(t,a){if(t.preventDefault(),!e(Q))return;const r={action:"set",name:a.name,value:e(Q),projects:[]};n(Q,""),n(Z,!1),await ye(r)&&n(pe,null)}async function Je(t,a,r,o){await ye({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ye(t){await ye({action:"remove",name:t.name})&&(n(me,null),n(J,null))}function qe(t){n(J,e(J)===t?null:t,!0),n(me,null),n(pe,null),be()}var De=sa(),Se=we(De),Le=d(Se),Qe=b(Le),Xe=s(Le,2);{var et=t=>{{let a=O(()=>e($)||e(fe));U(t,{onclick:Ce,get disabled(){return e(a)},children:(r,o)=>{W();var u=L("Add a secret");l(r,u)},$$slots:{default:!0}})}};P(Xe,t=>{e(ve).length&&!e(ae)&&t(et)})}i(Se);var Ie=s(Se,2);{var tt=t=>{var a=Mt(),r=b(a,!0);y(()=>g(r,e(le)?.reason??"The vault cannot store a secret on this computer.")),l(t,a)};P(Ie,t=>{e(fe)&&t(tt)})}var Ve=s(Ie,2);{var at=t=>{var a=Ot(),r=b(a,!0);y(()=>g(r,e(re))),l(t,a)};P(Ve,t=>{e(re)&&t(at)})}var Me=s(Ve,2);{var rt=t=>{var a=Wt(),r=b(a,!0);y(()=>g(r,e(se))),l(t,a)};P(Me,t=>{e(se)&&t(rt)})}var Oe=s(Me,2);{var st=t=>{var a=Kt(),r=b(a,!0);y(()=>g(r,e(ce).problem)),l(t,a)};P(Oe,t=>{e(ce).problem&&t(st)})}var We=s(Oe,2);{var nt=t=>{var a=Ht(),r=s(d(a),4),o=d(r),u=s(d(o),2);Ee(u);var _=s(u,2);{var c=v=>{var A=Ut(),D=b(A,!0);y(()=>g(D,e(oe))),l(v,A)},S=v=>{var A=Zt();l(v,A)};P(_,v=>{e(oe)?v(c):v(S,-1)})}i(o);var x=s(o,2),h=s(d(x),2);ge(h,()=>"vault-value",()=>()=>e(q),()=>v=>n(q,v,!0));var m=s(h,2),I=d(m);wt(I,{class:"mt-px size-3.5 shrink-0"});var H=s(I);i(m),i(x);var f=s(x,2),w=s(d(f),4);xe(w,()=>"Projects that may use it",()=>e(ne),()=>(v,A)=>{n(ne,A?[...e(ne),v]:e(ne).filter(D=>D!==v),!0)}),i(f);var E=s(f,2),z=d(E);{let v=O(()=>e($)||!e(Y)||!e(q)||e(fe));U(z,{type:"submit",get disabled(){return e(v)},children:(A,D)=>{W();var ie=L("Store secret");l(A,ie)},$$slots:{default:!0}})}var F=s(z,2);U(F,{type:"button",variant:"outline",get disabled(){return e($)},onclick:Be,children:(v,A)=>{W();var D=L("Cancel");l(v,D)},$$slots:{default:!0}}),i(E),i(r),i(a),y(v=>{u.disabled=e($),K(u,"aria-invalid",e(oe)?"true":void 0),g(H,` Goes straight into ${v??""}. Wheelhouse cannot show it again.`)},[()=>Ne(e(le))]),Ue("submit",r,Fe),_e("input",u,()=>n(oe,"")),yt(u,()=>e(Y),v=>n(Y,v)),l(t,a)};P(We,t=>{e(ae)&&t(nt)})}var Ke=s(We,2);{var ot=t=>{var a=Bt(),r=d(a);He(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);{let u=O(()=>e($)||e(fe));U(o,{class:"mt-5",onclick:Ce,get disabled(){return e(u)},children:(_,c)=>{W();var S=L("Add a secret");l(_,S)},$$slots:{default:!0}})}i(a),l(t,a)},lt=t=>{var a=ea();ke(a,21,()=>e(ve),r=>r.name,(r,o)=>{var u=Xt(),_=d(u),c=d(_);He(c,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var S=s(c,2),x=b(S,!0),h=s(S,2);ke(h,20,()=>e(o).projects,f=>f,(f,w)=>{var E=Ft(),z=b(E,!0);y(()=>g(z,w)),l(f,E)},f=>{var w=Gt();l(f,w)}),i(h);var m=s(h,2);{let f=O(()=>e(J)===e(o).name?"rotate-90":"");kt(m,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(f)??""}`},"aria-hidden":"true"})}i(_);var I=s(_,2);{var H=f=>{var w=Qt(),E=d(w),z=s(d(E),2);xe(z,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(N,k,R)=>Je(e(o),N,k,R));var F=s(z,2),v=b(F,!0);i(E);var A=s(E,2),D=d(A),ie=d(D),V=s(ie,2);i(D);var M=s(D,2);{var ze=N=>{var k=Jt(),R=s(d(k),2);ge(R,()=>"vault-replace",()=>()=>e(Q),()=>T=>n(Q,T,!0));var X=s(R,2),G=d(X);{let T=O(()=>e($)||!e(Q));U(G,{type:"submit",size:"sm",get disabled(){return e(T)},children:(ee,$e)=>{W();var te=L("Replace");l(ee,te)},$$slots:{default:!0}})}var de=s(G,2);U(de,{type:"button",size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>{n(pe,null),be()},children:(T,ee)=>{W();var $e=L("Cancel");l(T,$e)},$$slots:{default:!0}}),i(X),i(k),Ue("submit",k,T=>Ge(T,e(o))),l(N,k)},Ae=N=>{var k=Yt(),R=we(k),X=s(d(R)),G=b(X,!0),de=s(X);i(R);var T=s(R,2),ee=d(T);U(ee,{size:"sm",variant:"destructive",get disabled(){return e($)},onclick:()=>Ye(e(o)),children:(te,ct)=>{W();var Pe=L("Remove");l(te,Pe)},$$slots:{default:!0}});var $e=s(ee,2);U($e,{size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>n(me,null),children:(te,ct)=>{W();var Pe=L("Keep it");l(te,Pe)},$$slots:{default:!0}}),i(T),y(te=>{g(G,e(o).name),g(de,`? Its value is deleted from ${te??""} and every project loses it. This cannot be undone.`)},[()=>Ne(e(le))]),l(N,k)},ut=N=>{var k=qt(),R=d(k);{let G=O(()=>e($)||e(fe));U(R,{size:"sm",variant:"outline",get disabled(){return e(G)},onclick:()=>{n(pe,e(o).name,!0),n(re,null)},children:(de,T)=>{W();var ee=L("Replace value");l(de,ee)},$$slots:{default:!0}})}var X=s(R,2);U(X,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e($)},onclick:()=>n(me,e(o).name,!0),children:(G,de)=>{W();var T=L("Remove…");l(G,T)},$$slots:{default:!0}}),i(k),l(N,k)};P(M,N=>{e(pe)===e(o).name?N(ze):e(me)===e(o).name?N(Ae,1):N(ut,-1)})}i(A),i(w),y((N,k,R)=>{K(w,"id",`vault-${e(o).name??""}`),g(v,N),g(ie,`Value set ${k??""}`),g(V,`Last used ${R??""}`)},[()=>e(o).projects.length?`A command ${Ct(e(o).projects)} ${e(o).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.",()=>je(e(o).updatedAt),()=>je(e(o).lastUsedAt)]),l(f,w)};P(I,f=>{e(J)===e(o).name&&f(H)})}i(u),y(()=>{K(_,"aria-expanded",e(J)===e(o).name),K(_,"aria-controls",`vault-${e(o).name??""}`),g(x,e(o).name)}),_e("click",_,()=>qe(e(o).name)),l(r,u)}),i(a),l(t,a)};P(Ke,t=>{!e(ve).length&&!e(ae)?t(ot):e(ve).length&&t(lt,1)})}var it=s(Ke,2);{var dt=t=>{var a=ra(),r=s(we(a),2),o=d(r),u=s(d(o));ke(u,21,()=>e(ce).used,xt,(_,c)=>{var S=aa(),x=d(S),h=b(x,!0),m=s(x),I=d(m);{var H=V=>{var M=ta(),ze=b(M,!0);y(Ae=>{K(M,"href",`/tasks/${Ae??""}`),g(ze,e(c).task)},[()=>encodeURIComponent(e(c).task)]),l(V,M)},f=V=>{var M=L();y(()=>g(M,e(c).task??"—")),l(V,M)};P(I,V=>{e(c).task&&e(c).taskKnown?V(H):V(f,-1)})}i(m);var w=s(m),E=b(w,!0),z=s(w),F=b(z,!0),v=s(z),A=b(v,!0),D=s(v),ie=b(D,!0);i(S),y((V,M)=>{g(h,V),g(E,e(c).project??"—"),g(F,M),g(A,e(c).program??"—"),g(ie,e(c).result)},[()=>je(e(c).at),()=>e(c).names.join(", ")||"—"]),l(_,S)}),i(u),i(o),i(r),l(t,a)};P(it,t=>{e(ce).used.length&&t(dt)})}y(t=>g(Qe,`Secrets your projects can use by name. Values stay in ${t??""}; Wheelhouse never
2
2
  shows one.`),[()=>Ne(e(le))]),l(C,De),_t()}vt(["input","click","change"]);const ya={"vault/overview":na};export{ya as P,Tt as S,Ct as a,ba as b,ha as e,Ne as s};
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{aF as Ue,p as ve,j as G,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./D46tdsTs.js";import{i as V}from"./DWAM9c1z.js";import{c as _}from"./DT69KRC9.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./BLivoCTk.js";import{a as Te}from"./Cqz3pSYE.js";import{p as C,r as we,s as le}from"./z5Xef_-v.js";import{p as Xe}from"./Gbvs-EZ4.js";import{c as Ye,D as et,b as be,m as tt,a as rt}from"./BnAtF53u.js";import{D as at,a as st,b as ot,c as lt,d as xe,P as nt,e as it,i as dt,f as ut,m as ft}from"./BPAziDlG.js";import{s as Fe}from"./DTJjRJA0.js";import{B as X}from"./oiLSZkWa.js";import{C as vt,d as gt,b as ct,i as pt}from"./ChjkQemt.js";import{P as mt}from"./CmMBsPrQ.js";import{L as _t}from"./BXPZKlNj.js";import{T as ht}from"./DDbzEejx.js";var $t=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),bt=T("<button><!></button>");function xt(H,s){const z=Ue();ve(s,!0);let F=C(s,"id",19,()=>Ye(z)),O=C(s,"ref",15,null),k=C(s,"disabled",3,!1),t=we(s,$t);const p=et.create({id:be(()=>F()),ref:be(()=>O(),m=>O(m)),disabled:be(()=>!!k())}),b=P(()=>tt(t,p.props));var n=G(),f=l(n);{var Z=m=>{var D=G(),E=l(D);Fe(E,()=>s.child,()=>({props:e(b)})),r(m,D)},ne=m=>{var D=bt();Qe(D,()=>({...e(b)}));var E=se(D);Fe(E,()=>s.children??Ve),oe(D),r(m,D)};V(f,m=>{s.child?m(Z):m(ne,-1)})}r(H,n),ge()}var wt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Oe(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,wt);var k=G(),t=l(k);_(t,()=>rt,(p,b)=>{b(p,le({"data-slot":"dialog-close",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var yt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Pt(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,yt);var k=G(),t=l(k);_(t,()=>xt,(p,b)=>{b(p,le({"data-slot":"dialog-trigger",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var kt=T("<!> ",1),ae=T("<!> <!>",1),Dt=T('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),It=T("<!>Fetching…",1),St=T('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),At=T('<p class="text-xs text-danger" role="alert"> </p>'),Re=T("<!> <!> <!>",1),Bt=T("<p> </p>");function Jt(H,s){ve(s,!0);let z=C(s,"busy",19,()=>[]),F=C(s,"suggested",3,null),O=C(s,"label",3,"Install plugin"),k=U(!1),t=U("form"),p=U(""),b=U(""),n=U(null),f=U(null),Z=U(Je({}));const ne=P(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e(p).trim())),m=P(()=>e(f)?ft(e(f),e(Z)):null),D=()=>Xe.data.sessionToken,E="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function ye(){a(t,"form"),a(n,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(ne)||e(t)==="looking")return;a(t,"looking"),a(n,null);const L=await gt({repo:e(p).trim(),ref:e(b).trim()||null},D());if(!L.ok){a(n,L.error,!0),a(t,"form");return}a(f,L.value,!0),a(Z,dt(L.value),!0),a(t,"review")}async function je(){if(!e(f)||e(m))return;a(t,"saving"),a(n,null);const Y=ct(),L=await pt(e(f),ut(e(Z)),D());if(!L.ok){a(n,L.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var Pe=G(),Ge=l(Pe);_(Ge,()=>it,(Y,L)=>{L(Y,{onOpenChange:J=>{J&&(e(t)==="done"||e(t)==="slow")&&(a(p,""),a(b,""),ye()),J&&e(t)==="form"&&F()&&!e(p)&&a(p,F())},get open(){return e(k)},set open(J){a(k,J,!0)},children:(J,Ct)=>{var ke=ae(),De=l(ke);{const ce=(ee,te)=>{X(ee,le(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Se,pe)=>{var re=kt(),ie=l(re);mt(ie,{});var me=u(ie,1,!0);ue(()=>fe(me,O())),r(Se,re)},$$slots:{default:!0}}))};_(De,()=>Pt,(ee,te)=>{te(ee,{child:ce,$$slots:{child:!0}})})}var He=u(De,2);{let ce=P(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");_(He,()=>at,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(ce)},children:(Ie,Se)=>{var pe=ae(),re=l(pe);_(re,()=>st,(x,I)=>{I(x,{children:(h,S)=>{var w=ae(),A=l(w);_(A,()=>ot,(i,v)=>{v(i,{class:"font-display text-lg",children:(q,d)=>{W();var g=j("Install a plugin from GitHub");r(q,g)},$$slots:{default:!0}})});var o=u(A,2);_(o,()=>lt,(i,v)=>{v(i,{children:(q,d)=>{var g=G(),B=l(g);{var $=c=>{var R=j("Check what it is and where it comes from before you install it.");r(c,R)},y=c=>{var R=j(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
1
+ import"./DsnmJJEf.js";import{aF as Ue,p as ve,j as G,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./D46tdsTs.js";import{i as V}from"./DWAM9c1z.js";import{c as _}from"./DT69KRC9.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./BLivoCTk.js";import{a as Te}from"./Cqz3pSYE.js";import{p as C,r as we,s as le}from"./z5Xef_-v.js";import{p as Xe}from"./s_exGbLS.js";import{c as Ye,D as et,b as be,m as tt,a as rt}from"./BnAtF53u.js";import{D as at,a as st,b as ot,c as lt,d as xe,P as nt,e as it,i as dt,f as ut,m as ft}from"./A55xgzkD.js";import{s as Fe}from"./DTJjRJA0.js";import{B as X}from"./oiLSZkWa.js";import{C as vt,d as gt,b as ct,i as pt}from"./CEkqhJ8-.js";import{P as mt}from"./CmMBsPrQ.js";import{L as _t}from"./BXPZKlNj.js";import{T as ht}from"./DDbzEejx.js";var $t=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),bt=T("<button><!></button>");function xt(H,s){const z=Ue();ve(s,!0);let F=C(s,"id",19,()=>Ye(z)),O=C(s,"ref",15,null),k=C(s,"disabled",3,!1),t=we(s,$t);const p=et.create({id:be(()=>F()),ref:be(()=>O(),m=>O(m)),disabled:be(()=>!!k())}),b=P(()=>tt(t,p.props));var n=G(),f=l(n);{var Z=m=>{var D=G(),E=l(D);Fe(E,()=>s.child,()=>({props:e(b)})),r(m,D)},ne=m=>{var D=bt();Qe(D,()=>({...e(b)}));var E=se(D);Fe(E,()=>s.children??Ve),oe(D),r(m,D)};V(f,m=>{s.child?m(Z):m(ne,-1)})}r(H,n),ge()}var wt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Oe(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,wt);var k=G(),t=l(k);_(t,()=>rt,(p,b)=>{b(p,le({"data-slot":"dialog-close",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var yt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Pt(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,yt);var k=G(),t=l(k);_(t,()=>xt,(p,b)=>{b(p,le({"data-slot":"dialog-trigger",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var kt=T("<!> ",1),ae=T("<!> <!>",1),Dt=T('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),It=T("<!>Fetching…",1),St=T('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),At=T('<p class="text-xs text-danger" role="alert"> </p>'),Re=T("<!> <!> <!>",1),Bt=T("<p> </p>");function Jt(H,s){ve(s,!0);let z=C(s,"busy",19,()=>[]),F=C(s,"suggested",3,null),O=C(s,"label",3,"Install plugin"),k=U(!1),t=U("form"),p=U(""),b=U(""),n=U(null),f=U(null),Z=U(Je({}));const ne=P(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e(p).trim())),m=P(()=>e(f)?ft(e(f),e(Z)):null),D=()=>Xe.data.sessionToken,E="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function ye(){a(t,"form"),a(n,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(ne)||e(t)==="looking")return;a(t,"looking"),a(n,null);const L=await gt({repo:e(p).trim(),ref:e(b).trim()||null},D());if(!L.ok){a(n,L.error,!0),a(t,"form");return}a(f,L.value,!0),a(Z,dt(L.value),!0),a(t,"review")}async function je(){if(!e(f)||e(m))return;a(t,"saving"),a(n,null);const Y=ct(),L=await pt(e(f),ut(e(Z)),D());if(!L.ok){a(n,L.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var Pe=G(),Ge=l(Pe);_(Ge,()=>it,(Y,L)=>{L(Y,{onOpenChange:J=>{J&&(e(t)==="done"||e(t)==="slow")&&(a(p,""),a(b,""),ye()),J&&e(t)==="form"&&F()&&!e(p)&&a(p,F())},get open(){return e(k)},set open(J){a(k,J,!0)},children:(J,Ct)=>{var ke=ae(),De=l(ke);{const ce=(ee,te)=>{X(ee,le(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Se,pe)=>{var re=kt(),ie=l(re);mt(ie,{});var me=u(ie,1,!0);ue(()=>fe(me,O())),r(Se,re)},$$slots:{default:!0}}))};_(De,()=>Pt,(ee,te)=>{te(ee,{child:ce,$$slots:{child:!0}})})}var He=u(De,2);{let ce=P(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");_(He,()=>at,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(ce)},children:(Ie,Se)=>{var pe=ae(),re=l(pe);_(re,()=>st,(x,I)=>{I(x,{children:(h,S)=>{var w=ae(),A=l(w);_(A,()=>ot,(i,v)=>{v(i,{class:"font-display text-lg",children:(q,d)=>{W();var g=j("Install a plugin from GitHub");r(q,g)},$$slots:{default:!0}})});var o=u(A,2);_(o,()=>lt,(i,v)=>{v(i,{children:(q,d)=>{var g=G(),B=l(g);{var $=c=>{var R=j("Check what it is and where it comes from before you install it.");r(c,R)},y=c=>{var R=j(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
2
2
  Nothing runs until you install it.`);r(c,R)};V(B,c=>{e(t)==="review"?c($):c(y,-1)})}r(q,g)},$$slots:{default:!0}})}),r(h,w)},$$slots:{default:!0}})});var ie=u(re,2);{var me=x=>{var I=St(),h=l(I),S=se(h),w=u(se(S),2);Ce(w),ze(w,1,Le(E)),W(2),oe(S);var A=u(S,2),o=u(se(A),2);Ce(o),ze(o,1,Le(E)),W(2),oe(A);var i=u(A,2);{var v=d=>{var g=Dt(),B=se(g);ht(B,{class:"mt-0.5 size-3.5 shrink-0"});var $=u(B,1,!0);oe(g),ue(()=>fe($,e(n))),r(d,g)};V(i,d=>{e(n)&&d(v)})}oe(h);var q=u(h,2);_(q,()=>xe,(d,g)=>{g(d,{children:(B,$)=>{var y=ae(),c=l(y);{const N=(K,M)=>{X(K,le(()=>(M?.()).props,{variant:"ghost",children:(he,Ae)=>{W();var $e=j("Cancel");r(he,$e)},$$slots:{default:!0}}))};_(c,()=>Oe,(K,M)=>{M(K,{child:N,$$slots:{child:!0}})})}var R=u(c,2);{let N=P(()=>!e(ne)||e(t)==="looking");X(R,{type:"submit",form:"install-plugin-form",get disabled(){return e(N)},children:(K,M)=>{var _e=G(),he=l(_e);{var Ae=Q=>{var de=It(),Ne=l(de);_t(Ne,{class:"animate-spin"}),W(),r(Q,de)},$e=Q=>{var de=j("Look it up");r(Q,de)};V(he,Q=>{e(t)==="looking"?Q(Ae):Q($e,-1)})}r(K,_e)},$$slots:{default:!0}})}r(B,y)},$$slots:{default:!0}})}),Ke("submit",h,We),Me("input",w,()=>a(n,null)),Te(w,()=>e(p),d=>a(p,d)),Te(o,()=>e(b),d=>a(b,d)),r(x,I)},Ze=x=>{var I=Re(),h=l(I);nt(h,{get preview(){return e(f)},get busy(){return z()},get answers(){return e(Z)},set answers(o){a(Z,o,!0)}});var S=u(h,2);{var w=o=>{var i=At(),v=Be(i,!0);ue(()=>fe(v,e(n))),r(o,i)};V(S,o=>{e(n)&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=ae(),g=l(d);X(g,{variant:"ghost",onclick:ye,children:($,y)=>{W();var c=j("Back");r($,c)},$$slots:{default:!0}});var B=u(g,2);{let $=P(()=>!!e(m)),y=P(()=>e(m)?`${e(m).title} is needed`:void 0);X(B,{onclick:je,get disabled(){return e($)},get title(){return e(y)},children:(c,R)=>{W();var N=j("Install and restart");r(c,N)},$$slots:{default:!0}})}r(v,d)},$$slots:{default:!0}})}),r(x,I)},qe=x=>{var I=Re(),h=l(I);{let o=P(()=>e(f).id),i=P(()=>e(f).commit.slice(0,7)),v=P(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");vt(h,{get label(){return`Install ${e(o)??""} at ${e(i)??""}`},get phase(){return e(v)}})}var S=u(h,2);{var w=o=>{var i=Bt(),v=Be(i);ue(()=>fe(v,`${e(f).name??""}
3
3
  ${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(o,i)};V(S,o=>{e(t)==="done"&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=G(),g=l(d);{const B=($,y)=>{let c=()=>(y?.()).props;{let R=P(()=>e(t)==="saving"||e(t)==="restarting");X($,le(c,{get disabled(){return e(R)},children:(N,K)=>{W();var M=j("Done");r(N,M)},$$slots:{default:!0}}))}};_(g,()=>Oe,($,y)=>{y($,{child:B,$$slots:{child:!0}})})}r(v,d)},$$slots:{default:!0}})}),r(x,I)};V(ie,x=>{e(t)==="form"||e(t)==="looking"?x(me):e(t)==="review"&&e(f)?x(Ze,1):e(f)&&x(qe,2)})}r(Ie,pe)},$$slots:{default:!0}})})}r(J,ke)},$$slots:{default:!0}})}),r(H,Pe),ge()}Ee(["input"]);export{Oe as D,Jt as I};
@@ -0,0 +1,2 @@
1
+ import{s as yt}from"./D8OKqJm7.js";import{H as B,N as Y,r as me,n as N,i as je,b as T,s as $,a as Se,f as tt,g as Ie,c as oe,d as be,S as Oe,P as rt,p as I,o as Ne,e as wt,h as vt,u as De,j as bt,w as Et,k as Xe,l as X,m as At,q as nt,t as kt,v as St,x as at}from"./yQaRdTPY.js";import{G as se,a8 as It,A as Rt}from"./D46tdsTs.js";class te{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ce extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}const Pt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Lt=/^\/\((?:[^)]+)\)$/;function Tt(e){const t=[];return{pattern:e==="/"||Lt.test(e)?/^\/$/:new RegExp(`^${jt(e).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return t.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ee(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ee(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const l=Pt.exec(c),[,d,p,u,h]=l;return t.push({name:u,matcher:h,optional:!!d,rest:!!p,chained:p?f===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ee(c)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ut)}function Ot(e,t,r){const n={},i=e.slice(1),a=i.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=i[s-o];if(c.chained&&c.rest&&o&&(f=i.slice(s-o,s+1).filter(l=>l).join("/"),o=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[s+1],d=i[s+1];l&&!l.rest&&l.optional&&d&&c.chained&&(o=0),!l&&!d&&Object.keys(n).length===a.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Nt({nodes:e,server_loads:t,dictionary:r,matchers:n}){const i=new Set(t);return Object.entries(r).map(([s,[c,f,l]])=>{const{pattern:d,params:p}=Tt(s),u={id:s,exec:h=>{const w=d.exec(h);if(w)return Ot(w,p,n)},errors:[1,...l||[]].map(h=>e[h]),layouts:[0,...f||[]].map(o),leaf:a(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[i.has(s),e[s]]}}function ot(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ze(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Dt=-1,xt=-2,Ct=-3,Bt=-4,Mt=-5,$t=-6,Ft=-7,st=2**32-1,Re=st-1;function Vt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function qt(e){return!(!Number.isInteger(e)||e<0||e>st)}function Ht(e){return Uint8Array.fromBase64(e).buffer}function Yt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Kt(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}const Gt=typeof Uint8Array.fromBase64=="function",Xt=typeof process=="object"&&process.versions?.node!==void 0,zt=Gt?Ht:Xt?Yt:Kt;function Wt(e,t){return e}const Jt=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,We=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Zt={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{Jt.call(t)}catch(a){if(!We)throw a;We.call(t)}const i=globalThis[e];return r!==void 0?new i(t,r,n):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Re]=void 0,delete t[Re],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},Qt=Object.freeze(Zt);function er(e,t,r){const n=Wt(Qt);if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let o=null;function s(c,f=!1){if(c===Dt)return n.fromPrimitive(void 0);if(c===Ct)return n.fromPrimitive(NaN);if(c===Bt)return n.fromPrimitive(1/0);if(c===Mt)return n.fromPrimitive(-1/0);if(c===$t)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in a)return a[c];if(c>=i.length)throw new Error("Invalid input");const l=i[c];if(!l||typeof l!="object")a[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const d=l[0],p=t&&Object.hasOwn(t,d)?t[d]:void 0;if(p){let u=l[1];if(typeof u!="number"&&(u=i.push(l[1])-1),Object.hasOwn(a,u))return a[c]=p(a[u]);if(o??=new Set,o.has(u))throw new Error("Invalid circular reference");return o.add(u),a[c]=p(s(u)),o.delete(u),a[c]}switch(d){case"Date":a[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();a[c]=u;for(let _=1;_<l.length;_+=1)n.addValue(u,s(l[_]));break;case"Map":const h=n.createMap();a[c]=h;for(let _=1;_<l.length;_+=2)n.addEntry(h,s(l[_]),s(l[_+1]));break;case"RegExp":a[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const _=l[1];if(typeof i[_]=="object"&&i[_][0]!=="BigInt")throw new Error("Invalid input");a[c]=n.box(s(_));break}case"BigInt":a[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const w=n.createNullPrototypeObject();a[c]=w;for(let _=1;_<l.length;_+=2){const m=l[_];if(typeof m!="string")throw new Error("Cannot parse an object with a non-string key");if(m==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(w,m,s(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=s(l[1]);a[c]=n.fromViewInfo(d,_,l[2],l[3]);break}case"ArrayBuffer":{const _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");a[c]=n.fromArrayBuffer(zt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[c]=n.fromStringValue(d,l[1]);break}default:throw new Error(`Unknown type ${d}`)}}else if(l[0]===Ft){const d=l[1];if(!qt(d))throw new Error("Invalid input");const p=n.createSparseArray(d);a[c]=p;for(let u=2;u<l.length;u+=2){const h=l[u];if(!Vt(h)||h>=d)throw new Error("Invalid input");n.set(p,h,s(l[u+1]))}}else{const d=n.createArray(l.length);a[c]=d;for(let p=0;p<l.length;p+=1){const u=l[p];u!==xt&&n.set(d,p,s(u))}}else{const d=n.createObject();a[c]=d;for(const p of Object.keys(l)){if(p==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(d,p,s(l[p]))}}return a[c]}return s(0)}function tr(e){return e.filter(t=>t!=null)}const rr="x-sveltekit-invalidated",nr="x-sveltekit-trailing-slash";function F(e,t){return e+"/"+t}function ie(e){return e instanceof te||e instanceof Ce?e.status:500}function ar(e){return e instanceof Ce?e.text:"Internal Error"}const or="/__data.json",sr=".html__data.json";function ir(e){return e.endsWith(".html")?e.replace(/\.html$/,sr):e.replace(/\/$/,"")+or}async function*cr(e,t){let r=!1,n="";const i=new TextDecoder;for(;;){let a=n.indexOf(t);for(;a!==-1;)yield n.slice(0,a),n=n.slice(a+t.length),a=n.indexOf(t);if(r){n&&(yield n);return}const o=await e.read();r=o.done,o.value&&(n+=i.decode(o.value,{stream:!0})),r&&(n+=i.decode())}}async function*lr(e){for await(const t of cr(e,`
2
+ `)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:fr}=yt,ur=Rt??(e=>e()),dr=new Set(["icon","shortcut icon","apple-touch-icon"]);let z=null;const x=ot(at)??{},Z=ot(nt)??{},D={url:Xe({}),page:Xe({}),navigating:Et(null),updated:bt()};function Be(e){x[e]=$()}function hr(e,t){let r=e+1;for(;x[r];)delete x[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function it(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,O,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,V={element:void 0,href:void 0}}const ae=new Map,$e=new Set,ct=new Set,q=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Je=!0,ee=!1,W=!1,lt=!1,re=!1,ge,k,R,U;const J=new Set;let Ae;const de=new Map,he=new Map;async function Ur(e,t,r){if(globalThis.__sveltekit_14orln7.data){const{q:a={},p:o={},l:s={},f:c={}}=globalThis.__sveltekit_14orln7.data;for(const f in a)a[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in o)o[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Nt(e),O=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),k=history.state?.[B],R=history.state?.[Y],k||(k=R=Date.now(),history.replaceState({...history.state,[B]:k,[Y]:R},""));const n=x[k];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await kr(Le,r)):(await H({type:"enter",url:me(E.hash?Rr(new URL(location.href)):location.href),replace_state:!0}),i()),Ar()}async function pr(e=!0,t=!0){if(await(Ae||=Promise.resolve()),!Ae)return;Ae=null;const r=U={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const o of de.values())for(const{resource:s}of o.values())s.refresh();for(const[o,s]of he)for(const[c,{resource:f}]of s){const l=F(o,c),d=f.reconnect();d.catch(N),i.set(l,d)}}if(e){const o=I.state,s=n&&await Ye(n);if(!s||r!==U)return;if(s.type==="redirect")return Ve(new URL(s.location,g.url).href,{replaceState:!0},1,r);t||(s.props.page.state=o),De(s.props.page),g={...s.state,nav:g.nav},Te(),ge.$set(s.props)}else Te();const a=[];for(const o of de.values())for(const{resource:s}of o.values())a.push(s);for(const[o,s]of he)for(const c of s.keys()){const f=F(o,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(N)}function Te(){le.length=0,re=!1}function ft(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function ut(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Ze(){Be(k),ze(at,x),ft(R),ze(nt,Z)}async function Ve(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[o,s]of de)for(const[c,f]of s)f.resource?.reset(),i.add(F(o,c));a=new Set;for(const[o,s]of he)for(const c of s.keys())a.add(F(o,c))}t.invalidate&&t.invalidate.forEach(Er)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[o,s]of de)for(const[c,{resource:f}]of s)i?.has(F(o,c))&&f.start();for(const[o,s]of he)for(const[c,{resource:f}]of s)a?.has(F(o,c))&&f.reconnect()})}async function _r(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function ke(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function dt(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},De(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:D,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:x[k]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};q.forEach(a=>a(i))}ut(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:o,form:s}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const h of r)h?.slash!==void 0&&(c=h.slash);e.pathname=vt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:o},props:{constructors:tr(r).map(h=>h.node.component),page:we(I)}};s!==void 0&&(f.props.form=s);let l={},d=!I,p=0;for(let h=0;h<Math.max(r.length,g.branch.length);h+=1){const w=r[h],_=g.branch[h];w?.data!==_?.data&&(d=!0),w&&(l={...l,...w.data},d&&(f.props[`data_${p}`]=l),p+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||s!==void 0&&s!==I.form||d)&&(f.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?l:I.data}),f}async function qe({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:a,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??a?.data??null,slash:c.universal?.trailingSlash??a?.slash}}function mr(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?kt(n,i.href,t):St(n,t);return{resolved:i,promise:a}}function Qe(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const o of i.search_params)if(n.has(o))return!0;for(const o of i.params)if(a[o]!==g.params[o])return!0;for(const o of i.dependencies)if(le.some(s=>s(new URL(o))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function gr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(o=>a.includes(o))&&a.every(o=>i.includes(o))&&r.delete(n)}return r}function et({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=i,f=[...s,c];o.forEach(y=>y?.().catch(N)),f.forEach(y=>y?.[1]().catch(N));let l=null;const d=g.url?e!==_e(g.url):!1,p=g.route?i.id!==g.route.id:!1,u=gr(g.url,r);let h=!1;{const y=f.map((v,A)=>{const S=g.branch[A],b=!!v?.[0]&&(S?.loader!==v[1]||Qe(h,p,d,u,S.server?.uses,n));return b&&(h=!0),b});if(y.some(Boolean)){try{l=await _t(r,y)}catch(v){const A=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?et({error:A,url:r,params:n,route:i}):ye({status:ie(v),error:A,url:r,route:i})}if(l.type==="redirect")return l}}const w=l?.nodes;let _=!1;const m=f.map(async(y,v)=>{if(!y)return;const A=g.branch[v],S=w?.[v];if((!S||S.type==="skip")&&y[1]===A?.loader&&!Qe(_,p,d,u,A.universal?.uses,n))return A;if(_=!0,S?.type==="error")throw S;return qe({loader:y[1],url:r,params:n,route:i,parent:async()=>{const j={};for(let C=0;C<v;C+=1)Object.assign(j,(await m[C])?.data);return j},server_data_node:He(S===void 0&&y[0]?{type:"skip"}:S??null,y[0]?A?.server:void 0)})});for(const y of m)y.catch(N);const P=[];for(let y=0;y<f.length;y+=1)if(f[y])try{P.push(await m[y])}catch(v){if(v instanceof xe)return{type:"redirect",location:v.location};if(a&&J.has(a))return et({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let A=ie(v),S;if(w?.includes(v))A=v.status??A,S=v.error;else if(v instanceof te)S=v.body;else{if(await D.updated.check())return await it(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await yr(y,P,o);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:o,status:A,error:S,route:i}):await pt(r,{id:i.id},S,A)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const s=await _t(r,[!0]);if(s.type!=="data"||s.nodes[0]&&s.nodes[0].type!=="data")throw 0;a=s.nodes[0]??null}catch(s){if(!(s instanceof te&&s.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const o=await qe({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),s={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof xe){await Ve(new URL(o.location,location.href),{},0);return}const s=await E.get_error_template(),c=await M(o,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),l=s({status:e,message:f}),d=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(d.head),document.head),document.documentElement.replaceChild(document.adoptNode(d.body),document.body),o}}async function wr(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,o)=>mr(a,o,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!je(e,T,E.hash)){const r=await wr(e);if(!r)return;const n=vr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:wt(a),url:e}}}}function vr(e){return At(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let o=!1;const s=Ge(g,r,e,t,a??null);n!==void 0&&(s.navigation.delta=n),i!==void 0&&(s.navigation.event=i);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),o?null:s}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o={},redirect_count:s=0,nav_token:c={},accept:f=N,block:l=N,event:d}){const p=U;U=c;const u=await ne(t,!1),h=e==="enter"?Ge(g,u,t,e):ht({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:d});if(!h){l(),U===c&&(U=p);return}const w=k,_=R;f(),ee=!0,ue&&h.navigation.type!=="enter"&&D.navigating.set(Se.current=h.navigation);let m=u&&await Ye(u);if(!m){if(je(t,T,E.hash))return await K(t,a);m=await pt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,U!==c){h.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(s<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o,redirect_count:s+1,nav_token:c}),h.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await D.updated.check())return await it(),await K(t,a);if(Te(),Be(w),ft(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),o=r?r.state:o,!r){const b=a?0:1,j={[B]:k+=b,[Y]:R+=b,[Oe]:o};(a?history.replaceState:history.pushState).call(history,j,"",t),a||hr(k,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,V={element:void 0,href:void 0}),m.props.page.state=o;let y;if(ue){const b=(await Promise.all(Array.from(ct,G=>G(h.navigation)))).filter(G=>typeof G=="function");if(b.length>0){let G=function(){b.forEach(ve=>{q.delete(ve)})};b.push(G),b.forEach(ve=>{q.add(ve)})}const j=h.navigation.to;g={...m.state,nav:{params:j.params,route:j.route,url:j.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?y=C.commit():(z=null,ge.$set(m.props),z&&Object.assign(m.props.page,z),De(m.props.page),y=It?.()),lt=!0}else await dt(m,Le,!1);const{activeElement:v}=document;if(await y,await se(),await se(),U!==c){h.reject(new Error("navigation aborted"));return}m.props.page&&z&&Object.assign(m.props.page,z);let A=null;if(Je){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(gt(t)))?A.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Ir(t,!A),Je=!0,ee=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=$()),q.forEach(b=>b(h.navigation)),e==="popstate"&&ut(R),D.navigating.set(Se.current=null)}async function pt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let V={element:void 0,href:void 0};function br(){let e,t;O.addEventListener("mousemove",o=>{const s=o.target;clearTimeout(e),e=setTimeout(()=>{i(s,X.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],X.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(o=>{for(const s of o)s.isIntersecting&&(ke(new URL(s.target.href)),n.unobserve(s.target))},{threshold:0});async function i(o,s){const c=tt(o,O),f=c===V.element&&c?.href===V.href&&s>=t;if(!c||f)return;const{url:l,external:d,download:p}=Ie(c,T,E.hash);if(d||p)return;const u=oe(c),h=l&&_e(g.url)===_e(l);if(!(u.reload||h))if(s<=u.preload_data){V={element:c,href:c.href},t=X.tap;const w=await ne(l,!1);if(!w)return;_r(w)}else s<=u.preload_code&&(V={element:c,href:c.href},t=s,ke(l))}function a(){n.disconnect();for(const o of O.querySelectorAll("a")){const{url:s,external:c,download:f}=Ie(o,T,E.hash);if(c||f)continue;const l=oe(o);l.reload||(l.preload_code===X.viewport&&n.observe(o),l.preload_code===X.eager&&ke(s))}}q.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ar(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){fr(()=>(e.add(t),()=>{e.delete(t)}))}function jr(e){Ke(q,e)}function Or(e){Ke($e,e)}function Nr(e){Ke(ct,e)}function Dr(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):Ve(e,t,0)}function Er(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function xr(){return re=!0,pr()}function Cr(e,t){const r={[B]:k,[Y]:R,[rt]:I.url.href,[Oe]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:ur(()=>we(I))})}function Ar(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ze(),!ee){const n=Ge(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||br(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=tt(t.composedPath()[0],O);if(!r)return;const{url:n,external:i,target:a,download:o}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const s=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||o)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),d=f===be(location);if(i||s.reload&&(!d||!l)){ht({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&d){const[,p]=g.url.href.split("#");if(p===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(k),e(n),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await H({type:"link",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const o=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(je(o,T,!1))return;const s=t.target,c=oe(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,n);o.search=new URLSearchParams(f).toString(),H({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const r=t.state[B];if(U={},r===k)return;const n=x[r],i=t.state[Oe]??{},a=new URL(t.state[rt]??location.href),o=t.state[Y],s=g.url?be(location)===be(g.url):!1;if(o===R&&(lt||s)){i!==I.state&&(I.state=i),e(a),x[k]=$(),n&&scrollTo(n.x,n.y),k=r;return}const f=r-k;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{k=r,R=o},block:()=>{history.go(-f)},nav_token:U,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++k,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))dr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,D.page.set(we(I)),D.page.notify()}}async function kr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:o,data:s,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let d,p=!0;try{const u=n.map(async(w,_)=>{const m=s[_];return m?.uses&&(m.uses=mt(m.uses)),qe({loader:E.nodes[w],url:f,params:i,route:a,parent:async()=>{const P={};for(let y=0;y<_;y+=1)Object.assign(P,(await u[y]).data);return P},server_data_node:He(m)})}),h=await Promise.all(u);if(l){const w=l.layouts;for(let _=0;_<w.length;_++)w[_]||h.splice(_,0,void 0)}d=await pe({url:f,params:i,branch:h,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof xe)return await K(new URL(u.location,location.href));d=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",p=!1}d&&(d.props.page&&(d.props.page.state={}),await dt(d,e,p))}async function _t(e,t){const r=new URL(e);r.pathname=ir(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(nr,"1"),r.searchParams.append(rr,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,o)=>{Sr(a,i).catch(o)})}async function Sr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return er(a,{...E.decoders,Promise:o=>new Promise((s,c)=>{n.set(o,{fulfil:s,reject:c})})})}for await(const a of lr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(o=>{o?.type==="data"&&(o.uses=mt(o.uses),o.data=i(o.data))}),e(a);else if(a.type==="chunk"){const{id:o,data:s,error:c}=a,f=n.get(o);n.delete(o),c?f.reject(i(c)):f.fulfil(i(s))}}}function mt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function Ir(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=gt(e);if(n&&document.getElementById(n)){const{x:a,y:o}=$();setTimeout(()=>{const s=history.state;Ue=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(a,o),Ue=!1})}else{const a=document.body,o=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),o!==null?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let o=0;o<i.rangeCount;o+=1)a.push(i.getRangeAt(o));setTimeout(()=>{if(i.rangeCount===a.length){for(let o=0;o<i.rangeCount;o+=1){const s=a[o],c=i.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function Ge(e,t,r,n,i=null){let a,o;const s=new Promise((f,l)=>{a=f,o=l});return s.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:s},fulfil:a,reject:o}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Rr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{jr as a,Or as b,Dr as g,xr as i,Nr as o,Cr as r,Ur as s};
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./z5Xef_-v.js";import{I as Te}from"./B4gzexCn.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./D46tdsTs.js";import{i as X}from"./DWAM9c1z.js";import{s as V,d as Ce,a as te,e as Se}from"./BLivoCTk.js";import{b as re}from"./RbWQh321.js";import{c as fe,m as Me}from"./BCUUi0V0.js";import{e as Le,l as ee,c as ae}from"./DVeiiKip.js";import{b as ce,a as Oe}from"./DjCsArDj.js";import{S as me}from"./13cncWIw.js";import{X as Ne}from"./CSU-6kdN.js";var ze=new Set(["$$slots","$$events","$$legacy"]);function pt(r,a){let n=ke(a,ze);const d={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};Te(r,ye(()=>n,{get icon(){return d}}))}const Ie="No screenshots saved",Ae="No live preview reported",Pe="No pull request recorded",ht=r=>r.attention?.owner==="captain"&&r.attention.kind==="review";function Fe(r){return r<=0?Ie:`${r} ${r===1?"screenshot":"screenshots"}`}function xt(r,a=null){const n=a??[],d=a?n.length:r.screenshots,u=r.preview?.url??r.passage.link?.url??null;return{shots:n,shotsText:Fe(d),preview:u?{url:u}:null,previewText:u?"Live preview":Ae,pr:r.pr?{url:r.pr.url,label:r.pr.number?`PR #${r.pr.number}`:"Pull request"}:null,prText:r.pr?r.pr.number?`PR #${r.pr.number}`:"Pull request":Pe}}const pe={full:1e3,window:2e3},He=80,he=1.45,Re=11,We=32;function je(r){let a=0;for(const n of r)a=Math.max(a,[...n.trimEnd()].length);return Math.max(He,a)}function Xe(r){const a=r.lineHeight??he,n=Math.max(1,Math.floor(r.cols)),d=r.width/(n*(r.charWidth>0?r.charWidth:.6)),u=Number.isFinite(d)?Math.min(We,Math.max(Re,d)):13,o=Math.floor(u*10)/10,s=Math.max(1,Math.floor(Math.max(0,r.height)/(o*a)));return{fontSize:o,cols:n,rows:s}}function Qe({load:r,intervalMs:a,onresult:n,onerror:d,doc:u}){let o=!1,s=!1,t;const E=()=>{clearTimeout(t),o||(t=setTimeout(x,a))},x=async()=>{if(!(o||s)){if(u.hidden)return E();s=!0;try{const m=await r();o||n(m)}catch(m){o||d(m instanceof Error?m:new Error(String(m)))}finally{s=!1}E()}},C=()=>{!u.hidden&&!s&&(clearTimeout(t),x())};return u.addEventListener("visibilitychange",C),x(),()=>{o=!0,clearTimeout(t),u.removeEventListener("visibilitychange",C)}}function xe(r,a,n,d,u=document){const o=`/api/tasks/${encodeURIComponent(r)}/output?lines=${a}`;return Qe({load:async()=>{const s=await fetch(o);if(!s.ok)throw new Error(`HTTP ${s.status}`);return await s.json()},intervalMs:n,doc:u,...d})}var De=T('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ue=T('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Ve=T('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ge=T('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Be(r,a){de(a,!0);let n=Z(a,"open",15,!1);const d=200,u=16;let o=O(null),s=O(null),t=O(null),E=O(!1),x=O(0),C=O(0),m=O(.6),H=!0;D(()=>{if(e(o))if(n()&&!e(o).open){H=!0;const v=e(o);Le(document.documentElement).then(()=>{!n()||!v.isConnected?ee(document.documentElement):v.open||v.showModal()})}else!n()&&e(o).open&&e(o).close()}),D(()=>{if(!n())return;const v=document.documentElement;let h=!1;const f=()=>{document.fullscreenElement===v?h=!0:h&&(h=!1,n(!1))};return document.addEventListener("fullscreenchange",f),()=>{document.removeEventListener("fullscreenchange",f),ee(v)}}),D(()=>{if(!n())return;oe(()=>ae.open++);const v=xe(a.task.id,d,pe.full,{onresult:h=>{_(t,h,!0),_(E,!1)},onerror:()=>_(E,!0)});return()=>{v(),oe(()=>ae.open--)}}),D(()=>{if(!e(s))return;const v=getComputedStyle(e(s)).fontFamily,h=document.createElement("canvas").getContext("2d");if(!h)return;h.font=`100px ${v}`;const f=h.measureText("M".repeat(10)).width/1e3;f>0&&_(m,f)});const P=ie(()=>e(t)?.available?e(t).lines:[]),R=ie(()=>Xe({width:e(x)-2*u,height:e(C)-2*u,cols:je(e(P)),charWidth:e(m)}));D(()=>{e(t),e(R),e(s)&&H&&(e(s).scrollTop=e(s).scrollHeight)});const G=()=>{e(s)&&(H=e(s).scrollHeight-e(s).scrollTop-e(s).clientHeight<24)};var I=Ge(),J=k(I);{var K=v=>{var h=Ve(),f=k(h),l=k(f);me(l,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var p=g(l,2),W=N(p,!0),S=g(p,2),B=N(S),A=g(S,4),F=k(A);Ne(F,{class:"size-4"}),y(A),y(f);var i=g(f,2),M=k(i);{var ge=b=>{var j=De();let Y;var $=N(j,!0);z(q=>{V(j,"data-cols",e(R).cols),V(j,"data-rows",e(R).rows),Y=Ce(j,"",Y,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":he}),w($,q)},[()=>e(P).join(`
1
+ import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./z5Xef_-v.js";import{I as Te}from"./B4gzexCn.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./D46tdsTs.js";import{i as X}from"./DWAM9c1z.js";import{s as V,d as Ce,a as te,e as Se}from"./BLivoCTk.js";import{b as re}from"./RbWQh321.js";import{c as fe,m as Me}from"./BCUUi0V0.js";import{e as Le,l as ee,c as ae}from"./D90Ga_Id.js";import{b as ce,a as Oe}from"./D9uOQyZY.js";import{S as me}from"./13cncWIw.js";import{X as Ne}from"./CSU-6kdN.js";var ze=new Set(["$$slots","$$events","$$legacy"]);function pt(r,a){let n=ke(a,ze);const d={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};Te(r,ye(()=>n,{get icon(){return d}}))}const Ie="No screenshots saved",Ae="No live preview reported",Pe="No pull request recorded",ht=r=>r.attention?.owner==="captain"&&r.attention.kind==="review";function Fe(r){return r<=0?Ie:`${r} ${r===1?"screenshot":"screenshots"}`}function xt(r,a=null){const n=a??[],d=a?n.length:r.screenshots,u=r.preview?.url??r.passage.link?.url??null;return{shots:n,shotsText:Fe(d),preview:u?{url:u}:null,previewText:u?"Live preview":Ae,pr:r.pr?{url:r.pr.url,label:r.pr.number?`PR #${r.pr.number}`:"Pull request"}:null,prText:r.pr?r.pr.number?`PR #${r.pr.number}`:"Pull request":Pe}}const pe={full:1e3,window:2e3},He=80,he=1.45,Re=11,We=32;function je(r){let a=0;for(const n of r)a=Math.max(a,[...n.trimEnd()].length);return Math.max(He,a)}function Xe(r){const a=r.lineHeight??he,n=Math.max(1,Math.floor(r.cols)),d=r.width/(n*(r.charWidth>0?r.charWidth:.6)),u=Number.isFinite(d)?Math.min(We,Math.max(Re,d)):13,o=Math.floor(u*10)/10,s=Math.max(1,Math.floor(Math.max(0,r.height)/(o*a)));return{fontSize:o,cols:n,rows:s}}function Qe({load:r,intervalMs:a,onresult:n,onerror:d,doc:u}){let o=!1,s=!1,t;const E=()=>{clearTimeout(t),o||(t=setTimeout(x,a))},x=async()=>{if(!(o||s)){if(u.hidden)return E();s=!0;try{const m=await r();o||n(m)}catch(m){o||d(m instanceof Error?m:new Error(String(m)))}finally{s=!1}E()}},C=()=>{!u.hidden&&!s&&(clearTimeout(t),x())};return u.addEventListener("visibilitychange",C),x(),()=>{o=!0,clearTimeout(t),u.removeEventListener("visibilitychange",C)}}function xe(r,a,n,d,u=document){const o=`/api/tasks/${encodeURIComponent(r)}/output?lines=${a}`;return Qe({load:async()=>{const s=await fetch(o);if(!s.ok)throw new Error(`HTTP ${s.status}`);return await s.json()},intervalMs:n,doc:u,...d})}var De=T('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ue=T('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Ve=T('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ge=T('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Be(r,a){de(a,!0);let n=Z(a,"open",15,!1);const d=200,u=16;let o=O(null),s=O(null),t=O(null),E=O(!1),x=O(0),C=O(0),m=O(.6),H=!0;D(()=>{if(e(o))if(n()&&!e(o).open){H=!0;const v=e(o);Le(document.documentElement).then(()=>{!n()||!v.isConnected?ee(document.documentElement):v.open||v.showModal()})}else!n()&&e(o).open&&e(o).close()}),D(()=>{if(!n())return;const v=document.documentElement;let h=!1;const f=()=>{document.fullscreenElement===v?h=!0:h&&(h=!1,n(!1))};return document.addEventListener("fullscreenchange",f),()=>{document.removeEventListener("fullscreenchange",f),ee(v)}}),D(()=>{if(!n())return;oe(()=>ae.open++);const v=xe(a.task.id,d,pe.full,{onresult:h=>{_(t,h,!0),_(E,!1)},onerror:()=>_(E,!0)});return()=>{v(),oe(()=>ae.open--)}}),D(()=>{if(!e(s))return;const v=getComputedStyle(e(s)).fontFamily,h=document.createElement("canvas").getContext("2d");if(!h)return;h.font=`100px ${v}`;const f=h.measureText("M".repeat(10)).width/1e3;f>0&&_(m,f)});const P=ie(()=>e(t)?.available?e(t).lines:[]),R=ie(()=>Xe({width:e(x)-2*u,height:e(C)-2*u,cols:je(e(P)),charWidth:e(m)}));D(()=>{e(t),e(R),e(s)&&H&&(e(s).scrollTop=e(s).scrollHeight)});const G=()=>{e(s)&&(H=e(s).scrollHeight-e(s).scrollTop-e(s).clientHeight<24)};var I=Ge(),J=k(I);{var K=v=>{var h=Ve(),f=k(h),l=k(f);me(l,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var p=g(l,2),W=N(p,!0),S=g(p,2),B=N(S),A=g(S,4),F=k(A);Ne(F,{class:"size-4"}),y(A),y(f);var i=g(f,2),M=k(i);{var ge=b=>{var j=De();let Y;var $=N(j,!0);z(q=>{V(j,"data-cols",e(R).cols),V(j,"data-rows",e(R).rows),Y=Ce(j,"",Y,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":he}),w($,q)},[()=>e(P).join(`
2
2
  `)]),c(b,j)},_e=b=>{var j=Ue(),Y=k(j);{var $=L=>{var Q=U("Could not reach the Wheelhouse server.");c(L,Q)},q=L=>{var Q=U("Reading the worker’s terminal…");c(L,Q)},be=L=>{var Q=U();z(()=>w(Q,e(t).reason)),c(L,Q)},we=L=>{var Q=U("The terminal is empty.");c(L,Q)};X(Y,L=>{e(E)?L($):e(t)?e(t).available?L(we,-1):L(be,2):L(q,1)})}y(j),c(b,j)};X(M,b=>{e(P).length?b(ge):b(_e,-1)})}y(i),re(i,b=>_(s,b),()=>e(s)),y(h),z(b=>{w(W,a.task.shortTitle),w(B,`· live console, read-only${b??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",A,()=>n(!1)),le("scroll",i,G),ce(i,"clientWidth",b=>_(x,b)),ce(i,"clientHeight",b=>_(C,b)),c(v,h)};X(J,v=>{n()&&v(K)})}y(I),re(I,v=>_(o,v),()=>e(o)),z(()=>{V(I,"aria-label",`${a.task.shortTitle??""}: live console`),V(I,"data-console-fullscreen",a.task.id)}),le("close",I,()=>{ee(document.documentElement),n(!1)}),c(r,I),ue()}se(["click"]);var Je=T('<pre class="flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-3 py-2 font-mono text-xs leading-[1.45] whitespace-pre max-md:[overflow-wrap:anywhere] max-md:whitespace-pre-wrap" aria-label="Latest lines of the worker’s terminal"> </pre>'),Ke=T('<p class="grid flex-1 place-items-center px-4 text-center text-xs text-terminal-foreground/60"><!></p>'),Ye=T('<div><button type="button" class="absolute inset-0 z-10 rounded-[inherit] focus-visible:ring-3 focus-visible:ring-ring/60 focus-visible:outline-none" title="Open full screen"></button> <div class="flex items-center gap-1.5 border-b border-terminal-foreground/10 px-3 py-1.5 text-xs text-terminal-foreground/60"><!> <span class="max-md:whitespace-nowrap">Live console</span> <span class="ml-auto max-md:min-w-0 max-md:truncate"> </span> <!></div> <!></div> <!>',1);function gt(r,a){de(a,!0);let n=Z(a,"lines",3,12),d=Z(a,"class",3,"");const u=24;let o=O(null),s=O(!1),t=O(null),E=O(!1),x=O(!1);D(()=>{if(!e(o))return;const l=new IntersectionObserver(([p])=>_(s,p.isIntersecting,!0),{rootMargin:"100px"});return l.observe(e(o)),()=>l.disconnect()}),D(()=>{if(!(!e(s)||ae.open>0))return xe(a.task.id,n()+u,pe.window,{onresult:l=>{_(t,l,!0),_(E,!1)},onerror:()=>_(E,!0)})}),D(()=>{a.onsample?.(e(t)?.available&&e(t).lines.length?{line:Me(e(t).lines),capturedAt:e(t).capturedAt}:null)});var C=Ye(),m=ve(C),H=k(m),P=g(H,2),R=k(P);me(R,{class:"size-3","aria-hidden":"true"});var G=g(R,4),I=N(G),J=g(G,2);Oe(J,{class:"size-3.5 text-terminal-foreground/60 transition-colors group-hover/console:text-terminal-foreground","aria-hidden":"true"}),y(P);var K=g(P,2);{var v=l=>{var p=Je(),W=N(p,!0);z(S=>w(W,S),[()=>e(t).lines.slice(-n()).join(`
3
3
  `)]),c(l,p)},h=l=>{var p=Ke(),W=k(p);{var S=i=>{var M=U("Could not reach the Wheelhouse server.");c(i,M)},B=i=>{var M=U("Reading the worker’s terminal…");c(i,M)},A=i=>{var M=U();z(()=>w(M,e(t).reason)),c(i,M)},F=i=>{var M=U("The terminal is empty.");c(i,M)};X(W,i=>{e(E)?i(S):e(t)?e(t).available?i(F,-1):i(A,2):i(B,1)})}y(p),c(l,p)};X(K,l=>{e(t)?.available&&e(t).lines.length?l(v):l(h,-1)})}y(m),re(m,l=>_(o,l),()=>e(o));var f=g(m,2);Be(f,{get task(){return a.task},get open(){return e(x)},set open(l){_(x,l,!0)}}),z(l=>{te(m,1,`group/console relative z-10 flex aspect-[16/10] flex-col overflow-hidden rounded-sm border bg-terminal text-terminal-foreground ${d()??""}`),V(m,"data-console",a.task.id),V(H,"aria-label",`Open ${a.task.shortTitle??""}’s live console full screen`),w(I,`read-only${l??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",H,()=>_(x,!0)),c(r,C),ue()}se(["click"]);var Ze=T('<p class="mt-1.5 leading-relaxed whitespace-pre-line text-muted-foreground" data-question-detail=""> </p>'),$e=T('<!> <button type="button" class="touch-target mt-1 text-xs text-muted-foreground hover:text-foreground hover:underline"> </button>',1),qe=T('<p class="mt-0.5 leading-relaxed"> </p>'),et=T('<div class="mt-2 border-l-2 border-brass/60 pl-2.5" data-question-call=""><p class="text-xs text-muted-foreground">Firstmate decided: <span class="font-medium text-foreground"> </span></p> <!></div>'),tt=T('<li><div class="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1"><p class="text-xs text-muted-foreground"> </p> <span> </span></div> <p class="mt-1 leading-relaxed"> </p> <!> <!></li>'),rt=T('<ol class="space-y-2" data-questions=""></ol>');function _t(r,a){let n=Z(a,"size",3,"page"),d=Ee({});const u={waiting:{label:"Waiting on Firstmate",class:"bg-warning/10 text-warning"},answered:{label:"Answered",class:"bg-success/10 text-success"},closed:{label:"Closed without an answer",class:"bg-muted text-muted-foreground"}};var o=rt();Se(o,23,()=>a.questions,s=>s.id,(s,t,E)=>{var x=tt(),C=k(x),m=k(C),H=N(m),P=g(m,2),R=N(P,!0);y(C);var G=g(C,2),I=N(G,!0),J=g(G,2);{var K=f=>{var l=$e(),p=ve(l);{var W=A=>{var F=Ze(),i=N(F,!0);z(()=>w(i,e(t).detail)),c(A,F)};X(p,A=>{d[e(t).id]&&A(W)})}var S=g(p,2),B=N(S,!0);z(()=>{V(S,"aria-expanded",!!d[e(t).id]),w(B,d[e(t).id]?"Show less":"Show the whole question")}),ne("click",S,()=>d[e(t).id]=!d[e(t).id]),c(f,l)};X(J,f=>{e(t).detail&&f(K)})}var v=g(J,2);{var h=f=>{var l=et(),p=k(l),W=g(k(p)),S=N(W,!0);y(p);var B=g(p,2);{var A=F=>{var i=qe(),M=N(i,!0);z(()=>w(M,e(t).reason)),c(F,i)};X(B,F=>{e(t).reason&&F(A)})}y(l),z(()=>w(S,e(t).verdict)),c(f,l)};X(v,f=>{e(t).verdict&&f(h)})}y(x),z(()=>{te(x,1,`rounded-md border border-hair bg-card ${n()==="card"?"px-2.5 py-2 text-xs":"px-3 py-2.5 text-sm"}`),V(x,"data-question",e(t).status),w(H,`Question ${e(E)+1}${e(t).where?` · ${e(t).where}`:""}${e(t).serious?" · marked serious":""}`),te(P,1,`rounded-full px-2 py-0.5 text-xs font-medium ${u[e(t).status].class??""}`),w(R,u[e(t).status].label),w(I,e(t).summary)}),c(s,x)}),y(o),c(r,o)}se(["click"]);export{gt as C,pt as I,_t as Q,ht as a,xt as r,Fe as s};
@@ -1,4 +1,4 @@
1
- import"./DsnmJJEf.js";import{l as wt,p as bt,m as F,q as kt,u as $t,t as f,a as n,b as St,c,g as e,h as d,s as a,o as v,r as i,d as p,v as h,i as b,n as T,w as q,f as B,x as Tt,y as At}from"./D46tdsTs.js";import{i as x}from"./DWAM9c1z.js";import{s as ke,a as Be,r as Rt,b as Dt,e as le,i as $e}from"./BLivoCTk.js";import{p as Pt}from"./Gbvs-EZ4.js";import{S as zt}from"./BXN538J3.js";import{D as Se}from"./xjN9NojQ.js";import{a as pe}from"./BCUUi0V0.js";import{B as G}from"./oiLSZkWa.js";var Ut=c('<span class="truncate text-muted-foreground"> </span>'),Wt=c("<p> </p>"),It=c('<p class="px-4 py-3 text-sm break-words text-danger" role="alert"> </p>'),Lt=c(`<div class="space-y-3 px-4 py-4 text-sm" data-testid="pairing"><p class="font-medium"> </p> <ol class="list-decimal space-y-1.5 pl-5"><li>On a device you trust, open <a class="break-all underline" target="_blank" rel="noreferrer noopener"> </a> yourself and sign in.</li> <li>Type this code there: <code class="tabular rounded bg-muted px-1.5 py-0.5 text-base" data-testid="pair-code"> </code></li> <li>Pick this machine’s fingerprint: <code class="tabular" data-testid="pair-fingerprint"> </code></li></ol> <p class="text-xs text-warning">Whoever approves this code can use this machine’s Wheelhouse from anywhere, terminals
1
+ import"./DsnmJJEf.js";import{l as wt,p as bt,m as F,q as kt,u as $t,t as f,a as n,b as St,c,g as e,h as d,s as a,o as v,r as i,d as p,v as h,i as b,n as T,w as q,f as B,x as Tt,y as At}from"./D46tdsTs.js";import{i as x}from"./DWAM9c1z.js";import{s as ke,a as Be,r as Rt,b as Dt,e as le,i as $e}from"./BLivoCTk.js";import{p as Pt}from"./s_exGbLS.js";import{S as zt}from"./BXN538J3.js";import{D as Se}from"./xjN9NojQ.js";import{a as pe}from"./BCUUi0V0.js";import{B as G}from"./oiLSZkWa.js";var Ut=c('<span class="truncate text-muted-foreground"> </span>'),Wt=c("<p> </p>"),It=c('<p class="px-4 py-3 text-sm break-words text-danger" role="alert"> </p>'),Lt=c(`<div class="space-y-3 px-4 py-4 text-sm" data-testid="pairing"><p class="font-medium"> </p> <ol class="list-decimal space-y-1.5 pl-5"><li>On a device you trust, open <a class="break-all underline" target="_blank" rel="noreferrer noopener"> </a> yourself and sign in.</li> <li>Type this code there: <code class="tabular rounded bg-muted px-1.5 py-0.5 text-base" data-testid="pair-code"> </code></li> <li>Pick this machine’s fingerprint: <code class="tabular" data-testid="pair-fingerprint"> </code></li></ol> <p class="text-xs text-warning">Whoever approves this code can use this machine’s Wheelhouse from anywhere, terminals
2
2
  included, so they can run commands here. Type the code yourself, only at the address
3
3
  above, and approve only when the fingerprint matches. If someone asked you for the code,
4
4
  press Stop.</p> <p class="text-xs text-muted-foreground"> </p></div>`),Nt=c('<p class="mt-1 text-xs text-muted-foreground">This machine is paired there. Revoke it to use another gateway.</p>'),Ot=c('<p class="break-all" data-testid="gateway"> </p> <!>',1),jt=c('<form class="flex flex-wrap items-center gap-2"><input type="url" class="min-w-0 flex-1 rounded-md border bg-background px-3 py-1.5 text-sm" aria-label="Gateway URL"/> <!></form> <p class="mt-1 text-xs text-muted-foreground"> </p>',1),Et=c(`<p><span class="font-medium"> </span> <span class="text-muted-foreground"> </span></p> <p class="mt-0.5 text-xs text-muted-foreground">Key fingerprint <code class="tabular" data-testid="fingerprint"> </code>, kept in <code class="break-all"> </code>, readable by your user only.
@@ -1,5 +1,5 @@
1
- import"./DsnmJJEf.js";import{m as g,g as l,v as m,p as Y,u as R,A as $,f as Z,s as tt,t as q,a as W,b as et,i as _,o as st,d as nt,c as V,q as N}from"./D46tdsTs.js";import{i as rt}from"./DWAM9c1z.js";import{s as ot}from"./BLivoCTk.js";import{b as it}from"./RbWQh321.js";import{p as C}from"./z5Xef_-v.js";import{p as at}from"./Gbvs-EZ4.js";import{S as A}from"./BXN538J3.js";import{r as P}from"./xjN9NojQ.js";import{w as ut}from"./C69eHrL5.js";const ct=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),lt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function dt(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function ht(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!ct.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return lt(s)?s:null}function D(e,t){const s=ht(e);if(s===null||t.reserved?.includes(s))return e;const n=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${n.pathname}${n.search}${n.hash}`}const X=new Set(["127.0.0.1","localhost"]);function te(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let n=!0;try{n=new URL(e).origin===t}catch{}return n?s:`${s} allow-same-origin`}const mt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function ft(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!X.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return mt(s)?s:null}function pt(e,t,s){const n=t?ft(e):null;if(n===null||!t)return e;const r=s.port||(s.protocol==="https:"?"443":"80");if(X.has(s.hostname.toLowerCase())&&String(n)===r)return e;const i=new URL(e),a=t.replace("{port}",String(n));return`${s.protocol}//${a}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class gt{#t=g(null);get to(){return l(this.#t)}set to(t){m(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){m(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){m(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?P(t,this.remote,location.origin):this.hosted?D(t,this.hosted):this.to?pt(t,this.to,location):t}sandbox(t){return this.remote?P(t,this.remote,location.origin):this.hosted&&dt(this.hosted.pattern)?D(t,{pattern:this.hosted.pattern}):t}}const O=new gt;function ee(e){const t=n=>{if(!O.active)return;const r=n.composedPath().find(a=>a instanceof HTMLAnchorElement&&a.hasAttribute("href"));if(!r)return;const i=O.view(r.href);i!==r.href&&(r.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const n of s)e.addEventListener(n,t,!0);return()=>{for(const n of s)e.removeEventListener(n,t,!0)}}async function yt(e,t,s,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[A]:s},body:JSON.stringify(t)});if(r.ok){const a=await r.json().catch(()=>null);return a?.message?.delivery==="failed"?{ok:!1,error:a.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:r.status===202}}return{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function kt(e,t,s){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[A]:s},body:JSON.stringify(t)}),r=await n.json().catch(()=>null);return n.ok&&Array.isArray(r?.points)?{ok:!0,points:r.points}:{ok:!1,error:r?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const bt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function wt(e){try{const t=await fetch(`/api/services?${bt(e)}`);return t.ok?await t.json():null}catch{return null}}async function vt(e,t,s=null){const n=window.open("","_blank");try{n?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let r=null;try{const a=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});r=a.ok?await a.json():{...await a.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${a.status}).`}}catch{r=null}const i=r?.state==="running"?s??r.url:null;if(i){const a=O.view(i);n?n.location.href=a:window.open(a,"_blank")}else n?.close();return r}const St=5e3,U=new Map;function xt(e,t){let s=U.get(e);return s||(s=t(e).catch(n=>{throw U.delete(e),n}),U.set(e,s)),s}const F=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function _t(e,t){const s=e.pluginId,n=(i,a)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const d=a===void 0?e.projectId:a;return{plugin:s,service:i,project:typeof d=="string"&&d?d:null}},r=i=>{const a=typeof i=="object"&&i!==null?i:{},d=typeof a.task=="string"&&a.task?a.task:e.taskId??null;return d?{taskId:d,subject:typeof a.subject=="string"?a.subject:null,items:Array.isArray(a.items)?a.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,a={})=>t.status(n(i,a.project)),launch:async(i,a={})=>t.launch(n(i,a.project),t.token(),typeof a.open=="string"?a.open:null),sendFeedback:async i=>{if(!(t.clicked??F)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const a=r(i);return a?t.feedback(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??F)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const a=r(i);return a?t.summarise(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Et(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await xt(t.ui,t.importer??(r=>import(r)))}catch(r){throw new Error(`its UI bundle did not load (${r instanceof Error?r.message:String(r)})`)}let n;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((r,i)=>{n=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??St)})])}finally{clearTimeout(n)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var Tt=V('<p class="text-sm text-muted-foreground"> </p>'),At=V('<div class="contents"></div> <!>',1);function se(e,t){Y(t,!0);let s=C(t,"preview",3,void 0),n=C(t,"quiet",3,!1);const r=_(()=>"element"in t.entry.render?t.entry.render.element:""),i=_(()=>t.entry.ui??null);let a=g(null),d=g(null),b=g(null);R(()=>{if(!l(a)||!l(r))return;const k=l(a);let v=!1,T=null;return m(b,null),Et(k,{tag:l(r),ui:l(i),data:$(()=>t.data),entry:$(()=>t.entry),host:_t($(()=>t.entry),{status:wt,launch:vt,feedback:yt,summarise:kt,token:()=>at.data.sessionToken??""}),importer:t.importer}).then(o=>{T=o,v?o.remove():m(d,o,!0)},o=>{v||m(b,o.message,!0)}),()=>{v=!0,T?.remove(),m(d,null)}}),R(()=>{l(d)&&(s()!==void 0&&(l(d).preview=s()),l(d).entry=t.entry,l(d).data=t.data)});var y=At(),x=Z(y);it(x,k=>m(a,k),()=>l(a));var E=tt(x,2);{var w=k=>{var v=Tt(),T=st(v);q(()=>nt(T,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(b)??""}.`)),W(k,v)};rt(E,k=>{l(b)&&!n()&&k(w)})}q(()=>ot(x,"data-plugin-element",l(r))),W(e,y),et()}const jt=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,J=/^\[Request interrupted by user/,It=/\u001b\[[0-9;?]*[A-Za-z]/g,L=e=>String(e??"").split("/").filter(Boolean).pop()??"",M=e=>String(e??"").split(`
2
- `)[0].trim(),$t=e=>{try{return new URL(String(e)).host}catch{return String(e??"")}};function Ut(e,t){switch(e){case"Bash":return{verb:"Ran",summary:t.description||M(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:L(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:L(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:L(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:$t(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:M(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||M(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const s=e.match(/^mcp__(.+?)__(.+)$/);return s?{verb:"Used",summary:`${s[2].replace(/_/g," ")} (${s[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:e,noun:["tool call","tool calls"]}}}}function Lt(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
3
- `):""}const j=e=>e.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),Mt=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,H=e=>{const t=e.match(Mt);return t&&j(t[1])||null};function I(e,t){const s=e.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return s?s[1].trim():null}function B(e){const t=I(e,"command-name");if(!t)return null;const s=I(e,"command-args");return s?`${t} ${s}`:t}function Ot(e){return(Array.isArray(e?.questions)?e.questions:[]).map(s=>({header:String(s?.header??""),question:String(s?.question??""),multiSelect:s?.multiSelect===!0,options:(Array.isArray(s?.options)?s.options:[]).map(n=>({label:String(n?.label??""),description:String(n?.description??"")}))}))}function Rt(e,t){const s=e.toolUseResult?.answers;if(s&&typeof s=="object")return Object.fromEntries(Object.entries(s).map(([r,i])=>[r,String(i)]));const n={};for(const r of t.matchAll(/"([^"]+)"="([^"]*)"/g))n[r[1]]=r[2];return n}function qt(e){const t=[],s=new Map,n=new Map;let r=null,i=null,a=null,d=null,b=!1;const y=()=>{i=null},x=o=>(i||(i={kind:"turn",id:o.uuid,parts:[],at:o.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:b?"background":"captain"},b=!1,t.push(i),a=i),i),E=o=>{const p=x(o),u=p.parts[p.parts.length-1];if(u?.kind==="activity")return u;const c={kind:"activity",id:`${o.uuid}-a`,steps:[]};return p.parts.push(c),c},w=(o,p,u={})=>{y(),b=!1,t.push({kind:"user",id:o.uuid,text:p,at:o.timestamp,queued:!!u.queued,command:!!u.command})},k=(o,p,u,c=o.uuid)=>{i&&E(o).steps.push({kind:"context",id:c,label:p,detail:u})};for(const o of e){if(!o||typeof o!="object"||o.isSidechain)continue;const p=o.timestamp??null;switch(o.type){case"ai-title":r=o.aiTitle??r;break;case"user":{const u=o.message?.content;if(typeof u=="string")if(o.origin?.kind==="task-notification"||u.trimStart().startsWith("<task-notification>"))y(),b=!0;else if(o.isMeta){const c=H(u);c?w(o,c,{queued:!0}):k(o,"Context added",u)}else if(J.test(u.trim()))a&&(a.interrupted=!0);else{const c=B(u);if(c)w(o,c,{command:!0});else if(!u.includes("<local-command-stdout>")){const h=j(u);h&&w(o,h)}}else if(Array.isArray(u))for(const c of u)if(c?.type==="tool_result"){const h=Lt(c.content),f=s.get(c.tool_use_id);f&&(f.result=h,f.isError=!!c.is_error);const S=n.get(c.tool_use_id);S&&(S.answers=c.is_error?{}:Rt(o,h))}else if(c?.type==="text"){const h=String(c.text??""),f=H(h);if(J.test(h.trim()))a&&(a.interrupted=!0);else if(f)w(o,f,{queued:!0});else if(o.isMeta||o.sourceToolUseID){const S=h.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";k(o,S,h,`${o.uuid}-${S}`)}else{const S=j(h);S&&w(o,S)}}else c?.type==="image"&&w(o,"[image]");break}case"assistant":{for(const u of o.message?.content??[])if(u?.type==="thinking"||u?.type==="redacted_thinking"){const c=d&&p?Date.parse(p)-Date.parse(d):null;E(o).steps.push({kind:"thinking",id:`${o.uuid}-th`,ms:c})}else if(u?.type==="tool_use"&&u.name==="AskUserQuestion"){const c={kind:"question",id:u.id,questions:Ot(u.input),answers:null};n.set(u.id,c),x(o).parts.push(c)}else if(u?.type==="tool_use"){const c=Ut(String(u.name),u.input??{}),h={kind:"tool",id:u.id,name:String(u.name),...c,input:u.input,result:null,isError:!1};s.set(u.id,h),E(o).steps.push(h)}else if(u?.type==="text"){if(!String(u.text??"").trim())continue;x(o).parts.push({kind:"text",id:`${o.uuid}-t`,text:u.text})}break}case"attachment":{const u=o.attachment??{};if(u.type==="queued_command"&&typeof u.prompt=="string"&&(u.commandMode??"prompt")==="prompt"){const c=j(u.prompt);c&&w(o,c,{queued:!0})}else if(u.type==="hook_additional_context"){const c=Array.isArray(u.content)?u.content.join(`
4
- `):String(u.content??"");k(o,`Hook added context${u.hookEvent?` (${u.hookEvent})`:""}`,c)}break}case"system":{if(o.subtype==="turn_duration")a&&(a.durationMs=o.durationMs??null,a.done=!0),y();else if(o.subtype==="away_summary")y(),t.push({kind:"notice",id:o.uuid,title:"While you were away",detail:String(o.content??""),at:o.timestamp});else if(o.subtype==="local_command"){const u=String(o.content??""),c=I(u,"local-command-stdout")??I(u,"local-command-stderr"),h=B(u);if(h)w(o,h,{command:!0});else if(c!==null){const f=c.replace(It,"").trim();f&&t.push({kind:"output",id:o.uuid,text:f,at:o.timestamp})}}break}}p&&(d=p)}const v=[];return{items:t.filter((o,p)=>{if(o.kind!=="turn"||o.trigger!=="background")return!0;const u=o.parts.filter(f=>f.kind==="text").map(f=>f.text).join(`
5
- `).trim(),h=!o.parts.some(f=>f.kind==="question")&&(!u||jt.test(u));return v.push({id:o.id,at:o.at,durationMs:o.durationMs,done:o.done||p<t.length-1,outcome:h?"quiet":"reported"}),!h}),title:r,checks:v}}function ne(e){const t=new Map;let s=!1,n=0;for(const i of e){if(i.kind==="thinking"&&(s=!0,n+=i.ms??0),i.kind!=="tool")continue;const a=t.get(i.noun[0])??{n:0,noun:i.noun};a.n++,t.set(i.noun[0],a)}const r=[...t.values()].map(i=>`${i.n} ${i.n===1?i.noun[0]:i.noun[1]}`);return r.length?r.join(", "):s?n>=1e3?`Thought for ${Wt(n)}`:"Thought briefly":"Read some context"}function Wt(e){if(e==null||e<0)return"";const t=Math.round(e/1e3);if(t<60)return`${t}s`;const s=Math.floor(t/60);return s<60?`${s}m ${t%60}s`:`${Math.floor(s/60)}h ${s%60}m`}function re(e){const t=[];for(const s of e)if(s.kind==="turn"){for(const n of s.parts)if(n.kind==="activity")for(const r of n.steps)r.kind==="tool"&&r.result!==null&&r.name.startsWith("mcp__")&&t.push(r.id)}return t}const Nt=2,Q=e=>` ${e.replace(/\s+/g," ").trim()} `,z=e=>e[e.length-1]?.id??null,Ct=(e,t)=>t===null?-1:e.findIndex(s=>s.id===t),G=e=>e?.kind==="turn";function Pt(e,t){const s=new Map;return e.filter(n=>{if(n.state==="sending"||n.state==="failed")return!0;const r=Ct(t,n.after),i=t.slice(r+1);if(n.via==="inbox")return!i.some(G);const a=Q(n.text),d=s.get(a)??0;return i.filter(y=>y.kind==="user"&&Q(y.text).includes(a)).length>d?(s.set(a,d+1),!1):i.filter(y=>G(y)&&y.done).length<Nt})}function oe(e){switch(e.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return e.error?`Not sent · ${e.error}`:"Not sent";default:return e.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const K=6e3;class Dt{#t=g(null);get session(){return l(this.#t)}set session(t){m(this.#t,t,!0)}#e=g(null);get source(){return l(this.#e)}set source(t){m(this.#e,t,!0)}#s=g([]);get records(){return l(this.#s)}set records(t){m(this.#s,t)}#n=g("connecting");get connection(){return l(this.#n)}set connection(t){m(this.#n,t,!0)}#r=g(0);get resets(){return l(this.#r)}set resets(t){m(this.#r,t,!0)}#o=g(!1);get synced(){return l(this.#o)}set synced(t){m(this.#o,t,!0)}#i=g(N([]));get commands(){return l(this.#i)}set commands(t){m(this.#i,t,!0)}#a=_(()=>qt(this.records));get chat(){return l(this.#a)}set chat(t){m(this.#a,t)}#u=_(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return l(this.#u)}set working(t){m(this.#u,t)}#c=_(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&this.working);get atWork(){return l(this.#c)}set atWork(t){m(this.#c,t)}#l=g(N([]));get outbox(){return l(this.#l)}set outbox(t){m(this.#l,t,!0)}#d=_(()=>Pt(this.outbox,this.chat.items));get pending(){return l(this.#d)}set pending(t){m(this.#d,t)}close=null;connect(){if(this.close)return()=>{};this.synced=!1;const t=s=>{s.addEventListener("session",n=>{this.session=JSON.parse(n.data),this.connection="open"}),s.addEventListener("reset",n=>{this.source=JSON.parse(n.data),this.records=[],this.resets++}),s.addEventListener("records",n=>{const r=[...this.records,...JSON.parse(n.data)];this.records=r.length>K?r.slice(-K):r}),s.addEventListener("synced",()=>this.synced=!0)};return this.close=ut("/api/firstmate/chat",t,s=>this.connection=s),this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}async send(t,s,n,r){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:s,state:"sending",error:null,after:z(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],n,r)}retry(t,s,n){const r=this.outbox.find(i=>i.id===t);!r||r.state!=="failed"||(r.after=z(this.chat.items),this.deliver(r,s,n))}dismiss(t){this.outbox=this.outbox.filter(s=>s.id!==t)}async deliver(t,s,n){t.state="sending",t.error=null;const r=t.via==="inbox"?await Jt(t.text,s):await Ft("/api/firstmate/input",s,{text:t.text});return r.ok?t.state=n&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=r.error),r}prune(){const t=new Set(this.pending.map(s=>s.id));this.outbox=this.outbox.filter(s=>t.has(s.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const ie=new Dt;async function Ft(e,t,s){try{const n=await fetch(e,{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify(s??{})});return n.ok?{ok:!0}:{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Jt(e,t,s=null,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[A]:t},body:JSON.stringify({text:e,taskId:s})});return r.ok?{ok:!0,pending:r.status===202}:{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{se as P,O as a,X as b,ne as c,Wt as d,ie as e,te as f,Ft as g,re as h,oe as p,ee as r,Jt as s};
1
+ import"./DsnmJJEf.js";import{m as g,g as l,v as m,p as Y,u as q,A as L,f as Z,s as tt,t as N,a as W,b as et,i as _,o as st,d as nt,c as V,q as C}from"./D46tdsTs.js";import{i as rt}from"./DWAM9c1z.js";import{s as ot}from"./BLivoCTk.js";import{b as it}from"./RbWQh321.js";import{p as P}from"./z5Xef_-v.js";import{p as at}from"./s_exGbLS.js";import{S as A}from"./BXN538J3.js";import{r as D}from"./xjN9NojQ.js";import{w as ut}from"./CogyHa6-.js";const ct=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),lt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function dt(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function ht(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!ct.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return lt(s)?s:null}function F(e,t){const s=ht(e);if(s===null||t.reserved?.includes(s))return e;const r=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${r.pathname}${r.search}${r.hash}`}const X=new Set(["127.0.0.1","localhost"]);function te(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let r=!0;try{r=new URL(e).origin===t}catch{}return r?s:`${s} allow-same-origin`}const mt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function ft(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!X.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return mt(s)?s:null}function pt(e,t,s){const r=t?ft(e):null;if(r===null||!t)return e;const n=s.port||(s.protocol==="https:"?"443":"80");if(X.has(s.hostname.toLowerCase())&&String(r)===n)return e;const i=new URL(e),a=t.replace("{port}",String(r));return`${s.protocol}//${a}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class gt{#t=g(null);get to(){return l(this.#t)}set to(t){m(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){m(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){m(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?D(t,this.remote,location.origin):this.hosted?F(t,this.hosted):this.to?pt(t,this.to,location):t}sandbox(t){return this.remote?D(t,this.remote,location.origin):this.hosted&&dt(this.hosted.pattern)?F(t,{pattern:this.hosted.pattern}):t}}const R=new gt;function ee(e){const t=r=>{if(!R.active)return;const n=r.composedPath().find(a=>a instanceof HTMLAnchorElement&&a.hasAttribute("href"));if(!n)return;const i=R.view(n.href);i!==n.href&&(n.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const r of s)e.addEventListener(r,t,!0);return()=>{for(const r of s)e.removeEventListener(r,t,!0)}}async function yt(e,t,s,r=`wh-${crypto.randomUUID()}`){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":r,[A]:s},body:JSON.stringify(t)});if(n.ok){const a=await n.json().catch(()=>null);return a?.message?.delivery==="failed"?{ok:!1,error:a.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:n.status===202}}return{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function kt(e,t,s){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[A]:s},body:JSON.stringify(t)}),n=await r.json().catch(()=>null);return r.ok&&Array.isArray(n?.points)?{ok:!0,points:n.points}:{ok:!1,error:n?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const bt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function wt(e){try{const t=await fetch(`/api/services?${bt(e)}`);return t.ok?await t.json():null}catch{return null}}async function vt(e,t,s=null){const r=window.open("","_blank");try{r?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let n=null;try{const a=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});n=a.ok?await a.json():{...await a.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${a.status}).`}}catch{n=null}const i=n?.state==="running"?s??n.url:null;if(i){const a=R.view(i);r?r.location.href=a:window.open(a,"_blank")}else r?.close();return n}const St=5e3,U=new Map;function xt(e,t){let s=U.get(e);return s||(s=t(e).catch(r=>{throw U.delete(e),r}),U.set(e,s)),s}const J=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function _t(e,t){const s=e.pluginId,r=(i,a)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const d=a===void 0?e.projectId:a;return{plugin:s,service:i,project:typeof d=="string"&&d?d:null}},n=i=>{const a=typeof i=="object"&&i!==null?i:{},d=typeof a.task=="string"&&a.task?a.task:e.taskId??null;return d?{taskId:d,subject:typeof a.subject=="string"?a.subject:null,items:Array.isArray(a.items)?a.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,a={})=>t.status(r(i,a.project)),launch:async(i,a={})=>t.launch(r(i,a.project),t.token(),typeof a.open=="string"?a.open:null),sendFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const a=n(i);return a?t.feedback(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const a=n(i);return a?t.summarise(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Et(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await xt(t.ui,t.importer??(n=>import(n)))}catch(n){throw new Error(`its UI bundle did not load (${n instanceof Error?n.message:String(n)})`)}let r;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((n,i)=>{r=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??St)})])}finally{clearTimeout(r)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var Tt=V('<p class="text-sm text-muted-foreground"> </p>'),At=V('<div class="contents"></div> <!>',1);function se(e,t){Y(t,!0);let s=P(t,"preview",3,void 0),r=P(t,"quiet",3,!1);const n=_(()=>"element"in t.entry.render?t.entry.render.element:""),i=_(()=>t.entry.ui??null);let a=g(null),d=g(null),b=g(null);q(()=>{if(!l(a)||!l(n))return;const k=l(a);let v=!1,T=null;return m(b,null),Et(k,{tag:l(n),ui:l(i),data:L(()=>t.data),entry:L(()=>t.entry),host:_t(L(()=>t.entry),{status:wt,launch:vt,feedback:yt,summarise:kt,token:()=>at.data.sessionToken??""}),importer:t.importer}).then(o=>{T=o,v?o.remove():m(d,o,!0)},o=>{v||m(b,o.message,!0)}),()=>{v=!0,T?.remove(),m(d,null)}}),q(()=>{l(d)&&(s()!==void 0&&(l(d).preview=s()),l(d).entry=t.entry,l(d).data=t.data)});var y=At(),x=Z(y);it(x,k=>m(a,k),()=>l(a));var E=tt(x,2);{var w=k=>{var v=Tt(),T=st(v);N(()=>nt(T,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(b)??""}.`)),W(k,v)};rt(E,k=>{l(b)&&!r()&&k(w)})}N(()=>ot(x,"data-plugin-element",l(n))),W(e,y),et()}const jt=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,H=/^\[Request interrupted by user/,It=/\u001b\[[0-9;?]*[A-Za-z]/g,O=e=>String(e??"").split("/").filter(Boolean).pop()??"",M=e=>String(e??"").split(`
2
+ `)[0].trim(),$t=e=>{try{return new URL(String(e)).host}catch{return String(e??"")}};function Lt(e,t){switch(e){case"Bash":return{verb:"Ran",summary:t.description||M(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:O(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:O(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:O(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:$t(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:M(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||M(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const s=e.match(/^mcp__(.+?)__(.+)$/);return s?{verb:"Used",summary:`${s[2].replace(/_/g," ")} (${s[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:e,noun:["tool call","tool calls"]}}}}function Ut(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
3
+ `):""}const I=e=>e.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),Ot=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,B=e=>{const t=e.match(Ot);return t&&I(t[1])||null};function $(e,t){const s=e.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return s?s[1].trim():null}function Q(e){const t=$(e,"command-name");if(!t)return null;const s=$(e,"command-args");return s?`${t} ${s}`:t}function Mt(e){return(Array.isArray(e?.questions)?e.questions:[]).map(s=>({header:String(s?.header??""),question:String(s?.question??""),multiSelect:s?.multiSelect===!0,options:(Array.isArray(s?.options)?s.options:[]).map(r=>({label:String(r?.label??""),description:String(r?.description??"")}))}))}function Rt(e,t){const s=e.toolUseResult?.answers;if(s&&typeof s=="object")return Object.fromEntries(Object.entries(s).map(([n,i])=>[n,String(i)]));const r={};for(const n of t.matchAll(/"([^"]+)"="([^"]*)"/g))r[n[1]]=n[2];return r}function qt(e){const t=[],s=new Map,r=new Map;let n=null,i=null,a=null,d=null,b=!1;const y=()=>{i=null},x=o=>(i||(i={kind:"turn",id:o.uuid,parts:[],at:o.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:b?"background":"captain"},b=!1,t.push(i),a=i),i),E=o=>{const p=x(o),u=p.parts[p.parts.length-1];if(u?.kind==="activity")return u;const c={kind:"activity",id:`${o.uuid}-a`,steps:[]};return p.parts.push(c),c},w=(o,p,u={})=>{y(),b=!1,t.push({kind:"user",id:o.uuid,text:p,at:o.timestamp,queued:!!u.queued,command:!!u.command})},k=(o,p,u,c=o.uuid)=>{i&&E(o).steps.push({kind:"context",id:c,label:p,detail:u})};for(const o of e){if(!o||typeof o!="object"||o.isSidechain)continue;const p=o.timestamp??null;switch(o.type){case"ai-title":n=o.aiTitle??n;break;case"user":{const u=o.message?.content;if(typeof u=="string")if(o.origin?.kind==="task-notification"||u.trimStart().startsWith("<task-notification>"))y(),b=!0;else if(o.isMeta){const c=B(u);c?w(o,c,{queued:!0}):k(o,"Context added",u)}else if(H.test(u.trim()))a&&(a.interrupted=!0);else{const c=Q(u);if(c)w(o,c,{command:!0});else if(!u.includes("<local-command-stdout>")){const h=I(u);h&&w(o,h)}}else if(Array.isArray(u))for(const c of u)if(c?.type==="tool_result"){const h=Ut(c.content),f=s.get(c.tool_use_id);f&&(f.result=h,f.isError=!!c.is_error);const S=r.get(c.tool_use_id);S&&(S.answers=c.is_error?{}:Rt(o,h))}else if(c?.type==="text"){const h=String(c.text??""),f=B(h);if(H.test(h.trim()))a&&(a.interrupted=!0);else if(f)w(o,f,{queued:!0});else if(o.isMeta||o.sourceToolUseID){const S=h.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";k(o,S,h,`${o.uuid}-${S}`)}else{const S=I(h);S&&w(o,S)}}else c?.type==="image"&&w(o,"[image]");break}case"assistant":{for(const u of o.message?.content??[])if(u?.type==="thinking"||u?.type==="redacted_thinking"){const c=d&&p?Date.parse(p)-Date.parse(d):null;E(o).steps.push({kind:"thinking",id:`${o.uuid}-th`,ms:c})}else if(u?.type==="tool_use"&&u.name==="AskUserQuestion"){const c={kind:"question",id:u.id,questions:Mt(u.input),answers:null};r.set(u.id,c),x(o).parts.push(c)}else if(u?.type==="tool_use"){const c=Lt(String(u.name),u.input??{}),h={kind:"tool",id:u.id,name:String(u.name),...c,input:u.input,result:null,isError:!1};s.set(u.id,h),E(o).steps.push(h)}else if(u?.type==="text"){if(!String(u.text??"").trim())continue;x(o).parts.push({kind:"text",id:`${o.uuid}-t`,text:u.text})}break}case"attachment":{const u=o.attachment??{};if(u.type==="queued_command"&&typeof u.prompt=="string"&&(u.commandMode??"prompt")==="prompt"){const c=I(u.prompt);c&&w(o,c,{queued:!0})}else if(u.type==="hook_additional_context"){const c=Array.isArray(u.content)?u.content.join(`
4
+ `):String(u.content??"");k(o,`Hook added context${u.hookEvent?` (${u.hookEvent})`:""}`,c)}break}case"system":{if(o.subtype==="turn_duration")a&&(a.durationMs=o.durationMs??null,a.done=!0),y();else if(o.subtype==="away_summary")y(),t.push({kind:"notice",id:o.uuid,title:"While you were away",detail:String(o.content??""),at:o.timestamp});else if(o.subtype==="local_command"){const u=String(o.content??""),c=$(u,"local-command-stdout")??$(u,"local-command-stderr"),h=Q(u);if(h)w(o,h,{command:!0});else if(c!==null){const f=c.replace(It,"").trim();f&&t.push({kind:"output",id:o.uuid,text:f,at:o.timestamp})}}break}}p&&(d=p)}const v=[];return{items:t.filter((o,p)=>{if(o.kind!=="turn"||o.trigger!=="background")return!0;const u=o.parts.filter(f=>f.kind==="text").map(f=>f.text).join(`
5
+ `).trim(),h=!o.parts.some(f=>f.kind==="question")&&(!u||jt.test(u));return v.push({id:o.id,at:o.at,durationMs:o.durationMs,done:o.done||p<t.length-1,outcome:h?"quiet":"reported"}),!h}),title:n,checks:v}}function ne(e){const t=new Map;let s=!1,r=0;for(const i of e){if(i.kind==="thinking"&&(s=!0,r+=i.ms??0),i.kind!=="tool")continue;const a=t.get(i.noun[0])??{n:0,noun:i.noun};a.n++,t.set(i.noun[0],a)}const n=[...t.values()].map(i=>`${i.n} ${i.n===1?i.noun[0]:i.noun[1]}`);return n.length?n.join(", "):s?r>=1e3?`Thought for ${Nt(r)}`:"Thought briefly":"Read some context"}function Nt(e){if(e==null||e<0)return"";const t=Math.round(e/1e3);if(t<60)return`${t}s`;const s=Math.floor(t/60);return s<60?`${s}m ${t%60}s`:`${Math.floor(s/60)}h ${s%60}m`}function re(e){const t=[];for(const s of e)if(s.kind==="turn"){for(const r of s.parts)if(r.kind==="activity")for(const n of r.steps)n.kind==="tool"&&n.result!==null&&n.name.startsWith("mcp__")&&t.push(n.id)}return t}const Wt=2,z=e=>` ${e.replace(/\s+/g," ").trim()} `,G=e=>e[e.length-1]?.id??null,Ct=(e,t)=>t===null?-1:e.findIndex(s=>s.id===t),K=e=>e?.kind==="turn";function Pt(e,t){const s=new Map;return e.filter(r=>{if(r.state==="sending"||r.state==="failed")return!0;const n=Ct(t,r.after),i=t.slice(n+1);if(r.via==="inbox")return!i.some(K);const a=z(r.text),d=s.get(a)??0;return i.filter(y=>y.kind==="user"&&z(y.text).includes(a)).length>d?(s.set(a,d+1),!1):i.filter(y=>K(y)&&y.done).length<Wt})}function oe(e){switch(e.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return e.error?`Not sent · ${e.error}`:"Not sent";default:return e.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const j=6e3;class Dt{#t=g(null);get session(){return l(this.#t)}set session(t){m(this.#t,t,!0)}#e=g(null);get source(){return l(this.#e)}set source(t){m(this.#e,t,!0)}#s=g([]);get records(){return l(this.#s)}set records(t){m(this.#s,t)}#n=g("connecting");get connection(){return l(this.#n)}set connection(t){m(this.#n,t,!0)}#r=g(0);get resets(){return l(this.#r)}set resets(t){m(this.#r,t,!0)}#o=g(!1);get synced(){return l(this.#o)}set synced(t){m(this.#o,t,!0)}#i=g(C([]));get commands(){return l(this.#i)}set commands(t){m(this.#i,t,!0)}#a=_(()=>qt(this.records));get chat(){return l(this.#a)}set chat(t){m(this.#a,t)}#u=_(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return l(this.#u)}set working(t){m(this.#u,t)}#c=_(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&this.working);get atWork(){return l(this.#c)}set atWork(t){m(this.#c,t)}#l=g(C([]));get outbox(){return l(this.#l)}set outbox(t){m(this.#l,t,!0)}#d=_(()=>Pt(this.outbox,this.chat.items));get pending(){return l(this.#d)}set pending(t){m(this.#d,t)}close=null;connect(){if(this.close)return()=>{};this.synced=!1;const t=s=>{s.addEventListener("session",r=>{this.session=JSON.parse(r.data),this.connection="open"}),s.addEventListener("reset",r=>{this.source=JSON.parse(r.data),this.records=[],this.resets++}),s.addEventListener("records",r=>{const n=[...this.records,...JSON.parse(r.data)];this.records=n.length>j?n.slice(-j):n}),s.addEventListener("replace",r=>{const n=JSON.parse(r.data);this.records=n.length>j?n.slice(-j):n}),s.addEventListener("synced",()=>this.synced=!0)};return this.close=ut("/api/firstmate/chat",t,s=>this.connection=s),this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}async send(t,s,r,n){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:s,state:"sending",error:null,after:G(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],r,n)}retry(t,s,r){const n=this.outbox.find(i=>i.id===t);!n||n.state!=="failed"||(n.after=G(this.chat.items),this.deliver(n,s,r))}dismiss(t){this.outbox=this.outbox.filter(s=>s.id!==t)}async deliver(t,s,r){t.state="sending",t.error=null;const n=t.via==="inbox"?await Jt(t.text,s):await Ft("/api/firstmate/input",s,{text:t.text});return n.ok?t.state=r&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=n.error),n}prune(){const t=new Set(this.pending.map(s=>s.id));this.outbox=this.outbox.filter(s=>t.has(s.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const ie=new Dt;async function Ft(e,t,s){try{const r=await fetch(e,{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify(s??{})});return r.ok?{ok:!0}:{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Jt(e,t,s=null,r=`wh-${crypto.randomUUID()}`){try{const n=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":r,[A]:t},body:JSON.stringify({text:e,taskId:s})});return n.ok?{ok:!0,pending:n.status===202}:{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{se as P,R as a,X as b,ne as c,Nt as d,ie as e,te as f,Ft as g,re as h,oe as p,ee as r,Jt as s};
@@ -1 +1 @@
1
- import{p as r}from"./B-rYWQGG.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
1
+ import{p as r}from"./yQaRdTPY.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
@@ -0,0 +1,2 @@
1
+ @du�cT3?~A������C��ˬ���'J<�4*� ������2�ҳ�n�
2
+ ���~�i�n敁��=2~s�d�ME��6wS��ǔ�L��M��lS]+dE� eRv(C�=bk���M���������
@@ -0,0 +1 @@
1
+ import{o as y}from"./D8OKqJm7.js";import{aa as p,bD as N,m as u,g as f,v as d}from"./D46tdsTs.js";const h=[];function k(e,t=p){let n=null;const s=new Set;function r(o){if(N(e,o)&&(e=o,n)){const c=!h.length;for(const l of s)l[1](),h.push(l,e);if(c){for(let l=0;l<h.length;l+=2)h[l][0](h[l+1]);h.length=0}}}function i(o){r(o(e))}function a(o,c=p){const l=[o,c];return s.add(l),s.size===1&&(n=t(r,i)||p),o(e),()=>{s.delete(l),s.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:a}}const L="1794585521751";new URL("sveltekit-internal://");function D(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function H(e){return e.split("%25").map(decodeURI).join("%25")}function K(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function B({href:e}){return e.split("#")[0]}function O(){}function x(...e){let t=5381;for(const n of e)if(typeof n=="string"){let s=n.length;for(;s;)t=t*33^n.charCodeAt(--s)}else if(ArrayBuffer.isView(n)){const s=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=s.length;for(;r;)t=t*33^s[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function $(e){const t=atob(e),n=new Uint8Array(t.length);for(let s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}const q=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&b.delete(m(e)),q(e,t));const b=new Map;function W(e,t){const n=m(e,t),s=document.querySelector(n);if(s?.textContent){s.remove();let{body:r,...i}=JSON.parse(s.textContent);s.getAttribute("data-b64")!==null&&(r=$(r));const o=s.getAttribute("data-ttl");return o&&b.set(n,{body:r,init:i,ttl:1e3*Number(o)}),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function X(e,t,n){if(b.size>0){const s=m(e,n),r=b.get(s);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);b.delete(s)}}return window.fetch(t,n)}function m(e,t){let s=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),s+=`[data-hash="${x(...r)}"]`}return s}const C=globalThis.__sveltekit_14orln7?.base??"",P=globalThis.__sveltekit_14orln7?.assets??C??"",J="sveltekit:snapshot",M="sveltekit:scroll",F="sveltekit:states",Q="sveltekit:pageurl",Z="sveltekit:history",ee="sveltekit:navigation",v={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function te(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ne(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...v,"":v.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function se(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function re(e,t,n){let s;try{if(s=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&s.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";s.hash=`#${o}${s.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!s||!!r||V(s,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=s?.origin===E&&e.hasAttribute("download");return{url:s,external:i,target:r,download:a}}function oe(e){let t=null,n=null,s=null,r=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)s===null&&(s=g(o,"preload-code")),r===null&&(r=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[s??"off"],preload_data:S[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function ae(e){const t=k(e);let n=!0;function s(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&a(o=c)})}return{notify:s,set:r,subscribe:i}}const U={v:O};function ie(){const{set:e,subscribe:t}=k(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${P}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==L;return a&&(e(!0),U.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:s}}function V(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function le(e){}const I=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...I];const j=new Set([...I]);[...j];let w,A,_;const G=y.toString().includes("$$")||/function \w+\(\) \{\}/.test(y.toString()),R="a:";G?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(R)},A={current:null},_={current:!1}):(w=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#s=u({});get params(){return f(this.#s)}set params(t){d(this.#s,t)}#r=u({id:null});get route(){return f(this.#r)}set route(t){d(this.#r,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL(R));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},A=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},U.v=()=>_.current=!0);function de(e){Object.assign(w,e)}export{Z as H,ee as N,Q as P,F as S,A as a,C as b,oe as c,B as d,K as e,se as f,re as g,D as h,V as i,ie as j,ae as k,v as l,H as m,O as n,E as o,w as p,J as q,te as r,ne as s,X as t,de as u,W as v,k as w,M as x,le as y};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DuFkC-WN.js","../chunks/DsnmJJEf.js","../chunks/D8OKqJm7.js","../chunks/D46tdsTs.js","../chunks/DWAM9c1z.js","../chunks/DTJjRJA0.js","../chunks/DT69KRC9.js","../chunks/BLivoCTk.js","../chunks/DjTSkyf1.js","../chunks/yQaRdTPY.js","../chunks/s_exGbLS.js","../chunks/CogyHa6-.js","../chunks/Bo073DIH.js","../chunks/C_4BzEag.js","../chunks/BXN538J3.js","../chunks/n-cYDyaA.js","../chunks/RbWQh321.js","../chunks/z5Xef_-v.js","../chunks/xjN9NojQ.js","../chunks/DfZeJIs0.js","../chunks/cwI46DFb.js","../chunks/DJNADPa5.js","../chunks/DQWdnL7h.js","../chunks/Cqz3pSYE.js","../chunks/oiLSZkWa.js","../chunks/BC4SXzSU.js","../chunks/BE305dTg.js","../chunks/B4gzexCn.js","../chunks/CrXwYZhk.js","../chunks/Cfp1M-Wz.js","../chunks/1X9ywHoQ.js","../chunks/BjWKWeiq.js","../chunks/CLy6GMrT.js","../chunks/BnAtF53u.js","../chunks/CSU-6kdN.js","../chunks/DGbhmTqV.js","../chunks/DSINNCaW.js","../chunks/DVy4dK4b.js","../chunks/BCUUi0V0.js","../chunks/DRincNoR.js","../chunks/Bfjk3-L1.js","../chunks/ClsjySa8.js","../chunks/BY5XjwMm.js","../chunks/Cj98EUBO.js","../chunks/BXPZKlNj.js","../chunks/DDbzEejx.js","../chunks/CLqzYFT0.js","../chunks/DDUqjgjq.js","../chunks/DE_ENZzQ.js","../chunks/DvIo_832.js","../chunks/CwCeO535.js","../chunks/Bce3Ttpa.js","../chunks/Duaft4UI.js","../chunks/DlfaZ-Lx.js","../chunks/CGAFpmCg.js","../chunks/B-JNrTge.js","../chunks/hxhxtxcx.js","../assets/0.CS9-5c8D.css","../nodes/1.BXoD9o7T.js","../nodes/2.MoMLMEsA.js","../chunks/yFOoFovD.js","../chunks/BVXUMEgB.js","../chunks/CrG6CGuK.js","../chunks/h9aBLxYZ.js","../chunks/BFhVmACN.js","../chunks/D9uOQyZY.js","../chunks/DtHooIpl.js","../chunks/DK0g50g1.js","../chunks/DGyqUFtt.js","../chunks/CmMBsPrQ.js","../assets/PreviewStudio.Dga9zAug.css","../chunks/mFoHRvWK.js","../chunks/925dP-Ir.js","../chunks/4dIDSPSf.js","../chunks/BcI7hzdQ.js","../chunks/DZQxk93J.js","../chunks/D90Ga_Id.js","../chunks/CGO1SBi6.js","../chunks/vJAknemx.js","../chunks/WCYTcvij.js","../chunks/Blcu9fuE.js","../chunks/gIXd-FsD.js","../chunks/CR7y1ULG.js","../chunks/D8TgbIKz.js","../chunks/Dw-vpq1B.js","../chunks/BP6xWigj.js","../chunks/BdTUpAzj.js","../chunks/CuH1GpU9.js","../chunks/Cl2sXmhp.js","../chunks/C7SE-_ce.js","../chunks/BAEwYkac.js","../chunks/BezBg3rs.js","../chunks/BapAUJpM.js","../chunks/D-MhaQ4t.js","../chunks/BqcwxIuj.js","../assets/Terminal.B4BtIq8f.css","../chunks/Ccb8xxqC.js","../chunks/BpFp6MMu.js","../chunks/oy2xxZEw.js","../chunks/13cncWIw.js","../chunks/CO2HyoEG.js","../chunks/DKlgDTCT.js","../assets/2.9iA_78o1.css","../nodes/3.CU4V9yAo.js","../chunks/BBJBkIrw.js","../nodes/4.CIKGpO-h.js","../nodes/5.Bj2gKOZ-.js","../chunks/Ds1SfZJz.js","../assets/DocSheet.36VhUGpN.css","../nodes/6.DV-LKwUi.js","../chunks/D6kQXwLu.js","../chunks/ll0BMwr1.js","../assets/6.5dJKCkOT.css","../nodes/7.tNzUdkoK.js","../nodes/8._d4-szlB.js","../nodes/9.CIkGA4QL.js","../nodes/10.Cei28q9Z.js","../chunks/A55xgzkD.js","../chunks/CEkqhJ8-.js","../chunks/BTE1xF5n.js","../nodes/11.BstaTigc.js","../chunks/CKRbh3YV.js","../chunks/BPyng_vQ.js","../nodes/12.C26mRRF_.js","../chunks/CbTQtfeu.js","../chunks/Lo9Y985M.js","../chunks/BaPx3dni.js","../nodes/13.D5cvQijt.js","../nodes/14.ixNG0i6M.js","../chunks/D7IP_ZEm.js","../chunks/CPSrksvP.js","../nodes/15.U-YpZ2mY.js","../nodes/16.DYyQlMIj.js","../chunks/caSIyyev.js","../nodes/17.CjNdiCZc.js","../nodes/19.aX3EJcGD.js","../chunks/CM7YbvcE.js","../nodes/20.BcpIwTNR.js","../nodes/21.BdNRERDN.js","../chunks/DZhp5Clk.js","../chunks/DWUd2p4e.js","../chunks/DIrIXMZU.js","../nodes/22.UIlcgKG0.js","../nodes/23.B59tMz3Z.js","../nodes/24.DQjTWFAo.js","../nodes/25.DX_SiK1J.js","../nodes/26.Bqb00dxX.js","../chunks/B4NFYUu0.js","../nodes/27.Dn-mDbvz.js","../nodes/28.DAJOyPmp.js"])))=>i.map(i=>d[i]);
2
+ import{_ as e}from"../chunks/BapAUJpM.js";import{v as h,as as Y,g as u,a5 as q,a6 as B,a1 as F,aG as J,a9 as K,aH as N,p as Q,z as U,u as W,G as X,f as g,s as Z,a as E,b as $,m as P,j as O,h as tt,r as et,c as y,i as R,w as rt,t as ot,d as at}from"../chunks/D46tdsTs.js";import"../chunks/DsnmJJEf.js";import{o as st}from"../chunks/D8OKqJm7.js";import{i as A}from"../chunks/DWAM9c1z.js";import{c as L}from"../chunks/DT69KRC9.js";import{b as D}from"../chunks/RbWQh321.js";import{p as I}from"../chunks/z5Xef_-v.js";const Ot={};function it(a){return class extends _t{constructor(t){super({component:a,...t})}}}class _t{#e;#t;constructor(t){var s=new Map,_=(r,o)=>{var n=N(o,!1,!1);return s.set(r,n),n};const m=new Proxy({...t.props||{},$$events:{}},{get(r,o){return u(s.get(o)??_(o,Reflect.get(r,o)))},has(r,o){return o===Y?!0:(u(s.get(o)??_(o,Reflect.get(r,o))),Reflect.has(r,o))},set(r,o,n){return h(s.get(o)??_(o,n),n),Reflect.set(r,o,n)}});this.#t=(t.hydrate?q:B)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&F(),this.#e=m.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||J(this,r,{get(){return this.#t[r]},set(o){this.#t[r]=o},enumerable:!0});this.#t.$set=r=>{Object.assign(m,r)},this.#t.$destroy=()=>{K(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const _=(...m)=>s.call(this,...m);return this.#e[t].push(_),()=>{this.#e[t]=this.#e[t].filter(m=>m!==_)}}$destroy(){this.#t.$destroy()}}var mt=y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),nt=y("<!> <!>",1);function ut(a,t){Q(t,!0);let s=I(t,"components",23,()=>[]),_=I(t,"data_0",3,null),m=I(t,"data_1",3,null);U(()=>t.stores.page.set(t.page)),W(()=>{t.stores,t.page,t.constructors,s(),t.form,_(),m(),t.stores.page.notify()});let r=P(!1),o=P(!1),n=P(null);st(()=>{const i=t.stores.page.subscribe(()=>{u(r)&&(h(o,!0),X().then(()=>{h(n,document.title||"untitled page",!0)}))});return h(r,!0),i});const x=R(()=>t.constructors[1]);var T=nt(),V=g(T);{var k=i=>{const d=R(()=>t.constructors[0]);var c=O(),f=g(c);L(f,()=>u(d),(l,p)=>{D(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params},children:(v,ct)=>{var b=O(),S=g(b);L(S,()=>u(x),(M,z)=>{D(z(M,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),H=>s()[1]=H,()=>s()?.[1])}),E(v,b)},$$slots:{default:!0}}),v=>s()[0]=v,()=>s()?.[0])}),E(i,c)},w=i=>{const d=R(()=>t.constructors[0]);var c=O(),f=g(c);L(f,()=>u(d),(l,p)=>{D(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params}}),v=>s()[0]=v,()=>s()?.[0])}),E(i,c)};A(V,i=>{t.constructors[1]?i(k):i(w,-1)})}var C=Z(V,2);{var G=i=>{var d=mt(),c=tt(d);{var f=l=>{var p=rt();ot(()=>at(p,u(n))),E(l,p)};A(c,l=>{u(o)&&l(f)})}et(d),E(i,d)};A(C,i=>{u(r)&&i(G)})}E(a,T),$()}const Rt=it(ut),At=[()=>e(()=>import("../nodes/0.DuFkC-WN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]),import.meta.url),()=>e(()=>import("../nodes/1.BXoD9o7T.js"),__vite__mapDeps([58,1,3,10,9,2]),import.meta.url),()=>e(()=>import("../nodes/2.MoMLMEsA.js"),__vite__mapDeps([59,1,2,3,4,7,10,9,11,15,16,17,14,18,19,30,27,5,60,61,6,32,33,34,22,23,24,25,26,28,29,62,63,13,64,12,38,65,21,37,66,48,67,68,50,36,69,70,71,72,73,74,75,76,44,77,78,79,80,81,82,83,53,42,84,85,86,87,88,89,39,90,91,92,93,94,95,96,97,98,35,99,100,52,46,54,101,45,8,102]),import.meta.url),()=>e(()=>import("../nodes/3.CU4V9yAo.js"),__vite__mapDeps([103,1,3,4,7,6,10,9,2,38,82,104,101,20,71,61,50,17,27,5,67,74,75]),import.meta.url),()=>e(()=>import("../nodes/4.CIKGpO-h.js"),__vite__mapDeps([105,1,2,3,7,10,9,8,11,19,80,4,27,5,17,81,38,30,82,83,53,21,42,13,12,14,84,76,34,6,22,23,24,25,16,26,28,29,15,18,44,77,78,36,79,48,85,64,65,37,66,60,61,67,68,50,69,70,71,72,73,74,75,86,87,88,89,39,90]),import.meta.url),()=>e(()=>import("../nodes/5.Bj2gKOZ-.js"),__vite__mapDeps([106,1,3,4,7,60,17,27,5,61,107,16,28,108,93]),import.meta.url),()=>e(()=>import("../nodes/6.DV-LKwUi.js"),__vite__mapDeps([109,1,3,4,7,6,27,5,17,10,9,2,30,11,110,38,31,111,98,45,73,56,21,53,85,42,36,90,16,55,28,112]),import.meta.url),()=>e(()=>import("../nodes/7.tNzUdkoK.js"),__vite__mapDeps([113,1,3,4,7,38,82,17,104,101,10,9,2,20,96,27,5,45,67]),import.meta.url),()=>e(()=>import("../nodes/8._d4-szlB.js"),__vite__mapDeps([114,1,2,3,4,7,27,5,17,8,9,10,11,12,13,14,64,6,38,65,16,21,15,18,37,34,66,48,60,61,23,25,67,68,50,36,69,19,70,71,72,73,74,75]),import.meta.url),()=>e(()=>import("../nodes/9.CIkGA4QL.js"),__vite__mapDeps([115,1,3,4,7,10,9,2,20,11,19,51,17,27,5,89,28,49,54]),import.meta.url),()=>e(()=>import("../nodes/10.Cei28q9Z.js"),__vite__mapDeps([116,1,2,3,4,7,23,16,10,9,24,25,5,17,6,117,33,34,27,118,11,14,44,36,45,38,69,119,35,46,50,54]),import.meta.url),()=>e(()=>import("../nodes/11.BstaTigc.js"),__vite__mapDeps([120,1,3,4,7,10,9,2,11,19,121,36,17,27,5,122,76,34,6,38,22,23,14,24,25,16,26,28,29,15,18,44,77,78,79,48]),import.meta.url),()=>e(()=>import("../nodes/12.C26mRRF_.js"),__vite__mapDeps([123,1,3,4,7,10,9,2,11,19,30,17,27,5,124,110,6,38,31,111,98,45,73,63,48,83,53,21,42,24,25,16,125,76,34,22,23,14,26,28,29,15,18,44,77,78,36,79,65,37,66,60,61,67,68,50,69,70,99,126,86,82,75,62,72,52,94,56]),import.meta.url),()=>e(()=>import("../nodes/13.D5cvQijt.js"),__vite__mapDeps([127,1,3,4,7,10,9,2,11,19,124,17,30,27,5,110,6,38,31,111,98,45,73,63,48,76,34,22,23,14,24,25,16,26,28,29,15,18,44,77,78,36,79]),import.meta.url),()=>e(()=>import("../nodes/14.ixNG0i6M.js"),__vite__mapDeps([128,1,3,4,7,10,9,2,8,11,19,124,17,30,27,5,110,6,38,31,111,98,45,73,63,48,14,24,25,16,129,79,130,99]),import.meta.url),()=>e(()=>import("../nodes/15.U-YpZ2mY.js"),__vite__mapDeps([131,1,3,4,34,17,27,5,7,8,2,9,10,11,23,81,24,25,16,14,129,93,99,69,68,94,77,79,36,111,40,78,100]),import.meta.url),()=>e(()=>import("../nodes/16.DYyQlMIj.js"),__vite__mapDeps([132,1,3,7,133,4,10,9,2,14,18,38,24,25,5,16,17]),import.meta.url),()=>e(()=>import("../nodes/17.CjNdiCZc.js"),__vite__mapDeps([134,1,3,4,7,11,10,9,2,38,85,73,17,27,5,88,72,46,29]),import.meta.url),()=>e(()=>import("../chunks/BapAUJpM.js").then(a=>a.a),[],import.meta.url),()=>e(()=>import("../nodes/19.aX3EJcGD.js"),__vite__mapDeps([135,1,3,7,133,4,10,9,2,14,18,38,24,25,5,16,17,136,101]),import.meta.url),()=>e(()=>import("../nodes/20.BcpIwTNR.js"),__vite__mapDeps([137,1,3,4,7,10,9,2,41,13,14,38,24,25,5,16,17,136,101]),import.meta.url),()=>e(()=>import("../nodes/21.BdNRERDN.js"),__vite__mapDeps([138,1,2,3,4,7,8,9,10,136,101,121,36,17,27,5,122,139,6,23,33,34,117,24,25,16,118,11,14,44,45,69,47,119,140,141,38,46,28]),import.meta.url),()=>e(()=>import("../nodes/22.UIlcgKG0.js"),__vite__mapDeps([142,1,2,3,4,7,8,9,10,136,101,140,17,141,118,11,14,44,27,5,36,23,119,45,24,25,16,66]),import.meta.url),()=>e(()=>import("../nodes/23.B59tMz3Z.js"),__vite__mapDeps([143,1,3,4,7,24,25,5,16,17,136,101,10,9,2]),import.meta.url),()=>e(()=>import("../nodes/24.DQjTWFAo.js"),__vite__mapDeps([144,1,3,4,7,23,10,9,2,14,136,101,43]),import.meta.url),()=>e(()=>import("../nodes/25.DX_SiK1J.js"),__vite__mapDeps([145,1,2,3,4,7,6,23,8,9,10,24,25,5,16,17,91,92,37,93,27,68,94,90,44,66,95,141,78,26,79,100,36,122,48,139,33,34,117,118,11,14,45,69,53]),import.meta.url),()=>e(()=>import("../nodes/26.Bqb00dxX.js"),__vite__mapDeps([146,1,2,3,4,7,5,16,10,9,38,97,17,27,8,11,19,76,34,6,22,23,14,24,25,26,28,29,15,18,44,77,78,36,79,48,83,53,21,42,125,65,37,66,60,61,67,68,50,69,70,99,62,63,71,20,130,40,126,100,98,72,87,12,13,64,73,74,75,51,84,82,147,93,94]),import.meta.url),()=>e(()=>import("../nodes/27.Dn-mDbvz.js"),__vite__mapDeps([148,1,3,4,7,60,17,27,5,61,126,38,107,16,28,108,93,48,74]),import.meta.url),()=>e(()=>import("../nodes/28.DAJOyPmp.js"),__vite__mapDeps([149,1,3,4,7,82,104,101,10,9,2,20,84,17,147]),import.meta.url)],Lt=[0],Dt={"/":[-3],"/decisions":[-4],"/deck":[-5],"/files":[-6],"/harbour":[-7],"/headroom":[-8],"/inbox":[-9],"/more":[9],"/plugins":[10],"/plugins/[plugin]/[page]":[-12],"/projects/[id]":[-13],"/projects/[id]/passage":[-15],"/projects/[id]/passage/edit":[-16],"/projects/[id]/[plugin]/[tab]":[-14],"/remotes":[-17],"/second-mates":[17],"/settings":[-19],"/settings/cloud":[-20],"/settings/gateway":[-21],"/settings/plugins":[-22],"/settings/plugins/[plugin]":[-23],"/settings/setup":[-24],"/settings/update":[-25],"/setup":[-26],"/tasks/[id]":[-27],"/tasks/[id]/doc":[-28],"/time":[-29]},j={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},dt=Object.fromEntries(Object.entries(j.transport).map(([a,t])=>[a,t.decode])),It=Object.fromEntries(Object.entries(j.transport).map(([a,t])=>[a,t.encode])),Tt=!1,Vt=(a,t)=>dt[a](t),bt=()=>e(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(a=>a.default);export{Vt as decode,dt as decoders,Dt as dictionary,It as encoders,bt as get_error_template,Tt as hash,j as hooks,Ot as matchers,At as nodes,Rt as root,Lt as server_loads};
@@ -0,0 +1 @@
1
+ import{s as r}from"../chunks/DjTSkyf1.js";import{y as t}from"../chunks/yQaRdTPY.js";export{t as load_css,r as start};