browserstack-node-sdk 1.34.38 → 1.34.40

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 (147) hide show
  1. package/ats/src/CFTemplates/hub-ha.yaml +81 -0
  2. package/ats/src/cloudproviders/AWS.js +1 -1
  3. package/ats/src/cloudproviders/Azure.js +1 -1
  4. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/commands/start.js +1 -1
  19. package/ats/src/commands/start_commands/grid.js +1 -1
  20. package/ats/src/commands/stop.js +1 -1
  21. package/ats/src/commands/stop_commands/grid.js +1 -1
  22. package/ats/src/config/constants.js +1 -1
  23. package/ats/src/config/logger.js +1 -1
  24. package/ats/src/index.js +1 -1
  25. package/ats/src/templates/browserstack-secret.yaml +10 -0
  26. package/ats/src/templates/hub-deployment.yaml +25 -3
  27. package/ats/src/templates/hubharesources/bitnami-kafka.yaml +711 -0
  28. package/ats/src/templates/hubharesources/bitnami-redis.yaml +1048 -0
  29. package/ats/src/templates/hubharesources/browserstack-secret.yaml +10 -0
  30. package/ats/src/templates/hubharesources/efs-csi-driver-aws.yaml +401 -0
  31. package/ats/src/templates/hubharesources/federatedidentityuploader.json +50 -0
  32. package/ats/src/templates/hubharesources/storage-class.yaml +12 -0
  33. package/ats/src/templates/hubharesources/turboscale-uploader.yaml +53 -0
  34. package/ats/src/templates/nginx/helper.yaml +1 -0
  35. package/ats/src/templates/nginx/private-pods-and-services.yaml +1 -0
  36. package/ats/src/templates/turboscale-agent.yaml +0 -8
  37. package/ats/src/utils/AWSUtils.js +1 -1
  38. package/ats/src/utils/createAutoscalerStack.js +1 -1
  39. package/ats/src/utils/createClusterStack.js +1 -1
  40. package/ats/src/utils/createHubHaStack.js +1 -0
  41. package/ats/src/utils/createk8sClient.js +1 -1
  42. package/ats/src/utils/deleteEFSMountTargets.js +1 -0
  43. package/ats/src/utils/deleteStack.js +1 -1
  44. package/ats/src/utils/describeStack.js +1 -0
  45. package/ats/src/utils/gridComponents.js +1 -1
  46. package/ats/src/utils/hstUtils.js +1 -1
  47. package/ats/src/utils/instrumentationUtils.js +1 -1
  48. package/ats/src/utils/userInput.js +1 -1
  49. package/ats/src/utils/utilityMethods.js +1 -1
  50. package/ats/src/utils/webSocketUtils.js +1 -1
  51. package/package.json +1 -1
  52. package/src/ai-sdk-node/bundle.js +1 -1
  53. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  54. package/src/bin/codeceptjs/command.js +1 -1
  55. package/src/bin/codeceptjs/helper.js +1 -1
  56. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  57. package/src/bin/cucumber-js/command.js +1 -1
  58. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  59. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  60. package/src/bin/cucumber-js/test-observability.js +1 -1
  61. package/src/bin/cucumber-js/test.setup.js +1 -1
  62. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  63. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  64. package/src/bin/integrations/command.js +1 -1
  65. package/src/bin/integrations/constants.js +1 -1
  66. package/src/bin/jest/command.js +1 -1
  67. package/src/bin/jest/customImplements/customCircus.js +1 -1
  68. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  69. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  70. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  71. package/src/bin/jest/jest.setup.js +1 -1
  72. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  73. package/src/bin/jest/test-observability/helper.js +1 -1
  74. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  75. package/src/bin/jest/test-observability/test-details.js +1 -1
  76. package/src/bin/jest/test_before.setup.js +1 -1
  77. package/src/bin/launcher/launcher.js +1 -1
  78. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  79. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  80. package/src/bin/mocha/command.js +1 -1
  81. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/playwright/accessibility-helper.js +1 -1
  87. package/src/bin/playwright/command.js +1 -1
  88. package/src/bin/playwright/globalSetup.js +1 -1
  89. package/src/bin/playwright/mock-process.js +1 -1
  90. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  91. package/src/bin/playwright/patches.js +1 -1
  92. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  93. package/src/bin/playwright/reporter/reporter.js +1 -1
  94. package/src/bin/playwright/reporter/test-details.js +1 -1
  95. package/src/bin/playwright/sessionDetails.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/constants.js +1 -1
  102. package/src/bin/utils/log4jsAppender.js +1 -1
  103. package/src/bin/utils/logPatcher.js +1 -1
  104. package/src/bin/utils/logReportingAPI.js +1 -1
  105. package/src/bin/vanilla-js/command.js +1 -1
  106. package/src/browserStackSdk.js +1 -1
  107. package/src/helpers/BrowserStackSetup.js +1 -1
  108. package/src/helpers/accessibility-automation/constants.js +1 -1
  109. package/src/helpers/accessibility-automation/helper.js +1 -1
  110. package/src/helpers/accessibility-automation/scripts.js +1 -1
  111. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  112. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  113. package/src/helpers/ats/constants.js +1 -1
  114. package/src/helpers/ats/helper.js +1 -1
  115. package/src/helpers/capsMapping.js +1 -1
  116. package/src/helpers/central-scanner/constants.js +1 -1
  117. package/src/helpers/central-scanner/helpers.js +1 -1
  118. package/src/helpers/globals.js +1 -1
  119. package/src/helpers/helper.js +1 -1
  120. package/src/helpers/logger.js +1 -1
  121. package/src/helpers/patchHelper.js +1 -1
  122. package/src/helpers/patchHelpers.js +1 -1
  123. package/src/helpers/percy/Percy.js +1 -1
  124. package/src/helpers/percy/PercyBinary.js +1 -1
  125. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  126. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  127. package/src/helpers/percy/PercySDK.js +1 -1
  128. package/src/helpers/percy/index.js +1 -1
  129. package/src/helpers/percy/utils.js +1 -1
  130. package/src/helpers/performance/constants.js +1 -1
  131. package/src/helpers/performance/performance-tester.js +1 -1
  132. package/src/helpers/processHelper.js +1 -1
  133. package/src/helpers/request-spy.js +1 -1
  134. package/src/helpers/setKeepAlive.js +1 -1
  135. package/src/helpers/test-observability/constants.js +1 -1
  136. package/src/helpers/test-observability/error-handler.js +1 -1
  137. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  138. package/src/helpers/test-observability/sessionHandler.js +1 -1
  139. package/src/helpers/test-observability/utils.js +1 -1
  140. package/src/helpers/testhub/constants.js +1 -1
  141. package/src/helpers/testhub/testhubHandler.js +1 -1
  142. package/src/helpers/testhub/utils.js +1 -1
  143. package/src/helpers/timeoutPromise.js +1 -1
  144. package/src/helpers/utilities.js +1 -1
  145. package/src/helpers/w3cMapping.js +1 -1
  146. package/src/hubAllocationMethods.js +1 -1
  147. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x2b8c64=a9_0x1daf;function a9_0x1daf(_0x53410e,_0x15def7){const _0x2bdbfc=a9_0x2bdb();return a9_0x1daf=function(_0x1dafe4,_0x33be40){_0x1dafe4=_0x1dafe4-0x1b0;let _0x4e88c1=_0x2bdbfc[_0x1dafe4];return _0x4e88c1;},a9_0x1daf(_0x53410e,_0x15def7);}(function(_0x574424,_0x5f2745){const _0x44ede4=a9_0x1daf,_0x1b067c=_0x574424();while(!![]){try{const _0x45ba46=-parseInt(_0x44ede4(0x242))/0x1+-parseInt(_0x44ede4(0x1f3))/0x2+parseInt(_0x44ede4(0x1b9))/0x3*(-parseInt(_0x44ede4(0x20c))/0x4)+-parseInt(_0x44ede4(0x267))/0x5*(parseInt(_0x44ede4(0x2d7))/0x6)+-parseInt(_0x44ede4(0x271))/0x7+-parseInt(_0x44ede4(0x2ae))/0x8+parseInt(_0x44ede4(0x293))/0x9;if(_0x45ba46===_0x5f2745)break;else _0x1b067c['push'](_0x1b067c['shift']());}catch(_0x1069f4){_0x1b067c['push'](_0x1b067c['shift']());}}}(a9_0x2bdb,0xe76dc));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x2b8c64(0x1da)),got=require('got'),{v4:uuidv4}=require(a9_0x2b8c64(0x2cc)),webSocketUtils=require(a9_0x2b8c64(0x2a4)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x2b8c64(0x27e)),{getCloudProviderObject}=require(a9_0x2b8c64(0x2f4)),{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_0x2b8c64(0x1fd)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x2b8c64(0x276)),{createK8sClient}=require(a9_0x2b8c64(0x205)),{sendInstrumentationEvent}=require(a9_0x2b8c64(0x1d3));function a9_0x2bdb(){const _0x12db10=['Will\x20be\x20spawning\x20the\x20grid\x20','bsfYY','BPcgI','create-grid-called','evSAk','argv','kRHdD','ingress-nginx','createNamespace','IYOxK','sendResourceDataToHST','UBeKd','body','getResourceClientId','addListeners','wJGMl','KpYvq','\x20using\x20\x27','ajVCS','DRQjH','yMupk','IIrFz','fEqkn','cEnBC','deleteCluster','private-grid','eMPvN','delay','936504ptjFLI','vpc','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','create','isClusterPresent','kpYxW','Cluster\x20','nBeOK','EvDOG','GqyyO','HqYSA','WebSocket','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','s3bucket','description','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','MZGjZ','YSuWZ','cloudProvider','ndxPI','cLDJn','XpJFy','jtAWc','stringify','FXRsc','newCluster','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','xdweE','phjuO','/packages/cli/create-grid-checks','HDpcQ','lxDOn','http','username','mWpzq','NaTkQ','sObix','85NCFvPS','PJfCZ','isVPCPresent','YExJz','boolean','subnets','uaRkF','LyTEn','hLaLc','gridProfileId','8172003QEuXdB','pre-spawned-subnets-not-selected','grid-name','TQSMg','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','../../utils/gridComponents','vUGjQ','fqVKL','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','KYVDK','txHaS','get-grid-url-auth-failed','replace','../../utils/utilityMethods','/wd/hub','Browserstack','toLowerCase','pVirm','sQNwO','kMjoz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','GET','Skip\x20insecure\x20cert\x20verification.','jolxD','LOG','swSKZ','qWTsz','skipTlsCertVerify','CLI\x20run\x20started','Grid\x20profile\x20fetched\x20from\x20backend','qMdji','GoHFF','options','GzzIA','41854509JsByLG','dLVpX','clusterRegion','RazPI','kXuVd','TsEnt','getGridHostname','Cluster\x20created\x20successfully','NZrJq','password','tTfwX','CLI_RUN_STARTED','dMlaZ','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QVrRu','create-grid-checks-invalid-profile','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','../../utils/webSocketUtils','UdGVv','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','usage','rbvwb','Spawning\x20the\x20grid\x20','byymC','pre-spawned-invalid-subnets','ORjIM','prespawned-cluster-args-not-passed','3461880jhAZMz','minNodes','TjnUc','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Cluster:\x20','KfYqH','asBIS','create-grid-checks-non-200','message','concurrency','djbdf','QSTuQ','kJcnG','isPrivateGrid','sXFpl','czySS','uaROZ','kwmGd','createOtherResources','route53','ZrUlg','dkRVA','vxLxT','default','browserVersion','ryoDM','sWeBO','pqaSW','maxNodes','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','uuid','XQJzn','clusterName','Szsxh','includes','YUUCD','VFZka','builder','eMvyV','Namespace\x20created','spmaZ','238746gsCYrW','WeGtH','MCFHb','epilogue','cloud-provider','cluster-name','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','privateGrid','length','nzbRk','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','VtINt','setupAutoscaler','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','xWLxn','agSrG','non-aws-azure-cluster','dgXst','Create\x20a\x20private/public\x20grid.','error','split','readNamespacedService','opymC','NrJvc','HUIEW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','2|8|5|4|3|0|7|1|6','ZUdKk','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','../../cloudproviders/utils','kldSf','isSubnetsValid','OIkjx','AUvML','xlaTB','parse','mYQVz','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','LaQCo','bstackUsername','YgbRE','Adding\x20Websocket\x20listeners','Uljtd','3IdLGaS','warn','YonLf','Fuvlg','EcXcf','DJYNZ','dUMTx','tALGA','Spawning\x20Grid\x20on\x20the\x20Cluster','aZJEo','CAqZx','OwcvT','YWgmi','ATXqb','stack','bstackAccesskey','exit','vaUyr','IyVKx','string','info','name','TFRep','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','grid-profile','https://','../../utils/instrumentationUtils','IcTCa','NQhxs','create-grid-checks-auth-failed','statusCode','desc','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','reconnecting-websocket','securityGroups','Omzfn','existsSync','init-not-called','sendEventToBackend','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','://','soVZM','hubVersion','2|1|4|3|0','region','alreadyPresent','\x20in\x20existing\x20cluster\x20\x27','eEWNj','PxagZ','iznme','CLI\x20run\x20finished:\x20','ERROR','GsaKL','\x20are\x20not\x20present\x20in\x20VPC:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','meORs','TQpgJ','fioVL','688402XxceqD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','JjQey','Whqgp','skip-tls-cert-verify','uSRrt','instanceType','GzaTQ','pIjSe','../../config/constants','xDiyJ','XOwhB','true','CSYTi','<PasswordPlaceholder>','pcZht','grid-spawning-failed','../../utils/createk8sClient','kkHZI','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','AMruT','gridName','TpEjr','type','581012ZQKwHU','help','xyzDk','INFO','sXYcg','turboscale-managed-identity-','wrLnL','FxhuF','gridProfiles','https','managedBy','annotations','setupNewCluster','create-grid-checks-null-response','/packages/cli/get-grid-url?gridIdentifier=','\x27\x20grid\x20profile','UFjST','qOVeo','gridProfile','8|5|3|4|7|2|1|0|6','dPuUP','requestId','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','jjyCK','Grid\x20can\x20be\x20accessed\x20at:\x20','UYyAC'];a9_0x2bdb=function(){return _0x12db10;};return a9_0x2bdb();}exports['command']='grid',exports[a9_0x2b8c64(0x1d8)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x2b8c64(0x2d3)]=function(_0x57f494){const _0x5fb9d5=a9_0x2b8c64,_0x23df2e={};_0x23df2e[_0x5fb9d5(0x220)]=_0x5fb9d5(0x1b3),_0x23df2e[_0x5fb9d5(0x1bc)]=_0x5fb9d5(0x1cc),_0x23df2e[_0x5fb9d5(0x23b)]=_0x5fb9d5(0x1b2),_0x23df2e['nBeOK']=_0x5fb9d5(0x2f0),_0x23df2e[_0x5fb9d5(0x2b3)]=_0x5fb9d5(0x279),_0x23df2e[_0x5fb9d5(0x1f6)]=_0x5fb9d5(0x2a0),_0x23df2e['yMupk']='Create\x20a\x20private/public\x20grid.',_0x23df2e[_0x5fb9d5(0x28b)]=_0x5fb9d5(0x287),_0x23df2e['jtAWc']=_0x5fb9d5(0x26b),_0x23df2e['sQNwO']=_0x5fb9d5(0x20d);const _0x39b83a=_0x23df2e,_0x30d037={};_0x30d037[_0x5fb9d5(0x250)]=_0x39b83a[_0x5fb9d5(0x220)],_0x30d037['type']=_0x39b83a[_0x5fb9d5(0x1bc)];const _0x19ab57={};_0x19ab57['description']=_0x39b83a[_0x5fb9d5(0x23b)],_0x19ab57[_0x5fb9d5(0x20b)]=_0x39b83a[_0x5fb9d5(0x1bc)];const _0x30723c={};_0x30723c[_0x5fb9d5(0x250)]=_0x39b83a[_0x5fb9d5(0x249)],_0x30723c['type']=_0x39b83a['Fuvlg'];const _0x4b2e1c={};_0x4b2e1c['description']=_0x39b83a[_0x5fb9d5(0x2b3)],_0x4b2e1c['type']=_0x39b83a[_0x5fb9d5(0x1bc)];const _0x507310={};_0x507310[_0x5fb9d5(0x250)]=_0x39b83a['JjQey'],_0x507310[_0x5fb9d5(0x20b)]=_0x39b83a[_0x5fb9d5(0x1bc)];const _0x13a928={};_0x13a928[_0x5fb9d5(0x250)]=_0x39b83a[_0x5fb9d5(0x23a)],_0x13a928['type']=_0x39b83a[_0x5fb9d5(0x1bc)];const _0x4f63b1={};_0x4f63b1[_0x5fb9d5(0x250)]=_0x39b83a[_0x5fb9d5(0x28b)],_0x4f63b1[_0x5fb9d5(0x20b)]=_0x39b83a[_0x5fb9d5(0x258)],_0x4f63b1['default']=![];const _0x559548={};return _0x559548['grid-name']=_0x30d037,_0x559548[_0x5fb9d5(0x1d1)]=_0x19ab57,_0x559548[_0x5fb9d5(0x2dc)]=_0x30723c,_0x559548['cloud-provider']=_0x4b2e1c,_0x559548[_0x5fb9d5(0x1e5)]=_0x507310,_0x559548[_0x5fb9d5(0x23f)]=_0x13a928,_0x559548[_0x5fb9d5(0x1f8)]=_0x4f63b1,_0x57f494[_0x5fb9d5(0x2a7)](HELP_HEADER_MESSAGE[_0x5fb9d5(0x245)])[_0x5fb9d5(0x2da)](HELP_FOOTER_MESSAGE)[_0x5fb9d5(0x291)](_0x559548)['help'](_0x39b83a[_0x5fb9d5(0x283)])[_0x5fb9d5(0x22b)];},exports['handler']=async function(_0x214eeb){const _0x3e2a15=a9_0x2b8c64,_0xe4e941={'qOVeo':'2|4|7|14|11|9|3|6|5|12|8|13|0|10|1','kRHdD':function(_0x12a079,_0x46a13e,_0x108bf5,_0x5c60c1,_0x55b21f,_0x19ad83,_0x14d834,_0x5a2dd7,_0x2b3790,_0xd5749b,_0x551fbe,_0x3edaa8){return _0x12a079(_0x46a13e,_0x108bf5,_0x5c60c1,_0x55b21f,_0x19ad83,_0x14d834,_0x5a2dd7,_0x2b3790,_0xd5749b,_0x551fbe,_0x3edaa8);},'IcTCa':function(_0x3b111d,_0x45aa24){return _0x3b111d!==_0x45aa24;},'nzbRk':'error','ORjIM':_0x3e2a15(0x262),'UrVUX':_0x3e2a15(0x215),'TpEjr':_0x3e2a15(0x1b3),'CSYTi':_0x3e2a15(0x1cc),'CXoxf':_0x3e2a15(0x1b2),'VNcAS':_0x3e2a15(0x2f0),'tALGA':_0x3e2a15(0x279),'UFjST':_0x3e2a15(0x2a0),'bdcTA':_0x3e2a15(0x2e9),'kMjoz':_0x3e2a15(0x287),'czySS':_0x3e2a15(0x26b),'jjyCK':'help','YgCTa':_0x3e2a15(0x21f),'QSTuQ':_0x3e2a15(0x28d),'GoHFF':_0x3e2a15(0x1ba),'OwcvT':function(_0x579ea5,_0x4927d8){return _0x579ea5===_0x4927d8;},'xDiyJ':function(_0x517f9f){return _0x517f9f();},'NaTkQ':function(_0x29fa93,_0x92044){return _0x29fa93!==_0x92044;},'byymC':_0x3e2a15(0x2d6),'YSuWZ':_0x3e2a15(0x1f4),'LyTEn':function(_0x55572c,_0xb1c060,_0x43b892,_0x2aa5ed,_0x906fcc,_0x183a1c,_0x3cc988){return _0x55572c(_0xb1c060,_0x43b892,_0x2aa5ed,_0x906fcc,_0x183a1c,_0x3cc988);},'DRQjH':_0x3e2a15(0x229),'soVZM':_0x3e2a15(0x1de),'Uljtd':'<UsernamePlaceholder>','meORs':_0x3e2a15(0x202),'LaQCo':_0x3e2a15(0x1b7),'dUMTx':function(_0x3606e3,_0x2c156f){return _0x3606e3!==_0x2c156f;},'NZrJq':_0x3e2a15(0x2d4),'fqVKL':_0x3e2a15(0x2e5),'sXYcg':function(_0x5cf0a6,_0x119494){return _0x5cf0a6===_0x119494;},'TjnUc':_0x3e2a15(0x1ea),'AKFtr':_0x3e2a15(0x2b1),'kpYxW':function(_0x2ed2f2,_0xb391d0,_0x21b0c4,_0x551a31,_0x189898,_0x225301,_0x453ae3,_0x2c0ad7){return _0x2ed2f2(_0xb391d0,_0x21b0c4,_0x551a31,_0x189898,_0x225301,_0x453ae3,_0x2c0ad7);},'ZUdKk':_0x3e2a15(0x2ad),'TFRep':function(_0x59c697,_0x20f9b7){return _0x59c697===_0x20f9b7;},'GsaKL':_0x3e2a15(0x2ba),'NQhxs':_0x3e2a15(0x2cb),'cLDJn':_0x3e2a15(0x2e7),'UBeKd':_0x3e2a15(0x200),'Whqgp':'ukaPF','fioVL':function(_0x2c7422,_0x2d04cf,_0x3c85fd,_0x52826f,_0x307192,_0x29d050,_0x19db08){return _0x2c7422(_0x2d04cf,_0x3c85fd,_0x52826f,_0x307192,_0x29d050,_0x19db08);},'KpYvq':_0x3e2a15(0x274),'FxhuF':function(_0x2c32b3,_0x52d5dc){return _0x2c32b3===_0x52d5dc;},'IYOxK':'EmoUm','dkRVA':_0x3e2a15(0x2bc),'FXRsc':function(_0x1bcda4,_0xa5fb0d){return _0x1bcda4!==_0xa5fb0d;},'fEqkn':_0x3e2a15(0x2be),'YExJz':_0x3e2a15(0x286),'HUIEW':function(_0x2226bf,_0x30463b,_0x4d97d0){return _0x2226bf(_0x30463b,_0x4d97d0);},'txHaS':function(_0x1e6433,_0x26772e){return _0x1e6433!==_0x26772e;},'jolxD':_0x3e2a15(0x296),'XQJzn':function(_0x3320be,_0x4bc6d7){return _0x3320be===_0x4bc6d7;},'ONkJn':'WflsM','pVirm':_0x3e2a15(0x25d),'Szsxh':_0x3e2a15(0x285),'VtINt':function(_0x22902e,_0x33f762,_0xbc6fa2,_0x174bc6,_0x20ebfd,_0x29d30c,_0x410f67,_0x7f8408){return _0x22902e(_0x33f762,_0xbc6fa2,_0x174bc6,_0x20ebfd,_0x29d30c,_0x410f67,_0x7f8408);},'XUXsQ':_0x3e2a15(0x219),'KYVDK':_0x3e2a15(0x298),'dgXst':_0x3e2a15(0x2dd),'asBIS':_0x3e2a15(0x1d6),'Umekw':function(_0x1aa3ba,_0x3ff5bf){return _0x1aa3ba!==_0x3ff5bf;},'sObix':_0x3e2a15(0x257),'IrHGB':_0x3e2a15(0x2b5),'kwmGd':_0x3e2a15(0x28e),'cEnBC':function(_0x55f49a,_0x17349a){return _0x55f49a===_0x17349a;},'WddfQ':'ByKaX','evSAk':'nqCmC','aJdNV':'create-grid-checks-grid-already-exists','tTfwX':_0x3e2a15(0x1f1),'dLVpX':function(_0x31977c,_0x2a6594){return _0x31977c===_0x2a6594;},'AMruT':function(_0x4953ba,_0x2ddc6f){return _0x4953ba===_0x2ddc6f;},'YWgmi':_0x3e2a15(0x2d1),'GqyyO':function(_0x44a83c,_0x2af99a){return _0x44a83c===_0x2af99a;},'wJGMl':function(_0x78efd8,_0x13a13c){return _0x78efd8!==_0x13a13c;},'EcXcf':_0x3e2a15(0x2c2),'vxLxT':_0x3e2a15(0x260),'DJYNZ':_0x3e2a15(0x207),'ajVCS':function(_0x3cd1b4,_0x197dab,_0xcf7047,_0x471adf,_0x4952f4,_0x5e3280,_0x18355c,_0x44598d){return _0x3cd1b4(_0x197dab,_0xcf7047,_0x471adf,_0x4952f4,_0x5e3280,_0x18355c,_0x44598d);},'xyzDk':_0x3e2a15(0x2a2),'QVrRu':function(_0x284ce7,_0x348fdf){return _0x284ce7===_0x348fdf;},'eEWNj':function(_0x578352,_0x5b5363){return _0x578352!==_0x5b5363;},'hLaLc':_0x3e2a15(0x2c9),'MZGjZ':function(_0x31183,_0x573f2c){return _0x31183===_0x573f2c;},'FADci':'BTqPH','Omzfn':'ffIUV','xlaTB':function(_0x227760,_0x11f4bf){return _0x227760!==_0x11f4bf;},'ryoDM':function(_0x5c7702,_0x442fe9){return _0x5c7702===_0x442fe9;},'djbdf':_0x3e2a15(0x225),'bsfYY':function(_0x1bbeed,_0x5cd5e4,_0x2c8eb2,_0x4fbcd6,_0xaf1f01,_0xb45a64,_0x56547a,_0x3ad7a4,_0xb0b2b8,_0x194a6f,_0x48901f,_0x1412eb){return _0x1bbeed(_0x5cd5e4,_0x2c8eb2,_0x4fbcd6,_0xaf1f01,_0xb45a64,_0x56547a,_0x3ad7a4,_0xb0b2b8,_0x194a6f,_0x48901f,_0x1412eb);},'nhmUR':function(_0xa548c4,_0x5b7284){return _0xa548c4===_0x5b7284;},'YgbRE':function(_0x16255d,_0x23db0f){return _0x16255d===_0x23db0f;},'NrJvc':_0x3e2a15(0x1c2),'GzaTQ':function(_0x7f3def,_0x213bd2){return _0x7f3def===_0x213bd2;},'wrLnL':_0x3e2a15(0x2f5),'dMlaZ':function(_0x45c7c2,_0x1e93ca,_0x2e0167,_0x4ee272,_0x3cec53,_0x177d6f,_0x53acf3,_0x9591d9,_0x36ee6a,_0x47379c,_0x79dce3,_0xeff329){return _0x45c7c2(_0x1e93ca,_0x2e0167,_0x4ee272,_0x3cec53,_0x177d6f,_0x53acf3,_0x9591d9,_0x36ee6a,_0x47379c,_0x79dce3,_0xeff329);},'UdGVv':function(_0x162ef5,_0x251fcb){return _0x162ef5!==_0x251fcb;},'IyVKx':_0x3e2a15(0x261),'ndxPI':_0x3e2a15(0x2f1),'CAqZx':function(_0x4acdaa,_0x44d505,_0x29380b,_0x2dd9a7,_0x316549,_0x49e5d9,_0x4f6d38){return _0x4acdaa(_0x44d505,_0x29380b,_0x2dd9a7,_0x316549,_0x49e5d9,_0x4f6d38);},'kXuVd':function(_0x13fc6f,_0x4d6a34){return _0x13fc6f===_0x4d6a34;},'mYQVz':_0x3e2a15(0x2a3),'YonLf':function(_0x42bc34,_0x1826a7){return _0x42bc34!=_0x1826a7;},'vaUyr':function(_0x171495,_0x348272){return _0x171495!==_0x348272;},'OIkjx':function(_0x4f06fc,_0x216990){return _0x4f06fc!=_0x216990;},'avqNn':function(_0x59704c,_0x4cf248){return _0x59704c>_0x4cf248;},'EvDOG':function(_0x3a814e,_0x1650a0){return _0x3a814e===_0x1650a0;},'uSRrt':_0x3e2a15(0x222),'bvFbR':_0x3e2a15(0x272),'pIjSe':_0x3e2a15(0x2a6),'qMdji':function(_0x3667ec,_0x4544a5,_0x174539,_0x2297e4,_0x1aa9a9,_0x3bd3ca,_0x5a8177,_0x2f45eb){return _0x3667ec(_0x4544a5,_0x174539,_0x2297e4,_0x1aa9a9,_0x3bd3ca,_0x5a8177,_0x2f45eb);},'phjuO':'pre-spawned-invalid-vpc','eMPvN':_0x3e2a15(0x2ab),'BPcgI':_0x3e2a15(0x1e4),'mWpzq':_0x3e2a15(0x29a),'opymC':'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.','VAPSU':function(_0x1d2488,_0x461d45){return _0x1d2488===_0x461d45;},'XOwhB':function(_0x15d5fa,_0x7ffafa){return _0x15d5fa===_0x7ffafa;},'agSrG':function(_0xd9fbb3,_0x3b50ea){return _0xd9fbb3(_0x3b50ea);},'kkHZI':'Creating\x20namespace','HqYSA':'default','rbvwb':_0x3e2a15(0x280),'swSKZ':'Namespace\x20Created','KHYRn':_0x3e2a15(0x2d5),'HzWqm':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','vUGjQ':_0x3e2a15(0x1c1),'MqrsH':function(_0x50e41,_0x552b9a){return _0x50e41===_0x552b9a;},'ATXqb':function(_0x14b625,_0x108ccd,_0x3c0956,_0x30d10a,_0x209158,_0x5e4343,_0x1182d2,_0x418678,_0x3daf22,_0x2f728,_0x58a1f5){return _0x14b625(_0x108ccd,_0x3c0956,_0x30d10a,_0x209158,_0x5e4343,_0x1182d2,_0x418678,_0x3daf22,_0x2f728,_0x58a1f5);},'sWeBO':'Grid\x20spawned\x20on\x20the\x20cluster','GzzIA':_0x3e2a15(0x275),'StzaN':function(_0x397ec6,_0x52ee03,_0x36e109,_0x384a8e,_0x5b6dcf){return _0x397ec6(_0x52ee03,_0x36e109,_0x384a8e,_0x5b6dcf);},'GvPyL':function(_0x695048,_0x551404,_0x19b646){return _0x695048(_0x551404,_0x19b646);},'yGacB':'private-ingress-nginx-controller','WeGtH':'ingress-nginx-controller','pcZht':_0x3e2a15(0x22d),'ZuokT':function(_0x5bfcdb,_0x48d3c5,_0x27c662){return _0x5bfcdb(_0x48d3c5,_0x27c662);},'uaRkF':_0x3e2a15(0x2e4),'XKhlE':'get-grid-url-null-response','uQuBA':_0x3e2a15(0x244),'rBKnW':_0x3e2a15(0x27c),'AUvML':function(_0x1eb76f,_0x236985){return _0x1eb76f!==_0x236985;},'MCFHb':function(_0x2bc792,_0x324f9a,_0x59a8a6,_0x3f4f6d,_0x308b02,_0x288009,_0x31cc47,_0x202992){return _0x2bc792(_0x324f9a,_0x59a8a6,_0x3f4f6d,_0x308b02,_0x288009,_0x31cc47,_0x202992);},'PxagZ':'get-grid-url-non-200','kETMQ':'Deleting\x20the\x20CloudFormation\x20Stacks','VFZka':function(_0x58a26a,_0x1c91fc,_0x8fe698,_0x45899b,_0x1781a2,_0x1abfc5){return _0x58a26a(_0x1c91fc,_0x8fe698,_0x45899b,_0x1781a2,_0x1abfc5);},'PJfCZ':_0x3e2a15(0x204)};let _0x9daaaf=![],_0x5534f6=![],_0x82aa8,_0x2ac01c,_0x579c2a,_0x5a27b7,_0x44808d,_0x49f55a,_0x41edf9,_0x376ac0,_0x359b8b,_0x4002eb,_0x1167b1,_0x70d48c,_0x4bfa6a,_0x37c3e4,_0x231789=0x1,_0x15341e=0xe;try{global_registry[_0x3e2a15(0x221)]=_0xe4e941[_0x3e2a15(0x1fe)](uuidv4),global_registry[_0x3e2a15(0x2bb)]=![];if(!fs[_0x3e2a15(0x1dd)](_0xe4e941['xDiyJ'](getCredentialsPath))){if(_0xe4e941['NaTkQ'](_0xe4e941[_0x3e2a15(0x2aa)],_0xe4e941['byymC'])){const _0x502217=_0xe4e941[_0x3e2a15(0x21d)][_0x3e2a15(0x2eb)]('|');let _0x1d7c12=0x0;while(!![]){switch(_0x502217[_0x1d7c12++]){case'0':_0x4bf984=_0x5b9a5e[_0x3e2a15(0x2c6)];continue;case'1':_0xe4e941[_0x3e2a15(0x22c)](_0x379816,_0x44e142,_0x55046f,_0x14fe0b,_0x22d1b8,_0x362e31,_0x39b9db,_0x444c2b,_0x713d10,_0x901491,_0x1b9183,_0x2c67cd);continue;case'2':_0xe292b6=_0x3e2a15(0x24e)+_0x2314be;continue;case'3':_0x3dee0b=null;continue;case'4':_0x505e1a[_0x3e2a15(0x1cd)](_0x3d8a3e);continue;case'5':_0x4ac53a=_0x341e5f['s3bucket'];continue;case'6':_0x925834=null;continue;case'7':const _0x21b222={};_0x21b222[_0x3e2a15(0x20b)]=_0x194a49['LOG'],_0x21b222[_0x3e2a15(0x2b6)]=_0x15e0dd,_0x5bfca2['sendEventToBackend'](_0x45b305,_0x21b222);continue;case'8':_0x393fd9=_0x13211f[_0x3e2a15(0x2ca)];continue;case'9':_0x48e54e=null;continue;case'10':_0xe4e941['IcTCa'](_0x4a5a2a[_0x3e2a15(0x2de)],_0xb22be0)&&_0x12f708[_0x3e2a15(0x2de)]&&(_0x2fefea['isPrivateGrid']=!![]);continue;case'11':_0x136064=_0x30b713[_0x3e2a15(0x1fa)];continue;case'12':_0x597017=_0x598340[_0x3e2a15(0x2af)];continue;case'13':_0x5d76a8=_0x31e035[_0x3e2a15(0x1e3)];continue;case'14':_0x2c8be7=_0x10fd00[_0x3e2a15(0x2b7)];continue;}break;}}else console[_0x3e2a15(0x2ea)](_0xe4e941[_0x3e2a15(0x253)]),await _0xe4e941[_0x3e2a15(0x26e)](sendInstrumentationEvent,_0x214eeb,_0xe4e941[_0x3e2a15(0x239)],messageTypes['ERROR'],_0xe4e941[_0x3e2a15(0x1e2)],null,_0x214eeb),process[_0x3e2a15(0x1c9)](0x1);}await _0xe4e941[_0x3e2a15(0x26e)](sendInstrumentationEvent,_0x214eeb,_0xe4e941[_0x3e2a15(0x239)],messageTypes[_0x3e2a15(0x20f)],null,null,_0x214eeb);const _0x34ad87=JSON[_0x3e2a15(0x1b0)](fs['readFileSync'](_0xe4e941[_0x3e2a15(0x1fe)](getCredentialsPath)));global_registry[_0x3e2a15(0x1b5)]=_0x34ad87['Browserstack'][_0x3e2a15(0x263)],global_registry[_0x3e2a15(0x1c8)]=_0x34ad87[_0x3e2a15(0x280)][_0x3e2a15(0x29c)];const _0x2e4e90=WS_ENDPOINT[_0x3e2a15(0x27d)](_0xe4e941[_0x3e2a15(0x1b8)],_0x34ad87['Browserstack'][_0x3e2a15(0x263)])[_0x3e2a15(0x27d)](_0xe4e941[_0x3e2a15(0x1f0)],_0x34ad87[_0x3e2a15(0x280)]['password']),_0x35594f={};_0x35594f[_0x3e2a15(0x24d)]=ws,_0x35594f['connectionTimeout']=0x36ee80,_0x70d48c=new ReconnectingWebSocket(_0x2e4e90,[],_0x35594f),logger['debug'](_0xe4e941[_0x3e2a15(0x1b4)]),webSocketUtils[_0x3e2a15(0x234)](_0x70d48c,_0x214eeb['user'],_0x214eeb[_0x3e2a15(0x29c)]);const _0x325cfa=_0x214eeb[_0x3e2a15(0x209)]||DEFAULT_GRID_NAME;if(_0x214eeb['clusterName']||_0x214eeb[_0x3e2a15(0x254)]||_0x214eeb['region']){if(_0xe4e941[_0x3e2a15(0x1bf)](_0xe4e941[_0x3e2a15(0x29b)],_0xe4e941[_0x3e2a15(0x278)])){!(_0x214eeb['clusterName']&&_0x214eeb[_0x3e2a15(0x254)]&&_0x214eeb['region'])&&(_0xe4e941[_0x3e2a15(0x210)](_0xe4e941[_0x3e2a15(0x2b0)],_0xe4e941[_0x3e2a15(0x2b0)])?(_0x82aa8=_0xe4e941['AKFtr'],await _0xe4e941[_0x3e2a15(0x247)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941[_0x3e2a15(0x2f2)],_0xe4e941[_0x3e2a15(0x2e0)]),logger[_0x3e2a15(0x2ea)](_0x82aa8),process[_0x3e2a15(0x1c9)](0x1)):_0x41d952=_0x25da5b[_0x421672[_0x3e2a15(0x21e)]]);![AWS,AZURE,GCP][_0x3e2a15(0x2d0)](_0x214eeb[_0x3e2a15(0x254)][_0x3e2a15(0x281)]())&&(_0xe4e941[_0x3e2a15(0x1cf)](_0xe4e941[_0x3e2a15(0x1ed)],_0xe4e941[_0x3e2a15(0x1ed)])?(_0x82aa8=_0xe4e941[_0x3e2a15(0x1d5)],await _0xe4e941[_0x3e2a15(0x247)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941[_0x3e2a15(0x256)],_0xe4e941[_0x3e2a15(0x2e0)]),logger[_0x3e2a15(0x2ea)](_0x82aa8),process[_0x3e2a15(0x1c9)](0x1)):_0x505ff8[_0x3e2a15(0x230)]());_0x214eeb['privateGrid']&&_0xe4e941['sXYcg'](_0x214eeb[_0x3e2a15(0x2de)]['toLowerCase'](),_0xe4e941[_0x3e2a15(0x231)])&&(_0xe4e941[_0x3e2a15(0x265)](_0xe4e941['Whqgp'],_0xe4e941[_0x3e2a15(0x1f7)])?_0x54f81d=null:global_registry['isPrivateGrid']=!![]);global_registry[_0x3e2a15(0x254)]=_0x214eeb[_0x3e2a15(0x254)],global_registry[_0x3e2a15(0x295)]=_0x214eeb[_0x3e2a15(0x1e5)],global_registry[_0x3e2a15(0x2ce)]=_0x214eeb['clusterName'];const _0x255d28=await _0xe4e941[_0x3e2a15(0x1f2)](getCloudProviderObject,_0x214eeb[_0x3e2a15(0x254)],_0x214eeb[_0x3e2a15(0x2ce)],_0x325cfa,_0x70d48c,webSocketUtils,_0x214eeb),_0x4bfd79=await _0x255d28[_0x3e2a15(0x246)]();if(!_0x4bfd79){if(_0xe4e941['dUMTx'](_0xe4e941[_0x3e2a15(0x236)],_0xe4e941[_0x3e2a15(0x236)])){const _0x1138da={};_0x1138da[_0x3e2a15(0x20b)]=_0x4bd4dd['LOG'],_0x1138da[_0x3e2a15(0x2b6)]=_0x2bcee8,_0x3fbd16[_0x3e2a15(0x1df)](_0x8072e5,_0x1138da,_0xe4e941[_0x3e2a15(0x2e0)],!![]);}else logger[_0x3e2a15(0x1cd)](_0x3e2a15(0x2b2)+_0x214eeb[_0x3e2a15(0x2ce)]+_0x3e2a15(0x1f5)),_0x9daaaf=![],_0x5534f6=!![];}else{if(_0xe4e941[_0x3e2a15(0x213)](_0xe4e941[_0x3e2a15(0x22f)],_0xe4e941[_0x3e2a15(0x2c3)]))throw new _0xecd59c('Cluster\x20'+_0x1e60ea+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x9daaaf=!![];}_0x579c2a=_0x214eeb[_0x3e2a15(0x2ce)],_0x2ac01c=_0x214eeb[_0x3e2a15(0x254)][_0x3e2a15(0x281)](),_0x5a27b7=_0x214eeb[_0x3e2a15(0x1e5)];}else _0x475ad2[_0x3e2a15(0x1e5)]=_0xfca81c,_0x368e93['cloudProvider']=_0x2a7d23,_0xbf4f0d[_0x3e2a15(0x25b)]=!![];}else _0x214eeb[_0x3e2a15(0x21e)]&&(_0xe4e941[_0x3e2a15(0x25a)](_0xe4e941['fEqkn'],_0xe4e941[_0x3e2a15(0x23c)])?_0xab4e05[_0x3e2a15(0x2ea)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x42bdfd+'\x20\x0a'+_0x6192d4['stringify'](_0x39f384['stack'])):global_registry['gridProfile']=_0x214eeb[_0x3e2a15(0x21e)]);global_registry[_0x3e2a15(0x209)]=_0x214eeb[_0x3e2a15(0x209)];const _0x138df9={'method':_0xe4e941[_0x3e2a15(0x26a)],'headers':_0xe4e941[_0x3e2a15(0x2ef)](getAuthHeader,_0x34ad87['Browserstack'][_0x3e2a15(0x263)],_0x34ad87['Browserstack'][_0x3e2a15(0x29c)]),'throwHttpErrors':![]},_0x5c283f={};_0x5c283f[_0x3e2a15(0x209)]=_0x325cfa;const _0x5f28a1=_0x5c283f;_0x5534f6&&(_0xe4e941[_0x3e2a15(0x27b)](_0xe4e941[_0x3e2a15(0x288)],_0xe4e941[_0x3e2a15(0x288)])?_0x54fd2c[_0x3e2a15(0x2bb)]=!![]:(_0x5f28a1[_0x3e2a15(0x1e5)]=_0x5a27b7,_0x5f28a1['cloudProvider']=_0x2ac01c,_0x5f28a1[_0x3e2a15(0x25b)]=!![]));const _0x497ce0='https://'+AG_API_URL+_0x3e2a15(0x25f),_0x390895={'searchParams':_0x5f28a1,'throwHttpErrors':![],..._0x138df9},_0x534efa=_0x390895,_0x2a4f9c=await _0xe4e941[_0x3e2a15(0x2ef)](got,_0x497ce0,_0x534efa);(_0xe4e941['OwcvT'](_0x2a4f9c,null)||_0xe4e941[_0x3e2a15(0x1cf)](_0x2a4f9c,undefined))&&(_0xe4e941[_0x3e2a15(0x2cd)](_0xe4e941['ONkJn'],_0xe4e941[_0x3e2a15(0x282)])?_0x5d5e41=!![]:(_0x82aa8=_0xe4e941[_0x3e2a15(0x2cf)],await _0xe4e941[_0x3e2a15(0x2e2)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941['XUXsQ'],_0xe4e941['nzbRk']),logger[_0x3e2a15(0x2ea)](_0x82aa8),process['exit'](0x1)));_0xe4e941[_0x3e2a15(0x1c4)](_0x2a4f9c[_0x3e2a15(0x1d7)],0x191)&&(_0xe4e941[_0x3e2a15(0x2cd)](_0xe4e941[_0x3e2a15(0x27a)],_0xe4e941[_0x3e2a15(0x27a)])?(_0x82aa8=_0xe4e941[_0x3e2a15(0x2e8)],await _0xe4e941[_0x3e2a15(0x247)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941[_0x3e2a15(0x2b4)],_0xe4e941['nzbRk']),logger[_0x3e2a15(0x2ea)](_0x82aa8),process['exit'](0x1)):_0x58e07f[_0x3e2a15(0x1cd)]('Found\x20VPC:\x20'+_0xe7ca1a+'\x20'));_0xe4e941['Umekw'](_0x2a4f9c['statusCode'],0xc8)&&(_0xe4e941['IcTCa'](_0xe4e941[_0x3e2a15(0x266)],_0xe4e941[_0x3e2a15(0x266)])?_0x2fc21a[_0x3e2a15(0x2bb)]=!![]:(_0x82aa8=_0x3e2a15(0x2f3)+JSON[_0x3e2a15(0x259)](_0x2a4f9c[_0x3e2a15(0x232)]),await _0xe4e941['kpYxW'](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes['ERROR'],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941['IrHGB'],_0xe4e941[_0x3e2a15(0x2e0)]),logger['error'](_0x82aa8),process['exit'](0x1)));const _0x1c73f6=JSON[_0x3e2a15(0x1b0)](_0x2a4f9c[_0x3e2a15(0x232)]),_0x164bd9={};_0x164bd9['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x164bd9[_0x3e2a15(0x2b6)]=_0xe4e941['QSTuQ'],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x164bd9);const _0x3a141f={};_0x3a141f[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x3a141f['message']=_0xe4e941[_0x3e2a15(0x2bf)],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x3a141f);_0x1c73f6[_0x3e2a15(0x1e6)]&&(_0xe4e941[_0x3e2a15(0x23d)](_0xe4e941['WddfQ'],_0xe4e941[_0x3e2a15(0x22a)])?_0x1596b7=_0xe4e941[_0x3e2a15(0x2ac)]:(_0x82aa8='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x325cfa+_0x3e2a15(0x1d9),await _0xe4e941[_0x3e2a15(0x2e2)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941['aJdNV'],_0xe4e941[_0x3e2a15(0x2e0)]),logger['error'](_0x82aa8),process['exit'](0x1)));const _0x4f6646=_0x1c73f6[_0x3e2a15(0x214)];let _0x2e951c=_0x4f6646[_0x1c73f6['defaultGridProfile']];_0x214eeb[_0x3e2a15(0x21e)]&&(_0xe4e941[_0x3e2a15(0x27b)](_0xe4e941[_0x3e2a15(0x29d)],_0xe4e941[_0x3e2a15(0x29d)])?(_0x327127=_0x24a2a9[_0x3e2a15(0x2c1)],_0x17af37=_0xe4e941['UrVUX']):_0x2e951c=_0x4f6646[_0x214eeb[_0x3e2a15(0x21e)]]);if(_0xe4e941[_0x3e2a15(0x294)](_0x9daaaf,![])&&_0xe4e941[_0x3e2a15(0x2cd)](_0x5534f6,![])){if(_0xe4e941[_0x3e2a15(0x208)](_0xe4e941['YWgmi'],_0xe4e941[_0x3e2a15(0x1c5)])){_0xe4e941[_0x3e2a15(0x24b)](_0x2e951c,undefined)&&(_0xe4e941[_0x3e2a15(0x235)](_0xe4e941[_0x3e2a15(0x1bd)],_0xe4e941[_0x3e2a15(0x2c4)])?(_0x82aa8=_0xe4e941[_0x3e2a15(0x1be)],await _0xe4e941[_0x3e2a15(0x238)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941[_0x3e2a15(0x20e)],_0xe4e941[_0x3e2a15(0x2e0)]),logger[_0x3e2a15(0x2ea)](_0x82aa8),process['exit'](0x1)):_0x1b7ee6['gridProfile']=_0x885526[_0x3e2a15(0x21e)]);global_registry[_0x3e2a15(0x270)]=_0x2e951c['id'],_0x82aa8=_0x3e2a15(0x226)+_0x325cfa+_0x3e2a15(0x237)+_0x2e951c[_0x3e2a15(0x1ce)]+_0x3e2a15(0x21b),logger[_0x3e2a15(0x1cd)](_0x82aa8);const _0x20d3c0={};_0x20d3c0['type']=WS_EVENTS[_0x3e2a15(0x289)],_0x20d3c0[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils['sendEventToBackend'](_0x70d48c,_0x20d3c0),_0x2ac01c=_0x2e951c['cloudProvider'],_0x579c2a=_0x2e951c[_0x3e2a15(0x2ce)],_0x5a27b7=_0x2e951c[_0x3e2a15(0x1e5)],_0x44808d=_0x2e951c[_0x3e2a15(0x2b7)],_0x49f55a=_0x2e951c[_0x3e2a15(0x1fa)],_0x41edf9=_0x2e951c[_0x3e2a15(0x243)],_0x376ac0=_0x2e951c[_0x3e2a15(0x1db)],_0x359b8b=_0x2e951c[_0x3e2a15(0x26c)],_0x4002eb=_0x2e951c['s3bucket'],_0x231789=_0x2e951c['minNodes'],_0x15341e=_0x2e951c[_0x3e2a15(0x2ca)],_0x4bfa6a=_0x1c73f6['hubVersion'],_0x37c3e4=_0x1c73f6[_0x3e2a15(0x2c6)];if(_0x41edf9&&_0xe4e941[_0x3e2a15(0x2a1)](_0x41edf9['length'],0x0)){if(_0xe4e941[_0x3e2a15(0x1e8)](_0xe4e941[_0x3e2a15(0x26f)],_0xe4e941[_0x3e2a15(0x26f)])){const _0x468c02={};_0x468c02[_0x3e2a15(0x250)]=_0xe4e941[_0x3e2a15(0x20a)],_0x468c02[_0x3e2a15(0x20b)]=_0xe4e941[_0x3e2a15(0x201)];const _0x2e296c={};_0x2e296c['description']=_0xe4e941['CXoxf'],_0x2e296c[_0x3e2a15(0x20b)]=_0xe4e941[_0x3e2a15(0x201)];const _0x4e4b30={};_0x4e4b30[_0x3e2a15(0x250)]=_0xe4e941['VNcAS'],_0x4e4b30['type']=_0xe4e941[_0x3e2a15(0x201)];const _0x3c6b27={};_0x3c6b27[_0x3e2a15(0x250)]=_0xe4e941[_0x3e2a15(0x1c0)],_0x3c6b27[_0x3e2a15(0x20b)]=_0xe4e941['CSYTi'];const _0x13977a={};_0x13977a[_0x3e2a15(0x250)]=_0xe4e941[_0x3e2a15(0x21c)],_0x13977a[_0x3e2a15(0x20b)]=_0xe4e941[_0x3e2a15(0x201)];const _0x6b4d68={};_0x6b4d68['description']=_0xe4e941['bdcTA'],_0x6b4d68[_0x3e2a15(0x20b)]=_0xe4e941[_0x3e2a15(0x201)];const _0x47795a={};_0x47795a[_0x3e2a15(0x250)]=_0xe4e941[_0x3e2a15(0x284)],_0x47795a[_0x3e2a15(0x20b)]=_0xe4e941[_0x3e2a15(0x2bd)],_0x47795a[_0x3e2a15(0x2c5)]=![];const _0x27cb13={};return _0x27cb13[_0x3e2a15(0x273)]=_0x468c02,_0x27cb13[_0x3e2a15(0x1d1)]=_0x2e296c,_0x27cb13[_0x3e2a15(0x2dc)]=_0x4e4b30,_0x27cb13[_0x3e2a15(0x2db)]=_0x3c6b27,_0x27cb13['region']=_0x13977a,_0x27cb13['private-grid']=_0x6b4d68,_0x27cb13[_0x3e2a15(0x1f8)]=_0x47795a,_0x489236[_0x3e2a15(0x2a7)](_0x509c35[_0x3e2a15(0x245)])[_0x3e2a15(0x2da)](_0x5f3370)[_0x3e2a15(0x291)](_0x27cb13)[_0x3e2a15(0x20d)](_0xe4e941[_0x3e2a15(0x223)])[_0x3e2a15(0x22b)];}else _0x41edf9=null;}_0x359b8b&&_0xe4e941['MZGjZ'](_0x359b8b['length'],0x0)&&(_0xe4e941['AMruT'](_0xe4e941['FADci'],_0xe4e941[_0x3e2a15(0x1dc)])?_0x30700d=null:_0x359b8b=null);if(_0xe4e941[_0x3e2a15(0x2f9)](_0x2e951c[_0x3e2a15(0x2de)],undefined)&&_0x2e951c[_0x3e2a15(0x2de)]){if(_0xe4e941[_0x3e2a15(0x2c7)](_0xe4e941[_0x3e2a15(0x2b8)],_0xe4e941[_0x3e2a15(0x2b8)]))global_registry[_0x3e2a15(0x2bb)]=!![];else{const _0x4539d9=_0xe4e941['YgCTa'][_0x3e2a15(0x2eb)]('|');let _0x589b96=0x0;while(!![]){switch(_0x4539d9[_0x589b96++]){case'0':_0x50bc75[_0x3e2a15(0x1e3)]=_0x5033f7['hubVersion'];continue;case'1':_0x1f66e5[_0x3e2a15(0x2ce)]=_0x2d665d;continue;case'2':_0x46bcb5[_0x3e2a15(0x295)]=_0x38a5bd;continue;case'3':_0x240fb7[_0x3e2a15(0x1cd)](_0x413e63);continue;case'4':const _0x327a0e={};_0x327a0e[_0x3e2a15(0x20b)]=_0x114c60['LOG'],_0x327a0e[_0x3e2a15(0x2b6)]=_0x219d65,_0x48624d['sendEventToBackend'](_0x35b75e,_0x327a0e);continue;case'5':_0x2c3eef='Spawning\x20the\x20grid\x20'+_0x231add+'\x20in\x20existing\x20cluster\x20\x27'+_0x3c5fa3+'\x27';continue;case'6':_0x25e4de['browserVersion']=_0x4c97fa[_0x3e2a15(0x2c6)];continue;case'7':_0x55262c[_0x3e2a15(0x254)]=_0x5f5515;continue;case'8':const _0x201a19={};_0x201a19['type']=_0x1b5e5b['CLI_RUN_STARTED'],_0x201a19[_0x3e2a15(0x2b6)]=_0xe4e941[_0x3e2a15(0x2b9)],_0x4e1a58['sendEventToBackend'](_0x282d07,_0x201a19);continue;}break;}}}_0xe4e941[_0x3e2a15(0x227)](updateGlobalRegistryWithConfig,_0x2ac01c,_0x579c2a,_0x5a27b7,_0x44808d,_0x49f55a,_0x4002eb,_0x2e951c,_0x4bfa6a,_0x37c3e4,_0x231789,_0x15341e);}else _0x393c7b[_0x3e2a15(0x1cd)]('Found\x20Subnets:\x20'+_0x2b9298[_0x3e2a15(0x259)](_0x3c12f9)+'\x20');}else{if(_0xe4e941['nhmUR'](_0x5534f6,!![])){if(_0xe4e941[_0x3e2a15(0x1b6)](_0xe4e941[_0x3e2a15(0x2ee)],_0xe4e941['NrJvc'])){_0x82aa8=_0x3e2a15(0x24e)+_0x325cfa,logger[_0x3e2a15(0x1cd)](_0x82aa8);const _0x5813cb={};_0x5813cb[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x5813cb[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x5813cb),_0x44808d=_0x2e951c['concurrency'],_0x49f55a=_0x2e951c[_0x3e2a15(0x1fa)],_0x41edf9=null,_0x376ac0=null,_0x359b8b=null,_0x4002eb=_0x2e951c[_0x3e2a15(0x24f)],_0x231789=_0x2e951c[_0x3e2a15(0x2af)],_0x15341e=_0x2e951c[_0x3e2a15(0x2ca)],_0x4bfa6a=_0x1c73f6['hubVersion'],_0x37c3e4=_0x1c73f6[_0x3e2a15(0x2c6)],_0xe4e941[_0x3e2a15(0x1bf)](_0x2e951c[_0x3e2a15(0x2de)],undefined)&&_0x2e951c[_0x3e2a15(0x2de)]&&(_0xe4e941[_0x3e2a15(0x1fb)](_0xe4e941[_0x3e2a15(0x212)],_0xe4e941['wrLnL'])?global_registry[_0x3e2a15(0x2bb)]=!![]:_0x597cd6['isPrivateGrid']=!![]),_0xe4e941[_0x3e2a15(0x29f)](updateGlobalRegistryWithConfig,_0x2ac01c,_0x579c2a,_0x5a27b7,_0x44808d,_0x49f55a,_0x4002eb,_0x2e951c,_0x4bfa6a,_0x37c3e4,_0x231789,_0x15341e);}else _0x4f12f0[_0x3e2a15(0x1cd)](_0x3e2a15(0x2b2)+_0x3425ee[_0x3e2a15(0x2ce)]+_0x3e2a15(0x1f5)),_0x40c30a=![],_0x4a8a98=!![];}else{if(_0xe4e941[_0x3e2a15(0x2a5)](_0xe4e941['IyVKx'],_0xe4e941[_0x3e2a15(0x1cb)])){const _0x458ac3={};_0x458ac3['type']=_0x13a36d[_0x3e2a15(0x289)],_0x458ac3[_0x3e2a15(0x2b6)]=_0x3e2a15(0x248)+_0x1fd09a+_0x3e2a15(0x1ef),_0x32bdf7[_0x3e2a15(0x1df)](_0x1d4ee5,_0x458ac3,_0xe4e941[_0x3e2a15(0x290)]),_0x14b6ee[_0x3e2a15(0x1cd)](_0x3e2a15(0x248)+_0x45a358+_0x3e2a15(0x1ef)),_0x1e19d7=!![];if(_0xe4e941[_0x3e2a15(0x1c4)](_0x1e16f0,!![]))throw new _0x2b1f14(_0x3e2a15(0x248)+_0xcf033a+_0x3e2a15(0x2e1));}else{const _0x1506fa=_0xe4e941[_0x3e2a15(0x255)][_0x3e2a15(0x2eb)]('|');let _0x11f87a=0x0;while(!![]){switch(_0x1506fa[_0x11f87a++]){case'0':global_registry[_0x3e2a15(0x295)]=_0x5a27b7;continue;case'1':global_registry[_0x3e2a15(0x1e3)]=_0x1c73f6[_0x3e2a15(0x1e3)];continue;case'2':const _0x44046c={};_0x44046c['type']=WS_EVENTS[_0x3e2a15(0x29e)],_0x44046c['message']=_0xe4e941[_0x3e2a15(0x2b9)],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x44046c);continue;case'3':global_registry['cloudProvider']=_0x2ac01c;continue;case'4':const _0x1d473e={};_0x1d473e[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x1d473e[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x1d473e);continue;case'5':logger[_0x3e2a15(0x1cd)](_0x82aa8);continue;case'6':global_registry[_0x3e2a15(0x2c6)]=_0x1c73f6[_0x3e2a15(0x2c6)];continue;case'7':global_registry[_0x3e2a15(0x2ce)]=_0x579c2a;continue;case'8':_0x82aa8=_0x3e2a15(0x2a9)+_0x325cfa+_0x3e2a15(0x1e7)+_0x579c2a+'\x27';continue;}break;}}}}const _0x3ad263=await _0xe4e941[_0x3e2a15(0x1c3)](getCloudProviderObject,_0x2ac01c,_0x579c2a,_0x325cfa,_0x70d48c,webSocketUtils,_0x214eeb);_0xe4e941[_0x3e2a15(0x2f9)](_0x2ac01c,AZURE)&&_0x3ad263[_0x3e2a15(0x230)]();let _0x3f90be;if(_0xe4e941['QVrRu'](_0x9daaaf,![])){_0x82aa8=_0x3e2a15(0x1e0)+_0x5a27b7+').';const _0x5a29ca={};_0x5a29ca[_0x3e2a15(0x20b)]=WS_EVENTS['LOG'],_0x5a29ca[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils['sendEventToBackend'](_0x70d48c,_0x5a29ca),logger['info'](_0x82aa8);const _0x22b6aa=await _0x3ad263[_0x3e2a15(0x246)]();if(_0x22b6aa){const _0x11e0c1={};_0x11e0c1['type']=WS_EVENTS[_0x3e2a15(0x289)],_0x11e0c1[_0x3e2a15(0x2b6)]='Cluster\x20'+_0x579c2a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x11e0c1,_0xe4e941[_0x3e2a15(0x290)]),logger[_0x3e2a15(0x1cd)]('Cluster\x20'+_0x579c2a+_0x3e2a15(0x1ef)),_0x9daaaf=!![];if(_0xe4e941[_0x3e2a15(0x297)](_0x5534f6,!![]))throw new Error(_0x3e2a15(0x248)+_0x579c2a+_0x3e2a15(0x2e1));}else{const _0x4c35cf={};_0x4c35cf['type']=WS_EVENTS[_0x3e2a15(0x289)],_0x4c35cf[_0x3e2a15(0x2b6)]=_0xe4e941['mYQVz'],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x4c35cf),logger[_0x3e2a15(0x1cd)](_0xe4e941[_0x3e2a15(0x1b1)]);const _0x56701f=_0xe4e941[_0x3e2a15(0x1bb)](_0x41edf9,null)&&_0xe4e941[_0x3e2a15(0x1ca)](_0x41edf9,undefined),_0xb6ee50=_0xe4e941[_0x3e2a15(0x2f7)](_0x359b8b,null)&&_0xe4e941[_0x3e2a15(0x1d4)](_0x359b8b,undefined)&&_0xe4e941['avqNn'](_0x359b8b[_0x3e2a15(0x2df)],0x0);if(_0x56701f){_0xe4e941[_0x3e2a15(0x24a)](_0xb6ee50,![])&&(_0x82aa8=_0xe4e941[_0x3e2a15(0x1f9)],await _0xe4e941['ajVCS'](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941['bvFbR'],_0xe4e941[_0x3e2a15(0x2e0)]),logger[_0x3e2a15(0x2ea)](_0x82aa8),process[_0x3e2a15(0x1c9)](0x1));const _0xc29b99=await _0x3ad263[_0x3e2a15(0x269)](_0x41edf9);_0xe4e941[_0x3e2a15(0x210)](_0xc29b99,![])?(_0x82aa8=_0xe4e941[_0x3e2a15(0x1fc)],await _0xe4e941['qMdji'](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941['DRQjH'],_0xe4e941[_0x3e2a15(0x25e)],_0xe4e941[_0x3e2a15(0x2e0)]),logger[_0x3e2a15(0x2ea)](_0x82aa8),process[_0x3e2a15(0x1c9)](0x1)):logger[_0x3e2a15(0x1cd)]('Found\x20VPC:\x20'+_0x41edf9+'\x20');const _0x5ce15a=await _0x3ad263[_0x3e2a15(0x2f6)](_0x359b8b,_0x41edf9);_0xe4e941[_0x3e2a15(0x2cd)](_0x5ce15a[0x0],![])?(_0x82aa8='Subnets:\x20'+JSON['stringify'](_0x5ce15a[0x1])+_0x3e2a15(0x1ee)+_0x41edf9+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0xe4e941[_0x3e2a15(0x28f)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941[_0x3e2a15(0x240)],_0xe4e941['nzbRk']),logger[_0x3e2a15(0x2ea)](_0x82aa8),process['exit'](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](_0x359b8b)+'\x20'),await _0x3ad263[_0x3e2a15(0x218)](_0x41edf9,_0x359b8b);}else{const _0x59ff62=_0xe4e941[_0x3e2a15(0x228)]['split']('|');let _0x1b18af=0x0;while(!![]){switch(_0x59ff62[_0x1b18af++]){case'0':logger[_0x3e2a15(0x1cd)](_0xe4e941[_0x3e2a15(0x264)]);continue;case'1':logger[_0x3e2a15(0x1cd)](_0xe4e941[_0x3e2a15(0x2ed)]);continue;case'2':const _0x588e9b={};_0x588e9b[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x588e9b[_0x3e2a15(0x2b6)]=_0xe4e941[_0x3e2a15(0x2ed)],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x588e9b);continue;case'3':const _0xe6e7ca={};_0xe6e7ca[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0xe6e7ca['message']=_0xe4e941[_0x3e2a15(0x264)],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0xe6e7ca);continue;case'4':await _0x3ad263[_0x3e2a15(0x218)](_0x41edf9,_0x359b8b);continue;}break;}}}}_0x9daaaf&&_0xe4e941['VAPSU'](_0x2ac01c,AZURE)&&(await _0x3ad263['updateClusterAlreadyPresent'](),await _0x3ad263[_0x3e2a15(0x2c0)]());const [_0x4a6067,_0x3ede59,_0x118929,_0x181234,_0x3ba188,_0x347d67]=await _0xe4e941[_0x3e2a15(0x2ef)](createK8sClient,_0x3ad263,_0x214eeb[_0x3e2a15(0x28c)]);_0xe4e941[_0x3e2a15(0x252)](_0x9daaaf,![])&&_0xe4e941[_0x3e2a15(0x1ff)](_0x2ac01c,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x3f90be=await _0x3ad263[_0x3e2a15(0x2e3)](_0x4a6067,_0x214eeb));try{_0x1167b1=_0xe4e941[_0x3e2a15(0x2e6)](kebabCase,_0x325cfa),logger[_0x3e2a15(0x1cd)](_0xe4e941['kkHZI']);const _0x2f74d2={};_0x2f74d2[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x2f74d2[_0x3e2a15(0x2b6)]=_0xe4e941[_0x3e2a15(0x206)],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x2f74d2);if(_0xe4e941['txHaS'](_0x1167b1,_0xe4e941[_0x3e2a15(0x24c)])){const _0x4660c8={};_0x4660c8['createdBy']=_0xe4e941[_0x3e2a15(0x2a8)],_0x4660c8[_0x3e2a15(0x216)]=_0xe4e941[_0x3e2a15(0x2a8)];const _0x5c0e0e={};_0x5c0e0e[_0x3e2a15(0x1ce)]=_0x1167b1,_0x5c0e0e[_0x3e2a15(0x217)]=_0x4660c8;const _0x28bd9b={};_0x28bd9b['metadata']=_0x5c0e0e;const _0x34087f=_0x28bd9b,_0x7ad755={};_0x7ad755[_0x3e2a15(0x232)]=_0x34087f,await _0x4a6067[_0x3e2a15(0x22e)](_0x7ad755),logger[_0x3e2a15(0x1cd)](_0xe4e941[_0x3e2a15(0x28a)]);}const _0x3f84c9={};_0x3f84c9[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x3f84c9[_0x3e2a15(0x2b6)]=_0xe4e941['KHYRn'],webSocketUtils['sendEventToBackend'](_0x70d48c,_0x3f84c9);const _0x192d59={};_0x192d59[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x192d59['message']=_0xe4e941['HzWqm'],webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x192d59),logger[_0x3e2a15(0x1cd)](_0xe4e941[_0x3e2a15(0x277)]);let _0x4c0575={};_0xe4e941['MqrsH'](_0x2ac01c,AZURE)&&(_0x4c0575={'clientId':await _0x3ad263[_0x3e2a15(0x233)](_0x3e2a15(0x211)+_0x579c2a)});await _0xe4e941[_0x3e2a15(0x1c6)](addGridComponents,_0x4a6067,_0x3ede59,_0x118929,_0x181234,_0x1167b1,_0x579c2a,_0x3f90be,_0x3ba188,_0x347d67,_0x4c0575),_0x82aa8=_0xe4e941[_0x3e2a15(0x2c8)],logger[_0x3e2a15(0x1cd)](_0x82aa8);const _0x3e1f43={};_0x3e1f43['type']=WS_EVENTS[_0x3e2a15(0x289)],_0x3e1f43[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils['sendEventToBackend'](_0x70d48c,_0x3e1f43),_0x82aa8=_0xe4e941[_0x3e2a15(0x292)],logger[_0x3e2a15(0x1cd)](_0x82aa8);const _0x5775db={};_0x5775db['type']=WS_EVENTS[_0x3e2a15(0x289)],_0x5775db[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x5775db),await _0xe4e941['StzaN'](waitForDeployment,_0x3ede59,_0x1167b1,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x26bbd0=await _0xe4e941['GvPyL'](getNamespaceUID,_0x4a6067,_0x1167b1),_0x1cc209=global_registry[_0x3e2a15(0x2bb)]?_0xe4e941['yGacB']:_0xe4e941[_0x3e2a15(0x2d8)],_0x5289a5={};_0x5289a5[_0x3e2a15(0x1ce)]=_0x1cc209,_0x5289a5['namespace']=_0xe4e941[_0x3e2a15(0x203)];const _0x5c0f1f=await _0x4a6067[_0x3e2a15(0x2ec)](_0x5289a5);let _0x29c1db=_0x3ad263[_0x3e2a15(0x299)](_0x5c0f1f)+'/'+_0x1167b1,_0x41975a=_0xe4e941[_0x3e2a15(0x2ac)];try{const _0x8ef56a=_0x3e2a15(0x1d2)+AG_API_URL+_0x3e2a15(0x21a)+_0x26bbd0,_0x619c17=await _0xe4e941['ZuokT'](got,_0x8ef56a,_0x138df9);(_0xe4e941['GqyyO'](_0x619c17,null)||_0xe4e941['QVrRu'](_0x619c17,undefined))&&(_0x82aa8=_0xe4e941[_0x3e2a15(0x26d)],await _0xe4e941[_0x3e2a15(0x2e2)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes['ERROR'],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941['XKhlE'],_0xe4e941['nzbRk']),logger[_0x3e2a15(0x2ea)](_0x82aa8),process[_0x3e2a15(0x1c9)](0x1));_0xe4e941[_0x3e2a15(0x2cd)](_0x619c17[_0x3e2a15(0x1d7)],0x191)&&(_0x82aa8=_0xe4e941['uQuBA'],await _0xe4e941[_0x3e2a15(0x238)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941['rBKnW'],_0xe4e941[_0x3e2a15(0x2e0)]),logger['error'](_0x82aa8),process['exit'](0x1));_0xe4e941[_0x3e2a15(0x2f8)](_0x619c17[_0x3e2a15(0x1d7)],0xc8)&&(_0x82aa8='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x3e2a15(0x259)](_0x619c17),await _0xe4e941[_0x3e2a15(0x2d9)](reportToGalactusAndSendToEDS,_0x214eeb,_0x70d48c,_0x82aa8,messageTypes['ERROR'],_0xe4e941[_0x3e2a15(0x239)],_0xe4e941[_0x3e2a15(0x1e9)],_0xe4e941[_0x3e2a15(0x2e0)]),logger[_0x3e2a15(0x2ea)](_0x82aa8),process[_0x3e2a15(0x1c9)](0x1));const _0x554957=JSON['parse'](_0x619c17[_0x3e2a15(0x232)]);_0x554957[_0x3e2a15(0x2c1)]&&(_0x29c1db=_0x554957[_0x3e2a15(0x2c1)],_0x41975a=_0xe4e941['UrVUX']),global_registry['isPrivateGrid']&&(_0x41975a=_0xe4e941[_0x3e2a15(0x2ac)]);}catch(_0x5e189f){}_0x82aa8=_0x3e2a15(0x224)+_0x29c1db+'\x20',logger['info'](_0x82aa8);const _0x234716={};_0x234716[_0x3e2a15(0x20b)]=WS_EVENTS[_0x3e2a15(0x289)],_0x234716[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils['sendEventToBackend'](_0x70d48c,_0x234716),_0x82aa8=_0x3e2a15(0x251)+_0x41975a+_0x3e2a15(0x1e1)+_0x29c1db+_0x3e2a15(0x27f),logger['info'](_0x82aa8);const _0x37edf4={};_0x37edf4['type']=WS_EVENTS['LOG'],_0x37edf4[_0x3e2a15(0x2b6)]=_0x82aa8,webSocketUtils[_0x3e2a15(0x1df)](_0x70d48c,_0x37edf4);const _0x3564bd={};_0x3564bd[_0x3e2a15(0x20b)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x3564bd[_0x3e2a15(0x2b6)]=_0x3e2a15(0x1eb)+_0x29c1db,webSocketUtils['sendEventToBackend'](_0x70d48c,_0x3564bd),await webSocketUtils[_0x3e2a15(0x241)](0x7d0);}catch(_0xaca27b){logger['error'](_0x3e2a15(0x1d0)+_0xaca27b+'\x20\x0a'+JSON['stringify'](_0xaca27b['stack']));if(_0xe4e941['QVrRu'](_0x9daaaf,![]))try{logger[_0x3e2a15(0x1cd)](_0xe4e941['kETMQ']),await _0xe4e941[_0x3e2a15(0x2d2)](removeGridComponents,_0x4a6067,_0x3ede59,_0x118929,_0x181234,_0x1167b1),await _0x3ad263[_0x3e2a15(0x23e)](_0x4a6067,global_registry['clusterRegion']);}catch(_0x2c4c96){logger[_0x3e2a15(0x2ea)](_0x3e2a15(0x25c)+_0x2c4c96+'\x20\x0a'+JSON[_0x3e2a15(0x259)](_0x2c4c96[_0x3e2a15(0x1c7)]));}throw _0xaca27b;}}catch(_0x339308){const _0x931270='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x339308+'\x20\x0a'+JSON[_0x3e2a15(0x259)](_0x339308[_0x3e2a15(0x1c7)]);if(_0x70d48c){const _0x11c83e={};_0x11c83e['type']=WS_EVENTS['LOG'],_0x11c83e['message']=_0x931270,webSocketUtils['sendEventToBackend'](_0x70d48c,_0x11c83e,_0xe4e941['nzbRk'],!![]);}await webSocketUtils[_0x3e2a15(0x241)](0x7d0);const _0x14fe2b={};_0x14fe2b['error']=_0x931270,await _0xe4e941['fioVL'](sendInstrumentationEvent,_0x214eeb,_0xe4e941[_0x3e2a15(0x239)],messageTypes[_0x3e2a15(0x1ec)],_0xe4e941[_0x3e2a15(0x268)],_0x14fe2b,_0x214eeb),logger[_0x3e2a15(0x2ea)](_0x931270);}process['exit'](0x0);};
1
+ function a9_0x155a(_0x10abf2,_0x2d5ec0){const _0x551f62=a9_0x551f();return a9_0x155a=function(_0x155ad4,_0x5e2c07){_0x155ad4=_0x155ad4-0xad;let _0x365e81=_0x551f62[_0x155ad4];return _0x365e81;},a9_0x155a(_0x10abf2,_0x2d5ec0);}const a9_0x575819=a9_0x155a;(function(_0x567aa5,_0x3e6d12){const _0x249d9e=a9_0x155a,_0x58bba5=_0x567aa5();while(!![]){try{const _0x20aa0=parseInt(_0x249d9e(0x171))/0x1+-parseInt(_0x249d9e(0xaf))/0x2+parseInt(_0x249d9e(0x228))/0x3*(-parseInt(_0x249d9e(0x14b))/0x4)+parseInt(_0x249d9e(0x153))/0x5*(parseInt(_0x249d9e(0x151))/0x6)+parseInt(_0x249d9e(0x186))/0x7*(parseInt(_0x249d9e(0x103))/0x8)+parseInt(_0x249d9e(0x22c))/0x9*(parseInt(_0x249d9e(0x14c))/0xa)+-parseInt(_0x249d9e(0x238))/0xb;if(_0x20aa0===_0x3e6d12)break;else _0x58bba5['push'](_0x58bba5['shift']());}catch(_0x5c6d86){_0x58bba5['push'](_0x58bba5['shift']());}}}(a9_0x551f,0x4a3d2));const fs=require('fs'),ws=require('ws'),path=require(a9_0x575819(0xeb)),yaml=require(a9_0x575819(0x1c3)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x575819(0x14f)),{v4:uuidv4}=require(a9_0x575819(0x253)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x575819(0x219)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x575819(0x1ed)),{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_0x575819(0x20c)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x575819(0x262)),{createK8sClient}=require(a9_0x575819(0x167)),{sendInstrumentationEvent}=require(a9_0x575819(0x224));exports[a9_0x575819(0x1e2)]=a9_0x575819(0xdf),exports[a9_0x575819(0xfa)]=a9_0x575819(0x20e),exports['builder']=function(_0x1753c6){const _0x671053=a9_0x575819,_0x5daaa8={};_0x5daaa8[_0x671053(0x1f8)]=_0x671053(0x13a),_0x5daaa8[_0x671053(0x170)]=_0x671053(0x163),_0x5daaa8[_0x671053(0x25d)]=_0x671053(0x137),_0x5daaa8[_0x671053(0x1c9)]=_0x671053(0x182),_0x5daaa8[_0x671053(0x1ce)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5daaa8[_0x671053(0x1ae)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5daaa8[_0x671053(0x1dc)]=_0x671053(0x1a1),_0x5daaa8[_0x671053(0x20d)]=_0x671053(0x1fe),_0x5daaa8[_0x671053(0x20b)]='boolean',_0x5daaa8[_0x671053(0x173)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x5daaa8[_0x671053(0x206)]='help';const _0x9d3b98=_0x5daaa8,_0x5a2226={};_0x5a2226[_0x671053(0x17a)]=_0x9d3b98[_0x671053(0x1f8)],_0x5a2226[_0x671053(0x193)]=_0x9d3b98[_0x671053(0x170)];const _0x1b65d1={};_0x1b65d1[_0x671053(0x17a)]=_0x9d3b98['lDoTC'],_0x1b65d1['type']=_0x9d3b98[_0x671053(0x170)];const _0x17d6c2={};_0x17d6c2[_0x671053(0x17a)]=_0x9d3b98['IcGQo'],_0x17d6c2['type']=_0x9d3b98['FtaSU'];const _0x116326={};_0x116326[_0x671053(0x17a)]=_0x9d3b98[_0x671053(0x1ce)],_0x116326['type']=_0x9d3b98[_0x671053(0x170)];const _0x454ec2={};_0x454ec2[_0x671053(0x17a)]=_0x9d3b98[_0x671053(0x1ae)],_0x454ec2['type']=_0x9d3b98[_0x671053(0x170)];const _0x138089={};_0x138089[_0x671053(0x17a)]=_0x9d3b98[_0x671053(0x1dc)],_0x138089[_0x671053(0x193)]=_0x9d3b98['FtaSU'];const _0x16425d={};_0x16425d['description']=_0x9d3b98[_0x671053(0x20d)],_0x16425d[_0x671053(0x193)]=_0x9d3b98[_0x671053(0x20b)],_0x16425d[_0x671053(0x1c2)]=![];const _0x30da68={};_0x30da68['description']=_0x9d3b98[_0x671053(0x173)],_0x30da68[_0x671053(0x193)]=_0x9d3b98[_0x671053(0x20b)],_0x30da68[_0x671053(0x1c2)]=![];const _0x326709={};return _0x326709[_0x671053(0xfe)]=_0x5a2226,_0x326709[_0x671053(0x1cf)]=_0x1b65d1,_0x326709[_0x671053(0x190)]=_0x17d6c2,_0x326709[_0x671053(0xe2)]=_0x116326,_0x326709[_0x671053(0x200)]=_0x454ec2,_0x326709[_0x671053(0x17d)]=_0x138089,_0x326709['skip-tls-cert-verify']=_0x16425d,_0x326709['hub-ha']=_0x30da68,_0x1753c6[_0x671053(0x1f5)](HELP_HEADER_MESSAGE[_0x671053(0x159)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x326709)[_0x671053(0x1a3)](_0x9d3b98[_0x671053(0x206)])['argv'];},exports[a9_0x575819(0x110)]=async function(_0x2dc8a3){const _0x38c428=a9_0x575819,_0x496baf={'eqlBP':_0x38c428(0x109),'EvezG':_0x38c428(0x1c2),'WSAjS':_0x38c428(0x1d1),'tzzDm':_0x38c428(0x1e7),'xXthN':function(_0x5da924,_0x1ef614){return _0x5da924(_0x1ef614);},'PIWIL':_0x38c428(0xec),'ItAhh':function(_0x312f4f,_0x216f0f){return _0x312f4f===_0x216f0f;},'pLHQD':'error','tPZgj':_0x38c428(0x205),'Oatza':function(_0x44ca86,_0x489eaf){return _0x44ca86!==_0x489eaf;},'FMYoA':function(_0x5b0dc8,_0x11408c,_0x17ff4f,_0x4f82e9,_0x3dd040,_0x530ca0,_0x3dd9c6,_0x4eeddf,_0x2e4358,_0x46c996,_0x43a64a,_0x8898a6){return _0x5b0dc8(_0x11408c,_0x17ff4f,_0x4f82e9,_0x3dd040,_0x530ca0,_0x3dd9c6,_0x4eeddf,_0x2e4358,_0x46c996,_0x43a64a,_0x8898a6);},'cbqrF':_0x38c428(0x15b),'qprLB':_0x38c428(0xd1),'wcgub':_0x38c428(0x105),'TRFSV':'Enabling\x20Hub\x20HA\x20flow','VnrAp':_0x38c428(0x231),'YvTRO':'Epyd5nXbRK','lCscz':'browserstack','NzOSJ':_0x38c428(0x1f6),'txixn':_0x38c428(0x13a),'eLMkC':_0x38c428(0x163),'GzvCK':_0x38c428(0x137),'yhAOI':_0x38c428(0x182),'ERLEn':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SnccD':_0x38c428(0x1d6),'nhgJn':'Create\x20a\x20private/public\x20grid.','PFCMZ':_0x38c428(0x1fe),'EeYlt':'boolean','eXbJi':_0x38c428(0x24c),'mitcm':_0x38c428(0x1a3),'TBzpi':function(_0x49a78f,_0x1d1d97){return _0x49a78f(_0x1d1d97);},'QqbkW':_0x38c428(0x226),'MvrPE':function(_0x2f6141){return _0x2f6141();},'LiglU':function(_0x21fc8e){return _0x21fc8e();},'MMeyD':function(_0x2886d2,_0x464b41){return _0x2886d2===_0x464b41;},'Cttpx':'EcmvN','xOPeX':_0x38c428(0xd6),'qhNXl':function(_0x1e5bb7,_0x220ea4,_0x322fc2,_0x409ee6,_0x315df3,_0x1f118a,_0x25d9ad){return _0x1e5bb7(_0x220ea4,_0x322fc2,_0x409ee6,_0x315df3,_0x1f118a,_0x25d9ad);},'RBQKC':'create-grid-called','ABKXi':_0x38c428(0xd4),'nhzTh':function(_0x2de13b){return _0x2de13b();},'xbyAs':_0x38c428(0x1e9),'ooRgv':'<PasswordPlaceholder>','GoKWi':_0x38c428(0x114),'SWNgu':_0x38c428(0xc8),'GtWNI':_0x38c428(0xad),'KVbRd':function(_0x58d34d,_0x69bafe){return _0x58d34d!==_0x69bafe;},'TvTUH':_0x38c428(0x15c),'dhKrS':_0x38c428(0x191),'lJtfV':function(_0x15ae00,_0xdd1a87,_0x22b82a,_0x4dd332,_0x36bc0e,_0x18cb4c,_0xb2173,_0x5ecf7a){return _0x15ae00(_0xdd1a87,_0x22b82a,_0x4dd332,_0x36bc0e,_0x18cb4c,_0xb2173,_0x5ecf7a);},'lwzBx':_0x38c428(0xea),'lcmlL':_0x38c428(0xfd),'DWGdQ':_0x38c428(0x102),'tSrTg':function(_0x4247e7,_0x416200,_0x5e2504,_0xfe73db,_0x415218,_0x2caf0c,_0x5b2cec,_0x110599){return _0x4247e7(_0x416200,_0x5e2504,_0xfe73db,_0x415218,_0x2caf0c,_0x5b2cec,_0x110599);},'ccyVS':_0x38c428(0x249),'HTxqj':'vGUqi','WIyOz':_0x38c428(0x23a),'RhJOh':function(_0x37f935,_0x14d49e,_0x36746e,_0x6c2b90,_0x4a31f4,_0x4bc4c3,_0x43a6fc){return _0x37f935(_0x14d49e,_0x36746e,_0x6c2b90,_0x4a31f4,_0x4bc4c3,_0x43a6fc);},'WwlzQ':function(_0x718fbc,_0x38154c){return _0x718fbc!==_0x38154c;},'qAIyh':_0x38c428(0x16c),'BhAon':function(_0x5c719b,_0x2380a6){return _0x5c719b!==_0x2380a6;},'hhgCE':_0x38c428(0x1d3),'tNPxK':_0x38c428(0x1dd),'mPnpD':'lJIpi','zIkhn':_0x38c428(0x152),'NkgBx':_0x38c428(0x25e),'uhzTx':function(_0x2e179f,_0x1a0728,_0x20451c){return _0x2e179f(_0x1a0728,_0x20451c);},'VPfsx':function(_0x23ab59,_0x50451d){return _0x23ab59!==_0x50451d;},'lVdrc':_0x38c428(0x242),'MsSeP':'SgFVB','Rxfoz':'pIAeY','UYmOv':_0x38c428(0xb9),'tIzOq':function(_0xdd9e62,_0x42bcd4,_0x28f29f,_0x112983,_0x5313f8,_0x52558f,_0x4d9217,_0x41fc45){return _0xdd9e62(_0x42bcd4,_0x28f29f,_0x112983,_0x5313f8,_0x52558f,_0x4d9217,_0x41fc45);},'EzBdb':_0x38c428(0x118),'KUJKj':function(_0x48f4d7,_0x4d196a){return _0x48f4d7===_0x4d196a;},'ViNJu':'wuFzS','hKgdr':_0x38c428(0xce),'uzKTz':function(_0x1c9337,_0x4a427b,_0x4512b3,_0x14388f,_0x31154d,_0x183a77,_0x4012a2,_0x2c9a46){return _0x1c9337(_0x4a427b,_0x4512b3,_0x14388f,_0x31154d,_0x183a77,_0x4012a2,_0x2c9a46);},'AJZqV':_0x38c428(0xb5),'kemUX':function(_0x5cf18d,_0x5bca3d){return _0x5cf18d!==_0x5bca3d;},'UcgtJ':function(_0x5d4887,_0x3df457){return _0x5d4887===_0x3df457;},'vxtJG':_0x38c428(0x1f2),'UPIfO':_0x38c428(0x15f),'igwAB':_0x38c428(0x101),'xWPFR':function(_0x45cc69,_0x18e49c){return _0x45cc69===_0x18e49c;},'mdCaN':_0x38c428(0x202),'lSVJI':_0x38c428(0xd3),'MbxLM':function(_0x27342c,_0x478655,_0x150512,_0x275e0c,_0x116d5f,_0x121b8d,_0x25e511,_0x22e3be){return _0x27342c(_0x478655,_0x150512,_0x275e0c,_0x116d5f,_0x121b8d,_0x25e511,_0x22e3be);},'Ogeui':'create-grid-checks-grid-already-exists','mzbER':_0x38c428(0x18d),'KlqkC':_0x38c428(0x247),'yYEDm':function(_0x38d191,_0x38755c){return _0x38d191===_0x38755c;},'MECpi':_0x38c428(0xf9),'dsjJZ':_0x38c428(0x123),'iiqdt':function(_0x103972,_0x214bba){return _0x103972===_0x214bba;},'xLWHN':function(_0x1ab458,_0x3ee0df){return _0x1ab458===_0x3ee0df;},'lwwAW':'CyGeH','QeZQt':_0x38c428(0x237),'HnIDG':_0x38c428(0x24e),'nEFdc':'jsHWR','DdGup':_0x38c428(0x172),'KuZaq':function(_0x231fe1,_0x3b65c0,_0x5a646d,_0x4aa834,_0x3ba60f,_0x2e5cf0,_0x50e53e,_0x1f99cf){return _0x231fe1(_0x3b65c0,_0x5a646d,_0x4aa834,_0x3ba60f,_0x2e5cf0,_0x50e53e,_0x1f99cf);},'zWDsM':_0x38c428(0xd7),'PpFtj':_0x38c428(0x168),'GgBuM':function(_0x55bc2f,_0x181ac2){return _0x55bc2f===_0x181ac2;},'yWKCj':function(_0x5ed804,_0x412bde){return _0x5ed804===_0x412bde;},'lbCgj':'JROLD','sxmEv':'EisMz','vCYFx':function(_0x68fccb,_0x12b85f){return _0x68fccb!==_0x12b85f;},'qnERF':_0x38c428(0xb3),'xUVwO':_0x38c428(0x106),'xSRXv':function(_0x434d47,_0x4cf4f7){return _0x434d47!==_0x4cf4f7;},'aEfBS':'iUUVt','oujvK':function(_0xfd503c,_0x2b5e79){return _0xfd503c(_0x2b5e79);},'bIrIS':function(_0x1a55dd,_0x450f9a){return _0x1a55dd===_0x450f9a;},'IQOVz':_0x38c428(0x1d5),'GbBTE':_0x38c428(0x13f),'JyVpN':'aelZd','DiVIA':function(_0x239854,_0x5e8438){return _0x239854!==_0x5e8438;},'OKjaT':'ApZBT','zdEiM':_0x38c428(0xf7),'fNGYq':_0x38c428(0x113),'Oyrqn':'3|2|6|5|8|0|7|4|1','RXhPC':function(_0x1e98d6,_0x3a011a,_0x3c0eb6,_0x3730ea,_0x1bbb0a,_0x3dfe36,_0x41c87e){return _0x1e98d6(_0x3a011a,_0x3c0eb6,_0x3730ea,_0x1bbb0a,_0x3dfe36,_0x41c87e);},'UUwpL':function(_0x1232bd,_0x190905){return _0x1232bd!==_0x190905;},'pzaxC':function(_0x12088a,_0x34f0e4){return _0x12088a!==_0x34f0e4;},'IOpbw':_0x38c428(0xf3),'EnQLF':_0x38c428(0x251),'ZLbra':function(_0x192ec8,_0x3c66e1){return _0x192ec8===_0x3c66e1;},'IirdS':function(_0x4033d8,_0x23bd1b){return _0x4033d8===_0x23bd1b;},'xrWux':_0x38c428(0xfc),'jmCsU':function(_0x4babf0,_0x2adef2){return _0x4babf0!==_0x2adef2;},'sFnWb':_0x38c428(0xd8),'vVPqa':_0x38c428(0x258),'ZGiCb':function(_0x3dd6be,_0x430260){return _0x3dd6be!=_0x430260;},'ZcnPW':function(_0x15d8c2,_0x44852f){return _0x15d8c2!=_0x44852f;},'lwkGr':function(_0x459765,_0x2ced9e){return _0x459765>_0x2ced9e;},'qLfTb':_0x38c428(0xcb),'QeYAx':function(_0x8a1d2d,_0x11cc13,_0x1c0eee,_0x32643a,_0x474865,_0x224677,_0x54b402,_0xea02be){return _0x8a1d2d(_0x11cc13,_0x1c0eee,_0x32643a,_0x474865,_0x224677,_0x54b402,_0xea02be);},'coOyc':_0x38c428(0xc3),'ihQKu':_0x38c428(0x12c),'hFvks':_0x38c428(0x246),'kKYHf':function(_0x31c2af,_0x5e9533){return _0x31c2af===_0x5e9533;},'SEaoN':function(_0x18b797,_0x3a0b74,_0xe25dbb,_0x62e22,_0x2b5f5a,_0x14ef28,_0x368163,_0xd0274){return _0x18b797(_0x3a0b74,_0xe25dbb,_0x62e22,_0x2b5f5a,_0x14ef28,_0x368163,_0xd0274);},'lauvS':_0x38c428(0x24a),'eXzfA':_0x38c428(0x1bb),'HisIj':'Cluster\x20created\x20successfully','JAgqs':'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.','GrEdp':function(_0x3b7d62,_0x47098d){return _0x3b7d62===_0x47098d;},'aptpy':function(_0x6065c2,_0x5731de){return _0x6065c2===_0x5731de;},'fFrvQ':function(_0x4fdf58,_0x6b264a){return _0x4fdf58===_0x6b264a;},'XwEIi':_0x38c428(0x10d),'zQwrz':function(_0x4bd998,_0x5d025a,_0x5a3384){return _0x4bd998(_0x5d025a,_0x5a3384);},'MxHZE':function(_0x356ad2,_0x101d4b,_0x2a9457){return _0x356ad2(_0x101d4b,_0x2a9457);},'KHZrD':'Adding\x20Secret\x20Mapping','OkFhQ':_0x38c428(0x179),'TYKqB':_0x38c428(0x198),'BmrXp':_0x38c428(0xae),'IcuCB':_0x38c428(0x139),'czWsK':'utf-8','FXAnl':function(_0x44767d,_0x9b15c2){return _0x44767d(_0x9b15c2);},'Pwcmu':function(_0x533622,_0x389a10){return _0x533622(_0x389a10);},'Vlapc':function(_0x484776,_0x5d3845){return _0x484776(_0x5d3845);},'XWShM':function(_0xf264ff,_0x4bb9e3,_0x21bf29){return _0xf264ff(_0x4bb9e3,_0x21bf29);},'rHOPq':_0x38c428(0x225),'hubDE':'efs-csi','fhfAm':_0x38c428(0xef),'sTIij':_0x38c428(0xc7),'ncFnL':function(_0x157a9b,_0x15207e,_0x4877fb){return _0x157a9b(_0x15207e,_0x4877fb);},'zRlTZ':'Added\x20Redis\x20deployment.','ewadr':'Adding\x20Kafka\x20deployment...','hIFOk':_0x38c428(0xdc),'lzROY':function(_0x152cee,_0x4567c0,_0x216948){return _0x152cee(_0x4567c0,_0x216948);},'hOpKk':'Added\x20Kafka\x20deployment.','yTVDd':_0x38c428(0x180),'Keaeo':'turboscale-uploader.yaml','xlDZd':function(_0x37cc3c,_0x1032ec){return _0x37cc3c===_0x1032ec;},'rvQKK':function(_0x3ece1f,_0x2cbf3d,_0x166317){return _0x3ece1f(_0x2cbf3d,_0x166317);},'fBjYs':_0x38c428(0x218),'LcWcP':_0x38c428(0x142),'yKfjl':_0x38c428(0x100),'JHeEC':_0x38c428(0x1b9),'xoMAM':function(_0x21541e,_0x4ed0fb,_0x3ef93c,_0x3e86d8,_0x3164f8,_0x1361bf,_0xdcb249,_0x4baf09){return _0x21541e(_0x4ed0fb,_0x3ef93c,_0x3e86d8,_0x3164f8,_0x1361bf,_0xdcb249,_0x4baf09);},'igXDJ':_0x38c428(0x112),'zQLVS':function(_0x44e808,_0x21f32e){return _0x44e808(_0x21f32e);},'NsLml':_0x38c428(0x14d),'pszaS':function(_0x4ac3e2,_0x43a5e6){return _0x4ac3e2!==_0x43a5e6;},'sxQrp':_0x38c428(0x1ad),'eDVzG':_0x38c428(0xe3),'fHBiQ':_0x38c428(0x19c),'NAnrr':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','EeSMS':'Spawning\x20Grid\x20on\x20the\x20Cluster','epbGq':function(_0x4e6f6c,_0x54afbb){return _0x4e6f6c===_0x54afbb;},'vYOGS':function(_0x3d4f72,_0x1d6da4,_0xef64d5,_0x303505,_0x5eff38,_0x1344b7,_0x45bd01,_0x12dbdd,_0x233ab9,_0x4488cf,_0x3b1b87){return _0x3d4f72(_0x1d6da4,_0xef64d5,_0x303505,_0x5eff38,_0x1344b7,_0x45bd01,_0x12dbdd,_0x233ab9,_0x4488cf,_0x3b1b87);},'jONYk':_0x38c428(0x116),'GfGPw':_0x38c428(0x1ab),'CEKSK':function(_0x11a9a2,_0x1a1d43,_0x5bb060,_0x504147,_0x5222d9){return _0x11a9a2(_0x1a1d43,_0x5bb060,_0x504147,_0x5222d9);},'EUDJz':function(_0x4dc6cf,_0x164bdd,_0x1e94f5){return _0x4dc6cf(_0x164bdd,_0x1e94f5);},'rSQnY':_0x38c428(0x25c),'NnIWB':_0x38c428(0x149),'ZZoRz':_0x38c428(0x1cb),'PKJXm':function(_0x5ab941,_0x4b904d,_0x4a8392){return _0x5ab941(_0x4b904d,_0x4a8392);},'BjJWb':function(_0x5f4385,_0x1da2ff){return _0x5f4385===_0x1da2ff;},'qQfUl':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','lLBuw':function(_0x3a12f6,_0x49ef30,_0x10ace2,_0x222732,_0x20eb0c,_0x2e5fac,_0x32f00d,_0x233e3a){return _0x3a12f6(_0x49ef30,_0x10ace2,_0x222732,_0x20eb0c,_0x2e5fac,_0x32f00d,_0x233e3a);},'xEcQH':_0x38c428(0x18c),'bFHKa':_0x38c428(0x1c6),'OYAOb':function(_0x348751,_0x467dae,_0x49b8fc,_0x26aaf5,_0x316cdc,_0x2aa205,_0x3b1619,_0x455a8a){return _0x348751(_0x467dae,_0x49b8fc,_0x26aaf5,_0x316cdc,_0x2aa205,_0x3b1619,_0x455a8a);},'WmMXd':_0x38c428(0x19b),'wcROn':function(_0x5dd69c,_0x255774,_0x1abedb,_0x3ab6f4,_0x288837,_0x40bb1f,_0x2226c5,_0x464a5f){return _0x5dd69c(_0x255774,_0x1abedb,_0x3ab6f4,_0x288837,_0x40bb1f,_0x2226c5,_0x464a5f);},'VDWrj':_0x38c428(0x11f),'rmegL':_0x38c428(0xcf),'MZqyS':function(_0x4272e5,_0x28ea45,_0xb649ba,_0x2795c3,_0x5627c9,_0x48e725){return _0x4272e5(_0x28ea45,_0xb649ba,_0x2795c3,_0x5627c9,_0x48e725);},'tIvzI':_0x38c428(0xe1)};let _0x1a515b=![],_0x49bfce=![],_0x380708,_0x19d8ed,_0x6ca981,_0x4c40f7,_0x2fa83c,_0x393b72,_0x48e7a2,_0x4dc9d9,_0xb5316f,_0x848a18,_0x6ea6b3,_0x195cd8,_0x4c6639,_0x2dba08,_0x20c32c=0x1,_0x4a2c2d=0xe;try{global_registry[_0x38c428(0x21a)]=_0x496baf[_0x38c428(0xf0)](uuidv4),global_registry[_0x38c428(0x1ca)]=![];!fs['existsSync'](_0x496baf[_0x38c428(0x244)](getCredentialsPath))&&(_0x496baf[_0x38c428(0x1d8)](_0x496baf[_0x38c428(0x1da)],_0x496baf['Cttpx'])?(console[_0x38c428(0x1e4)](_0x496baf[_0x38c428(0x1c7)]),await _0x496baf['qhNXl'](sendInstrumentationEvent,_0x2dc8a3,_0x496baf[_0x38c428(0x25a)],messageTypes[_0x38c428(0x1c4)],_0x496baf['ABKXi'],null,_0x2dc8a3),process[_0x38c428(0x16d)](0x1)):_0x332317['info']('Found\x20Subnets:\x20'+_0x45d857[_0x38c428(0x212)](_0x535ed5)+'\x20'));await _0x496baf[_0x38c428(0x1e3)](sendInstrumentationEvent,_0x2dc8a3,_0x496baf['RBQKC'],messageTypes['INFO'],null,null,_0x2dc8a3);const _0x28d5ab=JSON[_0x38c428(0x183)](fs[_0x38c428(0x233)](_0x496baf[_0x38c428(0xd2)](getCredentialsPath)));global_registry[_0x38c428(0x194)]=_0x28d5ab[_0x38c428(0x1ad)]['username'],global_registry[_0x38c428(0x19e)]=_0x28d5ab[_0x38c428(0x1ad)][_0x38c428(0x18b)];const _0x52313d=WS_ENDPOINT[_0x38c428(0xf1)](_0x496baf[_0x38c428(0x119)],_0x28d5ab[_0x38c428(0x1ad)]['username'])[_0x38c428(0xf1)](_0x496baf[_0x38c428(0x145)],_0x28d5ab[_0x38c428(0x1ad)][_0x38c428(0x18b)]),_0x3267e1={};_0x3267e1['WebSocket']=ws,_0x3267e1[_0x38c428(0x169)]=0x36ee80,_0x195cd8=new ReconnectingWebSocket(_0x52313d,[],_0x3267e1),logger[_0x38c428(0x1fa)](_0x496baf['GoKWi']),webSocketUtils[_0x38c428(0x1f1)](_0x195cd8,_0x2dc8a3[_0x38c428(0x1c0)],_0x2dc8a3[_0x38c428(0x18b)]);const _0x250898=_0x2dc8a3[_0x38c428(0x22d)]||DEFAULT_GRID_NAME;if(_0x2dc8a3[_0x38c428(0x129)]||_0x2dc8a3[_0x38c428(0x24b)]||_0x2dc8a3[_0x38c428(0x200)]){if(_0x496baf[_0x38c428(0x1e5)](_0x496baf[_0x38c428(0xee)],_0x496baf[_0x38c428(0x187)])){const _0x21e647={'azure.workload.identity/use':_0x496baf['eqlBP'],..._0x201270[0x0][_0x38c428(0xb6)][_0x38c428(0x1bf)][_0x38c428(0x192)]['labels']};_0x58389f[0x0][_0x38c428(0xb6)][_0x38c428(0x1bf)]['metadata'][_0x38c428(0xc6)]=_0x21e647,_0x178587[0x0][_0x38c428(0xb6)][_0x38c428(0x1bf)][_0x38c428(0xb6)][_0x38c428(0x22f)]=_0x496baf[_0x38c428(0xb4)];}else{!(_0x2dc8a3[_0x38c428(0x129)]&&_0x2dc8a3[_0x38c428(0x24b)]&&_0x2dc8a3[_0x38c428(0x200)])&&(_0x496baf['KVbRd'](_0x496baf['TvTUH'],_0x496baf[_0x38c428(0x13d)])?(_0x13e20d[_0x38c428(0x1fc)]('Cluster:\x20'+_0x1f58b4['clusterName']+_0x38c428(0x213)),_0x172ebd=![],_0x2e135d=!![]):(_0x380708=_0x496baf[_0x38c428(0x1e8)],await _0x496baf[_0x38c428(0x241)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0xbd)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1)));![AWS,AZURE,GCP][_0x38c428(0xb7)](_0x2dc8a3[_0x38c428(0x24b)][_0x38c428(0x12e)]())&&(_0x496baf[_0x38c428(0x130)](_0x496baf[_0x38c428(0x197)],_0x496baf[_0x38c428(0x197)])?_0x44c788[_0x38c428(0x1ca)]=!![]:(_0x380708=_0x496baf['DWGdQ'],await _0x496baf[_0x38c428(0x201)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes['ERROR'],_0x496baf[_0x38c428(0x25a)],_0x496baf['ccyVS'],_0x496baf['pLHQD']),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1)));_0x2dc8a3[_0x38c428(0x161)]&&_0x496baf[_0x38c428(0x1e5)](_0x2dc8a3['privateGrid'][_0x38c428(0x12e)](),_0x496baf[_0x38c428(0xd5)])&&(_0x496baf['Oatza'](_0x496baf[_0x38c428(0x122)],_0x496baf['WIyOz'])?global_registry[_0x38c428(0x1ca)]=!![]:_0x56e691[_0x38c428(0x1ca)]=!![]);global_registry['cloudProvider']=_0x2dc8a3[_0x38c428(0x24b)],global_registry[_0x38c428(0x1b3)]=_0x2dc8a3['region'],global_registry[_0x38c428(0x129)]=_0x2dc8a3['clusterName'];const _0x4d8350=await _0x496baf[_0x38c428(0x143)](getCloudProviderObject,_0x2dc8a3['cloudProvider'],_0x2dc8a3[_0x38c428(0x129)],_0x250898,_0x195cd8,webSocketUtils,_0x2dc8a3),_0x50fb67=await _0x4d8350['isClusterPresent']();!_0x50fb67?_0x496baf[_0x38c428(0x1b4)](_0x496baf[_0x38c428(0x1f7)],_0x496baf[_0x38c428(0x1f7)])?(_0x2bfeda=_0x1d1566['route53'],_0x55176d=_0x496baf[_0x38c428(0xf5)]):(logger[_0x38c428(0x1fc)](_0x38c428(0x117)+_0x2dc8a3[_0x38c428(0x129)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x1a515b=![],_0x49bfce=!![]):_0x496baf[_0x38c428(0x199)](_0x496baf[_0x38c428(0xf6)],_0x496baf['tNPxK'])?_0x1a515b=!![]:_0x485d9c[_0x38c428(0x1ca)]=!![],_0x6ca981=_0x2dc8a3[_0x38c428(0x129)],_0x19d8ed=_0x2dc8a3['cloudProvider'][_0x38c428(0x12e)](),_0x4c40f7=_0x2dc8a3[_0x38c428(0x200)];}}else _0x2dc8a3['gridProfile']&&(_0x496baf['MMeyD'](_0x496baf['mPnpD'],_0x496baf[_0x38c428(0x146)])?_0x4950c5[_0x38c428(0x1e4)](_0x38c428(0x135)+_0x3a06ce+'\x20\x0a'+_0x4836e3[_0x38c428(0x212)](_0x297ca0[_0x38c428(0xe0)])):global_registry['gridProfile']=_0x2dc8a3['gridProfile']);global_registry[_0x38c428(0x22d)]=_0x2dc8a3[_0x38c428(0x22d)];const _0x436369={'method':_0x496baf[_0x38c428(0xe8)],'headers':_0x496baf[_0x38c428(0xcd)](getAuthHeader,_0x28d5ab['Browserstack'][_0x38c428(0x232)],_0x28d5ab['Browserstack'][_0x38c428(0x18b)]),'throwHttpErrors':![]},_0x28933={};_0x28933[_0x38c428(0x22d)]=_0x250898;const _0x1e7b4a=_0x28933;_0x49bfce&&(_0x496baf[_0x38c428(0x1ee)](_0x496baf[_0x38c428(0x207)],_0x496baf['lVdrc'])?_0x30a8e0=_0x496baf['tzzDm']:(_0x1e7b4a['region']=_0x4c40f7,_0x1e7b4a[_0x38c428(0x24b)]=_0x19d8ed,_0x1e7b4a[_0x38c428(0x181)]=!![]));const _0x4862a4=_0x38c428(0x1ac)+AG_API_URL+_0x38c428(0x1c8),_0x4aa22f={'searchParams':_0x1e7b4a,'throwHttpErrors':![],..._0x436369},_0x5cd01f=_0x4aa22f,_0x41f9f1=await _0x496baf[_0x38c428(0xcd)](got,_0x4862a4,_0x5cd01f);if(_0x496baf[_0x38c428(0x1d8)](_0x41f9f1,null)||_0x496baf[_0x38c428(0x1d8)](_0x41f9f1,undefined)){if(_0x496baf[_0x38c428(0xb2)](_0x496baf['MsSeP'],_0x496baf[_0x38c428(0x17c)]))_0x380708=_0x496baf[_0x38c428(0x25f)],await _0x496baf[_0x38c428(0x204)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf['RBQKC'],_0x496baf[_0x38c428(0x19d)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1);else throw new _0x39c111(_0x38c428(0x184)+_0x4f9663+_0x38c428(0x1b8));}_0x496baf[_0x38c428(0x1e5)](_0x41f9f1[_0x38c428(0x24d)],0x191)&&(_0x496baf[_0x38c428(0xdd)](_0x496baf[_0x38c428(0x23b)],_0x496baf[_0x38c428(0x23b)])?(_0x380708=_0x496baf[_0x38c428(0xdb)],await _0x496baf['uzKTz'](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes['ERROR'],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x10e)],_0x496baf['pLHQD']),logger['error'](_0x380708),process['exit'](0x1)):_0x496baf[_0x38c428(0x23c)](_0x358db2,_0x13a3b9[_0x38c428(0xfb)]));if(_0x496baf[_0x38c428(0x144)](_0x41f9f1['statusCode'],0xc8)){if(_0x496baf['UcgtJ'](_0x496baf[_0x38c428(0xca)],_0x496baf[_0x38c428(0xca)]))_0x380708=_0x38c428(0x178)+JSON[_0x38c428(0x212)](_0x41f9f1[_0x38c428(0x1b0)]),await _0x496baf[_0x38c428(0x241)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf['RBQKC'],_0x496baf[_0x38c428(0x141)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1);else{const _0x56532a={};_0x56532a['type']=_0x4b89d9[_0x38c428(0x217)],_0x56532a[_0x38c428(0x1cd)]='Cluster\x20'+_0x332098+_0x38c428(0x16a),_0x42e163[_0x38c428(0xb8)](_0x4babea,_0x56532a,_0x496baf['PIWIL']),_0x17dd2b[_0x38c428(0x1fc)](_0x38c428(0x184)+_0x53adf4+_0x38c428(0x16a)),_0x5e3903=!![];if(_0x496baf[_0x38c428(0x1e5)](_0x314461,!![]))throw new _0xa5dee1(_0x38c428(0x184)+_0x4b98c9+_0x38c428(0x1b8));}}const _0x53f246=JSON[_0x38c428(0x183)](_0x41f9f1[_0x38c428(0x1b0)]),_0x333092={};_0x333092['type']=WS_EVENTS[_0x38c428(0x1db)],_0x333092[_0x38c428(0x1cd)]=_0x496baf['qprLB'],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x333092);const _0x18f5ae={};_0x18f5ae[_0x38c428(0x193)]=WS_EVENTS['LOG'],_0x18f5ae['message']=_0x496baf[_0x38c428(0x1ff)],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x18f5ae);_0x53f246[_0x38c428(0x1a0)]&&(_0x496baf[_0x38c428(0x1d9)](_0x496baf[_0x38c428(0x125)],_0x496baf['lSVJI'])?_0x488187=_0x33f69a[_0x5975b1[_0x38c428(0x220)]]:(_0x380708=_0x38c428(0x1e0)+_0x250898+_0x38c428(0x1a7),await _0x496baf['MbxLM'](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf['RBQKC'],_0x496baf['Ogeui'],_0x496baf[_0x38c428(0x21d)]),logger['error'](_0x380708),process['exit'](0x1)));const _0x182b31=_0x53f246[_0x38c428(0x120)];let _0x52239a=_0x182b31[_0x53f246[_0x38c428(0xb0)]];if(_0x2dc8a3[_0x38c428(0x220)]){if(_0x496baf[_0x38c428(0x1d8)](_0x496baf['mzbER'],_0x496baf[_0x38c428(0x158)])){const _0x3c2529={};_0x3c2529[_0x38c428(0x193)]=_0x2df297[_0x38c428(0x217)],_0x3c2529[_0x38c428(0x1cd)]=_0x4f4cc7,_0x772cb2[_0x38c428(0xb8)](_0x35cd0c,_0x3c2529,_0x496baf['pLHQD'],!![]);}else _0x52239a=_0x182b31[_0x2dc8a3[_0x38c428(0x220)]];}global_registry[_0x38c428(0x104)]=![];if(_0x2dc8a3['hubHa']){if(_0x496baf['yYEDm'](_0x496baf['MECpi'],_0x496baf[_0x38c428(0xc4)])){const _0x521a27=_0x496baf['dsjJZ'][_0x38c428(0x1bd)]('|');let _0x3d3d81=0x0;while(!![]){switch(_0x521a27[_0x3d3d81++]){case'0':global_registry[_0x38c428(0x227)]=_0x496baf[_0x38c428(0x1af)];continue;case'1':global_registry[_0x38c428(0x104)]=!![];continue;case'2':logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x134)]);continue;case'3':global_registry[_0x38c428(0x14a)]=_0x496baf['YvTRO'];continue;case'4':global_registry[_0x38c428(0x248)]=_0x496baf['lCscz'];continue;}break;}}else _0x29afe4=!![];}if(_0x496baf['iiqdt'](_0x1a515b,![])&&_0x496baf['xLWHN'](_0x49bfce,![])){if(_0x496baf[_0x38c428(0x1ee)](_0x496baf[_0x38c428(0x16e)],_0x496baf['QeZQt'])){_0x496baf[_0x38c428(0x1d8)](_0x52239a,undefined)&&(_0x496baf['UcgtJ'](_0x496baf[_0x38c428(0x11b)],_0x496baf[_0x38c428(0x1f0)])?_0x4ec24d[_0x38c428(0x220)]=_0x2b97e3['gridProfile']:(_0x380708=_0x496baf[_0x38c428(0x15a)],await _0x496baf[_0x38c428(0x1f3)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes['ERROR'],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x22b)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1)));global_registry[_0x38c428(0x156)]=_0x52239a['id'],_0x380708='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x250898+_0x38c428(0x1b2)+_0x52239a[_0x38c428(0xe7)]+_0x38c428(0x234),logger[_0x38c428(0x1fc)](_0x380708);const _0x1b365e={};_0x1b365e[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x1b365e[_0x38c428(0x1cd)]=_0x380708,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x1b365e),_0x19d8ed=_0x52239a[_0x38c428(0x24b)],_0x6ca981=_0x52239a[_0x38c428(0x129)],_0x4c40f7=_0x52239a[_0x38c428(0x200)],_0x2fa83c=_0x52239a[_0x38c428(0xd0)],_0x393b72=_0x52239a[_0x38c428(0x254)],_0x48e7a2=_0x52239a[_0x38c428(0xe4)],_0x4dc9d9=_0x52239a[_0x38c428(0x11d)],_0xb5316f=_0x52239a[_0x38c428(0x21f)],_0x848a18=_0x52239a['s3bucket'],_0x20c32c=_0x52239a['minNodes'],_0x4a2c2d=_0x52239a[_0x38c428(0x189)],_0x4c6639=_0x53f246[_0x38c428(0xf4)],_0x2dba08=_0x53f246[_0x38c428(0x147)];_0x48e7a2&&_0x496baf[_0x38c428(0x12d)](_0x48e7a2['length'],0x0)&&(_0x496baf[_0x38c428(0x1ee)](_0x496baf[_0x38c428(0xc1)],_0x496baf['PpFtj'])?_0x99de84[_0x38c428(0x1fc)]('Found\x20VPC:\x20'+_0x505aa4+'\x20'):_0x48e7a2=null);_0xb5316f&&_0x496baf[_0x38c428(0xf8)](_0xb5316f[_0x38c428(0x215)],0x0)&&(_0x496baf['yWKCj'](_0x496baf[_0x38c428(0x150)],_0x496baf[_0x38c428(0x196)])?_0xdeb649[_0x38c428(0xc5)]():_0xb5316f=null);if(_0x496baf['vCYFx'](_0x52239a[_0x38c428(0x161)],undefined)&&_0x52239a[_0x38c428(0x161)]){if(_0x496baf[_0x38c428(0xf8)](_0x496baf[_0x38c428(0x13b)],_0x496baf[_0x38c428(0x245)])){const _0x150763=_0x496baf[_0x38c428(0x128)]['split']('|');let _0x5b1058=0x0;while(!![]){switch(_0x150763[_0x5b1058++]){case'0':_0x4b1028=_0x462e23[_0x38c428(0xf4)];continue;case'1':const _0x687bef={};_0x687bef[_0x38c428(0x193)]=_0x3085f7[_0x38c428(0x217)],_0x687bef['message']=_0x1f4dea,_0x3721e3['sendEventToBackend'](_0x2cca7a,_0x687bef);continue;case'2':_0x481881=_0x38c428(0x22e)+_0x404108;continue;case'3':_0x4ed980=_0x414404[_0x38c428(0xbf)];continue;case'4':_0x579ce9[_0x38c428(0x1fc)](_0x43c785);continue;case'5':_0x2582da=_0x403305[_0x38c428(0x147)];continue;case'6':_0x496baf[_0x38c428(0xb2)](_0x23045d['privateGrid'],_0x17e2b1)&&_0xd7c8ca[_0x38c428(0x161)]&&(_0x4e0675[_0x38c428(0x1ca)]=!![]);continue;case'7':_0x57a52a=null;continue;case'8':_0x390876=_0x24e692[_0x38c428(0xd0)];continue;case'9':_0x3b42c7=_0x202fea[_0x38c428(0x254)];continue;case'10':_0x9833bf=_0x351639[_0x38c428(0x189)];continue;case'11':_0x496baf[_0x38c428(0x1ec)](_0x384abb,_0x463686,_0x184d6f,_0x22c64e,_0xf8cf25,_0x13dad3,_0x15ec2d,_0x4e9e2a,_0x12bea5,_0x1dae91,_0x25eccb,_0x180951);continue;case'12':_0x12c5a4=null;continue;case'13':_0x35bc02['enableHubHa']&&_0x496baf[_0x38c428(0x23c)](_0x7599de,_0x211516['kafkaUploader']);continue;case'14':_0x7db836=null;continue;case'15':_0x138ef4=_0x5cb532[_0x38c428(0x214)];continue;}break;}}else global_registry['isPrivateGrid']=!![];}_0x496baf[_0x38c428(0x1ec)](updateGlobalRegistryWithConfig,_0x19d8ed,_0x6ca981,_0x4c40f7,_0x2fa83c,_0x393b72,_0x848a18,_0x52239a,_0x4c6639,_0x2dba08,_0x20c32c,_0x4a2c2d);if(global_registry[_0x38c428(0x104)]){if(_0x496baf[_0x38c428(0x1fd)](_0x496baf[_0x38c428(0x17b)],_0x496baf[_0x38c428(0x17b)])){const _0x23c6ba=_0x496baf[_0x38c428(0x127)][_0x38c428(0x1bd)]('|');let _0x31e1b5=0x0;while(!![]){switch(_0x23c6ba[_0x31e1b5++]){case'0':_0x3874f8=_0x38c428(0x138)+_0xfdc1a5+'\x20in\x20existing\x20cluster\x20\x27'+_0x4c26f4+'\x27';continue;case'1':const _0x1b55f6={};_0x1b55f6[_0x38c428(0x193)]=_0x54bea2[_0x38c428(0x217)],_0x1b55f6[_0x38c428(0x1cd)]=_0x5e8b62,_0xea7e7e[_0x38c428(0xb8)](_0x2affb2,_0x1b55f6);continue;case'2':const _0x3716be={};_0x3716be[_0x38c428(0x193)]=_0x559e8c[_0x38c428(0x1db)],_0x3716be[_0x38c428(0x1cd)]=_0x496baf[_0x38c428(0x148)],_0x139e14[_0x38c428(0xb8)](_0x82e394,_0x3716be);continue;case'3':_0x1d265e[_0x38c428(0x147)]=_0x33d437[_0x38c428(0x147)];continue;case'4':_0x14168e[_0x38c428(0x1b3)]=_0x469bfd;continue;case'5':_0x360a65['clusterName']=_0x488a68;continue;case'6':_0x2fa89d[_0x38c428(0x24b)]=_0x2a244c;continue;case'7':_0x5d4766[_0x38c428(0xf4)]=_0x540a96[_0x38c428(0xf4)];continue;case'8':_0xd48e81[_0x38c428(0x1fc)](_0x29a85c);continue;}break;}}else _0x496baf[_0x38c428(0xcc)](updateGlobalRegistryForHubHa,_0x53f246['uploaderVersion']);}}else{const _0x478c04=_0x496baf['wcgub'][_0x38c428(0x1bd)]('|');let _0x3d8dd6=0x0;while(!![]){switch(_0x478c04[_0x3d8dd6++]){case'0':_0x14e122[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x134)]);continue;case'1':_0x362c3c[_0x38c428(0x227)]=_0x496baf[_0x38c428(0x1af)];continue;case'2':_0x55ef1a[_0x38c428(0x104)]=!![];continue;case'3':_0x4ce683['kafkaPassword']=_0x496baf[_0x38c428(0xbb)];continue;case'4':_0xb7a694[_0x38c428(0x248)]=_0x496baf['lCscz'];continue;}break;}}}else{if(_0x496baf[_0x38c428(0x1e5)](_0x49bfce,!![])){if(_0x496baf['bIrIS'](_0x496baf[_0x38c428(0x252)],_0x496baf['IQOVz'])){_0x380708=_0x38c428(0x22e)+_0x250898,logger[_0x38c428(0x1fc)](_0x380708);const _0x130e4b={};_0x130e4b[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x130e4b[_0x38c428(0x1cd)]=_0x380708,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x130e4b),_0x2fa83c=_0x52239a['concurrency'],_0x393b72=_0x52239a[_0x38c428(0x254)],_0x48e7a2=null,_0x4dc9d9=null,_0xb5316f=null,_0x848a18=_0x52239a[_0x38c428(0xbf)],_0x20c32c=_0x52239a[_0x38c428(0x214)],_0x4a2c2d=_0x52239a[_0x38c428(0x189)],_0x4c6639=_0x53f246[_0x38c428(0xf4)],_0x2dba08=_0x53f246[_0x38c428(0x147)],_0x496baf[_0x38c428(0xb2)](_0x52239a[_0x38c428(0x161)],undefined)&&_0x52239a['privateGrid']&&(_0x496baf[_0x38c428(0x1d9)](_0x496baf[_0x38c428(0x115)],_0x496baf[_0x38c428(0xb1)])?(_0x2fb476[_0x38c428(0x200)]=_0x36c6bf,_0x548237[_0x38c428(0x24b)]=_0x2b74cb,_0x320744[_0x38c428(0x181)]=!![]):global_registry[_0x38c428(0x1ca)]=!![]),_0x496baf[_0x38c428(0x1ec)](updateGlobalRegistryWithConfig,_0x19d8ed,_0x6ca981,_0x4c40f7,_0x2fa83c,_0x393b72,_0x848a18,_0x52239a,_0x4c6639,_0x2dba08,_0x20c32c,_0x4a2c2d),global_registry[_0x38c428(0x104)]&&(_0x496baf[_0x38c428(0x230)](_0x496baf['OKjaT'],_0x496baf['zdEiM'])?_0x496baf[_0x38c428(0x23c)](updateGlobalRegistryForHubHa,_0x53f246['kafkaUploader']):_0x2aff23=_0x496baf[_0x38c428(0x256)]);}else{const _0x1e6b2c={};_0x1e6b2c[_0x38c428(0x17a)]=_0x496baf[_0x38c428(0xe6)],_0x1e6b2c[_0x38c428(0x193)]=_0x496baf[_0x38c428(0x11a)];const _0x500085={};_0x500085[_0x38c428(0x17a)]=_0x496baf[_0x38c428(0x195)],_0x500085[_0x38c428(0x193)]=_0x496baf[_0x38c428(0x11a)];const _0x2aef01={};_0x2aef01[_0x38c428(0x17a)]=_0x496baf['yhAOI'],_0x2aef01[_0x38c428(0x193)]=_0x496baf[_0x38c428(0x11a)];const _0x1dcddf={};_0x1dcddf[_0x38c428(0x17a)]=_0x496baf[_0x38c428(0x236)],_0x1dcddf['type']=_0x496baf['eLMkC'];const _0x371fcc={};_0x371fcc[_0x38c428(0x17a)]=_0x496baf['SnccD'],_0x371fcc[_0x38c428(0x193)]=_0x496baf[_0x38c428(0x11a)];const _0x8d3b78={};_0x8d3b78['description']=_0x496baf[_0x38c428(0x260)],_0x8d3b78['type']=_0x496baf[_0x38c428(0x11a)];const _0x3dd9e5={};_0x3dd9e5[_0x38c428(0x17a)]=_0x496baf['PFCMZ'],_0x3dd9e5[_0x38c428(0x193)]=_0x496baf['EeYlt'],_0x3dd9e5[_0x38c428(0x1c2)]=![];const _0x4ca322={};_0x4ca322[_0x38c428(0x17a)]=_0x496baf['eXbJi'],_0x4ca322[_0x38c428(0x193)]=_0x496baf[_0x38c428(0x1a4)],_0x4ca322[_0x38c428(0x1c2)]=![];const _0x36a626={};return _0x36a626[_0x38c428(0xfe)]=_0x1e6b2c,_0x36a626[_0x38c428(0x1cf)]=_0x500085,_0x36a626['cluster-name']=_0x2aef01,_0x36a626['cloud-provider']=_0x1dcddf,_0x36a626[_0x38c428(0x200)]=_0x371fcc,_0x36a626[_0x38c428(0x17d)]=_0x8d3b78,_0x36a626[_0x38c428(0x1e1)]=_0x3dd9e5,_0x36a626[_0x38c428(0x177)]=_0x4ca322,_0x204f54[_0x38c428(0x1f5)](_0x1be6d5[_0x38c428(0x159)])['epilogue'](_0x565548)[_0x38c428(0x15d)](_0x36a626)[_0x38c428(0x1a3)](_0x496baf['mitcm'])[_0x38c428(0xc2)];}}else{if(_0x496baf['bIrIS'](_0x496baf['fNGYq'],_0x496baf[_0x38c428(0x210)])){const _0x1a3840=_0x496baf[_0x38c428(0x1fb)][_0x38c428(0x1bd)]('|');let _0x95ac2c=0x0;while(!![]){switch(_0x1a3840[_0x95ac2c++]){case'0':global_registry[_0x38c428(0x1b3)]=_0x4c40f7;continue;case'1':global_registry[_0x38c428(0x147)]=_0x53f246['browserVersion'];continue;case'2':_0x380708=_0x38c428(0x138)+_0x250898+_0x38c428(0x1f9)+_0x6ca981+'\x27';continue;case'3':const _0x3a7c7c={};_0x3a7c7c[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x1db)],_0x3a7c7c[_0x38c428(0x1cd)]=_0x496baf['qprLB'],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x3a7c7c);continue;case'4':global_registry['hubVersion']=_0x53f246[_0x38c428(0xf4)];continue;case'5':const _0x5869e8={};_0x5869e8[_0x38c428(0x193)]=WS_EVENTS['LOG'],_0x5869e8['message']=_0x380708,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x5869e8);continue;case'6':logger[_0x38c428(0x1fc)](_0x380708);continue;case'7':global_registry[_0x38c428(0x129)]=_0x6ca981;continue;case'8':global_registry[_0x38c428(0x24b)]=_0x19d8ed;continue;}break;}}else _0x496baf[_0x38c428(0x1cc)](_0x97a353,_0xf401d1['uploaderVersion']);}}const _0x396791=await _0x496baf[_0x38c428(0x10f)](getCloudProviderObject,_0x19d8ed,_0x6ca981,_0x250898,_0x195cd8,webSocketUtils,_0x2dc8a3);_0x496baf[_0x38c428(0x10b)](_0x19d8ed,AZURE)&&(_0x496baf['pzaxC'](_0x496baf[_0x38c428(0x1c5)],_0x496baf['EnQLF'])?_0x396791[_0x38c428(0xc5)]():_0xd74e99=null);let _0xe133f9;if(_0x496baf[_0x38c428(0x136)](_0x1a515b,![])){_0x380708=_0x38c428(0xc9)+_0x4c40f7+').';const _0x229bb9={};_0x229bb9[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x229bb9[_0x38c428(0x1cd)]=_0x380708,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x229bb9),logger['info'](_0x380708);const _0x45e75b=await _0x396791['isClusterPresent']();if(_0x45e75b){if(_0x496baf['IirdS'](_0x496baf['xrWux'],_0x496baf[_0x38c428(0x243)])){const _0x3e0451={};_0x3e0451[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x3e0451[_0x38c428(0x1cd)]=_0x38c428(0x184)+_0x6ca981+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x3e0451,_0x496baf[_0x38c428(0xc0)]),logger[_0x38c428(0x1fc)](_0x38c428(0x184)+_0x6ca981+_0x38c428(0x16a)),_0x1a515b=!![];if(_0x496baf[_0x38c428(0x12d)](_0x49bfce,!![])){if(_0x496baf['jmCsU'](_0x496baf['sFnWb'],_0x496baf[_0x38c428(0x174)]))_0x1196bb=_0x496baf[_0x38c428(0x1b1)];else throw new Error(_0x38c428(0x184)+_0x6ca981+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0x3b3c33=null;}else{const _0x3c04af={};_0x3c04af[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x3c04af[_0x38c428(0x1cd)]=_0x496baf['vVPqa'],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x3c04af),logger[_0x38c428(0x1fc)](_0x496baf['vVPqa']);const _0x5a2dcd=_0x496baf[_0x38c428(0xd9)](_0x48e7a2,null)&&_0x496baf[_0x38c428(0x199)](_0x48e7a2,undefined),_0x2d6d36=_0x496baf[_0x38c428(0x239)](_0xb5316f,null)&&_0x496baf[_0x38c428(0x1a5)](_0xb5316f,undefined)&&_0x496baf['lwkGr'](_0xb5316f['length'],0x0);if(_0x5a2dcd){_0x496baf[_0x38c428(0x175)](_0x2d6d36,![])&&(_0x380708=_0x496baf[_0x38c428(0x21c)],await _0x496baf[_0x38c428(0x240)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x261)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1));const _0x5970d8=await _0x396791['isVPCPresent'](_0x48e7a2);_0x496baf['xWPFR'](_0x5970d8,![])?(_0x380708=_0x496baf[_0x38c428(0x208)],await _0x496baf[_0x38c428(0x111)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x1a6)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process['exit'](0x1)):logger[_0x38c428(0x1fc)](_0x38c428(0x121)+_0x48e7a2+'\x20');const _0x24b923=await _0x396791['isSubnetsValid'](_0xb5316f,_0x48e7a2);_0x496baf['kKYHf'](_0x24b923[0x0],![])?(_0x380708=_0x38c428(0xbc)+JSON['stringify'](_0x24b923[0x1])+_0x38c428(0x211)+_0x48e7a2+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x496baf[_0x38c428(0x1ba)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes['ERROR'],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x229)],_0x496baf[_0x38c428(0x21d)]),logger['error'](_0x380708),process[_0x38c428(0x16d)](0x1)):logger[_0x38c428(0x1fc)](_0x38c428(0x1a9)+JSON[_0x38c428(0x212)](_0xb5316f)+'\x20'),[_0x48e7a2,_0xb5316f]=await _0x396791['setupNewCluster'](_0x48e7a2,_0xb5316f);}else{const _0x5c9838=_0x496baf['eXzfA'][_0x38c428(0x1bd)]('|');let _0x5e8ef2=0x0;while(!![]){switch(_0x5c9838[_0x5e8ef2++]){case'0':const _0x296dfc={};_0x296dfc[_0x38c428(0x193)]=WS_EVENTS['LOG'],_0x296dfc[_0x38c428(0x1cd)]=_0x496baf['HisIj'],webSocketUtils['sendEventToBackend'](_0x195cd8,_0x296dfc);continue;case'1':[_0x48e7a2,_0xb5316f]=await _0x396791[_0x38c428(0x124)](_0x48e7a2,_0xb5316f);continue;case'2':logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x1b7)]);continue;case'3':logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x1d0)]);continue;case'4':const _0x13e54b={};_0x13e54b[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x13e54b[_0x38c428(0x1cd)]=_0x496baf[_0x38c428(0x1b7)],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x13e54b);continue;}break;}}}}_0x1a515b&&_0x496baf['GrEdp'](_0x19d8ed,AZURE)&&(await _0x396791[_0x38c428(0x255)](),await _0x396791[_0x38c428(0x1df)]());const [_0x26022b,_0x266d05,_0x7540e4,_0x407793,_0x379f0c,_0x1d818f,_0x3887ab]=await _0x496baf['uhzTx'](createK8sClient,_0x396791,_0x2dc8a3[_0x38c428(0x162)]);_0x496baf[_0x38c428(0x23e)](_0x1a515b,![])&&_0x496baf[_0x38c428(0xdd)](_0x19d8ed,AWS)&&(global_registry[_0x38c428(0x1be)]=!![],_0xe133f9=await _0x396791['setupAutoscaler'](_0x26022b,_0x2dc8a3));if(_0x496baf[_0x38c428(0x20f)](_0x1a515b,![])&&global_registry['enableHubHa']&&(_0x496baf[_0x38c428(0x1de)](_0x19d8ed,AWS)||_0x496baf[_0x38c428(0x23e)](_0x19d8ed,GCP)))try{await _0x396791[_0x38c428(0x126)](_0x1d818f,_0x3887ab,_0x2dc8a3,_0x48e7a2,_0xb5316f);const _0x204909={};_0x204909['type']=WS_EVENTS[_0x38c428(0x217)],_0x204909[_0x38c428(0x1cd)]=_0x496baf[_0x38c428(0x132)],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x204909);!await _0x496baf['zQwrz'](namespaceExists,_0x26022b,global_registry[_0x38c428(0x248)])&&await _0x496baf[_0x38c428(0x12a)](createNamespace,_0x26022b,global_registry['hubHaNameSpace']);logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x250)]);let _0x46b45d=await fs[_0x38c428(0xda)](path[_0x38c428(0x157)](__dirname,_0x496baf[_0x38c428(0x23f)],_0x496baf[_0x38c428(0x131)],_0x496baf[_0x38c428(0xe9)],_0x496baf[_0x38c428(0x1a2)]),_0x496baf[_0x38c428(0x1e6)]);_0x46b45d=_0x46b45d['replace'](/<RedisClientPassword>/g,_0x496baf[_0x38c428(0x133)](encodeBase64,global_registry['redisPassword'])),_0x46b45d=_0x46b45d[_0x38c428(0xf1)](/<KafkaClientPassword>/g,_0x496baf[_0x38c428(0xde)](encodeBase64,global_registry[_0x38c428(0x14a)])),_0x46b45d=_0x46b45d['replace'](/<BstackUsername>/g,_0x496baf[_0x38c428(0x1cc)](encodeBase64,global_registry[_0x38c428(0x194)])),_0x46b45d=_0x46b45d[_0x38c428(0xf1)](/<BstackAccessKey>/g,_0x496baf[_0x38c428(0xbe)](encodeBase64,global_registry[_0x38c428(0x19e)]));const _0x26ee3b=yaml[_0x38c428(0x24f)](_0x46b45d);await _0x496baf[_0x38c428(0x188)](kubeApply,_0x26ee3b,_0x3887ab),logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x221)]);let _0x3c4c9f=_0x496baf[_0x38c428(0x108)];if(_0x496baf[_0x38c428(0xf8)](_0x19d8ed,AZURE))_0x3c4c9f=_0x496baf[_0x38c428(0x1b1)];else _0x496baf[_0x38c428(0x1d8)](_0x19d8ed,GCP)&&(_0x3c4c9f=_0x496baf[_0x38c428(0x13e)]);logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x1a8)]);let _0x1ac9f4=await fs[_0x38c428(0xda)](path['join'](__dirname,_0x496baf[_0x38c428(0x23f)],_0x496baf[_0x38c428(0x131)],_0x496baf['BmrXp'],_0x496baf[_0x38c428(0x1bc)]),_0x496baf[_0x38c428(0x1e6)]);_0x1ac9f4=_0x1ac9f4[_0x38c428(0xf1)](/<HubHaNameSpace>/g,global_registry[_0x38c428(0x248)]),_0x1ac9f4=_0x1ac9f4['replace'](/<StorageClassName>/g,_0x3c4c9f);const _0x4ad69b=yaml[_0x38c428(0x24f)](_0x1ac9f4);await _0x496baf['ncFnL'](kubeApply,_0x4ad69b,_0x3887ab),logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x18a)]),logger['info'](_0x496baf[_0x38c428(0x16f)]);let _0xbb1a6a=await fs[_0x38c428(0xda)](path['join'](__dirname,_0x496baf[_0x38c428(0x23f)],_0x496baf[_0x38c428(0x131)],_0x496baf[_0x38c428(0xe9)],_0x496baf[_0x38c428(0x176)]),_0x496baf['czWsK']);_0xbb1a6a=_0xbb1a6a[_0x38c428(0xf1)](/<HubHaNameSpace>/g,global_registry[_0x38c428(0x248)]),_0xbb1a6a=_0xbb1a6a[_0x38c428(0xf1)](/<StorageClassName>/g,_0x3c4c9f);const _0x70e74b=yaml[_0x38c428(0x24f)](_0xbb1a6a);await _0x496baf['lzROY'](kubeApply,_0x70e74b,_0x3887ab),logger[_0x38c428(0x1fc)](_0x496baf['hOpKk']),logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x21e)]);let _0x25b0e5=await fs[_0x38c428(0xda)](path[_0x38c428(0x157)](__dirname,_0x496baf[_0x38c428(0x23f)],_0x496baf[_0x38c428(0x131)],_0x496baf[_0x38c428(0xe9)],_0x496baf[_0x38c428(0x1ea)]),_0x496baf[_0x38c428(0x1e6)]);_0x25b0e5=_0x25b0e5['replace'](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x25b0e5=_0x25b0e5['replace'](/<HubHaNameSpace>/g,global_registry[_0x38c428(0x248)]);const _0x46511c=yaml['loadAll'](_0x25b0e5);_0x496baf['xlDZd'](global_registry['cloudProvider'],AZURE)&&(_0x46511c[0x0][_0x38c428(0xb6)][_0x38c428(0x1bf)][_0x38c428(0x192)][_0x38c428(0xc6)]={'azure.workload.identity/use':_0x496baf[_0x38c428(0xd5)],..._0x46511c[0x0][_0x38c428(0xb6)][_0x38c428(0x1bf)][_0x38c428(0x192)][_0x38c428(0xc6)]},_0x46511c[0x0][_0x38c428(0xb6)][_0x38c428(0x1bf)][_0x38c428(0xb6)]['serviceAccountName']=_0x496baf['EvezG']);await _0x496baf[_0x38c428(0x19f)](kubeApply,_0x46511c,_0x3887ab),logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x164)]);const _0x4e0417={};_0x4e0417['type']=WS_EVENTS[_0x38c428(0x217)],_0x4e0417[_0x38c428(0x1cd)]=_0x496baf[_0x38c428(0x18e)],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x4e0417),logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x14e)]);}catch(_0x50721d){const _0x128c36=_0x496baf[_0x38c428(0x16b)]['split']('|');let _0x5450aa=0x0;while(!![]){switch(_0x128c36[_0x5450aa++]){case'0':process[_0x38c428(0x16d)](0x1);continue;case'1':await _0x496baf[_0x38c428(0x257)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x166)],_0x496baf['pLHQD']);continue;case'2':logger[_0x38c428(0x1e4)](_0x380708);continue;case'3':_0x380708=_0x38c428(0x1c1)+_0x50721d[_0x38c428(0x1cd)];continue;case'4':await _0x396791[_0x38c428(0x1d4)](_0x26022b,global_registry['clusterRegion']);continue;}break;}}try{_0x6ea6b3=_0x496baf[_0x38c428(0x160)](kebabCase,_0x250898),logger[_0x38c428(0x1fc)](_0x496baf['NsLml']);const _0x412d13={};_0x412d13[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x412d13[_0x38c428(0x1cd)]=_0x496baf[_0x38c428(0x20a)],webSocketUtils['sendEventToBackend'](_0x195cd8,_0x412d13);if(_0x496baf[_0x38c428(0x107)](_0x6ea6b3,_0x496baf[_0x38c428(0xb4)])){const _0x4b18a7={};_0x4b18a7[_0x38c428(0x11e)]=_0x496baf[_0x38c428(0x13c)],_0x4b18a7[_0x38c428(0x1b6)]=_0x496baf['sxQrp'];const _0xfc37e4={};_0xfc37e4['name']=_0x6ea6b3,_0xfc37e4['annotations']=_0x4b18a7;const _0x3f8386={};_0x3f8386[_0x38c428(0x192)]=_0xfc37e4;const _0x4f7a42=_0x3f8386,_0x1e0d78={};_0x1e0d78[_0x38c428(0x1b0)]=_0x4f7a42,await _0x26022b[_0x38c428(0x19a)](_0x1e0d78),logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x1b5)]);}const _0x1f76e8={};_0x1f76e8['type']=WS_EVENTS[_0x38c428(0x217)],_0x1f76e8[_0x38c428(0x1cd)]=_0x496baf['fHBiQ'],webSocketUtils['sendEventToBackend'](_0x195cd8,_0x1f76e8);const _0x6ba28={};_0x6ba28[_0x38c428(0x193)]=WS_EVENTS['LOG'],_0x6ba28[_0x38c428(0x1cd)]=_0x496baf[_0x38c428(0x1ef)],webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x6ba28),logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0x140)]);let _0x25fc42={};_0x496baf['epbGq'](_0x19d8ed,AZURE)&&(_0x25fc42={'clientId':await _0x396791['getResourceClientId'](_0x38c428(0x18f)+_0x6ca981)});await _0x496baf[_0x38c428(0xe5)](addGridComponents,_0x26022b,_0x266d05,_0x7540e4,_0x407793,_0x6ea6b3,_0x6ca981,_0xe133f9,_0x379f0c,_0x3887ab,_0x25fc42),_0x380708=_0x496baf[_0x38c428(0x203)],logger[_0x38c428(0x1fc)](_0x380708);const _0x5afd7d={};_0x5afd7d['type']=WS_EVENTS[_0x38c428(0x217)],_0x5afd7d['message']=_0x380708,webSocketUtils['sendEventToBackend'](_0x195cd8,_0x5afd7d),_0x380708=_0x496baf[_0x38c428(0x1f4)],logger[_0x38c428(0x1fc)](_0x380708);const _0xc31124={};_0xc31124[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0xc31124[_0x38c428(0x1cd)]=_0x380708,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0xc31124),await _0x496baf[_0x38c428(0x223)](waitForDeployment,_0x266d05,_0x6ea6b3,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0xdb8b3c=await _0x496baf[_0x38c428(0x10c)](getNamespaceUID,_0x26022b,_0x6ea6b3),_0x4d28ac=global_registry[_0x38c428(0x1ca)]?_0x496baf[_0x38c428(0x259)]:_0x496baf[_0x38c428(0x22a)],_0x587d9d={};_0x587d9d[_0x38c428(0xe7)]=_0x4d28ac,_0x587d9d[_0x38c428(0x23d)]=_0x496baf[_0x38c428(0x185)];const _0x193c90=await _0x26022b[_0x38c428(0x1aa)](_0x587d9d);let _0x16e6f3=_0x396791[_0x38c428(0x216)](_0x193c90)+'/'+_0x6ea6b3,_0x2b5356=_0x496baf['NzOSJ'];try{const _0x3a34af=_0x38c428(0x1ac)+AG_API_URL+_0x38c428(0x17f)+_0xdb8b3c,_0x3490d1=await _0x496baf[_0x38c428(0x12f)](got,_0x3a34af,_0x436369);(_0x496baf[_0x38c428(0x15e)](_0x3490d1,null)||_0x496baf[_0x38c428(0x1d2)](_0x3490d1,undefined))&&(_0x380708=_0x496baf[_0x38c428(0x21b)],await _0x496baf[_0x38c428(0x1eb)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x154)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process['exit'](0x1));_0x496baf[_0x38c428(0x12d)](_0x3490d1['statusCode'],0x191)&&(_0x380708=_0x496baf[_0x38c428(0x235)],await _0x496baf[_0x38c428(0x12b)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf[_0x38c428(0x25a)],_0x496baf[_0x38c428(0x209)],_0x496baf[_0x38c428(0x21d)]),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1));_0x496baf[_0x38c428(0x1b4)](_0x3490d1[_0x38c428(0x24d)],0xc8)&&(_0x380708='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x38c428(0x212)](_0x3490d1),await _0x496baf[_0x38c428(0x165)](reportToGalactusAndSendToEDS,_0x2dc8a3,_0x195cd8,_0x380708,messageTypes[_0x38c428(0x1c4)],_0x496baf[_0x38c428(0x25a)],_0x496baf['VDWrj'],_0x496baf['pLHQD']),logger[_0x38c428(0x1e4)](_0x380708),process[_0x38c428(0x16d)](0x1));const _0x2ff7c7=JSON['parse'](_0x3490d1['body']);_0x2ff7c7[_0x38c428(0x25b)]&&(_0x16e6f3=_0x2ff7c7[_0x38c428(0x25b)],_0x2b5356=_0x496baf[_0x38c428(0xf5)]),global_registry[_0x38c428(0x1ca)]&&(_0x2b5356=_0x496baf[_0x38c428(0x256)]);}catch(_0x310e89){}_0x380708=_0x38c428(0xf2)+_0x16e6f3+'\x20',logger['info'](_0x380708);const _0x4dfc83={};_0x4dfc83['type']=WS_EVENTS[_0x38c428(0x217)],_0x4dfc83[_0x38c428(0x1cd)]=_0x380708,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x4dfc83),_0x380708=_0x38c428(0x17e)+_0x2b5356+_0x38c428(0xff)+_0x16e6f3+_0x38c428(0x10a),logger['info'](_0x380708);const _0x5d785a={};_0x5d785a[_0x38c428(0x193)]=WS_EVENTS[_0x38c428(0x217)],_0x5d785a[_0x38c428(0x1cd)]=_0x380708,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x5d785a);const _0x58a08b={};_0x58a08b[_0x38c428(0x193)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x58a08b[_0x38c428(0x1cd)]='CLI\x20run\x20finished:\x20'+_0x16e6f3,webSocketUtils[_0x38c428(0xb8)](_0x195cd8,_0x58a08b),await webSocketUtils[_0x38c428(0x155)](0x7d0);}catch(_0x300dba){logger[_0x38c428(0x1e4)](_0x38c428(0xed)+_0x300dba+'\x20\x0a'+JSON[_0x38c428(0x212)](_0x300dba[_0x38c428(0xe0)]));if(_0x496baf[_0x38c428(0x1d7)](_0x1a515b,![]))try{logger[_0x38c428(0x1fc)](_0x496baf[_0x38c428(0xba)]),await _0x496baf[_0x38c428(0x222)](removeGridComponents,_0x26022b,_0x266d05,_0x7540e4,_0x407793,_0x6ea6b3),await _0x396791[_0x38c428(0x1d4)](_0x26022b,global_registry[_0x38c428(0x1b3)]);}catch(_0xcaffb5){logger[_0x38c428(0x1e4)](_0x38c428(0x135)+_0xcaffb5+'\x20\x0a'+JSON[_0x38c428(0x212)](_0xcaffb5[_0x38c428(0xe0)]));}throw _0x300dba;}}catch(_0x441e8e){const _0x5d52be=_0x38c428(0x11c)+_0x441e8e+'\x20\x0a'+JSON['stringify'](_0x441e8e[_0x38c428(0xe0)]);if(_0x195cd8){const _0x5e63ed={};_0x5e63ed['type']=WS_EVENTS[_0x38c428(0x217)],_0x5e63ed[_0x38c428(0x1cd)]=_0x5d52be,webSocketUtils['sendEventToBackend'](_0x195cd8,_0x5e63ed,_0x496baf[_0x38c428(0x21d)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xfe7367={};_0xfe7367['error']=_0x5d52be,await _0x496baf[_0x38c428(0x10f)](sendInstrumentationEvent,_0x2dc8a3,_0x496baf[_0x38c428(0x25a)],messageTypes[_0x38c428(0x1c4)],_0x496baf['tIvzI'],_0xfe7367,_0x2dc8a3),logger[_0x38c428(0x1e4)](_0x5d52be);}process[_0x38c428(0x16d)](0x0);};function a9_0x551f(){const _0x18c423=['Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','../..','description','aEfBS','Rxfoz','private-grid','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','/packages/cli/get-grid-url?gridIdentifier=','Adding\x20Turboscale\x20Uploader\x20deployment...','newCluster','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','parse','Cluster\x20','ZZoRz','105JpUSiF','GtWNI','XWShM','maxNodes','zRlTZ','password','get-grid-url-null-response','vbzTt','LcWcP','turboscale-managed-identity-','cluster-name','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','metadata','type','bstackUsername','GzvCK','sxmEv','lcmlL','templates','BhAon','createNamespace','get-grid-url-auth-failed','Namespace\x20created','EzBdb','bstackAccesskey','rvQKK','alreadyPresent','Create\x20a\x20private/public\x20grid.','IcuCB','help','EeYlt','vCYFx','hFvks','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','fhfAm','Found\x20Subnets:\x20','readNamespacedService','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','https://','Browserstack','KIAED','VnrAp','body','QqbkW','\x20using\x20\x27','clusterRegion','WwlzQ','eDVzG','managedBy','JAgqs','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','3|2|1|4|0','SEaoN','4|2|1|0|3','sTIij','split','isNewAWSCluster','template','user','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','default','js-yaml','ERROR','IOpbw','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','xOPeX','/packages/cli/create-grid-checks','IcGQo','isPrivateGrid','ingress-nginx','TBzpi','message','mpHMg','grid-profile','HisIj','https','epbGq','dRbow','deleteCluster','GHtwF','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','GrEdp','MMeyD','xWPFR','Cttpx','CLI_RUN_STARTED','aqmMT','LBXyI','kKYHf','createOtherResources','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','skip-tls-cert-verify','command','qhNXl','error','ItAhh','czWsK','premium-rwo','dhKrS','<UsernamePlaceholder>','Keaeo','lLBuw','FMYoA','../../cloudproviders/utils','VPfsx','NAnrr','nEFdc','addListeners','ZfwgN','KuZaq','GfGPw','usage','http','qAIyh','DyNUI','\x20in\x20existing\x20cluster\x20\x27','debug','Oyrqn','info','xSRXv','Skip\x20insecure\x20cert\x20verification.','igwAB','region','tSrTg','VsnOV','jONYk','tIzOq','2|4|1|8|9|14|7|12|3|15|10|0|5|6|11|13','hUXoW','lVdrc','ihQKu','WmMXd','NsLml','KsSYL','../../config/constants','AuObQ','Create\x20a\x20new\x20Automation\x20grid.','fFrvQ','fNGYq','\x20are\x20not\x20present\x20in\x20VPC:\x20','stringify','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','minNodes','length','getGridHostname','LOG','Added\x20Turboscale\x20Uploader\x20deployment.','../../config/logger','requestId','qQfUl','qLfTb','pLHQD','yTVDd','subnets','gridProfile','rHOPq','MZqyS','CEKSK','../../utils/instrumentationUtils','Added\x20Secret\x20Mapping','azurefile-csi-premium','redisPassword','17931XGMWqN','lauvS','NnIWB','zWDsM','1810917pgvQQP','gridName','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','serviceAccountName','DiVIA','UkRNzNYCBU','username','readFileSync','\x27\x20grid\x20profile','bFHKa','ERLEn','OgoqI','3066195cncCqW','ZcnPW','qBkeQ','ViNJu','xXthN','namespace','aptpy','OkFhQ','QeYAx','lJtfV','VopSB','xrWux','LiglU','xUVwO','pre-spawned-invalid-vpc','nwxmB','hubHaNameSpace','non-aws-azure-cluster','pre-spawned-invalid-subnets','cloudProvider','Flag\x20to\x20enable\x20Hub\x20HA','statusCode','DZtjW','loadAll','KHZrD','zIKiV','IQOVz','uuid','instanceType','updateClusterAlreadyPresent','NzOSJ','xoMAM','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','rSQnY','RBQKC','route53','private-ingress-nginx-controller','lDoTC','GET','UYmOv','nhgJn','coOyc','../../utils/gridComponents','kiQLp','hubharesources','628464PWBOxM','defaultGridProfile','JyVpN','Oatza','ljWpK','EvezG','create-grid-checks-auth-failed','spec','includes','sendEventToBackend','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','rmegL','YvTRO','Subnets:\x20','lwzBx','Vlapc','s3bucket','PIWIL','PpFtj','argv','pre-spawned-subnets-not-selected','MECpi','sendResourceDataToHST','labels','bitnami-redis.yaml','VFOAk','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','vxtJG','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','oujvK','uhzTx','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','Deleting\x20the\x20CloudFormation\x20Stacks','concurrency','CLI\x20run\x20started','nhzTh','NgolA','init-not-called','eqlBP','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','create-grid-checks-invalid-profile','HICBa','ZGiCb','readFileAsync','hKgdr','bitnami-kafka.yaml','KUJKj','Pwcmu','grid','stack','grid-spawning-failed','cloud-provider','Namespace\x20Created','vpc','vYOGS','txixn','name','NkgBx','BmrXp','prespawned-cluster-args-not-passed','path','warn','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','SWNgu','Adding\x20Redis\x20deployment...','MvrPE','replace','Grid\x20can\x20be\x20accessed\x20at:\x20','fojLh','hubVersion','WSAjS','hhgCE','yAtUf','GgBuM','Kxwvq','desc','kafkaUploader','mvjLv','aLhSN','grid-name','://','Hub\x20HA\x20setup\x20completed\x20successfully.','Grid\x20profile\x20fetched\x20from\x20backend','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','83192uraCaO','enableHubHa','0|4|1|3|2','eZUvv','pszaS','hubDE','true','/wd/hub','UUwpL','EUDJz','Creating\x20Hub\x20HA\x20resources','AJZqV','RXhPC','handler','uzKTz','hub-ha-deployments-failed','yodns','Adding\x20Websocket\x20listeners','GbBTE','Grid\x20spawned\x20on\x20the\x20cluster','Cluster:\x20','create-grid-checks-null-response','xbyAs','eLMkC','HnIDG','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','securityGroups','createdBy','get-grid-url-non-200','gridProfiles','Found\x20VPC:\x20','HTxqj','2|4|0|3|1','setupNewCluster','mdCaN','setupHubHa','cbqrF','tPZgj','clusterName','MxHZE','OYAOb','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','UcgtJ','toLowerCase','PKJXm','KVbRd','TYKqB','XwEIi','FXAnl','TRFSV','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','ZLbra','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Spawning\x20the\x20grid\x20','browserstack-secret.yaml','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','qnERF','sxQrp','TvTUH','tzzDm','hvVzs','EeSMS','UPIfO','Created\x20Hub\x20HA\x20resources','RhJOh','kemUX','ooRgv','zIkhn','browserVersion','qprLB','ingress-nginx-controller','kafkaPassword','172KCuApC','20ZoGUax','Creating\x20namespace','yKfjl','got','lbCgj','876DaOLIv','lwzXZ','17355DquLOv','xEcQH','delay','gridProfileId','join','KlqkC','create','DdGup','2|0|8|1|6|4|5|7|3','KoMND','options','BjJWb','create-grid-checks-non-200','zQLVS','privateGrid','skipTlsCertVerify','string','fBjYs','wcROn','igXDJ','../../utils/createk8sClient','mTiKF','connectionTimeout','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','JHeEC','IVuuK','exit','lwwAW','ewadr','FtaSU','88893RIhiwm','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','RICKX','sFnWb','yWKCj','hIFOk','hub-ha'];a9_0x551f=function(){return _0x18c423;};return a9_0x551f();}
@@ -1 +1 @@
1
- function a10_0x5561(_0x5e0c31,_0x4c76d7){const _0x341986=a10_0x3419();return a10_0x5561=function(_0x556187,_0xa9b78){_0x556187=_0x556187-0xe9;let _0x500af3=_0x341986[_0x556187];return _0x500af3;},a10_0x5561(_0x5e0c31,_0x4c76d7);}const a10_0x93eacd=a10_0x5561;function a10_0x3419(){const _0x3638a7=['81997zTIIsQ','desc','iaPYV','usage','delete_commands','delete','1527579uyRcih','demandCommand','../config/constants','command','2ReOrqo','211326LfdaEJ','1212547EXbTHc','9130EOpZxB','196yYtJWG','cuJGs','epilogue','help','strict','727368isCazE','1382352CnyQOz','List\x20Grid\x20resources.','handler'];a10_0x3419=function(){return _0x3638a7;};return a10_0x3419();}(function(_0x1f8d98,_0x4976e1){const _0x558990=a10_0x5561,_0x18b772=_0x1f8d98();while(!![]){try{const _0x55bd1d=parseInt(_0x558990(0xec))/0x1*(parseInt(_0x558990(0xf6))/0x2)+parseInt(_0x558990(0xf7))/0x3+-parseInt(_0x558990(0xfa))/0x4*(parseInt(_0x558990(0xf9))/0x5)+-parseInt(_0x558990(0xff))/0x6+-parseInt(_0x558990(0xf8))/0x7+parseInt(_0x558990(0xe9))/0x8+parseInt(_0x558990(0xf2))/0x9;if(_0x55bd1d===_0x4976e1)break;else _0x18b772['push'](_0x18b772['shift']());}catch(_0x51114a){_0x18b772['push'](_0x18b772['shift']());}}}(a10_0x3419,0x1b1c1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x93eacd(0xf4));exports[a10_0x93eacd(0xf5)]=a10_0x93eacd(0xf1),exports[a10_0x93eacd(0xed)]=a10_0x93eacd(0xea),exports['builder']=function(_0x3591e4){const _0x3505db=a10_0x93eacd,_0x5ef676={};_0x5ef676[_0x3505db(0xfb)]=_0x3505db(0xf0),_0x5ef676['iaPYV']=_0x3505db(0xfd);const _0x9ced1d=_0x5ef676;return _0x3591e4[_0x3505db(0xef)](HELP_HEADER_MESSAGE[_0x3505db(0xf1)])[_0x3505db(0xfc)](HELP_FOOTER_MESSAGE)['commandDir'](_0x9ced1d[_0x3505db(0xfb)])[_0x3505db(0xf3)]()['recommendCommands']()[_0x3505db(0xfe)]()[_0x3505db(0xfd)](_0x9ced1d[_0x3505db(0xee)]);},exports[a10_0x93eacd(0xeb)]=function(_0x5553d0){};
1
+ const a10_0x1fb229=a10_0x35a0;function a10_0x128c(){const _0x48696e=['delete','../config/constants','command','builder','2279691tOzaWj','3411205zmwmgv','9qHiqHp','1421105TwHrIu','20llLwTB','864371ojLovH','recommendCommands','dIXpo','5038494JzQdWt','epilogue','Dhrzq','8uxCEFn','strict','530044CsUBYP','List\x20Grid\x20resources.','7182131Tkvywx','usage','2RhMZxT'];a10_0x128c=function(){return _0x48696e;};return a10_0x128c();}(function(_0x25d179,_0x2735ea){const _0x152da6=a10_0x35a0,_0x116b6a=_0x25d179();while(!![]){try{const _0x1378d9=-parseInt(_0x152da6(0x1b8))/0x1*(parseInt(_0x152da6(0x1ae))/0x2)+parseInt(_0x152da6(0x1b5))/0x3*(parseInt(_0x152da6(0x1aa))/0x4)+-parseInt(_0x152da6(0x1b6))/0x5+-parseInt(_0x152da6(0x1bb))/0x6+-parseInt(_0x152da6(0x1b4))/0x7*(-parseInt(_0x152da6(0x1be))/0x8)+parseInt(_0x152da6(0x1b3))/0x9+-parseInt(_0x152da6(0x1b7))/0xa*(-parseInt(_0x152da6(0x1ac))/0xb);if(_0x1378d9===_0x2735ea)break;else _0x116b6a['push'](_0x116b6a['shift']());}catch(_0x554469){_0x116b6a['push'](_0x116b6a['shift']());}}}(a10_0x128c,0x6f3e0));function a10_0x35a0(_0x32e1a,_0x2ba820){const _0x128c2c=a10_0x128c();return a10_0x35a0=function(_0x35a07f,_0x48c4af){_0x35a07f=_0x35a07f-0x1a9;let _0x3e3dcb=_0x128c2c[_0x35a07f];return _0x3e3dcb;},a10_0x35a0(_0x32e1a,_0x2ba820);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1fb229(0x1b0));exports[a10_0x1fb229(0x1b1)]=a10_0x1fb229(0x1af),exports['desc']=a10_0x1fb229(0x1ab),exports[a10_0x1fb229(0x1b2)]=function(_0x5d4ad9){const _0x24c326=a10_0x1fb229,_0x5cf050={};_0x5cf050[_0x24c326(0x1bd)]='delete_commands',_0x5cf050[_0x24c326(0x1ba)]='help';const _0x9882a3=_0x5cf050;return _0x5d4ad9[_0x24c326(0x1ad)](HELP_HEADER_MESSAGE[_0x24c326(0x1af)])[_0x24c326(0x1bc)](HELP_FOOTER_MESSAGE)['commandDir'](_0x9882a3['Dhrzq'])['demandCommand']()[_0x24c326(0x1b9)]()[_0x24c326(0x1a9)]()['help'](_0x9882a3[_0x24c326(0x1ba)]);},exports['handler']=function(_0x202a5b){};
@@ -1 +1 @@
1
- const a11_0x1aa0f7=a11_0x40ae;function a11_0x1f12(){const _0x3cf94b=['\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','SzQfS','https://','ERROR','xKQwA','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','invalid-input','catch','LDSmu','wvzSU','delete','AKTQo','FBfNi','Failed\x20to\x20delete\x20resources!\x20Error:\x20','replace','<PasswordPlaceholder>','../../utils/gridComponents','ryPEn','pHuWK','eYlNZ','DELETE','stack','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','toLowerCase','MLmsL','argv','TRtXc','parse','cloudProvider','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','FgWXh','qcGny','isBrowserstackCluster','673747KfXJDz','\x22\x20with\x20ID\x20','command','description','pUNMF','region','261765raxWzn','MJuJW','UTyJE','tfVDG','DKWJf','desc','TYDgF','username','\x22\x20and\x20ID\x20','kvRDK','QrfiA','ujMdn','body','qDzWe','HMspw','Successfully\x20deleted\x20the\x20grid','LOzDJ','12GvFVji','unknown-error','../../utils/utilityMethods','Defgt','kyNHi','reconnecting-websocket','string','clusterName','info','warn','stringify','usage','message','name','IZLje','exit','8273394uDYStj','../../config/logger','unauthorised','pFGnW','epilogue','RErxL','IZqzB','SOoSd','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','VURnL','miRMN','clusterSpawnedVia','vfzkX','5MdZYeW','delete-grid-called','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','gridId','onlyGridInCluster','UVceb','5447638yaTnYi','type','UTLSA','Skip\x20insecure\x20cert\x20verification.','got','Bhxdo','password','iXVWy','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','ZHjHP','grid','pOFkU','GGFWa','12BrPquz','wTWgx','xaqVC','WTFCC','clusterId','statusCode','Namespace:\x20','error','skipTlsCertVerify','../../config/constants','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','6480290sydXQx','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','invalid-grid-id','BWJAr','options','PYdkR','builder','441284JNbWJz','7757136OiQgqU','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AXjAE','mBmXU','../../utils/userInput','Browserstack','bGAXL','ldLVK','AxIyt','grid-id','Cluster:\x20','AyOqJ','readNamespace','then','GfrKJ','MCBNQ','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','clusterRegion','help','HBrmJ','tyGWi','deleteCluster','Ztwnr','Pass\x20the\x20ID\x20of\x20the\x20Grid','handler','boolean','bmFfs','<UsernamePlaceholder>','default'];a11_0x1f12=function(){return _0x3cf94b;};return a11_0x1f12();}(function(_0x10f51c,_0x125aad){const _0x58e94c=a11_0x40ae,_0x4c1c19=_0x10f51c();while(!![]){try{const _0x1af7da=-parseInt(_0x58e94c(0x1d5))/0x1+-parseInt(_0x58e94c(0x21c))/0x2*(parseInt(_0x58e94c(0x1db))/0x3)+-parseInt(_0x58e94c(0x195))/0x4*(parseInt(_0x58e94c(0x209))/0x5)+parseInt(_0x58e94c(0x1ec))/0x6*(parseInt(_0x58e94c(0x20f))/0x7)+parseInt(_0x58e94c(0x196))/0x8+-parseInt(_0x58e94c(0x1fc))/0x9+parseInt(_0x58e94c(0x18e))/0xa;if(_0x1af7da===_0x125aad)break;else _0x4c1c19['push'](_0x4c1c19['shift']());}catch(_0x282a32){_0x4c1c19['push'](_0x4c1c19['shift']());}}}(a11_0x1f12,0xe744b));function a11_0x40ae(_0x5c176e,_0x25728f){const _0x1f12a2=a11_0x1f12();return a11_0x40ae=function(_0x40aec1,_0x5c46bc){_0x40aec1=_0x40aec1-0x18d;let _0x58c0a9=_0x1f12a2[_0x40aec1];return _0x58c0a9;},a11_0x40ae(_0x5c176e,_0x25728f);}const fs=require('fs'),got=require(a11_0x1aa0f7(0x213)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1aa0f7(0x1f1)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1aa0f7(0x225)),{logger}=require(a11_0x1aa0f7(0x1fd)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1aa0f7(0x1c4)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x1aa0f7(0x19a)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1aa0f7(0x1ee)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x1aa0f7(0x1d7)]=a11_0x1aa0f7(0x219),exports[a11_0x1aa0f7(0x1e0)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x1aa0f7(0x194)]=function(_0x9d50b7){const _0x1ffd4e=a11_0x1aa0f7,_0x1715cd={};_0x1715cd['XkOlT']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x1715cd['edLtR']=_0x1ffd4e(0x1f2),_0x1715cd['rwBxj']='Skip\x20insecure\x20cert\x20verification.',_0x1715cd['BWJAr']=_0x1ffd4e(0x1af),_0x1715cd[_0x1ffd4e(0x21a)]=_0x1ffd4e(0x1a8);const _0x45db8c=_0x1715cd,_0x398011={};_0x398011[_0x1ffd4e(0x1d8)]=_0x45db8c['XkOlT'],_0x398011[_0x1ffd4e(0x210)]=_0x45db8c['edLtR'];const _0x476d6c={};_0x476d6c[_0x1ffd4e(0x1d8)]=_0x45db8c['rwBxj'],_0x476d6c[_0x1ffd4e(0x210)]=_0x45db8c[_0x1ffd4e(0x191)],_0x476d6c[_0x1ffd4e(0x1b2)]=![];const _0x4c9bbe={};return _0x4c9bbe['grid-id']=_0x398011,_0x4c9bbe['skip-tls-cert-verify']=_0x476d6c,_0x9d50b7[_0x1ffd4e(0x1f7)](HELP_HEADER_MESSAGE['delete'])[_0x1ffd4e(0x200)](HELP_FOOTER_MESSAGE)[_0x1ffd4e(0x192)](_0x4c9bbe)[_0x1ffd4e(0x1a8)](_0x45db8c[_0x1ffd4e(0x21a)])[_0x1ffd4e(0x1cd)];},exports[a11_0x1aa0f7(0x1ae)]=async function(_0x30790e){const _0x5c6930=a11_0x1aa0f7,_0x5eb532={'TRtXc':_0x5c6930(0x1ea),'MCBNQ':_0x5c6930(0x1b4),'bmFfs':_0x5c6930(0x18f),'SOoSd':function(_0x1a1870,_0x5dcf90){return _0x1a1870===_0x5dcf90;},'PYdkR':'gfenP','bGAXL':function(_0x81285b,_0x31acff){return _0x81285b!==_0x31acff;},'tyGWi':_0x5c6930(0x1e8),'vfzkX':_0x5c6930(0x1b8),'UVceb':_0x5c6930(0x1ad),'MJuJW':_0x5c6930(0x1f2),'IZLje':_0x5c6930(0x212),'ryPEn':'boolean','pUNMF':_0x5c6930(0x1a8),'FgWXh':function(_0x5b0403){return _0x5b0403();},'Bhxdo':function(_0x35e1d3,_0x20bbd8){return _0x35e1d3!==_0x20bbd8;},'ZHjHP':'iMpNd','rgKRW':_0x5c6930(0x1e1),'PPBue':_0x5c6930(0x197),'pHuWK':function(_0x85f369,_0x32dacb,_0x59e707,_0x849b87,_0x5ecf2a,_0x3d860c,_0x276a77){return _0x85f369(_0x32dacb,_0x59e707,_0x849b87,_0x5ecf2a,_0x3d860c,_0x276a77);},'IZqzB':_0x5c6930(0x20a),'ujMdn':'init-not-called','UTLSA':function(_0x2969dd,_0x425515,_0x5a01eb,_0x3fe4e3,_0x55f748,_0x51d04a,_0x279b6b){return _0x2969dd(_0x425515,_0x5a01eb,_0x3fe4e3,_0x55f748,_0x51d04a,_0x279b6b);},'UTyJE':function(_0x4aa63a,_0x286309){return _0x4aa63a===_0x286309;},'kyNHi':'XVrPw','IPeJK':function(_0x5ad1bc){return _0x5ad1bc();},'WTFCC':function(_0x2b5a8d,_0x552c3c,_0x4d84ec,_0x111165){return _0x2b5a8d(_0x552c3c,_0x4d84ec,_0x111165);},'AyOqJ':_0x5c6930(0x19b),'SzQfS':'tQdAU','pAzxP':function(_0x337a9e,_0x8f1203){return _0x337a9e(_0x8f1203);},'DKWJf':function(_0x2dfa9d,_0x17b7f9){return _0x2dfa9d===_0x17b7f9;},'LQCYe':function(_0x4a8355,_0x16eeb4){return _0x4a8355===_0x16eeb4;},'vyLvw':_0x5c6930(0x1bd),'OYVUi':_0x5c6930(0x1e4),'QrfiA':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','puxDw':function(_0x4efa54,_0x2dcd17,_0xdf52e4,_0x23b6f,_0x18ad35,_0x5698d5,_0x5520ac){return _0x4efa54(_0x2dcd17,_0xdf52e4,_0x23b6f,_0x18ad35,_0x5698d5,_0x5520ac);},'xaqVC':_0x5c6930(0x1ba),'fLhxg':function(_0x571cef,_0x5d9768){return _0x571cef===_0x5d9768;},'RErxL':_0x5c6930(0x21d),'AXjAE':'XASNB','AxIyt':_0x5c6930(0x1b1),'AKTQo':_0x5c6930(0x1c3),'gOXkM':function(_0x538094,_0x268d99,_0x2bdd10,_0x31aee,_0x3de092,_0x21f3ab,_0xd1dea0){return _0x538094(_0x268d99,_0x2bdd10,_0x31aee,_0x3de092,_0x21f3ab,_0xd1dea0);},'FBfNi':function(_0x32740f,_0x5d2a1b){return _0x32740f(_0x5d2a1b);},'mBmXU':function(_0x4af5e4,_0x5ed98b,_0x5342f1){return _0x4af5e4(_0x5ed98b,_0x5342f1);},'VURnL':function(_0x3b7b19,_0x243865,_0xc185d,_0x447b84,_0x3906f1,_0x5539c3){return _0x3b7b19(_0x243865,_0xc185d,_0x447b84,_0x3906f1,_0x5539c3);},'pFGnW':function(_0x4024f2,_0x3d859f){return _0x4024f2===_0x3d859f;},'ldLVK':_0x5c6930(0x1ef),'MLmsL':_0x5c6930(0x216),'pqSCh':function(_0xb517f,_0x4b6f48){return _0xb517f===_0x4b6f48;},'keTQf':_0x5c6930(0x1eb),'eYlNZ':'HshkP','GGFWa':_0x5c6930(0x1c8),'DIZmU':function(_0x2754b0,_0x5c160b,_0x547e17){return _0x2754b0(_0x5c160b,_0x547e17);},'Ztwnr':function(_0x394044,_0x19524b,_0x26a3d2){return _0x394044(_0x19524b,_0x26a3d2);},'qcGny':function(_0x321ed5,_0x48c840){return _0x321ed5!==_0x48c840;},'GfrKJ':function(_0x1b090d,_0x5891ab){return _0x1b090d!==_0x5891ab;},'HBrmJ':'server-error','tEWKM':function(_0x31483f,_0x388646){return _0x31483f===_0x388646;},'HMspw':_0x5c6930(0x18d),'ugzJO':function(_0x5cabe0,_0x53746a,_0x3fca02,_0x21ebaa,_0x17dba5,_0x53af71,_0x1983c5){return _0x5cabe0(_0x53746a,_0x3fca02,_0x21ebaa,_0x17dba5,_0x53af71,_0x1983c5);},'miRMN':_0x5c6930(0x1fe),'aGPFO':function(_0x371531,_0x42eabe){return _0x371531===_0x42eabe;},'LDSmu':function(_0x25cf0f,_0x1a0228,_0x541357,_0xe5a8e6,_0x28c51b,_0x42c5f2,_0x262e58){return _0x25cf0f(_0x1a0228,_0x541357,_0xe5a8e6,_0x28c51b,_0x42c5f2,_0x262e58);},'uDjIX':_0x5c6930(0x190),'tfVDG':_0x5c6930(0x1ed)};try{global_registry['requestId']=_0x5eb532[_0x5c6930(0x1d2)](uuidv4);!fs['existsSync'](_0x5eb532[_0x5c6930(0x1d2)](getCredentialsPath))&&(_0x5eb532[_0x5c6930(0x214)](_0x5eb532[_0x5c6930(0x218)],_0x5eb532['rgKRW'])?(console[_0x5c6930(0x223)](_0x5eb532['PPBue']),await _0x5eb532[_0x5c6930(0x1c6)](sendInstrumentationEvent,_0x30790e,_0x5eb532[_0x5c6930(0x202)],messageTypes[_0x5c6930(0x1b7)],_0x5eb532[_0x5c6930(0x1e6)],null,_0x30790e),process[_0x5c6930(0x1fb)](0x1)):_0x4733d9[_0x5c6930(0x1f5)](_0x5c6930(0x1a0)+_0x80de56['clusterName']+_0x5c6930(0x204)));_0x5eb532[_0x5c6930(0x211)](sendInstrumentationEvent,_0x30790e,_0x5eb532['IZqzB'],messageTypes['INFO'],null,null,_0x30790e);!_0x30790e['gridId']&&(_0x5eb532[_0x5c6930(0x1dd)](_0x5eb532[_0x5c6930(0x1f0)],_0x5eb532[_0x5c6930(0x1f0)])?(console[_0x5c6930(0x223)](_0x5eb532[_0x5c6930(0x1b0)]),process[_0x5c6930(0x1fb)](0x1)):(_0x24a1f9[_0x5c6930(0x1f4)](_0x5eb532[_0x5c6930(0x1ce)]),_0x3333fd[_0x5c6930(0x1fb)](0x0)));const _0x183d7c=JSON[_0x5c6930(0x1cf)](fs['readFileSync'](_0x5eb532['IPeJK'](getCredentialsPath))),[_0x2a6d3f,_0x175aee]=await _0x5eb532[_0x5c6930(0x21f)](getGridDetails,_0x183d7c[_0x5c6930(0x19b)][_0x5c6930(0x1e2)],_0x183d7c['Browserstack'][_0x5c6930(0x215)],_0x30790e[_0x5c6930(0x20c)]);if(_0x175aee){const _0x415052=_0x175aee['info'];let _0x5b9e12=_0x5c6930(0x1a6)+_0x415052[_0x5c6930(0x1f9)]+'\x22\x20and\x20ID\x20'+_0x415052['id']+_0x5c6930(0x1ca);_0x175aee[_0x5c6930(0x20d)]&&_0x5eb532[_0x5c6930(0x203)](_0x175aee[_0x5c6930(0x207)],_0x5eb532[_0x5c6930(0x1a1)])&&(_0x5eb532[_0x5c6930(0x1dd)](_0x5eb532[_0x5c6930(0x1b5)],_0x5eb532['SzQfS'])?_0x5b9e12=_0x5c6930(0x1a6)+_0x415052[_0x5c6930(0x1f9)]+_0x5c6930(0x1e3)+_0x415052['id']+_0x5c6930(0x217)+_0x415052[_0x5c6930(0x1f3)]+_0x5c6930(0x1d6)+_0x415052[_0x5c6930(0x220)]+_0x5c6930(0x1ca):(_0xe9e59b[_0x5c6930(0x1f5)](_0x5c6930(0x222)+_0x2909a4+_0x5c6930(0x1b3)),_0x12256c=![]));const _0x3533ec=await _0x5eb532['pAzxP'](inputConfirmation,_0x5b9e12);(_0x5eb532[_0x5c6930(0x203)](_0x3533ec,undefined)||_0x5eb532[_0x5c6930(0x1df)](_0x3533ec,null)||!(_0x5eb532[_0x5c6930(0x1dd)](_0x3533ec['toLowerCase'](),'y')||_0x5eb532['LQCYe'](_0x3533ec[_0x5c6930(0x1cb)](),'n')))&&(_0x5eb532['UTyJE'](_0x5eb532['vyLvw'],_0x5eb532['OYVUi'])?_0x3ad74c[_0x5c6930(0x1f5)](_0x5eb532[_0x5c6930(0x1a5)]):(console['error'](_0x5eb532[_0x5c6930(0x1e5)]),await _0x5eb532['puxDw'](sendInstrumentationEvent,_0x30790e,_0x5eb532[_0x5c6930(0x202)],messageTypes['ERROR'],_0x5eb532[_0x5c6930(0x21e)],null,_0x30790e),process[_0x5c6930(0x1fb)](0x1)));_0x5eb532['fLhxg'](_0x3533ec[_0x5c6930(0x1cb)](),'n')&&(_0x5eb532[_0x5c6930(0x19c)](_0x5eb532[_0x5c6930(0x201)],_0x5eb532[_0x5c6930(0x198)])?process['exit'](0x0):(_0x5d2a17['error'](_0x5eb532[_0x5c6930(0x1b0)]),_0x375701['exit'](0x1)));const _0x2a1f2e=WS_ENDPOINT[_0x5c6930(0x1c2)](_0x5eb532[_0x5c6930(0x19e)],_0x183d7c[_0x5c6930(0x19b)][_0x5c6930(0x1e2)])[_0x5c6930(0x1c2)](_0x5eb532[_0x5c6930(0x1bf)],_0x183d7c[_0x5c6930(0x19b)][_0x5c6930(0x215)]),_0x249e13={};_0x249e13['WebSocket']=ws,_0x249e13[_0x5c6930(0x226)]=0x36ee80;const _0x2b6844=new ReconnectingWebSocket(_0x2a1f2e,[],_0x249e13);global_registry[_0x5c6930(0x1a7)]=_0x415052[_0x5c6930(0x1da)];const _0x54b973=_0x415052[_0x5c6930(0x1d0)],_0x4b6715=await _0x5eb532['gOXkM'](getCloudProviderObject,_0x54b973,_0x415052[_0x5c6930(0x1f3)],_0x415052[_0x5c6930(0x1f9)],_0x2b6844,webSocketUtils,_0x30790e),_0x378cf7=await _0x4b6715['isClusterPresent']();if(_0x378cf7){const _0x404b50=_0x5eb532[_0x5c6930(0x1c0)](kebabCase,_0x415052[_0x5c6930(0x1f9)]),[_0x18f2db,_0x56aa5a,_0x30ffcc,_0x159ea6,_0x3fc41d,_0x554e6a]=await _0x5eb532[_0x5c6930(0x199)](createK8sClient,_0x4b6715,_0x30790e[_0x5c6930(0x224)]);let _0x535759=!![];const _0xa4e0b4={};_0xa4e0b4[_0x5c6930(0x1f9)]=_0x404b50,await _0x18f2db[_0x5c6930(0x1a2)](_0xa4e0b4)[_0x5c6930(0x1a3)](_0x44cb4d=>{const _0x25b6f2=_0x5c6930;_0x5eb532[_0x25b6f2(0x203)](_0x5eb532[_0x25b6f2(0x193)],_0x5eb532[_0x25b6f2(0x193)])?logger['info'](_0x25b6f2(0x222)+_0x404b50+_0x25b6f2(0x20b)):_0xbff134[_0x25b6f2(0x1fb)](0x0);})[_0x5c6930(0x1bb)](_0xbbf262=>{const _0x2add7b=_0x5c6930;_0x5eb532[_0x2add7b(0x19c)](_0x5eb532[_0x2add7b(0x1aa)],_0x5eb532[_0x2add7b(0x208)])?(logger['warn'](_0x2add7b(0x222)+_0x404b50+_0x2add7b(0x1b3)),_0x535759=![]):_0x11f02e='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x137fca[_0x2add7b(0x1f9)]+_0x2add7b(0x1e3)+_0x2181e0['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x386adf['clusterName']+_0x2add7b(0x1d6)+_0x2cfb5c[_0x2add7b(0x220)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';});if(_0x535759){await _0x5eb532[_0x5c6930(0x205)](removeGridComponents,_0x18f2db,_0x56aa5a,_0x30ffcc,_0x159ea6,_0x404b50);if(_0x175aee[_0x5c6930(0x20d)]){const _0x25060e=await _0x4b6715[_0x5c6930(0x1d4)]();if(_0x25060e)_0x5eb532[_0x5c6930(0x1ff)](_0x5eb532[_0x5c6930(0x19d)],_0x5eb532[_0x5c6930(0x1cc)])?_0x4735a1['info'](_0x5c6930(0x222)+_0x47901c+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):await _0x4b6715[_0x5c6930(0x1ab)](_0x18f2db,_0x415052[_0x5c6930(0x1da)]);else{if(_0x5eb532['pqSCh'](_0x5eb532['keTQf'],_0x5eb532[_0x5c6930(0x1c7)])){const _0x8c1525={};_0x8c1525[_0x5c6930(0x1d8)]=_0x5eb532[_0x5c6930(0x20e)],_0x8c1525[_0x5c6930(0x210)]=_0x5eb532[_0x5c6930(0x1dc)];const _0x53d4cf={};_0x53d4cf[_0x5c6930(0x1d8)]=_0x5eb532[_0x5c6930(0x1fa)],_0x53d4cf[_0x5c6930(0x210)]=_0x5eb532[_0x5c6930(0x1c5)],_0x53d4cf['default']=![];const _0x49a176={};return _0x49a176[_0x5c6930(0x19f)]=_0x8c1525,_0x49a176['skip-tls-cert-verify']=_0x53d4cf,_0x5677da[_0x5c6930(0x1f7)](_0x5cc7cb[_0x5c6930(0x1be)])['epilogue'](_0x2b0fb5)[_0x5c6930(0x192)](_0x49a176)['help'](_0x5eb532[_0x5c6930(0x1d9)])[_0x5c6930(0x1cd)];}else logger[_0x5c6930(0x1f5)]('Cluster:\x20'+_0x415052['clusterName']+_0x5c6930(0x204));}}}}else logger[_0x5c6930(0x1f5)](_0x5eb532[_0x5c6930(0x1a5)]);const _0x2a11f2=_0x5c6930(0x1b6)+AG_API_URL+'/packages/cli/grid/'+_0x30790e['gridId'],_0x3f6cc8={'method':_0x5eb532[_0x5c6930(0x21b)],'headers':_0x5eb532['DIZmU'](getAuthHeader,_0x183d7c[_0x5c6930(0x19b)][_0x5c6930(0x1e2)],_0x183d7c[_0x5c6930(0x19b)][_0x5c6930(0x215)]),'throwHttpErrors':![]},_0x33e894=await _0x5eb532[_0x5c6930(0x1ac)](got,_0x2a11f2,_0x3f6cc8);_0x5eb532[_0x5c6930(0x1d3)](_0x33e894,null)&&_0x5eb532[_0x5c6930(0x1a4)](_0x33e894,undefined)&&_0x5eb532[_0x5c6930(0x1dd)](_0x33e894[_0x5c6930(0x221)],0xc8)&&(logger[_0x5c6930(0x1f4)](_0x5eb532[_0x5c6930(0x1ce)]),process['exit'](0x0)),logger['error'](_0x5c6930(0x1d1)+_0x33e894[_0x5c6930(0x1e7)]),await _0x5eb532['UTLSA'](sendInstrumentationEvent,_0x30790e,_0x5eb532[_0x5c6930(0x202)],messageTypes[_0x5c6930(0x1b7)],_0x5eb532[_0x5c6930(0x1a9)],_0x2a6d3f,_0x30790e),process[_0x5c6930(0x1fb)](0x1);}_0x5eb532['tEWKM'](_0x2a6d3f['statusCode'],0x191)&&(logger[_0x5c6930(0x223)](_0x5eb532[_0x5c6930(0x1e9)]),await _0x5eb532['ugzJO'](sendInstrumentationEvent,_0x30790e,_0x5eb532[_0x5c6930(0x202)],messageTypes[_0x5c6930(0x1b7)],_0x5eb532[_0x5c6930(0x206)],null,_0x30790e),process[_0x5c6930(0x1fb)](0x1)),_0x5eb532['aGPFO'](_0x2a6d3f[_0x5c6930(0x221)],0x190)&&(logger['error'](JSON[_0x5c6930(0x1cf)](_0x2a6d3f[_0x5c6930(0x1e7)])[_0x5c6930(0x1f8)]),await _0x5eb532[_0x5c6930(0x1bc)](sendInstrumentationEvent,_0x30790e,_0x5eb532[_0x5c6930(0x202)],messageTypes[_0x5c6930(0x1b7)],_0x5eb532['uDjIX'],null,_0x30790e),process['exit'](0x1)),logger[_0x5c6930(0x223)](_0x5c6930(0x1b9)+JSON[_0x5c6930(0x1f6)](_0x2a6d3f)),await _0x5eb532[_0x5c6930(0x1c6)](sendInstrumentationEvent,_0x30790e,_0x5eb532[_0x5c6930(0x202)],messageTypes[_0x5c6930(0x1b7)],_0x5eb532[_0x5c6930(0x1a9)],_0x2a6d3f,_0x30790e),process[_0x5c6930(0x1fb)](0x1);}catch(_0x3e5b95){logger['error'](_0x5c6930(0x1c1)+_0x3e5b95[_0x5c6930(0x1c9)]),await _0x5eb532[_0x5c6930(0x1c6)](sendInstrumentationEvent,_0x30790e,_0x5eb532[_0x5c6930(0x202)],messageTypes[_0x5c6930(0x1b7)],_0x5eb532[_0x5c6930(0x1de)],_0x3e5b95,_0x30790e),process['exit'](0x1);}};
1
+ const a11_0x17a0de=a11_0x44ce;function a11_0x2db7(){const _0xc15918=['kgxjV','UtNmX','boolean','uuid','CPNCG','7576375fwXJhA','Delete\x20an\x20Automation\x20grid.','MjAyb','ZYtyj','options','got','LtLmH','cloudProvider','replace','iyDin','handler','ckkmG','stack','mOhaG','existsSync','<UsernamePlaceholder>','type','WebSocket','aUjQX','IdhPb','ZhXBl','stringify','1412506oqGmtm','password','Pass\x20the\x20ID\x20of\x20the\x20Grid','exit','../../utils/createk8sClient','dOPpQ','string','Namespace:\x20','delete-grid-called','body','username','eunVg','builder','ADuKr','warn','cDlCm','clusterSpawnedVia','../../utils/instrumentationUtils','5177972xoTxWG','OTofv','RfsOV','info','Browserstack','nesJy','usage','grid-id','lhKFt','EZyfy','WkCKr','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','../../config/logger','DVmvC','clusterId','readNamespace','FLwAl','toLowerCase','tntCR','\x22\x20with\x20ID\x20','4810182VqNJeo','isBrowserstackCluster','kodiK','help','JVZyJ','oGNpL','wvDUM','command','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','OXhdu','xJcSa','iwLCC','../../utils/utilityMethods','KoQrU','skip-tls-cert-verify','then','ERROR','clusterName','DELETE','Successfully\x20deleted\x20the\x20grid','statusCode','SmqMc','../../cloudproviders/utils','vtarz','../../utils/userInput','rmISC','message','1469037SuASYZ','DRnky','reconnecting-websocket','PiFnc','region','hTjLb','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Failed\x20to\x20delete\x20resources!\x20Error:\x20','epilogue','oTPej','IvIke','gkmij','\x22\x20and\x20ID\x20','delete','buxca','lGhVr','gLFJx','ljAyC','GDHhm','error','catch','iMPMc','6idhxKL','requestId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','name','../../config/constants','raheU','<PasswordPlaceholder>','invalid-grid-id','invalid-input','fJxXu','OugjB','Cluster:\x20','Skip\x20insecure\x20cert\x20verification.','WoWrY','../../utils/webSocketUtils','9364360NtlCVc','tToJc','INFO','KTTDu','gridId','grid','mKOeS','rnOjd','readFileSync','deqMc','XLENm','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','bFLdL','akamO','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','lXAYM','description','zILIf','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','rrnYJ','KjefT','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','YhTZh','default','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','VSEjb','wPiOh','8174495ybiKNm','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','VjhrO','desc'];a11_0x2db7=function(){return _0xc15918;};return a11_0x2db7();}function a11_0x44ce(_0x33dcda,_0x240d8a){const _0x2db760=a11_0x2db7();return a11_0x44ce=function(_0x44ceab,_0xbefb7f){_0x44ceab=_0x44ceab-0x6d;let _0x5772b9=_0x2db760[_0x44ceab];return _0x5772b9;},a11_0x44ce(_0x33dcda,_0x240d8a);}(function(_0x284e00,_0x394438){const _0x1fc04f=a11_0x44ce,_0x118243=_0x284e00();while(!![]){try{const _0xc36bff=parseInt(_0x1fc04f(0x8f))/0x1+parseInt(_0x1fc04f(0xf1))/0x2+parseInt(_0x1fc04f(0x74))/0x3+-parseInt(_0x1fc04f(0x103))/0x4+-parseInt(_0x1fc04f(0xdb))/0x5+parseInt(_0x1fc04f(0xa5))/0x6*(-parseInt(_0x1fc04f(0xd2))/0x7)+parseInt(_0x1fc04f(0xb5))/0x8;if(_0xc36bff===_0x394438)break;else _0x118243['push'](_0x118243['shift']());}catch(_0x40ba62){_0x118243['push'](_0x118243['shift']());}}}(a11_0x2db7,0xed39c));const fs=require('fs'),got=require(a11_0x17a0de(0xe0)),{v4:uuidv4}=require(a11_0x17a0de(0xd9)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x17a0de(0x91)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x17a0de(0xaa)),{logger}=require(a11_0x17a0de(0x10f)),{getCloudProviderObject}=require(a11_0x17a0de(0x8a)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x17a0de(0x102)),{inputConfirmation}=require(a11_0x17a0de(0x8c)),{createK8sClient}=require(a11_0x17a0de(0xf5)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x17a0de(0x80)),webSocketUtils=require(a11_0x17a0de(0xb4));exports[a11_0x17a0de(0x7b)]=a11_0x17a0de(0xba),exports[a11_0x17a0de(0xd5)]=a11_0x17a0de(0xdc),exports[a11_0x17a0de(0xfd)]=function(_0x7fe55b){const _0x1b8130=a11_0x17a0de,_0x4bb311={};_0x4bb311[_0x1b8130(0xd6)]=_0x1b8130(0xf3),_0x4bb311[_0x1b8130(0x9d)]='string',_0x4bb311[_0x1b8130(0x7a)]='Skip\x20insecure\x20cert\x20verification.',_0x4bb311[_0x1b8130(0xb3)]=_0x1b8130(0xd8),_0x4bb311[_0x1b8130(0xef)]=_0x1b8130(0x77);const _0x59d963=_0x4bb311,_0x4b2f53={};_0x4b2f53[_0x1b8130(0xc7)]=_0x59d963[_0x1b8130(0xd6)],_0x4b2f53[_0x1b8130(0xeb)]=_0x59d963[_0x1b8130(0x9d)];const _0x310afa={};_0x310afa[_0x1b8130(0xc7)]=_0x59d963[_0x1b8130(0x7a)],_0x310afa[_0x1b8130(0xeb)]=_0x59d963[_0x1b8130(0xb3)],_0x310afa['default']=![];const _0x2c1cde={};return _0x2c1cde[_0x1b8130(0x10a)]=_0x4b2f53,_0x2c1cde[_0x1b8130(0x82)]=_0x310afa,_0x7fe55b['usage'](HELP_HEADER_MESSAGE['delete'])[_0x1b8130(0x97)](HELP_FOOTER_MESSAGE)[_0x1b8130(0xdf)](_0x2c1cde)[_0x1b8130(0x77)](_0x59d963[_0x1b8130(0xef)])['argv'];},exports[a11_0x17a0de(0xe5)]=async function(_0x21d164){const _0x4f2840=a11_0x17a0de,_0x22e96b={'xJcSa':_0x4f2840(0xf3),'PiFnc':_0x4f2840(0xf7),'ZYtyj':_0x4f2840(0xb2),'lGhVr':'boolean','lXAYM':'help','IdhPb':_0x4f2840(0xd3),'KoQrU':function(_0x16ac3d,_0xa37811){return _0x16ac3d!==_0xa37811;},'aUjQX':_0x4f2840(0xd0),'DYVAV':_0x4f2840(0xe6),'RfsOV':_0x4f2840(0x87),'ADuKr':_0x4f2840(0xc2),'iwLCC':function(_0x2e4f18){return _0x2e4f18();},'ljAyC':function(_0x1ba62a,_0x2c91aa){return _0x1ba62a!==_0x2c91aa;},'vTZze':_0x4f2840(0xbf),'VjhrO':'MsXhB','LtLmH':_0x4f2840(0xa7),'iyDin':function(_0x238534,_0x10f974,_0x31391f,_0x3e1ea8,_0x7dc6de,_0x4cdead,_0xc06905){return _0x238534(_0x10f974,_0x31391f,_0x3e1ea8,_0x7dc6de,_0x4cdead,_0xc06905);},'WkCKr':_0x4f2840(0xf9),'gLFJx':'init-not-called','lhKFt':function(_0x4479bf,_0x496a3d,_0x2de477,_0x13e0b2,_0x1149cd,_0x5cc8a3,_0x4d9858){return _0x4479bf(_0x496a3d,_0x2de477,_0x13e0b2,_0x1149cd,_0x5cc8a3,_0x4d9858);},'hTjLb':_0x4f2840(0x8b),'SmqMc':'cunOU','wyeWw':function(_0x410178,_0x5b2b83,_0x32d178,_0x2b8909){return _0x410178(_0x5b2b83,_0x32d178,_0x2b8909);},'oGNpL':function(_0x520a4e,_0x2a97c5){return _0x520a4e===_0x2a97c5;},'KTTDu':_0x4f2840(0x107),'tToJc':_0x4f2840(0xe8),'DRnky':_0x4f2840(0x104),'eunVg':function(_0x5320a7,_0x44a6c9){return _0x5320a7(_0x44a6c9);},'rnOjd':function(_0x1ef3c9,_0xc9ec35){return _0x1ef3c9===_0xc9ec35;},'kYLWe':function(_0x5b47a8,_0x24a894){return _0x5b47a8===_0x24a894;},'dOPpQ':function(_0x4b4f66,_0x49a4a4){return _0x4b4f66===_0x49a4a4;},'iMPMc':function(_0x55948b,_0x3a8cb0){return _0x55948b===_0x3a8cb0;},'bFLdL':_0x4f2840(0xab),'QnMEi':_0x4f2840(0xbb),'tntCR':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','MjAyb':_0x4f2840(0xae),'EZyfy':function(_0x3a6a56,_0x37e406){return _0x3a6a56===_0x37e406;},'uotSb':_0x4f2840(0x9a),'rmISC':_0x4f2840(0x78),'wPiOh':_0x4f2840(0xea),'oTPej':_0x4f2840(0xac),'IvIke':function(_0x450154,_0x3f437f,_0x1eb842,_0x28accb,_0x4f52ba,_0x5bfd03,_0x430aee){return _0x450154(_0x3f437f,_0x1eb842,_0x28accb,_0x4f52ba,_0x5bfd03,_0x430aee);},'kodiK':function(_0x1a9f52,_0x3d27b4,_0x422e9a){return _0x1a9f52(_0x3d27b4,_0x422e9a);},'YhTZh':function(_0x3f640a,_0x4f2c,_0x4560fb,_0x3c0bfd,_0x20079e,_0x504af2){return _0x3f640a(_0x4f2c,_0x4560fb,_0x3c0bfd,_0x20079e,_0x504af2);},'DVmvC':'rYnaI','fJxXu':_0x4f2840(0x100),'OugjB':_0x4f2840(0xbe),'UtNmX':_0x4f2840(0xca),'LcwwC':_0x4f2840(0x86),'CPNCG':function(_0x1276d6,_0x58e7c8){return _0x1276d6!==_0x58e7c8;},'KjefT':_0x4f2840(0xa8),'akamO':function(_0x4dc948,_0x262eaf){return _0x4dc948===_0x262eaf;},'OXhdu':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FLwAl':function(_0x17000b,_0x57d5aa,_0x1359d9,_0x2db116,_0x545b97,_0x1e4ee0,_0x33543f){return _0x17000b(_0x57d5aa,_0x1359d9,_0x2db116,_0x545b97,_0x1e4ee0,_0x33543f);},'GDHhm':'unauthorised','pjDCr':function(_0x3adf76,_0x438b04,_0xbec89,_0x101572,_0x2e37aa,_0x1659b4,_0x8a0022){return _0x3adf76(_0x438b04,_0xbec89,_0x101572,_0x2e37aa,_0x1659b4,_0x8a0022);},'zILIf':_0x4f2840(0xad),'nesJy':'unknown-error'};try{global_registry[_0x4f2840(0xa6)]=_0x22e96b[_0x4f2840(0x7f)](uuidv4);!fs[_0x4f2840(0xe9)](_0x22e96b[_0x4f2840(0x7f)](getCredentialsPath))&&(_0x22e96b[_0x4f2840(0xa0)](_0x22e96b['vTZze'],_0x22e96b[_0x4f2840(0xd4)])?(console[_0x4f2840(0xa2)](_0x22e96b[_0x4f2840(0xe1)]),await _0x22e96b[_0x4f2840(0xe4)](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes[_0x4f2840(0x84)],_0x22e96b[_0x4f2840(0x9f)],null,_0x21d164),process[_0x4f2840(0xf4)](0x1)):_0x29fd96=_0x4f2840(0x95)+_0x2d585f[_0x4f2840(0xa9)]+_0x4f2840(0x9b)+_0x36a23e['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2d1f39[_0x4f2840(0x85)]+_0x4f2840(0x73)+_0x47af9a['clusterId']+_0x4f2840(0x7c));_0x22e96b['lhKFt'](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes[_0x4f2840(0xb7)],null,null,_0x21d164);!_0x21d164['gridId']&&(_0x22e96b[_0x4f2840(0xa0)](_0x22e96b[_0x4f2840(0x94)],_0x22e96b[_0x4f2840(0x89)])?(console[_0x4f2840(0xa2)](_0x22e96b[_0x4f2840(0xee)]),process['exit'](0x1)):_0x17ee96[_0x4f2840(0xff)](_0x4f2840(0xb1)+_0x14105a[_0x4f2840(0x85)]+_0x4f2840(0xcf)));const _0x25819f=JSON['parse'](fs[_0x4f2840(0xbd)](_0x22e96b[_0x4f2840(0x7f)](getCredentialsPath))),[_0x29637e,_0x460dc8]=await _0x22e96b['wyeWw'](getGridDetails,_0x25819f[_0x4f2840(0x107)]['username'],_0x25819f[_0x4f2840(0x107)][_0x4f2840(0xf2)],_0x21d164[_0x4f2840(0xb9)]);if(_0x460dc8){const _0x143257=_0x460dc8[_0x4f2840(0x106)];let _0x3b2aec=_0x4f2840(0x95)+_0x143257['name']+'\x22\x20and\x20ID\x20'+_0x143257['id']+_0x4f2840(0x7c);_0x460dc8['onlyGridInCluster']&&_0x22e96b['oGNpL'](_0x460dc8[_0x4f2840(0x101)],_0x22e96b[_0x4f2840(0xb8)])&&(_0x22e96b['ljAyC'](_0x22e96b[_0x4f2840(0xb6)],_0x22e96b[_0x4f2840(0x90)])?_0x3b2aec='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x143257[_0x4f2840(0xa9)]+_0x4f2840(0x9b)+_0x143257['id']+_0x4f2840(0xcc)+_0x143257['clusterName']+_0x4f2840(0x73)+_0x143257[_0x4f2840(0x6e)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x202724['warn'](_0x4f2840(0xf8)+_0x55463b+_0x4f2840(0x10e)),_0x5e80b5=![]));const _0x56460f=await _0x22e96b[_0x4f2840(0xfc)](inputConfirmation,_0x3b2aec);if(_0x22e96b[_0x4f2840(0x79)](_0x56460f,undefined)||_0x22e96b[_0x4f2840(0xbc)](_0x56460f,null)||!(_0x22e96b['kYLWe'](_0x56460f['toLowerCase'](),'y')||_0x22e96b[_0x4f2840(0xf6)](_0x56460f['toLowerCase'](),'n'))){if(_0x22e96b[_0x4f2840(0xa4)](_0x22e96b[_0x4f2840(0xc3)],_0x22e96b['QnMEi'])){const _0x5f2780={};_0x5f2780[_0x4f2840(0xc7)]=_0x22e96b[_0x4f2840(0x7e)],_0x5f2780[_0x4f2840(0xeb)]=_0x22e96b[_0x4f2840(0x92)];const _0x45bd3b={};_0x45bd3b[_0x4f2840(0xc7)]=_0x22e96b[_0x4f2840(0xde)],_0x45bd3b['type']=_0x22e96b[_0x4f2840(0x9e)],_0x45bd3b[_0x4f2840(0xce)]=![];const _0x30fe75={};return _0x30fe75['grid-id']=_0x5f2780,_0x30fe75[_0x4f2840(0x82)]=_0x45bd3b,_0x295322[_0x4f2840(0x109)](_0x3b429e[_0x4f2840(0x9c)])[_0x4f2840(0x97)](_0x44277d)[_0x4f2840(0xdf)](_0x30fe75)[_0x4f2840(0x77)](_0x22e96b[_0x4f2840(0xc6)])[_0x4f2840(0xc0)];}else console[_0x4f2840(0xa2)](_0x22e96b[_0x4f2840(0x72)]),await _0x22e96b[_0x4f2840(0x10b)](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes[_0x4f2840(0x84)],_0x22e96b[_0x4f2840(0xdd)],null,_0x21d164),process['exit'](0x1);}_0x22e96b[_0x4f2840(0xf6)](_0x56460f[_0x4f2840(0x71)](),'n')&&(_0x22e96b[_0x4f2840(0x10c)](_0x22e96b['uotSb'],_0x22e96b[_0x4f2840(0x8d)])?(_0x3a15ba[_0x4f2840(0xa2)](_0x22e96b[_0x4f2840(0xee)]),_0x3d1e4d[_0x4f2840(0xf4)](0x1)):process[_0x4f2840(0xf4)](0x0));const _0x47e016=WS_ENDPOINT[_0x4f2840(0xe3)](_0x22e96b[_0x4f2840(0xd1)],_0x25819f[_0x4f2840(0x107)][_0x4f2840(0xfb)])[_0x4f2840(0xe3)](_0x22e96b[_0x4f2840(0x98)],_0x25819f[_0x4f2840(0x107)]['password']),_0x5f3abf={};_0x5f3abf[_0x4f2840(0xec)]=ws,_0x5f3abf['connectionTimeout']=0x36ee80;const _0x3d17eb=new ReconnectingWebSocket(_0x47e016,[],_0x5f3abf);global_registry['clusterRegion']=_0x143257[_0x4f2840(0x93)];const _0x133618=_0x143257[_0x4f2840(0xe2)],_0x5fae29=await _0x22e96b['IvIke'](getCloudProviderObject,_0x133618,_0x143257['clusterName'],_0x143257['name'],_0x3d17eb,webSocketUtils,_0x21d164),_0x2d9020=await _0x5fae29['isClusterPresent']();if(_0x2d9020){const _0x529298=_0x22e96b['eunVg'](kebabCase,_0x143257[_0x4f2840(0xa9)]),[_0x5287a0,_0x1ecdcd,_0x39ed00,_0x14af7a,_0x51da2f,_0xe80864]=await _0x22e96b['kodiK'](createK8sClient,_0x5fae29,_0x21d164['skipTlsCertVerify']);let _0x4fb765=!![];const _0x51cde9={};_0x51cde9['name']=_0x529298,await _0x5287a0[_0x4f2840(0x6f)](_0x51cde9)[_0x4f2840(0x83)](_0x120c90=>{const _0xcefdab=_0x4f2840;_0x22e96b[_0xcefdab(0x81)](_0x22e96b[_0xcefdab(0xed)],_0x22e96b[_0xcefdab(0xed)])?_0x2f91bf[_0xcefdab(0xf4)](0x0):logger[_0xcefdab(0x106)](_0xcefdab(0xf8)+_0x529298+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0x4f2840(0xa3)](_0x2e1d84=>{const _0x274b0=_0x4f2840;_0x22e96b[_0x274b0(0x81)](_0x22e96b['DYVAV'],_0x22e96b['DYVAV'])?_0x18a932[_0x274b0(0x106)]('Namespace:\x20'+_0x4edd99+_0x274b0(0xc5)):(logger[_0x274b0(0xff)](_0x274b0(0xf8)+_0x529298+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x4fb765=![]);});if(_0x4fb765){await _0x22e96b[_0x4f2840(0xcd)](removeGridComponents,_0x5287a0,_0x1ecdcd,_0x39ed00,_0x14af7a,_0x529298);if(_0x460dc8['onlyGridInCluster']){const _0x530642=await _0x5fae29[_0x4f2840(0x75)]();_0x530642?_0x22e96b[_0x4f2840(0xa0)](_0x22e96b[_0x4f2840(0x6d)],_0x22e96b[_0x4f2840(0xaf)])?await _0x5fae29['deleteCluster'](_0x5287a0,_0x143257[_0x4f2840(0x93)]):(_0x1dc7fd['info'](_0x22e96b[_0x4f2840(0x105)]),_0x49601b['exit'](0x0)):_0x22e96b['ljAyC'](_0x22e96b[_0x4f2840(0xb0)],_0x22e96b[_0x4f2840(0xd7)])?logger[_0x4f2840(0xff)](_0x4f2840(0xb1)+_0x143257[_0x4f2840(0x85)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x4f7cc6[_0x4f2840(0xff)](_0x22e96b[_0x4f2840(0xfe)]);}}}else logger[_0x4f2840(0xff)](_0x22e96b[_0x4f2840(0xfe)]);const _0x34dc6c='https://'+AG_API_URL+'/packages/cli/grid/'+_0x21d164[_0x4f2840(0xb9)],_0x42b379={'method':_0x22e96b['LcwwC'],'headers':_0x22e96b[_0x4f2840(0x76)](getAuthHeader,_0x25819f[_0x4f2840(0x107)]['username'],_0x25819f['Browserstack'][_0x4f2840(0xf2)]),'throwHttpErrors':![]},_0x290c06=await _0x22e96b[_0x4f2840(0x76)](got,_0x34dc6c,_0x42b379);_0x22e96b[_0x4f2840(0xda)](_0x290c06,null)&&_0x22e96b['ljAyC'](_0x290c06,undefined)&&_0x22e96b[_0x4f2840(0xbc)](_0x290c06[_0x4f2840(0x88)],0xc8)&&(logger['info'](_0x22e96b[_0x4f2840(0x105)]),process[_0x4f2840(0xf4)](0x0)),logger[_0x4f2840(0xa2)](_0x4f2840(0xc9)+_0x290c06[_0x4f2840(0xfa)]),await _0x22e96b['IvIke'](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes['ERROR'],_0x22e96b[_0x4f2840(0xcb)],_0x29637e,_0x21d164),process[_0x4f2840(0xf4)](0x1);}_0x22e96b[_0x4f2840(0xc4)](_0x29637e['statusCode'],0x191)&&(logger[_0x4f2840(0xa2)](_0x22e96b[_0x4f2840(0x7d)]),await _0x22e96b[_0x4f2840(0x70)](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes[_0x4f2840(0x84)],_0x22e96b[_0x4f2840(0xa1)],null,_0x21d164),process['exit'](0x1)),_0x22e96b[_0x4f2840(0x79)](_0x29637e[_0x4f2840(0x88)],0x190)&&(logger[_0x4f2840(0xa2)](JSON['parse'](_0x29637e[_0x4f2840(0xfa)])[_0x4f2840(0x8e)]),await _0x22e96b['pjDCr'](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes[_0x4f2840(0x84)],_0x22e96b[_0x4f2840(0xc8)],null,_0x21d164),process[_0x4f2840(0xf4)](0x1)),logger[_0x4f2840(0xa2)](_0x4f2840(0xc1)+JSON[_0x4f2840(0xf0)](_0x29637e)),await _0x22e96b[_0x4f2840(0x99)](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes[_0x4f2840(0x84)],_0x22e96b[_0x4f2840(0xcb)],_0x29637e,_0x21d164),process['exit'](0x1);}catch(_0x2aa326){logger[_0x4f2840(0xa2)](_0x4f2840(0x96)+_0x2aa326[_0x4f2840(0xe7)]),await _0x22e96b[_0x4f2840(0x10b)](sendInstrumentationEvent,_0x21d164,_0x22e96b[_0x4f2840(0x10d)],messageTypes['ERROR'],_0x22e96b[_0x4f2840(0x108)],_0x2aa326,_0x21d164),process[_0x4f2840(0xf4)](0x1);}};
@@ -1 +1 @@
1
- function a12_0x628a(_0x1b67d6,_0x5a3b49){const _0x51b73e=a12_0x51b7();return a12_0x628a=function(_0x628a34,_0x4b9821){_0x628a34=_0x628a34-0xe4;let _0x13902f=_0x51b73e[_0x628a34];return _0x13902f;},a12_0x628a(_0x1b67d6,_0x5a3b49);}const a12_0x26a7c3=a12_0x628a;(function(_0x5ec80b,_0x1f45e7){const _0x288cae=a12_0x628a,_0x397246=_0x5ec80b();while(!![]){try{const _0x373a23=parseInt(_0x288cae(0x140))/0x1+-parseInt(_0x288cae(0x12f))/0x2*(-parseInt(_0x288cae(0xf7))/0x3)+parseInt(_0x288cae(0x14b))/0x4+parseInt(_0x288cae(0x143))/0x5*(parseInt(_0x288cae(0x102))/0x6)+parseInt(_0x288cae(0xed))/0x7*(-parseInt(_0x288cae(0xe7))/0x8)+parseInt(_0x288cae(0x127))/0x9+parseInt(_0x288cae(0xeb))/0xa*(-parseInt(_0x288cae(0x108))/0xb);if(_0x373a23===_0x1f45e7)break;else _0x397246['push'](_0x397246['shift']());}catch(_0x46a9ca){_0x397246['push'](_0x397246['shift']());}}}(a12_0x51b7,0x19f98));const fs=require('fs'),util=require('util'),got=require(a12_0x26a7c3(0x134)),{v4:uuidv4}=require(a12_0x26a7c3(0x105)),{logger}=require(a12_0x26a7c3(0x13f)),{inputBstackKeys}=require(a12_0x26a7c3(0xf0)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x26a7c3(0xe6)),{sendInstrumentationEvent}=require(a12_0x26a7c3(0x14f));exports[a12_0x26a7c3(0xfc)]=a12_0x26a7c3(0x116),exports[a12_0x26a7c3(0x14a)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports['builder']=function(_0x2c3579){const _0x3870d1=a12_0x26a7c3,_0x1d0c4b={};_0x1d0c4b[_0x3870d1(0xee)]=_0x3870d1(0x12b),_0x1d0c4b['kNAIB']=_0x3870d1(0x117),_0x1d0c4b[_0x3870d1(0x132)]=_0x3870d1(0x147),_0x1d0c4b['SldfK']='help';const _0x22eb19=_0x1d0c4b,_0x5e50a8={};_0x5e50a8['description']=_0x22eb19[_0x3870d1(0xee)],_0x5e50a8['type']=_0x22eb19['kNAIB'];const _0x438d99={};_0x438d99[_0x3870d1(0x111)]=_0x22eb19[_0x3870d1(0x132)],_0x438d99[_0x3870d1(0x104)]=_0x22eb19[_0x3870d1(0x131)];const _0x3a78ff={};return _0x3a78ff[_0x3870d1(0x142)]=_0x5e50a8,_0x3a78ff['bstack-accesskey']=_0x438d99,_0x2c3579[_0x3870d1(0x10a)](HELP_HEADER_MESSAGE[_0x3870d1(0x116)])[_0x3870d1(0x109)](HELP_FOOTER_MESSAGE)['options'](_0x3a78ff)[_0x3870d1(0x118)]()[_0x3870d1(0x125)]()[_0x3870d1(0x10b)](_0x22eb19[_0x3870d1(0x10f)])['argv'];},exports[a12_0x26a7c3(0x13b)]=async function(_0x3017eb){const _0x46f373=a12_0x26a7c3,_0x3d4019={'fJmhN':_0x46f373(0x11c),'XfreH':function(_0x29bd16){return _0x29bd16();},'PEYUf':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','zokLB':_0x46f373(0x117),'CliDl':_0x46f373(0x147),'cQwFQ':_0x46f373(0x10b),'GUiBq':function(_0x316e6d){return _0x316e6d();},'AHGWK':function(_0x211a04,_0x3fe51b,_0x493605,_0x5f2e84,_0x31fd42,_0x454737,_0xc3eaf7){return _0x211a04(_0x3fe51b,_0x493605,_0x5f2e84,_0x31fd42,_0x454737,_0xc3eaf7);},'SqFXx':_0x46f373(0x100),'YKXdt':function(_0x533411,_0x157f1f){return _0x533411===_0x157f1f;},'cfDGs':'PoECf','iSsuT':'isbud','Jmwbs':function(_0x19c2df,_0x1d82ce){return _0x19c2df!==_0x1d82ce;},'qPhBq':_0x46f373(0xe9),'SzmCU':function(_0x3f7511,_0x57945e){return _0x3f7511===_0x57945e;},'ktuLZ':_0x46f373(0x154),'Ulpwo':_0x46f373(0x122),'EgugR':function(_0x1be213,_0x1263c9){return _0x1be213!==_0x1263c9;},'TROmU':_0x46f373(0x11a),'HxeoJ':function(_0x47a096,_0x16412a){return _0x47a096===_0x16412a;},'ompUn':_0x46f373(0xfd),'dSilB':_0x46f373(0x12a),'NwVDJ':function(_0x4fec4b,_0x278295){return _0x4fec4b===_0x278295;},'xzEvG':function(_0x570539,_0x2b4340){return _0x570539===_0x2b4340;},'cTPCY':_0x46f373(0x151),'WReQs':_0x46f373(0x153),'ULeDs':_0x46f373(0x101),'dOgVO':_0x46f373(0xf9),'uywJg':function(_0x2cef9b,_0x4cde29,_0x2d8087){return _0x2cef9b(_0x4cde29,_0x2d8087);},'NVffD':function(_0x454f76,_0x39b705){return _0x454f76!==_0x39b705;},'ZjhnK':function(_0x1a4137,_0x38db52){return _0x1a4137===_0x38db52;},'jJslZ':function(_0x54738f,_0x2a4cfd){return _0x54738f!==_0x2a4cfd;},'oxYRj':_0x46f373(0x13c),'OGBQx':function(_0x4a2619,_0x17b1ee){return _0x4a2619!==_0x17b1ee;},'mNDoJ':'GuOdV','ctRgd':'lJHkr','OWGBH':_0x46f373(0x124),'gnSQE':_0x46f373(0x12c),'YHhir':_0x46f373(0xf6),'qcVvp':function(_0x5ae51d,_0x2ecb1d,_0x3f57ab,_0x59c5ea,_0x485925,_0x520032,_0x15d2b4){return _0x5ae51d(_0x2ecb1d,_0x3f57ab,_0x59c5ea,_0x485925,_0x520032,_0x15d2b4);},'CwaAU':_0x46f373(0x138),'pNQGz':_0x46f373(0x141)};try{global_registry[_0x46f373(0xea)]=_0x3d4019[_0x46f373(0x135)](uuidv4),_0x3d4019[_0x46f373(0xe4)](sendInstrumentationEvent,_0x3017eb,_0x3d4019['SqFXx'],messageTypes['INFO'],null,null,_0x3017eb);const _0x3f0ce8=_0x3d4019[_0x46f373(0x135)](getDirForConfig);!fs[_0x46f373(0x115)](_0x3f0ce8)&&(_0x3d4019[_0x46f373(0x10c)](_0x3d4019[_0x46f373(0x145)],_0x3d4019[_0x46f373(0xf5)])?_0x20cfdd=_0x337f2d['parse'](_0x6411db['readFileSync'](_0x55fd72,_0x3d4019[_0x46f373(0x120)])):fs[_0x46f373(0x112)](_0x3f0ce8));let _0x272752,_0x14861a;process['env'][_0x46f373(0x10d)]&&(_0x3d4019[_0x46f373(0x152)](_0x3d4019['qPhBq'],_0x3d4019[_0x46f373(0x13d)])?_0x1943b9[_0x46f373(0x112)](_0x273807):_0x272752=process[_0x46f373(0x14c)][_0x46f373(0x10d)]);if(process['env']['BROWSERSTACK_ACCESS_KEY']){if(_0x3d4019[_0x46f373(0x11f)](_0x3d4019[_0x46f373(0x137)],_0x3d4019['Ulpwo'])){let _0xd13291={};const _0x1543b8=_0x3d4019[_0x46f373(0xf4)](_0x5882d6);_0x393630['existsSync'](_0x1543b8)&&(_0xd13291=_0x7d9e20[_0x46f373(0x114)](_0x2f8f5d[_0x46f373(0x129)](_0x1543b8,_0x3d4019['fJmhN'])));const _0x53fc09={};_0x53fc09[_0x46f373(0x136)]=_0x17d686,_0x53fc09[_0x46f373(0x13e)]=_0x43a215,_0xd13291['Browserstack']=_0x53fc09,_0xb8a845[_0x46f373(0x14d)](_0x1543b8,_0x3c7b99[_0x46f373(0xef)](_0xd13291)),_0x4b62af[_0x46f373(0xf2)](0x0);}else _0x14861a=process[_0x46f373(0x14c)][_0x46f373(0x150)];}_0x3017eb[_0x46f373(0xfb)]&&(_0x3d4019['EgugR'](_0x3d4019[_0x46f373(0x11e)],_0x3d4019['TROmU'])?_0x4ef110=_0x1471e8[_0x46f373(0x14c)]['BROWSERSTACK_ACCESS_KEY']:_0x272752=_0x3017eb['bstackUsername']);if(_0x3017eb[_0x46f373(0x130)]){if(_0x3d4019[_0x46f373(0x12d)](_0x3d4019[_0x46f373(0xec)],_0x3d4019[_0x46f373(0x144)])){const _0x4fddb2={};_0x4fddb2[_0x46f373(0x111)]=_0x3d4019[_0x46f373(0x10e)],_0x4fddb2[_0x46f373(0x104)]=_0x3d4019[_0x46f373(0xff)];const _0x29305c={};_0x29305c['description']=_0x3d4019['CliDl'],_0x29305c[_0x46f373(0x104)]=_0x3d4019[_0x46f373(0xff)];const _0x56da19={};return _0x56da19[_0x46f373(0x142)]=_0x4fddb2,_0x56da19[_0x46f373(0xfa)]=_0x29305c,_0x375fe1[_0x46f373(0x10a)](_0x212719[_0x46f373(0x116)])[_0x46f373(0x109)](_0x212d94)[_0x46f373(0x113)](_0x56da19)[_0x46f373(0x118)]()[_0x46f373(0x125)]()[_0x46f373(0x10b)](_0x3d4019[_0x46f373(0x149)])[_0x46f373(0xe8)];}else _0x14861a=_0x3017eb[_0x46f373(0x130)];}if(_0x3d4019[_0x46f373(0x11f)](_0x272752,undefined)||_0x3d4019[_0x46f373(0x148)](_0x14861a,undefined)){if(_0x3d4019['xzEvG'](_0x3d4019[_0x46f373(0xfe)],_0x3d4019[_0x46f373(0x139)]))_0x3211d1=_0xf57237['bstackUsername'];else{logger[_0x46f373(0xf8)](_0x3d4019['ULeDs']);const [_0x4279c4,_0x374a24]=await _0x3d4019['GUiBq'](inputBstackKeys);_0x272752=_0x4279c4,_0x14861a=_0x374a24;}}let _0x3bdbc0=![];const _0xe0cc4d=_0x46f373(0x107)+_0x272752+':'+_0x14861a+'@'+BS_API_URL+_0x46f373(0xe5),_0xe05a5={'method':_0x3d4019['dOgVO'],'headers':_0x3d4019[_0x46f373(0x14e)](getAuthHeader,_0x272752,_0x14861a),'throwHttpErrors':![]},_0x40fe5d=await _0x3d4019['uywJg'](got,_0xe0cc4d,_0xe05a5);_0x3d4019[_0x46f373(0x152)](_0x40fe5d,null)&&_0x3d4019[_0x46f373(0xf1)](_0x40fe5d,undefined)&&_0x3d4019[_0x46f373(0x11b)](_0x40fe5d[_0x46f373(0x128)],0xc8)&&(_0x3d4019[_0x46f373(0x146)](_0x3d4019[_0x46f373(0x12e)],_0x3d4019[_0x46f373(0x12e)])?_0x313568=!![]:_0x3bdbc0=!![]);if(_0x3bdbc0){if(_0x3d4019['OGBQx'](_0x3d4019[_0x46f373(0x121)],_0x3d4019[_0x46f373(0x110)])){let _0x53c099={};const _0x10ad84=_0x3d4019['XfreH'](getCredentialsPath);fs[_0x46f373(0x115)](_0x10ad84)&&(_0x3d4019[_0x46f373(0xf1)](_0x3d4019['OWGBH'],_0x3d4019[_0x46f373(0x106)])?_0x53c099=JSON[_0x46f373(0x114)](fs[_0x46f373(0x129)](_0x10ad84,_0x3d4019[_0x46f373(0x120)])):_0x5c14a7=_0x59d68f[_0x46f373(0x130)]);const _0x2cb01f={};_0x2cb01f['username']=_0x272752,_0x2cb01f['password']=_0x14861a,_0x53c099[_0x46f373(0x11d)]=_0x2cb01f,fs['writeFileSync'](_0x10ad84,JSON[_0x46f373(0xef)](_0x53c099)),process[_0x46f373(0xf2)](0x0);}else _0x5a1d05=_0x573a7b[_0x46f373(0x14c)][_0x46f373(0x10d)];}else logger[_0x46f373(0x133)](_0x3d4019[_0x46f373(0x13a)]),await _0x3d4019['qcVvp'](sendInstrumentationEvent,_0x3017eb,_0x3d4019[_0x46f373(0x103)],messageTypes[_0x46f373(0x126)],_0x3d4019[_0x46f373(0x119)],null,_0x3017eb),process[_0x46f373(0xf2)](0x1);}catch(_0x5a4fda){logger['error'](_0x5a4fda[_0x46f373(0xf3)]),await _0x3d4019[_0x46f373(0xe4)](sendInstrumentationEvent,_0x3017eb,_0x3d4019[_0x46f373(0x103)],messageTypes[_0x46f373(0x126)],_0x3d4019[_0x46f373(0x123)],_0x5a4fda,_0x3017eb),process[_0x46f373(0xf2)](0x1);}};function a12_0x51b7(){const _0x30d091=['1250iNLhSI','ompUn','172844Xxyqdj','FcEPg','stringify','../utils/userInput','NVffD','exit','stack','XfreH','iSsuT','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','117kLxTHp','debug','GET','bstack-accesskey','bstackUsername','command','LVRqy','cTPCY','zokLB','init-called','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','1133742SQLvtp','SqFXx','type','uuid','gnSQE','https://','51238kCbEHa','epilogue','usage','help','YKXdt','BROWSERSTACK_USERNAME','PEYUf','SldfK','ctRgd','description','mkdirSync','options','parse','existsSync','init','string','recommendCommands','CwaAU','TTgnw','ZjhnK','utf-8','Browserstack','TROmU','SzmCU','fJmhN','mNDoJ','KKQGY','pNQGz','cZJmB','strict','ERROR','1623897fhTyte','statusCode','readFileSync','RIuvQ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','mPYen','HxeoJ','oxYRj','1828iuEFtD','bstackAccesskey','kNAIB','YwzyM','error','got','GUiBq','username','ktuLZ','wrong-creds','WReQs','YHhir','handler','idmeB','qPhBq','password','../config/logger','183232cNNOQH','unknown-error','bstack-username','5LrNLpy','dSilB','cfDGs','jJslZ','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','NwVDJ','cQwFQ','desc','500264jvlPXr','env','writeFileSync','uywJg','../utils/instrumentationUtils','BROWSERSTACK_ACCESS_KEY','vGjyv','Jmwbs','zKCaC','GfqGg','AHGWK','/automate/plan.json','../utils/utilityMethods','8rrZTVo','argv','hZFwE','requestId'];a12_0x51b7=function(){return _0x30d091;};return a12_0x51b7();}
1
+ const a12_0xdebec3=a12_0x1678;function a12_0x1678(_0x2ad5fd,_0x27feb7){const _0x24792d=a12_0x2479();return a12_0x1678=function(_0x167888,_0x4cd7f6){_0x167888=_0x167888-0x1bd;let _0x3afc2d=_0x24792d[_0x167888];return _0x3afc2d;},a12_0x1678(_0x2ad5fd,_0x27feb7);}(function(_0x5d7269,_0x59c4c3){const _0x75c46b=a12_0x1678,_0x14a582=_0x5d7269();while(!![]){try{const _0x217a20=parseInt(_0x75c46b(0x1c8))/0x1*(parseInt(_0x75c46b(0x1c3))/0x2)+parseInt(_0x75c46b(0x1d8))/0x3+parseInt(_0x75c46b(0x1f0))/0x4*(parseInt(_0x75c46b(0x1f3))/0x5)+parseInt(_0x75c46b(0x1ee))/0x6*(parseInt(_0x75c46b(0x210))/0x7)+-parseInt(_0x75c46b(0x1ff))/0x8+parseInt(_0x75c46b(0x1e6))/0x9*(parseInt(_0x75c46b(0x208))/0xa)+-parseInt(_0x75c46b(0x20d))/0xb*(parseInt(_0x75c46b(0x1ce))/0xc);if(_0x217a20===_0x59c4c3)break;else _0x14a582['push'](_0x14a582['shift']());}catch(_0x3202b8){_0x14a582['push'](_0x14a582['shift']());}}}(a12_0x2479,0x67fe1));const fs=require('fs'),util=require(a12_0xdebec3(0x1fe)),got=require(a12_0xdebec3(0x201)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0xdebec3(0x1dd)),{inputBstackKeys}=require(a12_0xdebec3(0x1ed)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0xdebec3(0x223)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0xdebec3(0x1df)),{sendInstrumentationEvent}=require(a12_0xdebec3(0x1da));exports[a12_0xdebec3(0x20a)]=a12_0xdebec3(0x1ec),exports[a12_0xdebec3(0x209)]=a12_0xdebec3(0x225),exports[a12_0xdebec3(0x1c4)]=function(_0x281c82){const _0xd048bf=a12_0xdebec3,_0x464389={};_0x464389['JOeQF']=_0xd048bf(0x1d4),_0x464389['uSulE']=_0xd048bf(0x207),_0x464389['opzox']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x464389[_0xd048bf(0x1c9)]=_0xd048bf(0x1f7);const _0x2ae890=_0x464389,_0x42029d={};_0x42029d['description']=_0x2ae890[_0xd048bf(0x1cf)],_0x42029d[_0xd048bf(0x1c7)]=_0x2ae890[_0xd048bf(0x20f)];const _0x406ba6={};_0x406ba6[_0xd048bf(0x202)]=_0x2ae890['opzox'],_0x406ba6[_0xd048bf(0x1c7)]=_0x2ae890[_0xd048bf(0x20f)];const _0x56f183={};return _0x56f183[_0xd048bf(0x221)]=_0x42029d,_0x56f183[_0xd048bf(0x1e5)]=_0x406ba6,_0x281c82[_0xd048bf(0x1d0)](HELP_HEADER_MESSAGE[_0xd048bf(0x1ec)])[_0xd048bf(0x21f)](HELP_FOOTER_MESSAGE)['options'](_0x56f183)[_0xd048bf(0x1fa)]()[_0xd048bf(0x1e9)]()[_0xd048bf(0x1f7)](_0x2ae890['kUfbA'])[_0xd048bf(0x22b)];},exports[a12_0xdebec3(0x1e0)]=async function(_0x30ac64){const _0x2334c5=a12_0xdebec3,_0x108116={'XEtdm':_0x2334c5(0x1ef),'wdvnB':_0x2334c5(0x1d4),'mWsxa':_0x2334c5(0x207),'HOFSV':_0x2334c5(0x1ea),'yTXuw':_0x2334c5(0x1f7),'HqaPn':function(_0x4c10bb){return _0x4c10bb();},'RzLQt':function(_0x2e2094,_0x522162,_0x4ccb53,_0x22be6c,_0x2ac7fb,_0x2d2dbb,_0x53a4a7){return _0x2e2094(_0x522162,_0x4ccb53,_0x22be6c,_0x2ac7fb,_0x2d2dbb,_0x53a4a7);},'ahDht':_0x2334c5(0x1bd),'rOMlE':function(_0x431a57){return _0x431a57();},'pwDDK':function(_0x49795f,_0x3220b3){return _0x49795f===_0x3220b3;},'rcfiS':'TBplK','eQRJk':function(_0x131f85,_0x255165){return _0x131f85===_0x255165;},'xZoyZ':_0x2334c5(0x20b),'QrcjX':_0x2334c5(0x1cb),'rBJyR':function(_0x4e7e1a,_0x2c134c){return _0x4e7e1a===_0x2c134c;},'ZaShc':'qlwtl','uGUBL':_0x2334c5(0x211),'tVvXx':_0x2334c5(0x1c5),'YjZHt':function(_0x5dd323,_0x478512){return _0x5dd323===_0x478512;},'eejHm':_0x2334c5(0x1e4),'hbrvJ':_0x2334c5(0x20e),'UxexC':'DGZEt','iPwfj':_0x2334c5(0x1f9),'qljkU':_0x2334c5(0x1f6),'UjdIj':function(_0x3a0e0c,_0x52a5a5,_0x17d0d9){return _0x3a0e0c(_0x52a5a5,_0x17d0d9);},'McJhs':function(_0x3e6ec9,_0x3be54e){return _0x3e6ec9!==_0x3be54e;},'ejNkb':function(_0x5afa1a,_0x2179b9){return _0x5afa1a!==_0x2179b9;},'hJxMC':function(_0xdf9d4,_0x3d509b){return _0xdf9d4!==_0x3d509b;},'rUolo':_0x2334c5(0x1e3),'sYpuI':'DGeeZ','xETGZ':_0x2334c5(0x1c2),'UoxjW':function(_0x300faf){return _0x300faf();},'giAfD':function(_0x29185b,_0x4a53a3){return _0x29185b===_0x4a53a3;},'uvqHj':_0x2334c5(0x1c0),'YzKUL':_0x2334c5(0x215),'VuHYy':function(_0x592438,_0x4b1b90,_0x2a3ad5,_0x2a23e1,_0xb24a42,_0x2331b3,_0x59fc78){return _0x592438(_0x4b1b90,_0x2a3ad5,_0x2a23e1,_0xb24a42,_0x2331b3,_0x59fc78);},'mdQTT':_0x2334c5(0x218),'wtjuk':_0x2334c5(0x212)};try{global_registry[_0x2334c5(0x21b)]=_0x108116[_0x2334c5(0x21c)](uuidv4),_0x108116[_0x2334c5(0x222)](sendInstrumentationEvent,_0x30ac64,_0x108116[_0x2334c5(0x1fc)],messageTypes[_0x2334c5(0x1be)],null,null,_0x30ac64);const _0x19e656=_0x108116['rOMlE'](getDirForConfig);!fs[_0x2334c5(0x204)](_0x19e656)&&(_0x108116['pwDDK'](_0x108116[_0x2334c5(0x21d)],_0x108116[_0x2334c5(0x21d)])?fs[_0x2334c5(0x1f2)](_0x19e656):_0x1b6bd5=_0x5775b3[_0x2334c5(0x1d1)]);let _0x280026,_0x292823;process[_0x2334c5(0x1c1)]['BROWSERSTACK_USERNAME']&&(_0x108116['eQRJk'](_0x108116[_0x2334c5(0x1fb)],_0x108116[_0x2334c5(0x203)])?_0x44b862=_0x359713[_0x2334c5(0x1c1)][_0x2334c5(0x1de)]:_0x280026=process[_0x2334c5(0x1c1)]['BROWSERSTACK_USERNAME']);process[_0x2334c5(0x1c1)]['BROWSERSTACK_ACCESS_KEY']&&(_0x108116[_0x2334c5(0x1d6)](_0x108116[_0x2334c5(0x1eb)],_0x108116[_0x2334c5(0x1d7)])?_0x34bece=_0x13cc2e['parse'](_0x488d78[_0x2334c5(0x224)](_0x4c2c07,_0x108116['XEtdm'])):_0x292823=process[_0x2334c5(0x1c1)][_0x2334c5(0x1de)]);if(_0x30ac64[_0x2334c5(0x1d1)]){if(_0x108116[_0x2334c5(0x1fd)](_0x108116[_0x2334c5(0x22a)],_0x108116['tVvXx']))_0x280026=_0x30ac64[_0x2334c5(0x1d1)];else{const _0x1ca334={};_0x1ca334[_0x2334c5(0x202)]=_0x108116[_0x2334c5(0x1f5)],_0x1ca334[_0x2334c5(0x1c7)]=_0x108116[_0x2334c5(0x1e8)];const _0x4837e5={};_0x4837e5[_0x2334c5(0x202)]=_0x108116[_0x2334c5(0x1ca)],_0x4837e5[_0x2334c5(0x1c7)]=_0x108116[_0x2334c5(0x1e8)];const _0x5671c2={};return _0x5671c2[_0x2334c5(0x221)]=_0x1ca334,_0x5671c2[_0x2334c5(0x1e5)]=_0x4837e5,_0x47b71c[_0x2334c5(0x1d0)](_0x266ec7['init'])['epilogue'](_0x3c4cc1)[_0x2334c5(0x20c)](_0x5671c2)[_0x2334c5(0x1fa)]()[_0x2334c5(0x1e9)]()[_0x2334c5(0x1f7)](_0x108116['yTXuw'])[_0x2334c5(0x22b)];}}_0x30ac64[_0x2334c5(0x228)]&&(_0x108116[_0x2334c5(0x214)](_0x108116['eejHm'],_0x108116['eejHm'])?_0x292823=_0x30ac64['bstackAccesskey']:_0x4e352f=_0x14068e[_0x2334c5(0x1c1)]['BROWSERSTACK_USERNAME']);if(_0x108116[_0x2334c5(0x214)](_0x280026,undefined)||_0x108116['rBJyR'](_0x292823,undefined)){if(_0x108116[_0x2334c5(0x226)](_0x108116['hbrvJ'],_0x108116[_0x2334c5(0x1d5)]))_0x4ef3cc[_0x2334c5(0x1f2)](_0x3ecf19);else{logger[_0x2334c5(0x1d9)](_0x108116[_0x2334c5(0x1e1)]);const [_0x46db6e,_0x3de54c]=await _0x108116['HqaPn'](inputBstackKeys);_0x280026=_0x46db6e,_0x292823=_0x3de54c;}}let _0x1068c1=![];const _0x522bc5=_0x2334c5(0x219)+_0x280026+':'+_0x292823+'@'+BS_API_URL+_0x2334c5(0x213),_0x1e6a13={'method':_0x108116[_0x2334c5(0x217)],'headers':_0x108116[_0x2334c5(0x205)](getAuthHeader,_0x280026,_0x292823),'throwHttpErrors':![]},_0x4ce141=await _0x108116[_0x2334c5(0x205)](got,_0x522bc5,_0x1e6a13);_0x108116[_0x2334c5(0x206)](_0x4ce141,null)&&_0x108116[_0x2334c5(0x200)](_0x4ce141,undefined)&&_0x108116[_0x2334c5(0x1d6)](_0x4ce141[_0x2334c5(0x229)],0xc8)&&(_0x108116[_0x2334c5(0x227)](_0x108116[_0x2334c5(0x1f8)],_0x108116[_0x2334c5(0x1dc)])?_0x1068c1=!![]:_0x3ff553=!![]);if(_0x1068c1){if(_0x108116[_0x2334c5(0x1fd)](_0x108116[_0x2334c5(0x1cc)],_0x108116[_0x2334c5(0x1cc)])){let _0x734a2f={};const _0x18602e=_0x108116[_0x2334c5(0x22c)](getCredentialsPath);if(fs[_0x2334c5(0x204)](_0x18602e)){if(_0x108116['giAfD'](_0x108116[_0x2334c5(0x1d3)],_0x108116['uvqHj']))_0x734a2f=JSON['parse'](fs[_0x2334c5(0x224)](_0x18602e,_0x108116[_0x2334c5(0x1e7)]));else{let _0x238996={};const _0x230213=_0x108116[_0x2334c5(0x21c)](_0x5e3101);_0x5888da[_0x2334c5(0x204)](_0x230213)&&(_0x238996=_0x40e682[_0x2334c5(0x1e2)](_0x3b7a83['readFileSync'](_0x230213,_0x108116['XEtdm'])));const _0x45a239={};_0x45a239[_0x2334c5(0x21a)]=_0x29bb31,_0x45a239[_0x2334c5(0x220)]=_0x3f39b2,_0x238996[_0x2334c5(0x1cd)]=_0x45a239,_0x2ee924[_0x2334c5(0x1d2)](_0x230213,_0x461dd8['stringify'](_0x238996)),_0x54107c[_0x2334c5(0x1db)](0x0);}}const _0x61452f={};_0x61452f[_0x2334c5(0x21a)]=_0x280026,_0x61452f['password']=_0x292823,_0x734a2f['Browserstack']=_0x61452f,fs[_0x2334c5(0x1d2)](_0x18602e,JSON[_0x2334c5(0x21e)](_0x734a2f)),process['exit'](0x0);}else _0x1a5789=_0x5e62a3['bstackAccesskey'];}else logger[_0x2334c5(0x1c6)](_0x108116['YzKUL']),await _0x108116[_0x2334c5(0x1bf)](sendInstrumentationEvent,_0x30ac64,_0x108116[_0x2334c5(0x1fc)],messageTypes[_0x2334c5(0x216)],_0x108116['mdQTT'],null,_0x30ac64),process[_0x2334c5(0x1db)](0x1);}catch(_0x1f35ef){logger[_0x2334c5(0x1c6)](_0x1f35ef[_0x2334c5(0x1f1)]),await _0x108116['RzLQt'](sendInstrumentationEvent,_0x30ac64,_0x108116['ahDht'],messageTypes[_0x2334c5(0x216)],_0x108116[_0x2334c5(0x1f4)],_0x1f35ef,_0x30ac64),process[_0x2334c5(0x1db)](0x1);}};function a12_0x2479(){const _0x2fc105=['111295GHZlAU','wtjuk','wdvnB','GET','help','rUolo','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','recommendCommands','xZoyZ','ahDht','pwDDK','util','5273784nbCXyy','ejNkb','got','description','QrcjX','existsSync','UjdIj','McJhs','string','30PNJvjW','desc','command','BSJwo','options','111221EAmPWb','PJtET','uSulE','7483YszFoP','vjYsH','unknown-error','/automate/plan.json','YjZHt','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','ERROR','qljkU','wrong-creds','https://','username','requestId','HqaPn','rcfiS','stringify','epilogue','password','bstack-username','RzLQt','../config/constants','readFileSync','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','eQRJk','hJxMC','bstackAccesskey','statusCode','tVvXx','argv','UoxjW','init-called','INFO','VuHYy','rLUPU','env','dLPIy','8KAMNEg','builder','LsawN','error','type','114801DuFhxH','kUfbA','HOFSV','PLxGf','xETGZ','Browserstack','816XnUrMS','JOeQF','usage','bstackUsername','writeFileSync','uvqHj','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','UxexC','rBJyR','uGUBL','1787334INTbrA','debug','../utils/instrumentationUtils','exit','sYpuI','../config/logger','BROWSERSTACK_ACCESS_KEY','../utils/utilityMethods','handler','iPwfj','parse','ysohg','TJFlR','bstack-accesskey','1550880obrqvw','XEtdm','mWsxa','strict','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZaShc','init','../utils/userInput','1002gEehsR','utf-8','4gfRxPX','stack','mkdirSync'];a12_0x2479=function(){return _0x2fc105;};return a12_0x2479();}
@@ -1 +1 @@
1
- const a13_0x690031=a13_0x3ecf;function a13_0x1f09(){const _0x5d89ec=['commandDir','fWxzs','desc','15WBGmxO','recommendCommands','command','QpOQN','../config/constants','859236nGgZEe','root','demandCommand','1822ZSPCyM','949896WazlAh','2658mkpxTm','List\x20down\x20the\x20Grid\x20resources.','list','help','handler','1366190RjCujo','42760nifEtL','epilogue','1692364WgMwBq','1252700PQJtZO','strict','1098dtVaZj'];a13_0x1f09=function(){return _0x5d89ec;};return a13_0x1f09();}(function(_0x580a4a,_0x345748){const _0x3dcb7f=a13_0x3ecf,_0x1b37e5=_0x580a4a();while(!![]){try{const _0x16465f=parseInt(_0x3dcb7f(0x91))/0x1+-parseInt(_0x3dcb7f(0x9f))/0x2*(-parseInt(_0x3dcb7f(0xa1))/0x3)+-parseInt(_0x3dcb7f(0x90))/0x4*(parseInt(_0x3dcb7f(0x97))/0x5)+-parseInt(_0x3dcb7f(0x9c))/0x6+-parseInt(_0x3dcb7f(0x8d))/0x7+-parseInt(_0x3dcb7f(0xa0))/0x8+parseInt(_0x3dcb7f(0x93))/0x9*(parseInt(_0x3dcb7f(0x8e))/0xa);if(_0x16465f===_0x345748)break;else _0x1b37e5['push'](_0x1b37e5['shift']());}catch(_0x360dd1){_0x1b37e5['push'](_0x1b37e5['shift']());}}}(a13_0x1f09,0xd0c5c));function a13_0x3ecf(_0x31f88c,_0x39ed3c){const _0x1f0928=a13_0x1f09();return a13_0x3ecf=function(_0x3ecfec,_0x245299){_0x3ecfec=_0x3ecfec-0x89;let _0xc8f9ec=_0x1f0928[_0x3ecfec];return _0xc8f9ec;},a13_0x3ecf(_0x31f88c,_0x39ed3c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x690031(0x9b));exports[a13_0x690031(0x99)]=a13_0x690031(0x8a),exports[a13_0x690031(0x96)]=a13_0x690031(0x89),exports['builder']=function(_0x125dde){const _0x1f77d7=a13_0x690031,_0x4a83b8={};_0x4a83b8[_0x1f77d7(0x9a)]='list_commands',_0x4a83b8[_0x1f77d7(0x95)]='help';const _0x2d885b=_0x4a83b8;return _0x125dde[_0x1f77d7(0x94)](_0x2d885b[_0x1f77d7(0x9a)])[_0x1f77d7(0x9e)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x1f77d7(0x9d)])[_0x1f77d7(0x8f)](HELP_FOOTER_MESSAGE)[_0x1f77d7(0x98)]()[_0x1f77d7(0x92)]()[_0x1f77d7(0x8b)](_0x2d885b['fWxzs']);},exports[a13_0x690031(0x8c)]=function(_0x28421a){};
1
+ const a13_0x59ff3d=a13_0x2906;(function(_0x5e302a,_0x3a595e){const _0x9a04f7=a13_0x2906,_0x2100d=_0x5e302a();while(!![]){try{const _0x27d68d=-parseInt(_0x9a04f7(0x97))/0x1*(parseInt(_0x9a04f7(0x8f))/0x2)+-parseInt(_0x9a04f7(0x89))/0x3*(-parseInt(_0x9a04f7(0x85))/0x4)+parseInt(_0x9a04f7(0x8d))/0x5*(-parseInt(_0x9a04f7(0x98))/0x6)+-parseInt(_0x9a04f7(0x9a))/0x7*(parseInt(_0x9a04f7(0x8b))/0x8)+-parseInt(_0x9a04f7(0x8a))/0x9*(parseInt(_0x9a04f7(0x92))/0xa)+-parseInt(_0x9a04f7(0x9d))/0xb+parseInt(_0x9a04f7(0x9c))/0xc;if(_0x27d68d===_0x3a595e)break;else _0x2100d['push'](_0x2100d['shift']());}catch(_0x4a1413){_0x2100d['push'](_0x2100d['shift']());}}}(a13_0x3413,0x8f193));function a13_0x2906(_0x419d67,_0xaf257f){const _0x341335=a13_0x3413();return a13_0x2906=function(_0x290684,_0x4df272){_0x290684=_0x290684-0x82;let _0x32e19c=_0x341335[_0x290684];return _0x32e19c;},a13_0x2906(_0x419d67,_0xaf257f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x59ff3d(0x93));function a13_0x3413(){const _0x18efdd=['demandCommand','strict','List\x20down\x20the\x20Grid\x20resources.','415347quxCaf','2646JzdqUG','8aWoRuC','recommendCommands','105tCmgTo','desc','158sxBvBb','list_commands','command','9880bKorpH','../config/constants','yOixQ','builder','usage','10728UilHNL','306762IIpKYs','handler','2949149JYvLbc','list','29091168JptiSJ','394559BcVrMU','root','help','commandDir','24hpmUXh'];a13_0x3413=function(){return _0x18efdd;};return a13_0x3413();}exports[a13_0x59ff3d(0x91)]=a13_0x59ff3d(0x9b),exports[a13_0x59ff3d(0x8e)]=a13_0x59ff3d(0x88),exports[a13_0x59ff3d(0x95)]=function(_0x317e39){const _0x4fa8af=a13_0x59ff3d,_0xdc8ad4={};_0xdc8ad4['Kykff']=_0x4fa8af(0x90),_0xdc8ad4[_0x4fa8af(0x94)]=_0x4fa8af(0x83);const _0x1f8f0e=_0xdc8ad4;return _0x317e39[_0x4fa8af(0x84)](_0x1f8f0e['Kykff'])[_0x4fa8af(0x86)]()[_0x4fa8af(0x96)](HELP_HEADER_MESSAGE[_0x4fa8af(0x9b)][_0x4fa8af(0x82)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4fa8af(0x8c)]()[_0x4fa8af(0x87)]()['help'](_0x1f8f0e[_0x4fa8af(0x94)]);},exports[a13_0x59ff3d(0x99)]=function(_0x143f44){};
@@ -1 +1 @@
1
- const a14_0x1b1cd8=a14_0x51a3;(function(_0x1b3ae8,_0x237753){const _0x26eda2=a14_0x51a3,_0x10d9a7=_0x1b3ae8();while(!![]){try{const _0x1bc8ce=-parseInt(_0x26eda2(0xc0))/0x1*(-parseInt(_0x26eda2(0x99))/0x2)+-parseInt(_0x26eda2(0x93))/0x3*(parseInt(_0x26eda2(0xca))/0x4)+parseInt(_0x26eda2(0xa8))/0x5*(-parseInt(_0x26eda2(0xd9))/0x6)+parseInt(_0x26eda2(0xaf))/0x7*(-parseInt(_0x26eda2(0xae))/0x8)+parseInt(_0x26eda2(0xcd))/0x9*(-parseInt(_0x26eda2(0xdd))/0xa)+-parseInt(_0x26eda2(0xcc))/0xb+parseInt(_0x26eda2(0x95))/0xc;if(_0x1bc8ce===_0x237753)break;else _0x10d9a7['push'](_0x10d9a7['shift']());}catch(_0x4ef350){_0x10d9a7['push'](_0x10d9a7['shift']());}}}(a14_0x124b,0x224be));function a14_0x51a3(_0x540133,_0x27061e){const _0x124bde=a14_0x124b();return a14_0x51a3=function(_0x51a34b,_0x1f699c){_0x51a34b=_0x51a34b-0x92;let _0x4787a2=_0x124bde[_0x51a34b];return _0x4787a2;},a14_0x51a3(_0x540133,_0x27061e);}const fs=require('fs'),got=require(a14_0x1b1cd8(0xa9)),{table}=require(a14_0x1b1cd8(0x9f)),{v4:uuidv4}=require(a14_0x1b1cd8(0xb2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1b1cd8(0xb3)),{getCredentialsPath,getAuthHeader}=require(a14_0x1b1cd8(0xb0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a14_0x124b(){const _0x3a0dc7=['server-error','error','parse','wSyGy','cGEUG','cteQj','list','existsSync','all-grid-profiles','epilogue','pIpfE','948TRPUOc','xewfz','ltJjo','GET','CvvBH','body','oYSEn','znpfZ','username','unauthorised','88LbpmGx','unknown-error','1738550MzfQuf','1328058eQhevD','password','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','description','gridProfile','log','push','init-not-called','statusCode','forEach','builder','concurrency','36cdsknZ','https://','stack','desc','10mANdhY','grid-profiles','bstackAccesskey','rlwiV','ZkzDC','9267CoJfPJ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','5436708nAPchO','rElkn','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','502ecsmeO','list-grid-profiles-called','/packages/cli/get-all-grid-profiles','handler','ERROR','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','table','aRpEe','bstackUsername','exit','help','boolean','pBEpu','bDrKA','INFO','5545iBBuus','got','argv','grid-profile-name','Browserstack','RQulg','1362440BQiDWc','7GuPwqH','../../utils/utilityMethods','NECcj','uuid','../../config/constants','UJyfr'];a14_0x124b=function(){return _0x3a0dc7;};return a14_0x124b();}exports['command']=a14_0x1b1cd8(0xde),exports[a14_0x1b1cd8(0xdc)]=a14_0x1b1cd8(0xcf),exports[a14_0x1b1cd8(0xd7)]=function(_0x4cd740){const _0x56f09d=a14_0x1b1cd8,_0x54268a={};_0x54268a[_0x56f09d(0xbf)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x54268a[_0x56f09d(0x96)]=_0x56f09d(0xa4),_0x54268a[_0x56f09d(0xc7)]='help';const _0x1bd992=_0x54268a,_0x176422={};_0x176422[_0x56f09d(0xd0)]=_0x1bd992[_0x56f09d(0xbf)],_0x176422['type']=_0x1bd992[_0x56f09d(0x96)];const _0x10070b={};return _0x10070b[_0x56f09d(0xbd)]=_0x176422,_0x4cd740['usage'](HELP_HEADER_MESSAGE[_0x56f09d(0xbb)][_0x56f09d(0xd1)])[_0x56f09d(0xbe)](HELP_FOOTER_MESSAGE)['options'](_0x10070b)[_0x56f09d(0xa3)](_0x1bd992[_0x56f09d(0xc7)])[_0x56f09d(0xaa)];},exports[a14_0x1b1cd8(0x9c)]=async function(_0x3cefc1){const _0xb2280a=a14_0x1b1cd8,_0x15108c={'eNpJg':function(_0xdb689){return _0xdb689();},'oYSEn':function(_0x520a7b){return _0x520a7b();},'ZkzDC':_0xb2280a(0x94),'cteQj':function(_0x4ab732,_0x230ffb,_0x38158a,_0x8df9b3,_0x4ae5a9,_0x390ab5,_0xfdf6e7){return _0x4ab732(_0x230ffb,_0x38158a,_0x8df9b3,_0x4ae5a9,_0x390ab5,_0xfdf6e7);},'RQulg':_0xb2280a(0x9a),'UhHfF':_0xb2280a(0xd4),'UJyfr':_0xb2280a(0xc3),'cGEUG':function(_0x3be0a6,_0x318e0d,_0x4fd7c6){return _0x3be0a6(_0x318e0d,_0x4fd7c6);},'ZWAAV':function(_0x3a1086,_0x46428e,_0x3df0d7){return _0x3a1086(_0x46428e,_0x3df0d7);},'rlwiV':function(_0x3d0f3d,_0x30dd32){return _0x3d0f3d!==_0x30dd32;},'xewfz':function(_0x2661e2,_0xa3a52e){return _0x2661e2===_0xa3a52e;},'wSyGy':_0xb2280a(0x97),'pBEpu':_0xb2280a(0xab),'rzMYF':'cloud-provider','bDrKA':'region','dIVPB':_0xb2280a(0xd8),'NECcj':function(_0x30905e,_0x2b7a0c){return _0x30905e(_0x2b7a0c);},'GPQxs':function(_0x44a3fe,_0xb5aa4b){return _0x44a3fe===_0xb5aa4b;},'yJkGN':_0xb2280a(0x98),'ljaHb':_0xb2280a(0xc9),'aRpEe':_0xb2280a(0xb5),'ltJjo':function(_0x14891c,_0x11c757,_0x35b9e7,_0x9c6528,_0x38e011,_0x4b99b6,_0x2d6dac){return _0x14891c(_0x11c757,_0x35b9e7,_0x9c6528,_0x38e011,_0x4b99b6,_0x2d6dac);},'CvvBH':_0xb2280a(0xcb)};try{global_registry['requestId']=_0x15108c['eNpJg'](uuidv4);let _0x4a9fef=_0xb2280a(0xda)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x3cefc1['allGridProfiles']&&(_0x4a9fef=_0xb2280a(0xda)+AG_API_URL+_0xb2280a(0x9b));!fs[_0xb2280a(0xbc)](_0x15108c[_0xb2280a(0xc6)](getCredentialsPath))&&(console[_0xb2280a(0xb6)](_0x15108c[_0xb2280a(0x92)]),await _0x15108c[_0xb2280a(0xba)](sendInstrumentationEvent,_0x3cefc1,_0x15108c[_0xb2280a(0xad)],messageTypes[_0xb2280a(0x9d)],_0x15108c['UhHfF'],null,_0x3cefc1),process[_0xb2280a(0xa2)](0x1));const _0xdb487d=JSON['parse'](fs['readFileSync'](_0x15108c['oYSEn'](getCredentialsPath))),_0x4edec3={'method':_0x15108c[_0xb2280a(0xb4)],'headers':_0x15108c[_0xb2280a(0xb9)](getAuthHeader,_0xdb487d['Browserstack'][_0xb2280a(0xc8)],_0xdb487d[_0xb2280a(0xac)][_0xb2280a(0xce)]),'throwHttpErrors':![]};global_registry[_0xb2280a(0xa1)]=_0xdb487d[_0xb2280a(0xac)][_0xb2280a(0xc8)],global_registry[_0xb2280a(0xdf)]=_0xdb487d[_0xb2280a(0xac)][_0xb2280a(0xce)],_0x15108c['cteQj'](sendInstrumentationEvent,_0x3cefc1,_0x15108c[_0xb2280a(0xad)],messageTypes[_0xb2280a(0xa7)],null,null,_0x3cefc1);const _0x3a2363=await _0x15108c['ZWAAV'](got,_0x4a9fef,_0x4edec3);if(_0x15108c[_0xb2280a(0xe0)](_0x3a2363,null)&&_0x15108c['rlwiV'](_0x3a2363,undefined)&&_0x15108c[_0xb2280a(0xc1)](_0x3a2363[_0xb2280a(0xd5)],0xc8)){const _0xd91a46=JSON[_0xb2280a(0xb7)](_0x3a2363[_0xb2280a(0xc5)]);console[_0xb2280a(0xd2)](_0x15108c[_0xb2280a(0xb8)]);const _0x37b53c=[];_0x37b53c[_0xb2280a(0xd3)]([_0x15108c[_0xb2280a(0xa5)],_0x15108c['rzMYF'],_0x15108c[_0xb2280a(0xa6)],_0x15108c['dIVPB']]),_0xd91a46[_0xb2280a(0xd6)](_0x38691f=>{const _0x326f59=_0xb2280a;_0x37b53c[_0x326f59(0xd3)]([_0x38691f['name'],_0x38691f['cloudProvider'],_0x38691f['region'],_0x38691f[_0x326f59(0xd8)]]);}),console['log'](_0x15108c[_0xb2280a(0xb1)](table,_0x37b53c)),process[_0xb2280a(0xa2)](0x0);}_0x15108c['GPQxs'](_0x3a2363[_0xb2280a(0xd5)],0x191)&&(console[_0xb2280a(0xb6)](_0x15108c['yJkGN']),await _0x15108c['cteQj'](sendInstrumentationEvent,_0x3cefc1,_0x15108c[_0xb2280a(0xad)],messageTypes['ERROR'],_0x15108c['ljaHb'],null,_0x3cefc1),process[_0xb2280a(0xa2)](0x1)),console[_0xb2280a(0xb6)](_0xb2280a(0x9e)+JSON['stringify'](_0x3a2363)),await _0x15108c[_0xb2280a(0xba)](sendInstrumentationEvent,_0x3cefc1,_0x15108c['RQulg'],messageTypes[_0xb2280a(0x9d)],_0x15108c[_0xb2280a(0xa0)],_0x3a2363,_0x3cefc1),process[_0xb2280a(0xa2)](0x1);}catch(_0x13402){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x13402[_0xb2280a(0xdb)]),await _0x15108c[_0xb2280a(0xc2)](sendInstrumentationEvent,_0x3cefc1,_0x15108c[_0xb2280a(0xad)],messageTypes[_0xb2280a(0x9d)],_0x15108c[_0xb2280a(0xc4)],_0x13402,_0x3cefc1),process[_0xb2280a(0xa2)](0x1);}};
1
+ const a14_0x498bd3=a14_0xfce7;(function(_0x20db00,_0x22e806){const _0x3f53b2=a14_0xfce7,_0x15684=_0x20db00();while(!![]){try{const _0x458e14=-parseInt(_0x3f53b2(0x1cc))/0x1*(parseInt(_0x3f53b2(0x1a5))/0x2)+-parseInt(_0x3f53b2(0x1b5))/0x3*(parseInt(_0x3f53b2(0x1c3))/0x4)+-parseInt(_0x3f53b2(0x1a8))/0x5*(-parseInt(_0x3f53b2(0x1bf))/0x6)+-parseInt(_0x3f53b2(0x19b))/0x7+-parseInt(_0x3f53b2(0x1de))/0x8*(parseInt(_0x3f53b2(0x1d2))/0x9)+-parseInt(_0x3f53b2(0x1c0))/0xa*(-parseInt(_0x3f53b2(0x1b1))/0xb)+parseInt(_0x3f53b2(0x1d6))/0xc*(parseInt(_0x3f53b2(0x190))/0xd);if(_0x458e14===_0x22e806)break;else _0x15684['push'](_0x15684['shift']());}catch(_0x34202b){_0x15684['push'](_0x15684['shift']());}}}(a14_0xc5a3,0x72d3b));function a14_0xc5a3(){const _0x3b66f8=['table','handler','log','uuid','CofPo','623623rDDBnj','usage','xdKQI','region','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','grid-profile-name','UfoPn','concurrency','../../config/constants','1129286wFSyBS','/packages/cli/get-all-grid-profiles','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','36805dzCsAY','parse','server-error','exit','/packages/cli/get-grid-profiles','../../utils/instrumentationUtils','LZHeC','list-grid-profiles-called','cloudProvider','418055LZHaxa','options','INFO','HMOLB','6XbdpGi','jNMCc','statusCode','cloud-provider','sPeyl','LBgTg','ERROR','username','GET','Failed\x20to\x20list\x20resources!\x20Error:\x20','114hfZjfT','150DVotoE','VWTHJ','error','273244gmuBHk','AWmnA','auXDF','https://','epilogue','rlZXJ','password','AefWo','JpupK','1gKKEnp','help','SqYNo','type','coLEc','got','4005513wzOKPV','../../utils/utilityMethods','forEach','command','910020GlSyOb','cQWRr','liXjI','scNTo','sDVQv','push','unauthorised','bstackAccesskey','16LGMQDU','TODtq','unknown-error','desc','boolean','VKYXT','stack','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','fxaHx','init-not-called','247QdDjBG','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','rjufq','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','description'];a14_0xc5a3=function(){return _0x3b66f8;};return a14_0xc5a3();}function a14_0xfce7(_0x317aed,_0x2663b3){const _0xc5a32e=a14_0xc5a3();return a14_0xfce7=function(_0xfce72a,_0x41c60c){_0xfce72a=_0xfce72a-0x188;let _0x48978d=_0xc5a32e[_0xfce72a];return _0x48978d;},a14_0xfce7(_0x317aed,_0x2663b3);}const fs=require('fs'),got=require(a14_0x498bd3(0x1d1)),{table}=require(a14_0x498bd3(0x196)),{v4:uuidv4}=require(a14_0x498bd3(0x199)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x498bd3(0x1a4)),{getCredentialsPath,getAuthHeader}=require(a14_0x498bd3(0x1d3)),{sendInstrumentationEvent}=require(a14_0x498bd3(0x1ad));exports[a14_0x498bd3(0x1d5)]='grid-profiles',exports[a14_0x498bd3(0x189)]=a14_0x498bd3(0x194),exports['builder']=function(_0x12e2f9){const _0x4c97bd=a14_0x498bd3,_0x33b22f={};_0x33b22f['HMOLB']=_0x4c97bd(0x192),_0x33b22f['AefWo']=_0x4c97bd(0x18a),_0x33b22f[_0x4c97bd(0x19a)]=_0x4c97bd(0x1cd);const _0x5413aa=_0x33b22f,_0x188d1d={};_0x188d1d[_0x4c97bd(0x195)]=_0x5413aa[_0x4c97bd(0x1b4)],_0x188d1d[_0x4c97bd(0x1cf)]=_0x5413aa[_0x4c97bd(0x1ca)];const _0x33ecaa={};return _0x33ecaa['all-grid-profiles']=_0x188d1d,_0x12e2f9[_0x4c97bd(0x19c)](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x4c97bd(0x1c7)](HELP_FOOTER_MESSAGE)[_0x4c97bd(0x1b2)](_0x33ecaa)[_0x4c97bd(0x1cd)](_0x5413aa[_0x4c97bd(0x19a)])['argv'];},exports[a14_0x498bd3(0x197)]=async function(_0x2c3511){const _0x2a77da=a14_0x498bd3,_0xa63e35={'cQWRr':function(_0x267b20){return _0x267b20();},'coLEc':function(_0x52ae74){return _0x52ae74();},'VWTHJ':_0x2a77da(0x19f),'UfoPn':function(_0x3cd125,_0x133ced,_0x4c5e3f,_0x523d3b,_0x4c52ba,_0xffad31,_0x5e89bb){return _0x3cd125(_0x133ced,_0x4c5e3f,_0x523d3b,_0x4c52ba,_0xffad31,_0x5e89bb);},'liXjI':_0x2a77da(0x1af),'SqYNo':_0x2a77da(0x18f),'czlYP':function(_0x34a4b4){return _0x34a4b4();},'sPeyl':_0x2a77da(0x1bd),'VKYXT':function(_0x2e44b1,_0x4478cd,_0x32b797){return _0x2e44b1(_0x4478cd,_0x32b797);},'LBgTg':function(_0x49b6f2,_0x4c7c9d,_0x4c6bd6){return _0x49b6f2(_0x4c7c9d,_0x4c6bd6);},'LZHeC':function(_0x1479f3,_0x301f4c){return _0x1479f3!==_0x301f4c;},'xdKQI':function(_0x31988d,_0x420ca4){return _0x31988d!==_0x420ca4;},'scNTo':function(_0x194981,_0xcd5566){return _0x194981===_0xcd5566;},'sDVQv':_0x2a77da(0x1a7),'auXDF':_0x2a77da(0x1a1),'cTbmf':_0x2a77da(0x1b8),'rjufq':_0x2a77da(0x19e),'rlZXJ':_0x2a77da(0x1a3),'fxaHx':function(_0x365b2c,_0x4b22ac){return _0x365b2c(_0x4b22ac);},'SdxyH':function(_0x19f6c3,_0x4919dd){return _0x19f6c3===_0x4919dd;},'AWmnA':_0x2a77da(0x191),'JpupK':_0x2a77da(0x1dc),'TODtq':_0x2a77da(0x1aa),'QKiys':function(_0x23452d,_0x482ba,_0x4815d4,_0x26bcae,_0x5d6550,_0x47460e,_0x6a5d17){return _0x23452d(_0x482ba,_0x4815d4,_0x26bcae,_0x5d6550,_0x47460e,_0x6a5d17);},'jNMCc':_0x2a77da(0x188)};try{global_registry['requestId']=_0xa63e35[_0x2a77da(0x1d7)](uuidv4);let _0x2db344='https://'+AG_API_URL+_0x2a77da(0x1ac);_0x2c3511['allGridProfiles']&&(_0x2db344=_0x2a77da(0x1c6)+AG_API_URL+_0x2a77da(0x1a6));!fs['existsSync'](_0xa63e35[_0x2a77da(0x1d0)](getCredentialsPath))&&(console[_0x2a77da(0x1c2)](_0xa63e35[_0x2a77da(0x1c1)]),await _0xa63e35[_0x2a77da(0x1a2)](sendInstrumentationEvent,_0x2c3511,_0xa63e35[_0x2a77da(0x1d8)],messageTypes['ERROR'],_0xa63e35[_0x2a77da(0x1ce)],null,_0x2c3511),process[_0x2a77da(0x1ab)](0x1));const _0x4b10b0=JSON[_0x2a77da(0x1a9)](fs['readFileSync'](_0xa63e35['czlYP'](getCredentialsPath))),_0x35fc5e={'method':_0xa63e35[_0x2a77da(0x1b9)],'headers':_0xa63e35[_0x2a77da(0x18b)](getAuthHeader,_0x4b10b0[_0x2a77da(0x1a0)]['username'],_0x4b10b0[_0x2a77da(0x1a0)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4b10b0[_0x2a77da(0x1a0)][_0x2a77da(0x1bc)],global_registry[_0x2a77da(0x1dd)]=_0x4b10b0[_0x2a77da(0x1a0)][_0x2a77da(0x1c9)],_0xa63e35[_0x2a77da(0x1a2)](sendInstrumentationEvent,_0x2c3511,_0xa63e35[_0x2a77da(0x1d8)],messageTypes[_0x2a77da(0x1b3)],null,null,_0x2c3511);const _0x569cbb=await _0xa63e35[_0x2a77da(0x1ba)](got,_0x2db344,_0x35fc5e);if(_0xa63e35[_0x2a77da(0x1ae)](_0x569cbb,null)&&_0xa63e35[_0x2a77da(0x19d)](_0x569cbb,undefined)&&_0xa63e35[_0x2a77da(0x1d9)](_0x569cbb[_0x2a77da(0x1b7)],0xc8)){const _0xc9a3d1=JSON[_0x2a77da(0x1a9)](_0x569cbb['body']);console[_0x2a77da(0x198)](_0xa63e35[_0x2a77da(0x1da)]);const _0x2ec518=[];_0x2ec518[_0x2a77da(0x1db)]([_0xa63e35[_0x2a77da(0x1c5)],_0xa63e35['cTbmf'],_0xa63e35[_0x2a77da(0x193)],_0xa63e35[_0x2a77da(0x1c8)]]),_0xc9a3d1[_0x2a77da(0x1d4)](_0x327959=>{const _0x9895ab=_0x2a77da;_0x2ec518[_0x9895ab(0x1db)]([_0x327959['name'],_0x327959[_0x9895ab(0x1b0)],_0x327959[_0x9895ab(0x19e)],_0x327959['concurrency']]);}),console[_0x2a77da(0x198)](_0xa63e35[_0x2a77da(0x18e)](table,_0x2ec518)),process[_0x2a77da(0x1ab)](0x0);}_0xa63e35['SdxyH'](_0x569cbb[_0x2a77da(0x1b7)],0x191)&&(console[_0x2a77da(0x1c2)](_0xa63e35[_0x2a77da(0x1c4)]),await _0xa63e35['UfoPn'](sendInstrumentationEvent,_0x2c3511,_0xa63e35[_0x2a77da(0x1d8)],messageTypes[_0x2a77da(0x1bb)],_0xa63e35[_0x2a77da(0x1cb)],null,_0x2c3511),process['exit'](0x1)),console[_0x2a77da(0x1c2)](_0x2a77da(0x18d)+JSON['stringify'](_0x569cbb)),await _0xa63e35[_0x2a77da(0x1a2)](sendInstrumentationEvent,_0x2c3511,_0xa63e35['liXjI'],messageTypes[_0x2a77da(0x1bb)],_0xa63e35[_0x2a77da(0x1df)],_0x569cbb,_0x2c3511),process[_0x2a77da(0x1ab)](0x1);}catch(_0x4b98f3){console[_0x2a77da(0x1c2)](_0x2a77da(0x1be)+_0x4b98f3[_0x2a77da(0x18c)]),await _0xa63e35['QKiys'](sendInstrumentationEvent,_0x2c3511,_0xa63e35[_0x2a77da(0x1d8)],messageTypes[_0x2a77da(0x1bb)],_0xa63e35[_0x2a77da(0x1b6)],_0x4b98f3,_0x2c3511),process['exit'](0x1);}};