@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,1998 +0,0 @@
|
|
|
1
|
-
import { U as UNDEFINED, N as NAN, P as POSITIVE_INFINITY, o as NEGATIVE_INFINITY, p as NEGATIVE_ZERO, S as SPARSE, q as is_valid_array_len, M as MAX_ARRAY_INDEX, t as is_valid_array_index, H as HOLE, D as DevalueError, v as is_primitive, x as get_type, y as is_plain_object, z as enumerable_symbols, A as stringify_key, B as stringify_string, C as valid_array_indices, E as run$1, F as setContext, n as noop$1, G as hasContext, g as getContext, I as getAllContexts, J as getAbortSignal, K as createContext, L as ssr_context, O as lifecycle_function_unavailable, Q as experimental_async_required, R as get_render_context, m as uneval, T as hydratable_serialization_failed, V as render, W as set, X as LEGACY_PROPS, Y as get, Z as flushSync, _ as define_property, $ as mutable_source, a0 as init_operations, a1 as get_first_child, a2 as get_next_sibling, a3 as HYDRATION_ERROR, a4 as set_hydrating, a5 as set_hydrate_node, a6 as hydration_failed, a7 as clear_text_content, a8 as component_root, a9 as hydrate_node, aa as create_text, ab as boundary, ac as array_from, ad as is_passive_event, ae as set_active_reaction, af as set_active_effect, ag as active_reaction, ah as active_effect, f as derived, ai as hydrating, aj as push, ak as component_context, al as hydration_mismatch, am as pop } from './dev-BdIdjvaY.js';
|
|
2
|
-
import { H as HttpError, S as SvelteKitError } from './index-DBqjc0Yf.js';
|
|
3
|
-
|
|
4
|
-
/* Baseline 2025 runtimes */
|
|
5
|
-
|
|
6
|
-
/** @type {(array_buffer: ArrayBuffer) => string} */
|
|
7
|
-
function encode_native(array_buffer) {
|
|
8
|
-
return new Uint8Array(array_buffer).toBase64();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/** @type {(base64: string) => ArrayBuffer} */
|
|
12
|
-
function decode_native(base64) {
|
|
13
|
-
return Uint8Array.fromBase64(base64).buffer;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* Node-compatible runtimes */
|
|
17
|
-
|
|
18
|
-
/** @type {(array_buffer: ArrayBuffer) => string} */
|
|
19
|
-
function encode_buffer(array_buffer) {
|
|
20
|
-
return Buffer.from(array_buffer).toString('base64');
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** @type {(base64: string) => ArrayBuffer} */
|
|
24
|
-
function decode_buffer(base64) {
|
|
25
|
-
return Uint8Array.from(Buffer.from(base64, 'base64')).buffer;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Legacy runtimes */
|
|
29
|
-
|
|
30
|
-
/** @type {(array_buffer: ArrayBuffer) => string} */
|
|
31
|
-
function encode_legacy(array_buffer) {
|
|
32
|
-
const array = new Uint8Array(array_buffer);
|
|
33
|
-
let binary = '';
|
|
34
|
-
|
|
35
|
-
// the maximum number of arguments to String.fromCharCode.apply
|
|
36
|
-
// should be around 0xFFFF in modern engines
|
|
37
|
-
const chunk_size = 0x8000;
|
|
38
|
-
for (let i = 0; i < array.length; i += chunk_size) {
|
|
39
|
-
const chunk = array.subarray(i, i + chunk_size);
|
|
40
|
-
binary += String.fromCharCode.apply(null, chunk);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return btoa(binary);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** @type {(base64: string) => ArrayBuffer} */
|
|
47
|
-
function decode_legacy(base64) {
|
|
48
|
-
const binary_string = atob(base64);
|
|
49
|
-
const len = binary_string.length;
|
|
50
|
-
const array = new Uint8Array(len);
|
|
51
|
-
|
|
52
|
-
for (let i = 0; i < len; i++) {
|
|
53
|
-
array[i] = binary_string.charCodeAt(i);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return array.buffer;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const native = typeof Uint8Array.fromBase64 === 'function';
|
|
60
|
-
const buffer = typeof process === 'object' && process.versions?.node !== undefined;
|
|
61
|
-
|
|
62
|
-
const encode64 = native ? encode_native : buffer ? encode_buffer : encode_legacy;
|
|
63
|
-
const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Revive a value serialized with `devalue.stringify`
|
|
67
|
-
* @param {string} serialized
|
|
68
|
-
* @param {Record<string, (value: any) => any>} [revivers]
|
|
69
|
-
*/
|
|
70
|
-
function parse(serialized, revivers) {
|
|
71
|
-
return unflatten(JSON.parse(serialized), revivers);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Revive a value flattened with `devalue.stringify`
|
|
76
|
-
* @param {number | any[]} parsed
|
|
77
|
-
* @param {Record<string, (value: any) => any>} [revivers]
|
|
78
|
-
*/
|
|
79
|
-
function unflatten(parsed, revivers) {
|
|
80
|
-
if (typeof parsed === 'number') return hydrate(parsed, true);
|
|
81
|
-
|
|
82
|
-
if (!Array.isArray(parsed) || parsed.length === 0) {
|
|
83
|
-
throw new Error('Invalid input');
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const values = /** @type {any[]} */ (parsed);
|
|
87
|
-
|
|
88
|
-
const hydrated = Array(values.length);
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* A set of values currently being hydrated with custom revivers,
|
|
92
|
-
* used to detect invalid cyclical dependencies
|
|
93
|
-
* @type {Set<number> | null}
|
|
94
|
-
*/
|
|
95
|
-
let hydrating = null;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @param {number} index
|
|
99
|
-
* @returns {any}
|
|
100
|
-
*/
|
|
101
|
-
function hydrate(index, standalone = false) {
|
|
102
|
-
if (index === UNDEFINED) return undefined;
|
|
103
|
-
if (index === NAN) return NaN;
|
|
104
|
-
if (index === POSITIVE_INFINITY) return Infinity;
|
|
105
|
-
if (index === NEGATIVE_INFINITY) return -Infinity;
|
|
106
|
-
if (index === NEGATIVE_ZERO) return -0;
|
|
107
|
-
|
|
108
|
-
if (standalone || typeof index !== 'number') {
|
|
109
|
-
throw new Error(`Invalid input`);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (index in hydrated) return hydrated[index];
|
|
113
|
-
|
|
114
|
-
const value = values[index];
|
|
115
|
-
|
|
116
|
-
if (!value || typeof value !== 'object') {
|
|
117
|
-
hydrated[index] = value;
|
|
118
|
-
} else if (Array.isArray(value)) {
|
|
119
|
-
if (typeof value[0] === 'string') {
|
|
120
|
-
const type = value[0];
|
|
121
|
-
|
|
122
|
-
const reviver = revivers && Object.hasOwn(revivers, type) ? revivers[type] : undefined;
|
|
123
|
-
|
|
124
|
-
if (reviver) {
|
|
125
|
-
let i = value[1];
|
|
126
|
-
if (typeof i !== 'number') {
|
|
127
|
-
// if it's not a number, it was serialized by a builtin reviver
|
|
128
|
-
// so we need to munge it into the format expected by a custom reviver
|
|
129
|
-
i = values.push(value[1]) - 1;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
hydrating ??= new Set();
|
|
133
|
-
|
|
134
|
-
if (hydrating.has(i)) {
|
|
135
|
-
throw new Error('Invalid circular reference');
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
hydrating.add(i);
|
|
139
|
-
hydrated[index] = reviver(hydrate(i));
|
|
140
|
-
hydrating.delete(i);
|
|
141
|
-
|
|
142
|
-
return hydrated[index];
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
switch (type) {
|
|
146
|
-
case 'Date':
|
|
147
|
-
hydrated[index] = new Date(value[1]);
|
|
148
|
-
break;
|
|
149
|
-
|
|
150
|
-
case 'Set':
|
|
151
|
-
const set = new Set();
|
|
152
|
-
hydrated[index] = set;
|
|
153
|
-
for (let i = 1; i < value.length; i += 1) {
|
|
154
|
-
set.add(hydrate(value[i]));
|
|
155
|
-
}
|
|
156
|
-
break;
|
|
157
|
-
|
|
158
|
-
case 'Map':
|
|
159
|
-
const map = new Map();
|
|
160
|
-
hydrated[index] = map;
|
|
161
|
-
for (let i = 1; i < value.length; i += 2) {
|
|
162
|
-
map.set(hydrate(value[i]), hydrate(value[i + 1]));
|
|
163
|
-
}
|
|
164
|
-
break;
|
|
165
|
-
|
|
166
|
-
case 'RegExp':
|
|
167
|
-
hydrated[index] = new RegExp(value[1], value[2]);
|
|
168
|
-
break;
|
|
169
|
-
|
|
170
|
-
case 'Object': {
|
|
171
|
-
const wrapped_index = value[1];
|
|
172
|
-
|
|
173
|
-
if (
|
|
174
|
-
typeof values[wrapped_index] === 'object' &&
|
|
175
|
-
values[wrapped_index][0] !== 'BigInt'
|
|
176
|
-
) {
|
|
177
|
-
// avoid infinite recusion in case of malformed input
|
|
178
|
-
throw new Error('Invalid input');
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
hydrated[index] = Object(hydrate(wrapped_index));
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
case 'BigInt':
|
|
186
|
-
hydrated[index] = BigInt(value[1]);
|
|
187
|
-
break;
|
|
188
|
-
|
|
189
|
-
case 'null':
|
|
190
|
-
const obj = Object.create(null);
|
|
191
|
-
hydrated[index] = obj;
|
|
192
|
-
for (let i = 1; i < value.length; i += 2) {
|
|
193
|
-
if (value[i] === '__proto__') {
|
|
194
|
-
throw new Error('Cannot parse an object with a `__proto__` property');
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
obj[value[i]] = hydrate(value[i + 1]);
|
|
198
|
-
}
|
|
199
|
-
break;
|
|
200
|
-
|
|
201
|
-
case 'Int8Array':
|
|
202
|
-
case 'Uint8Array':
|
|
203
|
-
case 'Uint8ClampedArray':
|
|
204
|
-
case 'Int16Array':
|
|
205
|
-
case 'Uint16Array':
|
|
206
|
-
case 'Float16Array':
|
|
207
|
-
case 'Int32Array':
|
|
208
|
-
case 'Uint32Array':
|
|
209
|
-
case 'Float32Array':
|
|
210
|
-
case 'Float64Array':
|
|
211
|
-
case 'BigInt64Array':
|
|
212
|
-
case 'BigUint64Array':
|
|
213
|
-
case 'DataView': {
|
|
214
|
-
if (values[value[1]][0] !== 'ArrayBuffer') {
|
|
215
|
-
// without this, if we receive malformed input we could
|
|
216
|
-
// end up trying to hydrate in a circle or allocate
|
|
217
|
-
// huge amounts of memory when we call `new TypedArrayConstructor(buffer)`
|
|
218
|
-
throw new Error('Invalid data');
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
const TypedArrayConstructor = globalThis[type];
|
|
222
|
-
const buffer = hydrate(value[1]);
|
|
223
|
-
|
|
224
|
-
hydrated[index] =
|
|
225
|
-
value[2] !== undefined
|
|
226
|
-
? new TypedArrayConstructor(buffer, value[2], value[3])
|
|
227
|
-
: new TypedArrayConstructor(buffer);
|
|
228
|
-
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
case 'ArrayBuffer': {
|
|
233
|
-
const base64 = value[1];
|
|
234
|
-
if (typeof base64 !== 'string') {
|
|
235
|
-
throw new Error('Invalid ArrayBuffer encoding');
|
|
236
|
-
}
|
|
237
|
-
const arraybuffer = decode64(base64);
|
|
238
|
-
hydrated[index] = arraybuffer;
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
case 'Temporal.Duration':
|
|
243
|
-
case 'Temporal.Instant':
|
|
244
|
-
case 'Temporal.PlainDate':
|
|
245
|
-
case 'Temporal.PlainTime':
|
|
246
|
-
case 'Temporal.PlainDateTime':
|
|
247
|
-
case 'Temporal.PlainMonthDay':
|
|
248
|
-
case 'Temporal.PlainYearMonth':
|
|
249
|
-
case 'Temporal.ZonedDateTime': {
|
|
250
|
-
const temporalName = type.slice(9);
|
|
251
|
-
// @ts-expect-error TS doesn't know about Temporal yet
|
|
252
|
-
hydrated[index] = Temporal[temporalName].from(value[1]);
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
case 'URL': {
|
|
257
|
-
const url = new URL(value[1]);
|
|
258
|
-
hydrated[index] = url;
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
case 'URLSearchParams': {
|
|
263
|
-
const url = new URLSearchParams(value[1]);
|
|
264
|
-
hydrated[index] = url;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
default:
|
|
269
|
-
throw new Error(`Unknown type ${type}`);
|
|
270
|
-
}
|
|
271
|
-
} else if (value[0] === SPARSE) {
|
|
272
|
-
// Sparse array encoding: [SPARSE, length, idx, val, idx, val, ...]
|
|
273
|
-
const len = value[1];
|
|
274
|
-
|
|
275
|
-
if (!is_valid_array_len(len)) {
|
|
276
|
-
throw new Error('Invalid input');
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/** @type {any[]} */
|
|
280
|
-
const array = [];
|
|
281
|
-
hydrated[index] = array;
|
|
282
|
-
|
|
283
|
-
// Setting `array.length = len` (or equivalently calling `new Array(len)`)
|
|
284
|
-
// on an untrusted `len` is a DoS vector: V8 eagerly allocates a
|
|
285
|
-
// contiguous backing store for array lengths below ~10^8, so a
|
|
286
|
-
// small payload with a huge declared length can force arbitrary
|
|
287
|
-
// memory allocation. Touching the largest-possible index first
|
|
288
|
-
// forces V8 into dictionary-elements mode, where `length` is
|
|
289
|
-
// just a number and no contiguous allocation occurs.
|
|
290
|
-
array[MAX_ARRAY_INDEX] = undefined;
|
|
291
|
-
delete array[MAX_ARRAY_INDEX];
|
|
292
|
-
|
|
293
|
-
for (let i = 2; i < value.length; i += 2) {
|
|
294
|
-
const idx = value[i];
|
|
295
|
-
|
|
296
|
-
if (!is_valid_array_index(idx) || idx >= len) {
|
|
297
|
-
throw new Error('Invalid input');
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
array[idx] = hydrate(value[i + 1]);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
array.length = len;
|
|
304
|
-
} else {
|
|
305
|
-
const array = new Array(value.length);
|
|
306
|
-
hydrated[index] = array;
|
|
307
|
-
|
|
308
|
-
for (let i = 0; i < value.length; i += 1) {
|
|
309
|
-
const n = value[i];
|
|
310
|
-
if (n === HOLE) continue;
|
|
311
|
-
|
|
312
|
-
array[i] = hydrate(n);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
} else {
|
|
316
|
-
/** @type {Record<string, any>} */
|
|
317
|
-
const object = {};
|
|
318
|
-
hydrated[index] = object;
|
|
319
|
-
|
|
320
|
-
for (const key of Object.keys(value)) {
|
|
321
|
-
if (key === '__proto__') {
|
|
322
|
-
throw new Error('Cannot parse an object with a `__proto__` property');
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
const n = value[key];
|
|
326
|
-
object[key] = hydrate(n);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
return hydrated[index];
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return hydrate(0);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Turn a value into a JSON string that can be parsed with `devalue.parse`
|
|
338
|
-
* @param {any} value
|
|
339
|
-
* @param {Record<string, (value: any) => any>} [reducers]
|
|
340
|
-
*/
|
|
341
|
-
function stringify$1(value, reducers) {
|
|
342
|
-
const stringified = run(false, value, reducers);
|
|
343
|
-
return typeof stringified === 'string' ? stringified : `[${stringified.join(',')}]`;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* @param {boolean} async
|
|
348
|
-
* @param {any} value
|
|
349
|
-
* @param {Record<string, (value: any) => any>} [reducers]
|
|
350
|
-
*/
|
|
351
|
-
function run(async, value, reducers) {
|
|
352
|
-
/** @type {any[]} */
|
|
353
|
-
const stringified = [];
|
|
354
|
-
|
|
355
|
-
/** @type {Map<any, number>} */
|
|
356
|
-
const indexes = new Map();
|
|
357
|
-
|
|
358
|
-
/** @type {Array<{ key: string, fn: (value: any) => any }>} */
|
|
359
|
-
const custom = [];
|
|
360
|
-
if (reducers) {
|
|
361
|
-
for (const key of Object.getOwnPropertyNames(reducers)) {
|
|
362
|
-
custom.push({ key, fn: reducers[key] });
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/** @type {string[]} */
|
|
367
|
-
const keys = [];
|
|
368
|
-
|
|
369
|
-
let p = 0;
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* @param {any} thing
|
|
373
|
-
* @param {number} [index]
|
|
374
|
-
*/
|
|
375
|
-
function flatten(thing, index) {
|
|
376
|
-
if (thing === undefined) return UNDEFINED;
|
|
377
|
-
if (Number.isNaN(thing)) return NAN;
|
|
378
|
-
if (thing === Infinity) return POSITIVE_INFINITY;
|
|
379
|
-
if (thing === -Infinity) return NEGATIVE_INFINITY;
|
|
380
|
-
if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO;
|
|
381
|
-
|
|
382
|
-
if (indexes.has(thing)) return /** @type {number} */ (indexes.get(thing));
|
|
383
|
-
|
|
384
|
-
index ??= p++;
|
|
385
|
-
indexes.set(thing, index);
|
|
386
|
-
|
|
387
|
-
for (const { key, fn } of custom) {
|
|
388
|
-
const value = fn(thing);
|
|
389
|
-
if (value) {
|
|
390
|
-
stringified[index] = `["${key}",${flatten(value)}]`;
|
|
391
|
-
return index;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
if (typeof thing === 'function') {
|
|
396
|
-
throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
|
|
397
|
-
} else if (typeof thing === 'symbol') {
|
|
398
|
-
throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/** @type {string | Promise<any>} */
|
|
402
|
-
let str = '';
|
|
403
|
-
|
|
404
|
-
if (is_primitive(thing)) {
|
|
405
|
-
str = stringify_primitive(thing);
|
|
406
|
-
} else if (typeof thing.then === 'function') {
|
|
407
|
-
{
|
|
408
|
-
throw new DevalueError(
|
|
409
|
-
`Cannot stringify a Promise or thenable — use stringifyAsync instead`,
|
|
410
|
-
keys,
|
|
411
|
-
thing,
|
|
412
|
-
value
|
|
413
|
-
);
|
|
414
|
-
}
|
|
415
|
-
} else {
|
|
416
|
-
const type = get_type(thing);
|
|
417
|
-
|
|
418
|
-
switch (type) {
|
|
419
|
-
case 'Number':
|
|
420
|
-
case 'String':
|
|
421
|
-
case 'Boolean':
|
|
422
|
-
case 'BigInt':
|
|
423
|
-
str = `["Object",${flatten(thing.valueOf())}]`;
|
|
424
|
-
break;
|
|
425
|
-
|
|
426
|
-
case 'Date':
|
|
427
|
-
const valid = !isNaN(thing.getDate());
|
|
428
|
-
str = `["Date","${valid ? thing.toISOString() : ''}"]`;
|
|
429
|
-
break;
|
|
430
|
-
|
|
431
|
-
case 'URL':
|
|
432
|
-
str = `["URL",${stringify_string(thing.toString())}]`;
|
|
433
|
-
break;
|
|
434
|
-
|
|
435
|
-
case 'URLSearchParams':
|
|
436
|
-
str = `["URLSearchParams",${stringify_string(thing.toString())}]`;
|
|
437
|
-
break;
|
|
438
|
-
|
|
439
|
-
case 'RegExp':
|
|
440
|
-
const { source, flags } = thing;
|
|
441
|
-
str = flags
|
|
442
|
-
? `["RegExp",${stringify_string(source)},"${flags}"]`
|
|
443
|
-
: `["RegExp",${stringify_string(source)}]`;
|
|
444
|
-
break;
|
|
445
|
-
|
|
446
|
-
case 'Array': {
|
|
447
|
-
// For dense arrays (no holes), we iterate normally.
|
|
448
|
-
// When we encounter the first hole, we call Object.keys
|
|
449
|
-
// to determine the sparseness, then decide between:
|
|
450
|
-
// - HOLE encoding: [-2, val, -2, ...] (default)
|
|
451
|
-
// - Sparse encoding: [-7, length, idx, val, ...] (for very sparse arrays)
|
|
452
|
-
// Only the sparse path avoids iterating every slot, which
|
|
453
|
-
// is what protects against the DoS of e.g. `arr[1000000] = 1`.
|
|
454
|
-
let mostly_dense = false;
|
|
455
|
-
|
|
456
|
-
str = '[';
|
|
457
|
-
|
|
458
|
-
for (let i = 0; i < thing.length; i += 1) {
|
|
459
|
-
if (i > 0) str += ',';
|
|
460
|
-
|
|
461
|
-
if (Object.hasOwn(thing, i)) {
|
|
462
|
-
keys.push(`[${i}]`);
|
|
463
|
-
str += flatten(thing[i]);
|
|
464
|
-
keys.pop();
|
|
465
|
-
} else if (mostly_dense) {
|
|
466
|
-
// Use dense encoding. The heuristic guarantees the
|
|
467
|
-
// array is only mildly sparse, so iterating over every
|
|
468
|
-
// slot is fine.
|
|
469
|
-
str += HOLE;
|
|
470
|
-
} else {
|
|
471
|
-
// Decide between HOLE encoding and sparse encoding.
|
|
472
|
-
//
|
|
473
|
-
// HOLE encoding: each hole is serialized as the HOLE
|
|
474
|
-
// sentinel (-2). For example, [, "a", ,] becomes
|
|
475
|
-
// [-2, 0, -2]. Each hole costs 3 chars ("-2" + comma).
|
|
476
|
-
//
|
|
477
|
-
// Sparse encoding: lists only populated indices.
|
|
478
|
-
// For example, [, "a", ,] becomes [-7, 3, 1, 0] — the
|
|
479
|
-
// -7 sentinel, the array length (3), then index-value
|
|
480
|
-
// pairs. This avoids paying per-hole, but each element
|
|
481
|
-
// costs extra chars to write its index.
|
|
482
|
-
//
|
|
483
|
-
// The values are the same size either way, so the
|
|
484
|
-
// choice comes down to structural overhead:
|
|
485
|
-
//
|
|
486
|
-
// HOLE overhead:
|
|
487
|
-
// 3 chars per hole ("-2" + comma)
|
|
488
|
-
// = (L - P) * 3
|
|
489
|
-
//
|
|
490
|
-
// Sparse overhead:
|
|
491
|
-
// "-7," — 3 chars (sparse sentinel + comma)
|
|
492
|
-
// + length + "," — (d + 1) chars (array length + comma)
|
|
493
|
-
// + per element: index + "," — (d + 1) chars
|
|
494
|
-
// = (4 + d) + P * (d + 1)
|
|
495
|
-
//
|
|
496
|
-
// where L is the array length, P is the number of
|
|
497
|
-
// populated elements, and d is the number of digits
|
|
498
|
-
// in L (an upper bound on the digits in any index).
|
|
499
|
-
//
|
|
500
|
-
// Sparse encoding is cheaper when:
|
|
501
|
-
// (4 + d) + P * (d + 1) < (L - P) * 3
|
|
502
|
-
const populated_keys = valid_array_indices(/** @type {any[]} */ (thing));
|
|
503
|
-
const population = populated_keys.length;
|
|
504
|
-
const d = String(thing.length).length;
|
|
505
|
-
|
|
506
|
-
const hole_cost = (thing.length - population) * 3;
|
|
507
|
-
const sparse_cost = 4 + d + population * (d + 1);
|
|
508
|
-
|
|
509
|
-
if (hole_cost > sparse_cost) {
|
|
510
|
-
str = '[' + SPARSE + ',' + thing.length;
|
|
511
|
-
for (let j = 0; j < populated_keys.length; j++) {
|
|
512
|
-
const key = populated_keys[j];
|
|
513
|
-
keys.push(`[${key}]`);
|
|
514
|
-
str += ',' + key + ',' + flatten(thing[key]);
|
|
515
|
-
keys.pop();
|
|
516
|
-
}
|
|
517
|
-
break;
|
|
518
|
-
} else {
|
|
519
|
-
mostly_dense = true;
|
|
520
|
-
str += HOLE;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
str += ']';
|
|
526
|
-
|
|
527
|
-
break;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
case 'Set':
|
|
531
|
-
str = '["Set"';
|
|
532
|
-
|
|
533
|
-
for (const value of thing) {
|
|
534
|
-
str += `,${flatten(value)}`;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
str += ']';
|
|
538
|
-
break;
|
|
539
|
-
|
|
540
|
-
case 'Map':
|
|
541
|
-
str = '["Map"';
|
|
542
|
-
|
|
543
|
-
for (const [key, value] of thing) {
|
|
544
|
-
keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : '...'})`);
|
|
545
|
-
str += `,${flatten(key)},${flatten(value)}`;
|
|
546
|
-
keys.pop();
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
str += ']';
|
|
550
|
-
break;
|
|
551
|
-
|
|
552
|
-
case 'Int8Array':
|
|
553
|
-
case 'Uint8Array':
|
|
554
|
-
case 'Uint8ClampedArray':
|
|
555
|
-
case 'Int16Array':
|
|
556
|
-
case 'Uint16Array':
|
|
557
|
-
case 'Float16Array':
|
|
558
|
-
case 'Int32Array':
|
|
559
|
-
case 'Uint32Array':
|
|
560
|
-
case 'Float32Array':
|
|
561
|
-
case 'Float64Array':
|
|
562
|
-
case 'BigInt64Array':
|
|
563
|
-
case 'BigUint64Array':
|
|
564
|
-
case 'DataView': {
|
|
565
|
-
/** @type {import("./types.js").TypedArray} */
|
|
566
|
-
const typedArray = thing;
|
|
567
|
-
str = '["' + type + '",' + flatten(typedArray.buffer);
|
|
568
|
-
|
|
569
|
-
// handle subarrays
|
|
570
|
-
if (typedArray.byteLength !== typedArray.buffer.byteLength) {
|
|
571
|
-
// to be used with `new TypedArray(buffer, byteOffset, length)`
|
|
572
|
-
str += `,${typedArray.byteOffset},${typedArray.length}`;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
str += ']';
|
|
576
|
-
break;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
case 'ArrayBuffer': {
|
|
580
|
-
/** @type {ArrayBuffer} */
|
|
581
|
-
const arraybuffer = thing;
|
|
582
|
-
const base64 = encode64(arraybuffer);
|
|
583
|
-
|
|
584
|
-
str = `["ArrayBuffer","${base64}"]`;
|
|
585
|
-
break;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
case 'Temporal.Duration':
|
|
589
|
-
case 'Temporal.Instant':
|
|
590
|
-
case 'Temporal.PlainDate':
|
|
591
|
-
case 'Temporal.PlainTime':
|
|
592
|
-
case 'Temporal.PlainDateTime':
|
|
593
|
-
case 'Temporal.PlainMonthDay':
|
|
594
|
-
case 'Temporal.PlainYearMonth':
|
|
595
|
-
case 'Temporal.ZonedDateTime':
|
|
596
|
-
str = `["${type}",${stringify_string(thing.toString())}]`;
|
|
597
|
-
break;
|
|
598
|
-
|
|
599
|
-
default:
|
|
600
|
-
if (!is_plain_object(thing)) {
|
|
601
|
-
throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
if (enumerable_symbols(thing).length > 0) {
|
|
605
|
-
throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
if (Object.getPrototypeOf(thing) === null) {
|
|
609
|
-
str = '["null"';
|
|
610
|
-
for (const key of Object.keys(thing)) {
|
|
611
|
-
if (key === '__proto__') {
|
|
612
|
-
throw new DevalueError(
|
|
613
|
-
`Cannot stringify objects with __proto__ keys`,
|
|
614
|
-
keys,
|
|
615
|
-
thing,
|
|
616
|
-
value
|
|
617
|
-
);
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
keys.push(stringify_key(key));
|
|
621
|
-
str += `,${stringify_string(key)},${flatten(thing[key])}`;
|
|
622
|
-
keys.pop();
|
|
623
|
-
}
|
|
624
|
-
str += ']';
|
|
625
|
-
} else {
|
|
626
|
-
str = '{';
|
|
627
|
-
let started = false;
|
|
628
|
-
for (const key of Object.keys(thing)) {
|
|
629
|
-
if (key === '__proto__') {
|
|
630
|
-
throw new DevalueError(
|
|
631
|
-
`Cannot stringify objects with __proto__ keys`,
|
|
632
|
-
keys,
|
|
633
|
-
thing,
|
|
634
|
-
value
|
|
635
|
-
);
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
if (started) str += ',';
|
|
639
|
-
started = true;
|
|
640
|
-
keys.push(stringify_key(key));
|
|
641
|
-
str += `${stringify_string(key)}:${flatten(thing[key])}`;
|
|
642
|
-
keys.pop();
|
|
643
|
-
}
|
|
644
|
-
str += '}';
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
stringified[index] = str;
|
|
650
|
-
return index;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
const index = flatten(value);
|
|
654
|
-
|
|
655
|
-
// special case — value is represented as a negative index
|
|
656
|
-
if (index < 0) return `${index}`;
|
|
657
|
-
|
|
658
|
-
return stringified;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* @param {any} thing
|
|
663
|
-
* @returns {string}
|
|
664
|
-
*/
|
|
665
|
-
function stringify_primitive(thing) {
|
|
666
|
-
const type = typeof thing;
|
|
667
|
-
if (type === 'string') return stringify_string(thing);
|
|
668
|
-
if (thing === void 0) return UNDEFINED.toString();
|
|
669
|
-
if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO.toString();
|
|
670
|
-
if (type === 'bigint') return `["BigInt","${thing}"]`;
|
|
671
|
-
return String(thing);
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
//#region \0rolldown/runtime.js
|
|
675
|
-
var __defProp = Object.defineProperty;
|
|
676
|
-
var __exportAll = (all, no_symbols) => {
|
|
677
|
-
let target = {};
|
|
678
|
-
for (var name in all) __defProp(target, name, {
|
|
679
|
-
get: all[name],
|
|
680
|
-
enumerable: true
|
|
681
|
-
});
|
|
682
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
683
|
-
return target;
|
|
684
|
-
};
|
|
685
|
-
//#endregion
|
|
686
|
-
//#region ../../node_modules/@sveltejs/kit/src/runtime/app/paths/internal/server.js
|
|
687
|
-
var base = "";
|
|
688
|
-
var assets = base;
|
|
689
|
-
var app_dir = "_app";
|
|
690
|
-
var initial = {
|
|
691
|
-
base,
|
|
692
|
-
assets
|
|
693
|
-
};
|
|
694
|
-
/**
|
|
695
|
-
* @param {{ base: string, assets: string }} paths
|
|
696
|
-
*/
|
|
697
|
-
function override(paths) {
|
|
698
|
-
base = paths.base;
|
|
699
|
-
assets = paths.assets;
|
|
700
|
-
}
|
|
701
|
-
function reset() {
|
|
702
|
-
base = initial.base;
|
|
703
|
-
assets = initial.assets;
|
|
704
|
-
}
|
|
705
|
-
/**
|
|
706
|
-
* `$env/dynamic/public`
|
|
707
|
-
* @type {Record<string, string>}
|
|
708
|
-
*/
|
|
709
|
-
var public_env = {};
|
|
710
|
-
/** @type {(environment: Record<string, string>) => void} */
|
|
711
|
-
function set_private_env(environment) {}
|
|
712
|
-
/** @type {(environment: Record<string, string>) => void} */
|
|
713
|
-
function set_public_env(environment) {
|
|
714
|
-
public_env = environment;
|
|
715
|
-
}
|
|
716
|
-
//#endregion
|
|
717
|
-
//#region ../../node_modules/svelte/src/internal/server/hydratable.js
|
|
718
|
-
/** @import { HydratableLookupEntry } from '#server' */
|
|
719
|
-
/**
|
|
720
|
-
* @template T
|
|
721
|
-
* @param {string} key
|
|
722
|
-
* @param {() => T} fn
|
|
723
|
-
* @returns {T}
|
|
724
|
-
*/
|
|
725
|
-
function hydratable(key, fn) {
|
|
726
|
-
experimental_async_required();
|
|
727
|
-
const { hydratable } = get_render_context();
|
|
728
|
-
let entry = hydratable.lookup.get(key);
|
|
729
|
-
if (entry !== void 0) return entry.value;
|
|
730
|
-
const value = fn();
|
|
731
|
-
entry = encode(key, value, hydratable.unresolved_promises);
|
|
732
|
-
hydratable.lookup.set(key, entry);
|
|
733
|
-
return value;
|
|
734
|
-
}
|
|
735
|
-
/**
|
|
736
|
-
* @param {string} key
|
|
737
|
-
* @param {any} value
|
|
738
|
-
* @param {Map<Promise<any>, string>} [unresolved]
|
|
739
|
-
*/
|
|
740
|
-
function encode(key, value, unresolved) {
|
|
741
|
-
/** @type {HydratableLookupEntry} */
|
|
742
|
-
const entry = {
|
|
743
|
-
value,
|
|
744
|
-
serialized: ""
|
|
745
|
-
};
|
|
746
|
-
let uid = 1;
|
|
747
|
-
entry.serialized = uneval(entry.value, (value, uneval) => {
|
|
748
|
-
if (is_promise(value)) {
|
|
749
|
-
const placeholder = `"${uid++}"`;
|
|
750
|
-
const p = value.then((v) => {
|
|
751
|
-
entry.serialized = entry.serialized.replace(placeholder, () => `r(${uneval(v)})`);
|
|
752
|
-
}).catch((devalue_error) => hydratable_serialization_failed(key, serialization_stack(entry.stack, devalue_error?.stack)));
|
|
753
|
-
p.catch(() => {}).finally(() => unresolved?.delete(p));
|
|
754
|
-
(entry.promises ??= []).push(p);
|
|
755
|
-
return placeholder;
|
|
756
|
-
}
|
|
757
|
-
});
|
|
758
|
-
return entry;
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* @param {any} value
|
|
762
|
-
* @returns {value is Promise<any>}
|
|
763
|
-
*/
|
|
764
|
-
function is_promise(value) {
|
|
765
|
-
return Object.prototype.toString.call(value) === "[object Promise]";
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
* @param {string | undefined} root_stack
|
|
769
|
-
* @param {string | undefined} uneval_stack
|
|
770
|
-
*/
|
|
771
|
-
function serialization_stack(root_stack, uneval_stack) {
|
|
772
|
-
let out = "";
|
|
773
|
-
if (root_stack) out += root_stack + "\n";
|
|
774
|
-
if (uneval_stack) out += "Caused by:\n" + uneval_stack + "\n";
|
|
775
|
-
return out || "<missing stack trace>";
|
|
776
|
-
}
|
|
777
|
-
//#endregion
|
|
778
|
-
//#region ../../node_modules/svelte/src/internal/server/blocks/snippet.js
|
|
779
|
-
/** @import { Snippet } from 'svelte' */
|
|
780
|
-
/** @import { Renderer } from '../renderer' */
|
|
781
|
-
/** @import { Getters } from '#shared' */
|
|
782
|
-
/**
|
|
783
|
-
* Create a snippet programmatically
|
|
784
|
-
* @template {unknown[]} Params
|
|
785
|
-
* @param {(...params: Getters<Params>) => {
|
|
786
|
-
* render: () => string
|
|
787
|
-
* setup?: (element: Element) => void | (() => void)
|
|
788
|
-
* }} fn
|
|
789
|
-
* @returns {Snippet<Params>}
|
|
790
|
-
*/
|
|
791
|
-
function createRawSnippet(fn) {
|
|
792
|
-
return (renderer, ...args) => {
|
|
793
|
-
var getters = args.map((value) => () => value);
|
|
794
|
-
renderer.push(fn(...getters).render().trim());
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
//#endregion
|
|
798
|
-
//#region ../../node_modules/svelte/src/index-server.js
|
|
799
|
-
/** @import { SSRContext } from '#server' */
|
|
800
|
-
/** @import { Renderer } from './internal/server/renderer.js' */
|
|
801
|
-
var index_server_exports = /* @__PURE__ */ __exportAll({
|
|
802
|
-
afterUpdate: () => noop$1,
|
|
803
|
-
beforeUpdate: () => noop$1,
|
|
804
|
-
createContext: () => createContext,
|
|
805
|
-
createEventDispatcher: () => createEventDispatcher,
|
|
806
|
-
createRawSnippet: () => createRawSnippet,
|
|
807
|
-
flushSync: () => noop$1,
|
|
808
|
-
fork: () => fork,
|
|
809
|
-
getAbortSignal: () => getAbortSignal,
|
|
810
|
-
getAllContexts: () => getAllContexts,
|
|
811
|
-
getContext: () => getContext,
|
|
812
|
-
hasContext: () => hasContext,
|
|
813
|
-
hydratable: () => hydratable,
|
|
814
|
-
hydrate: () => hydrate$1,
|
|
815
|
-
mount: () => mount$1,
|
|
816
|
-
onDestroy: () => onDestroy,
|
|
817
|
-
onMount: () => noop$1,
|
|
818
|
-
setContext: () => setContext,
|
|
819
|
-
settled: () => settled,
|
|
820
|
-
tick: () => tick,
|
|
821
|
-
unmount: () => unmount$1,
|
|
822
|
-
untrack: () => run$1
|
|
823
|
-
});
|
|
824
|
-
/** @param {() => void} fn */
|
|
825
|
-
function onDestroy(fn) {
|
|
826
|
-
/** @type {Renderer} */ ssr_context.r.on_destroy(fn);
|
|
827
|
-
}
|
|
828
|
-
function createEventDispatcher() {
|
|
829
|
-
return noop$1;
|
|
830
|
-
}
|
|
831
|
-
function mount$1() {
|
|
832
|
-
lifecycle_function_unavailable("mount");
|
|
833
|
-
}
|
|
834
|
-
function hydrate$1() {
|
|
835
|
-
lifecycle_function_unavailable("hydrate");
|
|
836
|
-
}
|
|
837
|
-
function unmount$1() {
|
|
838
|
-
lifecycle_function_unavailable("unmount");
|
|
839
|
-
}
|
|
840
|
-
function fork() {
|
|
841
|
-
lifecycle_function_unavailable("fork");
|
|
842
|
-
}
|
|
843
|
-
async function tick() {}
|
|
844
|
-
async function settled() {}
|
|
845
|
-
|
|
846
|
-
//#region ../../node_modules/@sveltejs/kit/src/utils/functions.js
|
|
847
|
-
function noop() {}
|
|
848
|
-
/**
|
|
849
|
-
* @template T
|
|
850
|
-
* @param {() => T} fn
|
|
851
|
-
*/
|
|
852
|
-
function once(fn) {
|
|
853
|
-
let done = false;
|
|
854
|
-
/** @type T */
|
|
855
|
-
let result;
|
|
856
|
-
return () => {
|
|
857
|
-
if (done) return result;
|
|
858
|
-
done = true;
|
|
859
|
-
return result = fn();
|
|
860
|
-
};
|
|
861
|
-
}
|
|
862
|
-
//#endregion
|
|
863
|
-
//#region ../../node_modules/@sveltejs/kit/src/runtime/utils.js
|
|
864
|
-
var text_encoder = new TextEncoder();
|
|
865
|
-
/**
|
|
866
|
-
* Like node's path.relative, but without using node
|
|
867
|
-
* @param {string} from
|
|
868
|
-
* @param {string} to
|
|
869
|
-
*/
|
|
870
|
-
function get_relative_path(from, to) {
|
|
871
|
-
const from_parts = from.split(/[/\\]/);
|
|
872
|
-
const to_parts = to.split(/[/\\]/);
|
|
873
|
-
from_parts.pop();
|
|
874
|
-
while (from_parts[0] === to_parts[0]) {
|
|
875
|
-
from_parts.shift();
|
|
876
|
-
to_parts.shift();
|
|
877
|
-
}
|
|
878
|
-
let i = from_parts.length;
|
|
879
|
-
while (i--) from_parts[i] = "..";
|
|
880
|
-
return from_parts.concat(to_parts).join("/");
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* @param {Uint8Array} bytes
|
|
884
|
-
* @returns {string}
|
|
885
|
-
*/
|
|
886
|
-
function base64_encode(bytes) {
|
|
887
|
-
if (globalThis.Buffer) return globalThis.Buffer.from(bytes).toString("base64");
|
|
888
|
-
let binary = "";
|
|
889
|
-
for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
|
|
890
|
-
return btoa(binary);
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* @param {string} encoded
|
|
894
|
-
* @returns {Uint8Array}
|
|
895
|
-
*/
|
|
896
|
-
function base64_decode(encoded) {
|
|
897
|
-
if (globalThis.Buffer) {
|
|
898
|
-
const buffer = globalThis.Buffer.from(encoded, "base64");
|
|
899
|
-
return new Uint8Array(buffer);
|
|
900
|
-
}
|
|
901
|
-
const binary = atob(encoded);
|
|
902
|
-
const bytes = new Uint8Array(binary.length);
|
|
903
|
-
for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
|
|
904
|
-
return bytes;
|
|
905
|
-
}
|
|
906
|
-
//#endregion
|
|
907
|
-
//#region ../../node_modules/@sveltejs/kit/src/utils/error.js
|
|
908
|
-
/**
|
|
909
|
-
* @param {unknown} err
|
|
910
|
-
* @return {Error}
|
|
911
|
-
*/
|
|
912
|
-
function coalesce_to_error(err) {
|
|
913
|
-
return err instanceof Error || err && err.name && err.message ? err : new Error(JSON.stringify(err));
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* This is an identity function that exists to make TypeScript less
|
|
917
|
-
* paranoid about people throwing things that aren't errors, which
|
|
918
|
-
* frankly is not something we should care about
|
|
919
|
-
* @param {unknown} error
|
|
920
|
-
*/
|
|
921
|
-
function normalize_error(error) {
|
|
922
|
-
return error;
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* @param {unknown} error
|
|
926
|
-
*/
|
|
927
|
-
function get_status(error) {
|
|
928
|
-
return error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
|
|
929
|
-
}
|
|
930
|
-
/**
|
|
931
|
-
* @param {unknown} error
|
|
932
|
-
*/
|
|
933
|
-
function get_message(error) {
|
|
934
|
-
return error instanceof SvelteKitError ? error.text : "Internal Error";
|
|
935
|
-
}
|
|
936
|
-
var INVALIDATED_PARAM = "x-sveltekit-invalidated";
|
|
937
|
-
var TRAILING_SLASH_PARAM = "x-sveltekit-trailing-slash";
|
|
938
|
-
/**
|
|
939
|
-
* Try to `devalue.stringify` the data object using the provided transport encoders.
|
|
940
|
-
* @param {any} data
|
|
941
|
-
* @param {Transport} transport
|
|
942
|
-
*/
|
|
943
|
-
function stringify(data, transport) {
|
|
944
|
-
const encoders = Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode]));
|
|
945
|
-
return stringify$1(data, encoders);
|
|
946
|
-
}
|
|
947
|
-
var remote_object = "__skrao";
|
|
948
|
-
var remote_map = "__skram";
|
|
949
|
-
var remote_set = "__skras";
|
|
950
|
-
/** @param {Transport} transport */
|
|
951
|
-
function create_remote_arg_revivers(transport) {
|
|
952
|
-
const remote_fns_revivers = {
|
|
953
|
-
/** @type {(value: unknown) => unknown} */
|
|
954
|
-
[remote_object]: (value) => value,
|
|
955
|
-
/** @type {(value: unknown) => Map<unknown, unknown>} */
|
|
956
|
-
[remote_map]: (value) => {
|
|
957
|
-
if (!Array.isArray(value)) throw new Error("Invalid data for Map reviver");
|
|
958
|
-
const map = /* @__PURE__ */ new Map();
|
|
959
|
-
for (const item of value) {
|
|
960
|
-
if (!Array.isArray(item) || item.length !== 2 || typeof item[0] !== "string" || typeof item[1] !== "string") throw new Error("Invalid data for Map reviver");
|
|
961
|
-
const [key, val] = item;
|
|
962
|
-
map.set(parse$1(key), parse$1(val));
|
|
963
|
-
}
|
|
964
|
-
return map;
|
|
965
|
-
},
|
|
966
|
-
/** @type {(value: unknown) => Set<unknown>} */
|
|
967
|
-
[remote_set]: (value) => {
|
|
968
|
-
if (!Array.isArray(value)) throw new Error("Invalid data for Set reviver");
|
|
969
|
-
const set = /* @__PURE__ */ new Set();
|
|
970
|
-
for (const item of value) {
|
|
971
|
-
if (typeof item !== "string") throw new Error("Invalid data for Set reviver");
|
|
972
|
-
set.add(parse$1(item));
|
|
973
|
-
}
|
|
974
|
-
return set;
|
|
975
|
-
}
|
|
976
|
-
};
|
|
977
|
-
const all_revivers = {
|
|
978
|
-
...Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.decode])),
|
|
979
|
-
...remote_fns_revivers
|
|
980
|
-
};
|
|
981
|
-
/** @type {(data: string) => unknown} */
|
|
982
|
-
const parse$1 = (data) => parse(data, all_revivers);
|
|
983
|
-
return all_revivers;
|
|
984
|
-
}
|
|
985
|
-
/**
|
|
986
|
-
* Parses the argument (if any) for a remote function
|
|
987
|
-
* @param {string} string
|
|
988
|
-
* @param {Transport} transport
|
|
989
|
-
*/
|
|
990
|
-
function parse_remote_arg(string, transport) {
|
|
991
|
-
if (!string) return void 0;
|
|
992
|
-
const json_string = new TextDecoder().decode(base64_decode(string.replaceAll("-", "+").replaceAll("_", "/")));
|
|
993
|
-
return parse(json_string, create_remote_arg_revivers(transport));
|
|
994
|
-
}
|
|
995
|
-
/**
|
|
996
|
-
* @param {string} id
|
|
997
|
-
* @param {string} payload
|
|
998
|
-
*/
|
|
999
|
-
function create_remote_key(id, payload) {
|
|
1000
|
-
return id + "/" + payload;
|
|
1001
|
-
}
|
|
1002
|
-
/**
|
|
1003
|
-
* @param {string} key
|
|
1004
|
-
* @returns {{ id: string; payload: string }}
|
|
1005
|
-
*/
|
|
1006
|
-
function split_remote_key(key) {
|
|
1007
|
-
const i = key.lastIndexOf("/");
|
|
1008
|
-
if (i === -1) throw new Error(`Invalid remote key: ${key}`);
|
|
1009
|
-
return {
|
|
1010
|
-
id: key.slice(0, i),
|
|
1011
|
-
payload: key.slice(i + 1)
|
|
1012
|
-
};
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
// eslint-disable-next-line n/prefer-global/process
|
|
1016
|
-
const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
|
|
1017
|
-
|
|
1018
|
-
/** @import { RequestEvent } from '@sveltejs/kit' */
|
|
1019
|
-
/** @import { RequestStore } from 'types' */
|
|
1020
|
-
/** @import { AsyncLocalStorage } from 'node:async_hooks' */
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
/** @type {RequestStore | null} */
|
|
1024
|
-
let sync_store = null;
|
|
1025
|
-
|
|
1026
|
-
/** @type {AsyncLocalStorage<RequestStore | null> | null} */
|
|
1027
|
-
let als;
|
|
1028
|
-
|
|
1029
|
-
import('node:async_hooks')
|
|
1030
|
-
.then((hooks) => (als = new hooks.AsyncLocalStorage()))
|
|
1031
|
-
.catch(() => {
|
|
1032
|
-
// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.
|
|
1033
|
-
// this isn't behind `supports` because it's basically just StackBlitz (i.e.
|
|
1034
|
-
// in-browser usage) that doesn't support it AFAICT
|
|
1035
|
-
});
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* @template T
|
|
1039
|
-
* @param {RequestStore | null} store
|
|
1040
|
-
* @param {() => T} fn
|
|
1041
|
-
*/
|
|
1042
|
-
function with_request_store(store, fn) {
|
|
1043
|
-
try {
|
|
1044
|
-
sync_store = store;
|
|
1045
|
-
return als ? als.run(store, fn) : fn();
|
|
1046
|
-
} finally {
|
|
1047
|
-
// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`
|
|
1048
|
-
// and handle only one request at a time in `src/runtime/server/index.js`.
|
|
1049
|
-
if (!IN_WEBCONTAINER) {
|
|
1050
|
-
sync_store = null;
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
//#region ../../node_modules/@sveltejs/kit/src/utils/array.js
|
|
1056
|
-
/**
|
|
1057
|
-
* Removes nullish values from an array.
|
|
1058
|
-
*
|
|
1059
|
-
* @template T
|
|
1060
|
-
* @param {Array<T>} arr
|
|
1061
|
-
*/
|
|
1062
|
-
function compact(arr) {
|
|
1063
|
-
return arr.filter(
|
|
1064
|
-
/** @returns {val is NonNullable<T>} */
|
|
1065
|
-
(val) => val != null
|
|
1066
|
-
);
|
|
1067
|
-
}
|
|
1068
|
-
//#endregion
|
|
1069
|
-
//#region ../../node_modules/@sveltejs/kit/src/runtime/pathname.js
|
|
1070
|
-
var DATA_SUFFIX = "/__data.json";
|
|
1071
|
-
var HTML_DATA_SUFFIX = ".html__data.json";
|
|
1072
|
-
/** @param {string} pathname */
|
|
1073
|
-
function has_data_suffix(pathname) {
|
|
1074
|
-
return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
|
|
1075
|
-
}
|
|
1076
|
-
/** @param {string} pathname */
|
|
1077
|
-
function add_data_suffix(pathname) {
|
|
1078
|
-
if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
|
|
1079
|
-
return pathname.replace(/\/$/, "") + DATA_SUFFIX;
|
|
1080
|
-
}
|
|
1081
|
-
/** @param {string} pathname */
|
|
1082
|
-
function strip_data_suffix(pathname) {
|
|
1083
|
-
if (pathname.endsWith(HTML_DATA_SUFFIX)) return pathname.slice(0, -16) + ".html";
|
|
1084
|
-
return pathname.slice(0, -12);
|
|
1085
|
-
}
|
|
1086
|
-
var ROUTE_SUFFIX = "/__route.js";
|
|
1087
|
-
/**
|
|
1088
|
-
* @param {string} pathname
|
|
1089
|
-
* @returns {boolean}
|
|
1090
|
-
*/
|
|
1091
|
-
function has_resolution_suffix(pathname) {
|
|
1092
|
-
return pathname.endsWith(ROUTE_SUFFIX);
|
|
1093
|
-
}
|
|
1094
|
-
/**
|
|
1095
|
-
* Convert a regular URL to a route to send to SvelteKit's server-side route resolution endpoint
|
|
1096
|
-
* @param {string} pathname
|
|
1097
|
-
* @returns {string}
|
|
1098
|
-
*/
|
|
1099
|
-
function add_resolution_suffix(pathname) {
|
|
1100
|
-
return pathname.replace(/\/$/, "") + ROUTE_SUFFIX;
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
* @param {string} pathname
|
|
1104
|
-
* @returns {string}
|
|
1105
|
-
*/
|
|
1106
|
-
function strip_resolution_suffix(pathname) {
|
|
1107
|
-
return pathname.slice(0, -11);
|
|
1108
|
-
}
|
|
1109
|
-
//#endregion
|
|
1110
|
-
//#region ../../node_modules/@sveltejs/kit/src/runtime/telemetry/noop.js
|
|
1111
|
-
/**
|
|
1112
|
-
* @type {Span}
|
|
1113
|
-
*/
|
|
1114
|
-
var noop_span = {
|
|
1115
|
-
spanContext() {
|
|
1116
|
-
return noop_span_context;
|
|
1117
|
-
},
|
|
1118
|
-
setAttribute() {
|
|
1119
|
-
return this;
|
|
1120
|
-
},
|
|
1121
|
-
setAttributes() {
|
|
1122
|
-
return this;
|
|
1123
|
-
},
|
|
1124
|
-
addEvent() {
|
|
1125
|
-
return this;
|
|
1126
|
-
},
|
|
1127
|
-
setStatus() {
|
|
1128
|
-
return this;
|
|
1129
|
-
},
|
|
1130
|
-
updateName() {
|
|
1131
|
-
return this;
|
|
1132
|
-
},
|
|
1133
|
-
end() {
|
|
1134
|
-
return this;
|
|
1135
|
-
},
|
|
1136
|
-
isRecording() {
|
|
1137
|
-
return false;
|
|
1138
|
-
},
|
|
1139
|
-
recordException() {
|
|
1140
|
-
return this;
|
|
1141
|
-
},
|
|
1142
|
-
addLink() {
|
|
1143
|
-
return this;
|
|
1144
|
-
},
|
|
1145
|
-
addLinks() {
|
|
1146
|
-
return this;
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
|
-
/**
|
|
1150
|
-
* @type {SpanContext}
|
|
1151
|
-
*/
|
|
1152
|
-
var noop_span_context = {
|
|
1153
|
-
traceId: "",
|
|
1154
|
-
spanId: "",
|
|
1155
|
-
traceFlags: 0
|
|
1156
|
-
};
|
|
1157
|
-
var internal = new URL("sveltekit-internal://");
|
|
1158
|
-
/**
|
|
1159
|
-
* @param {string} base
|
|
1160
|
-
* @param {string} path
|
|
1161
|
-
*/
|
|
1162
|
-
function resolve(base, path) {
|
|
1163
|
-
if (path[0] === "/" && path[1] === "/") return path;
|
|
1164
|
-
let url = new URL(base, internal);
|
|
1165
|
-
url = new URL(path, url);
|
|
1166
|
-
return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
|
|
1167
|
-
}
|
|
1168
|
-
/**
|
|
1169
|
-
* @param {string} path
|
|
1170
|
-
* @param {import('types').TrailingSlash} trailing_slash
|
|
1171
|
-
*/
|
|
1172
|
-
function normalize_path(path, trailing_slash) {
|
|
1173
|
-
if (path === "/" || trailing_slash === "ignore") return path;
|
|
1174
|
-
if (trailing_slash === "never") return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
1175
|
-
else if (trailing_slash === "always" && !path.endsWith("/")) return path + "/";
|
|
1176
|
-
return path;
|
|
1177
|
-
}
|
|
1178
|
-
/**
|
|
1179
|
-
* Decode pathname excluding %25 to prevent further double decoding of params
|
|
1180
|
-
* @param {string} pathname
|
|
1181
|
-
*/
|
|
1182
|
-
function decode_pathname(pathname) {
|
|
1183
|
-
return pathname.split("%25").map(decodeURI).join("%25");
|
|
1184
|
-
}
|
|
1185
|
-
/** @param {Record<string, string>} params */
|
|
1186
|
-
function decode_params(params) {
|
|
1187
|
-
for (const key in params) params[key] = decodeURIComponent(params[key]);
|
|
1188
|
-
return params;
|
|
1189
|
-
}
|
|
1190
|
-
/**
|
|
1191
|
-
* @param {URL} url
|
|
1192
|
-
* @param {() => void} callback
|
|
1193
|
-
* @param {(search_param: string) => void} search_params_callback
|
|
1194
|
-
* @param {boolean} [allow_hash]
|
|
1195
|
-
*/
|
|
1196
|
-
function make_trackable(url, callback, search_params_callback, allow_hash = false) {
|
|
1197
|
-
const tracked = new URL(url);
|
|
1198
|
-
Object.defineProperty(tracked, "searchParams", {
|
|
1199
|
-
value: new Proxy(tracked.searchParams, { get(obj, key) {
|
|
1200
|
-
if (key === "get" || key === "getAll" || key === "has") return (param, ...rest) => {
|
|
1201
|
-
search_params_callback(param);
|
|
1202
|
-
return obj[key](param, ...rest);
|
|
1203
|
-
};
|
|
1204
|
-
callback();
|
|
1205
|
-
const value = Reflect.get(obj, key);
|
|
1206
|
-
return typeof value === "function" ? value.bind(obj) : value;
|
|
1207
|
-
} }),
|
|
1208
|
-
enumerable: true,
|
|
1209
|
-
configurable: true
|
|
1210
|
-
});
|
|
1211
|
-
/**
|
|
1212
|
-
* URL properties that could change during the lifetime of the page,
|
|
1213
|
-
* which excludes things like `origin`
|
|
1214
|
-
*/
|
|
1215
|
-
const tracked_url_properties = [
|
|
1216
|
-
"href",
|
|
1217
|
-
"pathname",
|
|
1218
|
-
"search",
|
|
1219
|
-
"toString",
|
|
1220
|
-
"toJSON"
|
|
1221
|
-
];
|
|
1222
|
-
if (allow_hash) tracked_url_properties.push("hash");
|
|
1223
|
-
for (const property of tracked_url_properties) Object.defineProperty(tracked, property, {
|
|
1224
|
-
get() {
|
|
1225
|
-
callback();
|
|
1226
|
-
return url[property];
|
|
1227
|
-
},
|
|
1228
|
-
enumerable: true,
|
|
1229
|
-
configurable: true
|
|
1230
|
-
});
|
|
1231
|
-
tracked[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
1232
|
-
return inspect(url, opts);
|
|
1233
|
-
};
|
|
1234
|
-
tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
1235
|
-
return inspect(url.searchParams, opts);
|
|
1236
|
-
};
|
|
1237
|
-
if (!allow_hash) disable_hash(tracked);
|
|
1238
|
-
return tracked;
|
|
1239
|
-
}
|
|
1240
|
-
/**
|
|
1241
|
-
* Disallow access to `url.hash` on the server and in `load`
|
|
1242
|
-
* @param {URL} url
|
|
1243
|
-
*/
|
|
1244
|
-
function disable_hash(url) {
|
|
1245
|
-
allow_nodejs_console_log(url);
|
|
1246
|
-
Object.defineProperty(url, "hash", { get() {
|
|
1247
|
-
throw new Error("Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead");
|
|
1248
|
-
} });
|
|
1249
|
-
}
|
|
1250
|
-
/**
|
|
1251
|
-
* Disallow access to `url.search` and `url.searchParams` during prerendering
|
|
1252
|
-
* @param {URL} url
|
|
1253
|
-
*/
|
|
1254
|
-
function disable_search(url) {
|
|
1255
|
-
allow_nodejs_console_log(url);
|
|
1256
|
-
for (const property of ["search", "searchParams"]) Object.defineProperty(url, property, { get() {
|
|
1257
|
-
throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
|
|
1258
|
-
} });
|
|
1259
|
-
}
|
|
1260
|
-
/**
|
|
1261
|
-
* Allow URL to be console logged, bypassing disabled properties.
|
|
1262
|
-
* @param {URL} url
|
|
1263
|
-
*/
|
|
1264
|
-
function allow_nodejs_console_log(url) {
|
|
1265
|
-
url[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
1266
|
-
return inspect(new URL(url), opts);
|
|
1267
|
-
};
|
|
1268
|
-
}
|
|
1269
|
-
//#endregion
|
|
1270
|
-
//#region ../../node_modules/@sveltejs/kit/src/utils/hash.js
|
|
1271
|
-
/**
|
|
1272
|
-
* Hash using djb2
|
|
1273
|
-
* @param {import('types').StrictBody[]} values
|
|
1274
|
-
*/
|
|
1275
|
-
function hash(...values) {
|
|
1276
|
-
let hash = 5381;
|
|
1277
|
-
for (const value of values) if (typeof value === "string") {
|
|
1278
|
-
let i = value.length;
|
|
1279
|
-
while (i) hash = hash * 33 ^ value.charCodeAt(--i);
|
|
1280
|
-
} else if (ArrayBuffer.isView(value)) {
|
|
1281
|
-
const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
1282
|
-
let i = buffer.length;
|
|
1283
|
-
while (i) hash = hash * 33 ^ buffer[--i];
|
|
1284
|
-
} else throw new TypeError("value must be a string or TypedArray");
|
|
1285
|
-
return (hash >>> 0).toString(36);
|
|
1286
|
-
}
|
|
1287
|
-
//#endregion
|
|
1288
|
-
//#region ../../node_modules/@sveltejs/kit/src/utils/routing.js
|
|
1289
|
-
/**
|
|
1290
|
-
* @param {RegExpMatchArray} match
|
|
1291
|
-
* @param {import('types').RouteParam[]} params
|
|
1292
|
-
* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
|
|
1293
|
-
*/
|
|
1294
|
-
function exec(match, params, matchers) {
|
|
1295
|
-
/** @type {Record<string, string>} */
|
|
1296
|
-
const result = {};
|
|
1297
|
-
const values = match.slice(1);
|
|
1298
|
-
const values_needing_match = values.filter((value) => value !== void 0);
|
|
1299
|
-
let buffered = 0;
|
|
1300
|
-
for (let i = 0; i < params.length; i += 1) {
|
|
1301
|
-
const param = params[i];
|
|
1302
|
-
let value = values[i - buffered];
|
|
1303
|
-
if (param.chained && param.rest && buffered) {
|
|
1304
|
-
value = values.slice(i - buffered, i + 1).filter((s) => s).join("/");
|
|
1305
|
-
buffered = 0;
|
|
1306
|
-
}
|
|
1307
|
-
if (value === void 0) if (param.rest) value = "";
|
|
1308
|
-
else continue;
|
|
1309
|
-
if (!param.matcher || matchers[param.matcher](value)) {
|
|
1310
|
-
result[param.name] = value;
|
|
1311
|
-
const next_param = params[i + 1];
|
|
1312
|
-
const next_value = values[i + 1];
|
|
1313
|
-
if (next_param && !next_param.rest && next_param.optional && next_value && param.chained) buffered = 0;
|
|
1314
|
-
if (!next_param && !next_value && Object.keys(result).length === values_needing_match.length) buffered = 0;
|
|
1315
|
-
continue;
|
|
1316
|
-
}
|
|
1317
|
-
if (param.optional && param.chained) {
|
|
1318
|
-
buffered++;
|
|
1319
|
-
continue;
|
|
1320
|
-
}
|
|
1321
|
-
return;
|
|
1322
|
-
}
|
|
1323
|
-
if (buffered) return;
|
|
1324
|
-
return result;
|
|
1325
|
-
}
|
|
1326
|
-
/**
|
|
1327
|
-
* Find the first route that matches the given path
|
|
1328
|
-
* @template {{pattern: RegExp, params: import('types').RouteParam[]}} Route
|
|
1329
|
-
* @param {string} path - The decoded pathname to match
|
|
1330
|
-
* @param {Route[]} routes
|
|
1331
|
-
* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
|
|
1332
|
-
* @returns {{ route: Route, params: Record<string, string> } | null}
|
|
1333
|
-
*/
|
|
1334
|
-
function find_route(path, routes, matchers) {
|
|
1335
|
-
for (const route of routes) {
|
|
1336
|
-
const match = route.pattern.exec(path);
|
|
1337
|
-
if (!match) continue;
|
|
1338
|
-
const matched = exec(match, route.params, matchers);
|
|
1339
|
-
if (matched) return {
|
|
1340
|
-
route,
|
|
1341
|
-
params: decode_params(matched)
|
|
1342
|
-
};
|
|
1343
|
-
}
|
|
1344
|
-
return null;
|
|
1345
|
-
}
|
|
1346
|
-
//#endregion
|
|
1347
|
-
//#region ../../node_modules/@sveltejs/kit/src/utils/exports.js
|
|
1348
|
-
/**
|
|
1349
|
-
* @param {Set<string>} expected
|
|
1350
|
-
*/
|
|
1351
|
-
function validator(expected) {
|
|
1352
|
-
/**
|
|
1353
|
-
* @param {any} module
|
|
1354
|
-
* @param {string} [file]
|
|
1355
|
-
*/
|
|
1356
|
-
function validate(module, file) {
|
|
1357
|
-
if (!module) return;
|
|
1358
|
-
for (const key in module) {
|
|
1359
|
-
if (key[0] === "_" || expected.has(key)) continue;
|
|
1360
|
-
const values = [...expected.values()];
|
|
1361
|
-
const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
|
|
1362
|
-
throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
return validate;
|
|
1366
|
-
}
|
|
1367
|
-
/**
|
|
1368
|
-
* @param {string} key
|
|
1369
|
-
* @param {string} ext
|
|
1370
|
-
* @returns {string | void}
|
|
1371
|
-
*/
|
|
1372
|
-
function hint_for_supported_files(key, ext = ".js") {
|
|
1373
|
-
const supported_files = [];
|
|
1374
|
-
if (valid_layout_exports.has(key)) supported_files.push(`+layout${ext}`);
|
|
1375
|
-
if (valid_page_exports.has(key)) supported_files.push(`+page${ext}`);
|
|
1376
|
-
if (valid_layout_server_exports.has(key)) supported_files.push(`+layout.server${ext}`);
|
|
1377
|
-
if (valid_page_server_exports.has(key)) supported_files.push(`+page.server${ext}`);
|
|
1378
|
-
if (valid_server_exports.has(key)) supported_files.push(`+server${ext}`);
|
|
1379
|
-
if (supported_files.length > 0) return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
|
|
1380
|
-
}
|
|
1381
|
-
var valid_layout_exports = new Set([
|
|
1382
|
-
"load",
|
|
1383
|
-
"prerender",
|
|
1384
|
-
"csr",
|
|
1385
|
-
"ssr",
|
|
1386
|
-
"trailingSlash",
|
|
1387
|
-
"config"
|
|
1388
|
-
]);
|
|
1389
|
-
var valid_page_exports = new Set([...valid_layout_exports, "entries"]);
|
|
1390
|
-
var valid_layout_server_exports = new Set([...valid_layout_exports]);
|
|
1391
|
-
var valid_page_server_exports = new Set([
|
|
1392
|
-
...valid_layout_server_exports,
|
|
1393
|
-
"actions",
|
|
1394
|
-
"entries"
|
|
1395
|
-
]);
|
|
1396
|
-
var valid_server_exports = new Set([
|
|
1397
|
-
"GET",
|
|
1398
|
-
"POST",
|
|
1399
|
-
"PATCH",
|
|
1400
|
-
"PUT",
|
|
1401
|
-
"DELETE",
|
|
1402
|
-
"OPTIONS",
|
|
1403
|
-
"HEAD",
|
|
1404
|
-
"fallback",
|
|
1405
|
-
"prerender",
|
|
1406
|
-
"trailingSlash",
|
|
1407
|
-
"config",
|
|
1408
|
-
"entries"
|
|
1409
|
-
]);
|
|
1410
|
-
var validate_layout_exports = validator(valid_layout_exports);
|
|
1411
|
-
var validate_page_exports = validator(valid_page_exports);
|
|
1412
|
-
var validate_layout_server_exports = validator(valid_layout_server_exports);
|
|
1413
|
-
var validate_page_server_exports = validator(valid_page_server_exports);
|
|
1414
|
-
|
|
1415
|
-
//#region \0virtual:__sveltekit/server
|
|
1416
|
-
var read_implementation = null;
|
|
1417
|
-
function set_read_implementation(fn) {
|
|
1418
|
-
read_implementation = fn;
|
|
1419
|
-
}
|
|
1420
|
-
//#endregion
|
|
1421
|
-
//#region ../../node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1422
|
-
/**
|
|
1423
|
-
* Used on elements, as a map of event type -> event handler,
|
|
1424
|
-
* and on events themselves to track which element handled an event
|
|
1425
|
-
*/
|
|
1426
|
-
var event_symbol = Symbol("events");
|
|
1427
|
-
/** @type {Set<string>} */
|
|
1428
|
-
var all_registered_events = /* @__PURE__ */ new Set();
|
|
1429
|
-
/** @type {Set<(events: Array<string>) => void>} */
|
|
1430
|
-
var root_event_handles = /* @__PURE__ */ new Set();
|
|
1431
|
-
var last_propagated_event = null;
|
|
1432
|
-
/**
|
|
1433
|
-
* @this {EventTarget}
|
|
1434
|
-
* @param {Event} event
|
|
1435
|
-
* @returns {void}
|
|
1436
|
-
*/
|
|
1437
|
-
function handle_event_propagation(event) {
|
|
1438
|
-
var handler_element = this;
|
|
1439
|
-
var owner_document = handler_element.ownerDocument;
|
|
1440
|
-
var event_name = event.type;
|
|
1441
|
-
var path = event.composedPath?.() || [];
|
|
1442
|
-
var current_target = path[0] || event.target;
|
|
1443
|
-
last_propagated_event = event;
|
|
1444
|
-
var path_idx = 0;
|
|
1445
|
-
var handled_at = last_propagated_event === event && event[event_symbol];
|
|
1446
|
-
if (handled_at) {
|
|
1447
|
-
var at_idx = path.indexOf(handled_at);
|
|
1448
|
-
if (at_idx !== -1 && (handler_element === document || handler_element === window)) {
|
|
1449
|
-
event[event_symbol] = handler_element;
|
|
1450
|
-
return;
|
|
1451
|
-
}
|
|
1452
|
-
var handler_idx = path.indexOf(handler_element);
|
|
1453
|
-
if (handler_idx === -1) return;
|
|
1454
|
-
if (at_idx <= handler_idx) path_idx = at_idx;
|
|
1455
|
-
}
|
|
1456
|
-
current_target = path[path_idx] || event.target;
|
|
1457
|
-
if (current_target === handler_element) return;
|
|
1458
|
-
define_property(event, "currentTarget", {
|
|
1459
|
-
configurable: true,
|
|
1460
|
-
get() {
|
|
1461
|
-
return current_target || owner_document;
|
|
1462
|
-
}
|
|
1463
|
-
});
|
|
1464
|
-
var previous_reaction = active_reaction;
|
|
1465
|
-
var previous_effect = active_effect;
|
|
1466
|
-
set_active_reaction(null);
|
|
1467
|
-
set_active_effect(null);
|
|
1468
|
-
try {
|
|
1469
|
-
/**
|
|
1470
|
-
* @type {unknown}
|
|
1471
|
-
*/
|
|
1472
|
-
var throw_error;
|
|
1473
|
-
/**
|
|
1474
|
-
* @type {unknown[]}
|
|
1475
|
-
*/
|
|
1476
|
-
var other_errors = [];
|
|
1477
|
-
while (current_target !== null) {
|
|
1478
|
-
/** @type {null | Element} */
|
|
1479
|
-
var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
|
|
1480
|
-
try {
|
|
1481
|
-
var delegated = current_target[event_symbol]?.[event_name];
|
|
1482
|
-
if (delegated != null && (!current_target.disabled || event.target === current_target)) delegated.call(current_target, event);
|
|
1483
|
-
} catch (error) {
|
|
1484
|
-
if (throw_error) other_errors.push(error);
|
|
1485
|
-
else throw_error = error;
|
|
1486
|
-
}
|
|
1487
|
-
if (event.cancelBubble || parent_element === handler_element || parent_element === null) break;
|
|
1488
|
-
current_target = parent_element;
|
|
1489
|
-
}
|
|
1490
|
-
if (throw_error) {
|
|
1491
|
-
for (let error of other_errors) queueMicrotask(() => {
|
|
1492
|
-
throw error;
|
|
1493
|
-
});
|
|
1494
|
-
throw throw_error;
|
|
1495
|
-
}
|
|
1496
|
-
} finally {
|
|
1497
|
-
event[event_symbol] = handler_element;
|
|
1498
|
-
delete event.currentTarget;
|
|
1499
|
-
set_active_reaction(previous_reaction);
|
|
1500
|
-
set_active_effect(previous_effect);
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
//#endregion
|
|
1504
|
-
//#region ../../node_modules/svelte/src/internal/client/dom/template.js
|
|
1505
|
-
/**
|
|
1506
|
-
* @param {TemplateNode} start
|
|
1507
|
-
* @param {TemplateNode | null} end
|
|
1508
|
-
*/
|
|
1509
|
-
function assign_nodes(start, end) {
|
|
1510
|
-
var effect = active_effect;
|
|
1511
|
-
if (effect.nodes === null) effect.nodes = {
|
|
1512
|
-
start,
|
|
1513
|
-
end,
|
|
1514
|
-
a: null,
|
|
1515
|
-
t: null
|
|
1516
|
-
};
|
|
1517
|
-
}
|
|
1518
|
-
/**
|
|
1519
|
-
* Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
|
|
1520
|
-
* Transitions will play during the initial render unless the `intro` option is set to `false`.
|
|
1521
|
-
*
|
|
1522
|
-
* @template {Record<string, any>} Props
|
|
1523
|
-
* @template {Record<string, any>} Exports
|
|
1524
|
-
* @param {ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>} component
|
|
1525
|
-
* @param {MountOptions<Props>} options
|
|
1526
|
-
* @returns {Exports}
|
|
1527
|
-
*/
|
|
1528
|
-
function mount(component, options) {
|
|
1529
|
-
return _mount(component, options);
|
|
1530
|
-
}
|
|
1531
|
-
/**
|
|
1532
|
-
* Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
|
|
1533
|
-
*
|
|
1534
|
-
* @template {Record<string, any>} Props
|
|
1535
|
-
* @template {Record<string, any>} Exports
|
|
1536
|
-
* @param {ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>} component
|
|
1537
|
-
* @param {{} extends Props ? {
|
|
1538
|
-
* target: Document | Element | ShadowRoot;
|
|
1539
|
-
* props?: Props;
|
|
1540
|
-
* events?: Record<string, (e: any) => any>;
|
|
1541
|
-
* context?: Map<any, any>;
|
|
1542
|
-
* intro?: boolean;
|
|
1543
|
-
* recover?: boolean;
|
|
1544
|
-
* transformError?: (error: unknown) => unknown;
|
|
1545
|
-
* } : {
|
|
1546
|
-
* target: Document | Element | ShadowRoot;
|
|
1547
|
-
* props: Props;
|
|
1548
|
-
* events?: Record<string, (e: any) => any>;
|
|
1549
|
-
* context?: Map<any, any>;
|
|
1550
|
-
* intro?: boolean;
|
|
1551
|
-
* recover?: boolean;
|
|
1552
|
-
* transformError?: (error: unknown) => unknown;
|
|
1553
|
-
* }} options
|
|
1554
|
-
* @returns {Exports}
|
|
1555
|
-
*/
|
|
1556
|
-
function hydrate(component, options) {
|
|
1557
|
-
init_operations();
|
|
1558
|
-
options.intro = options.intro ?? false;
|
|
1559
|
-
const target = options.target;
|
|
1560
|
-
const was_hydrating = hydrating;
|
|
1561
|
-
const previous_hydrate_node = hydrate_node;
|
|
1562
|
-
try {
|
|
1563
|
-
var anchor = /* @__PURE__ */ get_first_child(target);
|
|
1564
|
-
while (anchor && (anchor.nodeType !== 8 || anchor.data !== "[")) anchor = /* @__PURE__ */ get_next_sibling(anchor);
|
|
1565
|
-
if (!anchor) throw HYDRATION_ERROR;
|
|
1566
|
-
set_hydrating(true);
|
|
1567
|
-
set_hydrate_node(anchor);
|
|
1568
|
-
const instance = _mount(component, {
|
|
1569
|
-
...options,
|
|
1570
|
-
anchor
|
|
1571
|
-
});
|
|
1572
|
-
set_hydrating(false);
|
|
1573
|
-
return instance;
|
|
1574
|
-
} catch (error) {
|
|
1575
|
-
if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) throw error;
|
|
1576
|
-
if (error !== HYDRATION_ERROR) console.warn("Failed to hydrate: ", error);
|
|
1577
|
-
if (options.recover === false) hydration_failed();
|
|
1578
|
-
init_operations();
|
|
1579
|
-
clear_text_content(target);
|
|
1580
|
-
set_hydrating(false);
|
|
1581
|
-
return mount(component, options);
|
|
1582
|
-
} finally {
|
|
1583
|
-
set_hydrating(was_hydrating);
|
|
1584
|
-
set_hydrate_node(previous_hydrate_node);
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
/** @type {Map<EventTarget, Map<string, number>>} */
|
|
1588
|
-
var listeners = /* @__PURE__ */ new Map();
|
|
1589
|
-
/**
|
|
1590
|
-
* @template {Record<string, any>} Exports
|
|
1591
|
-
* @param {ComponentType<SvelteComponent<any>> | Component<any>} Component
|
|
1592
|
-
* @param {MountOptions} options
|
|
1593
|
-
* @returns {Exports}
|
|
1594
|
-
*/
|
|
1595
|
-
function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
|
|
1596
|
-
init_operations();
|
|
1597
|
-
/** @type {Exports} */
|
|
1598
|
-
var component = void 0;
|
|
1599
|
-
var unmount = component_root(() => {
|
|
1600
|
-
var anchor_node = anchor ?? target.appendChild(create_text());
|
|
1601
|
-
boundary(anchor_node, { pending: () => {} }, (anchor_node) => {
|
|
1602
|
-
push({});
|
|
1603
|
-
var ctx = component_context;
|
|
1604
|
-
if (context) ctx.c = context;
|
|
1605
|
-
if (events)
|
|
1606
|
-
/** @type {any} */ props.$$events = events;
|
|
1607
|
-
if (hydrating) assign_nodes(anchor_node, null);
|
|
1608
|
-
component = Component(anchor_node, props) || {};
|
|
1609
|
-
if (hydrating) {
|
|
1610
|
-
/** @type {Effect & { nodes: EffectNodes }} */ active_effect.nodes.end = hydrate_node;
|
|
1611
|
-
if (hydrate_node === null || hydrate_node.nodeType !== 8 || hydrate_node.data !== "]") {
|
|
1612
|
-
hydration_mismatch();
|
|
1613
|
-
throw HYDRATION_ERROR;
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
pop();
|
|
1617
|
-
}, transformError);
|
|
1618
|
-
/** @type {Set<string>} */
|
|
1619
|
-
var registered_events = /* @__PURE__ */ new Set();
|
|
1620
|
-
/** @param {Array<string>} events */
|
|
1621
|
-
var event_handle = (events) => {
|
|
1622
|
-
for (var i = 0; i < events.length; i++) {
|
|
1623
|
-
var event_name = events[i];
|
|
1624
|
-
if (registered_events.has(event_name)) continue;
|
|
1625
|
-
registered_events.add(event_name);
|
|
1626
|
-
var passive = is_passive_event(event_name);
|
|
1627
|
-
for (const node of [target, document]) {
|
|
1628
|
-
var counts = listeners.get(node);
|
|
1629
|
-
if (counts === void 0) {
|
|
1630
|
-
counts = /* @__PURE__ */ new Map();
|
|
1631
|
-
listeners.set(node, counts);
|
|
1632
|
-
}
|
|
1633
|
-
var count = counts.get(event_name);
|
|
1634
|
-
if (count === void 0) {
|
|
1635
|
-
node.addEventListener(event_name, handle_event_propagation, { passive });
|
|
1636
|
-
counts.set(event_name, 1);
|
|
1637
|
-
} else counts.set(event_name, count + 1);
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
};
|
|
1641
|
-
event_handle(array_from(all_registered_events));
|
|
1642
|
-
root_event_handles.add(event_handle);
|
|
1643
|
-
return () => {
|
|
1644
|
-
for (var event_name of registered_events) for (const node of [target, document]) {
|
|
1645
|
-
var counts = listeners.get(node);
|
|
1646
|
-
var count = counts.get(event_name);
|
|
1647
|
-
if (--count == 0) {
|
|
1648
|
-
node.removeEventListener(event_name, handle_event_propagation);
|
|
1649
|
-
counts.delete(event_name);
|
|
1650
|
-
if (counts.size === 0) listeners.delete(node);
|
|
1651
|
-
} else counts.set(event_name, count);
|
|
1652
|
-
}
|
|
1653
|
-
root_event_handles.delete(event_handle);
|
|
1654
|
-
if (anchor_node !== anchor) anchor_node.parentNode?.removeChild(anchor_node);
|
|
1655
|
-
};
|
|
1656
|
-
});
|
|
1657
|
-
mounted_components.set(component, unmount);
|
|
1658
|
-
return component;
|
|
1659
|
-
}
|
|
1660
|
-
/**
|
|
1661
|
-
* References of the components that were mounted or hydrated.
|
|
1662
|
-
* Uses a `WeakMap` to avoid memory leaks.
|
|
1663
|
-
*/
|
|
1664
|
-
var mounted_components = /* @__PURE__ */ new WeakMap();
|
|
1665
|
-
/**
|
|
1666
|
-
* Unmounts a component that was previously mounted using `mount` or `hydrate`.
|
|
1667
|
-
*
|
|
1668
|
-
* Since 5.13.0, if `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM.
|
|
1669
|
-
*
|
|
1670
|
-
* Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise (prior to 5.13.0, returns `void`).
|
|
1671
|
-
*
|
|
1672
|
-
* ```js
|
|
1673
|
-
* import { mount, unmount } from 'svelte';
|
|
1674
|
-
* import App from './App.svelte';
|
|
1675
|
-
*
|
|
1676
|
-
* const app = mount(App, { target: document.body });
|
|
1677
|
-
*
|
|
1678
|
-
* // later...
|
|
1679
|
-
* unmount(app, { outro: true });
|
|
1680
|
-
* ```
|
|
1681
|
-
* @param {Record<string, any>} component
|
|
1682
|
-
* @param {{ outro?: boolean }} [options]
|
|
1683
|
-
* @returns {Promise<void>}
|
|
1684
|
-
*/
|
|
1685
|
-
function unmount(component, options) {
|
|
1686
|
-
const fn = mounted_components.get(component);
|
|
1687
|
-
if (fn) {
|
|
1688
|
-
mounted_components.delete(component);
|
|
1689
|
-
return fn(options);
|
|
1690
|
-
}
|
|
1691
|
-
return Promise.resolve();
|
|
1692
|
-
}
|
|
1693
|
-
//#endregion
|
|
1694
|
-
//#region ../../node_modules/svelte/src/legacy/legacy-client.js
|
|
1695
|
-
/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
|
|
1696
|
-
/**
|
|
1697
|
-
* Takes the component function and returns a Svelte 4 compatible component constructor.
|
|
1698
|
-
*
|
|
1699
|
-
* @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
|
|
1700
|
-
*
|
|
1701
|
-
* @template {Record<string, any>} Props
|
|
1702
|
-
* @template {Record<string, any>} Exports
|
|
1703
|
-
* @template {Record<string, any>} Events
|
|
1704
|
-
* @template {Record<string, any>} Slots
|
|
1705
|
-
*
|
|
1706
|
-
* @param {SvelteComponent<Props, Events, Slots> | Component<Props>} component
|
|
1707
|
-
* @returns {ComponentType<SvelteComponent<Props, Events, Slots> & Exports>}
|
|
1708
|
-
*/
|
|
1709
|
-
function asClassComponent$1(component) {
|
|
1710
|
-
return class extends Svelte4Component {
|
|
1711
|
-
/** @param {any} options */
|
|
1712
|
-
constructor(options) {
|
|
1713
|
-
super({
|
|
1714
|
-
component,
|
|
1715
|
-
...options
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
|
-
}
|
|
1720
|
-
/**
|
|
1721
|
-
* Support using the component as both a class and function during the transition period
|
|
1722
|
-
* @typedef {{new (o: ComponentConstructorOptions): SvelteComponent;(...args: Parameters<Component<Record<string, any>>>): ReturnType<Component<Record<string, any>, Record<string, any>>>;}} LegacyComponentType
|
|
1723
|
-
*/
|
|
1724
|
-
var Svelte4Component = class {
|
|
1725
|
-
/** @type {any} */
|
|
1726
|
-
#events;
|
|
1727
|
-
/** @type {Record<string, any>} */
|
|
1728
|
-
#instance;
|
|
1729
|
-
/**
|
|
1730
|
-
* @param {ComponentConstructorOptions & {
|
|
1731
|
-
* component: any;
|
|
1732
|
-
* }} options
|
|
1733
|
-
*/
|
|
1734
|
-
constructor(options) {
|
|
1735
|
-
var sources = /* @__PURE__ */ new Map();
|
|
1736
|
-
/**
|
|
1737
|
-
* @param {string | symbol} key
|
|
1738
|
-
* @param {unknown} value
|
|
1739
|
-
*/
|
|
1740
|
-
var add_source = (key, value) => {
|
|
1741
|
-
var s = /* @__PURE__ */ mutable_source(value, false, false);
|
|
1742
|
-
sources.set(key, s);
|
|
1743
|
-
return s;
|
|
1744
|
-
};
|
|
1745
|
-
const props = new Proxy({
|
|
1746
|
-
...options.props || {},
|
|
1747
|
-
$$events: {}
|
|
1748
|
-
}, {
|
|
1749
|
-
get(target, prop) {
|
|
1750
|
-
return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
1751
|
-
},
|
|
1752
|
-
has(target, prop) {
|
|
1753
|
-
if (prop === LEGACY_PROPS) return true;
|
|
1754
|
-
get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
1755
|
-
return Reflect.has(target, prop);
|
|
1756
|
-
},
|
|
1757
|
-
set(target, prop, value) {
|
|
1758
|
-
set(sources.get(prop) ?? add_source(prop, value), value);
|
|
1759
|
-
return Reflect.set(target, prop, value);
|
|
1760
|
-
}
|
|
1761
|
-
});
|
|
1762
|
-
this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
|
|
1763
|
-
target: options.target,
|
|
1764
|
-
anchor: options.anchor,
|
|
1765
|
-
props,
|
|
1766
|
-
context: options.context,
|
|
1767
|
-
intro: options.intro ?? false,
|
|
1768
|
-
recover: options.recover,
|
|
1769
|
-
transformError: options.transformError
|
|
1770
|
-
});
|
|
1771
|
-
if ((!options?.props?.$$host || options.sync === false)) flushSync();
|
|
1772
|
-
this.#events = props.$$events;
|
|
1773
|
-
for (const key of Object.keys(this.#instance)) {
|
|
1774
|
-
if (key === "$set" || key === "$destroy" || key === "$on") continue;
|
|
1775
|
-
define_property(this, key, {
|
|
1776
|
-
get() {
|
|
1777
|
-
return this.#instance[key];
|
|
1778
|
-
},
|
|
1779
|
-
/** @param {any} value */
|
|
1780
|
-
set(value) {
|
|
1781
|
-
this.#instance[key] = value;
|
|
1782
|
-
},
|
|
1783
|
-
enumerable: true
|
|
1784
|
-
});
|
|
1785
|
-
}
|
|
1786
|
-
this.#instance.$set = (next) => {
|
|
1787
|
-
Object.assign(props, next);
|
|
1788
|
-
};
|
|
1789
|
-
this.#instance.$destroy = () => {
|
|
1790
|
-
unmount(this.#instance);
|
|
1791
|
-
};
|
|
1792
|
-
}
|
|
1793
|
-
/** @param {Record<string, any>} props */
|
|
1794
|
-
$set(props) {
|
|
1795
|
-
this.#instance.$set(props);
|
|
1796
|
-
}
|
|
1797
|
-
/**
|
|
1798
|
-
* @param {string} event
|
|
1799
|
-
* @param {(...args: any[]) => any} callback
|
|
1800
|
-
* @returns {any}
|
|
1801
|
-
*/
|
|
1802
|
-
$on(event, callback) {
|
|
1803
|
-
this.#events[event] = this.#events[event] || [];
|
|
1804
|
-
/** @param {any[]} args */
|
|
1805
|
-
const cb = (...args) => callback.call(this, ...args);
|
|
1806
|
-
this.#events[event].push(cb);
|
|
1807
|
-
return () => {
|
|
1808
|
-
this.#events[event] = this.#events[event].filter(
|
|
1809
|
-
/** @param {any} fn */
|
|
1810
|
-
(fn) => fn !== cb
|
|
1811
|
-
);
|
|
1812
|
-
};
|
|
1813
|
-
}
|
|
1814
|
-
$destroy() {
|
|
1815
|
-
this.#instance.$destroy();
|
|
1816
|
-
}
|
|
1817
|
-
};
|
|
1818
|
-
//#endregion
|
|
1819
|
-
//#region ../../node_modules/svelte/src/legacy/legacy-server.js
|
|
1820
|
-
/** @import { SvelteComponent } from '../index.js' */
|
|
1821
|
-
/** @import { Csp } from '#server' */
|
|
1822
|
-
/** @typedef {{ head: string, html: string, css: { code: string, map: null }; hashes?: { script: `sha256-${string}`[] } }} LegacyRenderResult */
|
|
1823
|
-
/**
|
|
1824
|
-
* Takes a Svelte 5 component and returns a Svelte 4 compatible component constructor.
|
|
1825
|
-
*
|
|
1826
|
-
* @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
|
|
1827
|
-
*
|
|
1828
|
-
* @template {Record<string, any>} Props
|
|
1829
|
-
* @template {Record<string, any>} Exports
|
|
1830
|
-
* @template {Record<string, any>} Events
|
|
1831
|
-
* @template {Record<string, any>} Slots
|
|
1832
|
-
*
|
|
1833
|
-
* @param {SvelteComponent<Props, Events, Slots>} component
|
|
1834
|
-
* @returns {typeof SvelteComponent<Props, Events, Slots> & Exports}
|
|
1835
|
-
*/
|
|
1836
|
-
function asClassComponent(component) {
|
|
1837
|
-
const component_constructor = asClassComponent$1(component);
|
|
1838
|
-
/** @type {(props?: {}, opts?: { $$slots?: {}; context?: Map<any, any>; csp?: Csp; transformError?: (error: unknown) => unknown }) => LegacyRenderResult & PromiseLike<LegacyRenderResult> } */
|
|
1839
|
-
const _render = (props, { context, csp, transformError } = {}) => {
|
|
1840
|
-
const result = render(component, {
|
|
1841
|
-
props,
|
|
1842
|
-
context,
|
|
1843
|
-
csp,
|
|
1844
|
-
transformError
|
|
1845
|
-
});
|
|
1846
|
-
const munged = Object.defineProperties({}, {
|
|
1847
|
-
css: { value: {
|
|
1848
|
-
code: "",
|
|
1849
|
-
map: null
|
|
1850
|
-
} },
|
|
1851
|
-
head: { get: () => result.head },
|
|
1852
|
-
html: { get: () => result.body },
|
|
1853
|
-
then: {
|
|
1854
|
-
/**
|
|
1855
|
-
* this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
|
|
1856
|
-
*
|
|
1857
|
-
* @template TResult1
|
|
1858
|
-
* @template [TResult2=never]
|
|
1859
|
-
* @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
|
|
1860
|
-
* @param { (reason: unknown) => TResult2 } onrejected
|
|
1861
|
-
*/
|
|
1862
|
-
value: (onfulfilled, onrejected) => {
|
|
1863
|
-
{
|
|
1864
|
-
const user_result = onfulfilled({
|
|
1865
|
-
css: munged.css,
|
|
1866
|
-
head: munged.head,
|
|
1867
|
-
html: munged.html
|
|
1868
|
-
});
|
|
1869
|
-
return Promise.resolve(user_result);
|
|
1870
|
-
}
|
|
1871
|
-
} }
|
|
1872
|
-
});
|
|
1873
|
-
return munged;
|
|
1874
|
-
};
|
|
1875
|
-
component_constructor.render = _render;
|
|
1876
|
-
return component_constructor;
|
|
1877
|
-
}
|
|
1878
|
-
//#endregion
|
|
1879
|
-
//#region .svelte-kit/generated/root.svelte
|
|
1880
|
-
function Root($$renderer, $$props) {
|
|
1881
|
-
$$renderer.component(($$renderer) => {
|
|
1882
|
-
let { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $$props;
|
|
1883
|
-
setContext("__svelte__", stores);
|
|
1884
|
-
stores.page.set(page);
|
|
1885
|
-
const Pyramid_1 = derived(() => constructors[1]);
|
|
1886
|
-
if (constructors[1]) {
|
|
1887
|
-
$$renderer.push("<!--[0-->");
|
|
1888
|
-
const Pyramid_0 = constructors[0];
|
|
1889
|
-
if (Pyramid_0) {
|
|
1890
|
-
$$renderer.push("<!--[-->");
|
|
1891
|
-
Pyramid_0($$renderer, {
|
|
1892
|
-
data: data_0,
|
|
1893
|
-
form,
|
|
1894
|
-
params: page.params,
|
|
1895
|
-
children: ($$renderer) => {
|
|
1896
|
-
if (Pyramid_1()) {
|
|
1897
|
-
$$renderer.push("<!--[-->");
|
|
1898
|
-
Pyramid_1()($$renderer, {
|
|
1899
|
-
data: data_1,
|
|
1900
|
-
form,
|
|
1901
|
-
params: page.params
|
|
1902
|
-
});
|
|
1903
|
-
$$renderer.push("<!--]-->");
|
|
1904
|
-
} else {
|
|
1905
|
-
$$renderer.push("<!--[!-->");
|
|
1906
|
-
$$renderer.push("<!--]-->");
|
|
1907
|
-
}
|
|
1908
|
-
},
|
|
1909
|
-
$$slots: { default: true }
|
|
1910
|
-
});
|
|
1911
|
-
$$renderer.push("<!--]-->");
|
|
1912
|
-
} else {
|
|
1913
|
-
$$renderer.push("<!--[!-->");
|
|
1914
|
-
$$renderer.push("<!--]-->");
|
|
1915
|
-
}
|
|
1916
|
-
} else {
|
|
1917
|
-
$$renderer.push("<!--[-1-->");
|
|
1918
|
-
const Pyramid_0 = constructors[0];
|
|
1919
|
-
if (Pyramid_0) {
|
|
1920
|
-
$$renderer.push("<!--[-->");
|
|
1921
|
-
Pyramid_0($$renderer, {
|
|
1922
|
-
data: data_0,
|
|
1923
|
-
form,
|
|
1924
|
-
params: page.params
|
|
1925
|
-
});
|
|
1926
|
-
$$renderer.push("<!--]-->");
|
|
1927
|
-
} else {
|
|
1928
|
-
$$renderer.push("<!--[!-->");
|
|
1929
|
-
$$renderer.push("<!--]-->");
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
$$renderer.push(`<!--]--> `);
|
|
1933
|
-
$$renderer.push("<!--[-1-->");
|
|
1934
|
-
$$renderer.push(`<!--]-->`);
|
|
1935
|
-
});
|
|
1936
|
-
}
|
|
1937
|
-
//#endregion
|
|
1938
|
-
//#region .svelte-kit/generated/server/internal.js
|
|
1939
|
-
var options = {
|
|
1940
|
-
app_template_contains_nonce: false,
|
|
1941
|
-
async: false,
|
|
1942
|
-
csp: {
|
|
1943
|
-
"mode": "auto",
|
|
1944
|
-
"directives": {
|
|
1945
|
-
"default-src": ["self"],
|
|
1946
|
-
"connect-src": ["self"],
|
|
1947
|
-
"font-src": ["self", "data:"],
|
|
1948
|
-
"img-src": ["self", "data:"],
|
|
1949
|
-
"script-src": ["self"],
|
|
1950
|
-
"style-src": ["self", "unsafe-inline"],
|
|
1951
|
-
"upgrade-insecure-requests": false,
|
|
1952
|
-
"block-all-mixed-content": false
|
|
1953
|
-
},
|
|
1954
|
-
"reportOnly": {
|
|
1955
|
-
"upgrade-insecure-requests": false,
|
|
1956
|
-
"block-all-mixed-content": false
|
|
1957
|
-
}
|
|
1958
|
-
},
|
|
1959
|
-
csrf_check_origin: true,
|
|
1960
|
-
csrf_trusted_origins: [],
|
|
1961
|
-
embedded: false,
|
|
1962
|
-
env_public_prefix: "PUBLIC_",
|
|
1963
|
-
env_private_prefix: "",
|
|
1964
|
-
hash_routing: false,
|
|
1965
|
-
hooks: null,
|
|
1966
|
-
preload_strategy: "modulepreload",
|
|
1967
|
-
root: asClassComponent(Root),
|
|
1968
|
-
service_worker: false,
|
|
1969
|
-
service_worker_options: void 0,
|
|
1970
|
-
server_error_boundaries: false,
|
|
1971
|
-
templates: {
|
|
1972
|
-
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"dark\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <meta name=\"referrer\" content=\"no-referrer\" />\n <meta name=\"color-scheme\" content=\"dark\" />\n <link rel=\"icon\" href=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%234b8bf5'/%3E%3Crect x='9' y='9' width='14' height='14' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E\" />\n <title>agent-profile</title>\n " + head + "\n </head>\n <body>\n <div id=\"app\">" + body + "</div>\n </body>\n</html>\n",
|
|
1973
|
-
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <title>" + message + "</title>\n\n <style>\n body {\n --bg: white;\n --fg: #222;\n --divider: #ccc;\n background: var(--bg);\n color: var(--fg);\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Open Sans',\n 'Helvetica Neue',\n sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n margin: 0;\n }\n\n .error {\n display: flex;\n align-items: center;\n max-width: 32rem;\n margin: 0 1rem;\n }\n\n .status {\n font-weight: 200;\n font-size: 3rem;\n line-height: 1;\n position: relative;\n top: -0.05rem;\n }\n\n .message {\n border-left: 1px solid var(--divider);\n padding: 0 0 0 1rem;\n margin: 0 0 0 1rem;\n min-height: 2.5rem;\n display: flex;\n align-items: center;\n }\n\n .message h1 {\n font-weight: 400;\n font-size: 1em;\n margin: 0;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n --bg: #222;\n --fg: #ddd;\n --divider: #666;\n }\n }\n </style>\n </head>\n <body>\n <div class=\"error\">\n <span class=\"status\">" + status + "</span>\n <div class=\"message\">\n <h1>" + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
|
1974
|
-
},
|
|
1975
|
-
version_hash: "1bgy5xy"
|
|
1976
|
-
};
|
|
1977
|
-
async function get_hooks() {
|
|
1978
|
-
let handle;
|
|
1979
|
-
let handleFetch;
|
|
1980
|
-
let handleError;
|
|
1981
|
-
let handleValidationError;
|
|
1982
|
-
let init;
|
|
1983
|
-
({handle, handleFetch, handleError, handleValidationError, init} = await import('./hooks.server-Dva4z7fv.js'));
|
|
1984
|
-
let reroute;
|
|
1985
|
-
let transport;
|
|
1986
|
-
return {
|
|
1987
|
-
handle,
|
|
1988
|
-
handleFetch,
|
|
1989
|
-
handleError,
|
|
1990
|
-
handleValidationError,
|
|
1991
|
-
init,
|
|
1992
|
-
reroute,
|
|
1993
|
-
transport
|
|
1994
|
-
};
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
export { validate_page_exports as A, noop_span as B, assets as C, app_dir as D, create_remote_key as E, hash as F, text_encoder as G, compact as H, INVALIDATED_PARAM as I, once as J, normalize_error as K, resolve as L, parse_remote_arg as M, stringify as N, make_trackable as O, stringify$1 as P, read_implementation as Q, split_remote_key as R, get_relative_path as S, TRAILING_SLASH_PARAM as T, base64_encode as U, override as V, reset as W, set_read_implementation as X, get_message as a, set_public_env as b, coalesce_to_error as c, get_hooks as d, has_data_suffix as e, base as f, get_status as g, has_resolution_suffix as h, index_server_exports as i, strip_resolution_suffix as j, strip_data_suffix as k, decode_pathname as l, add_data_suffix as m, noop as n, options as o, parse as p, add_resolution_suffix as q, find_route as r, set_private_env as s, normalize_path as t, disable_search as u, public_env as v, with_request_store as w, validate_layout_server_exports as x, validate_layout_exports as y, validate_page_server_exports as z };
|
|
1998
|
-
//# sourceMappingURL=internal-sR_8mnoa.js.map
|