Socket
Socket
Sign inDemoInstall

@nrwl/nx-cloud

Package Overview
Dependencies
23
Maintainers
6
Versions
339
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 15.3.3 to 15.3.4

2

lib/core/api/error-reporter.api.js

@@ -1,1 +0,1 @@

const a0_0x50c9=['../../utilities/axios','post','__esModule','__awaiter','value','/nx-cloud/report-client-error','next','ErrorReporterApi','done','then','warn','apply','apiAxiosInstance','axiosMultipleTries','createApiAxiosInstance','Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27','throw','../../utilities/nx-imports','defineProperty'];(function(_0x27ddf6,_0x50c966){const _0x1d8cc4=function(_0x3f41c0){while(--_0x3f41c0){_0x27ddf6['push'](_0x27ddf6['shift']());}};_0x1d8cc4(++_0x50c966);}(a0_0x50c9,0x10b));const a0_0x1d8c=function(_0x27ddf6,_0x50c966){_0x27ddf6=_0x27ddf6-0x0;let _0x1d8cc4=a0_0x50c9[_0x27ddf6];return _0x1d8cc4;};'use strict';var __awaiter=this&&this[a0_0x1d8c('0x2')]||function(_0x35a744,_0x475576,_0x33cc99,_0x3b4ece){function _0x18affc(_0x3f04d3){return _0x3f04d3 instanceof _0x33cc99?_0x3f04d3:new _0x33cc99(function(_0x5874a2){_0x5874a2(_0x3f04d3);});}return new(_0x33cc99||(_0x33cc99=Promise))(function(_0x2fefa0,_0x391e0b){function _0x2e8627(_0x41ef17){try{_0x44154d(_0x3b4ece[a0_0x1d8c('0x5')](_0x41ef17));}catch(_0x2a31ac){_0x391e0b(_0x2a31ac);}}function _0x54c8ba(_0x2e6500){try{_0x44154d(_0x3b4ece[a0_0x1d8c('0xf')](_0x2e6500));}catch(_0x4f585a){_0x391e0b(_0x4f585a);}}function _0x44154d(_0x40c2a2){_0x40c2a2[a0_0x1d8c('0x7')]?_0x2fefa0(_0x40c2a2['value']):_0x18affc(_0x40c2a2[a0_0x1d8c('0x3')])[a0_0x1d8c('0x8')](_0x2e8627,_0x54c8ba);}_0x44154d((_0x3b4ece=_0x3b4ece[a0_0x1d8c('0xa')](_0x35a744,_0x475576||[]))[a0_0x1d8c('0x5')]());});};Object[a0_0x1d8c('0x11')](exports,a0_0x1d8c('0x1'),{'value':!![]});exports[a0_0x1d8c('0x6')]=void 0x0;const axios_1=require(a0_0x1d8c('0x12'));const {output}=require(a0_0x1d8c('0x10'));class ErrorReporterApi{constructor(_0x196c37){this['apiAxiosInstance']=(0x0,axios_1[a0_0x1d8c('0xd')])(_0x196c37);}['reportError'](_0x50b231){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1[a0_0x1d8c('0xc')])(()=>this[a0_0x1d8c('0xb')][a0_0x1d8c('0x0')](a0_0x1d8c('0x4'),{'message':_0x50b231}));}catch(_0x5bd0f0){output[a0_0x1d8c('0x9')]({'title':a0_0x1d8c('0xe')+_0x50b231+'\x27','bodyLines':[_0x5bd0f0['message']]});}});}}exports[a0_0x1d8c('0x6')]=ErrorReporterApi;
const a0_0x2c29=['__awaiter','message','/nx-cloud/report-client-error','ErrorReporterApi','createApiAxiosInstance','done','defineProperty','next','axiosMultipleTries','../../utilities/nx-imports','apiAxiosInstance','../../utilities/axios','value','Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27','warn','reportError','post'];(function(_0x31a628,_0x2c2958){const _0x11a96a=function(_0xa76b94){while(--_0xa76b94){_0x31a628['push'](_0x31a628['shift']());}};_0x11a96a(++_0x2c2958);}(a0_0x2c29,0x134));const a0_0x11a9=function(_0x31a628,_0x2c2958){_0x31a628=_0x31a628-0x0;let _0x11a96a=a0_0x2c29[_0x31a628];return _0x11a96a;};'use strict';var __awaiter=this&&this[a0_0x11a9('0xf')]||function(_0x3287a,_0x4cbfa4,_0x195119,_0x2623d6){function _0x28e7b9(_0x323a29){return _0x323a29 instanceof _0x195119?_0x323a29:new _0x195119(function(_0x1eb975){_0x1eb975(_0x323a29);});}return new(_0x195119||(_0x195119=Promise))(function(_0x1b3059,_0x126427){function _0x1a46f8(_0x744baa){try{_0x3ac3de(_0x2623d6[a0_0x11a9('0x5')](_0x744baa));}catch(_0x47ad3b){_0x126427(_0x47ad3b);}}function _0x4aa6fa(_0x28ba75){try{_0x3ac3de(_0x2623d6['throw'](_0x28ba75));}catch(_0x2afbf4){_0x126427(_0x2afbf4);}}function _0x3ac3de(_0x20f2c4){_0x20f2c4[a0_0x11a9('0x3')]?_0x1b3059(_0x20f2c4[a0_0x11a9('0xa')]):_0x28e7b9(_0x20f2c4['value'])['then'](_0x1a46f8,_0x4aa6fa);}_0x3ac3de((_0x2623d6=_0x2623d6['apply'](_0x3287a,_0x4cbfa4||[]))['next']());});};Object[a0_0x11a9('0x4')](exports,'__esModule',{'value':!![]});exports[a0_0x11a9('0x1')]=void 0x0;const axios_1=require(a0_0x11a9('0x9'));const {output}=require(a0_0x11a9('0x7'));class ErrorReporterApi{constructor(_0x4e912e){this['apiAxiosInstance']=(0x0,axios_1[a0_0x11a9('0x2')])(_0x4e912e);}[a0_0x11a9('0xd')](_0x195d72){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1[a0_0x11a9('0x6')])(()=>this[a0_0x11a9('0x8')][a0_0x11a9('0xe')](a0_0x11a9('0x0'),{'message':_0x195d72}));}catch(_0x347447){output[a0_0x11a9('0xc')]({'title':a0_0x11a9('0xb')+_0x195d72+'\x27','bodyLines':[_0x347447[a0_0x11a9('0x10')]]});}});}}exports[a0_0x11a9('0x1')]=ErrorReporterApi;

@@ -1,1 +0,1 @@

