Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nx-cloud

Package Overview
Dependencies
Maintainers
2
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nx-cloud - npm Package Compare versions

Comparing version 16.0.2 to 16.0.3

2

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

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

const a0_0x2307=['defineProperty','apply','done','next','../../utilities/axios','post','ErrorReporterApi','__awaiter','throw','value','__esModule','message','axiosMultipleTries','Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27','apiAxiosInstance','then','../../utilities/nx-imports','/nx-cloud/report-client-error','reportError','createApiAxiosInstance'];(function(_0x18caed,_0x230715){const _0x362794=function(_0x39700e){while(--_0x39700e){_0x18caed['push'](_0x18caed['shift']());}};_0x362794(++_0x230715);}(a0_0x2307,0xcc));const a0_0x3627=function(_0x18caed,_0x230715){_0x18caed=_0x18caed-0x0;let _0x362794=a0_0x2307[_0x18caed];return _0x362794;};'use strict';var __awaiter=this&&this[a0_0x3627('0x3')]||function(_0x58a0a3,_0x4e49f9,_0x30cf43,_0x2d8a1e){function _0x2f25b8(_0x3c1524){return _0x3c1524 instanceof _0x30cf43?_0x3c1524:new _0x30cf43(function(_0x5cdd7b){_0x5cdd7b(_0x3c1524);});}return new(_0x30cf43||(_0x30cf43=Promise))(function(_0x434d6d,_0x57e2ea){function _0x2b7065(_0x180795){try{_0x564409(_0x2d8a1e[a0_0x3627('0x13')](_0x180795));}catch(_0x452576){_0x57e2ea(_0x452576);}}function _0x3f8527(_0x20b25b){try{_0x564409(_0x2d8a1e[a0_0x3627('0x4')](_0x20b25b));}catch(_0x388506){_0x57e2ea(_0x388506);}}function _0x564409(_0x2550af){_0x2550af[a0_0x3627('0x12')]?_0x434d6d(_0x2550af[a0_0x3627('0x5')]):_0x2f25b8(_0x2550af[a0_0x3627('0x5')])[a0_0x3627('0xb')](_0x2b7065,_0x3f8527);}_0x564409((_0x2d8a1e=_0x2d8a1e[a0_0x3627('0x11')](_0x58a0a3,_0x4e49f9||[]))[a0_0x3627('0x13')]());});};Object[a0_0x3627('0x10')](exports,a0_0x3627('0x6'),{'value':!![]});exports[a0_0x3627('0x2')]=void 0x0;const axios_1=require(a0_0x3627('0x0'));const {output}=require(a0_0x3627('0xc'));class ErrorReporterApi{constructor(_0x9ddfc5){this[a0_0x3627('0xa')]=(0x0,axios_1[a0_0x3627('0xf')])(_0x9ddfc5);}[a0_0x3627('0xe')](_0x364adc){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1[a0_0x3627('0x8')])(()=>this[a0_0x3627('0xa')][a0_0x3627('0x1')](a0_0x3627('0xd'),{'message':_0x364adc}));}catch(_0x5549ac){output['warn']({'title':a0_0x3627('0x9')+_0x364adc+'\x27','bodyLines':[_0x5549ac[a0_0x3627('0x7')]]});}});}}exports[a0_0x3627('0x2')]=ErrorReporterApi;
const a0_0x5350=['value','Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27','next','apiAxiosInstance','throw','__awaiter','ErrorReporterApi','__esModule','done','axiosMultipleTries','then','apply'];(function(_0x32647c,_0x53505e){const _0x1bf648=function(_0x19453d){while(--_0x19453d){_0x32647c['push'](_0x32647c['shift']());}};_0x1bf648(++_0x53505e);}(a0_0x5350,0x137));const a0_0x1bf6=function(_0x32647c,_0x53505e){_0x32647c=_0x32647c-0x0;let _0x1bf648=a0_0x5350[_0x32647c];return _0x1bf648;};'use strict';var __awaiter=this&&this[a0_0x1bf6('0x6')]||function(_0x4f4b84,_0x3cce52,_0x13a841,_0x5acf9b){function _0x401538(_0x1834de){return _0x1834de instanceof _0x13a841?_0x1834de:new _0x13a841(function(_0x4305c3){_0x4305c3(_0x1834de);});}return new(_0x13a841||(_0x13a841=Promise))(function(_0x42a5f2,_0x401a33){function _0x3b6c48(_0x31ce17){try{_0x59894d(_0x5acf9b['next'](_0x31ce17));}catch(_0x461963){_0x401a33(_0x461963);}}function _0xfd991d(_0x1acdf6){try{_0x59894d(_0x5acf9b[a0_0x1bf6('0x5')](_0x1acdf6));}catch(_0x4809c2){_0x401a33(_0x4809c2);}}function _0x59894d(_0x8e6f9){_0x8e6f9[a0_0x1bf6('0x9')]?_0x42a5f2(_0x8e6f9[a0_0x1bf6('0x1')]):_0x401538(_0x8e6f9[a0_0x1bf6('0x1')])[a0_0x1bf6('0xb')](_0x3b6c48,_0xfd991d);}_0x59894d((_0x5acf9b=_0x5acf9b[a0_0x1bf6('0x0')](_0x4f4b84,_0x3cce52||[]))[a0_0x1bf6('0x3')]());});};Object['defineProperty'](exports,a0_0x1bf6('0x8'),{'value':!![]});exports[a0_0x1bf6('0x7')]=void 0x0;const axios_1=require('../../utilities/axios');const {output}=require('../../utilities/nx-imports');class ErrorReporterApi{constructor(_0x557d1b){this[a0_0x1bf6('0x4')]=(0x0,axios_1['createApiAxiosInstance'])(_0x557d1b);}['reportError'](_0x2fed64){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1[a0_0x1bf6('0xa')])(()=>this[a0_0x1bf6('0x4')]['post']('/nx-cloud/report-client-error',{'message':_0x2fed64}));}catch(_0x58d2a2){output['warn']({'title':a0_0x1bf6('0x2')+_0x2fed64+'\x27','bodyLines':[_0x58d2a2['message']]});}});}}exports[a0_0x1bf6('0x7')]=ErrorReporterApi;

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

const a1_0x33eb=['completeRunGroup','/nx-cloud/executions/create-run-group','createApiAxiosInstance','axiosException','defineProperty','done','value','mapRespToPerfEntry','../../utilities/metric-logger','__awaiter','post','recordMetric','__esModule','response','next','RUNNER_FAILURE_PERF_ENTRY','RunGroupApi','axiosMultipleTries','error','/nx-cloud/executions/complete-run-group','message','then','throw','createMetricRecorder','apiAxiosInstance','exit','createRunGroup','apply'];(function(_0x1f48ee,_0x33eb28){const _0x32271d=function(_0x45cd8f){while(--_0x45cd8f){_0x1f48ee['push'](_0x1f48ee['shift']());}};_0x32271d(++_0x33eb28);}(a1_0x33eb,0xe7));const a1_0x3227=function(_0x1f48ee,_0x33eb28){_0x1f48ee=_0x1f48ee-0x0;let _0x32271d=a1_0x33eb[_0x1f48ee];return _0x32271d;};'use strict';var __awaiter=this&&this[a1_0x3227('0x2')]||function(_0x1ef540,_0x545078,_0x14d80a,_0xd9f8a3){function _0x514bc2(_0x1aad6a){return _0x1aad6a instanceof _0x14d80a?_0x1aad6a:new _0x14d80a(function(_0x2a7e28){_0x2a7e28(_0x1aad6a);});}return new(_0x14d80a||(_0x14d80a=Promise))(function(_0x287a0d,_0x4907aa){function _0x4a22cd(_0x3331bf){try{_0x498e8a(_0xd9f8a3[a1_0x3227('0x7')](_0x3331bf));}catch(_0x28bb46){_0x4907aa(_0x28bb46);}}function _0x2670b3(_0x5d09fb){try{_0x498e8a(_0xd9f8a3[a1_0x3227('0xf')](_0x5d09fb));}catch(_0x5dc3b7){_0x4907aa(_0x5dc3b7);}}function _0x498e8a(_0x5d7744){_0x5d7744[a1_0x3227('0x1a')]?_0x287a0d(_0x5d7744[a1_0x3227('0x1b')]):_0x514bc2(_0x5d7744[a1_0x3227('0x1b')])[a1_0x3227('0xe')](_0x4a22cd,_0x2670b3);}_0x498e8a((_0xd9f8a3=_0xd9f8a3[a1_0x3227('0x14')](_0x1ef540,_0x545078||[]))[a1_0x3227('0x7')]());});};Object[a1_0x3227('0x19')](exports,a1_0x3227('0x5'),{'value':!![]});exports[a1_0x3227('0x9')]=void 0x0;const axios_1=require('../../utilities/axios');const metric_logger_1=require(a1_0x3227('0x1'));const {output}=require('../../utilities/nx-imports');class RunGroupApi{constructor(_0x4b8d14){this['apiAxiosInstance']=(0x0,axios_1[a1_0x3227('0x17')])(_0x4b8d14);}[a1_0x3227('0x13')](_0x50c64f,_0x813916,_0x5296bd,_0xa11513,_0x39ea80,_0x1d2b22,_0x568644){var _0x40369d;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1323a1=(0x0,metric_logger_1[a1_0x3227('0x10')])(a1_0x3227('0x13'));try{const _0x3fc8ea=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a1_0x3227('0x11')][a1_0x3227('0x3')](a1_0x3227('0x16'),{'branch':_0x50c64f,'runGroup':_0x813916,'ciExecutionId':_0x5296bd,'ciExecutionEnv':_0xa11513,'stopAgentsOnFailure':_0x39ea80,'agentCount':_0x1d2b22,'stopAgentsAfter':_0x568644}));_0x1323a1['recordMetric']((0x0,metric_logger_1[a1_0x3227('0x0')])(_0x3fc8ea));}catch(_0x24b90a){_0x1323a1[a1_0x3227('0x4')](((_0x40369d=_0x24b90a===null||_0x24b90a===void 0x0?void 0x0:_0x24b90a[a1_0x3227('0x18')])===null||_0x40369d===void 0x0?void 0x0:_0x40369d[a1_0x3227('0x6')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x24b90a['axiosException'][a1_0x3227('0x6')]):metric_logger_1[a1_0x3227('0x8')]);output[a1_0x3227('0xb')]({'title':_0x24b90a[a1_0x3227('0xd')]});process[a1_0x3227('0x12')](0x1);}});}[a1_0x3227('0x15')](_0x15e713,_0x517990,_0x9e9bde,_0x47d2f6){var _0x5605a9;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x41fb21=(0x0,metric_logger_1['createMetricRecorder'])(a1_0x3227('0x15'));try{const _0x286859=yield(0x0,axios_1[a1_0x3227('0xa')])(()=>this[a1_0x3227('0x11')][a1_0x3227('0x3')](a1_0x3227('0xc'),{'branch':_0x15e713,'runGroup':_0x517990,'ciExecutionId':_0x9e9bde,'ciExecutionEnv':_0x47d2f6}));_0x41fb21[a1_0x3227('0x4')]((0x0,metric_logger_1[a1_0x3227('0x0')])(_0x286859));}catch(_0x25f5ed){_0x41fb21[a1_0x3227('0x4')](((_0x5605a9=_0x25f5ed===null||_0x25f5ed===void 0x0?void 0x0:_0x25f5ed[a1_0x3227('0x18')])===null||_0x5605a9===void 0x0?void 0x0:_0x5605a9['response'])?(0x0,metric_logger_1[a1_0x3227('0x0')])(_0x25f5ed[a1_0x3227('0x18')][a1_0x3227('0x6')]):metric_logger_1[a1_0x3227('0x8')]);output[a1_0x3227('0xb')]({'title':_0x25f5ed[a1_0x3227('0xd')]});process[a1_0x3227('0x12')](0x1);}});}}exports[a1_0x3227('0x9')]=RunGroupApi;
const a1_0x3cc4=['createRunGroup','createApiAxiosInstance','value','mapRespToPerfEntry','RunGroupApi','../../utilities/nx-imports','../../utilities/axios','exit','defineProperty','apiAxiosInstance','error','message','../../utilities/metric-logger','axiosException','throw','axiosMultipleTries','/nx-cloud/executions/create-run-group','completeRunGroup','post','then','response','apply','recordMetric','RUNNER_FAILURE_PERF_ENTRY','createMetricRecorder','__esModule'];(function(_0x2a53e7,_0x3cc48e){const _0x19d2ec=function(_0x5dbd52){while(--_0x5dbd52){_0x2a53e7['push'](_0x2a53e7['shift']());}};_0x19d2ec(++_0x3cc48e);}(a1_0x3cc4,0x115));const a1_0x19d2=function(_0x2a53e7,_0x3cc48e){_0x2a53e7=_0x2a53e7-0x0;let _0x19d2ec=a1_0x3cc4[_0x2a53e7];return _0x19d2ec;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x4369c5,_0x43679f,_0x2d9bdb,_0x44cf8c){function _0x2a64ab(_0x216240){return _0x216240 instanceof _0x2d9bdb?_0x216240:new _0x2d9bdb(function(_0xb478f6){_0xb478f6(_0x216240);});}return new(_0x2d9bdb||(_0x2d9bdb=Promise))(function(_0x471c03,_0x3748bd){function _0x1df7d4(_0x28aecf){try{_0x52a679(_0x44cf8c['next'](_0x28aecf));}catch(_0x17df07){_0x3748bd(_0x17df07);}}function _0x613f45(_0x398777){try{_0x52a679(_0x44cf8c[a1_0x19d2('0x17')](_0x398777));}catch(_0x4e3b24){_0x3748bd(_0x4e3b24);}}function _0x52a679(_0x264422){_0x264422['done']?_0x471c03(_0x264422[a1_0x19d2('0xb')]):_0x2a64ab(_0x264422[a1_0x19d2('0xb')])[a1_0x19d2('0x2')](_0x1df7d4,_0x613f45);}_0x52a679((_0x44cf8c=_0x44cf8c[a1_0x19d2('0x4')](_0x4369c5,_0x43679f||[]))['next']());});};Object[a1_0x19d2('0x11')](exports,a1_0x19d2('0x8'),{'value':!![]});exports[a1_0x19d2('0xd')]=void 0x0;const axios_1=require(a1_0x19d2('0xf'));const metric_logger_1=require(a1_0x19d2('0x15'));const {output}=require(a1_0x19d2('0xe'));class RunGroupApi{constructor(_0x2385b6){this[a1_0x19d2('0x12')]=(0x0,axios_1[a1_0x19d2('0xa')])(_0x2385b6);}['createRunGroup'](_0x4e511a,_0x1206a0,_0x3514f4,_0x2d8922,_0x5a4d78,_0x22e511,_0x3a3b1b){var _0x3871b1;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x551d41=(0x0,metric_logger_1[a1_0x19d2('0x7')])(a1_0x19d2('0x9'));try{const _0x272ab0=yield(0x0,axios_1[a1_0x19d2('0x18')])(()=>this['apiAxiosInstance'][a1_0x19d2('0x1')](a1_0x19d2('0x19'),{'branch':_0x4e511a,'runGroup':_0x1206a0,'ciExecutionId':_0x3514f4,'ciExecutionEnv':_0x2d8922,'stopAgentsOnFailure':_0x5a4d78,'agentCount':_0x22e511,'stopAgentsAfter':_0x3a3b1b}));_0x551d41[a1_0x19d2('0x5')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x272ab0));}catch(_0x34d470){_0x551d41['recordMetric'](((_0x3871b1=_0x34d470===null||_0x34d470===void 0x0?void 0x0:_0x34d470['axiosException'])===null||_0x3871b1===void 0x0?void 0x0:_0x3871b1[a1_0x19d2('0x3')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x34d470[a1_0x19d2('0x16')][a1_0x19d2('0x3')]):metric_logger_1[a1_0x19d2('0x6')]);output['error']({'title':_0x34d470[a1_0x19d2('0x14')]});process['exit'](0x1);}});}['completeRunGroup'](_0x42db8f,_0x46f02e,_0x5221e3,_0x4322db){var _0x2061fa;return __awaiter(this,void 0x0,void 0x0,function*(){const _0xbd2e8f=(0x0,metric_logger_1[a1_0x19d2('0x7')])(a1_0x19d2('0x0'));try{const _0x32bc46=yield(0x0,axios_1[a1_0x19d2('0x18')])(()=>this[a1_0x19d2('0x12')][a1_0x19d2('0x1')]('/nx-cloud/executions/complete-run-group',{'branch':_0x42db8f,'runGroup':_0x46f02e,'ciExecutionId':_0x5221e3,'ciExecutionEnv':_0x4322db}));_0xbd2e8f[a1_0x19d2('0x5')]((0x0,metric_logger_1[a1_0x19d2('0xc')])(_0x32bc46));}catch(_0x549c92){_0xbd2e8f[a1_0x19d2('0x5')](((_0x2061fa=_0x549c92===null||_0x549c92===void 0x0?void 0x0:_0x549c92[a1_0x19d2('0x16')])===null||_0x2061fa===void 0x0?void 0x0:_0x2061fa[a1_0x19d2('0x3')])?(0x0,metric_logger_1[a1_0x19d2('0xc')])(_0x549c92[a1_0x19d2('0x16')][a1_0x19d2('0x3')]):metric_logger_1[a1_0x19d2('0x6')]);output[a1_0x19d2('0x13')]({'title':_0x549c92[a1_0x19d2('0x14')]});process[a1_0x19d2('0x10')](0x1);}});}}exports[a1_0x19d2('0xd')]=RunGroupApi;

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

const a0_0x5487=['implicitDeps','remote-cache-hit','push','statuses','find','taskId','cacheDirectory','getTerminalOutput','params','cache','cacheStatus','__esModule','endTime','task','remote-cache','local-cache-kept-existing','terminalOutput','obfuscate','endTasks','keys','tasks','project','npm:','toISOString','startTask','cacheableOperations','nodes','scheduleTask','CloudEnabledLifeCycle','filter','runContext','../../terminal-output/read-task-terminal-output','code','forEach','Cannot\x20find\x20task\x20','readTaskTerminalOutput','hash','collectTerminalOutput','startTime','status','outputObfuscator','target','endCommand','serializeOverrides','updateStartedTask'];(function(_0x484f30,_0x5487b4){const _0x24583d=function(_0x5ad0b8){while(--_0x5ad0b8){_0x484f30['push'](_0x484f30['shift']());}};_0x24583d(++_0x5487b4);}(a0_0x5487,0x194));const a0_0x2458=function(_0x484f30,_0x5487b4){_0x484f30=_0x484f30-0x0;let _0x24583d=a0_0x5487[_0x484f30];return _0x24583d;};'use strict';Object['defineProperty'](exports,a0_0x2458('0xc'),{'value':!![]});exports[a0_0x2458('0x1d')]=void 0x0;const serializer_overrides_1=require('../../../utilities/serializer-overrides');const read_task_terminal_output_1=require(a0_0x2458('0x20'));class CloudEnabledLifeCycle{constructor(_0x1c87a8,_0x16508d,_0x27170d,_0x52e021,_0x4f82a7,_0xdec50b){this['runContext']=_0x1c87a8;this['cacheDirectory']=_0x16508d;this[a0_0x2458('0x26')]=_0x27170d;this[a0_0x2458('0x1a')]=_0x52e021;this[a0_0x2458('0x29')]=_0x4f82a7;this[a0_0x2458('0x15')]=_0xdec50b;}[a0_0x2458('0x1c')](_0x37b4df){this[a0_0x2458('0x1f')]['scheduledTasks']['push'](_0x37b4df);}[a0_0x2458('0x19')](_0xe8a973){this['tasks'][a0_0x2458('0x3')]({'taskId':_0xe8a973['id'],'startTime':new Date()[a0_0x2458('0x18')](),'target':_0xe8a973[a0_0x2458('0x2a')][a0_0x2458('0x2a')],'projectName':_0xe8a973[a0_0x2458('0x2a')][a0_0x2458('0x16')],'hash':_0xe8a973['hash'],'hashDetails':this['cleanUpHashDetails'](_0xe8a973['hashDetails']),'params':(0x0,serializer_overrides_1[a0_0x2458('0x2c')])(_0xe8a973),'uploadedToStorage':![]});}[a0_0x2458('0x13')](_0x17d803){for(let _0x3019ef of _0x17d803){let _0x1eeee3;const _0x33d6a4=_0x3019ef[a0_0x2458('0x28')]===a0_0x2458('0xf');const _0x338bb2=_0x3019ef[a0_0x2458('0x28')]===a0_0x2458('0xa');const _0x8946ed=_0x3019ef[a0_0x2458('0x28')]==='local-cache'||_0x3019ef[a0_0x2458('0x28')]===a0_0x2458('0x10')||_0x338bb2;if(this[a0_0x2458('0x1f')][a0_0x2458('0x4')][_0x3019ef[a0_0x2458('0xe')][a0_0x2458('0x25')]]){_0x1eeee3=this[a0_0x2458('0x1f')]['statuses'][_0x3019ef[a0_0x2458('0xe')]['hash']];}else if(_0x33d6a4){_0x1eeee3=a0_0x2458('0x2');}else if(_0x8946ed){_0x1eeee3='local-cache-hit';}else{_0x1eeee3='cache-miss';}this[a0_0x2458('0x0')](_0x3019ef,_0x1eeee3);}}[a0_0x2458('0x2b')](){}[a0_0x2458('0x0')](_0x1d41ab,_0x55cded){const _0x3a6266=this[a0_0x2458('0x15')][a0_0x2458('0x5')](_0x3566b9=>_0x3566b9[a0_0x2458('0x6')]===_0x1d41ab[a0_0x2458('0xe')]['id']);if(!_0x3a6266){throw new Error(a0_0x2458('0x23')+_0x1d41ab[a0_0x2458('0xe')]['id']);}if((_0x1d41ab===null||_0x1d41ab===void 0x0?void 0x0:_0x1d41ab['startTime'])&&(_0x1d41ab===null||_0x1d41ab===void 0x0?void 0x0:_0x1d41ab[a0_0x2458('0xd')])){_0x3a6266[a0_0x2458('0x27')]=new Date(_0x1d41ab['startTime'])[a0_0x2458('0x18')]();_0x3a6266[a0_0x2458('0xd')]=new Date(_0x1d41ab[a0_0x2458('0xd')])[a0_0x2458('0x18')]();}else{_0x3a6266[a0_0x2458('0xd')]=new Date()['toISOString']();}_0x3a6266['status']=_0x1d41ab[a0_0x2458('0x21')];_0x3a6266['params']=this['outputObfuscator'][a0_0x2458('0x12')](_0x3a6266[a0_0x2458('0x9')]);_0x3a6266[a0_0x2458('0xb')]=_0x55cded;if(this[a0_0x2458('0x26')]){_0x3a6266[a0_0x2458('0x11')]=this[a0_0x2458('0x8')](_0x1d41ab['task'][a0_0x2458('0x25')],_0x3a6266[a0_0x2458('0xb')],_0x1d41ab[a0_0x2458('0x21')]);}}['getTerminalOutput'](_0x5e6007,_0x4d0076,_0x30c36e){return(0x0,read_task_terminal_output_1[a0_0x2458('0x24')])(this[a0_0x2458('0x7')],this[a0_0x2458('0x29')],_0x5e6007,_0x4d0076,_0x30c36e);}['cleanUpHashDetails'](_0x5a2b94){const _0x3461bf={};Object[a0_0x2458('0x14')](_0x5a2b94[a0_0x2458('0x1b')])[a0_0x2458('0x1e')](_0x36c62f=>!_0x36c62f['startsWith'](a0_0x2458('0x17')))[a0_0x2458('0x22')](_0x2de66d=>{_0x3461bf[_0x2de66d]=_0x5a2b94['nodes'][_0x2de66d];});return{'nodes':_0x3461bf,'runtime':_0x5a2b94['runtime'],'implicitDeps':_0x5a2b94[a0_0x2458('0x1')]};}}exports[a0_0x2458('0x1d')]=CloudEnabledLifeCycle;
const a0_0x2f6b=['Cannot\x20find\x20task\x20','readTaskTerminalOutput','target','taskId','local-cache','terminalOutput','scheduleTask','cacheDirectory','toISOString','CloudEnabledLifeCycle','tasks','push','remote-cache','__esModule','statuses','local-cache-hit','obfuscate','task','updateStartedTask','find','remote-cache-hit','endCommand','serializeOverrides','keys','project','cacheStatus','endTime','startsWith','startTask','local-cache-kept-existing','hashDetails','runtime','cache','cache-miss','outputObfuscator','status','code','runContext','cleanUpHashDetails','filter','scheduledTasks','nodes','endTasks','forEach','params','cacheableOperations','startTime','getTerminalOutput','hash','defineProperty'];(function(_0x44f6ae,_0x2f6b2d){const _0x151090=function(_0x1cfcf3){while(--_0x1cfcf3){_0x44f6ae['push'](_0x44f6ae['shift']());}};_0x151090(++_0x2f6b2d);}(a0_0x2f6b,0x185));const a0_0x1510=function(_0x44f6ae,_0x2f6b2d){_0x44f6ae=_0x44f6ae-0x0;let _0x151090=a0_0x2f6b[_0x44f6ae];return _0x151090;};'use strict';Object[a0_0x1510('0xa')](exports,a0_0x1510('0x18'),{'value':!![]});exports[a0_0x1510('0x14')]=void 0x0;const serializer_overrides_1=require('../../../utilities/serializer-overrides');const read_task_terminal_output_1=require('../../terminal-output/read-task-terminal-output');class CloudEnabledLifeCycle{constructor(_0x33b928,_0x406215,_0x161992,_0x26f70d,_0x4abbef,_0x2663f0){this['runContext']=_0x33b928;this[a0_0x1510('0x12')]=_0x406215;this['collectTerminalOutput']=_0x161992;this[a0_0x1510('0x6')]=_0x26f70d;this['outputObfuscator']=_0x4abbef;this['tasks']=_0x2663f0;}[a0_0x1510('0x11')](_0x43154d){this[a0_0x1510('0x30')][a0_0x1510('0x1')][a0_0x1510('0x16')](_0x43154d);}[a0_0x1510('0x27')](_0xe02658){this[a0_0x1510('0x15')][a0_0x1510('0x16')]({'taskId':_0xe02658['id'],'startTime':new Date()[a0_0x1510('0x13')](),'target':_0xe02658[a0_0x1510('0xd')]['target'],'projectName':_0xe02658[a0_0x1510('0xd')][a0_0x1510('0x23')],'hash':_0xe02658[a0_0x1510('0x9')],'hashDetails':this[a0_0x1510('0x31')](_0xe02658[a0_0x1510('0x29')]),'params':(0x0,serializer_overrides_1[a0_0x1510('0x21')])(_0xe02658),'uploadedToStorage':![]});}[a0_0x1510('0x3')](_0x580c71){for(let _0x24641a of _0x580c71){let _0x2c804b;const _0x4a95de=_0x24641a['status']===a0_0x1510('0x17');const _0x4cd3f2=_0x24641a[a0_0x1510('0x2e')]===a0_0x1510('0x2b');const _0xd766af=_0x24641a[a0_0x1510('0x2e')]===a0_0x1510('0xf')||_0x24641a[a0_0x1510('0x2e')]===a0_0x1510('0x28')||_0x4cd3f2;if(this['runContext']['statuses'][_0x24641a[a0_0x1510('0x1c')][a0_0x1510('0x9')]]){_0x2c804b=this['runContext'][a0_0x1510('0x19')][_0x24641a[a0_0x1510('0x1c')][a0_0x1510('0x9')]];}else if(_0x4a95de){_0x2c804b=a0_0x1510('0x1f');}else if(_0xd766af){_0x2c804b=a0_0x1510('0x1a');}else{_0x2c804b=a0_0x1510('0x2c');}this[a0_0x1510('0x1d')](_0x24641a,_0x2c804b);}}[a0_0x1510('0x20')](){}[a0_0x1510('0x1d')](_0x42091e,_0x30b521){const _0x10077a=this[a0_0x1510('0x15')][a0_0x1510('0x1e')](_0x1b68d2=>_0x1b68d2[a0_0x1510('0xe')]===_0x42091e['task']['id']);if(!_0x10077a){throw new Error(a0_0x1510('0xb')+_0x42091e['task']['id']);}if((_0x42091e===null||_0x42091e===void 0x0?void 0x0:_0x42091e['startTime'])&&(_0x42091e===null||_0x42091e===void 0x0?void 0x0:_0x42091e[a0_0x1510('0x25')])){_0x10077a[a0_0x1510('0x7')]=new Date(_0x42091e['startTime'])['toISOString']();_0x10077a[a0_0x1510('0x25')]=new Date(_0x42091e[a0_0x1510('0x25')])[a0_0x1510('0x13')]();}else{_0x10077a['endTime']=new Date()[a0_0x1510('0x13')]();}_0x10077a[a0_0x1510('0x2e')]=_0x42091e[a0_0x1510('0x2f')];_0x10077a[a0_0x1510('0x5')]=this[a0_0x1510('0x2d')][a0_0x1510('0x1b')](_0x10077a[a0_0x1510('0x5')]);_0x10077a[a0_0x1510('0x24')]=_0x30b521;if(this['collectTerminalOutput']){_0x10077a[a0_0x1510('0x10')]=this['getTerminalOutput'](_0x42091e[a0_0x1510('0x1c')][a0_0x1510('0x9')],_0x10077a[a0_0x1510('0x24')],_0x42091e[a0_0x1510('0x2f')]);}}[a0_0x1510('0x8')](_0x530023,_0x38b1fc,_0x1b0e56){return(0x0,read_task_terminal_output_1[a0_0x1510('0xc')])(this[a0_0x1510('0x12')],this['outputObfuscator'],_0x530023,_0x38b1fc,_0x1b0e56);}[a0_0x1510('0x31')](_0x51b8c9){const _0x32e538={};Object[a0_0x1510('0x22')](_0x51b8c9[a0_0x1510('0x2')])[a0_0x1510('0x0')](_0x241b7d=>!_0x241b7d[a0_0x1510('0x26')]('npm:'))[a0_0x1510('0x4')](_0x13bea6=>{_0x32e538[_0x13bea6]=_0x51b8c9[a0_0x1510('0x2')][_0x13bea6];});return{'nodes':_0x32e538,'runtime':_0x51b8c9[a0_0x1510('0x2a')],'implicitDeps':_0x51b8c9['implicitDeps']};}}exports[a0_0x1510('0x14')]=CloudEnabledLifeCycle;

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

