browserstack-node-sdk 1.34.1 → 1.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -2
- package/src/ai-sdk-node/bundle.js +1 -0
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -0
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a9_0x2546(_0x56f5ce,_0xd166f1){const _0x3ab82d=a9_0x3ab8();return a9_0x2546=function(_0x25461a,_0x2d7c69){_0x25461a=_0x25461a-0x17e;let _0x2318b1=_0x3ab82d[_0x25461a];return _0x2318b1;},a9_0x2546(_0x56f5ce,_0xd166f1);}const a9_0x5110fc=a9_0x2546;function a9_0x3ab8(){const _0x4c4a18=['nYULP','vpc','isClusterPresent','help','mbIgD','pMuOR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','mZpye','tTxJX','NUVdI','bGtNC','isSubnetsValid','privateGrid','HMXwl','15HBEHKa','error','options','s3bucket','WJlvn','Deleting\x20the\x20CloudFormation\x20Stacks','TPlLP','grid-spawning-failed','OnCJm','GFmAB','pMYhI','cloudProvider','Uhzmd','concurrency','instanceType','uuid','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','kZqdN','region','bstackUsername','hubVersion','default','cTyHw','subnets','BMpKT','length','nGqWi','Found\x20Subnets:\x20','EsiNr','isVPCPresent','csLGS','warn','builder','Creating\x20namespace','ZGxba','vNGAZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oTcuL','Ergha','deleteCluster','BcdVO','JQpkC','Cybla','grid','1|2|3|4|0','uOrSi','12186210pTLjKC','TmkeN','message','Odely','UNOyL','pre-spawned-subnets-not-selected','eYSpa','password','LFHEA','LOG','sendResourceDataToHST','sendEventToBackend','statusCode','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','username','rPrlX','uHpTF','EBfpO','command','ehgse','\x27\x20grid\x20profile','Grid\x20can\x20be\x20accessed\x20at:\x20','1853574brOZFr','turboscale-managed-identity-','CRuLz','type','qNcUF','../../utils/createk8sClient','mEyrj','58537sopoqb','cluster-name','YPfAc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','413AVaiuT','EEJtf','private-grid','delay','YjQoH','clusterName','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid-profile','got','writeFileSync','YRxDV','WxJTd','requestId','private-ingress-nginx-controller','kpzpH','fHDYC','CEiuC','pre-spawned-invalid-vpc','grid-name','11754315TOWvTL','fetchLocalCreds','50EIWdpg','YlCpq','route53','updatePreSpawnedCluster','OWNHH','vLgqp','Found\x20VPC:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','../../utils/utilityMethods','DqDdU','YjICp','createdBy','../../config/constants','namespace','prespawned-cluster-args-not-passed','<UsernamePlaceholder>','mIAab','browserVersion','Grid\x20spawned\x20on\x20the\x20cluster','user','DJldo','NmfGg','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','mGTQg','create-grid-checks-grid-already-exists','3|5|6|0|8|4|1|7|2','bstackAccesskey','createOtherResources','https','NONfZ','create','dAXwI','Subnets:\x20','create-grid-checks-null-response','INFO','setupAutoscaler','gridName','CLI\x20run\x20started','VAsJK','QluSj','pblPl','GRdWe','Bpcpr','yNodW','pre-spawned-invalid-subnets','SzIfL','TTfAK','parse','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','atkfI','ingress-nginx','573264DkCRFD','goxaQ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','hWDiV','rlLcl','Pizcx','toLowerCase','Cluster\x20','<PasswordPlaceholder>','string','jHGkC','https://','defaultGridProfile','rbkUr','/packages/cli/get-grid-url?gridIdentifier=','MUkCx','existsSync','EiNjS','init-not-called','XUJCT','/wd/hub','koEos','QCNES','NtEHz','SJVyf','minNodes','bpRhY','argv','includes','mxSLV','pdXrA','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','true','VGDjC','exit','ithVj','usage','http','NDfLF','handler','Namespace\x20Created','ERROR','zVyNu','../../cloudproviders/utils','setupNewCluster','oysmO','metadata','CLI_RUN_STARTED','://','SpsIT','../../utils/webSocketUtils','rDhTO','../../utils/userInput','stjIy','Spawning\x20grid\x20on\x20to\x20the\x20cluster','nzfKO','name','VAgUh','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','WebSocket','cloud-provider','epilogue','fmuTz','get-grid-url-null-response','clusterRegion','BRTTh','uPOzh','get-grid-url-auth-failed','stack','\x20using\x20\x27','xXqXG','split','configureIfNotConfigured','connectionTimeout','OSWXx','rnCwx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Fqqsp','getResourceClientId','info','TjmdD','desc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','ingress-nginx-controller','readFileSync','Mqffh','gridProfile','foiEe','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','sFGUk','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ubkTp','yzdsh','QauQM','ELGam','ETkXQ','wCRiI','kDnGO','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','oiOii','Fnqmk','pGSTq','dzCGj','Create\x20a\x20private/public\x20grid.','5955460iKPWBd','readNamespacedService','getGridHostname','CzoDf','reconnecting-websocket','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','BDxOS','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','non-aws-azure-cluster','isPrivateGrid','RKmxw','../../config/logger','TGwrk','JbKwT','Will\x20be\x20spawning\x20the\x20grid\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','VokdA','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','rMmFK','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','description','stringify','Grid\x20profile\x20fetched\x20from\x20backend','FJoLc','dmOOv','\x20in\x20existing\x20cluster\x20\x27','Browserstack','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Create\x20a\x20new\x20Automation\x20grid.','iWuBY','EigUv','40952cqDpkd','jolGs','replace'];a9_0x3ab8=function(){return _0x4c4a18;};return a9_0x3ab8();}(function(_0x528336,_0x3866b4){const _0x27237c=a9_0x2546,_0x2ba96d=_0x528336();while(!![]){try{const _0xcbd463=parseInt(_0x27237c(0x2a2))/0x1*(-parseInt(_0x27237c(0x189))/0x2)+parseInt(_0x27237c(0x1bc))/0x3+parseInt(_0x27237c(0x225))/0x4+parseInt(_0x27237c(0x256))/0x5*(parseInt(_0x27237c(0x29b))/0x6)+-parseInt(_0x27237c(0x2a6))/0x7*(parseInt(_0x27237c(0x245))/0x8)+-parseInt(_0x27237c(0x187))/0x9+parseInt(_0x27237c(0x284))/0xa;if(_0xcbd463===_0x3866b4)break;else _0x2ba96d['push'](_0x2ba96d['shift']());}catch(_0x38ec08){_0x2ba96d['push'](_0x2ba96d['shift']());}}}(a9_0x3ab8,0xb80d8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x5110fc(0x229)),got=require(a9_0x5110fc(0x2ae)),{v4:uuidv4}=require(a9_0x5110fc(0x265)),webSocketUtils=require(a9_0x5110fc(0x1ee)),{logger}=require(a9_0x5110fc(0x231)),{inputCloudProviderKeys}=require(a9_0x5110fc(0x1f0)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5110fc(0x191)),{getCloudProviderObject}=require(a9_0x5110fc(0x1e7)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x5110fc(0x195)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x5110fc(0x2a0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x5110fc(0x297)]=a9_0x5110fc(0x281),exports[a9_0x5110fc(0x20d)]=a9_0x5110fc(0x242),exports[a9_0x5110fc(0x276)]=function(_0x4069b7){const _0x37056a=a9_0x5110fc,_0x28f57f={};_0x28f57f['iWuBY']=_0x37056a(0x21f),_0x28f57f['dmOOv']=_0x37056a(0x1c5),_0x28f57f['ehgse']=_0x37056a(0x235),_0x28f57f['ELGam']=_0x37056a(0x2a5),_0x28f57f[_0x37056a(0x212)]=_0x37056a(0x217),_0x28f57f['fHDYC']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x28f57f[_0x37056a(0x223)]=_0x37056a(0x224),_0x28f57f[_0x37056a(0x26c)]=_0x37056a(0x24b);const _0x1fafc6=_0x28f57f,_0x591cb9={};_0x591cb9['description']=_0x1fafc6[_0x37056a(0x243)],_0x591cb9[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x203dc6={};_0x203dc6[_0x37056a(0x23a)]=_0x1fafc6[_0x37056a(0x298)],_0x203dc6[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x2ae24c={};_0x2ae24c['description']=_0x1fafc6[_0x37056a(0x21b)],_0x2ae24c[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x209412={};_0x209412['description']=_0x1fafc6[_0x37056a(0x212)],_0x209412[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x54ccd2={};_0x54ccd2['description']=_0x1fafc6[_0x37056a(0x183)],_0x54ccd2['type']=_0x1fafc6[_0x37056a(0x23e)];const _0x2fc3b8={};_0x2fc3b8[_0x37056a(0x23a)]=_0x1fafc6['dzCGj'],_0x2fc3b8[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x13c826={};return _0x13c826[_0x37056a(0x186)]=_0x591cb9,_0x13c826[_0x37056a(0x2ad)]=_0x203dc6,_0x13c826[_0x37056a(0x2a3)]=_0x2ae24c,_0x13c826[_0x37056a(0x1f8)]=_0x209412,_0x13c826[_0x37056a(0x268)]=_0x54ccd2,_0x13c826[_0x37056a(0x2a8)]=_0x2fc3b8,_0x4069b7[_0x37056a(0x1e0)](HELP_HEADER_MESSAGE[_0x37056a(0x1a7)])[_0x37056a(0x1f9)](HELP_FOOTER_MESSAGE)['options'](_0x13c826)[_0x37056a(0x24b)](_0x1fafc6[_0x37056a(0x26c)])[_0x37056a(0x1d7)];},exports[a9_0x5110fc(0x1e3)]=async function(_0x4f3380){const _0x1ebc18=a9_0x5110fc,_0x5ec5af={'BcdVO':_0x1ebc18(0x257),'kpzpH':_0x1ebc18(0x1a5),'mbIgD':'7|3|1|8|4|6|2|5|0','JbKwT':_0x1ebc18(0x21f),'TPlLP':'string','CEiuC':_0x1ebc18(0x235),'vLgqp':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vMNAV':_0x1ebc18(0x217),'oiOii':_0x1ebc18(0x292),'QauQM':_0x1ebc18(0x224),'rFHaf':_0x1ebc18(0x24b),'tTxJX':_0x1ebc18(0x275),'YPfAc':_0x1ebc18(0x1e1),'SpsIT':function(_0x4777bd){return _0x4777bd();},'Pizcx':function(_0x38cd70){return _0x38cd70();},'CzoDf':function(_0x4c77e4,_0x5af3cc){return _0x4c77e4!==_0x5af3cc;},'ZxPHz':_0x1ebc18(0x207),'vXIwI':_0x1ebc18(0x27a),'rPrlX':function(_0x2aae74,_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9){return _0x2aae74(_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9);},'qNcUF':'create-grid-called','XUJCT':_0x1ebc18(0x1ce),'EiNjS':_0x1ebc18(0x198),'hWDiV':_0x1ebc18(0x1c4),'IjyBp':'Adding\x20Websocket\x20listeners','IjqfJ':function(_0x102f90,_0x56219f){return _0x102f90!==_0x56219f;},'bqiaQ':'GDLwW','csLGS':'xxCUn','hYipM':_0x1ebc18(0x1a6),'foiEe':_0x1ebc18(0x2a7),'SAiuX':_0x1ebc18(0x1b9),'QluSj':function(_0x1b1a6b,_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289){return _0x1b1a6b(_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289);},'SzIfL':_0x1ebc18(0x197),'fmuTz':function(_0x3b0067,_0x376a72){return _0x3b0067===_0x376a72;},'SJVyf':_0x1ebc18(0x287),'uPOzh':'ZjwMx','ETkXQ':_0x1ebc18(0x239),'Uhzmd':function(_0x5ecfd1,_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083){return _0x5ecfd1(_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083);},'bpRhY':_0x1ebc18(0x22e),'mZpye':_0x1ebc18(0x1dc),'nGqWi':_0x1ebc18(0x1c0),'jHGkC':function(_0x2c3520,_0x144449){return _0x2c3520!==_0x144449;},'pGSTq':_0x1ebc18(0x1f5),'UNOyL':function(_0x3ffa9b,_0xf84079){return _0x3ffa9b===_0xf84079;},'Fqqsp':_0x1ebc18(0x283),'llSBu':'GET','OWNHH':function(_0x458cc6,_0x1b3b60,_0x4a431b){return _0x458cc6(_0x1b3b60,_0x4a431b);},'TTfAK':_0x1ebc18(0x267),'yNodW':_0x1ebc18(0x24e),'rDhTO':_0x1ebc18(0x1aa),'kiYmu':_0x1ebc18(0x28c),'ZFpWt':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','smLIS':'create-grid-checks-auth-failed','TmkeN':function(_0x38509e,_0x51bf81){return _0x38509e===_0x51bf81;},'MfurH':_0x1ebc18(0x1fd),'EigUv':_0x1ebc18(0x1b2),'OnCJm':'create-grid-checks-non-200','nYULP':_0x1ebc18(0x23c),'ZhGXn':function(_0x1a0256,_0x19ab0a){return _0x1a0256===_0x19ab0a;},'VAsJK':'ApheZ','WxJTd':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','rbkUr':function(_0x2bdfc0,_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5){return _0x2bdfc0(_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5);},'YlCpq':_0x1ebc18(0x1a1),'Fnqmk':_0x1ebc18(0x17e),'wCRiI':_0x1ebc18(0x1e9),'sFGUk':function(_0x48bd51,_0xab4e24){return _0x48bd51===_0xab4e24;},'ithVj':_0x1ebc18(0x1a8),'MUkCx':_0x1ebc18(0x1d3),'mxSLV':_0x1ebc18(0x22c),'kDnGO':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','qeWth':'create-grid-checks-invalid-profile','koEos':function(_0x1d206d,_0x3fce51){return _0x1d206d===_0x3fce51;},'mEyrj':_0x1ebc18(0x19e),'RKmxw':function(_0x274715,_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9){return _0x274715(_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9);},'pMuOR':function(_0x5b2e73,_0x56abf0){return _0x5b2e73!==_0x56abf0;},'ygZaZ':'THMtX','mIAab':_0x1ebc18(0x219),'goxaQ':_0x1ebc18(0x1a2),'jolGs':function(_0x3b819f,_0x2f2214){return _0x3b819f===_0x2f2214;},'EBfpO':_0x1ebc18(0x215),'TGwrk':function(_0x2bf129,_0x59ddf7){return _0x2bf129===_0x59ddf7;},'vNGAZ':function(_0x461a98,_0x1666f6,_0x1bc843,_0x1d47df){return _0x461a98(_0x1666f6,_0x1bc843,_0x1d47df);},'HMXwl':_0x1ebc18(0x19f),'CRuLz':_0x1ebc18(0x291),'LVTBi':function(_0x4d87ea,_0x14017d){return _0x4d87ea!==_0x14017d;},'BMpKT':function(_0x286b8e,_0x25ad09){return _0x286b8e===_0x25ad09;},'xXqXG':_0x1ebc18(0x20e),'DJldo':function(_0x338743,_0x1111e2){return _0x338743!=_0x1111e2;},'PrfWg':function(_0x4566b4,_0x20f428){return _0x4566b4!==_0x20f428;},'DqDdU':function(_0x2608ab,_0x357807){return _0x2608ab>_0x357807;},'EsiNr':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','bGtNC':function(_0x36b23e,_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898){return _0x36b23e(_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898);},'Cybla':_0x1ebc18(0x289),'QCNES':function(_0x59147f,_0x4a2d2a){return _0x59147f===_0x4a2d2a;},'NUVdI':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NDfLF':_0x1ebc18(0x185),'FuPyP':function(_0x1f0715,_0x2cfe0a){return _0x1f0715===_0x2cfe0a;},'TjmdD':_0x1ebc18(0x1b5),'YjQoH':_0x1ebc18(0x282),'iiKLf':'Cluster\x20created\x20successfully','FJoLc':_0x1ebc18(0x22d),'pMYhI':function(_0x5b5328,_0x276c4c){return _0x5b5328===_0x276c4c;},'oTcuL':function(_0x28c55c,_0x533e76){return _0x28c55c(_0x533e76);},'nzfKO':function(_0x203659,_0x488e73){return _0x203659==_0x488e73;},'ubkTp':_0x1ebc18(0x277),'uHpTF':_0x1ebc18(0x26b),'atkfI':_0x1ebc18(0x240),'BomGy':_0x1ebc18(0x1e4),'JQpkC':'Namespace\x20created','zVyNu':_0x1ebc18(0x1f2),'VokdA':_0x1ebc18(0x190),'jjvpf':function(_0x216553,_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1){return _0x216553(_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1);},'Bpcpr':_0x1ebc18(0x19b),'GFmAB':_0x1ebc18(0x1db),'ZGxba':function(_0x13a2f2,_0x24e252,_0x5deb44,_0x890ce4,_0x48c741){return _0x13a2f2(_0x24e252,_0x5deb44,_0x890ce4,_0x48c741);},'WJlvn':function(_0x5421ac,_0x186bfb,_0x3afe1f){return _0x5421ac(_0x186bfb,_0x3afe1f);},'Ergha':_0x1ebc18(0x181),'VGDjC':_0x1ebc18(0x210),'stjIy':_0x1ebc18(0x1bb),'OSWXx':function(_0x12da79,_0xa9e84e,_0x32d927){return _0x12da79(_0xa9e84e,_0x32d927);},'ImahP':function(_0x31d8d1,_0x2c4522){return _0x31d8d1==_0x2c4522;},'rMmFK':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gMdmo':function(_0x278dca,_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb){return _0x278dca(_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb);},'eYSpa':_0x1ebc18(0x1fb),'tYFrw':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','mGTQg':_0x1ebc18(0x1ff),'hdowz':function(_0x25a870,_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a){return _0x25a870(_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a);},'YjICp':'get-grid-url-non-200','pblPl':function(_0x154649,_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41){return _0x154649(_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41);},'pdXrA':_0x1ebc18(0x25d)};let _0x401707=![],_0x3e855f,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6946,_0x2c6229,_0x3f9948,_0x3e1cbc,_0x4d23ef,_0x4248e7,_0x1c4e0f=0x1,_0x58c419=0xe;try{global_registry[_0x1ebc18(0x180)]=_0x5ec5af[_0x1ebc18(0x1ed)](uuidv4),global_registry[_0x1ebc18(0x22f)]=![];!fs[_0x1ebc18(0x1cc)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath))&&(_0x5ec5af[_0x1ebc18(0x228)](_0x5ec5af['ZxPHz'],_0x5ec5af['ZxPHz'])?_0x3344d0['cloudProvider']={}:(console[_0x1ebc18(0x257)](_0x5ec5af['vXIwI']),await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1cf)],null,_0x4f3380),process[_0x1ebc18(0x1de)](0x1)));await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1ab)],null,null,_0x4f3380);const _0x8ad0c5=JSON['parse'](fs[_0x1ebc18(0x211)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath)));global_registry[_0x1ebc18(0x269)]=_0x8ad0c5[_0x1ebc18(0x240)]['username'],global_registry[_0x1ebc18(0x1a3)]=_0x8ad0c5['Browserstack']['password'];const _0x4540e9=WS_ENDPOINT[_0x1ebc18(0x247)](_0x5ec5af[_0x1ebc18(0x1cd)],_0x8ad0c5['Browserstack'][_0x1ebc18(0x293)])['replace'](_0x5ec5af[_0x1ebc18(0x1bf)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),_0x4f18a4={};_0x4f18a4[_0x1ebc18(0x1f7)]=ws,_0x4f18a4[_0x1ebc18(0x205)]=0x36ee80,_0x3e1cbc=new ReconnectingWebSocket(_0x4540e9,[],_0x4f18a4),logger['debug'](_0x5ec5af['IjyBp']),webSocketUtils['addListeners'](_0x3e1cbc,_0x4f3380[_0x1ebc18(0x19c)],_0x4f3380[_0x1ebc18(0x28b)]);let _0x2ca59b=DEFAULT_GRID_NAME;(_0x4f3380[_0x1ebc18(0x2ab)]||_0x4f3380[_0x1ebc18(0x261)]||_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['IjqfJ'](_0x5ec5af['bqiaQ'],_0x5ec5af[_0x1ebc18(0x274)])?(!(_0x4f3380[_0x1ebc18(0x2ab)]&&_0x4f3380['cloudProvider']&&_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['CzoDf'](_0x5ec5af['hYipM'],_0x5ec5af[_0x1ebc18(0x214)])?(_0x3e855f=_0x5ec5af['SAiuX'],await _0x5ec5af[_0x1ebc18(0x1b0)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1b6)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x227c2d[_0x1ebc18(0x22f)]=!![]),![AWS,AZURE,GCP][_0x1ebc18(0x1d8)](_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)]())&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1d4)],_0x5ec5af[_0x1ebc18(0x1fe)])?_0x258c9e[_0x1ebc18(0x257)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0xd31705+'\x20\x0a'+_0x1448a7[_0x1ebc18(0x23b)](_0xcde52a['stack'])):(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21c)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1d6)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1))),_0x4f3380[_0x1ebc18(0x254)]&&_0x5ec5af[_0x1ebc18(0x1fa)](_0x4f3380['privateGrid'][_0x1ebc18(0x1c2)](),_0x5ec5af[_0x1ebc18(0x24f)])&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x270)],_0x5ec5af[_0x1ebc18(0x270)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x3e0ba3=_0x437f27[_0xda5921[_0x1ebc18(0x213)]]),_0x401707=!![],_0x406c74=_0x4f3380[_0x1ebc18(0x2ab)],_0x1c492c=_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)](),_0x36e8e4=_0x4f3380[_0x1ebc18(0x268)]):_0x2f0845[_0x1ebc18(0x20b)]('Found\x20VPC:\x20'+_0x3123f8+'\x20'));if(_0x4f3380[_0x1ebc18(0x1ad)]){if(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x222)],_0x5ec5af[_0x1ebc18(0x222)])){const _0xbf54cc={};_0xbf54cc[_0x1ebc18(0x29e)]=_0x4d7401[_0x1ebc18(0x28d)],_0xbf54cc['message']=_0x411775,_0xc29500['sendEventToBackend'](_0x281c07,_0xbf54cc,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}else _0x2ca59b=_0x4f3380['gridName'];}_0x4f3380['gridProfile']&&(_0x5ec5af['UNOyL'](_0x5ec5af[_0x1ebc18(0x209)],_0x5ec5af[_0x1ebc18(0x209)])?global_registry[_0x1ebc18(0x213)]=_0x4f3380['gridProfile']:(_0x16e5f2=_0x4262b6['route53'],_0x1081c3=_0x5ec5af[_0x1ebc18(0x182)]));global_registry['gridName']=_0x2ca59b;const _0x535172={'method':_0x5ec5af['llSBu'],'headers':_0x5ec5af[_0x1ebc18(0x18d)](getAuthHeader,_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x293)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),'throwHttpErrors':![]},_0x146099=_0x1ebc18(0x1c7)+AG_API_URL+'/packages/cli/create-grid-checks',_0x7bc92d={};_0x7bc92d[_0x1ebc18(0x1ad)]=_0x2ca59b;const _0x324154={'searchParams':_0x7bc92d,'throwHttpErrors':![],..._0x535172},_0x440496=_0x324154,_0x1de9e8=await _0x5ec5af[_0x1ebc18(0x18d)](got,_0x146099,_0x440496);if(_0x5ec5af[_0x1ebc18(0x288)](_0x1de9e8,null)||_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8,undefined)){if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1b7)],_0x5ec5af[_0x1ebc18(0x1b7)]))_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b4)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1ef)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x9c9b44=_0x5ec5af[_0x1ebc18(0x24c)][_0x1ebc18(0x203)]('|');let _0x165808=0x0;while(!![]){switch(_0x9c9b44[_0x165808++]){case'0':_0x1c6a59[_0x1ebc18(0x19a)]=_0x4b6f21[_0x1ebc18(0x19a)];continue;case'1':_0x4e535a['info'](_0xa1092c);continue;case'2':_0x460ff8[_0x1ebc18(0x2ab)]=_0x5bf143;continue;case'3':_0x4a3931='Spawning\x20the\x20grid\x20'+_0x55d995+_0x1ebc18(0x23f)+_0x39b715+'\x27';continue;case'4':_0x51412e[_0x1ebc18(0x261)]=_0x14722d;continue;case'5':_0x30c42c[_0x1ebc18(0x26a)]=_0xd1a507[_0x1ebc18(0x26a)];continue;case'6':_0x5e517f[_0x1ebc18(0x1fc)]=_0x54488b;continue;case'7':const _0x416898={};_0x416898['type']=_0x6212c2['CLI_RUN_STARTED'],_0x416898[_0x1ebc18(0x286)]=_0x1ebc18(0x1ae),_0x53862a[_0x1ebc18(0x28f)](_0x1edc44,_0x416898);continue;case'8':const _0x19558d={};_0x19558d[_0x1ebc18(0x29e)]=_0x2c459d[_0x1ebc18(0x28d)],_0x19558d[_0x1ebc18(0x286)]=_0x284994,_0xa001d8[_0x1ebc18(0x28f)](_0x6316fc,_0x19558d);continue;}break;}}}if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8[_0x1ebc18(0x290)],0x191)){if(_0x5ec5af[_0x1ebc18(0x288)](_0x5ec5af['kiYmu'],_0x5ec5af['kiYmu']))_0x3e855f=_0x5ec5af['ZFpWt'],await _0x5ec5af['Uhzmd'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['smLIS'],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x35ef8d={};_0x35ef8d[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x233)],_0x35ef8d[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x420849={};_0x420849['description']=_0x5ec5af[_0x1ebc18(0x184)],_0x420849['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x3c3d36={};_0x3c3d36[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x18e)],_0x3c3d36[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0xf6d42b={};_0xf6d42b[_0x1ebc18(0x23a)]=_0x5ec5af['vMNAV'],_0xf6d42b['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x112b4d={};_0x112b4d['description']=_0x5ec5af[_0x1ebc18(0x220)],_0x112b4d[_0x1ebc18(0x29e)]=_0x5ec5af[_0x1ebc18(0x25c)];const _0x2a95f3={};_0x2a95f3['description']=_0x5ec5af[_0x1ebc18(0x21a)],_0x2a95f3[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x6e5953={};return _0x6e5953[_0x1ebc18(0x186)]=_0x35ef8d,_0x6e5953[_0x1ebc18(0x2ad)]=_0x420849,_0x6e5953[_0x1ebc18(0x2a3)]=_0x3c3d36,_0x6e5953[_0x1ebc18(0x1f8)]=_0xf6d42b,_0x6e5953['region']=_0x112b4d,_0x6e5953[_0x1ebc18(0x2a8)]=_0x2a95f3,_0x136328[_0x1ebc18(0x1e0)](_0x5acf50['create'])[_0x1ebc18(0x1f9)](_0x5411be)[_0x1ebc18(0x258)](_0x6e5953)[_0x1ebc18(0x24b)](_0x5ec5af['rFHaf'])[_0x1ebc18(0x1d7)];}}if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x1de9e8['statusCode'],0xc8)){if(_0x5ec5af[_0x1ebc18(0x285)](_0x5ec5af['MfurH'],_0x5ec5af[_0x1ebc18(0x244)])){const _0x3da469={};_0x3da469[_0x1ebc18(0x29e)]=_0x388f73[_0x1ebc18(0x28d)],_0x3da469[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x1dde5a+_0x1ebc18(0x22a),_0xeb9622[_0x1ebc18(0x28f)](_0x16611b,_0x3da469,_0x5ec5af[_0x1ebc18(0x250)]),_0x32ba57[_0x1ebc18(0x20b)](_0x1ebc18(0x1c3)+_0x85f3ef+_0x1ebc18(0x22a)),_0x5f3947=!![];}else _0x3e855f=_0x1ebc18(0x1be)+JSON[_0x1ebc18(0x23b)](_0x1de9e8),await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x25e)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);}const _0x1f8161=JSON[_0x1ebc18(0x1b8)](_0x1de9e8['body']),_0x3d143f={};_0x3d143f['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x3d143f['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x3d143f);const _0x271858={};_0x271858['type']=WS_EVENTS['LOG'],_0x271858[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x248)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x271858);_0x1f8161['alreadyPresent']&&(_0x5ec5af['ZhGXn'](_0x5ec5af[_0x1ebc18(0x1af)],_0x5ec5af[_0x1ebc18(0x1af)])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x17f)],await _0x5ec5af['rbkUr'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x18a)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x41f745['info'](_0x1ebc18(0x271)+_0x2da38a[_0x1ebc18(0x23b)](_0x290bf4)+'\x20'));const _0x1b7d9c=_0x1f8161['gridProfiles'];let _0x353171=_0x1b7d9c[_0x1f8161[_0x1ebc18(0x1c8)]];_0x4f3380[_0x1ebc18(0x213)]&&(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x221)],_0x5ec5af[_0x1ebc18(0x21d)])?_0x353171=_0x1b7d9c[_0x4f3380['gridProfile']]:_0x3fc06d[_0x1ebc18(0x22f)]=!![]);if(_0x5ec5af[_0x1ebc18(0x216)](_0x401707,![])){if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1df)],_0x5ec5af[_0x1ebc18(0x1cb)])){_0x5ec5af[_0x1ebc18(0x1fa)](_0x353171,undefined)&&(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1d9)],_0x5ec5af[_0x1ebc18(0x1d9)])?_0xa23763[_0x1ebc18(0x28e)]():(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21e)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['qeWth'],_0x5ec5af['BcdVO']),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)));global_registry['gridProfileId']=_0x353171['id'],_0x3e855f=_0x1ebc18(0x234)+_0x2ca59b+_0x1ebc18(0x201)+_0x353171[_0x1ebc18(0x1f4)]+_0x1ebc18(0x299),logger['info'](_0x3e855f);const _0x1e22a2={};_0x1e22a2[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x1e22a2[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x1e22a2),_0x1c492c=_0x353171['cloudProvider'],_0x406c74=_0x353171[_0x1ebc18(0x2ab)],_0x36e8e4=_0x353171['region'],_0x334135=_0x353171[_0x1ebc18(0x263)],_0x2e7315=_0x353171[_0x1ebc18(0x264)],_0x2c6946=_0x353171[_0x1ebc18(0x249)],securityGroups=_0x353171['securityGroups'],subnets=_0x353171[_0x1ebc18(0x26d)],_0x2c6229=_0x353171[_0x1ebc18(0x259)],_0x1c4e0f=_0x353171[_0x1ebc18(0x1d5)],_0x58c419=_0x353171['maxNodes'],_0x4d23ef=_0x1f8161[_0x1ebc18(0x26a)],_0x4248e7=_0x1f8161[_0x1ebc18(0x19a)],_0x5ec5af[_0x1ebc18(0x1c6)](_0x353171['privateGrid'],undefined)&&_0x353171[_0x1ebc18(0x254)]&&(_0x5ec5af['koEos'](_0x5ec5af['mEyrj'],_0x5ec5af[_0x1ebc18(0x2a1)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x586023[_0x1ebc18(0x213)]=_0x54e7c0['gridProfile']),_0x5ec5af[_0x1ebc18(0x230)](updateGlobalRegistryWithConfig,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6229,_0x353171,_0x4d23ef,_0x4248e7,_0x1c4e0f,_0x58c419);}else _0xa7f8b9=_0x43fa5b[_0x1ebc18(0x1ad)];}else{if(_0x5ec5af[_0x1ebc18(0x24d)](_0x5ec5af['ygZaZ'],_0x5ec5af[_0x1ebc18(0x199)])){const _0x67b50e=_0x5ec5af[_0x1ebc18(0x1bd)]['split']('|');let _0x47550c=0x0;while(!![]){switch(_0x67b50e[_0x47550c++]){case'0':const _0x490e62={};_0x490e62[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x490e62[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x490e62);continue;case'1':global_registry[_0x1ebc18(0x2ab)]=_0x406c74;continue;case'2':global_registry['browserVersion']=_0x1f8161[_0x1ebc18(0x19a)];continue;case'3':const _0x438ba9={};_0x438ba9[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x1eb)],_0x438ba9['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x438ba9);continue;case'4':global_registry['clusterRegion']=_0x36e8e4;continue;case'5':_0x3e855f='Spawning\x20the\x20grid\x20'+_0x2ca59b+_0x1ebc18(0x23f)+_0x406c74+'\x27';continue;case'6':logger[_0x1ebc18(0x20b)](_0x3e855f);continue;case'7':global_registry[_0x1ebc18(0x26a)]=_0x1f8161[_0x1ebc18(0x26a)];continue;case'8':global_registry['cloudProvider']=_0x1c492c;continue;}break;}}else _0x362438=_0x5ec5af[_0x1ebc18(0x2a4)];}const _0x6f6981=await _0x5ec5af[_0x1ebc18(0x294)](getCloudProviderObject,_0x1c492c,_0x406c74,_0x2ca59b,_0x3e1cbc,webSocketUtils,_0x4f3380),_0x185e10=_0x8ad0c5[_0x1ebc18(0x261)]||{};if(_0x5ec5af['jolGs'](_0x185e10[_0x1c492c],undefined)){logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x296)]);_0x5ec5af[_0x1ebc18(0x232)](_0x8ad0c5['cloudProvider'],undefined)&&(_0x8ad0c5[_0x1ebc18(0x261)]={});_0x8ad0c5[_0x1ebc18(0x261)][_0x1c492c]={};const _0x28b201=await _0x5ec5af[_0x1ebc18(0x279)](inputCloudProviderKeys,_0x1c492c,_0x8ad0c5,_0x6f6981);fs[_0x1ebc18(0x2af)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath),JSON[_0x1ebc18(0x23b)](_0x28b201)),logger['debug'](_0x5ec5af[_0x1ebc18(0x255)]);}else{_0x3e855f=_0x5ec5af[_0x1ebc18(0x29d)];const _0x48c60c={};_0x48c60c[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x48c60c['message']=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x48c60c),logger[_0x1ebc18(0x20b)](_0x3e855f),await _0x6f6981[_0x1ebc18(0x188)](_0x185e10);}_0x6f6981[_0x1ebc18(0x204)]();_0x5ec5af['LVTBi'](_0x1c492c,AZURE)&&_0x6f6981[_0x1ebc18(0x28e)]();let _0xacea99;if(_0x5ec5af[_0x1ebc18(0x26e)](_0x401707,![])){_0x3e855f=_0x1ebc18(0x2ac)+_0x36e8e4+').';const _0x23ae3d={};_0x23ae3d['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x23ae3d[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x23ae3d),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0xab175c=await _0x6f6981[_0x1ebc18(0x24a)]();if(_0xab175c){const _0x38dc81={};_0x38dc81[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x38dc81[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x38dc81,_0x5ec5af[_0x1ebc18(0x250)]),logger['info'](_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a)),_0x401707=!![];}else{const _0x49d2bb={};_0x49d2bb[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x49d2bb['message']=_0x5ec5af[_0x1ebc18(0x202)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x49d2bb),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x202)]);const _0x2596aa=_0x5ec5af['DJldo'](_0x2c6946,null)&&_0x5ec5af['PrfWg'](_0x2c6946,undefined),_0x1884ce=_0x5ec5af[_0x1ebc18(0x19d)](subnets,null)&&_0x5ec5af['CzoDf'](subnets,undefined)&&_0x5ec5af[_0x1ebc18(0x192)](subnets[_0x1ebc18(0x26f)],0x0);if(_0x2596aa){_0x5ec5af[_0x1ebc18(0x1d1)](_0x1884ce,![])&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x272)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x280)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1));const _0x2379e2=await _0x6f6981[_0x1ebc18(0x273)](_0x2c6946);_0x5ec5af[_0x1ebc18(0x1d2)](_0x2379e2,![])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x251)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1e2)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1)):logger[_0x1ebc18(0x20b)](_0x1ebc18(0x18f)+_0x2c6946+'\x20');const _0x3f007e=await _0x6f6981[_0x1ebc18(0x253)](subnets,_0x2c6946);_0x5ec5af['FuPyP'](_0x3f007e[0x0],![])?(_0x3e855f=_0x1ebc18(0x1a9)+JSON['stringify'](_0x3f007e[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2c6946+_0x1ebc18(0x266),await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x20c)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):logger['info'](_0x1ebc18(0x271)+JSON['stringify'](subnets)+'\x20'),await _0x6f6981[_0x1ebc18(0x1e8)](_0x2c6946,subnets);}else{const _0xd8478b=_0x5ec5af[_0x1ebc18(0x2aa)][_0x1ebc18(0x203)]('|');let _0x5c75bf=0x0;while(!![]){switch(_0xd8478b[_0x5c75bf++]){case'0':logger[_0x1ebc18(0x20b)](_0x5ec5af['iiKLf']);continue;case'1':const _0x125f57={};_0x125f57[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x125f57[_0x1ebc18(0x286)]=_0x5ec5af['FJoLc'],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x125f57);continue;case'2':logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x23d)]);continue;case'3':await _0x6f6981[_0x1ebc18(0x1e8)]();continue;case'4':const _0x4754ae={};_0x4754ae['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x4754ae[_0x1ebc18(0x286)]='Cluster\x20created\x20successfully',webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x4754ae);continue;}break;}}}}_0x401707&&_0x5ec5af[_0x1ebc18(0x260)](_0x1c492c,AZURE)&&(await _0x6f6981[_0x1ebc18(0x18c)](),await _0x6f6981[_0x1ebc18(0x1a4)]());const [_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x30df9f,_0x13d6c0]=await _0x5ec5af['oTcuL'](createK8sClient,_0x6f6981);_0x5ec5af[_0x1ebc18(0x246)](_0x401707,![])&&_0x5ec5af[_0x1ebc18(0x1f3)](_0x1c492c,AWS)&&(global_registry['isNewAWSCluster']=!![],_0xacea99=await _0x6f6981[_0x1ebc18(0x1ac)](_0x6ab267,_0x4f3380));try{_0x3f9948=_0x5ec5af[_0x1ebc18(0x27b)](kebabCase,_0x2ca59b),logger[_0x1ebc18(0x20b)](_0x5ec5af['ubkTp']);const _0x34fe22={};_0x34fe22[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x34fe22[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x218)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x34fe22);if(_0x5ec5af[_0x1ebc18(0x228)](_0x3f9948,_0x5ec5af[_0x1ebc18(0x295)])){const _0x2486d6={};_0x2486d6[_0x1ebc18(0x194)]=_0x5ec5af['atkfI'],_0x2486d6['managedBy']=_0x5ec5af[_0x1ebc18(0x1ba)];const _0x39ad57={};_0x39ad57['name']=_0x3f9948,_0x39ad57['annotations']=_0x2486d6;const _0x173141={};_0x173141[_0x1ebc18(0x1ea)]=_0x39ad57;let _0x117860=_0x173141;const _0x188577={};_0x188577[_0x1ebc18(0x20f)]=_0x117860,await _0x6ab267['createNamespace'](_0x188577),logger[_0x1ebc18(0x20b)](_0x5ec5af['BomGy']);}const _0x422e47={};_0x422e47[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x422e47[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x27f)],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x422e47);const _0x44114f={};_0x44114f[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x44114f[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x1e6)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x44114f),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x236)]);let _0x10fba1={};_0x5ec5af[_0x1ebc18(0x1fa)](_0x1c492c,AZURE)&&(_0x10fba1={'clientId':await _0x6f6981[_0x1ebc18(0x20a)](_0x1ebc18(0x29c)+_0x406c74)});await _0x5ec5af['jjvpf'](addGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948,_0x406c74,_0xacea99,_0x30df9f,_0x13d6c0,_0x10fba1),_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b3)],logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x527e64={};_0x527e64[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x527e64[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x527e64),_0x3e855f=_0x5ec5af[_0x1ebc18(0x25f)],logger['info'](_0x3e855f);const _0x4a2218={};_0x4a2218[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x4a2218[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x4a2218),await _0x5ec5af[_0x1ebc18(0x278)](waitForDeployment,_0xc78ecd,_0x3f9948,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4bced1=await _0x5ec5af[_0x1ebc18(0x25a)](getNamespaceUID,_0x6ab267,_0x3f9948);let _0x59ddaf=global_registry[_0x1ebc18(0x22f)]?_0x5ec5af[_0x1ebc18(0x27c)]:_0x5ec5af[_0x1ebc18(0x1dd)];const _0x2579e4={};_0x2579e4[_0x1ebc18(0x1f4)]=_0x59ddaf,_0x2579e4[_0x1ebc18(0x196)]=_0x5ec5af[_0x1ebc18(0x1f1)];let _0x2d9227=await _0x6ab267[_0x1ebc18(0x226)](_0x2579e4),_0xe1d017=_0x6f6981[_0x1ebc18(0x227)](_0x2d9227)+'/'+_0x3f9948,_0x1f0ea0=_0x5ec5af['YPfAc'];try{const _0x59cc3a='https://'+AG_API_URL+_0x1ebc18(0x1ca)+_0x4bced1,_0x347d09=await _0x5ec5af[_0x1ebc18(0x206)](got,_0x59cc3a,_0x535172);(_0x5ec5af[_0x1ebc18(0x1f3)](_0x347d09,null)||_0x5ec5af['ImahP'](_0x347d09,undefined))&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x238)],await _0x5ec5af['gMdmo'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x28a)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));_0x5ec5af[_0x1ebc18(0x285)](_0x347d09[_0x1ebc18(0x290)],0x191)&&(_0x3e855f=_0x5ec5af['tYFrw'],await _0x5ec5af[_0x1ebc18(0x1c9)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1a0)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process['exit'](0x1));_0x5ec5af[_0x1ebc18(0x24d)](_0x347d09['statusCode'],0xc8)&&(_0x3e855f=_0x1ebc18(0x237)+JSON[_0x1ebc18(0x23b)](_0x347d09),await _0x5ec5af['hdowz'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x193)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));const _0x4055b2=JSON[_0x1ebc18(0x1b8)](_0x347d09[_0x1ebc18(0x20f)]);_0x4055b2['route53']&&(_0xe1d017=_0x4055b2[_0x1ebc18(0x18b)],_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x182)]),global_registry[_0x1ebc18(0x22f)]&&(_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x2a4)]);}catch(_0x24df2d){}_0x3e855f=_0x1ebc18(0x29a)+_0xe1d017+'\x20',logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x2c3b86={};_0x2c3b86['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x2c3b86[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x2c3b86),_0x3e855f=_0x1ebc18(0x22b)+_0x1f0ea0+_0x1ebc18(0x1ec)+_0xe1d017+_0x1ebc18(0x1d0),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x73eb35={};_0x73eb35[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x73eb35['message']=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x73eb35);const _0x1af10b={};_0x1af10b[_0x1ebc18(0x29e)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x1af10b['message']='CLI\x20run\x20finished:\x20'+_0xe1d017,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x1af10b),await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);}catch(_0x314408){logger['error'](_0x1ebc18(0x1f6)+_0x314408+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x314408[_0x1ebc18(0x200)]));if(_0x5ec5af[_0x1ebc18(0x260)](_0x401707,![]))try{logger[_0x1ebc18(0x20b)](_0x1ebc18(0x25b)),await _0x5ec5af[_0x1ebc18(0x1b1)](removeGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948),await _0x6f6981[_0x1ebc18(0x27d)](_0x6ab267,global_registry[_0x1ebc18(0x1fc)]);}catch(_0x51c404){logger[_0x1ebc18(0x257)](_0x1ebc18(0x208)+_0x51c404+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x51c404[_0x1ebc18(0x200)]));}throw _0x314408;}}catch(_0x2bf341){const _0xe45d72=_0x1ebc18(0x241)+_0x2bf341+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x2bf341[_0x1ebc18(0x200)]);if(_0x3e1cbc){const _0x468df5={};_0x468df5[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x468df5[_0x1ebc18(0x286)]=_0xe45d72,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x468df5,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);const _0x499325={};_0x499325[_0x1ebc18(0x257)]=_0xe45d72,await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1da)],_0x499325,_0x4f3380),logger[_0x1ebc18(0x257)](_0xe45d72);}process[_0x1ebc18(0x1de)](0x0);};
|
|
1
|
+
function a9_0x305e(){const _0x299138=['rPfaH','jNpdo','body','GPFrV','YjLRS','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','aRDUr','Found\x20Subnets:\x20','delay','rvKUQ','AdIiD','jTcZG','4568wKHveM','vPQxn','996450ANGjXr','cloudProvider','username','default','desc','eFyom','options','jWjJN','gridName','EWVLm','../../cloudproviders/utils','lhZTU','3315306fHykWy','eyqDD','stack','kLlhI','Ujqdv','create','FeHKl','JjKWf','mTgyQ','FwtBk','pupEJ','2|6|0|7|8|5|4|3|1','mIhow','dFxuy','<UsernamePlaceholder>','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','WebSocket','fjbTx','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','split','BAguc','<PasswordPlaceholder>','\x20are\x20not\x20present\x20in\x20VPC:\x20','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','pre-spawned-invalid-vpc','nHgwc','iDvZi','ztWWs','zavrO','YUhNn','wVoQZ','readFileSync','isVPCPresent','lpxgA','replace','connectionTimeout','lIszK','maxNodes','BrHvd','create-grid-checks-invalid-profile','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','oikkv','../../utils/utilityMethods','createdBy','Grid\x20can\x20be\x20accessed\x20at:\x20','OhDDf','Adding\x20Websocket\x20listeners','toLowerCase','cloud-provider','browserVersion','CukQF','https://','get-grid-url-auth-failed','GZnDO','GAfLK','builder','grid','message','ZlAWX','description','isClusterPresent','sendEventToBackend','MOZRc','nfShv','/packages/cli/get-grid-url?gridIdentifier=','://','../../config/logger','grid-name','VJFhh','command','mbMuL','Create\x20a\x20new\x20Automation\x20grid.','createOtherResources','FkOVQ','XQRBk','string','sUWws','JDwcA','debug','grid-spawning-failed','SNjLb','4|2|1|0|3','HaMze','GET','OyJMT','fakvN','Spawning\x20Grid\x20on\x20the\x20Cluster','create-grid-checks-auth-failed','553124WTwOJd','handler','lKzRN','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','type','duOqz','rxPBy','IDpOE','NNQsG','s3bucket','MszuZ','vfSGf','exit','rlWpT','hnDzP','Namespace\x20Created','OeNrs','concurrency','gridProfiles','Creating\x20namespace','EVtCS','aaslY','NLRdu','subnets','jBzTp','existsSync','get-grid-url-null-response','dZdsD','cJRus','EjmMq','Create\x20a\x20private/public\x20grid.','/packages/cli/create-grid-checks','epilogue','private-grid','iAMqQ','LLIEL','Deleting\x20the\x20CloudFormation\x20Stacks','JBIFr','ryUNF','/wd/hub','10QbSezq','KrLyu','dqqsy','yhoaf','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','KHgBx','Bsmsp','isNewAWSCluster','prespawned-cluster-args-not-passed','JADwI','usage','defaultGridProfile','YTQpO','Koihc','metadata','sMPzR','FCIAw','Cluster\x20created\x20successfully','TGrBE','securityGroups','clusterName','OVzAL','stringify','CLI_RUN_STARTED','KwHwE','LdYJV','CLI_RUN_FINISHED','rKeqh','Found\x20VPC:\x20','2871837JBnpKu','ingress-nginx','HkSSx','dXIZE','Browserstack','TFEpe','VJnHw','region','hubVersion','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','turboscale-managed-identity-','ewXoe','info','minNodes','YAsnG','../../config/constants','\x27\x20grid\x20profile','isPrivateGrid','vpc','error','create-grid-checks-null-response','ERROR','BoRjB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ingress-nginx-controller','privateGrid','grid-profile','3189104goQnuQ','DLMUi','bOLKz','EXFIm','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','ttZCi','newCluster','create-grid-called','alreadyPresent','EZTao','bstackAccesskey','deleteCluster','createNamespace','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','statusCode','Cluster:\x20','Grid\x20spawned\x20on\x20the\x20cluster','password','\x20in\x20existing\x20cluster\x20\x27','tuaXs','jZZFy','gridProfileId','EcQLM','bPqtQ','BnZlh','init-not-called','UjtHt','Will\x20be\x20spawning\x20the\x20grid\x20','clusterRegion','UJsKs','CLI\x20run\x20started','CLI\x20run\x20finished:\x20','luVgW','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','length','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','17857FLGRpb','HPQpR','RxzNR','parse','hWsud','ZOGUK','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','http','GIBlc','EwLgU','aovEi','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','ASXEs','WwOHN','sendResourceDataToHST','rNTTB','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','got','https','ksNGB','LNQVh','hHpAD','../../utils/instrumentationUtils','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','NWUdc','14|4|0|2|3|6|1|10|7|11|13|12|9|5|8','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','updateClusterAlreadyPresent','uuid','GrbiB','dXtrr','instanceType','Ihmys','NMINw','Ionza','vaRLQ','MTZUT','KPlbH','name','QQNLA','LOG','jamwv','requestId','UtDiX','8656008ETOPVN','gOYcZ','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','eDMhX','isSubnetsValid','true','jOZDH','NpNUt','KFFqw','getGridHostname','woTyh','help','pQnBx','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','bstackUsername','vYqZG','INFO','JImTj','Subnets:\x20','lKVos','ddNUR','Grid\x20profile\x20fetched\x20from\x20backend','SDczL','xQOeD','rnpWG','create-grid-checks-non-200','Cluster\x20','argv','get-grid-url-non-200','gridProfile','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','cluster-name','WpMvP','route53','CzpXc','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','zFGYh','pBcKs'];a9_0x305e=function(){return _0x299138;};return a9_0x305e();}const a9_0xed8b75=a9_0xa025;(function(_0x5cfd84,_0x5b573b){const _0x50c38a=a9_0xa025,_0x3cbc0b=_0x5cfd84();while(!![]){try{const _0x2da9c5=-parseInt(_0x50c38a(0x85))/0x1+-parseInt(_0x50c38a(0x14a))/0x2+parseInt(_0x50c38a(0x91))/0x3+-parseInt(_0x50c38a(0xe9))/0x4*(parseInt(_0x50c38a(0x111))/0x5)+parseInt(_0x50c38a(0x19a))/0x6+-parseInt(_0x50c38a(0x16e))/0x7*(-parseInt(_0x50c38a(0x83))/0x8)+-parseInt(_0x50c38a(0x12f))/0x9;if(_0x2da9c5===_0x5b573b)break;else _0x3cbc0b['push'](_0x3cbc0b['shift']());}catch(_0x1528e3){_0x3cbc0b['push'](_0x3cbc0b['shift']());}}}(a9_0x305e,0xc7a46));function a9_0xa025(_0x18e92a,_0x4936d1){const _0x305e51=a9_0x305e();return a9_0xa025=function(_0xa02505,_0x3272dc){_0xa02505=_0xa02505-0x7f;let _0x14b957=_0x305e51[_0xa02505];return _0x14b957;},a9_0xa025(_0x18e92a,_0x4936d1);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0xed8b75(0x17f)),{v4:uuidv4}=require(a9_0xed8b75(0x18a)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0xed8b75(0xd3)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0xed8b75(0xbb)),{getCloudProviderObject}=require(a9_0xed8b75(0x8f)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0xed8b75(0x13e)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0xed8b75(0x184));exports[a9_0xed8b75(0xd6)]=a9_0xed8b75(0xc9),exports[a9_0xed8b75(0x89)]=a9_0xed8b75(0xd8),exports[a9_0xed8b75(0xc8)]=function(_0x1ca7db){const _0x1d8316=a9_0xed8b75,_0x2aa938={};_0x2aa938[_0x1d8316(0x98)]=_0x1d8316(0x116),_0x2aa938[_0x1d8316(0x12d)]=_0x1d8316(0xdc),_0x2aa938[_0x1d8316(0x134)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2aa938['jOZDH']=_0x1d8316(0x17e),_0x2aa938[_0x1d8316(0x99)]=_0x1d8316(0xa3),_0x2aa938[_0x1d8316(0x8a)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2aa938[_0x1d8316(0x11e)]=_0x1d8316(0x107),_0x2aa938[_0x1d8316(0x183)]='help';const _0x49f477=_0x2aa938,_0x256c08={};_0x256c08[_0x1d8316(0xcc)]=_0x49f477[_0x1d8316(0x98)],_0x256c08[_0x1d8316(0xed)]=_0x49f477['rKeqh'];const _0x5686c8={};_0x5686c8[_0x1d8316(0xcc)]=_0x49f477[_0x1d8316(0x134)],_0x5686c8[_0x1d8316(0xed)]=_0x49f477[_0x1d8316(0x12d)];const _0x1195aa={};_0x1195aa[_0x1d8316(0xcc)]=_0x49f477[_0x1d8316(0x1a0)],_0x1195aa[_0x1d8316(0xed)]=_0x49f477['rKeqh'];const _0x4992cf={};_0x4992cf[_0x1d8316(0xcc)]=_0x49f477['mTgyQ'],_0x4992cf[_0x1d8316(0xed)]=_0x49f477['rKeqh'];const _0x459786={};_0x459786[_0x1d8316(0xcc)]=_0x49f477['eFyom'],_0x459786[_0x1d8316(0xed)]=_0x49f477[_0x1d8316(0x12d)];const _0x30cb68={};_0x30cb68[_0x1d8316(0xcc)]=_0x49f477[_0x1d8316(0x11e)],_0x30cb68[_0x1d8316(0xed)]=_0x49f477[_0x1d8316(0x12d)];const _0x1f846b={};return _0x1f846b[_0x1d8316(0xd4)]=_0x256c08,_0x1f846b[_0x1d8316(0x149)]=_0x5686c8,_0x1f846b[_0x1d8316(0x1b9)]=_0x1195aa,_0x1f846b[_0x1d8316(0xc1)]=_0x4992cf,_0x1f846b['region']=_0x459786,_0x1f846b[_0x1d8316(0x10a)]=_0x30cb68,_0x1ca7db[_0x1d8316(0x11c)](HELP_HEADER_MESSAGE[_0x1d8316(0x96)])[_0x1d8316(0x109)](HELP_FOOTER_MESSAGE)['options'](_0x1f846b)[_0x1d8316(0x1a5)](_0x49f477[_0x1d8316(0x183)])[_0x1d8316(0x1b5)];},exports[a9_0xed8b75(0xea)]=async function(_0x1acbbe){const _0xe405d=a9_0xed8b75,_0x569d5e={'aovEi':'warn','vYqZG':function(_0x526e2e,_0x94069f){return _0x526e2e===_0x94069f;},'rNTTB':'error','yIZtD':_0xe405d(0x187),'LLIEL':function(_0x5d4668,_0x465855){return _0x5d4668!==_0x465855;},'eyqDD':function(_0x3b8e02,_0x306f5d,_0x540ea0,_0x2b3c49,_0x4e92f5,_0x2bda25,_0x2c79f0,_0x472af8,_0x32a892,_0xd36da3,_0x3d19de,_0x3ff2c8){return _0x3b8e02(_0x306f5d,_0x540ea0,_0x2b3c49,_0x4e92f5,_0x2bda25,_0x2c79f0,_0x472af8,_0x32a892,_0xd36da3,_0x3d19de,_0x3ff2c8);},'ZlAWX':_0xe405d(0x175),'ztWWs':_0xe405d(0x180),'GZnDO':'2|8|5|3|1|7|0|6|4','IDpOE':_0xe405d(0x168),'WpMvP':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','vaRLQ':_0xe405d(0xdc),'tuaXs':_0xe405d(0x185),'OVzAL':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','sMPzR':_0xe405d(0xa3),'oikkv':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','lgPxx':_0xe405d(0x107),'kgUED':_0xe405d(0x1a5),'NMINw':function(_0xdb13ae){return _0xdb13ae();},'Koihc':'SUuro','Bsmsp':_0xe405d(0x1a6),'jNpdo':_0xe405d(0x146),'fakvN':function(_0x5b5cba,_0x44d241,_0x2b3184,_0xe877c8,_0x423604,_0x1ad9c9,_0x55001c){return _0x5b5cba(_0x44d241,_0x2b3184,_0xe877c8,_0x423604,_0x1ad9c9,_0x55001c);},'SNjLb':_0xe405d(0x151),'bOLKz':_0xe405d(0x163),'OyJMT':function(_0x3d0c67){return _0x3d0c67();},'VJnHw':_0xe405d(0x9f),'nHgwc':_0xe405d(0xa6),'KwHwE':_0xe405d(0xbf),'YAsnG':_0xe405d(0x1b2),'yhoaf':_0xe405d(0xfe),'MszuZ':_0xe405d(0xb7),'gOYcZ':_0xe405d(0x19c),'cJRus':function(_0x301c6f,_0x22686d,_0x303b44,_0x12fefe,_0x53ed39,_0xf8b37c,_0x22170b,_0x461a59){return _0x301c6f(_0x22686d,_0x303b44,_0x12fefe,_0x53ed39,_0xf8b37c,_0x22170b,_0x461a59);},'HPQpR':_0xe405d(0x11a),'CukQF':function(_0x1db6ff,_0x93040a){return _0x1db6ff!==_0x93040a;},'rPfaH':_0xe405d(0xaf),'EZTao':_0xe405d(0x1bd),'pupEJ':function(_0x328e0b,_0x25ff0a,_0x13ed25,_0x3d65e2,_0x1be922,_0xf6b223,_0x4b9784,_0x52bf52){return _0x328e0b(_0x25ff0a,_0x13ed25,_0x3d65e2,_0x1be922,_0xf6b223,_0x4b9784,_0x52bf52);},'dZdsD':'non-aws-azure-cluster','iDvZi':function(_0x5191c2,_0xe28522){return _0x5191c2===_0xe28522;},'mbMuL':_0xe405d(0x19f),'YUhNn':_0xe405d(0x82),'EWVLm':_0xe405d(0xda),'VDmNP':function(_0x19844e,_0x4472c7,_0x9a6c3d,_0x2aba5c,_0x327ab8,_0x570763,_0x26a5a5){return _0x19844e(_0x4472c7,_0x9a6c3d,_0x2aba5c,_0x327ab8,_0x570763,_0x26a5a5);},'SvOoj':function(_0x467a4b,_0x275516){return _0x467a4b===_0x275516;},'EVtCS':_0xe405d(0x15e),'QQNLA':_0xe405d(0x186),'NLRdu':'jFAXJ','FOXaK':_0xe405d(0xe4),'TGrBE':function(_0x157708,_0x3ef33c,_0x542c62){return _0x157708(_0x3ef33c,_0x542c62);},'vRAec':function(_0x1eef3f,_0x1d2baa){return _0x1eef3f!==_0x1d2baa;},'KPlbH':_0xe405d(0x18e),'fjbTx':function(_0x166233,_0x25f711){return _0x166233===_0x25f711;},'iNNSZ':_0xe405d(0x10e),'dyCmS':'Iilta','TRxKM':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','EXFIm':function(_0x3ceec5,_0x498603,_0x2b6797,_0x1e805d,_0x4f813a,_0x458fce,_0x412b2c,_0x5aeb18){return _0x3ceec5(_0x498603,_0x2b6797,_0x1e805d,_0x4f813a,_0x458fce,_0x412b2c,_0x5aeb18);},'iAMqQ':_0xe405d(0x143),'GONxx':_0xe405d(0x9a),'XcEfC':_0xe405d(0x1c3),'sUWws':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','nfShv':_0xe405d(0xe8),'BnZlh':function(_0x549a5d,_0x31b1c7){return _0x549a5d!==_0x31b1c7;},'bPqtQ':function(_0x1500d7,_0x203fb6){return _0x1500d7!==_0x203fb6;},'NpNUt':_0xe405d(0x1a2),'FeHKl':'oJqjC','dFxuy':function(_0x4cedfd,_0x3e8b37,_0x1b14ae,_0x581e6f,_0x4e22fd,_0xe03b2a,_0x4e8f30,_0x2ca629){return _0x4cedfd(_0x3e8b37,_0x1b14ae,_0x581e6f,_0x4e22fd,_0xe03b2a,_0x4e8f30,_0x2ca629);},'lIszK':_0xe405d(0x1b3),'ksNGB':_0xe405d(0x1af),'OhDDf':'jTBWx','duOqz':'create-grid-checks-grid-already-exists','EcQLM':_0xe405d(0x18b),'rxPBy':function(_0x35a213,_0x2233f5){return _0x35a213===_0x2233f5;},'NNQsG':function(_0x455f36,_0x1e2acd){return _0x455f36===_0x1e2acd;},'CzpXc':function(_0x2d4595,_0x36b411){return _0x2d4595!==_0x36b411;},'kCrZD':'ccRXd','jBzTp':_0xe405d(0x1b1),'ttZCi':function(_0x28ba8e,_0x1c84e1){return _0x28ba8e===_0x1c84e1;},'AlZzh':function(_0x1d3a69,_0x4bdf7d){return _0x1d3a69!==_0x4bdf7d;},'FCIAw':_0xe405d(0x177),'hQLhD':_0xe405d(0xeb),'rEPDl':_0xe405d(0x179),'pZXaj':_0xe405d(0xb8),'woTyh':function(_0x2c7f91,_0x2032de){return _0x2c7f91===_0x2032de;},'zFGYh':function(_0x177cbc,_0x5770c6){return _0x177cbc===_0x5770c6;},'ryUNF':_0xe405d(0x9d),'UjtHt':'WEYcw','rlWpT':_0xe405d(0x90),'MTZUT':_0xe405d(0x199),'LdYJV':function(_0x2b982c,_0x3ccb2e){return _0x2b982c===_0x3ccb2e;},'JDwcA':function(_0x56b260,_0x30b0ba){return _0x56b260!==_0x30b0ba;},'JADwI':_0xe405d(0x167),'oIYyB':function(_0x3ab1c2,_0x355db3){return _0x3ab1c2!==_0x355db3;},'tQLGK':function(_0x36b4e8,_0x17a763){return _0x36b4e8===_0x17a763;},'WBIjZ':_0xe405d(0x17b),'FsFre':'zScBK','VJFhh':function(_0x15c193,_0x1b2411){return _0x15c193!==_0x1b2411;},'SDczL':_0xe405d(0x18c),'GAfLK':_0xe405d(0x113),'ZMQHo':_0xe405d(0x9c),'GIBlc':function(_0x47b265,_0x1e396a,_0x17f0d0,_0xbee680,_0x24f97a,_0x587097,_0x4d5d54){return _0x47b265(_0x1e396a,_0x17f0d0,_0xbee680,_0x24f97a,_0x587097,_0x4d5d54);},'Ujqdv':function(_0x3babfb,_0xbcbc46){return _0x3babfb===_0xbcbc46;},'zavrO':_0xe405d(0x188),'jamwv':function(_0x23f022,_0x10b10c){return _0x23f022!=_0x10b10c;},'TBFWG':function(_0x41cba4,_0x36bdf3){return _0x41cba4!=_0x36bdf3;},'hWsud':function(_0x2eddb4,_0x2e2aa8){return _0x2eddb4!==_0x2e2aa8;},'EjmMq':function(_0x2bd36f,_0xb09d9f){return _0x2bd36f>_0xb09d9f;},'gRgYd':_0xe405d(0x157),'mwZks':function(_0x67172,_0x7ec46c,_0x373375,_0x2414ac,_0x5c1fbf,_0x12b486,_0xc00f95,_0x40e277){return _0x67172(_0x7ec46c,_0x373375,_0x2414ac,_0x5c1fbf,_0x12b486,_0xc00f95,_0x40e277);},'eDMhX':'pre-spawned-subnets-not-selected','BAguc':function(_0xf3d2c3,_0x40ac30){return _0xf3d2c3===_0x40ac30;},'DLMUi':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','vfSGf':_0xe405d(0xa9),'yAFfo':function(_0x4418ad,_0x3a4872,_0x460ddc,_0x136f75,_0x3f6408,_0x5d6504,_0x5c782b,_0x402160){return _0x4418ad(_0x3a4872,_0x460ddc,_0x136f75,_0x3f6408,_0x5d6504,_0x5c782b,_0x402160);},'hnDzP':'pre-spawned-invalid-subnets','OeNrs':_0xe405d(0xe2),'XQRBk':_0xe405d(0x123),'kLlhI':_0xe405d(0x1b8),'KKxGn':function(_0x3b265e,_0x35b9de){return _0x3b265e===_0x35b9de;},'AdIiD':function(_0x5d1b05,_0x3d2163){return _0x5d1b05(_0x3d2163);},'JImTj':function(_0x58ac70,_0xc83cdd){return _0x58ac70===_0xc83cdd;},'rvKUQ':_0xe405d(0xfc),'ASXEs':_0xe405d(0x88),'ddNUR':'Browserstack','MOZRc':_0xe405d(0xf8),'dXIZE':'Namespace\x20created','JVHZw':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','lKVos':_0xe405d(0xe7),'peTYZ':function(_0x44a351,_0x24f2d5){return _0x44a351===_0x24f2d5;},'LNQVh':function(_0xd72725,_0x26149e,_0x188378,_0x285601,_0x52f004,_0x4e8a81,_0x288b5f,_0x4f62bb,_0xb761a2,_0x16db87,_0x448b71){return _0xd72725(_0x26149e,_0x188378,_0x285601,_0x52f004,_0x4e8a81,_0x288b5f,_0x4f62bb,_0xb761a2,_0x16db87,_0x448b71);},'KrLyu':_0xe405d(0x15a),'KiKkG':_0xe405d(0x16b),'lpxgA':function(_0x4586a9,_0x247bd1,_0x37da6c,_0x38e247,_0x467193){return _0x4586a9(_0x247bd1,_0x37da6c,_0x38e247,_0x467193);},'pBcKs':function(_0x14f628,_0x42e585,_0xb9ad17){return _0x14f628(_0x42e585,_0xb9ad17);},'CNPDt':'private-ingress-nginx-controller','vPQxn':_0xe405d(0x147),'UPsDG':_0xe405d(0x130),'luVgW':_0xe405d(0x174),'jWjJN':function(_0x1e0af7,_0x45f01f,_0x2a0eab,_0x55ae1a,_0x5e3a84,_0xc5612c,_0x4a7863,_0x2f50a3){return _0x1e0af7(_0x45f01f,_0x2a0eab,_0x55ae1a,_0x5e3a84,_0xc5612c,_0x4a7863,_0x2f50a3);},'ZOGUK':_0xe405d(0x103),'ewXoe':_0xe405d(0xb9),'KHgBx':function(_0x5d1836,_0x52f242,_0x218b9a,_0x593a7a,_0x48c4a0,_0x13d416,_0x157c10,_0x1da488){return _0x5d1836(_0x52f242,_0x218b9a,_0x593a7a,_0x48c4a0,_0x13d416,_0x157c10,_0x1da488);},'BoRjB':_0xe405d(0xc5),'HkSSx':function(_0x1f0417,_0x45873e){return _0x1f0417!==_0x45873e;},'HaMze':_0xe405d(0x1b6),'aRDUr':function(_0xa8bcd,_0x28a892){return _0xa8bcd===_0x28a892;},'RxzNR':_0xe405d(0x10d),'ClAQt':function(_0x548b55,_0x41e3c6,_0x4da3e6,_0x1b0b8a,_0x39071f,_0x2a655a){return _0x548b55(_0x41e3c6,_0x4da3e6,_0x1b0b8a,_0x39071f,_0x2a655a);},'Ionza':function(_0x21b470,_0x277016,_0x2d0b3d,_0x2f9135,_0x1bbd1c,_0x1d8aba,_0x126764){return _0x21b470(_0x277016,_0x2d0b3d,_0x2f9135,_0x1bbd1c,_0x1d8aba,_0x126764);},'YjLRS':_0xe405d(0xe0)};let _0x34687c=![],_0x14865c=![],_0x17dfb6,_0x21dfe1,_0x41b52b,_0x432fab,_0x3b6d92,_0x392bc8,_0x29c6ea,_0x30e516,_0x11515e,_0x4aacf7,_0x25c432,_0x1f0ade,_0x4c97c3,_0x1e983c,_0x35dc0b=0x1,_0x514a66=0xe;try{global_registry[_0xe405d(0x198)]=_0x569d5e[_0xe405d(0x18f)](uuidv4),global_registry['isPrivateGrid']=![];if(!fs[_0xe405d(0x102)](_0x569d5e[_0xe405d(0x18f)](getCredentialsPath))){if(_0x569d5e['LLIEL'](_0x569d5e[_0xe405d(0x11f)],_0x569d5e[_0xe405d(0x118)]))console[_0xe405d(0x142)](_0x569d5e[_0xe405d(0x1c1)]),await _0x569d5e[_0xe405d(0xe6)](sendInstrumentationEvent,_0x1acbbe,_0x569d5e['SNjLb'],messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0x14c)],null,_0x1acbbe),process[_0xe405d(0xf5)](0x1);else{const _0xd66b91={};_0xd66b91[_0xe405d(0xed)]=_0x5efb75[_0xe405d(0x196)],_0xd66b91[_0xe405d(0xca)]='Cluster\x20'+_0x117560+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x5324de['sendEventToBackend'](_0x185c8c,_0xd66b91,_0x569d5e[_0xe405d(0x178)]),_0x590b17[_0xe405d(0x13b)]('Cluster\x20'+_0x42a3a2+_0xe405d(0x115)),_0x5d742a=!![];if(_0x569d5e['vYqZG'](_0x48dbcb,!![]))throw new _0x3b13b3('Cluster\x20'+_0xd14b72+_0xe405d(0xa0));}}await _0x569d5e[_0xe405d(0xe6)](sendInstrumentationEvent,_0x1acbbe,_0x569d5e[_0xe405d(0xe1)],messageTypes[_0xe405d(0x1aa)],null,null,_0x1acbbe);const _0xc05f05=JSON[_0xe405d(0x171)](fs[_0xe405d(0xb0)](_0x569d5e[_0xe405d(0xe5)](getCredentialsPath)));global_registry[_0xe405d(0x1a8)]=_0xc05f05[_0xe405d(0x133)][_0xe405d(0x87)],global_registry[_0xe405d(0x154)]=_0xc05f05[_0xe405d(0x133)][_0xe405d(0x15b)];const _0x43e92c=WS_ENDPOINT[_0xe405d(0xb3)](_0x569d5e[_0xe405d(0x135)],_0xc05f05[_0xe405d(0x133)]['username'])[_0xe405d(0xb3)](_0x569d5e[_0xe405d(0xaa)],_0xc05f05[_0xe405d(0x133)][_0xe405d(0x15b)]),_0x7f86fd={};_0x7f86fd[_0xe405d(0xa1)]=ws,_0x7f86fd[_0xe405d(0xb4)]=0x36ee80,_0x1f0ade=new ReconnectingWebSocket(_0x43e92c,[],_0x7f86fd),logger[_0xe405d(0xdf)](_0x569d5e[_0xe405d(0x12a)]),webSocketUtils['addListeners'](_0x1f0ade,_0x1acbbe['user'],_0x1acbbe[_0xe405d(0x15b)]);const _0x32e33b=_0x1acbbe[_0xe405d(0x8d)]||DEFAULT_GRID_NAME;if(_0x1acbbe[_0xe405d(0x126)]||_0x1acbbe[_0xe405d(0x86)]||_0x1acbbe['region']){if(_0x569d5e['vYqZG'](_0x569d5e[_0xe405d(0x13d)],_0x569d5e[_0xe405d(0x114)])){const _0x1a8c56={};_0x1a8c56[_0xe405d(0xed)]=_0x2ea863['LOG'],_0x1a8c56[_0xe405d(0xca)]=_0x4a14a2,_0x9fb4ba[_0xe405d(0xce)](_0x4c64fb,_0x1a8c56,_0x569d5e['rNTTB'],!![]);}else{!(_0x1acbbe[_0xe405d(0x126)]&&_0x1acbbe[_0xe405d(0x86)]&&_0x1acbbe['region'])&&(_0x569d5e[_0xe405d(0x10c)](_0x569d5e['MszuZ'],_0x569d5e[_0xe405d(0xf3)])?_0x5d0f63[_0xe405d(0x17c)]():(_0x17dfb6=_0x569d5e[_0xe405d(0x19b)],await _0x569d5e[_0xe405d(0x105)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0x16f)],_0x569d5e[_0xe405d(0x17d)]),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x1acbbe[_0xe405d(0x86)][_0xe405d(0xc0)]())){if(_0x569d5e[_0xe405d(0xc3)](_0x569d5e[_0xe405d(0x1c0)],_0x569d5e[_0xe405d(0x1c0)])){const _0x52616a=_0x569d5e['yIZtD'][_0xe405d(0xa4)]('|');let _0x279908=0x0;while(!![]){switch(_0x52616a[_0x279908++]){case'0':const _0x37d2bc={};_0x37d2bc[_0xe405d(0xed)]=_0x589ba2[_0xe405d(0x196)],_0x37d2bc['message']=_0x4f9a90,_0x2e15cd['sendEventToBackend'](_0x4d3bbc,_0x37d2bc);continue;case'1':_0x34bfbd=null;continue;case'2':_0x44aae3=_0x29cc84[_0xe405d(0xfa)];continue;case'3':_0x1fad95=_0x5efc77['instanceType'];continue;case'4':_0x3bc2e4['info'](_0x89f88f);continue;case'5':_0x569d5e[_0xe405d(0x10c)](_0x26a93a[_0xe405d(0x148)],_0x325188)&&_0x40be3a[_0xe405d(0x148)]&&(_0x56e869[_0xe405d(0x140)]=!![]);continue;case'6':_0x552ce3=null;continue;case'7':_0x29c02f=_0x41f900[_0xe405d(0xf2)];continue;case'8':_0x569d5e[_0xe405d(0x92)](_0x3183fe,_0x3dbd54,_0x7ae2f8,_0xb480a9,_0x29a59d,_0x29c63b,_0x46dc3f,_0x11fe00,_0x37ba38,_0x241cc9,_0x54788a,_0x5abea7);continue;case'9':_0x3d472f=_0x25c4a0[_0xe405d(0xc2)];continue;case'10':_0x4bfe18=null;continue;case'11':_0x4ef230=_0x2304f1[_0xe405d(0x13c)];continue;case'12':_0x2e363b=_0x234aaf[_0xe405d(0x137)];continue;case'13':_0x3936c6=_0x2a9122[_0xe405d(0xb6)];continue;case'14':_0x5990f8='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x22bac8;continue;}break;}}else _0x17dfb6=_0x569d5e[_0xe405d(0x153)],await _0x569d5e[_0xe405d(0x9b)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0x104)],_0x569d5e['rNTTB']),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1);}_0x1acbbe['privateGrid']&&_0x569d5e['iDvZi'](_0x1acbbe[_0xe405d(0x148)][_0xe405d(0xc0)](),_0x569d5e[_0xe405d(0xd7)])&&(_0x569d5e['iDvZi'](_0x569d5e[_0xe405d(0xae)],_0x569d5e[_0xe405d(0x8e)])?_0x5506bd=_0x569d5e['ZlAWX']:global_registry[_0xe405d(0x140)]=!![]);global_registry[_0xe405d(0x86)]=_0x1acbbe[_0xe405d(0x86)],global_registry[_0xe405d(0x166)]=_0x1acbbe[_0xe405d(0x136)],global_registry[_0xe405d(0x126)]=_0x1acbbe[_0xe405d(0x126)];const _0x4a85d4=await _0x569d5e['VDmNP'](getCloudProviderObject,_0x1acbbe[_0xe405d(0x86)],_0x1acbbe[_0xe405d(0x126)],_0x32e33b,_0x1f0ade,webSocketUtils,_0x1acbbe),_0x95669a=await _0x4a85d4[_0xe405d(0xcd)]();!_0x95669a?_0x569d5e['SvOoj'](_0x569d5e[_0xe405d(0xfd)],_0x569d5e['EVtCS'])?(logger[_0xe405d(0x13b)]('Cluster:\x20'+_0x1acbbe['clusterName']+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x34687c=![],_0x14865c=!![]):_0xd522c7=!![]:_0x569d5e[_0xe405d(0x1a9)](_0x569d5e[_0xe405d(0x195)],_0x569d5e[_0xe405d(0x195)])?_0x34687c=!![]:_0x1eae2c=_0x35606e[_0xd6ca49[_0xe405d(0x1b7)]],_0x41b52b=_0x1acbbe[_0xe405d(0x126)],_0x21dfe1=_0x1acbbe['cloudProvider']['toLowerCase'](),_0x432fab=_0x1acbbe[_0xe405d(0x136)];}}else _0x1acbbe[_0xe405d(0x1b7)]&&(_0x569d5e[_0xe405d(0xab)](_0x569d5e[_0xe405d(0xff)],_0x569d5e[_0xe405d(0xff)])?global_registry[_0xe405d(0x1b7)]=_0x1acbbe[_0xe405d(0x1b7)]:_0x1f2302=null);global_registry[_0xe405d(0x8d)]=_0x1acbbe['gridName'];const _0x522a22={'method':_0x569d5e['FOXaK'],'headers':_0x569d5e[_0xe405d(0x124)](getAuthHeader,_0xc05f05[_0xe405d(0x133)][_0xe405d(0x87)],_0xc05f05[_0xe405d(0x133)][_0xe405d(0x15b)]),'throwHttpErrors':![]},_0xb9ccf6={};_0xb9ccf6[_0xe405d(0x8d)]=_0x32e33b;const _0x5be1c8=_0xb9ccf6;_0x14865c&&(_0x569d5e['vRAec'](_0x569d5e['KPlbH'],_0x569d5e[_0xe405d(0x193)])?_0x288cf1=null:(_0x5be1c8[_0xe405d(0x136)]=_0x432fab,_0x5be1c8['cloudProvider']=_0x21dfe1,_0x5be1c8[_0xe405d(0x150)]=!![]));const _0x40e98f=_0xe405d(0xc4)+AG_API_URL+_0xe405d(0x108),_0x48e46d={'searchParams':_0x5be1c8,'throwHttpErrors':![],..._0x522a22},_0x4fc6b8=_0x48e46d,_0x42b7d8=await _0x569d5e['TGrBE'](got,_0x40e98f,_0x4fc6b8);(_0x569d5e[_0xe405d(0xa2)](_0x42b7d8,null)||_0x569d5e[_0xe405d(0x1a9)](_0x42b7d8,undefined))&&(_0x569d5e[_0xe405d(0xa2)](_0x569d5e['iNNSZ'],_0x569d5e['dyCmS'])?(_0x1a08ac[_0xe405d(0x13b)](_0xe405d(0x159)+_0x213bf8[_0xe405d(0x126)]+_0xe405d(0x1c5)),_0x3419f7=![],_0x4af22f=!![]):(_0x17dfb6=_0x569d5e['TRxKM'],await _0x569d5e[_0xe405d(0x14d)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes['ERROR'],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0x10b)],_0x569d5e['rNTTB']),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1)));_0x569d5e['iDvZi'](_0x42b7d8[_0xe405d(0x158)],0x191)&&(_0x569d5e['LLIEL'](_0x569d5e['GONxx'],_0x569d5e['XcEfC'])?(_0x17dfb6=_0x569d5e[_0xe405d(0xdd)],await _0x569d5e[_0xe405d(0x9b)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0xd0)],_0x569d5e[_0xe405d(0x17d)]),logger[_0xe405d(0x142)](_0x17dfb6),process['exit'](0x1)):(_0x1256b1=_0x1afb3c['route53'],_0x3606ef=_0x569d5e['ztWWs']));_0x569d5e[_0xe405d(0x162)](_0x42b7d8[_0xe405d(0x158)],0xc8)&&(_0x569d5e['bPqtQ'](_0x569d5e[_0xe405d(0x1a1)],_0x569d5e[_0xe405d(0x97)])?(_0x17dfb6='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0xe405d(0x128)](_0x42b7d8[_0xe405d(0x1c2)]),await _0x569d5e[_0xe405d(0x9e)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e['SNjLb'],_0x569d5e[_0xe405d(0xb5)],_0x569d5e[_0xe405d(0x17d)]),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1)):_0x27a702['isPrivateGrid']=!![]);const _0x24a3c0=JSON[_0xe405d(0x171)](_0x42b7d8[_0xe405d(0x1c2)]),_0x5e43a2={};_0x5e43a2[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x129)],_0x5e43a2[_0xe405d(0xca)]=_0x569d5e[_0xe405d(0xf0)],webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x5e43a2);const _0x13f0f7={};_0x13f0f7[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x13f0f7['message']=_0x569d5e[_0xe405d(0x181)],webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x13f0f7);_0x24a3c0[_0xe405d(0x152)]&&(_0x569d5e[_0xe405d(0x161)](_0x569d5e[_0xe405d(0xbe)],_0x569d5e[_0xe405d(0xbe)])?_0x2589d2[_0xe405d(0x142)](_0xe405d(0x14e)+_0x23c218+'\x20\x0a'+_0x465065[_0xe405d(0x128)](_0x3ed416['stack'])):(_0x17dfb6='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x32e33b+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x569d5e[_0xe405d(0x9e)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0xee)],_0x569d5e['rNTTB']),logger[_0xe405d(0x142)](_0x17dfb6),process['exit'](0x1)));const _0x5ce5a2=_0x24a3c0[_0xe405d(0xfb)];let _0x531b87=_0x5ce5a2[_0x24a3c0[_0xe405d(0x11d)]];_0x1acbbe['gridProfile']&&(_0x569d5e['CukQF'](_0x569d5e[_0xe405d(0x160)],_0x569d5e[_0xe405d(0x160)])?(_0x2a6aaf[_0xe405d(0x136)]=_0x26d51b,_0x1d4eeb['cloudProvider']=_0x401fd7,_0x464685['newCluster']=!![]):_0x531b87=_0x5ce5a2[_0x1acbbe['gridProfile']]);if(_0x569d5e[_0xe405d(0xef)](_0x34687c,![])&&_0x569d5e['NNQsG'](_0x14865c,![])){if(_0x569d5e['CzpXc'](_0x569d5e['kCrZD'],_0x569d5e[_0xe405d(0x101)])){_0x569d5e[_0xe405d(0x14f)](_0x531b87,undefined)&&(_0x569d5e['AlZzh'](_0x569d5e[_0xe405d(0x122)],_0x569d5e['hQLhD'])?(_0x17dfb6=_0x569d5e['rEPDl'],await _0x569d5e[_0xe405d(0x105)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes['ERROR'],_0x569d5e[_0xe405d(0xe1)],_0x569d5e['pZXaj'],_0x569d5e['rNTTB']),logger[_0xe405d(0x142)](_0x17dfb6),process['exit'](0x1)):_0x5d784a[_0xe405d(0x13b)](_0xe405d(0x12e)+_0x4f99df+'\x20'));global_registry[_0xe405d(0x15f)]=_0x531b87['id'],_0x17dfb6=_0xe405d(0x165)+_0x32e33b+'\x20using\x20\x27'+_0x531b87[_0xe405d(0x194)]+_0xe405d(0x13f),logger[_0xe405d(0x13b)](_0x17dfb6);const _0x1d387b={};_0x1d387b[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x1d387b['message']=_0x17dfb6,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x1d387b),_0x21dfe1=_0x531b87[_0xe405d(0x86)],_0x41b52b=_0x531b87['clusterName'],_0x432fab=_0x531b87[_0xe405d(0x136)],_0x3b6d92=_0x531b87['concurrency'],_0x392bc8=_0x531b87[_0xe405d(0x18d)],_0x29c6ea=_0x531b87[_0xe405d(0x141)],_0x30e516=_0x531b87[_0xe405d(0x125)],_0x11515e=_0x531b87[_0xe405d(0x100)],_0x4aacf7=_0x531b87[_0xe405d(0xf2)],_0x35dc0b=_0x531b87[_0xe405d(0x13c)],_0x514a66=_0x531b87[_0xe405d(0xb6)],_0x4c97c3=_0x24a3c0['hubVersion'],_0x1e983c=_0x24a3c0[_0xe405d(0xc2)];if(_0x29c6ea&&_0x569d5e[_0xe405d(0x1a4)](_0x29c6ea[_0xe405d(0x16c)],0x0)){if(_0x569d5e[_0xe405d(0x1be)](_0x569d5e[_0xe405d(0x10f)],_0x569d5e['ryUNF']))_0x29c6ea=null;else{const _0x2d7944=_0x569d5e[_0xe405d(0xc6)][_0xe405d(0xa4)]('|');let _0x19bcef=0x0;while(!![]){switch(_0x2d7944[_0x19bcef++]){case'0':_0x3f583b['clusterName']=_0x51a47e;continue;case'1':_0x486b18[_0xe405d(0x86)]=_0x7361e1;continue;case'2':const _0x4e1c11={};_0x4e1c11[_0xe405d(0xed)]=_0x396ba7[_0xe405d(0x129)],_0x4e1c11['message']=_0x569d5e[_0xe405d(0xf0)],_0x4a8ecb[_0xe405d(0xce)](_0xfa4382,_0x4e1c11);continue;case'3':const _0x34e899={};_0x34e899[_0xe405d(0xed)]=_0xefe0ef['LOG'],_0x34e899[_0xe405d(0xca)]=_0x3d2ca9,_0x90fda1[_0xe405d(0xce)](_0x106491,_0x34e899);continue;case'4':_0x385fbd[_0xe405d(0xc2)]=_0x38b8be[_0xe405d(0xc2)];continue;case'5':_0x1d285e[_0xe405d(0x13b)](_0x269407);continue;case'6':_0x2df54c[_0xe405d(0x137)]=_0x3bd6de[_0xe405d(0x137)];continue;case'7':_0x4a8a5f[_0xe405d(0x166)]=_0x51347d;continue;case'8':_0x253042='Spawning\x20the\x20grid\x20'+_0x440868+_0xe405d(0x15c)+_0x27f52b+'\x27';continue;}break;}}}_0x11515e&&_0x569d5e[_0xe405d(0x14f)](_0x11515e[_0xe405d(0x16c)],0x0)&&(_0x569d5e[_0xe405d(0xf1)](_0x569d5e[_0xe405d(0x164)],_0x569d5e[_0xe405d(0xf6)])?_0x487d98[_0xe405d(0x140)]=!![]:_0x11515e=null);if(_0x569d5e[_0xe405d(0xc3)](_0x531b87[_0xe405d(0x148)],undefined)&&_0x531b87[_0xe405d(0x148)]){if(_0x569d5e[_0xe405d(0x1be)](_0x569d5e[_0xe405d(0x192)],_0x569d5e[_0xe405d(0x192)]))global_registry[_0xe405d(0x140)]=!![];else throw new _0x2b0ca2(_0xe405d(0x1b4)+_0x5baa34+_0xe405d(0xa0));}_0x569d5e[_0xe405d(0x92)](updateGlobalRegistryWithConfig,_0x21dfe1,_0x41b52b,_0x432fab,_0x3b6d92,_0x392bc8,_0x4aacf7,_0x531b87,_0x4c97c3,_0x1e983c,_0x35dc0b,_0x514a66);}else _0x4ee4ba[_0xe405d(0x140)]=!![];}else{if(_0x569d5e[_0xe405d(0x12b)](_0x14865c,!![])){if(_0x569d5e[_0xe405d(0xde)](_0x569d5e[_0xe405d(0x11b)],_0x569d5e[_0xe405d(0x11b)])){const _0x3a220f={};_0x3a220f[_0xe405d(0xcc)]=_0x569d5e[_0xe405d(0x1ba)],_0x3a220f[_0xe405d(0xed)]=_0x569d5e[_0xe405d(0x191)];const _0x43fbdf={};_0x43fbdf[_0xe405d(0xcc)]=_0x569d5e[_0xe405d(0x15d)],_0x43fbdf[_0xe405d(0xed)]=_0x569d5e[_0xe405d(0x191)];const _0x7a5b31={};_0x7a5b31[_0xe405d(0xcc)]=_0x569d5e[_0xe405d(0x127)],_0x7a5b31['type']=_0x569d5e[_0xe405d(0x191)];const _0x1213ab={};_0x1213ab[_0xe405d(0xcc)]=_0x569d5e[_0xe405d(0x121)],_0x1213ab['type']=_0x569d5e['vaRLQ'];const _0x1ac854={};_0x1ac854[_0xe405d(0xcc)]=_0x569d5e[_0xe405d(0xba)],_0x1ac854[_0xe405d(0xed)]=_0x569d5e['vaRLQ'];const _0xf548ea={};_0xf548ea[_0xe405d(0xcc)]=_0x569d5e['lgPxx'],_0xf548ea['type']=_0x569d5e[_0xe405d(0x191)];const _0x4d04de={};return _0x4d04de[_0xe405d(0xd4)]=_0x3a220f,_0x4d04de[_0xe405d(0x149)]=_0x43fbdf,_0x4d04de['cluster-name']=_0x7a5b31,_0x4d04de[_0xe405d(0xc1)]=_0x1213ab,_0x4d04de['region']=_0x1ac854,_0x4d04de[_0xe405d(0x10a)]=_0xf548ea,_0x51f2e9[_0xe405d(0x11c)](_0x1f4c5f[_0xe405d(0x96)])[_0xe405d(0x109)](_0x59c2f7)[_0xe405d(0x8b)](_0x4d04de)[_0xe405d(0x1a5)](_0x569d5e['kgUED'])[_0xe405d(0x1b5)];}else{_0x17dfb6='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x32e33b,logger[_0xe405d(0x13b)](_0x17dfb6);const _0x3a1c43={};_0x3a1c43[_0xe405d(0xed)]=WS_EVENTS['LOG'],_0x3a1c43[_0xe405d(0xca)]=_0x17dfb6,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x3a1c43),_0x3b6d92=_0x531b87['concurrency'],_0x392bc8=_0x531b87[_0xe405d(0x18d)],_0x29c6ea=null,_0x30e516=null,_0x11515e=null,_0x4aacf7=_0x531b87[_0xe405d(0xf2)],_0x35dc0b=_0x531b87[_0xe405d(0x13c)],_0x514a66=_0x531b87[_0xe405d(0xb6)],_0x4c97c3=_0x24a3c0[_0xe405d(0x137)],_0x1e983c=_0x24a3c0[_0xe405d(0xc2)],_0x569d5e['oIYyB'](_0x531b87[_0xe405d(0x148)],undefined)&&_0x531b87[_0xe405d(0x148)]&&(_0x569d5e['tQLGK'](_0x569d5e['WBIjZ'],_0x569d5e['FsFre'])?_0x2bf95a['info'](_0xe405d(0x1c7)+_0x363bb0[_0xe405d(0x128)](_0x3cbb2a)+'\x20'):global_registry[_0xe405d(0x140)]=!![]),_0x569d5e['eyqDD'](updateGlobalRegistryWithConfig,_0x21dfe1,_0x41b52b,_0x432fab,_0x3b6d92,_0x392bc8,_0x4aacf7,_0x531b87,_0x4c97c3,_0x1e983c,_0x35dc0b,_0x514a66);}}else{if(_0x569d5e[_0xe405d(0xd5)](_0x569d5e[_0xe405d(0x1b0)],_0x569d5e[_0xe405d(0xc7)])){const _0x1f750c=_0x569d5e['ZMQHo'][_0xe405d(0xa4)]('|');let _0x235115=0x0;while(!![]){switch(_0x1f750c[_0x235115++]){case'0':logger[_0xe405d(0x13b)](_0x17dfb6);continue;case'1':global_registry[_0xe405d(0xc2)]=_0x24a3c0[_0xe405d(0xc2)];continue;case'2':const _0x506916={};_0x506916[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x129)],_0x506916[_0xe405d(0xca)]=_0x569d5e[_0xe405d(0xf0)],webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x506916);continue;case'3':global_registry[_0xe405d(0x137)]=_0x24a3c0[_0xe405d(0x137)];continue;case'4':global_registry[_0xe405d(0x126)]=_0x41b52b;continue;case'5':global_registry[_0xe405d(0x166)]=_0x432fab;continue;case'6':_0x17dfb6='Spawning\x20the\x20grid\x20'+_0x32e33b+_0xe405d(0x15c)+_0x41b52b+'\x27';continue;case'7':const _0x17a5ca={};_0x17a5ca[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x17a5ca[_0xe405d(0xca)]=_0x17dfb6,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x17a5ca);continue;case'8':global_registry['cloudProvider']=_0x21dfe1;continue;}break;}}else _0x57b2ba['gridProfile']=_0x59c876[_0xe405d(0x1b7)];}}const _0x3ab59a=await _0x569d5e[_0xe405d(0x176)](getCloudProviderObject,_0x21dfe1,_0x41b52b,_0x32e33b,_0x1f0ade,webSocketUtils,_0x1acbbe);_0x569d5e[_0xe405d(0x162)](_0x21dfe1,AZURE)&&_0x3ab59a[_0xe405d(0x17c)]();let _0x4c30aa;if(_0x569d5e[_0xe405d(0x1a4)](_0x34687c,![])){_0x17dfb6=_0xe405d(0x1a7)+_0x432fab+').';const _0x2ca4f9={};_0x2ca4f9[_0xe405d(0xed)]=WS_EVENTS['LOG'],_0x2ca4f9[_0xe405d(0xca)]=_0x17dfb6,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x2ca4f9),logger[_0xe405d(0x13b)](_0x17dfb6);const _0x192772=await _0x3ab59a[_0xe405d(0xcd)]();if(_0x192772){const _0x3ddbc8={};_0x3ddbc8[_0xe405d(0xed)]=WS_EVENTS['LOG'],_0x3ddbc8[_0xe405d(0xca)]=_0xe405d(0x1b4)+_0x41b52b+_0xe405d(0x115),webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x3ddbc8,_0x569d5e['aovEi']),logger[_0xe405d(0x13b)](_0xe405d(0x1b4)+_0x41b52b+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x34687c=!![];if(_0x569d5e[_0xe405d(0x95)](_0x14865c,!![]))throw new Error(_0xe405d(0x1b4)+_0x41b52b+_0xe405d(0xa0));}else{const _0x3b1ce8={};_0x3b1ce8[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x3b1ce8[_0xe405d(0xca)]=_0x569d5e[_0xe405d(0xad)],webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x3b1ce8),logger[_0xe405d(0x13b)](_0x569d5e[_0xe405d(0xad)]);const _0x3fd030=_0x569d5e[_0xe405d(0x197)](_0x29c6ea,null)&&_0x569d5e[_0xe405d(0x1bc)](_0x29c6ea,undefined),_0x598aca=_0x569d5e['TBFWG'](_0x11515e,null)&&_0x569d5e[_0xe405d(0x172)](_0x11515e,undefined)&&_0x569d5e[_0xe405d(0x106)](_0x11515e['length'],0x0);if(_0x3fd030){_0x569d5e[_0xe405d(0x12b)](_0x598aca,![])&&(_0x17dfb6=_0x569d5e['gRgYd'],await _0x569d5e['mwZks'](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0x19d)],_0x569d5e['rNTTB']),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1));const _0x5bf752=await _0x3ab59a[_0xe405d(0xb1)](_0x29c6ea);_0x569d5e[_0xe405d(0xa5)](_0x5bf752,![])?(_0x17dfb6=_0x569d5e[_0xe405d(0x14b)],await _0x569d5e[_0xe405d(0x14d)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e['SNjLb'],_0x569d5e[_0xe405d(0xf4)],_0x569d5e['rNTTB']),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1)):logger['info'](_0xe405d(0x12e)+_0x29c6ea+'\x20');const _0x35c23e=await _0x3ab59a[_0xe405d(0x19e)](_0x11515e,_0x29c6ea);_0x569d5e[_0xe405d(0x95)](_0x35c23e[0x0],![])?(_0x17dfb6=_0xe405d(0x1ac)+JSON[_0xe405d(0x128)](_0x35c23e[0x1])+_0xe405d(0xa7)+_0x29c6ea+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x569d5e['yAFfo'](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes['ERROR'],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0xf7)],_0x569d5e[_0xe405d(0x17d)]),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0xe405d(0x128)](_0x11515e)+'\x20'),await _0x3ab59a['setupNewCluster'](_0x29c6ea,_0x11515e);}else{const _0xb1a3b9=_0x569d5e[_0xe405d(0xf9)]['split']('|');let _0x23c73d=0x0;while(!![]){switch(_0xb1a3b9[_0x23c73d++]){case'0':const _0xc793d6={};_0xc793d6[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0xc793d6[_0xe405d(0xca)]=_0x569d5e['XQRBk'],webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0xc793d6);continue;case'1':await _0x3ab59a['setupNewCluster'](_0x29c6ea,_0x11515e);continue;case'2':logger['info'](_0x569d5e[_0xe405d(0x94)]);continue;case'3':logger['info'](_0x569d5e[_0xe405d(0xdb)]);continue;case'4':const _0x27cbba={};_0x27cbba['type']=WS_EVENTS['LOG'],_0x27cbba[_0xe405d(0xca)]=_0x569d5e[_0xe405d(0x94)],webSocketUtils['sendEventToBackend'](_0x1f0ade,_0x27cbba);continue;}break;}}}}_0x34687c&&_0x569d5e['KKxGn'](_0x21dfe1,AZURE)&&(await _0x3ab59a[_0xe405d(0x189)](),await _0x3ab59a[_0xe405d(0xd9)]());const [_0x413020,_0x44dd07,_0x54f6e8,_0x829f46,_0x39c2e5,_0x1a3dea]=await _0x569d5e['AdIiD'](createK8sClient,_0x3ab59a);_0x569d5e[_0xe405d(0x1ab)](_0x34687c,![])&&_0x569d5e['iDvZi'](_0x21dfe1,AWS)&&(global_registry[_0xe405d(0x119)]=!![],_0x4c30aa=await _0x3ab59a['setupAutoscaler'](_0x413020,_0x1acbbe));try{_0x25c432=_0x569d5e[_0xe405d(0x81)](kebabCase,_0x32e33b),logger[_0xe405d(0x13b)](_0x569d5e[_0xe405d(0x80)]);const _0xcd2c38={};_0xcd2c38[_0xe405d(0xed)]=WS_EVENTS['LOG'],_0xcd2c38[_0xe405d(0xca)]=_0x569d5e[_0xe405d(0x80)],webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0xcd2c38);if(_0x569d5e[_0xe405d(0xde)](_0x25c432,_0x569d5e[_0xe405d(0x17a)])){const _0x431394={};_0x431394[_0xe405d(0xbc)]=_0x569d5e[_0xe405d(0x1ae)],_0x431394['managedBy']=_0x569d5e[_0xe405d(0x1ae)];const _0x79f573={};_0x79f573[_0xe405d(0x194)]=_0x25c432,_0x79f573['annotations']=_0x431394;const _0x4136f9={};_0x4136f9[_0xe405d(0x120)]=_0x79f573;const _0x59fe8f=_0x4136f9,_0x320662={};_0x320662[_0xe405d(0x1c2)]=_0x59fe8f,await _0x413020[_0xe405d(0x156)](_0x320662),logger[_0xe405d(0x13b)](_0x569d5e[_0xe405d(0xcf)]);}const _0x323110={};_0x323110[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x323110[_0xe405d(0xca)]=_0x569d5e[_0xe405d(0x132)],webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x323110);const _0x4800ac={};_0x4800ac[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x4800ac[_0xe405d(0xca)]=_0x569d5e['JVHZw'],webSocketUtils['sendEventToBackend'](_0x1f0ade,_0x4800ac),logger[_0xe405d(0x13b)](_0x569d5e[_0xe405d(0x1ad)]);let _0x1ea699={};_0x569d5e['peTYZ'](_0x21dfe1,AZURE)&&(_0x1ea699={'clientId':await _0x3ab59a['getResourceClientId'](_0xe405d(0x139)+_0x41b52b)});await _0x569d5e[_0xe405d(0x182)](addGridComponents,_0x413020,_0x44dd07,_0x54f6e8,_0x829f46,_0x25c432,_0x41b52b,_0x4c30aa,_0x39c2e5,_0x1a3dea,_0x1ea699),_0x17dfb6=_0x569d5e[_0xe405d(0x112)],logger[_0xe405d(0x13b)](_0x17dfb6);const _0x1c98d3={};_0x1c98d3[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x1c98d3[_0xe405d(0xca)]=_0x17dfb6,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x1c98d3),_0x17dfb6=_0x569d5e['KiKkG'],logger['info'](_0x17dfb6);const _0x571e27={};_0x571e27[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x196)],_0x571e27[_0xe405d(0xca)]=_0x17dfb6,webSocketUtils['sendEventToBackend'](_0x1f0ade,_0x571e27),await _0x569d5e[_0xe405d(0xb2)](waitForDeployment,_0x44dd07,_0x25c432,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x280ef8=await _0x569d5e['pBcKs'](getNamespaceUID,_0x413020,_0x25c432),_0x3fccbc=global_registry[_0xe405d(0x140)]?_0x569d5e['CNPDt']:_0x569d5e[_0xe405d(0x84)],_0x5b8e5e={};_0x5b8e5e[_0xe405d(0x194)]=_0x3fccbc,_0x5b8e5e['namespace']=_0x569d5e['UPsDG'];const _0x57ea73=await _0x413020['readNamespacedService'](_0x5b8e5e);let _0x225606=_0x3ab59a[_0xe405d(0x1a3)](_0x57ea73)+'/'+_0x25c432,_0x1a1891=_0x569d5e['ZlAWX'];try{const _0xf028c8=_0xe405d(0xc4)+AG_API_URL+_0xe405d(0xd1)+_0x280ef8,_0x4052fd=await _0x569d5e[_0xe405d(0x1bf)](got,_0xf028c8,_0x522a22);(_0x569d5e['ttZCi'](_0x4052fd,null)||_0x569d5e[_0xe405d(0x1ab)](_0x4052fd,undefined))&&(_0x17dfb6=_0x569d5e[_0xe405d(0x16a)],await _0x569d5e[_0xe405d(0x8c)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes['ERROR'],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0x173)],_0x569d5e['rNTTB']),logger[_0xe405d(0x142)](_0x17dfb6),process['exit'](0x1));_0x569d5e['NNQsG'](_0x4052fd['statusCode'],0x191)&&(_0x17dfb6=_0x569d5e[_0xe405d(0x13a)],await _0x569d5e[_0xe405d(0x117)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0x145)],_0x569d5e[_0xe405d(0x17d)]),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1));_0x569d5e[_0xe405d(0x131)](_0x4052fd[_0xe405d(0x158)],0xc8)&&(_0x17dfb6=_0xe405d(0x16d)+JSON[_0xe405d(0x128)](_0x4052fd),await _0x569d5e[_0xe405d(0x14d)](reportToGalactusAndSendToEDS,_0x1acbbe,_0x1f0ade,_0x17dfb6,messageTypes['ERROR'],_0x569d5e[_0xe405d(0xe1)],_0x569d5e[_0xe405d(0xe3)],_0x569d5e[_0xe405d(0x17d)]),logger[_0xe405d(0x142)](_0x17dfb6),process[_0xe405d(0xf5)](0x1));const _0x25b8fa=JSON[_0xe405d(0x171)](_0x4052fd[_0xe405d(0x1c2)]);_0x25b8fa[_0xe405d(0x1bb)]&&(_0x225606=_0x25b8fa[_0xe405d(0x1bb)],_0x1a1891=_0x569d5e[_0xe405d(0xac)]),global_registry[_0xe405d(0x140)]&&(_0x1a1891=_0x569d5e[_0xe405d(0xcb)]);}catch(_0x1f5701){}_0x17dfb6=_0xe405d(0xbd)+_0x225606+'\x20',logger[_0xe405d(0x13b)](_0x17dfb6);const _0x3d41fc={};_0x3d41fc['type']=WS_EVENTS[_0xe405d(0x196)],_0x3d41fc['message']=_0x17dfb6,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x3d41fc),_0x17dfb6=_0xe405d(0xec)+_0x1a1891+_0xe405d(0xd2)+_0x225606+_0xe405d(0x110),logger[_0xe405d(0x13b)](_0x17dfb6);const _0x50c486={};_0x50c486[_0xe405d(0xed)]=WS_EVENTS['LOG'],_0x50c486[_0xe405d(0xca)]=_0x17dfb6,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x50c486);const _0x13dd7c={};_0x13dd7c[_0xe405d(0xed)]=WS_EVENTS[_0xe405d(0x12c)],_0x13dd7c[_0xe405d(0xca)]=_0xe405d(0x169)+_0x225606,webSocketUtils[_0xe405d(0xce)](_0x1f0ade,_0x13dd7c),await webSocketUtils['delay'](0x7d0);}catch(_0x23bd21){logger[_0xe405d(0x142)](_0xe405d(0xa8)+_0x23bd21+'\x20\x0a'+JSON[_0xe405d(0x128)](_0x23bd21[_0xe405d(0x93)]));if(_0x569d5e[_0xe405d(0x1c6)](_0x34687c,![]))try{logger[_0xe405d(0x13b)](_0x569d5e[_0xe405d(0x170)]),await _0x569d5e['ClAQt'](removeGridComponents,_0x413020,_0x44dd07,_0x54f6e8,_0x829f46,_0x25c432),await _0x3ab59a[_0xe405d(0x155)](_0x413020,global_registry[_0xe405d(0x166)]);}catch(_0x2a5c00){logger[_0xe405d(0x142)](_0xe405d(0x14e)+_0x2a5c00+'\x20\x0a'+JSON[_0xe405d(0x128)](_0x2a5c00['stack']));}throw _0x23bd21;}}catch(_0x7fd89b){const _0x59b7ed=_0xe405d(0x138)+_0x7fd89b+'\x20\x0a'+JSON['stringify'](_0x7fd89b[_0xe405d(0x93)]);if(_0x1f0ade){const _0x193373={};_0x193373['type']=WS_EVENTS[_0xe405d(0x196)],_0x193373[_0xe405d(0xca)]=_0x59b7ed,webSocketUtils['sendEventToBackend'](_0x1f0ade,_0x193373,_0x569d5e[_0xe405d(0x17d)],!![]);}await webSocketUtils[_0xe405d(0x7f)](0x7d0);const _0x1cfe44={};_0x1cfe44[_0xe405d(0x142)]=_0x59b7ed,await _0x569d5e[_0xe405d(0x190)](sendInstrumentationEvent,_0x1acbbe,_0x569d5e[_0xe405d(0xe1)],messageTypes[_0xe405d(0x144)],_0x569d5e[_0xe405d(0x1c4)],_0x1cfe44,_0x1acbbe),logger[_0xe405d(0x142)](_0x59b7ed);}process['exit'](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10_0x49b074=a10_0x24ed;function a10_0x24ed(_0x5db99f,_0x1997ab){const _0x3275e4=a10_0x3275();return a10_0x24ed=function(_0x24edcb,_0xb32c2b){_0x24edcb=_0x24edcb-0x89;let _0x961b30=_0x3275e4[_0x24edcb];return _0x961b30;},a10_0x24ed(_0x5db99f,_0x1997ab);}(function(_0x1c4164,_0x4112aa){const _0x529aae=a10_0x24ed,_0x173e4c=_0x1c4164();while(!![]){try{const _0x27320b=-parseInt(_0x529aae(0x9d))/0x1*(parseInt(_0x529aae(0x95))/0x2)+-parseInt(_0x529aae(0x94))/0x3*(-parseInt(_0x529aae(0x8b))/0x4)+parseInt(_0x529aae(0x8a))/0x5+parseInt(_0x529aae(0x97))/0x6*(parseInt(_0x529aae(0x89))/0x7)+-parseInt(_0x529aae(0x92))/0x8+parseInt(_0x529aae(0x91))/0x9*(parseInt(_0x529aae(0x9a))/0xa)+-parseInt(_0x529aae(0x9c))/0xb*(parseInt(_0x529aae(0xa3))/0xc);if(_0x27320b===_0x4112aa)break;else _0x173e4c['push'](_0x173e4c['shift']());}catch(_0x9a8d2a){_0x173e4c['push'](_0x173e4c['shift']());}}}(a10_0x3275,0xc0c0a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x49b074(0xa1));function a10_0x3275(){const _0x9aed96=['cjiVf','../config/constants','delete_commands','12HAgBYg','epilogue','command','2763985cfSWBy','3402405fFpOOD','20fLUtiz','strict','demandCommand','help','List\x20Grid\x20resources.','commandDir','270tgkOSr','11005312DzRTUy','usage','172005vbXgEy','1032xvAhdp','builder','18pcrdxd','PTVdc','recommendCommands','60930EPmeyU','delete','1493723LwMvtK','65DOsUnm','handler','desc'];a10_0x3275=function(){return _0x9aed96;};return a10_0x3275();}exports[a10_0x49b074(0xa5)]='delete',exports[a10_0x49b074(0x9f)]=a10_0x49b074(0x8f),exports[a10_0x49b074(0x96)]=function(_0x445c40){const _0x46a6d9=a10_0x49b074,_0x2741f2={};_0x2741f2[_0x46a6d9(0xa0)]=_0x46a6d9(0xa2),_0x2741f2[_0x46a6d9(0x98)]=_0x46a6d9(0x8e);const _0x586fb7=_0x2741f2;return _0x445c40[_0x46a6d9(0x93)](HELP_HEADER_MESSAGE[_0x46a6d9(0x9b)])[_0x46a6d9(0xa4)](HELP_FOOTER_MESSAGE)[_0x46a6d9(0x90)](_0x586fb7['cjiVf'])[_0x46a6d9(0x8d)]()[_0x46a6d9(0x99)]()[_0x46a6d9(0x8c)]()['help'](_0x586fb7[_0x46a6d9(0x98)]);},exports[a10_0x49b074(0x9e)]=function(_0x3deaeb){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x50b5ff=a11_0x4251;(function(_0x336bfd,_0x2a4f00){const _0x522186=a11_0x4251,_0xb159e0=_0x336bfd();while(!![]){try{const _0xaa1ee4=parseInt(_0x522186(0xca))/0x1+-parseInt(_0x522186(0x73))/0x2*(parseInt(_0x522186(0x94))/0x3)+-parseInt(_0x522186(0xaf))/0x4*(-parseInt(_0x522186(0xfb))/0x5)+-parseInt(_0x522186(0x7c))/0x6*(-parseInt(_0x522186(0x6f))/0x7)+parseInt(_0x522186(0x87))/0x8*(parseInt(_0x522186(0x6e))/0x9)+parseInt(_0x522186(0xc8))/0xa*(parseInt(_0x522186(0xbb))/0xb)+-parseInt(_0x522186(0xb3))/0xc;if(_0xaa1ee4===_0x2a4f00)break;else _0xb159e0['push'](_0xb159e0['shift']());}catch(_0x1ac5a3){_0xb159e0['push'](_0xb159e0['shift']());}}}(a11_0x46c7,0xdbda4));function a11_0x4251(_0x50990a,_0x391e99){const _0x46c7e2=a11_0x46c7();return a11_0x4251=function(_0x42516a,_0x56cc13){_0x42516a=_0x42516a-0x65;let _0xe39850=_0x46c7e2[_0x42516a];return _0xe39850;},a11_0x4251(_0x50990a,_0x391e99);}const fs=require('fs'),got=require(a11_0x50b5ff(0x67)),{v4:uuidv4}=require(a11_0x50b5ff(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x50b5ff(0xc9)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x50b5ff(0xb8)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x50b5ff(0x6d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require('../../utils/userInput'),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x50b5ff(0x93));function a11_0x46c7(){const _0x115fe3=['Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','../../utils/gridComponents','1875285tYxqKS','117054wvlGKU','DNOev','DTxau','catch','5506ddxwne','CKWZW','info','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','zciMW','stringify','bttXs','Browserstack','318qoFFRc','readFileSync','region','\x22\x20and\x20ID\x20','pTPvx','https://','Namespace:\x20','fwZqV','ERROR','cloudProvider','sUdbM','40GvLkAi','aNpFt','Successfully\x20deleted\x20the\x20grid','ZxYZf','invalid-input','LhYPy','delete','desc','mTADF','VTplC','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','handler','../../utils/utilityMethods','471KCWgpA','KAJZm','SjliH','WqtjW','clusterId','Tsulh','MCABW','ElWzU','TWWvI','Delete\x20an\x20Automation\x20grid.','qRUwW','TsRjY','exit','invalid-grid-id','TjPUi','roXTp','onlyGridInCluster','qMxVw','euAUo','debug','ukGXK','toLowerCase','DeaPH','LkwBx','BsMHA','parse','nrgYn','5372uQPgnM','builder','description','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','47334828DFGWvo','bgDoE','\x22\x20with\x20ID\x20','delete-grid-called','options','../../cloudproviders/utils','buECI','fxJnY','13211ZWEzLT','ffNKy','configureIfNotConfigured','wUzKT','HmdXj','Cluster:\x20','clusterName','eFboa','DELETE','type','ZbudJ','gridId','fetchLocalCreds','9230udqwLR','../../config/constants','1630970WqXtHi','clusterSpawnedVia','EWmCb','command','tsmOz','grid-id','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','then','name','vnpCR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','unauthorised','LseFg','Pass\x20the\x20ID\x20of\x20the\x20Grid','warn','PIaaP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KjTiX','RKwlq','MfOiM','YRkjc','statusCode','usage','uVLrA','cAaWU','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','argv','PWMMg','mdhdf','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','requestId','uuid','aXBzC','ZnmHR','epilogue','readNamespace','stack','server-error','oedqu','username','KKwPH','unknown-error','Jzfio','VSRyU','Failed\x20to\x20delete\x20resources!\x20Error:\x20','PNcfj','2270hSfECs','string','password','zDapi','UNEBK','help','got','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','lEZug','mCXbA'];a11_0x46c7=function(){return _0x115fe3;};return a11_0x46c7();}exports[a11_0x50b5ff(0xcd)]='grid',exports[a11_0x50b5ff(0x8e)]=a11_0x50b5ff(0x9d),exports[a11_0x50b5ff(0xb0)]=function(_0x2df659){const _0x1e28fc=a11_0x50b5ff,_0x143034={};_0x143034[_0x1e28fc(0x9a)]=_0x1e28fc(0xd9),_0x143034[_0x1e28fc(0x69)]='string',_0x143034[_0x1e28fc(0xf3)]=_0x1e28fc(0x66);const _0x598bbc=_0x143034,_0xf73226={};_0xf73226['description']=_0x598bbc[_0x1e28fc(0x9a)],_0xf73226[_0x1e28fc(0xc4)]=_0x598bbc[_0x1e28fc(0x69)];const _0x968a6b={};return _0x968a6b[_0x1e28fc(0xcf)]=_0xf73226,_0x2df659[_0x1e28fc(0xe2)](HELP_HEADER_MESSAGE[_0x1e28fc(0x8d)])[_0x1e28fc(0xef)](HELP_FOOTER_MESSAGE)[_0x1e28fc(0xb7)](_0x968a6b)['help'](_0x598bbc[_0x1e28fc(0xf3)])[_0x1e28fc(0xe7)];},exports[a11_0x50b5ff(0x92)]=async function(_0x4978f3){const _0x3cf5a5=a11_0x50b5ff,_0x283431={'PNcfj':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','bgDoE':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ZxYZf':_0x3cf5a5(0xfc),'TjPUi':_0x3cf5a5(0x66),'DTxau':function(_0xf01d9e,_0xa8ee1d){return _0xf01d9e!==_0xa8ee1d;},'YRkjc':_0x3cf5a5(0x74),'roXTp':_0x3cf5a5(0x80),'HmdXj':function(_0x420d9c,_0x44cba4){return _0x420d9c===_0x44cba4;},'PWMMg':_0x3cf5a5(0x96),'EWmCb':_0x3cf5a5(0xde),'eFboa':function(_0x12c5f2){return _0x12c5f2();},'sUdbM':function(_0x4e5f08){return _0x4e5f08();},'aXBzC':_0x3cf5a5(0x97),'zDapi':_0x3cf5a5(0xb2),'VTplC':function(_0x3ed090,_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7){return _0x3ed090(_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7);},'LseFg':_0x3cf5a5(0xb6),'aNpFt':'init-not-called','Tsulh':function(_0x56b8a8,_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660){return _0x56b8a8(_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660);},'BsMHA':_0x3cf5a5(0xbe),'yNTUR':function(_0x1a9488,_0x449557,_0x23211e,_0x5d80ad){return _0x1a9488(_0x449557,_0x23211e,_0x5d80ad);},'ggMsc':function(_0x53f342,_0x32312b){return _0x53f342===_0x32312b;},'fxJnY':_0x3cf5a5(0x7b),'qMxVw':_0x3cf5a5(0x95),'ZnmHR':function(_0x2e7fb2,_0x2784a6){return _0x2e7fb2(_0x2784a6);},'zciMW':function(_0x4d4fb5,_0x3b4ed5){return _0x4d4fb5===_0x3b4ed5;},'ElWzU':function(_0x3be3a5,_0x22429b){return _0x3be3a5===_0x22429b;},'nrgYn':function(_0x50cdf6,_0x2c909b){return _0x50cdf6===_0x2c909b;},'buECI':function(_0x41498c,_0x2033d3){return _0x41498c!==_0x2033d3;},'KKwPH':_0x3cf5a5(0x9e),'UNEBK':_0x3cf5a5(0xa8),'TWWvI':_0x3cf5a5(0x6b),'Jzfio':function(_0x50447e,_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6){return _0x50447e(_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6);},'fwZqV':_0x3cf5a5(0x8b),'IyqWJ':function(_0x335668,_0x36a296){return _0x335668===_0x36a296;},'bttXs':function(_0x24f4ee,_0x37c12d){return _0x24f4ee!==_0x37c12d;},'TsRjY':'xYFIf','swDGW':function(_0x3bebbe,_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae){return _0x3bebbe(_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae);},'DNOev':function(_0x5af361,_0xb7d745){return _0x5af361===_0xb7d745;},'OuOFO':function(_0x11f9cc,_0x2f5a21){return _0x11f9cc!==_0x2f5a21;},'zfxfX':'VxqDf','ymoyt':_0x3cf5a5(0x8c),'PIaaP':_0x3cf5a5(0xe5),'ZbudJ':_0x3cf5a5(0xab),'MfOiM':_0x3cf5a5(0xd4),'mTADF':function(_0x38dee0,_0x22b222,_0x5d932e,_0x4137eb){return _0x38dee0(_0x22b222,_0x5d932e,_0x4137eb);},'mdhdf':function(_0xd41d8d){return _0xd41d8d();},'euAUo':_0x3cf5a5(0x6c),'lIUlq':function(_0x31416b,_0x976acc){return _0x31416b!==_0x976acc;},'ffNKy':'WPbxf','uVLrA':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','jECmw':function(_0xec7634,_0x3525c2){return _0xec7634(_0x3525c2);},'KjTiX':function(_0x37aa2d,_0x30f412){return _0x37aa2d(_0x30f412);},'FWbct':function(_0x36115a,_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b){return _0x36115a(_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b);},'DQzQn':_0x3cf5a5(0xc3),'VSRyU':function(_0x136376,_0x55d190,_0x203d90){return _0x136376(_0x55d190,_0x203d90);},'DeaPH':function(_0x17e3a9,_0x39f37d){return _0x17e3a9!==_0x39f37d;},'cAaWU':function(_0x4e975d,_0x4d49a7){return _0x4e975d!==_0x4d49a7;},'fsNrb':_0x3cf5a5(0xf2),'OEwyj':_0x3cf5a5(0xd7),'gpetX':function(_0x19ee25,_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44){return _0x19ee25(_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44);},'mCXbA':_0x3cf5a5(0xa1),'tsmOz':_0x3cf5a5(0xf6)};try{global_registry[_0x3cf5a5(0xeb)]=_0x283431[_0x3cf5a5(0xc2)](uuidv4);!fs['existsSync'](_0x283431[_0x3cf5a5(0x86)](getCredentialsPath))&&(_0x283431['DTxau'](_0x283431['aXBzC'],_0x283431[_0x3cf5a5(0xed)])?(_0x33ad5d[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),_0x552731[_0x3cf5a5(0xa0)](0x1)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfe)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x88)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)));_0x283431[_0x3cf5a5(0x99)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['INFO'],null,null,_0x4978f3);!_0x4978f3[_0x3cf5a5(0xc6)]&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xac)],_0x283431['BsMHA'])?_0x3d23c0[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x19fe09[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),process[_0x3cf5a5(0xa0)](0x1)));const _0x6973bd=JSON[_0x3cf5a5(0xad)](fs[_0x3cf5a5(0x7d)](_0x283431[_0x3cf5a5(0xc2)](getCredentialsPath))),[_0x399814,_0x483fb8]=await _0x283431['yNTUR'](getGridDetails,_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xf4)],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)],_0x4978f3[_0x3cf5a5(0xc6)]);if(_0x483fb8){const _0x4eb716=_0x483fb8[_0x3cf5a5(0x75)];let _0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x4eb716['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x58dc36;_0x483fb8[_0x3cf5a5(0xa4)]&&_0x283431['ggMsc'](_0x483fb8[_0x3cf5a5(0xcb)],_0x283431[_0x3cf5a5(0xba)])&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xa5)],_0x283431[_0x3cf5a5(0xa5)])?_0x4ef2f4['info'](_0x3cf5a5(0x82)+_0x2a87d2+_0x3cf5a5(0xe6)):_0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716['name']+_0x3cf5a5(0x7f)+_0x4eb716['id']+_0x3cf5a5(0xd1)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0xb5)+_0x4eb716['clusterId']+_0x3cf5a5(0x76));_0x58dc36=await _0x283431[_0x3cf5a5(0xee)](inputConfirmation,_0x21f3f2);(_0x283431[_0x3cf5a5(0x78)](_0x58dc36,undefined)||_0x283431[_0x3cf5a5(0x9b)](_0x58dc36,null)||!(_0x283431[_0x3cf5a5(0xae)](_0x58dc36[_0x3cf5a5(0xa9)](),'y')||_0x283431['ggMsc'](_0x58dc36['toLowerCase'](),'n')))&&(_0x283431[_0x3cf5a5(0xb9)](_0x283431[_0x3cf5a5(0xf5)],_0x283431[_0x3cf5a5(0x65)])?(console['error'](_0x283431[_0x3cf5a5(0x9c)]),await _0x283431['Jzfio'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x83)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)):_0x572a3b=_0x3cf5a5(0xea)+_0x168e78[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x273fd5['id']+_0x3cf5a5(0xd1)+_0x49049f['clusterName']+'\x22\x20with\x20ID\x20'+_0x27fdac[_0x3cf5a5(0x98)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x283431['IyqWJ'](_0x58dc36[_0x3cf5a5(0xa9)](),'n')&&(_0x283431[_0x3cf5a5(0x7a)](_0x283431[_0x3cf5a5(0x9f)],_0x283431[_0x3cf5a5(0x9f)])?_0x18baf4['warn']('Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted'):process[_0x3cf5a5(0xa0)](0x0));global_registry['clusterRegion']=_0x4eb716[_0x3cf5a5(0x7e)];const _0xdc5b5d=_0x4eb716[_0x3cf5a5(0x85)],_0xa3167=await _0x283431['swDGW'](getCloudProviderObject,_0xdc5b5d,_0x4eb716[_0x3cf5a5(0xc1)],_0x4eb716[_0x3cf5a5(0xd3)],_0x4978f3),_0x248c82=_0x6973bd[_0x3cf5a5(0x85)];if(_0x283431[_0x3cf5a5(0x70)](_0x248c82[_0xdc5b5d],undefined)){if(_0x283431['OuOFO'](_0x283431['zfxfX'],_0x283431['ymoyt'])){logger['info'](_0x283431[_0x3cf5a5(0xdb)]);_0x283431['ElWzU'](_0x6973bd[_0x3cf5a5(0x85)],undefined)&&(_0x283431['nrgYn'](_0x283431[_0x3cf5a5(0xc5)],_0x283431[_0x3cf5a5(0xdf)])?_0x1ae051[_0x3cf5a5(0x85)]={}:_0x6973bd[_0x3cf5a5(0x85)]={});_0x6973bd[_0x3cf5a5(0x85)][_0xdc5b5d]={};const _0x13c0e4=await _0x283431[_0x3cf5a5(0x8f)](inputCloudProviderKeys,_0xdc5b5d,_0x6973bd,_0xa3167);fs['writeFileSync'](_0x283431[_0x3cf5a5(0xe9)](getCredentialsPath),JSON[_0x3cf5a5(0x79)](_0x13c0e4)),logger[_0x3cf5a5(0xa7)](_0x283431[_0x3cf5a5(0xa6)]);}else _0x24c87c[_0x3cf5a5(0xa0)](0x0);}else{if(_0x283431['lIUlq'](_0x283431[_0x3cf5a5(0xbc)],_0x283431[_0x3cf5a5(0xbc)])){const _0x40c54a={};_0x40c54a[_0x3cf5a5(0xb1)]=_0x283431[_0x3cf5a5(0xb4)],_0x40c54a[_0x3cf5a5(0xc4)]=_0x283431[_0x3cf5a5(0x8a)];const _0x34d81b={};return _0x34d81b['grid-id']=_0x40c54a,_0x314445[_0x3cf5a5(0xe2)](_0x5f598b['delete'])[_0x3cf5a5(0xef)](_0x4178c6)[_0x3cf5a5(0xb7)](_0x34d81b)[_0x3cf5a5(0x66)](_0x283431[_0x3cf5a5(0xa2)])[_0x3cf5a5(0xe7)];}else logger[_0x3cf5a5(0x75)](_0x283431[_0x3cf5a5(0xe3)]),await _0xa3167[_0x3cf5a5(0xc7)](_0x248c82);}_0xa3167[_0x3cf5a5(0xbd)]();const _0x2f7776=await _0xa3167['isClusterPresent']();if(_0x2f7776){const _0xc1809a=_0x283431['jECmw'](kebabCase,_0x4eb716[_0x3cf5a5(0xd3)]),[_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0x3daee1,_0x1d847b]=await _0x283431[_0x3cf5a5(0xdd)](createK8sClient,_0xa3167);let _0x12fcd8=!![];const _0x53666a={};_0x53666a[_0x3cf5a5(0xd3)]=_0xc1809a,await _0x524a26[_0x3cf5a5(0xf0)](_0x53666a)[_0x3cf5a5(0xd2)](_0x3b698e=>{const _0x294dc5=_0x3cf5a5;_0x283431[_0x294dc5(0x71)](_0x283431[_0x294dc5(0xe0)],_0x283431[_0x294dc5(0xa3)])?logger[_0x294dc5(0x75)]('Namespace:\x20'+_0xc1809a+_0x294dc5(0xe6)):(_0x1a3612[_0x294dc5(0xda)](_0x294dc5(0x82)+_0x3b2314+_0x294dc5(0x91)),_0xd2ff81=![]);})[_0x3cf5a5(0x72)](_0x3a150e=>{const _0x43f116=_0x3cf5a5;_0x283431[_0x43f116(0xbf)](_0x283431[_0x43f116(0xe8)],_0x283431[_0x43f116(0xcc)])?(_0x2ef590[_0x43f116(0x75)](_0x43f116(0x89)),_0xd79020[_0x43f116(0xa0)](0x0)):(logger[_0x43f116(0xda)]('Namespace:\x20'+_0xc1809a+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x12fcd8=![]);});if(_0x12fcd8){await _0x283431['FWbct'](removeGridComponents,_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0xc1809a);if(_0x483fb8[_0x3cf5a5(0xa4)]){const _0x41d279=await _0xa3167['isBrowserstackCluster']();_0x41d279?await _0xa3167['deleteCluster'](_0x524a26,_0x4eb716['region']):logger[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68));}}}else logger['warn'](_0x3cf5a5(0x77));const _0x4980e5=_0x3cf5a5(0x81)+AG_API_URL+'/packages/cli/grid/'+_0x4978f3[_0x3cf5a5(0xc6)],_0x98d007={'method':_0x283431['DQzQn'],'headers':_0x283431[_0x3cf5a5(0xf8)](getAuthHeader,_0x6973bd['Browserstack']['username'],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)]),'throwHttpErrors':![]},_0x2abe9a=await _0x283431[_0x3cf5a5(0xf8)](got,_0x4980e5,_0x98d007);_0x283431[_0x3cf5a5(0xaa)](_0x2abe9a,null)&&_0x283431[_0x3cf5a5(0xe4)](_0x2abe9a,undefined)&&_0x283431[_0x3cf5a5(0xbf)](_0x2abe9a[_0x3cf5a5(0xe1)],0xc8)&&(logger[_0x3cf5a5(0x75)](_0x3cf5a5(0x89)),process['exit'](0x0)),logger[_0x3cf5a5(0xd6)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x2abe9a[_0x3cf5a5(0xd0)]),await _0x283431['VTplC'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}_0x283431[_0x3cf5a5(0x78)](_0x399814[_0x3cf5a5(0xe1)],0x191)&&(logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xdc)),await _0x283431['Tsulh'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['OEwyj'],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)),_0x283431[_0x3cf5a5(0x9b)](_0x399814['statusCode'],0x190)&&(logger[_0x3cf5a5(0xd6)](JSON[_0x3cf5a5(0xad)](_0x399814[_0x3cf5a5(0xd0)])['message']),await _0x283431['gpetX'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x6a)],null,_0x4978f3),process['exit'](0x1)),logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xd5)+JSON['stringify'](_0x399814)),await _0x283431[_0x3cf5a5(0xf7)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['ERROR'],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}catch(_0x2c1e00){logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xf9)+_0x2c1e00[_0x3cf5a5(0xf1)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0xce)],_0x2c1e00,_0x4978f3),process['exit'](0x1);}};
|
|
1
|
+
function a11_0x55b5(_0x31d0ec,_0x1241c4){const _0x23b0fa=a11_0x23b0();return a11_0x55b5=function(_0x55b5d1,_0xd4a731){_0x55b5d1=_0x55b5d1-0x1b3;let _0x590be5=_0x23b0fa[_0x55b5d1];return _0x590be5;},a11_0x55b5(_0x31d0ec,_0x1241c4);}const a11_0xe73144=a11_0x55b5;(function(_0x5ce4a2,_0x30177f){const _0x47199f=a11_0x55b5,_0x531ec2=_0x5ce4a2();while(!![]){try{const _0x37db33=-parseInt(_0x47199f(0x217))/0x1*(-parseInt(_0x47199f(0x227))/0x2)+parseInt(_0x47199f(0x229))/0x3*(parseInt(_0x47199f(0x22d))/0x4)+-parseInt(_0x47199f(0x1fc))/0x5*(parseInt(_0x47199f(0x219))/0x6)+-parseInt(_0x47199f(0x1bc))/0x7+-parseInt(_0x47199f(0x1bd))/0x8+parseInt(_0x47199f(0x1c6))/0x9+-parseInt(_0x47199f(0x1b7))/0xa;if(_0x37db33===_0x30177f)break;else _0x531ec2['push'](_0x531ec2['shift']());}catch(_0x13cd22){_0x531ec2['push'](_0x531ec2['shift']());}}}(a11_0x23b0,0xe1bdc));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0xe73144(0x1ec)),{logger}=require(a11_0xe73144(0x216)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0xe73144(0x1b8)),{sendInstrumentationEvent}=require(a11_0xe73144(0x1e9)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0xe73144(0x1b3)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0xe73144(0x222)),webSocketUtils=require(a11_0xe73144(0x1e1));function a11_0x23b0(){const _0x30e13c=['204aWBcZJ','poLsT','kKbAy','server-error','Browserstack','HeBST','description','XrXYK','Namespace:\x20','OoZQu','cloudProvider','Orxrk','LuomE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','usage','Cluster:\x20','FGsWg','readNamespace','existsSync','wDXiF','isBrowserstackCluster','parse','handler','mFgIZ','kPBPA','\x22\x20with\x20ID\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridId','IlFgl','delete-grid-called','init-not-called','../../utils/createk8sClient','region','INRFh','password','10513950GXTiph','../../utils/gridComponents','blQQA','KOEQx','FOQXs','3082569OWeycB','2835816QzanTt','QfDaH','\x22\x20and\x20ID\x20','kohcA','warn','body','<PasswordPlaceholder>','fcFpZ','Delete\x20an\x20Automation\x20grid.','13081986WlGbOu','desc','WAQmE','isClusterPresent','unknown-error','qmniH','wClOr','clusterName','/packages/cli/grid/','zZqNu','UydwY','argv','fbjPm','KxgGc','XqStk','VDgwG','readFileSync','grid-id','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','pNYLT','HHanh','lisPK','username','lrqUO','connectionTimeout','Pass\x20the\x20ID\x20of\x20the\x20Grid','../../utils/webSocketUtils','unauthorised','KrQlF','grid','sCBIW','tkvCC','requestId','DypeD','../../utils/instrumentationUtils','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','clusterRegion','../../config/constants','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','ddkHg','TTsqf','BGaKq','delete','toLowerCase','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','stringify','error','zfbaa','GPHvx','AxIvc','string','lqKlg','5131895fIrUYz','statusCode','vogyv','help','oQxKh','exit','oAXGK','KPvbG','LgETO','options','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','qEiBP','replace','jDHxN','command','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','EKqfg','baKUS','fSfsY','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','then','Failed\x20to\x20delete\x20resources!\x20Error:\x20','INFO','qqWLP','OaBgp','../../config/logger','1837831eggiCa','CxPbR','6xEEQUp','type','HrqFG','FZqrA','VlZfE','ERROR','CnpNR','info','EzNog','../../utils/utilityMethods','clusterId','dWWkX','sjSkg','epilogue','2iDyfUz','message','29757ucsPCS','name','catch','<UsernamePlaceholder>'];a11_0x23b0=function(){return _0x30e13c;};return a11_0x23b0();}exports[a11_0xe73144(0x20b)]=a11_0xe73144(0x1e4),exports[a11_0xe73144(0x1c7)]=a11_0xe73144(0x1c5),exports['builder']=function(_0x3f454e){const _0x496fc5=a11_0xe73144,_0x435dd6={};_0x435dd6[_0x496fc5(0x203)]=_0x496fc5(0x1e0),_0x435dd6['LuomE']=_0x496fc5(0x1fa),_0x435dd6[_0x496fc5(0x1db)]=_0x496fc5(0x1ff);const _0x291694=_0x435dd6,_0x238942={};_0x238942[_0x496fc5(0x233)]=_0x291694[_0x496fc5(0x203)],_0x238942[_0x496fc5(0x21a)]=_0x291694[_0x496fc5(0x239)];const _0x137c2b={};return _0x137c2b[_0x496fc5(0x1d7)]=_0x238942,_0x3f454e[_0x496fc5(0x23b)](HELP_HEADER_MESSAGE[_0x496fc5(0x1f1)])[_0x496fc5(0x226)](HELP_FOOTER_MESSAGE)[_0x496fc5(0x205)](_0x137c2b)['help'](_0x291694[_0x496fc5(0x1db)])[_0x496fc5(0x1d1)];},exports[a11_0xe73144(0x243)]=async function(_0x2c85e7){const _0x536a8d=a11_0xe73144,_0x1b0f92={'FOQXs':'Successfully\x20deleted\x20the\x20grid','TTsqf':_0x536a8d(0x1ea),'mFgIZ':_0x536a8d(0x1d9),'DypeD':function(_0xd8d9a7,_0x4df107){return _0xd8d9a7!==_0x4df107;},'wDXiF':_0x536a8d(0x1f8),'WAQmE':_0x536a8d(0x1cc),'KrQlF':_0x536a8d(0x1d4),'blQQA':_0x536a8d(0x1e0),'EzNog':'string','HeBST':_0x536a8d(0x1ff),'tUKlr':function(_0xe59688){return _0xe59688();},'qEiBP':function(_0x23a225){return _0x23a225();},'OoZQu':function(_0x3be966,_0x4e6e30){return _0x3be966!==_0x4e6e30;},'IlFgl':_0x536a8d(0x1f7),'AxIvc':_0x536a8d(0x20f),'oSOwQ':_0x536a8d(0x247),'jDHxN':function(_0x1c89c5,_0xef0e35,_0x1d96b3,_0x4371ab,_0x485d79,_0x5d6766,_0x2307b4){return _0x1c89c5(_0xef0e35,_0x1d96b3,_0x4371ab,_0x485d79,_0x5d6766,_0x2307b4);},'pNYLT':_0x536a8d(0x24a),'FZqrA':_0x536a8d(0x24b),'XrXYK':function(_0x263b5f,_0x2f1d2c){return _0x263b5f!==_0x2f1d2c;},'fbjPm':_0x536a8d(0x23d),'VDgwG':function(_0x3fd5c6){return _0x3fd5c6();},'Orxrk':function(_0xd0e5e0,_0x2aace4,_0x3fcb17,_0x1bab26){return _0xd0e5e0(_0x2aace4,_0x3fcb17,_0x1bab26);},'htvgc':function(_0x57ee8e,_0x38c991){return _0x57ee8e===_0x38c991;},'sjSkg':_0x536a8d(0x231),'QfDaH':function(_0x35893b,_0x3ec5bd){return _0x35893b!==_0x3ec5bd;},'JtQNW':_0x536a8d(0x1c4),'lqKlg':_0x536a8d(0x1cf),'poLsT':function(_0x58e3ab,_0x343f5c){return _0x58e3ab(_0x343f5c);},'lrqUO':function(_0x3d42fe,_0x1c0fff){return _0x3d42fe===_0x1c0fff;},'CnpNR':function(_0x300bd1,_0x2744f5){return _0x300bd1===_0x2744f5;},'oAXGK':function(_0x351729,_0x51f458){return _0x351729!==_0x51f458;},'qmniH':'pLTTs','EKqfg':_0x536a8d(0x207),'vogyv':function(_0x4e8e5b,_0x4a83b7,_0x2fab10,_0x2ee1a8,_0x3505d5,_0x4eefdc,_0x11a131){return _0x4e8e5b(_0x4a83b7,_0x2fab10,_0x2ee1a8,_0x3505d5,_0x4eefdc,_0x11a131);},'INRFh':'invalid-input','KOEQx':function(_0x5dc3a0,_0x2e4154){return _0x5dc3a0===_0x2e4154;},'kPBPA':'Bjfkw','oHEjE':_0x536a8d(0x1d0),'qqWLP':_0x536a8d(0x22c),'HrqFG':_0x536a8d(0x1c3),'dWWkX':function(_0x2c7010,_0x18be94,_0x3610a8,_0x18ea2e,_0xcd6069,_0x1dbd48,_0x48b71e){return _0x2c7010(_0x18be94,_0x3610a8,_0x18ea2e,_0xcd6069,_0x1dbd48,_0x48b71e);},'BGaKq':function(_0x2583c8,_0x19a4c7){return _0x2583c8(_0x19a4c7);},'lisPK':function(_0x37cf78,_0x4cb155,_0x446887,_0x1b5a99,_0x281df5,_0xb3d989){return _0x37cf78(_0x4cb155,_0x446887,_0x1b5a99,_0x281df5,_0xb3d989);},'CxPbR':'ogWco','oQxKh':'bmacb','LgETO':'DELETE','RnULe':function(_0x49c5e3,_0x3a0d2d,_0x294366){return _0x49c5e3(_0x3a0d2d,_0x294366);},'KxgGc':function(_0x5df881,_0x447a5b,_0x336389){return _0x5df881(_0x447a5b,_0x336389);},'tkvCC':function(_0x42ba3c,_0xa5579e){return _0x42ba3c!==_0xa5579e;},'sCBIW':function(_0x1a5482,_0x140349){return _0x1a5482===_0x140349;},'kohcA':function(_0x1ccf57,_0x14f16d,_0x1e5323,_0x2d2442,_0x245ded,_0x401e8e,_0x5787ef){return _0x1ccf57(_0x14f16d,_0x1e5323,_0x2d2442,_0x245ded,_0x401e8e,_0x5787ef);},'ddkHg':_0x536a8d(0x230),'jZrOe':_0x536a8d(0x1d8),'TGpgv':_0x536a8d(0x1e2),'OaBgp':function(_0x586b1f,_0x9e19b6){return _0x586b1f===_0x9e19b6;},'VlZfE':'invalid-grid-id','kKbAy':_0x536a8d(0x1ca)};try{global_registry[_0x536a8d(0x1e7)]=_0x1b0f92['tUKlr'](uuidv4);!fs[_0x536a8d(0x23f)](_0x1b0f92[_0x536a8d(0x208)](getCredentialsPath))&&(_0x1b0f92[_0x536a8d(0x236)](_0x1b0f92[_0x536a8d(0x249)],_0x1b0f92[_0x536a8d(0x1f9)])?(console[_0x536a8d(0x1f6)](_0x1b0f92['oSOwQ']),await _0x1b0f92['jDHxN'](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92[_0x536a8d(0x1da)],messageTypes[_0x536a8d(0x21e)],_0x1b0f92[_0x536a8d(0x21c)],null,_0x2c85e7),process[_0x536a8d(0x201)](0x1)):(_0x1f3c37['info'](_0x1b0f92[_0x536a8d(0x1bb)]),_0x1f958d[_0x536a8d(0x201)](0x0)));_0x1b0f92[_0x536a8d(0x20a)](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92[_0x536a8d(0x1da)],messageTypes[_0x536a8d(0x213)],null,null,_0x2c85e7);!_0x2c85e7['gridId']&&(_0x1b0f92[_0x536a8d(0x234)](_0x1b0f92['fbjPm'],_0x1b0f92[_0x536a8d(0x1d2)])?_0xba7870[_0x536a8d(0x1c1)](_0x536a8d(0x23c)+_0x2d82dc[_0x536a8d(0x1cd)]+_0x536a8d(0x20c)):(console[_0x536a8d(0x1f6)](_0x1b0f92[_0x536a8d(0x244)]),process['exit'](0x1)));const _0x50eeb9=JSON[_0x536a8d(0x242)](fs[_0x536a8d(0x1d6)](_0x1b0f92[_0x536a8d(0x1d5)](getCredentialsPath))),[_0x53bcf7,_0x10f254]=await _0x1b0f92[_0x536a8d(0x238)](getGridDetails,_0x50eeb9[_0x536a8d(0x231)]['username'],_0x50eeb9[_0x536a8d(0x231)][_0x536a8d(0x1b6)],_0x2c85e7[_0x536a8d(0x248)]);if(_0x10f254){const _0x55d5b4=_0x10f254[_0x536a8d(0x220)];let _0x289fa9=_0x536a8d(0x210)+_0x55d5b4[_0x536a8d(0x22a)]+'\x22\x20and\x20ID\x20'+_0x55d5b4['id']+_0x536a8d(0x206);_0x10f254['onlyGridInCluster']&&_0x1b0f92['htvgc'](_0x10f254['clusterSpawnedVia'],_0x1b0f92[_0x536a8d(0x225)])&&(_0x1b0f92[_0x536a8d(0x1be)](_0x1b0f92['JtQNW'],_0x1b0f92[_0x536a8d(0x1fb)])?_0x289fa9=_0x536a8d(0x210)+_0x55d5b4[_0x536a8d(0x22a)]+_0x536a8d(0x1bf)+_0x55d5b4['id']+_0x536a8d(0x1ed)+_0x55d5b4[_0x536a8d(0x1cd)]+_0x536a8d(0x246)+_0x55d5b4['clusterId']+_0x536a8d(0x206):_0x20fb3e=_0x536a8d(0x210)+_0x3d38ea[_0x536a8d(0x22a)]+_0x536a8d(0x1bf)+_0x315b1f['id']+_0x536a8d(0x1ed)+_0xc28d08[_0x536a8d(0x1cd)]+_0x536a8d(0x246)+_0x23af17[_0x536a8d(0x223)]+_0x536a8d(0x206));const _0x10f786=await _0x1b0f92[_0x536a8d(0x22e)](inputConfirmation,_0x289fa9);(_0x1b0f92['htvgc'](_0x10f786,undefined)||_0x1b0f92['htvgc'](_0x10f786,null)||!(_0x1b0f92[_0x536a8d(0x1de)](_0x10f786[_0x536a8d(0x1f2)](),'y')||_0x1b0f92[_0x536a8d(0x21f)](_0x10f786['toLowerCase'](),'n')))&&(_0x1b0f92[_0x536a8d(0x202)](_0x1b0f92[_0x536a8d(0x1cb)],_0x1b0f92['qmniH'])?(_0x1dd595[_0x536a8d(0x1c1)](_0x536a8d(0x235)+_0x2910ae+_0x536a8d(0x1f4)),_0x528fb8=![]):(console[_0x536a8d(0x1f6)](_0x1b0f92[_0x536a8d(0x20d)]),await _0x1b0f92[_0x536a8d(0x1fe)](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92[_0x536a8d(0x1da)],messageTypes[_0x536a8d(0x21e)],_0x1b0f92[_0x536a8d(0x1b5)],null,_0x2c85e7),process[_0x536a8d(0x201)](0x1)));_0x1b0f92[_0x536a8d(0x1de)](_0x10f786['toLowerCase'](),'n')&&(_0x1b0f92[_0x536a8d(0x1ba)](_0x1b0f92[_0x536a8d(0x245)],_0x1b0f92['oHEjE'])?_0x553e80[_0x536a8d(0x1c1)](_0x1b0f92['TTsqf']):process['exit'](0x0));const _0x472c91=WS_ENDPOINT[_0x536a8d(0x209)](_0x1b0f92[_0x536a8d(0x214)],_0x50eeb9[_0x536a8d(0x231)][_0x536a8d(0x1dd)])[_0x536a8d(0x209)](_0x1b0f92[_0x536a8d(0x21b)],_0x50eeb9[_0x536a8d(0x231)]['password']),_0x1db2f5={};_0x1db2f5['WebSocket']=ws,_0x1db2f5[_0x536a8d(0x1df)]=0x36ee80;const _0x2a6d89=new ReconnectingWebSocket(_0x472c91,[],_0x1db2f5);global_registry[_0x536a8d(0x1eb)]=_0x55d5b4[_0x536a8d(0x1b4)];const _0x1e3b74=_0x55d5b4[_0x536a8d(0x237)],_0x51a922=await _0x1b0f92[_0x536a8d(0x224)](getCloudProviderObject,_0x1e3b74,_0x55d5b4[_0x536a8d(0x1cd)],_0x55d5b4[_0x536a8d(0x22a)],_0x2a6d89,webSocketUtils,_0x2c85e7),_0x497ef0=await _0x51a922[_0x536a8d(0x1c9)]();if(_0x497ef0){const _0x536cf7=_0x1b0f92['poLsT'](kebabCase,_0x55d5b4[_0x536a8d(0x22a)]),[_0x562900,_0x1aac40,_0x1cf6d4,_0x3b4935,_0x2db9ca,_0x38661b]=await _0x1b0f92[_0x536a8d(0x1f0)](createK8sClient,_0x51a922);let _0x3e20ce=!![];const _0x224572={};_0x224572[_0x536a8d(0x22a)]=_0x536cf7,await _0x562900[_0x536a8d(0x23e)](_0x224572)[_0x536a8d(0x211)](_0x722fc3=>{const _0x5a097f=_0x536a8d,_0x35c77b={};_0x35c77b[_0x5a097f(0x20e)]=_0x1b0f92[_0x5a097f(0x244)];const _0x12dd69=_0x35c77b;_0x1b0f92['DypeD'](_0x1b0f92[_0x5a097f(0x240)],_0x1b0f92[_0x5a097f(0x1c8)])?logger['info'](_0x5a097f(0x235)+_0x536cf7+_0x5a097f(0x1f3)):(_0x34cef2[_0x5a097f(0x1f6)](_0x12dd69[_0x5a097f(0x20e)]),_0x400c31[_0x5a097f(0x201)](0x1));})[_0x536a8d(0x22b)](_0x3302f=>{const _0x3443ca=_0x536a8d;_0x1b0f92[_0x3443ca(0x1e8)](_0x1b0f92[_0x3443ca(0x1e3)],_0x1b0f92[_0x3443ca(0x1e3)])?_0x3ed7a7[_0x3443ca(0x201)](0x0):(logger['warn'](_0x3443ca(0x235)+_0x536cf7+_0x3443ca(0x1f4)),_0x3e20ce=![]);});if(_0x3e20ce){await _0x1b0f92[_0x536a8d(0x1dc)](removeGridComponents,_0x562900,_0x1aac40,_0x1cf6d4,_0x3b4935,_0x536cf7);if(_0x10f254['onlyGridInCluster']){const _0x58711e=await _0x51a922[_0x536a8d(0x241)]();if(_0x58711e)_0x1b0f92['CnpNR'](_0x1b0f92[_0x536a8d(0x218)],_0x1b0f92['CxPbR'])?await _0x51a922['deleteCluster'](_0x562900,_0x55d5b4[_0x536a8d(0x1b4)]):_0x45b334[_0x536a8d(0x220)]('Namespace:\x20'+_0x21a397+_0x536a8d(0x1f3));else{if(_0x1b0f92['DypeD'](_0x1b0f92['oQxKh'],_0x1b0f92[_0x536a8d(0x200)])){const _0x38a429={};_0x38a429[_0x536a8d(0x233)]=_0x1b0f92[_0x536a8d(0x1b9)],_0x38a429['type']=_0x1b0f92[_0x536a8d(0x221)];const _0x565b31={};return _0x565b31[_0x536a8d(0x1d7)]=_0x38a429,_0x39f59c[_0x536a8d(0x23b)](_0x35d03e['delete'])[_0x536a8d(0x226)](_0x1bd309)[_0x536a8d(0x205)](_0x565b31)[_0x536a8d(0x1ff)](_0x1b0f92[_0x536a8d(0x232)])[_0x536a8d(0x1d1)];}else logger[_0x536a8d(0x1c1)](_0x536a8d(0x23c)+_0x55d5b4[_0x536a8d(0x1cd)]+_0x536a8d(0x20c));}}}}else logger[_0x536a8d(0x1c1)](_0x1b0f92[_0x536a8d(0x1ef)]);const _0x14149d='https://'+AG_API_URL+_0x536a8d(0x1ce)+_0x2c85e7[_0x536a8d(0x248)],_0x1b9fe6={'method':_0x1b0f92[_0x536a8d(0x204)],'headers':_0x1b0f92['RnULe'](getAuthHeader,_0x50eeb9[_0x536a8d(0x231)][_0x536a8d(0x1dd)],_0x50eeb9[_0x536a8d(0x231)][_0x536a8d(0x1b6)]),'throwHttpErrors':![]},_0x133759=await _0x1b0f92[_0x536a8d(0x1d3)](got,_0x14149d,_0x1b9fe6);_0x1b0f92[_0x536a8d(0x236)](_0x133759,null)&&_0x1b0f92[_0x536a8d(0x1e6)](_0x133759,undefined)&&_0x1b0f92[_0x536a8d(0x1e5)](_0x133759[_0x536a8d(0x1fd)],0xc8)&&(logger[_0x536a8d(0x220)](_0x1b0f92[_0x536a8d(0x1bb)]),process[_0x536a8d(0x201)](0x0)),logger[_0x536a8d(0x1f6)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x133759[_0x536a8d(0x1c2)]),await _0x1b0f92['kohcA'](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92[_0x536a8d(0x1da)],messageTypes['ERROR'],_0x1b0f92[_0x536a8d(0x1ee)],_0x53bcf7,_0x2c85e7),process[_0x536a8d(0x201)](0x1);}_0x1b0f92['sCBIW'](_0x53bcf7[_0x536a8d(0x1fd)],0x191)&&(logger[_0x536a8d(0x1f6)](_0x1b0f92['jZrOe']),await _0x1b0f92[_0x536a8d(0x1c0)](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92[_0x536a8d(0x1da)],messageTypes[_0x536a8d(0x21e)],_0x1b0f92['TGpgv'],null,_0x2c85e7),process[_0x536a8d(0x201)](0x1)),_0x1b0f92[_0x536a8d(0x215)](_0x53bcf7[_0x536a8d(0x1fd)],0x190)&&(logger[_0x536a8d(0x1f6)](JSON['parse'](_0x53bcf7[_0x536a8d(0x1c2)])[_0x536a8d(0x228)]),await _0x1b0f92[_0x536a8d(0x224)](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92[_0x536a8d(0x1da)],messageTypes[_0x536a8d(0x21e)],_0x1b0f92[_0x536a8d(0x21d)],null,_0x2c85e7),process[_0x536a8d(0x201)](0x1)),logger[_0x536a8d(0x1f6)](_0x536a8d(0x23a)+JSON[_0x536a8d(0x1f5)](_0x53bcf7)),await _0x1b0f92[_0x536a8d(0x20a)](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92['pNYLT'],messageTypes[_0x536a8d(0x21e)],_0x1b0f92['ddkHg'],_0x53bcf7,_0x2c85e7),process[_0x536a8d(0x201)](0x1);}catch(_0x234764){logger['error'](_0x536a8d(0x212)+_0x234764['stack']),await _0x1b0f92[_0x536a8d(0x20a)](sendInstrumentationEvent,_0x2c85e7,_0x1b0f92[_0x536a8d(0x1da)],messageTypes[_0x536a8d(0x21e)],_0x1b0f92[_0x536a8d(0x22f)],_0x234764,_0x2c85e7),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x2056b1=a12_0x25db;(function(_0x2ff3da,_0x4f155e){const _0x5767ac=a12_0x25db,_0x4678a0=_0x2ff3da();while(!![]){try{const _0x48aa85=parseInt(_0x5767ac(0x18d))/0x1*(parseInt(_0x5767ac(0x184))/0x2)+parseInt(_0x5767ac(0x190))/0x3*(parseInt(_0x5767ac(0x170))/0x4)+-parseInt(_0x5767ac(0x197))/0x5*(parseInt(_0x5767ac(0x175))/0x6)+parseInt(_0x5767ac(0x18c))/0x7+parseInt(_0x5767ac(0x181))/0x8+-parseInt(_0x5767ac(0x17f))/0x9*(parseInt(_0x5767ac(0x16d))/0xa)+-parseInt(_0x5767ac(0x19d))/0xb;if(_0x48aa85===_0x4f155e)break;else _0x4678a0['push'](_0x4678a0['shift']());}catch(_0x3518d2){_0x4678a0['push'](_0x4678a0['shift']());}}}(a12_0x148c,0x3c2c7));const fs=require('fs'),util=require(a12_0x2056b1(0x17c)),got=require(a12_0x2056b1(0x19c)),{v4:uuidv4}=require(a12_0x2056b1(0x177)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x2056b1(0x14d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x2056b1(0x15e)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2056b1(0x171)),{sendInstrumentationEvent}=require(a12_0x2056b1(0x165));function a12_0x148c(){const _0x4f04fb=['guyyN','wrong-creds','MyAiJ','recommendCommands','kxHRf','handler','868905sOLXPY','CXiiN','writeFileSync','nKWfs','zbpJg','got','8144950twxgoo','AgOfj','ERROR','wROcy','type','qmSrH','init-called','XLRRl','bstackUsername','XgehA','command','ZwbnR','sIKKA','exit','existsSync','bstack-accesskey','bSJhy','unknown-error','stringify','strict','utf-8','INFO','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','init','https://','/automate/plan.json','YOxeW','epilogue','description','PeunG','YctBD','env','../utils/userInput','ghwnk','iFsts','kKEEe','BROWSERSTACK_ACCESS_KEY','oXBXG','builder','desc','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','argv','SQuYc','options','username','fwxuA','readFileSync','IqaIw','../config/constants','BROWSERSTACK_USERNAME','WgdYr','PVYTs','ZAvPW','dIvPl','SaLVp','../utils/instrumentationUtils','password','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','mkdirSync','statusCode','eHckQ','requestId','AsMVj','2540uktZxJ','nZKNT','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','161068MhUsXO','../utils/utilityMethods','kbeSI','debug','uvJAR','6ViPldv','Ctqjg','uuid','stack','bstackAccesskey','ZrXnH','string','util','tqhJG','error','8055GzCOwP','ioScj','794520lCMfTJ','aJMXU','parse','927190DrrRVn','Browserstack','ecrYG','help','xhWPh','aXjAx','ZTNJg','IjLVy','2393426DAsTWs','1PGUhPc','ipwuR','tKFsD','36Gerblh'];a12_0x148c=function(){return _0x4f04fb;};return a12_0x148c();}function a12_0x25db(_0x46ea50,_0x4d2ec8){const _0x148c74=a12_0x148c();return a12_0x25db=function(_0x25db7c,_0x59723c){_0x25db7c=_0x25db7c-0x13b;let _0x4bb811=_0x148c74[_0x25db7c];return _0x4bb811;},a12_0x25db(_0x46ea50,_0x4d2ec8);}exports[a12_0x2056b1(0x1a7)]='init',exports[a12_0x2056b1(0x154)]=a12_0x2056b1(0x167),exports[a12_0x2056b1(0x153)]=function(_0x197277){const _0x4eb589=a12_0x2056b1,_0x45a432={};_0x45a432['oXBXG']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x45a432[_0x4eb589(0x172)]=_0x4eb589(0x17b),_0x45a432[_0x4eb589(0x19a)]=_0x4eb589(0x16f),_0x45a432[_0x4eb589(0x150)]='help';const _0x3fb4ce=_0x45a432,_0x29c1da={};_0x29c1da[_0x4eb589(0x149)]=_0x3fb4ce[_0x4eb589(0x152)],_0x29c1da[_0x4eb589(0x1a1)]=_0x3fb4ce[_0x4eb589(0x172)];const _0x77b407={};_0x77b407[_0x4eb589(0x149)]=_0x3fb4ce['nKWfs'],_0x77b407['type']=_0x3fb4ce[_0x4eb589(0x172)];const _0xb9488={};return _0xb9488['bstack-username']=_0x29c1da,_0xb9488[_0x4eb589(0x13b)]=_0x77b407,_0x197277['usage'](HELP_HEADER_MESSAGE[_0x4eb589(0x144)])[_0x4eb589(0x148)](HELP_FOOTER_MESSAGE)[_0x4eb589(0x159)](_0xb9488)['recommendCommands']()[_0x4eb589(0x13f)]()[_0x4eb589(0x187)](_0x3fb4ce['kKEEe'])[_0x4eb589(0x157)];},exports[a12_0x2056b1(0x196)]=async function(_0x258642){const _0x3ac7b3=a12_0x2056b1,_0x182dda={'kxHRf':function(_0x1558d7){return _0x1558d7();},'tKFsD':_0x3ac7b3(0x140),'aJMXU':_0x3ac7b3(0x142),'YctBD':_0x3ac7b3(0x17b),'ZAvPW':_0x3ac7b3(0x16f),'AgOfj':_0x3ac7b3(0x187),'zbpJg':function(_0x59d766){return _0x59d766();},'xhWPh':function(_0x2c9475,_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14){return _0x2c9475(_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14);},'ipwuR':_0x3ac7b3(0x1a3),'MyAiJ':function(_0x18b16b){return _0x18b16b();},'YOxeW':function(_0x4a5d9c,_0x3c610e){return _0x4a5d9c!==_0x3c610e;},'AsMVj':'ernSl','zcsud':_0x3ac7b3(0x16e),'sIKKA':_0x3ac7b3(0x1a0),'eHckQ':function(_0x5aa429,_0x56f70d){return _0x5aa429===_0x56f70d;},'PeunG':'SZsQO','SaLVp':'rLjzW','bSJhy':function(_0x2ea7f0,_0xb90a97){return _0x2ea7f0!==_0xb90a97;},'XLRRl':'rvSqG','PVYTs':_0x3ac7b3(0x18b),'dIvPl':'SUjCE','uvJAR':function(_0x55632e,_0x32fc9e){return _0x55632e===_0x32fc9e;},'ZrXnH':function(_0x169623,_0xc38ddb){return _0x169623!==_0xc38ddb;},'CXiiN':_0x3ac7b3(0x191),'ZwbnR':'ZBxto','ZTNJg':_0x3ac7b3(0x155),'TsMyi':function(_0x3004e5){return _0x3004e5();},'SQuYc':'GET','OEHcw':function(_0x4ca191,_0x1b947c,_0x33e811){return _0x4ca191(_0x1b947c,_0x33e811);},'iFsts':function(_0x40a5a4,_0x529da9,_0x28c882){return _0x40a5a4(_0x529da9,_0x28c882);},'qmSrH':function(_0x1a61e3,_0x3edc06){return _0x1a61e3!==_0x3edc06;},'IqaIw':_0x3ac7b3(0x1a6),'fwxuA':_0x3ac7b3(0x189),'PnIRd':function(_0x2f83df,_0x10386d){return _0x2f83df===_0x10386d;},'Ctqjg':'yPDPM','tJMTC':function(_0x20ba8f,_0x2103cc){return _0x20ba8f!==_0x2103cc;},'WgdYr':_0x3ac7b3(0x186),'BpcLh':_0x3ac7b3(0x17d),'hVQay':_0x3ac7b3(0x156),'ghwnk':_0x3ac7b3(0x192),'ioScj':_0x3ac7b3(0x13d)};try{global_registry[_0x3ac7b3(0x16b)]=_0x182dda[_0x3ac7b3(0x19b)](uuidv4),_0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x141)],null,null,_0x258642);const _0x3b1066=_0x182dda[_0x3ac7b3(0x193)](getDirForConfig);if(!fs[_0x3ac7b3(0x1ab)](_0x3b1066)){if(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x16c)],_0x182dda['zcsud']))fs['mkdirSync'](_0x3b1066);else{let _0x387acf={};const _0x94cb9=_0x182dda[_0x3ac7b3(0x195)](_0x38ce48);_0x1f2c96[_0x3ac7b3(0x1ab)](_0x94cb9)&&(_0x387acf=_0x50572a[_0x3ac7b3(0x183)](_0x5b8102['readFileSync'](_0x94cb9,_0x182dda[_0x3ac7b3(0x18f)])));const _0x2a1268={};_0x2a1268['username']=_0x16fc0e,_0x2a1268['password']=_0x3d4aeb,_0x387acf['Browserstack']=_0x2a1268,_0x17f839[_0x3ac7b3(0x199)](_0x94cb9,_0x288ef3[_0x3ac7b3(0x13e)](_0x387acf)),_0x5b41f4[_0x3ac7b3(0x1aa)](0x0);}}let _0x378024,_0x2b9173;process[_0x3ac7b3(0x14c)]['BROWSERSTACK_USERNAME']&&(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x1a9)],_0x182dda[_0x3ac7b3(0x1a9)])?_0x5ca588=_0x2426fb[_0x3ac7b3(0x179)]:_0x378024=process[_0x3ac7b3(0x14c)][_0x3ac7b3(0x15f)]);process['env'][_0x3ac7b3(0x151)]&&(_0x182dda['eHckQ'](_0x182dda[_0x3ac7b3(0x14a)],_0x182dda[_0x3ac7b3(0x164)])?_0x41661d[_0x3ac7b3(0x168)](_0x282c41):_0x2b9173=process['env']['BROWSERSTACK_ACCESS_KEY']);_0x258642[_0x3ac7b3(0x1a5)]&&(_0x182dda[_0x3ac7b3(0x13c)](_0x182dda[_0x3ac7b3(0x1a4)],_0x182dda[_0x3ac7b3(0x1a4)])?_0x32ef40=_0xc37cb7[_0x3ac7b3(0x1a5)]:_0x378024=_0x258642[_0x3ac7b3(0x1a5)]);if(_0x258642['bstackAccesskey']){if(_0x182dda[_0x3ac7b3(0x16a)](_0x182dda[_0x3ac7b3(0x161)],_0x182dda[_0x3ac7b3(0x163)])){const _0xd8c740={};_0xd8c740[_0x3ac7b3(0x149)]=_0x182dda[_0x3ac7b3(0x182)],_0xd8c740[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x4c3183={};_0x4c3183['description']=_0x182dda[_0x3ac7b3(0x162)],_0x4c3183[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x502c53={};return _0x502c53['bstack-username']=_0xd8c740,_0x502c53[_0x3ac7b3(0x13b)]=_0x4c3183,_0x503355[_0x3ac7b3(0x143)](_0x4f56d4[_0x3ac7b3(0x144)])['epilogue'](_0x4c054a)[_0x3ac7b3(0x159)](_0x502c53)[_0x3ac7b3(0x194)]()[_0x3ac7b3(0x13f)]()[_0x3ac7b3(0x187)](_0x182dda[_0x3ac7b3(0x19e)])['argv'];}else _0x2b9173=_0x258642[_0x3ac7b3(0x179)];}if(_0x182dda[_0x3ac7b3(0x174)](_0x378024,undefined)||_0x182dda[_0x3ac7b3(0x16a)](_0x2b9173,undefined)){if(_0x182dda[_0x3ac7b3(0x17a)](_0x182dda[_0x3ac7b3(0x198)],_0x182dda[_0x3ac7b3(0x1a8)])){logger[_0x3ac7b3(0x173)](_0x182dda[_0x3ac7b3(0x18a)]);const [_0x5b5c51,_0x46b64c]=await _0x182dda['TsMyi'](inputBstackKeys);_0x378024=_0x5b5c51,_0x2b9173=_0x46b64c;}else _0x4d1ef7=_0x3f1a06['env']['BROWSERSTACK_USERNAME'];}let _0x5ef85f=![];const _0xa18b4c=_0x3ac7b3(0x145)+_0x378024+':'+_0x2b9173+'@'+BS_API_URL+_0x3ac7b3(0x146),_0xaf4cd7={'method':_0x182dda[_0x3ac7b3(0x158)],'headers':_0x182dda['OEHcw'](getAuthHeader,_0x378024,_0x2b9173),'throwHttpErrors':![]},_0x333333=await _0x182dda[_0x3ac7b3(0x14f)](got,_0xa18b4c,_0xaf4cd7);_0x182dda['qmSrH'](_0x333333,null)&&_0x182dda[_0x3ac7b3(0x1a2)](_0x333333,undefined)&&_0x182dda[_0x3ac7b3(0x16a)](_0x333333[_0x3ac7b3(0x169)],0xc8)&&(_0x182dda[_0x3ac7b3(0x1a2)](_0x182dda[_0x3ac7b3(0x15d)],_0x182dda[_0x3ac7b3(0x15b)])?_0x5ef85f=!![]:_0x24d1b8=!![]);if(_0x5ef85f){if(_0x182dda['PnIRd'](_0x182dda[_0x3ac7b3(0x176)],_0x182dda['Ctqjg'])){let _0x5e70c8={};const _0xf8b08d=_0x182dda[_0x3ac7b3(0x193)](getCredentialsPath);fs['existsSync'](_0xf8b08d)&&(_0x182dda['tJMTC'](_0x182dda[_0x3ac7b3(0x160)],_0x182dda['BpcLh'])?_0x5e70c8=JSON[_0x3ac7b3(0x183)](fs[_0x3ac7b3(0x15c)](_0xf8b08d,_0x182dda[_0x3ac7b3(0x18f)])):_0x3fc5ba=_0x5455ff['parse'](_0x201d4c[_0x3ac7b3(0x15c)](_0x530bcc,_0x182dda[_0x3ac7b3(0x18f)])));const _0x5526be={};_0x5526be[_0x3ac7b3(0x15a)]=_0x378024,_0x5526be[_0x3ac7b3(0x166)]=_0x2b9173,_0x5e70c8[_0x3ac7b3(0x185)]=_0x5526be,fs[_0x3ac7b3(0x199)](_0xf8b08d,JSON[_0x3ac7b3(0x13e)](_0x5e70c8)),process[_0x3ac7b3(0x1aa)](0x0);}else _0x4d5ba8=_0x28acc1[_0x3ac7b3(0x14c)][_0x3ac7b3(0x151)];}else logger['error'](_0x182dda['hVQay']),await _0x182dda['xhWPh'](sendInstrumentationEvent,_0x258642,_0x182dda['ipwuR'],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x14e)],null,_0x258642),process[_0x3ac7b3(0x1aa)](0x1);}catch(_0x430d40){logger[_0x3ac7b3(0x17e)](_0x430d40[_0x3ac7b3(0x178)]),await _0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x180)],_0x430d40,_0x258642),process['exit'](0x1);}};
|
|
1
|
+
const a12_0x171ba5=a12_0x2357;(function(_0x5eb9e3,_0x5d13f8){const _0x278cc9=a12_0x2357,_0x91397=_0x5eb9e3();while(!![]){try{const _0x3bad95=parseInt(_0x278cc9(0x107))/0x1*(parseInt(_0x278cc9(0x114))/0x2)+-parseInt(_0x278cc9(0xd7))/0x3*(parseInt(_0x278cc9(0x112))/0x4)+parseInt(_0x278cc9(0xfc))/0x5*(parseInt(_0x278cc9(0xd6))/0x6)+-parseInt(_0x278cc9(0xf2))/0x7+-parseInt(_0x278cc9(0xf4))/0x8*(parseInt(_0x278cc9(0x122))/0x9)+parseInt(_0x278cc9(0xed))/0xa+parseInt(_0x278cc9(0xdb))/0xb;if(_0x3bad95===_0x5d13f8)break;else _0x91397['push'](_0x91397['shift']());}catch(_0x3d4faa){_0x91397['push'](_0x91397['shift']());}}}(a12_0x221d,0xc10ec));const fs=require('fs'),util=require(a12_0x171ba5(0xce)),got=require(a12_0x171ba5(0x126)),{v4:uuidv4}=require(a12_0x171ba5(0xd9)),{logger}=require(a12_0x171ba5(0xde)),{inputBstackKeys}=require(a12_0x171ba5(0x116)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x171ba5(0xe1)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x171ba5(0x125)),{sendInstrumentationEvent}=require(a12_0x171ba5(0xdf));function a12_0x2357(_0x1957da,_0x4400fb){const _0x221df5=a12_0x221d();return a12_0x2357=function(_0x2357eb,_0x32efdf){_0x2357eb=_0x2357eb-0xc2;let _0x5aa97c=_0x221df5[_0x2357eb];return _0x5aa97c;},a12_0x2357(_0x1957da,_0x4400fb);}function a12_0x221d(){const _0x1cdbf7=['568eaUlVX','BROWSERSTACK_ACCESS_KEY','34zalVOa','Browserstack','../utils/userInput','handler','czvTQ','username','Hqjai','WaELx','gcnXQ','stringify','options','existsSync','jXBMm','SgAGE','13832073FSNMuh','exit','utf-8','../utils/utilityMethods','got','hFKPJ','bstackUsername','recommendCommands','error','dRLYB','init-called','INFO','epilogue','UBKVY','SQlib','lZRxr','vqyxY','requestId','unknown-error','bstack-username','wZGup','string','ySpVo','util','JRFZu','stack','PMcIA','desc','oGVjl','JCdeA','EGPsm','313104uzPfcg','19518acBOOI','parse','uuid','GET','22699721YjTiyr','fRCKb','oIhgv','../config/logger','../utils/instrumentationUtils','bstackAccesskey','../config/constants','WRkCK','XJNBt','UzkBM','debug','BsvuW','usage','type','help','BROWSERSTACK_USERNAME','CvSzQ','bstack-accesskey','2377060qPAEDK','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','cezHW','HIqNW','icgAv','4335639bLqcOk','mkdirSync','8wFWeTU','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','YnxNZ','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','dDFNT','description','CUhjm','130mviVSD','VgqKI','password','PdDLC','strict','WLkGd','mVonE','readFileSync','eqOYB','env','dXVba','12517vPDgty','writeFileSync','vzdxv','builder','/automate/plan.json','yLbbd','init','hszVm','VlLaK','MKzwS','usIFy'];a12_0x221d=function(){return _0x1cdbf7;};return a12_0x221d();}exports['command']=a12_0x171ba5(0x10d),exports[a12_0x171ba5(0xd2)]=a12_0x171ba5(0xf8),exports[a12_0x171ba5(0x10a)]=function(_0x10e647){const _0x165fdc=a12_0x171ba5,_0x5d1a42={};_0x5d1a42[_0x165fdc(0xe2)]=_0x165fdc(0xf5),_0x5d1a42[_0x165fdc(0xc4)]=_0x165fdc(0xcc),_0x5d1a42[_0x165fdc(0xd3)]=_0x165fdc(0xee),_0x5d1a42[_0x165fdc(0x10f)]=_0x165fdc(0xe9);const _0x583012=_0x5d1a42,_0x4eddfb={};_0x4eddfb[_0x165fdc(0xfa)]=_0x583012[_0x165fdc(0xe2)],_0x4eddfb['type']=_0x583012[_0x165fdc(0xc4)];const _0x2d1878={};_0x2d1878[_0x165fdc(0xfa)]=_0x583012[_0x165fdc(0xd3)],_0x2d1878[_0x165fdc(0xe8)]=_0x583012[_0x165fdc(0xc4)];const _0x13c624={};return _0x13c624[_0x165fdc(0xca)]=_0x4eddfb,_0x13c624[_0x165fdc(0xec)]=_0x2d1878,_0x10e647['usage'](HELP_HEADER_MESSAGE[_0x165fdc(0x10d)])[_0x165fdc(0xc3)](HELP_FOOTER_MESSAGE)[_0x165fdc(0x11e)](_0x13c624)['recommendCommands']()[_0x165fdc(0x100)]()[_0x165fdc(0xe9)](_0x583012['VlLaK'])['argv'];},exports[a12_0x171ba5(0x117)]=async function(_0x968851){const _0x53afd8=a12_0x171ba5,_0x278a6e={'PdDLC':_0x53afd8(0x124),'lZRxr':function(_0x3b1d36){return _0x3b1d36();},'PqERg':_0x53afd8(0xf5),'eqOYB':'string','hszVm':_0x53afd8(0xee),'gcnXQ':'help','JRFZu':function(_0x1352ef,_0x13e264,_0x1c911e,_0x1dc4a4,_0x5df280,_0xf5957d,_0x137a43){return _0x1352ef(_0x13e264,_0x1c911e,_0x1dc4a4,_0x5df280,_0xf5957d,_0x137a43);},'MKzwS':_0x53afd8(0x12c),'UzkBM':function(_0x50fa46){return _0x50fa46();},'BsvuW':function(_0x3b77f5,_0x133c12){return _0x3b77f5===_0x133c12;},'HIqNW':_0x53afd8(0xcd),'PMcIA':function(_0x286ed6,_0x4c7f0b){return _0x286ed6===_0x4c7f0b;},'usIFy':_0x53afd8(0xf1),'cezHW':function(_0x29b260,_0x59bef8){return _0x29b260===_0x59bef8;},'WLkGd':_0x53afd8(0xeb),'GCGYi':function(_0x1f5cd1,_0x421768){return _0x1f5cd1!==_0x421768;},'wZGup':_0x53afd8(0x11a),'XJNBt':function(_0x24b854,_0x227cbf){return _0x24b854!==_0x227cbf;},'VgqKI':_0x53afd8(0x11b),'jXBMm':function(_0x53fb9d,_0x2a3a97){return _0x53fb9d===_0x2a3a97;},'CUhjm':function(_0x28c92b,_0x57242e){return _0x28c92b===_0x57242e;},'dRLYB':function(_0x4e02d4,_0x5dbbb1){return _0x4e02d4===_0x5dbbb1;},'mVonE':_0x53afd8(0x10c),'oIhgv':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','SQlib':_0x53afd8(0xda),'JCdeA':function(_0x192549,_0x333746,_0x26433f){return _0x192549(_0x333746,_0x26433f);},'EGPsm':_0x53afd8(0x118),'apeKQ':function(_0x4dcbfd,_0x165b07){return _0x4dcbfd!==_0x165b07;},'vqyxY':_0x53afd8(0xdc),'dXVba':function(_0x3b5dd0,_0x3a3afd){return _0x3b5dd0!==_0x3a3afd;},'hFKPJ':'QxxSe','toBKO':_0x53afd8(0xf9),'SgAGE':_0x53afd8(0xf6),'zmwuy':function(_0x21ea2a,_0x53e8b0,_0x3206ec,_0xc77a78,_0x3fea25,_0x165f9e,_0x549318){return _0x21ea2a(_0x53e8b0,_0x3206ec,_0xc77a78,_0x3fea25,_0x165f9e,_0x549318);},'vzdxv':'wrong-creds','YnxNZ':_0x53afd8(0xc9)};try{global_registry[_0x53afd8(0xc8)]=_0x278a6e['lZRxr'](uuidv4),_0x278a6e[_0x53afd8(0xcf)](sendInstrumentationEvent,_0x968851,_0x278a6e[_0x53afd8(0x110)],messageTypes[_0x53afd8(0xc2)],null,null,_0x968851);const _0x3c45da=_0x278a6e[_0x53afd8(0xe4)](getDirForConfig);!fs[_0x53afd8(0x11f)](_0x3c45da)&&(_0x278a6e[_0x53afd8(0xe6)](_0x278a6e['HIqNW'],_0x278a6e[_0x53afd8(0xf0)])?fs[_0x53afd8(0xf3)](_0x3c45da):_0x1d78dc=_0x2e7582['parse'](_0x462e7b[_0x53afd8(0x103)](_0x194337,_0x278a6e[_0x53afd8(0xff)])));let _0x22df81,_0x11c914;process[_0x53afd8(0x105)][_0x53afd8(0xea)]&&(_0x278a6e[_0x53afd8(0xd1)](_0x278a6e[_0x53afd8(0x111)],_0x278a6e[_0x53afd8(0x111)])?_0x22df81=process[_0x53afd8(0x105)][_0x53afd8(0xea)]:_0x1b69d9=_0x51502e[_0x53afd8(0x105)][_0x53afd8(0xea)]);process[_0x53afd8(0x105)]['BROWSERSTACK_ACCESS_KEY']&&(_0x278a6e[_0x53afd8(0xef)](_0x278a6e[_0x53afd8(0x101)],_0x278a6e[_0x53afd8(0x101)])?_0x11c914=process[_0x53afd8(0x105)][_0x53afd8(0x113)]:_0x81b5cd=_0x3136d2[_0x53afd8(0xe0)]);_0x968851[_0x53afd8(0x128)]&&(_0x278a6e['GCGYi'](_0x278a6e[_0x53afd8(0xcb)],_0x278a6e[_0x53afd8(0xcb)])?_0x4d2bed['mkdirSync'](_0x344ab5):_0x22df81=_0x968851[_0x53afd8(0x128)]);if(_0x968851['bstackAccesskey']){if(_0x278a6e[_0x53afd8(0xe3)](_0x278a6e['VgqKI'],_0x278a6e[_0x53afd8(0xfd)])){let _0x4e6129={};const _0x27d0c9=_0x278a6e[_0x53afd8(0xc6)](_0x4dbcdf);_0x29286d[_0x53afd8(0x11f)](_0x27d0c9)&&(_0x4e6129=_0x1c205a[_0x53afd8(0xd8)](_0x5ba305[_0x53afd8(0x103)](_0x27d0c9,_0x278a6e[_0x53afd8(0xff)])));const _0x1deadd={};_0x1deadd['username']=_0x3d4715,_0x1deadd[_0x53afd8(0xfe)]=_0x111ab0,_0x4e6129[_0x53afd8(0x115)]=_0x1deadd,_0x2bcf3b['writeFileSync'](_0x27d0c9,_0x36a3cd['stringify'](_0x4e6129)),_0x52fd7a[_0x53afd8(0x123)](0x0);}else _0x11c914=_0x968851['bstackAccesskey'];}if(_0x278a6e[_0x53afd8(0x120)](_0x22df81,undefined)||_0x278a6e[_0x53afd8(0xfb)](_0x11c914,undefined)){if(_0x278a6e[_0x53afd8(0x12b)](_0x278a6e[_0x53afd8(0x102)],_0x278a6e[_0x53afd8(0x102)])){logger[_0x53afd8(0xe5)](_0x278a6e[_0x53afd8(0xdd)]);const [_0x284180,_0xbacb55]=await _0x278a6e[_0x53afd8(0xc6)](inputBstackKeys);_0x22df81=_0x284180,_0x11c914=_0xbacb55;}else{const _0x382d16={};_0x382d16[_0x53afd8(0xfa)]=_0x278a6e['PqERg'],_0x382d16[_0x53afd8(0xe8)]=_0x278a6e['eqOYB'];const _0x43f220={};_0x43f220[_0x53afd8(0xfa)]=_0x278a6e[_0x53afd8(0x10e)],_0x43f220[_0x53afd8(0xe8)]=_0x278a6e[_0x53afd8(0x104)];const _0x4750b4={};return _0x4750b4[_0x53afd8(0xca)]=_0x382d16,_0x4750b4['bstack-accesskey']=_0x43f220,_0x47037d[_0x53afd8(0xe7)](_0x565779[_0x53afd8(0x10d)])['epilogue'](_0x1ef011)['options'](_0x4750b4)[_0x53afd8(0x129)]()[_0x53afd8(0x100)]()['help'](_0x278a6e[_0x53afd8(0x11c)])['argv'];}}let _0x5aeda3=![];const _0x4952b4='https://'+_0x22df81+':'+_0x11c914+'@'+BS_API_URL+_0x53afd8(0x10b),_0x4c3ccc={'method':_0x278a6e[_0x53afd8(0xc5)],'headers':_0x278a6e[_0x53afd8(0xd4)](getAuthHeader,_0x22df81,_0x11c914),'throwHttpErrors':![]},_0x376421=await _0x278a6e[_0x53afd8(0xd4)](got,_0x4952b4,_0x4c3ccc);_0x278a6e[_0x53afd8(0xe3)](_0x376421,null)&&_0x278a6e[_0x53afd8(0xe3)](_0x376421,undefined)&&_0x278a6e[_0x53afd8(0x120)](_0x376421['statusCode'],0xc8)&&(_0x278a6e[_0x53afd8(0xef)](_0x278a6e[_0x53afd8(0xd5)],_0x278a6e[_0x53afd8(0xd5)])?_0x5aeda3=!![]:_0x202982=!![]);if(_0x5aeda3){if(_0x278a6e['apeKQ'](_0x278a6e['vqyxY'],_0x278a6e[_0x53afd8(0xc7)]))_0x325b5c=_0x5df152[_0x53afd8(0x128)];else{let _0x4aaf4e={};const _0x406c6a=_0x278a6e[_0x53afd8(0xe4)](getCredentialsPath);fs['existsSync'](_0x406c6a)&&(_0x278a6e[_0x53afd8(0x106)](_0x278a6e[_0x53afd8(0x127)],_0x278a6e['toBKO'])?_0x4aaf4e=JSON[_0x53afd8(0xd8)](fs[_0x53afd8(0x103)](_0x406c6a,_0x278a6e[_0x53afd8(0xff)])):_0x5b6a60=_0x120503[_0x53afd8(0x105)][_0x53afd8(0x113)]);const _0x7d7347={};_0x7d7347[_0x53afd8(0x119)]=_0x22df81,_0x7d7347['password']=_0x11c914,_0x4aaf4e['Browserstack']=_0x7d7347,fs[_0x53afd8(0x108)](_0x406c6a,JSON[_0x53afd8(0x11d)](_0x4aaf4e)),process[_0x53afd8(0x123)](0x0);}}else logger[_0x53afd8(0x12a)](_0x278a6e[_0x53afd8(0x121)]),await _0x278a6e['zmwuy'](sendInstrumentationEvent,_0x968851,_0x278a6e[_0x53afd8(0x110)],messageTypes['ERROR'],_0x278a6e[_0x53afd8(0x109)],null,_0x968851),process['exit'](0x1);}catch(_0x320c2e){logger[_0x53afd8(0x12a)](_0x320c2e[_0x53afd8(0xd0)]),await _0x278a6e['zmwuy'](sendInstrumentationEvent,_0x968851,_0x278a6e[_0x53afd8(0x110)],messageTypes['ERROR'],_0x278a6e[_0x53afd8(0xf7)],_0x320c2e,_0x968851),process[_0x53afd8(0x123)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x177f(){const _0x21890c=['desc','demandCommand','13531068MuCxUU','4234112byKKtr','44SpyvKW','14PdbxDb','recommendCommands','1690180GwkSZg','commandDir','epilogue','2557266rPrXut','4MFGzSE','command','7372110Ldiegg','2eWfFia','18oiEWzy','3502389TYpOXt','list_commands','list','help','usage','handler','root','fpZrC','builder','1086823ETLTaj','yiuxT'];a13_0x177f=function(){return _0x21890c;};return a13_0x177f();}const a13_0x10a154=a13_0x43a8;function a13_0x43a8(_0x454e6c,_0x716f08){const _0x177f0b=a13_0x177f();return a13_0x43a8=function(_0x43a8dc,_0x180109){_0x43a8dc=_0x43a8dc-0xda;let _0x2718dc=_0x177f0b[_0x43a8dc];return _0x2718dc;},a13_0x43a8(_0x454e6c,_0x716f08);}(function(_0xa50c6b,_0xe4f967){const _0x14f5ae=a13_0x43a8,_0x8d5c=_0xa50c6b();while(!![]){try{const _0x21bf77=-parseInt(_0x14f5ae(0xe7))/0x1+parseInt(_0x14f5ae(0xdc))/0x2*(-parseInt(_0x14f5ae(0xde))/0x3)+-parseInt(_0x14f5ae(0xf4))/0x4*(parseInt(_0x14f5ae(0xdb))/0x5)+-parseInt(_0x14f5ae(0xf3))/0x6*(-parseInt(_0x14f5ae(0xee))/0x7)+-parseInt(_0x14f5ae(0xec))/0x8+parseInt(_0x14f5ae(0xdd))/0x9*(-parseInt(_0x14f5ae(0xf0))/0xa)+parseInt(_0x14f5ae(0xed))/0xb*(parseInt(_0x14f5ae(0xeb))/0xc);if(_0x21bf77===_0xe4f967)break;else _0x8d5c['push'](_0x8d5c['shift']());}catch(_0x31f69e){_0x8d5c['push'](_0x8d5c['shift']());}}}(a13_0x177f,0xbb332));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x10a154(0xda)]=a13_0x10a154(0xe0),exports[a13_0x10a154(0xe9)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x10a154(0xe6)]=function(_0x56fcb8){const _0x470661=a13_0x10a154,_0x10c331={};_0x10c331[_0x470661(0xe8)]=_0x470661(0xdf),_0x10c331[_0x470661(0xe5)]=_0x470661(0xe1);const _0x477ebd=_0x10c331;return _0x56fcb8[_0x470661(0xf1)](_0x477ebd[_0x470661(0xe8)])[_0x470661(0xea)]()[_0x470661(0xe2)](HELP_HEADER_MESSAGE['list'][_0x470661(0xe4)])[_0x470661(0xf2)](HELP_FOOTER_MESSAGE)[_0x470661(0xef)]()['strict']()[_0x470661(0xe1)](_0x477ebd['fpZrC']);},exports[a13_0x10a154(0xe3)]=function(_0xcaeefd){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x4f583e=a14_0x2c8a;(function(_0x4130fd,_0x4acec6){const _0x40db90=a14_0x2c8a,_0x24a3ee=_0x4130fd();while(!![]){try{const _0x56ff8f=-parseInt(_0x40db90(0x22e))/0x1+-parseInt(_0x40db90(0x1ff))/0x2+-parseInt(_0x40db90(0x235))/0x3+-parseInt(_0x40db90(0x226))/0x4+parseInt(_0x40db90(0x213))/0x5+parseInt(_0x40db90(0x228))/0x6+parseInt(_0x40db90(0x1ef))/0x7;if(_0x56ff8f===_0x4acec6)break;else _0x24a3ee['push'](_0x24a3ee['shift']());}catch(_0x13c7b2){_0x24a3ee['push'](_0x24a3ee['shift']());}}}(a14_0x41b3,0xa08a1));const fs=require('fs'),got=require(a14_0x4f583e(0x20a)),{table}=require(a14_0x4f583e(0x23a)),{v4:uuidv4}=require(a14_0x4f583e(0x20b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x4f583e(0x238)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x4f583e(0x206)]='grid-profiles',exports[a14_0x4f583e(0x215)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x4f583e(0x1f0)]=function(_0x5d8abc){const _0x27834c=a14_0x4f583e,_0x5d3785={};_0x5d3785[_0x27834c(0x203)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x5d3785[_0x27834c(0x22b)]=_0x27834c(0x21d),_0x5d3785['IzbkA']=_0x27834c(0x20c);const _0x154b1d=_0x5d3785,_0x505738={};_0x505738[_0x27834c(0x234)]=_0x154b1d['HQWFF'],_0x505738[_0x27834c(0x21f)]=_0x154b1d['sZZye'];const _0xb8fb8a={};return _0xb8fb8a[_0x27834c(0x218)]=_0x505738,_0x5d8abc[_0x27834c(0x1f7)](HELP_HEADER_MESSAGE[_0x27834c(0x21c)]['gridProfile'])[_0x27834c(0x233)](HELP_FOOTER_MESSAGE)[_0x27834c(0x1f8)](_0xb8fb8a)[_0x27834c(0x20c)](_0x154b1d[_0x27834c(0x239)])['argv'];},exports[a14_0x4f583e(0x212)]=async function(_0xaf7ef2){const _0x5687d=a14_0x4f583e,_0x1e12af={'RVHMx':function(_0x2b8245){return _0x2b8245();},'xACIS':_0x5687d(0x1f4),'geupC':function(_0x146652,_0x4d24ba,_0x2542b8,_0xb9db54,_0x35381a,_0x2c5093,_0x4276a6){return _0x146652(_0x4d24ba,_0x2542b8,_0xb9db54,_0x35381a,_0x2c5093,_0x4276a6);},'bcKlq':'list-grid-profiles-called','VqxxU':_0x5687d(0x220),'eqcdc':function(_0x349040){return _0x349040();},'YMzWu':_0x5687d(0x22d),'cPxZS':function(_0x11e44b,_0x1a0ad9,_0xe537ff){return _0x11e44b(_0x1a0ad9,_0xe537ff);},'Dlrpr':function(_0x487daa,_0x4d748d,_0x2e367a,_0x1eb64c,_0x192eb0,_0x136b7,_0x1d8f15){return _0x487daa(_0x4d748d,_0x2e367a,_0x1eb64c,_0x192eb0,_0x136b7,_0x1d8f15);},'hljjR':function(_0x59b0c2,_0x20c1ec,_0x49bf7a){return _0x59b0c2(_0x20c1ec,_0x49bf7a);},'BrHsI':function(_0x96a54e,_0x35adce){return _0x96a54e!==_0x35adce;},'utaDe':function(_0x13c8a9,_0x27b782){return _0x13c8a9===_0x27b782;},'QNnKP':_0x5687d(0x20f),'dMEIn':_0x5687d(0x210),'LyTVy':_0x5687d(0x216),'BnWuC':_0x5687d(0x214),'eIFbT':_0x5687d(0x22c),'TxTER':function(_0x33a832,_0x27c63d){return _0x33a832(_0x27c63d);},'urulg':_0x5687d(0x22f),'yIgzI':function(_0x165f4a,_0x1fe3c1,_0x51a53b,_0x507fea,_0x4af3ed,_0x41eb86,_0x495602){return _0x165f4a(_0x1fe3c1,_0x51a53b,_0x507fea,_0x4af3ed,_0x41eb86,_0x495602);},'GvAgT':_0x5687d(0x200),'rVAUc':function(_0x46277a,_0x20e033,_0x2f9feb,_0xb6ab4f,_0x5e6db4,_0x2a08bc,_0xc3c477){return _0x46277a(_0x20e033,_0x2f9feb,_0xb6ab4f,_0x5e6db4,_0x2a08bc,_0xc3c477);},'pcvKY':_0x5687d(0x1f1),'NTKhO':function(_0x5afa46,_0x4d6cc8,_0x5aafe3,_0x563200,_0x1175f9,_0x351c98,_0x409b2d){return _0x5afa46(_0x4d6cc8,_0x5aafe3,_0x563200,_0x1175f9,_0x351c98,_0x409b2d);},'Gwilq':_0x5687d(0x201)};try{global_registry[_0x5687d(0x219)]=_0x1e12af['RVHMx'](uuidv4);let _0x5c6ede=_0x5687d(0x21b)+AG_API_URL+'/packages/cli/get-grid-profiles';_0xaf7ef2[_0x5687d(0x1f5)]&&(_0x5c6ede='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x1e12af[_0x5687d(0x207)](getCredentialsPath))&&(console[_0x5687d(0x229)](_0x1e12af[_0x5687d(0x223)]),await _0x1e12af['geupC'](sendInstrumentationEvent,_0xaf7ef2,_0x1e12af[_0x5687d(0x217)],messageTypes['ERROR'],_0x1e12af[_0x5687d(0x1fa)],null,_0xaf7ef2),process['exit'](0x1));const _0x438dd5=JSON['parse'](fs['readFileSync'](_0x1e12af[_0x5687d(0x21a)](getCredentialsPath))),_0x49580a={'method':_0x1e12af[_0x5687d(0x205)],'headers':_0x1e12af[_0x5687d(0x21e)](getAuthHeader,_0x438dd5['Browserstack'][_0x5687d(0x231)],_0x438dd5[_0x5687d(0x1f2)][_0x5687d(0x230)]),'throwHttpErrors':![]};global_registry[_0x5687d(0x225)]=_0x438dd5[_0x5687d(0x1f2)][_0x5687d(0x231)],global_registry[_0x5687d(0x221)]=_0x438dd5[_0x5687d(0x1f2)][_0x5687d(0x230)],_0x1e12af[_0x5687d(0x1f9)](sendInstrumentationEvent,_0xaf7ef2,_0x1e12af['bcKlq'],messageTypes[_0x5687d(0x1fe)],null,null,_0xaf7ef2);const _0xd66a1c=await _0x1e12af['hljjR'](got,_0x5c6ede,_0x49580a);if(_0x1e12af[_0x5687d(0x1ee)](_0xd66a1c,null)&&_0x1e12af[_0x5687d(0x1ee)](_0xd66a1c,undefined)&&_0x1e12af['utaDe'](_0xd66a1c[_0x5687d(0x22a)],0xc8)){const _0x8ffdb2=JSON[_0x5687d(0x1fc)](_0xd66a1c[_0x5687d(0x20e)]);console[_0x5687d(0x1ed)](_0x1e12af[_0x5687d(0x227)]);const _0x2e032b=[];_0x2e032b[_0x5687d(0x222)]([_0x1e12af[_0x5687d(0x224)],_0x1e12af['LyTVy'],_0x1e12af[_0x5687d(0x1f6)],_0x1e12af[_0x5687d(0x23c)]]),_0x8ffdb2[_0x5687d(0x23e)](_0x3db83a=>{const _0x139d83=_0x5687d;_0x2e032b[_0x139d83(0x222)]([_0x3db83a[_0x139d83(0x23d)],_0x3db83a[_0x139d83(0x1fb)],_0x3db83a['region'],_0x3db83a[_0x139d83(0x22c)]]);}),console[_0x5687d(0x1ed)](_0x1e12af[_0x5687d(0x232)](table,_0x2e032b)),process['exit'](0x0);}_0x1e12af[_0x5687d(0x202)](_0xd66a1c[_0x5687d(0x22a)],0x191)&&(console[_0x5687d(0x229)](_0x1e12af[_0x5687d(0x211)]),await _0x1e12af['yIgzI'](sendInstrumentationEvent,_0xaf7ef2,_0x1e12af[_0x5687d(0x217)],messageTypes[_0x5687d(0x1fd)],_0x1e12af[_0x5687d(0x204)],null,_0xaf7ef2),process[_0x5687d(0x208)](0x1)),console[_0x5687d(0x229)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5687d(0x1f3)](_0xd66a1c)),await _0x1e12af[_0x5687d(0x20d)](sendInstrumentationEvent,_0xaf7ef2,_0x1e12af[_0x5687d(0x217)],messageTypes[_0x5687d(0x1fd)],_0x1e12af[_0x5687d(0x236)],_0xd66a1c,_0xaf7ef2),process[_0x5687d(0x208)](0x1);}catch(_0xca937b){console[_0x5687d(0x229)](_0x5687d(0x209)+_0xca937b[_0x5687d(0x237)]),await _0x1e12af['NTKhO'](sendInstrumentationEvent,_0xaf7ef2,_0x1e12af['bcKlq'],messageTypes['ERROR'],_0x1e12af[_0x5687d(0x23b)],_0xca937b,_0xaf7ef2),process[_0x5687d(0x208)](0x1);}};function a14_0x2c8a(_0x5a8bb2,_0x488708){const _0x41b3f5=a14_0x41b3();return a14_0x2c8a=function(_0x2c8a02,_0x312152){_0x2c8a02=_0x2c8a02-0x1ed;let _0x26c00a=_0x41b3f5[_0x2c8a02];return _0x26c00a;},a14_0x2c8a(_0x5a8bb2,_0x488708);}function a14_0x41b3(){const _0x5b5b15=['QNnKP','7871622pisdsF','error','statusCode','sZZye','concurrency','GET','629596yFLaSf','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','password','username','TxTER','epilogue','description','1948590KnmusE','pcvKY','stack','../../config/constants','IzbkA','table','Gwilq','eIFbT','name','forEach','log','BrHsI','12119464vdhrpf','builder','server-error','Browserstack','stringify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','allGridProfiles','BnWuC','usage','options','Dlrpr','VqxxU','cloudProvider','parse','ERROR','INFO','1458978aNEFaQ','unauthorised','unknown-error','utaDe','HQWFF','GvAgT','YMzWu','command','RVHMx','exit','Failed\x20to\x20list\x20resources!\x20Error:\x20','got','uuid','help','rVAUc','body','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','grid-profile-name','urulg','handler','3609300gxfLna','region','desc','cloud-provider','bcKlq','all-grid-profiles','requestId','eqcdc','https://','list','boolean','cPxZS','type','init-not-called','bstackAccesskey','push','xACIS','dMEIn','bstackUsername','4395860MaqXpG'];a14_0x41b3=function(){return _0x5b5b15;};return a14_0x41b3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a15_0x154f64=a15_0x5c9b;function a15_0x5c9b(_0x53d38f,_0x41ea3f){const _0x3f22b9=a15_0x3f22();return a15_0x5c9b=function(_0x5c9be9,_0x370adc){_0x5c9be9=_0x5c9be9-0x133;let _0x559915=_0x3f22b9[_0x5c9be9];return _0x559915;},a15_0x5c9b(_0x53d38f,_0x41ea3f);}function a15_0x3f22(){const _0x241d86=['builder','uuid','server-error','running','error','grid-name','kwZbL','Kemce','command','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','usage','qAZvk','14895itywnr','\x0aFound\x20the\x20following\x20grids:\x0a','password','jrtqU','4Lbuqro','672GSRLyA','aYUeb','Failed\x20to\x20list\x20resources!\x20Error:\x20','list','msBgr','list-grids-called','gebxP','init-not-called','jwAeb','2785760WPNoTd','epilogue','statusCode','stack','all-grids','1260750Mhktvj','QqKxO','parse','RlmgO','33mOSyCc','1002390fYsaQQ','name','push','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','username','body','1920FmaKpe','existsSync','queued','options','zzYag','unauthorised','grid','LPBtk','194659IWxIvU','Browserstack','https://','11856NHnfgV','INFO','help','stringify','738340KWgnFf','forEach','cluster-name','/packages/cli/get-grids','XmScG','status','desc','got','wsBMG','ugUiA','Lysqb','zmXTP','description','ERROR','exit','tDNZS','grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AhQqJ','YlmLS','bstackUsername','grid-id','/packages/cli/get-all-grids','readFileSync','boolean','argv','GXNku','table','anpbL','../../config/constants','../../utils/utilityMethods'];a15_0x3f22=function(){return _0x241d86;};return a15_0x3f22();}(function(_0x56a846,_0x2cb75e){const _0x253313=a15_0x5c9b,_0x3573ab=_0x56a846();while(!![]){try{const _0x461c41=parseInt(_0x253313(0x13e))/0x1*(parseInt(_0x253313(0x174))/0x2)+parseInt(_0x253313(0x183))/0x3+-parseInt(_0x253313(0x145))/0x4+parseInt(_0x253313(0x17e))/0x5+parseInt(_0x253313(0x141))/0x6*(-parseInt(_0x253313(0x175))/0x7)+parseInt(_0x253313(0x136))/0x8*(-parseInt(_0x253313(0x170))/0x9)+-parseInt(_0x253313(0x188))/0xa*(parseInt(_0x253313(0x187))/0xb);if(_0x461c41===_0x2cb75e)break;else _0x3573ab['push'](_0x3573ab['shift']());}catch(_0x5de60d){_0x3573ab['push'](_0x3573ab['shift']());}}}(a15_0x3f22,0x47e7a));const fs=require('fs'),got=require(a15_0x154f64(0x14c)),{table}=require(a15_0x154f64(0x160)),{v4:uuidv4}=require(a15_0x154f64(0x165)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x154f64(0x162)),{getCredentialsPath,getAuthHeader}=require(a15_0x154f64(0x163)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x154f64(0x16c)]=a15_0x154f64(0x155),exports[a15_0x154f64(0x14b)]=a15_0x154f64(0x16d),exports[a15_0x154f64(0x164)]=function(_0x25497a){const _0x2b40e4=a15_0x154f64,_0x6c3fbd={};_0x6c3fbd[_0x2b40e4(0x173)]=_0x2b40e4(0x133),_0x6c3fbd[_0x2b40e4(0x176)]=_0x2b40e4(0x15d),_0x6c3fbd[_0x2b40e4(0x157)]=_0x2b40e4(0x143);const _0x1de4da=_0x6c3fbd,_0xcc198f={};_0xcc198f[_0x2b40e4(0x151)]=_0x1de4da[_0x2b40e4(0x173)],_0xcc198f['type']=_0x1de4da['aYUeb'];const _0x8ca092={};return _0x8ca092[_0x2b40e4(0x182)]=_0xcc198f,_0x25497a[_0x2b40e4(0x16e)](HELP_HEADER_MESSAGE[_0x2b40e4(0x178)][_0x2b40e4(0x13c)])[_0x2b40e4(0x17f)](HELP_FOOTER_MESSAGE)[_0x2b40e4(0x139)](_0x8ca092)[_0x2b40e4(0x143)](_0x1de4da[_0x2b40e4(0x157)])[_0x2b40e4(0x15e)];},exports['handler']=async function(_0x5f0b09){const _0x23fee8=a15_0x154f64,_0x45b04f={'YlmLS':function(_0x308383){return _0x308383();},'qAZvk':_0x23fee8(0x156),'zzYag':function(_0x582d4a,_0x2eab09,_0x320f7d,_0xb7e7bd,_0x454286,_0x4f4d67,_0x2986b9){return _0x582d4a(_0x2eab09,_0x320f7d,_0xb7e7bd,_0x454286,_0x4f4d67,_0x2986b9);},'GXNku':_0x23fee8(0x17a),'Lysqb':_0x23fee8(0x17c),'zmXTP':'GET','roGud':function(_0x285f52,_0x4fb1c0,_0x3d4460){return _0x285f52(_0x4fb1c0,_0x3d4460);},'jwAeb':function(_0x1a218f,_0xbc4c59){return _0x1a218f!==_0xbc4c59;},'ugUiA':function(_0x193042,_0x2f0bc9){return _0x193042!==_0x2f0bc9;},'CVAnR':function(_0x1b51e7,_0x400a6d){return _0x1b51e7===_0x400a6d;},'msBgr':_0x23fee8(0x171),'gebxP':_0x23fee8(0x15a),'XmScG':_0x23fee8(0x169),'LPBtk':_0x23fee8(0x14a),'knsmx':'running','gwEku':_0x23fee8(0x138),'anpbL':_0x23fee8(0x147),'Kemce':function(_0x224731,_0x43cdb3){return _0x224731(_0x43cdb3);},'wsBMG':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kwZbL':function(_0x4e3e59,_0x12ed8b,_0x47d0b1,_0xafd367,_0x2d8851,_0x193630,_0x179f4e){return _0x4e3e59(_0x12ed8b,_0x47d0b1,_0xafd367,_0x2d8851,_0x193630,_0x179f4e);},'RYeQn':_0x23fee8(0x13b),'RlmgO':function(_0x5b4ae9,_0x1510e8,_0x64c6f9,_0x1554d0,_0x33bdfd,_0x214e13,_0x51f662){return _0x5b4ae9(_0x1510e8,_0x64c6f9,_0x1554d0,_0x33bdfd,_0x214e13,_0x51f662);},'QqKxO':_0x23fee8(0x166),'tDNZS':'unknown-error'};try{global_registry['requestId']=_0x45b04f['YlmLS'](uuidv4);!fs[_0x23fee8(0x137)](_0x45b04f['YlmLS'](getCredentialsPath))&&(console[_0x23fee8(0x168)](_0x45b04f[_0x23fee8(0x16f)]),await _0x45b04f[_0x23fee8(0x13a)](sendInstrumentationEvent,_0x5f0b09,_0x45b04f['GXNku'],messageTypes[_0x23fee8(0x152)],_0x45b04f[_0x23fee8(0x14f)],null,_0x5f0b09),process[_0x23fee8(0x153)](0x1));const _0x21a193=JSON[_0x23fee8(0x185)](fs[_0x23fee8(0x15c)](_0x45b04f[_0x23fee8(0x158)](getCredentialsPath)));let _0x3bfd93='https://'+AG_API_URL+_0x23fee8(0x148);_0x5f0b09['allGrids']&&(_0x3bfd93=_0x23fee8(0x140)+AG_API_URL+_0x23fee8(0x15b));const _0x2eeeb6={'method':_0x45b04f[_0x23fee8(0x150)],'headers':_0x45b04f['roGud'](getAuthHeader,_0x21a193[_0x23fee8(0x13f)][_0x23fee8(0x134)],_0x21a193[_0x23fee8(0x13f)][_0x23fee8(0x172)]),'throwHttpErrors':![]};global_registry[_0x23fee8(0x159)]=_0x21a193[_0x23fee8(0x13f)][_0x23fee8(0x134)],global_registry['bstackAccesskey']=_0x21a193[_0x23fee8(0x13f)]['password'],_0x45b04f[_0x23fee8(0x13a)](sendInstrumentationEvent,_0x5f0b09,_0x45b04f[_0x23fee8(0x15f)],messageTypes[_0x23fee8(0x142)],null,null,_0x5f0b09);const _0x31d2e5=await _0x45b04f['roGud'](got,_0x3bfd93,_0x2eeeb6);if(_0x45b04f[_0x23fee8(0x17d)](_0x31d2e5,null)&&_0x45b04f[_0x23fee8(0x14e)](_0x31d2e5,undefined)&&_0x45b04f['CVAnR'](_0x31d2e5[_0x23fee8(0x180)],0xc8)){const _0x19f61d=JSON['parse'](_0x31d2e5[_0x23fee8(0x135)]);console['log'](_0x45b04f[_0x23fee8(0x179)]);const _0x730b93=[];_0x730b93[_0x23fee8(0x18a)]([_0x45b04f[_0x23fee8(0x17b)],_0x45b04f[_0x23fee8(0x149)],_0x45b04f[_0x23fee8(0x13d)],_0x45b04f['knsmx'],_0x45b04f['gwEku'],_0x45b04f[_0x23fee8(0x161)]]),_0x19f61d[_0x23fee8(0x146)](_0x248649=>{const _0x1d3921=_0x23fee8;_0x730b93[_0x1d3921(0x18a)]([_0x248649['id'],_0x248649[_0x1d3921(0x189)],_0x248649['status'],_0x248649[_0x1d3921(0x167)],_0x248649[_0x1d3921(0x138)],_0x248649['clusterName']]);}),console['log'](_0x45b04f[_0x23fee8(0x16b)](table,_0x730b93)),process[_0x23fee8(0x153)](0x0);}_0x45b04f['CVAnR'](_0x31d2e5['statusCode'],0x191)&&(console[_0x23fee8(0x168)](_0x45b04f[_0x23fee8(0x14d)]),await _0x45b04f[_0x23fee8(0x16a)](sendInstrumentationEvent,_0x5f0b09,_0x45b04f['GXNku'],messageTypes['ERROR'],_0x45b04f['RYeQn'],null,_0x5f0b09),process[_0x23fee8(0x153)](0x1)),console[_0x23fee8(0x168)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x23fee8(0x144)](_0x31d2e5)),await _0x45b04f[_0x23fee8(0x186)](sendInstrumentationEvent,_0x5f0b09,_0x45b04f[_0x23fee8(0x15f)],messageTypes[_0x23fee8(0x152)],_0x45b04f[_0x23fee8(0x184)],_0x31d2e5,_0x5f0b09),process['exit'](0x1);}catch(_0x9fe1ed){console[_0x23fee8(0x168)](_0x23fee8(0x177)+_0x9fe1ed[_0x23fee8(0x181)]),await _0x45b04f[_0x23fee8(0x16a)](sendInstrumentationEvent,_0x5f0b09,_0x45b04f[_0x23fee8(0x15f)],messageTypes['ERROR'],_0x45b04f[_0x23fee8(0x154)],_0x9fe1ed,_0x5f0b09),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a16_0x5dfa21=a16_0x5f0b;(function(_0x236271,_0x1ef977){const _0x3ae91b=a16_0x5f0b,_0x2be3ca=_0x236271();while(!![]){try{const _0x354ae1=parseInt(_0x3ae91b(0xc9))/0x1*(-parseInt(_0x3ae91b(0xd0))/0x2)+parseInt(_0x3ae91b(0xca))/0x3*(parseInt(_0x3ae91b(0xd5))/0x4)+parseInt(_0x3ae91b(0xd2))/0x5*(parseInt(_0x3ae91b(0xce))/0x6)+-parseInt(_0x3ae91b(0xbd))/0x7*(-parseInt(_0x3ae91b(0xbc))/0x8)+-parseInt(_0x3ae91b(0xc7))/0x9+parseInt(_0x3ae91b(0xc4))/0xa*(-parseInt(_0x3ae91b(0xcc))/0xb)+-parseInt(_0x3ae91b(0xd1))/0xc*(-parseInt(_0x3ae91b(0xd3))/0xd);if(_0x354ae1===_0x1ef977)break;else _0x2be3ca['push'](_0x2be3ca['shift']());}catch(_0x4ecff6){_0x2be3ca['push'](_0x2be3ca['shift']());}}}(a16_0x4f24,0xb6891));function a16_0x5f0b(_0x1906e2,_0x1a2ee3){const _0x4f24d3=a16_0x4f24();return a16_0x5f0b=function(_0x5f0b6d,_0xac4962){_0x5f0b6d=_0x5f0b6d-0xbb;let _0x2c1cf9=_0x4f24d3[_0x5f0b6d];return _0x2c1cf9;},a16_0x5f0b(_0x1906e2,_0x1a2ee3);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x5dfa21(0xc0)]=a16_0x5dfa21(0xcb),exports[a16_0x5dfa21(0xc1)]=a16_0x5dfa21(0xc8),exports[a16_0x5dfa21(0xcf)]=function(_0x3dc593){const _0x4dbefa=a16_0x5dfa21,_0x559615={};_0x559615[_0x4dbefa(0xbe)]=_0x4dbefa(0xc2),_0x559615[_0x4dbefa(0xcd)]=_0x4dbefa(0xbf);const _0x2244ec=_0x559615;return _0x3dc593[_0x4dbefa(0xc6)](HELP_HEADER_MESSAGE['start'])[_0x4dbefa(0xbb)](HELP_FOOTER_MESSAGE)[_0x4dbefa(0xd4)](_0x2244ec['IbXiQ'])[_0x4dbefa(0xc3)]()[_0x4dbefa(0xc5)]()['strict']()[_0x4dbefa(0xbf)](_0x2244ec[_0x4dbefa(0xcd)]);},exports['handler']=function(_0x498f58){};function a16_0x4f24(){const _0x54295e=['2268120wZPRuQ','5qLfcDR','143uHcAiB','commandDir','4SWHGWO','epilogue','40cQqRqC','289079aiUAOD','IbXiQ','help','command','desc','start_commands','demandCommand','2397900brHqnh','recommendCommands','usage','6953112djWxxC','Start\x20an\x20existing\x20Automation\x20grid.','7ETVZDZ','2437923kKSwMt','start','33BZnFun','NLmDm','1337958rrplFF','builder','309036tQohrC'];a16_0x4f24=function(){return _0x54295e;};return a16_0x4f24();}
|