const a1_0x8f31=['RunGroupApi','done','apply','axiosException','recordMetric','mapRespToPerfEntry','exit','/nx-cloud/executions/create-run-group','axiosMultipleTries','apiAxiosInstance','../../utilities/axios','__esModule','completeRunGroup','response','RUNNER_FAILURE_PERF_ENTRY','../../utilities/nx-imports','__awaiter','next','post','error','createRunGroup','value'];(function(_0x290df0,_0x8f31ef){const _0x524446=function(_0x38cdb7){while(--_0x38cdb7){_0x290df0['push'](_0x290df0['shift']());}};_0x524446(++_0x8f31ef);}(a1_0x8f31,0x110));const a1_0x5244=function(_0x290df0,_0x8f31ef){_0x290df0=_0x290df0-0x0;let _0x524446=a1_0x8f31[_0x290df0];return _0x524446;};'use strict';var __awaiter=this&&this[a1_0x5244('0x8')]||function(_0x28e3bd,_0x5d37d0,_0x4b1c41,_0x2a7254){function _0x47c986(_0x262f5b){return _0x262f5b instanceof _0x4b1c41?_0x262f5b:new _0x4b1c41(function(_0xc3229b){_0xc3229b(_0x262f5b);});}return new(_0x4b1c41||(_0x4b1c41=Promise))(function(_0x266a10,_0xe5a85a){function _0x24aaca(_0x2a9045){try{_0xbe4a42(_0x2a7254[a1_0x5244('0x9')](_0x2a9045));}catch(_0xfc5240){_0xe5a85a(_0xfc5240);}}function _0x961fcb(_0x443e43){try{_0xbe4a42(_0x2a7254['throw'](_0x443e43));}catch(_0x3bda89){_0xe5a85a(_0x3bda89);}}function _0xbe4a42(_0x1b244d){_0x1b244d[a1_0x5244('0xf')]?_0x266a10(_0x1b244d[a1_0x5244('0xd')]):_0x47c986(_0x1b244d[a1_0x5244('0xd')])['then'](_0x24aaca,_0x961fcb);}_0xbe4a42((_0x2a7254=_0x2a7254[a1_0x5244('0x10')](_0x28e3bd,_0x5d37d0||[]))['next']());});};Object['defineProperty'](exports,a1_0x5244('0x3'),{'value':!![]});exports[a1_0x5244('0xe')]=void 0x0;const axios_1=require(a1_0x5244('0x2'));const metric_logger_1=require('../../utilities/metric-logger');const {output}=require(a1_0x5244('0x7'));class RunGroupApi{constructor(_0x17a5ee){this['apiAxiosInstance']=(0x0,axios_1['createApiAxiosInstance'])(_0x17a5ee);}[a1_0x5244('0xc')](_0x1db503,_0x294bbe,_0x11eb86,_0x46f2da,_0x55d30c,_0x4f531f,_0x1ffa85){var _0x45a421;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x19121c=(0x0,metric_logger_1['createMetricRecorder'])(a1_0x5244('0xc'));try{const _0x505af2=yield(0x0,axios_1[a1_0x5244('0x0')])(()=>this[a1_0x5244('0x1')][a1_0x5244('0xa')](a1_0x5244('0x15'),{'branch':_0x1db503,'runGroup':_0x294bbe,'ciExecutionId':_0x11eb86,'ciExecutionEnv':_0x46f2da,'stopAgentsOnFailure':_0x55d30c,'agentCount':_0x4f531f,'stopAgentsAfter':_0x1ffa85}));_0x19121c[a1_0x5244('0x12')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x505af2));}catch(_0x434d13){_0x19121c[a1_0x5244('0x12')](((_0x45a421=_0x434d13===null||_0x434d13===void 0x0?void 0x0:_0x434d13[a1_0x5244('0x11')])===null||_0x45a421===void 0x0?void 0x0:_0x45a421[a1_0x5244('0x5')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x434d13[a1_0x5244('0x11')]['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);output[a1_0x5244('0xb')]({'title':_0x434d13['message']});process[a1_0x5244('0x14')](0x1);}});}[a1_0x5244('0x4')](_0x883e3d,_0x2675e1,_0x578b79,_0x27e4d3){var _0x11d791;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4fba9e=(0x0,metric_logger_1['createMetricRecorder'])(a1_0x5244('0x4'));try{const _0x1377fa=yield(0x0,axios_1['axiosMultipleTries'])(()=>this['apiAxiosInstance'][a1_0x5244('0xa')]('/nx-cloud/executions/complete-run-group',{'branch':_0x883e3d,'runGroup':_0x2675e1,'ciExecutionId':_0x578b79,'ciExecutionEnv':_0x27e4d3}));_0x4fba9e[a1_0x5244('0x12')]((0x0,metric_logger_1[a1_0x5244('0x13')])(_0x1377fa));}catch(_0x548453){_0x4fba9e['recordMetric'](((_0x11d791=_0x548453===null||_0x548453===void 0x0?void 0x0:_0x548453['axiosException'])===null||_0x11d791===void 0x0?void 0x0:_0x11d791[a1_0x5244('0x5')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x548453[a1_0x5244('0x11')][a1_0x5244('0x5')]):metric_logger_1[a1_0x5244('0x6')]);output[a1_0x5244('0xb')]({'title':_0x548453['message']});process[a1_0x5244('0x14')](0x1);}});}}exports[a1_0x5244('0xe')]=RunGroupApi;
const a1_0x3035=['__awaiter','__esModule','RUNNER_FAILURE_PERF_ENTRY','axiosException','throw','apiAxiosInstance','../../utilities/metric-logger','next','../../utilities/nx-imports','post','error','createApiAxiosInstance','message','createMetricRecorder','/nx-cloud/executions/complete-run-group','response','then','RunGroupApi','value','completeRunGroup','mapRespToPerfEntry','apply','exit','recordMetric','done','/nx-cloud/executions/create-run-group','createRunGroup'];(function(_0x23fb13,_0x30351e){const _0x264e2f=function(_0x15377b){while(--_0x15377b){_0x23fb13['push'](_0x23fb13['shift']());}};_0x264e2f(++_0x30351e);}(a1_0x3035,0xfb));const a1_0x264e=function(_0x23fb13,_0x30351e){_0x23fb13=_0x23fb13-0x0;let _0x264e2f=a1_0x3035[_0x23fb13];return _0x264e2f;};'use strict';var __awaiter=this&&this[a1_0x264e('0x13')]||function(_0x229614,_0x43b200,_0x1ad137,_0x441d79){function _0x340d7a(_0x2e7014){return _0x2e7014 instanceof _0x1ad137?_0x2e7014:new _0x1ad137(function(_0x419811){_0x419811(_0x2e7014);});}return new(_0x1ad137||(_0x1ad137=Promise))(function(_0x403b06,_0x4519ad){function _0x1c2d90(_0x37067d){try{_0x3b7642(_0x441d79[a1_0x264e('0x1a')](_0x37067d));}catch(_0x188ba5){_0x4519ad(_0x188ba5);}}function _0x51a00f(_0x4dab42){try{_0x3b7642(_0x441d79[a1_0x264e('0x17')](_0x4dab42));}catch(_0x4a91ed){_0x4519ad(_0x4a91ed);}}function _0x3b7642(_0x5dd010){_0x5dd010[a1_0x264e('0x10')]?_0x403b06(_0x5dd010[a1_0x264e('0xa')]):_0x340d7a(_0x5dd010['value'])[a1_0x264e('0x8')](_0x1c2d90,_0x51a00f);}_0x3b7642((_0x441d79=_0x441d79[a1_0x264e('0xd')](_0x229614,_0x43b200||[]))[a1_0x264e('0x1a')]());});};Object['defineProperty'](exports,a1_0x264e('0x14'),{'value':!![]});exports[a1_0x264e('0x9')]=void 0x0;const axios_1=require('../../utilities/axios');const metric_logger_1=require(a1_0x264e('0x19'));const {output}=require(a1_0x264e('0x0'));class RunGroupApi{constructor(_0x356f7c){this[a1_0x264e('0x18')]=(0x0,axios_1[a1_0x264e('0x3')])(_0x356f7c);}[a1_0x264e('0x12')](_0x63da,_0x35230e,_0x2e440e,_0x3f6325,_0x35adaf,_0x5b5f12,_0x3ff9d1){var _0x4d6704;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2af5ae=(0x0,metric_logger_1[a1_0x264e('0x5')])(a1_0x264e('0x12'));try{const _0x45bd60=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a1_0x264e('0x18')][a1_0x264e('0x1')](a1_0x264e('0x11'),{'branch':_0x63da,'runGroup':_0x35230e,'ciExecutionId':_0x2e440e,'ciExecutionEnv':_0x3f6325,'stopAgentsOnFailure':_0x35adaf,'agentCount':_0x5b5f12,'stopAgentsAfter':_0x3ff9d1}));_0x2af5ae[a1_0x264e('0xf')]((0x0,metric_logger_1[a1_0x264e('0xc')])(_0x45bd60));}catch(_0x44fdf6){_0x2af5ae[a1_0x264e('0xf')](((_0x4d6704=_0x44fdf6===null||_0x44fdf6===void 0x0?void 0x0:_0x44fdf6[a1_0x264e('0x16')])===null||_0x4d6704===void 0x0?void 0x0:_0x4d6704[a1_0x264e('0x7')])?(0x0,metric_logger_1[a1_0x264e('0xc')])(_0x44fdf6[a1_0x264e('0x16')][a1_0x264e('0x7')]):metric_logger_1[a1_0x264e('0x15')]);output['error']({'title':_0x44fdf6[a1_0x264e('0x4')]});process[a1_0x264e('0xe')](0x1);}});}['completeRunGroup'](_0x29d02c,_0x911378,_0x3eeb36,_0x199b4e){var _0x2e50ea;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3b811c=(0x0,metric_logger_1[a1_0x264e('0x5')])(a1_0x264e('0xb'));try{const _0x533c64=yield(0x0,axios_1['axiosMultipleTries'])(()=>this['apiAxiosInstance'][a1_0x264e('0x1')](a1_0x264e('0x6'),{'branch':_0x29d02c,'runGroup':_0x911378,'ciExecutionId':_0x3eeb36,'ciExecutionEnv':_0x199b4e}));_0x3b811c[a1_0x264e('0xf')]((0x0,metric_logger_1[a1_0x264e('0xc')])(_0x533c64));}catch(_0x4f5495){_0x3b811c[a1_0x264e('0xf')](((_0x2e50ea=_0x4f5495===null||_0x4f5495===void 0x0?void 0x0:_0x4f5495[a1_0x264e('0x16')])===null||_0x2e50ea===void 0x0?void 0x0:_0x2e50ea[a1_0x264e('0x7')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x4f5495[a1_0x264e('0x16')][a1_0x264e('0x7')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);output[a1_0x264e('0x2')]({'title':_0x4f5495['message']});process[a1_0x264e('0xe')](0x1);}});}}exports[a1_0x264e('0x9')]=RunGroupApi;

@@ -55,2 +55,12 @@ "use strict";

const errorMessage = `Failed to download or untar the cached artifacts for ${hash}. Context: ${this.context}. Url: ${url}. Error: ${error}.`;
if (this.context === 'dte-agent' || this.context === 'dte-main') {
output.note({
title: `A 404 error occurred in the DTE context. Hash: ${hash}. Url: ${url}.`,
bodyLines: [
`- Please update the nx-cloud package to the latest version.`,
`- Please update the nx package to 15.8.9 or higher. You can do it without updating the plugins.`,
`- If you are not able to update the nx package, and you are passing --configuration to a run-many or an affected command, define that configuration for all the projects.`,
],
});
}
yield this.errorReporter.reportError(errorMessage);

@@ -57,0 +67,0 @@ throw new Error(errorMessage);

@@ -19,3 +19,4 @@ export interface DefaultTasksRunnerOptions {

customAxiosConfigPath?: string;
useLatestApi?: boolean;
url?: string;
}

@@ -1,1 +0,1 @@

const a0_0xf2e5=['find','endTime','toISOString','target','collectTerminalOutput','cache-miss','local-cache-kept-existing','scheduledTasks','__esModule','obfuscate','hash','nodes','project','cache','task','statuses','getTerminalOutput','endCommand','implicitDeps','cacheDirectory','updateStartedTask','code','status','../../../utilities/serializer-overrides','startTime','CloudEnabledLifeCycle','cacheStatus','tasks','Cannot\x20find\x20task\x20','outputObfuscator','terminalOutput','runContext','../../terminal-output/read-task-terminal-output','startTask','endTasks','push','cleanUpHashDetails','scheduleTask','startsWith','local-cache-hit','params'];(function(_0x10a34f,_0xf2e5f){const _0x4a0861=function(_0x5a31ec){while(--_0x5a31ec){_0x10a34f['push'](_0x10a34f['shift']());}};_0x4a0861(++_0xf2e5f);}(a0_0xf2e5,0xa9));const a0_0x4a08=function(_0x10a34f,_0xf2e5f){_0x10a34f=_0x10a34f-0x0;let _0x4a0861=a0_0xf2e5[_0x10a34f];return _0x4a0861;};'use strict';Object['defineProperty'](exports,a0_0x4a08('0x3'),{'value':!![]});exports[a0_0x4a08('0x14')]=void 0x0;const serializer_overrides_1=require(a0_0x4a08('0x12'));const read_task_terminal_output_1=require(a0_0x4a08('0x1b'));class CloudEnabledLifeCycle{constructor(_0x4b66d6,_0x398881,_0x429751,_0x36da47,_0x18c294,_0x177fc0){this[a0_0x4a08('0x1a')]=_0x4b66d6;this[a0_0x4a08('0xe')]=_0x398881;this[a0_0x4a08('0x28')]=_0x429751;this['cacheableOperations']=_0x36da47;this[a0_0x4a08('0x18')]=_0x18c294;this['tasks']=_0x177fc0;}[a0_0x4a08('0x20')](_0x24fca7){this['runContext'][a0_0x4a08('0x2')][a0_0x4a08('0x1e')](_0x24fca7);}[a0_0x4a08('0x1c')](_0xe9825f){this[a0_0x4a08('0x16')][a0_0x4a08('0x1e')]({'taskId':_0xe9825f['id'],'startTime':new Date()[a0_0x4a08('0x26')](),'target':_0xe9825f[a0_0x4a08('0x27')]['target'],'projectName':_0xe9825f[a0_0x4a08('0x27')][a0_0x4a08('0x7')],'hash':_0xe9825f[a0_0x4a08('0x5')],'hashDetails':this[a0_0x4a08('0x1f')](_0xe9825f['hashDetails']),'params':(0x0,serializer_overrides_1['serializeOverrides'])(_0xe9825f),'uploadedToStorage':![]});}[a0_0x4a08('0x1d')](_0x3f683f){for(let _0x57d683 of _0x3f683f){let _0x174e3d;const _0x2d5e30=_0x57d683[a0_0x4a08('0x11')]==='remote-cache';const _0x504364=_0x57d683[a0_0x4a08('0x11')]===a0_0x4a08('0x8');const _0x658c4f=_0x57d683[a0_0x4a08('0x11')]==='local-cache'||_0x57d683[a0_0x4a08('0x11')]===a0_0x4a08('0x1')||_0x504364;if(this[a0_0x4a08('0x1a')][a0_0x4a08('0xa')][_0x57d683['task'][a0_0x4a08('0x5')]]){_0x174e3d=this[a0_0x4a08('0x1a')][a0_0x4a08('0xa')][_0x57d683['task'][a0_0x4a08('0x5')]];}else if(_0x2d5e30){_0x174e3d='remote-cache-hit';}else if(_0x658c4f){_0x174e3d=a0_0x4a08('0x22');}else{_0x174e3d=a0_0x4a08('0x0');}this[a0_0x4a08('0xf')](_0x57d683,_0x174e3d);}}[a0_0x4a08('0xc')](){}[a0_0x4a08('0xf')](_0x50a67a,_0x3baf08){const _0x127900=this[a0_0x4a08('0x16')][a0_0x4a08('0x24')](_0x15dec3=>_0x15dec3['taskId']===_0x50a67a[a0_0x4a08('0x9')]['id']);if(!_0x127900){throw new Error(a0_0x4a08('0x17')+_0x50a67a['task']['id']);}if((_0x50a67a===null||_0x50a67a===void 0x0?void 0x0:_0x50a67a['startTime'])&&(_0x50a67a===null||_0x50a67a===void 0x0?void 0x0:_0x50a67a[a0_0x4a08('0x25')])){_0x127900[a0_0x4a08('0x13')]=new Date(_0x50a67a[a0_0x4a08('0x13')])[a0_0x4a08('0x26')]();_0x127900['endTime']=new Date(_0x50a67a['endTime'])['toISOString']();}else{_0x127900[a0_0x4a08('0x25')]=new Date()[a0_0x4a08('0x26')]();}_0x127900[a0_0x4a08('0x11')]=_0x50a67a[a0_0x4a08('0x10')];_0x127900['params']=this[a0_0x4a08('0x18')][a0_0x4a08('0x4')](_0x127900[a0_0x4a08('0x23')]);_0x127900['cacheStatus']=_0x3baf08;if(this['collectTerminalOutput']){_0x127900[a0_0x4a08('0x19')]=this[a0_0x4a08('0xb')](_0x50a67a[a0_0x4a08('0x9')][a0_0x4a08('0x5')],_0x127900[a0_0x4a08('0x15')],_0x50a67a[a0_0x4a08('0x10')]);}}[a0_0x4a08('0xb')](_0x37fbe8,_0xc1b33c,_0x2b0b14){return(0x0,read_task_terminal_output_1['readTaskTerminalOutput'])(this['cacheDirectory'],this[a0_0x4a08('0x18')],_0x37fbe8,_0xc1b33c,_0x2b0b14);}[a0_0x4a08('0x1f')](_0x193c13){const _0x538183={};Object['keys'](_0x193c13[a0_0x4a08('0x6')])['filter'](_0x55084b=>!_0x55084b[a0_0x4a08('0x21')]('npm:'))['forEach'](_0x3dfa36=>{_0x538183[_0x3dfa36]=_0x193c13[a0_0x4a08('0x6')][_0x3dfa36];});return{'nodes':_0x538183,'runtime':_0x193c13['runtime'],'implicitDeps':_0x193c13[a0_0x4a08('0xd')]};}}exports['CloudEnabledLifeCycle']=CloudEnabledLifeCycle;
const a0_0x53e6=['find','params','../../../utilities/serializer-overrides','remote-cache-hit','cacheableOperations','../../terminal-output/read-task-terminal-output','endTime','runContext','getTerminalOutput','cache','startTask','hash','cacheDirectory','keys','toISOString','cleanUpHashDetails','push','scheduledTasks','implicitDeps','startsWith','npm:','Cannot\x20find\x20task\x20','collectTerminalOutput','terminalOutput','nodes','outputObfuscator','obfuscate','readTaskTerminalOutput','scheduleTask','serializeOverrides','CloudEnabledLifeCycle','code','defineProperty','status','target','tasks','filter','task','statuses','__esModule','cacheStatus','project','updateStartedTask','startTime','cache-miss'];(function(_0x34b7fb,_0x53e6bc){const _0xe73a98=function(_0x2ac4eb){while(--_0x2ac4eb){_0x34b7fb['push'](_0x34b7fb['shift']());}};_0xe73a98(++_0x53e6bc);}(a0_0x53e6,0x71));const a0_0xe73a=function(_0x34b7fb,_0x53e6bc){_0x34b7fb=_0x34b7fb-0x0;let _0xe73a98=a0_0x53e6[_0x34b7fb];return _0xe73a98;};'use strict';Object[a0_0xe73a('0x9')](exports,a0_0xe73a('0x10'),{'value':!![]});exports[a0_0xe73a('0x7')]=void 0x0;const serializer_overrides_1=require(a0_0xe73a('0x18'));const read_task_terminal_output_1=require(a0_0xe73a('0x1b'));class CloudEnabledLifeCycle{constructor(_0x2c500b,_0x1973ce,_0x5cc794,_0x3c93ab,_0x181cf3,_0x247ffa){this[a0_0xe73a('0x1d')]=_0x2c500b;this[a0_0xe73a('0x22')]=_0x1973ce;this['collectTerminalOutput']=_0x5cc794;this[a0_0xe73a('0x1a')]=_0x3c93ab;this[a0_0xe73a('0x2')]=_0x181cf3;this[a0_0xe73a('0xc')]=_0x247ffa;}[a0_0xe73a('0x5')](_0x9de58b){this[a0_0xe73a('0x1d')][a0_0xe73a('0x27')][a0_0xe73a('0x26')](_0x9de58b);}[a0_0xe73a('0x20')](_0x3454eb){this[a0_0xe73a('0xc')]['push']({'taskId':_0x3454eb['id'],'startTime':new Date()[a0_0xe73a('0x24')](),'target':_0x3454eb[a0_0xe73a('0xb')]['target'],'projectName':_0x3454eb[a0_0xe73a('0xb')][a0_0xe73a('0x12')],'hash':_0x3454eb['hash'],'hashDetails':this[a0_0xe73a('0x25')](_0x3454eb['hashDetails']),'params':(0x0,serializer_overrides_1[a0_0xe73a('0x6')])(_0x3454eb),'uploadedToStorage':![]});}['endTasks'](_0x238531){for(let _0x5433a5 of _0x238531){let _0xfb92c3;const _0x5b3f62=_0x5433a5[a0_0xe73a('0xa')]==='remote-cache';const _0x3e1f63=_0x5433a5[a0_0xe73a('0xa')]===a0_0xe73a('0x1f');const _0x277281=_0x5433a5['status']==='local-cache'||_0x5433a5[a0_0xe73a('0xa')]==='local-cache-kept-existing'||_0x3e1f63;if(this[a0_0xe73a('0x1d')][a0_0xe73a('0xf')][_0x5433a5[a0_0xe73a('0xe')]['hash']]){_0xfb92c3=this[a0_0xe73a('0x1d')]['statuses'][_0x5433a5['task'][a0_0xe73a('0x21')]];}else if(_0x5b3f62){_0xfb92c3=a0_0xe73a('0x19');}else if(_0x277281){_0xfb92c3='local-cache-hit';}else{_0xfb92c3=a0_0xe73a('0x15');}this[a0_0xe73a('0x13')](_0x5433a5,_0xfb92c3);}}['endCommand'](){}[a0_0xe73a('0x13')](_0x66c880,_0x22b816){const _0x58129c=this['tasks'][a0_0xe73a('0x16')](_0xfd4d8a=>_0xfd4d8a['taskId']===_0x66c880[a0_0xe73a('0xe')]['id']);if(!_0x58129c){throw new Error(a0_0xe73a('0x2b')+_0x66c880[a0_0xe73a('0xe')]['id']);}if((_0x66c880===null||_0x66c880===void 0x0?void 0x0:_0x66c880[a0_0xe73a('0x14')])&&(_0x66c880===null||_0x66c880===void 0x0?void 0x0:_0x66c880['endTime'])){_0x58129c['startTime']=new Date(_0x66c880[a0_0xe73a('0x14')])['toISOString']();_0x58129c[a0_0xe73a('0x1c')]=new Date(_0x66c880[a0_0xe73a('0x1c')])[a0_0xe73a('0x24')]();}else{_0x58129c['endTime']=new Date()['toISOString']();}_0x58129c[a0_0xe73a('0xa')]=_0x66c880[a0_0xe73a('0x8')];_0x58129c[a0_0xe73a('0x17')]=this['outputObfuscator'][a0_0xe73a('0x3')](_0x58129c[a0_0xe73a('0x17')]);_0x58129c[a0_0xe73a('0x11')]=_0x22b816;if(this[a0_0xe73a('0x2c')]){_0x58129c[a0_0xe73a('0x0')]=this[a0_0xe73a('0x1e')](_0x66c880[a0_0xe73a('0xe')]['hash'],_0x58129c['cacheStatus'],_0x66c880[a0_0xe73a('0x8')]);}}[a0_0xe73a('0x1e')](_0x22eac0,_0x5ebd56,_0x1f5a88){return(0x0,read_task_terminal_output_1[a0_0xe73a('0x4')])(this['cacheDirectory'],this[a0_0xe73a('0x2')],_0x22eac0,_0x5ebd56,_0x1f5a88);}[a0_0xe73a('0x25')](_0x4bcab0){const _0xf0aac9={};Object[a0_0xe73a('0x23')](_0x4bcab0[a0_0xe73a('0x1')])[a0_0xe73a('0xd')](_0x2e4504=>!_0x2e4504[a0_0xe73a('0x29')](a0_0xe73a('0x2a')))['forEach'](_0x4012fb=>{_0xf0aac9[_0x4012fb]=_0x4bcab0[a0_0xe73a('0x1')][_0x4012fb];});return{'nodes':_0xf0aac9,'runtime':_0x4bcab0['runtime'],'implicitDeps':_0x4bcab0[a0_0xe73a('0x28')]};}}exports[a0_0xe73a('0x7')]=CloudEnabledLifeCycle;

@@ -1,1 +0,1 @@

const a1_0x46c7=['agentRunningInDistributedExecution','warn','cacheableOperations','./cloud-remote-cache','Task\x20with\x20hash\x20','https://nx.app','../../api/error-reporter.api','assign','writeFileSync','cloudEnabledTasksRunner','printMessages','taskId','uploadedToStorage','storedHashes','\x20isn\x27t\x20recorded','local-cache-hit','value','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run.','toString','env','/runs/','EndOfRunMessage','CloudEnabledLifeCycle','lifeCycle','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','accessToken','note','./cloud-run.api','VERBOSE_LOGGING','./cloud-enabled-life-cycle','parseCommand','startRun','store','skipNxCache','CloudRunApi','obfuscate','next','error','encryptionKey','./id-generator','runUrl','all','__esModule','Executed\x20tasks\x20with\x20hashes:\x20','getNxCacheDirectory','throw','getCIExecutionId','map','subscribe','OutputObfuscator','exit','toISOString','anyErrors','getMachineInfo','../../../utilities/environment','printCacheHitsMessage','.commit','url','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20store\x20artifacts.','waitForStoreRequestsToComplete','fs-extra','stringify','processInBackground','__awaiter','submitRunMetrics','../../../utilities/metric-logger','requests','defineProperty','../../file-storage/e2e-encryption','@nrwl/nx-cloud/lib/daemon/process-run-end','length','endRun','cloud-enabled-runner','extractGitSha','filter','pathExists','Nx\x20Cloud\x20Problems','delayedStoreRequests','hash','complete','getCIExecutionEnv','message','daemon','rxjs/internal/Subject','FileStorage','apply','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','ENCRYPTION_KEY','catch','cacheStatus','ErrorReporterApi','path','tasks-hashes-'];(function(_0x94b1bc,_0x46c756){const _0x3d398e=function(_0x101b0e){while(--_0x101b0e){_0x94b1bc['push'](_0x94b1bc['shift']());}};_0x3d398e(++_0x46c756);}(a1_0x46c7,0x8b));const a1_0x3d39=function(_0x94b1bc,_0x46c756){_0x94b1bc=_0x94b1bc-0x0;let _0x3d398e=a1_0x46c7[_0x94b1bc];return _0x3d398e;};'use strict';var __awaiter=this&&this[a1_0x3d39('0x11')]||function(_0x394bea,_0x1d7e07,_0x4f6c92,_0x267538){function _0x4c149c(_0x499ac5){return _0x499ac5 instanceof _0x4f6c92?_0x499ac5:new _0x4f6c92(function(_0x4caabe){_0x4caabe(_0x499ac5);});}return new(_0x4f6c92||(_0x4f6c92=Promise))(function(_0x526143,_0x1efb73){function _0x593a69(_0x57b6dc){try{_0x282b7e(_0x267538[a1_0x3d39('0x53')](_0x57b6dc));}catch(_0x35b4d2){_0x1efb73(_0x35b4d2);}}function _0x11d636(_0xc07a92){try{_0x282b7e(_0x267538[a1_0x3d39('0x5c')](_0xc07a92));}catch(_0x248bd3){_0x1efb73(_0x248bd3);}}function _0x282b7e(_0x134e14){_0x134e14['done']?_0x526143(_0x134e14[a1_0x3d39('0x3f')]):_0x4c149c(_0x134e14['value'])['then'](_0x593a69,_0x11d636);}_0x282b7e((_0x267538=_0x267538[a1_0x3d39('0x27')](_0x394bea,_0x1d7e07||[]))[a1_0x3d39('0x53')]());});};Object[a1_0x3d39('0x15')](exports,a1_0x3d39('0x59'),{'value':!![]});exports[a1_0x3d39('0x38')]=void 0x0;const message_reporter_1=require('../../terminal-output/message-reporter');const end_of_run_message_1=require('../../terminal-output/end-of-run-message');const output_obfuscator_1=require('../../terminal-output/output-obfuscator');const cloud_enabled_life_cycle_1=require(a1_0x3d39('0x4c'));const file_storage_1=require('../../file-storage/file-storage');const e2e_encryption_1=require(a1_0x3d39('0x16'));const environment_1=require(a1_0x3d39('0x8'));const cloud_remote_cache_1=require(a1_0x3d39('0x32'));const cloud_run_api_1=require(a1_0x3d39('0x4a'));const fs_1=require('fs');const path=require(a1_0x3d39('0x2d'));const path_1=require(a1_0x3d39('0x2d'));const metric_logger_1=require(a1_0x3d39('0x13'));const error_reporter_api_1=require(a1_0x3d39('0x35'));const fs_extra_1=require(a1_0x3d39('0xe'));const id_generator_1=require(a1_0x3d39('0x56'));const {tasksRunner,output}=require('../../../utilities/nx-imports');function createApi(_0x5f5aeb,_0x257abb,_0x36497c){const _0xa7de87=(0x0,environment_1[a1_0x3d39('0x7')])(_0x257abb);return new cloud_run_api_1[(a1_0x3d39('0x51'))](_0x5f5aeb,_0x36497c,_0x257abb,_0xa7de87);}function storeTaskHashes(_0x49468c,_0x8a617e,_0x5969b7){const _0x414e60=JSON[a1_0x3d39('0xf')](_0x49468c['map'](_0xcc71e5=>({'taskId':_0xcc71e5[a1_0x3d39('0x3a')],'hash':_0xcc71e5[a1_0x3d39('0x20')]})));if(environment_1[a1_0x3d39('0x4b')]){output[a1_0x3d39('0x49')]({'title':a1_0x3d39('0x5a')+_0x414e60});}(0x0,fs_1[a1_0x3d39('0x37')])(path['join'](_0x8a617e,a1_0x3d39('0x2e')+_0x5969b7),_0x414e60);}function storeLocalCacheHits(_0x2e5423,_0x1b7fb0,_0x21be31){const _0x150bb0=_0x2e5423[a1_0x3d39('0x1c')](_0xcae351=>_0xcae351[a1_0x3d39('0x2b')]===a1_0x3d39('0x3e'))[a1_0x3d39('0x1')](_0x7603e6=>_0x7603e6[a1_0x3d39('0x20')]);_0x150bb0['forEach'](_0x45c36f=>_0x1b7fb0[a1_0x3d39('0x4f')](_0x45c36f,_0x21be31));}function onComplete({daemon,options,fileStorage,remoteCache,api,outputObfuscator,runStartTime,messages,endOfRunMessage,taskExecutions,versionOfNxBefore133,inner,encryptionKey,storeInCurrentProcess,distributedExecutionId,runContext}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1a4468=new Date()[a1_0x3d39('0x5')]();const _0x1729a4=(0x0,environment_1['getBranch'])();const _0x5dbcf4={'command':outputObfuscator[a1_0x3d39('0x52')]((0x0,environment_1[a1_0x3d39('0x4d')])()),'startTime':runStartTime,'endTime':_0x1a4468,'distributedExecutionId':distributedExecutionId,'branch':_0x1729a4,'runGroup':(0x0,environment_1['getRunGroup'])(),'sha':_0x1729a4?(0x0,environment_1[a1_0x3d39('0x1b')])():undefined,'inner':inner};const _0x45ef2b={'branch':_0x1729a4,'runGroup':(0x0,environment_1['getRunGroup'])(),'ciExecutionId':(0x0,environment_1[a1_0x3d39('0x0')])(),'ciExecutionEnv':(0x0,environment_1[a1_0x3d39('0x22')])()};if(storeInCurrentProcess){if((0x0,environment_1['agentRunningInDistributedExecution'])(distributedExecutionId)){const _0xbf8901=(0x0,environment_1[a1_0x3d39('0x5b')])(options);storeTaskHashes(taskExecutions,_0xbf8901,distributedExecutionId);storeLocalCacheHits(taskExecutions,remoteCache,_0xbf8901);}try{yield remoteCache[a1_0x3d39('0xd')]();}catch(_0x155956){output[a1_0x3d39('0x54')]({'title':a1_0x3d39('0xc')});messages[a1_0x3d39('0x39')]();return![];}for(const _0x315039 of fileStorage[a1_0x3d39('0x3c')]){const _0x1eeafd=taskExecutions['find'](_0x2f21b6=>_0x2f21b6['hash']===_0x315039);if(!_0x1eeafd){throw new Error(a1_0x3d39('0x33')+_0x315039+a1_0x3d39('0x3d'));}_0x1eeafd[a1_0x3d39('0x3b')]=!![];}try{yield api[a1_0x3d39('0x19')](_0x5dbcf4,taskExecutions,_0x45ef2b);}catch(_0x333ada){output[a1_0x3d39('0x54')]({'title':a1_0x3d39('0x40')});messages[a1_0x3d39('0x39')]();return![];}yield(0x0,metric_logger_1[a1_0x3d39('0x12')])(options);}else{try{const _0x5d3ffc=environment_1['ACCESS_TOKEN']?environment_1['ACCESS_TOKEN']:options[a1_0x3d39('0x48')];const _0x19e346=(0x0,id_generator_1['generateUniqueLinkId'])();yield daemon[a1_0x3d39('0x10')](a1_0x3d39('0x17'),{'encryptionKey':encryptionKey,'runnerOptions':Object[a1_0x3d39('0x36')](Object[a1_0x3d39('0x36')]({},options),{'accessToken':_0x5d3ffc}),'delayedStoreRequests':remoteCache[a1_0x3d39('0x1f')],'ciExecutionContext':_0x45ef2b,'runEnd':{'runData':_0x5dbcf4,'taskExecutions':taskExecutions,'linkId':_0x19e346}});runContext[a1_0x3d39('0x57')]=(options[a1_0x3d39('0xb')]||a1_0x3d39('0x34'))+a1_0x3d39('0x43')+_0x19e346;}catch(_0x3cf3e0){output[a1_0x3d39('0x30')]({'title':a1_0x3d39('0x1e'),'bodyLines':[_0x3cf3e0[a1_0x3d39('0x23')]||_0x3cf3e0[a1_0x3d39('0x41')]()]});return![];}}if(versionOfNxBefore133){setTimeout(()=>{messages[a1_0x3d39('0x39')]();if(!messages['anyErrors']&&!inner){endOfRunMessage[a1_0x3d39('0x9')]();}},0x0);}else{messages['printMessages']();if(!messages[a1_0x3d39('0x6')]&&!inner){endOfRunMessage[a1_0x3d39('0x9')]();}}return!![];});}function createLifeCycle(_0x483577,_0x59d0de,_0x515593,_0x4aa234){const _0x535915=new cloud_enabled_life_cycle_1[(a1_0x3d39('0x45'))](_0x483577,(0x0,environment_1[a1_0x3d39('0x5b')])(_0x59d0de),!![],_0x59d0de[a1_0x3d39('0x31')]||[],_0x515593,_0x4aa234);try{const {CompositeLifeCycle}=require('../../../utilities/nx-imports');if(!CompositeLifeCycle)return _0x535915;return new CompositeLifeCycle([_0x59d0de[a1_0x3d39('0x46')],_0x535915]);}catch(_0x31e226){return _0x535915;}}function fetchUrlsForKnownHashesUpfront(_0x45378f,_0x302ce1,_0xd8ceca,_0x157b97,_0x5c87e1){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x157b97[a1_0x3d39('0x50')])return;let _0x4ee95e=_0xd8ceca['map'](_0x5aec08=>_0x5aec08[a1_0x3d39('0x20')])[a1_0x3d39('0x1c')](_0x517dc3=>!!_0x517dc3);const _0x96ed3b=(0x0,environment_1[a1_0x3d39('0x5b')])(_0x157b97);const _0x562bcf=yield Promise[a1_0x3d39('0x58')](_0x4ee95e['map'](_0x56ecda=>{const _0x3f3ac9=(0x0,path_1['join'])(_0x96ed3b,_0x56ecda+a1_0x3d39('0xa'));return(0x0,fs_extra_1[a1_0x3d39('0x1d')])(_0x3f3ac9);}));const _0x3d6474=[];for(let _0xdb44c9=0x0;_0xdb44c9<_0x562bcf[a1_0x3d39('0x18')];++_0xdb44c9){if(!_0x562bcf[_0xdb44c9]){_0x3d6474['push'](_0x4ee95e[_0xdb44c9]);}}if(_0x3d6474[a1_0x3d39('0x18')]>0x0){const _0x239163=_0x45378f[a1_0x3d39('0x4e')](_0x5c87e1,_0x3d6474);for(const _0x4b3876 of _0x3d6474){_0x302ce1[a1_0x3d39('0x14')][_0x4b3876]=_0x239163;}}});}function cloudEnabledTasksRunner(_0x22d371,_0x106fcc,_0x518da9,_0xa8fb48=![]){var _0x57c42d;const _0x37975a=process[a1_0x3d39('0x42')]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'];const _0x1f24bf={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x22d371};const _0x3dc671=_0x106fcc['lifeCycle']===undefined;const _0x169a1a=[];const _0x137e54=new message_reporter_1['MessageReporter'](_0x106fcc);const _0x2cd4a1=createApi(_0x137e54,_0x106fcc,_0x1f24bf);const _0x310ac7=new end_of_run_message_1[(a1_0x3d39('0x44'))](_0x1f24bf,_0x169a1a,_0x37975a);const _0x1aef56=new output_obfuscator_1[(a1_0x3d39('0x3'))](_0x106fcc['maskedProperties']);const _0x2c4ef2=new Date()[a1_0x3d39('0x5')]();const _0x437250=createLifeCycle(_0x1f24bf,_0x106fcc,_0x1aef56,_0x169a1a);const _0x425dac=environment_1[a1_0x3d39('0x29')]||_0x106fcc[a1_0x3d39('0x55')];const _0x11f187=new e2e_encryption_1['E2EEncryption'](_0x425dac);const _0x43c93d=new error_reporter_api_1[(a1_0x3d39('0x2c'))](_0x106fcc);const _0x11ebb8=(0x0,environment_1[a1_0x3d39('0x2f')])(_0x37975a)||!((_0x57c42d=_0x518da9[a1_0x3d39('0x24')])===null||_0x57c42d===void 0x0?void 0x0:_0x57c42d['enabled']());const _0x58a3ed=new file_storage_1[(a1_0x3d39('0x26'))](_0x11f187,_0x43c93d,_0x106fcc,a1_0x3d39('0x1a'));const _0x6c6ee4=new cloud_remote_cache_1['CloudRemoteCache'](_0x137e54,_0x2cd4a1,_0x1f24bf,_0x58a3ed,_0x37975a,_0x11ebb8);fetchUrlsForKnownHashesUpfront(_0x2cd4a1,_0x1f24bf,_0x22d371,_0x106fcc,_0x37975a);delete process[a1_0x3d39('0x42')][a1_0x3d39('0x28')];const _0x28fe31=tasksRunner(_0x22d371,Object['assign'](Object[a1_0x3d39('0x36')]({},_0x106fcc),{'remoteCache':_0x6c6ee4,'lifeCycle':_0x437250}),_0x518da9);if(_0x28fe31[a1_0x3d39('0x2')]){const {Subject}=require(a1_0x3d39('0x25'));const _0x1f4baa=new Subject();_0x28fe31['subscribe']({'next':_0x573795=>_0x1f4baa['next'](_0x573795),'error':_0x3731dd=>_0x1f4baa[a1_0x3d39('0x54')](_0x3731dd),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x2bd4ee=yield onComplete({'daemon':_0x518da9[a1_0x3d39('0x24')],'options':_0x106fcc,'fileStorage':_0x58a3ed,'remoteCache':_0x6c6ee4,'api':_0x2cd4a1,'outputObfuscator':_0x1aef56,'runStartTime':_0x2c4ef2,'messages':_0x137e54,'endOfRunMessage':_0x310ac7,'taskExecutions':_0x169a1a,'versionOfNxBefore133':_0x3dc671,'inner':_0xa8fb48,'encryptionKey':_0x425dac,'storeInCurrentProcess':_0x11ebb8,'runContext':_0x1f24bf,'distributedExecutionId':_0x37975a});if(!_0x2bd4ee&&(0x0,environment_1[a1_0x3d39('0x2f')])(_0x37975a)){process['exit'](environment_1['DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE']);}_0x1f4baa[a1_0x3d39('0x21')]();})});return _0x1f4baa;}else{return _0x28fe31['then'](_0x198fc7=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x309c04=yield onComplete({'daemon':_0x518da9[a1_0x3d39('0x24')],'options':_0x106fcc,'fileStorage':_0x58a3ed,'remoteCache':_0x6c6ee4,'api':_0x2cd4a1,'outputObfuscator':_0x1aef56,'runStartTime':_0x2c4ef2,'messages':_0x137e54,'endOfRunMessage':_0x310ac7,'taskExecutions':_0x169a1a,'versionOfNxBefore133':_0x3dc671,'inner':_0xa8fb48,'encryptionKey':_0x425dac,'storeInCurrentProcess':_0x11ebb8,'runContext':_0x1f24bf,'distributedExecutionId':_0x37975a});if(!_0x309c04&&(0x0,environment_1[a1_0x3d39('0x2f')])(_0x37975a)){process['exit'](environment_1['DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE']);}return _0x198fc7;}))[a1_0x3d39('0x2a')](_0x3fa281=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x1ab69f=yield onComplete({'daemon':_0x518da9[a1_0x3d39('0x24')],'options':_0x106fcc,'fileStorage':_0x58a3ed,'remoteCache':_0x6c6ee4,'api':_0x2cd4a1,'outputObfuscator':_0x1aef56,'runStartTime':_0x2c4ef2,'messages':_0x137e54,'endOfRunMessage':_0x310ac7,'taskExecutions':_0x169a1a,'versionOfNxBefore133':_0x3dc671,'inner':_0xa8fb48,'encryptionKey':_0x425dac,'storeInCurrentProcess':_0x11ebb8,'runContext':_0x1f24bf,'distributedExecutionId':_0x37975a});if(!_0x1ab69f&&(0x0,environment_1[a1_0x3d39('0x2f')])(_0x37975a)){process[a1_0x3d39('0x4')](environment_1[a1_0x3d39('0x47')]);}throw _0x3fa281;}));}}exports[a1_0x3d39('0x38')]=cloudEnabledTasksRunner;
const a1_0x3d10=['next','printMessages','warn','push','join','fs-extra','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run.','VERBOSE_LOGGING','stringify','apply','maskedProperties','tasks-hashes-','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20store\x20artifacts.','../../api/error-reporter.api','E2EEncryption','store','../../../utilities/environment','../../../utilities/metric-logger','taskId','cloud-enabled-runner','uploadedToStorage','local-cache-hit','printCacheHitsMessage','@nrwl/nx-cloud/lib/daemon/process-run-end','accessToken','assign','extractGitSha','./cloud-run.api','ENCRYPTION_KEY','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','Executed\x20tasks\x20with\x20hashes:\x20','delayedStoreRequests','runUrl','then','all','https://nx.app','CloudEnabledLifeCycle','../../../utilities/nx-imports','note','cacheStatus','catch','./cloud-enabled-life-cycle','obfuscate','getNxCacheDirectory','hash','storedHashes','../../file-storage/e2e-encryption','/runs/','subscribe','../../terminal-output/output-obfuscator','throw','cloudEnabledTasksRunner','processInBackground','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','encryptionKey','toString','agentRunningInDistributedExecution','lifeCycle','env','message','rxjs/internal/Subject','../../terminal-output/message-reporter','exit','parseCommand','../../terminal-output/end-of-run-message','length','value','CloudRunApi','daemon','OutputObfuscator','path','EndOfRunMessage','__esModule','cacheableOperations','anyErrors','requests','ACCESS_TOKEN','\x20isn\x27t\x20recorded','toISOString','Task\x20with\x20hash\x20','done','generateUniqueLinkId','url','map','error','filter','writeFileSync','getMachineInfo'];(function(_0x4ccde3,_0x3d109c){const _0x54707c=function(_0x553c50){while(--_0x553c50){_0x4ccde3['push'](_0x4ccde3['shift']());}};_0x54707c(++_0x3d109c);}(a1_0x3d10,0x1a6));const a1_0x5470=function(_0x4ccde3,_0x3d109c){_0x4ccde3=_0x4ccde3-0x0;let _0x54707c=a1_0x3d10[_0x4ccde3];return _0x54707c;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x45f801,_0x319087,_0x4bf01e,_0x1b84bb){function _0x37520f(_0x18bbcf){return _0x18bbcf instanceof _0x4bf01e?_0x18bbcf:new _0x4bf01e(function(_0x52ebbd){_0x52ebbd(_0x18bbcf);});}return new(_0x4bf01e||(_0x4bf01e=Promise))(function(_0x2baf7b,_0x3cb563){function _0x31db59(_0x39e171){try{_0x4c60a7(_0x1b84bb[a1_0x5470('0x12')](_0x39e171));}catch(_0x40f1e0){_0x3cb563(_0x40f1e0);}}function _0x1c60ff(_0x2a0579){try{_0x4c60a7(_0x1b84bb[a1_0x5470('0x44')](_0x2a0579));}catch(_0x1b9179){_0x3cb563(_0x1b9179);}}function _0x4c60a7(_0x5cc491){_0x5cc491[a1_0x5470('0xa')]?_0x2baf7b(_0x5cc491[a1_0x5470('0x54')]):_0x37520f(_0x5cc491[a1_0x5470('0x54')])[a1_0x5470('0x33')](_0x31db59,_0x1c60ff);}_0x4c60a7((_0x1b84bb=_0x1b84bb[a1_0x5470('0x1b')](_0x45f801,_0x319087||[]))[a1_0x5470('0x12')]());});};Object['defineProperty'](exports,a1_0x5470('0x2'),{'value':!![]});exports[a1_0x5470('0x45')]=void 0x0;const message_reporter_1=require(a1_0x5470('0x4f'));const end_of_run_message_1=require(a1_0x5470('0x52'));const output_obfuscator_1=require(a1_0x5470('0x43'));const cloud_enabled_life_cycle_1=require(a1_0x5470('0x3b'));const file_storage_1=require('../../file-storage/file-storage');const e2e_encryption_1=require(a1_0x5470('0x40'));const environment_1=require(a1_0x5470('0x22'));const cloud_remote_cache_1=require('./cloud-remote-cache');const cloud_run_api_1=require(a1_0x5470('0x2d'));const fs_1=require('fs');const path=require(a1_0x5470('0x0'));const path_1=require(a1_0x5470('0x0'));const metric_logger_1=require(a1_0x5470('0x23'));const error_reporter_api_1=require(a1_0x5470('0x1f'));const fs_extra_1=require(a1_0x5470('0x17'));const id_generator_1=require('./id-generator');const {tasksRunner,output}=require(a1_0x5470('0x37'));function createApi(_0x598c76,_0x28059b,_0x446a8a){const _0x4fea9a=(0x0,environment_1[a1_0x5470('0x11')])(_0x28059b);return new cloud_run_api_1[(a1_0x5470('0x55'))](_0x598c76,_0x446a8a,_0x28059b,_0x4fea9a);}function storeTaskHashes(_0x198a9e,_0x5ab4de,_0x148758){const _0x4619e8=JSON[a1_0x5470('0x1a')](_0x198a9e['map'](_0x4e6295=>({'taskId':_0x4e6295[a1_0x5470('0x24')],'hash':_0x4e6295[a1_0x5470('0x3e')]})));if(environment_1[a1_0x5470('0x19')]){output[a1_0x5470('0x38')]({'title':a1_0x5470('0x30')+_0x4619e8});}(0x0,fs_1[a1_0x5470('0x10')])(path['join'](_0x5ab4de,a1_0x5470('0x1d')+_0x148758),_0x4619e8);}function storeLocalCacheHits(_0x904c86,_0x5c7edc,_0x12b8f){const _0x1d9594=_0x904c86['filter'](_0x228fe1=>_0x228fe1[a1_0x5470('0x39')]===a1_0x5470('0x27'))[a1_0x5470('0xd')](_0x5af9dd=>_0x5af9dd[a1_0x5470('0x3e')]);_0x1d9594['forEach'](_0x2452a1=>_0x5c7edc[a1_0x5470('0x21')](_0x2452a1,_0x12b8f));}function onComplete({daemon,options,fileStorage,remoteCache,api,outputObfuscator,runStartTime,messages,endOfRunMessage,taskExecutions,versionOfNxBefore133,inner,encryptionKey,storeInCurrentProcess,distributedExecutionId,runContext}){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4f058a=new Date()[a1_0x5470('0x8')]();const _0x572f92=(0x0,environment_1['getBranch'])();const _0x14371b={'command':outputObfuscator[a1_0x5470('0x3c')]((0x0,environment_1[a1_0x5470('0x51')])()),'startTime':runStartTime,'endTime':_0x4f058a,'distributedExecutionId':distributedExecutionId,'branch':_0x572f92,'runGroup':(0x0,environment_1['getRunGroup'])(),'sha':_0x572f92?(0x0,environment_1[a1_0x5470('0x2c')])():undefined,'inner':inner};const _0x2fe253={'branch':_0x572f92,'runGroup':(0x0,environment_1['getRunGroup'])(),'ciExecutionId':(0x0,environment_1['getCIExecutionId'])(),'ciExecutionEnv':(0x0,environment_1['getCIExecutionEnv'])()};if(storeInCurrentProcess){if((0x0,environment_1[a1_0x5470('0x4a')])(distributedExecutionId)){const _0x545e39=(0x0,environment_1[a1_0x5470('0x3d')])(options);storeTaskHashes(taskExecutions,_0x545e39,distributedExecutionId);storeLocalCacheHits(taskExecutions,remoteCache,_0x545e39);}try{yield remoteCache['waitForStoreRequestsToComplete']();}catch(_0x324fdc){output[a1_0x5470('0xe')]({'title':a1_0x5470('0x1e')});messages[a1_0x5470('0x13')]();return![];}for(const _0x4e0922 of fileStorage[a1_0x5470('0x3f')]){const _0x53b4da=taskExecutions['find'](_0x5edea5=>_0x5edea5[a1_0x5470('0x3e')]===_0x4e0922);if(!_0x53b4da){throw new Error(a1_0x5470('0x9')+_0x4e0922+a1_0x5470('0x7'));}_0x53b4da[a1_0x5470('0x26')]=!![];}try{yield api['endRun'](_0x14371b,taskExecutions,_0x2fe253);}catch(_0x2d070c){output[a1_0x5470('0xe')]({'title':a1_0x5470('0x18')});messages[a1_0x5470('0x13')]();return![];}yield(0x0,metric_logger_1['submitRunMetrics'])(options);}else{try{const _0x150605=environment_1[a1_0x5470('0x6')]?environment_1['ACCESS_TOKEN']:options[a1_0x5470('0x2a')];const _0x2f1e4a=(0x0,id_generator_1[a1_0x5470('0xb')])();yield daemon[a1_0x5470('0x46')](a1_0x5470('0x29'),{'encryptionKey':encryptionKey,'runnerOptions':Object[a1_0x5470('0x2b')](Object[a1_0x5470('0x2b')]({},options),{'accessToken':_0x150605}),'delayedStoreRequests':remoteCache[a1_0x5470('0x31')],'ciExecutionContext':_0x2fe253,'runEnd':{'runData':_0x14371b,'taskExecutions':taskExecutions,'linkId':_0x2f1e4a}});runContext[a1_0x5470('0x32')]=(options[a1_0x5470('0xc')]||a1_0x5470('0x35'))+a1_0x5470('0x41')+_0x2f1e4a;}catch(_0x9def31){output[a1_0x5470('0x14')]({'title':'Nx\x20Cloud\x20Problems','bodyLines':[_0x9def31[a1_0x5470('0x4d')]||_0x9def31[a1_0x5470('0x49')]()]});return![];}}if(versionOfNxBefore133){setTimeout(()=>{messages[a1_0x5470('0x13')]();if(!messages[a1_0x5470('0x4')]&&!inner){endOfRunMessage[a1_0x5470('0x28')]();}},0x0);}else{messages[a1_0x5470('0x13')]();if(!messages[a1_0x5470('0x4')]&&!inner){endOfRunMessage['printCacheHitsMessage']();}}return!![];});}function createLifeCycle(_0x3db5ed,_0x50a973,_0x31be83,_0x175a97){const _0x2ee3f3=new cloud_enabled_life_cycle_1[(a1_0x5470('0x36'))](_0x3db5ed,(0x0,environment_1[a1_0x5470('0x3d')])(_0x50a973),!![],_0x50a973[a1_0x5470('0x3')]||[],_0x31be83,_0x175a97);try{const {CompositeLifeCycle}=require('../../../utilities/nx-imports');if(!CompositeLifeCycle)return _0x2ee3f3;return new CompositeLifeCycle([_0x50a973['lifeCycle'],_0x2ee3f3]);}catch(_0x3e88db){return _0x2ee3f3;}}function fetchUrlsForKnownHashesUpfront(_0x16b497,_0x52e357,_0x50c196,_0x58ec81,_0x3bdcb4){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x58ec81['skipNxCache'])return;let _0x89dd84=_0x50c196[a1_0x5470('0xd')](_0x198c1a=>_0x198c1a[a1_0x5470('0x3e')])[a1_0x5470('0xf')](_0x781d6b=>!!_0x781d6b);const _0x18a9fd=(0x0,environment_1['getNxCacheDirectory'])(_0x58ec81);const _0x4a01df=yield Promise[a1_0x5470('0x34')](_0x89dd84['map'](_0x2af930=>{const _0x1134f0=(0x0,path_1[a1_0x5470('0x16')])(_0x18a9fd,_0x2af930+'.commit');return(0x0,fs_extra_1['pathExists'])(_0x1134f0);}));const _0x792622=[];for(let _0x2e3bd5=0x0;_0x2e3bd5<_0x4a01df[a1_0x5470('0x53')];++_0x2e3bd5){if(!_0x4a01df[_0x2e3bd5]){_0x792622[a1_0x5470('0x15')](_0x89dd84[_0x2e3bd5]);}}if(_0x792622[a1_0x5470('0x53')]>0x0){const _0x3c14e2=_0x16b497['startRun'](_0x3bdcb4,_0x792622);for(const _0x1a6a0e of _0x792622){_0x52e357[a1_0x5470('0x5')][_0x1a6a0e]=_0x3c14e2;}}});}function cloudEnabledTasksRunner(_0x5a9b1e,_0x1dbe8c,_0x4ad5f3,_0x1ea66b=![]){var _0x33bd0a;const _0x30a8c2=process[a1_0x5470('0x4c')][a1_0x5470('0x47')];const _0x1ed90c={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x5a9b1e};const _0x2b0456=_0x1dbe8c[a1_0x5470('0x4b')]===undefined;const _0x3d6f5d=[];const _0x352104=new message_reporter_1['MessageReporter'](_0x1dbe8c);const _0x492faf=createApi(_0x352104,_0x1dbe8c,_0x1ed90c);const _0x329e14=new end_of_run_message_1[(a1_0x5470('0x1'))](_0x1ed90c,_0x3d6f5d,_0x30a8c2);const _0x4cb19c=new output_obfuscator_1[(a1_0x5470('0x57'))](_0x1dbe8c[a1_0x5470('0x1c')]);const _0x59f12f=new Date()[a1_0x5470('0x8')]();const _0x5536d3=createLifeCycle(_0x1ed90c,_0x1dbe8c,_0x4cb19c,_0x3d6f5d);const _0x10f14e=environment_1[a1_0x5470('0x2e')]||_0x1dbe8c[a1_0x5470('0x48')];const _0x11ca82=new e2e_encryption_1[(a1_0x5470('0x20'))](_0x10f14e);const _0x1998ac=new error_reporter_api_1['ErrorReporterApi'](_0x1dbe8c);const _0x474f1a=(0x0,environment_1[a1_0x5470('0x4a')])(_0x30a8c2)||!((_0x33bd0a=_0x4ad5f3[a1_0x5470('0x56')])===null||_0x33bd0a===void 0x0?void 0x0:_0x33bd0a['enabled']());const _0x3e0667=new file_storage_1['FileStorage'](_0x11ca82,_0x1998ac,_0x1dbe8c,a1_0x5470('0x25'));const _0x226bfb=new cloud_remote_cache_1['CloudRemoteCache'](_0x352104,_0x492faf,_0x1ed90c,_0x3e0667,_0x30a8c2,_0x474f1a);fetchUrlsForKnownHashesUpfront(_0x492faf,_0x1ed90c,_0x5a9b1e,_0x1dbe8c,_0x30a8c2);delete process[a1_0x5470('0x4c')][a1_0x5470('0x47')];const _0x4d4d60=tasksRunner(_0x5a9b1e,Object[a1_0x5470('0x2b')](Object['assign']({},_0x1dbe8c),{'remoteCache':_0x226bfb,'lifeCycle':_0x5536d3}),_0x4ad5f3);if(_0x4d4d60[a1_0x5470('0x42')]){const {Subject}=require(a1_0x5470('0x4e'));const _0x3b10c4=new Subject();_0x4d4d60[a1_0x5470('0x42')]({'next':_0x2ece85=>_0x3b10c4['next'](_0x2ece85),'error':_0x197146=>_0x3b10c4[a1_0x5470('0xe')](_0x197146),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x5698f7=yield onComplete({'daemon':_0x4ad5f3[a1_0x5470('0x56')],'options':_0x1dbe8c,'fileStorage':_0x3e0667,'remoteCache':_0x226bfb,'api':_0x492faf,'outputObfuscator':_0x4cb19c,'runStartTime':_0x59f12f,'messages':_0x352104,'endOfRunMessage':_0x329e14,'taskExecutions':_0x3d6f5d,'versionOfNxBefore133':_0x2b0456,'inner':_0x1ea66b,'encryptionKey':_0x10f14e,'storeInCurrentProcess':_0x474f1a,'runContext':_0x1ed90c,'distributedExecutionId':_0x30a8c2});if(!_0x5698f7&&(0x0,environment_1[a1_0x5470('0x4a')])(_0x30a8c2)){process[a1_0x5470('0x50')](environment_1[a1_0x5470('0x2f')]);}_0x3b10c4['complete']();})});return _0x3b10c4;}else{return _0x4d4d60['then'](_0x40d1f0=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x49df5f=yield onComplete({'daemon':_0x4ad5f3[a1_0x5470('0x56')],'options':_0x1dbe8c,'fileStorage':_0x3e0667,'remoteCache':_0x226bfb,'api':_0x492faf,'outputObfuscator':_0x4cb19c,'runStartTime':_0x59f12f,'messages':_0x352104,'endOfRunMessage':_0x329e14,'taskExecutions':_0x3d6f5d,'versionOfNxBefore133':_0x2b0456,'inner':_0x1ea66b,'encryptionKey':_0x10f14e,'storeInCurrentProcess':_0x474f1a,'runContext':_0x1ed90c,'distributedExecutionId':_0x30a8c2});if(!_0x49df5f&&(0x0,environment_1[a1_0x5470('0x4a')])(_0x30a8c2)){process[a1_0x5470('0x50')](environment_1['DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE']);}return _0x40d1f0;}))[a1_0x5470('0x3a')](_0x9b0cb0=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4ebcd9=yield onComplete({'daemon':_0x4ad5f3[a1_0x5470('0x56')],'options':_0x1dbe8c,'fileStorage':_0x3e0667,'remoteCache':_0x226bfb,'api':_0x492faf,'outputObfuscator':_0x4cb19c,'runStartTime':_0x59f12f,'messages':_0x352104,'endOfRunMessage':_0x329e14,'taskExecutions':_0x3d6f5d,'versionOfNxBefore133':_0x2b0456,'inner':_0x1ea66b,'encryptionKey':_0x10f14e,'storeInCurrentProcess':_0x474f1a,'runContext':_0x1ed90c,'distributedExecutionId':_0x30a8c2});if(!_0x4ebcd9&&(0x0,environment_1[a1_0x5470('0x4a')])(_0x30a8c2)){process[a1_0x5470('0x50')](environment_1['DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE']);}throw _0x9b0cb0;}));}}exports[a1_0x5470('0x45')]=cloudEnabledTasksRunner;

