@chrisjowen/wheelhouse 0.22.5 → 0.22.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.DvoPFmNs.css +1 -0
- package/build/client/_app/immutable/assets/0.DvoPFmNs.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DvoPFmNs.css.gz +0 -0
- package/build/client/_app/immutable/chunks/{B42HCa1Z.js → ALbIn9xu.js} +1 -1
- package/build/client/_app/immutable/chunks/ALbIn9xu.js.br +0 -0
- package/build/client/_app/immutable/chunks/ALbIn9xu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C0XRIeH0.js → BBm_Fs-b.js} +1 -1
- package/build/client/_app/immutable/chunks/BBm_Fs-b.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBm_Fs-b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D_t5aTvb.js → BCs6bnXY.js} +1 -1
- package/build/client/_app/immutable/chunks/BCs6bnXY.js.br +0 -0
- package/build/client/_app/immutable/chunks/BCs6bnXY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{06NYrole.js → BF_cZ9t1.js} +1 -1
- package/build/client/_app/immutable/chunks/BF_cZ9t1.js.br +0 -0
- package/build/client/_app/immutable/chunks/BF_cZ9t1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{S3dTIgXO.js → B_2dI8B-.js} +1 -1
- package/build/client/_app/immutable/chunks/B_2dI8B-.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_2dI8B-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B1Ason0h.js → BkMzJnu3.js} +1 -1
- package/build/client/_app/immutable/chunks/BkMzJnu3.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkMzJnu3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D3vMdNpQ.js → Bk_ZNhuN.js} +1 -1
- package/build/client/_app/immutable/chunks/Bk_ZNhuN.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk_ZNhuN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CvnA42KE.js → C--OEIw2.js} +1 -1
- package/build/client/_app/immutable/chunks/C--OEIw2.js.br +0 -0
- package/build/client/_app/immutable/chunks/C--OEIw2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BewcaM3i.js → C4rlO5ce.js} +2 -2
- package/build/client/_app/immutable/chunks/C4rlO5ce.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4rlO5ce.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DKlxq08T.js → CU--1UbH.js} +1 -1
- package/build/client/_app/immutable/chunks/CU--1UbH.js.br +0 -0
- package/build/client/_app/immutable/chunks/CU--1UbH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DdD2DUSn.js → CWCjMcSQ.js} +1 -1
- package/build/client/_app/immutable/chunks/CWCjMcSQ.js.br +1 -0
- package/build/client/_app/immutable/chunks/CWCjMcSQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CJ_zP9aP.js → DFCS-1G4.js} +1 -1
- package/build/client/_app/immutable/chunks/DFCS-1G4.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFCS-1G4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bk_vkVPR.js → DIVbIv6L.js} +1 -1
- package/build/client/_app/immutable/chunks/DIVbIv6L.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIVbIv6L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{HxCbb4z3.js → DKap1_6w.js} +1 -1
- package/build/client/_app/immutable/chunks/DKap1_6w.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKap1_6w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cz6s8vAU.js → DSX3BpgH.js} +1 -1
- package/build/client/_app/immutable/chunks/DSX3BpgH.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSX3BpgH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BIDYlDeR.js → DUXFc1rr.js} +1 -1
- package/build/client/_app/immutable/chunks/DUXFc1rr.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUXFc1rr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{EiS0rhjr.js → DW78OM6E.js} +1 -1
- package/build/client/_app/immutable/chunks/DW78OM6E.js.br +0 -0
- package/build/client/_app/immutable/chunks/DW78OM6E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{tVK81Wo7.js → DcngPT1B.js} +1 -1
- package/build/client/_app/immutable/chunks/DcngPT1B.js.br +0 -0
- package/build/client/_app/immutable/chunks/DcngPT1B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B_9oGok_.js → DeI80PG9.js} +1 -1
- package/build/client/_app/immutable/chunks/DeI80PG9.js.br +0 -0
- package/build/client/_app/immutable/chunks/DeI80PG9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DkYzvlzG.js → DjaUBMdB.js} +1 -1
- package/build/client/_app/immutable/chunks/DjaUBMdB.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjaUBMdB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CCNfPCjE.js → DkLM7lHB.js} +1 -1
- package/build/client/_app/immutable/chunks/DkLM7lHB.js.br +0 -0
- package/build/client/_app/immutable/chunks/{CCNfPCjE.js.gz → DkLM7lHB.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{nb8rTQbZ.js → H0f_fYvf.js} +1 -1
- package/build/client/_app/immutable/chunks/H0f_fYvf.js.br +0 -0
- package/build/client/_app/immutable/chunks/H0f_fYvf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DKmmKKWI.js → WrKGiNFc.js} +1 -1
- package/build/client/_app/immutable/chunks/WrKGiNFc.js.br +0 -0
- package/build/client/_app/immutable/chunks/WrKGiNFc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Z0GxSwEl.js +1 -0
- package/build/client/_app/immutable/chunks/Z0GxSwEl.js.br +0 -0
- package/build/client/_app/immutable/chunks/Z0GxSwEl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DwbTjpdU.js → bVnBahjY.js} +1 -1
- package/build/client/_app/immutable/chunks/bVnBahjY.js.br +0 -0
- package/build/client/_app/immutable/chunks/bVnBahjY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CjEWkwrc.js → g2M5EibM.js} +1 -1
- package/build/client/_app/immutable/chunks/g2M5EibM.js.br +0 -0
- package/build/client/_app/immutable/chunks/g2M5EibM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BPodyZX-.js → jGjhSZaO.js} +1 -1
- package/build/client/_app/immutable/chunks/jGjhSZaO.js.br +0 -0
- package/build/client/_app/immutable/chunks/jGjhSZaO.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.BYCz6Sud.js → app.CBd4ts86.js} +2 -2
- package/build/client/_app/immutable/entry/app.CBd4ts86.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CBd4ts86.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DsKQ0RT3.js +1 -0
- package/build/client/_app/immutable/entry/start.DsKQ0RT3.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DsKQ0RT3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.B-iFwXkB.js → 0.F-xI54ba.js} +1 -1
- package/build/client/_app/immutable/nodes/0.F-xI54ba.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.F-xI54ba.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BmQ5L6gl.js → 1.BeXAD0_3.js} +1 -1
- package/build/client/_app/immutable/nodes/1.BeXAD0_3.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BeXAD0_3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.xV6yNabZ.js → 10.MkZ74VF5.js} +1 -1
- package/build/client/_app/immutable/nodes/10.MkZ74VF5.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.MkZ74VF5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.GVCOI3ma.js → 11.Dfa5qI-E.js} +1 -1
- package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.DhYFOVoP.js → 12.pVeM3rSk.js} +1 -1
- package/build/client/_app/immutable/nodes/12.pVeM3rSk.js.br +0 -0
- package/build/client/_app/immutable/nodes/{12.DhYFOVoP.js.gz → 12.pVeM3rSk.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{13.B-vfxaQx.js → 13.DftunDAR.js} +1 -1
- package/build/client/_app/immutable/nodes/13.DftunDAR.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DftunDAR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.Bd1B9WvF.js → 14.CoquYL6y.js} +1 -1
- package/build/client/_app/immutable/nodes/14.CoquYL6y.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CoquYL6y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.oS-QEFZo.js → 15.DWSZSNt3.js} +1 -1
- package/build/client/_app/immutable/nodes/15.DWSZSNt3.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DWSZSNt3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.DgiO8TOd.js → 16.Cd97GqaU.js} +1 -1
- package/build/client/_app/immutable/nodes/16.Cd97GqaU.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Cd97GqaU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.5qy13_B4.js → 17.CeIjKAJx.js} +1 -1
- package/build/client/_app/immutable/nodes/17.CeIjKAJx.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CeIjKAJx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{18.CA4e4G5Q.js → 18.D5iwjrHU.js} +1 -1
- package/build/client/_app/immutable/nodes/18.D5iwjrHU.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.D5iwjrHU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.e4b8xXj0.js → 19.C7weQjUV.js} +1 -1
- package/build/client/_app/immutable/nodes/19.C7weQjUV.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.C7weQjUV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.Bf1fGTeR.js → 2.1HiIWXTK.js} +12 -12
- package/build/client/_app/immutable/nodes/2.1HiIWXTK.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.1HiIWXTK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.DN5K9vD4.js → 20.CI3Th2_V.js} +1 -1
- package/build/client/_app/immutable/nodes/20.CI3Th2_V.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.CI3Th2_V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.C643Epvv.js → 21.Ch2Fmhtx.js} +1 -1
- package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.B_2zPEiy.js → 22.BeRzoSXH.js} +1 -1
- package/build/client/_app/immutable/nodes/22.BeRzoSXH.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.BeRzoSXH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.COBGvV9n.js → 24.BLuVZRkq.js} +1 -1
- package/build/client/_app/immutable/nodes/24.BLuVZRkq.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.BLuVZRkq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.DJr6tC_E.js → 26.CYAb3esZ.js} +1 -1
- package/build/client/_app/immutable/nodes/26.CYAb3esZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CYAb3esZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{27.D9XQZDvO.js → 27.CcQodI5j.js} +1 -1
- package/build/client/_app/immutable/nodes/27.CcQodI5j.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CcQodI5j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.Ak-I9CMX.js → 28.B0JWWCYd.js} +1 -1
- package/build/client/_app/immutable/nodes/28.B0JWWCYd.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.B0JWWCYd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{29.CMBRS4HZ.js → 29.Dz-zF1qk.js} +1 -1
- package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.B46fsCV_.js → 3.j0BjUyv6.js} +1 -1
- package/build/client/_app/immutable/nodes/3.j0BjUyv6.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.j0BjUyv6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{30.DWvHkTqn.js → 30.BEz9JoNL.js} +1 -1
- package/build/client/_app/immutable/nodes/30.BEz9JoNL.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BEz9JoNL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{31.BPODDW08.js → 31.keG04jdU.js} +1 -1
- package/build/client/_app/immutable/nodes/31.keG04jdU.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.keG04jdU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{32.Cwe4Ng6s.js → 32.DvZix2vN.js} +1 -1
- package/build/client/_app/immutable/nodes/32.DvZix2vN.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.DvZix2vN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{33.DboRymFK.js → 33.CsEI_wli.js} +1 -1
- package/build/client/_app/immutable/nodes/33.CsEI_wli.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.CsEI_wli.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{34.CORslYSI.js → 34.C4Cn7mhz.js} +1 -1
- package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{35.BmBrCN-g.js → 35.ByNF3cvk.js} +1 -1
- package/build/client/_app/immutable/nodes/35.ByNF3cvk.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.ByNF3cvk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{36.DsRWjCSa.js → 36.C0AqTZfD.js} +1 -1
- package/build/client/_app/immutable/nodes/36.C0AqTZfD.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.C0AqTZfD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{37.-Qs0XcuC.js → 37.C983Oc7Q.js} +1 -1
- package/build/client/_app/immutable/nodes/37.C983Oc7Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.C983Oc7Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{38.BSCKABwI.js → 38.DZpVrKpZ.js} +1 -1
- package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CI9I4ed-.js → 4.CrCa5tPK.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CrCa5tPK.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CrCa5tPK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{40.DyhgbEK2.js → 40.DuKLsUmt.js} +1 -1
- package/build/client/_app/immutable/nodes/40.DuKLsUmt.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.DuKLsUmt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.CHhQpmXm.js → 5.CB4i7ZNg.js} +1 -1
- package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BV94HuPe.js +3 -0
- package/build/client/_app/immutable/nodes/8.BV94HuPe.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BV94HuPe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.yaUsGssm.js → 9.dDDTNF4u.js} +1 -1
- package/build/client/_app/immutable/nodes/9.dDDTNF4u.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.dDDTNF4u.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-BrB0UkaI.js → detail.js-AOyyGV6f.js} +8 -10
- package/build/server/chunks/chunks/{feedback.js-DSX1PUXP.js → feedback.js-Y_qeE4lk.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-MfZofyr0.js → internal.js-YFFIkEGy.js} +3 -3
- package/build/server/chunks/chunks/{marketplace-service.js-B6gAYcuZ.js → marketplace-service.js-ByN9lMyn.js} +2 -2
- package/build/server/chunks/chunks/{package.js-4pIo8smV.js → package.js-CRRRb0vq.js} +2 -2
- package/build/server/chunks/chunks/{page.js-D2DE-6NV.js → page.js-5YKGK16Q.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-DEFfeY1x.js → previewhelper2.js-C8YozFzs.js} +3 -3
- package/build/server/chunks/chunks/{runtime.js-CSA1gOSd.js → runtime.js-beTUQJvS.js} +494 -69
- package/build/server/chunks/chunks/{scribe.js-Bhgm7aZy.js → scribe.js-sGGKDf0Q.js} +3 -3
- package/build/server/chunks/chunks/{service.js-BzM58BD7.js → service.js-hNir0rQ0.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-CjNLOWOe.js → service2.js-CCi6VqWr.js} +2 -2
- package/build/server/chunks/chunks/{service3.js-CgCeuMLG.js → service3.js-CYxcsw27.js} +2 -2
- package/build/server/chunks/chunks/{settings.js-Biwk3M0_.js → settings.js-B5e9I92Q.js} +2 -2
- package/build/server/chunks/chunks/{starter.js-8S1GJfCc.js → starter.js-yK7UTpae.js} +3 -3
- package/build/server/chunks/chunks/{view.js-BZcChHcc.js → view.js-C_sVwMxj.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-GyVuUHkg.js → _server.ts.js-DcDrpzQ0.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-BBporNkc.js → _server.ts.js-PsKvo0EQ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-CLAvkLT3.js → _server.ts.js-ChKr8jQB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/crew/{_server.ts.js-DztuoCF3.js → _server.ts.js-BYOITfdX.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/crew/messages/{_server.ts.js-B_s3t4J-.js → _server.ts.js-Cuml2nA8.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-TpgGKa9I.js → _server.ts.js-oUq7VB-c.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-Cftwdzil.js → _server.ts.js-CFB---55.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-Dpj1nCHm.js → _server.ts.js-38TWOJFC.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/{_server.ts.js-Da5F6sTW.js → _server.ts.js-Ds4yFTov.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/{_server.ts.js-Dmn95WRm.js → _server.ts.js-BrfpEAdf.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/{_server.ts.js-Cf87-Xs3.js → _server.ts.js-ClGkZJrE.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-rkSDvZZM.js → _server.ts.js-BAi2jIUa.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DzPuEB0T.js → _server.ts.js-DU9fFldF.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-izvB4uBU.js → _server.ts.js-rmxE3GDI.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-Bsr1n3gW.js → _server.ts.js-Er7ICTMc.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-B82sy8QF.js → _server.ts.js-CzhSZtJx.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-4k0RLAj6.js → _server.ts.js-C62koQm8.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-BmfRS22F.js → _server.ts.js-DmH3adF3.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/{_server.ts.js-Doqh3FD9.js → _server.ts.js-BTqcOxFr.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-DoMPaWSk.js → _server.ts.js-0H1slVlF.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-Cuu6wc12.js → _server.ts.js-D9IhzsNZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-Dl0wGHIL.js → _server.ts.js-Dzm8TJik.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-BxMNnSrL.js → _server.ts.js-Cj-QPW9H.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/following/{_server.ts.js-BhPO24DG.js → _server.ts.js-CQPAH9lf.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-B_qpNDWM.js → _server.ts.js-ByfBJSzN.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/talk/{_server.ts.js-XVTDVcHV.js → _server.ts.js-DPhhSbn9.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-DqFYlKJs.js → _server.ts.js-Bg9HUq2z.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/{_server.ts.js-nWqO2LYp.js → _server.ts.js-DbDwbrB4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/{_server.ts.js-DjmZf8qV.js → _server.ts.js-BCQlnrGe.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/scouts/{_server.ts.js-CvYa0tFL.js → _server.ts.js-C4IE5onc.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/settings/{_server.ts.js-nTY8J_ix.js → _server.ts.js-BEQa9lj6.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-C-VE6_-n.js → _server.ts.js-2JFQWMGG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-BwLW4TfC.js → _server.ts.js-Bu0VmgeG.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DtiNODOI.js → _server.ts.js-DMVzgRXs.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-Bl2FK6OM.js → _server.ts.js-BkQZamil.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-BO1Gxnex.js → _server.ts.js-Dz9dAgEt.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-CdYFdDSE.js → _server.ts.js-D6m-gaJm.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-B63PT5xo.js → _server.ts.js-D2F2UeX3.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-B_4X5skm.js → _server.ts.js-CMcKr8nq.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-BLqWN6P-.js → _server.ts.js-CyX2kUrz.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-C5AdZFHE.js → _server.ts.js-CAgJLmfJ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-gOW1miHe.js → _server.ts.js-C-YOUEeh.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-B819rWFV.js → _server.ts.js-BuB_aUcs.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-CyhbVeVM.js → _server.ts.js-uFBc9qAF.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-BedrXewk.js → _server.ts.js-BwP7m1ne.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-Bal3HS7-.js → _server.ts.js-BDXiQIdE.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-CC9fYE8T.js → _server.ts.js-BHTqJRTV.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-UAQ6VD4Y.js → _server.ts.js-DaExrOG9.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-DS_sj7E3.js → _server.ts.js-BBcgKi4i.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DYocPexz.js → _server.ts.js-BPgyW_wK.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DHlVWaLz.js → _server.ts.js-B3_OvzWw.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-BW0k3RQV.js → _server.ts.js-C1qyVk-B.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-i6vcjolT.js → _server.ts.js-CWjUpm9b.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/{_server.ts.js-O7oEc3c6.js → _server.ts.js-Y6iM0S6h.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/{_server.ts.js-B3ywJOQa.js → _server.ts.js-C2XK2RjP.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-DU1gjPgg.js → _server.ts.js-DOBoBUsW.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-CcCr1-1m.js → _server.ts.js-ClGwOp1I.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-DRpReO79.js → _server.ts.js-DrfL6cjv.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-8YxzzHOY.js → _server.ts.js-CcZPyGtL.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/soundings/{_server.ts.js-CJr29kSQ.js → _server.ts.js-DA8MpdlA.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/{_server.ts.js-DjNRcKvR.js → _server.ts.js-C9MStV42.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/soundings/settings/{_server.ts.js-CHuvhZXi.js → _server.ts.js-aiZABdT4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-CBEa0vpI.js → _server.ts.js-CFWnCNhR.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-01RWnOK9.js → _server.ts.js-rUy8BKIx.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/{_server.ts.js-C3prpay7.js → _server.ts.js-B0sfWkfC.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-C7jEYiQ4.js → _server.ts.js-BwKBxIbZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/{_server.ts.js-DJCmZU-X.js → _server.ts.js-VsLkyd6z.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-DBwGhbNs.js → _server.ts.js-sPq94TYM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-BVvuQ9jF.js → _server.ts.js-dlImNVbc.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-Bj6HhGQ5.js → _server.ts.js-Ajt27nH3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-HLDB_nm5.js → _server.ts.js-C7_DGaT1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/voice/{_server.ts.js-COkw_Z8F.js → _server.ts.js-BPzYZcVX.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/voice/hear/{_server.ts.js-DZKCMDL2.js → _server.ts.js-tje_tDmn.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/voice/speak/{_server.ts.js-Bivugwcb.js → _server.ts.js-CboOaWGF.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wh-events/{_server.ts.js-Op7g75aQ.js → _server.ts.js-ByGfzq0k.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-BQ4xSd7C.js → _server.ts.js-CAarY5F9.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-CfVdgj-s.js → _server.ts.js-CG8phUOI.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-CYehJDKe.js → _server.ts.js-DVALJQwH.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/{_server.ts.js-DJucy-1l.js → _server.ts.js-DJbuQ133.js} +5 -5
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-CV7FQXS6.js → _server.ts.js-C2GHSxyQ.js} +3 -3
- package/build/server/chunks/entries/{hooks.server.js-D0ehnSJd.js → hooks.server.js-Glu4cfzQ.js} +5 -5
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-2cytddk_.js → _layout.server.ts.js-C2Q75Dku.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DOF_Ah2E.js → _page.server.ts.js-DdBa3OcX.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-_lqRKq5L.js → _page.svelte.js-mP8Czi7r.js} +3 -3
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-9tHgmunh.js → _page.server.ts.js-CHrBjN6U.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BzH-jp7S.js → _page.server.ts.js-DVXZwj-D.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-DXuQcPIW.js → _page.server.ts.js-DPw8W3cO.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.svelte.js-DsRcX_45.js → _page.svelte.js-BRqipSGh.js} +170 -34
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-BsmJgoUo.js → _page.server.ts.js-BIxCYvRT.js} +2 -2
- package/build/server/chunks/entries/pages/health/{_page.server.ts.js-B_vk2cP9.js → _page.server.ts.js-BmvIfRNN.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-CjDL6PVC.js → _page.server.ts.js-DYmxSK6o.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-CxKpLKAM.js → _page.server.ts.js-BM100wYL.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-BZs_w9b2.js → _page.server.ts.js-CsxshObH.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-B96oRoTl.js → _page.server.ts.js-CdLIMcCE.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-CjItTz4B.js → _page.server.ts.js-UDHRJeTm.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-JJ4hbpWK.js → _page.server.ts.js-CRrQcUKj.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-hDqIHoY7.js → _page.server.ts.js-Cb7pCLmf.js} +2 -2
- package/build/server/chunks/entries/pages/settings/chat/{_page.server.ts.js-DP5T1GAq.js → _page.server.ts.js-tOduOAOo.js} +2 -2
- package/build/server/chunks/entries/pages/settings/discussion/{_page.server.ts.js-D5UC5P8F.js → _page.server.ts.js-Dewu_3lC.js} +2 -2
- package/build/server/chunks/entries/pages/settings/events/{_page.server.ts.js-D4DcjlCl.js → _page.server.ts.js-Bosk4MgV.js} +2 -2
- package/build/server/chunks/entries/pages/settings/firstmate/{_page.server.ts.js-CUQ6Gem_.js → _page.server.ts.js-Dm16bW7a.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-D05BzKbn.js → _page.server.ts.js-DKBRV1Kv.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-C2ToGRtI.js → _page.server.ts.js-BuXRLXt-.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-D-JYNevo.js → _page.server.ts.js-aYwltwyo.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-DrzKfWat.js → _page.server.ts.js-CBnW3vAL.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-79kZF-NB.js → _page.server.ts.js-mmHvowRY.js} +2 -2
- package/build/server/chunks/entries/pages/settings/voice/{_page.server.ts.js-BWkdTOrW.js → _page.server.ts.js-BtcArcMy.js} +3 -3
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-CCJC2dcu.js → _page.server.ts.js-CWVSledS.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-JCWJl67i.js → _page.server.ts.js-J4OLpWmN.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-D0LndSQy.js → _page.server.ts.js-D9dQvbNO.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-BlEDpmhL.js → _page.server.ts.js-DD-uGmhK.js} +2 -2
- package/build/server/chunks/{handler-DytYaiGI.js → handler-Rlgr3qgp.js} +3 -3
- package/build/server/chunks/{index.js-Jh_pPZbK.js → index.js-Cq8PeAYv.js} +2 -2
- package/build/server/chunks/{manifest.js-Cn1M53MQ.js → manifest.js-D2nXE20x.js} +120 -120
- package/build/server/chunks/nodes/{0.js-DNqsRRHY.js → 0.js-D-AyokcK.js} +7 -7
- package/build/server/chunks/nodes/{1.js-CPxe0KZ3.js → 1.js-CEP8Wkc6.js} +2 -2
- package/build/server/chunks/nodes/{10.js-d3vN624D.js → 10.js-DQ05XfkH.js} +5 -5
- package/build/server/chunks/nodes/{11.js-BtsUx6ke.js → 11.js-CUI7nHXF.js} +5 -5
- package/build/server/chunks/nodes/{12.js-DxL39Qjj.js → 12.js-D4Qq5-L5.js} +2 -2
- package/build/server/chunks/nodes/{13.js-C7VhBhnH.js → 13.js-B5b0noB_.js} +2 -2
- package/build/server/chunks/nodes/{14.js-ZFebNYw5.js → 14.js-Dz8rjKdf.js} +2 -2
- package/build/server/chunks/nodes/{15.js-mNjztx2T.js → 15.js-CqjaR54q.js} +5 -5
- package/build/server/chunks/nodes/{16.js-BTLgtaFt.js → 16.js-CSFtMqSs.js} +5 -5
- package/build/server/chunks/nodes/{17.js-CEDuEbx7.js → 17.js-DIXFVzud.js} +5 -5
- package/build/server/chunks/nodes/{18.js-96SVz1gH.js → 18.js-D0OLmYtB.js} +6 -6
- package/build/server/chunks/nodes/{19.js-Omjmy9AZ.js → 19.js-CjK_nc0R.js} +6 -6
- package/build/server/chunks/nodes/{2.js-Db2B1FYj.js → 2.js-C5aTOTCK.js} +6 -6
- package/build/server/chunks/nodes/{20.js-EyCWuHPf.js → 20.js-F_X6MGKx.js} +7 -7
- package/build/server/chunks/nodes/{21.js-CTkHtkoc.js → 21.js-CLD608m1.js} +2 -2
- package/build/server/chunks/nodes/{22.js-CYAXW5aK.js → 22.js-DJDOD8dQ.js} +2 -2
- package/build/server/chunks/nodes/{24.js-HGkHnKVG.js → 24.js-1ccZSvaM.js} +5 -5
- package/build/server/chunks/nodes/{26.js-DZf54c-0.js → 26.js-P2RkHNN_.js} +5 -5
- package/build/server/chunks/nodes/{27.js-DwkxV1x4.js → 27.js-CHcCaT46.js} +5 -5
- package/build/server/chunks/nodes/{28.js-DuXcmNIU.js → 28.js-mNdmkKwl.js} +2 -2
- package/build/server/chunks/nodes/{29.js-CYHEfauI.js → 29.js-Cds-0H9b.js} +5 -5
- package/build/server/chunks/nodes/{3.js-BAdhthz5.js → 3.js-Dm0t0ruE.js} +2 -2
- package/build/server/chunks/nodes/{30.js-B8V8CgQ-.js → 30.js-CbuDQapx.js} +7 -7
- package/build/server/chunks/nodes/{31.js-CjeByTQG.js → 31.js-DoqM4d_j.js} +2 -2
- package/build/server/chunks/nodes/{32.js-Jsr5lOrC.js → 32.js-uWw9LwYe.js} +5 -5
- package/build/server/chunks/nodes/{33.js-DVzVyRZ8.js → 33.js-Bi8tKoQ6.js} +5 -5
- package/build/server/chunks/nodes/{34.js-oqztczhy.js → 34.js-CPjjhmOm.js} +6 -6
- package/build/server/chunks/nodes/{35.js-SAYpUfiI.js → 35.js-CBKkzHgr.js} +4 -4
- package/build/server/chunks/nodes/{36.js-BdjfjrY6.js → 36.js-CTvFiRyW.js} +6 -6
- package/build/server/chunks/nodes/{37.js-DJFffCB0.js → 37.js-1vY9OMcr.js} +6 -6
- package/build/server/chunks/nodes/{38.js-B2zxZsxe.js → 38.js-DhcBz8pw.js} +6 -6
- package/build/server/chunks/nodes/{39.js-BvypnsKw.js → 39.js-5F3z7S6Q.js} +5 -5
- package/build/server/chunks/nodes/{4.js-BPwKXJOs.js → 4.js-KHEhlqP6.js} +5 -5
- package/build/server/chunks/nodes/{40.js-Bs2yBOvW.js → 40.js-DcvGK4bV.js} +5 -5
- package/build/server/chunks/nodes/{5.js-CbXHUtl3.js → 5.js-_ddQMODI.js} +5 -5
- package/build/server/chunks/nodes/{7.js-CEoI55pt.js → 7.js-CmYiMFTa.js} +4 -4
- package/build/server/chunks/nodes/{8.js-imgk-qU4.js → 8.js-LyEm37G-.js} +3 -3
- package/build/server/chunks/nodes/{9.js-lm6Gq6_5.js → 9.js-47Ps2sky.js} +5 -5
- 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 +1 -1
- package/build/client/_app/immutable/assets/0.BvEx4fYi.css +0 -1
- package/build/client/_app/immutable/assets/0.BvEx4fYi.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BvEx4fYi.css.gz +0 -0
- package/build/client/_app/immutable/chunks/06NYrole.js.br +0 -0
- package/build/client/_app/immutable/chunks/06NYrole.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1Ason0h.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1Ason0h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B42HCa1Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/B42HCa1Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BIDYlDeR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BIDYlDeR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPodyZX-.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPodyZX-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_9oGok_.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_9oGok_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BewcaM3i.js.br +0 -0
- package/build/client/_app/immutable/chunks/BewcaM3i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bk_vkVPR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk_vkVPR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0XRIeH0.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0XRIeH0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCNfPCjE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJ_zP9aP.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJ_zP9aP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjEWkwrc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CjEWkwrc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CvnA42KE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvnA42KE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cz6s8vAU.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cz6s8vAU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3vMdNpQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3vMdNpQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKlxq08T.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKlxq08T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKmmKKWI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKmmKKWI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_t5aTvb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_t5aTvb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdD2DUSn.js.br +0 -3
- package/build/client/_app/immutable/chunks/DdD2DUSn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkYzvlzG.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkYzvlzG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwbTjpdU.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwbTjpdU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/EiS0rhjr.js.br +0 -0
- package/build/client/_app/immutable/chunks/EiS0rhjr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HxCbb4z3.js.br +0 -0
- package/build/client/_app/immutable/chunks/HxCbb4z3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/S3dTIgXO.js.br +0 -0
- package/build/client/_app/immutable/chunks/S3dTIgXO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nb8rTQbZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/nb8rTQbZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tVK81Wo7.js.br +0 -0
- package/build/client/_app/immutable/chunks/tVK81Wo7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yG62-yMx.js +0 -1
- package/build/client/_app/immutable/chunks/yG62-yMx.js.br +0 -0
- package/build/client/_app/immutable/chunks/yG62-yMx.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BYCz6Sud.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BYCz6Sud.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BhFFxrCg.js +0 -1
- package/build/client/_app/immutable/entry/start.BhFFxrCg.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BhFFxrCg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.B-iFwXkB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.B-iFwXkB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BmQ5L6gl.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BmQ5L6gl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.xV6yNabZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.xV6yNabZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.GVCOI3ma.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.GVCOI3ma.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DhYFOVoP.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.B-vfxaQx.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.B-vfxaQx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.Bd1B9WvF.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.Bd1B9WvF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.oS-QEFZo.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.oS-QEFZo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.DgiO8TOd.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DgiO8TOd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.5qy13_B4.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.5qy13_B4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.CA4e4G5Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.CA4e4G5Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.e4b8xXj0.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.e4b8xXj0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.Bf1fGTeR.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Bf1fGTeR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DN5K9vD4.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DN5K9vD4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.C643Epvv.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.C643Epvv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.B_2zPEiy.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.B_2zPEiy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.COBGvV9n.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.COBGvV9n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.DJr6tC_E.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.DJr6tC_E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.D9XQZDvO.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.D9XQZDvO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ak-I9CMX.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ak-I9CMX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.CMBRS4HZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.CMBRS4HZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.B46fsCV_.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.B46fsCV_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DWvHkTqn.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DWvHkTqn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BPODDW08.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BPODDW08.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.Cwe4Ng6s.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.Cwe4Ng6s.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DboRymFK.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DboRymFK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.CORslYSI.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.CORslYSI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.BmBrCN-g.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.BmBrCN-g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.DsRWjCSa.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.DsRWjCSa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.-Qs0XcuC.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.-Qs0XcuC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.BSCKABwI.js.br +0 -1
- package/build/client/_app/immutable/nodes/38.BSCKABwI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CI9I4ed-.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CI9I4ed-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.DyhgbEK2.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.DyhgbEK2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CHhQpmXm.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CHhQpmXm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.B6d3XJVy.js +0 -3
- package/build/client/_app/immutable/nodes/8.B6d3XJVy.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.B6d3XJVy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.yaUsGssm.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.yaUsGssm.js.gz +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{d as me,S as ue}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{d as me,S as ue}from"./WrKGiNFc.js";import{p as fe,e as c,s as a,o as n,r as f,g as D,t as u,a as v,b as _e,h as ce,f as g,n as ge,c as l}from"./CEfkcOME.js";import{s as i}from"./CPPNfCxh.js";import{i as _}from"./D4ikcNuh.js";import{s as xe,e as we}from"./BMjXQSgN.js";import{p as G}from"./D42BPZCD.js";import{T as he}from"./CiB1IASV.js";const k=m=>m.installed?m.settings.filter(e=>e.current===void 0):m.settings,Ne=m=>Object.fromEntries(k(m).map(e=>[e.key,me(e.current??e.default)])),Be=(m,e)=>k(m).find(x=>x.required&&!e[x.key]?.trim())??null,De=m=>Object.fromEntries(Object.entries(m).filter(([,e])=>e.trim()!==""));var pe=l('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),be=l('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),ye=l('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),je=l('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),ke=l('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),Ae=l('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),Ie=l('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),Se=l('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),Oe=l('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),We=l("<li> </li>"),Re=l('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),Te=l('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Ge(m,e){fe(e,!0);let x=G(e,"answers",15),A=G(e,"busy",19,()=>[]);const I=ce(()=>k(e.preview)),S=t=>t.slice(0,12);var h=Te(),p=c(h),b=c(p),O=c(b),H=a(O),J=n(H);f(b);var W=a(b,2);{var L=t=>{var r=pe(),d=n(r,!0);u(()=>i(d,e.preview.description)),v(t,r)};_(W,t=>{e.preview.description&&t(L)})}var R=a(W,2),T=a(c(R),2),M=n(T),E=a(T,2);{var Q=t=>{var r=be(),d=a(g(r),2),s=n(d);u(o=>i(s,`${e.preview.installed.version??""} · ${o??""}`),[()=>S(e.preview.installed.commit)]),v(t,r)};_(E,t=>{e.preview.installed&&t(Q)})}var y=a(E,4),F=c(y),V=a(F);{var X=t=>{var r=ye(),d=a(c(r));f(r),u(()=>xe(d,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),v(t,r)};_(V,t=>{e.preview.installed&&t(X)})}f(y);var P=a(y,2);{var Y=t=>{var r=je(),d=a(g(r),2),s=n(d,!0);u(()=>i(s,e.preview.author)),v(t,r)};_(P,t=>{e.preview.author&&t(Y)})}var U=a(P,4),Z=n(U),q=a(U,2);{var $=t=>{var r=ke(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.services.join(", ")]),v(t,r)};_(q,t=>{e.preview.services.length&&t($)})}var z=a(q,2);{var ee=t=>{var r=Ae(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.addresses.join("; ")]),v(t,r)};_(z,t=>{e.preview.addresses?.length&&t(ee)})}var C=a(z,2);{var te=t=>{var r=Ie(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.capabilities.join("; ")]),v(t,r)};_(C,t=>{e.preview.capabilities?.length&&t(te)})}var K=a(C,2);{var re=t=>{var r=Se(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.roles.join("; ")]),v(t,r)};_(K,t=>{e.preview.roles?.length&&t(re)})}var ae=a(K,4),de=n(ae,!0);f(R),f(p);var N=a(p,2);{var se=t=>{var r=Oe(),d=c(r),s=n(d,!0),o=a(d,2);ue(o,{get settings(){return D(I)},get answers(){return x()},set answers(w){x(w)}}),ge(2),f(r),u(()=>i(s,e.preview.installed?"Its new settings":"Its settings")),v(t,r)};_(N,t=>{D(I).length&&t(se)})}var j=a(N,2),B=c(j);he(B,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var ie=a(B,2),ne=n(ie);f(j);var oe=a(j,2);{var ve=t=>{var r=Re(),d=a(c(r));we(d,20,A,s=>s,(s,o)=>{var w=We(),le=n(w,!0);u(()=>i(le,o)),v(s,w)}),f(d),f(r),v(t,r)};_(oe,t=>{A().length&&t(ve)})}f(h),u((t,r)=>{i(O,`${e.preview.name??""} `),i(J,`${e.preview.id??""} ${e.preview.version??""}`),i(M,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),i(F,`${t??""} `),i(Z,`${r??""}${e.preview.ui?"; a UI bundle":""}`),i(de,e.preview.on),i(ne,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
|
|
2
2
|
sandbox it. ${e.preview.installed?"Update":"Install"} only plugins you trust.`)},[()=>S(e.preview.commit),()=>e.preview.slots.join(", ")||"nothing to the pages"]),v(m,h),_e()}export{Ge as P,De as f,Ne as i,Be as m};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as F}from"./BUYzAikv.js";import"./DsnmJJEf.js";import{p as I,y as Q,f as S,g as t,a as P,b as W,h as c,e as p,r as f,s as m,o as k,t as Y,c as E}from"./CEfkcOME.js";import{s as h}from"./CPPNfCxh.js";import{i as G}from"./D4ikcNuh.js";import{s as C,d as b}from"./BMjXQSgN.js";import{p as J}from"./D42BPZCD.js";import{p as K}from"./
|
|
1
|
+
import{n as F}from"./BUYzAikv.js";import"./DsnmJJEf.js";import{p as I,y as Q,f as S,g as t,a as P,b as W,h as c,e as p,r as f,s as m,o as k,t as Y,c as E}from"./CEfkcOME.js";import{s as h}from"./CPPNfCxh.js";import{i as G}from"./D4ikcNuh.js";import{s as C,d as b}from"./BMjXQSgN.js";import{p as J}from"./D42BPZCD.js";import{p as K}from"./CWCjMcSQ.js";import{d as R,i as $,o as T,a as V,s as X}from"./Z_T9JZ0p.js";import{H as Z}from"./pY09PF5T.js";import{C as ee}from"./iInrZOCY.js";function me(s){return s?.replace(/[\\/]+$/,"").split(/[\\/]/).pop()?.trim()||null}function ge(s){const e=s.split(/[^\p{L}\p{N}]+/u).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[1][0]).toUpperCase():"?"}function he(s){let e=0;for(const i of s)e=e*31+i.codePointAt(0)>>>0;return e%6}const q=s=>s.status!=="queued"&&s.status!=="landed"&&s.status!=="closed",te=s=>s.status==="failed"||s.status==="blocked"||s.status==="lost"||s.pipeline?.outcome==="failed"||s.passage.steps.some(e=>e.failed);function be(s){const e=s.filter(q),i=e.filter(te).length;return{percent:e.length?Math.round((e.length-i)/e.length*100):100,failing:i,inPlay:e.length}}function ve(s,e,i=4){return s.map(r=>{const a=e.filter(o=>o.projectId===r.id),n=a.some(F),l=a.some(o=>o.busy||q(o)&&o.status==="working");return{id:r.id,name:r.name,landed:a.length?Math.round(a.filter(o=>o.status==="landed").length/a.length*100):0,word:n?"Needs you":l?"Working":"Quiet",tone:n?"needs":l?"busy":"quiet",tasks:a.length}}).filter(r=>r.tasks>0).sort((r,a)=>a.tasks-r.tasks||r.name.localeCompare(a.name)).slice(0,i)}var se=E('<a><span aria-hidden="true"><!></span> <span class="min-w-0 flex-1"><span class="flex items-baseline gap-1.5 text-sm"><span> </span> <span class="truncate text-muted-foreground"> </span></span> <span class="block truncate text-xs text-muted-foreground"> </span></span> <span> <!></span></a>');function xe(s,e){I(e,!0);let i=J(e,"compact",3,!1);const r=c(()=>K.data.inbox),a=c(()=>$.view(t(r))?.available?T($.cards(t(r)),e.filter):[]),n=c(()=>t(a).filter(d=>X(d)==="waiting").length),l=c(()=>t(a)[0]??null),o=c(()=>V(e.filter,t(a).length===1?t(a)[0].id:null));var z=Q(),A=S(z);{var B=d=>{var u=se(),g=p(u),L=p(g);{let y=c(()=>i()?"size-3.5":"size-4");Z(L,{get class(){return t(y)}})}f(g);var v=m(g,2),x=p(v),_=p(x),M=k(_,!0),N=m(_,2),O=k(N,!0);f(x);var D=m(x,2),U=k(D,!0);f(v);var w=m(v,2),H=p(w,!0),j=m(H);ee(j,{class:"size-4 transition-transform group-hover:translate-x-0.5","aria-hidden":"true"}),f(w),f(u),Y(y=>{C(u,"href",t(o)),b(u,1,`group flex w-full min-w-0 cursor-pointer items-center gap-3 rounded-lg border text-left transition-colors focus-visible:outline-2 focus-visible:outline-ring ${t(n)?"border-sea/40 bg-sea/[0.07] hover:bg-sea/[0.12]":"bg-card hover:bg-muted/60"} ${i()?"px-2.5 py-2":"px-3.5 py-2.5"}`),C(u,"data-decisions-badge",t(n)?"waiting":"open"),b(g,1,`grid shrink-0 place-items-center rounded-full ${t(n)?"bg-sea text-on-accent":"bg-muted text-foreground/70"} ${i()?"size-6":"size-7"}`),b(_,1,`shrink-0 font-semibold ${t(n)?"text-sea":""}`),h(M,y),h(O,t(n)?t(n)===t(a).length?t(a).length===1?"waiting on you":"all waiting on you":`${t(n)} waiting on you`:"Firstmate is handling"),C(D,"title",t(l).title),h(U,t(l).title),b(w,1,`flex shrink-0 items-center gap-0.5 text-sm font-medium ${t(n)?"text-sea":"text-muted-foreground"}`),h(H,t(n)?"Answer":"Open")},[()=>R(t(a).length)]),P(d,u)};G(A,d=>{t(l)&&d(B)})}P(s,z),W()}export{xe as D,me as a,q as b,be as c,ve as g,he as h,ge as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{h as C,g,u as rt,p as et,y as j,f as V,q as $,a as W,b as nt,i as N,j as It,m as E,s as Tt,c as Nt,ag as Ue,e as ft,r as ht,n as wn,A as vn,t as yn}from"./CEfkcOME.js";import{s as X}from"./s1S1BAXN.js";import{i as pt}from"./D4ikcNuh.js";import{j as Dt}from"./BMjXQSgN.js";import{p as O,s as kt,r as St}from"./D42BPZCD.js";import{i as xn,C as qt,s as it,j as bn,b as F,k as Mt,u as Xe,l as On,n as Pn,o as An,w as Bt,p as Sn,m as Ot,F as Cn,S as Fe,E as En,q as Fn,T as Tn,r as Dn,t as gt,v as Te,x as _n,y as Rt,z as In,A as Mn,B as qe,G as kn,H as Bn,I as Wn,J as Ln,c as Ze,K as yt,P as Nn,f as Hn,e as Rn,g as zn,a as Vn,h as Kn}from"./DRPGxn7H.js";import{o as jn}from"./B42VotjV.js";import{c as Yn,o as Ft,d as Un,s as Xn,a as ee,e as qn}from"./CPPNfCxh.js";import{b as Zn}from"./D3vMdNpQ.js";import{e as Je}from"./Cz6s8vAU.js";import{a as Jn}from"./Cl68Rk3P.js";import{c as vt}from"./CGbw525c.js";import{X as Gn}from"./C6E-ekUK.js";function Qn(e){return typeof e=="function"}function De(e){return Qn(e)?e():e}class $n{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=C(()=>(g(this.#n)?.(),this.getSize().width));#a=C(()=>(g(this.#n)?.(),this.getSize().height));#n=C(()=>{const t=De(this.#r);if(t)return Yn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,d)=>Math.max(l,d.inlineSize),0),this.#t.height=a.reduce((l,d)=>Math.max(l,d.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??xn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=De(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),d=n-i-a,h=o-s-l;return{width:d,height:h}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return g(this.#n)?.(),this.getSize()}get width(){return g(this.#s)}get height(){return g(this.#a)}}const fe=new qt("Floating.Root"),he=new qt("Floating.Root");class zt{static create(t=!1){return t?he.set(new zt):fe.set(new zt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Vt{static create(t,n=!1){return n?new Vt(t,he.get()):new Vt(t,fe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=bn(t.virtualEl.current):n.triggerNode=t.ref}}function to(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);zt.create(n());var o=j(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}function ut(e){return typeof e=="function"?e():e}function Ge(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _e(e,t){const n=Ge(e);return Math.round(t*n)/n}function Ie(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function eo(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Vt.create({id:F(()=>t.id),virtualEl:F(()=>t.virtualEl),ref:t.ref},n());var o=j(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}const no=["top","right","bottom","left"],st=Math.min,G=Math.max,Kt=Math.round,Ht=Math.floor,Q=e=>({x:e,y:e}),oo={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e,t,n){return G(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function ge(e){return e==="x"?"y":"x"}function pe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function me(e){return ge(q(e))}function ro(e,t,n){n===void 0&&(n=!1);const o=Ct(e),r=me(e),i=pe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=jt(s)),[s,jt(s)]}function io(e){const t=jt(e);return[le(e),t,le(t)]}function le(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Me=["left","right"],ke=["right","left"],so=["top","bottom"],ao=["bottom","top"];function lo(e,t,n){switch(e){case"top":case"bottom":return n?t?ke:Me:t?Me:ke;case"left":case"right":return t?so:ao;default:return[]}}function co(e,t,n,o){const r=Ct(e);let i=lo(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(le)))),i}function jt(e){const t=at(e);return oo[t]+e.slice(t.length)}function uo(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function $e(e){return typeof e!="number"?uo(e):{top:e,right:e,bottom:e,left:e}}function Yt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Be(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=me(t),a=pe(s),l=at(t),d=i==="y",h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,u=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:h,y:o.y-r.height};break;case"bottom":c={x:h,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:p};break;case"left":c={x:o.x-r.width,y:p};break;default:c={x:o.x,y:o.y}}const f=Ct(t);return f&&(c[s]+=u*(f==="end"?1:-1)*(n&&d?-1:1)),c}async function fo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:u=!1,padding:c=0}=tt(t,e),f=$e(c),w=a[u?p==="floating"?"reference":"floating":p],v=Yt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:l})),P=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},A=Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:x,strategy:l}):P);return{top:(v.top-A.top+f.top)/b.y,bottom:(A.bottom-v.bottom+f.bottom)/b.y,left:(v.left-A.left+f.left)/b.x,right:(A.right-v.right+f.right)/b.x}}const ho=50,go=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:fo},l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:p}=Be(d,o,l),u=o,c=0;const f={};for(let m=0;m<i.length;m++){const w=i[m];if(!w)continue;const{name:v,fn:P}=w,{x,y:b,data:A,reset:y}=await P({x:h,y:p,initialPlacement:o,placement:u,strategy:r,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});h=x??h,p=b??p,f[v]={...f[v],...A},y&&c<ho&&(c++,typeof y=="object"&&(y.placement&&(u=y.placement),y.rects&&(d=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:h,y:p}=Be(d,u,l)),m=-1)}return{x:h,y:p,placement:u,strategy:r,middlewareData:f}},po=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:d,padding:h=0}=tt(e,t)||{};if(d==null)return{};const p=$e(h),u={x:n,y:o},c=me(r),f=pe(c),m=await s.getDimensions(d),w=c==="y",v=w?"top":"left",P=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=i.reference[f]+i.reference[c]-u[c]-i.floating[f],A=u[c]-i.reference[c],y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let S=y?y[x]:0;(!S||!await(s.isElement==null?void 0:s.isElement(y)))&&(S=a.floating[x]||i.floating[f]);const _=b/2-A/2,L=S/2-m[f]/2-1,I=st(p[v],L),R=st(p[P],L),H=S-m[f]-R,M=S/2-m[f]/2+_,D=Qe(I,M,H),K=!l.arrow&&Ct(r)!=null&&M!==D&&i.reference[f]/2-(M<I?I:R)-m[f]/2<0,z=K?M<I?M-I:M-H:0;return{[c]:u[c]+z,data:{[c]:D,centerOffset:M-D-z,...K&&{alignmentOffset:z}},reset:K}}}),mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...w}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=at(r),P=q(a),x=at(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!m?[jt(a)]:io(a)),y=f!=="none";!u&&y&&A.push(...co(a,m,f,b));const S=[a,...A],_=await l.detectOverflow(t,w),L=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&L.push(_[v]),p){const D=ro(r,s,b);L.push(_[D[0]],_[D[1]])}if(I=[...I,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=S[D];if(K&&(!(p==="alignment"?P!==q(K):!1)||I.every(T=>q(T.placement)===P?T.overflows[0]>0:!0)))return{data:{index:D,overflows:I},reset:{placement:K}};let z=(H=I.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var M;const B=(M=I.filter(T=>{if(y){const k=q(T.placement);return k===P||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:M[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function We(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Le(e){return no.some(t=>e[t]>=0)}const wo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=We(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Le(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=We(s,n.floating);return{data:{escapedOffsets:a,escaped:Le(a)}}}default:return{}}}}},tn=new Set(["left","top"]);async function vo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=Ct(n),l=q(n)==="y",d=tn.has(s)?-1:1,h=i&&l?-1:1,p=tt(t,e);let{mainAxis:u,crossAxis:c,alignmentAxis:f}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof f=="number"&&(c=a==="end"?f*-1:f),l?{x:c*h,y:u*d}:{x:u*d,y:c*h}}const yo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await vo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},xo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x,y:b}=P;return{x,y:b}}},...d}=tt(e,t),h={x:n,y:o},p=await i.detectOverflow(t,d),u=q(r),c=ge(u);let f=h[c],m=h[u];const w=(P,x)=>Qe(x+p[P==="y"?"top":"left"],x,x-p[P==="y"?"bottom":"right"]);s&&(f=w(c,f)),a&&(m=w(u,m));const v=l.fn({...t,[c]:f,[u]:m});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[c]:s,[u]:a}}}}}},bo=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=tt(e,t),u={x:r,y:i},c=q(s),f=ge(c);let m=u[f],w=u[c];const v=tt(d,t),P=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(o=v.crossAxis)!=null?o:0};if(h){const A=f==="y"?"height":"width",y=a.reference[f]-a.floating[A]+P.mainAxis,S=a.reference[f]+a.reference[A]-P.mainAxis;m<y?m=y:m>S&&(m=S)}if(p){var x,b;const A=f==="y"?"width":"height",y=tn.has(at(s)),S=a.reference[c]-a.floating[A]+(y&&((x=l.offset)==null?void 0:x[c])||0)+(y?0:P.crossAxis),_=a.reference[c]+a.reference[A]+(y?0:((b=l.offset)==null?void 0:b[c])||0)-(y?P.crossAxis:0);w<S?w=S:w>_&&(w=_)}return{[f]:m,[c]:w}}}},Oo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),d=at(n),h=Ct(n),p=q(n)==="y",{width:u,height:c}=o.floating;let f,m;d==="top"||d==="bottom"?(f=d,m=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=d,f=h==="end"?"top":"bottom");const w=c-l.top-l.bottom,v=u-l.left-l.right,P=st(c-l[f],w),x=st(u-l[m],v),b=t.middlewareData.shift,A=!b;let y=P,S=x;b!=null&&b.enabled.x&&(S=v),b!=null&&b.enabled.y&&(y=w),A&&!h&&(p?S=u-2*G(l.left,l.right):y=c-2*G(l.top,l.bottom)),await s({...t,availableWidth:S,availableHeight:y});const _=await r.getDimensions(i.floating);return u!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function Et(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(en(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function en(e){return Zt()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Zt()?e instanceof Element||e instanceof U(e).Element:!1}function ct(e){return Zt()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Ne(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function Jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Po(e){return/^(table|td|th)$/.test(Et(e))}function Gt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ao=/transform|translate|scale|rotate|perspective|filter/,So=/paint|layout|strict|content/,dt=e=>!!e&&e!=="none";let ne;function we(e){const t=Z(e)?J(e):e;return dt(t.transform)||dt(t.translate)||dt(t.scale)||dt(t.rotate)||dt(t.perspective)||!ve()&&(dt(t.backdropFilter)||dt(t.filter))||Ao.test(t.willChange||"")||So.test(t.contain||"")}function Co(e){let t=mt(e);for(;ct(t)&&!Wt(t);){if(we(t))return t;if(Gt(t))return null;t=mt(t)}return null}function ve(){return ne==null&&(ne=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ne}function Wt(e){return/^(html|body|#document)$/.test(Et(e))}function J(e){return U(e).getComputedStyle(e)}function Qt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ne(e)&&e.host||ot(e);return Ne(t)?t.host:t}function nn(e){const t=mt(e);return Wt(t)?(e.ownerDocument||e).body:ct(t)&&Jt(t)?t:nn(t)}function Lt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=nn(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=ce(s);return t.concat(s,s.visualViewport||[],Jt(r)?r:[],a&&n?Lt(a):[])}else return t.concat(r,Lt(r,[],n))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function on(e){const t=J(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ct(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Kt(n)!==i||Kt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function ye(e){return Z(e)?e:e.contextElement}function Pt(e){const t=ye(e);if(!ct(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=on(t);let s=(i?Kt(n.width):n.width)/o,a=(i?Kt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Eo=Q(0);function rn(e){const t=U(e);return!ve()||!t.visualViewport?Eo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function wt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=ye(e);let s=Q(1);t&&(o?Z(o)&&(s=Pt(o)):s=Pt(e));const a=Fo(i,n,o)?rn(i):Q(0);let l=(r.left+a.x)/s.x,d=(r.top+a.y)/s.y,h=r.width/s.x,p=r.height/s.y;if(i&&o){const u=U(i),c=Z(o)?U(o):o;let f=u,m=ce(f);for(;m&&c!==f;){const w=Pt(m),v=m.getBoundingClientRect(),P=J(m),x=v.left+(m.clientLeft+parseFloat(P.paddingLeft))*w.x,b=v.top+(m.clientTop+parseFloat(P.paddingTop))*w.y;l*=w.x,d*=w.y,h*=w.x,p*=w.y,l+=x,d+=b,f=U(m),m=ce(f)}}return Yt({width:h,height:p,x:l,y:d})}function $t(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:wt(ot(e)).left+n}function sn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-$t(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function To(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?Gt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Q(1);const h=Q(0),p=ct(o);if((p||!i)&&((Et(o)!=="body"||Jt(s))&&(l=Qt(o)),p)){const c=wt(o);d=Pt(o),h.x=c.x+o.clientLeft,h.y=c.y+o.clientTop}const u=s&&!p&&!i?sn(s,l):Q(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+u.x,y:n.y*d.y-l.scrollTop*d.y+h.y+u.y}}function Do(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _o(e){const t=Qt(e),n=e.ownerDocument.body,o=G(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=G(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+$t(e);const s=-t.scrollTop;return J(n).direction==="rtl"&&(i+=G(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Io=25;function Mo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,d=0,h=0;if(s){const u=!ve()||t==="fixed";o?u||(d=-s.offsetLeft,h=-s.offsetTop):(a=s.width,l=s.height,u&&(d=s.offsetLeft,h=s.offsetTop))}if($t(i)<=0){const u=i.ownerDocument,c=u.body,f=getComputedStyle(c),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,w=Math.abs(i.clientWidth-c.clientWidth-m),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?w/2:w;v<=Io&&(a-=v)}return{width:a,height:l,x:d,y:h}}function ko(e,t){const n=wt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Pt(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,d=o*i.y;return{width:s,height:a,x:l,y:d}}function He(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Mo(e,n,t);else if(t==="document")o=_o(ot(e));else if(Z(t))o=ko(t,n);else{const r=rn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Yt(o)}function Bo(e,t){const n=t.get(e);if(n)return n;let o=Lt(e,[],!1).filter(a=>Z(a)&&Et(a)!=="body"),r=null;const i=J(e).position==="fixed";let s=i?mt(e):e;for(;Z(s)&&!Wt(s);){const a=J(s),l=we(s),d=r?r.position:i?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?o=o.filter(p=>p!==s):r=a,s=mt(s)}return t.set(e,o),o}function Wo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Gt(t)?[]:Bo(t,this._c):[].concat(n),o],a=He(t,s[0],r);let l=a.top,d=a.right,h=a.bottom,p=a.left;for(let u=1;u<s.length;u++){const c=He(t,s[u],r);l=G(c.top,l),d=st(c.right,d),h=st(c.bottom,h),p=G(c.left,p)}return{width:d-p,height:h-l,x:p,y:l}}function Lo(e){const{width:t,height:n}=on(e);return{width:t,height:n}}function No(e,t,n){const o=ct(t),r=ot(t),i=n==="fixed",s=wt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Et(t)!=="body"||Jt(r))&&(a=Qt(t)),o)){const u=wt(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}!o&&r&&(l.x=$t(r));const d=r&&!o&&!i?sn(r,a):Q(0),h=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function oe(e){return J(e).position==="static"}function Re(e,t){if(!ct(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function an(e,t){const n=U(e);if(Gt(e))return n;if(!ct(e)){let r=mt(e);for(;r&&!Wt(r);){if(Z(r)&&!oe(r))return r;r=mt(r)}return n}let o=Re(e,t);for(;o&&Po(o)&&oe(o);)o=Re(o,t);return o&&Wt(o)&&oe(o)&&!we(o)?n:o||Co(e)||n}const Ho=async function(e){const t=this.getOffsetParent||an,n=this.getDimensions,o=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ro(e){return J(e).direction==="rtl"}const zo={convertOffsetParentRelativeRectToViewportRelativeRect:To,getDocumentElement:ot,getClippingRect:Wo,getOffsetParent:an,getElementRects:Ho,getClientRects:Do,getDimensions:Lo,getScale:Pt,isElement:Z,isRTL:Ro};function ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vo(e,t,n){let o=null,r;const i=ot(e);function s(){var h;clearTimeout(r),(h=o)==null||h.disconnect(),o=null}function a(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),s();const u=e.getBoundingClientRect(),{left:c,top:f,width:m,height:w}=u;if(h||t(),!m||!w)return;const v=Ht(f),P=Ht(i.clientWidth-(c+m)),x=Ht(i.clientHeight-(f+w)),b=Ht(c),y={rootMargin:-v+"px "+-P+"px "+-x+"px "+-b+"px",threshold:G(0,st(1,p))||1};let S=!0;function _(L){const I=L[0].intersectionRatio;if(!ln(u,e.getBoundingClientRect()))return a();if(I!==p){if(!S)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{o=new IntersectionObserver(_,{...y,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,y)}o.observe(e)}const l=U(e),d=()=>a(n);return l.addEventListener("resize",d),a(!0),()=>{l.removeEventListener("resize",d),s()}}function Ko(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,d=ye(e),h=r||i?[...d?Lt(d):[],...t?Lt(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n),i&&v.addEventListener("resize",n)});const p=d&&a?Vo(d,n,i):null;let u=-1,c=null;s&&(c=new ResizeObserver(v=>{let[P]=v;P&&P.target===d&&c&&t&&(c.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(t)})),n()}),d&&!l&&c.observe(d),t&&c.observe(t));let f,m=l?wt(e):null;l&&w();function w(){const v=wt(e);m&&!ln(m,v)&&n(),m=v,f=requestAnimationFrame(w)}return n(),()=>{var v;h.forEach(P=>{r&&P.removeEventListener("scroll",n),i&&P.removeEventListener("resize",n)}),p?.(),(v=c)==null||v.disconnect(),c=null,l&&cancelAnimationFrame(f)}}const jo=yo,Yo=xo,Uo=mo,Xo=Oo,qo=wo,Zo=po,Jo=bo,Go=(e,t,n)=>{const o=new Map,r=n??{},i={...zo,...r.platform,_c:o};return go(e,t,{...r,platform:i})};function Qo(e){const t=e.whileElementsMounted,n=C(()=>ut(e.open)??!0),o=C(()=>ut(e.middleware)),r=C(()=>ut(e.transform)??!0),i=C(()=>ut(e.placement)??"bottom"),s=C(()=>ut(e.strategy)??"absolute"),a=C(()=>ut(e.sideOffset)??0),l=C(()=>ut(e.alignOffset)??0),d=e.reference;let h=N(0),p=N(0);const u=it(null);let c=N(It(g(s))),f=N(It(g(i))),m=N(It({})),w=N(!1),v=!1,P=0,x=!1;const b=C(()=>{const R=u.current?_e(u.current,g(h)):g(h),H=u.current?_e(u.current,g(p)):g(p);return g(r)?{position:g(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...u.current&&Ge(u.current)>=1.5&&{willChange:"transform"}}:{position:g(c),left:`${R}px`,top:`${H}px`}});let A;function y(){if(x||d.current===null||u.current===null)return;const R=d.current,H=u.current,M=++P;Go(R,H,{middleware:g(o),placement:g(i),strategy:g(s)}).then(D=>{if(M!==P||d.current!==R||u.current!==H)return;if($o(R)){E(m,{...g(m),hide:{...g(m).hide,referenceHidden:!0}},!0);return}if(!g(n)&&g(h)!==0&&g(p)!==0){const z=Math.max(Math.abs(g(a)),Math.abs(g(l)),15);if(D.x<=z&&D.y<=z)return}E(h,D.x,!0),E(p,D.y,!0),E(c,D.strategy,!0),E(f,D.placement,!0),E(m,D.middlewareData,!0),E(w,!0)})}function S(){typeof A=="function"&&(A(),A=void 0),P++}function _(){if(S(),t===void 0){y();return}g(n)&&(d.current===null||u.current===null||(A=t(d.current,u.current,y)))}function L(){!g(n)&&u.current===null&&E(w,!1)}function I(){return[g(o),g(i),g(s),g(a),g(l),g(n)]}return rt(()=>{t===void 0&&g(n)&&y()}),rt(_),rt(()=>{if(t!==void 0){if(I(),!g(n)){v=!1;return}if(!g(w)){v=!1;return}if(!v){v=!0;return}y()}}),rt(L),rt(()=>()=>{x=!0,S()}),{floating:u,reference:d,get strategy(){return g(c)},get placement(){return g(f)},get middlewareData(){return g(m)},get isPositioned(){return g(w)},get floatingStyles(){return g(b)},get update(){return y}}}function $o(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const tr={top:"bottom",right:"left",bottom:"top",left:"right"},ue=new qt("Floating.Content");class Ut{static create(t,n=!1){return n?ue.set(new Ut(t,he.get())):ue.set(new Ut(t,fe.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Mt(this.contentRef);wrapperAttachment=Mt(this.wrapperRef);arrowAttachment=Mt(this.arrowRef);arrowId=it(Xe());#t=C(()=>{if(typeof this.opts.style=="string")return On(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new $n(()=>this.arrowRef.current??void 0);#r=C(()=>this.#i?.width??0);#e=C(()=>this.#i?.height??0);#s=C(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=C(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=C(()=>g(this.#a).length>0);get hasExplicitBoundaries(){return g(this.#n)}set hasExplicitBoundaries(t){E(this.#n,t)}#l=C(()=>({padding:this.opts.collisionPadding.current,boundary:g(this.#a).filter(Pn),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return g(this.#l)}set detectOverflowOptions(t){E(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=C(()=>[jo({mainAxis:this.opts.sideOffset.current+g(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Yo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Jo():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Uo({...this.detectOverflowOptions}),Xo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;E(this.#c,n,!0),E(this.#d,o,!0),E(this.#f,r,!0),E(this.#g,i,!0)}}),this.arrowRef.current&&Zo({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),er({arrowWidth:g(this.#r),arrowHeight:g(this.#e)}),this.opts.hideWhenDetached.current&&qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return g(this.#p)}set middleware(t){E(this.#p,t)}floating;#u=C(()=>nr(this.floating.placement));get placedSide(){return g(this.#u)}set placedSide(t){E(this.#u,t)}#h=C(()=>or(this.floating.placement));get placedAlign(){return g(this.#h)}set placedAlign(t){E(this.#h,t)}#m=C(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return g(this.#m)}set arrowX(t){E(this.#m,t)}#w=C(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return g(this.#w)}set arrowY(t){E(this.#w,t)}#v=C(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return g(this.#v)}set cannotCenterArrow(t){E(this.#v,t)}#y=N();get contentZIndex(){return g(this.#y)}set contentZIndex(t){E(this.#y,t,!0)}#x=C(()=>tr[this.placedSide]);get arrowBaseSide(){return g(this.#x)}set arrowBaseSide(t){E(this.#x,t)}#b=C(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${g(this.#c)}px`,"--bits-floating-available-height":`${g(this.#d)}px`,"--bits-floating-anchor-width":`${g(this.#f)}px`,"--bits-floating-anchor-height":`${g(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...g(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return g(this.#b)}set wrapperProps(t){E(this.#b,t)}#O=C(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:An({...g(this.#t)}),...this.contentAttachment}));get props(){return g(this.#O)}set props(t){E(this.#O,t)}#P=C(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return g(this.#P)}set arrowStyle(t){E(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Bt(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=Qo({strategy:()=>this.opts.strategy.current,placement:()=>g(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>Ko(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Bt(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=Sn(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class cn{static create(t){return new cn(t,ue.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=C(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return g(this.#t)}set props(t){E(this.#t,t)}}function er(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,h]=xe(n),p={start:"0%",center:"50%",end:"100%"}[h],u=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let f="",m="";return d==="bottom"?(f=s?p:`${u}px`,m=`${-l}px`):d==="top"?(f=s?p:`${u}px`,m=`${o.floating.height+l}px`):d==="right"?(f=`${-l}px`,m=s?p:`${c}px`):d==="left"&&(f=`${o.floating.width+l}px`,m=s?p:`${c}px`),{data:{x:f,y:m}}}}}function xe(e){const[t,n="center"]=e.split("-");return[t,n]}function nr(e){return xe(e)[0]}function or(e){return xe(e)[1]}function rr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),d=O(t,"collisionPadding",3,0),h=O(t,"hideWhenDetached",3,!1),p=O(t,"onPlaced",3,()=>{}),u=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),f=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),w=O(t,"style",19,()=>({})),v=O(t,"wrapperId",19,Xe),P=O(t,"customAnchor",3,null),x=O(t,"tooltip",3,!1);const b=Ut.create({side:F(()=>n()),sideOffset:F(()=>o()),align:F(()=>r()),alignOffset:F(()=>i()),id:F(()=>t.id),arrowPadding:F(()=>s()),avoidCollisions:F(()=>a()),collisionBoundary:F(()=>l()),collisionPadding:F(()=>d()),hideWhenDetached:F(()=>h()),onPlaced:F(()=>p()),sticky:F(()=>u()),updatePositionStrategy:F(()=>c()),strategy:F(()=>f()),dir:F(()=>m()),style:F(()=>w()),enabled:F(()=>t.enabled),wrapperId:F(()=>v()),customAnchor:F(()=>P())},x()),A=C(()=>Ot(b.wrapperProps,{style:{pointerEvents:"auto"}}));var y=j(),S=V(y);X(S,()=>t.content??$,()=>({props:b.props,wrapperProps:g(A)})),W(e,y),nt()}function ir(e,t){et(t,!0),jn(()=>{t.onPlaced?.()});var n=j(),o=V(n);X(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var sr=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function ar(e,t){let n=O(t,"isStatic",3,!1),o=St(t,sr);var r=j(),i=V(r);{var s=l=>{ir(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{rr(l,kt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};pt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var lr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),cr=Nt("<!> <!>",1);function un(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),d=St(t,lr);const h=C(()=>t.preventScroll??!0),p=C(()=>t.strategy??(g(h)?"fixed":"absolute"));ar(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return g(p)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,f)=>{let m=()=>(f?.()).props,w=()=>(f?.()).wrapperProps;var v=cr(),P=V(v);{var x=y=>{Fe(y,{get preventScroll(){return g(h)}})},b=y=>{Fe(y,{get preventScroll(){return g(h)}})};pt(P,y=>{t.forceMount&&t.enabled?y(x):t.forceMount||y(b,1)})}var A=Tt(P,2);Cn(A,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(S,_)=>{let L=()=>(_?.()).props;En(S,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,R)=>{Fn(I,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,D)=>{let K=()=>(D?.()).props;Tn(M,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=j(),k=V(T);{let Y=C(()=>({props:Ot(d,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:w()}));X(k,()=>t.popper??$,()=>g(Y))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,v)},$$slots:{content:!0}}),nt()}var ur=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function dr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,ur);var l=j(),d=V(l);{var h=p=>{un(p,kt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};pt(d,p=>{t.shouldRender&&p(h)})}W(e,l)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function hr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,fr);un(e,kt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function re(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,d]=t[s]??[0,0],[h,p]=t[a]??[0,0];d>=o!=p>=o&&n<=(h-l)*(o-d)/(p-d)+l&&(r=!r)}return r}function ie(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function ze(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class gr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,Bt([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Dn(o),a=u=>{this.#p([u.clientX,u.clientY],o,r)},l=u=>{const c=u.relatedTarget;if(gt(c)&&r.contains(c))return;const f=this.#t.ignoredTargets?.()??[];gt(c)&&f.some(m=>m===c||m.contains(c))||(this.#s=gt(c)&&f.length>0?f.filter(m=>c.contains(m)):[],this.#r=[u.clientX,u.clientY],this.#e="content",this.#d())},d=()=>{this.#u()},h=()=>{this.#u()},p=u=>{const c=u.relatedTarget;gt(c)&&o.contains(c)||(this.#r=[u.clientX,u.clientY],this.#e="trigger",this.#d())};return[Ft(s,"pointermove",a),Ft(o,"pointerleave",l),Ft(o,"pointerenter",d),Ft(r,"pointerenter",h),Ft(r,"pointerleave",p)].reduce((u,c)=>()=>{u(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&ie(t,i)){this.#u();return}if(this.#e==="trigger"&&ie(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const h of this.#s){const p=h.getBoundingClientRect();if(ie(t,p))return;const u=ze(r,p),c=this.#h(r,p,u);if(c&&re(t,c))return}const s=ze(r,i),a=this.#h(r,i,s);if(a&&re(t,a))return;const l=this.#e==="content"?i:r,d=this.#m(this.#r,l,s,this.#e);re(t,d)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const de=Ln({component:"popover",parts:["root","trigger","content","close","overlay"]}),be=new qt("Popover.Root");class Oe{static create(t){return be.set(new Oe(t))}opts;#t=N(null);get contentNode(){return g(this.#t)}set contentNode(t){E(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return g(this.#o)}set triggerNode(t){E(this.#o,t,!0)}#i=N(null);get overlayNode(){return g(this.#i)}set overlayNode(t){E(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return g(this.#r)}set openedViaHover(t){E(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return g(this.#e)}set hasInteractedWithContent(t){E(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return g(this.#s)}set hoverCooldown(t){E(this.#s,t,!0)}#a=N(0);get closeDelay(){return g(this.#a)}set closeDelay(t){E(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Te({ref:F(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Te({ref:F(()=>this.overlayNode),open:this.opts.open}),Bt(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class Pe{static create(t){return new Pe(t,be.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new _n(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Bt(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Rt(t)||(E(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Rt(t)||(E(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),g(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}g(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===In||t.key===Mn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=C(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":kn(this.root.opts.open.current),"data-state":qe(this.root.opts.open.current),"aria-controls":this.#a(),[de.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#n)}set props(t){E(this.#n,t)}}class Ae{static create(t){return new Ae(t,be.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new gr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;gt(n)&&Bn(n)&&this.root.markInteraction()}onpointerenter(t){Rt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Rt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const n=t.target.closest(de.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#t)}set snippetProps(t){E(this.#t,t)}#o=C(()=>({id:this.opts.id.current,tabindex:-1,"data-state":qe(this.root.opts.open.current),...Wn(this.root.contentPresence.transitionStatus),[de.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#o)}set props(t){E(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var pr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),Ve=Nt("<div><div><!></div></div>");function wi(e,t){const n=Ue();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ze(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,yt),a=O(t,"onCloseAutoFocus",3,yt),l=O(t,"onEscapeKeydown",3,yt),d=O(t,"onInteractOutside",3,yt),h=O(t,"trapFocus",3,!0),p=O(t,"preventScroll",3,!1),u=O(t,"customAnchor",3,null),c=St(t,pr);const f=Ae.create({id:F(()=>r()),ref:F(()=>o(),y=>o(y)),onInteractOutside:F(()=>d()),onEscapeKeydown:F(()=>l()),customAnchor:F(()=>u())}),m=C(()=>Ot(c,f.props)),w=C(()=>h()&&f.shouldTrapFocus);function v(y){f.shouldTrapFocus||y.preventDefault(),s()(y)}var P=j(),x=V(P);{var b=y=>{hr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get enabled(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=j(),D=V(M);{var K=B=>{var T=j(),k=V(T);{let Y=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(Y))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var Y=ft(k);X(Y,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))},A=y=>{dr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get open(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=j(),D=V(M);{var K=B=>{var T=j(),k=V(T);{let Y=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(Y))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var Y=ft(k);X(Y,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))};pt(x,y=>{i()?y(b):i()||y(A,1)})}W(e,P),nt()}var mr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),wr=Nt("<button><!></button>");function vi(e,t){const n=Ue();et(t,!0);let o=O(t,"id",19,()=>Ze(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),d=O(t,"closeDelay",3,300),h=St(t,mr);const p=Pe.create({id:F(()=>o()),ref:F(()=>r(),c=>r(c)),disabled:F(()=>!!s()),openOnHover:F(()=>a()),openDelay:F(()=>l()),closeDelay:F(()=>d())}),u=C(()=>Ot(h,p.props,{type:i()}));eo(e,{get id(){return o()},get ref(){return p.opts.ref},children:(c,f)=>{var m=j(),w=V(m);{var v=x=>{var b=j(),A=V(b);X(A,()=>t.child,()=>({props:g(u)})),W(x,b)},P=x=>{var b=wr();Dt(b,()=>({...g(u)}));var A=ft(b);X(A,()=>t.children??$),ht(b),W(x,b)};pt(w,x=>{t.child?x(v):x(P,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function yi(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,yt),r=O(t,"onOpenChangeComplete",3,yt);Oe.create({open:F(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:F(()=>r())}),to(e,{children:(i,s)=>{var a=j(),l=V(a);X(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}const vr=6;function yr(e,t){return t.needsYou-e.needsYou||t.underWay-e.underWay||(t.lastActivity??0)-(e.lastActivity??0)||t.queued-e.queued}function xi(e,t,n){const o=new Map(e.map(r=>[r.id,[]]));for(const r of t)o.get(r.projectId)?.push(r);return new Map(e.map(r=>[r.id,Jn(o.get(r.id)??[],n)]))}const Xt=(e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:"base"});function bi(e,t,n){const o=n.limit??vr,r=new Set(n.pinned),i=e.filter(u=>r.has(u.id)),s={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null},a=u=>t.get(u.id)??s,l=e.filter(u=>!r.has(u.id)).toSorted((u,c)=>yr(a(u),a(c))||Xt(u,c)),d=l.slice(0,Math.max(0,o-i.length)),h=n.current?l.find(u=>u.id===n.current):void 0;h&&!d.includes(h)&&d.push(h);const p=new Set(d.map(u=>u.id));return{pinned:i,top:d,rest:l.filter(u=>!p.has(u.id)).toSorted(Xt)}}function Oi(e,t,n=[],o={}){const r=t.trim().toLowerCase();if(!r)return e.toSorted(Xt);const i=new Set(n),s=a=>{const l=[a.name,o[a.id]].filter(Boolean).map(d=>d.toLowerCase());return l.some(d=>d.startsWith(r))?0:l.some(d=>d.split(/[\s\-_.:/]+/).some(h=>h.startsWith(r)))?1:l.some(d=>d.includes(r))||a.id.toLowerCase().includes(r)?2:-1};return e.map(a=>({p:a,r:s(a)})).filter(a=>a.r>=0).toSorted((a,l)=>a.r-l.r||Number(i.has(l.p.id))-Number(i.has(a.p.id))||Xt(a.p,l.p)).map(a=>a.p)}function xr(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?[...new Set(t.filter(n=>typeof n=="string"))]:[]}catch{return[]}}class br{#t=N(It([]));get rows(){return g(this.#t)}set rows(t){E(this.#t,t,!0)}}const Pi=new br,Ai="x-wheelhouse-filename",Si="x-wheelhouse-filetype",Ci=25*1024*1024;function Or(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Ei(e){return`[attached file ${e.path} — ${e.name}, ${Or(e.size)}, ${e.type||"unknown type"}]`}const Pr=/^\[attached file (\/[^\n]*?\/([^/\n]+)) — \2, ([\d.]+) (B|KB|MB), ([^\]\n,]+)\][ \t]*$/gm,Ar={B:1,KB:1024,MB:1024*1024};function Sr(e){const t=[],n=e.replace(Pr,(o,r,i,s,a,l)=>(t.push({path:r,name:i,size:Math.round(Number(s)*Ar[a]),type:l==="unknown type"?"":l}),""));return t.length?{text:n.trim(),files:t}:{text:e,files:t}}const Cr=e=>/^image\/(png|jpeg|gif|webp|avif)$/.test(e);function Fi(e){if(e.type==="application/pdf")return"PDF";if(e.type.startsWith("image/"))return"Image";const t=/\.([A-Za-z0-9]{1,6})$/.exec(e.name)?.[1];return t?t.toUpperCase():e.type.startsWith("text/")?"Text":"File"}function Ti(e){if(!Cr(e.type))return null;const t=/\/uploads\/(\d{4}-\d{2}-\d{2})\/([a-f0-9]{12})\/([^/]+)$/.exec(e.path);return t?`/api/firstmate/uploads/${t[1]}/${t[2]}/${encodeURIComponent(t[3])}`:null}function Di(e,t=new Date){const n=/^image\/(png|jpeg|gif|webp|avif)$/.exec(e)?.[1]?.replace("jpeg","jpg")??"png";return`Pasted image ${t.toISOString().slice(0,19).replace("T"," ").replace(/:/g,".")}.${n}`}const Er=/^\/session\/[A-Za-z0-9_-]+\/?$/;function dn(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&Zn.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Fr(e){return dn(e)&&Er.test(URL.parse(e).pathname)}function Tr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Dr(e,t=null){const n=[];for(const o of Je(Tr(e))){if(!dn(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function At(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ke=2*6e4,_r=3,fn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Se=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(At),Ir=(e,t)=>new RegExp(`${fn(t)}(?![\\w-])`).test(e),_t=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function hn(e,t){if(e.status!=="landed")return!0;const n=_t(e.mergedAt);return n!==null&&t!==null&&t<n}function gn(e,t){const n=Se(t);return Je(e).some(o=>n.includes(At(o)))}function pn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${fn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Ir(e,t.pr.url.replace(/\/+$/,""))}function Mr(e,t){return pn(e,t)||gn(e,t)}function _i(e,t){if(!URL.parse(e))return null;const n=At(e);return t.find(o=>{if(o.status==="landed"||!o.preview)return!1;const r=At(o.preview.url);return n===r||n.startsWith(`${r}/`)})??null}const kr=e=>e.preview?.url??e.board?.url??null;function Br(e,t,n){const o=At(e);return n.some(r=>hn(r,t)&&Se(r).includes(o))}function je(e,t,n){e.set(t,[...e.get(t)??[],n])}function Ii(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=kr(a),d=_t(a.preview?.reportedAt??a.board?.reportedAt),h=a.status==="landed",p=h?_t(a.mergedAt):null;let u=null,c=null,f=null;for(const w of e){if(w.kind!=="turn")continue;const v=_t(w.at);if(d!==null&&(v===null||v<d-Ke))continue;const P=b=>hn(a,v)&&gn(b,a),x=w.parts.find(b=>b.kind==="text"&&(pn(b.text,a)||P(b.text)));if(!(!x||x.kind!=="text")&&(u??=x.id,P(x.text)&&(c=x.id),h&&(p===null||v!==null&&v>=p-Ke))){f=x.id;break}}const m=f??c??u;m&&(je(o,m,{task:a,url:l,board:!a.preview,landed:h}),i.set(m,[...i.get(m)??[],...Se(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=_t(a.at);for(const d of a.parts){if(d.kind!=="text")continue;const h=new Set;let p=0;for(const u of Dr(d.text,n)){const c=URL.parse(u).origin,f=At(u);if(i.get(d.id)?.includes(f)){s.delete(f);continue}h.has(c)||Br(u,l,r)||p>=_r||(h.add(c),p++,s.delete(f),s.set(f,{anchor:d.id,url:u}))}}}for(const{anchor:a,url:l}of s.values())je(o,a,{task:null,url:l,board:Fr(l),landed:!1});return o}function Ye(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Wr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${Ye(e.id)}: ${e.title}]`:`[task ${Ye(e.id)}: ${e.title}]`}function Mi(e){return e.map(t=>typeof t=="string"?t:Wr(t)).join("").replace(/\u00a0/g," ").trim()}function Lr(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const Nr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Hr(e){const t=[];let n=0;for(const o of e.matchAll(Nr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Rr=140,zr={firstmate:"Firstmate",captain:"my message"};function Ce(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Hr(t).map(n=>typeof n=="string"?n:Lr(n,60)).join("").replace(/\s+/g," ").trim()}function ki(e,t=Rr){const n=Ce(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function Bi(e,t){const n=t.trim();return n&&`> Replying to ${zr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
1
|
+
import"./DsnmJJEf.js";import{h as C,g,u as rt,p as et,y as j,f as V,q as $,a as W,b as nt,i as N,j as It,m as E,s as Tt,c as Nt,ag as Ue,e as ft,r as ht,n as wn,A as vn,t as yn}from"./CEfkcOME.js";import{s as X}from"./s1S1BAXN.js";import{i as pt}from"./D4ikcNuh.js";import{j as Dt}from"./BMjXQSgN.js";import{p as O,s as kt,r as St}from"./D42BPZCD.js";import{i as xn,C as qt,s as it,j as bn,b as F,k as Mt,u as Xe,l as On,n as Pn,o as An,w as Bt,p as Sn,m as Ot,F as Cn,S as Fe,E as En,q as Fn,T as Tn,r as Dn,t as gt,v as Te,x as _n,y as Rt,z as In,A as Mn,B as qe,G as kn,H as Bn,I as Wn,J as Ln,c as Ze,K as yt,P as Nn,f as Hn,e as Rn,g as zn,a as Vn,h as Kn}from"./DRPGxn7H.js";import{o as jn}from"./B42VotjV.js";import{c as Yn,o as Ft,d as Un,s as Xn,a as ee,e as qn}from"./CPPNfCxh.js";import{b as Zn}from"./Bk_ZNhuN.js";import{e as Je}from"./DSX3BpgH.js";import{a as Jn}from"./Cl68Rk3P.js";import{c as vt}from"./CGbw525c.js";import{X as Gn}from"./C6E-ekUK.js";function Qn(e){return typeof e=="function"}function De(e){return Qn(e)?e():e}class $n{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=C(()=>(g(this.#n)?.(),this.getSize().width));#a=C(()=>(g(this.#n)?.(),this.getSize().height));#n=C(()=>{const t=De(this.#r);if(t)return Yn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,d)=>Math.max(l,d.inlineSize),0),this.#t.height=a.reduce((l,d)=>Math.max(l,d.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??xn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=De(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),d=n-i-a,h=o-s-l;return{width:d,height:h}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return g(this.#n)?.(),this.getSize()}get width(){return g(this.#s)}get height(){return g(this.#a)}}const fe=new qt("Floating.Root"),he=new qt("Floating.Root");class zt{static create(t=!1){return t?he.set(new zt):fe.set(new zt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Vt{static create(t,n=!1){return n?new Vt(t,he.get()):new Vt(t,fe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=bn(t.virtualEl.current):n.triggerNode=t.ref}}function to(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);zt.create(n());var o=j(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}function ut(e){return typeof e=="function"?e():e}function Ge(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _e(e,t){const n=Ge(e);return Math.round(t*n)/n}function Ie(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function eo(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Vt.create({id:F(()=>t.id),virtualEl:F(()=>t.virtualEl),ref:t.ref},n());var o=j(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}const no=["top","right","bottom","left"],st=Math.min,G=Math.max,Kt=Math.round,Ht=Math.floor,Q=e=>({x:e,y:e}),oo={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e,t,n){return G(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function ge(e){return e==="x"?"y":"x"}function pe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function me(e){return ge(q(e))}function ro(e,t,n){n===void 0&&(n=!1);const o=Ct(e),r=me(e),i=pe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=jt(s)),[s,jt(s)]}function io(e){const t=jt(e);return[le(e),t,le(t)]}function le(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Me=["left","right"],ke=["right","left"],so=["top","bottom"],ao=["bottom","top"];function lo(e,t,n){switch(e){case"top":case"bottom":return n?t?ke:Me:t?Me:ke;case"left":case"right":return t?so:ao;default:return[]}}function co(e,t,n,o){const r=Ct(e);let i=lo(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(le)))),i}function jt(e){const t=at(e);return oo[t]+e.slice(t.length)}function uo(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function $e(e){return typeof e!="number"?uo(e):{top:e,right:e,bottom:e,left:e}}function Yt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Be(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=me(t),a=pe(s),l=at(t),d=i==="y",h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,u=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:h,y:o.y-r.height};break;case"bottom":c={x:h,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:p};break;case"left":c={x:o.x-r.width,y:p};break;default:c={x:o.x,y:o.y}}const f=Ct(t);return f&&(c[s]+=u*(f==="end"?1:-1)*(n&&d?-1:1)),c}async function fo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:u=!1,padding:c=0}=tt(t,e),f=$e(c),w=a[u?p==="floating"?"reference":"floating":p],v=Yt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:l})),P=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},A=Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:x,strategy:l}):P);return{top:(v.top-A.top+f.top)/b.y,bottom:(A.bottom-v.bottom+f.bottom)/b.y,left:(v.left-A.left+f.left)/b.x,right:(A.right-v.right+f.right)/b.x}}const ho=50,go=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:fo},l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:p}=Be(d,o,l),u=o,c=0;const f={};for(let m=0;m<i.length;m++){const w=i[m];if(!w)continue;const{name:v,fn:P}=w,{x,y:b,data:A,reset:y}=await P({x:h,y:p,initialPlacement:o,placement:u,strategy:r,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});h=x??h,p=b??p,f[v]={...f[v],...A},y&&c<ho&&(c++,typeof y=="object"&&(y.placement&&(u=y.placement),y.rects&&(d=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:h,y:p}=Be(d,u,l)),m=-1)}return{x:h,y:p,placement:u,strategy:r,middlewareData:f}},po=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:d,padding:h=0}=tt(e,t)||{};if(d==null)return{};const p=$e(h),u={x:n,y:o},c=me(r),f=pe(c),m=await s.getDimensions(d),w=c==="y",v=w?"top":"left",P=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=i.reference[f]+i.reference[c]-u[c]-i.floating[f],A=u[c]-i.reference[c],y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let S=y?y[x]:0;(!S||!await(s.isElement==null?void 0:s.isElement(y)))&&(S=a.floating[x]||i.floating[f]);const _=b/2-A/2,L=S/2-m[f]/2-1,I=st(p[v],L),R=st(p[P],L),H=S-m[f]-R,M=S/2-m[f]/2+_,D=Qe(I,M,H),K=!l.arrow&&Ct(r)!=null&&M!==D&&i.reference[f]/2-(M<I?I:R)-m[f]/2<0,z=K?M<I?M-I:M-H:0;return{[c]:u[c]+z,data:{[c]:D,centerOffset:M-D-z,...K&&{alignmentOffset:z}},reset:K}}}),mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...w}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=at(r),P=q(a),x=at(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!m?[jt(a)]:io(a)),y=f!=="none";!u&&y&&A.push(...co(a,m,f,b));const S=[a,...A],_=await l.detectOverflow(t,w),L=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&L.push(_[v]),p){const D=ro(r,s,b);L.push(_[D[0]],_[D[1]])}if(I=[...I,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=S[D];if(K&&(!(p==="alignment"?P!==q(K):!1)||I.every(T=>q(T.placement)===P?T.overflows[0]>0:!0)))return{data:{index:D,overflows:I},reset:{placement:K}};let z=(H=I.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var M;const B=(M=I.filter(T=>{if(y){const k=q(T.placement);return k===P||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:M[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function We(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Le(e){return no.some(t=>e[t]>=0)}const wo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=We(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Le(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=We(s,n.floating);return{data:{escapedOffsets:a,escaped:Le(a)}}}default:return{}}}}},tn=new Set(["left","top"]);async function vo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=Ct(n),l=q(n)==="y",d=tn.has(s)?-1:1,h=i&&l?-1:1,p=tt(t,e);let{mainAxis:u,crossAxis:c,alignmentAxis:f}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof f=="number"&&(c=a==="end"?f*-1:f),l?{x:c*h,y:u*d}:{x:u*d,y:c*h}}const yo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await vo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},xo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x,y:b}=P;return{x,y:b}}},...d}=tt(e,t),h={x:n,y:o},p=await i.detectOverflow(t,d),u=q(r),c=ge(u);let f=h[c],m=h[u];const w=(P,x)=>Qe(x+p[P==="y"?"top":"left"],x,x-p[P==="y"?"bottom":"right"]);s&&(f=w(c,f)),a&&(m=w(u,m));const v=l.fn({...t,[c]:f,[u]:m});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[c]:s,[u]:a}}}}}},bo=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=tt(e,t),u={x:r,y:i},c=q(s),f=ge(c);let m=u[f],w=u[c];const v=tt(d,t),P=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(o=v.crossAxis)!=null?o:0};if(h){const A=f==="y"?"height":"width",y=a.reference[f]-a.floating[A]+P.mainAxis,S=a.reference[f]+a.reference[A]-P.mainAxis;m<y?m=y:m>S&&(m=S)}if(p){var x,b;const A=f==="y"?"width":"height",y=tn.has(at(s)),S=a.reference[c]-a.floating[A]+(y&&((x=l.offset)==null?void 0:x[c])||0)+(y?0:P.crossAxis),_=a.reference[c]+a.reference[A]+(y?0:((b=l.offset)==null?void 0:b[c])||0)-(y?P.crossAxis:0);w<S?w=S:w>_&&(w=_)}return{[f]:m,[c]:w}}}},Oo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),d=at(n),h=Ct(n),p=q(n)==="y",{width:u,height:c}=o.floating;let f,m;d==="top"||d==="bottom"?(f=d,m=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=d,f=h==="end"?"top":"bottom");const w=c-l.top-l.bottom,v=u-l.left-l.right,P=st(c-l[f],w),x=st(u-l[m],v),b=t.middlewareData.shift,A=!b;let y=P,S=x;b!=null&&b.enabled.x&&(S=v),b!=null&&b.enabled.y&&(y=w),A&&!h&&(p?S=u-2*G(l.left,l.right):y=c-2*G(l.top,l.bottom)),await s({...t,availableWidth:S,availableHeight:y});const _=await r.getDimensions(i.floating);return u!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function Et(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(en(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function en(e){return Zt()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Zt()?e instanceof Element||e instanceof U(e).Element:!1}function ct(e){return Zt()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Ne(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function Jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Po(e){return/^(table|td|th)$/.test(Et(e))}function Gt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ao=/transform|translate|scale|rotate|perspective|filter/,So=/paint|layout|strict|content/,dt=e=>!!e&&e!=="none";let ne;function we(e){const t=Z(e)?J(e):e;return dt(t.transform)||dt(t.translate)||dt(t.scale)||dt(t.rotate)||dt(t.perspective)||!ve()&&(dt(t.backdropFilter)||dt(t.filter))||Ao.test(t.willChange||"")||So.test(t.contain||"")}function Co(e){let t=mt(e);for(;ct(t)&&!Wt(t);){if(we(t))return t;if(Gt(t))return null;t=mt(t)}return null}function ve(){return ne==null&&(ne=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ne}function Wt(e){return/^(html|body|#document)$/.test(Et(e))}function J(e){return U(e).getComputedStyle(e)}function Qt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ne(e)&&e.host||ot(e);return Ne(t)?t.host:t}function nn(e){const t=mt(e);return Wt(t)?(e.ownerDocument||e).body:ct(t)&&Jt(t)?t:nn(t)}function Lt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=nn(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=ce(s);return t.concat(s,s.visualViewport||[],Jt(r)?r:[],a&&n?Lt(a):[])}else return t.concat(r,Lt(r,[],n))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function on(e){const t=J(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ct(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Kt(n)!==i||Kt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function ye(e){return Z(e)?e:e.contextElement}function Pt(e){const t=ye(e);if(!ct(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=on(t);let s=(i?Kt(n.width):n.width)/o,a=(i?Kt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Eo=Q(0);function rn(e){const t=U(e);return!ve()||!t.visualViewport?Eo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function wt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=ye(e);let s=Q(1);t&&(o?Z(o)&&(s=Pt(o)):s=Pt(e));const a=Fo(i,n,o)?rn(i):Q(0);let l=(r.left+a.x)/s.x,d=(r.top+a.y)/s.y,h=r.width/s.x,p=r.height/s.y;if(i&&o){const u=U(i),c=Z(o)?U(o):o;let f=u,m=ce(f);for(;m&&c!==f;){const w=Pt(m),v=m.getBoundingClientRect(),P=J(m),x=v.left+(m.clientLeft+parseFloat(P.paddingLeft))*w.x,b=v.top+(m.clientTop+parseFloat(P.paddingTop))*w.y;l*=w.x,d*=w.y,h*=w.x,p*=w.y,l+=x,d+=b,f=U(m),m=ce(f)}}return Yt({width:h,height:p,x:l,y:d})}function $t(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:wt(ot(e)).left+n}function sn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-$t(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function To(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?Gt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Q(1);const h=Q(0),p=ct(o);if((p||!i)&&((Et(o)!=="body"||Jt(s))&&(l=Qt(o)),p)){const c=wt(o);d=Pt(o),h.x=c.x+o.clientLeft,h.y=c.y+o.clientTop}const u=s&&!p&&!i?sn(s,l):Q(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+u.x,y:n.y*d.y-l.scrollTop*d.y+h.y+u.y}}function Do(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _o(e){const t=Qt(e),n=e.ownerDocument.body,o=G(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=G(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+$t(e);const s=-t.scrollTop;return J(n).direction==="rtl"&&(i+=G(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Io=25;function Mo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,d=0,h=0;if(s){const u=!ve()||t==="fixed";o?u||(d=-s.offsetLeft,h=-s.offsetTop):(a=s.width,l=s.height,u&&(d=s.offsetLeft,h=s.offsetTop))}if($t(i)<=0){const u=i.ownerDocument,c=u.body,f=getComputedStyle(c),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,w=Math.abs(i.clientWidth-c.clientWidth-m),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?w/2:w;v<=Io&&(a-=v)}return{width:a,height:l,x:d,y:h}}function ko(e,t){const n=wt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Pt(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,d=o*i.y;return{width:s,height:a,x:l,y:d}}function He(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Mo(e,n,t);else if(t==="document")o=_o(ot(e));else if(Z(t))o=ko(t,n);else{const r=rn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Yt(o)}function Bo(e,t){const n=t.get(e);if(n)return n;let o=Lt(e,[],!1).filter(a=>Z(a)&&Et(a)!=="body"),r=null;const i=J(e).position==="fixed";let s=i?mt(e):e;for(;Z(s)&&!Wt(s);){const a=J(s),l=we(s),d=r?r.position:i?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?o=o.filter(p=>p!==s):r=a,s=mt(s)}return t.set(e,o),o}function Wo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Gt(t)?[]:Bo(t,this._c):[].concat(n),o],a=He(t,s[0],r);let l=a.top,d=a.right,h=a.bottom,p=a.left;for(let u=1;u<s.length;u++){const c=He(t,s[u],r);l=G(c.top,l),d=st(c.right,d),h=st(c.bottom,h),p=G(c.left,p)}return{width:d-p,height:h-l,x:p,y:l}}function Lo(e){const{width:t,height:n}=on(e);return{width:t,height:n}}function No(e,t,n){const o=ct(t),r=ot(t),i=n==="fixed",s=wt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Et(t)!=="body"||Jt(r))&&(a=Qt(t)),o)){const u=wt(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}!o&&r&&(l.x=$t(r));const d=r&&!o&&!i?sn(r,a):Q(0),h=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function oe(e){return J(e).position==="static"}function Re(e,t){if(!ct(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function an(e,t){const n=U(e);if(Gt(e))return n;if(!ct(e)){let r=mt(e);for(;r&&!Wt(r);){if(Z(r)&&!oe(r))return r;r=mt(r)}return n}let o=Re(e,t);for(;o&&Po(o)&&oe(o);)o=Re(o,t);return o&&Wt(o)&&oe(o)&&!we(o)?n:o||Co(e)||n}const Ho=async function(e){const t=this.getOffsetParent||an,n=this.getDimensions,o=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ro(e){return J(e).direction==="rtl"}const zo={convertOffsetParentRelativeRectToViewportRelativeRect:To,getDocumentElement:ot,getClippingRect:Wo,getOffsetParent:an,getElementRects:Ho,getClientRects:Do,getDimensions:Lo,getScale:Pt,isElement:Z,isRTL:Ro};function ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vo(e,t,n){let o=null,r;const i=ot(e);function s(){var h;clearTimeout(r),(h=o)==null||h.disconnect(),o=null}function a(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),s();const u=e.getBoundingClientRect(),{left:c,top:f,width:m,height:w}=u;if(h||t(),!m||!w)return;const v=Ht(f),P=Ht(i.clientWidth-(c+m)),x=Ht(i.clientHeight-(f+w)),b=Ht(c),y={rootMargin:-v+"px "+-P+"px "+-x+"px "+-b+"px",threshold:G(0,st(1,p))||1};let S=!0;function _(L){const I=L[0].intersectionRatio;if(!ln(u,e.getBoundingClientRect()))return a();if(I!==p){if(!S)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{o=new IntersectionObserver(_,{...y,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,y)}o.observe(e)}const l=U(e),d=()=>a(n);return l.addEventListener("resize",d),a(!0),()=>{l.removeEventListener("resize",d),s()}}function Ko(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,d=ye(e),h=r||i?[...d?Lt(d):[],...t?Lt(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n),i&&v.addEventListener("resize",n)});const p=d&&a?Vo(d,n,i):null;let u=-1,c=null;s&&(c=new ResizeObserver(v=>{let[P]=v;P&&P.target===d&&c&&t&&(c.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(t)})),n()}),d&&!l&&c.observe(d),t&&c.observe(t));let f,m=l?wt(e):null;l&&w();function w(){const v=wt(e);m&&!ln(m,v)&&n(),m=v,f=requestAnimationFrame(w)}return n(),()=>{var v;h.forEach(P=>{r&&P.removeEventListener("scroll",n),i&&P.removeEventListener("resize",n)}),p?.(),(v=c)==null||v.disconnect(),c=null,l&&cancelAnimationFrame(f)}}const jo=yo,Yo=xo,Uo=mo,Xo=Oo,qo=wo,Zo=po,Jo=bo,Go=(e,t,n)=>{const o=new Map,r=n??{},i={...zo,...r.platform,_c:o};return go(e,t,{...r,platform:i})};function Qo(e){const t=e.whileElementsMounted,n=C(()=>ut(e.open)??!0),o=C(()=>ut(e.middleware)),r=C(()=>ut(e.transform)??!0),i=C(()=>ut(e.placement)??"bottom"),s=C(()=>ut(e.strategy)??"absolute"),a=C(()=>ut(e.sideOffset)??0),l=C(()=>ut(e.alignOffset)??0),d=e.reference;let h=N(0),p=N(0);const u=it(null);let c=N(It(g(s))),f=N(It(g(i))),m=N(It({})),w=N(!1),v=!1,P=0,x=!1;const b=C(()=>{const R=u.current?_e(u.current,g(h)):g(h),H=u.current?_e(u.current,g(p)):g(p);return g(r)?{position:g(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...u.current&&Ge(u.current)>=1.5&&{willChange:"transform"}}:{position:g(c),left:`${R}px`,top:`${H}px`}});let A;function y(){if(x||d.current===null||u.current===null)return;const R=d.current,H=u.current,M=++P;Go(R,H,{middleware:g(o),placement:g(i),strategy:g(s)}).then(D=>{if(M!==P||d.current!==R||u.current!==H)return;if($o(R)){E(m,{...g(m),hide:{...g(m).hide,referenceHidden:!0}},!0);return}if(!g(n)&&g(h)!==0&&g(p)!==0){const z=Math.max(Math.abs(g(a)),Math.abs(g(l)),15);if(D.x<=z&&D.y<=z)return}E(h,D.x,!0),E(p,D.y,!0),E(c,D.strategy,!0),E(f,D.placement,!0),E(m,D.middlewareData,!0),E(w,!0)})}function S(){typeof A=="function"&&(A(),A=void 0),P++}function _(){if(S(),t===void 0){y();return}g(n)&&(d.current===null||u.current===null||(A=t(d.current,u.current,y)))}function L(){!g(n)&&u.current===null&&E(w,!1)}function I(){return[g(o),g(i),g(s),g(a),g(l),g(n)]}return rt(()=>{t===void 0&&g(n)&&y()}),rt(_),rt(()=>{if(t!==void 0){if(I(),!g(n)){v=!1;return}if(!g(w)){v=!1;return}if(!v){v=!0;return}y()}}),rt(L),rt(()=>()=>{x=!0,S()}),{floating:u,reference:d,get strategy(){return g(c)},get placement(){return g(f)},get middlewareData(){return g(m)},get isPositioned(){return g(w)},get floatingStyles(){return g(b)},get update(){return y}}}function $o(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const tr={top:"bottom",right:"left",bottom:"top",left:"right"},ue=new qt("Floating.Content");class Ut{static create(t,n=!1){return n?ue.set(new Ut(t,he.get())):ue.set(new Ut(t,fe.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Mt(this.contentRef);wrapperAttachment=Mt(this.wrapperRef);arrowAttachment=Mt(this.arrowRef);arrowId=it(Xe());#t=C(()=>{if(typeof this.opts.style=="string")return On(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new $n(()=>this.arrowRef.current??void 0);#r=C(()=>this.#i?.width??0);#e=C(()=>this.#i?.height??0);#s=C(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=C(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=C(()=>g(this.#a).length>0);get hasExplicitBoundaries(){return g(this.#n)}set hasExplicitBoundaries(t){E(this.#n,t)}#l=C(()=>({padding:this.opts.collisionPadding.current,boundary:g(this.#a).filter(Pn),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return g(this.#l)}set detectOverflowOptions(t){E(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=C(()=>[jo({mainAxis:this.opts.sideOffset.current+g(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Yo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Jo():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Uo({...this.detectOverflowOptions}),Xo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;E(this.#c,n,!0),E(this.#d,o,!0),E(this.#f,r,!0),E(this.#g,i,!0)}}),this.arrowRef.current&&Zo({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),er({arrowWidth:g(this.#r),arrowHeight:g(this.#e)}),this.opts.hideWhenDetached.current&&qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return g(this.#p)}set middleware(t){E(this.#p,t)}floating;#u=C(()=>nr(this.floating.placement));get placedSide(){return g(this.#u)}set placedSide(t){E(this.#u,t)}#h=C(()=>or(this.floating.placement));get placedAlign(){return g(this.#h)}set placedAlign(t){E(this.#h,t)}#m=C(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return g(this.#m)}set arrowX(t){E(this.#m,t)}#w=C(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return g(this.#w)}set arrowY(t){E(this.#w,t)}#v=C(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return g(this.#v)}set cannotCenterArrow(t){E(this.#v,t)}#y=N();get contentZIndex(){return g(this.#y)}set contentZIndex(t){E(this.#y,t,!0)}#x=C(()=>tr[this.placedSide]);get arrowBaseSide(){return g(this.#x)}set arrowBaseSide(t){E(this.#x,t)}#b=C(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${g(this.#c)}px`,"--bits-floating-available-height":`${g(this.#d)}px`,"--bits-floating-anchor-width":`${g(this.#f)}px`,"--bits-floating-anchor-height":`${g(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...g(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return g(this.#b)}set wrapperProps(t){E(this.#b,t)}#O=C(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:An({...g(this.#t)}),...this.contentAttachment}));get props(){return g(this.#O)}set props(t){E(this.#O,t)}#P=C(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return g(this.#P)}set arrowStyle(t){E(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Bt(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=Qo({strategy:()=>this.opts.strategy.current,placement:()=>g(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>Ko(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Bt(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=Sn(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class cn{static create(t){return new cn(t,ue.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=C(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return g(this.#t)}set props(t){E(this.#t,t)}}function er(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,h]=xe(n),p={start:"0%",center:"50%",end:"100%"}[h],u=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let f="",m="";return d==="bottom"?(f=s?p:`${u}px`,m=`${-l}px`):d==="top"?(f=s?p:`${u}px`,m=`${o.floating.height+l}px`):d==="right"?(f=`${-l}px`,m=s?p:`${c}px`):d==="left"&&(f=`${o.floating.width+l}px`,m=s?p:`${c}px`),{data:{x:f,y:m}}}}}function xe(e){const[t,n="center"]=e.split("-");return[t,n]}function nr(e){return xe(e)[0]}function or(e){return xe(e)[1]}function rr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),d=O(t,"collisionPadding",3,0),h=O(t,"hideWhenDetached",3,!1),p=O(t,"onPlaced",3,()=>{}),u=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),f=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),w=O(t,"style",19,()=>({})),v=O(t,"wrapperId",19,Xe),P=O(t,"customAnchor",3,null),x=O(t,"tooltip",3,!1);const b=Ut.create({side:F(()=>n()),sideOffset:F(()=>o()),align:F(()=>r()),alignOffset:F(()=>i()),id:F(()=>t.id),arrowPadding:F(()=>s()),avoidCollisions:F(()=>a()),collisionBoundary:F(()=>l()),collisionPadding:F(()=>d()),hideWhenDetached:F(()=>h()),onPlaced:F(()=>p()),sticky:F(()=>u()),updatePositionStrategy:F(()=>c()),strategy:F(()=>f()),dir:F(()=>m()),style:F(()=>w()),enabled:F(()=>t.enabled),wrapperId:F(()=>v()),customAnchor:F(()=>P())},x()),A=C(()=>Ot(b.wrapperProps,{style:{pointerEvents:"auto"}}));var y=j(),S=V(y);X(S,()=>t.content??$,()=>({props:b.props,wrapperProps:g(A)})),W(e,y),nt()}function ir(e,t){et(t,!0),jn(()=>{t.onPlaced?.()});var n=j(),o=V(n);X(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var sr=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function ar(e,t){let n=O(t,"isStatic",3,!1),o=St(t,sr);var r=j(),i=V(r);{var s=l=>{ir(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{rr(l,kt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};pt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var lr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),cr=Nt("<!> <!>",1);function un(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),d=St(t,lr);const h=C(()=>t.preventScroll??!0),p=C(()=>t.strategy??(g(h)?"fixed":"absolute"));ar(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return g(p)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,f)=>{let m=()=>(f?.()).props,w=()=>(f?.()).wrapperProps;var v=cr(),P=V(v);{var x=y=>{Fe(y,{get preventScroll(){return g(h)}})},b=y=>{Fe(y,{get preventScroll(){return g(h)}})};pt(P,y=>{t.forceMount&&t.enabled?y(x):t.forceMount||y(b,1)})}var A=Tt(P,2);Cn(A,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(S,_)=>{let L=()=>(_?.()).props;En(S,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,R)=>{Fn(I,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,D)=>{let K=()=>(D?.()).props;Tn(M,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=j(),k=V(T);{let Y=C(()=>({props:Ot(d,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:w()}));X(k,()=>t.popper??$,()=>g(Y))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,v)},$$slots:{content:!0}}),nt()}var ur=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function dr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,ur);var l=j(),d=V(l);{var h=p=>{un(p,kt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};pt(d,p=>{t.shouldRender&&p(h)})}W(e,l)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function hr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,fr);un(e,kt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function re(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,d]=t[s]??[0,0],[h,p]=t[a]??[0,0];d>=o!=p>=o&&n<=(h-l)*(o-d)/(p-d)+l&&(r=!r)}return r}function ie(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function ze(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class gr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,Bt([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Dn(o),a=u=>{this.#p([u.clientX,u.clientY],o,r)},l=u=>{const c=u.relatedTarget;if(gt(c)&&r.contains(c))return;const f=this.#t.ignoredTargets?.()??[];gt(c)&&f.some(m=>m===c||m.contains(c))||(this.#s=gt(c)&&f.length>0?f.filter(m=>c.contains(m)):[],this.#r=[u.clientX,u.clientY],this.#e="content",this.#d())},d=()=>{this.#u()},h=()=>{this.#u()},p=u=>{const c=u.relatedTarget;gt(c)&&o.contains(c)||(this.#r=[u.clientX,u.clientY],this.#e="trigger",this.#d())};return[Ft(s,"pointermove",a),Ft(o,"pointerleave",l),Ft(o,"pointerenter",d),Ft(r,"pointerenter",h),Ft(r,"pointerleave",p)].reduce((u,c)=>()=>{u(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&ie(t,i)){this.#u();return}if(this.#e==="trigger"&&ie(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const h of this.#s){const p=h.getBoundingClientRect();if(ie(t,p))return;const u=ze(r,p),c=this.#h(r,p,u);if(c&&re(t,c))return}const s=ze(r,i),a=this.#h(r,i,s);if(a&&re(t,a))return;const l=this.#e==="content"?i:r,d=this.#m(this.#r,l,s,this.#e);re(t,d)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const de=Ln({component:"popover",parts:["root","trigger","content","close","overlay"]}),be=new qt("Popover.Root");class Oe{static create(t){return be.set(new Oe(t))}opts;#t=N(null);get contentNode(){return g(this.#t)}set contentNode(t){E(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return g(this.#o)}set triggerNode(t){E(this.#o,t,!0)}#i=N(null);get overlayNode(){return g(this.#i)}set overlayNode(t){E(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return g(this.#r)}set openedViaHover(t){E(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return g(this.#e)}set hasInteractedWithContent(t){E(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return g(this.#s)}set hoverCooldown(t){E(this.#s,t,!0)}#a=N(0);get closeDelay(){return g(this.#a)}set closeDelay(t){E(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Te({ref:F(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Te({ref:F(()=>this.overlayNode),open:this.opts.open}),Bt(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class Pe{static create(t){return new Pe(t,be.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new _n(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Bt(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Rt(t)||(E(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Rt(t)||(E(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),g(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}g(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===In||t.key===Mn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=C(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":kn(this.root.opts.open.current),"data-state":qe(this.root.opts.open.current),"aria-controls":this.#a(),[de.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#n)}set props(t){E(this.#n,t)}}class Ae{static create(t){return new Ae(t,be.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new gr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;gt(n)&&Bn(n)&&this.root.markInteraction()}onpointerenter(t){Rt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Rt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const n=t.target.closest(de.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#t)}set snippetProps(t){E(this.#t,t)}#o=C(()=>({id:this.opts.id.current,tabindex:-1,"data-state":qe(this.root.opts.open.current),...Wn(this.root.contentPresence.transitionStatus),[de.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#o)}set props(t){E(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var pr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),Ve=Nt("<div><div><!></div></div>");function wi(e,t){const n=Ue();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ze(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,yt),a=O(t,"onCloseAutoFocus",3,yt),l=O(t,"onEscapeKeydown",3,yt),d=O(t,"onInteractOutside",3,yt),h=O(t,"trapFocus",3,!0),p=O(t,"preventScroll",3,!1),u=O(t,"customAnchor",3,null),c=St(t,pr);const f=Ae.create({id:F(()=>r()),ref:F(()=>o(),y=>o(y)),onInteractOutside:F(()=>d()),onEscapeKeydown:F(()=>l()),customAnchor:F(()=>u())}),m=C(()=>Ot(c,f.props)),w=C(()=>h()&&f.shouldTrapFocus);function v(y){f.shouldTrapFocus||y.preventDefault(),s()(y)}var P=j(),x=V(P);{var b=y=>{hr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get enabled(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=j(),D=V(M);{var K=B=>{var T=j(),k=V(T);{let Y=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(Y))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var Y=ft(k);X(Y,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))},A=y=>{dr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get open(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=j(),D=V(M);{var K=B=>{var T=j(),k=V(T);{let Y=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(Y))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var Y=ft(k);X(Y,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))};pt(x,y=>{i()?y(b):i()||y(A,1)})}W(e,P),nt()}var mr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),wr=Nt("<button><!></button>");function vi(e,t){const n=Ue();et(t,!0);let o=O(t,"id",19,()=>Ze(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),d=O(t,"closeDelay",3,300),h=St(t,mr);const p=Pe.create({id:F(()=>o()),ref:F(()=>r(),c=>r(c)),disabled:F(()=>!!s()),openOnHover:F(()=>a()),openDelay:F(()=>l()),closeDelay:F(()=>d())}),u=C(()=>Ot(h,p.props,{type:i()}));eo(e,{get id(){return o()},get ref(){return p.opts.ref},children:(c,f)=>{var m=j(),w=V(m);{var v=x=>{var b=j(),A=V(b);X(A,()=>t.child,()=>({props:g(u)})),W(x,b)},P=x=>{var b=wr();Dt(b,()=>({...g(u)}));var A=ft(b);X(A,()=>t.children??$),ht(b),W(x,b)};pt(w,x=>{t.child?x(v):x(P,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function yi(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,yt),r=O(t,"onOpenChangeComplete",3,yt);Oe.create({open:F(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:F(()=>r())}),to(e,{children:(i,s)=>{var a=j(),l=V(a);X(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}const vr=6;function yr(e,t){return t.needsYou-e.needsYou||t.underWay-e.underWay||(t.lastActivity??0)-(e.lastActivity??0)||t.queued-e.queued}function xi(e,t,n){const o=new Map(e.map(r=>[r.id,[]]));for(const r of t)o.get(r.projectId)?.push(r);return new Map(e.map(r=>[r.id,Jn(o.get(r.id)??[],n)]))}const Xt=(e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:"base"});function bi(e,t,n){const o=n.limit??vr,r=new Set(n.pinned),i=e.filter(u=>r.has(u.id)),s={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null},a=u=>t.get(u.id)??s,l=e.filter(u=>!r.has(u.id)).toSorted((u,c)=>yr(a(u),a(c))||Xt(u,c)),d=l.slice(0,Math.max(0,o-i.length)),h=n.current?l.find(u=>u.id===n.current):void 0;h&&!d.includes(h)&&d.push(h);const p=new Set(d.map(u=>u.id));return{pinned:i,top:d,rest:l.filter(u=>!p.has(u.id)).toSorted(Xt)}}function Oi(e,t,n=[],o={}){const r=t.trim().toLowerCase();if(!r)return e.toSorted(Xt);const i=new Set(n),s=a=>{const l=[a.name,o[a.id]].filter(Boolean).map(d=>d.toLowerCase());return l.some(d=>d.startsWith(r))?0:l.some(d=>d.split(/[\s\-_.:/]+/).some(h=>h.startsWith(r)))?1:l.some(d=>d.includes(r))||a.id.toLowerCase().includes(r)?2:-1};return e.map(a=>({p:a,r:s(a)})).filter(a=>a.r>=0).toSorted((a,l)=>a.r-l.r||Number(i.has(l.p.id))-Number(i.has(a.p.id))||Xt(a.p,l.p)).map(a=>a.p)}function xr(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?[...new Set(t.filter(n=>typeof n=="string"))]:[]}catch{return[]}}class br{#t=N(It([]));get rows(){return g(this.#t)}set rows(t){E(this.#t,t,!0)}}const Pi=new br,Ai="x-wheelhouse-filename",Si="x-wheelhouse-filetype",Ci=25*1024*1024;function Or(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Ei(e){return`[attached file ${e.path} — ${e.name}, ${Or(e.size)}, ${e.type||"unknown type"}]`}const Pr=/^\[attached file (\/[^\n]*?\/([^/\n]+)) — \2, ([\d.]+) (B|KB|MB), ([^\]\n,]+)\][ \t]*$/gm,Ar={B:1,KB:1024,MB:1024*1024};function Sr(e){const t=[],n=e.replace(Pr,(o,r,i,s,a,l)=>(t.push({path:r,name:i,size:Math.round(Number(s)*Ar[a]),type:l==="unknown type"?"":l}),""));return t.length?{text:n.trim(),files:t}:{text:e,files:t}}const Cr=e=>/^image\/(png|jpeg|gif|webp|avif)$/.test(e);function Fi(e){if(e.type==="application/pdf")return"PDF";if(e.type.startsWith("image/"))return"Image";const t=/\.([A-Za-z0-9]{1,6})$/.exec(e.name)?.[1];return t?t.toUpperCase():e.type.startsWith("text/")?"Text":"File"}function Ti(e){if(!Cr(e.type))return null;const t=/\/uploads\/(\d{4}-\d{2}-\d{2})\/([a-f0-9]{12})\/([^/]+)$/.exec(e.path);return t?`/api/firstmate/uploads/${t[1]}/${t[2]}/${encodeURIComponent(t[3])}`:null}function Di(e,t=new Date){const n=/^image\/(png|jpeg|gif|webp|avif)$/.exec(e)?.[1]?.replace("jpeg","jpg")??"png";return`Pasted image ${t.toISOString().slice(0,19).replace("T"," ").replace(/:/g,".")}.${n}`}const Er=/^\/session\/[A-Za-z0-9_-]+\/?$/;function dn(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&Zn.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Fr(e){return dn(e)&&Er.test(URL.parse(e).pathname)}function Tr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Dr(e,t=null){const n=[];for(const o of Je(Tr(e))){if(!dn(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function At(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ke=2*6e4,_r=3,fn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Se=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(At),Ir=(e,t)=>new RegExp(`${fn(t)}(?![\\w-])`).test(e),_t=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function hn(e,t){if(e.status!=="landed")return!0;const n=_t(e.mergedAt);return n!==null&&t!==null&&t<n}function gn(e,t){const n=Se(t);return Je(e).some(o=>n.includes(At(o)))}function pn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${fn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Ir(e,t.pr.url.replace(/\/+$/,""))}function Mr(e,t){return pn(e,t)||gn(e,t)}function _i(e,t){if(!URL.parse(e))return null;const n=At(e);return t.find(o=>{if(o.status==="landed"||!o.preview)return!1;const r=At(o.preview.url);return n===r||n.startsWith(`${r}/`)})??null}const kr=e=>e.preview?.url??e.board?.url??null;function Br(e,t,n){const o=At(e);return n.some(r=>hn(r,t)&&Se(r).includes(o))}function je(e,t,n){e.set(t,[...e.get(t)??[],n])}function Ii(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=kr(a),d=_t(a.preview?.reportedAt??a.board?.reportedAt),h=a.status==="landed",p=h?_t(a.mergedAt):null;let u=null,c=null,f=null;for(const w of e){if(w.kind!=="turn")continue;const v=_t(w.at);if(d!==null&&(v===null||v<d-Ke))continue;const P=b=>hn(a,v)&&gn(b,a),x=w.parts.find(b=>b.kind==="text"&&(pn(b.text,a)||P(b.text)));if(!(!x||x.kind!=="text")&&(u??=x.id,P(x.text)&&(c=x.id),h&&(p===null||v!==null&&v>=p-Ke))){f=x.id;break}}const m=f??c??u;m&&(je(o,m,{task:a,url:l,board:!a.preview,landed:h}),i.set(m,[...i.get(m)??[],...Se(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=_t(a.at);for(const d of a.parts){if(d.kind!=="text")continue;const h=new Set;let p=0;for(const u of Dr(d.text,n)){const c=URL.parse(u).origin,f=At(u);if(i.get(d.id)?.includes(f)){s.delete(f);continue}h.has(c)||Br(u,l,r)||p>=_r||(h.add(c),p++,s.delete(f),s.set(f,{anchor:d.id,url:u}))}}}for(const{anchor:a,url:l}of s.values())je(o,a,{task:null,url:l,board:Fr(l),landed:!1});return o}function Ye(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Wr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${Ye(e.id)}: ${e.title}]`:`[task ${Ye(e.id)}: ${e.title}]`}function Mi(e){return e.map(t=>typeof t=="string"?t:Wr(t)).join("").replace(/\u00a0/g," ").trim()}function Lr(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const Nr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Hr(e){const t=[];let n=0;for(const o of e.matchAll(Nr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Rr=140,zr={firstmate:"Firstmate",captain:"my message"};function Ce(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Hr(t).map(n=>typeof n=="string"?n:Lr(n,60)).join("").replace(/\s+/g," ").trim()}function ki(e,t=Rr){const n=Ce(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function Bi(e,t){const n=t.trim();return n&&`> Replying to ${zr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
2
2
|
|
|
3
3
|
${n}`}const Vr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function Kr(e){const t=e.replace(/\r\n?/g,`
|
|
4
4
|
`).match(Vr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function Wi(e,t){const n=Ce(t);if(!n)return!1;const o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return e.snippet.endsWith("…")?n.startsWith(o):n===o}const lt="unsorted",xt=(e,t,n)=>n?{topic:e,task:n,source:t}:{topic:e,source:t},bt={topic:lt,source:null},jr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,Yr=/^\s{0,3}(`{3,}|~{3,})/;function Ur(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{ag as Ue,p as be,y as Z,f as i,a as r,b as xe,g as e,e as se,q as Ve,r as oe,h as y,c as S,i as G,j as Ee,s as d,n as L,A as T,m as a,t as de,o as Be}from"./CEfkcOME.js";import{d as Je,s as ue,e as Ke,a as Me}from"./CPPNfCxh.js";import{i as H}from"./D4ikcNuh.js";import{c as h}from"./CGbw525c.js";import{j as Qe,r as Ce,d as Se,k as ze}from"./BMjXQSgN.js";import{b as Le}from"./B6yYMcjx.js";import{p as j,r as Re,s as fe}from"./D42BPZCD.js";import{p as Xe}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{ag as Ue,p as be,y as Z,f as i,a as r,b as xe,g as e,e as se,q as Ve,r as oe,h as y,c as S,i as G,j as Ee,s as d,n as L,A as T,m as a,t as de,o as Be}from"./CEfkcOME.js";import{d as Je,s as ue,e as Ke,a as Me}from"./CPPNfCxh.js";import{i as H}from"./D4ikcNuh.js";import{c as h}from"./CGbw525c.js";import{j as Qe,r as Ce,d as Se,k as ze}from"./BMjXQSgN.js";import{b as Le}from"./B6yYMcjx.js";import{p as j,r as Re,s as fe}from"./D42BPZCD.js";import{p as Xe}from"./CWCjMcSQ.js";import{D as Te}from"./Sv3hh1sg.js";import{D as Ye,a as et,b as tt,c as rt,d as he,e as at}from"./BxKmcvUJ.js";import{s as je}from"./s1S1BAXN.js";import{c as st,d as ot,b as $e,m as lt}from"./DRPGxn7H.js";import{B as Q}from"./D4Okmn3b.js";import{C as nt,e as it,b as dt,i as ut}from"./WrKGiNFc.js";import{P as ft,i as pt,f as mt,m as vt}from"./DUXFc1rr.js";import{P as gt}from"./B0iegdDx.js";import{L as ct}from"./BMEfZRmb.js";import{T as _t}from"./CiB1IASV.js";var ht=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),$t=S("<button><!></button>");function bt(X,o){const q=Ue();be(o,!0);let N=j(o,"id",19,()=>st(q)),U=j(o,"ref",15,null),O=j(o,"disabled",3,!1),t=Re(o,ht);const $=ot.create({id:$e(()=>N()),ref:$e(()=>U(),g=>U(g)),disabled:$e(()=>!!O())}),B=y(()=>lt(t,$.props));var u=Z(),f=i(u);{var R=g=>{var k=Z(),V=i(k);je(V,()=>o.child,()=>({props:e(B)})),r(g,k)},le=g=>{var k=$t();Qe(k,()=>({...e(B)}));var V=se(k);je(V,()=>o.children??Ve),oe(k),r(g,k)};H(f,g=>{o.child?g(R):g(le,-1)})}r(X,u),xe()}var xt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function wt(X,o){be(o,!0);let q=j(o,"ref",15,null),N=j(o,"type",3,"button"),U=Re(o,xt);var O=Z(),t=i(O);h(t,()=>bt,($,B)=>{B($,fe({"data-slot":"dialog-trigger",get type(){return N()}},()=>U,{get ref(){return q()},set ref(u){q(u)}}))}),r(X,O),xe()}var yt=S("<!> ",1),ae=S("<!> <!>",1),kt=S('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),Pt=S("<!>Fetching…",1),Dt=S('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),It=S('<p class="text-xs text-danger" role="alert"> </p>'),Oe=S("<!> <!> <!>",1),At=S("<p> </p>");function Kt(X,o){be(o,!0);let q=j(o,"busy",19,()=>[]),N=j(o,"suggested",3,null),U=j(o,"label",3,"Install plugin"),O=G(!1),t=G("form"),$=G(""),B=G(""),u=G(null),f=G(null),R=G(Ee({}));const le=y(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e($).trim())),g=y(()=>e(f)?vt(e(f),e(R)):null),k=()=>Xe.data.sessionToken,V="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function we(){a(t,"form"),a(u,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(le)||e(t)==="looking")return;a(t,"looking"),a(u,null);const C=await it({repo:e($).trim(),ref:e(B).trim()||null},k());if(!C.ok){a(u,C.error,!0),a(t,"form");return}a(f,C.value,!0),a(R,pt(C.value),!0),a(t,"review")}async function Fe(){if(!e(f)||e(g))return;a(t,"saving"),a(u,null);const Y=dt(),C=await ut(e(f),mt(e(R)),k());if(!C.ok){a(u,C.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var ye=Z(),Ge=i(ye);h(Ge,()=>at,(Y,C)=>{C(Y,{onOpenChange:E=>{E&&(e(t)==="done"||e(t)==="slow")&&(a($,""),a(B,""),we()),E&&e(t)==="form"&&N()&&!e($)&&a($,N())},get open(){return e(O)},set open(E){a(O,E,!0)},children:(E,Bt)=>{var ke=ae(),Pe=i(ke);{const pe=(ee,te)=>{Q(ee,fe(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Ie,me)=>{var re=yt(),ne=i(re);gt(ne,{});var ve=d(ne,1,!0);de(()=>ue(ve,U())),r(Ie,re)},$$slots:{default:!0}}))};h(Pe,()=>wt,(ee,te)=>{te(ee,{child:pe,$$slots:{child:!0}})})}var He=d(Pe,2);{let pe=y(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");h(He,()=>Ye,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(pe)},children:(De,Ie)=>{var me=ae(),re=i(me);h(re,()=>et,(b,P)=>{P(b,{children:(c,D)=>{var x=ae(),I=i(x);h(I,()=>tt,(l,p)=>{p(l,{class:"font-display text-lg",children:(W,n)=>{L();var m=T("Install a plugin from GitHub");r(W,m)},$$slots:{default:!0}})});var s=d(I,2);h(s,()=>rt,(l,p)=>{p(l,{children:(W,n)=>{var m=Z(),A=i(m);{var _=v=>{var z=T("Check what it is and where it comes from before you install it.");r(v,z)},w=v=>{var z=T(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
|
|
2
2
|
Nothing runs until you install it.`);r(v,z)};H(A,v=>{e(t)==="review"?v(_):v(w,-1)})}r(W,m)},$$slots:{default:!0}})}),r(c,x)},$$slots:{default:!0}})});var ne=d(re,2);{var ve=b=>{var P=Dt(),c=i(P),D=se(c),x=d(se(D),2);Ce(x),Se(x,1,ze(V)),L(2),oe(D);var I=d(D,2),s=d(se(I),2);Ce(s),Se(s,1,ze(V)),L(2),oe(I);var l=d(I,2);{var p=n=>{var m=kt(),A=se(m);_t(A,{class:"mt-0.5 size-3.5 shrink-0"});var _=d(A,1,!0);oe(m),de(()=>ue(_,e(u))),r(n,m)};H(l,n=>{e(u)&&n(p)})}oe(c);var W=d(c,2);h(W,()=>he,(n,m)=>{m(n,{children:(A,_)=>{var w=ae(),v=i(w);{const F=(J,K)=>{Q(J,fe(()=>(K?.()).props,{variant:"ghost",children:(ce,Ae)=>{L();var _e=T("Cancel");r(ce,_e)},$$slots:{default:!0}}))};h(v,()=>Te,(J,K)=>{K(J,{child:F,$$slots:{child:!0}})})}var z=d(v,2);{let F=y(()=>!e(le)||e(t)==="looking");Q(z,{type:"submit",form:"install-plugin-form",get disabled(){return e(F)},children:(J,K)=>{var ge=Z(),ce=i(ge);{var Ae=M=>{var ie=Pt(),Ne=i(ie);ct(Ne,{class:"animate-spin"}),L(),r(M,ie)},_e=M=>{var ie=T("Look it up");r(M,ie)};H(ce,M=>{e(t)==="looking"?M(Ae):M(_e,-1)})}r(J,ge)},$$slots:{default:!0}})}r(A,w)},$$slots:{default:!0}})}),Ke("submit",c,We),Me("input",x,()=>a(u,null)),Le(x,()=>e($),n=>a($,n)),Le(s,()=>e(B),n=>a(B,n)),r(b,P)},Ze=b=>{var P=Oe(),c=i(P);ft(c,{get preview(){return e(f)},get busy(){return q()},get answers(){return e(R)},set answers(s){a(R,s,!0)}});var D=d(c,2);{var x=s=>{var l=It(),p=Be(l,!0);de(()=>ue(p,e(u))),r(s,l)};H(D,s=>{e(u)&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,W)=>{var n=ae(),m=i(n);Q(m,{variant:"ghost",onclick:we,children:(_,w)=>{L();var v=T("Back");r(_,v)},$$slots:{default:!0}});var A=d(m,2);{let _=y(()=>!!e(g)),w=y(()=>e(g)?`${e(g).title} is needed`:void 0);Q(A,{onclick:Fe,get disabled(){return e(_)},get title(){return e(w)},children:(v,z)=>{L();var F=T("Install and restart");r(v,F)},$$slots:{default:!0}})}r(p,n)},$$slots:{default:!0}})}),r(b,P)},qe=b=>{var P=Oe(),c=i(P);{let s=y(()=>e(f).id),l=y(()=>e(f).commit.slice(0,7)),p=y(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");nt(c,{get label(){return`Install ${e(s)??""} at ${e(l)??""}`},get phase(){return e(p)}})}var D=d(c,2);{var x=s=>{var l=At(),p=Be(l);de(()=>ue(p,`${e(f).name??""}
|
|
3
3
|
${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(s,l)};H(D,s=>{e(t)==="done"&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,W)=>{var n=Z(),m=i(n);{const A=(_,w)=>{let v=()=>(w?.()).props;{let z=y(()=>e(t)==="saving"||e(t)==="restarting");Q(_,fe(v,{get disabled(){return e(z)},children:(F,J)=>{L();var K=T("Done");r(F,K)},$$slots:{default:!0}}))}};h(m,()=>Te,(_,w)=>{w(_,{child:A,$$slots:{child:!0}})})}r(p,n)},$$slots:{default:!0}})}),r(b,P)};H(ne,b=>{e(t)==="form"||e(t)==="looking"?b(ve):e(t)==="review"&&e(f)?b(Ze,1):e(f)&&b(qe,2)})}r(De,me)},$$slots:{default:!0}})})}r(E,ke)},$$slots:{default:!0}})}),r(X,ye),xe()}Je(["input"]);export{Kt as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import"./cGKorBHP.js";import{p as c,a as n,b,c as o,o as v,t as d,g as r,r as x}from"./CEfkcOME.js";import{s as _}from"./CPPNfCxh.js";import{e as y,s as l}from"./BMjXQSgN.js";import{i as w}from"./DejOSSV7.js";import{p as i}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import"./cGKorBHP.js";import{p as c,a as n,b,c as o,o as v,t as d,g as r,r as x}from"./CEfkcOME.js";import{s as _}from"./CPPNfCxh.js";import{e as y,s as l}from"./BMjXQSgN.js";import{i as w}from"./DejOSSV7.js";import{p as i}from"./CWCjMcSQ.js";var S=o('<a class="nav-tab shrink-0"> </a>'),E=o('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function P(f,h){c(h,!1);const p=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/firstmate",label:"Firstmate"},{href:"/settings/events",label:"Events"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/chat",label:"Chat history"},{href:"/settings/voice",label:"Voice"},{href:"/settings/headroom",label:"Headroom"},{href:"/settings/discussion",label:"Discussion"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"},{href:"/settings/experimental",label:"Experimental features"}].filter(e=>{const t=i.data.features;return e.href==="/settings/gateway"?t?.remotes:e.href==="/settings/events"?t?.events:e.href==="/settings/discussion"?t?.discussion:!0}),g=e=>i.url.pathname===e||i.url.pathname.startsWith(`${e}/`);w();var a=E();y(a,5,()=>p,e=>e.href,(e,t)=>{var s=S(),u=v(s,!0);d(m=>{l(s,"href",r(t).href),l(s,"aria-current",m),_(u,r(t).label)},[()=>g(r(t).href)?"page":void 0]),n(e,s)}),x(a),n(f,a),b()}export{P as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as R,k as C,a0 as _,E as F,b8 as q,i as l,g as c,m as u,j as v}from"./CEfkcOME.js";import"./DsnmJJEf.js";import{s as $,r as b}from"./D42BPZCD.js";import{I as S}from"./DBuj1e9B.js";import{p as O}from"./
|
|
1
|
+
import{l as R,k as C,a0 as _,E as F,b8 as q,i as l,g as c,m as u,j as v}from"./CEfkcOME.js";import"./DsnmJJEf.js";import{s as $,r as b}from"./D42BPZCD.js";import{I as S}from"./DBuj1e9B.js";import{p as O}from"./CWCjMcSQ.js";import{s as N}from"./CuYc7d4s.js";import{S as P}from"./BXN538J3.js";function ot(o,t,e){R(()=>{var s=C(()=>t(o,e?.())||{});if(e&&s?.update){var i=!1,n={};_(()=>{var r=e();F(r),i&&q(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var A=new Set(["$$slots","$$events","$$legacy"]);function at(o,t){let e=b(t,A);const s={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};S(o,$(()=>e,{get icon(){return s}}))}var B=new Set(["$$slots","$$events","$$legacy"]);function ht(o,t){let e=b(t,B);const s={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};S(o,$(()=>e,{get icon(){return s}}))}var U=new Set(["$$slots","$$events","$$legacy"]);function lt(o,t){let e=b(t,U);const s={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};S(o,$(()=>e,{get icon(){return s}}))}var L=new Set(["$$slots","$$events","$$legacy"]);function ct(o,t){let e=b(t,L);const s={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};S(o,$(()=>e,{get icon(){return s}}))}const ut=["must","should","could","none"],j={must:"Must fix",should:"Should fix",could:"Could do",none:"Keep"},W=8e3,m=o=>o.replace(/\s+/g," ").trim();function k(o){const t=Math.max(0,Math.round(o/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const w=(o,t)=>`${o} ${t}${o===1?"":"s"}`,H=/\b(this|here|that one|these)\b/i;function z(o,t,e,s,i){const n=o.filter(a=>(a.type==="click"||a.type==="input"||a.type==="choose"||a.type==="mark")&&a.t>=e-W&&a.t<=s).pop()??null,r=n?.type!=="mark"&&H.test(t)&&i&&n&&i.t>n.t+400&&i.selector!==n.el?.selector;return n&&!r?{ev:n}:{pointing:i??null}}function x(o,t){const e=s=>o.find(i=>i.id===s)?.label??"";return[...o.map(s=>({t:s.t,s:`${s.id} ${k(s.t)} ${s.label}${s.type!=="nav"&&s.page?` (on ${s.page})`:""}`})),...t.map(s=>({t:s.t0,s:`${s.id} ${k(s.t0)}–${k(s.t1)} captain said: “${s.text}”${s.anchor?` [about ${s.anchor}: ${e(s.anchor)}]`:""}${s.pointing?` [pointing at ${s.pointing.label}]`:""} (on ${s.page})`}))].sort((s,i)=>s.t-i.t).map(s=>s.s).slice(-160)}function Q(o){const t=o.split(/[.(]|, (?:that|which|so|and)\b/)[0].trim();return t.length<=64?t:t.slice(0,64).replace(/\s+\S*$/,"")+"…"}function K(o,t,e){const s=t.text.toLowerCase(),i=/\b(love|like|nice|great|good|perfect)\b/.test(s)&&!/\bnot\b/.test(s)?"praise":/\?|\bwhy\b|\bnot sure\b/.test(s)?"question":/\b(broken|bug|error|doesn'?t|does not|can'?t|wrong|fails?|nothing happens|confus)/.test(s)?"problem":/\b(maybe|could|would be nice|idea|what if)\b/.test(s)?"idea":"change",n=t.text.charAt(0).toUpperCase()+t.text.slice(1);return{id:o,kind:i,severity:i==="praise"?"none":i==="problem"?"must":i==="idea"?"could":"should",text:`${n}${e?` (about ${e} on ${t.page})`:` (on ${t.page})`}`,quote:t.text,anchor:t.anchor??"",utterances:[t.id]}}const G=o=>/\?\s*$|^(what|how|why|where|when|can you|could you|is this|does|do i|which)\b/i.test(o.trim());function J(o,t){return{summary:o.length?`The captain reviewed ${t.title} for ${k(t.duration)} and raised ${w(o.length,"point")}.`:"Nothing was raised in this session, so there is nothing to pass on yet.",issues:o.map(e=>({title:Q(e.text),detail:e.text,severity:e.severity,kind:e.kind,notes:[e.id],anchor:e.anchor,quote:e.quote})),openQuestions:[]}}function V(o,t,e,s,i){const n=[`Preview feedback for ${o.id} (${m(o.title)}), sent together from the Preview tab (${t}):`,`Live review session: ${k(e.duration)}, ${w(e.remarks,"remark")}, ${w(e.clicks,"click")}, ${w(e.pages,"page")}. ${m(s.summary)}`];return s.lines.forEach((r,a)=>{n.push(`${a+1}. [${j[r.severity]}] ${m(r.title)}. ${m(r.detail)}`),r.where&&n.push(` Points at: ${m(r.where)}`),r.quote&&n.push(` Captain said${r.at?` (${r.at})`:""}: “${m(r.quote)}”`),r.shot&&n.push(` Screenshot: ${r.shot}`)}),s.errors.length&&n.push("","Seen on the page during the session:",...s.errors.map(r=>`- ${r}`)),s.openQuestions.length&&n.push("","Open questions for the captain:",...s.openQuestions.map(r=>`- ${r}`)),i&&n.push("",`The whole session (every click, page, remark and screenshot): ${i}`),n.push("","Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours."),n.join(`
|
|
2
2
|
`)}const dt=()=>O.data.features?.livereview===!0,pt=(o,t=location.pathname+location.search)=>`/tasks/${encodeURIComponent(o)}/live?back=${encodeURIComponent(t)}`,Y=260,X=450;function M(){const o=globalThis;return o.SpeechRecognition??o.webkitSpeechRecognition??null}const y=o=>{const t=URL.parse(o??"");return t?t.pathname+t.hash||"/":o||"/"};class gt{taskId;title;token;previewUrl="";#t=l(null);get problem(){return c(this.#t)}set problem(t){u(this.#t,t,!0)}#e=l(!1);get on(){return c(this.#e)}set on(t){u(this.#e,t,!0)}#s=l(!1);get paused(){return c(this.#s)}set paused(t){u(this.#s,t,!0)}started=0;#i=l(0);get now(){return c(this.#i)}set now(t){u(this.#i,t,!0)}#n=l("talk");get mode(){return c(this.#n)}set mode(t){u(this.#n,t,!0)}#r=l(!0);get speak(){return c(this.#r)}set speak(t){u(this.#r,t,!0)}#o=l(!0);get mask(){return c(this.#o)}set mask(t){u(this.#o,t,!0)}#a=l(!0);get shootClicks(){return c(this.#a)}set shootClicks(t){u(this.#a,t,!0)}#h=l(v([]));get events(){return c(this.#h)}set events(t){u(this.#h,t,!0)}#l=l(v([]));get remarks(){return c(this.#l)}set remarks(t){u(this.#l,t,!0)}#c=l(v([]));get notes(){return c(this.#c)}set notes(t){u(this.#c,t,!0)}#u=l(v([]));get convo(){return c(this.#u)}set convo(t){u(this.#u,t,!0)}#d=l({});get shots(){return c(this.#d)}set shots(t){u(this.#d,t)}#p=l(v([]));get fresh(){return c(this.#p)}set fresh(t){u(this.#p,t,!0)}#g=l("");get heard(){return c(this.#g)}set heard(t){u(this.#g,t,!0)}#f=l("/");get page(){return c(this.#f)}set page(t){u(this.#f,t,!0)}#k=l(!1);get talking(){return c(this.#k)}set talking(t){u(this.#k,t,!0)}#m=l(!1);get locked(){return c(this.#m)}set locked(t){u(this.#m,t,!0)}#v=l(null);get hearing(){return c(this.#v)}set hearing(t){u(this.#v,t,!0)}#y=l(null);get scribeSays(){return c(this.#y)}set scribeSays(t){u(this.#y,t,!0)}#w=l(!1);get notesBusy(){return c(this.#w)}set notesBusy(t){u(this.#w,t,!0)}#$=l(!1);get replyBusy(){return c(this.#$)}set replyBusy(t){u(this.#$,t,!0)}#b=l(!1);get speaking(){return c(this.#b)}set speaking(t){u(this.#b,t,!0)}#S=l(null);get notice(){return c(this.#S)}set notice(t){u(this.#S,t,!0)}#x=l(null);get pack(){return c(this.#x)}set pack(t){u(this.#x,t,!0)}#I=l(!1);get marking(){return c(this.#I)}set marking(t){u(this.#I,t,!0)}#T=l(!1);get picking(){return c(this.#T)}set picking(t){u(this.#T,t,!0)}#D=l(null);get picked(){return c(this.#D)}set picked(t){u(this.#D,t,!0)}canHear=M()!==null;peer=null;origin="";hover=null;pageText=null;ev=0;ut=0;sh=0;lastShotAt=0;rec=null;cur=null;pressAt=0;lastTap=0;chord=!1;quietEnd=!1;notesAgain=!1;replyNext=null;outlinedCache=new Map;clock=null;constructor(t,e){this.taskId=t.id,this.title=t.title,this.token=e}async call(t){try{const e=await fetch(`/api/tasks/${encodeURIComponent(this.taskId)}/livereview`,{method:"POST",headers:{"content-type":"application/json",[P]:this.token},body:JSON.stringify(t)}),s=await e.json().catch(()=>null);return!e.ok||!s?{ok:!1,error:s?.message??`Wheelhouse answered ${e.status}.`}:{ok:!0,value:s}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}connect(t,e,s){this.peer=t,this.origin=e,this.previewUrl=s}toFrame(t){this.origin&&this.peer?.postMessage({__wh:1,...t},this.origin)}get elapsed(){return this.on?this.now-this.started:0}t(){return this.started?Date.now()-this.started:0}get canDone(){return!this.pack&&(this.on||this.remarks.length>0)}start(){this.on=!0,this.paused=!1,this.started=Date.now(),this.now=this.started,this.clock=setInterval(()=>this.now=Date.now(),1e3),this.addEvent({type:"start",label:`Started on ${this.page}`}),this.toFrame({type:"record",on:!0,mask:this.mask}),this.toFrame({type:"gettext"})}setPaused(t){!this.on||this.paused===t||(t&&this.stopTalking(),t&&this.marking&&this.mark(!1),this.paused=t,this.toFrame({type:"record",on:!t,mask:this.mask}),this.addEvent({type:"pause",label:t?"Paused the recording":"Carried on recording"}))}setMask(t){this.mask=t,this.on&&this.toFrame({type:"record",on:!this.paused,mask:t})}setMode(t){this.mode=t,t==="notes"&&this.hush()}close(){this.stopTalking(!0),this.marking&&this.mark(!1),this.hush(),this.toFrame({type:"record",on:!1}),this.on=!1,this.clock&&clearInterval(this.clock)}stopTalking(t=!1){this.locked&&(this.quietEnd=!0,this.locked=!1),this.talking&&this.release(t)}addEvent(t){const e={id:`e${++this.ev}`,t:this.t(),page:this.page,...t};return this.events.push(e),this.events[this.events.length-1]}receive(t){if(!this.peer||t.source!==this.peer||t.origin!==this.origin)return;const e=t.data;if(!(!e||e.__wh!==1)){if(e.type==="hello"){const s=this.on&&y(e.url)!==this.page;this.page=y(e.url),this.on&&(this.toFrame({type:"record",on:!this.paused,mask:this.mask}),s&&!this.paused&&this.addEvent({type:"nav",label:`Opened ${this.page}`}));return}if(e.type==="key")return this.frameKey(e);if(e.type==="marking"){this.marking=!!e.on;return}if(e.type==="picked"){this.picking=!1;const s=e.el??null;this.started||(this.started=Date.now()),this.picked=s?{el:s,shotId:this.shoot(s.selector,s.text)}:null;return}if(e.type==="text"){this.pageText={url:e.url??"",title:e.title??"",text:e.text??"",at:Date.now()};return}if(e.type==="shot"&&e.id){const s=this.shots[e.id];if(!s)return;this.shots={...this.shots,[e.id]:{...s,image:e.image??null,vw:e.vw??0,vh:e.vh??0,el:e.el??s.el,pending:!1}};return}if(!(!this.on||this.paused))switch(e.url&&(this.page=y(e.url)),e.type){case"click":{const s=this.addEvent({type:"click",label:`Clicked ${e.el?.label??"a spot on the page"}`,el:e.el??null});this.shootClicks&&Date.now()-this.lastShotAt>900&&(this.lastShotAt=Date.now(),setTimeout(()=>{s.shotId=this.shoot(e.el?.selector??null,e.el?.text??null,e.at?{...e.at,vw:e.vw??0}:null)},350));break}case"input":this.addEvent({type:"input",label:`Typed ${e.value?`“${e.value}”`:`${e.length??0} characters`} in ${e.el?.label??"a box"}`,el:e.el??null});break;case"choose":this.addEvent({type:"choose",label:`Set ${e.el?.label??"a choice"} to ${e.value}`,el:e.el??null});break;case"nav":this.addEvent({type:"nav",label:`Went to ${y(e.url)}`}),this.toFrame({type:"gettext"});break;case"scroll":{const s=this.events[this.events.length-1];s?.type==="scroll"&&this.t()-s.t<4e3?(s.label=`Scrolled to ${e.pct}%`,s.t=this.t()):this.addEvent({type:"scroll",label:`Scrolled to ${e.pct}%`});break}case"area":{if(!e.rect)break;const s={label:e.n?`marked area ${e.n}`:"the area you marked",text:"",tag:"area",selector:"",rect:e.rect},i=this.addEvent({type:"mark",label:`Marked ${s.label} on ${this.page}`,el:s});i.shotId=this.shoot(null,null,null,s);break}case"hover":this.hover=e.el?{...e.el,t:this.t()}:null;break;case"error":this.addEvent({type:"error",label:e.kind==="network"?`Request failed: ${e.message}`:`${e.kind==="console"?"Console error":"Error"}: ${e.message}`});break}}}shoot(t,e,s=null,i=null){const n=`s${++this.sh}`;return this.shots={...this.shots,[n]:{id:n,t:this.t(),image:null,vw:0,vh:0,el:i,point:s,pending:!0}},this.toFrame({type:"shoot",id:n,selector:t,text:e}),setTimeout(()=>{const r=this.shots[n];r?.pending&&(this.shots={...this.shots,[n]:{...r,pending:!1}})},8e3),n}outlined(t){const e=t?this.shots[t]:null;if(!e?.image)return Promise.resolve(null);const s=`${e.id}:${e.image.length}`,i=this.outlinedCache.get(s);if(i)return i;const n=new Promise(r=>{const a=new Image;a.onload=()=>{const d=document.createElement("canvas");d.width=a.width,d.height=a.height;const h=d.getContext("2d");if(!h)return r(e.image);h.drawImage(a,0,0);const p=a.width/(e.vw||a.width),f=e.el?.rect;if(f&&f.w>0){const g=6*p,[I,T,D,E]=[f.x*p-g,f.y*p-g,f.w*p+g*2,f.h*p+g*2];h.fillStyle="rgba(11,17,24,.38)",h.beginPath(),h.rect(0,0,d.width,d.height),h.roundRect(I,T,D,E,6*p),h.fill("evenodd"),h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*p),h.beginPath(),h.roundRect(I,T,D,E,6*p),h.stroke()}else if(e.point){const g=a.width/(e.point.vw||e.vw||a.width);h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*g),h.beginPath(),h.arc(e.point.x*g,e.point.y*g,16*g,0,Math.PI*2),h.stroke()}r(d.toDataURL("image/jpeg",.85))},a.onerror=()=>r(null),a.src=e.image});return this.outlinedCache.set(s,n),n}newHearing(){const t=this.hover&&this.t()-this.hover.t<2e4?{...this.hover}:null;return{t0:this.t(),t1:0,finals:"",interim:"",hover:t,shotId:this.shoot(t?.selector??null,t?.text??null),pointShot:null}}press(){!this.on||this.paused||this.talking||(this.talking=!0,this.pressAt=Date.now(),this.chord=!1,this.hush(),this.toFrame({type:"gettext"}),this.toFrame({type:"talking",on:!0}),this.cur=this.newHearing(),this.hearing={finals:"",interim:""},this.listen(this.cur))}pressHeld(){this.press(),this.pressAt=Date.now()-1e3}listen(t){const e=M();if(!e)return;const s=new e;s.lang=navigator.language||"en-GB",s.continuous=!0,s.interimResults=!0,this.rec=s;let i=t;s.onresult=n=>{let r="";for(let a=n.resultIndex;a<n.results.length;a++){const d=n.results[a];d.isFinal?(i.finals+=(i.finals?" ":"")+d[0].transcript.trim(),this.locked&&this.rec===s&&(i.interim="",i.t1=this.t(),this.finish(i),i=this.newHearing(),this.cur=i)):r+=d[0].transcript}i.interim=r,!i.pointShot&&this.hover&&/\b(this|here|that one|these)\b/i.test(`${i.finals} ${r}`)&&(i.hover={...this.hover},i.pointShot=this.shoot(this.hover.selector,this.hover.text)),this.talking&&this.cur===i&&(this.hearing={finals:i.finals,interim:i.interim})},s.onerror=n=>{n.error==="not-allowed"||n.error==="service-not-allowed"?this.notice="The microphone is blocked for this page. Type to the scribe instead.":n.error==="network"&&(this.notice="The browser’s speech service could not be reached. Type to the scribe instead.")},s.onend=()=>{if(this.talking&&this.locked&&this.rec===s){try{s.start()}catch{}return}this.rec===s&&(this.rec=null),this.finish(i)};try{s.start()}catch{this.notice="The browser would not start listening. Type to the scribe instead."}}release(t=!1){if(!this.talking||!this.cur)return;this.talking=!1,this.hearing=null,this.toFrame({type:"talking",on:!1});const e=this.rec,s=this.cur;this.rec=null,s.t1=this.t();const i=r=>{try{e?.[r]()}catch{}},n=Date.now()-this.pressAt;if(t||this.chord){s.dropped=!0,i("abort");return}if(!this.locked&&n<Y&&!s.finals&&!s.interim){s.dropped=!0,i("abort"),Date.now()-this.lastTap<X?(this.lastTap=0,this.setLocked(!0)):this.lastTap=Date.now();return}e?(i("stop"),setTimeout(()=>this.finish(s),2500)):this.finish(s)}setLocked(t){this.locked=t,t&&!this.talking?this.pressHeld():!t&&this.talking&&(this.quietEnd=!0,this.release())}keyDown(){if(this.on){if(this.locked)return this.setLocked(!1);this.pressHeld()}}keyUp(){this.on&&!this.locked&&this.release()}chorded(){this.talking&&!this.locked&&(this.chord=!0,this.release())}frameKey(t){t.key==="talk"?t.down?this.keyDown():this.keyUp():t.key==="chord"?this.chorded():t.key==="mark"&&this.mark()}finish(t){if(t.done||t.dropped)return;t.done=!0;const e=`${t.finals} ${t.interim}`.replace(/\s+/g," ").trim(),s=this.quietEnd;if(this.quietEnd=!1,!e){!s&&!this.locked&&(this.notice="Didn’t catch anything. Keep talking a little longer before you let go.");return}this.addRemark(e,t.t0,t.t1||this.t(),t.hover,t.pointShot??t.shotId)}mark(t=!this.marking){t&&(!this.on||this.paused)||(this.marking=t,this.toFrame({type:"mark",on:t}))}pick(t=!0){this.picking=t,this.toFrame({type:"pick",on:t})}comment(t){const e=t.trim();if(!e)return;this.started||(this.started=Date.now());const s=this.t(),i=this.picked,n={id:`u${++this.ut}`,t0:s,t1:s+600,text:e,page:this.page,anchor:null,pointing:i?.el??null,shotId:i?.shotId??this.shoot(null,null)};this.remarks.push(n),this.convo.push({who:"captain",text:e,t:s,uid:n.id}),this.picked=null,this.on&&this.askNotes()}save(){const t=s=>JSON.stringify({v:1,on:this.on,paused:this.paused,started:this.started,mode:this.mode,speak:this.speak,mask:this.mask,shootClicks:this.shootClicks,page:this.page,events:this.events,remarks:this.remarks,notes:this.notes,convo:this.convo,shots:s?this.shots:Object.fromEntries(Object.entries(this.shots).map(([i,n])=>[i,{...n,image:null}])),pack:this.pack,picked:this.picked,counts:[this.ev,this.ut,this.sh]}),e=t(!0);return e.length<4e6?e:t(!1)}restore(t){let e=null;try{e=t?JSON.parse(t):null}catch{e=null}if(!e||e.v!==1)return;this.paused=!!e.paused,this.started=Number(e.started)||0,this.mode=e.mode==="notes"?"notes":"talk",this.speak=e.speak!==!1,this.mask=e.mask!==!1,this.shootClicks=e.shootClicks!==!1,this.page=typeof e.page=="string"?e.page:"/",this.events=e.events??[],this.remarks=e.remarks??[],this.notes=e.notes??[],this.convo=e.convo??[],this.shots=e.shots??{},this.pack=e.pack??null,this.pack&&(this.pack.sending=!1),this.picked=e.picked??null;const[s,i,n]=e.counts??[0,0,0];[this.ev,this.ut,this.sh]=[s||0,i||0,n||0],e.on&&(this.on=!0,this.now=Date.now(),this.clock=setInterval(()=>this.now=Date.now(),1e3))}type(t){const e=t.trim();if(!e||!this.on||this.paused)return;const s=this.t();this.toFrame({type:"gettext"});const i=this.hover;this.addRemark(e,s-1500,s,i,this.shoot(i?.selector??null,i?.text??null))}addRemark(t,e,s,i,n){const r=z(this.events,t,e,s,i),a={id:`u${++this.ut}`,t0:e,t1:Math.max(s,e+600),text:t,page:this.page,anchor:"ev"in r?r.ev.id:null,pointing:"pointing"in r?r.pointing:null,shotId:"ev"in r&&r.ev.shotId?r.ev.shotId:n};this.remarks.push(a),this.convo.push({who:"captain",text:t,t:e,uid:a.id}),this.heard="",this.askNotes(),this.mode==="talk"&&this.askReply(a)}about(t){const e=this.remarks.find(i=>t.utterances.includes(i.id)),s=this.events.find(i=>i.id===(t.anchor||e?.anchor));return{el:s?.el??e?.pointing??null,shotId:s?.shotId??e?.shotId??null,page:s?.page??e?.page??"",t:e?.t0??s?.t??0,clicked:!!s}}highlight(t){t&&this.toFrame({type:"highlight",selector:t})}async askNotes(){if(this.notesBusy){this.notesAgain=!0;return}this.notesBusy=!0,this.notesAgain=!1;const t=await this.call({action:"notes",timeline:x(this.events,this.remarks),notes:this.notes});if(this.notesBusy=!1,!!this.on){if(t.ok){const e=new Map(this.notes.map(s=>[s.id,s.text]));this.notes=t.value.notes,this.fresh=t.value.notes.filter(s=>e.get(s.id)!==s.text).map(s=>s.id),this.heard=t.value.heard}else this.notice=`The scribe could not take notes just then (${t.error}). It will try again with your next remark.`;this.notesAgain&&this.askNotes()}}async askReply(t){if(this.replyBusy){this.replyNext=t;return}this.replyBusy=!0;for(let i=0;i<6&&!(this.pageText&&Date.now()-this.pageText.at<15e3);i++)await new Promise(n=>setTimeout(n,100));const e=await this.call({action:"reply",said:t.text,page:this.pageText,timeline:x(this.events,this.remarks),notes:this.notes.map(i=>i.text),convo:this.convo.filter(i=>i.uid!==t.id||i.who==="scribe").map(({who:i,text:n})=>({who:i,text:n}))});if(this.replyBusy=!1,!this.on)return;const s=this.replyNext;if(this.replyNext=null,s)return void this.askReply(s);e.ok&&e.value.reply?(this.convo.push({who:"scribe",text:e.value.reply,t:this.t(),uid:t.id}),this.say(e.value.reply)):e.ok||this.convo.push({who:"scribe",text:`I couldn’t answer just then (${e.error}) but I noted what you said.`,t:this.t(),uid:t.id,error:!0})}say(t){this.scribeSays=t;const e=globalThis.speechSynthesis;if(!this.speak||!e){setTimeout(()=>{this.scribeSays===t&&(this.scribeSays=null)},Math.max(4e3,t.split(" ").length*380));return}e.cancel();const s=new SpeechSynthesisUtterance(t),i=e.getVoices().filter(n=>/^en/i.test(n.lang));s.voice=i.find(n=>/Google UK English Female|Daniel|Serena|Kate|Samantha|Google US English/.test(n.name))??i[0]??null,s.rate=1.04,s.onstart=()=>this.speaking=!0,s.onend=s.onerror=()=>{this.speaking=!1,setTimeout(()=>{!this.speaking&&this.scribeSays===t&&(this.scribeSays=null)},1200)},e.speak(s)}hush(){globalThis.speechSynthesis?.cancel(),this.speaking=!1,this.scribeSays=null}point(t,e){const s=this.notes.find(r=>t.notes.includes(r.id)),i=s?this.about(s):null,n=this.events.find(r=>r.id===t.anchor);return{...t,key:`p${e}`,include:!0,el:n?.el??i?.el??null,shotId:n?.shotId??i?.shotId??null,page:n?.page??i?.page??"",t:i?.t??n?.t??0}}view(t,e,s){const i={must:0,should:1,could:2,none:3};return{summary:t.summary,points:t.issues.map((n,r)=>this.point(n,r)).sort((n,r)=>i[n.severity]-i[r.severity]),openQuestions:t.openQuestions,errors:[...new Set(this.events.filter(n=>n.type==="error").map(n=>`${k(n.t)} on ${n.page}: ${n.label}`))],duration:s,from:e,tidying:!1,better:null,tidyFailed:null,edited:!1,sending:!1,sent:null,error:null}}async end(){this.stopTalking(),this.marking&&this.mark(!1),this.hush(),this.paused=!0,this.toFrame({type:"record",on:!1});const t=this.t(),e=new Set(this.notes.flatMap(h=>h.utterances)),s=new Set(this.convo.filter(h=>h.who==="scribe"&&!h.error).map(h=>h.uid)),i=this.remarks.filter(h=>!e.has(h.id)&&!(s.has(h.id)&&G(h.text))).map((h,p)=>K(`q${p+1}`,h,(h.anchor?this.events.find(f=>f.id===h.anchor)?.el?.label:h.pointing?.label)??null)),n=[...this.notes,...i];this.notes=n;const r=this.view(J(n,{title:this.title,duration:t}),"notes",t);if(r.tidying=this.remarks.length>0,this.pack=r,!r.tidying)return;const a=await this.call({action:"pack",timeline:x(this.events,this.remarks),notes:n}),d=this.pack;!d||d.sent||d.sending||(d.tidying=!1,a.ok&&a.value.issues?.length?d.edited?d.better=a.value:this.pack=this.view(a.value,"scribe",t):d.tidyFailed=a.ok?"no points":a.error)}useBetter(){this.pack?.better&&(this.pack=this.view(this.pack.better,"scribe",this.pack.duration))}resume(){this.pack=null,this.setPaused(!1)}stats(){return{remarks:this.remarks.length,clicks:this.events.filter(t=>t.type==="click").length,pages:new Set(this.events.map(t=>t.page).filter(Boolean)).size,shots:Object.values(this.shots).filter(t=>t.image).length}}message(t){const e=this.pack;if(!e)return"";const s=this.stats();return V({id:this.taskId,title:this.title},this.previewUrl,{duration:e.duration,...s},{summary:e.summary,lines:e.points.filter(i=>i.include).map(i=>({severity:i.severity,title:i.title,detail:i.detail,where:i.el?`${i.el.label}${i.page?` on ${i.page}`:""}`:i.page?`the page ${i.page}`:null,quote:i.quote,at:k(i.t),shot:i.shotId?t?t.shots[i.shotId]??null:`(screenshot ${i.shotId})`:null})),errors:e.errors,openQuestions:e.openQuestions},t?.session??null)}async send(){const t=this.pack;if(!t||t.sending||t.sent)return!1;t.sending=!0,t.error=null;const e={};for(const n of t.points.filter(r=>r.include&&r.shotId)){const r=await this.outlined(n.shotId);r&&(e[n.shotId]=r)}const s=await this.call({action:"save",session:{task:{id:this.taskId,title:this.title},preview:this.previewUrl,startedAt:new Date(this.started).toISOString(),events:this.events,remarks:this.remarks,notes:this.notes,conversation:this.convo.map(({who:n,text:r,t:a})=>({who:n,text:r,at:k(a)}))},shots:e});if(!s.ok)return t.sending=!1,t.error=s.error,!1;const i=await N(this.message(s.value),this.token,this.taskId);return t.sending=!1,i.ok?(t.sent={dir:s.value.dir},!0):(t.error=i.error,!1)}}export{at as C,gt as L,ht as M,ut as S,lt as a,ct as b,ot as c,pt as d,dt as l,k as m,w as p};
|
|
Binary file
|
|
Binary file
|