const a1_0x2a35=['Task\x20with\x20hash\x20','delayedStoreRequests','obfuscate','extractGitSha','maskedProperties','getBranch','map','.commit','getCIExecutionId','assign','next','ACCESS_TOKEN','processInBackground','writeFileSync','VERBOSE_LOGGING','MessageReporter','find','\x20isn\x27t\x20recorded','./cloud-remote-cache','endRun','agentRunningInDistributedExecution','FileStorage','CloudEnabledLifeCycle','note','join','CloudRemoteCache','getRunGroup','requests','../../terminal-output/end-of-run-message','./cloud-run.api','getCIExecutionEnv','error','local-cache-hit','daemon','submitRunMetrics','then','done','url','storedHashes','getMachineInfo','exit','../../../utilities/nx-imports','push','all','Executed\x20tasks\x20with\x20hashes:\x20','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run.','hash','filter','printCacheHitsMessage','CloudRunApi','EndOfRunMessage','./id-generator','toISOString','../../terminal-output/message-reporter','cacheableOperations','value','apply','Nx\x20Cloud\x20Problems','anyErrors','pathExists','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20store\x20artifacts.','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','subscribe','catch','../../terminal-output/output-obfuscator','toString','waitForStoreRequestsToComplete','E2EEncryption','env','accessToken','store','complete','ErrorReporterApi','forEach','cloudEnabledTasksRunner','__esModule','message','printMessages','../../file-storage/e2e-encryption','enabled','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','cloud-enabled-runner','parseCommand','skipNxCache','lifeCycle','./cloud-enabled-life-cycle','generateUniqueLinkId','../../../utilities/environment','cacheStatus','../../file-storage/file-storage'];(function(_0x2c3a21,_0x2a3515){const _0x37e247=function(_0x5c1639){while(--_0x5c1639){_0x2c3a21['push'](_0x2c3a21['shift']());}};_0x37e247(++_0x2a3515);}(a1_0x2a35,0x11d));const a1_0x37e2=function(_0x2c3a21,_0x2a3515){_0x2c3a21=_0x2c3a21-0x0;let _0x37e247=a1_0x2a35[_0x2c3a21];return _0x37e247;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x18c239,_0x298524,_0x4dc1e1,_0x45a0c1){function _0x39142a(_0x212b92){return _0x212b92 instanceof _0x4dc1e1?_0x212b92:new _0x4dc1e1(function(_0x474dd7){_0x474dd7(_0x212b92);});}return new(_0x4dc1e1||(_0x4dc1e1=Promise))(function(_0x156aff,_0x20909c){function _0x3ac765(_0x4b9c61){try{_0x5c4a99(_0x45a0c1[a1_0x37e2('0x55')](_0x4b9c61));}catch(_0x1ca81d){_0x20909c(_0x1ca81d);}}function _0x33070d(_0x1506f6){try{_0x5c4a99(_0x45a0c1['throw'](_0x1506f6));}catch(_0x374e75){_0x20909c(_0x374e75);}}function _0x5c4a99(_0x269e14){_0x269e14[a1_0x37e2('0x15')]?_0x156aff(_0x269e14[a1_0x37e2('0x28')]):_0x39142a(_0x269e14['value'])[a1_0x37e2('0x14')](_0x3ac765,_0x33070d);}_0x5c4a99((_0x45a0c1=_0x45a0c1[a1_0x37e2('0x29')](_0x18c239,_0x298524||[]))[a1_0x37e2('0x55')]());});};Object['defineProperty'](exports,a1_0x37e2('0x3c'),{'value':!![]});exports['cloudEnabledTasksRunner']=void 0x0;const message_reporter_1=require(a1_0x37e2('0x26'));const end_of_run_message_1=require(a1_0x37e2('0xd'));const output_obfuscator_1=require(a1_0x37e2('0x31'));const cloud_enabled_life_cycle_1=require(a1_0x37e2('0x46'));const file_storage_1=require(a1_0x37e2('0x4a'));const e2e_encryption_1=require(a1_0x37e2('0x3f'));const environment_1=require(a1_0x37e2('0x48'));const cloud_remote_cache_1=require(a1_0x37e2('0x3'));const cloud_run_api_1=require(a1_0x37e2('0xe'));const fs_1=require('fs');const path=require('path');const path_1=require('path');const metric_logger_1=require('../../../utilities/metric-logger');const error_reporter_api_1=require('../../api/error-reporter.api');const fs_extra_1=require('fs-extra');const id_generator_1=require(a1_0x37e2('0x24'));const remove_trailing_slash_1=require('../../../utilities/remove-trailing-slash');const {tasksRunner,output,cacheDirectory}=require(a1_0x37e2('0x1a'));function createApi(_0x459cf5,_0x1c577b,_0x33e04a){const _0x4d6cb6=(0x0,environment_1[a1_0x37e2('0x18')])(_0x1c577b);return new cloud_run_api_1[(a1_0x37e2('0x22'))](_0x459cf5,_0x33e04a,_0x1c577b,_0x4d6cb6);}function storeTaskHashes(_0x4fc8c1,_0x39cb60,_0x478741){const _0x1578f6=JSON['stringify'](_0x4fc8c1[a1_0x37e2('0x51')](_0x2f4948=>({'taskId':_0x2f4948['taskId'],'hash':_0x2f4948[a1_0x37e2('0x1f')]})));if(environment_1[a1_0x37e2('0x59')]){output[a1_0x37e2('0x8')]({'title':a1_0x37e2('0x1d')+_0x1578f6});}(0x0,fs_1[a1_0x37e2('0x58')])(path['join'](_0x39cb60,'tasks-hashes-'+_0x478741),_0x1578f6);}function storeLocalCacheHits(_0x11aade,_0x4212b1,_0x108109){const _0x43682f=_0x11aade[a1_0x37e2('0x20')](_0x4320b1=>_0x4320b1[a1_0x37e2('0x49')]===a1_0x37e2('0x11'))[a1_0x37e2('0x51')](_0x1a5f9d=>_0x1a5f9d[a1_0x37e2('0x1f')]);_0x43682f[a1_0x37e2('0x3a')](_0x48647=>_0x4212b1[a1_0x37e2('0x37')](_0x48647,_0x108109));}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 _0x110198=new Date()[a1_0x37e2('0x25')]();const _0x4156c7=(0x0,environment_1[a1_0x37e2('0x50')])();const _0xe0cf39={'command':outputObfuscator[a1_0x37e2('0x4d')]((0x0,environment_1[a1_0x37e2('0x43')])()),'startTime':runStartTime,'endTime':_0x110198,'distributedExecutionId':distributedExecutionId,'branch':_0x4156c7,'runGroup':(0x0,environment_1['getRunGroup'])(),'sha':_0x4156c7?(0x0,environment_1[a1_0x37e2('0x4e')])():undefined,'inner':inner};const _0x5d8686={'branch':_0x4156c7,'runGroup':(0x0,environment_1[a1_0x37e2('0xb')])(),'ciExecutionId':(0x0,environment_1[a1_0x37e2('0x53')])(),'ciExecutionEnv':(0x0,environment_1[a1_0x37e2('0xf')])()};if(storeInCurrentProcess){if((0x0,environment_1[a1_0x37e2('0x5')])(distributedExecutionId)){storeTaskHashes(taskExecutions,cacheDirectory,distributedExecutionId);storeLocalCacheHits(taskExecutions,remoteCache,cacheDirectory);}try{yield remoteCache[a1_0x37e2('0x33')]();}catch(_0x1e66e7){output['error']({'title':a1_0x37e2('0x2d')});messages[a1_0x37e2('0x3e')]();return![];}for(const _0x4ddc8f of fileStorage[a1_0x37e2('0x17')]){const _0x49dced=taskExecutions[a1_0x37e2('0x1')](_0x241dd6=>_0x241dd6[a1_0x37e2('0x1f')]===_0x4ddc8f);if(!_0x49dced){throw new Error(a1_0x37e2('0x4b')+_0x4ddc8f+a1_0x37e2('0x2'));}_0x49dced['uploadedToStorage']=!![];}try{yield api[a1_0x37e2('0x4')](_0xe0cf39,taskExecutions,_0x5d8686);}catch(_0x55389b){output[a1_0x37e2('0x10')]({'title':a1_0x37e2('0x1e')});messages['printMessages']();return![];}yield(0x0,metric_logger_1[a1_0x37e2('0x13')])(options);}else{try{const _0xe80f4d=environment_1[a1_0x37e2('0x56')]?environment_1[a1_0x37e2('0x56')]:options[a1_0x37e2('0x36')];const _0x1aafe0=(0x0,id_generator_1[a1_0x37e2('0x47')])();yield daemon[a1_0x37e2('0x57')]('nx-cloud/lib/daemon/process-run-end',{'encryptionKey':encryptionKey,'runnerOptions':Object['assign'](Object[a1_0x37e2('0x54')]({},options),{'accessToken':_0xe80f4d}),'delayedStoreRequests':remoteCache[a1_0x37e2('0x4c')],'ciExecutionContext':_0x5d8686,'runEnd':{'runData':_0xe0cf39,'taskExecutions':taskExecutions,'linkId':_0x1aafe0}});runContext['runUrl']=(0x0,remove_trailing_slash_1['removeTrailingSlash'])(options[a1_0x37e2('0x16')]||'https://nx.app')+'/runs/'+_0x1aafe0;}catch(_0x409ce3){output['warn']({'title':a1_0x37e2('0x2a'),'bodyLines':[_0x409ce3[a1_0x37e2('0x3d')]||_0x409ce3[a1_0x37e2('0x32')]()]});return![];}}if(versionOfNxBefore133){setTimeout(()=>{messages[a1_0x37e2('0x3e')]();if(!messages['anyErrors']&&!inner){endOfRunMessage[a1_0x37e2('0x21')]();}},0x0);}else{messages['printMessages']();if(!messages[a1_0x37e2('0x2b')]&&!inner){endOfRunMessage[a1_0x37e2('0x21')]();}}return!![];});}function createLifeCycle(_0x49f437,_0x4264c5,_0x4ef9fb,_0x20da32){const _0x34f84c=new cloud_enabled_life_cycle_1[(a1_0x37e2('0x7'))](_0x49f437,cacheDirectory,!![],_0x4264c5[a1_0x37e2('0x27')]||[],_0x4ef9fb,_0x20da32);try{const {CompositeLifeCycle}=require('../../../utilities/nx-imports');if(!CompositeLifeCycle)return _0x34f84c;return new CompositeLifeCycle([_0x4264c5[a1_0x37e2('0x45')],_0x34f84c]);}catch(_0x1d6322){return _0x34f84c;}}function fetchUrlsForKnownHashesUpfront(_0x400d9e,_0x3493bf,_0x139074,_0x5351de,_0x574b21){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x5351de[a1_0x37e2('0x44')])return;let _0xb7362=_0x139074['map'](_0x34df53=>_0x34df53[a1_0x37e2('0x1f')])[a1_0x37e2('0x20')](_0x36333d=>!!_0x36333d);const _0x4fb52e=yield Promise[a1_0x37e2('0x1c')](_0xb7362['map'](_0xf8b504=>{const _0x49bf06=(0x0,path_1[a1_0x37e2('0x9')])(cacheDirectory,_0xf8b504+a1_0x37e2('0x52'));return(0x0,fs_extra_1[a1_0x37e2('0x2c')])(_0x49bf06);}));const _0x261aee=[];for(let _0x5e5d24=0x0;_0x5e5d24<_0x4fb52e['length'];++_0x5e5d24){if(!_0x4fb52e[_0x5e5d24]){_0x261aee[a1_0x37e2('0x1b')](_0xb7362[_0x5e5d24]);}}if(_0x261aee['length']>0x0){const _0x1f337=_0x400d9e['startRun'](_0x574b21,_0x261aee);for(const _0x2233d4 of _0x261aee){_0x3493bf[a1_0x37e2('0xc')][_0x2233d4]=_0x1f337;}}});}function cloudEnabledTasksRunner(_0x587c8c,_0x4f39f4,_0x1a49fa,_0x5393d2=![]){var _0x44afcc;const _0x36ee90=process[a1_0x37e2('0x35')][a1_0x37e2('0x2e')];const _0xda24fd={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x587c8c};const _0x2f66b4=_0x4f39f4[a1_0x37e2('0x45')]===undefined;const _0x583501=[];const _0x9527c6=new message_reporter_1[(a1_0x37e2('0x0'))](_0x4f39f4);const _0xca8053=createApi(_0x9527c6,_0x4f39f4,_0xda24fd);const _0x41eb3f=new end_of_run_message_1[(a1_0x37e2('0x23'))](_0xda24fd,_0x583501,_0x36ee90);const _0xf1a04c=new output_obfuscator_1['OutputObfuscator'](_0x4f39f4[a1_0x37e2('0x4f')]);const _0x3bce3d=new Date()[a1_0x37e2('0x25')]();const _0x4998b6=createLifeCycle(_0xda24fd,_0x4f39f4,_0xf1a04c,_0x583501);const _0x1177cb=environment_1['ENCRYPTION_KEY']||_0x4f39f4['encryptionKey'];const _0x598fd8=new e2e_encryption_1[(a1_0x37e2('0x34'))](_0x1177cb);const _0xa0fc2b=new error_reporter_api_1[(a1_0x37e2('0x39'))](_0x4f39f4);const _0x52994a=(0x0,environment_1[a1_0x37e2('0x5')])(_0x36ee90)||!((_0x44afcc=_0x1a49fa[a1_0x37e2('0x12')])===null||_0x44afcc===void 0x0?void 0x0:_0x44afcc[a1_0x37e2('0x40')]());const _0x42cb78=new file_storage_1[(a1_0x37e2('0x6'))](_0x598fd8,_0xa0fc2b,_0x4f39f4,a1_0x37e2('0x42'));const _0x59ed4e=new cloud_remote_cache_1[(a1_0x37e2('0xa'))](_0x9527c6,_0xca8053,_0xda24fd,_0x42cb78,_0x36ee90,_0x52994a);fetchUrlsForKnownHashesUpfront(_0xca8053,_0xda24fd,_0x587c8c,_0x4f39f4,_0x36ee90);delete process[a1_0x37e2('0x35')]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'];const _0x439ad3=tasksRunner(_0x587c8c,Object[a1_0x37e2('0x54')](Object[a1_0x37e2('0x54')]({},_0x4f39f4),{'remoteCache':_0x59ed4e,'lifeCycle':_0x4998b6}),_0x1a49fa);if(_0x439ad3[a1_0x37e2('0x2f')]){const {Subject}=require('rxjs/internal/Subject');const _0x46c06d=new Subject();_0x439ad3[a1_0x37e2('0x2f')]({'next':_0x286122=>_0x46c06d[a1_0x37e2('0x55')](_0x286122),'error':_0x1aeeb1=>_0x46c06d[a1_0x37e2('0x10')](_0x1aeeb1),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x21bf48=yield onComplete({'daemon':_0x1a49fa[a1_0x37e2('0x12')],'options':_0x4f39f4,'fileStorage':_0x42cb78,'remoteCache':_0x59ed4e,'api':_0xca8053,'outputObfuscator':_0xf1a04c,'runStartTime':_0x3bce3d,'messages':_0x9527c6,'endOfRunMessage':_0x41eb3f,'taskExecutions':_0x583501,'versionOfNxBefore133':_0x2f66b4,'inner':_0x5393d2,'encryptionKey':_0x1177cb,'storeInCurrentProcess':_0x52994a,'runContext':_0xda24fd,'distributedExecutionId':_0x36ee90});if(!_0x21bf48&&(0x0,environment_1[a1_0x37e2('0x5')])(_0x36ee90)){process['exit'](environment_1[a1_0x37e2('0x41')]);}_0x46c06d[a1_0x37e2('0x38')]();})});return _0x46c06d;}else{return _0x439ad3[a1_0x37e2('0x14')](_0x30aced=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x7b3534=yield onComplete({'daemon':_0x1a49fa[a1_0x37e2('0x12')],'options':_0x4f39f4,'fileStorage':_0x42cb78,'remoteCache':_0x59ed4e,'api':_0xca8053,'outputObfuscator':_0xf1a04c,'runStartTime':_0x3bce3d,'messages':_0x9527c6,'endOfRunMessage':_0x41eb3f,'taskExecutions':_0x583501,'versionOfNxBefore133':_0x2f66b4,'inner':_0x5393d2,'encryptionKey':_0x1177cb,'storeInCurrentProcess':_0x52994a,'runContext':_0xda24fd,'distributedExecutionId':_0x36ee90});if(!_0x7b3534&&(0x0,environment_1[a1_0x37e2('0x5')])(_0x36ee90)){process[a1_0x37e2('0x19')](environment_1[a1_0x37e2('0x41')]);}return _0x30aced;}))[a1_0x37e2('0x30')](_0x3725be=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4d6806=yield onComplete({'daemon':_0x1a49fa[a1_0x37e2('0x12')],'options':_0x4f39f4,'fileStorage':_0x42cb78,'remoteCache':_0x59ed4e,'api':_0xca8053,'outputObfuscator':_0xf1a04c,'runStartTime':_0x3bce3d,'messages':_0x9527c6,'endOfRunMessage':_0x41eb3f,'taskExecutions':_0x583501,'versionOfNxBefore133':_0x2f66b4,'inner':_0x5393d2,'encryptionKey':_0x1177cb,'storeInCurrentProcess':_0x52994a,'runContext':_0xda24fd,'distributedExecutionId':_0x36ee90});if(!_0x4d6806&&(0x0,environment_1['agentRunningInDistributedExecution'])(_0x36ee90)){process[a1_0x37e2('0x19')](environment_1[a1_0x37e2('0x41')]);}throw _0x3725be;}));}}exports[a1_0x37e2('0x3b')]=cloudEnabledTasksRunner;
const a1_0x1f26=['submitRunMetrics','startRun','printCacheHitsMessage','../../../utilities/nx-imports','OutputObfuscator','../../api/error-reporter.api','extractGitSha','parseCommand','done','getCIExecutionEnv','./id-generator','endRun','note','getCIExecutionId','cacheableOperations','complete','find','runUrl','store','delayedStoreRequests','defineProperty','url','/runs/','https://nx.app','Nx\x20Cloud\x20Problems','nx-cloud/lib/daemon/process-run-end','waitForStoreRequestsToComplete','env','CloudRunApi','tasks-hashes-','subscribe','VERBOSE_LOGGING','FileStorage','maskedProperties','taskId','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20store\x20artifacts.','push','ErrorReporterApi','stringify','cloudEnabledTasksRunner','warn','hash','.commit','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','getMachineInfo','then','cloud-enabled-runner','processInBackground','./cloud-run.api','printMessages','path','value','../../terminal-output/end-of-run-message','daemon','length','error','map','encryptionKey','getRunGroup','MessageReporter','exit','anyErrors','./cloud-remote-cache','catch','../../../utilities/metric-logger','obfuscate','forEach','pathExists','CloudRemoteCache','next','agentRunningInDistributedExecution','storedHashes','toISOString','rxjs/internal/Subject','accessToken','ENCRYPTION_KEY','lifeCycle','join','ACCESS_TOKEN','__esModule','local-cache-hit','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run.','generateUniqueLinkId','assign','../../terminal-output/message-reporter','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','enabled','E2EEncryption','EndOfRunMessage'];(function(_0x182a37,_0x1f26e1){const _0x50dbe9=function(_0x563e5d){while(--_0x563e5d){_0x182a37['push'](_0x182a37['shift']());}};_0x50dbe9(++_0x1f26e1);}(a1_0x1f26,0xc9));const a1_0x50db=function(_0x182a37,_0x1f26e1){_0x182a37=_0x182a37-0x0;let _0x50dbe9=a1_0x1f26[_0x182a37];return _0x50dbe9;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x4d9283,_0x5a5fd4,_0x8966bf,_0x450deb){function _0x3140e8(_0x33e156){return _0x33e156 instanceof _0x8966bf?_0x33e156:new _0x8966bf(function(_0x394f87){_0x394f87(_0x33e156);});}return new(_0x8966bf||(_0x8966bf=Promise))(function(_0x577ea4,_0x2104c6){function _0x54dfd3(_0x2e642d){try{_0x307e95(_0x450deb['next'](_0x2e642d));}catch(_0x26ecf6){_0x2104c6(_0x26ecf6);}}function _0x2f74bb(_0x475c20){try{_0x307e95(_0x450deb['throw'](_0x475c20));}catch(_0x7f9342){_0x2104c6(_0x7f9342);}}function _0x307e95(_0x2d02dc){_0x2d02dc[a1_0x50db('0x4a')]?_0x577ea4(_0x2d02dc[a1_0x50db('0x1c')]):_0x3140e8(_0x2d02dc[a1_0x50db('0x1c')])['then'](_0x54dfd3,_0x2f74bb);}_0x307e95((_0x450deb=_0x450deb['apply'](_0x4d9283,_0x5a5fd4||[]))['next']());});};Object[a1_0x50db('0x56')](exports,a1_0x50db('0x38'),{'value':!![]});exports[a1_0x50db('0x10')]=void 0x0;const message_reporter_1=require(a1_0x50db('0x3d'));const end_of_run_message_1=require(a1_0x50db('0x1d'));const output_obfuscator_1=require('../../terminal-output/output-obfuscator');const cloud_enabled_life_cycle_1=require('./cloud-enabled-life-cycle');const file_storage_1=require('../../file-storage/file-storage');const e2e_encryption_1=require('../../file-storage/e2e-encryption');const environment_1=require('../../../utilities/environment');const cloud_remote_cache_1=require(a1_0x50db('0x27'));const cloud_run_api_1=require(a1_0x50db('0x19'));const fs_1=require('fs');const path=require(a1_0x50db('0x1b'));const path_1=require(a1_0x50db('0x1b'));const metric_logger_1=require(a1_0x50db('0x29'));const error_reporter_api_1=require(a1_0x50db('0x47'));const fs_extra_1=require('fs-extra');const id_generator_1=require(a1_0x50db('0x4c'));const remove_trailing_slash_1=require('../../../utilities/remove-trailing-slash');const {tasksRunner,output,cacheDirectory}=require(a1_0x50db('0x45'));function createApi(_0x218e15,_0x2fa998,_0x17bd59){const _0x84d47b=(0x0,environment_1[a1_0x50db('0x15')])(_0x2fa998);return new cloud_run_api_1[(a1_0x50db('0x5'))](_0x218e15,_0x17bd59,_0x2fa998,_0x84d47b);}function storeTaskHashes(_0x50d93d,_0x3745a8,_0x43b045){const _0x499f1c=JSON[a1_0x50db('0xf')](_0x50d93d[a1_0x50db('0x21')](_0x102cd2=>({'taskId':_0x102cd2[a1_0x50db('0xb')],'hash':_0x102cd2[a1_0x50db('0x12')]})));if(environment_1[a1_0x50db('0x8')]){output[a1_0x50db('0x4e')]({'title':'Executed\x20tasks\x20with\x20hashes:\x20'+_0x499f1c});}(0x0,fs_1['writeFileSync'])(path['join'](_0x3745a8,a1_0x50db('0x6')+_0x43b045),_0x499f1c);}function storeLocalCacheHits(_0x4e3195,_0xb46204,_0x2e6ea3){const _0x992470=_0x4e3195['filter'](_0x3c6bb2=>_0x3c6bb2['cacheStatus']===a1_0x50db('0x39'))[a1_0x50db('0x21')](_0x16af0c=>_0x16af0c['hash']);_0x992470[a1_0x50db('0x2b')](_0x1bcc2f=>_0xb46204[a1_0x50db('0x54')](_0x1bcc2f,_0x2e6ea3));}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 _0x9d1587=new Date()[a1_0x50db('0x31')]();const _0x49eb75=(0x0,environment_1['getBranch'])();const _0x440b93={'command':outputObfuscator[a1_0x50db('0x2a')]((0x0,environment_1[a1_0x50db('0x49')])()),'startTime':runStartTime,'endTime':_0x9d1587,'distributedExecutionId':distributedExecutionId,'branch':_0x49eb75,'runGroup':(0x0,environment_1[a1_0x50db('0x23')])(),'sha':_0x49eb75?(0x0,environment_1[a1_0x50db('0x48')])():undefined,'inner':inner};const _0x35f627={'branch':_0x49eb75,'runGroup':(0x0,environment_1[a1_0x50db('0x23')])(),'ciExecutionId':(0x0,environment_1[a1_0x50db('0x4f')])(),'ciExecutionEnv':(0x0,environment_1[a1_0x50db('0x4b')])()};if(storeInCurrentProcess){if((0x0,environment_1['agentRunningInDistributedExecution'])(distributedExecutionId)){storeTaskHashes(taskExecutions,cacheDirectory,distributedExecutionId);storeLocalCacheHits(taskExecutions,remoteCache,cacheDirectory);}try{yield remoteCache[a1_0x50db('0x3')]();}catch(_0x49a333){output[a1_0x50db('0x20')]({'title':a1_0x50db('0xc')});messages[a1_0x50db('0x1a')]();return![];}for(const _0x5551e6 of fileStorage[a1_0x50db('0x30')]){const _0x479f2d=taskExecutions[a1_0x50db('0x52')](_0xa23f7e=>_0xa23f7e[a1_0x50db('0x12')]===_0x5551e6);if(!_0x479f2d){throw new Error('Task\x20with\x20hash\x20'+_0x5551e6+'\x20isn\x27t\x20recorded');}_0x479f2d['uploadedToStorage']=!![];}try{yield api[a1_0x50db('0x4d')](_0x440b93,taskExecutions,_0x35f627);}catch(_0x384d8a){output[a1_0x50db('0x20')]({'title':a1_0x50db('0x3a')});messages[a1_0x50db('0x1a')]();return![];}yield(0x0,metric_logger_1[a1_0x50db('0x42')])(options);}else{try{const _0x128dc8=environment_1[a1_0x50db('0x37')]?environment_1[a1_0x50db('0x37')]:options[a1_0x50db('0x33')];const _0x549727=(0x0,id_generator_1[a1_0x50db('0x3b')])();yield daemon[a1_0x50db('0x18')](a1_0x50db('0x2'),{'encryptionKey':encryptionKey,'runnerOptions':Object[a1_0x50db('0x3c')](Object['assign']({},options),{'accessToken':_0x128dc8}),'delayedStoreRequests':remoteCache[a1_0x50db('0x55')],'ciExecutionContext':_0x35f627,'runEnd':{'runData':_0x440b93,'taskExecutions':taskExecutions,'linkId':_0x549727}});runContext[a1_0x50db('0x53')]=(0x0,remove_trailing_slash_1['removeTrailingSlash'])(options[a1_0x50db('0x57')]||a1_0x50db('0x0'))+a1_0x50db('0x58')+_0x549727;}catch(_0x35cad6){output[a1_0x50db('0x11')]({'title':a1_0x50db('0x1'),'bodyLines':[_0x35cad6['message']||_0x35cad6['toString']()]});return![];}}if(versionOfNxBefore133){setTimeout(()=>{messages[a1_0x50db('0x1a')]();if(!messages['anyErrors']&&!inner){endOfRunMessage[a1_0x50db('0x44')]();}},0x0);}else{messages[a1_0x50db('0x1a')]();if(!messages[a1_0x50db('0x26')]&&!inner){endOfRunMessage[a1_0x50db('0x44')]();}}return!![];});}function createLifeCycle(_0x31e0d4,_0x796d01,_0x3f4ec5,_0x280243){const _0x30e961=new cloud_enabled_life_cycle_1['CloudEnabledLifeCycle'](_0x31e0d4,cacheDirectory,!![],_0x796d01[a1_0x50db('0x50')]||[],_0x3f4ec5,_0x280243);try{const {CompositeLifeCycle}=require('../../../utilities/nx-imports');if(!CompositeLifeCycle)return _0x30e961;return new CompositeLifeCycle([_0x796d01[a1_0x50db('0x35')],_0x30e961]);}catch(_0x3953e7){return _0x30e961;}}function fetchUrlsForKnownHashesUpfront(_0x567037,_0x44661a,_0x5e125c,_0x2333b5,_0x23be75){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x2333b5['skipNxCache'])return;let _0x28730e=_0x5e125c['map'](_0x25af12=>_0x25af12[a1_0x50db('0x12')])['filter'](_0x3fb5ba=>!!_0x3fb5ba);const _0x5e75da=yield Promise['all'](_0x28730e[a1_0x50db('0x21')](_0x5802bf=>{const _0x25a499=(0x0,path_1[a1_0x50db('0x36')])(cacheDirectory,_0x5802bf+a1_0x50db('0x13'));return(0x0,fs_extra_1[a1_0x50db('0x2c')])(_0x25a499);}));const _0x43d36d=[];for(let _0x53603f=0x0;_0x53603f<_0x5e75da[a1_0x50db('0x1f')];++_0x53603f){if(!_0x5e75da[_0x53603f]){_0x43d36d[a1_0x50db('0xd')](_0x28730e[_0x53603f]);}}if(_0x43d36d[a1_0x50db('0x1f')]>0x0){const _0x10d543=_0x567037[a1_0x50db('0x43')](_0x23be75,_0x43d36d);for(const _0x2f6f51 of _0x43d36d){_0x44661a['requests'][_0x2f6f51]=_0x10d543;}}});}function cloudEnabledTasksRunner(_0x3cf0a3,_0x55b100,_0x536523,_0x1282eb=![]){var _0x160fc4;const _0xc71013=process[a1_0x50db('0x4')]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'];const _0x4caca8={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x3cf0a3};const _0x3e11a0=_0x55b100[a1_0x50db('0x35')]===undefined;const _0x214546=[];const _0x4bafae=new message_reporter_1[(a1_0x50db('0x24'))](_0x55b100);const _0x289cc1=createApi(_0x4bafae,_0x55b100,_0x4caca8);const _0xfe51a=new end_of_run_message_1[(a1_0x50db('0x41'))](_0x4caca8,_0x214546,_0xc71013);const _0x3c4578=new output_obfuscator_1[(a1_0x50db('0x46'))](_0x55b100[a1_0x50db('0xa')]);const _0x610666=new Date()[a1_0x50db('0x31')]();const _0x265df3=createLifeCycle(_0x4caca8,_0x55b100,_0x3c4578,_0x214546);const _0x34d9cd=environment_1[a1_0x50db('0x34')]||_0x55b100[a1_0x50db('0x22')];const _0x585439=new e2e_encryption_1[(a1_0x50db('0x40'))](_0x34d9cd);const _0x55730b=new error_reporter_api_1[(a1_0x50db('0xe'))](_0x55b100);const _0x3885b9=(0x0,environment_1[a1_0x50db('0x2f')])(_0xc71013)||!((_0x160fc4=_0x536523['daemon'])===null||_0x160fc4===void 0x0?void 0x0:_0x160fc4[a1_0x50db('0x3f')]());const _0x3c63d2=new file_storage_1[(a1_0x50db('0x9'))](_0x585439,_0x55730b,_0x55b100,a1_0x50db('0x17'));const _0x36b432=new cloud_remote_cache_1[(a1_0x50db('0x2d'))](_0x4bafae,_0x289cc1,_0x4caca8,_0x3c63d2,_0xc71013,_0x3885b9);fetchUrlsForKnownHashesUpfront(_0x289cc1,_0x4caca8,_0x3cf0a3,_0x55b100,_0xc71013);delete process[a1_0x50db('0x4')][a1_0x50db('0x14')];const _0x37be4a=tasksRunner(_0x3cf0a3,Object['assign'](Object[a1_0x50db('0x3c')]({},_0x55b100),{'remoteCache':_0x36b432,'lifeCycle':_0x265df3}),_0x536523);if(_0x37be4a[a1_0x50db('0x7')]){const {Subject}=require(a1_0x50db('0x32'));const _0xc6da43=new Subject();_0x37be4a[a1_0x50db('0x7')]({'next':_0x56502c=>_0xc6da43[a1_0x50db('0x2e')](_0x56502c),'error':_0x36cf3c=>_0xc6da43[a1_0x50db('0x20')](_0x36cf3c),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x3ca342=yield onComplete({'daemon':_0x536523[a1_0x50db('0x1e')],'options':_0x55b100,'fileStorage':_0x3c63d2,'remoteCache':_0x36b432,'api':_0x289cc1,'outputObfuscator':_0x3c4578,'runStartTime':_0x610666,'messages':_0x4bafae,'endOfRunMessage':_0xfe51a,'taskExecutions':_0x214546,'versionOfNxBefore133':_0x3e11a0,'inner':_0x1282eb,'encryptionKey':_0x34d9cd,'storeInCurrentProcess':_0x3885b9,'runContext':_0x4caca8,'distributedExecutionId':_0xc71013});if(!_0x3ca342&&(0x0,environment_1[a1_0x50db('0x2f')])(_0xc71013)){process[a1_0x50db('0x25')](environment_1[a1_0x50db('0x3e')]);}_0xc6da43[a1_0x50db('0x51')]();})});return _0xc6da43;}else{return _0x37be4a[a1_0x50db('0x16')](_0x5433dd=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4ffdfe=yield onComplete({'daemon':_0x536523[a1_0x50db('0x1e')],'options':_0x55b100,'fileStorage':_0x3c63d2,'remoteCache':_0x36b432,'api':_0x289cc1,'outputObfuscator':_0x3c4578,'runStartTime':_0x610666,'messages':_0x4bafae,'endOfRunMessage':_0xfe51a,'taskExecutions':_0x214546,'versionOfNxBefore133':_0x3e11a0,'inner':_0x1282eb,'encryptionKey':_0x34d9cd,'storeInCurrentProcess':_0x3885b9,'runContext':_0x4caca8,'distributedExecutionId':_0xc71013});if(!_0x4ffdfe&&(0x0,environment_1['agentRunningInDistributedExecution'])(_0xc71013)){process[a1_0x50db('0x25')](environment_1[a1_0x50db('0x3e')]);}return _0x5433dd;}))[a1_0x50db('0x28')](_0x5e3b29=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x2c96b7=yield onComplete({'daemon':_0x536523[a1_0x50db('0x1e')],'options':_0x55b100,'fileStorage':_0x3c63d2,'remoteCache':_0x36b432,'api':_0x289cc1,'outputObfuscator':_0x3c4578,'runStartTime':_0x610666,'messages':_0x4bafae,'endOfRunMessage':_0xfe51a,'taskExecutions':_0x214546,'versionOfNxBefore133':_0x3e11a0,'inner':_0x1282eb,'encryptionKey':_0x34d9cd,'storeInCurrentProcess':_0x3885b9,'runContext':_0x4caca8,'distributedExecutionId':_0xc71013});if(!_0x2c96b7&&(0x0,environment_1[a1_0x50db('0x2f')])(_0xc71013)){process[a1_0x50db('0x25')](environment_1[a1_0x50db('0x3e')]);}throw _0x5e3b29;}));}}exports[a1_0x50db('0x10')]=cloudEnabledTasksRunner;

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

const a2_0x15d8=['Maybe\x20you\x20are\x20using\x20a\x20read-only\x20token\x20or\x20the\x20artifact\x20has\x20already\x20being\x20uploaded.','defineProperty','__awaiter','../../../utilities/nx-imports','reduce','../../../utilities/environment','get','filter','response','push','throw','delayedStoreRequests','CloudRemoteCache','resolve','map','apply','requests','.\x20Status\x20404.','value','VERBOSE_LOGGING','store','note','runContext','then','storage','api','remote-cache-hit','status','hash','extractErrorMessage','axiosException','cacheError','fileStorage','cache-miss','distributedExecutionId','Error\x20when\x20storing\x20artifacts','retrieve','scheduledTasks','messages','statuses','There\x20are\x20several\x20reasons\x20why\x20this\x20can\x20happen.','storeRequests','hashUrls','startRun','put','Nx\x20Cloud:\x20Cache\x20miss\x20','next','Nx\x20Cloud:\x20Skipping\x20storing\x20','storeInCurrentProcess'];(function(_0x13bbd8,_0x15d8c8){const _0x10c27d=function(_0x3814bb){while(--_0x3814bb){_0x13bbd8['push'](_0x13bbd8['shift']());}};_0x10c27d(++_0x15d8c8);}(a2_0x15d8,0xb6));const a2_0x10c2=function(_0x13bbd8,_0x15d8c8){_0x13bbd8=_0x13bbd8-0x0;let _0x10c27d=a2_0x15d8[_0x13bbd8];return _0x10c27d;};'use strict';var __awaiter=this&&this[a2_0x10c2('0x10')]||function(_0x301c65,_0x36cf8e,_0x2348d4,_0x39d139){function _0x2cdf55(_0x344687){return _0x344687 instanceof _0x2348d4?_0x344687:new _0x2348d4(function(_0x21c703){_0x21c703(_0x344687);});}return new(_0x2348d4||(_0x2348d4=Promise))(function(_0x3fb980,_0x5ab230){function _0x5d2bc3(_0x31a563){try{_0x1b7a1a(_0x39d139['next'](_0x31a563));}catch(_0x5e0a5d){_0x5ab230(_0x5e0a5d);}}function _0xea4578(_0x47d779){try{_0x1b7a1a(_0x39d139[a2_0x10c2('0x18')](_0x47d779));}catch(_0xa7d335){_0x5ab230(_0xa7d335);}}function _0x1b7a1a(_0x16032d){_0x16032d['done']?_0x3fb980(_0x16032d[a2_0x10c2('0x20')]):_0x2cdf55(_0x16032d['value'])['then'](_0x5d2bc3,_0xea4578);}_0x1b7a1a((_0x39d139=_0x39d139[a2_0x10c2('0x1d')](_0x301c65,_0x36cf8e||[]))[a2_0x10c2('0xb')]());});};Object[a2_0x10c2('0xf')](exports,'__esModule',{'value':!![]});exports['CloudRemoteCache']=void 0x0;const environment_1=require(a2_0x10c2('0x13'));const {output}=require(a2_0x10c2('0x11'));class CloudRemoteCache{constructor(_0x835575,_0xf0c56f,_0xb1ce0d,_0x189444,_0x239dda,_0x2eca61){this[a2_0x10c2('0x3')]=_0x835575;this['api']=_0xf0c56f;this[a2_0x10c2('0x24')]=_0xb1ce0d;this[a2_0x10c2('0x2e')]=_0x189444;this[a2_0x10c2('0x30')]=_0x239dda;this[a2_0x10c2('0xd')]=_0x2eca61;this[a2_0x10c2('0x6')]=[];this['delayedStoreRequests']=[];}[a2_0x10c2('0x1')](_0x4bb4fc,_0x2e85d4){var _0x4df16b;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x10c2('0x3')]['cacheError'])return![];const _0x5f12bb=yield this['hashUrls'](_0x4bb4fc);if(!_0x5f12bb||!_0x5f12bb[a2_0x10c2('0x14')]){if(environment_1['VERBOSE_LOGGING']){output['note']({'title':'Nx\x20Cloud:\x20Cache\x20miss\x20'+_0x4bb4fc+'.'});}this[a2_0x10c2('0x24')][a2_0x10c2('0x4')][_0x4bb4fc]=a2_0x10c2('0x2f');return![];}try{yield this['fileStorage'][a2_0x10c2('0x1')](_0x4bb4fc,_0x5f12bb[a2_0x10c2('0x14')],_0x2e85d4);this[a2_0x10c2('0x24')][a2_0x10c2('0x4')][_0x4bb4fc]=a2_0x10c2('0x28');return!![];}catch(_0x316040){const _0x5e0fbb=(_0x4df16b=_0x316040[a2_0x10c2('0x2c')])!==null&&_0x4df16b!==void 0x0?_0x4df16b:_0x316040;if(_0x5e0fbb[a2_0x10c2('0x16')]&&_0x5e0fbb[a2_0x10c2('0x16')][a2_0x10c2('0x29')]===0x194){if(environment_1[a2_0x10c2('0x21')]){output[a2_0x10c2('0x23')]({'title':a2_0x10c2('0xa')+_0x4bb4fc+a2_0x10c2('0x1f')});}}else{this['messages'][a2_0x10c2('0x2d')]=this[a2_0x10c2('0x3')][a2_0x10c2('0x2b')](_0x5e0fbb,a2_0x10c2('0x26'));}this[a2_0x10c2('0x24')][a2_0x10c2('0x4')][_0x4bb4fc]=a2_0x10c2('0x2f');return![];}});}[a2_0x10c2('0x22')](_0xeff9aa,_0x5ee3cc){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x10c2('0x3')][a2_0x10c2('0x2d')])return![];const _0xcd16b1=Promise[a2_0x10c2('0x1b')]()[a2_0x10c2('0x25')](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x5818d9;const _0x1669f4=yield this[a2_0x10c2('0x7')](_0xeff9aa);if(!_0x1669f4)return![];if(!_0x1669f4[a2_0x10c2('0x9')]){if(environment_1[a2_0x10c2('0x21')]){output[a2_0x10c2('0x23')]({'title':a2_0x10c2('0xc')+_0xeff9aa+'.','bodyLines':[a2_0x10c2('0x5'),a2_0x10c2('0xe')]});}return!![];}if(!this['storeInCurrentProcess']){this[a2_0x10c2('0x19')][a2_0x10c2('0x17')]({'hash':_0xeff9aa,'url':_0x1669f4['put']});return!![];}try{yield this['fileStorage'][a2_0x10c2('0x22')](_0xeff9aa,_0x1669f4[a2_0x10c2('0x9')],_0x5ee3cc);return!![];}catch(_0x1cf7be){const _0x4eee82=(_0x5818d9=_0x1cf7be[a2_0x10c2('0x2c')])!==null&&_0x5818d9!==void 0x0?_0x5818d9:_0x1cf7be;this[a2_0x10c2('0x3')]['cacheError']=this[a2_0x10c2('0x3')][a2_0x10c2('0x2b')](_0x4eee82,a2_0x10c2('0x26'));return![];}}));this[a2_0x10c2('0x6')]['push'](_0xcd16b1);return _0xcd16b1;});}['hashUrls'](_0x3d424a){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x3d424a in this['runContext'][a2_0x10c2('0x1e')]){return(yield this[a2_0x10c2('0x24')][a2_0x10c2('0x1e')][_0x3d424a])[_0x3d424a];}else{const _0x56ba2d=this['runContext'][a2_0x10c2('0x2')][a2_0x10c2('0x15')](_0x47f046=>!this[a2_0x10c2('0x24')][a2_0x10c2('0x1e')][_0x47f046[a2_0x10c2('0x2a')]])[a2_0x10c2('0x1c')](_0x5bc687=>_0x5bc687[a2_0x10c2('0x2a')]);if(_0x56ba2d['indexOf'](_0x3d424a)===-0x1){_0x56ba2d['push'](_0x3d424a);}const _0x24fc57=this[a2_0x10c2('0x27')][a2_0x10c2('0x8')](this[a2_0x10c2('0x30')],_0x56ba2d);_0x56ba2d['forEach'](_0x3ee407=>{this[a2_0x10c2('0x24')][a2_0x10c2('0x1e')][_0x3ee407]=_0x24fc57;});return(yield _0x24fc57)[_0x3d424a];}});}['waitForStoreRequestsToComplete'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3219da=yield Promise['all'](this[a2_0x10c2('0x6')])['then'](_0x209c28=>_0x209c28[a2_0x10c2('0x12')]((_0x5e98a9,_0x2bb367)=>_0x5e98a9&&_0x2bb367,!![]));if(!_0x3219da){throw new Error(a2_0x10c2('0x0'));}});}}exports[a2_0x10c2('0x1a')]=CloudRemoteCache;
const a2_0x33fa=['forEach','statuses','note','filter','cache-miss','push','value','hash','api','axiosException','messages','indexOf','delayedStoreRequests','There\x20are\x20several\x20reasons\x20why\x20this\x20can\x20happen.','extractErrorMessage','CloudRemoteCache','requests','Maybe\x20you\x20are\x20using\x20a\x20read-only\x20token\x20or\x20the\x20artifact\x20has\x20already\x20being\x20uploaded.','waitForStoreRequestsToComplete','apply','response','hashUrls','put','VERBOSE_LOGGING','Nx\x20Cloud:\x20Skipping\x20storing\x20','distributedExecutionId','remote-cache-hit','next','fileStorage','storeRequests','__esModule','scheduledTasks','Error\x20when\x20storing\x20artifacts','all','defineProperty','../../../utilities/environment','get','startRun','store','storage','runContext','reduce','map','status','Nx\x20Cloud:\x20Cache\x20miss\x20','../../../utilities/nx-imports','cacheError','storeInCurrentProcess'];(function(_0x5a848a,_0x33fa1a){const _0x204660=function(_0x5aed55){while(--_0x5aed55){_0x5a848a['push'](_0x5a848a['shift']());}};_0x204660(++_0x33fa1a);}(a2_0x33fa,0x1e0));const a2_0x2046=function(_0x5a848a,_0x33fa1a){_0x5a848a=_0x5a848a-0x0;let _0x204660=a2_0x33fa[_0x5a848a];return _0x204660;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x4f349e,_0x17d554,_0xa6ffda,_0x5589e0){function _0x1f020f(_0x472b46){return _0x472b46 instanceof _0xa6ffda?_0x472b46:new _0xa6ffda(function(_0x3276b3){_0x3276b3(_0x472b46);});}return new(_0xa6ffda||(_0xa6ffda=Promise))(function(_0x2dcb82,_0x5941ea){function _0x37b7f3(_0x69e26d){try{_0x444d85(_0x5589e0['next'](_0x69e26d));}catch(_0xf107aa){_0x5941ea(_0xf107aa);}}function _0x4e06fe(_0x2f9055){try{_0x444d85(_0x5589e0['throw'](_0x2f9055));}catch(_0x577034){_0x5941ea(_0x577034);}}function _0x444d85(_0x5d69af){_0x5d69af['done']?_0x2dcb82(_0x5d69af['value']):_0x1f020f(_0x5d69af[a2_0x2046('0x6')])['then'](_0x37b7f3,_0x4e06fe);}_0x444d85((_0x5589e0=_0x5589e0[a2_0x2046('0x13')](_0x4f349e,_0x17d554||[]))[a2_0x2046('0x1b')]());});};Object[a2_0x2046('0x22')](exports,a2_0x2046('0x1e'),{'value':!![]});exports['CloudRemoteCache']=void 0x0;const environment_1=require(a2_0x2046('0x23'));const {output}=require(a2_0x2046('0x2d'));class CloudRemoteCache{constructor(_0x50e72d,_0x4ad09a,_0x5650db,_0x13722a,_0x264cd5,_0x1191dc){this[a2_0x2046('0xa')]=_0x50e72d;this[a2_0x2046('0x8')]=_0x4ad09a;this[a2_0x2046('0x28')]=_0x5650db;this[a2_0x2046('0x1c')]=_0x13722a;this[a2_0x2046('0x19')]=_0x264cd5;this[a2_0x2046('0x2f')]=_0x1191dc;this[a2_0x2046('0x1d')]=[];this[a2_0x2046('0xc')]=[];}['retrieve'](_0x225c66,_0x181b07){var _0x3c9b5e;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x2046('0xa')][a2_0x2046('0x2e')])return![];const _0x9973d8=yield this[a2_0x2046('0x15')](_0x225c66);if(!_0x9973d8||!_0x9973d8[a2_0x2046('0x24')]){if(environment_1['VERBOSE_LOGGING']){output[a2_0x2046('0x2')]({'title':a2_0x2046('0x2c')+_0x225c66+'.'});}this[a2_0x2046('0x28')][a2_0x2046('0x1')][_0x225c66]='cache-miss';return![];}try{yield this[a2_0x2046('0x1c')]['retrieve'](_0x225c66,_0x9973d8['get'],_0x181b07);this[a2_0x2046('0x28')][a2_0x2046('0x1')][_0x225c66]=a2_0x2046('0x1a');return!![];}catch(_0x399ee5){const _0x5ca40a=(_0x3c9b5e=_0x399ee5[a2_0x2046('0x9')])!==null&&_0x3c9b5e!==void 0x0?_0x3c9b5e:_0x399ee5;if(_0x5ca40a[a2_0x2046('0x14')]&&_0x5ca40a[a2_0x2046('0x14')][a2_0x2046('0x2b')]===0x194){if(environment_1[a2_0x2046('0x17')]){output[a2_0x2046('0x2')]({'title':'Nx\x20Cloud:\x20Cache\x20miss\x20'+_0x225c66+'.\x20Status\x20404.'});}}else{this[a2_0x2046('0xa')]['cacheError']=this['messages']['extractErrorMessage'](_0x5ca40a,'storage');}this['runContext'][a2_0x2046('0x1')][_0x225c66]=a2_0x2046('0x4');return![];}});}[a2_0x2046('0x26')](_0x2091d,_0x809314){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x2046('0xa')][a2_0x2046('0x2e')])return![];const _0x739342=Promise['resolve']()['then'](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x48c4b9;const _0x227d7f=yield this['hashUrls'](_0x2091d);if(!_0x227d7f)return![];if(!_0x227d7f[a2_0x2046('0x16')]){if(environment_1[a2_0x2046('0x17')]){output[a2_0x2046('0x2')]({'title':a2_0x2046('0x18')+_0x2091d+'.','bodyLines':[a2_0x2046('0xd'),a2_0x2046('0x11')]});}return!![];}if(!this[a2_0x2046('0x2f')]){this[a2_0x2046('0xc')][a2_0x2046('0x5')]({'hash':_0x2091d,'url':_0x227d7f[a2_0x2046('0x16')]});return!![];}try{yield this[a2_0x2046('0x1c')]['store'](_0x2091d,_0x227d7f[a2_0x2046('0x16')],_0x809314);return!![];}catch(_0x5548d3){const _0x5db756=(_0x48c4b9=_0x5548d3[a2_0x2046('0x9')])!==null&&_0x48c4b9!==void 0x0?_0x48c4b9:_0x5548d3;this[a2_0x2046('0xa')]['cacheError']=this['messages'][a2_0x2046('0xe')](_0x5db756,a2_0x2046('0x27'));return![];}}));this[a2_0x2046('0x1d')]['push'](_0x739342);return _0x739342;});}[a2_0x2046('0x15')](_0x5b0faf){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x5b0faf in this[a2_0x2046('0x28')][a2_0x2046('0x10')]){return(yield this[a2_0x2046('0x28')][a2_0x2046('0x10')][_0x5b0faf])[_0x5b0faf];}else{const _0x3d5947=this[a2_0x2046('0x28')][a2_0x2046('0x1f')][a2_0x2046('0x3')](_0x9f1674=>!this['runContext'][a2_0x2046('0x10')][_0x9f1674[a2_0x2046('0x7')]])[a2_0x2046('0x2a')](_0x54a9b6=>_0x54a9b6[a2_0x2046('0x7')]);if(_0x3d5947[a2_0x2046('0xb')](_0x5b0faf)===-0x1){_0x3d5947['push'](_0x5b0faf);}const _0x493790=this[a2_0x2046('0x8')][a2_0x2046('0x25')](this[a2_0x2046('0x19')],_0x3d5947);_0x3d5947[a2_0x2046('0x0')](_0x435abc=>{this['runContext'][a2_0x2046('0x10')][_0x435abc]=_0x493790;});return(yield _0x493790)[_0x5b0faf];}});}[a2_0x2046('0x12')](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4b8f6b=yield Promise[a2_0x2046('0x21')](this[a2_0x2046('0x1d')])['then'](_0x41d094=>_0x41d094[a2_0x2046('0x29')]((_0xda1bd1,_0x2ea9ae)=>_0xda1bd1&&_0x2ea9ae,!![]));if(!_0x4b8f6b){throw new Error(a2_0x2046('0x20'));}});}}exports[a2_0x2046('0xf')]=CloudRemoteCache;

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

