browserstack-node-sdk 1.46.3 → 1.46.5
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/generated/sdk-messages_pb.d.ts +116 -0
- package/generated/sdk-messages_pb.js +902 -0
- package/generated/sdk_grpc_pb.d.ts +10 -0
- package/generated/sdk_grpc_pb.js +66 -0
- 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/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -0
- 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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.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/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.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/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/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/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/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/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
|
-
function a9_0x4cf6(){const _0x719061=['grid-spawning-failed','clusterRegion','kxEAW','hvvrg','defaultGridProfile','setupNewCluster','RPABO','grid','Added\x20Turboscale\x20Uploader\x20deployment.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','get-grid-url-null-response','Enabling\x20Hub\x20HA\x20flow','pTlpA','cloud-provider','XVJOG','mRzlW','ikHDo','397815LDDJAl','\x20in\x20existing\x20cluster\x20\x27','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','xlnNh','LkWLG','fwsUW','ShuOx','sGcbO','1850760rOqfDu','TwgqC','hFRPm','BnZlu','TaqBk','FlmZA','lzBvc','HWWWV','create-grid-checks-grid-already-exists','luUwk','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','bXsnH','uuxqx','lYGlu','lxogL','Creating\x20namespace','dPjlR','mlAPp','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','IRMUw','YzBOj','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','owtEJ','reconnecting-websocket','Subnets:\x20','getGridHostname','../../utils/utilityMethods','rOyUg','existsSync','RGbae','newCluster','kafkaPassword','wHFsT','FoDKR','DTbJW','UmjIP','hub-ha-deployments-failed','body','createOtherResources','tzFOO','HCljV','RSGZm','yPqcF','mrIZE','hubHa','uonFz','mSuui','LoCNt','mrwuP','cluster-autoupgrade','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','zeeqy','uVJxW','bZpJH','browserstack','jxQSo','SKsBH','get-grid-url-auth-failed','Gfton','FOEii','Grid\x20spawned\x20on\x20the\x20cluster','1904BwFbsE','concurrency','VAERf','RWbMU','HXFoD','skip-tls-cert-verify','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Flag\x20to\x20enable\x20Hub\x20HA','pre-spawned-subnets-not-selected','ilNjD','browserVersion','Hbuii','jOtoF','js-yaml','GcRGX','LLJkf','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','GSiDe','erXaz','SkyOG','gqwau','Namespace\x20created','skipTlsCertVerify','ICVUg','KQYrJ','FYOSl','EsIFZ','region','BHyWO','CsDRO','Cluster:\x20','goIsb','EvRiU','grid-name','turboscale-uploader.yaml','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','CLI\x20run\x20finished:\x20','info','BPArH','dAWRX','Bfhpq','IyAdZ','wvdQp','get-grid-url-non-200','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','tBiZi','Will\x20be\x20spawning\x20the\x20grid\x20','uploaderVersion','../../utils/instrumentationUtils','../../config/constants','UnlPr','FSMzv','path','alreadyPresent','Pkgrg','VpAUv','jJXpE','2hdHTZg','kdSoZ','argv','6bpsZMu','metadata','warn','Jcdts','Added\x20Redis\x20deployment.','Spawning\x20the\x20grid\x20','LXidw','RqFtj','type','13131mREzvC','LOMoI','sendEventToBackend','../../utils/createk8sClient','yeAyv','EihZf','MlPFq','oIMJP','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ZkAqJ','jDbeg','ybUGG','ETfZk','Create\x20a\x20private/public\x20grid.','NbwgZ','hjqes','ZXhvT','vEMUr','lxhjS','NmHTy','bstackUsername','qgNmx','replace','error','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','includes','76041rKUllK','spec','YPOMk','3|6|5|1|2|7|4|8|0','vpc','FhMqA','LUfnc','WSfaB','gridProfiles','XGlKm','NdtCH','kafkaUploader','readNamespacedService','3494685jkITYK','deleteCluster','GET','maxNodes','addListeners','Create\x20a\x20new\x20Automation\x20grid.','exit','seAMi','LrSGb','YBdln','UyobM','enableHubHa','length','hubVersion','../../cloudproviders/utils','DIttx','getResourceClientId','subnets','lFAEA','description','ATpId','wBkml','duQTx','managedBy','TVpPD','CLI\x20run\x20started','FDsRY','BfzNx','debug','qSSwD','bnaHM','rTMxX','cNIqR','clusterAutoUpgrade','\x20using\x20\x27','hqIgL','gUBXX','JqkHd','cloudProvider','pjMGd','route53','IIEXW','bstackAccesskey','username','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','heNjc','private-ingress-nginx-controller','azurefile-csi-premium','QAgMS','password','nSLSc','pZcgV','usage','minNodes','LWcvq','aCEsG','templates','Zdihg','create-grid-called','TKMxG','twaMq','fYtWd','stringify','ApGiq','clusterAutoupgrade','iOdYF','grid-profile','create-grid-checks-auth-failed','kRgLD','gridName','CLI_RUN_STARTED','stack','ingress-nginx','message','kixpY','isClusterPresent','cluster-name','PDGjA','gquml','YVJXf','readFileAsync','hReMs','xpiIX','fVHjQ','default','2396506kAoGoR','split','/packages/cli/create-grid-checks','lYPrI','http','hubHaNameSpace','Aehrn','zZoUU','gridProfile','rxwEp','loadAll','Snxxb','isVPCPresent','Skip\x20insecure\x20cert\x20verification.','turboscale-managed-identity-','boolean','private-grid','qytQh','../../utils/webSocketUtils','xTIaU','redisPassword','Found\x20VPC:\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','UkRNzNYCBU','/packages/cli/get-grid-url?gridIdentifier=','WZORo','Deleting\x20the\x20CloudFormation\x20Stacks','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ddWWz','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','://','RtNgm','epilogue','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ElJBb','YTSrk','OmEDV','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.','name','8|2|1|4|3|0|5|6|7','hub-ha','builder','join','FwMxU','DDDUD','731250cBZFsu','YnRjg','tERWQ','<PasswordPlaceholder>','WebSocket','WXBHW','VjGgy','HxQXZ','user','AOhFI','updateClusterAlreadyPresent','Browserstack','create','YHCWK','lbQvo','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Cluster\x20','uploaderImageVersion','OCoqh','parse','ncLGf','weyGO','foVXh','TqyZo','ERROR','czJVg','desc','VxeyH','WVfgb','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','PtEeX','handler','3|2|0|4|1','\x20are\x20not\x20present\x20in\x20VPC:\x20','setupHubHa','Gpsma','kFrne','XICNl','JQpCD','UeDTe','IqGyG','https://','iKokg','hhxgc','fTdHE','sendResourceDataToHST','LdWeC','hubharesources','rMRIa','OYKxc','setupAutoscaler','isSubnetsValid','CLI_RUN_FINISHED','yoRJJ','Creating\x20Hub\x20HA\x20resources','XDVgX','qhZZW','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','GZjnQ','createNamespace','isPrivateGrid','lsAwZ','MiaBa','pre-spawned-invalid-subnets','JgrrT','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','toLowerCase','Adding\x20Turboscale\x20Uploader\x20deployment...','PrJAx','help','privateGrid','Grid\x20profile\x20fetched\x20from\x20backend','<UsernamePlaceholder>','bitnami-kafka.yaml','init-not-called','serviceAccountName','../..','yfzjl','JNinN','EpOjI','trZUm','Found\x20Subnets:\x20','createdBy','BnwOB','iCDLg','lcDBk','isNewAWSCluster','Adding\x20Kafka\x20deployment...','rplMN','jmFYJ','s3bucket','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Adding\x20Secret\x20Mapping','rtNnG','xmPoG','statusCode','TIsET','DhMZr','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','LOG','../../config/logger','\x27\x20grid\x20profile','labels','cgrIR','template','5|0|15|11|9|14|8|4|6|13|2|7|12|10|1|3','oqqhn','Epyd5nXbRK','instanceType','Adding\x20Websocket\x20listeners','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','2|0|4|3|1','NNXJz','bitnami-redis.yaml','string','CHbcX','clusterName'];a9_0x4cf6=function(){return _0x719061;};return a9_0x4cf6();}const a9_0x7915e0=a9_0x2fdf;function a9_0x2fdf(_0x777a89,_0x3c3f16){const _0x4cf633=a9_0x4cf6();return a9_0x2fdf=function(_0x2fdf70,_0x1dae8e){_0x2fdf70=_0x2fdf70-0xa5;let _0x158dfd=_0x4cf633[_0x2fdf70];return _0x158dfd;},a9_0x2fdf(_0x777a89,_0x3c3f16);}(function(_0x3475d1,_0x53895b){const _0x186b71=a9_0x2fdf,_0x4ebc52=_0x3475d1();while(!![]){try{const _0x2433b0=-parseInt(_0x186b71(0x1c7))/0x1+parseInt(_0x186b71(0x1a1))/0x2*(parseInt(_0x186b71(0x122))/0x3)+parseInt(_0x186b71(0x12b))/0x4+-parseInt(_0x186b71(0x1d4))/0x5+-parseInt(_0x186b71(0x1a4))/0x6*(-parseInt(_0x186b71(0x229))/0x7)+parseInt(_0x186b71(0x168))/0x8*(parseInt(_0x186b71(0x1ad))/0x9)+parseInt(_0x186b71(0x257))/0xa;if(_0x2433b0===_0x53895b)break;else _0x4ebc52['push'](_0x4ebc52['shift']());}catch(_0x37b1d9){_0x4ebc52['push'](_0x4ebc52['shift']());}}}(a9_0x4cf6,0x8e582));const fs=require('fs'),ws=require('ws'),path=require(a9_0x7915e0(0x19c)),yaml=require(a9_0x7915e0(0x175)),ReconnectingWebSocket=require(a9_0x7915e0(0x142)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x7915e0(0x23b)),{logger}=require(a9_0x7915e0(0xff)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x7915e0(0x145)),{getCloudProviderObject}=require(a9_0x7915e0(0x1e2)),{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_0x7915e0(0x199)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x7915e0(0x1b0)),{sendInstrumentationEvent}=require(a9_0x7915e0(0x198));exports['command']=a9_0x7915e0(0x118),exports[a9_0x7915e0(0xb5)]=a9_0x7915e0(0x1d9),exports[a9_0x7915e0(0x253)]=function(_0x457644){const _0x594386=a9_0x7915e0,_0x1d714b={};_0x1d714b[_0x594386(0x1db)]=_0x594386(0x24b),_0x1d714b[_0x594386(0x1cc)]=_0x594386(0x10e),_0x1d714b[_0x594386(0x141)]=_0x594386(0x13d),_0x1d714b['YVJXf']=_0x594386(0x124),_0x1d714b[_0x594386(0x1f9)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1d714b['UnlPr']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1d714b[_0x594386(0x207)]=_0x594386(0x1ba),_0x1d714b['WvLsX']=_0x594386(0x236),_0x1d714b['weyGO']=_0x594386(0x238),_0x1d714b[_0x594386(0xcb)]=_0x594386(0x16f),_0x1d714b[_0x594386(0x152)]=_0x594386(0x140),_0x1d714b['qSSwD']='help';const _0x94cc68=_0x1d714b,_0x5ea841={};_0x5ea841[_0x594386(0x1e7)]=_0x94cc68[_0x594386(0x1db)],_0x5ea841['type']=_0x94cc68['FhMqA'];const _0x3f6e5b={};_0x3f6e5b[_0x594386(0x1e7)]=_0x94cc68['owtEJ'],_0x3f6e5b['type']=_0x94cc68[_0x594386(0x1cc)];const _0x1f34e2={};_0x1f34e2[_0x594386(0x1e7)]=_0x94cc68[_0x594386(0x223)],_0x1f34e2[_0x594386(0x1ac)]=_0x94cc68['FhMqA'];const _0x46b3cc={};_0x46b3cc['description']=_0x94cc68[_0x594386(0x1f9)],_0x46b3cc[_0x594386(0x1ac)]=_0x94cc68[_0x594386(0x1cc)];const _0xfa3af0={};_0xfa3af0[_0x594386(0x1e7)]=_0x94cc68[_0x594386(0x19a)],_0xfa3af0[_0x594386(0x1ac)]=_0x94cc68['FhMqA'];const _0x55c16e={};_0x55c16e[_0x594386(0x1e7)]=_0x94cc68['pZcgV'],_0x55c16e['type']=_0x94cc68[_0x594386(0x1cc)];const _0x541608={};_0x541608[_0x594386(0x1e7)]=_0x94cc68['WvLsX'],_0x541608['type']=_0x94cc68[_0x594386(0xb0)],_0x541608[_0x594386(0x228)]=![];const _0x3bf80d={};_0x3bf80d['description']=_0x94cc68[_0x594386(0xcb)],_0x3bf80d[_0x594386(0x1ac)]=_0x94cc68[_0x594386(0xb0)],_0x3bf80d[_0x594386(0x228)]=![];const _0xeaaedd={};_0xeaaedd[_0x594386(0x1e7)]=_0x94cc68[_0x594386(0x152)],_0xeaaedd['type']=_0x94cc68[_0x594386(0xb0)],_0xeaaedd[_0x594386(0x228)]=![];const _0x14b5c0={};return _0x14b5c0[_0x594386(0x189)]=_0x5ea841,_0x14b5c0[_0x594386(0x216)]=_0x3f6e5b,_0x14b5c0[_0x594386(0x220)]=_0x1f34e2,_0x14b5c0['cloud-provider']=_0x46b3cc,_0x14b5c0['region']=_0xfa3af0,_0x14b5c0[_0x594386(0x239)]=_0x55c16e,_0x14b5c0[_0x594386(0x16d)]=_0x541608,_0x14b5c0[_0x594386(0x252)]=_0x3bf80d,_0x14b5c0['cluster-autoupgrade']=_0xeaaedd,_0x457644[_0x594386(0x208)](HELP_HEADER_MESSAGE['create'])[_0x594386(0x24a)](HELP_FOOTER_MESSAGE)['options'](_0x14b5c0)[_0x594386(0xe0)](_0x94cc68[_0x594386(0x1f1)])[_0x594386(0x1a3)];},exports[a9_0x7915e0(0xba)]=async function(_0x218ce1){const _0x41b3b6=a9_0x7915e0,_0x3f6daa={'YPOMk':_0x41b3b6(0x1c4),'cNIqR':'true','RWbMU':_0x41b3b6(0x228),'JNinN':_0x41b3b6(0xbb),'TqyZo':_0x41b3b6(0x240),'mSuui':_0x41b3b6(0x161),'RtNgm':_0x41b3b6(0x11c),'yeAyv':_0x41b3b6(0x106),'zeeqy':_0x41b3b6(0x1a6),'twaMq':function(_0x33a78,_0x4fcdf3){return _0x33a78===_0x4fcdf3;},'fTdHE':'https','lYPrI':function(_0x389b55,_0x5ea638){return _0x389b55(_0x5ea638);},'gqwau':_0x41b3b6(0x203),'TwgqC':_0x41b3b6(0x104),'Snxxb':function(_0x45f346,_0x599888,_0x431513,_0x2b7813,_0x317e9d,_0x2bd34e,_0x24f2fa,_0x1e2251,_0x583e68,_0x57e695,_0x192104,_0x1745f4,_0x5de82c){return _0x45f346(_0x599888,_0x431513,_0x2b7813,_0x317e9d,_0x2bd34e,_0x24f2fa,_0x1e2251,_0x583e68,_0x57e695,_0x192104,_0x1745f4,_0x5de82c);},'jmFYJ':function(_0x4ae3a4,_0xd2b596){return _0x4ae3a4!==_0xd2b596;},'ElJBb':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','FDsRY':'premium-rwo','NdtCH':_0x41b3b6(0x1ca),'YHCWK':_0x41b3b6(0x1ed),'LLJkf':_0x41b3b6(0x22d),'CwUja':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','FoDKR':_0x41b3b6(0x10e),'hhxgc':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hvvrg':_0x41b3b6(0x124),'BHyWO':_0x41b3b6(0x16e),'trZUm':_0x41b3b6(0x244),'bZpJH':'Create\x20a\x20private/public\x20grid.','TIsET':'Skip\x20insecure\x20cert\x20verification.','kixpY':_0x41b3b6(0x238),'EInYN':'Flag\x20to\x20enable\x20Hub\x20HA','yoRJJ':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','pjMGd':_0x41b3b6(0xe0),'JgrrT':function(_0x15a537){return _0x15a537();},'VxeyH':function(_0x1a6ade,_0x364822){return _0x1a6ade===_0x364822;},'TaqBk':_0x41b3b6(0x131),'TKMxG':_0x41b3b6(0x1b5),'mRzlW':function(_0x4981aa,_0x347786,_0xa333af,_0x2072ca,_0x409107,_0x4a0240,_0x5a2a9d){return _0x4981aa(_0x347786,_0xa333af,_0x2072ca,_0x409107,_0x4a0240,_0x5a2a9d);},'EihZf':_0x41b3b6(0x20e),'ftYwO':_0x41b3b6(0xe5),'Jcdts':_0x41b3b6(0xe3),'DTbJW':_0x41b3b6(0x25a),'iOdYF':_0x41b3b6(0x108),'oIMJP':_0x41b3b6(0x10c),'gquml':_0x41b3b6(0x1dd),'HXFoD':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','lsAwZ':function(_0x28945f,_0x5ebbe4,_0x17b1c5,_0x5c0b4e,_0x12919f,_0x316f11,_0x62e387,_0x19faf3){return _0x28945f(_0x5ebbe4,_0x17b1c5,_0x5c0b4e,_0x12919f,_0x316f11,_0x62e387,_0x19faf3);},'RxSmS':'prespawned-cluster-args-not-passed','YvpHX':_0x41b3b6(0x19f),'uonFz':_0x41b3b6(0xd3),'qxisn':_0x41b3b6(0x18b),'LUfnc':'non-aws-azure-cluster','wHFsT':function(_0x4c192e,_0xa8b149){return _0x4c192e===_0xa8b149;},'goIsb':function(_0x4b7199,_0x28915c){return _0x4b7199!==_0x28915c;},'FmXRC':_0x41b3b6(0x13b),'mrwuP':_0x41b3b6(0x206),'Hbuii':function(_0x65a766,_0x428c7f,_0x4405d8,_0x86d4aa,_0x11b90b,_0xe9efa3,_0x4039d8){return _0x65a766(_0x428c7f,_0x4405d8,_0x86d4aa,_0x11b90b,_0xe9efa3,_0x4039d8);},'UmjIP':'TIIbY','FwMxU':'WBxiv','FlmZA':_0x41b3b6(0x12d),'JQpCD':_0x41b3b6(0x11d),'ncLGf':_0x41b3b6(0xbe),'MfHjT':_0x41b3b6(0x1d6),'BfzNx':function(_0x12e605,_0x106c8f,_0x22a25c){return _0x12e605(_0x106c8f,_0x22a25c);},'LoCNt':_0x41b3b6(0xef),'QAgMS':function(_0x52f7f2,_0xe77451){return _0x52f7f2===_0xe77451;},'ICVUg':'rBMvY','WZORo':function(_0x307fad,_0x55df4c){return _0x307fad===_0x55df4c;},'UyobM':function(_0x100fc8,_0x217054){return _0x100fc8!==_0x217054;},'czJVg':_0x41b3b6(0x121),'jxQSo':_0x41b3b6(0xcc),'MiaBa':_0x41b3b6(0x23f),'ApGiq':function(_0x53020e,_0x404fbe,_0x140efc,_0x55f3f4,_0x371736,_0x1e2c76,_0x5ac544,_0x5c2189){return _0x53020e(_0x404fbe,_0x140efc,_0x55f3f4,_0x371736,_0x1e2c76,_0x5ac544,_0x5c2189);},'lNaXc':'create-grid-checks-null-response','TVpPD':_0x41b3b6(0x230),'Bfhpq':_0x41b3b6(0x1e6),'tERWQ':_0x41b3b6(0x200),'DIttx':_0x41b3b6(0x217),'BPArH':function(_0x4936c7,_0x4eaf11){return _0x4936c7!==_0x4eaf11;},'rtNnG':_0x41b3b6(0x127),'BnwOB':function(_0x372010,_0x1cb636,_0x6fc22d,_0x3d9179,_0x501305,_0x305d4f,_0x1e8934,_0x23aa44){return _0x372010(_0x1cb636,_0x6fc22d,_0x3d9179,_0x501305,_0x305d4f,_0x1e8934,_0x23aa44);},'QIOhB':'create-grid-checks-non-200','FOEii':_0x41b3b6(0xe2),'jOtoF':'rHuvC','erXaz':_0x41b3b6(0x133),'cgrIR':function(_0x2850d9,_0xfe0cd4){return _0x2850d9===_0xfe0cd4;},'ybUGG':_0x41b3b6(0x19e),'CHbcX':_0x41b3b6(0x154),'HWWWV':'1|4|2|0|3','fwsUW':function(_0x1fbba1,_0x4634bc){return _0x1fbba1===_0x4634bc;},'fVHjQ':function(_0x265189,_0xf34b58){return _0x265189===_0xf34b58;},'jJXpE':_0x41b3b6(0x179),'xucWB':'SnMvM','kFrne':function(_0x4f9a90,_0x2f2926){return _0x4f9a90===_0x2f2926;},'rOyUg':function(_0x268b48,_0x1d7fbe){return _0x268b48===_0x1d7fbe;},'hjqes':'SzPHy','CsDRO':'nkAha','rTMxX':_0x41b3b6(0x194),'FSMzv':'create-grid-checks-invalid-profile','JiMtK':function(_0x12741f,_0x483215){return _0x12741f===_0x483215;},'ilNjD':function(_0x49e0db,_0x204785){return _0x49e0db!==_0x204785;},'XDVgX':_0x41b3b6(0xb7),'EsIFZ':_0x41b3b6(0x20d),'NbwgZ':function(_0x21568e,_0x432909){return _0x21568e!==_0x432909;},'HxQXZ':_0x41b3b6(0x113),'uuxqx':_0x41b3b6(0x13f),'lbQvo':_0x41b3b6(0x1be),'IyAdZ':function(_0x20d549,_0x38e19f){return _0x20d549===_0x38e19f;},'WsLUD':_0x41b3b6(0x148),'rxwEp':function(_0x3b5f60,_0x502085){return _0x3b5f60===_0x502085;},'MlPFq':_0x41b3b6(0x1b9),'iKokg':_0x41b3b6(0x13c),'GcRGX':function(_0x667ff5,_0x100fc1){return _0x667ff5!==_0x100fc1;},'ImnfV':_0x41b3b6(0x1e9),'dAWRX':_0x41b3b6(0xb1),'oqqhn':'ldemt','nEbbD':function(_0x1599aa,_0x15eb67){return _0x1599aa===_0x15eb67;},'PrJAx':_0x41b3b6(0x226),'DhMZr':_0x41b3b6(0x218),'RPABO':_0x41b3b6(0x251),'EvRiU':'EjSDd','DDDUD':function(_0x22e13b,_0x264263){return _0x22e13b===_0x264263;},'bnaHM':_0x41b3b6(0x260),'SPSyU':_0x41b3b6(0x126),'UeDTe':function(_0x3d1e59,_0x5b66a4){return _0x3d1e59===_0x5b66a4;},'IIEXW':_0x41b3b6(0x221),'gUBXX':_0x41b3b6(0x23c),'GZjnQ':_0x41b3b6(0xb8),'ZkAqJ':function(_0x24ccb5,_0x3cd040){return _0x24ccb5!=_0x3cd040;},'WXBHW':function(_0x1633d0,_0x28707a){return _0x1633d0!=_0x28707a;},'RlWsR':function(_0x3d48c5,_0x44c60d){return _0x3d48c5!==_0x44c60d;},'FYOSl':function(_0xf9c69a,_0x47fc28){return _0xf9c69a>_0x47fc28;},'xvRkc':function(_0x375c32,_0xf67f2e){return _0x375c32===_0xf67f2e;},'HCljV':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','lcDBk':function(_0x1c9c25,_0x4ad92e,_0x557ef1,_0x492ed7,_0x11cd69,_0x506110,_0x4c113c,_0x53324f){return _0x1c9c25(_0x4ad92e,_0x557ef1,_0x492ed7,_0x11cd69,_0x506110,_0x4c113c,_0x53324f);},'LWcvq':_0x41b3b6(0x170),'wvdQp':_0x41b3b6(0x246),'dAmqM':'pre-spawned-invalid-vpc','yPqcF':_0x41b3b6(0xda),'hReMs':_0x41b3b6(0x10b),'PtEeX':_0x41b3b6(0x24f),'qgNmx':'Cluster\x20created\x20successfully','tmYLo':function(_0x54fb3e,_0x36b875){return _0x54fb3e===_0x36b875;},'IRMUw':function(_0x31f9f8,_0x2bece5,_0x4fe7b5){return _0x31f9f8(_0x2bece5,_0x4fe7b5);},'HdvkD':_0x41b3b6(0xd1),'ZXhvT':function(_0x4e0ead,_0x4db1ef,_0x321f9f){return _0x4e0ead(_0x4db1ef,_0x321f9f);},'njLLL':function(_0xa49306,_0x286092,_0x5b7f4c){return _0xa49306(_0x286092,_0x5b7f4c);},'BnZlu':_0x41b3b6(0xf7),'lxogL':_0x41b3b6(0xe7),'XICNl':_0x41b3b6(0x20c),'KQYrJ':_0x41b3b6(0xca),'lxhjS':'browserstack-secret.yaml','kdSoZ':'utf-8','YTSrk':function(_0x14159d,_0x231822){return _0x14159d(_0x231822);},'hqIgL':function(_0x1d695c,_0x565059){return _0x1d695c(_0x565059);},'VjGgy':function(_0x38e13b,_0x549d4a){return _0x38e13b(_0x549d4a);},'gthPd':'Added\x20Secret\x20Mapping','RqFtj':'efs-csi','ShuOx':function(_0x274e76,_0x5523ae){return _0x274e76===_0x5523ae;},'Gfton':'Adding\x20Redis\x20deployment...','XVJOG':_0x41b3b6(0x10d),'sHgwP':_0x41b3b6(0x1a8),'SKsBH':_0x41b3b6(0xf2),'yfzjl':_0x41b3b6(0xe4),'bXsnH':'Added\x20Kafka\x20deployment.','jDbeg':_0x41b3b6(0xde),'fYtWd':_0x41b3b6(0x18a),'EpOjI':function(_0x233866,_0x1b9e6d){return _0x233866===_0x1b9e6d;},'tBiZi':function(_0x1fd0c5,_0xef134f,_0x354b05){return _0x1fd0c5(_0xef134f,_0x354b05);},'NmHTy':_0x41b3b6(0x119),'duQTx':'Created\x20Hub\x20HA\x20resources','VAERf':'Hub\x20HA\x20setup\x20completed\x20successfully.','THWGG':function(_0x6bfda4,_0x39cf5b,_0x24b10d,_0x21f9c8,_0x4b3b0b,_0xcabc27,_0x7eb71e,_0x192d36){return _0x6bfda4(_0x39cf5b,_0x24b10d,_0x21f9c8,_0x4b3b0b,_0xcabc27,_0x7eb71e,_0x192d36);},'XGlKm':_0x41b3b6(0x14f),'uVJxW':function(_0x33bd2e,_0xcabadd){return _0x33bd2e(_0xcabadd);},'LOMoI':_0x41b3b6(0x13a),'xmPoG':function(_0x18e32d,_0xc6b409){return _0x18e32d!==_0xc6b409;},'heNjc':_0x41b3b6(0xa6),'Fzpco':'Namespace\x20Created','Aehrn':_0x41b3b6(0x17d),'KIARv':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','rplMN':'Spawning\x20Grid\x20on\x20the\x20Cluster','YnRjg':function(_0x2c9754,_0x131dfb){return _0x2c9754===_0x131dfb;},'SkyOG':function(_0x104723,_0x2dd938,_0x39259c,_0x5e6560,_0x4dd72f,_0x49aa95,_0x30c578,_0x481b42,_0x2da22d,_0x59c0cd,_0xcc705e){return _0x104723(_0x2dd938,_0x39259c,_0x5e6560,_0x4dd72f,_0x49aa95,_0x30c578,_0x481b42,_0x2da22d,_0x59c0cd,_0xcc705e);},'qytQh':_0x41b3b6(0x167),'WSfaB':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','SbazI':function(_0x2a508e,_0x1e3886,_0x4164fb,_0x63bcfb,_0x1130ae){return _0x2a508e(_0x1e3886,_0x4164fb,_0x63bcfb,_0x1130ae);},'LdWeC':_0x41b3b6(0x202),'LXidw':'ingress-nginx-controller','mrIZE':_0x41b3b6(0x21c),'ATpId':function(_0x1c1578,_0x4c50e1,_0x22ba45){return _0x1c1578(_0x4c50e1,_0x22ba45);},'OmEDV':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','nWpvk':function(_0x43835d,_0x3aecae,_0xb91d0b,_0x542168,_0x22bdb1,_0x315c56,_0xc99fb,_0x468337){return _0x43835d(_0x3aecae,_0xb91d0b,_0x542168,_0x22bdb1,_0x315c56,_0xc99fb,_0x468337);},'IqGyG':_0x41b3b6(0x11b),'LrSGb':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ddWWz':_0x41b3b6(0x164),'lYGlu':_0x41b3b6(0x193),'OCoqh':function(_0xec7bfd,_0x2576ab){return _0xec7bfd===_0x2576ab;},'luUwk':_0x41b3b6(0x243),'sGcbO':function(_0x482fea,_0xfcd30c,_0x452961,_0x4d3205,_0x3e5936,_0x5c2135){return _0x482fea(_0xfcd30c,_0x452961,_0x4d3205,_0x3e5936,_0x5c2135);},'aCEsG':_0x41b3b6(0x111)};let _0x3f5e8c=![],_0x1a387b=![],_0x19a8ee,_0x28d239,_0x464d6c,_0x40c1a2,_0x5a3995,_0x2b0fa1,_0x15f2ba,_0x29c3c3,_0x428f2d,_0x6f9dca,_0x3af6b0,_0x16da0b,_0x2ab731,_0xc49c3a,_0x45f908=0x1,_0x3a5583=0xe;try{global_registry['requestId']=_0x3f6daa[_0x41b3b6(0xdb)](uuidv4),global_registry[_0x41b3b6(0xd7)]=![];!fs[_0x41b3b6(0x147)](_0x3f6daa[_0x41b3b6(0xdb)](getCredentialsPath))&&(_0x3f6daa['VxeyH'](_0x3f6daa[_0x41b3b6(0x12f)],_0x3f6daa[_0x41b3b6(0x12f)])?(console[_0x41b3b6(0x1c4)](_0x3f6daa[_0x41b3b6(0x20f)]),await _0x3f6daa['mRzlW'](sendInstrumentationEvent,_0x218ce1,_0x3f6daa[_0x41b3b6(0x1b2)],messageTypes[_0x41b3b6(0xb3)],_0x3f6daa['ftYwO'],null,_0x218ce1),process[_0x41b3b6(0x1da)](0x1)):_0x4b4458=null);await _0x3f6daa[_0x41b3b6(0x120)](sendInstrumentationEvent,_0x218ce1,_0x3f6daa[_0x41b3b6(0x1b2)],messageTypes['INFO'],null,null,_0x218ce1);const _0x15d0bc=JSON[_0x41b3b6(0xae)](fs['readFileSync'](_0x3f6daa[_0x41b3b6(0xdb)](getCredentialsPath)));global_registry[_0x41b3b6(0x1c1)]=_0x15d0bc[_0x41b3b6(0xa6)][_0x41b3b6(0x1ff)],global_registry[_0x41b3b6(0x1fe)]=_0x15d0bc[_0x41b3b6(0xa6)]['password'];const _0x28fefa=WS_ENDPOINT['replace'](_0x3f6daa[_0x41b3b6(0x1a7)],_0x15d0bc[_0x41b3b6(0xa6)]['username'])[_0x41b3b6(0x1c3)](_0x3f6daa[_0x41b3b6(0x14d)],_0x15d0bc[_0x41b3b6(0xa6)][_0x41b3b6(0x205)]),_0xa631dd={};_0xa631dd[_0x41b3b6(0x25b)]=ws,_0xa631dd['connectionTimeout']=0x36ee80,_0x16da0b=new ReconnectingWebSocket(_0x28fefa,[],_0xa631dd),logger[_0x41b3b6(0x1f0)](_0x3f6daa[_0x41b3b6(0x215)]),webSocketUtils[_0x41b3b6(0x1d8)](_0x16da0b,_0x218ce1[_0x41b3b6(0x25f)],_0x218ce1[_0x41b3b6(0x205)]);const _0x2d60dd=_0x218ce1[_0x41b3b6(0x219)]||DEFAULT_GRID_NAME;if(_0x218ce1[_0x41b3b6(0x110)]||_0x218ce1[_0x41b3b6(0x1fa)]||_0x218ce1[_0x41b3b6(0x183)]){if(_0x3f6daa[_0x41b3b6(0x210)](_0x3f6daa[_0x41b3b6(0x1b4)],_0x3f6daa[_0x41b3b6(0x1b4)])){if(!(_0x218ce1['clusterName']&&_0x218ce1['cloudProvider']&&_0x218ce1['region'])){if(_0x3f6daa[_0x41b3b6(0xb6)](_0x3f6daa[_0x41b3b6(0x222)],_0x3f6daa[_0x41b3b6(0x222)]))_0x19a8ee=_0x3f6daa[_0x41b3b6(0x16c)],await _0x3f6daa[_0x41b3b6(0xd8)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa['RxSmS'],_0x3f6daa[_0x41b3b6(0x1c9)]),logger['error'](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1);else{const _0x3b4141={};_0x3b4141[_0x41b3b6(0x1ac)]=_0x4634b3[_0x41b3b6(0xfe)],_0x3b4141[_0x41b3b6(0x21d)]=_0xec177d,_0x2a1d93['sendEventToBackend'](_0x54bdda,_0x3b4141,_0x3f6daa[_0x41b3b6(0x1c9)],!![]);}}if(![AWS,AZURE,GCP][_0x41b3b6(0x1c6)](_0x218ce1[_0x41b3b6(0x1fa)][_0x41b3b6(0xdd)]())){if(_0x3f6daa[_0x41b3b6(0xf4)](_0x3f6daa['YvpHX'],_0x3f6daa[_0x41b3b6(0x158)]))_0x19a8ee=_0x3f6daa['qxisn'],await _0x3f6daa[_0x41b3b6(0xd8)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa[_0x41b3b6(0x1cd)],_0x3f6daa[_0x41b3b6(0x1c9)]),logger['error'](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1);else{const _0x1a72ea={'azure.workload.identity/use':_0x3f6daa[_0x41b3b6(0x1f4)],..._0x3e9f5e[0x0][_0x41b3b6(0x1c8)][_0x41b3b6(0x103)][_0x41b3b6(0x1a5)][_0x41b3b6(0x101)]};_0x210b16[0x0][_0x41b3b6(0x1c8)][_0x41b3b6(0x103)][_0x41b3b6(0x1a5)][_0x41b3b6(0x101)]=_0x1a72ea,_0x36e088[0x0][_0x41b3b6(0x1c8)]['template'][_0x41b3b6(0x1c8)][_0x41b3b6(0xe6)]=_0x3f6daa[_0x41b3b6(0x16b)];}}if(_0x218ce1[_0x41b3b6(0xe1)]&&_0x3f6daa[_0x41b3b6(0x14b)](_0x218ce1[_0x41b3b6(0xe1)][_0x41b3b6(0xdd)](),_0x3f6daa[_0x41b3b6(0x1f4)])){if(_0x3f6daa[_0x41b3b6(0x187)](_0x3f6daa['FmXRC'],_0x3f6daa[_0x41b3b6(0x15b)]))global_registry[_0x41b3b6(0xd7)]=!![];else{const _0x276a86=_0x3f6daa[_0x41b3b6(0xe9)][_0x41b3b6(0x22a)]('|');let _0x7d26ed=0x0;while(!![]){switch(_0x276a86[_0x7d26ed++]){case'0':_0x3f4089['redisPassword']=_0x3f6daa[_0x41b3b6(0xb2)];continue;case'1':_0x56ca6a[_0x41b3b6(0x1df)]=!![];continue;case'2':_0xd0156d[_0x41b3b6(0x22e)]=_0x3f6daa[_0x41b3b6(0x159)];continue;case'3':_0x18165c[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x249)]);continue;case'4':_0x4c3522[_0x41b3b6(0x14a)]=_0x3f6daa[_0x41b3b6(0x1b1)];continue;}break;}}}global_registry[_0x41b3b6(0x1fa)]=_0x218ce1['cloudProvider'],global_registry['clusterRegion']=_0x218ce1[_0x41b3b6(0x183)],global_registry[_0x41b3b6(0x110)]=_0x218ce1[_0x41b3b6(0x110)];const _0x5ebe6c=await _0x3f6daa['Hbuii'](getCloudProviderObject,_0x218ce1[_0x41b3b6(0x1fa)],_0x218ce1[_0x41b3b6(0x110)],_0x2d60dd,_0x16da0b,webSocketUtils,_0x218ce1),_0x332875=await _0x5ebe6c[_0x41b3b6(0x21f)]();!_0x332875?_0x3f6daa[_0x41b3b6(0x187)](_0x3f6daa[_0x41b3b6(0x14e)],_0x3f6daa[_0x41b3b6(0x255)])?(logger['info']('Cluster:\x20'+_0x218ce1[_0x41b3b6(0x110)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x3f5e8c=![],_0x1a387b=!![]):_0x4a9c3c[_0x41b3b6(0x18d)](_0x41b3b6(0xec)+_0x2a1347[_0x41b3b6(0x212)](_0x21cdf6)+'\x20'):_0x3f6daa['jmFYJ'](_0x3f6daa[_0x41b3b6(0x130)],_0x3f6daa['FlmZA'])?_0x53197a[_0x41b3b6(0x18d)](_0x41b3b6(0x23e)+_0x6a2ee+'\x20'):_0x3f5e8c=!![],_0x464d6c=_0x218ce1[_0x41b3b6(0x110)],_0x28d239=_0x218ce1[_0x41b3b6(0x1fa)]['toLowerCase'](),_0x40c1a2=_0x218ce1[_0x41b3b6(0x183)];}else _0x25793d['region']=_0x2f38c0,_0x23f488[_0x41b3b6(0x1fa)]=_0x46c418,_0x181599[_0x41b3b6(0x149)]=!![],_0xaa776a[_0x41b3b6(0x1f5)]=_0x451a2a[_0x41b3b6(0x214)];}else{if(_0x218ce1[_0x41b3b6(0x231)]){if(_0x3f6daa[_0x41b3b6(0xf4)](_0x3f6daa[_0x41b3b6(0xc1)],_0x3f6daa[_0x41b3b6(0xaf)]))global_registry[_0x41b3b6(0x231)]=_0x218ce1[_0x41b3b6(0x231)];else{const _0xfd49f8={};_0xfd49f8['type']=_0x2aa0f9[_0x41b3b6(0xfe)],_0xfd49f8[_0x41b3b6(0x21d)]=_0x41b3b6(0xab)+_0x4566c8+_0x41b3b6(0xd4),_0x492f97[_0x41b3b6(0x1af)](_0x2ca3f3,_0xfd49f8,_0x3f6daa['zeeqy']),_0x29fe33[_0x41b3b6(0x18d)](_0x41b3b6(0xab)+_0xbc6b4e+_0x41b3b6(0xd4)),_0xd07c41=!![];if(_0x3f6daa[_0x41b3b6(0x210)](_0x395b3a,!![]))throw new _0x370b1a('Cluster\x20'+_0x5045f8+_0x41b3b6(0x1c5));}}}global_registry[_0x41b3b6(0x219)]=_0x218ce1[_0x41b3b6(0x219)];const _0x1353da={'method':_0x3f6daa['MfHjT'],'headers':_0x3f6daa[_0x41b3b6(0x1ef)](getAuthHeader,_0x15d0bc[_0x41b3b6(0xa6)][_0x41b3b6(0x1ff)],_0x15d0bc['Browserstack'][_0x41b3b6(0x205)]),'throwHttpErrors':![]},_0x1919ec={};_0x1919ec[_0x41b3b6(0x219)]=_0x2d60dd;const _0x1822e7=_0x1919ec;_0x1a387b&&(_0x3f6daa[_0x41b3b6(0xb6)](_0x3f6daa[_0x41b3b6(0x15a)],_0x3f6daa[_0x41b3b6(0x15a)])?(_0x1822e7['region']=_0x40c1a2,_0x1822e7['cloudProvider']=_0x28d239,_0x1822e7[_0x41b3b6(0x149)]=!![],_0x1822e7[_0x41b3b6(0x1f5)]=_0x218ce1[_0x41b3b6(0x214)]):_0x387a01[_0x41b3b6(0xd7)]=!![]);_0x218ce1[_0x41b3b6(0x214)]&&(_0x3f6daa[_0x41b3b6(0x204)](_0x3f6daa['ICVUg'],_0x3f6daa[_0x41b3b6(0x17f)])?logger['info'](_0x3f6daa[_0x41b3b6(0x24c)]):(_0x21ff14=_0x17d950[_0x41b3b6(0x1fc)],_0x30c2d8=_0x3f6daa[_0x41b3b6(0xc7)]));const _0x4a552e=_0x41b3b6(0xc4)+AG_API_URL+_0x41b3b6(0x22b),_0x38c223={'searchParams':_0x1822e7,'throwHttpErrors':![],..._0x1353da},_0x123f80=_0x38c223,_0x256174=await _0x3f6daa[_0x41b3b6(0x1ef)](got,_0x4a552e,_0x123f80);(_0x3f6daa['WZORo'](_0x256174,null)||_0x3f6daa['WZORo'](_0x256174,undefined))&&(_0x3f6daa[_0x41b3b6(0x1de)](_0x3f6daa[_0x41b3b6(0xb4)],_0x3f6daa[_0x41b3b6(0x162)])?(_0x19a8ee=_0x3f6daa[_0x41b3b6(0xd9)],await _0x3f6daa[_0x41b3b6(0x213)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes['ERROR'],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa['lNaXc'],_0x3f6daa[_0x41b3b6(0x1c9)]),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process['exit'](0x1)):_0x3f6daa[_0x41b3b6(0x22c)](_0x1da481,_0x132a87[_0x41b3b6(0x1d2)]));_0x3f6daa[_0x41b3b6(0x242)](_0x256174['statusCode'],0x191)&&(_0x3f6daa[_0x41b3b6(0xf4)](_0x3f6daa[_0x41b3b6(0x1ec)],_0x3f6daa[_0x41b3b6(0x190)])?(_0x19a8ee=_0x3f6daa[_0x41b3b6(0x259)],await _0x3f6daa[_0x41b3b6(0x213)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa[_0x41b3b6(0x1e3)],_0x3f6daa[_0x41b3b6(0x1c9)]),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1)):_0x381ecb[_0x41b3b6(0xd7)]=!![]);_0x3f6daa[_0x41b3b6(0x18e)](_0x256174[_0x41b3b6(0xfa)],0xc8)&&(_0x3f6daa[_0x41b3b6(0x242)](_0x3f6daa[_0x41b3b6(0xf8)],_0x3f6daa['rtNnG'])?(_0x19a8ee=_0x41b3b6(0xf6)+JSON[_0x41b3b6(0x212)](_0x256174[_0x41b3b6(0x150)]),await _0x3f6daa[_0x41b3b6(0xee)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa['EihZf'],_0x3f6daa['QIOhB'],_0x3f6daa[_0x41b3b6(0x1c9)]),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process['exit'](0x1)):_0x156b0a[_0x41b3b6(0xc8)]());const _0x65b43b=JSON[_0x41b3b6(0xae)](_0x256174[_0x41b3b6(0x150)]),_0xe8a29e={};_0xe8a29e['type']=WS_EVENTS['CLI_RUN_STARTED'],_0xe8a29e['message']=_0x3f6daa[_0x41b3b6(0xa8)],webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0xe8a29e);const _0x1c9314={};_0x1c9314[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0x1c9314[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0x166)],webSocketUtils['sendEventToBackend'](_0x16da0b,_0x1c9314);_0x65b43b[_0x41b3b6(0x19d)]&&(_0x3f6daa[_0x41b3b6(0xf4)](_0x3f6daa[_0x41b3b6(0x174)],_0x3f6daa[_0x41b3b6(0x174)])?_0x4f1dac=_0x3f6daa['gqwau']:(_0x19a8ee=_0x41b3b6(0xaa)+_0x2d60dd+_0x41b3b6(0x135),await _0x3f6daa[_0x41b3b6(0xee)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa['EihZf'],_0x3f6daa[_0x41b3b6(0x17a)],_0x3f6daa[_0x41b3b6(0x1c9)]),logger['error'](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1)));const _0x503065=_0x65b43b[_0x41b3b6(0x1cf)];let _0x551b7a=_0x503065[_0x65b43b[_0x41b3b6(0x115)]];_0x218ce1[_0x41b3b6(0x231)]&&(_0x3f6daa[_0x41b3b6(0x102)](_0x3f6daa[_0x41b3b6(0x1b8)],_0x3f6daa[_0x41b3b6(0x1b8)])?_0x551b7a=_0x503065[_0x218ce1[_0x41b3b6(0x231)]]:_0x2d48df=!![]);global_registry[_0x41b3b6(0x1df)]=![];if(_0x218ce1[_0x41b3b6(0x157)]){if(_0x3f6daa[_0x41b3b6(0x1de)](_0x3f6daa[_0x41b3b6(0x10f)],_0x3f6daa[_0x41b3b6(0x10f)]))_0x3d56bb[_0x41b3b6(0x18d)](_0x41b3b6(0x186)+_0x375d9a['clusterName']+_0x41b3b6(0x178)),_0x24cd01=![],_0x284c1c=!![];else{const _0x4af2c7=_0x3f6daa[_0x41b3b6(0x132)]['split']('|');let _0x341e90=0x0;while(!![]){switch(_0x4af2c7[_0x341e90++]){case'0':global_registry[_0x41b3b6(0x14a)]=_0x3f6daa[_0x41b3b6(0x1b1)];continue;case'1':logger['info'](_0x3f6daa[_0x41b3b6(0x249)]);continue;case'2':global_registry[_0x41b3b6(0x23d)]=_0x3f6daa[_0x41b3b6(0xb2)];continue;case'3':global_registry[_0x41b3b6(0x1df)]=!![];continue;case'4':global_registry['hubHaNameSpace']=_0x3f6daa[_0x41b3b6(0x159)];continue;}break;}}}if(_0x3f6daa[_0x41b3b6(0x128)](_0x3f5e8c,![])&&_0x3f6daa[_0x41b3b6(0x242)](_0x1a387b,![])){if(_0x3f6daa['fVHjQ'](_0x3f6daa[_0x41b3b6(0x1a0)],_0x3f6daa['xucWB']))_0x589a9c=_0x6383dd[_0x2b88b7[_0x41b3b6(0x231)]];else{_0x3f6daa[_0x41b3b6(0xbf)](_0x551b7a,undefined)&&(_0x3f6daa[_0x41b3b6(0x146)](_0x3f6daa[_0x41b3b6(0x1bc)],_0x3f6daa[_0x41b3b6(0x185)])?_0x327043[_0x41b3b6(0x231)]=_0x4346cb[_0x41b3b6(0x231)]:(_0x19a8ee=_0x3f6daa[_0x41b3b6(0x1f3)],await _0x3f6daa[_0x41b3b6(0xd8)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes['ERROR'],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa[_0x41b3b6(0x19b)],_0x3f6daa[_0x41b3b6(0x1c9)]),logger['error'](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1)));global_registry['gridProfileId']=_0x551b7a['id'],_0x19a8ee=_0x41b3b6(0x196)+_0x2d60dd+_0x41b3b6(0x1f6)+_0x551b7a[_0x41b3b6(0x250)]+_0x41b3b6(0x100),logger[_0x41b3b6(0x18d)](_0x19a8ee);const _0x32c8aa={};_0x32c8aa['type']=WS_EVENTS[_0x41b3b6(0xfe)],_0x32c8aa['message']=_0x19a8ee,webSocketUtils['sendEventToBackend'](_0x16da0b,_0x32c8aa),_0x28d239=_0x551b7a[_0x41b3b6(0x1fa)],_0x464d6c=_0x551b7a[_0x41b3b6(0x110)],_0x40c1a2=_0x551b7a[_0x41b3b6(0x183)],_0x5a3995=_0x551b7a['concurrency'],_0x2b0fa1=_0x551b7a['instanceType'],_0x15f2ba=_0x551b7a[_0x41b3b6(0x1cb)],_0x29c3c3=_0x551b7a['securityGroups'],_0x428f2d=_0x551b7a[_0x41b3b6(0x1e5)],_0x6f9dca=_0x551b7a['s3bucket'],_0x45f908=_0x551b7a[_0x41b3b6(0x209)],_0x3a5583=_0x551b7a[_0x41b3b6(0x1d7)],_0x2ab731=_0x65b43b[_0x41b3b6(0x1e1)],_0xc49c3a=_0x65b43b[_0x41b3b6(0x172)];if(_0x15f2ba&&_0x3f6daa['JiMtK'](_0x15f2ba[_0x41b3b6(0x1e0)],0x0)){if(_0x3f6daa[_0x41b3b6(0x171)](_0x3f6daa[_0x41b3b6(0xd2)],_0x3f6daa[_0x41b3b6(0x182)]))_0x15f2ba=null;else{const _0x1b9c00=_0x3f6daa[_0x41b3b6(0x12c)][_0x41b3b6(0x22a)]('|');let _0x4740e7=0x0;while(!![]){switch(_0x1b9c00[_0x4740e7++]){case'0':_0x4035c0[_0x41b3b6(0x18d)](_0x596209);continue;case'1':_0x3f6daa['Snxxb'](_0x5baa1a,_0x8d2bc9,_0x4817a5,_0x10b979,_0x1f66b8,_0x47f21a,_0x52117c,_0x440815,_0x40dc18,_0x546f15,_0x4729a0,_0x1a67cf,_0x2f5f78[_0x41b3b6(0x214)]);continue;case'2':_0x12cd06=_0x4911a8[_0x41b3b6(0x1d7)];continue;case'3':_0x3ffda3[_0x41b3b6(0x1df)]&&_0x3f6daa[_0x41b3b6(0x22c)](_0x52d499,_0x15a536[_0x41b3b6(0x1d2)]);continue;case'4':_0x191fea=null;continue;case'5':_0x360c24=_0x41b3b6(0x10a)+_0x422181;continue;case'6':_0x5c655b=_0x232267[_0x41b3b6(0xf5)];continue;case'7':_0x5d7c6b=_0x2e71a9[_0x41b3b6(0x1e1)];continue;case'8':_0x3e20be=null;continue;case'9':_0x5512a3=_0x4a621b[_0x41b3b6(0x107)];continue;case'10':_0x3f6daa['jmFYJ'](_0x401f3c[_0x41b3b6(0xe1)],_0x258375)&&_0x271e83[_0x41b3b6(0xe1)]&&(_0x247547['isPrivateGrid']=!![]);continue;case'11':_0x5d7a56=_0x2a2573[_0x41b3b6(0x169)];continue;case'12':_0x502281=_0x311bc1[_0x41b3b6(0x172)];continue;case'13':_0x5c7fb6=_0x4800d7[_0x41b3b6(0x209)];continue;case'14':_0x238215=null;continue;case'15':const _0x4187d8={};_0x4187d8[_0x41b3b6(0x1ac)]=_0x58fa49[_0x41b3b6(0xfe)],_0x4187d8['message']=_0x475e3c,_0x1968df[_0x41b3b6(0x1af)](_0x3d9366,_0x4187d8);continue;}break;}}}_0x428f2d&&_0x3f6daa['QAgMS'](_0x428f2d[_0x41b3b6(0x1e0)],0x0)&&(_0x3f6daa[_0x41b3b6(0x1bb)](_0x3f6daa[_0x41b3b6(0x25e)],_0x3f6daa['HxQXZ'])?_0x4e28d4[_0x41b3b6(0x18d)](_0x3f6daa['ElJBb']):_0x428f2d=null),_0x3f6daa['jmFYJ'](_0x551b7a[_0x41b3b6(0xe1)],undefined)&&_0x551b7a[_0x41b3b6(0xe1)]&&(_0x3f6daa[_0x41b3b6(0xb6)](_0x3f6daa[_0x41b3b6(0x137)],_0x3f6daa[_0x41b3b6(0xa9)])?_0x1e8ed6[_0x41b3b6(0xd7)]=!![]:global_registry[_0x41b3b6(0xd7)]=!![]),_0x3f6daa[_0x41b3b6(0x234)](updateGlobalRegistryWithConfig,_0x28d239,_0x464d6c,_0x40c1a2,_0x5a3995,_0x2b0fa1,_0x6f9dca,_0x551b7a,_0x2ab731,_0xc49c3a,_0x45f908,_0x3a5583,_0x218ce1['clusterAutoupgrade']),global_registry[_0x41b3b6(0x1df)]&&(_0x3f6daa[_0x41b3b6(0x191)](_0x3f6daa['WsLUD'],_0x3f6daa['WsLUD'])?_0x3f6daa[_0x41b3b6(0x22c)](updateGlobalRegistryForHubHa,_0x65b43b['uploaderVersion']):_0x3f6daa[_0x41b3b6(0x22c)](_0x5679db,_0x3adb3e[_0x41b3b6(0x197)]));}}else{if(_0x3f6daa[_0x41b3b6(0x232)](_0x1a387b,!![])){if(_0x3f6daa[_0x41b3b6(0x227)](_0x3f6daa[_0x41b3b6(0x1b3)],_0x3f6daa[_0x41b3b6(0xc5)]))_0x168f5c=_0x3f6daa[_0x41b3b6(0x1ee)];else{_0x19a8ee=_0x41b3b6(0x10a)+_0x2d60dd,logger[_0x41b3b6(0x18d)](_0x19a8ee);const _0x3aff88={};_0x3aff88[_0x41b3b6(0x1ac)]=WS_EVENTS['LOG'],_0x3aff88[_0x41b3b6(0x21d)]=_0x19a8ee,webSocketUtils['sendEventToBackend'](_0x16da0b,_0x3aff88),_0x5a3995=_0x551b7a[_0x41b3b6(0x169)],_0x2b0fa1=_0x551b7a[_0x41b3b6(0x107)],_0x15f2ba=null,_0x29c3c3=null,_0x428f2d=null,_0x6f9dca=_0x551b7a[_0x41b3b6(0xf5)],_0x45f908=_0x551b7a[_0x41b3b6(0x209)],_0x3a5583=_0x551b7a[_0x41b3b6(0x1d7)],_0x2ab731=_0x65b43b['hubVersion'],_0xc49c3a=_0x65b43b[_0x41b3b6(0x172)];if(_0x3f6daa[_0x41b3b6(0x176)](_0x551b7a['privateGrid'],undefined)&&_0x551b7a[_0x41b3b6(0xe1)]){if(_0x3f6daa[_0x41b3b6(0x18e)](_0x3f6daa['ImnfV'],_0x3f6daa[_0x41b3b6(0x18f)]))global_registry['isPrivateGrid']=!![];else{const _0x21e710=_0x3f6daa[_0x41b3b6(0x1d1)][_0x41b3b6(0x22a)]('|');let _0x46ec36=0x0;while(!![]){switch(_0x21e710[_0x46ec36++]){case'0':_0x418361[_0x41b3b6(0x172)]=_0x59eda1[_0x41b3b6(0x172)];continue;case'1':const _0x4d1404={};_0x4d1404[_0x41b3b6(0x1ac)]=_0x428b87[_0x41b3b6(0xfe)],_0x4d1404[_0x41b3b6(0x21d)]=_0x49e956,_0x23a092[_0x41b3b6(0x1af)](_0x53498f,_0x4d1404);continue;case'2':_0x491f59[_0x41b3b6(0x1fa)]=_0x101fb1;continue;case'3':const _0x3fe93f={};_0x3fe93f[_0x41b3b6(0x1ac)]=_0x24da52[_0x41b3b6(0x21a)],_0x3fe93f[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0xa8)],_0x4d04a3[_0x41b3b6(0x1af)](_0xe21362,_0x3fe93f);continue;case'4':_0x3049d1['clusterName']=_0x3d5db7;continue;case'5':_0x46dc6a[_0x41b3b6(0x18d)](_0x167486);continue;case'6':_0x422dae='Spawning\x20the\x20grid\x20'+_0x26aa20+_0x41b3b6(0x123)+_0x717e28+'\x27';continue;case'7':_0x5e7e34[_0x41b3b6(0x112)]=_0x31e846;continue;case'8':_0x164e17[_0x41b3b6(0x1e1)]=_0x423f3c[_0x41b3b6(0x1e1)];continue;}break;}}}_0x3f6daa['Snxxb'](updateGlobalRegistryWithConfig,_0x28d239,_0x464d6c,_0x40c1a2,_0x5a3995,_0x2b0fa1,_0x6f9dca,_0x551b7a,_0x2ab731,_0xc49c3a,_0x45f908,_0x3a5583,_0x218ce1[_0x41b3b6(0x214)]),global_registry[_0x41b3b6(0x1df)]&&(_0x3f6daa[_0x41b3b6(0x176)](_0x3f6daa[_0x41b3b6(0x105)],_0x3f6daa[_0x41b3b6(0x105)])?_0x552ec5=null:_0x3f6daa[_0x41b3b6(0x22c)](updateGlobalRegistryForHubHa,_0x65b43b[_0x41b3b6(0x1d2)]));}}else{if(_0x3f6daa['nEbbD'](_0x3f6daa[_0x41b3b6(0xdf)],_0x3f6daa[_0x41b3b6(0xfc)]))throw new _0x5d4fbf(_0x41b3b6(0xab)+_0x3b5f17+_0x41b3b6(0x1c5));else{const _0x51b66f=_0x3f6daa[_0x41b3b6(0x117)][_0x41b3b6(0x22a)]('|');let _0x12a676=0x0;while(!![]){switch(_0x51b66f[_0x12a676++]){case'0':global_registry[_0x41b3b6(0x112)]=_0x40c1a2;continue;case'1':logger[_0x41b3b6(0x18d)](_0x19a8ee);continue;case'2':_0x19a8ee=_0x41b3b6(0x1a9)+_0x2d60dd+_0x41b3b6(0x123)+_0x464d6c+'\x27';continue;case'3':global_registry['cloudProvider']=_0x28d239;continue;case'4':const _0x3fddd1={};_0x3fddd1['type']=WS_EVENTS['LOG'],_0x3fddd1[_0x41b3b6(0x21d)]=_0x19a8ee,webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x3fddd1);continue;case'5':global_registry[_0x41b3b6(0x110)]=_0x464d6c;continue;case'6':global_registry[_0x41b3b6(0x1e1)]=_0x65b43b[_0x41b3b6(0x1e1)];continue;case'7':global_registry[_0x41b3b6(0x172)]=_0x65b43b[_0x41b3b6(0x172)];continue;case'8':const _0x1c6499={};_0x1c6499['type']=WS_EVENTS[_0x41b3b6(0x21a)],_0x1c6499[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0xa8)],webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x1c6499);continue;}break;}}}}const _0x43de0b=await _0x3f6daa[_0x41b3b6(0x173)](getCloudProviderObject,_0x28d239,_0x464d6c,_0x2d60dd,_0x16da0b,webSocketUtils,_0x218ce1);_0x3f6daa[_0x41b3b6(0x187)](_0x28d239,AZURE)&&(_0x3f6daa[_0x41b3b6(0x227)](_0x3f6daa['EvRiU'],_0x3f6daa[_0x41b3b6(0x188)])?_0x43de0b['sendResourceDataToHST']():_0x5eb28d=_0x3f6daa[_0x41b3b6(0x177)]);let _0x321bfe;if(_0x3f6daa[_0x41b3b6(0x256)](_0x3f5e8c,![])){_0x19a8ee=_0x41b3b6(0x109)+_0x40c1a2+').';const _0x295554={};_0x295554['type']=WS_EVENTS['LOG'],_0x295554[_0x41b3b6(0x21d)]=_0x19a8ee,webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x295554),logger[_0x41b3b6(0x18d)](_0x19a8ee);const _0x1b3597=await _0x43de0b[_0x41b3b6(0x21f)]();if(_0x1b3597){if(_0x3f6daa[_0x41b3b6(0x227)](_0x3f6daa[_0x41b3b6(0x1f2)],_0x3f6daa['SPSyU'])){const _0x4b4f58={};_0x4b4f58[_0x41b3b6(0x1e7)]=_0x3f6daa['CwUja'],_0x4b4f58[_0x41b3b6(0x1ac)]=_0x3f6daa[_0x41b3b6(0x14c)];const _0x483e76={};_0x483e76['description']=_0x3f6daa[_0x41b3b6(0xc6)],_0x483e76[_0x41b3b6(0x1ac)]=_0x3f6daa[_0x41b3b6(0x14c)];const _0x46e6d1={};_0x46e6d1[_0x41b3b6(0x1e7)]=_0x3f6daa[_0x41b3b6(0x114)],_0x46e6d1['type']=_0x3f6daa['FoDKR'];const _0x51ec4f={};_0x51ec4f[_0x41b3b6(0x1e7)]=_0x3f6daa[_0x41b3b6(0x184)],_0x51ec4f[_0x41b3b6(0x1ac)]=_0x3f6daa[_0x41b3b6(0x14c)];const _0x283fe9={};_0x283fe9[_0x41b3b6(0x1e7)]=_0x3f6daa[_0x41b3b6(0xeb)],_0x283fe9[_0x41b3b6(0x1ac)]=_0x3f6daa[_0x41b3b6(0x14c)];const _0x5ed66f={};_0x5ed66f[_0x41b3b6(0x1e7)]=_0x3f6daa[_0x41b3b6(0x160)],_0x5ed66f[_0x41b3b6(0x1ac)]=_0x3f6daa[_0x41b3b6(0x14c)];const _0x25778e={};_0x25778e['description']=_0x3f6daa[_0x41b3b6(0xfb)],_0x25778e[_0x41b3b6(0x1ac)]=_0x3f6daa[_0x41b3b6(0x21e)],_0x25778e['default']=![];const _0x28b52c={};_0x28b52c['description']=_0x3f6daa['EInYN'],_0x28b52c[_0x41b3b6(0x1ac)]=_0x3f6daa[_0x41b3b6(0x21e)],_0x28b52c[_0x41b3b6(0x228)]=![];const _0x21e978={};_0x21e978[_0x41b3b6(0x1e7)]=_0x3f6daa[_0x41b3b6(0xd0)],_0x21e978['type']=_0x3f6daa[_0x41b3b6(0x21e)],_0x21e978['default']=![];const _0x1e821d={};return _0x1e821d[_0x41b3b6(0x189)]=_0x4b4f58,_0x1e821d['grid-profile']=_0x483e76,_0x1e821d[_0x41b3b6(0x220)]=_0x46e6d1,_0x1e821d[_0x41b3b6(0x11e)]=_0x51ec4f,_0x1e821d[_0x41b3b6(0x183)]=_0x283fe9,_0x1e821d[_0x41b3b6(0x239)]=_0x5ed66f,_0x1e821d[_0x41b3b6(0x16d)]=_0x25778e,_0x1e821d['hub-ha']=_0x28b52c,_0x1e821d[_0x41b3b6(0x15c)]=_0x21e978,_0x1107f8[_0x41b3b6(0x208)](_0x40edb4[_0x41b3b6(0xa7)])[_0x41b3b6(0x24a)](_0x280280)['options'](_0x1e821d)[_0x41b3b6(0xe0)](_0x3f6daa[_0x41b3b6(0x1fb)])[_0x41b3b6(0x1a3)];}else{const _0x152f0f={};_0x152f0f[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0x152f0f[_0x41b3b6(0x21d)]=_0x41b3b6(0xab)+_0x464d6c+_0x41b3b6(0xd4),webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x152f0f,_0x3f6daa[_0x41b3b6(0x15e)]),logger[_0x41b3b6(0x18d)](_0x41b3b6(0xab)+_0x464d6c+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3f5e8c=!![];if(_0x3f6daa[_0x41b3b6(0xc2)](_0x1a387b,!![])){if(_0x3f6daa[_0x41b3b6(0x176)](_0x3f6daa[_0x41b3b6(0x1fd)],_0x3f6daa[_0x41b3b6(0x1f8)]))throw new Error('Cluster\x20'+_0x464d6c+_0x41b3b6(0x1c5));else _0x5f28be['error'](_0x41b3b6(0x247)+_0x487e52+'\x20\x0a'+_0x3a0a9f[_0x41b3b6(0x212)](_0x30e461[_0x41b3b6(0x21b)]));}}}else{const _0x2355f1={};_0x2355f1['type']=WS_EVENTS[_0x41b3b6(0xfe)],_0x2355f1[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0xd5)],webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x2355f1),logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0xd5)]);const _0x1218e6=_0x3f6daa[_0x41b3b6(0x1b6)](_0x15f2ba,null)&&_0x3f6daa['jmFYJ'](_0x15f2ba,undefined),_0x4aaa9d=_0x3f6daa[_0x41b3b6(0x25c)](_0x428f2d,null)&&_0x3f6daa['RlWsR'](_0x428f2d,undefined)&&_0x3f6daa[_0x41b3b6(0x181)](_0x428f2d[_0x41b3b6(0x1e0)],0x0);if(_0x1218e6){_0x3f6daa['xvRkc'](_0x4aaa9d,![])&&(_0x19a8ee=_0x3f6daa[_0x41b3b6(0x153)],await _0x3f6daa[_0x41b3b6(0xf0)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa['EihZf'],_0x3f6daa[_0x41b3b6(0x20a)],_0x3f6daa[_0x41b3b6(0x1c9)]),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1));const _0x210cee=await _0x43de0b[_0x41b3b6(0x235)](_0x15f2ba);_0x3f6daa['WZORo'](_0x210cee,![])?(_0x19a8ee=_0x3f6daa[_0x41b3b6(0x192)],await _0x3f6daa[_0x41b3b6(0xf0)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes['ERROR'],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa['dAmqM'],_0x3f6daa[_0x41b3b6(0x1c9)]),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process['exit'](0x1)):logger[_0x41b3b6(0x18d)](_0x41b3b6(0x23e)+_0x15f2ba+'\x20');const _0x260915=await _0x43de0b[_0x41b3b6(0xce)](_0x428f2d,_0x15f2ba);_0x3f6daa['nEbbD'](_0x260915[0x0],![])?(_0x19a8ee=_0x41b3b6(0x143)+JSON['stringify'](_0x260915[0x1])+_0x41b3b6(0xbc)+_0x15f2ba+_0x41b3b6(0xdc),await _0x3f6daa['lsAwZ'](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa[_0x41b3b6(0x155)],_0x3f6daa['YPOMk']),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process['exit'](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0x41b3b6(0x212)](_0x428f2d)+'\x20'),[_0x15f2ba,_0x428f2d]=await _0x43de0b['setupNewCluster'](_0x15f2ba,_0x428f2d);}else{const _0x3e03cc=_0x3f6daa[_0x41b3b6(0x225)][_0x41b3b6(0x22a)]('|');let _0x1b56b9=0x0;while(!![]){switch(_0x3e03cc[_0x1b56b9++]){case'0':logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0xb9)]);continue;case'1':logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x1c2)]);continue;case'2':const _0x2b1a60={};_0x2b1a60[_0x41b3b6(0x1ac)]=WS_EVENTS['LOG'],_0x2b1a60[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0xb9)],webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x2b1a60);continue;case'3':const _0xa5449={};_0xa5449[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0xa5449[_0x41b3b6(0x21d)]=_0x3f6daa['qgNmx'],webSocketUtils['sendEventToBackend'](_0x16da0b,_0xa5449);continue;case'4':[_0x15f2ba,_0x428f2d]=await _0x43de0b[_0x41b3b6(0x116)](_0x15f2ba,_0x428f2d);continue;}break;}}}}_0x3f5e8c&&_0x3f6daa['tmYLo'](_0x28d239,AZURE)&&(await _0x43de0b[_0x41b3b6(0xa5)](),await _0x43de0b[_0x41b3b6(0x151)]());const [_0x33287f,_0x4e0261,_0x15f516,_0x3e7151,_0x24d62a,_0x34b92e,_0x403698]=await _0x3f6daa[_0x41b3b6(0x13e)](createK8sClient,_0x43de0b,_0x218ce1[_0x41b3b6(0x17e)]);_0x3f6daa[_0x41b3b6(0x256)](_0x3f5e8c,![])&&_0x3f6daa[_0x41b3b6(0x128)](_0x28d239,AWS)&&(global_registry[_0x41b3b6(0xf1)]=!![],_0x321bfe=await _0x43de0b[_0x41b3b6(0xcd)](_0x33287f,_0x218ce1));if(_0x3f6daa['tmYLo'](_0x3f5e8c,![])&&global_registry[_0x41b3b6(0x1df)])try{await _0x43de0b[_0x41b3b6(0xbd)](_0x34b92e,_0x403698,_0x218ce1,_0x15f2ba,_0x428f2d);const _0x2bb68b={};_0x2bb68b[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0x2bb68b[_0x41b3b6(0x21d)]=_0x3f6daa['HdvkD'],webSocketUtils['sendEventToBackend'](_0x16da0b,_0x2bb68b);!await _0x3f6daa['ZXhvT'](namespaceExists,_0x33287f,global_registry[_0x41b3b6(0x22e)])&&await _0x3f6daa['njLLL'](createNamespace,_0x33287f,global_registry['hubHaNameSpace']);logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x12e)]);let _0x1b8c3d=await fs['readFileAsync'](path['join'](__dirname,_0x3f6daa[_0x41b3b6(0x139)],_0x3f6daa[_0x41b3b6(0xc0)],_0x3f6daa[_0x41b3b6(0x180)],_0x3f6daa[_0x41b3b6(0x1bf)]),_0x3f6daa[_0x41b3b6(0x1a2)]);_0x1b8c3d=_0x1b8c3d['replace'](/<RedisClientPassword>/g,_0x3f6daa[_0x41b3b6(0x24d)](encodeBase64,global_registry[_0x41b3b6(0x23d)])),_0x1b8c3d=_0x1b8c3d[_0x41b3b6(0x1c3)](/<KafkaClientPassword>/g,_0x3f6daa[_0x41b3b6(0x1f7)](encodeBase64,global_registry['kafkaPassword'])),_0x1b8c3d=_0x1b8c3d[_0x41b3b6(0x1c3)](/<BstackUsername>/g,_0x3f6daa[_0x41b3b6(0x25d)](encodeBase64,global_registry['bstackUsername'])),_0x1b8c3d=_0x1b8c3d[_0x41b3b6(0x1c3)](/<BstackAccessKey>/g,_0x3f6daa['YTSrk'](encodeBase64,global_registry[_0x41b3b6(0x1fe)]));const _0x23f59e=yaml[_0x41b3b6(0x233)](_0x1b8c3d);await _0x3f6daa[_0x41b3b6(0x1bd)](kubeApply,_0x23f59e,_0x403698),logger[_0x41b3b6(0x18d)](_0x3f6daa['gthPd']);let _0x299d9d=_0x3f6daa[_0x41b3b6(0x1ab)];if(_0x3f6daa[_0x41b3b6(0x129)](_0x28d239,AZURE))_0x299d9d=_0x3f6daa[_0x41b3b6(0x17c)];else _0x3f6daa[_0x41b3b6(0x204)](_0x28d239,GCP)&&(_0x299d9d=_0x3f6daa[_0x41b3b6(0x1ee)]);logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x165)]);let _0x1993f5=await fs[_0x41b3b6(0x224)](path[_0x41b3b6(0x254)](__dirname,_0x3f6daa['lxogL'],_0x3f6daa[_0x41b3b6(0xc0)],_0x3f6daa[_0x41b3b6(0x180)],_0x3f6daa[_0x41b3b6(0x11f)]),_0x3f6daa[_0x41b3b6(0x1a2)]);_0x1993f5=_0x1993f5['replace'](/<HubHaNameSpace>/g,global_registry[_0x41b3b6(0x22e)]),_0x1993f5=_0x1993f5[_0x41b3b6(0x1c3)](/<StorageClassName>/g,_0x299d9d);const _0x57c7d3=yaml['loadAll'](_0x1993f5);await _0x3f6daa[_0x41b3b6(0x1ef)](kubeApply,_0x57c7d3,_0x403698),logger[_0x41b3b6(0x18d)](_0x3f6daa['sHgwP']),logger['info'](_0x3f6daa[_0x41b3b6(0x163)]);let _0x5d8ab2=await fs[_0x41b3b6(0x224)](path[_0x41b3b6(0x254)](__dirname,_0x3f6daa['lxogL'],_0x3f6daa[_0x41b3b6(0xc0)],_0x3f6daa['KQYrJ'],_0x3f6daa[_0x41b3b6(0xe8)]),_0x3f6daa['kdSoZ']);_0x5d8ab2=_0x5d8ab2[_0x41b3b6(0x1c3)](/<HubHaNameSpace>/g,global_registry[_0x41b3b6(0x22e)]),_0x5d8ab2=_0x5d8ab2[_0x41b3b6(0x1c3)](/<StorageClassName>/g,_0x299d9d);const _0x34e62c=yaml['loadAll'](_0x5d8ab2);await _0x3f6daa[_0x41b3b6(0x1bd)](kubeApply,_0x34e62c,_0x403698),logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x136)]),logger['info'](_0x3f6daa[_0x41b3b6(0x1b7)]);let _0xd61b55=await fs['readFileAsync'](path['join'](__dirname,_0x3f6daa['lxogL'],_0x3f6daa[_0x41b3b6(0xc0)],_0x3f6daa['KQYrJ'],_0x3f6daa[_0x41b3b6(0x211)]),_0x3f6daa[_0x41b3b6(0x1a2)]);_0xd61b55=_0xd61b55[_0x41b3b6(0x1c3)](/<UploaderImageVersion>/g,global_registry[_0x41b3b6(0xac)]),_0xd61b55=_0xd61b55[_0x41b3b6(0x1c3)](/<HubHaNameSpace>/g,global_registry[_0x41b3b6(0x22e)]);const _0x2488d4=yaml['loadAll'](_0xd61b55);_0x3f6daa[_0x41b3b6(0xea)](global_registry[_0x41b3b6(0x1fa)],AZURE)&&(_0x2488d4[0x0][_0x41b3b6(0x1c8)][_0x41b3b6(0x103)][_0x41b3b6(0x1a5)]['labels']={'azure.workload.identity/use':_0x3f6daa[_0x41b3b6(0x1f4)],..._0x2488d4[0x0]['spec'][_0x41b3b6(0x103)][_0x41b3b6(0x1a5)][_0x41b3b6(0x101)]},_0x2488d4[0x0][_0x41b3b6(0x1c8)]['template'][_0x41b3b6(0x1c8)]['serviceAccountName']=_0x3f6daa[_0x41b3b6(0x16b)]);await _0x3f6daa[_0x41b3b6(0x195)](kubeApply,_0x2488d4,_0x403698),logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x1c0)]);const _0x2a906c={};_0x2a906c[_0x41b3b6(0x1ac)]=WS_EVENTS['LOG'],_0x2a906c[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0x1ea)],webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x2a906c),logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x16a)]);}catch(_0x30f1a0){const _0x2e638d=_0x3f6daa[_0x41b3b6(0xe9)]['split']('|');let _0x20cc79=0x0;while(!![]){switch(_0x2e638d[_0x20cc79++]){case'0':await _0x3f6daa['THWGG'](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa[_0x41b3b6(0x1d0)],_0x3f6daa[_0x41b3b6(0x1c9)]);continue;case'1':process[_0x41b3b6(0x1da)](0x1);continue;case'2':logger['error'](_0x19a8ee);continue;case'3':_0x19a8ee='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x30f1a0[_0x41b3b6(0x21d)];continue;case'4':await _0x43de0b[_0x41b3b6(0x1d5)](_0x33287f,global_registry['clusterRegion']);continue;}break;}}try{_0x3af6b0=_0x3f6daa[_0x41b3b6(0x15f)](kebabCase,_0x2d60dd),logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0x1ae)]);const _0x40ee8f={};_0x40ee8f[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0x40ee8f[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0x1ae)],webSocketUtils['sendEventToBackend'](_0x16da0b,_0x40ee8f);if(_0x3f6daa[_0x41b3b6(0xf9)](_0x3af6b0,_0x3f6daa['RWbMU'])){const _0xe84de5={};_0xe84de5[_0x41b3b6(0xed)]=_0x3f6daa[_0x41b3b6(0x201)],_0xe84de5[_0x41b3b6(0x1eb)]=_0x3f6daa[_0x41b3b6(0x201)];const _0x3ea255={};_0x3ea255['name']=_0x3af6b0,_0x3ea255['annotations']=_0xe84de5;const _0x3a8fa1={};_0x3a8fa1[_0x41b3b6(0x1a5)]=_0x3ea255;const _0x324069=_0x3a8fa1,_0x5285c6={};_0x5285c6[_0x41b3b6(0x150)]=_0x324069,await _0x33287f[_0x41b3b6(0xd6)](_0x5285c6),logger['info'](_0x3f6daa['Fzpco']);}const _0x2d87b9={};_0x2d87b9[_0x41b3b6(0x1ac)]=WS_EVENTS['LOG'],_0x2d87b9[_0x41b3b6(0x21d)]=_0x3f6daa[_0x41b3b6(0x22f)],webSocketUtils['sendEventToBackend'](_0x16da0b,_0x2d87b9);const _0xbd75db={};_0xbd75db[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0xbd75db['message']=_0x3f6daa['KIARv'],webSocketUtils['sendEventToBackend'](_0x16da0b,_0xbd75db),logger[_0x41b3b6(0x18d)](_0x3f6daa[_0x41b3b6(0xf3)]);let _0x2152c5={};_0x3f6daa[_0x41b3b6(0x258)](_0x28d239,AZURE)&&(_0x2152c5={'clientId':await _0x43de0b[_0x41b3b6(0x1e4)](_0x41b3b6(0x237)+_0x464d6c)});await _0x3f6daa[_0x41b3b6(0x17b)](addGridComponents,_0x33287f,_0x4e0261,_0x15f516,_0x3e7151,_0x3af6b0,_0x464d6c,_0x321bfe,_0x24d62a,_0x403698,_0x2152c5),_0x19a8ee=_0x3f6daa[_0x41b3b6(0x23a)],logger[_0x41b3b6(0x18d)](_0x19a8ee);const _0x511dda={};_0x511dda[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0x511dda[_0x41b3b6(0x21d)]=_0x19a8ee,webSocketUtils['sendEventToBackend'](_0x16da0b,_0x511dda),_0x19a8ee=_0x3f6daa[_0x41b3b6(0x1ce)],logger[_0x41b3b6(0x18d)](_0x19a8ee);const _0x2980a3={};_0x2980a3['type']=WS_EVENTS['LOG'],_0x2980a3[_0x41b3b6(0x21d)]=_0x19a8ee,webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x2980a3),await _0x3f6daa['SbazI'](waitForDeployment,_0x4e0261,_0x3af6b0,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x574b03=await _0x3f6daa[_0x41b3b6(0x195)](getNamespaceUID,_0x33287f,_0x3af6b0),_0x4b779f=global_registry['isPrivateGrid']?_0x3f6daa[_0x41b3b6(0xc9)]:_0x3f6daa[_0x41b3b6(0x1aa)],_0x98f890={};_0x98f890[_0x41b3b6(0x250)]=_0x4b779f,_0x98f890['namespace']=_0x3f6daa[_0x41b3b6(0x156)];const _0x38246f=await _0x33287f[_0x41b3b6(0x1d3)](_0x98f890);let _0x8d44ae=_0x43de0b[_0x41b3b6(0x144)](_0x38246f)+'/'+_0x3af6b0,_0xf416a9=_0x3f6daa[_0x41b3b6(0x177)];try{const _0x38e66c=_0x41b3b6(0xc4)+AG_API_URL+_0x41b3b6(0x241)+_0x574b03,_0x2970d1=await _0x3f6daa[_0x41b3b6(0x1e8)](got,_0x38e66c,_0x1353da);(_0x3f6daa['fVHjQ'](_0x2970d1,null)||_0x3f6daa[_0x41b3b6(0x242)](_0x2970d1,undefined))&&(_0x19a8ee=_0x3f6daa[_0x41b3b6(0x24e)],await _0x3f6daa['nWpvk'](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa[_0x41b3b6(0xc3)],_0x3f6daa[_0x41b3b6(0x1c9)]),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1));_0x3f6daa[_0x41b3b6(0x128)](_0x2970d1[_0x41b3b6(0xfa)],0x191)&&(_0x19a8ee=_0x3f6daa[_0x41b3b6(0x1dc)],await _0x3f6daa[_0x41b3b6(0x213)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x1b2)],_0x3f6daa[_0x41b3b6(0x245)],_0x3f6daa[_0x41b3b6(0x1c9)]),logger['error'](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1));_0x3f6daa[_0x41b3b6(0x176)](_0x2970d1[_0x41b3b6(0xfa)],0xc8)&&(_0x19a8ee=_0x41b3b6(0xfd)+JSON[_0x41b3b6(0x212)](_0x2970d1),await _0x3f6daa[_0x41b3b6(0xd8)](reportToGalactusAndSendToEDS,_0x218ce1,_0x16da0b,_0x19a8ee,messageTypes['ERROR'],_0x3f6daa['EihZf'],_0x3f6daa[_0x41b3b6(0x138)],_0x3f6daa['YPOMk']),logger[_0x41b3b6(0x1c4)](_0x19a8ee),process[_0x41b3b6(0x1da)](0x1));const _0x412ed2=JSON[_0x41b3b6(0xae)](_0x2970d1['body']);_0x412ed2[_0x41b3b6(0x1fc)]&&(_0x8d44ae=_0x412ed2[_0x41b3b6(0x1fc)],_0xf416a9=_0x3f6daa[_0x41b3b6(0xc7)]),global_registry[_0x41b3b6(0xd7)]&&(_0xf416a9=_0x3f6daa[_0x41b3b6(0x177)]);}catch(_0x481e46){}_0x19a8ee='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x8d44ae+'\x20',logger[_0x41b3b6(0x18d)](_0x19a8ee);const _0xfb46d6={};_0xfb46d6[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0xfb46d6[_0x41b3b6(0x21d)]=_0x19a8ee,webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0xfb46d6),_0x19a8ee=_0x41b3b6(0x11a)+_0xf416a9+_0x41b3b6(0x248)+_0x8d44ae+'/wd/hub',logger[_0x41b3b6(0x18d)](_0x19a8ee);const _0x174005={};_0x174005[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0x174005[_0x41b3b6(0x21d)]=_0x19a8ee,webSocketUtils['sendEventToBackend'](_0x16da0b,_0x174005);const _0x38239f={};_0x38239f[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xcf)],_0x38239f[_0x41b3b6(0x21d)]=_0x41b3b6(0x18c)+_0x8d44ae,webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0x38239f),await webSocketUtils['delay'](0x7d0);}catch(_0x1cba79){logger[_0x41b3b6(0x1c4)](_0x41b3b6(0x125)+_0x1cba79+'\x20\x0a'+JSON[_0x41b3b6(0x212)](_0x1cba79[_0x41b3b6(0x21b)]));if(_0x3f6daa[_0x41b3b6(0xad)](_0x3f5e8c,![]))try{logger['info'](_0x3f6daa[_0x41b3b6(0x134)]),await _0x3f6daa[_0x41b3b6(0x12a)](removeGridComponents,_0x33287f,_0x4e0261,_0x15f516,_0x3e7151,_0x3af6b0),await _0x43de0b['deleteCluster'](_0x33287f,global_registry[_0x41b3b6(0x112)]);}catch(_0x28263a){logger[_0x41b3b6(0x1c4)](_0x41b3b6(0x247)+_0x28263a+'\x20\x0a'+JSON[_0x41b3b6(0x212)](_0x28263a[_0x41b3b6(0x21b)]));}throw _0x1cba79;}}catch(_0x3d6296){const _0x14ac47=_0x41b3b6(0x15d)+_0x3d6296+'\x20\x0a'+JSON[_0x41b3b6(0x212)](_0x3d6296['stack']);if(_0x16da0b){const _0xd8082c={};_0xd8082c[_0x41b3b6(0x1ac)]=WS_EVENTS[_0x41b3b6(0xfe)],_0xd8082c[_0x41b3b6(0x21d)]=_0x14ac47,webSocketUtils[_0x41b3b6(0x1af)](_0x16da0b,_0xd8082c,_0x3f6daa['YPOMk'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x28b670={};_0x28b670[_0x41b3b6(0x1c4)]=_0x14ac47,await _0x3f6daa['mRzlW'](sendInstrumentationEvent,_0x218ce1,_0x3f6daa[_0x41b3b6(0x1b2)],messageTypes[_0x41b3b6(0xb3)],_0x3f6daa[_0x41b3b6(0x20b)],_0x28b670,_0x218ce1),logger[_0x41b3b6(0x1c4)](_0x14ac47);}process['exit'](0x0);};
|
|
1
|
+
const a9_0xa0125f=a9_0x1b3d;function a9_0x1f05(){const _0x199fd2=['clusterAutoUpgrade','Cluster\x20','s3bucket','RHRLu','PHIaL','rCWtx','create-grid-checks-invalid-profile','\x27\x20grid\x20profile','Added\x20Turboscale\x20Uploader\x20deployment.','CLI_RUN_FINISHED','../..','efs-csi','FYXYB','error','kuBBE','KVJSx','private-ingress-nginx-controller','rAFdK','Cluster:\x20','6|7|4|5|8|3|0|1|2','serviceAccountName','eyofz','KDLbc','HKoTA','sendResourceDataToHST','gEMrJ','7EgGXDl','BMFli','30YbAGbc','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','spec','create-grid-checks-null-response','handler','cluster-autoupgrade','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','fAHvH','Hub\x20HA\x20setup\x20completed\x20successfully.','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','KZdyW','QLHyV','MtGaO','15|0|4|1|14|7|2|12|13|8|10|6|5|9|3|11','help','name','eaWuZ','kafkaPassword','qRVtx','xDfQe','default','Grid\x20profile\x20fetched\x20from\x20backend','koaGw','bitnami-redis.yaml','gridProfileId','hubVersion','Added\x20Kafka\x20deployment.','fqJDM','BVXyY','instanceType','Tfkez','description','BQVvm','ayxRV','glLtM','\x20using\x20\x27','GET','LOG','CLI\x20run\x20finished:\x20','xKjag','TjHtu','Spawning\x20the\x20grid\x20','zlYyn','fttrY','../../utils/instrumentationUtils','readFileAsync','createOtherResources','ijyvI','cluster-name','fAnOL','QBsdY','https://','options','create-grid-checks-grid-already-exists','bZtBL','mOsZQ','fRwAv','NzFmN','addListeners','EPGrp','Okbeh','../../utils/utilityMethods','IcvvP','../../config/constants','XBJQM','uAohg','stringify','concurrency','UkRNzNYCBU','FrSog','ifmZe','maxNodes','route53','delay','ijrTB','ygSrp','JdiWi','command','../../cloudproviders/utils','user','clusterAutoupgrade','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Grid\x20can\x20be\x20accessed\x20at:\x20','init-not-called','desc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hub-ha','4|3|2|0|1','oekQL','QEJun','Adding\x20Kafka\x20deployment...','statusCode','djjAp','setupNewCluster','MCSbz','ucLvz','AsaAS','YpssC','split','ITSVM','IupBV','bJYSZ','LEtwd','ingress-nginx','FjMsR','mkERk','bstackAccesskey','FizWt','TXrHi','../../config/logger','LQeOn','deleteCluster','WebSocket','isNewAWSCluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','jsMkc','dFocL','metadata','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Created\x20Hub\x20HA\x20resources','cvSEM','lGCkE','MNCdH','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','pcMMV','debug','clusterName','hubHaNameSpace','MNcfi','lCbEC','lIJny','paEdy','grid-name','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','ERROR','SHLEQ','nuWNy','YoMIM','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','SxqjO','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','MOYuS','yOLVk','replace','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','BDBeB','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CLI\x20run\x20started','clusterRegion','Spawning\x20grid\x20on\x20to\x20the\x20cluster','gridName','rnGNH','yXVCZ','browserstack-secret.yaml','loxSI','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','requestId','gridProfile','AJSIn','getGridHostname','XwJCL','create','gFiwU','parse','1|3|2|4|0','newCluster','Deleting\x20the\x20CloudFormation\x20Stacks','WKNAy','UFEVF','Will\x20be\x20spawning\x20the\x20grid\x20','soopO','VPDoI','join','JmpjB','bitnami-kafka.yaml','Adding\x20Redis\x20deployment...','readNamespacedService','Found\x20VPC:\x20','toLowerCase','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tctbI','gridProfiles','YqCXW','0|1|5|7|6|8|3|4|2','redisPassword','Namespace\x20created','bnooc','isVPCPresent','SYQGL','IhIDw','llSaa','KzbeV','cloudProvider','xUoMH','username','WpKQi','Namespace\x20Created','JDvfz','eENTO','skip-tls-cert-verify','cHTVN','setupHubHa','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','uyTww','VASNk','got','INFO','LMEhC','VCzoh','Spawning\x20Grid\x20on\x20the\x20Cluster','XOsVL','js-yaml','lKsEc','209710kWnzaO','../../utils/createk8sClient','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Subnets:\x20','jEVYD','createNamespace','dGtYW','yHMKi','builder','WSfqg','2|1|4|0|3','ZxEqQ','ZdJxr','managedBy','vOzXU','pre-spawned-invalid-vpc','bcUFP','tEpbG','create-grid-checks-auth-failed','ZGyaO','hub-ha-deployments-failed','aEtiC','grid-profile','setupAutoscaler','55276xsiixy','XugDR','alreadyPresent','rVVcR','coNmM','URqhg','1309144qgULah','string','reconnecting-websocket','turboscale-uploader.yaml','aIkhs','isClusterPresent','CRscd','lJtcg','XIpSt','wYcYu','private-grid','HvTVc','phwsL','ylwVu','Create\x20a\x20private/public\x20grid.','sendEventToBackend','khSXY','zeRvC','duLQR','GIzKu','annotations','enableHubHa','exit','loadAll','cloud-provider','rILpC','Creating\x20Hub\x20HA\x20resources','gptIA','password','JmkCQ','isPrivateGrid','bGhfb','NsLMl','privateGrid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','\x20in\x20existing\x20cluster\x20\x27','ETWeJ','boolean','readFileSync','zXhYt','dbxmt','goJxm','shyOM','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Cluster\x20created\x20successfully','TOFcg','dsriI','uploaderVersion','Added\x20Redis\x20deployment.','utf-8','zDgED','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','browserVersion','440234CcoSjJ','get-grid-url-non-200','dYIdH','iiRos','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','621171zvUVlE','mduNp','MMARt','template','SFvHC','8987099Fupwvw','Create\x20a\x20new\x20Automation\x20grid.','CLI_RUN_STARTED','EhlUT','Flag\x20to\x20enable\x20Hub\x20HA','JkZLl','Grid\x20spawned\x20on\x20the\x20cluster','connectionTimeout','EoiNf','uploaderImageVersion','turboscale-managed-identity-','rsFWU','stack','jyWWn','UQsjE','gsrff','info','WgitH','length','Epyd5nXbRK','get-grid-url-null-response','zLiIN','https','TOcku','0|3|1|4|2','lmdVO','createdBy','gexON','LtkDS','CdqMq','VwFJC','region','bstackUsername','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Jamnp','UCiNG','SSOiI','FPjje','Lzeyl','Browserstack','iHeOc','kafkaUploader','zmmwU','wsqGj','LtXJS','Adding\x20Secret\x20Mapping','HCjjv','VMssN','create-grid-checks-non-200','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.','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','naUmm','ZxoyO','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','272582ydnMsD','UbAmW','xcMrh','grid','message','3bOMrKj','hubHa','JfbGj','WzEak','NBdcf','qjZpF','kXLws','GLwvb','existsSync','gNSWc','Found\x20Subnets:\x20','QlaTZ','type','warn','labels','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','bbpPE','azurefile-csi-premium','rsHGS','LyciK','vpc','YuPWT','wLTCr','ingress-nginx-controller','minNodes','argv','securityGroups','true','Skip\x20insecure\x20cert\x20verification.','OtoTm','NlYZg','tzxYi','dmUsE','uAvrs','60AqHLSE','/packages/cli/get-grid-url?gridIdentifier='];a9_0x1f05=function(){return _0x199fd2;};return a9_0x1f05();}(function(_0x2c4928,_0x46a814){const _0x4bca41=a9_0x1b3d,_0x3fbda8=_0x2c4928();while(!![]){try{const _0x2ba91e=parseInt(_0x4bca41(0x347))/0x1+-parseInt(_0x4bca41(0x1d8))/0x2+parseInt(_0x4bca41(0x1dd))/0x3*(-parseInt(_0x4bca41(0x30b))/0x4)+parseInt(_0x4bca41(0x2f3))/0x5*(parseInt(_0x4bca41(0x1ff))/0x6)+parseInt(_0x4bca41(0x21b))/0x7*(parseInt(_0x4bca41(0x311))/0x8)+-parseInt(_0x4bca41(0x34c))/0x9*(-parseInt(_0x4bca41(0x21d))/0xa)+-parseInt(_0x4bca41(0x351))/0xb;if(_0x2ba91e===_0x46a814)break;else _0x3fbda8['push'](_0x3fbda8['shift']());}catch(_0x316710){_0x3fbda8['push'](_0x3fbda8['shift']());}}}(a9_0x1f05,0x40443));function a9_0x1b3d(_0x5dd6e0,_0x164cdc){const _0x1f0592=a9_0x1f05();return a9_0x1b3d=function(_0x1b3ddb,_0x15b6ea){_0x1b3ddb=_0x1b3ddb-0x1a4;let _0x4d2027=_0x1f0592[_0x1b3ddb];return _0x4d2027;},a9_0x1b3d(_0x5dd6e0,_0x164cdc);}const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require(a9_0xa0125f(0x2f1)),ReconnectingWebSocket=require(a9_0xa0125f(0x313)),got=require(a9_0xa0125f(0x2eb)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0xa0125f(0x28a)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0xa0125f(0x25a)),{getCloudProviderObject}=require(a9_0xa0125f(0x26b)),{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_0xa0125f(0x25c)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0xa0125f(0x2f4)),{sendInstrumentationEvent}=require(a9_0xa0125f(0x249));exports[a9_0xa0125f(0x26a)]=a9_0xa0125f(0x1db),exports[a9_0xa0125f(0x271)]=a9_0xa0125f(0x352),exports[a9_0xa0125f(0x2fb)]=function(_0x2e97f7){const _0xc28ae9=a9_0xa0125f,_0x31b1b8={};_0x31b1b8[_0xc28ae9(0x2c5)]=_0xc28ae9(0x26e),_0x31b1b8[_0xc28ae9(0x1fc)]=_0xc28ae9(0x312),_0x31b1b8[_0xc28ae9(0x21c)]=_0xc28ae9(0x1d7),_0x31b1b8[_0xc28ae9(0x29f)]=_0xc28ae9(0x272),_0x31b1b8[_0xc28ae9(0x1e2)]=_0xc28ae9(0x2f5),_0x31b1b8[_0xc28ae9(0x2ff)]=_0xc28ae9(0x2e8),_0x31b1b8[_0xc28ae9(0x282)]='Create\x20a\x20private/public\x20grid.',_0x31b1b8[_0xc28ae9(0x2ac)]='Skip\x20insecure\x20cert\x20verification.',_0x31b1b8[_0xc28ae9(0x1e1)]=_0xc28ae9(0x337),_0x31b1b8[_0xc28ae9(0x2da)]=_0xc28ae9(0x1a6),_0x31b1b8[_0xc28ae9(0x245)]=_0xc28ae9(0x1d4),_0x31b1b8[_0xc28ae9(0x1be)]=_0xc28ae9(0x22b);const _0x5b0587=_0x31b1b8,_0x521239={};_0x521239[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2c5)],_0x521239[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x12f348={};_0x12f348[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x21c)],_0x12f348['type']=_0x5b0587['tzxYi'];const _0x302152={};_0x302152[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x29f)],_0x302152[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4faa5d={};_0x4faa5d[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x1e2)],_0x4faa5d[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x5cc0e3={};_0x5cc0e3[_0xc28ae9(0x23c)]=_0x5b0587['ZdJxr'],_0x5cc0e3[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4246cc={};_0x4246cc[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x282)],_0x4246cc[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x7c7aba={};_0x7c7aba[_0xc28ae9(0x23c)]=_0x5b0587['yOLVk'],_0x7c7aba[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x7c7aba[_0xc28ae9(0x231)]=![];const _0x298807={};_0x298807[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2da)],_0x298807['type']=_0x5b0587['NBdcf'],_0x298807['default']=![];const _0x5d499b={};_0x5d499b[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x245)],_0x5d499b[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x5d499b[_0xc28ae9(0x231)]=![];const _0x29e1c7={};return _0x29e1c7[_0xc28ae9(0x2a1)]=_0x521239,_0x29e1c7['grid-profile']=_0x12f348,_0x29e1c7[_0xc28ae9(0x24d)]=_0x302152,_0x29e1c7[_0xc28ae9(0x329)]=_0x4faa5d,_0x29e1c7['region']=_0x5cc0e3,_0x29e1c7['private-grid']=_0x4246cc,_0x29e1c7[_0xc28ae9(0x2e5)]=_0x7c7aba,_0x29e1c7[_0xc28ae9(0x273)]=_0x298807,_0x29e1c7[_0xc28ae9(0x222)]=_0x5d499b,_0x2e97f7['usage'](HELP_HEADER_MESSAGE[_0xc28ae9(0x2bf)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc28ae9(0x251)](_0x29e1c7)[_0xc28ae9(0x22b)](_0x5b0587[_0xc28ae9(0x1be)])[_0xc28ae9(0x1f6)];},exports[a9_0xa0125f(0x221)]=async function(_0xbdb8d7){const _0x15bbf2=a9_0xa0125f,_0x194b7f={'shyOM':_0x15bbf2(0x26e),'LtXJS':_0x15bbf2(0x312),'LrYGP':_0x15bbf2(0x1d7),'bZtBL':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dsriI':_0x15bbf2(0x2f5),'vOzXU':_0x15bbf2(0x2e8),'DAfVt':_0x15bbf2(0x31f),'KzbeV':_0x15bbf2(0x1f9),'ucLvz':_0x15bbf2(0x337),'uyTww':_0x15bbf2(0x1a6),'WJeyJ':_0x15bbf2(0x1d4),'duLQR':_0x15bbf2(0x22b),'yGyIa':_0x15bbf2(0x2c2),'HKoTA':'Enabling\x20Hub\x20HA\x20flow','CdqMq':_0x15bbf2(0x261),'bcUFP':'browserstack','dGtYW':_0x15bbf2(0x1b5),'WgitH':_0x15bbf2(0x22a),'Jamnp':function(_0x4a00be,_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8){return _0x4a00be(_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8);},'MNCdH':function(_0x3ec031,_0x22dd9e){return _0x3ec031!==_0x22dd9e;},'gptIA':function(_0x3a997d,_0x10c74e){return _0x3a997d(_0x10c74e);},'Okbeh':_0x15bbf2(0x1f8),'BDBeB':_0x15bbf2(0x231),'Dxyvu':_0x15bbf2(0x2d5),'JkZLl':_0x15bbf2(0x2b1),'eyofz':'http','xcMrh':_0x15bbf2(0x1b8),'phwsL':'premium-rwo','SSOiI':function(_0x187294,_0x24d60f){return _0x187294(_0x24d60f);},'JDvfz':_0x15bbf2(0x1ee),'fRwAv':_0x15bbf2(0x1ea),'UCiNG':function(_0x2fc253,_0x5abd70){return _0x2fc253===_0x5abd70;},'ifmZe':'error','fAnOL':_0x15bbf2(0x226),'SHLEQ':function(_0x5863eb,_0x4c17d3){return _0x5863eb(_0x4c17d3);},'JfbGj':function(_0x215aa6){return _0x215aa6();},'koaGw':function(_0x5b9f85,_0xbb5e95){return _0x5b9f85===_0xbb5e95;},'rILpC':_0x15bbf2(0x27b),'dGWfv':_0x15bbf2(0x244),'zLiIN':_0x15bbf2(0x333),'ijyvI':function(_0x596c0b,_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca){return _0x596c0b(_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca);},'XOsVL':'create-grid-called','VwFJC':_0x15bbf2(0x270),'lCbEC':function(_0x20507f){return _0x20507f();},'tVtgt':'<UsernamePlaceholder>','TXrHi':'<PasswordPlaceholder>','gNSWc':'Adding\x20Websocket\x20listeners','bnooc':'Fenly','djjAp':function(_0xf0ff2d,_0x509072){return _0xf0ff2d===_0x509072;},'aEtiC':_0x15bbf2(0x1fb),'WzEak':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cvSEM':function(_0x15d27d,_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9){return _0x15d27d(_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9);},'SbeGr':'prespawned-cluster-args-not-passed','uAvrs':_0x15bbf2(0x23d),'gHDjJ':_0x15bbf2(0x345),'FjMsR':'non-aws-azure-cluster','jEVYD':function(_0x3da927,_0x108ea4){return _0x3da927===_0x108ea4;},'KDLbc':function(_0x4ba6cd,_0x43a928){return _0x4ba6cd!==_0x43a928;},'AsaAS':_0x15bbf2(0x310),'USLFI':_0x15bbf2(0x2ea),'AJSIn':'ZzTgY','kuBBE':function(_0x1b86fa,_0x575a44){return _0x1b86fa!==_0x575a44;},'tEpbG':_0x15bbf2(0x1ca),'IULua':_0x15bbf2(0x1e4),'YpssC':_0x15bbf2(0x241),'rCWtx':function(_0xd51f0c,_0x2a7f25,_0x49cb19){return _0xd51f0c(_0x2a7f25,_0x49cb19);},'JmpjB':_0x15bbf2(0x280),'OfgcR':_0x15bbf2(0x331),'iYYpi':_0x15bbf2(0x210),'LQeOn':function(_0x24aa20,_0x46b600,_0x14586e){return _0x24aa20(_0x46b600,_0x14586e);},'pcMMV':'DQFAX','bbpPE':'RuBOS','QEJun':_0x15bbf2(0x293),'LyciK':_0x15bbf2(0x220),'UbAmW':_0x15bbf2(0x227),'gsrff':_0x15bbf2(0x1ec),'fAHvH':_0x15bbf2(0x305),'YqCXW':function(_0x335158,_0xef541c){return _0x335158===_0xef541c;},'XIpSt':'iCCNN','rsHGS':_0x15bbf2(0x30f),'WpKQi':_0x15bbf2(0x1d2),'VCzoh':_0x15bbf2(0x232),'rnGNH':'JgAwJ','gexON':_0x15bbf2(0x252),'lGCkE':_0x15bbf2(0x330),'aIkhs':'slSYD','nuWNy':'TpmyL','SxqjO':'AFGkZ','OtoTm':_0x15bbf2(0x1ba),'loxSI':function(_0x2d9fd7,_0x451cc3){return _0x2d9fd7===_0x451cc3;},'dYIdH':'wbSYv','zXhYt':function(_0x394e2c,_0x1587e9){return _0x394e2c===_0x1587e9;},'DrCPa':function(_0x2f2e83,_0x483262){return _0x2f2e83!==_0x483262;},'uAohg':'WCrve','rVVcR':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','tctbI':function(_0x585a18,_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f){return _0x585a18(_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f);},'MOYuS':_0x15bbf2(0x207),'rAFdK':_0x15bbf2(0x230),'HCjjv':function(_0x11034e,_0x1e0f88){return _0x11034e===_0x1e0f88;},'gEMrJ':_0x15bbf2(0x2db),'CRscd':function(_0x26f77a,_0x3f86bb){return _0x26f77a!==_0x3f86bb;},'zDgED':_0x15bbf2(0x2fe),'xUoMH':'tXSXo','dFocL':function(_0x352ca4,_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25){return _0x352ca4(_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25);},'oekQL':'mfxOv','ZxoyO':function(_0x789f1d,_0x3ccbba){return _0x789f1d!==_0x3ccbba;},'wLTCr':_0x15bbf2(0x205),'JdiWi':function(_0x349c9e,_0x422ce6){return _0x349c9e===_0x422ce6;},'mduNp':_0x15bbf2(0x22d),'xnAXW':function(_0x4b6bb9,_0x1f4dd4){return _0x4b6bb9===_0x1f4dd4;},'WSfqg':_0x15bbf2(0x2e4),'LDKWa':function(_0x2ff380,_0x226547){return _0x2ff380(_0x226547);},'yXVCZ':_0x15bbf2(0x228),'bsyIR':_0x15bbf2(0x25d),'soopO':_0x15bbf2(0x214),'UQsjE':function(_0x486812,_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f){return _0x486812(_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f);},'LEtwd':_0x15bbf2(0x1ad),'zmmwU':function(_0x4e5279,_0x36ca16){return _0x4e5279===_0x36ca16;},'IcvvP':function(_0x8a3651,_0x1ab72b){return _0x8a3651===_0x1ab72b;},'FPjje':_0x15bbf2(0x2e6),'yQEqV':function(_0x51020f,_0x4c68b3){return _0x51020f===_0x4c68b3;},'VMssN':_0x15bbf2(0x324),'HvTVc':_0x15bbf2(0x2a9),'gFiwU':function(_0x54a1f1,_0x5bfe4a){return _0x54a1f1!=_0x5bfe4a;},'HugzQ':function(_0x46d485,_0xec75fe){return _0x46d485>_0xec75fe;},'VPDoI':function(_0x40ea97,_0x2f1759){return _0x40ea97===_0x2f1759;},'tVckm':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','kXLws':function(_0x15171c,_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8){return _0x15171c(_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8);},'YoMIM':'pre-spawned-subnets-not-selected','pmsEk':_0x15bbf2(0x223),'NzFmN':_0x15bbf2(0x302),'FizWt':function(_0x4999b7,_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6){return _0x4999b7(_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6);},'XwJCL':'pre-spawned-invalid-subnets','TOFcg':_0x15bbf2(0x274),'ayxRV':_0x15bbf2(0x33e),'ylwVu':_0x15bbf2(0x1d3),'iiRos':function(_0x17452d,_0x284cf4,_0x287924){return _0x17452d(_0x284cf4,_0x287924);},'wfRAx':function(_0x299707,_0x4dd2bb){return _0x299707===_0x4dd2bb;},'MtGaO':function(_0x3e8c73,_0x3570a5){return _0x3e8c73===_0x3570a5;},'IupBV':_0x15bbf2(0x32b),'MNcfi':function(_0x5442d1,_0x39388f,_0x693289){return _0x5442d1(_0x39388f,_0x693289);},'FYXYB':_0x15bbf2(0x1cf),'mOsZQ':_0x15bbf2(0x20b),'EPGrp':'templates','XugDR':'hubharesources','kFgrz':_0x15bbf2(0x2b7),'ijrTB':_0x15bbf2(0x343),'fqJDM':function(_0x2c5dbe,_0x4d6525){return _0x2c5dbe(_0x4d6525);},'lJtcg':function(_0x19a473,_0x46e348){return _0x19a473(_0x46e348);},'ikFAq':function(_0x55c98d,_0xa3767f){return _0x55c98d(_0xa3767f);},'Lzeyl':function(_0x1406d6,_0x53831d,_0x5e29f4){return _0x1406d6(_0x53831d,_0x5e29f4);},'UFEVF':'Added\x20Secret\x20Mapping','goJxm':_0x15bbf2(0x20c),'TOcku':function(_0x3a6720,_0x289d46){return _0x3a6720===_0x289d46;},'tgzJM':function(_0x4995c4,_0x12e307){return _0x4995c4===_0x12e307;},'qRVtx':_0x15bbf2(0x2cd),'dbxmt':_0x15bbf2(0x234),'BmBBY':_0x15bbf2(0x342),'dmUsE':_0x15bbf2(0x277),'khSXY':_0x15bbf2(0x2cc),'MMARt':function(_0x4cc192,_0x6a8239,_0x23b43b){return _0x4cc192(_0x6a8239,_0x23b43b);},'SFvHC':_0x15bbf2(0x237),'mkERk':'Adding\x20Turboscale\x20Uploader\x20deployment...','Gbyza':_0x15bbf2(0x314),'FrSog':_0x15bbf2(0x209),'YuPWT':_0x15bbf2(0x294),'wYcYu':_0x15bbf2(0x225),'BVXyY':_0x15bbf2(0x2fd),'jsMkc':_0x15bbf2(0x307),'tRzYQ':function(_0x4147e8,_0x5c2af9){return _0x4147e8(_0x5c2af9);},'glLtM':'Creating\x20namespace','Tfkez':function(_0x1bd8a4,_0x1bdb14){return _0x1bd8a4!==_0x1bdb14;},'paEdy':'Browserstack','JmkCQ':_0x15bbf2(0x2e2),'QlaTZ':_0x15bbf2(0x2d7),'zeRvC':_0x15bbf2(0x2b3),'yHMKi':_0x15bbf2(0x2ef),'llSaa':function(_0x3d6ef3,_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746){return _0x3d6ef3(_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746);},'fttrY':_0x15bbf2(0x1a8),'QHAID':_0x15bbf2(0x2a7),'jyWWn':function(_0x1911f7,_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b){return _0x1911f7(_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b);},'hCzjl':_0x15bbf2(0x211),'zlYyn':_0x15bbf2(0x1f4),'wsqGj':_0x15bbf2(0x284),'mxxOn':function(_0x3a61ba,_0x369e95,_0x1ab154){return _0x3a61ba(_0x369e95,_0x1ab154);},'RGoDZ':function(_0x59e5d7,_0x59ec1c){return _0x59e5d7===_0x59ec1c;},'QBsdY':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','naUmm':function(_0x53cdfa,_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56){return _0x53cdfa(_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56);},'lmdVO':_0x15bbf2(0x1b6),'lKsEc':function(_0x4b4647,_0xba5ab1){return _0x4b4647===_0xba5ab1;},'ygSrp':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RHRLu':'get-grid-url-auth-failed','CtTex':function(_0x3653f6,_0xe90893){return _0x3653f6!==_0xe90893;},'EhlUT':_0x15bbf2(0x348),'ZGyaO':function(_0x3fca1b,_0x186609){return _0x3fca1b===_0x186609;},'ETWeJ':_0x15bbf2(0x2c4),'LMEhC':function(_0x187e9a,_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27){return _0x187e9a(_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27);},'EoiNf':'grid-spawning-failed'};let _0x27118f=![],_0x5aa0e7=![],_0xbb7bf,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x8fbea0,_0x1be57d,_0x56073f,_0x469f60,_0x10c84e,_0x431f2c,_0x208b4b,_0x54dc73,_0x206b5d=0x1,_0x29c944=0xe;try{global_registry[_0x15bbf2(0x2ba)]=_0x194b7f[_0x15bbf2(0x1df)](uuidv4),global_registry[_0x15bbf2(0x32f)]=![];if(!fs[_0x15bbf2(0x1e5)](_0x194b7f[_0x15bbf2(0x1df)](getCredentialsPath))){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x32a)],_0x194b7f['dGWfv'])){const _0x5333a3={};_0x5333a3[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x33c)],_0x5333a3[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x2a4c92={};_0x2a4c92[_0x15bbf2(0x23c)]=_0x194b7f['LrYGP'],_0x2a4c92[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x383d86={};_0x383d86['description']=_0x194b7f[_0x15bbf2(0x253)],_0x383d86[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xef2249={};_0xef2249[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x340)],_0xef2249[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xbf786={};_0xbf786['description']=_0x194b7f[_0x15bbf2(0x301)],_0xbf786[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x251520={};_0x251520[_0x15bbf2(0x23c)]=_0x194b7f['DAfVt'],_0x251520[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x15ca11={};_0x15ca11[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2dd)],_0x15ca11[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x15ca11[_0x15bbf2(0x231)]=![];const _0x21b908={};_0x21b908[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2e9)],_0x21b908[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x21b908['default']=![];const _0x5b24a1={};_0x5b24a1[_0x15bbf2(0x23c)]=_0x194b7f['WJeyJ'],_0x5b24a1[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x27c)],_0x5b24a1[_0x15bbf2(0x231)]=![];const _0x2c94a0={};return _0x2c94a0[_0x15bbf2(0x2a1)]=_0x5333a3,_0x2c94a0[_0x15bbf2(0x309)]=_0x2a4c92,_0x2c94a0['cluster-name']=_0x383d86,_0x2c94a0[_0x15bbf2(0x329)]=_0xef2249,_0x2c94a0[_0x15bbf2(0x1c1)]=_0xbf786,_0x2c94a0[_0x15bbf2(0x31b)]=_0x251520,_0x2c94a0[_0x15bbf2(0x2e5)]=_0x15ca11,_0x2c94a0[_0x15bbf2(0x273)]=_0x21b908,_0x2c94a0[_0x15bbf2(0x222)]=_0x5b24a1,_0x2dee59['usage'](_0x4d15f2['create'])['epilogue'](_0x264e4e)[_0x15bbf2(0x251)](_0x2c94a0)[_0x15bbf2(0x22b)](_0x194b7f[_0x15bbf2(0x323)])['argv'];}else console[_0x15bbf2(0x20e)](_0x194b7f[_0x15bbf2(0x1b7)]),await _0x194b7f['ijyvI'](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1c0)],null,_0xbdb8d7),process['exit'](0x1);}await _0x194b7f[_0x15bbf2(0x24c)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f[_0x15bbf2(0x2f0)],messageTypes[_0x15bbf2(0x2ec)],null,null,_0xbdb8d7);const _0x558f6f=JSON[_0x15bbf2(0x2c1)](fs[_0x15bbf2(0x338)](_0x194b7f[_0x15bbf2(0x29e)](getCredentialsPath)));global_registry[_0x15bbf2(0x1c2)]=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)],global_registry['bstackAccesskey']=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)];const _0xe41a8b=WS_ENDPOINT['replace'](_0x194b7f['tVtgt'],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)])['replace'](_0x194b7f[_0x15bbf2(0x289)],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)]),_0x4b7816={};_0x4b7816[_0x15bbf2(0x28d)]=ws,_0x4b7816[_0x15bbf2(0x1a9)]=0x36ee80,_0x431f2c=new ReconnectingWebSocket(_0xe41a8b,[],_0x4b7816),logger[_0x15bbf2(0x29a)](_0x194b7f[_0x15bbf2(0x1e6)]),webSocketUtils[_0x15bbf2(0x257)](_0x431f2c,_0xbdb8d7[_0x15bbf2(0x26c)],_0xbdb8d7[_0x15bbf2(0x32d)]);const _0x2824b6=_0xbdb8d7[_0x15bbf2(0x2b4)]||DEFAULT_GRID_NAME;if(_0xbdb8d7[_0x15bbf2(0x29b)]||_0xbdb8d7[_0x15bbf2(0x2de)]||_0xbdb8d7[_0x15bbf2(0x1c1)]){if(_0x194b7f['MNCdH'](_0x194b7f[_0x15bbf2(0x2d8)],_0x194b7f[_0x15bbf2(0x2d8)]))_0xf0ddb7[_0x15bbf2(0x1b2)](_0x15bbf2(0x213)+_0x452075['clusterName']+_0x15bbf2(0x2b0)),_0x1dd776=![],_0x5a92ba=!![];else{!(_0xbdb8d7[_0x15bbf2(0x29b)]&&_0xbdb8d7[_0x15bbf2(0x2de)]&&_0xbdb8d7[_0x15bbf2(0x1c1)])&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f['aEtiC'],_0x194b7f[_0x15bbf2(0x308)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1e0)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f['SbeGr'],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x265ff9[_0x15bbf2(0x32f)]=!![]);![AWS,AZURE,GCP]['includes'](_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)]())&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x1fe)],_0x194b7f[_0x15bbf2(0x1fe)])?(_0xbb7bf=_0x194b7f['gHDjJ'],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x285)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1)):_0x408f86['gridProfile']=_0xa20ed5[_0x15bbf2(0x2bb)]);if(_0xbdb8d7[_0x15bbf2(0x332)]&&_0x194b7f[_0x15bbf2(0x2f7)](_0xbdb8d7[_0x15bbf2(0x332)][_0x15bbf2(0x2d0)](),_0x194b7f[_0x15bbf2(0x259)])){if(_0x194b7f['KDLbc'](_0x194b7f[_0x15bbf2(0x27d)],_0x194b7f['AsaAS'])){const _0xac8954=_0x194b7f['yGyIa'][_0x15bbf2(0x27f)]('|');let _0x2dbf89=0x0;while(!![]){switch(_0xac8954[_0x2dbf89++]){case'0':_0x26dfdc[_0x15bbf2(0x326)]=!![];continue;case'1':_0x127176[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x218)]);continue;case'2':_0x354bf6[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'3':_0x4b0f0c[_0x15bbf2(0x29c)]=_0x194b7f['bcUFP'];continue;case'4':_0x5dba88[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else global_registry[_0x15bbf2(0x32f)]=!![];}global_registry[_0x15bbf2(0x2de)]=_0xbdb8d7[_0x15bbf2(0x2de)],global_registry[_0x15bbf2(0x2b2)]=_0xbdb8d7['region'],global_registry[_0x15bbf2(0x29b)]=_0xbdb8d7[_0x15bbf2(0x29b)];const _0x306368=await _0x194b7f[_0x15bbf2(0x24c)](getCloudProviderObject,_0xbdb8d7[_0x15bbf2(0x2de)],_0xbdb8d7[_0x15bbf2(0x29b)],_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7),_0x49004d=await _0x306368[_0x15bbf2(0x316)]();if(!_0x49004d){if(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f['USLFI'],_0x194b7f[_0x15bbf2(0x2bc)]))logger['info'](_0x15bbf2(0x213)+_0xbdb8d7[_0x15bbf2(0x29b)]+_0x15bbf2(0x2b0)),_0x27118f=![],_0x5aa0e7=!![];else{const _0x1deb81=_0x194b7f[_0x15bbf2(0x1b3)][_0x15bbf2(0x27f)]('|');let _0x509a07=0x0;while(!![]){switch(_0x1deb81[_0x509a07++]){case'0':_0x25ae31[_0x15bbf2(0x1b2)](_0x436395);continue;case'1':_0x348ada=_0xd22d02[_0x15bbf2(0x260)];continue;case'2':_0x4969b9=null;continue;case'3':_0x194b7f[_0x15bbf2(0x1c4)](_0x4a4c42,_0x46b2e6,_0x1aa9ba,_0x5052f6,_0x12d83f,_0x33f02e,_0x31c25e,_0x51d477,_0x4f15a2,_0xf0318f,_0xa7dc0,_0x3bd46d,_0x5ca64f[_0x15bbf2(0x26d)]);continue;case'4':const _0x35beba={};_0x35beba[_0x15bbf2(0x1e9)]=_0x48614b[_0x15bbf2(0x242)],_0x35beba[_0x15bbf2(0x1dc)]=_0x43df38,_0xce40bd[_0x15bbf2(0x320)](_0xa0ad25,_0x35beba);continue;case'5':_0x1151cf=_0x533320[_0x15bbf2(0x346)];continue;case'6':_0x3ae2fc=_0x7372ba['hubVersion'];continue;case'7':_0x2db562=null;continue;case'8':_0x58c374=_0x238396[_0x15bbf2(0x1f5)];continue;case'9':_0x194b7f[_0x15bbf2(0x297)](_0x141e87['privateGrid'],_0x4d541e)&&_0x501b95[_0x15bbf2(0x332)]&&(_0x5e7b99[_0x15bbf2(0x32f)]=!![]);continue;case'10':_0x1a3a67=_0x5a96ab['maxNodes'];continue;case'11':_0x2fba58['enableHubHa']&&_0x194b7f[_0x15bbf2(0x32c)](_0x1c2386,_0x1b3aa2['kafkaUploader']);continue;case'12':_0x51ecf7=null;continue;case'13':_0xc60f7f=_0x577ed5['s3bucket'];continue;case'14':_0x1f00cb=_0x36ed7a[_0x15bbf2(0x23a)];continue;case'15':_0x2c8f04=_0x15bbf2(0x2a2)+_0x191953;continue;}break;}}}else _0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x304)],_0x194b7f[_0x15bbf2(0x304)])?_0x20c476=!![]:_0x27118f=!![];_0x4810ac=_0xbdb8d7[_0x15bbf2(0x29b)],_0x5e5e06=_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)](),_0x5c8c30=_0xbdb8d7[_0x15bbf2(0x1c1)];}}else{if(_0xbdb8d7[_0x15bbf2(0x2bb)]){if(_0x194b7f['kuBBE'](_0x194b7f['IULua'],_0x194b7f['IULua'])){const _0x4e65f5={'azure.workload.identity/use':_0x194b7f['Okbeh'],..._0x33b0ba[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]};_0x4e6f16[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)]['metadata'][_0x15bbf2(0x1eb)]=_0x4e65f5,_0x305806[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f[_0x15bbf2(0x2af)];}else global_registry['gridProfile']=_0xbdb8d7[_0x15bbf2(0x2bb)];}}global_registry[_0x15bbf2(0x2b4)]=_0xbdb8d7['gridName'];const _0x5aaba1={'method':_0x194b7f[_0x15bbf2(0x27e)],'headers':_0x194b7f[_0x15bbf2(0x206)](getAuthHeader,_0x558f6f['Browserstack'][_0x15bbf2(0x2e0)],_0x558f6f[_0x15bbf2(0x1c9)]['password']),'throwHttpErrors':![]},_0x175f37={};_0x175f37['gridName']=_0x2824b6;const _0x2f3f26=_0x175f37;_0x5aa0e7&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x2cb)],_0x194b7f[_0x15bbf2(0x2cb)])?_0x4aece9[_0x15bbf2(0x32f)]=!![]:(_0x2f3f26[_0x15bbf2(0x1c1)]=_0x5c8c30,_0x2f3f26['cloudProvider']=_0x5e5e06,_0x2f3f26[_0x15bbf2(0x2c3)]=!![],_0x2f3f26[_0x15bbf2(0x201)]=_0xbdb8d7['clusterAutoupgrade']));if(_0xbdb8d7[_0x15bbf2(0x26d)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f['OfgcR'],_0x194b7f['iYYpi']))logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x24e)]);else{const _0x1b5f31=_0x194b7f['Dxyvu'][_0x15bbf2(0x27f)]('|');let _0x3702e1=0x0;while(!![]){switch(_0x1b5f31[_0x3702e1++]){case'0':const _0x122c95={};_0x122c95[_0x15bbf2(0x1e9)]=_0x47c3d4[_0x15bbf2(0x1a4)],_0x122c95['message']=_0x194b7f[_0x15bbf2(0x1a7)],_0x51db4c[_0x15bbf2(0x320)](_0x130675,_0x122c95);continue;case'1':_0x64efad=_0x15bbf2(0x246)+_0x327764+_0x15bbf2(0x335)+_0x5138cb+'\x27';continue;case'2':_0x45280b['browserVersion']=_0x55c8fd[_0x15bbf2(0x346)];continue;case'3':_0x2dec4a[_0x15bbf2(0x29b)]=_0xf5d01e;continue;case'4':_0x4b1a85[_0x15bbf2(0x236)]=_0x4ce16f[_0x15bbf2(0x236)];continue;case'5':_0x350cac[_0x15bbf2(0x1b2)](_0x1b5e8d);continue;case'6':_0x40b01e[_0x15bbf2(0x2de)]=_0x157ee3;continue;case'7':const _0x5bb328={};_0x5bb328['type']=_0x3092e0['LOG'],_0x5bb328['message']=_0x7f1768,_0xefa9bc[_0x15bbf2(0x320)](_0xf696d5,_0x5bb328);continue;case'8':_0x315468[_0x15bbf2(0x2b2)]=_0x3ce17e;continue;}break;}}}const _0x4da446='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x4bc15d={'searchParams':_0x2f3f26,'throwHttpErrors':![],..._0x5aaba1},_0x1154f7=_0x4bc15d,_0x40c55d=await _0x194b7f[_0x15bbf2(0x28b)](got,_0x4da446,_0x1154f7);(_0x194b7f['jEVYD'](_0x40c55d,null)||_0x194b7f[_0x15bbf2(0x1c5)](_0x40c55d,undefined))&&(_0x194b7f[_0x15bbf2(0x297)](_0x194b7f[_0x15bbf2(0x299)],_0x194b7f[_0x15bbf2(0x1ed)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x276)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1f0)],_0x194b7f['ifmZe']),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x3f338d[_0x15bbf2(0x32f)]=!![]);_0x194b7f['koaGw'](_0x40c55d['statusCode'],0x191)&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x1d9)],_0x194b7f[_0x15bbf2(0x1d9)])?_0x5a46ee=_0x194b7f['eyofz']:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1b1)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x224)],_0x194b7f[_0x15bbf2(0x263)]),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));_0x194b7f[_0x15bbf2(0x20f)](_0x40c55d[_0x15bbf2(0x278)],0xc8)&&(_0x194b7f[_0x15bbf2(0x2d4)](_0x194b7f[_0x15bbf2(0x319)],_0x194b7f[_0x15bbf2(0x1ef)])?_0x345344[_0x15bbf2(0x20e)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x17d976+'\x20\x0a'+_0x2f024d['stringify'](_0x497cf0[_0x15bbf2(0x1ae)])):(_0xbb7bf='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x15bbf2(0x25f)](_0x40c55d[_0x15bbf2(0x2aa)]),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2e1)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));const _0x36abfa=JSON[_0x15bbf2(0x2c1)](_0x40c55d['body']),_0x35d8cb={};_0x35d8cb[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x1a4)],_0x35d8cb[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x35d8cb);const _0x29466a={};_0x29466a[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x29466a[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x2ee)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x29466a);_0x36abfa[_0x15bbf2(0x30d)]&&(_0x194b7f['YqCXW'](_0x194b7f[_0x15bbf2(0x2b5)],_0x194b7f[_0x15bbf2(0x2b5)])?(_0xbb7bf=_0x15bbf2(0x334)+_0x2824b6+_0x15bbf2(0x1c3),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1bd)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x390268=null);const _0x49bc9b=_0x36abfa[_0x15bbf2(0x2d3)];let _0x2846d9=_0x49bc9b[_0x36abfa['defaultGridProfile']];_0xbdb8d7[_0x15bbf2(0x2bb)]&&(_0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x296)],_0x194b7f[_0x15bbf2(0x315)])?_0x2846d9=_0x49bc9b[_0xbdb8d7[_0x15bbf2(0x2bb)]]:(_0x547d18=_0x5755bb['route53'],_0x15d986=_0x194b7f[_0x15bbf2(0x1da)]));global_registry['enableHubHa']=![];if(_0xbdb8d7[_0x15bbf2(0x1de)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f[_0x15bbf2(0x2a5)],_0x194b7f[_0x15bbf2(0x2a8)])){const _0x194022=_0x194b7f[_0x15bbf2(0x1fa)][_0x15bbf2(0x27f)]('|');let _0x22de64=0x0;while(!![]){switch(_0x194022[_0x22de64++]){case'0':logger['info'](_0x194b7f['HKoTA']);continue;case'1':global_registry[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'2':global_registry[_0x15bbf2(0x326)]=!![];continue;case'3':global_registry['hubHaNameSpace']=_0x194b7f[_0x15bbf2(0x303)];continue;case'4':global_registry[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else _0x5956af=null;}if(_0x194b7f['jEVYD'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x2b8)](_0x5aa0e7,![])){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x349)],_0x194b7f[_0x15bbf2(0x349)])){_0x194b7f[_0x15bbf2(0x339)](_0x2846d9,undefined)&&(_0x194b7f['DrCPa'](_0x194b7f[_0x15bbf2(0x25e)],_0x194b7f[_0x15bbf2(0x25e)])?_0x53d17d=_0x194b7f[_0x15bbf2(0x31d)]:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x30e)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2ab)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));global_registry[_0x15bbf2(0x235)]=_0x2846d9['id'],_0xbb7bf=_0x15bbf2(0x2c7)+_0x2824b6+_0x15bbf2(0x240)+_0x2846d9[_0x15bbf2(0x22c)]+_0x15bbf2(0x208),logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x549bdc={};_0x549bdc[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x549bdc[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x549bdc),_0x5e5e06=_0x2846d9['cloudProvider'],_0x4810ac=_0x2846d9['clusterName'],_0x5c8c30=_0x2846d9[_0x15bbf2(0x1c1)],_0x2d9ce8=_0x2846d9[_0x15bbf2(0x260)],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=_0x2846d9[_0x15bbf2(0x1f1)],_0x1be57d=_0x2846d9[_0x15bbf2(0x1f7)],_0x56073f=_0x2846d9['subnets'],_0x469f60=_0x2846d9['s3bucket'],_0x206b5d=_0x2846d9['minNodes'],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa['browserVersion'],_0x8fbea0&&_0x194b7f[_0x15bbf2(0x233)](_0x8fbea0[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x212)],_0x194b7f[_0x15bbf2(0x212)])?_0x8fbea0=null:(_0x35c1e8['region']=_0x4a327c,_0x5ca842[_0x15bbf2(0x2de)]=_0x1869e4,_0xcf2d40[_0x15bbf2(0x2c3)]=!![],_0x261961['clusterAutoUpgrade']=_0x19ab4c[_0x15bbf2(0x26d)])),_0x56073f&&_0x194b7f['HCjjv'](_0x56073f[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x21a)],_0x194b7f['gEMrJ'])?_0x56073f=null:_0x194b7f[_0x15bbf2(0x1c6)](_0x539721,_0x5069db['uploaderVersion'])),_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x344)],_0x194b7f[_0x15bbf2(0x2df)])?_0x33600f=_0x194b7f['JDvfz']:global_registry[_0x15bbf2(0x32f)]=!![]),_0x194b7f[_0x15bbf2(0x291)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]),global_registry[_0x15bbf2(0x326)]&&(_0x194b7f[_0x15bbf2(0x339)](_0x194b7f[_0x15bbf2(0x275)],_0x194b7f['oekQL'])?_0x194b7f[_0x15bbf2(0x2a4)](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x341)]):_0x4b1945[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+_0x1b802d[_0x15bbf2(0x25f)](_0x41ae93)+'\x20'));}else _0x508083['sendResourceDataToHST']();}else{if(_0x194b7f[_0x15bbf2(0x279)](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x1f3)],_0x194b7f[_0x15bbf2(0x1f3)]))throw new _0x4df503('Cluster\x20'+_0x56923f+_0x15bbf2(0x298));else{_0xbb7bf=_0x15bbf2(0x2a2)+_0x2824b6,logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x58a7fd={};_0x58a7fd['type']=WS_EVENTS['LOG'],_0x58a7fd[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x58a7fd),_0x2d9ce8=_0x2846d9['concurrency'],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=null,_0x1be57d=null,_0x56073f=null,_0x469f60=_0x2846d9[_0x15bbf2(0x203)],_0x206b5d=_0x2846d9[_0x15bbf2(0x1f5)],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa[_0x15bbf2(0x346)];if(_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]){if(_0x194b7f[_0x15bbf2(0x269)](_0x194b7f['mduNp'],_0x194b7f[_0x15bbf2(0x34d)]))global_registry['isPrivateGrid']=!![];else{const _0x2bb6a0={};_0x2bb6a0[_0x15bbf2(0x1e9)]=_0x2d2624[_0x15bbf2(0x242)],_0x2bb6a0[_0x15bbf2(0x1dc)]=_0x15bbf2(0x202)+_0x30b793+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x2b276e[_0x15bbf2(0x320)](_0x5d7c03,_0x2bb6a0,_0x194b7f[_0x15bbf2(0x255)]),_0x1b986f[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x11e54e+_0x15bbf2(0x28f)),_0x4ed970=!![];if(_0x194b7f[_0x15bbf2(0x1c5)](_0x18cbb4,!![]))throw new _0x31dec2(_0x15bbf2(0x202)+_0x270f22+_0x15bbf2(0x298));}}_0x194b7f[_0x15bbf2(0x1c4)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]);if(global_registry[_0x15bbf2(0x326)]){if(_0x194b7f['xnAXW'](_0x194b7f['WSfqg'],_0x194b7f[_0x15bbf2(0x2fc)]))_0x194b7f['LDKWa'](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x1cb)]);else{const _0x5f2cee={};_0x5f2cee[_0x15bbf2(0x1e9)]=_0x10380f['LOG'],_0x5f2cee['message']=_0x4095a5,_0x301c6e['sendEventToBackend'](_0x18b3d5,_0x5f2cee,_0x194b7f[_0x15bbf2(0x263)],!![]);}}}}else{if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x2b6)],_0x194b7f['bsyIR'])){const _0x262590=_0x194b7f[_0x15bbf2(0x2c8)][_0x15bbf2(0x27f)]('|');let _0x1dbf5f=0x0;while(!![]){switch(_0x262590[_0x1dbf5f++]){case'0':global_registry[_0x15bbf2(0x29b)]=_0x4810ac;continue;case'1':global_registry[_0x15bbf2(0x236)]=_0x36abfa[_0x15bbf2(0x236)];continue;case'2':global_registry[_0x15bbf2(0x346)]=_0x36abfa[_0x15bbf2(0x346)];continue;case'3':global_registry[_0x15bbf2(0x2b2)]=_0x5c8c30;continue;case'4':logger['info'](_0xbb7bf);continue;case'5':const _0x19e286={};_0x19e286['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x19e286[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x19e286);continue;case'6':const _0x4f6c9d={};_0x4f6c9d['type']=WS_EVENTS[_0x15bbf2(0x1a4)],_0x4f6c9d[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x4f6c9d);continue;case'7':_0xbb7bf=_0x15bbf2(0x246)+_0x2824b6+_0x15bbf2(0x335)+_0x4810ac+'\x27';continue;case'8':global_registry[_0x15bbf2(0x2de)]=_0x5e5e06;continue;}break;}}else _0x592d81[_0x15bbf2(0x1b2)](_0x194b7f['fAnOL']);}}const _0x12817a=await _0x194b7f[_0x15bbf2(0x1b0)](getCloudProviderObject,_0x5e5e06,_0x4810ac,_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7);_0x194b7f[_0x15bbf2(0x297)](_0x5e5e06,AZURE)&&(_0x194b7f[_0x15bbf2(0x1d0)](_0x194b7f[_0x15bbf2(0x283)],_0x194b7f[_0x15bbf2(0x283)])?_0x12817a[_0x15bbf2(0x219)]():_0x1f0b30[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0xb588f8+'\x20'));let _0x29b799;if(_0x194b7f[_0x15bbf2(0x1cc)](_0x27118f,![])){_0xbb7bf=_0x15bbf2(0x2b9)+_0x5c8c30+').';const _0x40ec49={};_0x40ec49[_0x15bbf2(0x1e9)]=WS_EVENTS['LOG'],_0x40ec49['message']=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x40ec49),logger['info'](_0xbb7bf);const _0x51bd44=await _0x12817a[_0x15bbf2(0x316)]();if(_0x51bd44){if(_0x194b7f['IcvvP'](_0x194b7f[_0x15bbf2(0x1c7)],_0x194b7f['FPjje'])){const _0xcc61a9={};_0xcc61a9[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xcc61a9[_0x15bbf2(0x1dc)]='Cluster\x20'+_0x4810ac+_0x15bbf2(0x28f),webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xcc61a9,_0x194b7f[_0x15bbf2(0x255)]),logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x4810ac+_0x15bbf2(0x28f)),_0x27118f=!![];if(_0x194b7f['yQEqV'](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1c5)](_0x194b7f['VMssN'],_0x194b7f[_0x15bbf2(0x1d1)]))throw new Error('Cluster\x20'+_0x4810ac+_0x15bbf2(0x298));else _0x44092e=_0x18f351[_0x26af0e[_0x15bbf2(0x2bb)]];}}else _0x194b7f[_0x15bbf2(0x2a4)](_0x267301,_0x3b1739[_0x15bbf2(0x1cb)]);}else{const _0x3f56da={};_0x3f56da['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x3f56da[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x31c)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f56da),logger['info'](_0x194b7f[_0x15bbf2(0x31c)]);const _0x15cbac=_0x194b7f[_0x15bbf2(0x2c0)](_0x8fbea0,null)&&_0x194b7f[_0x15bbf2(0x317)](_0x8fbea0,undefined),_0x2b9c3a=_0x194b7f[_0x15bbf2(0x2c0)](_0x56073f,null)&&_0x194b7f['DrCPa'](_0x56073f,undefined)&&_0x194b7f['HugzQ'](_0x56073f[_0x15bbf2(0x1b4)],0x0);if(_0x15cbac){_0x194b7f[_0x15bbf2(0x2c9)](_0x2b9c3a,![])&&(_0xbb7bf=_0x194b7f['tVckm'],await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2a6)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x2b7fb8=await _0x12817a[_0x15bbf2(0x2d9)](_0x8fbea0);_0x194b7f[_0x15bbf2(0x1cc)](_0x2b7fb8,![])?(_0xbb7bf=_0x194b7f['pmsEk'],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x256)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0x8fbea0+'\x20');const _0xc28d60=await _0x12817a['isSubnetsValid'](_0x56073f,_0x8fbea0);_0x194b7f[_0x15bbf2(0x25b)](_0xc28d60[0x0],![])?(_0xbb7bf=_0x15bbf2(0x2f6)+JSON[_0x15bbf2(0x25f)](_0xc28d60[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x8fbea0+_0x15bbf2(0x2ae),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2be)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+JSON[_0x15bbf2(0x25f)](_0x56073f)+'\x20'),[_0x8fbea0,_0x56073f]=await _0x12817a['setupNewCluster'](_0x8fbea0,_0x56073f);}else{const _0x10d88b=_0x194b7f[_0x15bbf2(0x33f)][_0x15bbf2(0x27f)]('|');let _0x2f2174=0x0;while(!![]){switch(_0x10d88b[_0x2f2174++]){case'0':const _0x56c249={};_0x56c249[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x56c249[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x23e)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x56c249);continue;case'1':logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23e)]);continue;case'2':[_0x8fbea0,_0x56073f]=await _0x12817a[_0x15bbf2(0x27a)](_0x8fbea0,_0x56073f);continue;case'3':logger['info'](_0x194b7f[_0x15bbf2(0x31e)]);continue;case'4':const _0x18bcbe={};_0x18bcbe[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x18bcbe['message']=_0x194b7f['ylwVu'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x18bcbe);continue;}break;}}}}_0x27118f&&_0x194b7f[_0x15bbf2(0x25b)](_0x5e5e06,AZURE)&&(await _0x12817a['updateClusterAlreadyPresent'](),await _0x12817a[_0x15bbf2(0x24b)]());const [_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x3118cd,_0x2a539e,_0x5a795e]=await _0x194b7f[_0x15bbf2(0x34a)](createK8sClient,_0x12817a,_0xbdb8d7['skipTlsCertVerify']);_0x194b7f['wfRAx'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x229)](_0x5e5e06,AWS)&&(global_registry[_0x15bbf2(0x28e)]=!![],_0x29b799=await _0x12817a[_0x15bbf2(0x30a)](_0x4bde39,_0xbdb8d7));if(_0x194b7f['zXhYt'](_0x27118f,![])&&global_registry[_0x15bbf2(0x326)])try{await _0x12817a[_0x15bbf2(0x2e7)](_0x2a539e,_0x5a795e,_0xbdb8d7,_0x8fbea0,_0x56073f);const _0x156575={};_0x156575[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x156575[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x281)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x156575);!await _0x194b7f[_0x15bbf2(0x29d)](namespaceExists,_0x4bde39,global_registry['hubHaNameSpace'])&&await _0x194b7f[_0x15bbf2(0x29d)](createNamespace,_0x4bde39,global_registry['hubHaNameSpace']);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x20d)]);let _0x25b8c6=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f['kFgrz']),_0x194b7f[_0x15bbf2(0x267)]);_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<RedisClientPassword>/g,_0x194b7f[_0x15bbf2(0x238)](encodeBase64,global_registry[_0x15bbf2(0x2d6)])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<KafkaClientPassword>/g,_0x194b7f[_0x15bbf2(0x318)](encodeBase64,global_registry['kafkaPassword'])),_0x25b8c6=_0x25b8c6['replace'](/<BstackUsername>/g,_0x194b7f[_0x15bbf2(0x1c6)](encodeBase64,global_registry['bstackUsername'])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<BstackAccessKey>/g,_0x194b7f['ikFAq'](encodeBase64,global_registry[_0x15bbf2(0x287)]));const _0x52e86c=yaml[_0x15bbf2(0x328)](_0x25b8c6);await _0x194b7f[_0x15bbf2(0x1c8)](kubeApply,_0x52e86c,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x2c6)]);let _0x21cced=_0x194b7f[_0x15bbf2(0x33b)];if(_0x194b7f[_0x15bbf2(0x1b9)](_0x5e5e06,AZURE))_0x21cced=_0x194b7f[_0x15bbf2(0x2e3)];else _0x194b7f['tgzJM'](_0x5e5e06,GCP)&&(_0x21cced=_0x194b7f[_0x15bbf2(0x31d)]);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x22f)]);let _0x542a80=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f[_0x15bbf2(0x33a)]),_0x194b7f[_0x15bbf2(0x267)]);_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x4e64a7=yaml[_0x15bbf2(0x328)](_0x542a80);await _0x194b7f[_0x15bbf2(0x29d)](kubeApply,_0x4e64a7,_0x5a795e),logger['info'](_0x194b7f['BmBBY']),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x1fd)]);let _0x5e8ca2=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f[_0x15bbf2(0x321)]),_0x194b7f[_0x15bbf2(0x267)]);_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x1581f7=yaml[_0x15bbf2(0x328)](_0x5e8ca2);await _0x194b7f[_0x15bbf2(0x34e)](kubeApply,_0x1581f7,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x350)]),logger['info'](_0x194b7f[_0x15bbf2(0x286)]);let _0x1334ad=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f['mOsZQ'],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f['Gbyza']),_0x194b7f['ijrTB']);_0x1334ad=_0x1334ad[_0x15bbf2(0x2ad)](/<UploaderImageVersion>/g,global_registry[_0x15bbf2(0x1ab)]),_0x1334ad=_0x1334ad['replace'](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]);const _0x2c38e4=yaml[_0x15bbf2(0x328)](_0x1334ad);_0x194b7f[_0x15bbf2(0x2d4)](global_registry['cloudProvider'],AZURE)&&(_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)]['labels']={'azure.workload.identity/use':_0x194b7f[_0x15bbf2(0x259)],..._0x2c38e4[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]},_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f['BDBeB']);await _0x194b7f[_0x15bbf2(0x34a)](kubeApply,_0x2c38e4,_0x5a795e),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x262)]);const _0x2fd00b={};_0x2fd00b['type']=WS_EVENTS['LOG'],_0x2fd00b[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1f2)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x2fd00b),logger['info'](_0x194b7f[_0x15bbf2(0x31a)]);}catch(_0x5d07f4){const _0x4927e2=_0x194b7f[_0x15bbf2(0x239)][_0x15bbf2(0x27f)]('|');let _0x3e2fdc=0x0;while(!![]){switch(_0x4927e2[_0x3e2fdc++]){case'0':await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry[_0x15bbf2(0x2b2)]);continue;case'1':logger['error'](_0xbb7bf);continue;case'2':_0xbb7bf=_0x15bbf2(0x34b)+_0x5d07f4[_0x15bbf2(0x1dc)];continue;case'3':process[_0x15bbf2(0x327)](0x1);continue;case'4':await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x290)],_0x194b7f['ifmZe']);continue;}break;}}try{_0x10c84e=_0x194b7f['tRzYQ'](kebabCase,_0x2824b6),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23f)]);const _0x48405e={};_0x48405e[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x48405e[_0x15bbf2(0x1dc)]=_0x194b7f['glLtM'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x48405e);if(_0x194b7f[_0x15bbf2(0x23b)](_0x10c84e,_0x194b7f[_0x15bbf2(0x2af)])){const _0x45902c={};_0x45902c[_0x15bbf2(0x1bc)]=_0x194b7f['paEdy'],_0x45902c[_0x15bbf2(0x300)]=_0x194b7f[_0x15bbf2(0x2a0)];const _0x5f2faa={};_0x5f2faa[_0x15bbf2(0x22c)]=_0x10c84e,_0x5f2faa[_0x15bbf2(0x325)]=_0x45902c;const _0x1ed87d={};_0x1ed87d[_0x15bbf2(0x292)]=_0x5f2faa;const _0x4453b9=_0x1ed87d,_0x536457={};_0x536457['body']=_0x4453b9,await _0x4bde39[_0x15bbf2(0x2f8)](_0x536457),logger['info'](_0x194b7f[_0x15bbf2(0x32e)]);}const _0x65dacf={};_0x65dacf[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x65dacf['message']=_0x194b7f[_0x15bbf2(0x1e8)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x65dacf);const _0x347801={};_0x347801['type']=WS_EVENTS['LOG'],_0x347801[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x322)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x347801),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x2fa)]);let _0x4dbd3c={};_0x194b7f[_0x15bbf2(0x2c9)](_0x5e5e06,AZURE)&&(_0x4dbd3c={'clientId':await _0x12817a['getResourceClientId'](_0x15bbf2(0x1ac)+_0x4810ac)});await _0x194b7f[_0x15bbf2(0x2dc)](addGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e,_0x4810ac,_0x29b799,_0x3118cd,_0x5a795e,_0x4dbd3c),_0xbb7bf=_0x194b7f[_0x15bbf2(0x248)],logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0xf49884={};_0xf49884[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xf49884[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xf49884),_0xbb7bf=_0x194b7f['QHAID'],logger['info'](_0xbb7bf);const _0xee627e={};_0xee627e['type']=WS_EVENTS[_0x15bbf2(0x242)],_0xee627e[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0xee627e),await _0x194b7f[_0x15bbf2(0x1af)](waitForDeployment,_0x36e9be,_0x10c84e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4f359e=await _0x194b7f[_0x15bbf2(0x34e)](getNamespaceUID,_0x4bde39,_0x10c84e),_0xf0f1e6=global_registry[_0x15bbf2(0x32f)]?_0x194b7f['hCzjl']:_0x194b7f[_0x15bbf2(0x247)],_0x42eee8={};_0x42eee8[_0x15bbf2(0x22c)]=_0xf0f1e6,_0x42eee8['namespace']=_0x194b7f[_0x15bbf2(0x1cd)];const _0x51273a=await _0x4bde39[_0x15bbf2(0x2ce)](_0x42eee8);let _0x585f82=_0x12817a[_0x15bbf2(0x2bd)](_0x51273a)+'/'+_0x10c84e,_0x426593=_0x194b7f[_0x15bbf2(0x216)];try{const _0x5d2ed5=_0x15bbf2(0x250)+AG_API_URL+_0x15bbf2(0x200)+_0x4f359e,_0x468d47=await _0x194b7f['mxxOn'](got,_0x5d2ed5,_0x5aaba1);(_0x194b7f['RGoDZ'](_0x468d47,null)||_0x194b7f['zmmwU'](_0x468d47,undefined))&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x24f)],await _0x194b7f[_0x15bbf2(0x1d5)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x1bb)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1));_0x194b7f[_0x15bbf2(0x2f2)](_0x468d47[_0x15bbf2(0x278)],0x191)&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x268)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x204)],_0x194b7f['ifmZe']),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));_0x194b7f['CtTex'](_0x468d47[_0x15bbf2(0x278)],0xc8)&&(_0xbb7bf='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x468d47),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1a5)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x522184=JSON[_0x15bbf2(0x2c1)](_0x468d47['body']);_0x522184[_0x15bbf2(0x265)]&&(_0x585f82=_0x522184[_0x15bbf2(0x265)],_0x426593=_0x194b7f['xcMrh']),global_registry[_0x15bbf2(0x32f)]&&(_0x426593=_0x194b7f[_0x15bbf2(0x216)]);}catch(_0x27feb2){}_0xbb7bf=_0x15bbf2(0x26f)+_0x585f82+'\x20',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x3f93db={};_0x3f93db[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x3f93db[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f93db),_0xbb7bf=_0x15bbf2(0x2d1)+_0x426593+'://'+_0x585f82+'/wd/hub',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x5e6785={};_0x5e6785['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x5e6785[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x5e6785);const _0x17b7e6={};_0x17b7e6[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x20a)],_0x17b7e6[_0x15bbf2(0x1dc)]=_0x15bbf2(0x243)+_0x585f82,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x17b7e6),await webSocketUtils[_0x15bbf2(0x266)](0x7d0);}catch(_0x1218da){logger[_0x15bbf2(0x20e)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x1218da+'\x20\x0a'+JSON[_0x15bbf2(0x25f)](_0x1218da[_0x15bbf2(0x1ae)]));if(_0x194b7f[_0x15bbf2(0x306)](_0x27118f,![]))try{logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x336)]),await _0x194b7f[_0x15bbf2(0x2ed)](removeGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e),await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry['clusterRegion']);}catch(_0x562973){logger[_0x15bbf2(0x20e)](_0x15bbf2(0x33d)+_0x562973+'\x20\x0a'+JSON['stringify'](_0x562973[_0x15bbf2(0x1ae)]));}throw _0x1218da;}}catch(_0x529705){const _0x5aaa0e=_0x15bbf2(0x21e)+_0x529705+'\x20\x0a'+JSON['stringify'](_0x529705[_0x15bbf2(0x1ae)]);if(_0x431f2c){const _0x412489={};_0x412489[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x412489[_0x15bbf2(0x1dc)]=_0x5aaa0e,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x412489,_0x194b7f[_0x15bbf2(0x263)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xebabde={};_0xebabde['error']=_0x5aaa0e,await _0x194b7f[_0x15bbf2(0x1b0)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1aa)],_0xebabde,_0xbdb8d7),logger[_0x15bbf2(0x20e)](_0x5aaa0e);}process[_0x15bbf2(0x327)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0xcec3c9=a10_0xaee6;(function(_0x56b015,_0x45e89d){const _0x297b58=a10_0xaee6,_0x500adf=_0x56b015();while(!![]){try{const _0x53f617=-parseInt(_0x297b58(0xca))/0x1*(parseInt(_0x297b58(0xc8))/0x2)+-parseInt(_0x297b58(0xcb))/0x3*(-parseInt(_0x297b58(0xd0))/0x4)+parseInt(_0x297b58(0xce))/0x5*(-parseInt(_0x297b58(0xcc))/0x6)+parseInt(_0x297b58(0xd3))/0x7*(-parseInt(_0x297b58(0xd4))/0x8)+-parseInt(_0x297b58(0xcd))/0x9+-parseInt(_0x297b58(0xdb))/0xa+parseInt(_0x297b58(0xd7))/0xb;if(_0x53f617===_0x45e89d)break;else _0x500adf['push'](_0x500adf['shift']());}catch(_0x2a860f){_0x500adf['push'](_0x500adf['shift']());}}}(a10_0x57d8,0x85bd3));function a10_0xaee6(_0x26d543,_0x1d532a){const _0x57d8e9=a10_0x57d8();return a10_0xaee6=function(_0xaee6ec,_0x3d7a95){_0xaee6ec=_0xaee6ec-0xc8;let _0x509fd0=_0x57d8e9[_0xaee6ec];return _0x509fd0;},a10_0xaee6(_0x26d543,_0x1d532a);}function a10_0x57d8(){const _0x17bc52=['574iqedQq','vjLmz','2098XuUZLw','3eWvVRk','1501806MCPYPw','9334665gtLnhp','10XpBJkm','strict','2634756nzJUYn','help','desc','14YqEamB','3267304pyoQJA','builder','epilogue','41911584TEsvTm','BAFEY','recommendCommands','../config/constants','9642990pQDcmS','delete','List\x20Grid\x20resources.'];a10_0x57d8=function(){return _0x17bc52;};return a10_0x57d8();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0xcec3c9(0xda));exports['command']='delete',exports[a10_0xcec3c9(0xd2)]=a10_0xcec3c9(0xdd),exports[a10_0xcec3c9(0xd5)]=function(_0x223385){const _0x283eae=a10_0xcec3c9,_0x1102c4={};_0x1102c4['BAFEY']='delete_commands',_0x1102c4['vjLmz']=_0x283eae(0xd1);const _0x43c7a5=_0x1102c4;return _0x223385['usage'](HELP_HEADER_MESSAGE[_0x283eae(0xdc)])[_0x283eae(0xd6)](HELP_FOOTER_MESSAGE)['commandDir'](_0x43c7a5[_0x283eae(0xd8)])['demandCommand']()[_0x283eae(0xd9)]()[_0x283eae(0xcf)]()[_0x283eae(0xd1)](_0x43c7a5[_0x283eae(0xc9)]);},exports['handler']=function(_0x4e548f){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0x3446(_0x440ca8,_0x3f63dc){const _0x3c0a03=a11_0x3c0a();return a11_0x3446=function(_0x344612,_0x4e71ea){_0x344612=_0x344612-0x8f;let _0x14f264=_0x3c0a03[_0x344612];return _0x14f264;},a11_0x3446(_0x440ca8,_0x3f63dc);}const a11_0x4dcac6=a11_0x3446;(function(_0x32ac15,_0x45c5d9){const _0x370fde=a11_0x3446,_0x33a39b=_0x32ac15();while(!![]){try{const _0x185410=-parseInt(_0x370fde(0xe7))/0x1*(parseInt(_0x370fde(0xc7))/0x2)+parseInt(_0x370fde(0xf3))/0x3+-parseInt(_0x370fde(0x11d))/0x4+parseInt(_0x370fde(0xc3))/0x5+parseInt(_0x370fde(0x129))/0x6*(-parseInt(_0x370fde(0xee))/0x7)+parseInt(_0x370fde(0x110))/0x8+-parseInt(_0x370fde(0xfb))/0x9*(-parseInt(_0x370fde(0xa9))/0xa);if(_0x185410===_0x45c5d9)break;else _0x33a39b['push'](_0x33a39b['shift']());}catch(_0x11d45e){_0x33a39b['push'](_0x33a39b['shift']());}}}(a11_0x3c0a,0xc7707));function a11_0x3c0a(){const _0x227235=['password','XREcD','TsEBX','clusterSpawnedVia','PnnrW','qJuDk','Skip\x20insecure\x20cert\x20verification.','statusCode','TUFHG','warn','54QlphYH','YTyHi','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','existsSync','clusterRegion','connectionTimeout','../../utils/utilityMethods','knhwh','exit','got','Browserstack','then','Namespace:\x20','jkVwd','hejkf','grid','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','XveYR','Pass\x20the\x20ID\x20of\x20the\x20Grid','https://','unknown-error','epilogue','yDrre','boolean','deleteCluster','name','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','20fPZLHc','nyJlT','replace','../../utils/userInput','onlyGridInCluster','Failed\x20to\x20delete\x20resources!\x20Error:\x20','AKVwM','isClusterPresent','QKJIf','string','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','jjPfP','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','iUskj','EsBXk','DITFY','SUbRU','LpynS','bVFJq','stringify','llyKp','uuid','readNamespace','invalid-input','default','Successfully\x20deleted\x20the\x20grid','2283415ohyNUS','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','EtslZ','VGWVY','16TwrKcW','isBrowserstackCluster','grid-id','yDtKs','ReodD','hSAcY','catch','skipTlsCertVerify','zgMxE','rSXXl','tDraE','handler','description','WAwtJ','DELETE','PCOgp','XrIKV','clusterName','gridId','rTfGm','error','LuEgU','\x22\x20and\x20ID\x20','lTCnt','vGLAS','gIHuf','delete','help','readFileSync','etGgB','QBvrN','toLowerCase','114967ClVsyr','options','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','LZDaR','username','YmpOA','eKPGV','1166081kCoQxN','cvvrR','QdKrr','vxYuJ','skip-tls-cert-verify','3576801BbBtJD','kugkc','kbeEA','NFcbz','bXXEx','ZSswV','../../cloudproviders/utils','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','7725789kJbsjX','argv','Sgosg','fjPJT','init-not-called','clusterId','parse','info','desc','builder','\x22\x20with\x20ID\x20','stack','EpkOR','delete-grid-called','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','invalid-grid-id','Cluster:\x20','flkQA','../../config/logger','usage','LaMXa','2730640EpUgQy','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','WebSocket','oEFZh','WqepG','region','type','command','FIXSa','message','unauthorised','iditB','eiXkF','1884944blltyS','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted'];a11_0x3c0a=function(){return _0x227235;};return a11_0x3c0a();}const fs=require('fs'),got=require(a11_0x4dcac6(0x95)),{v4:uuidv4}=require(a11_0x4dcac6(0xbe)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x4dcac6(0x10d)),{getCloudProviderObject}=require(a11_0x4dcac6(0xf9)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x4dcac6(0xac)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x4dcac6(0x92)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x4dcac6(0x117)]=a11_0x4dcac6(0x9b),exports[a11_0x4dcac6(0x103)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x4dcac6(0x104)]=function(_0x5879e8){const _0x35231b=a11_0x4dcac6,_0x5e2eae={};_0x5e2eae[_0x35231b(0xaf)]=_0x35231b(0x9e),_0x5e2eae['ecsyp']=_0x35231b(0xb2),_0x5e2eae[_0x35231b(0x10c)]=_0x35231b(0x125),_0x5e2eae[_0x35231b(0xd1)]=_0x35231b(0xa3),_0x5e2eae[_0x35231b(0xb9)]=_0x35231b(0xe2);const _0x484023=_0x5e2eae,_0x2c3dcc={};_0x2c3dcc[_0x35231b(0xd3)]=_0x484023[_0x35231b(0xaf)],_0x2c3dcc['type']=_0x484023['ecsyp'];const _0x4456b5={};_0x4456b5[_0x35231b(0xd3)]=_0x484023[_0x35231b(0x10c)],_0x4456b5[_0x35231b(0x116)]=_0x484023[_0x35231b(0xd1)],_0x4456b5[_0x35231b(0xc1)]=![];const _0x2eedc5={};return _0x2eedc5[_0x35231b(0xc9)]=_0x2c3dcc,_0x2eedc5['skip-tls-cert-verify']=_0x4456b5,_0x5879e8['usage'](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x35231b(0xe8)](_0x2eedc5)[_0x35231b(0xe2)](_0x484023[_0x35231b(0xb9)])['argv'];},exports[a11_0x4dcac6(0xd2)]=async function(_0xb8ec78){const _0x5c4704=a11_0x4dcac6,_0x1dcdb={'YmpOA':_0x5c4704(0xc2),'fjPJT':_0x5c4704(0x9e),'yDrre':'string','TUFHG':_0x5c4704(0x125),'yDtKs':_0x5c4704(0xa3),'LaMXa':_0x5c4704(0xe2),'LuEgU':_0x5c4704(0xc4),'eiXkF':function(_0x444ea7,_0x11fe3d){return _0x444ea7!==_0x11fe3d;},'hSAcY':_0x5c4704(0xb1),'FjFmp':_0x5c4704(0xba),'bXXEx':_0x5c4704(0x11e),'WAwtJ':'hQOXh','TsEBX':_0x5c4704(0x12a),'kbeEA':function(_0x119ddf){return _0x119ddf();},'rSXXl':'SyuHs','FIXSa':_0x5c4704(0xa7),'oEFZh':function(_0x55b8cd,_0xa9ac34,_0x56abaa,_0x274707,_0x36e500,_0x383dca,_0x26b515){return _0x55b8cd(_0xa9ac34,_0x56abaa,_0x274707,_0x36e500,_0x383dca,_0x26b515);},'kugkc':_0x5c4704(0x108),'gngwk':_0x5c4704(0xff),'cSQih':function(_0x2606cd,_0x1c6dcd){return _0x2606cd===_0x1c6dcd;},'cvvrR':'GyCWk','bNYmu':function(_0x1a8dbb){return _0x1a8dbb();},'vxYuJ':function(_0x3cccca,_0x2c27dc,_0x52460c,_0x23fd6c){return _0x3cccca(_0x2c27dc,_0x52460c,_0x23fd6c);},'knhwh':function(_0x3759f8,_0x5c54c5){return _0x3759f8===_0x5c54c5;},'hejkf':_0x5c4704(0x96),'vBJTX':_0x5c4704(0xf8),'xtvMd':_0x5c4704(0xb7),'ZiWte':function(_0x3fcbf5,_0x29c3c7){return _0x3fcbf5(_0x29c3c7);},'etGgB':function(_0x461f17,_0x2de1ff){return _0x461f17===_0x2de1ff;},'rTfGm':function(_0x31da9,_0x3f1563){return _0x31da9===_0x3f1563;},'PCOgp':function(_0x1eb84c,_0x42ca9c){return _0x1eb84c===_0x42ca9c;},'EtslZ':'KzLCY','QdKrr':_0x5c4704(0xd7),'jkVwd':_0x5c4704(0x12b),'cseWu':function(_0x42655c,_0x8be2cf,_0x5e8367,_0x22a6c0,_0x23590b,_0x9b63f5,_0x31a139){return _0x42655c(_0x8be2cf,_0x5e8367,_0x22a6c0,_0x23590b,_0x9b63f5,_0x31a139);},'WhWiR':_0x5c4704(0xc0),'nyJlT':function(_0x373fcd,_0x1ceb95){return _0x373fcd===_0x1ceb95;},'XveYR':_0x5c4704(0xe5),'bVFJq':'eXiAv','AttiO':'<UsernamePlaceholder>','EpkOR':'<PasswordPlaceholder>','llyKp':function(_0x1700aa,_0x4d074f,_0x132fd2,_0x2f8753,_0x3b627b,_0x8e5b,_0x61c95f){return _0x1700aa(_0x4d074f,_0x132fd2,_0x2f8753,_0x3b627b,_0x8e5b,_0x61c95f);},'gIHuf':function(_0x50b358,_0x4e13c3,_0x328081){return _0x50b358(_0x4e13c3,_0x328081);},'moLFO':function(_0x1601bf,_0x2e9ca9,_0x47156d,_0x3980eb,_0x5e4eb2,_0xcfe7e0){return _0x1601bf(_0x2e9ca9,_0x47156d,_0x3980eb,_0x5e4eb2,_0xcfe7e0);},'GzhNQ':'bLvEW','ReodD':'GLxSs','Sgosg':function(_0x1faa28,_0x5585d6){return _0x1faa28!==_0x5585d6;},'WqepG':_0x5c4704(0x123),'XREcD':_0x5c4704(0xd5),'qJuDk':function(_0xcaabae,_0x4b0bee,_0x1a5fce){return _0xcaabae(_0x4b0bee,_0x1a5fce);},'zgMxE':function(_0x5af068,_0x6a83ce,_0x413a6c){return _0x5af068(_0x6a83ce,_0x413a6c);},'VGWVY':function(_0x3a2e49,_0x2f8723){return _0x3a2e49!==_0x2f8723;},'vGLAS':function(_0x359b1d,_0x4e8f17){return _0x359b1d===_0x4e8f17;},'eKPGV':'server-error','JwXJh':function(_0x24cf6e,_0x2500b2){return _0x24cf6e===_0x2500b2;},'jjPfP':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','iditB':function(_0x1c84cd,_0x5b0924,_0x34be20,_0x3fc338,_0x4a3305,_0x4e295d,_0x59db9c){return _0x1c84cd(_0x5b0924,_0x34be20,_0x3fc338,_0x4a3305,_0x4e295d,_0x59db9c);},'lTCnt':_0x5c4704(0x11a),'NFcbz':_0x5c4704(0x10a),'LZDaR':function(_0x471c94,_0x34b474,_0x4d2f94,_0x39f410,_0xc0a2b9,_0x3a4113,_0x2904e7){return _0x471c94(_0x34b474,_0x4d2f94,_0x39f410,_0xc0a2b9,_0x3a4113,_0x2904e7);},'iUskj':_0x5c4704(0xa0)};try{global_registry['requestId']=_0x1dcdb['kbeEA'](uuidv4);!fs[_0x5c4704(0x8f)](_0x1dcdb[_0x5c4704(0xf5)](getCredentialsPath))&&(_0x1dcdb['eiXkF'](_0x1dcdb[_0x5c4704(0xd0)],_0x1dcdb[_0x5c4704(0xd0)])?(_0x2fc2ff[_0x5c4704(0x102)](_0x1dcdb['YmpOA']),_0x3f35ec['exit'](0x0)):(console[_0x5c4704(0xdb)](_0x1dcdb[_0x5c4704(0x118)]),await _0x1dcdb[_0x5c4704(0x113)](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb[_0x5c4704(0xf4)],messageTypes[_0x5c4704(0xa8)],_0x1dcdb['gngwk'],null,_0xb8ec78),process[_0x5c4704(0x94)](0x1)));_0x1dcdb['oEFZh'](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb[_0x5c4704(0xf4)],messageTypes[_0x5c4704(0xa6)],null,null,_0xb8ec78);!_0xb8ec78['gridId']&&(_0x1dcdb['cSQih'](_0x1dcdb[_0x5c4704(0xef)],_0x1dcdb[_0x5c4704(0xef)])?(console['error'](_0x1dcdb['LuEgU']),process[_0x5c4704(0x94)](0x1)):_0x2a658c[_0x5c4704(0x94)](0x0));const _0x339fd4=JSON['parse'](fs[_0x5c4704(0xe3)](_0x1dcdb['bNYmu'](getCredentialsPath))),[_0x4521ff,_0x4ff497]=await _0x1dcdb[_0x5c4704(0xf1)](getGridDetails,_0x339fd4[_0x5c4704(0x96)][_0x5c4704(0xeb)],_0x339fd4[_0x5c4704(0x96)][_0x5c4704(0x11f)],_0xb8ec78[_0x5c4704(0xd9)]);if(_0x4ff497){const _0x5b9935=_0x4ff497[_0x5c4704(0x102)];let _0x540544=_0x5c4704(0xfa)+_0x5b9935[_0x5c4704(0xa5)]+_0x5c4704(0xdd)+_0x5b9935['id']+_0x5c4704(0xe9);_0x4ff497['onlyGridInCluster']&&_0x1dcdb['knhwh'](_0x4ff497[_0x5c4704(0x122)],_0x1dcdb[_0x5c4704(0x9a)])&&(_0x1dcdb[_0x5c4704(0x93)](_0x1dcdb['vBJTX'],_0x1dcdb['xtvMd'])?_0x1b0321['info'](_0x5c4704(0x98)+_0x473267+_0x5c4704(0xb3)):_0x540544='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5b9935[_0x5c4704(0xa5)]+_0x5c4704(0xdd)+_0x5b9935['id']+_0x5c4704(0x9c)+_0x5b9935[_0x5c4704(0xd8)]+'\x22\x20with\x20ID\x20'+_0x5b9935[_0x5c4704(0x100)]+_0x5c4704(0xe9));const _0x3dc20e=await _0x1dcdb['ZiWte'](inputConfirmation,_0x540544);if(_0x1dcdb[_0x5c4704(0xe4)](_0x3dc20e,undefined)||_0x1dcdb[_0x5c4704(0xda)](_0x3dc20e,null)||!(_0x1dcdb[_0x5c4704(0xd6)](_0x3dc20e[_0x5c4704(0xe6)](),'y')||_0x1dcdb[_0x5c4704(0xe4)](_0x3dc20e['toLowerCase'](),'n'))){if(_0x1dcdb['eiXkF'](_0x1dcdb[_0x5c4704(0xc5)],_0x1dcdb[_0x5c4704(0xf0)]))console[_0x5c4704(0xdb)](_0x1dcdb[_0x5c4704(0x99)]),await _0x1dcdb['cseWu'](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb['kugkc'],messageTypes[_0x5c4704(0xa8)],_0x1dcdb['WhWiR'],null,_0xb8ec78),process['exit'](0x1);else{const _0x1c49cb={};_0x1c49cb['description']=_0x1dcdb[_0x5c4704(0xfe)],_0x1c49cb[_0x5c4704(0x116)]=_0x1dcdb[_0x5c4704(0xa2)];const _0x4f4323={};_0x4f4323[_0x5c4704(0xd3)]=_0x1dcdb[_0x5c4704(0x127)],_0x4f4323[_0x5c4704(0x116)]=_0x1dcdb[_0x5c4704(0xca)],_0x4f4323[_0x5c4704(0xc1)]=![];const _0x5753ee={};return _0x5753ee['grid-id']=_0x1c49cb,_0x5753ee[_0x5c4704(0xf2)]=_0x4f4323,_0x262249[_0x5c4704(0x10e)](_0x4ddb90[_0x5c4704(0xe1)])[_0x5c4704(0xa1)](_0x3c54e8)[_0x5c4704(0xe8)](_0x5753ee)['help'](_0x1dcdb[_0x5c4704(0x10f)])[_0x5c4704(0xfc)];}}_0x1dcdb[_0x5c4704(0xaa)](_0x3dc20e[_0x5c4704(0xe6)](),'n')&&(_0x1dcdb[_0x5c4704(0xe4)](_0x1dcdb[_0x5c4704(0x9d)],_0x1dcdb[_0x5c4704(0xbb)])?(_0x26bd06[_0x5c4704(0x128)](_0x5c4704(0x98)+_0x36bf5b+_0x5c4704(0xb5)),_0x20e1d1=![]):process['exit'](0x0));const _0x3d0e68=WS_ENDPOINT['replace'](_0x1dcdb['AttiO'],_0x339fd4[_0x5c4704(0x96)][_0x5c4704(0xeb)])[_0x5c4704(0xab)](_0x1dcdb[_0x5c4704(0x107)],_0x339fd4[_0x5c4704(0x96)][_0x5c4704(0x11f)]),_0x339c3b={};_0x339c3b[_0x5c4704(0x112)]=ws,_0x339c3b[_0x5c4704(0x91)]=0x36ee80;const _0x4c1f59=new ReconnectingWebSocket(_0x3d0e68,[],_0x339c3b);global_registry[_0x5c4704(0x90)]=_0x5b9935[_0x5c4704(0x115)];const _0x3d162b=_0x5b9935['cloudProvider'],_0x14afaa=await _0x1dcdb[_0x5c4704(0xbd)](getCloudProviderObject,_0x3d162b,_0x5b9935['clusterName'],_0x5b9935['name'],_0x4c1f59,webSocketUtils,_0xb8ec78),_0x109592=await _0x14afaa[_0x5c4704(0xb0)]();if(_0x109592){const _0x50fbf2=_0x1dcdb['ZiWte'](kebabCase,_0x5b9935[_0x5c4704(0xa5)]),[_0x527e05,_0x2c1aec,_0x42e7bd,_0x2fae4a,_0x259a71,_0x5dc6d0]=await _0x1dcdb[_0x5c4704(0xe0)](createK8sClient,_0x14afaa,_0xb8ec78[_0x5c4704(0xce)]);let _0x26aee5=!![];const _0x2cf2aa={};_0x2cf2aa['name']=_0x50fbf2,await _0x527e05[_0x5c4704(0xbf)](_0x2cf2aa)[_0x5c4704(0x97)](_0x4e358c=>{const _0x3d4b50=_0x5c4704,_0x5a79c9={};_0x5a79c9[_0x3d4b50(0xb8)]=_0x1dcdb[_0x3d4b50(0xdc)];const _0x36b2c1=_0x5a79c9;_0x1dcdb['eiXkF'](_0x1dcdb[_0x3d4b50(0xcc)],_0x1dcdb['FjFmp'])?logger[_0x3d4b50(0x102)](_0x3d4b50(0x98)+_0x50fbf2+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(_0xe9ffae[_0x3d4b50(0xdb)](_0x36b2c1['DITFY']),_0x3cb574[_0x3d4b50(0x94)](0x1));})[_0x5c4704(0xcd)](_0x250078=>{const _0x723b1c=_0x5c4704;_0x1dcdb[_0x723b1c(0x11c)](_0x1dcdb[_0x723b1c(0xd4)],_0x1dcdb[_0x723b1c(0x121)])?(logger[_0x723b1c(0x128)]('Namespace:\x20'+_0x50fbf2+_0x723b1c(0xb5)),_0x26aee5=![]):_0x479f08['warn'](_0x1dcdb[_0x723b1c(0xf7)]);});if(_0x26aee5){await _0x1dcdb['moLFO'](removeGridComponents,_0x527e05,_0x2c1aec,_0x42e7bd,_0x2fae4a,_0x50fbf2);if(_0x4ff497[_0x5c4704(0xad)]){const _0x5e87e5=await _0x14afaa[_0x5c4704(0xc8)]();_0x5e87e5?_0x1dcdb[_0x5c4704(0x11c)](_0x1dcdb['GzhNQ'],_0x1dcdb[_0x5c4704(0xcb)])?await _0x14afaa[_0x5c4704(0xa4)](_0x527e05,_0x5b9935[_0x5c4704(0x115)]):_0x3fea4f[_0x5c4704(0x128)](_0x5c4704(0x10b)+_0x46e402['clusterName']+_0x5c4704(0x109)):_0x1dcdb[_0x5c4704(0xfd)](_0x1dcdb[_0x5c4704(0x114)],_0x1dcdb[_0x5c4704(0x114)])?_0x370bf6=_0x5c4704(0xfa)+_0x14b490[_0x5c4704(0xa5)]+_0x5c4704(0xdd)+_0x3be7dc['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x21b263[_0x5c4704(0xd8)]+_0x5c4704(0x105)+_0x2d7602[_0x5c4704(0x100)]+_0x5c4704(0xe9):logger['warn'](_0x5c4704(0x10b)+_0x5b9935[_0x5c4704(0xd8)]+_0x5c4704(0x109));}}}else logger[_0x5c4704(0x128)](_0x1dcdb[_0x5c4704(0xf7)]);const _0x47d539=_0x5c4704(0x9f)+AG_API_URL+'/packages/cli/grid/'+_0xb8ec78['gridId'],_0x2bd028={'method':_0x1dcdb[_0x5c4704(0x120)],'headers':_0x1dcdb[_0x5c4704(0x124)](getAuthHeader,_0x339fd4[_0x5c4704(0x96)][_0x5c4704(0xeb)],_0x339fd4[_0x5c4704(0x96)][_0x5c4704(0x11f)]),'throwHttpErrors':![]},_0x1c97d0=await _0x1dcdb[_0x5c4704(0xcf)](got,_0x47d539,_0x2bd028);_0x1dcdb[_0x5c4704(0xfd)](_0x1c97d0,null)&&_0x1dcdb[_0x5c4704(0xc6)](_0x1c97d0,undefined)&&_0x1dcdb[_0x5c4704(0xdf)](_0x1c97d0[_0x5c4704(0x126)],0xc8)&&(logger[_0x5c4704(0x102)](_0x1dcdb[_0x5c4704(0xec)]),process[_0x5c4704(0x94)](0x0)),logger[_0x5c4704(0xdb)](_0x5c4704(0x111)+_0x1c97d0['body']),await _0x1dcdb[_0x5c4704(0xbd)](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb[_0x5c4704(0xf4)],messageTypes['ERROR'],_0x1dcdb[_0x5c4704(0xed)],_0x4521ff,_0xb8ec78),process[_0x5c4704(0x94)](0x1);}_0x1dcdb['JwXJh'](_0x4521ff[_0x5c4704(0x126)],0x191)&&(logger[_0x5c4704(0xdb)](_0x1dcdb[_0x5c4704(0xb4)]),await _0x1dcdb['iditB'](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb[_0x5c4704(0xf4)],messageTypes[_0x5c4704(0xa8)],_0x1dcdb[_0x5c4704(0xde)],null,_0xb8ec78),process[_0x5c4704(0x94)](0x1)),_0x1dcdb[_0x5c4704(0x93)](_0x4521ff[_0x5c4704(0x126)],0x190)&&(logger[_0x5c4704(0xdb)](JSON[_0x5c4704(0x101)](_0x4521ff['body'])[_0x5c4704(0x119)]),await _0x1dcdb[_0x5c4704(0x11b)](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb['kugkc'],messageTypes['ERROR'],_0x1dcdb[_0x5c4704(0xf6)],null,_0xb8ec78),process['exit'](0x1)),logger[_0x5c4704(0xdb)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5c4704(0xbc)](_0x4521ff)),await _0x1dcdb[_0x5c4704(0xea)](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb[_0x5c4704(0xf4)],messageTypes[_0x5c4704(0xa8)],_0x1dcdb['eKPGV'],_0x4521ff,_0xb8ec78),process[_0x5c4704(0x94)](0x1);}catch(_0x1b7a88){logger['error'](_0x5c4704(0xae)+_0x1b7a88[_0x5c4704(0x106)]),await _0x1dcdb['oEFZh'](sendInstrumentationEvent,_0xb8ec78,_0x1dcdb['kugkc'],messageTypes[_0x5c4704(0xa8)],_0x1dcdb[_0x5c4704(0xb6)],_0x1b7a88,_0xb8ec78),process[_0x5c4704(0x94)](0x1);}};
|
|
1
|
+
const a11_0x1e839e=a11_0x4337;(function(_0x229c49,_0x3555f6){const _0x1d1a8b=a11_0x4337,_0x11a6cc=_0x229c49();while(!![]){try{const _0x6acc8d=parseInt(_0x1d1a8b(0x202))/0x1+-parseInt(_0x1d1a8b(0x1e7))/0x2+-parseInt(_0x1d1a8b(0x176))/0x3*(-parseInt(_0x1d1a8b(0x17b))/0x4)+parseInt(_0x1d1a8b(0x17e))/0x5*(-parseInt(_0x1d1a8b(0x1fa))/0x6)+parseInt(_0x1d1a8b(0x196))/0x7+-parseInt(_0x1d1a8b(0x208))/0x8+parseInt(_0x1d1a8b(0x1e1))/0x9*(parseInt(_0x1d1a8b(0x205))/0xa);if(_0x6acc8d===_0x3555f6)break;else _0x11a6cc['push'](_0x11a6cc['shift']());}catch(_0x4d5856){_0x11a6cc['push'](_0x11a6cc['shift']());}}}(a11_0x83ba,0xc3ca3));function a11_0x4337(_0x3984fc,_0x599e65){const _0x83bac0=a11_0x83ba();return a11_0x4337=function(_0x4337ae,_0x2c4b4e){_0x4337ae=_0x4337ae-0x16f;let _0x3ce7f8=_0x83bac0[_0x4337ae];return _0x3ce7f8;},a11_0x4337(_0x3984fc,_0x599e65);}const fs=require('fs'),got=require(a11_0x1e839e(0x1dd)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1e839e(0x188)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1e839e(0x1cb)),{logger}=require(a11_0x1e839e(0x1bf)),{getCloudProviderObject}=require(a11_0x1e839e(0x1ba)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1e839e(0x186)),{sendInstrumentationEvent}=require(a11_0x1e839e(0x16f)),{inputConfirmation}=require(a11_0x1e839e(0x1bd)),{createK8sClient}=require(a11_0x1e839e(0x178)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1e839e(0x18a)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x1e839e(0x19d)]='grid',exports['desc']=a11_0x1e839e(0x17f),exports[a11_0x1e839e(0x1a0)]=function(_0x236c0f){const _0x5459f7=a11_0x1e839e,_0x175bbd={};_0x175bbd[_0x5459f7(0x203)]=_0x5459f7(0x170),_0x175bbd[_0x5459f7(0x18c)]='string',_0x175bbd[_0x5459f7(0x1ef)]='Skip\x20insecure\x20cert\x20verification.',_0x175bbd[_0x5459f7(0x1aa)]='boolean',_0x175bbd[_0x5459f7(0x204)]=_0x5459f7(0x1fd);const _0x5a381a=_0x175bbd,_0x24427a={};_0x24427a[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x203)],_0x24427a[_0x5459f7(0x1d2)]=_0x5a381a['CvMXw'];const _0x167e31={};_0x167e31[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x1ef)],_0x167e31[_0x5459f7(0x1d2)]=_0x5a381a[_0x5459f7(0x1aa)],_0x167e31[_0x5459f7(0x1e8)]=![];const _0x54d299={};return _0x54d299['grid-id']=_0x24427a,_0x54d299[_0x5459f7(0x1e2)]=_0x167e31,_0x236c0f[_0x5459f7(0x1d8)](HELP_HEADER_MESSAGE[_0x5459f7(0x1ce)])[_0x5459f7(0x1d5)](HELP_FOOTER_MESSAGE)['options'](_0x54d299)['help'](_0x5a381a[_0x5459f7(0x204)])[_0x5459f7(0x1ec)];},exports[a11_0x1e839e(0x1fe)]=async function(_0xeabc51){const _0x281888=a11_0x1e839e,_0x286d65={'Wenjv':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','LldWR':_0x281888(0x170),'CuBga':_0x281888(0x1c4),'kktEa':_0x281888(0x1f8),'GZWYe':_0x281888(0x1ad),'NFVbX':_0x281888(0x1fd),'lxuax':function(_0x43cb77,_0x1e5bc0){return _0x43cb77===_0x1e5bc0;},'SYhgI':_0x281888(0x1a8),'DlSSy':_0x281888(0x191),'adWgk':_0x281888(0x19a),'DrjbH':_0x281888(0x1c9),'MrZhw':'ESNYj','guXmd':_0x281888(0x177),'jdFTK':function(_0x213287){return _0x213287();},'HZBAE':function(_0x264b4b){return _0x264b4b();},'gAqFa':function(_0xffa7f4,_0x364a37){return _0xffa7f4!==_0x364a37;},'XrVlS':_0x281888(0x1d3),'WDPht':_0x281888(0x1e0),'anfOl':function(_0x377e77,_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5){return _0x377e77(_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5);},'wzfYh':_0x281888(0x1b9),'CgkUn':_0x281888(0x1a7),'eaPyI':function(_0x444522,_0x2fe518){return _0x444522===_0x2fe518;},'hXJJv':_0x281888(0x1c5),'mCBrH':function(_0x567e83){return _0x567e83();},'ZCHhF':function(_0x37e341,_0x96a66,_0x3b3e52,_0x2921f9){return _0x37e341(_0x96a66,_0x3b3e52,_0x2921f9);},'aRYXT':_0x281888(0x174),'iawYv':function(_0x3cdd1b,_0x3cdd2a){return _0x3cdd1b===_0x3cdd2a;},'JuqGy':_0x281888(0x171),'DTSZe':function(_0x4154dd,_0x43afc5){return _0x4154dd(_0x43afc5);},'bKVPL':function(_0x3bc1cd,_0x179cf9){return _0x3bc1cd===_0x179cf9;},'dEfoE':function(_0x449d82,_0x4d255b){return _0x449d82===_0x4d255b;},'rEWTH':_0x281888(0x1fb),'POUzF':_0x281888(0x193),'KRhqa':function(_0x2a2963,_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d){return _0x2a2963(_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d);},'PmKhp':_0x281888(0x1f1),'ybfVP':function(_0x47d33e,_0x5be46f){return _0x47d33e===_0x5be46f;},'PYIbd':_0x281888(0x189),'fbnmY':'qlzNF','gpnZv':'<UsernamePlaceholder>','fCnSX':_0x281888(0x173),'PhUfr':function(_0x148b75,_0x27e1bd){return _0x148b75(_0x27e1bd);},'DXsmO':function(_0x26367c,_0x39467b,_0x1f30e0){return _0x26367c(_0x39467b,_0x1f30e0);},'OGDfk':function(_0x266969,_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f){return _0x266969(_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f);},'HHWJV':function(_0xc0f4a9,_0x19be78){return _0xc0f4a9!==_0x19be78;},'cpdcJ':_0x281888(0x172),'gRSKJ':'qlIFG','MiWPN':_0x281888(0x1ac),'QBllm':_0x281888(0x18f),'YbpDf':function(_0x1afbab,_0x923660){return _0x1afbab!==_0x923660;},'RTMUD':function(_0x110337,_0x49fb32){return _0x110337!==_0x49fb32;},'ZiKcb':'server-error','wSvDF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','AoBDL':_0x281888(0x1d6),'yGPeZ':function(_0x430015,_0x19afbe){return _0x430015===_0x19afbe;},'gNNmD':function(_0x4eea91,_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645){return _0x4eea91(_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645);},'rLTLc':_0x281888(0x1a3),'fHHll':function(_0x576544,_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0){return _0x576544(_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0);},'TZoVI':'unknown-error'};try{global_registry[_0x281888(0x1e9)]=_0x286d65[_0x281888(0x1c6)](uuidv4);!fs[_0x281888(0x185)](_0x286d65['HZBAE'](getCredentialsPath))&&(_0x286d65['gAqFa'](_0x286d65[_0x281888(0x1a5)],_0x286d65[_0x281888(0x1a5)])?_0x57aa88[_0x281888(0x1c8)]('Cluster:\x20'+_0x4c5d20[_0x281888(0x1b2)]+_0x281888(0x18b)):(console['error'](_0x286d65[_0x281888(0x1c2)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes['ERROR'],_0x286d65[_0x281888(0x1c0)],null,_0xeabc51),process['exit'](0x1)));_0x286d65['anfOl'](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x20a)],null,null,_0xeabc51);!_0xeabc51['gridId']&&(_0x286d65['eaPyI'](_0x286d65['hXJJv'],_0x286d65['hXJJv'])?(console[_0x281888(0x1ea)](_0x286d65['Wenjv']),process[_0x281888(0x1a4)](0x1)):_0x1a28be[_0x281888(0x1a4)](0x0));const _0x277d33=JSON[_0x281888(0x1c3)](fs[_0x281888(0x1b6)](_0x286d65['mCBrH'](getCredentialsPath))),[_0x46101f,_0xf34891]=await _0x286d65[_0x281888(0x17a)](getGridDetails,_0x277d33['Browserstack']['username'],_0x277d33['Browserstack'][_0x281888(0x199)],_0xeabc51['gridId']);if(_0xf34891){const _0x329c0d=_0xf34891['info'];let _0x1ac745=_0x281888(0x180)+_0x329c0d['name']+_0x281888(0x1ca)+_0x329c0d['id']+_0x281888(0x1bb);_0xf34891[_0x281888(0x1f6)]&&_0x286d65[_0x281888(0x192)](_0xf34891[_0x281888(0x17c)],_0x286d65[_0x281888(0x19c)])&&(_0x286d65[_0x281888(0x1b0)](_0x286d65[_0x281888(0x175)],_0x286d65[_0x281888(0x175)])?_0x1ac745=_0x281888(0x180)+_0x329c0d[_0x281888(0x1f2)]+'\x22\x20and\x20ID\x20'+_0x329c0d['id']+_0x281888(0x1da)+_0x329c0d[_0x281888(0x1b2)]+_0x281888(0x1f3)+_0x329c0d['clusterId']+_0x281888(0x1bb):(_0x30cce3[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1be)]),_0x438119[_0x281888(0x1a4)](0x1)));const _0x294116=await _0x286d65[_0x281888(0x1cf)](inputConfirmation,_0x1ac745);(_0x286d65[_0x281888(0x192)](_0x294116,undefined)||_0x286d65[_0x281888(0x18e)](_0x294116,null)||!(_0x286d65[_0x281888(0x18e)](_0x294116['toLowerCase'](),'y')||_0x286d65[_0x281888(0x187)](_0x294116[_0x281888(0x209)](),'n')))&&(_0x286d65[_0x281888(0x18e)](_0x286d65[_0x281888(0x201)],_0x286d65[_0x281888(0x201)])?(console[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1b7)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1b5)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)):(_0x59033d[_0x281888(0x1c8)](_0x281888(0x1c1)+_0x2460e0+_0x281888(0x19b)),_0x885fa0=![]));_0x286d65[_0x281888(0x1d0)](_0x294116[_0x281888(0x209)](),'n')&&(_0x286d65[_0x281888(0x1b1)](_0x286d65[_0x281888(0x19f)],_0x286d65['fbnmY'])?process[_0x281888(0x1a4)](0x0):_0x5ce597=_0x281888(0x180)+_0x1feec2[_0x281888(0x1f2)]+_0x281888(0x1ca)+_0x1ab1b4['id']+_0x281888(0x1da)+_0x20a1b7['clusterName']+_0x281888(0x1f3)+_0x402991['clusterId']+_0x281888(0x1bb));const _0x34a8bc=WS_ENDPOINT['replace'](_0x286d65[_0x281888(0x1cd)],_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)])[_0x281888(0x1b3)](_0x286d65['fCnSX'],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),_0x556bd1={};_0x556bd1[_0x281888(0x1f9)]=ws,_0x556bd1[_0x281888(0x1a1)]=0x36ee80;const _0x55bc84=new ReconnectingWebSocket(_0x34a8bc,[],_0x556bd1);global_registry[_0x281888(0x206)]=_0x329c0d[_0x281888(0x1e5)];const _0x46bb14=_0x329c0d[_0x281888(0x181)],_0xdb075b=await _0x286d65[_0x281888(0x1ab)](getCloudProviderObject,_0x46bb14,_0x329c0d[_0x281888(0x1b2)],_0x329c0d[_0x281888(0x1f2)],_0x55bc84,webSocketUtils,_0xeabc51),_0x327dba=await _0xdb075b[_0x281888(0x19e)]();if(_0x327dba){const _0x591de1=_0x286d65[_0x281888(0x1e6)](kebabCase,_0x329c0d[_0x281888(0x1f2)]),[_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x4b16d3,_0x55488a]=await _0x286d65['DXsmO'](createK8sClient,_0xdb075b,_0xeabc51[_0x281888(0x200)]);let _0x25b17b=!![];const _0xa611f={};_0xa611f['name']=_0x591de1,await _0x44f2c0['readNamespace'](_0xa611f)['then'](_0x11120e=>{const _0x27dba1=_0x281888;if(_0x286d65[_0x27dba1(0x1db)](_0x286d65[_0x27dba1(0x18d)],_0x286d65['DlSSy'])){const _0x2f5196={};_0x2f5196[_0x27dba1(0x1c7)]=_0x286d65['LldWR'],_0x2f5196[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x1f5)];const _0x5a23dd={};_0x5a23dd[_0x27dba1(0x1c7)]=_0x286d65['kktEa'],_0x5a23dd[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x194)],_0x5a23dd['default']=![];const _0x572659={};return _0x572659['grid-id']=_0x2f5196,_0x572659[_0x27dba1(0x1e2)]=_0x5a23dd,_0x249756[_0x27dba1(0x1d8)](_0x6c2275[_0x27dba1(0x1ce)])['epilogue'](_0x30c904)[_0x27dba1(0x1a9)](_0x572659)['help'](_0x286d65[_0x27dba1(0x190)])[_0x27dba1(0x1ec)];}else logger['info']('Namespace:\x20'+_0x591de1+_0x27dba1(0x1fc));})['catch'](_0xea811d=>{const _0x8bb1d9=_0x281888;_0x286d65[_0x8bb1d9(0x1db)](_0x286d65[_0x8bb1d9(0x207)],_0x286d65[_0x8bb1d9(0x1e3)])?_0x37932b[_0x8bb1d9(0x1c8)](_0x286d65[_0x8bb1d9(0x1d7)]):(logger[_0x8bb1d9(0x1c8)](_0x8bb1d9(0x1c1)+_0x591de1+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x25b17b=![]);});if(_0x25b17b){await _0x286d65[_0x281888(0x1eb)](removeGridComponents,_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x591de1);if(_0xf34891[_0x281888(0x1f6)]){const _0x43e83f=await _0xdb075b[_0x281888(0x17d)]();_0x43e83f?_0x286d65[_0x281888(0x197)](_0x286d65[_0x281888(0x1b4)],_0x286d65[_0x281888(0x1d4)])?await _0xdb075b['deleteCluster'](_0x44f2c0,_0x329c0d[_0x281888(0x1e5)]):(_0x1c7775[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),_0x88074[_0x281888(0x1a4)](0x0)):_0x286d65[_0x281888(0x1db)](_0x286d65[_0x281888(0x1d1)],_0x286d65[_0x281888(0x1d1)])?logger['warn'](_0x281888(0x195)+_0x329c0d['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x2c50f1[_0x281888(0x1a2)]('Namespace:\x20'+_0x3d4baa+_0x281888(0x1fc));}}}else logger[_0x281888(0x1c8)](_0x286d65['adWgk']);const _0x2c995d=_0x281888(0x1df)+AG_API_URL+'/packages/cli/grid/'+_0xeabc51['gridId'],_0x3ae2ec={'method':_0x286d65[_0x281888(0x1ed)],'headers':_0x286d65['DXsmO'](getAuthHeader,_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),'throwHttpErrors':![]},_0x461dae=await _0x286d65[_0x281888(0x1bc)](got,_0x2c995d,_0x3ae2ec);_0x286d65[_0x281888(0x1dc)](_0x461dae,null)&&_0x286d65[_0x281888(0x1f4)](_0x461dae,undefined)&&_0x286d65[_0x281888(0x192)](_0x461dae[_0x281888(0x1f0)],0xc8)&&(logger[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),process[_0x281888(0x1a4)](0x0)),logger['error'](_0x281888(0x1ee)+_0x461dae[_0x281888(0x1d9)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x182)],_0x46101f,_0xeabc51),process['exit'](0x1);}_0x286d65['eaPyI'](_0x46101f[_0x281888(0x1f0)],0x191)&&(logger[_0x281888(0x1ea)](_0x286d65[_0x281888(0x179)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1ae)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),_0x286d65[_0x281888(0x1de)](_0x46101f['statusCode'],0x190)&&(logger[_0x281888(0x1ea)](JSON[_0x281888(0x1c3)](_0x46101f['body'])['message']),await _0x286d65[_0x281888(0x183)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65['rLTLc'],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),logger[_0x281888(0x1ea)](_0x281888(0x198)+JSON['stringify'](_0x46101f)),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes['ERROR'],_0x286d65['ZiKcb'],_0x46101f,_0xeabc51),process[_0x281888(0x1a4)](0x1);}catch(_0x1c2682){logger[_0x281888(0x1ea)](_0x281888(0x1cc)+_0x1c2682[_0x281888(0x1f7)]),await _0x286d65['fHHll'](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1e4)],_0x1c2682,_0xeabc51),process[_0x281888(0x1a4)](0x1);}};function a11_0x83ba(){const _0x156428=['INFO','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20Grid','VxBDE','MnhVE','<PasswordPlaceholder>','Browserstack','JuqGy','1044993JWPSFf','Successfully\x20deleted\x20the\x20grid','../../utils/createk8sClient','wSvDF','ZCHhF','4ilmAqs','clusterSpawnedVia','isBrowserstackCluster','5pGwhZT','Delete\x20an\x20Automation\x20grid.','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','cloudProvider','ZiKcb','gNNmD','guXmd','existsSync','../../utils/gridComponents','dEfoE','reconnecting-websocket','PvTgq','../../utils/utilityMethods','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','CvMXw','SYhgI','bKVPL','DELETE','NFVbX','CCsvb','eaPyI','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GZWYe','Cluster:\x20','2188802ToRolL','HHWJV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','aRYXT','command','isClusterPresent','PYIbd','builder','connectionTimeout','info','invalid-grid-id','exit','XrVlS','ERROR','init-not-called','ptuhS','options','WWLDP','anfOl','bhlHC','boolean','AoBDL','KRhqa','iawYv','gAqFa','clusterName','replace','cpdcJ','PmKhp','readFileSync','POUzF','wzfYh','delete-grid-called','../../cloudproviders/utils','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','DXsmO','../../utils/userInput','Wenjv','../../config/logger','CgkUn','Namespace:\x20','WDPht','parse','string','LgdGh','jdFTK','description','warn','VqYEB','\x22\x20and\x20ID\x20','../../config/constants','Failed\x20to\x20delete\x20resources!\x20Error:\x20','gpnZv','delete','DTSZe','ybfVP','MiWPN','type','axErA','gRSKJ','epilogue','unauthorised','adWgk','usage','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','lxuax','YbpDf','got','yGPeZ','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4095189bFqPyj','skip-tls-cert-verify','MrZhw','TZoVI','region','PhUfr','2866326DeiARX','default','requestId','error','OGDfk','argv','QBllm','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','zrAnZ','statusCode','invalid-input','name','\x22\x20with\x20ID\x20','RTMUD','CuBga','onlyGridInCluster','stack','Skip\x20insecure\x20cert\x20verification.','WebSocket','8525070yhOjHT','JpLpn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','help','handler','username','skipTlsCertVerify','rEWTH','1436816GUtDuC','IECAA','aXBjP','40rLnDxV','clusterRegion','DrjbH','2095632iWEcNH','toLowerCase'];a11_0x83ba=function(){return _0x156428;};return a11_0x83ba();}
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x5913(){const _0x5eaea3=['yypdW','writeFileSync','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','https://','description','hSaCX','2555287lwuHoy','bRwnh','readFileSync','epilogue','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','builder','40WaRvDb','existsSync','ERROR','NfrJp','aDqki','got','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','QmWdB','lHsbj','nswxz','sUmmp','strict','ayORB','GajNd','847kBSUDV','ldRqo','FXbur','recommendCommands','argv','OWahS','lmKAc','pXCCr','parse','148030JDMuor','DoTVe','string','ZmHCJ','NBUmA','/automate/plan.json','init-called','paGCr','1154ngKJuV','vPxsg','MWjkZ','LUBOI','DTnnv','bstack-accesskey','Ypzgu','AfHDP','BROWSERSTACK_USERNAME','init','MGjEy','8MSuriH','type','qVzNR','help','elbsB','ahGhS','nLByl','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','bstackUsername','utf-8','Pmnwr','aSWBM','llFtC','username','requestId','1042oxbDmp','VaAlO','uuid','command','BAzww','stack','102mfhUQF','XFWDW','bstack-username','xqsho','BROWSERSTACK_ACCESS_KEY','env','stringify','TbpXv','debug','zPEkJ','password','ebaib','exit','usage','20700hshQbj','Browserstack','95136yfdkEk','2721920pJMvfd','4363335XFmWbt','ghpEI','desc','pwqYg','bstackAccesskey','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SdHBN','rcrIw','LgBYB','INFO','vEFFa','kWcKr','sQbij','error','aRSZe','RRUZj'];a12_0x5913=function(){return _0x5eaea3;};return a12_0x5913();}const a12_0x86f292=a12_0x1caf;function a12_0x1caf(_0x43a26d,_0x56e27c){const _0x59136a=a12_0x5913();return a12_0x1caf=function(_0x1caf30,_0x187070){_0x1caf30=_0x1caf30-0x79;let _0x1b9f5d=_0x59136a[_0x1caf30];return _0x1b9f5d;},a12_0x1caf(_0x43a26d,_0x56e27c);}(function(_0x5471d4,_0x4e8745){const _0x14a254=a12_0x1caf,_0x3498ec=_0x5471d4();while(!![]){try{const _0x1d36b8=-parseInt(_0x14a254(0x7b))/0x1*(-parseInt(_0x14a254(0xce))/0x2)+parseInt(_0x14a254(0x91))/0x3*(parseInt(_0x14a254(0xaf))/0x4)+-parseInt(_0x14a254(0xc6))/0x5*(-parseInt(_0x14a254(0x81))/0x6)+-parseInt(_0x14a254(0xa9))/0x7*(parseInt(_0x14a254(0xd9))/0x8)+-parseInt(_0x14a254(0x93))/0x9+-parseInt(_0x14a254(0x92))/0xa+-parseInt(_0x14a254(0xbd))/0xb*(-parseInt(_0x14a254(0x8f))/0xc);if(_0x1d36b8===_0x4e8745)break;else _0x3498ec['push'](_0x3498ec['shift']());}catch(_0x5b79e9){_0x3498ec['push'](_0x3498ec['shift']());}}}(a12_0x5913,0x69931));const fs=require('fs'),util=require('util'),got=require(a12_0x86f292(0xb4)),{v4:uuidv4}=require(a12_0x86f292(0x7d)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x86f292(0x7e)]=a12_0x86f292(0xd7),exports[a12_0x86f292(0x95)]=a12_0x86f292(0xa5),exports[a12_0x86f292(0xae)]=function(_0x3cc79f){const _0x2cf18c=a12_0x86f292,_0x2aa346={};_0x2aa346[_0x2cf18c(0x9a)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2aa346[_0x2cf18c(0xd1)]=_0x2cf18c(0xc8),_0x2aa346['aDqki']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2aa346[_0x2cf18c(0xd0)]=_0x2cf18c(0xdc);const _0x1db1e0=_0x2aa346,_0x234a0a={};_0x234a0a['description']=_0x1db1e0[_0x2cf18c(0x9a)],_0x234a0a[_0x2cf18c(0xda)]=_0x1db1e0[_0x2cf18c(0xd1)];const _0x3a753a={};_0x3a753a[_0x2cf18c(0xa7)]=_0x1db1e0[_0x2cf18c(0xb3)],_0x3a753a['type']=_0x1db1e0[_0x2cf18c(0xd1)];const _0x13f48d={};return _0x13f48d[_0x2cf18c(0x83)]=_0x234a0a,_0x13f48d[_0x2cf18c(0xd3)]=_0x3a753a,_0x3cc79f[_0x2cf18c(0x8e)](HELP_HEADER_MESSAGE[_0x2cf18c(0xd7)])[_0x2cf18c(0xac)](HELP_FOOTER_MESSAGE)['options'](_0x13f48d)[_0x2cf18c(0xc0)]()[_0x2cf18c(0xba)]()[_0x2cf18c(0xdc)](_0x1db1e0[_0x2cf18c(0xd0)])[_0x2cf18c(0xc1)];},exports['handler']=async function(_0x199e25){const _0x15eb88=a12_0x86f292,_0x39f826={'OduQQ':function(_0x240126){return _0x240126();},'xqsho':_0x15eb88(0xe2),'XFWDW':_0x15eb88(0x98),'aRSZe':_0x15eb88(0xc8),'sUmmp':_0x15eb88(0xb5),'DoTVe':_0x15eb88(0xdc),'ahGhS':function(_0x31535e){return _0x31535e();},'MGjEy':function(_0x240f66,_0x440417,_0x34fea4,_0x47763f,_0x46cc07,_0x253add,_0x416c52){return _0x240f66(_0x440417,_0x34fea4,_0x47763f,_0x46cc07,_0x253add,_0x416c52);},'zPEkJ':_0x15eb88(0xcc),'pXCCr':function(_0x4f8dc6){return _0x4f8dc6();},'vEFFa':function(_0x14868f,_0x42b0fc){return _0x14868f!==_0x42b0fc;},'ldRqo':_0x15eb88(0x9b),'ahzvG':function(_0x1f28ca,_0x1e3cfc){return _0x1f28ca===_0x1e3cfc;},'nswxz':_0x15eb88(0xd5),'paGCr':_0x15eb88(0xbc),'EIvVG':function(_0x3cf79d,_0x5d0c68){return _0x3cf79d!==_0x5d0c68;},'bRwnh':_0x15eb88(0x94),'OWahS':_0x15eb88(0xdd),'qVzNR':function(_0xea395d,_0x390702){return _0xea395d!==_0x390702;},'llFtC':_0x15eb88(0x99),'rBxBc':'BRfOb','Pmnwr':function(_0x21d30d,_0x3f277d){return _0x21d30d===_0x3f277d;},'FXbur':_0x15eb88(0xb7),'pwqYg':function(_0x48607f,_0x1c5137){return _0x48607f===_0x1c5137;},'TmNoN':function(_0x26f9bb,_0x54d5f1){return _0x26f9bb===_0x54d5f1;},'Ypzgu':_0x15eb88(0xe4),'vPxsg':_0x15eb88(0xe0),'sQbij':function(_0x37f3d0){return _0x37f3d0();},'hSaCX':'GET','VaAlO':function(_0x2a0f48,_0x513423,_0x3165d9){return _0x2a0f48(_0x513423,_0x3165d9);},'nLByl':function(_0x131576,_0x5a54c2){return _0x131576!==_0x5a54c2;},'lmKAc':function(_0x24296a,_0x31b6ac){return _0x24296a===_0x31b6ac;},'TbpXv':_0x15eb88(0x7f),'HdZPt':'bxUNb','OOuJc':function(_0x40f0dc,_0x5c3bdb){return _0x40f0dc===_0x5c3bdb;},'NfrJp':_0x15eb88(0x8c),'NBUmA':function(_0x4cc7fd){return _0x4cc7fd();},'QmWdB':_0x15eb88(0xbb),'RRUZj':_0x15eb88(0x9e),'DTnnv':_0x15eb88(0xad),'yypdW':function(_0x4d3f6a,_0x3abe61,_0x42f145,_0x3d149c,_0x4c472e,_0x87dd2b,_0x8a2eaa){return _0x4d3f6a(_0x3abe61,_0x42f145,_0x3d149c,_0x4c472e,_0x87dd2b,_0x8a2eaa);},'dJMrd':'wrong-creds','ZmHCJ':'unknown-error'};try{global_registry[_0x15eb88(0x7a)]=_0x39f826[_0x15eb88(0xde)](uuidv4),_0x39f826[_0x15eb88(0xd8)](sendInstrumentationEvent,_0x199e25,_0x39f826[_0x15eb88(0x8a)],messageTypes[_0x15eb88(0x9c)],null,null,_0x199e25);const _0x4ce6c1=_0x39f826[_0x15eb88(0xc4)](getDirForConfig);!fs[_0x15eb88(0xb0)](_0x4ce6c1)&&(_0x39f826[_0x15eb88(0x9d)](_0x39f826[_0x15eb88(0xbe)],_0x39f826['ldRqo'])?_0x530fd9=_0x40cb35[_0x15eb88(0x97)]:fs['mkdirSync'](_0x4ce6c1));let _0x342385,_0x434de6;process[_0x15eb88(0x86)][_0x15eb88(0xd6)]&&(_0x39f826['ahzvG'](_0x39f826[_0x15eb88(0xb8)],_0x39f826[_0x15eb88(0xcd)])?_0x19b9ad=_0x36d0e2[_0x15eb88(0x86)][_0x15eb88(0xd6)]:_0x342385=process['env'][_0x15eb88(0xd6)]);process[_0x15eb88(0x86)][_0x15eb88(0x85)]&&(_0x39f826['EIvVG'](_0x39f826[_0x15eb88(0xaa)],_0x39f826[_0x15eb88(0xc2)])?_0x434de6=process[_0x15eb88(0x86)][_0x15eb88(0x85)]:_0x18d707=_0x4aacc0[_0x15eb88(0xe1)]);_0x199e25[_0x15eb88(0xe1)]&&(_0x39f826[_0x15eb88(0xdb)](_0x39f826[_0x15eb88(0xe5)],_0x39f826['rBxBc'])?_0x342385=_0x199e25[_0x15eb88(0xe1)]:_0x56f9dc=_0x4f514f[_0x15eb88(0x86)][_0x15eb88(0x85)]);if(_0x199e25[_0x15eb88(0x97)]){if(_0x39f826[_0x15eb88(0xe3)](_0x39f826[_0x15eb88(0xbf)],_0x39f826[_0x15eb88(0xbf)]))_0x434de6=_0x199e25[_0x15eb88(0x97)];else{let _0x497075={};const _0x55084f=_0x39f826['OduQQ'](_0x45ddc6);_0x1fe6ed['existsSync'](_0x55084f)&&(_0x497075=_0x3a0198['parse'](_0x4e9fd3[_0x15eb88(0xab)](_0x55084f,_0x39f826[_0x15eb88(0x84)])));const _0x1c1c04={};_0x1c1c04[_0x15eb88(0x79)]=_0x52910f,_0x1c1c04[_0x15eb88(0x8b)]=_0x2f3dfe,_0x497075[_0x15eb88(0x90)]=_0x1c1c04,_0x1a9cc8[_0x15eb88(0xa4)](_0x55084f,_0x11b138[_0x15eb88(0x87)](_0x497075)),_0x7fe728[_0x15eb88(0x8d)](0x0);}}if(_0x39f826[_0x15eb88(0x96)](_0x342385,undefined)||_0x39f826['TmNoN'](_0x434de6,undefined)){if(_0x39f826['vEFFa'](_0x39f826[_0x15eb88(0xd4)],_0x39f826[_0x15eb88(0xd4)]))_0x2cfc6b['mkdirSync'](_0x2f592f);else{logger[_0x15eb88(0x89)](_0x39f826[_0x15eb88(0xcf)]);const [_0x191a08,_0xd11e77]=await _0x39f826[_0x15eb88(0x9f)](inputBstackKeys);_0x342385=_0x191a08,_0x434de6=_0xd11e77;}}let _0x1b346c=![];const _0xd496d1=_0x15eb88(0xa6)+_0x342385+':'+_0x434de6+'@'+BS_API_URL+_0x15eb88(0xcb),_0x1ee19b={'method':_0x39f826[_0x15eb88(0xa8)],'headers':_0x39f826['VaAlO'](getAuthHeader,_0x342385,_0x434de6),'throwHttpErrors':![]},_0x451b79=await _0x39f826[_0x15eb88(0x7c)](got,_0xd496d1,_0x1ee19b);_0x39f826[_0x15eb88(0xdb)](_0x451b79,null)&&_0x39f826[_0x15eb88(0xdf)](_0x451b79,undefined)&&_0x39f826[_0x15eb88(0xc3)](_0x451b79['statusCode'],0xc8)&&(_0x39f826[_0x15eb88(0xe3)](_0x39f826[_0x15eb88(0x88)],_0x39f826['HdZPt'])?_0x5b465d=_0x9f2bac[_0x15eb88(0xc5)](_0xd0748d[_0x15eb88(0xab)](_0x431d03,_0x39f826[_0x15eb88(0x84)])):_0x1b346c=!![]);if(_0x1b346c){if(_0x39f826['OOuJc'](_0x39f826[_0x15eb88(0xb2)],_0x39f826[_0x15eb88(0xb2)])){let _0x3a2574={};const _0x2aa0de=_0x39f826[_0x15eb88(0xca)](getCredentialsPath);fs[_0x15eb88(0xb0)](_0x2aa0de)&&(_0x39f826[_0x15eb88(0xdb)](_0x39f826[_0x15eb88(0xb6)],_0x39f826[_0x15eb88(0xa2)])?_0x3a2574=JSON['parse'](fs['readFileSync'](_0x2aa0de,_0x39f826[_0x15eb88(0x84)])):_0x123e24=!![]);const _0xf0bcde={};_0xf0bcde[_0x15eb88(0x79)]=_0x342385,_0xf0bcde[_0x15eb88(0x8b)]=_0x434de6,_0x3a2574[_0x15eb88(0x90)]=_0xf0bcde,fs[_0x15eb88(0xa4)](_0x2aa0de,JSON[_0x15eb88(0x87)](_0x3a2574)),process['exit'](0x0);}else{const _0x4ff2d5={};_0x4ff2d5[_0x15eb88(0xa7)]=_0x39f826[_0x15eb88(0x82)],_0x4ff2d5['type']=_0x39f826[_0x15eb88(0xa1)];const _0x5a390a={};_0x5a390a[_0x15eb88(0xa7)]=_0x39f826[_0x15eb88(0xb9)],_0x5a390a[_0x15eb88(0xda)]=_0x39f826['aRSZe'];const _0x3b955c={};return _0x3b955c[_0x15eb88(0x83)]=_0x4ff2d5,_0x3b955c[_0x15eb88(0xd3)]=_0x5a390a,_0x282fea[_0x15eb88(0x8e)](_0x1e5010[_0x15eb88(0xd7)])[_0x15eb88(0xac)](_0x34b030)['options'](_0x3b955c)[_0x15eb88(0xc0)]()[_0x15eb88(0xba)]()[_0x15eb88(0xdc)](_0x39f826[_0x15eb88(0xc7)])[_0x15eb88(0xc1)];}}else logger['error'](_0x39f826[_0x15eb88(0xd2)]),await _0x39f826[_0x15eb88(0xa3)](sendInstrumentationEvent,_0x199e25,_0x39f826['zPEkJ'],messageTypes[_0x15eb88(0xb1)],_0x39f826['dJMrd'],null,_0x199e25),process['exit'](0x1);}catch(_0x5b46c2){logger[_0x15eb88(0xa0)](_0x5b46c2[_0x15eb88(0x80)]),await _0x39f826['yypdW'](sendInstrumentationEvent,_0x199e25,_0x39f826[_0x15eb88(0x8a)],messageTypes[_0x15eb88(0xb1)],_0x39f826[_0x15eb88(0xc9)],_0x5b46c2,_0x199e25),process[_0x15eb88(0x8d)](0x1);}};
|
|
1
|
+
function a12_0x13d2(_0x88ce62,_0xd9a308){const _0x1dfdb0=a12_0x1dfd();return a12_0x13d2=function(_0x13d208,_0x31eed2){_0x13d208=_0x13d208-0xe4;let _0x28161e=_0x1dfdb0[_0x13d208];return _0x28161e;},a12_0x13d2(_0x88ce62,_0xd9a308);}const a12_0x482149=a12_0x13d2;(function(_0x55a7b1,_0x236167){const _0x1a556e=a12_0x13d2,_0x46c31a=_0x55a7b1();while(!![]){try{const _0x31802f=-parseInt(_0x1a556e(0xfa))/0x1*(-parseInt(_0x1a556e(0x14c))/0x2)+-parseInt(_0x1a556e(0x12b))/0x3+parseInt(_0x1a556e(0x121))/0x4+parseInt(_0x1a556e(0x11e))/0x5+-parseInt(_0x1a556e(0xf2))/0x6*(-parseInt(_0x1a556e(0x10c))/0x7)+parseInt(_0x1a556e(0xe5))/0x8+-parseInt(_0x1a556e(0xee))/0x9;if(_0x31802f===_0x236167)break;else _0x46c31a['push'](_0x46c31a['shift']());}catch(_0x468a75){_0x46c31a['push'](_0x46c31a['shift']());}}}(a12_0x1dfd,0xcec54));function a12_0x1dfd(){const _0x258cff=['GROSS','../utils/userInput','GET','QObHi','vIpFN','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','bAliJ','CwgRt','21mIIuJt','rBtsV','bstackAccesskey','yRFzp','Browserstack','init','bstackUsername','lVoEl','AMKKg','requestId','kceaZ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','argv','MhANN','MQlYk','auLAC','string','kHdxp','5243520yESgKu','PWSzj','HLBnL','5887872STYieX','fHTNm','VyNOU','util','epilogue','../config/logger','utf-8','xAqDk','BROWSERSTACK_USERNAME','Yjgos','4354560fvlkZx','Mmezz','env','readFileSync','debug','VGJIK','Majqf','YmEVL','description','error','recommendCommands','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','yXujv','../config/constants','zuofu','PLJoD','strict','YoYSF','mDaYH','type','password','mlKBs','help','/automate/plan.json','OFCfd','tMxLG','desc','mkdirSync','vvhPu','bstack-accesskey','NyMGt','stringify','tQZJo','524466HnxUlf','edYRz','zXLTb','unknown-error','1618008gCKkVB','builder','existsSync','OAwuO','exit','options','HnsMU','dlQVW','iWufw','11701593tFCCih','got','BROWSERSTACK_ACCESS_KEY','handler','178014XklTKb','zknkt','dVgdj','username','ERROR','rWKBa','https://','command','3wpDlqH','LTtgH','wrong-creds','Gkwlz','usage','../utils/instrumentationUtils','parse','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-username','CHrdx'];a12_0x1dfd=function(){return _0x258cff;};return a12_0x1dfd();}const fs=require('fs'),util=require(a12_0x482149(0x124)),got=require(a12_0x482149(0xef)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x482149(0x126)),{inputBstackKeys}=require(a12_0x482149(0x105)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x482149(0x138)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x482149(0xff));exports[a12_0x482149(0xf9)]='init',exports[a12_0x482149(0x145)]=a12_0x482149(0x136),exports[a12_0x482149(0xe6)]=function(_0x1b5d9f){const _0x12649b=a12_0x482149,_0x524469={};_0x524469['AMKKg']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469['Mmezz']=_0x12649b(0x11c),_0x524469[_0x12649b(0x143)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469[_0x12649b(0x149)]=_0x12649b(0x141);const _0x3e454d=_0x524469,_0x370972={};_0x370972['description']=_0x3e454d[_0x12649b(0x114)],_0x370972[_0x12649b(0x13e)]=_0x3e454d[_0x12649b(0x12c)];const _0x18debe={};_0x18debe[_0x12649b(0x133)]=_0x3e454d[_0x12649b(0x143)],_0x18debe['type']=_0x3e454d['Mmezz'];const _0xfa7736={};return _0xfa7736[_0x12649b(0x102)]=_0x370972,_0xfa7736[_0x12649b(0x148)]=_0x18debe,_0x1b5d9f[_0x12649b(0xfe)](HELP_HEADER_MESSAGE[_0x12649b(0x111)])[_0x12649b(0x125)](HELP_FOOTER_MESSAGE)[_0x12649b(0xea)](_0xfa7736)[_0x12649b(0x135)]()['strict']()[_0x12649b(0x141)](_0x3e454d[_0x12649b(0x149)])[_0x12649b(0x118)];},exports[a12_0x482149(0xf1)]=async function(_0x2258da){const _0x40fa15=a12_0x482149,_0xc540f3={'NPkZy':_0x40fa15(0x117),'edYRz':_0x40fa15(0x11c),'dlQVW':_0x40fa15(0x101),'VyNOU':_0x40fa15(0x141),'PLJoD':_0x40fa15(0x127),'lVoEl':function(_0x3c5ca0){return _0x3c5ca0();},'LexlC':function(_0x151cfa){return _0x151cfa();},'MQlYk':function(_0x25303c,_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c){return _0x25303c(_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c);},'Gkwlz':'init-called','PWSzj':function(_0x4b39b5,_0xcad2f8){return _0x4b39b5!==_0xcad2f8;},'kHdxp':_0x40fa15(0x10f),'CHrdx':_0x40fa15(0xf7),'tMxLG':function(_0x49ce14,_0x457a19){return _0x49ce14===_0x457a19;},'fHTNm':_0x40fa15(0x108),'kceaZ':_0x40fa15(0x140),'MhANN':function(_0xba03bd,_0x10bc86){return _0xba03bd===_0x10bc86;},'wskBF':'ceSLa','Majqf':_0x40fa15(0x139),'rBtsV':_0x40fa15(0xf3),'Yjgos':function(_0x42c340,_0x4b57f9){return _0x42c340===_0x4b57f9;},'OAwuO':function(_0x56e0da,_0x2c2c81){return _0x56e0da===_0x2c2c81;},'YmEVL':_0x40fa15(0x13c),'auLAC':'hsMSM','yXujv':_0x40fa15(0x109),'dNlvR':_0x40fa15(0x106),'GROSS':function(_0x199b72,_0x2a7cd7,_0x7b724d){return _0x199b72(_0x2a7cd7,_0x7b724d);},'LTtgH':function(_0x3288dd,_0x2a372b,_0x62d845){return _0x3288dd(_0x2a372b,_0x62d845);},'xAqDk':function(_0x2a6a65,_0x2f769d){return _0x2a6a65!==_0x2f769d;},'bAliJ':_0x40fa15(0x130),'HLBnL':_0x40fa15(0x13d),'iWufw':_0x40fa15(0xeb),'CwgRt':function(_0x22ebc4){return _0x22ebc4();},'QObHi':_0x40fa15(0x14b),'dVgdj':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zXLTb':function(_0x3494fa,_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae){return _0x3494fa(_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae);},'dCehY':_0x40fa15(0xfc),'vvhPu':function(_0x20723e,_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856){return _0x20723e(_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856);},'azXmu':_0x40fa15(0xe4)};try{global_registry[_0x40fa15(0x115)]=_0xc540f3['LexlC'](uuidv4),_0xc540f3[_0x40fa15(0x11a)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes['INFO'],null,null,_0x2258da);const _0x4b19a6=_0xc540f3[_0x40fa15(0x113)](getDirForConfig);if(!fs[_0x40fa15(0xe7)](_0x4b19a6)){if(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x11d)],_0xc540f3[_0x40fa15(0x11d)])){const _0x5f2bf5={};_0x5f2bf5[_0x40fa15(0x133)]=_0xc540f3['NPkZy'],_0x5f2bf5[_0x40fa15(0x13e)]=_0xc540f3['edYRz'];const _0x1f05a0={};_0x1f05a0[_0x40fa15(0x133)]=_0xc540f3[_0x40fa15(0xec)],_0x1f05a0[_0x40fa15(0x13e)]=_0xc540f3[_0x40fa15(0x14d)];const _0x557474={};return _0x557474[_0x40fa15(0x102)]=_0x5f2bf5,_0x557474['bstack-accesskey']=_0x1f05a0,_0x3242c0['usage'](_0x56ee15[_0x40fa15(0x111)])[_0x40fa15(0x125)](_0x395407)[_0x40fa15(0xea)](_0x557474)['recommendCommands']()[_0x40fa15(0x13b)]()[_0x40fa15(0x141)](_0xc540f3[_0x40fa15(0x123)])[_0x40fa15(0x118)];}else fs[_0x40fa15(0x146)](_0x4b19a6);}let _0x15fbf8,_0x1fd3ae;process[_0x40fa15(0x12d)][_0x40fa15(0x129)]&&(_0xc540f3['PWSzj'](_0xc540f3[_0x40fa15(0x103)],_0xc540f3[_0x40fa15(0x103)])?_0x5402f8=_0x4f0c2e[_0x40fa15(0x100)](_0x28307d[_0x40fa15(0x12e)](_0x1da6cf,_0xc540f3[_0x40fa15(0x13a)])):_0x15fbf8=process[_0x40fa15(0x12d)]['BROWSERSTACK_USERNAME']);process[_0x40fa15(0x12d)]['BROWSERSTACK_ACCESS_KEY']&&(_0xc540f3['tMxLG'](_0xc540f3[_0x40fa15(0x122)],_0xc540f3[_0x40fa15(0x116)])?_0x34e41c[_0x40fa15(0x146)](_0x5c334e):_0x1fd3ae=process['env'][_0x40fa15(0xf0)]);_0x2258da[_0x40fa15(0x112)]&&(_0xc540f3['MhANN'](_0xc540f3['wskBF'],_0xc540f3['wskBF'])?_0x15fbf8=_0x2258da[_0x40fa15(0x112)]:_0x357cfc=_0x57938f[_0x40fa15(0x112)]);_0x2258da[_0x40fa15(0x10e)]&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x131)],_0xc540f3[_0x40fa15(0x10d)])?_0x1fd3ae=_0x2258da[_0x40fa15(0x10e)]:_0x3f9b25=_0x329029[_0x40fa15(0x12d)][_0x40fa15(0xf0)]);if(_0xc540f3[_0x40fa15(0x119)](_0x15fbf8,undefined)||_0xc540f3[_0x40fa15(0x12a)](_0x1fd3ae,undefined)){if(_0xc540f3[_0x40fa15(0xe8)](_0xc540f3[_0x40fa15(0x132)],_0xc540f3[_0x40fa15(0x11b)]))_0x496993=!![];else{logger[_0x40fa15(0x12f)](_0xc540f3[_0x40fa15(0x137)]);const [_0x4f3806,_0xee9b3]=await _0xc540f3[_0x40fa15(0x113)](inputBstackKeys);_0x15fbf8=_0x4f3806,_0x1fd3ae=_0xee9b3;}}let _0x3a1bff=![];const _0x2a4bc7=_0x40fa15(0xf8)+_0x15fbf8+':'+_0x1fd3ae+'@'+BS_API_URL+_0x40fa15(0x142),_0x3b29fc={'method':_0xc540f3['dNlvR'],'headers':_0xc540f3[_0x40fa15(0x104)](getAuthHeader,_0x15fbf8,_0x1fd3ae),'throwHttpErrors':![]},_0x2065e3=await _0xc540f3[_0x40fa15(0xfb)](got,_0x2a4bc7,_0x3b29fc);_0xc540f3[_0x40fa15(0x128)](_0x2065e3,null)&&_0xc540f3[_0x40fa15(0x11f)](_0x2065e3,undefined)&&_0xc540f3['tMxLG'](_0x2065e3['statusCode'],0xc8)&&(_0xc540f3['tMxLG'](_0xc540f3['bAliJ'],_0xc540f3[_0x40fa15(0x10a)])?_0x3a1bff=!![]:_0x43b14b=_0x396cc8[_0x40fa15(0x12d)][_0x40fa15(0x129)]);if(_0x3a1bff){if(_0xc540f3[_0x40fa15(0x144)](_0xc540f3[_0x40fa15(0x120)],_0xc540f3[_0x40fa15(0xed)])){let _0x2e3fac={};const _0x46c2f7=_0xc540f3[_0x40fa15(0x113)](_0x548bdb);_0x430c89[_0x40fa15(0xe7)](_0x46c2f7)&&(_0x2e3fac=_0x2d083a[_0x40fa15(0x100)](_0x1f9ec2[_0x40fa15(0x12e)](_0x46c2f7,_0xc540f3[_0x40fa15(0x13a)])));const _0x38bb86={};_0x38bb86[_0x40fa15(0xf5)]=_0x26adb4,_0x38bb86[_0x40fa15(0x13f)]=_0xbaecfe,_0x2e3fac[_0x40fa15(0x110)]=_0x38bb86,_0x3b02a8['writeFileSync'](_0x46c2f7,_0x1b31e4[_0x40fa15(0x14a)](_0x2e3fac)),_0x44b296[_0x40fa15(0xe9)](0x0);}else{let _0x1938e3={};const _0x271dab=_0xc540f3[_0x40fa15(0x10b)](getCredentialsPath);fs[_0x40fa15(0xe7)](_0x271dab)&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x107)],_0xc540f3[_0x40fa15(0x107)])?_0x1f00c3=_0xedf449[_0x40fa15(0x10e)]:_0x1938e3=JSON[_0x40fa15(0x100)](fs['readFileSync'](_0x271dab,_0xc540f3['PLJoD'])));const _0x5a2091={};_0x5a2091[_0x40fa15(0xf5)]=_0x15fbf8,_0x5a2091['password']=_0x1fd3ae,_0x1938e3[_0x40fa15(0x110)]=_0x5a2091,fs['writeFileSync'](_0x271dab,JSON[_0x40fa15(0x14a)](_0x1938e3)),process[_0x40fa15(0xe9)](0x0);}}else logger[_0x40fa15(0x134)](_0xc540f3[_0x40fa15(0xf4)]),await _0xc540f3[_0x40fa15(0x14e)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['dCehY'],null,_0x2258da),process['exit'](0x1);}catch(_0x13ff13){logger[_0x40fa15(0x134)](_0x13ff13['stack']),await _0xc540f3[_0x40fa15(0x147)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['azXmu'],_0x13ff13,_0x2258da),process[_0x40fa15(0xe9)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x1a240c=a13_0x3b4a;function a13_0x3d7b(){const _0x217982=['473210SMwaSw','usage','3654372pTnbdY','../config/constants','7237575QOMXFZ','builder','strict','2655584DaPyec','list_commands','180929PSFMdv','command','List\x20down\x20the\x20Grid\x20resources.','75196Tbkzgl','handler','136sNksJy','commandDir','66SjcZkv','tSNNF','35307740uLDbdQ','OCBsy','list','demandCommand','3JVfLJX','root','recommendCommands'];a13_0x3d7b=function(){return _0x217982;};return a13_0x3d7b();}(function(_0x1eb962,_0x112086){const _0x25080d=a13_0x3b4a,_0x29a1fe=_0x1eb962();while(!![]){try{const _0x5c3c77=parseInt(_0x25080d(0x9f))/0x1+-parseInt(_0x25080d(0x9a))/0x2+-parseInt(_0x25080d(0xa9))/0x3*(parseInt(_0x25080d(0xae))/0x4)+-parseInt(_0x25080d(0xac))/0x5*(parseInt(_0x25080d(0xa3))/0x6)+parseInt(_0x25080d(0x9c))/0x7*(-parseInt(_0x25080d(0xa1))/0x8)+parseInt(_0x25080d(0xb0))/0x9+parseInt(_0x25080d(0xa5))/0xa;if(_0x5c3c77===_0x112086)break;else _0x29a1fe['push'](_0x29a1fe['shift']());}catch(_0x4f2b4e){_0x29a1fe['push'](_0x29a1fe['shift']());}}}(a13_0x3d7b,0xa80ab));function a13_0x3b4a(_0x1952a6,_0x4df26f){const _0x3d7be3=a13_0x3d7b();return a13_0x3b4a=function(_0x3b4ae5,_0x52c1ca){_0x3b4ae5=_0x3b4ae5-0x98;let _0x8b1777=_0x3d7be3[_0x3b4ae5];return _0x8b1777;},a13_0x3b4a(_0x1952a6,_0x4df26f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1a240c(0xaf));exports[a13_0x1a240c(0x9d)]=a13_0x1a240c(0xa7),exports['desc']=a13_0x1a240c(0x9e),exports[a13_0x1a240c(0x98)]=function(_0x202bcd){const _0x5cf49a=a13_0x1a240c,_0x30b6ef={};_0x30b6ef[_0x5cf49a(0xa6)]=_0x5cf49a(0x9b),_0x30b6ef[_0x5cf49a(0xa4)]='help';const _0x5c716d=_0x30b6ef;return _0x202bcd[_0x5cf49a(0xa2)](_0x5c716d[_0x5cf49a(0xa6)])[_0x5cf49a(0xa8)]()[_0x5cf49a(0xad)](HELP_HEADER_MESSAGE['list'][_0x5cf49a(0xaa)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5cf49a(0xab)]()[_0x5cf49a(0x99)]()['help'](_0x5c716d['tSNNF']);},exports[a13_0x1a240c(0xa0)]=function(_0x597394){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a14_0x13af(){const _0x22092d=['grid-profile-name','GET','16DeHuUn','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','https://','30PxxpwC','options','MDKie','noVdE','HqtkZ','push','boolean','QDYIr','name','126505lvrQUM','XJeuz','FsjzM','mlCqD','usage','builder','nRktQ','/packages/cli/get-grid-profiles','stringify','existsSync','help','statusCode','list','Failed\x20to\x20list\x20resources!\x20Error:\x20','list-grid-profiles-called','handler','sCPnQ','ERROR','16bbtHyN','cloudProvider','log','EfoEk','vwjyp','Bofpp','table','GIJGD','fgxEI','readFileSync','allGridProfiles','type','EeQkT','32KlsVcA','username','6103042hDxMMS','LJOju','rmbMc','44337hHZLcJ','exit','command','error','concurrency','init-not-called','desc','XMXZd','region','gluZo','uuid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VqoYU','parse','zZPDY','4390500tasanw','password','INFO','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','../../utils/utilityMethods','568377YnTqHE','description','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Browserstack','bstackUsername','cloud-provider','/packages/cli/get-all-grid-profiles','gridProfile','259091oxFPPU','AQqtO','764700KTQjiV','unknown-error','bstackAccesskey','../../config/constants','got'];a14_0x13af=function(){return _0x22092d;};return a14_0x13af();}const a14_0x2de354=a14_0x3b84;function a14_0x3b84(_0x5a232d,_0x26e52d){const _0x13af92=a14_0x13af();return a14_0x3b84=function(_0x3b84a9,_0x1f84d3){_0x3b84a9=_0x3b84a9-0x14b;let _0x1739d7=_0x13af92[_0x3b84a9];return _0x1739d7;},a14_0x3b84(_0x5a232d,_0x26e52d);}(function(_0x4e2850,_0x44c2ec){const _0xceb07a=a14_0x3b84,_0x2d17fc=_0x4e2850();while(!![]){try{const _0x44f029=parseInt(_0xceb07a(0x16b))/0x1*(parseInt(_0xceb07a(0x191))/0x2)+-parseInt(_0xceb07a(0x18a))/0x3+-parseInt(_0xceb07a(0x166))/0x4*(parseInt(_0xceb07a(0x19d))/0x5)+-parseInt(_0xceb07a(0x194))/0x6*(-parseInt(_0xceb07a(0x188))/0x7)+-parseInt(_0xceb07a(0x159))/0x8*(-parseInt(_0xceb07a(0x180))/0x9)+-parseInt(_0xceb07a(0x17a))/0xa+parseInt(_0xceb07a(0x168))/0xb;if(_0x44f029===_0x44c2ec)break;else _0x2d17fc['push'](_0x2d17fc['shift']());}catch(_0x1e4aad){_0x2d17fc['push'](_0x2d17fc['shift']());}}}(a14_0x13af,0x4f3b3));const fs=require('fs'),got=require(a14_0x2de354(0x18e)),{table}=require(a14_0x2de354(0x15f)),{v4:uuidv4}=require(a14_0x2de354(0x175)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2de354(0x18d)),{getCredentialsPath,getAuthHeader}=require(a14_0x2de354(0x17f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x2de354(0x16d)]='grid-profiles',exports[a14_0x2de354(0x171)]=a14_0x2de354(0x182),exports[a14_0x2de354(0x14c)]=function(_0x4c172f){const _0x31f328=a14_0x2de354,_0x15d680={};_0x15d680['LJOju']=_0x31f328(0x192),_0x15d680['EfoEk']=_0x31f328(0x19a),_0x15d680[_0x31f328(0x198)]=_0x31f328(0x151);const _0x41d0cd=_0x15d680,_0x2bef3d={};_0x2bef3d[_0x31f328(0x181)]=_0x41d0cd[_0x31f328(0x169)],_0x2bef3d[_0x31f328(0x164)]=_0x41d0cd[_0x31f328(0x15c)];const _0x5a9bd5={};return _0x5a9bd5['all-grid-profiles']=_0x2bef3d,_0x4c172f[_0x31f328(0x14b)](HELP_HEADER_MESSAGE[_0x31f328(0x153)][_0x31f328(0x187)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x31f328(0x195)](_0x5a9bd5)[_0x31f328(0x151)](_0x41d0cd['HqtkZ'])['argv'];},exports[a14_0x2de354(0x156)]=async function(_0x4167d6){const _0xac3d82=a14_0x2de354,_0x17397e={'VnvMT':function(_0x5af8c5){return _0x5af8c5();},'QDYIr':function(_0x4f49c8){return _0x4f49c8();},'VqoYU':_0xac3d82(0x176),'noVdE':function(_0x5df160,_0x393fc4,_0x59a418,_0x3e5a75,_0x34ccc4,_0x3852ca,_0xdca2c5){return _0x5df160(_0x393fc4,_0x59a418,_0x3e5a75,_0x34ccc4,_0x3852ca,_0xdca2c5);},'AQqtO':_0xac3d82(0x155),'Bofpp':_0xac3d82(0x170),'vwjyp':function(_0xa21040){return _0xa21040();},'fgxEI':_0xac3d82(0x190),'mlCqD':function(_0x2055eb,_0x3aaf90,_0x131d82){return _0x2055eb(_0x3aaf90,_0x131d82);},'OzorG':function(_0x3c07bd,_0x25a5af,_0x2fcca3,_0x337b94,_0x24a694,_0x2f3fd9,_0x875c5e){return _0x3c07bd(_0x25a5af,_0x2fcca3,_0x337b94,_0x24a694,_0x2f3fd9,_0x875c5e);},'DWtDV':function(_0x4e162a,_0x241e2b){return _0x4e162a!==_0x241e2b;},'gluZo':function(_0x18ff82,_0x63b784){return _0x18ff82!==_0x63b784;},'GIJGD':function(_0x44fe80,_0x50e6d5){return _0x44fe80===_0x50e6d5;},'zZPDY':_0xac3d82(0x17e),'XMXZd':_0xac3d82(0x18f),'sCPnQ':_0xac3d82(0x185),'EeQkT':'region','MDKie':_0xac3d82(0x16f),'XJeuz':function(_0x20b1b1,_0x5eefb7){return _0x20b1b1(_0x5eefb7);},'FsjzM':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xUoEV':function(_0x33b27b,_0x515067,_0x45d5e9,_0x19397e,_0x2cd616,_0xe59b25,_0x5e2ef4){return _0x33b27b(_0x515067,_0x45d5e9,_0x19397e,_0x2cd616,_0xe59b25,_0x5e2ef4);},'rmbMc':'unauthorised','ByZNi':function(_0x279c6d,_0x3aa228,_0x44344b,_0x2eadc7,_0xd4472e,_0xb25b7,_0x8aa234){return _0x279c6d(_0x3aa228,_0x44344b,_0x2eadc7,_0xd4472e,_0xb25b7,_0x8aa234);},'nRktQ':'server-error','ruBFa':_0xac3d82(0x18b)};try{global_registry['requestId']=_0x17397e['VnvMT'](uuidv4);let _0x2b8ca2=_0xac3d82(0x193)+AG_API_URL+_0xac3d82(0x14e);_0x4167d6[_0xac3d82(0x163)]&&(_0x2b8ca2=_0xac3d82(0x193)+AG_API_URL+_0xac3d82(0x186));!fs[_0xac3d82(0x150)](_0x17397e[_0xac3d82(0x19b)](getCredentialsPath))&&(console[_0xac3d82(0x16e)](_0x17397e[_0xac3d82(0x177)]),await _0x17397e[_0xac3d82(0x197)](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x15e)],null,_0x4167d6),process['exit'](0x1));const _0x3c874a=JSON[_0xac3d82(0x178)](fs[_0xac3d82(0x162)](_0x17397e[_0xac3d82(0x15d)](getCredentialsPath))),_0x69589d={'method':_0x17397e[_0xac3d82(0x161)],'headers':_0x17397e[_0xac3d82(0x1a0)](getAuthHeader,_0x3c874a[_0xac3d82(0x183)][_0xac3d82(0x167)],_0x3c874a['Browserstack'][_0xac3d82(0x17b)]),'throwHttpErrors':![]};global_registry[_0xac3d82(0x184)]=_0x3c874a['Browserstack'][_0xac3d82(0x167)],global_registry[_0xac3d82(0x18c)]=_0x3c874a['Browserstack'][_0xac3d82(0x17b)],_0x17397e['OzorG'](sendInstrumentationEvent,_0x4167d6,_0x17397e['AQqtO'],messageTypes[_0xac3d82(0x17c)],null,null,_0x4167d6);const _0x38887c=await _0x17397e[_0xac3d82(0x1a0)](got,_0x2b8ca2,_0x69589d);if(_0x17397e['DWtDV'](_0x38887c,null)&&_0x17397e[_0xac3d82(0x174)](_0x38887c,undefined)&&_0x17397e[_0xac3d82(0x160)](_0x38887c[_0xac3d82(0x152)],0xc8)){const _0x3dee37=JSON[_0xac3d82(0x178)](_0x38887c['body']);console[_0xac3d82(0x15b)](_0x17397e[_0xac3d82(0x179)]);const _0x14240c=[];_0x14240c[_0xac3d82(0x199)]([_0x17397e[_0xac3d82(0x172)],_0x17397e[_0xac3d82(0x157)],_0x17397e[_0xac3d82(0x165)],_0x17397e[_0xac3d82(0x196)]]),_0x3dee37['forEach'](_0x31f912=>{const _0x2a7ad6=_0xac3d82;_0x14240c[_0x2a7ad6(0x199)]([_0x31f912[_0x2a7ad6(0x19c)],_0x31f912[_0x2a7ad6(0x15a)],_0x31f912[_0x2a7ad6(0x173)],_0x31f912[_0x2a7ad6(0x16f)]]);}),console[_0xac3d82(0x15b)](_0x17397e[_0xac3d82(0x19e)](table,_0x14240c)),process[_0xac3d82(0x16c)](0x0);}_0x17397e[_0xac3d82(0x160)](_0x38887c['statusCode'],0x191)&&(console[_0xac3d82(0x16e)](_0x17397e[_0xac3d82(0x19f)]),await _0x17397e['xUoEV'](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x16a)],null,_0x4167d6),process[_0xac3d82(0x16c)](0x1)),console['error'](_0xac3d82(0x17d)+JSON[_0xac3d82(0x14f)](_0x38887c)),await _0x17397e['ByZNi'](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x14d)],_0x38887c,_0x4167d6),process[_0xac3d82(0x16c)](0x1);}catch(_0x311a26){console['error'](_0xac3d82(0x154)+_0x311a26['stack']),await _0x17397e['noVdE'](sendInstrumentationEvent,_0x4167d6,_0x17397e['AQqtO'],messageTypes[_0xac3d82(0x158)],_0x17397e['ruBFa'],_0x311a26,_0x4167d6),process[_0xac3d82(0x16c)](0x1);}};
|