fundus 0.0.2 → 0.0.3
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/README.md +58 -0
- package/build/client/_app/immutable/assets/0.DLhIsYA_.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DLhIsYA_.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.wavcNhPC.css +1 -0
- package/build/client/_app/immutable/assets/2.wavcNhPC.css.br +0 -0
- package/build/client/_app/immutable/assets/2.wavcNhPC.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.Cjh_fXPY.css +1 -0
- package/build/client/_app/immutable/assets/3.Cjh_fXPY.css.br +0 -0
- package/build/client/_app/immutable/assets/3.Cjh_fXPY.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.p004hmEN.css +1 -0
- package/build/client/_app/immutable/assets/4.p004hmEN.css.br +0 -0
- package/build/client/_app/immutable/assets/4.p004hmEN.css.gz +0 -0
- package/build/client/_app/immutable/assets/ConfirmDialog.BdKlitwi.css +1 -0
- package/build/client/_app/immutable/assets/ConfirmDialog.BdKlitwi.css.br +0 -0
- package/build/client/_app/immutable/assets/ConfirmDialog.BdKlitwi.css.gz +0 -0
- package/build/client/_app/immutable/assets/LibraryContextMenu.zyZtpKzC.css +1 -0
- package/build/client/_app/immutable/assets/LibraryContextMenu.zyZtpKzC.css.br +0 -0
- package/build/client/_app/immutable/assets/LibraryContextMenu.zyZtpKzC.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BiIto6ft.js +1 -0
- package/build/client/_app/immutable/chunks/BiIto6ft.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiIto6ft.js.gz +0 -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/CNRz3sSw.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNRz3sSw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CO4RBJfa.js.br +0 -0
- package/build/client/_app/immutable/chunks/CO4RBJfa.js.gz +0 -0
- package/{dist/editor/_app/immutable/chunks/DjvOiDmq.js → build/client/_app/immutable/chunks/CvY6YsFE.js} +1 -1
- package/build/client/_app/immutable/chunks/CvY6YsFE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvY6YsFE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DL0_39Ys.js +5 -0
- package/build/client/_app/immutable/chunks/DL0_39Ys.js.br +0 -0
- package/build/client/_app/immutable/chunks/DL0_39Ys.js.gz +0 -0
- package/{dist/editor/_app/immutable/chunks/BfPE5wdt.js → build/client/_app/immutable/chunks/DQ8SXFaX.js} +1 -1
- package/build/client/_app/immutable/chunks/DQ8SXFaX.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQ8SXFaX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjdrdRzT.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjdrdRzT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
- package/{dist/editor/_app/immutable/entry/app.BkqbfI8n.js → build/client/_app/immutable/entry/app.ubN0v9bN.js} +2 -2
- package/build/client/_app/immutable/entry/app.ubN0v9bN.js.br +0 -0
- package/build/client/_app/immutable/entry/app.ubN0v9bN.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BW8dBDh6.js +1 -0
- package/build/client/_app/immutable/entry/start.BW8dBDh6.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BW8dBDh6.js.gz +0 -0
- package/{dist/editor/_app/immutable/nodes/0.xdMI5GEU.js → build/client/_app/immutable/nodes/0.Dr5ijCIl.js} +1 -1
- package/build/client/_app/immutable/nodes/0.Dr5ijCIl.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Dr5ijCIl.js.gz +0 -0
- package/{dist/editor/_app/immutable/nodes/1.D9p2tfoJ.js → build/client/_app/immutable/nodes/1.DiIGIRAb.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DiIGIRAb.js.br +3 -0
- package/build/client/_app/immutable/nodes/1.DiIGIRAb.js.gz +0 -0
- package/{dist/editor/_app/immutable/nodes/2.BrA0Hyzu.js → build/client/_app/immutable/nodes/2.B8KYmQcV.js} +3 -3
- package/build/client/_app/immutable/nodes/2.B8KYmQcV.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B8KYmQcV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.B1jc7arT.js +104 -0
- package/build/client/_app/immutable/nodes/3.B1jc7arT.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.B1jc7arT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BPK9n1mH.js +2 -0
- package/build/client/_app/immutable/nodes/4.BPK9n1mH.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BPK9n1mH.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/env.js +100 -0
- package/build/env.js.map +1 -0
- package/build/handler.js +22 -0
- package/build/handler.js.map +1 -0
- package/build/index.js +145 -0
- package/build/index.js.map +1 -0
- package/build/server/chunks/chunks/context.js-Bw4WWLhG.js +443 -0
- package/build/server/chunks/chunks/context.js-Bw4WWLhG.js.map +1 -0
- package/build/server/chunks/chunks/core.js-DDntpb72.js +409 -0
- package/build/server/chunks/chunks/core.js-DDntpb72.js.map +1 -0
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js.map +1 -0
- package/build/server/chunks/chunks/exports.js-CLTzaOxn.js +152 -0
- package/build/server/chunks/chunks/exports.js-CLTzaOxn.js.map +1 -0
- package/build/server/chunks/chunks/folder-path.js-ytx9ucgg.js +64 -0
- package/build/server/chunks/chunks/folder-path.js-ytx9ucgg.js.map +1 -0
- package/build/server/chunks/chunks/http.js-Dxoa-jtP.js +100 -0
- package/build/server/chunks/chunks/http.js-Dxoa-jtP.js.map +1 -0
- package/build/server/chunks/chunks/internal.js-BDBSzJId.js +5753 -0
- package/build/server/chunks/chunks/internal.js-BDBSzJId.js.map +1 -0
- package/build/server/chunks/chunks/internal2.js-BlXt2rfE.js +22 -0
- package/build/server/chunks/chunks/internal2.js-BlXt2rfE.js.map +1 -0
- package/{dist/operations-DYM-5KVl.js → build/server/chunks/chunks/library-store.js-BP8cL-qD.js} +344 -444
- package/build/server/chunks/chunks/library-store.js-BP8cL-qD.js.map +1 -0
- package/build/server/chunks/chunks/manifest-appearance.js-DTk355LQ.js +146 -0
- package/build/server/chunks/chunks/manifest-appearance.js-DTk355LQ.js.map +1 -0
- package/build/server/chunks/chunks/routing.js-y-tryuip.js +213 -0
- package/build/server/chunks/chunks/routing.js-y-tryuip.js.map +1 -0
- package/build/server/chunks/chunks/shared.js-BWXgl1Xf.js +255 -0
- package/build/server/chunks/chunks/shared.js-BWXgl1Xf.js.map +1 -0
- package/build/server/chunks/chunks/utils.js-9oI5Oz0w.js +1048 -0
- package/build/server/chunks/chunks/utils.js-9oI5Oz0w.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/_...path_/_server.ts.js-WknZVW_S.js +27 -0
- package/build/server/chunks/entries/endpoints/api/_...path_/_server.ts.js-WknZVW_S.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/assets/_id_/_server.ts.js-BrZ__-HZ.js +24 -0
- package/build/server/chunks/entries/endpoints/api/assets/_id_/_server.ts.js-BrZ__-HZ.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/assets/_server.ts.js-PqADGPXc.js +45 -0
- package/build/server/chunks/entries/endpoints/api/assets/_server.ts.js-PqADGPXc.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/assets/delete/_server.ts.js-OqoE5PN-.js +31 -0
- package/build/server/chunks/entries/endpoints/api/assets/delete/_server.ts.js-OqoE5PN-.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/assets/move/_server.ts.js-CJ08e1ho.js +31 -0
- package/build/server/chunks/entries/endpoints/api/assets/move/_server.ts.js-CJ08e1ho.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/folders/_path_/_server.ts.js-DdF3eK2I.js +38 -0
- package/build/server/chunks/entries/endpoints/api/folders/_path_/_server.ts.js-DdF3eK2I.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/folders/_server.ts.js-Cxt6jsJ5.js +31 -0
- package/build/server/chunks/entries/endpoints/api/folders/_server.ts.js-Cxt6jsJ5.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/manifests/_name_/_server.ts.js-BWVM2Ntl.js +24 -0
- package/build/server/chunks/entries/endpoints/api/manifests/_name_/_server.ts.js-BWVM2Ntl.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/manifests/_server.ts.js-Z2bM-qHM.js +31 -0
- package/build/server/chunks/entries/endpoints/api/manifests/_server.ts.js-Z2bM-qHM.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/state/_server.ts.js-BX9H2Z34.js +24 -0
- package/build/server/chunks/entries/endpoints/api/state/_server.ts.js-BX9H2Z34.js.map +1 -0
- package/build/server/chunks/entries/endpoints/files/_...path_/_server.ts.js-BWHDZ8mz.js +27 -0
- package/build/server/chunks/entries/endpoints/files/_...path_/_server.ts.js-BWHDZ8mz.js.map +1 -0
- package/build/server/chunks/entries/endpoints/files/proxy/_...path_/_server.ts.js-CR_7mndO.js +24 -0
- package/build/server/chunks/entries/endpoints/files/proxy/_...path_/_server.ts.js-CR_7mndO.js.map +1 -0
- package/build/server/chunks/entries/endpoints/files/raw/_...path_/_server.ts.js-Cw1PDBvb.js +24 -0
- package/build/server/chunks/entries/endpoints/files/raw/_...path_/_server.ts.js-Cw1PDBvb.js.map +1 -0
- package/build/server/chunks/entries/hooks.server.js-BHoE0yBi.js +23 -0
- package/build/server/chunks/entries/hooks.server.js-BHoE0yBi.js.map +1 -0
- package/build/server/chunks/handler-10cx4zHn.js +1475 -0
- package/build/server/chunks/handler-10cx4zHn.js.map +1 -0
- package/build/server/chunks/index.js-DvPfiC00.js +3789 -0
- package/build/server/chunks/index.js-DvPfiC00.js.map +1 -0
- package/build/server/chunks/manifest.js-DoPjUnzD.js +149 -0
- package/build/server/chunks/manifest.js-DoPjUnzD.js.map +1 -0
- package/build/server/chunks/nodes/0.js-Di3qgAtW.js +11 -0
- package/build/server/chunks/nodes/0.js-Di3qgAtW.js.map +1 -0
- package/build/server/chunks/nodes/1.js-BlWSFIA8.js +7 -0
- package/build/server/chunks/nodes/1.js-BlWSFIA8.js.map +1 -0
- package/build/server/chunks/nodes/2.js-CO9nSPUN.js +7 -0
- package/build/server/chunks/nodes/2.js-CO9nSPUN.js.map +1 -0
- package/build/server/chunks/nodes/3.js-C2D6xpEO.js +7 -0
- package/build/server/chunks/nodes/3.js-C2D6xpEO.js.map +1 -0
- package/build/server/chunks/nodes/4.js-B3IuagJW.js +7 -0
- package/build/server/chunks/nodes/4.js-B3IuagJW.js.map +1 -0
- package/build/shims.js +33 -0
- package/build/shims.js.map +1 -0
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +109 -1332
- package/dist/config.d.ts +3 -2
- package/dist/config.js +2 -2
- package/dist/core/api-types.d.ts +141 -0
- package/dist/core/api-types.js +1 -0
- package/dist/core/asset-id.d.ts +28 -0
- package/dist/core/asset-id.js +59 -0
- package/dist/core/asset-reference.d.ts +23 -0
- package/dist/core/asset-reference.js +15 -0
- package/dist/core/canonicalize.d.ts +9 -0
- package/dist/core/canonicalize.js +36 -0
- package/dist/core/chroma-key.d.ts +30 -0
- package/dist/core/chroma-key.js +55 -0
- package/dist/core/config.d.ts +35 -0
- package/dist/core/config.js +4 -0
- package/dist/core/folder-path.d.ts +19 -0
- package/dist/core/folder-path.js +86 -0
- package/dist/core/index.d.ts +33 -499
- package/dist/core/index.js +17 -962
- package/dist/core/ingest.d.ts +18 -0
- package/dist/core/ingest.js +58 -0
- package/dist/core/library.d.ts +54 -0
- package/dist/core/library.js +138 -0
- package/dist/core/manifest-appearance.d.ts +35 -0
- package/dist/core/manifest-appearance.js +123 -0
- package/dist/core/manifest-entry.d.ts +104 -0
- package/dist/core/manifest-entry.js +1 -0
- package/dist/core/manifest-membership.d.ts +56 -0
- package/dist/core/manifest-membership.js +54 -0
- package/dist/core/plugins/audio.d.ts +26 -0
- package/dist/core/plugins/audio.js +44 -0
- package/dist/core/plugins/chroma-key-video.d.ts +29 -0
- package/dist/core/plugins/chroma-key-video.js +69 -0
- package/dist/core/plugins/contract.d.ts +35 -0
- package/dist/core/plugins/contract.js +1 -0
- package/dist/core/plugins/image.d.ts +30 -0
- package/dist/core/plugins/image.js +45 -0
- package/dist/core/plugins/slice.d.ts +22 -0
- package/dist/core/plugins/slice.js +60 -0
- package/dist/core/plugins/video.d.ts +45 -0
- package/dist/core/plugins/video.js +77 -0
- package/dist/core/reference-graph.d.ts +41 -0
- package/dist/core/reference-graph.js +138 -0
- package/dist/core/slice-data.d.ts +61 -0
- package/dist/core/slice-data.js +49 -0
- package/dist/runtime/chroma-key-gl.d.ts +40 -22
- package/dist/runtime/chroma-key-gl.js +189 -183
- package/dist/runtime/components/ChromaKeyVideo.svelte +3 -3
- package/dist/runtime/components/ChromaKeyVideo.svelte.d.ts +21 -0
- package/dist/runtime/components/Image.svelte +1 -1
- package/dist/runtime/components/Image.svelte.d.ts +9 -0
- package/dist/runtime/components/Slice.svelte +1 -1
- package/dist/runtime/components/Slice.svelte.d.ts +19 -0
- package/dist/runtime/components/SliceCanvas.svelte +3 -3
- package/dist/runtime/components/SliceCanvas.svelte.d.ts +10 -0
- package/dist/runtime/components/SliceDom.svelte +3 -3
- package/dist/runtime/components/SliceDom.svelte.d.ts +10 -0
- package/dist/runtime/components/Video.svelte +2 -2
- package/dist/runtime/components/Video.svelte.d.ts +18 -0
- package/dist/runtime/geometry.d.ts +55 -35
- package/dist/runtime/geometry.js +186 -191
- package/dist/runtime/index.d.ts +9 -9
- package/dist/runtime/index.js +9 -9
- package/dist/runtime/kind-handlers.d.ts +33 -24
- package/dist/runtime/kind-handlers.js +74 -65
- package/dist/runtime/manifest.d.ts +53 -47
- package/dist/runtime/manifest.js +133 -113
- package/dist/runtime/observe-border-box-size.d.ts +1 -4
- package/dist/runtime/observe-border-box-size.js +9 -10
- package/dist/runtime/preload-registry.d.ts +22 -8
- package/dist/runtime/preload-registry.js +65 -62
- package/dist/server/build.d.ts +8 -0
- package/dist/server/build.js +25 -0
- package/dist/server/check.d.ts +24 -0
- package/dist/server/check.js +199 -0
- package/dist/server/cli-commands.d.ts +25 -0
- package/dist/server/cli-commands.js +1178 -0
- package/dist/server/cli-init.d.ts +3 -0
- package/dist/server/cli-init.js +53 -0
- package/dist/server/cli-io.d.ts +46 -0
- package/dist/server/cli-io.js +105 -0
- package/dist/server/codegen.d.ts +58 -0
- package/dist/server/codegen.js +185 -0
- package/dist/server/config-loader.d.ts +34 -0
- package/dist/server/config-loader.js +103 -0
- package/dist/server/context.d.ts +8 -0
- package/dist/server/context.js +19 -0
- package/dist/server/folder-filesystem.d.ts +7 -0
- package/dist/server/folder-filesystem.js +39 -0
- package/dist/server/http.d.ts +12 -0
- package/dist/server/http.js +100 -0
- package/dist/server/index.d.ts +16 -0
- package/dist/server/index.js +9 -0
- package/dist/server/job-hash.d.ts +10 -0
- package/dist/server/job-hash.js +23 -0
- package/dist/server/library-store.d.ts +82 -0
- package/dist/server/library-store.js +763 -0
- package/dist/server/operations.d.ts +87 -0
- package/dist/server/operations.js +427 -0
- package/dist/server/plugins/audio.d.ts +7 -0
- package/dist/server/plugins/audio.js +27 -0
- package/dist/server/plugins/chroma-key-video.d.ts +9 -0
- package/dist/server/plugins/chroma-key-video.js +38 -0
- package/dist/server/plugins/contract.d.ts +100 -0
- package/dist/server/plugins/contract.js +16 -0
- package/dist/server/plugins/image.d.ts +8 -0
- package/dist/server/plugins/image.js +30 -0
- package/dist/server/plugins/slice.d.ts +14 -0
- package/dist/server/plugins/slice.js +63 -0
- package/dist/server/plugins/video.d.ts +6 -0
- package/dist/server/plugins/video.js +29 -0
- package/dist/server/plugins.d.ts +23 -0
- package/dist/server/plugins.js +33 -0
- package/dist/server/processing/audio-processing.d.ts +17 -0
- package/dist/server/processing/audio-processing.js +46 -0
- package/dist/server/processing/ffmpeg.d.ts +9 -0
- package/dist/server/processing/ffmpeg.js +50 -0
- package/dist/server/processing/image-processing.d.ts +16 -0
- package/dist/server/processing/image-processing.js +26 -0
- package/dist/server/processing/media-probe.d.ts +15 -0
- package/dist/server/processing/media-probe.js +27 -0
- package/dist/server/processing/processor.d.ts +50 -0
- package/dist/server/processing/processor.js +158 -0
- package/dist/server/processing/video-processing.d.ts +35 -0
- package/dist/server/processing/video-processing.js +87 -0
- package/dist/server/server.d.ts +13 -0
- package/dist/server/server.js +57 -0
- package/dist/server/start.d.ts +1 -0
- package/dist/server/start.js +33 -0
- package/package.json +29 -16
- package/dist/build-CZYFLLvl.js +0 -191
- package/dist/core/image-Dqmz8FXS.js +0 -54
- package/dist/core/reference-graph-CjuHbLDw.d.ts +0 -280
- package/dist/core/testing.d.ts +0 -27
- package/dist/core/testing.js +0 -80
- package/dist/editor/200.html +0 -37
- package/dist/editor/_app/immutable/assets/2.DIbbW7U1.css +0 -1
- package/dist/editor/_app/immutable/assets/3.C-9vFQ9A.css +0 -1
- package/dist/editor/_app/immutable/assets/4.BS8ElpOV.css +0 -1
- package/dist/editor/_app/immutable/assets/ConfirmDialog.CHEISE-L.css +0 -1
- package/dist/editor/_app/immutable/assets/LibraryContextMenu.CDjCmdV-.css +0 -1
- package/dist/editor/_app/immutable/chunks/Cx6qtxJg.js +0 -1
- package/dist/editor/_app/immutable/chunks/n7mvYc42.js +0 -5
- package/dist/editor/_app/immutable/entry/start.C8HHOLly.js +0 -1
- package/dist/editor/_app/immutable/nodes/3.WO7tZH_d.js +0 -104
- package/dist/editor/_app/immutable/nodes/4.DQtx17aW.js +0 -2
- package/dist/editor/_app/version.json +0 -1
- package/dist/index.d.ts +0 -370
- package/dist/index.js +0 -4
- package/dist/start-Bhnqt9Dc.js +0 -279
- package/dist/start-D2IXOrni.js +0 -2
- /package/{dist/editor → build/client}/_app/immutable/assets/0.DLhIsYA_.css +0 -0
- /package/{dist/editor → build/client}/_app/immutable/chunks/Bjy-W4x2.js +0 -0
- /package/{dist/editor → build/client}/_app/immutable/chunks/CNRz3sSw.js +0 -0
- /package/{dist/editor → build/client}/_app/immutable/chunks/CO4RBJfa.js +0 -0
- /package/{dist/editor → build/client}/_app/immutable/chunks/DjdrdRzT.js +0 -0
- /package/{dist/editor → build/client}/_app/immutable/chunks/xihTtKlq.js +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
//#region node_modules/@sveltejs/kit/src/runtime/pathname.js
|
|
2
|
+
var DATA_SUFFIX = "/__data.json";
|
|
3
|
+
var HTML_DATA_SUFFIX = ".html__data.json";
|
|
4
|
+
/** @param {string} pathname */
|
|
5
|
+
function has_data_suffix(pathname) {
|
|
6
|
+
return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
|
|
7
|
+
}
|
|
8
|
+
/** @param {string} pathname */
|
|
9
|
+
function add_data_suffix(pathname) {
|
|
10
|
+
if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
|
|
11
|
+
return pathname.replace(/\/$/, "") + DATA_SUFFIX;
|
|
12
|
+
}
|
|
13
|
+
/** @param {string} pathname */
|
|
14
|
+
function strip_data_suffix(pathname) {
|
|
15
|
+
if (pathname.endsWith(HTML_DATA_SUFFIX)) return pathname.slice(0, -16) + ".html";
|
|
16
|
+
return pathname.slice(0, -12);
|
|
17
|
+
}
|
|
18
|
+
var ROUTE_SUFFIX = "/__route.js";
|
|
19
|
+
/**
|
|
20
|
+
* @param {string} pathname
|
|
21
|
+
* @returns {boolean}
|
|
22
|
+
*/
|
|
23
|
+
function has_resolution_suffix(pathname) {
|
|
24
|
+
return pathname.endsWith(ROUTE_SUFFIX);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Convert a regular URL to a route to send to SvelteKit's server-side route resolution endpoint
|
|
28
|
+
* @param {string} pathname
|
|
29
|
+
* @returns {string}
|
|
30
|
+
*/
|
|
31
|
+
function add_resolution_suffix(pathname) {
|
|
32
|
+
return pathname.replace(/\/$/, "") + ROUTE_SUFFIX;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @param {string} pathname
|
|
36
|
+
* @returns {string}
|
|
37
|
+
*/
|
|
38
|
+
function strip_resolution_suffix(pathname) {
|
|
39
|
+
return pathname.slice(0, -11);
|
|
40
|
+
}
|
|
41
|
+
var internal = new URL("sveltekit-internal://");
|
|
42
|
+
/**
|
|
43
|
+
* @param {string} base
|
|
44
|
+
* @param {string} path
|
|
45
|
+
*/
|
|
46
|
+
function resolve(base, path) {
|
|
47
|
+
if (path[0] === "/" && path[1] === "/") return path;
|
|
48
|
+
let url = new URL(base, internal);
|
|
49
|
+
url = new URL(path, url);
|
|
50
|
+
return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @param {string} path
|
|
54
|
+
* @param {import('types').TrailingSlash} trailing_slash
|
|
55
|
+
*/
|
|
56
|
+
function normalize_path(path, trailing_slash) {
|
|
57
|
+
if (path === "/" || trailing_slash === "ignore") return path;
|
|
58
|
+
if (trailing_slash === "never") return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
59
|
+
else if (trailing_slash === "always" && !path.endsWith("/")) return path + "/";
|
|
60
|
+
return path;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Decode pathname excluding %25 to prevent further double decoding of params
|
|
64
|
+
* @param {string} pathname
|
|
65
|
+
*/
|
|
66
|
+
function decode_pathname(pathname) {
|
|
67
|
+
return pathname.split("%25").map(decodeURI).join("%25");
|
|
68
|
+
}
|
|
69
|
+
/** @param {Record<string, string>} params */
|
|
70
|
+
function decode_params(params) {
|
|
71
|
+
for (const key in params) params[key] = decodeURIComponent(params[key]);
|
|
72
|
+
return params;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @param {URL} url
|
|
76
|
+
* @param {() => void} callback
|
|
77
|
+
* @param {(search_param: string) => void} search_params_callback
|
|
78
|
+
* @param {boolean} [allow_hash]
|
|
79
|
+
*/
|
|
80
|
+
function make_trackable(url, callback, search_params_callback, allow_hash = false) {
|
|
81
|
+
const tracked = new URL(url);
|
|
82
|
+
Object.defineProperty(tracked, "searchParams", {
|
|
83
|
+
value: new Proxy(tracked.searchParams, { get(obj, key) {
|
|
84
|
+
if (key === "get" || key === "getAll" || key === "has") return (param, ...rest) => {
|
|
85
|
+
search_params_callback(param);
|
|
86
|
+
return obj[key](param, ...rest);
|
|
87
|
+
};
|
|
88
|
+
callback();
|
|
89
|
+
const value = Reflect.get(obj, key);
|
|
90
|
+
return typeof value === "function" ? value.bind(obj) : value;
|
|
91
|
+
} }),
|
|
92
|
+
enumerable: true,
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* URL properties that could change during the lifetime of the page,
|
|
97
|
+
* which excludes things like `origin`
|
|
98
|
+
* @type {(keyof URL)[]}
|
|
99
|
+
*/
|
|
100
|
+
const tracked_url_properties = [
|
|
101
|
+
"href",
|
|
102
|
+
"pathname",
|
|
103
|
+
"search",
|
|
104
|
+
"toString",
|
|
105
|
+
"toJSON"
|
|
106
|
+
];
|
|
107
|
+
if (allow_hash) tracked_url_properties.push("hash");
|
|
108
|
+
for (const property of tracked_url_properties) Object.defineProperty(tracked, property, {
|
|
109
|
+
get() {
|
|
110
|
+
callback();
|
|
111
|
+
return url[property];
|
|
112
|
+
},
|
|
113
|
+
enumerable: true,
|
|
114
|
+
configurable: true
|
|
115
|
+
});
|
|
116
|
+
tracked[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
117
|
+
return inspect(url, opts);
|
|
118
|
+
};
|
|
119
|
+
tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
120
|
+
return inspect(url.searchParams, opts);
|
|
121
|
+
};
|
|
122
|
+
if (!allow_hash) disable_hash(tracked);
|
|
123
|
+
return tracked;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Disallow access to `url.hash` on the server and in `load`
|
|
127
|
+
* @param {URL} url
|
|
128
|
+
*/
|
|
129
|
+
function disable_hash(url) {
|
|
130
|
+
allow_nodejs_console_log(url);
|
|
131
|
+
Object.defineProperty(url, "hash", { get() {
|
|
132
|
+
throw new Error("Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead");
|
|
133
|
+
} });
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Disallow access to `url.search` and `url.searchParams` during prerendering
|
|
137
|
+
* @param {URL} url
|
|
138
|
+
*/
|
|
139
|
+
function disable_search(url) {
|
|
140
|
+
allow_nodejs_console_log(url);
|
|
141
|
+
for (const property of ["search", "searchParams"]) Object.defineProperty(url, property, { get() {
|
|
142
|
+
throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
|
|
143
|
+
} });
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Allow URL to be console logged, bypassing disabled properties.
|
|
147
|
+
* @param {URL} url
|
|
148
|
+
*/
|
|
149
|
+
function allow_nodejs_console_log(url) {
|
|
150
|
+
url[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
151
|
+
return inspect(new URL(url), opts);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @param {RegExpMatchArray} match
|
|
156
|
+
* @param {import('types').RouteParam[]} params
|
|
157
|
+
* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
|
|
158
|
+
*/
|
|
159
|
+
function exec(match, params, matchers) {
|
|
160
|
+
/** @type {Record<string, string>} */
|
|
161
|
+
const result = {};
|
|
162
|
+
const values = match.slice(1);
|
|
163
|
+
const values_needing_match = values.filter((value) => value !== void 0);
|
|
164
|
+
let buffered = 0;
|
|
165
|
+
for (let i = 0; i < params.length; i += 1) {
|
|
166
|
+
const param = params[i];
|
|
167
|
+
let value = values[i - buffered];
|
|
168
|
+
if (param.chained && param.rest && buffered) {
|
|
169
|
+
value = values.slice(i - buffered, i + 1).filter((s) => s).join("/");
|
|
170
|
+
buffered = 0;
|
|
171
|
+
}
|
|
172
|
+
if (value === void 0) if (param.rest) value = "";
|
|
173
|
+
else continue;
|
|
174
|
+
if (!param.matcher || matchers[param.matcher](value)) {
|
|
175
|
+
result[param.name] = value;
|
|
176
|
+
const next_param = params[i + 1];
|
|
177
|
+
const next_value = values[i + 1];
|
|
178
|
+
if (next_param && !next_param.rest && next_param.optional && next_value && param.chained) buffered = 0;
|
|
179
|
+
if (!next_param && !next_value && Object.keys(result).length === values_needing_match.length) buffered = 0;
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
if (param.optional && param.chained) {
|
|
183
|
+
buffered++;
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (buffered) return;
|
|
189
|
+
return result;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Find the first route that matches the given path
|
|
193
|
+
* @template {{pattern: RegExp, params: import('types').RouteParam[]}} Route
|
|
194
|
+
* @param {string} path - The decoded pathname to match
|
|
195
|
+
* @param {Route[]} routes
|
|
196
|
+
* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
|
|
197
|
+
* @returns {{ route: Route, params: Record<string, string> } | null}
|
|
198
|
+
*/
|
|
199
|
+
function find_route(path, routes, matchers) {
|
|
200
|
+
for (const route of routes) {
|
|
201
|
+
const match = route.pattern.exec(path);
|
|
202
|
+
if (!match) continue;
|
|
203
|
+
const matched = exec(match, route.params, matchers);
|
|
204
|
+
if (matched) return {
|
|
205
|
+
route,
|
|
206
|
+
params: decode_params(matched)
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export { has_data_suffix as a, strip_data_suffix as b, add_data_suffix as c, decode_pathname as d, add_resolution_suffix as e, find_route as f, disable_search as g, has_resolution_suffix as h, make_trackable as m, normalize_path as n, resolve as r, strip_resolution_suffix as s };
|
|
213
|
+
//# sourceMappingURL=routing.js-y-tryuip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.js-y-tryuip.js","sources":["../../../../.svelte-kit/output/server/chunks/routing.js"],"sourcesContent":["//#region node_modules/@sveltejs/kit/src/runtime/pathname.js\nvar DATA_SUFFIX = \"/__data.json\";\nvar HTML_DATA_SUFFIX = \".html__data.json\";\n/** @param {string} pathname */\nfunction has_data_suffix(pathname) {\n\treturn pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);\n}\n/** @param {string} pathname */\nfunction add_data_suffix(pathname) {\n\tif (pathname.endsWith(\".html\")) return pathname.replace(/\\.html$/, HTML_DATA_SUFFIX);\n\treturn pathname.replace(/\\/$/, \"\") + DATA_SUFFIX;\n}\n/** @param {string} pathname */\nfunction strip_data_suffix(pathname) {\n\tif (pathname.endsWith(HTML_DATA_SUFFIX)) return pathname.slice(0, -16) + \".html\";\n\treturn pathname.slice(0, -12);\n}\nvar ROUTE_SUFFIX = \"/__route.js\";\n/**\n* @param {string} pathname\n* @returns {boolean}\n*/\nfunction has_resolution_suffix(pathname) {\n\treturn pathname.endsWith(ROUTE_SUFFIX);\n}\n/**\n* Convert a regular URL to a route to send to SvelteKit's server-side route resolution endpoint\n* @param {string} pathname\n* @returns {string}\n*/\nfunction add_resolution_suffix(pathname) {\n\treturn pathname.replace(/\\/$/, \"\") + ROUTE_SUFFIX;\n}\n/**\n* @param {string} pathname\n* @returns {string}\n*/\nfunction strip_resolution_suffix(pathname) {\n\treturn pathname.slice(0, -11);\n}\n//#endregion\n//#region node_modules/@sveltejs/kit/src/utils/url.js\n/**\n* Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n* @type {RegExp}\n*/\nvar SCHEME = /^[a-z][a-z\\d+\\-.]+:/i;\nvar internal = new URL(\"sveltekit-internal://\");\n/**\n* @param {string} base\n* @param {string} path\n*/\nfunction resolve(base, path) {\n\tif (path[0] === \"/\" && path[1] === \"/\") return path;\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n/**\n* @param {string} path\n* @param {import('types').TrailingSlash} trailing_slash\n*/\nfunction normalize_path(path, trailing_slash) {\n\tif (path === \"/\" || trailing_slash === \"ignore\") return path;\n\tif (trailing_slash === \"never\") return path.endsWith(\"/\") ? path.slice(0, -1) : path;\n\telse if (trailing_slash === \"always\" && !path.endsWith(\"/\")) return path + \"/\";\n\treturn path;\n}\n/**\n* Decode pathname excluding %25 to prevent further double decoding of params\n* @param {string} pathname\n*/\nfunction decode_pathname(pathname) {\n\treturn pathname.split(\"%25\").map(decodeURI).join(\"%25\");\n}\n/** @param {Record<string, string>} params */\nfunction decode_params(params) {\n\tfor (const key in params) params[key] = decodeURIComponent(params[key]);\n\treturn params;\n}\n/**\n* @param {URL} url\n* @param {() => void} callback\n* @param {(search_param: string) => void} search_params_callback\n* @param {boolean} [allow_hash]\n*/\nfunction make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\tObject.defineProperty(tracked, \"searchParams\", {\n\t\tvalue: new Proxy(tracked.searchParams, { get(obj, key) {\n\t\t\tif (key === \"get\" || key === \"getAll\" || key === \"has\") return (param, ...rest) => {\n\t\t\t\tsearch_params_callback(param);\n\t\t\t\treturn obj[key](param, ...rest);\n\t\t\t};\n\t\t\tcallback();\n\t\t\tconst value = Reflect.get(obj, key);\n\t\t\treturn typeof value === \"function\" ? value.bind(obj) : value;\n\t\t} }),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\t/**\n\t* URL properties that could change during the lifetime of the page,\n\t* which excludes things like `origin`\n\t* @type {(keyof URL)[]}\n\t*/\n\tconst tracked_url_properties = [\n\t\t\"href\",\n\t\t\"pathname\",\n\t\t\"search\",\n\t\t\"toString\",\n\t\t\"toJSON\"\n\t];\n\tif (allow_hash) tracked_url_properties.push(\"hash\");\n\tfor (const property of tracked_url_properties) Object.defineProperty(tracked, property, {\n\t\tget() {\n\t\t\tcallback();\n\t\t\treturn url[property];\n\t\t},\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\ttracked[Symbol.for(\"nodejs.util.inspect.custom\")] = (_depth, opts, inspect) => {\n\t\treturn inspect(url, opts);\n\t};\n\ttracked.searchParams[Symbol.for(\"nodejs.util.inspect.custom\")] = (_depth, opts, inspect) => {\n\t\treturn inspect(url.searchParams, opts);\n\t};\n\tif (!allow_hash) disable_hash(tracked);\n\treturn tracked;\n}\n/**\n* Disallow access to `url.hash` on the server and in `load`\n* @param {URL} url\n*/\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\tObject.defineProperty(url, \"hash\", { get() {\n\t\tthrow new Error(\"Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead\");\n\t} });\n}\n/**\n* Disallow access to `url.search` and `url.searchParams` during prerendering\n* @param {URL} url\n*/\nfunction disable_search(url) {\n\tallow_nodejs_console_log(url);\n\tfor (const property of [\"search\", \"searchParams\"]) Object.defineProperty(url, property, { get() {\n\t\tthrow new Error(`Cannot access url.${property} on a page with prerendering enabled`);\n\t} });\n}\n/**\n* Allow URL to be console logged, bypassing disabled properties.\n* @param {URL} url\n*/\nfunction allow_nodejs_console_log(url) {\n\turl[Symbol.for(\"nodejs.util.inspect.custom\")] = (_depth, opts, inspect) => {\n\t\treturn inspect(new URL(url), opts);\n\t};\n}\n//#endregion\n//#region node_modules/@sveltejs/kit/src/utils/routing.js\n/**\n* Returns `false` for `(group)` segments\n* @param {string} segment\n*/\nfunction affects_path(segment) {\n\treturn segment !== \"\" && !/^\\([^)]+\\)$/.test(segment);\n}\n/**\n* Splits a route id into its segments, removing segments that\n* don't affect the path (i.e. groups). The root route is represented by `/`\n* and will be returned as `['']`.\n* @param {string} route\n* @returns string[]\n*/\nfunction get_route_segments(route) {\n\treturn route.slice(1).split(\"/\").filter(affects_path);\n}\n/**\n* @param {RegExpMatchArray} match\n* @param {import('types').RouteParam[]} params\n* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers\n*/\nfunction exec(match, params, matchers) {\n\t/** @type {Record<string, string>} */\n\tconst result = {};\n\tconst values = match.slice(1);\n\tconst values_needing_match = values.filter((value) => value !== void 0);\n\tlet buffered = 0;\n\tfor (let i = 0; i < params.length; i += 1) {\n\t\tconst param = params[i];\n\t\tlet value = values[i - buffered];\n\t\tif (param.chained && param.rest && buffered) {\n\t\t\tvalue = values.slice(i - buffered, i + 1).filter((s) => s).join(\"/\");\n\t\t\tbuffered = 0;\n\t\t}\n\t\tif (value === void 0) if (param.rest) value = \"\";\n\t\telse continue;\n\t\tif (!param.matcher || matchers[param.matcher](value)) {\n\t\t\tresult[param.name] = value;\n\t\t\tconst next_param = params[i + 1];\n\t\t\tconst next_value = values[i + 1];\n\t\t\tif (next_param && !next_param.rest && next_param.optional && next_value && param.chained) buffered = 0;\n\t\t\tif (!next_param && !next_value && Object.keys(result).length === values_needing_match.length) buffered = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (param.optional && param.chained) {\n\t\t\tbuffered++;\n\t\t\tcontinue;\n\t\t}\n\t\treturn;\n\t}\n\tif (buffered) return;\n\treturn result;\n}\nvar basic_param_pattern = /\\[(\\[)?(\\.\\.\\.)?(\\w+?)(?:=(\\w+))?\\]\\]?/g;\n/**\n* Populate a route ID with params to resolve a pathname.\n* @example\n* ```js\n* resolveRoute(\n* `/blog/[slug]/[...somethingElse]`,\n* {\n* slug: 'hello-world',\n* somethingElse: 'something/else'\n* }\n* ); // `/blog/hello-world/something/else`\n* ```\n* @param {string} id\n* @param {Record<string, string | undefined>} params\n* @returns {string}\n*/\nfunction resolve_route(id, params) {\n\tconst segments = get_route_segments(id);\n\tconst has_id_trailing_slash = id != \"/\" && id.endsWith(\"/\");\n\treturn \"/\" + segments.map((segment) => segment.replace(basic_param_pattern, (_, optional, rest, name) => {\n\t\tconst param_value = params[name];\n\t\tif (!param_value) {\n\t\t\tif (optional) return \"\";\n\t\t\tif (rest && param_value !== void 0) return \"\";\n\t\t\tthrow new Error(`Missing parameter '${name}' in route ${id}`);\n\t\t}\n\t\tif (param_value.startsWith(\"/\") || param_value.endsWith(\"/\")) throw new Error(`Parameter '${name}' in route ${id} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);\n\t\treturn param_value;\n\t})).filter(Boolean).join(\"/\") + (has_id_trailing_slash ? \"/\" : \"\");\n}\n/**\n* Find the first route that matches the given path\n* @template {{pattern: RegExp, params: import('types').RouteParam[]}} Route\n* @param {string} path - The decoded pathname to match\n* @param {Route[]} routes\n* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers\n* @returns {{ route: Route, params: Record<string, string> } | null}\n*/\nfunction find_route(path, routes, matchers) {\n\tfor (const route of routes) {\n\t\tconst match = route.pattern.exec(path);\n\t\tif (!match) continue;\n\t\tconst matched = exec(match, route.params, matchers);\n\t\tif (matched) return {\n\t\t\troute,\n\t\t\tparams: decode_params(matched)\n\t\t};\n\t}\n\treturn null;\n}\n//#endregion\nexport { decode_pathname as a, normalize_path as c, add_resolution_suffix as d, has_data_suffix as f, strip_resolution_suffix as h, decode_params as i, resolve as l, strip_data_suffix as m, resolve_route as n, disable_search as o, has_resolution_suffix as p, SCHEME as r, make_trackable as s, find_route as t, add_data_suffix as u };\n"],"names":[],"mappings":"AAAA;AACA,IAAI,WAAW,GAAG,cAAc;AAChC,IAAI,gBAAgB,GAAG,kBAAkB;AACzC;AACA,SAAS,eAAe,CAAC,QAAQ,EAAE;AACnC,CAAC,OAAO,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,IAA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C;AACD,CAAC,OAAO,IAAI;AACZ;;;;"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { p as parse, s as stringify$1 } from './internal.js-BDBSzJId.js';
|
|
2
|
+
|
|
3
|
+
/** @import { StandardSchemaV1 } from '@standard-schema/spec' */
|
|
4
|
+
|
|
5
|
+
class HttpError {
|
|
6
|
+
/**
|
|
7
|
+
* @param {number} status
|
|
8
|
+
* @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body
|
|
9
|
+
*/
|
|
10
|
+
constructor(status, body) {
|
|
11
|
+
this.status = status;
|
|
12
|
+
if (typeof body === 'string') {
|
|
13
|
+
this.body = { message: body };
|
|
14
|
+
} else if (body) {
|
|
15
|
+
this.body = body;
|
|
16
|
+
} else {
|
|
17
|
+
this.body = { message: `Error: ${status}` };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
toString() {
|
|
22
|
+
return JSON.stringify(this.body);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class Redirect {
|
|
27
|
+
/**
|
|
28
|
+
* @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status
|
|
29
|
+
* @param {string} location
|
|
30
|
+
*/
|
|
31
|
+
constructor(status, location) {
|
|
32
|
+
try {
|
|
33
|
+
new Headers({ location });
|
|
34
|
+
} catch {
|
|
35
|
+
throw new Error(
|
|
36
|
+
`Invalid redirect location ${JSON.stringify(location)}: ` +
|
|
37
|
+
'this string contains characters that cannot be used in HTTP headers'
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
this.status = status;
|
|
42
|
+
this.location = location;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.
|
|
48
|
+
* `SvelteKitError` goes through `handleError`.
|
|
49
|
+
* @extends Error
|
|
50
|
+
*/
|
|
51
|
+
class SvelteKitError extends Error {
|
|
52
|
+
/**
|
|
53
|
+
* @param {number} status
|
|
54
|
+
* @param {string} text
|
|
55
|
+
* @param {string} message
|
|
56
|
+
*/
|
|
57
|
+
constructor(status, text, message) {
|
|
58
|
+
super(message);
|
|
59
|
+
this.status = status;
|
|
60
|
+
this.text = text;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @template [T=undefined]
|
|
66
|
+
*/
|
|
67
|
+
class ActionFailure {
|
|
68
|
+
/**
|
|
69
|
+
* @param {number} status
|
|
70
|
+
* @param {T} data
|
|
71
|
+
*/
|
|
72
|
+
constructor(status, data) {
|
|
73
|
+
this.status = status;
|
|
74
|
+
this.data = data;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//#region node_modules/@sveltejs/kit/src/utils/functions.js
|
|
79
|
+
function noop() {}
|
|
80
|
+
/**
|
|
81
|
+
* @template T
|
|
82
|
+
* @param {() => T} fn
|
|
83
|
+
*/
|
|
84
|
+
function once(fn) {
|
|
85
|
+
let done = false;
|
|
86
|
+
/** @type T */
|
|
87
|
+
let result;
|
|
88
|
+
return () => {
|
|
89
|
+
if (done) return result;
|
|
90
|
+
done = true;
|
|
91
|
+
return result = fn();
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region node_modules/@sveltejs/kit/src/runtime/utils.js
|
|
96
|
+
var text_encoder = new TextEncoder();
|
|
97
|
+
/**
|
|
98
|
+
* Like node's path.relative, but without using node
|
|
99
|
+
* @param {string} from
|
|
100
|
+
* @param {string} to
|
|
101
|
+
*/
|
|
102
|
+
function get_relative_path(from, to) {
|
|
103
|
+
const from_parts = from.split(/[/\\]/);
|
|
104
|
+
const to_parts = to.split(/[/\\]/);
|
|
105
|
+
from_parts.pop();
|
|
106
|
+
while (from_parts[0] === to_parts[0]) {
|
|
107
|
+
from_parts.shift();
|
|
108
|
+
to_parts.shift();
|
|
109
|
+
}
|
|
110
|
+
let i = from_parts.length;
|
|
111
|
+
while (i--) from_parts[i] = "..";
|
|
112
|
+
return from_parts.concat(to_parts).join("/");
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @param {Uint8Array} bytes
|
|
116
|
+
* @returns {string}
|
|
117
|
+
*/
|
|
118
|
+
function base64_encode(bytes) {
|
|
119
|
+
if (globalThis.Buffer) return globalThis.Buffer.from(bytes).toString("base64");
|
|
120
|
+
let binary = "";
|
|
121
|
+
for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
|
|
122
|
+
return btoa(binary);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @param {string} encoded
|
|
126
|
+
* @returns {Uint8Array}
|
|
127
|
+
*/
|
|
128
|
+
function base64_decode(encoded) {
|
|
129
|
+
if (globalThis.Buffer) {
|
|
130
|
+
const buffer = globalThis.Buffer.from(encoded, "base64");
|
|
131
|
+
return new Uint8Array(buffer);
|
|
132
|
+
}
|
|
133
|
+
const binary = atob(encoded);
|
|
134
|
+
const bytes = new Uint8Array(binary.length);
|
|
135
|
+
for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
|
|
136
|
+
return bytes;
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region node_modules/@sveltejs/kit/src/utils/error.js
|
|
140
|
+
/**
|
|
141
|
+
* @param {unknown} err
|
|
142
|
+
* @return {Error}
|
|
143
|
+
*/
|
|
144
|
+
function coalesce_to_error(err) {
|
|
145
|
+
return err instanceof Error || err && err.name && err.message ? err : new Error(JSON.stringify(err));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* This is an identity function that exists to make TypeScript less
|
|
149
|
+
* paranoid about people throwing things that aren't errors, which
|
|
150
|
+
* frankly is not something we should care about
|
|
151
|
+
* @param {unknown} error
|
|
152
|
+
*/
|
|
153
|
+
function normalize_error(error) {
|
|
154
|
+
return error;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @param {unknown} error
|
|
158
|
+
*/
|
|
159
|
+
function get_status(error) {
|
|
160
|
+
return error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @param {unknown} error
|
|
164
|
+
*/
|
|
165
|
+
function get_message(error) {
|
|
166
|
+
return error instanceof SvelteKitError ? error.text : "Internal Error";
|
|
167
|
+
}
|
|
168
|
+
var INVALIDATED_PARAM = "x-sveltekit-invalidated";
|
|
169
|
+
var TRAILING_SLASH_PARAM = "x-sveltekit-trailing-slash";
|
|
170
|
+
/**
|
|
171
|
+
* Try to `devalue.stringify` the data object using the provided transport encoders.
|
|
172
|
+
* @param {any} data
|
|
173
|
+
* @param {Transport} transport
|
|
174
|
+
*/
|
|
175
|
+
function stringify(data, transport) {
|
|
176
|
+
const encoders = Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode]));
|
|
177
|
+
return stringify$1(data, encoders);
|
|
178
|
+
}
|
|
179
|
+
var remote_object = "__skrao";
|
|
180
|
+
var remote_map = "__skram";
|
|
181
|
+
var remote_set = "__skras";
|
|
182
|
+
var remote_file = "__skraf";
|
|
183
|
+
/** @param {Transport} transport */
|
|
184
|
+
function create_remote_arg_revivers(transport) {
|
|
185
|
+
const remote_fns_revivers = {
|
|
186
|
+
/** @type {(value: unknown) => unknown} */
|
|
187
|
+
[remote_object]: (value) => value,
|
|
188
|
+
/** @type {(value: unknown) => Map<unknown, unknown>} */
|
|
189
|
+
[remote_map]: (value) => {
|
|
190
|
+
if (!Array.isArray(value)) throw new Error("Invalid data for Map reviver");
|
|
191
|
+
const map = /* @__PURE__ */ new Map();
|
|
192
|
+
for (const item of value) {
|
|
193
|
+
if (!Array.isArray(item) || item.length !== 2 || typeof item[0] !== "string" || typeof item[1] !== "string") throw new Error("Invalid data for Map reviver");
|
|
194
|
+
const [key, val] = item;
|
|
195
|
+
map.set(parse$1(key), parse$1(val));
|
|
196
|
+
}
|
|
197
|
+
return map;
|
|
198
|
+
},
|
|
199
|
+
/** @type {(value: unknown) => Set<unknown>} */
|
|
200
|
+
[remote_set]: (value) => {
|
|
201
|
+
if (!Array.isArray(value)) throw new Error("Invalid data for Set reviver");
|
|
202
|
+
const set = /* @__PURE__ */ new Set();
|
|
203
|
+
for (const item of value) {
|
|
204
|
+
if (typeof item !== "string") throw new Error("Invalid data for Set reviver");
|
|
205
|
+
set.add(parse$1(item));
|
|
206
|
+
}
|
|
207
|
+
return set;
|
|
208
|
+
},
|
|
209
|
+
/** @type {(value: any) => File} */
|
|
210
|
+
[remote_file]: (value) => {
|
|
211
|
+
if (!value || typeof value !== "object" || typeof value.name !== "string" || typeof value.type !== "string" || typeof value.size !== "number" || typeof value.lastModified !== "number" || !(value.data instanceof ArrayBuffer)) throw new Error("Invalid data for File reviver");
|
|
212
|
+
const { data, name, ...meta } = value;
|
|
213
|
+
return new File([data], name, meta);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
const all_revivers = {
|
|
217
|
+
...Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.decode])),
|
|
218
|
+
...remote_fns_revivers
|
|
219
|
+
};
|
|
220
|
+
/** @type {(data: string) => unknown} */
|
|
221
|
+
const parse$1 = (data) => parse(data, all_revivers);
|
|
222
|
+
return all_revivers;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Parses the argument (if any) for a remote function
|
|
226
|
+
* @param {string} string
|
|
227
|
+
* @param {Transport} transport
|
|
228
|
+
*/
|
|
229
|
+
function parse_remote_arg(string, transport) {
|
|
230
|
+
if (!string) return void 0;
|
|
231
|
+
const json_string = new TextDecoder().decode(base64_decode(string.replaceAll("-", "+").replaceAll("_", "/")));
|
|
232
|
+
return parse(json_string, create_remote_arg_revivers(transport));
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} id
|
|
236
|
+
* @param {string} payload
|
|
237
|
+
*/
|
|
238
|
+
function create_remote_key(id, payload) {
|
|
239
|
+
return id + "/" + payload;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @param {string} key
|
|
243
|
+
* @returns {{ id: string; payload: string }}
|
|
244
|
+
*/
|
|
245
|
+
function split_remote_key(key) {
|
|
246
|
+
const i = key.lastIndexOf("/");
|
|
247
|
+
if (i === -1) throw new Error(`Invalid remote key: ${key}`);
|
|
248
|
+
return {
|
|
249
|
+
id: key.slice(0, i),
|
|
250
|
+
payload: key.slice(i + 1)
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export { ActionFailure as A, HttpError as H, INVALIDATED_PARAM as I, Redirect as R, SvelteKitError as S, TRAILING_SLASH_PARAM as T, get_message as a, get_relative_path as b, coalesce_to_error as c, normalize_error as d, create_remote_key as e, split_remote_key as f, get_status as g, base64_encode as h, noop as n, once as o, parse_remote_arg as p, stringify as s, text_encoder as t };
|
|
255
|
+
//# sourceMappingURL=shared.js-BWXgl1Xf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js-BWXgl1Xf.js","sources":["../../../../node_modules/@sveltejs/kit/src/exports/internal/index.js","../../../../.svelte-kit/output/server/chunks/shared.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\ttry {\n\t\t\tnew Headers({ location });\n\t\t} catch {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid redirect location ${JSON.stringify(location)}: ` +\n\t\t\t\t\t'this string contains characters that cannot be used in HTTP headers'\n\t\t\t);\n\t\t}\n\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n","import { HttpError, SvelteKitError } from \"@sveltejs/kit/internal\";\nimport * as devalue from \"devalue\";\n//#region node_modules/@sveltejs/kit/src/utils/functions.js\nfunction noop() {}\n/**\n* @template T\n* @param {() => T} fn\n*/\nfunction once(fn) {\n\tlet done = false;\n\t/** @type T */\n\tlet result;\n\treturn () => {\n\t\tif (done) return result;\n\t\tdone = true;\n\t\treturn result = fn();\n\t};\n}\n//#endregion\n//#region node_modules/@sveltejs/kit/src/runtime/utils.js\nvar text_encoder = new TextEncoder();\n/**\n* Like node's path.relative, but without using node\n* @param {string} from\n* @param {string} to\n*/\nfunction get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop();\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = \"..\";\n\treturn from_parts.concat(to_parts).join(\"/\");\n}\n/**\n* @param {Uint8Array} bytes\n* @returns {string}\n*/\nfunction base64_encode(bytes) {\n\tif (globalThis.Buffer) return globalThis.Buffer.from(bytes).toString(\"base64\");\n\tlet binary = \"\";\n\tfor (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);\n\treturn btoa(binary);\n}\n/**\n* @param {string} encoded\n* @returns {Uint8Array}\n*/\nfunction base64_decode(encoded) {\n\tif (globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, \"base64\");\n\t\treturn new Uint8Array(buffer);\n\t}\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\tfor (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);\n\treturn bytes;\n}\n//#endregion\n//#region node_modules/@sveltejs/kit/src/utils/error.js\n/**\n* @param {unknown} err\n* @return {Error}\n*/\nfunction coalesce_to_error(err) {\n\treturn err instanceof Error || err && err.name && err.message ? err : new Error(JSON.stringify(err));\n}\n/**\n* This is an identity function that exists to make TypeScript less\n* paranoid about people throwing things that aren't errors, which\n* frankly is not something we should care about\n* @param {unknown} error\n*/\nfunction normalize_error(error) {\n\treturn error;\n}\n/**\n* @param {unknown} error\n*/\nfunction get_status(error) {\n\treturn error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;\n}\n/**\n* @param {unknown} error\n*/\nfunction get_message(error) {\n\treturn error instanceof SvelteKitError ? error.text : \"Internal Error\";\n}\n//#endregion\n//#region node_modules/@sveltejs/kit/src/runtime/shared.js\n/** @import { Transport } from '@sveltejs/kit' */\n/**\n* @param {string} route_id\n* @param {string} dep\n*/\nfunction validate_depends(route_id, dep) {\n\tconst match = /^(moz-icon|view-source|jar):/.exec(dep);\n\tif (match) console.warn(`${route_id}: Calling \\`depends('${dep}')\\` will throw an error in Firefox because \\`${match[1]}\\` is a special URI scheme`);\n}\nvar INVALIDATED_PARAM = \"x-sveltekit-invalidated\";\nvar TRAILING_SLASH_PARAM = \"x-sveltekit-trailing-slash\";\n/**\n* @param {any} data\n* @param {string} [location_description]\n*/\nfunction validate_load_response(data, location_description) {\n\tif (data != null && Object.getPrototypeOf(data) !== Object.prototype) throw new Error(`a load function ${location_description} returned ${typeof data !== \"object\" ? `a ${typeof data}` : data instanceof Response ? \"a Response object\" : Array.isArray(data) ? \"an array\" : \"a non-plain object\"}, but must return a plain object at the top level (i.e. \\`return {...}\\`)`);\n}\n/**\n* Try to `devalue.stringify` the data object using the provided transport encoders.\n* @param {any} data\n* @param {Transport} transport\n*/\nfunction stringify(data, transport) {\n\tconst encoders = Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode]));\n\treturn devalue.stringify(data, encoders);\n}\nvar object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(Object.prototype).sort().join(\"\\0\");\n/**\n* @param {unknown} thing\n* @returns {thing is Record<PropertyKey, unknown>}\n*/\nfunction is_plain_object(thing) {\n\tif (typeof thing !== \"object\" || thing === null) return false;\n\tconst proto = Object.getPrototypeOf(thing);\n\treturn proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null || Object.getOwnPropertyNames(proto).sort().join(\"\\0\") === object_proto_names;\n}\n/**\n* @param {Record<string, any>} value\n* @param {Map<object, any>} clones\n*/\nfunction to_sorted(value, clones) {\n\tconst clone = Object.getPrototypeOf(value) === null ? Object.create(null) : {};\n\tclones.set(value, clone);\n\tObject.defineProperty(clone, remote_arg_marker, { value: true });\n\tfor (const key of Object.keys(value).sort()) {\n\t\tconst property = value[key];\n\t\tObject.defineProperty(clone, key, {\n\t\t\tvalue: clones.get(property) ?? property,\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\twritable: true\n\t\t});\n\t}\n\treturn clone;\n}\nvar remote_object = \"__skrao\";\nvar remote_map = \"__skram\";\nvar remote_set = \"__skras\";\nvar remote_file = \"__skraf\";\nvar remote_regex_guard = \"__skrag\";\nvar remote_arg_marker = Symbol(remote_object);\n/**\n* @param {Transport} transport\n* @param {boolean} sort\n* @param {Map<any, any>} remote_arg_clones\n*/\nfunction create_remote_arg_reducers(transport, sort, remote_arg_clones) {\n\t/** @type {Record<string, (value: unknown) => unknown>} */\n\tconst remote_fns_reducers = { \n\t/** @param {unknown} value */\n[remote_regex_guard]: (value) => {\n\t\tif (value instanceof RegExp) throw new Error(\"Regular expressions are not valid remote function arguments\");\n\t} };\n\tif (sort) {\n\t\t/** @type {(value: unknown) => Array<[unknown, unknown]> | undefined} */\n\t\tremote_fns_reducers[remote_map] = (value) => {\n\t\t\tif (!(value instanceof Map)) return;\n\t\t\t/** @type {Array<[string, string]>} */\n\t\t\tconst entries = [];\n\t\t\tfor (const [key, val] of value) entries.push([stringify(key), stringify(val)]);\n\t\t\treturn entries.sort(([a1, a2], [b1, b2]) => {\n\t\t\t\tif (a1 < b1) return -1;\n\t\t\t\tif (a1 > b1) return 1;\n\t\t\t\tif (a2 < b2) return -1;\n\t\t\t\tif (a2 > b2) return 1;\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t};\n\t\t/** @type {(value: unknown) => unknown[] | undefined} */\n\t\tremote_fns_reducers[remote_set] = (value) => {\n\t\t\tif (!(value instanceof Set)) return;\n\t\t\t/** @type {string[]} */\n\t\t\tconst items = [];\n\t\t\tfor (const item of value) items.push(stringify(item));\n\t\t\titems.sort();\n\t\t\treturn items;\n\t\t};\n\t\t/** @type {(value: unknown) => Record<PropertyKey, unknown> | undefined} */\n\t\tremote_fns_reducers[remote_object] = (value) => {\n\t\t\tif (!is_plain_object(value)) return;\n\t\t\tif (Object.hasOwn(value, remote_arg_marker)) return;\n\t\t\tif (remote_arg_clones.has(value)) return remote_arg_clones.get(value);\n\t\t\treturn to_sorted(value, remote_arg_clones);\n\t\t};\n\t}\n\tconst all_reducers = {\n\t\t...Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode])),\n\t\t...remote_fns_reducers\n\t};\n\t/** @type {(value: unknown) => string} */\n\tconst stringify = (value) => devalue.stringify(value, all_reducers);\n\treturn all_reducers;\n}\n/** @param {Transport} transport */\nfunction create_remote_arg_revivers(transport) {\n\tconst remote_fns_revivers = {\n\t\t/** @type {(value: unknown) => unknown} */\n\t\t[remote_object]: (value) => value,\n\t\t/** @type {(value: unknown) => Map<unknown, unknown>} */\n\t\t[remote_map]: (value) => {\n\t\t\tif (!Array.isArray(value)) throw new Error(\"Invalid data for Map reviver\");\n\t\t\tconst map = /* @__PURE__ */ new Map();\n\t\t\tfor (const item of value) {\n\t\t\t\tif (!Array.isArray(item) || item.length !== 2 || typeof item[0] !== \"string\" || typeof item[1] !== \"string\") throw new Error(\"Invalid data for Map reviver\");\n\t\t\t\tconst [key, val] = item;\n\t\t\t\tmap.set(parse(key), parse(val));\n\t\t\t}\n\t\t\treturn map;\n\t\t},\n\t\t/** @type {(value: unknown) => Set<unknown>} */\n\t\t[remote_set]: (value) => {\n\t\t\tif (!Array.isArray(value)) throw new Error(\"Invalid data for Set reviver\");\n\t\t\tconst set = /* @__PURE__ */ new Set();\n\t\t\tfor (const item of value) {\n\t\t\t\tif (typeof item !== \"string\") throw new Error(\"Invalid data for Set reviver\");\n\t\t\t\tset.add(parse(item));\n\t\t\t}\n\t\t\treturn set;\n\t\t},\n\t\t/** @type {(value: any) => File} */\n\t\t[remote_file]: (value) => {\n\t\t\tif (!value || typeof value !== \"object\" || typeof value.name !== \"string\" || typeof value.type !== \"string\" || typeof value.size !== \"number\" || typeof value.lastModified !== \"number\" || !(value.data instanceof ArrayBuffer)) throw new Error(\"Invalid data for File reviver\");\n\t\t\tconst { data, name, ...meta } = value;\n\t\t\treturn new File([data], name, meta);\n\t\t}\n\t};\n\tconst all_revivers = {\n\t\t...Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.decode])),\n\t\t...remote_fns_revivers\n\t};\n\t/** @type {(data: string) => unknown} */\n\tconst parse = (data) => devalue.parse(data, all_revivers);\n\treturn all_revivers;\n}\n/**\n* Stringifies the argument (if any) for a remote function in such a way that\n* it is both a valid URL and a valid file name (necessary for prerendering).\n* @param {any} value\n* @param {Transport} transport\n*/\nfunction stringify_remote_arg(value, transport) {\n\tif (value === void 0) return \"\";\n\treturn url_friendly_base64_encode(devalue.stringify(value, create_remote_arg_reducers(transport, true, /* @__PURE__ */ new Map())));\n}\n/**\n* Base64-encodes `string` in such a way that the result is safe to use\n* as both a URI component and a filename\n* @param {string} string\n*/\nfunction url_friendly_base64_encode(string) {\n\treturn base64_encode(text_encoder.encode(string)).replaceAll(\"=\", \"\").replaceAll(\"+\", \"-\").replaceAll(\"/\", \"_\");\n}\n/**\n* Parses the argument (if any) for a remote function\n* @param {string} string\n* @param {Transport} transport\n*/\nfunction parse_remote_arg(string, transport) {\n\tif (!string) return void 0;\n\tconst json_string = new TextDecoder().decode(base64_decode(string.replaceAll(\"-\", \"+\").replaceAll(\"_\", \"/\")));\n\treturn devalue.parse(json_string, create_remote_arg_revivers(transport));\n}\n/**\n* @param {string} id\n* @param {string} payload\n*/\nfunction create_remote_key(id, payload) {\n\treturn id + \"/\" + payload;\n}\n/**\n* @param {string} key\n* @returns {{ id: string; payload: string }}\n*/\nfunction split_remote_key(key) {\n\tconst i = key.lastIndexOf(\"/\");\n\tif (i === -1) throw new Error(`Invalid remote key: ${key}`);\n\treturn {\n\t\tid: key.slice(0, i),\n\t\tpayload: key.slice(i + 1)\n\t};\n}\n//#endregion\nexport { text_encoder as _, split_remote_key as a, validate_depends as c, get_message as d, get_status as f, get_relative_path as g, base64_encode as h, parse_remote_arg as i, validate_load_response as l, base64_decode as m, TRAILING_SLASH_PARAM as n, stringify as o, normalize_error as p, create_remote_key as r, stringify_remote_arg as s, INVALIDATED_PARAM as t, coalesce_to_error as u, noop as v, once as y };\n"],"names":["devalue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