import "./_chunks/rolldown-runtime.mjs"; import { E as CompilerOptions, a as SerializableHead, h as KeepAliveProps, i as RenderSSRHeadOptions, n as DataKeys, r as GlobalAttributes, s as TransitionProps, t as AriaAttributes, u as AppConfig$1 } from "./_chunks/libs/@unhead/vue.mjs"; import { G as TransformOptions, H as ServerOptions$1, U as UserConfig, W as ViteDevServer, r as AssetURLTagConfig, t as Options$1 } from "./_chunks/libs/@vitejs/plugin-vue-jsx.mjs"; import { t as Options$2 } from "./_chunks/libs/@vitejs/plugin-vue.mjs"; import { n as Schema, r as SchemaDefinition, t as InputObject } from "./_chunks/libs/untyped.mjs"; import { t as SnakeCase } from "./_chunks/libs/scule.mjs"; import { i as ChokidarOptions, n as ResolvedConfig, r as SourceOptions, t as DotenvOptions } from "./_chunks/libs/c12.mjs"; import "./_chunks/libs/open.mjs"; import { t as PluginVisualizerOptions } from "./_chunks/libs/rollup-plugin-visualizer.mjs"; import { t as TransformerOptions } from "./_chunks/libs/unctx.mjs"; import { t as CompatibilityDateSpec } from "./_chunks/libs/compatx.mjs"; import { t as H3CorsOptions } from "./_chunks/libs/h3.mjs"; import { t as FetchOptions } from "./_chunks/libs/ofetch.mjs"; import "./_chunks/libs/autoprefixer.mjs"; import { t as RawVueCompilerOptions } from "./_chunks/libs/@vue/language-core.mjs"; import "./_chunks/libs/css-minimizer-webpack-plugin.mjs"; import "./_chunks/libs/mini-css-extract-plugin.mjs"; import { t as LoaderOptions } from "./_chunks/libs/esbuild-loader.mjs"; import "./_chunks/libs/@types/pug.mjs"; import { t as VueLoaderOptions } from "./_chunks/libs/vue-loader.mjs"; import "./_chunks/libs/webpack-dev-middleware.mjs"; import { t as TransformOptions$1 } from "./_chunks/libs/oxc-transform.mjs"; import { i as RouterHistory, n as RouteLocationRaw, r as RouteRecordRaw, t as RouterOptions$1 } from "./_chunks/libs/vue-router.mjs"; import { t as Manifest } from "./_chunks/libs/vue-bundle-renderer.mjs"; import { i as UnimportOptions, n as InlinePreset, r as Unimport, t as Import } from "./_chunks/libs/unimport.mjs"; import { Defu } from "defu"; import { TSConfig } from "pkg-types"; import { IncomingMessage, Server, ServerResponse } from "node:http"; import { Server as Server$1 } from "node:https"; import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer"; import { NuxtLinkOptions } from "nuxt/app"; import { ClientOptions, MiddlewareOptions } from "webpack-hot-middleware"; import { AsyncLocalStorage } from "node:async_hooks"; import { Hookable } from "hookable"; //#region src/types/compatibility.d.ts interface NuxtCompatibility { /** * Required nuxt version in semver format. * @example `^3.2.0` or `>=3.13.0`. */ nuxt?: string; /** * Mark a builder as incompatible, or require a particular version. * * @example * ```ts * export default defineNuxtModule({ * meta: { * name: 'my-module', * compatibility: { * builder: { * // marking as incompatible * webpack: false, * // you can require a (semver-compatible) version * vite: '^5' * } * } * } * // ... * }) * ``` */ builder?: Partial>; } interface NuxtCompatibilityIssue { name: string; message: string; } interface NuxtCompatibilityIssues extends Array { /** * Return formatted error message. */ toString(): string; } //#endregion //#region src/types/components.d.ts interface ComponentMeta { [key: string]: unknown; } interface Component { pascalName: string; kebabName: string; export: string; filePath: string; shortPath: string; chunkName: string; prefetch: boolean; preload: boolean; global?: boolean | "sync"; island?: boolean; meta?: ComponentMeta; mode?: "client" | "server" | "all"; /** * This number allows configuring the behavior of overriding Nuxt components. * If multiple components are provided with the same name, then higher priority * components will be used instead of lower priority components. */ priority?: number; /** * Path to component's declaration file * Used for type generation when different from filePath * @default filePath */ declarationPath?: string; /** * Allow bypassing client/server transforms for internal Nuxt components like * ServerPlaceholder and NuxtClientFallback. * * @internal */ _raw?: boolean; } interface ScanDir { /** * Path (absolute or relative) to the directory containing your components. * You can use Nuxt aliases (~ or @) to refer to directories inside project or directly use an npm package path similar to require. */ path: string; /** * Accept Pattern that will be run against specified path. */ pattern?: string | string[]; /** * Ignore patterns that will be run against specified path. */ ignore?: string[]; /** * Prefix all matched components. */ prefix?: string; /** * Prefix component name by its path. */ pathPrefix?: boolean; /** * These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. * Learn more on webpack documentation: https://webpack.js.org/api/module-methods/#magic-comments */ prefetch?: boolean; /** * These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. * Learn more on webpack documentation: https://webpack.js.org/api/module-methods/#magic-comments */ preload?: boolean; /** * This flag indicates, component should be loaded async (with a separate chunk) regardless of using Lazy prefix or not. */ isAsync?: boolean; extendComponent?: (component: Component) => Promise | (Component | void); /** * If enabled, registers components to be globally available. * */ global?: boolean; /** * If enabled, registers components as islands */ island?: boolean; } interface ComponentsDir extends ScanDir { /** * Watch specified path for changes, including file additions and file deletions. */ watch?: boolean; /** * Extensions supported by Nuxt builder. */ extensions?: string[]; /** * Transpile specified path using build.transpile. * By default ('auto') it will set transpile: true if node_modules/ is in path. */ transpile?: "auto" | boolean; /** * This number allows configuring the behavior of overriding Nuxt components. * It will be inherited by any components within the directory. * * If multiple components are provided with the same name, then higher priority * components will be used instead of lower priority components. */ priority?: number; } interface ComponentsOptions { dirs: (string | ComponentsDir)[]; /** * The default value for whether to globally register components. * * When components are registered globally, they will still be directly imported where used, * but they can also be used dynamically, for example ``. * * This can be overridden by an individual component directory entry. */ global?: boolean; /** * Whether to write metadata to the build directory with information about the components that * are auto-registered in your app. */ generateMetadata?: boolean; loader?: boolean; transform?: { exclude?: RegExp[]; include?: RegExp[]; }; } //#endregion //#region src/types/compiler.d.ts interface KeyedFunction { /** * The name of the function. * * Use 'default' to target a module's default export. In that case, the callable name * is derived from the filename (camel-cased) for matching during analysis. */ name: string; /** * The path to the file where the function is defined. * You can use Nuxt aliases (~ or @) to refer to directories inside the project or directly use an npm package path similar to require. */ source: string; /** * The maximum number of arguments the function can accept. * In the case that the function is called with fewer arguments than this number, * the compiler will inject an auto-generated key as an additional argument. * * The key is unique based on the location of the function being invoked within the file. * * @example `{ name: 'useKey', source: '~/composables/useKey', argumentLength: 2 }` * * ```ts * useKey() // will be transformed to: useKey('\$KzLSZ0O59L') * useKey('first') // will be transformed to: useKey('first', '\$KzLSZ0O59L') * useKey('first', 'second') // will not be transformed * ``` */ argumentLength: number; } //#endregion //#region src/types/router.d.ts type RouterOptions = Partial> & { history?: (baseURL?: string) => RouterHistory | null | undefined; routes?: (_routes: RouterOptions$1["routes"]) => RouterOptions$1["routes"] | Promise; hashMode?: boolean; scrollBehaviorType?: "smooth" | "auto"; }; type RouterConfig = RouterOptions; /** * Only JSON serializable router options are configurable from nuxt config */ type RouterConfigSerializable = Pick; //#endregion //#region src/types/module.d.ts interface ModuleMeta { /** Module name. */ name?: string; /** Module version. */ version?: string; /** * The configuration key used within `nuxt.config` for this module's options. * For example, `@nuxtjs/axios` uses `axios`. */ configKey?: string; /** * Constraints for the versions of Nuxt or features this module requires. */ compatibility?: NuxtCompatibility; /** * Fully resolved path used internally by Nuxt. Do not depend on this value. * @internal */ rawPath?: string; /** * Whether the module has been disabled in the Nuxt configuration. * @internal */ disabled?: boolean; [key: string]: unknown; } /** The options received. */ type ModuleOptions = Record; type ModuleSetupInstallResult = { /** * Timing information for the initial setup */ timings?: { /** Total time took for module setup in ms */setup?: number; [key: string]: number | undefined; }; }; type Awaitable = T | Promise; type Prettify = { [K in keyof T]: T[K] } & {}; type ModuleSetupReturn = Awaitable; type ResolvedModuleOptions> = Prettify, [Partial, TOptionsDefaults]>>; interface ModuleDependencyMeta> { version?: string; overrides?: Partial; defaults?: Partial; optional?: boolean; } interface ModuleDependencies { [key: string]: ModuleDependencyMeta>; } /** Module definition passed to 'defineNuxtModule(...)' or 'defineNuxtModule().with(...)'. */ interface ModuleDefinition, TWith extends boolean> { meta?: ModuleMeta; defaults?: TOptionsDefaults | ((nuxt: Nuxt) => Awaitable); schema?: TOptions; hooks?: Partial; moduleDependencies?: ModuleDependencies | ((nuxt: Nuxt) => Awaitable); onInstall?: (nuxt: Nuxt) => Awaitable; onUpgrade?: (nuxt: Nuxt, options: TOptions, previousVersion: string) => Awaitable; setup?: (this: void, resolvedOptions: TWith extends true ? ResolvedModuleOptions : TOptions, nuxt: Nuxt) => ModuleSetupReturn; } interface NuxtModule = Partial, TWith extends boolean = false> { (this: void, resolvedOptions: TWith extends true ? ResolvedModuleOptions : TOptions, nuxt: Nuxt): ModuleSetupReturn; getOptions?: (inlineOptions?: Partial, nuxt?: Nuxt) => Promise : TOptions>; getModuleDependencies?: (nuxt: Nuxt) => Awaitable | undefined; getMeta?: () => Promise; onInstall?: (nuxt: Nuxt) => Awaitable; onUpgrade?: (nuxt: Nuxt, options: TWith extends true ? ResolvedModuleOptions : TOptions, previousVersion: string) => Awaitable; } //#endregion //#region src/types/debug.d.ts interface NuxtDebugContext { /** * Module mutation records to the `nuxt` instance. */ moduleMutationRecords?: NuxtDebugModuleMutationRecord[]; } interface NuxtDebugModuleMutationRecord { module: NuxtModule; keys: (string | symbol)[]; target: "nuxt.options"; value: any; method?: string; timestamp: number; } interface NuxtDebugOptions { /** Debug for Nuxt templates */ templates?: boolean; /** Debug for modules setup timings */ modules?: boolean; /** Debug for file watchers */ watchers?: boolean; /** Debug for production hydration mismatch */ hydration?: boolean; /** Debug for Vue Router */ router?: boolean; /** Debug for hooks, can be set to `true` or an object with `server` and `client` keys */ hooks?: boolean | { server?: boolean; client?: boolean; }; } //#endregion //#region src/types/nuxt.d.ts interface NuxtPlugin { /** @deprecated use mode */ ssr?: boolean; src: string; mode?: "all" | "server" | "client"; /** * This allows more granular control over plugin order and should only be used by advanced users. * Lower numbers run first, and user plugins default to `0`. * * Default Nuxt priorities can be seen at [here](https://github.com/nuxt/nuxt/blob/9904849bc87c53dfbd3ea3528140a5684c63c8d8/packages/nuxt/src/core/plugins/plugin-metadata.ts#L15-L34). */ order?: number; /** * @internal */ name?: string; } type TemplateDefaultOptions = Record; interface NuxtTemplate { /** resolved output file path (generated) */ dst?: string; /** The target filename once the template is copied into the Nuxt buildDir */ filename?: string; /** An options object that will be accessible within the template via `<% options %>` */ options?: Options; /** The resolved path to the source file to be template */ src?: string; /** Provided compile option instead of src */ getContents?: (data: { nuxt: Nuxt; app: NuxtApp; options: Options; }) => string | Promise; /** Write to filesystem */ write?: boolean; /** * The source path of the template (to try resolving dependencies from). * @internal */ _path?: string; } interface NuxtServerTemplate { /** The target filename once the template is copied into the Nuxt buildDir */ filename: string; getContents: () => string | Promise; } interface ResolvedNuxtTemplate extends NuxtTemplate { filename: string; dst: string; modified?: boolean; } interface NuxtTypeTemplate extends Omit, "write" | "filename"> { filename: `${string}.d.ts`; write?: true; } type _TemplatePlugin = Omit & NuxtTemplate; interface NuxtPluginTemplate extends _TemplatePlugin {} interface NuxtApp { mainComponent?: string | null; rootComponent?: string | null; errorComponent?: string | null; dir: string; extensions: string[]; plugins: NuxtPlugin[]; components: Component[]; layouts: Record; middleware: NuxtMiddleware[]; templates: NuxtTemplate[]; configs: string[]; pages?: NuxtPage[]; } interface Nuxt { "__name": string; "_version": string; "_ignore"?: Ignore; "_dependencies"?: Set; "~runtimeDependencies"?: string[]; "_debug"?: NuxtDebugContext; /** Async local storage for current running Nuxt module instance. */ "_asyncLocalStorageModule"?: AsyncLocalStorage; /** * Module options functions collected from moduleDependencies. * @internal */ "_moduleOptionsFunctions"?: Map { defaults?: Record; overrides?: Record; }>>; /** The resolved Nuxt configuration. */ "options": NuxtOptions; "hooks": Hookable; "hook": Nuxt["hooks"]["hook"]; "callHook": Nuxt["hooks"]["callHook"]; "addHooks": Nuxt["hooks"]["addHooks"]; "runWithContext": any>(fn: T) => ReturnType; "ready": () => Promise; "close": () => Promise; /** The production or development server. */ "server"?: any; "vfs": Record; "apps": Record; } //#endregion //#region src/types/hooks.d.ts type HookResult = Promise | void; type TSReference = { types: string; } | { path: string; }; type WatchEvent = "add" | "addDir" | "change" | "unlink" | "unlinkDir"; type VueTSConfig = 0 extends 1 & RawVueCompilerOptions ? TSConfig : TSConfig & { vueCompilerOptions?: RawVueCompilerOptions; }; interface NuxtPage { name?: string; path: string; props?: RouteRecordRaw["props"]; file?: string; meta?: Record; alias?: string[] | string; redirect?: RouteLocationRaw; children?: NuxtPage[]; middleware?: string[] | string; /** * Set the render mode. * * `all` means the page will be rendered isomorphically - with JavaScript both on client and server. * * `server` means pages are automatically rendered with server components, so there will be no JavaScript to render the page in your client bundle. * * `client` means that page will render on the client-side only. */ mode?: "client" | "server" | "all"; /** @internal */ _sync?: boolean; } type NuxtMiddleware = { name: string; path: string; global?: boolean; }; type NuxtLayout = { name: string; file: string; }; /** * @deprecated Use {@link InlinePreset} */ interface ImportPresetWithDeprecation extends InlinePreset {} interface GenerateAppOptions { filter?: (template: ResolvedNuxtTemplate) => boolean; } interface NuxtAnalyzeMeta { name: string; slug: string; startTime: number; endTime: number; analyzeDir: string; buildDir: string; outDir: string; } /** * The listeners to Nuxt build time events */ interface NuxtHooks { /** * Allows extending compatibility checks. * @param compatibility Compatibility object * @param issues Issues to be mapped * @returns Promise */ "kit:compatibility": (compatibility: NuxtCompatibility, issues: NuxtCompatibilityIssues) => HookResult; /** * Called after Nuxt initialization, when the Nuxt instance is ready to work. * @param nuxt The configured Nuxt object * @returns Promise */ "ready": (nuxt: Nuxt) => HookResult; /** * Called when Nuxt instance is gracefully closing. * @param nuxt The configured Nuxt object * @returns Promise */ "close": (nuxt: Nuxt) => HookResult; /** * Called to restart the current Nuxt instance. * @returns Promise */ "restart": (options?: { /** * Try to restart the whole process if supported */ hard?: boolean; }) => HookResult; /** * Called during Nuxt initialization, before installing user modules. * @returns Promise */ "modules:before": () => HookResult; /** * Called during Nuxt initialization, after installing user modules. * @returns Promise */ "modules:done": () => HookResult; /** * Called after resolving the `app` instance. * @param app The resolved `NuxtApp` object * @returns Promise */ "app:resolve": (app: NuxtApp) => HookResult; /** * Called during `NuxtApp` generation, to allow customizing, modifying or adding new files to the build directory (either virtually or to written to `.nuxt`). * @param app The configured `NuxtApp` object * @returns Promise */ "app:templates": (app: NuxtApp) => HookResult; /** * Called after templates are compiled into the [virtual file system](https://nuxt.com/docs/4.x/directory-structure/nuxt) (vfs). * @param app The configured `NuxtApp` object * @returns Promise */ "app:templatesGenerated": (app: NuxtApp, templates: ResolvedNuxtTemplate[], options?: GenerateAppOptions) => HookResult; /** * Called before Nuxt bundle builder. * @returns Promise */ "build:before": () => HookResult; /** * Called after Nuxt bundle builder is complete. * @returns Promise */ "build:done": () => HookResult; /** * Called during the manifest build by Vite and Webpack. This allows customizing the manifest that Nitro will use to render `