From f8e53d7c693ac3c944b7ab0d1817644935056967 Mon Sep 17 00:00:00 2001 From: Vri Date: Wed, 26 Jul 2023 20:04:00 +0200 Subject: [PATCH] initialize Nuxt --- .gitignore | 1 + .nuxt/app.config.mjs | 8 + .nuxt/components.d.ts | 80 + .nuxt/dev/index.mjs | 1051 +++++ .nuxt/dev/index.mjs.map | 1 + .nuxt/dist/server/client.manifest.json | 15 + .nuxt/dist/server/client.manifest.mjs | 1 + .nuxt/dist/server/server.mjs | 1 + .nuxt/imports.d.ts | 4 + .nuxt/nuxt.d.ts | 17 + .nuxt/nuxt.json | 9 + .nuxt/schema/nuxt.schema.d.ts | 17 + .nuxt/schema/nuxt.schema.json | 3 + .nuxt/tsconfig.json | 96 + .nuxt/tsconfig.server.json | 61 + .nuxt/types/app.config.d.ts | 29 + .nuxt/types/imports.d.ts | 388 ++ .nuxt/types/nitro-config.d.ts | 14 + .nuxt/types/nitro-imports.d.ts | 103 + .nuxt/types/nitro-nuxt.d.ts | 26 + .nuxt/types/nitro-routes.d.ts | 11 + .nuxt/types/nitro.d.ts | 3 + .nuxt/types/plugins.d.ts | 25 + .nuxt/types/schema.d.ts | 25 + .nuxt/types/vue-shim.d.ts | 5 + .nuxt/vue-router.d.ts | 1 + README.md | 63 +- app.vue | 5 + nuxt.config.ts | 4 + package.json | 16 + public/favicon.ico | Bin 0 -> 4286 bytes server/tsconfig.json | 3 + tsconfig.json | 4 + yarn.lock | 5933 ++++++++++++++++++++++++ 34 files changed, 8022 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .nuxt/app.config.mjs create mode 100644 .nuxt/components.d.ts create mode 100644 .nuxt/dev/index.mjs create mode 100644 .nuxt/dev/index.mjs.map create mode 100644 .nuxt/dist/server/client.manifest.json create mode 100644 .nuxt/dist/server/client.manifest.mjs create mode 100644 .nuxt/dist/server/server.mjs create mode 100644 .nuxt/imports.d.ts create mode 100644 .nuxt/nuxt.d.ts create mode 100644 .nuxt/nuxt.json create mode 100644 .nuxt/schema/nuxt.schema.d.ts create mode 100644 .nuxt/schema/nuxt.schema.json create mode 100644 .nuxt/tsconfig.json create mode 100644 .nuxt/tsconfig.server.json create mode 100644 .nuxt/types/app.config.d.ts create mode 100644 .nuxt/types/imports.d.ts create mode 100644 .nuxt/types/nitro-config.d.ts create mode 100644 .nuxt/types/nitro-imports.d.ts create mode 100644 .nuxt/types/nitro-nuxt.d.ts create mode 100644 .nuxt/types/nitro-routes.d.ts create mode 100644 .nuxt/types/nitro.d.ts create mode 100644 .nuxt/types/plugins.d.ts create mode 100644 .nuxt/types/schema.d.ts create mode 100644 .nuxt/types/vue-shim.d.ts create mode 100644 .nuxt/vue-router.d.ts create mode 100644 app.vue create mode 100644 nuxt.config.ts create mode 100644 package.json create mode 100644 public/favicon.ico create mode 100644 server/tsconfig.json create mode 100644 tsconfig.json create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30bc162 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/node_modules \ No newline at end of file diff --git a/.nuxt/app.config.mjs b/.nuxt/app.config.mjs new file mode 100644 index 0000000..633c768 --- /dev/null +++ b/.nuxt/app.config.mjs @@ -0,0 +1,8 @@ + +import { defuFn } from '/home/vrifox/git/okfde/stadtratmonitor-client/node_modules/defu/dist/defu.mjs' + +const inlineConfig = {} + + + +export default /* #__PURE__ */ defuFn(inlineConfig) diff --git a/.nuxt/components.d.ts b/.nuxt/components.d.ts new file mode 100644 index 0000000..42b5828 --- /dev/null +++ b/.nuxt/components.d.ts @@ -0,0 +1,80 @@ +// Generated by components discovery +declare module 'vue' { + export interface GlobalComponents { + 'NuxtWelcome': typeof import("../node_modules/@nuxt/ui-templates/dist/templates/welcome.vue")['default'] + 'NuxtLayout': typeof import("../node_modules/nuxt/dist/app/components/layout")['default'] + 'NuxtErrorBoundary': typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] + 'ClientOnly': typeof import("../node_modules/nuxt/dist/app/components/client-only")['default'] + 'DevOnly': typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default'] + 'ServerPlaceholder': typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default'] + 'NuxtLink': typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default'] + 'NuxtLoadingIndicator': typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] + 'NuxtPage': typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] + 'NoScript': typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript'] + 'Link': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link'] + 'Base': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base'] + 'Title': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title'] + 'Meta': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta'] + 'Style': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style'] + 'Head': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head'] + 'Html': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html'] + 'Body': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body'] + 'LazyNuxtWelcome': typeof import("../node_modules/@nuxt/ui-templates/dist/templates/welcome.vue")['default'] + 'LazyNuxtLayout': typeof import("../node_modules/nuxt/dist/app/components/layout")['default'] + 'LazyNuxtErrorBoundary': typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] + 'LazyClientOnly': typeof import("../node_modules/nuxt/dist/app/components/client-only")['default'] + 'LazyDevOnly': typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default'] + 'LazyServerPlaceholder': typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default'] + 'LazyNuxtLink': typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default'] + 'LazyNuxtLoadingIndicator': typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] + 'LazyNuxtPage': typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] + 'LazyNoScript': typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript'] + 'LazyLink': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link'] + 'LazyBase': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base'] + 'LazyTitle': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title'] + 'LazyMeta': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta'] + 'LazyStyle': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style'] + 'LazyHead': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head'] + 'LazyHtml': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html'] + 'LazyBody': typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body'] + } +} + +export const NuxtWelcome: typeof import("../node_modules/@nuxt/ui-templates/dist/templates/welcome.vue")['default'] +export const NuxtLayout: typeof import("../node_modules/nuxt/dist/app/components/layout")['default'] +export const NuxtErrorBoundary: typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] +export const ClientOnly: typeof import("../node_modules/nuxt/dist/app/components/client-only")['default'] +export const DevOnly: typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default'] +export const ServerPlaceholder: typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default'] +export const NuxtLink: typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default'] +export const NuxtLoadingIndicator: typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] +export const NuxtPage: typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] +export const NoScript: typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript'] +export const Link: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link'] +export const Base: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base'] +export const Title: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title'] +export const Meta: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta'] +export const Style: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style'] +export const Head: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head'] +export const Html: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html'] +export const Body: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body'] +export const LazyNuxtWelcome: typeof import("../node_modules/@nuxt/ui-templates/dist/templates/welcome.vue")['default'] +export const LazyNuxtLayout: typeof import("../node_modules/nuxt/dist/app/components/layout")['default'] +export const LazyNuxtErrorBoundary: typeof import("../node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] +export const LazyClientOnly: typeof import("../node_modules/nuxt/dist/app/components/client-only")['default'] +export const LazyDevOnly: typeof import("../node_modules/nuxt/dist/app/components/dev-only")['default'] +export const LazyServerPlaceholder: typeof import("../node_modules/nuxt/dist/app/components/server-placeholder")['default'] +export const LazyNuxtLink: typeof import("../node_modules/nuxt/dist/app/components/nuxt-link")['default'] +export const LazyNuxtLoadingIndicator: typeof import("../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] +export const LazyNuxtPage: typeof import("../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] +export const LazyNoScript: typeof import("../node_modules/nuxt/dist/head/runtime/components")['NoScript'] +export const LazyLink: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Link'] +export const LazyBase: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Base'] +export const LazyTitle: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Title'] +export const LazyMeta: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Meta'] +export const LazyStyle: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Style'] +export const LazyHead: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Head'] +export const LazyHtml: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Html'] +export const LazyBody: typeof import("../node_modules/nuxt/dist/head/runtime/components")['Body'] + +export const componentNames: string[] diff --git a/.nuxt/dev/index.mjs b/.nuxt/dev/index.mjs new file mode 100644 index 0000000..af623ad --- /dev/null +++ b/.nuxt/dev/index.mjs @@ -0,0 +1,1051 @@ +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