const a3_0x4f63=['startRun','Run\x20Details:','error','package.json','util','status','Invalid\x20end\x20run\x20response','apiError','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','axiosException','../../../utilities/nx-imports','CloudRunApi','stack','Run\x20completion\x20responded\x20with\x20`undefined`.','VERBOSE_LOGGING','getCIExecutionEnv','machineInfo','printDuration','devDependencies','message','application/octet-stream','RunStart\x20duration','terminalOutput','response','stringify','runContext','apiAxiosInstance','endRun','defaults','gzip','__esModule','length','messages','apply','../../../utilities/metric-logger','from','getCIExecutionId','RUNNER_FAILURE_PERF_ENTRY','api','headers','string','RunStart','extractErrorMessage','Invalid\x20end\x20run\x20response:\x20','urls','map','runUrl','throw','../../../utilities/axios','isConnectedToPrivateCloud','getRunGroup','then','uploadedToStorage','zlib','axiosMultipleTries','data','post','/nx-cloud/runs/start','recordMetric','@nrwl/nx-cloud','note','promisify','nxCloudVersion','unknown','next','../../../utilities/environment','assign','parse','value','createMetricRecorder','createReqBody','mapRespToPerfEntry','Invalid\x20Nx\x20Cloud\x20response:\x20','success','readFileSync','slice','done'];(function(_0x5bcdb3,_0x4f63f9){const _0x996017=function(_0x58f710){while(--_0x58f710){_0x5bcdb3['push'](_0x5bcdb3['shift']());}};_0x996017(++_0x4f63f9);}(a3_0x4f63,0x1e6));const a3_0x9960=function(_0x5bcdb3,_0x4f63f9){_0x5bcdb3=_0x5bcdb3-0x0;let _0x996017=a3_0x4f63[_0x5bcdb3];return _0x996017;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x3c520f,_0x5b170a,_0x42aad1,_0x544330){function _0x2d00c2(_0x367364){return _0x367364 instanceof _0x42aad1?_0x367364:new _0x42aad1(function(_0x3aa3b0){_0x3aa3b0(_0x367364);});}return new(_0x42aad1||(_0x42aad1=Promise))(function(_0x49321f,_0x273da7){function _0x10de18(_0x15f088){try{_0x34dcba(_0x544330['next'](_0x15f088));}catch(_0xabe2de){_0x273da7(_0xabe2de);}}function _0x2da64a(_0x4df800){try{_0x34dcba(_0x544330[a3_0x9960('0x17')](_0x4df800));}catch(_0x488695){_0x273da7(_0x488695);}}function _0x34dcba(_0x5ea6fc){_0x5ea6fc[a3_0x9960('0x34')]?_0x49321f(_0x5ea6fc['value']):_0x2d00c2(_0x5ea6fc[a3_0x9960('0x2c')])[a3_0x9960('0x1b')](_0x10de18,_0x2da64a);}_0x34dcba((_0x544330=_0x544330[a3_0x9960('0x9')](_0x3c520f,_0x5b170a||[]))[a3_0x9960('0x28')]());});};Object['defineProperty'](exports,a3_0x9960('0x6'),{'value':!![]});exports[a3_0x9960('0x40')]=void 0x0;const axios_1=require(a3_0x9960('0x18'));const environment_1=require(a3_0x9960('0x29'));const fs_1=require('fs');const zlib_1=require(a3_0x9960('0x1d'));const util_1=require(a3_0x9960('0x39'));const metric_logger_1=require(a3_0x9960('0xa'));const is_private_cloud_1=require('../../../utilities/is-private-cloud');const {output}=require(a3_0x9960('0x3f'));class CloudRunApi{constructor(_0x2fab23,_0x435e55,_0x557ef0,_0x5cf797){this[a3_0x9960('0x8')]=_0x2fab23;this[a3_0x9960('0x1')]=_0x435e55;this[a3_0x9960('0x45')]=_0x5cf797;this[a3_0x9960('0x2')]=(0x0,axios_1['createApiAxiosInstance'])(_0x557ef0);}['startRun'](_0xf745f7,_0xb9cfd9){var _0x4ced15;return __awaiter(this,void 0x0,void 0x0,function*(){if(this['messages'][a3_0x9960('0x3c')])return{};const _0x2a66b3=(0x0,metric_logger_1[a3_0x9960('0x2d')])(a3_0x9960('0x35'));try{const _0x570ba1={'meta':{'nxCloudVersion':this['nxCloudVersion']()},'branch':(0x0,environment_1['getBranch'])(),'runGroup':(0x0,environment_1[a3_0x9960('0x1a')])(),'ciExecutionId':(0x0,environment_1[a3_0x9960('0xc')])(),'ciExecutionEnv':(0x0,environment_1[a3_0x9960('0x44')])(),'distributedExecutionId':_0xf745f7,'hashes':_0xb9cfd9};if(environment_1[a3_0x9960('0x43')]){output[a3_0x9960('0x24')]({'title':a3_0x9960('0x11'),'bodyLines':['\x0a'+JSON[a3_0x9960('0x0')](_0x570ba1,null,0x2)]});}const _0x5e8b5d=yield(0x0,axios_1[a3_0x9960('0x46')])(a3_0x9960('0x4a'),()=>(0x0,axios_1[a3_0x9960('0x1e')])(()=>this['apiAxiosInstance']['post'](a3_0x9960('0x21'),_0x570ba1)));_0x2a66b3[a3_0x9960('0x22')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x5e8b5d));if(_0x5e8b5d['data']&&_0x5e8b5d[a3_0x9960('0x1f')]['message']){this[a3_0x9960('0x8')][a3_0x9960('0x48')]=_0x5e8b5d[a3_0x9960('0x1f')][a3_0x9960('0x48')];}if(!_0x5e8b5d['data']||!_0x5e8b5d[a3_0x9960('0x1f')][a3_0x9960('0x14')]){this['messages'][a3_0x9960('0x3c')]=a3_0x9960('0x30')+JSON['stringify'](_0x5e8b5d['data']);return{};}return _0x5e8b5d[a3_0x9960('0x1f')][a3_0x9960('0x14')];}catch(_0x1992bc){_0x2a66b3[a3_0x9960('0x22')](((_0x4ced15=_0x1992bc===null||_0x1992bc===void 0x0?void 0x0:_0x1992bc[a3_0x9960('0x3e')])===null||_0x4ced15===void 0x0?void 0x0:_0x4ced15[a3_0x9960('0x4c')])?(0x0,metric_logger_1[a3_0x9960('0x2f')])(_0x1992bc['axiosException'][a3_0x9960('0x4c')]):metric_logger_1[a3_0x9960('0xd')]);this['messages'][a3_0x9960('0x3c')]=this[a3_0x9960('0x8')][a3_0x9960('0x12')](_0x1992bc,'api');return{};}});}[a3_0x9960('0x2e')](_0x35a4af,_0x220ed7,_0x4c1425,_0x2d37b7){if((0x0,is_private_cloud_1[a3_0x9960('0x19')])()){for(let _0x771e08 of _0x220ed7){delete _0x771e08[a3_0x9960('0x1c')];}}const _0xe506a3=Object[a3_0x9960('0x2a')](Object[a3_0x9960('0x2a')]({'meta':{'nxCloudVersion':this[a3_0x9960('0x26')]()},'tasks':_0x220ed7,'run':_0x35a4af,'linkId':_0x2d37b7},(0x0,is_private_cloud_1[a3_0x9960('0x19')])()?{}:_0x4c1425),{'machineInfo':this['machineInfo']});return JSON['stringify'](_0xe506a3);}['endRun'](_0x507661,_0x13f54f,_0x5aecc4,_0x1cf8da){var _0x362dd8,_0xdacc3c;return __awaiter(this,void 0x0,void 0x0,function*(){if(this['messages'][a3_0x9960('0x3c')])return![];let _0x31655a=this[a3_0x9960('0x2e')](_0x507661,_0x13f54f,_0x5aecc4,_0x1cf8da);if(_0x31655a[a3_0x9960('0x7')]>0x14*0x3e8*0x3e8){_0x31655a=this['createReqBody'](_0x507661,_0x13f54f[a3_0x9960('0x15')](_0x221476=>Object[a3_0x9960('0x2a')](Object[a3_0x9960('0x2a')]({},_0x221476),{'hashDetails':undefined})),_0x5aecc4,_0x1cf8da);}const _0xb8bf5a=Buffer[a3_0x9960('0xb')](_0x31655a);const _0x49bffe=yield(0x0,util_1[a3_0x9960('0x25')])(zlib_1['gzip'])(_0xb8bf5a);const _0x3baa15=(0x0,metric_logger_1[a3_0x9960('0x2d')])(a3_0x9960('0x3'));try{if(environment_1[a3_0x9960('0x43')]){const _0x5ba65f=_0x13f54f['map'](_0x51126b=>{return Object[a3_0x9960('0x2a')](Object['assign']({},_0x51126b),{'terminalOutput':_0x51126b[a3_0x9960('0x4b')]?_0x51126b[a3_0x9960('0x4b')][a3_0x9960('0x33')](0x0,0x14)+'...':undefined});});output[a3_0x9960('0x24')]({'title':'RunEnd.\x20Completed\x20tasks','bodyLines':['\x0a'+JSON[a3_0x9960('0x0')](_0x5ba65f,null,0x2)]});}const _0x4c6865=yield(0x0,axios_1[a3_0x9960('0x46')])('RunEnd\x20duration',()=>(0x0,axios_1['axiosMultipleTries'])(()=>this[a3_0x9960('0x2')][a3_0x9960('0x20')]('/nx-cloud/runs/end',_0x49bffe,{'headers':Object[a3_0x9960('0x2a')](Object[a3_0x9960('0x2a')]({},this['apiAxiosInstance'][a3_0x9960('0x4')][a3_0x9960('0xf')]),{'Content-Encoding':a3_0x9960('0x5'),'Content-Type':a3_0x9960('0x49')})})));if(_0x4c6865){_0x3baa15[a3_0x9960('0x22')]((0x0,metric_logger_1[a3_0x9960('0x2f')])(_0x4c6865));if(_0x4c6865[a3_0x9960('0x1f')]&&_0x4c6865[a3_0x9960('0x1f')][a3_0x9960('0x16')]&&_0x4c6865[a3_0x9960('0x1f')][a3_0x9960('0x3a')]===a3_0x9960('0x31')){this[a3_0x9960('0x1')]['runUrl']=_0x4c6865[a3_0x9960('0x1f')]['runUrl'];return!![];}if(_0x4c6865['data']&&_0x4c6865['data'][a3_0x9960('0x3a')]){this[a3_0x9960('0x8')][a3_0x9960('0x3c')]=a3_0x9960('0x13')+JSON[a3_0x9960('0x0')](_0x4c6865[a3_0x9960('0x1f')][a3_0x9960('0x48')]);}else if(_0x4c6865[a3_0x9960('0x1f')]&&typeof _0x4c6865['data']===a3_0x9960('0x10')){if(_0x4c6865[a3_0x9960('0x1f')]!==a3_0x9960('0x31')){this[a3_0x9960('0x8')][a3_0x9960('0x3c')]=a3_0x9960('0x13')+JSON[a3_0x9960('0x0')](_0x4c6865[a3_0x9960('0x1f')]);}}else{this[a3_0x9960('0x8')][a3_0x9960('0x3c')]=a3_0x9960('0x13')+JSON[a3_0x9960('0x0')](_0x4c6865[a3_0x9960('0x1f')]);}if(environment_1[a3_0x9960('0x43')]){output[a3_0x9960('0x24')]({'title':a3_0x9960('0x3b'),'bodyLines':[JSON[a3_0x9960('0x0')](_0x4c6865[a3_0x9960('0x1f')],null,0x2)]});}}else{output[a3_0x9960('0x37')]({'title':a3_0x9960('0x3d'),'bodyLines':[a3_0x9960('0x42'),a3_0x9960('0x36'),JSON['stringify'](_0x507661,null,0x2),'Stack\x20Trace:',JSON[a3_0x9960('0x0')](new Error()[a3_0x9960('0x41')],null,0x2)]});}return![];}catch(_0x2c170f){_0x3baa15['recordMetric'](((_0x362dd8=_0x2c170f===null||_0x2c170f===void 0x0?void 0x0:_0x2c170f[a3_0x9960('0x3e')])===null||_0x362dd8===void 0x0?void 0x0:_0x362dd8['response'])?(0x0,metric_logger_1[a3_0x9960('0x2f')])(_0x2c170f[a3_0x9960('0x3e')][a3_0x9960('0x4c')]):metric_logger_1[a3_0x9960('0xd')]);const _0x34b535=(_0xdacc3c=_0x2c170f[a3_0x9960('0x3e')])!==null&&_0xdacc3c!==void 0x0?_0xdacc3c:_0x2c170f;this['messages'][a3_0x9960('0x3c')]=this['messages'][a3_0x9960('0x12')](_0x34b535,a3_0x9960('0xe'));return![];}});}[a3_0x9960('0x26')](){try{const _0x44f4f8=JSON[a3_0x9960('0x2b')]((0x0,fs_1[a3_0x9960('0x32')])(a3_0x9960('0x38'))['toString']());return _0x44f4f8[a3_0x9960('0x47')]['nx-cloud']||_0x44f4f8['devDependencies'][a3_0x9960('0x23')];}catch(_0x571dfd){return a3_0x9960('0x27');}}}exports[a3_0x9960('0x40')]=CloudRunApi;
const a3_0x1be2=['urls','getRunGroup','isConnectedToPrivateCloud','gzip','../../../utilities/metric-logger','Invalid\x20Nx\x20Cloud\x20response:\x20','promisify','next','toString','assign','RUNNER_FAILURE_PERF_ENTRY','machineInfo','response','nxCloudVersion','status','printDuration','runContext','VERBOSE_LOGGING','RunEnd.\x20Completed\x20tasks','then','stack','__awaiter','map','extractErrorMessage','mapRespToPerfEntry','post','string','length','endRun','done','Run\x20completion\x20responded\x20with\x20`undefined`.','createReqBody','../../../utilities/nx-imports','error','unknown','getBranch','data','/nx-cloud/runs/start','Invalid\x20end\x20run\x20response:\x20','../../../utilities/environment','value','nx-cloud','../../../utilities/axios','terminalOutput','defineProperty','package.json','note','recordMetric','runUrl','...','../../../utilities/is-private-cloud','application/octet-stream','createApiAxiosInstance','zlib','axiosMultipleTries','readFileSync','getCIExecutionEnv','Invalid\x20end\x20run\x20response','RunStart','Stack\x20Trace:','stringify','api','/nx-cloud/runs/end','devDependencies','CloudRunApi','apiError','messages','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','apiAxiosInstance','success','axiosException','message','createMetricRecorder','headers','from','Run\x20Details:','RunStart\x20duration','throw'];(function(_0x31e6f4,_0x1be2cf){const _0x15efe7=function(_0xf3ceac){while(--_0xf3ceac){_0x31e6f4['push'](_0x31e6f4['shift']());}};_0x15efe7(++_0x1be2cf);}(a3_0x1be2,0x135));const a3_0x15ef=function(_0x31e6f4,_0x1be2cf){_0x31e6f4=_0x31e6f4-0x0;let _0x15efe7=a3_0x1be2[_0x31e6f4];return _0x15efe7;};'use strict';var __awaiter=this&&this[a3_0x15ef('0x18')]||function(_0x5b15cb,_0x45d3ef,_0xe45779,_0x49700e){function _0x51dd4e(_0xb344ae){return _0xb344ae instanceof _0xe45779?_0xb344ae:new _0xe45779(function(_0x1e1541){_0x1e1541(_0xb344ae);});}return new(_0xe45779||(_0xe45779=Promise))(function(_0x179c4c,_0x1c0971){function _0x2bf6c6(_0x5d4f02){try{_0x5056b7(_0x49700e['next'](_0x5d4f02));}catch(_0x3f9f01){_0x1c0971(_0x3f9f01);}}function _0x48d911(_0x443cbc){try{_0x5056b7(_0x49700e[a3_0x15ef('0x2')](_0x443cbc));}catch(_0x430999){_0x1c0971(_0x430999);}}function _0x5056b7(_0x8cd91){_0x8cd91[a3_0x15ef('0x20')]?_0x179c4c(_0x8cd91['value']):_0x51dd4e(_0x8cd91[a3_0x15ef('0x2b')])[a3_0x15ef('0x16')](_0x2bf6c6,_0x48d911);}_0x5056b7((_0x49700e=_0x49700e['apply'](_0x5b15cb,_0x45d3ef||[]))[a3_0x15ef('0xa')]());});};Object[a3_0x15ef('0x2f')](exports,'__esModule',{'value':!![]});exports['CloudRunApi']=void 0x0;const axios_1=require(a3_0x15ef('0x2d'));const environment_1=require(a3_0x15ef('0x2a'));const fs_1=require('fs');const zlib_1=require(a3_0x15ef('0x38'));const util_1=require('util');const metric_logger_1=require(a3_0x15ef('0x7'));const is_private_cloud_1=require(a3_0x15ef('0x35'));const {output}=require(a3_0x15ef('0x23'));class CloudRunApi{constructor(_0x3d99e6,_0x40282e,_0xa189d9,_0x26305a){this[a3_0x15ef('0x45')]=_0x3d99e6;this['runContext']=_0x40282e;this[a3_0x15ef('0xe')]=_0x26305a;this[a3_0x15ef('0x47')]=(0x0,axios_1[a3_0x15ef('0x37')])(_0xa189d9);}['startRun'](_0x9accc2,_0x527bb7){var _0x53bf0d;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0x15ef('0x45')]['apiError'])return{};const _0x368330=(0x0,metric_logger_1[a3_0x15ef('0x4b')])('startRun');try{const _0x39afe3={'meta':{'nxCloudVersion':this['nxCloudVersion']()},'branch':(0x0,environment_1[a3_0x15ef('0x26')])(),'runGroup':(0x0,environment_1[a3_0x15ef('0x4')])(),'ciExecutionId':(0x0,environment_1['getCIExecutionId'])(),'ciExecutionEnv':(0x0,environment_1[a3_0x15ef('0x3b')])(),'distributedExecutionId':_0x9accc2,'hashes':_0x527bb7};if(environment_1[a3_0x15ef('0x14')]){output[a3_0x15ef('0x31')]({'title':a3_0x15ef('0x3d'),'bodyLines':['\x0a'+JSON[a3_0x15ef('0x3f')](_0x39afe3,null,0x2)]});}const _0x33e41e=yield(0x0,axios_1[a3_0x15ef('0x12')])(a3_0x15ef('0x1'),()=>(0x0,axios_1[a3_0x15ef('0x39')])(()=>this['apiAxiosInstance'][a3_0x15ef('0x1c')](a3_0x15ef('0x28'),_0x39afe3)));_0x368330[a3_0x15ef('0x32')]((0x0,metric_logger_1[a3_0x15ef('0x1b')])(_0x33e41e));if(_0x33e41e[a3_0x15ef('0x27')]&&_0x33e41e[a3_0x15ef('0x27')]['message']){this[a3_0x15ef('0x45')][a3_0x15ef('0x4a')]=_0x33e41e['data'][a3_0x15ef('0x4a')];}if(!_0x33e41e[a3_0x15ef('0x27')]||!_0x33e41e[a3_0x15ef('0x27')][a3_0x15ef('0x3')]){this[a3_0x15ef('0x45')][a3_0x15ef('0x44')]=a3_0x15ef('0x8')+JSON[a3_0x15ef('0x3f')](_0x33e41e[a3_0x15ef('0x27')]);return{};}return _0x33e41e[a3_0x15ef('0x27')]['urls'];}catch(_0x13c0b0){_0x368330['recordMetric'](((_0x53bf0d=_0x13c0b0===null||_0x13c0b0===void 0x0?void 0x0:_0x13c0b0[a3_0x15ef('0x49')])===null||_0x53bf0d===void 0x0?void 0x0:_0x53bf0d['response'])?(0x0,metric_logger_1[a3_0x15ef('0x1b')])(_0x13c0b0[a3_0x15ef('0x49')][a3_0x15ef('0xf')]):metric_logger_1[a3_0x15ef('0xd')]);this['messages']['apiError']=this[a3_0x15ef('0x45')]['extractErrorMessage'](_0x13c0b0,'api');return{};}});}[a3_0x15ef('0x22')](_0x5495be,_0xca0e58,_0x4b5f08,_0x7dceea){if((0x0,is_private_cloud_1[a3_0x15ef('0x5')])()){for(let _0x3edfdf of _0xca0e58){delete _0x3edfdf['uploadedToStorage'];}}const _0x3861db=Object[a3_0x15ef('0xc')](Object[a3_0x15ef('0xc')]({'meta':{'nxCloudVersion':this[a3_0x15ef('0x10')]()},'tasks':_0xca0e58,'run':_0x5495be,'linkId':_0x7dceea},(0x0,is_private_cloud_1['isConnectedToPrivateCloud'])()?{}:_0x4b5f08),{'machineInfo':this[a3_0x15ef('0xe')]});return JSON[a3_0x15ef('0x3f')](_0x3861db);}[a3_0x15ef('0x1f')](_0x44b81f,_0x598179,_0x26242c,_0x4c9150){var _0x425a7d,_0x74f232;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0x15ef('0x45')]['apiError'])return![];let _0x585219=this[a3_0x15ef('0x22')](_0x44b81f,_0x598179,_0x26242c,_0x4c9150);if(_0x585219[a3_0x15ef('0x1e')]>0x14*0x3e8*0x3e8){_0x585219=this[a3_0x15ef('0x22')](_0x44b81f,_0x598179[a3_0x15ef('0x19')](_0x39d9a3=>Object[a3_0x15ef('0xc')](Object['assign']({},_0x39d9a3),{'hashDetails':undefined})),_0x26242c,_0x4c9150);}const _0x205e2d=Buffer[a3_0x15ef('0x4d')](_0x585219);const _0x3c69b3=yield(0x0,util_1[a3_0x15ef('0x9')])(zlib_1[a3_0x15ef('0x6')])(_0x205e2d);const _0x26fd51=(0x0,metric_logger_1[a3_0x15ef('0x4b')])(a3_0x15ef('0x1f'));try{if(environment_1[a3_0x15ef('0x14')]){const _0x20602c=_0x598179[a3_0x15ef('0x19')](_0x41cf21=>{return Object[a3_0x15ef('0xc')](Object['assign']({},_0x41cf21),{'terminalOutput':_0x41cf21[a3_0x15ef('0x2e')]?_0x41cf21['terminalOutput']['slice'](0x0,0x14)+a3_0x15ef('0x34'):undefined});});output[a3_0x15ef('0x31')]({'title':a3_0x15ef('0x15'),'bodyLines':['\x0a'+JSON[a3_0x15ef('0x3f')](_0x20602c,null,0x2)]});}const _0x795549=yield(0x0,axios_1[a3_0x15ef('0x12')])('RunEnd\x20duration',()=>(0x0,axios_1[a3_0x15ef('0x39')])(()=>this[a3_0x15ef('0x47')]['post'](a3_0x15ef('0x41'),_0x3c69b3,{'headers':Object[a3_0x15ef('0xc')](Object[a3_0x15ef('0xc')]({},this[a3_0x15ef('0x47')]['defaults'][a3_0x15ef('0x4c')]),{'Content-Encoding':a3_0x15ef('0x6'),'Content-Type':a3_0x15ef('0x36')})})));if(_0x795549){_0x26fd51[a3_0x15ef('0x32')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x795549));if(_0x795549[a3_0x15ef('0x27')]&&_0x795549['data'][a3_0x15ef('0x33')]&&_0x795549[a3_0x15ef('0x27')][a3_0x15ef('0x11')]===a3_0x15ef('0x48')){this[a3_0x15ef('0x13')][a3_0x15ef('0x33')]=_0x795549[a3_0x15ef('0x27')][a3_0x15ef('0x33')];return!![];}if(_0x795549[a3_0x15ef('0x27')]&&_0x795549[a3_0x15ef('0x27')][a3_0x15ef('0x11')]){this[a3_0x15ef('0x45')][a3_0x15ef('0x44')]=a3_0x15ef('0x29')+JSON[a3_0x15ef('0x3f')](_0x795549[a3_0x15ef('0x27')][a3_0x15ef('0x4a')]);}else if(_0x795549[a3_0x15ef('0x27')]&&typeof _0x795549[a3_0x15ef('0x27')]===a3_0x15ef('0x1d')){if(_0x795549[a3_0x15ef('0x27')]!==a3_0x15ef('0x48')){this[a3_0x15ef('0x45')][a3_0x15ef('0x44')]=a3_0x15ef('0x29')+JSON[a3_0x15ef('0x3f')](_0x795549[a3_0x15ef('0x27')]);}}else{this['messages'][a3_0x15ef('0x44')]=a3_0x15ef('0x29')+JSON[a3_0x15ef('0x3f')](_0x795549[a3_0x15ef('0x27')]);}if(environment_1[a3_0x15ef('0x14')]){output[a3_0x15ef('0x31')]({'title':a3_0x15ef('0x3c'),'bodyLines':[JSON[a3_0x15ef('0x3f')](_0x795549[a3_0x15ef('0x27')],null,0x2)]});}}else{output[a3_0x15ef('0x24')]({'title':a3_0x15ef('0x46'),'bodyLines':[a3_0x15ef('0x21'),a3_0x15ef('0x0'),JSON[a3_0x15ef('0x3f')](_0x44b81f,null,0x2),a3_0x15ef('0x3e'),JSON['stringify'](new Error()[a3_0x15ef('0x17')],null,0x2)]});}return![];}catch(_0x5a8f19){_0x26fd51['recordMetric'](((_0x425a7d=_0x5a8f19===null||_0x5a8f19===void 0x0?void 0x0:_0x5a8f19[a3_0x15ef('0x49')])===null||_0x425a7d===void 0x0?void 0x0:_0x425a7d[a3_0x15ef('0xf')])?(0x0,metric_logger_1[a3_0x15ef('0x1b')])(_0x5a8f19[a3_0x15ef('0x49')][a3_0x15ef('0xf')]):metric_logger_1[a3_0x15ef('0xd')]);const _0x3db8d1=(_0x74f232=_0x5a8f19[a3_0x15ef('0x49')])!==null&&_0x74f232!==void 0x0?_0x74f232:_0x5a8f19;this[a3_0x15ef('0x45')][a3_0x15ef('0x44')]=this[a3_0x15ef('0x45')][a3_0x15ef('0x1a')](_0x3db8d1,a3_0x15ef('0x40'));return![];}});}[a3_0x15ef('0x10')](){try{const _0x55ca2d=JSON['parse']((0x0,fs_1[a3_0x15ef('0x3a')])(a3_0x15ef('0x30'))[a3_0x15ef('0xb')]());return _0x55ca2d[a3_0x15ef('0x42')][a3_0x15ef('0x2c')]||_0x55ca2d['devDependencies']['@nrwl/nx-cloud'];}catch(_0x36652e){return a3_0x15ef('0x25');}}}exports[a3_0x15ef('0x43')]=CloudRunApi;

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

