@chrisjowen/wheelhouse 0.22.9 → 0.22.10

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 (821) hide show
  1. package/build/client/_app/immutable/assets/0.CxgStULu.css +1 -0
  2. package/build/client/_app/immutable/assets/0.CxgStULu.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.CxgStULu.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/-yf6aA9S.js +1 -0
  5. package/build/client/_app/immutable/chunks/-yf6aA9S.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/-yf6aA9S.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/362kFTNq.js +1 -0
  8. package/build/client/_app/immutable/chunks/362kFTNq.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/362kFTNq.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/4Fb0jmD0.js +2 -0
  11. package/build/client/_app/immutable/chunks/4Fb0jmD0.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/4Fb0jmD0.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/B6OgCkTR.js +1 -0
  14. package/build/client/_app/immutable/chunks/B6OgCkTR.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/B6OgCkTR.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/BONFwLSn.js +1 -0
  17. package/build/client/_app/immutable/chunks/BONFwLSn.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BONFwLSn.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/BcjiGAgD.js +1 -0
  20. package/build/client/_app/immutable/chunks/BcjiGAgD.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BcjiGAgD.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/BjVIrDHV.js +1 -0
  23. package/build/client/_app/immutable/chunks/BjVIrDHV.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/BjVIrDHV.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/Bue5RrUO.js +7 -0
  26. package/build/client/_app/immutable/chunks/Bue5RrUO.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/Bue5RrUO.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/CLuz13qg.js +1 -0
  29. package/build/client/_app/immutable/chunks/CLuz13qg.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CLuz13qg.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/CSzwlAcc.js +6 -0
  32. package/build/client/_app/immutable/chunks/CSzwlAcc.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CSzwlAcc.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/CW42isxN.js +1 -0
  35. package/build/client/_app/immutable/chunks/CW42isxN.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CW42isxN.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/CWvJbYTn.js +7 -0
  38. package/build/client/_app/immutable/chunks/CWvJbYTn.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CWvJbYTn.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/Cq0j50qC.js +1 -0
  41. package/build/client/_app/immutable/chunks/Cq0j50qC.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/Cq0j50qC.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/Cu2GhZPA.js +8 -0
  44. package/build/client/_app/immutable/chunks/Cu2GhZPA.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/Cu2GhZPA.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/DC4avyk1.js +3 -0
  47. package/build/client/_app/immutable/chunks/DC4avyk1.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/DC4avyk1.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/DFoNnxZy.js +1 -0
  50. package/build/client/_app/immutable/chunks/DFoNnxZy.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/DFoNnxZy.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/DLoaec-O.js +3 -0
  53. package/build/client/_app/immutable/chunks/DLoaec-O.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/DLoaec-O.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/DMtBybVn.js +1 -0
  56. package/build/client/_app/immutable/chunks/DMtBybVn.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/DMtBybVn.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/DN7cEX4D.js +2 -0
  59. package/build/client/_app/immutable/chunks/DN7cEX4D.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DN7cEX4D.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/DRK8ZUj2.js +1 -0
  62. package/build/client/_app/immutable/chunks/DRK8ZUj2.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/DRK8ZUj2.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/DTmJMwRe.js +1 -0
  65. package/build/client/_app/immutable/chunks/DTmJMwRe.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/DTmJMwRe.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/Dg5Iatf7.js +1 -0
  68. package/build/client/_app/immutable/chunks/Dg5Iatf7.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/Dg5Iatf7.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/Dtd2m7HF.js +4 -0
  71. package/build/client/_app/immutable/chunks/Dtd2m7HF.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/Dtd2m7HF.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/MoV8bfgL.js +1 -0
  74. package/build/client/_app/immutable/chunks/MoV8bfgL.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/MoV8bfgL.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/Rgu8m09_.js +3 -0
  77. package/build/client/_app/immutable/chunks/Rgu8m09_.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/Rgu8m09_.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/nqsqhzVw.js +5 -0
  80. package/build/client/_app/immutable/chunks/nqsqhzVw.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/nqsqhzVw.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/pSy419OZ.js +1 -0
  83. package/build/client/_app/immutable/chunks/pSy419OZ.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/pSy419OZ.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/tFbTlyod.js +2 -0
  86. package/build/client/_app/immutable/chunks/tFbTlyod.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/tFbTlyod.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/vbU2m5ZC.js +6 -0
  89. package/build/client/_app/immutable/chunks/vbU2m5ZC.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/vbU2m5ZC.js.gz +0 -0
  91. package/build/client/_app/immutable/entry/app.DhcmqiiG.js +2 -0
  92. package/build/client/_app/immutable/entry/app.DhcmqiiG.js.br +0 -0
  93. package/build/client/_app/immutable/entry/app.DhcmqiiG.js.gz +0 -0
  94. package/build/client/_app/immutable/entry/start.DO6oso7n.js +1 -0
  95. package/build/client/_app/immutable/entry/start.DO6oso7n.js.br +0 -0
  96. package/build/client/_app/immutable/entry/start.DO6oso7n.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/0.CWyb_rXu.js +9 -0
  98. package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/1.BOm1hKiV.js +1 -0
  101. package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/10.DRMcyQfx.js +9 -0
  104. package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/11.BkUr8JG0.js +3 -0
  107. package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/12.CJNr2i2i.js +6 -0
  110. package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/13.BKw66cnj.js +1 -0
  113. package/build/client/_app/immutable/nodes/13.BKw66cnj.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/13.BKw66cnj.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/14.9qfv-EBi.js +10 -0
  116. package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/15.DSekLzW1.js +1 -0
  119. package/build/client/_app/immutable/nodes/15.DSekLzW1.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/15.DSekLzW1.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/16.BC7ezHaI.js +3 -0
  122. package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/17.DXMknnxr.js +1 -0
  125. package/build/client/_app/immutable/nodes/17.DXMknnxr.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/17.DXMknnxr.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/18.HjgpyMW-.js +14 -0
  128. package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/19.BOB8CfuL.js +150 -0
  131. package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/2.BHumjjdi.js +40 -0
  134. package/build/client/_app/immutable/nodes/2.BHumjjdi.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/2.BHumjjdi.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/20.JN5VOhqA.js +25 -0
  137. package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/21.EqPwzUhF.js +5 -0
  140. package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/22.DqyYdAf0.js +18 -0
  143. package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/24.EzjiUP8y.js +4 -0
  146. package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/26.BnZOICl5.js +6 -0
  149. package/build/client/_app/immutable/nodes/26.BnZOICl5.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/26.BnZOICl5.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/27.CklcJ2eM.js +8 -0
  152. package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js +2 -0
  155. package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/29.BOuFV2EF.js +5 -0
  158. package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/3.JOOWrRc9.js +2 -0
  161. package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/30.DDGOS4V1.js +4 -0
  164. package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/31.DcXjxR7j.js +3 -0
  167. package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/32.D8XciSJp.js +7 -0
  170. package/build/client/_app/immutable/nodes/32.D8XciSJp.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/32.D8XciSJp.js.gz +0 -0
  172. package/build/client/_app/immutable/nodes/33.DinukFZg.js +2 -0
  173. package/build/client/_app/immutable/nodes/33.DinukFZg.js.br +0 -0
  174. package/build/client/_app/immutable/nodes/33.DinukFZg.js.gz +0 -0
  175. package/build/client/_app/immutable/nodes/34.DtDCIQmU.js +4 -0
  176. package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.br +0 -0
  177. package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/35.C3rbzZEh.js +7 -0
  179. package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/36.S0MUGkao.js +6 -0
  182. package/build/client/_app/immutable/nodes/36.S0MUGkao.js.br +0 -0
  183. package/build/client/_app/immutable/nodes/36.S0MUGkao.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js +23 -0
  185. package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.br +0 -0
  186. package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js +1 -0
  188. package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.br +1 -0
  189. package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/4.Bem-C3SH.js +5 -0
  191. package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/40._GGycC-b.js +6 -0
  194. package/build/client/_app/immutable/nodes/40._GGycC-b.js.br +0 -0
  195. package/build/client/_app/immutable/nodes/40._GGycC-b.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js +1 -0
  197. package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/8.DydCsQuo.js +3 -0
  200. package/build/client/_app/immutable/nodes/8.DydCsQuo.js.br +0 -0
  201. package/build/client/_app/immutable/nodes/8.DydCsQuo.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/9.CroJqbmx.js +10 -0
  203. package/build/client/_app/immutable/nodes/9.CroJqbmx.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/9.CroJqbmx.js.gz +0 -0
  205. package/build/client/_app/version.json +1 -1
  206. package/build/client/_app/version.json.br +0 -0
  207. package/build/client/_app/version.json.gz +0 -0
  208. package/build/handler.js +4 -4
  209. package/build/index.js +4 -4
  210. package/build/server/chunks/chunks/DecisionForm.js-xvsHzFol.js +246 -0
  211. package/build/server/chunks/chunks/DecisionsBadge.js-Ba3uHWZs.js +79 -0
  212. package/build/server/chunks/chunks/Discussion.js-Bdc6mCza.js +582 -0
  213. package/build/server/chunks/chunks/ResizableRail.js-CaXYsa14.js +864 -0
  214. package/build/server/chunks/chunks/TaskView.js-Ceg1VgsE.js +3015 -0
  215. package/build/server/chunks/chunks/bell.js-bn_lKpLG.js +194 -0
  216. package/build/server/chunks/chunks/chat.svelte.js-sTASVMGv.js +417 -0
  217. package/build/server/chunks/chunks/decisionhome.js-GDNgBJjF.js +319 -0
  218. package/build/server/chunks/chunks/detail.js-BiXsOr5e.js +149 -0
  219. package/build/server/chunks/chunks/features.js-C0RFlCU9.js +181 -0
  220. package/build/server/chunks/chunks/feedback.js-DqPCMKCB.js +67 -0
  221. package/build/server/chunks/chunks/handled.js-CSOW-IZA.js +20 -0
  222. package/build/server/chunks/chunks/inbox.js-Ci-STS86.js +229 -0
  223. package/build/server/chunks/chunks/insights.svelte.js-Bkr5JwNs.js +567 -0
  224. package/build/server/chunks/chunks/internal.js-BFZQ29Rw.js +151 -0
  225. package/build/server/chunks/chunks/marketplace-service.js-Dux8KDZW.js +557 -0
  226. package/build/server/chunks/chunks/ondeck.js-DqIA30QR.js +121 -0
  227. package/build/server/chunks/chunks/package.js-BddORhTc.js +160 -0
  228. package/build/server/chunks/chunks/page.js-BBQIXL1m.js +13 -0
  229. package/build/server/chunks/chunks/previewhelper2.js-BkkOMPpE.js +210 -0
  230. package/build/server/chunks/chunks/repo.js-zZjENX9B.js +33 -0
  231. package/build/server/chunks/chunks/runtime.js-D5CM1xFr.js +25696 -0
  232. package/build/server/chunks/chunks/scribe.js-DPteFaiJ.js +1376 -0
  233. package/build/server/chunks/chunks/service.js-Jsxdma_u.js +1339 -0
  234. package/build/server/chunks/chunks/service2.js-CNlAY9fC.js +835 -0
  235. package/build/server/chunks/chunks/service3.js-CJCzXm3j.js +234 -0
  236. package/build/server/chunks/chunks/sessions.js-DwnsAQAT.js +519 -0
  237. package/build/server/chunks/chunks/settings.js-B_K2GMso.js +379 -0
  238. package/build/server/chunks/chunks/starter.js-De6FnYRT.js +400 -0
  239. package/build/server/chunks/chunks/store.js-DHAfX_W5.js +334 -0
  240. package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +504 -0
  241. package/build/server/chunks/chunks/tools.js-BnmGImVp.js +156 -0
  242. package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +107 -0
  243. package/build/server/chunks/chunks/view.js-7t_fs4Ou.js +76 -0
  244. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-Y1d6GsCd.js +112 -0
  245. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CH-h3Pl7.js +111 -0
  246. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CCMWIWlb.js +59 -0
  247. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-DXIH_Tt_.js +75 -0
  248. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-nWjmGzXO.js +79 -0
  249. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-SoyoQEs8.js +154 -0
  250. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-Dd51OPkW.js +56 -0
  251. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BJxEyrRY.js +71 -0
  252. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-0lQ7d4ex.js +107 -0
  253. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DLr0x0ZE.js +83 -0
  254. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-bScpFWhy.js +73 -0
  255. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dl_lCGny.js +66 -0
  256. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CMV9SuiA.js +66 -0
  257. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-j9aWA7Ox.js +67 -0
  258. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-mtr8O6IP.js +73 -0
  259. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DSTGdSa-.js +66 -0
  260. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BAk_G9UZ.js +115 -0
  261. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-C_AWiFk_.js +76 -0
  262. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DVlzrd15.js +87 -0
  263. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CfdiA9Rf.js +75 -0
  264. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Dr9UEEmG.js +66 -0
  265. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +32 -0
  266. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +40 -0
  267. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BKVOwD6Q.js +58 -0
  268. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Bjr287a3.js +58 -0
  269. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-B_6DE6G6.js +85 -0
  270. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CJzlOY_q.js +83 -0
  271. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CiAgA4MB.js +76 -0
  272. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DPgUobdG.js +168 -0
  273. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BMMFlj3H.js +58 -0
  274. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-psBYT9Pj.js +87 -0
  275. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-BkaMXW0d.js +72 -0
  276. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-BFVleJ7Y.js +27 -0
  277. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-53atYpc4.js +30 -0
  278. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-CT3ITClO.js +96 -0
  279. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +74 -0
  280. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C2tqGck8.js +118 -0
  281. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BEzg-GdT.js +72 -0
  282. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BtHG_jAo.js +93 -0
  283. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CBMV7d_i.js +82 -0
  284. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DGiV-zDl.js +77 -0
  285. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BmsdvL4P.js +74 -0
  286. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CKWaWFzi.js +27 -0
  287. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-sXcrpQCn.js +81 -0
  288. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-05bkKDCo.js +39 -0
  289. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Dv2TIj2l.js +58 -0
  290. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BkaZp7ms.js +39 -0
  291. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BlpQJKLF.js +42 -0
  292. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-B0D6HGVa.js +63 -0
  293. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-CoGEDP4T.js +72 -0
  294. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CeH1E1-1.js +69 -0
  295. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BJAM9u1Z.js +73 -0
  296. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B5919bIx.js +27 -0
  297. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-fOS_n0Oo.js +81 -0
  298. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dhy3UyX1.js +63 -0
  299. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C5yLhUK-.js +72 -0
  300. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8vY4bNlN.js +84 -0
  301. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-xVKILY2S.js +71 -0
  302. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-FOib6B1u.js +94 -0
  303. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B7PoKpP_.js +77 -0
  304. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-DboClsC1.js +473 -0
  305. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-_t2JBTpH.js +88 -0
  306. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BQq9eUgO.js +67 -0
  307. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DV5Sv6hi.js +77 -0
  308. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BiBWqjSe.js +137 -0
  309. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DxiG_OGk.js +66 -0
  310. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BGYEc37e.js +80 -0
  311. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CTzyglnl.js +66 -0
  312. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-rZFEYwUA.js +69 -0
  313. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BbY3jmr8.js +63 -0
  314. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-rYs21Hmk.js +82 -0
  315. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-B_kTjBS5.js +109 -0
  316. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ZkKoICXw.js +75 -0
  317. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-BGq0j-tp.js +104 -0
  318. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-COtlUErI.js +123 -0
  319. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-iofjMHUL.js +77 -0
  320. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-lh5ob5IU.js +80 -0
  321. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DibEHnqf.js +81 -0
  322. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BdjAbGdT.js +24 -0
  323. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CgI_ZLEj.js +31 -0
  324. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-BUDwJeuz.js +33 -0
  325. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-DtbdX65q.js +93 -0
  326. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BhPvfhR9.js +40 -0
  327. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-ytsnK_ZP.js +27 -0
  328. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CBcVn1mu.js +27 -0
  329. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-BEELTWRW.js +82 -0
  330. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-Eao6pczH.js +62 -0
  331. package/build/server/chunks/entries/hooks.server.js-CF4JNzUJ.js +104 -0
  332. package/build/server/chunks/entries/pages/_layout.server.ts.js-TepwAVSL.js +54 -0
  333. package/build/server/chunks/entries/pages/_layout.svelte.js-CO0DVsYz.js +6028 -0
  334. package/build/server/chunks/entries/pages/_page.server.ts.js-Dhr60fyS.js +16 -0
  335. package/build/server/chunks/entries/pages/_page.svelte.js-D35KG02R.js +5810 -0
  336. package/build/server/chunks/entries/pages/crew/_page.svelte.js-B1SJ4JXR.js +115 -0
  337. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cuc-vbOM.js +14 -0
  338. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-6jCtHLOX.js +16 -0
  339. package/build/server/chunks/entries/pages/deck/_page.svelte.js-BFOofQDq.js +93 -0
  340. package/build/server/chunks/entries/pages/files/_page.server.ts.js-C0iJcT5-.js +17 -0
  341. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DLTE5C5n.js +11 -0
  342. package/build/server/chunks/entries/pages/health/_page.server.ts.js-BGngm7Na.js +16 -0
  343. package/build/server/chunks/entries/pages/health/_page.svelte.js-q1P9AuIv.js +517 -0
  344. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DX9hQHEu.js +18 -0
  345. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BOQ1XsWC.js +666 -0
  346. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DBNfjd5P.js +16 -0
  347. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-B7Dmf30h.js +23 -0
  348. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DKEe2-Fq.js +21 -0
  349. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DQP_r_hz.js +27 -0
  350. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-B6DP_hXM.js +15 -0
  351. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-0ZU6L4gV.js +11 -0
  352. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +13 -0
  353. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +12 -0
  354. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B9y6kIJg.js +18 -0
  355. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-D1bVoyS8.js +19 -0
  356. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BlTW0hjJ.js +16 -0
  357. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +15 -0
  358. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-tetctN1t.js +797 -0
  359. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BSg0cHvQ.js +11 -0
  360. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DnuFc9-d.js +19 -0
  361. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DVFgUMvV.js +17 -0
  362. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-B0HUsANb.js +11 -0
  363. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-CHMmRvZ3.js +11 -0
  364. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Bn6Ntdtb.js +15 -0
  365. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-D2lE9oK6.js +18 -0
  366. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D_08lJPM.js +36 -0
  367. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-vFkcChIQ.js +112 -0
  368. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-rpxoOqIW.js +24 -0
  369. package/build/server/chunks/entries/pages/time/_page.server.ts.js-Cu-V5UEB.js +11 -0
  370. package/build/server/chunks/handler-Dr03OdQ-.js +1474 -0
  371. package/build/server/chunks/index.js-BMxFQyjC.js +4296 -0
  372. package/build/server/chunks/manifest.js-C_Ui3kN5.js +969 -0
  373. package/build/server/chunks/nodes/0.js-BV8n1wnt.js +66 -0
  374. package/build/server/chunks/nodes/1.js-CYQdJgHA.js +9 -0
  375. package/build/server/chunks/nodes/10.js-BrDRWQQx.js +65 -0
  376. package/build/server/chunks/nodes/11.js-DdqofsD3.js +64 -0
  377. package/build/server/chunks/nodes/12.js-DLPGUsTC.js +12 -0
  378. package/build/server/chunks/nodes/13.js-BdokX4Tq.js +9 -0
  379. package/build/server/chunks/nodes/14.js-S81xczxH.js +9 -0
  380. package/build/server/chunks/nodes/15.js-DpvHCVGB.js +63 -0
  381. package/build/server/chunks/nodes/16.js-BWStEOBD.js +66 -0
  382. package/build/server/chunks/nodes/17.js-gvgV2hER.js +64 -0
  383. package/build/server/chunks/nodes/18.js-CT7k54Ej.js +65 -0
  384. package/build/server/chunks/nodes/19.js-B9UtpBBj.js +64 -0
  385. package/build/server/chunks/nodes/2.js-Dbm7TfZ5.js +63 -0
  386. package/build/server/chunks/nodes/20.js-vT3xrxjL.js +24 -0
  387. package/build/server/chunks/nodes/21.js-BbXio736.js +25 -0
  388. package/build/server/chunks/nodes/22.js-BMPIZV2w.js +9 -0
  389. package/build/server/chunks/nodes/23.js-DxLM-Z83.js +25 -0
  390. package/build/server/chunks/nodes/24.js-CHEjlfCe.js +63 -0
  391. package/build/server/chunks/nodes/26.js-D4F01T28.js +64 -0
  392. package/build/server/chunks/nodes/27.js-SDmmboPo.js +63 -0
  393. package/build/server/chunks/nodes/28.js-BfB0OsO7.js +25 -0
  394. package/build/server/chunks/nodes/29.js-DmoRXmbF.js +63 -0
  395. package/build/server/chunks/nodes/3.js-CILuDxnn.js +9 -0
  396. package/build/server/chunks/nodes/30.js-qL8fMPlb.js +24 -0
  397. package/build/server/chunks/nodes/31.js-D8hKIBnL.js +22 -0
  398. package/build/server/chunks/nodes/32.js-opcnFZYn.js +63 -0
  399. package/build/server/chunks/nodes/33.js-DTBnnQEr.js +66 -0
  400. package/build/server/chunks/nodes/34.js-CN-lXIx7.js +65 -0
  401. package/build/server/chunks/nodes/35.js-leP1Nmab.js +26 -0
  402. package/build/server/chunks/nodes/36.js-BXVNTEuJ.js +65 -0
  403. package/build/server/chunks/nodes/37.js-BL1cJNDE.js +67 -0
  404. package/build/server/chunks/nodes/38.js-Ds4te6eT.js +64 -0
  405. package/build/server/chunks/nodes/39.js-fqFUZvsO.js +64 -0
  406. package/build/server/chunks/nodes/4.js-BeT-z_5E.js +64 -0
  407. package/build/server/chunks/nodes/40.js-WIor0bYG.js +63 -0
  408. package/build/server/chunks/nodes/5.js-Ns9cI3B2.js +63 -0
  409. package/build/server/chunks/nodes/7.js-BU21SoSq.js +63 -0
  410. package/build/server/chunks/nodes/8.js-XnRzynxm.js +14 -0
  411. package/build/server/chunks/nodes/9.js-Dw79X6qg.js +63 -0
  412. package/dist/cli.js +82 -81
  413. package/dist/wh-vault.js +1 -1
  414. package/firstmate-extension/firstmate-extension.json +1 -1
  415. package/package.json +1 -1
  416. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css +0 -1
  417. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.br +0 -0
  418. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.gz +0 -0
  419. package/build/client/_app/immutable/chunks/0emaOfOx.js +0 -7
  420. package/build/client/_app/immutable/chunks/0emaOfOx.js.br +0 -0
  421. package/build/client/_app/immutable/chunks/0emaOfOx.js.gz +0 -0
  422. package/build/client/_app/immutable/chunks/AATz5Vtc.js +0 -7
  423. package/build/client/_app/immutable/chunks/AATz5Vtc.js.br +0 -0
  424. package/build/client/_app/immutable/chunks/AATz5Vtc.js.gz +0 -0
  425. package/build/client/_app/immutable/chunks/B0ZphyID.js +0 -3
  426. package/build/client/_app/immutable/chunks/B0ZphyID.js.br +0 -0
  427. package/build/client/_app/immutable/chunks/B0ZphyID.js.gz +0 -0
  428. package/build/client/_app/immutable/chunks/BC_XNeHe.js +0 -1
  429. package/build/client/_app/immutable/chunks/BC_XNeHe.js.br +0 -0
  430. package/build/client/_app/immutable/chunks/BC_XNeHe.js.gz +0 -0
  431. package/build/client/_app/immutable/chunks/BPz1qeSs.js +0 -1
  432. package/build/client/_app/immutable/chunks/BPz1qeSs.js.br +0 -0
  433. package/build/client/_app/immutable/chunks/BPz1qeSs.js.gz +0 -0
  434. package/build/client/_app/immutable/chunks/BUI64CqJ.js +0 -1
  435. package/build/client/_app/immutable/chunks/BUI64CqJ.js.br +0 -0
  436. package/build/client/_app/immutable/chunks/BUI64CqJ.js.gz +0 -0
  437. package/build/client/_app/immutable/chunks/BYQm-VHb.js +0 -6
  438. package/build/client/_app/immutable/chunks/BYQm-VHb.js.br +0 -0
  439. package/build/client/_app/immutable/chunks/BYQm-VHb.js.gz +0 -0
  440. package/build/client/_app/immutable/chunks/B_GB-3Er.js +0 -1
  441. package/build/client/_app/immutable/chunks/B_GB-3Er.js.br +0 -0
  442. package/build/client/_app/immutable/chunks/B_GB-3Er.js.gz +0 -0
  443. package/build/client/_app/immutable/chunks/Bb5KMHGW.js +0 -1
  444. package/build/client/_app/immutable/chunks/Bb5KMHGW.js.br +0 -0
  445. package/build/client/_app/immutable/chunks/Bb5KMHGW.js.gz +0 -0
  446. package/build/client/_app/immutable/chunks/BgPPmbbW.js +0 -1
  447. package/build/client/_app/immutable/chunks/BgPPmbbW.js.br +0 -0
  448. package/build/client/_app/immutable/chunks/BgPPmbbW.js.gz +0 -0
  449. package/build/client/_app/immutable/chunks/BnWhj1AH.js +0 -2
  450. package/build/client/_app/immutable/chunks/BnWhj1AH.js.br +0 -0
  451. package/build/client/_app/immutable/chunks/BnWhj1AH.js.gz +0 -0
  452. package/build/client/_app/immutable/chunks/BrB0U8Br.js +0 -1
  453. package/build/client/_app/immutable/chunks/BrB0U8Br.js.br +0 -0
  454. package/build/client/_app/immutable/chunks/BrB0U8Br.js.gz +0 -0
  455. package/build/client/_app/immutable/chunks/CJfafoqX.js +0 -1
  456. package/build/client/_app/immutable/chunks/CJfafoqX.js.br +0 -0
  457. package/build/client/_app/immutable/chunks/CJfafoqX.js.gz +0 -0
  458. package/build/client/_app/immutable/chunks/CPV8trsz.js +0 -1
  459. package/build/client/_app/immutable/chunks/CPV8trsz.js.br +0 -0
  460. package/build/client/_app/immutable/chunks/CPV8trsz.js.gz +0 -0
  461. package/build/client/_app/immutable/chunks/CRG7D48i.js +0 -2
  462. package/build/client/_app/immutable/chunks/CRG7D48i.js.br +0 -0
  463. package/build/client/_app/immutable/chunks/CRG7D48i.js.gz +0 -0
  464. package/build/client/_app/immutable/chunks/CUWvH_Vt.js +0 -2
  465. package/build/client/_app/immutable/chunks/CUWvH_Vt.js.br +0 -0
  466. package/build/client/_app/immutable/chunks/CUWvH_Vt.js.gz +0 -0
  467. package/build/client/_app/immutable/chunks/CjDEH2t9.js +0 -1
  468. package/build/client/_app/immutable/chunks/CjDEH2t9.js.br +0 -2
  469. package/build/client/_app/immutable/chunks/CjDEH2t9.js.gz +0 -0
  470. package/build/client/_app/immutable/chunks/CjSftIOB.js +0 -6
  471. package/build/client/_app/immutable/chunks/CjSftIOB.js.br +0 -0
  472. package/build/client/_app/immutable/chunks/CjSftIOB.js.gz +0 -0
  473. package/build/client/_app/immutable/chunks/CpMvc8EL.js +0 -3
  474. package/build/client/_app/immutable/chunks/CpMvc8EL.js.br +0 -0
  475. package/build/client/_app/immutable/chunks/CpMvc8EL.js.gz +0 -0
  476. package/build/client/_app/immutable/chunks/D2pY9EPU.js +0 -1
  477. package/build/client/_app/immutable/chunks/D2pY9EPU.js.br +0 -0
  478. package/build/client/_app/immutable/chunks/D2pY9EPU.js.gz +0 -0
  479. package/build/client/_app/immutable/chunks/DI6U75Wo.js +0 -1
  480. package/build/client/_app/immutable/chunks/DI6U75Wo.js.br +0 -0
  481. package/build/client/_app/immutable/chunks/DI6U75Wo.js.gz +0 -0
  482. package/build/client/_app/immutable/chunks/DNA9TJ3s.js +0 -1
  483. package/build/client/_app/immutable/chunks/DNA9TJ3s.js.br +0 -0
  484. package/build/client/_app/immutable/chunks/DNA9TJ3s.js.gz +0 -0
  485. package/build/client/_app/immutable/chunks/DTpgmq3M.js +0 -5
  486. package/build/client/_app/immutable/chunks/DTpgmq3M.js.br +0 -0
  487. package/build/client/_app/immutable/chunks/DTpgmq3M.js.gz +0 -0
  488. package/build/client/_app/immutable/chunks/Do9MI93T.js +0 -8
  489. package/build/client/_app/immutable/chunks/Do9MI93T.js.br +0 -0
  490. package/build/client/_app/immutable/chunks/Do9MI93T.js.gz +0 -0
  491. package/build/client/_app/immutable/chunks/Fr_QipqL.js +0 -3
  492. package/build/client/_app/immutable/chunks/Fr_QipqL.js.br +0 -0
  493. package/build/client/_app/immutable/chunks/Fr_QipqL.js.gz +0 -0
  494. package/build/client/_app/immutable/chunks/K8k-G-JQ.js +0 -4
  495. package/build/client/_app/immutable/chunks/K8k-G-JQ.js.br +0 -0
  496. package/build/client/_app/immutable/chunks/K8k-G-JQ.js.gz +0 -0
  497. package/build/client/_app/immutable/chunks/Z_T9JZ0p.js +0 -1
  498. package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.br +0 -0
  499. package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.gz +0 -0
  500. package/build/client/_app/immutable/chunks/jQN7UPrf.js +0 -1
  501. package/build/client/_app/immutable/chunks/jQN7UPrf.js.br +0 -0
  502. package/build/client/_app/immutable/chunks/jQN7UPrf.js.gz +0 -0
  503. package/build/client/_app/immutable/chunks/m9V6PYwh.js +0 -1
  504. package/build/client/_app/immutable/chunks/m9V6PYwh.js.br +0 -0
  505. package/build/client/_app/immutable/chunks/m9V6PYwh.js.gz +0 -0
  506. package/build/client/_app/immutable/entry/app.B9en0bhu.js +0 -2
  507. package/build/client/_app/immutable/entry/app.B9en0bhu.js.br +0 -0
  508. package/build/client/_app/immutable/entry/app.B9en0bhu.js.gz +0 -0
  509. package/build/client/_app/immutable/entry/start.C2j_2z1u.js +0 -1
  510. package/build/client/_app/immutable/entry/start.C2j_2z1u.js.br +0 -0
  511. package/build/client/_app/immutable/entry/start.C2j_2z1u.js.gz +0 -0
  512. package/build/client/_app/immutable/nodes/0.C0ZSel0O.js +0 -9
  513. package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.br +0 -0
  514. package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.gz +0 -0
  515. package/build/client/_app/immutable/nodes/1.BCCTjiZm.js +0 -1
  516. package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.br +0 -0
  517. package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.gz +0 -0
  518. package/build/client/_app/immutable/nodes/10.o5Se6edN.js +0 -9
  519. package/build/client/_app/immutable/nodes/10.o5Se6edN.js.br +0 -0
  520. package/build/client/_app/immutable/nodes/10.o5Se6edN.js.gz +0 -0
  521. package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js +0 -2
  522. package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.br +0 -0
  523. package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.gz +0 -0
  524. package/build/client/_app/immutable/nodes/12.BChGCUWY.js +0 -6
  525. package/build/client/_app/immutable/nodes/12.BChGCUWY.js.br +0 -0
  526. package/build/client/_app/immutable/nodes/12.BChGCUWY.js.gz +0 -0
  527. package/build/client/_app/immutable/nodes/13.D1iQQlaj.js +0 -1
  528. package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.br +0 -0
  529. package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.gz +0 -0
  530. package/build/client/_app/immutable/nodes/14.B-f98he1.js +0 -10
  531. package/build/client/_app/immutable/nodes/14.B-f98he1.js.br +0 -0
  532. package/build/client/_app/immutable/nodes/14.B-f98he1.js.gz +0 -0
  533. package/build/client/_app/immutable/nodes/15.CAZAUO5E.js +0 -1
  534. package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.br +0 -0
  535. package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.gz +0 -0
  536. package/build/client/_app/immutable/nodes/16.C_HhXPiU.js +0 -3
  537. package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.br +0 -0
  538. package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.gz +0 -0
  539. package/build/client/_app/immutable/nodes/17.CwSSNP0A.js +0 -1
  540. package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.br +0 -0
  541. package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.gz +0 -0
  542. package/build/client/_app/immutable/nodes/18.D0_QQFbK.js +0 -14
  543. package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.br +0 -0
  544. package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.gz +0 -0
  545. package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js +0 -150
  546. package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.br +0 -0
  547. package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.gz +0 -0
  548. package/build/client/_app/immutable/nodes/2.BXQoi4t7.js +0 -40
  549. package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.br +0 -0
  550. package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.gz +0 -0
  551. package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js +0 -25
  552. package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.br +0 -0
  553. package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.gz +0 -0
  554. package/build/client/_app/immutable/nodes/21.BUDY7k1-.js +0 -5
  555. package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.br +0 -0
  556. package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.gz +0 -0
  557. package/build/client/_app/immutable/nodes/22.B1LeXopM.js +0 -18
  558. package/build/client/_app/immutable/nodes/22.B1LeXopM.js.br +0 -0
  559. package/build/client/_app/immutable/nodes/22.B1LeXopM.js.gz +0 -0
  560. package/build/client/_app/immutable/nodes/24.Bs2sEub2.js +0 -4
  561. package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.br +0 -0
  562. package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.gz +0 -0
  563. package/build/client/_app/immutable/nodes/26.CGTSTlhG.js +0 -6
  564. package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.br +0 -0
  565. package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.gz +0 -0
  566. package/build/client/_app/immutable/nodes/27.CugI13rk.js +0 -8
  567. package/build/client/_app/immutable/nodes/27.CugI13rk.js.br +0 -0
  568. package/build/client/_app/immutable/nodes/27.CugI13rk.js.gz +0 -0
  569. package/build/client/_app/immutable/nodes/28.BAkIuprz.js +0 -2
  570. package/build/client/_app/immutable/nodes/28.BAkIuprz.js.br +0 -0
  571. package/build/client/_app/immutable/nodes/28.BAkIuprz.js.gz +0 -0
  572. package/build/client/_app/immutable/nodes/29.CpVvRJy8.js +0 -5
  573. package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.br +0 -0
  574. package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.gz +0 -0
  575. package/build/client/_app/immutable/nodes/3.BV5EWo9M.js +0 -2
  576. package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.br +0 -0
  577. package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.gz +0 -0
  578. package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js +0 -4
  579. package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.br +0 -0
  580. package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.gz +0 -0
  581. package/build/client/_app/immutable/nodes/31.YPk2HgGn.js +0 -3
  582. package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.br +0 -0
  583. package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.gz +0 -0
  584. package/build/client/_app/immutable/nodes/32.3AVLrUzC.js +0 -7
  585. package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.br +0 -0
  586. package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.gz +0 -0
  587. package/build/client/_app/immutable/nodes/33.DGIbo_U8.js +0 -2
  588. package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.br +0 -0
  589. package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.gz +0 -0
  590. package/build/client/_app/immutable/nodes/34.YeJA6wco.js +0 -4
  591. package/build/client/_app/immutable/nodes/34.YeJA6wco.js.br +0 -0
  592. package/build/client/_app/immutable/nodes/34.YeJA6wco.js.gz +0 -0
  593. package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js +0 -7
  594. package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.br +0 -0
  595. package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.gz +0 -0
  596. package/build/client/_app/immutable/nodes/36.gdjsdStK.js +0 -6
  597. package/build/client/_app/immutable/nodes/36.gdjsdStK.js.br +0 -0
  598. package/build/client/_app/immutable/nodes/36.gdjsdStK.js.gz +0 -0
  599. package/build/client/_app/immutable/nodes/37.DxIvHmCS.js +0 -23
  600. package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.br +0 -0
  601. package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.gz +0 -0
  602. package/build/client/_app/immutable/nodes/38.DkRJewhg.js +0 -1
  603. package/build/client/_app/immutable/nodes/38.DkRJewhg.js.br +0 -1
  604. package/build/client/_app/immutable/nodes/38.DkRJewhg.js.gz +0 -0
  605. package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js +0 -5
  606. package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.br +0 -0
  607. package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.gz +0 -0
  608. package/build/client/_app/immutable/nodes/40.D1gVZSsj.js +0 -6
  609. package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.br +0 -0
  610. package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.gz +0 -0
  611. package/build/client/_app/immutable/nodes/5.BT_2Zols.js +0 -1
  612. package/build/client/_app/immutable/nodes/5.BT_2Zols.js.br +0 -0
  613. package/build/client/_app/immutable/nodes/5.BT_2Zols.js.gz +0 -0
  614. package/build/client/_app/immutable/nodes/8.BWBS7lOw.js +0 -3
  615. package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.br +0 -0
  616. package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.gz +0 -0
  617. package/build/client/_app/immutable/nodes/9.bYRuhKZc.js +0 -10
  618. package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.br +0 -0
  619. package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.gz +0 -0
  620. package/build/server/chunks/chunks/DecisionForm.js-BFfq6cr6.js +0 -246
  621. package/build/server/chunks/chunks/DecisionsBadge.js-CGVFdHf9.js +0 -78
  622. package/build/server/chunks/chunks/Discussion.js-D7IFpGpa.js +0 -581
  623. package/build/server/chunks/chunks/ResizableRail.js-DYHpZhCB.js +0 -864
  624. package/build/server/chunks/chunks/TaskView.js-CK9biTfX.js +0 -3015
  625. package/build/server/chunks/chunks/bell.js-M4cNe9Wo.js +0 -194
  626. package/build/server/chunks/chunks/chat.svelte.js-vT8qTWLG.js +0 -417
  627. package/build/server/chunks/chunks/decisionhome.js-CHke-Aet.js +0 -311
  628. package/build/server/chunks/chunks/detail.js-DzX_zEkI.js +0 -149
  629. package/build/server/chunks/chunks/features.js-B2GRQeLG.js +0 -181
  630. package/build/server/chunks/chunks/feedback.js-BmnlQB1X.js +0 -67
  631. package/build/server/chunks/chunks/handled.js-m3RTMfxd.js +0 -20
  632. package/build/server/chunks/chunks/inbox.js-CxcuKYoV.js +0 -222
  633. package/build/server/chunks/chunks/insights.svelte.js-CcEJoKQH.js +0 -567
  634. package/build/server/chunks/chunks/internal.js-Bwnrl13Q.js +0 -151
  635. package/build/server/chunks/chunks/marketplace-service.js-BwjByFH7.js +0 -557
  636. package/build/server/chunks/chunks/ondeck.js-BLhFZI2l.js +0 -119
  637. package/build/server/chunks/chunks/package.js-BWopDYsw.js +0 -160
  638. package/build/server/chunks/chunks/page.js-C9qsE1U6.js +0 -13
  639. package/build/server/chunks/chunks/previewhelper2.js-Bro5Kyoe.js +0 -210
  640. package/build/server/chunks/chunks/repo.js-Du-fw6dp.js +0 -33
  641. package/build/server/chunks/chunks/runtime.js-B79JnWK2.js +0 -25642
  642. package/build/server/chunks/chunks/scribe.js-Dwxy2NkA.js +0 -1376
  643. package/build/server/chunks/chunks/service.js-rmCdUjBa.js +0 -1339
  644. package/build/server/chunks/chunks/service2.js-CuVjzjMp.js +0 -835
  645. package/build/server/chunks/chunks/service3.js-B_AwjFXe.js +0 -234
  646. package/build/server/chunks/chunks/sessions.js-DGHSwMvs.js +0 -519
  647. package/build/server/chunks/chunks/settings.js-84gUkx7e.js +0 -379
  648. package/build/server/chunks/chunks/starter.js-Bk0e4tp1.js +0 -400
  649. package/build/server/chunks/chunks/store.js-m6116Gee.js +0 -332
  650. package/build/server/chunks/chunks/tmux.js-iKfXN6X8.js +0 -450
  651. package/build/server/chunks/chunks/tools.js-B9Uzu0OB.js +0 -156
  652. package/build/server/chunks/chunks/uploads.js-Dj8oL0YP.js +0 -107
  653. package/build/server/chunks/chunks/view.js-CdbC9u-X.js +0 -76
  654. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DSbkbcih.js +0 -112
  655. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Cuh4l5cX.js +0 -111
  656. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CxqjNz9K.js +0 -59
  657. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BOkqzAso.js +0 -75
  658. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-DqWeZDnx.js +0 -79
  659. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Dp6d92o1.js +0 -154
  660. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CjMBduD9.js +0 -56
  661. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-sHIaJYuD.js +0 -71
  662. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DVLiAZXm.js +0 -107
  663. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-bcOD-UAG.js +0 -83
  664. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-XIdGfksa.js +0 -73
  665. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dvo2WaVg.js +0 -66
  666. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BFzvnUDG.js +0 -66
  667. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CZFPUyv7.js +0 -67
  668. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-xwvYiN0P.js +0 -73
  669. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-R8e7z94R.js +0 -66
  670. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BgE6HXps.js +0 -115
  671. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-CXfwTb-v.js +0 -76
  672. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DqS1e_EW.js +0 -87
  673. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-jf8PJ-20.js +0 -75
  674. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Cm3ek5GT.js +0 -66
  675. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-Csr4uwPB.js +0 -32
  676. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-A7LEzpUQ.js +0 -40
  677. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Dxmd5sWA.js +0 -58
  678. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DdE-9v71.js +0 -58
  679. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-uZjy2F7t.js +0 -85
  680. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-DY1h0w69.js +0 -83
  681. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-C2OsWqIH.js +0 -76
  682. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-8DtekGgO.js +0 -168
  683. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Ba_gA_kn.js +0 -58
  684. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-knOqja0e.js +0 -87
  685. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-Dk_70OY8.js +0 -68
  686. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CMCc7usd.js +0 -23
  687. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-BnIiNLLM.js +0 -26
  688. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-58SJEI-H.js +0 -96
  689. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-ClesSc9w.js +0 -69
  690. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-DpVQ0-gU.js +0 -118
  691. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-CDCEHZ2F.js +0 -72
  692. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-bXndbXtD.js +0 -93
  693. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-GqjxRGNr.js +0 -82
  694. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BIcthzJl.js +0 -77
  695. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-CDsa251C.js +0 -74
  696. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BXha7rBL.js +0 -27
  697. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-CglpfA_i.js +0 -81
  698. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DY6GpUvU.js +0 -39
  699. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CezMnMxX.js +0 -58
  700. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-n8aIgwiW.js +0 -39
  701. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Brc3Rir_.js +0 -42
  702. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-D_PpU_IB.js +0 -63
  703. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-wdUFeQpc.js +0 -72
  704. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CUvFLTtL.js +0 -69
  705. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-Di-7UkP0.js +0 -73
  706. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-GNyM42L2.js +0 -27
  707. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-RsBtJkWF.js +0 -81
  708. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-TUH5OYFz.js +0 -63
  709. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Bl5DdXd_.js +0 -72
  710. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8gJ1LMd2.js +0 -84
  711. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-lfPXl0y_.js +0 -71
  712. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-wnnWrfJX.js +0 -94
  713. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B2MBCiL5.js +0 -77
  714. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-C55ehr6a.js +0 -473
  715. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BH29IQL1.js +0 -88
  716. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-D-isqamt.js +0 -67
  717. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CQIibVRV.js +0 -77
  718. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-Cw9ILP_Q.js +0 -137
  719. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-BWgNfggv.js +0 -66
  720. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DsKFgPLd.js +0 -80
  721. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CAU01lOe.js +0 -66
  722. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BtLUIQuT.js +0 -69
  723. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CTQDnPYZ.js +0 -63
  724. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-KEGfpYIz.js +0 -82
  725. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-COkOxJYB.js +0 -109
  726. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-DVL8enNe.js +0 -75
  727. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-B31-eql9.js +0 -104
  728. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DlNfcbxs.js +0 -123
  729. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-xItkzpp3.js +0 -77
  730. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-V8xFvJTX.js +0 -80
  731. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DDRIjDs2.js +0 -81
  732. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-CPKTJr6D.js +0 -24
  733. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BtxwuwK2.js +0 -31
  734. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-Bl6WY6lX.js +0 -33
  735. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-BvEexih3.js +0 -93
  736. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-Cpw5TIJt.js +0 -40
  737. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BtiKFkKo.js +0 -27
  738. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-Bd8mHvHa.js +0 -27
  739. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DceVA1-i.js +0 -82
  740. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DlIQzyEF.js +0 -62
  741. package/build/server/chunks/entries/hooks.server.js-DrCOEIuz.js +0 -104
  742. package/build/server/chunks/entries/pages/_layout.server.ts.js-RXTNXalN.js +0 -54
  743. package/build/server/chunks/entries/pages/_layout.svelte.js-Bnx1zQNz.js +0 -6028
  744. package/build/server/chunks/entries/pages/_page.server.ts.js-CNkzwH65.js +0 -16
  745. package/build/server/chunks/entries/pages/_page.svelte.js-CEPxPR_I.js +0 -5810
  746. package/build/server/chunks/entries/pages/crew/_page.svelte.js-sAcZ9qNG.js +0 -115
  747. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-C0FE960w.js +0 -14
  748. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-zZ9qO_dt.js +0 -16
  749. package/build/server/chunks/entries/pages/deck/_page.svelte.js-u1WdGQom.js +0 -93
  750. package/build/server/chunks/entries/pages/files/_page.server.ts.js-DKnSppph.js +0 -17
  751. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Git6SUxW.js +0 -11
  752. package/build/server/chunks/entries/pages/health/_page.server.ts.js-CF0wP4Jt.js +0 -16
  753. package/build/server/chunks/entries/pages/health/_page.svelte.js-DA7MoO-y.js +0 -517
  754. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DMrngf0O.js +0 -18
  755. package/build/server/chunks/entries/pages/inbox/_page.svelte.js--GRUWFc_.js +0 -653
  756. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-B4GqGgPh.js +0 -16
  757. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-DIXpFWB4.js +0 -23
  758. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CErk9FDM.js +0 -21
  759. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-b1Pl3BCW.js +0 -27
  760. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-BWXtnM6f.js +0 -15
  761. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-COOUFJWd.js +0 -11
  762. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DePfcsb_.js +0 -13
  763. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-djAsookJ.js +0 -12
  764. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-BF6kG2B5.js +0 -18
  765. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-B6uTAGl9.js +0 -19
  766. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-STPv_aQR.js +0 -16
  767. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9yV2bD6.js +0 -15
  768. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BQJtnh5-.js +0 -797
  769. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-V4uJeIzJ.js +0 -11
  770. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DlHvnbaR.js +0 -19
  771. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DD6EulII.js +0 -17
  772. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BdlfVJUR.js +0 -11
  773. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-D024t04u.js +0 -11
  774. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-CqU-yzLn.js +0 -15
  775. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bl3_Glym.js +0 -18
  776. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D1YzGPKz.js +0 -36
  777. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dm62wxMH.js +0 -112
  778. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BXQ0X1ko.js +0 -24
  779. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CzXN68NU.js +0 -11
  780. package/build/server/chunks/handler-Bn1fUv6B.js +0 -1474
  781. package/build/server/chunks/index.js-Mx2dDARn.js +0 -4296
  782. package/build/server/chunks/manifest.js-B-YEp54X.js +0 -969
  783. package/build/server/chunks/nodes/0.js-BUBiSzRS.js +0 -66
  784. package/build/server/chunks/nodes/1.js-BLJ7Klm0.js +0 -9
  785. package/build/server/chunks/nodes/10.js-CtrWc2wn.js +0 -65
  786. package/build/server/chunks/nodes/11.js-DJ3Gaern.js +0 -64
  787. package/build/server/chunks/nodes/12.js-pLEUUewd.js +0 -12
  788. package/build/server/chunks/nodes/13.js-hX0iR3ZH.js +0 -9
  789. package/build/server/chunks/nodes/14.js-CGtz8B7y.js +0 -9
  790. package/build/server/chunks/nodes/15.js-8RVQO15R.js +0 -63
  791. package/build/server/chunks/nodes/16.js-D7bYd07V.js +0 -66
  792. package/build/server/chunks/nodes/17.js-DhdPdpU0.js +0 -64
  793. package/build/server/chunks/nodes/18.js-B0V_uhB9.js +0 -65
  794. package/build/server/chunks/nodes/19.js-CmWOSZcm.js +0 -64
  795. package/build/server/chunks/nodes/2.js-CLB-XV4H.js +0 -63
  796. package/build/server/chunks/nodes/20.js-Bv8mf2k9.js +0 -24
  797. package/build/server/chunks/nodes/21.js-Cj-sht45.js +0 -25
  798. package/build/server/chunks/nodes/22.js-BMWD13bW.js +0 -9
  799. package/build/server/chunks/nodes/23.js-BFPu5J7m.js +0 -25
  800. package/build/server/chunks/nodes/24.js-DmRx7lma.js +0 -63
  801. package/build/server/chunks/nodes/26.js-BzmxsP0K.js +0 -64
  802. package/build/server/chunks/nodes/27.js-BOBLm3Xv.js +0 -63
  803. package/build/server/chunks/nodes/28.js--5lcdSOl.js +0 -25
  804. package/build/server/chunks/nodes/29.js-BpFLyOWJ.js +0 -63
  805. package/build/server/chunks/nodes/3.js-B93UtyJs.js +0 -9
  806. package/build/server/chunks/nodes/30.js-B4DJpQXi.js +0 -24
  807. package/build/server/chunks/nodes/31.js-DOOOaYTt.js +0 -22
  808. package/build/server/chunks/nodes/32.js-BY7fFTcK.js +0 -63
  809. package/build/server/chunks/nodes/33.js-3D_1qIJ2.js +0 -66
  810. package/build/server/chunks/nodes/34.js-BYRFhIDN.js +0 -65
  811. package/build/server/chunks/nodes/35.js-CfsTfMZd.js +0 -26
  812. package/build/server/chunks/nodes/36.js-BLSBbLWX.js +0 -65
  813. package/build/server/chunks/nodes/37.js-D97cum02.js +0 -67
  814. package/build/server/chunks/nodes/38.js-DmCNtoo5.js +0 -64
  815. package/build/server/chunks/nodes/39.js-zevF1xrn.js +0 -64
  816. package/build/server/chunks/nodes/4.js-DkEAmKO9.js +0 -64
  817. package/build/server/chunks/nodes/40.js-9ki1tEOB.js +0 -63
  818. package/build/server/chunks/nodes/5.js-0Xrkj28g.js +0 -63
  819. package/build/server/chunks/nodes/7.js-BwbHOQcn.js +0 -63
  820. package/build/server/chunks/nodes/8.js-3pWfDfVU.js +0 -14
  821. package/build/server/chunks/nodes/9.js-BgyqCMp-.js +0 -63
@@ -1,1376 +0,0 @@
1
- import http from 'node:http';
2
- import net from 'node:net';
3
- import { promisify } from 'node:util';
4
- import zlib from 'node:zlib';
5
- import { l as loopbackPreview } from './preview.js-CbgkVvT_.js';
6
- import { mkdir, writeFile } from 'node:fs/promises';
7
- import path from 'node:path';
8
- import { P as PACK_SYSTEM, a as PACK_SCHEMA, p as packPrompt, r as readPack, R as REPLY_SYSTEM, b as REPLY_SCHEMA, c as replyPrompt, d as readAnswer, N as NOTES_SYSTEM, e as NOTES_SCHEMA, n as notesPrompt, f as readNotes } from './livereview.js-BJxqrnBd.js';
9
- import { g as getRuntime, A as parseMateTaskId } from './runtime.js-B79JnWK2.js';
10
- import { runHelper } from './previewhelper2.js-Bro5Kyoe.js';
11
- import { d as defaultStateDir } from './store.js-m6116Gee.js';
12
- import { r as runBounded, w as which } from './tmux.js-iKfXN6X8.js';
13
-
14
- const recorderSource = `// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- a plain browser script, served as is into the page under review
15
- // @ts-nocheck
16
- /*
17
- * The live review recorder (see lib/livereview.ts and proxy.ts). This runs in
18
- * the browser, not on the server: Wheelhouse's proxy serves it into every
19
- * page of a preview it shows for a live review, with __WHEELHOUSE_ORIGIN__
20
- * replaced by Wheelhouse's origin, the only origin it talks to, and
21
- * __WHEELHOUSE_REVIEW__ by the task under review. It exists only in that
22
- * proxied copy: nothing of it is in the project's files or its build.
23
- *
24
- * The captain uses the page itself, full screen. The recorder adds, over it,
25
- * a small floating button (it can be dragged out of the way) that opens the
26
- * review's panel: Wheelhouse's own page for the session (/live-review/<task>),
27
- * framed beside the button, where the captain comments, starts a live
28
- * discussion with the scribe and ends with Done. While the session records,
29
- * the recorder reports what the captain does to that panel (postMessage):
30
- * clicks, page changes, typing (masked by default), choices, console errors,
31
- * failed requests, scrolling and what the pointer is over. It forwards the
32
- * talk key (Space held for 2 seconds) so push-to-talk works while the page has focus, lets the
33
- * captain pick a part of the page to comment on, takes a screenshot of what is
34
- * in view when asked, and shows on the button whether it is recording. It
35
- * sends nothing anywhere else and records nothing until the panel says so.
36
- */
37
- (() => {
38
- const PARENT = '__WHEELHOUSE_ORIGIN__';
39
- const REVIEW = '__WHEELHOUSE_REVIEW__';
40
- // Only the page itself (not a frame inside it), and only a copy made for a review.
41
- if (window.__whRecorder || window.top !== window || !REVIEW || typeof REVIEW !== 'object') return;
42
- window.__whRecorder = true;
43
-
44
- let recording = false;
45
- let mask = true;
46
- let ready = false;
47
- let queued = [];
48
- let panel = null;
49
- // The tab's title says it is a preview, so it is never taken for the real app (see marked()).
50
- const MARK = '◉ Preview · ';
51
- const pageTitle = () =>
52
- document.title.startsWith(MARK) ? document.title.slice(MARK.length) : document.title;
53
- const send = (type, data = {}) => {
54
- const m = { __wh: 1, type, url: location.href, title: pageTitle(), ...data };
55
- if (!ready || !panel || !panel.contentWindow) {
56
- // Before the panel has loaded: only the latest of each kind waits for it.
57
- queued = queued.filter((q) => q.type !== type || type === 'error').concat(m);
58
- return;
59
- }
60
- panel.contentWindow.postMessage(m, PARENT);
61
- };
62
-
63
- /* ---------------------------------------------------- naming what was used */
64
-
65
- const tidy = (s) => (s || '').replace(/\\s+/g, ' ').trim();
66
- const cut = (s, n) => (s.length > n ? s.slice(0, n - 1).trimEnd() + '…' : s);
67
- const NOUN = {
68
- button: 'button',
69
- a: 'link',
70
- input: 'box',
71
- textarea: 'box',
72
- select: 'menu',
73
- img: 'picture',
74
- h1: 'heading',
75
- h2: 'heading',
76
- h3: 'heading',
77
- h4: 'heading',
78
- label: 'label',
79
- li: 'item',
80
- summary: 'toggle',
81
- td: 'cell',
82
- th: 'column heading',
83
- nav: 'menu'
84
- };
85
- const NEAR =
86
- 'button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, summary, [role="button"], [role="tab"], [role="menuitem"], [role="option"], [role="checkbox"], [role="switch"], td, th';
87
-
88
- // The words a person would use for it: the first line of its visible text (a card's title, not all of it).
89
- function firstLine(el) {
90
- const lines = (el.innerText || el.textContent || '')
91
- .split('\\n')
92
- .map((l) => l.replace(/^[^\\p{L}\\p{N}]+/u, '').trim())
93
- .filter((l) => /\\p{L}/u.test(l));
94
- return lines[0] || '';
95
- }
96
-
97
- function described(raw) {
98
- const el = raw && raw.closest ? raw.closest(NEAR) || raw : raw;
99
- if (!el || el === document.body || el === document.documentElement) return null;
100
- const tag = el.tagName.toLowerCase();
101
- const role = el.getAttribute('role');
102
- const type = (el.getAttribute('type') || '').toLowerCase();
103
- let noun =
104
- role === 'tab'
105
- ? 'tab'
106
- : role === 'button'
107
- ? 'button'
108
- : role === 'menuitem'
109
- ? 'menu item'
110
- : role === 'checkbox' || type === 'checkbox'
111
- ? 'tick box'
112
- : role === 'switch'
113
- ? 'switch'
114
- : type === 'radio'
115
- ? 'option'
116
- : NOUN[tag] || 'part of the page';
117
- const labelFor = el.id && document.querySelector(\`label[for="\${CSS.escape(el.id)}"]\`);
118
- const secret =
119
- type === 'password' || /pass|secret|token|card|cvc|ssn/i.test(el.name || el.id || '');
120
- const words = cut(
121
- tidy(
122
- el.getAttribute('aria-label') ||
123
- (labelFor && labelFor.textContent) ||
124
- el.getAttribute('placeholder') ||
125
- el.getAttribute('alt') ||
126
- el.getAttribute('title') ||
127
- (tag === 'input' || tag === 'textarea' ? '' : firstLine(el)) ||
128
- (tag === 'input' && ['button', 'submit'].includes(type) ? el.value : '')
129
- ),
130
- 60
131
- );
132
- const r = el.getBoundingClientRect();
133
- return {
134
- label: words ? \`the “\${words}” \${noun}\` : \`a \${noun}\`,
135
- tag,
136
- text: words,
137
- secret,
138
- selector: selectorOf(el),
139
- rect: { x: r.left, y: r.top, w: r.width, h: r.height }
140
- };
141
- }
142
-
143
- function selectorOf(el) {
144
- const parts = [];
145
- for (let n = el; n && n.nodeType === 1 && parts.length < 4; n = n.parentElement) {
146
- if (n.id && !/\\d{3,}/.test(n.id)) {
147
- parts.unshift(\`#\${CSS.escape(n.id)}\`);
148
- break;
149
- }
150
- const test = n.getAttribute('data-testid');
151
- if (test) {
152
- parts.unshift(\`[data-testid="\${test}"]\`);
153
- break;
154
- }
155
- let s = n.tagName.toLowerCase();
156
- const cls = [...n.classList]
157
- .filter((c) => !/^(is-|has-|active|open|hover|focus)/.test(c))
158
- .slice(0, 2);
159
- if (cls.length) s += '.' + cls.map((c) => CSS.escape(c)).join('.');
160
- const p = n.parentElement;
161
- if (p) {
162
- const same = [...p.children].filter((c) => c.tagName === n.tagName);
163
- if (same.length > 1) s += \`:nth-of-type(\${same.indexOf(n) + 1})\`;
164
- }
165
- parts.unshift(s);
166
- }
167
- return parts.join(' > ');
168
- }
169
-
170
- const viewport = () => ({ vw: innerWidth, vh: innerHeight });
171
-
172
- /* ------------------------------------------- the floating button and panel */
173
-
174
- const store = {
175
- get(k) {
176
- try {
177
- return JSON.parse(sessionStorage.getItem('wh-live-review:' + k) || 'null');
178
- } catch {
179
- return null;
180
- }
181
- },
182
- set(k, v) {
183
- try {
184
- sessionStorage.setItem('wh-live-review:' + k, JSON.stringify(v));
185
- } catch {
186
- // storage refused: it is only where the button sits and whether the panel is open
187
- }
188
- }
189
- };
190
-
191
- const host = document.createElement('div');
192
- host.setAttribute('data-wh-recorder', '');
193
- host.style.cssText = 'all:initial;position:fixed;inset:0;pointer-events:none;z-index:2147483647';
194
- const shadow = host.attachShadow({ mode: 'open' });
195
- // Wheelhouse's own look (its design tokens: ink, ivory, brass; DM Sans), calm over any page.
196
- shadow.innerHTML = \`<style>
197
- *{box-sizing:border-box}
198
- :host{--ink:#121a23;--ink2:#1b2633;--ivory:#f6f4ee;--line:rgba(246,244,238,.14);--soft:#a7b0ba;
199
- --brass:#e8b04a;--brass-ink:#a87412;font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,sans-serif}
200
- [hidden]{display:none!important}
201
- .btn,.tip,.tl,.area span{font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
202
- -webkit-font-smoothing:antialiased}
203
- button{all:unset;box-sizing:border-box;cursor:pointer;font:inherit}
204
- button:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
205
- .btn{position:fixed;display:flex;align-items:center;gap:4px;padding:4px;border-radius:12px;pointer-events:auto;
206
- background:var(--ink);color:var(--ivory);font-size:13px;font-weight:500;line-height:1;
207
- box-shadow:0 10px 30px rgba(18,26,35,.28),0 0 0 1px var(--line);touch-action:none;user-select:none;-webkit-user-select:none}
208
- .btn button{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 10px;border-radius:9px}
209
- .btn button:hover{background:var(--ink2)}
210
- .btn.drag{cursor:grabbing}
211
- .dot{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--brass);display:grid;place-items:center;flex:none}
212
- .dot i{width:6px;height:6px;border-radius:50%;background:var(--brass)}
213
- .rec .dot i,.talk .dot i{animation:p 1.6s infinite}
214
- .talk .dot i{animation-duration:.8s}
215
- .paused .dot i{background:var(--soft);animation:none}
216
- @keyframes p{0%{box-shadow:0 0 0 0 rgba(232,176,74,.55)}70%{box-shadow:0 0 0 7px rgba(232,176,74,0)}100%{box-shadow:0 0 0 0 rgba(232,176,74,0)}}
217
- .clock{font:500 12px/1 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--soft);font-variant-numeric:tabular-nums}
218
- .done{background:var(--ivory)!important;color:var(--ink);font-weight:600;padding:0 12px!important}
219
- .done:hover{background:#fff!important}
220
- .done b{width:9px;height:9px;border-radius:2px;background:var(--ink)}
221
- .quick{background:var(--ivory)!important;color:var(--ink);font-weight:600;font-size:15px;height:44px!important;padding:0 18px 0 14px!important}
222
- .quick b{width:12px;height:12px;border-radius:50%;background:var(--brass-ink)}
223
- .quick.on b{border-radius:3px;background:var(--ink)}
224
- .phone .open{height:44px;width:44px;padding:0!important;justify-content:center}
225
- .phone .open .lbl,.phone .open .clock{display:none}
226
- .panel{position:fixed;border-radius:14px;overflow:hidden;pointer-events:auto;background:var(--ink);
227
- box-shadow:0 18px 60px rgba(18,26,35,.32),0 0 0 1px rgba(18,26,35,.14);transition:opacity .18s ease,transform .18s ease}
228
- .panel.shut{opacity:0;transform:translateY(8px) scale(.98);pointer-events:none;visibility:hidden}
229
- .panel iframe{display:block;width:100%;height:100%;border:0;background:transparent}
230
- .tip{position:fixed;left:50%;top:40px;transform:translateX(-50%);max-width:calc(100vw - 24px);display:flex;align-items:center;gap:14px;
231
- padding:10px 12px 10px 16px;border-radius:12px;pointer-events:auto;background:var(--ink);color:var(--ivory);font-size:14px;line-height:1.3;
232
- box-shadow:0 10px 30px rgba(18,26,35,.28)}
233
- .tip button{color:var(--brass);font-weight:600;white-space:nowrap;padding:4px 6px;border-radius:6px}
234
- .ripple{position:fixed;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:2px solid var(--brass);animation:r .6s ease-out forwards}
235
- @keyframes r{from{transform:scale(.3);opacity:1}to{transform:scale(1.4);opacity:0}}
236
- .hl{position:fixed;border:2px solid var(--brass);border-radius:4px;transition:all .12s;opacity:0;pointer-events:none}
237
- .hl.on{opacity:1}
238
- .hl.pick{background:rgba(232,176,74,.12)}
239
- .layer{position:fixed;inset:0;pointer-events:auto;cursor:crosshair;background:rgba(18,26,35,.32);touch-action:none}
240
- .layer.drawing{background:transparent}
241
- .area{position:fixed;border:2px solid var(--brass);border-radius:6px;background:rgba(232,176,74,.08);pointer-events:none}
242
- .area.live{box-shadow:0 0 0 100vmax rgba(18,26,35,.38)}
243
- .area span{position:absolute;top:-11px;left:-11px;width:22px;height:22px;border-radius:50%;background:var(--brass);color:var(--ink);
244
- font-size:12px;font-weight:700;line-height:22px;text-align:center}
245
- .tl{position:fixed;left:16px;right:16px;bottom:14px;height:40px;display:flex;align-items:center;gap:12px;padding:0 14px;border-radius:10px;
246
- pointer-events:none;background:rgba(18,26,35,.9);color:var(--ivory);box-shadow:0 8px 24px rgba(18,26,35,.22);
247
- transition:opacity .2s ease,transform .2s ease}
248
- .tl.away{opacity:0;transform:translateY(10px)}
249
- .tl b{font:600 10.5px/1 'JetBrains Mono Variable',ui-monospace,Menlo,monospace;letter-spacing:.14em;color:var(--soft)}
250
- .tl .t{font:500 12px/1 'JetBrains Mono Variable',ui-monospace,Menlo,monospace;color:var(--soft);font-variant-numeric:tabular-nums}
251
- .track{position:relative;flex:1;height:18px}
252
- .track::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line)}
253
- .track i{position:absolute;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--soft)}
254
- .track i.said{width:4px;height:14px;margin:-7px 0 0 -2px;border-radius:2px;background:var(--brass)}
255
- .track i.mark{border-radius:1px;background:transparent;border:1.5px solid var(--brass)}
256
- .track i.error{background:#f08a6c}
257
- .track i.now{width:2px;height:18px;margin:-9px 0 0 -1px;border-radius:1px;background:var(--ivory)}
258
- .frame{position:fixed;inset:0;border:4px solid var(--brass);pointer-events:none;transition:border-width .2s ease}
259
- .frame.rec{border-width:6px;animation:f 1.6s ease-in-out infinite}
260
- @keyframes f{50%{border-color:rgba(232,176,74,.45)}}
261
- .badge{position:fixed;left:50%;top:0;transform:translateX(-50%);max-width:min(36rem,calc(100vw - 24px));display:flex;align-items:center;gap:8px;
262
- padding:5px 14px 7px;border-radius:0 0 10px 10px;background:var(--brass);color:var(--ink);pointer-events:none;
263
- font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:12.5px;line-height:1.2;
264
- -webkit-font-smoothing:antialiased;box-shadow:0 6px 18px rgba(18,26,35,.22);transition:opacity .2s ease}
265
- .badge.away{opacity:.2}
266
- .badge b{font:700 10.5px/1 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.16em}
267
- .badge .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
268
- .badge .rec{display:none;align-items:center;gap:6px;padding:3px 8px;border-radius:6px;background:var(--ink);color:var(--ivory);
269
- font:600 10.5px/1 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;white-space:nowrap}
270
- .badge .rec i{width:7px;height:7px;border-radius:50%;background:var(--brass);animation:p 1.6s infinite}
271
- .badge.on .rec{display:inline-flex}
272
- </style><div class="frame" aria-hidden="true"></div>
273
- <div class="badge" role="status"><b>PREVIEW</b><span class="name"></span><span class="rec"><i></i><span class="rtxt">REC</span></span></div><div class="hl"></div>
274
- <div class="areas"></div>
275
- <div class="layer" hidden></div>
276
- <div class="tl" hidden aria-hidden="true"><b>TIMELINE</b><span class="track"></span><span class="t"></span></div>
277
- <div class="tip pick-tip" hidden>Click the part of the page your comment is about<button type="button">Cancel</button></div>
278
- <div class="tip mark-tip" hidden>Drag over the part of the page you mean<button type="button">Done marking</button></div>
279
- <div class="panel shut" role="dialog" aria-label="Live review"></div>
280
- <div class="btn" data-wh-review-button><button type="button" class="quick" hidden><b></b><span class="qlbl">Record</span></button><button type="button" class="open" aria-expanded="false" aria-label="Review"><span class="dot"><i></i></span><span class="lbl">Review</span><span class="clock" hidden></span></button><button type="button" class="done" hidden><b></b>Done</button></div>\`;
281
- const hl = shadow.querySelector('.hl');
282
- const tip = shadow.querySelector('.pick-tip');
283
- const markTip = shadow.querySelector('.mark-tip');
284
- const layer = shadow.querySelector('.layer');
285
- const areasBox = shadow.querySelector('.areas');
286
- const tl = shadow.querySelector('.tl');
287
- const box = shadow.querySelector('.panel');
288
- const btn = shadow.querySelector('.btn');
289
- const openBtn = shadow.querySelector('.open');
290
- const doneBtn = shadow.querySelector('.done');
291
- const quick = shadow.querySelector('.quick');
292
- const lbl = shadow.querySelector('.lbl');
293
- const clock = shadow.querySelector('.clock');
294
- const frame = shadow.querySelector('.frame');
295
- const badge = shadow.querySelector('.badge');
296
- const badgeRec = shadow.querySelector('.rtxt');
297
- badge.querySelector('.name').textContent = REVIEW.title || REVIEW.task;
298
- // On a phone: one control, Record then Stop (no holding), and the panel as a sheet for comments.
299
- const phone = matchMedia('(max-width: 640px), (pointer: coarse)').matches;
300
- btn.classList.toggle('phone', phone);
301
- quick.hidden = !phone;
302
-
303
- panel = document.createElement('iframe');
304
- panel.title = 'Live review';
305
- panel.allow = 'microphone; autoplay';
306
- panel.src =
307
- \`\${PARENT}/live-review/\${encodeURIComponent(REVIEW.task)}?\` +
308
- new URLSearchParams({
309
- from: location.origin,
310
- title: REVIEW.title,
311
- preview: REVIEW.preview,
312
- back: REVIEW.back
313
- });
314
- box.appendChild(panel);
315
-
316
- // Where the button sits (it can be dragged anywhere), and the panel beside it.
317
- let pos = store.get('pos') || { right: 16, bottom: 16 };
318
- // The panel starts open: the review is what this tab is for. Minimised, it stays so on this tab.
319
- let open = store.get('open') !== false;
320
- let large = false;
321
- const clamp = (v, max) => Math.max(8, Math.min(v, max));
322
- function place() {
323
- const w = btn.offsetWidth || 120;
324
- const h = btn.offsetHeight || 44;
325
- pos = {
326
- right: clamp(pos.right, innerWidth - w - 8),
327
- bottom: clamp(pos.bottom, innerHeight - h - 8)
328
- };
329
- btn.style.right = pos.right + 'px';
330
- btn.style.bottom = pos.bottom + 'px';
331
- if (phone) {
332
- // What is on the screen (a page wider than the phone still shows this much): the control
333
- // sits at its foot, in the middle, and the panel rises over it as a sheet.
334
- const vv = window.visualViewport;
335
- const vw = vv ? vv.width : innerWidth;
336
- const vh = vv ? vv.height : innerHeight;
337
- const ox = vv ? vv.offsetLeft : 0;
338
- const oy = vv ? vv.offsetTop : 0;
339
- Object.assign(btn.style, {
340
- right: 'auto',
341
- bottom: 'auto',
342
- left: ox + (vw - w) / 2 + 'px',
343
- top: oy + vh - h - 16 + 'px'
344
- });
345
- // The frame and its label go round what is on the screen, not the wider page.
346
- Object.assign(frame.style, {
347
- inset: 'auto',
348
- left: ox + 'px',
349
- top: oy + 'px',
350
- width: vw + 'px',
351
- height: vh + 'px'
352
- });
353
- Object.assign(badge.style, {
354
- left: ox + vw / 2 + 'px',
355
- top: oy + 'px',
356
- maxWidth: vw - 24 + 'px'
357
- });
358
- const height = large ? vh - 24 : Math.min(vh * 0.78, 640);
359
- Object.assign(box.style, {
360
- left: ox + 'px',
361
- right: 'auto',
362
- bottom: 'auto',
363
- top: oy + vh - height + 'px',
364
- width: vw + 'px',
365
- height: height + 'px',
366
- borderRadius: '16px 16px 0 0'
367
- });
368
- return;
369
- }
370
- if (large) {
371
- Object.assign(box.style, {
372
- top: '16px',
373
- bottom: '16px',
374
- right: '16px',
375
- left: 'auto',
376
- width: 'min(44rem, calc(100vw - 32px))',
377
- height: 'auto'
378
- });
379
- return;
380
- }
381
- const width = Math.min(400, innerWidth - 16);
382
- const height = Math.min(760, innerHeight - h - 40);
383
- const left = innerWidth - pos.right - w;
384
- const fromRight = left + w / 2 > innerWidth / 2;
385
- // The button low on the screen: the panel opens above it, else below it.
386
- const above = innerHeight - pos.bottom - h > innerHeight / 2;
387
- Object.assign(box.style, {
388
- width: width + 'px',
389
- height: height + 'px',
390
- left: fromRight ? 'auto' : clamp(left, innerWidth - width - 8) + 'px',
391
- right: fromRight ? clamp(pos.right, innerWidth - width - 8) + 'px' : 'auto',
392
- top: above ? 'auto' : clamp(innerHeight - pos.bottom + 10, innerHeight - height - 8) + 'px',
393
- bottom: above ? clamp(pos.bottom + h + 10, innerHeight - height - 8) + 'px' : 'auto'
394
- });
395
- }
396
- function setOpen(v) {
397
- open = v;
398
- store.set('open', v);
399
- box.classList.toggle('shut', !open);
400
- openBtn.setAttribute('aria-expanded', String(open));
401
- // On a phone the sheet has its own Done and minimise; the control steps aside for it.
402
- btn.style.visibility = phone && open ? 'hidden' : '';
403
- place();
404
- }
405
- addEventListener('resize', place);
406
- if (phone && window.visualViewport) {
407
- visualViewport.addEventListener('resize', place);
408
- visualViewport.addEventListener('scroll', place);
409
- }
410
-
411
- // A press on the button opens or closes the panel; a press that moves drags it.
412
- let drag = null;
413
- openBtn.addEventListener('pointerdown', (e) => {
414
- if (e.button !== 0) return;
415
- drag = { x: e.clientX, y: e.clientY, right: pos.right, bottom: pos.bottom, moved: false };
416
- try {
417
- openBtn.setPointerCapture(e.pointerId);
418
- } catch {
419
- // a pointer the browser will not capture: the drag still works while it stays over
420
- }
421
- });
422
- openBtn.addEventListener('pointermove', (e) => {
423
- // On a phone the control stays at the foot of the screen.
424
- if (!drag || phone) return;
425
- const dx = e.clientX - drag.x;
426
- const dy = e.clientY - drag.y;
427
- if (!drag.moved && Math.hypot(dx, dy) < 5) return;
428
- drag.moved = true;
429
- btn.classList.add('drag');
430
- pos = { right: drag.right - dx, bottom: drag.bottom - dy };
431
- place();
432
- });
433
- openBtn.addEventListener('pointerup', () => {
434
- if (!drag) return;
435
- const moved = drag.moved;
436
- drag = null;
437
- btn.classList.remove('drag');
438
- if (moved) store.set('pos', pos);
439
- else setOpen(!open);
440
- });
441
- openBtn.addEventListener('keydown', (e) => {
442
- if (e.key === 'Enter' || e.key === ' ') {
443
- e.preventDefault();
444
- setOpen(!open);
445
- }
446
- });
447
- // On a phone, Record starts the discussion with the mic on (no holding), and Stop ends it.
448
- quick.addEventListener('click', () => send('quick'));
449
- // Done is always one press away while anything is under way.
450
- doneBtn.addEventListener('click', () => {
451
- send('done');
452
- setOpen(true);
453
- });
454
-
455
- // What the panel says of the session, shown on the button.
456
- let since = 0;
457
- let tick = 0;
458
- function showState(m) {
459
- // With the pack open the session is over: the button says so, without a clock.
460
- if (m.pack) m = { pack: true };
461
- btn.classList.toggle('rec', !!m.recording && !m.paused && !m.talking);
462
- btn.classList.toggle('talk', !!m.talking);
463
- btn.classList.toggle('paused', !!m.recording && !!m.paused);
464
- frame.classList.toggle('rec', !!m.recording && !m.paused);
465
- badge.classList.toggle('on', !!m.recording);
466
- lbl.textContent = m.approved
467
- ? 'Approved'
468
- : m.pack
469
- ? 'Feedback pack'
470
- : m.talking
471
- ? 'Listening'
472
- : m.recording
473
- ? m.paused
474
- ? 'Paused'
475
- : 'Recording'
476
- : m.comments
477
- ? \`\${m.comments} comment\${m.comments === 1 ? '' : 's'}\`
478
- : 'Review';
479
- doneBtn.hidden = phone || !m.canDone;
480
- quick.classList.toggle('on', !!m.recording);
481
- quick.querySelector('.qlbl').textContent = m.recording ? 'Stop' : 'Record';
482
- quick.hidden = !phone || !!m.pack;
483
- since = m.recording ? m.started : 0;
484
- tl.hidden = phone || !m.recording;
485
- clock.hidden = !since;
486
- clearInterval(tick);
487
- if (since) {
488
- const draw = () => {
489
- const s = Math.max(0, Math.floor((Date.now() - since) / 1000));
490
- clock.textContent = \`\${String(Math.floor(s / 60)).padStart(2, '0')}:\${String(s % 60).padStart(2, '0')}\`;
491
- badgeRec.textContent = m.paused ? 'PAUSED' : \`REC \${clock.textContent}\`;
492
- drawTimeline();
493
- };
494
- draw();
495
- tick = setInterval(draw, 1000);
496
- }
497
- place();
498
- }
499
-
500
- function marked() {
501
- if (!document.title) document.title = MARK + (REVIEW.title || REVIEW.task);
502
- else if (!document.title.startsWith(MARK)) document.title = MARK + document.title;
503
- }
504
- marked();
505
- new MutationObserver(marked).observe(document.head || document.documentElement, {
506
- subtree: true,
507
- childList: true,
508
- characterData: true
509
- });
510
-
511
- const mount = () => {
512
- if (!document.body || host.isConnected) return;
513
- document.body.appendChild(host);
514
- setOpen(open);
515
- drawAreas();
516
- };
517
- if (document.body) mount();
518
- else document.addEventListener('DOMContentLoaded', mount);
519
- // A page that replaces its body (some apps do as they start) gets the button back.
520
- new MutationObserver(() => mount()).observe(document.documentElement, { childList: true });
521
-
522
- /* ------------------------------------------------- picking what to comment on */
523
-
524
- let picking = false;
525
- function outline(node, cls) {
526
- if (!node) return hl.classList.remove('on');
527
- const r = node.getBoundingClientRect();
528
- Object.assign(hl.style, {
529
- left: r.left - 3 + 'px',
530
- top: r.top - 3 + 'px',
531
- width: r.width + 6 + 'px',
532
- height: r.height + 6 + 'px'
533
- });
534
- hl.className = 'hl on ' + (cls || '');
535
- }
536
- const pickable = (t) => t && t !== host && !host.contains(t) && t !== document.documentElement;
537
- function pick(on) {
538
- picking = on;
539
- tip.hidden = !on;
540
- if (on) setOpen(false);
541
- else hl.className = 'hl';
542
- }
543
- tip.querySelector('button').addEventListener('click', () => {
544
- pick(false);
545
- send('picked', { el: null });
546
- setOpen(true);
547
- });
548
- const swallow = (e) => {
549
- if (!picking || !pickable(e.target)) return;
550
- e.preventDefault();
551
- e.stopPropagation();
552
- e.stopImmediatePropagation();
553
- };
554
- for (const type of ['pointerdown', 'mousedown', 'pointerup', 'mouseup', 'touchstart'])
555
- addEventListener(type, swallow, true);
556
- addEventListener(
557
- 'pointermove',
558
- (e) => {
559
- if (!picking) return;
560
- const t = document.elementFromPoint(e.clientX, e.clientY);
561
- if (!pickable(t)) return;
562
- outline(t.closest(NEAR) || t, 'pick');
563
- },
564
- true
565
- );
566
-
567
- /* --------------------------------------------------------- marking areas */
568
-
569
- // While marking, the page dims and takes no input: a layer over it catches the pointer, and
570
- // each drag marks a rectangle, highlighted as it is drawn. Marked areas stay on the page they
571
- // were marked on for the rest of the session.
572
- let marking = false;
573
- let areas = store.get('areas') || [];
574
- const here = () => location.pathname + location.search + location.hash;
575
- function drawAreas() {
576
- areasBox.textContent = '';
577
- for (const a of areas) {
578
- if (a.page !== here()) continue;
579
- const d = document.createElement('div');
580
- d.className = 'area';
581
- Object.assign(d.style, {
582
- left: a.x - scrollX + 'px',
583
- top: a.y - scrollY + 'px',
584
- width: a.w + 'px',
585
- height: a.h + 'px'
586
- });
587
- const n = document.createElement('span');
588
- n.textContent = String(a.n);
589
- d.appendChild(n);
590
- areasBox.appendChild(d);
591
- }
592
- }
593
- addEventListener('scroll', drawAreas, { passive: true, capture: true });
594
- addEventListener('resize', drawAreas);
595
- addEventListener('hashchange', drawAreas);
596
- addEventListener('popstate', drawAreas);
597
- function setMarking(on) {
598
- marking = on;
599
- layer.hidden = !on;
600
- markTip.hidden = !on;
601
- // On a phone the sheet would cover the page being marked.
602
- if (on && phone) setOpen(false);
603
- if (on && document.activeElement && document.activeElement !== document.body)
604
- document.activeElement.blur();
605
- }
606
- markTip.querySelector('button').addEventListener('click', () => {
607
- setMarking(false);
608
- send('marking', { on: false });
609
- });
610
- let live = null;
611
- layer.addEventListener('pointerdown', (e) => {
612
- if (e.button !== 0) return;
613
- e.preventDefault();
614
- try {
615
- layer.setPointerCapture(e.pointerId);
616
- } catch {
617
- // a pointer the browser will not capture: the drag still works while it stays over
618
- }
619
- layer.classList.add('drawing');
620
- live = { x: e.clientX, y: e.clientY, el: document.createElement('div') };
621
- live.el.className = 'area live';
622
- areasBox.appendChild(live.el);
623
- });
624
- const liveRect = (e) => ({
625
- x: Math.min(live.x, e.clientX),
626
- y: Math.min(live.y, e.clientY),
627
- w: Math.abs(e.clientX - live.x),
628
- h: Math.abs(e.clientY - live.y)
629
- });
630
- layer.addEventListener('pointermove', (e) => {
631
- if (!live) return;
632
- const r = liveRect(e);
633
- Object.assign(live.el.style, {
634
- left: r.x + 'px',
635
- top: r.y + 'px',
636
- width: r.w + 'px',
637
- height: r.h + 'px'
638
- });
639
- });
640
- const finishDrag = (e) => {
641
- if (!live) return;
642
- const r = liveRect(e);
643
- live.el.remove();
644
- live = null;
645
- layer.classList.remove('drawing');
646
- if (r.w < 8 || r.h < 8) return;
647
- const n = areas.length + 1;
648
- areas.push({ n, page: here(), x: r.x + scrollX, y: r.y + scrollY, w: r.w, h: r.h });
649
- store.set('areas', areas);
650
- drawAreas();
651
- send('area', { rect: r, n, ...viewport() });
652
- };
653
- layer.addEventListener('pointerup', finishDrag);
654
- layer.addEventListener('pointercancel', () => {
655
- if (live) live.el.remove();
656
- live = null;
657
- layer.classList.remove('drawing');
658
- });
659
-
660
- /* ---------------------------------------------------------- the timeline */
661
-
662
- // While recording, the session along the bottom of the page: what was done, said and marked.
663
- // It is only to look at: it lets the pointer through, and steps aside when the pointer comes
664
- // near so the page under it can be seen and used.
665
- let marks = [];
666
- const track = tl.querySelector('.track');
667
- const tlTime = tl.querySelector('.t');
668
- function drawTimeline() {
669
- if (tl.hidden || !since) return;
670
- const now = Date.now() - since;
671
- const span = Math.max(60_000, now * 1.08);
672
- const pct = (t) => Math.min(100, Math.max(0, (t / span) * 100)) + '%';
673
- track.textContent = '';
674
- for (const m of marks) {
675
- const i = document.createElement('i');
676
- i.className = m.kind;
677
- i.style.left = pct(m.t);
678
- track.appendChild(i);
679
- }
680
- const nowMark = document.createElement('i');
681
- nowMark.className = 'now';
682
- nowMark.style.left = pct(now);
683
- track.appendChild(nowMark);
684
- tlTime.textContent = clock.textContent;
685
- }
686
- addEventListener(
687
- 'pointermove',
688
- (e) => {
689
- badge.classList.toggle('away', e.clientY < 56);
690
- if (tl.hidden) return;
691
- tl.classList.toggle('away', e.clientY > innerHeight - 90);
692
- },
693
- { passive: true, capture: true }
694
- );
695
-
696
- /* --------------------------------------------------------------- the chime */
697
-
698
- // The same soft tone as Wheelhouse's push to talk everywhere (lib/voice/spacehold.ts): rising
699
- // when the mic is live, lower when it closes. The page plays it, as the key was pressed here.
700
- let audio = null;
701
- function chime(on) {
702
- try {
703
- const AC = window.AudioContext || window.webkitAudioContext;
704
- if (!AC) return;
705
- audio = audio || new AC();
706
- const t = audio.currentTime;
707
- const osc = audio.createOscillator();
708
- const gain = audio.createGain();
709
- osc.type = 'sine';
710
- osc.frequency.setValueAtTime(on ? 660 : 520, t);
711
- osc.frequency.exponentialRampToValueAtTime(on ? 880 : 390, t + 0.12);
712
- gain.gain.setValueAtTime(0.0001, t);
713
- gain.gain.exponentialRampToValueAtTime(0.08, t + 0.02);
714
- gain.gain.exponentialRampToValueAtTime(0.0001, t + 0.22);
715
- osc.connect(gain).connect(audio.destination);
716
- osc.start(t);
717
- osc.stop(t + 0.24);
718
- } catch {
719
- // no sound here: the button still says Listening
720
- }
721
- }
722
-
723
- function ripple(x, y) {
724
- const r = document.createElement('div');
725
- r.className = 'ripple';
726
- r.style.left = x + 'px';
727
- r.style.top = y + 'px';
728
- shadow.appendChild(r);
729
- setTimeout(() => r.remove(), 650);
730
- }
731
-
732
- /* ------------------------------------------------------------ what happens */
733
-
734
- addEventListener(
735
- 'click',
736
- (e) => {
737
- if (picking && pickable(e.target)) {
738
- // The part the captain's comment is about: taken, not clicked.
739
- swallow(e);
740
- const node = e.target.closest(NEAR) || e.target;
741
- pick(false);
742
- outline(node);
743
- clearTimeout(hl._t);
744
- hl._t = setTimeout(() => (hl.className = 'hl'), 2200);
745
- send('picked', { el: described(node), at: { x: e.clientX, y: e.clientY }, ...viewport() });
746
- setOpen(true);
747
- return;
748
- }
749
- if (!recording || !pickable(e.target)) return;
750
- const d = described(e.target);
751
- ripple(e.clientX, e.clientY);
752
- send('click', { el: d, at: { x: e.clientX, y: e.clientY }, ...viewport() });
753
- },
754
- true
755
- );
756
-
757
- const typing = new WeakMap();
758
- addEventListener(
759
- 'input',
760
- (e) => {
761
- if (!recording) return;
762
- const el = e.target;
763
- if (!(
764
- el instanceof HTMLInputElement ||
765
- el instanceof HTMLTextAreaElement ||
766
- el.isContentEditable
767
- ))
768
- return;
769
- if (
770
- el instanceof HTMLInputElement &&
771
- ['checkbox', 'radio', 'range', 'color'].includes(el.type)
772
- )
773
- return;
774
- clearTimeout(typing.get(el));
775
- typing.set(
776
- el,
777
- setTimeout(() => {
778
- const d = described(el);
779
- const value = el.isContentEditable ? el.textContent : el.value;
780
- const hidden = mask || (d && d.secret);
781
- send('input', {
782
- el: d,
783
- length: (value || '').length,
784
- value: hidden ? null : cut(tidy(value), 80)
785
- });
786
- }, 900)
787
- );
788
- },
789
- true
790
- );
791
-
792
- addEventListener(
793
- 'change',
794
- (e) => {
795
- if (!recording) return;
796
- const el = e.target;
797
- let value = null;
798
- if (el instanceof HTMLSelectElement) value = tidy(el.selectedOptions[0]?.textContent);
799
- else if (el instanceof HTMLInputElement && (el.type === 'checkbox' || el.type === 'radio'))
800
- value = el.checked ? 'on' : 'off';
801
- else return;
802
- send('choose', { el: described(el), value });
803
- },
804
- true
805
- );
806
-
807
- let scrollTimer = 0;
808
- addEventListener(
809
- 'scroll',
810
- (e) => {
811
- if (!recording) return;
812
- clearTimeout(scrollTimer);
813
- scrollTimer = setTimeout(() => {
814
- const t = e.target === document ? document.scrollingElement : e.target;
815
- if (!t || !t.scrollHeight) return;
816
- const max = t.scrollHeight - t.clientHeight;
817
- if (max < 40) return;
818
- send('scroll', { pct: Math.round((t.scrollTop / max) * 100) });
819
- }, 700);
820
- },
821
- true
822
- );
823
-
824
- let lastHover = null;
825
- let hoverAt = 0;
826
- addEventListener(
827
- 'pointermove',
828
- (e) => {
829
- if (!recording) return;
830
- const now = performance.now();
831
- if (now - hoverAt < 180) return;
832
- hoverAt = now;
833
- const under = document.elementFromPoint(e.clientX, e.clientY);
834
- const d = pickable(under) ? described(under) : null;
835
- const key = d ? d.selector : null;
836
- if (key === lastHover) return;
837
- lastHover = key;
838
- send('hover', { el: d, ...viewport() });
839
- },
840
- true
841
- );
842
-
843
- // Page changes: full loads, and single-page apps moving with history or the hash.
844
- let lastUrl = location.href;
845
- const moved = (how) => {
846
- if (location.href === lastUrl) return;
847
- lastUrl = location.href;
848
- if (recording) send('nav', { how });
849
- };
850
- for (const name of ['pushState', 'replaceState']) {
851
- const orig = history[name];
852
- history[name] = function (...args) {
853
- const out = orig.apply(this, args);
854
- setTimeout(() => moved(name === 'pushState' ? 'link' : 'replace'));
855
- return out;
856
- };
857
- }
858
- addEventListener('popstate', () => moved('back'));
859
- addEventListener('hashchange', () => moved('link'));
860
-
861
- // Trouble on the page: errors, rejected promises, console errors and failed requests
862
- // (watchTrouble, from lib/trouble.js, which proxy.ts places in front of this script).
863
- watchTrouble(
864
- (kind, message, extra = {}) =>
865
- recording && send('error', { kind, message: cut(tidy(String(message)), 300), ...extra })
866
- );
867
-
868
- // The talk key, as everywhere in Wheelhouse (lib/voice/spacehold.ts): hold Space for 2 seconds
869
- // to talk, and let go to stop; a shorter press is an ordinary Space. In a text box the press
870
- // types its space as usual, and when the hold turns into talking that space comes out again.
871
- const HOLD_MS = 2000;
872
- let spaceTimer = 0;
873
- let spaceWaiting = false;
874
- let spaceTalking = false;
875
- const typingIn = (t) =>
876
- !!t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName || ''));
877
- function untypeSpace(el) {
878
- if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) {
879
- const at = el.selectionStart ?? 0;
880
- if (at === 0 || at !== el.selectionEnd || !/[ \\u00a0]/.test(el.value[at - 1])) return;
881
- el.setRangeText('', at - 1, at, 'end');
882
- el.dispatchEvent(new Event('input', { bubbles: true }));
883
- }
884
- }
885
- function spaceWait() {
886
- clearTimeout(spaceTimer);
887
- spaceWaiting = false;
888
- }
889
- function spaceUp(e) {
890
- spaceWait();
891
- if (!spaceTalking) return;
892
- spaceTalking = false;
893
- // The press was for talking, not for the button or link that has focus.
894
- if (e) e.preventDefault();
895
- chime(false);
896
- send('key', { key: 'talk', down: false });
897
- }
898
- addEventListener(
899
- 'keydown',
900
- (e) => {
901
- const space = e.code === 'Space' && !e.metaKey && !e.ctrlKey && !e.altKey && !e.shiftKey;
902
- if (space && e.repeat) {
903
- // Held Space neither types a row of spaces nor scrolls while it waits.
904
- if (spaceWaiting || spaceTalking) e.preventDefault();
905
- } else if (space && !spaceTalking && !picking && recording) {
906
- const typedIn = typingIn(e.target) ? e.target : null;
907
- spaceWait();
908
- spaceWaiting = true;
909
- spaceTimer = setTimeout(() => {
910
- spaceWaiting = false;
911
- spaceTalking = true;
912
- if (typedIn) untypeSpace(typedIn);
913
- chime(true);
914
- send('key', { key: 'talk', down: true });
915
- }, HOLD_MS);
916
- } else if (!space && spaceWaiting) {
917
- // Another key while Space is still down is fast typing, not a hold.
918
- spaceWait();
919
- }
920
- if (e.key === 'Escape' && picking) {
921
- pick(false);
922
- send('picked', { el: null });
923
- setOpen(true);
924
- } else if (e.key === 'Escape' && marking) {
925
- setMarking(false);
926
- send('marking', { on: false });
927
- } else if (e.key === 'Escape') send('key', { key: 'Escape', down: true });
928
- else if (
929
- (e.key === 'm' || e.key === 'M') &&
930
- !e.repeat &&
931
- !e.metaKey &&
932
- !e.ctrlKey &&
933
- !e.altKey &&
934
- recording &&
935
- !typingIn(e.target)
936
- )
937
- // M: mark an area (and M again, or Esc, to stop).
938
- send('key', { key: 'mark' });
939
- // While marking, the page takes no keys either.
940
- if (marking) {
941
- e.stopPropagation();
942
- e.preventDefault();
943
- }
944
- },
945
- true
946
- );
947
- addEventListener(
948
- 'keyup',
949
- (e) => {
950
- if (e.code === 'Space') spaceUp(e);
951
- if (marking) {
952
- e.stopPropagation();
953
- e.preventDefault();
954
- }
955
- },
956
- true
957
- );
958
- addEventListener('blur', () => spaceUp(null));
959
-
960
- /* ------------------------------------------------------- Wheelhouse asking */
961
-
962
- let shooter = null;
963
- function loadShooter() {
964
- if (shooter) return shooter;
965
- shooter = new Promise((ok, fail) => {
966
- const s = document.createElement('script');
967
- s.src = '/__wheelhouse/live-review/screenshot.js';
968
- s.onload = () => ok(window.modernScreenshot);
969
- s.onerror = fail;
970
- (document.head || document.documentElement).appendChild(s);
971
- });
972
- return shooter;
973
- }
974
-
975
- async function shoot(id, selector, text) {
976
- try {
977
- const ms = await loadShooter();
978
- hl.classList.remove('on');
979
- const root = document.documentElement;
980
- const sx = scrollX,
981
- sy = scrollY,
982
- vw = innerWidth,
983
- vh = innerHeight;
984
- const scale = Math.min(1, 1100 / vw);
985
- const canvas = await ms.domToCanvas(root, {
986
- width: vw,
987
- height: vh,
988
- scale,
989
- backgroundColor: getComputedStyle(document.body).backgroundColor || '#ffffff',
990
- style: { transform: \`translate(\${-sx}px, \${-sy}px)\` },
991
- filter: (n) => !(n.nodeType === 1 && n.hasAttribute && n.hasAttribute('data-wh-recorder')),
992
- timeout: 4000
993
- });
994
- let el = null;
995
- if (selector) {
996
- try {
997
- const node = document.querySelector(selector);
998
- const d = node && described(node);
999
- if (d && (!text || d.text === text)) el = d;
1000
- } catch {
1001
- // a selector the page cannot read: no outline
1002
- }
1003
- }
1004
- send('shot', { id, image: canvas.toDataURL('image/jpeg', 0.82), vw, vh, el });
1005
- } catch (err) {
1006
- send('shot', { id, image: null, error: String(err && err.message) });
1007
- }
1008
- }
1009
-
1010
- addEventListener('message', (e) => {
1011
- if (!panel || e.source !== panel.contentWindow || e.origin !== PARENT) return;
1012
- const m = e.data;
1013
- if (!m || m.__wh !== 1) return;
1014
- if (m.type === 'ready') {
1015
- // The panel has loaded (again, after the page changed): what waited goes to it now.
1016
- ready = true;
1017
- const waiting = queued;
1018
- queued = [];
1019
- for (const q of waiting) panel.contentWindow.postMessage(q, PARENT);
1020
- send('hello', { ...viewport() });
1021
- } else if (m.type === 'record') {
1022
- recording = !!m.on;
1023
- mask = m.mask !== false;
1024
- if (!recording) {
1025
- hl.className = 'hl';
1026
- if (marking) setMarking(false);
1027
- }
1028
- } else if (m.type === 'state') {
1029
- showState(m);
1030
- } else if (m.type === 'panel') {
1031
- if (typeof m.large === 'boolean') large = m.large;
1032
- if (typeof m.open === 'boolean') setOpen(m.open);
1033
- else place();
1034
- } else if (m.type === 'mark') {
1035
- setMarking(!!m.on);
1036
- } else if (m.type === 'timeline') {
1037
- marks = Array.isArray(m.items) ? m.items : [];
1038
- drawTimeline();
1039
- } else if (m.type === 'areas' && m.clear) {
1040
- areas = [];
1041
- store.set('areas', areas);
1042
- drawAreas();
1043
- } else if (m.type === 'pick') {
1044
- pick(!!m.on);
1045
- } else if (m.type === 'leave') {
1046
- // Back to Wheelhouse: the preview opened in a tab of its own, so close it; the Wheelhouse tab
1047
- // it came from is still there. A tab the browser will not close goes to Wheelhouse instead.
1048
- window.close();
1049
- setTimeout(() => location.assign(PARENT + REVIEW.back), 250);
1050
- } else if (m.type === 'gettext') {
1051
- // What the page says right now, for the scribe to answer questions about it (never typed values).
1052
- const text = (document.body ? document.body.innerText : '')
1053
- .replace(/\\n{3,}/g, '\\n\\n')
1054
- .slice(0, 6000);
1055
- send('text', { text });
1056
- } else if (m.type === 'shoot') {
1057
- shoot(m.id, m.selector, m.text);
1058
- } else if (m.type === 'highlight') {
1059
- let node = null;
1060
- try {
1061
- node = m.selector && document.querySelector(m.selector);
1062
- } catch {
1063
- // a selector the page cannot read: nothing to highlight
1064
- }
1065
- if (!node) return (hl.className = 'hl');
1066
- node.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
1067
- outline(node);
1068
- clearTimeout(hl._t);
1069
- hl._t = setTimeout(() => (hl.className = 'hl'), 2200);
1070
- }
1071
- });
1072
- })();
1073
- `;
1074
- const troubleSource = "/*\n * Trouble on a page: uncaught errors, resources that fail to load, rejected\n * promises nobody handled, console errors and failed requests, each handed to\n * `report` as it happens. Plain browser JavaScript with no imports, so it can\n * be shared as is by two scripts:\n *\n * - the live review recorder (server/livereview/recorder.js), which Wheelhouse\n * serves into a preview's pages with this file's source placed in front of\n * it (the `export` taken off), and\n * - Soundings' beacon in Wheelhouse's own pages (client/beacon.ts), which\n * imports it.\n *\n * Keep it that way: self-contained, no imports, no TypeScript syntax.\n */\n\n/**\n * @typedef {'exception' | 'resource' | 'console' | 'network'} TroubleKind\n * @typedef {(kind: TroubleKind, message: string, extra?: { source?: string | null }) => void} TroubleReport\n */\n\n/**\n * Start watching this window for trouble. `skip` names request URLs not to\n * report (the reporter's own, so a failing report does not report itself).\n *\n * @param {TroubleReport} report\n * @param {(url: string) => boolean} [skip]\n */\nexport function watchTrouble(report, skip) {\n const shortUrl = (/** @type {unknown} */ u) => {\n try {\n const x = new URL(String(u), location.href);\n return x.pathname + x.search;\n } catch {\n return String(u);\n }\n };\n const safeJson = (/** @type {unknown} */ v) => {\n try {\n return JSON.stringify(v);\n } catch {\n return String(v);\n }\n };\n addEventListener(\n 'error',\n (e) => {\n const target = /** @type {any} */ (e.target);\n if (target && target !== window && target.tagName) {\n report(\n 'resource',\n `Could not load ${target.tagName.toLowerCase()} ${target.src || target.href || ''}`\n );\n } else {\n const ev = /** @type {ErrorEvent} */ (e);\n report('exception', ev.message, {\n source: ev.filename ? `${ev.filename.split('/').pop()}:${ev.lineno}` : null\n });\n }\n },\n true\n );\n addEventListener('unhandledrejection', (e) =>\n report('exception', `Unhandled: ${e.reason && e.reason.message ? e.reason.message : e.reason}`)\n );\n const consoleError = console.error;\n console.error = function (...args) {\n report(\n 'console',\n args\n .map((a) =>\n a instanceof Error ? a.message : typeof a === 'object' ? safeJson(a) : String(a)\n )\n .join(' ')\n );\n return consoleError.apply(this, args);\n };\n const ofetch = window.fetch;\n if (ofetch)\n window.fetch = async function (input, init) {\n const req = /** @type {any} */ (input);\n const url = typeof input === 'string' ? input : input instanceof URL ? input.href : req?.url;\n const method = (init && init.method) || (req && req.method) || 'GET';\n if (skip && url && skip(String(url))) return ofetch.call(this, input, init);\n try {\n const res = await ofetch.call(this, input, init);\n if (res.status >= 400) report('network', `${method} ${shortUrl(url)} → ${res.status}`);\n return res;\n } catch (err) {\n // A request the page itself called off (leaving a page, a newer search) is not trouble.\n if (!(err && /** @type {any} */ (err).name === 'AbortError'))\n report(\n 'network',\n `${method} ${shortUrl(url)} failed (${err && /** @type {any} */ (err).message})`\n );\n throw err;\n }\n };\n}\n";
1075
- const shooterSource = '(function(y,v){typeof exports=="object"&&typeof module!="undefined"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(y=typeof globalThis!="undefined"?globalThis:y||self,v(y.modernScreenshot={}))})(this,function(y){"use strict";var rr=Object.defineProperty,nr=Object.defineProperties;var or=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,Le=(y,v,N)=>v in y?rr(y,v,{enumerable:!0,configurable:!0,writable:!0,value:N}):y[v]=N,D=(y,v)=>{for(var N in v||(v={}))xe.call(v,N)&&Le(y,N,v[N]);if(Z)for(var N of Z(v))Me.call(v,N)&&Le(y,N,v[N]);return y},M=(y,v)=>nr(y,or(v));var je=(y,v)=>{var N={};for(var R in y)xe.call(y,R)&&v.indexOf(R)<0&&(N[R]=y[R]);if(y!=null&&Z)for(var R of Z(y))v.indexOf(R)<0&&Me.call(y,R)&&(N[R]=y[R]);return N};var C=(y,v,N)=>new Promise((R,O)=>{var X=P=>{try{q(N.next(P))}catch(W){O(W)}},j=P=>{try{q(N.throw(P))}catch(W){O(W)}},q=P=>P.done?R(P.value):Promise.resolve(P.value).then(X,j);q((N=N.apply(y,v)).next())});var Be;function v(e,t){return e[13]=1,e[14]=t>>8,e[15]=t&255,e[16]=t>>8,e[17]=t&255,e}const N=112,R=72,O=89,X=115;let j;function q(){const e=new Int32Array(256);for(let t=0;t<256;t++){let r=t;for(let n=0;n<8;n++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e}function P(e){let t=-1;j||(j=q());for(let r=0;r<e.length;r++)t=j[(t^e[r])&255]^t>>>8;return t^-1}function W(e){const t=e.length-1;for(let r=t;r>=4;r--)if(e[r-4]===9&&e[r-3]===N&&e[r-2]===R&&e[r-1]===O&&e[r]===X)return r-3;return 0}function ae(e,t,r=!1){const n=new Uint8Array(13);t*=39.3701,n[0]=N,n[1]=R,n[2]=O,n[3]=X,n[4]=t>>>24,n[5]=t>>>16,n[6]=t>>>8,n[7]=t&255,n[8]=n[4],n[9]=n[5],n[10]=n[6],n[11]=n[7],n[12]=1;const i=P(n),a=new Uint8Array(4);if(a[0]=i>>>24,a[1]=i>>>16,a[2]=i>>>8,a[3]=i&255,r){const s=W(e);return e.set(n,s),e.set(a,s+13),e}else{const s=new Uint8Array(4);s[0]=0,s[1]=0,s[2]=0,s[3]=9;const o=new Uint8Array(54);return o.set(e,0),o.set(s,33),o.set(n,37),o.set(a,50),o}}const qe="AAlwSFlz",We="AAAJcEhZ",He="AAAACXBI";function Ve(e){let t=e.indexOf(qe);return t===-1&&(t=e.indexOf(We)),t===-1&&(t=e.indexOf(He)),t}const se="[modern-screenshot]",U=typeof window!="undefined",ze=U&&"Worker"in window,ie=U&&"atob"in window,Xe=U&&"btoa"in window,ee=U?(Be=window.navigator)==null?void 0:Be.userAgent:"",le=ee.includes("Chrome"),G=ee.includes("AppleWebKit")&&!le,te=ee.includes("Firefox"),Ge=e=>e&&"__CONTEXT__"in e,Ye=e=>e.constructor.name==="CSSFontFaceRule",Je=e=>e.constructor.name==="CSSImportRule",Ke=e=>e.constructor.name==="CSSLayerBlockRule",I=e=>e.nodeType===1,H=e=>typeof e.className=="object",ce=e=>e.tagName==="image",Qe=e=>e.tagName==="use",V=e=>I(e)&&typeof e.style!="undefined"&&!H(e),Ze=e=>e.nodeType===8,et=e=>e.nodeType===3,$=e=>e.tagName==="IMG",Y=e=>e.tagName==="VIDEO",tt=e=>e.tagName==="CANVAS",rt=e=>e.tagName==="TEXTAREA",nt=e=>e.tagName==="INPUT",ot=e=>e.tagName==="STYLE",at=e=>e.tagName==="SCRIPT",st=e=>e.tagName==="SELECT",it=e=>e.tagName==="SLOT",lt=e=>e.tagName==="IFRAME",ct=(...e)=>console.warn(se,...e);function ut(e){var r;const t=(r=e==null?void 0:e.createElement)==null?void 0:r.call(e,"canvas");return t&&(t.height=t.width=1),!!t&&"toDataURL"in t&&!!t.toDataURL("image/webp").includes("image/webp")}const re=e=>e.startsWith("data:");function ue(e,t){if(e.match(/^[a-z]+:\\/\\//i))return e;if(U&&e.match(/^\\/\\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!U)return e;const r=J().implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}function J(e){var t;return(t=e&&I(e)?e==null?void 0:e.ownerDocument:e)!=null?t:window.document}const K="http://www.w3.org/2000/svg";function fe(e,t,r){const n=J(r).createElementNS(K,"svg");return n.setAttributeNS(null,"width",e.toString()),n.setAttributeNS(null,"height",t.toString()),n.setAttributeNS(null,"viewBox",`0 0 ${e} ${t}`),n}function de(e,t){let r=new XMLSerializer().serializeToString(e);return t&&(r=r.replace(/[\\u0000-\\u0008\\v\\f\\u000E-\\u001F\\uD800-\\uDFFF\\uFFFE\\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`}function ft(e,t="image/png",r=1){return C(this,null,function*(){try{return yield new Promise((n,i)=>{e.toBlob(a=>{a?n(a):i(new Error("Blob is null"))},t,r)})}catch(n){if(ie)return dt(e.toDataURL(t,r));throw n}})}function dt(e){var o,c;const[t,r]=e.split(","),n=(c=(o=t.match(/data:(.+);/))==null?void 0:o[1])!=null?c:void 0,i=window.atob(r),a=i.length,s=new Uint8Array(a);for(let u=0;u<a;u+=1)s[u]=i.charCodeAt(u);return new Blob([s],{type:n})}function ge(e,t){return new Promise((r,n)=>{const i=new FileReader;i.onload=()=>r(i.result),i.onerror=()=>n(i.error),i.onabort=()=>n(new Error(`Failed read blob to ${t}`)),t==="dataUrl"?i.readAsDataURL(e):t==="arrayBuffer"&&i.readAsArrayBuffer(e)})}const gt=e=>ge(e,"dataUrl"),mt=e=>ge(e,"arrayBuffer");function _(e,t){const r=J(t).createElement("img");return r.decoding="sync",r.loading="eager",r.src=e,r}function L(e,t){return new Promise(r=>{const{timeout:n,ownerDocument:i,onError:a,onWarn:s}=t!=null?t:{},o=typeof e=="string"?_(e,J(i)):e;let c=null,u=null;function l(){r(o),c&&clearTimeout(c),u==null||u()}if(n&&(c=setTimeout(l,n)),Y(o)){const d=o.currentSrc||o.src;if(!d)return o.poster?L(o.poster,t).then(r):l();if(o.readyState>=2)return l();const m=l,f=h=>{s==null||s("Failed video load",d,h),a==null||a(h),l()};u=()=>{o.removeEventListener("loadeddata",m),o.removeEventListener("error",f)},o.addEventListener("loadeddata",m,{once:!0}),o.addEventListener("error",f,{once:!0})}else{const d=ce(o)?o.href.baseVal:o.currentSrc||o.src;if(!d)return l();const m=()=>C(this,null,function*(){if($(o)&&"decode"in o)try{yield o.decode()}catch(h){s==null||s("Failed to decode image, trying to render anyway",o.dataset.originalSrc||d,h)}l()}),f=h=>{s==null||s("Failed image load",o.dataset.originalSrc||d,h),l()};if($(o)&&o.complete)return m();u=()=>{o.removeEventListener("load",m),o.removeEventListener("error",f)},o.addEventListener("load",m,{once:!0}),o.addEventListener("error",f,{once:!0})}})}function me(e,t){return C(this,null,function*(){V(e)&&($(e)||Y(e)?yield L(e,t):yield Promise.all(["img","video"].flatMap(r=>Array.from(e.querySelectorAll(r)).map(n=>L(n,t)))))})}const he=function(){let t=0;const r=()=>`0000${(Math.random()*Oe(36,4)<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${r()}${t}`)}();function we(e){return e==null?void 0:e.split(",").map(t=>t.trim().replace(/"|\'/g,"").toLowerCase()).filter(Boolean)}let pe=0;function ht(e){const t=`${se}[#${pe}]`;return pe++,{time:r=>e&&console.time(`${t} ${r}`),timeEnd:r=>e&&console.timeEnd(`${t} ${r}`),warn:(...r)=>e&&ct(...r)}}function wt(e){return{cache:e?"no-cache":"force-cache"}}function k(e,t){return C(this,null,function*(){return Ge(e)?e:ye(e,M(D({},t),{autoDestruct:!0}))})}function ye(e,t){return C(this,null,function*(){var f,h,g,p,E;const{scale:r=1,workerUrl:n,workerNumber:i=1}=t||{},a=!!(t!=null&&t.debug),s=(f=t==null?void 0:t.features)!=null?f:!0,o=(h=e.ownerDocument)!=null?h:U?window.document:void 0,c=(p=(g=e.ownerDocument)==null?void 0:g.defaultView)!=null?p:U?window:void 0,u=new Map,l=M(D({width:0,height:0,quality:1,type:"image/png",scale:r,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:a,fetch:D({requestInit:wt((E=t==null?void 0:t.fetch)==null?void 0:E.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},t==null?void 0:t.fetch),fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:i,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1},t),{__CONTEXT__:!0,log:ht(a),node:e,ownerDocument:o,ownerWindow:c,dpi:r===1?null:96*r,svgStyleElement:be(o),svgDefsElement:o==null?void 0:o.createElementNS(K,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:ze&&n&&i?i:0})].map(()=>{try{const b=new Worker(n);return b.onmessage=w=>C(this,null,function*(){var A,F,B,$e;const{url:S,result:T}=w.data;T?(F=(A=u.get(S))==null?void 0:A.resolve)==null||F.call(A,T):($e=(B=u.get(S))==null?void 0:B.reject)==null||$e.call(B,new Error(`Error receiving message from worker: ${S}`))}),b.onmessageerror=w=>{var T,A;const{url:S}=w.data;(A=(T=u.get(S))==null?void 0:T.reject)==null||A.call(T,new Error(`Error receiving message from worker: ${S}`))},b}catch(b){return l.log.warn("Failed to new Worker",b),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[ut(o)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:u,drawImageCount:0,tasks:[],features:s,isEnable:b=>{var w,S;return b==="restoreScrollPosition"?typeof s=="boolean"?!1:(w=s[b])!=null?w:!1:typeof s=="boolean"?s:(S=s[b])!=null?S:!0},shadowRoots:[]});l.log.time("wait until load"),yield me(e,{timeout:l.timeout,onWarn:l.log.warn}),l.log.timeEnd("wait until load");const{width:d,height:m}=pt(e,l);return l.width=d,l.height=m,l})}function be(e){if(!e)return;const t=e.createElement("style"),r=t.ownerDocument.createTextNode(`\n.______background-clip--text {\n background-clip: text;\n -webkit-background-clip: text;\n}\n`);return t.appendChild(r),t}function pt(e,t){let{width:r,height:n}=t;if(I(e)&&(!r||!n)){const i=e.getBoundingClientRect();r=r||i.width||Number(e.getAttribute("width"))||0,n=n||i.height||Number(e.getAttribute("height"))||0}return{width:r,height:n}}function yt(e,t){return C(this,null,function*(){const{log:r,timeout:n,drawImageCount:i,drawImageInterval:a}=t;r.time("image to canvas");const s=yield L(e,{timeout:n,onWarn:t.log.warn}),{canvas:o,context2d:c}=bt(e.ownerDocument,t),u=()=>{try{c==null||c.drawImage(s,0,0,o.width,o.height)}catch(l){t.log.warn("Failed to drawImage",l)}};if(u(),t.isEnable("fixSvgXmlDecode"))for(let l=0;l<i;l++)yield new Promise(d=>{setTimeout(()=>{c==null||c.clearRect(0,0,o.width,o.height),u(),d()},l+a)});return t.drawImageCount=0,r.timeEnd("image to canvas"),o})}function bt(e,t){const{width:r,height:n,scale:i,backgroundColor:a,maximumCanvasSize:s}=t,o=e.createElement("canvas");o.width=Math.floor(r*i),o.height=Math.floor(n*i),o.style.width=`${r}px`,o.style.height=`${n}px`,s&&(o.width>s||o.height>s)&&(o.width>s&&o.height>s?o.width>o.height?(o.height*=s/o.width,o.width=s):(o.width*=s/o.height,o.height=s):o.width>s?(o.height*=s/o.width,o.width=s):(o.width*=s/o.height,o.height=s));const c=o.getContext("2d");return c&&a&&(c.fillStyle=a,c.fillRect(0,0,o.width,o.height)),{canvas:o,context2d:c}}function Se(e,t){if(e.ownerDocument)try{const a=e.toDataURL();if(a!=="data:,")return _(a,e.ownerDocument)}catch(a){t.log.warn("Failed to clone canvas",a)}const r=e.cloneNode(!1),n=e.getContext("2d"),i=r.getContext("2d");try{return n&&i&&i.putImageData(n.getImageData(0,0,e.width,e.height),0,0),r}catch(a){t.log.warn("Failed to clone canvas",a)}return r}function St(e,t){var r;try{if((r=e==null?void 0:e.contentDocument)!=null&&r.documentElement)return ne(e.contentDocument.documentElement,t)}catch(n){t.log.warn("Failed to clone iframe",n)}return e.cloneNode(!1)}function Et(e){const t=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager"),t}function Ct(e,t){return C(this,null,function*(){if(e.ownerDocument&&!e.currentSrc&&e.poster)return _(e.poster,e.ownerDocument);const r=e.cloneNode(!1);r.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc);const n=r.ownerDocument;if(n){let i=!0;if(yield L(r,{onError:()=>i=!1,onWarn:t.log.warn}),!i)return e.poster?_(e.poster,e.ownerDocument):r;r.currentTime=e.currentTime,yield new Promise(s=>{r.addEventListener("seeked",s,{once:!0})});const a=n.createElement("canvas");a.width=e.offsetWidth,a.height=e.offsetHeight;try{const s=a.getContext("2d");s&&s.drawImage(r,0,0,a.width,a.height)}catch(s){return t.log.warn("Failed to clone video",s),e.poster?_(e.poster,e.ownerDocument):r}return Se(a,t)}return r})}function Tt(e,t){return tt(e)?Se(e,t):lt(e)?St(e,t):$(e)?Et(e):Y(e)?Ct(e,t):e.cloneNode(!1)}function vt(e){let t=e.sandbox;if(!t){const{ownerDocument:r}=e;try{r&&(t=r.createElement("iframe"),t.id=`__SANDBOX__${he()}`,t.width="0",t.height="0",t.style.visibility="hidden",t.style.position="fixed",r.body.appendChild(t),t.srcdoc=\'<!DOCTYPE html><meta charset="UTF-8"><title></title><body>\',e.sandbox=t)}catch(n){e.log.warn("Failed to getSandBox",n)}}return t}const At=["width","height","-webkit-text-fill-color"],Nt=["stroke","fill"];function Ee(e,t,r){const{defaultComputedStyles:n}=r,i=e.nodeName.toLowerCase(),a=H(e)&&i!=="svg",s=a?Nt.map(g=>[g,e.getAttribute(g)]).filter(([,g])=>g!==null):[],o=[a&&"svg",i,s.map((g,p)=>`${g}=${p}`).join(","),t].filter(Boolean).join(":");if(n.has(o))return n.get(o);const c=vt(r),u=c==null?void 0:c.contentWindow;if(!u)return new Map;const l=u==null?void 0:u.document;let d,m;a?(d=l.createElementNS(K,"svg"),m=d.ownerDocument.createElementNS(d.namespaceURI,i),s.forEach(([g,p])=>{m.setAttributeNS(null,g,p)}),d.appendChild(m)):d=m=l.createElement(i),m.textContent=" ",l.body.appendChild(d);const f=u.getComputedStyle(m,t),h=new Map;for(let g=f.length,p=0;p<g;p++){const E=f.item(p);At.includes(E)||h.set(E,f.getPropertyValue(E))}return l.body.removeChild(d),n.set(o,h),h}function Ce(e,t,r){var o;const n=new Map,i=[],a=new Map;if(r)for(const c of r)s(c);else for(let c=e.length,u=0;u<c;u++){const l=e.item(u);s(l)}for(let c=i.length,u=0;u<c;u++)(o=a.get(i[u]))==null||o.forEach((l,d)=>n.set(d,l));function s(c){const u=e.getPropertyValue(c),l=e.getPropertyPriority(c),d=c.lastIndexOf("-"),m=d>-1?c.substring(0,d):void 0;if(m){let f=a.get(m);f||(f=new Map,a.set(m,f)),f.set(c,[u,l])}t.get(c)===u&&!l||(m?i.push(m):n.set(c,[u,l]))}return n}function Rt(e,t,r,n){var d,m,f,h;const{ownerWindow:i,includeStyleProperties:a,currentParentNodeStyle:s}=n,o=t.style,c=i.getComputedStyle(e),u=Ee(e,null,n);s==null||s.forEach((g,p)=>{u.delete(p)});const l=Ce(c,u,a);l.delete("transition-property"),l.delete("all"),l.delete("d"),l.delete("content"),r&&(l.delete("position"),l.delete("margin-top"),l.delete("margin-right"),l.delete("margin-bottom"),l.delete("margin-left"),l.delete("margin-block-start"),l.delete("margin-block-end"),l.delete("margin-inline-start"),l.delete("margin-inline-end"),l.set("box-sizing",["border-box",""])),((d=l.get("background-clip"))==null?void 0:d[0])==="text"&&t.classList.add("______background-clip--text"),le&&(l.has("font-kerning")||l.set("font-kerning",["normal",""]),(((m=l.get("overflow-x"))==null?void 0:m[0])==="hidden"||((f=l.get("overflow-y"))==null?void 0:f[0])==="hidden")&&((h=l.get("text-overflow"))==null?void 0:h[0])==="ellipsis"&&e.scrollWidth===e.clientWidth&&l.set("text-overflow",["clip",""]));for(let g=o.length,p=0;p<g;p++)o.removeProperty(o.item(p));return l.forEach(([g,p],E)=>{o.setProperty(E,g,p)}),l}function It(e,t){(rt(e)||nt(e)||st(e))&&t.setAttribute("value",e.value)}const kt=["::before","::after"],Dt=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function Pt(e,t,r,n,i){const{ownerWindow:a,svgStyleElement:s,svgStyles:o,currentNodeStyle:c}=n;if(!s||!a)return;function u(l){var w;const d=a.getComputedStyle(e,l);let m=d.getPropertyValue("content");if(!m||m==="none")return;i==null||i(m),m=m.replace(/(\')|(")|(counter\\(.+\\))/g,"");const f=[he()],h=Ee(e,l,n);c==null||c.forEach((S,T)=>{h.delete(T)});const g=Ce(d,h,n.includeStyleProperties);g.delete("content"),g.delete("-webkit-locale"),((w=g.get("background-clip"))==null?void 0:w[0])==="text"&&t.classList.add("______background-clip--text");const p=[`content: \'${m}\';`];if(g.forEach(([S,T],A)=>{p.push(`${A}: ${S}${T?" !important":""};`)}),p.length===1)return;try{t.className=[t.className,...f].join(" ")}catch(S){n.log.warn("Failed to copyPseudoClass",S);return}const E=p.join(`\n `);let b=o.get(E);b||(b=[],o.set(E,b)),b.push(`.${f[0]}${l}`)}kt.forEach(u),r&&Dt.forEach(u)}const Te=new Set(["symbol"]);function ve(e,t,r,n,i){return C(this,null,function*(){if(I(r)&&(ot(r)||at(r))||n.filter&&!n.filter(r))return;Te.has(t.nodeName)||Te.has(r.nodeName)?n.currentParentNodeStyle=void 0:n.currentParentNodeStyle=n.currentNodeStyle;const a=yield ne(r,n,!1,i);n.isEnable("restoreScrollPosition")&&Ut(e,a),t.appendChild(a)})}function Ae(e,t,r,n){return C(this,null,function*(){var a;let i=e.firstChild;I(e)&&e.shadowRoot&&(i=(a=e.shadowRoot)==null?void 0:a.firstChild,r.shadowRoots.push(e.shadowRoot));for(let s=i;s;s=s.nextSibling)if(!Ze(s))if(I(s)&&it(s)&&typeof s.assignedNodes=="function"){const o=s.assignedNodes();for(let c=0;c<o.length;c++)yield ve(e,t,o[c],r,n)}else yield ve(e,t,s,r,n)})}function Ut(e,t){if(!V(e)||!V(t))return;const{scrollTop:r,scrollLeft:n}=e;if(!r&&!n)return;const{transform:i}=t.style,a=new DOMMatrix(i),{a:s,b:o,c,d:u}=a;a.a=1,a.b=0,a.c=0,a.d=1,a.translateSelf(-n,-r),a.a=s,a.b=o,a.c=c,a.d=u,t.style.transform=a.toString()}function _t(e,t){const{backgroundColor:r,width:n,height:i,style:a}=t,s=e.style;if(r&&s.setProperty("background-color",r,"important"),n&&s.setProperty("width",`${n}px`,"important"),i&&s.setProperty("height",`${i}px`,"important"),a)for(const o in a)s[o]=a[o]}const Ft=/^[\\w-:]+$/;function ne(e,t,r=!1,n){return C(this,null,function*(){var u,l,d,m;const{ownerDocument:i,ownerWindow:a,fontFamilies:s,onCloneEachNode:o}=t;if(i&&et(e))return n&&/\\S/.test(e.data)&&n(e.data),i.createTextNode(e.data);if(i&&a&&I(e)&&(V(e)||H(e))){const f=yield Tt(e,t);if(t.isEnable("removeAbnormalAttributes")){const w=f.getAttributeNames();for(let S=w.length,T=0;T<S;T++){const A=w[T];Ft.test(A)||f.removeAttribute(A)}}const h=t.currentNodeStyle=Rt(e,f,r,t);r&&_t(f,t);let g=!1;if(t.isEnable("copyScrollbar")){const w=[(u=h.get("overflow-x"))==null?void 0:u[0],(l=h.get("overflow-y"))==null?void 0:l[0]];g=w.includes("scroll")||(w.includes("auto")||w.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}const p=(d=h.get("text-transform"))==null?void 0:d[0],E=we((m=h.get("font-family"))==null?void 0:m[0]),b=E?w=>{p==="uppercase"?w=w.toUpperCase():p==="lowercase"?w=w.toLowerCase():p==="capitalize"&&(w=w[0].toUpperCase()+w.substring(1)),E.forEach(S=>{let T=s.get(S);T||s.set(S,T=new Set),w.split("").forEach(A=>T.add(A))})}:void 0;return Pt(e,f,g,t,b),It(e,f),Y(e)||(yield Ae(e,f,t,b)),yield o==null?void 0:o(f),f}const c=e.cloneNode(!1);return yield Ae(e,c,t),yield o==null?void 0:o(c),c})}function Ne(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(t){e.log.warn("Failed to destroyContext",t)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}function Bt(e){const o=e,{url:t,timeout:r,responseType:n}=o,i=je(o,["url","timeout","responseType"]),a=new AbortController,s=r?setTimeout(()=>a.abort(),r):void 0;return fetch(t,D({signal:a.signal},i)).then(c=>{if(!c.ok)throw new Error("Failed fetch, not 2xx response",{cause:c});switch(n){case"arrayBuffer":return c.arrayBuffer();case"dataUrl":return c.blob().then(gt);case"text":default:return c.text()}}).finally(()=>clearTimeout(s))}function z(e,t){const{url:r,requestType:n="text",responseType:i="text",imageDom:a}=t;let s=r;const{timeout:o,acceptOfImage:c,requests:u,fetchFn:l,fetch:{requestInit:d,bypassingCache:m,placeholderImage:f},font:h,workers:g,fontFamilies:p}=e;n==="image"&&(G||te)&&e.drawImageCount++;let E=u.get(r);if(!E){m&&m instanceof RegExp&&m.test(s)&&(s+=(/\\?/.test(s)?"&":"?")+new Date().getTime());const b=n.startsWith("font")&&h&&h.minify,w=new Set;b&&n.split(";")[1].split(",").forEach(F=>{p.has(F)&&p.get(F).forEach(B=>w.add(B))});const S=b&&w.size,T=D({url:s,timeout:o,responseType:S?"arrayBuffer":i,headers:n==="image"?{accept:c}:void 0},d);E={type:n,resolve:void 0,reject:void 0,response:null},E.response=C(this,null,function*(){if(l&&n==="image"){const A=yield l(r);if(A)return A}return!G&&r.startsWith("http")&&g.length?new Promise((A,F)=>{g[u.size&g.length-1].postMessage(D({rawUrl:r},T)),E.resolve=A,E.reject=F}):Bt(T)}).catch(A=>{if(u.delete(r),n==="image"&&f)return e.log.warn("Failed to fetch image base64, trying to use placeholder image",s),typeof f=="string"?f:f(a);throw A}),u.set(r,E)}return E.response}function Re(e,t,r,n){return C(this,null,function*(){if(!Ie(e))return e;for(const[i,a]of $t(e,t))try{const s=yield z(r,{url:a,requestType:n?"image":"text",responseType:"dataUrl"});e=e.replace(Lt(i),`$1${s}$3`)}catch(s){r.log.warn("Failed to fetch css data url",i,s)}return e})}function Ie(e){return/url\\(([\'"]?)([^\'"]+?)\\1\\)/.test(e)}const ke=/url\\(([\'"]?)([^\'"]+?)\\1\\)/g;function $t(e,t){const r=[];return e.replace(ke,(n,i,a)=>(r.push([a,ue(a,t)]),n)),r.filter(([n])=>!re(n))}function Lt(e){const t=e.replace(/([.*+?^${}()|\\[\\]\\/\\\\])/g,"\\\\$1");return new RegExp(`(url\\\\([\'"]?)(${t})([\'"]?\\\\))`,"g")}const xt=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function Mt(e,t){return xt.map(r=>{const n=e.getPropertyValue(r);return!n||n==="none"?null:((G||te)&&t.drawImageCount++,Re(n,null,t,!0).then(i=>{!i||n===i||e.setProperty(r,i,e.getPropertyPriority(r))}))}).filter(Boolean)}function Ot(e,t){if($(e)){const r=e.currentSrc||e.src;if(!re(r))return[z(t,{url:r,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(n=>{n&&(e.srcset="",e.dataset.originalSrc=r,e.src=n||"")})];(G||te)&&t.drawImageCount++}else if(H(e)&&!re(e.href.baseVal)){const r=e.href.baseVal;return[z(t,{url:r,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(n=>{n&&(e.dataset.originalSrc=r,e.href.baseVal=n||"")})]}return[]}function jt(e,t){var o;const{ownerDocument:r,svgDefsElement:n}=t,i=(o=e.getAttribute("href"))!=null?o:e.getAttribute("xlink:href");if(!i)return[];const[a,s]=i.split("#");if(s){const c=`#${s}`,u=t.shadowRoots.reduce((l,d)=>l!=null?l:d.querySelector(`svg ${c}`),r==null?void 0:r.querySelector(`svg ${c}`));if(a&&e.setAttribute("href",c),n!=null&&n.querySelector(c))return[];if(u)return n==null||n.appendChild(u.cloneNode(!0)),[];if(a)return[z(t,{url:a,responseType:"text"}).then(l=>{n==null||n.insertAdjacentHTML("beforeend",l)})]}return[]}function De(e,t){const{tasks:r}=t;I(e)&&(($(e)||ce(e))&&r.push(...Ot(e,t)),Qe(e)&&r.push(...jt(e,t))),V(e)&&r.push(...Mt(e.style,t)),e.childNodes.forEach(n=>{De(n,t)})}function qt(e,t){return C(this,null,function*(){const{ownerDocument:r,svgStyleElement:n,fontFamilies:i,fontCssTexts:a,tasks:s,font:o}=t;if(!(!r||!n||!i.size))if(o&&o.cssText){const c=Ue(o.cssText,t);n.appendChild(r.createTextNode(`${c}\n`))}else{const c=Array.from(r.styleSheets).filter(f=>{try{return"cssRules"in f&&!!f.cssRules.length}catch(h){return t.log.warn(`Error while reading CSS rules from ${f.href}`,h),!1}}),u=r.implementation.createHTMLDocument(""),l=u.createElement("style");u.head.appendChild(l);const d=l.sheet;yield Promise.all(c.flatMap(f=>Array.from(f.cssRules).map(h=>C(this,null,function*(){if(Je(h)){const g=h.href;let p="";try{p=yield z(t,{url:g,requestType:"text",responseType:"text"})}catch(b){t.log.warn(`Error fetch remote css import from ${g}`,b)}const E=p.replace(ke,(b,w,S)=>b.replace(S,ue(S,g)));for(const b of Ht(E))try{d.insertRule(b,d.cssRules.length)}catch(w){t.log.warn("Error inserting rule from remote css import",{rule:b,error:w})}}})))),d.cssRules.length&&c.push(d);const m=[];c.forEach(f=>{oe(f.cssRules,m)}),m.filter(f=>{var h;return Ye(f)&&Ie(f.style.getPropertyValue("src"))&&((h=we(f.style.getPropertyValue("font-family")))==null?void 0:h.some(g=>i.has(g)))}).forEach(f=>{const h=f,g=a.get(h.cssText);g?n.appendChild(r.createTextNode(`${g}\n`)):s.push(Re(h.cssText,h.parentStyleSheet?h.parentStyleSheet.href:null,t).then(p=>{p=Ue(p,t),a.set(h.cssText,p),n.appendChild(r.createTextNode(`${p}\n`))}))})}})}const Wt=/(\\/\\*[\\s\\S]*?\\*\\/)/g,Pe=/((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})/gi;function Ht(e){if(e==null)return[];const t=[];let r=e.replace(Wt,"");for(;;){const a=Pe.exec(r);if(!a)break;t.push(a[0])}r=r.replace(Pe,"");const n=/@import[\\s\\S]*?url\\([^)]*\\)[\\s\\S]*?;/gi,i=new RegExp("((\\\\s*?(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)?\\\\s*?@media[\\\\s\\\\S]*?){([\\\\s\\\\S]*?)}\\\\s*?})|(([\\\\s\\\\S]*?){([\\\\s\\\\S]*?)})","gi");for(;;){let a=n.exec(r);if(a)i.lastIndex=n.lastIndex;else if(a=i.exec(r),a)n.lastIndex=i.lastIndex;else break;t.push(a[0])}return t}const Vt=/url\\([^)]+\\)\\s*format\\((["\']?)([^"\']+)\\1\\)/g,zt=/src:\\s*(?:url\\([^)]+\\)\\s*format\\([^)]+\\)[,;]\\s*)+/g;function Ue(e,t){const{font:r}=t,n=r?r==null?void 0:r.preferredFormat:void 0;return n?e.replace(zt,i=>{for(;;){const[a,,s]=Vt.exec(i)||[];if(!s)return"";if(s===n)return`src: ${a};`}}):e}function oe(e,t=[]){for(const r of Array.from(e))Ke(r)?t.push(...oe(r.cssRules)):"cssRules"in r?oe(r.cssRules,t):t.push(r);return t}const Xt=/\\bx?link:?href\\s*=\\s*["\'](?!data:)[^"\']+["\']/i;function Gt(e){return Xt.test(e.innerHTML)}function _e(e,t){return C(this,null,function*(){const r=yield k(e,t);if(I(r.node)&&H(r.node)&&!Gt(r.node))return r.node;const{ownerDocument:n,log:i,tasks:a,svgStyleElement:s,svgDefsElement:o,svgStyles:c,font:u,progress:l,autoDestruct:d,onCloneNode:m,onEmbedNode:f,onCreateForeignObjectSvg:h}=r;i.time("clone node");const g=yield ne(r.node,r,!0);if(s&&n){let S="";c.forEach((T,A)=>{S+=`${T.join(`,\n`)} {\n ${A}\n}\n`}),s.appendChild(n.createTextNode(S))}i.timeEnd("clone node"),yield m==null?void 0:m(g),u!==!1&&I(g)&&(i.time("embed web font"),yield qt(g,r),i.timeEnd("embed web font")),i.time("embed node"),De(g,r);const p=a.length;let E=0;const b=()=>C(this,null,function*(){for(;;){const S=a.pop();if(!S)break;try{yield S}catch(T){r.log.warn("Failed to run task",T)}l==null||l(++E,p)}});l==null||l(E,p),yield Promise.all([...Array.from({length:4})].map(b)),i.timeEnd("embed node"),yield f==null?void 0:f(g);const w=Yt(g,r);return o&&w.insertBefore(o,w.children[0]),s&&w.insertBefore(s,w.children[0]),d&&Ne(r),yield h==null?void 0:h(w),w})}function Yt(e,t){const{width:r,height:n}=t,i=fe(r,n,e.ownerDocument),a=i.ownerDocument.createElementNS(i.namespaceURI,"foreignObject");return a.setAttributeNS(null,"x","0%"),a.setAttributeNS(null,"y","0%"),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.append(e),i.appendChild(a),i}function Q(e,t){return C(this,null,function*(){var s;const r=yield k(e,t),n=yield _e(r),i=de(n,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=be(r.ownerDocument),r.svgDefsElement=(s=r.ownerDocument)==null?void 0:s.createElementNS(K,"defs"),r.svgStyles.clear());const a=_(i,n.ownerDocument);return yield yt(a,r)})}function Jt(e,t){return C(this,null,function*(){const r=yield k(e,t),{log:n,type:i,quality:a,dpi:s}=r,o=yield Q(r);n.time("canvas to blob");const c=yield ft(o,i,a);if(["image/png","image/jpeg"].includes(i)&&s){const u=yield mt(c.slice(0,33));let l=new Uint8Array(u);return i==="image/png"?l=ae(l,s):i==="image/jpeg"&&(l=v(l,s)),n.timeEnd("canvas to blob"),new Blob([l,c.slice(33)],{type:i})}return n.timeEnd("canvas to blob"),c})}function x(e,t){return C(this,null,function*(){const r=yield k(e,t),{log:n,quality:i,type:a,dpi:s}=r,o=yield Q(r);n.time("canvas to data url");let c=o.toDataURL(a,i);if(["image/png","image/jpeg"].includes(a)&&s&&ie&&Xe){const[u,l]=c.split(",");let d=0,m=!1;if(a==="image/png"){const w=Ve(l);w>=0?(d=Math.ceil((w+28)/3)*4,m=!0):d=33/3*4}else a==="image/jpeg"&&(d=18/3*4);const f=l.substring(0,d),h=l.substring(d),g=window.atob(f),p=new Uint8Array(g.length);for(let w=0;w<p.length;w++)p[w]=g.charCodeAt(w);const E=a==="image/png"?ae(p,s,m):v(p,s),b=window.btoa(String.fromCharCode(...E));c=[u,",",b,h].join("")}return n.timeEnd("canvas to data url"),c})}function Fe(e,t){return C(this,null,function*(){const r=yield k(e,t),{width:n,height:i,ownerDocument:a}=r,s=yield x(r),o=fe(n,i,a),c=o.ownerDocument.createElementNS(o.namespaceURI,"image");return c.setAttributeNS(null,"href",s),c.setAttributeNS(null,"height","100%"),c.setAttributeNS(null,"width","100%"),o.appendChild(c),de(o,r.isEnable("removeControlCharacter"))})}function Kt(e,t){return C(this,null,function*(){const r=yield k(e,t),{ownerDocument:n,width:i,height:a,scale:s,type:o}=r,c=o==="image/svg+xml"?yield Fe(r):yield x(r),u=_(c,n);return u.width=Math.floor(i*s),u.height=Math.floor(a*s),u.style.width=`${i}px`,u.style.height=`${a}px`,u})}function Qt(e,t){return C(this,null,function*(){return x(yield k(e,M(D({},t),{type:"image/jpeg"})))})}function Zt(e,t){return C(this,null,function*(){const r=yield k(e,t),n=yield Q(r);return n.getContext("2d").getImageData(0,0,n.width,n.height).data})}function er(e,t){return C(this,null,function*(){return x(yield k(e,M(D({},t),{type:"image/png"})))})}function tr(e,t){return C(this,null,function*(){return x(yield k(e,M(D({},t),{type:"image/webp"})))})}y.createContext=ye,y.destroyContext=Ne,y.domToBlob=Jt,y.domToCanvas=Q,y.domToDataUrl=x,y.domToForeignObjectSvg=_e,y.domToImage=Kt,y.domToJpeg=Qt,y.domToPixel=Zt,y.domToPng=er,y.domToSvg=Fe,y.domToWebp=tr,y.loadMedia=L,y.waitUntilLoad=me,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});\n';
1076
- const RECORDER_PATH = "/__wheelhouse/live-review/recorder.js";
1077
- const SHOOTER_PATH = "/__wheelhouse/live-review/screenshot.js";
1078
- const IDLE_MS = 30 * 6e4;
1079
- const HTML_MAX_BYTES = 8 * 1024 * 1024;
1080
- function recorderFor(parentOrigin, review) {
1081
- const json = JSON.stringify(review).replaceAll("<", "\\u003c").replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029");
1082
- const trouble = troubleSource.replace(/^export function watchTrouble/m, "function watchTrouble");
1083
- return `(() => {
1084
- ${trouble}
1085
- ${recorderSource}
1086
- })();
1087
- `.replaceAll("__WHEELHOUSE_ORIGIN__", parentOrigin).replace("'__WHEELHOUSE_REVIEW__'", () => json);
1088
- }
1089
- const proxies = /* @__PURE__ */ new Map();
1090
- function injectRecorder(html) {
1091
- const tag = `<script src="${RECORDER_PATH}" data-wheelhouse-live-review><\/script>`;
1092
- const head = /<head(?:\s[^>]*)?>/i.exec(html);
1093
- if (head)
1094
- return html.slice(0, head.index + head[0].length) + tag + html.slice(head.index + head[0].length);
1095
- const doctype = /<!doctype[^>]*>/i.exec(html);
1096
- if (doctype)
1097
- return html.slice(0, doctype.index + doctype[0].length) + tag + html.slice(doctype.index + doctype[0].length);
1098
- return tag + html;
1099
- }
1100
- const gunzip = promisify(zlib.gunzip);
1101
- const inflate = promisify(zlib.inflate);
1102
- const brotli = promisify(zlib.brotliDecompress);
1103
- async function decoded(body, encoding) {
1104
- const e = (encoding ?? "").trim().toLowerCase();
1105
- if (e === "gzip" || e === "x-gzip") return gunzip(body);
1106
- if (e === "deflate") return inflate(body);
1107
- if (e === "br") return brotli(body);
1108
- return body;
1109
- }
1110
- function passedHeaders(headers, upstream, self) {
1111
- const out = { ...headers };
1112
- delete out["content-security-policy"];
1113
- delete out["content-security-policy-report-only"];
1114
- delete out["x-frame-options"];
1115
- if (typeof out.location === "string" && out.location.startsWith(upstream.origin)) {
1116
- out.location = self + out.location.slice(upstream.origin.length);
1117
- }
1118
- return out;
1119
- }
1120
- function serveScript(res, source) {
1121
- res.writeHead(200, {
1122
- "content-type": "text/javascript; charset=utf-8",
1123
- "cache-control": "no-store"
1124
- });
1125
- res.end(source);
1126
- }
1127
- function start(upstream, parentOrigin, review, key) {
1128
- const proxy = {
1129
- server: http.createServer(),
1130
- origin: "",
1131
- last: Date.now(),
1132
- back: review?.back ?? "/"
1133
- };
1134
- const { server } = proxy;
1135
- server.on("request", (req, res) => {
1136
- proxy.last = Date.now();
1137
- const path2 = (req.url ?? "/").split("?")[0];
1138
- if (path2 === RECORDER_PATH)
1139
- return serveScript(
1140
- res,
1141
- recorderFor(parentOrigin, review ? { ...review, back: proxy.back } : null)
1142
- );
1143
- if (path2 === SHOOTER_PATH) return serveScript(res, shooterSource);
1144
- const headers = { ...req.headers, host: upstream.host, "accept-encoding": "gzip, deflate, br" };
1145
- if (typeof headers.origin === "string") headers.origin = upstream.origin;
1146
- delete headers.referer;
1147
- const out = http.request(
1148
- {
1149
- hostname: upstream.hostname,
1150
- port: upstream.port,
1151
- path: req.url,
1152
- method: req.method,
1153
- headers
1154
- },
1155
- (r) => {
1156
- const h = passedHeaders(r.headers, upstream, proxy.origin);
1157
- if (!String(r.headers["content-type"] ?? "").includes("text/html")) {
1158
- res.writeHead(r.statusCode ?? 200, h);
1159
- r.pipe(res);
1160
- return;
1161
- }
1162
- const chunks = [];
1163
- let size = 0;
1164
- r.on("data", (c) => {
1165
- size += c.length;
1166
- if (size <= HTML_MAX_BYTES) chunks.push(c);
1167
- });
1168
- r.on("end", async () => {
1169
- try {
1170
- if (size > HTML_MAX_BYTES) throw new Error("too large");
1171
- const html = await decoded(Buffer.concat(chunks), r.headers["content-encoding"]);
1172
- const body = Buffer.from(injectRecorder(html.toString("utf8")));
1173
- delete h["content-encoding"];
1174
- delete h["transfer-encoding"];
1175
- h["content-length"] = body.length;
1176
- res.writeHead(r.statusCode ?? 200, h);
1177
- res.end(body);
1178
- } catch {
1179
- res.writeHead(502, { "content-type": "text/plain; charset=utf-8" });
1180
- res.end("Wheelhouse could not read this page to record it.");
1181
- }
1182
- });
1183
- }
1184
- );
1185
- out.on("error", () => {
1186
- if (res.headersSent) return res.destroy();
1187
- res.writeHead(502, { "content-type": "text/html; charset=utf-8" });
1188
- res.end(
1189
- injectRecorder(
1190
- '<!doctype html><html><head><title>Preview stopped</title></head><body style="font:15px system-ui;padding:40px;color:#555">The preview did not answer.</body></html>'
1191
- )
1192
- );
1193
- });
1194
- req.pipe(out);
1195
- });
1196
- server.on("upgrade", (req, socket, head) => {
1197
- proxy.last = Date.now();
1198
- const up = net.connect(Number(upstream.port) || 80, upstream.hostname, () => {
1199
- const lines = [`${req.method} ${req.url} HTTP/${req.httpVersion}`];
1200
- for (let i = 0; i < req.rawHeaders.length; i += 2) {
1201
- const name = req.rawHeaders[i];
1202
- lines.push(
1203
- `${name}: ${name.toLowerCase() === "host" ? upstream.host : req.rawHeaders[i + 1]}`
1204
- );
1205
- }
1206
- up.write(lines.join("\r\n") + "\r\n\r\n");
1207
- if (head.length) up.write(head);
1208
- up.pipe(socket);
1209
- socket.pipe(up);
1210
- });
1211
- up.on("error", () => socket.destroy());
1212
- socket.on("error", () => up.destroy());
1213
- });
1214
- return new Promise((resolve, reject) => {
1215
- server.once("error", reject);
1216
- server.listen(0, "127.0.0.1", () => {
1217
- const address = server.address();
1218
- proxy.origin = `http://127.0.0.1:${address.port}`;
1219
- const idle = setInterval(() => {
1220
- if (Date.now() - proxy.last < IDLE_MS) return;
1221
- clearInterval(idle);
1222
- server.close();
1223
- server.closeAllConnections();
1224
- proxies.delete(key);
1225
- }, 6e4);
1226
- idle.unref();
1227
- resolve(proxy);
1228
- });
1229
- });
1230
- }
1231
- async function recordedPreview(previewUrl, parentOrigin, review = null) {
1232
- const target = loopbackPreview(previewUrl);
1233
- if (!target.ok) return { ok: false, error: target.reason };
1234
- const upstream = new URL(target.url);
1235
- const parent = URL.parse(parentOrigin);
1236
- if (!parent || !["127.0.0.1", "localhost", "[::1]"].includes(parent.hostname)) {
1237
- return {
1238
- ok: false,
1239
- error: "Live review works only when Wheelhouse is opened on this computer."
1240
- };
1241
- }
1242
- const key = `${upstream.origin} ${parent.origin} ${review?.task ?? ""}`;
1243
- let p = proxies.get(key);
1244
- if (!p) {
1245
- p = start(upstream, parent.origin, review, key);
1246
- proxies.set(key, p);
1247
- p.catch(() => proxies.delete(key));
1248
- }
1249
- try {
1250
- const proxy = await p;
1251
- proxy.last = Date.now();
1252
- if (review) proxy.back = review.back;
1253
- return { ok: true, url: proxy.origin + upstream.pathname + upstream.search + upstream.hash };
1254
- } catch {
1255
- return { ok: false, error: "Wheelhouse could not open a port to record the preview." };
1256
- }
1257
- }
1258
- const ANSWER_TIMEOUT_MS = 45e3;
1259
- const NOTES_TIMEOUT_MS = 9e4;
1260
- const SHOT_MAX_BYTES = 3 * 1024 * 1024;
1261
- const defaults = () => ({
1262
- env: process.env,
1263
- run: runBounded,
1264
- fetch,
1265
- find: (name) => which(name, process.env.PATH)
1266
- });
1267
- async function reviewContext(taskId) {
1268
- const runtime = await getRuntime();
1269
- if (!runtime.configured) return { ok: false, status: 503, error: runtime.error };
1270
- if (parseMateTaskId(taskId)) {
1271
- const m = await runtime.mateTasks.helperContext(taskId);
1272
- if (!m.ok) return m;
1273
- return {
1274
- ok: true,
1275
- ctx: {
1276
- task: { id: m.task.id, title: m.task.title, project: m.task.project },
1277
- url: m.preview,
1278
- brief: null
1279
- }
1280
- };
1281
- }
1282
- const fleet = runtime.collector.getFleet();
1283
- const task = fleet.tasks.find((t) => t.id === taskId);
1284
- if (!task) return { ok: false, status: 404, error: `There is no task called ${taskId}.` };
1285
- if (!task.preview)
1286
- return { ok: false, status: 409, error: "This task has no preview to review." };
1287
- return {
1288
- ok: true,
1289
- ctx: {
1290
- task: {
1291
- id: task.id,
1292
- title: task.shortTitle,
1293
- project: fleet.projects.find((p) => p.id === task.projectId)?.name ?? task.projectId
1294
- },
1295
- url: task.preview.url,
1296
- brief: runtime.collector.backlog(task.id)?.bodyExcerpt ?? null
1297
- }
1298
- };
1299
- }
1300
- const fast = (deps) => deps.env.WHEELHOUSE_LIVE_REVIEW_MODEL || "haiku";
1301
- const unreadable = (what) => ({
1302
- ok: false,
1303
- status: 502,
1304
- error: `The scribe’s ${what} could not be read. Try again.`
1305
- });
1306
- async function takeNotes(ctx, req, deps = defaults()) {
1307
- const r = await runHelper(
1308
- notesPrompt(ctx, req),
1309
- [],
1310
- {
1311
- system: NOTES_SYSTEM,
1312
- schema: NOTES_SCHEMA,
1313
- read: false,
1314
- model: fast(deps),
1315
- timeoutMs: NOTES_TIMEOUT_MS
1316
- },
1317
- deps
1318
- );
1319
- if (!r.ok) return r;
1320
- const out = readNotes(r.stdout);
1321
- return out ? { ok: true, ...out } : unreadable("notes");
1322
- }
1323
- async function answer(ctx, req, deps = defaults()) {
1324
- const r = await runHelper(
1325
- replyPrompt(ctx, req),
1326
- [],
1327
- {
1328
- system: REPLY_SYSTEM,
1329
- schema: REPLY_SCHEMA,
1330
- read: false,
1331
- model: fast(deps),
1332
- timeoutMs: ANSWER_TIMEOUT_MS
1333
- },
1334
- deps
1335
- );
1336
- if (!r.ok) return r;
1337
- const reply = readAnswer(r.stdout);
1338
- return reply === null ? unreadable("answer") : { ok: true, reply };
1339
- }
1340
- async function tidyPack(ctx, req, deps = defaults()) {
1341
- const r = await runHelper(
1342
- packPrompt(ctx, req),
1343
- [],
1344
- { system: PACK_SYSTEM, schema: PACK_SCHEMA, read: false },
1345
- deps
1346
- );
1347
- if (!r.ok) return r;
1348
- const pack = readPack(r.stdout);
1349
- return pack ? { ok: true, pack } : unreadable("pack");
1350
- }
1351
- const reviewsDir = (env) => path.join(defaultStateDir(env), "live-review");
1352
- async function saveSession(taskId, session, shots, env = process.env, now = /* @__PURE__ */ new Date()) {
1353
- const stamp = now.toISOString().replace(/[:.]/g, "-").slice(0, 19);
1354
- const dir = path.join(
1355
- reviewsDir(env),
1356
- `${stamp}-${taskId.replace(/[^a-z0-9._-]/gi, "-").slice(0, 80)}`
1357
- );
1358
- await mkdir(path.join(dir, "shots"), { recursive: true });
1359
- const saved = {};
1360
- for (const [id, data] of Object.entries(shots)) {
1361
- const m = /^data:image\/(jpeg|png);base64,([A-Za-z0-9+/=]+)$/.exec(data);
1362
- if (!m) continue;
1363
- const bytes = Buffer.from(m[2], "base64");
1364
- if (bytes.length > SHOT_MAX_BYTES) continue;
1365
- const file = path.join(dir, "shots", `${id}.${m[1] === "png" ? "png" : "jpg"}`);
1366
- await writeFile(file, bytes, { mode: 384 });
1367
- saved[id] = file;
1368
- }
1369
- const record = path.join(dir, "session.json");
1370
- await writeFile(record, `${JSON.stringify(session ?? {}, null, 2)}
1371
- `, { mode: 384 });
1372
- return { dir, session: record, shots: saved };
1373
- }
1374
-
1375
- export { answer as a, takeNotes as b, recordedPreview as c, reviewContext as r, saveSession as s, tidyPack as t };
1376
- //# sourceMappingURL=scribe.js-Dwxy2NkA.js.map