import root from '__GENERATED__/root.svelte'; import { respond } from '/home/retronyme/Drawing2Map-hf/frontend/.svelte-kit/runtime/server/index.js'; import { set_paths, assets, base } from '/home/retronyme/Drawing2Map-hf/frontend/.svelte-kit/runtime/paths.js'; import { set_prerendering } from '/home/retronyme/Drawing2Map-hf/frontend/.svelte-kit/runtime/env.js'; const template = ({ head, body, assets, nonce }) => "\n\n\t
\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t" + head + "\n\t\n\t\n\t\t" + body + "\n\t\t\n\n"; let read = null; set_paths({"base":"/static","assets":""}); let default_protocol = 'https'; // allow paths to be globally overridden // in svelte-kit preview and in prerendering export function override(settings) { default_protocol = settings.protocol || default_protocol; set_paths(settings.paths); set_prerendering(settings.prerendering); read = settings.read; } export class Server { constructor(manifest) { this.options = { csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}}, dev: false, floc: false, get_stack: error => String(error), // for security handle_error: (error, event) => { this.options.hooks.handleError({ error, event, // TODO remove for 1.0 // @ts-expect-error get request() { throw new Error('request in handleError has been replaced with event. See https://github.com/sveltejs/kit/pull/3384 for details'); } }); error.stack = this.options.get_stack(error); }, hooks: null, hydrate: true, manifest, method_override: {"parameter":"_method","allowed":[]}, paths: { base, assets }, prefix: assets + '/_app/immutable/', prerender: { default: true, enabled: true }, read, root, service_worker: null, router: true, template, template_contains_nonce: false, trailing_slash: "never" }; } async respond(request, options = {}) { if (!(request instanceof Request)) { throw new Error('The first argument to server.respond must be a Request object. See https://github.com/sveltejs/kit/pull/3384 for details'); } if (!this.options.hooks) { const module = await import("./hooks.js"); this.options.hooks = { getSession: module.getSession || (() => ({})), handle: module.handle || (({ event, resolve }) => resolve(event)), handleError: module.handleError || (({ error }) => console.error(error.stack)), externalFetch: module.externalFetch || fetch }; } return respond(request, this.options, options); } }