globalThis._importMeta_={url:import.meta.url,env:process.env};import 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/node-fetch-native/dist/polyfill.mjs'; import { Server } from 'node:http'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; import { mkdirSync } from 'node:fs'; import { parentPort, threadId } from 'node:worker_threads'; import { defineEventHandler, handleCacheHeaders, createEvent, eventHandler, setHeaders, sendRedirect, proxyRequest, setResponseStatus, getRequestHeader, setResponseHeader, getRequestHeaders, createApp, createRouter as createRouter$1, toNodeListener, fetchWithEvent, lazyEventHandler, getQuery as getQuery$1, createError } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/h3/dist/index.mjs'; import { createRenderer } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/vue-bundle-renderer/dist/runtime.mjs'; import { stringify, uneval } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/devalue/index.js'; import { renderToString } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/vue/server-renderer/index.mjs'; import { createFetch as createFetch$1, Headers } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/ofetch/dist/node.mjs'; import destr from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/destr/dist/index.mjs'; import { createCall, createFetch } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/unenv/runtime/fetch/index.mjs'; import { createHooks } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/hookable/dist/index.mjs'; import { snakeCase } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/scule/dist/index.mjs'; import { klona } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/klona/dist/index.mjs'; import defu, { defuFn } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/defu/dist/defu.mjs'; import { hash } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/ohash/dist/index.mjs'; import { parseURL, withoutBase, joinURL, getQuery, withQuery } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/ufo/dist/index.mjs'; import { createStorage, prefixStorage } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/unstorage/dist/index.mjs'; import unstorage_47drivers_47fs from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/unstorage/drivers/fs.mjs'; import { toRouteMatcher, createRouter } from 'file:///home/vrifox/git/okfde/stadtratmonitor-client/node_modules/radix3/dist/index.mjs'; const providers = [ ["APPVEYOR"], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"] ]; function detectProvider(env) { for (const provider of providers) { const envName = provider[1] || provider[0]; if (env[envName]) { return { name: provider[0].toLowerCase(), ...provider[2] }; } } if (env.SHELL && env.SHELL === "/bin/jsh") { return { name: "stackblitz", ci: false }; } return { name: "", ci: false }; } const processShim = typeof process !== "undefined" ? process : {}; const envShim = processShim.env || {}; const providerInfo = detectProvider(envShim); const nodeENV = typeof process !== "undefined" && process.env && "development" || ""; const platform = processShim.platform; const provider = providerInfo.name; const isCI = toBoolean(envShim.CI) || providerInfo.ci !== false; const hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY); toBoolean(envShim.DEBUG); const isTest = nodeENV === "test" || toBoolean(envShim.TEST); toBoolean(envShim.MINIMAL) || isCI || isTest || !hasTTY; const isWindows = /^win/i.test(platform); function toBoolean(val) { return val ? val !== "false" : false; } const inlineAppConfig = {}; const appConfig = defuFn(inlineAppConfig); const _inlineRuntimeConfig = { "app": { "baseURL": "/", "buildAssetsDir": "/_nuxt/", "cdnURL": "" }, "nitro": { "envPrefix": "NUXT_", "routeRules": { "/__nuxt_error": { "cache": false } } }, "public": {} }; const ENV_PREFIX = "NITRO_"; const ENV_PREFIX_ALT = _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? "_"; const _sharedRuntimeConfig = _deepFreeze( _applyEnv(klona(_inlineRuntimeConfig)) ); function useRuntimeConfig(event) { if (!event) { return _sharedRuntimeConfig; } if (event.context.nitro.runtimeConfig) { return event.context.nitro.runtimeConfig; } const runtimeConfig = klona(_inlineRuntimeConfig); _applyEnv(runtimeConfig); event.context.nitro.runtimeConfig = runtimeConfig; return runtimeConfig; } _deepFreeze(klona(appConfig)); function _getEnv(key) { const envKey = snakeCase(key).toUpperCase(); return destr( process.env[ENV_PREFIX + envKey] ?? process.env[ENV_PREFIX_ALT + envKey] ); } function _isObject(input) { return typeof input === "object" && !Array.isArray(input); } function _applyEnv(obj, parentKey = "") { for (const key in obj) { const subKey = parentKey ? `${parentKey}_${key}` : key; const envValue = _getEnv(subKey); if (_isObject(obj[key])) { if (_isObject(envValue)) { obj[key] = { ...obj[key], ...envValue }; } _applyEnv(obj[key], subKey); } else { obj[key] = envValue ?? obj[key]; } } return obj; } function _deepFreeze(object) { const propNames = Object.getOwnPropertyNames(object); for (const name of propNames) { const value = object[name]; if (value && typeof value === "object") { _deepFreeze(value); } } return Object.freeze(object); } new Proxy(/* @__PURE__ */ Object.create(null), { get: (_, prop) => { console.warn( "Please use `useRuntimeConfig()` instead of accessing config directly." ); const runtimeConfig = useRuntimeConfig(); if (prop in runtimeConfig) { return runtimeConfig[prop]; } return void 0; } }); const serverAssets = [{"baseName":"server","dir":"/home/vrifox/git/okfde/stadtratmonitor-client/server/assets"}]; const assets = createStorage(); for (const asset of serverAssets) { assets.mount(asset.baseName, unstorage_47drivers_47fs({ base: asset.dir })); } const storage = createStorage({}); storage.mount('/assets', assets); storage.mount('root', unstorage_47drivers_47fs({"driver":"fs","readOnly":true,"base":"/home/vrifox/git/okfde/stadtratmonitor-client","ignore":["**/node_modules/**","**/.git/**"]})); storage.mount('src', unstorage_47drivers_47fs({"driver":"fs","readOnly":true,"base":"/home/vrifox/git/okfde/stadtratmonitor-client/server","ignore":["**/node_modules/**","**/.git/**"]})); storage.mount('build', unstorage_47drivers_47fs({"driver":"fs","readOnly":false,"base":"/home/vrifox/git/okfde/stadtratmonitor-client/.nuxt","ignore":["**/node_modules/**","**/.git/**"]})); storage.mount('cache', unstorage_47drivers_47fs({"driver":"fs","readOnly":false,"base":"/home/vrifox/git/okfde/stadtratmonitor-client/.nuxt/cache","ignore":["**/node_modules/**","**/.git/**"]})); function useStorage(base = "") { return base ? prefixStorage(storage, base) : storage; } const defaultCacheOptions = { name: "_", base: "/cache", swr: true, maxAge: 1 }; function defineCachedFunction(fn, opts = {}) { opts = { ...defaultCacheOptions, ...opts }; const pending = {}; const group = opts.group || "nitro/functions"; const name = opts.name || fn.name || "_"; const integrity = hash([opts.integrity, fn, opts]); const validate = opts.validate || (() => true); async function get(key, resolver, shouldInvalidateCache) { const cacheKey = [opts.base, group, name, key + ".json"].filter(Boolean).join(":").replace(/:\/$/, ":index"); const entry = await useStorage().getItem(cacheKey) || {}; const ttl = (opts.maxAge ?? opts.maxAge ?? 0) * 1e3; if (ttl) { entry.expires = Date.now() + ttl; } const expired = shouldInvalidateCache || entry.integrity !== integrity || ttl && Date.now() - (entry.mtime || 0) > ttl || !validate(entry); const _resolve = async () => { const isPending = pending[key]; if (!isPending) { if (entry.value !== void 0 && (opts.staleMaxAge || 0) >= 0 && opts.swr === false) { entry.value = void 0; entry.integrity = void 0; entry.mtime = void 0; entry.expires = void 0; } pending[key] = Promise.resolve(resolver()); } try { entry.value = await pending[key]; } catch (error) { if (!isPending) { delete pending[key]; } throw error; } if (!isPending) { entry.mtime = Date.now(); entry.integrity = integrity; delete pending[key]; if (validate(entry)) { useStorage().setItem(cacheKey, entry).catch((error) => console.error("[nitro] [cache]", error)); } } }; const _resolvePromise = expired ? _resolve() : Promise.resolve(); if (opts.swr && entry.value) { _resolvePromise.catch(console.error); return entry; } return _resolvePromise.then(() => entry); } return async (...args) => { const shouldBypassCache = opts.shouldBypassCache?.(...args); if (shouldBypassCache) { return fn(...args); } const key = await (opts.getKey || getKey)(...args); const shouldInvalidateCache = opts.shouldInvalidateCache?.(...args); const entry = await get(key, () => fn(...args), shouldInvalidateCache); let value = entry.value; if (opts.transform) { value = await opts.transform(entry, ...args) || value; } return value; }; } const cachedFunction = defineCachedFunction; function getKey(...args) { return args.length > 0 ? hash(args, {}) : ""; } function escapeKey(key) { return key.replace(/[^\dA-Za-z]/g, ""); } function defineCachedEventHandler(handler, opts = defaultCacheOptions) { const _opts = { ...opts, getKey: async (event) => { const key = await opts.getKey?.(event); if (key) { return escapeKey(key); } const url = event.node.req.originalUrl || event.node.req.url; const friendlyName = escapeKey(decodeURI(parseURL(url).pathname)).slice( 0, 16 ); const urlHash = hash(url); return `${friendlyName}.${urlHash}`; }, validate: (entry) => { if (entry.value.code >= 400) { return false; } if (entry.value.body === void 0) { return false; } return true; }, group: opts.group || "nitro/handlers", integrity: [opts.integrity, handler] }; const _cachedHandler = cachedFunction( async (incomingEvent) => { const reqProxy = cloneWithProxy(incomingEvent.node.req, { headers: {} }); const resHeaders = {}; let _resSendBody; const resProxy = cloneWithProxy(incomingEvent.node.res, { statusCode: 200, writableEnded: false, writableFinished: false, headersSent: false, closed: false, getHeader(name) { return resHeaders[name]; }, setHeader(name, value) { resHeaders[name] = value; return this; }, getHeaderNames() { return Object.keys(resHeaders); }, hasHeader(name) { return name in resHeaders; }, removeHeader(name) { delete resHeaders[name]; }, getHeaders() { return resHeaders; }, end(chunk, arg2, arg3) { if (typeof chunk === "string") { _resSendBody = chunk; } if (typeof arg2 === "function") { arg2(); } if (typeof arg3 === "function") { arg3(); } return this; }, write(chunk, arg2, arg3) { if (typeof chunk === "string") { _resSendBody = chunk; } if (typeof arg2 === "function") { arg2(); } if (typeof arg3 === "function") { arg3(); } return this; }, writeHead(statusCode, headers2) { this.statusCode = statusCode; if (headers2) { for (const header in headers2) { this.setHeader(header, headers2[header]); } } return this; } }); const event = createEvent(reqProxy, resProxy); event.context = incomingEvent.context; const body = await handler(event) || _resSendBody; const headers = event.node.res.getHeaders(); headers.etag = headers.Etag || headers.etag || `W/"${hash(body)}"`; headers["last-modified"] = headers["Last-Modified"] || headers["last-modified"] || (/* @__PURE__ */ new Date()).toUTCString(); const cacheControl = []; if (opts.swr) { if (opts.maxAge) { cacheControl.push(`s-maxage=${opts.maxAge}`); } if (opts.staleMaxAge) { cacheControl.push(`stale-while-revalidate=${opts.staleMaxAge}`); } else { cacheControl.push("stale-while-revalidate"); } } else if (opts.maxAge) { cacheControl.push(`max-age=${opts.maxAge}`); } if (cacheControl.length > 0) { headers["cache-control"] = cacheControl.join(", "); } const cacheEntry = { code: event.node.res.statusCode, headers, body }; return cacheEntry; }, _opts ); return defineEventHandler(async (event) => { if (opts.headersOnly) { if (handleCacheHeaders(event, { maxAge: opts.maxAge })) { return; } return handler(event); } const response = await _cachedHandler(event); if (event.node.res.headersSent || event.node.res.writableEnded) { return response.body; } if (handleCacheHeaders(event, { modifiedTime: new Date(response.headers["last-modified"]), etag: response.headers.etag, maxAge: opts.maxAge })) { return; } event.node.res.statusCode = response.code; for (const name in response.headers) { event.node.res.setHeader(name, response.headers[name]); } return response.body; }); } function cloneWithProxy(obj, overrides) { return new Proxy(obj, { get(target, property, receiver) { if (property in overrides) { return overrides[property]; } return Reflect.get(target, property, receiver); }, set(target, property, value, receiver) { if (property in overrides) { overrides[property] = value; return true; } return Reflect.set(target, property, value, receiver); } }); } const cachedEventHandler = defineCachedEventHandler; const config = useRuntimeConfig(); const _routeRulesMatcher = toRouteMatcher( createRouter({ routes: config.nitro.routeRules }) ); function createRouteRulesHandler() { return eventHandler((event) => { const routeRules = getRouteRules(event); if (routeRules.headers) { setHeaders(event, routeRules.headers); } if (routeRules.redirect) { return sendRedirect( event, routeRules.redirect.to, routeRules.redirect.statusCode ); } if (routeRules.proxy) { let target = routeRules.proxy.to; if (target.endsWith("/**")) { let targetPath = event.path; const strpBase = routeRules.proxy._proxyStripBase; if (strpBase) { targetPath = withoutBase(targetPath, strpBase); } target = joinURL(target.slice(0, -3), targetPath); } else if (event.path.includes("?")) { const query = getQuery(event.path); target = withQuery(target, query); } return proxyRequest(event, target, { fetch: $fetch.raw, ...routeRules.proxy }); } }); } function getRouteRules(event) { event.context._nitro = event.context._nitro || {}; if (!event.context._nitro.routeRules) { const path = new URL(event.node.req.url, "http://localhost").pathname; event.context._nitro.routeRules = getRouteRulesForPath( withoutBase(path, useRuntimeConfig().app.baseURL) ); } return event.context._nitro.routeRules; } function getRouteRulesForPath(path) { return defu({}, ..._routeRulesMatcher.matchAll(path).reverse()); } const script = ` window.__NUXT_DEVTOOLS_TIME_METRIC__ = window.__NUXT_DEVTOOLS_TIME_METRIC__ || {} window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now() `; const _xVEBATBVOA = (function(nitro) { nitro.hooks.hook("render:html", (htmlContext) => { htmlContext.head.push(`

' + ((__t = ( messages.statusCode )) == null ? '' : __t) + '

' + ((__t = ( messages.description )) == null ? '' : __t) + '

' +
((__t = ( messages.stack )) == null ? '' : __t) +
'
'; return __p }; const _template = (messages) => _render({ messages: { ..._messages, ...messages } }); const template$1 = _template; const errorDev = /*#__PURE__*/Object.freeze({ __proto__: null, template: template$1 }); const appRootId = "__nuxt"; const appRootTag = "div"; function buildAssetsDir() { return useRuntimeConfig().app.buildAssetsDir; } function buildAssetsURL(...path) { return joinURL(publicAssetsURL(), buildAssetsDir(), ...path); } function publicAssetsURL(...path) { const publicBase = useRuntimeConfig().app.cdnURL || useRuntimeConfig().app.baseURL; return path.length ? joinURL(publicBase, ...path) : publicBase; } globalThis.__buildAssetsURL = buildAssetsURL; globalThis.__publicAssetsURL = publicAssetsURL; const getClientManifest = () => import('/home/vrifox/git/okfde/stadtratmonitor-client/.nuxt/dist/server/client.manifest.mjs').then((r) => r.default || r).then((r) => typeof r === "function" ? r() : r); const getStaticRenderedHead = () => Promise.resolve().then(function () { return _virtual__headStatic$1; }).then((r) => r.default || r); const getServerEntry = () => import('/home/vrifox/git/okfde/stadtratmonitor-client/.nuxt/dist/server/server.mjs').then((r) => r.default || r); const getSSRStyles = lazyCachedFunction(() => Promise.resolve().then(function () { return styles$1; }).then((r) => r.default || r)); const getSSRRenderer = lazyCachedFunction(async () => { const manifest = await getClientManifest(); if (!manifest) { throw new Error("client.manifest is not available"); } const createSSRApp = await getServerEntry(); if (!createSSRApp) { throw new Error("Server bundle is not available"); } const options = { manifest, renderToString: renderToString$1, buildAssetsURL }; const renderer = createRenderer(createSSRApp, options); async function renderToString$1(input, context) { const html = await renderToString(input, context); if (process.env.NUXT_VITE_NODE_OPTIONS) { renderer.rendererContext.updateManifest(await getClientManifest()); } return `<${appRootTag} id="${appRootId}">${html}`; } return renderer; }); const getSPARenderer = lazyCachedFunction(async () => { const manifest = await getClientManifest(); const spaTemplate = await Promise.resolve().then(function () { return _virtual__spaTemplate; }).then((r) => r.template).catch(() => ""); const options = { manifest, renderToString: () => `<${appRootTag} id="${appRootId}">${spaTemplate}`, buildAssetsURL }; const renderer = createRenderer(() => () => { }, options); const result = await renderer.renderToString({}); const renderToString = (ssrContext) => { const config = useRuntimeConfig(); ssrContext.modules = ssrContext.modules || /* @__PURE__ */ new Set(); ssrContext.payload = { _errors: {}, serverRendered: false, data: {}, state: {} }; ssrContext.config = { public: config.public, app: config.app }; ssrContext.renderMeta = ssrContext.renderMeta ?? getStaticRenderedHead; return Promise.resolve(result); }; return { rendererContext: renderer.rendererContext, renderToString }; }); const PAYLOAD_URL_RE = /\/_payload(\.[a-zA-Z0-9]+)?.json(\?.*)?$/ ; const renderer = defineRenderHandler(async (event) => { const nitroApp = useNitroApp(); const ssrError = event.node.req.url?.startsWith("/__nuxt_error") ? getQuery$1(event) : null; if (ssrError && ssrError.statusCode) { ssrError.statusCode = parseInt(ssrError.statusCode); } if (ssrError && event.node.req.socket.readyState !== "readOnly") { throw createError({ statusCode: 404, statusMessage: "Page Not Found: /__nuxt_error" }); } const islandContext = void 0; let url = ssrError?.url || islandContext?.url || event.node.req.url; const isRenderingPayload = PAYLOAD_URL_RE.test(url) && !islandContext; if (isRenderingPayload) { url = url.substring(0, url.lastIndexOf("/")) || "/"; event.node.req.url = url; } const routeOptions = getRouteRules(event); const ssrContext = { url, event, runtimeConfig: useRuntimeConfig(), noSSR: event.context.nuxt?.noSSR || routeOptions.ssr === false || (false), error: !!ssrError, nuxt: void 0, /* NuxtApp */ payload: ssrError ? { error: ssrError } : {}, _payloadReducers: {}, islandContext }; const renderer = ssrContext.noSSR ? await getSPARenderer() : await getSSRRenderer(); const _rendered = await renderer.renderToString(ssrContext).catch(async (error) => { if (ssrContext._renderResponse && error.message === "skipping render") { return {}; } const _err = !ssrError && ssrContext.payload?.error || error; await ssrContext.nuxt?.hooks.callHook("app:error", _err); throw _err; }); await ssrContext.nuxt?.hooks.callHook("app:rendered", { ssrContext, renderResult: _rendered }); if (ssrContext._renderResponse) { return ssrContext._renderResponse; } if (ssrContext.payload?.error && !ssrError) { throw ssrContext.payload.error; } if (isRenderingPayload) { const response2 = renderPayloadResponse(ssrContext); return response2; } const renderedMeta = await ssrContext.renderMeta?.() ?? {}; const inlinedStyles = Boolean(islandContext) ? await renderInlineStyles(ssrContext.modules ?? ssrContext._registeredComponents ?? []) : ""; const NO_SCRIPTS = routeOptions.experimentalNoScripts; const htmlContext = { island: Boolean(islandContext), htmlAttrs: normalizeChunks([renderedMeta.htmlAttrs]), head: normalizeChunks([ renderedMeta.headTags, null , NO_SCRIPTS ? null : _rendered.renderResourceHints(), _rendered.renderStyles(), inlinedStyles, ssrContext.styles ]), bodyAttrs: normalizeChunks([renderedMeta.bodyAttrs]), bodyPrepend: normalizeChunks([ renderedMeta.bodyScriptsPrepend, ssrContext.teleports?.body ]), body: [_rendered.html], bodyAppend: normalizeChunks([ NO_SCRIPTS ? void 0 : renderPayloadJsonScript({ id: "__NUXT_DATA__", ssrContext, data: ssrContext.payload }) , routeOptions.experimentalNoScripts ? void 0 : _rendered.renderScripts(), // Note: bodyScripts may contain tags other than