{"version":3,"sources":["../../src/build/collect-build-traces.ts"],"names":["collectBuildTraces","debug","debugOriginal","dir","config","distDir","pageKeys","pageInfos","staticPages","nextBuildSpan","Span","name","hasSsrAmpPages","buildTraceContext","outputFileTracingRoot","startTime","Date","now","turboTasksForTrace","bindings","loadBindings","runTurbotrace","experimental","turbotrace","isWasm","turbo","startTrace","turbotraceOutputPath","turbotraceFiles","createTurboTasks","memoryLimit","TURBO_TRACE_DEFAULT_MEMORY_LIMIT","entriesTrace","chunksTrace","appDir","buildTraceContextAppDir","depModArray","entryNameMap","outputPath","action","depModSet","Set","filesTracedInEntries","contextDirectory","input","entriesToTrace","filesTracedFromEntries","map","f","path","join","filter","includes","startsWith","has","length","entryName","Array","from","Object","entries","k","traceOutputPath","traceOutputDir","dirname","file","relative","outputPagesPath","substring","existedNftFile","fs","readFile","then","existedContent","JSON","parse","catch","version","TRACE_OUTPUT_VERSION","files","push","filesSet","writeFile","stringify","outputFileTracingIncludes","outputFileTracingExcludes","excludeGlobKeys","keys","traceChild","traceAsyncFn","nextServerTraceOutput","nextMinimalTraceOutput","root","isStandalone","output","nextServerEntry","require","resolve","sharedEntriesSet","defaultOverrides","value","paths","incrementalCacheHandlerPath","isAbsolute","serverEntries","Boolean","minimalServerEntries","additionalIgnores","glob","isMatch","forEach","exclude","add","serverIgnores","ciEnvironment","hasNextSupport","TRACE_IGNORES","outputFileTracingIgnores","nonNullable","serverIgnoreFn","pathname","contains","dot","traceContext","serverTracedFiles","minimalServerTracedFiles","addToTracedFiles","base","dest","replace","makeTrace","logLevel","processCwd","logDetail","showAll","logAll","vanillaFiles","minimalFiles","set","chunksToTrace","result","nodeFileTrace","mixedModules","p","e","isError","code","match","readlink","stat","reasons","fileList","esmFileList","parentFilesMap","getFilesMapFromReasons","tracedFiles","curFiles","get","curFile","filePath","entryNameFilesMap","Promise","all","Map","entryNameFiles","isApp","isPages","route","normalizeAppPath","normalizePagePath","entryOutputPath","existingTrace","curTracedFiles","sort","moduleTypes","type","modulePath","relativeModulePath","contextDir","item","readdir","itemPath","includeExcludeSpan","resolvedTraceIncludes","includeGlobKeys","globOrig","pattern","reject","cwd","nodir","err","page","pages","pageInfo","find","runtime","combinedIncludes","combinedExcludes","curGlob","include","size","traceFile","pageDir","traceContent","includeGlob","results","resolvedInclude","combined","resolvedGlobs","delete"],"mappings":";;;;+BA8BsBA;;;eAAAA;;;uBA9BD;4CAOd;2BAKA;6DAEU;iEACF;qBAEc;6BACD;gEACG;8DACL;4BACF;6BACS;qBACH;mCACI;0BACD;gEACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpB,MAAMC,QAAQC,IAAAA,cAAa,EAAC;AAErB,eAAeF,mBAAmB,EACvCG,GAAG,EACHC,MAAM,EACNC,OAAO,EACPC,QAAQ,EACRC,SAAS,EACTC,WAAW,EACXC,gBAAgB,IAAIC,WAAI,CAAC;IAAEC,MAAM;AAAQ,EAAE,EAC3CC,cAAc,EACdC,iBAAiB,EACjBC,qBAAqB,EAetB;IACC,MAAMC,YAAYC,KAAKC,GAAG;IAC1BhB,MAAM;IACN,IAAIiB;IACJ,IAAIC,WAAW,MAAMC,IAAAA,iBAAY;IAEjC,MAAMC,gBAAgB;QACpB,IAAI,CAACjB,OAAOkB,YAAY,CAACC,UAAU,IAAI,CAACV,mBAAmB;YACzD;QACF;QACA,IAAI,EAACM,4BAAAA,SAAUK,MAAM,KAAI,OAAOL,SAASM,KAAK,CAACC,UAAU,KAAK,YAAY;gBAIrEtB;YAHH,IAAIuB;YACJ,IAAIC;YACJV,qBAAqBC,SAASM,KAAK,CAACI,gBAAgB,CAClD,AAACzB,CAAAA,EAAAA,kCAAAA,OAAOkB,YAAY,CAACC,UAAU,qBAA9BnB,gCAAgC0B,WAAW,KAC1CC,2CAAgC,AAAD,IAC/B,OACA;YAGJ,MAAM,EAAEC,YAAY,EAAEC,WAAW,EAAE,GAAGpB;YACtC,IAAImB,cAAc;gBAChB,MAAM,EACJE,QAAQC,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