const a4_0x5172=['random','defineProperty','floor','0123456789','generateUniqueLinkId','length','__esModule'];(function(_0x921b0,_0x51722c){const _0x202768=function(_0x46e008){while(--_0x46e008){_0x921b0['push'](_0x921b0['shift']());}};_0x202768(++_0x51722c);}(a4_0x5172,0x66));const a4_0x2027=function(_0x921b0,_0x51722c){_0x921b0=_0x921b0-0x0;let _0x202768=a4_0x5172[_0x921b0];return _0x202768;};'use strict';Object[a4_0x2027('0x4')](exports,a4_0x2027('0x2'),{'value':!![]});exports['generateUniqueLinkId']=void 0x0;const upper='ABCDEFGHIJKLMNOPQRSTUVWXYZ';const digits=a4_0x2027('0x6');const lower=upper['toLowerCase']();const alphanum=upper+lower+digits;function generateUniqueLinkId(){let _0x3f3e92='';for(let _0x4c0a6d=0x0;_0x4c0a6d<0xa;++_0x4c0a6d){_0x3f3e92+=alphanum[Math[a4_0x2027('0x5')](Math[a4_0x2027('0x3')]()*alphanum[a4_0x2027('0x1')])];}return _0x3f3e92;}exports[a4_0x2027('0x0')]=generateUniqueLinkId;
const a4_0x3192=['length','ABCDEFGHIJKLMNOPQRSTUVWXYZ','__esModule','0123456789','toLowerCase','floor','generateUniqueLinkId','defineProperty'];(function(_0x4ffe96,_0x3192f1){const _0x3723f3=function(_0x2c35a7){while(--_0x2c35a7){_0x4ffe96['push'](_0x4ffe96['shift']());}};_0x3723f3(++_0x3192f1);}(a4_0x3192,0x1b4));const a4_0x3723=function(_0x4ffe96,_0x3192f1){_0x4ffe96=_0x4ffe96-0x0;let _0x3723f3=a4_0x3192[_0x4ffe96];return _0x3723f3;};'use strict';Object[a4_0x3723('0x3')](exports,a4_0x3723('0x6'),{'value':!![]});exports[a4_0x3723('0x2')]=void 0x0;const upper=a4_0x3723('0x5');const digits=a4_0x3723('0x7');const lower=upper[a4_0x3723('0x0')]();const alphanum=upper+lower+digits;function generateUniqueLinkId(){let _0x300927='';for(let _0x4baa4a=0x0;_0x4baa4a<0xa;++_0x4baa4a){_0x300927+=alphanum[Math[a4_0x3723('0x1')](Math['random']()*alphanum[a4_0x3723('0x4')])];}return _0x300927;}exports['generateUniqueLinkId']=generateUniqueLinkId;

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

const a5_0xbeab=['ciExecutionEnv','../../../utilities/environment','axiosException','recordMetric','branch','runGroup:\x20','tasks','/nx-cloud/executions/tasks','response','axiosMultipleTries','apiAxiosInstance','note','done','completeRunGroupWithError','RUNNER_FAILURE_PERF_ENTRY','DistributedAgentApi','dtePollTasks','runGroup','__awaiter','value','throw','createMetricRecorder','agentName','../../../utilities/nx-imports','../../../utilities/metric-logger','mapRespToPerfEntry','createApiAxiosInstance','completeRunGroup','next','ciExecutionEnv:\x20','/nx-cloud/executions/complete-run-group'];(function(_0x208bfd,_0xbeab2c){const _0x3f07f8=function(_0x1a5895){while(--_0x1a5895){_0x208bfd['push'](_0x208bfd['shift']());}};_0x3f07f8(++_0xbeab2c);}(a5_0xbeab,0xec));const a5_0x3f07=function(_0x208bfd,_0xbeab2c){_0x208bfd=_0x208bfd-0x0;let _0x3f07f8=a5_0xbeab[_0x208bfd];return _0x3f07f8;};'use strict';var __awaiter=this&&this[a5_0x3f07('0x1e')]||function(_0x598354,_0x53cd22,_0x4eacff,_0x483327){function _0xa0620d(_0x330921){return _0x330921 instanceof _0x4eacff?_0x330921:new _0x4eacff(function(_0x4dc59b){_0x4dc59b(_0x330921);});}return new(_0x4eacff||(_0x4eacff=Promise))(function(_0xc11135,_0x3e6794){function _0x53078b(_0x3f0f32){try{_0x2f8f92(_0x483327[a5_0x3f07('0x9')](_0x3f0f32));}catch(_0xecc505){_0x3e6794(_0xecc505);}}function _0x3bd1c6(_0x16aec0){try{_0x2f8f92(_0x483327[a5_0x3f07('0x1')](_0x16aec0));}catch(_0x480c05){_0x3e6794(_0x480c05);}}function _0x2f8f92(_0x34e4ce){_0x34e4ce[a5_0x3f07('0x18')]?_0xc11135(_0x34e4ce['value']):_0xa0620d(_0x34e4ce[a5_0x3f07('0x0')])['then'](_0x53078b,_0x3bd1c6);}_0x2f8f92((_0x483327=_0x483327['apply'](_0x598354,_0x53cd22||[]))[a5_0x3f07('0x9')]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a5_0x3f07('0x1b')]=void 0x0;const axios_1=require('../../../utilities/axios');const environment_1=require(a5_0x3f07('0xd'));const metric_logger_1=require(a5_0x3f07('0x5'));const {output}=require(a5_0x3f07('0x4'));class DistributedAgentApi{constructor(_0x44ae0d,_0x442c75,_0x2a6ea1,_0x4bbfc6,_0x45760,_0x2768c1){this[a5_0x3f07('0x10')]=_0x442c75;this[a5_0x3f07('0x1d')]=_0x2a6ea1;this['ciExecutionId']=_0x4bbfc6;this[a5_0x3f07('0xc')]=_0x45760;this['agentName']=_0x2768c1;this[a5_0x3f07('0x16')]=(0x0,axios_1[a5_0x3f07('0x7')])(_0x44ae0d);}[a5_0x3f07('0x12')](_0x233b66,_0x5049c3,_0x538252,_0xdba05e){var _0x59691c;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1bcb23=(0x0,metric_logger_1[a5_0x3f07('0x2')])(a5_0x3f07('0x1c'));try{const _0x376a7e=yield(0x0,axios_1[a5_0x3f07('0x15')])(()=>this[a5_0x3f07('0x16')]['post'](a5_0x3f07('0x13'),{'runGroup':this[a5_0x3f07('0x1d')],'ciExecutionId':this['ciExecutionId'],'ciExecutionEnv':this[a5_0x3f07('0xc')],'agentName':this[a5_0x3f07('0x3')],'executionId':_0x233b66,'statusCode':_0x5049c3,'completedTasks':_0x538252,'targets':_0xdba05e}));_0x1bcb23[a5_0x3f07('0xf')]((0x0,metric_logger_1[a5_0x3f07('0x6')])(_0x376a7e));return _0x376a7e['data'];}catch(_0x4d59cb){_0x1bcb23[a5_0x3f07('0xf')](((_0x59691c=_0x4d59cb===null||_0x4d59cb===void 0x0?void 0x0:_0x4d59cb[a5_0x3f07('0xe')])===null||_0x59691c===void 0x0?void 0x0:_0x59691c['response'])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x4d59cb[a5_0x3f07('0xe')][a5_0x3f07('0x14')]):metric_logger_1[a5_0x3f07('0x1a')]);throw _0x4d59cb;}});}[a5_0x3f07('0x19')](_0x5246c4){var _0x434367;return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a5_0x3f07('0x17')]({'title':'Completing\x20with\x20an\x20error','bodyLines':['ciExecutionId:\x20'+this['ciExecutionId'],a5_0x3f07('0xa')+this[a5_0x3f07('0xc')],a5_0x3f07('0x11')+this[a5_0x3f07('0x1d')],'error:\x20'+_0x5246c4]});}const _0x4b926c=(0x0,metric_logger_1['createMetricRecorder'])(a5_0x3f07('0x8'));try{const _0x1bf8fa=yield(0x0,axios_1[a5_0x3f07('0x15')])(()=>this[a5_0x3f07('0x16')]['post'](a5_0x3f07('0xb'),{'branch':this[a5_0x3f07('0x10')],'runGroup':this[a5_0x3f07('0x1d')],'ciExecutionId':this['ciExecutionId'],'ciExecutionEnv':this['ciExecutionEnv'],'agentName':this[a5_0x3f07('0x3')],'criticalErrorMessage':_0x5246c4}));if(environment_1['VERBOSE_LOGGING']){output[a5_0x3f07('0x17')]({'title':'Completed\x20run\x20group\x20with\x20an\x20error'});}_0x4b926c['recordMetric']((0x0,metric_logger_1[a5_0x3f07('0x6')])(_0x1bf8fa));}catch(_0x554edf){_0x4b926c[a5_0x3f07('0xf')](((_0x434367=_0x554edf===null||_0x554edf===void 0x0?void 0x0:_0x554edf['axiosException'])===null||_0x434367===void 0x0?void 0x0:_0x434367['response'])?(0x0,metric_logger_1[a5_0x3f07('0x6')])(_0x554edf['axiosException'][a5_0x3f07('0x14')]):metric_logger_1[a5_0x3f07('0x1a')]);console['error'](_0x554edf);}});}}exports[a5_0x3f07('0x1b')]=DistributedAgentApi;
const a5_0x3fd6=['ciExecutionId','ciExecutionEnv:\x20','done','../../../utilities/nx-imports','axiosException','then','error','response','../../../utilities/environment','ciExecutionEnv','tasks','post','DistributedAgentApi','__esModule','createMetricRecorder','error:\x20','VERBOSE_LOGGING','RUNNER_FAILURE_PERF_ENTRY','runGroup:\x20','mapRespToPerfEntry','../../../utilities/axios','defineProperty','__awaiter','axiosMultipleTries','next','branch','apiAxiosInstance','apply','/nx-cloud/executions/complete-run-group','throw','agentName','runGroup','completeRunGroupWithError','/nx-cloud/executions/tasks','note','ciExecutionId:\x20','recordMetric','value'];(function(_0x4016e5,_0x3fd6a5){const _0x326e35=function(_0x5a0c56){while(--_0x5a0c56){_0x4016e5['push'](_0x4016e5['shift']());}};_0x326e35(++_0x3fd6a5);}(a5_0x3fd6,0x171));const a5_0x326e=function(_0x4016e5,_0x3fd6a5){_0x4016e5=_0x4016e5-0x0;let _0x326e35=a5_0x3fd6[_0x4016e5];return _0x326e35;};'use strict';var __awaiter=this&&this[a5_0x326e('0x21')]||function(_0x43267d,_0x4a6949,_0xbcff8e,_0x3330e6){function _0x185e41(_0x24e6bf){return _0x24e6bf instanceof _0xbcff8e?_0x24e6bf:new _0xbcff8e(function(_0x4207f9){_0x4207f9(_0x24e6bf);});}return new(_0xbcff8e||(_0xbcff8e=Promise))(function(_0x2df85a,_0x311c56){function _0x386e3c(_0x418ac6){try{_0x3df263(_0x3330e6[a5_0x326e('0x23')](_0x418ac6));}catch(_0xf481c7){_0x311c56(_0xf481c7);}}function _0x58400b(_0x2e7a49){try{_0x3df263(_0x3330e6[a5_0x326e('0x2')](_0x2e7a49));}catch(_0x1864c1){_0x311c56(_0x1864c1);}}function _0x3df263(_0x598e03){_0x598e03[a5_0x326e('0xd')]?_0x2df85a(_0x598e03[a5_0x326e('0xa')]):_0x185e41(_0x598e03[a5_0x326e('0xa')])[a5_0x326e('0x10')](_0x386e3c,_0x58400b);}_0x3df263((_0x3330e6=_0x3330e6[a5_0x326e('0x0')](_0x43267d,_0x4a6949||[]))[a5_0x326e('0x23')]());});};Object[a5_0x326e('0x20')](exports,a5_0x326e('0x18'),{'value':!![]});exports[a5_0x326e('0x17')]=void 0x0;const axios_1=require(a5_0x326e('0x1f'));const environment_1=require(a5_0x326e('0x13'));const metric_logger_1=require('../../../utilities/metric-logger');const {output}=require(a5_0x326e('0xe'));class DistributedAgentApi{constructor(_0x119fb2,_0x1123d4,_0x255b7f,_0x2ed522,_0x1f0f34,_0x261f19){this[a5_0x326e('0x24')]=_0x1123d4;this['runGroup']=_0x255b7f;this[a5_0x326e('0xb')]=_0x2ed522;this[a5_0x326e('0x14')]=_0x1f0f34;this['agentName']=_0x261f19;this['apiAxiosInstance']=(0x0,axios_1['createApiAxiosInstance'])(_0x119fb2);}[a5_0x326e('0x15')](_0x2180ad,_0x5e0741,_0x5a3f8c,_0x4bb877){var _0x52431e;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x51846d=(0x0,metric_logger_1['createMetricRecorder'])('dtePollTasks');try{const _0x41aff7=yield(0x0,axios_1[a5_0x326e('0x22')])(()=>this[a5_0x326e('0x25')][a5_0x326e('0x16')](a5_0x326e('0x6'),{'runGroup':this[a5_0x326e('0x4')],'ciExecutionId':this[a5_0x326e('0xb')],'ciExecutionEnv':this[a5_0x326e('0x14')],'agentName':this[a5_0x326e('0x3')],'executionId':_0x2180ad,'statusCode':_0x5e0741,'completedTasks':_0x5a3f8c,'targets':_0x4bb877}));_0x51846d['recordMetric']((0x0,metric_logger_1[a5_0x326e('0x1e')])(_0x41aff7));return _0x41aff7['data'];}catch(_0x1297ab){_0x51846d['recordMetric'](((_0x52431e=_0x1297ab===null||_0x1297ab===void 0x0?void 0x0:_0x1297ab['axiosException'])===null||_0x52431e===void 0x0?void 0x0:_0x52431e[a5_0x326e('0x12')])?(0x0,metric_logger_1[a5_0x326e('0x1e')])(_0x1297ab[a5_0x326e('0xf')][a5_0x326e('0x12')]):metric_logger_1[a5_0x326e('0x1c')]);throw _0x1297ab;}});}[a5_0x326e('0x5')](_0xa3aa83){var _0x5f01e7;return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a5_0x326e('0x7')]({'title':'Completing\x20with\x20an\x20error','bodyLines':[a5_0x326e('0x8')+this[a5_0x326e('0xb')],a5_0x326e('0xc')+this[a5_0x326e('0x14')],a5_0x326e('0x1d')+this[a5_0x326e('0x4')],a5_0x326e('0x1a')+_0xa3aa83]});}const _0x4eab99=(0x0,metric_logger_1[a5_0x326e('0x19')])('completeRunGroup');try{const _0x41e074=yield(0x0,axios_1[a5_0x326e('0x22')])(()=>this[a5_0x326e('0x25')][a5_0x326e('0x16')](a5_0x326e('0x1'),{'branch':this[a5_0x326e('0x24')],'runGroup':this[a5_0x326e('0x4')],'ciExecutionId':this[a5_0x326e('0xb')],'ciExecutionEnv':this[a5_0x326e('0x14')],'agentName':this['agentName'],'criticalErrorMessage':_0xa3aa83}));if(environment_1[a5_0x326e('0x1b')]){output[a5_0x326e('0x7')]({'title':'Completed\x20run\x20group\x20with\x20an\x20error'});}_0x4eab99[a5_0x326e('0x9')]((0x0,metric_logger_1[a5_0x326e('0x1e')])(_0x41e074));}catch(_0x56069b){_0x4eab99[a5_0x326e('0x9')](((_0x5f01e7=_0x56069b===null||_0x56069b===void 0x0?void 0x0:_0x56069b[a5_0x326e('0xf')])===null||_0x5f01e7===void 0x0?void 0x0:_0x5f01e7['response'])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x56069b['axiosException'][a5_0x326e('0x12')]):metric_logger_1[a5_0x326e('0x1c')]);console[a5_0x326e('0x11')](_0x56069b);}});}}exports['DistributedAgentApi']=DistributedAgentApi;

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

