mongoku 2.8.1 → 2.9.0-compat
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.DTh4C4pw.css +1 -0
- package/build/client/_app/immutable/assets/0.DTh4C4pw.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DTh4C4pw.css.gz +0 -0
- package/build/client/_app/immutable/chunks/AXErlVVG.js +1 -0
- package/build/client/_app/immutable/chunks/AXErlVVG.js.br +0 -0
- package/build/client/_app/immutable/chunks/AXErlVVG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-TH2U-E.js +1 -0
- package/build/client/_app/immutable/chunks/B-TH2U-E.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-TH2U-E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BaCQ7DA8.js +66 -0
- package/build/client/_app/immutable/chunks/BaCQ7DA8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BaCQ7DA8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dbu5gl04.js → BnRtSpxa.js} +1 -1
- package/build/client/_app/immutable/chunks/BnRtSpxa.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnRtSpxa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DZ3j8h_f.js → BwoNhxjg.js} +1 -1
- package/build/client/_app/immutable/chunks/BwoNhxjg.js.br +0 -0
- package/build/client/_app/immutable/chunks/BwoNhxjg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CS2LukIO.js +1 -0
- package/build/client/_app/immutable/chunks/CS2LukIO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CS2LukIO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CafiCU8Z.js → ChBg3kNp.js} +9 -9
- package/build/client/_app/immutable/chunks/ChBg3kNp.js.br +0 -0
- package/build/client/_app/immutable/chunks/ChBg3kNp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cl89kjea.js +1 -0
- package/build/client/_app/immutable/chunks/Cl89kjea.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cl89kjea.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CynGo-ch.js +1 -0
- package/build/client/_app/immutable/chunks/CynGo-ch.js.br +0 -0
- package/build/client/_app/immutable/chunks/CynGo-ch.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1_vCvEb.js +1 -0
- package/build/client/_app/immutable/chunks/D1_vCvEb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1_vCvEb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2Q18L5i.js +1 -0
- package/build/client/_app/immutable/chunks/D2Q18L5i.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2Q18L5i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D899Ie42.js +1 -0
- package/build/client/_app/immutable/chunks/D899Ie42.js.br +0 -0
- package/build/client/_app/immutable/chunks/D899Ie42.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DIjqwnsi.js +1 -0
- package/build/client/_app/immutable/chunks/DIjqwnsi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIjqwnsi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DR3Cu5oT.js +4 -0
- package/build/client/_app/immutable/chunks/DR3Cu5oT.js.br +0 -0
- package/build/client/_app/immutable/chunks/DR3Cu5oT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dchfcdh4.js +1 -0
- package/build/client/_app/immutable/chunks/Dchfcdh4.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dchfcdh4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B_7uoCj-.js → DeOonNGy.js} +2 -2
- package/build/client/_app/immutable/chunks/DeOonNGy.js.br +0 -0
- package/build/client/_app/immutable/chunks/DeOonNGy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ULh2o3ji.js → DjUt71lH.js} +1 -1
- package/build/client/_app/immutable/chunks/DjUt71lH.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjUt71lH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Hg2DaShQ.js +1 -0
- package/build/client/_app/immutable/chunks/Hg2DaShQ.js.br +3 -0
- package/build/client/_app/immutable/chunks/Hg2DaShQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KvnnxfV5.js +1 -0
- package/build/client/_app/immutable/chunks/KvnnxfV5.js.br +0 -0
- package/build/client/_app/immutable/chunks/KvnnxfV5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CETiZ6GF.js → NycVVWZD.js} +1 -1
- package/build/client/_app/immutable/chunks/NycVVWZD.js.br +0 -0
- package/build/client/_app/immutable/chunks/NycVVWZD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dv9wDVNU.js → TfiCUZYY.js} +1 -1
- package/build/client/_app/immutable/chunks/TfiCUZYY.js.br +0 -0
- package/build/client/_app/immutable/chunks/TfiCUZYY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/TxmsiDxf.js +1 -0
- package/build/client/_app/immutable/chunks/TxmsiDxf.js.br +0 -0
- package/build/client/_app/immutable/chunks/TxmsiDxf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ogOVEqzG.js +1 -0
- package/build/client/_app/immutable/chunks/ogOVEqzG.js.br +0 -0
- package/build/client/_app/immutable/chunks/ogOVEqzG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tqAjkrD5.js +1 -0
- package/build/client/_app/immutable/chunks/tqAjkrD5.js.br +0 -0
- package/build/client/_app/immutable/chunks/tqAjkrD5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wZ9dd4xr.js +2 -0
- package/build/client/_app/immutable/chunks/wZ9dd4xr.js.br +0 -0
- package/build/client/_app/immutable/chunks/wZ9dd4xr.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Cnr92HsX.js +2 -0
- package/build/client/_app/immutable/entry/app.Cnr92HsX.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Cnr92HsX.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CUm_Zoui.js +1 -0
- package/build/client/_app/immutable/entry/start.CUm_Zoui.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CUm_Zoui.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.D--SH7lr.js +1 -0
- package/build/client/_app/immutable/nodes/0.D--SH7lr.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D--SH7lr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CfS20bBk.js +1 -0
- package/build/client/_app/immutable/nodes/1.CfS20bBk.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CfS20bBk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.XNPeqIPf.js +2 -0
- package/build/client/_app/immutable/nodes/10.XNPeqIPf.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.XNPeqIPf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CGK1EcDL.js +6 -0
- package/build/client/_app/immutable/nodes/11.CGK1EcDL.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CGK1EcDL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.PoZV4wBT.js → 12.CxTR_73N.js} +1 -1
- package/build/client/_app/immutable/nodes/12.CxTR_73N.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CxTR_73N.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DxFblnDq.js +1 -0
- package/build/client/_app/immutable/nodes/13.DxFblnDq.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DxFblnDq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.Damf9Bij.js +65 -0
- package/build/client/_app/immutable/nodes/14.Damf9Bij.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.Damf9Bij.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DKVveqyb.js +1 -0
- package/build/client/_app/immutable/nodes/15.DKVveqyb.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DKVveqyb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.C6NzDBVE.js → 2.CdWjCbJf.js} +1 -1
- package/build/client/_app/immutable/nodes/2.CdWjCbJf.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CdWjCbJf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.CZJqJ4La.js → 3.BIfBaSHs.js} +1 -1
- package/build/client/_app/immutable/nodes/3.BIfBaSHs.js.br +1 -0
- package/build/client/_app/immutable/nodes/3.BIfBaSHs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CNe3XPNo.js → 4.D_Olflem.js} +1 -1
- package/build/client/_app/immutable/nodes/4.D_Olflem.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.D_Olflem.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.BWhhv567.js → 5.BjQaqBuw.js} +1 -1
- package/build/client/_app/immutable/nodes/5.BjQaqBuw.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BjQaqBuw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.CTCgtWr5.js → 7.BrMDvseF.js} +1 -1
- package/build/client/_app/immutable/nodes/7.BrMDvseF.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BrMDvseF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BxYzhvU1.js +2 -0
- package/build/client/_app/immutable/nodes/8.BxYzhvU1.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BxYzhvU1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.DgUUrJMM.js → 9.oHz2JV_1.js} +1 -1
- package/build/client/_app/immutable/nodes/9.oHz2JV_1.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.oHz2JV_1.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/server/chunks/0-xp6k7WWM.js +31 -0
- package/build/server/chunks/{0-CKG6FzOP.js.map → 0-xp6k7WWM.js.map} +1 -1
- package/build/server/chunks/1-zOPta5ak.js +9 -0
- package/build/server/chunks/1-zOPta5ak.js.map +1 -0
- package/build/server/chunks/{10-DhUkYynY.js → 10-Dhe07FYG.js} +3 -3
- package/build/server/chunks/{10-DhUkYynY.js.map → 10-Dhe07FYG.js.map} +1 -1
- package/build/server/chunks/{11-BNbY7gn2.js → 11-DDHEOURT.js} +5 -4
- package/build/server/chunks/11-DDHEOURT.js.map +1 -0
- package/build/server/chunks/{12-DBj8btwS.js → 12-Db_xDDjW.js} +3 -3
- package/build/server/chunks/{12-DBj8btwS.js.map → 12-Db_xDDjW.js.map} +1 -1
- package/build/server/chunks/{13-EXQa77Y1.js → 13-CzMKjEv9.js} +5 -4
- package/build/server/chunks/13-CzMKjEv9.js.map +1 -0
- package/build/server/chunks/{14-DHzR9sir.js → 14-BayJ52pt.js} +5 -4
- package/build/server/chunks/14-BayJ52pt.js.map +1 -0
- package/build/server/chunks/15-0Uv1hrI_.js +67 -0
- package/build/server/chunks/15-0Uv1hrI_.js.map +1 -0
- package/build/server/chunks/{2-BNTmkYSf.js → 2-5hqMVf4i.js} +3 -3
- package/build/server/chunks/{2-BNTmkYSf.js.map → 2-5hqMVf4i.js.map} +1 -1
- package/build/server/chunks/{3-ClKd4dXQ.js → 3-DIscxOEl.js} +3 -3
- package/build/server/chunks/{3-ClKd4dXQ.js.map → 3-DIscxOEl.js.map} +1 -1
- package/build/server/chunks/{4-BSPVNKkN.js → 4-_oEOFnHF.js} +3 -3
- package/build/server/chunks/{4-BSPVNKkN.js.map → 4-_oEOFnHF.js.map} +1 -1
- package/build/server/chunks/{5-BzxZlQk0.js → 5-qiB9L-y2.js} +3 -3
- package/build/server/chunks/{5-BzxZlQk0.js.map → 5-qiB9L-y2.js.map} +1 -1
- package/build/server/chunks/{6-Bw8JUxiD.js → 6-eXO6RVDu.js} +4 -4
- package/build/server/chunks/{6-Bw8JUxiD.js.map → 6-eXO6RVDu.js.map} +1 -1
- package/build/server/chunks/{7-QcJoMaSg.js → 7-CRPZ9GW3.js} +7 -7
- package/build/server/chunks/{7-QcJoMaSg.js.map → 7-CRPZ9GW3.js.map} +1 -1
- package/build/server/chunks/{8-UCTaZB_Z.js → 8-CkktJU5D.js} +3 -3
- package/build/server/chunks/{8-UCTaZB_Z.js.map → 8-CkktJU5D.js.map} +1 -1
- package/build/server/chunks/{9-C0szOSjZ.js → 9-BcC34Wws.js} +3 -3
- package/build/server/chunks/{9-C0szOSjZ.js.map → 9-BcC34Wws.js.map} +1 -1
- package/build/server/chunks/{JsonValue-CTg4aH_w.js → JsonValue-CGVfzyTL.js} +32 -32
- package/build/server/chunks/JsonValue-CGVfzyTL.js.map +1 -0
- package/build/server/chunks/{Modal-yO0qzufQ.js → Modal-D2E5OLRi.js} +9 -9
- package/build/server/chunks/Modal-D2E5OLRi.js.map +1 -0
- package/build/server/chunks/{Panel-D9GzVDDt.js → Panel-C6VWd6JD.js} +9 -9
- package/build/server/chunks/Panel-C6VWd6JD.js.map +1 -0
- package/build/server/chunks/{PrettyJson-BVgLycwy.js → PrettyJson-0NvyC3vB.js} +43 -21
- package/build/server/chunks/PrettyJson-0NvyC3vB.js.map +1 -0
- package/build/server/chunks/{Tooltip-D2BX7dwq.js → Tooltip-OVylvwfb.js} +5 -5
- package/build/server/chunks/Tooltip-OVylvwfb.js.map +1 -0
- package/build/server/chunks/{TooltipTable-91W9LxGR.js → TooltipTable-CLglfpck.js} +6 -6
- package/build/server/chunks/TooltipTable-CLglfpck.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-BFxKanne.js → _layout.svelte-CLPxHDiP.js} +24 -24
- package/build/server/chunks/_layout.svelte-CLPxHDiP.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CYgL8X_3.js → _page.svelte-BPcsZPKb.js} +21 -20
- package/build/server/chunks/_page.svelte-BPcsZPKb.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BkyGMJtY.js → _page.svelte-BS4_Zesn.js} +27 -26
- package/build/server/chunks/_page.svelte-BS4_Zesn.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Q0qOjc1K.js → _page.svelte-Bx5MBXSd.js} +23 -22
- package/build/server/chunks/_page.svelte-Bx5MBXSd.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CSuE9bVi.js → _page.svelte-C3QVwl-z.js} +5 -5
- package/build/server/chunks/{_page.svelte-CSuE9bVi.js.map → _page.svelte-C3QVwl-z.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DybQp3Hh.js → _page.svelte-CM6QtCvm.js} +26 -25
- package/build/server/chunks/_page.svelte-CM6QtCvm.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DEuOrgce.js → _page.svelte-Cai_1P5J.js} +58 -57
- package/build/server/chunks/_page.svelte-Cai_1P5J.js.map +1 -0
- package/build/server/chunks/_page.svelte-Cy0ShxWk.js +135 -0
- package/build/server/chunks/_page.svelte-Cy0ShxWk.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BE3IXD7W.js → _page.svelte-DFg9NEZU.js} +52 -51
- package/build/server/chunks/_page.svelte-DFg9NEZU.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BimaUmmG.js → _page.svelte-yY_cbSNt.js} +27 -26
- package/build/server/chunks/_page.svelte-yY_cbSNt.js.map +1 -0
- package/build/server/chunks/{_server.ts-CNiqI4C6.js → _server.ts-CEBmCzTO.js} +5 -5
- package/build/server/chunks/{_server.ts-CNiqI4C6.js.map → _server.ts-CEBmCzTO.js.map} +1 -1
- package/build/server/chunks/{_server.ts-OSPJ0dek.js → _server.ts-CoUHVeKI.js} +5 -5
- package/build/server/chunks/{_server.ts-OSPJ0dek.js.map → _server.ts-CoUHVeKI.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CHqxLmE4.js → _server.ts-i-glbZtX.js} +4 -4
- package/build/server/chunks/{_server.ts-CHqxLmE4.js.map → _server.ts-i-glbZtX.js.map} +1 -1
- package/build/server/chunks/{async-lVJA8xJZ.js → async-DUoD1OpG.js} +2 -1
- package/build/server/chunks/async-DUoD1OpG.js.map +1 -0
- package/build/server/chunks/client-COtw9Xqw.js +7 -0
- package/build/server/chunks/{client-C7bEwskR.js.map → client-COtw9Xqw.js.map} +1 -1
- package/build/server/chunks/{client2-DcCKOWWC.js → client2-BIa3wTXU.js} +5 -5
- package/build/server/chunks/client2-BIa3wTXU.js.map +1 -0
- package/build/server/chunks/error.svelte-DUZ2SYyF.js +18 -0
- package/build/server/chunks/{error.svelte-Bk-0XnBt.js.map → error.svelte-DUZ2SYyF.js.map} +1 -1
- package/build/server/chunks/{hooks.server-ChbJBVwm.js → hooks.server-BiUSRqj1.js} +4 -4
- package/build/server/chunks/{hooks.server-ChbJBVwm.js.map → hooks.server-BiUSRqj1.js.map} +1 -1
- package/build/server/chunks/{index-CC9WtE-y.js → index-CtYzvcG6.js} +2 -2
- package/build/server/chunks/index-CtYzvcG6.js.map +1 -0
- package/build/server/chunks/{index-wpIsICWW.js → index-NcxaM188.js} +21 -4
- package/build/server/chunks/index-NcxaM188.js.map +1 -0
- package/build/server/chunks/{index2-DMabdSHV.js → index2-B0RgZaJY.js} +3 -3
- package/build/server/chunks/{index2-DMabdSHV.js.map → index2-B0RgZaJY.js.map} +1 -1
- package/build/server/chunks/{layout.svelte-CJcHX-Na.js → layout.svelte-PFROMnUZ.js} +2 -2
- package/build/server/chunks/{layout.svelte-CJcHX-Na.js.map → layout.svelte-PFROMnUZ.js.map} +1 -1
- package/build/server/chunks/{oauth-BbSyq_Sb.js → oauth-D6jTWKFd.js} +2 -2
- package/build/server/chunks/{oauth-BbSyq_Sb.js.map → oauth-D6jTWKFd.js.map} +1 -1
- package/build/server/chunks/{remote-xxtqbu-DU1VUIfB.js → remote-xxtqbu-CmaCzxbq.js} +8 -7
- package/build/server/chunks/remote-xxtqbu-CmaCzxbq.js.map +1 -0
- package/build/server/chunks/{url-hmE1zcJ6.js → root-otUAnOAR.js} +1771 -1355
- package/build/server/chunks/root-otUAnOAR.js.map +1 -0
- package/build/server/chunks/{routing-CYknP78v.js → routing-EDfUNu8L.js} +2 -2
- package/build/server/chunks/{routing-CYknP78v.js.map → routing-EDfUNu8L.js.map} +1 -1
- package/build/server/chunks/schema-BZonjzNJ.js +315 -0
- package/build/server/chunks/schema-BZonjzNJ.js.map +1 -0
- package/build/server/chunks/{server2-uigtM6st.js → server2-D_y4YbpC.js} +8 -3
- package/build/server/chunks/server2-D_y4YbpC.js.map +1 -0
- package/build/server/chunks/{servers.remote-ChLjCujn.js → servers.remote-W2x65uTK.js} +407 -100
- package/build/server/chunks/servers.remote-W2x65uTK.js.map +1 -0
- package/build/server/chunks/{shared-BqTYMAzZ.js → shared-DlqhoNLb.js} +321 -127
- package/build/server/chunks/shared-DlqhoNLb.js.map +1 -0
- package/build/server/chunks/state.svelte-Bj5yxNNk.js +10 -0
- package/build/server/chunks/state.svelte-Bj5yxNNk.js.map +1 -0
- package/build/server/chunks/{utils2-kjxf7BZO.js → utils-BQzn9ikS.js} +2 -3
- package/build/server/chunks/utils-BQzn9ikS.js.map +1 -0
- package/build/server/index.js +322 -117
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +28 -20
- package/build/server/manifest.js.map +1 -1
- package/package.json +5 -2
- package/src/api/servers.remote.ts +60 -0
- package/src/lib/components/PrettyJson.svelte +33 -10
- package/src/lib/server/mongo.ts +1 -1
- package/src/lib/server/schema.ts +499 -0
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/documents/+page.ts +1 -0
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/indexes/+page.ts +1 -0
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.ts +1 -0
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/schema/+page.server.ts +25 -0
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/schema/+page.svelte +429 -0
- package/src/routes/servers/[server]/databases/[database]/collections/[collection]/schema/+page.ts +11 -0
- package/build/client/_app/immutable/assets/0.CdYhspVa.css +0 -1
- package/build/client/_app/immutable/assets/0.CdYhspVa.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CdYhspVa.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B-uukkkJ.js +0 -1
- package/build/client/_app/immutable/chunks/B-uukkkJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-uukkkJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B59nRjE7.js +0 -1
- package/build/client/_app/immutable/chunks/B59nRjE7.js.br +0 -2
- package/build/client/_app/immutable/chunks/B59nRjE7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_7uoCj-.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_7uoCj-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BxKxqkS7.js +0 -4
- package/build/client/_app/immutable/chunks/BxKxqkS7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BxKxqkS7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C1s4M21f.js +0 -1
- package/build/client/_app/immutable/chunks/C1s4M21f.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1s4M21f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6nv_pni.js +0 -1
- package/build/client/_app/immutable/chunks/C6nv_pni.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6nv_pni.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CETiZ6GF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CETiZ6GF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CX0xC2bt.js +0 -1
- package/build/client/_app/immutable/chunks/CX0xC2bt.js.br +0 -0
- package/build/client/_app/immutable/chunks/CX0xC2bt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CafiCU8Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/CafiCU8Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJHYr09v.js +0 -1
- package/build/client/_app/immutable/chunks/DJHYr09v.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJHYr09v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZ3j8h_f.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZ3j8h_f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZxZehvI.js +0 -1
- package/build/client/_app/immutable/chunks/DZxZehvI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZxZehvI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DaNl6Y92.js +0 -2
- package/build/client/_app/immutable/chunks/DaNl6Y92.js.br +0 -0
- package/build/client/_app/immutable/chunks/DaNl6Y92.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dbu5gl04.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dbu5gl04.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DczwA5Ds.js +0 -1
- package/build/client/_app/immutable/chunks/DczwA5Ds.js.br +0 -0
- package/build/client/_app/immutable/chunks/DczwA5Ds.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjlV9yev.js +0 -1
- package/build/client/_app/immutable/chunks/DjlV9yev.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjlV9yev.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DqCgzOHl.js +0 -1
- package/build/client/_app/immutable/chunks/DqCgzOHl.js.br +0 -0
- package/build/client/_app/immutable/chunks/DqCgzOHl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DskkUG-R.js +0 -41
- package/build/client/_app/immutable/chunks/DskkUG-R.js.br +0 -0
- package/build/client/_app/immutable/chunks/DskkUG-R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dv9wDVNU.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dv9wDVNU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwvJoC1a.js +0 -1
- package/build/client/_app/immutable/chunks/DwvJoC1a.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwvJoC1a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ULh2o3ji.js.br +0 -0
- package/build/client/_app/immutable/chunks/ULh2o3ji.js.gz +0 -0
- package/build/client/_app/immutable/chunks/V1mdyEl2.js +0 -1
- package/build/client/_app/immutable/chunks/V1mdyEl2.js.br +0 -0
- package/build/client/_app/immutable/chunks/V1mdyEl2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/gjWX2x82.js +0 -1
- package/build/client/_app/immutable/chunks/gjWX2x82.js.br +0 -0
- package/build/client/_app/immutable/chunks/gjWX2x82.js.gz +0 -0
- package/build/client/_app/immutable/chunks/y5L2Na-S.js +0 -1
- package/build/client/_app/immutable/chunks/y5L2Na-S.js.br +0 -0
- package/build/client/_app/immutable/chunks/y5L2Na-S.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CobTjvr8.js +0 -2
- package/build/client/_app/immutable/entry/app.CobTjvr8.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CobTjvr8.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BD32Z2Yy.js +0 -1
- package/build/client/_app/immutable/entry/start.BD32Z2Yy.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BD32Z2Yy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CTNDfBi_.js +0 -1
- package/build/client/_app/immutable/nodes/0.CTNDfBi_.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CTNDfBi_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B0G4JtnR.js +0 -1
- package/build/client/_app/immutable/nodes/1.B0G4JtnR.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B0G4JtnR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DiOFtMHY.js +0 -2
- package/build/client/_app/immutable/nodes/10.DiOFtMHY.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DiOFtMHY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CcFuKX19.js +0 -6
- package/build/client/_app/immutable/nodes/11.CcFuKX19.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CcFuKX19.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.PoZV4wBT.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.PoZV4wBT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BIZ8AY9M.js +0 -1
- package/build/client/_app/immutable/nodes/13.BIZ8AY9M.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BIZ8AY9M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DfoPNHw_.js +0 -65
- package/build/client/_app/immutable/nodes/14.DfoPNHw_.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DfoPNHw_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.C6NzDBVE.js.br +0 -2
- package/build/client/_app/immutable/nodes/2.C6NzDBVE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CZJqJ4La.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CZJqJ4La.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CNe3XPNo.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CNe3XPNo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BWhhv567.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BWhhv567.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CTCgtWr5.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CTCgtWr5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.B9VIkjMO.js +0 -2
- package/build/client/_app/immutable/nodes/8.B9VIkjMO.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.B9VIkjMO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DgUUrJMM.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DgUUrJMM.js.gz +0 -0
- package/build/server/chunks/0-CKG6FzOP.js +0 -31
- package/build/server/chunks/1-BobnPu2T.js +0 -9
- package/build/server/chunks/1-BobnPu2T.js.map +0 -1
- package/build/server/chunks/11-BNbY7gn2.js.map +0 -1
- package/build/server/chunks/13-EXQa77Y1.js.map +0 -1
- package/build/server/chunks/14-DHzR9sir.js.map +0 -1
- package/build/server/chunks/JsonValue-CTg4aH_w.js.map +0 -1
- package/build/server/chunks/Modal-yO0qzufQ.js.map +0 -1
- package/build/server/chunks/Panel-D9GzVDDt.js.map +0 -1
- package/build/server/chunks/PrettyJson-BVgLycwy.js.map +0 -1
- package/build/server/chunks/Tooltip-D2BX7dwq.js.map +0 -1
- package/build/server/chunks/TooltipTable-91W9LxGR.js.map +0 -1
- package/build/server/chunks/_layout.svelte-BFxKanne.js.map +0 -1
- package/build/server/chunks/_page.svelte-BE3IXD7W.js.map +0 -1
- package/build/server/chunks/_page.svelte-BimaUmmG.js.map +0 -1
- package/build/server/chunks/_page.svelte-BkyGMJtY.js.map +0 -1
- package/build/server/chunks/_page.svelte-CYgL8X_3.js.map +0 -1
- package/build/server/chunks/_page.svelte-DEuOrgce.js.map +0 -1
- package/build/server/chunks/_page.svelte-DybQp3Hh.js.map +0 -1
- package/build/server/chunks/_page.svelte-Q0qOjc1K.js.map +0 -1
- package/build/server/chunks/async-lVJA8xJZ.js.map +0 -1
- package/build/server/chunks/client-C7bEwskR.js +0 -7
- package/build/server/chunks/client2-DcCKOWWC.js.map +0 -1
- package/build/server/chunks/error.svelte-Bk-0XnBt.js +0 -18
- package/build/server/chunks/index-CC9WtE-y.js.map +0 -1
- package/build/server/chunks/index-wpIsICWW.js.map +0 -1
- package/build/server/chunks/remote-xxtqbu-DU1VUIfB.js.map +0 -1
- package/build/server/chunks/server2-uigtM6st.js.map +0 -1
- package/build/server/chunks/servers.remote-ChLjCujn.js.map +0 -1
- package/build/server/chunks/shared-BqTYMAzZ.js.map +0 -1
- package/build/server/chunks/state.svelte-Dzb7Lf2r.js +0 -9
- package/build/server/chunks/state.svelte-Dzb7Lf2r.js.map +0 -1
- package/build/server/chunks/url-hmE1zcJ6.js.map +0 -1
- package/build/server/chunks/utils2-kjxf7BZO.js.map +0 -1
package/build/server/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as noop, f as format_server_error, i as is_form_content_type, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, h as has_prerendered_path, a as handle_fatal_error, r as redirect_response, m as method_not_allowed, b as negotiate, g as get_global_name, c as create_remote_key, s as serialize_uses, d as clarify_devalue_error, o as once, e as handle_error_and_jsonify, E as ENDPOINT_METHODS, P as PAGE_METHODS, j as get_status, k as normalize_error, l as static_error_page, p as parse_remote_arg, q as stringify, t as deserialize_binary_form, u as get_node_type, v as stringify$1, w as escape_html, x as split_remote_key, S as SVELTE_KIT_ASSETS } from './chunks/shared-DlqhoNLb.js';
|
|
2
|
+
import { I as root, J as decode_pathname, K as DEV, L as normalize_path, O as disable_search, w as with_request_store, A as uneval, Q as resolve, R as make_trackable } from './chunks/root-otUAnOAR.js';
|
|
3
|
+
import { j as json, t as text, R as Redirect, S as SvelteKitError, H as HttpError, e as error, A as ActionFailure, i as isRedirect } from './chunks/index-NcxaM188.js';
|
|
3
4
|
import { b as base, a as app_dir, c as assets, r as relative, o as override, d as reset } from './chunks/server-Crjo4w1q.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { w as writable, r as readable } from './chunks/index-CC9WtE-y.js';
|
|
5
|
+
import { t as text_encoder, g as get_relative_path, a as base64_encode } from './chunks/utils-BQzn9ikS.js';
|
|
6
|
+
import { w as writable, r as readable } from './chunks/index-CtYzvcG6.js';
|
|
7
7
|
import { s as set_private_env, a as set_public_env, b as public_env } from './chunks/shared-server-BmU87nph.js';
|
|
8
|
-
import { f as find_route } from './chunks/routing-
|
|
8
|
+
import { f as find_route } from './chunks/routing-EDfUNu8L.js';
|
|
9
9
|
import { v as validate_layout_server_exports, a as validate_layout_exports, b as validate_page_server_exports, c as validate_page_exports } from './chunks/exports-B5ORJhfK.js';
|
|
10
|
-
import './chunks/async-
|
|
10
|
+
import './chunks/async-DUoD1OpG.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @template {{ tracing: { enabled: boolean, root: import('@opentelemetry/api').Span, current: import('@opentelemetry/api').Span } }} T
|
|
@@ -45,6 +45,7 @@ const options = {
|
|
|
45
45
|
root,
|
|
46
46
|
service_worker: false,
|
|
47
47
|
service_worker_options: void 0,
|
|
48
|
+
server_error_boundaries: false,
|
|
48
49
|
templates: {
|
|
49
50
|
app: ({ head, body, assets, nonce, env }) => '<!doctype html>\n<html lang="en" class="h-full">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n <meta name="color-scheme" content="light dark" />\n <script>\n // Set initial theme early to avoid flash\n (function () {\n try {\n const stored = localStorage.getItem("theme");\n const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;\n const theme = stored || "system";\n let actualTheme;\n\n if (theme === "system") {\n actualTheme = prefersDark ? "dark" : "light";\n } else {\n actualTheme = theme;\n }\n\n document.documentElement.setAttribute("data-theme", actualTheme);\n document.documentElement.setAttribute("data-theme-mode", theme);\n\n // Also add/remove dark class for Tailwind\n if (actualTheme === "dark") {\n document.documentElement.classList.add("dark");\n } else {\n document.documentElement.classList.remove("dark");\n }\n } catch (e) {}\n })();\n <\/script>\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
|
|
50
51
|
error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
|
|
@@ -118,7 +119,7 @@ const options = {
|
|
|
118
119
|
<div class="error">
|
|
119
120
|
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
|
120
121
|
},
|
|
121
|
-
version_hash: "
|
|
122
|
+
version_hash: "6x21ue"
|
|
122
123
|
};
|
|
123
124
|
async function get_hooks() {
|
|
124
125
|
let handle;
|
|
@@ -126,7 +127,7 @@ async function get_hooks() {
|
|
|
126
127
|
let handleError;
|
|
127
128
|
let handleValidationError;
|
|
128
129
|
let init;
|
|
129
|
-
({ handle, handleFetch, handleError, handleValidationError, init } = await import('./chunks/hooks.server-
|
|
130
|
+
({ handle, handleFetch, handleError, handleValidationError, init } = await import('./chunks/hooks.server-BiUSRqj1.js'));
|
|
130
131
|
let reroute;
|
|
131
132
|
let transport;
|
|
132
133
|
return {
|
|
@@ -151,6 +152,7 @@ function with_resolvers() {
|
|
|
151
152
|
}
|
|
152
153
|
const NULL_BODY_STATUS = [101, 103, 204, 205, 304];
|
|
153
154
|
const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
|
|
155
|
+
const s = JSON.stringify;
|
|
154
156
|
async function render_endpoint(event, event_state, mod, state) {
|
|
155
157
|
const method = (
|
|
156
158
|
/** @type {import('types').HttpMethod} */
|
|
@@ -175,7 +177,6 @@ async function render_endpoint(event, event_state, mod, state) {
|
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
179
|
try {
|
|
178
|
-
event_state.allows_commands = true;
|
|
179
180
|
const response = await with_request_store(
|
|
180
181
|
{ event, state: event_state },
|
|
181
182
|
() => handler(
|
|
@@ -491,7 +492,6 @@ async function call_action(event, event_state, actions) {
|
|
|
491
492
|
},
|
|
492
493
|
fn: async (current2) => {
|
|
493
494
|
const traced_event = merge_tracing(event, current2);
|
|
494
|
-
event_state.allows_commands = true;
|
|
495
495
|
const result = await with_request_store(
|
|
496
496
|
{ event: traced_event, state: event_state },
|
|
497
497
|
() => action(traced_event)
|
|
@@ -882,8 +882,9 @@ async function load_data({
|
|
|
882
882
|
},
|
|
883
883
|
fn: async (current2) => {
|
|
884
884
|
const traced_event = merge_tracing(event, current2);
|
|
885
|
+
const child_state = { ...event_state, is_in_universal_load: true };
|
|
885
886
|
return await with_request_store(
|
|
886
|
-
{ event: traced_event, state:
|
|
887
|
+
{ event: traced_event, state: child_state },
|
|
887
888
|
() => load.call(null, {
|
|
888
889
|
url: event.url,
|
|
889
890
|
params: event.params,
|
|
@@ -891,8 +892,7 @@ async function load_data({
|
|
|
891
892
|
route: event.route,
|
|
892
893
|
fetch: create_universal_fetch(event, state, fetched, csr, resolve_opts),
|
|
893
894
|
setHeaders: event.setHeaders,
|
|
894
|
-
depends:
|
|
895
|
-
},
|
|
895
|
+
depends: noop,
|
|
896
896
|
parent,
|
|
897
897
|
untrack: (fn) => fn(),
|
|
898
898
|
tracing: traced_event.tracing
|
|
@@ -1052,20 +1052,21 @@ function create_universal_fetch(event, state, fetched, csr, resolve_opts) {
|
|
|
1052
1052
|
};
|
|
1053
1053
|
return (input, init2) => {
|
|
1054
1054
|
const response = universal_fetch(input, init2);
|
|
1055
|
-
response.catch(
|
|
1056
|
-
});
|
|
1055
|
+
response.catch(noop);
|
|
1057
1056
|
return response;
|
|
1058
1057
|
};
|
|
1059
1058
|
}
|
|
1060
1059
|
async function stream_to_string(stream) {
|
|
1061
1060
|
let result = "";
|
|
1062
1061
|
const reader = stream.getReader();
|
|
1062
|
+
const decoder = new TextDecoder();
|
|
1063
1063
|
while (true) {
|
|
1064
1064
|
const { done, value } = await reader.read();
|
|
1065
1065
|
if (done) {
|
|
1066
|
+
result += decoder.decode();
|
|
1066
1067
|
break;
|
|
1067
1068
|
}
|
|
1068
|
-
result +=
|
|
1069
|
+
result += decoder.decode(value, { stream: true });
|
|
1069
1070
|
}
|
|
1070
1071
|
return result;
|
|
1071
1072
|
}
|
|
@@ -1138,7 +1139,6 @@ function serialize_data(fetched, filter, prerendering = false) {
|
|
|
1138
1139
|
}
|
|
1139
1140
|
return `<script ${attrs.join(" ")}>${safe_payload}<\/script>`;
|
|
1140
1141
|
}
|
|
1141
|
-
const s = JSON.stringify;
|
|
1142
1142
|
function sha256(data) {
|
|
1143
1143
|
if (!key[0]) precompute();
|
|
1144
1144
|
const out = init.slice(0);
|
|
@@ -1577,7 +1577,8 @@ async function render_response({
|
|
|
1577
1577
|
event_state,
|
|
1578
1578
|
resolve_opts,
|
|
1579
1579
|
action_result,
|
|
1580
|
-
data_serializer
|
|
1580
|
+
data_serializer,
|
|
1581
|
+
error_components
|
|
1581
1582
|
}) {
|
|
1582
1583
|
if (state.prerendering) {
|
|
1583
1584
|
if (options2.csp.mode === "nonce") {
|
|
@@ -1630,6 +1631,12 @@ async function render_response({
|
|
|
1630
1631
|
),
|
|
1631
1632
|
form: form_value
|
|
1632
1633
|
};
|
|
1634
|
+
if (error_components) {
|
|
1635
|
+
if (error2) {
|
|
1636
|
+
props.error = error2;
|
|
1637
|
+
}
|
|
1638
|
+
props.errors = error_components;
|
|
1639
|
+
}
|
|
1633
1640
|
let data2 = {};
|
|
1634
1641
|
for (let i = 0; i < branch.length; i += 1) {
|
|
1635
1642
|
data2 = { ...data2, ...branch[i].data };
|
|
@@ -1657,12 +1664,24 @@ async function render_response({
|
|
|
1657
1664
|
}
|
|
1658
1665
|
]
|
|
1659
1666
|
]),
|
|
1660
|
-
csp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash }
|
|
1667
|
+
csp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash },
|
|
1668
|
+
transformError: error_components ? (
|
|
1669
|
+
/** @param {unknown} e */
|
|
1670
|
+
async (e) => {
|
|
1671
|
+
if (isRedirect(e)) {
|
|
1672
|
+
throw e;
|
|
1673
|
+
}
|
|
1674
|
+
const transformed2 = await handle_error_and_jsonify(event, event_state, options2, e);
|
|
1675
|
+
props.page.error = props.error = error2 = transformed2;
|
|
1676
|
+
props.page.status = status = get_status(e);
|
|
1677
|
+
return transformed2;
|
|
1678
|
+
}
|
|
1679
|
+
) : void 0
|
|
1661
1680
|
};
|
|
1662
1681
|
try {
|
|
1663
1682
|
if (DEV) ;
|
|
1664
|
-
|
|
1665
|
-
rendered = await with_request_store({ event, state:
|
|
1683
|
+
const state2 = { ...event_state, is_in_render: true };
|
|
1684
|
+
rendered = await with_request_store({ event, state: state2 }, async () => {
|
|
1666
1685
|
if (relative) override({ base: base$1, assets: assets$1 });
|
|
1667
1686
|
const maybe_promise = options2.root.render(props, render_opts);
|
|
1668
1687
|
const rendered2 = options2.async && "then" in maybe_promise ? (
|
|
@@ -1684,23 +1703,23 @@ async function render_response({
|
|
|
1684
1703
|
} finally {
|
|
1685
1704
|
reset();
|
|
1686
1705
|
}
|
|
1687
|
-
for (const { node } of branch) {
|
|
1688
|
-
for (const url of node.imports) modulepreloads.add(url);
|
|
1689
|
-
for (const url of node.stylesheets) stylesheets.add(url);
|
|
1690
|
-
for (const url of node.fonts) fonts.add(url);
|
|
1691
|
-
if (node.inline_styles && !client.inline) {
|
|
1692
|
-
Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
|
|
1693
|
-
if (typeof css === "string") {
|
|
1694
|
-
inline_styles.set(filename, css);
|
|
1695
|
-
return;
|
|
1696
|
-
}
|
|
1697
|
-
inline_styles.set(filename, css(`${assets$1}/${app_dir}/immutable/assets`, assets$1));
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
1706
|
} else {
|
|
1702
1707
|
rendered = { head: "", html: "", css: { code: "", map: null }, hashes: { script: [] } };
|
|
1703
1708
|
}
|
|
1709
|
+
for (const { node } of branch) {
|
|
1710
|
+
for (const url of node.imports) modulepreloads.add(url);
|
|
1711
|
+
for (const url of node.stylesheets) stylesheets.add(url);
|
|
1712
|
+
for (const url of node.fonts) fonts.add(url);
|
|
1713
|
+
if (node.inline_styles && !client.inline) {
|
|
1714
|
+
Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
|
|
1715
|
+
if (typeof css === "string") {
|
|
1716
|
+
inline_styles.set(filename, css);
|
|
1717
|
+
return;
|
|
1718
|
+
}
|
|
1719
|
+
inline_styles.set(filename, css(`${assets$1}/${app_dir}/immutable/assets`, assets$1));
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1704
1723
|
const head = new Head(rendered.head, !!state.prerendering);
|
|
1705
1724
|
let body2 = rendered.html;
|
|
1706
1725
|
const prefixed = (path) => {
|
|
@@ -1857,14 +1876,45 @@ ${indent} ${hydrate.join(`,
|
|
|
1857
1876
|
${indent} `)}
|
|
1858
1877
|
${indent}}`);
|
|
1859
1878
|
}
|
|
1860
|
-
const {
|
|
1861
|
-
let
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1879
|
+
const { remote } = event_state;
|
|
1880
|
+
let serialized_query_data = "";
|
|
1881
|
+
let serialized_prerender_data = "";
|
|
1882
|
+
if (remote.data) {
|
|
1883
|
+
const query = {};
|
|
1884
|
+
const prerender = {};
|
|
1885
|
+
for (const [internals, cache] of remote.data) {
|
|
1886
|
+
if (!internals.id) continue;
|
|
1866
1887
|
for (const key2 in cache) {
|
|
1867
|
-
|
|
1888
|
+
const entry = cache[key2];
|
|
1889
|
+
if (!entry.serialize) continue;
|
|
1890
|
+
const remote_key = create_remote_key(internals.id, key2);
|
|
1891
|
+
const store = internals.type === "prerender" ? prerender : query;
|
|
1892
|
+
if (event_state.remote.refreshes?.has(remote_key) || event_state.remote.reconnects?.has(remote_key)) {
|
|
1893
|
+
store[remote_key] = await entry.data;
|
|
1894
|
+
} else {
|
|
1895
|
+
const result = await Promise.race([
|
|
1896
|
+
Promise.resolve(entry.data).then(
|
|
1897
|
+
(v) => (
|
|
1898
|
+
/** @type {const} */
|
|
1899
|
+
{ settled: true, value: v }
|
|
1900
|
+
),
|
|
1901
|
+
(e) => (
|
|
1902
|
+
/** @type {const} */
|
|
1903
|
+
{ settled: true, error: e }
|
|
1904
|
+
)
|
|
1905
|
+
),
|
|
1906
|
+
new Promise((resolve2) => {
|
|
1907
|
+
queueMicrotask(() => resolve2(
|
|
1908
|
+
/** @type {const} */
|
|
1909
|
+
{ settled: false }
|
|
1910
|
+
));
|
|
1911
|
+
})
|
|
1912
|
+
]);
|
|
1913
|
+
if (result.settled) {
|
|
1914
|
+
if ("error" in result) throw result.error;
|
|
1915
|
+
store[remote_key] = result.value;
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1868
1918
|
}
|
|
1869
1919
|
}
|
|
1870
1920
|
const replacer = (thing) => {
|
|
@@ -1875,10 +1925,18 @@ ${indent}}`);
|
|
|
1875
1925
|
}
|
|
1876
1926
|
}
|
|
1877
1927
|
};
|
|
1878
|
-
|
|
1928
|
+
if (Object.keys(query).length > 0) {
|
|
1929
|
+
serialized_query_data = `${global}.query = ${uneval(query, replacer)};
|
|
1930
|
+
|
|
1931
|
+
`;
|
|
1932
|
+
}
|
|
1933
|
+
if (Object.keys(prerender).length > 0) {
|
|
1934
|
+
serialized_prerender_data = `${global}.prerender = ${uneval(prerender, replacer)};
|
|
1879
1935
|
|
|
1880
1936
|
`;
|
|
1937
|
+
}
|
|
1881
1938
|
}
|
|
1939
|
+
const serialized_remote_data = `${serialized_query_data}${serialized_prerender_data}`;
|
|
1882
1940
|
const boot = client.inline ? `${client.inline.script}
|
|
1883
1941
|
|
|
1884
1942
|
${serialized_remote_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
|
|
@@ -1905,8 +1963,14 @@ ${indent}}`);
|
|
|
1905
1963
|
opts = `, ${s(service_worker_options)}`;
|
|
1906
1964
|
}
|
|
1907
1965
|
blocks.push(`if ('serviceWorker' in navigator) {
|
|
1966
|
+
const script_url = '${prefixed("service-worker.js")}';
|
|
1967
|
+
const policy = globalThis?.window?.trustedTypes?.createPolicy(
|
|
1968
|
+
'sveltekit-trusted-url',
|
|
1969
|
+
{ createScriptURL(url) { return url; } }
|
|
1970
|
+
);
|
|
1971
|
+
const sanitised = policy?.createScriptURL(script_url) ?? script_url;
|
|
1908
1972
|
addEventListener('load', function () {
|
|
1909
|
-
navigator.serviceWorker.register(
|
|
1973
|
+
navigator.serviceWorker.register(sanitised${opts});
|
|
1910
1974
|
});
|
|
1911
1975
|
}`);
|
|
1912
1976
|
}
|
|
@@ -2051,6 +2115,7 @@ class Head {
|
|
|
2051
2115
|
}
|
|
2052
2116
|
}
|
|
2053
2117
|
class PageNodes {
|
|
2118
|
+
/** All layout nodes and the page node, if any */
|
|
2054
2119
|
data;
|
|
2055
2120
|
/**
|
|
2056
2121
|
* @param {Array<import('types').SSRNode | undefined>} nodes
|
|
@@ -2214,6 +2279,7 @@ async function respond_with_error({
|
|
|
2214
2279
|
status,
|
|
2215
2280
|
error: await handle_error_and_jsonify(event, event_state, options2, error2),
|
|
2216
2281
|
branch,
|
|
2282
|
+
error_components: [],
|
|
2217
2283
|
fetched,
|
|
2218
2284
|
event,
|
|
2219
2285
|
event_state,
|
|
@@ -2251,15 +2317,14 @@ async function handle_remote_call_internal(event, state, options2, manifest, id)
|
|
|
2251
2317
|
const module = await remotes[hash2]();
|
|
2252
2318
|
const fn = module.default[name];
|
|
2253
2319
|
if (!fn) error(404);
|
|
2254
|
-
const
|
|
2320
|
+
const internals = fn.__;
|
|
2255
2321
|
const transport = options2.hooks.transport;
|
|
2256
2322
|
event.tracing.current.setAttributes({
|
|
2257
|
-
"sveltekit.remote.call.type":
|
|
2258
|
-
"sveltekit.remote.call.name":
|
|
2323
|
+
"sveltekit.remote.call.type": internals.type,
|
|
2324
|
+
"sveltekit.remote.call.name": internals.name
|
|
2259
2325
|
});
|
|
2260
|
-
let form_client_refreshes;
|
|
2261
2326
|
try {
|
|
2262
|
-
if (
|
|
2327
|
+
if (internals.type === "query_batch") {
|
|
2263
2328
|
if (event.request.method !== "POST") {
|
|
2264
2329
|
throw new SvelteKitError(
|
|
2265
2330
|
405,
|
|
@@ -2271,7 +2336,10 @@ async function handle_remote_call_internal(event, state, options2, manifest, id)
|
|
|
2271
2336
|
const args = await Promise.all(
|
|
2272
2337
|
payloads.map((payload2) => parse_remote_arg(payload2, transport))
|
|
2273
2338
|
);
|
|
2274
|
-
const results = await with_request_store(
|
|
2339
|
+
const results = await with_request_store(
|
|
2340
|
+
{ event, state },
|
|
2341
|
+
() => internals.run(args, options2)
|
|
2342
|
+
);
|
|
2275
2343
|
return json(
|
|
2276
2344
|
/** @type {RemoteFunctionResponse} */
|
|
2277
2345
|
{
|
|
@@ -2280,7 +2348,7 @@ async function handle_remote_call_internal(event, state, options2, manifest, id)
|
|
|
2280
2348
|
}
|
|
2281
2349
|
);
|
|
2282
2350
|
}
|
|
2283
|
-
if (
|
|
2351
|
+
if (internals.type === "form") {
|
|
2284
2352
|
if (event.request.method !== "POST") {
|
|
2285
2353
|
throw new SvelteKitError(
|
|
2286
2354
|
405,
|
|
@@ -2298,23 +2366,25 @@ async function handle_remote_call_internal(event, state, options2, manifest, id)
|
|
|
2298
2366
|
);
|
|
2299
2367
|
}
|
|
2300
2368
|
const { data: data2, meta, form_data } = await deserialize_binary_form(event.request);
|
|
2301
|
-
|
|
2369
|
+
state.remote.requested = create_requested_map(meta.remote_refreshes);
|
|
2302
2370
|
if (additional_args && !("id" in data2)) {
|
|
2303
2371
|
data2.id = JSON.parse(decodeURIComponent(additional_args));
|
|
2304
2372
|
}
|
|
2305
|
-
const fn2 =
|
|
2373
|
+
const fn2 = internals.fn;
|
|
2306
2374
|
const result = await with_request_store({ event, state }, () => fn2(data2, meta, form_data));
|
|
2307
2375
|
return json(
|
|
2308
2376
|
/** @type {RemoteFunctionResponse} */
|
|
2309
2377
|
{
|
|
2310
2378
|
type: "result",
|
|
2311
2379
|
result: stringify(result, transport),
|
|
2312
|
-
refreshes: result.issues ? void 0 : await
|
|
2380
|
+
refreshes: result.issues ? void 0 : await serialize_singleflight(state.remote.refreshes),
|
|
2381
|
+
reconnects: result.issues ? void 0 : await serialize_singleflight(state.remote.reconnects)
|
|
2313
2382
|
}
|
|
2314
2383
|
);
|
|
2315
2384
|
}
|
|
2316
|
-
if (
|
|
2385
|
+
if (internals.type === "command") {
|
|
2317
2386
|
const { payload: payload2, refreshes } = await event.request.json();
|
|
2387
|
+
state.remote.requested = create_requested_map(refreshes);
|
|
2318
2388
|
const arg = parse_remote_arg(payload2, transport);
|
|
2319
2389
|
const data2 = await with_request_store({ event, state }, () => fn(arg));
|
|
2320
2390
|
return json(
|
|
@@ -2322,11 +2392,91 @@ async function handle_remote_call_internal(event, state, options2, manifest, id)
|
|
|
2322
2392
|
{
|
|
2323
2393
|
type: "result",
|
|
2324
2394
|
result: stringify(data2, transport),
|
|
2325
|
-
refreshes: await
|
|
2395
|
+
refreshes: await serialize_singleflight(state.remote.refreshes),
|
|
2396
|
+
reconnects: await serialize_singleflight(state.remote.reconnects)
|
|
2326
2397
|
}
|
|
2327
2398
|
);
|
|
2328
2399
|
}
|
|
2329
|
-
|
|
2400
|
+
if (internals.type === "query_live") {
|
|
2401
|
+
let send = function(controller, payload3) {
|
|
2402
|
+
controller.enqueue(encoder.encode(JSON.stringify(payload3) + "\n"));
|
|
2403
|
+
};
|
|
2404
|
+
if (event.request.method !== "GET") {
|
|
2405
|
+
throw new SvelteKitError(
|
|
2406
|
+
405,
|
|
2407
|
+
"Method Not Allowed",
|
|
2408
|
+
`\`query.live\` functions must be invoked via GET request, not ${event.request.method}`
|
|
2409
|
+
);
|
|
2410
|
+
}
|
|
2411
|
+
const payload2 = (
|
|
2412
|
+
/** @type {string} */
|
|
2413
|
+
new URL(event.request.url).searchParams.get("payload")
|
|
2414
|
+
);
|
|
2415
|
+
const generator = internals.run(event, state, parse_remote_arg(payload2, transport));
|
|
2416
|
+
const encoder = new TextEncoder();
|
|
2417
|
+
let closed = false;
|
|
2418
|
+
let result = void 0;
|
|
2419
|
+
async function cancel() {
|
|
2420
|
+
if (closed) return;
|
|
2421
|
+
closed = true;
|
|
2422
|
+
await generator.return(void 0);
|
|
2423
|
+
}
|
|
2424
|
+
event.request.signal.addEventListener("abort", cancel, { once: true });
|
|
2425
|
+
return new Response(
|
|
2426
|
+
new ReadableStream({
|
|
2427
|
+
async pull(controller) {
|
|
2428
|
+
if (event.request.signal.aborted) {
|
|
2429
|
+
await cancel();
|
|
2430
|
+
controller.close();
|
|
2431
|
+
return;
|
|
2432
|
+
}
|
|
2433
|
+
try {
|
|
2434
|
+
while (true) {
|
|
2435
|
+
const { value, done } = await generator.next();
|
|
2436
|
+
if (done) {
|
|
2437
|
+
await cancel();
|
|
2438
|
+
controller.close();
|
|
2439
|
+
return;
|
|
2440
|
+
}
|
|
2441
|
+
if (result !== (result = stringify(value, transport))) {
|
|
2442
|
+
send(controller, {
|
|
2443
|
+
type: "result",
|
|
2444
|
+
result
|
|
2445
|
+
});
|
|
2446
|
+
return;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
} catch (error2) {
|
|
2450
|
+
if (!event.request.signal.aborted) {
|
|
2451
|
+
if (error2 instanceof Redirect) {
|
|
2452
|
+
send(controller, {
|
|
2453
|
+
type: "redirect",
|
|
2454
|
+
location: error2.location
|
|
2455
|
+
});
|
|
2456
|
+
} else {
|
|
2457
|
+
const status = error2 instanceof HttpError || error2 instanceof SvelteKitError ? error2.status : 500;
|
|
2458
|
+
send(controller, {
|
|
2459
|
+
type: "error",
|
|
2460
|
+
error: await handle_error_and_jsonify(event, state, options2, error2),
|
|
2461
|
+
status
|
|
2462
|
+
});
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
await cancel();
|
|
2466
|
+
controller.close();
|
|
2467
|
+
}
|
|
2468
|
+
},
|
|
2469
|
+
cancel
|
|
2470
|
+
}),
|
|
2471
|
+
{
|
|
2472
|
+
headers: {
|
|
2473
|
+
"cache-control": "private, no-store",
|
|
2474
|
+
"content-type": "application/x-ndjson"
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
);
|
|
2478
|
+
}
|
|
2479
|
+
const payload = internals.type === "prerender" ? additional_args : (
|
|
2330
2480
|
/** @type {string} */
|
|
2331
2481
|
// new URL(...) necessary because we're hiding the URL from the user in the event object
|
|
2332
2482
|
new URL(event.request.url).searchParams.get("payload")
|
|
@@ -2349,7 +2499,8 @@ async function handle_remote_call_internal(event, state, options2, manifest, id)
|
|
|
2349
2499
|
{
|
|
2350
2500
|
type: "redirect",
|
|
2351
2501
|
location: error2.location,
|
|
2352
|
-
refreshes: await
|
|
2502
|
+
refreshes: await serialize_singleflight(state.remote.refreshes),
|
|
2503
|
+
reconnects: await serialize_singleflight(state.remote.reconnects)
|
|
2353
2504
|
}
|
|
2354
2505
|
);
|
|
2355
2506
|
}
|
|
@@ -2371,34 +2522,43 @@ async function handle_remote_call_internal(event, state, options2, manifest, id)
|
|
|
2371
2522
|
}
|
|
2372
2523
|
);
|
|
2373
2524
|
}
|
|
2374
|
-
async function
|
|
2375
|
-
|
|
2376
|
-
if (client_refreshes) {
|
|
2377
|
-
for (const key2 of client_refreshes) {
|
|
2378
|
-
if (refreshes[key2] !== void 0) continue;
|
|
2379
|
-
const [hash3, name2, payload] = key2.split("/");
|
|
2380
|
-
const loader = manifest._.remotes[hash3];
|
|
2381
|
-
const fn2 = (await loader?.())?.default?.[name2];
|
|
2382
|
-
if (!fn2) error(400, "Bad Request");
|
|
2383
|
-
refreshes[key2] = with_request_store(
|
|
2384
|
-
{ event, state },
|
|
2385
|
-
() => fn2(parse_remote_arg(payload, transport))
|
|
2386
|
-
);
|
|
2387
|
-
}
|
|
2388
|
-
}
|
|
2389
|
-
if (Object.keys(refreshes).length === 0) {
|
|
2525
|
+
async function serialize_singleflight(map) {
|
|
2526
|
+
if (!map || map.size === 0) {
|
|
2390
2527
|
return void 0;
|
|
2391
2528
|
}
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
)
|
|
2397
|
-
|
|
2398
|
-
|
|
2529
|
+
const results = await Promise.all(
|
|
2530
|
+
Array.from(map, async ([key2, promise]) => {
|
|
2531
|
+
try {
|
|
2532
|
+
return [key2, { type: "result", data: await promise }];
|
|
2533
|
+
} catch (error2) {
|
|
2534
|
+
const status = error2 instanceof HttpError || error2 instanceof SvelteKitError ? error2.status : 500;
|
|
2535
|
+
return [
|
|
2536
|
+
key2,
|
|
2537
|
+
{
|
|
2538
|
+
type: "error",
|
|
2539
|
+
status,
|
|
2540
|
+
error: await handle_error_and_jsonify(event, state, options2, error2)
|
|
2541
|
+
}
|
|
2542
|
+
];
|
|
2543
|
+
}
|
|
2544
|
+
})
|
|
2399
2545
|
);
|
|
2546
|
+
return stringify(Object.fromEntries(results), transport);
|
|
2400
2547
|
}
|
|
2401
2548
|
}
|
|
2549
|
+
function create_requested_map(refreshes) {
|
|
2550
|
+
const requested = /* @__PURE__ */ new Map();
|
|
2551
|
+
for (const key2 of refreshes ?? []) {
|
|
2552
|
+
const parts = split_remote_key(key2);
|
|
2553
|
+
const existing = requested.get(parts.id);
|
|
2554
|
+
if (existing) {
|
|
2555
|
+
existing.push(parts.payload);
|
|
2556
|
+
} else {
|
|
2557
|
+
requested.set(parts.id, [parts.payload]);
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
return requested;
|
|
2561
|
+
}
|
|
2402
2562
|
async function handle_remote_form_post(event, state, manifest, id) {
|
|
2403
2563
|
return record_span({
|
|
2404
2564
|
name: "sveltekit.remote.form.post",
|
|
@@ -2440,7 +2600,7 @@ async function handle_remote_form_post_internal(event, state, manifest, id) {
|
|
|
2440
2600
|
}
|
|
2441
2601
|
try {
|
|
2442
2602
|
const fn = (
|
|
2443
|
-
/** @type {
|
|
2603
|
+
/** @type {RemoteFormInternals} */
|
|
2444
2604
|
/** @type {any} */
|
|
2445
2605
|
form.__.fn
|
|
2446
2606
|
);
|
|
@@ -2488,7 +2648,7 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|
|
2488
2648
|
}
|
|
2489
2649
|
try {
|
|
2490
2650
|
const leaf_node = (
|
|
2491
|
-
/** @type {
|
|
2651
|
+
/** @type {SSRNode} */
|
|
2492
2652
|
nodes.page()
|
|
2493
2653
|
);
|
|
2494
2654
|
let status = 200;
|
|
@@ -2530,7 +2690,15 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|
|
2530
2690
|
if (ssr === false && !(state.prerendering && should_prerender_data)) {
|
|
2531
2691
|
if (DEV && action_result && !event.request.headers.has("x-sveltekit-action")) ;
|
|
2532
2692
|
return await render_response({
|
|
2533
|
-
|
|
2693
|
+
// provide nodes without running load functions so that the styles and
|
|
2694
|
+
// fonts are linked in the head before CSR takes over
|
|
2695
|
+
branch: compact(nodes.data).map((node) => {
|
|
2696
|
+
return {
|
|
2697
|
+
node,
|
|
2698
|
+
data: null,
|
|
2699
|
+
server_data: null
|
|
2700
|
+
};
|
|
2701
|
+
}),
|
|
2534
2702
|
fetched,
|
|
2535
2703
|
page_config: {
|
|
2536
2704
|
ssr: false,
|
|
@@ -2614,10 +2782,8 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|
|
2614
2782
|
}
|
|
2615
2783
|
});
|
|
2616
2784
|
});
|
|
2617
|
-
for (const p of server_promises) p.catch(
|
|
2618
|
-
|
|
2619
|
-
for (const p of load_promises) p.catch(() => {
|
|
2620
|
-
});
|
|
2785
|
+
for (const p of server_promises) p.catch(noop);
|
|
2786
|
+
for (const p of load_promises) p.catch(noop);
|
|
2621
2787
|
for (let i = 0; i < nodes.data.length; i += 1) {
|
|
2622
2788
|
const node = nodes.data[i];
|
|
2623
2789
|
if (node) {
|
|
@@ -2654,6 +2820,11 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|
|
2654
2820
|
data_serializer.set_max_nodes(j + 1);
|
|
2655
2821
|
const layouts = compact(branch.slice(0, j + 1));
|
|
2656
2822
|
const nodes2 = new PageNodes(layouts.map((layout) => layout.node));
|
|
2823
|
+
const error_branch = layouts.concat({
|
|
2824
|
+
node: node2,
|
|
2825
|
+
data: null,
|
|
2826
|
+
server_data: null
|
|
2827
|
+
});
|
|
2657
2828
|
return await render_response({
|
|
2658
2829
|
event,
|
|
2659
2830
|
event_state,
|
|
@@ -2667,11 +2838,14 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|
|
2667
2838
|
},
|
|
2668
2839
|
status: status2,
|
|
2669
2840
|
error: error2,
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2841
|
+
error_components: await load_error_components(
|
|
2842
|
+
options2,
|
|
2843
|
+
ssr,
|
|
2844
|
+
error_branch,
|
|
2845
|
+
page,
|
|
2846
|
+
manifest
|
|
2847
|
+
),
|
|
2848
|
+
branch: error_branch,
|
|
2675
2849
|
fetched,
|
|
2676
2850
|
data_serializer
|
|
2677
2851
|
});
|
|
@@ -2708,10 +2882,11 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|
|
2708
2882
|
},
|
|
2709
2883
|
status,
|
|
2710
2884
|
error: null,
|
|
2711
|
-
branch:
|
|
2885
|
+
branch: compact(branch),
|
|
2712
2886
|
action_result,
|
|
2713
2887
|
fetched,
|
|
2714
|
-
data_serializer: ssr
|
|
2888
|
+
data_serializer: !ssr ? server_data_serializer(event, event_state, options2) : data_serializer,
|
|
2889
|
+
error_components: await load_error_components(options2, ssr, branch, page, manifest)
|
|
2715
2890
|
});
|
|
2716
2891
|
} catch (e) {
|
|
2717
2892
|
if (e instanceof Redirect) {
|
|
@@ -2729,14 +2904,25 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
|
|
2729
2904
|
});
|
|
2730
2905
|
}
|
|
2731
2906
|
}
|
|
2732
|
-
function
|
|
2733
|
-
let
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2907
|
+
async function load_error_components(options2, ssr, branch, page, manifest) {
|
|
2908
|
+
let error_components;
|
|
2909
|
+
if (options2.server_error_boundaries && ssr) {
|
|
2910
|
+
let last_idx = -1;
|
|
2911
|
+
error_components = await Promise.all(
|
|
2912
|
+
// eslint-disable-next-line @typescript-eslint/await-thenable
|
|
2913
|
+
branch.map((b, i) => {
|
|
2914
|
+
if (i === 0) return void 0;
|
|
2915
|
+
if (!b) return null;
|
|
2916
|
+
i--;
|
|
2917
|
+
while (i > last_idx + 1 && page.errors[i] === void 0) i -= 1;
|
|
2918
|
+
last_idx = i;
|
|
2919
|
+
const idx = page.errors[i];
|
|
2920
|
+
if (idx == null) return void 0;
|
|
2921
|
+
return manifest._.nodes[idx]?.().then((e) => e.component?.()).catch(() => void 0);
|
|
2922
|
+
}).filter((e) => e !== null)
|
|
2923
|
+
);
|
|
2924
|
+
}
|
|
2925
|
+
return error_components;
|
|
2740
2926
|
}
|
|
2741
2927
|
async function render_data(event, event_state, route, options2, manifest, state, invalidated_data_nodes, trailing_slash) {
|
|
2742
2928
|
if (!route.page) {
|
|
@@ -3463,8 +3649,7 @@ function create_fetch({ event, options: options2, manifest, state, get_cookie_he
|
|
|
3463
3649
|
};
|
|
3464
3650
|
return (input, init2) => {
|
|
3465
3651
|
const response = server_fetch(input, init2);
|
|
3466
|
-
response.catch(
|
|
3467
|
-
});
|
|
3652
|
+
response.catch(noop);
|
|
3468
3653
|
return response;
|
|
3469
3654
|
};
|
|
3470
3655
|
}
|
|
@@ -3479,8 +3664,7 @@ async function internal_fetch(request, options2, manifest, state) {
|
|
|
3479
3664
|
if (request.signal.aborted) {
|
|
3480
3665
|
throw new DOMException("The operation was aborted.", "AbortError");
|
|
3481
3666
|
}
|
|
3482
|
-
let remove_abort_listener =
|
|
3483
|
-
};
|
|
3667
|
+
let remove_abort_listener = noop;
|
|
3484
3668
|
const abort_promise = new Promise((_, reject) => {
|
|
3485
3669
|
const on_abort = () => {
|
|
3486
3670
|
reject(new DOMException("The operation was aborted.", "AbortError"));
|
|
@@ -3576,7 +3760,17 @@ async function internal_respond(request, options2, manifest, state) {
|
|
|
3576
3760
|
tracing: {
|
|
3577
3761
|
record_span
|
|
3578
3762
|
},
|
|
3579
|
-
|
|
3763
|
+
remote: {
|
|
3764
|
+
data: null,
|
|
3765
|
+
forms: null,
|
|
3766
|
+
refreshes: null,
|
|
3767
|
+
requested: null,
|
|
3768
|
+
reconnects: null,
|
|
3769
|
+
batches: null
|
|
3770
|
+
},
|
|
3771
|
+
is_in_remote_function: false,
|
|
3772
|
+
is_in_render: false,
|
|
3773
|
+
is_in_universal_load: false
|
|
3580
3774
|
};
|
|
3581
3775
|
const event = {
|
|
3582
3776
|
cookies,
|
|
@@ -3777,7 +3971,6 @@ async function internal_respond(request, options2, manifest, state) {
|
|
|
3777
3971
|
current: root_span
|
|
3778
3972
|
}
|
|
3779
3973
|
};
|
|
3780
|
-
event_state.allows_commands = MUTATIVE_METHODS.includes(request.method);
|
|
3781
3974
|
return await with_request_store(
|
|
3782
3975
|
{ event: traced_event, state: event_state },
|
|
3783
3976
|
() => options2.hooks.handle({
|
|
@@ -3861,9 +4054,13 @@ async function internal_respond(request, options2, manifest, state) {
|
|
|
3861
4054
|
return response;
|
|
3862
4055
|
} catch (e) {
|
|
3863
4056
|
if (e instanceof Redirect) {
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
4057
|
+
try {
|
|
4058
|
+
const response = is_data_request || remote_id ? redirect_json_response(e) : route?.page && is_action_json_request(event) ? action_json_redirect(e) : redirect_response(e.status, e.location);
|
|
4059
|
+
add_cookies_to_headers(response.headers, new_cookies.values());
|
|
4060
|
+
return response;
|
|
4061
|
+
} catch (err) {
|
|
4062
|
+
return await handle_fatal_error(event, event_state, options2, err);
|
|
4063
|
+
}
|
|
3867
4064
|
}
|
|
3868
4065
|
return await handle_fatal_error(event, event_state, options2, e);
|
|
3869
4066
|
}
|
|
@@ -3886,7 +4083,17 @@ async function internal_respond(request, options2, manifest, state) {
|
|
|
3886
4083
|
page_config: { ssr: false, csr: true },
|
|
3887
4084
|
status: 200,
|
|
3888
4085
|
error: null,
|
|
3889
|
-
branch: [
|
|
4086
|
+
branch: [
|
|
4087
|
+
// include the root layout because it applies to every page
|
|
4088
|
+
{
|
|
4089
|
+
node: (
|
|
4090
|
+
/** @type {SSRNode} */
|
|
4091
|
+
await manifest._.nodes[0]()
|
|
4092
|
+
),
|
|
4093
|
+
data: null,
|
|
4094
|
+
server_data: null
|
|
4095
|
+
}
|
|
4096
|
+
],
|
|
3890
4097
|
fetched: [],
|
|
3891
4098
|
resolve_opts,
|
|
3892
4099
|
data_serializer: server_data_serializer(event2, event_state, options2)
|
|
@@ -3980,7 +4187,6 @@ async function internal_respond(request, options2, manifest, state) {
|
|
|
3980
4187
|
});
|
|
3981
4188
|
}
|
|
3982
4189
|
if (state.depth === 0) {
|
|
3983
|
-
if (DEV && event2.url.pathname === "/.well-known/appspecific/com.chrome.devtools.json") ;
|
|
3984
4190
|
return await respond_with_error({
|
|
3985
4191
|
event: event2,
|
|
3986
4192
|
event_state,
|
|
@@ -4113,8 +4319,7 @@ class Server {
|
|
|
4113
4319
|
console.error("Remote function schema validation failed:", issues);
|
|
4114
4320
|
return { message: "Bad Request" };
|
|
4115
4321
|
}),
|
|
4116
|
-
reroute: module.reroute ||
|
|
4117
|
-
}),
|
|
4322
|
+
reroute: module.reroute || noop,
|
|
4118
4323
|
transport: module.transport || {}
|
|
4119
4324
|
};
|
|
4120
4325
|
set_app({
|