{"version":3,"sources":["../../src/server/render.tsx"],"names":["setLazyProp","getCookieParser","React","ReactDOMServer","StyleRegistry","createStyleRegistry","GSP_NO_RETURNED_VALUE","GSSP_COMPONENT_MEMBER_ERROR","GSSP_NO_RETURNED_VALUE","STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR","SERVER_PROPS_GET_INIT_PROPS_CONFLICT","SERVER_PROPS_SSG_CONFLICT","SSG_GET_INITIAL_PROPS_CONFLICT","UNSTABLE_REVALIDATE_RENAME_ERROR","CACHE_ONE_YEAR","NEXT_BUILTIN_DOCUMENT","SERVER_PROPS_ID","STATIC_PROPS_ID","STATIC_STATUS_PAGES","isSerializableProps","isInAmpMode","AmpStateContext","defaultHead","HeadManagerContext","Loadable","LoadableContext","RouterContext","isDynamicRoute","getDisplayName","isResSent","loadGetInitialProps","HtmlContext","normalizePagePath","denormalizePagePath","getRequestMeta","allowedStatusCodes","getRedirectStatus","RenderResult","isError","streamFromString","streamToString","chainStreams","renderToInitialFizzStream","continueFizzStream","ImageConfigContext","stripAnsi","stripInternalQueries","adaptForAppRouterInstance","adaptForPathParams","adaptForSearchParams","PathnameContextProviderAdapter","AppRouterContext","SearchParamsContext","PathParamsContext","getTracer","RenderSpan","ReflectAdapter","setRevalidateHeaders","tryGetPreviewData","warn","postProcessHTML","DOCTYPE","process","env","NEXT_RUNTIME","require","console","bind","_pathname","html","noRouter","message","Error","renderToString","element","renderStream","renderToReadableStream","allReady","ServerRouter","constructor","pathname","query","as","isFallback","isReady","basePath","locale","locales","defaultLocale","domainLocales","isPreview","isLocaleDomain","route","replace","asPath","push","reload","back","forward","prefetch","beforePopState","enhanceComponents","options","App","Component","enhanceApp","enhanceComponent","renderPageTree","props","invalidKeysMsg","methodName","invalidKeys","docsPathname","toLocaleLowerCase","join","checkRedirectValues","redirect","req","method","destination","permanent","statusCode","errors","hasStatusCode","hasPermanent","has","destinationType","basePathType","length","url","errorToJSON","err","source","getErrorSource","name","stack","digest","serializeError","dev","renderToHTMLImpl","res","renderOpts","extra","headers","renderResultMeta","assetQueryString","Date","now","deploymentId","Object","assign","ampPath","pageConfig","buildManifest","reactLoadableManifest","ErrorDebug","getStaticProps","getStaticPaths","getServerSideProps","isDataReq","params","previewProps","images","runtime","globalRuntime","isExperimentalCompile","Document","OriginComponent","serverComponentsInlinedTransformStream","__nextFallback","notFoundSrcPage","__nextNotFoundSrcPage","isSSG","isBuildTimeSSG","nextExport","defaultAppGetInitialProps","getInitialProps","origGetInitialProps","hasPageGetInitialProps","hasPageScripts","unstable_scriptLoader","pageIsDynamic","defaultErrorGetInitialProps","isAutoExport","revalidate","private","stateful","nextConfigOutput","resolvedAsPath","isValidElementType","amp","endsWith","includes","preloadAll","undefined","previewData","routerIsReady","router","appRouter","scriptLoader","jsxStyleRegistry","ampState","ampFirst","hasQuery","Boolean","hybrid","inAmpMode","head","reactLoadableModules","initialScripts","beforeInteractive","concat","filter","script","strategy","map","AppContainer","children","Provider","value","updateHead","state","updateScripts","scripts","mountedInstances","Set","moduleName","registry","Noop","AppContainerWithIsomorphicFiberStructure","ctx","AppTree","defaultGetInitialProps","docCtx","AppComp","renderPageHead","renderPage","styles","nonce","flush","styledJsxInsertedHTML","__N_PREVIEW","data","trace","spanName","attributes","draftMode","preview","staticPropsError","code","keys","key","NODE_ENV","notFound","isNotFound","__N_REDIRECT","__N_REDIRECT_STATUS","__N_REDIRECT_BASE_PATH","isRedirect","Number","isInteger","Math","ceil","JSON","stringify","pageProps","pageData","canAccessRes","resOrProxy","deferredContent","Proxy","get","obj","prop","resolvedUrl","serverSidePropsError","Promise","unstable_notFound","unstable_redirect","filteredBuildManifest","page","pages","lowPriorityFiles","f","Body","div","id","renderDocument","BuiltinFunctionalDocument","loadDocumentInitialProps","renderShell","error","EnhancedApp","EnhancedComponent","then","stream","documentCtx","docProps","renderContent","_App","_Component","content","createBodyResult","wrap","initialStream","suffix","getServerInsertedHTML","inlinedDataStream","readable","generateStaticHTML","serverInsertedHTMLToHead","hasDocumentGetInitialProps","bodyResult","documentInitialPropsRes","documentElement","htmlProps","headTags","getRootSpanAttributes","set","documentResult","dynamicImportsIds","dynamicImports","mod","manifestItem","add","files","forEach","item","hybridAmp","docComponentsRendered","assetPrefix","buildId","customServer","disableOptimizedLoading","runtimeConfig","__NEXT_DATA__","autoExport","dynamicIds","size","Array","from","gsp","gssp","gip","appGip","strictNextHead","dangerousAsPath","canonicalBase","isDevelopment","unstable_runtimeJS","unstable_JsPreload","crossOrigin","optimizeCss","optimizeFonts","nextScriptWorkers","largePageDataBytes","nextFontManifest","document","documentHTML","nonRenderedComponents","expectedDocComponents","comp","missingComponentList","e","plural","renderTargetPrefix","renderTargetSuffix","split","prefix","startsWith","streams","postOptimize","optimizedHtml","renderToHTML"],"mappings":"AAiBA,SAGEA,WAAW,QACN,cAAa;AACpB,SAASC,eAAe,QAAQ,gCAA+B;AAmB/D,OAAOC,WAAW,QAAO;AACzB,OAAOC,oBAAoB,2BAA0B;AACrD,SAASC,aAAa,EAAEC,mBAAmB,QAAQ,aAAY;AAC/D,SACEC,qBAAqB,EACrBC,2BAA2B,EAC3BC,sBAAsB,EACtBC,0CAA0C,EAC1CC,oCAAoC,EACpCC,yBAAyB,EACzBC,8BAA8B,EAC9BC,gCAAgC,EAChCC,cAAc,QACT,mBAAkB;AAEzB,SACEC,qBAAqB,EACrBC,eAAe,EACfC,eAAe,EACfC,mBAAmB,QACd,0BAAyB;AAChC,SAASC,mBAAmB,QAAQ,+BAA8B;AAClE,SAASC,WAAW,QAAQ,yBAAwB;AACpD,SAASC,eAAe,QAAQ,2CAA0C;AAC1E,SAASC,WAAW,QAAQ,qBAAoB;AAChD,SAASC,kBAAkB,QAAQ,oDAAmD;AACtF,OAAOC,cAAc,wCAAuC;AAC5D,SAASC,eAAe,QAAQ,gDAA+C;AAC/E,SAASC,aAAa,QAAQ,8CAA6C;AAC3E,SAASC,cAAc,QAAQ,wCAAuC;AACtE,SACEC,cAAc,EACdC,SAAS,EACTC,mBAAmB,QACd,s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