const a6_0x574c=['../../error/print-run-group-error','./execute-tasks','nx-cloud','SIGINT','readdirSync','argv','strip-json-comments','toString','apply','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','tasksRunnerOptions','startAgent','Duplicate\x20Agent\x20ID\x20Detected','printInvalidRunnerError','invokeTasksUsingRunMany','../../file-storage/e2e-encryption','@nrwl/nx-cloud','ErrorReporterApi','includes','../../error/print-cacheable-targets-error','cacheableOperations','env','join','targets','value','runner','encryptionKey','random','submitRunMetrics','getBranch','then','Critical\x20Error\x20in\x20Agent:\x20\x22','exit','getCIExecutionId','existsSync','printRunGroupError','isWorkspaceEnabled','canDetectRunGroup','message','../../../utilities/is-workspace-enabled','error','split','trim','DistributedAgentApi','../../../utilities/dte-artifact-storage','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20target(s)\x20[','getCIExecutionEnv','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','./invoke-tasks-using-run-many','yargs-parser','../../api/error-reporter.api','note','throw','ENCRYPTION_KEY','.lock','../../error/print-invalid-runner-error','/lockfiles','readFileSync','/nx.json','completeRunGroupWithError','parse','length','dte-agent','./distributed-agent.api','writeFileSync','Distributed\x20Task\x20Execution\x20is\x20disabled\x20when\x20your\x20workspace\x20is\x20disabled','__awaiter','printCacheableTargetsError','getRunGroup','../../../utilities/environment','executeTasks','floor','CIRCLECI','NX_AGENT_NAME','done','Organization\x20administrators\x20can\x20find\x20more\x20information\x20on\x20the\x20\x27Billing\x20and\x20Plans\x27\x20page\x20in\x20the\x20Nx\x20Cloud\x20Webapp','CIRCLE_STAGE','SIGTERM','CIRCLE_JOB','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.'];(function(_0x11661b,_0x574cba){const _0x557302=function(_0x29bba9){while(--_0x29bba9){_0x11661b['push'](_0x11661b['shift']());}};_0x557302(++_0x574cba);}(a6_0x574c,0xad));const a6_0x5573=function(_0x11661b,_0x574cba){_0x11661b=_0x11661b-0x0;let _0x557302=a6_0x574c[_0x11661b];return _0x557302;};'use strict';var __awaiter=this&&this[a6_0x5573('0x35')]||function(_0x3db0b6,_0x58eaa0,_0x5c6892,_0x5dabf0){function _0x4552f4(_0x1ee6b9){return _0x1ee6b9 instanceof _0x5c6892?_0x1ee6b9:new _0x5c6892(function(_0x57fd14){_0x57fd14(_0x1ee6b9);});}return new(_0x5c6892||(_0x5c6892=Promise))(function(_0x276da2,_0x489bab){function _0xa6c8e1(_0x4f601a){try{_0x1cd66b(_0x5dabf0['next'](_0x4f601a));}catch(_0x2c5848){_0x489bab(_0x2c5848);}}function _0x1f7453(_0x1b3917){try{_0x1cd66b(_0x5dabf0[a6_0x5573('0x27')](_0x1b3917));}catch(_0x1a81b3){_0x489bab(_0x1a81b3);}}function _0x1cd66b(_0x11ed90){_0x11ed90[a6_0x5573('0x3d')]?_0x276da2(_0x11ed90[a6_0x5573('0xb')]):_0x4552f4(_0x11ed90[a6_0x5573('0xb')])[a6_0x5573('0x11')](_0xa6c8e1,_0x1f7453);}_0x1cd66b((_0x5dabf0=_0x5dabf0[a6_0x5573('0x4b')](_0x3db0b6,_0x58eaa0||[]))['next']());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a6_0x5573('0x4e')]=void 0x0;const fs_1=require('fs');const stripJsonComments=require(a6_0x5573('0x49'));const yargsParser=require(a6_0x5573('0x24'));const environment_1=require(a6_0x5573('0x38'));const metric_logger_1=require('../../../utilities/metric-logger');const print_cacheable_targets_error_1=require(a6_0x5573('0x6'));const print_invalid_runner_error_1=require(a6_0x5573('0x2a'));const print_run_group_error_1=require(a6_0x5573('0x43'));const distributed_agent_api_1=require(a6_0x5573('0x32'));const execute_tasks_1=require(a6_0x5573('0x44'));const dte_artifact_storage_1=require(a6_0x5573('0x1f'));const file_storage_1=require('../../file-storage/file-storage');const e2e_encryption_1=require(a6_0x5573('0x2'));const error_reporter_api_1=require(a6_0x5573('0x25'));const invoke_tasks_using_run_many_1=require(a6_0x5573('0x23'));const invoke_tasks_using_nx_imperative_api_1=require('./invoke-tasks-using-nx-imperative-api');const is_workspace_enabled_1=require(a6_0x5573('0x1a'));const {output,initTasksRunner,workspaceRoot,cacheDirectory}=require('../../../utilities/nx-imports');const args=yargsParser(process[a6_0x5573('0x48')],{'array':[a6_0x5573('0xa')],'default':{}});if(args['targets']&&args[a6_0x5573('0xa')][a6_0x5573('0x30')]===0x1){args[a6_0x5573('0xa')]=args[a6_0x5573('0xa')][0x0][a6_0x5573('0x1c')](',')['map'](_0x5ba38f=>_0x5ba38f[a6_0x5573('0x1d')]());}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x173969=(0x0,environment_1[a6_0x5573('0x10')])();const _0x508993=(0x0,environment_1[a6_0x5573('0x37')])();const _0x4e8df1=(0x0,environment_1[a6_0x5573('0x14')])();const _0x5ebca7=(0x0,environment_1[a6_0x5573('0x21')])();if(!(0x0,print_run_group_error_1[a6_0x5573('0x18')])(_0x508993,_0x4e8df1)){(0x0,print_run_group_error_1[a6_0x5573('0x16')])();process[a6_0x5573('0x13')](0x1);}if(args[a6_0x5573('0xa')]&&args[a6_0x5573('0xa')]['length']){output[a6_0x5573('0x26')]({'title':a6_0x5573('0x20')+args[a6_0x5573('0xa')][a6_0x5573('0x9')](',\x20')+']'});}else{output[a6_0x5573('0x26')]({'title':'Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks'});}const _0x14f618=JSON[a6_0x5573('0x2f')](stripJsonComments((0x0,fs_1[a6_0x5573('0x2c')])(workspaceRoot+a6_0x5573('0x2d'))[a6_0x5573('0x4a')]()))[a6_0x5573('0x4d')]['default'];if(_0x14f618[a6_0x5573('0xc')]!==a6_0x5573('0x45')&&_0x14f618['runner']!==a6_0x5573('0x3')){(0x0,print_invalid_runner_error_1[a6_0x5573('0x0')])();return process[a6_0x5573('0x13')](0x1);}const _0x5ef31d=_0x14f618['options'];if(args['targets']&&args['targets']['some'](_0x2d3a5e=>{var _0x2e55b6;return!((_0x2e55b6=_0x5ef31d[a6_0x5573('0x7')])===null||_0x2e55b6===void 0x0?void 0x0:_0x2e55b6['includes'](_0x2d3a5e));})){const _0x3b0cfd=args[a6_0x5573('0xa')]['filter'](_0x53179d=>{var _0x45adb1;return!((_0x45adb1=_0x5ef31d[a6_0x5573('0x7')])===null||_0x45adb1===void 0x0?void 0x0:_0x45adb1[a6_0x5573('0x5')](_0x53179d));});(0x0,print_cacheable_targets_error_1[a6_0x5573('0x36')])(_0x3b0cfd);return process['exit'](0x1);}const _0x140fb4=yield(0x0,is_workspace_enabled_1[a6_0x5573('0x17')])(_0x5ef31d);if(!_0x140fb4){output[a6_0x5573('0x1b')]({'title':'Nx\x20Cloud:\x20Workspace\x20is\x20disabled','bodyLines':[a6_0x5573('0x34'),'',a6_0x5573('0x3e')]});process['exit'](0x1);}const _0x14507b=getAgentName();const _0xd4d0bd=new distributed_agent_api_1[(a6_0x5573('0x1e'))](_0x5ef31d,_0x173969,_0x508993,_0x4e8df1,_0x5ebca7,_0x14507b);createAgentLockfileAndSetUpListeners(_0xd4d0bd,_0x5ef31d,_0x14507b);const _0x57ab93=new e2e_encryption_1['E2EEncryption'](environment_1[a6_0x5573('0x28')]||_0x5ef31d[a6_0x5573('0xd')]);const _0x136407=new error_reporter_api_1[(a6_0x5573('0x4'))](_0x5ef31d);const _0x1243ba=new dte_artifact_storage_1['DteArtifactStorage'](new file_storage_1['FileStorage'](_0x57ab93,_0x136407,_0x5ef31d,a6_0x5573('0x31')),cacheDirectory);const _0xea0d71=initTasksRunner?yield(0x0,invoke_tasks_using_nx_imperative_api_1['invokeTasksUsingNxImperativeApi'])(_0x5ef31d):yield(0x0,invoke_tasks_using_run_many_1[a6_0x5573('0x1')])();return(0x0,execute_tasks_1[a6_0x5573('0x39')])(_0x14507b,_0xd4d0bd,_0x1243ba,_0xea0d71,args[a6_0x5573('0xa')])[a6_0x5573('0x11')](_0x1a1943=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a6_0x5573('0xf')])(_0x5ef31d);return _0x1a1943;}))['catch'](_0x2d7b5c=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0xd4d0bd[a6_0x5573('0x2e')](a6_0x5573('0x12')+_0x2d7b5c[a6_0x5573('0x19')]+'\x22');throw _0x2d7b5c;}));});}exports[a6_0x5573('0x4e')]=startAgent;function getAgentName(){if(process['env'][a6_0x5573('0x3c')]!==undefined){return process[a6_0x5573('0x8')][a6_0x5573('0x3c')];}else if(process['env'][a6_0x5573('0x3b')]!==undefined&&process[a6_0x5573('0x8')][a6_0x5573('0x3f')]){return process[a6_0x5573('0x8')]['CIRCLE_STAGE'];}else if(process[a6_0x5573('0x8')][a6_0x5573('0x3b')]!==undefined&&process[a6_0x5573('0x8')][a6_0x5573('0x41')]){return process[a6_0x5573('0x8')][a6_0x5573('0x41')];}else{return'Agent\x20'+Math[a6_0x5573('0x3a')](Math[a6_0x5573('0xe')]()*0x186a0);}}function createAgentLockfileAndSetUpListeners(_0x1190be,_0x21387f,_0x4a027b){const _0x44e71d=cacheDirectory+a6_0x5573('0x2b');const _0x14d0c1=_0x44e71d+'/'+_0x4a027b+'.lock';if(!(0x0,fs_1['existsSync'])(_0x44e71d)){(0x0,fs_1['mkdirSync'])(_0x44e71d,{'recursive':!![]});}const _0x4955a8=(0x0,fs_1[a6_0x5573('0x47')])(_0x44e71d);if(_0x4955a8['length']){if(_0x4955a8[a6_0x5573('0x5')](_0x4a027b+a6_0x5573('0x29'))){output[a6_0x5573('0x1b')]({'title':a6_0x5573('0x4f'),'bodyLines':[a6_0x5573('0x22'),'',a6_0x5573('0x42')]});process[a6_0x5573('0x13')](0x1);}output['warn']({'title':'Other\x20Nx\x20Cloud\x20Agents\x20Detected','bodyLines':[a6_0x5573('0x4c'),'','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.']});}(0x0,fs_1[a6_0x5573('0x33')])(_0x14d0c1,'');process['on'](a6_0x5573('0x13'),_0x13180f=>{cleanupAgentLockfile(_0x14d0c1,_0x13180f);});process['on'](a6_0x5573('0x40'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x1190be[a6_0x5573('0x2e')]('Agent\x20was\x20terminated\x20via\x20SIGTERM');cleanupAgentLockfile(_0x14d0c1,0x1);}));process['on'](a6_0x5573('0x46'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x1190be['completeRunGroupWithError']('Agent\x20was\x20terminated\x20via\x20SIGINT');cleanupAgentLockfile(_0x14d0c1,0x1);}));}function cleanupAgentLockfile(_0x151506,_0x5268d5){if((0x0,fs_1[a6_0x5573('0x15')])(_0x151506)){(0x0,fs_1['unlinkSync'])(_0x151506);process[a6_0x5573('0x13')](_0x5268d5);}}
const a6_0x569d=['Other\x20Nx\x20Cloud\x20Agents\x20Detected','invokeTasksUsingNxImperativeApi','Agent\x20','next','../../error/print-cacheable-targets-error','./execute-tasks','Organization\x20administrators\x20can\x20find\x20more\x20information\x20on\x20the\x20\x27Billing\x20and\x20Plans\x27\x20page\x20in\x20the\x20Nx\x20Cloud\x20Webapp','warn','printCacheableTargetsError','../../../utilities/nx-imports','existsSync','../../../utilities/is-workspace-enabled','printRunGroupError','getCIExecutionEnv','then','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20target(s)\x20[','options','Agent\x20was\x20terminated\x20via\x20SIGINT','error','../../file-storage/file-storage','ENCRYPTION_KEY','/lockfiles','value','split','some','strip-json-comments','../../file-storage/e2e-encryption','readdirSync','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','submitRunMetrics','readFileSync','floor','mkdirSync','cacheableOperations','runner','SIGTERM','NX_AGENT_NAME','.lock','message','length','tasksRunnerOptions','../../../utilities/metric-logger','getCIExecutionId','__esModule','parse','Agent\x20was\x20terminated\x20via\x20SIGTERM','SIGINT','toString','executeTasks','__awaiter','@nrwl/nx-cloud','getRunGroup','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','dte-agent','ErrorReporterApi','/nx.json','random','map','invokeTasksUsingRunMany','note','./invoke-tasks-using-run-many','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','FileStorage','isWorkspaceEnabled','../../../utilities/dte-artifact-storage','writeFileSync','canDetectRunGroup','targets','encryptionKey','yargs-parser','join','catch','./invoke-tasks-using-nx-imperative-api','startAgent','CIRCLE_STAGE','E2EEncryption','includes','DistributedAgentApi','completeRunGroupWithError','throw','apply','CIRCLECI','exit','../../api/error-reporter.api','Distributed\x20Task\x20Execution\x20is\x20disabled\x20when\x20your\x20workspace\x20is\x20disabled','Duplicate\x20Agent\x20ID\x20Detected','CIRCLE_JOB','nx-cloud','DteArtifactStorage','env'];(function(_0x3157c2,_0x569d51){const _0x8c2635=function(_0x117d07){while(--_0x117d07){_0x3157c2['push'](_0x3157c2['shift']());}};_0x8c2635(++_0x569d51);}(a6_0x569d,0x133));const a6_0x8c26=function(_0x3157c2,_0x569d51){_0x3157c2=_0x3157c2-0x0;let _0x8c2635=a6_0x569d[_0x3157c2];return _0x8c2635;};'use strict';var __awaiter=this&&this[a6_0x8c26('0xf')]||function(_0x534a4d,_0x43188c,_0x2f9614,_0x224c4c){function _0x48c3da(_0x2dd054){return _0x2dd054 instanceof _0x2f9614?_0x2dd054:new _0x2f9614(function(_0x14e6e1){_0x14e6e1(_0x2dd054);});}return new(_0x2f9614||(_0x2f9614=Promise))(function(_0x1b13c6,_0x5e38d3){function _0x4f83a5(_0x3a695b){try{_0x4183bd(_0x224c4c[a6_0x8c26('0x3c')](_0x3a695b));}catch(_0x2b6231){_0x5e38d3(_0x2b6231);}}function _0x18cd8d(_0xbf501){try{_0x4183bd(_0x224c4c[a6_0x8c26('0x2e')](_0xbf501));}catch(_0x335a5a){_0x5e38d3(_0x335a5a);}}function _0x4183bd(_0x6c57e5){_0x6c57e5['done']?_0x1b13c6(_0x6c57e5['value']):_0x48c3da(_0x6c57e5[a6_0x8c26('0x4f')])[a6_0x8c26('0x47')](_0x4f83a5,_0x18cd8d);}_0x4183bd((_0x224c4c=_0x224c4c[a6_0x8c26('0x2f')](_0x534a4d,_0x43188c||[]))[a6_0x8c26('0x3c')]());});};Object['defineProperty'](exports,a6_0x8c26('0x9'),{'value':!![]});exports[a6_0x8c26('0x28')]=void 0x0;const fs_1=require('fs');const stripJsonComments=require(a6_0x8c26('0x52'));const yargsParser=require(a6_0x8c26('0x24'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a6_0x8c26('0x7'));const print_cacheable_targets_error_1=require(a6_0x8c26('0x3d'));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('./distributed-agent.api');const execute_tasks_1=require(a6_0x8c26('0x3e'));const dte_artifact_storage_1=require(a6_0x8c26('0x1f'));const file_storage_1=require(a6_0x8c26('0x4c'));const e2e_encryption_1=require(a6_0x8c26('0x53'));const error_reporter_api_1=require(a6_0x8c26('0x32'));const invoke_tasks_using_run_many_1=require(a6_0x8c26('0x1b'));const invoke_tasks_using_nx_imperative_api_1=require(a6_0x8c26('0x27'));const is_workspace_enabled_1=require(a6_0x8c26('0x44'));const {output,initTasksRunner,workspaceRoot,cacheDirectory}=require(a6_0x8c26('0x42'));const args=yargsParser(process['argv'],{'array':[a6_0x8c26('0x22')],'default':{}});if(args[a6_0x8c26('0x22')]&&args[a6_0x8c26('0x22')][a6_0x8c26('0x5')]===0x1){args['targets']=args[a6_0x8c26('0x22')][0x0][a6_0x8c26('0x50')](',')[a6_0x8c26('0x18')](_0x3369c1=>_0x3369c1['trim']());}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x6d7982=(0x0,environment_1['getBranch'])();const _0x27832b=(0x0,environment_1[a6_0x8c26('0x11')])();const _0x48817b=(0x0,environment_1[a6_0x8c26('0x8')])();const _0x4120fb=(0x0,environment_1[a6_0x8c26('0x46')])();if(!(0x0,print_run_group_error_1[a6_0x8c26('0x21')])(_0x27832b,_0x48817b)){(0x0,print_run_group_error_1[a6_0x8c26('0x45')])();process[a6_0x8c26('0x31')](0x1);}if(args['targets']&&args[a6_0x8c26('0x22')][a6_0x8c26('0x5')]){output[a6_0x8c26('0x1a')]({'title':a6_0x8c26('0x48')+args['targets'][a6_0x8c26('0x25')](',\x20')+']'});}else{output[a6_0x8c26('0x1a')]({'title':a6_0x8c26('0x13')});}const _0x446ccd=JSON[a6_0x8c26('0xa')](stripJsonComments((0x0,fs_1[a6_0x8c26('0x57')])(workspaceRoot+a6_0x8c26('0x16'))[a6_0x8c26('0xd')]()))[a6_0x8c26('0x6')]['default'];if(_0x446ccd[a6_0x8c26('0x0')]!==a6_0x8c26('0x36')&&_0x446ccd[a6_0x8c26('0x0')]!==a6_0x8c26('0x10')){(0x0,print_invalid_runner_error_1['printInvalidRunnerError'])();return process[a6_0x8c26('0x31')](0x1);}const _0x9cdfae=_0x446ccd[a6_0x8c26('0x49')];if(args[a6_0x8c26('0x22')]&&args[a6_0x8c26('0x22')][a6_0x8c26('0x51')](_0x559570=>{var _0x42ad60;return!((_0x42ad60=_0x9cdfae[a6_0x8c26('0x5a')])===null||_0x42ad60===void 0x0?void 0x0:_0x42ad60[a6_0x8c26('0x2b')](_0x559570));})){const _0x445d50=args['targets']['filter'](_0x22d9aa=>{var _0x2e8f65;return!((_0x2e8f65=_0x9cdfae[a6_0x8c26('0x5a')])===null||_0x2e8f65===void 0x0?void 0x0:_0x2e8f65['includes'](_0x22d9aa));});(0x0,print_cacheable_targets_error_1[a6_0x8c26('0x41')])(_0x445d50);return process[a6_0x8c26('0x31')](0x1);}const _0xba2995=yield(0x0,is_workspace_enabled_1[a6_0x8c26('0x1e')])(_0x9cdfae);if(!_0xba2995){output[a6_0x8c26('0x4b')]({'title':'Nx\x20Cloud:\x20Workspace\x20is\x20disabled','bodyLines':[a6_0x8c26('0x33'),'',a6_0x8c26('0x3f')]});process[a6_0x8c26('0x31')](0x1);}const _0x3d7f9d=getAgentName();const _0x2872fd=new distributed_agent_api_1[(a6_0x8c26('0x2c'))](_0x9cdfae,_0x6d7982,_0x27832b,_0x48817b,_0x4120fb,_0x3d7f9d);createAgentLockfileAndSetUpListeners(_0x2872fd,_0x9cdfae,_0x3d7f9d);const _0x333df1=new e2e_encryption_1[(a6_0x8c26('0x2a'))](environment_1[a6_0x8c26('0x4d')]||_0x9cdfae[a6_0x8c26('0x23')]);const _0x1d0bbb=new error_reporter_api_1[(a6_0x8c26('0x15'))](_0x9cdfae);const _0x3d1f02=new dte_artifact_storage_1[(a6_0x8c26('0x37'))](new file_storage_1[(a6_0x8c26('0x1d'))](_0x333df1,_0x1d0bbb,_0x9cdfae,a6_0x8c26('0x14')),cacheDirectory);const _0x37966f=initTasksRunner?yield(0x0,invoke_tasks_using_nx_imperative_api_1[a6_0x8c26('0x3a')])(_0x9cdfae):yield(0x0,invoke_tasks_using_run_many_1[a6_0x8c26('0x19')])();return(0x0,execute_tasks_1[a6_0x8c26('0xe')])(_0x3d7f9d,_0x2872fd,_0x3d1f02,_0x37966f,args[a6_0x8c26('0x22')])[a6_0x8c26('0x47')](_0x3fbefd=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a6_0x8c26('0x56')])(_0x9cdfae);return _0x3fbefd;}))[a6_0x8c26('0x26')](_0x497a12=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x2872fd[a6_0x8c26('0x2d')]('Critical\x20Error\x20in\x20Agent:\x20\x22'+_0x497a12[a6_0x8c26('0x4')]+'\x22');throw _0x497a12;}));});}exports[a6_0x8c26('0x28')]=startAgent;function getAgentName(){if(process['env']['NX_AGENT_NAME']!==undefined){return process[a6_0x8c26('0x38')][a6_0x8c26('0x2')];}else if(process['env'][a6_0x8c26('0x30')]!==undefined&&process['env'][a6_0x8c26('0x29')]){return process[a6_0x8c26('0x38')][a6_0x8c26('0x29')];}else if(process[a6_0x8c26('0x38')][a6_0x8c26('0x30')]!==undefined&&process[a6_0x8c26('0x38')][a6_0x8c26('0x35')]){return process[a6_0x8c26('0x38')][a6_0x8c26('0x35')];}else{return a6_0x8c26('0x3b')+Math[a6_0x8c26('0x58')](Math[a6_0x8c26('0x17')]()*0x186a0);}}function createAgentLockfileAndSetUpListeners(_0x2574c9,_0x402426,_0xea4abd){const _0x57af73=cacheDirectory+a6_0x8c26('0x4e');const _0x33998e=_0x57af73+'/'+_0xea4abd+a6_0x8c26('0x3');if(!(0x0,fs_1[a6_0x8c26('0x43')])(_0x57af73)){(0x0,fs_1[a6_0x8c26('0x59')])(_0x57af73,{'recursive':!![]});}const _0x5b3a32=(0x0,fs_1[a6_0x8c26('0x54')])(_0x57af73);if(_0x5b3a32[a6_0x8c26('0x5')]){if(_0x5b3a32[a6_0x8c26('0x2b')](_0xea4abd+a6_0x8c26('0x3'))){output['error']({'title':a6_0x8c26('0x34'),'bodyLines':[a6_0x8c26('0x55'),'',a6_0x8c26('0x12')]});process[a6_0x8c26('0x31')](0x1);}output[a6_0x8c26('0x40')]({'title':a6_0x8c26('0x39'),'bodyLines':[a6_0x8c26('0x1c'),'','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.']});}(0x0,fs_1[a6_0x8c26('0x20')])(_0x33998e,'');process['on'](a6_0x8c26('0x31'),_0x5f339b=>{cleanupAgentLockfile(_0x33998e,_0x5f339b);});process['on'](a6_0x8c26('0x1'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x2574c9[a6_0x8c26('0x2d')](a6_0x8c26('0xb'));cleanupAgentLockfile(_0x33998e,0x1);}));process['on'](a6_0x8c26('0xc'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x2574c9[a6_0x8c26('0x2d')](a6_0x8c26('0x4a'));cleanupAgentLockfile(_0x33998e,0x1);}));}function cleanupAgentLockfile(_0x4e69dd,_0x466034){if((0x0,fs_1['existsSync'])(_0x4e69dd)){(0x0,fs_1['unlinkSync'])(_0x4e69dd);process[a6_0x8c26('0x31')](_0x466034);}}

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

const a7_0x25a9=['value','\x20downloading\x20artifacts\x20for\x20','throw','wait','NO_FURTHER_TASKS_TO_RUN','Distributed\x20Execution\x20Terminated','createUnchangedValueTimeout','No\x20new\x20messages\x20received\x20after\x20','error','../../../utilities/environment','number\x20of\x20tasks:\x20','completed:\x20','retrieveAndExtract','length','RUN_GROUP_COMPLETED','\x20received\x20an\x20API\x20Response','criticalErrorMessage','retryDuring:\x20','executeTasks','error:\x20','then','apply','Error:','maxParallel','NO_MESSAGES_TIMEOUT','note','\x20fetching\x20tasks...','hash','status:\x20','executionId:\x20','next','executionId','done','completedTasks','status','../../../utilities/create-unchanged-value-timeout','VERBOSE_LOGGING','maxParallel:\x20','Waiter','tasks','\x20waiting...','url','exit','completed','../../../utilities/waiter','__esModule','taskId','\x20Url:\x20','retryDuring','getTime'];(function(_0x409f50,_0x25a905){const _0x47c372=function(_0x5d7640){while(--_0x5d7640){_0x409f50['push'](_0x409f50['shift']());}};_0x47c372(++_0x25a905);}(a7_0x25a9,0x173));const a7_0x47c3=function(_0x409f50,_0x25a905){_0x409f50=_0x409f50-0x0;let _0x47c372=a7_0x25a9[_0x409f50];return _0x47c372;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0xc18453,_0x16c719,_0x5eacea,_0x59df8e){function _0x3c91fe(_0x19f672){return _0x19f672 instanceof _0x5eacea?_0x19f672:new _0x5eacea(function(_0x4c9886){_0x4c9886(_0x19f672);});}return new(_0x5eacea||(_0x5eacea=Promise))(function(_0x424842,_0x5e5ef5){function _0x573459(_0x399145){try{_0xa40dfd(_0x59df8e[a7_0x47c3('0x9')](_0x399145));}catch(_0x2488f9){_0x5e5ef5(_0x2488f9);}}function _0x3303f3(_0x34d5b5){try{_0xa40dfd(_0x59df8e[a7_0x47c3('0x1f')](_0x34d5b5));}catch(_0x26a2c5){_0x5e5ef5(_0x26a2c5);}}function _0xa40dfd(_0x440e4f){_0x440e4f[a7_0x47c3('0xb')]?_0x424842(_0x440e4f[a7_0x47c3('0x1d')]):_0x3c91fe(_0x440e4f['value'])[a7_0x47c3('0x31')](_0x573459,_0x3303f3);}_0xa40dfd((_0x59df8e=_0x59df8e[a7_0x47c3('0x0')](_0xc18453,_0x16c719||[]))['next']());});};Object['defineProperty'](exports,a7_0x47c3('0x18'),{'value':!![]});exports[a7_0x47c3('0x2f')]=void 0x0;const create_unchanged_value_timeout_1=require(a7_0x47c3('0xe'));const environment_1=require(a7_0x47c3('0x26'));const waiter_1=require(a7_0x47c3('0x17'));const {output}=require('../../../utilities/nx-imports');function executeTasks(_0x1f9367,_0x40ae2a,_0xca1cbf,_0x19269e,_0x919192){return __awaiter(this,void 0x0,void 0x0,function*(){let _0xd6ed3b=0x0;let _0x4489ab=null;const _0x262ef5=(0x0,create_unchanged_value_timeout_1[a7_0x47c3('0x23')])({'title':a7_0x47c3('0x24')+environment_1[a7_0x47c3('0x3')]/0x3e8+'\x20seconds','timeout':environment_1['NO_MESSAGES_TIMEOUT']});const _0x474eac=new waiter_1[(a7_0x47c3('0x11'))]();let _0x5d2222=[];const _0x46997f=new Date();let _0x57b0d5=![];const _0x1624d5={};while(!![]){if(environment_1[a7_0x47c3('0xf')]){output[a7_0x47c3('0x4')]({'title':_0x1f9367+a7_0x47c3('0x5')});}_0x4489ab=yield _0x40ae2a[a7_0x47c3('0x12')](_0x4489ab?_0x4489ab['executionId']:null,_0xd6ed3b,_0x5d2222,_0x919192);if(environment_1['VERBOSE_LOGGING']){output[a7_0x47c3('0x4')]({'title':_0x1f9367+a7_0x47c3('0x2c'),'bodyLines':[a7_0x47c3('0x28')+_0x4489ab[a7_0x47c3('0x16')],a7_0x47c3('0x7')+_0x4489ab[a7_0x47c3('0xd')],a7_0x47c3('0x2e')+_0x4489ab[a7_0x47c3('0x1b')],a7_0x47c3('0x8')+_0x4489ab[a7_0x47c3('0xa')],a7_0x47c3('0x27')+_0x4489ab[a7_0x47c3('0x12')][a7_0x47c3('0x2a')],a7_0x47c3('0x30')+_0x4489ab[a7_0x47c3('0x2d')],a7_0x47c3('0x10')+_0x4489ab['maxParallel']]});}if(_0x4489ab['criticalErrorMessage']){output[a7_0x47c3('0x25')]({'title':a7_0x47c3('0x22'),'bodyLines':[a7_0x47c3('0x1'),_0x4489ab[a7_0x47c3('0x2d')]]});process[a7_0x47c3('0x15')](0x0);}if((_0x4489ab===null||_0x4489ab===void 0x0?void 0x0:_0x4489ab['retryDuring'])&&(_0x4489ab===null||_0x4489ab===void 0x0?void 0x0:_0x4489ab[a7_0x47c3('0x1b')])!==0x0&&!_0x57b0d5&&new Date()[a7_0x47c3('0x1c')]()-_0x46997f['getTime']()>_0x4489ab[a7_0x47c3('0x1b')]){yield _0x474eac[a7_0x47c3('0x20')]();continue;}if((_0x4489ab===null||_0x4489ab===void 0x0?void 0x0:_0x4489ab[a7_0x47c3('0xd')])!==undefined){if(_0x4489ab[a7_0x47c3('0xd')]===a7_0x47c3('0x2b')||_0x4489ab[a7_0x47c3('0xd')]===a7_0x47c3('0x21')){return;}}else if(_0x4489ab[a7_0x47c3('0x16')]){return;}_0x262ef5(_0x4489ab[a7_0x47c3('0x12')]['map'](_0x2fcda7=>_0x2fcda7[a7_0x47c3('0x19')])['join'](''));if(!_0x4489ab[a7_0x47c3('0xa')]){if(environment_1['VERBOSE_LOGGING']){output[a7_0x47c3('0x4')]({'title':_0x1f9367+a7_0x47c3('0x13')});}yield _0x474eac['wait']();_0xd6ed3b=0x0;_0x5d2222=[];continue;}_0x474eac['reset']();_0x57b0d5=!![];if(_0x4489ab['completedTasks']){for(const _0x35d11a of _0x4489ab[a7_0x47c3('0xc')]){if(_0x1624d5[_0x35d11a[a7_0x47c3('0x19')]])continue;output['note']({'title':_0x1f9367+a7_0x47c3('0x1e')+_0x35d11a[a7_0x47c3('0x19')]+'\x20Hash:\x20'+_0x35d11a[a7_0x47c3('0x6')]+a7_0x47c3('0x1a')+_0x35d11a[a7_0x47c3('0x14')]});yield _0xca1cbf[a7_0x47c3('0x29')](_0x35d11a[a7_0x47c3('0x6')],_0x35d11a['url']);_0x1624d5[_0x35d11a['taskId']]=!![];}}const _0x17da89=yield _0x19269e(_0x4489ab[a7_0x47c3('0xa')],_0x4489ab['tasks'],_0x4489ab[a7_0x47c3('0x2')]);for(const _0x267bd9 of _0x17da89[a7_0x47c3('0xc')]){_0x1624d5[_0x267bd9['taskId']]=!![];}_0xd6ed3b=_0x17da89['completedStatusCode'];_0x5d2222=_0x17da89['completedTasks'];}});}exports[a7_0x47c3('0x2f')]=executeTasks;
const a7_0x55c4=['__awaiter','taskId','No\x20new\x20messages\x20received\x20after\x20','tasks','completedTasks','length','getTime','\x20fetching\x20tasks...','\x20downloading\x20artifacts\x20for\x20','../../../utilities/create-unchanged-value-timeout','Error:','url','retryDuring','next','\x20received\x20an\x20API\x20Response','../../../utilities/environment','executionId','value','NO_FURTHER_TASKS_TO_RUN','executeTasks','completedStatusCode','Distributed\x20Execution\x20Terminated','reset','\x20seconds','\x20waiting...','createUnchangedValueTimeout','\x20Hash:\x20','number\x20of\x20tasks:\x20','status','__esModule','error','apply','hash','error:\x20','then','wait','exit','status:\x20','VERBOSE_LOGGING','completed','maxParallel:\x20','retrieveAndExtract','done','../../../utilities/waiter','note','criticalErrorMessage','map','join','executionId:\x20','maxParallel'];(function(_0xe28ac0,_0x55c4d6){const _0x27de7=function(_0x404d9e){while(--_0x404d9e){_0xe28ac0['push'](_0xe28ac0['shift']());}};_0x27de7(++_0x55c4d6);}(a7_0x55c4,0x9f));const a7_0x27de=function(_0xe28ac0,_0x55c4d6){_0xe28ac0=_0xe28ac0-0x0;let _0x27de7=a7_0x55c4[_0xe28ac0];return _0x27de7;};'use strict';var __awaiter=this&&this[a7_0x27de('0x29')]||function(_0x179404,_0x30ca85,_0x1a26aa,_0x2d6f51){function _0x4eba0b(_0x35a04f){return _0x35a04f instanceof _0x1a26aa?_0x35a04f:new _0x1a26aa(function(_0x5951f3){_0x5951f3(_0x35a04f);});}return new(_0x1a26aa||(_0x1a26aa=Promise))(function(_0x5424a3,_0x3a83f0){function _0x2edee1(_0x49c1b3){try{_0x2addce(_0x2d6f51[a7_0x27de('0x4')](_0x49c1b3));}catch(_0x447d3b){_0x3a83f0(_0x447d3b);}}function _0x590c73(_0xf55329){try{_0x2addce(_0x2d6f51['throw'](_0xf55329));}catch(_0x5e06d4){_0x3a83f0(_0x5e06d4);}}function _0x2addce(_0x17972d){_0x17972d[a7_0x27de('0x21')]?_0x5424a3(_0x17972d[a7_0x27de('0x8')]):_0x4eba0b(_0x17972d[a7_0x27de('0x8')])[a7_0x27de('0x19')](_0x2edee1,_0x590c73);}_0x2addce((_0x2d6f51=_0x2d6f51[a7_0x27de('0x16')](_0x179404,_0x30ca85||[]))[a7_0x27de('0x4')]());});};Object['defineProperty'](exports,a7_0x27de('0x14'),{'value':!![]});exports[a7_0x27de('0xa')]=void 0x0;const create_unchanged_value_timeout_1=require(a7_0x27de('0x0'));const environment_1=require(a7_0x27de('0x6'));const waiter_1=require(a7_0x27de('0x22'));const {output}=require('../../../utilities/nx-imports');function executeTasks(_0x20374a,_0x4b0a30,_0x18c7e5,_0x5eeb30,_0x36caa6){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x4e3728=0x0;let _0x56a5b8=null;const _0x29435e=(0x0,create_unchanged_value_timeout_1[a7_0x27de('0x10')])({'title':a7_0x27de('0x2b')+environment_1['NO_MESSAGES_TIMEOUT']/0x3e8+a7_0x27de('0xe'),'timeout':environment_1['NO_MESSAGES_TIMEOUT']});const _0x154f6d=new waiter_1['Waiter']();let _0x5c1a73=[];const _0x1bf701=new Date();let _0xb9ff0=![];const _0x49f25b={};while(!![]){if(environment_1['VERBOSE_LOGGING']){output[a7_0x27de('0x23')]({'title':_0x20374a+a7_0x27de('0x30')});}_0x56a5b8=yield _0x4b0a30[a7_0x27de('0x2c')](_0x56a5b8?_0x56a5b8[a7_0x27de('0x7')]:null,_0x4e3728,_0x5c1a73,_0x36caa6);if(environment_1[a7_0x27de('0x1d')]){output['note']({'title':_0x20374a+a7_0x27de('0x5'),'bodyLines':['completed:\x20'+_0x56a5b8[a7_0x27de('0x1e')],a7_0x27de('0x1c')+_0x56a5b8[a7_0x27de('0x13')],'retryDuring:\x20'+_0x56a5b8[a7_0x27de('0x3')],a7_0x27de('0x27')+_0x56a5b8[a7_0x27de('0x7')],a7_0x27de('0x12')+_0x56a5b8['tasks'][a7_0x27de('0x2e')],a7_0x27de('0x18')+_0x56a5b8[a7_0x27de('0x24')],a7_0x27de('0x1f')+_0x56a5b8[a7_0x27de('0x28')]]});}if(_0x56a5b8['criticalErrorMessage']){output[a7_0x27de('0x15')]({'title':a7_0x27de('0xc'),'bodyLines':[a7_0x27de('0x1'),_0x56a5b8['criticalErrorMessage']]});process[a7_0x27de('0x1b')](0x0);}if((_0x56a5b8===null||_0x56a5b8===void 0x0?void 0x0:_0x56a5b8[a7_0x27de('0x3')])&&(_0x56a5b8===null||_0x56a5b8===void 0x0?void 0x0:_0x56a5b8[a7_0x27de('0x3')])!==0x0&&!_0xb9ff0&&new Date()[a7_0x27de('0x2f')]()-_0x1bf701[a7_0x27de('0x2f')]()>_0x56a5b8[a7_0x27de('0x3')]){yield _0x154f6d[a7_0x27de('0x1a')]();continue;}if((_0x56a5b8===null||_0x56a5b8===void 0x0?void 0x0:_0x56a5b8[a7_0x27de('0x13')])!==undefined){if(_0x56a5b8[a7_0x27de('0x13')]==='RUN_GROUP_COMPLETED'||_0x56a5b8[a7_0x27de('0x13')]===a7_0x27de('0x9')){return;}}else if(_0x56a5b8[a7_0x27de('0x1e')]){return;}_0x29435e(_0x56a5b8[a7_0x27de('0x2c')][a7_0x27de('0x25')](_0x13705d=>_0x13705d[a7_0x27de('0x2a')])[a7_0x27de('0x26')](''));if(!_0x56a5b8[a7_0x27de('0x7')]){if(environment_1['VERBOSE_LOGGING']){output[a7_0x27de('0x23')]({'title':_0x20374a+a7_0x27de('0xf')});}yield _0x154f6d['wait']();_0x4e3728=0x0;_0x5c1a73=[];continue;}_0x154f6d[a7_0x27de('0xd')]();_0xb9ff0=!![];if(_0x56a5b8['completedTasks']){for(const _0xfae783 of _0x56a5b8[a7_0x27de('0x2d')]){if(_0x49f25b[_0xfae783[a7_0x27de('0x2a')]])continue;output[a7_0x27de('0x23')]({'title':_0x20374a+a7_0x27de('0x31')+_0xfae783[a7_0x27de('0x2a')]+a7_0x27de('0x11')+_0xfae783[a7_0x27de('0x17')]+'\x20Url:\x20'+_0xfae783[a7_0x27de('0x2')]});yield _0x18c7e5[a7_0x27de('0x20')](_0xfae783[a7_0x27de('0x17')],_0xfae783['url']);_0x49f25b[_0xfae783[a7_0x27de('0x2a')]]=!![];}}const _0x205e52=yield _0x5eeb30(_0x56a5b8['executionId'],_0x56a5b8[a7_0x27de('0x2c')],_0x56a5b8[a7_0x27de('0x28')]);for(const _0x2a5281 of _0x205e52[a7_0x27de('0x2d')]){_0x49f25b[_0x2a5281['taskId']]=!![];}_0x4e3728=_0x205e52[a7_0x27de('0xb')];_0x5c1a73=_0x205e52[a7_0x27de('0x2d')];}});}exports[a7_0x27de('0xa')]=executeTasks;

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

