Socket
Socket
Sign inDemoInstall

nx-cloud

Package Overview
Dependencies
35
Maintainers
2
Versions
149
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.0.1 to 19.0.0

2

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

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

const a0_0x2fee=['createApiAxiosInstance','/nx-cloud/report-client-error','apply','__esModule','axiosMultipleTries','Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27','ErrorReporterApi','next','defineProperty','throw','post','../../utilities/nx-imports-light','done','../../utilities/axios','then','apiAxiosInstance','message','value','warn'];(function(_0x48fda4,_0x2feeb0){const _0x1bfa96=function(_0x5d9b0d){while(--_0x5d9b0d){_0x48fda4['push'](_0x48fda4['shift']());}};_0x1bfa96(++_0x2feeb0);}(a0_0x2fee,0x196));const a0_0x1bfa=function(_0x48fda4,_0x2feeb0){_0x48fda4=_0x48fda4-0x0;let _0x1bfa96=a0_0x2fee[_0x48fda4];return _0x1bfa96;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x45b6fa,_0x43fafa,_0xde7678,_0x54a585){function _0x4d62bd(_0x1203bf){return _0x1203bf instanceof _0xde7678?_0x1203bf:new _0xde7678(function(_0x1612c0){_0x1612c0(_0x1203bf);});}return new(_0xde7678||(_0xde7678=Promise))(function(_0x391c09,_0x2d89bb){function _0x208a9b(_0x2ef1b4){try{_0x3a6d97(_0x54a585[a0_0x1bfa('0x0')](_0x2ef1b4));}catch(_0x2535e9){_0x2d89bb(_0x2535e9);}}function _0x11b22f(_0x496c7c){try{_0x3a6d97(_0x54a585[a0_0x1bfa('0x2')](_0x496c7c));}catch(_0x5ed4dd){_0x2d89bb(_0x5ed4dd);}}function _0x3a6d97(_0x3c9afe){_0x3c9afe[a0_0x1bfa('0x5')]?_0x391c09(_0x3c9afe[a0_0x1bfa('0xa')]):_0x4d62bd(_0x3c9afe[a0_0x1bfa('0xa')])[a0_0x1bfa('0x7')](_0x208a9b,_0x11b22f);}_0x3a6d97((_0x54a585=_0x54a585[a0_0x1bfa('0xe')](_0x45b6fa,_0x43fafa||[]))[a0_0x1bfa('0x0')]());});};Object[a0_0x1bfa('0x1')](exports,a0_0x1bfa('0xf'),{'value':!![]});exports[a0_0x1bfa('0x12')]=void 0x0;const axios_1=require(a0_0x1bfa('0x6'));const {output}=require(a0_0x1bfa('0x4'));class ErrorReporterApi{constructor(_0xd949bb){this['apiAxiosInstance']=(0x0,axios_1[a0_0x1bfa('0xc')])(_0xd949bb);}['reportError'](_0x6eb7c5){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1[a0_0x1bfa('0x10')])(()=>this[a0_0x1bfa('0x8')][a0_0x1bfa('0x3')](a0_0x1bfa('0xd'),{'message':_0x6eb7c5}));}catch(_0x22cd14){output[a0_0x1bfa('0xb')]({'title':a0_0x1bfa('0x11')+_0x6eb7c5+'\x27','bodyLines':[_0x22cd14[a0_0x1bfa('0x9')]]});}});}}exports[a0_0x1bfa('0x12')]=ErrorReporterApi;
const a0_0x58fc=['warn','defineProperty','apply','/nx-cloud/report-client-error','__awaiter','__esModule','apiAxiosInstance','../../utilities/axios','throw','then','value','../../utilities/nx-imports-light','Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27','post','axiosMultipleTries','createApiAxiosInstance'];(function(_0x148ccf,_0x58fc68){const _0x524f14=function(_0x2df0a5){while(--_0x2df0a5){_0x148ccf['push'](_0x148ccf['shift']());}};_0x524f14(++_0x58fc68);}(a0_0x58fc,0xba));const a0_0x524f=function(_0x148ccf,_0x58fc68){_0x148ccf=_0x148ccf-0x0;let _0x524f14=a0_0x58fc[_0x148ccf];return _0x524f14;};'use strict';var __awaiter=this&&this[a0_0x524f('0xa')]||function(_0x312051,_0x36ec56,_0x131d5a,_0x5ed1b5){function _0x55e03a(_0x1e561c){return _0x1e561c instanceof _0x131d5a?_0x1e561c:new _0x131d5a(function(_0x4d49b6){_0x4d49b6(_0x1e561c);});}return new(_0x131d5a||(_0x131d5a=Promise))(function(_0x27b1aa,_0x29b4d7){function _0x36bcc7(_0xc34f95){try{_0xa420c6(_0x5ed1b5['next'](_0xc34f95));}catch(_0x17a729){_0x29b4d7(_0x17a729);}}function _0x35f1f7(_0x3049e9){try{_0xa420c6(_0x5ed1b5[a0_0x524f('0xe')](_0x3049e9));}catch(_0x112cb1){_0x29b4d7(_0x112cb1);}}function _0xa420c6(_0x44d56c){_0x44d56c['done']?_0x27b1aa(_0x44d56c[a0_0x524f('0x0')]):_0x55e03a(_0x44d56c[a0_0x524f('0x0')])[a0_0x524f('0xf')](_0x36bcc7,_0x35f1f7);}_0xa420c6((_0x5ed1b5=_0x5ed1b5[a0_0x524f('0x8')](_0x312051,_0x36ec56||[]))['next']());});};Object[a0_0x524f('0x7')](exports,a0_0x524f('0xb'),{'value':!![]});exports['ErrorReporterApi']=void 0x0;const axios_1=require(a0_0x524f('0xd'));const {output}=require(a0_0x524f('0x1'));class ErrorReporterApi{constructor(_0x583dda){this[a0_0x524f('0xc')]=(0x0,axios_1[a0_0x524f('0x5')])(_0x583dda);}['reportError'](_0x4f2dcb){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1[a0_0x524f('0x4')])(()=>this['apiAxiosInstance'][a0_0x524f('0x3')](a0_0x524f('0x9'),{'message':_0x4f2dcb}));}catch(_0x5ddbc1){output[a0_0x524f('0x6')]({'title':a0_0x524f('0x2')+_0x4f2dcb+'\x27','bodyLines':[_0x5ddbc1['message']]});}});}}exports['ErrorReporterApi']=ErrorReporterApi;

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

const a1_0x10fc=['exit','createMetricRecorder','value','../../utilities/axios','completeRunGroup','recordMetric','createRunGroup','message','mapRespToPerfEntry','__awaiter','response','RUNNER_FAILURE_PERF_ENTRY','createApiAxiosInstance','RunGroupApi','apply','done','apiAxiosInstance','next','/nx-cloud/executions/create-run-group','post','axiosException','../../utilities/metric-logger','then','../../utilities/nx-imports-light','error'];(function(_0x5b9960,_0x10fc61){const _0x23ffa4=function(_0x44c280){while(--_0x44c280){_0x5b9960['push'](_0x5b9960['shift']());}};_0x23ffa4(++_0x10fc61);}(a1_0x10fc,0x1e5));const a1_0x23ff=function(_0x5b9960,_0x10fc61){_0x5b9960=_0x5b9960-0x0;let _0x23ffa4=a1_0x10fc[_0x5b9960];return _0x23ffa4;};'use strict';var __awaiter=this&&this[a1_0x23ff('0x18')]||function(_0xb69123,_0xab91bf,_0x3d2f07,_0x5bb82f){function _0x347859(_0x5560b7){return _0x5560b7 instanceof _0x3d2f07?_0x5560b7:new _0x3d2f07(function(_0x13b3c8){_0x13b3c8(_0x5560b7);});}return new(_0x3d2f07||(_0x3d2f07=Promise))(function(_0x127a9d,_0x241ed6){function _0x529d4f(_0x53fed5){try{_0xe9d7e8(_0x5bb82f[a1_0x23ff('0x7')](_0x53fed5));}catch(_0x36489c){_0x241ed6(_0x36489c);}}function _0x22ec39(_0x5142df){try{_0xe9d7e8(_0x5bb82f['throw'](_0x5142df));}catch(_0x516dc7){_0x241ed6(_0x516dc7);}}function _0xe9d7e8(_0x4f4782){_0x4f4782[a1_0x23ff('0x5')]?_0x127a9d(_0x4f4782[a1_0x23ff('0x11')]):_0x347859(_0x4f4782[a1_0x23ff('0x11')])[a1_0x23ff('0xc')](_0x529d4f,_0x22ec39);}_0xe9d7e8((_0x5bb82f=_0x5bb82f[a1_0x23ff('0x4')](_0xb69123,_0xab91bf||[]))[a1_0x23ff('0x7')]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a1_0x23ff('0x3')]=void 0x0;const axios_1=require(a1_0x23ff('0x12'));const metric_logger_1=require(a1_0x23ff('0xb'));const {output}=require(a1_0x23ff('0xd'));class RunGroupApi{constructor(_0x2e599c){this[a1_0x23ff('0x6')]=(0x0,axios_1[a1_0x23ff('0x2')])(_0x2e599c);}[a1_0x23ff('0x15')](_0x24d3d5,_0x243e31,_0x3ae4d9,_0xf0085a,_0x4bb835,_0x2cc177,_0x2dbba5,_0x401b5e,_0x56b504){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x35a2d9;const _0x1f2837=(0x0,metric_logger_1[a1_0x23ff('0x10')])('createRunGroup');try{const _0x5d2a55=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a1_0x23ff('0x6')][a1_0x23ff('0x9')](a1_0x23ff('0x8'),{'branch':_0x24d3d5,'runGroup':_0x243e31,'ciExecutionId':_0x3ae4d9,'ciExecutionEnv':_0xf0085a,'stopAgentsOnFailure':_0x4bb835,'agentCount':_0x2cc177,'stopAgentsAfter':_0x2dbba5,'commitSha':_0x401b5e}));_0x1f2837[a1_0x23ff('0x14')]((0x0,metric_logger_1[a1_0x23ff('0x17')])(_0x5d2a55));}catch(_0xbae581){_0x1f2837['recordMetric'](((_0x35a2d9=_0xbae581===null||_0xbae581===void 0x0?void 0x0:_0xbae581[a1_0x23ff('0xa')])===null||_0x35a2d9===void 0x0?void 0x0:_0x35a2d9[a1_0x23ff('0x0')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0xbae581[a1_0x23ff('0xa')][a1_0x23ff('0x0')]):metric_logger_1[a1_0x23ff('0x1')]);output[a1_0x23ff('0xe')]({'title':_0xbae581[a1_0x23ff('0x16')]});process[a1_0x23ff('0xf')](0x1);}});}[a1_0x23ff('0x13')](_0x67b7de,_0x137d78,_0x268b75,_0x1cc722){return __awaiter(this,void 0x0,void 0x0,function*(){var _0xd69d8e;const _0x3e4ad7=(0x0,metric_logger_1['createMetricRecorder'])(a1_0x23ff('0x13'));try{const _0x3e02bb=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a1_0x23ff('0x6')][a1_0x23ff('0x9')]('/nx-cloud/executions/complete-run-group',{'branch':_0x67b7de,'runGroup':_0x137d78,'ciExecutionId':_0x268b75,'ciExecutionEnv':_0x1cc722}));_0x3e4ad7[a1_0x23ff('0x14')]((0x0,metric_logger_1[a1_0x23ff('0x17')])(_0x3e02bb));}catch(_0x2047db){_0x3e4ad7[a1_0x23ff('0x14')](((_0xd69d8e=_0x2047db===null||_0x2047db===void 0x0?void 0x0:_0x2047db[a1_0x23ff('0xa')])===null||_0xd69d8e===void 0x0?void 0x0:_0xd69d8e['response'])?(0x0,metric_logger_1[a1_0x23ff('0x17')])(_0x2047db[a1_0x23ff('0xa')]['response']):metric_logger_1[a1_0x23ff('0x1')]);output['error']({'title':_0x2047db['message']});process[a1_0x23ff('0xf')](0x1);}});}}exports[a1_0x23ff('0x3')]=RunGroupApi;
const a1_0x921a=['throw','createRunGroup','apiAxiosInstance','mapRespToPerfEntry','done','post','defineProperty','apply','../../utilities/metric-logger','response','message','RunGroupApi','then','completeRunGroup','axiosException','error','recordMetric','value','axiosMultipleTries','RUNNER_FAILURE_PERF_ENTRY','next','/nx-cloud/executions/create-run-group','../../utilities/axios'];(function(_0x21197b,_0x921af){const _0x2d4f86=function(_0x5dee4d){while(--_0x5dee4d){_0x21197b['push'](_0x21197b['shift']());}};_0x2d4f86(++_0x921af);}(a1_0x921a,0xef));const a1_0x2d4f=function(_0x21197b,_0x921af){_0x21197b=_0x21197b-0x0;let _0x2d4f86=a1_0x921a[_0x21197b];return _0x2d4f86;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x5c7ebd,_0x2e3489,_0x52c5fa,_0x1fd626){function _0x22bdb1(_0x142158){return _0x142158 instanceof _0x52c5fa?_0x142158:new _0x52c5fa(function(_0x5f3dce){_0x5f3dce(_0x142158);});}return new(_0x52c5fa||(_0x52c5fa=Promise))(function(_0x4cd796,_0x227ec5){function _0x23fe1c(_0x4f8986){try{_0x51aa7a(_0x1fd626[a1_0x2d4f('0xb')](_0x4f8986));}catch(_0xeb7e9a){_0x227ec5(_0xeb7e9a);}}function _0x204674(_0x284a21){try{_0x51aa7a(_0x1fd626[a1_0x2d4f('0xe')](_0x284a21));}catch(_0x1ceebd){_0x227ec5(_0x1ceebd);}}function _0x51aa7a(_0x38008c){_0x38008c[a1_0x2d4f('0x12')]?_0x4cd796(_0x38008c[a1_0x2d4f('0x8')]):_0x22bdb1(_0x38008c[a1_0x2d4f('0x8')])[a1_0x2d4f('0x3')](_0x23fe1c,_0x204674);}_0x51aa7a((_0x1fd626=_0x1fd626[a1_0x2d4f('0x15')](_0x5c7ebd,_0x2e3489||[]))['next']());});};Object[a1_0x2d4f('0x14')](exports,'__esModule',{'value':!![]});exports[a1_0x2d4f('0x2')]=void 0x0;const axios_1=require(a1_0x2d4f('0xd'));const metric_logger_1=require(a1_0x2d4f('0x16'));const {output}=require('../../utilities/nx-imports-light');class RunGroupApi{constructor(_0x2b9ba2){this[a1_0x2d4f('0x10')]=(0x0,axios_1['createApiAxiosInstance'])(_0x2b9ba2);}[a1_0x2d4f('0xf')](_0x1c4295,_0x3953ef,_0x345f00,_0x5f4677,_0x364c88,_0x4b5499,_0x117c24,_0x21b145,_0x458749){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x914385;const _0x41eae=(0x0,metric_logger_1['createMetricRecorder'])('createRunGroup');try{const _0x3770ee=yield(0x0,axios_1[a1_0x2d4f('0x9')])(()=>this[a1_0x2d4f('0x10')][a1_0x2d4f('0x13')](a1_0x2d4f('0xc'),{'branch':_0x1c4295,'runGroup':_0x3953ef,'ciExecutionId':_0x345f00,'ciExecutionEnv':_0x5f4677,'stopAgentsOnFailure':_0x364c88,'agentCount':_0x4b5499,'stopAgentsAfter':_0x117c24,'commitSha':_0x21b145}));_0x41eae[a1_0x2d4f('0x7')]((0x0,metric_logger_1[a1_0x2d4f('0x11')])(_0x3770ee));}catch(_0x33d184){_0x41eae[a1_0x2d4f('0x7')](((_0x914385=_0x33d184===null||_0x33d184===void 0x0?void 0x0:_0x33d184[a1_0x2d4f('0x5')])===null||_0x914385===void 0x0?void 0x0:_0x914385[a1_0x2d4f('0x0')])?(0x0,metric_logger_1[a1_0x2d4f('0x11')])(_0x33d184[a1_0x2d4f('0x5')][a1_0x2d4f('0x0')]):metric_logger_1[a1_0x2d4f('0xa')]);output[a1_0x2d4f('0x6')]({'title':_0x33d184[a1_0x2d4f('0x1')]});process['exit'](0x1);}});}['completeRunGroup'](_0x470ca9,_0x7e350d,_0x2a8347,_0x1a5679){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x3b3597;const _0x4f225c=(0x0,metric_logger_1['createMetricRecorder'])(a1_0x2d4f('0x4'));try{const _0xd99e=yield(0x0,axios_1[a1_0x2d4f('0x9')])(()=>this['apiAxiosInstance']['post']('/nx-cloud/executions/complete-run-group',{'branch':_0x470ca9,'runGroup':_0x7e350d,'ciExecutionId':_0x2a8347,'ciExecutionEnv':_0x1a5679}));_0x4f225c[a1_0x2d4f('0x7')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0xd99e));}catch(_0x11be02){_0x4f225c[a1_0x2d4f('0x7')](((_0x3b3597=_0x11be02===null||_0x11be02===void 0x0?void 0x0:_0x11be02[a1_0x2d4f('0x5')])===null||_0x3b3597===void 0x0?void 0x0:_0x3b3597['response'])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x11be02['axiosException'][a1_0x2d4f('0x0')]):metric_logger_1[a1_0x2d4f('0xa')]);output[a1_0x2d4f('0x6')]({'title':_0x11be02[a1_0x2d4f('0x1')]});process['exit'](0x1);}});}}exports[a1_0x2d4f('0x2')]=RunGroupApi;

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

const a0_0x510c=['cacheDirectory','../../../utilities/serializer-overrides','crypto','push','defineProperty','runContext','params','updateStartedTask','code','keys','endTime','collectTerminalOutput','cache-miss','implicitDeps','find','cleanUpHashDetails','update','digest','task','getTerminalOutput','runtime','cache','toISOString','../../terminal-output/read-task-terminal-output','startTime','remote-cache-hit','cacheStatus','obfuscate','scheduledTasks','createHash','status','startTask','hash','startsWith','outputObfuscator','CloudEnabledLifeCycle','taskId','tasks','readTaskTerminalOutput','base64','npm:','cacheableOperations','target','statuses','nodes','endTasks','local-cache','md5','Cannot\x20find\x20task\x20','length','project','serializeOverrides','remote-cache'];(function(_0x276b19,_0x510c0f){const _0x4d4a18=function(_0x4392dd){while(--_0x4392dd){_0x276b19['push'](_0x276b19['shift']());}};_0x4d4a18(++_0x510c0f);}(a0_0x510c,0x109));const a0_0x4d4a=function(_0x276b19,_0x510c0f){_0x276b19=_0x276b19-0x0;let _0x4d4a18=a0_0x510c[_0x276b19];return _0x4d4a18;};'use strict';Object[a0_0x4d4a('0x4')](exports,'__esModule',{'value':!![]});exports[a0_0x4d4a('0x23')]=void 0x0;const crypto_1=require(a0_0x4d4a('0x2'));const serializer_overrides_1=require(a0_0x4d4a('0x1'));const read_task_terminal_output_1=require(a0_0x4d4a('0x17'));class CloudEnabledLifeCycle{constructor(_0x523ff5,_0x47d70a,_0x522f84,_0x3fb817,_0x12a94e,_0x1e7ce7){this['runContext']=_0x523ff5;this[a0_0x4d4a('0x0')]=_0x47d70a;this[a0_0x4d4a('0xb')]=_0x522f84;this[a0_0x4d4a('0x29')]=_0x3fb817;this[a0_0x4d4a('0x22')]=_0x12a94e;this[a0_0x4d4a('0x25')]=_0x1e7ce7;}['scheduleTask'](_0x315f8d){this[a0_0x4d4a('0x5')][a0_0x4d4a('0x1c')][a0_0x4d4a('0x3')](_0x315f8d);}[a0_0x4d4a('0x1f')](_0x5309df){this['tasks']['push']({'taskId':_0x5309df['id'],'startTime':new Date()[a0_0x4d4a('0x16')](),'target':_0x5309df[a0_0x4d4a('0x2a')][a0_0x4d4a('0x2a')],'projectName':_0x5309df[a0_0x4d4a('0x2a')][a0_0x4d4a('0x32')],'hash':_0x5309df[a0_0x4d4a('0x20')],'hashDetails':this[a0_0x4d4a('0xf')](_0x5309df['hashDetails']),'params':(0x0,serializer_overrides_1[a0_0x4d4a('0x33')])(_0x5309df),'uploadedToStorage':![]});}[a0_0x4d4a('0x2d')](_0x7f239a){for(let _0x455542 of _0x7f239a){let _0x2fb568;const _0x2b60d3=_0x455542['status']===a0_0x4d4a('0x34');const _0x493820=_0x455542[a0_0x4d4a('0x1e')]===a0_0x4d4a('0x15');const _0x3eb99c=_0x455542[a0_0x4d4a('0x1e')]===a0_0x4d4a('0x2e')||_0x455542[a0_0x4d4a('0x1e')]==='local-cache-kept-existing'||_0x493820;if(this['runContext'][a0_0x4d4a('0x2b')][_0x455542[a0_0x4d4a('0x12')][a0_0x4d4a('0x20')]]){_0x2fb568=this['runContext']['statuses'][_0x455542[a0_0x4d4a('0x12')][a0_0x4d4a('0x20')]];}else if(_0x2b60d3){_0x2fb568=a0_0x4d4a('0x19');}else if(_0x3eb99c){_0x2fb568='local-cache-hit';}else{_0x2fb568=a0_0x4d4a('0xc');}this[a0_0x4d4a('0x7')](_0x455542,_0x2fb568);}}['endCommand'](){}[a0_0x4d4a('0x7')](_0x15db30,_0x181ba9){const _0x10b2e1=this['tasks'][a0_0x4d4a('0xe')](_0x2fd67c=>_0x2fd67c[a0_0x4d4a('0x24')]===_0x15db30[a0_0x4d4a('0x12')]['id']);if(!_0x10b2e1){throw new Error(a0_0x4d4a('0x30')+_0x15db30[a0_0x4d4a('0x12')]['id']);}if((_0x15db30===null||_0x15db30===void 0x0?void 0x0:_0x15db30['startTime'])&&(_0x15db30===null||_0x15db30===void 0x0?void 0x0:_0x15db30['endTime'])){_0x10b2e1[a0_0x4d4a('0x18')]=new Date(_0x15db30[a0_0x4d4a('0x18')])['toISOString']();_0x10b2e1[a0_0x4d4a('0xa')]=new Date(_0x15db30['endTime'])[a0_0x4d4a('0x16')]();}else{_0x10b2e1[a0_0x4d4a('0xa')]=new Date()[a0_0x4d4a('0x16')]();}_0x10b2e1[a0_0x4d4a('0x1e')]=_0x15db30[a0_0x4d4a('0x8')];_0x10b2e1[a0_0x4d4a('0x6')]=this['outputObfuscator'][a0_0x4d4a('0x1b')](_0x10b2e1['params']);_0x10b2e1['cacheStatus']=_0x181ba9;if(this[a0_0x4d4a('0xb')]){_0x10b2e1['terminalOutput']=this[a0_0x4d4a('0x13')](_0x15db30[a0_0x4d4a('0x12')][a0_0x4d4a('0x20')],_0x10b2e1[a0_0x4d4a('0x1a')],_0x15db30[a0_0x4d4a('0x8')]);}}[a0_0x4d4a('0x13')](_0x893145,_0x2a8cf3,_0x41978e){return(0x0,read_task_terminal_output_1[a0_0x4d4a('0x26')])(this[a0_0x4d4a('0x0')],this[a0_0x4d4a('0x22')],_0x893145,_0x2a8cf3,_0x41978e);}[a0_0x4d4a('0xf')](_0x5121c5){const _0x46b29e={};const _0x2eac6d=[];for(const _0x5d25e0 of Object[a0_0x4d4a('0x9')](_0x5121c5['nodes'])){if(_0x5d25e0[a0_0x4d4a('0x21')](a0_0x4d4a('0x28'))){_0x2eac6d[a0_0x4d4a('0x3')](_0x5121c5[a0_0x4d4a('0x2c')][_0x5d25e0]);}else{_0x46b29e[_0x5d25e0]=_0x5121c5[a0_0x4d4a('0x2c')][_0x5d25e0];}}_0x2eac6d['sort']();if(_0x2eac6d[a0_0x4d4a('0x31')]>0x0){const _0xb98f8a=(0x0,crypto_1[a0_0x4d4a('0x1d')])(a0_0x4d4a('0x2f'));_0xb98f8a[a0_0x4d4a('0x10')](_0x2eac6d['join']('|'));_0x46b29e['npmDependencies']=_0xb98f8a[a0_0x4d4a('0x11')](a0_0x4d4a('0x27'));}return{'nodes':_0x46b29e,'runtime':_0x5121c5[a0_0x4d4a('0x14')],'implicitDeps':_0x5121c5[a0_0x4d4a('0xd')]};}}exports[a0_0x4d4a('0x23')]=CloudEnabledLifeCycle;
const a0_0x262f=['md5','digest','params','getTerminalOutput','updateStartedTask','toISOString','outputObfuscator','find','createHash','project','base64','hash','cache-miss','../../../utilities/serializer-overrides','scheduledTasks','taskId','startTime','../../terminal-output/read-task-terminal-output','update','code','status','hashDetails','endTime','cleanUpHashDetails','collectTerminalOutput','tasks','local-cache','keys','nodes','target','npm:','runContext','cache','CloudEnabledLifeCycle','readTaskTerminalOutput','sort','push','endCommand','remote-cache','crypto','cacheDirectory','startsWith','scheduleTask','__esModule','task','cacheableOperations','statuses'];(function(_0x140651,_0x262f72){const _0x1f6cb5=function(_0x5e23f5){while(--_0x5e23f5){_0x140651['push'](_0x140651['shift']());}};_0x1f6cb5(++_0x262f72);}(a0_0x262f,0xb8));const a0_0x1f6c=function(_0x140651,_0x262f72){_0x140651=_0x140651-0x0;let _0x1f6cb5=a0_0x262f[_0x140651];return _0x1f6cb5;};'use strict';Object['defineProperty'](exports,a0_0x1f6c('0x0'),{'value':!![]});exports[a0_0x1f6c('0x25')]=void 0x0;const crypto_1=require(a0_0x1f6c('0x2b'));const serializer_overrides_1=require(a0_0x1f6c('0x11'));const read_task_terminal_output_1=require(a0_0x1f6c('0x15'));class CloudEnabledLifeCycle{constructor(_0x154cba,_0x5aac9d,_0x40bbf0,_0x3cb2eb,_0x111bd1,_0x45a865){this[a0_0x1f6c('0x23')]=_0x154cba;this[a0_0x1f6c('0x2c')]=_0x5aac9d;this['collectTerminalOutput']=_0x40bbf0;this[a0_0x1f6c('0x2')]=_0x3cb2eb;this['outputObfuscator']=_0x111bd1;this[a0_0x1f6c('0x1d')]=_0x45a865;}[a0_0x1f6c('0x2e')](_0x43c9fc){this[a0_0x1f6c('0x23')][a0_0x1f6c('0x12')][a0_0x1f6c('0x28')](_0x43c9fc);}['startTask'](_0x20b201){this['tasks'][a0_0x1f6c('0x28')]({'taskId':_0x20b201['id'],'startTime':new Date()[a0_0x1f6c('0x9')](),'target':_0x20b201['target'][a0_0x1f6c('0x21')],'projectName':_0x20b201[a0_0x1f6c('0x21')][a0_0x1f6c('0xd')],'hash':_0x20b201[a0_0x1f6c('0xf')],'hashDetails':this['cleanUpHashDetails'](_0x20b201[a0_0x1f6c('0x19')]),'params':(0x0,serializer_overrides_1['serializeOverrides'])(_0x20b201),'uploadedToStorage':![]});}['endTasks'](_0x483b7e){for(let _0x1055ac of _0x483b7e){let _0x199fe7;const _0x2a7176=_0x1055ac[a0_0x1f6c('0x18')]===a0_0x1f6c('0x2a');const _0x4865df=_0x1055ac[a0_0x1f6c('0x18')]===a0_0x1f6c('0x24');const _0x13799f=_0x1055ac[a0_0x1f6c('0x18')]===a0_0x1f6c('0x1e')||_0x1055ac['status']==='local-cache-kept-existing'||_0x4865df;if(this[a0_0x1f6c('0x23')][a0_0x1f6c('0x3')][_0x1055ac[a0_0x1f6c('0x1')][a0_0x1f6c('0xf')]]){_0x199fe7=this[a0_0x1f6c('0x23')][a0_0x1f6c('0x3')][_0x1055ac[a0_0x1f6c('0x1')][a0_0x1f6c('0xf')]];}else if(_0x2a7176){_0x199fe7='remote-cache-hit';}else if(_0x13799f){_0x199fe7='local-cache-hit';}else{_0x199fe7=a0_0x1f6c('0x10');}this[a0_0x1f6c('0x8')](_0x1055ac,_0x199fe7);}}[a0_0x1f6c('0x29')](){}['updateStartedTask'](_0x19800,_0x571ca8){const _0x1f6ea0=this[a0_0x1f6c('0x1d')][a0_0x1f6c('0xb')](_0x24e703=>_0x24e703[a0_0x1f6c('0x13')]===_0x19800[a0_0x1f6c('0x1')]['id']);if(!_0x1f6ea0){throw new Error('Cannot\x20find\x20task\x20'+_0x19800['task']['id']);}if((_0x19800===null||_0x19800===void 0x0?void 0x0:_0x19800[a0_0x1f6c('0x14')])&&(_0x19800===null||_0x19800===void 0x0?void 0x0:_0x19800[a0_0x1f6c('0x1a')])){_0x1f6ea0[a0_0x1f6c('0x14')]=new Date(_0x19800['startTime'])[a0_0x1f6c('0x9')]();_0x1f6ea0['endTime']=new Date(_0x19800['endTime'])[a0_0x1f6c('0x9')]();}else{_0x1f6ea0[a0_0x1f6c('0x1a')]=new Date()['toISOString']();}_0x1f6ea0[a0_0x1f6c('0x18')]=_0x19800[a0_0x1f6c('0x17')];_0x1f6ea0[a0_0x1f6c('0x6')]=this[a0_0x1f6c('0xa')]['obfuscate'](_0x1f6ea0[a0_0x1f6c('0x6')]);_0x1f6ea0['cacheStatus']=_0x571ca8;if(this[a0_0x1f6c('0x1c')]){_0x1f6ea0['terminalOutput']=this[a0_0x1f6c('0x7')](_0x19800[a0_0x1f6c('0x1')][a0_0x1f6c('0xf')],_0x1f6ea0['cacheStatus'],_0x19800[a0_0x1f6c('0x17')]);}}[a0_0x1f6c('0x7')](_0x3c8b7,_0x2d30ae,_0x47f5c8){return(0x0,read_task_terminal_output_1[a0_0x1f6c('0x26')])(this[a0_0x1f6c('0x2c')],this[a0_0x1f6c('0xa')],_0x3c8b7,_0x2d30ae,_0x47f5c8);}[a0_0x1f6c('0x1b')](_0x13e368){const _0xb7a5d0={};const _0x2bec14=[];for(const _0x326f0e of Object[a0_0x1f6c('0x1f')](_0x13e368[a0_0x1f6c('0x20')])){if(_0x326f0e[a0_0x1f6c('0x2d')](a0_0x1f6c('0x22'))){_0x2bec14['push'](_0x13e368[a0_0x1f6c('0x20')][_0x326f0e]);}else{_0xb7a5d0[_0x326f0e]=_0x13e368[a0_0x1f6c('0x20')][_0x326f0e];}}_0x2bec14[a0_0x1f6c('0x27')]();if(_0x2bec14['length']>0x0){const _0x1e8f86=(0x0,crypto_1[a0_0x1f6c('0xc')])(a0_0x1f6c('0x4'));_0x1e8f86[a0_0x1f6c('0x16')](_0x2bec14['join']('|'));_0xb7a5d0['npmDependencies']=_0x1e8f86[a0_0x1f6c('0x5')](a0_0x1f6c('0xe'));}return{'nodes':_0xb7a5d0,'runtime':_0x13e368['runtime'],'implicitDeps':_0x13e368['implicitDeps']};}}exports[a0_0x1f6c('0x25')]=CloudEnabledLifeCycle;

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

