@chrisjowen/wheelhouse 0.16.0 → 0.17.0

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 (378) hide show
  1. package/build/client/_app/immutable/chunks/{BOuuGRjG.js → 79yuhTwS.js} +1 -1
  2. package/build/client/_app/immutable/chunks/79yuhTwS.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/79yuhTwS.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{Crqp6P7x.js → B1zE3zKP.js} +1 -1
  5. package/build/client/_app/immutable/chunks/B1zE3zKP.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/B1zE3zKP.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{CvBYM8q3.js → B3KHKydy.js} +1 -1
  8. package/build/client/_app/immutable/chunks/B3KHKydy.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/{CvBYM8q3.js.gz → B3KHKydy.js.gz} +0 -0
  10. package/build/client/_app/immutable/chunks/{DN_cUEc5.js → BPjwAHMu.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BPjwAHMu.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BPjwAHMu.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{DvvdbrXj.js → BXiSaVju.js} +1 -1
  14. package/build/client/_app/immutable/chunks/BXiSaVju.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BXiSaVju.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{_xQwGlKC.js → BosdQIFt.js} +1 -1
  17. package/build/client/_app/immutable/chunks/BosdQIFt.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BosdQIFt.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{01zSWHgS.js → CDSHscp6.js} +1 -1
  20. package/build/client/_app/immutable/chunks/CDSHscp6.js.br +3 -0
  21. package/build/client/_app/immutable/chunks/CDSHscp6.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{kQFtkWpw.js → CI19kiwT.js} +1 -1
  23. package/build/client/_app/immutable/chunks/CI19kiwT.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/CI19kiwT.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{D62zkI9j.js → CKE9neHp.js} +1 -1
  26. package/build/client/_app/immutable/chunks/CKE9neHp.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CKE9neHp.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/CLJu9cY5.js +2 -0
  29. package/build/client/_app/immutable/chunks/CLJu9cY5.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CLJu9cY5.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/{CVuE8Mrz.js → CSU604UC.js} +1 -1
  32. package/build/client/_app/immutable/chunks/CSU604UC.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CSU604UC.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{CIXD8yUP.js → CgZovtjz.js} +1 -1
  35. package/build/client/_app/immutable/chunks/CgZovtjz.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CgZovtjz.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/{Bpoe0kdM.js → ClYd4imU.js} +1 -1
  38. package/build/client/_app/immutable/chunks/ClYd4imU.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/ClYd4imU.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/{BTAHFHcI.js → CsmF6Hwj.js} +1 -1
  41. package/build/client/_app/immutable/chunks/CsmF6Hwj.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/CsmF6Hwj.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/Cwo48ib8.js +1 -0
  44. package/build/client/_app/immutable/chunks/Cwo48ib8.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/Cwo48ib8.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{D3U8nDaU.js → D8J1M-4m.js} +1 -1
  47. package/build/client/_app/immutable/chunks/D8J1M-4m.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/D8J1M-4m.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/{l1ecpO65.js → DFrn6Xyh.js} +1 -1
  50. package/build/client/_app/immutable/chunks/DFrn6Xyh.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/DFrn6Xyh.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/{CV9fVJKz.js → fhAu_Obx.js} +1 -1
  53. package/build/client/_app/immutable/chunks/fhAu_Obx.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/fhAu_Obx.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/{Bm5t_TcQ.js → qmyjnG6s.js} +1 -1
  56. package/build/client/_app/immutable/chunks/qmyjnG6s.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/qmyjnG6s.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/{-VKim-Eb.js → xHBeYlGm.js} +1 -1
  59. package/build/client/_app/immutable/chunks/xHBeYlGm.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/xHBeYlGm.js.gz +0 -0
  61. package/build/client/_app/immutable/entry/{app.CnyVl7c2.js → app.DwV2pwLU.js} +2 -2
  62. package/build/client/_app/immutable/entry/app.DwV2pwLU.js.br +0 -0
  63. package/build/client/_app/immutable/entry/app.DwV2pwLU.js.gz +0 -0
  64. package/build/client/_app/immutable/entry/start.CAfmMhjm.js +1 -0
  65. package/build/client/_app/immutable/entry/start.CAfmMhjm.js.br +0 -0
  66. package/build/client/_app/immutable/entry/start.CAfmMhjm.js.gz +0 -0
  67. package/build/client/_app/immutable/nodes/{0.8GFbRTop.js → 0.DF8hnsli.js} +1 -1
  68. package/build/client/_app/immutable/nodes/0.DF8hnsli.js.br +0 -0
  69. package/build/client/_app/immutable/nodes/0.DF8hnsli.js.gz +0 -0
  70. package/build/client/_app/immutable/nodes/{1.B7dgllIV.js → 1.B5FnFSGX.js} +1 -1
  71. package/build/client/_app/immutable/nodes/1.B5FnFSGX.js.br +0 -0
  72. package/build/client/_app/immutable/nodes/1.B5FnFSGX.js.gz +0 -0
  73. package/build/client/_app/immutable/nodes/{10.Bg5oK9sw.js → 10.COzSUd5H.js} +1 -1
  74. package/build/client/_app/immutable/nodes/10.COzSUd5H.js.br +0 -0
  75. package/build/client/_app/immutable/nodes/10.COzSUd5H.js.gz +0 -0
  76. package/build/client/_app/immutable/nodes/{11.DYPka59n.js → 11.hxSy1hC3.js} +1 -1
  77. package/build/client/_app/immutable/nodes/11.hxSy1hC3.js.br +0 -0
  78. package/build/client/_app/immutable/nodes/11.hxSy1hC3.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/{12.B6I0GxaX.js → 12.C7_etTt9.js} +1 -1
  80. package/build/client/_app/immutable/nodes/12.C7_etTt9.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/12.C7_etTt9.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/{13.HNCDjm9L.js → 13.DmZBXkEn.js} +1 -1
  83. package/build/client/_app/immutable/nodes/13.DmZBXkEn.js.br +0 -0
  84. package/build/client/_app/immutable/nodes/13.DmZBXkEn.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/{14.Dm2jB_N0.js → 14.B2FfmJwY.js} +1 -1
  86. package/build/client/_app/immutable/nodes/14.B2FfmJwY.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/14.B2FfmJwY.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/{15.DnSRUIFM.js → 15.DOXGz5UB.js} +1 -1
  89. package/build/client/_app/immutable/nodes/15.DOXGz5UB.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/15.DOXGz5UB.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/{16.BEJtiT-C.js → 16.9Kdcqd35.js} +1 -1
  92. package/build/client/_app/immutable/nodes/16.9Kdcqd35.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/16.9Kdcqd35.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/{17.BJgcp0oo.js → 17.rjXh_9jf.js} +1 -1
  95. package/build/client/_app/immutable/nodes/17.rjXh_9jf.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/17.rjXh_9jf.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/{19.BxG6SINq.js → 19.BDL7z_Qb.js} +1 -1
  98. package/build/client/_app/immutable/nodes/19.BDL7z_Qb.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/19.BDL7z_Qb.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/{2.CQlQaA3F.js → 2.BCbkmPbx.js} +1 -1
  101. package/build/client/_app/immutable/nodes/2.BCbkmPbx.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/2.BCbkmPbx.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/{20.CRi-FHPN.js → 20.CmA-uI_h.js} +1 -1
  104. package/build/client/_app/immutable/nodes/20.CmA-uI_h.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/20.CmA-uI_h.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/{21.f5SleuvG.js → 21.DXJrG-NW.js} +1 -1
  107. package/build/client/_app/immutable/nodes/21.DXJrG-NW.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/21.DXJrG-NW.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/{22.DNrAQQXU.js → 22.D1PSb-pN.js} +1 -1
  110. package/build/client/_app/immutable/nodes/22.D1PSb-pN.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/22.D1PSb-pN.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/{23.D6Fe2Mdx.js → 23.DsgvXr3A.js} +1 -1
  113. package/build/client/_app/immutable/nodes/23.DsgvXr3A.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/23.DsgvXr3A.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/{24.C56ldwPz.js → 24.DYbfQRKi.js} +1 -1
  116. package/build/client/_app/immutable/nodes/24.DYbfQRKi.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/24.DYbfQRKi.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/{25.DZ4DThMl.js → 25.DchwdBic.js} +1 -1
  119. package/build/client/_app/immutable/nodes/25.DchwdBic.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/25.DchwdBic.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/{26.C1eMf9Tn.js → 26.DGQvgO-w.js} +1 -1
  122. package/build/client/_app/immutable/nodes/26.DGQvgO-w.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/26.DGQvgO-w.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/{28.ByjDiuDk.js → 28.C-Ubf5oN.js} +1 -1
  125. package/build/client/_app/immutable/nodes/28.C-Ubf5oN.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/28.C-Ubf5oN.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/{3.Dw9t6bnq.js → 3.BZFHR-pC.js} +1 -1
  128. package/build/client/_app/immutable/nodes/3.BZFHR-pC.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/3.BZFHR-pC.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/{4.C-Vhe6qo.js → 4.CAiVTgL3.js} +1 -1
  131. package/build/client/_app/immutable/nodes/4.CAiVTgL3.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/4.CAiVTgL3.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/{6.-GosPZsI.js → 6.Bpt4zq5B.js} +1 -1
  134. package/build/client/_app/immutable/nodes/6.Bpt4zq5B.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/6.Bpt4zq5B.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/{7.D5C714Zn.js → 7.DqfjvXPm.js} +1 -1
  137. package/build/client/_app/immutable/nodes/7.DqfjvXPm.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/7.DqfjvXPm.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/{8.CBl3BgIN.js → 8.CCshJNeL.js} +1 -1
  140. package/build/client/_app/immutable/nodes/8.CCshJNeL.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/8.CCshJNeL.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/{9.flfI1cr8.js → 9.DAgz6-ct.js} +1 -1
  143. package/build/client/_app/immutable/nodes/9.DAgz6-ct.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/9.DAgz6-ct.js.gz +0 -0
  145. package/build/client/_app/version.json +1 -1
  146. package/build/client/_app/version.json.br +0 -0
  147. package/build/client/_app/version.json.gz +0 -0
  148. package/build/handler.js +4 -4
  149. package/build/index.js +4 -4
  150. package/build/server/chunks/chunks/{detail.js-D_HFAT2R.js → detail.js-Dmv_JQut.js} +2 -2
  151. package/build/server/chunks/chunks/{feedback.js-DFn0QGh9.js → feedback.js-D3a2iMXg.js} +2 -2
  152. package/build/server/chunks/chunks/{internal.js-CGSGg70w.js → internal.js-B1bN3ll4.js} +3 -3
  153. package/build/server/chunks/chunks/{keychain.js-DWxqf9BG.js → keychain.js-Cp8llbD0.js} +2 -2
  154. package/build/server/chunks/chunks/{marketplace-service.js-DFXVn_eQ.js → marketplace-service.js-Cx9Q0k8Q.js} +2 -2
  155. package/build/server/chunks/chunks/{page.js-BtTVbG0k.js → page.js-CoP2TAJ_.js} +2 -2
  156. package/build/server/chunks/chunks/{previewhelper2.js-DYr_o-vO.js → previewhelper2.js-BrTz0Tg7.js} +2 -2
  157. package/build/server/chunks/chunks/{repo.js-Dv-yIN8Y.js → repo.js-LJxMBx-J.js} +2 -2
  158. package/build/server/chunks/chunks/{runtime.js-CUYCZ2fw.js → runtime.js-Div6Lnx3.js} +702 -270
  159. package/build/server/chunks/chunks/{service.js-F86ETkjI.js → service.js-C-7gDnLN.js} +2 -2
  160. package/build/server/chunks/chunks/{service2.js-DFBl79w6.js → service2.js-BsM3bqfY.js} +5 -6
  161. package/build/server/chunks/chunks/{starter.js-jUCQlAAZ.js → starter.js-BGIHa5RG.js} +2 -2
  162. package/build/server/chunks/chunks/{view.js-De80u4gl.js → view.js-B-5C4tjd.js} +2 -2
  163. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-D_B7_i9Y.js → _server.ts.js-u0ExtU7j.js} +5 -5
  164. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-lvLHkipj.js → _server.ts.js-BO-Upj5a.js} +3 -3
  165. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-BtwM6kge.js → _server.ts.js-CqmlbD19.js} +5 -5
  166. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-AZw0MiM5.js → _server.ts.js-BuNwFHVn.js} +5 -5
  167. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-CapjdAiy.js → _server.ts.js-DjTqppEU.js} +5 -5
  168. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-D5CXnG6E.js → _server.ts.js-C9cMNlgd.js} +5 -5
  169. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-DtTX-IQ0.js → _server.ts.js-DfpaVvxs.js} +5 -5
  170. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-CZOvv2M2.js → _server.ts.js-8SzK4gCV.js} +5 -5
  171. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-DtLM2nDS.js → _server.ts.js-BQbD-LTs.js} +5 -5
  172. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-RuBXxm8l.js → _server.ts.js-ClqS2YDJ.js} +5 -5
  173. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-K1lv6lDp.js → _server.ts.js-BCazjeCb.js} +5 -5
  174. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-CUKrxHEz.js → _server.ts.js-DbwR4fGz.js} +5 -5
  175. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-Bf2HCJA6.js → _server.ts.js-CY5SLTEA.js} +5 -5
  176. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-D5wImb85.js → _server.ts.js-Co9V8-6k.js} +5 -5
  177. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-COxUDh66.js → _server.ts.js-tC_Zgasq.js} +5 -5
  178. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BIdX1HqN.js → _server.ts.js-BwROfRU7.js} +5 -5
  179. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-Xgbc9XA2.js → _server.ts.js-BEmBVcdL.js} +5 -5
  180. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-nHm2J-sv.js → _server.ts.js-DdaypvH2.js} +5 -5
  181. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-C8wbe2uN.js → _server.ts.js-BbDc6SzH.js} +5 -5
  182. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-BtcTcgkS.js → _server.ts.js-Bz4abExj.js} +5 -5
  183. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-KANrega5.js → _server.ts.js-BNVKAFTs.js} +5 -5
  184. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-CHTJXjZq.js → _server.ts.js-B1AaY6FI.js} +6 -6
  185. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DZZ7jsff.js → _server.ts.js-CP9sLBS7.js} +7 -7
  186. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DmBrST5y.js → _server.ts.js-DBDdeN2z.js} +4 -4
  187. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DcjaF46g.js → _server.ts.js-D4h_Mifs.js} +2 -2
  188. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-8zoDyrl2.js → _server.ts.js-BIrWdhtR.js} +5 -5
  189. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-DCRHbkLC.js → _server.ts.js-Cu_Y3EEq.js} +2 -2
  190. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CsI1UOHt.js → _server.ts.js-CDMP1Wcb.js} +5 -5
  191. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DWbYekhb.js → _server.ts.js-DHTVslXa.js} +2 -2
  192. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-AXCutY-U.js → _server.ts.js-CoRV0mGt.js} +2 -2
  193. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-CFXMktEA.js → _server.ts.js-DZi9g4M6.js} +6 -6
  194. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-Cy05NfhF.js → _server.ts.js-lf9gC82y.js} +6 -6
  195. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-DQqqgWKo.js → _server.ts.js-Co8qdA33.js} +6 -6
  196. package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-B79S5asG.js → _server.ts.js-DFoBOVVT.js} +4 -4
  197. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-Thl2IcAK.js → _server.ts.js-CzTVAiDc.js} +2 -2
  198. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-B_k324Tr.js → _server.ts.js-BAZpTlCx.js} +5 -5
  199. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CIxhoBpL.js → _server.ts.js-jkk-r-nJ.js} +6 -6
  200. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-O9x_13pZ.js → _server.ts.js-BdsAFbko.js} +6 -6
  201. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DEgzcDqe.js → _server.ts.js-DiMBVbVj.js} +6 -6
  202. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-BSjtrwJd.js → _server.ts.js-BtDKXwvJ.js} +6 -6
  203. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-BUurWySt.js → _server.ts.js-C02cyG4M.js} +6 -6
  204. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-D3Pa9Duf.js → _server.ts.js-CA0wN6yE.js} +6 -6
  205. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-CgHOXKL2.js → _server.ts.js-BPPzbpED.js} +5 -5
  206. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-Bvp43GRW.js → _server.ts.js-FbF3xSIs.js} +5 -5
  207. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Cg2r7zrS.js → _server.ts.js-BmS6o8yc.js} +4 -4
  208. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-BFb5QbZV.js → _server.ts.js-EsX_IGvt.js} +5 -5
  209. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-DhUkYscn.js → _server.ts.js-BgBAYDN4.js} +6 -6
  210. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-Dq7FA9oT.js → _server.ts.js-DuTLNykO.js} +5 -5
  211. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-BMvUuQBd.js → _server.ts.js-DDy8igq7.js} +5 -5
  212. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-Dg5StgV_.js → _server.ts.js-D5pfyCzV.js} +5 -5
  213. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CiHZBBZf.js → _server.ts.js-BA8S2_Gc.js} +5 -5
  214. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-NFGa62rx.js → _server.ts.js-DbU3413y.js} +6 -6
  215. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-ZazsNjR_.js → _server.ts.js-BOfdrtdZ.js} +5 -5
  216. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Dhn50zd_.js → _server.ts.js-BA5eDd2l.js} +2 -2
  217. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-DQaOoYAD.js → _server.ts.js-D5fyMbR0.js} +2 -2
  218. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-C2YczFvz.js → _server.ts.js-B53DnvyB.js} +2 -2
  219. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-gs8qidIj.js → _server.ts.js-bjte8O9v.js} +5 -5
  220. package/build/server/chunks/entries/{hooks.server.js-DYlKpcCn.js → hooks.server.js-vOikVCYe.js} +5 -5
  221. package/build/server/chunks/entries/pages/{_layout.server.ts.js-XDkbdDnv.js → _layout.server.ts.js-MabiHA-3.js} +2 -2
  222. package/build/server/chunks/entries/pages/{_page.server.ts.js-Df8OWu0u.js → _page.server.ts.js-B2yCD9g1.js} +2 -2
  223. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-6dqY7i4n.js → _page.server.ts.js-0eAEf9gY.js} +2 -2
  224. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BcgWass3.js → _page.server.ts.js-COZ-0Oqo.js} +2 -2
  225. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-DlAHIttA.js → _page.server.ts.js-BewL0sIN.js} +2 -2
  226. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-ttP7EjYb.js → _page.server.ts.js-BnCRyETa.js} +2 -2
  227. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-CIRdCAak.js → _page.server.ts.js-D5_3UMoa.js} +2 -2
  228. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-5fpuQdmf.js → _page.server.ts.js-jVFavtAR.js} +2 -2
  229. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-BqCys3fk.js → _page.server.ts.js-BZZjxm-x.js} +2 -2
  230. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-D2cX34De.js → _page.server.ts.js-ByYW-gv7.js} +3 -3
  231. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-CHcG1ZY_.js → _page.server.ts.js-BDnIvRvv.js} +3 -3
  232. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-D9iYBYt8.js → _page.server.ts.js-D--AVAN1.js} +4 -4
  233. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-DSfSLIgw.js → _page.server.ts.js-Bh8glo5J.js} +2 -2
  234. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-D0Z4vRAZ.js → _page.server.ts.js-CdD2bSZT.js} +2 -2
  235. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-C_n0FEhO.js → _page.server.ts.js-D-i30dSs.js} +2 -2
  236. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-CJiUzhR7.js → _page.server.ts.js-DvxWUFjz.js} +2 -2
  237. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-CLBcpfCA.js → _page.server.ts.js-1e73Wyr0.js} +2 -2
  238. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-BFQ4GDtX.js → _page.server.ts.js-BePUsUZP.js} +2 -2
  239. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-mh9uyV2P.js → _page.server.ts.js-jRF6Ywzb.js} +2 -2
  240. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DlrL-7uB.js → _page.server.ts.js-DugL5l6V.js} +2 -2
  241. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DI4L_wuh.js → _page.server.ts.js-BiA9elO2.js} +3 -3
  242. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-CvW38tDM.js → _page.server.ts.js-C2g0PwaJ.js} +3 -3
  243. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-Db9ngKZm.js → _page.server.ts.js-BDtV-JJy.js} +2 -2
  244. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DaUxp622.js → _page.server.ts.js-BbZ21xiD.js} +2 -2
  245. package/build/server/chunks/{handler-DuE9inyi.js → handler-C9BTW4CD.js} +3 -3
  246. package/build/server/chunks/{index.js-v6NQYBK5.js → index.js-pXGRX2i2.js} +2 -2
  247. package/build/server/chunks/{manifest.js-C-BasyGm.js → manifest.js-CJa1L_3F.js} +87 -87
  248. package/build/server/chunks/nodes/{0.js-CkGqrpTr.js → 0.js-C6oZQB5s.js} +7 -7
  249. package/build/server/chunks/nodes/{1.js-DPvN_CLJ.js → 1.js-Cttr3TG9.js} +2 -2
  250. package/build/server/chunks/nodes/{10.js-BJnSBLIC.js → 10.js-CB68zmyq.js} +2 -2
  251. package/build/server/chunks/nodes/{11.js-jTPdk8pR.js → 11.js-CebGVYzq.js} +7 -7
  252. package/build/server/chunks/nodes/{12.js-CO7t1TeY.js → 12.js-D2y8h8be.js} +8 -8
  253. package/build/server/chunks/nodes/{13.js-BLvOGglK.js → 13.js-udsCT8sc.js} +8 -8
  254. package/build/server/chunks/nodes/{14.js-CeAXlMCF.js → 14.js-LSLFIS3R.js} +9 -9
  255. package/build/server/chunks/nodes/{15.js-PpPpmDDu.js → 15.js-DwkMtPw0.js} +8 -8
  256. package/build/server/chunks/nodes/{16.js-CuhrVsHH.js → 16.js-D6ljBLvA.js} +6 -6
  257. package/build/server/chunks/nodes/{17.js-CokOaMn3.js → 17.js-CLW6wG6e.js} +2 -2
  258. package/build/server/chunks/nodes/{19.js-B0hnu-OJ.js → 19.js-Do3gZhOd.js} +6 -6
  259. package/build/server/chunks/nodes/{2.js-Br8oRykT.js → 2.js-Bg6BRLgk.js} +7 -7
  260. package/build/server/chunks/nodes/{20.js-SER2nvxc.js → 20.js-D6ikY3Qe.js} +7 -7
  261. package/build/server/chunks/nodes/{21.js-R5Vlv7DW.js → 21.js-DG7qeWyl.js} +7 -7
  262. package/build/server/chunks/nodes/{22.js-c2XCaRat.js → 22.js-kAdDBEK4.js} +7 -7
  263. package/build/server/chunks/nodes/{23.js-BTZOfMOZ.js → 23.js-CgwizXkn.js} +7 -7
  264. package/build/server/chunks/nodes/{24.js-D-FLfvVz.js → 24.js-LvCCKbXs.js} +4 -4
  265. package/build/server/chunks/nodes/{25.js-U6Wy5W2D.js → 25.js-DD6hUVsN.js} +7 -7
  266. package/build/server/chunks/nodes/{26.js-BQMRBWsE.js → 26.js-WwI1VHcM.js} +8 -8
  267. package/build/server/chunks/nodes/{27.js-DpDWMG3J.js → 27.js-Ciywgqr7.js} +7 -7
  268. package/build/server/chunks/nodes/{28.js-EI5OlQC1.js → 28.js-CDVsbZwJ.js} +7 -7
  269. package/build/server/chunks/nodes/{3.js-CO7rtIdb.js → 3.js-Bk1K3VSg.js} +7 -7
  270. package/build/server/chunks/nodes/{4.js-D-AgbO-p.js → 4.js-DR53ln0s.js} +7 -7
  271. package/build/server/chunks/nodes/{5.js-BgkAAZis.js → 5.js-Bnpq5DqQ.js} +6 -6
  272. package/build/server/chunks/nodes/{6.js-DX-_LVTg.js → 6.js-sO4LxGqG.js} +7 -7
  273. package/build/server/chunks/nodes/{7.js-DuuPTzmE.js → 7.js-CjmrTr_m.js} +7 -7
  274. package/build/server/chunks/nodes/{8.js-C5KCp3j1.js → 8.js-CY5LlZct.js} +7 -7
  275. package/build/server/chunks/nodes/{9.js-DMV1P9qA.js → 9.js-VSnIai5w.js} +2 -2
  276. package/dist/cli.js +919 -64
  277. package/dist/wh-vault.js +1 -1
  278. package/package.json +1 -1
  279. package/skills/manage-wheelhouse/SKILL.md +1 -0
  280. package/skills/manage-wheelhouse/references/operations.md +45 -44
  281. package/build/client/_app/immutable/chunks/-VKim-Eb.js.br +0 -0
  282. package/build/client/_app/immutable/chunks/-VKim-Eb.js.gz +0 -0
  283. package/build/client/_app/immutable/chunks/01zSWHgS.js.br +0 -1
  284. package/build/client/_app/immutable/chunks/01zSWHgS.js.gz +0 -0
  285. package/build/client/_app/immutable/chunks/BNqm5dMM.js +0 -2
  286. package/build/client/_app/immutable/chunks/BNqm5dMM.js.br +0 -0
  287. package/build/client/_app/immutable/chunks/BNqm5dMM.js.gz +0 -0
  288. package/build/client/_app/immutable/chunks/BOuuGRjG.js.br +0 -0
  289. package/build/client/_app/immutable/chunks/BOuuGRjG.js.gz +0 -0
  290. package/build/client/_app/immutable/chunks/BTAHFHcI.js.br +0 -0
  291. package/build/client/_app/immutable/chunks/BTAHFHcI.js.gz +0 -0
  292. package/build/client/_app/immutable/chunks/Bm5t_TcQ.js.br +0 -0
  293. package/build/client/_app/immutable/chunks/Bm5t_TcQ.js.gz +0 -0
  294. package/build/client/_app/immutable/chunks/Bpoe0kdM.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/Bpoe0kdM.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/CGKMBwQH.js +0 -1
  297. package/build/client/_app/immutable/chunks/CGKMBwQH.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/CGKMBwQH.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/CIXD8yUP.js.br +0 -4
  300. package/build/client/_app/immutable/chunks/CIXD8yUP.js.gz +0 -0
  301. package/build/client/_app/immutable/chunks/CV9fVJKz.js.br +0 -0
  302. package/build/client/_app/immutable/chunks/CV9fVJKz.js.gz +0 -0
  303. package/build/client/_app/immutable/chunks/CVuE8Mrz.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/CVuE8Mrz.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/Crqp6P7x.js.br +0 -0
  306. package/build/client/_app/immutable/chunks/Crqp6P7x.js.gz +0 -0
  307. package/build/client/_app/immutable/chunks/CvBYM8q3.js.br +0 -0
  308. package/build/client/_app/immutable/chunks/D3U8nDaU.js.br +0 -0
  309. package/build/client/_app/immutable/chunks/D3U8nDaU.js.gz +0 -0
  310. package/build/client/_app/immutable/chunks/D62zkI9j.js.br +0 -0
  311. package/build/client/_app/immutable/chunks/D62zkI9j.js.gz +0 -0
  312. package/build/client/_app/immutable/chunks/DN_cUEc5.js.br +0 -0
  313. package/build/client/_app/immutable/chunks/DN_cUEc5.js.gz +0 -0
  314. package/build/client/_app/immutable/chunks/DvvdbrXj.js.br +0 -0
  315. package/build/client/_app/immutable/chunks/DvvdbrXj.js.gz +0 -0
  316. package/build/client/_app/immutable/chunks/_xQwGlKC.js.br +0 -0
  317. package/build/client/_app/immutable/chunks/_xQwGlKC.js.gz +0 -0
  318. package/build/client/_app/immutable/chunks/kQFtkWpw.js.br +0 -0
  319. package/build/client/_app/immutable/chunks/kQFtkWpw.js.gz +0 -0
  320. package/build/client/_app/immutable/chunks/l1ecpO65.js.br +0 -0
  321. package/build/client/_app/immutable/chunks/l1ecpO65.js.gz +0 -0
  322. package/build/client/_app/immutable/entry/app.CnyVl7c2.js.br +0 -0
  323. package/build/client/_app/immutable/entry/app.CnyVl7c2.js.gz +0 -0
  324. package/build/client/_app/immutable/entry/start.DTz_QGqw.js +0 -1
  325. package/build/client/_app/immutable/entry/start.DTz_QGqw.js.br +0 -0
  326. package/build/client/_app/immutable/entry/start.DTz_QGqw.js.gz +0 -0
  327. package/build/client/_app/immutable/nodes/0.8GFbRTop.js.br +0 -0
  328. package/build/client/_app/immutable/nodes/0.8GFbRTop.js.gz +0 -0
  329. package/build/client/_app/immutable/nodes/1.B7dgllIV.js.br +0 -0
  330. package/build/client/_app/immutable/nodes/1.B7dgllIV.js.gz +0 -0
  331. package/build/client/_app/immutable/nodes/10.Bg5oK9sw.js.br +0 -0
  332. package/build/client/_app/immutable/nodes/10.Bg5oK9sw.js.gz +0 -0
  333. package/build/client/_app/immutable/nodes/11.DYPka59n.js.br +0 -0
  334. package/build/client/_app/immutable/nodes/11.DYPka59n.js.gz +0 -0
  335. package/build/client/_app/immutable/nodes/12.B6I0GxaX.js.br +0 -0
  336. package/build/client/_app/immutable/nodes/12.B6I0GxaX.js.gz +0 -0
  337. package/build/client/_app/immutable/nodes/13.HNCDjm9L.js.br +0 -0
  338. package/build/client/_app/immutable/nodes/13.HNCDjm9L.js.gz +0 -0
  339. package/build/client/_app/immutable/nodes/14.Dm2jB_N0.js.br +0 -0
  340. package/build/client/_app/immutable/nodes/14.Dm2jB_N0.js.gz +0 -0
  341. package/build/client/_app/immutable/nodes/15.DnSRUIFM.js.br +0 -0
  342. package/build/client/_app/immutable/nodes/15.DnSRUIFM.js.gz +0 -0
  343. package/build/client/_app/immutable/nodes/16.BEJtiT-C.js.br +0 -0
  344. package/build/client/_app/immutable/nodes/16.BEJtiT-C.js.gz +0 -0
  345. package/build/client/_app/immutable/nodes/17.BJgcp0oo.js.br +0 -0
  346. package/build/client/_app/immutable/nodes/17.BJgcp0oo.js.gz +0 -0
  347. package/build/client/_app/immutable/nodes/19.BxG6SINq.js.br +0 -0
  348. package/build/client/_app/immutable/nodes/19.BxG6SINq.js.gz +0 -0
  349. package/build/client/_app/immutable/nodes/2.CQlQaA3F.js.br +0 -0
  350. package/build/client/_app/immutable/nodes/2.CQlQaA3F.js.gz +0 -0
  351. package/build/client/_app/immutable/nodes/20.CRi-FHPN.js.br +0 -0
  352. package/build/client/_app/immutable/nodes/20.CRi-FHPN.js.gz +0 -0
  353. package/build/client/_app/immutable/nodes/21.f5SleuvG.js.br +0 -0
  354. package/build/client/_app/immutable/nodes/21.f5SleuvG.js.gz +0 -0
  355. package/build/client/_app/immutable/nodes/22.DNrAQQXU.js.br +0 -0
  356. package/build/client/_app/immutable/nodes/22.DNrAQQXU.js.gz +0 -0
  357. package/build/client/_app/immutable/nodes/23.D6Fe2Mdx.js.br +0 -0
  358. package/build/client/_app/immutable/nodes/23.D6Fe2Mdx.js.gz +0 -0
  359. package/build/client/_app/immutable/nodes/24.C56ldwPz.js.br +0 -0
  360. package/build/client/_app/immutable/nodes/24.C56ldwPz.js.gz +0 -0
  361. package/build/client/_app/immutable/nodes/25.DZ4DThMl.js.br +0 -0
  362. package/build/client/_app/immutable/nodes/25.DZ4DThMl.js.gz +0 -0
  363. package/build/client/_app/immutable/nodes/26.C1eMf9Tn.js.br +0 -0
  364. package/build/client/_app/immutable/nodes/26.C1eMf9Tn.js.gz +0 -0
  365. package/build/client/_app/immutable/nodes/28.ByjDiuDk.js.br +0 -0
  366. package/build/client/_app/immutable/nodes/28.ByjDiuDk.js.gz +0 -0
  367. package/build/client/_app/immutable/nodes/3.Dw9t6bnq.js.br +0 -0
  368. package/build/client/_app/immutable/nodes/3.Dw9t6bnq.js.gz +0 -0
  369. package/build/client/_app/immutable/nodes/4.C-Vhe6qo.js.br +0 -0
  370. package/build/client/_app/immutable/nodes/4.C-Vhe6qo.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/6.-GosPZsI.js.br +0 -0
  372. package/build/client/_app/immutable/nodes/6.-GosPZsI.js.gz +0 -0
  373. package/build/client/_app/immutable/nodes/7.D5C714Zn.js.br +0 -0
  374. package/build/client/_app/immutable/nodes/7.D5C714Zn.js.gz +0 -0
  375. package/build/client/_app/immutable/nodes/8.CBl3BgIN.js.br +0 -0
  376. package/build/client/_app/immutable/nodes/8.CBl3BgIN.js.gz +0 -0
  377. package/build/client/_app/immutable/nodes/9.flfI1cr8.js.br +0 -0
  378. package/build/client/_app/immutable/nodes/9.flfI1cr8.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import"./DsnmJJEf.js";import{s as _e,r as me,p as K}from"./BAOiF0in.js";import{I as ze,t as Wt}from"./xH4qmLqM.js";import{p as et}from"./01zSWHgS.js";import{a as Ft,o as Et}from"./RYq3318d.js";import{k as Kt,A as Ut,m as A,q as it,g as t,v as w,l as lt,p as Fe,u as We,h as d,s as v,r as l,t as P,a as f,b as Ke,i as b,aB as Bt,o as U,d as q,j as Be,f as De,c as m,y as N,n as fe,bF as Mt,z as Yt,G as gt,x as Dt,aC as Gt}from"./BuRWgnCz.js";import{i as z}from"./BDpRITyb.js";import{a as Pe,s as R,f as Jt,d as ut,l as Vt,e as nt,i as Xt,r as Qt,b as Zt}from"./Cwb6d3g_.js";import{b as Ge}from"./BWRIDih-.js";import{z as ea}from"./DJNADPa5.js";import{a as Pt,f as ta,s as aa,P as ra}from"./Bm5t_TcQ.js";import{c as na}from"./BOuuGRjG.js";import{p as st}from"./fuBLR9dZ.js";import{k as sa,X as Ye}from"./rS7QE60d.js";import{R as At}from"./nW7-TN7t.js";import{E as Lt}from"./IuxiJfHx.js";import{h as ia,m as oa}from"./CFTDQcgN.js";import{a as Rt}from"./BMFk7aZ6.js";import{S as la}from"./BXN538J3.js";import{c as Nt}from"./DYbDyf3M.js";import{M as pt}from"./DxdQiNse.js";import{A as da}from"./C0iYpbLa.js";import{C as ca}from"./C6T16bV1.js";import{C as ua}from"./cmRB1an4.js";import{P as xt}from"./DNc9cRsu.js";import{s as va,a as bt}from"./BT_DAfvO.js";class mt{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,a){var r=this.#e.get(e)||new Set;return r.add(a),this.#e.set(e,r),this.#s().observe(e,this.#r),()=>{var s=this.#e.get(e);s.delete(a),s.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#s(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){mt.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var ha=new mt({box:"border-box"});function wt(n,e,a){var r=ha.observe(n,()=>a(n[e]));Kt(()=>(Ut(()=>a(n[e])),r))}var pa=new Set(["$$slots","$$events","$$legacy"]);function In(n,e){let a=me(e,pa);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var fa=new Set(["$$slots","$$events","$$legacy"]);function vt(n,e){let a=me(e,fa);const r={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ma=new Set(["$$slots","$$events","$$legacy"]);function _t(n,e){let a=me(e,ma);const r={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ga=new Set(["$$slots","$$events","$$legacy"]);function xa(n,e){let a=me(e,ga);const r={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ba=new Set(["$$slots","$$events","$$legacy"]);function yt(n,e){let a=me(e,ba);const r={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var wa=new Set(["$$slots","$$events","$$legacy"]);function kt(n,e){let a=me(e,wa);const r={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var _a=new Set(["$$slots","$$events","$$legacy"]);function ya(n,e){let a=me(e,_a);const r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ka=new Set(["$$slots","$$events","$$legacy"]);function za(n,e){let a=me(e,ka);const r={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Sa=new Set(["$$slots","$$events","$$legacy"]);function $a(n,e){let a=me(e,Sa);const r={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ta=new Set(["$$slots","$$events","$$legacy"]);function Ca(n,e){let a=me(e,Ta);const r={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ea=new Set(["$$slots","$$events","$$legacy"]);function Ma(n,e){let a=me(e,Ea);const r={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Da=new Set(["$$slots","$$events","$$legacy"]);function Pa(n,e){let a=me(e,Da);const r={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}const Aa="{url}";function La(n,e,a){const r=e&&Object.hasOwn(n,e)?n[e]:null;return typeof r!="string"?{href:a.url,external:!0}:{href:r.replace(Aa,encodeURIComponent(a.url)),external:!1}}const Hn={review(n,e){const a=et.data?.pullRequestTabs??{};return La(a,n,e)}},Ra=15e3,Ot=n=>`url:${n}`,Na=n=>n.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(n.slice(4))}`:`/api/tasks/${encodeURIComponent(n)}/preview`,Oa=5e3;class Ia{#e=A(it({}));get checks(){return t(this.#e)}set checks(e){w(this.#e,e,!0)}#t=A(it({}));get failed(){return t(this.#t)}set failed(e){w(this.#t,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const a=this.watching.get(e);a?a.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let r=!1;return()=>{if(r)return;r=!0;const s=this.watching.get(e);!s||--s.count>0||(s.timer&&clearTimeout(s.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const a=this.running.get(e);if(a)return a;const r=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,r),r}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const a=await fetch(Na(e));if(!a.ok)throw new Error(String(a.status));this.checks[e]=await a.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const a=this.watching.get(e);if(!a)return;a.timer&&clearTimeout(a.timer);const r=this.checks[e]?.state==="live"?Ra:Oa;a.timer=setTimeout(()=>{a.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},r)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const a of this.watching.keys())this.refresh(a)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const Qe=new Ia,It=()=>et.data.reviewSurface??null,zt=500,Ze=n=>n.replace(/\s+/g," ").trim(),Ha=(n,e)=>n.length>e?n.slice(0,e-1).trimEnd()+"…":n;function ht(n){const e=n.y<.3333333333333333?"top":n.y<.6666666666666666?"middle":"bottom",a=n.x<1/3?"left":n.x<2/3?"":"right";return e==="middle"&&!a?"the middle":`the ${e}${a?` ${a}`:""}`}const qa={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function ja(n,e,a){const r=n?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??n;if(r&&r.tagName!=="HTML"&&r.tagName!=="BODY"){const s=r.tagName.toLowerCase(),o=r.getAttribute("role")==="button"?"button":qa[s]??"part of the page",i=Ha(Ze(r.value||r.getAttribute("aria-label")||r.getAttribute("alt")||r.textContent||""),60);return{kind:"element",label:i?`the “${i}” ${o}`:`a ${o} near ${ht(e)}`,detail:`<${s}>${i?` “${i}”`:""}, near ${ht(e)} of the page`}}return{kind:"spot",label:`a spot near ${ht(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${a.w}×${a.h})`}}const Wa=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,Fa=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,Ka="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",Ua=n=>n.flatMap((e,a)=>[`${a+1}. ${Ze(e.text)}`,...e.points&&Ze(e.points)?[` Points at: ${Ze(e.points)}`]:[]]);function Ba(n,e,a){return[`Preview feedback for ${n.id} (${Ze(n.title)}), sent together from the Preview tab (${e}):`,...Ua(a.map(r=>({text:r.text,points:r.points?.label??null}))),"",Ka].join(`
1
+ import"./DsnmJJEf.js";import{s as _e,r as me,p as K}from"./BAOiF0in.js";import{I as ze,t as Wt}from"./xH4qmLqM.js";import{p as et}from"./CDSHscp6.js";import{a as Ft,o as Et}from"./RYq3318d.js";import{k as Kt,A as Ut,m as A,q as it,g as t,v as w,l as lt,p as Fe,u as We,h as d,s as v,r as l,t as P,a as f,b as Ke,i as b,aB as Bt,o as U,d as q,j as Be,f as De,c as m,y as N,n as fe,bF as Mt,z as Yt,G as gt,x as Dt,aC as Gt}from"./BuRWgnCz.js";import{i as z}from"./BDpRITyb.js";import{a as Pe,s as R,f as Jt,d as ut,l as Vt,e as nt,i as Xt,r as Qt,b as Zt}from"./Cwb6d3g_.js";import{b as Ge}from"./BWRIDih-.js";import{z as ea}from"./DJNADPa5.js";import{a as Pt,f as ta,s as aa,P as ra}from"./qmyjnG6s.js";import{c as na}from"./79yuhTwS.js";import{p as st}from"./fuBLR9dZ.js";import{k as sa,X as Ye}from"./rS7QE60d.js";import{R as At}from"./nW7-TN7t.js";import{E as Lt}from"./IuxiJfHx.js";import{h as ia,m as oa}from"./CFTDQcgN.js";import{a as Rt}from"./BMFk7aZ6.js";import{S as la}from"./BXN538J3.js";import{c as Nt}from"./DYbDyf3M.js";import{M as pt}from"./DxdQiNse.js";import{A as da}from"./C0iYpbLa.js";import{C as ca}from"./C6T16bV1.js";import{C as ua}from"./cmRB1an4.js";import{P as xt}from"./DNc9cRsu.js";import{s as va,a as bt}from"./BT_DAfvO.js";class mt{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,a){var r=this.#e.get(e)||new Set;return r.add(a),this.#e.set(e,r),this.#s().observe(e,this.#r),()=>{var s=this.#e.get(e);s.delete(a),s.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#s(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){mt.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var ha=new mt({box:"border-box"});function wt(n,e,a){var r=ha.observe(n,()=>a(n[e]));Kt(()=>(Ut(()=>a(n[e])),r))}var pa=new Set(["$$slots","$$events","$$legacy"]);function In(n,e){let a=me(e,pa);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var fa=new Set(["$$slots","$$events","$$legacy"]);function vt(n,e){let a=me(e,fa);const r={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ma=new Set(["$$slots","$$events","$$legacy"]);function _t(n,e){let a=me(e,ma);const r={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ga=new Set(["$$slots","$$events","$$legacy"]);function xa(n,e){let a=me(e,ga);const r={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ba=new Set(["$$slots","$$events","$$legacy"]);function yt(n,e){let a=me(e,ba);const r={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var wa=new Set(["$$slots","$$events","$$legacy"]);function kt(n,e){let a=me(e,wa);const r={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var _a=new Set(["$$slots","$$events","$$legacy"]);function ya(n,e){let a=me(e,_a);const r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ka=new Set(["$$slots","$$events","$$legacy"]);function za(n,e){let a=me(e,ka);const r={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Sa=new Set(["$$slots","$$events","$$legacy"]);function $a(n,e){let a=me(e,Sa);const r={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ta=new Set(["$$slots","$$events","$$legacy"]);function Ca(n,e){let a=me(e,Ta);const r={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ea=new Set(["$$slots","$$events","$$legacy"]);function Ma(n,e){let a=me(e,Ea);const r={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Da=new Set(["$$slots","$$events","$$legacy"]);function Pa(n,e){let a=me(e,Da);const r={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}const Aa="{url}";function La(n,e,a){const r=e&&Object.hasOwn(n,e)?n[e]:null;return typeof r!="string"?{href:a.url,external:!0}:{href:r.replace(Aa,encodeURIComponent(a.url)),external:!1}}const Hn={review(n,e){const a=et.data?.pullRequestTabs??{};return La(a,n,e)}},Ra=15e3,Ot=n=>`url:${n}`,Na=n=>n.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(n.slice(4))}`:`/api/tasks/${encodeURIComponent(n)}/preview`,Oa=5e3;class Ia{#e=A(it({}));get checks(){return t(this.#e)}set checks(e){w(this.#e,e,!0)}#t=A(it({}));get failed(){return t(this.#t)}set failed(e){w(this.#t,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const a=this.watching.get(e);a?a.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let r=!1;return()=>{if(r)return;r=!0;const s=this.watching.get(e);!s||--s.count>0||(s.timer&&clearTimeout(s.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const a=this.running.get(e);if(a)return a;const r=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,r),r}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const a=await fetch(Na(e));if(!a.ok)throw new Error(String(a.status));this.checks[e]=await a.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const a=this.watching.get(e);if(!a)return;a.timer&&clearTimeout(a.timer);const r=this.checks[e]?.state==="live"?Ra:Oa;a.timer=setTimeout(()=>{a.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},r)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const a of this.watching.keys())this.refresh(a)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const Qe=new Ia,It=()=>et.data.reviewSurface??null,zt=500,Ze=n=>n.replace(/\s+/g," ").trim(),Ha=(n,e)=>n.length>e?n.slice(0,e-1).trimEnd()+"…":n;function ht(n){const e=n.y<.3333333333333333?"top":n.y<.6666666666666666?"middle":"bottom",a=n.x<1/3?"left":n.x<2/3?"":"right";return e==="middle"&&!a?"the middle":`the ${e}${a?` ${a}`:""}`}const qa={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function ja(n,e,a){const r=n?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??n;if(r&&r.tagName!=="HTML"&&r.tagName!=="BODY"){const s=r.tagName.toLowerCase(),o=r.getAttribute("role")==="button"?"button":qa[s]??"part of the page",i=Ha(Ze(r.value||r.getAttribute("aria-label")||r.getAttribute("alt")||r.textContent||""),60);return{kind:"element",label:i?`the “${i}” ${o}`:`a ${o} near ${ht(e)}`,detail:`<${s}>${i?` “${i}”`:""}, near ${ht(e)} of the page`}}return{kind:"spot",label:`a spot near ${ht(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${a.w}×${a.h})`}}const Wa=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,Fa=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,Ka="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",Ua=n=>n.flatMap((e,a)=>[`${a+1}. ${Ze(e.text)}`,...e.points&&Ze(e.points)?[` Points at: ${Ze(e.points)}`]:[]]);function Ba(n,e,a){return[`Preview feedback for ${n.id} (${Ze(n.title)}), sent together from the Preview tab (${e}):`,...Ua(a.map(r=>({text:r.text,points:r.points?.label??null}))),"",Ka].join(`
2
2
  `)}function qn(n){const e=n.replace(/\r\n?/g,`
3
3
  `).split(`
4
4
  `),a=Wa.exec(e[0]??""),r=a?null:Fa.exec(e[0]??""),s=a??r;if(!s)return null;const o=[];for(const i of e.slice(1)){const c=/^\d+\. (.+)$/.exec(i);if(c){o.push({text:c[1],points:null});continue}const u=/^ {3}Points at: (.+)$/.exec(i);u&&o.length&&(o[o.length-1].points=u[1])}return o.length?{taskId:s[1],title:s[2],url:a?a[3]:null,plugin:r?{id:r[4],name:r[3],subject:r[5]??null}:null,items:o}:null}var Ya=m('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground max-md:grid max-md:size-11 max-md:place-items-center"><!></button>'),Ga=m('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline max-md:min-h-11">Open in new tab<!></a>'),Ja=m('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent max-md:min-h-11" data-preview-fullscreen=""><!>Full screen</button>'),Va=m('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),Xa=m('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),Qa=m('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),Za=m("<!> <!>",1),er=m('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),tr=m('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),ar=m('<iframe referrerpolicy="no-referrer"></iframe> <!>',1),rr=m('<span class="block text-xs"> </span>'),nr=m('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!></p></div>'),sr=m('<p class="text-sm"> </p>'),ir=m('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),or=m('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),lr=m("<div><!> <div><!></div></div>");function dr(n,e){Fe(e,!0);let a=K(e,"taskId",3,null),r=K(e,"url",3,null),s=K(e,"compact",3,!1),o=K(e,"fill",3,!1),i=K(e,"desktop",3,!1),c=K(e,"toolbar",3,!0),u=K(e,"pointing",3,!1),g=K(e,"pin",3,null),C=A(null);function B($){const S=$.currentTarget.getBoundingClientRect(),W=$.clientX-S.left,V=$.clientY-S.top;let F=null;const be=t(Se)?t(ve):1;try{F=t(C)?.contentDocument?.elementFromPoint(W/be,V/be)??null}catch{F=null}const X={x:S.width?W/S.width:0,y:S.height?V/S.height:0};e.onpoint?.(ja(F,X,{w:Math.round(S.width),h:Math.round(S.height)}),X)}const re={w:1280,h:800};let ge=A(0),ee=A(0),I=A(0);const ie=b(()=>a()??Ot(r()??""));We(()=>Qe.watch(t(ie)));const O=b(()=>Qe.checks[t(ie)]??null),ye=b(()=>!!Qe.failed[t(ie)]),j=b(()=>t(O)?.state==="live"),ne=b(()=>t(O)?.url??null),oe=b(()=>t(ne)&&t(O)?Pt.view(t(ne)):null),te=b(()=>t(oe)?ta(t(oe),location.origin):""),ve=b(()=>t(ee)?t(ee)/re.w:0),Se=b(()=>o()&&i()&&t(ve)>0&&t(ve)<1);function Ae(){Bt(ge),Qe.refresh(t(ie))}var Ee={reload:Ae},$e=lr(),xe=d($e);{var Le=$=>{var S=Va(),W=d(S),V=U(W,!0),F=v(W,2);{var be=T=>{var D=Ya(),G=d(D);At(G,{class:"size-3.5"}),l(D),P(()=>{R(D,"aria-label",t(j)?"Reload the preview":"Check the preview again"),R(D,"title",t(j)?"Reload":"Check again")}),N("click",D,Ae),f(T,D)};z(F,T=>{(t(j)||t(O)?.state==="blocked"||t(O)?.state==="down")&&T(be)})}var X=v(F,2);{var ke=T=>{var D=Ga(),G=v(d(D));Lt(G,{class:"size-3.5","aria-hidden":"true"}),l(D),P(()=>R(D,"href",t(oe))),f(T,D)};z(X,T=>{(t(j)||t(O)?.state==="blocked")&&T(ke)})}var Q=v(X,2);{var Y=T=>{var D=Ja(),G=d(D);_t(G,{class:"size-3.5","aria-hidden":"true"}),fe(),l(D),N("click",D,function(...J){e.onfullscreen?.apply(this,J)}),f(T,D)};z(Q,T=>{e.onfullscreen&&t(j)&&T(Y)})}l(S),P(()=>{R(W,"title",t(ne)??void 0),q(V,t(ne)??"Live preview")}),f($,S)};z(xe,$=>{c()&&$(Le)})}var he=v(xe,2),y=d(he);{var L=$=>{var S=Be(),W=De(S);sa(W,()=>`${t(oe)} ${t(ge)}`,V=>{var F=Be(),be=De(F);{var X=Q=>{var Y=Za(),T=De(Y);{var D=E=>{var k=Xa();P(()=>{R(k,"src",t(oe)),R(k,"title",`Live preview of ${t(ne)??""}`),R(k,"sandbox",t(te)),k.inert=!!e.onopen,Pe(k,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),ut(k,`width:${re.w}px;height:${re.h}px;transform:scale(${t(ve)??""})`)}),f(E,k)};z(T,E=>{t(ve)&&E(D)})}var G=v(T,2);{var J=E=>{var k=Qa(),se=d(k),Z=d(se);_t(Z,{class:"size-3.5","aria-hidden":"true"}),fe(),l(se),l(k),N("click",k,function(...x){e.onopen?.apply(this,x)}),f(E,k)};z(G,E=>{e.onopen&&E(J)})}f(Q,Y)},ke=Q=>{var Y=ar(),T=De(Y);Ge(T,E=>w(C,E),()=>t(C));var D=v(T,2);{var G=E=>{var k=er(),se=d(k),Z=d(se);za(Z,{class:"size-4","aria-hidden":"true"}),fe(),l(se),l(k),N("click",k,B),f(E,k)},J=E=>{var k=tr();P(()=>ut(k,`left:${g().x*100}%;top:${g().y*100}%`)),f(E,k)};z(D,E=>{u()?E(G):g()&&E(J,1)})}P(()=>{R(T,"src",t(oe)),R(T,"title",`Live preview of ${t(ne)??""}`),R(T,"sandbox",t(te)),Pe(T,1,Jt(t(Se)?"absolute top-0 left-0 origin-top-left border-0 bg-white":"size-full border-0 bg-white")),ut(T,t(Se)?`width:${re.w}px;height:${t(I)/t(ve)}px;transform:scale(${t(ve)})`:void 0)}),f(Q,Y)};z(be,Q=>{s()?Q(X):Q(ke,-1)})}f(V,F)}),f($,S)},le=$=>{const S=b(()=>!t(O)&&!t(ye)),W=b(()=>t(S)?"Checking the preview…":t(ye)?"Could not check the preview":t(O)?.state==="down"?"Preview stopped":t(O)?.state==="blocked"?"Preview cannot be embedded":t(O)?.state==="refused"?"Preview not shown here":"No live preview reported"),V=b(()=>t(S)?"":t(ye)?"Wheelhouse did not answer; it will try again.":t(O)?.state==="blocked"?`${t(O).reason} Open it in a new tab instead.`:t(O)?.reason??"");var F=Be(),be=De(F);{var X=Q=>{var Y=nr(),T=d(Y);{var D=Z=>{yt(Z,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};z(T,Z=>{t(S)||Z(D)})}var G=v(T,2),J=d(G),E=U(J,!0),k=v(J,2);{var se=Z=>{var x=rr(),_=U(x,!0);P(()=>q(_,t(V))),f(Z,x)};z(k,Z=>{t(V)&&Z(se)})}l(G),l(Y),P(()=>{Pe(J,1,`font-medium ${t(S)?"":"text-foreground"}`),q(E,t(W))}),f(Q,Y)},ke=Q=>{var Y=or(),T=d(Y),D=d(T);{var G=E=>{var k=sr(),se=U(k,!0);P(()=>q(se,t(W))),f(E,k)},J=E=>{var k=ir(),se=De(k);yt(se,{class:"mx-auto size-6","aria-hidden":"true"});var Z=v(se,2),x=U(Z,!0),_=v(Z,2),ce=U(_,!0);P(()=>{q(x,t(W)),q(ce,t(V))}),f(E,k)};z(D,E=>{t(S)?E(G):E(J,-1)})}l(T),l(Y),f(Q,Y)};z(be,Q=>{s()?Q(X):Q(ke,-1)})}f($,F)};z(y,$=>{t(j)&&t(oe)?$(L):$(le,-1)})}return l(he),l($e),P(()=>{Pe($e,1,`min-w-0 ${o()?"flex h-full flex-col":""}`),R($e,"data-live-preview",t(O)?.state??"checking"),Pe(he,1,`group relative w-full overflow-hidden bg-muted/40 ${c()?"mt-1.5 rounded-lg border":""} ${s()?t(j)?"aspect-[16/10]":"":o()?"min-h-0 flex-1":t(j)?"h-[70vh] min-h-80":"h-40"}`)}),wt(he,"clientWidth",$=>w(ee,$)),wt(he,"clientHeight",$=>w(I,$)),f(n,$e),Ke(Ee)}lt(["click"]);const St="wheelhouse-preview-helper",Ht=()=>({said:[],list:[],asking:!1,error:null,sent:null}),cr=Object.freeze(Ht()),Xe=()=>crypto.randomUUID();class ur{#e=A(it({}));get byTask(){return t(this.#e)}set byTask(e){w(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(St)??"{}");if(e&&typeof e=="object"){for(const a of Object.values(e))a.asking=!1;this.byTask=e}}catch{this.byTask={}}}}save(){try{localStorage.setItem(St,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??cr}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Ht()),this.byTask[e]}async ask(e,a,r,s){const o=this.of(e),i=a.trim();if(!i&&!r||o.asking)return;o.said.push({id:Xe(),who:"captain",text:i||"What about this?",points:r}),o.asking=!0,o.error=null,this.save();const c=o.said.filter(u=>!u.notice).map(u=>({who:u.who,text:u.text,points:u.points??null}));try{const u=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[la]:s},body:JSON.stringify({turns:c,list:o.list.map(C=>C.text)})}),g=await u.json().catch(()=>null);!u.ok||!g?.reply?o.error=g?.message??`The helper could not answer (${u.status}).`:o.said.push({id:Xe(),who:"helper",text:g.reply,suggest:g.suggest.map(C=>({text:C,added:!1}))})}catch{o.error="Wheelhouse could not be reached. Try again."}finally{o.asking=!1,this.save()}}accept(e,a,r){const s=this.of(e),o=s.said.findIndex(u=>u.id===a),i=s.said[o]?.suggest?.[r];if(!i||i.added)return;i.added=!0;const c=s.said.slice(0,o).reverse().find(u=>u.who==="captain");s.list.push({id:Xe(),text:i.text,points:c?.points??null}),s.sent=null,this.save()}addOwn(e,a,r=null){const s=a.trim().slice(0,zt);if(!s)return;const o=this.of(e);o.list.push({id:Xe(),text:s,points:r}),o.sent=null,this.save()}edit(e,a,r){const s=this.of(e).list.find(o=>o.id===a);s&&(s.text=r.slice(0,zt),this.save())}remove(e,a){const r=this.of(e),s=r.list.find(o=>o.id===a);r.list=r.list.filter(o=>o.id!==a);for(const o of r.said)for(const i of o.suggest??[])s&&i.text===s.text&&(i.added=!1);this.save()}async send(e,a,r){const s=this.of(e.id),o=s.list.filter(g=>g.text.trim());if(!o.length)return!1;s.error=null;const i=await aa(Ba(e,a,o),r,e.id);if(!i.ok)return s.error=i.error,this.save(),!1;s.sent={at:new Date().toISOString(),count:o.length};const c=e.id.lastIndexOf("@"),u=c>0?`second mate ${e.id.slice(c+1)}`:"Firstmate";return s.list=[],s.said.push({id:Xe(),who:"helper",notice:!0,text:`Sent to ${u}: ${o.length} ${o.length===1?"note":"notes"}, which it passes to this task. Keep going if you spot more; they make a new list.`}),this.save(),!0}clear(e){const a=this.of(e);a.said=[],a.error=null,this.save()}}const Oe=new ur;var vr=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),hr=m("<textarea></textarea>");function pr(n,e){Fe(e,!0);let a=K(e,"ref",15,null),r=K(e,"value",15),s=K(e,"data-slot",3,"textarea"),o=me(e,vr);var i=hr();Mt(i),Vt(i,c=>({"data-slot":s(),class:c,...o}),[()=>Nt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e.class)]),Ge(i,c=>a(c),()=>a()),Rt(i,r),f(n,i),Ke()}const fr={unsupported:"This browser cannot turn speech into text. Chrome and Edge can; you can still type.",blocked:"The microphone is blocked for Wheelhouse. Allow it from the icon in the address bar, then try again.","no-microphone":"No microphone was found. Connect one, then try again.","no-speech":"Nothing was heard. Try again a little closer to the microphone.",network:"The browser’s speech service could not be reached. Check the connection and try again.",failed:"Dictation stopped unexpectedly. Try again, or type instead."};function $t(){if(typeof window>"u")return null;const n=window;return n.SpeechRecognition??n.webkitSpeechRecognition??null}const mr={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},ot=n=>n.trim().split(/\s+/).filter(Boolean),gr=(n,e)=>n.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")===e.toLowerCase().replace(/[^\p{L}\p{N}]/gu,""),qt=(n,e)=>e.length<=n.length&&e.every((a,r)=>gr(a,n[r]));function Tt(n,e){const a=ot(n);return!a.length||qt(ot(e),a)?e:/\s$/.test(n)||/^\s/.test(e)?n+e:`${n} ${e}`}function xr(n,e){const a=ot(n),r=ot(e);return!a.length||!qt(r,a)?e:r.slice(a.length).join(" ")}const br={privacyNote:"Dictation uses your browser’s speech service. In Chrome that sends what you say to Google to turn it into text, only while the microphone is on.",supported:()=>$t()!==null,start(n,e){const a=$t();if(!a)return e.problem("unsupported"),e.end(),{stop(){},abort(){}};const r=new a;r.lang=n,r.continuous=!0,r.interimResults=!0,r.onresult=s=>{let o="",i="";for(let c=0;c<s.results.length;c++){const u=s.results[c];u.isFinal?o=Tt(o,u[0].transcript):i=Tt(i,u[0].transcript)}e.text(o,xr(o,i))},r.onerror=s=>{s.error!=="aborted"&&e.problem(mr[s.error]??"failed")},r.onend=()=>e.end();try{r.start()}catch{e.problem("failed"),e.end()}return{stop:()=>r.stop(),abort:()=>r.abort()}}};let wr=br;const ft=()=>wr,_r=2e3;class yr{#e=A(null);get owner(){return t(this.#e)}set owner(e){w(this.#e,e)}#t=A("idle");get phase(){return t(this.#t)}set phase(e){w(this.#t,e,!0)}#r=A(0);get startedAt(){return t(this.#r)}set startedAt(e){w(this.#r,e,!0)}#s=A(null);get problem(){return t(this.#s)}set problem(e){w(this.#s,e,!0)}#n=null;#a=null;#i=null;active(e){return this.owner===e&&this.phase!=="idle"}start(e,a,r=kr()){this.phase!=="idle"&&this.commit();const s=ft();if(this.owner=e,this.problem=null,!s.supported()){this.problem="unsupported";return}this.#a=a,a.begin(),this.phase="listening",this.startedAt=Date.now();let o=null;const i=()=>o===null||this.#n===o;o=s.start(r,{text:(c,u)=>{i()&&this.#a===a&&a.show(...zr(c,u))},problem:c=>{i()&&(this.problem=c)},end:()=>{i()&&this.#a===a&&this.#o("finish")}}),this.#a===a&&(this.#n=o)}stop(){this.phase==="listening"&&(this.phase="stopping",this.#n?.stop(),this.#i=setTimeout(()=>this.#o("finish"),_r))}commit(){this.phase!=="idle"&&this.#o("finish")}cancel(){this.phase!=="idle"&&this.#o("revert")}dismiss(){this.problem=null}#o(e){const a=this.#n,r=this.#a;this.#n=null,this.#a=null,this.#i&&clearTimeout(this.#i),this.#i=null,this.phase="idle",a?.abort(),r?.[e]()}}const ae=new yr;function kr(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function zr(n,e){const a=n.replace(/\s+/g," ").trim(),r=e.replace(/\s+/g," ").trim();return[a,a&&r?` ${r}`:r]}const jt=n=>n&&!/\s$/.test(n)?" ":"",Sr=n=>/^[\p{L}\p{N}]/u.test(n)?" ":"";function $r(n){let e="",a="",r="",s=!1;const o=(i,c)=>{n.value=i;try{n.setSelectionRange(c,c)}catch{}n.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=n.value;const i=n.selectionStart??e.length,c=n.selectionEnd??i;a=e.slice(0,i),r=e.slice(c),s=!1},show(i,c){const u=i+c;if(!u)return;const g=a+jt(a)+u;o(g+Sr(r)+r,g.length),s=!0},finish(){},revert(){s&&o(e,a.length),s=!1}}}function jn(n,e){let a=null,r=null,s="";const o=i=>{const c=document.createRange();c.setStartAfter(i),c.collapse(!0);const u=window.getSelection();u?.removeAllRanges(),u?.addRange(c)};return{begin(){const i=window.getSelection();let c;i?.rangeCount&&n.contains(i.getRangeAt(0).startContainer)?(c=i.getRangeAt(0),r=c.extractContents()):(c=document.createRange(),c.selectNodeContents(n),c.collapse(!1),r=null);const u=document.createRange();u.setStart(n,0),u.setEnd(c.startContainer,c.startOffset),s=jt(u.toString().replace(/\u00a0/g," ")),a=document.createElement("span"),a.dataset.dictation="",c.insertNode(a)},show(i,c){if(!a)return;const u=document.createTextNode(i||c?s+i:""),g=document.createElement("span");g.className="dictation-forming",g.textContent=c,a.replaceChildren(u,...c?[g]:[]),e()},finish(){if(!a)return;const i=a.textContent??"";if(i){const c=document.createTextNode(i);a.replaceWith(c),(n.contains(document.activeElement)||document.activeElement===n)&&o(c)}else a.replaceWith(r??"");a=null,r=null,e()},revert(){a?.replaceWith(r??""),a=null,r=null,e()}}}const Tr=n=>n.code==="Space"&&n.shiftKey&&(n.metaKey||n.ctrlKey)&&!n.altKey,Cr=450;function Er(n,e,a){let r=0;const s=i=>{if(Tr(i)){if(i.preventDefault(),i.repeat)return;ae.active(e)?(r=0,ae.stop()):(r=Date.now(),a());return}ae.active(e)&&(i.key==="Escape"?(i.preventDefault(),i.stopPropagation(),r=0,ae.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(i.key)||(r=0,ae.commit()))},o=i=>{if(!r||!(i.code==="Space"||["Shift","Meta","Control"].includes(i.key)))return;const c=Date.now()-r;r=0,c>=Cr&&ae.active(e)&&ae.stop()};return n.addEventListener("keydown",s),n.addEventListener("keyup",o),()=>{n.removeEventListener("keydown",s),n.removeEventListener("keyup",o)}}var Mr=m('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),Dr=m('<div class="absolute right-0 bottom-full z-30 mb-2 w-72 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="dialog" aria-label="Before you dictate" data-dictation-note=""><p class="svelte-1uxx7q9"> </p> <p class="mt-1.5 text-muted-foreground svelte-1uxx7q9">Words appear in the box for you to check; nothing is sent until you send it.</p> <div class="mt-2.5 flex justify-end gap-2 svelte-1uxx7q9"><button type="button" class="rounded-md px-2 py-1 text-muted-foreground hover:bg-muted hover:text-foreground svelte-1uxx7q9">Not now</button> <button type="button" class="rounded-md bg-primary px-2.5 py-1 font-medium text-primary-foreground svelte-1uxx7q9">Start dictating</button></div></div>'),Pr=m('<div class="absolute right-0 bottom-full z-30 mb-2 flex w-72 items-start gap-2 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="alert" data-dictation-problem=""><p class="min-w-0 flex-1 svelte-1uxx7q9"> </p> <button type="button" class="-m-1 rounded-sm p-1 text-muted-foreground hover:text-foreground svelte-1uxx7q9" aria-label="Dismiss"><!></button></div>'),Ar=m('<span class="relative inline-flex shrink-0 items-center gap-1.5 svelte-1uxx7q9"><!> <button type="button"><!></button> <span class="sr-only svelte-1uxx7q9" aria-live="polite"> </span> <!></span>');function Lr(n,e){Fe(e,!0);let a=K(e,"label",3,"Dictate"),r=K(e,"size",3,"md"),s=K(e,"disabled",3,!1),o=K(e,"listening",15,!1);const i={};Yt(()=>{o(ae.active(i))});const c=b(()=>o()&&ae.phase==="stopping"),u=b(()=>ae.owner===i?ae.problem:null);let g=A(!1),C=A(it(Date.now())),B=A("Ctrl+Shift+Space");const re="wheelhouse.voice.noted";let ge=!1;function ee(){if(ge)return!0;try{return localStorage.getItem(re)==="1"}catch{return!1}}function I(){if(s())return;const y=ft();if(y.supported()&&y.privacyNote&&!ee()){w(g,!0);return}ae.start(i,e.target()),e.field?.focus()}function ie(){ge=!0;try{localStorage.setItem(re,"1")}catch{}w(g,!1),I()}function O(){o()?ae.stop():t(g)?w(g,!1):I()}const ye=b(()=>{const y=Math.max(0,Math.floor((t(C)-ae.startedAt)/1e3));return`${Math.floor(y/60)}:${String(y%60).padStart(2,"0")}`});We(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&w(B,"⌘⇧Space")}),We(()=>{if(!o())return;w(C,Date.now(),!0);const y=setInterval(()=>w(C,Date.now(),!0),250);return()=>clearInterval(y)}),We(()=>{if(e.field)return Er(e.field,i,I)}),We(()=>{if(!o()&&!t(g))return;const y=L=>{L.key!=="Escape"||L.defaultPrevented||(L.preventDefault(),o()&&ae.cancel(),w(g,!1))};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)}),Ft(()=>{ae.active(i)&&ae.commit()});var j=Ar(),ne=d(j);{var oe=y=>{var L=Mr(),le=U(L,!0);P(()=>q(le,t(c)?"Finishing…":t(ye))),f(y,L)};z(ne,y=>{o()&&y(oe)})}var te=v(ne,2),ve=d(te);{var Se=y=>{{let L=b(()=>r()==="md"?"size-3.5 fill-current":"size-3 fill-current");Pa(y,{get class(){return t(L)}})}},Ae=y=>{{let L=b(()=>r()==="md"?"size-4.5":"size-4");xa(y,{get class(){return t(L)}})}};z(ve,y=>{o()?y(Se):y(Ae,-1)})}l(te);var Ee=v(te,2),$e=U(Ee,!0),xe=v(Ee,2);{var Le=y=>{var L=Dr(),le=d(L),$=U(le,!0),S=v(le,4),W=d(S),V=v(W,2);l(S),l(L),P(F=>q($,F),[()=>ft().privacyNote]),N("click",W,()=>w(g,!1)),N("click",V,ie),f(y,L)},he=y=>{var L=Pr(),le=d(L),$=U(le,!0),S=v(le,2),W=d(S);Ye(W,{class:"size-3.5"}),l(S),l(L),P(()=>q($,fr[t(u)])),N("click",S,()=>ae.dismiss()),f(y,L)};z(xe,y=>{t(g)?y(Le):t(u)&&y(he,1)})}l(j),P(()=>{R(te,"aria-label",o()?"Stop dictating":a()),R(te,"aria-pressed",o()),R(te,"title",o()?"Stop dictating · Esc cancels":`${a()} (${t(B)}; hold for push-to-talk)`),te.disabled=s(),R(te,"data-dictating",o()?"":void 0),Pe(te,1,`mic flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-30 ${r()==="md"?"size-9 max-md:size-11":`size-7 ${st.current?"touch-target":""}`} ${o()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),q($e,o()?"Listening":"")}),N("mousedown",te,y=>y.preventDefault()),N("click",te,O),f(n,j),Ke()}lt(["mousedown","click"]);var Rr=new Set(["$$slots","$$events","$$legacy","value","class"]),Nr=m('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function Or(n,e){Fe(e,!0);let a=K(e,"value",15),r=me(e,Rr),s=A(null),o=A(!1);var i=Nr(),c=d(i);{let C=b(()=>Nt(e.class,t(o)?"pr-24":"pr-10"));pr(c,_e({get class(){return t(C)}},()=>r,{get ref(){return t(s)},set ref(B){w(s,B,!0)},get value(){return a()},set value(B){a(B)}}))}var u=v(c,2),g=d(u);{let C=b(()=>!!e.disabled);Lr(g,{get field(){return t(s)},target:()=>$r(t(s)),size:"sm",get disabled(){return t(C)},get listening(){return t(o)},set listening(B){w(o,B,!0)}})}l(u),l(i),f(n,i),Ke()}var Ir=m('<span class="inline-flex max-w-[85%] items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea"><!><span class="truncate"> </span></span>'),Hr=m('<li class="flex flex-col items-end gap-1" data-said="captain"><!> <p class="max-w-[85%] rounded-xl rounded-br-sm border border-[var(--bubble-captain-border)] bg-[var(--bubble-captain)] px-3 py-2 text-sm leading-relaxed whitespace-pre-wrap"> </p></li>'),qr=m('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),jr=m('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),Wr=m('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-sea/90" data-add-to-list=""><!>Add to the list</button>'),Fr=m('<div class="mt-2 rounded-md border bg-card px-3 py-2" data-suggestion=""><p class="text-sm leading-snug"> </p> <div class="mt-1.5"><!></div></div>'),Kr=m('<li class="flex gap-2.5" data-said="helper"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <div class="min-w-0 flex-1"><div></div> <!> <!></div></li>'),Ur=m('<li class="flex gap-1 py-1 pl-9" role="status" aria-label="The helper is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></li>'),Br=m('<li class="text-sm text-danger" role="alert"> </li>'),Yr=m('<div class="flex items-center gap-1.5 px-2.5 pt-2"><span class="inline-flex min-w-0 items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea" data-attached=""><!><span class="truncate"> </span></span> <button class="flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground hover:bg-muted" aria-label="Not about this part"><!></button></div>'),Gr=m('<span class="text-xs text-muted-foreground">· not sent yet</span>'),Jr=m('<p class="text-xs text-muted-foreground"> </p>'),Vr=m('<li class="group flex items-start gap-2 rounded-md border bg-background px-2 py-1"><span class="mt-0.5 w-4 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span> <div class="min-w-0 flex-1"><textarea rows="1" maxlength="500" class="no-scrollbar block field-sizing-content w-full resize-none rounded bg-transparent text-sm leading-snug outline-none focus:bg-accent/40 max-md:text-base"></textarea> <!></div> <button class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground opacity-60 group-hover:opacity-100 hover:bg-muted hover:text-foreground max-md:size-11" aria-label="Remove from the list"><!></button></li>'),Xr=m('<ol class="flex flex-col gap-1.5"></ol>'),Qr=m('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),Zr=m('<div class="no-scrollbar max-h-48 overflow-y-auto px-4"><!> <form class="mt-1.5 flex items-center gap-1"><!> <input maxlength="500" placeholder="Add your own" aria-label="Add your own feedback" class="h-7 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-11 max-md:text-base"/></form></div>'),en=m(`<section class="flex min-h-0 flex-col rounded-lg border bg-panel" aria-label="Talk about this preview" data-preview-helper=""><header class="border-b px-4 py-3"><h2 class="flex items-center gap-2 text-base"><!>Talk it through</h2> <p class="mt-0.5 text-xs text-muted-foreground">A helper that sees only this preview. Nothing goes to Firstmate until you send.</p></header> <div class="no-scrollbar min-h-40 flex-1 overflow-y-auto px-4 py-4"><ol class="flex flex-col gap-4"><li class="flex gap-2.5"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <p class="min-w-0 flex-1 text-sm leading-relaxed">I can see this preview, its screenshots, the task’s instructions and what the worker has
@@ -1 +1 @@
1
- import{p as r}from"./CGKMBwQH.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"./Cwo48ib8.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,3 @@
1
+ @dkN_�rU̪J!'_ܠj�e��r�%�d�J�bkd�{�Q�Yb
2
+ �o����~yMϮ� �"����7��kk��.�yh�eL�̄h��$�V1�ѵBV��
3
+ R^ �G�2��6���J�R�H����m���9
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{o as ra}from"./RYq3318d.js";import{q as na,l as Lt,p as Et,f as _e,h as l,o as M,s,g as e,t as y,d as b,a as f,r as i,y as le,b as Ht,i as m,c as p,n as Re,br as oa,v as Ae,m as tt,aa as jt}from"./BuRWgnCz.js";import{i as C}from"./BDpRITyb.js";import{e as pe,s as h,a as V,f as sa,d as ia}from"./Cwb6d3g_.js";import{I as nt,t as It}from"./xH4qmLqM.js";import{s as ot,r as st,p as qe}from"./BAOiF0in.js";import{S as la}from"./Dpd1rs9R.js";import{p as da}from"./01zSWHgS.js";import{a as _t}from"./BCUUi0V0.js";import{h as ua,r as ca,A as wt,e as va,a as Tt,p as ma}from"./Dse7bjta.js";import{t as fa,s as pa,a as ha}from"./CR7y1ULG.js";import{r as ga,a as Nt,W as xa,S as ba}from"./BB2roMZd.js";import{f as Dt}from"./C_4BzEag.js";import{i as at}from"./CspN1OJw.js";import{r as _a,s as wa}from"./DJNADPa5.js";import{T as ka}from"./DjzsLGyn.js";import{S as ya}from"./D62zkI9j.js";import{M as zt}from"./DSQSpWxL.js";import{c as Ca}from"./DLuhTA05.js";import{d as Ma,O as Sa}from"./Crqp6P7x.js";import{C as ja,E as Ia,a as Ta}from"./CVuE8Mrz.js";import{O as za,G as Aa}from"./l1ecpO65.js";import{M as bt}from"./DxdQiNse.js";import{A as Ra}from"./r_9m29GC.js";import{C as Ft}from"./cmRB1an4.js";import{C as qa}from"./B0XeFYOk.js";import{U as Oa}from"./Clm3nvxi.js";import{H as La}from"./CtgbxGhR.js";import{G as At}from"./C8be1l5w.js";import{c as Ea,g as Ha,G as Na}from"./Dd58JmFO.js";import{A as Rt}from"./DeVe8oaI.js";import{X as Da}from"./rS7QE60d.js";import{S as qt}from"./DGK4csRg.js";import{C as Fa}from"./CqfUJirh.js";import{S as Ua}from"./D1uwWhcg.js";var Wa=new Set(["$$slots","$$events","$$legacy"]);function Ya(n,a){let _=st(a,Wa);const x={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],aliases:["x-circle"]};nt(n,ot(()=>_,{get icon(){return x}}))}var Pa=new Set(["$$slots","$$events","$$legacy"]);function Ga(n,a){let _=st(a,Pa);const x={name:"loader",size:24,node:[["path",{d:"M12 2v4"}],["path",{d:"m16.2 7.8 2.9-2.9"}],["path",{d:"M18 12h4"}],["path",{d:"m16.2 16.2 2.9 2.9"}],["path",{d:"M12 18v4"}],["path",{d:"m4.9 19.1 2.9-2.9"}],["path",{d:"M2 12h4"}],["path",{d:"m4.9 4.9 2.9 2.9"}]]};nt(n,ot(()=>_,{get icon(){return x}}))}var Ba=new Set(["$$slots","$$events","$$legacy"]);function Ka(n,a){let _=st(a,Ba);const x={name:"message-square-text",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}],["path",{d:"M7 11h10"}],["path",{d:"M7 15h6"}],["path",{d:"M7 7h8"}]]};nt(n,ot(()=>_,{get icon(){return x}}))}var Qa=new Set(["$$slots","$$events","$$legacy"]);function Va(n,a){let _=st(a,Qa);const x={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3"}],["path",{d:"m2 22 3-3"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z"}],["path",{d:"M7.5 13.5 10 11"}],["path",{d:"M10.5 16.5 13 14"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z"}]]};nt(n,ot(()=>_,{get icon(){return x}}))}const Za=na({pending:null,draft:null,decision:null}),he=":firstmate",we="all",Ut=n=>n.secondMate?.id??he;function Xa(n,a){if(n.secondMate)return n.secondMate.id;const _=a.find(x=>x.id===n.taskId);return _?Ut(_):he}function Ja(n){if(n.length<2)return"";const a=n[0].match(/[-_.][^-_.]+$/)?.[0];return a&&n.every(_=>_.endsWith(a)&&_.length>a.length)?a:""}function $a(n,a=[]){const _=[...new Set(a.map(u=>u.crew))].filter(u=>u!==he&&!n.some(Z=>Z.id===u)),x=Ja([...n.map(u=>u.id),..._]),T=u=>x?u.slice(0,-x.length):u;return[{id:he,label:"Firstmate",short:"Firstmate",mate:null},...n.map(u=>({id:u.id,label:u.id,short:T(u.id),mate:u})),..._.map(u=>({id:u,label:u,short:T(u),mate:null}))]}const er=(n,a)=>n&&a.some(_=>_.id===n)?n:we,rt=(n,a)=>n===we||n===a;function tr(n){const a=n.passage.steps[n.passage.current];return a?.failed?{label:`${a.label} failed`,icon:"failed",tone:"danger"}:n.status==="failed"?{label:"Failed",icon:"failed",tone:"danger"}:n.status==="blocked"?{label:"Stuck",icon:"stuck",tone:"danger"}:n.status==="lost"||n.status==="unknown"?{label:"Not responding",icon:"lost",tone:"warning"}:n.attention?.owner==="captain"?n.attention.kind==="review"?n.attention.approved?{label:"Your merge",icon:"merge",tone:"sea"}:{label:"Your review",icon:"review",tone:"sea"}:{label:"Your call",icon:"call",tone:"sea"}:n.attention?.owner==="reviewers"?{label:"With reviewers",icon:"reviewers",tone:"muted"}:n.addressingReview?{label:ga(n)??"Changes requested",icon:"changes",tone:"muted"}:n.status==="with-firstmate"?{label:"Firstmate deciding",icon:"firstmate",tone:"warning"}:n.status==="queued"?{label:"Queued",icon:"queued",tone:"quiet"}:n.status==="landed"?{label:"Landed",icon:"landed",tone:"success"}:Nt(n)?{label:`Checks: ${n.pipeline.label}`,icon:"moving",tone:n.busy?"busy":"muted"}:{label:n.busy?"Working":"Idle",icon:"moving",tone:n.busy?"busy":"muted"}}const ar={label:"Your call",icon:"call",tone:"sea"};function Wt(n,a){const _=n?Date.parse(n):NaN;if(Number.isNaN(_))return"";const x=Math.max(0,(a-_)/1e3);if(x<60)return"now";const T=Math.round(x/60);if(T<60)return`${T}m`;const u=Math.round(T/60);return u<24?`${u}h`:`${Math.round(u/24)}d`}const ze=(n,a)=>({kind:"task",key:`task:${n.id}`,task:n,text:a,crew:Ut(n),at:n.mergedAt??n.activity?.at??n.since});function rr(n,a,_,x=null){const T=o=>!x||o===x,u=ua(n,a),Z=(_?.shown??[]).filter(o=>Dt(o)&&T(o.projectId)),v=o=>o.secondMate?.taskId?`${o.secondMate.taskId}@${o.secondMate.id}`:o.taskId,de=new Set((_?.all??[]).filter(o=>o.kind==="hold").map(v)),X=new Set(Z.filter(o=>o.kind==="merge").map(v)),Y=new Set(u.stepFailed.map(o=>o.id)),me=u.stepFailed.filter(o=>!u.needsYou.includes(o)),oe=u.needsYou.filter(o=>!(o.attention?.kind==="decision"&&de.has(o.id))&&!(o.attention?.kind==="review"&&X.has(o.id))),D=o=>o.attention?.kind==="decision"&&o.attention.text||o.shortTitle;return{h:u,needs:[...Z.map(o=>({kind:"decision",key:`decision:${o.id}`,card:o,text:o.question,crew:Xa(o,n),at:o.askedAt})),...me.map(o=>ze(o,o.shortTitle)),...oe.map(o=>ze(o,D(o)))],withFirstmate:u.waitingOnFirstmate.filter(o=>!Y.has(o.id)).map(o=>ze(o,D(o))),under:ca(u).filter(o=>!Y.has(o.id)).map(o=>ze(o,o.shortTitle)),next:u.queued.map(o=>ze(o,o.shortTitle)),landed:u.landedRecent.filter(o=>!Y.has(o.id)).map(o=>ze(o,o.shortTitle))}}function nr(n,a,_){return a.filter(x=>rt(_,x.id)).map(x=>({crew:x,lines:n.filter(T=>T.crew===x.id)})).filter(x=>x.lines.length||_!==we)}var or=p('<span class="mx-1" aria-hidden="true">·</span>'),sr=p("<!><span> </span>",1),ir=p('<button type="button" title="Chat about this"><!></button>'),lr=p('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),dr=p('<span class="text-muted-foreground"> </span>'),ur=p('<span class="ml-auto text-muted-foreground"> </span>'),cr=p('<p class="leading-snug text-muted-foreground"> </p>'),vr=p('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),mr=p('<div class="pt-1"><!></div>'),fr=p('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),pr=p('<div class="-mt-2"><!></div>'),hr=p('<div class="flex flex-col gap-2 text-xs"><div class="flex flex-wrap items-center gap-1.5"><span><!> </span> <!> <!> <!></div> <!> <!> <!> <!> <!> <!> <div class="-ml-1.5 flex flex-wrap gap-0.5"><a><!>Open</a> <button type="button"><!>Chat about this</button></div></div>'),gr=p('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),xr=p('<div><button type="button" data-deck-line="" class="flex h-full min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md py-2 pr-1 pl-1 text-left focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1"><span> </span> <span class="block truncate text-xs text-muted-foreground"></span></span> <span class="state-tag shrink-0 pl-2"> </span></button> <!></div> <!>',1);function br(n,a){Et(a,!0);let _=qe(a,"dim",3,!1);const x={failed:Ya,stuck:Sa,lost:Va,merge:Aa,review:At,call:La,reviewers:Oa,changes:Ka,firstmate:wt,queued:qa,landed:Ft,moving:Ga},T={danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",sea:"bg-sea/10 text-sea",muted:"bg-muted text-muted-foreground",busy:"bg-muted text-foreground",success:"bg-success/10 text-success",quiet:"bg-muted text-muted-foreground"},u=m(()=>a.line.kind==="task"?tr(a.line.task):ar),Z=m(()=>x[e(u).icon]),v=m(()=>a.line.kind==="task"?a.line.task:null),de=m(()=>`deck-${a.line.key.replace(/[^\w-]/g,"-")}`),X=m(()=>e(v)&&a.line.text!==e(v).shortTitle?e(v).shortTitle:e(v)?.attention?.owner==="captain"&&e(v).attention.text&&e(v).attention.text!==a.line.text?e(v).attention.text:null),Y=m(()=>e(v)?e(v).activity?.text||e(v).summary||e(v).statusLabel:null),me=m(()=>[a.project?{key:"project",text:a.project.tag,title:a.project.name}:null,e(X)??(e(Y)&&e(Y)!==a.line.text?e(Y):null)?{key:"doing",text:e(X)??e(Y),title:void 0}:null,a.line.at?{key:"age",text:Wt(a.line.at,a.now),title:_t(a.line.at,a.now)}:null].filter(F=>F!==null)),oe=m(()=>e(v)?e(v).attention?.url??e(v).pr?.url??null:null),D=m(()=>e(v)?`/tasks/${encodeURIComponent(e(v).id)}`:null),o="flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring";var Oe=xr(),ke=_e(Oe),z=l(ke),ye=l(z),Ce=l(ye),fe=M(Ce,!0),Le=s(Ce,2);pe(Le,23,()=>e(me),F=>F.key,(F,q,J)=>{var se=sr(),U=_e(se);{var ie=$=>{var ce=or();f($,ce)};C(U,$=>{e(J)&&$(ie)})}var re=s(U),ge=M(re,!0);y(()=>{h(re,"title",e(q).title),h(re,"data-project-tag",e(q).key==="project"||void 0),b(ge,e(q).text)}),f(F,se)}),i(Le),i(ye);var Me=s(ye,2),te=M(Me,!0);i(z);var Ee=s(z,2);{var it=F=>{var q=ir(),J=l(q);bt(J,{class:"size-3.5"}),i(q),y(()=>{V(q,1,`flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${a.open?"opacity-100":""}`),h(q,"aria-label",`Chat about ${e(v).shortTitle??""}`)}),le("click",q,()=>a.onChat(e(v))),f(F,q)},Ye=F=>{var q=lr(),J=l(q);bt(J,{class:"size-3.5"}),i(q),y(se=>{h(q,"href",se),V(q,1,`flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${a.open?"opacity-100":""}`)},[()=>Ma(a.line.card.id)]),f(F,q)};C(Ee,F=>{e(v)?F(it):a.line.kind==="decision"&&F(Ye,1)})}i(ke);var Se=s(ke,2);{var lt=F=>{var q=gr(),J=l(q);{var se=ie=>{{let re=m(()=>a.project?.name??null);za(ie,{get card(){return a.line.card},get project(){return e(re)},get now(){return a.now},onLater:()=>at.later(a.line.card.id)})}},U=ie=>{var re=hr(),ge=l(re),$=l(ge),ce=l($);Ca(ce,()=>e(Z),(g,S)=>{S(g,{class:"size-3","aria-hidden":"true"})});var dt=s(ce,1,!0);i($);var Pe=s($,2);xa(Pe,{get task(){return e(v)}});var Ge=s(Pe,2);{var Be=g=>{var S=dr(),P=M(S,!0);y(()=>b(P,a.project.name)),f(g,S)};C(Ge,g=>{a.project&&g(Be)})}var Ke=s(Ge,2);{var ut=g=>{var S=ur(),P=M(S,!0);y(Te=>b(P,Te),[()=>_t(a.line.at,a.now)]),f(g,S)};C(Ke,g=>{a.line.at&&g(ut)})}i(ge);var He=s(ge,2);{var ct=g=>{var S=cr(),P=M(S,!0);y(()=>b(P,e(X))),f(g,S)};C(He,g=>{e(X)&&g(ct)})}var Qe=s(He,2);{var vt=g=>{ja(g,{get pipeline(){return e(v).pipeline},get busy(){return e(v).busy},size:"rail"})},ue=m(()=>Nt(e(v))),mt=g=>{var S=vr(),P=M(S,!0);y(()=>b(P,e(Y))),f(g,S)};C(Qe,g=>{e(ue)?g(vt):e(Y)&&e(Y)!==a.line.text&&g(mt,1)})}var ne=s(Qe,2);{var Ve=g=>{var S=mr(),P=l(S);ba(P,{get task(){return e(v)}}),i(S),f(g,S)};C(ne,g=>{e(v).passage.steps.length>1&&g(Ve)})}var Ne=s(ne,2);{var De=g=>{Ia(g,{get eta(){return e(v).eta}})};C(Ne,g=>{e(v).eta&&g(De)})}var Fe=s(Ne,2);{var ft=g=>{var S=fr(),P=l(S);At(P,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var Te=s(P,1,!0);i(S),y(()=>{h(S,"href",e(oe)),b(Te,e(oe))}),f(g,S)};C(Fe,g=>{e(oe)&&g(ft)})}var je=s(Fe,2);{var Ze=g=>{var S=pr(),P=l(S);Ta(P,{get task(){return e(v)}}),i(S),f(g,S)};C(je,g=>{e(v).preview&&g(Ze)})}var Xe=s(je,2),xe=l(Xe);V(xe,1,sa(o));var pt=l(xe);Ra(pt,{class:"size-3.5","aria-hidden":"true"}),Re(),i(xe);var Ie=s(xe,2);V(Ie,1,"flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring cursor-pointer");var Ue=l(Ie);bt(Ue,{class:"size-3.5","aria-hidden":"true"}),Re(),i(Ie),i(Xe),i(re),y(()=>{V($,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${T[e(u).tone]??""}`),b(dt,e(u).label),h(xe,"href",e(D))}),le("click",Ie,()=>a.onChat(e(v))),f(ie,re)};C(J,ie=>{a.line.kind==="decision"?ie(se):e(v)&&ie(U,1)})}i(q),y(()=>h(q,"id",e(de))),f(F,q)};C(Se,F=>{a.open&&F(lt)})}y(()=>{V(ke,1,`group relative flex items-center border-b border-hair transition-colors ${a.open?"bg-muted/70":"hover:bg-muted/50"}`),h(z,"aria-expanded",a.open),h(z,"aria-controls",e(de)),h(z,"title",e(X)?`${a.line.text} (${e(X)})`:a.line.text),V(Ce,1,`block truncate text-[0.95rem] font-medium ${_()?"text-muted-foreground":"text-foreground"}`),b(fe,a.line.text),h(Me,"data-tone",e(u).tone),b(te,e(u).label)}),le("click",z,function(...F){a.onToggle?.apply(this,F)}),f(n,Oe),Ht()}Lt(["click"]);var _r=oa('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),wr=p('<span class="gauge" aria-hidden="true"><svg viewBox="0 0 52 52"><circle cx="26" cy="26" class="gauge-track"></circle><!></svg> <span class="gauge-label"> </span></span>');function Ot(n,a){let _=qe(a,"tone",3,"gold");const x=22,T=2*Math.PI*x,u=m(()=>a.value===null?0:Math.max(0,Math.min(100,Math.round(a.value))));var Z=wr(),v=l(Z),de=l(v);h(de,"r",x);var X=s(de);{var Y=D=>{var o=_r();h(o,"r",x),y(()=>h(o,"stroke-dasharray",`${e(u)/100*T} 138.23007675795088`)),f(D,o)};C(X,D=>{a.value!==null&&e(u)>0&&D(Y)})}i(v);var me=s(v,2),oe=M(me,!0);i(Z),y(()=>{h(Z,"data-tone",_()),b(oe,a.value===null?"–":`${e(u)}%`)}),f(n,Z)}var kr=p('<span class="min-w-0 truncate text-muted-foreground"> </span>'),yr=p('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),Cr=p('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),Mr=p('<p class="mb-1 flex items-center gap-2 px-1.5 text-xs text-muted-foreground"><!> <span class="min-w-0 truncate"> </span> <a class="ml-auto shrink-0 hover:text-foreground hover:underline">More</a></p>'),Sr=p('<h3 class="mt-3 mb-0.5 first:mt-0"><button type="button"><!> <span class="shrink-0 text-muted-foreground tabular-nums"> </span> <span class="min-w-2 flex-1 border-t border-hair" aria-hidden="true"></span> <!></button></h3> <!>',1),jr=p("<span> <b> </b> left</span>"),Ir=p('<a href="/headroom" class="ml-auto flex min-w-0 flex-col items-end rounded-md px-1.5 py-1 text-xs leading-tight text-muted-foreground hover:bg-muted hover:text-foreground max-md:min-h-11 max-md:justify-center" data-headroom=""><span class="sr-only">Claude headroom:</span> <!></a>'),Tr=p('<a href="/headroom" class="ml-auto flex items-center gap-1.5 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground" title="Connect your Claude usage to see what is left"><!>Connect usage</a>'),zr=p('<button aria-label="Close"><!></button>'),Ar=p('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),Rr=p('<div class="shrink-0 px-4 pt-4"><div class="flex flex-wrap gap-2 text-[0.9rem]" role="radiogroup" aria-label="Whose work" tabindex="-1"></div></div>'),qr=p("<span> </span>"),Or=p('<button role="tab" aria-controls="rail-panel"> <!></button>'),Lr=p('<div class="px-1.5" data-slot="home.card"><!></div>'),Er=p('<button type="button" class="float-right -mt-1 ml-2 flex cursor-pointer items-center gap-0.5 rounded-md px-1.5 py-1 text-xs whitespace-nowrap text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring max-md:float-none max-md:mt-0 max-md:ml-auto max-md:min-h-11 max-md:text-sm"><!> </button>'),Hr=p("<li><!></li>"),Nr=p("<ul></ul>"),Dr=p('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Fr=p("<section><!> <!></section>"),Ur=p('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Wr=p('<li><a class="flex h-8 items-center gap-2 rounded-md px-1.5 hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1 truncate text-[0.875rem] text-muted-foreground"> </span> <span class="shrink-0 text-xs font-medium"> </span> <span class="w-7 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span></a></li>'),Yr=p('<div class="mt-4 mb-0.5 flex items-center gap-2 px-1.5 text-xs"><h3 class="flex items-center gap-1.5 font-medium text-muted-foreground"><!>Decided for you</h3> <span class="flex-1 border-t border-hair" aria-hidden="true"></span> <a href="/decisions" class="text-muted-foreground hover:text-foreground">See all</a></div> <ul></ul>',1),Pr=p('<a href="/time" class="mt-4 block rounded-md px-1.5 py-1 hover:bg-muted/50"><span class="block text-xs text-muted-foreground"><span class="font-medium text-foreground"> </span> </span> <span class="mt-1.5 block"><!></span> <span class="mt-1.5 block text-xs text-muted-foreground"> </span></a>'),Gr=p("<!> <div></div> <!> <!>",1),Br=p('<a href="/second-mates" class="flex items-center justify-between gap-3 border-t px-1 py-3.5 text-muted-foreground hover:text-foreground">Every second mate, with its queue, pull requests and a look at it <!></a>'),Kr=p('<li class="mt-3 max-md:mt-1"><a class="group block text-sm max-md:py-1.5"><span class="flex items-baseline justify-between gap-2" aria-hidden="true"><span class="truncate font-medium group-hover:underline"> </span> <span class="shrink-0 text-xs text-muted-foreground"> </span></span> <span class="glance-bar" aria-hidden="true"><span></span></span></a></li>'),Qr=p('<section class="mt-4 rounded-2xl border bg-card/70 px-4 pt-4 pb-4.5" aria-labelledby="rail-glance" data-glance=""><h3 id="rail-glance" class="font-semibold">Harbour at a glance</h3> <p class="text-sm text-muted-foreground">The fleet, without leaving the bridge.</p> <ul></ul></section>'),Vr=p('<aside class="flex h-full min-h-0 flex-col" aria-label="Tasks and decisions" aria-describedby="rail-headline"><p id="rail-headline" class="sr-only"> </p> <div class="flex h-16 shrink-0 items-center gap-2 border-b px-5 text-sm"><span class="font-title text-[2.15rem] leading-none">On <em class="text-gold">deck</em></span> <!> <!></div> <div class="grid shrink-0 grid-cols-2 gap-2.5 px-4 pt-4" data-gauges=""><a href="/headroom" class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold"> </span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a> <a class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold">Checks</span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a></div> <!> <div class="mt-3 no-scrollbar flex shrink-0 gap-5 overflow-x-auto border-b px-4" role="tablist" aria-label="On deck" tabindex="-1"></div> <div id="rail-panel" role="tabpanel" class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-3"><!> <nav class="mt-5 flex flex-col" aria-label="More on deck"><a class="flex items-center justify-between gap-3 border-t px-1 py-3.5 font-medium hover:text-gold"> <!></a> <!></nav> <!></div></aside>');function Ln(n,a){Et(a,!0);const _=(t,r=jt,d=jt)=>{var w=Sr(),c=_e(w),E=l(c),H=l(E);{var O=I=>{var R=yr(),k=_e(R);qt(k,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var N=s(k,2),Q=M(N,!0),B=s(N,2);{var ee=ve=>{var be=kr(),We=M(be,!0);y(()=>b(We,r().mate.where==="remote"?`on ${r().mate.host??"another host"}`:"on this computer")),f(ve,be)};C(B,ve=>{r().mate&&ve(ee)})}y(()=>b(Q,r().label)),f(I,R)},ae=I=>{var R=Cr(),k=_e(R);wt(k,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var N=s(k,2),Q=M(N,!0);y(()=>b(Q,r().label)),f(I,R)};C(H,I=>{r().id!==he?I(O):I(ae,-1)})}var L=s(H,2),j=M(L,!0),A=s(L,4);{var W=I=>{zt(I,{get health(){return r().mate.health}})};C(A,I=>{r().mate&&(r().mate.health.online!=="online"||r().mate.health.cached)&&I(W)})}i(E),i(c);var K=s(c,2);{var G=I=>{var R=Mr(),k=l(R);zt(k,{get health(){return r().mate.health}});var N=s(k,2),Q=M(N),B=s(N,2);i(R),y(ee=>{h(R,"data-second-mate",r().mate.id),h(N,"title",r().mate.lastReport?.text),b(Q,`${r().mate.stateLabel??""}${r().mate.queued.length?` · ${r().mate.queued.length} queued`:""}${r().mate.lastReport?` · “${r().mate.lastReport.text}”`:""}`),h(B,"href",`/second-mates#mate-${ee??""}`)},[()=>encodeURIComponent(r().mate.id)]),f(I,R)};C(K,I=>{r().mate&&e(te)===r().id&&I(G)})}y(()=>{h(c,"data-crew",r().id),V(E,1,`flex h-6 w-full items-center gap-1.5 rounded-md px-1.5 text-left text-xs focus-visible:outline-2 focus-visible:outline-ring ${e(te)===r().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),h(E,"aria-label",`${r().label??""}${r().mate?`, ${r().mate.where==="remote"?`on ${r().mate.host??"another host"}`:"on this computer"}`:""}: ${d()??""}${e(te)===r().id?"":". Show only this crew"}`),b(j,d())}),le("click",E,()=>Ee(r().id)),f(t,w)};let x=qe(a,"insights",3,null),T=qe(a,"scope",3,null),u=qe(a,"cards",19,()=>[]),Z=qe(a,"secondMates",19,()=>[]);const v=t=>!T()||t===T(),de=m(()=>(x()?.decisions??[]).filter(t=>v(t.projectId))),X=m(()=>pa((x()?.today??[]).filter(t=>v(t.projectId)))),Y=m(()=>fa(e(X))),me=m(()=>(x()?.today??[]).filter(t=>v(t.projectId)).length),oe=t=>e(Y)?Math.round(e(X)[t]/e(Y)*100):0,D=m(()=>x()?.allowance??null),o=m(()=>da.data.inbox),Oe=m(()=>at.view(e(o))),ke=m(()=>e(Oe)?.available?{shown:at.shown(a.now,e(o)).shown.filter(Dt),all:e(Oe).cards}:null),z=m(()=>rr(a.tasks,a.now,e(ke),T())),ye=m(()=>[...e(z).needs,...e(z).withFirstmate,...e(z).under,...e(z).next,...e(z).landed]),Ce=m(()=>T()?Z().filter(t=>e(ye).some(r=>r.crew===t.id)):Z()),fe=m(()=>$a(e(Ce),e(ye))),Le="wheelhouse-rail-crew";let Me=tt(null);const te=m(()=>er(e(Me),e(fe)));function Ee(t){Ae(Me,t,!0);try{localStorage.setItem(Le,t)}catch{}}function it(t){if(!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const r=[we,...e(fe).map(c=>c.id)],d=r.indexOf(e(te)),w=t.key==="Home"?0:t.key==="End"?r.length-1:(d+(t.key==="ArrowRight"?1:r.length-1))%r.length;Ee(r[w]),document.getElementById(Ye(r[w]))?.focus()}const Ye=t=>`rail-crew-${t.replace(/[^\w-]/g,"-")}`,Se=t=>t.filter(r=>rt(e(te),r.crew)),lt=t=>[...e(z).needs,...e(z).withFirstmate,...e(z).under].filter(r=>rt(t,r.crew)).length,F=t=>e(z).needs.filter(r=>rt(t,r.crew)).length,q="wheelhouse-rail-tab",J=m(()=>[{id:"under",label:"Under way",count:Se(e(z).under).length,strong:!1},{id:"needs",label:"Needs you",count:Se(e(z).needs).length,strong:!0},{id:"landed",label:"Landed",count:Se(e(z).landed).length,strong:!1},...u().map(t=>({id:t.key,label:t.title,count:t.badge??0,strong:!1}))]);let se=tt("under");const U=m(()=>e(J).some(t=>t.id===e(se))?e(se):"under"),ie=m(()=>u().find(t=>t.key===e(U))??null);ra(()=>{Tt.load();try{Ae(se,localStorage.getItem(q)||"under",!0),Ae(Me,localStorage.getItem(Le),!0)}catch{}});function re(t){Ae(se,t,!0);try{localStorage.setItem(q,t)}catch{}}function ge(t){if(t.key!=="ArrowLeft"&&t.key!=="ArrowRight")return;t.preventDefault();const r=e(J).findIndex(w=>w.id===e(U)),d=e(J)[(r+(t.key==="ArrowRight"?1:e(J).length-1))%e(J).length];re(d.id),document.getElementById(`rail-tab-${d.id}`)?.focus()}let $=tt(!1);const ce=new la;function dt(t){ce.has(t)?ce.delete(t):ce.add(t)}const Pe=m(()=>e(U)==="needs"?[...e(z).needs,...e(z).withFirstmate]:e(U)==="under"?[...e(z).under,...e($)?e(z).next:[]]:e(U)==="landed"?e(z).landed:[]),Ge=m(()=>nr(e(Pe),e(fe),e(te))),Be=m(()=>Se(e(z).next).length),Ke=m(()=>e(te)===we||e(te)===he);function ut(t){if(!["ArrowDown","ArrowUp","Home","End"].includes(t.key))return;const d=[...t.currentTarget.querySelectorAll("[data-deck-line]")],w=d.indexOf(document.activeElement);if(w<0)return;t.preventDefault();const c=t.key==="Home"?0:t.key==="End"?d.length-1:Math.max(0,Math.min(d.length-1,w+(t.key==="ArrowDown"?1:-1)));d[c]?.focus()}const He=t=>!t||t==="unassigned"?null:a.projects.find(r=>r.id===t)?.name??t,ct=m(()=>ma(a.projects,Tt.names));function Qe(t){const r=t.kind==="task"?t.task.projectId:t.card.projectId,d=He(r);return d?{name:d,tag:e(ct).get(r)?.label??d}:null}function vt(t){Za.pending={kind:"task",id:t.id,title:t.shortTitle,project:He(t.projectId),url:null},a.onChat?.()}const ue=m(()=>e(D)?.state==="ok"?e(D).windows.find(t=>/week/i.test(t.label))??e(D).windows[0]??null:null),mt=m(()=>a.tasks.filter(t=>v(t.projectId))),ne=m(()=>Ea(e(mt))),Ve=m(()=>Ha(a.projects.filter(t=>v(t.id)&&t.id!=="unassigned"),a.tasks)),Ne={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var De=Vr(),Fe=l(De),ft=M(Fe,!0),je=s(Fe,2),Ze=s(l(je),2);{var Xe=t=>{var r=Ir(),d=s(l(r),2);pe(d,17,()=>e(D).windows.slice(0,2),w=>w.id,(w,c)=>{var E=jr(),H=l(E),O=s(H),ae=M(O);Re(),i(E),y(()=>{V(E,1,`whitespace-nowrap tabular-nums ${e(c).atRisk?"font-medium text-warning":e(c).id===e(ue)?.id?"text-gold":""}`),b(H,`${e(c).label??""} `),V(O,1,`font-semibold ${e(c).id===e(ue)?.id?"":"text-foreground"}`),b(ae,`${e(c).percentLeft??""}%`)}),f(w,E)}),i(r),y(w=>h(r,"title",`Claude headroom: ${w??""}${x()?.atRisk?`. ${x().atRisk.label} may run out before it resets.`:""}`),[()=>e(D).windows.slice(0,2).map(w=>`${w.label} ${w.percentLeft}% left`).join(", ")]),f(t,r)},xe=t=>{var r=Tr(),d=l(r);Na(d,{class:"size-3.5","aria-hidden":"true"}),Re(),i(r),f(t,r)};C(Ze,t=>{e(D)?.state==="ok"&&e(D).windows.length?t(Xe):e(D)?.state==="connect"&&t(xe,1)})}var pt=s(Ze,2);{var Ie=t=>{var r=zr(),d=l(r);Da(d,{class:"size-4"}),i(r),y(()=>V(r,1,`-mr-2 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground ${e(D)?.state==="ok"||e(D)?.state==="connect"?"":"ml-auto"}`)),le("click",r,function(...w){a.onClose?.apply(this,w)}),f(t,r)};C(pt,t=>{a.onClose&&t(Ie)})}i(je);var Ue=s(je,2),g=l(Ue),S=l(g);{let t=m(()=>e(ue)?.percentLeft??null);Ot(S,{get value(){return e(t)},tone:"gold"})}var P=s(S,2),Te=l(P),Yt=M(Te,!0),Pt=s(Te,2),Gt=M(Pt,!0);i(P),i(g);var Je=s(g,2),kt=l(Je);Ot(kt,{get value(){return e(ne).percent},tone:"teal"});var yt=s(kt,2),Bt=s(l(yt),2),Kt=M(Bt,!0);i(yt),i(Je),i(Ue);var Ct=s(Ue,2);{var Qt=t=>{var r=Rr(),d=l(r);pe(d,21,()=>[{id:we,label:"All",short:"All",mate:null},...e(fe)],w=>w.id,(w,c)=>{const E=m(()=>lt(e(c).id)),H=m(()=>F(e(c).id));var O=Ar(),ae=l(O);{var L=k=>{qt(k,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},j=k=>{wt(k,{class:"size-3 shrink-0","aria-hidden":"true"})};C(ae,k=>{e(c).id!==he&&e(c).id!==we?k(L):e(c).id===he&&k(j,1)})}var A=s(ae,2),W=M(A,!0),K=s(A,2),G=M(K),I=s(K,2),R=M(I,!0);i(O),y(k=>{h(O,"id",k),h(O,"aria-checked",e(te)===e(c).id),h(O,"tabindex",e(te)===e(c).id?0:-1),V(O,1,`flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full border px-3.5 py-1.5 whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-ring ${e(te)===e(c).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),h(O,"title",`${e(c).label??""}${e(c).mate?.host?` on ${e(c).mate.host}`:""}: ${e(E)??""} in play${e(H)?`, ${e(H)} waiting on you`:""}`),b(W,e(c).short),b(G,`: ${e(E)??""} in play${e(H)?`, ${e(H)} waiting on you`:""}`),V(I,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(H)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),b(R,e(H)||e(E))},[()=>Ye(e(c).id)]),le("click",O,()=>Ee(e(c).id)),f(w,O)}),i(d),i(r),le("keydown",d,it),f(t,r)};C(Ct,t=>{e(fe).length>1&&t(Qt)})}var $e=s(Ct,2);pe($e,21,()=>e(J),t=>t.id,(t,r)=>{var d=Or(),w=l(d,!0),c=s(w);{var E=H=>{var O=qr(),ae=M(O,!0);y(()=>{V(O,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(r).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),b(ae,e(r).count)}),f(H,O)};C(c,H=>{e(r).count&&H(E)})}i(d),y(()=>{h(d,"id",`rail-tab-${e(r).id??""}`),h(d,"aria-selected",e(U)===e(r).id),h(d,"tabindex",e(U)===e(r).id?0:-1),V(d,1,`-mb-px flex shrink-0 cursor-pointer items-center gap-1.5 border-b-[2.5px] px-0.5 py-2.5 text-base whitespace-nowrap transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-ring ${e(U)===e(r).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),b(w,e(r).label)}),le("click",d,()=>re(e(r).id)),f(t,d)}),i($e);var ht=s($e,2),Mt=l(ht);{var Vt=t=>{var r=Lr(),d=l(r);ya(d,{get entry(){return e(ie)},get now(){return a.now}}),i(r),f(t,r)},Zt=t=>{var r=Gr(),d=_e(r);{var w=L=>{var j=Er(),A=l(j);{let K=m(()=>e($)?"rotate-90":"");Fa(A,{get class(){return`size-3.5 transition-transform ${e(K)??""}`},"aria-hidden":"true"})}var W=s(A);i(j),y(()=>{h(j,"aria-expanded",e($)),b(W,`Up next · ${e(Be)??""}`)}),le("click",j,()=>Ae($,!e($))),f(L,j)};C(d,L=>{e(U)==="under"&&e(Be)&&L(w)})}var c=s(d,2);pe(c,21,()=>e(Ge),L=>L.crew.id,(L,j)=>{var A=Fr(),W=l(A);{var K=k=>{_(k,()=>e(j).crew,()=>e(j).lines.length)};C(W,k=>{e(fe).length>1&&k(K)})}var G=s(W,2);{var I=k=>{var N=Nr();pe(N,21,()=>e(j).lines,Q=>Q.key,(Q,B)=>{var ee=Hr(),ve=l(ee);{let be=m(()=>ce.has(e(B).key)),We=m(()=>Qe(e(B))),xt=m(()=>e(B).kind==="task"&&(e(B).task.status==="queued"||e(B).task.status==="landed"));br(ve,{get line(){return e(B)},get now(){return a.now},get open(){return e(be)},get project(){return e(We)},get dim(){return e(xt)},onToggle:()=>dt(e(B).key),onChat:vt})}i(ee),It(1,ee,()=>_a),It(2,ee,()=>wa,()=>({word:e(B).kind==="decision"?at.stampFor(e(B).card.id):null})),f(Q,ee)}),i(N),f(k,N)},R=k=>{var N=Dr(),Q=M(N,!0);y(()=>b(Q,Ne[e(U)])),f(k,N)};C(G,k=>{e(j).lines.length?k(I):k(R,-1)})}i(A),y(()=>{h(A,"aria-label",e(j).crew.label),h(A,"data-crew-group",e(j).crew.id)}),f(L,A)},L=>{var j=Ur(),A=l(j);{var W=G=>{Ft(G,{class:"size-4 text-success","aria-hidden":"true"})};C(A,G=>{e(U)==="needs"&&G(W)})}var K=s(A,1,!0);i(j),y(()=>b(K,Ne[e(U)])),f(L,j)}),i(c);var E=s(c,2);{var H=L=>{var j=Yr(),A=_e(j),W=l(A),K=l(W);Ua(K,{class:"size-3.5","aria-hidden":"true"}),Re(),i(W),Re(4),i(A);var G=s(A,2);pe(G,21,()=>e(de).slice(0,3),I=>I.id,(I,R)=>{var k=Wr(),N=l(k),Q=l(N),B=M(Q,!0),ee=s(Q,2),ve=M(ee,!0),be=s(ee,2),We=M(be,!0);i(N),i(k),y((xt,aa)=>{h(N,"href",`/decisions#${e(R).id??""}`),h(N,"title",e(R).question),b(B,e(R).taskTitle),b(ve,e(R).verdict),h(be,"title",xt),b(We,aa)},[()=>_t(e(R).decidedAt,a.now),()=>Wt(e(R).decidedAt,a.now)]),f(I,k)}),i(G),f(L,j)};C(E,L=>{e(U)==="needs"&&e(de).length&&e(Ke)&&L(H)})}var O=s(E,2);{var ae=L=>{var j=Pr(),A=l(j),W=l(A),K=M(W,!0),G=s(W);i(A);var I=s(A,2),R=l(I);ka(R,{get seconds(){return e(X)},label:"Today"}),i(I);var k=s(I,2),N=M(k);i(j),y((Q,B,ee,ve)=>{b(K,Q),b(G,` of crew time today on ${e(me)??""}
1
+ import"./DsnmJJEf.js";import{o as ra}from"./RYq3318d.js";import{q as na,l as Lt,p as Et,f as _e,h as l,o as M,s,g as e,t as y,d as b,a as f,r as i,y as le,b as Ht,i as m,c as p,n as Re,br as oa,v as Ae,m as tt,aa as jt}from"./BuRWgnCz.js";import{i as C}from"./BDpRITyb.js";import{e as pe,s as h,a as V,f as sa,d as ia}from"./Cwb6d3g_.js";import{I as nt,t as It}from"./xH4qmLqM.js";import{s as ot,r as st,p as qe}from"./BAOiF0in.js";import{S as la}from"./Dpd1rs9R.js";import{p as da}from"./CDSHscp6.js";import{a as _t}from"./BCUUi0V0.js";import{h as ua,r as ca,A as wt,e as va,a as Tt,p as ma}from"./Dse7bjta.js";import{t as fa,s as pa,a as ha}from"./CR7y1ULG.js";import{r as ga,a as Nt,W as xa,S as ba}from"./BB2roMZd.js";import{f as Dt}from"./C_4BzEag.js";import{i as at}from"./CspN1OJw.js";import{r as _a,s as wa}from"./DJNADPa5.js";import{T as ka}from"./DjzsLGyn.js";import{S as ya}from"./CKE9neHp.js";import{M as zt}from"./DSQSpWxL.js";import{c as Ca}from"./DLuhTA05.js";import{d as Ma,O as Sa}from"./B1zE3zKP.js";import{C as ja,E as Ia,a as Ta}from"./CSU604UC.js";import{O as za,G as Aa}from"./DFrn6Xyh.js";import{M as bt}from"./DxdQiNse.js";import{A as Ra}from"./r_9m29GC.js";import{C as Ft}from"./cmRB1an4.js";import{C as qa}from"./B0XeFYOk.js";import{U as Oa}from"./Clm3nvxi.js";import{H as La}from"./CtgbxGhR.js";import{G as At}from"./C8be1l5w.js";import{c as Ea,g as Ha,G as Na}from"./Dd58JmFO.js";import{A as Rt}from"./DeVe8oaI.js";import{X as Da}from"./rS7QE60d.js";import{S as qt}from"./DGK4csRg.js";import{C as Fa}from"./CqfUJirh.js";import{S as Ua}from"./D1uwWhcg.js";var Wa=new Set(["$$slots","$$events","$$legacy"]);function Ya(n,a){let _=st(a,Wa);const x={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],aliases:["x-circle"]};nt(n,ot(()=>_,{get icon(){return x}}))}var Pa=new Set(["$$slots","$$events","$$legacy"]);function Ga(n,a){let _=st(a,Pa);const x={name:"loader",size:24,node:[["path",{d:"M12 2v4"}],["path",{d:"m16.2 7.8 2.9-2.9"}],["path",{d:"M18 12h4"}],["path",{d:"m16.2 16.2 2.9 2.9"}],["path",{d:"M12 18v4"}],["path",{d:"m4.9 19.1 2.9-2.9"}],["path",{d:"M2 12h4"}],["path",{d:"m4.9 4.9 2.9 2.9"}]]};nt(n,ot(()=>_,{get icon(){return x}}))}var Ba=new Set(["$$slots","$$events","$$legacy"]);function Ka(n,a){let _=st(a,Ba);const x={name:"message-square-text",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}],["path",{d:"M7 11h10"}],["path",{d:"M7 15h6"}],["path",{d:"M7 7h8"}]]};nt(n,ot(()=>_,{get icon(){return x}}))}var Qa=new Set(["$$slots","$$events","$$legacy"]);function Va(n,a){let _=st(a,Qa);const x={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3"}],["path",{d:"m2 22 3-3"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z"}],["path",{d:"M7.5 13.5 10 11"}],["path",{d:"M10.5 16.5 13 14"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z"}]]};nt(n,ot(()=>_,{get icon(){return x}}))}const Za=na({pending:null,draft:null,decision:null}),he=":firstmate",we="all",Ut=n=>n.secondMate?.id??he;function Xa(n,a){if(n.secondMate)return n.secondMate.id;const _=a.find(x=>x.id===n.taskId);return _?Ut(_):he}function Ja(n){if(n.length<2)return"";const a=n[0].match(/[-_.][^-_.]+$/)?.[0];return a&&n.every(_=>_.endsWith(a)&&_.length>a.length)?a:""}function $a(n,a=[]){const _=[...new Set(a.map(u=>u.crew))].filter(u=>u!==he&&!n.some(Z=>Z.id===u)),x=Ja([...n.map(u=>u.id),..._]),T=u=>x?u.slice(0,-x.length):u;return[{id:he,label:"Firstmate",short:"Firstmate",mate:null},...n.map(u=>({id:u.id,label:u.id,short:T(u.id),mate:u})),..._.map(u=>({id:u,label:u,short:T(u),mate:null}))]}const er=(n,a)=>n&&a.some(_=>_.id===n)?n:we,rt=(n,a)=>n===we||n===a;function tr(n){const a=n.passage.steps[n.passage.current];return a?.failed?{label:`${a.label} failed`,icon:"failed",tone:"danger"}:n.status==="failed"?{label:"Failed",icon:"failed",tone:"danger"}:n.status==="blocked"?{label:"Stuck",icon:"stuck",tone:"danger"}:n.status==="lost"||n.status==="unknown"?{label:"Not responding",icon:"lost",tone:"warning"}:n.attention?.owner==="captain"?n.attention.kind==="review"?n.attention.approved?{label:"Your merge",icon:"merge",tone:"sea"}:{label:"Your review",icon:"review",tone:"sea"}:{label:"Your call",icon:"call",tone:"sea"}:n.attention?.owner==="reviewers"?{label:"With reviewers",icon:"reviewers",tone:"muted"}:n.addressingReview?{label:ga(n)??"Changes requested",icon:"changes",tone:"muted"}:n.status==="with-firstmate"?{label:"Firstmate deciding",icon:"firstmate",tone:"warning"}:n.status==="queued"?{label:"Queued",icon:"queued",tone:"quiet"}:n.status==="landed"?{label:"Landed",icon:"landed",tone:"success"}:Nt(n)?{label:`Checks: ${n.pipeline.label}`,icon:"moving",tone:n.busy?"busy":"muted"}:{label:n.busy?"Working":"Idle",icon:"moving",tone:n.busy?"busy":"muted"}}const ar={label:"Your call",icon:"call",tone:"sea"};function Wt(n,a){const _=n?Date.parse(n):NaN;if(Number.isNaN(_))return"";const x=Math.max(0,(a-_)/1e3);if(x<60)return"now";const T=Math.round(x/60);if(T<60)return`${T}m`;const u=Math.round(T/60);return u<24?`${u}h`:`${Math.round(u/24)}d`}const ze=(n,a)=>({kind:"task",key:`task:${n.id}`,task:n,text:a,crew:Ut(n),at:n.mergedAt??n.activity?.at??n.since});function rr(n,a,_,x=null){const T=o=>!x||o===x,u=ua(n,a),Z=(_?.shown??[]).filter(o=>Dt(o)&&T(o.projectId)),v=o=>o.secondMate?.taskId?`${o.secondMate.taskId}@${o.secondMate.id}`:o.taskId,de=new Set((_?.all??[]).filter(o=>o.kind==="hold").map(v)),X=new Set(Z.filter(o=>o.kind==="merge").map(v)),Y=new Set(u.stepFailed.map(o=>o.id)),me=u.stepFailed.filter(o=>!u.needsYou.includes(o)),oe=u.needsYou.filter(o=>!(o.attention?.kind==="decision"&&de.has(o.id))&&!(o.attention?.kind==="review"&&X.has(o.id))),D=o=>o.attention?.kind==="decision"&&o.attention.text||o.shortTitle;return{h:u,needs:[...Z.map(o=>({kind:"decision",key:`decision:${o.id}`,card:o,text:o.question,crew:Xa(o,n),at:o.askedAt})),...me.map(o=>ze(o,o.shortTitle)),...oe.map(o=>ze(o,D(o)))],withFirstmate:u.waitingOnFirstmate.filter(o=>!Y.has(o.id)).map(o=>ze(o,D(o))),under:ca(u).filter(o=>!Y.has(o.id)).map(o=>ze(o,o.shortTitle)),next:u.queued.map(o=>ze(o,o.shortTitle)),landed:u.landedRecent.filter(o=>!Y.has(o.id)).map(o=>ze(o,o.shortTitle))}}function nr(n,a,_){return a.filter(x=>rt(_,x.id)).map(x=>({crew:x,lines:n.filter(T=>T.crew===x.id)})).filter(x=>x.lines.length||_!==we)}var or=p('<span class="mx-1" aria-hidden="true">·</span>'),sr=p("<!><span> </span>",1),ir=p('<button type="button" title="Chat about this"><!></button>'),lr=p('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),dr=p('<span class="text-muted-foreground"> </span>'),ur=p('<span class="ml-auto text-muted-foreground"> </span>'),cr=p('<p class="leading-snug text-muted-foreground"> </p>'),vr=p('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),mr=p('<div class="pt-1"><!></div>'),fr=p('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),pr=p('<div class="-mt-2"><!></div>'),hr=p('<div class="flex flex-col gap-2 text-xs"><div class="flex flex-wrap items-center gap-1.5"><span><!> </span> <!> <!> <!></div> <!> <!> <!> <!> <!> <!> <div class="-ml-1.5 flex flex-wrap gap-0.5"><a><!>Open</a> <button type="button"><!>Chat about this</button></div></div>'),gr=p('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),xr=p('<div><button type="button" data-deck-line="" class="flex h-full min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md py-2 pr-1 pl-1 text-left focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1"><span> </span> <span class="block truncate text-xs text-muted-foreground"></span></span> <span class="state-tag shrink-0 pl-2"> </span></button> <!></div> <!>',1);function br(n,a){Et(a,!0);let _=qe(a,"dim",3,!1);const x={failed:Ya,stuck:Sa,lost:Va,merge:Aa,review:At,call:La,reviewers:Oa,changes:Ka,firstmate:wt,queued:qa,landed:Ft,moving:Ga},T={danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",sea:"bg-sea/10 text-sea",muted:"bg-muted text-muted-foreground",busy:"bg-muted text-foreground",success:"bg-success/10 text-success",quiet:"bg-muted text-muted-foreground"},u=m(()=>a.line.kind==="task"?tr(a.line.task):ar),Z=m(()=>x[e(u).icon]),v=m(()=>a.line.kind==="task"?a.line.task:null),de=m(()=>`deck-${a.line.key.replace(/[^\w-]/g,"-")}`),X=m(()=>e(v)&&a.line.text!==e(v).shortTitle?e(v).shortTitle:e(v)?.attention?.owner==="captain"&&e(v).attention.text&&e(v).attention.text!==a.line.text?e(v).attention.text:null),Y=m(()=>e(v)?e(v).activity?.text||e(v).summary||e(v).statusLabel:null),me=m(()=>[a.project?{key:"project",text:a.project.tag,title:a.project.name}:null,e(X)??(e(Y)&&e(Y)!==a.line.text?e(Y):null)?{key:"doing",text:e(X)??e(Y),title:void 0}:null,a.line.at?{key:"age",text:Wt(a.line.at,a.now),title:_t(a.line.at,a.now)}:null].filter(F=>F!==null)),oe=m(()=>e(v)?e(v).attention?.url??e(v).pr?.url??null:null),D=m(()=>e(v)?`/tasks/${encodeURIComponent(e(v).id)}`:null),o="flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring";var Oe=xr(),ke=_e(Oe),z=l(ke),ye=l(z),Ce=l(ye),fe=M(Ce,!0),Le=s(Ce,2);pe(Le,23,()=>e(me),F=>F.key,(F,q,J)=>{var se=sr(),U=_e(se);{var ie=$=>{var ce=or();f($,ce)};C(U,$=>{e(J)&&$(ie)})}var re=s(U),ge=M(re,!0);y(()=>{h(re,"title",e(q).title),h(re,"data-project-tag",e(q).key==="project"||void 0),b(ge,e(q).text)}),f(F,se)}),i(Le),i(ye);var Me=s(ye,2),te=M(Me,!0);i(z);var Ee=s(z,2);{var it=F=>{var q=ir(),J=l(q);bt(J,{class:"size-3.5"}),i(q),y(()=>{V(q,1,`flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${a.open?"opacity-100":""}`),h(q,"aria-label",`Chat about ${e(v).shortTitle??""}`)}),le("click",q,()=>a.onChat(e(v))),f(F,q)},Ye=F=>{var q=lr(),J=l(q);bt(J,{class:"size-3.5"}),i(q),y(se=>{h(q,"href",se),V(q,1,`flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${a.open?"opacity-100":""}`)},[()=>Ma(a.line.card.id)]),f(F,q)};C(Ee,F=>{e(v)?F(it):a.line.kind==="decision"&&F(Ye,1)})}i(ke);var Se=s(ke,2);{var lt=F=>{var q=gr(),J=l(q);{var se=ie=>{{let re=m(()=>a.project?.name??null);za(ie,{get card(){return a.line.card},get project(){return e(re)},get now(){return a.now},onLater:()=>at.later(a.line.card.id)})}},U=ie=>{var re=hr(),ge=l(re),$=l(ge),ce=l($);Ca(ce,()=>e(Z),(g,S)=>{S(g,{class:"size-3","aria-hidden":"true"})});var dt=s(ce,1,!0);i($);var Pe=s($,2);xa(Pe,{get task(){return e(v)}});var Ge=s(Pe,2);{var Be=g=>{var S=dr(),P=M(S,!0);y(()=>b(P,a.project.name)),f(g,S)};C(Ge,g=>{a.project&&g(Be)})}var Ke=s(Ge,2);{var ut=g=>{var S=ur(),P=M(S,!0);y(Te=>b(P,Te),[()=>_t(a.line.at,a.now)]),f(g,S)};C(Ke,g=>{a.line.at&&g(ut)})}i(ge);var He=s(ge,2);{var ct=g=>{var S=cr(),P=M(S,!0);y(()=>b(P,e(X))),f(g,S)};C(He,g=>{e(X)&&g(ct)})}var Qe=s(He,2);{var vt=g=>{ja(g,{get pipeline(){return e(v).pipeline},get busy(){return e(v).busy},size:"rail"})},ue=m(()=>Nt(e(v))),mt=g=>{var S=vr(),P=M(S,!0);y(()=>b(P,e(Y))),f(g,S)};C(Qe,g=>{e(ue)?g(vt):e(Y)&&e(Y)!==a.line.text&&g(mt,1)})}var ne=s(Qe,2);{var Ve=g=>{var S=mr(),P=l(S);ba(P,{get task(){return e(v)}}),i(S),f(g,S)};C(ne,g=>{e(v).passage.steps.length>1&&g(Ve)})}var Ne=s(ne,2);{var De=g=>{Ia(g,{get eta(){return e(v).eta}})};C(Ne,g=>{e(v).eta&&g(De)})}var Fe=s(Ne,2);{var ft=g=>{var S=fr(),P=l(S);At(P,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var Te=s(P,1,!0);i(S),y(()=>{h(S,"href",e(oe)),b(Te,e(oe))}),f(g,S)};C(Fe,g=>{e(oe)&&g(ft)})}var je=s(Fe,2);{var Ze=g=>{var S=pr(),P=l(S);Ta(P,{get task(){return e(v)}}),i(S),f(g,S)};C(je,g=>{e(v).preview&&g(Ze)})}var Xe=s(je,2),xe=l(Xe);V(xe,1,sa(o));var pt=l(xe);Ra(pt,{class:"size-3.5","aria-hidden":"true"}),Re(),i(xe);var Ie=s(xe,2);V(Ie,1,"flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring cursor-pointer");var Ue=l(Ie);bt(Ue,{class:"size-3.5","aria-hidden":"true"}),Re(),i(Ie),i(Xe),i(re),y(()=>{V($,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${T[e(u).tone]??""}`),b(dt,e(u).label),h(xe,"href",e(D))}),le("click",Ie,()=>a.onChat(e(v))),f(ie,re)};C(J,ie=>{a.line.kind==="decision"?ie(se):e(v)&&ie(U,1)})}i(q),y(()=>h(q,"id",e(de))),f(F,q)};C(Se,F=>{a.open&&F(lt)})}y(()=>{V(ke,1,`group relative flex items-center border-b border-hair transition-colors ${a.open?"bg-muted/70":"hover:bg-muted/50"}`),h(z,"aria-expanded",a.open),h(z,"aria-controls",e(de)),h(z,"title",e(X)?`${a.line.text} (${e(X)})`:a.line.text),V(Ce,1,`block truncate text-[0.95rem] font-medium ${_()?"text-muted-foreground":"text-foreground"}`),b(fe,a.line.text),h(Me,"data-tone",e(u).tone),b(te,e(u).label)}),le("click",z,function(...F){a.onToggle?.apply(this,F)}),f(n,Oe),Ht()}Lt(["click"]);var _r=oa('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),wr=p('<span class="gauge" aria-hidden="true"><svg viewBox="0 0 52 52"><circle cx="26" cy="26" class="gauge-track"></circle><!></svg> <span class="gauge-label"> </span></span>');function Ot(n,a){let _=qe(a,"tone",3,"gold");const x=22,T=2*Math.PI*x,u=m(()=>a.value===null?0:Math.max(0,Math.min(100,Math.round(a.value))));var Z=wr(),v=l(Z),de=l(v);h(de,"r",x);var X=s(de);{var Y=D=>{var o=_r();h(o,"r",x),y(()=>h(o,"stroke-dasharray",`${e(u)/100*T} 138.23007675795088`)),f(D,o)};C(X,D=>{a.value!==null&&e(u)>0&&D(Y)})}i(v);var me=s(v,2),oe=M(me,!0);i(Z),y(()=>{h(Z,"data-tone",_()),b(oe,a.value===null?"–":`${e(u)}%`)}),f(n,Z)}var kr=p('<span class="min-w-0 truncate text-muted-foreground"> </span>'),yr=p('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),Cr=p('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),Mr=p('<p class="mb-1 flex items-center gap-2 px-1.5 text-xs text-muted-foreground"><!> <span class="min-w-0 truncate"> </span> <a class="ml-auto shrink-0 hover:text-foreground hover:underline">More</a></p>'),Sr=p('<h3 class="mt-3 mb-0.5 first:mt-0"><button type="button"><!> <span class="shrink-0 text-muted-foreground tabular-nums"> </span> <span class="min-w-2 flex-1 border-t border-hair" aria-hidden="true"></span> <!></button></h3> <!>',1),jr=p("<span> <b> </b> left</span>"),Ir=p('<a href="/headroom" class="ml-auto flex min-w-0 flex-col items-end rounded-md px-1.5 py-1 text-xs leading-tight text-muted-foreground hover:bg-muted hover:text-foreground max-md:min-h-11 max-md:justify-center" data-headroom=""><span class="sr-only">Claude headroom:</span> <!></a>'),Tr=p('<a href="/headroom" class="ml-auto flex items-center gap-1.5 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground" title="Connect your Claude usage to see what is left"><!>Connect usage</a>'),zr=p('<button aria-label="Close"><!></button>'),Ar=p('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),Rr=p('<div class="shrink-0 px-4 pt-4"><div class="flex flex-wrap gap-2 text-[0.9rem]" role="radiogroup" aria-label="Whose work" tabindex="-1"></div></div>'),qr=p("<span> </span>"),Or=p('<button role="tab" aria-controls="rail-panel"> <!></button>'),Lr=p('<div class="px-1.5" data-slot="home.card"><!></div>'),Er=p('<button type="button" class="float-right -mt-1 ml-2 flex cursor-pointer items-center gap-0.5 rounded-md px-1.5 py-1 text-xs whitespace-nowrap text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring max-md:float-none max-md:mt-0 max-md:ml-auto max-md:min-h-11 max-md:text-sm"><!> </button>'),Hr=p("<li><!></li>"),Nr=p("<ul></ul>"),Dr=p('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Fr=p("<section><!> <!></section>"),Ur=p('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Wr=p('<li><a class="flex h-8 items-center gap-2 rounded-md px-1.5 hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1 truncate text-[0.875rem] text-muted-foreground"> </span> <span class="shrink-0 text-xs font-medium"> </span> <span class="w-7 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span></a></li>'),Yr=p('<div class="mt-4 mb-0.5 flex items-center gap-2 px-1.5 text-xs"><h3 class="flex items-center gap-1.5 font-medium text-muted-foreground"><!>Decided for you</h3> <span class="flex-1 border-t border-hair" aria-hidden="true"></span> <a href="/decisions" class="text-muted-foreground hover:text-foreground">See all</a></div> <ul></ul>',1),Pr=p('<a href="/time" class="mt-4 block rounded-md px-1.5 py-1 hover:bg-muted/50"><span class="block text-xs text-muted-foreground"><span class="font-medium text-foreground"> </span> </span> <span class="mt-1.5 block"><!></span> <span class="mt-1.5 block text-xs text-muted-foreground"> </span></a>'),Gr=p("<!> <div></div> <!> <!>",1),Br=p('<a href="/second-mates" class="flex items-center justify-between gap-3 border-t px-1 py-3.5 text-muted-foreground hover:text-foreground">Every second mate, with its queue, pull requests and a look at it <!></a>'),Kr=p('<li class="mt-3 max-md:mt-1"><a class="group block text-sm max-md:py-1.5"><span class="flex items-baseline justify-between gap-2" aria-hidden="true"><span class="truncate font-medium group-hover:underline"> </span> <span class="shrink-0 text-xs text-muted-foreground"> </span></span> <span class="glance-bar" aria-hidden="true"><span></span></span></a></li>'),Qr=p('<section class="mt-4 rounded-2xl border bg-card/70 px-4 pt-4 pb-4.5" aria-labelledby="rail-glance" data-glance=""><h3 id="rail-glance" class="font-semibold">Harbour at a glance</h3> <p class="text-sm text-muted-foreground">The fleet, without leaving the bridge.</p> <ul></ul></section>'),Vr=p('<aside class="flex h-full min-h-0 flex-col" aria-label="Tasks and decisions" aria-describedby="rail-headline"><p id="rail-headline" class="sr-only"> </p> <div class="flex h-16 shrink-0 items-center gap-2 border-b px-5 text-sm"><span class="font-title text-[2.15rem] leading-none">On <em class="text-gold">deck</em></span> <!> <!></div> <div class="grid shrink-0 grid-cols-2 gap-2.5 px-4 pt-4" data-gauges=""><a href="/headroom" class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold"> </span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a> <a class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold">Checks</span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a></div> <!> <div class="mt-3 no-scrollbar flex shrink-0 gap-5 overflow-x-auto border-b px-4" role="tablist" aria-label="On deck" tabindex="-1"></div> <div id="rail-panel" role="tabpanel" class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-3"><!> <nav class="mt-5 flex flex-col" aria-label="More on deck"><a class="flex items-center justify-between gap-3 border-t px-1 py-3.5 font-medium hover:text-gold"> <!></a> <!></nav> <!></div></aside>');function Ln(n,a){Et(a,!0);const _=(t,r=jt,d=jt)=>{var w=Sr(),c=_e(w),E=l(c),H=l(E);{var O=I=>{var R=yr(),k=_e(R);qt(k,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var N=s(k,2),Q=M(N,!0),B=s(N,2);{var ee=ve=>{var be=kr(),We=M(be,!0);y(()=>b(We,r().mate.where==="remote"?`on ${r().mate.host??"another host"}`:"on this computer")),f(ve,be)};C(B,ve=>{r().mate&&ve(ee)})}y(()=>b(Q,r().label)),f(I,R)},ae=I=>{var R=Cr(),k=_e(R);wt(k,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var N=s(k,2),Q=M(N,!0);y(()=>b(Q,r().label)),f(I,R)};C(H,I=>{r().id!==he?I(O):I(ae,-1)})}var L=s(H,2),j=M(L,!0),A=s(L,4);{var W=I=>{zt(I,{get health(){return r().mate.health}})};C(A,I=>{r().mate&&(r().mate.health.online!=="online"||r().mate.health.cached)&&I(W)})}i(E),i(c);var K=s(c,2);{var G=I=>{var R=Mr(),k=l(R);zt(k,{get health(){return r().mate.health}});var N=s(k,2),Q=M(N),B=s(N,2);i(R),y(ee=>{h(R,"data-second-mate",r().mate.id),h(N,"title",r().mate.lastReport?.text),b(Q,`${r().mate.stateLabel??""}${r().mate.queued.length?` · ${r().mate.queued.length} queued`:""}${r().mate.lastReport?` · “${r().mate.lastReport.text}”`:""}`),h(B,"href",`/second-mates#mate-${ee??""}`)},[()=>encodeURIComponent(r().mate.id)]),f(I,R)};C(K,I=>{r().mate&&e(te)===r().id&&I(G)})}y(()=>{h(c,"data-crew",r().id),V(E,1,`flex h-6 w-full items-center gap-1.5 rounded-md px-1.5 text-left text-xs focus-visible:outline-2 focus-visible:outline-ring ${e(te)===r().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),h(E,"aria-label",`${r().label??""}${r().mate?`, ${r().mate.where==="remote"?`on ${r().mate.host??"another host"}`:"on this computer"}`:""}: ${d()??""}${e(te)===r().id?"":". Show only this crew"}`),b(j,d())}),le("click",E,()=>Ee(r().id)),f(t,w)};let x=qe(a,"insights",3,null),T=qe(a,"scope",3,null),u=qe(a,"cards",19,()=>[]),Z=qe(a,"secondMates",19,()=>[]);const v=t=>!T()||t===T(),de=m(()=>(x()?.decisions??[]).filter(t=>v(t.projectId))),X=m(()=>pa((x()?.today??[]).filter(t=>v(t.projectId)))),Y=m(()=>fa(e(X))),me=m(()=>(x()?.today??[]).filter(t=>v(t.projectId)).length),oe=t=>e(Y)?Math.round(e(X)[t]/e(Y)*100):0,D=m(()=>x()?.allowance??null),o=m(()=>da.data.inbox),Oe=m(()=>at.view(e(o))),ke=m(()=>e(Oe)?.available?{shown:at.shown(a.now,e(o)).shown.filter(Dt),all:e(Oe).cards}:null),z=m(()=>rr(a.tasks,a.now,e(ke),T())),ye=m(()=>[...e(z).needs,...e(z).withFirstmate,...e(z).under,...e(z).next,...e(z).landed]),Ce=m(()=>T()?Z().filter(t=>e(ye).some(r=>r.crew===t.id)):Z()),fe=m(()=>$a(e(Ce),e(ye))),Le="wheelhouse-rail-crew";let Me=tt(null);const te=m(()=>er(e(Me),e(fe)));function Ee(t){Ae(Me,t,!0);try{localStorage.setItem(Le,t)}catch{}}function it(t){if(!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const r=[we,...e(fe).map(c=>c.id)],d=r.indexOf(e(te)),w=t.key==="Home"?0:t.key==="End"?r.length-1:(d+(t.key==="ArrowRight"?1:r.length-1))%r.length;Ee(r[w]),document.getElementById(Ye(r[w]))?.focus()}const Ye=t=>`rail-crew-${t.replace(/[^\w-]/g,"-")}`,Se=t=>t.filter(r=>rt(e(te),r.crew)),lt=t=>[...e(z).needs,...e(z).withFirstmate,...e(z).under].filter(r=>rt(t,r.crew)).length,F=t=>e(z).needs.filter(r=>rt(t,r.crew)).length,q="wheelhouse-rail-tab",J=m(()=>[{id:"under",label:"Under way",count:Se(e(z).under).length,strong:!1},{id:"needs",label:"Needs you",count:Se(e(z).needs).length,strong:!0},{id:"landed",label:"Landed",count:Se(e(z).landed).length,strong:!1},...u().map(t=>({id:t.key,label:t.title,count:t.badge??0,strong:!1}))]);let se=tt("under");const U=m(()=>e(J).some(t=>t.id===e(se))?e(se):"under"),ie=m(()=>u().find(t=>t.key===e(U))??null);ra(()=>{Tt.load();try{Ae(se,localStorage.getItem(q)||"under",!0),Ae(Me,localStorage.getItem(Le),!0)}catch{}});function re(t){Ae(se,t,!0);try{localStorage.setItem(q,t)}catch{}}function ge(t){if(t.key!=="ArrowLeft"&&t.key!=="ArrowRight")return;t.preventDefault();const r=e(J).findIndex(w=>w.id===e(U)),d=e(J)[(r+(t.key==="ArrowRight"?1:e(J).length-1))%e(J).length];re(d.id),document.getElementById(`rail-tab-${d.id}`)?.focus()}let $=tt(!1);const ce=new la;function dt(t){ce.has(t)?ce.delete(t):ce.add(t)}const Pe=m(()=>e(U)==="needs"?[...e(z).needs,...e(z).withFirstmate]:e(U)==="under"?[...e(z).under,...e($)?e(z).next:[]]:e(U)==="landed"?e(z).landed:[]),Ge=m(()=>nr(e(Pe),e(fe),e(te))),Be=m(()=>Se(e(z).next).length),Ke=m(()=>e(te)===we||e(te)===he);function ut(t){if(!["ArrowDown","ArrowUp","Home","End"].includes(t.key))return;const d=[...t.currentTarget.querySelectorAll("[data-deck-line]")],w=d.indexOf(document.activeElement);if(w<0)return;t.preventDefault();const c=t.key==="Home"?0:t.key==="End"?d.length-1:Math.max(0,Math.min(d.length-1,w+(t.key==="ArrowDown"?1:-1)));d[c]?.focus()}const He=t=>!t||t==="unassigned"?null:a.projects.find(r=>r.id===t)?.name??t,ct=m(()=>ma(a.projects,Tt.names));function Qe(t){const r=t.kind==="task"?t.task.projectId:t.card.projectId,d=He(r);return d?{name:d,tag:e(ct).get(r)?.label??d}:null}function vt(t){Za.pending={kind:"task",id:t.id,title:t.shortTitle,project:He(t.projectId),url:null},a.onChat?.()}const ue=m(()=>e(D)?.state==="ok"?e(D).windows.find(t=>/week/i.test(t.label))??e(D).windows[0]??null:null),mt=m(()=>a.tasks.filter(t=>v(t.projectId))),ne=m(()=>Ea(e(mt))),Ve=m(()=>Ha(a.projects.filter(t=>v(t.id)&&t.id!=="unassigned"),a.tasks)),Ne={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var De=Vr(),Fe=l(De),ft=M(Fe,!0),je=s(Fe,2),Ze=s(l(je),2);{var Xe=t=>{var r=Ir(),d=s(l(r),2);pe(d,17,()=>e(D).windows.slice(0,2),w=>w.id,(w,c)=>{var E=jr(),H=l(E),O=s(H),ae=M(O);Re(),i(E),y(()=>{V(E,1,`whitespace-nowrap tabular-nums ${e(c).atRisk?"font-medium text-warning":e(c).id===e(ue)?.id?"text-gold":""}`),b(H,`${e(c).label??""} `),V(O,1,`font-semibold ${e(c).id===e(ue)?.id?"":"text-foreground"}`),b(ae,`${e(c).percentLeft??""}%`)}),f(w,E)}),i(r),y(w=>h(r,"title",`Claude headroom: ${w??""}${x()?.atRisk?`. ${x().atRisk.label} may run out before it resets.`:""}`),[()=>e(D).windows.slice(0,2).map(w=>`${w.label} ${w.percentLeft}% left`).join(", ")]),f(t,r)},xe=t=>{var r=Tr(),d=l(r);Na(d,{class:"size-3.5","aria-hidden":"true"}),Re(),i(r),f(t,r)};C(Ze,t=>{e(D)?.state==="ok"&&e(D).windows.length?t(Xe):e(D)?.state==="connect"&&t(xe,1)})}var pt=s(Ze,2);{var Ie=t=>{var r=zr(),d=l(r);Da(d,{class:"size-4"}),i(r),y(()=>V(r,1,`-mr-2 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground ${e(D)?.state==="ok"||e(D)?.state==="connect"?"":"ml-auto"}`)),le("click",r,function(...w){a.onClose?.apply(this,w)}),f(t,r)};C(pt,t=>{a.onClose&&t(Ie)})}i(je);var Ue=s(je,2),g=l(Ue),S=l(g);{let t=m(()=>e(ue)?.percentLeft??null);Ot(S,{get value(){return e(t)},tone:"gold"})}var P=s(S,2),Te=l(P),Yt=M(Te,!0),Pt=s(Te,2),Gt=M(Pt,!0);i(P),i(g);var Je=s(g,2),kt=l(Je);Ot(kt,{get value(){return e(ne).percent},tone:"teal"});var yt=s(kt,2),Bt=s(l(yt),2),Kt=M(Bt,!0);i(yt),i(Je),i(Ue);var Ct=s(Ue,2);{var Qt=t=>{var r=Rr(),d=l(r);pe(d,21,()=>[{id:we,label:"All",short:"All",mate:null},...e(fe)],w=>w.id,(w,c)=>{const E=m(()=>lt(e(c).id)),H=m(()=>F(e(c).id));var O=Ar(),ae=l(O);{var L=k=>{qt(k,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},j=k=>{wt(k,{class:"size-3 shrink-0","aria-hidden":"true"})};C(ae,k=>{e(c).id!==he&&e(c).id!==we?k(L):e(c).id===he&&k(j,1)})}var A=s(ae,2),W=M(A,!0),K=s(A,2),G=M(K),I=s(K,2),R=M(I,!0);i(O),y(k=>{h(O,"id",k),h(O,"aria-checked",e(te)===e(c).id),h(O,"tabindex",e(te)===e(c).id?0:-1),V(O,1,`flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full border px-3.5 py-1.5 whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-ring ${e(te)===e(c).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),h(O,"title",`${e(c).label??""}${e(c).mate?.host?` on ${e(c).mate.host}`:""}: ${e(E)??""} in play${e(H)?`, ${e(H)} waiting on you`:""}`),b(W,e(c).short),b(G,`: ${e(E)??""} in play${e(H)?`, ${e(H)} waiting on you`:""}`),V(I,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(H)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),b(R,e(H)||e(E))},[()=>Ye(e(c).id)]),le("click",O,()=>Ee(e(c).id)),f(w,O)}),i(d),i(r),le("keydown",d,it),f(t,r)};C(Ct,t=>{e(fe).length>1&&t(Qt)})}var $e=s(Ct,2);pe($e,21,()=>e(J),t=>t.id,(t,r)=>{var d=Or(),w=l(d,!0),c=s(w);{var E=H=>{var O=qr(),ae=M(O,!0);y(()=>{V(O,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(r).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),b(ae,e(r).count)}),f(H,O)};C(c,H=>{e(r).count&&H(E)})}i(d),y(()=>{h(d,"id",`rail-tab-${e(r).id??""}`),h(d,"aria-selected",e(U)===e(r).id),h(d,"tabindex",e(U)===e(r).id?0:-1),V(d,1,`-mb-px flex shrink-0 cursor-pointer items-center gap-1.5 border-b-[2.5px] px-0.5 py-2.5 text-base whitespace-nowrap transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-ring ${e(U)===e(r).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),b(w,e(r).label)}),le("click",d,()=>re(e(r).id)),f(t,d)}),i($e);var ht=s($e,2),Mt=l(ht);{var Vt=t=>{var r=Lr(),d=l(r);ya(d,{get entry(){return e(ie)},get now(){return a.now}}),i(r),f(t,r)},Zt=t=>{var r=Gr(),d=_e(r);{var w=L=>{var j=Er(),A=l(j);{let K=m(()=>e($)?"rotate-90":"");Fa(A,{get class(){return`size-3.5 transition-transform ${e(K)??""}`},"aria-hidden":"true"})}var W=s(A);i(j),y(()=>{h(j,"aria-expanded",e($)),b(W,`Up next · ${e(Be)??""}`)}),le("click",j,()=>Ae($,!e($))),f(L,j)};C(d,L=>{e(U)==="under"&&e(Be)&&L(w)})}var c=s(d,2);pe(c,21,()=>e(Ge),L=>L.crew.id,(L,j)=>{var A=Fr(),W=l(A);{var K=k=>{_(k,()=>e(j).crew,()=>e(j).lines.length)};C(W,k=>{e(fe).length>1&&k(K)})}var G=s(W,2);{var I=k=>{var N=Nr();pe(N,21,()=>e(j).lines,Q=>Q.key,(Q,B)=>{var ee=Hr(),ve=l(ee);{let be=m(()=>ce.has(e(B).key)),We=m(()=>Qe(e(B))),xt=m(()=>e(B).kind==="task"&&(e(B).task.status==="queued"||e(B).task.status==="landed"));br(ve,{get line(){return e(B)},get now(){return a.now},get open(){return e(be)},get project(){return e(We)},get dim(){return e(xt)},onToggle:()=>dt(e(B).key),onChat:vt})}i(ee),It(1,ee,()=>_a),It(2,ee,()=>wa,()=>({word:e(B).kind==="decision"?at.stampFor(e(B).card.id):null})),f(Q,ee)}),i(N),f(k,N)},R=k=>{var N=Dr(),Q=M(N,!0);y(()=>b(Q,Ne[e(U)])),f(k,N)};C(G,k=>{e(j).lines.length?k(I):k(R,-1)})}i(A),y(()=>{h(A,"aria-label",e(j).crew.label),h(A,"data-crew-group",e(j).crew.id)}),f(L,A)},L=>{var j=Ur(),A=l(j);{var W=G=>{Ft(G,{class:"size-4 text-success","aria-hidden":"true"})};C(A,G=>{e(U)==="needs"&&G(W)})}var K=s(A,1,!0);i(j),y(()=>b(K,Ne[e(U)])),f(L,j)}),i(c);var E=s(c,2);{var H=L=>{var j=Yr(),A=_e(j),W=l(A),K=l(W);Ua(K,{class:"size-3.5","aria-hidden":"true"}),Re(),i(W),Re(4),i(A);var G=s(A,2);pe(G,21,()=>e(de).slice(0,3),I=>I.id,(I,R)=>{var k=Wr(),N=l(k),Q=l(N),B=M(Q,!0),ee=s(Q,2),ve=M(ee,!0),be=s(ee,2),We=M(be,!0);i(N),i(k),y((xt,aa)=>{h(N,"href",`/decisions#${e(R).id??""}`),h(N,"title",e(R).question),b(B,e(R).taskTitle),b(ve,e(R).verdict),h(be,"title",xt),b(We,aa)},[()=>_t(e(R).decidedAt,a.now),()=>Wt(e(R).decidedAt,a.now)]),f(I,k)}),i(G),f(L,j)};C(E,L=>{e(U)==="needs"&&e(de).length&&e(Ke)&&L(H)})}var O=s(E,2);{var ae=L=>{var j=Pr(),A=l(j),W=l(A),K=M(W,!0),G=s(W);i(A);var I=s(A,2),R=l(I);ka(R,{get seconds(){return e(X)},label:"Today"}),i(I);var k=s(I,2),N=M(k);i(j),y((Q,B,ee,ve)=>{b(K,Q),b(G,` of crew time today on ${e(me)??""}
2
2
  ${e(me)===1?"task":"tasks"}`),b(N,`${B??""}% building · ${ee??""}% automated review · ${ve??""}%
3
3
  waiting on you`)},[()=>ha(e(Y)),()=>oe("build"),()=>oe("review"),()=>oe("captain")]),f(L,j)};C(O,L=>{e(U)==="landed"&&e(Y)>0&&e(Ke)&&L(ae)})}le("keydown",c,ut),f(t,r)};C(Mt,t=>{e(ie)?t(Vt):t(Zt,-1)})}var gt=s(Mt,2),et=l(gt),St=l(et),Xt=s(St);Rt(Xt,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),i(et);var Jt=s(et,2);{var $t=t=>{var r=Br(),d=s(l(r));Rt(d,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),i(r),f(t,r)};C(Jt,t=>{e(Ce).length&&t($t)})}i(gt);var ea=s(gt,2);{var ta=t=>{var r=Qr(),d=s(l(r),4);pe(d,21,()=>e(Ve),w=>w.id,(w,c)=>{var E=Kr(),H=l(E),O=l(H),ae=l(O),L=M(ae,!0),j=s(ae,2),A=M(j,!0);i(O);var W=s(O,2),K=l(W);let G;i(W),i(H),i(E),y((I,R)=>{h(H,"href",`/projects/${I??""}`),h(H,"aria-label",`${e(c).name??""}: ${e(c).word??""}, ${e(c).landed??""}% of its work landed`),b(L,e(c).name),b(A,e(c).word),h(W,"data-tone",e(c).tone),G=ia(K,"",G,{width:R})},[()=>encodeURIComponent(e(c).id),()=>`${Math.max(e(c).landed,3)}%`]),f(w,E)}),i(d),i(r),f(t,r)};C(ea,t=>{e(Ve).length&&t(ta)})}i(ht),i(De),y((t,r,d)=>{b(ft,t),h(g,"aria-label",e(ue)?`Claude headroom: ${e(ue).label}, ${e(ue).percentLeft}% left`:"Claude headroom: not read yet"),b(Yt,e(ue)?.label??"Headroom"),b(Gt,e(ue)?"Of Claude’s allowance left until it resets":e(D)?.state==="connect"?"Connect your Claude usage to see it":"Claude’s limits are not read yet"),h(Je,"href",r),h(Je,"aria-label",`Checks: ${e(ne).percent??""}% of the work in play has nothing failing${e(ne).failing?`, ${e(ne).failing} failing`:""}`),b(Kt,e(ne).failing?`${e(ne).failing} of ${e(ne).inPlay} in play failing`:e(ne).inPlay?`Nothing failing across ${e(ne).inPlay} in play`:"Nothing in play"),h(ht,"aria-labelledby",`rail-tab-${e(U)??""}`),h(et,"href",d),b(St,`${T()?"Open the project’s page":"Open every project in Harbour"} `)},[()=>va(e(z).h),()=>T()?`/projects/${encodeURIComponent(T())}`:"/harbour",()=>T()?`/projects/${encodeURIComponent(T())}`:"/harbour"]),le("keydown",$e,ge),f(n,De),Ht()}Lt(["click","keydown"]);const Zr=6e4;class Xr{#e=tt(null);get value(){return e(this.#e)}set value(a){Ae(this.#e,a,!0)}seed(a){a&&(this.value=a)}connect(){let a=!1;const x=setInterval(async()=>{try{const T=await fetch("/api/insights");T.ok&&!a&&(this.value=await T.json())}catch{}},Zr);return()=>{a=!0,clearInterval(x)}}}const En=new Xr;export{Ya as C,Ln as R,Za as c,En as r};
@@ -1,4 +1,4 @@
1
- import"./DsnmJJEf.js";import{o as Je}from"./RYq3318d.js";import{m as G,g as e,v as O,p as Re,u as qe,A as rt,f as K,s as D,h as L,r as _,x as nt,a as o,b as Le,i as se,t as b,o as R,d as M,n as Te,w as Ne,c as u,j as he,aa as Ie,aq as at,bC as ot,bD as st}from"./BuRWgnCz.js";import{i as W}from"./BDpRITyb.js";import{X as it,k as lt}from"./rS7QE60d.js";import{c as ct}from"./DLuhTA05.js";import{a as oe,f as dt,s as ue,d as ut,e as xe,i as _e}from"./Cwb6d3g_.js";import{s as Ke,r as Ze,p as Me}from"./BAOiF0in.js";import{a as ft}from"./BCUUi0V0.js";import{e as vt,P as mt}from"./CvBYM8q3.js";import{b as Oe}from"./BWRIDih-.js";import{p as We}from"./01zSWHgS.js";import{a as Ce,s as pt,P as ht}from"./Bm5t_TcQ.js";import{S as Ve}from"./BXN538J3.js";import{B as ze}from"./C5BN6RHR.js";import{L as Xe}from"./CP7u-DWX.js";import{P as gt}from"./Co6rv60s.js";import{I as Ge}from"./xH4qmLqM.js";import{C as xt}from"./B0XeFYOk.js";import{C as _t}from"./cmRB1an4.js";import{C as yt}from"./D-5zBf83.js";import{E as wt}from"./IuxiJfHx.js";var kt=new Set(["$$slots","$$events","$$legacy"]);function bt(r,t){let a=Ze(t,kt);const l={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],aliases:["help-circle","circle-help"]};Ge(r,Ke(()=>a,{get icon(){return l}}))}var Mt=new Set(["$$slots","$$events","$$legacy"]);function St(r,t){let a=Ze(t,Mt);const l={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Ge(r,Ke(()=>a,{get icon(){return l}}))}const Et="2026-01-26";class Y extends Error{constructor(t,a){super(a),this.code=t}code}const Tt=-32601,be=-32602,ye=-32e3,zt=r=>typeof r=="string"&&r.length<=128||typeof r=="number"&&Number.isFinite(r);function At(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;const t=r;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!zt(t.id)||t.method===void 0&&t.id===void 0?null:t}class Pt{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const a=At(t);if(a){if(a.method!==void 0&&a.id!==void 0)this.answer(a.id,a.method,a.params);else if(a.method!==void 0)try{this.o.onNotification(a.method,a.params)}catch{}else if(a.id!==void 0){const l=this.pending.get(a.id);if(!l)return;this.pending.delete(a.id),clearTimeout(l.timer),a.error?l.reject(new Y(a.error.code,String(a.error.message))):l.resolve(a.result)}}}async answer(t,a,l){let h;try{const d=await this.o.onRequest(a,l);h={jsonrpc:"2.0",id:t,result:d??{}}}catch(d){const x=d instanceof Y?d:new Y(ye,d instanceof Error?d.message:String(d));h={jsonrpc:"2.0",id:t,error:{code:x.code,message:x.message}}}this.closed||this.o.send(h)}request(t,a,l=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const h=this.next++;return new Promise((d,x)=>{const n=setTimeout(()=>{this.pending.delete(h),x(new Error(`The app did not answer ${t}.`))},l);this.pending.set(h,{resolve:d,reject:x,timer:n}),this.o.send({jsonrpc:"2.0",id:h,method:t,params:a})})}notify(t,a){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:a})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const Pe=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{},Nt=16*1024;function jt(r,t,a){return async(l,h)=>{const d=Pe(h);switch(l){case"ui/initialize":return{protocolVersion:Et,hostInfo:t,hostCapabilities:a,hostContext:r.context()};case"ping":return{};case"tools/call":{if(typeof d.name!="string"||!d.name)throw new Y(be,"Name the tool to call.");return r.callTool(d.name,Pe(d.arguments))}case"resources/read":{if(typeof d.uri!="string"||!d.uri)throw new Y(be,"Name the resource to read.");return r.readResource(d.uri)}case"ui/open-link":{let x;try{x=new URL(String(d.url))}catch{throw new Y(be,"Invalid URL")}if(x.protocol!=="http:"&&x.protocol!=="https:")throw new Y(ye,"Policy violation: only http(s) links open.");return r.openLink(x.href),{}}case"ui/message":{const n=(Array.isArray(d.content)?d.content:[d.content]).map(z=>Pe(z)).filter(z=>z.type==="text"&&typeof z.text=="string").map(z=>z.text).join(`
1
+ import"./DsnmJJEf.js";import{o as Je}from"./RYq3318d.js";import{m as G,g as e,v as O,p as Re,u as qe,A as rt,f as K,s as D,h as L,r as _,x as nt,a as o,b as Le,i as se,t as b,o as R,d as M,n as Te,w as Ne,c as u,j as he,aa as Ie,aq as at,bC as ot,bD as st}from"./BuRWgnCz.js";import{i as W}from"./BDpRITyb.js";import{X as it,k as lt}from"./rS7QE60d.js";import{c as ct}from"./DLuhTA05.js";import{a as oe,f as dt,s as ue,d as ut,e as xe,i as _e}from"./Cwb6d3g_.js";import{s as Ke,r as Ze,p as Me}from"./BAOiF0in.js";import{a as ft}from"./BCUUi0V0.js";import{e as vt,P as mt}from"./B3KHKydy.js";import{b as Oe}from"./BWRIDih-.js";import{p as We}from"./CDSHscp6.js";import{a as Ce,s as pt,P as ht}from"./qmyjnG6s.js";import{S as Ve}from"./BXN538J3.js";import{B as ze}from"./C5BN6RHR.js";import{L as Xe}from"./CP7u-DWX.js";import{P as gt}from"./Co6rv60s.js";import{I as Ge}from"./xH4qmLqM.js";import{C as xt}from"./B0XeFYOk.js";import{C as _t}from"./cmRB1an4.js";import{C as yt}from"./D-5zBf83.js";import{E as wt}from"./IuxiJfHx.js";var kt=new Set(["$$slots","$$events","$$legacy"]);function bt(r,t){let a=Ze(t,kt);const l={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],aliases:["help-circle","circle-help"]};Ge(r,Ke(()=>a,{get icon(){return l}}))}var Mt=new Set(["$$slots","$$events","$$legacy"]);function St(r,t){let a=Ze(t,Mt);const l={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Ge(r,Ke(()=>a,{get icon(){return l}}))}const Et="2026-01-26";class Y extends Error{constructor(t,a){super(a),this.code=t}code}const Tt=-32601,be=-32602,ye=-32e3,zt=r=>typeof r=="string"&&r.length<=128||typeof r=="number"&&Number.isFinite(r);function At(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;const t=r;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!zt(t.id)||t.method===void 0&&t.id===void 0?null:t}class Pt{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const a=At(t);if(a){if(a.method!==void 0&&a.id!==void 0)this.answer(a.id,a.method,a.params);else if(a.method!==void 0)try{this.o.onNotification(a.method,a.params)}catch{}else if(a.id!==void 0){const l=this.pending.get(a.id);if(!l)return;this.pending.delete(a.id),clearTimeout(l.timer),a.error?l.reject(new Y(a.error.code,String(a.error.message))):l.resolve(a.result)}}}async answer(t,a,l){let h;try{const d=await this.o.onRequest(a,l);h={jsonrpc:"2.0",id:t,result:d??{}}}catch(d){const x=d instanceof Y?d:new Y(ye,d instanceof Error?d.message:String(d));h={jsonrpc:"2.0",id:t,error:{code:x.code,message:x.message}}}this.closed||this.o.send(h)}request(t,a,l=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const h=this.next++;return new Promise((d,x)=>{const n=setTimeout(()=>{this.pending.delete(h),x(new Error(`The app did not answer ${t}.`))},l);this.pending.set(h,{resolve:d,reject:x,timer:n}),this.o.send({jsonrpc:"2.0",id:h,method:t,params:a})})}notify(t,a){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:a})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const Pe=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{},Nt=16*1024;function jt(r,t,a){return async(l,h)=>{const d=Pe(h);switch(l){case"ui/initialize":return{protocolVersion:Et,hostInfo:t,hostCapabilities:a,hostContext:r.context()};case"ping":return{};case"tools/call":{if(typeof d.name!="string"||!d.name)throw new Y(be,"Name the tool to call.");return r.callTool(d.name,Pe(d.arguments))}case"resources/read":{if(typeof d.uri!="string"||!d.uri)throw new Y(be,"Name the resource to read.");return r.readResource(d.uri)}case"ui/open-link":{let x;try{x=new URL(String(d.url))}catch{throw new Y(be,"Invalid URL")}if(x.protocol!=="http:"&&x.protocol!=="https:")throw new Y(ye,"Policy violation: only http(s) links open.");return r.openLink(x.href),{}}case"ui/message":{const n=(Array.isArray(d.content)?d.content:[d.content]).map(z=>Pe(z)).filter(z=>z.type==="text"&&typeof z.text=="string").map(z=>z.text).join(`
2
2
 
3
3
  `).trim();if(!n)throw new Y(be,"Invalid message format: no text.");if(n.length>Nt)throw new Y(be,"The message is too long.");if(!await r.sendMessage(n))throw new Y(ye,"Message sending denied");return{}}case"ui/request-display-mode":{const x=d.mode;if(x!=="inline"&&x!=="fullscreen"&&x!=="pip")throw new Y(be,"Unknown display mode.");return{mode:await r.displayMode(x)}}default:throw new Y(Tt,`Wheelhouse does not offer ${l}.`)}}}function Ot(r){return(t,a)=>{const l=Pe(a),h=d=>typeof d=="number"&&Number.isFinite(d)&&d>=0?Math.min(d,1e5):void 0;t==="ui/notifications/initialized"?r.initialized():t==="ui/notifications/size-changed"?r.resize({width:h(l.width),height:h(l.height)}):t==="notifications/message"&&r.log(typeof l.level=="string"?l.level:"info",l.data)}}const Ct={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function It(r){const t={};for(const[a,l]of Object.entries(Ct)){const h=r(l).trim();h&&(t[a]=h)}return t}function Dt(r,t,a){const l=Math.round(r.width);return t?{width:l,height:Math.round(r.height)}:{width:l,maxHeight:a}}function Rt(r){return{toolInfo:{tool:r.tool},theme:r.theme,styles:{variables:r.styles},displayMode:r.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:r.dimensions,...r.locale?{locale:r.locale}:{},...r.timeZone?{timeZone:r.timeZone}:{},userAgent:`wheelhouse/${r.version}`,platform:"web",deviceCapabilities:{hover:r.hover??!0,touch:r.touch??!1}}}function Lt(r){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:r}}}const Ft=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function qt(r){return[...new Set(Ft.flatMap(t=>r[t]??[]))]}async function Se(r,t,a){let l;try{l=await fetch(`/api/apps/${r}`,{method:"POST",headers:{"content-type":"application/json",[Ve]:a},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const h=await l.json().catch(()=>null);if(h&&(l.ok||"ok"in h||"state"in h))return h;throw new Error(h?.message??`Wheelhouse answered ${l.status}.`)}const Wt=(r,t)=>Se("open",r,t),Ht=(r,t)=>Se("run",r,t),He=(r,t,a)=>Se("call",{...r,...t},a),Ut=(r,t,a)=>Se("read",{...r,uri:t},a),sn=(r,t)=>Se("chat",{calls:r},t);async function Bt(r,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[Ve]:t},body:JSON.stringify(r)})).json().catch(()=>null)}catch{return null}}const De=()=>navigator.keyboard;async function Jt(r,{keepEscape:t=!1}={}){if(document.fullscreenElement!==r){if(typeof r.requestFullscreen!="function")return{full:!1,escapeKept:!1};try{await r.requestFullscreen({navigationUI:"hide"})}catch{return{full:!1,escapeKept:!1}}}let a=!1;return t&&De()?.lock&&(a=await De().lock(["Escape"]).then(()=>!0).catch(()=>!1)),{full:!0,escapeKept:a}}function Ue(r){!r||document.fullscreenElement!==r||(De()?.unlock?.(),document.exitFullscreen().catch(()=>{}))}class Kt{#e=G(0);get open(){return e(this.#e)}set open(t){O(this.#e,t,!0)}}const ln=new Kt;var Zt=u('<p aria-busy="true">Opening the app…</p>'),Vt=u("<!>Starting…",1),Xt=u("<!> ",1),Gt=u('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),Yt=u('<div data-app-service=""><p> </p> <!></div>'),Qt=u("<p> </p>"),$t=u("<!>Exit full screen",1),er=u('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),tr=u('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),rr=u('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),nr=u('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),ar=u('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),or=u('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function sr(r,t){Re(t,!0);const a=720;let l=Me(t,"fill",3,!1),h=Me(t,"maxHeight",3,a);const d=()=>We.data.sessionToken??"",x=()=>We.data.health?.version??"0.0.0";let n=G("opening"),z=G(null),H=G(null),ie=G(""),Q=G(null),fe=G(null),ve=G(!1),ge=G(160),j=G("inline"),T=G(null),C=G(null),g=G(()=>{}),s=G(null),m=G(null),S=Promise.resolve();function y(c){const N=S.then(()=>new Promise(J=>{O(s,{...c,answer:te=>{O(s,null),J(te)}},!0)}));return S=N.catch(()=>{}),N}qe(()=>{e(m)&&(e(s)&&!e(m).open?e(m).showModal():!e(s)&&e(m).open&&e(m).close())});async function p(){O(n,"opening"),O(Q,null);try{const c=await Wt(t.ref,d());c.state==="ready"?(O(z,c),O(ie,c.server.title,!0),O(n,"ready")):c.state==="service"?(O(H,c.service),O(ie,c.server.title,!0),O(n,"service")):(O(Q,c.reason,!0),O(n,"failed"))}catch(c){O(Q,c.message,!0),O(n,"failed")}}async function w(){if(!e(H))return;O(ve,!0);const c=await Bt({plugin:e(H).plugin,service:e(H).service,project:e(H).project},d());O(ve,!1),c?.state==="running"?await p():O(H,c??e(H))}Je(()=>{p()});const i=se(()=>{if(!e(z))return null;const c=new URL(Ce.sandbox(e(z).sandbox));return c.searchParams.set("host",location.origin),c.href}),v=se(()=>e(z)?qt(e(z).csp):[]),A=()=>document.documentElement.classList.contains("dark")?"dark":"light",P=()=>{const c=getComputedStyle(document.documentElement);return It(N=>c.getPropertyValue(N))},E=()=>{const c=e(T)?.getBoundingClientRect()??{width:0,height:0};return e(j)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:Dt(c,l(),h())};qe(()=>{if(!e(z)||!e(C))return;const c=e(z),N=e(C);return rt(()=>I(c,N))});function I(c,N){const J=new URL(Ce.sandbox(c.sandbox)).origin,te=t.ref;let me=!1,$=null,le="";const re=Ht(te,d()).catch(f=>({ok:!1,reason:f.message})),U=f=>N.contentWindow?.postMessage(f,J),F={context:()=>Rt({tool:c.tool,theme:A(),styles:P(),displayMode:e(j),dimensions:E(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:x()}),async callTool(f,q){let ee=await He(te,{name:f,arguments:q,confirmed:!1},d());if(!ee.ok&&ee.confirm){if(!await y({kind:"tool",title:ee.confirm.title,description:ee.confirm.description,args:JSON.stringify(q,null,2)}))throw new Y(ye,"The captain declined the call.");ee=await He(te,{name:f,arguments:q,confirmed:!0},d())}if(!ee.ok)throw new Y(ye,ee.reason);return ee.result},async readResource(f){const q=await Ut(te,f,d());if(!q.ok)throw new Y(ye,q.reason);return q.result},async sendMessage(f){if(!await y({kind:"message",text:f}))return!1;const q=await pt(`From the “${t.title}” app (${t.plugin} plugin):
4
4
 
@@ -0,0 +1,2 @@
1
+ import{s as yt}from"./RYq3318d.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"./Cwo48ib8.js";import{G as se,a8 as It,A as Rt}from"./BuRWgnCz.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_1n1gelt.data){const{q:a={},p:o={},l:s={},f:c={}}=globalThis.__sveltekit_1n1gelt.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 +1 @@
1
- import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./BuRWgnCz.js";import{i as F}from"./BDpRITyb.js";import{M as K,P as Q}from"./_xQwGlKC.js";import{e as U,a as T,s as _,d as V}from"./Cwb6d3g_.js";import{p as S}from"./BAOiF0in.js";import{l as X}from"./BOuuGRjG.js";import{s as Y,c as Z}from"./BB2roMZd.js";import{e as $,C as ee}from"./CR7y1ULG.js";import{C as te}from"./D2ynzrtM.js";var ae=f('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function ke(z,e){N(e,!0);let s=j(null),o=j(!1);function x(n){const l=n.currentTarget,u=l.closest("article"),L=u?.querySelector("[data-card-picture]");M(s,(L??u??l).getBoundingClientRect(),!0),M(o,!0)}var v=ae(),i=G(v),d=P(i),h=P(d);K(h,{class:"size-3.5","aria-hidden":"true"}),J(),k(d),k(i);var E=w(i,2);{var g=n=>{{let l=C(()=>e.task.preview?.url??""),u=C(()=>e.task.status!=="landed");Q(n,{get taskId(){return e.task.id},get title(){return e.task.shortTitle},get url(){return r(l)},get talk(){return r(u)},get from(){return r(s)},onclose:()=>M(o,!1)})}};F(E,n=>{r(o)&&e.task.preview&&n(g)})}H("click",d,x),c(z,v),O()}D(["click"]);const re={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},B={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var ne=f("<li></li>"),oe=f("<span> </span>"),se=f('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),ie=f('<span class="text-foreground/80"> </span>'),le=f('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function we(z,e){N(e,!0);let s=S(e,"busy",3,!1),o=S(e,"lead",3,null),x=S(e,"leadClass",3,""),v=S(e,"size",3,"card"),i=S(e,"questions",3,null);const d=C(()=>e.pipeline.steps.map(t=>({s:t,tone:Y(t,e.pipeline)}))),h=C(()=>Z(e.pipeline,X.now)),E=C(()=>`Checks: ${r(d).map(({s:t,tone:a})=>`${t.label} ${B[a]}`).join(", ")}`);var g=le(),n=P(g);U(n,21,()=>r(d),({s:t,tone:a})=>t.key,(t,a)=>{let m=()=>r(a).s,b=()=>r(a).tone;var I=ne();p(()=>{T(I,1,`h-1 rounded-full ${re[b()]??""} ${s()&&(b()==="active"||b()==="fixing")?"motion-safe:animate-pulse":""}`),_(I,"title",`${m().label??""}: ${B[b()]??""}`)}),c(t,I)}),k(n);var l=w(n,2),u=P(l);{var L=t=>{var a=oe(),m=y(a);p(()=>{T(a,1,`font-medium ${x()??""}`),q(m,`${o()??""}.`)}),c(t,a)};F(u,t=>{o()&&t(L)})}var R=w(u,2);{var W=t=>{var a=se(),m=y(a,!0);p(()=>{_(a,"aria-expanded",i().expanded),_(a,"aria-controls",i().controls),_(a,"title",i().expanded?"Hide the questions":"Show the questions"),q(m,r(h))}),H("click",a,function(...b){i().toggle?.apply(this,b)}),c(t,a)},A=t=>{var a=ie(),m=y(a,!0);p(()=>q(m,r(h))),c(t,a)};F(R,t=>{i()?t(W):t(A,-1)})}k(l),k(g),p(()=>{V(n,`grid-template-columns: repeat(${r(d).length??""}, minmax(0, 1fr))`),_(n,"aria-label",r(E)),T(l,1,`tabular line-clamp-2 text-muted-foreground ${v()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),c(z,g),O()}D(["click"]);var de=f('<span class="shrink-0 text-muted-foreground"> </span>'),ue=f('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function Ce(z,e){N(e,!0);const s=C(()=>$(e.eta));var o=ue(),x=P(o);te(x,{class:"size-3.5 shrink-0","aria-hidden":"true"});var v=w(x,2),i=y(v,!0),d=w(v,2);{var h=n=>{var l=de(),u=y(l);p(L=>q(u,`· ${L??""}`),[()=>ee[e.eta.confidence].toLowerCase()]),c(n,l)};F(d,n=>{r(s).tone==="normal"&&e.eta.confidence!=="none"&&n(h)})}var E=w(d,2),g=y(E,!0);k(o),p(()=>{T(o,1,`flex min-w-0 items-center gap-1.5 text-xs ${r(s).tone==="warning"?"text-warning":r(s).tone==="muted"?"text-muted-foreground":"text-foreground"}`),_(o,"title",r(s).note),q(i,r(s).text),q(g,r(s).note)}),c(z,o),O()}export{we as C,Ce as E,ke as a};
1
+ import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./BuRWgnCz.js";import{i as F}from"./BDpRITyb.js";import{M as K,P as Q}from"./BosdQIFt.js";import{e as U,a as T,s as _,d as V}from"./Cwb6d3g_.js";import{p as S}from"./BAOiF0in.js";import{l as X}from"./79yuhTwS.js";import{s as Y,c as Z}from"./BB2roMZd.js";import{e as $,C as ee}from"./CR7y1ULG.js";import{C as te}from"./D2ynzrtM.js";var ae=f('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function ke(z,e){N(e,!0);let s=j(null),o=j(!1);function x(n){const l=n.currentTarget,u=l.closest("article"),L=u?.querySelector("[data-card-picture]");M(s,(L??u??l).getBoundingClientRect(),!0),M(o,!0)}var v=ae(),i=G(v),d=P(i),h=P(d);K(h,{class:"size-3.5","aria-hidden":"true"}),J(),k(d),k(i);var E=w(i,2);{var g=n=>{{let l=C(()=>e.task.preview?.url??""),u=C(()=>e.task.status!=="landed");Q(n,{get taskId(){return e.task.id},get title(){return e.task.shortTitle},get url(){return r(l)},get talk(){return r(u)},get from(){return r(s)},onclose:()=>M(o,!1)})}};F(E,n=>{r(o)&&e.task.preview&&n(g)})}H("click",d,x),c(z,v),O()}D(["click"]);const re={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},B={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var ne=f("<li></li>"),oe=f("<span> </span>"),se=f('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),ie=f('<span class="text-foreground/80"> </span>'),le=f('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function we(z,e){N(e,!0);let s=S(e,"busy",3,!1),o=S(e,"lead",3,null),x=S(e,"leadClass",3,""),v=S(e,"size",3,"card"),i=S(e,"questions",3,null);const d=C(()=>e.pipeline.steps.map(t=>({s:t,tone:Y(t,e.pipeline)}))),h=C(()=>Z(e.pipeline,X.now)),E=C(()=>`Checks: ${r(d).map(({s:t,tone:a})=>`${t.label} ${B[a]}`).join(", ")}`);var g=le(),n=P(g);U(n,21,()=>r(d),({s:t,tone:a})=>t.key,(t,a)=>{let m=()=>r(a).s,b=()=>r(a).tone;var I=ne();p(()=>{T(I,1,`h-1 rounded-full ${re[b()]??""} ${s()&&(b()==="active"||b()==="fixing")?"motion-safe:animate-pulse":""}`),_(I,"title",`${m().label??""}: ${B[b()]??""}`)}),c(t,I)}),k(n);var l=w(n,2),u=P(l);{var L=t=>{var a=oe(),m=y(a);p(()=>{T(a,1,`font-medium ${x()??""}`),q(m,`${o()??""}.`)}),c(t,a)};F(u,t=>{o()&&t(L)})}var R=w(u,2);{var W=t=>{var a=se(),m=y(a,!0);p(()=>{_(a,"aria-expanded",i().expanded),_(a,"aria-controls",i().controls),_(a,"title",i().expanded?"Hide the questions":"Show the questions"),q(m,r(h))}),H("click",a,function(...b){i().toggle?.apply(this,b)}),c(t,a)},A=t=>{var a=ie(),m=y(a,!0);p(()=>q(m,r(h))),c(t,a)};F(R,t=>{i()?t(W):t(A,-1)})}k(l),k(g),p(()=>{V(n,`grid-template-columns: repeat(${r(d).length??""}, minmax(0, 1fr))`),_(n,"aria-label",r(E)),T(l,1,`tabular line-clamp-2 text-muted-foreground ${v()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),c(z,g),O()}D(["click"]);var de=f('<span class="shrink-0 text-muted-foreground"> </span>'),ue=f('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function Ce(z,e){N(e,!0);const s=C(()=>$(e.eta));var o=ue(),x=P(o);te(x,{class:"size-3.5 shrink-0","aria-hidden":"true"});var v=w(x,2),i=y(v,!0),d=w(v,2);{var h=n=>{var l=de(),u=y(l);p(L=>q(u,`· ${L??""}`),[()=>ee[e.eta.confidence].toLowerCase()]),c(n,l)};F(d,n=>{r(s).tone==="normal"&&e.eta.confidence!=="none"&&n(h)})}var E=w(d,2),g=y(E,!0);k(o),p(()=>{T(o,1,`flex min-w-0 items-center gap-1.5 text-xs ${r(s).tone==="warning"?"text-warning":r(s).tone==="muted"?"text-muted-foreground":"text-foreground"}`),_(o,"title",r(s).note),q(i,r(s).text),q(g,r(s).note)}),c(z,o),O()}export{we as C,Ce as E,ke as a};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{i as n}from"./CKBPLT-z.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./BuRWgnCz.js";import{e as _,s as f}from"./Cwb6d3g_.js";import{p as d}from"./01zSWHgS.js";import{L as x}from"./cwI46DFb.js";var O=i('<a class="nav-tab shrink-0"> </a>'),L=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function K(l,p){h(p,!1),n();var r=L();_(r,5,()=>x,t=>t.href,(t,e)=>{var a=O(),m=c(a,!0);u(()=>{f(a,"href",o(e).href),f(a,"aria-current",d.url.pathname===o(e).href?"page":void 0),b(m,o(e).label)}),s(t,a)}),g(r),s(l,r),v()}export{K as I};
1
+ import"./DsnmJJEf.js";import{i as n}from"./CKBPLT-z.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./BuRWgnCz.js";import{e as _,s as f}from"./Cwb6d3g_.js";import{p as d}from"./CDSHscp6.js";import{L as x}from"./cwI46DFb.js";var O=i('<a class="nav-tab shrink-0"> </a>'),L=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function K(l,p){h(p,!1),n();var r=L();_(r,5,()=>x,t=>t.href,(t,e)=>{var a=O(),m=c(a,!0);u(()=>{f(a,"href",o(e).href),f(a,"aria-current",d.url.pathname===o(e).href?"page":void 0),b(m,o(e).label)}),s(t,a)}),g(r),s(l,r),v()}export{K as I};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{i as c}from"./CKBPLT-z.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./BuRWgnCz.js";import{e as w,s as o}from"./Cwb6d3g_.js";import{p as n}from"./01zSWHgS.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};
1
+ import"./DsnmJJEf.js";import{i as c}from"./CKBPLT-z.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./BuRWgnCz.js";import{e as w,s as o}from"./Cwb6d3g_.js";import{p as n}from"./CDSHscp6.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};