const a8_0x4a16=['then','value','projectName','defineProperty','configuration','unparse','taskGraph','env','tasks','yargs-parser','assign','status','next','params','true','NX_PREFIX_OUTPUT','apply','taskId','__esModule','values','../../../utilities/nx-imports','NX_CACHE_FAILURES','../../../utilities/serializer-overrides','length','invokeTasksUsingNxImperativeApi','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','__awaiter','throw','hash','target','map'];(function(_0x239a0b,_0x4a16c6){const _0x5d8846=function(_0x2fffc5){while(--_0x2fffc5){_0x239a0b['push'](_0x239a0b['shift']());}};_0x5d8846(++_0x4a16c6);}(a8_0x4a16,0xf9));const a8_0x5d88=function(_0x239a0b,_0x4a16c6){_0x239a0b=_0x239a0b-0x0;let _0x5d8846=a8_0x4a16[_0x239a0b];return _0x5d8846;};'use strict';var __awaiter=this&&this[a8_0x5d88('0x19')]||function(_0x4ae5dd,_0x25114a,_0x108cc7,_0xd839bd){function _0xf1fc7e(_0x2cda7b){return _0x2cda7b instanceof _0x108cc7?_0x2cda7b:new _0x108cc7(function(_0x42e677){_0x42e677(_0x2cda7b);});}return new(_0x108cc7||(_0x108cc7=Promise))(function(_0x2771bf,_0x15fffc){function _0x1ff7da(_0x8485bd){try{_0x2ad0be(_0xd839bd[a8_0x5d88('0xb')](_0x8485bd));}catch(_0x5d2c1c){_0x15fffc(_0x5d2c1c);}}function _0x29f0b2(_0x53c721){try{_0x2ad0be(_0xd839bd[a8_0x5d88('0x1a')](_0x53c721));}catch(_0x34145d){_0x15fffc(_0x34145d);}}function _0x2ad0be(_0xedced1){_0xedced1['done']?_0x2771bf(_0xedced1[a8_0x5d88('0x0')]):_0xf1fc7e(_0xedced1['value'])[a8_0x5d88('0x1e')](_0x1ff7da,_0x29f0b2);}_0x2ad0be((_0xd839bd=_0xd839bd[a8_0x5d88('0xf')](_0x4ae5dd,_0x25114a||[]))[a8_0x5d88('0xb')]());});};Object[a8_0x5d88('0x2')](exports,a8_0x5d88('0x11'),{'value':!![]});exports[a8_0x5d88('0x17')]=void 0x0;const {initTasksRunner}=require(a8_0x5d88('0x13'));const parser=require(a8_0x5d88('0x8'));const serializer_overrides_1=require(a8_0x5d88('0x15'));function invokeTasksUsingNxImperativeApi(_0x15ccb0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x158663=yield initTasksRunner(_0x15ccb0);return(_0xb477a7,_0x1b9c4d,_0x2721aa)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x2041d7=_0x1b9c4d[a8_0x5d88('0x1d')](_0x80c9d3=>{const _0x16552c=parser(_0x80c9d3[a8_0x5d88('0xc')],{'configuration':{'camel-case-expansion':![],'dot-notation':!![]}});const _0x52655e=(0x0,serializer_overrides_1[a8_0x5d88('0x4')])(_0x16552c);if(_0x16552c['_'][a8_0x5d88('0x16')]==0x0){delete _0x16552c['_'];}return{'id':_0x80c9d3[a8_0x5d88('0x10')],'target':{'project':_0x80c9d3[a8_0x5d88('0x1')],'target':_0x80c9d3[a8_0x5d88('0x1c')],'configuration':_0x80c9d3[a8_0x5d88('0x3')]},'overrides':Object[a8_0x5d88('0x9')](Object[a8_0x5d88('0x9')]({},_0x16552c),{'__overrides_unparsed__':_0x52655e})};});process[a8_0x5d88('0x6')][a8_0x5d88('0x14')]=a8_0x5d88('0xd');process[a8_0x5d88('0x6')][a8_0x5d88('0x18')]=_0xb477a7;process[a8_0x5d88('0x6')]['NX_STREAM_OUTPUT']=a8_0x5d88('0xd');process[a8_0x5d88('0x6')][a8_0x5d88('0xe')]=a8_0x5d88('0xd');const _0xdf8ff2=yield _0x158663['invoke']({'tasks':_0x2041d7,'parallel':_0x2721aa});const _0x2874fe=Object[a8_0x5d88('0x12')](_0xdf8ff2[a8_0x5d88('0x5')][a8_0x5d88('0x7')]);return{'completedTasks':_0x2874fe[a8_0x5d88('0x1d')](_0x1b28c8=>({'taskId':_0x1b28c8['id'],'hash':_0x1b28c8[a8_0x5d88('0x1b')]})),'completedStatusCode':_0xdf8ff2[a8_0x5d88('0xa')]};});});}exports[a8_0x5d88('0x17')]=invokeTasksUsingNxImperativeApi;
const a8_0x5ca5=['status','length','yargs-parser','unparse','taskGraph','throw','hash','../../../utilities/serializer-overrides','apply','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','projectName','target','NX_PREFIX_OUTPUT','configuration','invoke','../../../utilities/nx-imports','value','assign','env','then','true','__esModule','invokeTasksUsingNxImperativeApi','tasks','map','taskId'];(function(_0x1fd7d7,_0x5ca531){const _0x5c7831=function(_0x54a716){while(--_0x54a716){_0x1fd7d7['push'](_0x1fd7d7['shift']());}};_0x5c7831(++_0x5ca531);}(a8_0x5ca5,0xe9));const a8_0x5c78=function(_0x1fd7d7,_0x5ca531){_0x1fd7d7=_0x1fd7d7-0x0;let _0x5c7831=a8_0x5ca5[_0x1fd7d7];return _0x5c7831;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x1f3bbd,_0x594a73,_0x28287f,_0x3aea10){function _0x231f40(_0x2c46be){return _0x2c46be instanceof _0x28287f?_0x2c46be:new _0x28287f(function(_0x4428fe){_0x4428fe(_0x2c46be);});}return new(_0x28287f||(_0x28287f=Promise))(function(_0x322b74,_0x3522ab){function _0x3515db(_0x9771fb){try{_0x4eec44(_0x3aea10['next'](_0x9771fb));}catch(_0x472182){_0x3522ab(_0x472182);}}function _0x50c54b(_0x473c9d){try{_0x4eec44(_0x3aea10[a8_0x5c78('0x6')](_0x473c9d));}catch(_0x1ddc7e){_0x3522ab(_0x1ddc7e);}}function _0x4eec44(_0x1ec591){_0x1ec591['done']?_0x322b74(_0x1ec591[a8_0x5c78('0x11')]):_0x231f40(_0x1ec591['value'])[a8_0x5c78('0x14')](_0x3515db,_0x50c54b);}_0x4eec44((_0x3aea10=_0x3aea10[a8_0x5c78('0x9')](_0x1f3bbd,_0x594a73||[]))['next']());});};Object['defineProperty'](exports,a8_0x5c78('0x16'),{'value':!![]});exports[a8_0x5c78('0x17')]=void 0x0;const {initTasksRunner}=require(a8_0x5c78('0x10'));const parser=require(a8_0x5c78('0x3'));const serializer_overrides_1=require(a8_0x5c78('0x8'));function invokeTasksUsingNxImperativeApi(_0x31be49){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1f8b20=yield initTasksRunner(_0x31be49);return(_0xd20843,_0x847055,_0x1f5031)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x407cf5=_0x847055[a8_0x5c78('0x19')](_0x137167=>{const _0x2a616e=parser(_0x137167['params'],{'configuration':{'camel-case-expansion':![],'dot-notation':!![]}});const _0x5909ae=(0x0,serializer_overrides_1[a8_0x5c78('0x4')])(_0x2a616e);if(_0x2a616e['_'][a8_0x5c78('0x2')]==0x0){delete _0x2a616e['_'];}return{'id':_0x137167[a8_0x5c78('0x0')],'target':{'project':_0x137167[a8_0x5c78('0xb')],'target':_0x137167[a8_0x5c78('0xc')],'configuration':_0x137167[a8_0x5c78('0xe')]},'overrides':Object[a8_0x5c78('0x12')](Object[a8_0x5c78('0x12')]({},_0x2a616e),{'__overrides_unparsed__':_0x5909ae})};});process['env']['NX_CACHE_FAILURES']=a8_0x5c78('0x15');process[a8_0x5c78('0x13')][a8_0x5c78('0xa')]=_0xd20843;process[a8_0x5c78('0x13')]['NX_STREAM_OUTPUT']=a8_0x5c78('0x15');process[a8_0x5c78('0x13')][a8_0x5c78('0xd')]=a8_0x5c78('0x15');const _0x3915e9=yield _0x1f8b20[a8_0x5c78('0xf')]({'tasks':_0x407cf5,'parallel':_0x1f5031});const _0x548966=Object['values'](_0x3915e9[a8_0x5c78('0x5')][a8_0x5c78('0x18')]);return{'completedTasks':_0x548966[a8_0x5c78('0x19')](_0x5ac3db=>({'taskId':_0x5ac3db['id'],'hash':_0x5ac3db[a8_0x5c78('0x7')]})),'completedStatusCode':_0x3915e9[a8_0x5c78('0x1')]};});});}exports['invokeTasksUsingNxImperativeApi']=invokeTasksUsingNxImperativeApi;

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

const a9_0x225e=['length',').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.','--configuration=','forEach','configuration','true','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','assign','parse','invokeTasksUsingRunMany','../../../utilities/nx-imports','child_process','push','projects','Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20','status','join','params','inherit','apply','__awaiter','__esModule','/tasks-hashes-','unlinkSync','throw','then','value','env','ignore','Executing:\x20\x27','next','execSync','VERBOSE_LOGGING','projectName','npx\x20nx\x20run-many\x20--target=','done','toString','\x20--projects=','\x20--parallel\x20--max-parallel=','target','note','find'];(function(_0x1db01e,_0x225ed1){const _0x3fcf5f=function(_0x294e0d){while(--_0x294e0d){_0x1db01e['push'](_0x1db01e['shift']());}};_0x3fcf5f(++_0x225ed1);}(a9_0x225e,0xe0));const a9_0x3fcf=function(_0x1db01e,_0x225ed1){_0x1db01e=_0x1db01e-0x0;let _0x3fcf5f=a9_0x225e[_0x1db01e];return _0x3fcf5f;};'use strict';var __awaiter=this&&this[a9_0x3fcf('0x6')]||function(_0x1c8e6c,_0x5556b3,_0x5acb07,_0x1784f5){function _0x493936(_0x3c0e39){return _0x3c0e39 instanceof _0x5acb07?_0x3c0e39:new _0x5acb07(function(_0x48abba){_0x48abba(_0x3c0e39);});}return new(_0x5acb07||(_0x5acb07=Promise))(function(_0x10aba8,_0x4ae5fa){function _0xa4a00c(_0x498116){try{_0x4cecf4(_0x1784f5[a9_0x3fcf('0x10')](_0x498116));}catch(_0x25e19f){_0x4ae5fa(_0x25e19f);}}function _0x4dc159(_0x5a501a){try{_0x4cecf4(_0x1784f5[a9_0x3fcf('0xa')](_0x5a501a));}catch(_0x52da02){_0x4ae5fa(_0x52da02);}}function _0x4cecf4(_0x48f73f){_0x48f73f[a9_0x3fcf('0x15')]?_0x10aba8(_0x48f73f[a9_0x3fcf('0xc')]):_0x493936(_0x48f73f[a9_0x3fcf('0xc')])[a9_0x3fcf('0xb')](_0xa4a00c,_0x4dc159);}_0x4cecf4((_0x1784f5=_0x1784f5[a9_0x3fcf('0x5')](_0x1c8e6c,_0x5556b3||[]))['next']());});};Object['defineProperty'](exports,a9_0x3fcf('0x7'),{'value':!![]});exports[a9_0x3fcf('0x25')]=void 0x0;const environment_1=require('../../../utilities/environment');const child_process_1=require(a9_0x3fcf('0x27'));const fs_1=require('fs');const {output,cacheDirectory}=require(a9_0x3fcf('0x26'));function invokeTasksUsingRunMany(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x307819=completedTasksReader();return function _0x10b9ca(_0x2660b4,_0x3b161e,_0x14f493){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x1b6f7b=0x0;const _0x986503=[];for(const _0x4169e3 of groupByTarget(_0x3b161e)){const _0x48eb36=_0x4169e3[a9_0x3fcf('0x20')]?a9_0x3fcf('0x1e')+_0x4169e3[a9_0x3fcf('0x20')]:'';const _0x5d0c97=_0x14f493>0x1?a9_0x3fcf('0x18')+_0x14f493:'';const _0x1493dc=a9_0x3fcf('0x14')+_0x4169e3[a9_0x3fcf('0x19')]+'\x20'+_0x48eb36+a9_0x3fcf('0x17')+_0x4169e3[a9_0x3fcf('0x29')][a9_0x3fcf('0x2')](',')+'\x20'+_0x4169e3[a9_0x3fcf('0x3')]+_0x5d0c97;if(environment_1[a9_0x3fcf('0x12')]){output[a9_0x3fcf('0x1a')]({'title':a9_0x3fcf('0xf')+_0x1493dc+'\x27'});}try{(0x0,child_process_1[a9_0x3fcf('0x11')])(_0x1493dc,{'stdio':[a9_0x3fcf('0xe'),a9_0x3fcf('0x4'),'inherit'],'env':Object[a9_0x3fcf('0x23')](Object[a9_0x3fcf('0x23')]({},process[a9_0x3fcf('0xd')]),{'NX_CACHE_FAILURES':a9_0x3fcf('0x21'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x2660b4,'NX_STREAM_OUTPUT':a9_0x3fcf('0x21'),'NX_PREFIX_OUTPUT':a9_0x3fcf('0x21')})});_0x986503[a9_0x3fcf('0x28')](..._0x307819(_0x2660b4));}catch(_0x445f59){if(_0x445f59[a9_0x3fcf('0x1')]===environment_1[a9_0x3fcf('0x22')]){throw _0x445f59;}else{_0x1b6f7b=0x1;_0x986503[a9_0x3fcf('0x28')](..._0x307819(_0x2660b4));}}}return{'completedStatusCode':_0x1b6f7b,'completedTasks':_0x986503};});};});}exports[a9_0x3fcf('0x25')]=invokeTasksUsingRunMany;function groupByTarget(_0x2cd49f){const _0x57954d=[];_0x2cd49f[a9_0x3fcf('0x1f')](_0x1685b8=>{const _0x1ad632=_0x57954d[a9_0x3fcf('0x1b')](_0x144962=>_0x144962[a9_0x3fcf('0x19')]===_0x1685b8['target']&&_0x144962[a9_0x3fcf('0x20')]===_0x1685b8['configuration']);if(_0x1ad632){_0x1ad632[a9_0x3fcf('0x29')]['push'](_0x1685b8[a9_0x3fcf('0x13')]);}else{_0x57954d[a9_0x3fcf('0x28')]({'target':_0x1685b8[a9_0x3fcf('0x19')],'projects':[_0x1685b8['projectName']],'params':_0x1685b8[a9_0x3fcf('0x3')],'configuration':_0x1685b8[a9_0x3fcf('0x20')]});}});return _0x57954d;}function completedTasksReader(){return _0x31462f=>{const _0x388e87=a9_0x3fcf('0x0')+_0x31462f+a9_0x3fcf('0x1d');let _0x2d0580;try{const _0x4f68ba=cacheDirectory+a9_0x3fcf('0x8')+_0x31462f;_0x2d0580=JSON[a9_0x3fcf('0x24')]((0x0,fs_1['readFileSync'])(_0x4f68ba)[a9_0x3fcf('0x16')]());(0x0,fs_1[a9_0x3fcf('0x9')])(_0x4f68ba);}catch(_0xd5fb0){throw new Error(_0x388e87);}if(_0x2d0580[a9_0x3fcf('0x1c')]==0x0){throw new Error(_0x388e87);}return _0x2d0580;};}
const a9_0x56f0=['unlinkSync','Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20',').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.','VERBOSE_LOGGING','value','../../../utilities/environment','params','Executing:\x20\x27','child_process','inherit','configuration','next','readFileSync','apply','projectName','invokeTasksUsingRunMany','parse','\x20--parallel\x20--max-parallel=','ignore','assign','defineProperty','throw','__esModule','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','push','../../../utilities/nx-imports','done','note','then','env','projects','execSync','join','find','true','target','\x20--projects=','--configuration='];(function(_0x2c7890,_0x56f0e3){const _0xb72cca=function(_0x529e2e){while(--_0x529e2e){_0x2c7890['push'](_0x2c7890['shift']());}};_0xb72cca(++_0x56f0e3);}(a9_0x56f0,0x11e));const a9_0xb72c=function(_0x2c7890,_0x56f0e3){_0x2c7890=_0x2c7890-0x0;let _0xb72cca=a9_0x56f0[_0x2c7890];return _0xb72cca;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0xa848c7,_0x4fdc58,_0x56c80a,_0x4858cc){function _0x4c5b04(_0x26b740){return _0x26b740 instanceof _0x56c80a?_0x26b740:new _0x56c80a(function(_0x2ead80){_0x2ead80(_0x26b740);});}return new(_0x56c80a||(_0x56c80a=Promise))(function(_0x1d6fac,_0x5e74ea){function _0x3650f2(_0x3ab8ac){try{_0x3a2590(_0x4858cc['next'](_0x3ab8ac));}catch(_0x273c50){_0x5e74ea(_0x273c50);}}function _0x4831df(_0x6bf356){try{_0x3a2590(_0x4858cc[a9_0xb72c('0x1')](_0x6bf356));}catch(_0x53f00f){_0x5e74ea(_0x53f00f);}}function _0x3a2590(_0x2a48b4){_0x2a48b4[a9_0xb72c('0x6')]?_0x1d6fac(_0x2a48b4[a9_0xb72c('0x16')]):_0x4c5b04(_0x2a48b4['value'])[a9_0xb72c('0x8')](_0x3650f2,_0x4831df);}_0x3a2590((_0x4858cc=_0x4858cc[a9_0xb72c('0x1f')](_0xa848c7,_0x4fdc58||[]))[a9_0xb72c('0x1d')]());});};Object[a9_0xb72c('0x0')](exports,a9_0xb72c('0x2'),{'value':!![]});exports[a9_0xb72c('0x21')]=void 0x0;const environment_1=require(a9_0xb72c('0x17'));const child_process_1=require(a9_0xb72c('0x1a'));const fs_1=require('fs');const {output,cacheDirectory}=require(a9_0xb72c('0x5'));function invokeTasksUsingRunMany(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5970cb=completedTasksReader();return function _0x4deaaa(_0x4b32f5,_0x128e5b,_0x211488){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x21336d=0x0;const _0x1d903b=[];for(const _0x434f26 of groupByTarget(_0x128e5b)){const _0x218f1c=_0x434f26[a9_0xb72c('0x1c')]?a9_0xb72c('0x11')+_0x434f26[a9_0xb72c('0x1c')]:'';const _0x376e46=_0x211488>0x1?a9_0xb72c('0x23')+_0x211488:'';const _0x5d7080='npx\x20nx\x20run-many\x20--target='+_0x434f26[a9_0xb72c('0xf')]+'\x20'+_0x218f1c+a9_0xb72c('0x10')+_0x434f26[a9_0xb72c('0xa')][a9_0xb72c('0xc')](',')+'\x20'+_0x434f26[a9_0xb72c('0x18')]+_0x376e46;if(environment_1[a9_0xb72c('0x15')]){output[a9_0xb72c('0x7')]({'title':a9_0xb72c('0x19')+_0x5d7080+'\x27'});}try{(0x0,child_process_1[a9_0xb72c('0xb')])(_0x5d7080,{'stdio':[a9_0xb72c('0x24'),a9_0xb72c('0x1b'),'inherit'],'env':Object[a9_0xb72c('0x25')](Object[a9_0xb72c('0x25')]({},process[a9_0xb72c('0x9')]),{'NX_CACHE_FAILURES':a9_0xb72c('0xe'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x4b32f5,'NX_STREAM_OUTPUT':'true','NX_PREFIX_OUTPUT':'true'})});_0x1d903b[a9_0xb72c('0x4')](..._0x5970cb(_0x4b32f5));}catch(_0x392684){if(_0x392684['status']===environment_1[a9_0xb72c('0x3')]){throw _0x392684;}else{_0x21336d=0x1;_0x1d903b[a9_0xb72c('0x4')](..._0x5970cb(_0x4b32f5));}}}return{'completedStatusCode':_0x21336d,'completedTasks':_0x1d903b};});};});}exports[a9_0xb72c('0x21')]=invokeTasksUsingRunMany;function groupByTarget(_0xee9ce1){const _0x42c618=[];_0xee9ce1['forEach'](_0x159b72=>{const _0x569bc2=_0x42c618[a9_0xb72c('0xd')](_0x41fb30=>_0x41fb30[a9_0xb72c('0xf')]===_0x159b72[a9_0xb72c('0xf')]&&_0x41fb30[a9_0xb72c('0x1c')]===_0x159b72[a9_0xb72c('0x1c')]);if(_0x569bc2){_0x569bc2[a9_0xb72c('0xa')][a9_0xb72c('0x4')](_0x159b72['projectName']);}else{_0x42c618[a9_0xb72c('0x4')]({'target':_0x159b72[a9_0xb72c('0xf')],'projects':[_0x159b72[a9_0xb72c('0x20')]],'params':_0x159b72[a9_0xb72c('0x18')],'configuration':_0x159b72[a9_0xb72c('0x1c')]});}});return _0x42c618;}function completedTasksReader(){return _0x251541=>{const _0x3cacb1=a9_0xb72c('0x13')+_0x251541+a9_0xb72c('0x14');let _0xc9724b;try{const _0x2a3e8a=cacheDirectory+'/tasks-hashes-'+_0x251541;_0xc9724b=JSON[a9_0xb72c('0x22')]((0x0,fs_1[a9_0xb72c('0x1e')])(_0x2a3e8a)['toString']());(0x0,fs_1[a9_0xb72c('0x12')])(_0x2a3e8a);}catch(_0xafa75d){throw new Error(_0x3cacb1);}if(_0xc9724b['length']==0x0){throw new Error(_0x3cacb1);}return _0xc9724b;};}

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