@@ -1,1 +0,1 @@

const a2_0x26b7=['VERBOSE_LOGGING','store','retrieve','cache-miss','hashUrls','Maybe\x20you\x20are\x20using\x20a\x20read-only\x20token\x20or\x20the\x20artifact\x20has\x20already\x20being\x20uploaded.','../../../utilities/nx-imports','../../../utilities/environment','requests','reduce','all','axiosException','Error\x20when\x20storing\x20artifacts','get','CloudRemoteCache','__esModule','waitForStoreRequestsToComplete','statuses','note','response','next','api','storeInCurrentProcess','There\x20are\x20several\x20reasons\x20why\x20this\x20can\x20happen.','.\x20Status\x20404.','remote-cache-hit','map','defineProperty','startRun','filter','value','runContext','extractErrorMessage','fileStorage','__awaiter','distributedExecutionId','done','apply','Nx\x20Cloud:\x20Skipping\x20storing\x20','resolve','push','indexOf','put','messages','cacheError','status','Nx\x20Cloud:\x20Cache\x20miss\x20','forEach','delayedStoreRequests','scheduledTasks','throw','storage','then','storeRequests'];(function(_0x153d9a,_0x26b75b){const _0x3b79f7=function(_0x18ceb7){while(--_0x18ceb7){_0x153d9a['push'](_0x153d9a['shift']());}};_0x3b79f7(++_0x26b75b);}(a2_0x26b7,0xbd));const a2_0x3b79=function(_0x153d9a,_0x26b75b){_0x153d9a=_0x153d9a-0x0;let _0x3b79f7=a2_0x26b7[_0x153d9a];return _0x3b79f7;};'use strict';var __awaiter=this&&this[a2_0x3b79('0x7')]||function(_0x49abaf,_0x1bd2ba,_0x1bfea7,_0x5d5d09){function _0x54ace8(_0x695078){return _0x695078 instanceof _0x1bfea7?_0x695078:new _0x1bfea7(function(_0x13fd38){_0x13fd38(_0x695078);});}return new(_0x1bfea7||(_0x1bfea7=Promise))(function(_0x2500d4,_0x5f3e31){function _0x1ca208(_0x321bea){try{_0x26ab9a(_0x5d5d09[a2_0x3b79('0x2f')](_0x321bea));}catch(_0x433534){_0x5f3e31(_0x433534);}}function _0x54e01b(_0x30c8ab){try{_0x26ab9a(_0x5d5d09[a2_0x3b79('0x17')](_0x30c8ab));}catch(_0x44d135){_0x5f3e31(_0x44d135);}}function _0x26ab9a(_0x3595c3){_0x3595c3[a2_0x3b79('0x9')]?_0x2500d4(_0x3595c3[a2_0x3b79('0x3')]):_0x54ace8(_0x3595c3['value'])[a2_0x3b79('0x19')](_0x1ca208,_0x54e01b);}_0x26ab9a((_0x5d5d09=_0x5d5d09[a2_0x3b79('0xa')](_0x49abaf,_0x1bd2ba||[]))['next']());});};Object[a2_0x3b79('0x0')](exports,a2_0x3b79('0x2a'),{'value':!![]});exports[a2_0x3b79('0x29')]=void 0x0;const environment_1=require(a2_0x3b79('0x22'));const {output}=require(a2_0x3b79('0x21'));class CloudRemoteCache{constructor(_0x26034f,_0x36f313,_0x5cfcca,_0x4fb96d,_0x163d8d,_0x1fb2a4){this[a2_0x3b79('0x10')]=_0x26034f;this['api']=_0x36f313;this[a2_0x3b79('0x4')]=_0x5cfcca;this[a2_0x3b79('0x6')]=_0x4fb96d;this[a2_0x3b79('0x8')]=_0x163d8d;this[a2_0x3b79('0x31')]=_0x1fb2a4;this[a2_0x3b79('0x1a')]=[];this[a2_0x3b79('0x15')]=[];}[a2_0x3b79('0x1d')](_0x113cde,_0x393015){var _0x505728;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x3b79('0x10')][a2_0x3b79('0x11')])return![];const _0x58ce75=yield this[a2_0x3b79('0x1f')](_0x113cde);if(!_0x58ce75||!_0x58ce75[a2_0x3b79('0x28')]){if(environment_1[a2_0x3b79('0x1b')]){output['note']({'title':a2_0x3b79('0x13')+_0x113cde+'.'});}this[a2_0x3b79('0x4')]['statuses'][_0x113cde]='cache-miss';return![];}try{yield this['fileStorage'][a2_0x3b79('0x1d')](_0x113cde,_0x58ce75['get'],_0x393015);this[a2_0x3b79('0x4')][a2_0x3b79('0x2c')][_0x113cde]=a2_0x3b79('0x34');return!![];}catch(_0x5a8166){const _0x2fef8f=(_0x505728=_0x5a8166[a2_0x3b79('0x26')])!==null&&_0x505728!==void 0x0?_0x505728:_0x5a8166;if(_0x2fef8f[a2_0x3b79('0x2e')]&&_0x2fef8f['response'][a2_0x3b79('0x12')]===0x194){if(environment_1[a2_0x3b79('0x1b')]){output[a2_0x3b79('0x2d')]({'title':a2_0x3b79('0x13')+_0x113cde+a2_0x3b79('0x33')});}}else{this['messages'][a2_0x3b79('0x11')]=this[a2_0x3b79('0x10')][a2_0x3b79('0x5')](_0x2fef8f,a2_0x3b79('0x18'));}this[a2_0x3b79('0x4')]['statuses'][_0x113cde]=a2_0x3b79('0x1e');return![];}});}[a2_0x3b79('0x1c')](_0x27ca24,_0x1bb1ff){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x3b79('0x10')]['cacheError'])return![];const _0x5c03c0=Promise[a2_0x3b79('0xc')]()[a2_0x3b79('0x19')](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x776db4;const _0x4d854b=yield this[a2_0x3b79('0x1f')](_0x27ca24);if(!_0x4d854b)return![];if(!_0x4d854b[a2_0x3b79('0xf')]){if(environment_1[a2_0x3b79('0x1b')]){output[a2_0x3b79('0x2d')]({'title':a2_0x3b79('0xb')+_0x27ca24+'.','bodyLines':[a2_0x3b79('0x32'),a2_0x3b79('0x20')]});}return!![];}if(!this['storeInCurrentProcess']){this[a2_0x3b79('0x15')][a2_0x3b79('0xd')]({'hash':_0x27ca24,'url':_0x4d854b[a2_0x3b79('0xf')]});return!![];}try{yield this['fileStorage'][a2_0x3b79('0x1c')](_0x27ca24,_0x4d854b[a2_0x3b79('0xf')],_0x1bb1ff);return!![];}catch(_0x583e65){const _0x5dca24=(_0x776db4=_0x583e65[a2_0x3b79('0x26')])!==null&&_0x776db4!==void 0x0?_0x776db4:_0x583e65;this[a2_0x3b79('0x10')]['cacheError']=this[a2_0x3b79('0x10')][a2_0x3b79('0x5')](_0x5dca24,a2_0x3b79('0x18'));return![];}}));this['storeRequests']['push'](_0x5c03c0);return _0x5c03c0;});}['hashUrls'](_0x141b06){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x141b06 in this[a2_0x3b79('0x4')][a2_0x3b79('0x23')]){return(yield this[a2_0x3b79('0x4')][a2_0x3b79('0x23')][_0x141b06])[_0x141b06];}else{const _0x51cb18=this[a2_0x3b79('0x4')][a2_0x3b79('0x16')][a2_0x3b79('0x2')](_0x810de6=>!this[a2_0x3b79('0x4')][a2_0x3b79('0x23')][_0x810de6['hash']])[a2_0x3b79('0x35')](_0x21955a=>_0x21955a['hash']);if(_0x51cb18[a2_0x3b79('0xe')](_0x141b06)===-0x1){_0x51cb18[a2_0x3b79('0xd')](_0x141b06);}const _0x29434c=this[a2_0x3b79('0x30')][a2_0x3b79('0x1')](this[a2_0x3b79('0x8')],_0x51cb18);_0x51cb18[a2_0x3b79('0x14')](_0x5956f6=>{this['runContext'][a2_0x3b79('0x23')][_0x5956f6]=_0x29434c;});return(yield _0x29434c)[_0x141b06];}});}[a2_0x3b79('0x2b')](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3235e9=yield Promise[a2_0x3b79('0x25')](this[a2_0x3b79('0x1a')])['then'](_0x2bf7bd=>_0x2bf7bd[a2_0x3b79('0x24')]((_0x40ed5c,_0x574df1)=>_0x40ed5c&&_0x574df1,!![]));if(!_0x3235e9){throw new Error(a2_0x3b79('0x27'));}});}}exports[a2_0x3b79('0x29')]=CloudRemoteCache;
const a2_0xf65f=['put','done','../../../utilities/environment','note','statuses','forEach','distributedExecutionId','storeInCurrentProcess','waitForStoreRequestsToComplete','response','value','push','storage','get','storeRequests','reduce','Nx\x20Cloud:\x20Cache\x20miss\x20','VERBOSE_LOGGING','hashUrls','next','apply','__awaiter','cacheError','CloudRemoteCache','fileStorage','retrieve','startRun','messages','extractErrorMessage','map','filter','Error\x20when\x20storing\x20artifacts','indexOf','store','cache-miss','defineProperty','runContext','remote-cache-hit','scheduledTasks','api','Nx\x20Cloud:\x20Skipping\x20storing\x20','then','Maybe\x20you\x20are\x20using\x20a\x20read-only\x20token\x20or\x20the\x20artifact\x20has\x20already\x20being\x20uploaded.','delayedStoreRequests','../../../utilities/nx-imports','requests','hash'];(function(_0x33aad2,_0xf65f07){const _0x4afce5=function(_0x149718){while(--_0x149718){_0x33aad2['push'](_0x33aad2['shift']());}};_0x4afce5(++_0xf65f07);}(a2_0xf65f,0x13d));const a2_0x4afc=function(_0x33aad2,_0xf65f07){_0x33aad2=_0x33aad2-0x0;let _0x4afce5=a2_0xf65f[_0x33aad2];return _0x4afce5;};'use strict';var __awaiter=this&&this[a2_0x4afc('0x21')]||function(_0x157dc6,_0x4b5981,_0x495a03,_0x17d7dc){function _0x16c02f(_0xb653e7){return _0xb653e7 instanceof _0x495a03?_0xb653e7:new _0x495a03(function(_0x581404){_0x581404(_0xb653e7);});}return new(_0x495a03||(_0x495a03=Promise))(function(_0x2966ec,_0x58e0c3){function _0x8e5e7d(_0x537d33){try{_0x26907d(_0x17d7dc['next'](_0x537d33));}catch(_0x384885){_0x58e0c3(_0x384885);}}function _0x43cdd0(_0x5b7f0b){try{_0x26907d(_0x17d7dc['throw'](_0x5b7f0b));}catch(_0x49f821){_0x58e0c3(_0x49f821);}}function _0x26907d(_0x27dc00){_0x27dc00[a2_0x4afc('0xd')]?_0x2966ec(_0x27dc00[a2_0x4afc('0x16')]):_0x16c02f(_0x27dc00[a2_0x4afc('0x16')])[a2_0x4afc('0x6')](_0x8e5e7d,_0x43cdd0);}_0x26907d((_0x17d7dc=_0x17d7dc[a2_0x4afc('0x20')](_0x157dc6,_0x4b5981||[]))[a2_0x4afc('0x1f')]());});};Object[a2_0x4afc('0x0')](exports,'__esModule',{'value':!![]});exports[a2_0x4afc('0x23')]=void 0x0;const environment_1=require(a2_0x4afc('0xe'));const {output}=require(a2_0x4afc('0x9'));class CloudRemoteCache{constructor(_0xe43698,_0x3ed0d3,_0x152546,_0xf813ce,_0x45f568,_0x52fc60){this['messages']=_0xe43698;this[a2_0x4afc('0x4')]=_0x3ed0d3;this[a2_0x4afc('0x1')]=_0x152546;this[a2_0x4afc('0x24')]=_0xf813ce;this[a2_0x4afc('0x12')]=_0x45f568;this['storeInCurrentProcess']=_0x52fc60;this['storeRequests']=[];this['delayedStoreRequests']=[];}[a2_0x4afc('0x25')](_0x54009f,_0x2f7fdb){var _0x2a88be;return __awaiter(this,void 0x0,void 0x0,function*(){if(this['messages'][a2_0x4afc('0x22')])return![];const _0x5d741e=yield this[a2_0x4afc('0x1e')](_0x54009f);if(!_0x5d741e||!_0x5d741e[a2_0x4afc('0x19')]){if(environment_1[a2_0x4afc('0x1d')]){output[a2_0x4afc('0xf')]({'title':a2_0x4afc('0x1c')+_0x54009f+'.'});}this[a2_0x4afc('0x1')][a2_0x4afc('0x10')][_0x54009f]=a2_0x4afc('0x2e');return![];}try{yield this['fileStorage'][a2_0x4afc('0x25')](_0x54009f,_0x5d741e[a2_0x4afc('0x19')],_0x2f7fdb);this[a2_0x4afc('0x1')][a2_0x4afc('0x10')][_0x54009f]=a2_0x4afc('0x2');return!![];}catch(_0x4414ae){const _0x4deb3d=(_0x2a88be=_0x4414ae['axiosException'])!==null&&_0x2a88be!==void 0x0?_0x2a88be:_0x4414ae;if(_0x4deb3d[a2_0x4afc('0x15')]&&_0x4deb3d[a2_0x4afc('0x15')]['status']===0x194){if(environment_1['VERBOSE_LOGGING']){output['note']({'title':a2_0x4afc('0x1c')+_0x54009f+'.\x20Status\x20404.'});}}else{this[a2_0x4afc('0x27')][a2_0x4afc('0x22')]=this[a2_0x4afc('0x27')][a2_0x4afc('0x28')](_0x4deb3d,a2_0x4afc('0x18'));}this[a2_0x4afc('0x1')][a2_0x4afc('0x10')][_0x54009f]=a2_0x4afc('0x2e');return![];}});}[a2_0x4afc('0x2d')](_0x24503f,_0x208557){return __awaiter(this,void 0x0,void 0x0,function*(){if(this['messages'][a2_0x4afc('0x22')])return![];const _0xd92c96=Promise['resolve']()[a2_0x4afc('0x6')](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x20382b;const _0x29c72b=yield this[a2_0x4afc('0x1e')](_0x24503f);if(!_0x29c72b)return![];if(!_0x29c72b[a2_0x4afc('0xc')]){if(environment_1[a2_0x4afc('0x1d')]){output[a2_0x4afc('0xf')]({'title':a2_0x4afc('0x5')+_0x24503f+'.','bodyLines':['There\x20are\x20several\x20reasons\x20why\x20this\x20can\x20happen.',a2_0x4afc('0x7')]});}return!![];}if(!this[a2_0x4afc('0x13')]){this[a2_0x4afc('0x8')]['push']({'hash':_0x24503f,'url':_0x29c72b['put']});return!![];}try{yield this[a2_0x4afc('0x24')][a2_0x4afc('0x2d')](_0x24503f,_0x29c72b[a2_0x4afc('0xc')],_0x208557);return!![];}catch(_0x54527f){const _0x1d3116=(_0x20382b=_0x54527f['axiosException'])!==null&&_0x20382b!==void 0x0?_0x20382b:_0x54527f;this['messages'][a2_0x4afc('0x22')]=this[a2_0x4afc('0x27')]['extractErrorMessage'](_0x1d3116,a2_0x4afc('0x18'));return![];}}));this[a2_0x4afc('0x1a')][a2_0x4afc('0x17')](_0xd92c96);return _0xd92c96;});}[a2_0x4afc('0x1e')](_0x37730d){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x37730d in this[a2_0x4afc('0x1')][a2_0x4afc('0xa')]){return(yield this[a2_0x4afc('0x1')][a2_0x4afc('0xa')][_0x37730d])[_0x37730d];}else{const _0x4d6e37=this['runContext'][a2_0x4afc('0x3')][a2_0x4afc('0x2a')](_0x28f3f3=>!this[a2_0x4afc('0x1')][a2_0x4afc('0xa')][_0x28f3f3[a2_0x4afc('0xb')]])[a2_0x4afc('0x29')](_0x599804=>_0x599804[a2_0x4afc('0xb')]);if(_0x4d6e37[a2_0x4afc('0x2c')](_0x37730d)===-0x1){_0x4d6e37[a2_0x4afc('0x17')](_0x37730d);}const _0x4685c7=this[a2_0x4afc('0x4')][a2_0x4afc('0x26')](this[a2_0x4afc('0x12')],_0x4d6e37);_0x4d6e37[a2_0x4afc('0x11')](_0x1b4c29=>{this[a2_0x4afc('0x1')][a2_0x4afc('0xa')][_0x1b4c29]=_0x4685c7;});return(yield _0x4685c7)[_0x37730d];}});}[a2_0x4afc('0x14')](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x154a17=yield Promise['all'](this['storeRequests'])[a2_0x4afc('0x6')](_0x55bac1=>_0x55bac1[a2_0x4afc('0x1b')]((_0x4e0b3e,_0x1fd623)=>_0x4e0b3e&&_0x1fd623,!![]));if(!_0x154a17){throw new Error(a2_0x4afc('0x2b'));}});}}exports[a2_0x4afc('0x23')]=CloudRemoteCache;

@@ -1,1 +0,1 @@

const a3_0xa42a=['package.json','axiosException','next','createMetricRecorder','RUNNER_FAILURE_PERF_ENTRY','@nrwl/nx-cloud','../../../utilities/nx-imports','Invalid\x20end\x20run\x20response','../../../utilities/metric-logger','Invalid\x20Nx\x20Cloud\x20response:\x20','message','Run\x20Details:','RunStart\x20duration','terminalOutput','getCIExecutionEnv','machineInfo','Run\x20completion\x20responded\x20with\x20`undefined`.','Invalid\x20end\x20run\x20response:\x20','createApiAxiosInstance','defaults','response','runContext','gzip','length','apiError','RunStart','note','extractErrorMessage','../../../utilities/environment','messages','assign','__awaiter','startRun','from','apiAxiosInstance','map','toString','apply','data','api','getBranch','string','stringify','throw','done','post','recordMetric','nxCloudVersion','mapRespToPerfEntry','createReqBody','/nx-cloud/runs/start','urls','runUrl','status','slice','success','printDuration','axiosMultipleTries','VERBOSE_LOGGING','Stack\x20Trace:','readFileSync','__esModule','then','value','parse','../../../utilities/axios','error','stack','CloudRunApi','endRun'];(function(_0x3bee9b,_0xa42aa){const _0x127e07=function(_0x1a280a){while(--_0x1a280a){_0x3bee9b['push'](_0x3bee9b['shift']());}};_0x127e07(++_0xa42aa);}(a3_0xa42a,0x15f));const a3_0x127e=function(_0x3bee9b,_0xa42aa){_0x3bee9b=_0x3bee9b-0x0;let _0x127e07=a3_0xa42a[_0x3bee9b];return _0x127e07;};'use strict';var __awaiter=this&&this[a3_0x127e('0x1e')]||function(_0x4c3696,_0x246429,_0x19fe0f,_0x236a5e){function _0x1bbd93(_0xa1c4bd){return _0xa1c4bd instanceof _0x19fe0f?_0xa1c4bd:new _0x19fe0f(function(_0x105993){_0x105993(_0xa1c4bd);});}return new(_0x19fe0f||(_0x19fe0f=Promise))(function(_0x371356,_0xb3676d){function _0x3b2fd5(_0x1384b7){try{_0x52520f(_0x236a5e['next'](_0x1384b7));}catch(_0x20fd92){_0xb3676d(_0x20fd92);}}function _0x575b05(_0x3f8eac){try{_0x52520f(_0x236a5e[a3_0x127e('0x2a')](_0x3f8eac));}catch(_0x4849c9){_0xb3676d(_0x4849c9);}}function _0x52520f(_0x2257bb){_0x2257bb[a3_0x127e('0x2b')]?_0x371356(_0x2257bb[a3_0x127e('0x3e')]):_0x1bbd93(_0x2257bb[a3_0x127e('0x3e')])[a3_0x127e('0x3d')](_0x3b2fd5,_0x575b05);}_0x52520f((_0x236a5e=_0x236a5e[a3_0x127e('0x24')](_0x4c3696,_0x246429||[]))[a3_0x127e('0x1')]());});};Object['defineProperty'](exports,a3_0x127e('0x3c'),{'value':!![]});exports[a3_0x127e('0x43')]=void 0x0;const axios_1=require(a3_0x127e('0x40'));const environment_1=require(a3_0x127e('0x1b'));const fs_1=require('fs');const zlib_1=require('zlib');const util_1=require('util');const metric_logger_1=require(a3_0x127e('0x7'));const {output}=require(a3_0x127e('0x5'));class CloudRunApi{constructor(_0x1dc434,_0x3cd7a7,_0x4ff287,_0x33f034){this['messages']=_0x1dc434;this[a3_0x127e('0x14')]=_0x3cd7a7;this['machineInfo']=_0x33f034;this[a3_0x127e('0x21')]=(0x0,axios_1[a3_0x127e('0x11')])(_0x4ff287);}[a3_0x127e('0x1f')](_0x141f8a,_0x2adbe2){var _0x5f0633;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0x127e('0x1c')]['apiError'])return{};const _0x27def5=(0x0,metric_logger_1[a3_0x127e('0x2')])(a3_0x127e('0x1f'));try{const _0x1bc663={'meta':{'nxCloudVersion':this[a3_0x127e('0x2e')]()},'branch':(0x0,environment_1[a3_0x127e('0x27')])(),'runGroup':(0x0,environment_1['getRunGroup'])(),'ciExecutionId':(0x0,environment_1['getCIExecutionId'])(),'ciExecutionEnv':(0x0,environment_1[a3_0x127e('0xd')])(),'distributedExecutionId':_0x141f8a,'hashes':_0x2adbe2};if(environment_1['VERBOSE_LOGGING']){output[a3_0x127e('0x19')]({'title':a3_0x127e('0x18'),'bodyLines':['\x0a'+JSON[a3_0x127e('0x29')](_0x1bc663,null,0x2)]});}const _0x16481c=yield(0x0,axios_1[a3_0x127e('0x37')])(a3_0x127e('0xb'),()=>(0x0,axios_1[a3_0x127e('0x38')])(()=>this[a3_0x127e('0x21')][a3_0x127e('0x2c')](a3_0x127e('0x31'),_0x1bc663)));_0x27def5[a3_0x127e('0x2d')]((0x0,metric_logger_1[a3_0x127e('0x2f')])(_0x16481c));if(_0x16481c[a3_0x127e('0x25')]&&_0x16481c[a3_0x127e('0x25')]['message']){this['messages']['message']=_0x16481c[a3_0x127e('0x25')][a3_0x127e('0x9')];}if(!_0x16481c[a3_0x127e('0x25')]||!_0x16481c[a3_0x127e('0x25')][a3_0x127e('0x32')]){this[a3_0x127e('0x1c')][a3_0x127e('0x17')]=a3_0x127e('0x8')+JSON[a3_0x127e('0x29')](_0x16481c[a3_0x127e('0x25')]);return{};}return _0x16481c[a3_0x127e('0x25')][a3_0x127e('0x32')];}catch(_0x27a98d){_0x27def5[a3_0x127e('0x2d')](((_0x5f0633=_0x27a98d===null||_0x27a98d===void 0x0?void 0x0:_0x27a98d[a3_0x127e('0x0')])===null||_0x5f0633===void 0x0?void 0x0:_0x5f0633[a3_0x127e('0x13')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x27a98d[a3_0x127e('0x0')][a3_0x127e('0x13')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);this[a3_0x127e('0x1c')]['apiError']=this['messages'][a3_0x127e('0x1a')](_0x27a98d,a3_0x127e('0x26'));return{};}});}[a3_0x127e('0x30')](_0xc16ad9,_0x10a1b0,_0x2a9c26,_0x5eeb3e){const _0x403df7=Object['assign'](Object[a3_0x127e('0x1d')]({'meta':{'nxCloudVersion':this[a3_0x127e('0x2e')]()},'tasks':_0x10a1b0,'run':_0xc16ad9,'linkId':_0x5eeb3e},_0x2a9c26),{'machineInfo':this[a3_0x127e('0xe')]});return JSON[a3_0x127e('0x29')](_0x403df7);}['endRun'](_0xdd4bb,_0x13cc22,_0x3a747f,_0xe46db4){var _0x4bd130,_0x5e58d7;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0x127e('0x1c')]['apiError'])return![];let _0x3c36e9=this[a3_0x127e('0x30')](_0xdd4bb,_0x13cc22,_0x3a747f,_0xe46db4);if(_0x3c36e9[a3_0x127e('0x16')]>0x14*0x3e8*0x3e8){_0x3c36e9=this[a3_0x127e('0x30')](_0xdd4bb,_0x13cc22[a3_0x127e('0x22')](_0x477263=>Object[a3_0x127e('0x1d')](Object[a3_0x127e('0x1d')]({},_0x477263),{'hashDetails':undefined})),_0x3a747f,_0xe46db4);}const _0x10472a=Buffer[a3_0x127e('0x20')](_0x3c36e9);const _0x3b0142=yield(0x0,util_1['promisify'])(zlib_1[a3_0x127e('0x15')])(_0x10472a);const _0x252dd5=(0x0,metric_logger_1[a3_0x127e('0x2')])(a3_0x127e('0x44'));try{if(environment_1[a3_0x127e('0x39')]){const _0x4ec6d8=_0x13cc22['map'](_0x344c98=>{return Object[a3_0x127e('0x1d')](Object[a3_0x127e('0x1d')]({},_0x344c98),{'terminalOutput':_0x344c98[a3_0x127e('0xc')]?_0x344c98[a3_0x127e('0xc')][a3_0x127e('0x35')](0x0,0x14)+'...':undefined});});output['note']({'title':'RunEnd.\x20Completed\x20tasks','bodyLines':['\x0a'+JSON[a3_0x127e('0x29')](_0x4ec6d8,null,0x2)]});}const _0x2d756c=yield(0x0,axios_1['printDuration'])('RunEnd\x20duration',()=>(0x0,axios_1[a3_0x127e('0x38')])(()=>this[a3_0x127e('0x21')][a3_0x127e('0x2c')]('/nx-cloud/runs/end',_0x3b0142,{'headers':Object['assign'](Object[a3_0x127e('0x1d')]({},this[a3_0x127e('0x21')][a3_0x127e('0x12')]['headers']),{'Content-Encoding':a3_0x127e('0x15'),'Content-Type':'application/octet-stream'})})));if(_0x2d756c){_0x252dd5[a3_0x127e('0x2d')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x2d756c));if(_0x2d756c['data']&&_0x2d756c[a3_0x127e('0x25')][a3_0x127e('0x33')]&&_0x2d756c['data'][a3_0x127e('0x34')]===a3_0x127e('0x36')){this[a3_0x127e('0x14')][a3_0x127e('0x33')]=_0x2d756c[a3_0x127e('0x25')][a3_0x127e('0x33')];return!![];}if(_0x2d756c[a3_0x127e('0x25')]&&_0x2d756c['data'][a3_0x127e('0x34')]){this['messages'][a3_0x127e('0x17')]=a3_0x127e('0x10')+JSON[a3_0x127e('0x29')](_0x2d756c[a3_0x127e('0x25')]['message']);}else if(_0x2d756c[a3_0x127e('0x25')]&&typeof _0x2d756c['data']===a3_0x127e('0x28')){if(_0x2d756c['data']!==a3_0x127e('0x36')){this[a3_0x127e('0x1c')][a3_0x127e('0x17')]=a3_0x127e('0x10')+JSON[a3_0x127e('0x29')](_0x2d756c[a3_0x127e('0x25')]);}}else{this[a3_0x127e('0x1c')][a3_0x127e('0x17')]=a3_0x127e('0x10')+JSON['stringify'](_0x2d756c['data']);}if(environment_1['VERBOSE_LOGGING']){output[a3_0x127e('0x19')]({'title':a3_0x127e('0x6'),'bodyLines':[JSON[a3_0x127e('0x29')](_0x2d756c[a3_0x127e('0x25')],null,0x2)]});}}else{output[a3_0x127e('0x41')]({'title':'Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','bodyLines':[a3_0x127e('0xf'),a3_0x127e('0xa'),JSON[a3_0x127e('0x29')](_0xdd4bb,null,0x2),a3_0x127e('0x3a'),JSON['stringify'](new Error()[a3_0x127e('0x42')],null,0x2)]});}return![];}catch(_0x52cdeb){_0x252dd5[a3_0x127e('0x2d')](((_0x4bd130=_0x52cdeb===null||_0x52cdeb===void 0x0?void 0x0:_0x52cdeb[a3_0x127e('0x0')])===null||_0x4bd130===void 0x0?void 0x0:_0x4bd130['response'])?(0x0,metric_logger_1[a3_0x127e('0x2f')])(_0x52cdeb['axiosException'][a3_0x127e('0x13')]):metric_logger_1[a3_0x127e('0x3')]);const _0x3ac4c8=(_0x5e58d7=_0x52cdeb[a3_0x127e('0x0')])!==null&&_0x5e58d7!==void 0x0?_0x5e58d7:_0x52cdeb;this[a3_0x127e('0x1c')]['apiError']=this[a3_0x127e('0x1c')][a3_0x127e('0x1a')](_0x3ac4c8,'api');return![];}});}[a3_0x127e('0x2e')](){try{const _0x39908b=JSON[a3_0x127e('0x3f')]((0x0,fs_1[a3_0x127e('0x3b')])(a3_0x127e('0x45'))[a3_0x127e('0x23')]());return _0x39908b['devDependencies'][a3_0x127e('0x4')];}catch(_0x26e713){return'unknown';}}}exports[a3_0x127e('0x43')]=CloudRunApi;
const a3_0x1390=['VERBOSE_LOGGING','/nx-cloud/runs/end','messages','length','../../../utilities/nx-imports','gzip','toString','Run\x20Details:','note','apiError','mapRespToPerfEntry','data','success','status','startRun','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','isConnectedToPrivateCloud','RunStart','next','endRun','message','RUNNER_FAILURE_PERF_ENTRY','axiosMultipleTries','CloudRunApi','../../../utilities/axios','RunEnd.\x20Completed\x20tasks','createReqBody','Invalid\x20end\x20run\x20response','response','util','@nrwl/nx-cloud','../../../utilities/metric-logger','getBranch','recordMetric','slice','getCIExecutionEnv','defineProperty','RunEnd\x20duration','api','apiAxiosInstance','package.json','createMetricRecorder','runContext','/nx-cloud/runs/start','post','stack','...','getCIExecutionId','application/octet-stream','Invalid\x20end\x20run\x20response:\x20','apply','unknown','RunStart\x20duration','string','axiosException','nxCloudVersion','done','runUrl','defaults','printDuration','terminalOutput','assign','../../../utilities/is-private-cloud','map','devDependencies','parse','urls','Invalid\x20Nx\x20Cloud\x20response:\x20','value','stringify'];(function(_0x18e510,_0x139015){const _0xe39d00=function(_0x543b06){while(--_0x543b06){_0x18e510['push'](_0x18e510['shift']());}};_0xe39d00(++_0x139015);}(a3_0x1390,0xcc));const a3_0xe39d=function(_0x18e510,_0x139015){_0x18e510=_0x18e510-0x0;let _0xe39d00=a3_0x1390[_0x18e510];return _0xe39d00;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x394d05,_0x4c8f90,_0x70950d,_0x33fcab){function _0x348196(_0x4bc479){return _0x4bc479 instanceof _0x70950d?_0x4bc479:new _0x70950d(function(_0x1266e6){_0x1266e6(_0x4bc479);});}return new(_0x70950d||(_0x70950d=Promise))(function(_0x48e2ef,_0x4dc35f){function _0x3c5ee5(_0x47f8a2){try{_0x5a7b71(_0x33fcab[a3_0xe39d('0x18')](_0x47f8a2));}catch(_0x1b88ea){_0x4dc35f(_0x1b88ea);}}function _0x2043ae(_0x3f6564){try{_0x5a7b71(_0x33fcab['throw'](_0x3f6564));}catch(_0x2f87bb){_0x4dc35f(_0x2f87bb);}}function _0x5a7b71(_0x991d0e){_0x991d0e[a3_0xe39d('0x3e')]?_0x48e2ef(_0x991d0e[a3_0xe39d('0x4')]):_0x348196(_0x991d0e[a3_0xe39d('0x4')])['then'](_0x3c5ee5,_0x2043ae);}_0x5a7b71((_0x33fcab=_0x33fcab[a3_0xe39d('0x38')](_0x394d05,_0x4c8f90||[]))[a3_0xe39d('0x18')]());});};Object[a3_0xe39d('0x2a')](exports,'__esModule',{'value':!![]});exports[a3_0xe39d('0x1d')]=void 0x0;const axios_1=require(a3_0xe39d('0x1e'));const environment_1=require('../../../utilities/environment');const fs_1=require('fs');const zlib_1=require('zlib');const util_1=require(a3_0xe39d('0x23'));const metric_logger_1=require(a3_0xe39d('0x25'));const is_private_cloud_1=require(a3_0xe39d('0x44'));const {output}=require(a3_0xe39d('0xa'));class CloudRunApi{constructor(_0xb4c464,_0xf5dd46,_0x541594,_0x471138){this[a3_0xe39d('0x8')]=_0xb4c464;this['runContext']=_0xf5dd46;this['machineInfo']=_0x471138;this[a3_0xe39d('0x2d')]=(0x0,axios_1['createApiAxiosInstance'])(_0x541594);}[a3_0xe39d('0x14')](_0x39625d,_0x3e4ee9){var _0x327037;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0xe39d('0x8')][a3_0xe39d('0xf')])return{};const _0x5218a2=(0x0,metric_logger_1[a3_0xe39d('0x2f')])('startRun');try{const _0x3be800={'meta':{'nxCloudVersion':this[a3_0xe39d('0x3d')]()},'branch':(0x0,environment_1[a3_0xe39d('0x26')])(),'runGroup':(0x0,environment_1['getRunGroup'])(),'ciExecutionId':(0x0,environment_1[a3_0xe39d('0x35')])(),'ciExecutionEnv':(0x0,environment_1[a3_0xe39d('0x29')])(),'distributedExecutionId':_0x39625d,'hashes':_0x3e4ee9};if(environment_1[a3_0xe39d('0x6')]){output[a3_0xe39d('0xe')]({'title':a3_0xe39d('0x17'),'bodyLines':['\x0a'+JSON[a3_0xe39d('0x5')](_0x3be800,null,0x2)]});}const _0x29ccdb=yield(0x0,axios_1[a3_0xe39d('0x41')])(a3_0xe39d('0x3a'),()=>(0x0,axios_1['axiosMultipleTries'])(()=>this[a3_0xe39d('0x2d')][a3_0xe39d('0x32')](a3_0xe39d('0x31'),_0x3be800)));_0x5218a2['recordMetric']((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x29ccdb));if(_0x29ccdb[a3_0xe39d('0x11')]&&_0x29ccdb[a3_0xe39d('0x11')][a3_0xe39d('0x1a')]){this[a3_0xe39d('0x8')]['message']=_0x29ccdb[a3_0xe39d('0x11')][a3_0xe39d('0x1a')];}if(!_0x29ccdb['data']||!_0x29ccdb[a3_0xe39d('0x11')][a3_0xe39d('0x2')]){this[a3_0xe39d('0x8')][a3_0xe39d('0xf')]=a3_0xe39d('0x3')+JSON[a3_0xe39d('0x5')](_0x29ccdb[a3_0xe39d('0x11')]);return{};}return _0x29ccdb[a3_0xe39d('0x11')]['urls'];}catch(_0x4472f1){_0x5218a2[a3_0xe39d('0x27')](((_0x327037=_0x4472f1===null||_0x4472f1===void 0x0?void 0x0:_0x4472f1[a3_0xe39d('0x3c')])===null||_0x327037===void 0x0?void 0x0:_0x327037[a3_0xe39d('0x22')])?(0x0,metric_logger_1[a3_0xe39d('0x10')])(_0x4472f1[a3_0xe39d('0x3c')][a3_0xe39d('0x22')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);this[a3_0xe39d('0x8')]['apiError']=this[a3_0xe39d('0x8')]['extractErrorMessage'](_0x4472f1,a3_0xe39d('0x2c'));return{};}});}['createReqBody'](_0x1c1e2c,_0x350521,_0x6aae90,_0x202bbe){if((0x0,is_private_cloud_1[a3_0xe39d('0x16')])()){for(let _0x4eed3c of _0x350521){delete _0x4eed3c['uploadedToStorage'];}}const _0x261e07=Object[a3_0xe39d('0x43')](Object[a3_0xe39d('0x43')]({'meta':{'nxCloudVersion':this[a3_0xe39d('0x3d')]()},'tasks':_0x350521,'run':_0x1c1e2c,'linkId':_0x202bbe},_0x6aae90),{'machineInfo':this['machineInfo']});return JSON[a3_0xe39d('0x5')](_0x261e07);}[a3_0xe39d('0x19')](_0x4d0b07,_0x60ab93,_0x52a9eb,_0x20182d){var _0x9c869f,_0x18a83b;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0xe39d('0x8')][a3_0xe39d('0xf')])return![];let _0x388b18=this['createReqBody'](_0x4d0b07,_0x60ab93,_0x52a9eb,_0x20182d);if(_0x388b18[a3_0xe39d('0x9')]>0x14*0x3e8*0x3e8){_0x388b18=this[a3_0xe39d('0x20')](_0x4d0b07,_0x60ab93['map'](_0x333990=>Object['assign'](Object[a3_0xe39d('0x43')]({},_0x333990),{'hashDetails':undefined})),_0x52a9eb,_0x20182d);}const _0x3bab2e=Buffer['from'](_0x388b18);const _0x5b1384=yield(0x0,util_1['promisify'])(zlib_1['gzip'])(_0x3bab2e);const _0x55cf20=(0x0,metric_logger_1[a3_0xe39d('0x2f')])('endRun');try{if(environment_1[a3_0xe39d('0x6')]){const _0x3ee1af=_0x60ab93[a3_0xe39d('0x45')](_0x5513dd=>{return Object[a3_0xe39d('0x43')](Object[a3_0xe39d('0x43')]({},_0x5513dd),{'terminalOutput':_0x5513dd[a3_0xe39d('0x42')]?_0x5513dd[a3_0xe39d('0x42')][a3_0xe39d('0x28')](0x0,0x14)+a3_0xe39d('0x34'):undefined});});output[a3_0xe39d('0xe')]({'title':a3_0xe39d('0x1f'),'bodyLines':['\x0a'+JSON[a3_0xe39d('0x5')](_0x3ee1af,null,0x2)]});}const _0x4b056b=yield(0x0,axios_1['printDuration'])(a3_0xe39d('0x2b'),()=>(0x0,axios_1[a3_0xe39d('0x1c')])(()=>this[a3_0xe39d('0x2d')][a3_0xe39d('0x32')](a3_0xe39d('0x7'),_0x5b1384,{'headers':Object[a3_0xe39d('0x43')](Object[a3_0xe39d('0x43')]({},this[a3_0xe39d('0x2d')][a3_0xe39d('0x40')]['headers']),{'Content-Encoding':a3_0xe39d('0xb'),'Content-Type':a3_0xe39d('0x36')})})));if(_0x4b056b){_0x55cf20[a3_0xe39d('0x27')]((0x0,metric_logger_1[a3_0xe39d('0x10')])(_0x4b056b));if(_0x4b056b[a3_0xe39d('0x11')]&&_0x4b056b[a3_0xe39d('0x11')][a3_0xe39d('0x3f')]&&_0x4b056b[a3_0xe39d('0x11')][a3_0xe39d('0x13')]===a3_0xe39d('0x12')){this[a3_0xe39d('0x30')][a3_0xe39d('0x3f')]=_0x4b056b[a3_0xe39d('0x11')]['runUrl'];return!![];}if(_0x4b056b[a3_0xe39d('0x11')]&&_0x4b056b[a3_0xe39d('0x11')][a3_0xe39d('0x13')]){this[a3_0xe39d('0x8')][a3_0xe39d('0xf')]='Invalid\x20end\x20run\x20response:\x20'+JSON[a3_0xe39d('0x5')](_0x4b056b[a3_0xe39d('0x11')][a3_0xe39d('0x1a')]);}else if(_0x4b056b[a3_0xe39d('0x11')]&&typeof _0x4b056b['data']===a3_0xe39d('0x3b')){if(_0x4b056b[a3_0xe39d('0x11')]!=='success'){this[a3_0xe39d('0x8')][a3_0xe39d('0xf')]=a3_0xe39d('0x37')+JSON['stringify'](_0x4b056b[a3_0xe39d('0x11')]);}}else{this[a3_0xe39d('0x8')][a3_0xe39d('0xf')]=a3_0xe39d('0x37')+JSON[a3_0xe39d('0x5')](_0x4b056b[a3_0xe39d('0x11')]);}if(environment_1['VERBOSE_LOGGING']){output[a3_0xe39d('0xe')]({'title':a3_0xe39d('0x21'),'bodyLines':[JSON['stringify'](_0x4b056b[a3_0xe39d('0x11')],null,0x2)]});}}else{output['error']({'title':a3_0xe39d('0x15'),'bodyLines':['Run\x20completion\x20responded\x20with\x20`undefined`.',a3_0xe39d('0xd'),JSON[a3_0xe39d('0x5')](_0x4d0b07,null,0x2),'Stack\x20Trace:',JSON[a3_0xe39d('0x5')](new Error()[a3_0xe39d('0x33')],null,0x2)]});}return![];}catch(_0x428e58){_0x55cf20[a3_0xe39d('0x27')](((_0x9c869f=_0x428e58===null||_0x428e58===void 0x0?void 0x0:_0x428e58[a3_0xe39d('0x3c')])===null||_0x9c869f===void 0x0?void 0x0:_0x9c869f[a3_0xe39d('0x22')])?(0x0,metric_logger_1[a3_0xe39d('0x10')])(_0x428e58[a3_0xe39d('0x3c')][a3_0xe39d('0x22')]):metric_logger_1[a3_0xe39d('0x1b')]);const _0x1ff2d3=(_0x18a83b=_0x428e58['axiosException'])!==null&&_0x18a83b!==void 0x0?_0x18a83b:_0x428e58;this[a3_0xe39d('0x8')][a3_0xe39d('0xf')]=this[a3_0xe39d('0x8')]['extractErrorMessage'](_0x1ff2d3,a3_0xe39d('0x2c'));return![];}});}['nxCloudVersion'](){try{const _0x4ce8c7=JSON[a3_0xe39d('0x1')]((0x0,fs_1['readFileSync'])(a3_0xe39d('0x2e'))[a3_0xe39d('0xc')]());return _0x4ce8c7[a3_0xe39d('0x0')][a3_0xe39d('0x24')];}catch(_0x377324){return a3_0xe39d('0x39');}}}exports['CloudRunApi']=CloudRunApi;

