browserstack-node-sdk 1.55.2 → 1.55.4

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.
Files changed (198) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/capsMapping.js +1 -1
  156. package/src/helpers/central-scanner/constants.js +1 -1
  157. package/src/helpers/central-scanner/helpers.js +1 -1
  158. package/src/helpers/classLogger.js +1 -1
  159. package/src/helpers/globals.js +1 -1
  160. package/src/helpers/helper.js +1 -1
  161. package/src/helpers/logger.js +1 -1
  162. package/src/helpers/metadata.js +1 -1
  163. package/src/helpers/patchHelper.js +1 -1
  164. package/src/helpers/patchHelpers.js +1 -1
  165. package/src/helpers/percy/Percy.js +1 -1
  166. package/src/helpers/percy/PercyBinary.js +1 -1
  167. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  168. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  169. package/src/helpers/percy/PercySDK.js +1 -1
  170. package/src/helpers/percy/index.js +1 -1
  171. package/src/helpers/percy/utils.js +1 -1
  172. package/src/helpers/performance/constants.js +1 -1
  173. package/src/helpers/performance/performance-tester.js +1 -1
  174. package/src/helpers/playwright-helper.js +1 -1
  175. package/src/helpers/processHelper.js +1 -1
  176. package/src/helpers/puppeteer-helper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/test-observability/constants.js +1 -1
  180. package/src/helpers/test-observability/error-handler.js +1 -1
  181. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  182. package/src/helpers/test-observability/sessionHandler.js +1 -1
  183. package/src/helpers/test-observability/utils.js +1 -1
  184. package/src/helpers/test-orchestration/constants.js +1 -1
  185. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  186. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  187. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  188. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  189. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  190. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  191. package/src/helpers/testhub/constants.js +1 -1
  192. package/src/helpers/testhub/testhubHandler.js +1 -1
  193. package/src/helpers/testhub/utils.js +1 -1
  194. package/src/helpers/timeoutPromise.js +1 -1
  195. package/src/helpers/utilities.js +1 -1
  196. package/src/helpers/w3cMapping.js +1 -1
  197. package/src/hubAllocationMethods.js +1 -1
  198. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x90a152=a9_0x4d1d;function a9_0x6e2b(){const _0x52a1e5=['type','arheT','concurrency','AioCt','xlBEq','NibxD','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','privateGrid','GhgFJ','default','gridProfileId','iQYRY','XQuTv','KUYaI','updateClusterAlreadyPresent','RwYhs','fcKSc','joKnA','metadata','GbTGd','xoIfK','Browserstack','10084mdmkNF','cPiXA','BVKpa','../../utils/gridComponents','VSAhp','stack','eDoKu','annotations','existsSync','cloudProvider','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','://','\x20in\x20existing\x20cluster\x20\x27','WiLWs','wYCvB','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','XlIjK','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','enableHubHa','mQHsL','http','qNrJx','Adding\x20Turboscale\x20Uploader\x20deployment...','Flag\x20to\x20enable\x20Hub\x20HA','LiwsM','newCluster','boolean','Grid\x20profile\x20fetched\x20from\x20backend','QQCNw','wkBdW','epilogue','getResourceClientId','managedBy','TyJMv','Namespace\x20Created','KynNb','bstackAccesskey','setupNewCluster','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','private-grid','s3bucket','PhLMM','templates','QhEYy','../..','sendEventToBackend','xiehK','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.','isPrivateGrid','JOFmN','body','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','hubVersion','VJNfd','serviceAccountName','gDckk','gQdxN','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','AJdcs','LDGPR','create-grid-checks-auth-failed','Spawning\x20the\x20grid\x20','srpeG','5|3|4|1|2|0|7|6|8','RxHMU','mdLug','HDspD','RVFWL','description','ugNjs','RUuRx','Wsajc','ibdcd','readFileSync','get-grid-url-non-200','PbnDg','ingress-nginx','ywcRr','eWuXd','7054940hKElOh','psFda','turboscale-uploader.yaml','path','Adding\x20Secret\x20Mapping','TEJcf','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','GKGiF','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','ArwOZ','requestId','prespawned-cluster-args-not-passed','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','VlZcf','join','zoyNl','bpRUK','DSZzn','securityGroups','get-grid-url-auth-failed','54eaQgnI','UrfnI','jDbVz','kafkaPassword','lVYfd','utf-8','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','cluster-autoupgrade','cloud-provider','Spawning\x20grid\x20on\x20to\x20the\x20cluster','create-grid-checks-null-response','ZCZog','AlhND','Spawning\x20Grid\x20on\x20the\x20Cluster','\x27\x20grid\x20profile','iPbgq','browserstack','IeGzL','hub-ha','rkfMR','../../utils/createk8sClient','sendResourceDataToHST','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Will\x20be\x20spawning\x20the\x20grid\x20','Cluster:\x20','mCQHG','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','HbHDy','Creating\x20namespace','labels','error','vPOqt','dLezo','GEydX','string','instanceType','uploaderVersion','eZKzj','create','debug','flAIz','yegsN','../../utils/utilityMethods','iWred','https://','OxiZR','XKede','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','minNodes','Enabling\x20Hub\x20HA\x20flow','GZvuH','replace','usage','QAaFN','OMsQL','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','uhYNw','hPNbg','PwpIY','lrpSF','tSlND','267jLtJZl','../../config/logger','clusterAutoUpgrade','got','aNXvz','xZPFK','tjdDs','MdVqz','xruPk','hubHa','MaqED','tcGfi','PzRzG','maxNodes','QsikH','ucmUK','VhKUG','iuhCC','bjxHX','isClusterPresent','tOPTU','EaQbF','VuJGU','YwZmI','browserVersion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','EWIqm','Grid\x20spawned\x20on\x20the\x20cluster','ERROR','Hub\x20HA\x20setup\x20completed\x20successfully.','Added\x20Kafka\x20deployment.','skip-tls-cert-verify','Skip\x20insecure\x20cert\x20verification.','gHUZU','grid-name','CLI_RUN_STARTED','grid-spawning-failed','vHOEE','rNEJH','kgEML','lUrhl','LOG','efs-csi','clusterName','RsfZN','4|1|0|2|3','isNewAWSCluster','Xhmjn','nPkzP','spec','230188kimVei','Epyd5nXbRK','builder','bOnrJ','HIeIc','hubHaNameSpace','hwuYr','kZAZI','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','EOojX','nONKX','getGridHostname','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','user','KOzpb','JhOHN','alreadyPresent','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','FjhMX','deleteCluster','FOmps','statusCode','UVyxJ','username','jVYqB','toLowerCase','gridName','js-yaml','cluster-name','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','9489nHqCdt','esfNw','fCTxU','upvrx','createdBy','get-grid-url-null-response','CJKCv','pre-spawned-invalid-subnets','AcAua','wLAUL','gridProfiles','template','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','create-grid-checks-invalid-profile','uOFqk','help','grid-profile','LBEIm','Jhzoe','gdFRV','UUPJK','nHAox','hTvAL','Create\x20a\x20private/public\x20grid.','EqaZK','uaDEt','private-ingress-nginx-controller','TqqJY','Adding\x20Kafka\x20deployment...','CronH','CIMTj','isVPCPresent','options','turboscale-managed-identity-','xIhLJ','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Namespace\x20created','grid','zPRTG','Found\x20VPC:\x20','jUEpF','Cluster\x20','YaQCG','dzuoo','route53','region','clusterRegion','vMyXb','defaultGridProfile','length','sDlJT','pQRge','jNyWV','tIHUn','KQPup','MjgCk','non-aws-azure-cluster','mZpsu','<UsernamePlaceholder>','WebSocket','Vmbgk','DLhbT','parse','https','AvvQI','VVgMj','argv','CLI\x20run\x20started','49260fCnEea','FEWIv','redisPassword','ZGbBg','exit','true','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','pkQGB','VPsvC','\x20are\x20not\x20present\x20in\x20VPC:\x20','XYKie','Cluster\x20created\x20successfully','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','ZfKye','dxiAY','Subnets:\x20','khgmH','osUZD','jwfPF','/packages/cli/create-grid-checks','1|0|4|2|3','command','JkrQz','Added\x20Secret\x20Mapping','stfDC','gjWqs','3698563fMCrWL','jrBtX','fpdVG','subnets','gCIzK','zOHMD','wzGPN','INFO','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','<PasswordPlaceholder>','createOtherResources','KIfLi','namespace','FDgEa','name','nJeJs','woopU','JSIJr','rzhGF','dKUFf','ELJFI','zIFHz','KiXvm','Plnjb','BpCDx','bstackUsername','includes','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','UkRNzNYCBU','142EPQGee','hLLgc','info','zLLYk','reconnecting-websocket','setupHubHa','create-grid-checks-grid-already-exists','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ingress-nginx-controller','Adding\x20Websocket\x20listeners','Tdzmi','CHYAN','clusterAutoupgrade','CLI\x20run\x20finished:\x20','iJQyS','eDpjt','Deleting\x20the\x20CloudFormation\x20Stacks','azurefile-csi-premium','loadAll','connectionTimeout','SUqZc','password','kafkaUploader','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ttbhl','../../utils/instrumentationUtils','stringify','EddIU','14|11|5|12|3|6|9|7|2|15|1|0|10|8|4|13','hubharesources','\x20using\x20\x27','HFNdz','zkVVr','hFbRZ','HSiDX','RcfcG','readFileAsync','8ghEHTK','uFunu','FHSOy','CImLa','HOgpM','handler','OOSUs','gridProfile','iYcyQ','bcROY','IfJBa','WCdRe','message','dkWFc','PeFXE','3552048pbTGND','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','split','rMxRD','skipTlsCertVerify'];a9_0x6e2b=function(){return _0x52a1e5;};return a9_0x6e2b();}(function(_0xa16c70,_0x51fc24){const _0x4887df=a9_0x4d1d,_0x2fdca8=_0xa16c70();while(!![]){try{const _0x2b9e05=-parseInt(_0x4887df(0x1e3))/0x1*(parseInt(_0x4887df(0x25e))/0x2)+-parseInt(_0x4887df(0x193))/0x3*(-parseInt(_0x4887df(0x2ad))/0x4)+-parseInt(_0x4887df(0x227))/0x5*(-parseInt(_0x4887df(0x155))/0x6)+-parseInt(_0x4887df(0x1c5))/0x7*(parseInt(_0x4887df(0x283))/0x8)+parseInt(_0x4887df(0x292))/0x9+parseInt(_0x4887df(0x141))/0xa+-parseInt(_0x4887df(0x241))/0xb;if(_0x2b9e05===_0x51fc24)break;else _0x2fdca8['push'](_0x2fdca8['shift']());}catch(_0x6a1dbd){_0x2fdca8['push'](_0x2fdca8['shift']());}}}(a9_0x6e2b,0x5a6bf));const fs=require('fs'),ws=require('ws'),path=require(a9_0x90a152(0x144)),yaml=require(a9_0x90a152(0x1e0)),ReconnectingWebSocket=require(a9_0x90a152(0x262)),got=require(a9_0x90a152(0x196)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x90a152(0x194)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x90a152(0x180)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x90a152(0x2b0)),{createK8sClient}=require(a9_0x90a152(0x16a)),{sendInstrumentationEvent}=require(a9_0x90a152(0x277));function a9_0x4d1d(_0x53c906,_0x17e93c){const _0x6e2b32=a9_0x6e2b();return a9_0x4d1d=function(_0x4d1d69,_0x1c0f27){_0x4d1d69=_0x4d1d69-0xfa;let _0x4439a4=_0x6e2b32[_0x4d1d69];return _0x4439a4;},a9_0x4d1d(_0x53c906,_0x17e93c);}exports[a9_0x90a152(0x23c)]=a9_0x90a152(0x208),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x90a152(0x1c7)]=function(_0x42cc9c){const _0x3a19b2=a9_0x90a152,_0x1419ab={};_0x1419ab['YaQCG']=_0x3a19b2(0x275),_0x1419ab['SUqZc']=_0x3a19b2(0x178),_0x1419ab['jUEpF']=_0x3a19b2(0x1ac),_0x1419ab[_0x3a19b2(0x1db)]=_0x3a19b2(0x1e2),_0x1419ab['CIMTj']=_0x3a19b2(0x265),_0x1419ab[_0x3a19b2(0x1c9)]=_0x3a19b2(0x16c),_0x1419ab[_0x3a19b2(0x24e)]=_0x3a19b2(0x1fa),_0x1419ab['FHSOy']=_0x3a19b2(0x1b3),_0x1419ab['VuJGU']=_0x3a19b2(0x10c),_0x1419ab['ELJFI']=_0x3a19b2(0x109),_0x1419ab[_0x3a19b2(0x21a)]=_0x3a19b2(0x25c),_0x1419ab['hmsUG']=_0x3a19b2(0x1f2);const _0x2a6ea2=_0x1419ab,_0x1f09b1={};_0x1f09b1[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x20d)],_0x1f09b1[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x4834f6={};_0x4834f6[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x20b)],_0x4834f6[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x2035ea={};_0x2035ea['description']=_0x2a6ea2[_0x3a19b2(0x1db)],_0x2035ea[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x41c49c={};_0x41c49c[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x201)],_0x41c49c[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x29a6d2={};_0x29a6d2['description']=_0x2a6ea2[_0x3a19b2(0x1c9)],_0x29a6d2[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x342213={};_0x342213[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x24e)],_0x342213['type']=_0x2a6ea2[_0x3a19b2(0x272)];const _0xa61ebc={};_0xa61ebc[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x285)],_0xa61ebc['type']=_0x2a6ea2[_0x3a19b2(0x1a9)],_0xa61ebc['default']=![];const _0x86049d={};_0x86049d[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x255)],_0x86049d['type']=_0x2a6ea2['VuJGU'],_0x86049d[_0x3a19b2(0x2a0)]=![];const _0x5d6969={};_0x5d6969['description']=_0x2a6ea2[_0x3a19b2(0x21a)],_0x5d6969['type']=_0x2a6ea2[_0x3a19b2(0x1a9)],_0x5d6969[_0x3a19b2(0x2a0)]=![];const _0x4bc9e2={};return _0x4bc9e2[_0x3a19b2(0x1b5)]=_0x1f09b1,_0x4bc9e2[_0x3a19b2(0x1f3)]=_0x4834f6,_0x4bc9e2[_0x3a19b2(0x1e1)]=_0x2035ea,_0x4bc9e2[_0x3a19b2(0x15e)]=_0x41c49c,_0x4bc9e2['region']=_0x29a6d2,_0x4bc9e2[_0x3a19b2(0x119)]=_0x342213,_0x4bc9e2['skip-tls-cert-verify']=_0xa61ebc,_0x4bc9e2[_0x3a19b2(0x168)]=_0x86049d,_0x4bc9e2[_0x3a19b2(0x15d)]=_0x5d6969,_0x42cc9c[_0x3a19b2(0x18a)](HELP_HEADER_MESSAGE[_0x3a19b2(0x17c)])[_0x3a19b2(0x110)](HELP_FOOTER_MESSAGE)[_0x3a19b2(0x203)](_0x4bc9e2)[_0x3a19b2(0x1f2)](_0x2a6ea2['hmsUG'])['argv'];},exports[a9_0x90a152(0x288)]=async function(_0x59035d){const _0x188cfc=a9_0x90a152,_0x4025d7={'IDmne':'premium-rwo','VlZcf':_0x188cfc(0x27a),'vPOqt':function(_0x226687,_0x1118a3,_0x3e0afe,_0x1e1537,_0xe2a390,_0x5a13fd,_0x235120,_0x5b85b1,_0x219632,_0x4138de,_0x154331,_0x44e7c9,_0x539ac3){return _0x226687(_0x1118a3,_0x3e0afe,_0x1e1537,_0xe2a390,_0x5a13fd,_0x235120,_0x5b85b1,_0x219632,_0x4138de,_0x154331,_0x44e7c9,_0x539ac3);},'osUZD':function(_0x6398c6,_0x4fe56c){return _0x6398c6!==_0x4fe56c;},'AJdcs':function(_0x571294,_0xc7c24e){return _0x571294(_0xc7c24e);},'kZAZI':_0x188cfc(0x23b),'vHOEE':_0x188cfc(0x166),'FOmps':_0x188cfc(0x187),'UUPJK':_0x188cfc(0x1c6),'Vmbgk':_0x188cfc(0x25d),'gDckk':_0x188cfc(0x275),'xZPFK':_0x188cfc(0x178),'Xhmjn':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Ardhb':_0x188cfc(0x1e2),'upvrx':_0x188cfc(0x265),'KiXvm':_0x188cfc(0x16c),'KQPup':_0x188cfc(0x1fa),'DFMNh':_0x188cfc(0x1b3),'VSAhp':_0x188cfc(0x10c),'wzGPN':_0x188cfc(0x109),'PeFXE':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','mdLug':_0x188cfc(0x1f2),'jrBtX':_0x188cfc(0x222),'ugNjs':_0x188cfc(0x22c),'CHYAN':_0x188cfc(0x2a0),'OOSUs':_0x188cfc(0x106),'PhLMM':'warn','pQRge':function(_0x6f9ef4,_0x427179){return _0x6f9ef4===_0x427179;},'qlRxJ':'5|4|6|8|2|1|7|3|0','YwZmI':_0x188cfc(0x226),'GZvuH':_0x188cfc(0x174),'tSlND':_0x188cfc(0x26f),'stfDC':_0x188cfc(0x12b),'RsfZN':function(_0x3254cc){return _0x3254cc();},'bOnrJ':function(_0x2db717,_0x3ec464){return _0x2db717===_0x3ec464;},'Jhzoe':'ZVEbp','dnAec':_0x188cfc(0x18d),'jNyWV':function(_0x38b50b,_0x4bfbc2,_0x4ce3a5,_0x288cb8,_0x42201a,_0x35f624,_0x1e4e67){return _0x38b50b(_0x4bfbc2,_0x4ce3a5,_0x288cb8,_0x42201a,_0x35f624,_0x1e4e67);},'bpRUK':'create-grid-called','iPbgq':'init-not-called','bEHhL':function(_0x2209d4){return _0x2209d4();},'kgEML':_0x188cfc(0x21d),'hwuYr':_0x188cfc(0x24a),'gHUZU':_0x188cfc(0x267),'GbTGd':function(_0x20f68a,_0x1ab211){return _0x20f68a===_0x1ab211;},'RVFWL':_0x188cfc(0x138),'RwYhs':_0x188cfc(0x1a1),'ywcRr':function(_0x121933,_0x4a6c5a){return _0x121933!==_0x4a6c5a;},'RicLw':_0x188cfc(0x205),'CHgeL':_0x188cfc(0x259),'xruPk':_0x188cfc(0x103),'vKDle':function(_0x38b526,_0x28a715,_0x2eae71,_0x424507,_0x4ec76c,_0x3859d0,_0x1d5dd3,_0x535e05){return _0x38b526(_0x28a715,_0x2eae71,_0x424507,_0x4ec76c,_0x3859d0,_0x1d5dd3,_0x535e05);},'yKfwz':_0x188cfc(0x14c),'hFbRZ':function(_0x5c6dc9,_0x432dc0){return _0x5c6dc9===_0x432dc0;},'sDlJT':_0x188cfc(0x132),'VVgMj':_0x188cfc(0x206),'MdVqz':function(_0x24409b,_0x247989,_0x1261f,_0x1f2fa7,_0x54d348,_0x170b38,_0x50812c,_0x27248e){return _0x24409b(_0x247989,_0x1261f,_0x1f2fa7,_0x54d348,_0x170b38,_0x50812c,_0x27248e);},'LBEIm':_0x188cfc(0x21b),'Plnjb':'ARJSE','KOzpb':_0x188cfc(0x24c),'yegsN':'jLIAT','EWIqm':_0x188cfc(0x28d),'wkBdW':_0x188cfc(0x1ec),'xZTBm':'GET','LiwsM':function(_0x698ee7,_0x5bfaf8,_0x22ed35){return _0x698ee7(_0x5bfaf8,_0x22ed35);},'rzhGF':'NCMrG','cPiXA':_0x188cfc(0x190),'bcROY':function(_0x18b0eb,_0x3eea97,_0x480a72){return _0x18b0eb(_0x3eea97,_0x480a72);},'nPkzP':function(_0x4220c8,_0x191871){return _0x4220c8===_0x191871;},'xiehK':function(_0x5a49f0,_0x2a1a6d){return _0x5a49f0!==_0x2a1a6d;},'Aasoh':_0x188cfc(0x197),'eZKzj':_0x188cfc(0x13a),'CvtvW':_0x188cfc(0x22d),'PbnDg':function(_0x3ea1c4,_0xf8ab6f,_0x44ac90,_0x59d108,_0x4c8925,_0x6f92d1,_0x457b7c,_0x10549c){return _0x3ea1c4(_0xf8ab6f,_0x44ac90,_0x59d108,_0x4c8925,_0x6f92d1,_0x457b7c,_0x10549c);},'zLLYk':_0x188cfc(0x160),'fCTxU':function(_0x2bd3b2,_0x590e34){return _0x2bd3b2!==_0x590e34;},'FjhMX':_0x188cfc(0x18c),'PzRzG':_0x188cfc(0x1a8),'pypsr':_0x188cfc(0x249),'yyMSo':_0x188cfc(0x12e),'MaqED':function(_0x3c1b92,_0x343ef1){return _0x3c1b92!==_0x343ef1;},'mQHsL':function(_0x434acc,_0x3d29d){return _0x434acc!==_0x3d29d;},'rNEJH':_0x188cfc(0x161),'eWuXd':'EnJkN','QAaFN':'create-grid-checks-non-200','dzuoo':_0x188cfc(0x10d),'TyJMv':'Bqwvz','nHAox':_0x188cfc(0x2a2),'JSIJr':_0x188cfc(0x264),'mCQHG':function(_0x47d1b8,_0x3501ec){return _0x47d1b8!==_0x3501ec;},'iuhCC':_0x188cfc(0x21c),'QhEYy':_0x188cfc(0x1f9),'QQCNw':_0x188cfc(0x1c0),'psFda':function(_0xdb7d1e,_0x13cdcb){return _0xdb7d1e===_0x13cdcb;},'KynNb':function(_0x4b6f86,_0x4055ac){return _0x4b6f86===_0x4055ac;},'IeGzL':'qVFXI','VJNfd':function(_0x5c1042,_0x3b4eb0){return _0x5c1042===_0x3b4eb0;},'lUrhl':function(_0x59df03,_0x2dace7){return _0x59df03!==_0x2dace7;},'hPNbg':_0x188cfc(0x254),'VlekE':'zPvrE','eDoKu':_0x188cfc(0x15b),'DLhbT':function(_0x44f57b,_0x454290,_0x322e2a,_0x1db284,_0x544a34,_0x2744d4,_0x5333bb,_0x1928d7){return _0x44f57b(_0x454290,_0x322e2a,_0x1db284,_0x544a34,_0x2744d4,_0x5333bb,_0x1928d7);},'Wsajc':_0x188cfc(0x1f0),'BVKpa':_0x188cfc(0x2a4),'XlIjK':function(_0x59bdf2,_0x3e3cdf){return _0x59bdf2===_0x3e3cdf;},'OxiZR':'NOswt','TEJcf':_0x188cfc(0x2a8),'arheT':function(_0x426459,_0x11ef60){return _0x426459===_0x11ef60;},'Tdzmi':'pVidW','SDGCO':function(_0x2cbf27,_0x35f85c,_0x3e2cbc,_0x16dac4,_0x4c8035,_0x4f951b,_0x3b8dbb,_0x402f2d,_0x56432e,_0x4548f0,_0x32bd2a,_0x1cdef1,_0x5bb9a6){return _0x2cbf27(_0x35f85c,_0x3e2cbc,_0x16dac4,_0x4c8035,_0x4f951b,_0x3b8dbb,_0x402f2d,_0x56432e,_0x4548f0,_0x32bd2a,_0x1cdef1,_0x5bb9a6);},'pkQGB':_0x188cfc(0xff),'HFNdz':_0x188cfc(0x2ab),'ucmUK':function(_0x180570,_0x429efb){return _0x180570===_0x429efb;},'UqVME':function(_0x2e1552,_0x5dc138){return _0x2e1552!==_0x5dc138;},'ZfKye':_0x188cfc(0x12d),'iJQyS':_0x188cfc(0x19e),'iWred':function(_0x1f5ad3,_0x1b557b){return _0x1f5ad3===_0x1b557b;},'zIFHz':_0x188cfc(0x246),'jwfPF':_0x188cfc(0x1fb),'ArwOZ':_0x188cfc(0x107),'jDbVz':function(_0x211d2d,_0x3c9c57){return _0x211d2d(_0x3c9c57);},'EddIU':function(_0x1c532c,_0x1fbb9b){return _0x1c532c!==_0x1fbb9b;},'XQuTv':_0x188cfc(0x159),'EfqKc':_0x188cfc(0x152),'WCdRe':_0x188cfc(0x131),'uaDEt':function(_0x4d8081,_0x239834,_0x1358de,_0x55268a,_0x36d210,_0x5e65d0,_0x4babc7){return _0x4d8081(_0x239834,_0x1358de,_0x55268a,_0x36d210,_0x5e65d0,_0x4babc7);},'dLezo':_0x188cfc(0x26d),'rtswB':_0x188cfc(0x231),'HWESu':function(_0xd72714,_0x8fb1d0){return _0xd72714!==_0x8fb1d0;},'TqqJY':_0x188cfc(0x28b),'HDspD':_0x188cfc(0x27e),'tOPTU':'qglMS','khgmH':_0x188cfc(0x147),'GEydX':function(_0x58706a,_0x864557){return _0x58706a!=_0x864557;},'wYCvB':function(_0x4b2cc2,_0x3358c9){return _0x4b2cc2!==_0x3358c9;},'FEWIv':function(_0x249d03,_0x29a6e9){return _0x249d03>_0x29a6e9;},'VPsvC':_0x188cfc(0xfc),'EOojX':'pre-spawned-subnets-not-selected','AlhND':function(_0x1a9817,_0xdbd7a){return _0x1a9817===_0xdbd7a;},'gQdxN':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','FaAnI':'pre-spawned-invalid-vpc','CJKCv':function(_0x1187e8,_0x118841){return _0x1187e8===_0x118841;},'uFunu':_0x188cfc(0x1ea),'rkfMR':'2|1|3|4|0','uOFqk':_0x188cfc(0x232),'dkWFc':_0x188cfc(0x121),'HOgpM':function(_0x162d73,_0x290155,_0x1f91d7){return _0x162d73(_0x290155,_0x1f91d7);},'POTtB':function(_0x2b019b,_0x18f9c2){return _0x2b019b===_0x18f9c2;},'jVYqB':function(_0x36a87e,_0x227985){return _0x36a87e===_0x227985;},'uhYNw':'Creating\x20Hub\x20HA\x20resources','zPRTG':function(_0x556d2f,_0x1617cf,_0x1d78e1){return _0x556d2f(_0x1617cf,_0x1d78e1);},'HbHDy':_0x188cfc(0x145),'JOFmN':_0x188cfc(0x11e),'gCIzK':_0x188cfc(0x11c),'AcAua':_0x188cfc(0x27b),'ZGbBg':'browserstack-secret.yaml','dxiAY':_0x188cfc(0x15a),'JkrQz':function(_0x2f5de1,_0x3f538c){return _0x2f5de1(_0x3f538c);},'MjtTK':function(_0xf8ba75,_0x16bb4b){return _0xf8ba75(_0x16bb4b);},'JhOHN':function(_0x21323a,_0x3bb791){return _0x21323a(_0x3bb791);},'RtqJp':function(_0x55ffaa,_0x19f9e9,_0x357d2c){return _0x55ffaa(_0x19f9e9,_0x357d2c);},'tjdDs':_0x188cfc(0x23e),'jzqrf':_0x188cfc(0x1bd),'tIHUn':function(_0xb48b37,_0x166201){return _0xb48b37===_0x166201;},'RcfcG':'Adding\x20Redis\x20deployment...','XlIUJ':'bitnami-redis.yaml','rMxRD':'Added\x20Redis\x20deployment.','zoyNl':_0x188cfc(0x1ff),'fpdVG':'bitnami-kafka.yaml','GEuIt':_0x188cfc(0x1b1),'UrfnI':_0x188cfc(0x108),'nONKX':_0x188cfc(0x143),'CImLa':function(_0x577db2,_0x516e8e){return _0x577db2===_0x516e8e;},'GhgFJ':'Added\x20Turboscale\x20Uploader\x20deployment.','woopU':'Created\x20Hub\x20HA\x20resources','KttsD':_0x188cfc(0x1b0),'xlBEq':'2|4|1|0|3','srpeG':'hub-ha-deployments-failed','fcKSc':_0x188cfc(0x172),'gjWqs':_0x188cfc(0x2ac),'GKGiF':_0x188cfc(0x114),'UsNqE':_0x188cfc(0x207),'BwoNI':_0x188cfc(0x15f),'esfNw':_0x188cfc(0x163),'AioCt':function(_0x400e57,_0x199956){return _0x400e57===_0x199956;},'NhPzT':function(_0x708a3,_0x44af8c,_0x2aa028,_0x28398a,_0x3f43dd,_0x3b084d,_0x3b6086,_0x15fd70,_0x2d3be6,_0xc3eafa,_0x7c51ed){return _0x708a3(_0x44af8c,_0x2aa028,_0x28398a,_0x3f43dd,_0x3b084d,_0x3b6086,_0x15fd70,_0x2d3be6,_0xc3eafa,_0x7c51ed);},'YZtgH':_0x188cfc(0x1ae),'flAIz':_0x188cfc(0x170),'HSiDX':function(_0x146dcf,_0x527e61,_0x482fef,_0x2671b6,_0x180212){return _0x146dcf(_0x527e61,_0x482fef,_0x2671b6,_0x180212);},'bjxHX':function(_0x375a19,_0x211fd3,_0x222dd5){return _0x375a19(_0x211fd3,_0x222dd5);},'XKede':_0x188cfc(0x1fd),'FPNoE':_0x188cfc(0x266),'ttbhl':_0x188cfc(0x13e),'NibxD':function(_0x47897c,_0x5eeeb9,_0x385f04){return _0x47897c(_0x5eeeb9,_0x385f04);},'mDSBJ':function(_0x39e3d4,_0x3a1250){return _0x39e3d4===_0x3a1250;},'lrpSF':_0x188cfc(0x101),'AvvQI':_0x188cfc(0x1e8),'hLLgc':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','wpSnF':function(_0x410958,_0x371101,_0x47bdcb,_0x1cf26a,_0x5e1674,_0x53c0ec,_0x504cac,_0x419bb0){return _0x410958(_0x371101,_0x47bdcb,_0x1cf26a,_0x5e1674,_0x53c0ec,_0x504cac,_0x419bb0);},'nJeJs':_0x188cfc(0x154),'CronH':function(_0x5a81ef,_0x3113bb){return _0x5a81ef!==_0x3113bb;},'vMyXb':_0x188cfc(0x13c),'gholt':function(_0x25e56c,_0x5c1c0b){return _0x25e56c===_0x5c1c0b;},'aTCiL':_0x188cfc(0x26e),'VhKUG':function(_0x4562b5,_0x2a7972,_0x1b2a56,_0x5db382,_0x4e723a,_0x34e926){return _0x4562b5(_0x2a7972,_0x1b2a56,_0x5db382,_0x4e723a,_0x34e926);},'gdFRV':function(_0x268e1f,_0x2dbb26,_0x5ce690,_0x105aef,_0x4587c5,_0x5255f5,_0x2ef0c3){return _0x268e1f(_0x2dbb26,_0x5ce690,_0x105aef,_0x4587c5,_0x5255f5,_0x2ef0c3);},'gZCbf':_0x188cfc(0x1b7)};let _0x173922=![],_0x4445f9=![],_0x56984f,_0x484576,_0x3193f,_0x4b2408,_0x1098f6,_0x4d57f5,_0xe682a9,_0x5c6677,_0x8379d7,_0x5f52e2,_0x38ea37,_0x40ff99,_0x863c26,_0x1480b4,_0x25f00e=0x1,_0x11203a=0xe;try{global_registry[_0x188cfc(0x14b)]=_0x4025d7[_0x188cfc(0x1bf)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x188cfc(0xfa)](_0x4025d7[_0x188cfc(0x1bf)](getCredentialsPath))&&(_0x4025d7['bOnrJ'](_0x4025d7[_0x188cfc(0x1f5)],_0x4025d7[_0x188cfc(0x1f5)])?(console['error'](_0x4025d7['dnAec']),await _0x4025d7[_0x188cfc(0x217)](sendInstrumentationEvent,_0x59035d,_0x4025d7[_0x188cfc(0x151)],messageTypes['ERROR'],_0x4025d7[_0x188cfc(0x165)],null,_0x59035d),process[_0x188cfc(0x22b)](0x1)):_0x468ab6=_0x4025d7['IDmne']);await _0x4025d7[_0x188cfc(0x217)](sendInstrumentationEvent,_0x59035d,_0x4025d7[_0x188cfc(0x151)],messageTypes[_0x188cfc(0x248)],null,null,_0x59035d);const _0x1b19ae=JSON[_0x188cfc(0x221)](fs[_0x188cfc(0x13b)](_0x4025d7['bEHhL'](getCredentialsPath)));global_registry['bstackUsername']=_0x1b19ae[_0x188cfc(0x2ac)][_0x188cfc(0x1dc)],global_registry[_0x188cfc(0x116)]=_0x1b19ae[_0x188cfc(0x2ac)][_0x188cfc(0x273)];const _0x5dd73c=WS_ENDPOINT[_0x188cfc(0x189)](_0x4025d7[_0x188cfc(0x1ba)],_0x1b19ae['Browserstack'][_0x188cfc(0x1dc)])[_0x188cfc(0x189)](_0x4025d7[_0x188cfc(0x1cb)],_0x1b19ae['Browserstack']['password']),_0x35c9c9={};_0x35c9c9[_0x188cfc(0x21e)]=ws,_0x35c9c9[_0x188cfc(0x271)]=0x36ee80,_0x40ff99=new ReconnectingWebSocket(_0x5dd73c,[],_0x35c9c9),logger[_0x188cfc(0x17d)](_0x4025d7[_0x188cfc(0x1b4)]),webSocketUtils['addListeners'](_0x40ff99,_0x59035d[_0x188cfc(0x1d2)],_0x59035d['password']);const _0x164413=_0x59035d[_0x188cfc(0x1df)]||DEFAULT_GRID_NAME;if(_0x59035d[_0x188cfc(0x1be)]||_0x59035d[_0x188cfc(0xfb)]||_0x59035d[_0x188cfc(0x210)]){if(_0x4025d7['GbTGd'](_0x4025d7[_0x188cfc(0x135)],_0x4025d7[_0x188cfc(0x2a6)])){const _0x471694=_0x4025d7[_0x188cfc(0x14e)]['split']('|');let _0x3fbf94=0x0;while(!![]){switch(_0x471694[_0x3fbf94++]){case'0':_0x387475=_0x2fca93[_0x188cfc(0x126)];continue;case'1':_0x47b1e9=_0x13ea69[_0x188cfc(0x1a0)];continue;case'2':_0xf85cd=_0x50e70f[_0x188cfc(0x11a)];continue;case'3':_0x5395e8=_0x4cf8f2[_0x188cfc(0x179)];continue;case'4':_0x4025d7['vPOqt'](_0x2c3e83,_0x351e4f,_0x564f6e,_0x4703c4,_0x2b0e1a,_0xfcec18,_0xae2dfb,_0x27deeb,_0x55973f,_0x2e2761,_0x51e767,_0x560ca5,_0x2d3148['clusterAutoupgrade']);continue;case'5':const _0x46edf1={};_0x46edf1[_0x188cfc(0x297)]=_0x50e95b[_0x188cfc(0x1bc)],_0x46edf1['message']=_0x228a99,_0x31dd87[_0x188cfc(0x11f)](_0x1386f7,_0x46edf1);continue;case'6':_0x178f6a=null;continue;case'7':_0x37c789=null;continue;case'8':_0x4025d7[_0x188cfc(0x238)](_0x6a14e0[_0x188cfc(0x29e)],_0x328a20)&&_0x99303f[_0x188cfc(0x29e)]&&(_0x1c1d58['isPrivateGrid']=!![]);continue;case'9':_0x2e4724=null;continue;case'10':_0x5f59e3=_0x32bbbf['browserVersion'];continue;case'11':_0x161dd7[_0x188cfc(0x260)](_0x1c1c91);continue;case'12':_0x436ffe=_0x21da3f[_0x188cfc(0x299)];continue;case'13':_0x1ea70f[_0x188cfc(0x104)]&&_0x4025d7[_0x188cfc(0x12c)](_0x4b0d49,_0x585b80[_0x188cfc(0x274)]);continue;case'14':_0x3df1a4='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0xd86785;continue;case'15':_0x1259f3=_0x42cf70[_0x188cfc(0x186)];continue;}break;}}else{if(!(_0x59035d[_0x188cfc(0x1be)]&&_0x59035d[_0x188cfc(0xfb)]&&_0x59035d['region'])){if(_0x4025d7[_0x188cfc(0x13f)](_0x4025d7['RicLw'],_0x4025d7['CHgeL']))_0x56984f=_0x4025d7[_0x188cfc(0x19b)],await _0x4025d7['vKDle'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7['yKfwz'],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1);else{const _0x577e1e=_0x4025d7[_0x188cfc(0x1cc)][_0x188cfc(0x294)]('|');let _0x2759b8=0x0;while(!![]){switch(_0x577e1e[_0x2759b8++]){case'0':_0x21f15e[_0x188cfc(0x1ca)]=_0x4025d7[_0x188cfc(0x1b8)];continue;case'1':_0x58a7af['info'](_0x4025d7[_0x188cfc(0x1d9)]);continue;case'2':_0x17c676[_0x188cfc(0x158)]=_0x4025d7[_0x188cfc(0x1f7)];continue;case'3':_0x311caa[_0x188cfc(0x104)]=!![];continue;case'4':_0x480e89[_0x188cfc(0x229)]=_0x4025d7[_0x188cfc(0x21f)];continue;}break;}}}if(![AWS,AZURE,GCP][_0x188cfc(0x25b)](_0x59035d[_0x188cfc(0xfb)][_0x188cfc(0x1de)]())){if(_0x4025d7[_0x188cfc(0x27f)](_0x4025d7[_0x188cfc(0x215)],_0x4025d7[_0x188cfc(0x215)]))_0x56984f=_0x4025d7[_0x188cfc(0x224)],await _0x4025d7[_0x188cfc(0x19a)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x1f4)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1);else{const _0x5872be={};_0x5872be[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x129)],_0x5872be['type']=_0x4025d7[_0x188cfc(0x198)];const _0x59de48={};_0x59de48[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x1c2)],_0x59de48['type']=_0x4025d7[_0x188cfc(0x198)];const _0x52c089={};_0x52c089[_0x188cfc(0x136)]=_0x4025d7['Ardhb'],_0x52c089[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x50430f={};_0x50430f[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x1e6)],_0x50430f[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x22e495={};_0x22e495['description']=_0x4025d7[_0x188cfc(0x257)],_0x22e495[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x209ce3={};_0x209ce3[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x219)],_0x209ce3[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x415af4={};_0x415af4[_0x188cfc(0x136)]=_0x4025d7['DFMNh'],_0x415af4[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x2b1)],_0x415af4[_0x188cfc(0x2a0)]=![];const _0x31f619={};_0x31f619[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x247)],_0x31f619[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x2b1)],_0x31f619[_0x188cfc(0x2a0)]=![];const _0x5db46c={};_0x5db46c['description']=_0x4025d7[_0x188cfc(0x291)],_0x5db46c['type']=_0x4025d7['VSAhp'],_0x5db46c[_0x188cfc(0x2a0)]=![];const _0x7f931f={};return _0x7f931f[_0x188cfc(0x1b5)]=_0x5872be,_0x7f931f[_0x188cfc(0x1f3)]=_0x59de48,_0x7f931f[_0x188cfc(0x1e1)]=_0x52c089,_0x7f931f[_0x188cfc(0x15e)]=_0x50430f,_0x7f931f[_0x188cfc(0x210)]=_0x22e495,_0x7f931f[_0x188cfc(0x119)]=_0x209ce3,_0x7f931f[_0x188cfc(0x1b2)]=_0x415af4,_0x7f931f[_0x188cfc(0x168)]=_0x31f619,_0x7f931f[_0x188cfc(0x15d)]=_0x5db46c,_0x301680[_0x188cfc(0x18a)](_0x51543d[_0x188cfc(0x17c)])['epilogue'](_0x116cb3)[_0x188cfc(0x203)](_0x7f931f)[_0x188cfc(0x1f2)](_0x4025d7[_0x188cfc(0x133)])[_0x188cfc(0x225)];}}_0x59035d[_0x188cfc(0x29e)]&&_0x4025d7[_0x188cfc(0x2aa)](_0x59035d['privateGrid']['toLowerCase'](),_0x4025d7[_0x188cfc(0x137)])&&(_0x4025d7['hFbRZ'](_0x4025d7[_0x188cfc(0x258)],_0x4025d7[_0x188cfc(0x1d3)])?(_0x2300fe[_0x188cfc(0x210)]=_0x3fc2e5,_0x4487c8[_0x188cfc(0xfb)]=_0x19627d,_0x1d1ec1[_0x188cfc(0x10b)]=!![],_0x9a9e53[_0x188cfc(0x195)]=_0x36a6f4['clusterAutoupgrade']):global_registry[_0x188cfc(0x122)]=!![]);global_registry[_0x188cfc(0xfb)]=_0x59035d[_0x188cfc(0xfb)],global_registry['clusterRegion']=_0x59035d['region'],global_registry['clusterName']=_0x59035d[_0x188cfc(0x1be)];const _0x5d8556=await _0x4025d7[_0x188cfc(0x217)](getCloudProviderObject,_0x59035d['cloudProvider'],_0x59035d['clusterName'],_0x164413,_0x40ff99,webSocketUtils,_0x59035d),_0x46f61c=await _0x5d8556[_0x188cfc(0x1a6)]();!_0x46f61c?_0x4025d7[_0x188cfc(0x216)](_0x4025d7[_0x188cfc(0x17f)],_0x4025d7['yegsN'])?(logger[_0x188cfc(0x260)](_0x188cfc(0x16e)+_0x59035d['clusterName']+_0x188cfc(0x29d)),_0x173922=![],_0x4445f9=!![]):_0xbd94d1=null:_0x4025d7[_0x188cfc(0x13f)](_0x4025d7[_0x188cfc(0x1ad)],_0x4025d7['EWIqm'])?(_0x1af66f=_0x83c926[_0x188cfc(0x20f)],_0x3f1f93=_0x4025d7[_0x188cfc(0x242)]):_0x173922=!![],_0x3193f=_0x59035d[_0x188cfc(0x1be)],_0x484576=_0x59035d[_0x188cfc(0xfb)]['toLowerCase'](),_0x4b2408=_0x59035d[_0x188cfc(0x210)];}}else _0x59035d[_0x188cfc(0x28a)]&&(_0x4025d7[_0x188cfc(0x13f)](_0x4025d7[_0x188cfc(0x10f)],_0x4025d7['wkBdW'])?_0x4025d7['AJdcs'](_0x43aaca,_0x224a83['kafkaUploader']):global_registry['gridProfile']=_0x59035d[_0x188cfc(0x28a)]);global_registry[_0x188cfc(0x1df)]=_0x59035d['gridName'];const _0x5ec46a={'method':_0x4025d7['xZTBm'],'headers':_0x4025d7[_0x188cfc(0x10a)](getAuthHeader,_0x1b19ae[_0x188cfc(0x2ac)]['username'],_0x1b19ae[_0x188cfc(0x2ac)][_0x188cfc(0x273)]),'throwHttpErrors':![]},_0x4efb75={};_0x4efb75[_0x188cfc(0x1df)]=_0x164413;const _0x4d726d=_0x4efb75;_0x4445f9&&(_0x4025d7[_0x188cfc(0x216)](_0x4025d7[_0x188cfc(0x253)],_0x4025d7[_0x188cfc(0x253)])?(_0x4d726d[_0x188cfc(0x210)]=_0x4b2408,_0x4d726d[_0x188cfc(0xfb)]=_0x484576,_0x4d726d[_0x188cfc(0x10b)]=!![],_0x4d726d[_0x188cfc(0x195)]=_0x59035d[_0x188cfc(0x26a)]):_0x2a999a[_0x188cfc(0x28a)]=_0x22f1dc[_0x188cfc(0x28a)]);_0x59035d[_0x188cfc(0x26a)]&&(_0x4025d7[_0x188cfc(0x1c8)](_0x4025d7[_0x188cfc(0x2ae)],_0x4025d7['cPiXA'])?logger['info'](_0x4025d7[_0x188cfc(0x23f)]):_0x4ecbe5[_0x188cfc(0x260)](_0x188cfc(0x20a)+_0x1243f3+'\x20'));const _0xe9c7f=_0x188cfc(0x182)+AG_API_URL+_0x188cfc(0x23a),_0x1d6fdb={'searchParams':_0x4d726d,'throwHttpErrors':![],..._0x5ec46a},_0xbf83bb=_0x1d6fdb,_0x3ed7cf=await _0x4025d7[_0x188cfc(0x28c)](got,_0xe9c7f,_0xbf83bb);(_0x4025d7[_0x188cfc(0x1c8)](_0x3ed7cf,null)||_0x4025d7[_0x188cfc(0x1c3)](_0x3ed7cf,undefined))&&(_0x4025d7[_0x188cfc(0x120)](_0x4025d7['Aasoh'],_0x4025d7[_0x188cfc(0x17b)])?(_0x56984f=_0x4025d7['CvtvW'],await _0x4025d7[_0x188cfc(0x13d)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x261)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1)):_0x4025d7['AJdcs'](_0x4de9d8,_0x35f095[_0x188cfc(0x17a)]));if(_0x4025d7[_0x188cfc(0x2aa)](_0x3ed7cf[_0x188cfc(0x1da)],0x191)){if(_0x4025d7[_0x188cfc(0x1e5)](_0x4025d7[_0x188cfc(0x1d7)],_0x4025d7[_0x188cfc(0x19f)]))_0x56984f=_0x4025d7['pypsr'],await _0x4025d7[_0x188cfc(0x13d)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7['yyMSo'],_0x4025d7[_0x188cfc(0x188)]),logger['error'](_0x56984f),process[_0x188cfc(0x22b)](0x1);else throw new _0x523fb6('Cluster\x20'+_0x506b49+_0x188cfc(0x293));}if(_0x4025d7[_0x188cfc(0x19d)](_0x3ed7cf[_0x188cfc(0x1da)],0xc8)){if(_0x4025d7[_0x188cfc(0x105)](_0x4025d7[_0x188cfc(0x1b9)],_0x4025d7[_0x188cfc(0x140)]))_0x56984f=_0x188cfc(0x125)+JSON[_0x188cfc(0x278)](_0x3ed7cf['body']),await _0x4025d7[_0x188cfc(0x19a)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x18b)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process['exit'](0x1);else{const _0xdda081={'azure.workload.identity/use':_0x4025d7['ugNjs'],..._0x3d473b[0x0]['spec'][_0x188cfc(0x1ee)][_0x188cfc(0x2a9)][_0x188cfc(0x173)]};_0x11cd36[0x0][_0x188cfc(0x1c4)][_0x188cfc(0x1ee)][_0x188cfc(0x2a9)][_0x188cfc(0x173)]=_0xdda081,_0x9acf18[0x0][_0x188cfc(0x1c4)][_0x188cfc(0x1ee)][_0x188cfc(0x1c4)][_0x188cfc(0x128)]=_0x4025d7[_0x188cfc(0x269)];}}const _0x3f3ea4=JSON[_0x188cfc(0x221)](_0x3ed7cf[_0x188cfc(0x124)]),_0x4290e9={};_0x4290e9['type']=WS_EVENTS[_0x188cfc(0x1b6)],_0x4290e9[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x1aa)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x4290e9);const _0x43f6a1={};_0x43f6a1[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x43f6a1[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x20e)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x43f6a1);_0x3f3ea4[_0x188cfc(0x1d5)]&&(_0x4025d7[_0x188cfc(0x105)](_0x4025d7[_0x188cfc(0x113)],_0x4025d7[_0x188cfc(0x1f8)])?(_0x56984f=_0x188cfc(0x1d6)+_0x164413+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x4025d7[_0x188cfc(0x19a)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7['bpRUK'],_0x4025d7[_0x188cfc(0x252)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process['exit'](0x1)):_0x3ab798['isPrivateGrid']=!![]);const _0x569532=_0x3f3ea4[_0x188cfc(0x1ed)];let _0x33efa7=_0x569532[_0x3f3ea4[_0x188cfc(0x213)]];_0x59035d[_0x188cfc(0x28a)]&&(_0x4025d7[_0x188cfc(0x16f)](_0x4025d7['iuhCC'],_0x4025d7[_0x188cfc(0x1a4)])?_0xefd564=_0x4025d7[_0x188cfc(0x289)]:_0x33efa7=_0x569532[_0x59035d['gridProfile']]);global_registry[_0x188cfc(0x104)]=![];if(_0x59035d[_0x188cfc(0x19c)]){if(_0x4025d7[_0x188cfc(0x1c8)](_0x4025d7[_0x188cfc(0x11d)],_0x4025d7[_0x188cfc(0x11d)])){const _0x428fcc=_0x4025d7[_0x188cfc(0x10e)][_0x188cfc(0x294)]('|');let _0x49466d=0x0;while(!![]){switch(_0x428fcc[_0x49466d++]){case'0':global_registry['redisPassword']=_0x4025d7['Vmbgk'];continue;case'1':global_registry[_0x188cfc(0x1ca)]=_0x4025d7[_0x188cfc(0x1b8)];continue;case'2':global_registry[_0x188cfc(0x158)]=_0x4025d7[_0x188cfc(0x1f7)];continue;case'3':global_registry[_0x188cfc(0x104)]=!![];continue;case'4':logger[_0x188cfc(0x260)](_0x4025d7['FOmps']);continue;}break;}}else{const _0x15c6d1={};_0x15c6d1['type']=_0x3c28c2[_0x188cfc(0x1bc)],_0x15c6d1[_0x188cfc(0x28f)]=_0x188cfc(0x20c)+_0x247370+_0x188cfc(0x14d),_0x48e588['sendEventToBackend'](_0x49618e,_0x15c6d1,_0x4025d7[_0x188cfc(0x11b)]),_0x459849[_0x188cfc(0x260)](_0x188cfc(0x20c)+_0x2f02f0+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x540f62=!![];if(_0x4025d7[_0x188cfc(0x216)](_0x592afd,!![]))throw new _0x567fc8(_0x188cfc(0x20c)+_0x36b66a+_0x188cfc(0x293));}}if(_0x4025d7[_0x188cfc(0x142)](_0x173922,![])&&_0x4025d7[_0x188cfc(0x27f)](_0x4445f9,![])){if(_0x4025d7[_0x188cfc(0x115)](_0x4025d7[_0x188cfc(0x167)],_0x4025d7[_0x188cfc(0x167)])){_0x4025d7[_0x188cfc(0x127)](_0x33efa7,undefined)&&(_0x4025d7[_0x188cfc(0x1bb)](_0x4025d7[_0x188cfc(0x18f)],_0x4025d7['VlekE'])?(_0x56984f=_0x4025d7[_0x188cfc(0x2b3)],await _0x4025d7[_0x188cfc(0x220)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x139)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1)):_0x4df582[_0x188cfc(0x122)]=!![]);global_registry[_0x188cfc(0x2a1)]=_0x33efa7['id'],_0x56984f=_0x188cfc(0x16d)+_0x164413+_0x188cfc(0x27c)+_0x33efa7[_0x188cfc(0x24f)]+_0x188cfc(0x164),logger[_0x188cfc(0x260)](_0x56984f);const _0x7c8e69={};_0x7c8e69[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x7c8e69[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0x7c8e69),_0x484576=_0x33efa7[_0x188cfc(0xfb)],_0x3193f=_0x33efa7[_0x188cfc(0x1be)],_0x4b2408=_0x33efa7[_0x188cfc(0x210)],_0x1098f6=_0x33efa7[_0x188cfc(0x299)],_0x4d57f5=_0x33efa7[_0x188cfc(0x179)],_0xe682a9=_0x33efa7['vpc'],_0x5c6677=_0x33efa7[_0x188cfc(0x153)],_0x8379d7=_0x33efa7[_0x188cfc(0x244)],_0x5f52e2=_0x33efa7[_0x188cfc(0x11a)],_0x25f00e=_0x33efa7[_0x188cfc(0x186)],_0x11203a=_0x33efa7[_0x188cfc(0x1a0)],_0x863c26=_0x3f3ea4['hubVersion'],_0x1480b4=_0x3f3ea4[_0x188cfc(0x1ab)];if(_0xe682a9&&_0x4025d7[_0x188cfc(0x27f)](_0xe682a9['length'],0x0)){if(_0x4025d7['nPkzP'](_0x4025d7['BVKpa'],_0x4025d7[_0x188cfc(0x2af)]))_0xe682a9=null;else{const _0x1d1493=_0x4025d7['qlRxJ'][_0x188cfc(0x294)]('|');let _0x38dd21=0x0;while(!![]){switch(_0x1d1493[_0x38dd21++]){case'0':_0x1cbe31['browserVersion']=_0x56ffa5[_0x188cfc(0x1ab)];continue;case'1':_0x5a5100['clusterRegion']=_0x17a364;continue;case'2':_0x2b94c6['cloudProvider']=_0x2b98ec;continue;case'3':_0x1b08ad[_0x188cfc(0x126)]=_0x5094d2[_0x188cfc(0x126)];continue;case'4':_0x4f6c24=_0x188cfc(0x12f)+_0x14d254+_0x188cfc(0xfe)+_0x3ddf07+'\x27';continue;case'5':const _0x1c9bca={};_0x1c9bca[_0x188cfc(0x297)]=_0x2de7c6[_0x188cfc(0x1b6)],_0x1c9bca[_0x188cfc(0x28f)]=_0x4025d7['YwZmI'],_0x38ad70['sendEventToBackend'](_0x918997,_0x1c9bca);continue;case'6':_0x56addf[_0x188cfc(0x260)](_0x308ddb);continue;case'7':_0x1b393c[_0x188cfc(0x1be)]=_0x27d3ef;continue;case'8':const _0x8efc48={};_0x8efc48[_0x188cfc(0x297)]=_0x1cb53c[_0x188cfc(0x1bc)],_0x8efc48[_0x188cfc(0x28f)]=_0x436b17,_0x3d03d4['sendEventToBackend'](_0x3b4bb3,_0x8efc48);continue;}break;}}}_0x8379d7&&_0x4025d7[_0x188cfc(0x102)](_0x8379d7[_0x188cfc(0x214)],0x0)&&(_0x4025d7[_0x188cfc(0x1e5)](_0x4025d7[_0x188cfc(0x183)],_0x4025d7[_0x188cfc(0x146)])?_0x8379d7=null:(_0x530aec[_0x188cfc(0x260)](_0x188cfc(0x16e)+_0x4f5b9c[_0x188cfc(0x1be)]+_0x188cfc(0x29d)),_0x5a05fe=![],_0x54b162=!![]));if(_0x4025d7[_0x188cfc(0x16f)](_0x33efa7[_0x188cfc(0x29e)],undefined)&&_0x33efa7[_0x188cfc(0x29e)]){if(_0x4025d7[_0x188cfc(0x298)](_0x4025d7[_0x188cfc(0x268)],_0x4025d7[_0x188cfc(0x268)]))global_registry[_0x188cfc(0x122)]=!![];else{const _0x488570={};_0x488570[_0x188cfc(0x297)]=_0x14cc07[_0x188cfc(0x1bc)],_0x488570[_0x188cfc(0x28f)]=_0x4493ec,_0x50e17f['sendEventToBackend'](_0x7f96f4,_0x488570,_0x4025d7['GZvuH'],!![]);}}_0x4025d7['SDGCO'](updateGlobalRegistryWithConfig,_0x484576,_0x3193f,_0x4b2408,_0x1098f6,_0x4d57f5,_0x5f52e2,_0x33efa7,_0x863c26,_0x1480b4,_0x25f00e,_0x11203a,_0x59035d[_0x188cfc(0x26a)]),global_registry[_0x188cfc(0x104)]&&(_0x4025d7[_0x188cfc(0x102)](_0x4025d7[_0x188cfc(0x22e)],_0x4025d7[_0x188cfc(0x27d)])?_0x55b44d[_0x188cfc(0x174)](_0x188cfc(0x15c)+_0x4edf74+'\x20\x0a'+_0x526d22[_0x188cfc(0x278)](_0x2251bc[_0x188cfc(0x2b2)])):_0x4025d7[_0x188cfc(0x12c)](updateGlobalRegistryForHubHa,_0x3f3ea4[_0x188cfc(0x17a)]));}else _0x738a6c=_0x4025d7['tSlND'];}else{if(_0x4025d7[_0x188cfc(0x1a2)](_0x4445f9,!![])){if(_0x4025d7['UqVME'](_0x4025d7[_0x188cfc(0x234)],_0x4025d7[_0x188cfc(0x26c)])){_0x56984f=_0x188cfc(0x1d1)+_0x164413,logger[_0x188cfc(0x260)](_0x56984f);const _0x94b7d9={};_0x94b7d9['type']=WS_EVENTS[_0x188cfc(0x1bc)],_0x94b7d9['message']=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0x94b7d9),_0x1098f6=_0x33efa7[_0x188cfc(0x299)],_0x4d57f5=_0x33efa7[_0x188cfc(0x179)],_0xe682a9=null,_0x5c6677=null,_0x8379d7=null,_0x5f52e2=_0x33efa7[_0x188cfc(0x11a)],_0x25f00e=_0x33efa7[_0x188cfc(0x186)],_0x11203a=_0x33efa7[_0x188cfc(0x1a0)],_0x863c26=_0x3f3ea4[_0x188cfc(0x126)],_0x1480b4=_0x3f3ea4[_0x188cfc(0x1ab)],_0x4025d7[_0x188cfc(0x13f)](_0x33efa7['privateGrid'],undefined)&&_0x33efa7[_0x188cfc(0x29e)]&&(_0x4025d7[_0x188cfc(0x181)](_0x4025d7[_0x188cfc(0x256)],_0x4025d7['zIFHz'])?global_registry[_0x188cfc(0x122)]=!![]:_0x406e5a=null),_0x4025d7[_0x188cfc(0x175)](updateGlobalRegistryWithConfig,_0x484576,_0x3193f,_0x4b2408,_0x1098f6,_0x4d57f5,_0x5f52e2,_0x33efa7,_0x863c26,_0x1480b4,_0x25f00e,_0x11203a,_0x59035d[_0x188cfc(0x26a)]),global_registry[_0x188cfc(0x104)]&&(_0x4025d7[_0x188cfc(0x19d)](_0x4025d7[_0x188cfc(0x239)],_0x4025d7[_0x188cfc(0x14a)])?_0x4025d7[_0x188cfc(0x157)](updateGlobalRegistryForHubHa,_0x3f3ea4[_0x188cfc(0x274)]):_0x1a7b2c=_0xf4d9e4[_0x1357cc[_0x188cfc(0x28a)]]);}else _0xa81946[_0x188cfc(0x16b)]();}else{if(_0x4025d7[_0x188cfc(0x279)](_0x4025d7[_0x188cfc(0x2a3)],_0x4025d7['EfqKc'])){const _0x38995d=_0x4025d7[_0x188cfc(0x28e)][_0x188cfc(0x294)]('|');let _0x426a48=0x0;while(!![]){switch(_0x38995d[_0x426a48++]){case'0':global_registry[_0x188cfc(0x211)]=_0x4b2408;continue;case'1':const _0x396be4={};_0x396be4[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x396be4[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x396be4);continue;case'2':global_registry[_0x188cfc(0xfb)]=_0x484576;continue;case'3':_0x56984f='Spawning\x20the\x20grid\x20'+_0x164413+_0x188cfc(0xfe)+_0x3193f+'\x27';continue;case'4':logger[_0x188cfc(0x260)](_0x56984f);continue;case'5':const _0x1907af={};_0x1907af[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1b6)],_0x1907af[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x1aa)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x1907af);continue;case'6':global_registry[_0x188cfc(0x126)]=_0x3f3ea4[_0x188cfc(0x126)];continue;case'7':global_registry[_0x188cfc(0x1be)]=_0x3193f;continue;case'8':global_registry['browserVersion']=_0x3f3ea4[_0x188cfc(0x1ab)];continue;}break;}}else _0x43ab05=!![];}}const _0x3f809d=await _0x4025d7[_0x188cfc(0x1fc)](getCloudProviderObject,_0x484576,_0x3193f,_0x164413,_0x40ff99,webSocketUtils,_0x59035d);_0x4025d7['osUZD'](_0x484576,AZURE)&&(_0x4025d7[_0x188cfc(0x142)](_0x4025d7[_0x188cfc(0x176)],_0x4025d7['rtswB'])?_0x1d6576[_0x188cfc(0x122)]=!![]:_0x3f809d[_0x188cfc(0x16b)]());let _0xf51a1b;if(_0x4025d7[_0x188cfc(0x1c3)](_0x173922,![])){_0x56984f=_0x188cfc(0x118)+_0x4b2408+').';const _0x4c1836={};_0x4c1836['type']=WS_EVENTS['LOG'],_0x4c1836[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x4c1836),logger[_0x188cfc(0x260)](_0x56984f);const _0x4ce30f=await _0x3f809d['isClusterPresent']();if(_0x4ce30f){if(_0x4025d7['HWESu'](_0x4025d7[_0x188cfc(0x1fe)],_0x4025d7['TqqJY']))_0x98e6e9[_0x188cfc(0x260)]('Found\x20Subnets:\x20'+_0x23b858['stringify'](_0x5a2e86)+'\x20');else{const _0xf3d661={};_0xf3d661[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0xf3d661[_0x188cfc(0x28f)]='Cluster\x20'+_0x3193f+_0x188cfc(0x14d),webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0xf3d661,_0x4025d7[_0x188cfc(0x11b)]),logger[_0x188cfc(0x260)]('Cluster\x20'+_0x3193f+_0x188cfc(0x14d)),_0x173922=!![];if(_0x4025d7[_0x188cfc(0x115)](_0x4445f9,!![])){if(_0x4025d7[_0x188cfc(0x102)](_0x4025d7[_0x188cfc(0x134)],_0x4025d7[_0x188cfc(0x1a7)]))_0x22d949[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x23f)]);else throw new Error('Cluster\x20'+_0x3193f+_0x188cfc(0x293));}}}else{const _0x291723={};_0x291723[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x291723[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x237)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x291723),logger['info'](_0x4025d7['khgmH']);const _0xf74ff3=_0x4025d7[_0x188cfc(0x177)](_0xe682a9,null)&&_0x4025d7[_0x188cfc(0x100)](_0xe682a9,undefined),_0x37b454=_0x4025d7[_0x188cfc(0x177)](_0x8379d7,null)&&_0x4025d7[_0x188cfc(0x19d)](_0x8379d7,undefined)&&_0x4025d7[_0x188cfc(0x228)](_0x8379d7['length'],0x0);if(_0xf74ff3){_0x4025d7['psFda'](_0x37b454,![])&&(_0x56984f=_0x4025d7[_0x188cfc(0x22f)],await _0x4025d7['PbnDg'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x1ce)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));const _0x33ef59=await _0x3f809d[_0x188cfc(0x202)](_0xe682a9);_0x4025d7[_0x188cfc(0x162)](_0x33ef59,![])?(_0x56984f=_0x4025d7[_0x188cfc(0x12a)],await _0x4025d7[_0x188cfc(0x13d)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7['FaAnI'],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process['exit'](0x1)):logger[_0x188cfc(0x260)](_0x188cfc(0x20a)+_0xe682a9+'\x20');const _0x55716b=await _0x3f809d['isSubnetsValid'](_0x8379d7,_0xe682a9);_0x4025d7[_0x188cfc(0x1e9)](_0x55716b[0x0],![])?(_0x56984f=_0x188cfc(0x236)+JSON[_0x188cfc(0x278)](_0x55716b[0x1])+_0x188cfc(0x230)+_0xe682a9+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4025d7['PbnDg'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes['ERROR'],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x284)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1)):logger[_0x188cfc(0x260)]('Found\x20Subnets:\x20'+JSON[_0x188cfc(0x278)](_0x8379d7)+'\x20'),[_0xe682a9,_0x8379d7]=await _0x3f809d[_0x188cfc(0x117)](_0xe682a9,_0x8379d7);}else{const _0x49ebac=_0x4025d7[_0x188cfc(0x169)]['split']('|');let _0x4f7d47=0x0;while(!![]){switch(_0x49ebac[_0x4f7d47++]){case'0':logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x1f1)]);continue;case'1':logger['info'](_0x4025d7[_0x188cfc(0x290)]);continue;case'2':const _0x30c9af={};_0x30c9af[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x30c9af[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x290)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x30c9af);continue;case'3':[_0xe682a9,_0x8379d7]=await _0x3f809d[_0x188cfc(0x117)](_0xe682a9,_0x8379d7);continue;case'4':const _0x118d2b={};_0x118d2b[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x118d2b[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x1f1)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x118d2b);continue;}break;}}}}_0x173922&&_0x4025d7[_0x188cfc(0x298)](_0x484576,AZURE)&&(await _0x3f809d[_0x188cfc(0x2a5)](),await _0x3f809d[_0x188cfc(0x24b)]());const [_0x242a62,_0x10a794,_0x4f014e,_0x175b7d,_0x4a1584,_0x1f6914,_0x4a1cf1]=await _0x4025d7[_0x188cfc(0x287)](createK8sClient,_0x3f809d,_0x59035d[_0x188cfc(0x296)]);_0x4025d7['POTtB'](_0x173922,![])&&_0x4025d7[_0x188cfc(0x1dd)](_0x484576,AWS)&&(global_registry[_0x188cfc(0x1c1)]=!![],_0xf51a1b=await _0x3f809d['setupAutoscaler'](_0x242a62,_0x59035d));if(_0x4025d7[_0x188cfc(0x1a2)](_0x173922,![])&&global_registry[_0x188cfc(0x104)])try{await _0x3f809d[_0x188cfc(0x263)](_0x1f6914,_0x4a1cf1,_0x59035d,_0xe682a9,_0x8379d7);const _0x41481f={};_0x41481f[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x41481f[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x18e)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x41481f);!await _0x4025d7[_0x188cfc(0x209)](namespaceExists,_0x242a62,global_registry[_0x188cfc(0x1ca)])&&await _0x4025d7[_0x188cfc(0x10a)](createNamespace,_0x242a62,global_registry[_0x188cfc(0x1ca)]);logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x171)]);let _0x26c73d=await fs[_0x188cfc(0x282)](path[_0x188cfc(0x14f)](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7[_0x188cfc(0x245)],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7[_0x188cfc(0x22a)]),_0x4025d7[_0x188cfc(0x235)]);_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<RedisClientPassword>/g,_0x4025d7['JkrQz'](encodeBase64,global_registry[_0x188cfc(0x229)])),_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<KafkaClientPassword>/g,_0x4025d7[_0x188cfc(0x23d)](encodeBase64,global_registry[_0x188cfc(0x158)])),_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<BstackUsername>/g,_0x4025d7['MjtTK'](encodeBase64,global_registry[_0x188cfc(0x25a)])),_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<BstackAccessKey>/g,_0x4025d7[_0x188cfc(0x1d4)](encodeBase64,global_registry[_0x188cfc(0x116)]));const _0x2ba5fc=yaml[_0x188cfc(0x270)](_0x26c73d);await _0x4025d7['RtqJp'](kubeApply,_0x2ba5fc,_0x4a1cf1),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x199)]);let _0x44fcbc=_0x4025d7['jzqrf'];if(_0x4025d7['GbTGd'](_0x484576,AZURE))_0x44fcbc=_0x4025d7[_0x188cfc(0x192)];else _0x4025d7[_0x188cfc(0x218)](_0x484576,GCP)&&(_0x44fcbc=_0x4025d7['IDmne']);logger['info'](_0x4025d7[_0x188cfc(0x281)]);let _0x11adc2=await fs[_0x188cfc(0x282)](path['join'](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7[_0x188cfc(0x245)],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7['XlIUJ']),_0x4025d7[_0x188cfc(0x235)]);_0x11adc2=_0x11adc2['replace'](/<HubHaNameSpace>/g,global_registry[_0x188cfc(0x1ca)]),_0x11adc2=_0x11adc2[_0x188cfc(0x189)](/<StorageClassName>/g,_0x44fcbc);const _0x7375ad=yaml['loadAll'](_0x11adc2);await _0x4025d7['bcROY'](kubeApply,_0x7375ad,_0x4a1cf1),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x295)]),logger['info'](_0x4025d7[_0x188cfc(0x150)]);let _0x1994ab=await fs['readFileAsync'](path[_0x188cfc(0x14f)](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7['gCIzK'],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7[_0x188cfc(0x243)]),_0x4025d7['dxiAY']);_0x1994ab=_0x1994ab['replace'](/<HubHaNameSpace>/g,global_registry[_0x188cfc(0x1ca)]),_0x1994ab=_0x1994ab[_0x188cfc(0x189)](/<StorageClassName>/g,_0x44fcbc);const _0x8201a6=yaml[_0x188cfc(0x270)](_0x1994ab);await _0x4025d7['bcROY'](kubeApply,_0x8201a6,_0x4a1cf1),logger[_0x188cfc(0x260)](_0x4025d7['GEuIt']),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x156)]);let _0x16a037=await fs[_0x188cfc(0x282)](path['join'](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7[_0x188cfc(0x245)],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7[_0x188cfc(0x1cf)]),_0x4025d7[_0x188cfc(0x235)]);_0x16a037=_0x16a037[_0x188cfc(0x189)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x16a037=_0x16a037['replace'](/<HubHaNameSpace>/g,global_registry[_0x188cfc(0x1ca)]);const _0x2bc47e=yaml['loadAll'](_0x16a037);_0x4025d7['CImLa'](global_registry[_0x188cfc(0xfb)],AZURE)&&(_0x2bc47e[0x0][_0x188cfc(0x1c4)]['template'][_0x188cfc(0x2a9)][_0x188cfc(0x173)]={'azure.workload.identity/use':_0x4025d7[_0x188cfc(0x137)],..._0x2bc47e[0x0][_0x188cfc(0x1c4)]['template'][_0x188cfc(0x2a9)][_0x188cfc(0x173)]},_0x2bc47e[0x0][_0x188cfc(0x1c4)]['template'][_0x188cfc(0x1c4)]['serviceAccountName']=_0x4025d7['CHYAN']);await _0x4025d7[_0x188cfc(0x209)](kubeApply,_0x2bc47e,_0x4a1cf1),logger['info'](_0x4025d7[_0x188cfc(0x29f)]);const _0x307a5d={};_0x307a5d[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x307a5d[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x251)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x307a5d),logger[_0x188cfc(0x260)](_0x4025d7['KttsD']);}catch(_0x17b97f){const _0x3637fc=_0x4025d7[_0x188cfc(0x29b)]['split']('|');let _0x2c062d=0x0;while(!![]){switch(_0x3637fc[_0x2c062d++]){case'0':await _0x3f809d['deleteCluster'](_0x242a62,global_registry[_0x188cfc(0x211)]);continue;case'1':await _0x4025d7['PbnDg'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x130)],_0x4025d7[_0x188cfc(0x188)]);continue;case'2':_0x56984f=_0x188cfc(0x149)+_0x17b97f[_0x188cfc(0x28f)];continue;case'3':process[_0x188cfc(0x22b)](0x1);continue;case'4':logger['error'](_0x56984f);continue;}break;}}try{_0x38ea37=_0x4025d7['jDbVz'](kebabCase,_0x164413),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x2a7)]);const _0x5f3e61={};_0x5f3e61['type']=WS_EVENTS[_0x188cfc(0x1bc)],_0x5f3e61[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x2a7)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x5f3e61);if(_0x4025d7[_0x188cfc(0x100)](_0x38ea37,_0x4025d7[_0x188cfc(0x269)])){const _0x2506cf={};_0x2506cf[_0x188cfc(0x1e7)]=_0x4025d7[_0x188cfc(0x240)],_0x2506cf[_0x188cfc(0x112)]=_0x4025d7[_0x188cfc(0x240)];const _0x4c450b={};_0x4c450b[_0x188cfc(0x24f)]=_0x38ea37,_0x4c450b[_0x188cfc(0x2b4)]=_0x2506cf;const _0x2cacc6={};_0x2cacc6[_0x188cfc(0x2a9)]=_0x4c450b;const _0x5a7149=_0x2cacc6,_0xa66221={};_0xa66221[_0x188cfc(0x124)]=_0x5a7149,await _0x242a62['createNamespace'](_0xa66221),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x148)]);}const _0x3ec676={};_0x3ec676[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x3ec676[_0x188cfc(0x28f)]=_0x4025d7['UsNqE'],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x3ec676);const _0x306549={};_0x306549[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x306549[_0x188cfc(0x28f)]=_0x4025d7['BwoNI'],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x306549),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x1e4)]);let _0x527437={};_0x4025d7[_0x188cfc(0x29a)](_0x484576,AZURE)&&(_0x527437={'clientId':await _0x3f809d[_0x188cfc(0x111)](_0x188cfc(0x204)+_0x3193f)});await _0x4025d7['NhPzT'](addGridComponents,_0x242a62,_0x10a794,_0x4f014e,_0x175b7d,_0x38ea37,_0x3193f,_0xf51a1b,_0x4a1584,_0x4a1cf1,_0x527437),_0x56984f=_0x4025d7['YZtgH'],logger[_0x188cfc(0x260)](_0x56984f);const _0xf8dc9={};_0xf8dc9[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0xf8dc9['message']=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0xf8dc9),_0x56984f=_0x4025d7[_0x188cfc(0x17e)],logger[_0x188cfc(0x260)](_0x56984f);const _0x3ab1e3={};_0x3ab1e3[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x3ab1e3[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0x3ab1e3),await _0x4025d7[_0x188cfc(0x280)](waitForDeployment,_0x10a794,_0x38ea37,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x2245f2=await _0x4025d7[_0x188cfc(0x1a5)](getNamespaceUID,_0x242a62,_0x38ea37),_0x44ced8=global_registry[_0x188cfc(0x122)]?_0x4025d7[_0x188cfc(0x184)]:_0x4025d7['FPNoE'],_0x1a514f={};_0x1a514f[_0x188cfc(0x24f)]=_0x44ced8,_0x1a514f[_0x188cfc(0x24d)]=_0x4025d7[_0x188cfc(0x276)];const _0x20ee91=await _0x242a62['readNamespacedService'](_0x1a514f);let _0x50be17=_0x3f809d[_0x188cfc(0x1d0)](_0x20ee91)+'/'+_0x38ea37,_0x2cb802=_0x4025d7[_0x188cfc(0x289)];try{const _0x3fcfd7=_0x188cfc(0x182)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x2245f2,_0x56d622=await _0x4025d7[_0x188cfc(0x29c)](got,_0x3fcfd7,_0x5ec46a);(_0x4025d7[_0x188cfc(0x286)](_0x56d622,null)||_0x4025d7['mDSBJ'](_0x56d622,undefined))&&(_0x56984f=_0x4025d7[_0x188cfc(0x191)],await _0x4025d7['MdVqz'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x223)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));_0x4025d7[_0x188cfc(0x127)](_0x56d622[_0x188cfc(0x1da)],0x191)&&(_0x56984f=_0x4025d7[_0x188cfc(0x25f)],await _0x4025d7['wpSnF'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7['bpRUK'],_0x4025d7[_0x188cfc(0x250)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));_0x4025d7[_0x188cfc(0x200)](_0x56d622[_0x188cfc(0x1da)],0xc8)&&(_0x56984f=_0x188cfc(0x185)+JSON[_0x188cfc(0x278)](_0x56d622),await _0x4025d7[_0x188cfc(0x220)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x212)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));const _0x52ed3a=JSON[_0x188cfc(0x221)](_0x56d622[_0x188cfc(0x124)]);_0x52ed3a[_0x188cfc(0x20f)]&&(_0x50be17=_0x52ed3a['route53'],_0x2cb802=_0x4025d7[_0x188cfc(0x242)]),global_registry[_0x188cfc(0x122)]&&(_0x2cb802=_0x4025d7[_0x188cfc(0x289)]);}catch(_0x4af32e){}_0x56984f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x50be17+'\x20',logger[_0x188cfc(0x260)](_0x56984f);const _0x3ba1a4={};_0x3ba1a4[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x3ba1a4['message']=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x3ba1a4),_0x56984f=_0x188cfc(0x1cd)+_0x2cb802+_0x188cfc(0xfd)+_0x50be17+'/wd/hub',logger[_0x188cfc(0x260)](_0x56984f);const _0xc11f0f={};_0xc11f0f[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0xc11f0f[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0xc11f0f);const _0x1ee905={};_0x1ee905[_0x188cfc(0x297)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x1ee905[_0x188cfc(0x28f)]=_0x188cfc(0x26b)+_0x50be17,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x1ee905),await webSocketUtils['delay'](0x7d0);}catch(_0x25f083){logger[_0x188cfc(0x174)](_0x188cfc(0x1ef)+_0x25f083+'\x20\x0a'+JSON['stringify'](_0x25f083['stack']));if(_0x4025d7['gholt'](_0x173922,![]))try{logger['info'](_0x4025d7['aTCiL']),await _0x4025d7[_0x188cfc(0x1a3)](removeGridComponents,_0x242a62,_0x10a794,_0x4f014e,_0x175b7d,_0x38ea37),await _0x3f809d[_0x188cfc(0x1d8)](_0x242a62,global_registry[_0x188cfc(0x211)]);}catch(_0x5859f0){logger[_0x188cfc(0x174)](_0x188cfc(0x15c)+_0x5859f0+'\x20\x0a'+JSON['stringify'](_0x5859f0[_0x188cfc(0x2b2)]));}throw _0x25f083;}}catch(_0x27444d){const _0x9e5063=_0x188cfc(0x233)+_0x27444d+'\x20\x0a'+JSON[_0x188cfc(0x278)](_0x27444d['stack']);if(_0x40ff99){const _0x682e4a={};_0x682e4a[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x682e4a[_0x188cfc(0x28f)]=_0x9e5063,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x682e4a,_0x4025d7['GZvuH'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1ff61f={};_0x1ff61f[_0x188cfc(0x174)]=_0x9e5063,await _0x4025d7[_0x188cfc(0x1f6)](sendInstrumentationEvent,_0x59035d,_0x4025d7[_0x188cfc(0x151)],messageTypes[_0x188cfc(0x1af)],_0x4025d7['gZCbf'],_0x1ff61f,_0x59035d),logger[_0x188cfc(0x174)](_0x9e5063);}process[_0x188cfc(0x22b)](0x0);};
1
+ function a9_0x140f(_0x3e9c95,_0x50cb56){const _0x34c413=a9_0x34c4();return a9_0x140f=function(_0x140fec,_0xacb04e){_0x140fec=_0x140fec-0x93;let _0x16ae41=_0x34c413[_0x140fec];return _0x16ae41;},a9_0x140f(_0x3e9c95,_0x50cb56);}const a9_0x3012b2=a9_0x140f;(function(_0x23ad4e,_0x29cfc4){const _0x1d85ec=a9_0x140f,_0x18ff61=_0x23ad4e();while(!![]){try{const _0x2afc24=-parseInt(_0x1d85ec(0xb5))/0x1*(-parseInt(_0x1d85ec(0x17a))/0x2)+-parseInt(_0x1d85ec(0x14a))/0x3+parseInt(_0x1d85ec(0x1b8))/0x4*(parseInt(_0x1d85ec(0xf2))/0x5)+parseInt(_0x1d85ec(0x254))/0x6+parseInt(_0x1d85ec(0x156))/0x7+parseInt(_0x1d85ec(0x95))/0x8*(-parseInt(_0x1d85ec(0x13a))/0x9)+-parseInt(_0x1d85ec(0x146))/0xa;if(_0x2afc24===_0x29cfc4)break;else _0x18ff61['push'](_0x18ff61['shift']());}catch(_0x554389){_0x18ff61['push'](_0x18ff61['shift']());}}}(a9_0x34c4,0x4cbe5));function a9_0x34c4(){const _0x35d2a6=['xcwuZ','LMNqC','join','GJgmt','WpQdv','private-grid','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','uploaderVersion','boolean','UCMXQ','1|0|3|4|2','Browserstack','ERROR','8635xMSZjk','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','sendResourceDataToHST','fwgQN','path','lpQqd','Create\x20a\x20private/public\x20grid.','Oterr','http','exit','<PasswordPlaceholder>','VKVTu','browserstack','vgVyo','sendEventToBackend','QjQmw','pre-spawned-invalid-subnets','uSkqz','tpyiW','JKwAg','../../utils/createk8sClient','PfZFe','VloaW','loadAll','wNxMs','Uereq','bfLTC','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CeEsW','region','jsjyp','nNska','IBvfQ','description','koRYF','dbzuh','hQONs','concurrency','bstackAccesskey','metadata','SloQe','s3bucket','setupNewCluster','CVaBK','nwzCF','frPvO','tySQi','spec','HAuVX','GKLXQ','PIyXS','grid','templates','ingress-nginx','prespawned-cluster-args-not-passed','fBByk','bstackUsername','GfjFH','gridProfileId','username','GUKgd','TZKZy','TCwcO','wOJFv','adZcK','DcbEa','iuWRE','tDkRw','ySzgf','Skip\x20insecure\x20cert\x20verification.','2|7|13|12|15|10|3|8|0|9|6|5|11|1|4|14','Added\x20Redis\x20deployment.','117OaLhAF','init-not-called','VbrRH','jQDyh','opqnu','Create\x20a\x20new\x20Automation\x20grid.','length','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','kafkaUploader','UEQGY','gridProfiles','NFolt','4098960oCUVwy','default','EhgWi','debug','633882GRNfcf','utf-8','qAyaq','CLI\x20run\x20finished:\x20','Adding\x20Secret\x20Mapping','Cluster:\x20','JkLnd','gHkOK','get-grid-url-non-200','Flag\x20to\x20enable\x20Hub\x20HA','qYRDs','VJsBK','1454460cunExa','aJGtG','minNodes','readNamespacedService','QaIHN','Reefs','desc','Added\x20Secret\x20Mapping','saaUg','cluster-name','DozPg','securityGroups','hubHa','XOTmg','elTsw','MfWgJ','ZVUzl','OiyTP','xXwNj','cIJAv','uuid','ebHth','thNMk','UamVA','XSwpR','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Gctup','LvDyu','alreadyPresent','create-grid-called','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','HCEdS','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','CHmqk','QqzZl','ghWEU','5408NUKlEY','obXcT','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','2|8|4|7|5|0|1|3|6','iLUJq','browserVersion','hub-ha','ZpHIH','reconnecting-websocket','hsOCB','enableHubHa','ymKXS','Hhhkb','nmCwY','message','yqgQT','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','SqgBr','mAcZo','argv','isSubnetsValid','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','KqNzD','\x20in\x20existing\x20cluster\x20\x27','template','bETHd','DHVIL','PtoBh','Creating\x20namespace','uDmKj','sdXYC','xkQwP','XQbkW','SPeub','../../utils/gridComponents','<UsernamePlaceholder>','ouggG','CLI\x20run\x20started','QtKzZ','/packages/cli/create-grid-checks','HPMnn','DSfcn','XaPrW','createOtherResources','Adding\x20Kafka\x20deployment...','stringify','Subnets:\x20','replace','https','redisPassword','Deleting\x20the\x20CloudFormation\x20Stacks','type','string','bitnami-kafka.yaml','0|4|3|2|1','addListeners','tRhea','Namespace\x20created','fCHyA','createdBy','annotations','1300zOUDHT','FgOfM','Grid\x20can\x20be\x20accessed\x20at:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','NijFW','setupHubHa','serviceAccountName','clusterRegion','split','Epyd5nXbRK','\x27\x20grid\x20profile','mFsuD','oqLXB','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','YaFTf','INFO','toLowerCase','eIcnQ','true','hubharesources','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','newCluster','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','statusCode','connectionTimeout','error','azurefile-csi-premium','lgrHe','2|0|3|1|4','clusterAutoupgrade','jtvAg','gridProfile','Created\x20Hub\x20HA\x20resources','wgPoM','updateClusterAlreadyPresent','ujkva','sdfeR','\x20are\x20not\x20present\x20in\x20VPC:\x20','WebSocket','eshON','YhREz','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','ujVhO','roYBh','gHQTo','Adding\x20Websocket\x20listeners','lFMHH','zxsSI','eihvi','grid-profile','got','cwxBe','/packages/cli/get-grid-url?gridIdentifier=','managedBy','gridName','xrXAT','RdDmB','route53','SmBuI','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','bRuNq','UtqKf','aHQaQ','uploaderImageVersion','skip-tls-cert-verify','requestId','SLVEu','gIfcg','ansAC','delay','nwHPW','grid-name','pre-spawned-invalid-vpc','PXgyU','ovtgA','://','Found\x20VPC:\x20','hckvR','bitnami-redis.yaml','Afjbz','name','UKOwy','dyscD','uaYLl','bLyBi','TaDac','subnets','Pdpvf','user','https://','pre-spawned-subnets-not-selected','vEVcF','cloudProvider','pXQti','stjbk','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AWhxO','maxNodes','IzxVN','UGrAk','ciuTQ','Added\x20Kafka\x20deployment.','cluster-autoupgrade','Spawning\x20Grid\x20on\x20the\x20Cluster','create-grid-checks-invalid-profile','Grid\x20profile\x20fetched\x20from\x20backend','FqfBj','UkRNzNYCBU','rJjuV','deleteCluster','mIYpa','pXozN','PTUUs','privateGrid','apBHC','aZGds','Thozw','isVPCPresent','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.','readFileSync','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','kTDGp','VfAzI','clusterAutoUpgrade','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','password','HtSiO','yyGNl','ltkfX','Enabling\x20Hub\x20HA\x20flow','get-grid-url-null-response','../../config/constants','FoFlW','Grid\x20spawned\x20on\x20the\x20cluster','YVfsI','vCutH','defaultGridProfile','UqzcO','Found\x20Subnets:\x20','dThkI','help','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','ImjhX','pPfBX','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','/wd/hub','../..','kafkaPassword','duCTA','MUbkf','CgFzl','RJiZO','AcDgc','tdHzM','RDDdS','labels','276654BqXMtr','CCHoU','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hbNHp','pxvgm','readFileAsync','37416oeLqbY','gDmMl','CLI_RUN_STARTED','6|4|8|2|7|0|3|5|1','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Hkjlp','epilogue','options','xIpgA','skipTlsCertVerify','warn','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','nboDp','BFEec','FDkgg','hUtwk','cUocx','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','body','PQSQZ','parse','QHyCO','oTLKD','HkneF','zIMLI','isPrivateGrid','isClusterPresent','getResourceClientId','GqObb','WBgDP','gjQzC','tXwVS','67zsKvkX','hubHaNameSpace','GRoXd','nPvmO','1|2|4|0|3','isNewAWSCluster','lEQUa','kZwUo','LOG','includes','irlvu','RlHqq','gHPMJ','hYrhq','cOwxL','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','create-grid-checks-auth-failed','Qmmme','NMECa','namespace','Namespace\x20Created','rqUCx','GET','Cluster\x20','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','HQPAb','GVjqK','create','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','clusterName','existsSync','JnFTl','WrraZ','js-yaml','uzkBv','usage','stack','../../config/logger','vpc','YcmZp','instanceType','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Ypbzp','create-grid-checks-non-200','VlpcY','hubVersion','CSUYs','tZQwF'];a9_0x34c4=function(){return _0x35d2a6;};return a9_0x34c4();}const fs=require('fs'),ws=require('ws'),path=require(a9_0x3012b2(0xf6)),yaml=require(a9_0x3012b2(0xd6)),ReconnectingWebSocket=require(a9_0x3012b2(0x182)),got=require(a9_0x3012b2(0x1ea)),{v4:uuidv4}=require(a9_0x3012b2(0x16a)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x3012b2(0xda)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{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_0x3012b2(0x23b)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x3012b2(0x19d)),{createK8sClient}=require(a9_0x3012b2(0x106)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a9_0x3012b2(0x125),exports[a9_0x3012b2(0x15c)]=a9_0x3012b2(0x13f),exports['builder']=function(_0x5dd318){const _0x126017=a9_0x3012b2,_0x56940b={};_0x56940b[_0x126017(0x13d)]=_0x126017(0xeb),_0x56940b[_0x126017(0x213)]=_0x126017(0x1af),_0x56940b[_0x126017(0xbb)]=_0x126017(0x10d),_0x56940b[_0x126017(0x236)]=_0x126017(0x217),_0x56940b[_0x126017(0x19f)]=_0x126017(0x1bb),_0x56940b[_0x126017(0x12f)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x56940b[_0x126017(0xa8)]=_0x126017(0xf8),_0x56940b[_0x126017(0x1c3)]=_0x126017(0x137),_0x56940b[_0x126017(0x10c)]='boolean',_0x56940b[_0x126017(0xaa)]=_0x126017(0x153),_0x56940b[_0x126017(0x148)]=_0x126017(0x16f),_0x56940b[_0x126017(0x1a1)]=_0x126017(0x244);const _0x5eec86=_0x56940b,_0x15173b={};_0x15173b['description']=_0x5eec86[_0x126017(0x13d)],_0x15173b[_0x126017(0x1ae)]=_0x5eec86[_0x126017(0x213)];const _0x5a8745={};_0x5a8745[_0x126017(0x113)]=_0x5eec86[_0x126017(0xbb)],_0x5a8745[_0x126017(0x1ae)]=_0x5eec86[_0x126017(0x213)];const _0x12fb5c={};_0x12fb5c[_0x126017(0x113)]=_0x5eec86['HtSiO'],_0x12fb5c[_0x126017(0x1ae)]=_0x5eec86[_0x126017(0x213)];const _0x67b91={};_0x67b91[_0x126017(0x113)]=_0x5eec86['ouggG'],_0x67b91[_0x126017(0x1ae)]=_0x5eec86['vEVcF'];const _0x4a67bd={};_0x4a67bd['description']=_0x5eec86[_0x126017(0x12f)],_0x4a67bd[_0x126017(0x1ae)]=_0x5eec86[_0x126017(0x213)];const _0x1ae97f={};_0x1ae97f[_0x126017(0x113)]=_0x5eec86[_0x126017(0xa8)],_0x1ae97f[_0x126017(0x1ae)]=_0x5eec86[_0x126017(0x213)];const _0x2b6962={};_0x2b6962[_0x126017(0x113)]=_0x5eec86[_0x126017(0x1c3)],_0x2b6962[_0x126017(0x1ae)]=_0x5eec86[_0x126017(0x10c)],_0x2b6962['default']=![];const _0x86b30={};_0x86b30[_0x126017(0x113)]=_0x5eec86[_0x126017(0xaa)],_0x86b30['type']=_0x5eec86[_0x126017(0x10c)],_0x86b30[_0x126017(0x147)]=![];const _0x486162={};_0x486162[_0x126017(0x113)]=_0x5eec86['EhgWi'],_0x486162[_0x126017(0x1ae)]=_0x5eec86[_0x126017(0x10c)],_0x486162[_0x126017(0x147)]=![];const _0x10b314={};return _0x10b314['grid-name']=_0x15173b,_0x10b314[_0x126017(0x1e9)]=_0x5a8745,_0x10b314[_0x126017(0x15f)]=_0x12fb5c,_0x10b314['cloud-provider']=_0x67b91,_0x10b314[_0x126017(0x10f)]=_0x4a67bd,_0x10b314[_0x126017(0xea)]=_0x1ae97f,_0x10b314[_0x126017(0x1f8)]=_0x2b6962,_0x10b314['hub-ha']=_0x86b30,_0x10b314[_0x126017(0x21e)]=_0x486162,_0x5dd318[_0x126017(0xd8)](HELP_HEADER_MESSAGE[_0x126017(0xd0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x126017(0x9c)](_0x10b314)['help'](_0x5eec86[_0x126017(0x1a1)])[_0x126017(0x18e)];},exports['handler']=async function(_0xfb2ad8){const _0x10b8ff=a9_0x3012b2,_0x3b3e34={'NZBvM':function(_0x4b07fa,_0x153926){return _0x4b07fa(_0x153926);},'Afjbz':_0x10b8ff(0x1ab),'qAyaq':_0x10b8ff(0xb9),'GKLXQ':_0x10b8ff(0x1c1),'bLyBi':_0x10b8ff(0x239),'KqNzD':_0x10b8ff(0xfe),'IzxVN':_0x10b8ff(0x223),'kTDGp':_0x10b8ff(0x98),'SPeub':_0x10b8ff(0x1a0),'uDmKj':_0x10b8ff(0x1d2),'NMECa':_0x10b8ff(0x190),'jsjyp':'premium-rwo','VpSlV':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','xrXAT':_0x10b8ff(0x1af),'RKfsy':_0x10b8ff(0x10d),'KDfkv':_0x10b8ff(0x217),'kZwUo':_0x10b8ff(0x1bb),'JkLnd':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','tySQi':'Create\x20a\x20private/public\x20grid.','fwgQN':'Skip\x20insecure\x20cert\x20verification.','PfZFe':_0x10b8ff(0xed),'vCutH':_0x10b8ff(0x153),'cwxBe':_0x10b8ff(0x16f),'tDkRw':_0x10b8ff(0x244),'GqObb':_0x10b8ff(0x138),'ebHth':function(_0x3f2404,_0x242ecf){return _0x3f2404!==_0x242ecf;},'ghWEU':function(_0x49072f,_0x4d3c6a,_0x49dd8b,_0x10d9f4,_0x3aa691,_0x2589e7,_0xfc7139,_0x25d318,_0x481087,_0x386114,_0x272c05,_0x288cb8,_0x1605cb){return _0x49072f(_0x4d3c6a,_0x49dd8b,_0x10d9f4,_0x3aa691,_0x2589e7,_0xfc7139,_0x25d318,_0x481087,_0x386114,_0x272c05,_0x288cb8,_0x1605cb);},'hUtwk':function(_0x243dc1,_0x5d46db){return _0x243dc1(_0x5d46db);},'GJgmt':_0x10b8ff(0xfa),'mAcZo':function(_0x2c7e3c,_0x52f1e2){return _0x2c7e3c(_0x52f1e2);},'nPvmO':_0x10b8ff(0x1ca),'hbNHp':_0x10b8ff(0x147),'ciuTQ':_0x10b8ff(0x1d1),'stjbk':_0x10b8ff(0x9f),'dbzuh':function(_0x8b296f,_0x3d4da0){return _0x8b296f===_0x3d4da0;},'iwoWs':function(_0x353f63){return _0x353f63();},'NijFW':function(_0x455f75,_0x17c5aa){return _0x455f75!==_0x17c5aa;},'RDDdS':_0x10b8ff(0x154),'UCMXQ':_0x10b8ff(0x256),'iuWRE':function(_0x292ad6,_0x22656e,_0xd25136,_0x2e5c4a,_0x5f34e3,_0x51912f,_0x522197){return _0x292ad6(_0x22656e,_0xd25136,_0x2e5c4a,_0x5f34e3,_0x51912f,_0x522197);},'fBByk':_0x10b8ff(0x173),'lpQqd':_0x10b8ff(0x13b),'CCHoU':_0x10b8ff(0x19e),'tZQwF':_0x10b8ff(0xfc),'mIYpa':_0x10b8ff(0x1e5),'gDmMl':function(_0x235487,_0x5aaaa7){return _0x235487!==_0x5aaaa7;},'CgFzl':'tqMGY','wgPoM':'lLrkP','YhREz':function(_0xdecb84,_0x5d1713){return _0xdecb84!==_0x5d1713;},'XQbkW':_0x10b8ff(0x171),'VbrRH':_0x10b8ff(0xa6),'ZpHIH':function(_0x4a1a52,_0x201ecd,_0x2fea38,_0x43d5dd,_0x940af7,_0x4a4940,_0x2a5a5e,_0x1662db){return _0x4a1a52(_0x201ecd,_0x2fea38,_0x43d5dd,_0x940af7,_0x4a4940,_0x2a5a5e,_0x1662db);},'FJoGa':_0x10b8ff(0x128),'rJjuV':function(_0xcd246c,_0x5b2dd0){return _0xcd246c===_0x5b2dd0;},'FqfBj':_0x10b8ff(0xb7),'CVaBK':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','nwzCF':function(_0x37f7c7,_0xb9f3e8,_0x4462b1,_0x4b307d,_0x549a01,_0x1f2ff2,_0x1ea52f,_0x5a3e64){return _0x37f7c7(_0xb9f3e8,_0x4462b1,_0x4b307d,_0x549a01,_0x1f2ff2,_0x1ea52f,_0x5a3e64);},'iwehV':'non-aws-azure-cluster','YcmZp':function(_0x43a3f2,_0x56a124){return _0x43a3f2===_0x56a124;},'fCHyA':_0x10b8ff(0x189),'iLUJq':function(_0x1ce878,_0x556292,_0x22bb1f,_0x54bb15,_0x267229,_0x293515,_0x385df0){return _0x1ce878(_0x556292,_0x22bb1f,_0x54bb15,_0x267229,_0x293515,_0x385df0);},'Uereq':function(_0x2031d0,_0x571fd9){return _0x2031d0!==_0x571fd9;},'Hkjlp':_0x10b8ff(0xce),'gHQTo':'lFuid','TCwcO':_0x10b8ff(0x20f),'CSUYs':function(_0x2fc187,_0x13a297){return _0x2fc187!==_0x13a297;},'cUocx':_0x10b8ff(0x16d),'nwHPW':_0x10b8ff(0xcb),'bRuNq':function(_0x328baa,_0x2e8c1d,_0x30d304){return _0x328baa(_0x2e8c1d,_0x30d304);},'YPENP':function(_0x38f8fa,_0x23ce36){return _0x38f8fa!==_0x23ce36;},'DSfcn':_0x10b8ff(0x1f0),'rqUCx':_0x10b8ff(0x250),'adZcK':function(_0x425140,_0x465b02){return _0x425140!==_0x465b02;},'HAuVX':'iGdSt','wNxMs':_0x10b8ff(0x15b),'AWhxO':function(_0x22415d,_0x46001b){return _0x22415d===_0x46001b;},'aHQaQ':function(_0x47f02b,_0x14915c){return _0x47f02b===_0x14915c;},'nNska':'JOcaH','BOrtm':_0x10b8ff(0x1fa),'VfAzI':_0x10b8ff(0x99),'dThkI':'create-grid-checks-null-response','QqzZl':function(_0x70083e,_0x5a1b7e){return _0x70083e!==_0x5a1b7e;},'aJGtG':_0x10b8ff(0x1d6),'dyscD':'DDNxB','OkWBa':_0x10b8ff(0x18a),'UqzcO':function(_0x189eb5,_0x4f0cd0,_0x2b7030,_0x2e2b36,_0x560868,_0x5dc6da,_0x4fe48e,_0x35e588){return _0x189eb5(_0x4f0cd0,_0x2b7030,_0x2e2b36,_0x560868,_0x5dc6da,_0x4fe48e,_0x35e588);},'HgCAT':_0x10b8ff(0xc5),'frPvO':function(_0x5b1f2a,_0x43626d){return _0x5b1f2a!==_0x43626d;},'wOJFv':_0x10b8ff(0x10e),'zxsSI':_0x10b8ff(0x164),'ujkva':function(_0xee4eb9,_0x23abe2,_0x467fa4,_0x361124,_0x328271,_0x523800,_0x5a9d63,_0x2b87b0){return _0xee4eb9(_0x23abe2,_0x467fa4,_0x361124,_0x328271,_0x523800,_0x5a9d63,_0x2b87b0);},'ltkfX':_0x10b8ff(0xe0),'FgOfM':_0x10b8ff(0x221),'opqnu':_0x10b8ff(0xd7),'AIilz':'create-grid-checks-grid-already-exists','eIcnQ':_0x10b8ff(0xfd),'yrrnA':_0x10b8ff(0xe6),'HPMnn':'ImGew','OngMI':_0x10b8ff(0x209),'xcwuZ':_0x10b8ff(0xef),'MfWgJ':function(_0x1e9cf3,_0x4f53a7){return _0x1e9cf3===_0x4f53a7;},'NFolt':function(_0x4389be,_0x53dfc6){return _0x4389be===_0x53dfc6;},'RJiZO':function(_0x3dddff,_0x2d9692){return _0x3dddff!==_0x2d9692;},'roYBh':'hpjHv','LIzoe':_0x10b8ff(0x124),'gHPMJ':function(_0x56eccf,_0x4a5121){return _0x56eccf===_0x4a5121;},'QkJAU':_0x10b8ff(0x196),'Yfuwf':_0x10b8ff(0x16e),'UGrAk':_0x10b8ff(0x141),'OiyTP':_0x10b8ff(0x220),'hckvR':function(_0x3e4e18,_0x2a9262){return _0x3e4e18===_0x2a9262;},'bETHd':function(_0x41502e,_0x4d5dbd){return _0x41502e===_0x4d5dbd;},'zIMLI':_0x10b8ff(0x12e),'xIpgA':function(_0x1b3110,_0x59330e){return _0x1b3110===_0x59330e;},'sdXYC':_0x10b8ff(0x24c),'SloQe':_0x10b8ff(0xcf),'eshON':function(_0x2f426f,_0x57dea4){return _0x2f426f!==_0x57dea4;},'hsOCB':_0x10b8ff(0x202),'UtqKf':_0x10b8ff(0x116),'uSkqz':function(_0xa3c22c,_0x1c7dac){return _0xa3c22c===_0x1c7dac;},'Qmmme':function(_0x55e0dd,_0x2b6e99){return _0x55e0dd!==_0x2b6e99;},'ySzgf':'GCcDR','apBHC':_0x10b8ff(0xd4),'tRhea':function(_0x4915f4,_0x29795e){return _0x4915f4!==_0x29795e;},'BFEec':_0x10b8ff(0x1fb),'gOHlp':function(_0x187dbd,_0x3b243d,_0x2675a3,_0x30a803,_0x48d793,_0x23cf7e,_0x2f9af6,_0x4ab2b3,_0x5aa434,_0x3ab9c2,_0x4df121,_0x59f5a7,_0x4e5767){return _0x187dbd(_0x3b243d,_0x2675a3,_0x30a803,_0x48d793,_0x23cf7e,_0x2f9af6,_0x4ab2b3,_0x5aa434,_0x3ab9c2,_0x4df121,_0x59f5a7,_0x4e5767);},'tdHzM':function(_0x2b465c,_0x24dec2){return _0x2b465c===_0x24dec2;},'pPfBX':_0x10b8ff(0x215),'GfjFH':_0x10b8ff(0x17b),'irlvu':function(_0x58d61e,_0x273c5b){return _0x58d61e(_0x273c5b);},'gjQzC':_0x10b8ff(0x201),'nmCwY':_0x10b8ff(0x17d),'EIpfV':_0x10b8ff(0x1dc),'cbmdT':_0x10b8ff(0x108),'DcbEa':_0x10b8ff(0x22c),'eihvi':function(_0x56c2a8,_0x104aa9){return _0x56c2a8===_0x104aa9;},'OyWMp':'SRnyQ','IBvfQ':'iWfPs','oTLKD':_0x10b8ff(0x1cc),'cOwxL':function(_0x3c9a9d,_0x3d6b94){return _0x3c9a9d!=_0x3d6b94;},'wUDhl':function(_0x4f9b30,_0x2c7311){return _0x4f9b30!==_0x2c7311;},'FDkgg':function(_0x27c701,_0x228abf){return _0x27c701!=_0x228abf;},'SqgBr':function(_0x43293d,_0x2f61a2){return _0x43293d>_0x2f61a2;},'EzeYQ':function(_0x53e2ec,_0x1c6b98){return _0x53e2ec===_0x1c6b98;},'oIONe':_0x10b8ff(0xf3),'Dxvlr':_0x10b8ff(0x212),'HkneF':function(_0x58bf96,_0xcb36d6){return _0x58bf96===_0xcb36d6;},'CHmqk':_0x10b8ff(0x17c),'pXozN':function(_0x6b1a15,_0x2a6637,_0x223582,_0x1a785f,_0x36b09b,_0x4b2634,_0x568e1e,_0x146469){return _0x6b1a15(_0x2a6637,_0x223582,_0x1a785f,_0x36b09b,_0x4b2634,_0x568e1e,_0x146469);},'TFDWN':_0x10b8ff(0x200),'pOyQN':_0x10b8ff(0x102),'ZVUzl':_0x10b8ff(0x1b1),'TaDac':_0x10b8ff(0x22e),'WpQdv':'Cluster\x20created\x20successfully','gkmfu':function(_0x2de0ad,_0x250309){return _0x2de0ad===_0x250309;},'aZGds':function(_0x1394d3,_0x5437d8){return _0x1394d3===_0x5437d8;},'AMvQF':function(_0x3ff32e,_0x2f14c3){return _0x3ff32e===_0x2f14c3;},'uaYLl':'Creating\x20Hub\x20HA\x20resources','WBgDP':function(_0x5360d3,_0x362073,_0x365a81){return _0x5360d3(_0x362073,_0x365a81);},'nboDp':_0x10b8ff(0x14e),'RlHqq':_0x10b8ff(0x24a),'thNMk':_0x10b8ff(0x126),'YVfsI':_0x10b8ff(0x1cb),'ujVhO':'browserstack-secret.yaml','ymKXS':_0x10b8ff(0x14b),'TiqfG':function(_0x1bb209,_0x31ae79){return _0x1bb209(_0x31ae79);},'XaPrW':function(_0x5c6618,_0x14b824){return _0x5c6618(_0x14b824);},'Hhhkb':function(_0x2fec83,_0x4d6db9,_0x436037){return _0x2fec83(_0x4d6db9,_0x436037);},'oXUdZ':_0x10b8ff(0x15d),'JKwAg':'efs-csi','WrraZ':'Adding\x20Redis\x20deployment...','gHkOK':_0x10b8ff(0x206),'Ypbzp':function(_0x697811,_0x5b03fb,_0x52a4d8){return _0x697811(_0x5b03fb,_0x52a4d8);},'FoFlW':_0x10b8ff(0x139),'XOTmg':_0x10b8ff(0x1a7),'LfsWz':_0x10b8ff(0x1b0),'jsnlR':_0x10b8ff(0x21d),'VJsBK':'Adding\x20Turboscale\x20Uploader\x20deployment...','PTUUs':'turboscale-uploader.yaml','QjQmw':function(_0x40ebfe,_0x3af4a){return _0x40ebfe===_0x3af4a;},'YaFTf':function(_0x297de1,_0x456b67,_0xed7f88){return _0x297de1(_0x456b67,_0xed7f88);},'koRYF':'Added\x20Turboscale\x20Uploader\x20deployment.','Gctup':_0x10b8ff(0x1d8),'yyGNl':'Hub\x20HA\x20setup\x20completed\x20successfully.','lFMHH':_0x10b8ff(0x1d4),'Oterr':'hub-ha-deployments-failed','VlpcY':function(_0x54f679,_0x22f1a6){return _0x54f679(_0x22f1a6);},'cIJAv':_0x10b8ff(0x197),'hYrhq':function(_0x57270b,_0x4fb3de){return _0x57270b!==_0x4fb3de;},'DHVIL':_0x10b8ff(0xf0),'lcYjW':_0x10b8ff(0xc9),'tXwVS':_0x10b8ff(0x1b4),'saaUg':_0x10b8ff(0xde),'HCEdS':_0x10b8ff(0x21f),'MUbkf':function(_0xc24aab,_0x45553e,_0x4c4813,_0x410c1,_0x1c6235,_0x2323d6,_0x414f1a,_0x2298da,_0x39cb69,_0x28e75d,_0x110d00){return _0xc24aab(_0x45553e,_0x4c4813,_0x410c1,_0x1c6235,_0x2323d6,_0x414f1a,_0x2298da,_0x39cb69,_0x28e75d,_0x110d00);},'SmBuI':_0x10b8ff(0x23d),'FGEOT':_0x10b8ff(0x1f3),'tpyiW':function(_0x1b44b8,_0x55581b,_0x3f11e3,_0x406f0c,_0x12aba5){return _0x1b44b8(_0x55581b,_0x3f11e3,_0x406f0c,_0x12aba5);},'vgVyo':function(_0x3d845f,_0x4d2c38,_0x4dc3e7){return _0x3d845f(_0x4d2c38,_0x4dc3e7);},'lgrHe':'private-ingress-nginx-controller','UuJeD':'ingress-nginx-controller','UEQGY':_0x10b8ff(0x127),'yNLkT':function(_0x8be929,_0x3ccff7){return _0x8be929===_0x3ccff7;},'xkQwP':_0x10b8ff(0x230),'nXuTi':_0x10b8ff(0x23a),'dGjBv':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','HdbHk':'get-grid-url-auth-failed','pxvgm':function(_0x2be5b0,_0x215c47){return _0x2be5b0!==_0x215c47;},'ImjhX':_0x10b8ff(0x152),'QaIHN':function(_0x3b3bad,_0x3272fe){return _0x3b3bad===_0x3272fe;},'oqLXB':_0x10b8ff(0x1ad),'ansAC':function(_0x41b7bf,_0x369334,_0x147cd8,_0x5a6e98,_0x418377,_0x1d0b7d){return _0x41b7bf(_0x369334,_0x147cd8,_0x5a6e98,_0x418377,_0x1d0b7d);},'xXwNj':function(_0x25bb1c,_0x716357,_0x56ae3a,_0x5bceb2,_0x18813e,_0x19332d,_0x4c1066){return _0x25bb1c(_0x716357,_0x56ae3a,_0x5bceb2,_0x18813e,_0x19332d,_0x4c1066);},'DozPg':'grid-spawning-failed'};let _0x391220=![],_0x5605a8=![],_0x178910,_0x521d6b,_0x1ca410,_0xbfca8c,_0x47455e,_0x298765,_0x1e3b2c,_0x30fda7,_0x1a877d,_0xaf4697,_0x527826,_0x45e0e2,_0x40cc9b,_0x5ec0a6,_0x53af6f=0x1,_0x5bd2d3=0xe;try{global_registry[_0x10b8ff(0x1f9)]=_0x3b3e34['iwoWs'](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x10b8ff(0xd3)](_0x3b3e34['iwoWs'](getCredentialsPath))&&(_0x3b3e34['NijFW'](_0x3b3e34['RDDdS'],_0x3b3e34[_0x10b8ff(0x252)])?_0x10bee8[_0x10b8ff(0xae)]=!![]:(console[_0x10b8ff(0x1d1)](_0x3b3e34[_0x10b8ff(0xee)]),await _0x3b3e34[_0x10b8ff(0x134)](sendInstrumentationEvent,_0xfb2ad8,_0x3b3e34['fBByk'],messageTypes['ERROR'],_0x3b3e34[_0x10b8ff(0xf7)],null,_0xfb2ad8),process[_0x10b8ff(0xfb)](0x1)));await _0x3b3e34[_0x10b8ff(0x134)](sendInstrumentationEvent,_0xfb2ad8,_0x3b3e34[_0x10b8ff(0x129)],messageTypes[_0x10b8ff(0x1c7)],null,null,_0xfb2ad8);const _0x76fa14=JSON[_0x10b8ff(0xa9)](fs[_0x10b8ff(0x22f)](_0x3b3e34['iwoWs'](getCredentialsPath)));global_registry[_0x10b8ff(0x12a)]=_0x76fa14[_0x10b8ff(0xf0)][_0x10b8ff(0x12d)],global_registry[_0x10b8ff(0x118)]=_0x76fa14[_0x10b8ff(0xf0)][_0x10b8ff(0x235)];const _0x2f121e=WS_ENDPOINT[_0x10b8ff(0x1aa)](_0x3b3e34[_0x10b8ff(0x255)],_0x76fa14['Browserstack'][_0x10b8ff(0x12d)])[_0x10b8ff(0x1aa)](_0x3b3e34[_0x10b8ff(0xe4)],_0x76fa14[_0x10b8ff(0xf0)]['password']),_0x165278={};_0x165278[_0x10b8ff(0x1de)]=ws,_0x165278[_0x10b8ff(0x1d0)]=0x36ee80,_0x45e0e2=new ReconnectingWebSocket(_0x2f121e,[],_0x165278),logger[_0x10b8ff(0x149)](_0x3b3e34[_0x10b8ff(0x226)]),webSocketUtils[_0x10b8ff(0x1b2)](_0x45e0e2,_0xfb2ad8[_0x10b8ff(0x210)],_0xfb2ad8[_0x10b8ff(0x235)]);const _0x2707c2=_0xfb2ad8[_0x10b8ff(0x1ee)]||DEFAULT_GRID_NAME;if(_0xfb2ad8[_0x10b8ff(0xd2)]||_0xfb2ad8['cloudProvider']||_0xfb2ad8[_0x10b8ff(0x10f)]){if(_0x3b3e34[_0x10b8ff(0x96)](_0x3b3e34[_0x10b8ff(0x24e)],_0x3b3e34[_0x10b8ff(0x1d9)])){!(_0xfb2ad8[_0x10b8ff(0xd2)]&&_0xfb2ad8[_0x10b8ff(0x214)]&&_0xfb2ad8[_0x10b8ff(0x10f)])&&(_0x3b3e34[_0x10b8ff(0x1e0)](_0x3b3e34['XQbkW'],_0x3b3e34[_0x10b8ff(0x19b)])?_0x1344a3[_0x10b8ff(0x1d7)]=_0x2b321f[_0x10b8ff(0x1d7)]:(_0x178910=_0x3b3e34[_0x10b8ff(0x13c)],await _0x3b3e34[_0x10b8ff(0x181)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['FJoGa'],_0x3b3e34[_0x10b8ff(0x21c)]),logger[_0x10b8ff(0x1d1)](_0x178910),process[_0x10b8ff(0xfb)](0x1)));![AWS,AZURE,GCP][_0x10b8ff(0xbe)](_0xfb2ad8[_0x10b8ff(0x214)][_0x10b8ff(0x1c8)]())&&(_0x3b3e34[_0x10b8ff(0x224)](_0x3b3e34[_0x10b8ff(0x222)],_0x3b3e34['FqfBj'])?(_0x178910=_0x3b3e34[_0x10b8ff(0x11d)],await _0x3b3e34[_0x10b8ff(0x11e)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['iwehV'],_0x3b3e34[_0x10b8ff(0x21c)]),logger[_0x10b8ff(0x1d1)](_0x178910),process['exit'](0x1)):_0x3b3e34['NZBvM'](_0xc88f63,_0x550a55[_0x10b8ff(0x142)]));_0xfb2ad8[_0x10b8ff(0x229)]&&_0x3b3e34[_0x10b8ff(0xdc)](_0xfb2ad8['privateGrid'][_0x10b8ff(0x1c8)](),_0x3b3e34[_0x10b8ff(0xb8)])&&(_0x3b3e34[_0x10b8ff(0x96)](_0x3b3e34[_0x10b8ff(0x1b5)],_0x3b3e34['fCHyA'])?_0x142e77[_0x10b8ff(0xf4)]():global_registry[_0x10b8ff(0xae)]=!![]);global_registry[_0x10b8ff(0x214)]=_0xfb2ad8[_0x10b8ff(0x214)],global_registry[_0x10b8ff(0x1bf)]=_0xfb2ad8[_0x10b8ff(0x10f)],global_registry[_0x10b8ff(0xd2)]=_0xfb2ad8['clusterName'];const _0x1a690b=await _0x3b3e34[_0x10b8ff(0x17e)](getCloudProviderObject,_0xfb2ad8['cloudProvider'],_0xfb2ad8['clusterName'],_0x2707c2,_0x45e0e2,webSocketUtils,_0xfb2ad8),_0x11025a=await _0x1a690b[_0x10b8ff(0xaf)]();if(!_0x11025a)_0x3b3e34[_0x10b8ff(0x10b)](_0x3b3e34[_0x10b8ff(0x9a)],_0x3b3e34[_0x10b8ff(0x9a)])?(_0x1a92a2=_0x40e9ed[_0x10b8ff(0x1f1)],_0x564907=_0x3b3e34[_0x10b8ff(0x207)]):(logger[_0x10b8ff(0x18b)]('Cluster:\x20'+_0xfb2ad8['clusterName']+_0x10b8ff(0xa0)),_0x391220=![],_0x5605a8=!![]);else{if(_0x3b3e34[_0x10b8ff(0x1bc)](_0x3b3e34[_0x10b8ff(0x1e4)],_0x3b3e34[_0x10b8ff(0x130)]))_0x391220=!![];else{const _0x32ca4e=_0x3b3e34[_0x10b8ff(0x14c)][_0x10b8ff(0x1c0)]('|');let _0x52067d=0x0;while(!![]){switch(_0x32ca4e[_0x52067d++]){case'0':_0x3290b1[_0x10b8ff(0x24b)]=_0x3b3e34[_0x10b8ff(0x123)];continue;case'1':_0x2b1b98[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x20c)]);continue;case'2':_0x50799b[_0x10b8ff(0xb6)]=_0x3b3e34[_0x10b8ff(0x191)];continue;case'3':_0x392b3c[_0x10b8ff(0x184)]=!![];continue;case'4':_0x5ea367[_0x10b8ff(0x1ac)]=_0x3b3e34[_0x10b8ff(0x21a)];continue;}break;}}}_0x1ca410=_0xfb2ad8[_0x10b8ff(0xd2)],_0x521d6b=_0xfb2ad8[_0x10b8ff(0x214)][_0x10b8ff(0x1c8)](),_0xbfca8c=_0xfb2ad8[_0x10b8ff(0x10f)];}else{const _0x4f8f3b=_0x3b3e34[_0x10b8ff(0x231)][_0x10b8ff(0x1c0)]('|');let _0x262f75=0x0;while(!![]){switch(_0x4f8f3b[_0x262f75++]){case'0':_0x2d4f85[_0x10b8ff(0x1bf)]=_0x37b0e1;continue;case'1':_0x18517e[_0x10b8ff(0x17f)]=_0x1504b9[_0x10b8ff(0x17f)];continue;case'2':const _0x19a6ee={};_0x19a6ee[_0x10b8ff(0x1ae)]=_0x1d7f19[_0x10b8ff(0xbd)],_0x19a6ee['message']=_0x3acb5c,_0x58c00c[_0x10b8ff(0x100)](_0x22c716,_0x19a6ee);continue;case'3':_0x4c3cf8[_0x10b8ff(0xd2)]=_0x3e45ca;continue;case'4':_0x50573b='Spawning\x20the\x20grid\x20'+_0x46fbad+_0x10b8ff(0x192)+_0x5295b7+'\x27';continue;case'5':_0x2aee3c[_0x10b8ff(0xe2)]=_0x8f674b[_0x10b8ff(0xe2)];continue;case'6':const _0x5bf747={};_0x5bf747[_0x10b8ff(0x1ae)]=_0x34b107[_0x10b8ff(0x97)],_0x5bf747[_0x10b8ff(0x188)]=_0x3b3e34[_0x10b8ff(0x19c)],_0x5f439f[_0x10b8ff(0x100)](_0x50bbdc,_0x5bf747);continue;case'7':_0x439572[_0x10b8ff(0x214)]=_0x37fda2;continue;case'8':_0x1b8727[_0x10b8ff(0x18b)](_0x4b90be);continue;}break;}}}else _0xfb2ad8[_0x10b8ff(0x1d7)]&&(_0x3b3e34[_0x10b8ff(0xe3)](_0x3b3e34[_0x10b8ff(0xa5)],_0x3b3e34[_0x10b8ff(0xa5)])?_0x50bffa[_0x10b8ff(0x18b)](_0x10b8ff(0x204)+_0x3ef763+'\x20'):global_registry['gridProfile']=_0xfb2ad8[_0x10b8ff(0x1d7)]);global_registry[_0x10b8ff(0x1ee)]=_0xfb2ad8['gridName'];const _0x4c67de={'method':_0x3b3e34[_0x10b8ff(0x1fe)],'headers':_0x3b3e34['bRuNq'](getAuthHeader,_0x76fa14[_0x10b8ff(0xf0)][_0x10b8ff(0x12d)],_0x76fa14[_0x10b8ff(0xf0)][_0x10b8ff(0x235)]),'throwHttpErrors':![]},_0x1b0f80={};_0x1b0f80[_0x10b8ff(0x1ee)]=_0x2707c2;const _0xc36ddc=_0x1b0f80;if(_0x5605a8){if(_0x3b3e34['YPENP'](_0x3b3e34[_0x10b8ff(0x1a4)],_0x3b3e34[_0x10b8ff(0xca)]))_0xc36ddc[_0x10b8ff(0x10f)]=_0xbfca8c,_0xc36ddc[_0x10b8ff(0x214)]=_0x521d6b,_0xc36ddc[_0x10b8ff(0x1cd)]=!![],_0xc36ddc[_0x10b8ff(0x233)]=_0xfb2ad8[_0x10b8ff(0x1d5)];else throw new _0x1e6382(_0x10b8ff(0xcc)+_0x517048+_0x10b8ff(0x248));}_0xfb2ad8[_0x10b8ff(0x1d5)]&&(_0x3b3e34[_0x10b8ff(0x132)](_0x3b3e34[_0x10b8ff(0x122)],_0x3b3e34[_0x10b8ff(0x10a)])?logger['info'](_0x3b3e34['NMECa']):_0x5e4561=null);const _0x4e525c=_0x10b8ff(0x211)+AG_API_URL+_0x10b8ff(0x1a2),_0x36cb10={'searchParams':_0xc36ddc,'throwHttpErrors':![],..._0x4c67de},_0x40e365=_0x36cb10,_0x2aeb2b=await _0x3b3e34[_0x10b8ff(0x1f4)](got,_0x4e525c,_0x40e365);(_0x3b3e34[_0x10b8ff(0x218)](_0x2aeb2b,null)||_0x3b3e34[_0x10b8ff(0x1f6)](_0x2aeb2b,undefined))&&(_0x3b3e34['Uereq'](_0x3b3e34[_0x10b8ff(0x111)],_0x3b3e34['BOrtm'])?(_0x178910=_0x3b3e34[_0x10b8ff(0x232)],await _0x3b3e34['ZpHIH'](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34[_0x10b8ff(0x243)],_0x3b3e34['ciuTQ']),logger[_0x10b8ff(0x1d1)](_0x178910),process['exit'](0x1)):_0x14d58d=_0x3b3e34[_0x10b8ff(0x198)]);_0x3b3e34[_0x10b8ff(0x1f6)](_0x2aeb2b[_0x10b8ff(0x1cf)],0x191)&&(_0x3b3e34[_0x10b8ff(0x178)](_0x3b3e34[_0x10b8ff(0x157)],_0x3b3e34[_0x10b8ff(0x20a)])?(_0x178910=_0x3b3e34['OkWBa'],await _0x3b3e34[_0x10b8ff(0x241)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['HgCAT'],_0x3b3e34['ciuTQ']),logger[_0x10b8ff(0x1d1)](_0x178910),process['exit'](0x1)):_0x1d38ad[_0x10b8ff(0xae)]=!![]);_0x3b3e34[_0x10b8ff(0xe3)](_0x2aeb2b['statusCode'],0xc8)&&(_0x3b3e34['frPvO'](_0x3b3e34[_0x10b8ff(0x131)],_0x3b3e34[_0x10b8ff(0x1e7)])?(_0x178910=_0x10b8ff(0xc4)+JSON['stringify'](_0x2aeb2b[_0x10b8ff(0xa7)]),await _0x3b3e34[_0x10b8ff(0x1db)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34['fBByk'],_0x3b3e34[_0x10b8ff(0x238)],_0x3b3e34['ciuTQ']),logger[_0x10b8ff(0x1d1)](_0x178910),process['exit'](0x1)):_0x542717[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0xc7)]));const _0x2419d4=JSON['parse'](_0x2aeb2b[_0x10b8ff(0xa7)]),_0x1f5e98={};_0x1f5e98[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0x97)],_0x1f5e98[_0x10b8ff(0x188)]=_0x3b3e34[_0x10b8ff(0x19c)],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x1f5e98);const _0x404283={};_0x404283['type']=WS_EVENTS['LOG'],_0x404283[_0x10b8ff(0x188)]=_0x3b3e34[_0x10b8ff(0x1b9)],webSocketUtils['sendEventToBackend'](_0x45e0e2,_0x404283);_0x2419d4[_0x10b8ff(0x172)]&&(_0x3b3e34[_0x10b8ff(0x218)](_0x3b3e34[_0x10b8ff(0x13e)],_0x3b3e34[_0x10b8ff(0x13e)])?(_0x178910=_0x10b8ff(0x176)+_0x2707c2+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x3b3e34['ZpHIH'](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['AIilz'],_0x3b3e34[_0x10b8ff(0x21c)]),logger[_0x10b8ff(0x1d1)](_0x178910),process['exit'](0x1)):_0x2e38d7=_0x58c82e[_0x2c2b4b[_0x10b8ff(0x1d7)]]);const _0xbad6f=_0x2419d4[_0x10b8ff(0x144)];let _0x54f1f7=_0xbad6f[_0x2419d4[_0x10b8ff(0x240)]];_0xfb2ad8[_0x10b8ff(0x1d7)]&&(_0x3b3e34[_0x10b8ff(0xdc)](_0x3b3e34[_0x10b8ff(0x1c9)],_0x3b3e34['yrrnA'])?_0x5ad892['error'](_0x10b8ff(0x1c5)+_0x2c8f56+'\x20\x0a'+_0x2fef7c['stringify'](_0x925839[_0x10b8ff(0xd9)])):_0x54f1f7=_0xbad6f[_0xfb2ad8[_0x10b8ff(0x1d7)]]);global_registry['enableHubHa']=![];if(_0xfb2ad8[_0x10b8ff(0x162)]){if(_0x3b3e34[_0x10b8ff(0x1f6)](_0x3b3e34[_0x10b8ff(0x1a3)],_0x3b3e34['OngMI']))_0x4d5564=_0x3b3e34[_0x10b8ff(0x110)];else{const _0x214fc1=_0x3b3e34[_0x10b8ff(0xe5)][_0x10b8ff(0x1c0)]('|');let _0x39b114=0x0;while(!![]){switch(_0x214fc1[_0x39b114++]){case'0':global_registry[_0x10b8ff(0xb6)]=_0x3b3e34[_0x10b8ff(0x191)];continue;case'1':logger[_0x10b8ff(0x18b)](_0x3b3e34['bLyBi']);continue;case'2':global_registry[_0x10b8ff(0x184)]=!![];continue;case'3':global_registry[_0x10b8ff(0x1ac)]=_0x3b3e34[_0x10b8ff(0x21a)];continue;case'4':global_registry[_0x10b8ff(0x24b)]=_0x3b3e34[_0x10b8ff(0x123)];continue;}break;}}}if(_0x3b3e34[_0x10b8ff(0x165)](_0x391220,![])&&_0x3b3e34[_0x10b8ff(0x145)](_0x5605a8,![])){if(_0x3b3e34[_0x10b8ff(0x24f)](_0x3b3e34[_0x10b8ff(0x1e3)],_0x3b3e34['LIzoe'])){if(_0x3b3e34[_0x10b8ff(0xc1)](_0x54f1f7,undefined)){if(_0x3b3e34[_0x10b8ff(0x224)](_0x3b3e34['QkJAU'],_0x3b3e34['Yfuwf'])){const _0x28edac={};_0x28edac[_0x10b8ff(0x113)]=_0x3b3e34['VpSlV'],_0x28edac[_0x10b8ff(0x1ae)]=_0x3b3e34['xrXAT'];const _0x27a8d6={};_0x27a8d6[_0x10b8ff(0x113)]=_0x3b3e34['RKfsy'],_0x27a8d6[_0x10b8ff(0x1ae)]=_0x3b3e34[_0x10b8ff(0x1ef)];const _0x21b73e={};_0x21b73e[_0x10b8ff(0x113)]=_0x3b3e34['KDfkv'],_0x21b73e['type']=_0x3b3e34[_0x10b8ff(0x1ef)];const _0x4464bd={};_0x4464bd[_0x10b8ff(0x113)]=_0x3b3e34[_0x10b8ff(0xbc)],_0x4464bd['type']=_0x3b3e34['xrXAT'];const _0x5916cb={};_0x5916cb[_0x10b8ff(0x113)]=_0x3b3e34[_0x10b8ff(0x150)],_0x5916cb[_0x10b8ff(0x1ae)]=_0x3b3e34['xrXAT'];const _0x309c26={};_0x309c26[_0x10b8ff(0x113)]=_0x3b3e34[_0x10b8ff(0x120)],_0x309c26[_0x10b8ff(0x1ae)]=_0x3b3e34['xrXAT'];const _0x24d0a7={};_0x24d0a7[_0x10b8ff(0x113)]=_0x3b3e34[_0x10b8ff(0xf5)],_0x24d0a7[_0x10b8ff(0x1ae)]=_0x3b3e34['PfZFe'],_0x24d0a7['default']=![];const _0x14fd26={};_0x14fd26[_0x10b8ff(0x113)]=_0x3b3e34[_0x10b8ff(0x23f)],_0x14fd26[_0x10b8ff(0x1ae)]=_0x3b3e34[_0x10b8ff(0x107)],_0x14fd26[_0x10b8ff(0x147)]=![];const _0x185eb4={};_0x185eb4[_0x10b8ff(0x113)]=_0x3b3e34[_0x10b8ff(0x1eb)],_0x185eb4[_0x10b8ff(0x1ae)]=_0x3b3e34[_0x10b8ff(0x107)],_0x185eb4[_0x10b8ff(0x147)]=![];const _0x91ac6a={};return _0x91ac6a[_0x10b8ff(0x1ff)]=_0x28edac,_0x91ac6a[_0x10b8ff(0x1e9)]=_0x27a8d6,_0x91ac6a[_0x10b8ff(0x15f)]=_0x21b73e,_0x91ac6a['cloud-provider']=_0x4464bd,_0x91ac6a[_0x10b8ff(0x10f)]=_0x5916cb,_0x91ac6a['private-grid']=_0x309c26,_0x91ac6a['skip-tls-cert-verify']=_0x24d0a7,_0x91ac6a[_0x10b8ff(0x180)]=_0x14fd26,_0x91ac6a[_0x10b8ff(0x21e)]=_0x185eb4,_0x45c7bc[_0x10b8ff(0xd8)](_0x18ab87[_0x10b8ff(0xd0)])[_0x10b8ff(0x9b)](_0x4d833d)[_0x10b8ff(0x9c)](_0x91ac6a)[_0x10b8ff(0x244)](_0x3b3e34[_0x10b8ff(0x135)])['argv'];}else _0x178910=_0x3b3e34[_0x10b8ff(0x21b)],await _0x3b3e34[_0x10b8ff(0x1db)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34[_0x10b8ff(0x167)],_0x3b3e34[_0x10b8ff(0x21c)]),logger['error'](_0x178910),process['exit'](0x1);}global_registry[_0x10b8ff(0x12c)]=_0x54f1f7['id'],_0x178910='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x2707c2+'\x20using\x20\x27'+_0x54f1f7[_0x10b8ff(0x208)]+_0x10b8ff(0x1c2),logger['info'](_0x178910);const _0x2d7927={};_0x2d7927[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x2d7927['message']=_0x178910,webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x2d7927),_0x521d6b=_0x54f1f7[_0x10b8ff(0x214)],_0x1ca410=_0x54f1f7['clusterName'],_0xbfca8c=_0x54f1f7['region'],_0x47455e=_0x54f1f7[_0x10b8ff(0x117)],_0x298765=_0x54f1f7[_0x10b8ff(0xdd)],_0x1e3b2c=_0x54f1f7[_0x10b8ff(0xdb)],_0x30fda7=_0x54f1f7[_0x10b8ff(0x161)],_0x1a877d=_0x54f1f7[_0x10b8ff(0x20e)],_0xaf4697=_0x54f1f7[_0x10b8ff(0x11b)],_0x53af6f=_0x54f1f7[_0x10b8ff(0x158)],_0x5bd2d3=_0x54f1f7[_0x10b8ff(0x219)],_0x40cc9b=_0x2419d4[_0x10b8ff(0xe2)],_0x5ec0a6=_0x2419d4['browserVersion'];if(_0x1e3b2c&&_0x3b3e34[_0x10b8ff(0x205)](_0x1e3b2c[_0x10b8ff(0x140)],0x0)){if(_0x3b3e34[_0x10b8ff(0x194)](_0x3b3e34[_0x10b8ff(0xad)],_0x3b3e34[_0x10b8ff(0xad)]))_0x1e3b2c=null;else{const _0x41acef=_0x3b3e34[_0x10b8ff(0xb1)][_0x10b8ff(0x1c0)]('|');let _0x41a3d9=0x0;while(!![]){switch(_0x41acef[_0x41a3d9++]){case'0':_0x1c33b2=_0x3ebff8[_0x10b8ff(0x11b)];continue;case'1':_0x3b3e34[_0x10b8ff(0x16b)](_0x12548b[_0x10b8ff(0x229)],_0x5bbfea)&&_0xdcf392[_0x10b8ff(0x229)]&&(_0x3612cf[_0x10b8ff(0xae)]=!![]);continue;case'2':_0x5e1968=_0x10b8ff(0xcd)+_0x18e0dc;continue;case'3':_0x4f4dea=null;continue;case'4':_0x3b3e34[_0x10b8ff(0x179)](_0x42e0b0,_0x583cb4,_0x1bd775,_0x48cd89,_0x2ce453,_0x22bee8,_0x353d0e,_0x523d0e,_0x2fe764,_0x45d47c,_0x5ae8e5,_0x3301ae,_0xf06ee3['clusterAutoupgrade']);continue;case'5':_0x2b4881=_0x563d33['hubVersion'];continue;case'6':_0x440cc4=_0x1daade[_0x10b8ff(0x219)];continue;case'7':_0x1720eb[_0x10b8ff(0x18b)](_0x17ac98);continue;case'8':_0x3cfacc=null;continue;case'9':_0x637ac9=_0x1a2912[_0x10b8ff(0x158)];continue;case'10':_0x19330c=null;continue;case'11':_0x16112c=_0x2eacd9[_0x10b8ff(0x17f)];continue;case'12':_0x38015e=_0x5253ea[_0x10b8ff(0x117)];continue;case'13':const _0x4f663d={};_0x4f663d['type']=_0x38cc14[_0x10b8ff(0xbd)],_0x4f663d[_0x10b8ff(0x188)]=_0x4aab00,_0x1cbbb2[_0x10b8ff(0x100)](_0x52c804,_0x4f663d);continue;case'14':_0x1ff5b4['enableHubHa']&&_0x3b3e34[_0x10b8ff(0xa4)](_0x3f849b,_0x590667['kafkaUploader']);continue;case'15':_0x577160=_0x32e1e5['instanceType'];continue;}break;}}}_0x1a877d&&_0x3b3e34['YcmZp'](_0x1a877d[_0x10b8ff(0x140)],0x0)&&(_0x3b3e34[_0x10b8ff(0x9d)](_0x3b3e34[_0x10b8ff(0x199)],_0x3b3e34[_0x10b8ff(0x11a)])?(_0x4131e4[_0x10b8ff(0x18b)](_0x10b8ff(0x14f)+_0x4c69f5[_0x10b8ff(0xd2)]+_0x10b8ff(0xa0)),_0x58c829=![],_0xc7fbcf=!![]):_0x1a877d=null),_0x3b3e34['YPENP'](_0x54f1f7['privateGrid'],undefined)&&_0x54f1f7[_0x10b8ff(0x229)]&&(_0x3b3e34[_0x10b8ff(0x1df)](_0x3b3e34['hsOCB'],_0x3b3e34[_0x10b8ff(0x183)])?(_0x19bf13[_0x10b8ff(0x10f)]=_0x220139,_0x4c4d4e['cloudProvider']=_0x46ee96,_0x4a04a0['newCluster']=!![],_0x337d08[_0x10b8ff(0x233)]=_0x4f6b15[_0x10b8ff(0x1d5)]):global_registry[_0x10b8ff(0xae)]=!![]),_0x3b3e34['ghWEU'](updateGlobalRegistryWithConfig,_0x521d6b,_0x1ca410,_0xbfca8c,_0x47455e,_0x298765,_0xaf4697,_0x54f1f7,_0x40cc9b,_0x5ec0a6,_0x53af6f,_0x5bd2d3,_0xfb2ad8[_0x10b8ff(0x1d5)]),global_registry[_0x10b8ff(0x184)]&&(_0x3b3e34[_0x10b8ff(0xdc)](_0x3b3e34[_0x10b8ff(0x1f5)],_0x3b3e34[_0x10b8ff(0x1f5)])?_0x3b3e34[_0x10b8ff(0xa4)](updateGlobalRegistryForHubHa,_0x2419d4[_0x10b8ff(0xec)]):_0x2b8ed5=_0x3b3e34[_0x10b8ff(0xe8)]);}else _0x3b3e34[_0x10b8ff(0x18d)](_0x489e6f,_0x4e2208[_0x10b8ff(0xec)]);}else{if(_0x3b3e34[_0x10b8ff(0x103)](_0x5605a8,!![])){if(_0x3b3e34[_0x10b8ff(0xc6)](_0x3b3e34[_0x10b8ff(0x136)],_0x3b3e34[_0x10b8ff(0x22a)])){_0x178910=_0x10b8ff(0xcd)+_0x2707c2,logger[_0x10b8ff(0x18b)](_0x178910);const _0x38e65a={};_0x38e65a[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x38e65a[_0x10b8ff(0x188)]=_0x178910,webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x38e65a),_0x47455e=_0x54f1f7[_0x10b8ff(0x117)],_0x298765=_0x54f1f7[_0x10b8ff(0xdd)],_0x1e3b2c=null,_0x30fda7=null,_0x1a877d=null,_0xaf4697=_0x54f1f7['s3bucket'],_0x53af6f=_0x54f1f7[_0x10b8ff(0x158)],_0x5bd2d3=_0x54f1f7[_0x10b8ff(0x219)],_0x40cc9b=_0x2419d4[_0x10b8ff(0xe2)],_0x5ec0a6=_0x2419d4[_0x10b8ff(0x17f)];if(_0x3b3e34[_0x10b8ff(0x96)](_0x54f1f7[_0x10b8ff(0x229)],undefined)&&_0x54f1f7[_0x10b8ff(0x229)]){if(_0x3b3e34[_0x10b8ff(0x1b3)](_0x3b3e34[_0x10b8ff(0xa2)],_0x3b3e34['BFEec'])){const _0x25dcbf={'azure.workload.identity/use':_0x3b3e34['nPvmO'],..._0x3dd117[0x0][_0x10b8ff(0x121)]['template'][_0x10b8ff(0x119)]['labels']};_0x581da6[0x0][_0x10b8ff(0x121)][_0x10b8ff(0x193)][_0x10b8ff(0x119)][_0x10b8ff(0x253)]=_0x25dcbf,_0x3790b9[0x0][_0x10b8ff(0x121)][_0x10b8ff(0x193)]['spec'][_0x10b8ff(0x1be)]=_0x3b3e34['hbNHp'];}else global_registry['isPrivateGrid']=!![];}_0x3b3e34['gOHlp'](updateGlobalRegistryWithConfig,_0x521d6b,_0x1ca410,_0xbfca8c,_0x47455e,_0x298765,_0xaf4697,_0x54f1f7,_0x40cc9b,_0x5ec0a6,_0x53af6f,_0x5bd2d3,_0xfb2ad8['clusterAutoupgrade']),global_registry[_0x10b8ff(0x184)]&&(_0x3b3e34[_0x10b8ff(0x251)](_0x3b3e34[_0x10b8ff(0x247)],_0x3b3e34[_0x10b8ff(0x12b)])?_0x19d57e[_0x10b8ff(0x18b)]('Found\x20Subnets:\x20'+_0x48a4c5[_0x10b8ff(0x1a8)](_0x1f2844)+'\x20'):_0x3b3e34[_0x10b8ff(0xbf)](updateGlobalRegistryForHubHa,_0x2419d4[_0x10b8ff(0x142)]));}else _0x1711bc=!![];}else{if(_0x3b3e34[_0x10b8ff(0x11f)](_0x3b3e34[_0x10b8ff(0xb3)],_0x3b3e34[_0x10b8ff(0xb3)])){const _0x5036d4={};_0x5036d4['type']=_0x21cd92[_0x10b8ff(0xbd)],_0x5036d4[_0x10b8ff(0x188)]=_0x5cc190,_0x493afc['sendEventToBackend'](_0x53af58,_0x5036d4,_0x3b3e34['ciuTQ'],!![]);}else{const _0x37a8ed=_0x3b3e34[_0x10b8ff(0x187)][_0x10b8ff(0x1c0)]('|');let _0x226246=0x0;while(!![]){switch(_0x37a8ed[_0x226246++]){case'0':global_registry[_0x10b8ff(0x1bf)]=_0xbfca8c;continue;case'1':global_registry[_0x10b8ff(0xd2)]=_0x1ca410;continue;case'2':const _0x9b1f03={};_0x9b1f03[_0x10b8ff(0x1ae)]=WS_EVENTS['CLI_RUN_STARTED'],_0x9b1f03[_0x10b8ff(0x188)]=_0x3b3e34['SPeub'],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x9b1f03);continue;case'3':global_registry[_0x10b8ff(0xe2)]=_0x2419d4[_0x10b8ff(0xe2)];continue;case'4':logger[_0x10b8ff(0x18b)](_0x178910);continue;case'5':global_registry[_0x10b8ff(0x214)]=_0x521d6b;continue;case'6':global_registry[_0x10b8ff(0x17f)]=_0x2419d4[_0x10b8ff(0x17f)];continue;case'7':const _0x25d3b3={};_0x25d3b3[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x25d3b3[_0x10b8ff(0x188)]=_0x178910,webSocketUtils['sendEventToBackend'](_0x45e0e2,_0x25d3b3);continue;case'8':_0x178910='Spawning\x20the\x20grid\x20'+_0x2707c2+_0x10b8ff(0x192)+_0x1ca410+'\x27';continue;}break;}}}}const _0x380bd1=await _0x3b3e34[_0x10b8ff(0x17e)](getCloudProviderObject,_0x521d6b,_0x1ca410,_0x2707c2,_0x45e0e2,webSocketUtils,_0xfb2ad8);_0x3b3e34['QqzZl'](_0x521d6b,AZURE)&&(_0x3b3e34[_0x10b8ff(0x165)](_0x3b3e34['EIpfV'],_0x3b3e34['EIpfV'])?_0x380bd1['sendResourceDataToHST']():_0x4c5e47=null);let _0x11f791;if(_0x3b3e34[_0x10b8ff(0x251)](_0x391220,![])){_0x178910=_0x10b8ff(0x245)+_0xbfca8c+').';const _0xa0f716={};_0xa0f716['type']=WS_EVENTS['LOG'],_0xa0f716[_0x10b8ff(0x188)]=_0x178910,webSocketUtils['sendEventToBackend'](_0x45e0e2,_0xa0f716),logger[_0x10b8ff(0x18b)](_0x178910);const _0x285366=await _0x380bd1[_0x10b8ff(0xaf)]();if(_0x285366){if(_0x3b3e34['adZcK'](_0x3b3e34['cbmdT'],_0x3b3e34[_0x10b8ff(0x133)])){const _0x202af6={};_0x202af6[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x202af6['message']=_0x10b8ff(0xcc)+_0x1ca410+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x202af6,_0x3b3e34[_0x10b8ff(0x216)]),logger[_0x10b8ff(0x18b)](_0x10b8ff(0xcc)+_0x1ca410+_0x10b8ff(0xd1)),_0x391220=!![];if(_0x3b3e34[_0x10b8ff(0x1f6)](_0x5605a8,!![])){if(_0x3b3e34[_0x10b8ff(0x1e8)](_0x3b3e34['OyWMp'],_0x3b3e34[_0x10b8ff(0x112)]))_0x4f91d1[_0x10b8ff(0xae)]=!![];else throw new Error(_0x10b8ff(0xcc)+_0x1ca410+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else{const _0x533d0e={};_0x533d0e['type']=_0x5e6254[_0x10b8ff(0xbd)],_0x533d0e[_0x10b8ff(0x188)]='Cluster\x20'+_0x266324+_0x10b8ff(0xd1),_0x256021[_0x10b8ff(0x100)](_0xe157d9,_0x533d0e,_0x3b3e34[_0x10b8ff(0x216)]),_0x31953d[_0x10b8ff(0x18b)](_0x10b8ff(0xcc)+_0x283bd3+_0x10b8ff(0xd1)),_0x5df95d=!![];if(_0x3b3e34[_0x10b8ff(0x115)](_0x194c9f,!![]))throw new _0x32da37(_0x10b8ff(0xcc)+_0x34bdfb+_0x10b8ff(0x248));}}else{const _0x261e12={};_0x261e12[_0x10b8ff(0x1ae)]=WS_EVENTS['LOG'],_0x261e12[_0x10b8ff(0x188)]=_0x3b3e34['oTLKD'],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x261e12),logger['info'](_0x3b3e34[_0x10b8ff(0xab)]);const _0x52f96d=_0x3b3e34[_0x10b8ff(0xc3)](_0x1e3b2c,null)&&_0x3b3e34['wUDhl'](_0x1e3b2c,undefined),_0x374de2=_0x3b3e34[_0x10b8ff(0xa3)](_0x1a877d,null)&&_0x3b3e34['YPENP'](_0x1a877d,undefined)&&_0x3b3e34[_0x10b8ff(0x18c)](_0x1a877d['length'],0x0);if(_0x52f96d){_0x3b3e34['EzeYQ'](_0x374de2,![])&&(_0x178910=_0x3b3e34['oIONe'],await _0x3b3e34[_0x10b8ff(0x11e)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['Dxvlr'],_0x3b3e34[_0x10b8ff(0x21c)]),logger[_0x10b8ff(0x1d1)](_0x178910),process[_0x10b8ff(0xfb)](0x1));const _0x1deee3=await _0x380bd1[_0x10b8ff(0x22d)](_0x1e3b2c);_0x3b3e34[_0x10b8ff(0xac)](_0x1deee3,![])?(_0x178910=_0x3b3e34[_0x10b8ff(0x177)],await _0x3b3e34[_0x10b8ff(0x227)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['TFDWN'],_0x3b3e34[_0x10b8ff(0x21c)]),logger['error'](_0x178910),process[_0x10b8ff(0xfb)](0x1)):logger[_0x10b8ff(0x18b)](_0x10b8ff(0x204)+_0x1e3b2c+'\x20');const _0xade4c7=await _0x380bd1[_0x10b8ff(0x18f)](_0x1a877d,_0x1e3b2c);_0x3b3e34[_0x10b8ff(0x103)](_0xade4c7[0x0],![])?(_0x178910=_0x10b8ff(0x1a9)+JSON['stringify'](_0xade4c7[0x1])+_0x10b8ff(0x1dd)+_0x1e3b2c+_0x10b8ff(0x174),await _0x3b3e34[_0x10b8ff(0x181)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['pOyQN'],_0x3b3e34[_0x10b8ff(0x21c)]),logger[_0x10b8ff(0x1d1)](_0x178910),process[_0x10b8ff(0xfb)](0x1)):logger[_0x10b8ff(0x18b)](_0x10b8ff(0x242)+JSON['stringify'](_0x1a877d)+'\x20'),[_0x1e3b2c,_0x1a877d]=await _0x380bd1[_0x10b8ff(0x11c)](_0x1e3b2c,_0x1a877d);}else{const _0x192f35=_0x3b3e34[_0x10b8ff(0x166)][_0x10b8ff(0x1c0)]('|');let _0x268e1a=0x0;while(!![]){switch(_0x192f35[_0x268e1a++]){case'0':const _0x11ef19={};_0x11ef19['type']=WS_EVENTS[_0x10b8ff(0xbd)],_0x11ef19[_0x10b8ff(0x188)]=_0x3b3e34['TaDac'],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x11ef19);continue;case'1':logger[_0x10b8ff(0x18b)](_0x3b3e34['WpQdv']);continue;case'2':const _0x4e7d45={};_0x4e7d45[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x4e7d45[_0x10b8ff(0x188)]=_0x3b3e34[_0x10b8ff(0xe9)],webSocketUtils['sendEventToBackend'](_0x45e0e2,_0x4e7d45);continue;case'3':[_0x1e3b2c,_0x1a877d]=await _0x380bd1[_0x10b8ff(0x11c)](_0x1e3b2c,_0x1a877d);continue;case'4':logger['info'](_0x3b3e34[_0x10b8ff(0x20d)]);continue;}break;}}}}_0x391220&&_0x3b3e34['gkmfu'](_0x521d6b,AZURE)&&(await _0x380bd1[_0x10b8ff(0x1da)](),await _0x380bd1[_0x10b8ff(0x1a6)]());const [_0x4f3f52,_0x3ca2d3,_0x4d9e13,_0x582c43,_0x59ddf5,_0x3f95a0,_0x31b8a3]=await _0x3b3e34[_0x10b8ff(0x1f4)](createK8sClient,_0x380bd1,_0xfb2ad8[_0x10b8ff(0x9e)]);_0x3b3e34['tdHzM'](_0x391220,![])&&_0x3b3e34[_0x10b8ff(0x22b)](_0x521d6b,AWS)&&(global_registry[_0x10b8ff(0xba)]=!![],_0x11f791=await _0x380bd1['setupAutoscaler'](_0x4f3f52,_0xfb2ad8));if(_0x3b3e34['AMvQF'](_0x391220,![])&&global_registry[_0x10b8ff(0x184)])try{await _0x380bd1[_0x10b8ff(0x1bd)](_0x3f95a0,_0x31b8a3,_0xfb2ad8,_0x1e3b2c,_0x1a877d);const _0xe97ca0={};_0xe97ca0['type']=WS_EVENTS[_0x10b8ff(0xbd)],_0xe97ca0['message']=_0x3b3e34[_0x10b8ff(0x20b)],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0xe97ca0);!await _0x3b3e34['bRuNq'](namespaceExists,_0x4f3f52,global_registry[_0x10b8ff(0xb6)])&&await _0x3b3e34[_0x10b8ff(0xb2)](createNamespace,_0x4f3f52,global_registry[_0x10b8ff(0xb6)]);logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0xa1)]);let _0x2bef39=await fs[_0x10b8ff(0x94)](path[_0x10b8ff(0xe7)](__dirname,_0x3b3e34[_0x10b8ff(0xc0)],_0x3b3e34[_0x10b8ff(0x16c)],_0x3b3e34['YVfsI'],_0x3b3e34[_0x10b8ff(0x1e2)]),_0x3b3e34[_0x10b8ff(0x185)]);_0x2bef39=_0x2bef39[_0x10b8ff(0x1aa)](/<RedisClientPassword>/g,_0x3b3e34[_0x10b8ff(0xa4)](encodeBase64,global_registry[_0x10b8ff(0x1ac)])),_0x2bef39=_0x2bef39[_0x10b8ff(0x1aa)](/<KafkaClientPassword>/g,_0x3b3e34[_0x10b8ff(0xbf)](encodeBase64,global_registry[_0x10b8ff(0x24b)])),_0x2bef39=_0x2bef39[_0x10b8ff(0x1aa)](/<BstackUsername>/g,_0x3b3e34['TiqfG'](encodeBase64,global_registry[_0x10b8ff(0x12a)])),_0x2bef39=_0x2bef39['replace'](/<BstackAccessKey>/g,_0x3b3e34[_0x10b8ff(0x1a5)](encodeBase64,global_registry[_0x10b8ff(0x118)]));const _0x1a5ecc=yaml[_0x10b8ff(0x109)](_0x2bef39);await _0x3b3e34[_0x10b8ff(0x186)](kubeApply,_0x1a5ecc,_0x31b8a3),logger[_0x10b8ff(0x18b)](_0x3b3e34['oXUdZ']);let _0x2d4643=_0x3b3e34[_0x10b8ff(0x105)];if(_0x3b3e34[_0x10b8ff(0x9d)](_0x521d6b,AZURE))_0x2d4643=_0x3b3e34[_0x10b8ff(0x198)];else _0x3b3e34['hckvR'](_0x521d6b,GCP)&&(_0x2d4643=_0x3b3e34[_0x10b8ff(0x110)]);logger['info'](_0x3b3e34[_0x10b8ff(0xd5)]);let _0x146e27=await fs[_0x10b8ff(0x94)](path[_0x10b8ff(0xe7)](__dirname,_0x3b3e34[_0x10b8ff(0xc0)],_0x3b3e34[_0x10b8ff(0x16c)],_0x3b3e34[_0x10b8ff(0x23e)],_0x3b3e34[_0x10b8ff(0x151)]),_0x3b3e34[_0x10b8ff(0x185)]);_0x146e27=_0x146e27[_0x10b8ff(0x1aa)](/<HubHaNameSpace>/g,global_registry[_0x10b8ff(0xb6)]),_0x146e27=_0x146e27[_0x10b8ff(0x1aa)](/<StorageClassName>/g,_0x2d4643);const _0x45f87c=yaml[_0x10b8ff(0x109)](_0x146e27);await _0x3b3e34[_0x10b8ff(0xdf)](kubeApply,_0x45f87c,_0x31b8a3),logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x23c)]),logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x163)]);let _0x225db3=await fs[_0x10b8ff(0x94)](path[_0x10b8ff(0xe7)](__dirname,_0x3b3e34['RlHqq'],_0x3b3e34[_0x10b8ff(0x16c)],_0x3b3e34[_0x10b8ff(0x23e)],_0x3b3e34['LfsWz']),_0x3b3e34['ymKXS']);_0x225db3=_0x225db3['replace'](/<HubHaNameSpace>/g,global_registry[_0x10b8ff(0xb6)]),_0x225db3=_0x225db3['replace'](/<StorageClassName>/g,_0x2d4643);const _0x2f695f=yaml[_0x10b8ff(0x109)](_0x225db3);await _0x3b3e34[_0x10b8ff(0x1f4)](kubeApply,_0x2f695f,_0x31b8a3),logger[_0x10b8ff(0x18b)](_0x3b3e34['jsnlR']),logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x155)]);let _0x2f2d33=await fs[_0x10b8ff(0x94)](path[_0x10b8ff(0xe7)](__dirname,_0x3b3e34[_0x10b8ff(0xc0)],_0x3b3e34[_0x10b8ff(0x16c)],_0x3b3e34[_0x10b8ff(0x23e)],_0x3b3e34[_0x10b8ff(0x228)]),_0x3b3e34[_0x10b8ff(0x185)]);_0x2f2d33=_0x2f2d33['replace'](/<UploaderImageVersion>/g,global_registry[_0x10b8ff(0x1f7)]),_0x2f2d33=_0x2f2d33[_0x10b8ff(0x1aa)](/<HubHaNameSpace>/g,global_registry[_0x10b8ff(0xb6)]);const _0x474aef=yaml[_0x10b8ff(0x109)](_0x2f2d33);_0x3b3e34[_0x10b8ff(0x101)](global_registry[_0x10b8ff(0x214)],AZURE)&&(_0x474aef[0x0][_0x10b8ff(0x121)][_0x10b8ff(0x193)][_0x10b8ff(0x119)][_0x10b8ff(0x253)]={'azure.workload.identity/use':_0x3b3e34['nPvmO'],..._0x474aef[0x0][_0x10b8ff(0x121)][_0x10b8ff(0x193)]['metadata'][_0x10b8ff(0x253)]},_0x474aef[0x0][_0x10b8ff(0x121)][_0x10b8ff(0x193)][_0x10b8ff(0x121)][_0x10b8ff(0x1be)]=_0x3b3e34['hbNHp']);await _0x3b3e34[_0x10b8ff(0x1c6)](kubeApply,_0x474aef,_0x31b8a3),logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x114)]);const _0x329931={};_0x329931[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x329931[_0x10b8ff(0x188)]=_0x3b3e34[_0x10b8ff(0x170)],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x329931),logger['info'](_0x3b3e34[_0x10b8ff(0x237)]);}catch(_0x365a71){const _0x1c74b4=_0x3b3e34[_0x10b8ff(0x1e6)][_0x10b8ff(0x1c0)]('|');let _0x4ae808=0x0;while(!![]){switch(_0x1c74b4[_0x4ae808++]){case'0':logger['error'](_0x178910);continue;case'1':await _0x380bd1[_0x10b8ff(0x225)](_0x4f3f52,global_registry[_0x10b8ff(0x1bf)]);continue;case'2':_0x178910=_0x10b8ff(0x1e1)+_0x365a71[_0x10b8ff(0x188)];continue;case'3':await _0x3b3e34[_0x10b8ff(0x227)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes['ERROR'],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34[_0x10b8ff(0xf9)],_0x3b3e34[_0x10b8ff(0x21c)]);continue;case'4':process[_0x10b8ff(0xfb)](0x1);continue;}break;}}try{_0x527826=_0x3b3e34[_0x10b8ff(0xe1)](kebabCase,_0x2707c2),logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x169)]);const _0x5cf03b={};_0x5cf03b[_0x10b8ff(0x1ae)]=WS_EVENTS['LOG'],_0x5cf03b[_0x10b8ff(0x188)]=_0x3b3e34['cIJAv'],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x5cf03b);if(_0x3b3e34[_0x10b8ff(0xc2)](_0x527826,_0x3b3e34[_0x10b8ff(0x257)])){const _0x34da55={};_0x34da55[_0x10b8ff(0x1b6)]=_0x3b3e34[_0x10b8ff(0x195)],_0x34da55[_0x10b8ff(0x1ed)]=_0x3b3e34[_0x10b8ff(0x195)];const _0x55c478={};_0x55c478[_0x10b8ff(0x208)]=_0x527826,_0x55c478[_0x10b8ff(0x1b7)]=_0x34da55;const _0x4014aa={};_0x4014aa['metadata']=_0x55c478;const _0x45f4d0=_0x4014aa,_0x19f353={};_0x19f353['body']=_0x45f4d0,await _0x4f3f52['createNamespace'](_0x19f353),logger[_0x10b8ff(0x18b)](_0x3b3e34['lcYjW']);}const _0x36b734={};_0x36b734['type']=WS_EVENTS['LOG'],_0x36b734[_0x10b8ff(0x188)]=_0x3b3e34[_0x10b8ff(0xb4)],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x36b734);const _0xfc53cf={};_0xfc53cf['type']=WS_EVENTS[_0x10b8ff(0xbd)],_0xfc53cf[_0x10b8ff(0x188)]=_0x3b3e34[_0x10b8ff(0x15e)],webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0xfc53cf),logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x175)]);let _0x3372da={};_0x3b3e34['eihvi'](_0x521d6b,AZURE)&&(_0x3372da={'clientId':await _0x380bd1[_0x10b8ff(0xb0)]('turboscale-managed-identity-'+_0x1ca410)});await _0x3b3e34[_0x10b8ff(0x24d)](addGridComponents,_0x4f3f52,_0x3ca2d3,_0x4d9e13,_0x582c43,_0x527826,_0x1ca410,_0x11f791,_0x59ddf5,_0x31b8a3,_0x3372da),_0x178910=_0x3b3e34[_0x10b8ff(0x1f2)],logger[_0x10b8ff(0x18b)](_0x178910);const _0x468eb6={};_0x468eb6[_0x10b8ff(0x1ae)]=WS_EVENTS['LOG'],_0x468eb6['message']=_0x178910,webSocketUtils['sendEventToBackend'](_0x45e0e2,_0x468eb6),_0x178910=_0x3b3e34['FGEOT'],logger['info'](_0x178910);const _0x5386b5={};_0x5386b5[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x5386b5[_0x10b8ff(0x188)]=_0x178910,webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x5386b5),await _0x3b3e34[_0x10b8ff(0x104)](waitForDeployment,_0x3ca2d3,_0x527826,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4b0eac=await _0x3b3e34[_0x10b8ff(0xff)](getNamespaceUID,_0x4f3f52,_0x527826),_0x2f90a6=global_registry[_0x10b8ff(0xae)]?_0x3b3e34[_0x10b8ff(0x1d3)]:_0x3b3e34['UuJeD'],_0x121522={};_0x121522[_0x10b8ff(0x208)]=_0x2f90a6,_0x121522[_0x10b8ff(0xc8)]=_0x3b3e34[_0x10b8ff(0x143)];const _0x4ab180=await _0x4f3f52[_0x10b8ff(0x159)](_0x121522);let _0x5e99dc=_0x380bd1['getGridHostname'](_0x4ab180)+'/'+_0x527826,_0x4126f0=_0x3b3e34[_0x10b8ff(0xe8)];try{const _0x307fdc='https://'+AG_API_URL+_0x10b8ff(0x1ec)+_0x4b0eac,_0x34e4f7=await _0x3b3e34['bRuNq'](got,_0x307fdc,_0x4c67de);(_0x3b3e34['yNLkT'](_0x34e4f7,null)||_0x3b3e34['xIpgA'](_0x34e4f7,undefined))&&(_0x178910=_0x3b3e34[_0x10b8ff(0x19a)],await _0x3b3e34[_0x10b8ff(0x227)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes['ERROR'],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34['nXuTi'],_0x3b3e34[_0x10b8ff(0x21c)]),logger[_0x10b8ff(0x1d1)](_0x178910),process[_0x10b8ff(0xfb)](0x1));_0x3b3e34[_0x10b8ff(0x1e8)](_0x34e4f7['statusCode'],0x191)&&(_0x178910=_0x3b3e34['dGjBv'],await _0x3b3e34[_0x10b8ff(0x241)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34['fBByk'],_0x3b3e34['HdbHk'],_0x3b3e34[_0x10b8ff(0x21c)]),logger[_0x10b8ff(0x1d1)](_0x178910),process['exit'](0x1));_0x3b3e34[_0x10b8ff(0x93)](_0x34e4f7[_0x10b8ff(0x1cf)],0xc8)&&(_0x178910='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x34e4f7),await _0x3b3e34[_0x10b8ff(0x1db)](reportToGalactusAndSendToEDS,_0xfb2ad8,_0x45e0e2,_0x178910,messageTypes[_0x10b8ff(0xf1)],_0x3b3e34[_0x10b8ff(0x129)],_0x3b3e34[_0x10b8ff(0x246)],_0x3b3e34[_0x10b8ff(0x21c)]),logger['error'](_0x178910),process[_0x10b8ff(0xfb)](0x1));const _0x4fc308=JSON[_0x10b8ff(0xa9)](_0x34e4f7[_0x10b8ff(0xa7)]);_0x4fc308[_0x10b8ff(0x1f1)]&&(_0x5e99dc=_0x4fc308[_0x10b8ff(0x1f1)],_0x4126f0=_0x3b3e34['Afjbz']),global_registry['isPrivateGrid']&&(_0x4126f0=_0x3b3e34[_0x10b8ff(0xe8)]);}catch(_0x34b518){}_0x178910=_0x10b8ff(0x1ba)+_0x5e99dc+'\x20',logger['info'](_0x178910);const _0x204fe5={};_0x204fe5[_0x10b8ff(0x1ae)]=WS_EVENTS[_0x10b8ff(0xbd)],_0x204fe5[_0x10b8ff(0x188)]=_0x178910,webSocketUtils['sendEventToBackend'](_0x45e0e2,_0x204fe5),_0x178910=_0x10b8ff(0x234)+_0x4126f0+_0x10b8ff(0x203)+_0x5e99dc+_0x10b8ff(0x249),logger['info'](_0x178910);const _0x3909e4={};_0x3909e4['type']=WS_EVENTS[_0x10b8ff(0xbd)],_0x3909e4[_0x10b8ff(0x188)]=_0x178910,webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x3909e4);const _0x26a9a9={};_0x26a9a9[_0x10b8ff(0x1ae)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x26a9a9['message']=_0x10b8ff(0x14d)+_0x5e99dc,webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x26a9a9),await webSocketUtils['delay'](0x7d0);}catch(_0x4c6d3f){logger['error'](_0x10b8ff(0x1ce)+_0x4c6d3f+'\x20\x0a'+JSON[_0x10b8ff(0x1a8)](_0x4c6d3f['stack']));if(_0x3b3e34[_0x10b8ff(0x15a)](_0x391220,![]))try{logger[_0x10b8ff(0x18b)](_0x3b3e34[_0x10b8ff(0x1c4)]),await _0x3b3e34[_0x10b8ff(0x1fc)](removeGridComponents,_0x4f3f52,_0x3ca2d3,_0x4d9e13,_0x582c43,_0x527826),await _0x380bd1['deleteCluster'](_0x4f3f52,global_registry[_0x10b8ff(0x1bf)]);}catch(_0x1fd0fd){logger[_0x10b8ff(0x1d1)](_0x10b8ff(0x1c5)+_0x1fd0fd+'\x20\x0a'+JSON[_0x10b8ff(0x1a8)](_0x1fd0fd[_0x10b8ff(0xd9)]));}throw _0x4c6d3f;}}catch(_0x12c1ed){const _0x27cb1f='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x12c1ed+'\x20\x0a'+JSON[_0x10b8ff(0x1a8)](_0x12c1ed['stack']);if(_0x45e0e2){const _0x37fc81={};_0x37fc81[_0x10b8ff(0x1ae)]=WS_EVENTS['LOG'],_0x37fc81[_0x10b8ff(0x188)]=_0x27cb1f,webSocketUtils[_0x10b8ff(0x100)](_0x45e0e2,_0x37fc81,_0x3b3e34[_0x10b8ff(0x21c)],!![]);}await webSocketUtils[_0x10b8ff(0x1fd)](0x7d0);const _0xc0e43e={};_0xc0e43e[_0x10b8ff(0x1d1)]=_0x27cb1f,await _0x3b3e34[_0x10b8ff(0x168)](sendInstrumentationEvent,_0xfb2ad8,_0x3b3e34[_0x10b8ff(0x129)],messageTypes['ERROR'],_0x3b3e34[_0x10b8ff(0x160)],_0xc0e43e,_0xfb2ad8),logger[_0x10b8ff(0x1d1)](_0x27cb1f);}process[_0x10b8ff(0xfb)](0x0);};
@@ -1 +1 @@
1
- const a10_0x5e7582=a10_0x56b4;function a10_0x56b4(_0x47f26c,_0x494c5b){const _0x3562a=a10_0x3562();return a10_0x56b4=function(_0x56b486,_0x30bff2){_0x56b486=_0x56b486-0x18a;let _0x3e9fcf=_0x3562a[_0x56b486];return _0x3e9fcf;},a10_0x56b4(_0x47f26c,_0x494c5b);}(function(_0x42483b,_0x2d22d8){const _0x2a2eb9=a10_0x56b4,_0x3062c6=_0x42483b();while(!![]){try{const _0x4af6c9=-parseInt(_0x2a2eb9(0x18b))/0x1+-parseInt(_0x2a2eb9(0x197))/0x2+-parseInt(_0x2a2eb9(0x18a))/0x3*(parseInt(_0x2a2eb9(0x19a))/0x4)+-parseInt(_0x2a2eb9(0x19f))/0x5*(-parseInt(_0x2a2eb9(0x19e))/0x6)+parseInt(_0x2a2eb9(0x18f))/0x7+-parseInt(_0x2a2eb9(0x192))/0x8*(parseInt(_0x2a2eb9(0x19b))/0x9)+parseInt(_0x2a2eb9(0x193))/0xa;if(_0x4af6c9===_0x2d22d8)break;else _0x3062c6['push'](_0x3062c6['shift']());}catch(_0x9d0e12){_0x3062c6['push'](_0x3062c6['shift']());}}}(a10_0x3562,0xc8c7d));function a10_0x3562(){const _0x45bc2c=['2171142kJVoAK','recommendCommands','delete_commands','48NoPrZF','144285etroyy','9oEuuad','265509wwRYsF','usage','rucpg','delete','777161arpanD','help','handler','40Kxqerb','43296170mkbdGs','WyTQo','demandCommand','List\x20Grid\x20resources.','2059792ySXNZY','../config/constants','commandDir','1796672bFCjWA'];a10_0x3562=function(){return _0x45bc2c;};return a10_0x3562();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x5e7582(0x198));exports['command']=a10_0x5e7582(0x18e),exports['desc']=a10_0x5e7582(0x196),exports['builder']=function(_0x2bf778){const _0x47c3d3=a10_0x5e7582,_0x39141c={};_0x39141c['WyTQo']=_0x47c3d3(0x19d),_0x39141c[_0x47c3d3(0x18d)]=_0x47c3d3(0x190);const _0x2ffb2c=_0x39141c;return _0x2bf778[_0x47c3d3(0x18c)](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47c3d3(0x199)](_0x2ffb2c[_0x47c3d3(0x194)])[_0x47c3d3(0x195)]()[_0x47c3d3(0x19c)]()['strict']()[_0x47c3d3(0x190)](_0x2ffb2c[_0x47c3d3(0x18d)]);},exports[a10_0x5e7582(0x191)]=function(_0xb56a03){};
1
+ function a10_0x5163(_0x89c99,_0x521cbd){const _0x65dba0=a10_0x65db();return a10_0x5163=function(_0x51635c,_0xf7313b){_0x51635c=_0x51635c-0x1ec;let _0x3c252f=_0x65dba0[_0x51635c];return _0x3c252f;},a10_0x5163(_0x89c99,_0x521cbd);}const a10_0x56c102=a10_0x5163;(function(_0x1b397b,_0xfae12c){const _0xa89d3a=a10_0x5163,_0x3f24d7=_0x1b397b();while(!![]){try{const _0x2ead2d=-parseInt(_0xa89d3a(0x1fb))/0x1*(-parseInt(_0xa89d3a(0x1fc))/0x2)+-parseInt(_0xa89d3a(0x1f7))/0x3+parseInt(_0xa89d3a(0x1ef))/0x4+parseInt(_0xa89d3a(0x1fe))/0x5+parseInt(_0xa89d3a(0x1ec))/0x6+parseInt(_0xa89d3a(0x1fa))/0x7*(parseInt(_0xa89d3a(0x1f9))/0x8)+-parseInt(_0xa89d3a(0x1ff))/0x9;if(_0x2ead2d===_0xfae12c)break;else _0x3f24d7['push'](_0x3f24d7['shift']());}catch(_0x20ade9){_0x3f24d7['push'](_0x3f24d7['shift']());}}}(a10_0x65db,0x77228));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x56c102(0x1fd));function a10_0x65db(){const _0x545bd5=['strict','wqjIU','List\x20Grid\x20resources.','desc','1957404bpPVLU','commandDir','8lXlWDW','580909PouEZs','73466rBtopy','12XCAOBe','../config/constants','407290XByEfv','5334696ipOpXz','2034444PioAPz','command','demandCommand','3155492IeyqUC','handler','delete','help'];a10_0x65db=function(){return _0x545bd5;};return a10_0x65db();}exports[a10_0x56c102(0x1ed)]=a10_0x56c102(0x1f1),exports[a10_0x56c102(0x1f6)]=a10_0x56c102(0x1f5),exports['builder']=function(_0x3bd632){const _0x534f3d=a10_0x56c102,_0x22ead0={};_0x22ead0['AmWZw']='delete_commands',_0x22ead0[_0x534f3d(0x1f4)]='help';const _0x173b33=_0x22ead0;return _0x3bd632['usage'](HELP_HEADER_MESSAGE[_0x534f3d(0x1f1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x534f3d(0x1f8)](_0x173b33['AmWZw'])[_0x534f3d(0x1ee)]()['recommendCommands']()[_0x534f3d(0x1f3)]()[_0x534f3d(0x1f2)](_0x173b33[_0x534f3d(0x1f4)]);},exports[a10_0x56c102(0x1f0)]=function(_0x175e2f){};
@@ -1 +1 @@
1
- const a11_0x375c4c=a11_0x2f25;function a11_0x2121(){const _0x5fb882=['jYaXs','ERROR','catch','info','FhQNT','gIUVF','then','2546604qpphFX','<UsernamePlaceholder>','prRpz','init-not-called','hdkiO','fhArH','warn','\x22\x20with\x20ID\x20','../../utils/utilityMethods','command','TtoVh','IcqTc','DmGmM','stack','handler','exit','clusterRegion','onlyGridInCluster','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','toLowerCase','cloudProvider','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster:\x20','EwUyX','Zzaxo','tdnNy','MIPSe','7583144hbtsye','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Namespace:\x20','sDBaA','tEFfa','mTXxb','NfgMD','wlsrR','grid-id','PRkNq','gxTYS','OkHUG','3035070amGDwB','214130zpJSwq','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','xrSSB','replace','nOZPK','djece','Browserstack','description','isClusterPresent','rbDRe','qvVuP','reconnecting-websocket','/packages/cli/grid/','PBcKr','INFO','epilogue','qdpdU','sGmCO','VlKow','YJmYK','bSoes','invalid-input','argv','stringify','932962aJjzKk','username','txEKI','isBrowserstackCluster','unknown-error','Failed\x20to\x20delete\x20resources!\x20Error:\x20','requestId','GAcqd','clusterId','boolean','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ztZxa','yyumX','kXmNX','default','bCChg','\x22\x20and\x20ID\x20','../../utils/gridComponents','hdTCq','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','server-error','desc','gridId','clusterSpawnedVia','FOMJm','OTNNL','../../config/logger','GUiMZ','clusterName','<PasswordPlaceholder>','vgrTg','vsOWx','DELETE','mvkdu','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20Grid','delete-grid-called','EnZzZ','got','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','sAjdG','1559102haEQQM','pruYk','hfypj','../../utils/createk8sClient','https://','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','MyLhZ','kPXYp','Bjdot','password','parse','usage','help','TsTBC','grid','../../utils/instrumentationUtils','body','uuid','JYjEv','yFbvK','name','type','GDOOm','12TkykNA','options','hQyuo','error','rUhci','aftGt','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','statusCode','TZiyO','Successfully\x20deleted\x20the\x20grid','186BwNznI','woZnK','deleteCluster','PEeFb','vpjDl','diHkL','675357HkqnKI','existsSync','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Delete\x20an\x20Automation\x20grid.','oAtSP','halqd','YxgIp','string'];a11_0x2121=function(){return _0x5fb882;};return a11_0x2121();}(function(_0x502dc8,_0xc996c1){const _0x4405e7=a11_0x2f25,_0x1ec4d1=_0x502dc8();while(!![]){try{const _0x5703c4=parseInt(_0x4405e7(0x1d4))/0x1+-parseInt(_0x4405e7(0x1fe))/0x2+parseInt(_0x4405e7(0x225))/0x3*(parseInt(_0x4405e7(0x215))/0x4)+-parseInt(_0x4405e7(0x25b))/0x5+-parseInt(_0x4405e7(0x21f))/0x6*(parseInt(_0x4405e7(0x25c))/0x7)+parseInt(_0x4405e7(0x24f))/0x8+parseInt(_0x4405e7(0x234))/0x9;if(_0x5703c4===_0xc996c1)break;else _0x1ec4d1['push'](_0x1ec4d1['shift']());}catch(_0x5c3500){_0x1ec4d1['push'](_0x1ec4d1['shift']());}}}(a11_0x2121,0x7b1f9));function a11_0x2f25(_0x38af8c,_0x5ae4f5){const _0x2121db=a11_0x2121();return a11_0x2f25=function(_0x2f25c3,_0x415a45){_0x2f25c3=_0x2f25c3-0x1c5;let _0x56a1e0=_0x2121db[_0x2f25c3];return _0x56a1e0;},a11_0x2f25(_0x38af8c,_0x5ae4f5);}const fs=require('fs'),got=require(a11_0x375c4c(0x1fb)),{v4:uuidv4}=require(a11_0x375c4c(0x20f)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x375c4c(0x1c7)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x375c4c(0x1ef)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x375c4c(0x1e6)),{sendInstrumentationEvent}=require(a11_0x375c4c(0x20d)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x375c4c(0x201)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x375c4c(0x23c)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x375c4c(0x23d)]=a11_0x375c4c(0x20c),exports[a11_0x375c4c(0x1ea)]=a11_0x375c4c(0x228),exports['builder']=function(_0x57d261){const _0xec9371=a11_0x375c4c,_0x174d1b={};_0x174d1b[_0xec9371(0x1e4)]=_0xec9371(0x1f8),_0x174d1b[_0xec9371(0x23e)]=_0xec9371(0x22c),_0x174d1b[_0xec9371(0x232)]='Skip\x20insecure\x20cert\x20verification.',_0x174d1b[_0xec9371(0x224)]=_0xec9371(0x1dd),_0x174d1b[_0xec9371(0x25e)]='help';const _0x66a428=_0x174d1b,_0x6ec9c3={};_0x6ec9c3[_0xec9371(0x263)]=_0x66a428[_0xec9371(0x1e4)],_0x6ec9c3[_0xec9371(0x213)]=_0x66a428[_0xec9371(0x23e)];const _0x32dfda={};_0x32dfda[_0xec9371(0x263)]=_0x66a428[_0xec9371(0x232)],_0x32dfda[_0xec9371(0x213)]=_0x66a428['diHkL'],_0x32dfda[_0xec9371(0x1e3)]=![];const _0x52de07={};return _0x52de07[_0xec9371(0x257)]=_0x6ec9c3,_0x52de07['skip-tls-cert-verify']=_0x32dfda,_0x57d261[_0xec9371(0x209)](HELP_HEADER_MESSAGE['delete'])[_0xec9371(0x1cb)](HELP_FOOTER_MESSAGE)['options'](_0x52de07)['help'](_0x66a428[_0xec9371(0x25e)])['argv'];},exports[a11_0x375c4c(0x242)]=async function(_0xd28e94){const _0x43b67c=a11_0x375c4c,_0x34c533={'bSoes':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','PRkNq':_0x43b67c(0x21e),'GUiMZ':_0x43b67c(0x203),'tdnNy':function(_0x25ddb5,_0x30baaf){return _0x25ddb5!==_0x30baaf;},'hQyuo':'RstnN','OkHUG':'zqzUZ','IyHSp':_0x43b67c(0x1f8),'lYpvL':_0x43b67c(0x22c),'djece':'Skip\x20insecure\x20cert\x20verification.','NfgMD':_0x43b67c(0x1dd),'kXmNX':_0x43b67c(0x20a),'fhArH':_0x43b67c(0x1f4),'gGdeT':function(_0x24acd6){return _0x24acd6();},'RMCOJ':function(_0x2e115b){return _0x2e115b();},'PEeFb':function(_0x40ac3e,_0x5775ba){return _0x40ac3e===_0x5775ba;},'aftGt':'uHCpM','IcqTc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rUhci':function(_0x356773,_0x443bc3,_0x8e771,_0x3703a3,_0x2ebb44,_0x9fc8c7,_0x894c8d){return _0x356773(_0x443bc3,_0x8e771,_0x3703a3,_0x2ebb44,_0x9fc8c7,_0x894c8d);},'VlKow':_0x43b67c(0x1f9),'YxgIp':_0x43b67c(0x237),'nOZPK':'zWrRn','pruYk':function(_0x254831){return _0x254831();},'OTNNL':function(_0x54e78a,_0xf00be6,_0x4ed4a5,_0xa31a17){return _0x54e78a(_0xf00be6,_0x4ed4a5,_0xa31a17);},'yFbvK':function(_0x19af51,_0x3b4e83){return _0x19af51===_0x3b4e83;},'jYaXs':_0x43b67c(0x262),'halqd':'OwASu','qvVuP':_0x43b67c(0x220),'txEKI':function(_0x2229c7,_0x3bd173){return _0x2229c7(_0x3bd173);},'SFbkm':_0x43b67c(0x1e1),'EnZzZ':_0x43b67c(0x240),'YJmYK':_0x43b67c(0x246),'JunOG':function(_0x108ba4,_0x551fa0,_0x46bd04,_0x471661,_0x28e84b,_0x2c1931,_0x398031){return _0x108ba4(_0x551fa0,_0x46bd04,_0x471661,_0x28e84b,_0x2c1931,_0x398031);},'vgrTg':_0x43b67c(0x1d1),'vpjDl':function(_0x591527,_0x4edb29){return _0x591527===_0x4edb29;},'GAcqd':function(_0x5dedbf,_0x4d8323){return _0x5dedbf!==_0x4d8323;},'Bjdot':_0x43b67c(0x1f6),'AowgP':_0x43b67c(0x259),'FhQNT':_0x43b67c(0x235),'kPXYp':_0x43b67c(0x1f2),'hdkiO':function(_0x330e52,_0x74a6f5,_0x15c96c,_0x1abd28,_0x4c7fa6,_0x51c53a,_0x5e9f8b){return _0x330e52(_0x74a6f5,_0x15c96c,_0x1abd28,_0x4c7fa6,_0x51c53a,_0x5e9f8b);},'sAjdG':function(_0x4a6f20,_0x3eae86){return _0x4a6f20(_0x3eae86);},'mhZzf':function(_0x3ccef8,_0x237ab3,_0x21d941){return _0x3ccef8(_0x237ab3,_0x21d941);},'hfypj':function(_0x4e7227,_0xd1d608,_0x4692bd,_0x3a3f8d,_0xcdb7e8,_0x5beac8){return _0x4e7227(_0xd1d608,_0x4692bd,_0x3a3f8d,_0xcdb7e8,_0x5beac8);},'MyLhZ':_0x43b67c(0x256),'sDBaA':_0x43b67c(0x1cd),'rbDRe':_0x43b67c(0x24c),'PBcKr':_0x43b67c(0x1f5),'oAtSP':function(_0x41b626,_0x373fa4,_0x595430){return _0x41b626(_0x373fa4,_0x595430);},'GDOOm':function(_0x326dae,_0x4dcff1){return _0x326dae===_0x4dcff1;},'ztZxa':function(_0x50100c,_0x35f807,_0x2f28bc,_0xf789a0,_0x2c7c3d,_0x47f661,_0x396eec){return _0x50100c(_0x35f807,_0x2f28bc,_0xf789a0,_0x2c7c3d,_0x47f661,_0x396eec);},'tEFfa':_0x43b67c(0x1e9),'MIPSe':_0x43b67c(0x1fc),'uGgQe':function(_0x1e4dfa,_0x48c1a2,_0x3267ef,_0x47c597,_0x3b1a68,_0x4e1f21,_0xb2b778){return _0x1e4dfa(_0x48c1a2,_0x3267ef,_0x47c597,_0x3b1a68,_0x4e1f21,_0xb2b778);},'mTXxb':'unauthorised','JYjEv':function(_0xac5219,_0x1af565){return _0xac5219===_0x1af565;},'FOMJm':function(_0x56a54a,_0xcc9c1b,_0x3d202b,_0x41fa77,_0x272262,_0x2ff427,_0x5b9640){return _0x56a54a(_0xcc9c1b,_0x3d202b,_0x41fa77,_0x272262,_0x2ff427,_0x5b9640);},'gdeLn':'invalid-grid-id','ufdxJ':function(_0x1079b5,_0x4cdef2,_0x55ce95,_0x4e85da,_0x13f618,_0x130a02,_0x5e851e){return _0x1079b5(_0x4cdef2,_0x55ce95,_0x4e85da,_0x13f618,_0x130a02,_0x5e851e);},'hdTCq':function(_0xc22b39,_0x3eb9dd,_0xe2a289,_0x1df65a,_0x2bc026,_0x506119,_0x16901c){return _0xc22b39(_0x3eb9dd,_0xe2a289,_0x1df65a,_0x2bc026,_0x506119,_0x16901c);},'qdpdU':_0x43b67c(0x1d8)};try{global_registry[_0x43b67c(0x1da)]=_0x34c533['gGdeT'](uuidv4);!fs[_0x43b67c(0x226)](_0x34c533['RMCOJ'](getCredentialsPath))&&(_0x34c533['PEeFb'](_0x34c533[_0x43b67c(0x21a)],_0x34c533[_0x43b67c(0x21a)])?(console[_0x43b67c(0x218)](_0x34c533[_0x43b67c(0x23f)]),await _0x34c533[_0x43b67c(0x219)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes['ERROR'],_0x34c533[_0x43b67c(0x22b)],null,_0xd28e94),process[_0x43b67c(0x243)](0x1)):(_0x2fdec5[_0x43b67c(0x218)](_0x34c533[_0x43b67c(0x1d0)]),_0x493100['exit'](0x1)));_0x34c533[_0x43b67c(0x219)](sendInstrumentationEvent,_0xd28e94,_0x34c533['VlKow'],messageTypes[_0x43b67c(0x1ca)],null,null,_0xd28e94);!_0xd28e94[_0x43b67c(0x1eb)]&&(_0x34c533[_0x43b67c(0x24d)](_0x34c533[_0x43b67c(0x260)],_0x34c533[_0x43b67c(0x260)])?_0x134aeb[_0x43b67c(0x23a)](_0x43b67c(0x24a)+_0x3cfd5f[_0x43b67c(0x1f1)]+_0x43b67c(0x250)):(console[_0x43b67c(0x218)](_0x34c533['bSoes']),process[_0x43b67c(0x243)](0x1)));const _0x1b5639=JSON['parse'](fs['readFileSync'](_0x34c533[_0x43b67c(0x1ff)](getCredentialsPath))),[_0x4a080b,_0x4ce75c]=await _0x34c533[_0x43b67c(0x1ee)](getGridDetails,_0x1b5639[_0x43b67c(0x262)][_0x43b67c(0x1d5)],_0x1b5639[_0x43b67c(0x262)]['password'],_0xd28e94['gridId']);if(_0x4ce75c){const _0x5b1a71=_0x4ce75c[_0x43b67c(0x230)];let _0x2e67e7=_0x43b67c(0x25d)+_0x5b1a71['name']+_0x43b67c(0x1e5)+_0x5b1a71['id']+_0x43b67c(0x249);_0x4ce75c[_0x43b67c(0x245)]&&_0x34c533['yFbvK'](_0x4ce75c[_0x43b67c(0x1ec)],_0x34c533[_0x43b67c(0x22d)])&&(_0x34c533[_0x43b67c(0x24d)](_0x34c533[_0x43b67c(0x22a)],_0x34c533[_0x43b67c(0x1c6)])?_0x2e67e7=_0x43b67c(0x25d)+_0x5b1a71['name']+_0x43b67c(0x1e5)+_0x5b1a71['id']+_0x43b67c(0x1e8)+_0x5b1a71['clusterName']+_0x43b67c(0x23b)+_0x5b1a71[_0x43b67c(0x1dc)]+_0x43b67c(0x249):(_0x275a79['warn'](_0x43b67c(0x251)+_0x19a18f+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0xc3b325=![]));const _0x8ec36b=await _0x34c533[_0x43b67c(0x1d6)](inputConfirmation,_0x2e67e7);(_0x34c533[_0x43b67c(0x222)](_0x8ec36b,undefined)||_0x34c533['PEeFb'](_0x8ec36b,null)||!(_0x34c533[_0x43b67c(0x211)](_0x8ec36b[_0x43b67c(0x247)](),'y')||_0x34c533['yFbvK'](_0x8ec36b['toLowerCase'](),'n')))&&(_0x34c533[_0x43b67c(0x24d)](_0x34c533['SFbkm'],_0x34c533[_0x43b67c(0x1fa)])?(console[_0x43b67c(0x218)](_0x34c533[_0x43b67c(0x1cf)]),await _0x34c533['JunOG'](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes[_0x43b67c(0x22e)],_0x34c533[_0x43b67c(0x1f3)],null,_0xd28e94),process[_0x43b67c(0x243)](0x1)):(_0x2b3c71[_0x43b67c(0x230)](_0x34c533[_0x43b67c(0x258)]),_0x4fadca[_0x43b67c(0x243)](0x0)));_0x34c533[_0x43b67c(0x223)](_0x8ec36b[_0x43b67c(0x247)](),'n')&&(_0x34c533[_0x43b67c(0x1db)](_0x34c533[_0x43b67c(0x206)],_0x34c533['AowgP'])?process[_0x43b67c(0x243)](0x0):_0x553353['exit'](0x0));const _0x19cd61=WS_ENDPOINT[_0x43b67c(0x25f)](_0x34c533[_0x43b67c(0x231)],_0x1b5639[_0x43b67c(0x262)][_0x43b67c(0x1d5)])[_0x43b67c(0x25f)](_0x34c533[_0x43b67c(0x205)],_0x1b5639[_0x43b67c(0x262)][_0x43b67c(0x207)]),_0x129ba7={};_0x129ba7['WebSocket']=ws,_0x129ba7['connectionTimeout']=0x36ee80;const _0x2c057a=new ReconnectingWebSocket(_0x19cd61,[],_0x129ba7);global_registry[_0x43b67c(0x244)]=_0x5b1a71['region'];const _0x2ba50a=_0x5b1a71[_0x43b67c(0x248)],_0x55275a=await _0x34c533[_0x43b67c(0x238)](getCloudProviderObject,_0x2ba50a,_0x5b1a71[_0x43b67c(0x1f1)],_0x5b1a71[_0x43b67c(0x212)],_0x2c057a,webSocketUtils,_0xd28e94),_0x169217=await _0x55275a[_0x43b67c(0x264)]();if(_0x169217){const _0x46d74d=_0x34c533[_0x43b67c(0x1fd)](kebabCase,_0x5b1a71[_0x43b67c(0x212)]),[_0x228ff3,_0xb62fae,_0x48e85c,_0x485cb5,_0x3391c8,_0x36fea8]=await _0x34c533['mhZzf'](createK8sClient,_0x55275a,_0xd28e94[_0x43b67c(0x1f7)]);let _0x54b6e0=!![];const _0x28e3ce={};_0x28e3ce[_0x43b67c(0x212)]=_0x46d74d,await _0x228ff3['readNamespace'](_0x28e3ce)[_0x43b67c(0x233)](_0x470a56=>{const _0x2059aa=_0x43b67c;_0x34c533[_0x2059aa(0x24d)](_0x34c533[_0x2059aa(0x217)],_0x34c533[_0x2059aa(0x25a)])?logger[_0x2059aa(0x230)](_0x2059aa(0x251)+_0x46d74d+_0x2059aa(0x1de)):_0x8406ab['warn'](_0x34c533[_0x2059aa(0x1f0)]);})[_0x43b67c(0x22f)](_0x249bb6=>{const _0x3d462a=_0x43b67c,_0x51c746={};_0x51c746[_0x3d462a(0x236)]=_0x34c533['IyHSp'],_0x51c746[_0x3d462a(0x24b)]=_0x34c533['lYpvL'],_0x51c746[_0x3d462a(0x21d)]=_0x34c533[_0x3d462a(0x261)],_0x51c746['ewFJd']=_0x34c533[_0x3d462a(0x255)],_0x51c746[_0x3d462a(0x20b)]=_0x34c533[_0x3d462a(0x1e2)];const _0x593c9b=_0x51c746;if(_0x34c533['tdnNy'](_0x34c533[_0x3d462a(0x239)],_0x34c533[_0x3d462a(0x239)])){const _0x352710={};_0x352710[_0x3d462a(0x263)]=_0x593c9b['prRpz'],_0x352710[_0x3d462a(0x213)]=_0x593c9b[_0x3d462a(0x24b)];const _0xbe27e6={};_0xbe27e6[_0x3d462a(0x263)]=_0x593c9b[_0x3d462a(0x21d)],_0xbe27e6[_0x3d462a(0x213)]=_0x593c9b['ewFJd'],_0xbe27e6[_0x3d462a(0x1e3)]=![];const _0xd2843a={};return _0xd2843a[_0x3d462a(0x257)]=_0x352710,_0xd2843a['skip-tls-cert-verify']=_0xbe27e6,_0x20779b[_0x3d462a(0x209)](_0x378593['delete'])[_0x3d462a(0x1cb)](_0x1aa522)[_0x3d462a(0x216)](_0xd2843a)[_0x3d462a(0x20a)](_0x593c9b[_0x3d462a(0x20b)])[_0x3d462a(0x1d2)];}else logger[_0x3d462a(0x23a)](_0x3d462a(0x251)+_0x46d74d+_0x3d462a(0x21b)),_0x54b6e0=![];});if(_0x54b6e0){await _0x34c533[_0x43b67c(0x200)](removeGridComponents,_0x228ff3,_0xb62fae,_0x48e85c,_0x485cb5,_0x46d74d);if(_0x4ce75c['onlyGridInCluster']){const _0x4b7471=await _0x55275a[_0x43b67c(0x1d7)]();_0x4b7471?_0x34c533[_0x43b67c(0x1db)](_0x34c533[_0x43b67c(0x204)],_0x34c533[_0x43b67c(0x204)])?_0xa7448b=_0x43b67c(0x25d)+_0x12448b['name']+_0x43b67c(0x1e5)+_0x29f72a['id']+_0x43b67c(0x1e8)+_0x40f3bb[_0x43b67c(0x1f1)]+_0x43b67c(0x23b)+_0x3ab2ff[_0x43b67c(0x1dc)]+_0x43b67c(0x249):await _0x55275a[_0x43b67c(0x221)](_0x228ff3,_0x5b1a71['region']):_0x34c533[_0x43b67c(0x24d)](_0x34c533[_0x43b67c(0x252)],_0x34c533[_0x43b67c(0x1c5)])?logger[_0x43b67c(0x23a)](_0x43b67c(0x24a)+_0x5b1a71[_0x43b67c(0x1f1)]+_0x43b67c(0x250)):_0x438d03[_0x43b67c(0x230)](_0x43b67c(0x251)+_0x523a6e+_0x43b67c(0x1de));}}}else logger[_0x43b67c(0x23a)](_0x34c533[_0x43b67c(0x1f0)]);const _0x4b46c2=_0x43b67c(0x202)+AG_API_URL+_0x43b67c(0x1c8)+_0xd28e94[_0x43b67c(0x1eb)],_0x54f54e={'method':_0x34c533[_0x43b67c(0x1c9)],'headers':_0x34c533[_0x43b67c(0x229)](getAuthHeader,_0x1b5639[_0x43b67c(0x262)]['username'],_0x1b5639[_0x43b67c(0x262)]['password']),'throwHttpErrors':![]},_0x261660=await _0x34c533['oAtSP'](got,_0x4b46c2,_0x54f54e);_0x34c533[_0x43b67c(0x24d)](_0x261660,null)&&_0x34c533[_0x43b67c(0x1db)](_0x261660,undefined)&&_0x34c533[_0x43b67c(0x214)](_0x261660[_0x43b67c(0x21c)],0xc8)&&(logger[_0x43b67c(0x230)](_0x34c533['PRkNq']),process[_0x43b67c(0x243)](0x0)),logger[_0x43b67c(0x218)](_0x43b67c(0x227)+_0x261660['body']),await _0x34c533[_0x43b67c(0x1e0)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes[_0x43b67c(0x22e)],_0x34c533['tEFfa'],_0x4a080b,_0xd28e94),process[_0x43b67c(0x243)](0x1);}_0x34c533[_0x43b67c(0x223)](_0x4a080b[_0x43b67c(0x21c)],0x191)&&(logger['error'](_0x34c533[_0x43b67c(0x24e)]),await _0x34c533['uGgQe'](sendInstrumentationEvent,_0xd28e94,_0x34c533['VlKow'],messageTypes['ERROR'],_0x34c533[_0x43b67c(0x254)],null,_0xd28e94),process[_0x43b67c(0x243)](0x1)),_0x34c533[_0x43b67c(0x210)](_0x4a080b[_0x43b67c(0x21c)],0x190)&&(logger['error'](JSON[_0x43b67c(0x208)](_0x4a080b[_0x43b67c(0x20e)])['message']),await _0x34c533[_0x43b67c(0x1ed)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes[_0x43b67c(0x22e)],_0x34c533['gdeLn'],null,_0xd28e94),process['exit'](0x1)),logger[_0x43b67c(0x218)](_0x43b67c(0x1df)+JSON[_0x43b67c(0x1d3)](_0x4a080b)),await _0x34c533['ufdxJ'](sendInstrumentationEvent,_0xd28e94,_0x34c533['VlKow'],messageTypes[_0x43b67c(0x22e)],_0x34c533[_0x43b67c(0x253)],_0x4a080b,_0xd28e94),process[_0x43b67c(0x243)](0x1);}catch(_0x5951f6){logger[_0x43b67c(0x218)](_0x43b67c(0x1d9)+_0x5951f6[_0x43b67c(0x241)]),await _0x34c533[_0x43b67c(0x1e7)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes['ERROR'],_0x34c533[_0x43b67c(0x1cc)],_0x5951f6,_0xd28e94),process[_0x43b67c(0x243)](0x1);}};
1
+ const a11_0x587a43=a11_0x5751;function a11_0x5751(_0x5ee309,_0x1fc9c6){const _0x3eff7b=a11_0x3eff();return a11_0x5751=function(_0x575109,_0x348612){_0x575109=_0x575109-0x18b;let _0x6e733f=_0x3eff7b[_0x575109];return _0x6e733f;},a11_0x5751(_0x5ee309,_0x1fc9c6);}(function(_0x3e2b8e,_0x5e1580){const _0x291546=a11_0x5751,_0x312928=_0x3e2b8e();while(!![]){try{const _0x1f9432=parseInt(_0x291546(0x1c1))/0x1+-parseInt(_0x291546(0x1d9))/0x2*(-parseInt(_0x291546(0x19d))/0x3)+-parseInt(_0x291546(0x20b))/0x4*(parseInt(_0x291546(0x201))/0x5)+parseInt(_0x291546(0x226))/0x6*(parseInt(_0x291546(0x1a3))/0x7)+-parseInt(_0x291546(0x1a8))/0x8+-parseInt(_0x291546(0x225))/0x9*(parseInt(_0x291546(0x1ec))/0xa)+parseInt(_0x291546(0x1ad))/0xb;if(_0x1f9432===_0x5e1580)break;else _0x312928['push'](_0x312928['shift']());}catch(_0xef1473){_0x312928['push'](_0x312928['shift']());}}}(a11_0x3eff,0x8060e));function a11_0x3eff(){const _0x5e425d=['lUAXa','../../utils/gridComponents','clusterName','Namespace:\x20','catch','Qinoh','handler','18eSOeYy','../../utils/utilityMethods','usage','string','IQhiK','QjpHW','2346071CjqGMk','argv','reriJ','AOLRs','Failed\x20to\x20delete\x20resources!\x20Error:\x20','5296704JSTvbK','Cluster:\x20','boolean','rBBVq','skipTlsCertVerify','7964847xTvbci','BkPJI','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','keWjN','Delete\x20an\x20Automation\x20grid.','qEwzW','Pass\x20the\x20ID\x20of\x20the\x20Grid','aeqjU','aNQYa','clusterId','\x22\x20with\x20ID\x20','readNamespace','exit','../../utils/instrumentationUtils','clusterSpawnedVia','../../utils/webSocketUtils','builder','name','then','help','901821FFIrYi','<PasswordPlaceholder>','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','got','hFufu','description','JjccR','KceJd','delete','command','../../utils/createk8sClient','default','DCfEp','BeOYe','grid-id','sgcYf','CYMiy','iyfml','gridId','wBvsg','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','NJApl','DMTCg','21570NlFqCI','NOadT','ayGDs','JWjwP','hRfSJ','connectionTimeout','omWQY','type','info','DhQmr','HnxSS','readFileSync','WLsKu','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','epilogue','sENhy','tbuVx','statusCode','EBOdO','1370TXopss','<UsernamePlaceholder>','error','DELETE','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','pplRT','IxFLV','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','parse','options','requestId','WebSocket','deleteCluster','jYFFx','invalid-input','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','NhSFw','grid','https://','LRwxN','261895EQnwsZ','existsSync','VZndf','replace','server-error','rHuDb','gLMNj','Skip\x20insecure\x20cert\x20verification.','stack','AECGz','36JVxGgf','SFqlA','../../utils/userInput','TyCCX','Browserstack','\x22\x20and\x20ID\x20','unknown-error','isBrowserstackCluster','CliSw','onlyGridInCluster','body','wmVqt','username','OrvWu','TBSiZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','JzMpR','warn','ATtQz','VKLtu','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','gAnFK','WvLec','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','FqvpV','OraNQ','46089FHfTvp','12NUPWGK','init-not-called','ERROR','tCLJH','../../cloudproviders/utils','vPPXF','lYMzf','PuFjs','WsoVE','SRVET','quNzi','cloudProvider','password','SKwAh','skip-tls-cert-verify','clusterRegion'];a11_0x3eff=function(){return _0x5e425d;};return a11_0x3eff();}const fs=require('fs'),got=require(a11_0x587a43(0x1c5)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x587a43(0x1c3)),{getCloudProviderObject}=require(a11_0x587a43(0x22a)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x587a43(0x197)),{sendInstrumentationEvent}=require(a11_0x587a43(0x1ba)),{inputConfirmation}=require(a11_0x587a43(0x20d)),{createK8sClient}=require(a11_0x587a43(0x1cc)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x587a43(0x19e)),webSocketUtils=require(a11_0x587a43(0x1bc));exports[a11_0x587a43(0x1cb)]=a11_0x587a43(0x1fe),exports['desc']=a11_0x587a43(0x1b1),exports[a11_0x587a43(0x1bd)]=function(_0x51e76e){const _0x2db118=a11_0x587a43,_0x293680={};_0x293680[_0x2db118(0x207)]=_0x2db118(0x1b3),_0x293680[_0x2db118(0x19b)]=_0x2db118(0x1a0),_0x293680[_0x2db118(0x1da)]=_0x2db118(0x208),_0x293680[_0x2db118(0x200)]=_0x2db118(0x1aa),_0x293680[_0x2db118(0x1e5)]=_0x2db118(0x1c0);const _0x1f2cba=_0x293680,_0x24c9c2={};_0x24c9c2[_0x2db118(0x1c7)]=_0x1f2cba[_0x2db118(0x207)],_0x24c9c2['type']=_0x1f2cba['Qinoh'];const _0x18a996={};_0x18a996['description']=_0x1f2cba[_0x2db118(0x1da)],_0x18a996[_0x2db118(0x1e0)]=_0x1f2cba[_0x2db118(0x200)],_0x18a996['default']=![];const _0xd677c6={};return _0xd677c6[_0x2db118(0x1d0)]=_0x24c9c2,_0xd677c6[_0x2db118(0x194)]=_0x18a996,_0x51e76e[_0x2db118(0x19f)](HELP_HEADER_MESSAGE['delete'])[_0x2db118(0x1e7)](HELP_FOOTER_MESSAGE)[_0x2db118(0x1f6)](_0xd677c6)['help'](_0x1f2cba[_0x2db118(0x1e5)])[_0x2db118(0x1a4)];},exports[a11_0x587a43(0x19c)]=async function(_0x47790d){const _0x55b1df=a11_0x587a43,_0xb48917={'AECGz':'Successfully\x20deleted\x20the\x20grid','WvLec':_0x55b1df(0x1b3),'CYMiy':_0x55b1df(0x1a0),'lYMzf':_0x55b1df(0x208),'ayGDs':_0x55b1df(0x1aa),'DhQmr':'help','SFqlA':function(_0x5e7dda,_0x3bd669){return _0x5e7dda!==_0x3bd669;},'JWjwP':_0x55b1df(0x1eb),'iyfml':_0x55b1df(0x1a2),'rHuDb':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','AOLRs':_0x55b1df(0x223),'KceJd':_0x55b1df(0x21f),'qEwzW':function(_0x28621a){return _0x28621a();},'HnxSS':function(_0x4220aa){return _0x4220aa();},'wVDuv':_0x55b1df(0x1e8),'pplRT':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lUAXa':function(_0x4d4ecd,_0x1aa38e,_0x26997d,_0x2255d4,_0x4097da,_0x1f5fc4,_0x388b68){return _0x4d4ecd(_0x1aa38e,_0x26997d,_0x2255d4,_0x4097da,_0x1f5fc4,_0x388b68);},'VKLtu':'delete-grid-called','reriJ':_0x55b1df(0x227),'sgcYf':function(_0x57abc0,_0x12a7c3){return _0x57abc0===_0x12a7c3;},'aNQYa':_0x55b1df(0x1d5),'jVdZx':function(_0xf37203,_0x59d87d,_0x47e159,_0xdf6ff5){return _0xf37203(_0x59d87d,_0x47e159,_0xdf6ff5);},'hRfSJ':function(_0x381b7a,_0x57dde7){return _0x381b7a===_0x57dde7;},'tbuVx':_0x55b1df(0x20f),'aeqjU':_0x55b1df(0x18d),'wmVqt':_0x55b1df(0x1f3),'DFDzB':function(_0x423a11,_0x276662){return _0x423a11(_0x276662);},'quNzi':function(_0x1eb7da,_0x55f4fd){return _0x1eb7da===_0x55f4fd;},'vPPXF':function(_0x4bf19d,_0x1906f8){return _0x4bf19d===_0x1906f8;},'VZndf':'eZrCN','BkPJI':_0x55b1df(0x218),'ICojK':_0x55b1df(0x222),'JzMpR':_0x55b1df(0x1fb),'tCLJH':function(_0x189ccf,_0x2d529f){return _0x189ccf!==_0x2d529f;},'NdMWw':_0x55b1df(0x18f),'omWQY':_0x55b1df(0x1ed),'XrsRO':_0x55b1df(0x1c2),'DMTCg':function(_0x570c1a,_0x554ab9){return _0x570c1a(_0x554ab9);},'OraNQ':function(_0x1a84bf,_0x4eaa81,_0x36e72b){return _0x1a84bf(_0x4eaa81,_0x36e72b);},'PVPqs':function(_0x13c932,_0x4cc824,_0x3c6d18,_0x440d06,_0x27b855,_0x59f0f0){return _0x13c932(_0x4cc824,_0x3c6d18,_0x440d06,_0x27b855,_0x59f0f0);},'keWjN':_0x55b1df(0x213),'nMUgd':function(_0x432187,_0x38569b){return _0x432187===_0x38569b;},'ATtQz':'NQrTN','vxIvY':_0x55b1df(0x1ef),'SKwAh':function(_0x2dadcb,_0x7297b2){return _0x2dadcb!==_0x7297b2;},'WsoVE':function(_0x49b1e9,_0x23bdbb,_0x10b025,_0x2a947c,_0x358c2f,_0x39a9a7,_0xce033e){return _0x49b1e9(_0x23bdbb,_0x10b025,_0x2a947c,_0x358c2f,_0x39a9a7,_0xce033e);},'JjccR':_0x55b1df(0x205),'gAnFK':function(_0x55732e,_0x59967a){return _0x55732e===_0x59967a;},'jYFFx':_0x55b1df(0x21a),'TyCCX':'unauthorised','VMpPy':function(_0x363b38,_0x2df65){return _0x363b38===_0x2df65;},'BeOYe':'invalid-grid-id','hFufu':function(_0x3757e8,_0x2338dc,_0x5537d9,_0x208073,_0x1b9b80,_0x4998b0,_0x34f456){return _0x3757e8(_0x2338dc,_0x5537d9,_0x208073,_0x1b9b80,_0x4998b0,_0x34f456);},'KUUvE':_0x55b1df(0x211)};try{global_registry[_0x55b1df(0x1f7)]=_0xb48917[_0x55b1df(0x1b2)](uuidv4);!fs[_0x55b1df(0x202)](_0xb48917[_0x55b1df(0x1e3)](getCredentialsPath))&&(_0xb48917[_0x55b1df(0x20c)](_0xb48917['wVDuv'],_0xb48917['wVDuv'])?_0x3ecbd6=_0x55b1df(0x1f4)+_0x47de6a[_0x55b1df(0x1be)]+_0x55b1df(0x210)+_0x3b8bbd['id']+_0x55b1df(0x1f1)+_0x56c439[_0x55b1df(0x198)]+_0x55b1df(0x1b7)+_0x515838['clusterId']+_0x55b1df(0x1af):(console['error'](_0xb48917[_0x55b1df(0x1f2)]),await _0xb48917[_0x55b1df(0x196)](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes[_0x55b1df(0x228)],_0xb48917[_0x55b1df(0x1a5)],null,_0x47790d),process[_0x55b1df(0x1b9)](0x1)));_0xb48917[_0x55b1df(0x196)](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes['INFO'],null,null,_0x47790d);!_0x47790d[_0x55b1df(0x1d4)]&&(_0xb48917[_0x55b1df(0x1d1)](_0xb48917[_0x55b1df(0x1b5)],_0xb48917[_0x55b1df(0x1b5)])?(console[_0x55b1df(0x1ee)](_0xb48917[_0x55b1df(0x1c9)]),process['exit'](0x1)):(_0x59a592[_0x55b1df(0x1e1)](_0xb48917[_0x55b1df(0x20a)]),_0x1e04f5[_0x55b1df(0x1b9)](0x0)));const _0x5d0097=JSON[_0x55b1df(0x1f5)](fs[_0x55b1df(0x1e4)](_0xb48917['qEwzW'](getCredentialsPath))),[_0xf1f4f3,_0x563a9a]=await _0xb48917['jVdZx'](getGridDetails,_0x5d0097[_0x55b1df(0x20f)]['username'],_0x5d0097['Browserstack'][_0x55b1df(0x192)],_0x47790d['gridId']);if(_0x563a9a){const _0x251ca8=_0x563a9a[_0x55b1df(0x1e1)];let _0x289d94=_0x55b1df(0x1f4)+_0x251ca8['name']+_0x55b1df(0x210)+_0x251ca8['id']+_0x55b1df(0x1af);_0x563a9a[_0x55b1df(0x214)]&&_0xb48917[_0x55b1df(0x1dd)](_0x563a9a[_0x55b1df(0x1bb)],_0xb48917[_0x55b1df(0x1e9)])&&(_0xb48917['sgcYf'](_0xb48917[_0x55b1df(0x1b4)],_0xb48917[_0x55b1df(0x216)])?_0x27811[_0x55b1df(0x1b9)](0x0):_0x289d94='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x251ca8[_0x55b1df(0x1be)]+_0x55b1df(0x210)+_0x251ca8['id']+_0x55b1df(0x1f1)+_0x251ca8[_0x55b1df(0x198)]+_0x55b1df(0x1b7)+_0x251ca8[_0x55b1df(0x1b6)]+_0x55b1df(0x1af));const _0x1d3281=await _0xb48917['DFDzB'](inputConfirmation,_0x289d94);(_0xb48917[_0x55b1df(0x1dd)](_0x1d3281,undefined)||_0xb48917[_0x55b1df(0x190)](_0x1d3281,null)||!(_0xb48917[_0x55b1df(0x1d1)](_0x1d3281['toLowerCase'](),'y')||_0xb48917[_0x55b1df(0x1d1)](_0x1d3281['toLowerCase'](),'n')))&&(_0xb48917[_0x55b1df(0x18b)](_0xb48917[_0x55b1df(0x203)],_0xb48917[_0x55b1df(0x1ae)])?_0x567d33['info'](_0x55b1df(0x199)+_0x2aa539+_0x55b1df(0x1f0)):(console[_0x55b1df(0x1ee)](_0xb48917['ICojK']),await _0xb48917['lUAXa'](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes[_0x55b1df(0x228)],_0xb48917[_0x55b1df(0x21b)],null,_0x47790d),process['exit'](0x1)));_0xb48917[_0x55b1df(0x1dd)](_0x1d3281['toLowerCase'](),'n')&&(_0xb48917['tCLJH'](_0xb48917['NdMWw'],_0xb48917['NdMWw'])?(_0x5f2443[_0x55b1df(0x21c)]('Namespace:\x20'+_0x3991bf+_0x55b1df(0x1d6)),_0x387e0b=![]):process[_0x55b1df(0x1b9)](0x0));const _0x231e04=WS_ENDPOINT['replace'](_0xb48917[_0x55b1df(0x1df)],_0x5d0097[_0x55b1df(0x20f)][_0x55b1df(0x217)])[_0x55b1df(0x204)](_0xb48917['XrsRO'],_0x5d0097[_0x55b1df(0x20f)]['password']),_0x93f3dc={};_0x93f3dc[_0x55b1df(0x1f8)]=ws,_0x93f3dc[_0x55b1df(0x1de)]=0x36ee80;const _0x2f9f24=new ReconnectingWebSocket(_0x231e04,[],_0x93f3dc);global_registry[_0x55b1df(0x195)]=_0x251ca8['region'];const _0x4fcad0=_0x251ca8[_0x55b1df(0x191)],_0x1176c8=await _0xb48917[_0x55b1df(0x196)](getCloudProviderObject,_0x4fcad0,_0x251ca8[_0x55b1df(0x198)],_0x251ca8['name'],_0x2f9f24,webSocketUtils,_0x47790d),_0x664987=await _0x1176c8['isClusterPresent']();if(_0x664987){const _0x285fb0=_0xb48917[_0x55b1df(0x1d8)](kebabCase,_0x251ca8['name']),[_0x4912ce,_0x3f25a3,_0x4e133b,_0x3dcb56,_0x452d5d,_0x546a91]=await _0xb48917[_0x55b1df(0x224)](createK8sClient,_0x1176c8,_0x47790d[_0x55b1df(0x1ac)]);let _0xd71bea=!![];const _0x499834={};_0x499834[_0x55b1df(0x1be)]=_0x285fb0,await _0x4912ce[_0x55b1df(0x1b8)](_0x499834)[_0x55b1df(0x1bf)](_0x43377a=>{const _0x29f9be=_0x55b1df,_0x4f3f15={};_0x4f3f15[_0x29f9be(0x1fd)]=_0xb48917[_0x29f9be(0x221)],_0x4f3f15[_0x29f9be(0x1ce)]=_0xb48917[_0x29f9be(0x1d2)],_0x4f3f15['TBSiZ']=_0xb48917[_0x29f9be(0x18c)],_0x4f3f15[_0x29f9be(0x1d7)]=_0xb48917[_0x29f9be(0x1db)],_0x4f3f15['IQhiK']=_0xb48917[_0x29f9be(0x1e2)];const _0x4a0de6=_0x4f3f15;if(_0xb48917['SFqlA'](_0xb48917[_0x29f9be(0x1dc)],_0xb48917[_0x29f9be(0x1d3)]))logger[_0x29f9be(0x1e1)](_0x29f9be(0x199)+_0x285fb0+_0x29f9be(0x1f0));else{const _0x108757={};_0x108757[_0x29f9be(0x1c7)]=_0x4a0de6['NhSFw'],_0x108757[_0x29f9be(0x1e0)]=_0x4a0de6['DCfEp'];const _0xe055b1={};_0xe055b1[_0x29f9be(0x1c7)]=_0x4a0de6[_0x29f9be(0x219)],_0xe055b1[_0x29f9be(0x1e0)]=_0x4a0de6[_0x29f9be(0x1d7)],_0xe055b1[_0x29f9be(0x1cd)]=![];const _0x3064ac={};return _0x3064ac[_0x29f9be(0x1d0)]=_0x108757,_0x3064ac[_0x29f9be(0x194)]=_0xe055b1,_0x4a2175['usage'](_0x147393[_0x29f9be(0x1ca)])[_0x29f9be(0x1e7)](_0x3bdc50)[_0x29f9be(0x1f6)](_0x3064ac)[_0x29f9be(0x1c0)](_0x4a0de6[_0x29f9be(0x1a1)])[_0x29f9be(0x1a4)];}})[_0x55b1df(0x19a)](_0x3c4597=>{const _0x9f0c64=_0x55b1df,_0x31985b={};_0x31985b[_0x9f0c64(0x1ab)]=_0xb48917['rHuDb'];const _0x5a37d4=_0x31985b;_0xb48917[_0x9f0c64(0x20c)](_0xb48917[_0x9f0c64(0x1a6)],_0xb48917[_0x9f0c64(0x1a6)])?_0xde4937['warn'](_0x5a37d4[_0x9f0c64(0x1ab)]):(logger['warn'](_0x9f0c64(0x199)+_0x285fb0+_0x9f0c64(0x1d6)),_0xd71bea=![]);});if(_0xd71bea){await _0xb48917['PVPqs'](removeGridComponents,_0x4912ce,_0x3f25a3,_0x4e133b,_0x3dcb56,_0x285fb0);if(_0x563a9a[_0x55b1df(0x214)]){const _0x2cc515=await _0x1176c8[_0x55b1df(0x212)]();_0x2cc515?_0xb48917[_0x55b1df(0x229)](_0xb48917[_0x55b1df(0x1b0)],_0xb48917[_0x55b1df(0x1b0)])?_0xb0e209[_0x55b1df(0x21c)](_0x55b1df(0x1a9)+_0x5d819c[_0x55b1df(0x198)]+_0x55b1df(0x1e6)):await _0x1176c8[_0x55b1df(0x1f9)](_0x4912ce,_0x251ca8['region']):_0xb48917['nMUgd'](_0xb48917['ATtQz'],_0xb48917[_0x55b1df(0x21d)])?logger[_0x55b1df(0x21c)]('Cluster:\x20'+_0x251ca8[_0x55b1df(0x198)]+_0x55b1df(0x1e6)):(_0x30fa03['error'](_0xb48917[_0x55b1df(0x1c9)]),_0x367864[_0x55b1df(0x1b9)](0x1));}}}else logger[_0x55b1df(0x21c)](_0xb48917[_0x55b1df(0x206)]);const _0x299a71=_0x55b1df(0x1ff)+AG_API_URL+'/packages/cli/grid/'+_0x47790d[_0x55b1df(0x1d4)],_0x48bf2f={'method':_0xb48917['vxIvY'],'headers':_0xb48917[_0x55b1df(0x224)](getAuthHeader,_0x5d0097['Browserstack'][_0x55b1df(0x217)],_0x5d0097[_0x55b1df(0x20f)]['password']),'throwHttpErrors':![]},_0xfd2968=await _0xb48917[_0x55b1df(0x224)](got,_0x299a71,_0x48bf2f);_0xb48917[_0x55b1df(0x20c)](_0xfd2968,null)&&_0xb48917[_0x55b1df(0x193)](_0xfd2968,undefined)&&_0xb48917['sgcYf'](_0xfd2968[_0x55b1df(0x1ea)],0xc8)&&(logger[_0x55b1df(0x1e1)](_0xb48917['AECGz']),process[_0x55b1df(0x1b9)](0x0)),logger[_0x55b1df(0x1ee)](_0x55b1df(0x1fc)+_0xfd2968[_0x55b1df(0x215)]),await _0xb48917[_0x55b1df(0x18e)](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes[_0x55b1df(0x228)],_0xb48917[_0x55b1df(0x1c8)],_0xf1f4f3,_0x47790d),process[_0x55b1df(0x1b9)](0x1);}_0xb48917[_0x55b1df(0x220)](_0xf1f4f3[_0x55b1df(0x1ea)],0x191)&&(logger[_0x55b1df(0x1ee)](_0xb48917[_0x55b1df(0x1fa)]),await _0xb48917[_0x55b1df(0x196)](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes['ERROR'],_0xb48917[_0x55b1df(0x20e)],null,_0x47790d),process[_0x55b1df(0x1b9)](0x1)),_0xb48917['VMpPy'](_0xf1f4f3[_0x55b1df(0x1ea)],0x190)&&(logger['error'](JSON[_0x55b1df(0x1f5)](_0xf1f4f3['body'])['message']),await _0xb48917[_0x55b1df(0x18e)](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes[_0x55b1df(0x228)],_0xb48917[_0x55b1df(0x1cf)],null,_0x47790d),process['exit'](0x1)),logger[_0x55b1df(0x1ee)](_0x55b1df(0x1c4)+JSON['stringify'](_0xf1f4f3)),await _0xb48917[_0x55b1df(0x1c6)](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes[_0x55b1df(0x228)],_0xb48917[_0x55b1df(0x1c8)],_0xf1f4f3,_0x47790d),process['exit'](0x1);}catch(_0x4cc62d){logger[_0x55b1df(0x1ee)](_0x55b1df(0x1a7)+_0x4cc62d[_0x55b1df(0x209)]),await _0xb48917['hFufu'](sendInstrumentationEvent,_0x47790d,_0xb48917[_0x55b1df(0x21e)],messageTypes[_0x55b1df(0x228)],_0xb48917['KUUvE'],_0x4cc62d,_0x47790d),process[_0x55b1df(0x1b9)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x49ff2c=a12_0x5cbd;(function(_0x5a3857,_0x1d07fe){const _0x33af00=a12_0x5cbd,_0x59aa2c=_0x5a3857();while(!![]){try{const _0x5db7e6=-parseInt(_0x33af00(0x211))/0x1*(-parseInt(_0x33af00(0x1f3))/0x2)+-parseInt(_0x33af00(0x1ed))/0x3+-parseInt(_0x33af00(0x1fa))/0x4*(-parseInt(_0x33af00(0x1c6))/0x5)+parseInt(_0x33af00(0x201))/0x6*(parseInt(_0x33af00(0x1fd))/0x7)+parseInt(_0x33af00(0x1da))/0x8+parseInt(_0x33af00(0x214))/0x9+-parseInt(_0x33af00(0x1e9))/0xa;if(_0x5db7e6===_0x1d07fe)break;else _0x59aa2c['push'](_0x59aa2c['shift']());}catch(_0x2cc837){_0x59aa2c['push'](_0x59aa2c['shift']());}}}(a12_0x1744,0xc3c0a));const fs=require('fs'),util=require('util'),got=require(a12_0x49ff2c(0x1b8)),{v4:uuidv4}=require(a12_0x49ff2c(0x1ee)),{logger}=require(a12_0x49ff2c(0x20b)),{inputBstackKeys}=require(a12_0x49ff2c(0x1ef)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x49ff2c(0x215)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x49ff2c(0x1d4)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a12_0x5cbd(_0x3b3550,_0x2ff617){const _0x17446c=a12_0x1744();return a12_0x5cbd=function(_0x5cbd06,_0x30a7c3){_0x5cbd06=_0x5cbd06-0x1b4;let _0x271ec5=_0x17446c[_0x5cbd06];return _0x271ec5;},a12_0x5cbd(_0x3b3550,_0x2ff617);}function a12_0x1744(){const _0x5d571a=['rJjTU','Browserstack','type','ufZIA','got','statusCode','description','plzEl','rQXwH','zImqI','hrSVB','QkcYI','bstackAccesskey','BROWSERSTACK_ACCESS_KEY','AMlGd','kNthm','GuATp','handler','5gBdsbb','RYCpP','strict','parse','usage','stack','password','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','INFO','existsSync','vHhhK','/automate/plan.json','username','../utils/utilityMethods','gJIOY','KIMRV','KcvJf','wGKrv','error','5001776xWmWuP','oNrXg','qsrvB','VcOah','jPajA','argv','eMTZy','BROWSERSTACK_USERNAME','lMZqU','vBqpA','bstackUsername','oOWYb','string','debug','xihXR','22013010FAyztH','epilogue','ERROR','AKdJp','4801749gagqXJ','uuid','../utils/userInput','ijBuC','command','Wohno','112108AycdBA','zEchc','options','builder','wDJRY','https://','env','5011828yLPtjD','rElKE','AbMKe','168JUTNyf','stringify','msbVs','init-called','269328aMfFSz','OUEGv','writeFileSync','help','mkdirSync','utf-8','GnKOc','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','exit','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/logger','ijaVM','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','BxivW','rYgGP','QwBxI','8LbcCEE','bQsOI','JHvql','10797867IWrSzZ','../config/constants','recommendCommands','init','bstack-username','readFileSync','AOeQf','mQfEM'];a12_0x1744=function(){return _0x5d571a;};return a12_0x1744();}exports[a12_0x49ff2c(0x1f1)]=a12_0x49ff2c(0x217),exports['desc']=a12_0x49ff2c(0x20d),exports[a12_0x49ff2c(0x1f6)]=function(_0x25900b){const _0x3f8376=a12_0x49ff2c,_0x38b60c={};_0x38b60c[_0x3f8376(0x1f0)]=_0x3f8376(0x20a),_0x38b60c['BxivW']=_0x3f8376(0x1e6),_0x38b60c['OUEGv']=_0x3f8376(0x1cd),_0x38b60c[_0x3f8376(0x1de)]='help';const _0x492216=_0x38b60c,_0x3dbde2={};_0x3dbde2[_0x3f8376(0x1ba)]=_0x492216[_0x3f8376(0x1f0)],_0x3dbde2[_0x3f8376(0x1b6)]=_0x492216[_0x3f8376(0x20e)];const _0x301dbd={};_0x301dbd['description']=_0x492216[_0x3f8376(0x202)],_0x301dbd[_0x3f8376(0x1b6)]=_0x492216['BxivW'];const _0x4c8900={};return _0x4c8900['bstack-username']=_0x3dbde2,_0x4c8900['bstack-accesskey']=_0x301dbd,_0x25900b['usage'](HELP_HEADER_MESSAGE[_0x3f8376(0x217)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f8376(0x1f5)](_0x4c8900)[_0x3f8376(0x216)]()[_0x3f8376(0x1c8)]()[_0x3f8376(0x204)](_0x492216[_0x3f8376(0x1de)])[_0x3f8376(0x1df)];},exports[a12_0x49ff2c(0x1c5)]=async function(_0x2ee6a1){const _0x3fb95a=a12_0x49ff2c,_0x3aac17={'msbVs':_0x3fb95a(0x20a),'ehhUP':_0x3fb95a(0x1e6),'sHkMU':_0x3fb95a(0x1cd),'rYgGP':_0x3fb95a(0x204),'oNrXg':function(_0x1db3ed){return _0x1db3ed();},'zImqI':_0x3fb95a(0x206),'AKdJp':function(_0x127fba){return _0x127fba();},'RYCpP':function(_0x3d67de,_0x3d87f3,_0x1af4cc,_0x379486,_0x75f08f,_0x1d6d1b,_0x144118){return _0x3d67de(_0x3d87f3,_0x1af4cc,_0x379486,_0x75f08f,_0x1d6d1b,_0x144118);},'wDJRY':_0x3fb95a(0x200),'eMTZy':function(_0x5a5687,_0x54a07c){return _0x5a5687===_0x54a07c;},'GuATp':'ygqeW','bQsOI':_0x3fb95a(0x1fc),'KcvJf':function(_0x520ea4,_0x145e6b){return _0x520ea4!==_0x145e6b;},'zEchc':_0x3fb95a(0x1f2),'ufZIA':function(_0x29bee7,_0x4455c8){return _0x29bee7!==_0x4455c8;},'hrSVB':_0x3fb95a(0x213),'AMlGd':function(_0x8fcb3d,_0x194621){return _0x8fcb3d===_0x194621;},'oOWYb':_0x3fb95a(0x1c3),'QkcYI':function(_0x537b1e,_0x25f27c){return _0x537b1e===_0x25f27c;},'VcOah':'IBZUF','rQXwH':function(_0x1a5480,_0x5b5750){return _0x1a5480===_0x5b5750;},'ijaVM':'SvRsH','gJIOY':_0x3fb95a(0x208),'QwBxI':function(_0x3ad5dd){return _0x3ad5dd();},'wGKrv':'GET','qsrvB':function(_0x563741,_0x13d2b0,_0xeb0fc0){return _0x563741(_0x13d2b0,_0xeb0fc0);},'mQfEM':function(_0x168eb3,_0x398239){return _0x168eb3!==_0x398239;},'vBqpA':_0x3fb95a(0x1fb),'vHhhK':'dfNwn','rJjTU':function(_0x4575ca){return _0x4575ca();},'RTZXs':function(_0x58fe5e,_0x454217){return _0x58fe5e!==_0x454217;},'GnKOc':_0x3fb95a(0x1d6),'AOeQf':_0x3fb95a(0x1ce),'plzEl':function(_0x37facf,_0xa0b5b4,_0x52055c,_0x3c9ebe,_0x299125,_0x4318b8,_0xce0a07){return _0x37facf(_0xa0b5b4,_0x52055c,_0x3c9ebe,_0x299125,_0x4318b8,_0xce0a07);},'lMZqU':'wrong-creds','SNByc':function(_0x4aa19e,_0x471ce6,_0xdf200e,_0xfa4ad7,_0x10b863,_0x356973,_0x2f482b){return _0x4aa19e(_0x471ce6,_0xdf200e,_0xfa4ad7,_0x10b863,_0x356973,_0x2f482b);},'xihXR':'unknown-error'};try{global_registry['requestId']=_0x3aac17['AKdJp'](uuidv4),_0x3aac17[_0x3fb95a(0x1c7)](sendInstrumentationEvent,_0x2ee6a1,_0x3aac17[_0x3fb95a(0x1f7)],messageTypes[_0x3fb95a(0x1cf)],null,null,_0x2ee6a1);const _0xc4c8cd=_0x3aac17[_0x3fb95a(0x1ec)](getDirForConfig);!fs[_0x3fb95a(0x1d0)](_0xc4c8cd)&&(_0x3aac17[_0x3fb95a(0x1e0)](_0x3aac17[_0x3fb95a(0x1c4)],_0x3aac17[_0x3fb95a(0x212)])?_0x11b29d=_0x41fb3c[_0x3fb95a(0x1e4)]:fs[_0x3fb95a(0x205)](_0xc4c8cd));let _0x11be02,_0x13596f;process['env'][_0x3fb95a(0x1e1)]&&(_0x3aac17[_0x3fb95a(0x1d7)](_0x3aac17[_0x3fb95a(0x1f4)],_0x3aac17[_0x3fb95a(0x1f4)])?_0x12e6bd=_0x4e286e[_0x3fb95a(0x1f9)][_0x3fb95a(0x1e1)]:_0x11be02=process['env'][_0x3fb95a(0x1e1)]);if(process[_0x3fb95a(0x1f9)]['BROWSERSTACK_ACCESS_KEY']){if(_0x3aac17[_0x3fb95a(0x1b7)](_0x3aac17[_0x3fb95a(0x1be)],_0x3aac17[_0x3fb95a(0x1be)])){const _0x5ebbdb={};_0x5ebbdb[_0x3fb95a(0x1ba)]=_0x3aac17[_0x3fb95a(0x1ff)],_0x5ebbdb['type']=_0x3aac17['ehhUP'];const _0x4ba89d={};_0x4ba89d[_0x3fb95a(0x1ba)]=_0x3aac17['sHkMU'],_0x4ba89d[_0x3fb95a(0x1b6)]=_0x3aac17['ehhUP'];const _0x521bf2={};return _0x521bf2[_0x3fb95a(0x218)]=_0x5ebbdb,_0x521bf2['bstack-accesskey']=_0x4ba89d,_0xcc7d53[_0x3fb95a(0x1ca)](_0x28268c[_0x3fb95a(0x217)])[_0x3fb95a(0x1ea)](_0x5e9d32)[_0x3fb95a(0x1f5)](_0x521bf2)[_0x3fb95a(0x216)]()[_0x3fb95a(0x1c8)]()[_0x3fb95a(0x204)](_0x3aac17[_0x3fb95a(0x20f)])[_0x3fb95a(0x1df)];}else _0x13596f=process[_0x3fb95a(0x1f9)][_0x3fb95a(0x1c1)];}if(_0x2ee6a1[_0x3fb95a(0x1e4)]){if(_0x3aac17['AMlGd'](_0x3aac17[_0x3fb95a(0x1e5)],_0x3aac17[_0x3fb95a(0x1e5)]))_0x11be02=_0x2ee6a1[_0x3fb95a(0x1e4)];else{let _0x46388f={};const _0x156351=_0x3aac17[_0x3fb95a(0x1db)](_0x1d0b2e);_0x40683e['existsSync'](_0x156351)&&(_0x46388f=_0x44536b['parse'](_0x3e986f[_0x3fb95a(0x219)](_0x156351,_0x3aac17[_0x3fb95a(0x1bd)])));const _0x24fe5b={};_0x24fe5b[_0x3fb95a(0x1d3)]=_0x5b3ed6,_0x24fe5b[_0x3fb95a(0x1cc)]=_0x3606b2,_0x46388f['Browserstack']=_0x24fe5b,_0x1eda58['writeFileSync'](_0x156351,_0x373e77[_0x3fb95a(0x1fe)](_0x46388f)),_0x7cbd44[_0x3fb95a(0x209)](0x0);}}_0x2ee6a1[_0x3fb95a(0x1c0)]&&(_0x3aac17[_0x3fb95a(0x1bf)](_0x3aac17[_0x3fb95a(0x1dd)],_0x3aac17[_0x3fb95a(0x1dd)])?_0x13596f=_0x2ee6a1[_0x3fb95a(0x1c0)]:_0x20beb1=_0x13c8aa['parse'](_0x33e35c[_0x3fb95a(0x219)](_0x3f646e,_0x3aac17[_0x3fb95a(0x1bd)])));if(_0x3aac17[_0x3fb95a(0x1bf)](_0x11be02,undefined)||_0x3aac17[_0x3fb95a(0x1c2)](_0x13596f,undefined)){if(_0x3aac17[_0x3fb95a(0x1bc)](_0x3aac17[_0x3fb95a(0x20c)],_0x3aac17[_0x3fb95a(0x20c)])){logger[_0x3fb95a(0x1e7)](_0x3aac17[_0x3fb95a(0x1d5)]);const [_0x5600b6,_0x1c17bb]=await _0x3aac17[_0x3fb95a(0x210)](inputBstackKeys);_0x11be02=_0x5600b6,_0x13596f=_0x1c17bb;}else _0x26671d=_0x268e10[_0x3fb95a(0x1c0)];}let _0x22b929=![];const _0x5c17c0=_0x3fb95a(0x1f8)+_0x11be02+':'+_0x13596f+'@'+BS_API_URL+_0x3fb95a(0x1d2),_0x346b0c={'method':_0x3aac17[_0x3fb95a(0x1d8)],'headers':_0x3aac17[_0x3fb95a(0x1dc)](getAuthHeader,_0x11be02,_0x13596f),'throwHttpErrors':![]},_0x292969=await _0x3aac17[_0x3fb95a(0x1dc)](got,_0x5c17c0,_0x346b0c);_0x3aac17[_0x3fb95a(0x1b7)](_0x292969,null)&&_0x3aac17[_0x3fb95a(0x21b)](_0x292969,undefined)&&_0x3aac17[_0x3fb95a(0x1e0)](_0x292969[_0x3fb95a(0x1b9)],0xc8)&&(_0x3aac17[_0x3fb95a(0x1bf)](_0x3aac17['vBqpA'],_0x3aac17[_0x3fb95a(0x1e3)])?_0x22b929=!![]:_0x36cac3=!![]);if(_0x22b929){if(_0x3aac17[_0x3fb95a(0x1e0)](_0x3aac17['vHhhK'],_0x3aac17[_0x3fb95a(0x1d1)])){let _0x27f2c6={};const _0x5dc08e=_0x3aac17[_0x3fb95a(0x1b4)](getCredentialsPath);fs[_0x3fb95a(0x1d0)](_0x5dc08e)&&(_0x3aac17['RTZXs'](_0x3aac17[_0x3fb95a(0x207)],_0x3aac17[_0x3fb95a(0x207)])?_0x3e2c94=_0x1d425c['env']['BROWSERSTACK_ACCESS_KEY']:_0x27f2c6=JSON[_0x3fb95a(0x1c9)](fs[_0x3fb95a(0x219)](_0x5dc08e,_0x3aac17[_0x3fb95a(0x1bd)])));const _0x2de317={};_0x2de317[_0x3fb95a(0x1d3)]=_0x11be02,_0x2de317[_0x3fb95a(0x1cc)]=_0x13596f,_0x27f2c6[_0x3fb95a(0x1b5)]=_0x2de317,fs[_0x3fb95a(0x203)](_0x5dc08e,JSON[_0x3fb95a(0x1fe)](_0x27f2c6)),process[_0x3fb95a(0x209)](0x0);}else _0xd06d5d['mkdirSync'](_0x177f02);}else logger[_0x3fb95a(0x1d9)](_0x3aac17[_0x3fb95a(0x21a)]),await _0x3aac17[_0x3fb95a(0x1bb)](sendInstrumentationEvent,_0x2ee6a1,_0x3aac17[_0x3fb95a(0x1f7)],messageTypes[_0x3fb95a(0x1eb)],_0x3aac17[_0x3fb95a(0x1e2)],null,_0x2ee6a1),process[_0x3fb95a(0x209)](0x1);}catch(_0x3099a3){logger[_0x3fb95a(0x1d9)](_0x3099a3[_0x3fb95a(0x1cb)]),await _0x3aac17['SNByc'](sendInstrumentationEvent,_0x2ee6a1,_0x3aac17['wDJRY'],messageTypes[_0x3fb95a(0x1eb)],_0x3aac17[_0x3fb95a(0x1e8)],_0x3099a3,_0x2ee6a1),process[_0x3fb95a(0x209)](0x1);}};
1
+ function a12_0x13c4(){const _0x405249=['bstackAccesskey','KsIQh','PCRBA','command','builder','handler','SpqMG','OfgyN','../utils/utilityMethods','MmMEN','5058585emJXCl','yLQCG','AGANx','jnnWY','504GKoKVH','Tbaex','VXcTH','SBtdg','FzaqJ','MefZi','uuid','bstack-accesskey','WaRaY','PgJed','GMlju','env','requestId','INFO','../config/logger','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','writeFileSync','usage','SKvbm','PgbUs','6QNOAxU','statusCode','unknown-error','cuRDx','desc','string','utf-8','43097428LFNKtt','WlqtX','CbMso','help','readFileSync','bstackUsername','683118VknyGx','init-called','BROWSERSTACK_USERNAME','stringify','recommendCommands','Hjwdw','error','510823ulrNvl','GET','18OBwYvK','jfBoo','yrhPy','fVntu','4596300VmzyHT','Cnocg','MnlFo','DKstr','options','EFzuY','EdHMP','existsSync','exOiW','debug','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','password','parse','init','tOaZy','301GuONwr','bstack-username','LJGXh','got','146864enMPIO','BAQlD','Browserstack','gyqiN','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','UYnKB','mkdirSync','pyuCR','argv','../utils/instrumentationUtils','QKLEz','10376dMTlXF','LOTsR','FzBPR','EvdXs','jiINk','uFqJS','description','xfIlW','type','ERROR','exit','BROWSERSTACK_ACCESS_KEY','JbUmk','username','wrong-creds','epilogue','strict','PRzct'];a12_0x13c4=function(){return _0x405249;};return a12_0x13c4();}const a12_0x3c2a09=a12_0x2a66;(function(_0x2ecc59,_0x1533ce){const _0x1c7436=a12_0x2a66,_0x35bbfc=_0x2ecc59();while(!![]){try{const _0x1d8f7f=-parseInt(_0x1c7436(0x1ad))/0x1+parseInt(_0x1c7436(0x1a6))/0x2+-parseInt(_0x1c7436(0x185))/0x3*(parseInt(_0x1c7436(0x165))/0x4)+-parseInt(_0x1c7436(0x181))/0x5*(parseInt(_0x1c7436(0x199))/0x6)+-parseInt(_0x1c7436(0x156))/0x7*(parseInt(_0x1c7436(0x15a))/0x8)+parseInt(_0x1c7436(0x1af))/0x9*(-parseInt(_0x1c7436(0x1b3))/0xa)+parseInt(_0x1c7436(0x1a0))/0xb;if(_0x1d8f7f===_0x1533ce)break;else _0x35bbfc['push'](_0x35bbfc['shift']());}catch(_0x5f7dee){_0x35bbfc['push'](_0x35bbfc['shift']());}}}(a12_0x13c4,0x90a89));const fs=require('fs'),util=require('util'),got=require(a12_0x3c2a09(0x159)),{v4:uuidv4}=require(a12_0x3c2a09(0x18b)),{logger}=require(a12_0x3c2a09(0x193)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x3c2a09(0x17f)),{sendInstrumentationEvent}=require(a12_0x3c2a09(0x163));function a12_0x2a66(_0x3777f0,_0x491156){const _0x13c407=a12_0x13c4();return a12_0x2a66=function(_0x2a6668,_0x3330a0){_0x2a6668=_0x2a6668-0x152;let _0x428e92=_0x13c407[_0x2a6668];return _0x428e92;},a12_0x2a66(_0x3777f0,_0x491156);}exports[a12_0x3c2a09(0x17a)]='init',exports[a12_0x3c2a09(0x19d)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x3c2a09(0x17b)]=function(_0x82a331){const _0x2f929d=a12_0x3c2a09,_0x2a59b5={};_0x2a59b5['uFqJS']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2a59b5[_0x2f929d(0x182)]='string',_0x2a59b5[_0x2f929d(0x1b9)]=_0x2f929d(0x194),_0x2a59b5[_0x2f929d(0x176)]='help';const _0x24a089=_0x2a59b5,_0xe88865={};_0xe88865['description']=_0x24a089[_0x2f929d(0x16a)],_0xe88865[_0x2f929d(0x16d)]=_0x24a089[_0x2f929d(0x182)];const _0x2c13a0={};_0x2c13a0['description']=_0x24a089['EdHMP'],_0x2c13a0[_0x2f929d(0x16d)]=_0x24a089[_0x2f929d(0x182)];const _0x13da29={};return _0x13da29[_0x2f929d(0x157)]=_0xe88865,_0x13da29[_0x2f929d(0x18c)]=_0x2c13a0,_0x82a331['usage'](HELP_HEADER_MESSAGE[_0x2f929d(0x154)])[_0x2f929d(0x174)](HELP_FOOTER_MESSAGE)[_0x2f929d(0x1b7)](_0x13da29)[_0x2f929d(0x1aa)]()[_0x2f929d(0x175)]()[_0x2f929d(0x1a3)](_0x24a089[_0x2f929d(0x176)])[_0x2f929d(0x162)];},exports[a12_0x3c2a09(0x17c)]=async function(_0x38fc8b){const _0x1c5366=a12_0x3c2a09,_0x5dfc0d={'xyMUM':function(_0x320e61){return _0x320e61();},'KsIQh':_0x1c5366(0x19f),'CbMso':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Cnocg':_0x1c5366(0x19e),'xfIlW':_0x1c5366(0x194),'gyqiN':_0x1c5366(0x1a3),'PgJed':function(_0x37f232){return _0x37f232();},'pyuCR':function(_0x3eebfd,_0x56eb48,_0xf57448,_0x229a57,_0x22b098,_0x8d3f89,_0x47ae10){return _0x3eebfd(_0x56eb48,_0xf57448,_0x229a57,_0x22b098,_0x8d3f89,_0x47ae10);},'jnnWY':_0x1c5366(0x1a7),'SpqMG':function(_0x24f3e5,_0x49cf5a){return _0x24f3e5===_0x49cf5a;},'MmMEN':_0x1c5366(0x167),'FzaqJ':_0x1c5366(0x1b0),'yrhPy':function(_0x23674b,_0x30776e){return _0x23674b!==_0x30776e;},'PCRBA':_0x1c5366(0x1b2),'LOTsR':function(_0x56ffa2,_0x5b3d3b){return _0x56ffa2!==_0x5b3d3b;},'GMlju':'bHHxc','lSNPN':_0x1c5366(0x15b),'UYnKB':_0x1c5366(0x1b8),'Hjwdw':function(_0x131f7b,_0x185e7c){return _0x131f7b!==_0x185e7c;},'MnlFo':_0x1c5366(0x169),'JbUmk':_0x1c5366(0x164),'OfgyN':function(_0x258aaf,_0x48f9a8){return _0x258aaf===_0x48f9a8;},'cuRDx':_0x1c5366(0x183),'UqVIK':_0x1c5366(0x1bd),'EvdXs':_0x1c5366(0x1ae),'PgbUs':function(_0x18c1e1,_0x5b9719,_0x418f5a){return _0x18c1e1(_0x5b9719,_0x418f5a);},'SKvbm':function(_0x183a87,_0x5153bc){return _0x183a87!==_0x5153bc;},'tOaZy':function(_0x881e45,_0x5d9d89){return _0x881e45===_0x5d9d89;},'LJGXh':_0x1c5366(0x18a),'VXcTH':_0x1c5366(0x18d),'Tbaex':'JfeFt','CizZu':function(_0x4e82c4,_0x576ff9){return _0x4e82c4===_0x576ff9;},'tIXME':_0x1c5366(0x188),'exOiW':'syJGD','FkFek':_0x1c5366(0x15e),'DKstr':_0x1c5366(0x173),'WlqtX':_0x1c5366(0x19b)};try{global_registry[_0x1c5366(0x191)]=_0x5dfc0d['PgJed'](uuidv4),_0x5dfc0d['pyuCR'](sendInstrumentationEvent,_0x38fc8b,_0x5dfc0d[_0x1c5366(0x184)],messageTypes[_0x1c5366(0x192)],null,null,_0x38fc8b);const _0x106e0a=_0x5dfc0d[_0x1c5366(0x18e)](getDirForConfig);!fs[_0x1c5366(0x1ba)](_0x106e0a)&&(_0x5dfc0d[_0x1c5366(0x17d)](_0x5dfc0d[_0x1c5366(0x180)],_0x5dfc0d[_0x1c5366(0x189)])?_0x316607=!![]:fs[_0x1c5366(0x160)](_0x106e0a));let _0x136e02,_0x5bfa5e;if(process[_0x1c5366(0x190)]['BROWSERSTACK_USERNAME']){if(_0x5dfc0d[_0x1c5366(0x1b1)](_0x5dfc0d[_0x1c5366(0x179)],_0x5dfc0d[_0x1c5366(0x179)])){let _0x40bd6a={};const _0x263f9b=_0x5dfc0d['xyMUM'](_0x229bbf);_0x58e810[_0x1c5366(0x1ba)](_0x263f9b)&&(_0x40bd6a=_0x26b7b7['parse'](_0x31312c['readFileSync'](_0x263f9b,_0x5dfc0d[_0x1c5366(0x178)])));const _0x467a89={};_0x467a89[_0x1c5366(0x172)]=_0x3a24de,_0x467a89[_0x1c5366(0x152)]=_0x4ac327,_0x40bd6a[_0x1c5366(0x15c)]=_0x467a89,_0x5ad3da[_0x1c5366(0x195)](_0x263f9b,_0x24772b[_0x1c5366(0x1a9)](_0x40bd6a)),_0x31783d[_0x1c5366(0x16f)](0x0);}else _0x136e02=process['env'][_0x1c5366(0x1a8)];}process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x5dfc0d[_0x1c5366(0x166)](_0x5dfc0d[_0x1c5366(0x18f)],_0x5dfc0d['lSNPN'])?_0x5bfa5e=process['env'][_0x1c5366(0x170)]:_0x2db81d=_0x5c222d[_0x1c5366(0x177)]);if(_0x38fc8b[_0x1c5366(0x1a5)]){if(_0x5dfc0d[_0x1c5366(0x166)](_0x5dfc0d[_0x1c5366(0x15f)],_0x5dfc0d[_0x1c5366(0x15f)])){const _0x1fd2b0={};_0x1fd2b0[_0x1c5366(0x16b)]=_0x5dfc0d[_0x1c5366(0x1a2)],_0x1fd2b0['type']=_0x5dfc0d[_0x1c5366(0x1b4)];const _0x47910b={};_0x47910b[_0x1c5366(0x16b)]=_0x5dfc0d[_0x1c5366(0x16c)],_0x47910b[_0x1c5366(0x16d)]=_0x5dfc0d[_0x1c5366(0x1b4)];const _0x39f364={};return _0x39f364[_0x1c5366(0x157)]=_0x1fd2b0,_0x39f364[_0x1c5366(0x18c)]=_0x47910b,_0xbd1f0[_0x1c5366(0x196)](_0x2e86d4[_0x1c5366(0x154)])['epilogue'](_0x20d452)[_0x1c5366(0x1b7)](_0x39f364)[_0x1c5366(0x1aa)]()['strict']()[_0x1c5366(0x1a3)](_0x5dfc0d[_0x1c5366(0x15d)])['argv'];}else _0x136e02=_0x38fc8b[_0x1c5366(0x1a5)];}_0x38fc8b[_0x1c5366(0x177)]&&(_0x5dfc0d[_0x1c5366(0x1ab)](_0x5dfc0d[_0x1c5366(0x1b5)],_0x5dfc0d[_0x1c5366(0x171)])?_0x5bfa5e=_0x38fc8b[_0x1c5366(0x177)]:_0x6ecf79=_0x319340[_0x1c5366(0x1a5)]);if(_0x5dfc0d['SpqMG'](_0x136e02,undefined)||_0x5dfc0d[_0x1c5366(0x17e)](_0x5bfa5e,undefined)){if(_0x5dfc0d[_0x1c5366(0x1ab)](_0x5dfc0d[_0x1c5366(0x19c)],_0x5dfc0d[_0x1c5366(0x19c)]))_0x5817c3=_0x4b5860[_0x1c5366(0x190)][_0x1c5366(0x1a8)];else{logger[_0x1c5366(0x1bc)](_0x5dfc0d['UqVIK']);const [_0x2de4f4,_0x2dd2aa]=await _0x5dfc0d[_0x1c5366(0x18e)](inputBstackKeys);_0x136e02=_0x2de4f4,_0x5bfa5e=_0x2dd2aa;}}let _0x4b5d22=![];const _0x503765='https://'+_0x136e02+':'+_0x5bfa5e+'@'+BS_API_URL+'/automate/plan.json',_0x4f5a19={'method':_0x5dfc0d[_0x1c5366(0x168)],'headers':_0x5dfc0d[_0x1c5366(0x198)](getAuthHeader,_0x136e02,_0x5bfa5e),'throwHttpErrors':![]},_0x39d6e4=await _0x5dfc0d[_0x1c5366(0x198)](got,_0x503765,_0x4f5a19);_0x5dfc0d[_0x1c5366(0x197)](_0x39d6e4,null)&&_0x5dfc0d[_0x1c5366(0x197)](_0x39d6e4,undefined)&&_0x5dfc0d[_0x1c5366(0x17e)](_0x39d6e4[_0x1c5366(0x19a)],0xc8)&&(_0x5dfc0d[_0x1c5366(0x155)](_0x5dfc0d[_0x1c5366(0x158)],_0x5dfc0d[_0x1c5366(0x158)])?_0x4b5d22=!![]:_0x105110=_0x24f337[_0x1c5366(0x153)](_0x2849ef[_0x1c5366(0x1a4)](_0x1bf203,_0x5dfc0d[_0x1c5366(0x178)])));if(_0x4b5d22){if(_0x5dfc0d[_0x1c5366(0x17e)](_0x5dfc0d[_0x1c5366(0x187)],_0x5dfc0d[_0x1c5366(0x186)]))_0x445018=_0x2d4957[_0x1c5366(0x190)][_0x1c5366(0x170)];else{let _0x132e33={};const _0x1725ee=_0x5dfc0d[_0x1c5366(0x18e)](getCredentialsPath);fs[_0x1c5366(0x1ba)](_0x1725ee)&&(_0x5dfc0d['CizZu'](_0x5dfc0d['tIXME'],_0x5dfc0d[_0x1c5366(0x1bb)])?_0x4bc43f['mkdirSync'](_0x4cacb7):_0x132e33=JSON[_0x1c5366(0x153)](fs[_0x1c5366(0x1a4)](_0x1725ee,_0x5dfc0d[_0x1c5366(0x178)])));const _0x2abcd8={};_0x2abcd8['username']=_0x136e02,_0x2abcd8['password']=_0x5bfa5e,_0x132e33[_0x1c5366(0x15c)]=_0x2abcd8,fs[_0x1c5366(0x195)](_0x1725ee,JSON[_0x1c5366(0x1a9)](_0x132e33)),process[_0x1c5366(0x16f)](0x0);}}else logger['error'](_0x5dfc0d['FkFek']),await _0x5dfc0d[_0x1c5366(0x161)](sendInstrumentationEvent,_0x38fc8b,_0x5dfc0d['jnnWY'],messageTypes[_0x1c5366(0x16e)],_0x5dfc0d[_0x1c5366(0x1b6)],null,_0x38fc8b),process[_0x1c5366(0x16f)](0x1);}catch(_0x5943ef){logger[_0x1c5366(0x1ac)](_0x5943ef['stack']),await _0x5dfc0d[_0x1c5366(0x161)](sendInstrumentationEvent,_0x38fc8b,_0x5dfc0d[_0x1c5366(0x184)],messageTypes[_0x1c5366(0x16e)],_0x5dfc0d[_0x1c5366(0x1a1)],_0x5943ef,_0x38fc8b),process[_0x1c5366(0x16f)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x5eb7d5=a13_0x30e0;function a13_0x21c7(){const _0x3f661e=['command','strict','HKAXg','3458634tmOlMm','list','desc','list_commands','518358BGwbnO','help','4409310SXnlvE','handler','builder','9xSeUgs','7525078wkBbJB','demandCommand','302267EpGpis','commandDir','29845YMabgO','16gaXKNa','../config/constants','usage','534711TfMIjp','msRRT','64dplLGT','12lrEQll','List\x20down\x20the\x20Grid\x20resources.','3CQiMis','root'];a13_0x21c7=function(){return _0x3f661e;};return a13_0x21c7();}(function(_0x5c3047,_0x3e7a34){const _0x242082=a13_0x30e0,_0x10dcb5=_0x5c3047();while(!![]){try{const _0x5c0958=parseInt(_0x242082(0x1d7))/0x1+parseInt(_0x242082(0x1c9))/0x2*(parseInt(_0x242082(0x1dc))/0x3)+parseInt(_0x242082(0x1d4))/0x4*(-parseInt(_0x242082(0x1d3))/0x5)+-parseInt(_0x242082(0x1e1))/0x6+-parseInt(_0x242082(0x1d1))/0x7*(-parseInt(_0x242082(0x1d9))/0x8)+parseInt(_0x242082(0x1ce))/0x9*(parseInt(_0x242082(0x1cb))/0xa)+-parseInt(_0x242082(0x1cf))/0xb*(parseInt(_0x242082(0x1da))/0xc);if(_0x5c0958===_0x3e7a34)break;else _0x10dcb5['push'](_0x10dcb5['shift']());}catch(_0x11293c){_0x10dcb5['push'](_0x10dcb5['shift']());}}}(a13_0x21c7,0x483b0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x5eb7d5(0x1d5));function a13_0x30e0(_0x157ec9,_0x2eecc2){const _0x21c737=a13_0x21c7();return a13_0x30e0=function(_0x30e067,_0x1fdfe3){_0x30e067=_0x30e067-0x1c6;let _0x2976f5=_0x21c737[_0x30e067];return _0x2976f5;},a13_0x30e0(_0x157ec9,_0x2eecc2);}exports[a13_0x5eb7d5(0x1de)]=a13_0x5eb7d5(0x1c6),exports[a13_0x5eb7d5(0x1c7)]=a13_0x5eb7d5(0x1db),exports[a13_0x5eb7d5(0x1cd)]=function(_0x5b6688){const _0x4334b9=a13_0x5eb7d5,_0x6680ad={};_0x6680ad[_0x4334b9(0x1e0)]=_0x4334b9(0x1c8),_0x6680ad[_0x4334b9(0x1d8)]=_0x4334b9(0x1ca);const _0x1856c9=_0x6680ad;return _0x5b6688[_0x4334b9(0x1d2)](_0x1856c9[_0x4334b9(0x1e0)])[_0x4334b9(0x1d0)]()[_0x4334b9(0x1d6)](HELP_HEADER_MESSAGE[_0x4334b9(0x1c6)][_0x4334b9(0x1dd)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x4334b9(0x1df)]()[_0x4334b9(0x1ca)](_0x1856c9[_0x4334b9(0x1d8)]);},exports[a13_0x5eb7d5(0x1cc)]=function(_0x5e74c9){};
1
+ const a13_0x2dffb3=a13_0x5bb2;function a13_0x5bb2(_0x5793ef,_0x531b7f){const _0x8f471=a13_0x8f47();return a13_0x5bb2=function(_0x5bb284,_0x1e17b2){_0x5bb284=_0x5bb284-0x1b8;let _0x541a97=_0x8f471[_0x5bb284];return _0x541a97;},a13_0x5bb2(_0x5793ef,_0x531b7f);}(function(_0x162d47,_0x12bd6c){const _0x526658=a13_0x5bb2,_0x56b25f=_0x162d47();while(!![]){try{const _0x234891=-parseInt(_0x526658(0x1d2))/0x1+-parseInt(_0x526658(0x1b8))/0x2*(parseInt(_0x526658(0x1bd))/0x3)+parseInt(_0x526658(0x1d0))/0x4*(parseInt(_0x526658(0x1bf))/0x5)+-parseInt(_0x526658(0x1ba))/0x6*(-parseInt(_0x526658(0x1c0))/0x7)+-parseInt(_0x526658(0x1be))/0x8*(-parseInt(_0x526658(0x1c5))/0x9)+parseInt(_0x526658(0x1cb))/0xa+parseInt(_0x526658(0x1c9))/0xb*(parseInt(_0x526658(0x1c4))/0xc);if(_0x234891===_0x12bd6c)break;else _0x56b25f['push'](_0x56b25f['shift']());}catch(_0x51dd5e){_0x56b25f['push'](_0x56b25f['shift']());}}}(a13_0x8f47,0x70172));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x2dffb3(0x1d1));function a13_0x8f47(){const _0xba4141=['handler','builder','28548pRkhUB','794349cbNUaq','tAPHk','help','demandCommand','814kBOYsf','recommendCommands','5681620IvMxYx','usage','command','list_commands','PwAPf','127592iGPyGV','../config/constants','817619UCRpOC','374bkWoKg','root','45906aDtiWl','list','List\x20down\x20the\x20Grid\x20resources.','6582EYJZfR','8mHelIq','50qpiTsU','490OyPJBD','commandDir'];a13_0x8f47=function(){return _0xba4141;};return a13_0x8f47();}exports[a13_0x2dffb3(0x1cd)]=a13_0x2dffb3(0x1bb),exports['desc']=a13_0x2dffb3(0x1bc),exports[a13_0x2dffb3(0x1c3)]=function(_0x1ddfde){const _0x2cf132=a13_0x2dffb3,_0x294f23={};_0x294f23[_0x2cf132(0x1cf)]=_0x2cf132(0x1ce),_0x294f23['tAPHk']=_0x2cf132(0x1c7);const _0x25bef7=_0x294f23;return _0x1ddfde[_0x2cf132(0x1c1)](_0x25bef7[_0x2cf132(0x1cf)])[_0x2cf132(0x1c8)]()[_0x2cf132(0x1cc)](HELP_HEADER_MESSAGE[_0x2cf132(0x1bb)][_0x2cf132(0x1b9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2cf132(0x1ca)]()['strict']()['help'](_0x25bef7[_0x2cf132(0x1c6)]);},exports[a13_0x2dffb3(0x1c2)]=function(_0x35154a){};
@@ -1 +1 @@
1
- const a14_0x3ab19f=a14_0x2a83;function a14_0x5612(){const _0x1b9b3e=['NbTnj','ffSab','username','list','CBFbr','998976UqaiSZ','../../utils/instrumentationUtils','body','log','unknown-error','336288iCDhIC','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','boolean','EPNim','builder','handler','Browserstack','description','264FQRIJL','stack','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','DYCpg','allGridProfiles','name','https://','MlQgb','CJeom','requestId','got','help','error','grid-profiles','MQYhh','readFileSync','list-grid-profiles-called','UflhB','usage','GET','desc','command','password','bstackUsername','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oCdRM','770932FLqlqg','../../utils/utilityMethods','gridProfile','statusCode','forEach','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','UUPdt','region','4024496YrTALY','existsSync','jQpDb','push','type','argv','2169sJoCZs','epilogue','18MQAFqP','Myvdg','PtQtY','ytCzx','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','BAqEZ','uuid','kcFFa','parse','server-error','2632185pmVjpW','all-grid-profiles','exit','PbciF','373999JKsmZA','iTNZy','bstackAccesskey','bQKOe','/packages/cli/get-all-grid-profiles'];a14_0x5612=function(){return _0x1b9b3e;};return a14_0x5612();}(function(_0x1a736e,_0x5d1e10){const _0x376a0a=a14_0x2a83,_0x43f91d=_0x1a736e();while(!![]){try{const _0x1e0261=-parseInt(_0x376a0a(0x83))/0x1+-parseInt(_0x376a0a(0xb5))/0x2+parseInt(_0x376a0a(0xc3))/0x3*(parseInt(_0x376a0a(0x9a))/0x4)+parseInt(_0x376a0a(0x7f))/0x5+-parseInt(_0x376a0a(0x8d))/0x6+parseInt(_0x376a0a(0xbd))/0x7+-parseInt(_0x376a0a(0x92))/0x8*(-parseInt(_0x376a0a(0xc5))/0x9);if(_0x1e0261===_0x5d1e10)break;else _0x43f91d['push'](_0x43f91d['shift']());}catch(_0x4d4f6c){_0x43f91d['push'](_0x43f91d['shift']());}}}(a14_0x5612,0x4affa));function a14_0x2a83(_0x407178,_0x3666a5){const _0x561258=a14_0x5612();return a14_0x2a83=function(_0x2a83ba,_0x212552){_0x2a83ba=_0x2a83ba-0x7c;let _0x5ec51b=_0x561258[_0x2a83ba];return _0x5ec51b;},a14_0x2a83(_0x407178,_0x3666a5);}const fs=require('fs'),got=require(a14_0x3ab19f(0xa4)),{table}=require('table'),{v4:uuidv4}=require(a14_0x3ab19f(0xcb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x3ab19f(0xb6)),{sendInstrumentationEvent}=require(a14_0x3ab19f(0x8e));exports[a14_0x3ab19f(0xaf)]=a14_0x3ab19f(0xa7),exports[a14_0x3ab19f(0xae)]=a14_0x3ab19f(0x9c),exports[a14_0x3ab19f(0x96)]=function(_0xad8f3a){const _0x2176d1=a14_0x3ab19f,_0x1ade67={};_0x1ade67[_0x2176d1(0xca)]=_0x2176d1(0x93),_0x1ade67['UUPdt']=_0x2176d1(0x94),_0x1ade67[_0x2176d1(0x88)]=_0x2176d1(0xa5);const _0x350c00=_0x1ade67,_0x5e9400={};_0x5e9400[_0x2176d1(0x99)]=_0x350c00[_0x2176d1(0xca)],_0x5e9400[_0x2176d1(0xc1)]=_0x350c00[_0x2176d1(0xbb)];const _0x35b336={};return _0x35b336[_0x2176d1(0x80)]=_0x5e9400,_0xad8f3a[_0x2176d1(0xac)](HELP_HEADER_MESSAGE[_0x2176d1(0x8b)][_0x2176d1(0xb7)])[_0x2176d1(0xc4)](HELP_FOOTER_MESSAGE)['options'](_0x35b336)['help'](_0x350c00['NbTnj'])[_0x2176d1(0xc2)];},exports[a14_0x3ab19f(0x97)]=async function(_0x1f0bf8){const _0x15d172=a14_0x3ab19f,_0x39a898={'kcFFa':function(_0x1d09cd){return _0x1d09cd();},'ytCzx':function(_0x4c5eb2){return _0x4c5eb2();},'LbkUq':_0x15d172(0xb3),'DYCpg':function(_0xac9078,_0x3e1c91,_0xc4167d,_0x2430c0,_0x1d36a2,_0x45ce1f,_0x3e3be9){return _0xac9078(_0x3e1c91,_0xc4167d,_0x2430c0,_0x1d36a2,_0x45ce1f,_0x3e3be9);},'CJeom':_0x15d172(0xaa),'PbciF':'init-not-called','MlQgb':_0x15d172(0xad),'efjLk':function(_0x52fa45,_0x7c5300,_0x47f648){return _0x52fa45(_0x7c5300,_0x47f648);},'UflhB':function(_0x223617,_0x4d2c9c,_0x43e952){return _0x223617(_0x4d2c9c,_0x43e952);},'ffSab':function(_0x6a008b,_0x2662ec){return _0x6a008b!==_0x2662ec;},'jQpDb':function(_0x10b5a4,_0x491c3a){return _0x10b5a4!==_0x491c3a;},'Myvdg':function(_0x17e93d,_0x4d2af0){return _0x17e93d===_0x4d2af0;},'PtQtY':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','GKuwk':'grid-profile-name','QtHmY':'cloud-provider','CBFbr':_0x15d172(0xbc),'NxZON':'concurrency','iTNZy':function(_0x4289d6,_0x57833a){return _0x4289d6(_0x57833a);},'bQKOe':_0x15d172(0xba),'oCdRM':'unauthorised','MQYhh':_0x15d172(0x7e),'EPNim':_0x15d172(0x91)};try{global_registry[_0x15d172(0xa3)]=_0x39a898[_0x15d172(0x7c)](uuidv4);let _0x4cdd6e=_0x15d172(0xa0)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x1f0bf8[_0x15d172(0x9e)]&&(_0x4cdd6e=_0x15d172(0xa0)+AG_API_URL+_0x15d172(0x87));!fs[_0x15d172(0xbe)](_0x39a898[_0x15d172(0xc8)](getCredentialsPath))&&(console[_0x15d172(0xa6)](_0x39a898['LbkUq']),await _0x39a898[_0x15d172(0x9d)](sendInstrumentationEvent,_0x1f0bf8,_0x39a898[_0x15d172(0xa2)],messageTypes[_0x15d172(0xb2)],_0x39a898[_0x15d172(0x82)],null,_0x1f0bf8),process[_0x15d172(0x81)](0x1));const _0x533ede=JSON[_0x15d172(0x7d)](fs[_0x15d172(0xa9)](_0x39a898[_0x15d172(0xc8)](getCredentialsPath))),_0x375a11={'method':_0x39a898[_0x15d172(0xa1)],'headers':_0x39a898['efjLk'](getAuthHeader,_0x533ede['Browserstack'][_0x15d172(0x8a)],_0x533ede[_0x15d172(0x98)]['password']),'throwHttpErrors':![]};global_registry[_0x15d172(0xb1)]=_0x533ede['Browserstack'][_0x15d172(0x8a)],global_registry[_0x15d172(0x85)]=_0x533ede['Browserstack'][_0x15d172(0xb0)],_0x39a898[_0x15d172(0x9d)](sendInstrumentationEvent,_0x1f0bf8,_0x39a898['CJeom'],messageTypes['INFO'],null,null,_0x1f0bf8);const _0x5b55e3=await _0x39a898[_0x15d172(0xab)](got,_0x4cdd6e,_0x375a11);if(_0x39a898[_0x15d172(0x89)](_0x5b55e3,null)&&_0x39a898[_0x15d172(0xbf)](_0x5b55e3,undefined)&&_0x39a898[_0x15d172(0xc6)](_0x5b55e3[_0x15d172(0xb8)],0xc8)){const _0x1265e4=JSON[_0x15d172(0x7d)](_0x5b55e3[_0x15d172(0x8f)]);console[_0x15d172(0x90)](_0x39a898[_0x15d172(0xc7)]);const _0x1dddb0=[];_0x1dddb0['push']([_0x39a898['GKuwk'],_0x39a898['QtHmY'],_0x39a898[_0x15d172(0x8c)],_0x39a898['NxZON']]),_0x1265e4[_0x15d172(0xb9)](_0x2df269=>{const _0x480502=_0x15d172;_0x1dddb0[_0x480502(0xc0)]([_0x2df269[_0x480502(0x9f)],_0x2df269['cloudProvider'],_0x2df269[_0x480502(0xbc)],_0x2df269['concurrency']]);}),console['log'](_0x39a898[_0x15d172(0x84)](table,_0x1dddb0)),process[_0x15d172(0x81)](0x0);}_0x39a898['Myvdg'](_0x5b55e3[_0x15d172(0xb8)],0x191)&&(console[_0x15d172(0xa6)](_0x39a898[_0x15d172(0x86)]),await _0x39a898[_0x15d172(0x9d)](sendInstrumentationEvent,_0x1f0bf8,_0x39a898[_0x15d172(0xa2)],messageTypes[_0x15d172(0xb2)],_0x39a898[_0x15d172(0xb4)],null,_0x1f0bf8),process['exit'](0x1)),console[_0x15d172(0xa6)](_0x15d172(0xc9)+JSON['stringify'](_0x5b55e3)),await _0x39a898[_0x15d172(0x9d)](sendInstrumentationEvent,_0x1f0bf8,_0x39a898[_0x15d172(0xa2)],messageTypes[_0x15d172(0xb2)],_0x39a898[_0x15d172(0xa8)],_0x5b55e3,_0x1f0bf8),process[_0x15d172(0x81)](0x1);}catch(_0x537217){console[_0x15d172(0xa6)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x537217[_0x15d172(0x9b)]),await _0x39a898[_0x15d172(0x9d)](sendInstrumentationEvent,_0x1f0bf8,_0x39a898[_0x15d172(0xa2)],messageTypes['ERROR'],_0x39a898[_0x15d172(0x95)],_0x537217,_0x1f0bf8),process[_0x15d172(0x81)](0x1);}};
1
+ function a14_0x26af(){const _0x5ef375=['RnhDd','pVamp','/packages/cli/get-grid-profiles','Browserstack','parse','password','cloud-provider','58tzMzag','log','GET','requestId','RCDbT','gPubK','help','gridProfile','cloudProvider','nkxIm','options','nroEc','11140160GNmauS','stringify','uKUnG','allGridProfiles','vmLrV','concurrency','vjlyq','statusCode','list','NrfUM','../../utils/instrumentationUtils','12dGNMDG','all-grid-profiles','1876284hEmtYg','737597pPIsTv','error','ukzzr','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','argv','epilogue','70371DTGxen','unauthorised','body','Msqkh','ERROR','138180DNfNkj','28258IhRrRU','list-grid-profiles-called','push','https://','name','dlvvR','qIFOV','Iyvlm','OVXSr','bwqSf','region','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uuid','dBJzm','544VHKgIZ','builder','6894520oGdEmx','mIUQc','tplXf','/packages/cli/get-all-grid-profiles','unknown-error','exit','type','kOwuL','usage','command','server-error','../../config/constants','tpfOT','stack','handler','boolean','bstackUsername'];a14_0x26af=function(){return _0x5ef375;};return a14_0x26af();}function a14_0x5a72(_0x2eb90d,_0x1e21c0){const _0x26afb8=a14_0x26af();return a14_0x5a72=function(_0x5a720d,_0x4bd245){_0x5a720d=_0x5a720d-0x101;let _0x146527=_0x26afb8[_0x5a720d];return _0x146527;},a14_0x5a72(_0x2eb90d,_0x1e21c0);}const a14_0x9ecdf=a14_0x5a72;(function(_0x23cd6c,_0x4df454){const _0x137e5a=a14_0x5a72,_0x1d8961=_0x23cd6c();while(!![]){try{const _0x24f998=parseInt(_0x137e5a(0x132))/0x1*(parseInt(_0x137e5a(0x10a))/0x2)+parseInt(_0x137e5a(0x14b))/0x3+-parseInt(_0x137e5a(0x109))/0x4+parseInt(_0x137e5a(0x11a))/0x5+parseInt(_0x137e5a(0x149))/0x6*(-parseInt(_0x137e5a(0x14c))/0x7)+-parseInt(_0x137e5a(0x118))/0x8*(parseInt(_0x137e5a(0x104))/0x9)+-parseInt(_0x137e5a(0x13e))/0xa;if(_0x24f998===_0x4df454)break;else _0x1d8961['push'](_0x1d8961['shift']());}catch(_0x4e0446){_0x1d8961['push'](_0x1d8961['shift']());}}}(a14_0x26af,0xe3bd3));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a14_0x9ecdf(0x116)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x9ecdf(0x125)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x9ecdf(0x148));exports[a14_0x9ecdf(0x123)]='grid-profiles',exports['desc']=a14_0x9ecdf(0x14f),exports[a14_0x9ecdf(0x119)]=function(_0x48db23){const _0x2647a4=a14_0x9ecdf,_0x53f941={};_0x53f941[_0x2647a4(0x147)]=_0x2647a4(0x101),_0x53f941['pVamp']=_0x2647a4(0x129),_0x53f941['nroEc']='help';const _0x2a6de4=_0x53f941,_0x48b3eb={};_0x48b3eb['description']=_0x2a6de4[_0x2647a4(0x147)],_0x48b3eb[_0x2647a4(0x120)]=_0x2a6de4[_0x2647a4(0x12c)];const _0x4e83fb={};return _0x4e83fb[_0x2647a4(0x14a)]=_0x48b3eb,_0x48db23[_0x2647a4(0x122)](HELP_HEADER_MESSAGE[_0x2647a4(0x146)][_0x2647a4(0x139)])[_0x2647a4(0x103)](HELP_FOOTER_MESSAGE)[_0x2647a4(0x13c)](_0x4e83fb)[_0x2647a4(0x138)](_0x2a6de4[_0x2647a4(0x13d)])[_0x2647a4(0x102)];},exports[a14_0x9ecdf(0x128)]=async function(_0x4c3bde){const _0x4641f1=a14_0x9ecdf,_0x67324b={'ddfZo':function(_0x5d9e35){return _0x5d9e35();},'RnhDd':function(_0x57fc80){return _0x57fc80();},'tplXf':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qIFOV':function(_0x292905,_0x292d0d,_0x3604a9,_0x42b5bb,_0x4a877c,_0x2a8a15,_0xd8c890){return _0x292905(_0x292d0d,_0x3604a9,_0x42b5bb,_0x4a877c,_0x2a8a15,_0xd8c890);},'uKUnG':_0x4641f1(0x10b),'gPubK':'init-not-called','tpfOT':_0x4641f1(0x134),'OVXSr':function(_0x235536,_0x270fb8,_0x529fd0){return _0x235536(_0x270fb8,_0x529fd0);},'vjlyq':function(_0x96f044,_0x3b428d,_0x27563b){return _0x96f044(_0x3b428d,_0x27563b);},'Msqkh':function(_0x25e5c3,_0xbcbbc1){return _0x25e5c3!==_0xbcbbc1;},'ukzzr':function(_0x48ca58,_0x564a15){return _0x48ca58!==_0x564a15;},'vmLrV':function(_0x556e22,_0x5e7af5){return _0x556e22===_0x5e7af5;},'RCDbT':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','kOwuL':'grid-profile-name','bwqSf':_0x4641f1(0x131),'fNigU':_0x4641f1(0x114),'mIUQc':_0x4641f1(0x143),'dlvvR':function(_0x2e8674,_0x3155a2){return _0x2e8674(_0x3155a2);},'dBJzm':function(_0x5c9b7a,_0x50a039){return _0x5c9b7a===_0x50a039;},'GyNzA':_0x4641f1(0x115),'Thvbe':_0x4641f1(0x105),'JrCRB':_0x4641f1(0x124),'nkxIm':function(_0x5302bb,_0x1d15ce,_0x1fff85,_0x500eb2,_0xa6baa8,_0x4adcbf,_0x478673){return _0x5302bb(_0x1d15ce,_0x1fff85,_0x500eb2,_0xa6baa8,_0x4adcbf,_0x478673);},'Iyvlm':_0x4641f1(0x11e)};try{global_registry[_0x4641f1(0x135)]=_0x67324b['ddfZo'](uuidv4);let _0x2ed481=_0x4641f1(0x10d)+AG_API_URL+_0x4641f1(0x12d);_0x4c3bde[_0x4641f1(0x141)]&&(_0x2ed481='https://'+AG_API_URL+_0x4641f1(0x11d));!fs['existsSync'](_0x67324b[_0x4641f1(0x12b)](getCredentialsPath))&&(console[_0x4641f1(0x14d)](_0x67324b[_0x4641f1(0x11c)]),await _0x67324b[_0x4641f1(0x110)](sendInstrumentationEvent,_0x4c3bde,_0x67324b[_0x4641f1(0x140)],messageTypes[_0x4641f1(0x108)],_0x67324b[_0x4641f1(0x137)],null,_0x4c3bde),process[_0x4641f1(0x11f)](0x1));const _0x219e11=JSON[_0x4641f1(0x12f)](fs['readFileSync'](_0x67324b[_0x4641f1(0x12b)](getCredentialsPath))),_0x3bde7f={'method':_0x67324b[_0x4641f1(0x126)],'headers':_0x67324b[_0x4641f1(0x112)](getAuthHeader,_0x219e11[_0x4641f1(0x12e)]['username'],_0x219e11[_0x4641f1(0x12e)][_0x4641f1(0x130)]),'throwHttpErrors':![]};global_registry[_0x4641f1(0x12a)]=_0x219e11['Browserstack']['username'],global_registry['bstackAccesskey']=_0x219e11[_0x4641f1(0x12e)][_0x4641f1(0x130)],_0x67324b[_0x4641f1(0x110)](sendInstrumentationEvent,_0x4c3bde,_0x67324b[_0x4641f1(0x140)],messageTypes['INFO'],null,null,_0x4c3bde);const _0x3f7ee8=await _0x67324b[_0x4641f1(0x144)](got,_0x2ed481,_0x3bde7f);if(_0x67324b[_0x4641f1(0x107)](_0x3f7ee8,null)&&_0x67324b[_0x4641f1(0x14e)](_0x3f7ee8,undefined)&&_0x67324b[_0x4641f1(0x142)](_0x3f7ee8[_0x4641f1(0x145)],0xc8)){const _0x4941d7=JSON['parse'](_0x3f7ee8[_0x4641f1(0x106)]);console[_0x4641f1(0x133)](_0x67324b[_0x4641f1(0x136)]);const _0x3f33a1=[];_0x3f33a1[_0x4641f1(0x10c)]([_0x67324b[_0x4641f1(0x121)],_0x67324b[_0x4641f1(0x113)],_0x67324b['fNigU'],_0x67324b[_0x4641f1(0x11b)]]),_0x4941d7['forEach'](_0x1cea07=>{const _0xb4a045=_0x4641f1;_0x3f33a1[_0xb4a045(0x10c)]([_0x1cea07[_0xb4a045(0x10e)],_0x1cea07[_0xb4a045(0x13a)],_0x1cea07[_0xb4a045(0x114)],_0x1cea07['concurrency']]);}),console[_0x4641f1(0x133)](_0x67324b[_0x4641f1(0x10f)](table,_0x3f33a1)),process['exit'](0x0);}_0x67324b[_0x4641f1(0x117)](_0x3f7ee8[_0x4641f1(0x145)],0x191)&&(console[_0x4641f1(0x14d)](_0x67324b['GyNzA']),await _0x67324b['qIFOV'](sendInstrumentationEvent,_0x4c3bde,_0x67324b[_0x4641f1(0x140)],messageTypes[_0x4641f1(0x108)],_0x67324b['Thvbe'],null,_0x4c3bde),process[_0x4641f1(0x11f)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4641f1(0x13f)](_0x3f7ee8)),await _0x67324b[_0x4641f1(0x110)](sendInstrumentationEvent,_0x4c3bde,_0x67324b[_0x4641f1(0x140)],messageTypes[_0x4641f1(0x108)],_0x67324b['JrCRB'],_0x3f7ee8,_0x4c3bde),process[_0x4641f1(0x11f)](0x1);}catch(_0x238cd5){console[_0x4641f1(0x14d)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x238cd5[_0x4641f1(0x127)]),await _0x67324b[_0x4641f1(0x13b)](sendInstrumentationEvent,_0x4c3bde,_0x67324b[_0x4641f1(0x140)],messageTypes['ERROR'],_0x67324b[_0x4641f1(0x111)],_0x238cd5,_0x4c3bde),process[_0x4641f1(0x11f)](0x1);}};