const a10_0x4705=['Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','createApiAxiosInstance','parseCommand','dteStart','configuration','completeRunGroupWithError','true','axiosMultipleTries','throw','apiAxiosInstance','axiosException','maxParallel','data','ciExecutionEnv:\x20','enabled','DistributedExecutionApi','defineProperty','ciExecutionId:\x20','runGroup:\x20','__awaiter','next','Completing\x20with\x20an\x20error','stringify','target','mapRespToPerfEntry','parallel','agentCount','post','../../../utilities/serializer-overrides','../../../utilities/metric-logger','/nx-cloud/executions/complete-run-group','__esModule','serializeOverrides','Starting\x20a\x20distributed\x20execution','RUNNER_FAILURE_PERF_ENTRY','done','note','stopAgentsOnFailure','start','status','then','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','/nx-cloud/executions/start','recordMetric','error:\x20','VERBOSE_LOGGING','hash','../../../utilities/axios','completeRunGroup','project','createMetricRecorder','/nx-cloud/executions/status','createStartRequest','error','response','map'];(function(_0x15fab1,_0x470576){const _0x41f026=function(_0xb08ee0){while(--_0xb08ee0){_0x15fab1['push'](_0x15fab1['shift']());}};_0x41f026(++_0x470576);}(a10_0x4705,0x69));const a10_0x41f0=function(_0x15fab1,_0x470576){_0x15fab1=_0x15fab1-0x0;let _0x41f026=a10_0x4705[_0x15fab1];return _0x41f026;};'use strict';var __awaiter=this&&this[a10_0x41f0('0x1a')]||function(_0x513ddc,_0x432ef2,_0x479cc2,_0x4d52d7){function _0x114b3a(_0x1c7222){return _0x1c7222 instanceof _0x479cc2?_0x1c7222:new _0x479cc2(function(_0x5c1bfe){_0x5c1bfe(_0x1c7222);});}return new(_0x479cc2||(_0x479cc2=Promise))(function(_0x488e33,_0x4be014){function _0x20b540(_0x2334ee){try{_0x4e6d9c(_0x4d52d7[a10_0x41f0('0x1b')](_0x2334ee));}catch(_0x3ae9c0){_0x4be014(_0x3ae9c0);}}function _0x18b428(_0x3c8899){try{_0x4e6d9c(_0x4d52d7[a10_0x41f0('0xf')](_0x3c8899));}catch(_0x22004d){_0x4be014(_0x22004d);}}function _0x4e6d9c(_0x3b638b){_0x3b638b[a10_0x41f0('0x2a')]?_0x488e33(_0x3b638b['value']):_0x114b3a(_0x3b638b['value'])[a10_0x41f0('0x2f')](_0x20b540,_0x18b428);}_0x4e6d9c((_0x4d52d7=_0x4d52d7['apply'](_0x513ddc,_0x432ef2||[]))[a10_0x41f0('0x1b')]());});};Object[a10_0x41f0('0x17')](exports,a10_0x41f0('0x26'),{'value':!![]});exports[a10_0x41f0('0x3')]=exports[a10_0x41f0('0x16')]=void 0x0;const axios_1=require(a10_0x41f0('0x36'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a10_0x41f0('0x24'));const serializer_overrides_1=require(a10_0x41f0('0x23'));const {output}=require('../../../utilities/nx-imports');class DistributedExecutionApi{constructor(_0x4c6dc3){this[a10_0x41f0('0x10')]=(0x0,axios_1[a10_0x41f0('0x8')])(_0x4c6dc3);}[a10_0x41f0('0x2d')](_0xfa75fa){var _0x2c428d;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3e981a=(0x0,metric_logger_1[a10_0x41f0('0x1')])(a10_0x41f0('0xa'));let _0x2947d0;if(environment_1[a10_0x41f0('0x34')]){output[a10_0x41f0('0x2b')]({'title':a10_0x41f0('0x28'),'bodyLines':[JSON[a10_0x41f0('0x1d')](_0xfa75fa,null,0x2)]});}try{_0x2947d0=yield(0x0,axios_1[a10_0x41f0('0xe')])(()=>this[a10_0x41f0('0x10')]['post'](a10_0x41f0('0x31'),_0xfa75fa));_0x3e981a[a10_0x41f0('0x32')]((0x0,metric_logger_1[a10_0x41f0('0x1f')])(_0x2947d0));}catch(_0x3976ac){_0x3e981a[a10_0x41f0('0x32')](((_0x2c428d=_0x3976ac===null||_0x3976ac===void 0x0?void 0x0:_0x3976ac['axiosException'])===null||_0x2c428d===void 0x0?void 0x0:_0x2c428d[a10_0x41f0('0x5')])?(0x0,metric_logger_1[a10_0x41f0('0x1f')])(_0x3976ac[a10_0x41f0('0x11')][a10_0x41f0('0x5')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x3976ac;}if(!_0x2947d0[a10_0x41f0('0x13')][a10_0x41f0('0x15')]){throw new Error(a10_0x41f0('0x7'));}if(_0x2947d0[a10_0x41f0('0x13')][a10_0x41f0('0x4')]){throw new Error(_0x2947d0[a10_0x41f0('0x13')][a10_0x41f0('0x4')]);}return _0x2947d0[a10_0x41f0('0x13')]['id'];});}[a10_0x41f0('0x2e')](_0x50db20){var _0x5af4c3;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52b50d=(0x0,metric_logger_1['createMetricRecorder'])('dteStatus');try{const _0xdfb7d4=yield(0x0,axios_1[a10_0x41f0('0xe')])(()=>this[a10_0x41f0('0x10')][a10_0x41f0('0x22')](a10_0x41f0('0x2'),{'id':_0x50db20}));_0x52b50d[a10_0x41f0('0x32')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0xdfb7d4));return _0xdfb7d4[a10_0x41f0('0x13')];}catch(_0x364429){_0x52b50d['recordMetric'](((_0x5af4c3=_0x364429===null||_0x364429===void 0x0?void 0x0:_0x364429[a10_0x41f0('0x11')])===null||_0x5af4c3===void 0x0?void 0x0:_0x5af4c3['response'])?(0x0,metric_logger_1[a10_0x41f0('0x1f')])(_0x364429[a10_0x41f0('0x11')]['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);output[a10_0x41f0('0x4')]({'title':_0x364429['message']});process['exit'](0x1);}});}[a10_0x41f0('0xc')](_0x13c48d,_0x15b1d9,_0x567ded,_0x585fd4,_0x201a08){var _0x4e26c5;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x58dd30=(0x0,metric_logger_1[a10_0x41f0('0x1')])(a10_0x41f0('0x37'));if(environment_1[a10_0x41f0('0x34')]){output[a10_0x41f0('0x2b')]({'title':a10_0x41f0('0x1c'),'bodyLines':[a10_0x41f0('0x18')+_0x567ded,a10_0x41f0('0x14')+_0x585fd4,a10_0x41f0('0x19')+_0x15b1d9,a10_0x41f0('0x33')+_0x201a08]});}try{const _0x5a9f13=yield(0x0,axios_1[a10_0x41f0('0xe')])(()=>this[a10_0x41f0('0x10')][a10_0x41f0('0x22')](a10_0x41f0('0x25'),{'runGroup':_0x15b1d9,'ciExecutionId':_0x567ded,'ciExecutionEnv':_0x585fd4,'criticalErrorMessage':_0x201a08}),0x3);_0x58dd30[a10_0x41f0('0x32')]((0x0,metric_logger_1[a10_0x41f0('0x1f')])(_0x5a9f13));}catch(_0xabe95c){_0x58dd30['recordMetric'](((_0x4e26c5=_0xabe95c===null||_0xabe95c===void 0x0?void 0x0:_0xabe95c[a10_0x41f0('0x11')])===null||_0x4e26c5===void 0x0?void 0x0:_0x4e26c5[a10_0x41f0('0x5')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0xabe95c['axiosException']['response']):metric_logger_1[a10_0x41f0('0x29')]);}});}}exports[a10_0x41f0('0x16')]=DistributedExecutionApi;function createStartRequest(_0x2eda78,_0x30cb6f,_0x32f016,_0x3de383,_0x2998a1,_0x477d93){const _0x38257a=_0x2998a1[a10_0x41f0('0x6')](_0x12f666=>{return _0x12f666[a10_0x41f0('0x6')](_0x360e18=>{return{'taskId':_0x360e18['id'],'hash':_0x360e18[a10_0x41f0('0x35')],'projectName':_0x360e18['target'][a10_0x41f0('0x0')],'target':_0x360e18[a10_0x41f0('0x1e')][a10_0x41f0('0x1e')],'configuration':_0x360e18[a10_0x41f0('0x1e')][a10_0x41f0('0xb')]||null,'params':(0x0,serializer_overrides_1[a10_0x41f0('0x27')])(_0x360e18)};});});const _0x4fcaef={'command':(0x0,environment_1[a10_0x41f0('0x9')])(),'branch':_0x2eda78,'runGroup':_0x30cb6f,'ciExecutionId':_0x32f016,'ciExecutionEnv':_0x3de383,'tasks':_0x38257a,'maxParallel':calculateMaxParallel(_0x477d93)};if(environment_1[a10_0x41f0('0x30')]){_0x4fcaef[a10_0x41f0('0x21')]=environment_1[a10_0x41f0('0x30')];}if(!environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE']){_0x4fcaef[a10_0x41f0('0x2c')]=![];}return _0x4fcaef;}exports[a10_0x41f0('0x3')]=createStartRequest;function calculateMaxParallel(_0x3e7e1b){if(_0x3e7e1b['parallel']==='false'||_0x3e7e1b[a10_0x41f0('0x20')]===![]){return 0x1;}else if(_0x3e7e1b[a10_0x41f0('0x20')]===a10_0x41f0('0xd')||_0x3e7e1b[a10_0x41f0('0x20')]===!![]){return Number(_0x3e7e1b[a10_0x41f0('0x12')]||0x3);}else if(_0x3e7e1b[a10_0x41f0('0x20')]===undefined){return _0x3e7e1b[a10_0x41f0('0x12')]?Number(_0x3e7e1b[a10_0x41f0('0x12')]):0x3;}else{return Number(_0x3e7e1b[a10_0x41f0('0x20')])||0x3;}}
const a10_0x1066=['dteStart','RUNNER_FAILURE_PERF_ENTRY','throw','axiosException','dteStatus','agentCount','then','value','VERBOSE_LOGGING','completeRunGroup','note','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','Starting\x20a\x20distributed\x20execution','createStartRequest','false','recordMetric','error','parallel','createApiAxiosInstance','serializeOverrides','/nx-cloud/executions/status','parseCommand','completeRunGroupWithError','start','../../../utilities/axios','__awaiter','apiAxiosInstance','stopAgentsOnFailure','apply','createMetricRecorder','project','target','DistributedExecutionApi','hash','NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE','maxParallel','enabled','response','axiosMultipleTries','post','status','data','error:\x20','../../../utilities/environment','../../../utilities/serializer-overrides','../../../utilities/nx-imports','map','ciExecutionEnv:\x20','mapRespToPerfEntry','runGroup:\x20','ciExecutionId:\x20','defineProperty','Completing\x20with\x20an\x20error','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT'];(function(_0x5e07c6,_0x10661b){const _0x1ccced=function(_0x33a019){while(--_0x33a019){_0x5e07c6['push'](_0x5e07c6['shift']());}};_0x1ccced(++_0x10661b);}(a10_0x1066,0x1ef));const a10_0x1ccc=function(_0x5e07c6,_0x10661b){_0x5e07c6=_0x5e07c6-0x0;let _0x1ccced=a10_0x1066[_0x5e07c6];return _0x1ccced;};'use strict';var __awaiter=this&&this[a10_0x1ccc('0x10')]||function(_0xd4397c,_0x10d2e8,_0x477630,_0x19f45b){function _0x1be26a(_0x4b43bc){return _0x4b43bc instanceof _0x477630?_0x4b43bc:new _0x477630(function(_0x10c2ac){_0x10c2ac(_0x4b43bc);});}return new(_0x477630||(_0x477630=Promise))(function(_0x149872,_0x168cf3){function _0x1e50d9(_0x59f94a){try{_0x438a33(_0x19f45b['next'](_0x59f94a));}catch(_0x1e574d){_0x168cf3(_0x1e574d);}}function _0x415ee4(_0x54d388){try{_0x438a33(_0x19f45b[a10_0x1ccc('0x2f')](_0x54d388));}catch(_0x418143){_0x168cf3(_0x418143);}}function _0x438a33(_0x556103){_0x556103['done']?_0x149872(_0x556103[a10_0x1ccc('0x34')]):_0x1be26a(_0x556103['value'])[a10_0x1ccc('0x33')](_0x1e50d9,_0x415ee4);}_0x438a33((_0x19f45b=_0x19f45b[a10_0x1ccc('0x13')](_0xd4397c,_0x10d2e8||[]))['next']());});};Object[a10_0x1ccc('0x2a')](exports,'__esModule',{'value':!![]});exports[a10_0x1ccc('0x4')]=exports[a10_0x1ccc('0x17')]=void 0x0;const axios_1=require(a10_0x1ccc('0xf'));const environment_1=require(a10_0x1ccc('0x22'));const metric_logger_1=require('../../../utilities/metric-logger');const serializer_overrides_1=require(a10_0x1ccc('0x23'));const {output}=require(a10_0x1ccc('0x24'));class DistributedExecutionApi{constructor(_0x46300b){this['apiAxiosInstance']=(0x0,axios_1[a10_0x1ccc('0x9')])(_0x46300b);}[a10_0x1ccc('0xe')](_0x17f8b5){var _0x33a8f0;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x26d3f7=(0x0,metric_logger_1[a10_0x1ccc('0x14')])(a10_0x1ccc('0x2d'));let _0x18892d;if(environment_1[a10_0x1ccc('0x35')]){output[a10_0x1ccc('0x1')]({'title':a10_0x1ccc('0x3'),'bodyLines':[JSON['stringify'](_0x17f8b5,null,0x2)]});}try{_0x18892d=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a10_0x1ccc('0x11')][a10_0x1ccc('0x1e')]('/nx-cloud/executions/start',_0x17f8b5));_0x26d3f7['recordMetric']((0x0,metric_logger_1[a10_0x1ccc('0x27')])(_0x18892d));}catch(_0x3daa1c){_0x26d3f7['recordMetric'](((_0x33a8f0=_0x3daa1c===null||_0x3daa1c===void 0x0?void 0x0:_0x3daa1c[a10_0x1ccc('0x30')])===null||_0x33a8f0===void 0x0?void 0x0:_0x33a8f0[a10_0x1ccc('0x1c')])?(0x0,metric_logger_1[a10_0x1ccc('0x27')])(_0x3daa1c[a10_0x1ccc('0x30')]['response']):metric_logger_1[a10_0x1ccc('0x2e')]);throw _0x3daa1c;}if(!_0x18892d[a10_0x1ccc('0x20')][a10_0x1ccc('0x1b')]){throw new Error(a10_0x1ccc('0x2'));}if(_0x18892d[a10_0x1ccc('0x20')][a10_0x1ccc('0x7')]){throw new Error(_0x18892d['data'][a10_0x1ccc('0x7')]);}return _0x18892d[a10_0x1ccc('0x20')]['id'];});}[a10_0x1ccc('0x1f')](_0x25606c){var _0x4caa6a;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x848932=(0x0,metric_logger_1[a10_0x1ccc('0x14')])(a10_0x1ccc('0x31'));try{const _0x1b15b5=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a10_0x1ccc('0x11')]['post'](a10_0x1ccc('0xb'),{'id':_0x25606c}));_0x848932['recordMetric']((0x0,metric_logger_1[a10_0x1ccc('0x27')])(_0x1b15b5));return _0x1b15b5['data'];}catch(_0x224c78){_0x848932['recordMetric'](((_0x4caa6a=_0x224c78===null||_0x224c78===void 0x0?void 0x0:_0x224c78[a10_0x1ccc('0x30')])===null||_0x4caa6a===void 0x0?void 0x0:_0x4caa6a[a10_0x1ccc('0x1c')])?(0x0,metric_logger_1[a10_0x1ccc('0x27')])(_0x224c78[a10_0x1ccc('0x30')][a10_0x1ccc('0x1c')]):metric_logger_1[a10_0x1ccc('0x2e')]);output[a10_0x1ccc('0x7')]({'title':_0x224c78['message']});process['exit'](0x1);}});}[a10_0x1ccc('0xd')](_0x3107e2,_0x18b933,_0x2e909f,_0x10f988,_0x2f9450){var _0x192c96;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x491892=(0x0,metric_logger_1['createMetricRecorder'])(a10_0x1ccc('0x0'));if(environment_1[a10_0x1ccc('0x35')]){output['note']({'title':a10_0x1ccc('0x2b'),'bodyLines':[a10_0x1ccc('0x29')+_0x2e909f,a10_0x1ccc('0x26')+_0x10f988,a10_0x1ccc('0x28')+_0x18b933,a10_0x1ccc('0x21')+_0x2f9450]});}try{const _0x1e7605=yield(0x0,axios_1[a10_0x1ccc('0x1d')])(()=>this[a10_0x1ccc('0x11')]['post']('/nx-cloud/executions/complete-run-group',{'runGroup':_0x18b933,'ciExecutionId':_0x2e909f,'ciExecutionEnv':_0x10f988,'criticalErrorMessage':_0x2f9450}),0x3);_0x491892[a10_0x1ccc('0x6')]((0x0,metric_logger_1[a10_0x1ccc('0x27')])(_0x1e7605));}catch(_0x284e2f){_0x491892['recordMetric'](((_0x192c96=_0x284e2f===null||_0x284e2f===void 0x0?void 0x0:_0x284e2f[a10_0x1ccc('0x30')])===null||_0x192c96===void 0x0?void 0x0:_0x192c96[a10_0x1ccc('0x1c')])?(0x0,metric_logger_1[a10_0x1ccc('0x27')])(_0x284e2f[a10_0x1ccc('0x30')]['response']):metric_logger_1[a10_0x1ccc('0x2e')]);}});}}exports[a10_0x1ccc('0x17')]=DistributedExecutionApi;function createStartRequest(_0x2b4af8,_0x1e3bc1,_0x2e0134,_0x54c26e,_0x646c5b,_0x1a98ac){const _0x594eca=_0x646c5b[a10_0x1ccc('0x25')](_0x1e146d=>{return _0x1e146d[a10_0x1ccc('0x25')](_0x1aebf1=>{return{'taskId':_0x1aebf1['id'],'hash':_0x1aebf1[a10_0x1ccc('0x18')],'projectName':_0x1aebf1['target'][a10_0x1ccc('0x15')],'target':_0x1aebf1[a10_0x1ccc('0x16')][a10_0x1ccc('0x16')],'configuration':_0x1aebf1['target']['configuration']||null,'params':(0x0,serializer_overrides_1[a10_0x1ccc('0xa')])(_0x1aebf1)};});});const _0x4ea063={'command':(0x0,environment_1[a10_0x1ccc('0xc')])(),'branch':_0x2b4af8,'runGroup':_0x1e3bc1,'ciExecutionId':_0x2e0134,'ciExecutionEnv':_0x54c26e,'tasks':_0x594eca,'maxParallel':calculateMaxParallel(_0x1a98ac)};if(environment_1[a10_0x1ccc('0x2c')]){_0x4ea063[a10_0x1ccc('0x32')]=environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT'];}if(!environment_1[a10_0x1ccc('0x19')]){_0x4ea063[a10_0x1ccc('0x12')]=![];}return _0x4ea063;}exports[a10_0x1ccc('0x4')]=createStartRequest;function calculateMaxParallel(_0xa08807){if(_0xa08807['parallel']===a10_0x1ccc('0x5')||_0xa08807['parallel']===![]){return 0x1;}else if(_0xa08807[a10_0x1ccc('0x8')]==='true'||_0xa08807[a10_0x1ccc('0x8')]===!![]){return Number(_0xa08807[a10_0x1ccc('0x1a')]||0x3);}else if(_0xa08807[a10_0x1ccc('0x8')]===undefined){return _0xa08807['maxParallel']?Number(_0xa08807[a10_0x1ccc('0x1a')]):0x3;}else{return Number(_0xa08807[a10_0x1ccc('0x8')])||0x3;}}

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

const a11_0x9c45=['values','Main\x20job\x20was\x20terminated\x20via\x20SIGINT','message','tasks','commandStatus','completeRunGroupWithError','Main\x20job\x20was\x20terminated\x20via\x20SIGTERM','createStartRequest','success','getCIExecutionId','defineProperty','throw','endTasks','exit','DistributedExecutionApi','value','lifeCycle','projectGraph','apply','../../../utilities/dte-artifact-storage','../../../utilities/metric-logger','See\x20run\x20details\x20at\x20','FileStorage','Starting\x20distributed\x20command\x20execution','log','./split-task-graph-into-stages','ErrorReporterApi','runUrl','--skip-nx-cache\x20is\x20ignored\x20when\x20using\x20distributed\x20tasks\x20execution\x20(DTE).','Command\x20execution\x20failed.','dte-main','./task-graph-creator','../../file-storage/file-storage','SIGTERM','createTaskGraphCompat','start','getCIExecutionEnv','scheduleTask','next','encryptionKey','nxCloudDistributedTasksRunner','../../error/print-run-group-error','canDetectRunGroup','axiosException','SIGINT','../../../utilities/nx-imports','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','error','VERBOSE_LOGGING','ENCRYPTION_KEY','Successfully\x20completed\x20running\x20the\x20command.','taskGraph','DTE\x20needs\x20the\x20cache\x20to\x20share\x20files\x20between\x20agents.','Unable\x20to\x20complete\x20a\x20run.','./process-tasks','note','skipNxCache','printRunGroupError'];(function(_0x586438,_0x9c4562){const _0x323717=function(_0x4bbdfb){while(--_0x4bbdfb){_0x586438['push'](_0x586438['shift']());}};_0x323717(++_0x9c4562);}(a11_0x9c45,0x1d7));const a11_0x3237=function(_0x586438,_0x9c4562){_0x586438=_0x586438-0x0;let _0x323717=a11_0x9c45[_0x586438];return _0x323717;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x4c86ec,_0x1e70b6,_0x94439c,_0x151f30){function _0x2ea8cb(_0x40d779){return _0x40d779 instanceof _0x94439c?_0x40d779:new _0x94439c(function(_0x424773){_0x424773(_0x40d779);});}return new(_0x94439c||(_0x94439c=Promise))(function(_0x194a59,_0x24d4ed){function _0x5a5710(_0x2989e9){try{_0x34a0a7(_0x151f30[a11_0x3237('0x1f')](_0x2989e9));}catch(_0x40c185){_0x24d4ed(_0x40c185);}}function _0x474496(_0x2bf7fa){try{_0x34a0a7(_0x151f30[a11_0x3237('0x4')](_0x2bf7fa));}catch(_0x2ec12a){_0x24d4ed(_0x2ec12a);}}function _0x34a0a7(_0x5c2199){_0x5c2199['done']?_0x194a59(_0x5c2199[a11_0x3237('0x8')]):_0x2ea8cb(_0x5c2199[a11_0x3237('0x8')])['then'](_0x5a5710,_0x474496);}_0x34a0a7((_0x151f30=_0x151f30[a11_0x3237('0xb')](_0x4c86ec,_0x1e70b6||[]))[a11_0x3237('0x1f')]());});};Object[a11_0x3237('0x3')](exports,'__esModule',{'value':!![]});exports[a11_0x3237('0x21')]=void 0x0;const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a11_0x3237('0xd'));const error_reporter_api_1=require('../../api/error-reporter.api');const print_run_group_error_1=require(a11_0x3237('0x22'));const e2e_encryption_1=require('../../file-storage/e2e-encryption');const file_storage_1=require(a11_0x3237('0x19'));const distributed_execution_api_1=require('./distributed-execution.api');const split_task_graph_into_stages_1=require(a11_0x3237('0x12'));const task_graph_creator_1=require(a11_0x3237('0x18'));const process_tasks_1=require(a11_0x3237('0x2f'));const dte_artifact_storage_1=require(a11_0x3237('0xc'));const {output,cacheDirectory}=require(a11_0x3237('0x26'));class NoopLifeCycle{[a11_0x3237('0x1e')](_0x3aacba){}['startTask'](_0x5ad8b3){}[a11_0x3237('0x5')](_0x1b0b06){}}const nxCloudDistributedTasksRunner=(_0x55fc7a,_0x3a9638,_0x391d47)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x3a9638[a11_0x3237('0x31')]){output['warn']({'title':a11_0x3237('0x15'),'bodyLine':[a11_0x3237('0x2d')]});}if(environment_1[a11_0x3237('0x29')]){output[a11_0x3237('0x30')]({'title':a11_0x3237('0x10')});}_0x3a9638[a11_0x3237('0x9')]=new NoopLifeCycle();const _0x1d93eb=(0x0,environment_1['getBranch'])();const _0x539971=(0x0,environment_1['getRunGroup'])();const _0x30034c=(0x0,environment_1[a11_0x3237('0x2')])();const _0x15716d=(0x0,environment_1[a11_0x3237('0x1d')])();if(!(0x0,print_run_group_error_1[a11_0x3237('0x23')])(_0x539971,_0x30034c)){(0x0,print_run_group_error_1[a11_0x3237('0x32')])();process[a11_0x3237('0x6')](0x1);}const _0x76e458=new e2e_encryption_1['E2EEncryption'](environment_1[a11_0x3237('0x2a')]||_0x3a9638[a11_0x3237('0x20')]);const _0x1791bf=new error_reporter_api_1[(a11_0x3237('0x13'))](_0x3a9638);const _0x2d66a5=new dte_artifact_storage_1['DteArtifactStorage'](new file_storage_1[(a11_0x3237('0xf'))](_0x76e458,_0x1791bf,_0x3a9638,a11_0x3237('0x17')),cacheDirectory);const _0x16b048=new distributed_execution_api_1[(a11_0x3237('0x7'))](_0x3a9638);attachSignalListenersToCompleteRunGroupOnError(_0x16b048,_0x1d93eb,_0x539971,_0x30034c,_0x15716d);try{const _0x178594=getTaskGraph(_0x391d47,_0x55fc7a,_0x3a9638);const _0x592485=yield runDistributedExecution(_0x16b048,_0x3a9638,_0x2d66a5,_0x1d93eb,_0x539971,_0x30034c,_0x15716d,_0x178594);if(_0x592485[a11_0x3237('0x37')]===0x0){output[a11_0x3237('0x1')]({'title':a11_0x3237('0x2b'),'bodyLines':[a11_0x3237('0xe')+_0x592485[a11_0x3237('0x14')]]});}else{output[a11_0x3237('0x28')]({'title':a11_0x3237('0x16'),'bodyLines':[a11_0x3237('0xe')+_0x592485[a11_0x3237('0x14')]]});}yield(0x0,metric_logger_1['submitRunMetrics'])(_0x3a9638);process['exit'](_0x592485[a11_0x3237('0x37')]);}catch(_0x1ad452){output['error']({'title':a11_0x3237('0x2e'),'bodyLines':[_0x1ad452[a11_0x3237('0x35')]]});if(_0x1ad452[a11_0x3237('0x24')]){console[a11_0x3237('0x11')](_0x1ad452['axiosException']);}else{console['log'](_0x1ad452);}try{yield _0x16b048['completeRunGroupWithError'](_0x1d93eb,_0x539971,_0x30034c,_0x15716d,a11_0x3237('0x27')+_0x1ad452[a11_0x3237('0x35')]+'\x22');}finally{process[a11_0x3237('0x6')](0x1);}}});exports[a11_0x3237('0x21')]=nxCloudDistributedTasksRunner;function getTaskGraph(_0x1fee3d,_0x70c13f,_0x166c72){if(_0x1fee3d[a11_0x3237('0x2c')]){return _0x1fee3d[a11_0x3237('0x2c')];}else{return(0x0,task_graph_creator_1[a11_0x3237('0x1b')])(_0x166c72,_0x1fee3d[a11_0x3237('0xa')],_0x70c13f);}}function attachSignalListenersToCompleteRunGroupOnError(_0x46eb8d,_0x591e38,_0x46bbf1,_0x4b67ca,_0x587619){process['on'](a11_0x3237('0x25'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x46eb8d[a11_0x3237('0x38')](_0x591e38,_0x46bbf1,_0x4b67ca,_0x587619,a11_0x3237('0x34'));process[a11_0x3237('0x6')](0x1);}));process['on'](a11_0x3237('0x1a'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x46eb8d[a11_0x3237('0x38')](_0x591e38,_0x46bbf1,_0x4b67ca,_0x587619,a11_0x3237('0x39'));process['exit'](0x1);}));}function runDistributedExecution(_0x44737c,_0x4fa746,_0x5aaf36,_0x3f7000,_0x2eafbc,_0x19192a,_0x39c41b,_0x82457b){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xd95c42=yield _0x44737c[a11_0x3237('0x1c')]((0x0,distributed_execution_api_1[a11_0x3237('0x0')])(_0x3f7000,_0x2eafbc,_0x19192a,_0x39c41b,(0x0,split_task_graph_into_stages_1['splitTasksIntoStages'])(_0x82457b),_0x4fa746));return yield(0x0,process_tasks_1['processTasks'])(_0x44737c,_0x5aaf36,_0xd95c42,Object[a11_0x3237('0x33')](_0x82457b[a11_0x3237('0x36')]));});}
const a11_0x28e5=['start','__awaiter','createTaskGraphCompat','ErrorReporterApi','encryptionKey','./split-task-graph-into-stages','DTE\x20needs\x20the\x20cache\x20to\x20share\x20files\x20between\x20agents.','scheduleTask','next','getCIExecutionId','__esModule','VERBOSE_LOGGING','Main\x20job\x20was\x20terminated\x20via\x20SIGTERM','endTasks','--skip-nx-cache\x20is\x20ignored\x20when\x20using\x20distributed\x20tasks\x20execution\x20(DTE).','FileStorage','error','./task-graph-creator','./distributed-execution.api','./process-tasks','log','SIGINT','Successfully\x20completed\x20running\x20the\x20command.','getBranch','../../file-storage/file-storage','../../file-storage/e2e-encryption','Main\x20job\x20was\x20terminated\x20via\x20SIGINT','E2EEncryption','Starting\x20distributed\x20command\x20execution','then','runUrl','lifeCycle','See\x20run\x20details\x20at\x20','value','splitTasksIntoStages','success','exit','printRunGroupError','commandStatus','message','skipNxCache','../../../utilities/metric-logger','axiosException','note','throw','DteArtifactStorage','../../api/error-reporter.api','ENCRYPTION_KEY','nxCloudDistributedTasksRunner','apply','completeRunGroupWithError','getCIExecutionEnv','Unable\x20to\x20complete\x20a\x20run.','dte-main','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','../../../utilities/dte-artifact-storage','submitRunMetrics','taskGraph'];(function(_0x3e194e,_0x28e55b){const _0x5d43d9=function(_0xfff169){while(--_0xfff169){_0x3e194e['push'](_0x3e194e['shift']());}};_0x5d43d9(++_0x28e55b);}(a11_0x28e5,0x169));const a11_0x5d43=function(_0x3e194e,_0x28e55b){_0x3e194e=_0x3e194e-0x0;let _0x5d43d9=a11_0x28e5[_0x3e194e];return _0x5d43d9;};'use strict';var __awaiter=this&&this[a11_0x5d43('0x2e')]||function(_0x488dc9,_0x5c18d4,_0xc5d1db,_0x415723){function _0x7a4ceb(_0xd4fef7){return _0xd4fef7 instanceof _0xc5d1db?_0xd4fef7:new _0xc5d1db(function(_0x251873){_0x251873(_0xd4fef7);});}return new(_0xc5d1db||(_0xc5d1db=Promise))(function(_0x51f762,_0x33ec59){function _0x1f8e28(_0x1d8860){try{_0xe0b705(_0x415723['next'](_0x1d8860));}catch(_0x51c005){_0x33ec59(_0x51c005);}}function _0x9f320c(_0x12f6a9){try{_0xe0b705(_0x415723[a11_0x5d43('0x1f')](_0x12f6a9));}catch(_0x4f21be){_0x33ec59(_0x4f21be);}}function _0xe0b705(_0x47bce4){_0x47bce4['done']?_0x51f762(_0x47bce4['value']):_0x7a4ceb(_0x47bce4[a11_0x5d43('0x14')])[a11_0x5d43('0x10')](_0x1f8e28,_0x9f320c);}_0xe0b705((_0x415723=_0x415723[a11_0x5d43('0x24')](_0x488dc9,_0x5c18d4||[]))[a11_0x5d43('0x35')]());});};Object['defineProperty'](exports,a11_0x5d43('0x37'),{'value':!![]});exports[a11_0x5d43('0x23')]=void 0x0;const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a11_0x5d43('0x1c'));const error_reporter_api_1=require(a11_0x5d43('0x21'));const print_run_group_error_1=require('../../error/print-run-group-error');const e2e_encryption_1=require(a11_0x5d43('0xc'));const file_storage_1=require(a11_0x5d43('0xb'));const distributed_execution_api_1=require(a11_0x5d43('0x5'));const split_task_graph_into_stages_1=require(a11_0x5d43('0x32'));const task_graph_creator_1=require(a11_0x5d43('0x4'));const process_tasks_1=require(a11_0x5d43('0x6'));const dte_artifact_storage_1=require(a11_0x5d43('0x2a'));const {output,cacheDirectory}=require('../../../utilities/nx-imports');class NoopLifeCycle{[a11_0x5d43('0x34')](_0x38c28a){}['startTask'](_0x7e46fd){}[a11_0x5d43('0x0')](_0x5c42d4){}}const nxCloudDistributedTasksRunner=(_0x39f43c,_0x197e54,_0x145bd0)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x197e54[a11_0x5d43('0x1b')]){output['warn']({'title':a11_0x5d43('0x1'),'bodyLine':[a11_0x5d43('0x33')]});}if(environment_1[a11_0x5d43('0x38')]){output[a11_0x5d43('0x1e')]({'title':a11_0x5d43('0xf')});}_0x197e54[a11_0x5d43('0x12')]=new NoopLifeCycle();const _0x54a7c0=(0x0,environment_1[a11_0x5d43('0xa')])();const _0x1b8bfc=(0x0,environment_1['getRunGroup'])();const _0x3ee064=(0x0,environment_1[a11_0x5d43('0x36')])();const _0x50ee7d=(0x0,environment_1[a11_0x5d43('0x26')])();if(!(0x0,print_run_group_error_1['canDetectRunGroup'])(_0x1b8bfc,_0x3ee064)){(0x0,print_run_group_error_1[a11_0x5d43('0x18')])();process[a11_0x5d43('0x17')](0x1);}const _0x1f155c=new e2e_encryption_1[(a11_0x5d43('0xe'))](environment_1[a11_0x5d43('0x22')]||_0x197e54[a11_0x5d43('0x31')]);const _0x421f59=new error_reporter_api_1[(a11_0x5d43('0x30'))](_0x197e54);const _0x1408a1=new dte_artifact_storage_1[(a11_0x5d43('0x20'))](new file_storage_1[(a11_0x5d43('0x2'))](_0x1f155c,_0x421f59,_0x197e54,a11_0x5d43('0x28')),cacheDirectory);const _0x41e219=new distributed_execution_api_1['DistributedExecutionApi'](_0x197e54);attachSignalListenersToCompleteRunGroupOnError(_0x41e219,_0x54a7c0,_0x1b8bfc,_0x3ee064,_0x50ee7d);try{const _0x333a03=getTaskGraph(_0x145bd0,_0x39f43c,_0x197e54);const _0x2ea53b=yield runDistributedExecution(_0x41e219,_0x197e54,_0x1408a1,_0x54a7c0,_0x1b8bfc,_0x3ee064,_0x50ee7d,_0x333a03);if(_0x2ea53b['commandStatus']===0x0){output[a11_0x5d43('0x16')]({'title':a11_0x5d43('0x9'),'bodyLines':['See\x20run\x20details\x20at\x20'+_0x2ea53b[a11_0x5d43('0x11')]]});}else{output['error']({'title':'Command\x20execution\x20failed.','bodyLines':[a11_0x5d43('0x13')+_0x2ea53b[a11_0x5d43('0x11')]]});}yield(0x0,metric_logger_1[a11_0x5d43('0x2b')])(_0x197e54);process[a11_0x5d43('0x17')](_0x2ea53b[a11_0x5d43('0x19')]);}catch(_0x3d1762){output[a11_0x5d43('0x3')]({'title':a11_0x5d43('0x27'),'bodyLines':[_0x3d1762['message']]});if(_0x3d1762[a11_0x5d43('0x1d')]){console['log'](_0x3d1762['axiosException']);}else{console[a11_0x5d43('0x7')](_0x3d1762);}try{yield _0x41e219[a11_0x5d43('0x25')](_0x54a7c0,_0x1b8bfc,_0x3ee064,_0x50ee7d,a11_0x5d43('0x29')+_0x3d1762[a11_0x5d43('0x1a')]+'\x22');}finally{process[a11_0x5d43('0x17')](0x1);}}});exports[a11_0x5d43('0x23')]=nxCloudDistributedTasksRunner;function getTaskGraph(_0x26745d,_0x3fa10d,_0x1f62ed){if(_0x26745d[a11_0x5d43('0x2c')]){return _0x26745d[a11_0x5d43('0x2c')];}else{return(0x0,task_graph_creator_1[a11_0x5d43('0x2f')])(_0x1f62ed,_0x26745d['projectGraph'],_0x3fa10d);}}function attachSignalListenersToCompleteRunGroupOnError(_0x32346e,_0x3a4a3c,_0x45e478,_0x5a6022,_0x28f0d4){process['on'](a11_0x5d43('0x8'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x32346e['completeRunGroupWithError'](_0x3a4a3c,_0x45e478,_0x5a6022,_0x28f0d4,a11_0x5d43('0xd'));process[a11_0x5d43('0x17')](0x1);}));process['on']('SIGTERM',()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x32346e['completeRunGroupWithError'](_0x3a4a3c,_0x45e478,_0x5a6022,_0x28f0d4,a11_0x5d43('0x39'));process[a11_0x5d43('0x17')](0x1);}));}function runDistributedExecution(_0x1c88c0,_0x25108d,_0x169e2e,_0x89cf12,_0x4fd77c,_0x22f5b9,_0x1995c3,_0xe75dc6){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5532be=yield _0x1c88c0[a11_0x5d43('0x2d')]((0x0,distributed_execution_api_1['createStartRequest'])(_0x89cf12,_0x4fd77c,_0x22f5b9,_0x1995c3,(0x0,split_task_graph_into_stages_1[a11_0x5d43('0x15')])(_0xe75dc6),_0x25108d));return yield(0x0,process_tasks_1['processTasks'])(_0x1c88c0,_0x169e2e,_0x5532be,Object['values'](_0xe75dc6['tasks']));});}

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

const a12_0x4b0e=['write','processTask','url','__awaiter','../../../utilities/environment','../../../utilities/nx-imports','stdout','next','__esModule','value','then','addVerticalSeparator','Processing\x20task\x20','throw','serializeOverrides','find','run','hash','retrieveAndExtract','join','defineProperty','configuration','target','project','../../../utilities/serializer-overrides','Found\x20unknown\x20task:\x20','done','note','taskId','logCommand'];(function(_0x36f482,_0x4b0e72){const _0x38f337=function(_0xba7388){while(--_0xba7388){_0x36f482['push'](_0x36f482['shift']());}};_0x38f337(++_0x4b0e72);}(a12_0x4b0e,0x14b));const a12_0x38f3=function(_0x36f482,_0x4b0e72){_0x36f482=_0x36f482-0x0;let _0x38f337=a12_0x4b0e[_0x36f482];return _0x38f337;};'use strict';var __awaiter=this&&this[a12_0x38f3('0x2')]||function(_0x3ea6bd,_0x30d81f,_0x3e18cf,_0x3413b3){function _0x12c23d(_0x451b21){return _0x451b21 instanceof _0x3e18cf?_0x451b21:new _0x3e18cf(function(_0x585803){_0x585803(_0x451b21);});}return new(_0x3e18cf||(_0x3e18cf=Promise))(function(_0x37d41f,_0x4fe494){function _0x2e1e6f(_0xa2bba9){try{_0x4b6f36(_0x3413b3[a12_0x38f3('0x6')](_0xa2bba9));}catch(_0x5607ed){_0x4fe494(_0x5607ed);}}function _0x7b0dc8(_0x5cc537){try{_0x4b6f36(_0x3413b3[a12_0x38f3('0xc')](_0x5cc537));}catch(_0x47c153){_0x4fe494(_0x47c153);}}function _0x4b6f36(_0x12162b){_0x12162b[a12_0x38f3('0x19')]?_0x37d41f(_0x12162b[a12_0x38f3('0x8')]):_0x12c23d(_0x12162b[a12_0x38f3('0x8')])[a12_0x38f3('0x9')](_0x2e1e6f,_0x7b0dc8);}_0x4b6f36((_0x3413b3=_0x3413b3['apply'](_0x3ea6bd,_0x30d81f||[]))['next']());});};Object[a12_0x38f3('0x13')](exports,a12_0x38f3('0x7'),{'value':!![]});exports[a12_0x38f3('0x0')]=void 0x0;const environment_1=require(a12_0x38f3('0x3'));const serializer_overrides_1=require(a12_0x38f3('0x17'));const {output}=require(a12_0x38f3('0x4'));function processTask(_0x5e00f7,_0x7604da,_0x43f313){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a12_0x38f3('0x1a')]({'title':a12_0x38f3('0xb')+_0x43f313[a12_0x38f3('0x1b')]});}const _0x1fac4b=_0x7604da[a12_0x38f3('0xe')](_0x2cc0da=>_0x43f313['taskId']===_0x2cc0da['id']);if(!_0x1fac4b){throw new Error(a12_0x38f3('0x18')+_0x43f313['taskId']);}const _0x56c1e9=yield _0x5e00f7[a12_0x38f3('0x11')](_0x43f313[a12_0x38f3('0x10')],_0x43f313[a12_0x38f3('0x1')]);output[a12_0x38f3('0x1c')](getCommand(_0x1fac4b));process[a12_0x38f3('0x5')][a12_0x38f3('0x1d')](_0x56c1e9);output[a12_0x38f3('0xa')]();});}exports[a12_0x38f3('0x0')]=processTask;function getCommand(_0x59b684){const _0x15d10c=_0x59b684[a12_0x38f3('0x15')][a12_0x38f3('0x14')]?':'+_0x59b684[a12_0x38f3('0x15')][a12_0x38f3('0x14')]:'';return['nx',a12_0x38f3('0xf'),_0x59b684[a12_0x38f3('0x15')][a12_0x38f3('0x16')]+':'+_0x59b684['target'][a12_0x38f3('0x15')]+_0x15d10c,(0x0,serializer_overrides_1[a12_0x38f3('0xd')])(_0x59b684)][a12_0x38f3('0x12')]('\x20');}
const a12_0x4f4e=['retrieveAndExtract','serializeOverrides','logCommand','url','join','Found\x20unknown\x20task:\x20','throw','../../../utilities/environment','Processing\x20task\x20','VERBOSE_LOGGING','run','target','next','__awaiter','taskId','../../../utilities/serializer-overrides','value','done','then','find','project','stdout','configuration'];(function(_0x499a1d,_0x4f4e85){const _0x18ec7a=function(_0x138847){while(--_0x138847){_0x499a1d['push'](_0x499a1d['shift']());}};_0x18ec7a(++_0x4f4e85);}(a12_0x4f4e,0x199));const a12_0x18ec=function(_0x499a1d,_0x4f4e85){_0x499a1d=_0x499a1d-0x0;let _0x18ec7a=a12_0x4f4e[_0x499a1d];return _0x18ec7a;};'use strict';var __awaiter=this&&this[a12_0x18ec('0x12')]||function(_0x77e3cb,_0x43bf67,_0x2697e9,_0x1e7650){function _0x303495(_0x17e350){return _0x17e350 instanceof _0x2697e9?_0x17e350:new _0x2697e9(function(_0x497148){_0x497148(_0x17e350);});}return new(_0x2697e9||(_0x2697e9=Promise))(function(_0x38036d,_0x2bcb1b){function _0x5b58b6(_0x57b8c9){try{_0x2bc118(_0x1e7650[a12_0x18ec('0x11')](_0x57b8c9));}catch(_0x84a552){_0x2bcb1b(_0x84a552);}}function _0x4676bc(_0x500974){try{_0x2bc118(_0x1e7650[a12_0x18ec('0xb')](_0x500974));}catch(_0x1b0bfa){_0x2bcb1b(_0x1b0bfa);}}function _0x2bc118(_0x2b5402){_0x2b5402[a12_0x18ec('0x16')]?_0x38036d(_0x2b5402['value']):_0x303495(_0x2b5402[a12_0x18ec('0x15')])[a12_0x18ec('0x0')](_0x5b58b6,_0x4676bc);}_0x2bc118((_0x1e7650=_0x1e7650['apply'](_0x77e3cb,_0x43bf67||[]))[a12_0x18ec('0x11')]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports['processTask']=void 0x0;const environment_1=require(a12_0x18ec('0xc'));const serializer_overrides_1=require(a12_0x18ec('0x14'));const {output}=require('../../../utilities/nx-imports');function processTask(_0xc7cc3d,_0x184992,_0xffb8d9){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a12_0x18ec('0xe')]){output['note']({'title':a12_0x18ec('0xd')+_0xffb8d9[a12_0x18ec('0x13')]});}const _0x13f26e=_0x184992[a12_0x18ec('0x1')](_0x593a17=>_0xffb8d9[a12_0x18ec('0x13')]===_0x593a17['id']);if(!_0x13f26e){throw new Error(a12_0x18ec('0xa')+_0xffb8d9[a12_0x18ec('0x13')]);}const _0x28d425=yield _0xc7cc3d[a12_0x18ec('0x5')](_0xffb8d9['hash'],_0xffb8d9[a12_0x18ec('0x8')]);output[a12_0x18ec('0x7')](getCommand(_0x13f26e));process[a12_0x18ec('0x3')]['write'](_0x28d425);output['addVerticalSeparator']();});}exports['processTask']=processTask;function getCommand(_0x963770){const _0x3b1a2d=_0x963770[a12_0x18ec('0x10')][a12_0x18ec('0x4')]?':'+_0x963770[a12_0x18ec('0x10')][a12_0x18ec('0x4')]:'';return['nx',a12_0x18ec('0xf'),_0x963770['target'][a12_0x18ec('0x2')]+':'+_0x963770[a12_0x18ec('0x10')][a12_0x18ec('0x10')]+_0x3b1a2d,(0x0,serializer_overrides_1[a12_0x18ec('0x6')])(_0x963770)][a12_0x18ec('0x9')]('\x20');}

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

