browserstack-node-sdk 1.56.1 → 1.56.2
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.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 +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- 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/customSequencer.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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.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 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -0
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.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 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x44a5aa=a9_0x258f;(function(_0x36b4d0,_0x1ab10d){const _0x3e2768=a9_0x258f,_0x1d45e4=_0x36b4d0();while(!![]){try{const _0x31cf81=parseInt(_0x3e2768(0x260))/0x1+parseInt(_0x3e2768(0x2e5))/0x2*(parseInt(_0x3e2768(0x2fc))/0x3)+parseInt(_0x3e2768(0x1f2))/0x4*(-parseInt(_0x3e2768(0x35c))/0x5)+parseInt(_0x3e2768(0x2d6))/0x6+parseInt(_0x3e2768(0x1e6))/0x7*(parseInt(_0x3e2768(0x2e7))/0x8)+-parseInt(_0x3e2768(0x35b))/0x9*(-parseInt(_0x3e2768(0x26a))/0xa)+parseInt(_0x3e2768(0x2cc))/0xb*(-parseInt(_0x3e2768(0x39c))/0xc);if(_0x31cf81===_0x1ab10d)break;else _0x1d45e4['push'](_0x1d45e4['shift']());}catch(_0x35be9b){_0x1d45e4['push'](_0x1d45e4['shift']());}}}(a9_0x444d,0x89f23));const fs=require('fs'),ws=require('ws'),path=require(a9_0x44a5aa(0x22d)),yaml=require(a9_0x44a5aa(0x294)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x44a5aa(0x36b)),{v4:uuidv4}=require(a9_0x44a5aa(0x256)),webSocketUtils=require(a9_0x44a5aa(0x2e4)),{logger}=require(a9_0x44a5aa(0x298)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x44a5aa(0x38f)),{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_0x44a5aa(0x312)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x44a5aa(0x28b)),{createK8sClient}=require(a9_0x44a5aa(0x202)),{sendInstrumentationEvent}=require(a9_0x44a5aa(0x2b6));exports[a9_0x44a5aa(0x238)]=a9_0x44a5aa(0x2e0),exports[a9_0x44a5aa(0x20e)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x44a5aa(0x243)]=function(_0x12e34f){const _0x46701f=a9_0x44a5aa,_0x4ec955={};_0x4ec955[_0x46701f(0x253)]=_0x46701f(0x2aa),_0x4ec955[_0x46701f(0x2ac)]=_0x46701f(0x244),_0x4ec955[_0x46701f(0x32d)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x4ec955[_0x46701f(0x299)]=_0x46701f(0x218),_0x4ec955[_0x46701f(0x363)]=_0x46701f(0x3a4),_0x4ec955['AuSPB']=_0x46701f(0x241),_0x4ec955['VQgXv']=_0x46701f(0x303),_0x4ec955[_0x46701f(0x2ec)]='Skip\x20insecure\x20cert\x20verification.',_0x4ec955[_0x46701f(0x23f)]=_0x46701f(0x2eb),_0x4ec955[_0x46701f(0x30f)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x4ec955[_0x46701f(0x344)]=_0x46701f(0x343),_0x4ec955['hNLtg']='help';const _0x49e2e1=_0x4ec955,_0x51a1a8={};_0x51a1a8[_0x46701f(0x33a)]=_0x49e2e1[_0x46701f(0x253)],_0x51a1a8[_0x46701f(0x2e6)]=_0x49e2e1[_0x46701f(0x2ac)];const _0x575fb4={};_0x575fb4['description']=_0x49e2e1[_0x46701f(0x32d)],_0x575fb4[_0x46701f(0x2e6)]=_0x49e2e1['nwFqY'];const _0x1c4509={};_0x1c4509[_0x46701f(0x33a)]=_0x49e2e1[_0x46701f(0x299)],_0x1c4509['type']=_0x49e2e1[_0x46701f(0x2ac)];const _0x173543={};_0x173543[_0x46701f(0x33a)]=_0x49e2e1['etmtf'],_0x173543[_0x46701f(0x2e6)]=_0x49e2e1[_0x46701f(0x2ac)];const _0x4aab5e={};_0x4aab5e[_0x46701f(0x33a)]=_0x49e2e1[_0x46701f(0x1eb)],_0x4aab5e[_0x46701f(0x2e6)]=_0x49e2e1['nwFqY'];const _0xb7df1={};_0xb7df1[_0x46701f(0x33a)]=_0x49e2e1[_0x46701f(0x27d)],_0xb7df1[_0x46701f(0x2e6)]=_0x49e2e1[_0x46701f(0x2ac)];const _0x24681c={};_0x24681c['description']=_0x49e2e1[_0x46701f(0x2ec)],_0x24681c['type']=_0x49e2e1[_0x46701f(0x23f)],_0x24681c[_0x46701f(0x255)]=![];const _0x6b517c={};_0x6b517c[_0x46701f(0x33a)]=_0x49e2e1[_0x46701f(0x30f)],_0x6b517c[_0x46701f(0x2e6)]=_0x49e2e1[_0x46701f(0x23f)],_0x6b517c[_0x46701f(0x255)]=![];const _0x5818aa={};_0x5818aa[_0x46701f(0x33a)]=_0x49e2e1['LIvjm'],_0x5818aa[_0x46701f(0x2e6)]=_0x49e2e1['EPuCt'],_0x5818aa[_0x46701f(0x255)]=![];const _0x5d0c5a={};return _0x5d0c5a[_0x46701f(0x1fb)]=_0x51a1a8,_0x5d0c5a[_0x46701f(0x29d)]=_0x575fb4,_0x5d0c5a['cluster-name']=_0x1c4509,_0x5d0c5a[_0x46701f(0x373)]=_0x173543,_0x5d0c5a[_0x46701f(0x212)]=_0x4aab5e,_0x5d0c5a[_0x46701f(0x20d)]=_0xb7df1,_0x5d0c5a['skip-tls-cert-verify']=_0x24681c,_0x5d0c5a[_0x46701f(0x24c)]=_0x6b517c,_0x5d0c5a[_0x46701f(0x350)]=_0x5818aa,_0x12e34f['usage'](HELP_HEADER_MESSAGE[_0x46701f(0x277)])[_0x46701f(0x35d)](HELP_FOOTER_MESSAGE)[_0x46701f(0x26f)](_0x5d0c5a)[_0x46701f(0x36a)](_0x49e2e1[_0x46701f(0x1fa)])[_0x46701f(0x232)];},exports[a9_0x44a5aa(0x2ef)]=async function(_0x5870bc){const _0x3e76f0=a9_0x44a5aa,_0x3494a3={'mKcFJ':_0x3e76f0(0x25b),'ZqbAg':_0x3e76f0(0x384),'CjlJb':_0x3e76f0(0x263),'AyYMc':_0x3e76f0(0x2aa),'IiysN':_0x3e76f0(0x244),'MDKBf':_0x3e76f0(0x248),'blKbY':_0x3e76f0(0x218),'fSPqS':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','QbIzj':_0x3e76f0(0x241),'DhYYa':'Create\x20a\x20private/public\x20grid.','jLMqe':'Skip\x20insecure\x20cert\x20verification.','XNGEq':_0x3e76f0(0x2eb),'vbADp':_0x3e76f0(0x1e9),'YtbId':_0x3e76f0(0x343),'tdSfb':_0x3e76f0(0x36a),'siXpV':_0x3e76f0(0x237),'ngkGB':function(_0x2286aa,_0x383097){return _0x2286aa(_0x383097);},'ABZEY':_0x3e76f0(0x313),'PNfSS':_0x3e76f0(0x247),'ueFMl':_0x3e76f0(0x3a0),'IXydo':_0x3e76f0(0x369),'vWFkn':'Enabling\x20Hub\x20HA\x20flow','kaYKT':_0x3e76f0(0x29b),'xduTM':_0x3e76f0(0x1f5),'epDjl':function(_0x4f1a0a,_0x355690){return _0x4f1a0a(_0x355690);},'TLaBB':'true','odOjJ':_0x3e76f0(0x255),'TXfHc':_0x3e76f0(0x24d),'flhuh':_0x3e76f0(0x2d1),'edxzL':function(_0x224118,_0x190aef){return _0x224118===_0x190aef;},'ZFoAI':_0x3e76f0(0x30c),'lrYLq':function(_0x514830,_0x4575f7,_0x293311,_0x4d8f51,_0x5a2e95,_0x327f14,_0x3d1af4,_0x435f75,_0x13e6d5,_0x3a08fa,_0x25e8ac,_0x545d50,_0x163536){return _0x514830(_0x4575f7,_0x293311,_0x4d8f51,_0x5a2e95,_0x327f14,_0x3d1af4,_0x435f75,_0x13e6d5,_0x3a08fa,_0x25e8ac,_0x545d50,_0x163536);},'dMHfa':function(_0x441de4,_0x310bb0){return _0x441de4!==_0x310bb0;},'nJyKu':_0x3e76f0(0x219),'bxJQd':function(_0x49f225){return _0x49f225();},'jGlPz':function(_0x4016ec){return _0x4016ec();},'XgZDc':function(_0x241142,_0x1fe898){return _0x241142===_0x1fe898;},'oZbsC':'zkyyw','jOGva':_0x3e76f0(0x20f),'kSAYD':function(_0x30c5a1,_0x33fec5,_0x536b2a,_0x1af759,_0x5b5054,_0x268f94,_0x385572){return _0x30c5a1(_0x33fec5,_0x536b2a,_0x1af759,_0x5b5054,_0x268f94,_0x385572);},'PCGqx':_0x3e76f0(0x2a3),'SFtGB':'init-not-called','GggtM':_0x3e76f0(0x26e),'XVefX':_0x3e76f0(0x25c),'fkVox':_0x3e76f0(0x2b8),'Gtayy':'DzFRf','NmGaQ':_0x3e76f0(0x358),'zZcsB':_0x3e76f0(0x2f2),'FjsiR':_0x3e76f0(0x2a0),'GOaGO':function(_0x3dd715,_0xf3c673,_0x35c93b,_0x4793b0,_0x332c21,_0x53fece,_0x173c76,_0x438c71){return _0x3dd715(_0xf3c673,_0x35c93b,_0x4793b0,_0x332c21,_0x53fece,_0x173c76,_0x438c71);},'kkpLY':_0x3e76f0(0x309),'KOwXJ':function(_0x4605fa,_0x2761fc){return _0x4605fa!==_0x2761fc;},'FnbkN':_0x3e76f0(0x37e),'CvOiz':_0x3e76f0(0x392),'nBSfX':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','GrfEX':function(_0x8469f0,_0x42bf0a,_0x2dee68,_0x130989,_0x3d5e8a,_0x37bda3,_0x29438c,_0x6f874d){return _0x8469f0(_0x42bf0a,_0x2dee68,_0x130989,_0x3d5e8a,_0x37bda3,_0x29438c,_0x6f874d);},'skjSQ':'non-aws-azure-cluster','NTJFS':function(_0x554299,_0x33744b){return _0x554299===_0x33744b;},'FIqev':function(_0x5d927c,_0x4548cf){return _0x5d927c!==_0x4548cf;},'InocB':_0x3e76f0(0x305),'qRehE':function(_0x23b234,_0xfbca77){return _0x23b234!==_0xfbca77;},'Kulss':_0x3e76f0(0x211),'HOQHp':'MPpPV','BbNjU':_0x3e76f0(0x29c),'jYXGu':_0x3e76f0(0x371),'QxLWU':_0x3e76f0(0x2cf),'NWgMV':_0x3e76f0(0x340),'uVjaS':function(_0x312561,_0x2b1d41,_0x3ec8f2){return _0x312561(_0x2b1d41,_0x3ec8f2);},'iJrXa':function(_0x3b333f,_0x27bbe9){return _0x3b333f!==_0x27bbe9;},'oiaqQ':_0x3e76f0(0x2f0),'thcOH':'sgMLM','ueXOU':function(_0x49cb03,_0x17d386){return _0x49cb03===_0x17d386;},'ajeiS':_0x3e76f0(0x31e),'CWZVo':_0x3e76f0(0x2a6),'TJshB':function(_0x55c623,_0x3db019){return _0x55c623===_0x3db019;},'oMIXl':function(_0x20731c,_0xdc6d45){return _0x20731c===_0xdc6d45;},'bauTq':_0x3e76f0(0x37b),'zgUuv':_0x3e76f0(0x1ff),'VRerZ':function(_0x20d49c,_0x4c9407,_0x42dd47,_0x14b523,_0x596bef,_0x3499a9,_0x327810,_0x4b4ad9){return _0x20d49c(_0x4c9407,_0x42dd47,_0x14b523,_0x596bef,_0x3499a9,_0x327810,_0x4b4ad9);},'KCLDx':'create-grid-checks-null-response','vnXwY':function(_0xbaf143,_0x41afc8){return _0xbaf143!==_0x41afc8;},'MrwSm':'dodIb','HLFEf':_0x3e76f0(0x308),'TixXE':_0x3e76f0(0x31b),'ihiIS':_0x3e76f0(0x28c),'RXbHe':function(_0x19cddb,_0x4413d6){return _0x19cddb!==_0x4413d6;},'BdZQT':_0x3e76f0(0x21b),'haDqP':'create-grid-checks-non-200','nvrxE':_0x3e76f0(0x273),'UUayf':function(_0x4862a5,_0x441a79){return _0x4862a5!==_0x441a79;},'irbDE':_0x3e76f0(0x24e),'WvrUX':function(_0x15cbf2,_0x43ca6b,_0xafb78d,_0x3cee29,_0x23546a,_0xf804e7,_0x3dd10a,_0x338c8d){return _0x15cbf2(_0x43ca6b,_0xafb78d,_0x3cee29,_0x23546a,_0xf804e7,_0x3dd10a,_0x338c8d);},'bjBlP':_0x3e76f0(0x2c4),'clRHs':_0x3e76f0(0x3ab),'azMgt':'fSkXx','ammWy':_0x3e76f0(0x25d),'hFPja':_0x3e76f0(0x2f4),'GQwBO':function(_0x33dda1,_0x2fc322){return _0x33dda1===_0x2fc322;},'vLkQS':function(_0x26a23f,_0x4705af){return _0x26a23f===_0x4705af;},'xFSqq':_0x3e76f0(0x379),'ibKUy':'wGoFQ','JgQxQ':function(_0x24e161,_0x2cfe8a){return _0x24e161===_0x2cfe8a;},'RrGyw':_0x3e76f0(0x2a9),'hVSCO':_0x3e76f0(0x2e8),'BZKJX':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','KYdBC':_0x3e76f0(0x26d),'HABLf':function(_0x41d34a,_0xa2a526){return _0x41d34a===_0xa2a526;},'EiVis':'eXogt','rvtjA':'DfJWy','hxioC':function(_0x2e20da,_0x55095d){return _0x2e20da===_0x55095d;},'FrahK':_0x3e76f0(0x2af),'wCQbm':_0x3e76f0(0x390),'UqDOp':function(_0xda8050,_0x4484ff){return _0xda8050!==_0x4484ff;},'vAEai':_0x3e76f0(0x1f3),'recQZ':_0x3e76f0(0x22a),'IEvLI':_0x3e76f0(0x2bb),'jfRCD':function(_0x1ac575,_0x5212e0){return _0x1ac575(_0x5212e0);},'tPbxc':function(_0x5463cb,_0xaa958){return _0x5463cb===_0xaa958;},'fbhUF':function(_0x17cb59,_0x2be812){return _0x17cb59!==_0x2be812;},'tiDtz':_0x3e76f0(0x245),'QCSHB':_0x3e76f0(0x2ee),'kWYFV':function(_0x2f9243,_0x27981e){return _0x2f9243!==_0x27981e;},'xAhsS':_0x3e76f0(0x259),'yOWqj':function(_0x239d52,_0x561599,_0x25e6db,_0xe82707,_0x1b1bca,_0x54f400,_0x6f0b75,_0x3cbb4b,_0x4a9e6f,_0x569f14,_0x2a7cb2,_0x31293b,_0x2d5d9d){return _0x239d52(_0x561599,_0x25e6db,_0xe82707,_0x1b1bca,_0x54f400,_0x6f0b75,_0x3cbb4b,_0x4a9e6f,_0x569f14,_0x2a7cb2,_0x31293b,_0x2d5d9d);},'YvaOe':'cuKSx','SbcNc':_0x3e76f0(0x2a5),'AFgru':function(_0x53c52c,_0x5df939){return _0x53c52c===_0x5df939;},'kbjch':'YppqQ','TaUdG':'5|7|2|3|4|0|6|1|8','nsPXx':function(_0x87dbbc,_0x550152){return _0x87dbbc!==_0x550152;},'ECTNw':'ptGwZ','lmGKi':'yQjKi','tsjAF':function(_0x3925b0,_0x401029){return _0x3925b0===_0x401029;},'fCUIG':function(_0x292bf2,_0xd8da63){return _0x292bf2===_0xd8da63;},'TqMku':_0x3e76f0(0x296),'etfDu':_0x3e76f0(0x317),'mzpNE':function(_0x5d44d0,_0x1e225d){return _0x5d44d0===_0x1e225d;},'RkmKV':function(_0x20b121,_0x170f19){return _0x20b121!==_0x170f19;},'qqMwB':_0x3e76f0(0x276),'dCNZp':_0x3e76f0(0x250),'nyvsV':function(_0x1ead24,_0x4ebf77){return _0x1ead24!=_0x4ebf77;},'oaNIQ':function(_0x35b9e2,_0x24cbf7){return _0x35b9e2>_0x24cbf7;},'WtRkR':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','LnGLX':function(_0x4ecbcb,_0x5160c9,_0x5aa77c,_0x2f04df,_0x5aeb9c,_0x273981,_0x40d8f9,_0x58a0cc){return _0x4ecbcb(_0x5160c9,_0x5aa77c,_0x2f04df,_0x5aeb9c,_0x273981,_0x40d8f9,_0x58a0cc);},'oEbyF':_0x3e76f0(0x342),'gYzSL':function(_0x111b58,_0xea78e){return _0x111b58===_0xea78e;},'nyIYB':_0x3e76f0(0x2d4),'ocLFJ':_0x3e76f0(0x288),'OeHTi':function(_0x4de66c,_0x309256){return _0x4de66c===_0x309256;},'YUvir':_0x3e76f0(0x356),'oUnRD':'0|1|2|3|4','isFfi':_0x3e76f0(0x275),'bJaKF':_0x3e76f0(0x2c8),'niOcM':function(_0x261689,_0xffe3a8,_0x321e0d){return _0x261689(_0xffe3a8,_0x321e0d);},'LNDRY':function(_0x2006b1,_0x10058a){return _0x2006b1===_0x10058a;},'DjQhT':function(_0x1ddbe8,_0x4ded8b){return _0x1ddbe8===_0x4ded8b;},'XHkrK':_0x3e76f0(0x314),'YnIQz':function(_0x4bb173,_0x2ffc11,_0x5a9517){return _0x4bb173(_0x2ffc11,_0x5a9517);},'cnKtB':function(_0x3594f5,_0x3f1d0b,_0x15f270){return _0x3594f5(_0x3f1d0b,_0x15f270);},'DuCZn':_0x3e76f0(0x316),'vGZnd':'../..','FPxqq':_0x3e76f0(0x2a8),'epxkR':_0x3e76f0(0x34a),'VQPyq':_0x3e76f0(0x37a),'RqQie':_0x3e76f0(0x207),'UMekO':function(_0x5d3252,_0x44777b){return _0x5d3252(_0x44777b);},'VhVZc':function(_0x51aa18,_0x513f36){return _0x51aa18(_0x513f36);},'TFSXw':function(_0x392b04,_0x124ab6,_0x7b941){return _0x392b04(_0x124ab6,_0x7b941);},'KzkJB':_0x3e76f0(0x2bd),'gogPl':_0x3e76f0(0x2fb),'foTKi':function(_0x26e9df,_0x294313){return _0x26e9df===_0x294313;},'mkaFt':_0x3e76f0(0x23b),'cnTPt':_0x3e76f0(0x2c2),'pAsMX':function(_0x30a538,_0x2398b8,_0x16c889){return _0x30a538(_0x2398b8,_0x16c889);},'keccZ':_0x3e76f0(0x349),'jevik':_0x3e76f0(0x2a2),'kvRGF':_0x3e76f0(0x23a),'lLsYH':function(_0x4a3f08,_0x4428cb,_0x3c7a89){return _0x4a3f08(_0x4428cb,_0x3c7a89);},'AssbH':_0x3e76f0(0x23c),'fwied':'Adding\x20Turboscale\x20Uploader\x20deployment...','tJpFO':'turboscale-uploader.yaml','GpgIU':function(_0x444120,_0x18aabd){return _0x444120===_0x18aabd;},'NmAHo':function(_0x5c82e2,_0x40a637,_0x3ec528){return _0x5c82e2(_0x40a637,_0x3ec528);},'uRIAT':_0x3e76f0(0x2c5),'VXzBG':_0x3e76f0(0x1ea),'ipfLz':_0x3e76f0(0x209),'yvXPl':function(_0x4c1b3c,_0x173cfd,_0x133a9c,_0x40ea90,_0x3427d7,_0x1dcce0,_0x2c7417,_0x47cb03){return _0x4c1b3c(_0x173cfd,_0x133a9c,_0x40ea90,_0x3427d7,_0x1dcce0,_0x2c7417,_0x47cb03);},'aCUSw':_0x3e76f0(0x1f7),'QXwUH':_0x3e76f0(0x1e7),'GZMuj':function(_0x59c7a0,_0x32e4b1){return _0x59c7a0!==_0x32e4b1;},'egyPh':'Browserstack','ojiXI':'Namespace\x20Created','PfLYq':_0x3e76f0(0x1f8),'Jdsjn':_0x3e76f0(0x34f),'kOHKI':_0x3e76f0(0x274),'iRVFP':function(_0x46f03b,_0x30449c,_0x1fd36f,_0x1a828b,_0x13721f,_0x50e39d,_0x2cfa4e,_0x1c18c2,_0x2d46c1,_0x51ca34,_0x3844f9){return _0x46f03b(_0x30449c,_0x1fd36f,_0x1a828b,_0x13721f,_0x50e39d,_0x2cfa4e,_0x1c18c2,_0x2d46c1,_0x51ca34,_0x3844f9);},'vSfzC':_0x3e76f0(0x2d9),'OvBld':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','aqOik':function(_0xfdcf26,_0x212a72,_0x164451,_0x3f361e,_0x2106f5){return _0xfdcf26(_0x212a72,_0x164451,_0x3f361e,_0x2106f5);},'GAwNB':function(_0x1de1e0,_0x2982ab,_0x2fe371){return _0x1de1e0(_0x2982ab,_0x2fe371);},'GfKQH':_0x3e76f0(0x1fe),'wCWXa':_0x3e76f0(0x367),'MvGPh':_0x3e76f0(0x242),'cBxJZ':function(_0x4e0e54,_0x4f4a46,_0x3f8706){return _0x4e0e54(_0x4f4a46,_0x3f8706);},'juVzI':_0x3e76f0(0x1fc),'PxCJc':_0x3e76f0(0x27c),'jpKGN':function(_0x224e02,_0x1b301f){return _0x224e02===_0x1b301f;},'srHpI':_0x3e76f0(0x27e),'rhYez':function(_0x5501f4,_0x1de058,_0x578ed7,_0x8fb9d5,_0x3aec05,_0x27797a,_0xa7363,_0x55c2d5){return _0x5501f4(_0x1de058,_0x578ed7,_0x8fb9d5,_0x3aec05,_0x27797a,_0xa7363,_0x55c2d5);},'nIodF':'get-grid-url-auth-failed','yIkXG':function(_0x14ddf1,_0x3367b4,_0x67060d,_0x54dcba,_0xd80a25,_0x23e2bd,_0x4b6d4c,_0x49c62d){return _0x14ddf1(_0x3367b4,_0x67060d,_0x54dcba,_0xd80a25,_0x23e2bd,_0x4b6d4c,_0x49c62d);},'Kfbir':_0x3e76f0(0x365),'wEYJO':function(_0x5a8e73,_0xb8cc87){return _0x5a8e73===_0xb8cc87;},'ATZJt':'Deleting\x20the\x20CloudFormation\x20Stacks','LOZGB':function(_0x4cace5,_0x4ff5f3,_0x2a172e,_0x339365,_0x15de5e,_0x3e5be9){return _0x4cace5(_0x4ff5f3,_0x2a172e,_0x339365,_0x15de5e,_0x3e5be9);},'UJPCj':_0x3e76f0(0x351)};let _0x168260=![],_0x1d033f=![],_0x34bf45,_0x587162,_0x9258d7,_0x3b5367,_0x15cf98,_0xac5bc3,_0x58153d,_0xd587f2,_0x1fc112,_0x4534ea,_0x5c311d,_0x243cc3,_0x9628e4,_0x2560ca,_0x106d1f=0x1,_0x3ec405=0xe;try{global_registry[_0x3e76f0(0x25e)]=_0x3494a3['bxJQd'](uuidv4),global_registry[_0x3e76f0(0x206)]=![];!fs[_0x3e76f0(0x38d)](_0x3494a3[_0x3e76f0(0x258)](getCredentialsPath))&&(_0x3494a3[_0x3e76f0(0x1ef)](_0x3494a3[_0x3e76f0(0x380)],_0x3494a3[_0x3e76f0(0x380)])?(console[_0x3e76f0(0x1f5)](_0x3494a3[_0x3e76f0(0x383)]),await _0x3494a3['kSAYD'](sendInstrumentationEvent,_0x5870bc,_0x3494a3[_0x3e76f0(0x32e)],messageTypes['ERROR'],_0x3494a3[_0x3e76f0(0x25f)],null,_0x5870bc),process[_0x3e76f0(0x385)](0x1)):_0x3fd670['info']('Found\x20Subnets:\x20'+_0x1e8491[_0x3e76f0(0x28d)](_0x35de18)+'\x20'));await _0x3494a3['kSAYD'](sendInstrumentationEvent,_0x5870bc,_0x3494a3['PCGqx'],messageTypes['INFO'],null,null,_0x5870bc);const _0x4e1f68=JSON[_0x3e76f0(0x345)](fs['readFileSync'](_0x3494a3[_0x3e76f0(0x258)](getCredentialsPath)));global_registry['bstackUsername']=_0x4e1f68[_0x3e76f0(0x2c7)][_0x3e76f0(0x320)],global_registry[_0x3e76f0(0x2ea)]=_0x4e1f68[_0x3e76f0(0x2c7)][_0x3e76f0(0x353)];const _0x276f2d=WS_ENDPOINT[_0x3e76f0(0x223)](_0x3494a3[_0x3e76f0(0x290)],_0x4e1f68['Browserstack'][_0x3e76f0(0x320)])['replace'](_0x3494a3['XVefX'],_0x4e1f68[_0x3e76f0(0x2c7)][_0x3e76f0(0x353)]),_0x19c95f={};_0x19c95f[_0x3e76f0(0x322)]=ws,_0x19c95f[_0x3e76f0(0x2e2)]=0x36ee80,_0x243cc3=new ReconnectingWebSocket(_0x276f2d,[],_0x19c95f),logger[_0x3e76f0(0x2fd)](_0x3494a3['fkVox']),webSocketUtils[_0x3e76f0(0x30a)](_0x243cc3,_0x5870bc[_0x3e76f0(0x341)],_0x5870bc[_0x3e76f0(0x353)]);const _0x243422=_0x5870bc['gridName']||DEFAULT_GRID_NAME;if(_0x5870bc[_0x3e76f0(0x2bf)]||_0x5870bc[_0x3e76f0(0x2c6)]||_0x5870bc[_0x3e76f0(0x212)]){if(_0x3494a3[_0x3e76f0(0x339)](_0x3494a3[_0x3e76f0(0x264)],_0x3494a3[_0x3e76f0(0x264)]))_0xdf2737[_0x3e76f0(0x2ed)](_0x3e76f0(0x300)+_0x198e78['clusterName']+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x34beaa=![],_0x54a715=!![];else{!(_0x5870bc[_0x3e76f0(0x2bf)]&&_0x5870bc[_0x3e76f0(0x2c6)]&&_0x5870bc['region'])&&(_0x3494a3[_0x3e76f0(0x267)](_0x3494a3[_0x3e76f0(0x39b)],_0x3494a3[_0x3e76f0(0x269)])?_0x281114['info'](_0x3e76f0(0x2b4)+_0x9e495c+'\x20'):(_0x34bf45=_0x3494a3[_0x3e76f0(0x22f)],await _0x3494a3[_0x3e76f0(0x21c)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes['ERROR'],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3['kkpLY'],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1)));![AWS,AZURE,GCP]['includes'](_0x5870bc[_0x3e76f0(0x2c6)]['toLowerCase']())&&(_0x3494a3[_0x3e76f0(0x323)](_0x3494a3[_0x3e76f0(0x284)],_0x3494a3[_0x3e76f0(0x32b)])?(_0x34bf45=_0x3494a3['nBSfX'],await _0x3494a3[_0x3e76f0(0x36c)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3['PCGqx'],_0x3494a3[_0x3e76f0(0x208)],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1)):_0x585522['error'](_0x3e76f0(0x214)+_0x34d4bf+'\x20\x0a'+_0x35bfa2[_0x3e76f0(0x28d)](_0x23ffce[_0x3e76f0(0x285)])));if(_0x5870bc['privateGrid']&&_0x3494a3[_0x3e76f0(0x31a)](_0x5870bc['privateGrid'][_0x3e76f0(0x37d)](),_0x3494a3[_0x3e76f0(0x318)])){if(_0x3494a3[_0x3e76f0(0x217)](_0x3494a3[_0x3e76f0(0x236)],_0x3494a3['InocB'])){const _0x48d082=_0x3494a3[_0x3e76f0(0x234)][_0x3e76f0(0x1f1)]('|');let _0x59a5d0=0x0;while(!![]){switch(_0x48d082[_0x59a5d0++]){case'0':_0x5cd193['clusterRegion']=_0x23c2a8;continue;case'1':const _0x4560ce={};_0x4560ce[_0x3e76f0(0x2e6)]=_0x3ed281[_0x3e76f0(0x372)],_0x4560ce[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x28a)],_0x278021[_0x3e76f0(0x281)](_0x1aa76e,_0x4560ce);continue;case'2':_0x56fc2f[_0x3e76f0(0x2ab)]=_0x362e44['hubVersion'];continue;case'3':_0x50da1a['clusterName']=_0x48c282;continue;case'4':const _0x17a5c8={};_0x17a5c8[_0x3e76f0(0x2e6)]=_0x4b8ddb[_0x3e76f0(0x359)],_0x17a5c8[_0x3e76f0(0x1e8)]=_0x28f5d8,_0x720a3a['sendEventToBackend'](_0x5da16e,_0x17a5c8);continue;case'5':_0x1b159a['browserVersion']=_0x232ace[_0x3e76f0(0x204)];continue;case'6':_0x406edf['info'](_0x42c782);continue;case'7':_0x1948d6=_0x3e76f0(0x235)+_0x543e8b+_0x3e76f0(0x2f6)+_0x4778aa+'\x27';continue;case'8':_0x191ae0[_0x3e76f0(0x2c6)]=_0x186beb;continue;}break;}}else global_registry[_0x3e76f0(0x206)]=!![];}global_registry[_0x3e76f0(0x2c6)]=_0x5870bc['cloudProvider'],global_registry[_0x3e76f0(0x239)]=_0x5870bc[_0x3e76f0(0x212)],global_registry['clusterName']=_0x5870bc[_0x3e76f0(0x2bf)];const _0x59a20f=await _0x3494a3[_0x3e76f0(0x391)](getCloudProviderObject,_0x5870bc['cloudProvider'],_0x5870bc['clusterName'],_0x243422,_0x243cc3,webSocketUtils,_0x5870bc),_0x46c73d=await _0x59a20f['isClusterPresent']();!_0x46c73d?_0x3494a3[_0x3e76f0(0x3a8)](_0x3494a3[_0x3e76f0(0x301)],_0x3494a3[_0x3e76f0(0x301)])?_0x285ac1=_0x3494a3[_0x3e76f0(0x38c)]:(logger['info'](_0x3e76f0(0x300)+_0x5870bc['clusterName']+_0x3e76f0(0x272)),_0x168260=![],_0x1d033f=!![]):_0x3494a3[_0x3e76f0(0x339)](_0x3494a3[_0x3e76f0(0x29a)],_0x3494a3[_0x3e76f0(0x399)])?_0x168260=!![]:_0x4ed755=null,_0x9258d7=_0x5870bc[_0x3e76f0(0x2bf)],_0x587162=_0x5870bc[_0x3e76f0(0x2c6)]['toLowerCase'](),_0x3b5367=_0x5870bc[_0x3e76f0(0x212)];}}else{if(_0x5870bc[_0x3e76f0(0x394)]){if(_0x3494a3[_0x3e76f0(0x323)](_0x3494a3[_0x3e76f0(0x35e)],_0x3494a3[_0x3e76f0(0x220)]))global_registry[_0x3e76f0(0x394)]=_0x5870bc[_0x3e76f0(0x394)];else{const _0x30f648={};_0x30f648[_0x3e76f0(0x33a)]=_0x3494a3[_0x3e76f0(0x2dc)],_0x30f648[_0x3e76f0(0x2e6)]=_0x3494a3['IiysN'];const _0x5a9697={};_0x5a9697[_0x3e76f0(0x33a)]=_0x3494a3['MDKBf'],_0x5a9697[_0x3e76f0(0x2e6)]=_0x3494a3['IiysN'];const _0x5eb499={};_0x5eb499['description']=_0x3494a3[_0x3e76f0(0x215)],_0x5eb499['type']=_0x3494a3[_0x3e76f0(0x254)];const _0x21efe1={};_0x21efe1[_0x3e76f0(0x33a)]=_0x3494a3[_0x3e76f0(0x360)],_0x21efe1[_0x3e76f0(0x2e6)]=_0x3494a3['IiysN'];const _0x5c0bd3={};_0x5c0bd3[_0x3e76f0(0x33a)]=_0x3494a3[_0x3e76f0(0x32f)],_0x5c0bd3[_0x3e76f0(0x2e6)]=_0x3494a3[_0x3e76f0(0x254)];const _0x2b30e1={};_0x2b30e1[_0x3e76f0(0x33a)]=_0x3494a3[_0x3e76f0(0x2b0)],_0x2b30e1[_0x3e76f0(0x2e6)]=_0x3494a3[_0x3e76f0(0x254)];const _0x2f38be={};_0x2f38be[_0x3e76f0(0x33a)]=_0x3494a3[_0x3e76f0(0x226)],_0x2f38be[_0x3e76f0(0x2e6)]=_0x3494a3[_0x3e76f0(0x2b9)],_0x2f38be[_0x3e76f0(0x255)]=![];const _0x518a92={};_0x518a92[_0x3e76f0(0x33a)]=_0x3494a3[_0x3e76f0(0x319)],_0x518a92[_0x3e76f0(0x2e6)]=_0x3494a3['XNGEq'],_0x518a92['default']=![];const _0x4dd02c={};_0x4dd02c['description']=_0x3494a3[_0x3e76f0(0x2be)],_0x4dd02c[_0x3e76f0(0x2e6)]=_0x3494a3[_0x3e76f0(0x2b9)],_0x4dd02c[_0x3e76f0(0x255)]=![];const _0x27e784={};return _0x27e784[_0x3e76f0(0x1fb)]=_0x30f648,_0x27e784[_0x3e76f0(0x29d)]=_0x5a9697,_0x27e784['cluster-name']=_0x5eb499,_0x27e784[_0x3e76f0(0x373)]=_0x21efe1,_0x27e784['region']=_0x5c0bd3,_0x27e784['private-grid']=_0x2b30e1,_0x27e784[_0x3e76f0(0x283)]=_0x2f38be,_0x27e784[_0x3e76f0(0x24c)]=_0x518a92,_0x27e784[_0x3e76f0(0x350)]=_0x4dd02c,_0x5e3850['usage'](_0x4eb381[_0x3e76f0(0x277)])[_0x3e76f0(0x35d)](_0x5bc5d9)[_0x3e76f0(0x26f)](_0x27e784)['help'](_0x3494a3[_0x3e76f0(0x2c9)])[_0x3e76f0(0x232)];}}}global_registry[_0x3e76f0(0x2bc)]=_0x5870bc[_0x3e76f0(0x2bc)];const _0x587a9f={'method':_0x3494a3[_0x3e76f0(0x382)],'headers':_0x3494a3[_0x3e76f0(0x321)](getAuthHeader,_0x4e1f68['Browserstack'][_0x3e76f0(0x320)],_0x4e1f68['Browserstack'][_0x3e76f0(0x353)]),'throwHttpErrors':![]},_0x246355={};_0x246355[_0x3e76f0(0x2bc)]=_0x243422;const _0x16c8fa=_0x246355;_0x1d033f&&(_0x3494a3[_0x3e76f0(0x302)](_0x3494a3[_0x3e76f0(0x24f)],_0x3494a3['thcOH'])?(_0x16c8fa[_0x3e76f0(0x212)]=_0x3b5367,_0x16c8fa[_0x3e76f0(0x2c6)]=_0x587162,_0x16c8fa[_0x3e76f0(0x33c)]=!![],_0x16c8fa[_0x3e76f0(0x1f6)]=_0x5870bc[_0x3e76f0(0x295)]):(_0x4ae7a7[_0x3e76f0(0x212)]=_0x27ba60,_0x4b6fcd[_0x3e76f0(0x2c6)]=_0x13f8ea,_0x517221[_0x3e76f0(0x33c)]=!![],_0x1666b9['clusterAutoUpgrade']=_0x22b685[_0x3e76f0(0x295)]));_0x5870bc[_0x3e76f0(0x295)]&&(_0x3494a3[_0x3e76f0(0x23d)](_0x3494a3[_0x3e76f0(0x3a3)],_0x3494a3['CWZVo'])?_0x12e416=_0x93b1eb[_0x40e701[_0x3e76f0(0x394)]]:logger['info'](_0x3494a3[_0x3e76f0(0x2b1)]));const _0x4c6273=_0x3e76f0(0x1f4)+AG_API_URL+'/packages/cli/create-grid-checks',_0x37dad3={'searchParams':_0x16c8fa,'throwHttpErrors':![],..._0x587a9f},_0x230c7b=_0x37dad3,_0x62756b=await _0x3494a3[_0x3e76f0(0x321)](got,_0x4c6273,_0x230c7b);(_0x3494a3[_0x3e76f0(0x347)](_0x62756b,null)||_0x3494a3[_0x3e76f0(0x332)](_0x62756b,undefined))&&(_0x3494a3[_0x3e76f0(0x1ef)](_0x3494a3[_0x3e76f0(0x327)],_0x3494a3[_0x3e76f0(0x327)])?(_0x34bf45=_0x3494a3[_0x3e76f0(0x31c)],await _0x3494a3[_0x3e76f0(0x376)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3[_0x3e76f0(0x39e)],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1)):(_0xf7e899=_0x385c3e['route53'],_0x228c5f=_0x3494a3[_0x3e76f0(0x246)]));_0x3494a3['XgZDc'](_0x62756b[_0x3e76f0(0x33b)],0x191)&&(_0x3494a3[_0x3e76f0(0x346)](_0x3494a3[_0x3e76f0(0x324)],_0x3494a3['HLFEf'])?(_0x34bf45=_0x3494a3[_0x3e76f0(0x26b)],await _0x3494a3['VRerZ'](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3['PCGqx'],_0x3494a3['ihiIS'],_0x3494a3['xduTM']),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1)):_0x3494a3['ngkGB'](_0xba1ab9,_0x155e98[_0x3e76f0(0x282)]));if(_0x3494a3[_0x3e76f0(0x323)](_0x62756b['statusCode'],0xc8)){if(_0x3494a3[_0x3e76f0(0x20a)](_0x3494a3[_0x3e76f0(0x38b)],_0x3494a3[_0x3e76f0(0x38b)]))throw new _0x2a62ee(_0x3e76f0(0x396)+_0x5016af+_0x3e76f0(0x2a4));else _0x34bf45=_0x3e76f0(0x227)+JSON[_0x3e76f0(0x28d)](_0x62756b[_0x3e76f0(0x388)]),await _0x3494a3['GrfEX'](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3['haDqP'],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1);}const _0x20cd1b=JSON[_0x3e76f0(0x345)](_0x62756b[_0x3e76f0(0x388)]),_0x153e27={};_0x153e27[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x372)],_0x153e27[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x28a)],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x153e27);const _0xe1ff73={};_0xe1ff73['type']=WS_EVENTS['LOG'],_0xe1ff73['message']=_0x3494a3[_0x3e76f0(0x213)],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0xe1ff73);_0x20cd1b[_0x3e76f0(0x34c)]&&(_0x3494a3[_0x3e76f0(0x27b)](_0x3494a3[_0x3e76f0(0x20c)],_0x3494a3['irbDE'])?_0x52a62f[_0x3e76f0(0x206)]=!![]:(_0x34bf45=_0x3e76f0(0x31f)+_0x243422+_0x3e76f0(0x378),await _0x3494a3[_0x3e76f0(0x222)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3[_0x3e76f0(0x24a)],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process['exit'](0x1)));const _0x2f21a9=_0x20cd1b[_0x3e76f0(0x240)];let _0x3915e0=_0x2f21a9[_0x20cd1b[_0x3e76f0(0x330)]];_0x5870bc[_0x3e76f0(0x394)]&&(_0x3494a3[_0x3e76f0(0x339)](_0x3494a3[_0x3e76f0(0x210)],_0x3494a3[_0x3e76f0(0x210)])?_0x127768=_0x3494a3[_0x3e76f0(0x381)]:_0x3915e0=_0x2f21a9[_0x5870bc['gridProfile']]);global_registry['enableHubHa']=![];if(_0x5870bc[_0x3e76f0(0x249)]){if(_0x3494a3[_0x3e76f0(0x1ef)](_0x3494a3[_0x3e76f0(0x2e9)],_0x3494a3['ammWy'])){const _0x1a2fc5=_0x3494a3['PNfSS']['split']('|');let _0x23e4d8=0x0;while(!![]){switch(_0x1a2fc5[_0x23e4d8++]){case'0':_0x59d9c7[_0x3e76f0(0x393)]=_0x3494a3[_0x3e76f0(0x337)];continue;case'1':_0x55f979['kafkaPassword']=_0x3494a3[_0x3e76f0(0x3aa)];continue;case'2':_0x21d367[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x251)]);continue;case'3':_0x51d4c4[_0x3e76f0(0x280)]=_0x3494a3[_0x3e76f0(0x1fd)];continue;case'4':_0x15263e[_0x3e76f0(0x2b7)]=!![];continue;}break;}}else{const _0x38600f=_0x3494a3[_0x3e76f0(0x32a)][_0x3e76f0(0x1f1)]('|');let _0x497723=0x0;while(!![]){switch(_0x38600f[_0x497723++]){case'0':global_registry[_0x3e76f0(0x2b7)]=!![];continue;case'1':global_registry[_0x3e76f0(0x280)]=_0x3494a3['kaYKT'];continue;case'2':logger['info'](_0x3494a3['vWFkn']);continue;case'3':global_registry[_0x3e76f0(0x30d)]=_0x3494a3['IXydo'];continue;case'4':global_registry[_0x3e76f0(0x393)]=_0x3494a3[_0x3e76f0(0x337)];continue;}break;}}}if(_0x3494a3[_0x3e76f0(0x2ff)](_0x168260,![])&&_0x3494a3[_0x3e76f0(0x2f9)](_0x1d033f,![])){if(_0x3494a3[_0x3e76f0(0x31a)](_0x3494a3['xFSqq'],_0x3494a3[_0x3e76f0(0x32c)]))_0x3f1602[_0x3e76f0(0x206)]=!![];else{_0x3494a3[_0x3e76f0(0x265)](_0x3915e0,undefined)&&(_0x3494a3[_0x3e76f0(0x217)](_0x3494a3[_0x3e76f0(0x22e)],_0x3494a3[_0x3e76f0(0x334)])?(_0x34bf45=_0x3494a3['BZKJX'],await _0x3494a3[_0x3e76f0(0x36c)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3['KYdBC'],_0x3494a3['xduTM']),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1)):_0x3e6ab7[_0x3e76f0(0x394)]=_0x419e7c[_0x3e76f0(0x394)]);global_registry['gridProfileId']=_0x3915e0['id'],_0x34bf45=_0x3e76f0(0x3a5)+_0x243422+_0x3e76f0(0x200)+_0x3915e0[_0x3e76f0(0x3a1)]+_0x3e76f0(0x28f),logger['info'](_0x34bf45);const _0x41e2d5={};_0x41e2d5[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x41e2d5['message']=_0x34bf45,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x41e2d5),_0x587162=_0x3915e0[_0x3e76f0(0x2c6)],_0x9258d7=_0x3915e0[_0x3e76f0(0x2bf)],_0x3b5367=_0x3915e0[_0x3e76f0(0x212)],_0x15cf98=_0x3915e0['concurrency'],_0xac5bc3=_0x3915e0[_0x3e76f0(0x3a7)],_0x58153d=_0x3915e0[_0x3e76f0(0x333)],_0xd587f2=_0x3915e0[_0x3e76f0(0x37c)],_0x1fc112=_0x3915e0['subnets'],_0x4534ea=_0x3915e0[_0x3e76f0(0x26c)],_0x106d1f=_0x3915e0[_0x3e76f0(0x1e4)],_0x3ec405=_0x3915e0[_0x3e76f0(0x361)],_0x9628e4=_0x20cd1b['hubVersion'],_0x2560ca=_0x20cd1b[_0x3e76f0(0x204)];if(_0x58153d&&_0x3494a3['HABLf'](_0x58153d[_0x3e76f0(0x2ca)],0x0)){if(_0x3494a3[_0x3e76f0(0x323)](_0x3494a3['EiVis'],_0x3494a3[_0x3e76f0(0x36e)]))_0x58153d=null;else{const _0x66ef84={};_0x66ef84[_0x3e76f0(0x2e6)]=_0x756e1e[_0x3e76f0(0x359)],_0x66ef84[_0x3e76f0(0x1e8)]=_0x26e7c5,_0x4639c0[_0x3e76f0(0x281)](_0x3469c9,_0x66ef84,_0x3494a3[_0x3e76f0(0x39d)],!![]);}}_0x1fc112&&_0x3494a3[_0x3e76f0(0x31a)](_0x1fc112[_0x3e76f0(0x2ca)],0x0)&&(_0x3494a3['hxioC'](_0x3494a3[_0x3e76f0(0x29f)],_0x3494a3[_0x3e76f0(0x3a2)])?_0x3494a3[_0x3e76f0(0x2ba)](_0x562e4e,_0x2d9339['uploaderVersion']):_0x1fc112=null);_0x3494a3['RXbHe'](_0x3915e0['privateGrid'],undefined)&&_0x3915e0[_0x3e76f0(0x368)]&&(_0x3494a3[_0x3e76f0(0x357)](_0x3494a3[_0x3e76f0(0x20b)],_0x3494a3[_0x3e76f0(0x20b)])?_0x25a993[_0x3e76f0(0x38e)]():global_registry[_0x3e76f0(0x206)]=!![]);_0x3494a3['lrYLq'](updateGlobalRegistryWithConfig,_0x587162,_0x9258d7,_0x3b5367,_0x15cf98,_0xac5bc3,_0x4534ea,_0x3915e0,_0x9628e4,_0x2560ca,_0x106d1f,_0x3ec405,_0x5870bc[_0x3e76f0(0x295)]);if(global_registry['enableHubHa']){if(_0x3494a3[_0x3e76f0(0x20a)](_0x3494a3[_0x3e76f0(0x297)],_0x3494a3[_0x3e76f0(0x2cd)]))_0x3494a3['jfRCD'](updateGlobalRegistryForHubHa,_0x20cd1b[_0x3e76f0(0x36d)]);else{const _0x590336={'azure.workload.identity/use':_0x3494a3['TLaBB'],..._0x467848[0x0][_0x3e76f0(0x27a)]['template'][_0x3e76f0(0x1f0)][_0x3e76f0(0x2a1)]};_0x24c219[0x0][_0x3e76f0(0x27a)][_0x3e76f0(0x397)]['metadata'][_0x3e76f0(0x2a1)]=_0x590336,_0x7a9a32[0x0]['spec'][_0x3e76f0(0x397)][_0x3e76f0(0x27a)][_0x3e76f0(0x2cb)]=_0x3494a3[_0x3e76f0(0x1ed)];}}}}else{if(_0x3494a3[_0x3e76f0(0x21e)](_0x1d033f,!![])){if(_0x3494a3[_0x3e76f0(0x2a7)](_0x3494a3[_0x3e76f0(0x2de)],_0x3494a3[_0x3e76f0(0x201)])){_0x34bf45=_0x3e76f0(0x257)+_0x243422,logger[_0x3e76f0(0x2ed)](_0x34bf45);const _0xd04e5a={};_0xd04e5a[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0xd04e5a[_0x3e76f0(0x1e8)]=_0x34bf45,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0xd04e5a),_0x15cf98=_0x3915e0['concurrency'],_0xac5bc3=_0x3915e0[_0x3e76f0(0x3a7)],_0x58153d=null,_0xd587f2=null,_0x1fc112=null,_0x4534ea=_0x3915e0[_0x3e76f0(0x26c)],_0x106d1f=_0x3915e0[_0x3e76f0(0x1e4)],_0x3ec405=_0x3915e0[_0x3e76f0(0x361)],_0x9628e4=_0x20cd1b[_0x3e76f0(0x2ab)],_0x2560ca=_0x20cd1b['browserVersion'],_0x3494a3[_0x3e76f0(0x230)](_0x3915e0[_0x3e76f0(0x368)],undefined)&&_0x3915e0['privateGrid']&&(_0x3494a3[_0x3e76f0(0x2df)](_0x3494a3['xAhsS'],_0x3494a3['xAhsS'])?global_registry[_0x3e76f0(0x206)]=!![]:_0x242d74=null),_0x3494a3[_0x3e76f0(0x1ee)](updateGlobalRegistryWithConfig,_0x587162,_0x9258d7,_0x3b5367,_0x15cf98,_0xac5bc3,_0x4534ea,_0x3915e0,_0x9628e4,_0x2560ca,_0x106d1f,_0x3ec405,_0x5870bc[_0x3e76f0(0x295)]),global_registry['enableHubHa']&&(_0x3494a3[_0x3e76f0(0x230)](_0x3494a3[_0x3e76f0(0x24b)],_0x3494a3[_0x3e76f0(0x2b5)])?_0x3494a3[_0x3e76f0(0x221)](updateGlobalRegistryForHubHa,_0x20cd1b[_0x3e76f0(0x282)]):_0x4ee8e7=!![]);}else _0x53b661[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x2b1)]);}else{if(_0x3494a3[_0x3e76f0(0x331)](_0x3494a3['kbjch'],_0x3494a3[_0x3e76f0(0x262)])){const _0x236097=_0x3494a3[_0x3e76f0(0x387)][_0x3e76f0(0x1f1)]('|');let _0x8f02dc=0x0;while(!![]){switch(_0x236097[_0x8f02dc++]){case'0':global_registry[_0x3e76f0(0x239)]=_0x3b5367;continue;case'1':global_registry[_0x3e76f0(0x2ab)]=_0x20cd1b['hubVersion'];continue;case'2':logger['info'](_0x34bf45);continue;case'3':const _0x145b6={};_0x145b6[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x145b6['message']=_0x34bf45,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x145b6);continue;case'4':global_registry[_0x3e76f0(0x2c6)]=_0x587162;continue;case'5':const _0x3865b1={};_0x3865b1['type']=WS_EVENTS[_0x3e76f0(0x372)],_0x3865b1['message']=_0x3494a3[_0x3e76f0(0x28a)],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x3865b1);continue;case'6':global_registry['clusterName']=_0x9258d7;continue;case'7':_0x34bf45=_0x3e76f0(0x235)+_0x243422+_0x3e76f0(0x2f6)+_0x9258d7+'\x27';continue;case'8':global_registry[_0x3e76f0(0x204)]=_0x20cd1b[_0x3e76f0(0x204)];continue;}break;}}else _0x1ad629[_0x3e76f0(0x206)]=!![];}}const _0x27efd0=await _0x3494a3['kSAYD'](getCloudProviderObject,_0x587162,_0x9258d7,_0x243422,_0x243cc3,webSocketUtils,_0x5870bc);if(_0x3494a3[_0x3e76f0(0x304)](_0x587162,AZURE)){if(_0x3494a3['JgQxQ'](_0x3494a3[_0x3e76f0(0x233)],_0x3494a3[_0x3e76f0(0x31d)])){const _0x5cd829={};_0x5cd829[_0x3e76f0(0x2e6)]=_0x5e992c[_0x3e76f0(0x359)],_0x5cd829[_0x3e76f0(0x1e8)]=_0x3e76f0(0x396)+_0x5ac7fe+_0x3e76f0(0x389),_0x1037b4[_0x3e76f0(0x281)](_0x5d4b95,_0x5cd829,_0x3494a3['flhuh']),_0x37c52c[_0x3e76f0(0x2ed)](_0x3e76f0(0x396)+_0x9ed485+_0x3e76f0(0x389)),_0x1320e9=!![];if(_0x3494a3[_0x3e76f0(0x267)](_0x4bcfdb,!![]))throw new _0x34f37a(_0x3e76f0(0x396)+_0x43f03a+_0x3e76f0(0x2a4));}else _0x27efd0[_0x3e76f0(0x38e)]();}let _0x115de7;if(_0x3494a3[_0x3e76f0(0x268)](_0x168260,![])){_0x34bf45=_0x3e76f0(0x366)+_0x3b5367+').';const _0x11cdc7={};_0x11cdc7[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x11cdc7[_0x3e76f0(0x1e8)]=_0x34bf45,webSocketUtils['sendEventToBackend'](_0x243cc3,_0x11cdc7),logger[_0x3e76f0(0x2ed)](_0x34bf45);const _0x80650c=await _0x27efd0[_0x3e76f0(0x307)]();if(_0x80650c){if(_0x3494a3[_0x3e76f0(0x3a9)](_0x3494a3[_0x3e76f0(0x2ce)],_0x3494a3['etfDu'])){const _0xd948ff=_0x3494a3[_0x3e76f0(0x252)][_0x3e76f0(0x1f1)]('|');let _0x329dcd=0x0;while(!![]){switch(_0xd948ff[_0x329dcd++]){case'0':_0x3494a3['lrYLq'](_0x387748,_0x23e937,_0x1f1061,_0xb1c4b9,_0x201547,_0x42dea2,_0x27c634,_0x379e5e,_0x1c882c,_0x229cc8,_0x32a009,_0x55e80b,_0x32b5e5[_0x3e76f0(0x295)]);continue;case'1':_0x3a4a6e=_0x356d3e['minNodes'];continue;case'2':_0x3494a3[_0x3e76f0(0x339)](_0x401f68[_0x3e76f0(0x368)],_0x34c055)&&_0x169560[_0x3e76f0(0x368)]&&(_0x530fe3['isPrivateGrid']=!![]);continue;case'3':_0x58af7d=_0x2a31b8['instanceType'];continue;case'4':_0x525733=_0x3758ab[_0x3e76f0(0x362)];continue;case'5':_0x4559c9=_0x5f0b8b[_0x3e76f0(0x26c)];continue;case'6':_0x11680d=null;continue;case'7':_0x5d5caa=null;continue;case'8':_0x1b5a28=_0x5e645d[_0x3e76f0(0x2ab)];continue;case'9':_0x30c33f=_0x8e99aa[_0x3e76f0(0x361)];continue;case'10':const _0x421b68={};_0x421b68['type']=_0x45663c[_0x3e76f0(0x359)],_0x421b68[_0x3e76f0(0x1e8)]=_0x3bc4ab,_0x28a78c[_0x3e76f0(0x281)](_0x3ddbe9,_0x421b68);continue;case'11':_0x1f3f8a=null;continue;case'12':_0xc509b4=_0x6bee94['browserVersion'];continue;case'13':_0x1216ec[_0x3e76f0(0x2ed)](_0x5f4789);continue;case'14':_0x5d7d8e='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x469b07;continue;case'15':_0x110f31[_0x3e76f0(0x2b7)]&&_0x3494a3[_0x3e76f0(0x2ba)](_0x269d1b,_0x33a8a6['kafkaUploader']);continue;}break;}}else{const _0x3e0e4a={};_0x3e0e4a[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x3e0e4a[_0x3e76f0(0x1e8)]=_0x3e76f0(0x396)+_0x9258d7+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x3e0e4a,_0x3494a3[_0x3e76f0(0x329)]),logger[_0x3e76f0(0x2ed)](_0x3e76f0(0x396)+_0x9258d7+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x168260=!![];if(_0x3494a3['mzpNE'](_0x1d033f,!![])){if(_0x3494a3[_0x3e76f0(0x2d2)](_0x3494a3[_0x3e76f0(0x354)],_0x3494a3[_0x3e76f0(0x354)]))_0x5d9ab3=_0x3494a3[_0x3e76f0(0x231)];else throw new Error(_0x3e76f0(0x396)+_0x9258d7+_0x3e76f0(0x2a4));}}}else{const _0x57e6a1={};_0x57e6a1[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x57e6a1[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x398)],webSocketUtils['sendEventToBackend'](_0x243cc3,_0x57e6a1),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x398)]);const _0x3f8ea0=_0x3494a3[_0x3e76f0(0x395)](_0x58153d,null)&&_0x3494a3[_0x3e76f0(0x323)](_0x58153d,undefined),_0x2458d1=_0x3494a3[_0x3e76f0(0x395)](_0x1fc112,null)&&_0x3494a3[_0x3e76f0(0x346)](_0x1fc112,undefined)&&_0x3494a3['oaNIQ'](_0x1fc112['length'],0x0);if(_0x3f8ea0){_0x3494a3[_0x3e76f0(0x2ff)](_0x2458d1,![])&&(_0x34bf45=_0x3494a3[_0x3e76f0(0x34b)],await _0x3494a3[_0x3e76f0(0x1ec)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3['PCGqx'],_0x3494a3[_0x3e76f0(0x2d7)],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process['exit'](0x1));const _0x200061=await _0x27efd0[_0x3e76f0(0x224)](_0x58153d);_0x3494a3[_0x3e76f0(0x27f)](_0x200061,![])?(_0x34bf45=_0x3494a3[_0x3e76f0(0x279)],await _0x3494a3[_0x3e76f0(0x1ec)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3['ocLFJ'],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1)):logger[_0x3e76f0(0x2ed)]('Found\x20VPC:\x20'+_0x58153d+'\x20');const _0x12564f=await _0x27efd0[_0x3e76f0(0x2ae)](_0x1fc112,_0x58153d);_0x3494a3[_0x3e76f0(0x2e3)](_0x12564f[0x0],![])?(_0x34bf45=_0x3e76f0(0x355)+JSON['stringify'](_0x12564f[0x1])+_0x3e76f0(0x2d0)+_0x58153d+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x3494a3[_0x3e76f0(0x222)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3['YUvir'],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1)):logger[_0x3e76f0(0x2ed)](_0x3e76f0(0x364)+JSON[_0x3e76f0(0x28d)](_0x1fc112)+'\x20'),[_0x58153d,_0x1fc112]=await _0x27efd0[_0x3e76f0(0x34d)](_0x58153d,_0x1fc112);}else{const _0x47aa48=_0x3494a3['oUnRD'][_0x3e76f0(0x1f1)]('|');let _0xbb4961=0x0;while(!![]){switch(_0x47aa48[_0xbb4961++]){case'0':const _0x37fd64={};_0x37fd64[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x37fd64[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x23e)],webSocketUtils['sendEventToBackend'](_0x243cc3,_0x37fd64);continue;case'1':logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x23e)]);continue;case'2':[_0x58153d,_0x1fc112]=await _0x27efd0[_0x3e76f0(0x34d)](_0x58153d,_0x1fc112);continue;case'3':const _0x3807c8={};_0x3807c8[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x3807c8['message']=_0x3494a3['bJaKF'],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x3807c8);continue;case'4':logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x325)]);continue;}break;}}}}_0x168260&&_0x3494a3[_0x3e76f0(0x2f9)](_0x587162,AZURE)&&(await _0x27efd0[_0x3e76f0(0x225)](),await _0x27efd0[_0x3e76f0(0x30b)]());const [_0x21559f,_0x26cc3a,_0x382551,_0x37ef6e,_0x1da299,_0x2cc8a6,_0x40d4a7]=await _0x3494a3['niOcM'](createK8sClient,_0x27efd0,_0x5870bc['skipTlsCertVerify']);_0x3494a3['tPbxc'](_0x168260,![])&&_0x3494a3['LNDRY'](_0x587162,AWS)&&(global_registry[_0x3e76f0(0x1f9)]=!![],_0x115de7=await _0x27efd0[_0x3e76f0(0x2c0)](_0x21559f,_0x5870bc));if(_0x3494a3[_0x3e76f0(0x375)](_0x168260,![])&&global_registry[_0x3e76f0(0x2b7)])try{await _0x27efd0[_0x3e76f0(0x2d5)](_0x2cc8a6,_0x40d4a7,_0x5870bc,_0x58153d,_0x1fc112);const _0x203a64={};_0x203a64[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x203a64[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x205)],webSocketUtils['sendEventToBackend'](_0x243cc3,_0x203a64);!await _0x3494a3[_0x3e76f0(0x335)](namespaceExists,_0x21559f,global_registry['hubHaNameSpace'])&&await _0x3494a3[_0x3e76f0(0x33e)](createNamespace,_0x21559f,global_registry['hubHaNameSpace']);logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x2da)]);let _0x42e670=await fs[_0x3e76f0(0x229)](path[_0x3e76f0(0x216)](__dirname,_0x3494a3[_0x3e76f0(0x377)],_0x3494a3[_0x3e76f0(0x270)],_0x3494a3[_0x3e76f0(0x286)],_0x3494a3[_0x3e76f0(0x338)]),_0x3494a3['RqQie']);_0x42e670=_0x42e670[_0x3e76f0(0x223)](/<RedisClientPassword>/g,_0x3494a3['UMekO'](encodeBase64,global_registry[_0x3e76f0(0x280)])),_0x42e670=_0x42e670['replace'](/<KafkaClientPassword>/g,_0x3494a3['ngkGB'](encodeBase64,global_registry[_0x3e76f0(0x30d)])),_0x42e670=_0x42e670[_0x3e76f0(0x223)](/<BstackUsername>/g,_0x3494a3[_0x3e76f0(0x35f)](encodeBase64,global_registry[_0x3e76f0(0x2f3)])),_0x42e670=_0x42e670[_0x3e76f0(0x223)](/<BstackAccessKey>/g,_0x3494a3[_0x3e76f0(0x35f)](encodeBase64,global_registry['bstackAccesskey']));const _0x262ade=yaml[_0x3e76f0(0x2f7)](_0x42e670);await _0x3494a3[_0x3e76f0(0x39f)](kubeApply,_0x262ade,_0x40d4a7),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x2b3)]);let _0x333181=_0x3494a3['gogPl'];if(_0x3494a3['foTKi'](_0x587162,AZURE))_0x333181=_0x3494a3['ABZEY'];else _0x3494a3[_0x3e76f0(0x2f9)](_0x587162,GCP)&&(_0x333181=_0x3494a3[_0x3e76f0(0x38c)]);logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x271)]);let _0x7e816d=await fs[_0x3e76f0(0x229)](path[_0x3e76f0(0x216)](__dirname,_0x3494a3['vGZnd'],_0x3494a3[_0x3e76f0(0x270)],_0x3494a3[_0x3e76f0(0x286)],_0x3494a3[_0x3e76f0(0x33d)]),_0x3494a3['RqQie']);_0x7e816d=_0x7e816d[_0x3e76f0(0x223)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x7e816d=_0x7e816d[_0x3e76f0(0x223)](/<StorageClassName>/g,_0x333181);const _0xc62c54=yaml[_0x3e76f0(0x2f7)](_0x7e816d);await _0x3494a3['pAsMX'](kubeApply,_0xc62c54,_0x40d4a7),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x289)]),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x3a6)]);let _0xae9b72=await fs[_0x3e76f0(0x229)](path['join'](__dirname,_0x3494a3['vGZnd'],_0x3494a3['FPxqq'],_0x3494a3[_0x3e76f0(0x286)],_0x3494a3[_0x3e76f0(0x291)]),_0x3494a3[_0x3e76f0(0x287)]);_0xae9b72=_0xae9b72[_0x3e76f0(0x223)](/<HubHaNameSpace>/g,global_registry[_0x3e76f0(0x393)]),_0xae9b72=_0xae9b72[_0x3e76f0(0x223)](/<StorageClassName>/g,_0x333181);const _0x533470=yaml['loadAll'](_0xae9b72);await _0x3494a3[_0x3e76f0(0x386)](kubeApply,_0x533470,_0x40d4a7),logger['info'](_0x3494a3[_0x3e76f0(0x266)]),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x33f)]);let _0x392368=await fs[_0x3e76f0(0x229)](path[_0x3e76f0(0x216)](__dirname,_0x3494a3['vGZnd'],_0x3494a3[_0x3e76f0(0x270)],_0x3494a3['epxkR'],_0x3494a3[_0x3e76f0(0x326)]),_0x3494a3[_0x3e76f0(0x287)]);_0x392368=_0x392368[_0x3e76f0(0x223)](/<UploaderImageVersion>/g,global_registry[_0x3e76f0(0x292)]),_0x392368=_0x392368[_0x3e76f0(0x223)](/<HubHaNameSpace>/g,global_registry[_0x3e76f0(0x393)]);const _0x381813=yaml[_0x3e76f0(0x2f7)](_0x392368);_0x3494a3[_0x3e76f0(0x374)](global_registry[_0x3e76f0(0x2c6)],AZURE)&&(_0x381813[0x0][_0x3e76f0(0x27a)][_0x3e76f0(0x397)][_0x3e76f0(0x1f0)][_0x3e76f0(0x2a1)]={'azure.workload.identity/use':_0x3494a3[_0x3e76f0(0x318)],..._0x381813[0x0]['spec'][_0x3e76f0(0x397)][_0x3e76f0(0x1f0)][_0x3e76f0(0x2a1)]},_0x381813[0x0][_0x3e76f0(0x27a)][_0x3e76f0(0x397)][_0x3e76f0(0x27a)][_0x3e76f0(0x2cb)]=_0x3494a3['odOjJ']);await _0x3494a3[_0x3e76f0(0x2f8)](kubeApply,_0x381813,_0x40d4a7),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x2db)]);const _0x4d801c={};_0x4d801c[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x4d801c['message']=_0x3494a3[_0x3e76f0(0x2fa)],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x4d801c),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x348)]);}catch(_0x4dc6fc){const _0x11dfb5=_0x3494a3[_0x3e76f0(0x32a)]['split']('|');let _0x1b9004=0x0;while(!![]){switch(_0x11dfb5[_0x1b9004++]){case'0':process[_0x3e76f0(0x385)](0x1);continue;case'1':await _0x3494a3[_0x3e76f0(0x310)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3['PCGqx'],_0x3494a3[_0x3e76f0(0x306)],_0x3494a3[_0x3e76f0(0x39d)]);continue;case'2':_0x34bf45='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x4dc6fc[_0x3e76f0(0x1e8)];continue;case'3':await _0x27efd0[_0x3e76f0(0x2c3)](_0x21559f,global_registry[_0x3e76f0(0x239)]);continue;case'4':logger['error'](_0x34bf45);continue;}break;}}try{_0x5c311d=_0x3494a3[_0x3e76f0(0x261)](kebabCase,_0x243422),logger['info'](_0x3494a3[_0x3e76f0(0x2d8)]);const _0x2b53ac={};_0x2b53ac[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x2b53ac[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x2d8)],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x2b53ac);if(_0x3494a3[_0x3e76f0(0x36f)](_0x5c311d,_0x3494a3[_0x3e76f0(0x1ed)])){const _0x573a3f={};_0x573a3f['createdBy']=_0x3494a3[_0x3e76f0(0x35a)],_0x573a3f[_0x3e76f0(0x2b2)]=_0x3494a3[_0x3e76f0(0x35a)];const _0x5c5faf={};_0x5c5faf[_0x3e76f0(0x3a1)]=_0x5c311d,_0x5c5faf['annotations']=_0x573a3f;const _0x28ecce={};_0x28ecce[_0x3e76f0(0x1f0)]=_0x5c5faf;const _0x60b9da=_0x28ecce,_0x377696={};_0x377696[_0x3e76f0(0x388)]=_0x60b9da,await _0x21559f['createNamespace'](_0x377696),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x2f5)]);}const _0x1c0e2c={};_0x1c0e2c[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x1c0e2c[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x21f)],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x1c0e2c);const _0x26be39={};_0x26be39['type']=WS_EVENTS[_0x3e76f0(0x359)],_0x26be39[_0x3e76f0(0x1e8)]=_0x3494a3[_0x3e76f0(0x336)],webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x26be39),logger[_0x3e76f0(0x2ed)](_0x3494a3[_0x3e76f0(0x1e3)]);let _0x8c22bd={};_0x3494a3['tPbxc'](_0x587162,AZURE)&&(_0x8c22bd={'clientId':await _0x27efd0[_0x3e76f0(0x1e5)](_0x3e76f0(0x293)+_0x9258d7)});await _0x3494a3[_0x3e76f0(0x228)](addGridComponents,_0x21559f,_0x26cc3a,_0x382551,_0x37ef6e,_0x5c311d,_0x9258d7,_0x115de7,_0x1da299,_0x40d4a7,_0x8c22bd),_0x34bf45=_0x3494a3[_0x3e76f0(0x37f)],logger[_0x3e76f0(0x2ed)](_0x34bf45);const _0x383119={};_0x383119[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x383119[_0x3e76f0(0x1e8)]=_0x34bf45,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x383119),_0x34bf45=_0x3494a3[_0x3e76f0(0x2e1)],logger[_0x3e76f0(0x2ed)](_0x34bf45);const _0x330cf2={};_0x330cf2['type']=WS_EVENTS[_0x3e76f0(0x359)],_0x330cf2['message']=_0x34bf45,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x330cf2),await _0x3494a3[_0x3e76f0(0x39a)](waitForDeployment,_0x26cc3a,_0x5c311d,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x50b4d1=await _0x3494a3['GAwNB'](getNamespaceUID,_0x21559f,_0x5c311d),_0x44862c=global_registry[_0x3e76f0(0x206)]?_0x3494a3[_0x3e76f0(0x21d)]:_0x3494a3['wCWXa'],_0x132131={};_0x132131[_0x3e76f0(0x3a1)]=_0x44862c,_0x132131[_0x3e76f0(0x2dd)]=_0x3494a3[_0x3e76f0(0x311)];const _0x20f061=await _0x21559f[_0x3e76f0(0x29e)](_0x132131);let _0x418843=_0x27efd0['getGridHostname'](_0x20f061)+'/'+_0x5c311d,_0x4a1092=_0x3494a3[_0x3e76f0(0x231)];try{const _0x4467e7=_0x3e76f0(0x1f4)+AG_API_URL+_0x3e76f0(0x328)+_0x50b4d1,_0x26f9df=await _0x3494a3['cBxJZ'](got,_0x4467e7,_0x587a9f);(_0x3494a3['gYzSL'](_0x26f9df,null)||_0x3494a3[_0x3e76f0(0x2df)](_0x26f9df,undefined))&&(_0x34bf45=_0x3494a3['juVzI'],await _0x3494a3[_0x3e76f0(0x310)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3['PCGqx'],_0x3494a3[_0x3e76f0(0x2f1)],_0x3494a3['xduTM']),logger['error'](_0x34bf45),process[_0x3e76f0(0x385)](0x1));_0x3494a3[_0x3e76f0(0x30e)](_0x26f9df[_0x3e76f0(0x33b)],0x191)&&(_0x34bf45=_0x3494a3[_0x3e76f0(0x2c1)],await _0x3494a3[_0x3e76f0(0x370)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3[_0x3e76f0(0x32e)],_0x3494a3['nIodF'],_0x3494a3['xduTM']),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1));_0x3494a3[_0x3e76f0(0x346)](_0x26f9df[_0x3e76f0(0x33b)],0xc8)&&(_0x34bf45='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x3e76f0(0x28d)](_0x26f9df),await _0x3494a3[_0x3e76f0(0x22b)](reportToGalactusAndSendToEDS,_0x5870bc,_0x243cc3,_0x34bf45,messageTypes[_0x3e76f0(0x203)],_0x3494a3['PCGqx'],_0x3494a3[_0x3e76f0(0x278)],_0x3494a3[_0x3e76f0(0x39d)]),logger[_0x3e76f0(0x1f5)](_0x34bf45),process[_0x3e76f0(0x385)](0x1));const _0x4bfae9=JSON['parse'](_0x26f9df[_0x3e76f0(0x388)]);_0x4bfae9[_0x3e76f0(0x34e)]&&(_0x418843=_0x4bfae9[_0x3e76f0(0x34e)],_0x4a1092=_0x3494a3[_0x3e76f0(0x246)]),global_registry[_0x3e76f0(0x206)]&&(_0x4a1092=_0x3494a3['nJyKu']);}catch(_0xb592a2){}_0x34bf45=_0x3e76f0(0x2ad)+_0x418843+'\x20',logger['info'](_0x34bf45);const _0x5b3371={};_0x5b3371['type']=WS_EVENTS[_0x3e76f0(0x359)],_0x5b3371[_0x3e76f0(0x1e8)]=_0x34bf45,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x5b3371),_0x34bf45=_0x3e76f0(0x315)+_0x4a1092+_0x3e76f0(0x25a)+_0x418843+_0x3e76f0(0x22c),logger[_0x3e76f0(0x2ed)](_0x34bf45);const _0x31e60a={};_0x31e60a[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x31e60a[_0x3e76f0(0x1e8)]=_0x34bf45,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x31e60a);const _0x1d025e={};_0x1d025e[_0x3e76f0(0x2e6)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x1d025e[_0x3e76f0(0x1e8)]=_0x3e76f0(0x38a)+_0x418843,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x1d025e),await webSocketUtils[_0x3e76f0(0x21a)](0x7d0);}catch(_0x505b43){logger[_0x3e76f0(0x1f5)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x505b43+'\x20\x0a'+JSON[_0x3e76f0(0x28d)](_0x505b43[_0x3e76f0(0x285)]));if(_0x3494a3[_0x3e76f0(0x2d3)](_0x168260,![]))try{logger['info'](_0x3494a3[_0x3e76f0(0x352)]),await _0x3494a3[_0x3e76f0(0x28e)](removeGridComponents,_0x21559f,_0x26cc3a,_0x382551,_0x37ef6e,_0x5c311d),await _0x27efd0[_0x3e76f0(0x2c3)](_0x21559f,global_registry[_0x3e76f0(0x239)]);}catch(_0x1fa2c1){logger['error'](_0x3e76f0(0x214)+_0x1fa2c1+'\x20\x0a'+JSON[_0x3e76f0(0x28d)](_0x1fa2c1[_0x3e76f0(0x285)]));}throw _0x505b43;}}catch(_0x3e0a99){const _0x50589b=_0x3e76f0(0x2fe)+_0x3e0a99+'\x20\x0a'+JSON[_0x3e76f0(0x28d)](_0x3e0a99['stack']);if(_0x243cc3){const _0x3567ae={};_0x3567ae[_0x3e76f0(0x2e6)]=WS_EVENTS[_0x3e76f0(0x359)],_0x3567ae[_0x3e76f0(0x1e8)]=_0x50589b,webSocketUtils[_0x3e76f0(0x281)](_0x243cc3,_0x3567ae,_0x3494a3[_0x3e76f0(0x39d)],!![]);}await webSocketUtils[_0x3e76f0(0x21a)](0x7d0);const _0x58259e={};_0x58259e[_0x3e76f0(0x1f5)]=_0x50589b,await _0x3494a3[_0x3e76f0(0x391)](sendInstrumentationEvent,_0x5870bc,_0x3494a3[_0x3e76f0(0x32e)],messageTypes[_0x3e76f0(0x203)],_0x3494a3['UJPCj'],_0x58259e,_0x5870bc),logger[_0x3e76f0(0x1f5)](_0x50589b);}process[_0x3e76f0(0x385)](0x0);};function a9_0x258f(_0xe5db3b,_0x52bef8){const _0x444d1a=a9_0x444d();return a9_0x258f=function(_0x258fff,_0x57b21c){_0x258fff=_0x258fff-0x1e3;let _0xffe2fc=_0x444d1a[_0x258fff];return _0xffe2fc;},a9_0x258f(_0xe5db3b,_0x52bef8);}function a9_0x444d(){const _0x362ce1=['vAEai','irbDE','private-grid','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clRHs','FDUPn','region','nvrxE','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','blKbY','join','FIqev','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','http','delay','JYyIo','GOaGO','GfKQH','tPbxc','PfLYq','QxLWU','ngkGB','WvrUX','replace','isVPCPresent','updateClusterAlreadyPresent','jLMqe','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','iRVFP','readFileAsync','SdfQS','yIkXG','/wd/hub','path','RrGyw','FjsiR','kWYFV','nJyKu','argv','ECTNw','mKcFJ','Spawning\x20the\x20grid\x20','InocB','https','command','clusterRegion','bitnami-kafka.yaml','Adding\x20Redis\x20deployment...','Added\x20Kafka\x20deployment.','ueXOU','isFfi','EPuCt','gridProfiles','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ingress-nginx','builder','string','ZAAUa','siXpV','2|0|3|1|4','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hubHa','bjBlP','YvaOe','hub-ha','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','pBEvj','oiaqQ','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','vWFkn','ZFoAI','BJIyh','IiysN','default','uuid','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','jGlPz','otIYx','://','1|7|6|4|8|0|3|2|5','<PasswordPlaceholder>','LrRuF','requestId','SFtGB','498700UuGqkr','jfRCD','kbjch','premium-rwo','Gtayy','JgQxQ','AssbH','edxzL','tsjAF','zZcsB','1766210VhaULo','TixXE','s3bucket','create-grid-checks-invalid-profile','<UsernamePlaceholder>','options','FPxqq','mkaFt','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Grid\x20profile\x20fetched\x20from\x20backend','Spawning\x20Grid\x20on\x20the\x20Cluster','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.','TfBZB','create','Kfbir','nyIYB','spec','UUayf','get-grid-url-null-response','VQgXv','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','gYzSL','redisPassword','sendEventToBackend','kafkaUploader','skip-tls-cert-verify','FnbkN','stack','epxkR','RqQie','pre-spawned-invalid-vpc','keccZ','ZqbAg','../../utils/gridComponents','create-grid-checks-auth-failed','stringify','LOZGB','\x27\x20grid\x20profile','GggtM','kvRGF','uploaderImageVersion','turboscale-managed-identity-','js-yaml','clusterAutoupgrade','YhfAA','recQZ','../../config/logger','fnjLp','HOQHp','UkRNzNYCBU','jyFjh','grid-profile','readNamespacedService','FrahK','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','labels','Adding\x20Kafka\x20deployment...','create-grid-called','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','BnGbO','KOpbj','fbhUF','templates','VgmAs','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','hubVersion','nwFqY','Grid\x20can\x20be\x20accessed\x20at:\x20','isSubnetsValid','aezgt','DhYYa','TXfHc','managedBy','KzkJB','Found\x20VPC:\x20','SbcNc','../../utils/instrumentationUtils','enableHubHa','Adding\x20Websocket\x20listeners','XNGEq','epDjl','OUMzT','gridName','Added\x20Secret\x20Mapping','YtbId','clusterName','setupAutoscaler','srHpI','bitnami-redis.yaml','deleteCluster','create-grid-checks-grid-already-exists','Added\x20Turboscale\x20Uploader\x20deployment.','cloudProvider','Browserstack','Cluster\x20created\x20successfully','tdSfb','length','serviceAccountName','25951673HAfvHi','IEvLI','TqMku','denuC','\x20are\x20not\x20present\x20in\x20VPC:\x20','warn','RkmKV','wEYJO','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','setupHubHa','5386974YnlQgg','oEbyF','QXwUH','Grid\x20spawned\x20on\x20the\x20cluster','DuCZn','uRIAT','AyYMc','namespace','tiDtz','HABLf','grid','OvBld','connectionTimeout','OeHTi','../../utils/webSocketUtils','2PrEOSx','type','8fMnYtA','bRcmv','azMgt','bstackAccesskey','boolean','hJKnM','info','MUixq','handler','jxdCu','PxCJc','NjKar','bstackUsername','2|4|1|3|0','ojiXI','\x20in\x20existing\x20cluster\x20\x27','loadAll','NmAHo','vLkQS','VXzBG','efs-csi','1892043TPyXgn','debug','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','GQwBO','Cluster:\x20','Kulss','iJrXa','Create\x20a\x20private/public\x20grid.','nsPXx','HXPyK','aCUSw','isClusterPresent','Xrrer','prespawned-cluster-args-not-passed','addListeners','createOtherResources','14|13|10|4|3|7|11|6|5|1|9|8|12|2|0|15','kafkaPassword','jpKGN','fxpad','yvXPl','MvGPh','../../config/constants','azurefile-csi-premium','Creating\x20Hub\x20HA\x20resources','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','Adding\x20Secret\x20Mapping','KbrDi','TLaBB','vbADp','NTJFS','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','zgUuv','lmGKi','ObUvV','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','username','uVjaS','WebSocket','KOwXJ','MrwSm','bJaKF','tJpFO','bauTq','/packages/cli/get-grid-url?gridIdentifier=','flhuh','hFPja','CvOiz','ibKUy','bUiyG','PCGqx','QbIzj','defaultGridProfile','AFgru','oMIXl','vpc','hVSCO','YnIQz','Jdsjn','ueFMl','VQPyq','dMHfa','description','statusCode','newCluster','cnTPt','cnKtB','fwied','GET','user','pre-spawned-subnets-not-selected','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','LIvjm','parse','vnXwY','TJshB','ipfLz','Added\x20Redis\x20deployment.','hubharesources','WtRkR','alreadyPresent','setupNewCluster','route53','Spawning\x20grid\x20on\x20to\x20the\x20cluster','cluster-autoupgrade','grid-spawning-failed','ATZJt','password','qqMwB','Subnets:\x20','pre-spawned-invalid-subnets','UqDOp','nYHQM','LOG','egyPh','54KYmdFa','10HMDzTE','epilogue','jYXGu','VhVZc','fSPqS','maxNodes','concurrency','etmtf','Found\x20Subnets:\x20','get-grid-url-non-200','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','ingress-nginx-controller','privateGrid','Epyd5nXbRK','help','got','GrfEX','uploaderVersion','rvtjA','GZMuj','rhYez','sQOWh','CLI_RUN_STARTED','cloud-provider','GpgIU','DjQhT','VRerZ','vGZnd','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','TDxpT','browserstack-secret.yaml','GIneE','securityGroups','toLowerCase','ooxNc','vSfzC','oZbsC','ABZEY','NWgMV','jOGva','CLI\x20run\x20started','exit','lLsYH','TaUdG','body','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','CLI\x20run\x20finished:\x20','BdZQT','CjlJb','existsSync','sendResourceDataToHST','../../cloudproviders/utils','XQrhy','kSAYD','FakDx','hubHaNameSpace','gridProfile','nyvsV','Cluster\x20','template','dCNZp','BbNjU','aqOik','NmGaQ','12bqHNAO','xduTM','KCLDx','TFSXw','browserstack','name','wCQbm','ajeiS','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Will\x20be\x20spawning\x20the\x20grid\x20','jevik','instanceType','qRehE','fCUIG','IXydo','BQqXn','kOHKI','minNodes','getResourceClientId','939694zpDBMf','Creating\x20namespace','message','Flag\x20to\x20enable\x20Hub\x20HA','Created\x20Hub\x20HA\x20resources','AuSPB','LnGLX','odOjJ','yOWqj','XgZDc','metadata','split','593816mebsCR','vMUQV','https://','error','clusterAutoUpgrade','hub-ha-deployments-failed','Namespace\x20created','isNewAWSCluster','hNLtg','grid-name','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','kaYKT','private-ingress-nginx-controller','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','\x20using\x20\x27','QCSHB','../../utils/createk8sClient','ERROR','browserVersion','XHkrK','isPrivateGrid','utf-8','skjSQ','Hub\x20HA\x20setup\x20completed\x20successfully.','RXbHe'];a9_0x444d=function(){return _0x362ce1;};return a9_0x444d();}
|
|
1
|
+
const a9_0x178f2c=a9_0x72d0;function a9_0x72d0(_0xc9f8e4,_0x230eb7){const _0x4dd5ab=a9_0x4dd5();return a9_0x72d0=function(_0x72d006,_0x127854){_0x72d006=_0x72d006-0x141;let _0x59413b=_0x4dd5ab[_0x72d006];return _0x59413b;},a9_0x72d0(_0xc9f8e4,_0x230eb7);}(function(_0x234ec3,_0x296f99){const _0x3bd982=a9_0x72d0,_0x40b215=_0x234ec3();while(!![]){try{const _0x1f9ab5=-parseInt(_0x3bd982(0x2d2))/0x1+-parseInt(_0x3bd982(0x1de))/0x2*(parseInt(_0x3bd982(0x1c0))/0x3)+-parseInt(_0x3bd982(0x19a))/0x4*(-parseInt(_0x3bd982(0x159))/0x5)+-parseInt(_0x3bd982(0x190))/0x6*(-parseInt(_0x3bd982(0x2bf))/0x7)+parseInt(_0x3bd982(0x1ae))/0x8*(parseInt(_0x3bd982(0x1e0))/0x9)+parseInt(_0x3bd982(0x1ac))/0xa+parseInt(_0x3bd982(0x174))/0xb;if(_0x1f9ab5===_0x296f99)break;else _0x40b215['push'](_0x40b215['shift']());}catch(_0x96ee68){_0x40b215['push'](_0x40b215['shift']());}}}(a9_0x4dd5,0xa5bdc));function a9_0x4dd5(){const _0x466006=['IAYgw','KMgwE','MLqZC','ZzEDl','Found\x20VPC:\x20','XCklF','HpcAJ','hPTvn','ygDjr','init-not-called','premium-rwo','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','JSABH','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','\x27\x20grid\x20profile','htKgC','uegbv','default','dmCvl','oKoex','NNdWo','wBFqr','help','../../utils/instrumentationUtils','\x20using\x20\x27','vpc','WRner','clusterRegion','ZoZqD','username','teNvt','NMdjd','user','iCDgn','CLI_RUN_STARTED','route53','readNamespacedService','cloudProvider','XLTts','kGJCy','pre-spawned-subnets-not-selected','type','yXpQd','Adding\x20Redis\x20deployment...','UDKVD','aOHzl','clusterName','oaJUO','soXxT','pjfor','wKduf','parse','nDTul','5|3|0|7|1|4|8|6|2','create-grid-called','region','createdBy','cDiiY','browserstack-secret.yaml','MZnQY','clusterAutoUpgrade','gNcpR','FdCFH','hrapG','wMOpW','UkRNzNYCBU','template','OBOtm','gridName','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','../../utils/createk8sClient','kafkaUploader','gmwqo','bzApR','mHayO','minNodes','BhwOE','requestId','EdOwW','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','tNCJD','JBlRM','qkXuU','Kzxpr','https://','PZefO','riHlF','Epyd5nXbRK','euZqo','RPmTU','sendResourceDataToHST','qcbnF','Cluster\x20','xACXy','FLIhu','QcLmT','cluster-name','QcBmM','Browserstack','ZFAcy','handler','setupHubHa','://','25571wiPWUH','nQMVk','eNUUW','Spawning\x20grid\x20on\x20to\x20the\x20cluster','vahcw','rjGPB','getResourceClientId','PKwHX','toLowerCase','body','bstackAccesskey','LzyAH','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','IaPbL','Grid\x20profile\x20fetched\x20from\x20backend','wicaQ','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','PmyzW','RtCiF','403029GuPTce','4|0|3|2|1','http','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','yvSjS','vNxSj','Gnbbt','wAWdU','Creating\x20Hub\x20HA\x20resources','uMlkb','mcqvF','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Create\x20a\x20new\x20Automation\x20grid.','KkDHs','NqmKm','includes','Namespace\x20Created','AuqhW','6|9|15|7|8|14|0|11|2|12|1|5|13|10|4|3','eDVeC','YgUsk','efs-csi','kgYQg','RPkua','RUtmv','BmfkN','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','FLzfR','FWkaJ','annotations','zJpuM','ESFUH','iAvvL','DkXCd','OkZTc','sRCvD','seQWS','cluster-autoupgrade','getGridHostname','yyacE','RBxku','wOSOW','concurrency','cABKS','zIgFD','uenmd','rYuux','Spawning\x20Grid\x20on\x20the\x20Cluster','UkAPU','join','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','info','WebSocket','YhSsr','CLI_RUN_FINISHED','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','fLnqh','HASPN','browserVersion','sendEventToBackend','epilogue','REmoj','replace','qWaqu','85MWzPwT','OYlmg','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','tKzOm','YwEuU','/packages/cli/create-grid-checks','HKPKP','isNewAWSCluster','redisPassword','browserstack','turboscale-uploader.yaml','LXRSg','dXWbe','rnPdd','efSXC','aCOsx','ivjSF','grid-name','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Hfkgl','NOjwk','FzTRR','tWuWg','options','ZXoie','spec','description','9593221xlFBFg','PRUfs','create-grid-checks-auth-failed','name','updateClusterAlreadyPresent','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','GiwaM','clusterAutoupgrade','jPqMR','grid-spawning-failed','HdIBg','NGyLK','JGFLF','hubHaNameSpace','sILBi','DXYYY','Deleting\x20the\x20CloudFormation\x20Stacks','1|4|0|2|3','loadAll','instanceType','Namespace\x20created','string','Added\x20Redis\x20deployment.','managedBy','gridProfileId','facXu','statusCode','newCluster','138NHiqAX','alreadyPresent','error','LOG','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','Creating\x20namespace','qxSeB','0|1|4|3|2','get-grid-url-auth-failed','privateGrid','28364pOGweO','cCrwh','usage','desc','hwrQc','xKYHp','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','../../cloudproviders/utils','oYzrZ','got','RvNBb','turboscale-managed-identity-','MULss','exit','vKOFG','deleteCluster','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','bstackUsername','9773090eBkwEA','message','9104gdHZwq','../../utils/gridComponents','Enabling\x20Hub\x20HA\x20flow','../..','Found\x20Subnets:\x20','skipTlsCertVerify','private-grid','GET','prespawned-cluster-args-not-passed','oAhmJ','bitnami-kafka.yaml','aeClU','uKLRK','xSMUl','sBqaa','pre-spawned-invalid-subnets','HDPyx','Grid\x20can\x20be\x20accessed\x20at:\x20','3QrzFVc','kouRF','VWdlS','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','hLowT','XJPRX','CtMBl','LkOeq','serviceAccountName','isPrivateGrid','readFileAsync','grid-profile','Flag\x20to\x20enable\x20Hub\x20HA','bwkIJ','isClusterPresent','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','gridProfiles','create-grid-checks-null-response','cxRrE','skip-tls-cert-verify','js-yaml','Emwrj','cRqqs','Create\x20a\x20private/public\x20grid.','securityGroups','hubVersion','sPIGV','createNamespace','hub-ha','Vvzld','2706622DnQYlF','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','3015aHWfiW','get-grid-url-non-200','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','mBtFP','VJXTO','Cluster:\x20','EKqrq','gridProfile','setupAutoscaler','split','FpgZF','UnaWR','xUKBq','HVGNW','uploaderVersion','Subnets:\x20','Cluster\x20created\x20successfully','non-aws-azure-cluster','existsSync','VGBqu','TaSqY','INFO','Xwaqy','Will\x20be\x20spawning\x20the\x20grid\x20','Spawning\x20the\x20grid\x20','cfWKQ','rjNiF','s3bucket','RrfCx','CLI\x20run\x20finished:\x20','BghFB','tMsWM','<UsernamePlaceholder>','gFvPG','cvjso','kafkaPassword','\x20are\x20not\x20present\x20in\x20VPC:\x20','ZjJPB','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','/wd/hub','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Hub\x20HA\x20setup\x20completed\x20successfully.','Mbwbn','oYSyB','hubHa','azurefile-csi-premium','ANhPt','JHDNi','path','jiWcT','NAuWI','Created\x20Hub\x20HA\x20resources','builder','LmAzg','cloud-provider','NwEme','RJyvS','XJocD','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','FlnJL','ujUwT','namespace','labels','stack','maxNodes','xZZhm','ZBPjx','bJBpq','argv','password','UMfAw','Added\x20Kafka\x20deployment.','PaeiF','DpIWl','length','RgEPI','vOZEP','yILUL','debug','ygDRX','uDrTH','Avvit','Skip\x20insecure\x20cert\x20verification.','Indgf','OroWf','Paqgb','yodtC','\x20in\x20existing\x20cluster\x20\x27','delay','reconnecting-websocket','metadata','BTgdD','eOAas','uploaderImageVersion','bFjQY','ERROR','SasJL','defaultGridProfile','IAunn','create','private-ingress-nginx-controller','3|4|6|5|7|8|2|1|0','/packages/cli/get-grid-url?gridIdentifier=','bFIyt','qsrmY','AcFJa','CLI\x20run\x20started','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','MowYF','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','stringify','QkOvr','eAGaS','enableHubHa','GdSmu','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','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.','ingress-nginx-controller','ilpid'];a9_0x4dd5=function(){return _0x466006;};return a9_0x4dd5();}const fs=require('fs'),ws=require('ws'),path=require(a9_0x178f2c(0x210)),yaml=require(a9_0x178f2c(0x1d4)),ReconnectingWebSocket=require(a9_0x178f2c(0x239)),got=require(a9_0x178f2c(0x1a3)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x178f2c(0x1a1)),{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('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x178f2c(0x1af)),{createK8sClient}=require(a9_0x178f2c(0x29e)),{sendInstrumentationEvent}=require(a9_0x178f2c(0x26f));exports['command']='grid',exports[a9_0x178f2c(0x19d)]=a9_0x178f2c(0x2df),exports[a9_0x178f2c(0x214)]=function(_0x214820){const _0x4f7c52=a9_0x178f2c,_0x2d36ac={};_0x2d36ac[_0x4f7c52(0x2d1)]=_0x4f7c52(0x14b),_0x2d36ac['vahcw']='string',_0x2d36ac['wKduf']=_0x4f7c52(0x1a0),_0x2d36ac[_0x4f7c52(0x149)]=_0x4f7c52(0x2de),_0x2d36ac['wAWdU']=_0x4f7c52(0x206),_0x2d36ac[_0x4f7c52(0x219)]=_0x4f7c52(0x16b),_0x2d36ac[_0x4f7c52(0x1bc)]=_0x4f7c52(0x1d7),_0x2d36ac[_0x4f7c52(0x2ad)]='Skip\x20insecure\x20cert\x20verification.',_0x2d36ac[_0x4f7c52(0x169)]='boolean',_0x2d36ac[_0x4f7c52(0x146)]=_0x4f7c52(0x1cc),_0x2d36ac[_0x4f7c52(0x2bb)]=_0x4f7c52(0x2dd),_0x2d36ac[_0x4f7c52(0x217)]=_0x4f7c52(0x26e);const _0xd5b74b=_0x2d36ac,_0x561dd7={};_0x561dd7[_0x4f7c52(0x173)]=_0xd5b74b['RtCiF'],_0x561dd7[_0x4f7c52(0x281)]=_0xd5b74b[_0x4f7c52(0x2c3)];const _0xfae18d={};_0xfae18d[_0x4f7c52(0x173)]=_0xd5b74b[_0x4f7c52(0x28a)],_0xfae18d[_0x4f7c52(0x281)]=_0xd5b74b[_0x4f7c52(0x2c3)];const _0x2f2c9d={};_0x2f2c9d[_0x4f7c52(0x173)]=_0xd5b74b[_0x4f7c52(0x149)],_0x2f2c9d[_0x4f7c52(0x281)]=_0xd5b74b[_0x4f7c52(0x2c3)];const _0x280f47={};_0x280f47['description']=_0xd5b74b[_0x4f7c52(0x2d9)],_0x280f47[_0x4f7c52(0x281)]=_0xd5b74b[_0x4f7c52(0x2c3)];const _0x5a405f={};_0x5a405f[_0x4f7c52(0x173)]=_0xd5b74b['XJocD'],_0x5a405f[_0x4f7c52(0x281)]=_0xd5b74b['vahcw'];const _0x5f278a={};_0x5f278a[_0x4f7c52(0x173)]=_0xd5b74b[_0x4f7c52(0x1bc)],_0x5f278a[_0x4f7c52(0x281)]=_0xd5b74b[_0x4f7c52(0x2c3)];const _0x1c2f03={};_0x1c2f03['description']=_0xd5b74b[_0x4f7c52(0x2ad)],_0x1c2f03[_0x4f7c52(0x281)]=_0xd5b74b[_0x4f7c52(0x169)],_0x1c2f03['default']=![];const _0x201e1a={};_0x201e1a['description']=_0xd5b74b[_0x4f7c52(0x146)],_0x201e1a[_0x4f7c52(0x281)]=_0xd5b74b[_0x4f7c52(0x169)],_0x201e1a[_0x4f7c52(0x269)]=![];const _0x24b095={};_0x24b095[_0x4f7c52(0x173)]=_0xd5b74b[_0x4f7c52(0x2bb)],_0x24b095[_0x4f7c52(0x281)]=_0xd5b74b['ivjSF'],_0x24b095[_0x4f7c52(0x269)]=![];const _0xc6b72f={};return _0xc6b72f[_0x4f7c52(0x16a)]=_0x561dd7,_0xc6b72f[_0x4f7c52(0x1cb)]=_0xfae18d,_0xc6b72f[_0x4f7c52(0x2b8)]=_0x2f2c9d,_0xc6b72f[_0x4f7c52(0x216)]=_0x280f47,_0xc6b72f['region']=_0x5a405f,_0xc6b72f['private-grid']=_0x5f278a,_0xc6b72f[_0x4f7c52(0x1d3)]=_0x1c2f03,_0xc6b72f['hub-ha']=_0x201e1a,_0xc6b72f[_0x4f7c52(0x2f8)]=_0x24b095,_0x214820['usage'](HELP_HEADER_MESSAGE[_0x4f7c52(0x243)])[_0x4f7c52(0x155)](HELP_FOOTER_MESSAGE)['options'](_0xc6b72f)['help'](_0xd5b74b[_0x4f7c52(0x217)])[_0x4f7c52(0x224)];},exports[a9_0x178f2c(0x2bc)]=async function(_0xfb4ce6){const _0x28bffd=a9_0x178f2c,_0x488638={'DXYYY':_0x28bffd(0x14b),'XCklF':_0x28bffd(0x189),'HVjWj':_0x28bffd(0x1a0),'FLzfR':_0x28bffd(0x2de),'ANhPt':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','JGFLF':_0x28bffd(0x16b),'RgEPI':_0x28bffd(0x1d7),'hwrQc':_0x28bffd(0x232),'pjfor':'boolean','RPmTU':_0x28bffd(0x1cc),'AcFJa':_0x28bffd(0x2dd),'yILUL':_0x28bffd(0x26e),'MowYF':_0x28bffd(0x20d),'UMfAw':_0x28bffd(0x2d4),'qkXuU':function(_0x354317,_0x34c389){return _0x354317(_0x34c389);},'MZnQY':_0x28bffd(0x2e5),'yyacE':function(_0x339e5f,_0x51ff64,_0x1d7b67,_0x5e7537,_0x671968,_0x39b0dc,_0x350b8e,_0x4e9a59,_0x4105c5,_0x1293f4,_0x5f4b9f,_0x578095,_0x1b558d){return _0x339e5f(_0x51ff64,_0x1d7b67,_0x5e7537,_0x671968,_0x39b0dc,_0x350b8e,_0x4e9a59,_0x4105c5,_0x1293f4,_0x5f4b9f,_0x578095,_0x1b558d);},'RvNBb':function(_0x337377,_0x1b7858){return _0x337377!==_0x1b7858;},'seQWS':'warn','EdOwW':function(_0x3e7604,_0xb98720){return _0x3e7604===_0xb98720;},'RJyvS':_0x28bffd(0x265),'yodtC':function(_0x1a9144,_0x4baec9){return _0x1a9144(_0x4baec9);},'tWuWg':'true','rjGPB':_0x28bffd(0x269),'bFIyt':'https','dxTSP':'3|4|1|2|0','yXpQd':_0x28bffd(0x299),'xZZhm':_0x28bffd(0x2af),'VWdlS':_0x28bffd(0x1b0),'efSXC':_0x28bffd(0x162),'DkXCd':_0x28bffd(0x262),'xKYHp':_0x28bffd(0x28d),'NMdjd':_0x28bffd(0x24a),'EKqrq':_0x28bffd(0x192),'oaJUO':function(_0x28f1f9){return _0x28f1f9();},'riHlF':'lRBYi','aCOsx':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','XLTts':function(_0x5df45b,_0x3c207e,_0x77ca7f,_0x1eaad8,_0x822f28,_0x1993b6,_0x25f761){return _0x5df45b(_0x3c207e,_0x77ca7f,_0x1eaad8,_0x822f28,_0x1993b6,_0x25f761);},'FpgZF':_0x28bffd(0x28e),'hPTvn':_0x28bffd(0x261),'bFjQY':function(_0x20d88f,_0x1ea0e5,_0x11ff59,_0x390a83,_0x5120cd,_0x5e69e8,_0x13b9a4){return _0x20d88f(_0x1ea0e5,_0x11ff59,_0x390a83,_0x5120cd,_0x5e69e8,_0x13b9a4);},'BhwEY':function(_0x323fe8){return _0x323fe8();},'oKoex':_0x28bffd(0x200),'YVHnM':'<PasswordPlaceholder>','HDPyx':'Adding\x20Websocket\x20listeners','HVGNW':function(_0x525e1c,_0x1ffd7d){return _0x525e1c===_0x1ffd7d;},'ZXoie':'fgarR','ZjJPB':_0x28bffd(0x28c),'mHayO':_0x28bffd(0x2cb),'LXRSg':function(_0x33e7fc,_0xe4121e,_0x59e1f4,_0x2c699e,_0x18233a,_0x5171df,_0x2e6d84,_0x31f59f){return _0x33e7fc(_0xe4121e,_0x59e1f4,_0x2c699e,_0x18233a,_0x5171df,_0x2e6d84,_0x31f59f);},'MLqZC':_0x28bffd(0x1b6),'KMgwE':function(_0x122ac8,_0x577db6){return _0x122ac8===_0x577db6;},'WRner':_0x28bffd(0x22c),'DpIWl':_0x28bffd(0x2c1),'TaSqY':_0x28bffd(0x1c3),'gNcpR':_0x28bffd(0x1f1),'bJBpq':'EObBx','BJIPK':'NBOta','qcbnF':_0x28bffd(0x1d2),'ilpid':_0x28bffd(0x258),'kgYQg':function(_0x2fad46,_0x3aa29a){return _0x2fad46===_0x3aa29a;},'cfWKQ':'koRjY','Avvit':_0x28bffd(0x1b5),'jiWcT':function(_0x394755,_0x44a986,_0x3438bf){return _0x394755(_0x44a986,_0x3438bf);},'Oawsz':function(_0x2ace01,_0x54714d){return _0x2ace01===_0x54714d;},'JSABH':_0x28bffd(0x1f3),'xSMUl':'lAWXj','LmAzg':function(_0x28ea20,_0x4a9e2a){return _0x28ea20===_0x4a9e2a;},'uzmPA':_0x28bffd(0x1c5),'dXWbe':_0x28bffd(0x17f),'BmfkN':_0x28bffd(0x2a7),'nQMVk':function(_0x4ba2f6,_0x14b795,_0x348814,_0x2d1acb,_0x281d53,_0x55dda5,_0x145ff5,_0x219c6c){return _0x4ba2f6(_0x14b795,_0x348814,_0x2d1acb,_0x281d53,_0x55dda5,_0x145ff5,_0x219c6c);},'dmCvl':_0x28bffd(0x1d1),'wicaQ':function(_0x2e4489,_0x3bc4aa){return _0x2e4489===_0x3bc4aa;},'wOSOW':_0x28bffd(0x17a),'uegbv':_0x28bffd(0x194),'VJXTO':function(_0x27802c,_0x4c63d8,_0x511f98,_0x6cdbf3,_0x35ff38,_0x5407f7,_0x5d6a13,_0x1db57a){return _0x27802c(_0x4c63d8,_0x511f98,_0x6cdbf3,_0x35ff38,_0x5407f7,_0x5d6a13,_0x1db57a);},'RBxku':_0x28bffd(0x176),'PKdCh':_0x28bffd(0x1cd),'gFvPG':_0x28bffd(0x22f),'tKzOm':'create-grid-checks-non-200','YhLSm':_0x28bffd(0x2cd),'uSoaO':'FyzMV','qsrmY':_0x28bffd(0x285),'SGoIm':'create-grid-checks-grid-already-exists','rjNiF':function(_0x31a1dc,_0x8b1af4){return _0x31a1dc===_0x8b1af4;},'UaVPJ':_0x28bffd(0x1a2),'cABKS':_0x28bffd(0x276),'qWaqu':function(_0x9319db,_0x186d3b){return _0x9319db===_0x186d3b;},'REmoj':'pHbmW','ROvda':_0x28bffd(0x185),'htKgC':function(_0x23b153,_0x1f85a9){return _0x23b153===_0x1f85a9;},'wMOpW':function(_0x49e578,_0xbaac71){return _0x49e578!==_0xbaac71;},'FlnJL':_0x28bffd(0x1c1),'vKOFG':'tTjei','Gnbbt':function(_0x363728,_0x4f20d0){return _0x363728===_0x4f20d0;},'Kzxpr':_0x28bffd(0x1f6),'rdAJE':_0x28bffd(0x151),'RPkua':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','pnPeB':function(_0x59f5db,_0x1f8c04,_0x4ca2ab,_0x7ec335,_0x5f4e0f,_0x2719b4,_0x57a31c,_0x3658c5){return _0x59f5db(_0x1f8c04,_0x4ca2ab,_0x7ec335,_0x5f4e0f,_0x2719b4,_0x57a31c,_0x3658c5);},'LzyAH':'create-grid-checks-invalid-profile','sILBi':function(_0x155fb5,_0x3748bf){return _0x155fb5===_0x3748bf;},'JHDNi':'XCQCa','HASPN':'tfpkY','QcBmM':function(_0x2e77e0,_0x43cb24){return _0x2e77e0!==_0x43cb24;},'NOjwk':_0x28bffd(0x2f6),'eOAas':function(_0x3cb6a0,_0x23e51a){return _0x3cb6a0!==_0x23e51a;},'mBtFP':_0x28bffd(0x17e),'yfWNt':function(_0x1afc07,_0x13febc,_0x51f2b7,_0x576a6b,_0xae9006,_0x3952fd,_0x3d1ea1,_0x4a73f4,_0x4f952d,_0x2cb87a,_0x55a0b3,_0x11cca9,_0x2be32c){return _0x1afc07(_0x13febc,_0x51f2b7,_0x576a6b,_0xae9006,_0x3952fd,_0x3d1ea1,_0x4a73f4,_0x4f952d,_0x2cb87a,_0x55a0b3,_0x11cca9,_0x2be32c);},'MULss':function(_0x4c68b7,_0x3eb9b0){return _0x4c68b7===_0x3eb9b0;},'qxSeB':_0x28bffd(0x2e4),'ZoZqD':_0x28bffd(0x15f),'NAuWI':function(_0xe56d7,_0x36e329){return _0xe56d7(_0x36e329);},'SasJL':'wNvqB','kGJCy':_0x28bffd(0x14e),'PmyzW':function(_0x33a4ce,_0x2cbaf8){return _0x33a4ce!==_0x2cbaf8;},'FzTRR':_0x28bffd(0x2a1),'jPqMR':function(_0x145bbd,_0x1b8cdd,_0x38d734,_0x2964ef,_0x5201c4,_0x3a6e4d,_0x452342,_0x37eefc,_0x17222b,_0x46f52c,_0xd8ef1c,_0x485979,_0xe445a8){return _0x145bbd(_0x1b8cdd,_0x38d734,_0x2964ef,_0x5201c4,_0x3a6e4d,_0x452342,_0x37eefc,_0x17222b,_0x46f52c,_0xd8ef1c,_0x485979,_0xe445a8);},'zsEAP':function(_0x133df7,_0x25881e){return _0x133df7!==_0x25881e;},'aeClU':_0x28bffd(0x2dc),'Indgf':_0x28bffd(0x1fc),'CtMBl':_0x28bffd(0x26c),'LnlBB':'kxFRB','sPIGV':_0x28bffd(0x245),'soXxT':_0x28bffd(0x2b7),'OYlmg':function(_0xb74320,_0xb8e2c4){return _0xb74320===_0xb8e2c4;},'rnPdd':_0x28bffd(0x279),'oYSyB':'mpEVN','DRKaE':function(_0x309833,_0x3f5762){return _0x309833===_0x3f5762;},'psdMO':function(_0xaeb089,_0x32be8f){return _0xaeb089!==_0x32be8f;},'iAvvL':_0x28bffd(0x2f5),'gmwqo':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','BTgdD':function(_0x1aa383,_0x5869a9){return _0x1aa383!=_0x5869a9;},'JBlRM':function(_0x253ff5,_0x1e8d76){return _0x253ff5!==_0x1e8d76;},'xACXy':function(_0x31dafe,_0x432fa7){return _0x31dafe>_0x432fa7;},'ESFUH':function(_0x1e686f,_0x193cc0){return _0x1e686f===_0x193cc0;},'ujUwT':_0x28bffd(0x150),'YwEuU':_0x28bffd(0x280),'rYuux':_0x28bffd(0x2d5),'Paqgb':'pre-spawned-invalid-vpc','KnhYA':function(_0x156ff9,_0x1fb944){return _0x156ff9===_0x1fb944;},'uDrTH':function(_0x53709d,_0x489a81,_0x44a6fe,_0xa7f91d,_0x244196,_0x5ce99b,_0x7fbeb,_0x346a67){return _0x53709d(_0x489a81,_0x44a6fe,_0xa7f91d,_0x244196,_0x5ce99b,_0x7fbeb,_0x346a67);},'yvSjS':_0x28bffd(0x1bd),'RBQxB':_0x28bffd(0x197),'Emwrj':_0x28bffd(0x255),'PKwHX':_0x28bffd(0x1f0),'LkOeq':function(_0x2397b6,_0x2b209b){return _0x2397b6===_0x2b209b;},'lBjuw':_0x28bffd(0x2da),'PaeiF':function(_0x37f0c4,_0x1e3b68,_0x3fc0ad){return _0x37f0c4(_0x1e3b68,_0x3fc0ad);},'FLIhu':function(_0x465780,_0x22e4d0,_0x226488){return _0x465780(_0x22e4d0,_0x226488);},'ZBPjx':'Adding\x20Secret\x20Mapping','FWkaJ':_0x28bffd(0x1b1),'QkOvr':'templates','ZzEDl':'hubharesources','facXu':_0x28bffd(0x292),'HpcAJ':'utf-8','KkDHs':function(_0x3fdca4,_0x1bf220){return _0x3fdca4(_0x1bf220);},'eAGaS':function(_0x4ad9ea,_0x924c99){return _0x4ad9ea(_0x924c99);},'aeHoQ':'Added\x20Secret\x20Mapping','dpuIE':_0x28bffd(0x2e8),'wBFqr':function(_0x296063,_0x5ec560){return _0x296063===_0x5ec560;},'YgUsk':function(_0x3aece3,_0x345ecc){return _0x3aece3===_0x345ecc;},'zceKD':_0x28bffd(0x283),'UnaWR':'bitnami-redis.yaml','kHHjL':_0x28bffd(0x18a),'WgCfs':'Adding\x20Kafka\x20deployment...','tMsWM':_0x28bffd(0x1b8),'euZqo':function(_0x3c877c,_0x3f43ca,_0xd5db7b){return _0x3c877c(_0x3f43ca,_0xd5db7b);},'TgrNN':_0x28bffd(0x227),'cCrwh':'Adding\x20Turboscale\x20Uploader\x20deployment...','FdCFH':_0x28bffd(0x163),'zJpuM':function(_0x203125,_0x262d54,_0x3c5a78){return _0x203125(_0x262d54,_0x3c5a78);},'eDVeC':'Added\x20Turboscale\x20Uploader\x20deployment.','Ccvxp':_0x28bffd(0x213),'IaPbL':_0x28bffd(0x209),'hrapG':_0x28bffd(0x2d3),'Mbwbn':function(_0x444e5d,_0x1b311e,_0x35eaad,_0x5855e0,_0x1f1422,_0x458ee9,_0x1e4894,_0xccd37b){return _0x444e5d(_0x1b311e,_0x35eaad,_0x5855e0,_0x1f1422,_0x458ee9,_0x1e4894,_0xccd37b);},'BghFB':'hub-ha-deployments-failed','IAunn':_0x28bffd(0x195),'tNCJD':function(_0x198f5e,_0x5b576d){return _0x198f5e!==_0x5b576d;},'oAhmJ':_0x28bffd(0x2ba),'uKLRK':_0x28bffd(0x2e3),'NqmKm':_0x28bffd(0x188),'uCxWb':_0x28bffd(0x2c2),'uMlkb':_0x28bffd(0x148),'Hfkgl':function(_0x1e6862,_0x2ae95b,_0x98966c,_0x1da0fb,_0x23eb6e,_0x33a1e7,_0x53fc08,_0x410c21,_0x51571c,_0xe7de31,_0x5aa4ee){return _0x1e6862(_0x2ae95b,_0x98966c,_0x1da0fb,_0x23eb6e,_0x33a1e7,_0x53fc08,_0x410c21,_0x51571c,_0xe7de31,_0x5aa4ee);},'RUtmv':'Grid\x20spawned\x20on\x20the\x20cluster','mKbov':_0x28bffd(0x1e2),'NHHwx':function(_0x59c186,_0xa1d4c9,_0x199013,_0x166c86,_0x58445b){return _0x59c186(_0xa1d4c9,_0x199013,_0x166c86,_0x58445b);},'PRUfs':function(_0x53772e,_0x131e8c,_0x40c522){return _0x53772e(_0x131e8c,_0x40c522);},'zIgFD':_0x28bffd(0x244),'cRqqs':_0x28bffd(0x256),'hLowT':'ingress-nginx','pLTDa':function(_0x4dbda4,_0x3b733a,_0x111c35){return _0x4dbda4(_0x3b733a,_0x111c35);},'Vpurb':_0x28bffd(0x254),'xUKBq':'get-grid-url-null-response','OBOtm':function(_0x404709,_0xf6babe){return _0x404709===_0xf6babe;},'BhwOE':_0x28bffd(0x2ed),'ygDjr':function(_0x1d4b92,_0x106f1d,_0x16a1a1,_0x19b34b,_0x8dbb26,_0x34c6df,_0xb00c5f,_0x9c6e0b){return _0x1d4b92(_0x106f1d,_0x16a1a1,_0x19b34b,_0x8dbb26,_0x34c6df,_0xb00c5f,_0x9c6e0b);},'OroWf':_0x28bffd(0x198),'Vvzld':function(_0x1b8334,_0x288584,_0x45478a,_0x22ff03,_0x3007c4,_0x246eda,_0x367833,_0x37b634){return _0x1b8334(_0x288584,_0x45478a,_0x22ff03,_0x3007c4,_0x246eda,_0x367833,_0x37b634);},'vNxSj':_0x28bffd(0x1e1),'VbhVK':function(_0x320bbd,_0x5bed47){return _0x320bbd===_0x5bed47;},'cDiiY':_0x28bffd(0x184),'cvjso':function(_0x320f3b,_0x40ffde,_0x2ca708,_0x5884b9,_0x2ca742,_0x1202b6){return _0x320f3b(_0x40ffde,_0x2ca708,_0x5884b9,_0x2ca742,_0x1202b6);},'GdSmu':function(_0x5bf9a5,_0x499336,_0x4c2e4a,_0x518fa7,_0x321112,_0x375cb4,_0x4af74a){return _0x5bf9a5(_0x499336,_0x4c2e4a,_0x518fa7,_0x321112,_0x375cb4,_0x4af74a);},'UDKVD':_0x28bffd(0x17d)};let _0x27c2be=![],_0x3f1d4b=![],_0x538e8a,_0x8499df,_0x9c281b,_0x42decc,_0x562385,_0x428bcb,_0x2b7ebe,_0x5f59e0,_0x2d84bf,_0x450931,_0xf17a13,_0x5ba338,_0x23d2cc,_0x5c3d73,_0xefc345=0x1,_0x42afc3=0xe;try{global_registry[_0x28bffd(0x2a5)]=_0x488638['oaJUO'](uuidv4),global_registry[_0x28bffd(0x1c9)]=![];!fs[_0x28bffd(0x1f2)](_0x488638[_0x28bffd(0x287)](getCredentialsPath))&&(_0x488638[_0x28bffd(0x1a4)](_0x488638[_0x28bffd(0x2ae)],_0x488638[_0x28bffd(0x2ae)])?_0x4ab94a[_0x28bffd(0x2b2)]():(console[_0x28bffd(0x192)](_0x488638[_0x28bffd(0x168)]),await _0x488638['XLTts'](sendInstrumentationEvent,_0xfb4ce6,_0x488638[_0x28bffd(0x1ea)],messageTypes['ERROR'],_0x488638[_0x28bffd(0x25f)],null,_0xfb4ce6),process[_0x28bffd(0x1a7)](0x1)));await _0x488638[_0x28bffd(0x23e)](sendInstrumentationEvent,_0xfb4ce6,_0x488638[_0x28bffd(0x1ea)],messageTypes[_0x28bffd(0x1f5)],null,null,_0xfb4ce6);const _0x11a41a=JSON[_0x28bffd(0x28b)](fs['readFileSync'](_0x488638['BhwEY'](getCredentialsPath)));global_registry[_0x28bffd(0x1ab)]=_0x11a41a[_0x28bffd(0x2ba)][_0x28bffd(0x275)],global_registry[_0x28bffd(0x2c9)]=_0x11a41a[_0x28bffd(0x2ba)][_0x28bffd(0x225)];const _0x375cdc=WS_ENDPOINT[_0x28bffd(0x157)](_0x488638[_0x28bffd(0x26b)],_0x11a41a['Browserstack'][_0x28bffd(0x275)])[_0x28bffd(0x157)](_0x488638['YVHnM'],_0x11a41a[_0x28bffd(0x2ba)][_0x28bffd(0x225)]),_0x1de35b={};_0x1de35b[_0x28bffd(0x14d)]=ws,_0x1de35b['connectionTimeout']=0x36ee80,_0x5ba338=new ReconnectingWebSocket(_0x375cdc,[],_0x1de35b),logger[_0x28bffd(0x22e)](_0x488638[_0x28bffd(0x1be)]),webSocketUtils['addListeners'](_0x5ba338,_0xfb4ce6[_0x28bffd(0x278)],_0xfb4ce6[_0x28bffd(0x225)]);const _0x3e4706=_0xfb4ce6[_0x28bffd(0x29c)]||DEFAULT_GRID_NAME;if(_0xfb4ce6[_0x28bffd(0x286)]||_0xfb4ce6['cloudProvider']||_0xfb4ce6[_0x28bffd(0x28f)]){if(_0x488638['HVGNW'](_0x488638[_0x28bffd(0x171)],_0x488638[_0x28bffd(0x171)])){if(!(_0xfb4ce6[_0x28bffd(0x286)]&&_0xfb4ce6[_0x28bffd(0x27d)]&&_0xfb4ce6['region'])){if(_0x488638[_0x28bffd(0x1a4)](_0x488638[_0x28bffd(0x205)],_0x488638[_0x28bffd(0x205)])){const _0x541b71={};_0x541b71['description']=_0x488638[_0x28bffd(0x183)],_0x541b71[_0x28bffd(0x281)]=_0x488638['XCklF'];const _0xdb1903={};_0xdb1903[_0x28bffd(0x173)]=_0x488638['HVjWj'],_0xdb1903[_0x28bffd(0x281)]=_0x488638['XCklF'];const _0x37a236={};_0x37a236[_0x28bffd(0x173)]=_0x488638[_0x28bffd(0x2ee)],_0x37a236['type']=_0x488638['XCklF'];const _0x4399d5={};_0x4399d5[_0x28bffd(0x173)]=_0x488638[_0x28bffd(0x20e)],_0x4399d5[_0x28bffd(0x281)]=_0x488638[_0x28bffd(0x25d)];const _0x4ea6c6={};_0x4ea6c6['description']=_0x488638[_0x28bffd(0x180)],_0x4ea6c6[_0x28bffd(0x281)]=_0x488638[_0x28bffd(0x25d)];const _0x4e0d10={};_0x4e0d10[_0x28bffd(0x173)]=_0x488638[_0x28bffd(0x22b)],_0x4e0d10[_0x28bffd(0x281)]=_0x488638[_0x28bffd(0x25d)];const _0x41eeef={};_0x41eeef[_0x28bffd(0x173)]=_0x488638[_0x28bffd(0x19e)],_0x41eeef[_0x28bffd(0x281)]=_0x488638[_0x28bffd(0x289)],_0x41eeef[_0x28bffd(0x269)]=![];const _0x1a4c75={};_0x1a4c75['description']=_0x488638[_0x28bffd(0x2b1)],_0x1a4c75[_0x28bffd(0x281)]=_0x488638['pjfor'],_0x1a4c75[_0x28bffd(0x269)]=![];const _0x497b5d={};_0x497b5d[_0x28bffd(0x173)]=_0x488638[_0x28bffd(0x249)],_0x497b5d[_0x28bffd(0x281)]=_0x488638[_0x28bffd(0x289)],_0x497b5d[_0x28bffd(0x269)]=![];const _0x27aba2={};return _0x27aba2['grid-name']=_0x541b71,_0x27aba2[_0x28bffd(0x1cb)]=_0xdb1903,_0x27aba2[_0x28bffd(0x2b8)]=_0x37a236,_0x27aba2['cloud-provider']=_0x4399d5,_0x27aba2[_0x28bffd(0x28f)]=_0x4ea6c6,_0x27aba2[_0x28bffd(0x1b4)]=_0x4e0d10,_0x27aba2[_0x28bffd(0x1d3)]=_0x41eeef,_0x27aba2[_0x28bffd(0x1dc)]=_0x1a4c75,_0x27aba2['cluster-autoupgrade']=_0x497b5d,_0x1bdd30[_0x28bffd(0x19c)](_0x3d12ac[_0x28bffd(0x243)])[_0x28bffd(0x155)](_0x236fee)[_0x28bffd(0x170)](_0x27aba2)[_0x28bffd(0x26e)](_0x488638[_0x28bffd(0x22d)])[_0x28bffd(0x224)];}else _0x538e8a=_0x488638[_0x28bffd(0x2a2)],await _0x488638['LXRSg'](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x25a)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process[_0x28bffd(0x1a7)](0x1);}![AWS,AZURE,GCP][_0x28bffd(0x2e2)](_0xfb4ce6[_0x28bffd(0x27d)][_0x28bffd(0x2c7)]())&&(_0x488638[_0x28bffd(0x259)](_0x488638[_0x28bffd(0x272)],_0x488638[_0x28bffd(0x229)])?_0x4f1376=_0x488638[_0x28bffd(0x24c)]:(_0x538e8a=_0x488638[_0x28bffd(0x1f4)],await _0x488638[_0x28bffd(0x164)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes['ERROR'],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x295)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process['exit'](0x1)));_0xfb4ce6['privateGrid']&&_0x488638[_0x28bffd(0x2a6)](_0xfb4ce6['privateGrid']['toLowerCase'](),_0x488638[_0x28bffd(0x16f)])&&(_0x488638[_0x28bffd(0x2a6)](_0x488638[_0x28bffd(0x223)],_0x488638[_0x28bffd(0x223)])?global_registry[_0x28bffd(0x1c9)]=!![]:_0x28a07b=_0x488638[_0x28bffd(0x226)]);global_registry[_0x28bffd(0x27d)]=_0xfb4ce6[_0x28bffd(0x27d)],global_registry['clusterRegion']=_0xfb4ce6[_0x28bffd(0x28f)],global_registry['clusterName']=_0xfb4ce6[_0x28bffd(0x286)];const _0x60718=await _0x488638[_0x28bffd(0x27e)](getCloudProviderObject,_0xfb4ce6[_0x28bffd(0x27d)],_0xfb4ce6[_0x28bffd(0x286)],_0x3e4706,_0x5ba338,webSocketUtils,_0xfb4ce6),_0x1f1325=await _0x60718[_0x28bffd(0x1ce)]();if(!_0x1f1325)_0x488638[_0x28bffd(0x1a4)](_0x488638['BJIPK'],_0x488638[_0x28bffd(0x2b3)])?(logger[_0x28bffd(0x14c)](_0x28bffd(0x1e5)+_0xfb4ce6[_0x28bffd(0x286)]+_0x28bffd(0x24b)),_0x27c2be=![],_0x3f1d4b=!![]):_0x488638['qkXuU'](_0x1866c0,_0x1036e7[_0x28bffd(0x29f)]);else{if(_0x488638['KMgwE'](_0x488638[_0x28bffd(0x257)],_0x488638[_0x28bffd(0x257)]))_0x27c2be=!![];else{const _0x204eac=_0x488638[_0x28bffd(0x293)]['split']('|');let _0x39a732=0x0;while(!![]){switch(_0x204eac[_0x39a732++]){case'0':_0x283ab4=null;continue;case'1':_0x4b095b=_0x473473[_0x28bffd(0x220)];continue;case'2':_0x4602b1=_0x2dc491['s3bucket'];continue;case'3':_0x38578f['enableHubHa']&&_0x488638[_0x28bffd(0x2aa)](_0x1be4b7,_0xd3796c[_0x28bffd(0x29f)]);continue;case'4':_0x488638[_0x28bffd(0x2fa)](_0x317a25,_0x21e78c,_0x1c7b4d,_0x279f49,_0x4e2d5e,_0x4fa311,_0x40c803,_0x41b965,_0x60958c,_0x561ee4,_0x4262ee,_0x50b50a,_0x596dd1[_0x28bffd(0x17b)]);continue;case'5':_0x44565f=_0x1f2aad['hubVersion'];continue;case'6':_0xdfb038=_0x28bffd(0x263)+_0x51918e;continue;case'7':_0x43597b=_0x46915f[_0x28bffd(0x143)];continue;case'8':_0x35324a=_0x29328c[_0x28bffd(0x187)];continue;case'9':_0x48dde7[_0x28bffd(0x14c)](_0x3e7ce3);continue;case'10':_0x488638[_0x28bffd(0x1a4)](_0x3a0264[_0x28bffd(0x199)],_0x2ac72b)&&_0xdbba7e[_0x28bffd(0x199)]&&(_0x417bd3['isPrivateGrid']=!![]);continue;case'11':_0x2bae66=null;continue;case'12':_0x4d1622=_0x4e6bf6[_0x28bffd(0x2a3)];continue;case'13':_0x20e4b2=_0x12967d[_0x28bffd(0x153)];continue;case'14':_0x4b5a9b=null;continue;case'15':const _0x513deb={};_0x513deb['type']=_0x92b83a[_0x28bffd(0x193)],_0x513deb[_0x28bffd(0x1ad)]=_0x44ac11,_0x2a778d[_0x28bffd(0x154)](_0x43c767,_0x513deb);continue;}break;}}}_0x9c281b=_0xfb4ce6[_0x28bffd(0x286)],_0x8499df=_0xfb4ce6['cloudProvider'][_0x28bffd(0x2c7)](),_0x42decc=_0xfb4ce6[_0x28bffd(0x28f)];}else{const _0x447834={};_0x447834[_0x28bffd(0x281)]=_0x2ddad5[_0x28bffd(0x193)],_0x447834[_0x28bffd(0x1ad)]=_0x28bffd(0x2b4)+_0x546b72+_0x28bffd(0x15b),_0x30c721[_0x28bffd(0x154)](_0xe7e5bc,_0x447834,_0x488638[_0x28bffd(0x2f7)]),_0x82cc33[_0x28bffd(0x14c)](_0x28bffd(0x2b4)+_0x48a7d8+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x45ab6c=!![];if(_0x488638['EdOwW'](_0x9cb8b1,!![]))throw new _0x2196e7(_0x28bffd(0x2b4)+_0x20adba+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0xfb4ce6[_0x28bffd(0x1e7)]&&(_0x488638['kgYQg'](_0x488638[_0x28bffd(0x1f9)],_0x488638[_0x28bffd(0x1f9)])?global_registry['gridProfile']=_0xfb4ce6[_0x28bffd(0x1e7)]:_0x2105fc[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x218)]));global_registry['gridName']=_0xfb4ce6['gridName'];const _0x2fe42d={'method':_0x488638[_0x28bffd(0x231)],'headers':_0x488638[_0x28bffd(0x211)](getAuthHeader,_0x11a41a['Browserstack'][_0x28bffd(0x275)],_0x11a41a[_0x28bffd(0x2ba)]['password']),'throwHttpErrors':![]},_0x122469={};_0x122469['gridName']=_0x3e4706;const _0x4d2256=_0x122469;_0x3f1d4b&&(_0x488638['Oawsz'](_0x488638[_0x28bffd(0x264)],_0x488638[_0x28bffd(0x264)])?(_0x4d2256['region']=_0x42decc,_0x4d2256[_0x28bffd(0x27d)]=_0x8499df,_0x4d2256[_0x28bffd(0x18f)]=!![],_0x4d2256[_0x28bffd(0x294)]=_0xfb4ce6[_0x28bffd(0x17b)]):_0x168661[_0x28bffd(0x1c9)]=!![]);_0xfb4ce6[_0x28bffd(0x17b)]&&(_0x488638[_0x28bffd(0x2a6)](_0x488638['xSMUl'],_0x488638[_0x28bffd(0x1bb)])?logger['info'](_0x488638[_0x28bffd(0x218)]):_0x2e21df=_0x358098[_0x28c7d2['gridProfile']]);const _0x2145d1=_0x28bffd(0x2ac)+AG_API_URL+_0x28bffd(0x15e),_0x51fc20={'searchParams':_0x4d2256,'throwHttpErrors':![],..._0x2fe42d},_0x39d9a9=_0x51fc20,_0x3dee71=await _0x488638['jiWcT'](got,_0x2145d1,_0x39d9a9);(_0x488638[_0x28bffd(0x1ed)](_0x3dee71,null)||_0x488638[_0x28bffd(0x215)](_0x3dee71,undefined))&&(_0x488638['RvNBb'](_0x488638['uzmPA'],_0x488638[_0x28bffd(0x165)])?(_0x538e8a=_0x488638[_0x28bffd(0x2ec)],await _0x488638[_0x28bffd(0x2c0)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x26a)],_0x488638['EKqrq']),logger['error'](_0x538e8a),process[_0x28bffd(0x1a7)](0x1)):_0x2a1e2e[_0x28bffd(0x1c9)]=!![]);_0x488638[_0x28bffd(0x2ce)](_0x3dee71[_0x28bffd(0x18e)],0x191)&&(_0x488638[_0x28bffd(0x1a4)](_0x488638[_0x28bffd(0x142)],_0x488638[_0x28bffd(0x142)])?_0x488638['yodtC'](_0x44af42,_0x5aeba2[_0x28bffd(0x1ee)]):(_0x538e8a=_0x488638[_0x28bffd(0x268)],await _0x488638[_0x28bffd(0x1e4)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x141)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process[_0x28bffd(0x1a7)](0x1)));if(_0x488638['RvNBb'](_0x3dee71['statusCode'],0xc8)){if(_0x488638[_0x28bffd(0x1a4)](_0x488638['PKdCh'],_0x488638[_0x28bffd(0x201)]))_0x538e8a=_0x28bffd(0x29d)+JSON[_0x28bffd(0x24e)](_0x3dee71[_0x28bffd(0x2c8)]),await _0x488638[_0x28bffd(0x1e4)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638['FpgZF'],_0x488638[_0x28bffd(0x15c)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process[_0x28bffd(0x1a7)](0x1);else{const _0x1f7415={'azure.workload.identity/use':_0x488638[_0x28bffd(0x16f)],..._0x5bf631[0x0][_0x28bffd(0x172)][_0x28bffd(0x29a)][_0x28bffd(0x23a)][_0x28bffd(0x21e)]};_0x3d0613[0x0][_0x28bffd(0x172)][_0x28bffd(0x29a)][_0x28bffd(0x23a)][_0x28bffd(0x21e)]=_0x1f7415,_0x373de1[0x0][_0x28bffd(0x172)][_0x28bffd(0x29a)]['spec'][_0x28bffd(0x1c8)]=_0x488638[_0x28bffd(0x2c4)];}}const _0x4f4865=JSON['parse'](_0x3dee71[_0x28bffd(0x2c8)]),_0x4495d6={};_0x4495d6[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x27a)],_0x4495d6[_0x28bffd(0x1ad)]=_0x488638[_0x28bffd(0x277)],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x4495d6);const _0xb6976e={};_0xb6976e[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0xb6976e['message']=_0x488638['YhLSm'],webSocketUtils['sendEventToBackend'](_0x5ba338,_0xb6976e);_0x4f4865[_0x28bffd(0x191)]&&(_0x488638['RvNBb'](_0x488638['uSoaO'],_0x488638[_0x28bffd(0x248)])?(_0x538e8a='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x3e4706+_0x28bffd(0x2cf),await _0x488638[_0x28bffd(0x164)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638['SGoIm'],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process['exit'](0x1)):_0x21c8ae['error'](_0x28bffd(0x21a)+_0x25c786+'\x20\x0a'+_0x2580e6['stringify'](_0xa8dd17[_0x28bffd(0x21f)])));const _0x4e59d2=_0x4f4865[_0x28bffd(0x1d0)];let _0x5c6edb=_0x4e59d2[_0x4f4865[_0x28bffd(0x241)]];_0xfb4ce6['gridProfile']&&(_0x488638[_0x28bffd(0x1fa)](_0x488638['UaVPJ'],_0x488638[_0x28bffd(0x144)])?_0x28a4ef[_0x28bffd(0x14c)](_0x28bffd(0x1b2)+_0x2269ef[_0x28bffd(0x24e)](_0x304256)+'\x20'):_0x5c6edb=_0x4e59d2[_0xfb4ce6[_0x28bffd(0x1e7)]]);global_registry[_0x28bffd(0x251)]=![];if(_0xfb4ce6[_0x28bffd(0x20c)]){if(_0x488638['qWaqu'](_0x488638[_0x28bffd(0x156)],_0x488638[_0x28bffd(0x156)])){const _0x5f35fc=_0x488638['ROvda']['split']('|');let _0x1feda6=0x0;while(!![]){switch(_0x5f35fc[_0x1feda6++]){case'0':global_registry[_0x28bffd(0x161)]=_0x488638[_0x28bffd(0x282)];continue;case'1':logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x1c2)]);continue;case'2':global_registry['kafkaPassword']=_0x488638[_0x28bffd(0x221)];continue;case'3':global_registry[_0x28bffd(0x251)]=!![];continue;case'4':global_registry['hubHaNameSpace']=_0x488638[_0x28bffd(0x167)];continue;}break;}}else _0x4bda74=null;}if(_0x488638[_0x28bffd(0x267)](_0x27c2be,![])&&_0x488638[_0x28bffd(0x158)](_0x3f1d4b,![])){if(_0x488638[_0x28bffd(0x298)](_0x488638[_0x28bffd(0x21b)],_0x488638[_0x28bffd(0x1a8)])){_0x488638[_0x28bffd(0x2d8)](_0x5c6edb,undefined)&&(_0x488638[_0x28bffd(0x298)](_0x488638[_0x28bffd(0x2ab)],_0x488638['rdAJE'])?(_0x538e8a=_0x488638[_0x28bffd(0x2ea)],await _0x488638['pnPeB'](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x2ca)],_0x488638['EKqrq']),logger[_0x28bffd(0x192)](_0x538e8a),process['exit'](0x1)):(_0x10b0c7=_0x487291[_0x28bffd(0x27b)],_0x90ea31=_0x488638[_0x28bffd(0x247)]));global_registry[_0x28bffd(0x18c)]=_0x5c6edb['id'],_0x538e8a=_0x28bffd(0x1f7)+_0x3e4706+_0x28bffd(0x270)+_0x5c6edb[_0x28bffd(0x177)]+_0x28bffd(0x266),logger[_0x28bffd(0x14c)](_0x538e8a);const _0x5b7f29={};_0x5b7f29[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x5b7f29['message']=_0x538e8a,webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x5b7f29),_0x8499df=_0x5c6edb[_0x28bffd(0x27d)],_0x9c281b=_0x5c6edb[_0x28bffd(0x286)],_0x42decc=_0x5c6edb[_0x28bffd(0x28f)],_0x562385=_0x5c6edb['concurrency'],_0x428bcb=_0x5c6edb[_0x28bffd(0x187)],_0x2b7ebe=_0x5c6edb[_0x28bffd(0x271)],_0x5f59e0=_0x5c6edb[_0x28bffd(0x1d8)],_0x2d84bf=_0x5c6edb['subnets'],_0x450931=_0x5c6edb['s3bucket'],_0xefc345=_0x5c6edb['minNodes'],_0x42afc3=_0x5c6edb[_0x28bffd(0x220)],_0x23d2cc=_0x4f4865['hubVersion'],_0x5c3d73=_0x4f4865['browserVersion'];if(_0x2b7ebe&&_0x488638[_0x28bffd(0x1ed)](_0x2b7ebe[_0x28bffd(0x22a)],0x0)){if(_0x488638['sILBi'](_0x488638[_0x28bffd(0x20f)],_0x488638[_0x28bffd(0x152)])){const _0x391fe9=_0x488638['dxTSP'][_0x28bffd(0x1e9)]('|');let _0x361e97=0x0;while(!![]){switch(_0x391fe9[_0x361e97++]){case'0':_0x13479f[_0x28bffd(0x251)]=!![];continue;case'1':_0x4510ef[_0x28bffd(0x161)]=_0x488638[_0x28bffd(0x282)];continue;case'2':_0x212fd5[_0x28bffd(0x203)]=_0x488638[_0x28bffd(0x221)];continue;case'3':_0x44f056[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x1c2)]);continue;case'4':_0x2ed51d[_0x28bffd(0x181)]=_0x488638[_0x28bffd(0x167)];continue;}break;}}else _0x2b7ebe=null;}_0x2d84bf&&_0x488638['HVGNW'](_0x2d84bf[_0x28bffd(0x22a)],0x0)&&(_0x488638[_0x28bffd(0x2b9)](_0x488638[_0x28bffd(0x16d)],_0x488638['NOjwk'])?_0x282cd2[_0x28bffd(0x1e7)]=_0x201e68[_0x28bffd(0x1e7)]:_0x2d84bf=null);if(_0x488638[_0x28bffd(0x23c)](_0x5c6edb[_0x28bffd(0x199)],undefined)&&_0x5c6edb[_0x28bffd(0x199)]){if(_0x488638[_0x28bffd(0x2b9)](_0x488638[_0x28bffd(0x1e3)],_0x488638[_0x28bffd(0x1e3)]))throw new _0x1946f6(_0x28bffd(0x2b4)+_0x1408b1+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else global_registry[_0x28bffd(0x1c9)]=!![];}_0x488638['yfWNt'](updateGlobalRegistryWithConfig,_0x8499df,_0x9c281b,_0x42decc,_0x562385,_0x428bcb,_0x450931,_0x5c6edb,_0x23d2cc,_0x5c3d73,_0xefc345,_0x42afc3,_0xfb4ce6[_0x28bffd(0x17b)]),global_registry[_0x28bffd(0x251)]&&(_0x488638[_0x28bffd(0x1a6)](_0x488638[_0x28bffd(0x196)],_0x488638[_0x28bffd(0x274)])?_0x3e6a12[_0x28bffd(0x14c)](_0x28bffd(0x25c)+_0x392b28+'\x20'):_0x488638[_0x28bffd(0x212)](updateGlobalRegistryForHubHa,_0x4f4865[_0x28bffd(0x1ee)]));}else _0x1c0c5d=_0x488638[_0x28bffd(0x2f4)];}else{if(_0x488638[_0x28bffd(0x2a6)](_0x3f1d4b,!![])){if(_0x488638[_0x28bffd(0x158)](_0x488638[_0x28bffd(0x240)],_0x488638[_0x28bffd(0x27f)]))_0x17c34c[_0x28bffd(0x1c9)]=!![];else{_0x538e8a=_0x28bffd(0x263)+_0x3e4706,logger[_0x28bffd(0x14c)](_0x538e8a);const _0x110a6d={};_0x110a6d[_0x28bffd(0x281)]=WS_EVENTS['LOG'],_0x110a6d[_0x28bffd(0x1ad)]=_0x538e8a,webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x110a6d),_0x562385=_0x5c6edb[_0x28bffd(0x143)],_0x428bcb=_0x5c6edb[_0x28bffd(0x187)],_0x2b7ebe=null,_0x5f59e0=null,_0x2d84bf=null,_0x450931=_0x5c6edb[_0x28bffd(0x1fb)],_0xefc345=_0x5c6edb[_0x28bffd(0x2a3)],_0x42afc3=_0x5c6edb[_0x28bffd(0x220)],_0x23d2cc=_0x4f4865[_0x28bffd(0x1d9)],_0x5c3d73=_0x4f4865['browserVersion'];_0x488638[_0x28bffd(0x2d0)](_0x5c6edb[_0x28bffd(0x199)],undefined)&&_0x5c6edb[_0x28bffd(0x199)]&&(_0x488638[_0x28bffd(0x23c)](_0x488638['FzTRR'],_0x488638[_0x28bffd(0x16e)])?_0xc738dc=null:global_registry[_0x28bffd(0x1c9)]=!![]);_0x488638[_0x28bffd(0x17c)](updateGlobalRegistryWithConfig,_0x8499df,_0x9c281b,_0x42decc,_0x562385,_0x428bcb,_0x450931,_0x5c6edb,_0x23d2cc,_0x5c3d73,_0xefc345,_0x42afc3,_0xfb4ce6[_0x28bffd(0x17b)]);if(global_registry[_0x28bffd(0x251)]){if(_0x488638['zsEAP'](_0x488638[_0x28bffd(0x1b9)],_0x488638[_0x28bffd(0x233)]))_0x488638['qkXuU'](updateGlobalRegistryForHubHa,_0x4f4865[_0x28bffd(0x29f)]);else{const _0x9c78a3=_0x488638[_0x28bffd(0x19f)][_0x28bffd(0x1e9)]('|');let _0x448fc6=0x0;while(!![]){switch(_0x9c78a3[_0x448fc6++]){case'0':_0x91163f[_0x28bffd(0x14c)](_0x658f9f);continue;case'1':_0x29713f['cloudProvider']=_0x263176;continue;case'2':_0x51bb68['browserVersion']=_0x153915[_0x28bffd(0x153)];continue;case'3':_0xb5e2b5=_0x28bffd(0x1f8)+_0x5a0ded+_0x28bffd(0x237)+_0x31a8ef+'\x27';continue;case'4':_0x35f491[_0x28bffd(0x273)]=_0x774ab6;continue;case'5':const _0x25d98d={};_0x25d98d[_0x28bffd(0x281)]=_0x210573[_0x28bffd(0x27a)],_0x25d98d[_0x28bffd(0x1ad)]=_0x488638[_0x28bffd(0x277)],_0x56968d['sendEventToBackend'](_0x1e7a93,_0x25d98d);continue;case'6':_0x2a9468['hubVersion']=_0x2b583b[_0x28bffd(0x1d9)];continue;case'7':const _0x4ba444={};_0x4ba444[_0x28bffd(0x281)]=_0xfbc6d5[_0x28bffd(0x193)],_0x4ba444['message']=_0x17b29d,_0x50db6f[_0x28bffd(0x154)](_0x4fc28d,_0x4ba444);continue;case'8':_0x31abef['clusterName']=_0x1d98bf;continue;}break;}}}}}else{if(_0x488638[_0x28bffd(0x23c)](_0x488638[_0x28bffd(0x1c6)],_0x488638['LnlBB'])){const _0xa28831=_0x488638[_0x28bffd(0x1da)][_0x28bffd(0x1e9)]('|');let _0x176838=0x0;while(!![]){switch(_0xa28831[_0x176838++]){case'0':global_registry[_0x28bffd(0x153)]=_0x4f4865['browserVersion'];continue;case'1':global_registry['hubVersion']=_0x4f4865[_0x28bffd(0x1d9)];continue;case'2':global_registry[_0x28bffd(0x286)]=_0x9c281b;continue;case'3':const _0x51173f={};_0x51173f['type']=WS_EVENTS[_0x28bffd(0x27a)],_0x51173f[_0x28bffd(0x1ad)]=_0x488638[_0x28bffd(0x277)],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x51173f);continue;case'4':_0x538e8a='Spawning\x20the\x20grid\x20'+_0x3e4706+_0x28bffd(0x237)+_0x9c281b+'\x27';continue;case'5':const _0x22fcbf={};_0x22fcbf[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x22fcbf['message']=_0x538e8a,webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x22fcbf);continue;case'6':logger['info'](_0x538e8a);continue;case'7':global_registry['cloudProvider']=_0x8499df;continue;case'8':global_registry[_0x28bffd(0x273)]=_0x42decc;continue;}break;}}else _0x64fe2[_0x28bffd(0x28f)]=_0x18b198,_0x4d5761[_0x28bffd(0x27d)]=_0x2d3156,_0xadb8d6[_0x28bffd(0x18f)]=!![],_0x41c142[_0x28bffd(0x294)]=_0x313506['clusterAutoupgrade'];}}const _0x1b8ca5=await _0x488638[_0x28bffd(0x23e)](getCloudProviderObject,_0x8499df,_0x9c281b,_0x3e4706,_0x5ba338,webSocketUtils,_0xfb4ce6);_0x488638[_0x28bffd(0x2d0)](_0x8499df,AZURE)&&(_0x488638[_0x28bffd(0x2ce)](_0x488638['soXxT'],_0x488638[_0x28bffd(0x288)])?_0x1b8ca5['sendResourceDataToHST']():_0x46f146=!![]);let _0x552eb6;if(_0x488638['OYlmg'](_0x27c2be,![])){_0x538e8a=_0x28bffd(0x24d)+_0x42decc+').';const _0x33a6d3={};_0x33a6d3['type']=WS_EVENTS[_0x28bffd(0x193)],_0x33a6d3['message']=_0x538e8a,webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x33a6d3),logger[_0x28bffd(0x14c)](_0x538e8a);const _0x101948=await _0x1b8ca5[_0x28bffd(0x1ce)]();if(_0x101948){if(_0x488638[_0x28bffd(0x23c)](_0x488638[_0x28bffd(0x166)],_0x488638[_0x28bffd(0x20b)])){const _0x3b4274={};_0x3b4274[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x3b4274['message']=_0x28bffd(0x2b4)+_0x9c281b+_0x28bffd(0x15b),webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x3b4274,_0x488638[_0x28bffd(0x2f7)]),logger[_0x28bffd(0x14c)](_0x28bffd(0x2b4)+_0x9c281b+_0x28bffd(0x15b)),_0x27c2be=!![];if(_0x488638['DRKaE'](_0x3f1d4b,!![])){if(_0x488638['psdMO'](_0x488638[_0x28bffd(0x2f3)],_0x488638[_0x28bffd(0x2f3)]))_0x1b0981[_0x28bffd(0x14c)](_0x28bffd(0x1e5)+_0x158eed[_0x28bffd(0x286)]+_0x28bffd(0x24b)),_0x4a4055=![],_0x52aea8=!![];else throw new Error('Cluster\x20'+_0x9c281b+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else{const _0x48b9b3={};_0x48b9b3['type']=_0x51cc70['LOG'],_0x48b9b3[_0x28bffd(0x1ad)]=_0x2f53ba,_0x523511[_0x28bffd(0x154)](_0x52616c,_0x48b9b3,_0x488638[_0x28bffd(0x1e6)],!![]);}}else{const _0x4972fd={};_0x4972fd[_0x28bffd(0x281)]=WS_EVENTS['LOG'],_0x4972fd['message']=_0x488638[_0x28bffd(0x2a0)],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x4972fd),logger[_0x28bffd(0x14c)](_0x488638['gmwqo']);const _0x20bc23=_0x488638['BTgdD'](_0x2b7ebe,null)&&_0x488638[_0x28bffd(0x1a4)](_0x2b7ebe,undefined),_0x29a799=_0x488638[_0x28bffd(0x23b)](_0x2d84bf,null)&&_0x488638[_0x28bffd(0x2a9)](_0x2d84bf,undefined)&&_0x488638[_0x28bffd(0x2b5)](_0x2d84bf[_0x28bffd(0x22a)],0x0);if(_0x20bc23){_0x488638[_0x28bffd(0x2f2)](_0x29a799,![])&&(_0x538e8a=_0x488638[_0x28bffd(0x21c)],await _0x488638['VJXTO'](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x15d)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process['exit'](0x1));const _0x17f976=await _0x1b8ca5['isVPCPresent'](_0x2b7ebe);_0x488638[_0x28bffd(0x158)](_0x17f976,![])?(_0x538e8a=_0x488638[_0x28bffd(0x147)],await _0x488638['nQMVk'](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638['FpgZF'],_0x488638[_0x28bffd(0x235)],_0x488638['EKqrq']),logger['error'](_0x538e8a),process[_0x28bffd(0x1a7)](0x1)):logger[_0x28bffd(0x14c)](_0x28bffd(0x25c)+_0x2b7ebe+'\x20');const _0x3c91e5=await _0x1b8ca5['isSubnetsValid'](_0x2d84bf,_0x2b7ebe);_0x488638['KnhYA'](_0x3c91e5[0x0],![])?(_0x538e8a=_0x28bffd(0x1ef)+JSON[_0x28bffd(0x24e)](_0x3c91e5[0x1])+_0x28bffd(0x204)+_0x2b7ebe+_0x28bffd(0x179),await _0x488638[_0x28bffd(0x230)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638['FpgZF'],_0x488638[_0x28bffd(0x2d6)],_0x488638['EKqrq']),logger[_0x28bffd(0x192)](_0x538e8a),process[_0x28bffd(0x1a7)](0x1)):logger[_0x28bffd(0x14c)](_0x28bffd(0x1b2)+JSON['stringify'](_0x2d84bf)+'\x20'),[_0x2b7ebe,_0x2d84bf]=await _0x1b8ca5['setupNewCluster'](_0x2b7ebe,_0x2d84bf);}else{const _0x1c89c3=_0x488638['RBQxB'][_0x28bffd(0x1e9)]('|');let _0x120274=0x0;while(!![]){switch(_0x1c89c3[_0x120274++]){case'0':const _0x507b07={};_0x507b07[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x507b07[_0x28bffd(0x1ad)]=_0x488638[_0x28bffd(0x1d5)],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x507b07);continue;case'1':logger['info'](_0x488638['Emwrj']);continue;case'2':logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x2c6)]);continue;case'3':const _0x1c89f0={};_0x1c89f0[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x1c89f0[_0x28bffd(0x1ad)]=_0x488638[_0x28bffd(0x2c6)],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x1c89f0);continue;case'4':[_0x2b7ebe,_0x2d84bf]=await _0x1b8ca5['setupNewCluster'](_0x2b7ebe,_0x2d84bf);continue;}break;}}}}_0x27c2be&&_0x488638[_0x28bffd(0x1a6)](_0x8499df,AZURE)&&(await _0x1b8ca5[_0x28bffd(0x178)](),await _0x1b8ca5['createOtherResources']());const [_0xc08f7a,_0x53b8d5,_0x56be15,_0x3b2c6a,_0x367922,_0x5a5ce3,_0x3c840e]=await _0x488638[_0x28bffd(0x211)](createK8sClient,_0x1b8ca5,_0xfb4ce6[_0x28bffd(0x1b3)]);_0x488638[_0x28bffd(0x15a)](_0x27c2be,![])&&_0x488638[_0x28bffd(0x1c7)](_0x8499df,AWS)&&(global_registry[_0x28bffd(0x160)]=!![],_0x552eb6=await _0x1b8ca5[_0x28bffd(0x1e8)](_0xc08f7a,_0xfb4ce6));if(_0x488638[_0x28bffd(0x215)](_0x27c2be,![])&&global_registry['enableHubHa'])try{await _0x1b8ca5[_0x28bffd(0x2bd)](_0x5a5ce3,_0x3c840e,_0xfb4ce6,_0x2b7ebe,_0x2d84bf);const _0x2406b0={};_0x2406b0[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x2406b0['message']=_0x488638['lBjuw'],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x2406b0);!await _0x488638[_0x28bffd(0x228)](namespaceExists,_0xc08f7a,global_registry[_0x28bffd(0x181)])&&await _0x488638[_0x28bffd(0x2b6)](createNamespace,_0xc08f7a,global_registry['hubHaNameSpace']);logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x222)]);let _0x229ebd=await fs['readFileAsync'](path[_0x28bffd(0x14a)](__dirname,_0x488638[_0x28bffd(0x2ef)],_0x488638[_0x28bffd(0x24f)],_0x488638[_0x28bffd(0x25b)],_0x488638[_0x28bffd(0x18d)]),_0x488638[_0x28bffd(0x25e)]);_0x229ebd=_0x229ebd[_0x28bffd(0x157)](/<RedisClientPassword>/g,_0x488638[_0x28bffd(0x2aa)](encodeBase64,global_registry[_0x28bffd(0x161)])),_0x229ebd=_0x229ebd['replace'](/<KafkaClientPassword>/g,_0x488638[_0x28bffd(0x2e0)](encodeBase64,global_registry[_0x28bffd(0x203)])),_0x229ebd=_0x229ebd[_0x28bffd(0x157)](/<BstackUsername>/g,_0x488638[_0x28bffd(0x212)](encodeBase64,global_registry[_0x28bffd(0x1ab)])),_0x229ebd=_0x229ebd[_0x28bffd(0x157)](/<BstackAccessKey>/g,_0x488638[_0x28bffd(0x250)](encodeBase64,global_registry[_0x28bffd(0x2c9)]));const _0x115ad5=yaml[_0x28bffd(0x186)](_0x229ebd);await _0x488638[_0x28bffd(0x228)](kubeApply,_0x115ad5,_0x3c840e),logger[_0x28bffd(0x14c)](_0x488638['aeHoQ']);let _0x2ec512=_0x488638['dpuIE'];if(_0x488638[_0x28bffd(0x26d)](_0x8499df,AZURE))_0x2ec512=_0x488638[_0x28bffd(0x24c)];else _0x488638[_0x28bffd(0x2e7)](_0x8499df,GCP)&&(_0x2ec512=_0x488638[_0x28bffd(0x2f4)]);logger[_0x28bffd(0x14c)](_0x488638['zceKD']);let _0x1a316c=await fs[_0x28bffd(0x1ca)](path['join'](__dirname,_0x488638[_0x28bffd(0x2ef)],_0x488638['QkOvr'],_0x488638['ZzEDl'],_0x488638[_0x28bffd(0x1eb)]),_0x488638[_0x28bffd(0x25e)]);_0x1a316c=_0x1a316c[_0x28bffd(0x157)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x1a316c=_0x1a316c[_0x28bffd(0x157)](/<StorageClassName>/g,_0x2ec512);const _0x4c6b63=yaml['loadAll'](_0x1a316c);await _0x488638['FLIhu'](kubeApply,_0x4c6b63,_0x3c840e),logger['info'](_0x488638['kHHjL']),logger[_0x28bffd(0x14c)](_0x488638['WgCfs']);let _0x3f9c74=await fs[_0x28bffd(0x1ca)](path[_0x28bffd(0x14a)](__dirname,_0x488638['FWkaJ'],_0x488638[_0x28bffd(0x24f)],_0x488638[_0x28bffd(0x25b)],_0x488638[_0x28bffd(0x1ff)]),_0x488638['HpcAJ']);_0x3f9c74=_0x3f9c74[_0x28bffd(0x157)](/<HubHaNameSpace>/g,global_registry[_0x28bffd(0x181)]),_0x3f9c74=_0x3f9c74[_0x28bffd(0x157)](/<StorageClassName>/g,_0x2ec512);const _0x57b24e=yaml['loadAll'](_0x3f9c74);await _0x488638[_0x28bffd(0x2b0)](kubeApply,_0x57b24e,_0x3c840e),logger['info'](_0x488638['TgrNN']),logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x19b)]);let _0x414f97=await fs[_0x28bffd(0x1ca)](path[_0x28bffd(0x14a)](__dirname,_0x488638[_0x28bffd(0x2ef)],_0x488638[_0x28bffd(0x24f)],_0x488638[_0x28bffd(0x25b)],_0x488638[_0x28bffd(0x296)]),_0x488638[_0x28bffd(0x25e)]);_0x414f97=_0x414f97['replace'](/<UploaderImageVersion>/g,global_registry[_0x28bffd(0x23d)]),_0x414f97=_0x414f97[_0x28bffd(0x157)](/<HubHaNameSpace>/g,global_registry[_0x28bffd(0x181)]);const _0x2f9e5f=yaml[_0x28bffd(0x186)](_0x414f97);_0x488638[_0x28bffd(0x182)](global_registry[_0x28bffd(0x27d)],AZURE)&&(_0x2f9e5f[0x0][_0x28bffd(0x172)][_0x28bffd(0x29a)]['metadata'][_0x28bffd(0x21e)]={'azure.workload.identity/use':_0x488638[_0x28bffd(0x16f)],..._0x2f9e5f[0x0][_0x28bffd(0x172)][_0x28bffd(0x29a)][_0x28bffd(0x23a)][_0x28bffd(0x21e)]},_0x2f9e5f[0x0][_0x28bffd(0x172)][_0x28bffd(0x29a)][_0x28bffd(0x172)][_0x28bffd(0x1c8)]=_0x488638['rjGPB']);await _0x488638[_0x28bffd(0x2f1)](kubeApply,_0x2f9e5f,_0x3c840e),logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x2e6)]);const _0x267fd4={};_0x267fd4[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x267fd4[_0x28bffd(0x1ad)]=_0x488638['Ccvxp'],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x267fd4),logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x2cc)]);}catch(_0x390bd9){const _0x358bed=_0x488638[_0x28bffd(0x297)][_0x28bffd(0x1e9)]('|');let _0x1550a7=0x0;while(!![]){switch(_0x358bed[_0x1550a7++]){case'0':logger['error'](_0x538e8a);continue;case'1':process[_0x28bffd(0x1a7)](0x1);continue;case'2':await _0x1b8ca5[_0x28bffd(0x1a9)](_0xc08f7a,global_registry[_0x28bffd(0x273)]);continue;case'3':await _0x488638[_0x28bffd(0x20a)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x1fe)],_0x488638['EKqrq']);continue;case'4':_0x538e8a=_0x28bffd(0x1cf)+_0x390bd9[_0x28bffd(0x1ad)];continue;}break;}}try{_0xf17a13=_0x488638[_0x28bffd(0x236)](kebabCase,_0x3e4706),logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x242)]);const _0x3bd7ac={};_0x3bd7ac[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x3bd7ac['message']=_0x488638['IAunn'],webSocketUtils['sendEventToBackend'](_0x5ba338,_0x3bd7ac);if(_0x488638[_0x28bffd(0x2a8)](_0xf17a13,_0x488638[_0x28bffd(0x2c4)])){const _0x2c0d92={};_0x2c0d92[_0x28bffd(0x290)]=_0x488638[_0x28bffd(0x1b7)],_0x2c0d92[_0x28bffd(0x18b)]=_0x488638['oAhmJ'];const _0x33837a={};_0x33837a[_0x28bffd(0x177)]=_0xf17a13,_0x33837a[_0x28bffd(0x2f0)]=_0x2c0d92;const _0xf3166c={};_0xf3166c[_0x28bffd(0x23a)]=_0x33837a;const _0x56d732=_0xf3166c,_0x59165a={};_0x59165a[_0x28bffd(0x2c8)]=_0x56d732,await _0xc08f7a[_0x28bffd(0x1db)](_0x59165a),logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x1ba)]);}const _0x5da216={};_0x5da216[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x5da216[_0x28bffd(0x1ad)]=_0x488638[_0x28bffd(0x2e1)],webSocketUtils['sendEventToBackend'](_0x5ba338,_0x5da216);const _0x46cc04={};_0x46cc04[_0x28bffd(0x281)]=WS_EVENTS['LOG'],_0x46cc04[_0x28bffd(0x1ad)]=_0x488638['uCxWb'],webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x46cc04),logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x2db)]);let _0x98eb04={};_0x488638[_0x28bffd(0x2d8)](_0x8499df,AZURE)&&(_0x98eb04={'clientId':await _0x1b8ca5[_0x28bffd(0x2c5)](_0x28bffd(0x1a5)+_0x9c281b)});await _0x488638[_0x28bffd(0x16c)](addGridComponents,_0xc08f7a,_0x53b8d5,_0x56be15,_0x3b2c6a,_0xf17a13,_0x9c281b,_0x552eb6,_0x367922,_0x3c840e,_0x98eb04),_0x538e8a=_0x488638[_0x28bffd(0x2eb)],logger[_0x28bffd(0x14c)](_0x538e8a);const _0x58b4f7={};_0x58b4f7['type']=WS_EVENTS[_0x28bffd(0x193)],_0x58b4f7[_0x28bffd(0x1ad)]=_0x538e8a,webSocketUtils['sendEventToBackend'](_0x5ba338,_0x58b4f7),_0x538e8a=_0x488638['mKbov'],logger[_0x28bffd(0x14c)](_0x538e8a);const _0x114e38={};_0x114e38[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x114e38[_0x28bffd(0x1ad)]=_0x538e8a,webSocketUtils['sendEventToBackend'](_0x5ba338,_0x114e38),await _0x488638['NHHwx'](waitForDeployment,_0x53b8d5,_0xf17a13,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x59d77b=await _0x488638[_0x28bffd(0x175)](getNamespaceUID,_0xc08f7a,_0xf17a13),_0x22ec79=global_registry[_0x28bffd(0x1c9)]?_0x488638[_0x28bffd(0x145)]:_0x488638[_0x28bffd(0x1d6)],_0x377c27={};_0x377c27[_0x28bffd(0x177)]=_0x22ec79,_0x377c27[_0x28bffd(0x21d)]=_0x488638[_0x28bffd(0x1c4)];const _0xd73624=await _0xc08f7a[_0x28bffd(0x27c)](_0x377c27);let _0xb80805=_0x1b8ca5[_0x28bffd(0x2f9)](_0xd73624)+'/'+_0xf17a13,_0x268ad8=_0x488638[_0x28bffd(0x226)];try{const _0x37440c='https://'+AG_API_URL+_0x28bffd(0x246)+_0x59d77b,_0x9a2260=await _0x488638['pLTDa'](got,_0x37440c,_0x2fe42d);(_0x488638[_0x28bffd(0x2e9)](_0x9a2260,null)||_0x488638['EdOwW'](_0x9a2260,undefined))&&(_0x538e8a=_0x488638['Vpurb'],await _0x488638[_0x28bffd(0x2c0)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x1ea)],_0x488638[_0x28bffd(0x1ec)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process['exit'](0x1));_0x488638[_0x28bffd(0x29b)](_0x9a2260[_0x28bffd(0x18e)],0x191)&&(_0x538e8a=_0x488638[_0x28bffd(0x2a4)],await _0x488638[_0x28bffd(0x260)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes['ERROR'],_0x488638['FpgZF'],_0x488638[_0x28bffd(0x234)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process[_0x28bffd(0x1a7)](0x1));_0x488638['psdMO'](_0x9a2260[_0x28bffd(0x18e)],0xc8)&&(_0x538e8a=_0x28bffd(0x208)+JSON[_0x28bffd(0x24e)](_0x9a2260),await _0x488638[_0x28bffd(0x1dd)](reportToGalactusAndSendToEDS,_0xfb4ce6,_0x5ba338,_0x538e8a,messageTypes[_0x28bffd(0x23f)],_0x488638['FpgZF'],_0x488638[_0x28bffd(0x2d7)],_0x488638[_0x28bffd(0x1e6)]),logger[_0x28bffd(0x192)](_0x538e8a),process[_0x28bffd(0x1a7)](0x1));const _0x4c3acf=JSON[_0x28bffd(0x28b)](_0x9a2260[_0x28bffd(0x2c8)]);_0x4c3acf['route53']&&(_0xb80805=_0x4c3acf[_0x28bffd(0x27b)],_0x268ad8=_0x488638[_0x28bffd(0x247)]),global_registry['isPrivateGrid']&&(_0x268ad8=_0x488638['UMfAw']);}catch(_0x4bb480){}_0x538e8a=_0x28bffd(0x1bf)+_0xb80805+'\x20',logger['info'](_0x538e8a);const _0x30f181={};_0x30f181[_0x28bffd(0x281)]=WS_EVENTS['LOG'],_0x30f181['message']=_0x538e8a,webSocketUtils['sendEventToBackend'](_0x5ba338,_0x30f181),_0x538e8a=_0x28bffd(0x1aa)+_0x268ad8+_0x28bffd(0x2be)+_0xb80805+_0x28bffd(0x207),logger['info'](_0x538e8a);const _0x17306d={};_0x17306d[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x17306d['message']=_0x538e8a,webSocketUtils['sendEventToBackend'](_0x5ba338,_0x17306d);const _0x274a86={};_0x274a86[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x14f)],_0x274a86[_0x28bffd(0x1ad)]=_0x28bffd(0x1fd)+_0xb80805,webSocketUtils[_0x28bffd(0x154)](_0x5ba338,_0x274a86),await webSocketUtils[_0x28bffd(0x238)](0x7d0);}catch(_0x2767f3){logger['error'](_0x28bffd(0x253)+_0x2767f3+'\x20\x0a'+JSON[_0x28bffd(0x24e)](_0x2767f3['stack']));if(_0x488638['VbhVK'](_0x27c2be,![]))try{logger[_0x28bffd(0x14c)](_0x488638[_0x28bffd(0x291)]),await _0x488638[_0x28bffd(0x202)](removeGridComponents,_0xc08f7a,_0x53b8d5,_0x56be15,_0x3b2c6a,_0xf17a13),await _0x1b8ca5[_0x28bffd(0x1a9)](_0xc08f7a,global_registry[_0x28bffd(0x273)]);}catch(_0x190e7a){logger['error'](_0x28bffd(0x21a)+_0x190e7a+'\x20\x0a'+JSON['stringify'](_0x190e7a['stack']));}throw _0x2767f3;}}catch(_0x212458){const _0x6cd443=_0x28bffd(0x1df)+_0x212458+'\x20\x0a'+JSON['stringify'](_0x212458[_0x28bffd(0x21f)]);if(_0x5ba338){const _0x64c68={};_0x64c68[_0x28bffd(0x281)]=WS_EVENTS[_0x28bffd(0x193)],_0x64c68['message']=_0x6cd443,webSocketUtils['sendEventToBackend'](_0x5ba338,_0x64c68,_0x488638[_0x28bffd(0x1e6)],!![]);}await webSocketUtils[_0x28bffd(0x238)](0x7d0);const _0x168519={};_0x168519[_0x28bffd(0x192)]=_0x6cd443,await _0x488638[_0x28bffd(0x252)](sendInstrumentationEvent,_0xfb4ce6,_0x488638[_0x28bffd(0x1ea)],messageTypes[_0x28bffd(0x23f)],_0x488638[_0x28bffd(0x284)],_0x168519,_0xfb4ce6),logger[_0x28bffd(0x192)](_0x6cd443);}process[_0x28bffd(0x1a7)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x1336(_0x2bc468,_0x23b0c3){const _0x3356d3=a10_0x3356();return a10_0x1336=function(_0x133664,_0x19bee7){_0x133664=_0x133664-0xef;let _0x24f431=_0x3356d3[_0x133664];return _0x24f431;},a10_0x1336(_0x2bc468,_0x23b0c3);}const a10_0x52cbdb=a10_0x1336;function a10_0x3356(){const _0x407eaf=['85BlKjrS','strict','5013ULiUZC','help','recommendCommands','List\x20Grid\x20resources.','4008861sAlSTn','builder','demandCommand','2ydyQHk','delete_commands','5770vCXiDq','28849183tpsKwF','epilogue','4749868cMHMSV','delete','5790152aHgAhc','command','pOity','1103568pLUKFk','7tOyeIh','KoNSw','459624PqHdVX','usage'];a10_0x3356=function(){return _0x407eaf;};return a10_0x3356();}(function(_0x27b2f2,_0x1097ae){const _0x1d895b=a10_0x1336,_0x45f78d=_0x27b2f2();while(!![]){try{const _0x28e4f8=parseInt(_0x1d895b(0x106))/0x1*(parseInt(_0x1d895b(0xf8))/0x2)+-parseInt(_0x1d895b(0x103))/0x3+parseInt(_0x1d895b(0xf3))/0x4+-parseInt(_0x1d895b(0xfd))/0x5*(-parseInt(_0x1d895b(0xfb))/0x6)+parseInt(_0x1d895b(0xf9))/0x7*(parseInt(_0x1d895b(0xf5))/0x8)+parseInt(_0x1d895b(0xff))/0x9*(parseInt(_0x1d895b(0xf0))/0xa)+-parseInt(_0x1d895b(0xf1))/0xb;if(_0x28e4f8===_0x1097ae)break;else _0x45f78d['push'](_0x45f78d['shift']());}catch(_0x316611){_0x45f78d['push'](_0x45f78d['shift']());}}}(a10_0x3356,0xa5e61));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0x52cbdb(0xf6)]=a10_0x52cbdb(0xf4),exports['desc']=a10_0x52cbdb(0x102),exports[a10_0x52cbdb(0x104)]=function(_0xe7820){const _0x3a771d=a10_0x52cbdb,_0x1804fd={};_0x1804fd[_0x3a771d(0xf7)]=_0x3a771d(0xef),_0x1804fd[_0x3a771d(0xfa)]=_0x3a771d(0x100);const _0x27432b=_0x1804fd;return _0xe7820[_0x3a771d(0xfc)](HELP_HEADER_MESSAGE[_0x3a771d(0xf4)])[_0x3a771d(0xf2)](HELP_FOOTER_MESSAGE)['commandDir'](_0x27432b[_0x3a771d(0xf7)])[_0x3a771d(0x105)]()[_0x3a771d(0x101)]()[_0x3a771d(0xfe)]()['help'](_0x27432b['KoNSw']);},exports['handler']=function(_0x3cfb93){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x2c0c9b=a11_0x358b;(function(_0x24ce0a,_0x2beb6e){const _0x18b826=a11_0x358b,_0x53cd82=_0x24ce0a();while(!![]){try{const _0x3368ed=-parseInt(_0x18b826(0x1f3))/0x1*(-parseInt(_0x18b826(0x19c))/0x2)+-parseInt(_0x18b826(0x1eb))/0x3*(parseInt(_0x18b826(0x169))/0x4)+-parseInt(_0x18b826(0x1d4))/0x5+parseInt(_0x18b826(0x193))/0x6+-parseInt(_0x18b826(0x1e9))/0x7*(parseInt(_0x18b826(0x1ab))/0x8)+parseInt(_0x18b826(0x1b3))/0x9*(parseInt(_0x18b826(0x16e))/0xa)+-parseInt(_0x18b826(0x1a0))/0xb;if(_0x3368ed===_0x2beb6e)break;else _0x53cd82['push'](_0x53cd82['shift']());}catch(_0x2e3388){_0x53cd82['push'](_0x53cd82['shift']());}}}(a11_0x5560,0xb91cb));function a11_0x5560(){const _0x58a7ce=['isBrowserstackCluster','HmOrw','unauthorised','sosZB','epilogue','exit','ERROR','../../utils/instrumentationUtils','lAuDo','uWzmN','trQZD','invalid-grid-id','command','builder','error','TQxHI','stack','username','3479yaZAZn','CBLFg','226713eGTQFL','onlyGridInCluster','toLowerCase','rVSGY','../../utils/gridComponents','description','vCpTw','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','2HpFJJH','password','grid-id','TZwPF','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','Browserstack','/packages/cli/grid/','pvwYP','../../config/logger','Delete\x20an\x20Automation\x20grid.','region','delete','message','unknown-error','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','JqwNi','Namespace:\x20','28vBhNbd','info','ghPQb','sHPvr','readFileSync','3397470TPCVff','mCvHA','sspSW','rDlcw','connectionTimeout','gZxlS','clusterName','https://','fRBqI','xXrND','reconnecting-websocket','got','WVnuG','\x22\x20and\x20ID\x20','JbRsE','bQDoX','invalid-input','MtlRQ','clusterSpawnedVia','statusCode','pmVDd','LdwIM','bBfET','XDGwq','default','readNamespace','QpooS','isClusterPresent','VRcxb','fgXgH','<UsernamePlaceholder>','FIYEc','name','LIyPz','XDeDX','Qmbrl','JinHB','1747206tGRYyq','help','skipTlsCertVerify','BcPAB','FEbHk','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','../../utils/utilityMethods','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1284142pUneYd','cKmXF','<PasswordPlaceholder>','tZqmc','2146661zdXhbW','hECdu','warn','Cluster:\x20','requestId','grid','uuid','string','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','existsSync','skip-tls-cert-verify','18024TXHUmM','pfejg','Yivib','YLkXG','dltwI','handler','argv','BrJSU','36IDcFYU','FhlKD','delete-grid-called','NppXt','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','type','XRaTQ','mfVhu','qXCQj','itYyS','server-error','body','GWaOj','then','aOhlw','whrrp','JeJyi','rTeJg','replace','stringify','\x22\x20with\x20ID\x20','gridId','Skip\x20insecure\x20cert\x20verification.','INFO','clusterId','WyATH','boolean','ezmZm','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../cloudproviders/utils','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','1661115WeRhKg','catch','ZTcCH'];a11_0x5560=function(){return _0x58a7ce;};return a11_0x5560();}const fs=require('fs'),got=require(a11_0x2c0c9b(0x179)),{v4:uuidv4}=require(a11_0x2c0c9b(0x1a6)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x2c0c9b(0x178)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2c0c9b(0x15c)),{logger}=require(a11_0x2c0c9b(0x160)),{getCloudProviderObject}=require(a11_0x2c0c9b(0x1d2)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x2c0c9b(0x1ef)),{sendInstrumentationEvent}=require(a11_0x2c0c9b(0x1de)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2c0c9b(0x199)),webSocketUtils=require('../../utils/webSocketUtils');function a11_0x358b(_0x1e5a22,_0x2a201c){const _0x5560a8=a11_0x5560();return a11_0x358b=function(_0x358b8a,_0x3d9180){_0x358b8a=_0x358b8a-0x158;let _0xb2ccf5=_0x5560a8[_0x358b8a];return _0xb2ccf5;},a11_0x358b(_0x1e5a22,_0x2a201c);}exports[a11_0x2c0c9b(0x1e3)]=a11_0x2c0c9b(0x1a5),exports['desc']=a11_0x2c0c9b(0x161),exports[a11_0x2c0c9b(0x1e4)]=function(_0x1aab3a){const _0x15fb54=a11_0x2c0c9b,_0x225c76={};_0x225c76['Yivib']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x225c76['sHPvr']='string',_0x225c76[_0x15fb54(0x16b)]='Skip\x20insecure\x20cert\x20verification.',_0x225c76[_0x15fb54(0x184)]=_0x15fb54(0x1cd),_0x225c76[_0x15fb54(0x1bc)]=_0x15fb54(0x194);const _0x54e2c9=_0x225c76,_0x49f143={};_0x49f143[_0x15fb54(0x1f0)]=_0x54e2c9[_0x15fb54(0x1ad)],_0x49f143[_0x15fb54(0x1b8)]=_0x54e2c9[_0x15fb54(0x16c)];const _0x3547a1={};_0x3547a1[_0x15fb54(0x1f0)]=_0x54e2c9[_0x15fb54(0x16b)],_0x3547a1[_0x15fb54(0x1b8)]=_0x54e2c9['bBfET'],_0x3547a1[_0x15fb54(0x186)]=![];const _0x139ef5={};return _0x139ef5[_0x15fb54(0x158)]=_0x49f143,_0x139ef5['skip-tls-cert-verify']=_0x3547a1,_0x1aab3a['usage'](HELP_HEADER_MESSAGE[_0x15fb54(0x163)])[_0x15fb54(0x1db)](HELP_FOOTER_MESSAGE)['options'](_0x139ef5)[_0x15fb54(0x194)](_0x54e2c9['itYyS'])[_0x15fb54(0x1b1)];},exports[a11_0x2c0c9b(0x1b0)]=async function(_0x57c41e){const _0x1cd148=a11_0x2c0c9b,_0x4748be={'XRaTQ':_0x1cd148(0x198),'uWzmN':_0x1cd148(0x1cf),'HmOrw':'Pass\x20the\x20ID\x20of\x20the\x20Grid','JqwNi':_0x1cd148(0x1a7),'lJSPY':_0x1cd148(0x1c9),'XTfns':_0x1cd148(0x1cd),'BcPAB':'help','fRBqI':function(_0x2996d7,_0x350bcc){return _0x2996d7===_0x350bcc;},'TZwPF':_0x1cd148(0x1af),'qXCQj':function(_0x201282,_0x30c2b1){return _0x201282!==_0x30c2b1;},'FhlKD':_0x1cd148(0x1c1),'gxdTZ':_0x1cd148(0x1ea),'mCvHA':'Successfully\x20deleted\x20the\x20grid','rTeJg':function(_0xd9b0c0){return _0xd9b0c0();},'sspSW':function(_0x25854b){return _0x25854b();},'LIyPz':function(_0x213a2e,_0x42b205){return _0x213a2e!==_0x42b205;},'bQDoX':_0x1cd148(0x1b2),'htvqG':_0x1cd148(0x15b),'trQZD':function(_0x36e793,_0x29e065,_0x2128e7,_0x62906b,_0x3cdac5,_0x404d97,_0x593746){return _0x36e793(_0x29e065,_0x2128e7,_0x62906b,_0x3cdac5,_0x404d97,_0x593746);},'WVnuG':_0x1cd148(0x1b5),'JinHB':'init-not-called','tZqmc':function(_0x3c16c3,_0x297a67,_0x424428,_0x25caff,_0x209ba1,_0x4cb144,_0x283fef){return _0x3c16c3(_0x297a67,_0x424428,_0x25caff,_0x209ba1,_0x4cb144,_0x283fef);},'YLkXG':_0x1cd148(0x15f),'TQxHI':function(_0x255a19){return _0x255a19();},'ZTcCH':function(_0x55a498,_0x3671e9,_0x538d80,_0x55bb8b){return _0x55a498(_0x3671e9,_0x538d80,_0x55bb8b);},'QpooS':function(_0x491378,_0x10f700){return _0x491378===_0x10f700;},'TroVU':_0x1cd148(0x15d),'hECdu':function(_0x4c1fb9,_0x281d9c){return _0x4c1fb9!==_0x281d9c;},'XDeDX':_0x1cd148(0x185),'WyATH':_0x1cd148(0x1f1),'NppXt':function(_0x57bd0b,_0x2faca7){return _0x57bd0b(_0x2faca7);},'MtlRQ':function(_0x4a1c30,_0xd6b283){return _0x4a1c30===_0xd6b283;},'FIYEc':function(_0x2625d6,_0x378381){return _0x2625d6!==_0x378381;},'JeJyi':'crVDz','sosZB':_0x1cd148(0x1d0),'gZxlS':function(_0x1a76c5,_0x3c8dba,_0x41a28a,_0x3c2a46,_0x3bc5a5,_0xbbd1cc,_0x12b3b9){return _0x1a76c5(_0x3c8dba,_0x41a28a,_0x3c2a46,_0x3bc5a5,_0xbbd1cc,_0x12b3b9);},'cKmXF':_0x1cd148(0x17e),'Qmbrl':'Alyle','FEbHk':_0x1cd148(0x18c),'rVSGY':_0x1cd148(0x19e),'pmVDd':function(_0x157c45,_0x2279ee,_0x269a3e,_0x56eb21,_0x3251bb,_0x5c0972,_0x4518a0){return _0x157c45(_0x2279ee,_0x269a3e,_0x56eb21,_0x3251bb,_0x5c0972,_0x4518a0);},'mfVhu':function(_0x1ca089,_0x69e574,_0x39931b){return _0x1ca089(_0x69e574,_0x39931b);},'xXrND':function(_0x5a126f,_0x4765ad,_0xa2c57a,_0x4799b,_0x39dff1,_0x4aa75f){return _0x5a126f(_0x4765ad,_0xa2c57a,_0x4799b,_0x39dff1,_0x4aa75f);},'fgXgH':function(_0x5f1b48,_0x128fb7){return _0x5f1b48===_0x128fb7;},'whrrp':_0x1cd148(0x171),'JbRsE':_0x1cd148(0x183),'pfejg':_0x1cd148(0x1df),'GWaOj':'DELETE','YJCIT':function(_0x5f2018,_0x52a1b5,_0x4fbaab){return _0x5f2018(_0x52a1b5,_0x4fbaab);},'qmVqt':function(_0x59992d,_0x509e19){return _0x59992d!==_0x509e19;},'cICkZ':function(_0x4e52fa,_0x277d28){return _0x4e52fa===_0x277d28;},'VRcxb':_0x1cd148(0x1bd),'nyFWJ':_0x1cd148(0x19b),'uomYM':function(_0x25487e,_0x458dce,_0x16f74a,_0x16e14c,_0x4c1898,_0x371839,_0x584ce8){return _0x25487e(_0x458dce,_0x16f74a,_0x16e14c,_0x4c1898,_0x371839,_0x584ce8);},'QHuSz':_0x1cd148(0x1d9),'DmWRT':function(_0x40ddb4,_0x3ea97c){return _0x40ddb4===_0x3ea97c;},'UJsmc':_0x1cd148(0x1e2),'ezmZm':function(_0x5363ec,_0xd944fd,_0x39530d,_0x1b781a,_0x22d36b,_0x4a6bc4,_0x527d53){return _0x5363ec(_0xd944fd,_0x39530d,_0x1b781a,_0x22d36b,_0x4a6bc4,_0x527d53);},'FBISB':_0x1cd148(0x165)};try{global_registry[_0x1cd148(0x1a4)]=_0x4748be[_0x1cd148(0x1c4)](uuidv4);!fs[_0x1cd148(0x1a9)](_0x4748be[_0x1cd148(0x170)](getCredentialsPath))&&(_0x4748be['LIyPz'](_0x4748be['bQDoX'],_0x4748be[_0x1cd148(0x17d)])?_0x4d7c56[_0x1cd148(0x1dc)](0x0):(console[_0x1cd148(0x1e5)](_0x4748be['htvqG']),await _0x4748be[_0x1cd148(0x1e1)](sendInstrumentationEvent,_0x57c41e,_0x4748be[_0x1cd148(0x17a)],messageTypes[_0x1cd148(0x1dd)],_0x4748be[_0x1cd148(0x192)],null,_0x57c41e),process[_0x1cd148(0x1dc)](0x1)));_0x4748be[_0x1cd148(0x19f)](sendInstrumentationEvent,_0x57c41e,_0x4748be[_0x1cd148(0x17a)],messageTypes[_0x1cd148(0x1ca)],null,null,_0x57c41e);!_0x57c41e[_0x1cd148(0x1c8)]&&(_0x4748be[_0x1cd148(0x18f)](_0x4748be['YLkXG'],_0x4748be[_0x1cd148(0x1ae)])?_0x224d6e=_0x1cd148(0x19a)+_0x37ed90[_0x1cd148(0x18e)]+'\x22\x20and\x20ID\x20'+_0x56c47a['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x325e5a[_0x1cd148(0x174)]+_0x1cd148(0x1c7)+_0x2027c2['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console['error'](_0x4748be[_0x1cd148(0x1b9)]),process['exit'](0x1)));const _0x8e7337=JSON['parse'](fs[_0x1cd148(0x16d)](_0x4748be[_0x1cd148(0x1e6)](getCredentialsPath))),[_0x1fef52,_0x61511c]=await _0x4748be[_0x1cd148(0x1d6)](getGridDetails,_0x8e7337[_0x1cd148(0x15d)][_0x1cd148(0x1e8)],_0x8e7337[_0x1cd148(0x15d)][_0x1cd148(0x1f4)],_0x57c41e[_0x1cd148(0x1c8)]);if(_0x61511c){const _0x5a3b20=_0x61511c[_0x1cd148(0x16a)];let _0x52c506=_0x1cd148(0x19a)+_0x5a3b20[_0x1cd148(0x18e)]+_0x1cd148(0x17b)+_0x5a3b20['id']+_0x1cd148(0x1a8);_0x61511c[_0x1cd148(0x1ec)]&&_0x4748be[_0x1cd148(0x188)](_0x61511c[_0x1cd148(0x180)],_0x4748be['TroVU'])&&(_0x4748be[_0x1cd148(0x1a1)](_0x4748be[_0x1cd148(0x190)],_0x4748be[_0x1cd148(0x1cc)])?_0x52c506=_0x1cd148(0x19a)+_0x5a3b20[_0x1cd148(0x18e)]+_0x1cd148(0x17b)+_0x5a3b20['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x5a3b20[_0x1cd148(0x174)]+'\x22\x20with\x20ID\x20'+_0x5a3b20[_0x1cd148(0x1cb)]+_0x1cd148(0x1a8):(_0x245f38['error'](_0x4748be[_0x1cd148(0x1b9)]),_0xd917aa[_0x1cd148(0x1dc)](0x1)));const _0x1ffcac=await _0x4748be['NppXt'](inputConfirmation,_0x52c506);(_0x4748be[_0x1cd148(0x188)](_0x1ffcac,undefined)||_0x4748be[_0x1cd148(0x17f)](_0x1ffcac,null)||!(_0x4748be['MtlRQ'](_0x1ffcac[_0x1cd148(0x1ed)](),'y')||_0x4748be['fRBqI'](_0x1ffcac[_0x1cd148(0x1ed)](),'n')))&&(_0x4748be['FIYEc'](_0x4748be[_0x1cd148(0x1c3)],_0x4748be['JeJyi'])?_0x3cd64f[_0x1cd148(0x1a2)](_0x4748be[_0x1cd148(0x1e0)]):(console[_0x1cd148(0x1e5)](_0x4748be[_0x1cd148(0x1da)]),await _0x4748be[_0x1cd148(0x173)](sendInstrumentationEvent,_0x57c41e,_0x4748be[_0x1cd148(0x17a)],messageTypes[_0x1cd148(0x1dd)],_0x4748be[_0x1cd148(0x19d)],null,_0x57c41e),process['exit'](0x1)));_0x4748be[_0x1cd148(0x17f)](_0x1ffcac[_0x1cd148(0x1ed)](),'n')&&(_0x4748be[_0x1cd148(0x176)](_0x4748be['Qmbrl'],_0x4748be[_0x1cd148(0x191)])?process[_0x1cd148(0x1dc)](0x0):_0x31134b[_0x1cd148(0x16a)]('Namespace:\x20'+_0x469358+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'));const _0x1b9476=WS_ENDPOINT[_0x1cd148(0x1c5)](_0x4748be[_0x1cd148(0x197)],_0x8e7337[_0x1cd148(0x15d)][_0x1cd148(0x1e8)])[_0x1cd148(0x1c5)](_0x4748be[_0x1cd148(0x1ee)],_0x8e7337['Browserstack']['password']),_0x53d00f={};_0x53d00f['WebSocket']=ws,_0x53d00f[_0x1cd148(0x172)]=0x36ee80;const _0x11bc05=new ReconnectingWebSocket(_0x1b9476,[],_0x53d00f);global_registry['clusterRegion']=_0x5a3b20[_0x1cd148(0x162)];const _0x3f9203=_0x5a3b20['cloudProvider'],_0x3d970d=await _0x4748be[_0x1cd148(0x182)](getCloudProviderObject,_0x3f9203,_0x5a3b20['clusterName'],_0x5a3b20[_0x1cd148(0x18e)],_0x11bc05,webSocketUtils,_0x57c41e),_0x78e306=await _0x3d970d[_0x1cd148(0x189)]();if(_0x78e306){const _0x2f1546=_0x4748be[_0x1cd148(0x1b6)](kebabCase,_0x5a3b20[_0x1cd148(0x18e)]),[_0x1df4d7,_0x31c19e,_0x15f9fd,_0x2085e0,_0x5e1762,_0x52de32]=await _0x4748be[_0x1cd148(0x1ba)](createK8sClient,_0x3d970d,_0x57c41e[_0x1cd148(0x195)]);let _0x502b3c=!![];const _0xa505b1={};_0xa505b1[_0x1cd148(0x18e)]=_0x2f1546,await _0x1df4d7[_0x1cd148(0x187)](_0xa505b1)[_0x1cd148(0x1c0)](_0x36859e=>{const _0x40a6fc=_0x1cd148;if(_0x4748be[_0x40a6fc(0x176)](_0x4748be[_0x40a6fc(0x159)],_0x4748be[_0x40a6fc(0x159)]))logger[_0x40a6fc(0x16a)]('Namespace:\x20'+_0x2f1546+_0x40a6fc(0x1f2));else{const _0x38db3e={};_0x38db3e[_0x40a6fc(0x1f0)]=_0x4748be[_0x40a6fc(0x1d8)],_0x38db3e[_0x40a6fc(0x1b8)]=_0x4748be[_0x40a6fc(0x167)];const _0x1f4637={};_0x1f4637[_0x40a6fc(0x1f0)]=_0x4748be['lJSPY'],_0x1f4637[_0x40a6fc(0x1b8)]=_0x4748be['XTfns'],_0x1f4637[_0x40a6fc(0x186)]=![];const _0x153647={};return _0x153647[_0x40a6fc(0x158)]=_0x38db3e,_0x153647[_0x40a6fc(0x1aa)]=_0x1f4637,_0x3a7411['usage'](_0x5c684e[_0x40a6fc(0x163)])[_0x40a6fc(0x1db)](_0x347251)['options'](_0x153647)[_0x40a6fc(0x194)](_0x4748be[_0x40a6fc(0x196)])[_0x40a6fc(0x1b1)];}})[_0x1cd148(0x1d5)](_0x30faec=>{const _0x27c548=_0x1cd148;_0x4748be[_0x27c548(0x1bb)](_0x4748be[_0x27c548(0x1b4)],_0x4748be['gxdTZ'])?(logger[_0x27c548(0x1a2)](_0x27c548(0x168)+_0x2f1546+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x502b3c=![]):_0xdfa703[_0x27c548(0x1a2)](_0x27c548(0x1a3)+_0x583ca7[_0x27c548(0x174)]+_0x27c548(0x1b7));});if(_0x502b3c){await _0x4748be[_0x1cd148(0x177)](removeGridComponents,_0x1df4d7,_0x31c19e,_0x15f9fd,_0x2085e0,_0x2f1546);if(_0x61511c[_0x1cd148(0x1ec)]){const _0x2e996e=await _0x3d970d[_0x1cd148(0x1d7)]();_0x2e996e?_0x4748be[_0x1cd148(0x18b)](_0x4748be[_0x1cd148(0x1c2)],_0x4748be[_0x1cd148(0x17c)])?(_0x41f69a[_0x1cd148(0x1a2)](_0x1cd148(0x168)+_0x58b900+_0x1cd148(0x166)),_0x1cf495=![]):await _0x3d970d['deleteCluster'](_0x1df4d7,_0x5a3b20[_0x1cd148(0x162)]):_0x4748be[_0x1cd148(0x18d)](_0x4748be['pfejg'],_0x4748be[_0x1cd148(0x1ac)])?(_0x4f8372[_0x1cd148(0x16a)](_0x4748be[_0x1cd148(0x16f)]),_0x22c7cd[_0x1cd148(0x1dc)](0x0)):logger[_0x1cd148(0x1a2)](_0x1cd148(0x1a3)+_0x5a3b20[_0x1cd148(0x174)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger['warn'](_0x4748be[_0x1cd148(0x1e0)]);const _0x5ab80b=_0x1cd148(0x175)+AG_API_URL+_0x1cd148(0x15e)+_0x57c41e['gridId'],_0x421842={'method':_0x4748be[_0x1cd148(0x1bf)],'headers':_0x4748be[_0x1cd148(0x1ba)](getAuthHeader,_0x8e7337[_0x1cd148(0x15d)]['username'],_0x8e7337[_0x1cd148(0x15d)]['password']),'throwHttpErrors':![]},_0x49b687=await _0x4748be['YJCIT'](got,_0x5ab80b,_0x421842);_0x4748be[_0x1cd148(0x18f)](_0x49b687,null)&&_0x4748be['qmVqt'](_0x49b687,undefined)&&_0x4748be['cICkZ'](_0x49b687[_0x1cd148(0x181)],0xc8)&&(logger[_0x1cd148(0x16a)](_0x4748be['mCvHA']),process[_0x1cd148(0x1dc)](0x0)),logger[_0x1cd148(0x1e5)](_0x1cd148(0x1d3)+_0x49b687[_0x1cd148(0x1be)]),await _0x4748be[_0x1cd148(0x182)](sendInstrumentationEvent,_0x57c41e,_0x4748be[_0x1cd148(0x17a)],messageTypes[_0x1cd148(0x1dd)],_0x4748be['VRcxb'],_0x1fef52,_0x57c41e),process['exit'](0x1);}_0x4748be[_0x1cd148(0x17f)](_0x1fef52['statusCode'],0x191)&&(logger[_0x1cd148(0x1e5)](_0x4748be['nyFWJ']),await _0x4748be['uomYM'](sendInstrumentationEvent,_0x57c41e,_0x4748be[_0x1cd148(0x17a)],messageTypes[_0x1cd148(0x1dd)],_0x4748be['QHuSz'],null,_0x57c41e),process[_0x1cd148(0x1dc)](0x1)),_0x4748be['DmWRT'](_0x1fef52[_0x1cd148(0x181)],0x190)&&(logger[_0x1cd148(0x1e5)](JSON[_0x1cd148(0x15a)](_0x1fef52[_0x1cd148(0x1be)])[_0x1cd148(0x164)]),await _0x4748be[_0x1cd148(0x182)](sendInstrumentationEvent,_0x57c41e,_0x4748be[_0x1cd148(0x17a)],messageTypes[_0x1cd148(0x1dd)],_0x4748be['UJsmc'],null,_0x57c41e),process[_0x1cd148(0x1dc)](0x1)),logger[_0x1cd148(0x1e5)](_0x1cd148(0x1d1)+JSON[_0x1cd148(0x1c6)](_0x1fef52)),await _0x4748be[_0x1cd148(0x1ce)](sendInstrumentationEvent,_0x57c41e,_0x4748be[_0x1cd148(0x17a)],messageTypes[_0x1cd148(0x1dd)],_0x4748be[_0x1cd148(0x18a)],_0x1fef52,_0x57c41e),process[_0x1cd148(0x1dc)](0x1);}catch(_0x52b206){logger[_0x1cd148(0x1e5)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x52b206[_0x1cd148(0x1e7)]),await _0x4748be[_0x1cd148(0x1e1)](sendInstrumentationEvent,_0x57c41e,_0x4748be['WVnuG'],messageTypes['ERROR'],_0x4748be['FBISB'],_0x52b206,_0x57c41e),process[_0x1cd148(0x1dc)](0x1);}};
|
|
1
|
+
const a11_0x206205=a11_0x4ce3;(function(_0x46dffe,_0x5f0117){const _0x48f590=a11_0x4ce3,_0x1a7744=_0x46dffe();while(!![]){try{const _0x542956=-parseInt(_0x48f590(0x1e2))/0x1+-parseInt(_0x48f590(0x244))/0x2+parseInt(_0x48f590(0x246))/0x3*(parseInt(_0x48f590(0x1b3))/0x4)+-parseInt(_0x48f590(0x1c1))/0x5+-parseInt(_0x48f590(0x222))/0x6*(parseInt(_0x48f590(0x1e9))/0x7)+-parseInt(_0x48f590(0x229))/0x8+parseInt(_0x48f590(0x1fa))/0x9;if(_0x542956===_0x5f0117)break;else _0x1a7744['push'](_0x1a7744['shift']());}catch(_0x5c8e98){_0x1a7744['push'](_0x1a7744['shift']());}}}(a11_0x58e7,0xeddce));const fs=require('fs'),got=require(a11_0x206205(0x1e3)),{v4:uuidv4}=require(a11_0x206205(0x1c7)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x206205(0x1eb)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x206205(0x1ae)),{inputConfirmation}=require(a11_0x206205(0x224)),{createK8sClient}=require(a11_0x206205(0x1d2)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x206205(0x241)),webSocketUtils=require(a11_0x206205(0x1ee));function a11_0x4ce3(_0x8e08f,_0x2f4b88){const _0x58e79c=a11_0x58e7();return a11_0x4ce3=function(_0x4ce3ef,_0x3c7887){_0x4ce3ef=_0x4ce3ef-0x1ac;let _0x3c9ce8=_0x58e79c[_0x4ce3ef];return _0x3c9ce8;},a11_0x4ce3(_0x8e08f,_0x2f4b88);}function a11_0x58e7(){const _0x3adcf8=['warn','uuid','hNbLr','default','MXFKp','FPgOt','vKKlY','vllBZ','rWQcb','<PasswordPlaceholder>','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','OcqUT','../../utils/createk8sClient','DnsZr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x22\x20and\x20ID\x20','DELETE','argv','grid-id','parse','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','QmtTz','SsGQO','\x22\x20with\x20ID\x20','clusterName','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','https://','deleteCluster','996610skMZFE','got','cloudProvider','<UsernamePlaceholder>','isBrowserstackCluster','jGpss','WRKLE','16849yuFhos','miXHn','reconnecting-websocket','fYKcK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/webSocketUtils','readNamespace','mxtHx','HQPgS','erloj','mbOkH','type','init-not-called','command','toLowerCase','LRqaK','mbYud','62652663qqaDpB','invalid-input','JGsJb','unknown-error','tgHoM','LnndB','exUSh','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','epilogue','boolean','skip-tls-cert-verify','unauthorised','Browserstack','UikFD','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','DKRIU','dJwdJ','BuDtU','readFileSync','CyHkP','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','help','OuIre','catch','RqaqJ','lPcAz','xpZsV','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','exit','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','hMVdl','gjeRy','AMUQc','error','clusterId','fzQMH','message','bqBEF','QWMoT','connectionTimeout','2784WGdqhb','server-error','../../utils/userInput','builder','CfhIn','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','3970728GJBHIz','/packages/cli/grid/','kjyOP','grid','onlyGridInCluster','UboHe','usage','Successfully\x20deleted\x20the\x20grid','Namespace:\x20','Cuher','jPNbV','KhBOY','adNcp','EpWaB','INFO','clusterRegion','Cluster:\x20','cSKYu','TQcBw','Failed\x20to\x20delete\x20resources!\x20Error:\x20','region','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','clusterSpawnedVia','YqImc','../../utils/utilityMethods','GjXeU','Skip\x20insecure\x20cert\x20verification.','3808192pPOkkl','body','316263dGTclC','ERROR','VGNxc','../../utils/instrumentationUtils','pfZwM','name','info','fyLDK','16CMyGla','YEeTA','stack','gridId','bgsMn','password','etYze','Pass\x20the\x20ID\x20of\x20the\x20Grid','WebSocket','PyyDD','username','Piljl','description','string','9474550xWiOll','statusCode','delete-grid-called','jnGIN','WvgjZ'];a11_0x58e7=function(){return _0x3adcf8;};return a11_0x58e7();}exports[a11_0x206205(0x1f6)]=a11_0x206205(0x22c),exports['desc']='Delete\x20an\x20Automation\x20grid.',exports[a11_0x206205(0x225)]=function(_0x49f5b7){const _0x2b313e=a11_0x206205,_0x106ca7={};_0x106ca7[_0x2b313e(0x23a)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x106ca7[_0x2b313e(0x218)]='string',_0x106ca7[_0x2b313e(0x200)]=_0x2b313e(0x243),_0x106ca7[_0x2b313e(0x1be)]=_0x2b313e(0x203),_0x106ca7[_0x2b313e(0x1e8)]=_0x2b313e(0x20f);const _0x5acd7d=_0x106ca7,_0x15bba7={};_0x15bba7[_0x2b313e(0x1bf)]=_0x5acd7d[_0x2b313e(0x23a)],_0x15bba7['type']=_0x5acd7d[_0x2b313e(0x218)];const _0xacb117={};_0xacb117[_0x2b313e(0x1bf)]=_0x5acd7d['exUSh'],_0xacb117['type']=_0x5acd7d[_0x2b313e(0x1be)],_0xacb117['default']=![];const _0x528c72={};return _0x528c72[_0x2b313e(0x1d8)]=_0x15bba7,_0x528c72[_0x2b313e(0x204)]=_0xacb117,_0x49f5b7[_0x2b313e(0x22f)](HELP_HEADER_MESSAGE['delete'])[_0x2b313e(0x202)](HELP_FOOTER_MESSAGE)['options'](_0x528c72)[_0x2b313e(0x20f)](_0x5acd7d['WRKLE'])[_0x2b313e(0x1d7)];},exports['handler']=async function(_0xce640b){const _0x4ffad4=a11_0x206205,_0x176f26={'jPNbV':_0x4ffad4(0x228),'jnGIN':_0x4ffad4(0x230),'xpZsV':function(_0x338454,_0x1b4654){return _0x338454!==_0x1b4654;},'GjXeU':_0x4ffad4(0x236),'erloj':_0x4ffad4(0x1f0),'mbOkH':function(_0xa3c033,_0x521b37){return _0xa3c033===_0x521b37;},'MXFKp':_0x4ffad4(0x1ad),'RqaqJ':_0x4ffad4(0x20e),'CfhIn':_0x4ffad4(0x1ba),'jGpss':_0x4ffad4(0x1c0),'HVSxA':'Skip\x20insecure\x20cert\x20verification.','AMUQc':_0x4ffad4(0x203),'YdYvO':_0x4ffad4(0x20f),'JGsJb':function(_0x2d0445){return _0x2d0445();},'HtAxr':function(_0x5a1bb6){return _0x5a1bb6();},'hPLck':_0x4ffad4(0x1fe),'fLUPc':_0x4ffad4(0x1d1),'adNcp':_0x4ffad4(0x1ed),'Cuher':function(_0x13eba0,_0x16a7ce,_0x427b35,_0x1ffc66,_0x3c56ac,_0x24b870,_0x2a51f9){return _0x13eba0(_0x16a7ce,_0x427b35,_0x1ffc66,_0x3c56ac,_0x24b870,_0x2a51f9);},'DKRIU':_0x4ffad4(0x1c3),'SsGQO':_0x4ffad4(0x1f5),'WvgjZ':function(_0x23216,_0x4ee2ac){return _0x23216===_0x4ee2ac;},'vllBZ':_0x4ffad4(0x213),'vKKlY':function(_0x15e9fc,_0x319ba2,_0x46a189,_0x4ac51c){return _0x15e9fc(_0x319ba2,_0x46a189,_0x4ac51c);},'UboHe':function(_0x493aca,_0x48b83d){return _0x493aca===_0x48b83d;},'BuDtU':_0x4ffad4(0x206),'hNbLr':function(_0x44c0a8,_0x5a7c87){return _0x44c0a8===_0x5a7c87;},'YqImc':'PwDHv','mbYud':function(_0x2c52a5,_0x3bb9aa){return _0x2c52a5(_0x3bb9aa);},'LRqaK':_0x4ffad4(0x1ec),'UikFD':_0x4ffad4(0x1f1),'bgsMn':_0x4ffad4(0x1da),'kjyOP':function(_0x4f890b,_0x5f4e62,_0xfe7a64,_0x1b3545,_0x22b696,_0x54ca88,_0x394fd9){return _0x4f890b(_0x5f4e62,_0xfe7a64,_0x1b3545,_0x22b696,_0x54ca88,_0x394fd9);},'FPgOt':_0x4ffad4(0x1fb),'miXHn':'HqOsa','KhBOY':_0x4ffad4(0x1e5),'QmtTz':_0x4ffad4(0x1cf),'fyLDK':function(_0x2b93d0,_0x3cd07c,_0x33834e){return _0x2b93d0(_0x3cd07c,_0x33834e);},'QWMoT':function(_0x510ec2,_0x2cdcc4,_0x5be6fa,_0xbf28c8,_0xd6dcd6,_0x3485cc){return _0x510ec2(_0x2cdcc4,_0x5be6fa,_0xbf28c8,_0xd6dcd6,_0x3485cc);},'gjeRy':function(_0x4c83e2,_0x1339b1){return _0x4c83e2===_0x1339b1;},'rWQcb':_0x4ffad4(0x21f),'dJwdJ':function(_0x2c18da,_0x533eb5){return _0x2c18da!==_0x533eb5;},'OuIre':'erujI','LnndB':_0x4ffad4(0x1d6),'PyyDD':function(_0x4e7391,_0x789be8,_0x24e0cd){return _0x4e7391(_0x789be8,_0x24e0cd);},'yDfCl':function(_0x170338,_0x3951bd){return _0x170338!==_0x3951bd;},'CyHkP':_0x4ffad4(0x223),'cSqXb':function(_0x43207d,_0x314eed){return _0x43207d===_0x314eed;},'fzQMH':_0x4ffad4(0x208),'DcivL':_0x4ffad4(0x205),'pfZwM':function(_0x468904,_0x29f65c){return _0x468904===_0x29f65c;},'DnsZr':'invalid-grid-id','etYze':function(_0x1d1c4c,_0x275f65,_0x57db08,_0x318b8d,_0xdc001b,_0x5276ee,_0x3ac441){return _0x1d1c4c(_0x275f65,_0x57db08,_0x318b8d,_0xdc001b,_0x5276ee,_0x3ac441);},'YEeTA':function(_0x17d005,_0x6b3343,_0x657edf,_0x499183,_0x562f37,_0x5c7281,_0x4b6a6d){return _0x17d005(_0x6b3343,_0x657edf,_0x499183,_0x562f37,_0x5c7281,_0x4b6a6d);},'TQcBw':_0x4ffad4(0x1fd)};try{global_registry['requestId']=_0x176f26[_0x4ffad4(0x1fc)](uuidv4);!fs['existsSync'](_0x176f26['HtAxr'](getCredentialsPath))&&(_0x176f26[_0x4ffad4(0x214)](_0x176f26['hPLck'],_0x176f26['fLUPc'])?(console[_0x4ffad4(0x21b)](_0x176f26[_0x4ffad4(0x235)]),await _0x176f26[_0x4ffad4(0x232)](sendInstrumentationEvent,_0xce640b,_0x176f26['DKRIU'],messageTypes[_0x4ffad4(0x1ac)],_0x176f26[_0x4ffad4(0x1dc)],null,_0xce640b),process[_0x4ffad4(0x216)](0x1)):_0x46951f[_0x4ffad4(0x1b1)](_0x4ffad4(0x231)+_0x34e34f+_0x4ffad4(0x215)));_0x176f26[_0x4ffad4(0x232)](sendInstrumentationEvent,_0xce640b,_0x176f26['DKRIU'],messageTypes[_0x4ffad4(0x237)],null,null,_0xce640b);!_0xce640b['gridId']&&(_0x176f26['WvgjZ'](_0x176f26['vllBZ'],_0x176f26[_0x4ffad4(0x1cd)])?(console['error'](_0x176f26['RqaqJ']),process['exit'](0x1)):_0x495cd1=_0x4ffad4(0x1d0)+_0x47e659[_0x4ffad4(0x1b0)]+'\x22\x20and\x20ID\x20'+_0x1820ca['id']+_0x4ffad4(0x217)+_0x4854af[_0x4ffad4(0x1de)]+_0x4ffad4(0x1dd)+_0x51d1cd[_0x4ffad4(0x21c)]+_0x4ffad4(0x227));const _0x5d2bac=JSON[_0x4ffad4(0x1d9)](fs[_0x4ffad4(0x20c)](_0x176f26['JGsJb'](getCredentialsPath))),[_0x427807,_0x3d4beb]=await _0x176f26[_0x4ffad4(0x1cc)](getGridDetails,_0x5d2bac[_0x4ffad4(0x206)]['username'],_0x5d2bac[_0x4ffad4(0x206)][_0x4ffad4(0x1b8)],_0xce640b[_0x4ffad4(0x1b6)]);if(_0x3d4beb){const _0x450ea2=_0x3d4beb['info'];let _0x272003=_0x4ffad4(0x1d0)+_0x450ea2[_0x4ffad4(0x1b0)]+_0x4ffad4(0x1d5)+_0x450ea2['id']+_0x4ffad4(0x227);_0x3d4beb['onlyGridInCluster']&&_0x176f26[_0x4ffad4(0x22e)](_0x3d4beb[_0x4ffad4(0x23f)],_0x176f26[_0x4ffad4(0x20b)])&&(_0x176f26[_0x4ffad4(0x1c8)](_0x176f26['YqImc'],_0x176f26[_0x4ffad4(0x240)])?_0x272003=_0x4ffad4(0x1d0)+_0x450ea2[_0x4ffad4(0x1b0)]+_0x4ffad4(0x1d5)+_0x450ea2['id']+_0x4ffad4(0x217)+_0x450ea2['clusterName']+'\x22\x20with\x20ID\x20'+_0x450ea2[_0x4ffad4(0x21c)]+_0x4ffad4(0x227):_0xd132b3[_0x4ffad4(0x1c6)](_0x176f26[_0x4ffad4(0x233)]));const _0x5a9ff1=await _0x176f26['mbYud'](inputConfirmation,_0x272003);(_0x176f26['hNbLr'](_0x5a9ff1,undefined)||_0x176f26[_0x4ffad4(0x22e)](_0x5a9ff1,null)||!(_0x176f26[_0x4ffad4(0x22e)](_0x5a9ff1[_0x4ffad4(0x1f7)](),'y')||_0x176f26[_0x4ffad4(0x1c5)](_0x5a9ff1[_0x4ffad4(0x1f7)](),'n')))&&(_0x176f26[_0x4ffad4(0x1f3)](_0x176f26[_0x4ffad4(0x1f8)],_0x176f26[_0x4ffad4(0x207)])?_0x5193cb[_0x4ffad4(0x1c6)](_0x4ffad4(0x239)+_0x237423[_0x4ffad4(0x1de)]+_0x4ffad4(0x23e)):(console[_0x4ffad4(0x21b)](_0x176f26[_0x4ffad4(0x1b7)]),await _0x176f26[_0x4ffad4(0x22b)](sendInstrumentationEvent,_0xce640b,_0x176f26['DKRIU'],messageTypes['ERROR'],_0x176f26[_0x4ffad4(0x1cb)],null,_0xce640b),process[_0x4ffad4(0x216)](0x1)));_0x176f26['hNbLr'](_0x5a9ff1[_0x4ffad4(0x1f7)](),'n')&&(_0x176f26[_0x4ffad4(0x214)](_0x176f26[_0x4ffad4(0x1ea)],_0x176f26['miXHn'])?(_0x1d7d60['info'](_0x176f26[_0x4ffad4(0x1c4)]),_0x1b2699['exit'](0x0)):process[_0x4ffad4(0x216)](0x0));const _0x130e78=WS_ENDPOINT['replace'](_0x176f26[_0x4ffad4(0x234)],_0x5d2bac[_0x4ffad4(0x206)]['username'])['replace'](_0x176f26[_0x4ffad4(0x1db)],_0x5d2bac[_0x4ffad4(0x206)][_0x4ffad4(0x1b8)]),_0x411234={};_0x411234[_0x4ffad4(0x1bb)]=ws,_0x411234[_0x4ffad4(0x221)]=0x36ee80;const _0x348484=new ReconnectingWebSocket(_0x130e78,[],_0x411234);global_registry[_0x4ffad4(0x238)]=_0x450ea2[_0x4ffad4(0x23d)];const _0x4fb55e=_0x450ea2[_0x4ffad4(0x1e4)],_0x13b2d6=await _0x176f26['Cuher'](getCloudProviderObject,_0x4fb55e,_0x450ea2['clusterName'],_0x450ea2[_0x4ffad4(0x1b0)],_0x348484,webSocketUtils,_0xce640b),_0xd45e94=await _0x13b2d6['isClusterPresent']();if(_0xd45e94){const _0x46d412=_0x176f26[_0x4ffad4(0x1f9)](kebabCase,_0x450ea2[_0x4ffad4(0x1b0)]),[_0x411877,_0x1bfc46,_0x533cdc,_0x5108e2,_0x52183c,_0x4ac902]=await _0x176f26[_0x4ffad4(0x1b2)](createK8sClient,_0x13b2d6,_0xce640b['skipTlsCertVerify']);let _0x5d5752=!![];const _0x50ab71={};_0x50ab71[_0x4ffad4(0x1b0)]=_0x46d412,await _0x411877[_0x4ffad4(0x1ef)](_0x50ab71)['then'](_0x2b8187=>{const _0xfb580=_0x4ffad4;_0x176f26['xpZsV'](_0x176f26[_0xfb580(0x242)],_0x176f26[_0xfb580(0x1f2)])?logger[_0xfb580(0x1b1)](_0xfb580(0x231)+_0x46d412+_0xfb580(0x215)):_0x44e462[_0xfb580(0x216)](0x0);})[_0x4ffad4(0x211)](_0x378591=>{const _0x266cc1=_0x4ffad4;_0x176f26[_0x266cc1(0x1f3)](_0x176f26['MXFKp'],_0x176f26[_0x266cc1(0x1ca)])?(logger['warn']('Namespace:\x20'+_0x46d412+_0x266cc1(0x201)),_0x5d5752=![]):(_0x377b26[_0x266cc1(0x1c6)](_0x266cc1(0x231)+_0x3d5fea+_0x266cc1(0x201)),_0x1b8e94=![]);});if(_0x5d5752){await _0x176f26[_0x4ffad4(0x220)](removeGridComponents,_0x411877,_0x1bfc46,_0x533cdc,_0x5108e2,_0x46d412);if(_0x3d4beb[_0x4ffad4(0x22d)]){const _0x24a999=await _0x13b2d6[_0x4ffad4(0x1e6)]();if(_0x24a999)_0x176f26[_0x4ffad4(0x219)](_0x176f26[_0x4ffad4(0x1ce)],_0x176f26[_0x4ffad4(0x1ce)])?await _0x13b2d6[_0x4ffad4(0x1e1)](_0x411877,_0x450ea2[_0x4ffad4(0x23d)]):(_0x35c0fe['error'](_0x176f26[_0x4ffad4(0x212)]),_0x6969ae['exit'](0x1));else{if(_0x176f26[_0x4ffad4(0x20a)](_0x176f26['OuIre'],_0x176f26[_0x4ffad4(0x210)])){const _0x3d4196={};_0x3d4196['description']=_0x176f26[_0x4ffad4(0x226)],_0x3d4196[_0x4ffad4(0x1f4)]=_0x176f26[_0x4ffad4(0x1e7)];const _0x57a3c7={};_0x57a3c7[_0x4ffad4(0x1bf)]=_0x176f26['HVSxA'],_0x57a3c7['type']=_0x176f26[_0x4ffad4(0x21a)],_0x57a3c7[_0x4ffad4(0x1c9)]=![];const _0x413098={};return _0x413098[_0x4ffad4(0x1d8)]=_0x3d4196,_0x413098['skip-tls-cert-verify']=_0x57a3c7,_0x59eb9b['usage'](_0x39a4f7['delete'])[_0x4ffad4(0x202)](_0x29aca9)['options'](_0x413098)['help'](_0x176f26['YdYvO'])['argv'];}else logger[_0x4ffad4(0x1c6)](_0x4ffad4(0x239)+_0x450ea2[_0x4ffad4(0x1de)]+_0x4ffad4(0x23e));}}}}else logger['warn'](_0x176f26[_0x4ffad4(0x233)]);const _0x5962c3=_0x4ffad4(0x1e0)+AG_API_URL+_0x4ffad4(0x22a)+_0xce640b[_0x4ffad4(0x1b6)],_0x2ad9aa={'method':_0x176f26[_0x4ffad4(0x1ff)],'headers':_0x176f26[_0x4ffad4(0x1b2)](getAuthHeader,_0x5d2bac[_0x4ffad4(0x206)][_0x4ffad4(0x1bd)],_0x5d2bac[_0x4ffad4(0x206)]['password']),'throwHttpErrors':![]},_0x43843f=await _0x176f26[_0x4ffad4(0x1bc)](got,_0x5962c3,_0x2ad9aa);_0x176f26['xpZsV'](_0x43843f,null)&&_0x176f26['yDfCl'](_0x43843f,undefined)&&_0x176f26[_0x4ffad4(0x22e)](_0x43843f['statusCode'],0xc8)&&(logger[_0x4ffad4(0x1b1)](_0x176f26[_0x4ffad4(0x1c4)]),process[_0x4ffad4(0x216)](0x0)),logger[_0x4ffad4(0x21b)](_0x4ffad4(0x1df)+_0x43843f['body']),await _0x176f26['kjyOP'](sendInstrumentationEvent,_0xce640b,_0x176f26[_0x4ffad4(0x209)],messageTypes[_0x4ffad4(0x1ac)],_0x176f26[_0x4ffad4(0x20d)],_0x427807,_0xce640b),process['exit'](0x1);}_0x176f26['cSqXb'](_0x427807[_0x4ffad4(0x1c2)],0x191)&&(logger['error'](_0x176f26[_0x4ffad4(0x21d)]),await _0x176f26[_0x4ffad4(0x22b)](sendInstrumentationEvent,_0xce640b,_0x176f26['DKRIU'],messageTypes[_0x4ffad4(0x1ac)],_0x176f26['DcivL'],null,_0xce640b),process[_0x4ffad4(0x216)](0x1)),_0x176f26[_0x4ffad4(0x1af)](_0x427807[_0x4ffad4(0x1c2)],0x190)&&(logger[_0x4ffad4(0x21b)](JSON[_0x4ffad4(0x1d9)](_0x427807[_0x4ffad4(0x245)])[_0x4ffad4(0x21e)]),await _0x176f26[_0x4ffad4(0x232)](sendInstrumentationEvent,_0xce640b,_0x176f26['DKRIU'],messageTypes['ERROR'],_0x176f26[_0x4ffad4(0x1d3)],null,_0xce640b),process['exit'](0x1)),logger['error'](_0x4ffad4(0x1d4)+JSON['stringify'](_0x427807)),await _0x176f26[_0x4ffad4(0x1b9)](sendInstrumentationEvent,_0xce640b,_0x176f26[_0x4ffad4(0x209)],messageTypes[_0x4ffad4(0x1ac)],_0x176f26[_0x4ffad4(0x20d)],_0x427807,_0xce640b),process[_0x4ffad4(0x216)](0x1);}catch(_0x1376f2){logger[_0x4ffad4(0x21b)](_0x4ffad4(0x23c)+_0x1376f2[_0x4ffad4(0x1b5)]),await _0x176f26[_0x4ffad4(0x1b4)](sendInstrumentationEvent,_0xce640b,_0x176f26[_0x4ffad4(0x209)],messageTypes['ERROR'],_0x176f26[_0x4ffad4(0x23b)],_0x1376f2,_0xce640b),process[_0x4ffad4(0x216)](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x1499a1=a12_0x5d75;function a12_0xfb35(){const _0x5beccb=['recommendCommands','Khupj','existsSync','797592DqrvUU','argv','kivjw','AhMgb','parse','BFZXx','got','XTWVZ','KSKtJ','strict','UrbJq','zfzIi','stxRg','hmLaF','handler','FUhmF','WYckJ','qznDC','stringify','lxMEV','bJBbb','usage','BzBHx','wHIEu','mWhoK','exit','BROWSERSTACK_USERNAME','UziEc','oJcub','mkdirSync','init','ocpDw','JBUCO','readFileSync','QLstE','zrPAS','OjHMG','rJTGg','MTQfs','4EtdneJ','description','ERROR','writeFileSync','/automate/plan.json','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Browserstack','cTUYl','mcTgY','../utils/utilityMethods','sPJqJ','options','13681TXcQsU','debug','HAlQR','seQzQ','niPYO','bstack-accesskey','1186458hFnrnl','3390445HPQcub','ryISW','bstack-username','command','error','dTScQ','type','bstackUsername','INFO','requestId','kZKUE','1780696lVcTGA','2427969pBGqmc','env','QdvAd','bbiFP','NeRTL','BCxZd','username','bstackAccesskey','../config/logger','statusCode','15420069KbmAGo','../config/constants','wrong-creds','../utils/instrumentationUtils','XTgSi','21ufWFqK','help','init-called','LJTiL','WJInW','epilogue','unknown-error','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','NFcTI','uuid','CmqvE','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','dQoyC','util','oXslV','GKcbx','inKzT','password','string','utf-8','BROWSERSTACK_ACCESS_KEY'];a12_0xfb35=function(){return _0x5beccb;};return a12_0xfb35();}function a12_0x5d75(_0x4611c9,_0x2d5996){const _0xfb35fc=a12_0xfb35();return a12_0x5d75=function(_0x5d752b,_0x32935b){_0x5d752b=_0x5d752b-0xe3;let _0x18f932=_0xfb35fc[_0x5d752b];return _0x18f932;},a12_0x5d75(_0x4611c9,_0x2d5996);}(function(_0x3968ad,_0x435fdc){const _0x4eaa83=a12_0x5d75,_0x405d13=_0x3968ad();while(!![]){try{const _0x1d4bdf=-parseInt(_0x4eaa83(0x114))/0x1*(-parseInt(_0x4eaa83(0x108))/0x2)+parseInt(_0x4eaa83(0x127))/0x3+parseInt(_0x4eaa83(0x14e))/0x4+parseInt(_0x4eaa83(0x11b))/0x5+-parseInt(_0x4eaa83(0x11a))/0x6+-parseInt(_0x4eaa83(0x136))/0x7*(-parseInt(_0x4eaa83(0x126))/0x8)+-parseInt(_0x4eaa83(0x131))/0x9;if(_0x1d4bdf===_0x435fdc)break;else _0x405d13['push'](_0x405d13['shift']());}catch(_0x46aa0e){_0x405d13['push'](_0x405d13['shift']());}}}(a12_0xfb35,0x72f41));const fs=require('fs'),util=require(a12_0x1499a1(0x143)),got=require(a12_0x1499a1(0xe7)),{v4:uuidv4}=require(a12_0x1499a1(0x13f)),{logger}=require(a12_0x1499a1(0x12f)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x1499a1(0x132)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x1499a1(0x111)),{sendInstrumentationEvent}=require(a12_0x1499a1(0x134));exports[a12_0x1499a1(0x11e)]=a12_0x1499a1(0xff),exports['desc']=a12_0x1499a1(0x141),exports['builder']=function(_0x1f580e){const _0x3eee13=a12_0x1499a1,_0x2bc227={};_0x2bc227[_0x3eee13(0xee)]=_0x3eee13(0x13d),_0x2bc227[_0x3eee13(0x12a)]=_0x3eee13(0x148),_0x2bc227[_0x3eee13(0xeb)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2bc227['XTgSi']=_0x3eee13(0x137);const _0x1ec671=_0x2bc227,_0x5e8d4b={};_0x5e8d4b['description']=_0x1ec671[_0x3eee13(0xee)],_0x5e8d4b[_0x3eee13(0x121)]=_0x1ec671[_0x3eee13(0x12a)];const _0x3afbd1={};_0x3afbd1['description']=_0x1ec671[_0x3eee13(0xeb)],_0x3afbd1[_0x3eee13(0x121)]=_0x1ec671[_0x3eee13(0x12a)];const _0x3bd0a0={};return _0x3bd0a0[_0x3eee13(0x11d)]=_0x5e8d4b,_0x3bd0a0[_0x3eee13(0x119)]=_0x3afbd1,_0x1f580e[_0x3eee13(0xf6)](HELP_HEADER_MESSAGE[_0x3eee13(0xff)])[_0x3eee13(0x13b)](HELP_FOOTER_MESSAGE)[_0x3eee13(0x113)](_0x3bd0a0)[_0x3eee13(0x14b)]()[_0x3eee13(0xea)]()[_0x3eee13(0x137)](_0x1ec671[_0x3eee13(0x135)])['argv'];},exports[a12_0x1499a1(0xef)]=async function(_0x1708ef){const _0x41a426=a12_0x1499a1,_0x51c395={'BzBHx':_0x41a426(0x149),'cTUYl':function(_0x2506f6){return _0x2506f6();},'HAlQR':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','mcTgY':_0x41a426(0x148),'XesVk':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ocpDw':_0x41a426(0x137),'inKzT':function(_0x38670a,_0x9e224a,_0x5b13ce,_0x347bc0,_0x33c9a0,_0x4a3be3,_0x3dd61f){return _0x38670a(_0x9e224a,_0x5b13ce,_0x347bc0,_0x33c9a0,_0x4a3be3,_0x3dd61f);},'AhMgb':_0x41a426(0x138),'NeRTL':function(_0x4c062e,_0x25548e){return _0x4c062e===_0x25548e;},'lxMEV':_0x41a426(0x106),'dTScQ':_0x41a426(0x144),'zrPAS':_0x41a426(0xfd),'stxRg':_0x41a426(0x13a),'WYckJ':function(_0x4bd5ea,_0x16acd2){return _0x4bd5ea!==_0x16acd2;},'kivjw':_0x41a426(0x101),'FUhmF':_0x41a426(0x145),'seQzQ':_0x41a426(0x129),'bJBbb':'HpqJd','ryISW':function(_0x5eee12,_0x4b2f1e){return _0x5eee12===_0x4b2f1e;},'QLstE':'eIlPO','KSKtJ':'Qyzug','OjHMG':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','qznDC':function(_0x5e881a){return _0x5e881a();},'eIXAZ':'GET','lusIb':function(_0x37e2c2,_0xb20b4b,_0x54fb9a){return _0x37e2c2(_0xb20b4b,_0x54fb9a);},'Khupj':function(_0x35403c,_0x4a3b71,_0x43ea4c){return _0x35403c(_0x4a3b71,_0x43ea4c);},'MTQfs':function(_0x490d2f,_0x3a7805){return _0x490d2f===_0x3a7805;},'kZKUE':_0x41a426(0xf9),'XTWVZ':_0x41a426(0xec),'niPYO':_0x41a426(0x13e),'BFZXx':function(_0x689536){return _0x689536();},'dQoyC':function(_0x38d8a3,_0x3a0bec){return _0x38d8a3===_0x3a0bec;},'CmqvE':_0x41a426(0xf8),'BCxZd':_0x41a426(0x10d),'LJTiL':function(_0x5a84e5,_0x44225b,_0x4533f1,_0x520109,_0x30d617,_0x5c5cb2,_0x315e9d){return _0x5a84e5(_0x44225b,_0x4533f1,_0x520109,_0x30d617,_0x5c5cb2,_0x315e9d);},'sPJqJ':_0x41a426(0x133),'PCMwT':function(_0x52b31c,_0x4ed8b3,_0x3d9545,_0x232de8,_0x352168,_0xd33d1b,_0x53f78c){return _0x52b31c(_0x4ed8b3,_0x3d9545,_0x232de8,_0x352168,_0xd33d1b,_0x53f78c);},'UziEc':_0x41a426(0x13c)};try{global_registry[_0x41a426(0x124)]=_0x51c395[_0x41a426(0x10f)](uuidv4),_0x51c395[_0x41a426(0x146)](sendInstrumentationEvent,_0x1708ef,_0x51c395[_0x41a426(0xe4)],messageTypes[_0x41a426(0x123)],null,null,_0x1708ef);const _0x40270a=_0x51c395[_0x41a426(0x10f)](getDirForConfig);!fs[_0x41a426(0x14d)](_0x40270a)&&(_0x51c395[_0x41a426(0x12b)](_0x51c395[_0x41a426(0xf4)],_0x51c395[_0x41a426(0x120)])?_0x5ee5f3=_0x474623['bstackUsername']:fs[_0x41a426(0xfe)](_0x40270a));let _0x115d9c,_0x3aed85;process[_0x41a426(0x128)][_0x41a426(0xfb)]&&(_0x51c395[_0x41a426(0x12b)](_0x51c395[_0x41a426(0x104)],_0x51c395[_0x41a426(0xed)])?_0x44bfb=_0x5f4cc2[_0x41a426(0xe5)](_0x2135bf[_0x41a426(0x102)](_0x150c76,_0x51c395[_0x41a426(0xf7)])):_0x115d9c=process[_0x41a426(0x128)]['BROWSERSTACK_USERNAME']);process[_0x41a426(0x128)]['BROWSERSTACK_ACCESS_KEY']&&(_0x51c395[_0x41a426(0xf1)](_0x51c395[_0x41a426(0xe3)],_0x51c395[_0x41a426(0xe3)])?_0x284cad=_0xbf5f81[_0x41a426(0x128)]['BROWSERSTACK_ACCESS_KEY']:_0x3aed85=process[_0x41a426(0x128)][_0x41a426(0x14a)]);if(_0x1708ef[_0x41a426(0x122)]){if(_0x51c395['NeRTL'](_0x51c395[_0x41a426(0xf0)],_0x51c395[_0x41a426(0x117)])){let _0x415840={};const _0x579ecf=_0x51c395[_0x41a426(0x10f)](_0x3eb29f);_0x4c7aee[_0x41a426(0x14d)](_0x579ecf)&&(_0x415840=_0x27bbac[_0x41a426(0xe5)](_0x39d4fe[_0x41a426(0x102)](_0x579ecf,_0x51c395[_0x41a426(0xf7)])));const _0x5008e5={};_0x5008e5[_0x41a426(0x12d)]=_0xc514f,_0x5008e5['password']=_0x4e074f,_0x415840[_0x41a426(0x10e)]=_0x5008e5,_0x58c527[_0x41a426(0x10b)](_0x579ecf,_0x557df3[_0x41a426(0xf3)](_0x415840)),_0x5358d7[_0x41a426(0xfa)](0x0);}else _0x115d9c=_0x1708ef[_0x41a426(0x122)];}_0x1708ef[_0x41a426(0x12e)]&&(_0x51c395[_0x41a426(0x12b)](_0x51c395[_0x41a426(0xf5)],_0x51c395[_0x41a426(0xf5)])?_0x3aed85=_0x1708ef[_0x41a426(0x12e)]:_0x9140ff=!![]);if(_0x51c395['ryISW'](_0x115d9c,undefined)||_0x51c395[_0x41a426(0x12b)](_0x3aed85,undefined)){if(_0x51c395['NeRTL'](_0x51c395[_0x41a426(0x103)],_0x51c395[_0x41a426(0xe9)]))_0x95a02=_0x1bf74c[_0x41a426(0x128)][_0x41a426(0xfb)];else{logger[_0x41a426(0x115)](_0x51c395[_0x41a426(0x105)]);const [_0x3546bc,_0x459ec9]=await _0x51c395[_0x41a426(0xf2)](inputBstackKeys);_0x115d9c=_0x3546bc,_0x3aed85=_0x459ec9;}}let _0x56e87a=![];const _0xaa5467='https://'+_0x115d9c+':'+_0x3aed85+'@'+BS_API_URL+_0x41a426(0x10c),_0x53fa83={'method':_0x51c395['eIXAZ'],'headers':_0x51c395['lusIb'](getAuthHeader,_0x115d9c,_0x3aed85),'throwHttpErrors':![]},_0x459fd1=await _0x51c395[_0x41a426(0x14c)](got,_0xaa5467,_0x53fa83);_0x51c395[_0x41a426(0xf1)](_0x459fd1,null)&&_0x51c395[_0x41a426(0xf1)](_0x459fd1,undefined)&&_0x51c395[_0x41a426(0x107)](_0x459fd1[_0x41a426(0x130)],0xc8)&&(_0x51c395[_0x41a426(0x11c)](_0x51c395[_0x41a426(0x125)],_0x51c395[_0x41a426(0xe8)])?_0x203393=_0x269e09[_0x41a426(0x12e)]:_0x56e87a=!![]);if(_0x56e87a){if(_0x51c395[_0x41a426(0xf1)](_0x51c395[_0x41a426(0x118)],_0x51c395[_0x41a426(0x118)])){const _0x4bae55={};_0x4bae55[_0x41a426(0x109)]=_0x51c395[_0x41a426(0x116)],_0x4bae55[_0x41a426(0x121)]=_0x51c395[_0x41a426(0x110)];const _0x5a737a={};_0x5a737a[_0x41a426(0x109)]=_0x51c395['XesVk'],_0x5a737a[_0x41a426(0x121)]=_0x51c395[_0x41a426(0x110)];const _0x32d8ae={};return _0x32d8ae[_0x41a426(0x11d)]=_0x4bae55,_0x32d8ae[_0x41a426(0x119)]=_0x5a737a,_0x33c772['usage'](_0x4dfc16['init'])['epilogue'](_0x25d5b7)[_0x41a426(0x113)](_0x32d8ae)[_0x41a426(0x14b)]()[_0x41a426(0xea)]()['help'](_0x51c395[_0x41a426(0x100)])[_0x41a426(0x14f)];}else{let _0x37e76a={};const _0x314b02=_0x51c395[_0x41a426(0xe6)](getCredentialsPath);fs[_0x41a426(0x14d)](_0x314b02)&&(_0x51c395[_0x41a426(0x142)](_0x51c395['CmqvE'],_0x51c395[_0x41a426(0x140)])?_0x37e76a=JSON['parse'](fs[_0x41a426(0x102)](_0x314b02,_0x51c395[_0x41a426(0xf7)])):_0x42d34a[_0x41a426(0xfe)](_0x47d86b));const _0x55a2d3={};_0x55a2d3[_0x41a426(0x12d)]=_0x115d9c,_0x55a2d3[_0x41a426(0x147)]=_0x3aed85,_0x37e76a[_0x41a426(0x10e)]=_0x55a2d3,fs[_0x41a426(0x10b)](_0x314b02,JSON[_0x41a426(0xf3)](_0x37e76a)),process[_0x41a426(0xfa)](0x0);}}else logger['error'](_0x51c395[_0x41a426(0x12c)]),await _0x51c395[_0x41a426(0x139)](sendInstrumentationEvent,_0x1708ef,_0x51c395['AhMgb'],messageTypes['ERROR'],_0x51c395[_0x41a426(0x112)],null,_0x1708ef),process['exit'](0x1);}catch(_0x1f4327){logger[_0x41a426(0x11f)](_0x1f4327['stack']),await _0x51c395['PCMwT'](sendInstrumentationEvent,_0x1708ef,_0x51c395[_0x41a426(0xe4)],messageTypes[_0x41a426(0x10a)],_0x51c395[_0x41a426(0xfc)],_0x1f4327,_0x1708ef),process[_0x41a426(0xfa)](0x1);}};
|
|
1
|
+
const a12_0x48bf0a=a12_0x1d44;(function(_0x13321c,_0x421e04){const _0x29ca54=a12_0x1d44,_0x55b985=_0x13321c();while(!![]){try{const _0x4d8dd3=-parseInt(_0x29ca54(0xd9))/0x1+parseInt(_0x29ca54(0xa4))/0x2*(-parseInt(_0x29ca54(0xc6))/0x3)+-parseInt(_0x29ca54(0x8c))/0x4+-parseInt(_0x29ca54(0x9b))/0x5*(parseInt(_0x29ca54(0xdb))/0x6)+-parseInt(_0x29ca54(0xd1))/0x7+-parseInt(_0x29ca54(0xb6))/0x8+-parseInt(_0x29ca54(0xa1))/0x9*(-parseInt(_0x29ca54(0x7d))/0xa);if(_0x4d8dd3===_0x421e04)break;else _0x55b985['push'](_0x55b985['shift']());}catch(_0x45fa85){_0x55b985['push'](_0x55b985['shift']());}}}(a12_0x4f62,0x2e9e5));function a12_0x1d44(_0x6a6f9b,_0x42ac23){const _0x4f6279=a12_0x4f62();return a12_0x1d44=function(_0x1d4435,_0x42e632){_0x1d4435=_0x1d4435-0x7d;let _0x47b01d=_0x4f6279[_0x1d4435];return _0x47b01d;},a12_0x1d44(_0x6a6f9b,_0x42ac23);}const fs=require('fs'),util=require(a12_0x48bf0a(0x80)),got=require('got'),{v4:uuidv4}=require(a12_0x48bf0a(0xdf)),{logger}=require(a12_0x48bf0a(0x96)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x48bf0a(0xcd)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x48bf0a(0xb5)),{sendInstrumentationEvent}=require(a12_0x48bf0a(0x81));function a12_0x4f62(){const _0x28dd8b=['IzXST','fPazh','6vpMGtr','argv','username','debug','bstack-username','XRkSr','cfHZT','../config/constants','/automate/plan.json','mkdirSync','ViSjo','1732213wwdfld','GixlU','VHUYg','error','PwyAq','help','BROWSERSTACK_ACCESS_KEY','BROWSERSTACK_USERNAME','337175Qnzwab','lkNVW','3234vAmMfV','ABOvp','usage','strict','uuid','UkCjg','pCcpb','lMifo','parse','lelUX','pVvjX','wCPDu','desc','statusCode','SBjNn','ZLWJy','20TQUgKI','kTbLJ','eXqZz','util','../utils/instrumentationUtils','wrong-creds','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','bstackUsername','description','bstackAccesskey','ERROR','OSiAQ','duiqO','recommendCommands','OVAUW','1054084lYNwqp','GET','bbYXb','stringify','SaVdj','options','SSsif','Kusvr','lpIRF','HQrSp','../config/logger','init','mSvNF','Apdff','ykNMN','1980OpeGht','aGMYR','utf-8','AOrOz','exit','CXcJA','6722082fWPIRb','builder','pmFHN','157886RZqGMG','DVrru','InNKJ','requestId','hjqnT','Pvwsp','handler','xMniC','string','bstack-accesskey','Esgmf','Browserstack','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','init-called','epilogue','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','zxZDN','../utils/utilityMethods','666896RqVQmg','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','command','zBYbc','sRqls','INFO','env','IzTIJ','AxaEW','type','VYUzg','JNDDq','readFileSync','existsSync'];a12_0x4f62=function(){return _0x28dd8b;};return a12_0x4f62();}exports[a12_0x48bf0a(0xb8)]='init',exports[a12_0x48bf0a(0xe7)]=a12_0x48bf0a(0x83),exports[a12_0x48bf0a(0xa2)]=function(_0x198c7c){const _0x249665=a12_0x48bf0a,_0x12d3d8={};_0x12d3d8[_0x249665(0xc5)]=_0x249665(0xb7),_0x12d3d8['mSvNF']='string',_0x12d3d8['JNDDq']=_0x249665(0xb0),_0x12d3d8[_0x249665(0xdc)]=_0x249665(0xd6);const _0x14d9c9=_0x12d3d8,_0xe4e035={};_0xe4e035[_0x249665(0x85)]=_0x14d9c9[_0x249665(0xc5)],_0xe4e035[_0x249665(0xbf)]=_0x14d9c9['mSvNF'];const _0x386080={};_0x386080[_0x249665(0x85)]=_0x14d9c9[_0x249665(0xc1)],_0x386080['type']=_0x14d9c9[_0x249665(0x98)];const _0x5afa36={};return _0x5afa36[_0x249665(0xca)]=_0xe4e035,_0x5afa36[_0x249665(0xad)]=_0x386080,_0x198c7c['usage'](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x249665(0x91)](_0x5afa36)[_0x249665(0x8a)]()[_0x249665(0xde)]()[_0x249665(0xd6)](_0x14d9c9[_0x249665(0xdc)])[_0x249665(0xc7)];},exports[a12_0x48bf0a(0xaa)]=async function(_0x371e00){const _0x5a0400=a12_0x48bf0a,_0x4b9071={'SaVdj':_0x5a0400(0xb7),'XRkSr':_0x5a0400(0xac),'UkCjg':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','VHUYg':_0x5a0400(0xd6),'lpIRF':function(_0x15c748){return _0x15c748();},'OVAUW':_0x5a0400(0x9d),'InNKJ':function(_0x453b9f,_0x28d853,_0x2e9ccf,_0xa3486b,_0x550028,_0x1e4926,_0xace344){return _0x453b9f(_0x28d853,_0x2e9ccf,_0xa3486b,_0x550028,_0x1e4926,_0xace344);},'GixlU':_0x5a0400(0xb1),'ykNMN':function(_0x1e6538){return _0x1e6538();},'eXqZz':function(_0x3bb708,_0x3957f7){return _0x3bb708!==_0x3957f7;},'ozaWV':'mDLLv','kTbLJ':function(_0x4a5cbd,_0x4874fe){return _0x4a5cbd===_0x4874fe;},'lelUX':_0x5a0400(0xa5),'hjqnT':_0x5a0400(0xba),'ViSjo':function(_0x15b69d,_0x2413da){return _0x15b69d===_0x2413da;},'AOrOz':_0x5a0400(0xbe),'CXcJA':_0x5a0400(0xae),'lMifo':_0x5a0400(0x8e),'xMniC':'HotLk','pmFHN':function(_0x50bc6e,_0x20aab5){return _0x50bc6e===_0x20aab5;},'zBYbc':_0x5a0400(0x88),'Apdff':_0x5a0400(0xb3),'lkNVW':function(_0x1770fc){return _0x1770fc();},'PwyAq':_0x5a0400(0x8d),'Pvwsp':function(_0x2674ca,_0x27ada0,_0x3dceea){return _0x2674ca(_0x27ada0,_0x3dceea);},'yEZjx':function(_0x29b94e,_0x255ca0){return _0x29b94e===_0x255ca0;},'pCcpb':function(_0x2ab4bb,_0x3a62ba){return _0x2ab4bb===_0x3a62ba;},'VYUzg':_0x5a0400(0xe5),'aGMYR':function(_0x5b4cd2,_0x453ec3){return _0x5b4cd2===_0x453ec3;},'ZLWJy':_0x5a0400(0x95),'cfHZT':_0x5a0400(0xc4),'SSsif':function(_0xc3cc53,_0x4f11e6){return _0xc3cc53!==_0x4f11e6;},'wCPDu':_0x5a0400(0xb4),'SBjNn':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Kusvr':function(_0x1bc697,_0x4b5cb2,_0x1bb4d9,_0x216b73,_0x2d28a4,_0x58bdc5,_0x57d694){return _0x1bc697(_0x4b5cb2,_0x1bb4d9,_0x216b73,_0x2d28a4,_0x58bdc5,_0x57d694);},'duiqO':_0x5a0400(0x82),'IzTIJ':'unknown-error'};try{global_registry[_0x5a0400(0xa7)]=_0x4b9071[_0x5a0400(0x94)](uuidv4),_0x4b9071[_0x5a0400(0xa6)](sendInstrumentationEvent,_0x371e00,_0x4b9071[_0x5a0400(0xd2)],messageTypes[_0x5a0400(0xbb)],null,null,_0x371e00);const _0x1a2532=_0x4b9071[_0x5a0400(0x9a)](getDirForConfig);!fs[_0x5a0400(0xc3)](_0x1a2532)&&(_0x4b9071['eXqZz'](_0x4b9071['ozaWV'],_0x4b9071['ozaWV'])?_0x2adab3[_0x5a0400(0xcf)](_0x2f28a0):fs[_0x5a0400(0xcf)](_0x1a2532));let _0xe38090,_0x2fa63c;process[_0x5a0400(0xbc)]['BROWSERSTACK_USERNAME']&&(_0x4b9071['kTbLJ'](_0x4b9071[_0x5a0400(0xe4)],_0x4b9071[_0x5a0400(0xa8)])?_0x4438c5=_0x59661a[_0x5a0400(0x84)]:_0xe38090=process[_0x5a0400(0xbc)][_0x5a0400(0xd8)]);if(process[_0x5a0400(0xbc)]['BROWSERSTACK_ACCESS_KEY']){if(_0x4b9071['ViSjo'](_0x4b9071[_0x5a0400(0x9e)],_0x4b9071[_0x5a0400(0xa0)])){const _0x57dbc9={};_0x57dbc9[_0x5a0400(0x85)]=_0x4b9071[_0x5a0400(0x90)],_0x57dbc9[_0x5a0400(0xbf)]=_0x4b9071['XRkSr'];const _0x3c175d={};_0x3c175d[_0x5a0400(0x85)]=_0x4b9071[_0x5a0400(0xe0)],_0x3c175d[_0x5a0400(0xbf)]=_0x4b9071[_0x5a0400(0xcb)];const _0x480b54={};return _0x480b54['bstack-username']=_0x57dbc9,_0x480b54[_0x5a0400(0xad)]=_0x3c175d,_0x2b475b[_0x5a0400(0xdd)](_0x1b732b[_0x5a0400(0x97)])[_0x5a0400(0xb2)](_0x5a7178)['options'](_0x480b54)[_0x5a0400(0x8a)]()['strict']()[_0x5a0400(0xd6)](_0x4b9071[_0x5a0400(0xd3)])[_0x5a0400(0xc7)];}else _0x2fa63c=process[_0x5a0400(0xbc)][_0x5a0400(0xd7)];}if(_0x371e00[_0x5a0400(0x84)]){if(_0x4b9071[_0x5a0400(0x7e)](_0x4b9071[_0x5a0400(0xe2)],_0x4b9071[_0x5a0400(0xe2)]))_0xe38090=_0x371e00[_0x5a0400(0x84)];else{let _0x11b9cf={};const _0x1df994=_0x4b9071[_0x5a0400(0x94)](_0x573176);_0xbec481['existsSync'](_0x1df994)&&(_0x11b9cf=_0x5287cb[_0x5a0400(0xe3)](_0x19bbd9[_0x5a0400(0xc2)](_0x1df994,_0x4b9071[_0x5a0400(0x8b)])));const _0x412dd4={};_0x412dd4[_0x5a0400(0xc8)]=_0x3c7cd8,_0x412dd4['password']=_0x2aa7f6,_0x11b9cf[_0x5a0400(0xaf)]=_0x412dd4,_0x5da4d0['writeFileSync'](_0x1df994,_0xc9cde7[_0x5a0400(0x8f)](_0x11b9cf)),_0x499cc7['exit'](0x0);}}_0x371e00[_0x5a0400(0x86)]&&(_0x4b9071['kTbLJ'](_0x4b9071[_0x5a0400(0xab)],_0x4b9071[_0x5a0400(0xab)])?_0x2fa63c=_0x371e00[_0x5a0400(0x86)]:_0x3bdc2b=_0x2337be['env'][_0x5a0400(0xd8)]);if(_0x4b9071['pmFHN'](_0xe38090,undefined)||_0x4b9071[_0x5a0400(0xd0)](_0x2fa63c,undefined)){if(_0x4b9071[_0x5a0400(0xa3)](_0x4b9071[_0x5a0400(0xb9)],_0x4b9071[_0x5a0400(0xb9)])){logger[_0x5a0400(0xc9)](_0x4b9071[_0x5a0400(0x99)]);const [_0x40479e,_0x47f9d2]=await _0x4b9071[_0x5a0400(0xda)](inputBstackKeys);_0xe38090=_0x40479e,_0x2fa63c=_0x47f9d2;}else _0x1541c2=!![];}let _0x3b4d70=![];const _0x87d62f='https://'+_0xe38090+':'+_0x2fa63c+'@'+BS_API_URL+_0x5a0400(0xce),_0x3dc6c6={'method':_0x4b9071[_0x5a0400(0xd5)],'headers':_0x4b9071[_0x5a0400(0xa9)](getAuthHeader,_0xe38090,_0x2fa63c),'throwHttpErrors':![]},_0x2e5b53=await _0x4b9071['Pvwsp'](got,_0x87d62f,_0x3dc6c6);_0x4b9071[_0x5a0400(0x7f)](_0x2e5b53,null)&&_0x4b9071[_0x5a0400(0x7f)](_0x2e5b53,undefined)&&_0x4b9071['yEZjx'](_0x2e5b53[_0x5a0400(0xe8)],0xc8)&&(_0x4b9071[_0x5a0400(0xe1)](_0x4b9071[_0x5a0400(0xc0)],_0x4b9071['VYUzg'])?_0x3b4d70=!![]:_0x3c43f6=_0x5a6e4f['env'][_0x5a0400(0xd7)]);if(_0x3b4d70){if(_0x4b9071[_0x5a0400(0x9c)](_0x4b9071[_0x5a0400(0xea)],_0x4b9071[_0x5a0400(0xcc)]))_0x2e30fd=_0x565756['parse'](_0x2ef5e4['readFileSync'](_0x30d54c,_0x4b9071[_0x5a0400(0x8b)]));else{let _0x4ba040={};const _0x138ff2=_0x4b9071['ykNMN'](getCredentialsPath);fs[_0x5a0400(0xc3)](_0x138ff2)&&(_0x4b9071[_0x5a0400(0x92)](_0x4b9071[_0x5a0400(0xe6)],_0x4b9071[_0x5a0400(0xe6)])?_0xaab839=_0x45f202[_0x5a0400(0x86)]:_0x4ba040=JSON[_0x5a0400(0xe3)](fs[_0x5a0400(0xc2)](_0x138ff2,_0x4b9071[_0x5a0400(0x8b)])));const _0x1f11a3={};_0x1f11a3['username']=_0xe38090,_0x1f11a3['password']=_0x2fa63c,_0x4ba040[_0x5a0400(0xaf)]=_0x1f11a3,fs['writeFileSync'](_0x138ff2,JSON[_0x5a0400(0x8f)](_0x4ba040)),process[_0x5a0400(0x9f)](0x0);}}else logger[_0x5a0400(0xd4)](_0x4b9071[_0x5a0400(0xe9)]),await _0x4b9071[_0x5a0400(0x93)](sendInstrumentationEvent,_0x371e00,_0x4b9071['GixlU'],messageTypes[_0x5a0400(0x87)],_0x4b9071[_0x5a0400(0x89)],null,_0x371e00),process[_0x5a0400(0x9f)](0x1);}catch(_0x448326){logger[_0x5a0400(0xd4)](_0x448326['stack']),await _0x4b9071[_0x5a0400(0x93)](sendInstrumentationEvent,_0x371e00,_0x4b9071[_0x5a0400(0xd2)],messageTypes['ERROR'],_0x4b9071[_0x5a0400(0xbd)],_0x448326,_0x371e00),process[_0x5a0400(0x9f)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x2c6b(_0x55ac35,_0x15622a){const _0x1b006a=a13_0x1b00();return a13_0x2c6b=function(_0x2c6bf1,_0x34d224){_0x2c6bf1=_0x2c6bf1-0xfb;let _0x4a6014=_0x1b006a[_0x2c6bf1];return _0x4a6014;},a13_0x2c6b(_0x55ac35,_0x15622a);}const a13_0x3fe6c3=a13_0x2c6b;function a13_0x1b00(){const _0x89be9e=['demandCommand','1342812YiJxXp','16XLrvWz','usage','1523347LIFaMJ','120715FXXrLK','epilogue','1205778MgRvUG','help','root','3373216KTZirF','List\x20down\x20the\x20Grid\x20resources.','CQXAy','commandDir','685017BWZNJi','builder','110BzXFAJ','dbtNu','handler','desc','21vjuNgt','recommendCommands','5amGFOg','94228jWyqQL','list','../config/constants'];a13_0x1b00=function(){return _0x89be9e;};return a13_0x1b00();}(function(_0x1a4e91,_0x50fc91){const _0x53cdd0=a13_0x2c6b,_0x1a67d1=_0x1a4e91();while(!![]){try{const _0x456655=parseInt(_0x53cdd0(0xfe))/0x1+parseInt(_0x53cdd0(0x114))/0x2+-parseInt(_0x53cdd0(0x10d))/0x3*(-parseInt(_0x53cdd0(0x110))/0x4)+parseInt(_0x53cdd0(0x10f))/0x5*(parseInt(_0x53cdd0(0x100))/0x6)+-parseInt(_0x53cdd0(0xfd))/0x7*(-parseInt(_0x53cdd0(0xfb))/0x8)+parseInt(_0x53cdd0(0x107))/0x9*(-parseInt(_0x53cdd0(0x109))/0xa)+-parseInt(_0x53cdd0(0x103))/0xb;if(_0x456655===_0x50fc91)break;else _0x1a67d1['push'](_0x1a67d1['shift']());}catch(_0x549619){_0x1a67d1['push'](_0x1a67d1['shift']());}}}(a13_0x1b00,0x6db2e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3fe6c3(0x112));exports['command']=a13_0x3fe6c3(0x111),exports[a13_0x3fe6c3(0x10c)]=a13_0x3fe6c3(0x104),exports[a13_0x3fe6c3(0x108)]=function(_0x39464a){const _0x5f04a6=a13_0x3fe6c3,_0x2ca7bc={};_0x2ca7bc[_0x5f04a6(0x10a)]='list_commands',_0x2ca7bc[_0x5f04a6(0x105)]=_0x5f04a6(0x101);const _0x1c16d3=_0x2ca7bc;return _0x39464a[_0x5f04a6(0x106)](_0x1c16d3[_0x5f04a6(0x10a)])[_0x5f04a6(0x113)]()[_0x5f04a6(0xfc)](HELP_HEADER_MESSAGE['list'][_0x5f04a6(0x102)])[_0x5f04a6(0xff)](HELP_FOOTER_MESSAGE)[_0x5f04a6(0x10e)]()['strict']()[_0x5f04a6(0x101)](_0x1c16d3[_0x5f04a6(0x105)]);},exports[a13_0x3fe6c3(0x10b)]=function(_0x228f41){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x20619b=a14_0x422c;(function(_0x10913c,_0x29c125){const _0x3ed58c=a14_0x422c,_0x84f2cb=_0x10913c();while(!![]){try{const _0x588a6d=parseInt(_0x3ed58c(0x17b))/0x1*(-parseInt(_0x3ed58c(0x176))/0x2)+parseInt(_0x3ed58c(0x17d))/0x3+parseInt(_0x3ed58c(0x170))/0x4*(parseInt(_0x3ed58c(0x173))/0x5)+parseInt(_0x3ed58c(0x165))/0x6+-parseInt(_0x3ed58c(0x167))/0x7*(parseInt(_0x3ed58c(0x174))/0x8)+-parseInt(_0x3ed58c(0x171))/0x9+-parseInt(_0x3ed58c(0x147))/0xa*(-parseInt(_0x3ed58c(0x155))/0xb);if(_0x588a6d===_0x29c125)break;else _0x84f2cb['push'](_0x84f2cb['shift']());}catch(_0x516f8f){_0x84f2cb['push'](_0x84f2cb['shift']());}}}(a14_0x2d1c,0xb83c5));function a14_0x2d1c(){const _0x887c1c=['1351qHTfuB','https://','VbLwD','pSzrG','uuid','../../utils/instrumentationUtils','stringify','INFO','gridProfile','136420wLsAGi','7021206OttiPL','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','205OUPXNA','16648CkBuvr','wCXdH','1126vwxYUQ','options','FUZKX','help','exit','2630xjEgnH','cloudProvider','4511517oyogKp','epCLc','grid-profile-name','command','GkXSq','all-grid-profiles','password','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rtojc','VHzlV','epilogue','usage','FCqzC','init-not-called','/packages/cli/get-grid-profiles','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bstackAccesskey','YhfIO','statusCode','nNgfL','error','pLdEg','table','unauthorised','DbKxK','3912100MYNRax','builder','zjzma','QIZCP','allGridProfiles','DKheo','forEach','body','username','Browserstack','description','argv','boolean','type','11fAAmdj','push','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','fimSn','concurrency','ERROR','parse','desc','handler','readFileSync','region','list-grid-profiles-called','bstackUsername','NAyVG','Failed\x20to\x20list\x20resources!\x20Error:\x20','742392zCSGcK','list'];a14_0x2d1c=function(){return _0x887c1c;};return a14_0x2d1c();}const fs=require('fs'),got=require('got'),{table}=require(a14_0x20619b(0x144)),{v4:uuidv4}=require(a14_0x20619b(0x16b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x20619b(0x16c));function a14_0x422c(_0xd2cca,_0x322573){const _0x2d1c1c=a14_0x2d1c();return a14_0x422c=function(_0x422c48,_0x18badf){_0x422c48=_0x422c48-0x130;let _0x479cae=_0x2d1c1c[_0x422c48];return _0x479cae;},a14_0x422c(_0xd2cca,_0x322573);}exports[a14_0x20619b(0x131)]='grid-profiles',exports[a14_0x20619b(0x15d)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x20619b(0x148)]=function(_0x47dca2){const _0x42603c=a14_0x20619b,_0x4f9747={};_0x4f9747[_0x42603c(0x132)]=_0x42603c(0x158),_0x4f9747['szFKe']=_0x42603c(0x153),_0x4f9747['VbLwD']='help';const _0x7f6ab8=_0x4f9747,_0x4d1c55={};_0x4d1c55[_0x42603c(0x151)]=_0x7f6ab8[_0x42603c(0x132)],_0x4d1c55[_0x42603c(0x154)]=_0x7f6ab8['szFKe'];const _0x477032={};return _0x477032[_0x42603c(0x133)]=_0x4d1c55,_0x47dca2[_0x42603c(0x139)](HELP_HEADER_MESSAGE[_0x42603c(0x166)][_0x42603c(0x16f)])[_0x42603c(0x138)](HELP_FOOTER_MESSAGE)[_0x42603c(0x177)](_0x477032)[_0x42603c(0x179)](_0x7f6ab8[_0x42603c(0x169)])[_0x42603c(0x152)];},exports[a14_0x20619b(0x15e)]=async function(_0x2c2816){const _0x56f4a8=a14_0x20619b,_0x56cce4={'VHzlV':function(_0x3e061c){return _0x3e061c();},'YhfIO':function(_0x3dfc3e){return _0x3dfc3e();},'Rwqci':_0x56f4a8(0x13d),'fautS':function(_0x34ed7b,_0x5ccee0,_0x2013ad,_0x5401bb,_0x498d45,_0x1d9f83,_0x23d42c){return _0x34ed7b(_0x5ccee0,_0x2013ad,_0x5401bb,_0x498d45,_0x1d9f83,_0x23d42c);},'FUZKX':_0x56f4a8(0x161),'yQJID':_0x56f4a8(0x13b),'DbKxK':'GET','epCLc':function(_0xe03bbd,_0x778a3c,_0x4be5fd){return _0xe03bbd(_0x778a3c,_0x4be5fd);},'gVLNb':function(_0x1b2d37,_0x51f7d5,_0x5425a9,_0x2fed1d,_0x3018c0,_0x541b17,_0x123b36){return _0x1b2d37(_0x51f7d5,_0x5425a9,_0x2fed1d,_0x3018c0,_0x541b17,_0x123b36);},'FCqzC':function(_0x4eeb69,_0x58d1e4,_0x831633){return _0x4eeb69(_0x58d1e4,_0x831633);},'rtojc':function(_0x2d74b2,_0x87740){return _0x2d74b2!==_0x87740;},'nNgfL':function(_0x197ada,_0xa0887f){return _0x197ada===_0xa0887f;},'DKheo':_0x56f4a8(0x157),'eqgcq':_0x56f4a8(0x130),'NAyVG':'cloud-provider','atBeg':_0x56f4a8(0x160),'zjzma':_0x56f4a8(0x15a),'pSzrG':function(_0x45a666,_0x1bd1d1){return _0x45a666(_0x1bd1d1);},'pLdEg':_0x56f4a8(0x172),'fimSn':function(_0x2e06d4,_0x1f4d01,_0x4c554e,_0x268105,_0x273023,_0x10cf35,_0x561812){return _0x2e06d4(_0x1f4d01,_0x4c554e,_0x268105,_0x273023,_0x10cf35,_0x561812);},'rHunY':_0x56f4a8(0x145),'auFAJ':function(_0x709013,_0x419eb9,_0x374d7e,_0x1ade00,_0x40d7d4,_0x5283b8,_0x1014ed){return _0x709013(_0x419eb9,_0x374d7e,_0x1ade00,_0x40d7d4,_0x5283b8,_0x1014ed);},'wCXdH':'server-error','cXIyp':function(_0x3a2a43,_0x280b03,_0x21df3a,_0x1f959b,_0x416282,_0x1e06a7,_0x378499){return _0x3a2a43(_0x280b03,_0x21df3a,_0x1f959b,_0x416282,_0x1e06a7,_0x378499);},'QIZCP':'unknown-error'};try{global_registry['requestId']=_0x56cce4[_0x56f4a8(0x137)](uuidv4);let _0x2b14ad=_0x56f4a8(0x168)+AG_API_URL+_0x56f4a8(0x13c);_0x2c2816[_0x56f4a8(0x14b)]&&(_0x2b14ad=_0x56f4a8(0x168)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x56cce4[_0x56f4a8(0x13f)](getCredentialsPath))&&(console[_0x56f4a8(0x142)](_0x56cce4['Rwqci']),await _0x56cce4['fautS'](sendInstrumentationEvent,_0x2c2816,_0x56cce4[_0x56f4a8(0x178)],messageTypes[_0x56f4a8(0x15b)],_0x56cce4['yQJID'],null,_0x2c2816),process['exit'](0x1));const _0x5dc37c=JSON['parse'](fs[_0x56f4a8(0x15f)](_0x56cce4[_0x56f4a8(0x13f)](getCredentialsPath))),_0x428fb2={'method':_0x56cce4[_0x56f4a8(0x146)],'headers':_0x56cce4[_0x56f4a8(0x17e)](getAuthHeader,_0x5dc37c[_0x56f4a8(0x150)][_0x56f4a8(0x14f)],_0x5dc37c[_0x56f4a8(0x150)][_0x56f4a8(0x134)]),'throwHttpErrors':![]};global_registry[_0x56f4a8(0x162)]=_0x5dc37c[_0x56f4a8(0x150)][_0x56f4a8(0x14f)],global_registry[_0x56f4a8(0x13e)]=_0x5dc37c['Browserstack']['password'],_0x56cce4['gVLNb'](sendInstrumentationEvent,_0x2c2816,_0x56cce4[_0x56f4a8(0x178)],messageTypes[_0x56f4a8(0x16e)],null,null,_0x2c2816);const _0x1ff60f=await _0x56cce4[_0x56f4a8(0x13a)](got,_0x2b14ad,_0x428fb2);if(_0x56cce4[_0x56f4a8(0x136)](_0x1ff60f,null)&&_0x56cce4[_0x56f4a8(0x136)](_0x1ff60f,undefined)&&_0x56cce4['nNgfL'](_0x1ff60f[_0x56f4a8(0x140)],0xc8)){const _0x5767a1=JSON[_0x56f4a8(0x15c)](_0x1ff60f[_0x56f4a8(0x14e)]);console['log'](_0x56cce4[_0x56f4a8(0x14c)]);const _0x1b017c=[];_0x1b017c[_0x56f4a8(0x156)]([_0x56cce4['eqgcq'],_0x56cce4[_0x56f4a8(0x163)],_0x56cce4['atBeg'],_0x56cce4[_0x56f4a8(0x149)]]),_0x5767a1[_0x56f4a8(0x14d)](_0x5eed74=>{const _0x436fd2=_0x56f4a8;_0x1b017c['push']([_0x5eed74['name'],_0x5eed74[_0x436fd2(0x17c)],_0x5eed74[_0x436fd2(0x160)],_0x5eed74[_0x436fd2(0x15a)]]);}),console['log'](_0x56cce4[_0x56f4a8(0x16a)](table,_0x1b017c)),process[_0x56f4a8(0x17a)](0x0);}_0x56cce4[_0x56f4a8(0x141)](_0x1ff60f['statusCode'],0x191)&&(console[_0x56f4a8(0x142)](_0x56cce4[_0x56f4a8(0x143)]),await _0x56cce4[_0x56f4a8(0x159)](sendInstrumentationEvent,_0x2c2816,_0x56cce4['FUZKX'],messageTypes['ERROR'],_0x56cce4['rHunY'],null,_0x2c2816),process[_0x56f4a8(0x17a)](0x1)),console[_0x56f4a8(0x142)](_0x56f4a8(0x135)+JSON[_0x56f4a8(0x16d)](_0x1ff60f)),await _0x56cce4['auFAJ'](sendInstrumentationEvent,_0x2c2816,_0x56cce4[_0x56f4a8(0x178)],messageTypes['ERROR'],_0x56cce4[_0x56f4a8(0x175)],_0x1ff60f,_0x2c2816),process['exit'](0x1);}catch(_0x3c2bf1){console[_0x56f4a8(0x142)](_0x56f4a8(0x164)+_0x3c2bf1['stack']),await _0x56cce4['cXIyp'](sendInstrumentationEvent,_0x2c2816,_0x56cce4['FUZKX'],messageTypes['ERROR'],_0x56cce4[_0x56f4a8(0x14a)],_0x3c2bf1,_0x2c2816),process['exit'](0x1);}};
|