const a1_0x5ab9=['value','\x20isn\x27t\x20recorded','then','tasks-hashes-','startRun','join','E2EEncryption','../../file-storage/e2e-encryption','map','store','storedHashes','processInBackground','toISOString','../../api/error-reporter.api','filter','../../file-storage/file-storage','getMachineInfo','parseCommand','extractGitSha','rxjs/internal/Subject','daemon','resolve','waitForStoreRequestsToComplete','skipNxCache','/runs/','CloudRemoteCache','endRun','assign','anyErrors','runUrl','accessToken','removeTrailingSlash','find','lifeCycle','hash','CloudEnabledLifeCycle','message','https://nx.app','getCIExecutionEnv','../../terminal-output/end-of-run-message','FileStorage','local-cache-hit','VERBOSE_LOGGING','path','printMessages','delayedStoreRequests','length','../../../utilities/metric-logger','OutputObfuscator','exit','obfuscate','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','note','CloudRunApi','url','../../../utilities/nx-imports-light','../../terminal-output/message-reporter','cloud-enabled-runner','pathExists','ACCESS_TOKEN','forEach','uploadedToStorage','submitRunMetrics','getBranch','warn','throw','getRunGroup','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','agentRunningInDistributedExecution','../../../utilities/nx-imports','__esModule','error','Nx\x20Cloud\x20Problems','.commit','../../terminal-output/output-obfuscator','Executed\x20tasks\x20with\x20hashes:\x20','toString','writeFileSync','apply','next','env','cloudEnabledTasksRunner','MessageReporter','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20store\x20artifacts.','generateUniqueLinkId'];(function(_0x413507,_0x5ab9e7){const _0x127fbc=function(_0x48433a){while(--_0x48433a){_0x413507['push'](_0x413507['shift']());}};_0x127fbc(++_0x5ab9e7);}(a1_0x5ab9,0x176));const a1_0x127f=function(_0x413507,_0x5ab9e7){_0x413507=_0x413507-0x0;let _0x127fbc=a1_0x5ab9[_0x413507];return _0x127fbc;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x227040,_0x2c2338,_0xd4b48,_0xd17119){function _0x3d2d64(_0x116a9d){return _0x116a9d instanceof _0xd4b48?_0x116a9d:new _0xd4b48(function(_0x458c00){_0x458c00(_0x116a9d);});}return new(_0xd4b48||(_0xd4b48=Promise))(function(_0x269223,_0xaf40cc){function _0xf31d5d(_0x439882){try{_0x172fd8(_0xd17119['next'](_0x439882));}catch(_0x215e96){_0xaf40cc(_0x215e96);}}function _0x27057d(_0x441fcc){try{_0x172fd8(_0xd17119[a1_0x127f('0x1f')](_0x441fcc));}catch(_0x129e25){_0xaf40cc(_0x129e25);}}function _0x172fd8(_0x3f72d0){_0x3f72d0['done']?_0x269223(_0x3f72d0['value']):_0x3d2d64(_0x3f72d0[a1_0x127f('0x33')])[a1_0x127f('0x35')](_0xf31d5d,_0x27057d);}_0x172fd8((_0xd17119=_0xd17119[a1_0x127f('0x2c')](_0x227040,_0x2c2338||[]))[a1_0x127f('0x2d')]());});};Object['defineProperty'](exports,a1_0x127f('0x24'),{'value':!![]});exports[a1_0x127f('0x2f')]=void 0x0;const fs_1=require('fs');const fs_extra_1=require('fs-extra');const path=require(a1_0x127f('0x9'));const path_1=require(a1_0x127f('0x9'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a1_0x127f('0xd'));const remove_trailing_slash_1=require('../../../utilities/remove-trailing-slash');const error_reporter_api_1=require(a1_0x127f('0x40'));const e2e_encryption_1=require(a1_0x127f('0x3a'));const file_storage_1=require(a1_0x127f('0x42'));const end_of_run_message_1=require(a1_0x127f('0x5'));const message_reporter_1=require(a1_0x127f('0x16'));const output_obfuscator_1=require(a1_0x127f('0x28'));const cloud_enabled_life_cycle_1=require('./cloud-enabled-life-cycle');const cloud_remote_cache_1=require('./cloud-remote-cache');const cloud_run_api_1=require('./cloud-run.api');const id_generator_1=require('./id-generator');const {output}=require(a1_0x127f('0x15'));const {tasksRunner,cacheDirectory}=require(a1_0x127f('0x23'));function createApi(_0x3c27f0,_0x5a7cfd,_0x2ed37a){const _0xa34f06=(0x0,environment_1[a1_0x127f('0x43')])();return new cloud_run_api_1[(a1_0x127f('0x13'))](_0x3c27f0,_0x2ed37a,_0x5a7cfd,_0xa34f06);}function storeTaskHashes(_0x594077,_0x28e49e,_0x4b0a41){const _0x272471=JSON['stringify'](_0x594077[a1_0x127f('0x3b')](_0x5a72e0=>({'taskId':_0x5a72e0['taskId'],'hash':_0x5a72e0[a1_0x127f('0x0')]})));if(environment_1[a1_0x127f('0x8')]){output[a1_0x127f('0x12')]({'title':a1_0x127f('0x29')+_0x272471});}(0x0,fs_1[a1_0x127f('0x2b')])(path[a1_0x127f('0x38')](_0x28e49e,a1_0x127f('0x36')+_0x4b0a41),_0x272471);}function storeLocalCacheHits(_0x3c6b67,_0x4cff57,_0x3b7abc){const _0x1dfa63=_0x3c6b67[a1_0x127f('0x41')](_0x2575a7=>_0x2575a7['cacheStatus']===a1_0x127f('0x7'))['map'](_0x2ee290=>_0x2ee290[a1_0x127f('0x0')]);_0x1dfa63[a1_0x127f('0x1a')](_0xa17ab=>_0x4cff57[a1_0x127f('0x3c')](_0xa17ab,_0x3b7abc));}function onComplete(_0x11012e){return __awaiter(this,arguments,void 0x0,function*({daemon,options,fileStorage,remoteCache,api,outputObfuscator,runStartTime,messages,endOfRunMessage,taskExecutions,versionOfNxBefore133,inner,encryptionKey,storeInCurrentProcess,distributedExecutionId,runContext}){const _0x388c65=new Date()[a1_0x127f('0x3f')]();const _0x1a2c4a=(0x0,environment_1[a1_0x127f('0x1d')])();const _0x51f1df={'command':outputObfuscator[a1_0x127f('0x10')]((0x0,environment_1[a1_0x127f('0x44')])()),'startTime':runStartTime,'endTime':_0x388c65,'distributedExecutionId':distributedExecutionId,'branch':_0x1a2c4a,'runGroup':(0x0,environment_1[a1_0x127f('0x20')])(),'sha':_0x1a2c4a?(0x0,environment_1[a1_0x127f('0x45')])():undefined,'inner':inner};const _0x11f623={'branch':_0x1a2c4a,'runGroup':(0x0,environment_1[a1_0x127f('0x20')])(),'ciExecutionId':(0x0,environment_1['getCIExecutionId'])(),'ciExecutionEnv':(0x0,environment_1[a1_0x127f('0x4')])()};if(storeInCurrentProcess){if((0x0,environment_1[a1_0x127f('0x22')])(distributedExecutionId)){storeTaskHashes(taskExecutions,cacheDirectory,distributedExecutionId);storeLocalCacheHits(taskExecutions,remoteCache,cacheDirectory);}try{yield remoteCache[a1_0x127f('0x49')]();}catch(_0x397c2e){output[a1_0x127f('0x25')]({'title':a1_0x127f('0x31')});messages[a1_0x127f('0xa')]();return![];}for(const _0x57f1ef of fileStorage[a1_0x127f('0x3d')]){const _0x1bb5b1=taskExecutions[a1_0x127f('0x53')](_0xf3ecc9=>_0xf3ecc9['hash']===_0x57f1ef);if(!_0x1bb5b1){throw new Error('Task\x20with\x20hash\x20'+_0x57f1ef+a1_0x127f('0x34'));}_0x1bb5b1[a1_0x127f('0x1b')]=!![];}try{yield api[a1_0x127f('0x4d')](_0x51f1df,taskExecutions,_0x11f623);}catch(_0x3948e0){output[a1_0x127f('0x25')]({'title':'Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run.'});messages[a1_0x127f('0xa')]();return![];}yield(0x0,metric_logger_1[a1_0x127f('0x1c')])(options);}else{try{const _0x3582bd=environment_1['ACCESS_TOKEN']?environment_1[a1_0x127f('0x19')]:options[a1_0x127f('0x51')];const _0x5bf050=(0x0,id_generator_1[a1_0x127f('0x32')])();const _0x178a17=require[a1_0x127f('0x48')]('nx-cloud/lib/daemon/process-run-end');yield daemon[a1_0x127f('0x3e')](_0x178a17,{'encryptionKey':encryptionKey,'runnerOptions':Object[a1_0x127f('0x4e')](Object[a1_0x127f('0x4e')]({},options),{'accessToken':_0x3582bd}),'delayedStoreRequests':remoteCache[a1_0x127f('0xb')],'ciExecutionContext':_0x11f623,'runEnd':{'runData':_0x51f1df,'taskExecutions':taskExecutions,'linkId':_0x5bf050}});runContext[a1_0x127f('0x50')]=(0x0,remove_trailing_slash_1[a1_0x127f('0x52')])(options[a1_0x127f('0x14')]||a1_0x127f('0x3'))+a1_0x127f('0x4b')+_0x5bf050;}catch(_0x4bd0d8){output[a1_0x127f('0x1e')]({'title':a1_0x127f('0x26'),'bodyLines':[_0x4bd0d8[a1_0x127f('0x2')]||_0x4bd0d8[a1_0x127f('0x2a')]()]});return![];}}if(versionOfNxBefore133){setTimeout(()=>{messages[a1_0x127f('0xa')]();if(!messages[a1_0x127f('0x4f')]&&!inner){endOfRunMessage['printCacheHitsMessage']();}},0x0);}else{messages[a1_0x127f('0xa')]();if(!messages[a1_0x127f('0x4f')]&&!inner){endOfRunMessage['printCacheHitsMessage']();}}return!![];});}function createLifeCycle(_0x59dd5e,_0x2e3dd4,_0x3eb126,_0x14b41c){const _0x179f8d=new cloud_enabled_life_cycle_1[(a1_0x127f('0x1'))](_0x59dd5e,cacheDirectory,!![],_0x2e3dd4['cacheableOperations']||[],_0x3eb126,_0x14b41c);try{const {CompositeLifeCycle}=require(a1_0x127f('0x23'));if(!CompositeLifeCycle)return _0x179f8d;return new CompositeLifeCycle([_0x2e3dd4['lifeCycle'],_0x179f8d]);}catch(_0x29029f){return _0x179f8d;}}function fetchUrlsForKnownHashesUpfront(_0x3ae619,_0x342db5,_0x43f504,_0x30d79f,_0x320695){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x30d79f[a1_0x127f('0x4a')])return;let _0x5b12e5=_0x43f504[a1_0x127f('0x3b')](_0x2a087a=>_0x2a087a[a1_0x127f('0x0')])[a1_0x127f('0x41')](_0x2b1976=>!!_0x2b1976);const _0x388aad=yield Promise['all'](_0x5b12e5['map'](_0x1e4ade=>{const _0x5d1ad8=(0x0,path_1[a1_0x127f('0x38')])(cacheDirectory,_0x1e4ade+a1_0x127f('0x27'));return(0x0,fs_extra_1[a1_0x127f('0x18')])(_0x5d1ad8);}));const _0x11cce9=[];for(let _0x1697a4=0x0;_0x1697a4<_0x388aad[a1_0x127f('0xc')];++_0x1697a4){if(!_0x388aad[_0x1697a4]){_0x11cce9['push'](_0x5b12e5[_0x1697a4]);}}if(_0x11cce9[a1_0x127f('0xc')]>0x0){const _0x5dbe7b=_0x3ae619[a1_0x127f('0x37')](_0x320695,_0x11cce9);for(const _0x42d21f of _0x11cce9){_0x342db5['requests'][_0x42d21f]=_0x5dbe7b;}}});}function cloudEnabledTasksRunner(_0x546b97,_0xb97adf,_0xbd434e,_0x5d4a4f=![]){var _0x51057c;const _0x5c29dc=process[a1_0x127f('0x2e')]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'];const _0x260246={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x546b97};const _0x2a5954=_0xb97adf[a1_0x127f('0x54')]===undefined;const _0x178121=[];const _0x40d3fa=new message_reporter_1[(a1_0x127f('0x30'))](_0xb97adf);const _0x42cc9f=createApi(_0x40d3fa,_0xb97adf,_0x260246);const _0x17cf6b=new end_of_run_message_1['EndOfRunMessage'](_0x260246,_0x178121,_0x5c29dc);const _0x7f0489=new output_obfuscator_1[(a1_0x127f('0xe'))](_0xb97adf['maskedProperties']);const _0x1a811b=new Date()[a1_0x127f('0x3f')]();const _0x135875=createLifeCycle(_0x260246,_0xb97adf,_0x7f0489,_0x178121);const _0x494051=environment_1['ENCRYPTION_KEY']||_0xb97adf['encryptionKey'];const _0x57b4ff=new e2e_encryption_1[(a1_0x127f('0x39'))](_0x494051);const _0x56f03e=new error_reporter_api_1['ErrorReporterApi'](_0xb97adf);const _0x5d9a91=(0x0,environment_1['agentRunningInDistributedExecution'])(_0x5c29dc)||!((_0x51057c=_0xbd434e['daemon'])===null||_0x51057c===void 0x0?void 0x0:_0x51057c['enabled']());const _0x16fffd=new file_storage_1[(a1_0x127f('0x6'))](_0x57b4ff,_0x56f03e,_0xb97adf,a1_0x127f('0x17'));const _0x139af0=new cloud_remote_cache_1[(a1_0x127f('0x4c'))](_0x40d3fa,_0x42cc9f,_0x260246,_0x16fffd,_0x5c29dc,_0x5d9a91);fetchUrlsForKnownHashesUpfront(_0x42cc9f,_0x260246,_0x546b97,_0xb97adf,_0x5c29dc);delete process[a1_0x127f('0x2e')][a1_0x127f('0x21')];const _0x4b8d9a=tasksRunner(_0x546b97,Object['assign'](Object['assign']({},_0xb97adf),{'remoteCache':_0x139af0,'lifeCycle':_0x135875}),_0xbd434e);if(_0x4b8d9a['subscribe']){const {Subject}=require(a1_0x127f('0x46'));const _0x3ba8d3=new Subject();_0x4b8d9a['subscribe']({'next':_0x543031=>_0x3ba8d3[a1_0x127f('0x2d')](_0x543031),'error':_0x1c1825=>_0x3ba8d3[a1_0x127f('0x25')](_0x1c1825),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x1c6a7f=yield onComplete({'daemon':_0xbd434e[a1_0x127f('0x47')],'options':_0xb97adf,'fileStorage':_0x16fffd,'remoteCache':_0x139af0,'api':_0x42cc9f,'outputObfuscator':_0x7f0489,'runStartTime':_0x1a811b,'messages':_0x40d3fa,'endOfRunMessage':_0x17cf6b,'taskExecutions':_0x178121,'versionOfNxBefore133':_0x2a5954,'inner':_0x5d4a4f,'encryptionKey':_0x494051,'storeInCurrentProcess':_0x5d9a91,'runContext':_0x260246,'distributedExecutionId':_0x5c29dc});if(!_0x1c6a7f&&(0x0,environment_1['agentRunningInDistributedExecution'])(_0x5c29dc)){process[a1_0x127f('0xf')](environment_1[a1_0x127f('0x11')]);}_0x3ba8d3['complete']();})});return _0x3ba8d3;}else{return _0x4b8d9a['then'](_0x1416bc=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x455a71=yield onComplete({'daemon':_0xbd434e['daemon'],'options':_0xb97adf,'fileStorage':_0x16fffd,'remoteCache':_0x139af0,'api':_0x42cc9f,'outputObfuscator':_0x7f0489,'runStartTime':_0x1a811b,'messages':_0x40d3fa,'endOfRunMessage':_0x17cf6b,'taskExecutions':_0x178121,'versionOfNxBefore133':_0x2a5954,'inner':_0x5d4a4f,'encryptionKey':_0x494051,'storeInCurrentProcess':_0x5d9a91,'runContext':_0x260246,'distributedExecutionId':_0x5c29dc});if(!_0x455a71&&(0x0,environment_1['agentRunningInDistributedExecution'])(_0x5c29dc)){process[a1_0x127f('0xf')](environment_1[a1_0x127f('0x11')]);}return _0x1416bc;}))['catch'](_0x372230=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x299363=yield onComplete({'daemon':_0xbd434e[a1_0x127f('0x47')],'options':_0xb97adf,'fileStorage':_0x16fffd,'remoteCache':_0x139af0,'api':_0x42cc9f,'outputObfuscator':_0x7f0489,'runStartTime':_0x1a811b,'messages':_0x40d3fa,'endOfRunMessage':_0x17cf6b,'taskExecutions':_0x178121,'versionOfNxBefore133':_0x2a5954,'inner':_0x5d4a4f,'encryptionKey':_0x494051,'storeInCurrentProcess':_0x5d9a91,'runContext':_0x260246,'distributedExecutionId':_0x5c29dc});if(!_0x299363&&(0x0,environment_1[a1_0x127f('0x22')])(_0x5c29dc)){process[a1_0x127f('0xf')](environment_1[a1_0x127f('0x11')]);}throw _0x372230;}));}}exports['cloudEnabledTasksRunner']=cloudEnabledTasksRunner;
const a1_0x126b=['CloudRemoteCache','EndOfRunMessage','parseCommand','hash','getRunGroup','find','catch','stringify','__awaiter','pathExists','filter','defineProperty','throw','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20store\x20artifacts.','daemon','../../terminal-output/message-reporter','enabled','ENCRYPTION_KEY','../../file-storage/e2e-encryption','../../terminal-output/end-of-run-message','encryptionKey','requests','join','warn','url','submitRunMetrics','Nx\x20Cloud\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run.','endRun','message','cacheStatus','error','map','value','apply','resolve','taskId','obfuscate','exit','done','OutputObfuscator','../../file-storage/file-storage','../../../utilities/metric-logger','__esModule','lifeCycle','note','processInBackground','complete','../../api/error-reporter.api','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','accessToken','agentRunningInDistributedExecution','CloudEnabledLifeCycle','ErrorReporterApi','./cloud-run.api','skipNxCache','./cloud-enabled-life-cycle','length','all','forEach','ACCESS_TOKEN','../../../utilities/nx-imports-light','getBranch','printMessages','tasks-hashes-','E2EEncryption','Executed\x20tasks\x20with\x20hashes:\x20','FileStorage','/runs/','waitForStoreRequestsToComplete','Task\x20with\x20hash\x20','then','env','../../../utilities/nx-imports','Nx\x20Cloud\x20Problems','runUrl','push','toISOString','path','toString','storedHashes','anyErrors','../../../utilities/environment','.commit','next','./cloud-remote-cache','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','maskedProperties','cloud-enabled-runner','assign','https://nx.app','\x20isn\x27t\x20recorded','./id-generator','local-cache-hit','subscribe'];(function(_0x1d9853,_0x126b59){const _0x2258eb=function(_0x2b619e){while(--_0x2b619e){_0x1d9853['push'](_0x1d9853['shift']());}};_0x2258eb(++_0x126b59);}(a1_0x126b,0xe0));const a1_0x2258=function(_0x1d9853,_0x126b59){_0x1d9853=_0x1d9853-0x0;let _0x2258eb=a1_0x126b[_0x1d9853];return _0x2258eb;};'use strict';var __awaiter=this&&this[a1_0x2258('0x42')]||function(_0x3c3f21,_0xdceb35,_0x17bd46,_0x5337e5){function _0xd5b529(_0x5f241d){return _0x5f241d instanceof _0x17bd46?_0x5f241d:new _0x17bd46(function(_0x33feea){_0x33feea(_0x5f241d);});}return new(_0x17bd46||(_0x17bd46=Promise))(function(_0x2e528f,_0x329b66){function _0x39bdee(_0xe1f71d){try{_0x4e7d9a(_0x5337e5[a1_0x2258('0x2f')](_0xe1f71d));}catch(_0xb656c1){_0x329b66(_0xb656c1);}}function _0x36b7cf(_0x2b1060){try{_0x4e7d9a(_0x5337e5[a1_0x2258('0x46')](_0x2b1060));}catch(_0x1ad6d8){_0x329b66(_0x1ad6d8);}}function _0x4e7d9a(_0x57afda){_0x57afda[a1_0x2258('0x2')]?_0x2e528f(_0x57afda[a1_0x2258('0x5a')]):_0xd5b529(_0x57afda[a1_0x2258('0x5a')])[a1_0x2258('0x22')](_0x39bdee,_0x36b7cf);}_0x4e7d9a((_0x5337e5=_0x5337e5[a1_0x2258('0x5b')](_0x3c3f21,_0xdceb35||[]))['next']());});};Object[a1_0x2258('0x45')](exports,a1_0x2258('0x6'),{'value':!![]});exports['cloudEnabledTasksRunner']=void 0x0;const fs_1=require('fs');const fs_extra_1=require('fs-extra');const path=require('path');const path_1=require(a1_0x2258('0x29'));const environment_1=require(a1_0x2258('0x2d'));const metric_logger_1=require(a1_0x2258('0x5'));const remove_trailing_slash_1=require('../../../utilities/remove-trailing-slash');const error_reporter_api_1=require(a1_0x2258('0xb'));const e2e_encryption_1=require(a1_0x2258('0x4c'));const file_storage_1=require(a1_0x2258('0x4'));const end_of_run_message_1=require(a1_0x2258('0x4d'));const message_reporter_1=require(a1_0x2258('0x49'));const output_obfuscator_1=require('../../terminal-output/output-obfuscator');const cloud_enabled_life_cycle_1=require(a1_0x2258('0x13'));const cloud_remote_cache_1=require(a1_0x2258('0x30'));const cloud_run_api_1=require(a1_0x2258('0x11'));const id_generator_1=require(a1_0x2258('0x37'));const {output}=require(a1_0x2258('0x18'));const {tasksRunner,cacheDirectory}=require(a1_0x2258('0x24'));function createApi(_0x22a302,_0x5cf32a,_0x1f23a9){const _0x11dd50=(0x0,environment_1['getMachineInfo'])();return new cloud_run_api_1['CloudRunApi'](_0x22a302,_0x1f23a9,_0x5cf32a,_0x11dd50);}function storeTaskHashes(_0x1c41aa,_0x9ace78,_0x22c26c){const _0x3dbb40=JSON[a1_0x2258('0x41')](_0x1c41aa[a1_0x2258('0x59')](_0x50433f=>({'taskId':_0x50433f[a1_0x2258('0x5d')],'hash':_0x50433f[a1_0x2258('0x3d')]})));if(environment_1['VERBOSE_LOGGING']){output[a1_0x2258('0x8')]({'title':a1_0x2258('0x1d')+_0x3dbb40});}(0x0,fs_1['writeFileSync'])(path[a1_0x2258('0x50')](_0x9ace78,a1_0x2258('0x1b')+_0x22c26c),_0x3dbb40);}function storeLocalCacheHits(_0x3225ce,_0x3bcc74,_0x50101f){const _0x45ab70=_0x3225ce[a1_0x2258('0x44')](_0x1a158f=>_0x1a158f[a1_0x2258('0x57')]===a1_0x2258('0x38'))[a1_0x2258('0x59')](_0x18a900=>_0x18a900[a1_0x2258('0x3d')]);_0x45ab70[a1_0x2258('0x16')](_0x460a35=>_0x3bcc74['store'](_0x460a35,_0x50101f));}function onComplete(_0xeb4f2e){return __awaiter(this,arguments,void 0x0,function*({daemon,options,fileStorage,remoteCache,api,outputObfuscator,runStartTime,messages,endOfRunMessage,taskExecutions,versionOfNxBefore133,inner,encryptionKey,storeInCurrentProcess,distributedExecutionId,runContext}){const _0x2b80eb=new Date()[a1_0x2258('0x28')]();const _0x5cf170=(0x0,environment_1[a1_0x2258('0x19')])();const _0x152517={'command':outputObfuscator[a1_0x2258('0x0')]((0x0,environment_1[a1_0x2258('0x3c')])()),'startTime':runStartTime,'endTime':_0x2b80eb,'distributedExecutionId':distributedExecutionId,'branch':_0x5cf170,'runGroup':(0x0,environment_1[a1_0x2258('0x3e')])(),'sha':_0x5cf170?(0x0,environment_1['extractGitSha'])():undefined,'inner':inner};const _0xffe157={'branch':_0x5cf170,'runGroup':(0x0,environment_1['getRunGroup'])(),'ciExecutionId':(0x0,environment_1['getCIExecutionId'])(),'ciExecutionEnv':(0x0,environment_1['getCIExecutionEnv'])()};if(storeInCurrentProcess){if((0x0,environment_1[a1_0x2258('0xe')])(distributedExecutionId)){storeTaskHashes(taskExecutions,cacheDirectory,distributedExecutionId);storeLocalCacheHits(taskExecutions,remoteCache,cacheDirectory);}try{yield remoteCache[a1_0x2258('0x20')]();}catch(_0x43bcb0){output[a1_0x2258('0x58')]({'title':a1_0x2258('0x47')});messages[a1_0x2258('0x1a')]();return![];}for(const _0x1b5add of fileStorage[a1_0x2258('0x2b')]){const _0x469a7d=taskExecutions[a1_0x2258('0x3f')](_0x26aa17=>_0x26aa17[a1_0x2258('0x3d')]===_0x1b5add);if(!_0x469a7d){throw new Error(a1_0x2258('0x21')+_0x1b5add+a1_0x2258('0x36'));}_0x469a7d['uploadedToStorage']=!![];}try{yield api[a1_0x2258('0x55')](_0x152517,taskExecutions,_0xffe157);}catch(_0x15e221){output['error']({'title':a1_0x2258('0x54')});messages['printMessages']();return![];}yield(0x0,metric_logger_1[a1_0x2258('0x53')])(options);}else{try{const _0x388394=environment_1[a1_0x2258('0x17')]?environment_1['ACCESS_TOKEN']:options[a1_0x2258('0xd')];const _0x501236=(0x0,id_generator_1['generateUniqueLinkId'])();const _0x3f256e=require[a1_0x2258('0x5c')]('nx-cloud/lib/daemon/process-run-end');yield daemon[a1_0x2258('0x9')](_0x3f256e,{'encryptionKey':encryptionKey,'runnerOptions':Object['assign'](Object[a1_0x2258('0x34')]({},options),{'accessToken':_0x388394}),'delayedStoreRequests':remoteCache['delayedStoreRequests'],'ciExecutionContext':_0xffe157,'runEnd':{'runData':_0x152517,'taskExecutions':taskExecutions,'linkId':_0x501236}});runContext[a1_0x2258('0x26')]=(0x0,remove_trailing_slash_1['removeTrailingSlash'])(options[a1_0x2258('0x52')]||a1_0x2258('0x35'))+a1_0x2258('0x1f')+_0x501236;}catch(_0x5a3380){output[a1_0x2258('0x51')]({'title':a1_0x2258('0x25'),'bodyLines':[_0x5a3380[a1_0x2258('0x56')]||_0x5a3380[a1_0x2258('0x2a')]()]});return![];}}if(versionOfNxBefore133){setTimeout(()=>{messages['printMessages']();if(!messages[a1_0x2258('0x2c')]&&!inner){endOfRunMessage['printCacheHitsMessage']();}},0x0);}else{messages[a1_0x2258('0x1a')]();if(!messages[a1_0x2258('0x2c')]&&!inner){endOfRunMessage['printCacheHitsMessage']();}}return!![];});}function createLifeCycle(_0x287009,_0x63315b,_0x27d484,_0x591b57){const _0x252ad9=new cloud_enabled_life_cycle_1[(a1_0x2258('0xf'))](_0x287009,cacheDirectory,!![],_0x63315b['cacheableOperations']||[],_0x27d484,_0x591b57);try{const {CompositeLifeCycle}=require(a1_0x2258('0x24'));if(!CompositeLifeCycle)return _0x252ad9;return new CompositeLifeCycle([_0x63315b[a1_0x2258('0x7')],_0x252ad9]);}catch(_0x58f1fa){return _0x252ad9;}}function fetchUrlsForKnownHashesUpfront(_0x2d847e,_0x4ded22,_0xf1f80a,_0x26cc95,_0x50bf7e){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x26cc95[a1_0x2258('0x12')])return;let _0x49b333=_0xf1f80a[a1_0x2258('0x59')](_0x3529b5=>_0x3529b5[a1_0x2258('0x3d')])['filter'](_0xd3982e=>!!_0xd3982e);const _0x53ec5e=yield Promise[a1_0x2258('0x15')](_0x49b333[a1_0x2258('0x59')](_0x285dc6=>{const _0x466bc8=(0x0,path_1['join'])(cacheDirectory,_0x285dc6+a1_0x2258('0x2e'));return(0x0,fs_extra_1[a1_0x2258('0x43')])(_0x466bc8);}));const _0x1fe91d=[];for(let _0x1d8373=0x0;_0x1d8373<_0x53ec5e[a1_0x2258('0x14')];++_0x1d8373){if(!_0x53ec5e[_0x1d8373]){_0x1fe91d[a1_0x2258('0x27')](_0x49b333[_0x1d8373]);}}if(_0x1fe91d[a1_0x2258('0x14')]>0x0){const _0x2eb1d8=_0x2d847e['startRun'](_0x50bf7e,_0x1fe91d);for(const _0x35a082 of _0x1fe91d){_0x4ded22[a1_0x2258('0x4f')][_0x35a082]=_0x2eb1d8;}}});}function cloudEnabledTasksRunner(_0x531d76,_0x4b10cc,_0x362ded,_0xd652b4=![]){var _0x20f530;const _0x2640ee=process[a1_0x2258('0x23')][a1_0x2258('0x31')];const _0x42d132={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x531d76};const _0x205690=_0x4b10cc[a1_0x2258('0x7')]===undefined;const _0x7894f6=[];const _0x8d3edd=new message_reporter_1['MessageReporter'](_0x4b10cc);const _0x4e1cef=createApi(_0x8d3edd,_0x4b10cc,_0x42d132);const _0x50a8d5=new end_of_run_message_1[(a1_0x2258('0x3b'))](_0x42d132,_0x7894f6,_0x2640ee);const _0x2ad964=new output_obfuscator_1[(a1_0x2258('0x3'))](_0x4b10cc[a1_0x2258('0x32')]);const _0x5ae865=new Date()[a1_0x2258('0x28')]();const _0x159878=createLifeCycle(_0x42d132,_0x4b10cc,_0x2ad964,_0x7894f6);const _0x5640b9=environment_1[a1_0x2258('0x4b')]||_0x4b10cc[a1_0x2258('0x4e')];const _0x1b5703=new e2e_encryption_1[(a1_0x2258('0x1c'))](_0x5640b9);const _0x477225=new error_reporter_api_1[(a1_0x2258('0x10'))](_0x4b10cc);const _0x3911ce=(0x0,environment_1[a1_0x2258('0xe')])(_0x2640ee)||!((_0x20f530=_0x362ded[a1_0x2258('0x48')])===null||_0x20f530===void 0x0?void 0x0:_0x20f530[a1_0x2258('0x4a')]());const _0xaf409e=new file_storage_1[(a1_0x2258('0x1e'))](_0x1b5703,_0x477225,_0x4b10cc,a1_0x2258('0x33'));const _0x5c7318=new cloud_remote_cache_1[(a1_0x2258('0x3a'))](_0x8d3edd,_0x4e1cef,_0x42d132,_0xaf409e,_0x2640ee,_0x3911ce);fetchUrlsForKnownHashesUpfront(_0x4e1cef,_0x42d132,_0x531d76,_0x4b10cc,_0x2640ee);delete process[a1_0x2258('0x23')][a1_0x2258('0x31')];const _0x780ce7=tasksRunner(_0x531d76,Object['assign'](Object[a1_0x2258('0x34')]({},_0x4b10cc),{'remoteCache':_0x5c7318,'lifeCycle':_0x159878}),_0x362ded);if(_0x780ce7['subscribe']){const {Subject}=require('rxjs/internal/Subject');const _0x5808b4=new Subject();_0x780ce7[a1_0x2258('0x39')]({'next':_0x31a650=>_0x5808b4[a1_0x2258('0x2f')](_0x31a650),'error':_0x28c681=>_0x5808b4[a1_0x2258('0x58')](_0x28c681),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x5581ba=yield onComplete({'daemon':_0x362ded[a1_0x2258('0x48')],'options':_0x4b10cc,'fileStorage':_0xaf409e,'remoteCache':_0x5c7318,'api':_0x4e1cef,'outputObfuscator':_0x2ad964,'runStartTime':_0x5ae865,'messages':_0x8d3edd,'endOfRunMessage':_0x50a8d5,'taskExecutions':_0x7894f6,'versionOfNxBefore133':_0x205690,'inner':_0xd652b4,'encryptionKey':_0x5640b9,'storeInCurrentProcess':_0x3911ce,'runContext':_0x42d132,'distributedExecutionId':_0x2640ee});if(!_0x5581ba&&(0x0,environment_1['agentRunningInDistributedExecution'])(_0x2640ee)){process[a1_0x2258('0x1')](environment_1[a1_0x2258('0xc')]);}_0x5808b4[a1_0x2258('0xa')]();})});return _0x5808b4;}else{return _0x780ce7['then'](_0xc3ad18=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x21d466=yield onComplete({'daemon':_0x362ded[a1_0x2258('0x48')],'options':_0x4b10cc,'fileStorage':_0xaf409e,'remoteCache':_0x5c7318,'api':_0x4e1cef,'outputObfuscator':_0x2ad964,'runStartTime':_0x5ae865,'messages':_0x8d3edd,'endOfRunMessage':_0x50a8d5,'taskExecutions':_0x7894f6,'versionOfNxBefore133':_0x205690,'inner':_0xd652b4,'encryptionKey':_0x5640b9,'storeInCurrentProcess':_0x3911ce,'runContext':_0x42d132,'distributedExecutionId':_0x2640ee});if(!_0x21d466&&(0x0,environment_1['agentRunningInDistributedExecution'])(_0x2640ee)){process[a1_0x2258('0x1')](environment_1[a1_0x2258('0xc')]);}return _0xc3ad18;}))[a1_0x2258('0x40')](_0x1e0fab=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x595267=yield onComplete({'daemon':_0x362ded['daemon'],'options':_0x4b10cc,'fileStorage':_0xaf409e,'remoteCache':_0x5c7318,'api':_0x4e1cef,'outputObfuscator':_0x2ad964,'runStartTime':_0x5ae865,'messages':_0x8d3edd,'endOfRunMessage':_0x50a8d5,'taskExecutions':_0x7894f6,'versionOfNxBefore133':_0x205690,'inner':_0xd652b4,'encryptionKey':_0x5640b9,'storeInCurrentProcess':_0x3911ce,'runContext':_0x42d132,'distributedExecutionId':_0x2640ee});if(!_0x595267&&(0x0,environment_1[a1_0x2258('0xe')])(_0x2640ee)){process[a1_0x2258('0x1')](environment_1[a1_0x2258('0xc')]);}throw _0x1e0fab;}));}}exports['cloudEnabledTasksRunner']=cloudEnabledTasksRunner;

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