const a13_0x5783=['../../../utilities/waiter','VERBOSE_LOGGING','Waiter','value','number\x20of\x20completed\x20tasks:\x20','wait','next','apply','status','Error:','completedTasks','processTasks','criticalErrorMessage','../../../utilities/nx-imports','executionStatus:\x20','note','createUnchangedValueTimeout','../../../utilities/create-unchanged-value-timeout','commandStatus','processTask','Distributed\x20Execution\x20Terminated','../../../utilities/environment','executionId:\x20','Status\x20update','exit','throw','No\x20new\x20completed\x20tasks\x20after\x20','error:\x20','defineProperty','executionStatus','then','__esModule','runUrl','__awaiter'];(function(_0x120975,_0x578369){const _0x129c83=function(_0x175eda){while(--_0x175eda){_0x120975['push'](_0x120975['shift']());}};_0x129c83(++_0x578369);}(a13_0x5783,0xaf));const a13_0x129c=function(_0x120975,_0x578369){_0x120975=_0x120975-0x0;let _0x129c83=a13_0x5783[_0x120975];return _0x129c83;};'use strict';var __awaiter=this&&this[a13_0x129c('0x1c')]||function(_0x61403c,_0x149fb7,_0x1af25d,_0x39c269){function _0x6d284d(_0x5395d9){return _0x5395d9 instanceof _0x1af25d?_0x5395d9:new _0x1af25d(function(_0xae897f){_0xae897f(_0x5395d9);});}return new(_0x1af25d||(_0x1af25d=Promise))(function(_0x33defa,_0x24cd56){function _0x293ea3(_0x2f7c3d){try{_0x44e0ea(_0x39c269['next'](_0x2f7c3d));}catch(_0x4d4982){_0x24cd56(_0x4d4982);}}function _0x543a0c(_0x3d5715){try{_0x44e0ea(_0x39c269[a13_0x129c('0x14')](_0x3d5715));}catch(_0x3d27b3){_0x24cd56(_0x3d27b3);}}function _0x44e0ea(_0x3f2e3d){_0x3f2e3d['done']?_0x33defa(_0x3f2e3d[a13_0x129c('0x20')]):_0x6d284d(_0x3f2e3d[a13_0x129c('0x20')])[a13_0x129c('0x19')](_0x293ea3,_0x543a0c);}_0x44e0ea((_0x39c269=_0x39c269[a13_0x129c('0x2')](_0x61403c,_0x149fb7||[]))[a13_0x129c('0x1')]());});};Object[a13_0x129c('0x17')](exports,a13_0x129c('0x1a'),{'value':!![]});exports[a13_0x129c('0x6')]=void 0x0;const create_unchanged_value_timeout_1=require(a13_0x129c('0xc'));const environment_1=require(a13_0x129c('0x10'));const waiter_1=require(a13_0x129c('0x1d'));const process_task_1=require('./process-task');const {output}=require(a13_0x129c('0x8'));function processTasks(_0x53b963,_0x2886b1,_0x42ec89,_0x268983){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x22cc3d={};const _0x6dd29b=(0x0,create_unchanged_value_timeout_1[a13_0x129c('0xb')])({'title':a13_0x129c('0x15')+environment_1['NO_COMPLETED_TASKS_TIMEOUT']/0x3e8+'\x20seconds.','timeout':environment_1['NO_COMPLETED_TASKS_TIMEOUT']});const _0x3a550c=new waiter_1[(a13_0x129c('0x1f'))]();while(!![]){if(environment_1['VERBOSE_LOGGING']){output[a13_0x129c('0xa')]({'title':'Waiting...'});}yield _0x3a550c[a13_0x129c('0x0')]();const _0x33751e=yield _0x53b963[a13_0x129c('0x3')](_0x42ec89);if(environment_1[a13_0x129c('0x1e')]){output[a13_0x129c('0xa')]({'title':a13_0x129c('0x12'),'bodyLines':[a13_0x129c('0x11')+_0x42ec89,a13_0x129c('0x9')+_0x33751e[a13_0x129c('0x18')],a13_0x129c('0x21')+_0x33751e[a13_0x129c('0x5')]['length'],a13_0x129c('0x16')+_0x33751e['criticalErrorMessage']]});}if(_0x33751e[a13_0x129c('0x7')]){output['error']({'title':a13_0x129c('0xf'),'bodyLines':[a13_0x129c('0x4'),_0x33751e['criticalErrorMessage']]});process[a13_0x129c('0x13')](0x1);}_0x6dd29b(_0x33751e[a13_0x129c('0x5')]['length']);for(const _0xb035da of _0x33751e[a13_0x129c('0x5')]){if(_0x22cc3d[_0xb035da['taskId']])continue;yield(0x0,process_task_1[a13_0x129c('0xe')])(_0x2886b1,_0x268983,_0xb035da);_0x3a550c['reset']();_0x22cc3d[_0xb035da['taskId']]=!![];}if(_0x33751e[a13_0x129c('0x18')]==='COMPLETED'){return{'commandStatus':_0x33751e[a13_0x129c('0xd')],'runUrl':_0x33751e[a13_0x129c('0x1b')]};}}});}exports[a13_0x129c('0x6')]=processTasks;
const a13_0x5eb7=['Error:','commandStatus','completedTasks','Waiter','Waiting...','COMPLETED','No\x20new\x20completed\x20tasks\x20after\x20','then','done','wait','createUnchangedValueTimeout','value','./process-task','status','__awaiter','criticalErrorMessage','length','runUrl','NO_COMPLETED_TASKS_TIMEOUT','executionStatus','note','../../../utilities/waiter','../../../utilities/environment','processTask','apply','next','executionStatus:\x20','VERBOSE_LOGGING','reset','error:\x20','Status\x20update','processTasks','../../../utilities/create-unchanged-value-timeout','taskId','__esModule','exit'];(function(_0x57b922,_0x5eb7e4){const _0x2558be=function(_0x1da044){while(--_0x1da044){_0x57b922['push'](_0x57b922['shift']());}};_0x2558be(++_0x5eb7e4);}(a13_0x5eb7,0x1d4));const a13_0x2558=function(_0x57b922,_0x5eb7e4){_0x57b922=_0x57b922-0x0;let _0x2558be=a13_0x5eb7[_0x57b922];return _0x2558be;};'use strict';var __awaiter=this&&this[a13_0x2558('0xe')]||function(_0xd7d2e3,_0x8d653d,_0x1e6688,_0x2ccb12){function _0xdfc6f3(_0x50b241){return _0x50b241 instanceof _0x1e6688?_0x50b241:new _0x1e6688(function(_0x340537){_0x340537(_0x50b241);});}return new(_0x1e6688||(_0x1e6688=Promise))(function(_0x4f1005,_0x572d77){function _0x39a84f(_0x2b4832){try{_0x56578d(_0x2ccb12[a13_0x2558('0x19')](_0x2b4832));}catch(_0x4571ae){_0x572d77(_0x4571ae);}}function _0xd901dc(_0x451406){try{_0x56578d(_0x2ccb12['throw'](_0x451406));}catch(_0x14c166){_0x572d77(_0x14c166);}}function _0x56578d(_0x3b7572){_0x3b7572[a13_0x2558('0x8')]?_0x4f1005(_0x3b7572[a13_0x2558('0xb')]):_0xdfc6f3(_0x3b7572[a13_0x2558('0xb')])[a13_0x2558('0x7')](_0x39a84f,_0xd901dc);}_0x56578d((_0x2ccb12=_0x2ccb12[a13_0x2558('0x18')](_0xd7d2e3,_0x8d653d||[]))[a13_0x2558('0x19')]());});};Object['defineProperty'](exports,a13_0x2558('0x22'),{'value':!![]});exports[a13_0x2558('0x1f')]=void 0x0;const create_unchanged_value_timeout_1=require(a13_0x2558('0x20'));const environment_1=require(a13_0x2558('0x16'));const waiter_1=require(a13_0x2558('0x15'));const process_task_1=require(a13_0x2558('0xc'));const {output}=require('../../../utilities/nx-imports');function processTasks(_0x114e51,_0x13752f,_0x2a0703,_0x4280e3){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x6acd82={};const _0x231508=(0x0,create_unchanged_value_timeout_1[a13_0x2558('0xa')])({'title':a13_0x2558('0x6')+environment_1[a13_0x2558('0x12')]/0x3e8+'\x20seconds.','timeout':environment_1[a13_0x2558('0x12')]});const _0x577d91=new waiter_1[(a13_0x2558('0x3'))]();while(!![]){if(environment_1[a13_0x2558('0x1b')]){output[a13_0x2558('0x14')]({'title':a13_0x2558('0x4')});}yield _0x577d91[a13_0x2558('0x9')]();const _0x162863=yield _0x114e51[a13_0x2558('0xd')](_0x2a0703);if(environment_1[a13_0x2558('0x1b')]){output[a13_0x2558('0x14')]({'title':a13_0x2558('0x1e'),'bodyLines':['executionId:\x20'+_0x2a0703,a13_0x2558('0x1a')+_0x162863[a13_0x2558('0x13')],'number\x20of\x20completed\x20tasks:\x20'+_0x162863[a13_0x2558('0x2')][a13_0x2558('0x10')],a13_0x2558('0x1d')+_0x162863[a13_0x2558('0xf')]]});}if(_0x162863[a13_0x2558('0xf')]){output['error']({'title':'Distributed\x20Execution\x20Terminated','bodyLines':[a13_0x2558('0x0'),_0x162863['criticalErrorMessage']]});process[a13_0x2558('0x23')](0x1);}_0x231508(_0x162863[a13_0x2558('0x2')][a13_0x2558('0x10')]);for(const _0x2929ac of _0x162863[a13_0x2558('0x2')]){if(_0x6acd82[_0x2929ac['taskId']])continue;yield(0x0,process_task_1[a13_0x2558('0x17')])(_0x13752f,_0x4280e3,_0x2929ac);_0x577d91[a13_0x2558('0x1c')]();_0x6acd82[_0x2929ac[a13_0x2558('0x21')]]=!![];}if(_0x162863['executionStatus']===a13_0x2558('0x5')){return{'commandStatus':_0x162863[a13_0x2558('0x1')],'runUrl':_0x162863[a13_0x2558('0x11')]};}}});}exports[a13_0x2558('0x1f')]=processTasks;

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

const a14_0x3281=['has','defineProperty','size','push','dependencies','delete','tasks'];(function(_0x4cde9a,_0x328159){const _0x44ac9f=function(_0x1a4ce1){while(--_0x1a4ce1){_0x4cde9a['push'](_0x4cde9a['shift']());}};_0x44ac9f(++_0x328159);}(a14_0x3281,0x1a7));const a14_0x44ac=function(_0x4cde9a,_0x328159){_0x4cde9a=_0x4cde9a-0x0;let _0x44ac9f=a14_0x3281[_0x4cde9a];return _0x44ac9f;};'use strict';Object[a14_0x44ac('0x5')](exports,'__esModule',{'value':!![]});exports['splitTasksIntoStages']=void 0x0;function splitTasksIntoStages(_0x3dade4){const _0x2693ed=[];const _0xe46e6e=new Set(Object['values'](_0x3dade4[a14_0x44ac('0x3')])['map'](_0x5cf7fb=>_0x5cf7fb['id']));let _0x2a80fa=0x0;while(_0xe46e6e[a14_0x44ac('0x6')]>0x0){const _0x8e4c90=_0x2693ed[_0x2a80fa]=[];for(const _0x9d2228 of _0xe46e6e){let _0xe6a2d6=!![];for(const _0x3bc88a of _0x3dade4[a14_0x44ac('0x1')][_0x9d2228]){if(_0xe46e6e[a14_0x44ac('0x4')](_0x3bc88a)){_0xe6a2d6=![];break;}}if(!_0xe6a2d6){continue;}const _0x1543c5=_0x3dade4[a14_0x44ac('0x3')][_0x9d2228];_0x8e4c90[a14_0x44ac('0x0')](_0x1543c5);}for(const _0x2fd3f3 of _0x8e4c90){_0xe46e6e[a14_0x44ac('0x2')](_0x2fd3f3['id']);}_0x2a80fa++;}return _0x2693ed;}exports['splitTasksIntoStages']=splitTasksIntoStages;
const a14_0x2d5d=['values','delete','push','has','size'];(function(_0x591fcb,_0x2d5d01){const _0x3643ca=function(_0x5049b4){while(--_0x5049b4){_0x591fcb['push'](_0x591fcb['shift']());}};_0x3643ca(++_0x2d5d01);}(a14_0x2d5d,0x1da));const a14_0x3643=function(_0x591fcb,_0x2d5d01){_0x591fcb=_0x591fcb-0x0;let _0x3643ca=a14_0x2d5d[_0x591fcb];return _0x3643ca;};'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});exports['splitTasksIntoStages']=void 0x0;function splitTasksIntoStages(_0x55ec1d){const _0x478b59=[];const _0x545598=new Set(Object[a14_0x3643('0x1')](_0x55ec1d['tasks'])['map'](_0x434aeb=>_0x434aeb['id']));let _0x482b1f=0x0;while(_0x545598[a14_0x3643('0x0')]>0x0){const _0x4eafbb=_0x478b59[_0x482b1f]=[];for(const _0x4622e9 of _0x545598){let _0x2c2ff6=!![];for(const _0x2857dd of _0x55ec1d['dependencies'][_0x4622e9]){if(_0x545598[a14_0x3643('0x4')](_0x2857dd)){_0x2c2ff6=![];break;}}if(!_0x2c2ff6){continue;}const _0x281d7a=_0x55ec1d['tasks'][_0x4622e9];_0x4eafbb[a14_0x3643('0x3')](_0x281d7a);}for(const _0x4c07c8 of _0x4eafbb){_0x545598[a14_0x3643('0x2')](_0x4c07c8['id']);}_0x482b1f++;}return _0x478b59;}exports['splitTasksIntoStages']=splitTasksIntoStages;

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

const a15_0x3cc6=['findTask','addTaskDependencies','roots','defaultTargetDependencies','find','addDependencies','project','dependencies','readFileSync','target','strictlyOrderedTargets','__esModule','push','projectGraph','length','/nx.json','toString','projects','tasks','add','../../../utilities/nx-imports','addTaskToGraph','strip-json-comments','keys','self','map','TaskGraphCreator','parse','build'];(function(_0x248802,_0x3cc6e){const _0x38d1d2=function(_0x4e769a){while(--_0x4e769a){_0x248802['push'](_0x248802['shift']());}};_0x38d1d2(++_0x3cc6e);}(a15_0x3cc6,0xfd));const a15_0x38d1=function(_0x248802,_0x3cc6e){_0x248802=_0x248802-0x0;let _0x38d1d2=a15_0x3cc6[_0x248802];return _0x38d1d2;};'use strict';Object['defineProperty'](exports,a15_0x38d1('0x13'),{'value':!![]});exports[a15_0x38d1('0x5')]=exports['createTaskGraphCompat']=void 0x0;const stripJsonComments=require(a15_0x38d1('0x1'));const fs_1=require('fs');const {getDependencyConfigs,workspaceRoot}=require(a15_0x38d1('0x1c'));function createTaskGraphCompat(_0x16cb5e,_0x2b63c3,_0xe58695){const _0x16487d=JSON[a15_0x38d1('0x6')](stripJsonComments((0x0,fs_1[a15_0x38d1('0x10')])(workspaceRoot+a15_0x38d1('0x17'))[a15_0x38d1('0x18')]()));return new TaskGraphCreator(_0x2b63c3,getDefaultDependencyConfigs(_0x16487d,_0x16cb5e))['createTaskGraph'](_0xe58695);}exports['createTaskGraphCompat']=createTaskGraphCompat;function getDefaultDependencyConfigs(_0x55d295,_0x88729d){var _0x316449,_0x21b8c7;const _0x2a0711=(_0x316449=_0x55d295['targetDependencies'])!==null&&_0x316449!==void 0x0?_0x316449:{};const _0x1ce1d2=_0x88729d?(_0x21b8c7=_0x88729d[a15_0x38d1('0x12')])!==null&&_0x21b8c7!==void 0x0?_0x21b8c7:[a15_0x38d1('0x7')]:[];for(const _0x4197aa of _0x1ce1d2){_0x2a0711[_0x4197aa]=_0x2a0711[_0x4197aa]||[];_0x2a0711[_0x4197aa][a15_0x38d1('0x14')]({'target':_0x4197aa,'projects':a15_0x38d1('0xf')});}return _0x2a0711;}class TaskGraphCreator{constructor(_0x43aa4f,_0x124047){this['projectGraph']=_0x43aa4f;this[a15_0x38d1('0xb')]=_0x124047;}['createTaskGraph'](_0x45c7b8){const _0x1bab68={'roots':[],'tasks':{},'dependencies':{}};for(const _0x4decbf of _0x45c7b8){this['addTaskToGraph'](_0x4decbf,_0x1bab68);const _0x198ee9=getDependencyConfigs(_0x4decbf[a15_0x38d1('0x11')],this['defaultTargetDependencies'],this[a15_0x38d1('0x15')]);if(!_0x198ee9){continue;}this[a15_0x38d1('0x9')](_0x4decbf,_0x198ee9,_0x45c7b8,_0x1bab68);}_0x1bab68[a15_0x38d1('0xa')]=Object[a15_0x38d1('0x2')](_0x1bab68[a15_0x38d1('0xf')])['filter'](_0x12f42f=>_0x1bab68[a15_0x38d1('0xf')][_0x12f42f][a15_0x38d1('0x16')]===0x0);return _0x1bab68;}[a15_0x38d1('0x9')](_0x2ef1eb,_0x4eed36,_0x1c6444,_0x7634d2){for(const _0x1edd57 of _0x4eed36){if(_0x1edd57['projects']===a15_0x38d1('0x3')){for(const _0x359086 of _0x1c6444){if(_0x359086[a15_0x38d1('0x11')][a15_0x38d1('0xe')]===_0x2ef1eb['target'][a15_0x38d1('0xe')]&&_0x359086[a15_0x38d1('0x11')][a15_0x38d1('0x11')]===_0x1edd57[a15_0x38d1('0x11')]){_0x7634d2['dependencies'][_0x2ef1eb['id']][a15_0x38d1('0x14')](_0x359086['id']);}}}else if(_0x1edd57[a15_0x38d1('0x19')]==='dependencies'){const _0x5cc3c9=new Set();this[a15_0x38d1('0xd')](_0x2ef1eb[a15_0x38d1('0x11')][a15_0x38d1('0xe')],_0x1edd57['target'],_0x1c6444,_0x7634d2,_0x2ef1eb['id'],_0x5cc3c9);}}}['addDependencies'](_0x2b017c,_0x328182,_0x108920,_0x14bff5,_0x36d5c5,_0x1f61e4){_0x1f61e4[a15_0x38d1('0x1b')](_0x2b017c);const _0x3c3239=this[a15_0x38d1('0x15')]['dependencies'][_0x2b017c];if(_0x3c3239){const _0x4e4189=_0x3c3239[a15_0x38d1('0x4')](_0x3e0e9b=>_0x3e0e9b[a15_0x38d1('0x11')]);for(const _0x2b7b51 of _0x4e4189){if(_0x1f61e4['has'](_0x2b7b51)){continue;}const _0x265589=this[a15_0x38d1('0x8')]({'project':_0x2b7b51,'target':_0x328182},_0x108920);if(_0x265589){if(_0x14bff5[a15_0x38d1('0xf')][_0x36d5c5]['indexOf'](_0x265589['id'])===-0x1){_0x14bff5['dependencies'][_0x36d5c5][a15_0x38d1('0x14')](_0x265589['id']);}}else{this['addDependencies'](_0x2b7b51,_0x328182,_0x108920,_0x14bff5,_0x36d5c5,_0x1f61e4);}}}}[a15_0x38d1('0x8')]({project,target},_0x2930a2){return _0x2930a2[a15_0x38d1('0xc')](_0x8e7a2b=>_0x8e7a2b['target'][a15_0x38d1('0xe')]===project&&_0x8e7a2b[a15_0x38d1('0x11')][a15_0x38d1('0x11')]===target);}[a15_0x38d1('0x0')](_0x945895,_0x657c1b){_0x657c1b[a15_0x38d1('0x1a')][_0x945895['id']]=_0x945895;_0x657c1b[a15_0x38d1('0xf')][_0x945895['id']]=[];}}exports['TaskGraphCreator']=TaskGraphCreator;
const a15_0xebc3=['projects','findTask','strictlyOrderedTargets','defineProperty','dependencies','project','parse','toString','targetDependencies','addTaskDependencies','addDependencies','indexOf','find','createTaskGraph','createTaskGraphCompat','strip-json-comments','add','/nx.json','__esModule','projectGraph','push','defaultTargetDependencies','filter','tasks','build','self','map','TaskGraphCreator','has','target','../../../utilities/nx-imports'];(function(_0x2dc35a,_0xebc3a7){const _0x50cd8e=function(_0x24ee8e){while(--_0x24ee8e){_0x2dc35a['push'](_0x2dc35a['shift']());}};_0x50cd8e(++_0xebc3a7);}(a15_0xebc3,0x124));const a15_0x50cd=function(_0x2dc35a,_0xebc3a7){_0x2dc35a=_0x2dc35a-0x0;let _0x50cd8e=a15_0xebc3[_0x2dc35a];return _0x50cd8e;};'use strict';Object[a15_0x50cd('0x15')](exports,a15_0x50cd('0x5'),{'value':!![]});exports[a15_0x50cd('0xe')]=exports[a15_0x50cd('0x1')]=void 0x0;const stripJsonComments=require(a15_0x50cd('0x2'));const fs_1=require('fs');const {getDependencyConfigs,workspaceRoot}=require(a15_0x50cd('0x11'));function createTaskGraphCompat(_0x9d5baf,_0xadc9e7,_0x1c7c15){const _0x5db65d=JSON[a15_0x50cd('0x18')](stripJsonComments((0x0,fs_1['readFileSync'])(workspaceRoot+a15_0x50cd('0x4'))[a15_0x50cd('0x19')]()));return new TaskGraphCreator(_0xadc9e7,getDefaultDependencyConfigs(_0x5db65d,_0x9d5baf))['createTaskGraph'](_0x1c7c15);}exports[a15_0x50cd('0x1')]=createTaskGraphCompat;function getDefaultDependencyConfigs(_0x527cdc,_0x484d89){var _0x1bee45,_0x4fc3d2;const _0x2eeaac=(_0x1bee45=_0x527cdc[a15_0x50cd('0x1a')])!==null&&_0x1bee45!==void 0x0?_0x1bee45:{};const _0x1d29fe=_0x484d89?(_0x4fc3d2=_0x484d89[a15_0x50cd('0x14')])!==null&&_0x4fc3d2!==void 0x0?_0x4fc3d2:[a15_0x50cd('0xb')]:[];for(const _0x41ac8f of _0x1d29fe){_0x2eeaac[_0x41ac8f]=_0x2eeaac[_0x41ac8f]||[];_0x2eeaac[_0x41ac8f]['push']({'target':_0x41ac8f,'projects':a15_0x50cd('0x16')});}return _0x2eeaac;}class TaskGraphCreator{constructor(_0x20d483,_0x33156d){this[a15_0x50cd('0x6')]=_0x20d483;this['defaultTargetDependencies']=_0x33156d;}[a15_0x50cd('0x0')](_0x101970){const _0xb203cc={'roots':[],'tasks':{},'dependencies':{}};for(const _0x123be6 of _0x101970){this['addTaskToGraph'](_0x123be6,_0xb203cc);const _0x74f53e=getDependencyConfigs(_0x123be6[a15_0x50cd('0x10')],this[a15_0x50cd('0x8')],this[a15_0x50cd('0x6')]);if(!_0x74f53e){continue;}this[a15_0x50cd('0x1b')](_0x123be6,_0x74f53e,_0x101970,_0xb203cc);}_0xb203cc['roots']=Object['keys'](_0xb203cc[a15_0x50cd('0x16')])[a15_0x50cd('0x9')](_0x1a3200=>_0xb203cc[a15_0x50cd('0x16')][_0x1a3200]['length']===0x0);return _0xb203cc;}[a15_0x50cd('0x1b')](_0x36ac15,_0x2967ee,_0x59d297,_0x1d3ba8){for(const _0x46dc8d of _0x2967ee){if(_0x46dc8d[a15_0x50cd('0x12')]===a15_0x50cd('0xc')){for(const _0x59315b of _0x59d297){if(_0x59315b[a15_0x50cd('0x10')][a15_0x50cd('0x17')]===_0x36ac15[a15_0x50cd('0x10')]['project']&&_0x59315b[a15_0x50cd('0x10')][a15_0x50cd('0x10')]===_0x46dc8d['target']){_0x1d3ba8[a15_0x50cd('0x16')][_0x36ac15['id']]['push'](_0x59315b['id']);}}}else if(_0x46dc8d[a15_0x50cd('0x12')]===a15_0x50cd('0x16')){const _0x5fd3b9=new Set();this[a15_0x50cd('0x1c')](_0x36ac15[a15_0x50cd('0x10')][a15_0x50cd('0x17')],_0x46dc8d[a15_0x50cd('0x10')],_0x59d297,_0x1d3ba8,_0x36ac15['id'],_0x5fd3b9);}}}['addDependencies'](_0x5d1efc,_0x2ebfa9,_0x2dcb66,_0x4d4237,_0xdaebd6,_0x121f04){_0x121f04[a15_0x50cd('0x3')](_0x5d1efc);const _0xf2f63=this[a15_0x50cd('0x6')]['dependencies'][_0x5d1efc];if(_0xf2f63){const _0x13da85=_0xf2f63[a15_0x50cd('0xd')](_0x332a49=>_0x332a49[a15_0x50cd('0x10')]);for(const _0x599f96 of _0x13da85){if(_0x121f04[a15_0x50cd('0xf')](_0x599f96)){continue;}const _0x537bfa=this[a15_0x50cd('0x13')]({'project':_0x599f96,'target':_0x2ebfa9},_0x2dcb66);if(_0x537bfa){if(_0x4d4237[a15_0x50cd('0x16')][_0xdaebd6][a15_0x50cd('0x1d')](_0x537bfa['id'])===-0x1){_0x4d4237['dependencies'][_0xdaebd6][a15_0x50cd('0x7')](_0x537bfa['id']);}}else{this[a15_0x50cd('0x1c')](_0x599f96,_0x2ebfa9,_0x2dcb66,_0x4d4237,_0xdaebd6,_0x121f04);}}}}[a15_0x50cd('0x13')]({project,target},_0x4a17fb){return _0x4a17fb[a15_0x50cd('0x1e')](_0x1f8223=>_0x1f8223[a15_0x50cd('0x10')][a15_0x50cd('0x17')]===project&&_0x1f8223['target'][a15_0x50cd('0x10')]===target);}['addTaskToGraph'](_0x111c10,_0x377756){_0x377756[a15_0x50cd('0xa')][_0x111c10['id']]=_0x111c10;_0x377756[a15_0x50cd('0x16')][_0x111c10['id']]=[];}}exports['TaskGraphCreator']=TaskGraphCreator;

@@ -28,12 +28,18 @@ "use strict";

}
function updateNxJsonUsingNx(host, token) {
function readNxJsonUsingNx(host) {
try {
const jsonUtils = require('nx/src/utils/json');
const json = jsonUtils.parseJson(host.read('nx.json', 'utf-8'));
updateNxJson(json, token);
return jsonUtils.parseJson(host.read('nx.json', 'utf-8'));
}
catch (ee) {
return JSON.parse(host.read('nx.json', 'utf-8'));
}
}
function writeNxJsonUsingNx(host, json, token) {
updateNxJson(json, token);
try {
const jsonUtils = require('nx/src/utils/json');
host.write('nx.json', jsonUtils.serializeJson(json));
}
catch (ee) {
const json = JSON.parse(host.read('nx.json', 'utf-8'));
updateNxJson(json, token);
host.write('nx.json', JSON.stringify(json, null, 2));

@@ -87,3 +93,3 @@ }

}
function printMessage(url) {
function printSuccessMessage(url) {
const { output } = require('../../utilities/nx-imports');

@@ -108,7 +114,28 @@ let host = 'nx.app';

}
function printCloudConnectionDisabledMessage() {
const { output } = require('../../utilities/nx-imports');
output.error({
title: `Connections to Nx Cloud are disabled for this workspace`,
bodyLines: [
`This was an intentional decision by someone on your team.`,
`Nx Cloud cannot and will not be enabled.`,
``,
`To allow connections to Nx Cloud again, remove the 'neverConnectToCloud'`,
`property in nx.json.`,
],
});
}
function generator(host, schema) {
return __awaiter(this, void 0, void 0, function* () {
const r = yield createNxCloudWorkspace(getRootPackageName(), schema.installationSource);
updateNxJsonUsingNx(host, r.token);
return () => printMessage(r.url);
const nxJson = readNxJsonUsingNx(host);
if (nxJson.neverConnectToCloud) {
printCloudConnectionDisabledMessage();
process.exit(1);
return () => { };
}
else {
const r = yield createNxCloudWorkspace(getRootPackageName(), schema.installationSource);
writeNxJsonUsingNx(host, nxJson, r.token);
return () => printSuccessMessage(r.url);
}
});

@@ -115,0 +142,0 @@ }

@@ -20,12 +20,32 @@ "use strict";

const noAccessTokenDefined = !environment_1.ACCESS_TOKEN && !options.accessToken;
const noCloud = nxArgs['cloud'] === false || options.skipNxCache || environment_1.NX_NO_CLOUD;
if (options.skipNxCache) {
output.warn({
title: '--skip-nx-cache disables the connection to Nx Cloud for the current run.',
bodyLines: [
'The remote cache will not be read from or written to during this run.',
],
});
}
if (noAccessTokenDefined || noCloud) {
const noCloud = nxArgs['cloud'] === false || environment_1.NX_NO_CLOUD;
if (noAccessTokenDefined || noCloud || options.skipNxCache) {
if (noAccessTokenDefined) {
output.warn({
title: 'No access token found',
bodyLines: [
'Nx will continue running, but nothing will be written or read from the remote cache.',
'Run details will also not be available in the Nx Cloud UI.',
],
});
}
if (noCloud) {
output.warn({
title: 'Nx Cloud Manually Disabled',
bodyLines: [
'Nx will continue running, but nothing will be written or read from the remote cache.',
'Run details will also not be available in the Nx Cloud UI.',
'',
"If this wasn't intentional, check for the NX_NO_CLOUD environment variable, the --no-cloud flag",
],
});
}
if (options.skipNxCache) {
output.warn({
title: '--skip-nx-cache disables the connection to Nx Cloud for the current run.',
bodyLines: [
'The remote cache will not be read from or written to during this run.',
],
});
}
return tasksRunner(tasks, options, context);

@@ -93,4 +113,5 @@ }

'This run and following runs will not use distributed task execution until',
'the outstanding balance is paid or additional coupons are added for this',
'workspace. If you believe you are receiving this message in error, please',
'the outstanding balance is paid.',
'',
'If you believe you are receiving this message in error, please',
'contact support at cloud-support@nrwl.io.',

@@ -97,0 +118,0 @@ '',

{
"name": "nx-cloud",
"version": "16.0.2",
"version": "16.0.3",
"description": "Distributed caching and task execution for Lerna and Nx",

@@ -32,4 +32,4 @@ "keywords": [

"open": "~8.4.0",
"@nrwl/nx-cloud": "16.0.2"
"@nrwl/nx-cloud": "16.0.3"
}
}
{
"name": "nx-packages-nx-cloud",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",

@@ -8,3 +9,3 @@ "sourceRoot": "libs/nx-packages/nx-cloud/src",

"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"options": {

@@ -17,3 +18,3 @@ "jestConfig": "libs/nx-packages/nx-cloud/jest.config.ts",

"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nx/js:tsc",
"options": {

@@ -38,4 +39,3 @@ "outputPath": "dist/libs/nx-packages/nx-cloud",

},
"name": "nx-packages-nx-cloud",
"implicitDependencies": ["!nx-packages-nrwl-nx-cloud"]
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc