@chrisjowen/wheelhouse 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/chunks/{Bvjx1IR1.js → 8WgbCzWs.js} +1 -1
- package/build/client/_app/immutable/chunks/8WgbCzWs.js.br +0 -0
- package/build/client/_app/immutable/chunks/8WgbCzWs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Rgz0--W-.js → B1V3Ajhv.js} +1 -1
- package/build/client/_app/immutable/chunks/B1V3Ajhv.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1V3Ajhv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BQ56-tK5.js → BACvplXC.js} +2 -2
- package/build/client/_app/immutable/chunks/BACvplXC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BACvplXC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BG4ZPCNg.js → BBYXgHkS.js} +1 -1
- package/build/client/_app/immutable/chunks/BBYXgHkS.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBYXgHkS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CCwsNQVJ.js → BVzdpycb.js} +1 -1
- package/build/client/_app/immutable/chunks/BVzdpycb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVzdpycb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DHpOAFQk.js → BXnxklRE.js} +1 -1
- package/build/client/_app/immutable/chunks/BXnxklRE.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXnxklRE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Do3aY-pJ.js → BvA9ozND.js} +1 -1
- package/build/client/_app/immutable/chunks/BvA9ozND.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvA9ozND.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CVZBXS_-.js → C00jDMn9.js} +1 -1
- package/build/client/_app/immutable/chunks/C00jDMn9.js.br +0 -0
- package/build/client/_app/immutable/chunks/{CVZBXS_-.js.gz → C00jDMn9.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{De2vcdXM.js → C6jVoo_e.js} +1 -1
- package/build/client/_app/immutable/chunks/C6jVoo_e.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6jVoo_e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BPcURVOt.js → CBDCrDpK.js} +1 -1
- package/build/client/_app/immutable/chunks/CBDCrDpK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CBDCrDpK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CPGokFxi.js → CCIw75Yv.js} +1 -1
- package/build/client/_app/immutable/chunks/CCIw75Yv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCIw75Yv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{bFJ0wt-E.js → CFTCozxo.js} +1 -1
- package/build/client/_app/immutable/chunks/CFTCozxo.js.br +0 -0
- package/build/client/_app/immutable/chunks/CFTCozxo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{yNn5dmAl.js → CNX1VoIh.js} +1 -1
- package/build/client/_app/immutable/chunks/CNX1VoIh.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNX1VoIh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B-0qqE45.js → CNvNrJS-.js} +1 -1
- package/build/client/_app/immutable/chunks/CNvNrJS-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNvNrJS-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CIMsnGRb.js → CUE4X2zW.js} +1 -1
- package/build/client/_app/immutable/chunks/CUE4X2zW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CUE4X2zW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DupmVJLw.js → CUngZJag.js} +1 -1
- package/build/client/_app/immutable/chunks/CUngZJag.js.br +0 -0
- package/build/client/_app/immutable/chunks/CUngZJag.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{YAQH2TLS.js → Cbb01QYB.js} +1 -1
- package/build/client/_app/immutable/chunks/Cbb01QYB.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cbb01QYB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BOy3K7xN.js → CwMBkOM6.js} +1 -1
- package/build/client/_app/immutable/chunks/CwMBkOM6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CwMBkOM6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{1c_L7VrA.js → Duo3wamr.js} +1 -1
- package/build/client/_app/immutable/chunks/Duo3wamr.js.br +0 -0
- package/build/client/_app/immutable/chunks/Duo3wamr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CeEmbWm6.js → H9HCKj99.js} +1 -1
- package/build/client/_app/immutable/chunks/H9HCKj99.js.br +0 -0
- package/build/client/_app/immutable/chunks/H9HCKj99.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DmM4WIRE.js → s22ocs02.js} +1 -1
- package/build/client/_app/immutable/chunks/s22ocs02.js.br +0 -0
- package/build/client/_app/immutable/chunks/s22ocs02.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{OLaJBqkk.js → s_pTaNbp.js} +1 -1
- package/build/client/_app/immutable/chunks/s_pTaNbp.js.br +0 -0
- package/build/client/_app/immutable/chunks/s_pTaNbp.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.DFIrP568.js → app.uuGtI25T.js} +2 -2
- package/build/client/_app/immutable/entry/app.uuGtI25T.js.br +0 -0
- package/build/client/_app/immutable/entry/app.uuGtI25T.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BSrz3Y1X.js +1 -0
- package/build/client/_app/immutable/entry/start.BSrz3Y1X.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BSrz3Y1X.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.DnTfQD5x.js → 0.DHLw1DuY.js} +1 -1
- package/build/client/_app/immutable/nodes/0.DHLw1DuY.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DHLw1DuY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.DYf3eeEz.js → 1.BuIhidhM.js} +1 -1
- package/build/client/_app/immutable/nodes/{1.DYf3eeEz.js.br → 1.BuIhidhM.js.br} +0 -0
- package/build/client/_app/immutable/nodes/1.BuIhidhM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.Tup2MsME.js → 10.E-WSN4T5.js} +1 -1
- package/build/client/_app/immutable/nodes/10.E-WSN4T5.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.E-WSN4T5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.CeQYv8eh.js → 11.CvugthMP.js} +1 -1
- package/build/client/_app/immutable/nodes/11.CvugthMP.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CvugthMP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.B8vOqWp-.js → 12.Fzr8RW6d.js} +1 -1
- package/build/client/_app/immutable/nodes/12.Fzr8RW6d.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Fzr8RW6d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.CWPNAkXZ.js → 13.BjOr1wFE.js} +1 -1
- package/build/client/_app/immutable/nodes/13.BjOr1wFE.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BjOr1wFE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.BomHFWNP.js → 14.DcPZGJeS.js} +1 -1
- package/build/client/_app/immutable/nodes/14.DcPZGJeS.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DcPZGJeS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.D7wICcdV.js → 15.Bq0AXBlK.js} +1 -1
- package/build/client/_app/immutable/nodes/15.Bq0AXBlK.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.Bq0AXBlK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.CwYX0DD0.js → 16.GK549RnR.js} +1 -1
- package/build/client/_app/immutable/nodes/16.GK549RnR.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.GK549RnR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.CP6SSMQz.js → 17.C6Xme4bR.js} +1 -1
- package/build/client/_app/immutable/nodes/17.C6Xme4bR.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.C6Xme4bR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{18.dinO_mGJ.js → 18.DA2gN3Zp.js} +1 -1
- package/build/client/_app/immutable/nodes/18.DA2gN3Zp.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.DA2gN3Zp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.B3LIDplG.js → 19.OMjVNIrY.js} +1 -1
- package/build/client/_app/immutable/nodes/19.OMjVNIrY.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.OMjVNIrY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.Ds7AG1Sp.js → 2.OhKE5yg3.js} +1 -1
- package/build/client/_app/immutable/nodes/2.OhKE5yg3.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.OhKE5yg3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.GeOCbpc_.js → 21.C2Elewbr.js} +1 -1
- package/build/client/_app/immutable/nodes/21.C2Elewbr.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.C2Elewbr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.BhQVufuj.js → 23.BQ06Ajmr.js} +1 -1
- package/build/client/_app/immutable/nodes/23.BQ06Ajmr.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.BQ06Ajmr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.D1qQjP2S.js → 24.CyKUK8Wm.js} +1 -1
- package/build/client/_app/immutable/nodes/24.CyKUK8Wm.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CyKUK8Wm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.DjtNBrX-.js → 25.BfpY0ghB.js} +1 -1
- package/build/client/_app/immutable/nodes/25.BfpY0ghB.js.br +0 -0
- package/build/client/_app/immutable/nodes/{25.DjtNBrX-.js.gz → 25.BfpY0ghB.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{26.1W95w8Kh.js → 26.Drzj3UR-.js} +1 -1
- package/build/client/_app/immutable/nodes/26.Drzj3UR-.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Drzj3UR-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{27.DuJzt0BC.js → 27.DHASVqGW.js} +1 -1
- package/build/client/_app/immutable/nodes/27.DHASVqGW.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.DHASVqGW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.BcUVR-We.js → 28.BNb2AUP8.js} +1 -1
- package/build/client/_app/immutable/nodes/28.BNb2AUP8.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BNb2AUP8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{29.CSQdxeSK.js → 29.jpTIxdq3.js} +1 -1
- package/build/client/_app/immutable/nodes/29.jpTIxdq3.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.jpTIxdq3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.Dysdqlw7.js → 3.pAUOFGEO.js} +1 -1
- package/build/client/_app/immutable/nodes/3.pAUOFGEO.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.pAUOFGEO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{30.BFp98q1T.js → 30.BQ2dL-8_.js} +1 -1
- package/build/client/_app/immutable/nodes/30.BQ2dL-8_.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BQ2dL-8_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{31.DMpLzXiB.js → 31.C5KnXHFg.js} +1 -1
- package/build/client/_app/immutable/nodes/31.C5KnXHFg.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.C5KnXHFg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{32.CnTU-Fay.js → 32.D5rROnzU.js} +1 -1
- package/build/client/_app/immutable/nodes/32.D5rROnzU.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.D5rROnzU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{34.D2flYQ6C.js → 34.DL3OSrSy.js} +1 -1
- package/build/client/_app/immutable/nodes/34.DL3OSrSy.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.DL3OSrSy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CWkCY0Gp.js → 4.BtyNCyAc.js} +1 -1
- package/build/client/_app/immutable/nodes/4.BtyNCyAc.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BtyNCyAc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.8mHB8XXE.js → 5.Cg22lw4L.js} +1 -1
- package/build/client/_app/immutable/nodes/5.Cg22lw4L.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Cg22lw4L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.DkWdKRyC.js → 8.BohzG6Ll.js} +1 -1
- package/build/client/_app/immutable/nodes/8.BohzG6Ll.js.br +0 -0
- package/build/client/_app/immutable/nodes/{8.DkWdKRyC.js.gz → 8.BohzG6Ll.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/9.tKLlJBbl.js +9 -0
- package/build/client/_app/immutable/nodes/9.tKLlJBbl.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.tKLlJBbl.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/{detail.js-DxYLE5pO.js → detail.js-h2WY9B-a.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-CXkVSg-e.js → feedback.js-DtdkVGaR.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-P5l_A-5A.js → internal.js-znYfQ1HJ.js} +3 -3
- package/build/server/chunks/chunks/{marketplace-service.js-CGVSX8p6.js → marketplace-service.js-qgfTmeMS.js} +2 -2
- package/build/server/chunks/chunks/{package.js-BDDNJbGn.js → package.js-B5dZmzVs.js} +2 -2
- package/build/server/chunks/chunks/{page.js-BgfXtu-S.js → page.js-C1VI5Agm.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-NdpLxkBo.js → previewhelper2.js-pH32HExn.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-CyflQovd.js → repo.js-TzM_q4Ml.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-D2Y_y1vM.js → runtime.js-iskKh3WS.js} +142 -14
- package/build/server/chunks/chunks/{service.js-CcUA1MNf.js → service.js-B8uVAAJO.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-Bcz1_dhB.js → service2.js-DJscZN-9.js} +2 -2
- package/build/server/chunks/chunks/{settings.js-0qSOXxJ2.js → settings.js-jCWCFSel.js} +2 -2
- package/build/server/chunks/chunks/{starter.js-B1Io2RMM.js → starter.js-CNnOITdO.js} +3 -3
- package/build/server/chunks/chunks/{view.js-BgivR0p2.js → view.js-Dt9V6vBw.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-CtVCWCgm.js → _server.ts.js-BWmPum-r.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-DTQ6l-_K.js → _server.ts.js-CHr6cC6-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-DVqDb5ph.js → _server.ts.js-DMcUFEkU.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/crew/{_server.ts.js-DVKRUKVj.js → _server.ts.js--5-v-HEh.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/crew/messages/{_server.ts.js-bZHq-SMc.js → _server.ts.js-Hzw53ZE9.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-DTxFJR1V.js → _server.ts.js-DQs18R-c.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-du3b3Ua-.js → _server.ts.js-C3h1JVSm.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-DNDT3Z4d.js → _server.ts.js-0fuU3CZy.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/{_server.ts.js-B8O-PapK.js → _server.ts.js-BIpJu9lv.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/{_server.ts.js-n8fHjcWz.js → _server.ts.js-1qStOVIz.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/{_server.ts.js-uLIM5Rap.js → _server.ts.js-DPB-BXzL.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-BmfvCF25.js → _server.ts.js-PQdfiXhT.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DLvuxrgl.js → _server.ts.js-CgwfyIcM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-BdE7Nbi8.js → _server.ts.js-DB-goAvl.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-C5hgha-_.js → _server.ts.js-vfQiQrWY.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-BuYdy0_e.js → _server.ts.js-CH9cWr6L.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-D8ix-KMV.js → _server.ts.js-DYIjWXk_.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-DCrszJBd.js → _server.ts.js-Dwj64bp4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/{_server.ts.js-DiRR2F11.js → _server.ts.js-2oBSUOwH.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-uy69dgQl.js → _server.ts.js-BOm196n5.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-aWmREBg4.js → _server.ts.js-Dzh2dz63.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BxMzoJpi.js → _server.ts.js-BVcRcLBW.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-Dyd0MZRM.js → _server.ts.js-mtSppklX.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/following/{_server.ts.js-B_cXfz2Y.js → _server.ts.js-CeMDSH3a.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-ZDiOr7_Q.js → _server.ts.js-BJghUuJZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-CUma0b0j.js → _server.ts.js-CaEPa3qc.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-fjQ2v9Ce.js → _server.ts.js-BXk4ftaK.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-WZowbKT7.js → _server.ts.js-Cx9tobhn.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DzBIDGRQ.js → _server.ts.js-CxnHx_UG.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-BiHE49Iv.js → _server.ts.js-zzleI1kG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DLIcirzt.js → _server.ts.js-DDL6pYDf.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-utxduCZr.js → _server.ts.js-Cjokk0EA.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-f0B4cC8P.js → _server.ts.js-DW1Y6-fs.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-DnD5DtX6.js → _server.ts.js-C8cuYPAi.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DpihWANb.js → _server.ts.js-BOoflE2z.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-KUYI13Aa.js → _server.ts.js-DdblLh1l.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-DhVmKcI9.js → _server.ts.js-aoiQJ5ui.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-D_tX9zNT.js → _server.ts.js-B8dcLLk8.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-D6rcu4Aq.js → _server.ts.js-CBvDp3iX.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-CarsSrsd.js → _server.ts.js-C1Vy8kpH.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-Dhu23C6L.js → _server.ts.js-D0JnNPDZ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-BjSLckyg.js → _server.ts.js-DyeK2SOL.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CEhSuDsm.js → _server.ts.js-BDnl2dEb.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-De82q9RO.js → _server.ts.js-C2YEnDJy.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-CmLpNwYf.js → _server.ts.js-DYvELKvA.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DJ3zl97H.js → _server.ts.js-Bu7EKOYw.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-RAts5XHT.js → _server.ts.js-Ks8nxeIT.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-DrIMVE1H.js → _server.ts.js-Cj3-7RBt.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/{_server.ts.js-1Ds5x_14.js → _server.ts.js-BKuYRWDZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-DmR6P1jj.js → _server.ts.js-qlyQmm3t.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-L-UHmfql.js → _server.ts.js-b8w5BaH9.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-gtT9iS_p.js → _server.ts.js-CbRX-qIU.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-C2Y5B6rW.js → _server.ts.js-DvTNqcoC.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-c-TVwbRQ.js → _server.ts.js-BajPdJ_c.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-D29QxZKX.js → _server.ts.js-CnqOshFr.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/{_server.ts.js-Cy9CBznv.js → _server.ts.js-C5v9kl6f.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-_yBEHTVc.js → _server.ts.js-mRxlCUEZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BEz3gaAM.js → _server.ts.js-QYrbIt8N.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CrGpz4qm.js → _server.ts.js-yjFea8cM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-sH01ulMQ.js → _server.ts.js-NaaYRC-R.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BOVzuP-v.js → _server.ts.js-B33Rq8m0.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/wh-events/{_server.ts.js-CdpcII5l.js → _server.ts.js-IkzH2tH_.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-BPQoTrFi.js → _server.ts.js-GxOCpSB8.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-B6sAaEgs.js → _server.ts.js-BYjgkknY.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-Bn4SoRIm.js → _server.ts.js-IaA8CDCk.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-AYH3pZmL.js → _server.ts.js-BmgMztzl.js} +3 -3
- package/build/server/chunks/entries/{hooks.server.js-D6a2gyRp.js → hooks.server.js-CqRRwrz6.js} +5 -5
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-CvHliDGo.js → _layout.server.ts.js-BwBuidlK.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.server.ts.js-BSjI8PFH.js → _page.server.ts.js-B25LNBfB.js} +2 -2
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-CugjhhJ0.js → _page.server.ts.js-VoIJpJDg.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-DRIsp4Z8.js → _page.server.ts.js-D8B_Ju1Z.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-Cy8Z9bx2.js → _page.server.ts.js-CybDTQNP.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-CBlLK4ps.js → _page.server.ts.js-CximdI4O.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-CO4Z6ira.js → _page.server.ts.js-Dnr6wtnN.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.svelte.js-Bax8UYm0.js → _page.svelte.js-vvwNnV07.js} +122 -15
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-DGZW2L8Q.js → _page.server.ts.js-DjZU2DUj.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-vWTk7VOf.js → _page.server.ts.js-CA69sVMV.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-PlLgOOyO.js → _page.server.ts.js-ZsfeRt8m.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-BLuhmEnf.js → _page.server.ts.js-B4tTrS9b.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-qgMZkmkx.js → _page.server.ts.js-D_EEOAsF.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-935RdFbz.js → _page.server.ts.js-Du3_ZEEX.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-CSdxnjGK.js → _page.server.ts.js-CZBDXh7w.js} +2 -2
- package/build/server/chunks/entries/pages/settings/chat/{_page.server.ts.js-opY1gfOw.js → _page.server.ts.js-DjBwvkNT.js} +2 -2
- package/build/server/chunks/entries/pages/settings/events/{_page.server.ts.js-DYo-qcBu.js → _page.server.ts.js-C5XnUVOt.js} +2 -2
- package/build/server/chunks/entries/pages/settings/firstmate/{_page.server.ts.js-C8Tad0XT.js → _page.server.ts.js-BUDD0h_g.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-QvEiw0LD.js → _page.server.ts.js-VjLJiwM9.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-Cul9MxiY.js → _page.server.ts.js-uvSSB2Oi.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-iJh09d16.js → _page.server.ts.js-CKiqKIDc.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-DKYLb57v.js → _page.server.ts.js-Bs0UiYXi.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-D9a8uPep.js → _page.server.ts.js-CUlxKtsU.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-D67sZMdF.js → _page.server.ts.js-kecZ3ABg.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DAkSnSQA.js → _page.server.ts.js-RTy8XT8u.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-CQE8Ijr4.js → _page.server.ts.js-Pqf3ZwCG.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-Db0rnwb5.js → _page.server.ts.js-CwWtq4ff.js} +2 -2
- package/build/server/chunks/{handler-D0Goy_gj.js → handler-OfGhsd7S.js} +3 -3
- package/build/server/chunks/{index.js-pXu9ObUY.js → index.js-5hwgreGG.js} +2 -2
- package/build/server/chunks/{manifest.js-Do1T4-VF.js → manifest.js-DWiMrbal.js} +100 -100
- package/build/server/chunks/nodes/{0.js-BZTsbmJz.js → 0.js-CMzJ5YpG.js} +6 -6
- package/build/server/chunks/nodes/{1.js-CdP0WXa2.js → 1.js-CoCqnACa.js} +2 -2
- package/build/server/chunks/nodes/{10.js-CNrino7f.js → 10.js-CV5WUHV6.js} +5 -5
- package/build/server/chunks/nodes/{11.js-DGF3qkTE.js → 11.js-DuaSbp-S.js} +2 -2
- package/build/server/chunks/nodes/{12.js-1BjONRNw.js → 12.js-XW39r-BU.js} +2 -2
- package/build/server/chunks/nodes/{13.js-DKhpmZJk.js → 13.js-CNwOSurV.js} +5 -5
- package/build/server/chunks/nodes/{14.js-C0nSMejk.js → 14.js-B60MQoH_.js} +6 -6
- package/build/server/chunks/nodes/{15.js-Bv9h9CZN.js → 15.js-YPgyj4p-.js} +6 -6
- package/build/server/chunks/nodes/{16.js-CQJ-fJmL.js → 16.js-mT1tG4MP.js} +7 -7
- package/build/server/chunks/nodes/{17.js-DfTBudeO.js → 17.js-CjbiiilI.js} +6 -6
- package/build/server/chunks/nodes/{18.js-CPQ8qvV7.js → 18.js-D0fseh8H.js} +7 -7
- package/build/server/chunks/nodes/{19.js-QxfpabCN.js → 19.js-CVpld47s.js} +2 -2
- package/build/server/chunks/nodes/{2.js-DHnUGSut.js → 2.js-CFdtvdkb.js} +5 -5
- package/build/server/chunks/nodes/{21.js-CyU03Rv0.js → 21.js-DS5xmOBk.js} +5 -5
- package/build/server/chunks/nodes/{23.js-Duh3S-2m.js → 23.js-CD-OGmM6.js} +5 -5
- package/build/server/chunks/nodes/{24.js-BSW5HPZi.js → 24.js-c8wXfmlV.js} +2 -2
- package/build/server/chunks/nodes/{25.js-D-_N0Mbw.js → 25.js-B59EsG7D.js} +5 -5
- package/build/server/chunks/nodes/{26.js-BvY1ynuu.js → 26.js-DkHqtg17.js} +7 -7
- package/build/server/chunks/nodes/{27.js-CkuIeOqp.js → 27.js-CxaZun20.js} +5 -5
- package/build/server/chunks/nodes/{28.js-CITEOjWA.js → 28.js-CywEF58D.js} +5 -5
- package/build/server/chunks/nodes/{29.js-v2pVe4SR.js → 29.js-CZ_UpAay.js} +6 -6
- package/build/server/chunks/nodes/{3.js-CCBAkyWc.js → 3.js-CN1M_JdV.js} +2 -2
- package/build/server/chunks/nodes/{30.js-CqZkNWNo.js → 30.js-Di1OUQf9.js} +4 -4
- package/build/server/chunks/nodes/{31.js-D6hGifSX.js → 31.js-Cy0B83mg.js} +6 -6
- package/build/server/chunks/nodes/{32.js-DUZFV2hq.js → 32.js-CnFTWdO1.js} +6 -6
- package/build/server/chunks/nodes/{33.js-fhp8akGp.js → 33.js-2Yv4Z1FK.js} +5 -5
- package/build/server/chunks/nodes/{34.js-vu6Q9-ea.js → 34.js-DnNFCPcR.js} +5 -5
- package/build/server/chunks/nodes/{4.js-CHh9z8tT.js → 4.js-CQm39RYP.js} +5 -5
- package/build/server/chunks/nodes/{5.js-BBqBq22l.js → 5.js-CqcHx4uC.js} +5 -5
- package/build/server/chunks/nodes/{7.js-BI4oQA5p.js → 7.js-BsPk-yGL.js} +4 -4
- package/build/server/chunks/nodes/{8.js-DA9me9XO.js → 8.js-B5oF6ymd.js} +5 -5
- package/build/server/chunks/nodes/{9.js-BoVoGe6z.js → 9.js-C8L8k8Gd.js} +6 -6
- 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/skills/manage-wheelhouse/references/operations.md +2 -2
- package/build/client/_app/immutable/chunks/1c_L7VrA.js.br +0 -0
- package/build/client/_app/immutable/chunks/1c_L7VrA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-0qqE45.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-0qqE45.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BG4ZPCNg.js.br +0 -0
- package/build/client/_app/immutable/chunks/BG4ZPCNg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOy3K7xN.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOy3K7xN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPcURVOt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPcURVOt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQ56-tK5.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQ56-tK5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bvjx1IR1.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bvjx1IR1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCwsNQVJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCwsNQVJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIMsnGRb.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIMsnGRb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPGokFxi.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPGokFxi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CVZBXS_-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeEmbWm6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeEmbWm6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHpOAFQk.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHpOAFQk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De2vcdXM.js.br +0 -0
- package/build/client/_app/immutable/chunks/De2vcdXM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmM4WIRE.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmM4WIRE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Do3aY-pJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Do3aY-pJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DupmVJLw.js.br +0 -0
- package/build/client/_app/immutable/chunks/DupmVJLw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OLaJBqkk.js.br +0 -0
- package/build/client/_app/immutable/chunks/OLaJBqkk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Rgz0--W-.js.br +0 -0
- package/build/client/_app/immutable/chunks/Rgz0--W-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YAQH2TLS.js.br +0 -2
- package/build/client/_app/immutable/chunks/YAQH2TLS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bFJ0wt-E.js.br +0 -0
- package/build/client/_app/immutable/chunks/bFJ0wt-E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yNn5dmAl.js.br +0 -0
- package/build/client/_app/immutable/chunks/yNn5dmAl.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DFIrP568.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DFIrP568.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C06u36g3.js +0 -1
- package/build/client/_app/immutable/entry/start.C06u36g3.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C06u36g3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DnTfQD5x.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DnTfQD5x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DYf3eeEz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Tup2MsME.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Tup2MsME.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CeQYv8eh.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CeQYv8eh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.B8vOqWp-.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.B8vOqWp-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CWPNAkXZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CWPNAkXZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BomHFWNP.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BomHFWNP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.D7wICcdV.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.D7wICcdV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.CwYX0DD0.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CwYX0DD0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CP6SSMQz.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CP6SSMQz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.dinO_mGJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.dinO_mGJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.B3LIDplG.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.B3LIDplG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.Ds7AG1Sp.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Ds7AG1Sp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.GeOCbpc_.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.GeOCbpc_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.BhQVufuj.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.BhQVufuj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.D1qQjP2S.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.D1qQjP2S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DjtNBrX-.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.1W95w8Kh.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.1W95w8Kh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.DuJzt0BC.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.DuJzt0BC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.BcUVR-We.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BcUVR-We.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.CSQdxeSK.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.CSQdxeSK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Dysdqlw7.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Dysdqlw7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.BFp98q1T.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BFp98q1T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.DMpLzXiB.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.DMpLzXiB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.CnTU-Fay.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.CnTU-Fay.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.D2flYQ6C.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.D2flYQ6C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CWkCY0Gp.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CWkCY0Gp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.8mHB8XXE.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.8mHB8XXE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DkWdKRyC.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js +0 -7
- package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a,g as h,q as d,k as f}from"./-7ouQdsG.js";import{p as S,S as g,f as u,a as O,v as z,o as j,b as I,c as D,l as E,d as q}from"./
|
|
1
|
+
import{j as a,g as h,q as d,k as f}from"./-7ouQdsG.js";import{p as S,S as g,f as u,a as O,v as z,o as j,b as I,c as D,l as E,d as q}from"./BBYXgHkS.js";import{S as m}from"./BXN538J3.js";class x{#e=a(null);get value(){return h(this.#e)}set value(e){d(this.#e,e,!0)}#t=a(f({}));get snoozed(){return h(this.#t)}set snoozed(e){d(this.#t,e,!0)}#s=a(f({}));get pending(){return h(this.#s)}set pending(e){d(this.#s,e,!0)}#i=a(f({}));get errors(){return h(this.#i)}set errors(e){d(this.#i,e,!0)}#o=a(f({}));get followed(){return h(this.#o)}set followed(e){d(this.#o,e,!0)}timer=null;loaded=!1;seed(e){e&&!this.value&&(this.value=e)}load(){if(!this.loaded){this.loaded=!0;try{this.snoozed=S(localStorage.getItem(g),Date.now())}catch{this.snoozed={}}}}refresh(e=400){this.timer||(this.timer=setTimeout(async()=>{this.timer=null,await this.read()},e))}async read(){try{const e=await fetch("/api/inbox");if(!e.ok)return;const t=await e.json();this.value=t,this.followed=Object.fromEntries(Object.entries(this.followed).filter(([s,r])=>{const o=t.cards.filter(n=>u(n)===s);return o.length>0&&!o.some(n=>(n.following??null)===r)}));const i=(s,r)=>t.cards.some(o=>o.id===s&&o.question===r&&!o.sent);this.pending=Object.fromEntries(Object.entries(this.pending).filter(([s,r])=>!r.posted||i(s,r.question)))}catch{}}view(e){return this.value??e??null}cards(e){return(this.view(e)?.cards??[]).filter(t=>this.pending[t.id]?.question!==t.question).map(t=>{const i=u(t);return i in this.followed?{...t,following:O(this.followed[i],t.askedAt)}:t})}shown(e,t){return z(this.cards(t),this.snoozed,e)}open(e){return j(this.cards(),this.snoozed,e)}forTask(e,t){return this.cards(t).filter(i=>i.taskId===e&&i.kind!=="merge"&&I(i))}hasDecision(e,t){const i=this.view(t);return!!i?.available&&i.cards.some(s=>s.taskId===e&&s.kind!=="merge")}stampFor(e){const t=this.pending[e];return t?t.choice==="close"?"Dismissed":"Answered":(this.snoozed[e]??0)>Date.now()?"Later":null}later(e){this.snoozed={...E(this.snoozed,Date.now()),[e]:Date.now()+D},this.save()}wake(e){e&&!this.snoozed[e]||(this.snoozed=e?Object.fromEntries(Object.entries(this.snoozed).filter(([t])=>t!==e)):{},this.save())}save(){try{localStorage.setItem(g,JSON.stringify(this.snoozed))}catch{}}async follow(e,t,i){const s=u(e),r=s in this.followed?this.followed[s]:void 0;this.followed={...this.followed,[s]:t?new Date().toISOString():null};try{const o=await fetch("/api/inbox/following",{method:"POST",headers:{"content-type":"application/json",[m]:i},body:JSON.stringify({taskId:s,following:t})});if(!o.ok)throw new Error;const n=await o.json().catch(()=>null);return this.followed={...this.followed,[s]:n?.following??null},this.refresh(0),!0}catch{const{[s]:o,...n}=this.followed;return this.followed=r===void 0?n:{...n,[s]:r},!1}}complain(e,t){this.errors={...this.errors,[e]:t}}async answer(e,t,i,s,r=null,o=null){const n=t==="approve"&&e.choices&&!o?q(e.choices,r??{}):null;if(n&&!n.ok)return this.complain(e.id,n.error),!1;const{[e.id]:T,...y}=this.errors;this.errors=y;const v=o??(n?.ok?n.line:null);this.pending={...this.pending,[e.id]:{choice:t,picks:v,note:i,question:e.question,posted:!1}};const b=`inbox-${crypto.randomUUID()}`;try{const l=await fetch("/api/inbox",{method:"POST",headers:{"content-type":"application/json","idempotency-key":b,[m]:s},body:JSON.stringify({cardId:e.id,choice:t,note:i,...n?{picks:r??{}}:{},...o?{decided:o}:{}})});if(!l.ok){const k=await l.json().catch(()=>null);return this.fail(e.id,k?.message??`Wheelhouse could not send it (${l.status}).`),l.status===404&&this.refresh(0),!1}const c=await l.json().catch(()=>null);if(c?.message?.delivery==="failed")return this.fail(e.id,c.message.deliveryDetail??"Firstmate did not take the answer. Try again."),!1;const w=this.pending[e.id];w&&(this.pending={...this.pending,[e.id]:{...w,posted:!0}});const p=u(e);return(e.following||this.followed[p])&&(this.followed={...this.followed,[p]:null}),this.refresh(0),!0}catch{return this.fail(e.id,"Wheelhouse could not be reached. Try again."),!1}}fail(e,t){const{[e]:i,...s}=this.pending;this.pending=s,this.errors={...this.errors,[e]:t}}}const J=new x;export{J as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o,g as h,q as c,k as g}from"./-7ouQdsG.js";import{p}from"./
|
|
1
|
+
import{j as o,g as h,q as c,k as g}from"./-7ouQdsG.js";import{p}from"./Cbb01QYB.js";const w=5e3,v=3e3;function y(m,e,a){let r="connecting",n=null,t=null,s=null;const l=i=>{r=i,a(i)},d=()=>{t&&clearTimeout(t),t=null,l("lost")},u=()=>{s=null;const i=new EventSource(m);n=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),d(),s??=setTimeout(u,v);return}r!=="lost"&&l("connecting"),t??=setTimeout(d,w)}),e(i)};return u(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),n?.close(),n=null}}const L="wheelhouse-live",b="wheelhouse-live-leader",S=2*6e4;class A{#e=o(null);get fleet(){return h(this.#e)}set fleet(e){c(this.#e,e,!0)}#t=o(null);get eventsPaused(){return h(this.#t)}set eventsPaused(e){c(this.#t,e,!0)}#s=o(null);get health(){return h(this.#s)}set health(e){c(this.#s,e,!0)}#a=o(null);get messages(){return h(this.#a)}set messages(e){c(this.#a,e,!0)}#n=o(null);get crew(){return h(this.#n)}set crew(e){c(this.#n,e,!0)}#r=o("connecting");get connection(){return h(this.#r)}set connection(e){c(this.#r,e,!0)}#l=o(g(Date.now()));get now(){return h(this.#l)}set now(e){c(this.#l,e,!0)}#i=o(0);get revision(){return h(this.#i)}set revision(e){c(this.#i,e,!0)}#o=o(!1);get leader(){return h(this.#o)}set leader(e){c(this.#o,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),r=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),r(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=n=>{const t=n.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const a=new AbortController;let r=()=>{};return navigator.locks.request(b,{signal:a.signal},()=>{const n=this.lead();return new Promise(t=>{r=()=>{n(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),r(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=n=>{this.connection=n,this.post({t:"connection",state:n})},r=y("/api/events",n=>{const t=(s,l)=>n.addEventListener(s,d=>{const u=l(JSON.parse(d.data));this.remember(u),this.apply(u),this.post({t:"event",e:u}),u.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("events-status",s=>({type:"events-status",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("crew",s=>({type:"crew",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const d=this.claim(l);return{alert:l,fresh:d&&Date.now()-Date.parse(l.at)<=S}})}))},e);return()=>{r(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest["events-status"]&&this.post({t:"event",e:{type:"events-status",data:this.latest["events-status"]}}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.crew&&this.post({t:"event",e:{type:"crew",data:this.latest.crew}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"events-status":this.eventsPaused=e.data.paused;break;case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"crew":this.crew=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const r of this.restartListeners)r();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new A;function E(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}function P(){return f.crew??p.data.crew??null}export{P as a,C as b,E as c,M as d,f as l,y as w};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as yt}from"./D3nPFlu1.js";import{H as B,N as Y,r as me,n as N,i as je,b as T,s as $,a as Se,f as tt,g as Ie,c as oe,d as be,S as Oe,P as rt,p as I,e as wt,h as vt,o as Ne,u as De,j as bt,w as Et,k as ze,l as z,m as At,q as nt,t as kt,v as St,x as at}from"./
|
|
2
|
-
`)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:fr}=yt,ur=Rt??(e=>e()),dr=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const x=ot(at)??{},Z=ot(nt)??{},D={url:ze({}),page:ze({}),navigating:Et(null),updated:bt()};function Be(e){x[e]=$()}function hr(e,t){let r=e+1;for(;x[r];)delete x[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function it(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,O,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,V={element:void 0,href:void 0}}const ae=new Map,$e=new Set,ct=new Set,q=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Je=!0,ee=!1,W=!1,lt=!1,re=!1,ge,k,R,U;const J=new Set;let Ae;const de=new Map,he=new Map;async function Ur(e,t,r){if(globalThis.__sveltekit_1prygjg.data){const{q:a={},p:o={},l:s={},f:c={}}=globalThis.__sveltekit_1prygjg.data;for(const f in a)a[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in o)o[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Nt(e),O=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),k=history.state?.[B],R=history.state?.[Y],k||(k=R=Date.now(),history.replaceState({...history.state,[B]:k,[Y]:R},""));const n=x[k];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await kr(Le,r)):(await H({type:"enter",url:me(E.hash?Rr(new URL(location.href)):location.href),replace_state:!0}),i()),Ar()}async function pr(e=!0,t=!0){if(await(Ae||=Promise.resolve()),!Ae)return;Ae=null;const r=U={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const o of de.values())for(const{resource:s}of o.values())s.refresh();for(const[o,s]of he)for(const[c,{resource:f}]of s){const l=F(o,c),d=f.reconnect();d.catch(N),i.set(l,d)}}if(e){const o=I.state,s=n&&await Ye(n);if(!s||r!==U)return;if(s.type==="redirect")return Ve(new URL(s.location,g.url).href,{replaceState:!0},1,r);t||(s.props.page.state=o),De(s.props.page),g={...s.state,nav:g.nav},Te(),ge.$set(s.props)}else Te();const a=[];for(const o of de.values())for(const{resource:s}of o.values())a.push(s);for(const[o,s]of he)for(const c of s.keys()){const f=F(o,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(N)}function Te(){le.length=0,re=!1}function ft(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function ut(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Ze(){Be(k),Ge(at,x),ft(R),Ge(nt,Z)}async function Ve(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[o,s]of de)for(const[c,f]of s)f.resource?.reset(),i.add(F(o,c));a=new Set;for(const[o,s]of he)for(const c of s.keys())a.add(F(o,c))}t.invalidate&&t.invalidate.forEach(Er)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[o,s]of de)for(const[c,{resource:f}]of s)i?.has(F(o,c))&&f.start();for(const[o,s]of he)for(const[c,{resource:f}]of s)a?.has(F(o,c))&&f.reconnect()})}async function _r(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function ke(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function dt(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},De(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:D,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:x[k]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};q.forEach(a=>a(i))}ut(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:o,form:s}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const h of r)h?.slash!==void 0&&(c=h.slash);e.pathname=vt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:o},props:{constructors:tr(r).map(h=>h.node.component),page:we(I)}};s!==void 0&&(f.props.form=s);let l={},d=!I,p=0;for(let h=0;h<Math.max(r.length,g.branch.length);h+=1){const w=r[h],_=g.branch[h];w?.data!==_?.data&&(d=!0),w&&(l={...l,...w.data},d&&(f.props[`data_${p}`]=l),p+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||s!==void 0&&s!==I.form||d)&&(f.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?l:I.data}),f}async function qe({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:a,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??a?.data??null,slash:c.universal?.trailingSlash??a?.slash}}function mr(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?kt(n,i.href,t):St(n,t);return{resolved:i,promise:a}}function Qe(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const o of i.search_params)if(n.has(o))return!0;for(const o of i.params)if(a[o]!==g.params[o])return!0;for(const o of i.dependencies)if(le.some(s=>s(new URL(o))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function gr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(o=>a.includes(o))&&a.every(o=>i.includes(o))&&r.delete(n)}return r}function et({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=i,f=[...s,c];o.forEach(y=>y?.().catch(N)),f.forEach(y=>y?.[1]().catch(N));let l=null;const d=g.url?e!==_e(g.url):!1,p=g.route?i.id!==g.route.id:!1,u=gr(g.url,r);let h=!1;{const y=f.map((v,A)=>{const S=g.branch[A],b=!!v?.[0]&&(S?.loader!==v[1]||Qe(h,p,d,u,S.server?.uses,n));return b&&(h=!0),b});if(y.some(Boolean)){try{l=await _t(r,y)}catch(v){const A=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?et({error:A,url:r,params:n,route:i}):ye({status:ie(v),error:A,url:r,route:i})}if(l.type==="redirect")return l}}const w=l?.nodes;let _=!1;const m=f.map(async(y,v)=>{if(!y)return;const A=g.branch[v],S=w?.[v];if((!S||S.type==="skip")&&y[1]===A?.loader&&!Qe(_,p,d,u,A.universal?.uses,n))return A;if(_=!0,S?.type==="error")throw S;return qe({loader:y[1],url:r,params:n,route:i,parent:async()=>{const j={};for(let C=0;C<v;C+=1)Object.assign(j,(await m[C])?.data);return j},server_data_node:He(S===void 0&&y[0]?{type:"skip"}:S??null,y[0]?A?.server:void 0)})});for(const y of m)y.catch(N);const P=[];for(let y=0;y<f.length;y+=1)if(f[y])try{P.push(await m[y])}catch(v){if(v instanceof xe)return{type:"redirect",location:v.location};if(a&&J.has(a))return et({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let A=ie(v),S;if(w?.includes(v))A=v.status??A,S=v.error;else if(v instanceof te)S=v.body;else{if(await D.updated.check())return await it(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await yr(y,P,o);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:o,status:A,error:S,route:i}):await pt(r,{id:i.id},S,A)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const s=await _t(r,[!0]);if(s.type!=="data"||s.nodes[0]&&s.nodes[0].type!=="data")throw 0;a=s.nodes[0]??null}catch(s){if(!(s instanceof te&&s.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const o=await qe({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),s={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof xe){await Ve(new URL(o.location,location.href),{},0);return}const s=await E.get_error_template(),c=await M(o,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=s({status:e,message:f}),d=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(d.head),document.head),document.documentElement.replaceChild(document.adoptNode(d.body),document.body),o}}async function wr(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,o)=>mr(a,o,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!je(e,T,E.hash)){const r=await wr(e);if(!r)return;const n=vr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:wt(a),url:e}}}}function vr(e){return At(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let o=!1;const s=Xe(g,r,e,t,a??null);n!==void 0&&(s.navigation.delta=n),i!==void 0&&(s.navigation.event=i);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),o?null:s}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o={},redirect_count:s=0,nav_token:c={},accept:f=N,block:l=N,event:d}){const p=U;U=c;const u=await ne(t,!1),h=e==="enter"?Xe(g,u,t,e):ht({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:d});if(!h){l(),U===c&&(U=p);return}const w=k,_=R;f(),ee=!0,ue&&h.navigation.type!=="enter"&&D.navigating.set(Se.current=h.navigation);let m=u&&await Ye(u);if(!m){if(je(t,T,E.hash))return await K(t,a);m=await pt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,U!==c){h.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(s<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o,redirect_count:s+1,nav_token:c}),h.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await D.updated.check())return await it(),await K(t,a);if(Te(),Be(w),ft(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),o=r?r.state:o,!r){const b=a?0:1,j={[B]:k+=b,[Y]:R+=b,[Oe]:o};(a?history.replaceState:history.pushState).call(history,j,"",t),a||hr(k,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,V={element:void 0,href:void 0}),m.props.page.state=o;let y;if(ue){const b=(await Promise.all(Array.from(ct,X=>X(h.navigation)))).filter(X=>typeof X=="function");if(b.length>0){let X=function(){b.forEach(ve=>{q.delete(ve)})};b.push(X),b.forEach(ve=>{q.add(ve)})}const j=h.navigation.to;g={...m.state,nav:{params:j.params,route:j.route,url:j.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?y=C.commit():(G=null,ge.$set(m.props),G&&Object.assign(m.props.page,G),De(m.props.page),y=It?.()),lt=!0}else await dt(m,Le,!1);const{activeElement:v}=document;if(await y,await se(),await se(),U!==c){h.reject(new Error("navigation aborted"));return}m.props.page&&G&&Object.assign(m.props.page,G);let A=null;if(Je){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(gt(t)))?A.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Ir(t,!A),Je=!0,ee=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=$()),q.forEach(b=>b(h.navigation)),e==="popstate"&&ut(R),D.navigating.set(Se.current=null)}async function pt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let V={element:void 0,href:void 0};function br(){let e,t;O.addEventListener("mousemove",o=>{const s=o.target;clearTimeout(e),e=setTimeout(()=>{i(s,z.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],z.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(o=>{for(const s of o)s.isIntersecting&&(ke(new URL(s.target.href)),n.unobserve(s.target))},{threshold:0});async function i(o,s){const c=tt(o,O),f=c===V.element&&c?.href===V.href&&s>=t;if(!c||f)return;const{url:l,external:d,download:p}=Ie(c,T,E.hash);if(d||p)return;const u=oe(c),h=l&&_e(g.url)===_e(l);if(!(u.reload||h))if(s<=u.preload_data){V={element:c,href:c.href},t=z.tap;const w=await ne(l,!1);if(!w)return;_r(w)}else s<=u.preload_code&&(V={element:c,href:c.href},t=s,ke(l))}function a(){n.disconnect();for(const o of O.querySelectorAll("a")){const{url:s,external:c,download:f}=Ie(o,T,E.hash);if(c||f)continue;const l=oe(o);l.reload||(l.preload_code===z.viewport&&n.observe(o),l.preload_code===z.eager&&ke(s))}}q.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ar(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){fr(()=>(e.add(t),()=>{e.delete(t)}))}function jr(e){Ke(q,e)}function Or(e){Ke($e,e)}function Nr(e){Ke(ct,e)}function Dr(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):Ve(e,t,0)}function Er(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function xr(){return re=!0,pr()}function Cr(e,t){const r={[B]:k,[Y]:R,[rt]:I.url.href,[Oe]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:ur(()=>we(I))})}function Ar(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ze(),!ee){const n=Xe(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||br(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=tt(t.composedPath()[0],O);if(!r)return;const{url:n,external:i,target:a,download:o}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const s=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||o)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),d=f===be(location);if(i||s.reload&&(!d||!l)){ht({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&d){const[,p]=g.url.href.split("#");if(p===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(k),e(n),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await H({type:"link",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const o=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(je(o,T,!1))return;const s=t.target,c=oe(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,n);o.search=new URLSearchParams(f).toString(),H({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const r=t.state[B];if(U={},r===k)return;const n=x[r],i=t.state[Oe]??{},a=new URL(t.state[rt]??location.href),o=t.state[Y],s=g.url?be(location)===be(g.url):!1;if(o===R&&(lt||s)){i!==I.state&&(I.state=i),e(a),x[k]=$(),n&&scrollTo(n.x,n.y),k=r;return}const f=r-k;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{k=r,R=o},block:()=>{history.go(-f)},nav_token:U,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++k,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))dr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,D.page.set(we(I)),D.page.notify()}}async function kr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:o,data:s,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let d,p=!0;try{const u=n.map(async(w,_)=>{const m=s[_];return m?.uses&&(m.uses=mt(m.uses)),qe({loader:E.nodes[w],url:f,params:i,route:a,parent:async()=>{const P={};for(let y=0;y<_;y+=1)Object.assign(P,(await u[y]).data);return P},server_data_node:He(m)})}),h=await Promise.all(u);if(l){const w=l.layouts;for(let _=0;_<w.length;_++)w[_]||h.splice(_,0,void 0)}d=await pe({url:f,params:i,branch:h,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof xe)return await K(new URL(u.location,location.href));d=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",p=!1}d&&(d.props.page&&(d.props.page.state={}),await dt(d,e,p))}async function _t(e,t){const r=new URL(e);r.pathname=ir(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(nr,"1"),r.searchParams.append(rr,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,o)=>{Sr(a,i).catch(o)})}async function Sr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return er(a,{...E.decoders,Promise:o=>new Promise((s,c)=>{n.set(o,{fulfil:s,reject:c})})})}for await(const a of lr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(o=>{o?.type==="data"&&(o.uses=mt(o.uses),o.data=i(o.data))}),e(a);else if(a.type==="chunk"){const{id:o,data:s,error:c}=a,f=n.get(o);n.delete(o),c?f.reject(i(c)):f.fulfil(i(s))}}}function mt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function Ir(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=gt(e);if(n&&document.getElementById(n)){const{x:a,y:o}=$();setTimeout(()=>{const s=history.state;Ue=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(a,o),Ue=!1})}else{const a=document.body,o=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),o!==null?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let o=0;o<i.rangeCount;o+=1)a.push(i.getRangeAt(o));setTimeout(()=>{if(i.rangeCount===a.length){for(let o=0;o<i.rangeCount;o+=1){const s=a[o],c=i.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function Xe(e,t,r,n,i=null){let a,o;const s=new Promise((f,l)=>{a=f,o=l});return s.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:s},fulfil:a,reject:o}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Rr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{jr as a,Or as b,Dr as g,xr as i,Nr as o,Cr as r,Ur as s};
|
|
1
|
+
import{s as yt}from"./D3nPFlu1.js";import{H as B,N as Y,r as me,n as N,i as je,b as T,s as $,a as Se,f as tt,g as Ie,c as oe,d as be,S as Oe,P as rt,p as I,e as wt,h as vt,o as Ne,u as De,j as bt,w as Et,k as ze,l as z,m as At,q as nt,t as kt,v as St,x as at}from"./CNX1VoIh.js";import{H as se,U as It,l as Rt}from"./-7ouQdsG.js";class te{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ce extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}const Pt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Lt=/^\/\((?:[^)]+)\)$/;function Tt(e){const t=[];return{pattern:e==="/"||Lt.test(e)?/^\/$/:new RegExp(`^${jt(e).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return t.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ee(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ee(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const l=Pt.exec(c),[,d,p,u,h]=l;return t.push({name:u,matcher:h,optional:!!d,rest:!!p,chained:p?f===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ee(c)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ut)}function Ot(e,t,r){const n={},i=e.slice(1),a=i.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=i[s-o];if(c.chained&&c.rest&&o&&(f=i.slice(s-o,s+1).filter(l=>l).join("/"),o=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[s+1],d=i[s+1];l&&!l.rest&&l.optional&&d&&c.chained&&(o=0),!l&&!d&&Object.keys(n).length===a.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Nt({nodes:e,server_loads:t,dictionary:r,matchers:n}){const i=new Set(t);return Object.entries(r).map(([s,[c,f,l]])=>{const{pattern:d,params:p}=Tt(s),u={id:s,exec:h=>{const w=d.exec(h);if(w)return Ot(w,p,n)},errors:[1,...l||[]].map(h=>e[h]),layouts:[0,...f||[]].map(o),leaf:a(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[i.has(s),e[s]]}}function ot(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ge(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Dt=-1,xt=-2,Ct=-3,Bt=-4,Mt=-5,$t=-6,Ft=-7,st=2**32-1,Re=st-1;function qt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function Vt(e){return!(!Number.isInteger(e)||e<0||e>st)}function Ht(e){return Uint8Array.fromBase64(e).buffer}function Yt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Kt(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}const Xt=typeof Uint8Array.fromBase64=="function",zt=typeof process=="object"&&process.versions?.node!==void 0,Gt=Xt?Ht:zt?Yt:Kt;function Wt(e,t){return e}const Jt=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,We=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Zt={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{Jt.call(t)}catch(a){if(!We)throw a;We.call(t)}const i=globalThis[e];return r!==void 0?new i(t,r,n):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Re]=void 0,delete t[Re],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},Qt=Object.freeze(Zt);function er(e,t,r){const n=Wt(Qt);if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let o=null;function s(c,f=!1){if(c===Dt)return n.fromPrimitive(void 0);if(c===Ct)return n.fromPrimitive(NaN);if(c===Bt)return n.fromPrimitive(1/0);if(c===Mt)return n.fromPrimitive(-1/0);if(c===$t)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in a)return a[c];if(c>=i.length)throw new Error("Invalid input");const l=i[c];if(!l||typeof l!="object")a[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const d=l[0],p=t&&Object.hasOwn(t,d)?t[d]:void 0;if(p){let u=l[1];if(typeof u!="number"&&(u=i.push(l[1])-1),Object.hasOwn(a,u))return a[c]=p(a[u]);if(o??=new Set,o.has(u))throw new Error("Invalid circular reference");return o.add(u),a[c]=p(s(u)),o.delete(u),a[c]}switch(d){case"Date":a[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();a[c]=u;for(let _=1;_<l.length;_+=1)n.addValue(u,s(l[_]));break;case"Map":const h=n.createMap();a[c]=h;for(let _=1;_<l.length;_+=2)n.addEntry(h,s(l[_]),s(l[_+1]));break;case"RegExp":a[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const _=l[1];if(typeof i[_]=="object"&&i[_][0]!=="BigInt")throw new Error("Invalid input");a[c]=n.box(s(_));break}case"BigInt":a[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const w=n.createNullPrototypeObject();a[c]=w;for(let _=1;_<l.length;_+=2){const m=l[_];if(typeof m!="string")throw new Error("Cannot parse an object with a non-string key");if(m==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(w,m,s(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=s(l[1]);a[c]=n.fromViewInfo(d,_,l[2],l[3]);break}case"ArrayBuffer":{const _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");a[c]=n.fromArrayBuffer(Gt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[c]=n.fromStringValue(d,l[1]);break}default:throw new Error(`Unknown type ${d}`)}}else if(l[0]===Ft){const d=l[1];if(!Vt(d))throw new Error("Invalid input");const p=n.createSparseArray(d);a[c]=p;for(let u=2;u<l.length;u+=2){const h=l[u];if(!qt(h)||h>=d)throw new Error("Invalid input");n.set(p,h,s(l[u+1]))}}else{const d=n.createArray(l.length);a[c]=d;for(let p=0;p<l.length;p+=1){const u=l[p];u!==xt&&n.set(d,p,s(u))}}else{const d=n.createObject();a[c]=d;for(const p of Object.keys(l)){if(p==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(d,p,s(l[p]))}}return a[c]}return s(0)}function tr(e){return e.filter(t=>t!=null)}const rr="x-sveltekit-invalidated",nr="x-sveltekit-trailing-slash";function F(e,t){return e+"/"+t}function ie(e){return e instanceof te||e instanceof Ce?e.status:500}function ar(e){return e instanceof Ce?e.text:"Internal Error"}const or="/__data.json",sr=".html__data.json";function ir(e){return e.endsWith(".html")?e.replace(/\.html$/,sr):e.replace(/\/$/,"")+or}async function*cr(e,t){let r=!1,n="";const i=new TextDecoder;for(;;){let a=n.indexOf(t);for(;a!==-1;)yield n.slice(0,a),n=n.slice(a+t.length),a=n.indexOf(t);if(r){n&&(yield n);return}const o=await e.read();r=o.done,o.value&&(n+=i.decode(o.value,{stream:!0})),r&&(n+=i.decode())}}async function*lr(e){for await(const t of cr(e,`
|
|
2
|
+
`)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:fr}=yt,ur=Rt??(e=>e()),dr=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const x=ot(at)??{},Z=ot(nt)??{},D={url:ze({}),page:ze({}),navigating:Et(null),updated:bt()};function Be(e){x[e]=$()}function hr(e,t){let r=e+1;for(;x[r];)delete x[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function it(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,O,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,q={element:void 0,href:void 0}}const ae=new Map,$e=new Set,ct=new Set,V=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Je=!0,ee=!1,W=!1,lt=!1,re=!1,ge,k,R,U;const J=new Set;let Ae;const de=new Map,he=new Map;async function Ur(e,t,r){if(globalThis.__sveltekit_18jq34o.data){const{q:a={},p:o={},l:s={},f:c={}}=globalThis.__sveltekit_18jq34o.data;for(const f in a)a[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in o)o[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Nt(e),O=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),k=history.state?.[B],R=history.state?.[Y],k||(k=R=Date.now(),history.replaceState({...history.state,[B]:k,[Y]:R},""));const n=x[k];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await kr(Le,r)):(await H({type:"enter",url:me(E.hash?Rr(new URL(location.href)):location.href),replace_state:!0}),i()),Ar()}async function pr(e=!0,t=!0){if(await(Ae||=Promise.resolve()),!Ae)return;Ae=null;const r=U={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const o of de.values())for(const{resource:s}of o.values())s.refresh();for(const[o,s]of he)for(const[c,{resource:f}]of s){const l=F(o,c),d=f.reconnect();d.catch(N),i.set(l,d)}}if(e){const o=I.state,s=n&&await Ye(n);if(!s||r!==U)return;if(s.type==="redirect")return qe(new URL(s.location,g.url).href,{replaceState:!0},1,r);t||(s.props.page.state=o),De(s.props.page),g={...s.state,nav:g.nav},Te(),ge.$set(s.props)}else Te();const a=[];for(const o of de.values())for(const{resource:s}of o.values())a.push(s);for(const[o,s]of he)for(const c of s.keys()){const f=F(o,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(N)}function Te(){le.length=0,re=!1}function ft(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function ut(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Ze(){Be(k),Ge(at,x),ft(R),Ge(nt,Z)}async function qe(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[o,s]of de)for(const[c,f]of s)f.resource?.reset(),i.add(F(o,c));a=new Set;for(const[o,s]of he)for(const c of s.keys())a.add(F(o,c))}t.invalidate&&t.invalidate.forEach(Er)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[o,s]of de)for(const[c,{resource:f}]of s)i?.has(F(o,c))&&f.start();for(const[o,s]of he)for(const[c,{resource:f}]of s)a?.has(F(o,c))&&f.reconnect()})}async function _r(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function ke(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function dt(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},De(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:D,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:x[k]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(a=>a(i))}ut(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:o,form:s}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const h of r)h?.slash!==void 0&&(c=h.slash);e.pathname=vt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:o},props:{constructors:tr(r).map(h=>h.node.component),page:we(I)}};s!==void 0&&(f.props.form=s);let l={},d=!I,p=0;for(let h=0;h<Math.max(r.length,g.branch.length);h+=1){const w=r[h],_=g.branch[h];w?.data!==_?.data&&(d=!0),w&&(l={...l,...w.data},d&&(f.props[`data_${p}`]=l),p+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||s!==void 0&&s!==I.form||d)&&(f.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?l:I.data}),f}async function Ve({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:a,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??a?.data??null,slash:c.universal?.trailingSlash??a?.slash}}function mr(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?kt(n,i.href,t):St(n,t);return{resolved:i,promise:a}}function Qe(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const o of i.search_params)if(n.has(o))return!0;for(const o of i.params)if(a[o]!==g.params[o])return!0;for(const o of i.dependencies)if(le.some(s=>s(new URL(o))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function gr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(o=>a.includes(o))&&a.every(o=>i.includes(o))&&r.delete(n)}return r}function et({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=i,f=[...s,c];o.forEach(y=>y?.().catch(N)),f.forEach(y=>y?.[1]().catch(N));let l=null;const d=g.url?e!==_e(g.url):!1,p=g.route?i.id!==g.route.id:!1,u=gr(g.url,r);let h=!1;{const y=f.map((v,A)=>{const S=g.branch[A],b=!!v?.[0]&&(S?.loader!==v[1]||Qe(h,p,d,u,S.server?.uses,n));return b&&(h=!0),b});if(y.some(Boolean)){try{l=await _t(r,y)}catch(v){const A=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?et({error:A,url:r,params:n,route:i}):ye({status:ie(v),error:A,url:r,route:i})}if(l.type==="redirect")return l}}const w=l?.nodes;let _=!1;const m=f.map(async(y,v)=>{if(!y)return;const A=g.branch[v],S=w?.[v];if((!S||S.type==="skip")&&y[1]===A?.loader&&!Qe(_,p,d,u,A.universal?.uses,n))return A;if(_=!0,S?.type==="error")throw S;return Ve({loader:y[1],url:r,params:n,route:i,parent:async()=>{const j={};for(let C=0;C<v;C+=1)Object.assign(j,(await m[C])?.data);return j},server_data_node:He(S===void 0&&y[0]?{type:"skip"}:S??null,y[0]?A?.server:void 0)})});for(const y of m)y.catch(N);const P=[];for(let y=0;y<f.length;y+=1)if(f[y])try{P.push(await m[y])}catch(v){if(v instanceof xe)return{type:"redirect",location:v.location};if(a&&J.has(a))return et({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let A=ie(v),S;if(w?.includes(v))A=v.status??A,S=v.error;else if(v instanceof te)S=v.body;else{if(await D.updated.check())return await it(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await yr(y,P,o);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:o,status:A,error:S,route:i}):await pt(r,{id:i.id},S,A)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const s=await _t(r,[!0]);if(s.type!=="data"||s.nodes[0]&&s.nodes[0].type!=="data")throw 0;a=s.nodes[0]??null}catch(s){if(!(s instanceof te&&s.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const o=await Ve({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),s={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof xe){await qe(new URL(o.location,location.href),{},0);return}const s=await E.get_error_template(),c=await M(o,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=s({status:e,message:f}),d=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(d.head),document.head),document.documentElement.replaceChild(document.adoptNode(d.body),document.body),o}}async function wr(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,o)=>mr(a,o,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!je(e,T,E.hash)){const r=await wr(e);if(!r)return;const n=vr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:wt(a),url:e}}}}function vr(e){return At(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let o=!1;const s=Xe(g,r,e,t,a??null);n!==void 0&&(s.navigation.delta=n),i!==void 0&&(s.navigation.event=i);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),o?null:s}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o={},redirect_count:s=0,nav_token:c={},accept:f=N,block:l=N,event:d}){const p=U;U=c;const u=await ne(t,!1),h=e==="enter"?Xe(g,u,t,e):ht({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:d});if(!h){l(),U===c&&(U=p);return}const w=k,_=R;f(),ee=!0,ue&&h.navigation.type!=="enter"&&D.navigating.set(Se.current=h.navigation);let m=u&&await Ye(u);if(!m){if(je(t,T,E.hash))return await K(t,a);m=await pt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,U!==c){h.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(s<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o,redirect_count:s+1,nav_token:c}),h.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await D.updated.check())return await it(),await K(t,a);if(Te(),Be(w),ft(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),o=r?r.state:o,!r){const b=a?0:1,j={[B]:k+=b,[Y]:R+=b,[Oe]:o};(a?history.replaceState:history.pushState).call(history,j,"",t),a||hr(k,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,q={element:void 0,href:void 0}),m.props.page.state=o;let y;if(ue){const b=(await Promise.all(Array.from(ct,X=>X(h.navigation)))).filter(X=>typeof X=="function");if(b.length>0){let X=function(){b.forEach(ve=>{V.delete(ve)})};b.push(X),b.forEach(ve=>{V.add(ve)})}const j=h.navigation.to;g={...m.state,nav:{params:j.params,route:j.route,url:j.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?y=C.commit():(G=null,ge.$set(m.props),G&&Object.assign(m.props.page,G),De(m.props.page),y=It?.()),lt=!0}else await dt(m,Le,!1);const{activeElement:v}=document;if(await y,await se(),await se(),U!==c){h.reject(new Error("navigation aborted"));return}m.props.page&&G&&Object.assign(m.props.page,G);let A=null;if(Je){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(gt(t)))?A.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Ir(t,!A),Je=!0,ee=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=$()),V.forEach(b=>b(h.navigation)),e==="popstate"&&ut(R),D.navigating.set(Se.current=null)}async function pt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let q={element:void 0,href:void 0};function br(){let e,t;O.addEventListener("mousemove",o=>{const s=o.target;clearTimeout(e),e=setTimeout(()=>{i(s,z.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],z.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(o=>{for(const s of o)s.isIntersecting&&(ke(new URL(s.target.href)),n.unobserve(s.target))},{threshold:0});async function i(o,s){const c=tt(o,O),f=c===q.element&&c?.href===q.href&&s>=t;if(!c||f)return;const{url:l,external:d,download:p}=Ie(c,T,E.hash);if(d||p)return;const u=oe(c),h=l&&_e(g.url)===_e(l);if(!(u.reload||h))if(s<=u.preload_data){q={element:c,href:c.href},t=z.tap;const w=await ne(l,!1);if(!w)return;_r(w)}else s<=u.preload_code&&(q={element:c,href:c.href},t=s,ke(l))}function a(){n.disconnect();for(const o of O.querySelectorAll("a")){const{url:s,external:c,download:f}=Ie(o,T,E.hash);if(c||f)continue;const l=oe(o);l.reload||(l.preload_code===z.viewport&&n.observe(o),l.preload_code===z.eager&&ke(s))}}V.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ar(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){fr(()=>(e.add(t),()=>{e.delete(t)}))}function jr(e){Ke(V,e)}function Or(e){Ke($e,e)}function Nr(e){Ke(ct,e)}function Dr(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):qe(e,t,0)}function Er(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function xr(){return re=!0,pr()}function Cr(e,t){const r={[B]:k,[Y]:R,[rt]:I.url.href,[Oe]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:ur(()=>we(I))})}function Ar(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ze(),!ee){const n=Xe(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||br(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=tt(t.composedPath()[0],O);if(!r)return;const{url:n,external:i,target:a,download:o}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const s=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||o)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),d=f===be(location);if(i||s.reload&&(!d||!l)){ht({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&d){const[,p]=g.url.href.split("#");if(p===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(k),e(n),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await H({type:"link",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const o=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(je(o,T,!1))return;const s=t.target,c=oe(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,n);o.search=new URLSearchParams(f).toString(),H({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const r=t.state[B];if(U={},r===k)return;const n=x[r],i=t.state[Oe]??{},a=new URL(t.state[rt]??location.href),o=t.state[Y],s=g.url?be(location)===be(g.url):!1;if(o===R&&(lt||s)){i!==I.state&&(I.state=i),e(a),x[k]=$(),n&&scrollTo(n.x,n.y),k=r;return}const f=r-k;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{k=r,R=o},block:()=>{history.go(-f)},nav_token:U,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++k,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))dr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,D.page.set(we(I)),D.page.notify()}}async function kr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:o,data:s,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let d,p=!0;try{const u=n.map(async(w,_)=>{const m=s[_];return m?.uses&&(m.uses=mt(m.uses)),Ve({loader:E.nodes[w],url:f,params:i,route:a,parent:async()=>{const P={};for(let y=0;y<_;y+=1)Object.assign(P,(await u[y]).data);return P},server_data_node:He(m)})}),h=await Promise.all(u);if(l){const w=l.layouts;for(let _=0;_<w.length;_++)w[_]||h.splice(_,0,void 0)}d=await pe({url:f,params:i,branch:h,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof xe)return await K(new URL(u.location,location.href));d=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",p=!1}d&&(d.props.page&&(d.props.page.state={}),await dt(d,e,p))}async function _t(e,t){const r=new URL(e);r.pathname=ir(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(nr,"1"),r.searchParams.append(rr,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,o)=>{Sr(a,i).catch(o)})}async function Sr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return er(a,{...E.decoders,Promise:o=>new Promise((s,c)=>{n.set(o,{fulfil:s,reject:c})})})}for await(const a of lr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(o=>{o?.type==="data"&&(o.uses=mt(o.uses),o.data=i(o.data))}),e(a);else if(a.type==="chunk"){const{id:o,data:s,error:c}=a,f=n.get(o);n.delete(o),c?f.reject(i(c)):f.fulfil(i(s))}}}function mt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function Ir(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=gt(e);if(n&&document.getElementById(n)){const{x:a,y:o}=$();setTimeout(()=>{const s=history.state;Ue=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(a,o),Ue=!1})}else{const a=document.body,o=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),o!==null?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let o=0;o<i.rangeCount;o+=1)a.push(i.getRangeAt(o));setTimeout(()=>{if(i.rangeCount===a.length){for(let o=0;o<i.rangeCount;o+=1){const s=a[o],c=i.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function Xe(e,t,r,n,i=null){let a,o;const s=new Promise((f,l)=>{a=f,o=l});return s.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:s},fulfil:a,reject:o}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Rr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{jr as a,Or as b,Dr as g,xr as i,Nr as o,Cr as r,Ur as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{j as g,g as l,q as f,p as ht,u as F,l as M,f as ft,s as mt,t as H,a as J,b as pt,h as S,o as gt,c as at,k as B}from"./-7ouQdsG.js";import{s as yt}from"./MfmuqTIn.js";import{i as kt}from"./BAuCcuxw.js";import{s as bt}from"./CJNEYVWj.js";import{b as wt}from"./XNI4QyoL.js";import{p as z}from"./8Fai-wPF.js";import{p as St}from"./YAQH2TLS.js";import{S as E}from"./BXN538J3.js";import{r as G}from"./tpeuVjMv.js";import{w as vt}from"./Rgz0--W-.js";const _e=["No longer needed","Already sorted elsewhere","Wrong question"],xt={approve:"Approve",fix:"Fix",skip:"Skip"},Ee=(e,t)=>t==="close"?"Dismiss":e.options.find(s=>s.choice===t)?.label??xt[t],Te=2e3,q=300;function ct(e,t){const s={};for(const n of e.calls){const r=t[n.id]?.trim(),i=n.options.find(d=>d.recommended)?.id,o=r||i;o&&(s[n.id]=o)}return s}const je=(e,t)=>e.calls.filter(s=>s.required&&!ct(e,t)[s.id]);function ut(e){const t=e.prompt?O(e.prompt,48):"";return e.number===null?t:t?`${e.number}) ${t}`:`${e.number})`}const Y=e=>ut(e)||"this question";function Oe(e,t){const s=new Set(e.calls.map(o=>o.id));if(Object.keys(t).find(o=>!s.has(o)))return{ok:!1,error:"A pick names a call this question does not ask."};const r=ct(e,t),i=[];for(const o of e.calls){const d=r[o.id];if(!d){if(o.required)return{ok:!1,error:`Pick an option for ${Y(o)}.`};continue}let h;if(o.options.length){const b=o.options.find(I=>I.id===d);if(!b)return{ok:!1,error:`That is not an option for ${Y(o)}.`};h=b.detail?`${b.label} (${O(b.detail,60)})`:O(b.label,80)}else{if(d.length>q)return{ok:!1,error:`Answers are limited to ${q} characters.`};h=O(d,q)}const m=ut(o);i.push(m?`${m}${/[?:]$/.test(m)?"":":"} ${h}`:h)}return i.length?{ok:!0,line:i.join(" ")}:{ok:!1,error:"Make a pick first."}}const O=(e,t)=>{const s=e.replace(/\s+/g," ").trim();return s.length>t?s.slice(0,t-1).trimEnd()+"…":s},Re=4*3600*1e3,Me="wheelhouse-inbox-snoozed";function lt(e,t){return Object.fromEntries(Object.entries(e).filter(([,s])=>s>t))}function qe(e,t){if(!e)return{};try{const s=JSON.parse(e);if(typeof s!="object"||s===null||Array.isArray(s))return{};const n={};for(const[r,i]of Object.entries(s))typeof i=="number"&&(n[r]=i);return lt(n,t)}catch{return{}}}function $t(e,t,s){const n=lt(t,s),r=e.filter(It),i=r.filter(o=>!n[o.id]);return{shown:i,snoozed:r.length-i.length}}const It=e=>!e.sent||e.sent.delivery==="failed",At=e=>e.owner==="captain",Le=(e,t,s)=>$t(e.filter(n=>At(n)&&!n.following),t,s).shown.length;function Ue(e){let s=(e.choices?[e.choices.intro,e.choices.after].filter(Boolean).join(" "):e.question).replace(/\s+/g," ").trim();const n=e.title.replace(/\s+/g," ").trim();return s.startsWith(n)&&(s=s.slice(n.length)),s=s.replace(/^[\s:;,.–—-]+/,"").trim(),s&&s!==n?s:null}const _t=e=>`${e}:captain-hold`,Ne=e=>e.secondMate?.taskId?`${e.secondMate.taskId}@${e.secondMate.id}`:e.taskId,Ce=(e,t)=>e&&!(t&&Date.parse(t)>Date.parse(e))?e:null,We=e=>e.secondMate?.taskId?`/tasks/${encodeURIComponent(`${e.secondMate.taskId}@${e.secondMate.id}`)}`:e.secondMate?`/second-mates#mate-${encodeURIComponent(e.secondMate.id)}`:`/tasks/${encodeURIComponent(e.taskId)}`,Et=e=>`/inbox#card-${encodeURIComponent(e)}`;function De(e){switch(e){case"j":case"ArrowDown":return{do:"move",by:1};case"k":case"ArrowUp":return{do:"move",by:-1};case"a":return{do:"agree"};case"Enter":case"c":return{do:"chat"};case"e":return{do:"evidence"};case"o":return{do:"other"};case"l":return{do:"later"};case"d":return{do:"close"};default:return null}}const Tt=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),jt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function Ot(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function Rt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!Tt.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return jt(s)?s:null}function K(e,t){const s=Rt(e);if(s===null||t.reserved?.includes(s))return e;const n=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${n.pathname}${n.search}${n.hash}`}const dt=new Set(["127.0.0.1","localhost"]);function Pe(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let n=!0;try{n=new URL(e).origin===t}catch{}return n?s:`${s} allow-same-origin`}const Mt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function qt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!dt.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return Mt(s)?s:null}function Lt(e,t,s){const n=t?qt(e):null;if(n===null||!t)return e;const r=s.port||(s.protocol==="https:"?"443":"80");if(dt.has(s.hostname.toLowerCase())&&String(n)===r)return e;const i=new URL(e),o=t.replace("{port}",String(n));return`${s.protocol}//${o}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class Ut{#t=g(null);get to(){return l(this.#t)}set to(t){f(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){f(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){f(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?G(t,this.remote,location.origin):this.hosted?K(t,this.hosted):this.to?Lt(t,this.to,location):t}sandbox(t){return this.remote?G(t,this.remote,location.origin):this.hosted&&Ot(this.hosted.pattern)?K(t,{pattern:this.hosted.pattern}):t}}const W=new Ut;function Fe(e){const t=n=>{if(!W.active)return;const r=n.composedPath().find(o=>o instanceof HTMLAnchorElement&&o.hasAttribute("href"));if(!r)return;const i=W.view(r.href);i!==r.href&&(r.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const n of s)e.addEventListener(n,t,!0);return()=>{for(const n of s)e.removeEventListener(n,t,!0)}}async function Nt(e,t,s,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[E]:s},body:JSON.stringify(t)});if(r.ok){const o=await r.json().catch(()=>null);return o?.message?.delivery==="failed"?{ok:!1,error:o.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:r.status===202}}return{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Ct(e,t,s){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[E]:s},body:JSON.stringify(t)}),r=await n.json().catch(()=>null);return n.ok&&Array.isArray(r?.points)?{ok:!0,points:r.points}:{ok:!1,error:r?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const Wt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function Dt(e){try{const t=await fetch(`/api/services?${Wt(e)}`);return t.ok?await t.json():null}catch{return null}}async function Pt(e,t,s=null){const n=window.open("","_blank");try{n?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let r=null;try{const o=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[E]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});r=o.ok?await o.json():{...await o.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${o.status}).`}}catch{r=null}const i=r?.state==="running"?s??r.url:null;if(i){const o=W.view(i);n?n.location.href=o:window.open(o,"_blank")}else n?.close();return r}const Ft=5e3,L=new Map;function Ht(e,t){let s=L.get(e);return s||(s=t(e).catch(n=>{throw L.delete(e),n}),L.set(e,s)),s}const Q=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function Jt(e,t){const s=e.pluginId,n=(i,o)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const d=o===void 0?e.projectId:o;return{plugin:s,service:i,project:typeof d=="string"&&d?d:null}},r=i=>{const o=typeof i=="object"&&i!==null?i:{},d=typeof o.task=="string"&&o.task?o.task:e.taskId??null;return d?{taskId:d,subject:typeof o.subject=="string"?o.subject:null,items:Array.isArray(o.items)?o.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,o={})=>t.status(n(i,o.project)),launch:async(i,o={})=>t.launch(n(i,o.project),t.token(),typeof o.open=="string"?o.open:null),sendFeedback:async i=>{if(!(t.clicked??Q)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const o=r(i);return o?t.feedback(s,o,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??Q)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const o=r(i);return o?t.summarise(s,o,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Bt(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await Ht(t.ui,t.importer??(r=>import(r)))}catch(r){throw new Error(`its UI bundle did not load (${r instanceof Error?r.message:String(r)})`)}let n;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((r,i)=>{n=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??Ft)})])}finally{clearTimeout(n)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var zt=at('<p class="text-sm text-muted-foreground"> </p>'),Gt=at('<div class="contents"></div> <!>',1);function He(e,t){ht(t,!0);let s=z(t,"preview",3,void 0),n=z(t,"quiet",3,!1);const r=S(()=>"element"in t.entry.render?t.entry.render.element:""),i=S(()=>t.entry.ui??null);let o=g(null),d=g(null),h=g(null);F(()=>{if(!l(o)||!l(r))return;const w=l(o);let x=!1,A=null;return f(h,null),Bt(w,{tag:l(r),ui:l(i),data:M(()=>t.data),entry:M(()=>t.entry),host:Jt(M(()=>t.entry),{status:Dt,launch:Pt,feedback:Nt,summarise:Ct,token:()=>St.data.sessionToken??""}),importer:t.importer}).then(a=>{A=a,x?a.remove():f(d,a,!0)},a=>{x||f(h,a.message,!0)}),()=>{x=!0,A?.remove(),f(d,null)}}),F(()=>{l(d)&&(s()!==void 0&&(l(d).preview=s()),l(d).entry=t.entry,l(d).data=t.data)});var m=Gt(),b=ft(m);wt(b,w=>f(o,w),()=>l(o));var I=mt(b,2);{var v=w=>{var x=zt(),A=gt(x);H(()=>yt(A,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(h)??""}.`)),J(w,x)};kt(I,w=>{l(h)&&!n()&&w(v)})}H(()=>bt(b,"data-plugin-element",l(r))),J(e,m),pt()}const Je=[{kind:"pr-green",label:"PR green",hint:"A pull request passed its checks and waits on you"},{kind:"question",label:"Question waiting",hint:"Firstmate needs your decision"},{kind:"stuck",label:"Worker stuck",hint:"Blocked, failed, lost contact or gone quiet"},{kind:"landed",label:"Merge landed",hint:"A pull request was merged"},{kind:"issue",label:"New issue",hint:"A GitHub issue you watch, with the bell on"},{kind:"events-paused",label:"Events source paused",hint:"A source exceeded its event rate limit"}],Yt=20*6e4,X=220;function Kt(e,t){const s=[],n={taskId:e.id,projectId:e.projectId,title:e.shortTitle},r=Zt(e.id),i=(h,m=r)=>({kind:"open",label:h,href:m,external:!1}),o=h=>e.pr?[{kind:"open",label:h,href:e.pr.url,external:!0}]:[],d=e.pr?.number?`Pull request #${e.pr.number}`:"The pull request";if(e.status==="needs-review"&&e.attention?.kind==="review"&&e.pr){const h=`pr-green:${e.id}:${e.pr.url}`;s.push({...n,id:h,kind:"pr-green",captain:!0,text:`${d} is green and ready to merge.`,actions:[{kind:"note",label:"Merge",text:`Please merge ${e.pr.url} (${e.id}: ${e.shortTitle}). Sent from Wheelhouse's ship's bell.`,requestId:`wh-bell-merge-${T(h)}`,sent:"Asked Firstmate to merge"},...o("Open PR"),i("Open task")]})}else if(e.status==="needs-decision"&&e.attention?.owner==="captain")s.push({...n,id:`question:${e.id}:${T(e.attention.text)}`,kind:"question",captain:!0,text:Z(e.attention.text),actions:[i("Open decision",e.secondMate?r:Et(_t(e.id))),i("Answer in chat",U(e.id))]});else if(e.status==="blocked"||e.status==="failed"||e.status==="lost")s.push({...n,id:`stuck:${e.id}:${e.status}:${T(e.summaryRaw??e.summary??e.statusLabel)}`,kind:"stuck",captain:!1,text:Z(e.summary?`${e.statusLabel}: ${e.summary}`:e.statusLabel),actions:[i("Open task"),i("Ask Firstmate",U(e.id))]});else if(Xt(e,t)){const h=Math.round((t-Date.parse(e.activity.at))/6e4);s.push({...n,id:`stuck:${e.id}:quiet:${T(e.activity.text)}`,kind:"stuck",captain:!1,text:`Gone quiet: no word for ${h} minutes while working.`,actions:[i("Open task"),i("Ask Firstmate",U(e.id))]})}else e.status==="landed"&&s.push({...n,id:`landed:${e.id}`,kind:"landed",captain:!1,text:e.pr?`${d} was merged.`:"The work was merged.",actions:[i("Open task"),...o("View PR")]});return s}function Qt(e){return!e||e.state!=="ours"||e.picker||e.signIn?null:e.terminal?{detail:e.terminal.excerpt||null}:null}function Be(e){return`${e.id}@${e.at}`}function Xt(e,t){if(e.status!=="working"||e.busy||e.pipeline&&e.pipeline.outcome==="running")return!1;const s=e.activity?.at?Date.parse(e.activity.at):NaN;return Number.isFinite(s)&&t-s>=Yt}function ze(e,t){if(!e.captain||e.taskId===null||!t||!t.collectedAt)return!0;const s=t.tasks.find(n=>n.id===e.taskId);return s?Kt(s,Date.now()).some(n=>n.id===e.id):!1}function Zt(e){return`/tasks/${encodeURIComponent(e)}`}function U(e){return`/?chat=${encodeURIComponent(e)}`}function Z(e){const t=e.replace(/\s+/g," ").trim();return t.length>X?`${t.slice(0,X-1).trimEnd()}…`:t}function T(e){let t=2166136261,s=1523705862;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=Math.imul(t^r,16777619),s=Math.imul(s^r,1540483477)}return(t>>>0).toString(16).padStart(8,"0")+(s>>>0).toString(16).padStart(8,"0")}const Vt=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,D=/^\[Request interrupted by user/,te=/\u001b\[[0-9;?]*[A-Za-z]/g,N=e=>String(e??"").split("/").filter(Boolean).pop()??"",C=e=>String(e??"").split(`
|
|
1
|
+
import"./DsnmJJEf.js";import{j as g,g as l,q as f,p as ht,u as F,l as M,f as ft,s as mt,t as H,a as J,b as pt,h as S,o as gt,c as at,k as B}from"./-7ouQdsG.js";import{s as yt}from"./MfmuqTIn.js";import{i as kt}from"./BAuCcuxw.js";import{s as bt}from"./CJNEYVWj.js";import{b as wt}from"./XNI4QyoL.js";import{p as z}from"./8Fai-wPF.js";import{p as St}from"./Cbb01QYB.js";import{S as E}from"./BXN538J3.js";import{r as G}from"./tpeuVjMv.js";import{w as vt}from"./B1V3Ajhv.js";const _e=["No longer needed","Already sorted elsewhere","Wrong question"],xt={approve:"Approve",fix:"Fix",skip:"Skip"},Ee=(e,t)=>t==="close"?"Dismiss":e.options.find(s=>s.choice===t)?.label??xt[t],Te=2e3,q=300;function ct(e,t){const s={};for(const n of e.calls){const r=t[n.id]?.trim(),i=n.options.find(d=>d.recommended)?.id,o=r||i;o&&(s[n.id]=o)}return s}const je=(e,t)=>e.calls.filter(s=>s.required&&!ct(e,t)[s.id]);function ut(e){const t=e.prompt?O(e.prompt,48):"";return e.number===null?t:t?`${e.number}) ${t}`:`${e.number})`}const Y=e=>ut(e)||"this question";function Oe(e,t){const s=new Set(e.calls.map(o=>o.id));if(Object.keys(t).find(o=>!s.has(o)))return{ok:!1,error:"A pick names a call this question does not ask."};const r=ct(e,t),i=[];for(const o of e.calls){const d=r[o.id];if(!d){if(o.required)return{ok:!1,error:`Pick an option for ${Y(o)}.`};continue}let h;if(o.options.length){const b=o.options.find(I=>I.id===d);if(!b)return{ok:!1,error:`That is not an option for ${Y(o)}.`};h=b.detail?`${b.label} (${O(b.detail,60)})`:O(b.label,80)}else{if(d.length>q)return{ok:!1,error:`Answers are limited to ${q} characters.`};h=O(d,q)}const m=ut(o);i.push(m?`${m}${/[?:]$/.test(m)?"":":"} ${h}`:h)}return i.length?{ok:!0,line:i.join(" ")}:{ok:!1,error:"Make a pick first."}}const O=(e,t)=>{const s=e.replace(/\s+/g," ").trim();return s.length>t?s.slice(0,t-1).trimEnd()+"…":s},Re=4*3600*1e3,Me="wheelhouse-inbox-snoozed";function lt(e,t){return Object.fromEntries(Object.entries(e).filter(([,s])=>s>t))}function qe(e,t){if(!e)return{};try{const s=JSON.parse(e);if(typeof s!="object"||s===null||Array.isArray(s))return{};const n={};for(const[r,i]of Object.entries(s))typeof i=="number"&&(n[r]=i);return lt(n,t)}catch{return{}}}function $t(e,t,s){const n=lt(t,s),r=e.filter(It),i=r.filter(o=>!n[o.id]);return{shown:i,snoozed:r.length-i.length}}const It=e=>!e.sent||e.sent.delivery==="failed",At=e=>e.owner==="captain",Le=(e,t,s)=>$t(e.filter(n=>At(n)&&!n.following),t,s).shown.length;function Ue(e){let s=(e.choices?[e.choices.intro,e.choices.after].filter(Boolean).join(" "):e.question).replace(/\s+/g," ").trim();const n=e.title.replace(/\s+/g," ").trim();return s.startsWith(n)&&(s=s.slice(n.length)),s=s.replace(/^[\s:;,.–—-]+/,"").trim(),s&&s!==n?s:null}const _t=e=>`${e}:captain-hold`,Ne=e=>e.secondMate?.taskId?`${e.secondMate.taskId}@${e.secondMate.id}`:e.taskId,Ce=(e,t)=>e&&!(t&&Date.parse(t)>Date.parse(e))?e:null,We=e=>e.secondMate?.taskId?`/tasks/${encodeURIComponent(`${e.secondMate.taskId}@${e.secondMate.id}`)}`:e.secondMate?`/second-mates#mate-${encodeURIComponent(e.secondMate.id)}`:`/tasks/${encodeURIComponent(e.taskId)}`,Et=e=>`/inbox#card-${encodeURIComponent(e)}`;function De(e){switch(e){case"j":case"ArrowDown":return{do:"move",by:1};case"k":case"ArrowUp":return{do:"move",by:-1};case"a":return{do:"agree"};case"Enter":case"c":return{do:"chat"};case"e":return{do:"evidence"};case"o":return{do:"other"};case"l":return{do:"later"};case"d":return{do:"close"};default:return null}}const Tt=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),jt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function Ot(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function Rt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!Tt.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return jt(s)?s:null}function K(e,t){const s=Rt(e);if(s===null||t.reserved?.includes(s))return e;const n=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${n.pathname}${n.search}${n.hash}`}const dt=new Set(["127.0.0.1","localhost"]);function Pe(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let n=!0;try{n=new URL(e).origin===t}catch{}return n?s:`${s} allow-same-origin`}const Mt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function qt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!dt.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return Mt(s)?s:null}function Lt(e,t,s){const n=t?qt(e):null;if(n===null||!t)return e;const r=s.port||(s.protocol==="https:"?"443":"80");if(dt.has(s.hostname.toLowerCase())&&String(n)===r)return e;const i=new URL(e),o=t.replace("{port}",String(n));return`${s.protocol}//${o}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class Ut{#t=g(null);get to(){return l(this.#t)}set to(t){f(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){f(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){f(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?G(t,this.remote,location.origin):this.hosted?K(t,this.hosted):this.to?Lt(t,this.to,location):t}sandbox(t){return this.remote?G(t,this.remote,location.origin):this.hosted&&Ot(this.hosted.pattern)?K(t,{pattern:this.hosted.pattern}):t}}const W=new Ut;function Fe(e){const t=n=>{if(!W.active)return;const r=n.composedPath().find(o=>o instanceof HTMLAnchorElement&&o.hasAttribute("href"));if(!r)return;const i=W.view(r.href);i!==r.href&&(r.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const n of s)e.addEventListener(n,t,!0);return()=>{for(const n of s)e.removeEventListener(n,t,!0)}}async function Nt(e,t,s,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[E]:s},body:JSON.stringify(t)});if(r.ok){const o=await r.json().catch(()=>null);return o?.message?.delivery==="failed"?{ok:!1,error:o.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:r.status===202}}return{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Ct(e,t,s){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[E]:s},body:JSON.stringify(t)}),r=await n.json().catch(()=>null);return n.ok&&Array.isArray(r?.points)?{ok:!0,points:r.points}:{ok:!1,error:r?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const Wt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function Dt(e){try{const t=await fetch(`/api/services?${Wt(e)}`);return t.ok?await t.json():null}catch{return null}}async function Pt(e,t,s=null){const n=window.open("","_blank");try{n?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let r=null;try{const o=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[E]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});r=o.ok?await o.json():{...await o.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${o.status}).`}}catch{r=null}const i=r?.state==="running"?s??r.url:null;if(i){const o=W.view(i);n?n.location.href=o:window.open(o,"_blank")}else n?.close();return r}const Ft=5e3,L=new Map;function Ht(e,t){let s=L.get(e);return s||(s=t(e).catch(n=>{throw L.delete(e),n}),L.set(e,s)),s}const Q=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function Jt(e,t){const s=e.pluginId,n=(i,o)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const d=o===void 0?e.projectId:o;return{plugin:s,service:i,project:typeof d=="string"&&d?d:null}},r=i=>{const o=typeof i=="object"&&i!==null?i:{},d=typeof o.task=="string"&&o.task?o.task:e.taskId??null;return d?{taskId:d,subject:typeof o.subject=="string"?o.subject:null,items:Array.isArray(o.items)?o.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,o={})=>t.status(n(i,o.project)),launch:async(i,o={})=>t.launch(n(i,o.project),t.token(),typeof o.open=="string"?o.open:null),sendFeedback:async i=>{if(!(t.clicked??Q)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const o=r(i);return o?t.feedback(s,o,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??Q)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const o=r(i);return o?t.summarise(s,o,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Bt(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await Ht(t.ui,t.importer??(r=>import(r)))}catch(r){throw new Error(`its UI bundle did not load (${r instanceof Error?r.message:String(r)})`)}let n;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((r,i)=>{n=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??Ft)})])}finally{clearTimeout(n)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var zt=at('<p class="text-sm text-muted-foreground"> </p>'),Gt=at('<div class="contents"></div> <!>',1);function He(e,t){ht(t,!0);let s=z(t,"preview",3,void 0),n=z(t,"quiet",3,!1);const r=S(()=>"element"in t.entry.render?t.entry.render.element:""),i=S(()=>t.entry.ui??null);let o=g(null),d=g(null),h=g(null);F(()=>{if(!l(o)||!l(r))return;const w=l(o);let x=!1,A=null;return f(h,null),Bt(w,{tag:l(r),ui:l(i),data:M(()=>t.data),entry:M(()=>t.entry),host:Jt(M(()=>t.entry),{status:Dt,launch:Pt,feedback:Nt,summarise:Ct,token:()=>St.data.sessionToken??""}),importer:t.importer}).then(a=>{A=a,x?a.remove():f(d,a,!0)},a=>{x||f(h,a.message,!0)}),()=>{x=!0,A?.remove(),f(d,null)}}),F(()=>{l(d)&&(s()!==void 0&&(l(d).preview=s()),l(d).entry=t.entry,l(d).data=t.data)});var m=Gt(),b=ft(m);wt(b,w=>f(o,w),()=>l(o));var I=mt(b,2);{var v=w=>{var x=zt(),A=gt(x);H(()=>yt(A,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(h)??""}.`)),J(w,x)};kt(I,w=>{l(h)&&!n()&&w(v)})}H(()=>bt(b,"data-plugin-element",l(r))),J(e,m),pt()}const Je=[{kind:"pr-green",label:"PR green",hint:"A pull request passed its checks and waits on you"},{kind:"question",label:"Question waiting",hint:"Firstmate needs your decision"},{kind:"stuck",label:"Worker stuck",hint:"Blocked, failed, lost contact or gone quiet"},{kind:"landed",label:"Merge landed",hint:"A pull request was merged"},{kind:"issue",label:"New issue",hint:"A GitHub issue you watch, with the bell on"},{kind:"events-paused",label:"Events source paused",hint:"A source exceeded its event rate limit"}],Yt=20*6e4,X=220;function Kt(e,t){const s=[],n={taskId:e.id,projectId:e.projectId,title:e.shortTitle},r=Zt(e.id),i=(h,m=r)=>({kind:"open",label:h,href:m,external:!1}),o=h=>e.pr?[{kind:"open",label:h,href:e.pr.url,external:!0}]:[],d=e.pr?.number?`Pull request #${e.pr.number}`:"The pull request";if(e.status==="needs-review"&&e.attention?.kind==="review"&&e.pr){const h=`pr-green:${e.id}:${e.pr.url}`;s.push({...n,id:h,kind:"pr-green",captain:!0,text:`${d} is green and ready to merge.`,actions:[{kind:"note",label:"Merge",text:`Please merge ${e.pr.url} (${e.id}: ${e.shortTitle}). Sent from Wheelhouse's ship's bell.`,requestId:`wh-bell-merge-${T(h)}`,sent:"Asked Firstmate to merge"},...o("Open PR"),i("Open task")]})}else if(e.status==="needs-decision"&&e.attention?.owner==="captain")s.push({...n,id:`question:${e.id}:${T(e.attention.text)}`,kind:"question",captain:!0,text:Z(e.attention.text),actions:[i("Open decision",e.secondMate?r:Et(_t(e.id))),i("Answer in chat",U(e.id))]});else if(e.status==="blocked"||e.status==="failed"||e.status==="lost")s.push({...n,id:`stuck:${e.id}:${e.status}:${T(e.summaryRaw??e.summary??e.statusLabel)}`,kind:"stuck",captain:!1,text:Z(e.summary?`${e.statusLabel}: ${e.summary}`:e.statusLabel),actions:[i("Open task"),i("Ask Firstmate",U(e.id))]});else if(Xt(e,t)){const h=Math.round((t-Date.parse(e.activity.at))/6e4);s.push({...n,id:`stuck:${e.id}:quiet:${T(e.activity.text)}`,kind:"stuck",captain:!1,text:`Gone quiet: no word for ${h} minutes while working.`,actions:[i("Open task"),i("Ask Firstmate",U(e.id))]})}else e.status==="landed"&&s.push({...n,id:`landed:${e.id}`,kind:"landed",captain:!1,text:e.pr?`${d} was merged.`:"The work was merged.",actions:[i("Open task"),...o("View PR")]});return s}function Qt(e){return!e||e.state!=="ours"||e.picker||e.signIn?null:e.terminal?{detail:e.terminal.excerpt||null}:null}function Be(e){return`${e.id}@${e.at}`}function Xt(e,t){if(e.status!=="working"||e.busy||e.pipeline&&e.pipeline.outcome==="running")return!1;const s=e.activity?.at?Date.parse(e.activity.at):NaN;return Number.isFinite(s)&&t-s>=Yt}function ze(e,t){if(!e.captain||e.taskId===null||!t||!t.collectedAt)return!0;const s=t.tasks.find(n=>n.id===e.taskId);return s?Kt(s,Date.now()).some(n=>n.id===e.id):!1}function Zt(e){return`/tasks/${encodeURIComponent(e)}`}function U(e){return`/?chat=${encodeURIComponent(e)}`}function Z(e){const t=e.replace(/\s+/g," ").trim();return t.length>X?`${t.slice(0,X-1).trimEnd()}…`:t}function T(e){let t=2166136261,s=1523705862;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=Math.imul(t^r,16777619),s=Math.imul(s^r,1540483477)}return(t>>>0).toString(16).padStart(8,"0")+(s>>>0).toString(16).padStart(8,"0")}const Vt=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,D=/^\[Request interrupted by user/,te=/\u001b\[[0-9;?]*[A-Za-z]/g,N=e=>String(e??"").split("/").filter(Boolean).pop()??"",C=e=>String(e??"").split(`
|
|
2
2
|
`)[0].trim(),ee=e=>{try{return new URL(String(e)).host}catch{return String(e??"")}};function se(e,t){switch(e){case"Bash":return{verb:"Ran",summary:t.description||C(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:N(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:N(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:N(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:ee(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:C(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||C(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const s=e.match(/^mcp__(.+?)__(.+)$/);return s?{verb:"Used",summary:`${s[2].replace(/_/g," ")} (${s[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:e,noun:["tool call","tool calls"]}}}}function ne(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
|
|
3
3
|
`):""}const _=e=>e.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),re=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,V=e=>{const t=e.match(re);return t&&_(t[1])||null};function R(e,t){const s=e.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return s?s[1].trim():null}function P(e){const t=R(e,"command-name");if(!t)return null;const s=R(e,"command-args");return s?`${t} ${s}`:t}function ie(e){return(Array.isArray(e?.questions)?e.questions:[]).map(s=>({header:String(s?.header??""),question:String(s?.question??""),multiSelect:s?.multiSelect===!0,options:(Array.isArray(s?.options)?s.options:[]).map(n=>({label:String(n?.label??""),description:String(n?.description??"")}))}))}function oe(e,t){const s=e.toolUseResult?.answers;if(s&&typeof s=="object")return Object.fromEntries(Object.entries(s).map(([r,i])=>[r,String(i)]));const n={};for(const r of t.matchAll(/"([^"]+)"="([^"]*)"/g))n[r[1]]=r[2];return n}function tt(e){const t=e?.message?.content;return e?.type!=="user"||e.isSidechain||e.isMeta||typeof t!="string"||e.origin?.kind==="task-notification"||t.trimStart().startsWith("<task-notification>")||D.test(t.trim())?!1:!!P(t)||!t.includes("<local-command-stdout>")&&!!_(t)}function ae(e,t){if(!e.items.length&&!e.checks.length)return t;if(!t.items.length&&!t.checks.length&&!t.title)return e;const s=e.checks.map((n,r,i)=>r===i.length-1&&t.items.length?{...n,done:!0}:n);return{items:[...e.items,...t.items],title:t.title??e.title,checks:[...s,...t.checks]}}function et(e){const t=[],s=new Map,n=new Map;let r=null,i=null,o=null,d=null,h=!1;const m=()=>{i=null},b=a=>(i||(i={kind:"turn",id:a.uuid,parts:[],at:a.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:h?"background":"captain"},h=!1,t.push(i),o=i),i),I=a=>{const k=b(a),c=k.parts[k.parts.length-1];if(c?.kind==="activity")return c;const u={kind:"activity",id:`${a.uuid}-a`,steps:[]};return k.parts.push(u),u},v=(a,k,c={})=>{m(),h=!1,t.push({kind:"user",id:a.uuid,text:k,at:a.timestamp,queued:!!c.queued,command:!!c.command})},w=(a,k,c,u=a.uuid)=>{i&&I(a).steps.push({kind:"context",id:u,label:k,detail:c})};for(const a of e){if(!a||typeof a!="object"||a.isSidechain)continue;const k=a.timestamp??null;switch(a.type){case"wh-session":o&&!o.done&&!o.interrupted&&(o.done=!0),m(),o=null,h=!1,t[t.length-1]?.kind==="session"&&t.pop(),t.push({kind:"session",id:a.uuid,at:a.timestamp,first:!!a.first});break;case"ai-title":r=a.aiTitle??r;break;case"user":{const c=a.message?.content;if(typeof c=="string")if(a.origin?.kind==="task-notification"||c.trimStart().startsWith("<task-notification>"))m(),h=!0;else if(a.isMeta){const u=V(c);u?v(a,u,{queued:!0}):w(a,"Context added",c)}else if(D.test(c.trim()))o&&(o.interrupted=!0);else{const u=P(c);if(u)v(a,u,{command:!0});else if(!c.includes("<local-command-stdout>")){const p=_(c);p&&v(a,p)}}else if(Array.isArray(c))for(const u of c)if(u?.type==="tool_result"){const p=ne(u.content),y=s.get(u.tool_use_id);y&&(y.result=p,y.isError=!!u.is_error);const $=n.get(u.tool_use_id);$&&($.answers=u.is_error?{}:oe(a,p))}else if(u?.type==="text"){const p=String(u.text??""),y=V(p);if(D.test(p.trim()))o&&(o.interrupted=!0);else if(y)v(a,y,{queued:!0});else if(a.isMeta||a.sourceToolUseID){const $=p.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";w(a,$,p,`${a.uuid}-${$}`)}else{const $=_(p);$&&v(a,$)}}else u?.type==="image"&&v(a,"[image]");break}case"assistant":{for(const c of a.message?.content??[])if(c?.type==="thinking"||c?.type==="redacted_thinking"){const u=d&&k?Date.parse(k)-Date.parse(d):null;I(a).steps.push({kind:"thinking",id:`${a.uuid}-th`,ms:u})}else if(c?.type==="tool_use"&&c.name==="AskUserQuestion"){const u={kind:"question",id:c.id,questions:ie(c.input),answers:null};n.set(c.id,u),b(a).parts.push(u)}else if(c?.type==="tool_use"){const u=se(String(c.name),c.input??{}),p={kind:"tool",id:c.id,name:String(c.name),...u,input:c.input,result:null,isError:!1};s.set(c.id,p),I(a).steps.push(p)}else if(c?.type==="text"){if(!String(c.text??"").trim())continue;b(a).parts.push({kind:"text",id:`${a.uuid}-t`,text:c.text})}break}case"attachment":{const c=a.attachment??{};if(c.type==="queued_command"&&typeof c.prompt=="string"&&(c.commandMode??"prompt")==="prompt"){const u=_(c.prompt);u&&v(a,u,{queued:!0})}else if(c.type==="hook_additional_context"){const u=Array.isArray(c.content)?c.content.join(`
|
|
4
4
|
`):String(c.content??"");w(a,`Hook added context${c.hookEvent?` (${c.hookEvent})`:""}`,u)}break}case"system":{if(a.subtype==="turn_duration")o&&(o.durationMs=a.durationMs??null,o.done=!0),m();else if(a.subtype==="away_summary")m(),t.push({kind:"notice",id:a.uuid,title:"While you were away",detail:String(a.content??""),at:a.timestamp});else if(a.subtype==="local_command"){const c=String(a.content??""),u=R(c,"local-command-stdout")??R(c,"local-command-stderr"),p=P(c);if(p)v(a,p,{command:!0});else if(u!==null){const y=u.replace(te,"").trim();y&&t.push({kind:"output",id:a.uuid,text:y,at:a.timestamp})}}break}}k&&(d=k)}const x=[];return{items:t.filter((a,k)=>{if(a.kind!=="turn"||a.trigger!=="background")return!0;const c=a.parts.filter(y=>y.kind==="text").map(y=>y.text).join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{p as N,f as G,e as P,n as J,r as k,s as w,g as r,a as c,b as O,j as B,q as I,c as f,h as C,t as p,o as y}from"./-7ouQdsG.js";import{d as H,a as M,s as q}from"./MfmuqTIn.js";import{i as j}from"./BAuCcuxw.js";import{a as K,P as Q}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{p as N,f as G,e as P,n as J,r as k,s as w,g as r,a as c,b as O,j as B,q as I,c as f,h as C,t as p,o as y}from"./-7ouQdsG.js";import{d as H,a as M,s as q}from"./MfmuqTIn.js";import{i as j}from"./BAuCcuxw.js";import{a as K,P as Q}from"./C00jDMn9.js";import{e as U,a as T,s as _,g as V}from"./CJNEYVWj.js";import{p as S}from"./8Fai-wPF.js";import{l as X}from"./B1V3Ajhv.js";import{s as Y,c as Z}from"./CLd-Yktx.js";import{e as $,C as ee}from"./CR7y1ULG.js";import{C as te}from"./Sz_v_ihG.js";var ae=f('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function we(z,e){N(e,!0);let s=B(null),o=B(!1);function x(n){const l=n.currentTarget,u=l.closest("article"),L=u?.querySelector("[data-card-picture]");I(s,(L??u??l).getBoundingClientRect(),!0),I(o,!0)}var v=ae(),i=G(v),d=P(i),h=P(d);K(h,{class:"size-3.5","aria-hidden":"true"}),J(),k(d),k(i);var E=w(i,2);{var g=n=>{{let l=C(()=>e.task.preview?.url??""),u=C(()=>e.task.status!=="landed");Q(n,{get taskId(){return e.task.id},get title(){return e.task.shortTitle},get url(){return r(l)},get talk(){return r(u)},get from(){return r(s)},onclose:()=>I(o,!1)})}};j(E,n=>{r(o)&&e.task.preview&&n(g)})}M("click",d,x),c(z,v),O()}H(["click"]);const re={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},D={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var ne=f("<li></li>"),oe=f("<span> </span>"),se=f('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),ie=f('<span class="text-foreground/80"> </span>'),le=f('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function Ce(z,e){N(e,!0);let s=S(e,"busy",3,!1),o=S(e,"lead",3,null),x=S(e,"leadClass",3,""),v=S(e,"size",3,"card"),i=S(e,"questions",3,null);const d=C(()=>e.pipeline.steps.map(t=>({s:t,tone:Y(t,e.pipeline)}))),h=C(()=>Z(e.pipeline,X.now)),E=C(()=>`Checks: ${r(d).map(({s:t,tone:a})=>`${t.label} ${D[a]}`).join(", ")}`);var g=le(),n=P(g);U(n,21,()=>r(d),({s:t,tone:a})=>t.key,(t,a)=>{let m=()=>r(a).s,b=()=>r(a).tone;var F=ne();p(()=>{T(F,1,`h-1 rounded-full ${re[b()]??""} ${s()&&(b()==="active"||b()==="fixing")?"motion-safe:animate-pulse":""}`),_(F,"title",`${m().label??""}: ${D[b()]??""}`)}),c(t,F)}),k(n);var l=w(n,2),u=P(l);{var L=t=>{var a=oe(),m=y(a);p(()=>{T(a,1,`font-medium ${x()??""}`),q(m,`${o()??""}.`)}),c(t,a)};j(u,t=>{o()&&t(L)})}var R=w(u,2);{var W=t=>{var a=se(),m=y(a,!0);p(()=>{_(a,"aria-expanded",i().expanded),_(a,"aria-controls",i().controls),_(a,"title",i().expanded?"Hide the questions":"Show the questions"),q(m,r(h))}),M("click",a,function(...b){i().toggle?.apply(this,b)}),c(t,a)},A=t=>{var a=ie(),m=y(a,!0);p(()=>q(m,r(h))),c(t,a)};j(R,t=>{i()?t(W):t(A,-1)})}k(l),k(g),p(()=>{V(n,`grid-template-columns: repeat(${r(d).length??""}, minmax(0, 1fr))`),_(n,"aria-label",r(E)),T(l,1,`tabular line-clamp-2 text-muted-foreground ${v()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),c(z,g),O()}H(["click"]);var de=f('<span class="shrink-0 text-muted-foreground"> </span>'),ue=f('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function ye(z,e){N(e,!0);const s=C(()=>$(e.eta));var o=ue(),x=P(o);te(x,{class:"size-3.5 shrink-0","aria-hidden":"true"});var v=w(x,2),i=y(v,!0),d=w(v,2);{var h=n=>{var l=de(),u=y(l);p(L=>q(u,`· ${L??""}`),[()=>ee[e.eta.confidence].toLowerCase()]),c(n,l)};j(d,n=>{r(s).tone==="normal"&&e.eta.confidence!=="none"&&n(h)})}var E=w(d,2),g=y(E,!0);k(o),p(()=>{T(o,1,`flex min-w-0 items-center gap-1.5 text-xs ${r(s).tone==="warning"?"text-warning":r(s).tone==="muted"?"text-muted-foreground":"text-foreground"}`),_(o,"title",r(s).note),q(i,r(s).text),q(g,r(s).note)}),c(z,o),O()}export{Ce as C,ye as E,we as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{o as Be}from"./D3nPFlu1.js";import{p as Re,u as We,g as e,l as tt,q as O,f as Z,s as R,e as L,r as _,a as n,b as Ce,j as Q,h as se,t as k,o as C,n as Te,x as je,c as u,i as he,aA as Ie,au as rt,bD as at}from"./-7ouQdsG.js";import{e as nt,s as M,l as ot}from"./MfmuqTIn.js";import{i as q}from"./BAuCcuxw.js";import{k as st}from"./CkNCm7Ts.js";import{c as it}from"./CmLAxoyv.js";import{a as oe,h as lt,s as ue,g as ct,e as xe,c as _e}from"./CJNEYVWj.js";import{s as Je,r as Ze,p as Me}from"./8Fai-wPF.js";import{a as dt}from"./Ug0gsfQr.js";import{e as ut,P as ft}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{o as Be}from"./D3nPFlu1.js";import{p as Re,u as We,g as e,l as tt,q as O,f as Z,s as R,e as L,r as _,a as n,b as Ce,j as Q,h as se,t as k,o as C,n as Te,x as je,c as u,i as he,aA as Ie,au as rt,bD as at}from"./-7ouQdsG.js";import{e as nt,s as M,l as ot}from"./MfmuqTIn.js";import{i as q}from"./BAuCcuxw.js";import{k as st}from"./CkNCm7Ts.js";import{c as it}from"./CmLAxoyv.js";import{a as oe,h as lt,s as ue,g as ct,e as xe,c as _e}from"./CJNEYVWj.js";import{s as Je,r as Ze,p as Me}from"./8Fai-wPF.js";import{a as dt}from"./Ug0gsfQr.js";import{e as ut,P as ft}from"./C6jVoo_e.js";import{b as Oe}from"./XNI4QyoL.js";import{p as Fe}from"./Cbb01QYB.js";import{j as De,s as vt,P as mt}from"./BBYXgHkS.js";import{S as Ve}from"./BXN538J3.js";import{l as qe,e as pt}from"./Buvnupwl.js";import{B as ze}from"./Cox57RCx.js";import{L as Ke}from"./wu_NjAkT.js";import{P as ht}from"./DyxFq-Tu.js";import{I as Xe}from"./BfNiKjWt.js";import{C as gt}from"./6rTUl_co.js";import{C as xt}from"./55XEoNtX.js";import{X as _t}from"./BJoMiuA8.js";import{C as yt}from"./C3tLc6qk.js";import{E as wt}from"./BWPYBmh1.js";var bt=new Set(["$$slots","$$events","$$legacy"]);function kt(r,t){let o=Ze(t,bt);const l={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],aliases:["help-circle","circle-help"]};Xe(r,Je(()=>o,{get icon(){return l}}))}var Mt=new Set(["$$slots","$$events","$$legacy"]);function St(r,t){let o=Ze(t,Mt);const l={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Xe(r,Je(()=>o,{get icon(){return l}}))}const Et="2026-01-26";class G extends Error{constructor(t,o){super(o),this.code=t}code}const Tt=-32601,ke=-32602,ye=-32e3,zt=r=>typeof r=="string"&&r.length<=128||typeof r=="number"&&Number.isFinite(r);function At(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;const t=r;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!zt(t.id)||t.method===void 0&&t.id===void 0?null:t}class Pt{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const o=At(t);if(o){if(o.method!==void 0&&o.id!==void 0)this.answer(o.id,o.method,o.params);else if(o.method!==void 0)try{this.o.onNotification(o.method,o.params)}catch{}else if(o.id!==void 0){const l=this.pending.get(o.id);if(!l)return;this.pending.delete(o.id),clearTimeout(l.timer),o.error?l.reject(new G(o.error.code,String(o.error.message))):l.resolve(o.result)}}}async answer(t,o,l){let h;try{const d=await this.o.onRequest(o,l);h={jsonrpc:"2.0",id:t,result:d??{}}}catch(d){const x=d instanceof G?d:new G(ye,d instanceof Error?d.message:String(d));h={jsonrpc:"2.0",id:t,error:{code:x.code,message:x.message}}}this.closed||this.o.send(h)}request(t,o,l=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const h=this.next++;return new Promise((d,x)=>{const a=setTimeout(()=>{this.pending.delete(h),x(new Error(`The app did not answer ${t}.`))},l);this.pending.set(h,{resolve:d,reject:x,timer:a}),this.o.send({jsonrpc:"2.0",id:h,method:t,params:o})})}notify(t,o){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:o})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const Pe=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{},jt=16*1024;function Nt(r,t,o){return async(l,h)=>{const d=Pe(h);switch(l){case"ui/initialize":return{protocolVersion:Et,hostInfo:t,hostCapabilities:o,hostContext:r.context()};case"ping":return{};case"tools/call":{if(typeof d.name!="string"||!d.name)throw new G(ke,"Name the tool to call.");return r.callTool(d.name,Pe(d.arguments))}case"resources/read":{if(typeof d.uri!="string"||!d.uri)throw new G(ke,"Name the resource to read.");return r.readResource(d.uri)}case"ui/open-link":{let x;try{x=new URL(String(d.url))}catch{throw new G(ke,"Invalid URL")}if(x.protocol!=="http:"&&x.protocol!=="https:")throw new G(ye,"Policy violation: only http(s) links open.");return r.openLink(x.href),{}}case"ui/message":{const a=(Array.isArray(d.content)?d.content:[d.content]).map(z=>Pe(z)).filter(z=>z.type==="text"&&typeof z.text=="string").map(z=>z.text).join(`
|
|
2
2
|
|
|
3
3
|
`).trim();if(!a)throw new G(ke,"Invalid message format: no text.");if(a.length>jt)throw new G(ke,"The message is too long.");if(!await r.sendMessage(a))throw new G(ye,"Message sending denied");return{}}case"ui/request-display-mode":{const x=d.mode;if(x!=="inline"&&x!=="fullscreen"&&x!=="pip")throw new G(ke,"Unknown display mode.");return{mode:await r.displayMode(x)}}default:throw new G(Tt,`Wheelhouse does not offer ${l}.`)}}}function Ot(r){return(t,o)=>{const l=Pe(o),h=d=>typeof d=="number"&&Number.isFinite(d)&&d>=0?Math.min(d,1e5):void 0;t==="ui/notifications/initialized"?r.initialized():t==="ui/notifications/size-changed"?r.resize({width:h(l.width),height:h(l.height)}):t==="notifications/message"&&r.log(typeof l.level=="string"?l.level:"info",l.data)}}const Dt={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function It(r){const t={};for(const[o,l]of Object.entries(Dt)){const h=r(l).trim();h&&(t[o]=h)}return t}function Rt(r,t,o){const l=Math.round(r.width);return t?{width:l,height:Math.round(r.height)}:{width:l,maxHeight:o}}function Ct(r){return{toolInfo:{tool:r.tool},theme:r.theme,styles:{variables:r.styles},displayMode:r.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:r.dimensions,...r.locale?{locale:r.locale}:{},...r.timeZone?{timeZone:r.timeZone}:{},userAgent:`wheelhouse/${r.version}`,platform:"web",deviceCapabilities:{hover:r.hover??!0,touch:r.touch??!1}}}function Lt(r){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:r}}}const Wt=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function Ft(r){return[...new Set(Wt.flatMap(t=>r[t]??[]))]}async function Se(r,t,o){let l;try{l=await fetch(`/api/apps/${r}`,{method:"POST",headers:{"content-type":"application/json",[Ve]:o},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const h=await l.json().catch(()=>null);if(h&&(l.ok||"ok"in h||"state"in h))return h;throw new Error(h?.message??`Wheelhouse answered ${l.status}.`)}const qt=(r,t)=>Se("open",r,t),Ht=(r,t)=>Se("run",r,t),He=(r,t,o)=>Se("call",{...r,...t},o),Ut=(r,t,o)=>Se("read",{...r,uri:t},o),ia=(r,t)=>Se("chat",{calls:r},t);async function Bt(r,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[Ve]:t},body:JSON.stringify(r)})).json().catch(()=>null)}catch{return null}}var Jt=u('<p aria-busy="true">Opening the app…</p>'),Zt=u("<!>Starting…",1),Vt=u("<!> ",1),Kt=u('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),Xt=u('<div data-app-service=""><p> </p> <!></div>'),Gt=u("<p> </p>"),Yt=u("<!>Exit full screen",1),Qt=u('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),$t=u('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),er=u('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),tr=u('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),rr=u('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),ar=u('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function nr(r,t){Re(t,!0);const o=720;let l=Me(t,"fill",3,!1),h=Me(t,"maxHeight",3,o);const d=()=>Fe.data.sessionToken??"",x=()=>Fe.data.health?.version??"0.0.0";let a=Q("opening"),z=Q(null),H=Q(null),ie=Q(""),Y=Q(null),fe=Q(null),ve=Q(!1),ge=Q(160),N=Q("inline"),T=Q(null),D=Q(null),g=Q(()=>{}),s=Q(null),m=Q(null),S=Promise.resolve();function y(c){const j=S.then(()=>new Promise(J=>{O(s,{...c,answer:te=>{O(s,null),J(te)}},!0)}));return S=j.catch(()=>{}),j}We(()=>{e(m)&&(e(s)&&!e(m).open?e(m).showModal():!e(s)&&e(m).open&&e(m).close())});async function p(){O(a,"opening"),O(Y,null);try{const c=await qt(t.ref,d());c.state==="ready"?(O(z,c),O(ie,c.server.title,!0),O(a,"ready")):c.state==="service"?(O(H,c.service),O(ie,c.server.title,!0),O(a,"service")):(O(Y,c.reason,!0),O(a,"failed"))}catch(c){O(Y,c.message,!0),O(a,"failed")}}async function w(){if(!e(H))return;O(ve,!0);const c=await Bt({plugin:e(H).plugin,service:e(H).service,project:e(H).project},d());O(ve,!1),c?.state==="running"?await p():O(H,c??e(H))}Be(()=>{p()});const i=se(()=>{if(!e(z))return null;const c=new URL(De.sandbox(e(z).sandbox));return c.searchParams.set("host",location.origin),c.href}),v=se(()=>e(z)?Ft(e(z).csp):[]),A=()=>document.documentElement.classList.contains("dark")?"dark":"light",P=()=>{const c=getComputedStyle(document.documentElement);return It(j=>c.getPropertyValue(j))},E=()=>{const c=e(T)?.getBoundingClientRect()??{width:0,height:0};return e(N)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:Rt(c,l(),h())};We(()=>{if(!e(z)||!e(D))return;const c=e(z),j=e(D);return tt(()=>I(c,j))});function I(c,j){const J=new URL(De.sandbox(c.sandbox)).origin,te=t.ref;let me=!1,$=null,le="";const re=Ht(te,d()).catch(f=>({ok:!1,reason:f.message})),U=f=>j.contentWindow?.postMessage(f,J),W={context:()=>Ct({tool:c.tool,theme:A(),styles:P(),displayMode:e(N),dimensions:E(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:x()}),async callTool(f,F){let ee=await He(te,{name:f,arguments:F,confirmed:!1},d());if(!ee.ok&&ee.confirm){if(!await y({kind:"tool",title:ee.confirm.title,description:ee.confirm.description,args:JSON.stringify(F,null,2)}))throw new G(ye,"The captain declined the call.");ee=await He(te,{name:f,arguments:F,confirmed:!0},d())}if(!ee.ok)throw new G(ye,ee.reason);return ee.result},async readResource(f){const F=await Ut(te,f,d());if(!F.ok)throw new G(ye,F.reason);return F.result},async sendMessage(f){if(!await y({kind:"message",text:f}))return!1;const F=await vt(`From the “${t.title}” app (${t.plugin} plugin):
|
|
4
4
|
|
|
Binary file
|
|
Binary file
|