{"version":3,"sources":["../../../src/server/lib/start-server.ts"],"names":["getRequestHandlers","startServer","performance","getEntriesByName","length","mark","debug","setupDebug","dir","port","isDev","server","hostname","minimalMode","isNodeDebugging","keepAliveTimeout","experimentalTestProxy","experimentalHttpsServer","initialize","dev","logStartInfo","networkUrl","appUrl","envInfo","expFeatureInfo","formatDurationText","Log","bootstrap","bold","purple","prefixes","ready","process","env","__NEXT_VERSION","join","exp","slice","info","event","allowRetry","isExperimentalTestProxy","selfSignedCertificate","handlersReady","handlersError","handlersPromise","Promise","resolve","reject","requestHandler","req","res","Error","upgradeHandler","socket","head","requestListener","undefined","err","statusCode","end","error","url","console","https","createServer","key","fs","readFileSync","cert","http","on","destroy","portRetryCount","code","warn","listen","exit","checkIsNodeDebugging","addr","address","actualHostname","formatHostname","formattedHostname","debugPort","getDebugPort","PORT","cleanup","close","exception","initResult","Boolean","startServerProcessDuration","measure","duration","Math","round","watchConfigFiles","dirToWatch","onChange","wp","Watchpack","watch","files","CONFIG_FILES","map","file","path","filename","__NEXT_DISABLE_MEMORY_WATCHER","basename","RESTART_EXIT_CODE","NEXT_PRIVATE_WORKER","send","addListener","msg","nextWorkerOptions","nextServerReady","nextWorkerReady"],"mappings":";;;;;;;;;;;;;;;IA4CsBA,kBAAkB;eAAlBA;;IA8EAC,WAAW;eAAXA;;;QAvHf;QACA;QACA;2DAMQ;6DACE;6DACA;8DACC;kEACI;6DACD;8DACE;uBACyB;gCACjB;8BACJ;iCACU;2BACR;4BACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvB7B,IAAIC,YAAYC,gBAAgB,CAAC,cAAcC,MAAM,KAAK,GAAG;IAC3DF,YAAYG,IAAI,CAAC;AACnB;AAuBA,MAAMC,QAAQC,IAAAA,cAAU,EAAC;AAmBlB,eAAeP,mBAAmB,EACvCQ,GAAG,EACHC,IAAI,EACJC,KAAK,EACLC,MAAM,EACNC,QAAQ,EACRC,WAAW,EACXC,eAAe,EACfC,g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