const a2_0x5e77=['storeRequests','messages','filter','storeInCurrentProcess','cache-miss','push','waitForStoreRequestsToComplete','../../../utilities/environment','.\x20Status\x20404.','hashUrls','Maybe\x20you\x20are\x20using\x20a\x20read-only\x20token\x20or\x20the\x20artifact\x20has\x20already\x20being\x20uploaded.','../../../utilities/nx-imports-light','map','Error\x20when\x20storing\x20artifacts','delayedStoreRequests','storage','note','all','next','remote-cache-hit','extractErrorMessage','done','statuses','reduce','startRun','cacheError','throw','__esModule','value','scheduledTasks','Nx\x20Cloud:\x20Skipping\x20storing\x20','indexOf','CloudRemoteCache','Nx\x20Cloud:\x20Cache\x20miss\x20','api','axiosException','VERBOSE_LOGGING','status','__awaiter','response','fileStorage','requests','resolve','store','runContext','hash','then','put','get','distributedExecutionId'];(function(_0x4d63ed,_0x5e77e4){const _0x24a8ea=function(_0x33ad04){while(--_0x33ad04){_0x4d63ed['push'](_0x4d63ed['shift']());}};_0x24a8ea(++_0x5e77e4);}(a2_0x5e77,0x1a9));const a2_0x24a8=function(_0x4d63ed,_0x5e77e4){_0x4d63ed=_0x4d63ed-0x0;let _0x24a8ea=a2_0x5e77[_0x4d63ed];return _0x24a8ea;};'use strict';var __awaiter=this&&this[a2_0x24a8('0xd')]||function(_0x5923f2,_0x36b9ea,_0x38ec59,_0x1550d3){function _0x28f70e(_0x325679){return _0x325679 instanceof _0x38ec59?_0x325679:new _0x38ec59(function(_0x526834){_0x526834(_0x325679);});}return new(_0x38ec59||(_0x38ec59=Promise))(function(_0x2a4328,_0x3f09c7){function _0x4c8dcc(_0x4513c0){try{_0x52cece(_0x1550d3[a2_0x24a8('0x2b')](_0x4513c0));}catch(_0x1a28ca){_0x3f09c7(_0x1a28ca);}}function _0x1bec2d(_0x1c96f4){try{_0x52cece(_0x1550d3[a2_0x24a8('0x1')](_0x1c96f4));}catch(_0x24cc72){_0x3f09c7(_0x24cc72);}}function _0x52cece(_0xa82d1d){_0xa82d1d[a2_0x24a8('0x2e')]?_0x2a4328(_0xa82d1d[a2_0x24a8('0x3')]):_0x28f70e(_0xa82d1d[a2_0x24a8('0x3')])[a2_0x24a8('0x15')](_0x4c8dcc,_0x1bec2d);}_0x52cece((_0x1550d3=_0x1550d3['apply'](_0x5923f2,_0x36b9ea||[]))[a2_0x24a8('0x2b')]());});};Object['defineProperty'](exports,a2_0x24a8('0x2'),{'value':!![]});exports['CloudRemoteCache']=void 0x0;const environment_1=require(a2_0x24a8('0x20'));const {output}=require(a2_0x24a8('0x24'));class CloudRemoteCache{constructor(_0x51ae8d,_0x3a9fef,_0x6290a9,_0x47b991,_0x419be6,_0x1db8fb){this[a2_0x24a8('0x1a')]=_0x51ae8d;this[a2_0x24a8('0x9')]=_0x3a9fef;this['runContext']=_0x6290a9;this[a2_0x24a8('0xf')]=_0x47b991;this[a2_0x24a8('0x18')]=_0x419be6;this[a2_0x24a8('0x1c')]=_0x1db8fb;this['storeRequests']=[];this[a2_0x24a8('0x27')]=[];}['retrieve'](_0x52a68e,_0x2606ed){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x473f35;if(this[a2_0x24a8('0x1a')][a2_0x24a8('0x0')])return![];const _0x2a6320=yield this[a2_0x24a8('0x22')](_0x52a68e);if(!_0x2a6320||!_0x2a6320[a2_0x24a8('0x17')]){if(environment_1['VERBOSE_LOGGING']){output[a2_0x24a8('0x29')]({'title':'Nx\x20Cloud:\x20Cache\x20miss\x20'+_0x52a68e+'.'});}this[a2_0x24a8('0x13')][a2_0x24a8('0x2f')][_0x52a68e]='cache-miss';return![];}try{yield this['fileStorage']['retrieve'](_0x52a68e,_0x2a6320[a2_0x24a8('0x17')],_0x2606ed);this[a2_0x24a8('0x13')][a2_0x24a8('0x2f')][_0x52a68e]=a2_0x24a8('0x2c');return!![];}catch(_0x467a69){const _0x57b44b=(_0x473f35=_0x467a69['axiosException'])!==null&&_0x473f35!==void 0x0?_0x473f35:_0x467a69;if(_0x57b44b[a2_0x24a8('0xe')]&&_0x57b44b[a2_0x24a8('0xe')][a2_0x24a8('0xc')]===0x194){if(environment_1[a2_0x24a8('0xb')]){output['note']({'title':a2_0x24a8('0x8')+_0x52a68e+a2_0x24a8('0x21')});}}else{this[a2_0x24a8('0x1a')][a2_0x24a8('0x0')]=this[a2_0x24a8('0x1a')]['extractErrorMessage'](_0x57b44b,a2_0x24a8('0x28'));}this[a2_0x24a8('0x13')][a2_0x24a8('0x2f')][_0x52a68e]=a2_0x24a8('0x1d');return![];}});}['store'](_0x57be4b,_0x4a6a25){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x24a8('0x1a')][a2_0x24a8('0x0')])return![];const _0x4b3ddb=Promise[a2_0x24a8('0x11')]()['then'](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x3c4730;const _0x32884c=yield this[a2_0x24a8('0x22')](_0x57be4b);if(!_0x32884c)return![];if(!_0x32884c[a2_0x24a8('0x16')]){if(environment_1[a2_0x24a8('0xb')]){output[a2_0x24a8('0x29')]({'title':a2_0x24a8('0x5')+_0x57be4b+'.','bodyLines':['There\x20are\x20several\x20reasons\x20why\x20this\x20can\x20happen.',a2_0x24a8('0x23')]});}return!![];}if(!this[a2_0x24a8('0x1c')]){this[a2_0x24a8('0x27')]['push']({'hash':_0x57be4b,'url':_0x32884c[a2_0x24a8('0x16')]});return!![];}try{yield this[a2_0x24a8('0xf')][a2_0x24a8('0x12')](_0x57be4b,_0x32884c[a2_0x24a8('0x16')],_0x4a6a25);return!![];}catch(_0x5291d8){const _0x451fd2=(_0x3c4730=_0x5291d8[a2_0x24a8('0xa')])!==null&&_0x3c4730!==void 0x0?_0x3c4730:_0x5291d8;this[a2_0x24a8('0x1a')][a2_0x24a8('0x0')]=this[a2_0x24a8('0x1a')][a2_0x24a8('0x2d')](_0x451fd2,a2_0x24a8('0x28'));return![];}}));this[a2_0x24a8('0x19')][a2_0x24a8('0x1e')](_0x4b3ddb);return _0x4b3ddb;});}[a2_0x24a8('0x22')](_0x39b4a7){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x39b4a7 in this['runContext']['requests']){return(yield this['runContext'][a2_0x24a8('0x10')][_0x39b4a7])[_0x39b4a7];}else{const _0x178870=this[a2_0x24a8('0x13')][a2_0x24a8('0x4')][a2_0x24a8('0x1b')](_0x4c6c0e=>!this['runContext'][a2_0x24a8('0x10')][_0x4c6c0e[a2_0x24a8('0x14')]])[a2_0x24a8('0x25')](_0x64b428=>_0x64b428[a2_0x24a8('0x14')]);if(_0x178870[a2_0x24a8('0x6')](_0x39b4a7)===-0x1){_0x178870[a2_0x24a8('0x1e')](_0x39b4a7);}const _0x16d6c1=this[a2_0x24a8('0x9')][a2_0x24a8('0x31')](this['distributedExecutionId'],_0x178870);_0x178870['forEach'](_0x579f4e=>{this[a2_0x24a8('0x13')][a2_0x24a8('0x10')][_0x579f4e]=_0x16d6c1;});return(yield _0x16d6c1)[_0x39b4a7];}});}[a2_0x24a8('0x1f')](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1d82b4=yield Promise[a2_0x24a8('0x2a')](this[a2_0x24a8('0x19')])[a2_0x24a8('0x15')](_0x28253e=>_0x28253e[a2_0x24a8('0x30')]((_0x5e4e15,_0x5ce455)=>_0x5e4e15&&_0x5ce455,!![]));if(!_0x1d82b4){throw new Error(a2_0x24a8('0x26'));}});}}exports[a2_0x24a8('0x7')]=CloudRemoteCache;
const a2_0x5963=['fileStorage','map','put','../../../utilities/environment','Nx\x20Cloud:\x20Skipping\x20storing\x20','extractErrorMessage','Error\x20when\x20storing\x20artifacts','filter','statuses','delayedStoreRequests','done','waitForStoreRequestsToComplete','apply','api','defineProperty','startRun','value','retrieve','storeRequests','Nx\x20Cloud:\x20Cache\x20miss\x20','There\x20are\x20several\x20reasons\x20why\x20this\x20can\x20happen.','storage','requests','scheduledTasks','Maybe\x20you\x20are\x20using\x20a\x20read-only\x20token\x20or\x20the\x20artifact\x20has\x20already\x20being\x20uploaded.','storeInCurrentProcess','hashUrls','next','then','distributedExecutionId','status','push','__awaiter','get','cache-miss','cacheError','all','CloudRemoteCache','hash','throw','resolve','.\x20Status\x20404.','messages','store','axiosException','VERBOSE_LOGGING','note','runContext'];(function(_0x213fb4,_0x59630e){const _0x1725ec=function(_0x3acb44){while(--_0x3acb44){_0x213fb4['push'](_0x213fb4['shift']());}};_0x1725ec(++_0x59630e);}(a2_0x5963,0xef));const a2_0x1725=function(_0x213fb4,_0x59630e){_0x213fb4=_0x213fb4-0x0;let _0x1725ec=a2_0x5963[_0x213fb4];return _0x1725ec;};'use strict';var __awaiter=this&&this[a2_0x1725('0x21')]||function(_0x5a60fe,_0x3f8509,_0x484d35,_0x59ce69){function _0x2d6fb8(_0xa0b73c){return _0xa0b73c instanceof _0x484d35?_0xa0b73c:new _0x484d35(function(_0x570db2){_0x570db2(_0xa0b73c);});}return new(_0x484d35||(_0x484d35=Promise))(function(_0x4c1de9,_0x2d6b7b){function _0x960005(_0x10b40b){try{_0x6d4da2(_0x59ce69[a2_0x1725('0x1c')](_0x10b40b));}catch(_0x227b2c){_0x2d6b7b(_0x227b2c);}}function _0x14fe1c(_0x30bf54){try{_0x6d4da2(_0x59ce69[a2_0x1725('0x28')](_0x30bf54));}catch(_0x2e740f){_0x2d6b7b(_0x2e740f);}}function _0x6d4da2(_0x4e4dfc){_0x4e4dfc[a2_0x1725('0xb')]?_0x4c1de9(_0x4e4dfc[a2_0x1725('0x11')]):_0x2d6fb8(_0x4e4dfc['value'])[a2_0x1725('0x1d')](_0x960005,_0x14fe1c);}_0x6d4da2((_0x59ce69=_0x59ce69[a2_0x1725('0xd')](_0x5a60fe,_0x3f8509||[]))[a2_0x1725('0x1c')]());});};Object[a2_0x1725('0xf')](exports,'__esModule',{'value':!![]});exports[a2_0x1725('0x26')]=void 0x0;const environment_1=require(a2_0x1725('0x4'));const {output}=require('../../../utilities/nx-imports-light');class CloudRemoteCache{constructor(_0x5240fe,_0x2399aa,_0x2d339b,_0xa89fc6,_0x4b4a52,_0x4d8f21){this[a2_0x1725('0x2b')]=_0x5240fe;this[a2_0x1725('0xe')]=_0x2399aa;this[a2_0x1725('0x0')]=_0x2d339b;this[a2_0x1725('0x1')]=_0xa89fc6;this[a2_0x1725('0x1e')]=_0x4b4a52;this[a2_0x1725('0x1a')]=_0x4d8f21;this['storeRequests']=[];this[a2_0x1725('0xa')]=[];}[a2_0x1725('0x12')](_0x27de0a,_0x394904){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x30e8a9;if(this['messages']['cacheError'])return![];const _0x400c6e=yield this['hashUrls'](_0x27de0a);if(!_0x400c6e||!_0x400c6e[a2_0x1725('0x22')]){if(environment_1[a2_0x1725('0x2e')]){output[a2_0x1725('0x2f')]({'title':a2_0x1725('0x14')+_0x27de0a+'.'});}this[a2_0x1725('0x0')][a2_0x1725('0x9')][_0x27de0a]='cache-miss';return![];}try{yield this[a2_0x1725('0x1')][a2_0x1725('0x12')](_0x27de0a,_0x400c6e[a2_0x1725('0x22')],_0x394904);this[a2_0x1725('0x0')][a2_0x1725('0x9')][_0x27de0a]='remote-cache-hit';return!![];}catch(_0x225de6){const _0x9145d=(_0x30e8a9=_0x225de6[a2_0x1725('0x2d')])!==null&&_0x30e8a9!==void 0x0?_0x30e8a9:_0x225de6;if(_0x9145d['response']&&_0x9145d['response'][a2_0x1725('0x1f')]===0x194){if(environment_1['VERBOSE_LOGGING']){output[a2_0x1725('0x2f')]({'title':a2_0x1725('0x14')+_0x27de0a+a2_0x1725('0x2a')});}}else{this[a2_0x1725('0x2b')][a2_0x1725('0x24')]=this['messages']['extractErrorMessage'](_0x9145d,a2_0x1725('0x16'));}this[a2_0x1725('0x0')][a2_0x1725('0x9')][_0x27de0a]=a2_0x1725('0x23');return![];}});}[a2_0x1725('0x2c')](_0x3018a3,_0x286a78){return __awaiter(this,void 0x0,void 0x0,function*(){if(this['messages'][a2_0x1725('0x24')])return![];const _0x57efc2=Promise[a2_0x1725('0x29')]()[a2_0x1725('0x1d')](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x11fc5b;const _0x35798b=yield this[a2_0x1725('0x1b')](_0x3018a3);if(!_0x35798b)return![];if(!_0x35798b[a2_0x1725('0x3')]){if(environment_1[a2_0x1725('0x2e')]){output[a2_0x1725('0x2f')]({'title':a2_0x1725('0x5')+_0x3018a3+'.','bodyLines':[a2_0x1725('0x15'),a2_0x1725('0x19')]});}return!![];}if(!this[a2_0x1725('0x1a')]){this[a2_0x1725('0xa')][a2_0x1725('0x20')]({'hash':_0x3018a3,'url':_0x35798b['put']});return!![];}try{yield this[a2_0x1725('0x1')][a2_0x1725('0x2c')](_0x3018a3,_0x35798b['put'],_0x286a78);return!![];}catch(_0x35d72f){const _0x490d6c=(_0x11fc5b=_0x35d72f[a2_0x1725('0x2d')])!==null&&_0x11fc5b!==void 0x0?_0x11fc5b:_0x35d72f;this[a2_0x1725('0x2b')][a2_0x1725('0x24')]=this['messages'][a2_0x1725('0x6')](_0x490d6c,a2_0x1725('0x16'));return![];}}));this[a2_0x1725('0x13')][a2_0x1725('0x20')](_0x57efc2);return _0x57efc2;});}['hashUrls'](_0xa68944){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0xa68944 in this[a2_0x1725('0x0')][a2_0x1725('0x17')]){return(yield this[a2_0x1725('0x0')][a2_0x1725('0x17')][_0xa68944])[_0xa68944];}else{const _0x360fc3=this[a2_0x1725('0x0')][a2_0x1725('0x18')][a2_0x1725('0x8')](_0xdc1cc3=>!this[a2_0x1725('0x0')]['requests'][_0xdc1cc3['hash']])[a2_0x1725('0x2')](_0x7e103c=>_0x7e103c[a2_0x1725('0x27')]);if(_0x360fc3['indexOf'](_0xa68944)===-0x1){_0x360fc3[a2_0x1725('0x20')](_0xa68944);}const _0xaef652=this[a2_0x1725('0xe')][a2_0x1725('0x10')](this[a2_0x1725('0x1e')],_0x360fc3);_0x360fc3['forEach'](_0x5eb51d=>{this['runContext'][a2_0x1725('0x17')][_0x5eb51d]=_0xaef652;});return(yield _0xaef652)[_0xa68944];}});}[a2_0x1725('0xc')](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x42786e=yield Promise[a2_0x1725('0x25')](this[a2_0x1725('0x13')])['then'](_0x9c4624=>_0x9c4624['reduce']((_0x206d20,_0x3ef308)=>_0x206d20&&_0x3ef308,!![]));if(!_0x42786e){throw new Error(a2_0x1725('0x7'));}});}}exports['CloudRemoteCache']=CloudRemoteCache;

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

const a3_0x2541=['nx-cloud','assign','next','Invalid\x20end\x20run\x20response','../../../utilities/metric-logger','message','throw','runUrl','stack','mapRespToPerfEntry','zlib','unknown','recordMetric','stringify','axiosException','response','__esModule','createMetricRecorder','terminalOutput','axiosMultipleTries','messages','string','getRunGroup','CloudRunApi','RunStart','note','defineProperty','RUNNER_FAILURE_PERF_ENTRY','getCIExecutionId','data','isConnectedToPrivateCloud','error','gzip','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','RunEnd\x20duration','getCIExecutionEnv','runContext','createReqBody','Invalid\x20Nx\x20Cloud\x20response:\x20','readFileSync','done','Run\x20completion\x20responded\x20with\x20`undefined`.','...','package.json','application/octet-stream','printDuration','defaults','api','/nx-cloud/runs/start','apiAxiosInstance','apply','post','util','parse','uploadedToStorage','endRun','map','VERBOSE_LOGGING','urls','apiError','machineInfo','getBranch','success','__awaiter','devDependencies','RunEnd.\x20Completed\x20tasks','from','nxCloudVersion','../../../utilities/nx-imports-light','createApiAxiosInstance','value','startRun','Invalid\x20end\x20run\x20response:\x20','extractErrorMessage','Run\x20Details:','status'];(function(_0xaf9f4e,_0x254196){const _0xe1af46=function(_0x2b54c1){while(--_0x2b54c1){_0xaf9f4e['push'](_0xaf9f4e['shift']());}};_0xe1af46(++_0x254196);}(a3_0x2541,0x92));const a3_0xe1af=function(_0xaf9f4e,_0x254196){_0xaf9f4e=_0xaf9f4e-0x0;let _0xe1af46=a3_0x2541[_0xaf9f4e];return _0xe1af46;};'use strict';var __awaiter=this&&this[a3_0xe1af('0x45')]||function(_0x53b60a,_0x4dc996,_0x319fe1,_0x266727){function _0x55ac2d(_0x5d6353){return _0x5d6353 instanceof _0x319fe1?_0x5d6353:new _0x319fe1(function(_0x44b653){_0x44b653(_0x5d6353);});}return new(_0x319fe1||(_0x319fe1=Promise))(function(_0x1705a8,_0x24d821){function _0x57de71(_0x569105){try{_0x4e5de1(_0x266727[a3_0xe1af('0x8')](_0x569105));}catch(_0x23c081){_0x24d821(_0x23c081);}}function _0x1bf454(_0x128315){try{_0x4e5de1(_0x266727[a3_0xe1af('0xc')](_0x128315));}catch(_0x361267){_0x24d821(_0x361267);}}function _0x4e5de1(_0x5897e8){_0x5897e8[a3_0xe1af('0x2e')]?_0x1705a8(_0x5897e8[a3_0xe1af('0x0')]):_0x55ac2d(_0x5897e8[a3_0xe1af('0x0')])['then'](_0x57de71,_0x1bf454);}_0x4e5de1((_0x266727=_0x266727[a3_0xe1af('0x38')](_0x53b60a,_0x4dc996||[]))[a3_0xe1af('0x8')]());});};Object[a3_0xe1af('0x20')](exports,a3_0xe1af('0x16'),{'value':!![]});exports[a3_0xe1af('0x1d')]=void 0x0;const fs_1=require('fs');const util_1=require(a3_0xe1af('0x3a'));const zlib_1=require(a3_0xe1af('0x10'));const axios_1=require('../../../utilities/axios');const environment_1=require('../../../utilities/environment');const is_private_cloud_1=require('../../../utilities/is-private-cloud');const metric_logger_1=require(a3_0xe1af('0xa'));const {output}=require(a3_0xe1af('0x4a'));class CloudRunApi{constructor(_0x183985,_0x5e1e21,_0x1a7382,_0x195a76){this[a3_0xe1af('0x1a')]=_0x183985;this['runContext']=_0x5e1e21;this[a3_0xe1af('0x42')]=_0x195a76;this[a3_0xe1af('0x37')]=(0x0,axios_1[a3_0xe1af('0x4b')])(_0x1a7382);}[a3_0xe1af('0x1')](_0x92fdce,_0x103793){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x3a61f3;if(this[a3_0xe1af('0x1a')][a3_0xe1af('0x41')])return{};const _0x21d149=(0x0,metric_logger_1['createMetricRecorder'])(a3_0xe1af('0x1'));try{const _0x7f7ad2={'meta':{'nxCloudVersion':this['nxCloudVersion']()},'branch':(0x0,environment_1[a3_0xe1af('0x43')])(),'runGroup':(0x0,environment_1[a3_0xe1af('0x1c')])(),'ciExecutionId':(0x0,environment_1[a3_0xe1af('0x22')])(),'ciExecutionEnv':(0x0,environment_1[a3_0xe1af('0x29')])(),'distributedExecutionId':_0x92fdce,'hashes':_0x103793,'machineInfo':this[a3_0xe1af('0x42')]};if(environment_1['VERBOSE_LOGGING']){output[a3_0xe1af('0x1f')]({'title':a3_0xe1af('0x1e'),'bodyLines':['\x0a'+JSON['stringify'](_0x7f7ad2,null,0x2)]});}const _0x168bc6=yield(0x0,axios_1[a3_0xe1af('0x33')])('RunStart\x20duration',()=>(0x0,axios_1[a3_0xe1af('0x19')])(()=>this['apiAxiosInstance'][a3_0xe1af('0x39')](a3_0xe1af('0x36'),_0x7f7ad2)));_0x21d149[a3_0xe1af('0x12')]((0x0,metric_logger_1[a3_0xe1af('0xf')])(_0x168bc6));if(_0x168bc6[a3_0xe1af('0x23')]&&_0x168bc6[a3_0xe1af('0x23')][a3_0xe1af('0xb')]){this[a3_0xe1af('0x1a')][a3_0xe1af('0xb')]=_0x168bc6[a3_0xe1af('0x23')][a3_0xe1af('0xb')];}if(!_0x168bc6['data']||!_0x168bc6[a3_0xe1af('0x23')]['urls']){this[a3_0xe1af('0x1a')][a3_0xe1af('0x41')]=a3_0xe1af('0x2c')+JSON[a3_0xe1af('0x13')](_0x168bc6[a3_0xe1af('0x23')]);return{};}return _0x168bc6[a3_0xe1af('0x23')][a3_0xe1af('0x40')];}catch(_0x10d66b){_0x21d149[a3_0xe1af('0x12')](((_0x3a61f3=_0x10d66b===null||_0x10d66b===void 0x0?void 0x0:_0x10d66b[a3_0xe1af('0x14')])===null||_0x3a61f3===void 0x0?void 0x0:_0x3a61f3[a3_0xe1af('0x15')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x10d66b[a3_0xe1af('0x14')][a3_0xe1af('0x15')]):metric_logger_1[a3_0xe1af('0x21')]);this[a3_0xe1af('0x1a')][a3_0xe1af('0x41')]=this[a3_0xe1af('0x1a')][a3_0xe1af('0x3')](_0x10d66b,a3_0xe1af('0x35'));return{};}});}[a3_0xe1af('0x2b')](_0x4a9f66,_0x17f81b,_0x4b7804,_0x2bd787){if((0x0,is_private_cloud_1[a3_0xe1af('0x24')])()){for(let _0x4a3d76 of _0x17f81b){delete _0x4a3d76[a3_0xe1af('0x3c')];}}const _0xa1c6d7=Object[a3_0xe1af('0x7')](Object[a3_0xe1af('0x7')]({'meta':{'nxCloudVersion':this[a3_0xe1af('0x49')]()},'tasks':_0x17f81b,'run':_0x4a9f66,'linkId':_0x2bd787},(0x0,is_private_cloud_1[a3_0xe1af('0x24')])()?{}:_0x4b7804),{'machineInfo':this[a3_0xe1af('0x42')]});return JSON['stringify'](_0xa1c6d7);}[a3_0xe1af('0x3d')](_0x3a4558,_0x3a080b,_0x2f67d5,_0x2ab55e){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x48b412,_0x2c4c1f;if(this['messages'][a3_0xe1af('0x41')])return![];let _0x4c15ba=this[a3_0xe1af('0x2b')](_0x3a4558,_0x3a080b,_0x2f67d5,_0x2ab55e);if(_0x4c15ba['length']>0x14*0x3e8*0x3e8){_0x4c15ba=this[a3_0xe1af('0x2b')](_0x3a4558,_0x3a080b[a3_0xe1af('0x3e')](_0x2e5e81=>Object[a3_0xe1af('0x7')](Object[a3_0xe1af('0x7')]({},_0x2e5e81),{'hashDetails':undefined})),_0x2f67d5,_0x2ab55e);}const _0x2b8e09=Buffer[a3_0xe1af('0x48')](_0x4c15ba);const _0x3375b7=yield(0x0,util_1['promisify'])(zlib_1[a3_0xe1af('0x26')])(_0x2b8e09);const _0x2b3f97=(0x0,metric_logger_1[a3_0xe1af('0x17')])(a3_0xe1af('0x3d'));try{if(environment_1[a3_0xe1af('0x3f')]){const _0x302670=_0x3a080b[a3_0xe1af('0x3e')](_0x3241e3=>{return Object[a3_0xe1af('0x7')](Object[a3_0xe1af('0x7')]({},_0x3241e3),{'terminalOutput':_0x3241e3[a3_0xe1af('0x18')]?_0x3241e3[a3_0xe1af('0x18')]['slice'](0x0,0x14)+a3_0xe1af('0x30'):undefined});});output[a3_0xe1af('0x1f')]({'title':a3_0xe1af('0x47'),'bodyLines':['\x0a'+JSON['stringify'](_0x302670,null,0x2)]});}const _0x18e02f=yield(0x0,axios_1[a3_0xe1af('0x33')])(a3_0xe1af('0x28'),()=>(0x0,axios_1[a3_0xe1af('0x19')])(()=>this[a3_0xe1af('0x37')][a3_0xe1af('0x39')]('/nx-cloud/runs/end',_0x3375b7,{'headers':Object[a3_0xe1af('0x7')](Object[a3_0xe1af('0x7')]({},this['apiAxiosInstance'][a3_0xe1af('0x34')]['headers']),{'Content-Encoding':'gzip','Content-Type':a3_0xe1af('0x32')})})));if(_0x18e02f){_0x2b3f97[a3_0xe1af('0x12')]((0x0,metric_logger_1[a3_0xe1af('0xf')])(_0x18e02f));if(_0x18e02f['data']&&_0x18e02f[a3_0xe1af('0x23')][a3_0xe1af('0xd')]&&_0x18e02f['data'][a3_0xe1af('0x5')]===a3_0xe1af('0x44')){this[a3_0xe1af('0x2a')][a3_0xe1af('0xd')]=_0x18e02f[a3_0xe1af('0x23')][a3_0xe1af('0xd')];return!![];}if(_0x18e02f[a3_0xe1af('0x23')]&&_0x18e02f[a3_0xe1af('0x23')][a3_0xe1af('0x5')]){this['messages'][a3_0xe1af('0x41')]=a3_0xe1af('0x2')+JSON[a3_0xe1af('0x13')](_0x18e02f[a3_0xe1af('0x23')][a3_0xe1af('0xb')]);}else if(_0x18e02f[a3_0xe1af('0x23')]&&typeof _0x18e02f[a3_0xe1af('0x23')]===a3_0xe1af('0x1b')){if(_0x18e02f['data']!=='success'){this[a3_0xe1af('0x1a')]['apiError']='Invalid\x20end\x20run\x20response:\x20'+JSON[a3_0xe1af('0x13')](_0x18e02f[a3_0xe1af('0x23')]);}}else{this[a3_0xe1af('0x1a')]['apiError']='Invalid\x20end\x20run\x20response:\x20'+JSON[a3_0xe1af('0x13')](_0x18e02f[a3_0xe1af('0x23')]);}if(environment_1[a3_0xe1af('0x3f')]){output['note']({'title':a3_0xe1af('0x9'),'bodyLines':[JSON['stringify'](_0x18e02f[a3_0xe1af('0x23')],null,0x2)]});}}else{output[a3_0xe1af('0x25')]({'title':a3_0xe1af('0x27'),'bodyLines':[a3_0xe1af('0x2f'),a3_0xe1af('0x4'),JSON['stringify'](_0x3a4558,null,0x2),'Stack\x20Trace:',JSON[a3_0xe1af('0x13')](new Error()[a3_0xe1af('0xe')],null,0x2)]});}return![];}catch(_0x19159){_0x2b3f97[a3_0xe1af('0x12')](((_0x48b412=_0x19159===null||_0x19159===void 0x0?void 0x0:_0x19159['axiosException'])===null||_0x48b412===void 0x0?void 0x0:_0x48b412[a3_0xe1af('0x15')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x19159[a3_0xe1af('0x14')][a3_0xe1af('0x15')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);const _0x416f0b=(_0x2c4c1f=_0x19159[a3_0xe1af('0x14')])!==null&&_0x2c4c1f!==void 0x0?_0x2c4c1f:_0x19159;this[a3_0xe1af('0x1a')][a3_0xe1af('0x41')]=this[a3_0xe1af('0x1a')]['extractErrorMessage'](_0x416f0b,a3_0xe1af('0x35'));return![];}});}[a3_0xe1af('0x49')](){try{const _0x19f1d9=JSON[a3_0xe1af('0x3b')]((0x0,fs_1[a3_0xe1af('0x2d')])(a3_0xe1af('0x31'))['toString']());return _0x19f1d9[a3_0xe1af('0x46')][a3_0xe1af('0x6')]||_0x19f1d9[a3_0xe1af('0x46')]['@nrwl/nx-cloud'];}catch(_0x1bd52a){return a3_0xe1af('0x11');}}}exports['CloudRunApi']=CloudRunApi;
const a3_0x23f7=['data','parse','../../../utilities/metric-logger','note','../../../utilities/environment','next','devDependencies','/nx-cloud/runs/start','length','post','/nx-cloud/runs/end','string','../../../utilities/is-private-cloud','RunStart\x20duration','nxCloudVersion','...','createApiAxiosInstance','success','apiAxiosInstance','mapRespToPerfEntry','startRun','unknown','package.json','message','defaults','__esModule','from','throw','axiosMultipleTries','getRunGroup','error','apiError','messages','Invalid\x20Nx\x20Cloud\x20response:\x20','application/octet-stream','stringify','RUNNER_FAILURE_PERF_ENTRY','response','gzip','recordMetric','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','stack','readFileSync','printDuration','value','status','extractErrorMessage','map','CloudRunApi','runUrl','isConnectedToPrivateCloud','RunEnd.\x20Completed\x20tasks','createReqBody','done','toString','api','../../../utilities/axios','urls','assign','getCIExecutionId','createMetricRecorder','@nrwl/nx-cloud','defineProperty','Invalid\x20end\x20run\x20response:\x20','axiosException','getCIExecutionEnv','runContext','VERBOSE_LOGGING','slice','terminalOutput','endRun','machineInfo'];(function(_0x5e3d5f,_0x23f73e){const _0x2bc56f=function(_0x4d0cc2){while(--_0x4d0cc2){_0x5e3d5f['push'](_0x5e3d5f['shift']());}};_0x2bc56f(++_0x23f73e);}(a3_0x23f7,0x1f0));const a3_0x2bc5=function(_0x5e3d5f,_0x23f73e){_0x5e3d5f=_0x5e3d5f-0x0;let _0x2bc56f=a3_0x23f7[_0x5e3d5f];return _0x2bc56f;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x5a7e47,_0x535a3e,_0x51674c,_0x1ddc3c){function _0x59d5bb(_0x34f3ac){return _0x34f3ac instanceof _0x51674c?_0x34f3ac:new _0x51674c(function(_0xc5a469){_0xc5a469(_0x34f3ac);});}return new(_0x51674c||(_0x51674c=Promise))(function(_0x2a13f0,_0x33098e){function _0x2de7fd(_0x153095){try{_0x244a2c(_0x1ddc3c[a3_0x2bc5('0xd')](_0x153095));}catch(_0x6f2ad7){_0x33098e(_0x6f2ad7);}}function _0x175d1b(_0x43e364){try{_0x244a2c(_0x1ddc3c[a3_0x2bc5('0x23')](_0x43e364));}catch(_0x29afee){_0x33098e(_0x29afee);}}function _0x244a2c(_0x1477b3){_0x1477b3[a3_0x2bc5('0x3d')]?_0x2a13f0(_0x1477b3[a3_0x2bc5('0x34')]):_0x59d5bb(_0x1477b3[a3_0x2bc5('0x34')])['then'](_0x2de7fd,_0x175d1b);}_0x244a2c((_0x1ddc3c=_0x1ddc3c['apply'](_0x5a7e47,_0x535a3e||[]))[a3_0x2bc5('0xd')]());});};Object[a3_0x2bc5('0x46')](exports,a3_0x2bc5('0x21'),{'value':!![]});exports[a3_0x2bc5('0x38')]=void 0x0;const fs_1=require('fs');const util_1=require('util');const zlib_1=require('zlib');const axios_1=require(a3_0x2bc5('0x40'));const environment_1=require(a3_0x2bc5('0xc'));const is_private_cloud_1=require(a3_0x2bc5('0x14'));const metric_logger_1=require(a3_0x2bc5('0xa'));const {output}=require('../../../utilities/nx-imports-light');class CloudRunApi{constructor(_0x1cfd4e,_0x2b7397,_0x213c52,_0x2dec11){this[a3_0x2bc5('0x28')]=_0x1cfd4e;this[a3_0x2bc5('0x2')]=_0x2b7397;this[a3_0x2bc5('0x7')]=_0x2dec11;this[a3_0x2bc5('0x1a')]=(0x0,axios_1[a3_0x2bc5('0x18')])(_0x213c52);}[a3_0x2bc5('0x1c')](_0x4697bb,_0x26ef54){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x13a337;if(this[a3_0x2bc5('0x28')]['apiError'])return{};const _0x4b226c=(0x0,metric_logger_1[a3_0x2bc5('0x44')])('startRun');try{const _0x4b1ba2={'meta':{'nxCloudVersion':this[a3_0x2bc5('0x16')]()},'branch':(0x0,environment_1['getBranch'])(),'runGroup':(0x0,environment_1[a3_0x2bc5('0x25')])(),'ciExecutionId':(0x0,environment_1[a3_0x2bc5('0x43')])(),'ciExecutionEnv':(0x0,environment_1[a3_0x2bc5('0x1')])(),'distributedExecutionId':_0x4697bb,'hashes':_0x26ef54,'machineInfo':this[a3_0x2bc5('0x7')]};if(environment_1[a3_0x2bc5('0x3')]){output[a3_0x2bc5('0xb')]({'title':'RunStart','bodyLines':['\x0a'+JSON[a3_0x2bc5('0x2b')](_0x4b1ba2,null,0x2)]});}const _0x1fa83f=yield(0x0,axios_1[a3_0x2bc5('0x33')])(a3_0x2bc5('0x15'),()=>(0x0,axios_1[a3_0x2bc5('0x24')])(()=>this['apiAxiosInstance'][a3_0x2bc5('0x11')](a3_0x2bc5('0xf'),_0x4b1ba2)));_0x4b226c[a3_0x2bc5('0x2f')]((0x0,metric_logger_1[a3_0x2bc5('0x1b')])(_0x1fa83f));if(_0x1fa83f[a3_0x2bc5('0x8')]&&_0x1fa83f[a3_0x2bc5('0x8')][a3_0x2bc5('0x1f')]){this[a3_0x2bc5('0x28')][a3_0x2bc5('0x1f')]=_0x1fa83f['data'][a3_0x2bc5('0x1f')];}if(!_0x1fa83f['data']||!_0x1fa83f[a3_0x2bc5('0x8')][a3_0x2bc5('0x41')]){this[a3_0x2bc5('0x28')][a3_0x2bc5('0x27')]=a3_0x2bc5('0x29')+JSON['stringify'](_0x1fa83f[a3_0x2bc5('0x8')]);return{};}return _0x1fa83f[a3_0x2bc5('0x8')][a3_0x2bc5('0x41')];}catch(_0x462cc1){_0x4b226c[a3_0x2bc5('0x2f')](((_0x13a337=_0x462cc1===null||_0x462cc1===void 0x0?void 0x0:_0x462cc1[a3_0x2bc5('0x0')])===null||_0x13a337===void 0x0?void 0x0:_0x13a337[a3_0x2bc5('0x2d')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x462cc1[a3_0x2bc5('0x0')][a3_0x2bc5('0x2d')]):metric_logger_1[a3_0x2bc5('0x2c')]);this['messages']['apiError']=this[a3_0x2bc5('0x28')][a3_0x2bc5('0x36')](_0x462cc1,a3_0x2bc5('0x3f'));return{};}});}[a3_0x2bc5('0x3c')](_0x53acf2,_0x440e8a,_0x35eb4d,_0xb8760c){if((0x0,is_private_cloud_1[a3_0x2bc5('0x3a')])()){for(let _0x2b8d90 of _0x440e8a){delete _0x2b8d90['uploadedToStorage'];}}const _0x4fcd87=Object[a3_0x2bc5('0x42')](Object[a3_0x2bc5('0x42')]({'meta':{'nxCloudVersion':this[a3_0x2bc5('0x16')]()},'tasks':_0x440e8a,'run':_0x53acf2,'linkId':_0xb8760c},(0x0,is_private_cloud_1['isConnectedToPrivateCloud'])()?{}:_0x35eb4d),{'machineInfo':this['machineInfo']});return JSON[a3_0x2bc5('0x2b')](_0x4fcd87);}[a3_0x2bc5('0x6')](_0x1924b6,_0x25998e,_0xaaeb87,_0x5ae90d){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x31e91a,_0x5ee8e5;if(this[a3_0x2bc5('0x28')][a3_0x2bc5('0x27')])return![];let _0xa984a9=this[a3_0x2bc5('0x3c')](_0x1924b6,_0x25998e,_0xaaeb87,_0x5ae90d);if(_0xa984a9[a3_0x2bc5('0x10')]>0x14*0x3e8*0x3e8){_0xa984a9=this[a3_0x2bc5('0x3c')](_0x1924b6,_0x25998e[a3_0x2bc5('0x37')](_0x28e246=>Object['assign'](Object[a3_0x2bc5('0x42')]({},_0x28e246),{'hashDetails':undefined})),_0xaaeb87,_0x5ae90d);}const _0x372bdb=Buffer[a3_0x2bc5('0x22')](_0xa984a9);const _0x1d24c5=yield(0x0,util_1['promisify'])(zlib_1[a3_0x2bc5('0x2e')])(_0x372bdb);const _0x22a9ae=(0x0,metric_logger_1['createMetricRecorder'])(a3_0x2bc5('0x6'));try{if(environment_1[a3_0x2bc5('0x3')]){const _0x3e07d9=_0x25998e['map'](_0x49e5ee=>{return Object[a3_0x2bc5('0x42')](Object[a3_0x2bc5('0x42')]({},_0x49e5ee),{'terminalOutput':_0x49e5ee[a3_0x2bc5('0x5')]?_0x49e5ee['terminalOutput'][a3_0x2bc5('0x4')](0x0,0x14)+a3_0x2bc5('0x17'):undefined});});output[a3_0x2bc5('0xb')]({'title':a3_0x2bc5('0x3b'),'bodyLines':['\x0a'+JSON[a3_0x2bc5('0x2b')](_0x3e07d9,null,0x2)]});}const _0x32a03b=yield(0x0,axios_1[a3_0x2bc5('0x33')])('RunEnd\x20duration',()=>(0x0,axios_1[a3_0x2bc5('0x24')])(()=>this[a3_0x2bc5('0x1a')][a3_0x2bc5('0x11')](a3_0x2bc5('0x12'),_0x1d24c5,{'headers':Object[a3_0x2bc5('0x42')](Object[a3_0x2bc5('0x42')]({},this[a3_0x2bc5('0x1a')][a3_0x2bc5('0x20')]['headers']),{'Content-Encoding':a3_0x2bc5('0x2e'),'Content-Type':a3_0x2bc5('0x2a')})})));if(_0x32a03b){_0x22a9ae[a3_0x2bc5('0x2f')]((0x0,metric_logger_1[a3_0x2bc5('0x1b')])(_0x32a03b));if(_0x32a03b[a3_0x2bc5('0x8')]&&_0x32a03b[a3_0x2bc5('0x8')][a3_0x2bc5('0x39')]&&_0x32a03b[a3_0x2bc5('0x8')]['status']===a3_0x2bc5('0x19')){this[a3_0x2bc5('0x2')]['runUrl']=_0x32a03b[a3_0x2bc5('0x8')][a3_0x2bc5('0x39')];return!![];}if(_0x32a03b[a3_0x2bc5('0x8')]&&_0x32a03b[a3_0x2bc5('0x8')][a3_0x2bc5('0x35')]){this[a3_0x2bc5('0x28')][a3_0x2bc5('0x27')]=a3_0x2bc5('0x47')+JSON[a3_0x2bc5('0x2b')](_0x32a03b[a3_0x2bc5('0x8')][a3_0x2bc5('0x1f')]);}else if(_0x32a03b[a3_0x2bc5('0x8')]&&typeof _0x32a03b[a3_0x2bc5('0x8')]===a3_0x2bc5('0x13')){if(_0x32a03b[a3_0x2bc5('0x8')]!==a3_0x2bc5('0x19')){this[a3_0x2bc5('0x28')]['apiError']=a3_0x2bc5('0x47')+JSON[a3_0x2bc5('0x2b')](_0x32a03b[a3_0x2bc5('0x8')]);}}else{this[a3_0x2bc5('0x28')][a3_0x2bc5('0x27')]=a3_0x2bc5('0x47')+JSON['stringify'](_0x32a03b['data']);}if(environment_1[a3_0x2bc5('0x3')]){output[a3_0x2bc5('0xb')]({'title':'Invalid\x20end\x20run\x20response','bodyLines':[JSON['stringify'](_0x32a03b[a3_0x2bc5('0x8')],null,0x2)]});}}else{output[a3_0x2bc5('0x26')]({'title':a3_0x2bc5('0x30'),'bodyLines':['Run\x20completion\x20responded\x20with\x20`undefined`.','Run\x20Details:',JSON[a3_0x2bc5('0x2b')](_0x1924b6,null,0x2),'Stack\x20Trace:',JSON[a3_0x2bc5('0x2b')](new Error()[a3_0x2bc5('0x31')],null,0x2)]});}return![];}catch(_0x282820){_0x22a9ae[a3_0x2bc5('0x2f')](((_0x31e91a=_0x282820===null||_0x282820===void 0x0?void 0x0:_0x282820['axiosException'])===null||_0x31e91a===void 0x0?void 0x0:_0x31e91a[a3_0x2bc5('0x2d')])?(0x0,metric_logger_1[a3_0x2bc5('0x1b')])(_0x282820[a3_0x2bc5('0x0')][a3_0x2bc5('0x2d')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);const _0x5182f5=(_0x5ee8e5=_0x282820[a3_0x2bc5('0x0')])!==null&&_0x5ee8e5!==void 0x0?_0x5ee8e5:_0x282820;this[a3_0x2bc5('0x28')][a3_0x2bc5('0x27')]=this[a3_0x2bc5('0x28')]['extractErrorMessage'](_0x5182f5,a3_0x2bc5('0x3f'));return![];}});}['nxCloudVersion'](){try{const _0x111fc0=JSON[a3_0x2bc5('0x9')]((0x0,fs_1[a3_0x2bc5('0x32')])(a3_0x2bc5('0x1e'))[a3_0x2bc5('0x3e')]());return _0x111fc0[a3_0x2bc5('0xe')]['nx-cloud']||_0x111fc0[a3_0x2bc5('0xe')][a3_0x2bc5('0x45')];}catch(_0x3b3465){return a3_0x2bc5('0x1d');}}}exports['CloudRunApi']=CloudRunApi;

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

