{"version":3,"sources":["../../src/server/next-server.ts"],"names":["NextNodeServer","dynamicRequire","process","env","NEXT_MINIMAL","__non_webpack_require__","require","writeStdoutLine","text","stdout","write","formatRequestUrl","url","maxLength","undefined","length","substring","MiddlewareMatcherCache","WeakMap","getMiddlewareMatcher","info","stored","get","Array","isArray","matchers","Error","JSON","stringify","matcher","getMiddlewareRouteMatcher","set","BaseServer","constructor","options","renderOpts","optimizeFonts","__NEXT_OPTIMIZE_FONTS","optimizeCss","__NEXT_OPTIMIZE_CSS","nextScriptWorkers","__NEXT_SCRIPT_WORKERS","nextConfig","experimental","deploymentId","NEXT_DEPLOYMENT_ID","minimalMode","imageResponseCache","ResponseCache","appDocumentPreloading","isDefaultEnabled","dev","loadComponents","distDir","page","isAppPath","catch","dynamicRoutes","getRoutesManifest","map","r","regex","getRouteRegex","match","getRouteMatcher","re","setHttpClientAndAgentOptions","serverOptions","experimentalTestProxy","interceptTestApis","middlewareManifestPath","join","serverDistDir","MIDDLEWARE_MANIFEST","handleUpgrade","prepareImpl","instrumentationHook","resolve","dir","conf","INSTRUMENTATION_HOOK_FILENAME","register","err","code","message","loadEnvConfig","forceReload","silent","error","Log","getIncrementalCache","requestHeaders","requestProtocol","CacheHandler","incrementalCacheHandlerPath","isAbsolute","default","IncrementalCache","fs","getCacheFilesystem","appDir","hasAppDir","allowedRevalidateHeaderKeys","fetchCache","fetchCacheKeyPrefix","maxMemoryCacheSize","isrMemoryCacheSize","flushToDisk","isrFlushToDisk","getPrerenderManifest","CurCacheHandler","getResponseCache","getPublicDir","CLIENT_PUBLIC_FILES_PATH","getHasStaticDir","existsSync","getPagesManifest","loadManifest","PAGES_MANIFEST","getAppPathsManifest","APP_PATHS_MANIFEST","hasPage","pathname","getMaybePagePath","i18n","locales","getBuildId","buildIdFile","BUILD_ID_FILE","readFileSync","trim","getHasAppDir","Boolean","findDir","sendRenderResult","req","res","originalRequest","originalResponse","runApi","query","edgeFunctionsPages","getEdgeFunctionsPages","edgeFunctionsPage","definition","handledAsEdgeFunction","runEdgeFunction","params","appPaths","module","RouteModuleLoader","load","filename","__nextLocale","__nextDefaultLocale","__nextInferredLocaleFromDefault","render","previewProps","revalidate","bind","trustHostHeader","hostname","fetchHostname","renderHTML","getTracer","trace","NextNodeServerSpan","renderHTMLImpl","nextFontManifest","lazyRenderAppPage","lazyRenderPagesPage","imageOptimizer","paramsResult","newReq","newRes","protocol","experimentalHttpsServer","invokeRes","invokeRequest","port","method","headers","signal","signalFromNodeResponse","filteredResHeaders","filterReqHeaders","toNodeOutgoingHttpHeaders","ipcForbiddenHeaders","key","Object","keys","setHeader","statusCode","status","body","pipeReadable","send","getPagePath","renderPageComponent","ctx","bubbleNoFallback","getOriginalAppPaths","findPageComponents","spanName","attributes","normalizeAppPath","findPageComponentsImpl","pagePaths","amp","unshift","normalizePagePath","path","pagePath","components","Component","startsWith","isExperimentalCompile","getStaticProps","__nextDataReq","PageNotFoundError","getFontManifest","requireFontManifest","getNextFontManifest","NEXT_FONT_MANIFEST","getFallback","cacheFs","readFile","handleNextImageRequest","parsedUrl","output","finished","ImageOptimizerCache","imageOptimizerCache","getHash","sendResponse","ImageError","imagesConfig","images","loader","unoptimized","render404","validateParams","errorMessage","cacheKey","getCacheKey","cacheEntry","getExtension","buffer","contentType","maxAge","etag","value","kind","extension","incrementalCache","href","isStatic","isMiss","isStale","handleCatchallRenderRequest","_nextBubbleNoFallback","removeTrailingSlash","i18nProvider","fromQuery","addRequestMeta","NEXT_RSC_UNION_QUERY","handled","isPagesAPIRouteMatch","handleApiRequest","NoFallbackError","formatServerError","logErrorWithOriginalStack","logError","renderError","_err","_type","ensurePage","_opts","getPrefetchRsc","nodeFs","normalizeReq","NodeNextRequest","normalizeRes","NodeNextResponse","getRequestHandler","handler","makeRequestHandler","wrapRequestHandlerNode","prepare","normalizedReq","normalizedRes","enabledVerboseLogging","logging","level","shouldTruncateUrl","fullUrl","bold","green","yellow","red","gray","white","_req","_res","origReq","origRes","reqStart","Date","now","reqCallback","didInvokePath","reqEnd","fetchMetrics","reqDuration","getDurationStr","duration","durationStr","toString","calcNestedLevel","prevMetrics","start","nestedLevel","i","metric","prevMetric","end","repeat","cacheStatus","cacheReason","cacheReasonStr","parsed","URL","truncatedHost","host","truncatedPath","truncatedSearch","search","newLineLeadingChar","nestedIndent","slice","nextNestedIndent","off","on","urlPath","revalidateHeaders","opts","mocked","createRequestResponseMocks","hasStreamed","getHeader","unstable_onlyGenerated","internal","renderToHTML","renderErrorToResponseImpl","is404","notFoundPathname","clientOnly","includes","setHeaders","renderErrorToHTML","getMiddlewareManifest","manifest","getMiddleware","middleware","functions","getEdgeFunctionInfo","foundPage","denormalizePagePath","pageInfo","name","paths","files","file","wasm","binding","filePath","assets","hasMiddleware","ensureMiddleware","ensureEdgeFunction","_params","runMiddleware","checkIsOnDemandRevalidate","request","isOnDemandRevalidate","response","Response","skipMiddlewareUrlNormalize","getRequestMeta","urlQueryToSearchParams","locale","middlewareInfo","MiddlewareNotFoundError","toUpperCase","run","result","edgeFunctionEntry","basePath","trailingSlash","useCache","onWarning","waitUntil","console","toLowerCase","delete","cookies","splitCookiesString","cookie","append","handleCatchallMiddlewareRequest","isMiddlewareInvoke","handleFinished","initUrl","parseUrl","pathnameInfo","getNextPathnameInfo","normalizedPathname","bubblingResult","INTERNAL_HEADERS","stripInternalHeaders","bubble","entries","isError","DecodeError","getProperError","_cachedPreviewManifest","NODE_ENV","NEXT_PHASE","PHASE_PRODUCTION_BUILD","version","routes","notFoundRoutes","preview","previewModeId","randomBytes","previewModeSigningKey","previewModeEncryptionKey","PRERENDER_MANIFEST","ROUTES_MANIFEST","rewrites","beforeFiles","afterFiles","fallback","attachRequestMeta","isUpgradeReq","socket","encrypted","getCloneableBody","edgeInfo","isDataReq","initialUrl","queryString","fromEntries","searchParams","globalThis","__incrementalCache","statusMessage","statusText","forEach","appendHeader","nodeResStream","_serverDistDir","SERVER_DIRECTORY","getFallbackErrorComponents"],"mappings":";;;;+BA0JA;;;eAAqBA;;;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