@@ -1,1 +0,1 @@

const a4_0x5d6c=['ABCDEFGHIJKLMNOPQRSTUVWXYZ','generateUniqueLinkId','length','__esModule','0123456789','random','floor','defineProperty'];(function(_0x5bfedf,_0x5d6c96){const _0x2df216=function(_0xf2836f){while(--_0xf2836f){_0x5bfedf['push'](_0x5bfedf['shift']());}};_0x2df216(++_0x5d6c96);}(a4_0x5d6c,0x1e6));const a4_0x2df2=function(_0x5bfedf,_0x5d6c96){_0x5bfedf=_0x5bfedf-0x0;let _0x2df216=a4_0x5d6c[_0x5bfedf];return _0x2df216;};'use strict';Object[a4_0x2df2('0x1')](exports,a4_0x2df2('0x5'),{'value':!![]});exports[a4_0x2df2('0x3')]=void 0x0;const upper=a4_0x2df2('0x2');const digits=a4_0x2df2('0x6');const lower=upper['toLowerCase']();const alphanum=upper+lower+digits;function generateUniqueLinkId(){let _0x2885b2='';for(let _0xf6094e=0x0;_0xf6094e<0xa;++_0xf6094e){_0x2885b2+=alphanum[Math[a4_0x2df2('0x0')](Math[a4_0x2df2('0x7')]()*alphanum[a4_0x2df2('0x4')])];}return _0x2885b2;}exports[a4_0x2df2('0x3')]=generateUniqueLinkId;
const a4_0x2be9=['toLowerCase','random','0123456789','generateUniqueLinkId','defineProperty','length','ABCDEFGHIJKLMNOPQRSTUVWXYZ'];(function(_0xce2f3,_0x2be9ba){const _0x2566b9=function(_0x713fdc){while(--_0x713fdc){_0xce2f3['push'](_0xce2f3['shift']());}};_0x2566b9(++_0x2be9ba);}(a4_0x2be9,0x67));const a4_0x2566=function(_0xce2f3,_0x2be9ba){_0xce2f3=_0xce2f3-0x0;let _0x2566b9=a4_0x2be9[_0xce2f3];return _0x2566b9;};'use strict';Object[a4_0x2566('0x6')](exports,'__esModule',{'value':!![]});exports[a4_0x2566('0x5')]=void 0x0;const upper=a4_0x2566('0x1');const digits=a4_0x2566('0x4');const lower=upper[a4_0x2566('0x2')]();const alphanum=upper+lower+digits;function generateUniqueLinkId(){let _0x153f09='';for(let _0x42faa4=0x0;_0x42faa4<0xa;++_0x42faa4){_0x153f09+=alphanum[Math['floor'](Math[a4_0x2566('0x3')]()*alphanum[a4_0x2566('0x0')])];}return _0x153f09;}exports[a4_0x2566('0x5')]=generateUniqueLinkId;

@@ -1,1 +0,1 @@

const a5_0x5f4e=['agentName','note','../../../utilities/axios','axiosMultipleTries','branch','RUNNER_FAILURE_PERF_ENTRY','error:\x20','../../../utilities/nx-imports','next','apply','ciExecutionId:\x20','DistributedAgentApi','ciExecutionEnv','/nx-cloud/executions/tasks','mapRespToPerfEntry','throw','Completing\x20with\x20an\x20error','VERBOSE_LOGGING','axiosException','../../../utilities/environment','recordMetric','data','__awaiter','done','/nx-cloud/executions/complete-run-group','apiAxiosInstance','defineProperty','post','completeRunGroup','../../../utilities/metric-logger','error','ciExecutionId','runGroup:\x20','__esModule','response','ciExecutionEnv:\x20','then','createMetricRecorder','value','runGroup','tasks'];(function(_0x31fb3d,_0x5f4e1a){const _0xaf0b4d=function(_0xa5f49a){while(--_0xa5f49a){_0x31fb3d['push'](_0x31fb3d['shift']());}};_0xaf0b4d(++_0x5f4e1a);}(a5_0x5f4e,0x136));const a5_0xaf0b=function(_0x31fb3d,_0x5f4e1a){_0x31fb3d=_0x31fb3d-0x0;let _0xaf0b4d=a5_0x5f4e[_0x31fb3d];return _0xaf0b4d;};'use strict';var __awaiter=this&&this[a5_0xaf0b('0x28')]||function(_0x20b389,_0x437697,_0x3459aa,_0x5174b6){function _0x54e7d5(_0x14cdcb){return _0x14cdcb instanceof _0x3459aa?_0x14cdcb:new _0x3459aa(function(_0xa79bdb){_0xa79bdb(_0x14cdcb);});}return new(_0x3459aa||(_0x3459aa=Promise))(function(_0xa53c43,_0x2b9635){function _0x1b2e86(_0x517a9c){try{_0x189ca0(_0x5174b6[a5_0xaf0b('0x1a')](_0x517a9c));}catch(_0x3a41f8){_0x2b9635(_0x3a41f8);}}function _0x52d1b9(_0xfe9e2a){try{_0x189ca0(_0x5174b6[a5_0xaf0b('0x21')](_0xfe9e2a));}catch(_0x401f90){_0x2b9635(_0x401f90);}}function _0x189ca0(_0xcdfab1){_0xcdfab1[a5_0xaf0b('0x0')]?_0xa53c43(_0xcdfab1[a5_0xaf0b('0xf')]):_0x54e7d5(_0xcdfab1['value'])[a5_0xaf0b('0xd')](_0x1b2e86,_0x52d1b9);}_0x189ca0((_0x5174b6=_0x5174b6[a5_0xaf0b('0x1b')](_0x20b389,_0x437697||[]))['next']());});};Object[a5_0xaf0b('0x3')](exports,a5_0xaf0b('0xa'),{'value':!![]});exports[a5_0xaf0b('0x1d')]=void 0x0;const axios_1=require(a5_0xaf0b('0x14'));const environment_1=require(a5_0xaf0b('0x25'));const metric_logger_1=require(a5_0xaf0b('0x6'));const {output}=require(a5_0xaf0b('0x19'));class DistributedAgentApi{constructor(_0x52b682,_0x221725,_0x1b6d4e,_0x441bd9,_0x37c266,_0x38d2b3){this['branch']=_0x221725;this['runGroup']=_0x1b6d4e;this[a5_0xaf0b('0x8')]=_0x441bd9;this[a5_0xaf0b('0x1e')]=_0x37c266;this[a5_0xaf0b('0x12')]=_0x38d2b3;this['apiAxiosInstance']=(0x0,axios_1['createApiAxiosInstance'])(_0x52b682);}[a5_0xaf0b('0x11')](_0x175a61,_0x850851,_0x2471a6,_0x3f17b2){var _0x2c29c6;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x11f978=(0x0,metric_logger_1[a5_0xaf0b('0xe')])('dtePollTasks');try{const _0x41d572=yield(0x0,axios_1[a5_0xaf0b('0x15')])(()=>this['apiAxiosInstance'][a5_0xaf0b('0x4')](a5_0xaf0b('0x1f'),{'runGroup':this[a5_0xaf0b('0x10')],'ciExecutionId':this[a5_0xaf0b('0x8')],'ciExecutionEnv':this[a5_0xaf0b('0x1e')],'agentName':this[a5_0xaf0b('0x12')],'executionId':_0x175a61,'statusCode':_0x850851,'completedTasks':_0x2471a6,'targets':_0x3f17b2}));_0x11f978[a5_0xaf0b('0x26')]((0x0,metric_logger_1[a5_0xaf0b('0x20')])(_0x41d572));return _0x41d572[a5_0xaf0b('0x27')];}catch(_0x32ea9b){_0x11f978[a5_0xaf0b('0x26')](((_0x2c29c6=_0x32ea9b===null||_0x32ea9b===void 0x0?void 0x0:_0x32ea9b[a5_0xaf0b('0x24')])===null||_0x2c29c6===void 0x0?void 0x0:_0x2c29c6[a5_0xaf0b('0xb')])?(0x0,metric_logger_1[a5_0xaf0b('0x20')])(_0x32ea9b[a5_0xaf0b('0x24')][a5_0xaf0b('0xb')]):metric_logger_1[a5_0xaf0b('0x17')]);throw _0x32ea9b;}});}['completeRunGroupWithError'](_0x475724){var _0x16b0d4;return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a5_0xaf0b('0x23')]){output[a5_0xaf0b('0x13')]({'title':a5_0xaf0b('0x22'),'bodyLines':[a5_0xaf0b('0x1c')+this[a5_0xaf0b('0x8')],a5_0xaf0b('0xc')+this[a5_0xaf0b('0x1e')],a5_0xaf0b('0x9')+this[a5_0xaf0b('0x10')],a5_0xaf0b('0x18')+_0x475724]});}const _0x106517=(0x0,metric_logger_1[a5_0xaf0b('0xe')])(a5_0xaf0b('0x5'));try{const _0x3bc69e=yield(0x0,axios_1[a5_0xaf0b('0x15')])(()=>this[a5_0xaf0b('0x2')]['post'](a5_0xaf0b('0x1'),{'branch':this[a5_0xaf0b('0x16')],'runGroup':this[a5_0xaf0b('0x10')],'ciExecutionId':this['ciExecutionId'],'ciExecutionEnv':this[a5_0xaf0b('0x1e')],'agentName':this['agentName'],'criticalErrorMessage':_0x475724}));if(environment_1[a5_0xaf0b('0x23')]){output[a5_0xaf0b('0x13')]({'title':'Completed\x20run\x20group\x20with\x20an\x20error'});}_0x106517[a5_0xaf0b('0x26')]((0x0,metric_logger_1[a5_0xaf0b('0x20')])(_0x3bc69e));}catch(_0x5f1981){_0x106517[a5_0xaf0b('0x26')](((_0x16b0d4=_0x5f1981===null||_0x5f1981===void 0x0?void 0x0:_0x5f1981[a5_0xaf0b('0x24')])===null||_0x16b0d4===void 0x0?void 0x0:_0x16b0d4[a5_0xaf0b('0xb')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x5f1981[a5_0xaf0b('0x24')][a5_0xaf0b('0xb')]):metric_logger_1[a5_0xaf0b('0x17')]);console[a5_0xaf0b('0x7')](_0x5f1981);}});}}exports[a5_0xaf0b('0x1d')]=DistributedAgentApi;
const a5_0x3f9c=['RUNNER_FAILURE_PERF_ENTRY','DistributedAgentApi','../../../utilities/environment','then','/nx-cloud/executions/tasks','completeRunGroup','../../../utilities/axios','runGroup','axiosMultipleTries','Completed\x20run\x20group\x20with\x20an\x20error','done','completeRunGroupWithError','response','mapRespToPerfEntry','runGroup:\x20','axiosException','VERBOSE_LOGGING','agentName','recordMetric','throw','tasks','note','error','apiAxiosInstance','__awaiter','error:\x20','../../../utilities/nx-imports','post','createApiAxiosInstance','next','ciExecutionEnv','value','apply','Completing\x20with\x20an\x20error','branch','ciExecutionId','createMetricRecorder'];(function(_0x4891c7,_0x3f9c82){const _0x41410d=function(_0x243595){while(--_0x243595){_0x4891c7['push'](_0x4891c7['shift']());}};_0x41410d(++_0x3f9c82);}(a5_0x3f9c,0x195));const a5_0x4141=function(_0x4891c7,_0x3f9c82){_0x4891c7=_0x4891c7-0x0;let _0x41410d=a5_0x3f9c[_0x4891c7];return _0x41410d;};'use strict';var __awaiter=this&&this[a5_0x4141('0x1a')]||function(_0x28944a,_0x3bd977,_0x39ead1,_0x24f204){function _0x1f6110(_0xf271b0){return _0xf271b0 instanceof _0x39ead1?_0xf271b0:new _0x39ead1(function(_0x18e8e8){_0x18e8e8(_0xf271b0);});}return new(_0x39ead1||(_0x39ead1=Promise))(function(_0x54b5b6,_0x8703a3){function _0xbe6e0(_0x3de053){try{_0x5715aa(_0x24f204[a5_0x4141('0x1f')](_0x3de053));}catch(_0x383857){_0x8703a3(_0x383857);}}function _0x7518be(_0x2a378a){try{_0x5715aa(_0x24f204[a5_0x4141('0x15')](_0x2a378a));}catch(_0x5d9dac){_0x8703a3(_0x5d9dac);}}function _0x5715aa(_0x537e6d){_0x537e6d[a5_0x4141('0xc')]?_0x54b5b6(_0x537e6d[a5_0x4141('0x21')]):_0x1f6110(_0x537e6d[a5_0x4141('0x21')])[a5_0x4141('0x5')](_0xbe6e0,_0x7518be);}_0x5715aa((_0x24f204=_0x24f204[a5_0x4141('0x22')](_0x28944a,_0x3bd977||[]))[a5_0x4141('0x1f')]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a5_0x4141('0x3')]=void 0x0;const axios_1=require(a5_0x4141('0x8'));const environment_1=require(a5_0x4141('0x4'));const metric_logger_1=require('../../../utilities/metric-logger');const {output}=require(a5_0x4141('0x1c'));class DistributedAgentApi{constructor(_0x5bfe89,_0x4f0da2,_0xa316ef,_0xdcc466,_0x1b2f56,_0x14bc5c){this[a5_0x4141('0x24')]=_0x4f0da2;this['runGroup']=_0xa316ef;this[a5_0x4141('0x0')]=_0xdcc466;this[a5_0x4141('0x20')]=_0x1b2f56;this[a5_0x4141('0x13')]=_0x14bc5c;this['apiAxiosInstance']=(0x0,axios_1[a5_0x4141('0x1e')])(_0x5bfe89);}[a5_0x4141('0x16')](_0x1bd5ec,_0x190499,_0x193995,_0x1aa60c){var _0x4c0941;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x583bbf=(0x0,metric_logger_1[a5_0x4141('0x1')])('dtePollTasks');try{const _0xb6106=yield(0x0,axios_1[a5_0x4141('0xa')])(()=>this[a5_0x4141('0x19')][a5_0x4141('0x1d')](a5_0x4141('0x6'),{'runGroup':this[a5_0x4141('0x9')],'ciExecutionId':this[a5_0x4141('0x0')],'ciExecutionEnv':this[a5_0x4141('0x20')],'agentName':this[a5_0x4141('0x13')],'executionId':_0x1bd5ec,'statusCode':_0x190499,'completedTasks':_0x193995,'targets':_0x1aa60c}));_0x583bbf['recordMetric']((0x0,metric_logger_1['mapRespToPerfEntry'])(_0xb6106));return _0xb6106['data'];}catch(_0x3a22fe){_0x583bbf[a5_0x4141('0x14')](((_0x4c0941=_0x3a22fe===null||_0x3a22fe===void 0x0?void 0x0:_0x3a22fe[a5_0x4141('0x11')])===null||_0x4c0941===void 0x0?void 0x0:_0x4c0941[a5_0x4141('0xe')])?(0x0,metric_logger_1[a5_0x4141('0xf')])(_0x3a22fe[a5_0x4141('0x11')][a5_0x4141('0xe')]):metric_logger_1[a5_0x4141('0x2')]);throw _0x3a22fe;}});}[a5_0x4141('0xd')](_0x536404){var _0x510300;return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a5_0x4141('0x17')]({'title':a5_0x4141('0x23'),'bodyLines':['ciExecutionId:\x20'+this['ciExecutionId'],'ciExecutionEnv:\x20'+this[a5_0x4141('0x20')],a5_0x4141('0x10')+this[a5_0x4141('0x9')],a5_0x4141('0x1b')+_0x536404]});}const _0x497c49=(0x0,metric_logger_1[a5_0x4141('0x1')])(a5_0x4141('0x7'));try{const _0x1257b6=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a5_0x4141('0x19')][a5_0x4141('0x1d')]('/nx-cloud/executions/complete-run-group',{'branch':this[a5_0x4141('0x24')],'runGroup':this['runGroup'],'ciExecutionId':this[a5_0x4141('0x0')],'ciExecutionEnv':this['ciExecutionEnv'],'agentName':this[a5_0x4141('0x13')],'criticalErrorMessage':_0x536404}));if(environment_1[a5_0x4141('0x12')]){output[a5_0x4141('0x17')]({'title':a5_0x4141('0xb')});}_0x497c49['recordMetric']((0x0,metric_logger_1[a5_0x4141('0xf')])(_0x1257b6));}catch(_0x45dc39){_0x497c49['recordMetric'](((_0x510300=_0x45dc39===null||_0x45dc39===void 0x0?void 0x0:_0x45dc39[a5_0x4141('0x11')])===null||_0x510300===void 0x0?void 0x0:_0x510300[a5_0x4141('0xe')])?(0x0,metric_logger_1[a5_0x4141('0xf')])(_0x45dc39[a5_0x4141('0x11')]['response']):metric_logger_1[a5_0x4141('0x2')]);console[a5_0x4141('0x18')](_0x45dc39);}});}}exports[a5_0x4141('0x3')]=DistributedAgentApi;

@@ -1,1 +0,1 @@