const a4_0x5c3f=['length','0123456789','random','defineProperty','floor','generateUniqueLinkId'];(function(_0x18b6c6,_0x5c3f8a){const _0x1ad163=function(_0x210e78){while(--_0x210e78){_0x18b6c6['push'](_0x18b6c6['shift']());}};_0x1ad163(++_0x5c3f8a);}(a4_0x5c3f,0xcb));const a4_0x1ad1=function(_0x18b6c6,_0x5c3f8a){_0x18b6c6=_0x18b6c6-0x0;let _0x1ad163=a4_0x5c3f[_0x18b6c6];return _0x1ad163;};'use strict';Object[a4_0x1ad1('0x4')](exports,'__esModule',{'value':!![]});exports[a4_0x1ad1('0x0')]=void 0x0;const upper='ABCDEFGHIJKLMNOPQRSTUVWXYZ';const digits=a4_0x1ad1('0x2');const lower=upper['toLowerCase']();const alphanum=upper+lower+digits;function generateUniqueLinkId(){let _0x5a93b0='';for(let _0x2171fe=0x0;_0x2171fe<0xa;++_0x2171fe){_0x5a93b0+=alphanum[Math[a4_0x1ad1('0x5')](Math[a4_0x1ad1('0x3')]()*alphanum[a4_0x1ad1('0x1')])];}return _0x5a93b0;}exports[a4_0x1ad1('0x0')]=generateUniqueLinkId;
const a4_0x309d=['floor','length','defineProperty','generateUniqueLinkId','toLowerCase'];(function(_0x473c83,_0x309dc2){const _0x4c0c3d=function(_0x412aac){while(--_0x412aac){_0x473c83['push'](_0x473c83['shift']());}};_0x4c0c3d(++_0x309dc2);}(a4_0x309d,0x18f));const a4_0x4c0c=function(_0x473c83,_0x309dc2){_0x473c83=_0x473c83-0x0;let _0x4c0c3d=a4_0x309d[_0x473c83];return _0x4c0c3d;};'use strict';Object[a4_0x4c0c('0x3')](exports,'__esModule',{'value':!![]});exports[a4_0x4c0c('0x4')]=void 0x0;const upper='ABCDEFGHIJKLMNOPQRSTUVWXYZ';const digits='0123456789';const lower=upper[a4_0x4c0c('0x0')]();const alphanum=upper+lower+digits;function generateUniqueLinkId(){let _0x2506bb='';for(let _0x130ee4=0x0;_0x130ee4<0xa;++_0x130ee4){_0x2506bb+=alphanum[Math[a4_0x4c0c('0x1')](Math['random']()*alphanum[a4_0x4c0c('0x2')])];}return _0x2506bb;}exports[a4_0x4c0c('0x4')]=generateUniqueLinkId;

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

const a5_0x2976=['axiosMultipleTries','/nx-cloud/executions/complete-run-group','runGroup','apply','note','error:\x20','../../../utilities/axios','ciExecutionEnv','createMetricRecorder','runGroup:\x20','apiAxiosInstance','completeRunGroupWithError','axiosException','post','DistributedAgentApi','tasks','value','mapRespToPerfEntry','error','RUNNER_FAILURE_PERF_ENTRY','/nx-cloud/executions/tasks','throw','ciExecutionId','response','__esModule','then','Completed\x20run\x20group\x20with\x20an\x20error','done','defineProperty','recordMetric','dtePollTasks','ciExecutionEnv:\x20','VERBOSE_LOGGING','ciExecutionId:\x20','branch','next'];(function(_0x1faaf6,_0x2976ff){const _0x83f290=function(_0x528364){while(--_0x528364){_0x1faaf6['push'](_0x1faaf6['shift']());}};_0x83f290(++_0x2976ff);}(a5_0x2976,0xe9));const a5_0x83f2=function(_0x1faaf6,_0x2976ff){_0x1faaf6=_0x1faaf6-0x0;let _0x83f290=a5_0x2976[_0x1faaf6];return _0x83f290;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x23fa25,_0x5c06eb,_0x2e2a12,_0x4b6696){function _0x16f175(_0x3bcf03){return _0x3bcf03 instanceof _0x2e2a12?_0x3bcf03:new _0x2e2a12(function(_0x39acf7){_0x39acf7(_0x3bcf03);});}return new(_0x2e2a12||(_0x2e2a12=Promise))(function(_0x2adbb7,_0x43697b){function _0x4453e7(_0x5dc167){try{_0x86a471(_0x4b6696[a5_0x83f2('0x12')](_0x5dc167));}catch(_0x8f6c88){_0x43697b(_0x8f6c88);}}function _0x2131cd(_0x40fb7b){try{_0x86a471(_0x4b6696[a5_0x83f2('0x4')](_0x40fb7b));}catch(_0x30c392){_0x43697b(_0x30c392);}}function _0x86a471(_0x3ad136){_0x3ad136[a5_0x83f2('0xa')]?_0x2adbb7(_0x3ad136['value']):_0x16f175(_0x3ad136[a5_0x83f2('0x23')])[a5_0x83f2('0x8')](_0x4453e7,_0x2131cd);}_0x86a471((_0x4b6696=_0x4b6696[a5_0x83f2('0x16')](_0x23fa25,_0x5c06eb||[]))[a5_0x83f2('0x12')]());});};Object[a5_0x83f2('0xb')](exports,a5_0x83f2('0x7'),{'value':!![]});exports[a5_0x83f2('0x21')]=void 0x0;const axios_1=require(a5_0x83f2('0x19'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require('../../../utilities/metric-logger');const {output}=require('../../../utilities/nx-imports-light');class DistributedAgentApi{constructor(_0x16ed63,_0x3e0829,_0x3fde15,_0x4db8da,_0xb83d94,_0x38a07a){this[a5_0x83f2('0x11')]=_0x3e0829;this[a5_0x83f2('0x15')]=_0x3fde15;this[a5_0x83f2('0x5')]=_0x4db8da;this['ciExecutionEnv']=_0xb83d94;this['agentName']=_0x38a07a;this['apiAxiosInstance']=(0x0,axios_1['createApiAxiosInstance'])(_0x16ed63);}[a5_0x83f2('0x22')](_0x422d3f,_0x29287c,_0x1327ef,_0x3a3da6){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x10b49f;const _0x1cc5ae=(0x0,metric_logger_1[a5_0x83f2('0x1b')])(a5_0x83f2('0xd'));try{const _0x27c738=yield(0x0,axios_1[a5_0x83f2('0x13')])(()=>this[a5_0x83f2('0x1d')][a5_0x83f2('0x20')](a5_0x83f2('0x3'),{'runGroup':this['runGroup'],'ciExecutionId':this[a5_0x83f2('0x5')],'ciExecutionEnv':this[a5_0x83f2('0x1a')],'agentName':this['agentName'],'executionId':_0x422d3f,'statusCode':_0x29287c,'completedTasks':_0x1327ef,'targets':_0x3a3da6}));_0x1cc5ae[a5_0x83f2('0xc')]((0x0,metric_logger_1[a5_0x83f2('0x0')])(_0x27c738));return _0x27c738['data'];}catch(_0x304a67){_0x1cc5ae[a5_0x83f2('0xc')](((_0x10b49f=_0x304a67===null||_0x304a67===void 0x0?void 0x0:_0x304a67[a5_0x83f2('0x1f')])===null||_0x10b49f===void 0x0?void 0x0:_0x10b49f['response'])?(0x0,metric_logger_1[a5_0x83f2('0x0')])(_0x304a67[a5_0x83f2('0x1f')]['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x304a67;}});}[a5_0x83f2('0x1e')](_0x2279d2){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x24b3a9;if(environment_1[a5_0x83f2('0xf')]){output['note']({'title':'Completing\x20with\x20an\x20error','bodyLines':[a5_0x83f2('0x10')+this['ciExecutionId'],a5_0x83f2('0xe')+this[a5_0x83f2('0x1a')],a5_0x83f2('0x1c')+this['runGroup'],a5_0x83f2('0x18')+_0x2279d2]});}const _0x1a325f=(0x0,metric_logger_1[a5_0x83f2('0x1b')])('completeRunGroup');try{const _0x1ffc89=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a5_0x83f2('0x1d')]['post'](a5_0x83f2('0x14'),{'branch':this['branch'],'runGroup':this[a5_0x83f2('0x15')],'ciExecutionId':this['ciExecutionId'],'ciExecutionEnv':this[a5_0x83f2('0x1a')],'agentName':this['agentName'],'criticalErrorMessage':_0x2279d2}));if(environment_1['VERBOSE_LOGGING']){output[a5_0x83f2('0x17')]({'title':a5_0x83f2('0x9')});}_0x1a325f[a5_0x83f2('0xc')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x1ffc89));}catch(_0x50d916){_0x1a325f[a5_0x83f2('0xc')](((_0x24b3a9=_0x50d916===null||_0x50d916===void 0x0?void 0x0:_0x50d916[a5_0x83f2('0x1f')])===null||_0x24b3a9===void 0x0?void 0x0:_0x24b3a9[a5_0x83f2('0x6')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x50d916[a5_0x83f2('0x1f')]['response']):metric_logger_1[a5_0x83f2('0x2')]);console[a5_0x83f2('0x1')](_0x50d916);}});}}exports[a5_0x83f2('0x21')]=DistributedAgentApi;
const a5_0x1890=['createApiAxiosInstance','apiAxiosInstance','tasks','DistributedAgentApi','axiosMultipleTries','branch','../../../utilities/axios','../../../utilities/environment','defineProperty','mapRespToPerfEntry','createMetricRecorder','axiosException','error','throw','post','/nx-cloud/executions/complete-run-group','next','data','done','VERBOSE_LOGGING','Completing\x20with\x20an\x20error','completeRunGroupWithError','error:\x20','agentName','ciExecutionId','runGroup:\x20','__esModule','ciExecutionId:\x20','value','../../../utilities/metric-logger','response','/nx-cloud/executions/tasks','runGroup','note','ciExecutionEnv:\x20','recordMetric','completeRunGroup','apply','RUNNER_FAILURE_PERF_ENTRY','ciExecutionEnv'];(function(_0x453e24,_0x189075){const _0x16a0f3=function(_0x5beeae){while(--_0x5beeae){_0x453e24['push'](_0x453e24['shift']());}};_0x16a0f3(++_0x189075);}(a5_0x1890,0x187));const a5_0x16a0=function(_0x453e24,_0x189075){_0x453e24=_0x453e24-0x0;let _0x16a0f3=a5_0x1890[_0x453e24];return _0x16a0f3;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x20a66a,_0x29d5e4,_0x590061,_0x321d58){function _0x37bfcc(_0x1fd3d3){return _0x1fd3d3 instanceof _0x590061?_0x1fd3d3:new _0x590061(function(_0xc4a773){_0xc4a773(_0x1fd3d3);});}return new(_0x590061||(_0x590061=Promise))(function(_0x483374,_0xa745a9){function _0x3adbeb(_0x52ee60){try{_0x173111(_0x321d58['next'](_0x52ee60));}catch(_0x2a1358){_0xa745a9(_0x2a1358);}}function _0x43aaf1(_0x3bd0cb){try{_0x173111(_0x321d58[a5_0x16a0('0x16')](_0x3bd0cb));}catch(_0x5de6a4){_0xa745a9(_0x5de6a4);}}function _0x173111(_0x246189){_0x246189[a5_0x16a0('0x1b')]?_0x483374(_0x246189[a5_0x16a0('0x25')]):_0x37bfcc(_0x246189[a5_0x16a0('0x25')])['then'](_0x3adbeb,_0x43aaf1);}_0x173111((_0x321d58=_0x321d58[a5_0x16a0('0x6')](_0x20a66a,_0x29d5e4||[]))[a5_0x16a0('0x19')]());});};Object[a5_0x16a0('0x11')](exports,a5_0x16a0('0x23'),{'value':!![]});exports[a5_0x16a0('0xc')]=void 0x0;const axios_1=require(a5_0x16a0('0xf'));const environment_1=require(a5_0x16a0('0x10'));const metric_logger_1=require(a5_0x16a0('0x26'));const {output}=require('../../../utilities/nx-imports-light');class DistributedAgentApi{constructor(_0x3a58c7,_0x1a1838,_0x23cab6,_0x58e4a0,_0x2dd3a4,_0x49e01a){this[a5_0x16a0('0xe')]=_0x1a1838;this['runGroup']=_0x23cab6;this[a5_0x16a0('0x21')]=_0x58e4a0;this[a5_0x16a0('0x8')]=_0x2dd3a4;this[a5_0x16a0('0x20')]=_0x49e01a;this['apiAxiosInstance']=(0x0,axios_1[a5_0x16a0('0x9')])(_0x3a58c7);}[a5_0x16a0('0xb')](_0x4ab42a,_0x46d566,_0x30f1bb,_0x6f11f2){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x308d80;const _0x4b465f=(0x0,metric_logger_1['createMetricRecorder'])('dtePollTasks');try{const _0x457ecb=yield(0x0,axios_1[a5_0x16a0('0xd')])(()=>this[a5_0x16a0('0xa')]['post'](a5_0x16a0('0x0'),{'runGroup':this[a5_0x16a0('0x1')],'ciExecutionId':this['ciExecutionId'],'ciExecutionEnv':this[a5_0x16a0('0x8')],'agentName':this[a5_0x16a0('0x20')],'executionId':_0x4ab42a,'statusCode':_0x46d566,'completedTasks':_0x30f1bb,'targets':_0x6f11f2}));_0x4b465f['recordMetric']((0x0,metric_logger_1[a5_0x16a0('0x12')])(_0x457ecb));return _0x457ecb[a5_0x16a0('0x1a')];}catch(_0x15f7ad){_0x4b465f[a5_0x16a0('0x4')](((_0x308d80=_0x15f7ad===null||_0x15f7ad===void 0x0?void 0x0:_0x15f7ad[a5_0x16a0('0x14')])===null||_0x308d80===void 0x0?void 0x0:_0x308d80['response'])?(0x0,metric_logger_1[a5_0x16a0('0x12')])(_0x15f7ad['axiosException'][a5_0x16a0('0x27')]):metric_logger_1[a5_0x16a0('0x7')]);throw _0x15f7ad;}});}[a5_0x16a0('0x1e')](_0x4ee949){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x43be37;if(environment_1[a5_0x16a0('0x1c')]){output[a5_0x16a0('0x2')]({'title':a5_0x16a0('0x1d'),'bodyLines':[a5_0x16a0('0x24')+this['ciExecutionId'],a5_0x16a0('0x3')+this[a5_0x16a0('0x8')],a5_0x16a0('0x22')+this[a5_0x16a0('0x1')],a5_0x16a0('0x1f')+_0x4ee949]});}const _0x5040ce=(0x0,metric_logger_1[a5_0x16a0('0x13')])(a5_0x16a0('0x5'));try{const _0x2eb223=yield(0x0,axios_1[a5_0x16a0('0xd')])(()=>this[a5_0x16a0('0xa')][a5_0x16a0('0x17')](a5_0x16a0('0x18'),{'branch':this[a5_0x16a0('0xe')],'runGroup':this[a5_0x16a0('0x1')],'ciExecutionId':this[a5_0x16a0('0x21')],'ciExecutionEnv':this[a5_0x16a0('0x8')],'agentName':this[a5_0x16a0('0x20')],'criticalErrorMessage':_0x4ee949}));if(environment_1[a5_0x16a0('0x1c')]){output[a5_0x16a0('0x2')]({'title':'Completed\x20run\x20group\x20with\x20an\x20error'});}_0x5040ce[a5_0x16a0('0x4')]((0x0,metric_logger_1[a5_0x16a0('0x12')])(_0x2eb223));}catch(_0x581ecd){_0x5040ce['recordMetric'](((_0x43be37=_0x581ecd===null||_0x581ecd===void 0x0?void 0x0:_0x581ecd['axiosException'])===null||_0x43be37===void 0x0?void 0x0:_0x43be37[a5_0x16a0('0x27')])?(0x0,metric_logger_1[a5_0x16a0('0x12')])(_0x581ecd[a5_0x16a0('0x14')][a5_0x16a0('0x27')]):metric_logger_1[a5_0x16a0('0x7')]);console[a5_0x16a0('0x15')](_0x581ecd);}});}}exports['DistributedAgentApi']=DistributedAgentApi;

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

const a6_0x5ada=['mkdirSync','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','Distributed\x20Task\x20Execution\x20is\x20disabled\x20when\x20your\x20workspace\x20is\x20disabled','printInvalidRunnerError','./distributed-agent.api','floor','Organization\x20administrators\x20can\x20find\x20more\x20information\x20on\x20the\x20\x27Billing\x27\x20page\x20in\x20the\x20Nx\x20Cloud\x20Webapp','isWorkspaceEnabled','executeTasks','DistributedAgentApi','targets','runner','random','ErrorReporterApi','length','__awaiter','NX_CLOUD_ACCESS_TOKEN','Agent\x20was\x20terminated\x20via\x20SIGTERM','value','startAgent','writeFileSync','warn','Agent\x20was\x20terminated\x20via\x20SIGINT','includes','done','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','Duplicate\x20Agent\x20ID\x20Detected','ENCRYPTION_KEY','Critical\x20Error\x20in\x20Agent:\x20\x22','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','note','getCIExecutionId','CIRCLE_STAGE','SIGTERM','invokeTasksUsingRunMany','message','defineProperty','next','encryptionKey','./invoke-tasks-using-nx-imperative-api','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','nxCloudAccessToken','apply','getCloudOptions','.lock','then','../../error/print-invalid-runner-error','../../error/print-cacheable-targets-error','NX_AGENT_NAME','../../error/print-run-group-error','getBranch','readdirSync','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20target(s)\x20[','trim','env','../../file-storage/file-storage','@nrwl/nx-cloud','cacheableOperations','getCIExecutionEnv','filter','../../../utilities/environment','argv','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.','canDetectRunGroup','exit','Nx\x20Cloud:\x20Workspace\x20is\x20disabled','DteArtifactStorage','submitRunMetrics','CIRCLE_JOB','./execute-tasks','throw','completeRunGroupWithError','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','error','default','Other\x20Nx\x20Cloud\x20Agents\x20Detected','split','../../file-storage/e2e-encryption','CIRCLECI','./invoke-tasks-using-run-many','catch','dte-agent','SIGINT'];(function(_0x1c6736,_0x5adab4){const _0x23e287=function(_0x731456){while(--_0x731456){_0x1c6736['push'](_0x1c6736['shift']());}};_0x23e287(++_0x5adab4);}(a6_0x5ada,0xdb));const a6_0x23e2=function(_0x1c6736,_0x5adab4){_0x1c6736=_0x1c6736-0x0;let _0x23e287=a6_0x5ada[_0x1c6736];return _0x23e287;};'use strict';var __awaiter=this&&this[a6_0x23e2('0x2d')]||function(_0x156cb6,_0x157d18,_0x1737bd,_0xa0290a){function _0x5bc6ae(_0x46bc5b){return _0x46bc5b instanceof _0x1737bd?_0x46bc5b:new _0x1737bd(function(_0x18b422){_0x18b422(_0x46bc5b);});}return new(_0x1737bd||(_0x1737bd=Promise))(function(_0x4597bd,_0x2e2a29){function _0x48b137(_0x3c0aa9){try{_0xe19e6f(_0xa0290a[a6_0x23e2('0x43')](_0x3c0aa9));}catch(_0x2d0add){_0x2e2a29(_0x2d0add);}}function _0x57873e(_0x54e32f){try{_0xe19e6f(_0xa0290a[a6_0x23e2('0x11')](_0x54e32f));}catch(_0x6c44f1){_0x2e2a29(_0x6c44f1);}}function _0xe19e6f(_0x448c22){_0x448c22[a6_0x23e2('0x36')]?_0x4597bd(_0x448c22[a6_0x23e2('0x30')]):_0x5bc6ae(_0x448c22['value'])[a6_0x23e2('0x4b')](_0x48b137,_0x57873e);}_0xe19e6f((_0xa0290a=_0xa0290a[a6_0x23e2('0x48')](_0x156cb6,_0x157d18||[]))[a6_0x23e2('0x43')]());});};Object[a6_0x23e2('0x42')](exports,'__esModule',{'value':!![]});exports[a6_0x23e2('0x31')]=void 0x0;const fs_1=require('fs');const yargsParser=require('yargs-parser');const dte_artifact_storage_1=require('../../../utilities/dte-artifact-storage');const environment_1=require(a6_0x23e2('0x7'));const get_cloud_options_1=require('../../../utilities/get-cloud-options');const is_workspace_enabled_1=require('../../../utilities/is-workspace-enabled');const metric_logger_1=require('../../../utilities/metric-logger');const error_reporter_api_1=require('../../api/error-reporter.api');const print_cacheable_targets_error_1=require(a6_0x23e2('0x4d'));const print_invalid_runner_error_1=require(a6_0x23e2('0x4c'));const print_run_group_error_1=require(a6_0x23e2('0x4f'));const e2e_encryption_1=require(a6_0x23e2('0x18'));const file_storage_1=require(a6_0x23e2('0x2'));const distributed_agent_api_1=require(a6_0x23e2('0x22'));const execute_tasks_1=require(a6_0x23e2('0x10'));const invoke_tasks_using_nx_imperative_api_1=require(a6_0x23e2('0x45'));const invoke_tasks_using_run_many_1=require(a6_0x23e2('0x1a'));const {output}=require('../../../utilities/nx-imports-light');const {initTasksRunner,cacheDirectory}=require('../../../utilities/nx-imports');const args=yargsParser(process[a6_0x23e2('0x8')],{'array':[a6_0x23e2('0x28')],'default':{}});if(args['targets']&&args['targets'][a6_0x23e2('0x2c')]===0x1){args[a6_0x23e2('0x28')]=args[a6_0x23e2('0x28')][0x0][a6_0x23e2('0x17')](',')['map'](_0x43ea1a=>_0x43ea1a[a6_0x23e2('0x0')]());}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5c1921=(0x0,environment_1[a6_0x23e2('0x50')])();const _0x19b7d1=(0x0,environment_1['getRunGroup'])();const _0xe3c541=(0x0,environment_1[a6_0x23e2('0x3d')])();const _0x50b9a6=(0x0,environment_1[a6_0x23e2('0x5')])();if(!(0x0,print_run_group_error_1[a6_0x23e2('0xa')])(_0x19b7d1,_0xe3c541)){(0x0,print_run_group_error_1['printRunGroupError'])();process['exit'](0x1);}if(args[a6_0x23e2('0x28')]&&args[a6_0x23e2('0x28')][a6_0x23e2('0x2c')]){output[a6_0x23e2('0x3c')]({'title':a6_0x23e2('0x52')+args[a6_0x23e2('0x28')]['join'](',\x20')+']'});}else{output[a6_0x23e2('0x3c')]({'title':a6_0x23e2('0x1f')});}const {nxJson,nxCloudOptions:_0x562243}=(0x0,get_cloud_options_1[a6_0x23e2('0x49')])(a6_0x23e2('0x15'));function _0x5175ad(){var _0x5d1da8;const _0x61600d=(_0x5d1da8=nxJson['tasksRunnerOptions'])===null||_0x5d1da8===void 0x0?void 0x0:_0x5d1da8['default'];if(nxJson[a6_0x23e2('0x47')]&&!_0x61600d){return!![];}return!(_0x61600d===null||_0x61600d===void 0x0?void 0x0:_0x61600d['runner'])&&process[a6_0x23e2('0x1')][a6_0x23e2('0x2e')]||!(_0x61600d===null||_0x61600d===void 0x0?void 0x0:_0x61600d[a6_0x23e2('0x29')])&&nxJson[a6_0x23e2('0x47')]||(_0x61600d===null||_0x61600d===void 0x0?void 0x0:_0x61600d[a6_0x23e2('0x29')])==='nx-cloud'||(_0x61600d===null||_0x61600d===void 0x0?void 0x0:_0x61600d[a6_0x23e2('0x29')])===a6_0x23e2('0x3');}if(!_0x5175ad()){(0x0,print_invalid_runner_error_1[a6_0x23e2('0x21')])();return process['exit'](0x1);}if(args['targets']&&args['targets']['some'](_0x34d2aa=>{var _0x40be51;return!((_0x40be51=_0x562243[a6_0x23e2('0x4')])===null||_0x40be51===void 0x0?void 0x0:_0x40be51[a6_0x23e2('0x35')](_0x34d2aa));})){const _0x495440=args[a6_0x23e2('0x28')][a6_0x23e2('0x6')](_0x4487be=>{var _0x4d3db1;return!((_0x4d3db1=_0x562243[a6_0x23e2('0x4')])===null||_0x4d3db1===void 0x0?void 0x0:_0x4d3db1['includes'](_0x4487be));});(0x0,print_cacheable_targets_error_1['printCacheableTargetsError'])(_0x495440);return process[a6_0x23e2('0xb')](0x1);}const _0x4d16bc=yield(0x0,is_workspace_enabled_1[a6_0x23e2('0x25')])(_0x562243);if(!_0x4d16bc){output[a6_0x23e2('0x14')]({'title':a6_0x23e2('0xc'),'bodyLines':[a6_0x23e2('0x20'),'',a6_0x23e2('0x24')]});process[a6_0x23e2('0xb')](0x1);}const _0x22dab1=getAgentName();const _0x3512c1=new distributed_agent_api_1[(a6_0x23e2('0x27'))](_0x562243,_0x5c1921,_0x19b7d1,_0xe3c541,_0x50b9a6,_0x22dab1);createAgentLockfileAndSetUpListeners(_0x3512c1,_0x562243,_0x22dab1);const _0x3ed340=new e2e_encryption_1['E2EEncryption'](environment_1[a6_0x23e2('0x39')]||_0x562243[a6_0x23e2('0x44')]);const _0x4b9fe9=new error_reporter_api_1[(a6_0x23e2('0x2b'))](_0x562243);const _0x59ed63=new dte_artifact_storage_1[(a6_0x23e2('0xd'))](new file_storage_1['FileStorage'](_0x3ed340,_0x4b9fe9,_0x562243,a6_0x23e2('0x1c')),cacheDirectory);const _0x106de5=initTasksRunner?yield(0x0,invoke_tasks_using_nx_imperative_api_1['invokeTasksUsingNxImperativeApi'])(_0x562243):yield(0x0,invoke_tasks_using_run_many_1[a6_0x23e2('0x40')])();return(0x0,execute_tasks_1[a6_0x23e2('0x26')])(_0x22dab1,_0x3512c1,_0x59ed63,_0x106de5,args[a6_0x23e2('0x28')])[a6_0x23e2('0x4b')](_0x3140ac=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a6_0x23e2('0xe')])(_0x562243);return _0x3140ac;}))[a6_0x23e2('0x1b')](_0x3085ff=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x3512c1[a6_0x23e2('0x12')](a6_0x23e2('0x3a')+_0x3085ff[a6_0x23e2('0x41')]+'\x22');throw _0x3085ff;}));});}exports[a6_0x23e2('0x31')]=startAgent;function getAgentName(){if(process[a6_0x23e2('0x1')][a6_0x23e2('0x4e')]!==undefined){return process[a6_0x23e2('0x1')][a6_0x23e2('0x4e')];}else if(process[a6_0x23e2('0x1')][a6_0x23e2('0x19')]!==undefined&&process[a6_0x23e2('0x1')][a6_0x23e2('0x3e')]){return process[a6_0x23e2('0x1')][a6_0x23e2('0x3e')];}else if(process[a6_0x23e2('0x1')][a6_0x23e2('0x19')]!==undefined&&process[a6_0x23e2('0x1')][a6_0x23e2('0xf')]){return process[a6_0x23e2('0x1')][a6_0x23e2('0xf')];}else{return'Agent\x20'+Math[a6_0x23e2('0x23')](Math[a6_0x23e2('0x2a')]()*0x186a0);}}function createAgentLockfileAndSetUpListeners(_0x212b1b,_0xaeb50c,_0x2a7806){const _0xfc9587=cacheDirectory+'/lockfiles';const _0x4429b1=_0xfc9587+'/'+_0x2a7806+a6_0x23e2('0x4a');if(!(0x0,fs_1['existsSync'])(_0xfc9587)){(0x0,fs_1[a6_0x23e2('0x1e')])(_0xfc9587,{'recursive':!![]});}const _0x5c3c0e=(0x0,fs_1[a6_0x23e2('0x51')])(_0xfc9587);if(_0x5c3c0e[a6_0x23e2('0x2c')]){if(_0x5c3c0e[a6_0x23e2('0x35')](_0x2a7806+a6_0x23e2('0x4a'))){output[a6_0x23e2('0x14')]({'title':a6_0x23e2('0x38'),'bodyLines':[a6_0x23e2('0x37'),'',a6_0x23e2('0x9')]});process[a6_0x23e2('0xb')](0x1);}output[a6_0x23e2('0x33')]({'title':a6_0x23e2('0x16'),'bodyLines':[a6_0x23e2('0x3b'),'',a6_0x23e2('0x13'),a6_0x23e2('0x46')]});}(0x0,fs_1[a6_0x23e2('0x32')])(_0x4429b1,'');process['on'](a6_0x23e2('0xb'),_0x16fcb5=>{cleanupAgentLockfile(_0x4429b1,_0x16fcb5);});process['on'](a6_0x23e2('0x3f'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x212b1b[a6_0x23e2('0x12')](a6_0x23e2('0x2f'));cleanupAgentLockfile(_0x4429b1,0x1);}));process['on'](a6_0x23e2('0x1d'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x212b1b[a6_0x23e2('0x12')](a6_0x23e2('0x34'));cleanupAgentLockfile(_0x4429b1,0x1);}));}function cleanupAgentLockfile(_0x58e2ce,_0x9bdac0){if((0x0,fs_1['existsSync'])(_0x58e2ce)){(0x0,fs_1['unlinkSync'])(_0x58e2ce);process[a6_0x23e2('0xb')](_0x9bdac0);}}
const a6_0x40fc=['nxCloudAccessToken','then','note','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','executeTasks','tasksRunnerOptions','join','argv','message','__awaiter','random','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.','dte-agent','printInvalidRunnerError','targets','encryptionKey','includes','Critical\x20Error\x20in\x20Agent:\x20\x22','../../../utilities/nx-imports-light','ErrorReporterApi','Distributed\x20Task\x20Execution\x20is\x20disabled\x20when\x20your\x20workspace\x20is\x20disabled','../../error/print-cacheable-targets-error','printRunGroupError','cacheableOperations','catch','../../../utilities/environment','canDetectRunGroup','./execute-tasks','some','../../error/print-invalid-runner-error','warn','Agent\x20was\x20terminated\x20via\x20SIGINT','NX_AGENT_NAME','Agent\x20was\x20terminated\x20via\x20SIGTERM','apply','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','isWorkspaceEnabled','./distributed-agent.api','./invoke-tasks-using-run-many','filter','completeRunGroupWithError','printCacheableTargetsError','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','length','getCloudOptions','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','mkdirSync','split','done','env','runner','DteArtifactStorage','map','getBranch','submitRunMetrics','getCIExecutionEnv','__esModule','Duplicate\x20Agent\x20ID\x20Detected','nx-cloud','startAgent','error','getRunGroup','floor','.lock','FileStorage','../../../utilities/metric-logger','next','default','throw','../../error/print-run-group-error','defineProperty','CIRCLE_STAGE','SIGINT','../../file-storage/file-storage','exit','E2EEncryption','Other\x20Nx\x20Cloud\x20Agents\x20Detected','CIRCLECI','CIRCLE_JOB','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20target(s)\x20[','value','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','existsSync'];(function(_0x973931,_0x40fc51){const _0x1e4082=function(_0x178eb2){while(--_0x178eb2){_0x973931['push'](_0x973931['shift']());}};_0x1e4082(++_0x40fc51);}(a6_0x40fc,0x8b));const a6_0x1e40=function(_0x973931,_0x40fc51){_0x973931=_0x973931-0x0;let _0x1e4082=a6_0x40fc[_0x973931];return _0x1e4082;};'use strict';var __awaiter=this&&this[a6_0x1e40('0x24')]||function(_0x1f69e0,_0x5473f5,_0xd01843,_0xfb08fe){function _0x162764(_0x4fbacd){return _0x4fbacd instanceof _0xd01843?_0x4fbacd:new _0xd01843(function(_0x2c3dc7){_0x2c3dc7(_0x4fbacd);});}return new(_0xd01843||(_0xd01843=Promise))(function(_0x14b370,_0x467968){function _0x22fcbb(_0xca67d8){try{_0xbaa560(_0xfb08fe[a6_0x1e40('0xa')](_0xca67d8));}catch(_0x14d0bf){_0x467968(_0x14d0bf);}}function _0x5dbf51(_0x4b016f){try{_0xbaa560(_0xfb08fe[a6_0x1e40('0xc')](_0x4b016f));}catch(_0x233ba6){_0x467968(_0x233ba6);}}function _0xbaa560(_0x1a0013){_0x1a0013[a6_0x1e40('0x4b')]?_0x14b370(_0x1a0013[a6_0x1e40('0x18')]):_0x162764(_0x1a0013['value'])['then'](_0x22fcbb,_0x5dbf51);}_0xbaa560((_0xfb08fe=_0xfb08fe[a6_0x1e40('0x3d')](_0x1f69e0,_0x5473f5||[]))[a6_0x1e40('0xa')]());});};Object[a6_0x1e40('0xe')](exports,a6_0x1e40('0x0'),{'value':!![]});exports[a6_0x1e40('0x3')]=void 0x0;const fs_1=require('fs');const yargsParser=require('yargs-parser');const dte_artifact_storage_1=require('../../../utilities/dte-artifact-storage');const environment_1=require(a6_0x1e40('0x34'));const get_cloud_options_1=require('../../../utilities/get-cloud-options');const is_workspace_enabled_1=require('../../../utilities/is-workspace-enabled');const metric_logger_1=require(a6_0x1e40('0x9'));const error_reporter_api_1=require('../../api/error-reporter.api');const print_cacheable_targets_error_1=require(a6_0x1e40('0x30'));const print_invalid_runner_error_1=require(a6_0x1e40('0x38'));const print_run_group_error_1=require(a6_0x1e40('0xd'));const e2e_encryption_1=require('../../file-storage/e2e-encryption');const file_storage_1=require(a6_0x1e40('0x11'));const distributed_agent_api_1=require(a6_0x1e40('0x40'));const execute_tasks_1=require(a6_0x1e40('0x36'));const invoke_tasks_using_nx_imperative_api_1=require('./invoke-tasks-using-nx-imperative-api');const invoke_tasks_using_run_many_1=require(a6_0x1e40('0x41'));const {output}=require(a6_0x1e40('0x2d'));const {initTasksRunner,cacheDirectory}=require('../../../utilities/nx-imports');const args=yargsParser(process[a6_0x1e40('0x22')],{'array':[a6_0x1e40('0x29')],'default':{}});if(args[a6_0x1e40('0x29')]&&args[a6_0x1e40('0x29')][a6_0x1e40('0x46')]===0x1){args[a6_0x1e40('0x29')]=args[a6_0x1e40('0x29')][0x0][a6_0x1e40('0x4a')](',')[a6_0x1e40('0x4f')](_0x5b104e=>_0x5b104e['trim']());}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1a2e6d=(0x0,environment_1[a6_0x1e40('0x50')])();const _0x5d52a1=(0x0,environment_1[a6_0x1e40('0x5')])();const _0x19b5ef=(0x0,environment_1['getCIExecutionId'])();const _0xde99cd=(0x0,environment_1[a6_0x1e40('0x52')])();if(!(0x0,print_run_group_error_1[a6_0x1e40('0x35')])(_0x5d52a1,_0x19b5ef)){(0x0,print_run_group_error_1[a6_0x1e40('0x31')])();process[a6_0x1e40('0x12')](0x1);}if(args[a6_0x1e40('0x29')]&&args[a6_0x1e40('0x29')]['length']){output['note']({'title':a6_0x1e40('0x17')+args[a6_0x1e40('0x29')][a6_0x1e40('0x21')](',\x20')+']'});}else{output[a6_0x1e40('0x1d')]({'title':a6_0x1e40('0x1e')});}const {nxJson,nxCloudOptions:_0x2cd033}=(0x0,get_cloud_options_1[a6_0x1e40('0x47')])(a6_0x1e40('0xb'));function _0x1875cd(){var _0x116814;const _0x6e2adb=(_0x116814=nxJson[a6_0x1e40('0x20')])===null||_0x116814===void 0x0?void 0x0:_0x116814['default'];if(nxJson[a6_0x1e40('0x1b')]&&!_0x6e2adb){return!![];}return!(_0x6e2adb===null||_0x6e2adb===void 0x0?void 0x0:_0x6e2adb['runner'])&&process[a6_0x1e40('0x4c')]['NX_CLOUD_ACCESS_TOKEN']||!(_0x6e2adb===null||_0x6e2adb===void 0x0?void 0x0:_0x6e2adb['runner'])&&nxJson['nxCloudAccessToken']||(_0x6e2adb===null||_0x6e2adb===void 0x0?void 0x0:_0x6e2adb[a6_0x1e40('0x4d')])===a6_0x1e40('0x2')||(_0x6e2adb===null||_0x6e2adb===void 0x0?void 0x0:_0x6e2adb[a6_0x1e40('0x4d')])==='@nrwl/nx-cloud';}if(!_0x1875cd()){(0x0,print_invalid_runner_error_1[a6_0x1e40('0x28')])();return process['exit'](0x1);}if(args['targets']&&args['targets'][a6_0x1e40('0x37')](_0x3c05b2=>{var _0x59c2c3;return!((_0x59c2c3=_0x2cd033[a6_0x1e40('0x32')])===null||_0x59c2c3===void 0x0?void 0x0:_0x59c2c3['includes'](_0x3c05b2));})){const _0x27dd26=args[a6_0x1e40('0x29')][a6_0x1e40('0x42')](_0x298442=>{var _0x5561f9;return!((_0x5561f9=_0x2cd033[a6_0x1e40('0x32')])===null||_0x5561f9===void 0x0?void 0x0:_0x5561f9[a6_0x1e40('0x2b')](_0x298442));});(0x0,print_cacheable_targets_error_1[a6_0x1e40('0x44')])(_0x27dd26);return process[a6_0x1e40('0x12')](0x1);}const _0x518de8=yield(0x0,is_workspace_enabled_1[a6_0x1e40('0x3f')])(_0x2cd033);if(!_0x518de8){output[a6_0x1e40('0x4')]({'title':'Nx\x20Cloud:\x20Workspace\x20is\x20disabled','bodyLines':[a6_0x1e40('0x2f'),'','Organization\x20administrators\x20can\x20find\x20more\x20information\x20on\x20the\x20\x27Billing\x27\x20page\x20in\x20the\x20Nx\x20Cloud\x20Webapp']});process[a6_0x1e40('0x12')](0x1);}const _0x450f7d=getAgentName();const _0x3c5fc1=new distributed_agent_api_1['DistributedAgentApi'](_0x2cd033,_0x1a2e6d,_0x5d52a1,_0x19b5ef,_0xde99cd,_0x450f7d);createAgentLockfileAndSetUpListeners(_0x3c5fc1,_0x2cd033,_0x450f7d);const _0x1fd3c2=new e2e_encryption_1[(a6_0x1e40('0x13'))](environment_1['ENCRYPTION_KEY']||_0x2cd033[a6_0x1e40('0x2a')]);const _0x29bf86=new error_reporter_api_1[(a6_0x1e40('0x2e'))](_0x2cd033);const _0x39e5c0=new dte_artifact_storage_1[(a6_0x1e40('0x4e'))](new file_storage_1[(a6_0x1e40('0x8'))](_0x1fd3c2,_0x29bf86,_0x2cd033,a6_0x1e40('0x27')),cacheDirectory);const _0x214aad=initTasksRunner?yield(0x0,invoke_tasks_using_nx_imperative_api_1['invokeTasksUsingNxImperativeApi'])(_0x2cd033):yield(0x0,invoke_tasks_using_run_many_1['invokeTasksUsingRunMany'])();return(0x0,execute_tasks_1[a6_0x1e40('0x1f')])(_0x450f7d,_0x3c5fc1,_0x39e5c0,_0x214aad,args['targets'])[a6_0x1e40('0x1c')](_0x1278ff=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a6_0x1e40('0x51')])(_0x2cd033);return _0x1278ff;}))[a6_0x1e40('0x33')](_0xb946da=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x3c5fc1[a6_0x1e40('0x43')](a6_0x1e40('0x2c')+_0xb946da[a6_0x1e40('0x23')]+'\x22');throw _0xb946da;}));});}exports[a6_0x1e40('0x3')]=startAgent;function getAgentName(){if(process[a6_0x1e40('0x4c')][a6_0x1e40('0x3b')]!==undefined){return process[a6_0x1e40('0x4c')][a6_0x1e40('0x3b')];}else if(process[a6_0x1e40('0x4c')][a6_0x1e40('0x15')]!==undefined&&process[a6_0x1e40('0x4c')][a6_0x1e40('0xf')]){return process[a6_0x1e40('0x4c')][a6_0x1e40('0xf')];}else if(process['env'][a6_0x1e40('0x15')]!==undefined&&process[a6_0x1e40('0x4c')][a6_0x1e40('0x16')]){return process[a6_0x1e40('0x4c')][a6_0x1e40('0x16')];}else{return'Agent\x20'+Math[a6_0x1e40('0x6')](Math[a6_0x1e40('0x25')]()*0x186a0);}}function createAgentLockfileAndSetUpListeners(_0x562d7a,_0x138402,_0x2546b4){const _0x4d54f8=cacheDirectory+'/lockfiles';const _0xa9d635=_0x4d54f8+'/'+_0x2546b4+a6_0x1e40('0x7');if(!(0x0,fs_1['existsSync'])(_0x4d54f8)){(0x0,fs_1[a6_0x1e40('0x49')])(_0x4d54f8,{'recursive':!![]});}const _0x5be956=(0x0,fs_1['readdirSync'])(_0x4d54f8);if(_0x5be956[a6_0x1e40('0x46')]){if(_0x5be956[a6_0x1e40('0x2b')](_0x2546b4+a6_0x1e40('0x7'))){output[a6_0x1e40('0x4')]({'title':a6_0x1e40('0x1'),'bodyLines':[a6_0x1e40('0x19'),'',a6_0x1e40('0x26')]});process[a6_0x1e40('0x12')](0x1);}output[a6_0x1e40('0x39')]({'title':a6_0x1e40('0x14'),'bodyLines':[a6_0x1e40('0x45'),'',a6_0x1e40('0x3e'),a6_0x1e40('0x48')]});}(0x0,fs_1['writeFileSync'])(_0xa9d635,'');process['on'](a6_0x1e40('0x12'),_0x35619b=>{cleanupAgentLockfile(_0xa9d635,_0x35619b);});process['on']('SIGTERM',()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x562d7a[a6_0x1e40('0x43')](a6_0x1e40('0x3c'));cleanupAgentLockfile(_0xa9d635,0x1);}));process['on'](a6_0x1e40('0x10'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x562d7a[a6_0x1e40('0x43')](a6_0x1e40('0x3a'));cleanupAgentLockfile(_0xa9d635,0x1);}));}function cleanupAgentLockfile(_0x51355e,_0x208449){if((0x0,fs_1[a6_0x1e40('0x1a')])(_0x51355e)){(0x0,fs_1['unlinkSync'])(_0x51355e);process['exit'](_0x208449);}}

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

const a7_0x1570=['getTime','status','maxParallel','\x20fetching\x20tasks...','join','Error:','executionId','apply','map','taskId','executeTasks','hash','No\x20new\x20messages\x20received\x20after\x20','../../../utilities/nx-imports-light','\x20waiting...','retryDuring:\x20','createUnchangedValueTimeout','number\x20of\x20tasks:\x20','../../../utilities/create-unchanged-value-timeout','../../../utilities/environment','\x20downloading\x20artifacts\x20for\x20','reset','wait','tasks','Distributed\x20Execution\x20Terminated','NO_MESSAGES_TIMEOUT','error:\x20','throw','note','error','retryDuring','__esModule','value','\x20received\x20an\x20API\x20Response','executionId:\x20','VERBOSE_LOGGING','maxParallel:\x20','completedTasks','next','\x20Url:\x20','defineProperty','done','completed:\x20','url','RUN_GROUP_COMPLETED','status:\x20','__awaiter','criticalErrorMessage','length','exit'];(function(_0x284b30,_0x157078){const _0x3e9930=function(_0x3f8378){while(--_0x3f8378){_0x284b30['push'](_0x284b30['shift']());}};_0x3e9930(++_0x157078);}(a7_0x1570,0x10d));const a7_0x3e99=function(_0x284b30,_0x157078){_0x284b30=_0x284b30-0x0;let _0x3e9930=a7_0x1570[_0x284b30];return _0x3e9930;};'use strict';var __awaiter=this&&this[a7_0x3e99('0x1b')]||function(_0x2c163c,_0x10349d,_0xd2ed09,_0xb24d2d){function _0x57884e(_0x2d71b2){return _0x2d71b2 instanceof _0xd2ed09?_0x2d71b2:new _0xd2ed09(function(_0x317a4d){_0x317a4d(_0x2d71b2);});}return new(_0xd2ed09||(_0xd2ed09=Promise))(function(_0x333a6a,_0x159dd5){function _0x290731(_0x31d785){try{_0x22211f(_0xb24d2d[a7_0x3e99('0x13')](_0x31d785));}catch(_0x349cb1){_0x159dd5(_0x349cb1);}}function _0x3610d1(_0x3c1c93){try{_0x22211f(_0xb24d2d[a7_0x3e99('0x8')](_0x3c1c93));}catch(_0x479c1e){_0x159dd5(_0x479c1e);}}function _0x22211f(_0x41aa3f){_0x41aa3f[a7_0x3e99('0x16')]?_0x333a6a(_0x41aa3f[a7_0x3e99('0xd')]):_0x57884e(_0x41aa3f['value'])['then'](_0x290731,_0x3610d1);}_0x22211f((_0xb24d2d=_0xb24d2d[a7_0x3e99('0x26')](_0x2c163c,_0x10349d||[]))['next']());});};Object[a7_0x3e99('0x15')](exports,a7_0x3e99('0xc'),{'value':!![]});exports[a7_0x3e99('0x29')]=void 0x0;const create_unchanged_value_timeout_1=require(a7_0x3e99('0x31'));const environment_1=require(a7_0x3e99('0x0'));const waiter_1=require('../../../utilities/waiter');const {output}=require(a7_0x3e99('0x2c'));function executeTasks(_0x1a5272,_0x4014bb,_0x1f291e,_0x46d8bd,_0x33e692){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x3c42a9=0x0;let _0x1f3305=null;const _0x2e7e64=(0x0,create_unchanged_value_timeout_1[a7_0x3e99('0x2f')])({'title':a7_0x3e99('0x2b')+environment_1[a7_0x3e99('0x6')]/0x3e8+'\x20seconds','timeout':environment_1[a7_0x3e99('0x6')]});const _0x570505=new waiter_1['Waiter']();let _0x4828f9=[];const _0x14f10c=new Date();let _0x42fbcd=![];const _0x13559d={};while(!![]){if(environment_1[a7_0x3e99('0x10')]){output[a7_0x3e99('0x9')]({'title':_0x1a5272+a7_0x3e99('0x22')});}_0x1f3305=yield _0x4014bb['tasks'](_0x1f3305?_0x1f3305[a7_0x3e99('0x25')]:null,_0x3c42a9,_0x4828f9,_0x33e692);if(environment_1[a7_0x3e99('0x10')]){output[a7_0x3e99('0x9')]({'title':_0x1a5272+a7_0x3e99('0xe'),'bodyLines':[a7_0x3e99('0x17')+_0x1f3305['completed'],a7_0x3e99('0x1a')+_0x1f3305[a7_0x3e99('0x20')],a7_0x3e99('0x2e')+_0x1f3305[a7_0x3e99('0xb')],a7_0x3e99('0xf')+_0x1f3305['executionId'],a7_0x3e99('0x30')+_0x1f3305[a7_0x3e99('0x4')][a7_0x3e99('0x1d')],a7_0x3e99('0x7')+_0x1f3305[a7_0x3e99('0x1c')],a7_0x3e99('0x11')+_0x1f3305['maxParallel']]});}if(_0x1f3305['criticalErrorMessage']){output[a7_0x3e99('0xa')]({'title':a7_0x3e99('0x5'),'bodyLines':[a7_0x3e99('0x24'),_0x1f3305[a7_0x3e99('0x1c')]]});process[a7_0x3e99('0x1e')](0x1);}if((_0x1f3305===null||_0x1f3305===void 0x0?void 0x0:_0x1f3305['retryDuring'])&&(_0x1f3305===null||_0x1f3305===void 0x0?void 0x0:_0x1f3305[a7_0x3e99('0xb')])!==0x0&&!_0x42fbcd&&new Date()[a7_0x3e99('0x1f')]()-_0x14f10c['getTime']()>_0x1f3305[a7_0x3e99('0xb')]){yield _0x570505[a7_0x3e99('0x3')]();continue;}if((_0x1f3305===null||_0x1f3305===void 0x0?void 0x0:_0x1f3305[a7_0x3e99('0x20')])!==undefined){if(_0x1f3305[a7_0x3e99('0x20')]===a7_0x3e99('0x19')||_0x1f3305['status']==='NO_FURTHER_TASKS_TO_RUN'){return;}}else if(_0x1f3305['completed']){return;}_0x2e7e64(_0x1f3305[a7_0x3e99('0x4')][a7_0x3e99('0x27')](_0x7b8b9f=>_0x7b8b9f[a7_0x3e99('0x28')])[a7_0x3e99('0x23')](''));if(!_0x1f3305[a7_0x3e99('0x25')]){if(environment_1['VERBOSE_LOGGING']){output['note']({'title':_0x1a5272+a7_0x3e99('0x2d')});}yield _0x570505[a7_0x3e99('0x3')]();_0x3c42a9=0x0;_0x4828f9=[];continue;}_0x570505[a7_0x3e99('0x2')]();_0x42fbcd=!![];if(_0x1f3305[a7_0x3e99('0x12')]){for(const _0x579d74 of _0x1f3305[a7_0x3e99('0x12')]){if(_0x13559d[_0x579d74[a7_0x3e99('0x28')]])continue;output[a7_0x3e99('0x9')]({'title':_0x1a5272+a7_0x3e99('0x1')+_0x579d74[a7_0x3e99('0x28')]+'\x20Hash:\x20'+_0x579d74[a7_0x3e99('0x2a')]+a7_0x3e99('0x14')+_0x579d74['url']});yield _0x1f291e['retrieveAndExtract'](_0x579d74[a7_0x3e99('0x2a')],_0x579d74[a7_0x3e99('0x18')]);_0x13559d[_0x579d74[a7_0x3e99('0x28')]]=!![];}}const _0x28629e=yield _0x46d8bd(_0x1f3305[a7_0x3e99('0x25')],_0x1f3305[a7_0x3e99('0x4')],_0x1f3305[a7_0x3e99('0x21')]);for(const _0xc72ecf of _0x28629e[a7_0x3e99('0x12')]){_0x13559d[_0xc72ecf[a7_0x3e99('0x28')]]=!![];}_0x3c42a9=_0x28629e['completedStatusCode'];_0x4828f9=_0x28629e[a7_0x3e99('0x12')];}});}exports['executeTasks']=executeTasks;
const a7_0x2d4a=['executeTasks','status:\x20','join','../../../utilities/nx-imports-light','value','retryDuring','apply','VERBOSE_LOGGING','length','completedTasks','done','\x20Hash:\x20','Waiter','url','\x20Url:\x20','then','note','taskId','\x20waiting...','NO_MESSAGES_TIMEOUT','executionId','RUN_GROUP_COMPLETED','createUnchangedValueTimeout','wait','retryDuring:\x20','map','\x20downloading\x20artifacts\x20for\x20','\x20seconds','../../../utilities/create-unchanged-value-timeout','error:\x20','hash','\x20fetching\x20tasks...','defineProperty','../../../utilities/environment','executionId:\x20','status','exit','throw','NO_FURTHER_TASKS_TO_RUN','next','error','getTime','criticalErrorMessage','tasks','completed','Distributed\x20Execution\x20Terminated','\x20received\x20an\x20API\x20Response','No\x20new\x20messages\x20received\x20after\x20','../../../utilities/waiter','maxParallel','reset'];(function(_0x417844,_0x2d4a70){const _0x36d930=function(_0x569840){while(--_0x569840){_0x417844['push'](_0x417844['shift']());}};_0x36d930(++_0x2d4a70);}(a7_0x2d4a,0x177));const a7_0x36d9=function(_0x417844,_0x2d4a70){_0x417844=_0x417844-0x0;let _0x36d930=a7_0x2d4a[_0x417844];return _0x36d930;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x15f3cf,_0x1bbb17,_0x5e79cf,_0x3223fe){function _0x246aec(_0x123689){return _0x123689 instanceof _0x5e79cf?_0x123689:new _0x5e79cf(function(_0x55635c){_0x55635c(_0x123689);});}return new(_0x5e79cf||(_0x5e79cf=Promise))(function(_0x341c3d,_0xbeefd){function _0x536422(_0x33360d){try{_0x49b0f4(_0x3223fe[a7_0x36d9('0x15')](_0x33360d));}catch(_0x5d7e4a){_0xbeefd(_0x5d7e4a);}}function _0x75409e(_0x76fb0c){try{_0x49b0f4(_0x3223fe[a7_0x36d9('0x13')](_0x76fb0c));}catch(_0x55f65e){_0xbeefd(_0x55f65e);}}function _0x49b0f4(_0xe5817e){_0xe5817e[a7_0x36d9('0x2b')]?_0x341c3d(_0xe5817e[a7_0x36d9('0x25')]):_0x246aec(_0xe5817e[a7_0x36d9('0x25')])[a7_0x36d9('0x30')](_0x536422,_0x75409e);}_0x49b0f4((_0x3223fe=_0x3223fe[a7_0x36d9('0x27')](_0x15f3cf,_0x1bbb17||[]))['next']());});};Object[a7_0x36d9('0xe')](exports,'__esModule',{'value':!![]});exports[a7_0x36d9('0x21')]=void 0x0;const create_unchanged_value_timeout_1=require(a7_0x36d9('0xa'));const environment_1=require(a7_0x36d9('0xf'));const waiter_1=require(a7_0x36d9('0x1e'));const {output}=require(a7_0x36d9('0x24'));function executeTasks(_0x44d116,_0x3f7506,_0x1e4815,_0x138a63,_0x2e3b3b){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x443b9f=0x0;let _0xc2672b=null;const _0xfd9080=(0x0,create_unchanged_value_timeout_1[a7_0x36d9('0x4')])({'title':a7_0x36d9('0x1d')+environment_1['NO_MESSAGES_TIMEOUT']/0x3e8+a7_0x36d9('0x9'),'timeout':environment_1[a7_0x36d9('0x1')]});const _0x5ac125=new waiter_1[(a7_0x36d9('0x2d'))]();let _0x2c567a=[];const _0xe8e4e=new Date();let _0x355e7b=![];const _0x57cf38={};while(!![]){if(environment_1['VERBOSE_LOGGING']){output['note']({'title':_0x44d116+a7_0x36d9('0xd')});}_0xc2672b=yield _0x3f7506[a7_0x36d9('0x19')](_0xc2672b?_0xc2672b[a7_0x36d9('0x2')]:null,_0x443b9f,_0x2c567a,_0x2e3b3b);if(environment_1[a7_0x36d9('0x28')]){output[a7_0x36d9('0x31')]({'title':_0x44d116+a7_0x36d9('0x1c'),'bodyLines':['completed:\x20'+_0xc2672b[a7_0x36d9('0x1a')],a7_0x36d9('0x22')+_0xc2672b[a7_0x36d9('0x11')],a7_0x36d9('0x6')+_0xc2672b[a7_0x36d9('0x26')],a7_0x36d9('0x10')+_0xc2672b[a7_0x36d9('0x2')],'number\x20of\x20tasks:\x20'+_0xc2672b[a7_0x36d9('0x19')][a7_0x36d9('0x29')],a7_0x36d9('0xb')+_0xc2672b[a7_0x36d9('0x18')],'maxParallel:\x20'+_0xc2672b['maxParallel']]});}if(_0xc2672b['criticalErrorMessage']){output[a7_0x36d9('0x16')]({'title':a7_0x36d9('0x1b'),'bodyLines':['Error:',_0xc2672b[a7_0x36d9('0x18')]]});process[a7_0x36d9('0x12')](0x1);}if((_0xc2672b===null||_0xc2672b===void 0x0?void 0x0:_0xc2672b[a7_0x36d9('0x26')])&&(_0xc2672b===null||_0xc2672b===void 0x0?void 0x0:_0xc2672b['retryDuring'])!==0x0&&!_0x355e7b&&new Date()[a7_0x36d9('0x17')]()-_0xe8e4e[a7_0x36d9('0x17')]()>_0xc2672b[a7_0x36d9('0x26')]){yield _0x5ac125[a7_0x36d9('0x5')]();continue;}if((_0xc2672b===null||_0xc2672b===void 0x0?void 0x0:_0xc2672b[a7_0x36d9('0x11')])!==undefined){if(_0xc2672b[a7_0x36d9('0x11')]===a7_0x36d9('0x3')||_0xc2672b[a7_0x36d9('0x11')]===a7_0x36d9('0x14')){return;}}else if(_0xc2672b[a7_0x36d9('0x1a')]){return;}_0xfd9080(_0xc2672b[a7_0x36d9('0x19')][a7_0x36d9('0x7')](_0xb01eff=>_0xb01eff[a7_0x36d9('0x32')])[a7_0x36d9('0x23')](''));if(!_0xc2672b[a7_0x36d9('0x2')]){if(environment_1['VERBOSE_LOGGING']){output['note']({'title':_0x44d116+a7_0x36d9('0x0')});}yield _0x5ac125['wait']();_0x443b9f=0x0;_0x2c567a=[];continue;}_0x5ac125[a7_0x36d9('0x20')]();_0x355e7b=!![];if(_0xc2672b[a7_0x36d9('0x2a')]){for(const _0x1615b5 of _0xc2672b[a7_0x36d9('0x2a')]){if(_0x57cf38[_0x1615b5[a7_0x36d9('0x32')]])continue;output[a7_0x36d9('0x31')]({'title':_0x44d116+a7_0x36d9('0x8')+_0x1615b5[a7_0x36d9('0x32')]+a7_0x36d9('0x2c')+_0x1615b5[a7_0x36d9('0xc')]+a7_0x36d9('0x2f')+_0x1615b5['url']});yield _0x1e4815['retrieveAndExtract'](_0x1615b5[a7_0x36d9('0xc')],_0x1615b5[a7_0x36d9('0x2e')]);_0x57cf38[_0x1615b5['taskId']]=!![];}}const _0x297aec=yield _0x138a63(_0xc2672b[a7_0x36d9('0x2')],_0xc2672b['tasks'],_0xc2672b[a7_0x36d9('0x1f')]);for(const _0x5086ce of _0x297aec[a7_0x36d9('0x2a')]){_0x57cf38[_0x5086ce[a7_0x36d9('0x32')]]=!![];}_0x443b9f=_0x297aec['completedStatusCode'];_0x2c567a=_0x297aec[a7_0x36d9('0x2a')];}});}exports[a7_0x36d9('0x21')]=executeTasks;

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

