browserstack-node-sdk 1.50.9 → 1.50.11

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 (186) 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/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x16feb5=a9_0x1888;function a9_0x4712(){const _0x5a1731=['ShoTt','kMtbb','string','https','kbiAg','cHAxL','maxNodes','vwnAA','ekwys','IzueR','yepub','../../utils/gridComponents','kSonh','XEOOv','kafkaUploader','cloud-provider','3797656OArCwX','JdISe','10psCMGW','JiiLc','Enabling\x20Hub\x20HA\x20flow','wClRz','://','kwmFl','turboscale-uploader.yaml','Spawning\x20Grid\x20on\x20the\x20Cluster','89576wouNIE','get-grid-url-auth-failed','Kedvl','readFileAsync','alreadyPresent','MCLFt','104613KcIHxS','sendResourceDataToHST','replace','FASDd','50532QGhveQ','Deleting\x20the\x20CloudFormation\x20Stacks','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','http','qWMZE','length','pre-spawned-subnets-not-selected','DSkLC','qadaq','Flag\x20to\x20enable\x20Hub\x20HA','../../utils/instrumentationUtils','VFvMH','VmrXN','utf-8','isPrivateGrid','s3bucket','yECss','Found\x20VPC:\x20','<UsernamePlaceholder>','koFMk','CEqnu','dSwxu','instanceType','hub-ha','HKgcN','BPFtN','CKDtb','Added\x20Redis\x20deployment.','LijTV','https://','hubHaNameSpace','NpEol','templates','otIXD','KYMkS','NitrY','YjCuK','uLiuG','bLsGY','Subnets:\x20','isNewAWSCluster','CFqlw','Oftic','ZMMmO','wCDFW','Pvgnp','browserVersion','clusterName','stringify','readFileSync','hub-ha-deployments-failed','crrOQ','\x27\x20grid\x20profile','minNodes','cihcn','TfzYU','FmvJl','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','bstackAccesskey','gIvGI','Qmczo','QNrRL','Cluster:\x20','pre-spawned-invalid-subnets','jVcuP','vpc','gNzUj','OEhaH','init-not-called','loadAll','Tkagx','7294977FSFCMM','oMYNp','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','concurrency','CLI_RUN_STARTED','QKXkq','usage','vzazp','GRmfO','QHorM','tUAlf','bsumX','Create\x20a\x20new\x20Automation\x20grid.','get-grid-url-non-200','Qdqrm','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','GET','HyyfH','get-grid-url-null-response','efs-csi','statusCode','premium-rwo','../../utils/utilityMethods','CibPJ','mzvvY','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.','command','../..','cptyn','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','GGUgC','isClusterPresent','TWUBu','gKgkn','OTSKV','kfMWF','EYMFr','UONJc','Added\x20Turboscale\x20Uploader\x20deployment.','HWxTR','username','qIAvs','Adding\x20Redis\x20deployment...','privateGrid','grid','OGnaJ','kwYsG','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','default','MsQta','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','AQjFS','juSZQ','gridProfile','BzEIs','addListeners','RepnB','route53','CLI\x20run\x20finished:\x20','<PasswordPlaceholder>','gridProfileId','info','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Added\x20Secret\x20Mapping','LOG','heHwh','skipTlsCertVerify','help','boolean','pUQlI','create-grid-checks-auth-failed','sendEventToBackend','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ERROR','11860flKekE','description','eEVwU','bkuKT','fIHdr','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','VNmai','nJQdm','yDroX','true','mHCpj','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','BoVDL','PXPZm','INFO','zxfwm','txnQH','MndCD','MgVSu','eAYCU','bRkJw','rwAVY','/packages/cli/get-grid-url?gridIdentifier=','qKzfR','ZEPdn','CLI_RUN_FINISHED','region','ingress-nginx','setupHubHa','slVgO','HLJBF','aOdai','vmsmV','newCluster','ZzfdE','reconnecting-websocket','prespawned-cluster-args-not-passed','goasd','redisPassword','message','FHXNT','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','Cluster\x20','../../cloudproviders/utils','../../utils/webSocketUtils','Ibitm','IUvZv','options','Zekji','IEQvh','UHbIV','DAsgE','AMnhA','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Jiopc','Tkdaj','gUHUw','Spawning\x20the\x20grid\x20','QVPyU','oMVET','zJrHF','hAmqV','mYRtL','QTSCY','EsWuQ','291525fRHWqC','vxoyu','rZDMN','createOtherResources','iTnfl','QPFZw','skip-tls-cert-verify','Dghmo','xesjc','kIcBg','../../config/constants','mmHUO','RdxdY','private-grid','yUIne','ingress-nginx-controller','clusterRegion','vAdnO','create-grid-checks-non-200','name','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','delay','KKJQD','password','hubVersion','create','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Adding\x20Secret\x20Mapping','jfERD','wjBzG','Found\x20Subnets:\x20','UkRNzNYCBU','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','uploaderImageVersion','JoDZz','bwfWc','warn','split','IyTHV','5|7|0|15|14|10|12|1|2|9|13|8|3|4|11|6','Added\x20Kafka\x20deployment.','azurefile-csi-premium','lpoYO','type','bOpLl','create-grid-checks-invalid-profile','vkuGZ','browserstack','stack','setupAutoscaler','vIPfj','uploaderVersion','qlKbi','QWwOt','wCrgi','BgndB','Adding\x20Turboscale\x20Uploader\x20deployment...','HExwq','exit','bXEdZ','../../config/logger','17424AJUgnp','bstackUsername','utpNv','EgBbq','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','ZifWV','error','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ZaEpt','lQPKw','Cluster\x20created\x20successfully','join','argv','vHPTr','Vbknm','Create\x20a\x20private/public\x20grid.','YuNMk','yvWaO','includes','WebSocket','nRcdC','EwSdD','getGridHostname','iDJtz','pfyUn','metadata','requestId','dfool','cloudProvider','toLowerCase','cluster-name','ZAgsM','spec','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','HcpsT','bETWH','dPOCf','pZjqC','browserstack-secret.yaml','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','rxALW','FZYHI','body','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','2|7|4|0|6|5|3|1|8','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','defaultGridProfile','setupNewCluster','LXyHY','kafkaPassword','connectionTimeout','Qpite','tizSZ','hkQCY','kzfTg','STJKA','TUzmt','QLhDW','yghhJ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','grid-spawning-failed','crXBC','wQjvF','non-aws-azure-cluster','updateClusterAlreadyPresent','OQDpE','dMFye','HXfKf','readNamespacedService','ZdceK','getResourceClientId','builder','turboscale-managed-identity-','bitnami-kafka.yaml','IUtET','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','AGyiW','hubharesources','CRYvn','FnAVh','enableHubHa','PYEwH','bitnami-redis.yaml','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','VqhMc','XZPPC','Skip\x20insecure\x20cert\x20verification.','epilogue','createNamespace','OAsOh','sMEDD','2|3|4|0|1','ymCYe','clusterAutoupgrade','\x20are\x20not\x20present\x20in\x20VPC:\x20','fEiBy','hqFFn','Epyd5nXbRK','QAYoW','mEymN','clusterAutoUpgrade','kthXx','grid-profile','mArQN','bKrsc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','upQPy','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Browserstack','isVPCPresent','ZsGlN','ooxUD','fiJFA','parse','gridName','Adding\x20Websocket\x20listeners','230AcgYTC','mGjTK','AjWyt','/packages/cli/create-grid-checks','template','serviceAccountName','fcmQl','BvrAF','Adding\x20Kafka\x20deployment...','HPXOh','322ndDjFR','labels','GmDtk','YGRGb','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','create-grid-checks-null-response','create-grid-called','hubHa','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','bUqWa','HKdin','nUFDS','YBKaN','IPxGm'];a9_0x4712=function(){return _0x5a1731;};return a9_0x4712();}(function(_0x29ce51,_0x4c6bb9){const _0x48f102=a9_0x1888,_0x11faf7=_0x29ce51();while(!![]){try{const _0x56f769=parseInt(_0x48f102(0x22b))/0x1+-parseInt(_0x48f102(0x306))/0x2*(-parseInt(_0x48f102(0x314))/0x3)+parseInt(_0x48f102(0x304))/0x4+-parseInt(_0x48f102(0x2dc))/0x5*(parseInt(_0x48f102(0x318))/0x6)+parseInt(_0x48f102(0x2e6))/0x7*(parseInt(_0x48f102(0x30e))/0x8)+parseInt(_0x48f102(0x35f))/0x9+-parseInt(_0x48f102(0x1ea))/0xa*(parseInt(_0x48f102(0x268))/0xb);if(_0x56f769===_0x4c6bb9)break;else _0x11faf7['push'](_0x11faf7['shift']());}catch(_0x2d6475){_0x11faf7['push'](_0x11faf7['shift']());}}}(a9_0x4712,0x73ef9));const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x16feb5(0x20d)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x16feb5(0x216)),{logger}=require(a9_0x16feb5(0x267)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x16feb5(0x375)),{getCloudProviderObject}=require(a9_0x16feb5(0x215)),{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_0x16feb5(0x235)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x16feb5(0x2ff)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x16feb5(0x322));function a9_0x1888(_0x38793a,_0x19835a){const _0x4712ee=a9_0x4712();return a9_0x1888=function(_0x18884d,_0x260290){_0x18884d=_0x18884d-0x1dc;let _0x26cf92=_0x4712ee[_0x18884d];return _0x26cf92;},a9_0x1888(_0x38793a,_0x19835a);}exports[a9_0x16feb5(0x379)]=a9_0x16feb5(0x38b),exports['desc']=a9_0x16feb5(0x36b),exports[a9_0x16feb5(0x2af)]=function(_0x50afe0){const _0xdf1f3d=a9_0x16feb5,_0x5870ae={};_0x5870ae[_0xdf1f3d(0x2f5)]=_0xdf1f3d(0x295),_0x5870ae['kwmFl']=_0xdf1f3d(0x2f6),_0x5870ae[_0xdf1f3d(0x358)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5870ae['hkQCY']=_0xdf1f3d(0x289),_0x5870ae['ZdceK']=_0xdf1f3d(0x1de),_0x5870ae[_0xdf1f3d(0x368)]=_0xdf1f3d(0x2b3),_0x5870ae[_0xdf1f3d(0x24e)]=_0xdf1f3d(0x277),_0x5870ae[_0xdf1f3d(0x237)]=_0xdf1f3d(0x2be),_0x5870ae[_0xdf1f3d(0x37f)]=_0xdf1f3d(0x1e4),_0x5870ae[_0xdf1f3d(0x341)]=_0xdf1f3d(0x321),_0x5870ae['FnAVh']='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0x5870ae['rZDMN']=_0xdf1f3d(0x1e3);const _0x11c05f=_0x5870ae,_0x541595={};_0x541595[_0xdf1f3d(0x1eb)]=_0x11c05f[_0xdf1f3d(0x2f5)],_0x541595['type']=_0x11c05f[_0xdf1f3d(0x30b)];const _0xcb77aa={};_0xcb77aa[_0xdf1f3d(0x1eb)]=_0x11c05f[_0xdf1f3d(0x358)],_0xcb77aa[_0xdf1f3d(0x256)]=_0x11c05f[_0xdf1f3d(0x30b)];const _0x3f6bc8={};_0x3f6bc8[_0xdf1f3d(0x1eb)]=_0x11c05f[_0xdf1f3d(0x29d)],_0x3f6bc8[_0xdf1f3d(0x256)]=_0x11c05f[_0xdf1f3d(0x30b)];const _0x287670={};_0x287670[_0xdf1f3d(0x1eb)]=_0x11c05f[_0xdf1f3d(0x2ad)],_0x287670[_0xdf1f3d(0x256)]=_0x11c05f[_0xdf1f3d(0x30b)];const _0x52ac28={};_0x52ac28['description']=_0x11c05f[_0xdf1f3d(0x368)],_0x52ac28[_0xdf1f3d(0x256)]=_0x11c05f[_0xdf1f3d(0x30b)];const _0x31e58c={};_0x31e58c[_0xdf1f3d(0x1eb)]=_0x11c05f[_0xdf1f3d(0x24e)],_0x31e58c[_0xdf1f3d(0x256)]=_0x11c05f[_0xdf1f3d(0x30b)];const _0x51c918={};_0x51c918['description']=_0x11c05f[_0xdf1f3d(0x237)],_0x51c918[_0xdf1f3d(0x256)]=_0x11c05f[_0xdf1f3d(0x37f)],_0x51c918[_0xdf1f3d(0x38f)]=![];const _0x1e6e50={};_0x1e6e50[_0xdf1f3d(0x1eb)]=_0x11c05f['CFqlw'],_0x1e6e50[_0xdf1f3d(0x256)]=_0x11c05f[_0xdf1f3d(0x37f)],_0x1e6e50[_0xdf1f3d(0x38f)]=![];const _0xf2f30a={};_0xf2f30a['description']=_0x11c05f[_0xdf1f3d(0x2b7)],_0xf2f30a['type']=_0x11c05f[_0xdf1f3d(0x37f)],_0xf2f30a['default']=![];const _0x41139f={};return _0x41139f['grid-name']=_0x541595,_0x41139f[_0xdf1f3d(0x2ce)]=_0xcb77aa,_0x41139f[_0xdf1f3d(0x286)]=_0x3f6bc8,_0x41139f[_0xdf1f3d(0x303)]=_0x287670,_0x41139f[_0xdf1f3d(0x204)]=_0x52ac28,_0x41139f[_0xdf1f3d(0x238)]=_0x31e58c,_0x41139f[_0xdf1f3d(0x231)]=_0x51c918,_0x41139f[_0xdf1f3d(0x32f)]=_0x1e6e50,_0x41139f['cluster-autoupgrade']=_0xf2f30a,_0x50afe0[_0xdf1f3d(0x365)](HELP_HEADER_MESSAGE['create'])[_0xdf1f3d(0x2bf)](HELP_FOOTER_MESSAGE)[_0xdf1f3d(0x219)](_0x41139f)[_0xdf1f3d(0x1e3)](_0x11c05f[_0xdf1f3d(0x22d)])[_0xdf1f3d(0x274)];},exports['handler']=async function(_0x335711){const _0x238a1d=a9_0x16feb5,_0x58836c={'DaGok':_0x238a1d(0x295),'VmrXN':_0x238a1d(0x2f6),'zJrHF':_0x238a1d(0x24b),'UHbIV':_0x238a1d(0x289),'mzvvY':_0x238a1d(0x1de),'ZEPdn':_0x238a1d(0x2b3),'TfzYU':_0x238a1d(0x277),'AMnhA':'Skip\x20insecure\x20cert\x20verification.','HLJBF':_0x238a1d(0x1e4),'ooxUD':_0x238a1d(0x321),'pZjqC':_0x238a1d(0x1ef),'EwSdD':_0x238a1d(0x1e3),'BgndB':_0x238a1d(0x31b),'ZAgsM':_0x238a1d(0x294),'wClRz':'CLI\x20run\x20started','GmDtk':'0|3|1|4|2','GRmfO':_0x238a1d(0x308),'fiJFA':_0x238a1d(0x24a),'yepub':_0x238a1d(0x25a),'Kedvl':_0x238a1d(0x2c9),'Qdqrm':_0x238a1d(0x26e),'EgBbq':_0x238a1d(0x254),'pfyUn':_0x238a1d(0x1f3),'EsWuQ':_0x238a1d(0x38f),'QAYoW':_0x238a1d(0x2f7),'AGyiW':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','bLsGY':function(_0x3632d4,_0x20ddc2){return _0x3632d4(_0x20ddc2);},'vmsmV':_0x238a1d(0x374),'slVgO':function(_0x56f328,_0x469ff7){return _0x56f328(_0x469ff7);},'mHCpj':_0x238a1d(0x252),'LXyHY':function(_0x136fa6,_0x3a25e7){return _0x136fa6!==_0x3a25e7;},'lpoYO':function(_0x103345,_0xaa6db5,_0x1764bd,_0x2334d0,_0x281ed0,_0x4cbf10,_0x111a70,_0x5b004a,_0x2ae02a,_0x1e402c,_0x5c9703,_0x330dcd,_0xd68518){return _0x103345(_0xaa6db5,_0x1764bd,_0x2334d0,_0x281ed0,_0x4cbf10,_0x111a70,_0x5b004a,_0x2ae02a,_0x1e402c,_0x5c9703,_0x330dcd,_0xd68518);},'HPXOh':_0x238a1d(0x24f),'eEVwU':function(_0xe1956,_0x44f155){return _0xe1956===_0x44f155;},'MCLFt':function(_0x6a43d0){return _0x6a43d0();},'STcNN':function(_0x36bcf8){return _0x36bcf8();},'ZaEpt':_0x238a1d(0x386),'VqhMc':_0x238a1d(0x31a),'AQjFS':function(_0x183a70,_0x417197,_0x5d6d6f,_0xc687db,_0x3b8f29,_0x4fb24e,_0xc0f911){return _0x183a70(_0x417197,_0x5d6d6f,_0xc687db,_0x3b8f29,_0x4fb24e,_0xc0f911);},'xesjc':_0x238a1d(0x2ec),'qKzfR':_0x238a1d(0x35c),'BzEIs':function(_0x6852ff,_0x151b3d,_0x5707a2,_0x3c600f,_0x4ef486,_0x4ca657,_0x5d987d){return _0x6852ff(_0x151b3d,_0x5707a2,_0x3c600f,_0x4ef486,_0x4ca657,_0x5d987d);},'eAYCU':function(_0x2ddad6){return _0x2ddad6();},'Dghmo':_0x238a1d(0x32a),'IyTHV':_0x238a1d(0x39a),'jaUsj':_0x238a1d(0x2db),'QPFZw':function(_0x59e364,_0x5dda0b){return _0x59e364===_0x5dda0b;},'wQjvF':_0x238a1d(0x300),'fIHdr':_0x238a1d(0x2a0),'RrGxN':function(_0x2cfed4,_0x382ed4){return _0x2cfed4===_0x382ed4;},'UONJc':'tVsib','gKgkn':'eNhQu','fxbxz':_0x238a1d(0x2ee),'IEQvh':function(_0x2fff3a,_0x2a6f80,_0x544ef3,_0xf0b5c2,_0x2c02bd,_0x56272a,_0x2e0a78,_0x1cfa7b){return _0x2fff3a(_0x2a6f80,_0x544ef3,_0xf0b5c2,_0x2c02bd,_0x56272a,_0x2e0a78,_0x1cfa7b);},'ZMMmO':_0x238a1d(0x20e),'AImiU':_0x238a1d(0x2fd),'dMFye':_0x238a1d(0x245),'NitrY':_0x238a1d(0x2a7),'mmHUO':function(_0x431acd,_0x1c8321){return _0x431acd===_0x1c8321;},'bhWNs':_0x238a1d(0x350),'zLmjl':_0x238a1d(0x1fe),'xdWCo':function(_0x2db2bd,_0x5edc64,_0x134315,_0x2f61a5,_0x105fa1,_0x19ff91,_0x35b023){return _0x2db2bd(_0x5edc64,_0x134315,_0x2f61a5,_0x105fa1,_0x19ff91,_0x35b023);},'nJQdm':_0x238a1d(0x393),'CRYvn':_0x238a1d(0x33c),'XZPPC':function(_0x362800,_0x56ade5){return _0x362800===_0x56ade5;},'cihcn':_0x238a1d(0x2ab),'JFPHi':_0x238a1d(0x1f0),'BoVDL':_0x238a1d(0x20f),'Jiopc':_0x238a1d(0x397),'rwAVY':_0x238a1d(0x36f),'LijTV':function(_0x30b75c,_0x1c9afe,_0x196738){return _0x30b75c(_0x1c9afe,_0x196738);},'HKgcN':function(_0x174560,_0x22e09c){return _0x174560===_0x22e09c;},'IUvZv':_0x238a1d(0x32c),'MgVSu':_0x238a1d(0x28b),'cHAxL':'nMgQt','dSwxu':function(_0x30efd5,_0x29df97){return _0x30efd5===_0x29df97;},'ZsGlN':_0x238a1d(0x257),'CibPJ':_0x238a1d(0x2d2),'yGyqg':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','vxoyu':_0x238a1d(0x2eb),'Tkdaj':function(_0x66f4fe,_0x5c3813){return _0x66f4fe===_0x5c3813;},'FASDd':'qkpsD','meTKt':_0x238a1d(0x381),'VFvMH':_0x238a1d(0x391),'kzfTg':_0x238a1d(0x1e6),'fEiBy':function(_0x4e9da3,_0x4251a9){return _0x4e9da3===_0x4251a9;},'GGUgC':_0x238a1d(0x248),'ZzfdE':function(_0x238e6d,_0xbc28d,_0x45f420,_0x18f1f1,_0x48fc5c,_0x2da93f,_0x484f0d,_0x304567){return _0x238e6d(_0xbc28d,_0x45f420,_0x18f1f1,_0x48fc5c,_0x2da93f,_0x484f0d,_0x304567);},'HExwq':_0x238a1d(0x23d),'HKdin':'Grid\x20profile\x20fetched\x20from\x20backend','FZYHI':_0x238a1d(0x276),'yECss':_0x238a1d(0x2f3),'Qmczo':function(_0x5617cd,_0x1c6224,_0x5b892b,_0x127d95,_0x4eb65a,_0x38bd51,_0x1aff3e,_0x473a6b){return _0x5617cd(_0x1c6224,_0x5b892b,_0x127d95,_0x4eb65a,_0x38bd51,_0x1aff3e,_0x473a6b);},'bXEdZ':'create-grid-checks-grid-already-exists','NpEol':_0x238a1d(0x345),'QATll':_0x238a1d(0x2e2),'cptyn':_0x238a1d(0x301),'HAeOa':_0x238a1d(0x34b),'bsumX':'0|4|3|2|1','rOlSo':function(_0x11da13,_0x2aee5b){return _0x11da13===_0x2aee5b;},'rxALW':_0x238a1d(0x342),'YNbGm':function(_0x3537f6,_0x114467){return _0x3537f6===_0x114467;},'zxfwm':'hzDts','mEymN':_0x238a1d(0x27c),'oMYNp':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','qlKbi':function(_0x385980,_0x4238b5,_0x5e53da,_0x5340f3,_0x212f17,_0x2fd8f6,_0x341655,_0x4c774f){return _0x385980(_0x4238b5,_0x5e53da,_0x5340f3,_0x212f17,_0x2fd8f6,_0x341655,_0x4c774f);},'HcpsT':_0x238a1d(0x258),'kthXx':function(_0x276fe3,_0x4d00d2){return _0x276fe3===_0x4d00d2;},'CKDtb':function(_0x15c58a,_0x4f58fe){return _0x15c58a===_0x4f58fe;},'iDJtz':_0x238a1d(0x2f4),'Zekji':function(_0x422a2b,_0xb5f725){return _0x422a2b===_0xb5f725;},'AjWyt':function(_0x360106,_0x6163f0){return _0x360106!==_0x6163f0;},'DSkLC':_0x238a1d(0x2a5),'txnQH':function(_0x5f6ba6,_0xfb2d63){return _0x5f6ba6!==_0xfb2d63;},'gNzUj':function(_0x5db924,_0x476dae){return _0x5db924===_0x476dae;},'EYMFr':'lKfVk','sMEDD':'kDQyE','TbHym':function(_0x2e03b7,_0x319208){return _0x2e03b7===_0x319208;},'YBKaN':'JtaHw','IUtET':'HTShb','pUQlI':function(_0x3daf4c,_0x5ee77b){return _0x3daf4c===_0x5ee77b;},'QKXkq':'gPDPM','fMLAn':function(_0xc7c387,_0xd3f7ec){return _0xc7c387===_0xd3f7ec;},'MndCD':_0x238a1d(0x29b),'KKJQD':function(_0x62d89e,_0xca86c7,_0x5d9ba8,_0x41fc76,_0x519aa4,_0x7050fa,_0x4c47f1,_0x16b9a0,_0x52101c,_0x46db49,_0xf88716,_0xec5da4,_0x5a9342){return _0x62d89e(_0xca86c7,_0x5d9ba8,_0x41fc76,_0x519aa4,_0x7050fa,_0x4c47f1,_0x16b9a0,_0x52101c,_0x46db49,_0xf88716,_0xec5da4,_0x5a9342);},'vHPTr':_0x238a1d(0x225),'utpNv':_0x238a1d(0x2a9),'kwYsG':function(_0x53918f,_0x289d91){return _0x53918f===_0x289d91;},'iTnfl':_0x238a1d(0x29c),'bkuKT':'3|8|0|7|2|4|1|5|6','tUAlf':function(_0x1b5a6a,_0x152f4d){return _0x1b5a6a!==_0x152f4d;},'CMvfi':function(_0x3ab780,_0x28d874){return _0x3ab780!==_0x28d874;},'dPOCf':_0x238a1d(0x25d),'QTSCY':function(_0x392ea3,_0x3b6ed0){return _0x392ea3===_0x3b6ed0;},'HjslB':_0x238a1d(0x247),'nUFDS':'JTnXb','koFMk':_0x238a1d(0x212),'ymCYe':_0x238a1d(0x2d1),'OGnaJ':function(_0x2594b1,_0x9ceac6){return _0x2594b1!=_0x9ceac6;},'qIAvs':function(_0x4c6145,_0x19de9c){return _0x4c6145!==_0x19de9c;},'MsQta':function(_0x4286df,_0xb427ce){return _0x4286df>_0xb427ce;},'QVPyU':_0x238a1d(0x23f),'QNrRL':_0x238a1d(0x31e),'vkuGZ':function(_0x55dd25,_0x268ea6){return _0x55dd25===_0x268ea6;},'kbiAg':_0x238a1d(0x351),'otIXD':function(_0x10a57f,_0x138295,_0x6d686d,_0x24ceac,_0x558d8c,_0x2a9196,_0x33802b,_0x3f9cee){return _0x10a57f(_0x138295,_0x6d686d,_0x24ceac,_0x558d8c,_0x2a9196,_0x33802b,_0x3f9cee);},'wCDFW':'pre-spawned-invalid-vpc','wadKc':_0x238a1d(0x357),'yvWaO':'3|1|0|2|4','HyyfH':_0x238a1d(0x378),'lQPKw':_0x238a1d(0x272),'YzPrr':function(_0x26304d,_0x2b3c0e){return _0x26304d===_0x2b3c0e;},'kIcBg':function(_0x1553c9,_0x5668ad){return _0x1553c9===_0x5668ad;},'OAsOh':'Creating\x20Hub\x20HA\x20resources','QWwOt':function(_0x4ebbce,_0x39df66,_0x1e3a58){return _0x4ebbce(_0x39df66,_0x1e3a58);},'BPFtN':function(_0x2e03c4,_0x1b2ff0,_0x40785e){return _0x2e03c4(_0x1b2ff0,_0x40785e);},'WSuAx':_0x238a1d(0x246),'gUHUw':_0x238a1d(0x37a),'mArQN':_0x238a1d(0x338),'OEhaH':_0x238a1d(0x2b5),'hqFFn':_0x238a1d(0x28e),'Tkagx':_0x238a1d(0x325),'ZifWV':function(_0x1c46cd,_0x1acf01){return _0x1c46cd(_0x1acf01);},'gizNy':function(_0x1a3598,_0x2a45dd){return _0x1a3598(_0x2a45dd);},'qWMZE':function(_0xcfb4d,_0x58be2f){return _0xcfb4d(_0x58be2f);},'ZNRnc':function(_0x5d03fb,_0x333c37){return _0x5d03fb(_0x333c37);},'yUIne':_0x238a1d(0x1df),'yghhJ':_0x238a1d(0x372),'Sympx':function(_0x1c1cf2,_0x573d8e){return _0x1c1cf2===_0x573d8e;},'bUqWa':_0x238a1d(0x389),'bKrsc':_0x238a1d(0x2ba),'yDroX':_0x238a1d(0x333),'qadaq':_0x238a1d(0x2e4),'aOdai':_0x238a1d(0x2b1),'dfool':_0x238a1d(0x253),'PYEwH':_0x238a1d(0x263),'KYMkS':_0x238a1d(0x30c),'JdISe':function(_0x7e7453,_0x596f6a){return _0x7e7453===_0x596f6a;},'DAsgE':function(_0x791ae7,_0x7fcd6f,_0x3633ca){return _0x791ae7(_0x7fcd6f,_0x3633ca);},'LxEvg':_0x238a1d(0x385),'STJKA':'Created\x20Hub\x20HA\x20resources','mAFAM':'Hub\x20HA\x20setup\x20completed\x20successfully.','YuNMk':_0x238a1d(0x2c3),'AXtvc':function(_0x879f62,_0x409b3a,_0x4267bc,_0x17ab2b,_0x325bf4,_0x5921e5,_0x261d6b,_0x3b2630){return _0x879f62(_0x409b3a,_0x4267bc,_0x17ab2b,_0x325bf4,_0x5921e5,_0x261d6b,_0x3b2630);},'BvrAF':_0x238a1d(0x34a),'QLhDW':'Creating\x20namespace','gIvGI':_0x238a1d(0x2d4),'TtFkg':'Namespace\x20Created','vwnAA':'Namespace\x20created','Ibitm':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','heHwh':_0x238a1d(0x30d),'nsXkv':function(_0x1e8c52,_0x16eb85){return _0x1e8c52===_0x16eb85;},'mYRtL':function(_0x26cc96,_0x3f0d6f,_0x3378f4,_0x57fc6a,_0xeb023c,_0x808a70,_0x25f2e2,_0x4f492e,_0x5294f6,_0x5ef976,_0x240580){return _0x26cc96(_0x3f0d6f,_0x3378f4,_0x57fc6a,_0xeb023c,_0x808a70,_0x25f2e2,_0x4f492e,_0x5294f6,_0x5ef976,_0x240580);},'eGMas':'Grid\x20spawned\x20on\x20the\x20cluster','KhPuy':_0x238a1d(0x21f),'JiiLc':function(_0x3a2732,_0x4473fd,_0x3dcaac,_0x2ca6d7,_0x17ba1b){return _0x3a2732(_0x4473fd,_0x3dcaac,_0x2ca6d7,_0x17ba1b);},'vAdnO':function(_0x8860f0,_0x43adfe,_0x51e50e){return _0x8860f0(_0x43adfe,_0x51e50e);},'NuIaS':'private-ingress-nginx-controller','uLiuG':_0x238a1d(0x23a),'hAmqV':_0x238a1d(0x205),'PXPZm':function(_0x578166,_0x3eb8fb){return _0x578166===_0x3eb8fb;},'vzazp':_0x238a1d(0x2d3),'wCrgi':_0x238a1d(0x371),'ZWihE':_0x238a1d(0x38e),'rXYMz':function(_0x45f850,_0x1d23a1,_0x7c09b9,_0x379a75,_0x1e746b,_0x56a1ec,_0x5593bf,_0x1866f3){return _0x45f850(_0x1d23a1,_0x7c09b9,_0x379a75,_0x1e746b,_0x56a1ec,_0x5593bf,_0x1866f3);},'YGRGb':_0x238a1d(0x30f),'JoDZz':function(_0xac7ec3,_0x328ba5,_0x153faf,_0x469d28,_0x413bc5,_0x440175,_0x7b472e,_0x41e8eb){return _0xac7ec3(_0x328ba5,_0x153faf,_0x469d28,_0x413bc5,_0x440175,_0x7b472e,_0x41e8eb);},'Sdlpm':_0x238a1d(0x36c),'EQhgL':function(_0x5b1ee2,_0x23d4fc){return _0x5b1ee2===_0x23d4fc;},'ekwys':_0x238a1d(0x319),'eNKfV':function(_0x34ce9d,_0x7199cb,_0x4608b1,_0x417a86,_0x37c1f2,_0x5c4dfe){return _0x34ce9d(_0x7199cb,_0x4608b1,_0x417a86,_0x37c1f2,_0x5c4dfe);},'mGjTK':function(_0x4f1f96,_0x32cba6,_0xb5c708,_0x37c995,_0x4e1ab7,_0x357636,_0x480496){return _0x4f1f96(_0x32cba6,_0xb5c708,_0x37c995,_0x4e1ab7,_0x357636,_0x480496);},'kfMWF':_0x238a1d(0x2a4)};let _0x222546=![],_0x482f01=![],_0x4e5050,_0x3182fc,_0x3f4315,_0x279664,_0x2df0f,_0xc71ce9,_0x358c3f,_0x37189a,_0x305098,_0x1f0964,_0x2dc61d,_0x5d350c,_0x17f0c8,_0x114c8c,_0x14c615=0x1,_0x1227a0=0xe;try{global_registry[_0x238a1d(0x282)]=_0x58836c[_0x238a1d(0x313)](uuidv4),global_registry[_0x238a1d(0x326)]=![];!fs['existsSync'](_0x58836c['STcNN'](getCredentialsPath))&&(_0x58836c[_0x238a1d(0x298)](_0x58836c[_0x238a1d(0x270)],_0x58836c[_0x238a1d(0x270)])?_0x2e31a8[_0x238a1d(0x326)]=!![]:(console[_0x238a1d(0x26e)](_0x58836c[_0x238a1d(0x2bc)]),await _0x58836c[_0x238a1d(0x392)](sendInstrumentationEvent,_0x335711,_0x58836c[_0x238a1d(0x233)],messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x201)],null,_0x335711),process[_0x238a1d(0x265)](0x1)));await _0x58836c[_0x238a1d(0x395)](sendInstrumentationEvent,_0x335711,_0x58836c[_0x238a1d(0x233)],messageTypes[_0x238a1d(0x1f8)],null,null,_0x335711);const _0x439787=JSON[_0x238a1d(0x2d9)](fs[_0x238a1d(0x349)](_0x58836c[_0x238a1d(0x1fd)](getCredentialsPath)));global_registry['bstackUsername']=_0x439787[_0x238a1d(0x2d4)][_0x238a1d(0x387)],global_registry[_0x238a1d(0x352)]=_0x439787[_0x238a1d(0x2d4)][_0x238a1d(0x242)];const _0x14744c=WS_ENDPOINT['replace'](_0x58836c[_0x238a1d(0x232)],_0x439787[_0x238a1d(0x2d4)][_0x238a1d(0x387)])[_0x238a1d(0x316)](_0x58836c[_0x238a1d(0x251)],_0x439787['Browserstack'][_0x238a1d(0x242)]),_0x3e285c={};_0x3e285c[_0x238a1d(0x27b)]=ws,_0x3e285c[_0x238a1d(0x29a)]=0x36ee80,_0x5d350c=new ReconnectingWebSocket(_0x14744c,[],_0x3e285c),logger['debug'](_0x58836c['jaUsj']),webSocketUtils[_0x238a1d(0x396)](_0x5d350c,_0x335711['user'],_0x335711[_0x238a1d(0x242)]);const _0x25b1ec=_0x335711[_0x238a1d(0x2da)]||DEFAULT_GRID_NAME;if(_0x335711[_0x238a1d(0x347)]||_0x335711[_0x238a1d(0x284)]||_0x335711['region']){if(_0x58836c[_0x238a1d(0x230)](_0x58836c[_0x238a1d(0x2a6)],_0x58836c[_0x238a1d(0x1ee)])){const _0x5ddad2={};_0x5ddad2[_0x238a1d(0x1eb)]=_0x58836c['DaGok'],_0x5ddad2[_0x238a1d(0x256)]=_0x58836c[_0x238a1d(0x324)];const _0xdbf1={};_0xdbf1[_0x238a1d(0x1eb)]=_0x58836c[_0x238a1d(0x226)],_0xdbf1['type']=_0x58836c[_0x238a1d(0x324)];const _0x4dd766={};_0x4dd766['description']=_0x58836c[_0x238a1d(0x21c)],_0x4dd766[_0x238a1d(0x256)]=_0x58836c[_0x238a1d(0x324)];const _0x1bb486={};_0x1bb486[_0x238a1d(0x1eb)]=_0x58836c[_0x238a1d(0x377)],_0x1bb486[_0x238a1d(0x256)]=_0x58836c[_0x238a1d(0x324)];const _0x2f1da7={};_0x2f1da7[_0x238a1d(0x1eb)]=_0x58836c[_0x238a1d(0x202)],_0x2f1da7[_0x238a1d(0x256)]=_0x58836c[_0x238a1d(0x324)];const _0x5e6ab9={};_0x5e6ab9[_0x238a1d(0x1eb)]=_0x58836c[_0x238a1d(0x34f)],_0x5e6ab9[_0x238a1d(0x256)]=_0x58836c['VmrXN'];const _0x1580ac={};_0x1580ac[_0x238a1d(0x1eb)]=_0x58836c[_0x238a1d(0x21e)],_0x1580ac[_0x238a1d(0x256)]=_0x58836c[_0x238a1d(0x208)],_0x1580ac['default']=![];const _0xd3621b={};_0xd3621b[_0x238a1d(0x1eb)]=_0x58836c[_0x238a1d(0x2d7)],_0xd3621b[_0x238a1d(0x256)]=_0x58836c[_0x238a1d(0x208)],_0xd3621b[_0x238a1d(0x38f)]=![];const _0x3d5c3f={};_0x3d5c3f[_0x238a1d(0x1eb)]=_0x58836c[_0x238a1d(0x28d)],_0x3d5c3f[_0x238a1d(0x256)]=_0x58836c['HLJBF'],_0x3d5c3f['default']=![];const _0x37a0fd={};return _0x37a0fd['grid-name']=_0x5ddad2,_0x37a0fd['grid-profile']=_0xdbf1,_0x37a0fd[_0x238a1d(0x286)]=_0x4dd766,_0x37a0fd['cloud-provider']=_0x1bb486,_0x37a0fd[_0x238a1d(0x204)]=_0x2f1da7,_0x37a0fd[_0x238a1d(0x238)]=_0x5e6ab9,_0x37a0fd[_0x238a1d(0x231)]=_0x1580ac,_0x37a0fd[_0x238a1d(0x32f)]=_0xd3621b,_0x37a0fd['cluster-autoupgrade']=_0x3d5c3f,_0x38c7ac['usage'](_0x5c4c5[_0x238a1d(0x244)])[_0x238a1d(0x2bf)](_0x2f19c8)[_0x238a1d(0x219)](_0x37a0fd)[_0x238a1d(0x1e3)](_0x58836c[_0x238a1d(0x27d)])[_0x238a1d(0x274)];}else{!(_0x335711['clusterName']&&_0x335711['cloudProvider']&&_0x335711['region'])&&(_0x58836c['RrGxN'](_0x58836c[_0x238a1d(0x384)],_0x58836c[_0x238a1d(0x380)])?_0x235600=null:(_0x4e5050=_0x58836c['fxbxz'],await _0x58836c['IEQvh'](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x343)],_0x58836c['Qdqrm']),logger[_0x238a1d(0x26e)](_0x4e5050),process[_0x238a1d(0x265)](0x1)));![AWS,AZURE,GCP][_0x238a1d(0x27a)](_0x335711[_0x238a1d(0x284)][_0x238a1d(0x285)]())&&(_0x58836c[_0x238a1d(0x298)](_0x58836c['AImiU'],_0x58836c['AImiU'])?_0xaabf86=_0x58836c[_0x238a1d(0x262)]:(_0x4e5050=_0x58836c[_0x238a1d(0x2aa)],await _0x58836c[_0x238a1d(0x21b)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x33b)],_0x58836c['Qdqrm']),logger[_0x238a1d(0x26e)](_0x4e5050),process[_0x238a1d(0x265)](0x1)));_0x335711[_0x238a1d(0x38a)]&&_0x58836c[_0x238a1d(0x236)](_0x335711[_0x238a1d(0x38a)][_0x238a1d(0x285)](),_0x58836c[_0x238a1d(0x280)])&&(_0x58836c[_0x238a1d(0x298)](_0x58836c['bhWNs'],_0x58836c['zLmjl'])?global_registry[_0x238a1d(0x326)]=!![]:_0x5af556[_0x238a1d(0x326)]=!![]);global_registry[_0x238a1d(0x284)]=_0x335711['cloudProvider'],global_registry[_0x238a1d(0x23b)]=_0x335711[_0x238a1d(0x204)],global_registry[_0x238a1d(0x347)]=_0x335711[_0x238a1d(0x347)];const _0x93c884=await _0x58836c['xdWCo'](getCloudProviderObject,_0x335711[_0x238a1d(0x284)],_0x335711['clusterName'],_0x25b1ec,_0x5d350c,webSocketUtils,_0x335711),_0x308e51=await _0x93c884[_0x238a1d(0x37e)]();if(!_0x308e51){if(_0x58836c[_0x238a1d(0x298)](_0x58836c[_0x238a1d(0x1f1)],_0x58836c[_0x238a1d(0x2b6)]))logger[_0x238a1d(0x1dd)](_0x238a1d(0x356)+_0x335711[_0x238a1d(0x347)]+_0x238a1d(0x2ea)),_0x222546=![],_0x482f01=!![];else{const _0x2d8a9d=_0x58836c[_0x238a1d(0x287)][_0x238a1d(0x250)]('|');let _0x5cf7ed=0x0;while(!![]){switch(_0x2d8a9d[_0x5cf7ed++]){case'0':const _0x27ef0d={};_0x27ef0d[_0x238a1d(0x256)]=_0x3757b4[_0x238a1d(0x1e0)],_0x27ef0d[_0x238a1d(0x211)]=_0x2874b8,_0x4c8181[_0x238a1d(0x1e7)](_0x240723,_0x27ef0d);continue;case'1':_0x3701b5[_0x238a1d(0x243)]=_0x9a63fe[_0x238a1d(0x243)];continue;case'2':const _0x64c430={};_0x64c430[_0x238a1d(0x256)]=_0x5417e1[_0x238a1d(0x363)],_0x64c430[_0x238a1d(0x211)]=_0x58836c['wClRz'],_0x478b35['sendEventToBackend'](_0x38252a,_0x64c430);continue;case'3':_0x4d6426[_0x238a1d(0x347)]=_0x45fa2b;continue;case'4':_0x55e6ab['info'](_0x47c7dc);continue;case'5':_0x584317[_0x238a1d(0x23b)]=_0x33de6a;continue;case'6':_0x3d6db3['cloudProvider']=_0x1cd21a;continue;case'7':_0x34a88e=_0x238a1d(0x223)+_0x1ff2d1+'\x20in\x20existing\x20cluster\x20\x27'+_0x4bf33a+'\x27';continue;case'8':_0x1b42a9['browserVersion']=_0x2ef7b2[_0x238a1d(0x346)];continue;}break;}}}else{if(_0x58836c['XZPPC'](_0x58836c[_0x238a1d(0x34e)],_0x58836c['JFPHi'])){const _0x134da6=_0x58836c[_0x238a1d(0x2e8)]['split']('|');let _0x2bdd7f=0x0;while(!![]){switch(_0x134da6[_0x2bdd7f++]){case'0':_0x3a13ae[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x367)]);continue;case'1':_0x4e7400[_0x238a1d(0x210)]=_0x58836c['fiJFA'];continue;case'2':_0x25517a[_0x238a1d(0x2b8)]=!![];continue;case'3':_0x281e7c[_0x238a1d(0x336)]=_0x58836c[_0x238a1d(0x2fe)];continue;case'4':_0x253d4b[_0x238a1d(0x299)]=_0x58836c[_0x238a1d(0x310)];continue;}break;}}else _0x222546=!![];}_0x3f4315=_0x335711[_0x238a1d(0x347)],_0x3182fc=_0x335711[_0x238a1d(0x284)][_0x238a1d(0x285)](),_0x279664=_0x335711[_0x238a1d(0x204)];}}else{if(_0x335711[_0x238a1d(0x394)]){if(_0x58836c[_0x238a1d(0x298)](_0x58836c[_0x238a1d(0x1f6)],_0x58836c[_0x238a1d(0x220)]))global_registry[_0x238a1d(0x394)]=_0x335711[_0x238a1d(0x394)];else{const _0x19ade2={};_0x19ade2[_0x238a1d(0x256)]=_0x227371[_0x238a1d(0x1e0)],_0x19ade2[_0x238a1d(0x211)]=_0x13aea9,_0x5c1043[_0x238a1d(0x1e7)](_0x211425,_0x19ade2,_0x58836c[_0x238a1d(0x36d)],!![]);}}}global_registry['gridName']=_0x335711[_0x238a1d(0x2da)];const _0x6142be={'method':_0x58836c[_0x238a1d(0x1ff)],'headers':_0x58836c[_0x238a1d(0x334)](getAuthHeader,_0x439787[_0x238a1d(0x2d4)][_0x238a1d(0x387)],_0x439787['Browserstack'][_0x238a1d(0x242)]),'throwHttpErrors':![]},_0x1d9a99={};_0x1d9a99[_0x238a1d(0x2da)]=_0x25b1ec;const _0x57505d=_0x1d9a99;_0x482f01&&(_0x58836c[_0x238a1d(0x330)](_0x58836c[_0x238a1d(0x218)],_0x58836c[_0x238a1d(0x1fc)])?_0x169866[_0x238a1d(0x394)]=_0x3067cc[_0x238a1d(0x394)]:(_0x57505d['region']=_0x279664,_0x57505d[_0x238a1d(0x284)]=_0x3182fc,_0x57505d[_0x238a1d(0x20b)]=!![],_0x57505d[_0x238a1d(0x2cc)]=_0x335711[_0x238a1d(0x2c5)]));_0x335711[_0x238a1d(0x2c5)]&&(_0x58836c[_0x238a1d(0x2bd)](_0x58836c['cHAxL'],_0x58836c[_0x238a1d(0x2f9)])?logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x2b4)]):(_0x321ac0[_0x238a1d(0x1dd)](_0x238a1d(0x356)+_0x1df81c[_0x238a1d(0x347)]+_0x238a1d(0x2ea)),_0x27e0ec=![],_0x542a9b=!![]));const _0xda16c4=_0x238a1d(0x335)+AG_API_URL+_0x238a1d(0x2df),_0x3648e3={'searchParams':_0x57505d,'throwHttpErrors':![],..._0x6142be},_0x476e94=_0x3648e3,_0x27c31c=await _0x58836c['LijTV'](got,_0xda16c4,_0x476e94);(_0x58836c[_0x238a1d(0x236)](_0x27c31c,null)||_0x58836c[_0x238a1d(0x32d)](_0x27c31c,undefined))&&(_0x58836c[_0x238a1d(0x230)](_0x58836c[_0x238a1d(0x2d6)],_0x58836c[_0x238a1d(0x376)])?_0x248e16=_0x58836c[_0x238a1d(0x26b)]:(_0x4e5050=_0x58836c['yGyqg'],await _0x58836c['IEQvh'](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes['ERROR'],_0x58836c['xesjc'],_0x58836c[_0x238a1d(0x22c)],_0x58836c[_0x238a1d(0x36d)]),logger[_0x238a1d(0x26e)](_0x4e5050),process['exit'](0x1)));_0x58836c['Tkdaj'](_0x27c31c[_0x238a1d(0x373)],0x191)&&(_0x58836c[_0x238a1d(0x2bd)](_0x58836c[_0x238a1d(0x317)],_0x58836c['meTKt'])?(_0x59fa51['region']=_0x53cc28,_0xa45bb6[_0x238a1d(0x284)]=_0x45269c,_0x296698['newCluster']=!![],_0x1a1915[_0x238a1d(0x2cc)]=_0x431974['clusterAutoupgrade']):(_0x4e5050=_0x58836c[_0x238a1d(0x323)],await _0x58836c[_0x238a1d(0x21b)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x29e)],_0x58836c[_0x238a1d(0x36d)]),logger['error'](_0x4e5050),process[_0x238a1d(0x265)](0x1)));_0x58836c[_0x238a1d(0x298)](_0x27c31c[_0x238a1d(0x373)],0xc8)&&(_0x58836c[_0x238a1d(0x2c7)](_0x58836c[_0x238a1d(0x37d)],_0x58836c[_0x238a1d(0x37d)])?(_0x4e5050=_0x238a1d(0x1e8)+JSON[_0x238a1d(0x348)](_0x27c31c[_0x238a1d(0x292)]),await _0x58836c[_0x238a1d(0x20c)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes['ERROR'],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x264)],_0x58836c[_0x238a1d(0x36d)]),logger[_0x238a1d(0x26e)](_0x4e5050),process['exit'](0x1)):_0x4915c2[_0x238a1d(0x315)]());const _0x3f6f8a=JSON[_0x238a1d(0x2d9)](_0x27c31c[_0x238a1d(0x292)]),_0x397c59={};_0x397c59['type']=WS_EVENTS[_0x238a1d(0x363)],_0x397c59[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x309)],webSocketUtils['sendEventToBackend'](_0x5d350c,_0x397c59);const _0x157e55={};_0x157e55[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x157e55[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x2f0)],webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x157e55);_0x3f6f8a[_0x238a1d(0x312)]&&(_0x58836c[_0x238a1d(0x298)](_0x58836c[_0x238a1d(0x291)],_0x58836c[_0x238a1d(0x328)])?(_0x4e5050=_0x238a1d(0x2a3)+_0x25b1ec+_0x238a1d(0x26c),await _0x58836c[_0x238a1d(0x354)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x266)],_0x58836c[_0x238a1d(0x36d)]),logger['error'](_0x4e5050),process['exit'](0x1)):_0x3c525a[_0x238a1d(0x1dd)](_0x238a1d(0x249)+_0x40cca6[_0x238a1d(0x348)](_0x40ea13)+'\x20'));const _0x221508=_0x3f6f8a['gridProfiles'];let _0x28a0ef=_0x221508[_0x3f6f8a[_0x238a1d(0x296)]];if(_0x335711[_0x238a1d(0x394)]){if(_0x58836c[_0x238a1d(0x2c7)](_0x58836c[_0x238a1d(0x337)],_0x58836c['QATll'])){const _0x3a5c9f={'azure.workload.identity/use':_0x58836c[_0x238a1d(0x280)],..._0x1d1d52[0x0]['spec'][_0x238a1d(0x2e0)][_0x238a1d(0x281)][_0x238a1d(0x2e7)]};_0x360421[0x0][_0x238a1d(0x288)]['template']['metadata'][_0x238a1d(0x2e7)]=_0x3a5c9f,_0x5f285d[0x0]['spec'][_0x238a1d(0x2e0)][_0x238a1d(0x288)][_0x238a1d(0x2e1)]=_0x58836c[_0x238a1d(0x22a)];}else _0x28a0ef=_0x221508[_0x335711[_0x238a1d(0x394)]];}global_registry[_0x238a1d(0x2b8)]=![];if(_0x335711[_0x238a1d(0x2ed)]){if(_0x58836c[_0x238a1d(0x236)](_0x58836c[_0x238a1d(0x37b)],_0x58836c['HAeOa']))_0x5b1a7b=_0x11476f['route53'],_0x322e52=_0x58836c[_0x238a1d(0x2ca)];else{const _0x2f99ff=_0x58836c[_0x238a1d(0x36a)][_0x238a1d(0x250)]('|');let _0x342e47=0x0;while(!![]){switch(_0x2f99ff[_0x342e47++]){case'0':logger[_0x238a1d(0x1dd)](_0x58836c['GRmfO']);continue;case'1':global_registry[_0x238a1d(0x2b8)]=!![];continue;case'2':global_registry['kafkaPassword']=_0x58836c[_0x238a1d(0x310)];continue;case'3':global_registry[_0x238a1d(0x210)]=_0x58836c[_0x238a1d(0x2d8)];continue;case'4':global_registry['hubHaNameSpace']=_0x58836c[_0x238a1d(0x2fe)];continue;}break;}}}if(_0x58836c[_0x238a1d(0x2bd)](_0x222546,![])&&_0x58836c['rOlSo'](_0x482f01,![])){if(_0x58836c[_0x238a1d(0x221)](_0x58836c[_0x238a1d(0x290)],_0x58836c[_0x238a1d(0x290)])){_0x58836c['YNbGm'](_0x28a0ef,undefined)&&(_0x58836c[_0x238a1d(0x330)](_0x58836c[_0x238a1d(0x1f9)],_0x58836c[_0x238a1d(0x2cb)])?_0x119cf7[_0x238a1d(0x326)]=!![]:(_0x4e5050=_0x58836c[_0x238a1d(0x360)],await _0x58836c[_0x238a1d(0x25f)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x28a)],_0x58836c[_0x238a1d(0x36d)]),logger[_0x238a1d(0x26e)](_0x4e5050),process[_0x238a1d(0x265)](0x1)));global_registry[_0x238a1d(0x1dc)]=_0x28a0ef['id'],_0x4e5050='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x25b1ec+'\x20using\x20\x27'+_0x28a0ef[_0x238a1d(0x23e)]+_0x238a1d(0x34c),logger[_0x238a1d(0x1dd)](_0x4e5050);const _0x44b8f5={};_0x44b8f5[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x44b8f5[_0x238a1d(0x211)]=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x44b8f5),_0x3182fc=_0x28a0ef[_0x238a1d(0x284)],_0x3f4315=_0x28a0ef['clusterName'],_0x279664=_0x28a0ef[_0x238a1d(0x204)],_0x2df0f=_0x28a0ef[_0x238a1d(0x362)],_0xc71ce9=_0x28a0ef[_0x238a1d(0x32e)],_0x358c3f=_0x28a0ef[_0x238a1d(0x359)],_0x37189a=_0x28a0ef['securityGroups'],_0x305098=_0x28a0ef['subnets'],_0x1f0964=_0x28a0ef['s3bucket'],_0x14c615=_0x28a0ef[_0x238a1d(0x34d)],_0x1227a0=_0x28a0ef[_0x238a1d(0x2fa)],_0x17f0c8=_0x3f6f8a[_0x238a1d(0x243)],_0x114c8c=_0x3f6f8a[_0x238a1d(0x346)],_0x358c3f&&_0x58836c[_0x238a1d(0x2cd)](_0x358c3f[_0x238a1d(0x31d)],0x0)&&(_0x58836c[_0x238a1d(0x332)](_0x58836c[_0x238a1d(0x27f)],_0x58836c['iDJtz'])?_0x358c3f=null:_0x42435a['info'](_0x58836c['AGyiW'])),_0x305098&&_0x58836c[_0x238a1d(0x21a)](_0x305098[_0x238a1d(0x31d)],0x0)&&(_0x58836c[_0x238a1d(0x2de)](_0x58836c[_0x238a1d(0x31f)],_0x58836c[_0x238a1d(0x31f)])?_0x55af77[_0x238a1d(0x26e)](_0x238a1d(0x1f5)+_0x3f907e+'\x20\x0a'+_0x46f72c[_0x238a1d(0x348)](_0x1f5709['stack'])):_0x305098=null),_0x58836c['txnQH'](_0x28a0ef[_0x238a1d(0x38a)],undefined)&&_0x28a0ef[_0x238a1d(0x38a)]&&(_0x58836c[_0x238a1d(0x35a)](_0x58836c[_0x238a1d(0x383)],_0x58836c[_0x238a1d(0x2c2)])?_0x52a216[_0x238a1d(0x1dd)]('Found\x20VPC:\x20'+_0x521f71+'\x20'):global_registry[_0x238a1d(0x326)]=!![]),_0x58836c[_0x238a1d(0x255)](updateGlobalRegistryWithConfig,_0x3182fc,_0x3f4315,_0x279664,_0x2df0f,_0xc71ce9,_0x1f0964,_0x28a0ef,_0x17f0c8,_0x114c8c,_0x14c615,_0x1227a0,_0x335711[_0x238a1d(0x2c5)]),global_registry[_0x238a1d(0x2b8)]&&(_0x58836c['TbHym'](_0x58836c[_0x238a1d(0x2f2)],_0x58836c[_0x238a1d(0x2b2)])?_0x58836c['bLsGY'](_0x247447,_0x52c004[_0x238a1d(0x302)]):_0x58836c[_0x238a1d(0x207)](updateGlobalRegistryForHubHa,_0x3f6f8a[_0x238a1d(0x25e)]));}else _0x298960=_0x58836c[_0x238a1d(0x20a)];}else{if(_0x58836c[_0x238a1d(0x21a)](_0x482f01,!![])){if(_0x58836c['pUQlI'](_0x58836c[_0x238a1d(0x364)],_0x58836c[_0x238a1d(0x364)])){_0x4e5050=_0x238a1d(0x37c)+_0x25b1ec,logger[_0x238a1d(0x1dd)](_0x4e5050);const _0xe263b5={};_0xe263b5['type']=WS_EVENTS[_0x238a1d(0x1e0)],_0xe263b5[_0x238a1d(0x211)]=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0xe263b5),_0x2df0f=_0x28a0ef['concurrency'],_0xc71ce9=_0x28a0ef[_0x238a1d(0x32e)],_0x358c3f=null,_0x37189a=null,_0x305098=null,_0x1f0964=_0x28a0ef[_0x238a1d(0x327)],_0x14c615=_0x28a0ef['minNodes'],_0x1227a0=_0x28a0ef[_0x238a1d(0x2fa)],_0x17f0c8=_0x3f6f8a['hubVersion'],_0x114c8c=_0x3f6f8a[_0x238a1d(0x346)];_0x58836c[_0x238a1d(0x1fa)](_0x28a0ef[_0x238a1d(0x38a)],undefined)&&_0x28a0ef[_0x238a1d(0x38a)]&&(_0x58836c['fMLAn'](_0x58836c[_0x238a1d(0x1fb)],_0x58836c[_0x238a1d(0x1fb)])?global_registry[_0x238a1d(0x326)]=!![]:_0x58836c[_0x238a1d(0x207)](_0x323758,_0x31b17c[_0x238a1d(0x25e)]));_0x58836c[_0x238a1d(0x241)](updateGlobalRegistryWithConfig,_0x3182fc,_0x3f4315,_0x279664,_0x2df0f,_0xc71ce9,_0x1f0964,_0x28a0ef,_0x17f0c8,_0x114c8c,_0x14c615,_0x1227a0,_0x335711[_0x238a1d(0x2c5)]);if(global_registry['enableHubHa']){if(_0x58836c[_0x238a1d(0x221)](_0x58836c[_0x238a1d(0x275)],_0x58836c[_0x238a1d(0x26a)])){const _0x23146a=_0x58836c[_0x238a1d(0x1f4)][_0x238a1d(0x250)]('|');let _0x554b3f=0x0;while(!![]){switch(_0x23146a[_0x554b3f++]){case'0':const _0x4cbfd7={};_0x4cbfd7[_0x238a1d(0x256)]=_0x3cfa34[_0x238a1d(0x1e0)],_0x4cbfd7['message']=_0x5dc1a7,_0x6c97c8[_0x238a1d(0x1e7)](_0x3c6c9c,_0x4cbfd7);continue;case'1':_0x590ec0=null;continue;case'2':_0x5ab5b1=_0x23e353[_0x238a1d(0x327)];continue;case'3':_0x12a8eb=_0x10232b[_0x238a1d(0x346)];continue;case'4':_0x58836c[_0x238a1d(0x298)](_0x35a8e1[_0x238a1d(0x38a)],_0x18a717)&&_0x53351d[_0x238a1d(0x38a)]&&(_0x51bb15[_0x238a1d(0x326)]=!![]);continue;case'5':_0x4ad655='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x52319b;continue;case'6':_0x32f6f7[_0x238a1d(0x2b8)]&&_0x58836c['bLsGY'](_0x3294ec,_0x2a3ac5[_0x238a1d(0x302)]);continue;case'7':_0x199432[_0x238a1d(0x1dd)](_0x586968);continue;case'8':_0x37e44f=_0x5b66b7[_0x238a1d(0x243)];continue;case'9':_0x45e9fc=_0x1d8404['minNodes'];continue;case'10':_0x39b411=null;continue;case'11':_0x58836c[_0x238a1d(0x255)](_0x4657d0,_0x5358da,_0x2eb32c,_0x18acd9,_0x546857,_0x5f4510,_0x37d7ad,_0x3736ae,_0x117e41,_0x27735e,_0x2ecb7b,_0x55f66a,_0x413501['clusterAutoupgrade']);continue;case'12':_0x5105f7=null;continue;case'13':_0x554d9e=_0x3f06f7[_0x238a1d(0x2fa)];continue;case'14':_0x32dc4d=_0x12b76a[_0x238a1d(0x32e)];continue;case'15':_0x467566=_0x2bda50[_0x238a1d(0x362)];continue;}break;}}else _0x58836c[_0x238a1d(0x33e)](updateGlobalRegistryForHubHa,_0x3f6f8a['kafkaUploader']);}}else _0x306079=_0x48a7f7[_0x445c35[_0x238a1d(0x394)]];}else{if(_0x58836c[_0x238a1d(0x38d)](_0x58836c['iTnfl'],_0x58836c[_0x238a1d(0x22f)])){const _0x2f6143=_0x58836c[_0x238a1d(0x1ed)][_0x238a1d(0x250)]('|');let _0x187b57=0x0;while(!![]){switch(_0x2f6143[_0x187b57++]){case'0':logger[_0x238a1d(0x1dd)](_0x4e5050);continue;case'1':global_registry['clusterName']=_0x3f4315;continue;case'2':global_registry[_0x238a1d(0x284)]=_0x3182fc;continue;case'3':const _0xb64f9f={};_0xb64f9f[_0x238a1d(0x256)]=WS_EVENTS['CLI_RUN_STARTED'],_0xb64f9f[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x309)],webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0xb64f9f);continue;case'4':global_registry['clusterRegion']=_0x279664;continue;case'5':global_registry['hubVersion']=_0x3f6f8a['hubVersion'];continue;case'6':global_registry[_0x238a1d(0x346)]=_0x3f6f8a[_0x238a1d(0x346)];continue;case'7':const _0x21c7e3={};_0x21c7e3['type']=WS_EVENTS['LOG'],_0x21c7e3['message']=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x21c7e3);continue;case'8':_0x4e5050=_0x238a1d(0x223)+_0x25b1ec+'\x20in\x20existing\x20cluster\x20\x27'+_0x3f4315+'\x27';continue;}break;}}else _0x1a747e=null;}}const _0x382239=await _0x58836c[_0x238a1d(0x392)](getCloudProviderObject,_0x3182fc,_0x3f4315,_0x25b1ec,_0x5d350c,webSocketUtils,_0x335711);if(_0x58836c[_0x238a1d(0x369)](_0x3182fc,AZURE)){if(_0x58836c['CMvfi'](_0x58836c[_0x238a1d(0x28c)],_0x58836c['dPOCf'])){const _0x133dc8={};_0x133dc8[_0x238a1d(0x256)]=_0x329cfd[_0x238a1d(0x1e0)],_0x133dc8['message']=_0x238a1d(0x214)+_0x475c63+_0x238a1d(0x36e),_0x63ad8e[_0x238a1d(0x1e7)](_0x3b738b,_0x133dc8,_0x58836c[_0x238a1d(0x2e5)]),_0x2c2cd0[_0x238a1d(0x1dd)](_0x238a1d(0x214)+_0x53ac7c+_0x238a1d(0x36e)),_0x1bba12=!![];if(_0x58836c['eEVwU'](_0x4cbfca,!![]))throw new _0x119c27(_0x238a1d(0x214)+_0x25d2be+_0x238a1d(0x28f));}else _0x382239[_0x238a1d(0x315)]();}let _0x5b80ff;if(_0x58836c[_0x238a1d(0x229)](_0x222546,![])){_0x4e5050=_0x238a1d(0x361)+_0x279664+').';const _0x171c17={};_0x171c17[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x171c17[_0x238a1d(0x211)]=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x171c17),logger['info'](_0x4e5050);const _0x31fc3c=await _0x382239['isClusterPresent']();if(_0x31fc3c){if(_0x58836c['CKDtb'](_0x58836c['HjslB'],_0x58836c[_0x238a1d(0x2f1)]))throw new _0x51b542(_0x238a1d(0x214)+_0x24715c+_0x238a1d(0x28f));else{const _0x3e55b1={};_0x3e55b1[_0x238a1d(0x256)]=WS_EVENTS['LOG'],_0x3e55b1[_0x238a1d(0x211)]=_0x238a1d(0x214)+_0x3f4315+_0x238a1d(0x36e),webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x3e55b1,_0x58836c['HPXOh']),logger[_0x238a1d(0x1dd)](_0x238a1d(0x214)+_0x3f4315+_0x238a1d(0x36e)),_0x222546=!![];if(_0x58836c[_0x238a1d(0x1e5)](_0x482f01,!![])){if(_0x58836c[_0x238a1d(0x35a)](_0x58836c[_0x238a1d(0x32b)],_0x58836c[_0x238a1d(0x32b)]))throw new Error(_0x238a1d(0x214)+_0x3f4315+_0x238a1d(0x28f));else _0x40df26=!![];}}}else{const _0xf0dab4={};_0xf0dab4[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0xf0dab4[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x2c4)],webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0xf0dab4),logger['info'](_0x58836c[_0x238a1d(0x2c4)]);const _0x470761=_0x58836c['OGnaJ'](_0x358c3f,null)&&_0x58836c[_0x238a1d(0x388)](_0x358c3f,undefined),_0x307a6b=_0x58836c[_0x238a1d(0x38c)](_0x305098,null)&&_0x58836c['txnQH'](_0x305098,undefined)&&_0x58836c[_0x238a1d(0x390)](_0x305098['length'],0x0);if(_0x470761){_0x58836c['QPFZw'](_0x307a6b,![])&&(_0x4e5050=_0x58836c[_0x238a1d(0x224)],await _0x58836c['Qmczo'](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x355)],_0x58836c['Qdqrm']),logger[_0x238a1d(0x26e)](_0x4e5050),process['exit'](0x1));const _0xde55f0=await _0x382239[_0x238a1d(0x2d5)](_0x358c3f);_0x58836c[_0x238a1d(0x259)](_0xde55f0,![])?(_0x4e5050=_0x58836c[_0x238a1d(0x2f8)],await _0x58836c[_0x238a1d(0x339)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c['xesjc'],_0x58836c[_0x238a1d(0x344)],_0x58836c[_0x238a1d(0x36d)]),logger['error'](_0x4e5050),process[_0x238a1d(0x265)](0x1)):logger['info'](_0x238a1d(0x329)+_0x358c3f+'\x20');const _0x1adc93=await _0x382239['isSubnetsValid'](_0x305098,_0x358c3f);_0x58836c[_0x238a1d(0x1ec)](_0x1adc93[0x0],![])?(_0x4e5050=_0x238a1d(0x33f)+JSON[_0x238a1d(0x348)](_0x1adc93[0x1])+_0x238a1d(0x2c6)+_0x358c3f+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x58836c['Qmczo'](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c['xesjc'],_0x58836c['wadKc'],_0x58836c[_0x238a1d(0x36d)]),logger[_0x238a1d(0x26e)](_0x4e5050),process[_0x238a1d(0x265)](0x1)):logger[_0x238a1d(0x1dd)](_0x238a1d(0x249)+JSON[_0x238a1d(0x348)](_0x305098)+'\x20'),[_0x358c3f,_0x305098]=await _0x382239[_0x238a1d(0x297)](_0x358c3f,_0x305098);}else{const _0x37d6f9=_0x58836c[_0x238a1d(0x279)]['split']('|');let _0x4fa3ae=0x0;while(!![]){switch(_0x37d6f9[_0x4fa3ae++]){case'0':[_0x358c3f,_0x305098]=await _0x382239[_0x238a1d(0x297)](_0x358c3f,_0x305098);continue;case'1':logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x370)]);continue;case'2':const _0x4ed25={};_0x4ed25[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x4ed25['message']=_0x58836c['lQPKw'],webSocketUtils['sendEventToBackend'](_0x5d350c,_0x4ed25);continue;case'3':const _0x526992={};_0x526992[_0x238a1d(0x256)]=WS_EVENTS['LOG'],_0x526992['message']=_0x58836c[_0x238a1d(0x370)],webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x526992);continue;case'4':logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x271)]);continue;}break;}}}}_0x222546&&_0x58836c['YzPrr'](_0x3182fc,AZURE)&&(await _0x382239[_0x238a1d(0x2a8)](),await _0x382239[_0x238a1d(0x22e)]());const [_0x35cc13,_0x2f4b44,_0x443ee0,_0x14b523,_0x4ecab6,_0x195ce2,_0x43c56a]=await _0x58836c[_0x238a1d(0x334)](createK8sClient,_0x382239,_0x335711[_0x238a1d(0x1e2)]);_0x58836c[_0x238a1d(0x21a)](_0x222546,![])&&_0x58836c[_0x238a1d(0x234)](_0x3182fc,AWS)&&(global_registry[_0x238a1d(0x340)]=!![],_0x5b80ff=await _0x382239[_0x238a1d(0x25c)](_0x35cc13,_0x335711));if(_0x58836c[_0x238a1d(0x38d)](_0x222546,![])&&global_registry[_0x238a1d(0x2b8)])try{await _0x382239[_0x238a1d(0x206)](_0x195ce2,_0x43c56a,_0x335711,_0x358c3f,_0x305098);const _0x43f2d2={};_0x43f2d2[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x43f2d2[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x2c1)],webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x43f2d2);!await _0x58836c['QWwOt'](namespaceExists,_0x35cc13,global_registry['hubHaNameSpace'])&&await _0x58836c[_0x238a1d(0x331)](createNamespace,_0x35cc13,global_registry[_0x238a1d(0x336)]);logger[_0x238a1d(0x1dd)](_0x58836c['WSuAx']);let _0x36ab21=await fs[_0x238a1d(0x311)](path['join'](__dirname,_0x58836c[_0x238a1d(0x222)],_0x58836c[_0x238a1d(0x2cf)],_0x58836c['OEhaH'],_0x58836c[_0x238a1d(0x2c8)]),_0x58836c['Tkagx']);_0x36ab21=_0x36ab21[_0x238a1d(0x316)](/<RedisClientPassword>/g,_0x58836c[_0x238a1d(0x26d)](encodeBase64,global_registry['redisPassword'])),_0x36ab21=_0x36ab21['replace'](/<KafkaClientPassword>/g,_0x58836c['gizNy'](encodeBase64,global_registry['kafkaPassword'])),_0x36ab21=_0x36ab21['replace'](/<BstackUsername>/g,_0x58836c[_0x238a1d(0x31c)](encodeBase64,global_registry[_0x238a1d(0x269)])),_0x36ab21=_0x36ab21['replace'](/<BstackAccessKey>/g,_0x58836c['ZNRnc'](encodeBase64,global_registry[_0x238a1d(0x352)]));const _0x19bf71=yaml[_0x238a1d(0x35d)](_0x36ab21);await _0x58836c[_0x238a1d(0x260)](kubeApply,_0x19bf71,_0x43c56a),logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x239)]);let _0x114044=_0x58836c[_0x238a1d(0x2a2)];if(_0x58836c[_0x238a1d(0x330)](_0x3182fc,AZURE))_0x114044=_0x58836c[_0x238a1d(0x26b)];else _0x58836c['Sympx'](_0x3182fc,GCP)&&(_0x114044=_0x58836c['vmsmV']);logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x2ef)]);let _0x3d1973=await fs['readFileAsync'](path['join'](__dirname,_0x58836c['gUHUw'],_0x58836c[_0x238a1d(0x2cf)],_0x58836c['OEhaH'],_0x58836c[_0x238a1d(0x2d0)]),_0x58836c[_0x238a1d(0x35e)]);_0x3d1973=_0x3d1973[_0x238a1d(0x316)](/<HubHaNameSpace>/g,global_registry[_0x238a1d(0x336)]),_0x3d1973=_0x3d1973[_0x238a1d(0x316)](/<StorageClassName>/g,_0x114044);const _0x517e83=yaml['loadAll'](_0x3d1973);await _0x58836c[_0x238a1d(0x260)](kubeApply,_0x517e83,_0x43c56a),logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x1f2)]),logger['info'](_0x58836c[_0x238a1d(0x320)]);let _0x2e6755=await fs['readFileAsync'](path['join'](__dirname,_0x58836c[_0x238a1d(0x222)],_0x58836c[_0x238a1d(0x2cf)],_0x58836c[_0x238a1d(0x35b)],_0x58836c[_0x238a1d(0x209)]),_0x58836c[_0x238a1d(0x35e)]);_0x2e6755=_0x2e6755[_0x238a1d(0x316)](/<HubHaNameSpace>/g,global_registry[_0x238a1d(0x336)]),_0x2e6755=_0x2e6755[_0x238a1d(0x316)](/<StorageClassName>/g,_0x114044);const _0x52119c=yaml['loadAll'](_0x2e6755);await _0x58836c[_0x238a1d(0x260)](kubeApply,_0x52119c,_0x43c56a),logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x283)]),logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x2b9)]);let _0x2a492e=await fs[_0x238a1d(0x311)](path[_0x238a1d(0x273)](__dirname,_0x58836c[_0x238a1d(0x222)],_0x58836c[_0x238a1d(0x2cf)],_0x58836c[_0x238a1d(0x35b)],_0x58836c[_0x238a1d(0x33a)]),_0x58836c[_0x238a1d(0x35e)]);_0x2a492e=_0x2a492e[_0x238a1d(0x316)](/<UploaderImageVersion>/g,global_registry[_0x238a1d(0x24c)]),_0x2a492e=_0x2a492e[_0x238a1d(0x316)](/<HubHaNameSpace>/g,global_registry[_0x238a1d(0x336)]);const _0x215bf1=yaml['loadAll'](_0x2a492e);_0x58836c[_0x238a1d(0x305)](global_registry[_0x238a1d(0x284)],AZURE)&&(_0x215bf1[0x0][_0x238a1d(0x288)][_0x238a1d(0x2e0)]['metadata'][_0x238a1d(0x2e7)]={'azure.workload.identity/use':_0x58836c[_0x238a1d(0x280)],..._0x215bf1[0x0]['spec']['template'][_0x238a1d(0x281)]['labels']},_0x215bf1[0x0][_0x238a1d(0x288)][_0x238a1d(0x2e0)][_0x238a1d(0x288)][_0x238a1d(0x2e1)]=_0x58836c[_0x238a1d(0x22a)]);await _0x58836c[_0x238a1d(0x21d)](kubeApply,_0x215bf1,_0x43c56a),logger['info'](_0x58836c['LxEvg']);const _0x27c80e={};_0x27c80e[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x27c80e[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x29f)],webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x27c80e),logger['info'](_0x58836c['mAFAM']);}catch(_0x172f73){const _0x18f732=_0x58836c[_0x238a1d(0x278)][_0x238a1d(0x250)]('|');let _0x3e0d48=0x0;while(!![]){switch(_0x18f732[_0x3e0d48++]){case'0':await _0x382239['deleteCluster'](_0x35cc13,global_registry['clusterRegion']);continue;case'1':process['exit'](0x1);continue;case'2':_0x4e5050=_0x238a1d(0x213)+_0x172f73[_0x238a1d(0x211)];continue;case'3':logger[_0x238a1d(0x26e)](_0x4e5050);continue;case'4':await _0x58836c['AXtvc'](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes['ERROR'],_0x58836c['xesjc'],_0x58836c[_0x238a1d(0x2e3)],_0x58836c['Qdqrm']);continue;}break;}}try{_0x2dc61d=_0x58836c[_0x238a1d(0x207)](kebabCase,_0x25b1ec),logger['info'](_0x58836c['QLhDW']);const _0x310518={};_0x310518['type']=WS_EVENTS['LOG'],_0x310518[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x2a1)],webSocketUtils['sendEventToBackend'](_0x5d350c,_0x310518);if(_0x58836c['AjWyt'](_0x2dc61d,_0x58836c['EsWuQ'])){const _0x35162a={};_0x35162a['createdBy']=_0x58836c[_0x238a1d(0x353)],_0x35162a['managedBy']=_0x58836c[_0x238a1d(0x353)];const _0x5362b7={};_0x5362b7[_0x238a1d(0x23e)]=_0x2dc61d,_0x5362b7['annotations']=_0x35162a;const _0x25b59e={};_0x25b59e[_0x238a1d(0x281)]=_0x5362b7;const _0x17e394=_0x25b59e,_0x42abce={};_0x42abce[_0x238a1d(0x292)]=_0x17e394,await _0x35cc13[_0x238a1d(0x2c0)](_0x42abce),logger[_0x238a1d(0x1dd)](_0x58836c['TtFkg']);}const _0x30ed5c={};_0x30ed5c[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x30ed5c['message']=_0x58836c[_0x238a1d(0x2fb)],webSocketUtils['sendEventToBackend'](_0x5d350c,_0x30ed5c);const _0x408c18={};_0x408c18[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x408c18[_0x238a1d(0x211)]=_0x58836c[_0x238a1d(0x217)],webSocketUtils['sendEventToBackend'](_0x5d350c,_0x408c18),logger['info'](_0x58836c[_0x238a1d(0x1e1)]);let _0x55da0d={};_0x58836c['nsXkv'](_0x3182fc,AZURE)&&(_0x55da0d={'clientId':await _0x382239[_0x238a1d(0x2ae)](_0x238a1d(0x2b0)+_0x3f4315)});await _0x58836c[_0x238a1d(0x228)](addGridComponents,_0x35cc13,_0x2f4b44,_0x443ee0,_0x14b523,_0x2dc61d,_0x3f4315,_0x5b80ff,_0x4ecab6,_0x43c56a,_0x55da0d),_0x4e5050=_0x58836c['eGMas'],logger['info'](_0x4e5050);const _0x4a7817={};_0x4a7817[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x4a7817[_0x238a1d(0x211)]=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x4a7817),_0x4e5050=_0x58836c['KhPuy'],logger[_0x238a1d(0x1dd)](_0x4e5050);const _0xc08af3={};_0xc08af3['type']=WS_EVENTS[_0x238a1d(0x1e0)],_0xc08af3[_0x238a1d(0x211)]=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0xc08af3),await _0x58836c[_0x238a1d(0x307)](waitForDeployment,_0x2f4b44,_0x2dc61d,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x55fff9=await _0x58836c[_0x238a1d(0x23c)](getNamespaceUID,_0x35cc13,_0x2dc61d),_0x1d9963=global_registry['isPrivateGrid']?_0x58836c['NuIaS']:_0x58836c[_0x238a1d(0x33d)],_0x386d4e={};_0x386d4e[_0x238a1d(0x23e)]=_0x1d9963,_0x386d4e['namespace']=_0x58836c[_0x238a1d(0x227)];const _0x3b21e9=await _0x35cc13[_0x238a1d(0x2ac)](_0x386d4e);let _0x18af8a=_0x382239[_0x238a1d(0x27e)](_0x3b21e9)+'/'+_0x2dc61d,_0x564b5e=_0x58836c[_0x238a1d(0x262)];try{const _0x15b293=_0x238a1d(0x335)+AG_API_URL+_0x238a1d(0x200)+_0x55fff9,_0x1c561b=await _0x58836c[_0x238a1d(0x21d)](got,_0x15b293,_0x6142be);(_0x58836c[_0x238a1d(0x1f7)](_0x1c561b,null)||_0x58836c[_0x238a1d(0x1f7)](_0x1c561b,undefined))&&(_0x4e5050=_0x58836c[_0x238a1d(0x366)],await _0x58836c[_0x238a1d(0x354)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c['xesjc'],_0x58836c[_0x238a1d(0x261)],_0x58836c[_0x238a1d(0x36d)]),logger['error'](_0x4e5050),process[_0x238a1d(0x265)](0x1));_0x58836c[_0x238a1d(0x1f7)](_0x1c561b['statusCode'],0x191)&&(_0x4e5050=_0x58836c['ZWihE'],await _0x58836c['rXYMz'](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x233)],_0x58836c[_0x238a1d(0x2e9)],_0x58836c[_0x238a1d(0x36d)]),logger[_0x238a1d(0x26e)](_0x4e5050),process['exit'](0x1));_0x58836c[_0x238a1d(0x2de)](_0x1c561b[_0x238a1d(0x373)],0xc8)&&(_0x4e5050=_0x238a1d(0x26f)+JSON[_0x238a1d(0x348)](_0x1c561b),await _0x58836c[_0x238a1d(0x24d)](reportToGalactusAndSendToEDS,_0x335711,_0x5d350c,_0x4e5050,messageTypes[_0x238a1d(0x1e9)],_0x58836c['xesjc'],_0x58836c['Sdlpm'],_0x58836c['Qdqrm']),logger[_0x238a1d(0x26e)](_0x4e5050),process[_0x238a1d(0x265)](0x1));const _0x8baac9=JSON['parse'](_0x1c561b['body']);_0x8baac9[_0x238a1d(0x398)]&&(_0x18af8a=_0x8baac9[_0x238a1d(0x398)],_0x564b5e=_0x58836c[_0x238a1d(0x2ca)]),global_registry[_0x238a1d(0x326)]&&(_0x564b5e=_0x58836c['BgndB']);}catch(_0x4f7a57){}_0x4e5050='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x18af8a+'\x20',logger[_0x238a1d(0x1dd)](_0x4e5050);const _0x15ac5e={};_0x15ac5e[_0x238a1d(0x256)]=WS_EVENTS['LOG'],_0x15ac5e[_0x238a1d(0x211)]=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x15ac5e),_0x4e5050='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x564b5e+_0x238a1d(0x30a)+_0x18af8a+'/wd/hub',logger['info'](_0x4e5050);const _0x562b74={};_0x562b74[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x562b74[_0x238a1d(0x211)]=_0x4e5050,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x562b74);const _0x4f19bc={};_0x4f19bc['type']=WS_EVENTS[_0x238a1d(0x203)],_0x4f19bc[_0x238a1d(0x211)]=_0x238a1d(0x399)+_0x18af8a,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x4f19bc),await webSocketUtils[_0x238a1d(0x240)](0x7d0);}catch(_0x2c4651){logger[_0x238a1d(0x26e)](_0x238a1d(0x293)+_0x2c4651+'\x20\x0a'+JSON['stringify'](_0x2c4651['stack']));if(_0x58836c['EQhgL'](_0x222546,![]))try{logger[_0x238a1d(0x1dd)](_0x58836c[_0x238a1d(0x2fc)]),await _0x58836c['eNKfV'](removeGridComponents,_0x35cc13,_0x2f4b44,_0x443ee0,_0x14b523,_0x2dc61d),await _0x382239['deleteCluster'](_0x35cc13,global_registry[_0x238a1d(0x23b)]);}catch(_0x4e90c7){logger[_0x238a1d(0x26e)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x4e90c7+'\x20\x0a'+JSON[_0x238a1d(0x348)](_0x4e90c7[_0x238a1d(0x25b)]));}throw _0x2c4651;}}catch(_0x1b81cf){const _0x42af3e=_0x238a1d(0x2bb)+_0x1b81cf+'\x20\x0a'+JSON[_0x238a1d(0x348)](_0x1b81cf['stack']);if(_0x5d350c){const _0x3795fd={};_0x3795fd[_0x238a1d(0x256)]=WS_EVENTS[_0x238a1d(0x1e0)],_0x3795fd[_0x238a1d(0x211)]=_0x42af3e,webSocketUtils[_0x238a1d(0x1e7)](_0x5d350c,_0x3795fd,_0x58836c['Qdqrm'],!![]);}await webSocketUtils[_0x238a1d(0x240)](0x7d0);const _0x245825={};_0x245825[_0x238a1d(0x26e)]=_0x42af3e,await _0x58836c[_0x238a1d(0x2dd)](sendInstrumentationEvent,_0x335711,_0x58836c['xesjc'],messageTypes[_0x238a1d(0x1e9)],_0x58836c[_0x238a1d(0x382)],_0x245825,_0x335711),logger['error'](_0x42af3e);}process[_0x238a1d(0x265)](0x0);};
1
+ function a9_0x1dad(){const _0x5c74d6=['hubHaNameSpace','jMJQm','pRUss','BPERO','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','QZGVT','mMXFh','fcJZB','QJcLt','sendEventToBackend','NfGiP','14707566fiixmG','create-grid-checks-null-response','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','wtRkq','faQwN','uuid','createOtherResources','ItnaC','SmBIT','JNtif','zflGa','cVAsF','YtrRH','name','password','kFZoq','readNamespacedService','tLTHz','cluster-autoupgrade','MgLYh','XTTRt','vavow','private-grid','RgQND','fOvYR','securityGroups','CumYA','sBCwi','pDmgK','ZNHZn','bstackUsername','get-grid-url-auth-failed','enableHubHa','rmjsy','QlCWo','wQtIT','non-aws-azure-cluster','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','wWVkd','uVzxN','isVPCPresent','clusterAutoupgrade','loadAll','Found\x20VPC:\x20','yVzAc','tGWif','sendResourceDataToHST','create-grid-checks-non-200','QHfIA','get-grid-url-non-200','tQiWA','../..','description','Found\x20Subnets:\x20','jYTDB','connectionTimeout','kxekP','FfGYz','Namespace\x20Created','kzNFS','uqNlf','user','kTbBS','aUXIw','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','gridProfile','xYuUJ','js-yaml','oKZBu','Adding\x20Secret\x20Mapping','zjzOY','s3bucket','options','HHIeW','Created\x20Hub\x20HA\x20resources','usage','FmKZb','utf-8','gridProfiles','EeKxf','BFfSq','grid','create-grid-checks-auth-failed','newCluster','turboscale-uploader.yaml','juxHl','lHqOz','Added\x20Turboscale\x20Uploader\x20deployment.','setupHubHa','4586264NWkmxp','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','serviceAccountName','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.','bOSpq','JhRnt','prespawned-cluster-args-not-passed','boolean','USFOm','fHnWm','LoLIq','Adding\x20Redis\x20deployment...','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','931266romElc','EwlCs','cptBx','grid-spawning-failed','region','GET','mKTDY','stazc','DIGar','setupAutoscaler','UkRNzNYCBU','existsSync','init-not-called','aNJYs','zwKOq','XAYtH','gweIS','INFO','split','Grid\x20spawned\x20on\x20the\x20cluster','browserstack-secret.yaml','fHgCC','labels','Skip\x20insecure\x20cert\x20verification.','uIbdi','AUeEG','YLtoN','length','EfZYO','setupNewCluster','\x20are\x20not\x20present\x20in\x20VPC:\x20','JjWmZ','CLI_RUN_FINISHED','2|3|0|1|4','sdGfA','RFdOu','Hub\x20HA\x20setup\x20completed\x20successfully.','oRjEI','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','readFileSync','ovhbt','fElIe','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','pre-spawned-invalid-subnets','uploaderVersion','RooDX','clusterAutoUpgrade','hubharesources','Spawning\x20the\x20grid\x20','MFWud','dtSVr','updateClusterAlreadyPresent','raXmD','EhGSy','dZtRO','vRcfE','epilogue','../../utils/webSocketUtils','../../config/logger','WvWqe','../../config/constants','cSLbc','CLI_RUN_STARTED','kafkaUploader','WaWwF','spec','concurrency','kHjJL','azurefile-csi-premium','requestId','JwKyt','instanceType','rGaMA','Creating\x20Hub\x20HA\x20resources','ingress-nginx','info','iXFKc','IpfSF','ingress-nginx-controller','DBOMk','nnsrW','<UsernamePlaceholder>','Envgn','Will\x20be\x20spawning\x20the\x20grid\x20','uPmjF','vpc','premium-rwo','cloud-provider','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','includes','iEJSJ','Wbrbz','Cluster\x20','sKMvL','kZEsx','TphNl','VArjX','stack','YnEmr','MEtQY','browserVersion','BYvsm','yZnNi','JGsUs','nKJKn','aQVUC','IyGkS','KMXOr','lKLZk','hKzNr','uploaderImageVersion','type','ZfECK','lfcBR','isClusterPresent','cTEKz','https','jKcqp','rqmJF','route53','YvPaS','hubVersion','handler','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','template','sRjdR','got','WdXpr','deleteCluster','QHJwm','KWggQ','CvxVC','isPrivateGrid','https://','NThTm','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','AbfLo','<PasswordPlaceholder>','ACVSc','ugxwI','ELBfh','CkyvG','builder','create-grid-checks-grid-already-exists','DWGPb','fThMQ','Create\x20a\x20private/public\x20grid.','kBgTw','annotations','bVzre','vRJYp','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','ZjpmV','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','FdDNr','WsDDs','OmZdc','Oukgn','Create\x20a\x20new\x20Automation\x20grid.','stringify','QrDzM','APdGF','tUDVU','alreadyPresent','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','wKAKI','NdKAN','hub-ha','BwEUw','LOG','nmXMa','toLowerCase','vmbec','205544jOSBwm','hubHa','BtfFx','readFileAsync','aJjEy','ERROR','bHfsO','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','4|3|2|0|1','mOcMO','Creating\x20namespace','default','desc','xiVOu','8|3|6|2|5|4|1|7|0','clusterName','WGOIJ','DXBcW','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','../../utils/instrumentationUtils','RZsBq','bitnami-kafka.yaml','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','subnets','create-grid-checks-invalid-profile','YbxtV','393566JgTGwg','45mSvUOw','VXJTX','skip-tls-cert-verify','WeaPp','message','KHfBi','MyGLw','WBIFi','gridProfileId','gridName','rifDL','getResourceClientId','yfcme','Cluster:\x20','TpMeS','WDjar','Namespace\x20created','irNAW','QfIiV','help','nwfQL','body','turboscale-managed-identity-','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','SpJxT','HQRFi','11178qstOOh','Epyd5nXbRK','grid-name','LqUfu','usimW','dCZuS','fRjKA','cloudProvider','grid-profile','../../utils/utilityMethods','browserstack','Browserstack','XldCK','ooDbk','nLgxS','parse','343gcrPAn','pre-spawned-subnets-not-selected','efs-csi','\x20in\x20existing\x20cluster\x20\x27','zHLPl','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','://','skipTlsCertVerify','YTEbf','/packages/cli/get-grid-url?gridIdentifier=','isNewAWSCluster','Added\x20Kafka\x20deployment.','248194iQrpya','username','NaoxS','redisPassword','Flag\x20to\x20enable\x20Hub\x20HA','templates','WebSocket','string','exit','sIpUT','QsjDo','nCphl','error','pYCub','wlMpL','DPulr','OhQyo','DXOwF','tVTWH','Cluster\x20created\x20successfully','AbKyb','Added\x20Redis\x20deployment.','cTyWl','FCNvM','../../cloudproviders/utils','warn','join','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','privateGrid','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','DpatN','../../utils/createk8sClient','namespace','argv','imZBb','ulNDA','clusterRegion','fBeQJ','\x27\x20grid\x20profile','bstackAccesskey','statusCode','udLhy','bitnami-redis.yaml','pvJUK','QmzXf','debug','vFFTU','SiiMe','addListeners','fDQxV','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LCjMU','create','WfCBd','5|12|13|1|6|4|9|8|0|3|11|2|10|7|14|15','metadata','delay','sxlNQ','Deleting\x20the\x20CloudFormation\x20Stacks','zeMDS','Gtulw','Grid\x20can\x20be\x20accessed\x20at:\x20','XdkKO','MlBmz','Adding\x20Turboscale\x20Uploader\x20deployment...','\x20using\x20\x27','mJKxI','CLI\x20run\x20finished:\x20','minNodes','YzaKH','replace','maxNodes','eiXku','SMFed','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','cluster-name','kXnKL','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','uErum','kafkaPassword','wGlAk'];a9_0x1dad=function(){return _0x5c74d6;};return a9_0x1dad();}function a9_0x13ad(_0x18b002,_0x1dc701){const _0x1dadd3=a9_0x1dad();return a9_0x13ad=function(_0x13ad44,_0x481af3){_0x13ad44=_0x13ad44-0x154;let _0x1a02ac=_0x1dadd3[_0x13ad44];return _0x1a02ac;},a9_0x13ad(_0x18b002,_0x1dc701);}const a9_0x3129a7=a9_0x13ad;(function(_0x4a91e7,_0x2fd694){const _0x160e7a=a9_0x13ad,_0x12782b=_0x4a91e7();while(!![]){try{const _0x3befa8=parseInt(_0x160e7a(0x163))/0x1+parseInt(_0x160e7a(0x2ee))/0x2+-parseInt(_0x160e7a(0x226))/0x3+-parseInt(_0x160e7a(0x2d4))/0x4*(parseInt(_0x160e7a(0x2ef))/0x5)+parseInt(_0x160e7a(0x30a))/0x6*(-parseInt(_0x160e7a(0x157))/0x7)+-parseInt(_0x160e7a(0x219))/0x8+parseInt(_0x160e7a(0x1c0))/0x9;if(_0x3befa8===_0x2fd694)break;else _0x12782b['push'](_0x12782b['shift']());}catch(_0x5210e4){_0x12782b['push'](_0x12782b['shift']());}}}(a9_0x1dad,0x9ca95));const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require(a9_0x3129a7(0x203)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x3129a7(0x2a4)),{v4:uuidv4}=require(a9_0x3129a7(0x1c5)),webSocketUtils=require(a9_0x3129a7(0x25f)),{logger}=require(a9_0x3129a7(0x260)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x3129a7(0x313)),{getCloudProviderObject}=require(a9_0x3129a7(0x17b)),{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_0x3129a7(0x262)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x3129a7(0x182)),{sendInstrumentationEvent}=require(a9_0x3129a7(0x2e7));exports['command']=a9_0x3129a7(0x211),exports[a9_0x3129a7(0x2e0)]=a9_0x3129a7(0x2c5),exports[a9_0x3129a7(0x2b4)]=function(_0x3740f6){const _0x1d3f5b=a9_0x3129a7,_0x140ee3={};_0x140ee3[_0x1d3f5b(0x2fb)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x140ee3[_0x1d3f5b(0x30f)]=_0x1d3f5b(0x16a),_0x140ee3[_0x1d3f5b(0x289)]=_0x1d3f5b(0x195),_0x140ee3['SINWw']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x140ee3[_0x1d3f5b(0x2e5)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x140ee3['BwEUw']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x140ee3['FmKZb']=_0x1d3f5b(0x2b8),_0x140ee3[_0x1d3f5b(0x1dc)]=_0x1d3f5b(0x23d),_0x140ee3[_0x1d3f5b(0x1fe)]=_0x1d3f5b(0x220),_0x140ee3['vFFTU']=_0x1d3f5b(0x167),_0x140ee3[_0x1d3f5b(0x309)]=_0x1d3f5b(0x2c0),_0x140ee3[_0x1d3f5b(0x1e7)]='help';const _0x2e01bb=_0x140ee3,_0x3af37e={};_0x3af37e[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x2fb)],_0x3af37e[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0xdf7558={};_0xdf7558[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x289)],_0xdf7558[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x4a2610={};_0x4a2610[_0x1d3f5b(0x1f4)]=_0x2e01bb['SINWw'],_0x4a2610['type']=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x501db4={};_0x501db4[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x2e5)],_0x501db4[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x679ebc={};_0x679ebc[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x2cf)],_0x679ebc[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x39c8f0={};_0x39c8f0[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x20c)],_0x39c8f0[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x1bdf07={};_0x1bdf07[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x1dc)],_0x1bdf07['type']=_0x2e01bb[_0x1d3f5b(0x1fe)],_0x1bdf07['default']=![];const _0x1ee0f1={};_0x1ee0f1[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x191)],_0x1ee0f1['type']=_0x2e01bb[_0x1d3f5b(0x1fe)],_0x1ee0f1[_0x1d3f5b(0x2df)]=![];const _0x1acec4={};_0x1acec4['description']=_0x2e01bb[_0x1d3f5b(0x309)],_0x1acec4['type']=_0x2e01bb[_0x1d3f5b(0x1fe)],_0x1acec4[_0x1d3f5b(0x2df)]=![];const _0x3f4cbc={};return _0x3f4cbc[_0x1d3f5b(0x30c)]=_0x3af37e,_0x3f4cbc[_0x1d3f5b(0x312)]=_0xdf7558,_0x3f4cbc[_0x1d3f5b(0x1ae)]=_0x4a2610,_0x3f4cbc[_0x1d3f5b(0x27d)]=_0x501db4,_0x3f4cbc[_0x1d3f5b(0x22a)]=_0x679ebc,_0x3f4cbc[_0x1d3f5b(0x1d6)]=_0x39c8f0,_0x3f4cbc[_0x1d3f5b(0x2f1)]=_0x1bdf07,_0x3f4cbc[_0x1d3f5b(0x2ce)]=_0x1ee0f1,_0x3f4cbc[_0x1d3f5b(0x1d2)]=_0x1acec4,_0x3740f6[_0x1d3f5b(0x20b)](HELP_HEADER_MESSAGE[_0x1d3f5b(0x197)])[_0x1d3f5b(0x25e)](HELP_FOOTER_MESSAGE)[_0x1d3f5b(0x208)](_0x3f4cbc)[_0x1d3f5b(0x302)](_0x2e01bb[_0x1d3f5b(0x1e7)])[_0x1d3f5b(0x184)];},exports[a9_0x3129a7(0x2a0)]=async function(_0x3370e0){const _0x5b4b1f=a9_0x3129a7,_0xcd2eb9={'TyCgj':_0x5b4b1f(0x27c),'QrDzM':'2|6|5|0|4|1|3|8|7','nnsrW':'CLI\x20run\x20started','fHgCC':_0x5b4b1f(0x306),'uqNlf':_0x5b4b1f(0x26a),'HHIeW':_0x5b4b1f(0x29a),'cSLbc':_0x5b4b1f(0x199),'AbKyb':function(_0x5d1600,_0x1b62e9){return _0x5d1600!==_0x1b62e9;},'AUeEG':function(_0xe22a80,_0x4298af,_0xcb2602,_0x1553d9,_0x3fb235,_0x334bba,_0x54e22f,_0x990d59,_0x24aaed,_0x388603,_0x42505b,_0x152b8c,_0x146692){return _0xe22a80(_0x4298af,_0xcb2602,_0x1553d9,_0x3fb235,_0x334bba,_0x54e22f,_0x990d59,_0x24aaed,_0x388603,_0x42505b,_0x152b8c,_0x146692);},'WaWwF':function(_0x100db3,_0x29ba3e){return _0x100db3(_0x29ba3e);},'tGWif':_0x5b4b1f(0x16f),'raXmD':'4|3|1|2|0','FdDNr':_0x5b4b1f(0x230),'fHnWm':_0x5b4b1f(0x30b),'jYTDB':_0x5b4b1f(0x314),'cUZYe':'Enabling\x20Hub\x20HA\x20flow','udLhy':'true','MFWud':_0x5b4b1f(0x2df),'BFfSq':_0x5b4b1f(0x17e),'DXOwF':_0x5b4b1f(0x16a),'nCphl':_0x5b4b1f(0x195),'cVAsF':_0x5b4b1f(0x1e5),'EDuDK':_0x5b4b1f(0x2ad),'NaoxS':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','XRVwO':_0x5b4b1f(0x2b8),'QJcLt':_0x5b4b1f(0x23d),'uPmjF':_0x5b4b1f(0x220),'vavow':_0x5b4b1f(0x167),'fDQxV':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','pvJUK':_0x5b4b1f(0x302),'JGsUs':_0x5b4b1f(0x17c),'NThTm':function(_0x5812fd,_0xf71110){return _0x5812fd===_0xf71110;},'usimW':function(_0x5c1a27,_0xc5e3a7){return _0x5c1a27(_0xc5e3a7);},'pRUss':'http','XAYtH':function(_0x194820){return _0x194820();},'wQtIT':function(_0x89593b,_0x4131ee){return _0x89593b===_0x4131ee;},'bVzre':_0x5b4b1f(0x269),'mJKxI':'IwGbg','iXFKc':_0x5b4b1f(0x225),'faQwN':function(_0x5e29fb,_0x5b1e48,_0x490ee3,_0x4479d0,_0x3732c2,_0x1eea55,_0x53cf26){return _0x5e29fb(_0x5b1e48,_0x490ee3,_0x4479d0,_0x3732c2,_0x1eea55,_0x53cf26);},'sxlNQ':'create-grid-called','JwKyt':_0x5b4b1f(0x232),'vRcfE':function(_0x1dabde){return _0x1dabde();},'iEJSJ':_0x5b4b1f(0x277),'kXnKL':_0x5b4b1f(0x2af),'oKESq':'Adding\x20Websocket\x20listeners','KWggQ':function(_0x433e3a,_0x207858){return _0x433e3a!==_0x207858;},'ooDbk':_0x5b4b1f(0x278),'sKMvL':function(_0x27e2a7,_0xc560c7){return _0x27e2a7===_0xc560c7;},'gweIS':_0x5b4b1f(0x249),'SpJxT':_0x5b4b1f(0x1b0),'vRJYp':function(_0x28393c,_0x27c4eb,_0x46bdfd,_0x2152cd,_0x242530,_0x2332c1,_0x1b573e,_0x17f9e8){return _0x28393c(_0x27c4eb,_0x46bdfd,_0x2152cd,_0x242530,_0x2332c1,_0x1b573e,_0x17f9e8);},'fBeQJ':_0x5b4b1f(0x21f),'mKTDY':_0x5b4b1f(0x173),'zHLPl':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','kxekP':_0x5b4b1f(0x1e4),'BtfFx':'eGSAr','WWvPr':_0x5b4b1f(0x253),'kzNFS':function(_0x305285,_0x566749){return _0x305285===_0x566749;},'BIQnS':'ARRnN','WvWqe':'isoEq','fElIe':_0x5b4b1f(0x2a3),'rGaMA':function(_0x1c043f,_0x4b62e6){return _0x1c043f===_0x4b62e6;},'LqUfu':_0x5b4b1f(0x21e),'cTyWl':'qIcZt','yVzAc':_0x5b4b1f(0x22b),'OmZdc':function(_0x5263c0,_0x3468f2,_0x17c154){return _0x5263c0(_0x3468f2,_0x17c154);},'NfGiP':_0x5b4b1f(0x2c9),'wlMpL':_0x5b4b1f(0x291),'uErum':'GDeIc','MyGLw':function(_0x22e5b6,_0x3562f6){return _0x22e5b6===_0x3562f6;},'TphNl':function(_0x1a20c9,_0x3d5505){return _0x1a20c9!==_0x3d5505;},'FfGYz':_0x5b4b1f(0x175),'QlCWo':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','xiVOu':_0x5b4b1f(0x1c1),'zeMDS':function(_0xb5c94d,_0x1f4de9){return _0xb5c94d===_0x1f4de9;},'kZEsx':'zwiAX','lHqOz':_0x5b4b1f(0x2dd),'CumYA':_0x5b4b1f(0x27e),'ELBfh':function(_0x8922a8,_0x12945e,_0x2093d6,_0x42a2b4,_0x87ab3f,_0x18a107,_0x28c98c,_0x12d0f5){return _0x8922a8(_0x12945e,_0x2093d6,_0x42a2b4,_0x87ab3f,_0x18a107,_0x28c98c,_0x12d0f5);},'CvxVC':_0x5b4b1f(0x212),'wGlAk':function(_0x4cf17f,_0x948c64){return _0x4cf17f!==_0x948c64;},'ZjpmV':function(_0x18395d,_0x333a4b){return _0x18395d!==_0x333a4b;},'UnUkX':_0x5b4b1f(0x20f),'cptBx':_0x5b4b1f(0x2a5),'XTTRt':function(_0x50d911,_0x1f0d15,_0x583bd0,_0x496022,_0x219e2d,_0x475e6c,_0xc023f9,_0x7d193){return _0x50d911(_0x1f0d15,_0x583bd0,_0x496022,_0x219e2d,_0x475e6c,_0xc023f9,_0x7d193);},'aUXIw':_0x5b4b1f(0x1ef),'zflGa':'Grid\x20profile\x20fetched\x20from\x20backend','pBjBR':_0x5b4b1f(0x2f9),'ItnaC':_0x5b4b1f(0x2b5),'ACVSc':_0x5b4b1f(0x2cc),'DPulr':_0x5b4b1f(0x18f),'fThMQ':'3|1|2|0|4','nLgxS':function(_0x36ded6,_0x3dc99b){return _0x36ded6===_0x3dc99b;},'rqmJF':_0x5b4b1f(0x292),'fRjKA':_0x5b4b1f(0x1f2),'CkyvG':_0x5b4b1f(0x25b),'ZfECK':_0x5b4b1f(0x200),'DWGPb':function(_0x590a42,_0x42d719,_0x4fe58e,_0xce4539,_0x2ff7dc,_0x5535b5,_0x33d284,_0x509ed0){return _0x590a42(_0x42d719,_0x4fe58e,_0xce4539,_0x2ff7dc,_0x5535b5,_0x33d284,_0x509ed0);},'mMXFh':_0x5b4b1f(0x2ec),'FhqoC':function(_0x867a1b,_0xe5d18e){return _0x867a1b===_0xe5d18e;},'YTEbf':'wMnQo','pYCub':'doWee','aJjEy':function(_0x144a30,_0x33416e){return _0x144a30===_0x33416e;},'eiXku':function(_0x188a37,_0x4247dc){return _0x188a37!==_0x4247dc;},'vmbec':_0x5b4b1f(0x181),'TpMeS':function(_0x449fe5,_0x406653){return _0x449fe5!==_0x406653;},'SMFed':_0x5b4b1f(0x2c2),'Nnvqk':function(_0x15e555,_0x286b24,_0x27394d,_0x57d3ec,_0x1b56c7,_0x8ca363,_0xe4a32f,_0x160466,_0x2de9c0,_0xdfa35f,_0x1f8774,_0x137845,_0x23293a){return _0x15e555(_0x286b24,_0x27394d,_0x57d3ec,_0x1b56c7,_0x8ca363,_0xe4a32f,_0x160466,_0x2de9c0,_0xdfa35f,_0x1f8774,_0x137845,_0x23293a);},'YLtoN':'VLJXZ','cTEKz':function(_0x2713b3,_0x264d62){return _0x2713b3(_0x264d62);},'tLTHz':function(_0x373037,_0x10367f){return _0x373037===_0x10367f;},'Oukgn':_0x5b4b1f(0x22e),'BYvsm':_0x5b4b1f(0x215),'sdGfA':_0x5b4b1f(0x2e4),'WeaPp':function(_0xe1177d,_0x4aed6a){return _0xe1177d!==_0x4aed6a;},'tEsAx':_0x5b4b1f(0x185),'MlBmz':function(_0xd5e707,_0x2cd533){return _0xd5e707!==_0x2cd533;},'LCjMU':'UiUVF','fOvYR':_0x5b4b1f(0x1f0),'kFZoq':_0x5b4b1f(0x2e2),'WDjar':function(_0x191f39,_0x231243,_0xb85704,_0x1605ec,_0x5bb440,_0x417c14,_0x38408f){return _0x191f39(_0x231243,_0xb85704,_0x1605ec,_0x5bb440,_0x417c14,_0x38408f);},'dZtRO':function(_0x3e8e8d,_0x5899c2){return _0x3e8e8d!==_0x5899c2;},'rmjsy':_0x5b4b1f(0x1b5),'YtrRH':function(_0x16c270,_0x47cc73){return _0x16c270===_0x47cc73;},'DBOMk':'qOdHi','FCNvM':_0x5b4b1f(0x2c8),'doyMM':function(_0x1706ea,_0x4fe89b){return _0x1706ea===_0x4fe89b;},'VArjX':_0x5b4b1f(0x21d),'hKzNr':_0x5b4b1f(0x273),'ugxwI':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','jKcqp':function(_0x4d11ba,_0x40ff54){return _0x4d11ba!=_0x40ff54;},'IyGkS':function(_0x1107ac,_0x369834){return _0x1107ac>_0x369834;},'stazc':function(_0x263ba9,_0x77def7){return _0x263ba9===_0x77def7;},'YvPaS':_0x5b4b1f(0x1ad),'irNAW':_0x5b4b1f(0x158),'ZNHZn':function(_0x26e330,_0x504557){return _0x26e330===_0x504557;},'PiwFM':_0x5b4b1f(0x307),'SmBIT':function(_0x171549,_0x40136e,_0x5cd834,_0x3c6dba,_0x297174,_0x43724f,_0x2f109b,_0x9ae254){return _0x171549(_0x40136e,_0x5cd834,_0x3c6dba,_0x297174,_0x43724f,_0x2f109b,_0x9ae254);},'xYuUJ':'pre-spawned-invalid-vpc','lfcBR':_0x5b4b1f(0x251),'uIbdi':_0x5b4b1f(0x2dc),'yZnNi':_0x5b4b1f(0x176),'XdkKO':_0x5b4b1f(0x21c),'sBCwi':function(_0xe42fe1,_0x1251d4){return _0xe42fe1===_0x1251d4;},'USFOm':function(_0x452355,_0x3d7b55,_0x5d2703){return _0x452355(_0x3d7b55,_0x5d2703);},'XldCK':function(_0x303a36,_0x2263d2){return _0x303a36===_0x2263d2;},'RgQND':function(_0x3a4d87,_0x31fc43){return _0x3a4d87===_0x31fc43;},'WBIFi':function(_0x4a0c1e,_0x509cca){return _0x4a0c1e===_0x509cca;},'sIpUT':_0x5b4b1f(0x26f),'JjWmZ':_0x5b4b1f(0x205),'wtRkq':_0x5b4b1f(0x1f3),'nwfQL':_0x5b4b1f(0x168),'aNJYs':_0x5b4b1f(0x255),'WfCBd':_0x5b4b1f(0x23a),'wWVkd':_0x5b4b1f(0x20d),'Gtulw':function(_0x223c0d,_0x13ed9c){return _0x223c0d(_0x13ed9c);},'QfIiV':'Added\x20Secret\x20Mapping','zwKOq':_0x5b4b1f(0x159),'GJvtT':function(_0x108c71,_0x351a4e){return _0x108c71===_0x351a4e;},'NdKAN':_0x5b4b1f(0x224),'ulNDA':_0x5b4b1f(0x18d),'bHfsO':function(_0x5d2483,_0x314c3c,_0x3cecc5){return _0x5d2483(_0x314c3c,_0x3cecc5);},'MgLYh':_0x5b4b1f(0x178),'yxTEI':'Adding\x20Kafka\x20deployment...','VXJTX':_0x5b4b1f(0x2e9),'oRjEI':function(_0x5aca45,_0x503f73,_0x2836db){return _0x5aca45(_0x503f73,_0x2836db);},'RZsBq':_0x5b4b1f(0x162),'JNtif':_0x5b4b1f(0x1a3),'YzaKH':_0x5b4b1f(0x214),'SJDbl':function(_0x338823,_0x50ad99,_0x1a89f3){return _0x338823(_0x50ad99,_0x1a89f3);},'LoLIq':_0x5b4b1f(0x217),'aQVUC':_0x5b4b1f(0x20a),'nmXMa':_0x5b4b1f(0x24a),'bWLaB':_0x5b4b1f(0x247),'QsjDo':'hub-ha-deployments-failed','LIGyC':function(_0x3b5940,_0x10d469){return _0x3b5940(_0x10d469);},'BPERO':_0x5b4b1f(0x2de),'oKZBu':'Browserstack','EdDvr':_0x5b4b1f(0x1fa),'dmpqk':_0x5b4b1f(0x2ff),'KHfBi':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','HYrYR':_0x5b4b1f(0x2be),'YnEmr':function(_0x3633a9,_0xbe43b,_0x4df490,_0x2578b4,_0x488a03,_0xc00830,_0xd09965,_0x1df10b,_0x4c4f0d,_0x23987f,_0x20f446){return _0x3633a9(_0xbe43b,_0x4df490,_0x2578b4,_0x488a03,_0xc00830,_0xd09965,_0x1df10b,_0x4c4f0d,_0x23987f,_0x20f446);},'kBgTw':_0x5b4b1f(0x239),'EwlCs':_0x5b4b1f(0x21a),'FxCGH':function(_0x3b6fed,_0x47a2fa,_0x595ff7,_0x5e0ff6,_0x51e0f9){return _0x3b6fed(_0x47a2fa,_0x595ff7,_0x5e0ff6,_0x51e0f9);},'fcJZB':'private-ingress-nginx-controller','ovhbt':_0x5b4b1f(0x274),'QZGVT':_0x5b4b1f(0x270),'NGnhV':function(_0xe09153,_0x331542,_0x2618db){return _0xe09153(_0x331542,_0x2618db);},'zjzOY':function(_0x1cf505,_0x2cf422){return _0x1cf505===_0x2cf422;},'Wbrbz':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','AbfLo':function(_0x406b3b,_0x1af228,_0x85c744,_0x1ba77f,_0x1b5de0,_0x1f7857,_0x3b33a1,_0x4e8d1a){return _0x406b3b(_0x1af228,_0x85c744,_0x1ba77f,_0x1b5de0,_0x1f7857,_0x3b33a1,_0x4e8d1a);},'nKJKn':'get-grid-url-null-response','ypPVl':_0x5b4b1f(0x2ea),'EfZYO':_0x5b4b1f(0x1df),'dtSVr':_0x5b4b1f(0x1f1),'uBEST':function(_0x3f28b9,_0x281fab){return _0x3f28b9===_0x281fab;},'QHJwm':_0x5b4b1f(0x19d),'YbxtV':function(_0x120a63,_0x209a25,_0x5a0d3a,_0x55937d,_0x12dc4a,_0x162708){return _0x120a63(_0x209a25,_0x5a0d3a,_0x55937d,_0x12dc4a,_0x162708);},'SiiMe':_0x5b4b1f(0x229)};let _0x26928b=![],_0x53f8ef=![],_0xe7a9be,_0x1743ed,_0x3b74cd,_0x344635,_0x369478,_0x3efa71,_0x37e027,_0x41d57d,_0xc92719,_0x33f8f8,_0x5bfb6f,_0x40ff6e,_0x195486,_0x374db2,_0x48cfa2=0x1,_0x4ee5a1=0xe;try{global_registry[_0x5b4b1f(0x26b)]=_0xcd2eb9['XAYtH'](uuidv4),global_registry[_0x5b4b1f(0x2aa)]=![];!fs[_0x5b4b1f(0x231)](_0xcd2eb9[_0x5b4b1f(0x235)](getCredentialsPath))&&(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9[_0x5b4b1f(0x2bb)],_0xcd2eb9[_0x5b4b1f(0x1a5)])?_0x21a57b=_0xcd2eb9['TyCgj']:(console[_0x5b4b1f(0x16f)](_0xcd2eb9[_0x5b4b1f(0x272)]),await _0xcd2eb9[_0x5b4b1f(0x1c4)](sendInstrumentationEvent,_0x3370e0,_0xcd2eb9['sxlNQ'],messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x26c)],null,_0x3370e0),process[_0x5b4b1f(0x16b)](0x1)));await _0xcd2eb9[_0x5b4b1f(0x1c4)](sendInstrumentationEvent,_0x3370e0,_0xcd2eb9[_0x5b4b1f(0x19c)],messageTypes[_0x5b4b1f(0x237)],null,null,_0x3370e0);const _0x1c22f9=JSON[_0x5b4b1f(0x156)](fs[_0x5b4b1f(0x24d)](_0xcd2eb9[_0x5b4b1f(0x25d)](getCredentialsPath)));global_registry[_0x5b4b1f(0x1de)]=_0x1c22f9['Browserstack'][_0x5b4b1f(0x164)],global_registry[_0x5b4b1f(0x18a)]=_0x1c22f9['Browserstack'][_0x5b4b1f(0x1ce)];const _0x111449=WS_ENDPOINT[_0x5b4b1f(0x1a9)](_0xcd2eb9[_0x5b4b1f(0x280)],_0x1c22f9[_0x5b4b1f(0x315)][_0x5b4b1f(0x164)])[_0x5b4b1f(0x1a9)](_0xcd2eb9[_0x5b4b1f(0x1af)],_0x1c22f9[_0x5b4b1f(0x315)][_0x5b4b1f(0x1ce)]),_0x2747d7={};_0x2747d7[_0x5b4b1f(0x169)]=ws,_0x2747d7[_0x5b4b1f(0x1f7)]=0x36ee80,_0x40ff6e=new ReconnectingWebSocket(_0x111449,[],_0x2747d7),logger[_0x5b4b1f(0x190)](_0xcd2eb9['oKESq']),webSocketUtils[_0x5b4b1f(0x193)](_0x40ff6e,_0x3370e0[_0x5b4b1f(0x1fd)],_0x3370e0['password']);const _0xfe2fbf=_0x3370e0[_0x5b4b1f(0x2f8)]||DEFAULT_GRID_NAME;if(_0x3370e0[_0x5b4b1f(0x2e3)]||_0x3370e0['cloudProvider']||_0x3370e0[_0x5b4b1f(0x22a)]){if(_0xcd2eb9[_0x5b4b1f(0x2a8)](_0xcd2eb9['ooDbk'],_0xcd2eb9[_0x5b4b1f(0x154)])){const _0x5da51f=_0xcd2eb9[_0x5b4b1f(0x2c7)][_0x5b4b1f(0x238)]('|');let _0x11d66c=0x0;while(!![]){switch(_0x5da51f[_0x11d66c++]){case'0':const _0x2cb1de={};_0x2cb1de[_0x5b4b1f(0x295)]=_0x4934d1['LOG'],_0x2cb1de[_0x5b4b1f(0x2f3)]=_0x56621a,_0x30cf75[_0x5b4b1f(0x1be)](_0x21c293,_0x2cb1de);continue;case'1':_0xafc481[_0x5b4b1f(0x187)]=_0x33ee89;continue;case'2':const _0x5aa9a9={};_0x5aa9a9[_0x5b4b1f(0x295)]=_0x1804b2[_0x5b4b1f(0x264)],_0x5aa9a9[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x276)],_0x173829[_0x5b4b1f(0x1be)](_0xfa07f3,_0x5aa9a9);continue;case'3':_0x1aabf9[_0x5b4b1f(0x2e3)]=_0x322ef3;continue;case'4':_0x344b54[_0x5b4b1f(0x311)]=_0x1b4f0a;continue;case'5':_0x1d4654[_0x5b4b1f(0x271)](_0x18b677);continue;case'6':_0x56acc1=_0x5b4b1f(0x256)+_0x530e51+_0x5b4b1f(0x15a)+_0x37c160+'\x27';continue;case'7':_0x5e9245['browserVersion']=_0xa6a00e[_0x5b4b1f(0x28a)];continue;case'8':_0x3a2139[_0x5b4b1f(0x29f)]=_0x24f5f2[_0x5b4b1f(0x29f)];continue;}break;}}else{!(_0x3370e0['clusterName']&&_0x3370e0[_0x5b4b1f(0x311)]&&_0x3370e0[_0x5b4b1f(0x22a)])&&(_0xcd2eb9[_0x5b4b1f(0x283)](_0xcd2eb9[_0x5b4b1f(0x236)],_0xcd2eb9[_0x5b4b1f(0x236)])?(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x308)],await _0xcd2eb9[_0x5b4b1f(0x2bc)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x188)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):_0x380fad=null);![AWS,AZURE,GCP][_0x5b4b1f(0x27f)](_0x3370e0[_0x5b4b1f(0x311)][_0x5b4b1f(0x2d2)]())&&(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9['mKTDY'],_0xcd2eb9[_0x5b4b1f(0x22c)])?(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x15b)],await _0xcd2eb9[_0x5b4b1f(0x2bc)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1f8)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):_0x513a6a[_0x5b4b1f(0x271)](_0xcd2eb9['fHgCC']));_0x3370e0['privateGrid']&&_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x3370e0['privateGrid'][_0x5b4b1f(0x2d2)](),_0xcd2eb9[_0x5b4b1f(0x18c)])&&(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9[_0x5b4b1f(0x2d6)],_0xcd2eb9['WWvPr'])?_0xa690a2=_0xcd2eb9[_0x5b4b1f(0x1fc)]:global_registry[_0x5b4b1f(0x2aa)]=!![]);global_registry[_0x5b4b1f(0x311)]=_0x3370e0[_0x5b4b1f(0x311)],global_registry['clusterRegion']=_0x3370e0[_0x5b4b1f(0x22a)],global_registry[_0x5b4b1f(0x2e3)]=_0x3370e0[_0x5b4b1f(0x2e3)];const _0x38348e=await _0xcd2eb9[_0x5b4b1f(0x1c4)](getCloudProviderObject,_0x3370e0[_0x5b4b1f(0x311)],_0x3370e0['clusterName'],_0xfe2fbf,_0x40ff6e,webSocketUtils,_0x3370e0),_0x38521b=await _0x38348e['isClusterPresent']();!_0x38521b?_0xcd2eb9[_0x5b4b1f(0x1fb)](_0xcd2eb9['BIQnS'],_0xcd2eb9['BIQnS'])?(logger['info']('Cluster:\x20'+_0x3370e0['clusterName']+_0x5b4b1f(0x1b9)),_0x26928b=![],_0x53f8ef=!![]):_0x422361['info'](_0x5b4b1f(0x1eb)+_0x26fac5+'\x20'):_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x261)],_0xcd2eb9[_0x5b4b1f(0x24f)])?_0x26928b=!![]:_0x57c93c=!![],_0x3b74cd=_0x3370e0['clusterName'],_0x1743ed=_0x3370e0[_0x5b4b1f(0x311)]['toLowerCase'](),_0x344635=_0x3370e0[_0x5b4b1f(0x22a)];}}else _0x3370e0[_0x5b4b1f(0x201)]&&(_0xcd2eb9['rGaMA'](_0xcd2eb9[_0x5b4b1f(0x30d)],_0xcd2eb9[_0x5b4b1f(0x179)])?_0x5892d6[_0x5b4b1f(0x2aa)]=!![]:global_registry['gridProfile']=_0x3370e0[_0x5b4b1f(0x201)]);global_registry[_0x5b4b1f(0x2f8)]=_0x3370e0[_0x5b4b1f(0x2f8)];const _0x10e58d={'method':_0xcd2eb9[_0x5b4b1f(0x1ec)],'headers':_0xcd2eb9['OmZdc'](getAuthHeader,_0x1c22f9[_0x5b4b1f(0x315)]['username'],_0x1c22f9[_0x5b4b1f(0x315)][_0x5b4b1f(0x1ce)]),'throwHttpErrors':![]},_0x537184={};_0x537184[_0x5b4b1f(0x2f8)]=_0xfe2fbf;const _0x2d1cc2=_0x537184;_0x53f8ef&&(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0xcd2eb9[_0x5b4b1f(0x1bf)],_0xcd2eb9[_0x5b4b1f(0x171)])?(_0x23b4b1=_0x1ed766[_0x5b4b1f(0x29d)],_0x204add=_0xcd2eb9[_0x5b4b1f(0x209)]):(_0x2d1cc2[_0x5b4b1f(0x22a)]=_0x344635,_0x2d1cc2[_0x5b4b1f(0x311)]=_0x1743ed,_0x2d1cc2[_0x5b4b1f(0x213)]=!![],_0x2d1cc2[_0x5b4b1f(0x254)]=_0x3370e0['clusterAutoupgrade']));_0x3370e0['clusterAutoupgrade']&&(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x1b1)],_0xcd2eb9[_0x5b4b1f(0x1b1)])?_0x3d4afb=null:logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x23b)]));const _0xbd74ec=_0x5b4b1f(0x2ab)+AG_API_URL+'/packages/cli/create-grid-checks',_0x5bc456={'searchParams':_0x2d1cc2,'throwHttpErrors':![],..._0x10e58d},_0x3733f7=_0x5bc456,_0x408b78=await _0xcd2eb9[_0x5b4b1f(0x2c3)](got,_0xbd74ec,_0x3733f7);(_0xcd2eb9['wQtIT'](_0x408b78,null)||_0xcd2eb9[_0x5b4b1f(0x2f5)](_0x408b78,undefined))&&(_0xcd2eb9['TphNl'](_0xcd2eb9['FfGYz'],_0xcd2eb9[_0x5b4b1f(0x1f9)])?_0x4e9289[_0x5b4b1f(0x16f)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x25e04b+'\x20\x0a'+_0xf5642c['stringify'](_0x5e78c6[_0x5b4b1f(0x287)])):(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x1e2)],await _0xcd2eb9[_0x5b4b1f(0x2bc)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x2e1)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)));_0xcd2eb9[_0x5b4b1f(0x19e)](_0x408b78[_0x5b4b1f(0x18b)],0x191)&&(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x284)],_0xcd2eb9[_0x5b4b1f(0x216)])?(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x1da)],await _0xcd2eb9[_0x5b4b1f(0x2b2)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9['sxlNQ'],_0xcd2eb9[_0x5b4b1f(0x2a9)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):_0x2db886['sendResourceDataToHST']());if(_0xcd2eb9[_0x5b4b1f(0x1b3)](_0x408b78[_0x5b4b1f(0x18b)],0xc8)){if(_0xcd2eb9[_0x5b4b1f(0x2bf)](_0xcd2eb9['UnUkX'],_0xcd2eb9[_0x5b4b1f(0x228)]))_0xe7a9be=_0x5b4b1f(0x2db)+JSON[_0x5b4b1f(0x2c6)](_0x408b78[_0x5b4b1f(0x304)]),await _0xcd2eb9[_0x5b4b1f(0x1d4)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1ff)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1);else{const _0x44ca6b=_0xcd2eb9[_0x5b4b1f(0x263)][_0x5b4b1f(0x238)]('|');let _0xeb1c85=0x0;while(!![]){switch(_0x44ca6b[_0xeb1c85++]){case'0':_0xad95a1=_0xc6f0c5['s3bucket'];continue;case'1':_0x2c2aef=_0x1844e8[_0x5b4b1f(0x268)];continue;case'2':_0x431fb0=_0x11a2f6['hubVersion'];continue;case'3':_0xc6f921=_0x27aff8[_0x5b4b1f(0x1a7)];continue;case'4':_0x23ae5=null;continue;case'5':_0x251133=_0x5b4b1f(0x2cb)+_0x803429;continue;case'6':_0x225fe0=_0x380684[_0x5b4b1f(0x26d)];continue;case'7':_0xcd2eb9[_0x5b4b1f(0x177)](_0x56c359['privateGrid'],_0x2d34c5)&&_0x57428a[_0x5b4b1f(0x17f)]&&(_0x3890f2['isPrivateGrid']=!![]);continue;case'8':_0x5ac8ad=null;continue;case'9':_0x582885=null;continue;case'10':_0x228a17=_0x28ad74[_0x5b4b1f(0x28a)];continue;case'11':_0x4558df=_0x46133f['maxNodes'];continue;case'12':_0x19531e['info'](_0x9567d1);continue;case'13':const _0x13c90b={};_0x13c90b['type']=_0x5cae20[_0x5b4b1f(0x2d0)],_0x13c90b[_0x5b4b1f(0x2f3)]=_0x4f137d,_0x32207e[_0x5b4b1f(0x1be)](_0x51cb18,_0x13c90b);continue;case'14':_0xcd2eb9[_0x5b4b1f(0x23f)](_0x3431f3,_0x50a9c2,_0x2eaa43,_0x24e6bf,_0x603daa,_0x439f39,_0x3e251b,_0x2aa242,_0x68c6ba,_0x49f223,_0x28e6a1,_0x4fb57e,_0x2de204[_0x5b4b1f(0x1e9)]);continue;case'15':_0x43f9fa[_0x5b4b1f(0x1e0)]&&_0xcd2eb9[_0x5b4b1f(0x266)](_0x2594e9,_0x573c42[_0x5b4b1f(0x265)]);continue;}break;}}}const _0x3a5586=JSON['parse'](_0x408b78['body']),_0x15764d={};_0x15764d['type']=WS_EVENTS[_0x5b4b1f(0x264)],_0x15764d[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x276)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x15764d);const _0x2baf97={};_0x2baf97[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x2baf97[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x1ca)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x2baf97);if(_0x3a5586[_0x5b4b1f(0x2ca)]){if(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9['pBjBR'],_0xcd2eb9['pBjBR'])){const _0x54de0f={};_0x54de0f[_0x5b4b1f(0x295)]=_0x31080c[_0x5b4b1f(0x2d0)],_0x54de0f['message']=_0x1bfb04,_0x36cb23['sendEventToBackend'](_0x32aa6f,_0x54de0f,_0xcd2eb9[_0x5b4b1f(0x1ed)],!![]);}else _0xe7a9be=_0x5b4b1f(0x2a1)+_0xfe2fbf+_0x5b4b1f(0x1b8),await _0xcd2eb9[_0x5b4b1f(0x1d4)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1c7)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1);}const _0x32c011=_0x3a5586[_0x5b4b1f(0x20e)];let _0x52bfaa=_0x32c011[_0x3a5586['defaultGridProfile']];if(_0x3370e0[_0x5b4b1f(0x201)]){if(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9[_0x5b4b1f(0x2b0)],_0xcd2eb9[_0x5b4b1f(0x2b0)]))_0x52bfaa=_0x32c011[_0x3370e0[_0x5b4b1f(0x201)]];else{const _0x21304a=_0xcd2eb9[_0x5b4b1f(0x25a)][_0x5b4b1f(0x238)]('|');let _0x3a9145=0x0;while(!![]){switch(_0x21304a[_0x3a9145++]){case'0':_0x21826b[_0x5b4b1f(0x1e0)]=!![];continue;case'1':_0x1c860b['redisPassword']=_0xcd2eb9[_0x5b4b1f(0x2c1)];continue;case'2':_0x228322[_0x5b4b1f(0x1b2)]=_0xcd2eb9['fHnWm'];continue;case'3':_0xd15d8d[_0x5b4b1f(0x1b4)]=_0xcd2eb9[_0x5b4b1f(0x1f6)];continue;case'4':_0x30cbf1[_0x5b4b1f(0x271)](_0xcd2eb9['cUZYe']);continue;}break;}}}global_registry[_0x5b4b1f(0x1e0)]=![];if(_0x3370e0[_0x5b4b1f(0x2d5)]){if(_0xcd2eb9['wGlAk'](_0xcd2eb9[_0x5b4b1f(0x172)],_0xcd2eb9['DPulr']))_0xcd2eb9['WaWwF'](_0x5a1571,_0x493d62[_0x5b4b1f(0x265)]);else{const _0x362d3f=_0xcd2eb9[_0x5b4b1f(0x2b7)]['split']('|');let _0x329090=0x0;while(!![]){switch(_0x362d3f[_0x329090++]){case'0':global_registry[_0x5b4b1f(0x1b2)]=_0xcd2eb9[_0x5b4b1f(0x222)];continue;case'1':global_registry['hubHaNameSpace']=_0xcd2eb9[_0x5b4b1f(0x1f6)];continue;case'2':global_registry[_0x5b4b1f(0x166)]=_0xcd2eb9[_0x5b4b1f(0x2c1)];continue;case'3':logger['info'](_0xcd2eb9['cUZYe']);continue;case'4':global_registry[_0x5b4b1f(0x1e0)]=!![];continue;}break;}}}if(_0xcd2eb9['MyGLw'](_0x26928b,![])&&_0xcd2eb9[_0x5b4b1f(0x155)](_0x53f8ef,![])){if(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0xcd2eb9[_0x5b4b1f(0x29c)],_0xcd2eb9[_0x5b4b1f(0x310)])){const _0x3c35d0={'azure.workload.identity/use':_0xcd2eb9[_0x5b4b1f(0x18c)],..._0x531831[0x0]['spec'][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x19a)][_0x5b4b1f(0x23c)]};_0x11bf2f[0x0][_0x5b4b1f(0x267)]['template'][_0x5b4b1f(0x19a)][_0x5b4b1f(0x23c)]=_0x3c35d0,_0x3c10d3[0x0][_0x5b4b1f(0x267)]['template']['spec'][_0x5b4b1f(0x21b)]=_0xcd2eb9['MFWud'];}else{if(_0xcd2eb9[_0x5b4b1f(0x26e)](_0x52bfaa,undefined)){if(_0xcd2eb9[_0x5b4b1f(0x19e)](_0xcd2eb9[_0x5b4b1f(0x2b3)],_0xcd2eb9[_0x5b4b1f(0x2b3)]))_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x296)],await _0xcd2eb9[_0x5b4b1f(0x2b6)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1bb)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1);else{const _0x4657c3={};_0x4657c3['description']=_0xcd2eb9[_0x5b4b1f(0x210)],_0x4657c3[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x4f7942={};_0x4f7942['description']=_0xcd2eb9[_0x5b4b1f(0x16e)],_0x4f7942['type']=_0xcd2eb9['DXOwF'];const _0x475fd5={};_0x475fd5[_0x5b4b1f(0x1f4)]=_0xcd2eb9[_0x5b4b1f(0x1cb)],_0x475fd5['type']=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x300fb6={};_0x300fb6[_0x5b4b1f(0x1f4)]=_0xcd2eb9['EDuDK'],_0x300fb6['type']=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x4120d7={};_0x4120d7['description']=_0xcd2eb9[_0x5b4b1f(0x165)],_0x4120d7[_0x5b4b1f(0x295)]=_0xcd2eb9['DXOwF'];const _0x24145a={};_0x24145a[_0x5b4b1f(0x1f4)]=_0xcd2eb9['XRVwO'],_0x24145a[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x209975={};_0x209975[_0x5b4b1f(0x1f4)]=_0xcd2eb9[_0x5b4b1f(0x1bd)],_0x209975[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x27a)],_0x209975['default']=![];const _0x149e15={};_0x149e15['description']=_0xcd2eb9[_0x5b4b1f(0x1d5)],_0x149e15[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x27a)],_0x149e15[_0x5b4b1f(0x2df)]=![];const _0x5e2453={};_0x5e2453[_0x5b4b1f(0x1f4)]=_0xcd2eb9[_0x5b4b1f(0x194)],_0x5e2453[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x27a)],_0x5e2453['default']=![];const _0x226381={};return _0x226381['grid-name']=_0x4657c3,_0x226381[_0x5b4b1f(0x312)]=_0x4f7942,_0x226381[_0x5b4b1f(0x1ae)]=_0x475fd5,_0x226381[_0x5b4b1f(0x27d)]=_0x300fb6,_0x226381[_0x5b4b1f(0x22a)]=_0x4120d7,_0x226381[_0x5b4b1f(0x1d6)]=_0x24145a,_0x226381[_0x5b4b1f(0x2f1)]=_0x209975,_0x226381[_0x5b4b1f(0x2ce)]=_0x149e15,_0x226381[_0x5b4b1f(0x1d2)]=_0x5e2453,_0xbf29a[_0x5b4b1f(0x20b)](_0x2c24a4['create'])['epilogue'](_0x4a9b28)[_0x5b4b1f(0x208)](_0x226381)[_0x5b4b1f(0x302)](_0xcd2eb9[_0x5b4b1f(0x18e)])[_0x5b4b1f(0x184)];}}global_registry[_0x5b4b1f(0x2f7)]=_0x52bfaa['id'],_0xe7a9be=_0x5b4b1f(0x279)+_0xfe2fbf+_0x5b4b1f(0x1a4)+_0x52bfaa[_0x5b4b1f(0x1cd)]+_0x5b4b1f(0x189),logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x20c433={};_0x20c433['type']=WS_EVENTS['LOG'],_0x20c433['message']=_0xe7a9be,webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x20c433),_0x1743ed=_0x52bfaa['cloudProvider'],_0x3b74cd=_0x52bfaa[_0x5b4b1f(0x2e3)],_0x344635=_0x52bfaa[_0x5b4b1f(0x22a)],_0x369478=_0x52bfaa[_0x5b4b1f(0x268)],_0x3efa71=_0x52bfaa[_0x5b4b1f(0x26d)],_0x37e027=_0x52bfaa[_0x5b4b1f(0x27b)],_0x41d57d=_0x52bfaa[_0x5b4b1f(0x1d9)],_0xc92719=_0x52bfaa[_0x5b4b1f(0x2eb)],_0x33f8f8=_0x52bfaa['s3bucket'],_0x48cfa2=_0x52bfaa[_0x5b4b1f(0x1a7)],_0x4ee5a1=_0x52bfaa[_0x5b4b1f(0x1aa)],_0x195486=_0x3a5586[_0x5b4b1f(0x29f)],_0x374db2=_0x3a5586[_0x5b4b1f(0x28a)];if(_0x37e027&&_0xcd2eb9['FhqoC'](_0x37e027[_0x5b4b1f(0x241)],0x0)){if(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x15f)],_0xcd2eb9[_0x5b4b1f(0x170)]))_0x37e027=null;else{const _0x598ba2={};_0x598ba2['type']=_0x3dea93[_0x5b4b1f(0x2d0)],_0x598ba2['message']='Cluster\x20'+_0x5f4734+_0x5b4b1f(0x15c),_0x10ab11['sendEventToBackend'](_0x243bb6,_0x598ba2,_0xcd2eb9[_0x5b4b1f(0x28d)]),_0x3c2ca6['info'](_0x5b4b1f(0x282)+_0x441086+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x254eb5=!![];if(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x12072b,!![]))throw new _0x332388(_0x5b4b1f(0x282)+_0x57ede3+_0x5b4b1f(0x180));}}_0xc92719&&_0xcd2eb9[_0x5b4b1f(0x2d8)](_0xc92719[_0x5b4b1f(0x241)],0x0)&&(_0xcd2eb9[_0x5b4b1f(0x1ab)](_0xcd2eb9[_0x5b4b1f(0x2d3)],_0xcd2eb9[_0x5b4b1f(0x2d3)])?_0xaac8ef['isPrivateGrid']=!![]:_0xc92719=null),_0xcd2eb9[_0x5b4b1f(0x2fd)](_0x52bfaa[_0x5b4b1f(0x17f)],undefined)&&_0x52bfaa['privateGrid']&&(_0xcd2eb9[_0x5b4b1f(0x2d8)](_0xcd2eb9[_0x5b4b1f(0x1ac)],_0xcd2eb9[_0x5b4b1f(0x1ac)])?global_registry[_0x5b4b1f(0x2aa)]=!![]:_0xcd2eb9[_0x5b4b1f(0x30e)](_0x2d0db9,_0x547517[_0x5b4b1f(0x252)])),_0xcd2eb9['Nnvqk'](updateGlobalRegistryWithConfig,_0x1743ed,_0x3b74cd,_0x344635,_0x369478,_0x3efa71,_0x33f8f8,_0x52bfaa,_0x195486,_0x374db2,_0x48cfa2,_0x4ee5a1,_0x3370e0[_0x5b4b1f(0x1e9)]),global_registry['enableHubHa']&&(_0xcd2eb9[_0x5b4b1f(0x2fd)](_0xcd2eb9[_0x5b4b1f(0x240)],_0xcd2eb9['YLtoN'])?_0x3e343f[_0x5b4b1f(0x201)]=_0x4c3d8b[_0x5b4b1f(0x201)]:_0xcd2eb9[_0x5b4b1f(0x299)](updateGlobalRegistryForHubHa,_0x3a5586[_0x5b4b1f(0x252)]));}}else{if(_0xcd2eb9[_0x5b4b1f(0x1d1)](_0x53f8ef,!![])){if(_0xcd2eb9[_0x5b4b1f(0x1b3)](_0xcd2eb9[_0x5b4b1f(0x2c4)],_0xcd2eb9['Oukgn']))_0xbbc204=_0xcd2eb9[_0x5b4b1f(0x1b6)];else{_0xe7a9be=_0x5b4b1f(0x2cb)+_0xfe2fbf,logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x280161={};_0x280161['type']=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x280161[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x280161),_0x369478=_0x52bfaa[_0x5b4b1f(0x268)],_0x3efa71=_0x52bfaa[_0x5b4b1f(0x26d)],_0x37e027=null,_0x41d57d=null,_0xc92719=null,_0x33f8f8=_0x52bfaa[_0x5b4b1f(0x207)],_0x48cfa2=_0x52bfaa[_0x5b4b1f(0x1a7)],_0x4ee5a1=_0x52bfaa[_0x5b4b1f(0x1aa)],_0x195486=_0x3a5586[_0x5b4b1f(0x29f)],_0x374db2=_0x3a5586[_0x5b4b1f(0x28a)],_0xcd2eb9[_0x5b4b1f(0x177)](_0x52bfaa['privateGrid'],undefined)&&_0x52bfaa[_0x5b4b1f(0x17f)]&&(_0xcd2eb9[_0x5b4b1f(0x155)](_0xcd2eb9[_0x5b4b1f(0x28b)],_0xcd2eb9[_0x5b4b1f(0x248)])?(_0x2a6d16[_0x5b4b1f(0x22a)]=_0x445c9e,_0x8a9401[_0x5b4b1f(0x311)]=_0x160b68,_0x559aa0[_0x5b4b1f(0x213)]=!![],_0x4c3ec2[_0x5b4b1f(0x254)]=_0x1a2233[_0x5b4b1f(0x1e9)]):global_registry[_0x5b4b1f(0x2aa)]=!![]),_0xcd2eb9['Nnvqk'](updateGlobalRegistryWithConfig,_0x1743ed,_0x3b74cd,_0x344635,_0x369478,_0x3efa71,_0x33f8f8,_0x52bfaa,_0x195486,_0x374db2,_0x48cfa2,_0x4ee5a1,_0x3370e0[_0x5b4b1f(0x1e9)]),global_registry[_0x5b4b1f(0x1e0)]&&(_0xcd2eb9[_0x5b4b1f(0x2f2)](_0xcd2eb9['tEsAx'],_0xcd2eb9['tEsAx'])?_0x33f440[_0x5b4b1f(0x2aa)]=!![]:_0xcd2eb9[_0x5b4b1f(0x299)](updateGlobalRegistryForHubHa,_0x3a5586['kafkaUploader']));}}else{if(_0xcd2eb9[_0x5b4b1f(0x1a2)](_0xcd2eb9[_0x5b4b1f(0x196)],_0xcd2eb9[_0x5b4b1f(0x1d8)])){const _0x4d4eda=_0xcd2eb9[_0x5b4b1f(0x1cf)]['split']('|');let _0x534b9b=0x0;while(!![]){switch(_0x4d4eda[_0x534b9b++]){case'0':global_registry[_0x5b4b1f(0x28a)]=_0x3a5586[_0x5b4b1f(0x28a)];continue;case'1':global_registry['clusterName']=_0x3b74cd;continue;case'2':const _0x2f0e07={};_0x2f0e07[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x2f0e07['message']=_0xe7a9be,webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x2f0e07);continue;case'3':_0xe7a9be=_0x5b4b1f(0x256)+_0xfe2fbf+_0x5b4b1f(0x15a)+_0x3b74cd+'\x27';continue;case'4':global_registry[_0x5b4b1f(0x187)]=_0x344635;continue;case'5':global_registry[_0x5b4b1f(0x311)]=_0x1743ed;continue;case'6':logger[_0x5b4b1f(0x271)](_0xe7a9be);continue;case'7':global_registry['hubVersion']=_0x3a5586[_0x5b4b1f(0x29f)];continue;case'8':const _0x1cc670={};_0x1cc670['type']=WS_EVENTS[_0x5b4b1f(0x264)],_0x1cc670['message']=_0xcd2eb9[_0x5b4b1f(0x276)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x1cc670);continue;}break;}}else throw new _0x217a70('Cluster\x20'+_0x40fcb1+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}const _0x1d3e0a=await _0xcd2eb9[_0x5b4b1f(0x2fe)](getCloudProviderObject,_0x1743ed,_0x3b74cd,_0xfe2fbf,_0x40ff6e,webSocketUtils,_0x3370e0);_0xcd2eb9[_0x5b4b1f(0x25c)](_0x1743ed,AZURE)&&(_0xcd2eb9[_0x5b4b1f(0x285)](_0xcd2eb9[_0x5b4b1f(0x1e1)],_0xcd2eb9['rmjsy'])?_0x3272dc=_0x3d4870[_0x2f1c4d[_0x5b4b1f(0x201)]]:_0x1d3e0a[_0x5b4b1f(0x1ee)]());let _0xfa98f4;if(_0xcd2eb9[_0x5b4b1f(0x155)](_0x26928b,![])){_0xe7a9be=_0x5b4b1f(0x2e6)+_0x344635+').';const _0x39b571={};_0x39b571['type']=WS_EVENTS['LOG'],_0x39b571['message']=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x39b571),logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x3128cb=await _0x1d3e0a[_0x5b4b1f(0x298)]();if(_0x3128cb){if(_0xcd2eb9[_0x5b4b1f(0x1cc)](_0xcd2eb9[_0x5b4b1f(0x275)],_0xcd2eb9[_0x5b4b1f(0x17a)]))_0x56b5af[_0x5b4b1f(0x271)](_0x5b4b1f(0x2fc)+_0x6f33a9['clusterName']+_0x5b4b1f(0x1b9)),_0x3891ad=![],_0x2da6bd=!![];else{const _0x4177a0={};_0x4177a0[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x4177a0[_0x5b4b1f(0x2f3)]=_0x5b4b1f(0x282)+_0x3b74cd+_0x5b4b1f(0x15c),webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x4177a0,_0xcd2eb9[_0x5b4b1f(0x28d)]),logger['info'](_0x5b4b1f(0x282)+_0x3b74cd+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x26928b=!![];if(_0xcd2eb9['doyMM'](_0x53f8ef,!![])){if(_0xcd2eb9[_0x5b4b1f(0x2a8)](_0xcd2eb9[_0x5b4b1f(0x286)],_0xcd2eb9[_0x5b4b1f(0x293)]))throw new Error(_0x5b4b1f(0x282)+_0x3b74cd+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x5dbc3f[_0x5b4b1f(0x271)](_0x5b4b1f(0x1f5)+_0x5babc0[_0x5b4b1f(0x2c6)](_0x37b1e0)+'\x20');}}}else{const _0x16014e={};_0x16014e[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x16014e[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x2b1)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x16014e),logger['info'](_0xcd2eb9[_0x5b4b1f(0x2b1)]);const _0x44f42f=_0xcd2eb9[_0x5b4b1f(0x29b)](_0x37e027,null)&&_0xcd2eb9[_0x5b4b1f(0x2fd)](_0x37e027,undefined),_0x3bd83=_0xcd2eb9[_0x5b4b1f(0x29b)](_0xc92719,null)&&_0xcd2eb9[_0x5b4b1f(0x1a2)](_0xc92719,undefined)&&_0xcd2eb9[_0x5b4b1f(0x290)](_0xc92719[_0x5b4b1f(0x241)],0x0);if(_0x44f42f){_0xcd2eb9[_0x5b4b1f(0x22d)](_0x3bd83,![])&&(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x29e)],await _0xcd2eb9['vRJYp'](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9['sxlNQ'],_0xcd2eb9[_0x5b4b1f(0x300)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));const _0x54bc03=await _0x1d3e0a[_0x5b4b1f(0x1e8)](_0x37e027);_0xcd2eb9[_0x5b4b1f(0x1dd)](_0x54bc03,![])?(_0xe7a9be=_0xcd2eb9['PiwFM'],await _0xcd2eb9[_0x5b4b1f(0x1c8)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x202)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):logger[_0x5b4b1f(0x271)]('Found\x20VPC:\x20'+_0x37e027+'\x20');const _0x54bb52=await _0x1d3e0a['isSubnetsValid'](_0xc92719,_0x37e027);_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x54bb52[0x0],![])?(_0xe7a9be='Subnets:\x20'+JSON[_0x5b4b1f(0x2c6)](_0x54bb52[0x1])+_0x5b4b1f(0x244)+_0x37e027+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0xcd2eb9[_0x5b4b1f(0x2b6)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x297)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):logger[_0x5b4b1f(0x271)](_0x5b4b1f(0x1f5)+JSON[_0x5b4b1f(0x2c6)](_0xc92719)+'\x20'),[_0x37e027,_0xc92719]=await _0x1d3e0a[_0x5b4b1f(0x243)](_0x37e027,_0xc92719);}else{const _0x3cca6=_0xcd2eb9[_0x5b4b1f(0x23e)][_0x5b4b1f(0x238)]('|');let _0x3e02ce=0x0;while(!![]){switch(_0x3cca6[_0x3e02ce++]){case'0':const _0x375733={};_0x375733[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x375733[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x28c)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x375733);continue;case'1':logger[_0x5b4b1f(0x271)](_0xcd2eb9['yZnNi']);continue;case'2':[_0x37e027,_0xc92719]=await _0x1d3e0a[_0x5b4b1f(0x243)](_0x37e027,_0xc92719);continue;case'3':logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x1a1)]);continue;case'4':const _0x45304c={};_0x45304c[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x45304c['message']=_0xcd2eb9[_0x5b4b1f(0x1a1)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x45304c);continue;}break;}}}}_0x26928b&&_0xcd2eb9[_0x5b4b1f(0x1db)](_0x1743ed,AZURE)&&(await _0x1d3e0a[_0x5b4b1f(0x259)](),await _0x1d3e0a[_0x5b4b1f(0x1c6)]());const [_0x588334,_0x2882b5,_0x31a0ff,_0x5cdb8f,_0xde96c5,_0x1fed39,_0x4af302]=await _0xcd2eb9[_0x5b4b1f(0x221)](createK8sClient,_0x1d3e0a,_0x3370e0[_0x5b4b1f(0x15e)]);_0xcd2eb9[_0x5b4b1f(0x316)](_0x26928b,![])&&_0xcd2eb9[_0x5b4b1f(0x1d7)](_0x1743ed,AWS)&&(global_registry[_0x5b4b1f(0x161)]=!![],_0xfa98f4=await _0x1d3e0a[_0x5b4b1f(0x22f)](_0x588334,_0x3370e0));if(_0xcd2eb9[_0x5b4b1f(0x2f6)](_0x26928b,![])&&global_registry['enableHubHa'])try{await _0x1d3e0a[_0x5b4b1f(0x218)](_0x1fed39,_0x4af302,_0x3370e0,_0x37e027,_0xc92719);const _0x269ef9={};_0x269ef9[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x269ef9['message']=_0xcd2eb9[_0x5b4b1f(0x16c)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x269ef9);!await _0xcd2eb9[_0x5b4b1f(0x221)](namespaceExists,_0x588334,global_registry[_0x5b4b1f(0x1b4)])&&await _0xcd2eb9[_0x5b4b1f(0x221)](createNamespace,_0x588334,global_registry[_0x5b4b1f(0x1b4)]);logger['info'](_0xcd2eb9[_0x5b4b1f(0x245)]);let _0x129897=await fs[_0x5b4b1f(0x2d7)](path[_0x5b4b1f(0x17d)](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9[_0x5b4b1f(0x303)],_0xcd2eb9['aNJYs'],_0xcd2eb9[_0x5b4b1f(0x198)]),_0xcd2eb9['wWVkd']);_0x129897=_0x129897[_0x5b4b1f(0x1a9)](/<RedisClientPassword>/g,_0xcd2eb9['cTEKz'](encodeBase64,global_registry['redisPassword'])),_0x129897=_0x129897['replace'](/<KafkaClientPassword>/g,_0xcd2eb9[_0x5b4b1f(0x266)](encodeBase64,global_registry[_0x5b4b1f(0x1b2)])),_0x129897=_0x129897[_0x5b4b1f(0x1a9)](/<BstackUsername>/g,_0xcd2eb9[_0x5b4b1f(0x19f)](encodeBase64,global_registry['bstackUsername'])),_0x129897=_0x129897[_0x5b4b1f(0x1a9)](/<BstackAccessKey>/g,_0xcd2eb9['WaWwF'](encodeBase64,global_registry[_0x5b4b1f(0x18a)]));const _0xd69e7a=yaml[_0x5b4b1f(0x1ea)](_0x129897);await _0xcd2eb9['USFOm'](kubeApply,_0xd69e7a,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x301)]);let _0x121276=_0xcd2eb9[_0x5b4b1f(0x234)];if(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x1743ed,AZURE))_0x121276=_0xcd2eb9[_0x5b4b1f(0x1fc)];else _0xcd2eb9['GJvtT'](_0x1743ed,GCP)&&(_0x121276=_0xcd2eb9['TyCgj']);logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2cd)]);let _0x4e429f=await fs[_0x5b4b1f(0x2d7)](path[_0x5b4b1f(0x17d)](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9[_0x5b4b1f(0x303)],_0xcd2eb9[_0x5b4b1f(0x233)],_0xcd2eb9[_0x5b4b1f(0x186)]),_0xcd2eb9[_0x5b4b1f(0x1e6)]);_0x4e429f=_0x4e429f[_0x5b4b1f(0x1a9)](/<HubHaNameSpace>/g,global_registry[_0x5b4b1f(0x1b4)]),_0x4e429f=_0x4e429f[_0x5b4b1f(0x1a9)](/<StorageClassName>/g,_0x121276);const _0x5b277b=yaml[_0x5b4b1f(0x1ea)](_0x4e429f);await _0xcd2eb9[_0x5b4b1f(0x2da)](kubeApply,_0x5b277b,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x1d3)]),logger[_0x5b4b1f(0x271)](_0xcd2eb9['yxTEI']);let _0x39e15e=await fs[_0x5b4b1f(0x2d7)](path['join'](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9[_0x5b4b1f(0x303)],_0xcd2eb9[_0x5b4b1f(0x233)],_0xcd2eb9[_0x5b4b1f(0x2f0)]),_0xcd2eb9[_0x5b4b1f(0x1e6)]);_0x39e15e=_0x39e15e['replace'](/<HubHaNameSpace>/g,global_registry[_0x5b4b1f(0x1b4)]),_0x39e15e=_0x39e15e[_0x5b4b1f(0x1a9)](/<StorageClassName>/g,_0x121276);const _0x5525d4=yaml['loadAll'](_0x39e15e);await _0xcd2eb9[_0x5b4b1f(0x24b)](kubeApply,_0x5525d4,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2e8)]),logger['info'](_0xcd2eb9[_0x5b4b1f(0x1c9)]);let _0x99835b=await fs['readFileAsync'](path[_0x5b4b1f(0x17d)](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9['nwfQL'],_0xcd2eb9[_0x5b4b1f(0x233)],_0xcd2eb9[_0x5b4b1f(0x1a8)]),_0xcd2eb9[_0x5b4b1f(0x1e6)]);_0x99835b=_0x99835b[_0x5b4b1f(0x1a9)](/<UploaderImageVersion>/g,global_registry[_0x5b4b1f(0x294)]),_0x99835b=_0x99835b[_0x5b4b1f(0x1a9)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x7173ce=yaml[_0x5b4b1f(0x1ea)](_0x99835b);_0xcd2eb9[_0x5b4b1f(0x2f6)](global_registry[_0x5b4b1f(0x311)],AZURE)&&(_0x7173ce[0x0][_0x5b4b1f(0x267)][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x19a)]['labels']={'azure.workload.identity/use':_0xcd2eb9[_0x5b4b1f(0x18c)],..._0x7173ce[0x0][_0x5b4b1f(0x267)][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x19a)]['labels']},_0x7173ce[0x0][_0x5b4b1f(0x267)][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x267)]['serviceAccountName']=_0xcd2eb9[_0x5b4b1f(0x257)]);await _0xcd2eb9['SJDbl'](kubeApply,_0x7173ce,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x223)]);const _0x1e4936={};_0x1e4936[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x1e4936[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x28f)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x1e4936),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2d1)]);}catch(_0x9a4c8b){const _0x9951a0=_0xcd2eb9['bWLaB'][_0x5b4b1f(0x238)]('|');let _0x4b624c=0x0;while(!![]){switch(_0x9951a0[_0x4b624c++]){case'0':await _0xcd2eb9['DWGPb'](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9['sxlNQ'],_0xcd2eb9[_0x5b4b1f(0x16d)],_0xcd2eb9[_0x5b4b1f(0x1ed)]);continue;case'1':await _0x1d3e0a[_0x5b4b1f(0x2a6)](_0x588334,global_registry[_0x5b4b1f(0x187)]);continue;case'2':_0xe7a9be=_0x5b4b1f(0x250)+_0x9a4c8b[_0x5b4b1f(0x2f3)];continue;case'3':logger[_0x5b4b1f(0x16f)](_0xe7a9be);continue;case'4':process[_0x5b4b1f(0x16b)](0x1);continue;}break;}}try{_0x5bfb6f=_0xcd2eb9['LIGyC'](kebabCase,_0xfe2fbf),logger['info'](_0xcd2eb9[_0x5b4b1f(0x1b7)]);const _0x313a34={};_0x313a34[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x313a34['message']=_0xcd2eb9['BPERO'],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x313a34);if(_0xcd2eb9[_0x5b4b1f(0x2bf)](_0x5bfb6f,_0xcd2eb9[_0x5b4b1f(0x257)])){const _0x2bcc13={};_0x2bcc13['createdBy']=_0xcd2eb9[_0x5b4b1f(0x204)],_0x2bcc13['managedBy']=_0xcd2eb9[_0x5b4b1f(0x204)];const _0x30238a={};_0x30238a['name']=_0x5bfb6f,_0x30238a[_0x5b4b1f(0x2ba)]=_0x2bcc13;const _0xbcead8={};_0xbcead8['metadata']=_0x30238a;const _0x5220c7=_0xbcead8,_0x555377={};_0x555377[_0x5b4b1f(0x304)]=_0x5220c7,await _0x588334['createNamespace'](_0x555377),logger[_0x5b4b1f(0x271)](_0xcd2eb9['EdDvr']);}const _0x34f4c0={};_0x34f4c0[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x34f4c0[_0x5b4b1f(0x2f3)]=_0xcd2eb9['dmpqk'],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x34f4c0);const _0x271466={};_0x271466['type']=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x271466[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x2f4)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x271466),logger[_0x5b4b1f(0x271)](_0xcd2eb9['HYrYR']);let _0x4a7020={};_0xcd2eb9[_0x5b4b1f(0x1db)](_0x1743ed,AZURE)&&(_0x4a7020={'clientId':await _0x1d3e0a[_0x5b4b1f(0x2fa)](_0x5b4b1f(0x305)+_0x3b74cd)});await _0xcd2eb9[_0x5b4b1f(0x288)](addGridComponents,_0x588334,_0x2882b5,_0x31a0ff,_0x5cdb8f,_0x5bfb6f,_0x3b74cd,_0xfa98f4,_0xde96c5,_0x4af302,_0x4a7020),_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x2b9)],logger['info'](_0xe7a9be);const _0x11b11c={};_0x11b11c[_0x5b4b1f(0x295)]=WS_EVENTS['LOG'],_0x11b11c[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x11b11c),_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x227)],logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x42a67f={};_0x42a67f[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x42a67f[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x42a67f),await _0xcd2eb9['FxCGH'](waitForDeployment,_0x2882b5,_0x5bfb6f,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x217e1e=await _0xcd2eb9[_0x5b4b1f(0x2da)](getNamespaceUID,_0x588334,_0x5bfb6f),_0x36b53f=global_registry[_0x5b4b1f(0x2aa)]?_0xcd2eb9[_0x5b4b1f(0x1bc)]:_0xcd2eb9[_0x5b4b1f(0x24e)],_0x4728a2={};_0x4728a2[_0x5b4b1f(0x1cd)]=_0x36b53f,_0x4728a2[_0x5b4b1f(0x183)]=_0xcd2eb9[_0x5b4b1f(0x1ba)];const _0x59c219=await _0x588334[_0x5b4b1f(0x1d0)](_0x4728a2);let _0x3e3041=_0x1d3e0a['getGridHostname'](_0x59c219)+'/'+_0x5bfb6f,_0x239f91=_0xcd2eb9['pRUss'];try{const _0xff57aa=_0x5b4b1f(0x2ab)+AG_API_URL+_0x5b4b1f(0x160)+_0x217e1e,_0x56a3d7=await _0xcd2eb9['NGnhV'](got,_0xff57aa,_0x10e58d);(_0xcd2eb9['ZNHZn'](_0x56a3d7,null)||_0xcd2eb9[_0x5b4b1f(0x206)](_0x56a3d7,undefined))&&(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x281)],await _0xcd2eb9[_0x5b4b1f(0x2ae)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x28e)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));_0xcd2eb9[_0x5b4b1f(0x2d8)](_0x56a3d7['statusCode'],0x191)&&(_0xe7a9be=_0xcd2eb9['ypPVl'],await _0xcd2eb9[_0x5b4b1f(0x2b2)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x242)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));_0xcd2eb9[_0x5b4b1f(0x25c)](_0x56a3d7[_0x5b4b1f(0x18b)],0xc8)&&(_0xe7a9be='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x56a3d7),await _0xcd2eb9['ELBfh'](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x258)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));const _0x223f1c=JSON['parse'](_0x56a3d7[_0x5b4b1f(0x304)]);_0x223f1c[_0x5b4b1f(0x29d)]&&(_0x3e3041=_0x223f1c[_0x5b4b1f(0x29d)],_0x239f91=_0xcd2eb9[_0x5b4b1f(0x209)]),global_registry[_0x5b4b1f(0x2aa)]&&(_0x239f91=_0xcd2eb9['pRUss']);}catch(_0x45b32a){}_0xe7a9be=_0x5b4b1f(0x1a0)+_0x3e3041+'\x20',logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x12bcdb={};_0x12bcdb[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x12bcdb[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x12bcdb),_0xe7a9be='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x239f91+_0x5b4b1f(0x15d)+_0x3e3041+'/wd/hub',logger['info'](_0xe7a9be);const _0x12870a={};_0x12870a[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x12870a[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x12870a);const _0x422dc1={};_0x422dc1[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x246)],_0x422dc1[_0x5b4b1f(0x2f3)]=_0x5b4b1f(0x1a6)+_0x3e3041,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x422dc1),await webSocketUtils[_0x5b4b1f(0x19b)](0x7d0);}catch(_0x38851d){logger[_0x5b4b1f(0x16f)](_0x5b4b1f(0x24c)+_0x38851d+'\x20\x0a'+JSON[_0x5b4b1f(0x2c6)](_0x38851d[_0x5b4b1f(0x287)]));if(_0xcd2eb9['uBEST'](_0x26928b,![]))try{logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2a7)]),await _0xcd2eb9[_0x5b4b1f(0x2ed)](removeGridComponents,_0x588334,_0x2882b5,_0x31a0ff,_0x5cdb8f,_0x5bfb6f),await _0x1d3e0a['deleteCluster'](_0x588334,global_registry[_0x5b4b1f(0x187)]);}catch(_0x4166ab){logger['error'](_0x5b4b1f(0x1c2)+_0x4166ab+'\x20\x0a'+JSON['stringify'](_0x4166ab['stack']));}throw _0x38851d;}}catch(_0x937ae9){const _0x155ccb=_0x5b4b1f(0x2bd)+_0x937ae9+'\x20\x0a'+JSON[_0x5b4b1f(0x2c6)](_0x937ae9['stack']);if(_0x40ff6e){const _0x269f9d={};_0x269f9d[_0x5b4b1f(0x295)]=WS_EVENTS['LOG'],_0x269f9d[_0x5b4b1f(0x2f3)]=_0x155ccb,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x269f9d,_0xcd2eb9['tGWif'],!![]);}await webSocketUtils[_0x5b4b1f(0x19b)](0x7d0);const _0x507864={};_0x507864[_0x5b4b1f(0x16f)]=_0x155ccb,await _0xcd2eb9['faQwN'](sendInstrumentationEvent,_0x3370e0,_0xcd2eb9[_0x5b4b1f(0x19c)],messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x192)],_0x507864,_0x3370e0),logger[_0x5b4b1f(0x16f)](_0x155ccb);}process[_0x5b4b1f(0x16b)](0x0);};
@@ -1 +1 @@
1
- const a10_0xba1e92=a10_0x5643;(function(_0x1e13fe,_0x43bf3a){const _0x2bdde5=a10_0x5643,_0x4bc221=_0x1e13fe();while(!![]){try{const _0x3a3121=-parseInt(_0x2bdde5(0x11c))/0x1+parseInt(_0x2bdde5(0x10e))/0x2+-parseInt(_0x2bdde5(0x116))/0x3+-parseInt(_0x2bdde5(0x11e))/0x4+-parseInt(_0x2bdde5(0x10c))/0x5+-parseInt(_0x2bdde5(0x10f))/0x6*(-parseInt(_0x2bdde5(0x112))/0x7)+-parseInt(_0x2bdde5(0x118))/0x8*(-parseInt(_0x2bdde5(0x11b))/0x9);if(_0x3a3121===_0x43bf3a)break;else _0x4bc221['push'](_0x4bc221['shift']());}catch(_0x313e3b){_0x4bc221['push'](_0x4bc221['shift']());}}}(a10_0x4974,0x4ac65));function a10_0x5643(_0x2a6426,_0x2f1e25){const _0x4974b7=a10_0x4974();return a10_0x5643=function(_0x5643d7,_0x2d0efe){_0x5643d7=_0x5643d7-0x10c;let _0x31db60=_0x4974b7[_0x5643d7];return _0x31db60;},a10_0x5643(_0x2a6426,_0x2f1e25);}function a10_0x4974(){const _0x173321=['delete','command','427028gqKRvr','demandCommand','epilogue','recommendCommands','998265tQOTAZ','help','8opyOYN','delete_commands','List\x20Grid\x20resources.','8020575EFotXI','336788AtmPed','KMzJF','367376qGoNiH','../config/constants','strict','usage','2393780Yfcrxu','ucXVx','944466zhyWQB','18OOHvWn'];a10_0x4974=function(){return _0x173321;};return a10_0x4974();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0xba1e92(0x11f));exports[a10_0xba1e92(0x111)]=a10_0xba1e92(0x110),exports['desc']=a10_0xba1e92(0x11a),exports['builder']=function(_0x364a4b){const _0x5053cb=a10_0xba1e92,_0xbe6786={};_0xbe6786[_0x5053cb(0x10d)]=_0x5053cb(0x119),_0xbe6786[_0x5053cb(0x11d)]=_0x5053cb(0x117);const _0x23e93f=_0xbe6786;return _0x364a4b[_0x5053cb(0x121)](HELP_HEADER_MESSAGE['delete'])[_0x5053cb(0x114)](HELP_FOOTER_MESSAGE)['commandDir'](_0x23e93f[_0x5053cb(0x10d)])[_0x5053cb(0x113)]()[_0x5053cb(0x115)]()[_0x5053cb(0x120)]()['help'](_0x23e93f[_0x5053cb(0x11d)]);},exports['handler']=function(_0x58eb13){};
1
+ function a10_0x25ae(_0x3b4387,_0x5d4b96){const _0x19ebf5=a10_0x19eb();return a10_0x25ae=function(_0x25aed8,_0x5e7765){_0x25aed8=_0x25aed8-0x17f;let _0x41a116=_0x19ebf5[_0x25aed8];return _0x41a116;},a10_0x25ae(_0x3b4387,_0x5d4b96);}const a10_0x3b8aa2=a10_0x25ae;(function(_0x26e507,_0x1340b4){const _0x2f515c=a10_0x25ae,_0x49c385=_0x26e507();while(!![]){try{const _0x58537a=parseInt(_0x2f515c(0x185))/0x1+-parseInt(_0x2f515c(0x18f))/0x2+parseInt(_0x2f515c(0x18e))/0x3+-parseInt(_0x2f515c(0x193))/0x4+-parseInt(_0x2f515c(0x192))/0x5+-parseInt(_0x2f515c(0x187))/0x6*(-parseInt(_0x2f515c(0x181))/0x7)+parseInt(_0x2f515c(0x191))/0x8;if(_0x58537a===_0x1340b4)break;else _0x49c385['push'](_0x49c385['shift']());}catch(_0x99d206){_0x49c385['push'](_0x49c385['shift']());}}}(a10_0x19eb,0x7e818));function a10_0x19eb(){const _0x48635c=['commandDir','strict','173066ONTiHr','usage','1421718DYwHKZ','delete','help','demandCommand','command','delete_commands','rTlMX','1735635YXSrna','1684704bbWZov','recommendCommands','4709816zxCegG','4294155PHlcDC','275196rIqHme','desc','List\x20Grid\x20resources.','BSRWY','epilogue','28MWgbmP','handler'];a10_0x19eb=function(){return _0x48635c;};return a10_0x19eb();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0x3b8aa2(0x18b)]='delete',exports[a10_0x3b8aa2(0x194)]=a10_0x3b8aa2(0x195),exports['builder']=function(_0x24ec7){const _0xecf972=a10_0x3b8aa2,_0x1ed8f9={};_0x1ed8f9[_0xecf972(0x18d)]=_0xecf972(0x18c),_0x1ed8f9[_0xecf972(0x17f)]=_0xecf972(0x189);const _0x5c4c5e=_0x1ed8f9;return _0x24ec7[_0xecf972(0x186)](HELP_HEADER_MESSAGE[_0xecf972(0x188)])[_0xecf972(0x180)](HELP_FOOTER_MESSAGE)[_0xecf972(0x183)](_0x5c4c5e[_0xecf972(0x18d)])[_0xecf972(0x18a)]()[_0xecf972(0x190)]()[_0xecf972(0x184)]()[_0xecf972(0x189)](_0x5c4c5e[_0xecf972(0x17f)]);},exports[a10_0x3b8aa2(0x182)]=function(_0x5bad78){};
@@ -1 +1 @@
1
- const a11_0x422cbb=a11_0x3ee8;function a11_0x3ee8(_0x317428,_0x4e440d){const _0x5cfe9b=a11_0x5cfe();return a11_0x3ee8=function(_0x3ee85d,_0x53cfdd){_0x3ee85d=_0x3ee85d-0x9e;let _0x17dac2=_0x5cfe9b[_0x3ee85d];return _0x17dac2;},a11_0x3ee8(_0x317428,_0x4e440d);}(function(_0x38c196,_0x6210d2){const _0x29cda5=a11_0x3ee8,_0x5c68bd=_0x38c196();while(!![]){try{const _0x4287c3=parseInt(_0x29cda5(0xd7))/0x1+-parseInt(_0x29cda5(0xe3))/0x2+parseInt(_0x29cda5(0xa8))/0x3*(parseInt(_0x29cda5(0x137))/0x4)+parseInt(_0x29cda5(0xde))/0x5+parseInt(_0x29cda5(0x110))/0x6+parseInt(_0x29cda5(0x134))/0x7+-parseInt(_0x29cda5(0xa7))/0x8;if(_0x4287c3===_0x6210d2)break;else _0x5c68bd['push'](_0x5c68bd['shift']());}catch(_0x2fba6d){_0x5c68bd['push'](_0x5c68bd['shift']());}}}(a11_0x5cfe,0xaa2ad));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x422cbb(0x114)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x422cbb(0x12e)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x422cbb(0x13c)),{logger}=require(a11_0x422cbb(0xe1)),{getCloudProviderObject}=require(a11_0x422cbb(0xb4)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x422cbb(0xc2)),{sendInstrumentationEvent}=require(a11_0x422cbb(0xef)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x422cbb(0x13f)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x422cbb(0x131));exports[a11_0x422cbb(0x103)]=a11_0x422cbb(0xcf),exports[a11_0x422cbb(0xd5)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x422cbb(0x120)]=function(_0x433e6e){const _0x1239ee=a11_0x422cbb,_0x30f116={};_0x30f116[_0x1239ee(0x116)]=_0x1239ee(0xbf),_0x30f116[_0x1239ee(0x104)]=_0x1239ee(0x123),_0x30f116[_0x1239ee(0x138)]='Skip\x20insecure\x20cert\x20verification.',_0x30f116[_0x1239ee(0xb3)]=_0x1239ee(0xf5),_0x30f116[_0x1239ee(0x118)]=_0x1239ee(0x128);const _0x116e88=_0x30f116,_0x26a61d={};_0x26a61d[_0x1239ee(0xa2)]=_0x116e88['YJgaO'],_0x26a61d['type']=_0x116e88[_0x1239ee(0x104)];const _0x8f5fe4={};_0x8f5fe4[_0x1239ee(0xa2)]=_0x116e88[_0x1239ee(0x138)],_0x8f5fe4[_0x1239ee(0xf1)]=_0x116e88[_0x1239ee(0xb3)],_0x8f5fe4[_0x1239ee(0x124)]=![];const _0xa18e5={};return _0xa18e5['grid-id']=_0x26a61d,_0xa18e5[_0x1239ee(0xa9)]=_0x8f5fe4,_0x433e6e[_0x1239ee(0x119)](HELP_HEADER_MESSAGE[_0x1239ee(0xfd)])[_0x1239ee(0x107)](HELP_FOOTER_MESSAGE)[_0x1239ee(0xb8)](_0xa18e5)[_0x1239ee(0x128)](_0x116e88['meMXh'])['argv'];},exports['handler']=async function(_0x3f0ae8){const _0x25f189=a11_0x422cbb,_0x131552={'BFyGS':'Pass\x20the\x20ID\x20of\x20the\x20Grid','iJoFQ':_0x25f189(0x123),'psnJN':_0x25f189(0xc3),'ZkbAp':_0x25f189(0xf5),'cBTKm':_0x25f189(0x128),'LkdvH':function(_0x1cbc71,_0x17408a){return _0x1cbc71!==_0x17408a;},'kBasG':_0x25f189(0x13b),'VDhbz':'FlnCj','AiYfI':_0x25f189(0xf4),'fhkEG':function(_0x370e0f,_0x2158f0){return _0x370e0f===_0x2158f0;},'YOSkF':'tVydH','QKklA':_0x25f189(0x102),'Vmhvd':_0x25f189(0xc8),'lrdND':function(_0x331f65){return _0x331f65();},'QIXaB':_0x25f189(0xb6),'yqxRU':_0x25f189(0xbc),'NKXkK':function(_0x1ebb12,_0x2b76bf,_0x5bbf1d,_0x2ac4d7,_0x45b098,_0xa148f2,_0xd84df3){return _0x1ebb12(_0x2b76bf,_0x5bbf1d,_0x2ac4d7,_0x45b098,_0xa148f2,_0xd84df3);},'CtJzT':_0x25f189(0x9e),'qOHaG':_0x25f189(0x13d),'PuChP':function(_0x147c63,_0x1a464e){return _0x147c63===_0x1a464e;},'IabLD':_0x25f189(0xac),'uAATf':function(_0x2560d7){return _0x2560d7();},'CjyfB':function(_0x118d39,_0x5ea079,_0x1034a6,_0x1adfff){return _0x118d39(_0x5ea079,_0x1034a6,_0x1adfff);},'WgtLT':'Browserstack','bKmHn':function(_0x30003e,_0x4b4ff5){return _0x30003e===_0x4b4ff5;},'sEzlA':'qTFbd','WHYEy':'cYPKJ','AZJoI':function(_0x2cff8f,_0x4cc77d){return _0x2cff8f(_0x4cc77d);},'mdUWC':function(_0x167314,_0x17cbd8){return _0x167314===_0x17cbd8;},'BACQf':function(_0x5e6e8e,_0x173c7b){return _0x5e6e8e===_0x173c7b;},'hhblu':function(_0x5d7eb4,_0x434f09){return _0x5d7eb4===_0x434f09;},'bZnvE':function(_0x584f0e,_0x2bf060){return _0x584f0e===_0x2bf060;},'ZMsLf':function(_0x3315cb,_0x480115){return _0x3315cb!==_0x480115;},'fucKm':'OqRzq','rKDJQ':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','uCPKs':_0x25f189(0xe0),'pwNlj':function(_0x1fd40b,_0x47469a){return _0x1fd40b===_0x47469a;},'isyhW':function(_0x51d561,_0x4988cf){return _0x51d561===_0x4988cf;},'UAcZN':_0x25f189(0xdf),'JXvMv':_0x25f189(0xfc),'wTDXq':'<UsernamePlaceholder>','VoNfr':_0x25f189(0x11f),'sFoMN':function(_0x22eddf,_0xd23821,_0x5ab809,_0x3b1128,_0x53f4e1,_0x1a2d9d,_0x348716){return _0x22eddf(_0xd23821,_0x5ab809,_0x3b1128,_0x53f4e1,_0x1a2d9d,_0x348716);},'VfPpI':function(_0x498855,_0x47548f){return _0x498855(_0x47548f);},'SGLQU':function(_0x2d3645,_0x23a318,_0x3670c2){return _0x2d3645(_0x23a318,_0x3670c2);},'OMaND':function(_0xae3cfa,_0x5600d2,_0xd38897,_0x39d4af,_0x1a19ad,_0x492f3c){return _0xae3cfa(_0x5600d2,_0xd38897,_0x39d4af,_0x1a19ad,_0x492f3c);},'ODtrm':_0x25f189(0x140),'ZVwyb':_0x25f189(0x125),'LKKIm':'oSEVF','YMoxy':_0x25f189(0xc0),'lQFJL':_0x25f189(0x11e),'lmRKp':function(_0x3aa826,_0x5096c5){return _0x3aa826!==_0x5096c5;},'XKKFP':_0x25f189(0xe7),'mbTSR':function(_0x5e62b6,_0x177b0f){return _0x5e62b6===_0x177b0f;},'OPDQu':_0x25f189(0xea),'CmMNc':function(_0x30e1bc,_0x5e6d51,_0x4bcd9b,_0x383653,_0xa2ba44,_0x49c747,_0x3da182){return _0x30e1bc(_0x5e6d51,_0x4bcd9b,_0x383653,_0xa2ba44,_0x49c747,_0x3da182);},'pezPm':'unauthorised','UIarQ':'invalid-grid-id','JLVgk':_0x25f189(0xe6)};try{global_registry[_0x25f189(0x11d)]=_0x131552[_0x25f189(0xdb)](uuidv4);!fs[_0x25f189(0x11c)](_0x131552['lrdND'](getCredentialsPath))&&(_0x131552[_0x25f189(0xb0)](_0x131552['QIXaB'],_0x131552[_0x25f189(0x108)])?_0x1619de[_0x25f189(0xb2)](_0x25f189(0xe2)+_0xe48ae6+_0x25f189(0x13e)):(console[_0x25f189(0xb5)](_0x131552[_0x25f189(0xc1)]),await _0x131552[_0x25f189(0xe4)](sendInstrumentationEvent,_0x3f0ae8,_0x131552['CtJzT'],messageTypes[_0x25f189(0xf7)],_0x131552[_0x25f189(0xd4)],null,_0x3f0ae8),process[_0x25f189(0x106)](0x1)));_0x131552[_0x25f189(0xe4)](sendInstrumentationEvent,_0x3f0ae8,_0x131552[_0x25f189(0x12d)],messageTypes['INFO'],null,null,_0x3f0ae8);!_0x3f0ae8['gridId']&&(_0x131552[_0x25f189(0x121)](_0x131552[_0x25f189(0x100)],_0x131552['IabLD'])?(console[_0x25f189(0xb5)](_0x131552['QKklA']),process[_0x25f189(0x106)](0x1)):_0xb335df['exit'](0x0));const _0x5bb664=JSON[_0x25f189(0xf9)](fs[_0x25f189(0x13a)](_0x131552[_0x25f189(0xe9)](getCredentialsPath))),[_0x3e067b,_0x420b7b]=await _0x131552[_0x25f189(0xcd)](getGridDetails,_0x5bb664[_0x25f189(0xc5)][_0x25f189(0xa4)],_0x5bb664['Browserstack'][_0x25f189(0xa0)],_0x3f0ae8[_0x25f189(0x129)]);if(_0x420b7b){const _0x4d7b1e=_0x420b7b[_0x25f189(0xb2)];let _0x206df8=_0x25f189(0xfa)+_0x4d7b1e[_0x25f189(0x136)]+_0x25f189(0xd1)+_0x4d7b1e['id']+_0x25f189(0x133);_0x420b7b[_0x25f189(0xee)]&&_0x131552[_0x25f189(0x127)](_0x420b7b[_0x25f189(0x12f)],_0x131552[_0x25f189(0x113)])&&(_0x131552[_0x25f189(0x135)](_0x131552[_0x25f189(0xe8)],_0x131552[_0x25f189(0xae)])?_0x258bd5=_0x25f189(0xfa)+_0x5d9810[_0x25f189(0x136)]+_0x25f189(0xd1)+_0x28bc0f['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2e8c25['clusterName']+'\x22\x20with\x20ID\x20'+_0x4f92ce[_0x25f189(0x105)]+_0x25f189(0x133):_0x206df8=_0x25f189(0xfa)+_0x4d7b1e[_0x25f189(0x136)]+_0x25f189(0xd1)+_0x4d7b1e['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4d7b1e[_0x25f189(0x115)]+_0x25f189(0xd3)+_0x4d7b1e[_0x25f189(0x105)]+_0x25f189(0x133));const _0x4519f7=await _0x131552[_0x25f189(0x12b)](inputConfirmation,_0x206df8);(_0x131552[_0x25f189(0xeb)](_0x4519f7,undefined)||_0x131552[_0x25f189(0xd2)](_0x4519f7,null)||!(_0x131552[_0x25f189(0xa1)](_0x4519f7[_0x25f189(0xdc)](),'y')||_0x131552[_0x25f189(0xa6)](_0x4519f7[_0x25f189(0xdc)](),'n')))&&(_0x131552['ZMsLf'](_0x131552[_0x25f189(0xb9)],_0x131552[_0x25f189(0xb9)])?_0x3cfee2['warn'](_0x25f189(0xda)+_0x335a3e[_0x25f189(0x115)]+_0x25f189(0x122)):(console[_0x25f189(0xb5)](_0x131552[_0x25f189(0x9f)]),await _0x131552['NKXkK'](sendInstrumentationEvent,_0x3f0ae8,_0x131552[_0x25f189(0x12d)],messageTypes[_0x25f189(0xf7)],_0x131552[_0x25f189(0x130)],null,_0x3f0ae8),process['exit'](0x1)));_0x131552[_0x25f189(0xbe)](_0x4519f7['toLowerCase'](),'n')&&(_0x131552[_0x25f189(0x12c)](_0x131552[_0x25f189(0x10a)],_0x131552[_0x25f189(0xbb)])?(_0x4e325b[_0x25f189(0x12a)](_0x25f189(0xe2)+_0x587438+_0x25f189(0xfb)),_0x2ed547=![]):process['exit'](0x0));const _0x2bf7e2=WS_ENDPOINT[_0x25f189(0xab)](_0x131552['wTDXq'],_0x5bb664[_0x25f189(0xc5)][_0x25f189(0xa4)])[_0x25f189(0xab)](_0x131552[_0x25f189(0xb7)],_0x5bb664[_0x25f189(0xc5)][_0x25f189(0xa0)]),_0x2d5376={};_0x2d5376[_0x25f189(0x109)]=ws,_0x2d5376[_0x25f189(0xa3)]=0x36ee80;const _0x85662b=new ReconnectingWebSocket(_0x2bf7e2,[],_0x2d5376);global_registry[_0x25f189(0xce)]=_0x4d7b1e[_0x25f189(0x139)];const _0x209a64=_0x4d7b1e[_0x25f189(0xad)],_0x4271ee=await _0x131552[_0x25f189(0xaa)](getCloudProviderObject,_0x209a64,_0x4d7b1e['clusterName'],_0x4d7b1e[_0x25f189(0x136)],_0x85662b,webSocketUtils,_0x3f0ae8),_0x24956b=await _0x4271ee[_0x25f189(0x10d)]();if(_0x24956b){const _0x1a89a0=_0x131552[_0x25f189(0x10e)](kebabCase,_0x4d7b1e[_0x25f189(0x136)]),[_0x13a61e,_0x5f20fb,_0x5de193,_0x56a156,_0x24ab70,_0xd9e1bc]=await _0x131552[_0x25f189(0x132)](createK8sClient,_0x4271ee,_0x3f0ae8[_0x25f189(0xff)]);let _0x3cd454=!![];const _0x213f8c={};_0x213f8c['name']=_0x1a89a0,await _0x13a61e[_0x25f189(0xba)](_0x213f8c)['then'](_0xef68aa=>{const _0x505d43=_0x25f189;if(_0x131552[_0x505d43(0xb0)](_0x131552[_0x505d43(0xc9)],_0x131552['VDhbz']))logger[_0x505d43(0xb2)](_0x505d43(0xe2)+_0x1a89a0+_0x505d43(0x13e));else{const _0x4a1475={};_0x4a1475[_0x505d43(0xa2)]=_0x131552[_0x505d43(0xed)],_0x4a1475[_0x505d43(0xf1)]=_0x131552[_0x505d43(0xf2)];const _0x202f02={};_0x202f02[_0x505d43(0xa2)]=_0x131552[_0x505d43(0xf0)],_0x202f02[_0x505d43(0xf1)]=_0x131552['ZkbAp'],_0x202f02[_0x505d43(0x124)]=![];const _0x4125b4={};return _0x4125b4[_0x505d43(0xdd)]=_0x4a1475,_0x4125b4[_0x505d43(0xa9)]=_0x202f02,_0x3c3dbb['usage'](_0x444652['delete'])['epilogue'](_0x162561)['options'](_0x4125b4)[_0x505d43(0x128)](_0x131552[_0x505d43(0xf8)])['argv'];}})[_0x25f189(0x117)](_0x231723=>{const _0x15b7a5=_0x25f189;_0x131552['fhkEG'](_0x131552['YOSkF'],_0x131552[_0x15b7a5(0xc6)])?(logger[_0x15b7a5(0x12a)](_0x15b7a5(0xe2)+_0x1a89a0+_0x15b7a5(0xfb)),_0x3cd454=![]):(_0x26722b[_0x15b7a5(0xb2)](_0x131552[_0x15b7a5(0xd9)]),_0x5cbd3c[_0x15b7a5(0x106)](0x0));});if(_0x3cd454){await _0x131552[_0x25f189(0xec)](removeGridComponents,_0x13a61e,_0x5f20fb,_0x5de193,_0x56a156,_0x1a89a0);if(_0x420b7b[_0x25f189(0xee)]){const _0x1a21cd=await _0x4271ee[_0x25f189(0xd0)]();_0x1a21cd?_0x131552['hhblu'](_0x131552[_0x25f189(0xf6)],_0x131552[_0x25f189(0xaf)])?(_0x48b51e['error'](_0x131552[_0x25f189(0xcc)]),_0x3d1414['exit'](0x1)):await _0x4271ee[_0x25f189(0x10c)](_0x13a61e,_0x4d7b1e[_0x25f189(0x139)]):_0x131552['BACQf'](_0x131552['LKKIm'],_0x131552[_0x25f189(0x101)])?_0x4787d6['warn'](_0x131552[_0x25f189(0xca)]):logger[_0x25f189(0x12a)](_0x25f189(0xda)+_0x4d7b1e[_0x25f189(0x115)]+_0x25f189(0x122));}}}else logger[_0x25f189(0x12a)](_0x131552[_0x25f189(0xca)]);const _0x59c792=_0x25f189(0x112)+AG_API_URL+_0x25f189(0xa5)+_0x3f0ae8[_0x25f189(0x129)],_0x588183={'method':_0x131552[_0x25f189(0xfe)],'headers':_0x131552[_0x25f189(0x132)](getAuthHeader,_0x5bb664[_0x25f189(0xc5)]['username'],_0x5bb664[_0x25f189(0xc5)][_0x25f189(0xa0)]),'throwHttpErrors':![]},_0xd5400e=await _0x131552[_0x25f189(0x132)](got,_0x59c792,_0x588183);_0x131552[_0x25f189(0xc4)](_0xd5400e,null)&&_0x131552['ZMsLf'](_0xd5400e,undefined)&&_0x131552[_0x25f189(0xbe)](_0xd5400e['statusCode'],0xc8)&&(logger[_0x25f189(0xb2)](_0x131552['AiYfI']),process[_0x25f189(0x106)](0x0)),logger[_0x25f189(0xb5)](_0x25f189(0xf3)+_0xd5400e[_0x25f189(0x111)]),await _0x131552[_0x25f189(0xe4)](sendInstrumentationEvent,_0x3f0ae8,_0x131552['CtJzT'],messageTypes[_0x25f189(0xf7)],_0x131552['XKKFP'],_0x3e067b,_0x3f0ae8),process[_0x25f189(0x106)](0x1);}_0x131552[_0x25f189(0x11b)](_0x3e067b['statusCode'],0x191)&&(logger['error'](_0x131552[_0x25f189(0x126)]),await _0x131552[_0x25f189(0x10b)](sendInstrumentationEvent,_0x3f0ae8,_0x131552[_0x25f189(0x12d)],messageTypes['ERROR'],_0x131552[_0x25f189(0x11a)],null,_0x3f0ae8),process['exit'](0x1)),_0x131552['pwNlj'](_0x3e067b[_0x25f189(0xe5)],0x190)&&(logger[_0x25f189(0xb5)](JSON[_0x25f189(0xf9)](_0x3e067b['body'])[_0x25f189(0xcb)]),await _0x131552[_0x25f189(0xe4)](sendInstrumentationEvent,_0x3f0ae8,_0x131552[_0x25f189(0x12d)],messageTypes[_0x25f189(0xf7)],_0x131552[_0x25f189(0x10f)],null,_0x3f0ae8),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x25f189(0xd8)](_0x3e067b)),await _0x131552[_0x25f189(0xaa)](sendInstrumentationEvent,_0x3f0ae8,_0x131552[_0x25f189(0x12d)],messageTypes[_0x25f189(0xf7)],_0x131552[_0x25f189(0xb1)],_0x3e067b,_0x3f0ae8),process['exit'](0x1);}catch(_0xa44a86){logger[_0x25f189(0xb5)](_0x25f189(0xc7)+_0xa44a86[_0x25f189(0xd6)]),await _0x131552['CmMNc'](sendInstrumentationEvent,_0x3f0ae8,_0x131552[_0x25f189(0x12d)],messageTypes[_0x25f189(0xf7)],_0x131552[_0x25f189(0xbd)],_0xa44a86,_0x3f0ae8),process['exit'](0x1);}};function a11_0x5cfe(){const _0x2c5da8=['connectionTimeout','username','/packages/cli/grid/','bZnvE','26895520RPBcpe','1566iDweHd','skip-tls-cert-verify','sFoMN','replace','EbKFV','cloudProvider','WHYEy','ZVwyb','LkdvH','XKKFP','info','elwXV','../../cloudproviders/utils','error','RCGto','VoNfr','options','fucKm','readNamespace','JXvMv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JLVgk','pwNlj','Pass\x20the\x20ID\x20of\x20the\x20Grid','sZwYu','yqxRU','../../utils/gridComponents','Skip\x20insecure\x20cert\x20verification.','lmRKp','Browserstack','YOSkF','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','kBasG','Vmhvd','message','QKklA','CjyfB','clusterRegion','grid','isBrowserstackCluster','\x22\x20and\x20ID\x20','BACQf','\x22\x20with\x20ID\x20','qOHaG','desc','stack','1142771RGjhTg','stringify','AiYfI','Cluster:\x20','lrdND','toLowerCase','grid-id','828640LamfkD','jIdOd','invalid-input','../../config/logger','Namespace:\x20','423876dawJWp','NKXkK','statusCode','unknown-error','server-error','sEzlA','uAATf','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','mdUWC','OMaND','BFyGS','onlyGridInCluster','../../utils/instrumentationUtils','psnJN','type','iJoFQ','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Successfully\x20deleted\x20the\x20grid','boolean','ODtrm','ERROR','cBTKm','parse','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','zaxFC','delete','lQFJL','skipTlsCertVerify','IabLD','YMoxy','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','command','hsdEQ','clusterId','exit','epilogue','QIXaB','WebSocket','UAcZN','CmMNc','deleteCluster','isClusterPresent','VfPpI','UIarQ','6238686EdHEQN','body','https://','WgtLT','uuid','clusterName','YJgaO','catch','meMXh','usage','pezPm','mbTSR','existsSync','requestId','DELETE','<PasswordPlaceholder>','builder','PuChP','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','string','default','hzBsW','OPDQu','fhkEG','help','gridId','warn','AZJoI','isyhW','CtJzT','reconnecting-websocket','clusterSpawnedVia','uCPKs','../../utils/webSocketUtils','SGLQU','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','8375507XTEXRR','bKmHn','name','5564fXrKzq','YoySR','region','readFileSync','AwLZS','../../config/constants','init-not-called','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','../../utils/createk8sClient','MxHLq','delete-grid-called','rKDJQ','password','hhblu','description'];a11_0x5cfe=function(){return _0x2c5da8;};return a11_0x5cfe();}
1
+ const a11_0x583ffa=a11_0x26b4;(function(_0x12cd2f,_0x29bc2e){const _0x89a245=a11_0x26b4,_0x2f6fc9=_0x12cd2f();while(!![]){try{const _0x9deeda=-parseInt(_0x89a245(0x172))/0x1*(parseInt(_0x89a245(0x185))/0x2)+-parseInt(_0x89a245(0x15e))/0x3+parseInt(_0x89a245(0x16c))/0x4+-parseInt(_0x89a245(0x12e))/0x5*(parseInt(_0x89a245(0x110))/0x6)+-parseInt(_0x89a245(0xf6))/0x7+-parseInt(_0x89a245(0x159))/0x8*(-parseInt(_0x89a245(0x133))/0x9)+parseInt(_0x89a245(0x11d))/0xa;if(_0x9deeda===_0x29bc2e)break;else _0x2f6fc9['push'](_0x2f6fc9['shift']());}catch(_0x33fb01){_0x2f6fc9['push'](_0x2f6fc9['shift']());}}}(a11_0x3dd4,0x1fcb5));const fs=require('fs'),got=require(a11_0x583ffa(0x106)),{v4:uuidv4}=require(a11_0x583ffa(0x187)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x583ffa(0x118)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x583ffa(0xf7)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x583ffa(0x10c)),{sendInstrumentationEvent}=require(a11_0x583ffa(0x156)),{inputConfirmation}=require(a11_0x583ffa(0x113)),{createK8sClient}=require(a11_0x583ffa(0x18d)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x583ffa(0x152)),webSocketUtils=require('../../utils/webSocketUtils');function a11_0x3dd4(){const _0x167855=['../../utils/gridComponents','FUgMv','gIPoD','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','24lVBqny','options','wlWJQ','../../utils/userInput','Browserstack','password','SIgJv','kSujy','../../config/constants','<PasswordPlaceholder>','gSEnR','bItvr','isClusterPresent','2288350PeeDeK','QuJqd','KpTkE','Skip\x20insecure\x20cert\x20verification.','toLowerCase','zvawS','RZNhZ','parse','nhUbx','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','builder','stack','bYAwP','yBwlL','vtKgj','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','35855tAvByP','Failed\x20to\x20delete\x20resources!\x20Error:\x20','NXeVC','error','cbhNp','9iozvQT','xSpHe','Delete\x20an\x20Automation\x20grid.','INFO','qRQNj','readNamespace','grid','WebSocket','region','server-error','\x22\x20and\x20ID\x20','UqSUi','boolean','deleteCluster','string','wUwZY','adpAH','AfVjL','oRTlF','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qZQyk','GoOAT','then','\x22\x20with\x20ID\x20','lPOit','mrWZt','APlRU','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','delete-grid-called','argv','../../utils/utilityMethods','Unhsk','clusterSpawnedVia','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../utils/instrumentationUtils','delete','FbKEv','912368TPtBHs','DANUc','CbLFX','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','epilogue','185400JuTjeZ','OwOfW','WDUNO','gridId','type','ERROR','replace','rxfpK','help','unauthorised','ZHSRQ','Pass\x20the\x20ID\x20of\x20the\x20Grid','name','seLPm','395776jRoiuu','warn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','QjMhs','Namespace:\x20','skip-tls-cert-verify','2xpyZpF','LRWpP','vTyzs','cloudProvider','existsSync','invalid-grid-id','usage','onlyGridInCluster','isBrowserstackCluster','WKdly','YskJx','uVHdk','Ohspb','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','description','exit','clusterName','requestId','stringify','12170rRBhck','HEXmL','uuid','AYWgq','DXJAR','command','SMCUz','unknown-error','../../utils/createk8sClient','catch','gvTbg','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','uBjwn','QLJgO','fuAnk','Ugnaa','DELETE','1462594uaTxOv','../../cloudproviders/utils','HBgvp','llobk','Cluster:\x20','init-not-called','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','QUQEN','default','uGkNP','username','statusCode','/packages/cli/grid/','UGvTf','nYTbE','eTQcd','got','myHMN','clusterRegion','nfrvS','UlTuP','mooTT'];a11_0x3dd4=function(){return _0x167855;};return a11_0x3dd4();}function a11_0x26b4(_0x1bfd33,_0x51598e){const _0x3dd41e=a11_0x3dd4();return a11_0x26b4=function(_0x26b4c6,_0x289798){_0x26b4c6=_0x26b4c6-0xef;let _0x571ced=_0x3dd41e[_0x26b4c6];return _0x571ced;},a11_0x26b4(_0x1bfd33,_0x51598e);}exports[a11_0x583ffa(0x18a)]=a11_0x583ffa(0x139),exports['desc']=a11_0x583ffa(0x135),exports[a11_0x583ffa(0x127)]=function(_0x26cf87){const _0x226c2c=a11_0x583ffa,_0x1fd6e1={};_0x1fd6e1[_0x226c2c(0xf4)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x1fd6e1['UlTuP']=_0x226c2c(0x141),_0x1fd6e1[_0x226c2c(0x189)]=_0x226c2c(0x120),_0x1fd6e1[_0x226c2c(0x14c)]='boolean',_0x1fd6e1['mrZIo']=_0x226c2c(0x166);const _0x2e9193=_0x1fd6e1,_0x5a5d54={};_0x5a5d54['description']=_0x2e9193['Ugnaa'],_0x5a5d54[_0x226c2c(0x162)]=_0x2e9193[_0x226c2c(0x10a)];const _0x5c3122={};_0x5c3122[_0x226c2c(0x180)]=_0x2e9193[_0x226c2c(0x189)],_0x5c3122['type']=_0x2e9193[_0x226c2c(0x14c)],_0x5c3122[_0x226c2c(0xfe)]=![];const _0x83a9b6={};return _0x83a9b6['grid-id']=_0x5a5d54,_0x83a9b6['skip-tls-cert-verify']=_0x5c3122,_0x26cf87[_0x226c2c(0x178)](HELP_HEADER_MESSAGE['delete'])[_0x226c2c(0x15d)](HELP_FOOTER_MESSAGE)[_0x226c2c(0x111)](_0x83a9b6)[_0x226c2c(0x166)](_0x2e9193['mrZIo'])[_0x226c2c(0x151)];},exports['handler']=async function(_0x44e304){const _0x1450d9=a11_0x583ffa,_0x329403={'DANUc':'Successfully\x20deleted\x20the\x20grid','FbKEv':_0x1450d9(0x17f),'SIgJv':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','CbLFX':function(_0x2daee0,_0xe13ea){return _0x2daee0!==_0xe13ea;},'APlRU':'LxAcP','wUwZY':function(_0x4b3a0d,_0x95c9ea){return _0x4b3a0d===_0x95c9ea;},'uGkNP':'lciGb','rxfpK':_0x1450d9(0x17c),'nYTbE':_0x1450d9(0x169),'QuJqd':_0x1450d9(0x141),'cbhNp':_0x1450d9(0x120),'IKyDw':_0x1450d9(0x13f),'SMCUz':_0x1450d9(0x166),'seLPm':function(_0x1023e5){return _0x1023e5();},'QUQEN':function(_0x179aee,_0x2f4940){return _0x179aee!==_0x2f4940;},'PCpGM':_0x1450d9(0x105),'WPObQ':_0x1450d9(0x147),'GoOAT':function(_0x30de78,_0x5de093,_0x406b59,_0x2cae38,_0xdfb6b7,_0x2be214,_0x34ccc2){return _0x30de78(_0x5de093,_0x406b59,_0x2cae38,_0xdfb6b7,_0x2be214,_0x34ccc2);},'gIPoD':_0x1450d9(0x150),'uTxXr':_0x1450d9(0xfb),'uVHdk':function(_0x7d7a79,_0x78b403,_0x6ac604,_0x3b161d,_0x37cf3f,_0x4562a8,_0x5f38bf){return _0x7d7a79(_0x78b403,_0x6ac604,_0x3b161d,_0x37cf3f,_0x4562a8,_0x5f38bf);},'AfVjL':_0x1450d9(0x109),'igzIv':function(_0x3c71ea){return _0x3c71ea();},'WKdly':function(_0x3eb4d0,_0x527a91,_0x122ce7,_0x4e424c){return _0x3eb4d0(_0x527a91,_0x122ce7,_0x4e424c);},'gSEnR':_0x1450d9(0x114),'HBgvp':function(_0x1ff5cc,_0xa53af6){return _0x1ff5cc!==_0xa53af6;},'xSpHe':_0x1450d9(0x130),'myHMN':function(_0x21806c,_0x4c729b){return _0x21806c(_0x4c729b);},'QjMhs':function(_0x291afd,_0xe8f07){return _0x291afd===_0xe8f07;},'HEXmL':function(_0x2b73a3,_0x3e5b9f){return _0x2b73a3===_0x3e5b9f;},'bItvr':function(_0x32931f,_0x3c94e3){return _0x32931f!==_0x3c94e3;},'AYWgq':_0x1450d9(0x122),'nhUbx':_0x1450d9(0x15f),'CVPFF':_0x1450d9(0x14f),'mrWZt':function(_0x2d6928,_0x361d40,_0x1d7e0f,_0x33c823,_0x1cf8f3,_0x35e7a3,_0x592d47){return _0x2d6928(_0x361d40,_0x1d7e0f,_0x33c823,_0x1cf8f3,_0x35e7a3,_0x592d47);},'oRTlF':'invalid-input','wlWJQ':function(_0x5c1743,_0x3cff4d){return _0x5c1743===_0x3cff4d;},'UqSUi':function(_0x4a856f,_0x477c9c){return _0x4a856f!==_0x477c9c;},'KpTkE':_0x1450d9(0x174),'JlyBX':'<UsernamePlaceholder>','QLJgO':_0x1450d9(0x119),'GwQMH':function(_0x160d71,_0x1334aa){return _0x160d71(_0x1334aa);},'qRQNj':function(_0x48bc6b,_0x1c8bf6,_0x5b6484){return _0x48bc6b(_0x1c8bf6,_0x5b6484);},'Ohspb':function(_0x16c91e,_0x46e6db,_0x1344fe,_0x4550e6,_0x413d7d,_0x127821){return _0x16c91e(_0x46e6db,_0x1344fe,_0x4550e6,_0x413d7d,_0x127821);},'UGvTf':function(_0x3c3335,_0x3f22ce){return _0x3c3335===_0x3f22ce;},'adpAH':_0x1450d9(0x12a),'ZHSRQ':_0x1450d9(0x10d),'Unhsk':_0x1450d9(0x160),'uBjwn':_0x1450d9(0x12b),'kSujy':_0x1450d9(0xf5),'gvTbg':function(_0x8d1150,_0x3bf799,_0x426908){return _0x8d1150(_0x3bf799,_0x426908);},'LRWpP':function(_0x52e735,_0x29ef4f,_0x913137,_0x49902d,_0x4bfdcf,_0x44b940,_0x2aa6f1){return _0x52e735(_0x29ef4f,_0x913137,_0x49902d,_0x4bfdcf,_0x44b940,_0x2aa6f1);},'qZQyk':_0x1450d9(0x13c),'RZNhZ':function(_0x127406,_0x22dec6){return _0x127406===_0x22dec6;},'bYAwP':_0x1450d9(0x12d),'llobk':_0x1450d9(0x167),'qiPzc':function(_0x508c13,_0x5bc353){return _0x508c13===_0x5bc353;},'mooTT':_0x1450d9(0x177),'LNmER':function(_0x1269a2,_0x227ae3,_0x193aac,_0xb204c3,_0x367b88,_0x4838d4,_0x30a317){return _0x1269a2(_0x227ae3,_0x193aac,_0xb204c3,_0x367b88,_0x4838d4,_0x30a317);},'fuAnk':_0x1450d9(0x18c)};try{global_registry[_0x1450d9(0x183)]=_0x329403[_0x1450d9(0x16b)](uuidv4);!fs[_0x1450d9(0x176)](_0x329403[_0x1450d9(0x16b)](getCredentialsPath))&&(_0x329403[_0x1450d9(0xfd)](_0x329403['PCpGM'],_0x329403['PCpGM'])?_0x219fb2[_0x1450d9(0x12c)]('Namespace:\x20'+_0x29855a+_0x1450d9(0x16e)):(console['error'](_0x329403['WPObQ']),await _0x329403[_0x1450d9(0x149)](sendInstrumentationEvent,_0x44e304,_0x329403['gIPoD'],messageTypes['ERROR'],_0x329403['uTxXr'],null,_0x44e304),process[_0x1450d9(0x181)](0x1)));_0x329403[_0x1450d9(0x17d)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x136)],null,null,_0x44e304);!_0x44e304[_0x1450d9(0x161)]&&(_0x329403[_0x1450d9(0x15b)](_0x329403[_0x1450d9(0x144)],_0x329403[_0x1450d9(0x144)])?(_0x1fc282[_0x1450d9(0x12c)](_0x329403['DANUc']),_0x6c3d3[_0x1450d9(0x181)](0x0)):(console[_0x1450d9(0x131)](_0x329403[_0x1450d9(0x158)]),process[_0x1450d9(0x181)](0x1)));const _0x3fae2a=JSON['parse'](fs['readFileSync'](_0x329403['igzIv'](getCredentialsPath))),[_0x32ca74,_0x43e84b]=await _0x329403[_0x1450d9(0x17b)](getGridDetails,_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x100)],_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x115)],_0x44e304[_0x1450d9(0x161)]);if(_0x43e84b){const _0x45a221=_0x43e84b['info'];let _0x3be8e5=_0x1450d9(0xf0)+_0x45a221[_0x1450d9(0x16a)]+_0x1450d9(0x13d)+_0x45a221['id']+_0x1450d9(0x126);_0x43e84b[_0x1450d9(0x179)]&&_0x329403[_0x1450d9(0x142)](_0x43e84b[_0x1450d9(0x154)],_0x329403[_0x1450d9(0x11a)])&&(_0x329403[_0x1450d9(0xf8)](_0x329403[_0x1450d9(0x134)],_0x329403[_0x1450d9(0x134)])?(_0x5d7d6f['error'](_0x329403[_0x1450d9(0x158)]),_0x9fa72a[_0x1450d9(0x181)](0x1)):_0x3be8e5=_0x1450d9(0xf0)+_0x45a221[_0x1450d9(0x16a)]+_0x1450d9(0x13d)+_0x45a221['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x45a221[_0x1450d9(0x182)]+_0x1450d9(0x14b)+_0x45a221['clusterId']+_0x1450d9(0x126));const _0x295338=await _0x329403[_0x1450d9(0x107)](inputConfirmation,_0x3be8e5);(_0x329403[_0x1450d9(0x16f)](_0x295338,undefined)||_0x329403['wUwZY'](_0x295338,null)||!(_0x329403[_0x1450d9(0x186)](_0x295338[_0x1450d9(0x121)](),'y')||_0x329403[_0x1450d9(0x186)](_0x295338[_0x1450d9(0x121)](),'n')))&&(_0x329403[_0x1450d9(0x11b)](_0x329403[_0x1450d9(0x188)],_0x329403[_0x1450d9(0x125)])?(console[_0x1450d9(0x131)](_0x329403['CVPFF']),await _0x329403[_0x1450d9(0x14d)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0x145)],null,_0x44e304),process[_0x1450d9(0x181)](0x1)):_0x4a489e[_0x1450d9(0x16d)](_0x329403[_0x1450d9(0x116)]));_0x329403[_0x1450d9(0x112)](_0x295338[_0x1450d9(0x121)](),'n')&&(_0x329403[_0x1450d9(0x13e)](_0x329403[_0x1450d9(0x11f)],_0x329403['KpTkE'])?(_0x3a6c03[_0x1450d9(0x16d)](_0x1450d9(0x170)+_0xa9b85a+_0x1450d9(0x10f)),_0x34efb7=![]):process[_0x1450d9(0x181)](0x0));const _0x3d53ee=WS_ENDPOINT[_0x1450d9(0x164)](_0x329403['JlyBX'],_0x3fae2a['Browserstack'][_0x1450d9(0x100)])['replace'](_0x329403[_0x1450d9(0xf2)],_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x115)]),_0x361ed8={};_0x361ed8[_0x1450d9(0x13a)]=ws,_0x361ed8['connectionTimeout']=0x36ee80;const _0x37ba7e=new ReconnectingWebSocket(_0x3d53ee,[],_0x361ed8);global_registry[_0x1450d9(0x108)]=_0x45a221[_0x1450d9(0x13b)];const _0x542e8e=_0x45a221[_0x1450d9(0x175)],_0x30f756=await _0x329403[_0x1450d9(0x149)](getCloudProviderObject,_0x542e8e,_0x45a221['clusterName'],_0x45a221[_0x1450d9(0x16a)],_0x37ba7e,webSocketUtils,_0x44e304),_0x54f407=await _0x30f756[_0x1450d9(0x11c)]();if(_0x54f407){const _0x18eb9a=_0x329403['GwQMH'](kebabCase,_0x45a221[_0x1450d9(0x16a)]),[_0xb138ad,_0xb9636b,_0x34e34b,_0x21e3ed,_0x257012,_0x23b528]=await _0x329403[_0x1450d9(0x137)](createK8sClient,_0x30f756,_0x44e304['skipTlsCertVerify']);let _0x27564a=!![];const _0x42b1cd={};_0x42b1cd[_0x1450d9(0x16a)]=_0x18eb9a,await _0xb138ad[_0x1450d9(0x138)](_0x42b1cd)[_0x1450d9(0x14a)](_0x7e5f6b=>{const _0xcb5d7a=_0x1450d9;_0x329403[_0xcb5d7a(0x15b)](_0x329403[_0xcb5d7a(0x14e)],_0x329403['APlRU'])?_0x572984['exit'](0x0):logger[_0xcb5d7a(0x12c)](_0xcb5d7a(0x170)+_0x18eb9a+_0xcb5d7a(0x16e));})[_0x1450d9(0x18e)](_0x2e00a8=>{const _0x5dcea1=_0x1450d9;_0x329403[_0x5dcea1(0x142)](_0x329403[_0x5dcea1(0xff)],_0x329403[_0x5dcea1(0x165)])?_0xf6c574['warn'](_0x5dcea1(0xfa)+_0x4f812e[_0x5dcea1(0x182)]+_0x5dcea1(0x15c)):(logger['warn'](_0x5dcea1(0x170)+_0x18eb9a+_0x5dcea1(0x10f)),_0x27564a=![]);});if(_0x27564a){await _0x329403[_0x1450d9(0x17e)](removeGridComponents,_0xb138ad,_0xb9636b,_0x34e34b,_0x21e3ed,_0x18eb9a);if(_0x43e84b[_0x1450d9(0x179)]){const _0x37da6d=await _0x30f756[_0x1450d9(0x17a)]();if(_0x37da6d){if(_0x329403[_0x1450d9(0x103)](_0x329403[_0x1450d9(0x143)],_0x329403[_0x1450d9(0x168)])){const _0x2f06f4={};_0x2f06f4[_0x1450d9(0x180)]=_0x329403[_0x1450d9(0x104)],_0x2f06f4['type']=_0x329403[_0x1450d9(0x11e)];const _0x56a431={};_0x56a431[_0x1450d9(0x180)]=_0x329403[_0x1450d9(0x132)],_0x56a431[_0x1450d9(0x162)]=_0x329403['IKyDw'],_0x56a431[_0x1450d9(0xfe)]=![];const _0x5dc98f={};return _0x5dc98f['grid-id']=_0x2f06f4,_0x5dc98f[_0x1450d9(0x171)]=_0x56a431,_0x36f0c6[_0x1450d9(0x178)](_0x385a93[_0x1450d9(0x157)])[_0x1450d9(0x15d)](_0x258b4d)[_0x1450d9(0x111)](_0x5dc98f)[_0x1450d9(0x166)](_0x329403[_0x1450d9(0x18b)])[_0x1450d9(0x151)];}else await _0x30f756[_0x1450d9(0x140)](_0xb138ad,_0x45a221[_0x1450d9(0x13b)]);}else _0x329403['HEXmL'](_0x329403[_0x1450d9(0x153)],_0x329403[_0x1450d9(0xf1)])?_0x297d1b=_0x1450d9(0xf0)+_0x315cc6['name']+_0x1450d9(0x13d)+_0x3dca4f['id']+_0x1450d9(0x155)+_0xbf35e3[_0x1450d9(0x182)]+_0x1450d9(0x14b)+_0x41c522['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':logger[_0x1450d9(0x16d)](_0x1450d9(0xfa)+_0x45a221[_0x1450d9(0x182)]+_0x1450d9(0x15c));}}}else logger['warn'](_0x329403['SIgJv']);const _0x49da12='https://'+AG_API_URL+_0x1450d9(0x102)+_0x44e304[_0x1450d9(0x161)],_0x1d51b6={'method':_0x329403[_0x1450d9(0x117)],'headers':_0x329403[_0x1450d9(0x137)](getAuthHeader,_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x100)],_0x3fae2a[_0x1450d9(0x114)]['password']),'throwHttpErrors':![]},_0x2884a3=await _0x329403[_0x1450d9(0xef)](got,_0x49da12,_0x1d51b6);_0x329403['CbLFX'](_0x2884a3,null)&&_0x329403[_0x1450d9(0xf8)](_0x2884a3,undefined)&&_0x329403[_0x1450d9(0x186)](_0x2884a3[_0x1450d9(0x101)],0xc8)&&(logger['info'](_0x329403[_0x1450d9(0x15a)]),process[_0x1450d9(0x181)](0x0)),logger[_0x1450d9(0x131)](_0x1450d9(0xfc)+_0x2884a3['body']),await _0x329403[_0x1450d9(0x173)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0x148)],_0x32ca74,_0x44e304),process[_0x1450d9(0x181)](0x1);}_0x329403[_0x1450d9(0x123)](_0x32ca74['statusCode'],0x191)&&(logger[_0x1450d9(0x131)](_0x329403[_0x1450d9(0x129)]),await _0x329403[_0x1450d9(0x17d)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes['ERROR'],_0x329403[_0x1450d9(0xf9)],null,_0x44e304),process[_0x1450d9(0x181)](0x1)),_0x329403['qiPzc'](_0x32ca74[_0x1450d9(0x101)],0x190)&&(logger[_0x1450d9(0x131)](JSON[_0x1450d9(0x124)](_0x32ca74['body'])['message']),await _0x329403[_0x1450d9(0x17d)](sendInstrumentationEvent,_0x44e304,_0x329403['gIPoD'],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0x10b)],null,_0x44e304),process[_0x1450d9(0x181)](0x1)),logger[_0x1450d9(0x131)](_0x1450d9(0x146)+JSON[_0x1450d9(0x184)](_0x32ca74)),await _0x329403['LRWpP'](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x163)],_0x329403['qZQyk'],_0x32ca74,_0x44e304),process[_0x1450d9(0x181)](0x1);}catch(_0x15617f){logger[_0x1450d9(0x131)](_0x1450d9(0x12f)+_0x15617f[_0x1450d9(0x128)]),await _0x329403['LNmER'](sendInstrumentationEvent,_0x44e304,_0x329403['gIPoD'],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0xf3)],_0x15617f,_0x44e304),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a12_0x4615(){const _0x4b90d5=['handler','description','BROWSERSTACK_USERNAME','IUsdq','wzoVq','MYMUg','type','MkPXf','GyPLB','util','BROWSERSTACK_ACCESS_KEY','GET','utf-8','tITiv','lvvUw','gaYZU','Tchom','PSoZP','rDhnL','TPKMp','../utils/instrumentationUtils','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Browserstack','2691952YmZdUp','kMQKf','2927972cDUBRp','foJjQ','string','init-called','argv','yPmMb','https://','bstack-username','BIhNv','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','readFileSync','FQOgv','../config/logger','pmlfG','strict','iVIpP','35vlVOBt','uuid','20745423BDvKZe','../utils/userInput','nnKPi','builder','ipzoB','ehdGK','3706611vKfHVa','hjDQp','env','parse','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','help','fUoIq','QwvyL','RIGMT','recommendCommands','rAvot','ERROR','2DhBgOu','epilogue','usage','tcgmI','zkTSd','INFO','username','DDoJd','dXmSc','DhLgR','EvdFu','XjuwQ','statusCode','command','DnNwp','init','bstack-accesskey','unknown-error','desc','mkdirSync','RGjnD','exit','XRIMl','DqapP','jGmJj','nNxEW','stringify','5805000gFoKyK','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/constants','existsSync','ICIGY','dJiDb','password','698923fSkCff','1261518THLxtV','../utils/utilityMethods','bstackUsername','tLwMR','writeFileSync','PsbUF','ZMDwu','CAvlj','bstackAccesskey','TvlPm','/automate/plan.json','OJPkb','error','stack','debug'];a12_0x4615=function(){return _0x4b90d5;};return a12_0x4615();}const a12_0xe127d0=a12_0x4331;(function(_0x49976b,_0x447547){const _0x2cdc8e=a12_0x4331,_0x47e78e=_0x49976b();while(!![]){try{const _0x3d4868=-parseInt(_0x2cdc8e(0x22d))/0x1+-parseInt(_0x2cdc8e(0x20b))/0x2*(parseInt(_0x2cdc8e(0x1ff))/0x3)+parseInt(_0x2cdc8e(0x256))/0x4+parseInt(_0x2cdc8e(0x226))/0x5+parseInt(_0x2cdc8e(0x22e))/0x6*(-parseInt(_0x2cdc8e(0x1f7))/0x7)+-parseInt(_0x2cdc8e(0x254))/0x8+parseInt(_0x2cdc8e(0x1f9))/0x9;if(_0x3d4868===_0x447547)break;else _0x47e78e['push'](_0x47e78e['shift']());}catch(_0xab5e00){_0x47e78e['push'](_0x47e78e['shift']());}}}(a12_0x4615,0xd5d2d));const fs=require('fs'),util=require(a12_0xe127d0(0x246)),got=require('got'),{v4:uuidv4}=require(a12_0xe127d0(0x1f8)),{logger}=require(a12_0xe127d0(0x1f3)),{inputBstackKeys}=require(a12_0xe127d0(0x1fa)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0xe127d0(0x228)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0xe127d0(0x22f)),{sendInstrumentationEvent}=require(a12_0xe127d0(0x251));function a12_0x4331(_0x1d79a9,_0x51ab18){const _0x461504=a12_0x4615();return a12_0x4331=function(_0x433199,_0x10ba29){_0x433199=_0x433199-0x1ed;let _0x41007c=_0x461504[_0x433199];return _0x41007c;},a12_0x4331(_0x1d79a9,_0x51ab18);}exports[a12_0xe127d0(0x218)]=a12_0xe127d0(0x21a),exports[a12_0xe127d0(0x21d)]=a12_0xe127d0(0x203),exports[a12_0xe127d0(0x1fc)]=function(_0x181346){const _0xa0a748=a12_0xe127d0,_0x506619={};_0x506619[_0xa0a748(0x212)]=_0xa0a748(0x227),_0x506619['MYMUg']=_0xa0a748(0x258),_0x506619['foJjQ']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x506619[_0xa0a748(0x214)]=_0xa0a748(0x204);const _0x1720ad=_0x506619,_0x1630c8={};_0x1630c8[_0xa0a748(0x23e)]=_0x1720ad[_0xa0a748(0x212)],_0x1630c8[_0xa0a748(0x243)]=_0x1720ad[_0xa0a748(0x242)];const _0xf1905a={};_0xf1905a[_0xa0a748(0x23e)]=_0x1720ad[_0xa0a748(0x257)],_0xf1905a[_0xa0a748(0x243)]=_0x1720ad[_0xa0a748(0x242)];const _0x511851={};return _0x511851[_0xa0a748(0x1ee)]=_0x1630c8,_0x511851[_0xa0a748(0x21b)]=_0xf1905a,_0x181346[_0xa0a748(0x20d)](HELP_HEADER_MESSAGE[_0xa0a748(0x21a)])[_0xa0a748(0x20c)](HELP_FOOTER_MESSAGE)['options'](_0x511851)[_0xa0a748(0x208)]()[_0xa0a748(0x1f5)]()[_0xa0a748(0x204)](_0x1720ad[_0xa0a748(0x214)])[_0xa0a748(0x25a)];},exports[a12_0xe127d0(0x23d)]=async function(_0x43924f){const _0x3ab7f4=a12_0xe127d0,_0x41cdd5={'kMQKf':_0x3ab7f4(0x227),'CAvlj':_0x3ab7f4(0x258),'EvdFu':_0x3ab7f4(0x1f0),'rDhnL':'help','kmTEH':function(_0x2e61c0){return _0x2e61c0();},'GyPLB':_0x3ab7f4(0x249),'ZMDwu':function(_0x10a05f){return _0x10a05f();},'tITiv':function(_0x573db8,_0x109c03,_0x7a1901,_0x3f911c,_0x2a3e2a,_0x5b17dd,_0x532d82){return _0x573db8(_0x109c03,_0x7a1901,_0x3f911c,_0x2a3e2a,_0x5b17dd,_0x532d82);},'jGmJj':_0x3ab7f4(0x259),'ipzoB':function(_0xd099a8){return _0xd099a8();},'zkTSd':function(_0x39ab4c,_0x303e42){return _0x39ab4c===_0x303e42;},'kArNv':_0x3ab7f4(0x1f2),'Tchom':_0x3ab7f4(0x209),'yPmMb':function(_0xbfe685,_0xead6d2){return _0xbfe685===_0xead6d2;},'BIhNv':_0x3ab7f4(0x20e),'fUoIq':function(_0x37a4ef,_0x3cc0b6){return _0x37a4ef===_0x3cc0b6;},'hjDQp':_0x3ab7f4(0x250),'eoIdz':_0x3ab7f4(0x224),'dXmSc':function(_0x417cdd,_0x43f950){return _0x417cdd!==_0x43f950;},'QQemc':_0x3ab7f4(0x239),'ehdGK':_0x3ab7f4(0x207),'tLwMR':function(_0x3cdd71,_0x4d3019){return _0x3cdd71===_0x4d3019;},'iVIpP':_0x3ab7f4(0x216),'CXUHn':function(_0x29f671,_0x285c4f){return _0x29f671===_0x285c4f;},'DqapP':_0x3ab7f4(0x22b),'IUsdq':_0x3ab7f4(0x252),'TvlPm':function(_0x1b7d88){return _0x1b7d88();},'KlwkM':_0x3ab7f4(0x248),'ICIGY':function(_0xed580b,_0x18671f,_0x448475){return _0xed580b(_0x18671f,_0x448475);},'nnKPi':function(_0x2bd445,_0x387899,_0x46fb45){return _0x2bd445(_0x387899,_0x46fb45);},'RGjnD':function(_0x4243ff,_0x210854){return _0x4243ff!==_0x210854;},'XRIMl':function(_0x47cbc7,_0x40f022){return _0x47cbc7===_0x40f022;},'pmlfG':_0x3ab7f4(0x24c),'jrHbI':function(_0x5ec344,_0xfa3d7f){return _0x5ec344!==_0xfa3d7f;},'wzoVq':'ulqgg','PSoZP':function(_0x975723,_0x24fddb){return _0x975723!==_0x24fddb;},'PsbUF':'fDOUH','vkFPB':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','DnNwp':function(_0x1177f6,_0x351cdd,_0x4abd0c,_0x5d5bf5,_0x1fbbcb,_0xbb1b88,_0x90caf7){return _0x1177f6(_0x351cdd,_0x4abd0c,_0x5d5bf5,_0x1fbbcb,_0xbb1b88,_0x90caf7);},'MkPXf':'wrong-creds','QwvyL':function(_0x1f9d6a,_0x3593ba,_0x56145,_0x46e67b,_0x1560a5,_0x35bdf3,_0x40f8a5){return _0x1f9d6a(_0x3593ba,_0x56145,_0x46e67b,_0x1560a5,_0x35bdf3,_0x40f8a5);},'lvvUw':_0x3ab7f4(0x21c)};try{global_registry['requestId']=_0x41cdd5[_0x3ab7f4(0x234)](uuidv4),_0x41cdd5[_0x3ab7f4(0x24a)](sendInstrumentationEvent,_0x43924f,_0x41cdd5[_0x3ab7f4(0x223)],messageTypes[_0x3ab7f4(0x210)],null,null,_0x43924f);const _0x4401fa=_0x41cdd5[_0x3ab7f4(0x1fd)](getDirForConfig);!fs[_0x3ab7f4(0x229)](_0x4401fa)&&(_0x41cdd5[_0x3ab7f4(0x20f)](_0x41cdd5['kArNv'],_0x41cdd5[_0x3ab7f4(0x24d)])?_0x221576=_0x5501d7['bstackAccesskey']:fs[_0x3ab7f4(0x21e)](_0x4401fa));let _0x283626,_0x473dca;if(process[_0x3ab7f4(0x201)][_0x3ab7f4(0x23f)]){if(_0x41cdd5[_0x3ab7f4(0x25b)](_0x41cdd5[_0x3ab7f4(0x1ef)],_0x41cdd5[_0x3ab7f4(0x1ef)]))_0x283626=process[_0x3ab7f4(0x201)][_0x3ab7f4(0x23f)];else{const _0x486d56={};_0x486d56[_0x3ab7f4(0x23e)]=_0x41cdd5[_0x3ab7f4(0x255)],_0x486d56['type']=_0x41cdd5[_0x3ab7f4(0x235)];const _0x4f1d43={};_0x4f1d43['description']=_0x41cdd5[_0x3ab7f4(0x215)],_0x4f1d43[_0x3ab7f4(0x243)]=_0x41cdd5[_0x3ab7f4(0x235)];const _0xc1463c={};return _0xc1463c[_0x3ab7f4(0x1ee)]=_0x486d56,_0xc1463c[_0x3ab7f4(0x21b)]=_0x4f1d43,_0x887ad1[_0x3ab7f4(0x20d)](_0xa61d7c['init'])[_0x3ab7f4(0x20c)](_0x21dc27)['options'](_0xc1463c)[_0x3ab7f4(0x208)]()['strict']()[_0x3ab7f4(0x204)](_0x41cdd5[_0x3ab7f4(0x24f)])[_0x3ab7f4(0x25a)];}}if(process[_0x3ab7f4(0x201)][_0x3ab7f4(0x247)]){if(_0x41cdd5[_0x3ab7f4(0x205)](_0x41cdd5[_0x3ab7f4(0x200)],_0x41cdd5['eoIdz'])){let _0x29c12b={};const _0x1aacb5=_0x41cdd5['kmTEH'](_0x34398b);_0x11a7ec[_0x3ab7f4(0x229)](_0x1aacb5)&&(_0x29c12b=_0x550de0[_0x3ab7f4(0x202)](_0x334eee['readFileSync'](_0x1aacb5,_0x41cdd5[_0x3ab7f4(0x245)])));const _0x204f30={};_0x204f30[_0x3ab7f4(0x211)]=_0x38b80d,_0x204f30['password']=_0x390d05,_0x29c12b[_0x3ab7f4(0x253)]=_0x204f30,_0x14ae0f[_0x3ab7f4(0x232)](_0x1aacb5,_0x1d2700[_0x3ab7f4(0x225)](_0x29c12b)),_0x3e6ed2[_0x3ab7f4(0x220)](0x0);}else _0x473dca=process[_0x3ab7f4(0x201)][_0x3ab7f4(0x247)];}_0x43924f[_0x3ab7f4(0x230)]&&(_0x41cdd5[_0x3ab7f4(0x213)](_0x41cdd5['QQemc'],_0x41cdd5[_0x3ab7f4(0x1fe)])?_0x283626=_0x43924f[_0x3ab7f4(0x230)]:_0x4d5115=_0x38a1d0['env']['BROWSERSTACK_USERNAME']);_0x43924f['bstackAccesskey']&&(_0x41cdd5['tLwMR'](_0x41cdd5[_0x3ab7f4(0x1f6)],_0x41cdd5['iVIpP'])?_0x473dca=_0x43924f[_0x3ab7f4(0x236)]:_0x55736c[_0x3ab7f4(0x21e)](_0xe4cef2));if(_0x41cdd5['CXUHn'](_0x283626,undefined)||_0x41cdd5[_0x3ab7f4(0x20f)](_0x473dca,undefined)){if(_0x41cdd5[_0x3ab7f4(0x213)](_0x41cdd5[_0x3ab7f4(0x222)],_0x41cdd5[_0x3ab7f4(0x222)]))_0x3ce2eb=_0x56b642[_0x3ab7f4(0x202)](_0x48f615[_0x3ab7f4(0x1f1)](_0xfb62c8,_0x41cdd5[_0x3ab7f4(0x245)]));else{logger[_0x3ab7f4(0x23c)](_0x41cdd5[_0x3ab7f4(0x240)]);const [_0x20329c,_0x203b1c]=await _0x41cdd5[_0x3ab7f4(0x237)](inputBstackKeys);_0x283626=_0x20329c,_0x473dca=_0x203b1c;}}let _0x4ba442=![];const _0x388bcb=_0x3ab7f4(0x1ed)+_0x283626+':'+_0x473dca+'@'+BS_API_URL+_0x3ab7f4(0x238),_0x337fc1={'method':_0x41cdd5['KlwkM'],'headers':_0x41cdd5[_0x3ab7f4(0x22a)](getAuthHeader,_0x283626,_0x473dca),'throwHttpErrors':![]},_0xa54b04=await _0x41cdd5[_0x3ab7f4(0x1fb)](got,_0x388bcb,_0x337fc1);_0x41cdd5[_0x3ab7f4(0x213)](_0xa54b04,null)&&_0x41cdd5[_0x3ab7f4(0x21f)](_0xa54b04,undefined)&&_0x41cdd5[_0x3ab7f4(0x231)](_0xa54b04[_0x3ab7f4(0x217)],0xc8)&&(_0x41cdd5[_0x3ab7f4(0x221)](_0x41cdd5[_0x3ab7f4(0x1f4)],_0x41cdd5[_0x3ab7f4(0x1f4)])?_0x4ba442=!![]:_0x4c4518=_0x5b3b8a[_0x3ab7f4(0x201)][_0x3ab7f4(0x247)]);if(_0x4ba442){if(_0x41cdd5['jrHbI'](_0x41cdd5['wzoVq'],_0x41cdd5[_0x3ab7f4(0x241)]))_0x1f882f=_0xa488f9[_0x3ab7f4(0x230)];else{let _0x1a5a9b={};const _0x12f7e6=_0x41cdd5[_0x3ab7f4(0x234)](getCredentialsPath);fs[_0x3ab7f4(0x229)](_0x12f7e6)&&(_0x41cdd5[_0x3ab7f4(0x24e)](_0x41cdd5[_0x3ab7f4(0x233)],_0x41cdd5[_0x3ab7f4(0x233)])?_0x4e7585=!![]:_0x1a5a9b=JSON[_0x3ab7f4(0x202)](fs[_0x3ab7f4(0x1f1)](_0x12f7e6,_0x41cdd5[_0x3ab7f4(0x245)])));const _0x5590a4={};_0x5590a4[_0x3ab7f4(0x211)]=_0x283626,_0x5590a4[_0x3ab7f4(0x22c)]=_0x473dca,_0x1a5a9b[_0x3ab7f4(0x253)]=_0x5590a4,fs[_0x3ab7f4(0x232)](_0x12f7e6,JSON[_0x3ab7f4(0x225)](_0x1a5a9b)),process['exit'](0x0);}}else logger[_0x3ab7f4(0x23a)](_0x41cdd5['vkFPB']),await _0x41cdd5[_0x3ab7f4(0x219)](sendInstrumentationEvent,_0x43924f,_0x41cdd5[_0x3ab7f4(0x223)],messageTypes['ERROR'],_0x41cdd5[_0x3ab7f4(0x244)],null,_0x43924f),process[_0x3ab7f4(0x220)](0x1);}catch(_0x2c7910){logger['error'](_0x2c7910[_0x3ab7f4(0x23b)]),await _0x41cdd5[_0x3ab7f4(0x206)](sendInstrumentationEvent,_0x43924f,_0x41cdd5['jGmJj'],messageTypes[_0x3ab7f4(0x20a)],_0x41cdd5[_0x3ab7f4(0x24b)],_0x2c7910,_0x43924f),process[_0x3ab7f4(0x220)](0x1);}};
1
+ function a12_0x15e4(_0x1e48c0,_0x214d93){const _0x3f6a8e=a12_0x3f6a();return a12_0x15e4=function(_0x15e457,_0x2c9f00){_0x15e457=_0x15e457-0xff;let _0x371c21=_0x3f6a8e[_0x15e457];return _0x371c21;},a12_0x15e4(_0x1e48c0,_0x214d93);}const a12_0x39cc98=a12_0x15e4;(function(_0x3f0593,_0x5d3345){const _0x4b0f91=a12_0x15e4,_0x9b7f61=_0x3f0593();while(!![]){try{const _0x32a4a2=-parseInt(_0x4b0f91(0x14e))/0x1+parseInt(_0x4b0f91(0x127))/0x2*(parseInt(_0x4b0f91(0x126))/0x3)+parseInt(_0x4b0f91(0x139))/0x4+-parseInt(_0x4b0f91(0x14f))/0x5+-parseInt(_0x4b0f91(0x159))/0x6+-parseInt(_0x4b0f91(0x153))/0x7*(parseInt(_0x4b0f91(0x129))/0x8)+parseInt(_0x4b0f91(0x141))/0x9;if(_0x32a4a2===_0x5d3345)break;else _0x9b7f61['push'](_0x9b7f61['shift']());}catch(_0x140a19){_0x9b7f61['push'](_0x9b7f61['shift']());}}}(a12_0x3f6a,0x33fad));function a12_0x3f6a(){const _0x82a00a=['Pidim','1366086jJRFDF','type','/automate/plan.json','init-called','strict','epilogue','command','IpjkN','mIRIY','pMOKA','stack','parse','../utils/userInput','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','TwQLz','aaVYb','usage','FVpGs','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','BROWSERSTACK_USERNAME','ZutqR','bstack-username','mkdirSync','DEUvO','EPyMr','help','IZQmv','DeVHc','recommendCommands','exit','oUBtc','init','writeFileSync','YWVre','PgttL','password','SDruq','bstack-accesskey','gosoY','../config/logger','utf-8','../config/constants','got','error','INtGa','AMvsU','wdQFZ','KNOjz','string','GRFnK','EGQto','UxyhD','zyknA','INFO','gHSkg','mivTt','87VBrXDD','11742SFoEra','../utils/utilityMethods','523408RjfHOs','jbxHr','NgmGE','ERROR','env','readFileSync','tDFQJ','diZxo','PvRSw','IsjHc','builder','requestId','vgALw','stringify','aoMuf','Browserstack','502960uXjxxm','argv','bstackUsername','mABoo','LPZdk','ChjsO','bstackAccesskey','EhbLy','10096038ecplaZ','description','https://','MSWHf','LSjtm','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','rJeTG','options','GET','username','aQqlY','wYBxz','wrong-creds','194795vzOqOb','1949200alSlal','gWsGU','XvFaC','BROWSERSTACK_ACCESS_KEY','42muXAzB','jbUNq','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','existsSync','handler'];a12_0x3f6a=function(){return _0x82a00a;};return a12_0x3f6a();}const fs=require('fs'),util=require('util'),got=require(a12_0x39cc98(0x118)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x39cc98(0x115)),{inputBstackKeys}=require(a12_0x39cc98(0x165)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x39cc98(0x117)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x39cc98(0x128)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x39cc98(0x15f)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x39cc98(0x133)]=function(_0x3e4d86){const _0x40b6fb=a12_0x39cc98,_0x575ad5={};_0x575ad5[_0x40b6fb(0x11c)]=_0x40b6fb(0x146),_0x575ad5[_0x40b6fb(0x112)]='string',_0x575ad5[_0x40b6fb(0x161)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x575ad5[_0x40b6fb(0x12b)]='help';const _0x2ca4b1=_0x575ad5,_0x443ec3={};_0x443ec3[_0x40b6fb(0x142)]=_0x2ca4b1['wdQFZ'],_0x443ec3['type']=_0x2ca4b1[_0x40b6fb(0x112)];const _0x195a43={};_0x195a43[_0x40b6fb(0x142)]=_0x2ca4b1[_0x40b6fb(0x161)],_0x195a43['type']=_0x2ca4b1[_0x40b6fb(0x112)];const _0x3bf588={};return _0x3bf588['bstack-username']=_0x443ec3,_0x3bf588['bstack-accesskey']=_0x195a43,_0x3e4d86[_0x40b6fb(0x169)](HELP_HEADER_MESSAGE[_0x40b6fb(0x10d)])[_0x40b6fb(0x15e)](HELP_FOOTER_MESSAGE)[_0x40b6fb(0x148)](_0x3bf588)[_0x40b6fb(0x10a)]()['strict']()[_0x40b6fb(0x107)](_0x2ca4b1['NgmGE'])[_0x40b6fb(0x13a)];},exports[a12_0x39cc98(0x157)]=async function(_0x5a39ff){const _0x2cf0db=a12_0x39cc98,_0x12401b={'TwQLz':_0x2cf0db(0x116),'EhbLy':function(_0x1f4147){return _0x1f4147();},'xPuWA':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','EPyMr':_0x2cf0db(0x11e),'XvFaC':_0x2cf0db(0x166),'MSWHf':_0x2cf0db(0x107),'LPZdk':function(_0x9e04f2,_0x3dafcc,_0x1c3bbc,_0x51ebed,_0x54fea1,_0x3a0400,_0x3d4a66){return _0x9e04f2(_0x3dafcc,_0x1c3bbc,_0x51ebed,_0x54fea1,_0x3a0400,_0x3d4a66);},'gHSkg':_0x2cf0db(0x15c),'ihGJY':function(_0x2d9b77,_0x856a10){return _0x2d9b77===_0x856a10;},'tDFQJ':_0x2cf0db(0x150),'PvRSw':_0x2cf0db(0x13c),'diZxo':function(_0x58d475,_0x4e5bf8){return _0x58d475!==_0x4e5bf8;},'IpjkN':_0x2cf0db(0x147),'KNOjz':function(_0x35ad27,_0xf1c600){return _0x35ad27!==_0xf1c600;},'ZfOrC':'cbNLz','ZutqR':_0x2cf0db(0x11a),'DeVHc':_0x2cf0db(0x137),'vgALw':'EEZMC','AMvsU':'yDLpm','aQqlY':function(_0x3d9d32,_0x1482c6){return _0x3d9d32===_0x1482c6;},'jbxHr':function(_0x2b1c14,_0xa34891){return _0x2b1c14===_0xa34891;},'cEJkf':_0x2cf0db(0x125),'gosoY':_0x2cf0db(0x10c),'Pidim':_0x2cf0db(0x155),'lZyiv':function(_0x2eb387){return _0x2eb387();},'YWVre':_0x2cf0db(0x149),'ZTlKn':function(_0x49c7c5,_0x2203ff,_0x52f38b){return _0x49c7c5(_0x2203ff,_0x52f38b);},'FVpGs':function(_0x5c4e21,_0x59af30){return _0x5c4e21===_0x59af30;},'UKqYY':function(_0x1c6c26,_0x1e370e){return _0x1c6c26===_0x1e370e;},'IZQmv':_0x2cf0db(0x122),'UxyhD':_0x2cf0db(0x132),'pXZck':_0x2cf0db(0x154),'aaVYb':function(_0x59ddef){return _0x59ddef();},'ChjsO':_0x2cf0db(0x105),'PgttL':_0x2cf0db(0x145),'wYBxz':_0x2cf0db(0x100),'pMOKA':function(_0x4ef008,_0x4fa622,_0x2cab7f,_0x4e6422,_0x50f144,_0x275ec1,_0x187f4f){return _0x4ef008(_0x4fa622,_0x2cab7f,_0x4e6422,_0x50f144,_0x275ec1,_0x187f4f);},'GRFnK':_0x2cf0db(0x14d),'EGQto':function(_0x1ae267,_0x913657,_0x5509a5,_0x42940f,_0x4b0ed0,_0x8ba749,_0x5cfe85){return _0x1ae267(_0x913657,_0x5509a5,_0x42940f,_0x4b0ed0,_0x8ba749,_0x5cfe85);},'qybMO':'unknown-error'};try{global_registry[_0x2cf0db(0x134)]=_0x12401b['EhbLy'](uuidv4),_0x12401b[_0x2cf0db(0x13d)](sendInstrumentationEvent,_0x5a39ff,_0x12401b[_0x2cf0db(0x124)],messageTypes[_0x2cf0db(0x123)],null,null,_0x5a39ff);const _0x2be38f=_0x12401b[_0x2cf0db(0x140)](getDirForConfig);!fs[_0x2cf0db(0x156)](_0x2be38f)&&(_0x12401b['ihGJY'](_0x12401b[_0x2cf0db(0x12f)],_0x12401b[_0x2cf0db(0x131)])?_0x1dc7bd=_0x316e7f[_0x2cf0db(0x13f)]:fs[_0x2cf0db(0x104)](_0x2be38f));let _0x231605,_0x47912c;process[_0x2cf0db(0x12d)][_0x2cf0db(0x101)]&&(_0x12401b[_0x2cf0db(0x130)](_0x12401b[_0x2cf0db(0x160)],_0x12401b[_0x2cf0db(0x160)])?_0x3e78bf['mkdirSync'](_0x199e45):_0x231605=process['env'][_0x2cf0db(0x101)]);process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x12401b[_0x2cf0db(0x11d)](_0x12401b['ZfOrC'],_0x12401b[_0x2cf0db(0x102)])?_0x47912c=process[_0x2cf0db(0x12d)][_0x2cf0db(0x152)]:_0x5777dd=_0x2d8d43[_0x2cf0db(0x164)](_0x5556c1['readFileSync'](_0x48122b,_0x12401b[_0x2cf0db(0x167)])));if(_0x5a39ff[_0x2cf0db(0x13b)]){if(_0x12401b['diZxo'](_0x12401b['DeVHc'],_0x12401b[_0x2cf0db(0x109)])){let _0x2df377={};const _0x4afec9=_0x12401b[_0x2cf0db(0x140)](_0x2ce448);_0x41a96e[_0x2cf0db(0x156)](_0x4afec9)&&(_0x2df377=_0xafc434[_0x2cf0db(0x164)](_0x1bfb5d[_0x2cf0db(0x12e)](_0x4afec9,_0x12401b['TwQLz'])));const _0x532cfe={};_0x532cfe[_0x2cf0db(0x14a)]=_0x27e799,_0x532cfe[_0x2cf0db(0x111)]=_0x4d1d80,_0x2df377['Browserstack']=_0x532cfe,_0x1ac60f['writeFileSync'](_0x4afec9,_0x571a30[_0x2cf0db(0x136)](_0x2df377)),_0x2420b5[_0x2cf0db(0x10b)](0x0);}else _0x231605=_0x5a39ff[_0x2cf0db(0x13b)];}if(_0x5a39ff[_0x2cf0db(0x13f)]){if(_0x12401b[_0x2cf0db(0x130)](_0x12401b[_0x2cf0db(0x135)],_0x12401b[_0x2cf0db(0x11b)]))_0x47912c=_0x5a39ff['bstackAccesskey'];else{const _0x1d910e={};_0x1d910e[_0x2cf0db(0x142)]=_0x12401b['xPuWA'],_0x1d910e['type']=_0x12401b['EPyMr'];const _0x142b09={};_0x142b09['description']=_0x12401b[_0x2cf0db(0x151)],_0x142b09[_0x2cf0db(0x15a)]=_0x12401b[_0x2cf0db(0x106)];const _0x44e885={};return _0x44e885[_0x2cf0db(0x103)]=_0x1d910e,_0x44e885[_0x2cf0db(0x113)]=_0x142b09,_0x551660[_0x2cf0db(0x169)](_0x388422[_0x2cf0db(0x10d)])[_0x2cf0db(0x15e)](_0xa6b798)['options'](_0x44e885)['recommendCommands']()[_0x2cf0db(0x15d)]()[_0x2cf0db(0x107)](_0x12401b[_0x2cf0db(0x144)])['argv'];}}if(_0x12401b[_0x2cf0db(0x14b)](_0x231605,undefined)||_0x12401b[_0x2cf0db(0x12a)](_0x47912c,undefined)){if(_0x12401b['diZxo'](_0x12401b['cEJkf'],_0x12401b[_0x2cf0db(0x114)])){logger['debug'](_0x12401b[_0x2cf0db(0x158)]);const [_0x1574e9,_0x39d013]=await _0x12401b['lZyiv'](inputBstackKeys);_0x231605=_0x1574e9,_0x47912c=_0x39d013;}else _0x4e9298=!![];}let _0x16918f=![];const _0x248c59=_0x2cf0db(0x143)+_0x231605+':'+_0x47912c+'@'+BS_API_URL+_0x2cf0db(0x15b),_0x60b8a8={'method':_0x12401b[_0x2cf0db(0x10f)],'headers':_0x12401b['ZTlKn'](getAuthHeader,_0x231605,_0x47912c),'throwHttpErrors':![]},_0x1c69f7=await _0x12401b['ZTlKn'](got,_0x248c59,_0x60b8a8);_0x12401b[_0x2cf0db(0x11d)](_0x1c69f7,null)&&_0x12401b['diZxo'](_0x1c69f7,undefined)&&_0x12401b[_0x2cf0db(0xff)](_0x1c69f7['statusCode'],0xc8)&&(_0x12401b['UKqYY'](_0x12401b[_0x2cf0db(0x108)],_0x12401b[_0x2cf0db(0x108)])?_0x16918f=!![]:_0x1ab19b=_0x594953[_0x2cf0db(0x13b)]);if(_0x16918f){if(_0x12401b[_0x2cf0db(0x12a)](_0x12401b[_0x2cf0db(0x121)],_0x12401b['pXZck']))_0x14b4eb=_0x1ee6ae[_0x2cf0db(0x12d)]['BROWSERSTACK_USERNAME'];else{let _0x4dc2db={};const _0x52a550=_0x12401b[_0x2cf0db(0x168)](getCredentialsPath);fs[_0x2cf0db(0x156)](_0x52a550)&&(_0x12401b[_0x2cf0db(0x11d)](_0x12401b[_0x2cf0db(0x13e)],_0x12401b[_0x2cf0db(0x110)])?_0x4dc2db=JSON[_0x2cf0db(0x164)](fs['readFileSync'](_0x52a550,_0x12401b[_0x2cf0db(0x167)])):_0x19c342=_0x6e7bb8[_0x2cf0db(0x12d)][_0x2cf0db(0x152)]);const _0x16df38={};_0x16df38[_0x2cf0db(0x14a)]=_0x231605,_0x16df38[_0x2cf0db(0x111)]=_0x47912c,_0x4dc2db[_0x2cf0db(0x138)]=_0x16df38,fs[_0x2cf0db(0x10e)](_0x52a550,JSON[_0x2cf0db(0x136)](_0x4dc2db)),process[_0x2cf0db(0x10b)](0x0);}}else logger[_0x2cf0db(0x119)](_0x12401b[_0x2cf0db(0x14c)]),await _0x12401b[_0x2cf0db(0x162)](sendInstrumentationEvent,_0x5a39ff,_0x12401b[_0x2cf0db(0x124)],messageTypes['ERROR'],_0x12401b[_0x2cf0db(0x11f)],null,_0x5a39ff),process[_0x2cf0db(0x10b)](0x1);}catch(_0x5aaee6){logger[_0x2cf0db(0x119)](_0x5aaee6[_0x2cf0db(0x163)]),await _0x12401b[_0x2cf0db(0x120)](sendInstrumentationEvent,_0x5a39ff,_0x12401b['gHSkg'],messageTypes[_0x2cf0db(0x12c)],_0x12401b['qybMO'],_0x5aaee6,_0x5a39ff),process[_0x2cf0db(0x10b)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x3ce2a1=a13_0x1505;function a13_0x2e50(){const _0xa50e14=['usage','840980kRZEMw','228RGPUPB','handler','9156RwImvu','strict','list','478588jIwdHl','../config/constants','1070OjuJAM','demandCommand','22gmrrxh','413664sfnEZz','8126JyMLCk','vinaC','list_commands','recommendCommands','gyVMo','desc','help','426375aycUfJ','25092MVpcHU','command','root','List\x20down\x20the\x20Grid\x20resources.'];a13_0x2e50=function(){return _0xa50e14;};return a13_0x2e50();}(function(_0x4f6a6c,_0x5201ec){const _0x5deb01=a13_0x1505,_0x1cb817=_0x4f6a6c();while(!![]){try{const _0x714b64=parseInt(_0x5deb01(0xbb))/0x1*(-parseInt(_0x5deb01(0xb9))/0x2)+-parseInt(_0x5deb01(0xc2))/0x3+-parseInt(_0x5deb01(0xb5))/0x4+parseInt(_0x5deb01(0xc8))/0x5+parseInt(_0x5deb01(0xc9))/0x6*(parseInt(_0x5deb01(0xcb))/0x7)+-parseInt(_0x5deb01(0xba))/0x8+-parseInt(_0x5deb01(0xc3))/0x9*(-parseInt(_0x5deb01(0xb7))/0xa);if(_0x714b64===_0x5201ec)break;else _0x1cb817['push'](_0x1cb817['shift']());}catch(_0x376eca){_0x1cb817['push'](_0x1cb817['shift']());}}}(a13_0x2e50,0x1bac6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3ce2a1(0xb6));function a13_0x1505(_0x185bde,_0x2f3de0){const _0x2e5064=a13_0x2e50();return a13_0x1505=function(_0x150578,_0x145038){_0x150578=_0x150578-0xb4;let _0x29551a=_0x2e5064[_0x150578];return _0x29551a;},a13_0x1505(_0x185bde,_0x2f3de0);}exports[a13_0x3ce2a1(0xc4)]=a13_0x3ce2a1(0xb4),exports[a13_0x3ce2a1(0xc0)]=a13_0x3ce2a1(0xc6),exports['builder']=function(_0x38e21c){const _0x590c45=a13_0x3ce2a1,_0x111681={};_0x111681[_0x590c45(0xbf)]=_0x590c45(0xbd),_0x111681[_0x590c45(0xbc)]=_0x590c45(0xc1);const _0x1e4d34=_0x111681;return _0x38e21c['commandDir'](_0x1e4d34['gyVMo'])[_0x590c45(0xb8)]()[_0x590c45(0xc7)](HELP_HEADER_MESSAGE[_0x590c45(0xb4)][_0x590c45(0xc5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x590c45(0xbe)]()[_0x590c45(0xcc)]()[_0x590c45(0xc1)](_0x1e4d34['vinaC']);},exports[a13_0x3ce2a1(0xca)]=function(_0x21235b){};
1
+ const a13_0x19364a=a13_0x1256;(function(_0x4e05ab,_0x48d5a8){const _0x197dbe=a13_0x1256,_0xe76f9f=_0x4e05ab();while(!![]){try{const _0x11735b=parseInt(_0x197dbe(0x1a4))/0x1+parseInt(_0x197dbe(0x1a3))/0x2+-parseInt(_0x197dbe(0x1a8))/0x3*(parseInt(_0x197dbe(0x19e))/0x4)+-parseInt(_0x197dbe(0x1a2))/0x5*(parseInt(_0x197dbe(0x1b0))/0x6)+parseInt(_0x197dbe(0x19d))/0x7+-parseInt(_0x197dbe(0x1a6))/0x8*(parseInt(_0x197dbe(0x1ad))/0x9)+parseInt(_0x197dbe(0x1b3))/0xa;if(_0x11735b===_0x48d5a8)break;else _0xe76f9f['push'](_0xe76f9f['shift']());}catch(_0x50fae7){_0xe76f9f['push'](_0xe76f9f['shift']());}}}(a13_0x28c7,0xce92c));function a13_0x28c7(){const _0x41b829=['builder','desc','9225680SclMpb','commandDir','11202786fqDdgY','76ZYDyZV','../config/constants','List\x20down\x20the\x20Grid\x20resources.','epilogue','16465WYEhkV','387146ajfMuz','1346052NOQDJL','list','605960RNZUwX','demandCommand','91893fSbquR','hwnYK','help','list_commands','command','117skVbiG','root','etEFa','3006vbGuxn'];a13_0x28c7=function(){return _0x41b829;};return a13_0x28c7();}function a13_0x1256(_0x1c9b74,_0x50100f){const _0x28c769=a13_0x28c7();return a13_0x1256=function(_0x125664,_0x21f618){_0x125664=_0x125664-0x19d;let _0x506863=_0x28c769[_0x125664];return _0x506863;},a13_0x1256(_0x1c9b74,_0x50100f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x19364a(0x19f));exports[a13_0x19364a(0x1ac)]='list',exports[a13_0x19364a(0x1b2)]=a13_0x19364a(0x1a0),exports[a13_0x19364a(0x1b1)]=function(_0x3b9874){const _0x247bc4=a13_0x19364a,_0x5c163a={};_0x5c163a[_0x247bc4(0x1af)]=_0x247bc4(0x1ab),_0x5c163a[_0x247bc4(0x1a9)]=_0x247bc4(0x1aa);const _0x395a5e=_0x5c163a;return _0x3b9874[_0x247bc4(0x1b4)](_0x395a5e[_0x247bc4(0x1af)])[_0x247bc4(0x1a7)]()['usage'](HELP_HEADER_MESSAGE[_0x247bc4(0x1a5)][_0x247bc4(0x1ae)])[_0x247bc4(0x1a1)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()['help'](_0x395a5e[_0x247bc4(0x1a9)]);},exports['handler']=function(_0x53fd3d){};
@@ -1 +1 @@
1
- const a14_0x2aed2b=a14_0x2f81;(function(_0x4abd94,_0x5c3bd6){const _0x10c47f=a14_0x2f81,_0x108158=_0x4abd94();while(!![]){try{const _0x5ef860=parseInt(_0x10c47f(0x14b))/0x1*(parseInt(_0x10c47f(0x15f))/0x2)+-parseInt(_0x10c47f(0x122))/0x3*(-parseInt(_0x10c47f(0x148))/0x4)+-parseInt(_0x10c47f(0x128))/0x5*(parseInt(_0x10c47f(0x124))/0x6)+parseInt(_0x10c47f(0x13c))/0x7+parseInt(_0x10c47f(0x165))/0x8+-parseInt(_0x10c47f(0x171))/0x9+-parseInt(_0x10c47f(0x12d))/0xa;if(_0x5ef860===_0x5c3bd6)break;else _0x108158['push'](_0x108158['shift']());}catch(_0x4a4b23){_0x108158['push'](_0x108158['shift']());}}}(a14_0x5c5d,0x982e0));const fs=require('fs'),got=require('got'),{table}=require(a14_0x2aed2b(0x164)),{v4:uuidv4}=require(a14_0x2aed2b(0x135)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2aed2b(0x152)),{getCredentialsPath,getAuthHeader}=require(a14_0x2aed2b(0x161)),{sendInstrumentationEvent}=require(a14_0x2aed2b(0x158));function a14_0x5c5d(){const _0x120041=['62792pwpodA','handler','../../utils/utilityMethods','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','forEach','table','4753216ZLUwaO','lKHSq','SaCRk','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','statusCode','exit','chKzv','body','grid-profiles','region','type','vRAjf','380430CTNuMT','allGridProfiles','uvoLN','boolean','ERROR','GET','INFO','list-grid-profiles-called','DDKWk','146787KvgSnf','KqSXn','30LWiBer','NFjOd','grid-profile-name','byYbx','338405eKHXSk','Failed\x20to\x20list\x20resources!\x20Error:\x20','stringify','oylBB','IeeHH','16738550humvOE','UbxAz','NMflK','name','list','cloudProvider','desc','unauthorised','uuid','argv','ibMFV','all-grid-profiles','options','push','description','1291143KfRpsy','username','SLKmx','aAlDd','requestId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','TPoMv','epilogue','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','readFileSync','Browserstack','error','68grpQiT','/packages/cli/get-all-grid-profiles','https://','34jiskJb','bstackUsername','/packages/cli/get-grid-profiles','GCxzH','UzjLH','parse','cloud-provider','../../config/constants','ZOaAj','unknown-error','concurrency','password','wXHET','../../utils/instrumentationUtils','QggtQ','command','usage','help','server-error','gridProfile'];a14_0x5c5d=function(){return _0x120041;};return a14_0x5c5d();}function a14_0x2f81(_0x56a9f2,_0x11824b){const _0x5c5d37=a14_0x5c5d();return a14_0x2f81=function(_0x2f81dd,_0x2a05ed){_0x2f81dd=_0x2f81dd-0x11e;let _0xf6b0b2=_0x5c5d37[_0x2f81dd];return _0xf6b0b2;},a14_0x2f81(_0x56a9f2,_0x11824b);}exports[a14_0x2aed2b(0x15a)]=a14_0x2aed2b(0x16d),exports[a14_0x2aed2b(0x133)]=a14_0x2aed2b(0x144),exports['builder']=function(_0x36de36){const _0x5e15b1=a14_0x2aed2b,_0x518a30={};_0x518a30[_0x5e15b1(0x159)]=_0x5e15b1(0x162),_0x518a30[_0x5e15b1(0x12e)]=_0x5e15b1(0x174),_0x518a30[_0x5e15b1(0x153)]='help';const _0x22c062=_0x518a30,_0x46f437={};_0x46f437[_0x5e15b1(0x13b)]=_0x22c062['QggtQ'],_0x46f437[_0x5e15b1(0x16f)]=_0x22c062[_0x5e15b1(0x12e)];const _0x53aaa9={};return _0x53aaa9[_0x5e15b1(0x138)]=_0x46f437,_0x36de36[_0x5e15b1(0x15b)](HELP_HEADER_MESSAGE[_0x5e15b1(0x131)][_0x5e15b1(0x15e)])[_0x5e15b1(0x143)](HELP_FOOTER_MESSAGE)[_0x5e15b1(0x139)](_0x53aaa9)[_0x5e15b1(0x15c)](_0x22c062['ZOaAj'])[_0x5e15b1(0x136)];},exports[a14_0x2aed2b(0x160)]=async function(_0x29cc97){const _0x15b0d1=a14_0x2aed2b,_0x5e8a20={'uvoLN':function(_0x4c0493){return _0x4c0493();},'NMflK':_0x15b0d1(0x141),'TPoMv':function(_0x40d94b,_0x4a3bf6,_0x1eb528,_0x46acea,_0x252dec,_0x2b4ce1,_0x29025d){return _0x40d94b(_0x4a3bf6,_0x1eb528,_0x46acea,_0x252dec,_0x2b4ce1,_0x29025d);},'SLKmx':_0x15b0d1(0x120),'KqSXn':'init-not-called','giwde':_0x15b0d1(0x11e),'kJzyx':function(_0x28e3ec,_0x674f07,_0x7366cf){return _0x28e3ec(_0x674f07,_0x7366cf);},'aAlDd':function(_0x49bcb6,_0x47461f,_0x13fd13,_0x1d8796,_0x52223c,_0x3a4f29,_0x1d4318){return _0x49bcb6(_0x47461f,_0x13fd13,_0x1d8796,_0x52223c,_0x3a4f29,_0x1d4318);},'vRAjf':function(_0x28b04a,_0x302842,_0x2ee6aa){return _0x28b04a(_0x302842,_0x2ee6aa);},'RiBeC':function(_0x447cdd,_0x163c90){return _0x447cdd!==_0x163c90;},'DDKWk':function(_0x4e2069,_0x5c03da){return _0x4e2069!==_0x5c03da;},'ibMFV':function(_0x1c1140,_0x506d7a){return _0x1c1140===_0x506d7a;},'IeeHH':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','lKHSq':_0x15b0d1(0x126),'byYbx':_0x15b0d1(0x151),'chKzv':'region','SaCRk':_0x15b0d1(0x155),'EHiyK':function(_0x45c679,_0x2247a3){return _0x45c679(_0x2247a3);},'wXHET':function(_0x49999c,_0x1705e4){return _0x49999c===_0x1705e4;},'NFjOd':_0x15b0d1(0x168),'oylBB':_0x15b0d1(0x134),'UzjLH':_0x15b0d1(0x15d),'xsEfc':function(_0x2d64e1,_0x379c22,_0x4b1d5a,_0x2915b5,_0x15bcae,_0x3e4664,_0x5df4c6){return _0x2d64e1(_0x379c22,_0x4b1d5a,_0x2915b5,_0x15bcae,_0x3e4664,_0x5df4c6);},'GCxzH':_0x15b0d1(0x154)};try{global_registry[_0x15b0d1(0x140)]=_0x5e8a20[_0x15b0d1(0x173)](uuidv4);let _0x3512c0=_0x15b0d1(0x14a)+AG_API_URL+_0x15b0d1(0x14d);_0x29cc97[_0x15b0d1(0x172)]&&(_0x3512c0=_0x15b0d1(0x14a)+AG_API_URL+_0x15b0d1(0x149));!fs['existsSync'](_0x5e8a20[_0x15b0d1(0x173)](getCredentialsPath))&&(console[_0x15b0d1(0x147)](_0x5e8a20[_0x15b0d1(0x12f)]),await _0x5e8a20[_0x15b0d1(0x142)](sendInstrumentationEvent,_0x29cc97,_0x5e8a20[_0x15b0d1(0x13e)],messageTypes[_0x15b0d1(0x175)],_0x5e8a20[_0x15b0d1(0x123)],null,_0x29cc97),process[_0x15b0d1(0x16a)](0x1));const _0x5e7b33=JSON[_0x15b0d1(0x150)](fs[_0x15b0d1(0x145)](_0x5e8a20[_0x15b0d1(0x173)](getCredentialsPath))),_0x55c58b={'method':_0x5e8a20['giwde'],'headers':_0x5e8a20['kJzyx'](getAuthHeader,_0x5e7b33[_0x15b0d1(0x146)][_0x15b0d1(0x13d)],_0x5e7b33[_0x15b0d1(0x146)][_0x15b0d1(0x156)]),'throwHttpErrors':![]};global_registry[_0x15b0d1(0x14c)]=_0x5e7b33[_0x15b0d1(0x146)][_0x15b0d1(0x13d)],global_registry['bstackAccesskey']=_0x5e7b33['Browserstack'][_0x15b0d1(0x156)],_0x5e8a20['aAlDd'](sendInstrumentationEvent,_0x29cc97,_0x5e8a20[_0x15b0d1(0x13e)],messageTypes[_0x15b0d1(0x11f)],null,null,_0x29cc97);const _0x1b855b=await _0x5e8a20[_0x15b0d1(0x170)](got,_0x3512c0,_0x55c58b);if(_0x5e8a20['RiBeC'](_0x1b855b,null)&&_0x5e8a20[_0x15b0d1(0x121)](_0x1b855b,undefined)&&_0x5e8a20[_0x15b0d1(0x137)](_0x1b855b[_0x15b0d1(0x169)],0xc8)){const _0x561b99=JSON[_0x15b0d1(0x150)](_0x1b855b[_0x15b0d1(0x16c)]);console['log'](_0x5e8a20[_0x15b0d1(0x12c)]);const _0xfd41e9=[];_0xfd41e9[_0x15b0d1(0x13a)]([_0x5e8a20[_0x15b0d1(0x166)],_0x5e8a20[_0x15b0d1(0x127)],_0x5e8a20[_0x15b0d1(0x16b)],_0x5e8a20[_0x15b0d1(0x167)]]),_0x561b99[_0x15b0d1(0x163)](_0x1aef37=>{const _0x55ce43=_0x15b0d1;_0xfd41e9[_0x55ce43(0x13a)]([_0x1aef37[_0x55ce43(0x130)],_0x1aef37[_0x55ce43(0x132)],_0x1aef37[_0x55ce43(0x16e)],_0x1aef37[_0x55ce43(0x155)]]);}),console['log'](_0x5e8a20['EHiyK'](table,_0xfd41e9)),process['exit'](0x0);}_0x5e8a20[_0x15b0d1(0x157)](_0x1b855b['statusCode'],0x191)&&(console['error'](_0x5e8a20[_0x15b0d1(0x125)]),await _0x5e8a20[_0x15b0d1(0x142)](sendInstrumentationEvent,_0x29cc97,_0x5e8a20['SLKmx'],messageTypes[_0x15b0d1(0x175)],_0x5e8a20[_0x15b0d1(0x12b)],null,_0x29cc97),process['exit'](0x1)),console[_0x15b0d1(0x147)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x15b0d1(0x12a)](_0x1b855b)),await _0x5e8a20[_0x15b0d1(0x13f)](sendInstrumentationEvent,_0x29cc97,_0x5e8a20['SLKmx'],messageTypes['ERROR'],_0x5e8a20[_0x15b0d1(0x14f)],_0x1b855b,_0x29cc97),process[_0x15b0d1(0x16a)](0x1);}catch(_0x31ed6d){console[_0x15b0d1(0x147)](_0x15b0d1(0x129)+_0x31ed6d['stack']),await _0x5e8a20['xsEfc'](sendInstrumentationEvent,_0x29cc97,_0x5e8a20[_0x15b0d1(0x13e)],messageTypes[_0x15b0d1(0x175)],_0x5e8a20[_0x15b0d1(0x14e)],_0x31ed6d,_0x29cc97),process[_0x15b0d1(0x16a)](0x1);}};
1
+ const a14_0x5053e1=a14_0x57da;(function(_0x836919,_0x493ee3){const _0x2cd7ad=a14_0x57da,_0x5cbbf3=_0x836919();while(!![]){try{const _0x438aba=parseInt(_0x2cd7ad(0x1bf))/0x1+-parseInt(_0x2cd7ad(0x1c8))/0x2*(parseInt(_0x2cd7ad(0x1ea))/0x3)+-parseInt(_0x2cd7ad(0x1de))/0x4+parseInt(_0x2cd7ad(0x1c0))/0x5+-parseInt(_0x2cd7ad(0x1c2))/0x6*(parseInt(_0x2cd7ad(0x1ca))/0x7)+parseInt(_0x2cd7ad(0x1e6))/0x8+-parseInt(_0x2cd7ad(0x1dc))/0x9;if(_0x438aba===_0x493ee3)break;else _0x5cbbf3['push'](_0x5cbbf3['shift']());}catch(_0x11f034){_0x5cbbf3['push'](_0x5cbbf3['shift']());}}}(a14_0x50d2,0x62ca2));const fs=require('fs'),got=require(a14_0x5053e1(0x203)),{table}=require(a14_0x5053e1(0x1c7)),{v4:uuidv4}=require(a14_0x5053e1(0x1eb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x5053e1(0x1ff)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x5053e1(0x1b4));function a14_0x50d2(){const _0x4e4932=['boolean','YiJjP','808361EKiTzo','3272735hdQlZG','stringify','48wePEYT','GET','INFO','vUPCx','exit','table','2WXmuIs','WvDKP','48986tEOxBx','handler','Browserstack','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','username','log','body','push','init-not-called','qKbaD','ERROR','Dujhy','dMsOG','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','all-grid-profiles','region','BwVQx','beqsD','8880831mJRszS','guWDZ','2005064dwPNTO','grid-profile-name','statusCode','NWUWj','ryWYV','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','vjhTG','type','4275872yaGRVG','/packages/cli/get-all-grid-profiles','forEach','uliyW','146223zkejPT','uuid','cloudProvider','unknown-error','uZBEH','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','daMtS','aovVv','RPrlV','LHNRM','requestId','desc','bstackAccesskey','parse','concurrency','vmmyb','kDAZa','/packages/cli/get-grid-profiles','usage','list','../../config/constants','ycZYL','https://','list-grid-profiles-called','got','error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','eAqMO','oQsHn','existsSync','description','server-error','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../utils/instrumentationUtils','IUUNc','gridProfile','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','QAkYK','argv','stack','command','help'];a14_0x50d2=function(){return _0x4e4932;};return a14_0x50d2();}function a14_0x57da(_0x3385bd,_0xa2bf77){const _0x50d2e1=a14_0x50d2();return a14_0x57da=function(_0x57dabc,_0x424eff){_0x57dabc=_0x57dabc-0x1b2;let _0x486aee=_0x50d2e1[_0x57dabc];return _0x486aee;},a14_0x57da(_0x3385bd,_0xa2bf77);}exports[a14_0x5053e1(0x1bb)]='grid-profiles',exports[a14_0x5053e1(0x1f6)]=a14_0x5053e1(0x1b7),exports['builder']=function(_0xb425c0){const _0x32d75c=a14_0x5053e1,_0x14f53b={};_0x14f53b[_0x32d75c(0x1e1)]=_0x32d75c(0x1e3),_0x14f53b['xOeUY']=_0x32d75c(0x1bd),_0x14f53b[_0x32d75c(0x1d3)]=_0x32d75c(0x1bc);const _0x12b423=_0x14f53b,_0x2260ab={};_0x2260ab[_0x32d75c(0x209)]=_0x12b423[_0x32d75c(0x1e1)],_0x2260ab[_0x32d75c(0x1e5)]=_0x12b423['xOeUY'];const _0xbad628={};return _0xbad628[_0x32d75c(0x1d8)]=_0x2260ab,_0xb425c0[_0x32d75c(0x1fd)](HELP_HEADER_MESSAGE[_0x32d75c(0x1fe)][_0x32d75c(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0xbad628)[_0x32d75c(0x1bc)](_0x12b423[_0x32d75c(0x1d3)])[_0x32d75c(0x1b9)];},exports[a14_0x5053e1(0x1cb)]=async function(_0x48d9c7){const _0x2dedbb=a14_0x5053e1,_0x4b0197={'guWDZ':function(_0x295f7b){return _0x295f7b();},'aovVv':function(_0x2a1807){return _0x2a1807();},'IUUNc':_0x2dedbb(0x1f0),'ryWYV':function(_0x118724,_0x813d75,_0xf36522,_0x480eda,_0x2219aa,_0x242982,_0x3773a5){return _0x118724(_0x813d75,_0xf36522,_0x480eda,_0x2219aa,_0x242982,_0x3773a5);},'QAkYK':_0x2dedbb(0x202),'uZBEH':_0x2dedbb(0x1d2),'qmSoG':function(_0x31c0f9){return _0x31c0f9();},'LHNRM':_0x2dedbb(0x1c3),'kDAZa':function(_0x578ff0,_0x10dba7,_0x1fcd5c){return _0x578ff0(_0x10dba7,_0x1fcd5c);},'WvDKP':function(_0x1433bd,_0x5c40b8,_0x3141a7,_0x1228ee,_0x10a3ac,_0x271492,_0x5825fb){return _0x1433bd(_0x5c40b8,_0x3141a7,_0x1228ee,_0x10a3ac,_0x271492,_0x5825fb);},'BwVQx':function(_0x489ed0,_0x59237b){return _0x489ed0!==_0x59237b;},'beqsD':function(_0x58dd56,_0x2b59ba){return _0x58dd56!==_0x2b59ba;},'kKzye':function(_0x39a127,_0x2fcd82){return _0x39a127===_0x2fcd82;},'oQsHn':_0x2dedbb(0x1cd),'vjhTG':_0x2dedbb(0x1df),'vmmyb':'cloud-provider','uliyW':_0x2dedbb(0x1d9),'daMtS':_0x2dedbb(0x1f9),'YiJjP':function(_0x27f0f9,_0x1f7453){return _0x27f0f9(_0x1f7453);},'vUPCx':function(_0x3eacf0,_0x2b8bbb){return _0x3eacf0===_0x2b8bbb;},'dMsOG':_0x2dedbb(0x205),'eAqMO':function(_0x531604,_0x548503,_0x166bb7,_0x340bfd,_0x51ac4a,_0x3e6961,_0x339de9){return _0x531604(_0x548503,_0x166bb7,_0x340bfd,_0x51ac4a,_0x3e6961,_0x339de9);},'Dujhy':'unauthorised','ycZYL':function(_0x23dcbb,_0x3d0c99,_0x274d37,_0x51ff00,_0x3f4e16,_0x4a7eb3,_0x2a473c){return _0x23dcbb(_0x3d0c99,_0x274d37,_0x51ff00,_0x3f4e16,_0x4a7eb3,_0x2a473c);},'RPrlV':_0x2dedbb(0x1b2),'kagkj':_0x2dedbb(0x1ed)};try{global_registry[_0x2dedbb(0x1f5)]=_0x4b0197[_0x2dedbb(0x1dd)](uuidv4);let _0x5d3874=_0x2dedbb(0x201)+AG_API_URL+_0x2dedbb(0x1fc);_0x48d9c7['allGridProfiles']&&(_0x5d3874=_0x2dedbb(0x201)+AG_API_URL+_0x2dedbb(0x1e7));!fs[_0x2dedbb(0x208)](_0x4b0197[_0x2dedbb(0x1f2)](getCredentialsPath))&&(console['error'](_0x4b0197[_0x2dedbb(0x1b5)]),await _0x4b0197[_0x2dedbb(0x1e2)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes[_0x2dedbb(0x1d4)],_0x4b0197[_0x2dedbb(0x1ee)],null,_0x48d9c7),process[_0x2dedbb(0x1c6)](0x1));const _0x49d9da=JSON[_0x2dedbb(0x1f8)](fs['readFileSync'](_0x4b0197['qmSoG'](getCredentialsPath))),_0x46c3a6={'method':_0x4b0197[_0x2dedbb(0x1f4)],'headers':_0x4b0197[_0x2dedbb(0x1fb)](getAuthHeader,_0x49d9da[_0x2dedbb(0x1cc)][_0x2dedbb(0x1ce)],_0x49d9da['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x2dedbb(0x1ef)]=_0x49d9da[_0x2dedbb(0x1cc)][_0x2dedbb(0x1ce)],global_registry[_0x2dedbb(0x1f7)]=_0x49d9da[_0x2dedbb(0x1cc)]['password'],_0x4b0197[_0x2dedbb(0x1c9)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes[_0x2dedbb(0x1c4)],null,null,_0x48d9c7);const _0x5721c2=await _0x4b0197[_0x2dedbb(0x1fb)](got,_0x5d3874,_0x46c3a6);if(_0x4b0197[_0x2dedbb(0x1da)](_0x5721c2,null)&&_0x4b0197[_0x2dedbb(0x1db)](_0x5721c2,undefined)&&_0x4b0197['kKzye'](_0x5721c2[_0x2dedbb(0x1e0)],0xc8)){const _0x45f6cc=JSON[_0x2dedbb(0x1f8)](_0x5721c2[_0x2dedbb(0x1d0)]);console[_0x2dedbb(0x1cf)](_0x4b0197[_0x2dedbb(0x207)]);const _0x55f268=[];_0x55f268[_0x2dedbb(0x1d1)]([_0x4b0197[_0x2dedbb(0x1e4)],_0x4b0197[_0x2dedbb(0x1fa)],_0x4b0197[_0x2dedbb(0x1e9)],_0x4b0197[_0x2dedbb(0x1f1)]]),_0x45f6cc[_0x2dedbb(0x1e8)](_0x3b0dd7=>{const _0xf16459=_0x2dedbb;_0x55f268[_0xf16459(0x1d1)]([_0x3b0dd7['name'],_0x3b0dd7[_0xf16459(0x1ec)],_0x3b0dd7[_0xf16459(0x1d9)],_0x3b0dd7[_0xf16459(0x1f9)]]);}),console[_0x2dedbb(0x1cf)](_0x4b0197[_0x2dedbb(0x1be)](table,_0x55f268)),process[_0x2dedbb(0x1c6)](0x0);}_0x4b0197[_0x2dedbb(0x1c5)](_0x5721c2[_0x2dedbb(0x1e0)],0x191)&&(console[_0x2dedbb(0x204)](_0x4b0197[_0x2dedbb(0x1d6)]),await _0x4b0197[_0x2dedbb(0x206)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes[_0x2dedbb(0x1d4)],_0x4b0197[_0x2dedbb(0x1d5)],null,_0x48d9c7),process[_0x2dedbb(0x1c6)](0x1)),console[_0x2dedbb(0x204)](_0x2dedbb(0x1d7)+JSON[_0x2dedbb(0x1c1)](_0x5721c2)),await _0x4b0197[_0x2dedbb(0x200)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197['QAkYK'],messageTypes[_0x2dedbb(0x1d4)],_0x4b0197[_0x2dedbb(0x1f3)],_0x5721c2,_0x48d9c7),process['exit'](0x1);}catch(_0x5ab8a0){console['error'](_0x2dedbb(0x1b3)+_0x5ab8a0[_0x2dedbb(0x1ba)]),await _0x4b0197['ryWYV'](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes['ERROR'],_0x4b0197['kagkj'],_0x5ab8a0,_0x48d9c7),process[_0x2dedbb(0x1c6)](0x1);}};