@chrisjowen/wheelhouse 0.24.1 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css +1 -0
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css.gz +0 -0
- package/build/client/_app/immutable/chunks/28SuhBcT.js +1 -0
- package/build/client/_app/immutable/chunks/28SuhBcT.js.br +0 -0
- package/build/client/_app/immutable/chunks/28SuhBcT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/7W-6I0W5.js +1 -0
- package/build/client/_app/immutable/chunks/7W-6I0W5.js.br +0 -0
- package/build/client/_app/immutable/chunks/7W-6I0W5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-PCtbJj.js +1 -0
- package/build/client/_app/immutable/chunks/B-PCtbJj.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-PCtbJj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTF7kOWj.js +5 -0
- package/build/client/_app/immutable/chunks/BTF7kOWj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTF7kOWj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnGC1hPK.js +8 -0
- package/build/client/_app/immutable/chunks/BnGC1hPK.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnGC1hPK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BpMceauw.js +7 -0
- package/build/client/_app/immutable/chunks/BpMceauw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BpMceauw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuKI2ZJL.js +7 -0
- package/build/client/_app/immutable/chunks/BuKI2ZJL.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuKI2ZJL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEgeDr98.js +3 -0
- package/build/client/_app/immutable/chunks/CEgeDr98.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEgeDr98.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIppRg38.js +2 -0
- package/build/client/_app/immutable/chunks/CIppRg38.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIppRg38.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWXMOoE5.js +1 -0
- package/build/client/_app/immutable/chunks/CWXMOoE5.js.br +2 -0
- package/build/client/_app/immutable/chunks/CWXMOoE5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CcZQvhp1.js +1 -0
- package/build/client/_app/immutable/chunks/CcZQvhp1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CcZQvhp1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CdXXnfvS.js +1 -0
- package/build/client/_app/immutable/chunks/CdXXnfvS.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdXXnfvS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfSmEcaH.js +6 -0
- package/build/client/_app/immutable/chunks/CfSmEcaH.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfSmEcaH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgJcnAcm.js +3 -0
- package/build/client/_app/immutable/chunks/CgJcnAcm.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgJcnAcm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgvWEeQK.js +2 -0
- package/build/client/_app/immutable/chunks/CgvWEeQK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgvWEeQK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CqwyiX4n.js +1 -0
- package/build/client/_app/immutable/chunks/CqwyiX4n.js.br +0 -0
- package/build/client/_app/immutable/chunks/CqwyiX4n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtfzluSe.js +1 -0
- package/build/client/_app/immutable/chunks/CtfzluSe.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtfzluSe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQZynC5d.js +1 -0
- package/build/client/_app/immutable/chunks/DQZynC5d.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQZynC5d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhFU494N.js +3 -0
- package/build/client/_app/immutable/chunks/DhFU494N.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhFU494N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js +4 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ITHHFCAt.js +1 -0
- package/build/client/_app/immutable/chunks/ITHHFCAt.js.br +0 -0
- package/build/client/_app/immutable/chunks/ITHHFCAt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KLlJvBx3.js +1 -0
- package/build/client/_app/immutable/chunks/KLlJvBx3.js.br +0 -0
- package/build/client/_app/immutable/chunks/KLlJvBx3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Kh20FmpZ.js +3 -0
- package/build/client/_app/immutable/chunks/Kh20FmpZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Kh20FmpZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js +1 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js.br +0 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_NxO7pzE.js +1 -0
- package/build/client/_app/immutable/chunks/_NxO7pzE.js.br +0 -0
- package/build/client/_app/immutable/chunks/_NxO7pzE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uFHn3SsP.js +2 -0
- package/build/client/_app/immutable/chunks/uFHn3SsP.js.br +0 -0
- package/build/client/_app/immutable/chunks/uFHn3SsP.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D6StH31U.js +2 -0
- package/build/client/_app/immutable/entry/app.D6StH31U.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D6StH31U.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B2z8DOZI.js +1 -0
- package/build/client/_app/immutable/entry/start.B2z8DOZI.js.br +0 -0
- package/build/client/_app/immutable/entry/start.B2z8DOZI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CKuUS76g.js +9 -0
- package/build/client/_app/immutable/nodes/0.CKuUS76g.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CKuUS76g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.ClSKcXXD.js +1 -0
- package/build/client/_app/immutable/nodes/1.ClSKcXXD.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.ClSKcXXD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.C1VYgF4o.js +10 -0
- package/build/client/_app/immutable/nodes/10.C1VYgF4o.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.C1VYgF4o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Cz3SoD3J.js +9 -0
- package/build/client/_app/immutable/nodes/11.Cz3SoD3J.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Cz3SoD3J.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.Ck8hTl9o.js +3 -0
- package/build/client/_app/immutable/nodes/12.Ck8hTl9o.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Ck8hTl9o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.uPkonAXk.js +2 -0
- package/build/client/_app/immutable/nodes/13.uPkonAXk.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.uPkonAXk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BhgJgo-p.js +6 -0
- package/build/client/_app/immutable/nodes/14.BhgJgo-p.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BhgJgo-p.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.C8fHy07w.js +1 -0
- package/build/client/_app/immutable/nodes/15.C8fHy07w.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.C8fHy07w.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BIiXdOvw.js +10 -0
- package/build/client/_app/immutable/nodes/16.BIiXdOvw.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BIiXdOvw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.UCTOPfQ9.js +1 -0
- package/build/client/_app/immutable/nodes/17.UCTOPfQ9.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.UCTOPfQ9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BIIxWe2_.js +3 -0
- package/build/client/_app/immutable/nodes/18.BIIxWe2_.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BIIxWe2_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.MIMOOdHv.js +1 -0
- package/build/client/_app/immutable/nodes/19.MIMOOdHv.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.MIMOOdHv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DtoFWLWO.js +28 -0
- package/build/client/_app/immutable/nodes/2.DtoFWLWO.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DtoFWLWO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.6wKzQBq7.js +14 -0
- package/build/client/_app/immutable/nodes/20.6wKzQBq7.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.6wKzQBq7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.5HKRevgQ.js +150 -0
- package/build/client/_app/immutable/nodes/21.5HKRevgQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.5HKRevgQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.D2Go4NAd.js +3 -0
- package/build/client/_app/immutable/nodes/22.D2Go4NAd.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.D2Go4NAd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.CD_BMpjF.js +2 -0
- package/build/client/_app/immutable/nodes/23.CD_BMpjF.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CD_BMpjF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.T-WCg51Y.js +25 -0
- package/build/client/_app/immutable/nodes/24.T-WCg51Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.T-WCg51Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BeupWX4f.js +5 -0
- package/build/client/_app/immutable/nodes/25.BeupWX4f.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.BeupWX4f.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.Yu_f5rJN.js +18 -0
- package/build/client/_app/immutable/nodes/26.Yu_f5rJN.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Yu_f5rJN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.CXVRuiJO.js +4 -0
- package/build/client/_app/immutable/nodes/28.CXVRuiJO.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.CXVRuiJO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CQz7EPod.js +2 -0
- package/build/client/_app/immutable/nodes/3.CQz7EPod.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CQz7EPod.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.Cn5WjjU2.js +6 -0
- package/build/client/_app/immutable/nodes/30.Cn5WjjU2.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.Cn5WjjU2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.X3AmUS0p.js +8 -0
- package/build/client/_app/immutable/nodes/31.X3AmUS0p.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.X3AmUS0p.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.ByxI0zka.js +2 -0
- package/build/client/_app/immutable/nodes/32.ByxI0zka.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.ByxI0zka.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.D3i9rpHh.js +5 -0
- package/build/client/_app/immutable/nodes/33.D3i9rpHh.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.D3i9rpHh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.0c6Z2Z6d.js +4 -0
- package/build/client/_app/immutable/nodes/34.0c6Z2Z6d.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.0c6Z2Z6d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.BWPVbOEr.js +3 -0
- package/build/client/_app/immutable/nodes/35.BWPVbOEr.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.BWPVbOEr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.CvLYsEYT.js +7 -0
- package/build/client/_app/immutable/nodes/36.CvLYsEYT.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.CvLYsEYT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.BJz6-lS3.js +2 -0
- package/build/client/_app/immutable/nodes/37.BJz6-lS3.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.BJz6-lS3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.D_9ntghd.js +4 -0
- package/build/client/_app/immutable/nodes/38.D_9ntghd.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.D_9ntghd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.HPPVcNOu.js +7 -0
- package/build/client/_app/immutable/nodes/39.HPPVcNOu.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.HPPVcNOu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Doi_SYLu.js +5 -0
- package/build/client/_app/immutable/nodes/4.Doi_SYLu.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Doi_SYLu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.CrsYdbJ2.js +6 -0
- package/build/client/_app/immutable/nodes/40.CrsYdbJ2.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.CrsYdbJ2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.gEqeY20t.js +23 -0
- package/build/client/_app/immutable/nodes/41.gEqeY20t.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.gEqeY20t.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.B2LWwGrT.js +1 -0
- package/build/client/_app/immutable/nodes/42.B2LWwGrT.js.br +1 -0
- package/build/client/_app/immutable/nodes/42.B2LWwGrT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.CdUnQCqR.js +6 -0
- package/build/client/_app/immutable/nodes/44.CdUnQCqR.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.CdUnQCqR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.B4uTy-0f.js +1 -0
- package/build/client/_app/immutable/nodes/5.B4uTy-0f.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.B4uTy-0f.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CmIB-igu.js +6 -0
- package/build/client/_app/immutable/nodes/6.CmIB-igu.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CmIB-igu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.D5kLV1OU.js +3 -0
- package/build/client/_app/immutable/nodes/9.D5kLV1OU.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.D5kLV1OU.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/ResizableRail.js-D0idmMXk.js +708 -0
- package/build/server/chunks/chunks/TaskView.js-d4_0kZ-e.js +3029 -0
- package/build/server/chunks/chunks/detail.js-DNmr2zHv.js +149 -0
- package/build/server/chunks/chunks/features.js-BhXyRT_1.js +181 -0
- package/build/server/chunks/chunks/feedback.js-CHXRyn5n.js +67 -0
- package/build/server/chunks/chunks/internal.js-O-vX00u6.js +151 -0
- package/build/server/chunks/chunks/livereview.js-FqdWoyiJ.js +261 -0
- package/build/server/chunks/chunks/marketplace-service.js-7cE4n6mo.js +557 -0
- package/build/server/chunks/chunks/package.js-X-RlQsSA.js +160 -0
- package/build/server/chunks/chunks/page.js-B6PDBS51.js +13 -0
- package/build/server/chunks/chunks/previewhelper.js-Cz95M8xJ.js +246 -0
- package/build/server/chunks/chunks/previewhelper2.js-CawzBO7t.js +214 -0
- package/build/server/chunks/chunks/repo.js-OOqVL99k.js +33 -0
- package/build/server/chunks/chunks/runtime.js-D7BWZr4r.js +26676 -0
- package/build/server/chunks/chunks/scribe.js-CrX8YPGp.js +1591 -0
- package/build/server/chunks/chunks/service.js-BNXHwz0z.js +1339 -0
- package/build/server/chunks/chunks/service2.js-K1G_0p9s.js +835 -0
- package/build/server/chunks/chunks/service3.js-DsuUdHqU.js +234 -0
- package/build/server/chunks/chunks/sessions.js-qcyBTO1C.js +534 -0
- package/build/server/chunks/chunks/settings.js-C5VqzDhW.js +379 -0
- package/build/server/chunks/chunks/starter.js-ClhdKcek.js +400 -0
- package/build/server/chunks/chunks/store.js-CBYhaqF1.js +334 -0
- package/build/server/chunks/chunks/tmux.js-BnFtiGpm.js +504 -0
- package/build/server/chunks/chunks/tools.js-CSWRR-_m.js +156 -0
- package/build/server/chunks/chunks/uploads.js-ZX2kg51N.js +107 -0
- package/build/server/chunks/chunks/view.js-8odN6g23.js +76 -0
- package/build/server/chunks/chunks/volume-2.js-BdrATtWy.js +24 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-BDWFdikr.js +116 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-fQe2vCi_.js +112 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-BVRNsIIW.js +63 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-ySb9KZ_-.js +79 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-BdAhPgNT.js +83 -0
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-Deuf72TK.js +68 -0
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-xQ85tCJ6.js +73 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js--A6MYR5G.js +158 -0
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-C9jkqC7K.js +57 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BX1LxrEa.js +75 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-C0J5w0FB.js +111 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-BTs5o7Mw.js +87 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-C8FKFafE.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-WkSY6nlu.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BJwI8Gmn.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DVXInXQI.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-KRUnXG1_.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-C3wD-Bsc.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-yknBiY0D.js +119 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DWcY1uoX.js +80 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-BOaD3IeK.js +91 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BoSwn8Tv.js +79 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-BdmoziWD.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CSSUNhkV.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-yZHelvlp.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-CUL8Pq_B.js +62 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-CEdzoclv.js +62 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BjVzUKNa.js +89 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-hDF9NFq_.js +87 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CQFmK6Jj.js +80 -0
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-BgL_OBuS.js +172 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Bj3ArJ8e.js +62 -0
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-Ytj8LRyz.js +71 -0
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-Bsw-coX5.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-BAq01f1Q.js +91 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-DuDvfPGO.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-DOA618e_.js +27 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-XXsEGuag.js +30 -0
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-AHdWEtIp.js +105 -0
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DzPUeQTi.js +74 -0
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-D_OL9OX2.js +122 -0
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-CsVJLGBv.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-B21zqtCS.js +97 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-D7dwIUHu.js +86 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DV8iGc2m.js +81 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-HOT8HzRk.js +78 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-TVTyRXGB.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Cpz_Nwq9.js +85 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DWCTugFd.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Dm0eRjNy.js +62 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BUs16W7B.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-COg9oQo8.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-oAXY6lwM.js +67 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-C4oBldsb.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BPPmeb1O.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-DcRonc0M.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-D650HWSB.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-bYzuM3AX.js +86 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DgBbAzui.js +67 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-I7Q9NEeo.js +76 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Cqsk5blC.js +88 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-DhcvEOaq.js +75 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-DnepVFAC.js +98 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-DW1M5BKY.js +81 -0
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Dw6RfG7L.js +476 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-B8bvA9DM.js +92 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-D6eYs2D1.js +71 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-q1F7JDi4.js +81 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-3dHJdpfk.js +141 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CuKl_RQf.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-CFd99DmZ.js +84 -0
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-C-2St0o7.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-vvMmWUno.js +73 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CLqanxiv.js +67 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DVxSMd63.js +86 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-2ZTB9AOc.js +113 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-Bqz9Jxq-.js +79 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-B7cAJcuZ.js +108 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-qGkkUc0n.js +127 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BVyk7T-v.js +82 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-BMwxujEw.js +84 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-40rgCCP-.js +85 -0
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-4PZyHkNr.js +24 -0
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BjhLHXXA.js +31 -0
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-0u91Zt3R.js +33 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-deys_OrX.js +97 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-CXK5O72T.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-VNIH1gz4.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DWmyyxxj.js +27 -0
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-BjRdBCjC.js +78 -0
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-C1DBUIIo.js +68 -0
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-D-qgAHe2.js +75 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-B_YfmtCr.js +87 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-B8wpApaS.js +66 -0
- package/build/server/chunks/entries/hooks.server.js-C2Jq471K.js +108 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-Bt-gmVC8.js +55 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-CkPHJ6iw.js +6023 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-DfN7-68h.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-Bp57ktWC.js +4907 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cmkth9fT.js +14 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-C0ulhk4E.js +16 -0
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-lb2y3RrU.js +15 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-C8K8Bywk.js +17 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-g48T0kd-.js +11 -0
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-BtYNItQA.js +16 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-BgSMH_CR.js +18 -0
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-BGT47EiL.js +18 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DBvqb-4n.js +16 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-C5lDScfS.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-OHtCg3ps.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-C5T5xtcE.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-4wFc1XPC.js +15 -0
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-BljSK7lM.js +25 -0
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-CXnAVg7S.js +37 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-C-gvokYd.js +11 -0
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-C5r6-ShC.js +13 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DGKwb104.js +12 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B3YDnmmB.js +18 -0
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-sFixjDN7.js +19 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-ORPe-Udr.js +16 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-DRjZBOes.js +15 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-CuJj3RFV.js +797 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-7_ZbhFWy.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BhiagNIi.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-Dgl8iOBp.js +17 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-KsPYJwiB.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BZZoApKT.js +11 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-GCgZEZdm.js +15 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-CPtKfR3g.js +161 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-BOorm5Wm.js +18 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Feuxftuj.js +36 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Bz5xWZGZ.js +121 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BMEYrcpa.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-CwBRGUi5.js +11 -0
- package/build/server/chunks/handler-HICo2rBa.js +1474 -0
- package/build/server/chunks/index.js-mXeyfwOL.js +4296 -0
- package/build/server/chunks/manifest.js-BXvg7MTn.js +1050 -0
- package/build/server/chunks/nodes/0.js-B6FWOub_.js +69 -0
- package/build/server/chunks/nodes/1.js-A3LTU5o8.js +9 -0
- package/build/server/chunks/nodes/10.js-CylXMpAM.js +67 -0
- package/build/server/chunks/nodes/11.js-COltHAQK.js +69 -0
- package/build/server/chunks/nodes/12.js-D4Upu6y1.js +68 -0
- package/build/server/chunks/nodes/13.js-DVK7Dh6e.js +69 -0
- package/build/server/chunks/nodes/14.js-4qz1fO9Q.js +12 -0
- package/build/server/chunks/nodes/15.js-ChjTgj9K.js +9 -0
- package/build/server/chunks/nodes/16.js-P8F-wWtO.js +9 -0
- package/build/server/chunks/nodes/17.js-DjuCCIpy.js +67 -0
- package/build/server/chunks/nodes/18.js-C993M6oc.js +70 -0
- package/build/server/chunks/nodes/19.js-D9Embfjr.js +68 -0
- package/build/server/chunks/nodes/2.js-Wc5kZHvb.js +67 -0
- package/build/server/chunks/nodes/20.js-BPRKQiIS.js +69 -0
- package/build/server/chunks/nodes/21.js-CUAn10i3.js +68 -0
- package/build/server/chunks/nodes/22.js-TBH6F4dy.js +69 -0
- package/build/server/chunks/nodes/23.js-szYvETrv.js +69 -0
- package/build/server/chunks/nodes/24.js-D3VP7c7Q.js +25 -0
- package/build/server/chunks/nodes/25.js-CBoW-4He.js +25 -0
- package/build/server/chunks/nodes/26.js-DzXVuGMS.js +9 -0
- package/build/server/chunks/nodes/27.js-rQgQSbRQ.js +25 -0
- package/build/server/chunks/nodes/28.js-Cd8QuiHE.js +67 -0
- package/build/server/chunks/nodes/3.js-DZsIWxJx.js +9 -0
- package/build/server/chunks/nodes/30.js-DoJvIlX5.js +68 -0
- package/build/server/chunks/nodes/31.js-D8IGmFgH.js +67 -0
- package/build/server/chunks/nodes/32.js-B20MERXQ.js +25 -0
- package/build/server/chunks/nodes/33.js-DOlfd37i.js +67 -0
- package/build/server/chunks/nodes/34.js-DWWZCvyG.js +25 -0
- package/build/server/chunks/nodes/35.js-oWOgHh8Z.js +22 -0
- package/build/server/chunks/nodes/36.js-DZ-lKaYT.js +67 -0
- package/build/server/chunks/nodes/37.js-eAJH-k_k.js +70 -0
- package/build/server/chunks/nodes/38.js-BNDRcNzX.js +69 -0
- package/build/server/chunks/nodes/39.js-o8Oz_jZ9.js +26 -0
- package/build/server/chunks/nodes/4.js-XBXJC9EJ.js +68 -0
- package/build/server/chunks/nodes/40.js-BruOvnJW.js +69 -0
- package/build/server/chunks/nodes/41.js-ygYBXXUn.js +71 -0
- package/build/server/chunks/nodes/42.js-DVVbf2pp.js +68 -0
- package/build/server/chunks/nodes/43.js-4kkcs8x3.js +68 -0
- package/build/server/chunks/nodes/44.js-Dz4_viSC.js +67 -0
- package/build/server/chunks/nodes/5.js-CESSNTmC.js +67 -0
- package/build/server/chunks/nodes/6.js-ReQxzqU3.js +67 -0
- package/build/server/chunks/nodes/8.js-Bp5GVhBi.js +67 -0
- package/build/server/chunks/nodes/9.js-hs2_Bguy.js +14 -0
- package/dist/cli.js +1 -1
- package/dist/wh-vault.js +1 -1
- package/firstmate-extension/firstmate-extension.json +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css +0 -1
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BBesepuR.js +0 -2
- package/build/client/_app/immutable/chunks/BBesepuR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBesepuR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BY1C16HZ.js +0 -3
- package/build/client/_app/immutable/chunks/BY1C16HZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BY1C16HZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BhOOgzoY.js +0 -1
- package/build/client/_app/immutable/chunks/BhOOgzoY.js.br +0 -0
- package/build/client/_app/immutable/chunks/BhOOgzoY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnPVAF08.js +0 -7
- package/build/client/_app/immutable/chunks/BnPVAF08.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnPVAF08.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BoV2Cb3u.js +0 -3
- package/build/client/_app/immutable/chunks/BoV2Cb3u.js.br +0 -0
- package/build/client/_app/immutable/chunks/BoV2Cb3u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BxUfJDlK.js +0 -3
- package/build/client/_app/immutable/chunks/BxUfJDlK.js.br +0 -0
- package/build/client/_app/immutable/chunks/BxUfJDlK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEqUfztC.js +0 -1
- package/build/client/_app/immutable/chunks/CEqUfztC.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEqUfztC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTPaAaT8.js +0 -1
- package/build/client/_app/immutable/chunks/CTPaAaT8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTPaAaT8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CidiHe2w.js +0 -1
- package/build/client/_app/immutable/chunks/CidiHe2w.js.br +0 -0
- package/build/client/_app/immutable/chunks/CidiHe2w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjpC_avs.js +0 -1
- package/build/client/_app/immutable/chunks/CjpC_avs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CjpC_avs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CqTNazs8.js +0 -3
- package/build/client/_app/immutable/chunks/CqTNazs8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CqTNazs8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cv8vU_7G.js +0 -1
- package/build/client/_app/immutable/chunks/Cv8vU_7G.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv8vU_7G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D0W-yI5k.js +0 -1
- package/build/client/_app/immutable/chunks/D0W-yI5k.js.br +0 -0
- package/build/client/_app/immutable/chunks/D0W-yI5k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2UqGNPw.js +0 -4
- package/build/client/_app/immutable/chunks/D2UqGNPw.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2UqGNPw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3m3qs9L.js +0 -5
- package/build/client/_app/immutable/chunks/D3m3qs9L.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3m3qs9L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5k4wnt7.js +0 -1
- package/build/client/_app/immutable/chunks/D5k4wnt7.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5k4wnt7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DN2Bw8XE.js +0 -1
- package/build/client/_app/immutable/chunks/DN2Bw8XE.js.br +0 -0
- package/build/client/_app/immutable/chunks/DN2Bw8XE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DWJRIYp5.js +0 -1
- package/build/client/_app/immutable/chunks/DWJRIYp5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DWJRIYp5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZhEGM3P.js +0 -2
- package/build/client/_app/immutable/chunks/DZhEGM3P.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZhEGM3P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De08PyIM.js +0 -2
- package/build/client/_app/immutable/chunks/De08PyIM.js.br +0 -0
- package/build/client/_app/immutable/chunks/De08PyIM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DgeYJw1V.js +0 -8
- package/build/client/_app/immutable/chunks/DgeYJw1V.js.br +0 -0
- package/build/client/_app/immutable/chunks/DgeYJw1V.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZFly2pmD.js +0 -6
- package/build/client/_app/immutable/chunks/ZFly2pmD.js.br +0 -0
- package/build/client/_app/immutable/chunks/ZFly2pmD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_sdkObeO.js +0 -1
- package/build/client/_app/immutable/chunks/_sdkObeO.js.br +0 -1
- package/build/client/_app/immutable/chunks/_sdkObeO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/v1_0RI9s.js +0 -1
- package/build/client/_app/immutable/chunks/v1_0RI9s.js.br +0 -0
- package/build/client/_app/immutable/chunks/v1_0RI9s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yLS4MyUX.js +0 -7
- package/build/client/_app/immutable/chunks/yLS4MyUX.js.br +0 -0
- package/build/client/_app/immutable/chunks/yLS4MyUX.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DHcKVmKY.js +0 -2
- package/build/client/_app/immutable/entry/app.DHcKVmKY.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DHcKVmKY.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Pwknkd-J.js +0 -1
- package/build/client/_app/immutable/entry/start.Pwknkd-J.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Pwknkd-J.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.d_V6I31n.js +0 -9
- package/build/client/_app/immutable/nodes/0.d_V6I31n.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.d_V6I31n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BHMHInUO.js +0 -1
- package/build/client/_app/immutable/nodes/1.BHMHInUO.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BHMHInUO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BSyzQxNk.js +0 -10
- package/build/client/_app/immutable/nodes/10.BSyzQxNk.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BSyzQxNk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js +0 -9
- package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.Cq63mXMK.js +0 -3
- package/build/client/_app/immutable/nodes/12.Cq63mXMK.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Cq63mXMK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BUbIjJfF.js +0 -2
- package/build/client/_app/immutable/nodes/13.BUbIjJfF.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BUbIjJfF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.Ddky97Wb.js +0 -6
- package/build/client/_app/immutable/nodes/14.Ddky97Wb.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.Ddky97Wb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.B4xWeGxa.js +0 -1
- package/build/client/_app/immutable/nodes/15.B4xWeGxa.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.B4xWeGxa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.LQrwVbEB.js +0 -10
- package/build/client/_app/immutable/nodes/16.LQrwVbEB.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.LQrwVbEB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DYmttVYk.js +0 -1
- package/build/client/_app/immutable/nodes/17.DYmttVYk.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DYmttVYk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.B2MYLx89.js +0 -3
- package/build/client/_app/immutable/nodes/18.B2MYLx89.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.B2MYLx89.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DXwfInRR.js +0 -1
- package/build/client/_app/immutable/nodes/19.DXwfInRR.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DXwfInRR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.F5N7XU8C.js +0 -28
- package/build/client/_app/immutable/nodes/2.F5N7XU8C.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.F5N7XU8C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.SAWcBx0p.js +0 -14
- package/build/client/_app/immutable/nodes/20.SAWcBx0p.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.SAWcBx0p.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.D6qFz2sa.js +0 -150
- package/build/client/_app/immutable/nodes/21.D6qFz2sa.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.D6qFz2sa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.tV2rJSEI.js +0 -3
- package/build/client/_app/immutable/nodes/22.tV2rJSEI.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.tV2rJSEI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.DuW8-oym.js +0 -2
- package/build/client/_app/immutable/nodes/23.DuW8-oym.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.DuW8-oym.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.CnP1JJLb.js +0 -25
- package/build/client/_app/immutable/nodes/24.CnP1JJLb.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CnP1JJLb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DeEfy92d.js +0 -5
- package/build/client/_app/immutable/nodes/25.DeEfy92d.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DeEfy92d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.D-8mzx-R.js +0 -18
- package/build/client/_app/immutable/nodes/26.D-8mzx-R.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.D-8mzx-R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.C2P7oxne.js +0 -4
- package/build/client/_app/immutable/nodes/28.C2P7oxne.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.C2P7oxne.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js +0 -2
- package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.CEgnqL0a.js +0 -6
- package/build/client/_app/immutable/nodes/30.CEgnqL0a.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.CEgnqL0a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BYFAiOJd.js +0 -8
- package/build/client/_app/immutable/nodes/31.BYFAiOJd.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BYFAiOJd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js +0 -2
- package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DRQLqVjL.js +0 -5
- package/build/client/_app/immutable/nodes/33.DRQLqVjL.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DRQLqVjL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.DTI61C_T.js +0 -4
- package/build/client/_app/immutable/nodes/34.DTI61C_T.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.DTI61C_T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.-X5S6mPa.js +0 -3
- package/build/client/_app/immutable/nodes/35.-X5S6mPa.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.-X5S6mPa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.jtWdNkRT.js +0 -7
- package/build/client/_app/immutable/nodes/36.jtWdNkRT.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.jtWdNkRT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.BL9MLXZv.js +0 -2
- package/build/client/_app/immutable/nodes/37.BL9MLXZv.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.BL9MLXZv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.CMuF_Clt.js +0 -4
- package/build/client/_app/immutable/nodes/38.CMuF_Clt.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.CMuF_Clt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.tiSwGz1u.js +0 -7
- package/build/client/_app/immutable/nodes/39.tiSwGz1u.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.tiSwGz1u.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.dUo8OlOh.js +0 -5
- package/build/client/_app/immutable/nodes/4.dUo8OlOh.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.dUo8OlOh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js +0 -6
- package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.CCo8O58Y.js +0 -23
- package/build/client/_app/immutable/nodes/41.CCo8O58Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.CCo8O58Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.CBMdYvRk.js +0 -1
- package/build/client/_app/immutable/nodes/42.CBMdYvRk.js.br +0 -0
- package/build/client/_app/immutable/nodes/42.CBMdYvRk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.CZPoIuC8.js +0 -6
- package/build/client/_app/immutable/nodes/44.CZPoIuC8.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.CZPoIuC8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.Dafp5GI5.js +0 -1
- package/build/client/_app/immutable/nodes/5.Dafp5GI5.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Dafp5GI5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BE696aJ4.js +0 -6
- package/build/client/_app/immutable/nodes/6.BE696aJ4.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BE696aJ4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DhQeTbmU.js +0 -3
- package/build/client/_app/immutable/nodes/9.DhQeTbmU.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DhQeTbmU.js.gz +0 -0
- package/build/server/chunks/chunks/ResizableRail.js-DWTZXucY.js +0 -708
- package/build/server/chunks/chunks/TaskView.js-Djh37gNV.js +0 -3029
- package/build/server/chunks/chunks/detail.js-DgGYGF6E.js +0 -149
- package/build/server/chunks/chunks/features.js-C0RFlCU9.js +0 -181
- package/build/server/chunks/chunks/feedback.js-C6iqEsPN.js +0 -67
- package/build/server/chunks/chunks/internal.js-DVvBSC2Y.js +0 -151
- package/build/server/chunks/chunks/livereview.js-BJxqrnBd.js +0 -261
- package/build/server/chunks/chunks/marketplace-service.js-rqq8C3T1.js +0 -557
- package/build/server/chunks/chunks/package.js-CVpRo49m.js +0 -160
- package/build/server/chunks/chunks/page.js-Zj6kzOqn.js +0 -13
- package/build/server/chunks/chunks/previewhelper.js-CUjqs8rl.js +0 -245
- package/build/server/chunks/chunks/previewhelper2.js-BfPvB6QX.js +0 -214
- package/build/server/chunks/chunks/repo.js-zZjENX9B.js +0 -33
- package/build/server/chunks/chunks/runtime.js-DcSUF_r8.js +0 -26530
- package/build/server/chunks/chunks/scribe.js-BwiXC-bJ.js +0 -1376
- package/build/server/chunks/chunks/service.js-D4yz0pF8.js +0 -1339
- package/build/server/chunks/chunks/service2.js-BzDKAz-w.js +0 -835
- package/build/server/chunks/chunks/service3.js-8zLUKBxg.js +0 -234
- package/build/server/chunks/chunks/sessions.js--Esog5VV.js +0 -534
- package/build/server/chunks/chunks/settings.js-D7vi6kH7.js +0 -379
- package/build/server/chunks/chunks/starter.js-JAh-nUu5.js +0 -400
- package/build/server/chunks/chunks/store.js-DHAfX_W5.js +0 -334
- package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +0 -504
- package/build/server/chunks/chunks/tools.js-BnmGImVp.js +0 -156
- package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +0 -107
- package/build/server/chunks/chunks/view.js-G_-xy6c3.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-B2J5-Jaz.js +0 -116
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js--wAlyFki.js +0 -112
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-BNkJb1Ei.js +0 -63
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-CE4ho2tR.js +0 -79
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-jEjvyX3L.js +0 -83
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-vYs_6t0J.js +0 -68
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-D6QVYL_4.js +0 -73
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-BJ3Ravc8.js +0 -158
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-BEPV7YR2.js +0 -57
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BcZoObuM.js +0 -75
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-CdU3fF0J.js +0 -111
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-XzPx-PzQ.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-CzXJdEjR.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-X5fNEQPZ.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BS5jyhRw.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DUhm2FN4.js +0 -71
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-Dm129oxx.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-CZVuQvpx.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CKJzfKIQ.js +0 -119
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-rgQhLN38.js +0 -80
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-E5Mf_VJv.js +0 -91
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-C4yUZjAY.js +0 -79
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-B86FNiew.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-rJYpVlFE.js +0 -62
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-D0Nr2g1y.js +0 -62
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CqTI0_pM.js +0 -89
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-VNW7HGOT.js +0 -87
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-BU-5ub-I.js +0 -80
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-brrrZ6Zb.js +0 -172
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Dhw2YuZk.js +0 -62
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-Dfoof_SQ.js +0 -71
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-CJ1FKLLp.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DpCseNhF.js +0 -91
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-D4LS14N_.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-oJKS0Y1M.js +0 -27
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-CiJNPYNd.js +0 -30
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-BvbgYeeF.js +0 -105
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +0 -74
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-CodtKfl8.js +0 -122
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-D1d85rzP.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-CC45m6Sr.js +0 -97
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-DRZ8098M.js +0 -86
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BHVex3Sd.js +0 -81
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-CXlTitlI.js +0 -78
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-C-b29jqN.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-C_DJ_pLg.js +0 -85
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-xnGpQeHD.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-zMwJlAc8.js +0 -62
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-44pVKE3k.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DWkAJEde.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-C-d6SYqR.js +0 -67
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BrosK67i.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-otCGnd88.js +0 -73
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BjoKSVe1.js +0 -77
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-DX72RZRk.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-CzlxdvlD.js +0 -86
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DZj1G9bN.js +0 -67
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C5UJ7mLX.js +0 -76
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-ClT0DY2-.js +0 -88
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-BPJkenRn.js +0 -75
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-Djs5J_D0.js +0 -98
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-CH-_wkku.js +0 -81
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-BGqL9IgY.js +0 -476
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-CZy6ifJ_.js +0 -92
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-B_SZ7MPW.js +0 -71
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-4zkQC71I.js +0 -81
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-CQ1vZ3MD.js +0 -141
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-B78jOuRe.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DZv8AryD.js +0 -84
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-fIpsUXJq.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BGaAEIbl.js +0 -73
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-ksbo_110.js +0 -67
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DkY1Gc2u.js +0 -86
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-KhbknjpT.js +0 -113
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-CViAXfb1.js +0 -79
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-gDOC8B1N.js +0 -108
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-D3Q8zW0q.js +0 -127
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-DIqci-Ed.js +0 -82
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-BybuPQi8.js +0 -84
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-oWGGEMWD.js +0 -85
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-_OAduKHo.js +0 -24
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-yAP1YQDd.js +0 -31
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-D_ecs712.js +0 -33
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-D1Z78xWD.js +0 -97
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BBFI9Moo.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-vAklFRiS.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DJsAgBb2.js +0 -27
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-CyCBaAZh.js +0 -78
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-CJgWNPC3.js +0 -68
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-zG5FVAtZ.js +0 -75
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DX_RntZ9.js +0 -87
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-CQOH8Ec_.js +0 -66
- package/build/server/chunks/entries/hooks.server.js-_T8-2Tdu.js +0 -108
- package/build/server/chunks/entries/pages/_layout.server.ts.js-BDFW8AE9.js +0 -55
- package/build/server/chunks/entries/pages/_layout.svelte.js-DsvCGNUI.js +0 -6023
- package/build/server/chunks/entries/pages/_page.server.ts.js-CQdBzftA.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-Er6DIvYo.js +0 -4886
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CmIcdp1K.js +0 -14
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-CP46-bdg.js +0 -16
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-DoRczVBi.js +0 -15
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-CZ5J1a0b.js +0 -17
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-B-dJ56_o.js +0 -11
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-FCGMZnS0.js +0 -16
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-C1IMl0G3.js +0 -18
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-CvH6UZxP.js +0 -18
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DYwy2QGP.js +0 -16
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-CdqA3d8R.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-Dgc8jz0C.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BHxIGyYx.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-BeGIXTTQ.js +0 -15
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-BxSyKg7G.js +0 -25
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-WjfloLST.js +0 -37
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-BHC_zI7E.js +0 -11
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +0 -13
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +0 -12
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-C6gVOPBz.js +0 -18
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-C28nfj0b.js +0 -19
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-DD6wxYn3.js +0 -16
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +0 -15
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-w65a8vFY.js +0 -797
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-Cf9cF9Bz.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-Cp-xHYfh.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-B0Yf6JFN.js +0 -17
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-DlITF4bJ.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BnmlV12r.js +0 -11
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Db7HqVFS.js +0 -15
- package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-qEc5nPtP.js +0 -178
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-BipeV31Z.js +0 -18
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-DHH6191x.js +0 -36
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-BLYEV0pM.js +0 -121
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DdNVejxy.js +0 -24
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-C6_FcMaS.js +0 -11
- package/build/server/chunks/handler-DHfoWPhz.js +0 -1474
- package/build/server/chunks/index.js-B6Yr1yas.js +0 -4296
- package/build/server/chunks/manifest.js-royf2dM1.js +0 -1050
- package/build/server/chunks/nodes/0.js-Dv68eeJF.js +0 -69
- package/build/server/chunks/nodes/1.js-Bxx2N9rK.js +0 -9
- package/build/server/chunks/nodes/10.js-zqhC3nkd.js +0 -67
- package/build/server/chunks/nodes/11.js-DTii3QXJ.js +0 -69
- package/build/server/chunks/nodes/12.js-C7XBevXO.js +0 -68
- package/build/server/chunks/nodes/13.js-CdiONLGC.js +0 -69
- package/build/server/chunks/nodes/14.js-Jv0pUrsU.js +0 -12
- package/build/server/chunks/nodes/15.js-Dbq_BT7w.js +0 -9
- package/build/server/chunks/nodes/16.js-DxoDzZTm.js +0 -9
- package/build/server/chunks/nodes/17.js-mUmz_n5H.js +0 -67
- package/build/server/chunks/nodes/18.js-uI_lyO4m.js +0 -70
- package/build/server/chunks/nodes/19.js-DOjvikEu.js +0 -68
- package/build/server/chunks/nodes/2.js-CsyDQ9CR.js +0 -67
- package/build/server/chunks/nodes/20.js-BhZ3mJKX.js +0 -69
- package/build/server/chunks/nodes/21.js-B5qpuRmg.js +0 -68
- package/build/server/chunks/nodes/22.js-DIBxNE7D.js +0 -69
- package/build/server/chunks/nodes/23.js-_XdUJeXm.js +0 -69
- package/build/server/chunks/nodes/24.js-DFXLT-Ko.js +0 -25
- package/build/server/chunks/nodes/25.js-CubMvH_3.js +0 -25
- package/build/server/chunks/nodes/26.js-xEySzqTy.js +0 -9
- package/build/server/chunks/nodes/27.js-CqinYfdy.js +0 -25
- package/build/server/chunks/nodes/28.js-5W6qLa9a.js +0 -67
- package/build/server/chunks/nodes/3.js-wGSl8npu.js +0 -9
- package/build/server/chunks/nodes/30.js-CvU5RIda.js +0 -68
- package/build/server/chunks/nodes/31.js-Cc2URZTj.js +0 -67
- package/build/server/chunks/nodes/32.js-BzCsYJ2M.js +0 -25
- package/build/server/chunks/nodes/33.js-CsNDupaq.js +0 -67
- package/build/server/chunks/nodes/34.js-tUO-53DO.js +0 -25
- package/build/server/chunks/nodes/35.js-CzPtBxQF.js +0 -22
- package/build/server/chunks/nodes/36.js-vG_Yz-ba.js +0 -67
- package/build/server/chunks/nodes/37.js-B_Wn1hwE.js +0 -70
- package/build/server/chunks/nodes/38.js-DJipjIA8.js +0 -69
- package/build/server/chunks/nodes/39.js-BZ83h5TG.js +0 -26
- package/build/server/chunks/nodes/4.js-ueU4Ep-j.js +0 -68
- package/build/server/chunks/nodes/40.js-nFgIGStD.js +0 -69
- package/build/server/chunks/nodes/41.js-Dfq_Yre5.js +0 -71
- package/build/server/chunks/nodes/42.js-Cb-ls2O-.js +0 -68
- package/build/server/chunks/nodes/43.js-CL7RkfbH.js +0 -68
- package/build/server/chunks/nodes/44.js-BxrjdnVk.js +0 -67
- package/build/server/chunks/nodes/5.js-BsbkF-v-.js +0 -67
- package/build/server/chunks/nodes/6.js-TEqG30Pn.js +0 -67
- package/build/server/chunks/nodes/8.js-CMqXiMJ-.js +0 -67
- package/build/server/chunks/nodes/9.js-D53SUe7a.js +0 -14
|
@@ -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, t as parseMateTaskId } from './runtime.js-DcSUF_r8.js';
|
|
10
|
-
import { runHelper } from './previewhelper2.js-BfPvB6QX.js';
|
|
11
|
-
import { d as defaultStateDir } from './store.js-DHAfX_W5.js';
|
|
12
|
-
import { r as runBounded, w as which } from './tmux.js-8vQMGgvb.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-BwiXC-bJ.js.map
|