const a8_0x5cf7=['__awaiter','NX_PREFIX_OUTPUT','true','taskId','__esModule','throw','yargs-parser','hash','params','taskGraph','configuration','projectName','value','../../../utilities/serializer-overrides','assign','defineProperty','NX_CACHE_FAILURES','done','map','apply','status','env','NX_STREAM_OUTPUT','next','length','projectRoot','values','target','then','invoke','invokeTasksUsingNxImperativeApi','../../../utilities/nx-imports'];(function(_0x43ed9d,_0x5cf737){const _0x5f49be=function(_0x45c87f){while(--_0x45c87f){_0x43ed9d['push'](_0x43ed9d['shift']());}};_0x5f49be(++_0x5cf737);}(a8_0x5cf7,0x181));const a8_0x5f49=function(_0x43ed9d,_0x5cf737){_0x43ed9d=_0x43ed9d-0x0;let _0x5f49be=a8_0x5cf7[_0x43ed9d];return _0x5f49be;};'use strict';var __awaiter=this&&this[a8_0x5f49('0x1f')]||function(_0x4a5da0,_0x3100b8,_0x266077,_0x462d16){function _0x5d3cc9(_0x3de785){return _0x3de785 instanceof _0x266077?_0x3de785:new _0x266077(function(_0x3555f6){_0x3555f6(_0x3de785);});}return new(_0x266077||(_0x266077=Promise))(function(_0x4a55f8,_0xafc16c){function _0x1399e3(_0x1b4669){try{_0x1b20e2(_0x462d16[a8_0x5f49('0x16')](_0x1b4669));}catch(_0x5deff9){_0xafc16c(_0x5deff9);}}function _0x5b4376(_0x42d6f3){try{_0x1b20e2(_0x462d16[a8_0x5f49('0x4')](_0x42d6f3));}catch(_0x4c46bc){_0xafc16c(_0x4c46bc);}}function _0x1b20e2(_0x500066){_0x500066[a8_0x5f49('0x10')]?_0x4a55f8(_0x500066[a8_0x5f49('0xb')]):_0x5d3cc9(_0x500066[a8_0x5f49('0xb')])[a8_0x5f49('0x1b')](_0x1399e3,_0x5b4376);}_0x1b20e2((_0x462d16=_0x462d16[a8_0x5f49('0x12')](_0x4a5da0,_0x3100b8||[]))['next']());});};Object[a8_0x5f49('0xe')](exports,a8_0x5f49('0x3'),{'value':!![]});exports[a8_0x5f49('0x1d')]=void 0x0;const parser=require(a8_0x5f49('0x5'));const serializer_overrides_1=require(a8_0x5f49('0xc'));const {initTasksRunner}=require(a8_0x5f49('0x1e'));function invokeTasksUsingNxImperativeApi(_0x2b74ae){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3bff8e=yield initTasksRunner(_0x2b74ae);return(_0x274786,_0x251645,_0x4cd4bd)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4fa71d=_0x251645['map'](_0x26996d=>{const _0x480bb3=parser(_0x26996d[a8_0x5f49('0x7')],{'configuration':{'camel-case-expansion':![],'dot-notation':!![]}});const _0x415ebf=(0x0,serializer_overrides_1['unparse'])(_0x480bb3);if(_0x480bb3['_'][a8_0x5f49('0x17')]==0x0){delete _0x480bb3['_'];}return{'id':_0x26996d[a8_0x5f49('0x2')],'target':{'project':_0x26996d[a8_0x5f49('0xa')],'target':_0x26996d[a8_0x5f49('0x1a')],'configuration':_0x26996d[a8_0x5f49('0x9')]},'overrides':Object[a8_0x5f49('0xd')](Object[a8_0x5f49('0xd')]({},_0x480bb3),{'__overrides_unparsed__':_0x415ebf}),'projectRoot':_0x26996d[a8_0x5f49('0x18')]};});process[a8_0x5f49('0x14')][a8_0x5f49('0xf')]=a8_0x5f49('0x1');process[a8_0x5f49('0x14')]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID']=_0x274786;process[a8_0x5f49('0x14')][a8_0x5f49('0x15')]='true';process[a8_0x5f49('0x14')][a8_0x5f49('0x0')]='true';const _0x365a4d=yield _0x3bff8e[a8_0x5f49('0x1c')]({'tasks':_0x4fa71d,'parallel':_0x4cd4bd});const _0x1a56d9=Object[a8_0x5f49('0x19')](_0x365a4d[a8_0x5f49('0x8')]['tasks']);return{'completedTasks':_0x1a56d9[a8_0x5f49('0x11')](_0x3752aa=>({'taskId':_0x3752aa['id'],'hash':_0x3752aa[a8_0x5f49('0x6')]})),'completedStatusCode':_0x365a4d[a8_0x5f49('0x13')]};});});}exports['invokeTasksUsingNxImperativeApi']=invokeTasksUsingNxImperativeApi;
const a8_0xb8bb=['projectName','__awaiter','invokeTasksUsingNxImperativeApi','status','assign','taskGraph','target','tasks','yargs-parser','../../../utilities/serializer-overrides','NX_PREFIX_OUTPUT','invoke','true','apply','value','NX_STREAM_OUTPUT','then','unparse','defineProperty','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','params','length','env','next','../../../utilities/nx-imports','NX_CACHE_FAILURES','map','done','configuration','taskId','__esModule'];(function(_0xcf932a,_0xb8bbcc){const _0x1c0786=function(_0x391751){while(--_0x391751){_0xcf932a['push'](_0xcf932a['shift']());}};_0x1c0786(++_0xb8bbcc);}(a8_0xb8bb,0x9a));const a8_0x1c07=function(_0xcf932a,_0xb8bbcc){_0xcf932a=_0xcf932a-0x0;let _0x1c0786=a8_0xb8bb[_0xcf932a];return _0x1c0786;};'use strict';var __awaiter=this&&this[a8_0x1c07('0x2')]||function(_0x7d48b7,_0x15c916,_0xcf1950,_0x46c75b){function _0x228e42(_0x3f490e){return _0x3f490e instanceof _0xcf1950?_0x3f490e:new _0xcf1950(function(_0x2c11d9){_0x2c11d9(_0x3f490e);});}return new(_0xcf1950||(_0xcf1950=Promise))(function(_0x162c73,_0x102fda){function _0x1c0105(_0x3f2710){try{_0x35083f(_0x46c75b[a8_0x1c07('0x18')](_0x3f2710));}catch(_0x94411e){_0x102fda(_0x94411e);}}function _0x5dbfab(_0x434c84){try{_0x35083f(_0x46c75b['throw'](_0x434c84));}catch(_0x2c6bf4){_0x102fda(_0x2c6bf4);}}function _0x35083f(_0x33a986){_0x33a986[a8_0x1c07('0x1c')]?_0x162c73(_0x33a986[a8_0x1c07('0xf')]):_0x228e42(_0x33a986['value'])[a8_0x1c07('0x11')](_0x1c0105,_0x5dbfab);}_0x35083f((_0x46c75b=_0x46c75b[a8_0x1c07('0xe')](_0x7d48b7,_0x15c916||[]))[a8_0x1c07('0x18')]());});};Object[a8_0x1c07('0x13')](exports,a8_0x1c07('0x0'),{'value':!![]});exports[a8_0x1c07('0x3')]=void 0x0;const parser=require(a8_0x1c07('0x9'));const serializer_overrides_1=require(a8_0x1c07('0xa'));const {initTasksRunner}=require(a8_0x1c07('0x19'));function invokeTasksUsingNxImperativeApi(_0x1aaaf7){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x432b80=yield initTasksRunner(_0x1aaaf7);return(_0x4116a7,_0x1c7a47,_0x2cee4b)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x506713=_0x1c7a47[a8_0x1c07('0x1b')](_0x53044b=>{const _0x58370b=parser(_0x53044b[a8_0x1c07('0x15')],{'configuration':{'camel-case-expansion':![],'dot-notation':!![]}});const _0x5c37c4=(0x0,serializer_overrides_1[a8_0x1c07('0x12')])(_0x58370b);if(_0x58370b['_'][a8_0x1c07('0x16')]==0x0){delete _0x58370b['_'];}return{'id':_0x53044b[a8_0x1c07('0x1e')],'target':{'project':_0x53044b[a8_0x1c07('0x1')],'target':_0x53044b[a8_0x1c07('0x7')],'configuration':_0x53044b[a8_0x1c07('0x1d')]},'overrides':Object['assign'](Object[a8_0x1c07('0x5')]({},_0x58370b),{'__overrides_unparsed__':_0x5c37c4}),'projectRoot':_0x53044b['projectRoot']};});process[a8_0x1c07('0x17')][a8_0x1c07('0x1a')]=a8_0x1c07('0xd');process[a8_0x1c07('0x17')][a8_0x1c07('0x14')]=_0x4116a7;process[a8_0x1c07('0x17')][a8_0x1c07('0x10')]=a8_0x1c07('0xd');process[a8_0x1c07('0x17')][a8_0x1c07('0xb')]=a8_0x1c07('0xd');const _0xa4a07d=yield _0x432b80[a8_0x1c07('0xc')]({'tasks':_0x506713,'parallel':_0x2cee4b});const _0x5606c6=Object['values'](_0xa4a07d[a8_0x1c07('0x6')][a8_0x1c07('0x8')]);return{'completedTasks':_0x5606c6['map'](_0x2b0a25=>({'taskId':_0x2b0a25['id'],'hash':_0x2b0a25['hash']})),'completedStatusCode':_0xa4a07d[a8_0x1c07('0x4')]};});});}exports['invokeTasksUsingNxImperativeApi']=invokeTasksUsingNxImperativeApi;

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

const a9_0x193c=['npx\x20nx\x20run-many\x20--target=','true','find','\x20--projects=','length','params','throw','--configuration=','then','configuration','forEach','unlinkSync','__awaiter','../../../utilities/environment','__esModule','Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20',').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.','Executing:\x20\x27','/tasks-hashes-','readFileSync','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','target','done','execSync','assign','projects','inherit','child_process','value','next','push','VERBOSE_LOGGING','note','../../../utilities/nx-imports-light','invokeTasksUsingRunMany','env','ignore','status','../../../utilities/nx-imports'];(function(_0x3a54e4,_0x193cf5){const _0x293830=function(_0x2a9685){while(--_0x2a9685){_0x3a54e4['push'](_0x3a54e4['shift']());}};_0x293830(++_0x193cf5);}(a9_0x193c,0x159));const a9_0x2938=function(_0x3a54e4,_0x193cf5){_0x3a54e4=_0x3a54e4-0x0;let _0x293830=a9_0x193c[_0x3a54e4];return _0x293830;};'use strict';var __awaiter=this&&this[a9_0x2938('0x12')]||function(_0x250bac,_0x49f4e6,_0x254dad,_0x94c0e7){function _0x24550b(_0x36e61e){return _0x36e61e instanceof _0x254dad?_0x36e61e:new _0x254dad(function(_0x291fa5){_0x291fa5(_0x36e61e);});}return new(_0x254dad||(_0x254dad=Promise))(function(_0x33bc99,_0x1877cd){function _0x40c797(_0x461515){try{_0x41fb1(_0x94c0e7[a9_0x2938('0x23')](_0x461515));}catch(_0xc424ee){_0x1877cd(_0xc424ee);}}function _0x234f2c(_0x2bf4d0){try{_0x41fb1(_0x94c0e7[a9_0x2938('0xc')](_0x2bf4d0));}catch(_0x470bc7){_0x1877cd(_0x470bc7);}}function _0x41fb1(_0x38188a){_0x38188a[a9_0x2938('0x1c')]?_0x33bc99(_0x38188a['value']):_0x24550b(_0x38188a[a9_0x2938('0x22')])[a9_0x2938('0xe')](_0x40c797,_0x234f2c);}_0x41fb1((_0x94c0e7=_0x94c0e7['apply'](_0x250bac,_0x49f4e6||[]))[a9_0x2938('0x23')]());});};Object['defineProperty'](exports,a9_0x2938('0x14'),{'value':!![]});exports['invokeTasksUsingRunMany']=void 0x0;const child_process_1=require(a9_0x2938('0x21'));const fs_1=require('fs');const environment_1=require(a9_0x2938('0x13'));const {output}=require(a9_0x2938('0x0'));const {cacheDirectory}=require(a9_0x2938('0x5'));function invokeTasksUsingRunMany(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x15a5b1=completedTasksReader();return function _0x13421c(_0x39c58a,_0x107489,_0x5409c3){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x47ebf9=0x0;const _0x341c80=[];for(const _0x27a1c9 of groupByTarget(_0x107489)){const _0x41d1cf=_0x27a1c9[a9_0x2938('0xf')]?a9_0x2938('0xd')+_0x27a1c9[a9_0x2938('0xf')]:'';const _0x3928b0=_0x5409c3>0x1?'\x20--parallel\x20--max-parallel='+_0x5409c3:'';const _0x41c84e=a9_0x2938('0x6')+_0x27a1c9[a9_0x2938('0x1b')]+'\x20'+_0x41d1cf+a9_0x2938('0x9')+_0x27a1c9[a9_0x2938('0x1f')]['join'](',')+'\x20'+_0x27a1c9[a9_0x2938('0xb')]+_0x3928b0;if(environment_1[a9_0x2938('0x25')]){output[a9_0x2938('0x26')]({'title':a9_0x2938('0x17')+_0x41c84e+'\x27'});}try{(0x0,child_process_1[a9_0x2938('0x1d')])(_0x41c84e,{'stdio':[a9_0x2938('0x3'),a9_0x2938('0x20'),a9_0x2938('0x20')],'env':Object[a9_0x2938('0x1e')](Object[a9_0x2938('0x1e')]({},process[a9_0x2938('0x2')]),{'NX_CACHE_FAILURES':a9_0x2938('0x7'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x39c58a,'NX_STREAM_OUTPUT':a9_0x2938('0x7'),'NX_PREFIX_OUTPUT':a9_0x2938('0x7')})});_0x341c80[a9_0x2938('0x24')](..._0x15a5b1(_0x39c58a));}catch(_0x102cd5){if(_0x102cd5[a9_0x2938('0x4')]===environment_1[a9_0x2938('0x1a')]){throw _0x102cd5;}else{_0x47ebf9=0x1;_0x341c80[a9_0x2938('0x24')](..._0x15a5b1(_0x39c58a));}}}return{'completedStatusCode':_0x47ebf9,'completedTasks':_0x341c80};});};});}exports[a9_0x2938('0x1')]=invokeTasksUsingRunMany;function groupByTarget(_0x3654ff){const _0x5f290d=[];_0x3654ff[a9_0x2938('0x10')](_0x3e8259=>{const _0x5b9c48=_0x5f290d[a9_0x2938('0x8')](_0x5ba356=>_0x5ba356[a9_0x2938('0x1b')]===_0x3e8259[a9_0x2938('0x1b')]&&_0x5ba356[a9_0x2938('0xf')]===_0x3e8259[a9_0x2938('0xf')]);if(_0x5b9c48){_0x5b9c48[a9_0x2938('0x1f')][a9_0x2938('0x24')](_0x3e8259['projectName']);}else{_0x5f290d['push']({'target':_0x3e8259[a9_0x2938('0x1b')],'projects':[_0x3e8259['projectName']],'params':_0x3e8259[a9_0x2938('0xb')],'configuration':_0x3e8259['configuration']});}});return _0x5f290d;}function completedTasksReader(){return _0x134a7b=>{const _0x5135c1=a9_0x2938('0x15')+_0x134a7b+a9_0x2938('0x16');let _0x4acf59;try{const _0x19085b=cacheDirectory+a9_0x2938('0x18')+_0x134a7b;_0x4acf59=JSON['parse']((0x0,fs_1[a9_0x2938('0x19')])(_0x19085b)['toString']());(0x0,fs_1[a9_0x2938('0x11')])(_0x19085b);}catch(_0x276ff7){throw new Error(_0x5135c1);}if(_0x4acf59[a9_0x2938('0xa')]==0x0){throw new Error(_0x5135c1);}return _0x4acf59;};}
const a9_0x2226=['push','true','Executing:\x20\x27','then','assign','configuration','invokeTasksUsingRunMany','status','projectName','--configuration=','\x20--parallel\x20--max-parallel=','\x20--projects=','/tasks-hashes-','../../../utilities/nx-imports-light','unlinkSync','apply','execSync','ignore','npx\x20nx\x20run-many\x20--target=','child_process','value','next','target','VERBOSE_LOGGING','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','defineProperty','__awaiter','projects','params','../../../utilities/environment','__esModule','env'];(function(_0xc5471a,_0x22263e){const _0x39283c=function(_0x2b7508){while(--_0x2b7508){_0xc5471a['push'](_0xc5471a['shift']());}};_0x39283c(++_0x22263e);}(a9_0x2226,0x97));const a9_0x3928=function(_0xc5471a,_0x22263e){_0xc5471a=_0xc5471a-0x0;let _0x39283c=a9_0x2226[_0xc5471a];return _0x39283c;};'use strict';var __awaiter=this&&this[a9_0x3928('0x3')]||function(_0x49a17b,_0x14abb6,_0x478ab5,_0x4469d3){function _0xbf4f38(_0x371df2){return _0x371df2 instanceof _0x478ab5?_0x371df2:new _0x478ab5(function(_0xbd73d1){_0xbd73d1(_0x371df2);});}return new(_0x478ab5||(_0x478ab5=Promise))(function(_0x462870,_0x121562){function _0x52e427(_0x2c1690){try{_0x3699eb(_0x4469d3[a9_0x3928('0x1e')](_0x2c1690));}catch(_0x3f5337){_0x121562(_0x3f5337);}}function _0x1ba8f4(_0x58dc6c){try{_0x3699eb(_0x4469d3['throw'](_0x58dc6c));}catch(_0x428702){_0x121562(_0x428702);}}function _0x3699eb(_0x26c867){_0x26c867['done']?_0x462870(_0x26c867[a9_0x3928('0x1d')]):_0xbf4f38(_0x26c867[a9_0x3928('0x1d')])[a9_0x3928('0xc')](_0x52e427,_0x1ba8f4);}_0x3699eb((_0x4469d3=_0x4469d3[a9_0x3928('0x18')](_0x49a17b,_0x14abb6||[]))[a9_0x3928('0x1e')]());});};Object[a9_0x3928('0x2')](exports,a9_0x3928('0x7'),{'value':!![]});exports[a9_0x3928('0xf')]=void 0x0;const child_process_1=require(a9_0x3928('0x1c'));const fs_1=require('fs');const environment_1=require(a9_0x3928('0x6'));const {output}=require(a9_0x3928('0x16'));const {cacheDirectory}=require('../../../utilities/nx-imports');function invokeTasksUsingRunMany(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x414e7e=completedTasksReader();return function _0x2608a4(_0x1854be,_0x214da3,_0x403786){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x5cc93e=0x0;const _0x42c9d0=[];for(const _0x277321 of groupByTarget(_0x214da3)){const _0xba760b=_0x277321['configuration']?a9_0x3928('0x12')+_0x277321['configuration']:'';const _0x475802=_0x403786>0x1?a9_0x3928('0x13')+_0x403786:'';const _0x20e289=a9_0x3928('0x1b')+_0x277321[a9_0x3928('0x1f')]+'\x20'+_0xba760b+a9_0x3928('0x14')+_0x277321[a9_0x3928('0x4')]['join'](',')+'\x20'+_0x277321[a9_0x3928('0x5')]+_0x475802;if(environment_1[a9_0x3928('0x0')]){output['note']({'title':a9_0x3928('0xb')+_0x20e289+'\x27'});}try{(0x0,child_process_1[a9_0x3928('0x19')])(_0x20e289,{'stdio':[a9_0x3928('0x1a'),'inherit','inherit'],'env':Object['assign'](Object[a9_0x3928('0xd')]({},process[a9_0x3928('0x8')]),{'NX_CACHE_FAILURES':'true','NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x1854be,'NX_STREAM_OUTPUT':a9_0x3928('0xa'),'NX_PREFIX_OUTPUT':a9_0x3928('0xa')})});_0x42c9d0[a9_0x3928('0x9')](..._0x414e7e(_0x1854be));}catch(_0x5df838){if(_0x5df838[a9_0x3928('0x10')]===environment_1[a9_0x3928('0x1')]){throw _0x5df838;}else{_0x5cc93e=0x1;_0x42c9d0[a9_0x3928('0x9')](..._0x414e7e(_0x1854be));}}}return{'completedStatusCode':_0x5cc93e,'completedTasks':_0x42c9d0};});};});}exports[a9_0x3928('0xf')]=invokeTasksUsingRunMany;function groupByTarget(_0x2640f5){const _0x220141=[];_0x2640f5['forEach'](_0x25bd37=>{const _0x432788=_0x220141['find'](_0x56a280=>_0x56a280[a9_0x3928('0x1f')]===_0x25bd37[a9_0x3928('0x1f')]&&_0x56a280[a9_0x3928('0xe')]===_0x25bd37[a9_0x3928('0xe')]);if(_0x432788){_0x432788[a9_0x3928('0x4')]['push'](_0x25bd37[a9_0x3928('0x11')]);}else{_0x220141['push']({'target':_0x25bd37[a9_0x3928('0x1f')],'projects':[_0x25bd37[a9_0x3928('0x11')]],'params':_0x25bd37[a9_0x3928('0x5')],'configuration':_0x25bd37[a9_0x3928('0xe')]});}});return _0x220141;}function completedTasksReader(){return _0x21ea10=>{const _0x5e5ef2='Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20'+_0x21ea10+').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.';let _0x226955;try{const _0x11b66b=cacheDirectory+a9_0x3928('0x15')+_0x21ea10;_0x226955=JSON['parse']((0x0,fs_1['readFileSync'])(_0x11b66b)['toString']());(0x0,fs_1[a9_0x3928('0x17')])(_0x11b66b);}catch(_0x5b2ca3){throw new Error(_0x5e5ef2);}if(_0x226955['length']==0x0){throw new Error(_0x5e5ef2);}return _0x226955;};}

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

const a10_0x3a64=['false','serializeOverrides','completeRunGroup','../../../utilities/environment','response','parallel','../../../utilities/axios','axiosMultipleTries','apiAxiosInstance','target','enabled','apply','runGroup:\x20','throw','error','createApiAxiosInstance','mapRespToPerfEntry','axiosException','parseCommand','hash','recordMetric','VERBOSE_LOGGING','maxParallel','data','../../../utilities/nx-imports-light','RUNNER_FAILURE_PERF_ENTRY','status','/nx-cloud/executions/status','createMetricRecorder','true','error:\x20','post','createStartRequest','../../../utilities/metric-logger','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','Starting\x20a\x20distributed\x20execution','next','agentCount','dteStatus','value','then','note','__awaiter','stopAgentsOnFailure','completeRunGroupWithError','Completing\x20with\x20an\x20error','map','NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','defineProperty','projectRoot','ciExecutionEnv:\x20','done','exit','dteStart'];(function(_0x5680bf,_0x3a6465){const _0x5dc48c=function(_0x29cfb0){while(--_0x29cfb0){_0x5680bf['push'](_0x5680bf['shift']());}};_0x5dc48c(++_0x3a6465);}(a10_0x3a64,0x1cf));const a10_0x5dc4=function(_0x5680bf,_0x3a6465){_0x5680bf=_0x5680bf-0x0;let _0x5dc48c=a10_0x3a64[_0x5680bf];return _0x5dc48c;};'use strict';var __awaiter=this&&this[a10_0x5dc4('0x13')]||function(_0x532c38,_0xd9cd25,_0x58c1d5,_0x210532){function _0x5e6a34(_0x36fc5b){return _0x36fc5b instanceof _0x58c1d5?_0x36fc5b:new _0x58c1d5(function(_0x3adfa7){_0x3adfa7(_0x36fc5b);});}return new(_0x58c1d5||(_0x58c1d5=Promise))(function(_0x5defd7,_0x2a9827){function _0x107f46(_0xcc71af){try{_0x5b6605(_0x210532[a10_0x5dc4('0xd')](_0xcc71af));}catch(_0x23b935){_0x2a9827(_0x23b935);}}function _0x270919(_0x627cb){try{_0x5b6605(_0x210532[a10_0x5dc4('0x2d')](_0x627cb));}catch(_0x10b18d){_0x2a9827(_0x10b18d);}}function _0x5b6605(_0x5d5798){_0x5d5798[a10_0x5dc4('0x1d')]?_0x5defd7(_0x5d5798[a10_0x5dc4('0x10')]):_0x5e6a34(_0x5d5798[a10_0x5dc4('0x10')])[a10_0x5dc4('0x11')](_0x107f46,_0x270919);}_0x5b6605((_0x210532=_0x210532[a10_0x5dc4('0x2b')](_0x532c38,_0xd9cd25||[]))['next']());});};Object[a10_0x5dc4('0x1a')](exports,'__esModule',{'value':!![]});exports[a10_0x5dc4('0x9')]=exports['DistributedExecutionApi']=void 0x0;const axios_1=require(a10_0x5dc4('0x26'));const environment_1=require(a10_0x5dc4('0x23'));const metric_logger_1=require(a10_0x5dc4('0xa'));const serializer_overrides_1=require('../../../utilities/serializer-overrides');const {output}=require(a10_0x5dc4('0x1'));class DistributedExecutionApi{constructor(_0x1a2743){this[a10_0x5dc4('0x28')]=(0x0,axios_1[a10_0x5dc4('0x2f')])(_0x1a2743);}['start'](_0x51162c){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x315b9a;const _0x498a4a=(0x0,metric_logger_1['createMetricRecorder'])(a10_0x5dc4('0x1f'));let _0x4af33f;if(environment_1[a10_0x5dc4('0x35')]){output['note']({'title':a10_0x5dc4('0xc'),'bodyLines':[JSON['stringify'](_0x51162c,null,0x2)]});}try{_0x4af33f=yield(0x0,axios_1[a10_0x5dc4('0x27')])(()=>this[a10_0x5dc4('0x28')][a10_0x5dc4('0x8')]('/nx-cloud/executions/start',_0x51162c));_0x498a4a[a10_0x5dc4('0x34')]((0x0,metric_logger_1[a10_0x5dc4('0x30')])(_0x4af33f));}catch(_0x2d135a){_0x498a4a[a10_0x5dc4('0x34')](((_0x315b9a=_0x2d135a===null||_0x2d135a===void 0x0?void 0x0:_0x2d135a[a10_0x5dc4('0x31')])===null||_0x315b9a===void 0x0?void 0x0:_0x315b9a[a10_0x5dc4('0x24')])?(0x0,metric_logger_1[a10_0x5dc4('0x30')])(_0x2d135a[a10_0x5dc4('0x31')][a10_0x5dc4('0x24')]):metric_logger_1[a10_0x5dc4('0x2')]);throw _0x2d135a;}if(!_0x4af33f['data'][a10_0x5dc4('0x2a')]){throw new Error(a10_0x5dc4('0x19'));}if(_0x4af33f[a10_0x5dc4('0x0')][a10_0x5dc4('0x2e')]){throw new Error(_0x4af33f['data'][a10_0x5dc4('0x2e')]);}return _0x4af33f['data']['id'];});}[a10_0x5dc4('0x3')](_0x22b48f){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x40f673;const _0x51b976=(0x0,metric_logger_1[a10_0x5dc4('0x5')])(a10_0x5dc4('0xf'));try{const _0x1cc9f6=yield(0x0,axios_1[a10_0x5dc4('0x27')])(()=>this[a10_0x5dc4('0x28')]['post'](a10_0x5dc4('0x4'),{'id':_0x22b48f}));_0x51b976[a10_0x5dc4('0x34')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x1cc9f6));return _0x1cc9f6[a10_0x5dc4('0x0')];}catch(_0x58bfa9){_0x51b976['recordMetric'](((_0x40f673=_0x58bfa9===null||_0x58bfa9===void 0x0?void 0x0:_0x58bfa9['axiosException'])===null||_0x40f673===void 0x0?void 0x0:_0x40f673[a10_0x5dc4('0x24')])?(0x0,metric_logger_1[a10_0x5dc4('0x30')])(_0x58bfa9[a10_0x5dc4('0x31')][a10_0x5dc4('0x24')]):metric_logger_1[a10_0x5dc4('0x2')]);output[a10_0x5dc4('0x2e')]({'title':_0x58bfa9['message']});process[a10_0x5dc4('0x1e')](0x1);}});}[a10_0x5dc4('0x15')](_0x5e9f79,_0x3fcbb6,_0x628555,_0x2c3ab3,_0x4fc6ac){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x58460b;const _0x23d913=(0x0,metric_logger_1[a10_0x5dc4('0x5')])(a10_0x5dc4('0x22'));if(environment_1['VERBOSE_LOGGING']){output[a10_0x5dc4('0x12')]({'title':a10_0x5dc4('0x16'),'bodyLines':['ciExecutionId:\x20'+_0x628555,a10_0x5dc4('0x1c')+_0x2c3ab3,a10_0x5dc4('0x2c')+_0x3fcbb6,a10_0x5dc4('0x7')+_0x4fc6ac]});}try{const _0x573c18=yield(0x0,axios_1[a10_0x5dc4('0x27')])(()=>this['apiAxiosInstance'][a10_0x5dc4('0x8')]('/nx-cloud/executions/complete-run-group',{'branch':_0x5e9f79,'runGroup':_0x3fcbb6,'ciExecutionId':_0x628555,'ciExecutionEnv':_0x2c3ab3,'criticalErrorMessage':_0x4fc6ac}),0x3);_0x23d913['recordMetric']((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x573c18));}catch(_0x51ec0d){_0x23d913[a10_0x5dc4('0x34')](((_0x58460b=_0x51ec0d===null||_0x51ec0d===void 0x0?void 0x0:_0x51ec0d[a10_0x5dc4('0x31')])===null||_0x58460b===void 0x0?void 0x0:_0x58460b[a10_0x5dc4('0x24')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x51ec0d[a10_0x5dc4('0x31')][a10_0x5dc4('0x24')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);}});}}exports['DistributedExecutionApi']=DistributedExecutionApi;function createStartRequest(_0x6f3a9a,_0x5f503e,_0x52ad51,_0xb8543d,_0x5b3302,_0x166f05,_0x32a3c7){const _0x45e515=_0x5b3302[a10_0x5dc4('0x17')](_0x430cdf=>{return _0x430cdf['map'](_0x221a06=>{return{'taskId':_0x221a06['id'],'hash':_0x221a06[a10_0x5dc4('0x33')],'projectName':_0x221a06['target']['project'],'target':_0x221a06[a10_0x5dc4('0x29')][a10_0x5dc4('0x29')],'configuration':_0x221a06[a10_0x5dc4('0x29')]['configuration']||null,'params':(0x0,serializer_overrides_1[a10_0x5dc4('0x21')])(_0x221a06),'projectRoot':_0x221a06[a10_0x5dc4('0x1b')]};});});const _0xf4506={'command':(0x0,environment_1[a10_0x5dc4('0x32')])(),'branch':_0x6f3a9a,'runGroup':_0x5f503e,'ciExecutionId':_0x52ad51,'ciExecutionEnv':_0xb8543d,'tasks':_0x45e515,'maxParallel':calculateMaxParallel(_0x166f05),'commitSha':_0x32a3c7};if(environment_1[a10_0x5dc4('0xb')]){_0xf4506[a10_0x5dc4('0xe')]=environment_1[a10_0x5dc4('0xb')];}if(!environment_1[a10_0x5dc4('0x18')]){_0xf4506[a10_0x5dc4('0x14')]=![];}return _0xf4506;}exports[a10_0x5dc4('0x9')]=createStartRequest;function calculateMaxParallel(_0x413f9a){if(_0x413f9a['parallel']===a10_0x5dc4('0x20')||_0x413f9a[a10_0x5dc4('0x25')]===![]){return 0x1;}else if(_0x413f9a[a10_0x5dc4('0x25')]===a10_0x5dc4('0x6')||_0x413f9a[a10_0x5dc4('0x25')]===!![]){return Number(_0x413f9a[a10_0x5dc4('0x36')]||0x3);}else if(_0x413f9a[a10_0x5dc4('0x25')]===undefined){return _0x413f9a[a10_0x5dc4('0x36')]?Number(_0x413f9a[a10_0x5dc4('0x36')]):0x3;}else{return Number(_0x413f9a[a10_0x5dc4('0x25')])||0x3;}}
const a10_0x1742=['runGroup:\x20','status','defineProperty','dteStart','parseCommand','hash','enabled','__esModule','message','then','createMetricRecorder','target','value','createApiAxiosInstance','../../../utilities/environment','DistributedExecutionApi','completeRunGroup','parallel','VERBOSE_LOGGING','map','dteStatus','false','/nx-cloud/executions/complete-run-group','axiosException','completeRunGroupWithError','createStartRequest','data','recordMetric','error','error:\x20','RUNNER_FAILURE_PERF_ENTRY','axiosMultipleTries','../../../utilities/axios','mapRespToPerfEntry','post','ciExecutionEnv:\x20','apiAxiosInstance','apply','response','stopAgentsOnFailure','__awaiter','configuration','maxParallel','note','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','start','Completing\x20with\x20an\x20error','projectRoot','../../../utilities/metric-logger','Starting\x20a\x20distributed\x20execution','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','true','stringify'];(function(_0x58f1ea,_0x17423c){const _0x1c9507=function(_0x172589){while(--_0x172589){_0x58f1ea['push'](_0x58f1ea['shift']());}};_0x1c9507(++_0x17423c);}(a10_0x1742,0x1d9));const a10_0x1c95=function(_0x58f1ea,_0x17423c){_0x58f1ea=_0x58f1ea-0x0;let _0x1c9507=a10_0x1742[_0x58f1ea];return _0x1c9507;};'use strict';var __awaiter=this&&this[a10_0x1c95('0x2c')]||function(_0x5b8b43,_0x1e77d0,_0x25f719,_0x11bdc6){function _0x731486(_0x788452){return _0x788452 instanceof _0x25f719?_0x788452:new _0x25f719(function(_0x11d228){_0x11d228(_0x788452);});}return new(_0x25f719||(_0x25f719=Promise))(function(_0x1b32a2,_0xfdfde5){function _0x2d6971(_0x300378){try{_0x5133ad(_0x11bdc6['next'](_0x300378));}catch(_0x40f534){_0xfdfde5(_0x40f534);}}function _0x2e483d(_0x46e56e){try{_0x5133ad(_0x11bdc6['throw'](_0x46e56e));}catch(_0x17cc33){_0xfdfde5(_0x17cc33);}}function _0x5133ad(_0x5abb05){_0x5abb05['done']?_0x1b32a2(_0x5abb05[a10_0x1c95('0x10')]):_0x731486(_0x5abb05[a10_0x1c95('0x10')])[a10_0x1c95('0xd')](_0x2d6971,_0x2e483d);}_0x5133ad((_0x11bdc6=_0x11bdc6[a10_0x1c95('0x29')](_0x5b8b43,_0x1e77d0||[]))['next']());});};Object[a10_0x1c95('0x6')](exports,a10_0x1c95('0xb'),{'value':!![]});exports[a10_0x1c95('0x1d')]=exports[a10_0x1c95('0x13')]=void 0x0;const axios_1=require(a10_0x1c95('0x24'));const environment_1=require(a10_0x1c95('0x12'));const metric_logger_1=require(a10_0x1c95('0x34'));const serializer_overrides_1=require('../../../utilities/serializer-overrides');const {output}=require('../../../utilities/nx-imports-light');class DistributedExecutionApi{constructor(_0x120157){this[a10_0x1c95('0x28')]=(0x0,axios_1[a10_0x1c95('0x11')])(_0x120157);}[a10_0x1c95('0x31')](_0x366488){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x19a8a0;const _0xa24ed0=(0x0,metric_logger_1['createMetricRecorder'])(a10_0x1c95('0x7'));let _0xa34308;if(environment_1[a10_0x1c95('0x16')]){output[a10_0x1c95('0x2f')]({'title':a10_0x1c95('0x0'),'bodyLines':[JSON[a10_0x1c95('0x3')](_0x366488,null,0x2)]});}try{_0xa34308=yield(0x0,axios_1[a10_0x1c95('0x23')])(()=>this[a10_0x1c95('0x28')][a10_0x1c95('0x26')]('/nx-cloud/executions/start',_0x366488));_0xa24ed0[a10_0x1c95('0x1f')]((0x0,metric_logger_1[a10_0x1c95('0x25')])(_0xa34308));}catch(_0x132f29){_0xa24ed0['recordMetric'](((_0x19a8a0=_0x132f29===null||_0x132f29===void 0x0?void 0x0:_0x132f29['axiosException'])===null||_0x19a8a0===void 0x0?void 0x0:_0x19a8a0['response'])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x132f29[a10_0x1c95('0x1b')][a10_0x1c95('0x2a')]):metric_logger_1[a10_0x1c95('0x22')]);throw _0x132f29;}if(!_0xa34308[a10_0x1c95('0x1e')][a10_0x1c95('0xa')]){throw new Error(a10_0x1c95('0x1'));}if(_0xa34308[a10_0x1c95('0x1e')][a10_0x1c95('0x20')]){throw new Error(_0xa34308['data'][a10_0x1c95('0x20')]);}return _0xa34308[a10_0x1c95('0x1e')]['id'];});}[a10_0x1c95('0x5')](_0x169525){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x2ff59e;const _0x1f8701=(0x0,metric_logger_1[a10_0x1c95('0xe')])(a10_0x1c95('0x18'));try{const _0x4b1edb=yield(0x0,axios_1[a10_0x1c95('0x23')])(()=>this['apiAxiosInstance'][a10_0x1c95('0x26')]('/nx-cloud/executions/status',{'id':_0x169525}));_0x1f8701[a10_0x1c95('0x1f')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x4b1edb));return _0x4b1edb[a10_0x1c95('0x1e')];}catch(_0x3a799c){_0x1f8701[a10_0x1c95('0x1f')](((_0x2ff59e=_0x3a799c===null||_0x3a799c===void 0x0?void 0x0:_0x3a799c['axiosException'])===null||_0x2ff59e===void 0x0?void 0x0:_0x2ff59e[a10_0x1c95('0x2a')])?(0x0,metric_logger_1[a10_0x1c95('0x25')])(_0x3a799c[a10_0x1c95('0x1b')][a10_0x1c95('0x2a')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);output[a10_0x1c95('0x20')]({'title':_0x3a799c[a10_0x1c95('0xc')]});process['exit'](0x1);}});}[a10_0x1c95('0x1c')](_0x37a29c,_0x7acfc2,_0x4b3b90,_0xb15adc,_0x31d688){return __awaiter(this,void 0x0,void 0x0,function*(){var _0x5c13fe;const _0x5897d4=(0x0,metric_logger_1['createMetricRecorder'])(a10_0x1c95('0x14'));if(environment_1[a10_0x1c95('0x16')]){output['note']({'title':a10_0x1c95('0x32'),'bodyLines':['ciExecutionId:\x20'+_0x4b3b90,a10_0x1c95('0x27')+_0xb15adc,a10_0x1c95('0x4')+_0x7acfc2,a10_0x1c95('0x21')+_0x31d688]});}try{const _0x1ff7d3=yield(0x0,axios_1[a10_0x1c95('0x23')])(()=>this[a10_0x1c95('0x28')][a10_0x1c95('0x26')](a10_0x1c95('0x1a'),{'branch':_0x37a29c,'runGroup':_0x7acfc2,'ciExecutionId':_0x4b3b90,'ciExecutionEnv':_0xb15adc,'criticalErrorMessage':_0x31d688}),0x3);_0x5897d4[a10_0x1c95('0x1f')]((0x0,metric_logger_1[a10_0x1c95('0x25')])(_0x1ff7d3));}catch(_0x35cc3f){_0x5897d4[a10_0x1c95('0x1f')](((_0x5c13fe=_0x35cc3f===null||_0x35cc3f===void 0x0?void 0x0:_0x35cc3f[a10_0x1c95('0x1b')])===null||_0x5c13fe===void 0x0?void 0x0:_0x5c13fe[a10_0x1c95('0x2a')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x35cc3f[a10_0x1c95('0x1b')][a10_0x1c95('0x2a')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);}});}}exports[a10_0x1c95('0x13')]=DistributedExecutionApi;function createStartRequest(_0x123164,_0x58b3ac,_0x19cf94,_0x30bc13,_0x403bec,_0x2cccb9,_0xcb9694){const _0x2757d7=_0x403bec[a10_0x1c95('0x17')](_0x5788be=>{return _0x5788be['map'](_0x5ef9df=>{return{'taskId':_0x5ef9df['id'],'hash':_0x5ef9df[a10_0x1c95('0x9')],'projectName':_0x5ef9df['target']['project'],'target':_0x5ef9df[a10_0x1c95('0xf')][a10_0x1c95('0xf')],'configuration':_0x5ef9df[a10_0x1c95('0xf')][a10_0x1c95('0x2d')]||null,'params':(0x0,serializer_overrides_1['serializeOverrides'])(_0x5ef9df),'projectRoot':_0x5ef9df[a10_0x1c95('0x33')]};});});const _0x150981={'command':(0x0,environment_1[a10_0x1c95('0x8')])(),'branch':_0x123164,'runGroup':_0x58b3ac,'ciExecutionId':_0x19cf94,'ciExecutionEnv':_0x30bc13,'tasks':_0x2757d7,'maxParallel':calculateMaxParallel(_0x2cccb9),'commitSha':_0xcb9694};if(environment_1[a10_0x1c95('0x30')]){_0x150981['agentCount']=environment_1[a10_0x1c95('0x30')];}if(!environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE']){_0x150981[a10_0x1c95('0x2b')]=![];}return _0x150981;}exports[a10_0x1c95('0x1d')]=createStartRequest;function calculateMaxParallel(_0x504b64){if(_0x504b64['parallel']===a10_0x1c95('0x19')||_0x504b64[a10_0x1c95('0x15')]===![]){return 0x1;}else if(_0x504b64[a10_0x1c95('0x15')]===a10_0x1c95('0x2')||_0x504b64[a10_0x1c95('0x15')]===!![]){return Number(_0x504b64[a10_0x1c95('0x2e')]||0x3);}else if(_0x504b64[a10_0x1c95('0x15')]===undefined){return _0x504b64[a10_0x1c95('0x2e')]?Number(_0x504b64['maxParallel']):0x3;}else{return Number(_0x504b64[a10_0x1c95('0x15')])||0x3;}}

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

const a11_0x1466=['../../../utilities/dte-artifact-storage','exit','values','extractGitRef','../../error/print-run-group-error','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','tasks','Command\x20execution\x20failed.','then','Main\x20job\x20was\x20terminated\x20via\x20SIGINT','endTasks','nxCloudDistributedTasksRunner','next','createTaskGraphCompat','startTask','DteArtifactStorage','canDetectRunGroup','../../file-storage/e2e-encryption','throw','getCIExecutionId','printRunGroupError','SIGINT','log','axiosException','success','taskGraph','start','ENCRYPTION_KEY','FileStorage','./split-task-graph-into-stages','note','scheduleTask','runUrl','completeRunGroupWithError','../../../utilities/metric-logger','../../file-storage/file-storage','../../api/error-reporter.api','extractGitSha','../../../utilities/nx-imports','--skip-nx-cache\x20is\x20ignored\x20when\x20using\x20distributed\x20tasks\x20execution\x20(DTE).','processTasks','value','projectGraph','E2EEncryption','SIGTERM','./task-graph-creator','skipNxCache','commandStatus','message','DistributedExecutionApi','createStartRequest','getRunGroup','ErrorReporterApi','lifeCycle','splitTasksIntoStages','getBranch','See\x20run\x20details\x20at\x20'];(function(_0x190a20,_0x146639){const _0x395c8d=function(_0x58932d){while(--_0x58932d){_0x190a20['push'](_0x190a20['shift']());}};_0x395c8d(++_0x146639);}(a11_0x1466,0xcd));const a11_0x395c=function(_0x190a20,_0x146639){_0x190a20=_0x190a20-0x0;let _0x395c8d=a11_0x1466[_0x190a20];return _0x395c8d;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x49c6be,_0x8580fd,_0x41599e,_0x72ee33){function _0x2886aa(_0x1e0ddb){return _0x1e0ddb instanceof _0x41599e?_0x1e0ddb:new _0x41599e(function(_0x58cf24){_0x58cf24(_0x1e0ddb);});}return new(_0x41599e||(_0x41599e=Promise))(function(_0xfcb3a9,_0x5b51d4){function _0x17eb05(_0x238030){try{_0x2f7c1e(_0x72ee33[a11_0x395c('0x23')](_0x238030));}catch(_0x4ee8f2){_0x5b51d4(_0x4ee8f2);}}function _0xb4e2db(_0xa651a1){try{_0x2f7c1e(_0x72ee33[a11_0x395c('0x29')](_0xa651a1));}catch(_0x463315){_0x5b51d4(_0x463315);}}function _0x2f7c1e(_0x5d5e21){_0x5d5e21['done']?_0xfcb3a9(_0x5d5e21[a11_0x395c('0x7')]):_0x2886aa(_0x5d5e21[a11_0x395c('0x7')])[a11_0x395c('0x1f')](_0x17eb05,_0xb4e2db);}_0x2f7c1e((_0x72ee33=_0x72ee33['apply'](_0x49c6be,_0x8580fd||[]))['next']());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a11_0x395c('0x22')]=void 0x0;const dte_artifact_storage_1=require(a11_0x395c('0x17'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a11_0x395c('0x0'));const error_reporter_api_1=require(a11_0x395c('0x2'));const print_run_group_error_1=require(a11_0x395c('0x1b'));const e2e_encryption_1=require(a11_0x395c('0x28'));const file_storage_1=require(a11_0x395c('0x1'));const distributed_execution_api_1=require('./distributed-execution.api');const process_tasks_1=require('./process-tasks');const split_task_graph_into_stages_1=require(a11_0x395c('0x34'));const task_graph_creator_1=require(a11_0x395c('0xb'));const {output}=require('../../../utilities/nx-imports-light');const {cacheDirectory}=require(a11_0x395c('0x4'));class NoopLifeCycle{[a11_0x395c('0x36')](_0x3e5173){}[a11_0x395c('0x25')](_0x45c167){}[a11_0x395c('0x21')](_0x4f9586){}}const nxCloudDistributedTasksRunner=(_0x42db1a,_0x1265af,_0x7f6ff)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x1265af[a11_0x395c('0xc')]){output['warn']({'title':a11_0x395c('0x5'),'bodyLine':['DTE\x20needs\x20the\x20cache\x20to\x20share\x20files\x20between\x20agents.']});}if(environment_1['VERBOSE_LOGGING']){output[a11_0x395c('0x35')]({'title':'Starting\x20distributed\x20command\x20execution'});}_0x1265af[a11_0x395c('0x13')]=new NoopLifeCycle();const _0x47c760=(0x0,environment_1[a11_0x395c('0x15')])();const _0x427de7=(0x0,environment_1[a11_0x395c('0x11')])();const _0x4c2146=(0x0,environment_1[a11_0x395c('0x2a')])();const _0x14c4fa=(0x0,environment_1['getCIExecutionEnv'])();const _0x2b955e=(0x0,environment_1[a11_0x395c('0x3')])();const _0x46ca91=(0x0,environment_1[a11_0x395c('0x1a')])();if(!(0x0,print_run_group_error_1[a11_0x395c('0x27')])(_0x427de7,_0x4c2146)){(0x0,print_run_group_error_1[a11_0x395c('0x2b')])();process[a11_0x395c('0x18')](0x1);}const _0x2971fb=new e2e_encryption_1[(a11_0x395c('0x9'))](environment_1[a11_0x395c('0x32')]||_0x1265af['encryptionKey']);const _0x598730=new error_reporter_api_1[(a11_0x395c('0x12'))](_0x1265af);const _0xe7b081=new dte_artifact_storage_1[(a11_0x395c('0x26'))](new file_storage_1[(a11_0x395c('0x33'))](_0x2971fb,_0x598730,_0x1265af,'dte-main'),cacheDirectory);const _0x648a7c=new distributed_execution_api_1[(a11_0x395c('0xf'))](_0x1265af);attachSignalListenersToCompleteRunGroupOnError(_0x648a7c,_0x47c760,_0x427de7,_0x4c2146,_0x14c4fa);try{const _0x1ed688=getTaskGraph(_0x7f6ff,_0x42db1a,_0x1265af);const _0x85d91b=yield runDistributedExecution(_0x648a7c,_0x1265af,_0xe7b081,_0x47c760,_0x427de7,_0x4c2146,_0x14c4fa,_0x1ed688,_0x2b955e,_0x46ca91);if(_0x85d91b[a11_0x395c('0xd')]===0x0){output[a11_0x395c('0x2f')]({'title':'Successfully\x20completed\x20running\x20the\x20command.','bodyLines':[a11_0x395c('0x16')+_0x85d91b['runUrl']]});}else{output['error']({'title':a11_0x395c('0x1e'),'bodyLines':[a11_0x395c('0x16')+_0x85d91b[a11_0x395c('0x37')]]});}yield(0x0,metric_logger_1['submitRunMetrics'])(_0x1265af);process[a11_0x395c('0x18')](_0x85d91b[a11_0x395c('0xd')]);}catch(_0x81daac){output['error']({'title':'Unable\x20to\x20complete\x20a\x20run.','bodyLines':[_0x81daac[a11_0x395c('0xe')]]});if(_0x81daac[a11_0x395c('0x2e')]){console['log'](_0x81daac[a11_0x395c('0x2e')]);}else{console[a11_0x395c('0x2d')](_0x81daac);}try{yield _0x648a7c[a11_0x395c('0x38')](_0x47c760,_0x427de7,_0x4c2146,_0x14c4fa,a11_0x395c('0x1c')+_0x81daac['message']+'\x22');}finally{process[a11_0x395c('0x18')](0x1);}}});exports[a11_0x395c('0x22')]=nxCloudDistributedTasksRunner;function getTaskGraph(_0x596269,_0x134513,_0x23ed34){if(_0x596269['taskGraph']){return _0x596269[a11_0x395c('0x30')];}else{return(0x0,task_graph_creator_1[a11_0x395c('0x24')])(_0x23ed34,_0x596269[a11_0x395c('0x8')],_0x134513);}}function attachSignalListenersToCompleteRunGroupOnError(_0x1173c0,_0x3dbdff,_0x59586c,_0x2fca1e,_0x516fd3){process['on'](a11_0x395c('0x2c'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x1173c0[a11_0x395c('0x38')](_0x3dbdff,_0x59586c,_0x2fca1e,_0x516fd3,a11_0x395c('0x20'));process[a11_0x395c('0x18')](0x1);}));process['on'](a11_0x395c('0xa'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x1173c0[a11_0x395c('0x38')](_0x3dbdff,_0x59586c,_0x2fca1e,_0x516fd3,'Main\x20job\x20was\x20terminated\x20via\x20SIGTERM');process[a11_0x395c('0x18')](0x1);}));}function runDistributedExecution(_0x471d64,_0x2adc51,_0x447e71,_0x1c6b96,_0x376089,_0x4098ab,_0x3a0db3,_0xc92501,_0x4e622c,_0x186ae9){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xb7b7c9=yield _0x471d64[a11_0x395c('0x31')]((0x0,distributed_execution_api_1[a11_0x395c('0x10')])(_0x1c6b96,_0x376089,_0x4098ab,_0x3a0db3,(0x0,split_task_graph_into_stages_1[a11_0x395c('0x14')])(_0xc92501),_0x2adc51,_0x4e622c));return yield(0x0,process_tasks_1[a11_0x395c('0x6')])(_0x471d64,_0x447e71,_0xb7b7c9,Object[a11_0x395c('0x19')](_0xc92501[a11_0x395c('0x1d')]));});}
const a11_0x2ad5=['commandStatus','splitTasksIntoStages','warn','processTasks','endTasks','./split-task-graph-into-stages','values','SIGINT','../../../utilities/dte-artifact-storage','__esModule','scheduleTask','DTE\x20needs\x20the\x20cache\x20to\x20share\x20files\x20between\x20agents.','lifeCycle','exit','../../../utilities/nx-imports-light','log','start','VERBOSE_LOGGING','getCIExecutionEnv','canDetectRunGroup','../../error/print-run-group-error','runUrl','completeRunGroupWithError','defineProperty','./task-graph-creator','createStartRequest','printRunGroupError','ErrorReporterApi','next','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','extractGitRef','tasks','done','success','getRunGroup','E2EEncryption','SIGTERM','Unable\x20to\x20complete\x20a\x20run.','Successfully\x20completed\x20running\x20the\x20command.','startTask','Main\x20job\x20was\x20terminated\x20via\x20SIGINT','note','skipNxCache','__awaiter','DistributedExecutionApi','Main\x20job\x20was\x20terminated\x20via\x20SIGTERM','value','taskGraph','See\x20run\x20details\x20at\x20','submitRunMetrics','message','../../../utilities/environment','Starting\x20distributed\x20command\x20execution','--skip-nx-cache\x20is\x20ignored\x20when\x20using\x20distributed\x20tasks\x20execution\x20(DTE).','axiosException','getBranch','../../../utilities/nx-imports','error','../../api/error-reporter.api','createTaskGraphCompat','./distributed-execution.api','projectGraph','extractGitSha','throw','../../../utilities/metric-logger','apply','encryptionKey'];(function(_0x2c148b,_0x2ad56b){const _0x4ffc1e=function(_0x3c988d){while(--_0x3c988d){_0x2c148b['push'](_0x2c148b['shift']());}};_0x4ffc1e(++_0x2ad56b);}(a11_0x2ad5,0x11d));const a11_0x4ffc=function(_0x2c148b,_0x2ad56b){_0x2c148b=_0x2c148b-0x0;let _0x4ffc1e=a11_0x2ad5[_0x2c148b];return _0x4ffc1e;};'use strict';var __awaiter=this&&this[a11_0x4ffc('0x1a')]||function(_0x3e59b1,_0x40caf4,_0x5f3c0b,_0x5b0a94){function _0x597c83(_0x15a49d){return _0x15a49d instanceof _0x5f3c0b?_0x15a49d:new _0x5f3c0b(function(_0x25d4fb){_0x25d4fb(_0x15a49d);});}return new(_0x5f3c0b||(_0x5f3c0b=Promise))(function(_0x343f5a,_0x4885eb){function _0x3113a1(_0x531efe){try{_0xdc4e48(_0x5b0a94[a11_0x4ffc('0xb')](_0x531efe));}catch(_0x339da0){_0x4885eb(_0x339da0);}}function _0x12df3e(_0x33c4b9){try{_0xdc4e48(_0x5b0a94[a11_0x4ffc('0x2e')](_0x33c4b9));}catch(_0x55fda5){_0x4885eb(_0x55fda5);}}function _0xdc4e48(_0x3d50cb){_0x3d50cb[a11_0x4ffc('0xf')]?_0x343f5a(_0x3d50cb[a11_0x4ffc('0x1d')]):_0x597c83(_0x3d50cb['value'])['then'](_0x3113a1,_0x12df3e);}_0xdc4e48((_0x5b0a94=_0x5b0a94[a11_0x4ffc('0x30')](_0x3e59b1,_0x40caf4||[]))['next']());});};Object[a11_0x4ffc('0x6')](exports,a11_0x4ffc('0x3b'),{'value':!![]});exports['nxCloudDistributedTasksRunner']=void 0x0;const dte_artifact_storage_1=require(a11_0x4ffc('0x3a'));const environment_1=require(a11_0x4ffc('0x22'));const metric_logger_1=require(a11_0x4ffc('0x2f'));const error_reporter_api_1=require(a11_0x4ffc('0x29'));const print_run_group_error_1=require(a11_0x4ffc('0x3'));const e2e_encryption_1=require('../../file-storage/e2e-encryption');const file_storage_1=require('../../file-storage/file-storage');const distributed_execution_api_1=require(a11_0x4ffc('0x2b'));const process_tasks_1=require('./process-tasks');const split_task_graph_into_stages_1=require(a11_0x4ffc('0x37'));const task_graph_creator_1=require(a11_0x4ffc('0x7'));const {output}=require(a11_0x4ffc('0x40'));const {cacheDirectory}=require(a11_0x4ffc('0x27'));class NoopLifeCycle{[a11_0x4ffc('0x3c')](_0x22b312){}[a11_0x4ffc('0x16')](_0x331400){}[a11_0x4ffc('0x36')](_0x58467f){}}const nxCloudDistributedTasksRunner=(_0x171f34,_0x45b4b4,_0x7623bd)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x45b4b4[a11_0x4ffc('0x19')]){output[a11_0x4ffc('0x34')]({'title':a11_0x4ffc('0x24'),'bodyLine':[a11_0x4ffc('0x3d')]});}if(environment_1[a11_0x4ffc('0x0')]){output[a11_0x4ffc('0x18')]({'title':a11_0x4ffc('0x23')});}_0x45b4b4[a11_0x4ffc('0x3e')]=new NoopLifeCycle();const _0x195f1c=(0x0,environment_1[a11_0x4ffc('0x26')])();const _0x43e28d=(0x0,environment_1[a11_0x4ffc('0x11')])();const _0x3f90e9=(0x0,environment_1['getCIExecutionId'])();const _0x599f5b=(0x0,environment_1[a11_0x4ffc('0x1')])();const _0x2bd56d=(0x0,environment_1[a11_0x4ffc('0x2d')])();const _0x2f0c34=(0x0,environment_1[a11_0x4ffc('0xd')])();if(!(0x0,print_run_group_error_1[a11_0x4ffc('0x2')])(_0x43e28d,_0x3f90e9)){(0x0,print_run_group_error_1[a11_0x4ffc('0x9')])();process[a11_0x4ffc('0x3f')](0x1);}const _0x3f02b8=new e2e_encryption_1[(a11_0x4ffc('0x12'))](environment_1['ENCRYPTION_KEY']||_0x45b4b4[a11_0x4ffc('0x31')]);const _0x1910ad=new error_reporter_api_1[(a11_0x4ffc('0xa'))](_0x45b4b4);const _0x58fb8f=new dte_artifact_storage_1['DteArtifactStorage'](new file_storage_1['FileStorage'](_0x3f02b8,_0x1910ad,_0x45b4b4,'dte-main'),cacheDirectory);const _0x1ca560=new distributed_execution_api_1[(a11_0x4ffc('0x1b'))](_0x45b4b4);attachSignalListenersToCompleteRunGroupOnError(_0x1ca560,_0x195f1c,_0x43e28d,_0x3f90e9,_0x599f5b);try{const _0x4abf94=getTaskGraph(_0x7623bd,_0x171f34,_0x45b4b4);const _0x54cf88=yield runDistributedExecution(_0x1ca560,_0x45b4b4,_0x58fb8f,_0x195f1c,_0x43e28d,_0x3f90e9,_0x599f5b,_0x4abf94,_0x2bd56d,_0x2f0c34);if(_0x54cf88[a11_0x4ffc('0x32')]===0x0){output[a11_0x4ffc('0x10')]({'title':a11_0x4ffc('0x15'),'bodyLines':[a11_0x4ffc('0x1f')+_0x54cf88[a11_0x4ffc('0x4')]]});}else{output[a11_0x4ffc('0x28')]({'title':'Command\x20execution\x20failed.','bodyLines':[a11_0x4ffc('0x1f')+_0x54cf88['runUrl']]});}yield(0x0,metric_logger_1[a11_0x4ffc('0x20')])(_0x45b4b4);process[a11_0x4ffc('0x3f')](_0x54cf88['commandStatus']);}catch(_0x3d49ae){output['error']({'title':a11_0x4ffc('0x14'),'bodyLines':[_0x3d49ae[a11_0x4ffc('0x21')]]});if(_0x3d49ae[a11_0x4ffc('0x25')]){console[a11_0x4ffc('0x41')](_0x3d49ae['axiosException']);}else{console[a11_0x4ffc('0x41')](_0x3d49ae);}try{yield _0x1ca560[a11_0x4ffc('0x5')](_0x195f1c,_0x43e28d,_0x3f90e9,_0x599f5b,a11_0x4ffc('0xc')+_0x3d49ae[a11_0x4ffc('0x21')]+'\x22');}finally{process[a11_0x4ffc('0x3f')](0x1);}}});exports['nxCloudDistributedTasksRunner']=nxCloudDistributedTasksRunner;function getTaskGraph(_0x229916,_0x442c51,_0x517a26){if(_0x229916['taskGraph']){return _0x229916[a11_0x4ffc('0x1e')];}else{return(0x0,task_graph_creator_1[a11_0x4ffc('0x2a')])(_0x517a26,_0x229916[a11_0x4ffc('0x2c')],_0x442c51);}}function attachSignalListenersToCompleteRunGroupOnError(_0x449632,_0x59519a,_0x35e713,_0x4ffa56,_0x24e1a9){process['on'](a11_0x4ffc('0x39'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x449632[a11_0x4ffc('0x5')](_0x59519a,_0x35e713,_0x4ffa56,_0x24e1a9,a11_0x4ffc('0x17'));process['exit'](0x1);}));process['on'](a11_0x4ffc('0x13'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x449632[a11_0x4ffc('0x5')](_0x59519a,_0x35e713,_0x4ffa56,_0x24e1a9,a11_0x4ffc('0x1c'));process[a11_0x4ffc('0x3f')](0x1);}));}function runDistributedExecution(_0x5adcfa,_0x2594dd,_0x2c0800,_0x1c0c93,_0x20caeb,_0x553c9b,_0x5a1bae,_0x112d48,_0x1fe7b1,_0x129ad8){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x34eb7f=yield _0x5adcfa[a11_0x4ffc('0x42')]((0x0,distributed_execution_api_1[a11_0x4ffc('0x8')])(_0x1c0c93,_0x20caeb,_0x553c9b,_0x5a1bae,(0x0,split_task_graph_into_stages_1[a11_0x4ffc('0x33')])(_0x112d48),_0x2594dd,_0x1fe7b1));return yield(0x0,process_tasks_1[a11_0x4ffc('0x35')])(_0x5adcfa,_0x2c0800,_0x34eb7f,Object[a11_0x4ffc('0x38')](_0x112d48[a11_0x4ffc('0xe')]));});}

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