const a6_0x4a5b=['Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','readFileSync','strip-json-comments','unlinkSync','then','../../api/error-reporter.api','executeTasks','includes','message','Critical\x20Error\x20in\x20Agent:\x20\x22','tasksRunnerOptions','existsSync','getBranch','FileStorage','./execute-tasks','printRunGroupError','__esModule','completeRunGroupWithError','random','note','yargs-parser','CIRCLECI','getNxCacheDirectory','DteArtifactStorage','DistributedAgentApi','getCIExecutionEnv','toString','CIRCLE_STAGE','NX_AGENT_NAME','../../file-storage/e2e-encryption','.lock','startAgent','done','next','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','some','/lockfiles','../../../utilities/environment','map','@nrwl/nx-cloud','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','warn','error','SIGTERM','encryptionKey','runner','catch','./invoke-tasks-using-run-many','CIRCLE_JOB','options','invokeTasksUsingRunMany','length','floor','dte-agent','invokeTasksUsingNxImperativeApi','mkdirSync','ErrorReporterApi','./distributed-agent.api','targets','defineProperty','Agent\x20was\x20terminated\x20via\x20SIGTERM','exit','canDetectRunGroup','parse','trim','/nx.json','Other\x20Nx\x20Cloud\x20Agents\x20Detected','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20target(s)\x20[','__awaiter','env','submitRunMetrics','./invoke-tasks-using-nx-imperative-api','default','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','join','../../file-storage/file-storage','../../../utilities/dte-artifact-storage','value','Agent\x20was\x20terminated\x20via\x20SIGINT','throw'];(function(_0x3025cf,_0x4a5b3a){const _0x18b772=function(_0x2cec03){while(--_0x2cec03){_0x3025cf['push'](_0x3025cf['shift']());}};_0x18b772(++_0x4a5b3a);}(a6_0x4a5b,0x12e));const a6_0x18b7=function(_0x3025cf,_0x4a5b3a){_0x3025cf=_0x3025cf-0x0;let _0x18b772=a6_0x4a5b[_0x3025cf];return _0x18b772;};'use strict';var __awaiter=this&&this[a6_0x18b7('0x6')]||function(_0x527e4e,_0x341e9e,_0x15cac3,_0x588dd8){function _0x13c446(_0x26e4bc){return _0x26e4bc instanceof _0x15cac3?_0x26e4bc:new _0x15cac3(function(_0x207831){_0x207831(_0x26e4bc);});}return new(_0x15cac3||(_0x15cac3=Promise))(function(_0x3e27f9,_0x2b5da9){function _0x3a0c20(_0x152148){try{_0x474920(_0x588dd8[a6_0x18b7('0x33')](_0x152148));}catch(_0x34c3ae){_0x2b5da9(_0x34c3ae);}}function _0x112a02(_0x37a118){try{_0x474920(_0x588dd8[a6_0x18b7('0x11')](_0x37a118));}catch(_0x219652){_0x2b5da9(_0x219652);}}function _0x474920(_0x15a1ea){_0x15a1ea[a6_0x18b7('0x32')]?_0x3e27f9(_0x15a1ea[a6_0x18b7('0xf')]):_0x13c446(_0x15a1ea[a6_0x18b7('0xf')])[a6_0x18b7('0x16')](_0x3a0c20,_0x112a02);}_0x474920((_0x588dd8=_0x588dd8['apply'](_0x527e4e,_0x341e9e||[]))[a6_0x18b7('0x33')]());});};Object[a6_0x18b7('0x4d')](exports,a6_0x18b7('0x22'),{'value':!![]});exports[a6_0x18b7('0x31')]=void 0x0;const fs_1=require('fs');const stripJsonComments=require(a6_0x18b7('0x14'));const yargsParser=require(a6_0x18b7('0x26'));const environment_1=require(a6_0x18b7('0x37'));const metric_logger_1=require('../../../utilities/metric-logger');const print_cacheable_targets_error_1=require('../../error/print-cacheable-targets-error');const print_invalid_runner_error_1=require('../../error/print-invalid-runner-error');const print_run_group_error_1=require('../../error/print-run-group-error');const distributed_agent_api_1=require(a6_0x18b7('0x4b'));const execute_tasks_1=require(a6_0x18b7('0x20'));const dte_artifact_storage_1=require(a6_0x18b7('0xe'));const file_storage_1=require(a6_0x18b7('0xd'));const e2e_encryption_1=require(a6_0x18b7('0x2f'));const error_reporter_api_1=require(a6_0x18b7('0x17'));const invoke_tasks_using_run_many_1=require(a6_0x18b7('0x41'));const invoke_tasks_using_nx_imperative_api_1=require(a6_0x18b7('0x9'));const {output,initTasksRunner,workspaceRoot}=require('../../../utilities/nx-imports');const args=yargsParser(process['argv'],{'array':[a6_0x18b7('0x4c')],'default':{}});if(args[a6_0x18b7('0x4c')]&&args[a6_0x18b7('0x4c')]['length']===0x1){args[a6_0x18b7('0x4c')]=args[a6_0x18b7('0x4c')][0x0]['split'](',')[a6_0x18b7('0x38')](_0x454502=>_0x454502[a6_0x18b7('0x2')]());}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2692c7=(0x0,environment_1[a6_0x18b7('0x1e')])();const _0x291271=(0x0,environment_1['getRunGroup'])();const _0x1b2b1a=(0x0,environment_1['getCIExecutionId'])();const _0x27d40b=(0x0,environment_1[a6_0x18b7('0x2b')])();if(!(0x0,print_run_group_error_1[a6_0x18b7('0x0')])(_0x291271,_0x1b2b1a)){(0x0,print_run_group_error_1[a6_0x18b7('0x21')])();process[a6_0x18b7('0x4f')](0x1);}if(args['targets']&&args['targets'][a6_0x18b7('0x45')]){output[a6_0x18b7('0x25')]({'title':a6_0x18b7('0x5')+args[a6_0x18b7('0x4c')][a6_0x18b7('0xc')](',\x20')+']'});}else{output['note']({'title':a6_0x18b7('0x12')});}const _0x4a986e=JSON[a6_0x18b7('0x1')](stripJsonComments((0x0,fs_1[a6_0x18b7('0x13')])(workspaceRoot+a6_0x18b7('0x3'))[a6_0x18b7('0x2c')]()))[a6_0x18b7('0x1c')][a6_0x18b7('0xa')];if(_0x4a986e[a6_0x18b7('0x3f')]!==a6_0x18b7('0x39')){(0x0,print_invalid_runner_error_1['printInvalidRunnerError'])();return process[a6_0x18b7('0x4f')](0x1);}const _0xb124c3=_0x4a986e[a6_0x18b7('0x43')];if(args[a6_0x18b7('0x4c')]&&args[a6_0x18b7('0x4c')][a6_0x18b7('0x35')](_0x1dfed0=>{var _0x117980;return!((_0x117980=_0xb124c3['cacheableOperations'])===null||_0x117980===void 0x0?void 0x0:_0x117980['includes'](_0x1dfed0));})){const _0x5084cf=args[a6_0x18b7('0x4c')]['filter'](_0x3bc139=>{var _0x3889ed;return!((_0x3889ed=_0xb124c3['cacheableOperations'])===null||_0x3889ed===void 0x0?void 0x0:_0x3889ed[a6_0x18b7('0x19')](_0x3bc139));});(0x0,print_cacheable_targets_error_1['printCacheableTargetsError'])(_0x5084cf);return process[a6_0x18b7('0x4f')](0x1);}const _0x1f9375=getAgentName();const _0xb237ef=new distributed_agent_api_1[(a6_0x18b7('0x2a'))](_0xb124c3,_0x2692c7,_0x291271,_0x1b2b1a,_0x27d40b,_0x1f9375);createAgentLockfileAndSetUpListeners(_0xb237ef,_0xb124c3,_0x1f9375);const _0x412235=new e2e_encryption_1['E2EEncryption'](environment_1['ENCRYPTION_KEY']||_0xb124c3[a6_0x18b7('0x3e')]);const _0x58eb3e=new error_reporter_api_1[(a6_0x18b7('0x4a'))](_0xb124c3);const _0xeb5e5=new dte_artifact_storage_1[(a6_0x18b7('0x29'))](new file_storage_1[(a6_0x18b7('0x1f'))](_0x412235,_0x58eb3e,_0xb124c3,a6_0x18b7('0x47')),(0x0,environment_1[a6_0x18b7('0x28')])(_0xb124c3));const _0x1b2d05=initTasksRunner?yield(0x0,invoke_tasks_using_nx_imperative_api_1[a6_0x18b7('0x48')])(_0xb124c3):yield(0x0,invoke_tasks_using_run_many_1[a6_0x18b7('0x44')])(_0xb124c3);return(0x0,execute_tasks_1[a6_0x18b7('0x18')])(_0x1f9375,_0xb237ef,_0xeb5e5,_0x1b2d05,args[a6_0x18b7('0x4c')])[a6_0x18b7('0x16')](_0x3b8058=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a6_0x18b7('0x8')])(_0xb124c3);return _0x3b8058;}))[a6_0x18b7('0x40')](_0x2ce9f4=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0xb237ef['completeRunGroupWithError'](a6_0x18b7('0x1b')+_0x2ce9f4[a6_0x18b7('0x1a')]+'\x22');throw _0x2ce9f4;}));});}exports['startAgent']=startAgent;function getAgentName(){if(process[a6_0x18b7('0x7')][a6_0x18b7('0x2e')]!==undefined){return process[a6_0x18b7('0x7')][a6_0x18b7('0x2e')];}else if(process[a6_0x18b7('0x7')][a6_0x18b7('0x27')]!==undefined&&process[a6_0x18b7('0x7')][a6_0x18b7('0x2d')]){return process[a6_0x18b7('0x7')][a6_0x18b7('0x2d')];}else if(process['env']['CIRCLECI']!==undefined&&process[a6_0x18b7('0x7')]['CIRCLE_JOB']){return process['env'][a6_0x18b7('0x42')];}else{return'Agent\x20'+Math[a6_0x18b7('0x46')](Math[a6_0x18b7('0x24')]()*0x186a0);}}function createAgentLockfileAndSetUpListeners(_0x567cf3,_0x3d3be4,_0x13ab00){const _0x13b436=(0x0,environment_1['getNxCacheDirectory'])(_0x3d3be4);const _0x458ab1=_0x13b436+a6_0x18b7('0x36');const _0x2a9cae=_0x458ab1+'/'+_0x13ab00+'.lock';if(!(0x0,fs_1['existsSync'])(_0x458ab1)){(0x0,fs_1[a6_0x18b7('0x49')])(_0x458ab1,{'recursive':!![]});}const _0x2f0955=(0x0,fs_1['readdirSync'])(_0x458ab1);if(_0x2f0955[a6_0x18b7('0x45')]){if(_0x2f0955[a6_0x18b7('0x19')](_0x13ab00+a6_0x18b7('0x30'))){output[a6_0x18b7('0x3c')]({'title':'Duplicate\x20Agent\x20ID\x20Detected','bodyLines':['We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.']});process[a6_0x18b7('0x4f')](0x1);}output[a6_0x18b7('0x3b')]({'title':a6_0x18b7('0x4'),'bodyLines':[a6_0x18b7('0xb'),'',a6_0x18b7('0x34'),a6_0x18b7('0x3a')]});}(0x0,fs_1['writeFileSync'])(_0x2a9cae,'');process['on'](a6_0x18b7('0x4f'),_0x1b388d=>{cleanupAgentLockfile(_0x2a9cae,_0x1b388d);});process['on'](a6_0x18b7('0x3d'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x567cf3[a6_0x18b7('0x23')](a6_0x18b7('0x4e'));cleanupAgentLockfile(_0x2a9cae,0x1);}));process['on']('SIGINT',()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x567cf3[a6_0x18b7('0x23')](a6_0x18b7('0x10'));cleanupAgentLockfile(_0x2a9cae,0x1);}));}function cleanupAgentLockfile(_0x57c094,_0x2a92b3){if((0x0,fs_1[a6_0x18b7('0x1d')])(_0x57c094)){(0x0,fs_1[a6_0x18b7('0x15')])(_0x57c094);process[a6_0x18b7('0x4f')](_0x2a92b3);}}
const a6_0x4d12=['CIRCLE_STAGE','canDetectRunGroup','FileStorage','.lock','Duplicate\x20Agent\x20ID\x20Detected','/lockfiles','parse','getBranch','invokeTasksUsingNxImperativeApi','toString','catch','writeFileSync','filter','getRunGroup','CIRCLE_JOB','map','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','Other\x20Nx\x20Cloud\x20Agents\x20Detected','E2EEncryption','getCIExecutionId','exit','../../../utilities/nx-imports','../../../utilities/dte-artifact-storage','../../file-storage/file-storage','SIGINT','SIGTERM','executeTasks','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','throw','includes','join','invokeTasksUsingRunMany','existsSync','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.','split','../../../utilities/environment','__awaiter','../../error/print-invalid-runner-error','Critical\x20Error\x20in\x20Agent:\x20\x22','getNxCacheDirectory','startAgent','error','random','warn','unlinkSync','apply','env','../../error/print-cacheable-targets-error','yargs-parser','options','printRunGroupError','printCacheableTargetsError','./invoke-tasks-using-run-many','./invoke-tasks-using-nx-imperative-api','next','completeRunGroupWithError','then','length','message','value','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','mkdirSync','NX_AGENT_NAME','/nx.json','__esModule','note','some','runner','targets','DistributedAgentApi','cacheableOperations','argv','../../error/print-run-group-error','Agent\x20was\x20terminated\x20via\x20SIGINT','Agent\x20','dte-agent','done','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks'];(function(_0x59a327,_0x4d12cb){const _0x106470=function(_0x31aa1c){while(--_0x31aa1c){_0x59a327['push'](_0x59a327['shift']());}};_0x106470(++_0x4d12cb);}(a6_0x4d12,0x1dc));const a6_0x1064=function(_0x59a327,_0x4d12cb){_0x59a327=_0x59a327-0x0;let _0x106470=a6_0x4d12[_0x59a327];return _0x106470;};'use strict';var __awaiter=this&&this[a6_0x1064('0x1c')]||function(_0x3de4dd,_0xa201d5,_0x2a7b69,_0x36d515){function _0xf06f58(_0x306d03){return _0x306d03 instanceof _0x2a7b69?_0x306d03:new _0x2a7b69(function(_0x273ec2){_0x273ec2(_0x306d03);});}return new(_0x2a7b69||(_0x2a7b69=Promise))(function(_0x2388ad,_0x5ae366){function _0x3ffdb7(_0x5f4a78){try{_0x3ca02d(_0x36d515[a6_0x1064('0x2e')](_0x5f4a78));}catch(_0x340549){_0x5ae366(_0x340549);}}function _0x28969f(_0x5c9d26){try{_0x3ca02d(_0x36d515[a6_0x1064('0x14')](_0x5c9d26));}catch(_0x54ebaf){_0x5ae366(_0x54ebaf);}}function _0x3ca02d(_0x1201f0){_0x1201f0[a6_0x1064('0x44')]?_0x2388ad(_0x1201f0[a6_0x1064('0x33')]):_0xf06f58(_0x1201f0[a6_0x1064('0x33')])['then'](_0x3ffdb7,_0x28969f);}_0x3ca02d((_0x36d515=_0x36d515[a6_0x1064('0x25')](_0x3de4dd,_0xa201d5||[]))[a6_0x1064('0x2e')]());});};Object['defineProperty'](exports,a6_0x1064('0x38'),{'value':!![]});exports['startAgent']=void 0x0;const fs_1=require('fs');const stripJsonComments=require('strip-json-comments');const yargsParser=require(a6_0x1064('0x28'));const environment_1=require(a6_0x1064('0x1b'));const metric_logger_1=require('../../../utilities/metric-logger');const print_cacheable_targets_error_1=require(a6_0x1064('0x27'));const print_invalid_runner_error_1=require(a6_0x1064('0x1d'));const print_run_group_error_1=require(a6_0x1064('0x40'));const distributed_agent_api_1=require('./distributed-agent.api');const execute_tasks_1=require('./execute-tasks');const dte_artifact_storage_1=require(a6_0x1064('0xe'));const file_storage_1=require(a6_0x1064('0xf'));const e2e_encryption_1=require('../../file-storage/e2e-encryption');const error_reporter_api_1=require('../../api/error-reporter.api');const invoke_tasks_using_run_many_1=require(a6_0x1064('0x2c'));const invoke_tasks_using_nx_imperative_api_1=require(a6_0x1064('0x2d'));const {output,initTasksRunner,workspaceRoot}=require(a6_0x1064('0xd'));const args=yargsParser(process[a6_0x1064('0x3f')],{'array':[a6_0x1064('0x3c')],'default':{}});if(args['targets']&&args['targets']['length']===0x1){args['targets']=args[a6_0x1064('0x3c')][0x0][a6_0x1064('0x1a')](',')[a6_0x1064('0x7')](_0x22a602=>_0x22a602['trim']());}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x61f48b=(0x0,environment_1[a6_0x1064('0x4d')])();const _0x4c9076=(0x0,environment_1[a6_0x1064('0x5')])();const _0xefd902=(0x0,environment_1[a6_0x1064('0xb')])();const _0x5a6635=(0x0,environment_1['getCIExecutionEnv'])();if(!(0x0,print_run_group_error_1[a6_0x1064('0x47')])(_0x4c9076,_0xefd902)){(0x0,print_run_group_error_1[a6_0x1064('0x2a')])();process[a6_0x1064('0xc')](0x1);}if(args[a6_0x1064('0x3c')]&&args[a6_0x1064('0x3c')][a6_0x1064('0x31')]){output[a6_0x1064('0x39')]({'title':'Starting\x20an\x20agent\x20for\x20running\x20Nx\x20target(s)\x20['+args[a6_0x1064('0x3c')][a6_0x1064('0x16')](',\x20')+']'});}else{output['note']({'title':a6_0x1064('0x45')});}const _0x543ba4=JSON[a6_0x1064('0x4c')](stripJsonComments((0x0,fs_1['readFileSync'])(workspaceRoot+a6_0x1064('0x37'))[a6_0x1064('0x1')]()))['tasksRunnerOptions']['default'];if(_0x543ba4[a6_0x1064('0x3b')]!=='@nrwl/nx-cloud'){(0x0,print_invalid_runner_error_1['printInvalidRunnerError'])();return process[a6_0x1064('0xc')](0x1);}const _0x1d94c6=_0x543ba4[a6_0x1064('0x29')];if(args[a6_0x1064('0x3c')]&&args[a6_0x1064('0x3c')][a6_0x1064('0x3a')](_0x221bf8=>{var _0x2837af;return!((_0x2837af=_0x1d94c6[a6_0x1064('0x3e')])===null||_0x2837af===void 0x0?void 0x0:_0x2837af['includes'](_0x221bf8));})){const _0x5e8154=args['targets'][a6_0x1064('0x4')](_0x427743=>{var _0x3c9777;return!((_0x3c9777=_0x1d94c6[a6_0x1064('0x3e')])===null||_0x3c9777===void 0x0?void 0x0:_0x3c9777[a6_0x1064('0x15')](_0x427743));});(0x0,print_cacheable_targets_error_1[a6_0x1064('0x2b')])(_0x5e8154);return process[a6_0x1064('0xc')](0x1);}const _0x30d707=getAgentName();const _0x18e3bc=new distributed_agent_api_1[(a6_0x1064('0x3d'))](_0x1d94c6,_0x61f48b,_0x4c9076,_0xefd902,_0x5a6635,_0x30d707);createAgentLockfileAndSetUpListeners(_0x18e3bc,_0x1d94c6,_0x30d707);const _0x1119ed=new e2e_encryption_1[(a6_0x1064('0xa'))](environment_1['ENCRYPTION_KEY']||_0x1d94c6['encryptionKey']);const _0x2160c6=new error_reporter_api_1['ErrorReporterApi'](_0x1d94c6);const _0x35130e=new dte_artifact_storage_1['DteArtifactStorage'](new file_storage_1[(a6_0x1064('0x48'))](_0x1119ed,_0x2160c6,_0x1d94c6,a6_0x1064('0x43')),(0x0,environment_1['getNxCacheDirectory'])(_0x1d94c6));const _0x154b50=initTasksRunner?yield(0x0,invoke_tasks_using_nx_imperative_api_1[a6_0x1064('0x0')])(_0x1d94c6):yield(0x0,invoke_tasks_using_run_many_1[a6_0x1064('0x17')])(_0x1d94c6);return(0x0,execute_tasks_1[a6_0x1064('0x12')])(_0x30d707,_0x18e3bc,_0x35130e,_0x154b50,args[a6_0x1064('0x3c')])[a6_0x1064('0x30')](_0x364d6f=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1['submitRunMetrics'])(_0x1d94c6);return _0x364d6f;}))[a6_0x1064('0x2')](_0x718346=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x18e3bc[a6_0x1064('0x2f')](a6_0x1064('0x1e')+_0x718346[a6_0x1064('0x32')]+'\x22');throw _0x718346;}));});}exports[a6_0x1064('0x20')]=startAgent;function getAgentName(){if(process['env'][a6_0x1064('0x36')]!==undefined){return process[a6_0x1064('0x26')][a6_0x1064('0x36')];}else if(process[a6_0x1064('0x26')]['CIRCLECI']!==undefined&&process['env'][a6_0x1064('0x46')]){return process['env']['CIRCLE_STAGE'];}else if(process[a6_0x1064('0x26')]['CIRCLECI']!==undefined&&process[a6_0x1064('0x26')]['CIRCLE_JOB']){return process[a6_0x1064('0x26')][a6_0x1064('0x6')];}else{return a6_0x1064('0x42')+Math['floor'](Math[a6_0x1064('0x22')]()*0x186a0);}}function createAgentLockfileAndSetUpListeners(_0x2a888a,_0x51b161,_0x4487d8){const _0x48ee1e=(0x0,environment_1[a6_0x1064('0x1f')])(_0x51b161);const _0x35fd64=_0x48ee1e+a6_0x1064('0x4b');const _0x5b8eed=_0x35fd64+'/'+_0x4487d8+a6_0x1064('0x49');if(!(0x0,fs_1[a6_0x1064('0x18')])(_0x35fd64)){(0x0,fs_1[a6_0x1064('0x35')])(_0x35fd64,{'recursive':!![]});}const _0x49e834=(0x0,fs_1['readdirSync'])(_0x35fd64);if(_0x49e834[a6_0x1064('0x31')]){if(_0x49e834[a6_0x1064('0x15')](_0x4487d8+'.lock')){output[a6_0x1064('0x21')]({'title':a6_0x1064('0x4a'),'bodyLines':[a6_0x1064('0x13'),'',a6_0x1064('0x19')]});process[a6_0x1064('0xc')](0x1);}output[a6_0x1064('0x23')]({'title':a6_0x1064('0x9'),'bodyLines':[a6_0x1064('0x34'),'',a6_0x1064('0x8'),'If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.']});}(0x0,fs_1[a6_0x1064('0x3')])(_0x5b8eed,'');process['on'](a6_0x1064('0xc'),_0x43efad=>{cleanupAgentLockfile(_0x5b8eed,_0x43efad);});process['on'](a6_0x1064('0x11'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x2a888a[a6_0x1064('0x2f')]('Agent\x20was\x20terminated\x20via\x20SIGTERM');cleanupAgentLockfile(_0x5b8eed,0x1);}));process['on'](a6_0x1064('0x10'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x2a888a['completeRunGroupWithError'](a6_0x1064('0x41'));cleanupAgentLockfile(_0x5b8eed,0x1);}));}function cleanupAgentLockfile(_0x14f6d9,_0xf296c){if((0x0,fs_1[a6_0x1064('0x18')])(_0x14f6d9)){(0x0,fs_1[a6_0x1064('0x24')])(_0x14f6d9);process[a6_0x1064('0xc')](_0xf296c);}}

@@ -1,1 +0,1 @@

const a7_0x1722=['executeTasks','completedStatusCode','../../../utilities/nx-imports','error','\x20downloading\x20artifacts\x20for\x20','map','retrieveAndExtract','join','value','completedTasks','Distributed\x20Execution\x20Terminated','executionId','maxParallel:\x20','\x20waiting...','exit','status','\x20Hash:\x20','done','completed','url','hash','defineProperty','executionId:\x20','throw','retryDuring','retryDuring:\x20','maxParallel','note','Waiter','NO_MESSAGES_TIMEOUT','criticalErrorMessage','Error:','then','VERBOSE_LOGGING','../../../utilities/environment','wait','completed:\x20','reset','length','tasks','\x20fetching\x20tasks...','next','\x20received\x20an\x20API\x20Response'];(function(_0x8319f0,_0x172240){const _0x4af665=function(_0x5da6e5){while(--_0x5da6e5){_0x8319f0['push'](_0x8319f0['shift']());}};_0x4af665(++_0x172240);}(a7_0x1722,0x86));const a7_0x4af6=function(_0x8319f0,_0x172240){_0x8319f0=_0x8319f0-0x0;let _0x4af665=a7_0x1722[_0x8319f0];return _0x4af665;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x3e4eb1,_0x6b5cb,_0x3e3b4d,_0x5c592b){function _0x56b802(_0x150655){return _0x150655 instanceof _0x3e3b4d?_0x150655:new _0x3e3b4d(function(_0xc37d5f){_0xc37d5f(_0x150655);});}return new(_0x3e3b4d||(_0x3e3b4d=Promise))(function(_0x1afae9,_0x1d76c2){function _0x1d35d1(_0x189584){try{_0x4343ab(_0x5c592b[a7_0x4af6('0x24')](_0x189584));}catch(_0x554300){_0x1d76c2(_0x554300);}}function _0x4aa5c3(_0x2f99a4){try{_0x4343ab(_0x5c592b[a7_0x4af6('0x12')](_0x2f99a4));}catch(_0x2db8ea){_0x1d76c2(_0x2db8ea);}}function _0x4343ab(_0x5a97da){_0x5a97da[a7_0x4af6('0xc')]?_0x1afae9(_0x5a97da['value']):_0x56b802(_0x5a97da[a7_0x4af6('0x3')])[a7_0x4af6('0x1b')](_0x1d35d1,_0x4aa5c3);}_0x4343ab((_0x5c592b=_0x5c592b['apply'](_0x3e4eb1,_0x6b5cb||[]))[a7_0x4af6('0x24')]());});};Object[a7_0x4af6('0x10')](exports,'__esModule',{'value':!![]});exports[a7_0x4af6('0x26')]=void 0x0;const create_unchanged_value_timeout_1=require('../../../utilities/create-unchanged-value-timeout');const environment_1=require(a7_0x4af6('0x1d'));const waiter_1=require('../../../utilities/waiter');const {output}=require(a7_0x4af6('0x28'));function executeTasks(_0x1a9cea,_0x49cc5f,_0x60b1f5,_0x45dfc8,_0x53a483){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x1a262b=0x0;let _0x4e0d3a=null;const _0x3a9369=(0x0,create_unchanged_value_timeout_1['createUnchangedValueTimeout'])({'title':'No\x20new\x20messages\x20received\x20after\x20'+environment_1[a7_0x4af6('0x18')]/0x3e8+'\x20seconds','timeout':environment_1[a7_0x4af6('0x18')]});const _0xf4cb7c=new waiter_1[(a7_0x4af6('0x17'))]();let _0x2ed22f=[];const _0x5b2bc4=new Date();let _0x415f82=![];const _0x4426d8={};while(!![]){if(environment_1[a7_0x4af6('0x1c')]){output['note']({'title':_0x1a9cea+a7_0x4af6('0x23')});}_0x4e0d3a=yield _0x49cc5f[a7_0x4af6('0x22')](_0x4e0d3a?_0x4e0d3a[a7_0x4af6('0x6')]:null,_0x1a262b,_0x2ed22f,_0x53a483);if(environment_1[a7_0x4af6('0x1c')]){output[a7_0x4af6('0x16')]({'title':_0x1a9cea+a7_0x4af6('0x25'),'bodyLines':[a7_0x4af6('0x1f')+_0x4e0d3a[a7_0x4af6('0xd')],'status:\x20'+_0x4e0d3a[a7_0x4af6('0xa')],a7_0x4af6('0x14')+_0x4e0d3a[a7_0x4af6('0x13')],a7_0x4af6('0x11')+_0x4e0d3a[a7_0x4af6('0x6')],'number\x20of\x20tasks:\x20'+_0x4e0d3a[a7_0x4af6('0x22')][a7_0x4af6('0x21')],'error:\x20'+_0x4e0d3a[a7_0x4af6('0x19')],a7_0x4af6('0x7')+_0x4e0d3a['maxParallel']]});}if(_0x4e0d3a[a7_0x4af6('0x19')]){output[a7_0x4af6('0x29')]({'title':a7_0x4af6('0x5'),'bodyLines':[a7_0x4af6('0x1a'),_0x4e0d3a[a7_0x4af6('0x19')]]});process[a7_0x4af6('0x9')](0x0);}if((_0x4e0d3a===null||_0x4e0d3a===void 0x0?void 0x0:_0x4e0d3a[a7_0x4af6('0x13')])&&(_0x4e0d3a===null||_0x4e0d3a===void 0x0?void 0x0:_0x4e0d3a[a7_0x4af6('0x13')])!==0x0&&!_0x415f82&&new Date()['getTime']()-_0x5b2bc4['getTime']()>_0x4e0d3a[a7_0x4af6('0x13')]){yield _0xf4cb7c[a7_0x4af6('0x1e')]();continue;}if((_0x4e0d3a===null||_0x4e0d3a===void 0x0?void 0x0:_0x4e0d3a[a7_0x4af6('0xa')])!==undefined){if(_0x4e0d3a[a7_0x4af6('0xa')]==='RUN_GROUP_COMPLETED'||_0x4e0d3a[a7_0x4af6('0xa')]==='NO_FURTHER_TASKS_TO_RUN'){return;}}else if(_0x4e0d3a[a7_0x4af6('0xd')]){return;}_0x3a9369(_0x4e0d3a[a7_0x4af6('0x22')][a7_0x4af6('0x0')](_0x2e05eb=>_0x2e05eb['taskId'])[a7_0x4af6('0x2')](''));if(!_0x4e0d3a[a7_0x4af6('0x6')]){if(environment_1[a7_0x4af6('0x1c')]){output['note']({'title':_0x1a9cea+a7_0x4af6('0x8')});}yield _0xf4cb7c[a7_0x4af6('0x1e')]();_0x1a262b=0x0;_0x2ed22f=[];continue;}_0xf4cb7c[a7_0x4af6('0x20')]();_0x415f82=!![];if(_0x4e0d3a['completedTasks']){for(const _0x1ac022 of _0x4e0d3a['completedTasks']){if(_0x4426d8[_0x1ac022['taskId']])continue;output[a7_0x4af6('0x16')]({'title':_0x1a9cea+a7_0x4af6('0x2a')+_0x1ac022['taskId']+a7_0x4af6('0xb')+_0x1ac022['hash']+'\x20Url:\x20'+_0x1ac022[a7_0x4af6('0xe')]});yield _0x60b1f5[a7_0x4af6('0x1')](_0x1ac022[a7_0x4af6('0xf')],_0x1ac022['url']);_0x4426d8[_0x1ac022['taskId']]=!![];}}const _0xd45fb8=yield _0x45dfc8(_0x4e0d3a[a7_0x4af6('0x6')],_0x4e0d3a['tasks'],_0x4e0d3a[a7_0x4af6('0x15')]);for(const _0x219561 of _0xd45fb8[a7_0x4af6('0x4')]){_0x4426d8[_0x219561['taskId']]=!![];}_0x1a262b=_0xd45fb8[a7_0x4af6('0x27')];_0x2ed22f=_0xd45fb8[a7_0x4af6('0x4')];}});}exports[a7_0x4af6('0x26')]=executeTasks;
const a7_0x1a2c=['exit','url','defineProperty','completed','taskId','NO_FURTHER_TASKS_TO_RUN','note','maxParallel','error:\x20','join','No\x20new\x20messages\x20received\x20after\x20','Distributed\x20Execution\x20Terminated','completedStatusCode','retryDuring','executeTasks','__awaiter','\x20downloading\x20artifacts\x20for\x20','tasks','value','criticalErrorMessage','status:\x20','status','wait','createUnchangedValueTimeout','RUN_GROUP_COMPLETED','completedTasks','../../../utilities/nx-imports','\x20waiting...','number\x20of\x20tasks:\x20','executionId','executionId:\x20','map','VERBOSE_LOGGING','done','../../../utilities/environment','retrieveAndExtract','NO_MESSAGES_TIMEOUT','../../../utilities/create-unchanged-value-timeout','\x20Url:\x20','reset','\x20fetching\x20tasks...','then','length','next','\x20received\x20an\x20API\x20Response','completed:\x20','Error:','../../../utilities/waiter'];(function(_0x50a50d,_0x1a2cec){const _0x3dba43=function(_0x5e40ce){while(--_0x5e40ce){_0x50a50d['push'](_0x50a50d['shift']());}};_0x3dba43(++_0x1a2cec);}(a7_0x1a2c,0x1b7));const a7_0x3dba=function(_0x50a50d,_0x1a2cec){_0x50a50d=_0x50a50d-0x0;let _0x3dba43=a7_0x1a2c[_0x50a50d];return _0x3dba43;};'use strict';var __awaiter=this&&this[a7_0x3dba('0x8')]||function(_0x38a307,_0x264544,_0xa361ee,_0x503040){function _0x466847(_0x21fe8e){return _0x21fe8e instanceof _0xa361ee?_0x21fe8e:new _0xa361ee(function(_0x8383c2){_0x8383c2(_0x21fe8e);});}return new(_0xa361ee||(_0xa361ee=Promise))(function(_0x1fc469,_0x2afa59){function _0x2e0148(_0xd8ba){try{_0x5b6232(_0x503040['next'](_0xd8ba));}catch(_0xa702fa){_0x2afa59(_0xa702fa);}}function _0x5d731d(_0x4eea11){try{_0x5b6232(_0x503040['throw'](_0x4eea11));}catch(_0x262d43){_0x2afa59(_0x262d43);}}function _0x5b6232(_0x25f139){_0x25f139[a7_0x3dba('0x1a')]?_0x1fc469(_0x25f139[a7_0x3dba('0xb')]):_0x466847(_0x25f139[a7_0x3dba('0xb')])[a7_0x3dba('0x22')](_0x2e0148,_0x5d731d);}_0x5b6232((_0x503040=_0x503040['apply'](_0x38a307,_0x264544||[]))[a7_0x3dba('0x24')]());});};Object[a7_0x3dba('0x2b')](exports,'__esModule',{'value':!![]});exports[a7_0x3dba('0x7')]=void 0x0;const create_unchanged_value_timeout_1=require(a7_0x3dba('0x1e'));const environment_1=require(a7_0x3dba('0x1b'));const waiter_1=require(a7_0x3dba('0x28'));const {output}=require(a7_0x3dba('0x13'));function executeTasks(_0x158fbd,_0x125996,_0x5539f0,_0x49a551,_0x672899){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x275c17=0x0;let _0x3e35b5=null;const _0xa0b0f9=(0x0,create_unchanged_value_timeout_1[a7_0x3dba('0x10')])({'title':a7_0x3dba('0x3')+environment_1['NO_MESSAGES_TIMEOUT']/0x3e8+'\x20seconds','timeout':environment_1[a7_0x3dba('0x1d')]});const _0x1683a5=new waiter_1['Waiter']();let _0x59a939=[];const _0x2af9a1=new Date();let _0x4dc9d3=![];const _0x473f54={};while(!![]){if(environment_1[a7_0x3dba('0x19')]){output[a7_0x3dba('0x2f')]({'title':_0x158fbd+a7_0x3dba('0x21')});}_0x3e35b5=yield _0x125996[a7_0x3dba('0xa')](_0x3e35b5?_0x3e35b5['executionId']:null,_0x275c17,_0x59a939,_0x672899);if(environment_1[a7_0x3dba('0x19')]){output[a7_0x3dba('0x2f')]({'title':_0x158fbd+a7_0x3dba('0x25'),'bodyLines':[a7_0x3dba('0x26')+_0x3e35b5['completed'],a7_0x3dba('0xd')+_0x3e35b5[a7_0x3dba('0xe')],'retryDuring:\x20'+_0x3e35b5[a7_0x3dba('0x6')],a7_0x3dba('0x17')+_0x3e35b5['executionId'],a7_0x3dba('0x15')+_0x3e35b5[a7_0x3dba('0xa')][a7_0x3dba('0x23')],a7_0x3dba('0x1')+_0x3e35b5[a7_0x3dba('0xc')],'maxParallel:\x20'+_0x3e35b5[a7_0x3dba('0x0')]]});}if(_0x3e35b5[a7_0x3dba('0xc')]){output['error']({'title':a7_0x3dba('0x4'),'bodyLines':[a7_0x3dba('0x27'),_0x3e35b5[a7_0x3dba('0xc')]]});process[a7_0x3dba('0x29')](0x0);}if((_0x3e35b5===null||_0x3e35b5===void 0x0?void 0x0:_0x3e35b5[a7_0x3dba('0x6')])&&(_0x3e35b5===null||_0x3e35b5===void 0x0?void 0x0:_0x3e35b5[a7_0x3dba('0x6')])!==0x0&&!_0x4dc9d3&&new Date()['getTime']()-_0x2af9a1['getTime']()>_0x3e35b5[a7_0x3dba('0x6')]){yield _0x1683a5[a7_0x3dba('0xf')]();continue;}if((_0x3e35b5===null||_0x3e35b5===void 0x0?void 0x0:_0x3e35b5[a7_0x3dba('0xe')])!==undefined){if(_0x3e35b5['status']===a7_0x3dba('0x11')||_0x3e35b5['status']===a7_0x3dba('0x2e')){return;}}else if(_0x3e35b5[a7_0x3dba('0x2c')]){return;}_0xa0b0f9(_0x3e35b5['tasks'][a7_0x3dba('0x18')](_0x31db59=>_0x31db59[a7_0x3dba('0x2d')])[a7_0x3dba('0x2')](''));if(!_0x3e35b5['executionId']){if(environment_1[a7_0x3dba('0x19')]){output[a7_0x3dba('0x2f')]({'title':_0x158fbd+a7_0x3dba('0x14')});}yield _0x1683a5['wait']();_0x275c17=0x0;_0x59a939=[];continue;}_0x1683a5[a7_0x3dba('0x20')]();_0x4dc9d3=!![];if(_0x3e35b5[a7_0x3dba('0x12')]){for(const _0xe129c0 of _0x3e35b5['completedTasks']){if(_0x473f54[_0xe129c0['taskId']])continue;output[a7_0x3dba('0x2f')]({'title':_0x158fbd+a7_0x3dba('0x9')+_0xe129c0['taskId']+'\x20Hash:\x20'+_0xe129c0['hash']+a7_0x3dba('0x1f')+_0xe129c0[a7_0x3dba('0x2a')]});yield _0x5539f0[a7_0x3dba('0x1c')](_0xe129c0['hash'],_0xe129c0[a7_0x3dba('0x2a')]);_0x473f54[_0xe129c0[a7_0x3dba('0x2d')]]=!![];}}const _0x4a19b1=yield _0x49a551(_0x3e35b5[a7_0x3dba('0x16')],_0x3e35b5[a7_0x3dba('0xa')],_0x3e35b5[a7_0x3dba('0x0')]);for(const _0x2928fe of _0x4a19b1[a7_0x3dba('0x12')]){_0x473f54[_0x2928fe['taskId']]=!![];}_0x275c17=_0x4a19b1[a7_0x3dba('0x5')];_0x59a939=_0x4a19b1['completedTasks'];}});}exports[a7_0x3dba('0x7')]=executeTasks;

@@ -1,1 +0,1 @@

const a8_0x2c63=['taskGraph','../../../utilities/serializer-overrides','NX_PREFIX_OUTPUT','invokeTasksUsingNxImperativeApi','map','next','../../../utilities/nx-imports','assign','length','true','params','values','NX_CACHE_FAILURES','yargs-parser','value','unparse','env','projectName','status','__esModule','defineProperty','throw','NX_STREAM_OUTPUT','invoke','tasks','target','configuration','hash','__awaiter'];(function(_0x3bb306,_0x2c6361){const _0xd15fa8=function(_0x226c9e){while(--_0x226c9e){_0x3bb306['push'](_0x3bb306['shift']());}};_0xd15fa8(++_0x2c6361);}(a8_0x2c63,0x15f));const a8_0xd15f=function(_0x3bb306,_0x2c6361){_0x3bb306=_0x3bb306-0x0;let _0xd15fa8=a8_0x2c63[_0x3bb306];return _0xd15fa8;};'use strict';var __awaiter=this&&this[a8_0xd15f('0x19')]||function(_0x2ef895,_0x50eccf,_0xc61dda,_0x230f7b){function _0x347635(_0xbe2a85){return _0xbe2a85 instanceof _0xc61dda?_0xbe2a85:new _0xc61dda(function(_0xd5ba0d){_0xd5ba0d(_0xbe2a85);});}return new(_0xc61dda||(_0xc61dda=Promise))(function(_0x1a56a6,_0x4a9649){function _0x1719be(_0x2bcb21){try{_0x5e28ed(_0x230f7b['next'](_0x2bcb21));}catch(_0x361e84){_0x4a9649(_0x361e84);}}function _0x49c153(_0x44d295){try{_0x5e28ed(_0x230f7b[a8_0xd15f('0x12')](_0x44d295));}catch(_0x74f355){_0x4a9649(_0x74f355);}}function _0x5e28ed(_0x3bb9b6){_0x3bb9b6['done']?_0x1a56a6(_0x3bb9b6[a8_0xd15f('0xb')]):_0x347635(_0x3bb9b6[a8_0xd15f('0xb')])['then'](_0x1719be,_0x49c153);}_0x5e28ed((_0x230f7b=_0x230f7b['apply'](_0x2ef895,_0x50eccf||[]))[a8_0xd15f('0x2')]());});};Object[a8_0xd15f('0x11')](exports,a8_0xd15f('0x10'),{'value':!![]});exports[a8_0xd15f('0x0')]=void 0x0;const {initTasksRunner}=require(a8_0xd15f('0x3'));const parser=require(a8_0xd15f('0xa'));const serializer_overrides_1=require(a8_0xd15f('0x1b'));function invokeTasksUsingNxImperativeApi(_0x1443ff){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x780185=yield initTasksRunner(_0x1443ff);return(_0x82fe79,_0x415ccf,_0x14f540)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x312f58=_0x415ccf[a8_0xd15f('0x1')](_0x12e968=>{const _0x17de37=parser(_0x12e968[a8_0xd15f('0x7')],{'configuration':{'camel-case-expansion':![],'dot-notation':!![]}});const _0x785540=(0x0,serializer_overrides_1[a8_0xd15f('0xc')])(_0x17de37);if(_0x17de37['_'][a8_0xd15f('0x5')]==0x0){delete _0x17de37['_'];}return{'id':_0x12e968['taskId'],'target':{'project':_0x12e968[a8_0xd15f('0xe')],'target':_0x12e968[a8_0xd15f('0x16')],'configuration':_0x12e968[a8_0xd15f('0x17')]},'overrides':Object[a8_0xd15f('0x4')](Object[a8_0xd15f('0x4')]({},_0x17de37),{'__overrides_unparsed__':_0x785540})};});process[a8_0xd15f('0xd')][a8_0xd15f('0x9')]='true';process[a8_0xd15f('0xd')]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID']=_0x82fe79;process[a8_0xd15f('0xd')][a8_0xd15f('0x13')]=a8_0xd15f('0x6');process[a8_0xd15f('0xd')][a8_0xd15f('0x1c')]=a8_0xd15f('0x6');const _0x3c1341=yield _0x780185[a8_0xd15f('0x14')]({'tasks':_0x312f58,'parallel':_0x14f540});const _0x4e82e0=Object[a8_0xd15f('0x8')](_0x3c1341[a8_0xd15f('0x1a')][a8_0xd15f('0x15')]);return{'completedTasks':_0x4e82e0[a8_0xd15f('0x1')](_0x4f1bb7=>({'taskId':_0x4f1bb7['id'],'hash':_0x4f1bb7[a8_0xd15f('0x18')]})),'completedStatusCode':_0x3c1341[a8_0xd15f('0xf')]};});});}exports['invokeTasksUsingNxImperativeApi']=invokeTasksUsingNxImperativeApi;
const a8_0x5db8=['invokeTasksUsingNxImperativeApi','done','unparse','hash','invoke','true','../../../utilities/nx-imports','values','throw','map','next','yargs-parser','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','projectName','NX_STREAM_OUTPUT','params','NX_CACHE_FAILURES','__esModule','length','__awaiter','defineProperty','env','tasks','assign','target','taskId','configuration','status','taskGraph','value'];(function(_0x1a6a6,_0x5db829){const _0x3754ea=function(_0x162b22){while(--_0x162b22){_0x1a6a6['push'](_0x1a6a6['shift']());}};_0x3754ea(++_0x5db829);}(a8_0x5db8,0x64));const a8_0x3754=function(_0x1a6a6,_0x5db829){_0x1a6a6=_0x1a6a6-0x0;let _0x3754ea=a8_0x5db8[_0x1a6a6];return _0x3754ea;};'use strict';var __awaiter=this&&this[a8_0x3754('0x9')]||function(_0x4c6901,_0x67adfe,_0x372e5e,_0x15da2b){function _0xac354c(_0x28382e){return _0x28382e instanceof _0x372e5e?_0x28382e:new _0x372e5e(function(_0x56b010){_0x56b010(_0x28382e);});}return new(_0x372e5e||(_0x372e5e=Promise))(function(_0x5b1b0f,_0x528356){function _0xa67809(_0x4f57aa){try{_0x290faa(_0x15da2b['next'](_0x4f57aa));}catch(_0x16d91f){_0x528356(_0x16d91f);}}function _0x19ee67(_0x5f2c86){try{_0x290faa(_0x15da2b[a8_0x3754('0x1c')](_0x5f2c86));}catch(_0x54ccdd){_0x528356(_0x54ccdd);}}function _0x290faa(_0x29015a){_0x29015a[a8_0x3754('0x15')]?_0x5b1b0f(_0x29015a['value']):_0xac354c(_0x29015a[a8_0x3754('0x13')])['then'](_0xa67809,_0x19ee67);}_0x290faa((_0x15da2b=_0x15da2b['apply'](_0x4c6901,_0x67adfe||[]))[a8_0x3754('0x0')]());});};Object[a8_0x3754('0xa')](exports,a8_0x3754('0x7'),{'value':!![]});exports[a8_0x3754('0x14')]=void 0x0;const {initTasksRunner}=require(a8_0x3754('0x1a'));const parser=require(a8_0x3754('0x1'));const serializer_overrides_1=require('../../../utilities/serializer-overrides');function invokeTasksUsingNxImperativeApi(_0x545b66){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3f13b7=yield initTasksRunner(_0x545b66);return(_0x2579a4,_0x1882fc,_0x4400ea)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x540123=_0x1882fc[a8_0x3754('0x1d')](_0x2f8549=>{const _0x2d7cd0=parser(_0x2f8549[a8_0x3754('0x5')],{'configuration':{'camel-case-expansion':![],'dot-notation':!![]}});const _0x10282e=(0x0,serializer_overrides_1[a8_0x3754('0x16')])(_0x2d7cd0);if(_0x2d7cd0['_'][a8_0x3754('0x8')]==0x0){delete _0x2d7cd0['_'];}return{'id':_0x2f8549[a8_0x3754('0xf')],'target':{'project':_0x2f8549[a8_0x3754('0x3')],'target':_0x2f8549[a8_0x3754('0xe')],'configuration':_0x2f8549[a8_0x3754('0x10')]},'overrides':Object[a8_0x3754('0xd')](Object[a8_0x3754('0xd')]({},_0x2d7cd0),{'__overrides_unparsed__':_0x10282e})};});process[a8_0x3754('0xb')][a8_0x3754('0x6')]=a8_0x3754('0x19');process[a8_0x3754('0xb')][a8_0x3754('0x2')]=_0x2579a4;process['env'][a8_0x3754('0x4')]=a8_0x3754('0x19');process[a8_0x3754('0xb')]['NX_PREFIX_OUTPUT']=a8_0x3754('0x19');const _0x400641=yield _0x3f13b7[a8_0x3754('0x18')]({'tasks':_0x540123,'parallel':_0x4400ea});const _0x53c882=Object[a8_0x3754('0x1b')](_0x400641[a8_0x3754('0x12')][a8_0x3754('0xc')]);return{'completedTasks':_0x53c882['map'](_0x398852=>({'taskId':_0x398852['id'],'hash':_0x398852[a8_0x3754('0x17')]})),'completedStatusCode':_0x400641[a8_0x3754('0x11')]};});});}exports['invokeTasksUsingNxImperativeApi']=invokeTasksUsingNxImperativeApi;

@@ -1,1 +0,1 @@

const a9_0x168b=['join','target','projects','VERBOSE_LOGGING','unlinkSync','projectName','parse','configuration','true','find','inherit','__esModule','next','child_process','\x20--parallel\x20--max-parallel=','then','value','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','assign','getNxCacheDirectory','__awaiter','note','done','../../../utilities/nx-imports','status','toString','env','\x20--projects=','forEach','invokeTasksUsingRunMany','apply','push','/tasks-hashes-','readFileSync'];(function(_0x42fd9c,_0x168bc4){const _0x2bd96e=function(_0x31a995){while(--_0x31a995){_0x42fd9c['push'](_0x42fd9c['shift']());}};_0x2bd96e(++_0x168bc4);}(a9_0x168b,0x17d));const a9_0x2bd9=function(_0x42fd9c,_0x168bc4){_0x42fd9c=_0x42fd9c-0x0;let _0x2bd96e=a9_0x168b[_0x42fd9c];return _0x2bd96e;};'use strict';var __awaiter=this&&this[a9_0x2bd9('0xd')]||function(_0x36f2be,_0x1bad43,_0x42c6f4,_0x213122){function _0x105d54(_0x30ae99){return _0x30ae99 instanceof _0x42c6f4?_0x30ae99:new _0x42c6f4(function(_0x686190){_0x686190(_0x30ae99);});}return new(_0x42c6f4||(_0x42c6f4=Promise))(function(_0x326cf1,_0x10da3b){function _0x36e406(_0x2b69d8){try{_0x4ddf31(_0x213122[a9_0x2bd9('0x5')](_0x2b69d8));}catch(_0x45e2c2){_0x10da3b(_0x45e2c2);}}function _0x50bde6(_0x1b3075){try{_0x4ddf31(_0x213122['throw'](_0x1b3075));}catch(_0x3907c3){_0x10da3b(_0x3907c3);}}function _0x4ddf31(_0x32dca2){_0x32dca2[a9_0x2bd9('0xf')]?_0x326cf1(_0x32dca2[a9_0x2bd9('0x9')]):_0x105d54(_0x32dca2['value'])[a9_0x2bd9('0x8')](_0x36e406,_0x50bde6);}_0x4ddf31((_0x213122=_0x213122[a9_0x2bd9('0x17')](_0x36f2be,_0x1bad43||[]))[a9_0x2bd9('0x5')]());});};Object['defineProperty'](exports,a9_0x2bd9('0x4'),{'value':!![]});exports[a9_0x2bd9('0x16')]=void 0x0;const environment_1=require('../../../utilities/environment');const child_process_1=require(a9_0x2bd9('0x6'));const fs_1=require('fs');const {output}=require(a9_0x2bd9('0x10'));function invokeTasksUsingRunMany(_0x5e9c02){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2d8331=completedTasksReader(_0x5e9c02);return function _0x97e12f(_0x1fec27,_0xcc791,_0x48756b){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x415ea7=0x0;const _0x56af44=[];for(const _0x421f54 of groupByTarget(_0xcc791)){const _0x2e1036=_0x421f54[a9_0x2bd9('0x0')]?'--configuration='+_0x421f54[a9_0x2bd9('0x0')]:'';const _0x4c5508=_0x48756b>0x1?a9_0x2bd9('0x7')+_0x48756b:'';const _0x373334='npx\x20nx\x20run-many\x20--target='+_0x421f54['target']+'\x20'+_0x2e1036+a9_0x2bd9('0x14')+_0x421f54[a9_0x2bd9('0x1d')][a9_0x2bd9('0x1b')](',')+'\x20'+_0x421f54['params']+_0x4c5508;if(environment_1[a9_0x2bd9('0x1e')]){output[a9_0x2bd9('0xe')]({'title':'Executing:\x20\x27'+_0x373334+'\x27'});}try{(0x0,child_process_1['execSync'])(_0x373334,{'stdio':['ignore','inherit',a9_0x2bd9('0x3')],'env':Object[a9_0x2bd9('0xb')](Object['assign']({},process[a9_0x2bd9('0x13')]),{'NX_CACHE_FAILURES':'true','NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x1fec27,'NX_STREAM_OUTPUT':a9_0x2bd9('0x1'),'NX_PREFIX_OUTPUT':a9_0x2bd9('0x1')})});_0x56af44[a9_0x2bd9('0x18')](..._0x2d8331(_0x1fec27));}catch(_0xd96e9b){if(_0xd96e9b[a9_0x2bd9('0x11')]===environment_1[a9_0x2bd9('0xa')]){throw _0xd96e9b;}else{_0x415ea7=0x1;_0x56af44[a9_0x2bd9('0x18')](..._0x2d8331(_0x1fec27));}}}return{'completedStatusCode':_0x415ea7,'completedTasks':_0x56af44};});};});}exports['invokeTasksUsingRunMany']=invokeTasksUsingRunMany;function groupByTarget(_0x100cef){const _0x4bfdfc=[];_0x100cef[a9_0x2bd9('0x15')](_0x262e74=>{const _0x10f213=_0x4bfdfc[a9_0x2bd9('0x2')](_0x11db6e=>_0x11db6e['target']===_0x262e74[a9_0x2bd9('0x1c')]&&_0x11db6e['configuration']===_0x262e74[a9_0x2bd9('0x0')]);if(_0x10f213){_0x10f213[a9_0x2bd9('0x1d')][a9_0x2bd9('0x18')](_0x262e74[a9_0x2bd9('0x20')]);}else{_0x4bfdfc[a9_0x2bd9('0x18')]({'target':_0x262e74['target'],'projects':[_0x262e74[a9_0x2bd9('0x20')]],'params':_0x262e74['params'],'configuration':_0x262e74['configuration']});}});return _0x4bfdfc;}function completedTasksReader(_0x467a5c){const _0x1f0eed=(0x0,environment_1[a9_0x2bd9('0xc')])(_0x467a5c);return _0x4aac8a=>{const _0x323207='Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20'+_0x4aac8a+').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.';let _0x51e2a1;try{const _0xc91583=_0x1f0eed+a9_0x2bd9('0x19')+_0x4aac8a;_0x51e2a1=JSON[a9_0x2bd9('0x21')]((0x0,fs_1[a9_0x2bd9('0x1a')])(_0xc91583)[a9_0x2bd9('0x12')]());(0x0,fs_1[a9_0x2bd9('0x1f')])(_0xc91583);}catch(_0x103be3){throw new Error(_0x323207);}if(_0x51e2a1['length']==0x0){throw new Error(_0x323207);}return _0x51e2a1;};}
const a9_0x3ba7=['then','assign','toString','note','Executing:\x20\x27','inherit','target','getNxCacheDirectory','true','push','done','execSync','length','next','unlinkSync','ignore','forEach','VERBOSE_LOGGING','throw','projectName','--configuration=','../../../utilities/nx-imports','invokeTasksUsingRunMany','__awaiter','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','npx\x20nx\x20run-many\x20--target=','configuration','join','/tasks-hashes-','child_process','__esModule','../../../utilities/environment','\x20--projects=','parse','projects','apply','params','readFileSync'];(function(_0x4ed579,_0x3ba7ce){const _0x66c2f6=function(_0x39e4b3){while(--_0x39e4b3){_0x4ed579['push'](_0x4ed579['shift']());}};_0x66c2f6(++_0x3ba7ce);}(a9_0x3ba7,0x1af));const a9_0x66c2=function(_0x4ed579,_0x3ba7ce){_0x4ed579=_0x4ed579-0x0;let _0x66c2f6=a9_0x3ba7[_0x4ed579];return _0x66c2f6;};'use strict';var __awaiter=this&&this[a9_0x66c2('0xa')]||function(_0x2e5397,_0x4adc49,_0x8a866,_0x5be9a3){function _0x364481(_0x7f6ca9){return _0x7f6ca9 instanceof _0x8a866?_0x7f6ca9:new _0x8a866(function(_0x4c75bd){_0x4c75bd(_0x7f6ca9);});}return new(_0x8a866||(_0x8a866=Promise))(function(_0x5149fb,_0x24d47c){function _0x24c15b(_0x427a11){try{_0x323ef4(_0x5be9a3[a9_0x66c2('0x0')](_0x427a11));}catch(_0x30c9c7){_0x24d47c(_0x30c9c7);}}function _0x10606a(_0x53b770){try{_0x323ef4(_0x5be9a3[a9_0x66c2('0x5')](_0x53b770));}catch(_0x3a7e81){_0x24d47c(_0x3a7e81);}}function _0x323ef4(_0x1ce51f){_0x1ce51f[a9_0x66c2('0x23')]?_0x5149fb(_0x1ce51f['value']):_0x364481(_0x1ce51f['value'])[a9_0x66c2('0x19')](_0x24c15b,_0x10606a);}_0x323ef4((_0x5be9a3=_0x5be9a3[a9_0x66c2('0x16')](_0x2e5397,_0x4adc49||[]))[a9_0x66c2('0x0')]());});};Object['defineProperty'](exports,a9_0x66c2('0x11'),{'value':!![]});exports[a9_0x66c2('0x9')]=void 0x0;const environment_1=require(a9_0x66c2('0x12'));const child_process_1=require(a9_0x66c2('0x10'));const fs_1=require('fs');const {output}=require(a9_0x66c2('0x8'));function invokeTasksUsingRunMany(_0x2b1f49){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x13fc8d=completedTasksReader(_0x2b1f49);return function _0x3b4154(_0x28718c,_0x42ff72,_0x4bfbf2){return __awaiter(this,void 0x0,void 0x0,function*(){let _0xf5d992=0x0;const _0x17d5cd=[];for(const _0x4b878e of groupByTarget(_0x42ff72)){const _0x39226a=_0x4b878e[a9_0x66c2('0xd')]?a9_0x66c2('0x7')+_0x4b878e[a9_0x66c2('0xd')]:'';const _0x5a57ac=_0x4bfbf2>0x1?'\x20--parallel\x20--max-parallel='+_0x4bfbf2:'';const _0x4027f0=a9_0x66c2('0xc')+_0x4b878e['target']+'\x20'+_0x39226a+a9_0x66c2('0x13')+_0x4b878e['projects'][a9_0x66c2('0xe')](',')+'\x20'+_0x4b878e[a9_0x66c2('0x17')]+_0x5a57ac;if(environment_1[a9_0x66c2('0x4')]){output[a9_0x66c2('0x1c')]({'title':a9_0x66c2('0x1d')+_0x4027f0+'\x27'});}try{(0x0,child_process_1[a9_0x66c2('0x24')])(_0x4027f0,{'stdio':[a9_0x66c2('0x2'),a9_0x66c2('0x1e'),a9_0x66c2('0x1e')],'env':Object[a9_0x66c2('0x1a')](Object[a9_0x66c2('0x1a')]({},process['env']),{'NX_CACHE_FAILURES':a9_0x66c2('0x21'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x28718c,'NX_STREAM_OUTPUT':a9_0x66c2('0x21'),'NX_PREFIX_OUTPUT':a9_0x66c2('0x21')})});_0x17d5cd[a9_0x66c2('0x22')](..._0x13fc8d(_0x28718c));}catch(_0x1a7aa4){if(_0x1a7aa4['status']===environment_1[a9_0x66c2('0xb')]){throw _0x1a7aa4;}else{_0xf5d992=0x1;_0x17d5cd[a9_0x66c2('0x22')](..._0x13fc8d(_0x28718c));}}}return{'completedStatusCode':_0xf5d992,'completedTasks':_0x17d5cd};});};});}exports[a9_0x66c2('0x9')]=invokeTasksUsingRunMany;function groupByTarget(_0x1a5ef2){const _0x3c55cc=[];_0x1a5ef2[a9_0x66c2('0x3')](_0x4c1921=>{const _0x113f2d=_0x3c55cc['find'](_0x3ddfa4=>_0x3ddfa4[a9_0x66c2('0x1f')]===_0x4c1921[a9_0x66c2('0x1f')]&&_0x3ddfa4[a9_0x66c2('0xd')]===_0x4c1921['configuration']);if(_0x113f2d){_0x113f2d[a9_0x66c2('0x15')][a9_0x66c2('0x22')](_0x4c1921[a9_0x66c2('0x6')]);}else{_0x3c55cc['push']({'target':_0x4c1921[a9_0x66c2('0x1f')],'projects':[_0x4c1921[a9_0x66c2('0x6')]],'params':_0x4c1921[a9_0x66c2('0x17')],'configuration':_0x4c1921[a9_0x66c2('0xd')]});}});return _0x3c55cc;}function completedTasksReader(_0x52fa06){const _0x3d1433=(0x0,environment_1[a9_0x66c2('0x20')])(_0x52fa06);return _0x28c941=>{const _0x48613d='Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20'+_0x28c941+').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.';let _0x1ae648;try{const _0x57fb84=_0x3d1433+a9_0x66c2('0xf')+_0x28c941;_0x1ae648=JSON[a9_0x66c2('0x14')]((0x0,fs_1[a9_0x66c2('0x18')])(_0x57fb84)[a9_0x66c2('0x1b')]());(0x0,fs_1[a9_0x66c2('0x1')])(_0x57fb84);}catch(_0x5856fc){throw new Error(_0x48613d);}if(_0x1ae648[a9_0x66c2('0x25')]==0x0){throw new Error(_0x48613d);}return _0x1ae648;};}

@@ -1,1 +0,1 @@

const a10_0x53e4=['done','map','__awaiter','response','exit','project','apply','completeRunGroup','__esModule','RUNNER_FAILURE_PERF_ENTRY','next','axiosException','serializeOverrides','stopAgentsOnFailure','then','maxParallel','ciExecutionEnv:\x20','../../../utilities/environment','runGroup:\x20','DistributedExecutionApi','Completing\x20with\x20an\x20error','parseCommand','VERBOSE_LOGGING','data','status','value','../../../utilities/nx-imports','ciExecutionId:\x20','createMetricRecorder','note','axiosMultipleTries','throw','/nx-cloud/executions/status','false','parallel','mapRespToPerfEntry','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','configuration','error','recordMetric','NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE','true','stringify','completeRunGroupWithError','/nx-cloud/executions/complete-run-group','apiAxiosInstance','error:\x20','createApiAxiosInstance','../../../utilities/serializer-overrides','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','target','post','enabled'];(function(_0x3de0ce,_0x53e487){const _0x44f269=function(_0x34ca37){while(--_0x34ca37){_0x3de0ce['push'](_0x3de0ce['shift']());}};_0x44f269(++_0x53e487);}(a10_0x53e4,0x168));const a10_0x44f2=function(_0x3de0ce,_0x53e487){_0x3de0ce=_0x3de0ce-0x0;let _0x44f269=a10_0x53e4[_0x3de0ce];return _0x44f269;};'use strict';var __awaiter=this&&this[a10_0x44f2('0xd')]||function(_0x51be29,_0x84f687,_0x6d0736,_0x515f68){function _0x3d4496(_0x5a399e){return _0x5a399e instanceof _0x6d0736?_0x5a399e:new _0x6d0736(function(_0x54616){_0x54616(_0x5a399e);});}return new(_0x6d0736||(_0x6d0736=Promise))(function(_0x24c337,_0x1f50f7){function _0x50609d(_0x41583a){try{_0xad1e92(_0x515f68[a10_0x44f2('0x15')](_0x41583a));}catch(_0x4737bb){_0x1f50f7(_0x4737bb);}}function _0x3dd67d(_0x580cae){try{_0xad1e92(_0x515f68[a10_0x44f2('0x2a')](_0x580cae));}catch(_0x49d479){_0x1f50f7(_0x49d479);}}function _0xad1e92(_0x35ebc9){_0x35ebc9[a10_0x44f2('0xb')]?_0x24c337(_0x35ebc9[a10_0x44f2('0x24')]):_0x3d4496(_0x35ebc9['value'])[a10_0x44f2('0x19')](_0x50609d,_0x3dd67d);}_0xad1e92((_0x515f68=_0x515f68[a10_0x44f2('0x11')](_0x51be29,_0x84f687||[]))[a10_0x44f2('0x15')]());});};Object['defineProperty'](exports,a10_0x44f2('0x13'),{'value':!![]});exports['createStartRequest']=exports[a10_0x44f2('0x1e')]=void 0x0;const axios_1=require('../../../utilities/axios');const environment_1=require(a10_0x44f2('0x1c'));const metric_logger_1=require('../../../utilities/metric-logger');const serializer_overrides_1=require(a10_0x44f2('0x6'));const {output}=require(a10_0x44f2('0x25'));class DistributedExecutionApi{constructor(_0x154685){this[a10_0x44f2('0x3')]=(0x0,axios_1[a10_0x44f2('0x5')])(_0x154685);}['start'](_0x49b7d5){var _0x160812;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x36783f=(0x0,metric_logger_1[a10_0x44f2('0x27')])('dteStart');let _0x4c2c8c;if(environment_1[a10_0x44f2('0x21')]){output[a10_0x44f2('0x28')]({'title':'Starting\x20a\x20distributed\x20execution','bodyLines':[JSON[a10_0x44f2('0x0')](_0x49b7d5,null,0x2)]});}try{_0x4c2c8c=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a10_0x44f2('0x3')]['post']('/nx-cloud/executions/start',_0x49b7d5));_0x36783f[a10_0x44f2('0x32')]((0x0,metric_logger_1[a10_0x44f2('0x2e')])(_0x4c2c8c));}catch(_0x2cbc18){_0x36783f[a10_0x44f2('0x32')](((_0x160812=_0x2cbc18===null||_0x2cbc18===void 0x0?void 0x0:_0x2cbc18[a10_0x44f2('0x16')])===null||_0x160812===void 0x0?void 0x0:_0x160812[a10_0x44f2('0xe')])?(0x0,metric_logger_1[a10_0x44f2('0x2e')])(_0x2cbc18[a10_0x44f2('0x16')]['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x2cbc18;}if(!_0x4c2c8c['data'][a10_0x44f2('0xa')]){throw new Error(a10_0x44f2('0x2f'));}if(_0x4c2c8c[a10_0x44f2('0x22')][a10_0x44f2('0x31')]){throw new Error(_0x4c2c8c[a10_0x44f2('0x22')][a10_0x44f2('0x31')]);}return _0x4c2c8c[a10_0x44f2('0x22')]['id'];});}[a10_0x44f2('0x23')](_0x2ec1fd){var _0x29fad5;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x375cf2=(0x0,metric_logger_1[a10_0x44f2('0x27')])('dteStatus');try{const _0x169133=yield(0x0,axios_1[a10_0x44f2('0x29')])(()=>this['apiAxiosInstance'][a10_0x44f2('0x9')](a10_0x44f2('0x2b'),{'id':_0x2ec1fd}));_0x375cf2[a10_0x44f2('0x32')]((0x0,metric_logger_1[a10_0x44f2('0x2e')])(_0x169133));return _0x169133[a10_0x44f2('0x22')];}catch(_0x1617d2){_0x375cf2[a10_0x44f2('0x32')](((_0x29fad5=_0x1617d2===null||_0x1617d2===void 0x0?void 0x0:_0x1617d2[a10_0x44f2('0x16')])===null||_0x29fad5===void 0x0?void 0x0:_0x29fad5[a10_0x44f2('0xe')])?(0x0,metric_logger_1[a10_0x44f2('0x2e')])(_0x1617d2['axiosException'][a10_0x44f2('0xe')]):metric_logger_1[a10_0x44f2('0x14')]);output[a10_0x44f2('0x31')]({'title':_0x1617d2['message']});process[a10_0x44f2('0xf')](0x1);}});}[a10_0x44f2('0x1')](_0x246684,_0x33170d,_0x307921,_0x5eaa27,_0x589d0c){var _0x468f99;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x53566d=(0x0,metric_logger_1[a10_0x44f2('0x27')])(a10_0x44f2('0x12'));if(environment_1[a10_0x44f2('0x21')]){output[a10_0x44f2('0x28')]({'title':a10_0x44f2('0x1f'),'bodyLines':[a10_0x44f2('0x26')+_0x307921,a10_0x44f2('0x1b')+_0x5eaa27,a10_0x44f2('0x1d')+_0x33170d,a10_0x44f2('0x4')+_0x589d0c]});}try{const _0x3ec3f0=yield(0x0,axios_1[a10_0x44f2('0x29')])(()=>this[a10_0x44f2('0x3')][a10_0x44f2('0x9')](a10_0x44f2('0x2'),{'runGroup':_0x33170d,'ciExecutionId':_0x307921,'ciExecutionEnv':_0x5eaa27,'criticalErrorMessage':_0x589d0c}),0x3);_0x53566d['recordMetric']((0x0,metric_logger_1[a10_0x44f2('0x2e')])(_0x3ec3f0));}catch(_0x3af4ea){_0x53566d[a10_0x44f2('0x32')](((_0x468f99=_0x3af4ea===null||_0x3af4ea===void 0x0?void 0x0:_0x3af4ea['axiosException'])===null||_0x468f99===void 0x0?void 0x0:_0x468f99[a10_0x44f2('0xe')])?(0x0,metric_logger_1[a10_0x44f2('0x2e')])(_0x3af4ea['axiosException'][a10_0x44f2('0xe')]):metric_logger_1[a10_0x44f2('0x14')]);}});}}exports[a10_0x44f2('0x1e')]=DistributedExecutionApi;function createStartRequest(_0x461f23,_0x4b267f,_0x479043,_0xb3fbbf,_0x12009d,_0x309b57){const _0xbd8964=_0x12009d[a10_0x44f2('0xc')](_0x415651=>{return _0x415651[a10_0x44f2('0xc')](_0x243649=>{return{'taskId':_0x243649['id'],'hash':_0x243649['hash'],'projectName':_0x243649[a10_0x44f2('0x8')][a10_0x44f2('0x10')],'target':_0x243649[a10_0x44f2('0x8')][a10_0x44f2('0x8')],'configuration':_0x243649['target'][a10_0x44f2('0x30')]||null,'params':(0x0,serializer_overrides_1[a10_0x44f2('0x17')])(_0x243649)};});});const _0x40acaf={'command':(0x0,environment_1[a10_0x44f2('0x20')])(),'branch':_0x461f23,'runGroup':_0x4b267f,'ciExecutionId':_0x479043,'ciExecutionEnv':_0xb3fbbf,'tasks':_0xbd8964,'maxParallel':calculateMaxParallel(_0x309b57)};if(environment_1[a10_0x44f2('0x7')]){_0x40acaf['agentCount']=environment_1[a10_0x44f2('0x7')];}if(!environment_1[a10_0x44f2('0x33')]){_0x40acaf[a10_0x44f2('0x18')]=![];}return _0x40acaf;}exports['createStartRequest']=createStartRequest;function calculateMaxParallel(_0x18ba38){if(_0x18ba38['parallel']===a10_0x44f2('0x2c')||_0x18ba38['parallel']===![]){return 0x1;}else if(_0x18ba38[a10_0x44f2('0x2d')]===a10_0x44f2('0x34')||_0x18ba38[a10_0x44f2('0x2d')]===!![]){return Number(_0x18ba38[a10_0x44f2('0x1a')]||0x3);}else if(_0x18ba38[a10_0x44f2('0x2d')]===undefined){return _0x18ba38[a10_0x44f2('0x1a')]?Number(_0x18ba38[a10_0x44f2('0x1a')]):0x3;}else{return Number(_0x18ba38[a10_0x44f2('0x2d')])||0x3;}}
const a10_0x3126=['__esModule','../../../utilities/serializer-overrides','agentCount','throw','dteStart','createApiAxiosInstance','createStartRequest','error','defineProperty','Completing\x20with\x20an\x20error','serializeOverrides','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','axiosException','/nx-cloud/executions/start','../../../utilities/nx-imports','DistributedExecutionApi','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','parallel','../../../utilities/axios','then','stopAgentsOnFailure','true','__awaiter','/nx-cloud/executions/status','parseCommand','enabled','ciExecutionId:\x20','value','data','Starting\x20a\x20distributed\x20execution','dteStatus','response','../../../utilities/environment','project','maxParallel','stringify','hash','exit','target','NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE','mapRespToPerfEntry','completeRunGroup','error:\x20','RUNNER_FAILURE_PERF_ENTRY','completeRunGroupWithError','map','start','recordMetric','/nx-cloud/executions/complete-run-group','false','note','axiosMultipleTries','runGroup:\x20','post','../../../utilities/metric-logger','apiAxiosInstance','ciExecutionEnv:\x20','createMetricRecorder','VERBOSE_LOGGING','message','next'];(function(_0x15403c,_0x312698){const _0x15b7a4=function(_0x2a49f6){while(--_0x2a49f6){_0x15403c['push'](_0x15403c['shift']());}};_0x15b7a4(++_0x312698);}(a10_0x3126,0xbd));const a10_0x15b7=function(_0x15403c,_0x312698){_0x15403c=_0x15403c-0x0;let _0x15b7a4=a10_0x3126[_0x15403c];return _0x15b7a4;};'use strict';var __awaiter=this&&this[a10_0x15b7('0x10')]||function(_0x50f286,_0x5a401a,_0x3960f5,_0x1ac25b){function _0x318c88(_0x284aff){return _0x284aff instanceof _0x3960f5?_0x284aff:new _0x3960f5(function(_0xbcbe77){_0xbcbe77(_0x284aff);});}return new(_0x3960f5||(_0x3960f5=Promise))(function(_0x51fd53,_0x34653d){function _0x35c175(_0x5912a3){try{_0x1cc84a(_0x1ac25b['next'](_0x5912a3));}catch(_0x456524){_0x34653d(_0x456524);}}function _0x57c810(_0x2fa80d){try{_0x1cc84a(_0x1ac25b[a10_0x15b7('0x3a')](_0x2fa80d));}catch(_0x27390f){_0x34653d(_0x27390f);}}function _0x1cc84a(_0x54c7ac){_0x54c7ac['done']?_0x51fd53(_0x54c7ac[a10_0x15b7('0x15')]):_0x318c88(_0x54c7ac[a10_0x15b7('0x15')])[a10_0x15b7('0xd')](_0x35c175,_0x57c810);}_0x1cc84a((_0x1ac25b=_0x1ac25b['apply'](_0x50f286,_0x5a401a||[]))[a10_0x15b7('0x36')]());});};Object[a10_0x15b7('0x2')](exports,a10_0x15b7('0x37'),{'value':!![]});exports[a10_0x15b7('0x0')]=exports['DistributedExecutionApi']=void 0x0;const axios_1=require(a10_0x15b7('0xc'));const environment_1=require(a10_0x15b7('0x1a'));const metric_logger_1=require(a10_0x15b7('0x30'));const serializer_overrides_1=require(a10_0x15b7('0x38'));const {output}=require(a10_0x15b7('0x8'));class DistributedExecutionApi{constructor(_0x48fc34){this['apiAxiosInstance']=(0x0,axios_1[a10_0x15b7('0x3c')])(_0x48fc34);}[a10_0x15b7('0x28')](_0x203c0d){var _0x2f9ff2;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x13c7bf=(0x0,metric_logger_1['createMetricRecorder'])(a10_0x15b7('0x3b'));let _0x392f60;if(environment_1[a10_0x15b7('0x34')]){output[a10_0x15b7('0x2c')]({'title':a10_0x15b7('0x17'),'bodyLines':[JSON[a10_0x15b7('0x1d')](_0x203c0d,null,0x2)]});}try{_0x392f60=yield(0x0,axios_1[a10_0x15b7('0x2d')])(()=>this[a10_0x15b7('0x31')]['post'](a10_0x15b7('0x7'),_0x203c0d));_0x13c7bf[a10_0x15b7('0x29')]((0x0,metric_logger_1[a10_0x15b7('0x22')])(_0x392f60));}catch(_0x36b8fe){_0x13c7bf[a10_0x15b7('0x29')](((_0x2f9ff2=_0x36b8fe===null||_0x36b8fe===void 0x0?void 0x0:_0x36b8fe[a10_0x15b7('0x6')])===null||_0x2f9ff2===void 0x0?void 0x0:_0x2f9ff2['response'])?(0x0,metric_logger_1[a10_0x15b7('0x22')])(_0x36b8fe['axiosException']['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x36b8fe;}if(!_0x392f60[a10_0x15b7('0x16')][a10_0x15b7('0x13')]){throw new Error(a10_0x15b7('0x5'));}if(_0x392f60['data'][a10_0x15b7('0x1')]){throw new Error(_0x392f60[a10_0x15b7('0x16')][a10_0x15b7('0x1')]);}return _0x392f60[a10_0x15b7('0x16')]['id'];});}['status'](_0x118166){var _0x405fa7;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x22833d=(0x0,metric_logger_1[a10_0x15b7('0x33')])(a10_0x15b7('0x18'));try{const _0x1c17e7=yield(0x0,axios_1[a10_0x15b7('0x2d')])(()=>this[a10_0x15b7('0x31')][a10_0x15b7('0x2f')](a10_0x15b7('0x11'),{'id':_0x118166}));_0x22833d[a10_0x15b7('0x29')]((0x0,metric_logger_1[a10_0x15b7('0x22')])(_0x1c17e7));return _0x1c17e7[a10_0x15b7('0x16')];}catch(_0x8e13c5){_0x22833d['recordMetric'](((_0x405fa7=_0x8e13c5===null||_0x8e13c5===void 0x0?void 0x0:_0x8e13c5[a10_0x15b7('0x6')])===null||_0x405fa7===void 0x0?void 0x0:_0x405fa7[a10_0x15b7('0x19')])?(0x0,metric_logger_1[a10_0x15b7('0x22')])(_0x8e13c5['axiosException']['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);output[a10_0x15b7('0x1')]({'title':_0x8e13c5[a10_0x15b7('0x35')]});process[a10_0x15b7('0x1f')](0x1);}});}[a10_0x15b7('0x26')](_0x5b0315,_0x58d1bc,_0x3c062c,_0x1208bc,_0x27fd30){var _0x5daeff;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52c310=(0x0,metric_logger_1['createMetricRecorder'])(a10_0x15b7('0x23'));if(environment_1[a10_0x15b7('0x34')]){output[a10_0x15b7('0x2c')]({'title':a10_0x15b7('0x3'),'bodyLines':[a10_0x15b7('0x14')+_0x3c062c,a10_0x15b7('0x32')+_0x1208bc,a10_0x15b7('0x2e')+_0x58d1bc,a10_0x15b7('0x24')+_0x27fd30]});}try{const _0x40f376=yield(0x0,axios_1[a10_0x15b7('0x2d')])(()=>this[a10_0x15b7('0x31')][a10_0x15b7('0x2f')](a10_0x15b7('0x2a'),{'runGroup':_0x58d1bc,'ciExecutionId':_0x3c062c,'ciExecutionEnv':_0x1208bc,'criticalErrorMessage':_0x27fd30}),0x3);_0x52c310[a10_0x15b7('0x29')]((0x0,metric_logger_1[a10_0x15b7('0x22')])(_0x40f376));}catch(_0x4934b0){_0x52c310[a10_0x15b7('0x29')](((_0x5daeff=_0x4934b0===null||_0x4934b0===void 0x0?void 0x0:_0x4934b0[a10_0x15b7('0x6')])===null||_0x5daeff===void 0x0?void 0x0:_0x5daeff['response'])?(0x0,metric_logger_1[a10_0x15b7('0x22')])(_0x4934b0[a10_0x15b7('0x6')][a10_0x15b7('0x19')]):metric_logger_1[a10_0x15b7('0x25')]);}});}}exports[a10_0x15b7('0x9')]=DistributedExecutionApi;function createStartRequest(_0x236b8f,_0x21cc4f,_0x5b768f,_0x53fffb,_0x4c9910,_0x40d6a7){const _0x42092e=_0x4c9910['map'](_0x2ae7e9=>{return _0x2ae7e9[a10_0x15b7('0x27')](_0x17e2a9=>{return{'taskId':_0x17e2a9['id'],'hash':_0x17e2a9[a10_0x15b7('0x1e')],'projectName':_0x17e2a9[a10_0x15b7('0x20')][a10_0x15b7('0x1b')],'target':_0x17e2a9[a10_0x15b7('0x20')][a10_0x15b7('0x20')],'configuration':_0x17e2a9[a10_0x15b7('0x20')]['configuration']||null,'params':(0x0,serializer_overrides_1[a10_0x15b7('0x4')])(_0x17e2a9)};});});const _0x2b0416={'command':(0x0,environment_1[a10_0x15b7('0x12')])(),'branch':_0x236b8f,'runGroup':_0x21cc4f,'ciExecutionId':_0x5b768f,'ciExecutionEnv':_0x53fffb,'tasks':_0x42092e,'maxParallel':calculateMaxParallel(_0x40d6a7)};if(environment_1[a10_0x15b7('0xa')]){_0x2b0416[a10_0x15b7('0x39')]=environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT'];}if(!environment_1[a10_0x15b7('0x21')]){_0x2b0416[a10_0x15b7('0xe')]=![];}return _0x2b0416;}exports['createStartRequest']=createStartRequest;function calculateMaxParallel(_0x501ac2){if(_0x501ac2[a10_0x15b7('0xb')]===a10_0x15b7('0x2b')||_0x501ac2[a10_0x15b7('0xb')]===![]){return 0x1;}else if(_0x501ac2[a10_0x15b7('0xb')]===a10_0x15b7('0xf')||_0x501ac2[a10_0x15b7('0xb')]===!![]){return Number(_0x501ac2[a10_0x15b7('0x1c')]||0x3);}else if(_0x501ac2['parallel']===undefined){return _0x501ac2[a10_0x15b7('0x1c')]?Number(_0x501ac2['maxParallel']):0x3;}else{return Number(_0x501ac2[a10_0x15b7('0xb')])||0x3;}}

@@ -1,1 +0,1 @@

const a11_0x422e=['warn','DteArtifactStorage','printRunGroupError','exit','endTasks','completeRunGroupWithError','getCIExecutionId','DTE\x20needs\x20the\x20cache\x20to\x20share\x20files\x20between\x20agents.','FileStorage','commandStatus','./process-tasks','success','../../file-storage/e2e-encryption','done','Command\x20execution\x20failed.','splitTasksIntoStages','start','throw','startTask','getNxCacheDirectory','apply','./distributed-execution.api','taskGraph','next','../../error/print-run-group-error','../../../utilities/nx-imports','../../api/error-reporter.api','VERBOSE_LOGGING','../../../utilities/environment','skipNxCache','scheduleTask','dte-main','../../../utilities/dte-artifact-storage','then','error','values','lifeCycle','createTaskGraphCompat','defineProperty','message','value','getCIExecutionEnv','note','axiosException','getBranch','submitRunMetrics','tasks','encryptionKey','runUrl','Main\x20job\x20was\x20terminated\x20via\x20SIGINT','SIGTERM','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','--skip-nx-cache\x20is\x20ignored\x20when\x20using\x20distributed\x20tasks\x20execution\x20(DTE).','nxCloudDistributedTasksRunner','ErrorReporterApi','../../file-storage/file-storage','See\x20run\x20details\x20at\x20','log','getRunGroup','Unable\x20to\x20complete\x20a\x20run.','../../../utilities/metric-logger','createStartRequest'];(function(_0x508478,_0x422ea2){const _0x48e5ac=function(_0x5d775a){while(--_0x5d775a){_0x508478['push'](_0x508478['shift']());}};_0x48e5ac(++_0x422ea2);}(a11_0x422e,0x1b6));const a11_0x48e5=function(_0x508478,_0x422ea2){_0x508478=_0x508478-0x0;let _0x48e5ac=a11_0x422e[_0x508478];return _0x48e5ac;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x56b720,_0x9d4598,_0x38f138,_0x389fde){function _0x367635(_0x19a31e){return _0x19a31e instanceof _0x38f138?_0x19a31e:new _0x38f138(function(_0x2e79c6){_0x2e79c6(_0x19a31e);});}return new(_0x38f138||(_0x38f138=Promise))(function(_0x4ac38c,_0x255fa2){function _0x57e2d4(_0x3dc758){try{_0x486fd8(_0x389fde[a11_0x48e5('0x13')](_0x3dc758));}catch(_0x13b3ba){_0x255fa2(_0x13b3ba);}}function _0x5a03b3(_0x3bc1c4){try{_0x486fd8(_0x389fde[a11_0x48e5('0xd')](_0x3bc1c4));}catch(_0x11e43c){_0x255fa2(_0x11e43c);}}function _0x486fd8(_0x3f8f73){_0x3f8f73[a11_0x48e5('0x9')]?_0x4ac38c(_0x3f8f73[a11_0x48e5('0x24')]):_0x367635(_0x3f8f73['value'])[a11_0x48e5('0x1d')](_0x57e2d4,_0x5a03b3);}_0x486fd8((_0x389fde=_0x389fde[a11_0x48e5('0x10')](_0x56b720,_0x9d4598||[]))[a11_0x48e5('0x13')]());});};Object[a11_0x48e5('0x22')](exports,'__esModule',{'value':!![]});exports[a11_0x48e5('0x31')]=void 0x0;const environment_1=require(a11_0x48e5('0x18'));const metric_logger_1=require(a11_0x48e5('0x38'));const error_reporter_api_1=require(a11_0x48e5('0x16'));const print_run_group_error_1=require(a11_0x48e5('0x14'));const e2e_encryption_1=require(a11_0x48e5('0x8'));const file_storage_1=require(a11_0x48e5('0x33'));const distributed_execution_api_1=require(a11_0x48e5('0x11'));const split_task_graph_into_stages_1=require('./split-task-graph-into-stages');const task_graph_creator_1=require('./task-graph-creator');const process_tasks_1=require(a11_0x48e5('0x6'));const dte_artifact_storage_1=require(a11_0x48e5('0x1c'));const {output}=require(a11_0x48e5('0x15'));class NoopLifeCycle{[a11_0x48e5('0x1a')](_0x4b4bc1){}[a11_0x48e5('0xe')](_0x16c63b){}[a11_0x48e5('0x0')](_0x3ada1e){}}const nxCloudDistributedTasksRunner=(_0x3c204b,_0x14e6ca,_0x34583a)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x14e6ca[a11_0x48e5('0x19')]){output[a11_0x48e5('0x3a')]({'title':a11_0x48e5('0x30'),'bodyLine':[a11_0x48e5('0x3')]});}if(environment_1[a11_0x48e5('0x17')]){output[a11_0x48e5('0x26')]({'title':'Starting\x20distributed\x20command\x20execution'});}_0x14e6ca[a11_0x48e5('0x20')]=new NoopLifeCycle();const _0x29be15=(0x0,environment_1[a11_0x48e5('0x28')])();const _0x35b73e=(0x0,environment_1[a11_0x48e5('0x36')])();const _0x21c9c2=(0x0,environment_1[a11_0x48e5('0x2')])();const _0x255308=(0x0,environment_1[a11_0x48e5('0x25')])();if(!(0x0,print_run_group_error_1['canDetectRunGroup'])(_0x35b73e,_0x21c9c2)){(0x0,print_run_group_error_1[a11_0x48e5('0x3c')])();process['exit'](0x1);}const _0x21b08e=new e2e_encryption_1['E2EEncryption'](environment_1['ENCRYPTION_KEY']||_0x14e6ca[a11_0x48e5('0x2b')]);const _0x27a3c5=new error_reporter_api_1[(a11_0x48e5('0x32'))](_0x14e6ca);const _0xb0d6a2=new dte_artifact_storage_1[(a11_0x48e5('0x3b'))](new file_storage_1[(a11_0x48e5('0x4'))](_0x21b08e,_0x27a3c5,_0x14e6ca,a11_0x48e5('0x1b')),(0x0,environment_1[a11_0x48e5('0xf')])(_0x14e6ca));const _0x7b75fe=new distributed_execution_api_1['DistributedExecutionApi'](_0x14e6ca);attachSignalListenersToCompleteRunGroupOnError(_0x7b75fe,_0x29be15,_0x35b73e,_0x21c9c2,_0x255308);try{const _0x409bdf=getTaskGraph(_0x34583a,_0x3c204b,_0x14e6ca);const _0x1b06dd=yield runDistributedExecution(_0x7b75fe,_0x14e6ca,_0xb0d6a2,_0x29be15,_0x35b73e,_0x21c9c2,_0x255308,_0x409bdf);if(_0x1b06dd['commandStatus']===0x0){output[a11_0x48e5('0x7')]({'title':'Successfully\x20completed\x20running\x20the\x20command.','bodyLines':['See\x20run\x20details\x20at\x20'+_0x1b06dd[a11_0x48e5('0x2c')]]});}else{output[a11_0x48e5('0x1e')]({'title':a11_0x48e5('0xa'),'bodyLines':[a11_0x48e5('0x34')+_0x1b06dd[a11_0x48e5('0x2c')]]});}yield(0x0,metric_logger_1[a11_0x48e5('0x29')])(_0x14e6ca);process[a11_0x48e5('0x3d')](_0x1b06dd[a11_0x48e5('0x5')]);}catch(_0x8ad5cf){output[a11_0x48e5('0x1e')]({'title':a11_0x48e5('0x37'),'bodyLines':[_0x8ad5cf[a11_0x48e5('0x23')]]});if(_0x8ad5cf[a11_0x48e5('0x27')]){console[a11_0x48e5('0x35')](_0x8ad5cf[a11_0x48e5('0x27')]);}else{console[a11_0x48e5('0x35')](_0x8ad5cf);}try{yield _0x7b75fe[a11_0x48e5('0x1')](_0x29be15,_0x35b73e,_0x21c9c2,_0x255308,a11_0x48e5('0x2f')+_0x8ad5cf[a11_0x48e5('0x23')]+'\x22');}finally{process[a11_0x48e5('0x3d')](0x1);}}});exports[a11_0x48e5('0x31')]=nxCloudDistributedTasksRunner;function getTaskGraph(_0x25fff3,_0x3e6c4c,_0x267a33){if(_0x25fff3[a11_0x48e5('0x12')]){return _0x25fff3[a11_0x48e5('0x12')];}else{return(0x0,task_graph_creator_1[a11_0x48e5('0x21')])(_0x267a33,_0x25fff3['projectGraph'],_0x3e6c4c);}}function attachSignalListenersToCompleteRunGroupOnError(_0x4c192a,_0xea9f84,_0x2aa79a,_0x31bc43,_0x40c202){process['on']('SIGINT',()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x4c192a[a11_0x48e5('0x1')](_0xea9f84,_0x2aa79a,_0x31bc43,_0x40c202,a11_0x48e5('0x2d'));process[a11_0x48e5('0x3d')](0x1);}));process['on'](a11_0x48e5('0x2e'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x4c192a[a11_0x48e5('0x1')](_0xea9f84,_0x2aa79a,_0x31bc43,_0x40c202,'Main\x20job\x20was\x20terminated\x20via\x20SIGTERM');process[a11_0x48e5('0x3d')](0x1);}));}function runDistributedExecution(_0x49afd5,_0x531869,_0x3f952f,_0x449c7e,_0x3c7625,_0x3f2361,_0x30e4ba,_0x398cd7){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x289248=yield _0x49afd5[a11_0x48e5('0xc')]((0x0,distributed_execution_api_1[a11_0x48e5('0x39')])(_0x449c7e,_0x3c7625,_0x3f2361,_0x30e4ba,(0x0,split_task_graph_into_stages_1[a11_0x48e5('0xb')])(_0x398cd7),_0x531869));return yield(0x0,process_tasks_1['processTasks'])(_0x49afd5,_0x3f952f,_0x289248,Object[a11_0x48e5('0x1f')](_0x398cd7[a11_0x48e5('0x2a')]));});}
const a11_0x4902=['taskGraph','Main\x20job\x20was\x20terminated\x20via\x20SIGTERM','DTE\x20needs\x20the\x20cache\x20to\x20share\x20files\x20between\x20agents.','tasks','createTaskGraphCompat','SIGTERM','./process-tasks','createStartRequest','E2EEncryption','ENCRYPTION_KEY','projectGraph','../../../utilities/metric-logger','../../../utilities/dte-artifact-storage','printRunGroupError','note','DistributedExecutionApi','Main\x20job\x20was\x20terminated\x20via\x20SIGINT','See\x20run\x20details\x20at\x20','start','getRunGroup','../../api/error-reporter.api','error','commandStatus','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','SIGINT','submitRunMetrics','values','VERBOSE_LOGGING','value','next','then','lifeCycle','endTasks','defineProperty','Successfully\x20completed\x20running\x20the\x20command.','runUrl','success','nxCloudDistributedTasksRunner','canDetectRunGroup','message','skipNxCache','getBranch','startTask','../../file-storage/e2e-encryption','encryptionKey','exit','Starting\x20distributed\x20command\x20execution','completeRunGroupWithError','throw','log','./task-graph-creator','scheduleTask','__esModule','../../../utilities/environment','__awaiter','processTasks','getCIExecutionId','ErrorReporterApi','dte-main','../../file-storage/file-storage','--skip-nx-cache\x20is\x20ignored\x20when\x20using\x20distributed\x20tasks\x20execution\x20(DTE).','getCIExecutionEnv','./split-task-graph-into-stages'];(function(_0x3c2f57,_0x4902b6){const _0x32157e=function(_0x21ce81){while(--_0x21ce81){_0x3c2f57['push'](_0x3c2f57['shift']());}};_0x32157e(++_0x4902b6);}(a11_0x4902,0x161));const a11_0x3215=function(_0x3c2f57,_0x4902b6){_0x3c2f57=_0x3c2f57-0x0;let _0x32157e=a11_0x4902[_0x3c2f57];return _0x32157e;};'use strict';var __awaiter=this&&this[a11_0x3215('0x10')]||function(_0xc64d6c,_0x441d49,_0x3102da,_0x533fa3){function _0x54beb5(_0x368320){return _0x368320 instanceof _0x3102da?_0x368320:new _0x3102da(function(_0x2be948){_0x2be948(_0x368320);});}return new(_0x3102da||(_0x3102da=Promise))(function(_0x46ed1b,_0x5d0606){function _0x2a58c7(_0xefb1b){try{_0x55485c(_0x533fa3[a11_0x3215('0x36')](_0xefb1b));}catch(_0x15f4f9){_0x5d0606(_0x15f4f9);}}function _0x2c158d(_0x85c2bf){try{_0x55485c(_0x533fa3[a11_0x3215('0xa')](_0x85c2bf));}catch(_0x1fd3f9){_0x5d0606(_0x1fd3f9);}}function _0x55485c(_0x441ee2){_0x441ee2['done']?_0x46ed1b(_0x441ee2[a11_0x3215('0x35')]):_0x54beb5(_0x441ee2[a11_0x3215('0x35')])[a11_0x3215('0x37')](_0x2a58c7,_0x2c158d);}_0x55485c((_0x533fa3=_0x533fa3['apply'](_0xc64d6c,_0x441d49||[]))['next']());});};Object[a11_0x3215('0x3a')](exports,a11_0x3215('0xe'),{'value':!![]});exports['nxCloudDistributedTasksRunner']=void 0x0;const environment_1=require(a11_0x3215('0xf'));const metric_logger_1=require(a11_0x3215('0x24'));const error_reporter_api_1=require(a11_0x3215('0x2d'));const print_run_group_error_1=require('../../error/print-run-group-error');const e2e_encryption_1=require(a11_0x3215('0x5'));const file_storage_1=require(a11_0x3215('0x15'));const distributed_execution_api_1=require('./distributed-execution.api');const split_task_graph_into_stages_1=require(a11_0x3215('0x18'));const task_graph_creator_1=require(a11_0x3215('0xc'));const process_tasks_1=require(a11_0x3215('0x1f'));const dte_artifact_storage_1=require(a11_0x3215('0x25'));const {output}=require('../../../utilities/nx-imports');class NoopLifeCycle{[a11_0x3215('0xd')](_0x56bc91){}[a11_0x3215('0x4')](_0x2476f5){}[a11_0x3215('0x39')](_0x1a648c){}}const nxCloudDistributedTasksRunner=(_0x4a2720,_0x53c4fa,_0x1cfd75)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x53c4fa[a11_0x3215('0x2')]){output['warn']({'title':a11_0x3215('0x16'),'bodyLine':[a11_0x3215('0x1b')]});}if(environment_1[a11_0x3215('0x34')]){output[a11_0x3215('0x27')]({'title':a11_0x3215('0x8')});}_0x53c4fa[a11_0x3215('0x38')]=new NoopLifeCycle();const _0xe38185=(0x0,environment_1[a11_0x3215('0x3')])();const _0x2d0f70=(0x0,environment_1[a11_0x3215('0x2c')])();const _0x1dbbee=(0x0,environment_1[a11_0x3215('0x12')])();const _0x927c8c=(0x0,environment_1[a11_0x3215('0x17')])();if(!(0x0,print_run_group_error_1[a11_0x3215('0x0')])(_0x2d0f70,_0x1dbbee)){(0x0,print_run_group_error_1[a11_0x3215('0x26')])();process[a11_0x3215('0x7')](0x1);}const _0x49dd23=new e2e_encryption_1[(a11_0x3215('0x21'))](environment_1[a11_0x3215('0x22')]||_0x53c4fa[a11_0x3215('0x6')]);const _0x4cd9fa=new error_reporter_api_1[(a11_0x3215('0x13'))](_0x53c4fa);const _0x2e5290=new dte_artifact_storage_1['DteArtifactStorage'](new file_storage_1['FileStorage'](_0x49dd23,_0x4cd9fa,_0x53c4fa,a11_0x3215('0x14')),(0x0,environment_1['getNxCacheDirectory'])(_0x53c4fa));const _0x110b7f=new distributed_execution_api_1[(a11_0x3215('0x28'))](_0x53c4fa);attachSignalListenersToCompleteRunGroupOnError(_0x110b7f,_0xe38185,_0x2d0f70,_0x1dbbee,_0x927c8c);try{const _0x368a91=getTaskGraph(_0x1cfd75,_0x4a2720,_0x53c4fa);const _0x43ce17=yield runDistributedExecution(_0x110b7f,_0x53c4fa,_0x2e5290,_0xe38185,_0x2d0f70,_0x1dbbee,_0x927c8c,_0x368a91);if(_0x43ce17[a11_0x3215('0x2f')]===0x0){output[a11_0x3215('0x3d')]({'title':a11_0x3215('0x3b'),'bodyLines':[a11_0x3215('0x2a')+_0x43ce17['runUrl']]});}else{output['error']({'title':'Command\x20execution\x20failed.','bodyLines':['See\x20run\x20details\x20at\x20'+_0x43ce17[a11_0x3215('0x3c')]]});}yield(0x0,metric_logger_1[a11_0x3215('0x32')])(_0x53c4fa);process[a11_0x3215('0x7')](_0x43ce17[a11_0x3215('0x2f')]);}catch(_0x31f54d){output[a11_0x3215('0x2e')]({'title':'Unable\x20to\x20complete\x20a\x20run.','bodyLines':[_0x31f54d[a11_0x3215('0x1')]]});if(_0x31f54d['axiosException']){console[a11_0x3215('0xb')](_0x31f54d['axiosException']);}else{console[a11_0x3215('0xb')](_0x31f54d);}try{yield _0x110b7f[a11_0x3215('0x9')](_0xe38185,_0x2d0f70,_0x1dbbee,_0x927c8c,a11_0x3215('0x30')+_0x31f54d[a11_0x3215('0x1')]+'\x22');}finally{process['exit'](0x1);}}});exports[a11_0x3215('0x3e')]=nxCloudDistributedTasksRunner;function getTaskGraph(_0x3f04e2,_0x1c006a,_0x5dc904){if(_0x3f04e2[a11_0x3215('0x19')]){return _0x3f04e2[a11_0x3215('0x19')];}else{return(0x0,task_graph_creator_1[a11_0x3215('0x1d')])(_0x5dc904,_0x3f04e2[a11_0x3215('0x23')],_0x1c006a);}}function attachSignalListenersToCompleteRunGroupOnError(_0x47f41c,_0x770b02,_0x513619,_0x5f5df1,_0x248c51){process['on'](a11_0x3215('0x31'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x47f41c[a11_0x3215('0x9')](_0x770b02,_0x513619,_0x5f5df1,_0x248c51,a11_0x3215('0x29'));process['exit'](0x1);}));process['on'](a11_0x3215('0x1e'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x47f41c['completeRunGroupWithError'](_0x770b02,_0x513619,_0x5f5df1,_0x248c51,a11_0x3215('0x1a'));process[a11_0x3215('0x7')](0x1);}));}function runDistributedExecution(_0x3743ea,_0x75cecc,_0x29680f,_0x157611,_0x482bf9,_0x5a2182,_0x455991,_0x522d98){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2c7b45=yield _0x3743ea[a11_0x3215('0x2b')]((0x0,distributed_execution_api_1[a11_0x3215('0x20')])(_0x157611,_0x482bf9,_0x5a2182,_0x455991,(0x0,split_task_graph_into_stages_1['splitTasksIntoStages'])(_0x522d98),_0x75cecc));return yield(0x0,process_tasks_1[a11_0x3215('0x11')])(_0x3743ea,_0x29680f,_0x2c7b45,Object[a11_0x3215('0x33')](_0x522d98[a11_0x3215('0x1c')]));});}

@@ -1,1 +0,1 @@

const a12_0x5a36=['project','run','value','throw','configuration','hash','../../../utilities/nx-imports','write','done','logCommand','retrieveAndExtract','apply','../../../utilities/environment','processTask','__esModule','url','stdout','join','find','serializeOverrides','next','taskId','target','defineProperty'];(function(_0x44cac1,_0x5a3683){const _0x410b98=function(_0x5cffa7){while(--_0x5cffa7){_0x44cac1['push'](_0x44cac1['shift']());}};_0x410b98(++_0x5a3683);}(a12_0x5a36,0x185));const a12_0x410b=function(_0x44cac1,_0x5a3683){_0x44cac1=_0x44cac1-0x0;let _0x410b98=a12_0x5a36[_0x44cac1];return _0x410b98;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x2f93ab,_0x4e2be8,_0x52abfa,_0x174194){function _0x3fd151(_0x5af6ef){return _0x5af6ef instanceof _0x52abfa?_0x5af6ef:new _0x52abfa(function(_0x583d62){_0x583d62(_0x5af6ef);});}return new(_0x52abfa||(_0x52abfa=Promise))(function(_0x320944,_0x2d3371){function _0x26532d(_0x15915d){try{_0x93f98f(_0x174194[a12_0x410b('0xf')](_0x15915d));}catch(_0x1f8eda){_0x2d3371(_0x1f8eda);}}function _0x31e2be(_0x5902e5){try{_0x93f98f(_0x174194[a12_0x410b('0x16')](_0x5902e5));}catch(_0x27bdfa){_0x2d3371(_0x27bdfa);}}function _0x93f98f(_0x2c439e){_0x2c439e[a12_0x410b('0x3')]?_0x320944(_0x2c439e[a12_0x410b('0x15')]):_0x3fd151(_0x2c439e[a12_0x410b('0x15')])['then'](_0x26532d,_0x31e2be);}_0x93f98f((_0x174194=_0x174194[a12_0x410b('0x6')](_0x2f93ab,_0x4e2be8||[]))[a12_0x410b('0xf')]());});};Object[a12_0x410b('0x12')](exports,a12_0x410b('0x9'),{'value':!![]});exports[a12_0x410b('0x8')]=void 0x0;const environment_1=require(a12_0x410b('0x7'));const serializer_overrides_1=require('../../../utilities/serializer-overrides');const {output}=require(a12_0x410b('0x1'));function processTask(_0x49e8c7,_0x2d3813,_0x39b7ce){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output['note']({'title':'Processing\x20task\x20'+_0x39b7ce[a12_0x410b('0x10')]});}const _0x3e9797=_0x2d3813[a12_0x410b('0xd')](_0x4d6f34=>_0x39b7ce[a12_0x410b('0x10')]===_0x4d6f34['id']);if(!_0x3e9797){throw new Error('Found\x20unknown\x20task:\x20'+_0x39b7ce[a12_0x410b('0x10')]);}const _0x277f9e=yield _0x49e8c7[a12_0x410b('0x5')](_0x39b7ce[a12_0x410b('0x0')],_0x39b7ce[a12_0x410b('0xa')]);output[a12_0x410b('0x4')](getCommand(_0x3e9797));process[a12_0x410b('0xb')][a12_0x410b('0x2')](_0x277f9e);output['addVerticalSeparator']();});}exports[a12_0x410b('0x8')]=processTask;function getCommand(_0x2272ec){const _0x32c7c8=_0x2272ec[a12_0x410b('0x11')]['configuration']?':'+_0x2272ec[a12_0x410b('0x11')][a12_0x410b('0x17')]:'';return['nx',a12_0x410b('0x14'),_0x2272ec['target'][a12_0x410b('0x13')]+':'+_0x2272ec['target'][a12_0x410b('0x11')]+_0x32c7c8,(0x0,serializer_overrides_1[a12_0x410b('0xe')])(_0x2272ec)][a12_0x410b('0xc')]('\x20');}
const a12_0x3250=['url','configuration','processTask','VERBOSE_LOGGING','logCommand','../../../utilities/nx-imports','write','__awaiter','run','next','hash','throw','then','target','done','defineProperty','apply','stdout','taskId','retrieveAndExtract','serializeOverrides','Found\x20unknown\x20task:\x20','value','addVerticalSeparator','../../../utilities/environment','../../../utilities/serializer-overrides','find'];(function(_0x40c698,_0x325002){const _0x57ec76=function(_0x25cd9e){while(--_0x25cd9e){_0x40c698['push'](_0x40c698['shift']());}};_0x57ec76(++_0x325002);}(a12_0x3250,0x74));const a12_0x57ec=function(_0x40c698,_0x325002){_0x40c698=_0x40c698-0x0;let _0x57ec76=a12_0x3250[_0x40c698];return _0x57ec76;};'use strict';var __awaiter=this&&this[a12_0x57ec('0x1a')]||function(_0x4912ba,_0x889592,_0x31141d,_0x1d3979){function _0x4a3670(_0x2fdf8e){return _0x2fdf8e instanceof _0x31141d?_0x2fdf8e:new _0x31141d(function(_0x59b04c){_0x59b04c(_0x2fdf8e);});}return new(_0x31141d||(_0x31141d=Promise))(function(_0x500bf5,_0x23d467){function _0x514ca7(_0x3e2e3f){try{_0xc48fd3(_0x1d3979[a12_0x57ec('0x1')](_0x3e2e3f));}catch(_0x53c8c9){_0x23d467(_0x53c8c9);}}function _0x2dff6b(_0x2b5d51){try{_0xc48fd3(_0x1d3979[a12_0x57ec('0x3')](_0x2b5d51));}catch(_0x29b1a9){_0x23d467(_0x29b1a9);}}function _0xc48fd3(_0x5d3b42){_0x5d3b42[a12_0x57ec('0x6')]?_0x500bf5(_0x5d3b42[a12_0x57ec('0xe')]):_0x4a3670(_0x5d3b42['value'])[a12_0x57ec('0x4')](_0x514ca7,_0x2dff6b);}_0xc48fd3((_0x1d3979=_0x1d3979[a12_0x57ec('0x8')](_0x4912ba,_0x889592||[]))[a12_0x57ec('0x1')]());});};Object[a12_0x57ec('0x7')](exports,'__esModule',{'value':!![]});exports[a12_0x57ec('0x15')]=void 0x0;const environment_1=require(a12_0x57ec('0x10'));const serializer_overrides_1=require(a12_0x57ec('0x11'));const {output}=require(a12_0x57ec('0x18'));function processTask(_0x2e99f9,_0x502aa6,_0x377e08){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a12_0x57ec('0x16')]){output['note']({'title':'Processing\x20task\x20'+_0x377e08[a12_0x57ec('0xa')]});}const _0x523bea=_0x502aa6[a12_0x57ec('0x12')](_0xa4067e=>_0x377e08['taskId']===_0xa4067e['id']);if(!_0x523bea){throw new Error(a12_0x57ec('0xd')+_0x377e08['taskId']);}const _0x3848bf=yield _0x2e99f9[a12_0x57ec('0xb')](_0x377e08[a12_0x57ec('0x2')],_0x377e08[a12_0x57ec('0x13')]);output[a12_0x57ec('0x17')](getCommand(_0x523bea));process[a12_0x57ec('0x9')][a12_0x57ec('0x19')](_0x3848bf);output[a12_0x57ec('0xf')]();});}exports['processTask']=processTask;function getCommand(_0x56f054){const _0xdb7da4=_0x56f054[a12_0x57ec('0x5')][a12_0x57ec('0x14')]?':'+_0x56f054[a12_0x57ec('0x5')]['configuration']:'';return['nx',a12_0x57ec('0x0'),_0x56f054['target']['project']+':'+_0x56f054['target'][a12_0x57ec('0x5')]+_0xdb7da4,(0x0,serializer_overrides_1[a12_0x57ec('0xc')])(_0x56f054)]['join']('\x20');}

@@ -1,1 +0,1 @@

const a13_0x1b92=['value','executionStatus:\x20','../../../utilities/environment','next','runUrl','error:\x20','./process-task','COMPLETED','Status\x20update','done','Waiter','__awaiter','executionStatus','processTask','wait','NO_COMPLETED_TASKS_TIMEOUT','Waiting...','__esModule','exit','criticalErrorMessage','note','number\x20of\x20completed\x20tasks:\x20','taskId','then','VERBOSE_LOGGING','status','defineProperty','No\x20new\x20completed\x20tasks\x20after\x20','error','processTasks','Distributed\x20Execution\x20Terminated','length','Error:','\x20seconds.','apply','../../../utilities/create-unchanged-value-timeout','completedTasks','../../../utilities/waiter'];(function(_0x3224e9,_0x1b92f6){const _0x34e02d=function(_0xfb320a){while(--_0xfb320a){_0x3224e9['push'](_0x3224e9['shift']());}};_0x34e02d(++_0x1b92f6);}(a13_0x1b92,0x136));const a13_0x34e0=function(_0x3224e9,_0x1b92f6){_0x3224e9=_0x3224e9-0x0;let _0x34e02d=a13_0x1b92[_0x3224e9];return _0x34e02d;};'use strict';var __awaiter=this&&this[a13_0x34e0('0x5')]||function(_0x29f2bd,_0x22e20f,_0x203dbc,_0x1d1bd8){function _0x2e54ed(_0x1f4025){return _0x1f4025 instanceof _0x203dbc?_0x1f4025:new _0x203dbc(function(_0x3b0349){_0x3b0349(_0x1f4025);});}return new(_0x203dbc||(_0x203dbc=Promise))(function(_0x12ed9d,_0x2cd644){function _0x59e1b4(_0x2a7365){try{_0x19cfd7(_0x1d1bd8[a13_0x34e0('0x23')](_0x2a7365));}catch(_0x3b547e){_0x2cd644(_0x3b547e);}}function _0x775390(_0x70afd3){try{_0x19cfd7(_0x1d1bd8['throw'](_0x70afd3));}catch(_0x986e6f){_0x2cd644(_0x986e6f);}}function _0x19cfd7(_0x5c5fec){_0x5c5fec[a13_0x34e0('0x3')]?_0x12ed9d(_0x5c5fec[a13_0x34e0('0x20')]):_0x2e54ed(_0x5c5fec[a13_0x34e0('0x20')])[a13_0x34e0('0x11')](_0x59e1b4,_0x775390);}_0x19cfd7((_0x1d1bd8=_0x1d1bd8[a13_0x34e0('0x1c')](_0x29f2bd,_0x22e20f||[]))['next']());});};Object[a13_0x34e0('0x14')](exports,a13_0x34e0('0xb'),{'value':!![]});exports[a13_0x34e0('0x17')]=void 0x0;const create_unchanged_value_timeout_1=require(a13_0x34e0('0x1d'));const environment_1=require(a13_0x34e0('0x22'));const waiter_1=require(a13_0x34e0('0x1f'));const process_task_1=require(a13_0x34e0('0x0'));const {output}=require('../../../utilities/nx-imports');function processTasks(_0x3d45ce,_0x51f774,_0x3d340d,_0x577619){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x354cce={};const _0x24dc30=(0x0,create_unchanged_value_timeout_1['createUnchangedValueTimeout'])({'title':a13_0x34e0('0x15')+environment_1[a13_0x34e0('0x9')]/0x3e8+a13_0x34e0('0x1b'),'timeout':environment_1[a13_0x34e0('0x9')]});const _0x2741a3=new waiter_1[(a13_0x34e0('0x4'))]();while(!![]){if(environment_1[a13_0x34e0('0x12')]){output[a13_0x34e0('0xe')]({'title':a13_0x34e0('0xa')});}yield _0x2741a3[a13_0x34e0('0x8')]();const _0x4f82f3=yield _0x3d45ce[a13_0x34e0('0x13')](_0x3d340d);if(environment_1['VERBOSE_LOGGING']){output['note']({'title':a13_0x34e0('0x2'),'bodyLines':['executionId:\x20'+_0x3d340d,a13_0x34e0('0x21')+_0x4f82f3['executionStatus'],a13_0x34e0('0xf')+_0x4f82f3[a13_0x34e0('0x1e')][a13_0x34e0('0x19')],a13_0x34e0('0x25')+_0x4f82f3['criticalErrorMessage']]});}if(_0x4f82f3[a13_0x34e0('0xd')]){output[a13_0x34e0('0x16')]({'title':a13_0x34e0('0x18'),'bodyLines':[a13_0x34e0('0x1a'),_0x4f82f3['criticalErrorMessage']]});process[a13_0x34e0('0xc')](0x1);}_0x24dc30(_0x4f82f3['completedTasks'][a13_0x34e0('0x19')]);for(const _0x98db1b of _0x4f82f3[a13_0x34e0('0x1e')]){if(_0x354cce[_0x98db1b[a13_0x34e0('0x10')]])continue;yield(0x0,process_task_1[a13_0x34e0('0x7')])(_0x51f774,_0x577619,_0x98db1b);_0x2741a3['reset']();_0x354cce[_0x98db1b[a13_0x34e0('0x10')]]=!![];}if(_0x4f82f3[a13_0x34e0('0x6')]===a13_0x34e0('0x1')){return{'commandStatus':_0x4f82f3['commandStatus'],'runUrl':_0x4f82f3[a13_0x34e0('0x24')]};}}});}exports[a13_0x34e0('0x17')]=processTasks;
const a13_0x263b=['commandStatus','error:\x20','status','note','apply','then','defineProperty','../../../utilities/nx-imports','../../../utilities/waiter','VERBOSE_LOGGING','executionId:\x20','__awaiter','criticalErrorMessage','executionStatus','reset','Waiting...','processTasks','../../../utilities/environment','NO_COMPLETED_TASKS_TIMEOUT','No\x20new\x20completed\x20tasks\x20after\x20','error','value','throw','completedTasks','taskId','\x20seconds.','done','wait','length','COMPLETED','../../../utilities/create-unchanged-value-timeout','__esModule','next','processTask','runUrl','createUnchangedValueTimeout'];(function(_0x2b05f6,_0x263b8c){const _0x172b5e=function(_0x157b31){while(--_0x157b31){_0x2b05f6['push'](_0x2b05f6['shift']());}};_0x172b5e(++_0x263b8c);}(a13_0x263b,0x118));const a13_0x172b=function(_0x2b05f6,_0x263b8c){_0x2b05f6=_0x2b05f6-0x0;let _0x172b5e=a13_0x263b[_0x2b05f6];return _0x172b5e;};'use strict';var __awaiter=this&&this[a13_0x172b('0x13')]||function(_0x3c5032,_0x2248b1,_0x3cef4f,_0x2546db){function _0x5690cf(_0x549d97){return _0x549d97 instanceof _0x3cef4f?_0x549d97:new _0x3cef4f(function(_0x144fd4){_0x144fd4(_0x549d97);});}return new(_0x3cef4f||(_0x3cef4f=Promise))(function(_0x3fba03,_0x69672c){function _0x39a600(_0x41f406){try{_0x13df15(_0x2546db['next'](_0x41f406));}catch(_0x4f342e){_0x69672c(_0x4f342e);}}function _0x499c0d(_0x271460){try{_0x13df15(_0x2546db[a13_0x172b('0x1e')](_0x271460));}catch(_0x2babf2){_0x69672c(_0x2babf2);}}function _0x13df15(_0x413e95){_0x413e95[a13_0x172b('0x22')]?_0x3fba03(_0x413e95['value']):_0x5690cf(_0x413e95[a13_0x172b('0x1d')])[a13_0x172b('0xd')](_0x39a600,_0x499c0d);}_0x13df15((_0x2546db=_0x2546db[a13_0x172b('0xc')](_0x3c5032,_0x2248b1||[]))[a13_0x172b('0x4')]());});};Object[a13_0x172b('0xe')](exports,a13_0x172b('0x3'),{'value':!![]});exports[a13_0x172b('0x18')]=void 0x0;const create_unchanged_value_timeout_1=require(a13_0x172b('0x2'));const environment_1=require(a13_0x172b('0x19'));const waiter_1=require(a13_0x172b('0x10'));const process_task_1=require('./process-task');const {output}=require(a13_0x172b('0xf'));function processTasks(_0x29a46c,_0xb26520,_0x328c99,_0x116d66){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x31ac1e={};const _0x3b6265=(0x0,create_unchanged_value_timeout_1[a13_0x172b('0x7')])({'title':a13_0x172b('0x1b')+environment_1[a13_0x172b('0x1a')]/0x3e8+a13_0x172b('0x21'),'timeout':environment_1['NO_COMPLETED_TASKS_TIMEOUT']});const _0xbef8ff=new waiter_1['Waiter']();while(!![]){if(environment_1['VERBOSE_LOGGING']){output[a13_0x172b('0xb')]({'title':a13_0x172b('0x17')});}yield _0xbef8ff[a13_0x172b('0x23')]();const _0x3ed055=yield _0x29a46c[a13_0x172b('0xa')](_0x328c99);if(environment_1[a13_0x172b('0x11')]){output[a13_0x172b('0xb')]({'title':'Status\x20update','bodyLines':[a13_0x172b('0x12')+_0x328c99,'executionStatus:\x20'+_0x3ed055[a13_0x172b('0x15')],'number\x20of\x20completed\x20tasks:\x20'+_0x3ed055[a13_0x172b('0x1f')][a13_0x172b('0x0')],a13_0x172b('0x9')+_0x3ed055[a13_0x172b('0x14')]]});}if(_0x3ed055[a13_0x172b('0x14')]){output[a13_0x172b('0x1c')]({'title':'Distributed\x20Execution\x20Terminated','bodyLines':['Error:',_0x3ed055[a13_0x172b('0x14')]]});process['exit'](0x1);}_0x3b6265(_0x3ed055['completedTasks'][a13_0x172b('0x0')]);for(const _0x4420c9 of _0x3ed055[a13_0x172b('0x1f')]){if(_0x31ac1e[_0x4420c9['taskId']])continue;yield(0x0,process_task_1[a13_0x172b('0x5')])(_0xb26520,_0x116d66,_0x4420c9);_0xbef8ff[a13_0x172b('0x16')]();_0x31ac1e[_0x4420c9[a13_0x172b('0x20')]]=!![];}if(_0x3ed055[a13_0x172b('0x15')]===a13_0x172b('0x1')){return{'commandStatus':_0x3ed055[a13_0x172b('0x8')],'runUrl':_0x3ed055[a13_0x172b('0x6')]};}}});}exports[a13_0x172b('0x18')]=processTasks;

@@ -1,1 +0,1 @@

const a14_0x8f2d=['__esModule','dependencies','push','splitTasksIntoStages','tasks','defineProperty','size','delete','has','values'];(function(_0x4bfb82,_0x8f2d33){const _0x54ad89=function(_0x189b2c){while(--_0x189b2c){_0x4bfb82['push'](_0x4bfb82['shift']());}};_0x54ad89(++_0x8f2d33);}(a14_0x8f2d,0x1a3));const a14_0x54ad=function(_0x4bfb82,_0x8f2d33){_0x4bfb82=_0x4bfb82-0x0;let _0x54ad89=a14_0x8f2d[_0x4bfb82];return _0x54ad89;};'use strict';Object[a14_0x54ad('0x6')](exports,a14_0x54ad('0x1'),{'value':!![]});exports[a14_0x54ad('0x4')]=void 0x0;function splitTasksIntoStages(_0x6d5f1){const _0x2abb39=[];const _0x4ed9cf=new Set(Object[a14_0x54ad('0x0')](_0x6d5f1[a14_0x54ad('0x5')])['map'](_0x139b1b=>_0x139b1b['id']));let _0x4e9872=0x0;while(_0x4ed9cf[a14_0x54ad('0x7')]>0x0){const _0x156c1f=_0x2abb39[_0x4e9872]=[];for(const _0x583a97 of _0x4ed9cf){let _0x22dac2=!![];for(const _0x155086 of _0x6d5f1[a14_0x54ad('0x2')][_0x583a97]){if(_0x4ed9cf[a14_0x54ad('0x9')](_0x155086)){_0x22dac2=![];break;}}if(!_0x22dac2){continue;}const _0x5f2d56=_0x6d5f1['tasks'][_0x583a97];_0x156c1f[a14_0x54ad('0x3')](_0x5f2d56);}for(const _0x143091 of _0x156c1f){_0x4ed9cf[a14_0x54ad('0x8')](_0x143091['id']);}_0x4e9872++;}return _0x2abb39;}exports[a14_0x54ad('0x4')]=splitTasksIntoStages;
const a14_0x566d=['values','push','size','splitTasksIntoStages','map','tasks'];(function(_0x11518b,_0x566dda){const _0x5cb3af=function(_0x4a9868){while(--_0x4a9868){_0x11518b['push'](_0x11518b['shift']());}};_0x5cb3af(++_0x566dda);}(a14_0x566d,0xac));const a14_0x5cb3=function(_0x11518b,_0x566dda){_0x11518b=_0x11518b-0x0;let _0x5cb3af=a14_0x566d[_0x11518b];return _0x5cb3af;};'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a14_0x5cb3('0x5')]=void 0x0;function splitTasksIntoStages(_0x3acedb){const _0x14f23f=[];const _0x2f5a53=new Set(Object[a14_0x5cb3('0x2')](_0x3acedb[a14_0x5cb3('0x1')])[a14_0x5cb3('0x0')](_0x5829f6=>_0x5829f6['id']));let _0x37396c=0x0;while(_0x2f5a53[a14_0x5cb3('0x4')]>0x0){const _0x802160=_0x14f23f[_0x37396c]=[];for(const _0x230f74 of _0x2f5a53){let _0x1ca7e1=!![];for(const _0x3ec06e of _0x3acedb['dependencies'][_0x230f74]){if(_0x2f5a53['has'](_0x3ec06e)){_0x1ca7e1=![];break;}}if(!_0x1ca7e1){continue;}const _0x44d80c=_0x3acedb[a14_0x5cb3('0x1')][_0x230f74];_0x802160[a14_0x5cb3('0x3')](_0x44d80c);}for(const _0x5c2684 of _0x802160){_0x2f5a53['delete'](_0x5c2684['id']);}_0x37396c++;}return _0x14f23f;}exports[a14_0x5cb3('0x5')]=splitTasksIntoStages;

@@ -1,1 +0,1 @@

const a15_0x10ac=['indexOf','defineProperty','roots','keys','tasks','dependencies','../../../utilities/nx-imports','self','push','findTask','add','addTaskDependencies','target','addDependencies','map','projects','targetDependencies','createTaskGraphCompat','filter','createTaskGraph','projectGraph','addTaskToGraph','defaultTargetDependencies','length','project','TaskGraphCreator','strictlyOrderedTargets'];(function(_0x2eb1c4,_0x10ac3e){const _0x130ee6=function(_0x13f17e){while(--_0x13f17e){_0x2eb1c4['push'](_0x2eb1c4['shift']());}};_0x130ee6(++_0x10ac3e);}(a15_0x10ac,0x128));const a15_0x130e=function(_0x2eb1c4,_0x10ac3e){_0x2eb1c4=_0x2eb1c4-0x0;let _0x130ee6=a15_0x10ac[_0x2eb1c4];return _0x130ee6;};'use strict';Object[a15_0x130e('0x2')](exports,'__esModule',{'value':!![]});exports['TaskGraphCreator']=exports[a15_0x130e('0x12')]=void 0x0;const stripJsonComments=require('strip-json-comments');const fs_1=require('fs');const {getDependencyConfigs,workspaceRoot}=require(a15_0x130e('0x7'));function createTaskGraphCompat(_0x4d1135,_0x1b7249,_0x1020e4){const _0x4b15a1=JSON['parse'](stripJsonComments((0x0,fs_1['readFileSync'])(workspaceRoot+'/nx.json')['toString']()));return new TaskGraphCreator(_0x1b7249,getDefaultDependencyConfigs(_0x4b15a1,_0x4d1135))['createTaskGraph'](_0x1020e4);}exports[a15_0x130e('0x12')]=createTaskGraphCompat;function getDefaultDependencyConfigs(_0x2a03b2,_0x7c7186){var _0x586dc0,_0x416736;const _0x2a9d8c=(_0x586dc0=_0x2a03b2[a15_0x130e('0x11')])!==null&&_0x586dc0!==void 0x0?_0x586dc0:{};const _0x4330a6=_0x7c7186?(_0x416736=_0x7c7186[a15_0x130e('0x0')])!==null&&_0x416736!==void 0x0?_0x416736:['build']:[];for(const _0x2dbb18 of _0x4330a6){_0x2a9d8c[_0x2dbb18]=_0x2a9d8c[_0x2dbb18]||[];_0x2a9d8c[_0x2dbb18]['push']({'target':_0x2dbb18,'projects':'dependencies'});}return _0x2a9d8c;}class TaskGraphCreator{constructor(_0x422cd3,_0x2715d4){this['projectGraph']=_0x422cd3;this[a15_0x130e('0x17')]=_0x2715d4;}[a15_0x130e('0x14')](_0xf44e6c){const _0x253e1c={'roots':[],'tasks':{},'dependencies':{}};for(const _0x355b16 of _0xf44e6c){this[a15_0x130e('0x16')](_0x355b16,_0x253e1c);const _0x2b1e23=getDependencyConfigs(_0x355b16[a15_0x130e('0xd')],this[a15_0x130e('0x17')],this[a15_0x130e('0x15')]);if(!_0x2b1e23){continue;}this[a15_0x130e('0xc')](_0x355b16,_0x2b1e23,_0xf44e6c,_0x253e1c);}_0x253e1c[a15_0x130e('0x3')]=Object[a15_0x130e('0x4')](_0x253e1c['dependencies'])[a15_0x130e('0x13')](_0x5e608d=>_0x253e1c[a15_0x130e('0x6')][_0x5e608d][a15_0x130e('0x18')]===0x0);return _0x253e1c;}[a15_0x130e('0xc')](_0x2328b8,_0x4828b8,_0x1c7792,_0x107fce){for(const _0x326bac of _0x4828b8){if(_0x326bac[a15_0x130e('0x10')]===a15_0x130e('0x8')){for(const _0xe40a5f of _0x1c7792){if(_0xe40a5f[a15_0x130e('0xd')][a15_0x130e('0x19')]===_0x2328b8['target'][a15_0x130e('0x19')]&&_0xe40a5f[a15_0x130e('0xd')][a15_0x130e('0xd')]===_0x326bac[a15_0x130e('0xd')]){_0x107fce[a15_0x130e('0x6')][_0x2328b8['id']][a15_0x130e('0x9')](_0xe40a5f['id']);}}}else if(_0x326bac[a15_0x130e('0x10')]===a15_0x130e('0x6')){const _0x364ac8=new Set();this[a15_0x130e('0xe')](_0x2328b8[a15_0x130e('0xd')][a15_0x130e('0x19')],_0x326bac[a15_0x130e('0xd')],_0x1c7792,_0x107fce,_0x2328b8['id'],_0x364ac8);}}}[a15_0x130e('0xe')](_0x5bdf64,_0x452d22,_0x47466a,_0x2bb924,_0x3585d2,_0x447deb){_0x447deb[a15_0x130e('0xb')](_0x5bdf64);const _0x4987c4=this['projectGraph']['dependencies'][_0x5bdf64];if(_0x4987c4){const _0x3ab762=_0x4987c4[a15_0x130e('0xf')](_0x493939=>_0x493939[a15_0x130e('0xd')]);for(const _0x200709 of _0x3ab762){if(_0x447deb['has'](_0x200709)){continue;}const _0x1658e8=this[a15_0x130e('0xa')]({'project':_0x200709,'target':_0x452d22},_0x47466a);if(_0x1658e8){if(_0x2bb924[a15_0x130e('0x6')][_0x3585d2][a15_0x130e('0x1')](_0x1658e8['id'])===-0x1){_0x2bb924[a15_0x130e('0x6')][_0x3585d2][a15_0x130e('0x9')](_0x1658e8['id']);}}else{this[a15_0x130e('0xe')](_0x200709,_0x452d22,_0x47466a,_0x2bb924,_0x3585d2,_0x447deb);}}}}['findTask']({project,target},_0x480a00){return _0x480a00['find'](_0x20ec3e=>_0x20ec3e[a15_0x130e('0xd')][a15_0x130e('0x19')]===project&&_0x20ec3e[a15_0x130e('0xd')]['target']===target);}[a15_0x130e('0x16')](_0x1fe2a7,_0x34e0bc){_0x34e0bc[a15_0x130e('0x5')][_0x1fe2a7['id']]=_0x1fe2a7;_0x34e0bc['dependencies'][_0x1fe2a7['id']]=[];}}exports[a15_0x130e('0x1a')]=TaskGraphCreator;
const a15_0x2521=['defaultTargetDependencies','TaskGraphCreator','findTask','keys','map','filter','strip-json-comments','indexOf','target','defineProperty','parse','projectGraph','../../../utilities/nx-imports','addTaskToGraph','project','push','self','dependencies','addDependencies','projects','__esModule','find','addTaskDependencies','has','strictlyOrderedTargets','createTaskGraph','tasks','createTaskGraphCompat','/nx.json','readFileSync','add','roots'];(function(_0x6ed1ed,_0x25211c){const _0x5d4895=function(_0x9e6dad){while(--_0x9e6dad){_0x6ed1ed['push'](_0x6ed1ed['shift']());}};_0x5d4895(++_0x25211c);}(a15_0x2521,0x81));const a15_0x5d48=function(_0x6ed1ed,_0x25211c){_0x6ed1ed=_0x6ed1ed-0x0;let _0x5d4895=a15_0x2521[_0x6ed1ed];return _0x5d4895;};'use strict';Object[a15_0x5d48('0x8')](exports,a15_0x5d48('0x13'),{'value':!![]});exports[a15_0x5d48('0x0')]=exports['createTaskGraphCompat']=void 0x0;const stripJsonComments=require(a15_0x5d48('0x5'));const fs_1=require('fs');const {getDependencyConfigs,workspaceRoot}=require(a15_0x5d48('0xb'));function createTaskGraphCompat(_0x55ad80,_0x1dfb0e,_0xe6ea6){const _0xb27e00=JSON[a15_0x5d48('0x9')](stripJsonComments((0x0,fs_1[a15_0x5d48('0x1c')])(workspaceRoot+a15_0x5d48('0x1b'))['toString']()));return new TaskGraphCreator(_0x1dfb0e,getDefaultDependencyConfigs(_0xb27e00,_0x55ad80))[a15_0x5d48('0x18')](_0xe6ea6);}exports[a15_0x5d48('0x1a')]=createTaskGraphCompat;function getDefaultDependencyConfigs(_0x15e1d2,_0x17facc){var _0x2a191d,_0x3f10ac;const _0x35bfdf=(_0x2a191d=_0x15e1d2['targetDependencies'])!==null&&_0x2a191d!==void 0x0?_0x2a191d:{};const _0xaa198=_0x17facc?(_0x3f10ac=_0x17facc[a15_0x5d48('0x17')])!==null&&_0x3f10ac!==void 0x0?_0x3f10ac:['build']:[];for(const _0x421696 of _0xaa198){_0x35bfdf[_0x421696]=_0x35bfdf[_0x421696]||[];_0x35bfdf[_0x421696][a15_0x5d48('0xe')]({'target':_0x421696,'projects':a15_0x5d48('0x10')});}return _0x35bfdf;}class TaskGraphCreator{constructor(_0x130c46,_0x269161){this[a15_0x5d48('0xa')]=_0x130c46;this['defaultTargetDependencies']=_0x269161;}[a15_0x5d48('0x18')](_0x2384ff){const _0x168db8={'roots':[],'tasks':{},'dependencies':{}};for(const _0x3f349d of _0x2384ff){this[a15_0x5d48('0xc')](_0x3f349d,_0x168db8);const _0x3b4839=getDependencyConfigs(_0x3f349d[a15_0x5d48('0x7')],this[a15_0x5d48('0x1f')],this[a15_0x5d48('0xa')]);if(!_0x3b4839){continue;}this[a15_0x5d48('0x15')](_0x3f349d,_0x3b4839,_0x2384ff,_0x168db8);}_0x168db8[a15_0x5d48('0x1e')]=Object[a15_0x5d48('0x2')](_0x168db8[a15_0x5d48('0x10')])[a15_0x5d48('0x4')](_0x4fb338=>_0x168db8[a15_0x5d48('0x10')][_0x4fb338]['length']===0x0);return _0x168db8;}['addTaskDependencies'](_0x4478cb,_0x4a436d,_0xcedde7,_0x56c690){for(const _0x1b4d33 of _0x4a436d){if(_0x1b4d33['projects']===a15_0x5d48('0xf')){for(const _0x5050e6 of _0xcedde7){if(_0x5050e6[a15_0x5d48('0x7')][a15_0x5d48('0xd')]===_0x4478cb[a15_0x5d48('0x7')][a15_0x5d48('0xd')]&&_0x5050e6[a15_0x5d48('0x7')][a15_0x5d48('0x7')]===_0x1b4d33[a15_0x5d48('0x7')]){_0x56c690['dependencies'][_0x4478cb['id']][a15_0x5d48('0xe')](_0x5050e6['id']);}}}else if(_0x1b4d33[a15_0x5d48('0x12')]==='dependencies'){const _0x4b8bb7=new Set();this[a15_0x5d48('0x11')](_0x4478cb[a15_0x5d48('0x7')]['project'],_0x1b4d33['target'],_0xcedde7,_0x56c690,_0x4478cb['id'],_0x4b8bb7);}}}['addDependencies'](_0x2b542b,_0x28f4ba,_0x1c72cc,_0x243ec0,_0x31a178,_0x4c2efa){_0x4c2efa[a15_0x5d48('0x1d')](_0x2b542b);const _0x432308=this[a15_0x5d48('0xa')][a15_0x5d48('0x10')][_0x2b542b];if(_0x432308){const _0xf36762=_0x432308[a15_0x5d48('0x3')](_0x10a589=>_0x10a589[a15_0x5d48('0x7')]);for(const _0x59306f of _0xf36762){if(_0x4c2efa[a15_0x5d48('0x16')](_0x59306f)){continue;}const _0x466221=this[a15_0x5d48('0x1')]({'project':_0x59306f,'target':_0x28f4ba},_0x1c72cc);if(_0x466221){if(_0x243ec0[a15_0x5d48('0x10')][_0x31a178][a15_0x5d48('0x6')](_0x466221['id'])===-0x1){_0x243ec0[a15_0x5d48('0x10')][_0x31a178][a15_0x5d48('0xe')](_0x466221['id']);}}else{this[a15_0x5d48('0x11')](_0x59306f,_0x28f4ba,_0x1c72cc,_0x243ec0,_0x31a178,_0x4c2efa);}}}}[a15_0x5d48('0x1')]({project,target},_0x11c229){return _0x11c229[a15_0x5d48('0x14')](_0x26955c=>_0x26955c['target'][a15_0x5d48('0xd')]===project&&_0x26955c[a15_0x5d48('0x7')]['target']===target);}['addTaskToGraph'](_0x29e093,_0x17b718){_0x17b718[a15_0x5d48('0x19')][_0x29e093['id']]=_0x29e093;_0x17b718[a15_0x5d48('0x10')][_0x29e093['id']]=[];}}exports[a15_0x5d48('0x0')]=TaskGraphCreator;

@@ -7,3 +7,3 @@ "use strict";

const path_1 = require("path");
const { workspaceRoot } = require("./nx-imports");
const { workspaceRoot } = require('./nx-imports');
function isConnectedToPrivateCloud() {

@@ -13,2 +13,4 @@ const options = readOptions();

return false;
if (options.useLatestApi)
return false;
if (options.url.endsWith('snapshot.nx.app'))

@@ -15,0 +17,0 @@ return true;

{
"name": "@nrwl/nx-cloud",
"version": "15.3.3",
"version": "15.3.4",
"description": "Nx Cloud plugin for Nx",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc