@agent-profile/web 0.3.5 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BcMnim1Z.js → BmxQso7w.js} +1 -1
- package/build/client/_app/immutable/chunks/BmxQso7w.js.br +3 -0
- package/build/client/_app/immutable/chunks/BmxQso7w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CY-inT3H.js +3 -0
- package/build/client/_app/immutable/chunks/CY-inT3H.js.br +0 -0
- package/build/client/_app/immutable/chunks/CY-inT3H.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgE_DjKt.js +1 -0
- package/build/client/_app/immutable/chunks/CgE_DjKt.js.br +2 -0
- package/build/client/_app/immutable/chunks/CgE_DjKt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DTBN031P.js → CyEm9M8C.js} +1 -1
- package/build/client/_app/immutable/chunks/CyEm9M8C.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyEm9M8C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUIAXRlx.js +2 -0
- package/build/client/_app/immutable/chunks/DUIAXRlx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUIAXRlx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DYl5dUZ5.js +1 -0
- package/build/client/_app/immutable/chunks/DYl5dUZ5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DYl5dUZ5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D5fBh0I2.js → YBkAuHc6.js} +1 -1
- package/build/client/_app/immutable/chunks/YBkAuHc6.js.br +0 -0
- package/build/client/_app/immutable/chunks/YBkAuHc6.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CdW-LYDu.js +2 -0
- package/build/client/_app/immutable/entry/app.CdW-LYDu.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CdW-LYDu.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DPIUO8Cz.js +1 -0
- package/build/client/_app/immutable/entry/start.DPIUO8Cz.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DPIUO8Cz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CHBq40XB.js +1 -0
- package/build/client/_app/immutable/nodes/0.CHBq40XB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CHBq40XB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.uBN-Xv4g.js +1 -0
- package/build/client/_app/immutable/nodes/1.uBN-Xv4g.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.uBN-Xv4g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.C8rbRh60.js +3 -0
- package/build/client/_app/immutable/nodes/10.C8rbRh60.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.C8rbRh60.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.3lkgWYOd.js → 11.DvcCox6n.js} +1 -1
- package/build/client/_app/immutable/nodes/11.DvcCox6n.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DvcCox6n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.p6ol8gkx.js → 12.Cb49Qjng.js} +1 -1
- package/build/client/_app/immutable/nodes/12.Cb49Qjng.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Cb49Qjng.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.Clary1Ks.js → 2.Czl7czp3.js} +2 -2
- package/build/client/_app/immutable/nodes/2.Czl7czp3.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Czl7czp3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.BBvN4Erf.js → 3.BEdWeod6.js} +1 -1
- package/build/client/_app/immutable/nodes/3.BEdWeod6.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BEdWeod6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.3VL8fZOS.js → 4.C4b1rN7s.js} +1 -1
- package/build/client/_app/immutable/nodes/4.C4b1rN7s.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C4b1rN7s.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DrqRX385.js +2 -0
- package/build/client/_app/immutable/nodes/5.DrqRX385.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DrqRX385.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BRCCYakl.js → 6.BiWHXice.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BiWHXice.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BiWHXice.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7._DA-s9Iz.js → 7.Br2VN8LW.js} +1 -1
- package/build/client/_app/immutable/nodes/7.Br2VN8LW.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Br2VN8LW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.ntjBWnCW.js +1 -0
- package/build/client/_app/immutable/nodes/8.ntjBWnCW.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.ntjBWnCW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.ZDc7PffF.js +9 -0
- package/build/client/_app/immutable/nodes/9.ZDc7PffF.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.ZDc7PffF.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/env.js +9 -33
- package/build/env.js.map +1 -0
- package/build/handler.js +15 -1493
- package/build/handler.js.map +1 -0
- package/build/index.js +25 -231
- package/build/index.js.map +1 -0
- package/build/server/chunks/{0--J8MXU0r.js → 0-DR3J3fQ5.js} +8 -8
- package/build/server/chunks/0-DR3J3fQ5.js.map +1 -0
- package/build/server/chunks/1-s12A57uQ.js +9 -0
- package/build/server/chunks/1-s12A57uQ.js.map +1 -0
- package/build/server/chunks/{10-CX1ex2mH.js → 10-BrScAonI.js} +5 -4
- package/build/server/chunks/10-BrScAonI.js.map +1 -0
- package/build/server/chunks/11-1xWcM97z.js +9 -0
- package/build/server/chunks/11-1xWcM97z.js.map +1 -0
- package/build/server/chunks/{12-Dw1Y6Xen.js → 12-qK3kuIcS.js} +4 -4
- package/build/server/chunks/12-qK3kuIcS.js.map +1 -0
- package/build/server/chunks/{2-iIDfIUc5.js → 2-CFdDdwD9.js} +3 -3
- package/build/server/chunks/2-CFdDdwD9.js.map +1 -0
- package/build/server/chunks/3-C0OcvgSx.js +9 -0
- package/build/server/chunks/3-C0OcvgSx.js.map +1 -0
- package/build/server/chunks/{4-CKQYCTZo.js → 4-BQF88f07.js} +6 -6
- package/build/server/chunks/4-BQF88f07.js.map +1 -0
- package/build/server/chunks/5-DBAaMAFj.js +9 -0
- package/build/server/chunks/5-DBAaMAFj.js.map +1 -0
- package/build/server/chunks/6-v7MV2lKB.js +9 -0
- package/build/server/chunks/6-v7MV2lKB.js.map +1 -0
- package/build/server/chunks/{7-DT_D0EX1.js → 7-D-QcsxDW.js} +6 -6
- package/build/server/chunks/7-D-QcsxDW.js.map +1 -0
- package/build/server/chunks/8-A2CCn3-D.js +9 -0
- package/build/server/chunks/8-A2CCn3-D.js.map +1 -0
- package/build/server/chunks/{9-BVttRALh.js → 9-DZOXvw0o.js} +5 -5
- package/build/server/chunks/9-DZOXvw0o.js.map +1 -0
- package/build/server/chunks/{Badge-DCQxSQCS.js → Badge-Y2c835hW.js} +2 -2
- package/build/server/chunks/Badge-Y2c835hW.js.map +1 -0
- package/build/server/chunks/{SafetyBadge-BxEGojgX.js → SafetyBadge-DhCPQhj2.js} +2 -2
- package/build/server/chunks/SafetyBadge-DhCPQhj2.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-BPfWfi5Y.js → _layout.svelte-Cp6Pr8fm.js} +4 -6
- package/build/server/chunks/{_layout.svelte-BPfWfi5Y.js.map → _layout.svelte-Cp6Pr8fm.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-xTZOj1o8.js → _page.svelte-BBR0DA7v.js} +3 -3
- package/build/server/chunks/_page.svelte-BBR0DA7v.js.map +1 -0
- package/build/server/chunks/{_page.svelte-1wUrXGW-.js → _page.svelte-C8YtFCVm.js} +4 -5
- package/build/server/chunks/_page.svelte-C8YtFCVm.js.map +1 -0
- package/build/server/chunks/{_page.svelte-B3CasgD8.js → _page.svelte-Ccav-C7g.js} +3 -3
- package/build/server/chunks/_page.svelte-Ccav-C7g.js.map +1 -0
- package/build/server/chunks/{_page.svelte-B1i4IP2u.js → _page.svelte-CcjAgJOx.js} +4 -6
- package/build/server/chunks/_page.svelte-CcjAgJOx.js.map +1 -0
- package/build/server/chunks/{_page.svelte-D9DhnmQr.js → _page.svelte-DLyItH9w.js} +3 -5
- package/build/server/chunks/_page.svelte-DLyItH9w.js.map +1 -0
- package/build/server/chunks/{_page.svelte-D8ffqrO3.js → _page.svelte-DYRiWotV.js} +5 -7
- package/build/server/chunks/_page.svelte-DYRiWotV.js.map +1 -0
- package/build/server/chunks/{_page.svelte-NwgcXZfI.js → _page.svelte-Ds_oIg21.js} +6 -7
- package/build/server/chunks/_page.svelte-Ds_oIg21.js.map +1 -0
- package/build/server/chunks/{_page.svelte-qnfxKUje.js → _page.svelte-EaYvOxYx.js} +24 -21
- package/build/server/chunks/_page.svelte-EaYvOxYx.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BikYFdJv.js → _page.svelte-hlyuHPTb.js} +5 -5
- package/build/server/chunks/_page.svelte-hlyuHPTb.js.map +1 -0
- package/build/server/chunks/{_page.svelte-B8jThscg.js → _page.svelte-nTkjm4Be.js} +4 -6
- package/build/server/chunks/_page.svelte-nTkjm4Be.js.map +1 -0
- package/build/server/chunks/{_page.svelte-wL3fdD1l.js → _page.svelte-wqrxHsYa.js} +4 -4
- package/build/server/chunks/_page.svelte-wqrxHsYa.js.map +1 -0
- package/build/server/chunks/{_server.ts-D7iLlRbM.js → _server.ts-3Z45ckHV.js} +4 -5
- package/build/server/chunks/_server.ts-3Z45ckHV.js.map +1 -0
- package/build/server/chunks/{_server.ts-BkOJmVFg.js → _server.ts-CgyKDc7X.js} +5 -6
- package/build/server/chunks/_server.ts-CgyKDc7X.js.map +1 -0
- package/build/server/chunks/{_server.ts-C49ZrV0a.js → _server.ts-CqjSwNoV.js} +2 -2
- package/build/server/chunks/_server.ts-CqjSwNoV.js.map +1 -0
- package/build/server/chunks/{_server.ts-C2WpZqPW.js → _server.ts-D7BHmX-e.js} +4 -5
- package/build/server/chunks/_server.ts-D7BHmX-e.js.map +1 -0
- package/build/server/chunks/{_server.ts-rJ_Ubi9D.js → _server.ts-DBxq75MD.js} +2 -2
- package/build/server/chunks/_server.ts-DBxq75MD.js.map +1 -0
- package/build/server/chunks/{_server.ts-Dz9oKgWc.js → _server.ts-DTEv8E1L.js} +5 -6
- package/build/server/chunks/_server.ts-DTEv8E1L.js.map +1 -0
- package/build/server/chunks/{_server.ts-CaVH9FSD.js → _server.ts-Dm5Z8IW4.js} +4 -5
- package/build/server/chunks/_server.ts-Dm5Z8IW4.js.map +1 -0
- package/build/server/chunks/{_server.ts-DPqZOGG_.js → _server.ts-DnknmmXM.js} +4 -5
- package/build/server/chunks/_server.ts-DnknmmXM.js.map +1 -0
- package/build/server/chunks/{_server.ts-Dwe99x74.js → _server.ts-DqQjjd-u.js} +2 -2
- package/build/server/chunks/_server.ts-DqQjjd-u.js.map +1 -0
- package/build/server/chunks/{_server.ts-BBDD0W6t.js → _server.ts-MbkJwqJ9.js} +3 -4
- package/build/server/chunks/_server.ts-MbkJwqJ9.js.map +1 -0
- package/build/server/chunks/client-x6uDA16H.js +24 -0
- package/build/server/chunks/client-x6uDA16H.js.map +1 -0
- package/build/server/chunks/{doctorSummary-BOtGdd9z.js → doctorSummary-Dvq-gAAB.js} +3 -3
- package/build/server/chunks/doctorSummary-Dvq-gAAB.js.map +1 -0
- package/build/server/chunks/{error.svelte-DWPum81Y.js → error.svelte-BkTtuJlf.js} +3 -5
- package/build/server/chunks/error.svelte-BkTtuJlf.js.map +1 -0
- package/build/server/chunks/handler-DGuyyFOi.js +1473 -0
- package/build/server/chunks/handler-DGuyyFOi.js.map +1 -0
- package/build/server/chunks/{hooks.server-Dva4z7fv.js → hooks.server-Bcf9vyYe.js} +4 -5
- package/build/server/chunks/hooks.server-Bcf9vyYe.js.map +1 -0
- package/build/server/chunks/index.js-v3uAcZBW.js +11542 -0
- package/build/server/chunks/index.js-v3uAcZBW.js.map +1 -0
- package/build/server/{manifest.js → chunks/manifest.js-CllQdYla.js} +26 -30
- package/build/server/chunks/manifest.js-CllQdYla.js.map +1 -0
- package/build/server/chunks/{marketingSeo-DqH0vHQa.js → marketingSeo-CXh0KJlO.js} +2 -2
- package/build/server/chunks/marketingSeo-CXh0KJlO.js.map +1 -0
- package/build/server/chunks/{migrationReport-f6NoxAVZ.js → migrationReport-CURRp2dU.js} +2 -2
- package/build/server/chunks/migrationReport-CURRp2dU.js.map +1 -0
- package/build/server/chunks/{profileApiHelpers-DCoI7zMU.js → profileApiHelpers-Cm4N8UkT.js} +2 -2
- package/build/server/chunks/profileApiHelpers-Cm4N8UkT.js.map +1 -0
- package/build/server/chunks/{projectContext-B1D-bieW.js → projectContext-A3_20XfX.js} +1158 -55
- package/build/server/chunks/projectContext-A3_20XfX.js.map +1 -0
- package/build/server/chunks/{src2-BtraGDB1.js → src2-Cd39KBF5.js} +2 -2
- package/build/server/chunks/src2-Cd39KBF5.js.map +1 -0
- package/build/server/chunks/{src3-BXch_OaJ.js → src3-CTp6y3wn.js} +379 -6
- package/build/server/chunks/src3-CTp6y3wn.js.map +1 -0
- package/build/server/chunks/tokenStore-CTHhmHsk.js.map +1 -1
- package/build/shims.js +1 -0
- package/build/shims.js.map +1 -0
- package/package.json +6 -6
- package/build/client/_app/immutable/chunks/BcMnim1Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcMnim1Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqIBYAbW.js +0 -3
- package/build/client/_app/immutable/chunks/BqIBYAbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqIBYAbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CC808Z2X.js +0 -1
- package/build/client/_app/immutable/chunks/CC808Z2X.js.br +0 -2
- package/build/client/_app/immutable/chunks/CC808Z2X.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5fBh0I2.js.br +0 -2
- package/build/client/_app/immutable/chunks/D5fBh0I2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJ5W1vn7.js +0 -3
- package/build/client/_app/immutable/chunks/DJ5W1vn7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJ5W1vn7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTBN031P.js.br +0 -2
- package/build/client/_app/immutable/chunks/DTBN031P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/O6-aNYLC.js +0 -1
- package/build/client/_app/immutable/chunks/O6-aNYLC.js.br +0 -0
- package/build/client/_app/immutable/chunks/O6-aNYLC.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Drm5SkSR.js +0 -2
- package/build/client/_app/immutable/entry/app.Drm5SkSR.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Drm5SkSR.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BbRC1ryX.js +0 -1
- package/build/client/_app/immutable/entry/start.BbRC1ryX.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BbRC1ryX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BP1kFxFY.js +0 -1
- package/build/client/_app/immutable/nodes/0.BP1kFxFY.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BP1kFxFY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CSvicVYN.js +0 -1
- package/build/client/_app/immutable/nodes/1.CSvicVYN.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CSvicVYN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.LJrHMplF.js +0 -3
- package/build/client/_app/immutable/nodes/10.LJrHMplF.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.LJrHMplF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.3lkgWYOd.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.3lkgWYOd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.p6ol8gkx.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.p6ol8gkx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.Clary1Ks.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Clary1Ks.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BBvN4Erf.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BBvN4Erf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.3VL8fZOS.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.3VL8fZOS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CiNtblYV.js +0 -2
- package/build/client/_app/immutable/nodes/5.CiNtblYV.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CiNtblYV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BRCCYakl.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BRCCYakl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7._DA-s9Iz.js.br +0 -0
- package/build/client/_app/immutable/nodes/7._DA-s9Iz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.D0vCT-mT.js +0 -1
- package/build/client/_app/immutable/nodes/8.D0vCT-mT.js.br +0 -2
- package/build/client/_app/immutable/nodes/8.D0vCT-mT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DTFYsfKM.js +0 -9
- package/build/client/_app/immutable/nodes/9.DTFYsfKM.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DTFYsfKM.js.gz +0 -0
- package/build/server/chunks/0--J8MXU0r.js.map +0 -1
- package/build/server/chunks/1-BImzM_Nb.js +0 -9
- package/build/server/chunks/1-BImzM_Nb.js.map +0 -1
- package/build/server/chunks/10-CX1ex2mH.js.map +0 -1
- package/build/server/chunks/11-mzYblRmm.js +0 -9
- package/build/server/chunks/11-mzYblRmm.js.map +0 -1
- package/build/server/chunks/12-Dw1Y6Xen.js.map +0 -1
- package/build/server/chunks/2-iIDfIUc5.js.map +0 -1
- package/build/server/chunks/3-DjAsck26.js +0 -9
- package/build/server/chunks/3-DjAsck26.js.map +0 -1
- package/build/server/chunks/4-CKQYCTZo.js.map +0 -1
- package/build/server/chunks/5-BDp1sX0Q.js +0 -9
- package/build/server/chunks/5-BDp1sX0Q.js.map +0 -1
- package/build/server/chunks/6-CUIuzy6O.js +0 -9
- package/build/server/chunks/6-CUIuzy6O.js.map +0 -1
- package/build/server/chunks/7-DT_D0EX1.js.map +0 -1
- package/build/server/chunks/8-DK1BCf-b.js +0 -9
- package/build/server/chunks/8-DK1BCf-b.js.map +0 -1
- package/build/server/chunks/9-BVttRALh.js.map +0 -1
- package/build/server/chunks/Badge-DCQxSQCS.js.map +0 -1
- package/build/server/chunks/SafetyBadge-BxEGojgX.js.map +0 -1
- package/build/server/chunks/_page.svelte-1wUrXGW-.js.map +0 -1
- package/build/server/chunks/_page.svelte-B1i4IP2u.js.map +0 -1
- package/build/server/chunks/_page.svelte-B3CasgD8.js.map +0 -1
- package/build/server/chunks/_page.svelte-B8jThscg.js.map +0 -1
- package/build/server/chunks/_page.svelte-BikYFdJv.js.map +0 -1
- package/build/server/chunks/_page.svelte-D8ffqrO3.js.map +0 -1
- package/build/server/chunks/_page.svelte-D9DhnmQr.js.map +0 -1
- package/build/server/chunks/_page.svelte-NwgcXZfI.js.map +0 -1
- package/build/server/chunks/_page.svelte-qnfxKUje.js.map +0 -1
- package/build/server/chunks/_page.svelte-wL3fdD1l.js.map +0 -1
- package/build/server/chunks/_page.svelte-xTZOj1o8.js.map +0 -1
- package/build/server/chunks/_server.ts-BBDD0W6t.js.map +0 -1
- package/build/server/chunks/_server.ts-BkOJmVFg.js.map +0 -1
- package/build/server/chunks/_server.ts-C2WpZqPW.js.map +0 -1
- package/build/server/chunks/_server.ts-C49ZrV0a.js.map +0 -1
- package/build/server/chunks/_server.ts-CaVH9FSD.js.map +0 -1
- package/build/server/chunks/_server.ts-D7iLlRbM.js.map +0 -1
- package/build/server/chunks/_server.ts-DPqZOGG_.js.map +0 -1
- package/build/server/chunks/_server.ts-Dwe99x74.js.map +0 -1
- package/build/server/chunks/_server.ts-Dz9oKgWc.js.map +0 -1
- package/build/server/chunks/_server.ts-rJ_Ubi9D.js.map +0 -1
- package/build/server/chunks/client-BagBHERz.js +0 -23
- package/build/server/chunks/client-BagBHERz.js.map +0 -1
- package/build/server/chunks/dev-BdIdjvaY.js +0 -4692
- package/build/server/chunks/dev-BdIdjvaY.js.map +0 -1
- package/build/server/chunks/doctorSummary-BOtGdd9z.js.map +0 -1
- package/build/server/chunks/error.svelte-DWPum81Y.js.map +0 -1
- package/build/server/chunks/hooks.server-Dva4z7fv.js.map +0 -1
- package/build/server/chunks/index-CLnuRv4X.js +0 -134
- package/build/server/chunks/index-CLnuRv4X.js.map +0 -1
- package/build/server/chunks/index-DBqjc0Yf.js +0 -77
- package/build/server/chunks/index-DBqjc0Yf.js.map +0 -1
- package/build/server/chunks/internal-sR_8mnoa.js +0 -1998
- package/build/server/chunks/internal-sR_8mnoa.js.map +0 -1
- package/build/server/chunks/marketingSeo-DqH0vHQa.js.map +0 -1
- package/build/server/chunks/migrationReport-f6NoxAVZ.js.map +0 -1
- package/build/server/chunks/profileApiHelpers-DCoI7zMU.js.map +0 -1
- package/build/server/chunks/projectContext-B1D-bieW.js.map +0 -1
- package/build/server/chunks/src2-BtraGDB1.js.map +0 -1
- package/build/server/chunks/src3-BXch_OaJ.js.map +0 -1
- package/build/server/index.js +0 -4593
- package/build/server/index.js.map +0 -1
- package/build/server/manifest.js.map +0 -1
- /package/build/client/_app/immutable/chunks/{CP97kCR3.js → xihTtKlq.js} +0 -0
- /package/build/client/_app/immutable/chunks/{CP97kCR3.js.br → xihTtKlq.js.br} +0 -0
- /package/build/client/_app/immutable/chunks/{CP97kCR3.js.gz → xihTtKlq.js.gz} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doctorSummary-BOtGdd9z.js","sources":["../../../.svelte-kit/adapter-node/chunks/doctorSummary.js"],"sourcesContent":["import { r as resolveProjectRoot } from \"./projectContext.js\";\nimport { t as runDoctor } from \"./src3.js\";\n//#region src/lib/server/doctorSummary.ts\nvar SUMMARY_CACHE_MS = 5e3;\nvar cachedSummary = null;\nfunction isNotVerifiableIssue(issue) {\n\treturn /not verifiable/i.test(issue.message) || /not verifiable/i.test(issue.guidance);\n}\nfunction bucketDoctorIssues(issues) {\n\tconst buckets = {\n\t\terror: [],\n\t\twarning: [],\n\t\tinfo: [],\n\t\tnot_verifiable: []\n\t};\n\tfor (const issue of issues) {\n\t\tif (isNotVerifiableIssue(issue)) {\n\t\t\tbuckets.not_verifiable.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tbuckets[issue.severity].push(issue);\n\t}\n\treturn buckets;\n}\nfunction statusLabel(status) {\n\tif (status === \"fail\") return \"failing\";\n\tif (status === \"warn\") return \"warnings\";\n\tif (status === \"pass\") return \"passing\";\n\treturn \"unavailable\";\n}\nasync function loadDoctorSummary(rootDir = resolveProjectRoot()) {\n\tconst now = Date.now();\n\tif (cachedSummary && cachedSummary.rootDir === rootDir && cachedSummary.expiresAt > now) return cachedSummary.summary;\n\tconst startedAt = process.hrtime.bigint();\n\ttry {\n\t\tconst result = await runDoctor({ rootDir });\n\t\tconst elapsedMs = Number((process.hrtime.bigint() - startedAt) / 1000000n) || 0;\n\t\tconst buckets = bucketDoctorIssues(result.issues);\n\t\tconst summary = {\n\t\t\tok: true,\n\t\t\tstatus: result.status,\n\t\t\tlabel: statusLabel(result.status),\n\t\t\terrorCount: buckets.error.length,\n\t\t\twarningCount: buckets.warning.length,\n\t\t\tinfoCount: buckets.info.length,\n\t\t\tnotVerifiableCount: buckets.not_verifiable.length,\n\t\t\ttotalIssues: result.issues.length,\n\t\t\tlastRunIso: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\telapsedMs,\n\t\t\tmessage: null\n\t\t};\n\t\tcachedSummary = {\n\t\t\trootDir,\n\t\t\texpiresAt: Date.now() + SUMMARY_CACHE_MS,\n\t\t\tsummary\n\t\t};\n\t\treturn summary;\n\t} catch (err) {\n\t\tconst elapsedMs = Number((process.hrtime.bigint() - startedAt) / 1000000n) || 0;\n\t\tconst message = err instanceof Error ? err.message : String(err);\n\t\tconst summary = {\n\t\t\tok: false,\n\t\t\tstatus: \"unknown\",\n\t\t\tlabel: statusLabel(\"unknown\"),\n\t\t\terrorCount: 0,\n\t\t\twarningCount: 0,\n\t\t\tinfoCount: 0,\n\t\t\tnotVerifiableCount: 0,\n\t\t\ttotalIssues: 0,\n\t\t\tlastRunIso: null,\n\t\t\telapsedMs,\n\t\t\tmessage\n\t\t};\n\t\tcachedSummary = {\n\t\t\trootDir,\n\t\t\texpiresAt: Date.now() + SUMMARY_CACHE_MS,\n\t\t\tsummary\n\t\t};\n\t\treturn summary;\n\t}\n}\n//#endregion\nexport { loadDoctorSummary as n, bucketDoctorIssues as t };\n"],"names":[],"mappings":";;;AAEA;AACA,IAAI,gBAAgB,GAAG,GAAG;AAC1B,IAAI,aAAa,GAAG,IAAI;AACxB,SAAS,oBAAoB,CAAC,KAAK,EAAE;AACrC,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACvF;AACA,SAAS,kBAAkB,CAAC,MAAM,EAAE;AACpC,CAAC,MAAM,OAAO,GAAG;AACjB,EAAE,KAAK,EAAE,EAAE;AACX,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,IAAI,EAAE,EAAE;AACV,EAAE,cAAc,EAAE;AAClB,EAAE;AACF,CAAC,KAAK,MAAM,KAAK,IAAI,MAAM,EAA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,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,gBAAgB;AAC3C,GAAG;AACH,GAAG;AACH,EAAE,OAAO,OAAO;AAChB,CAAC;AACD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.svelte-DWPum81Y.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"../../chunks/environment.js\";\nimport { W as escape_html, rt as getContext } from \"../../chunks/dev.js\";\nimport { n as navigating$1, t as stores } from \"../../chunks/client.js\";\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte\nfunction Error$1($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n\t});\n}\n//#endregion\nexport { Error$1 as default };\n"],"names":[],"mappings":";;;;;AA0BA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG;AACX,CAGC,IAAI,KAAK,GAAG;AACb,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC7B,CAAC,CAAC;AACF,CAYC,IAAI,MAAM,GAAG;AACd,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAC9B,CAAC,CAID,CAAC;AACD;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.server-Dva4z7fv.js","sources":["../../../.svelte-kit/adapter-node/entries/hooks.server.js"],"sourcesContent":["import { error } from \"@sveltejs/kit\";\n//#region src/hooks.server.ts\nvar LOOPBACK_HOSTS = new Set([\n\t\"127.0.0.1\",\n\t\"localhost\",\n\t\"::1\"\n]);\nvar STATE_CHANGING_METHODS = new Set([\n\t\"POST\",\n\t\"PUT\",\n\t\"PATCH\",\n\t\"DELETE\"\n]);\nvar SESSION_COOKIE_NAME = \"agent_profile_session\";\nvar handle = async ({ event, resolve }) => {\n\tif (isMarketingBuild()) return resolve(event);\n\tconst host = event.request.headers.get(\"host\");\n\tconst origin = event.request.headers.get(\"origin\");\n\tconst referer = event.request.headers.get(\"referer\");\n\tconst source = origin ?? referer;\n\tconst method = event.request.method.toUpperCase();\n\tif (STATE_CHANGING_METHODS.has(method)) {\n\t\tif (!isLocalSameOrigin(host, source, false)) error(403, \"Agent Profile UI only accepts localhost requests.\");\n\t} else if (!isLocalSameOrigin(host, source, true)) error(403, \"Agent Profile UI only accepts localhost requests.\");\n\tconst expectedToken = getExpectedSessionToken();\n\tif (expectedToken !== void 0) {\n\t\tif (!hasValidSessionToken(event, expectedToken)) error(403, \"Agent Profile UI session token missing or invalid. Re-open the URL printed by the CLI.\");\n\t\tif (method === \"GET\") {\n\t\t\tconst fromQuery = event.url.searchParams.get(\"session\");\n\t\t\tif (fromQuery && constantTimeEqual(fromQuery, expectedToken)) event.cookies.set(SESSION_COOKIE_NAME, expectedToken, {\n\t\t\t\tpath: \"/\",\n\t\t\t\thttpOnly: true,\n\t\t\t\tsameSite: \"strict\",\n\t\t\t\tsecure: false\n\t\t\t});\n\t\t}\n\t}\n\treturn resolve(event);\n};\nfunction isMarketingBuild() {\n\treturn process.env.AGENT_PROFILE_MARKETING_BUILD === \"1\";\n}\nfunction getExpectedSessionToken() {\n\tconst value = process.env.AGENT_PROFILE_SESSION_TOKEN;\n\tif (!value || value.trim().length === 0) return void 0;\n\treturn value;\n}\nfunction hasValidSessionToken(event, expected) {\n\tconst fromCookie = event.cookies.get(SESSION_COOKIE_NAME);\n\tif (fromCookie && constantTimeEqual(fromCookie, expected)) return true;\n\tconst fromQuery = event.url.searchParams.get(\"session\");\n\tif (fromQuery && constantTimeEqual(fromQuery, expected)) return true;\n\tconst fromHeader = event.request.headers.get(\"x-agent-profile-session\");\n\tif (fromHeader && constantTimeEqual(fromHeader, expected)) return true;\n\treturn false;\n}\nfunction constantTimeEqual(a, b) {\n\tif (a.length !== b.length) return false;\n\tlet mismatch = 0;\n\tfor (let i = 0; i < a.length; i += 1) mismatch |= a.charCodeAt(i) ^ b.charCodeAt(i);\n\treturn mismatch === 0;\n}\nfunction isLocalSameOrigin(hostHeader, sourceHeader, allowMissingSource) {\n\tconst host = parseHostHeader(hostHeader);\n\tif (host === null) return false;\n\tif (!sourceHeader) return allowMissingSource;\n\ttry {\n\t\tconst source = new URL(sourceHeader);\n\t\tconst sourceHost = normalizeHostname(source.hostname);\n\t\treturn source.protocol === \"http:\" && sourceHost === host.hostname && normalizePort(source.port, source.protocol) === host.port;\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction parseHostHeader(value) {\n\tif (!value) return null;\n\tlet hostname;\n\tlet port = \"\";\n\tif (value.startsWith(\"[\")) {\n\t\tconst end = value.indexOf(\"]\");\n\t\tif (end === -1) return null;\n\t\thostname = value.slice(1, end);\n\t\tconst rest = value.slice(end + 1);\n\t\tif (rest.length > 0) {\n\t\t\tif (!rest.startsWith(\":\")) return null;\n\t\t\tport = rest.slice(1);\n\t\t}\n\t} else {\n\t\tconst parts = value.split(\":\");\n\t\tif (parts.length > 2) return null;\n\t\thostname = parts[0];\n\t\tport = parts[1] ?? \"\";\n\t}\n\thostname = normalizeHostname(hostname);\n\tif (!LOOPBACK_HOSTS.has(hostname)) return null;\n\tif (port !== \"\" && !/^\\d+$/u.test(port)) return null;\n\treturn {\n\t\thostname,\n\t\tport\n\t};\n}\nfunction normalizeHostname(hostname) {\n\treturn hostname.toLowerCase();\n}\nfunction normalizePort(port, protocol) {\n\tif (port !== \"\") return port;\n\tif (protocol === \"http:\") return \"80\";\n\tif (protocol === \"https:\") return \"443\";\n\treturn \"\";\n}\n//#endregion\nexport { handle };\n"],"names":[],"mappings":";;;AACA;AACA,IAAI,cAAc,GAAG,IAAI,GAAG,CAAC;AAC7B,CAAC,WAAW;AACZ,CAAC,WAAW;AACZ,CAAC;AACD,CAAC,CAAC;AACF,IAAI,sBAAsB,GAAG,IAAI,GAAG,CAAC;AACrC,CAAC,MAAM;AACP,CAAC,KAAK;AACN,CAAC,OAAO;AACR,CAAC;AACD,CAAC,CAAC;AACF,IAAI,mBAAmB,GAAG,uBAAuB;AAC9C,IAAC,MAAM,GAAG,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK;AAC3C,CAAC,IAAI,gBAAgB,EAAE,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC;AAC9C,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,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R as Redirect } from './index-DBqjc0Yf.js';
|
|
2
|
-
|
|
3
|
-
const text_encoder = new TextEncoder();
|
|
4
|
-
|
|
5
|
-
/** @import { StandardSchemaV1 } from '@standard-schema/spec' */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)
|
|
9
|
-
/**
|
|
10
|
-
* @template {number} TNumber
|
|
11
|
-
* @template {any[]} [TArray=[]]
|
|
12
|
-
* @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @template {number} TStart
|
|
17
|
-
* @template {number} TEnd
|
|
18
|
-
* @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits
|
|
22
|
-
// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780
|
|
23
|
-
|
|
24
|
-
// we have to repeat the JSDoc because the display for function overloads is broken
|
|
25
|
-
// see https://github.com/microsoft/TypeScript/issues/55056
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Throws an error with a HTTP status code and an optional message.
|
|
29
|
-
* When called during request handling, this will cause SvelteKit to
|
|
30
|
-
* return an error response without invoking `handleError`.
|
|
31
|
-
* Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
|
|
32
|
-
* @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.
|
|
33
|
-
* @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
|
|
34
|
-
* @overload
|
|
35
|
-
* @param {number} status
|
|
36
|
-
* @param {App.Error} body
|
|
37
|
-
* @return {never}
|
|
38
|
-
* @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
|
|
39
|
-
* @throws {Error} If the provided status is invalid (not between 400 and 599).
|
|
40
|
-
*/
|
|
41
|
-
/**
|
|
42
|
-
* Throws an error with a HTTP status code and an optional message.
|
|
43
|
-
* When called during request handling, this will cause SvelteKit to
|
|
44
|
-
* return an error response without invoking `handleError`.
|
|
45
|
-
* Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
|
|
46
|
-
* @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.
|
|
47
|
-
* @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
|
|
48
|
-
* @overload
|
|
49
|
-
* @param {number} status
|
|
50
|
-
* @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]
|
|
51
|
-
* @return {never}
|
|
52
|
-
* @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
|
|
53
|
-
* @throws {Error} If the provided status is invalid (not between 400 and 599).
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* Throws an error with a HTTP status code and an optional message.
|
|
57
|
-
* When called during request handling, this will cause SvelteKit to
|
|
58
|
-
* return an error response without invoking `handleError`.
|
|
59
|
-
* Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
|
|
60
|
-
* @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.
|
|
61
|
-
* @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
|
|
62
|
-
* @return {never}
|
|
63
|
-
* @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
|
|
64
|
-
* @throws {Error} If the provided status is invalid (not between 400 and 599).
|
|
65
|
-
*/
|
|
66
|
-
function error(status, body) {
|
|
67
|
-
if ((isNaN(status) || status < 400 || status > 599)) {
|
|
68
|
-
throw new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
throw new HttpError(status, body);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Checks whether this is a redirect thrown by {@link redirect}.
|
|
76
|
-
* @param {unknown} e The object to check.
|
|
77
|
-
* @return {e is Redirect}
|
|
78
|
-
*/
|
|
79
|
-
function isRedirect(e) {
|
|
80
|
-
return e instanceof Redirect;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Create a JSON `Response` object from the supplied data.
|
|
85
|
-
* @param {any} data The value that will be serialized as JSON.
|
|
86
|
-
* @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.
|
|
87
|
-
*/
|
|
88
|
-
function json(data, init) {
|
|
89
|
-
// TODO deprecate this in favour of `Response.json` when it's
|
|
90
|
-
// more widely supported
|
|
91
|
-
const body = JSON.stringify(data);
|
|
92
|
-
|
|
93
|
-
// we can't just do `text(JSON.stringify(data), init)` because
|
|
94
|
-
// it will set a default `content-type` header. duplicated code
|
|
95
|
-
// means less duplicated work
|
|
96
|
-
const headers = new Headers(init?.headers);
|
|
97
|
-
if (!headers.has('content-length')) {
|
|
98
|
-
headers.set('content-length', text_encoder.encode(body).byteLength.toString());
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (!headers.has('content-type')) {
|
|
102
|
-
headers.set('content-type', 'application/json');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return new Response(body, {
|
|
106
|
-
...init,
|
|
107
|
-
headers
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Create a `Response` object from the supplied body.
|
|
113
|
-
* @param {string} body The value that will be used as-is.
|
|
114
|
-
* @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.
|
|
115
|
-
*/
|
|
116
|
-
function text(body, init) {
|
|
117
|
-
const headers = new Headers(init?.headers);
|
|
118
|
-
if (!headers.has('content-length')) {
|
|
119
|
-
const encoded = text_encoder.encode(body);
|
|
120
|
-
headers.set('content-length', encoded.byteLength.toString());
|
|
121
|
-
return new Response(encoded, {
|
|
122
|
-
...init,
|
|
123
|
-
headers
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return new Response(body, {
|
|
128
|
-
...init,
|
|
129
|
-
headers
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export { error as e, isRedirect as i, json as j, text as t };
|
|
134
|
-
//# sourceMappingURL=index-CLnuRv4X.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-CLnuRv4X.js","sources":["../../../../../node_modules/@sveltejs/kit/src/runtime/utils.js","../../../../../node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid or the location cannot be used as a header value.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"names":[],"mappings":";;AAEO,MAAM,YAAY,GAAG,IAAI,WAAW,EAAE;;ACF7C;;;AAgBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;AACpC,CAAC,IAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE;AAC3E,EAAE,MAAM,IAAI,KAAK,CAAC,CAAC,sDAAsD,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;AAC/F,CAAC;;AAED,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC;AAClC;;AA2CA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,CAAC,EAAE;AAC9B,CAAC,OAAO,CAAC,YAAY,QAAQ;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;AACjC;AACA;AACA,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,C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chemaV1 } from '@standard-schema/spec' */
|
|
2
|
-
|
|
3
|
-
class HttpError {
|
|
4
|
-
/**
|
|
5
|
-
* @param {number} status
|
|
6
|
-
* @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body
|
|
7
|
-
*/
|
|
8
|
-
constructor(status, body) {
|
|
9
|
-
this.status = status;
|
|
10
|
-
if (typeof body === 'string') {
|
|
11
|
-
this.body = { message: body };
|
|
12
|
-
} else if (body) {
|
|
13
|
-
this.body = body;
|
|
14
|
-
} else {
|
|
15
|
-
this.body = { message: `Error: ${status}` };
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
toString() {
|
|
20
|
-
return JSON.stringify(this.body);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class Redirect {
|
|
25
|
-
/**
|
|
26
|
-
* @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status
|
|
27
|
-
* @param {string} location
|
|
28
|
-
*/
|
|
29
|
-
constructor(status, location) {
|
|
30
|
-
try {
|
|
31
|
-
new Headers({ location });
|
|
32
|
-
} catch {
|
|
33
|
-
throw new Error(
|
|
34
|
-
`Invalid redirect location ${JSON.stringify(location)}: ` +
|
|
35
|
-
'this string contains characters that cannot be used in HTTP headers'
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
this.status = status;
|
|
40
|
-
this.location = location;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.
|
|
46
|
-
* `SvelteKitError` goes through `handleError`.
|
|
47
|
-
* @extends Error
|
|
48
|
-
*/
|
|
49
|
-
class SvelteKitError extends Error {
|
|
50
|
-
/**
|
|
51
|
-
* @param {number} status
|
|
52
|
-
* @param {string} text
|
|
53
|
-
* @param {string} message
|
|
54
|
-
*/
|
|
55
|
-
constructor(status, text, message) {
|
|
56
|
-
super(message);
|
|
57
|
-
this.status = status;
|
|
58
|
-
this.text = text;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @template [T=undefined]
|
|
64
|
-
*/
|
|
65
|
-
class ActionFailure {
|
|
66
|
-
/**
|
|
67
|
-
* @param {number} status
|
|
68
|
-
* @param {T} data
|
|
69
|
-
*/
|
|
70
|
-
constructor(status, data) {
|
|
71
|
-
this.status = status;
|
|
72
|
-
this.data = data;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export { ActionFailure as A, HttpError as H, Redirect as R, SvelteKitError as S };
|
|
77
|
-
//# sourceMappingURL=index-DBqjc0Yf.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-DBqjc0Yf.js","sources":["../../../../../node_modules/@sveltejs/kit/src/exports/internal/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\ttry {\n\t\t\tnew Headers({ location });\n\t\t} catch {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid redirect location ${JSON.stringify(location)}: ` +\n\t\t\t\t\t'this string contains characters that cannot be used in HTTP headers'\n\t\t\t);\n\t\t}\n\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n"],"names":[],"mappings":"AAAA;;AAEO,MAAM,SAAS,CAAC;AACvB;AACA;AACA;AACA;AACA,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE;AAC3B,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM;AACtB,EAAE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAChC,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE;AAChC,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;AACnB,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI;AACnB,EAAE,CAAC,MAAM;AACT,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE;AAC9C,EAAE;AACF,CAAC;;AAED,CAAC,QAAQ,GAAG;AACZ,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;AAClC,CAAC;AACD;;AAEO,MAAM,QAAQ,CAAC;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