const a12_0x4530=['run','../../../utilities/nx-imports-light','note','hash','next','value','url','addVerticalSeparator','target','write','taskId','VERBOSE_LOGGING','__awaiter','../../../utilities/serializer-overrides','__esModule','throw','join','configuration','logCommand'];(function(_0x39c436,_0x453060){const _0x14ff47=function(_0x3cf2fa){while(--_0x3cf2fa){_0x39c436['push'](_0x39c436['shift']());}};_0x14ff47(++_0x453060);}(a12_0x4530,0x156));const a12_0x14ff=function(_0x39c436,_0x453060){_0x39c436=_0x39c436-0x0;let _0x14ff47=a12_0x4530[_0x39c436];return _0x14ff47;};'use strict';var __awaiter=this&&this[a12_0x14ff('0xc')]||function(_0x567b2a,_0x254e91,_0x25ee56,_0x305c07){function _0x5a2558(_0x5bbff2){return _0x5bbff2 instanceof _0x25ee56?_0x5bbff2:new _0x25ee56(function(_0x58f783){_0x58f783(_0x5bbff2);});}return new(_0x25ee56||(_0x25ee56=Promise))(function(_0x5a3f99,_0x4b0b41){function _0x2948d7(_0x1a153e){try{_0x182610(_0x305c07[a12_0x14ff('0x4')](_0x1a153e));}catch(_0x104b82){_0x4b0b41(_0x104b82);}}function _0x1f259d(_0x32ce27){try{_0x182610(_0x305c07[a12_0x14ff('0xf')](_0x32ce27));}catch(_0x411638){_0x4b0b41(_0x411638);}}function _0x182610(_0x88de13){_0x88de13['done']?_0x5a3f99(_0x88de13[a12_0x14ff('0x5')]):_0x5a2558(_0x88de13[a12_0x14ff('0x5')])['then'](_0x2948d7,_0x1f259d);}_0x182610((_0x305c07=_0x305c07['apply'](_0x567b2a,_0x254e91||[]))['next']());});};Object['defineProperty'](exports,a12_0x14ff('0xe'),{'value':!![]});exports['processTask']=void 0x0;const environment_1=require('../../../utilities/environment');const serializer_overrides_1=require(a12_0x14ff('0xd'));const {output}=require(a12_0x14ff('0x1'));function processTask(_0x52fc03,_0xea04a0,_0xdebee9){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a12_0x14ff('0xb')]){output[a12_0x14ff('0x2')]({'title':'Processing\x20task\x20'+_0xdebee9[a12_0x14ff('0xa')]});}const _0x232ef8=_0xea04a0['find'](_0x4d31b4=>_0xdebee9[a12_0x14ff('0xa')]===_0x4d31b4['id']);if(!_0x232ef8){throw new Error('Found\x20unknown\x20task:\x20'+_0xdebee9[a12_0x14ff('0xa')]);}const _0x221e4c=yield _0x52fc03['retrieveAndExtract'](_0xdebee9[a12_0x14ff('0x3')],_0xdebee9[a12_0x14ff('0x6')]);output[a12_0x14ff('0x12')](getCommand(_0x232ef8));process['stdout'][a12_0x14ff('0x9')](_0x221e4c);output[a12_0x14ff('0x7')]();});}exports['processTask']=processTask;function getCommand(_0x42a79a){const _0x2084eb=_0x42a79a[a12_0x14ff('0x8')][a12_0x14ff('0x11')]?':'+_0x42a79a[a12_0x14ff('0x8')][a12_0x14ff('0x11')]:'';return['nx',a12_0x14ff('0x0'),_0x42a79a[a12_0x14ff('0x8')]['project']+':'+_0x42a79a[a12_0x14ff('0x8')][a12_0x14ff('0x8')]+_0x2084eb,(0x0,serializer_overrides_1['serializeOverrides'])(_0x42a79a)][a12_0x14ff('0x10')]('\x20');}
const a12_0x1fcb=['defineProperty','run','then','note','value','processTask','Found\x20unknown\x20task:\x20','../../../utilities/environment','serializeOverrides','stdout','next','__awaiter','url','project','apply','find','../../../utilities/nx-imports-light','configuration','logCommand','target','done','__esModule','write','taskId','retrieveAndExtract','addVerticalSeparator','join'];(function(_0x326bc8,_0x1fcb2a){const _0x36f34c=function(_0x1339f8){while(--_0x1339f8){_0x326bc8['push'](_0x326bc8['shift']());}};_0x36f34c(++_0x1fcb2a);}(a12_0x1fcb,0x137));const a12_0x36f3=function(_0x326bc8,_0x1fcb2a){_0x326bc8=_0x326bc8-0x0;let _0x36f34c=a12_0x1fcb[_0x326bc8];return _0x36f34c;};'use strict';var __awaiter=this&&this[a12_0x36f3('0x18')]||function(_0xabc9,_0x143180,_0x3c8f19,_0x3b0009){function _0x4d63ec(_0x569cd1){return _0x569cd1 instanceof _0x3c8f19?_0x569cd1:new _0x3c8f19(function(_0x2d3a17){_0x2d3a17(_0x569cd1);});}return new(_0x3c8f19||(_0x3c8f19=Promise))(function(_0x3712a1,_0x2e67c7){function _0x42f4f0(_0x24c063){try{_0x4eadbd(_0x3b0009['next'](_0x24c063));}catch(_0x2670d2){_0x2e67c7(_0x2670d2);}}function _0x23f566(_0x5e2d30){try{_0x4eadbd(_0x3b0009['throw'](_0x5e2d30));}catch(_0x1683d6){_0x2e67c7(_0x1683d6);}}function _0x4eadbd(_0x573101){_0x573101[a12_0x36f3('0x6')]?_0x3712a1(_0x573101[a12_0x36f3('0x11')]):_0x4d63ec(_0x573101[a12_0x36f3('0x11')])[a12_0x36f3('0xf')](_0x42f4f0,_0x23f566);}_0x4eadbd((_0x3b0009=_0x3b0009[a12_0x36f3('0x0')](_0xabc9,_0x143180||[]))[a12_0x36f3('0x17')]());});};Object[a12_0x36f3('0xd')](exports,a12_0x36f3('0x7'),{'value':!![]});exports[a12_0x36f3('0x12')]=void 0x0;const environment_1=require(a12_0x36f3('0x14'));const serializer_overrides_1=require('../../../utilities/serializer-overrides');const {output}=require(a12_0x36f3('0x2'));function processTask(_0x374efe,_0x1c8b04,_0x5e4164){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a12_0x36f3('0x10')]({'title':'Processing\x20task\x20'+_0x5e4164[a12_0x36f3('0x9')]});}const _0x4d6acd=_0x1c8b04[a12_0x36f3('0x1')](_0x42d073=>_0x5e4164[a12_0x36f3('0x9')]===_0x42d073['id']);if(!_0x4d6acd){throw new Error(a12_0x36f3('0x13')+_0x5e4164[a12_0x36f3('0x9')]);}const _0x223097=yield _0x374efe[a12_0x36f3('0xa')](_0x5e4164['hash'],_0x5e4164[a12_0x36f3('0x19')]);output[a12_0x36f3('0x4')](getCommand(_0x4d6acd));process[a12_0x36f3('0x16')][a12_0x36f3('0x8')](_0x223097);output[a12_0x36f3('0xb')]();});}exports[a12_0x36f3('0x12')]=processTask;function getCommand(_0x54d289){const _0x211736=_0x54d289['target'][a12_0x36f3('0x3')]?':'+_0x54d289[a12_0x36f3('0x5')][a12_0x36f3('0x3')]:'';return['nx',a12_0x36f3('0xe'),_0x54d289[a12_0x36f3('0x5')][a12_0x36f3('0x1a')]+':'+_0x54d289[a12_0x36f3('0x5')]['target']+_0x211736,(0x0,serializer_overrides_1[a12_0x36f3('0x15')])(_0x54d289)][a12_0x36f3('0xc')]('\x20');}

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

const a13_0x5794=['Error:','value','../../../utilities/create-unchanged-value-timeout','length','error','Distributed\x20Execution\x20Terminated','\x20seconds.','Waiter','processTask','../../../utilities/nx-imports-light','./process-task','reset','executionId:\x20','criticalErrorMessage','completedTasks','Status\x20update','status','processTasks','VERBOSE_LOGGING','taskId','NO_COMPLETED_TASKS_TIMEOUT','executionStatus','done','next','__awaiter','defineProperty','then','commandStatus','../../../utilities/environment','apply','runUrl','wait','COMPLETED','../../../utilities/waiter','note','error:\x20','number\x20of\x20completed\x20tasks:\x20','throw','exit'];(function(_0x18fe46,_0x5794c5){const _0xb36b29=function(_0xfa84b3){while(--_0xfa84b3){_0x18fe46['push'](_0x18fe46['shift']());}};_0xb36b29(++_0x5794c5);}(a13_0x5794,0xcd));const a13_0xb36b=function(_0x18fe46,_0x5794c5){_0x18fe46=_0x18fe46-0x0;let _0xb36b29=a13_0x5794[_0x18fe46];return _0xb36b29;};'use strict';var __awaiter=this&&this[a13_0xb36b('0xe')]||function(_0x205577,_0x55b92a,_0x4e7964,_0x53da5e){function _0x4b6f4e(_0x41718b){return _0x41718b instanceof _0x4e7964?_0x41718b:new _0x4e7964(function(_0x9ab674){_0x9ab674(_0x41718b);});}return new(_0x4e7964||(_0x4e7964=Promise))(function(_0x53ad5e,_0x206edd){function _0x211204(_0x44a10a){try{_0x1826a6(_0x53da5e[a13_0xb36b('0xd')](_0x44a10a));}catch(_0x4f570e){_0x206edd(_0x4f570e);}}function _0x4e2876(_0x43165e){try{_0x1826a6(_0x53da5e[a13_0xb36b('0x1b')](_0x43165e));}catch(_0x5c2df3){_0x206edd(_0x5c2df3);}}function _0x1826a6(_0x3b7c5a){_0x3b7c5a[a13_0xb36b('0xc')]?_0x53ad5e(_0x3b7c5a[a13_0xb36b('0x1e')]):_0x4b6f4e(_0x3b7c5a[a13_0xb36b('0x1e')])[a13_0xb36b('0x10')](_0x211204,_0x4e2876);}_0x1826a6((_0x53da5e=_0x53da5e[a13_0xb36b('0x13')](_0x205577,_0x55b92a||[]))[a13_0xb36b('0xd')]());});};Object[a13_0xb36b('0xf')](exports,'__esModule',{'value':!![]});exports[a13_0xb36b('0x7')]=void 0x0;const create_unchanged_value_timeout_1=require(a13_0xb36b('0x1f'));const environment_1=require(a13_0xb36b('0x12'));const waiter_1=require(a13_0xb36b('0x17'));const process_task_1=require(a13_0xb36b('0x0'));const {output}=require(a13_0xb36b('0x26'));function processTasks(_0x3062ef,_0x2cba7a,_0x387c3b,_0xbcc066){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x36b792={};const _0x1e8caf=(0x0,create_unchanged_value_timeout_1['createUnchangedValueTimeout'])({'title':'No\x20new\x20completed\x20tasks\x20after\x20'+environment_1[a13_0xb36b('0xa')]/0x3e8+a13_0xb36b('0x23'),'timeout':environment_1[a13_0xb36b('0xa')]});const _0x5cdc01=new waiter_1[(a13_0xb36b('0x24'))]();while(!![]){if(environment_1['VERBOSE_LOGGING']){output[a13_0xb36b('0x18')]({'title':'Waiting...'});}yield _0x5cdc01[a13_0xb36b('0x15')]();const _0x5a3cc6=yield _0x3062ef[a13_0xb36b('0x6')](_0x387c3b);if(environment_1[a13_0xb36b('0x8')]){output[a13_0xb36b('0x18')]({'title':a13_0xb36b('0x5'),'bodyLines':[a13_0xb36b('0x2')+_0x387c3b,'executionStatus:\x20'+_0x5a3cc6[a13_0xb36b('0xb')],a13_0xb36b('0x1a')+_0x5a3cc6[a13_0xb36b('0x4')][a13_0xb36b('0x20')],a13_0xb36b('0x19')+_0x5a3cc6[a13_0xb36b('0x3')]]});}if(_0x5a3cc6[a13_0xb36b('0x3')]){output[a13_0xb36b('0x21')]({'title':a13_0xb36b('0x22'),'bodyLines':[a13_0xb36b('0x1d'),_0x5a3cc6[a13_0xb36b('0x3')]]});process[a13_0xb36b('0x1c')](0x1);}_0x1e8caf(_0x5a3cc6[a13_0xb36b('0x4')][a13_0xb36b('0x20')]);for(const _0x4f0758 of _0x5a3cc6[a13_0xb36b('0x4')]){if(_0x36b792[_0x4f0758[a13_0xb36b('0x9')]])continue;yield(0x0,process_task_1[a13_0xb36b('0x25')])(_0x2cba7a,_0xbcc066,_0x4f0758);_0x5cdc01[a13_0xb36b('0x1')]();_0x36b792[_0x4f0758[a13_0xb36b('0x9')]]=!![];}if(_0x5a3cc6[a13_0xb36b('0xb')]===a13_0xb36b('0x16')){return{'commandStatus':_0x5a3cc6[a13_0xb36b('0x11')],'runUrl':_0x5a3cc6[a13_0xb36b('0x14')]};}}});}exports['processTasks']=processTasks;
const a13_0x5945=['executionId:\x20','reset','number\x20of\x20completed\x20tasks:\x20','COMPLETED','__awaiter','then','../../../utilities/waiter','../../../utilities/environment','error:\x20','taskId','Waiter','NO_COMPLETED_TASKS_TIMEOUT','value','executionStatus:\x20','criticalErrorMessage','processTask','apply','createUnchangedValueTimeout','error','../../../utilities/create-unchanged-value-timeout','note','Waiting...','Status\x20update','completedTasks','No\x20new\x20completed\x20tasks\x20after\x20','\x20seconds.','../../../utilities/nx-imports-light','executionStatus','commandStatus','processTasks','Distributed\x20Execution\x20Terminated','VERBOSE_LOGGING','__esModule'];(function(_0x351fd8,_0x594581){const _0x284a29=function(_0x30a77f){while(--_0x30a77f){_0x351fd8['push'](_0x351fd8['shift']());}};_0x284a29(++_0x594581);}(a13_0x5945,0x143));const a13_0x284a=function(_0x351fd8,_0x594581){_0x351fd8=_0x351fd8-0x0;let _0x284a29=a13_0x5945[_0x351fd8];return _0x284a29;};'use strict';var __awaiter=this&&this[a13_0x284a('0xb')]||function(_0x221877,_0x4121ed,_0x3a93d4,_0x36d35d){function _0x29a28e(_0x475134){return _0x475134 instanceof _0x3a93d4?_0x475134:new _0x3a93d4(function(_0x3b56bb){_0x3b56bb(_0x475134);});}return new(_0x3a93d4||(_0x3a93d4=Promise))(function(_0x52e9b6,_0x148d39){function _0x2702f6(_0x4eb292){try{_0x5d06ad(_0x36d35d['next'](_0x4eb292));}catch(_0x3ff0de){_0x148d39(_0x3ff0de);}}function _0x370418(_0x1df558){try{_0x5d06ad(_0x36d35d['throw'](_0x1df558));}catch(_0x325aec){_0x148d39(_0x325aec);}}function _0x5d06ad(_0x19ac45){_0x19ac45['done']?_0x52e9b6(_0x19ac45[a13_0x284a('0x13')]):_0x29a28e(_0x19ac45[a13_0x284a('0x13')])[a13_0x284a('0xc')](_0x2702f6,_0x370418);}_0x5d06ad((_0x36d35d=_0x36d35d[a13_0x284a('0x17')](_0x221877,_0x4121ed||[]))['next']());});};Object['defineProperty'](exports,a13_0x284a('0x6'),{'value':!![]});exports[a13_0x284a('0x3')]=void 0x0;const create_unchanged_value_timeout_1=require(a13_0x284a('0x1a'));const environment_1=require(a13_0x284a('0xe'));const waiter_1=require(a13_0x284a('0xd'));const process_task_1=require('./process-task');const {output}=require(a13_0x284a('0x0'));function processTasks(_0x1d70a3,_0x5b71ba,_0x394deb,_0x2e764f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x36a45e={};const _0x145c38=(0x0,create_unchanged_value_timeout_1[a13_0x284a('0x18')])({'title':a13_0x284a('0x1f')+environment_1[a13_0x284a('0x12')]/0x3e8+a13_0x284a('0x20'),'timeout':environment_1[a13_0x284a('0x12')]});const _0x1ad890=new waiter_1[(a13_0x284a('0x11'))]();while(!![]){if(environment_1[a13_0x284a('0x5')]){output['note']({'title':a13_0x284a('0x1c')});}yield _0x1ad890['wait']();const _0xc59fee=yield _0x1d70a3['status'](_0x394deb);if(environment_1[a13_0x284a('0x5')]){output[a13_0x284a('0x1b')]({'title':a13_0x284a('0x1d'),'bodyLines':[a13_0x284a('0x7')+_0x394deb,a13_0x284a('0x14')+_0xc59fee['executionStatus'],a13_0x284a('0x9')+_0xc59fee[a13_0x284a('0x1e')]['length'],a13_0x284a('0xf')+_0xc59fee['criticalErrorMessage']]});}if(_0xc59fee[a13_0x284a('0x15')]){output[a13_0x284a('0x19')]({'title':a13_0x284a('0x4'),'bodyLines':['Error:',_0xc59fee[a13_0x284a('0x15')]]});process['exit'](0x1);}_0x145c38(_0xc59fee[a13_0x284a('0x1e')]['length']);for(const _0x4ee232 of _0xc59fee[a13_0x284a('0x1e')]){if(_0x36a45e[_0x4ee232[a13_0x284a('0x10')]])continue;yield(0x0,process_task_1[a13_0x284a('0x16')])(_0x5b71ba,_0x2e764f,_0x4ee232);_0x1ad890[a13_0x284a('0x8')]();_0x36a45e[_0x4ee232[a13_0x284a('0x10')]]=!![];}if(_0xc59fee[a13_0x284a('0x1')]===a13_0x284a('0xa')){return{'commandStatus':_0xc59fee[a13_0x284a('0x2')],'runUrl':_0xc59fee['runUrl']};}}});}exports[a13_0x284a('0x3')]=processTasks;

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

const a14_0x5120=['has','dependencies','push','delete','map','__esModule','tasks','splitTasksIntoStages'];(function(_0x2a4a0f,_0x512002){const _0xd30e12=function(_0x484e14){while(--_0x484e14){_0x2a4a0f['push'](_0x2a4a0f['shift']());}};_0xd30e12(++_0x512002);}(a14_0x5120,0x115));const a14_0xd30e=function(_0x2a4a0f,_0x512002){_0x2a4a0f=_0x2a4a0f-0x0;let _0xd30e12=a14_0x5120[_0x2a4a0f];return _0xd30e12;};'use strict';Object['defineProperty'](exports,a14_0xd30e('0x0'),{'value':!![]});exports[a14_0xd30e('0x2')]=void 0x0;function splitTasksIntoStages(_0x58a6ea){const _0x35e384=[];const _0x552640=new Set(Object['values'](_0x58a6ea[a14_0xd30e('0x1')])[a14_0xd30e('0x7')](_0x11e6c1=>_0x11e6c1['id']));let _0xd93ad1=0x0;while(_0x552640['size']>0x0){const _0x5d33b1=_0x35e384[_0xd93ad1]=[];for(const _0x26fc68 of _0x552640){let _0x576a4f=!![];for(const _0x505e9e of _0x58a6ea[a14_0xd30e('0x4')][_0x26fc68]){if(_0x552640[a14_0xd30e('0x3')](_0x505e9e)){_0x576a4f=![];break;}}if(!_0x576a4f){continue;}const _0x5b9f10=_0x58a6ea['tasks'][_0x26fc68];_0x5d33b1[a14_0xd30e('0x5')](_0x5b9f10);}for(const _0x504d51 of _0x5d33b1){_0x552640[a14_0xd30e('0x6')](_0x504d51['id']);}_0xd93ad1++;}return _0x35e384;}exports[a14_0xd30e('0x2')]=splitTasksIntoStages;
const a14_0x6592=['tasks','defineProperty','__esModule','splitTasksIntoStages','size','dependencies'];(function(_0x153315,_0x659250){const _0x4a59ce=function(_0x2259f4){while(--_0x2259f4){_0x153315['push'](_0x153315['shift']());}};_0x4a59ce(++_0x659250);}(a14_0x6592,0xbd));const a14_0x4a59=function(_0x153315,_0x659250){_0x153315=_0x153315-0x0;let _0x4a59ce=a14_0x6592[_0x153315];return _0x4a59ce;};'use strict';Object[a14_0x4a59('0x4')](exports,a14_0x4a59('0x5'),{'value':!![]});exports['splitTasksIntoStages']=void 0x0;function splitTasksIntoStages(_0x242a8d){const _0x10d82b=[];const _0x3707b4=new Set(Object['values'](_0x242a8d[a14_0x4a59('0x3')])['map'](_0x5111d4=>_0x5111d4['id']));let _0x5eaad9=0x0;while(_0x3707b4[a14_0x4a59('0x1')]>0x0){const _0x4f5948=_0x10d82b[_0x5eaad9]=[];for(const _0x212b90 of _0x3707b4){let _0x146048=!![];for(const _0x2cd80b of _0x242a8d[a14_0x4a59('0x2')][_0x212b90]){if(_0x3707b4['has'](_0x2cd80b)){_0x146048=![];break;}}if(!_0x146048){continue;}const _0x39a63d=_0x242a8d['tasks'][_0x212b90];_0x4f5948['push'](_0x39a63d);}for(const _0x21c3b2 of _0x4f5948){_0x3707b4['delete'](_0x21c3b2['id']);}_0x5eaad9++;}return _0x10d82b;}exports[a14_0x4a59('0x0')]=splitTasksIntoStages;

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

const a15_0x1b42=['addTaskDependencies','strictlyOrderedTargets','createTaskGraphCompat','addDependencies','target','parse','push','build','defaultTargetDependencies','/nx.json','tasks','roots','add','filter','../../../utilities/nx-imports','createTaskGraph','length','find','indexOf','dependencies','project','map','projects','projectGraph','defineProperty','TaskGraphCreator','has','keys','self','readFileSync','findTask','strip-json-comments','targetDependencies'];(function(_0x396ece,_0x1b4259){const _0x199be6=function(_0x2b0b43){while(--_0x2b0b43){_0x396ece['push'](_0x396ece['shift']());}};_0x199be6(++_0x1b4259);}(a15_0x1b42,0x155));const a15_0x199b=function(_0x396ece,_0x1b4259){_0x396ece=_0x396ece-0x0;let _0x199be6=a15_0x1b42[_0x396ece];return _0x199be6;};'use strict';Object[a15_0x199b('0xd')](exports,'__esModule',{'value':!![]});exports[a15_0x199b('0xe')]=exports[a15_0x199b('0x18')]=void 0x0;const fs_1=require('fs');const stripJsonComments=require(a15_0x199b('0x14'));const {workspaceRoot}=require('../../../utilities/nx-imports-light');const {getDependencyConfigs}=require(a15_0x199b('0x3'));function createTaskGraphCompat(_0x130747,_0x22b2df,_0x59af26){const _0x18a787=JSON[a15_0x199b('0x1b')](stripJsonComments((0x0,fs_1[a15_0x199b('0x12')])(workspaceRoot+a15_0x199b('0x1f'))['toString']()));return new TaskGraphCreator(_0x22b2df,getDefaultDependencyConfigs(_0x18a787,_0x130747))[a15_0x199b('0x4')](_0x59af26);}exports[a15_0x199b('0x18')]=createTaskGraphCompat;function getDefaultDependencyConfigs(_0x29d523,_0x44b390){var _0x15b6b1,_0x49c4c6;const _0x2d0ebe=(_0x15b6b1=_0x29d523[a15_0x199b('0x15')])!==null&&_0x15b6b1!==void 0x0?_0x15b6b1:{};const _0x12588c=_0x44b390?(_0x49c4c6=_0x44b390[a15_0x199b('0x17')])!==null&&_0x49c4c6!==void 0x0?_0x49c4c6:[a15_0x199b('0x1d')]:[];for(const _0x1b8f59 of _0x12588c){_0x2d0ebe[_0x1b8f59]=_0x2d0ebe[_0x1b8f59]||[];_0x2d0ebe[_0x1b8f59][a15_0x199b('0x1c')]({'target':_0x1b8f59,'projects':a15_0x199b('0x8')});}return _0x2d0ebe;}class TaskGraphCreator{constructor(_0x134441,_0x4be44e){this[a15_0x199b('0xc')]=_0x134441;this[a15_0x199b('0x1e')]=_0x4be44e;}[a15_0x199b('0x4')](_0x468297){const _0x1392c8={'roots':[],'tasks':{},'dependencies':{}};for(const _0x18fc32 of _0x468297){this['addTaskToGraph'](_0x18fc32,_0x1392c8);const _0x3e2842=getDependencyConfigs(_0x18fc32['target'],this[a15_0x199b('0x1e')],this['projectGraph']);if(!_0x3e2842){continue;}this[a15_0x199b('0x16')](_0x18fc32,_0x3e2842,_0x468297,_0x1392c8);}_0x1392c8[a15_0x199b('0x0')]=Object[a15_0x199b('0x10')](_0x1392c8[a15_0x199b('0x8')])[a15_0x199b('0x2')](_0x360ebf=>_0x1392c8[a15_0x199b('0x8')][_0x360ebf][a15_0x199b('0x5')]===0x0);return _0x1392c8;}[a15_0x199b('0x16')](_0x35aa99,_0x300c34,_0x260780,_0x56ce53){for(const _0x10b557 of _0x300c34){if(_0x10b557[a15_0x199b('0xb')]===a15_0x199b('0x11')){for(const _0x508a53 of _0x260780){if(_0x508a53[a15_0x199b('0x1a')][a15_0x199b('0x9')]===_0x35aa99['target'][a15_0x199b('0x9')]&&_0x508a53[a15_0x199b('0x1a')][a15_0x199b('0x1a')]===_0x10b557[a15_0x199b('0x1a')]){_0x56ce53['dependencies'][_0x35aa99['id']][a15_0x199b('0x1c')](_0x508a53['id']);}}}else if(_0x10b557[a15_0x199b('0xb')]===a15_0x199b('0x8')){const _0x191765=new Set();this['addDependencies'](_0x35aa99[a15_0x199b('0x1a')][a15_0x199b('0x9')],_0x10b557[a15_0x199b('0x1a')],_0x260780,_0x56ce53,_0x35aa99['id'],_0x191765);}}}[a15_0x199b('0x19')](_0x149e42,_0x5d7818,_0x42531a,_0x189402,_0xed7c28,_0x159226){_0x159226[a15_0x199b('0x1')](_0x149e42);const _0x55146c=this[a15_0x199b('0xc')][a15_0x199b('0x8')][_0x149e42];if(_0x55146c){const _0x5892d4=_0x55146c[a15_0x199b('0xa')](_0xbdca03=>_0xbdca03[a15_0x199b('0x1a')]);for(const _0x1d796b of _0x5892d4){if(_0x159226[a15_0x199b('0xf')](_0x1d796b)){continue;}const _0xd39a21=this[a15_0x199b('0x13')]({'project':_0x1d796b,'target':_0x5d7818},_0x42531a);if(_0xd39a21){if(_0x189402[a15_0x199b('0x8')][_0xed7c28][a15_0x199b('0x7')](_0xd39a21['id'])===-0x1){_0x189402['dependencies'][_0xed7c28][a15_0x199b('0x1c')](_0xd39a21['id']);}}else{this[a15_0x199b('0x19')](_0x1d796b,_0x5d7818,_0x42531a,_0x189402,_0xed7c28,_0x159226);}}}}[a15_0x199b('0x13')]({project,target},_0x30f818){return _0x30f818[a15_0x199b('0x6')](_0xc172f=>_0xc172f['target'][a15_0x199b('0x9')]===project&&_0xc172f[a15_0x199b('0x1a')][a15_0x199b('0x1a')]===target);}['addTaskToGraph'](_0x1101c9,_0x249d64){_0x249d64[a15_0x199b('0x20')][_0x1101c9['id']]=_0x1101c9;_0x249d64['dependencies'][_0x1101c9['id']]=[];}}exports[a15_0x199b('0xe')]=TaskGraphCreator;
const a15_0x4c1c=['self','build','find','addTaskToGraph','TaskGraphCreator','length','../../../utilities/nx-imports','dependencies','strictlyOrderedTargets','createTaskGraphCompat','projects','/nx.json','__esModule','addTaskDependencies','tasks','strip-json-comments','addDependencies','readFileSync','push','defaultTargetDependencies','project','roots','add','target','keys','../../../utilities/nx-imports-light','targetDependencies','defineProperty','filter','createTaskGraph','has','findTask','parse'];(function(_0x5b8cc4,_0x4c1c59){const _0x5f464c=function(_0x25de1f){while(--_0x25de1f){_0x5b8cc4['push'](_0x5b8cc4['shift']());}};_0x5f464c(++_0x4c1c59);}(a15_0x4c1c,0x1e4));const a15_0x5f46=function(_0x5b8cc4,_0x4c1c59){_0x5b8cc4=_0x5b8cc4-0x0;let _0x5f464c=a15_0x4c1c[_0x5b8cc4];return _0x5f464c;};'use strict';Object[a15_0x5f46('0x5')](exports,a15_0x5f46('0x17'),{'value':!![]});exports[a15_0x5f46('0xf')]=exports[a15_0x5f46('0x14')]=void 0x0;const fs_1=require('fs');const stripJsonComments=require(a15_0x5f46('0x1a'));const {workspaceRoot}=require(a15_0x5f46('0x3'));const {getDependencyConfigs}=require(a15_0x5f46('0x11'));function createTaskGraphCompat(_0x1035c8,_0x480de4,_0xd5a75a){const _0x2fb907=JSON[a15_0x5f46('0xa')](stripJsonComments((0x0,fs_1[a15_0x5f46('0x1c')])(workspaceRoot+a15_0x5f46('0x16'))['toString']()));return new TaskGraphCreator(_0x480de4,getDefaultDependencyConfigs(_0x2fb907,_0x1035c8))['createTaskGraph'](_0xd5a75a);}exports[a15_0x5f46('0x14')]=createTaskGraphCompat;function getDefaultDependencyConfigs(_0x3285b2,_0x56be4e){var _0x204f62,_0x2b25cb;const _0x318ab1=(_0x204f62=_0x3285b2[a15_0x5f46('0x4')])!==null&&_0x204f62!==void 0x0?_0x204f62:{};const _0x5c2403=_0x56be4e?(_0x2b25cb=_0x56be4e[a15_0x5f46('0x13')])!==null&&_0x2b25cb!==void 0x0?_0x2b25cb:[a15_0x5f46('0xc')]:[];for(const _0x31937e of _0x5c2403){_0x318ab1[_0x31937e]=_0x318ab1[_0x31937e]||[];_0x318ab1[_0x31937e][a15_0x5f46('0x1d')]({'target':_0x31937e,'projects':a15_0x5f46('0x12')});}return _0x318ab1;}class TaskGraphCreator{constructor(_0x13ab94,_0xf9ec7f){this['projectGraph']=_0x13ab94;this[a15_0x5f46('0x1e')]=_0xf9ec7f;}[a15_0x5f46('0x7')](_0x345bf2){const _0x456b07={'roots':[],'tasks':{},'dependencies':{}};for(const _0x567118 of _0x345bf2){this[a15_0x5f46('0xe')](_0x567118,_0x456b07);const _0x1be59c=getDependencyConfigs(_0x567118[a15_0x5f46('0x1')],this[a15_0x5f46('0x1e')],this['projectGraph']);if(!_0x1be59c){continue;}this[a15_0x5f46('0x18')](_0x567118,_0x1be59c,_0x345bf2,_0x456b07);}_0x456b07[a15_0x5f46('0x20')]=Object[a15_0x5f46('0x2')](_0x456b07[a15_0x5f46('0x12')])[a15_0x5f46('0x6')](_0x221fce=>_0x456b07[a15_0x5f46('0x12')][_0x221fce][a15_0x5f46('0x10')]===0x0);return _0x456b07;}[a15_0x5f46('0x18')](_0xe824a3,_0x4ef55e,_0x4464c9,_0x3fe368){for(const _0x2711f7 of _0x4ef55e){if(_0x2711f7[a15_0x5f46('0x15')]===a15_0x5f46('0xb')){for(const _0x9f0d46 of _0x4464c9){if(_0x9f0d46[a15_0x5f46('0x1')][a15_0x5f46('0x1f')]===_0xe824a3['target']['project']&&_0x9f0d46[a15_0x5f46('0x1')][a15_0x5f46('0x1')]===_0x2711f7[a15_0x5f46('0x1')]){_0x3fe368[a15_0x5f46('0x12')][_0xe824a3['id']]['push'](_0x9f0d46['id']);}}}else if(_0x2711f7[a15_0x5f46('0x15')]===a15_0x5f46('0x12')){const _0x23d567=new Set();this['addDependencies'](_0xe824a3[a15_0x5f46('0x1')][a15_0x5f46('0x1f')],_0x2711f7[a15_0x5f46('0x1')],_0x4464c9,_0x3fe368,_0xe824a3['id'],_0x23d567);}}}[a15_0x5f46('0x1b')](_0x43ab61,_0xc48a77,_0x178f64,_0x2413f2,_0x1e0bb2,_0x4454c5){_0x4454c5[a15_0x5f46('0x0')](_0x43ab61);const _0x11cf92=this['projectGraph'][a15_0x5f46('0x12')][_0x43ab61];if(_0x11cf92){const _0x4eb722=_0x11cf92['map'](_0x153a22=>_0x153a22[a15_0x5f46('0x1')]);for(const _0x157abd of _0x4eb722){if(_0x4454c5[a15_0x5f46('0x8')](_0x157abd)){continue;}const _0x132b9a=this[a15_0x5f46('0x9')]({'project':_0x157abd,'target':_0xc48a77},_0x178f64);if(_0x132b9a){if(_0x2413f2[a15_0x5f46('0x12')][_0x1e0bb2]['indexOf'](_0x132b9a['id'])===-0x1){_0x2413f2[a15_0x5f46('0x12')][_0x1e0bb2][a15_0x5f46('0x1d')](_0x132b9a['id']);}}else{this[a15_0x5f46('0x1b')](_0x157abd,_0xc48a77,_0x178f64,_0x2413f2,_0x1e0bb2,_0x4454c5);}}}}[a15_0x5f46('0x9')]({project,target},_0x205c74){return _0x205c74[a15_0x5f46('0xd')](_0x4f790e=>_0x4f790e[a15_0x5f46('0x1')]['project']===project&&_0x4f790e[a15_0x5f46('0x1')][a15_0x5f46('0x1')]===target);}[a15_0x5f46('0xe')](_0x194d2d,_0x4b19ae){_0x4b19ae[a15_0x5f46('0x19')][_0x194d2d['id']]=_0x194d2d;_0x4b19ae['dependencies'][_0x194d2d['id']]=[];}}exports['TaskGraphCreator']=TaskGraphCreator;

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

});
extractStream.on('close', () => {
extractStream.on('finish', () => {
removeOldClientBundles(runnerBundleInstallDirectory, version);

@@ -214,0 +214,0 @@ writeBundleVerificationLock(runnerBundleInstallDirectory);

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

@@ -23,3 +23,3 @@ "keywords": [

"dependencies": {
"axios": "1.1.3",
"axios": "^1.6.0",
"dotenv": "~10.0.0",

@@ -33,5 +33,5 @@ "node-machine-id": "^1.1.12",

"open": "~8.4.0",
"@nrwl/nx-cloud": "18.0.1"
"@nrwl/nx-cloud": "19.0.0"
},
"type": "commonjs"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc