browserstack-node-sdk 1.34.25 → 1.34.27

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 (129) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/central-scanner/constants.js +1 -1
  101. package/src/helpers/central-scanner/helpers.js +1 -1
  102. package/src/helpers/globals.js +1 -1
  103. package/src/helpers/helper.js +1 -1
  104. package/src/helpers/logger.js +1 -1
  105. package/src/helpers/patchHelper.js +1 -1
  106. package/src/helpers/patchHelpers.js +1 -1
  107. package/src/helpers/percy/Percy.js +1 -1
  108. package/src/helpers/percy/PercyBinary.js +1 -1
  109. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  110. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  111. package/src/helpers/percy/PercySDK.js +1 -1
  112. package/src/helpers/percy/index.js +1 -1
  113. package/src/helpers/percy/utils.js +1 -1
  114. package/src/helpers/performance-tester.js +1 -1
  115. package/src/helpers/request-spy.js +1 -1
  116. package/src/helpers/setKeepAlive.js +1 -1
  117. package/src/helpers/test-observability/constants.js +1 -1
  118. package/src/helpers/test-observability/error-handler.js +1 -1
  119. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  120. package/src/helpers/test-observability/sessionHandler.js +1 -1
  121. package/src/helpers/test-observability/utils.js +1 -1
  122. package/src/helpers/testhub/constants.js +1 -1
  123. package/src/helpers/testhub/testhubHandler.js +1 -1
  124. package/src/helpers/testhub/utils.js +1 -1
  125. package/src/helpers/timeoutPromise.js +1 -1
  126. package/src/helpers/utilities.js +1 -1
  127. package/src/helpers/w3cMapping.js +1 -1
  128. package/src/hubAllocationMethods.js +1 -1
  129. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x5656(){const _0x583424=['PBweb','CLI\x20run\x20started','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','privateGrid','mzMti','IekCF','boolean','HvLJP','CLFbX','bvqBo','raMdi','PEVGt','CiyWT','route53','QIDPr','Cluster\x20created\x20successfully','WgPhK','ingress-nginx','54NCCoIs','password','ERROR','wKoej','/wd/hub','yVled','TRWpD','JSEHJ','delay','body','create-grid-checks-null-response','https','ZCqEM','init-not-called','newCluster','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','vlgsl','JfHQR','\x20are\x20not\x20present\x20in\x20VPC:\x20','xmMRP','TVler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridProfileId','asLAo','ulliQ','LsAPp','clusterName','MCtsx','true','name','s3bucket','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','GEYKS','Found\x20VPC:\x20','split','ztUmL','JZAeQ','7|9|14|0|3|2|12|13|8|11|1|6|5|10|4','QeyVO','create-grid-checks-invalid-profile','create-grid-called','Cluster:\x20','http','Grid\x20profile\x20fetched\x20from\x20backend','KsxDN','cloudProvider','help','LOG','bpufm','OxkCy','UKTPF','15UmEdlJ','<UsernamePlaceholder>','Will\x20be\x20spawning\x20the\x20grid\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','/packages/cli/get-grid-url?gridIdentifier=','1010538kYItHX','OVKie','wywLD','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','pre-spawned-subnets-not-selected','pre-spawned-invalid-vpc','LGkdS','private-ingress-nginx-controller','buVdl','UqtAc','maxNodes','Browserstack','tbcQr','aDHcI','SzZhM','cUAQb','create','jDbxO','Create\x20a\x20private/public\x20grid.','region','NGBMr','usage','Spawning\x20the\x20grid\x20','info','connectionTimeout','njMWi','YyRuv','gridProfiles','YrLVg','exit','sEFzu','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','rEmLL','\x20in\x20existing\x20cluster\x20\x27','createdBy','ENmWK','rEIPj','://','CMsrq','error','non-aws-azure-cluster','XXbgN','jFkiH','ZhDoO','30biLXZz','wMkLR','cffOL','Found\x20Subnets:\x20','yaVQe','180vtgygz','grid-profile','sBIyl','wKWER','GET','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','message','wQuJw','command','skip-tls-cert-verify','mDJOC','toLowerCase','FqSwc','5820PplumQ','fgpAP','https://','UlTGP','stringify','zxrFI','ghoLb','grid-name','yWtPX','QnLaH','eFAvs','private-grid','pre-spawned-invalid-subnets','../../config/constants','adjum','readNamespacedService','CTxMI','lOPIL','TdEtg','IMpIE','get-grid-url-auth-failed','JFugr','length','sendEventToBackend','uZIJE','create-grid-checks-grid-already-exists','DwoCV','eboJt','ZQxau','GWgJR','annotations','get-grid-url-null-response','setupAutoscaler','statusCode','securityGroups','uIlHW','28066064XgtwPy','getResourceClientId','kGbSb','DPHYe','iAAkU','INFO','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','fdFwU','bwbfD','hrMGt','createNamespace','EJZed','mWIlU','jzgkR','Msozu','IAvRz','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','nhomt','gIlau','gridName','create-grid-checks-non-200','Namespace\x20created','Subnets:\x20','tQmFe','create-grid-checks-auth-failed','clusterRegion','418AprJtt','../../utils/webSocketUtils','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','STzNz','deleteCluster','lKXxR','qCqLu','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','GYvLZ','uaHXC','GnMlN','description','updateClusterAlreadyPresent','\x27\x20grid\x20profile','DPryo','sdOqX','alreadyPresent','got','VaTEe','GHQFW','zBqVz','builder','/packages/cli/create-grid-checks','HJVbz','Deleting\x20the\x20CloudFormation\x20Stacks','replace','Create\x20a\x20new\x20Automation\x20grid.','\x20using\x20\x27','epilogue','Htzcm','drvRy','XXsQt','80cAsFRM','FbtVg','RtMTg','JLhDf','managedBy','default','oGbzB','1501284BLSvyv','rGXmo','../../cloudproviders/utils','namespace','instanceType','3687bxeMQd','bstackAccesskey','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','minNodes','jldyl','uuid','OCgLC','../../utils/utilityMethods','aWIhD','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Spawning\x20Grid\x20on\x20the\x20Cluster','YTaAQ','8|6|5|0|1|7|2|3|4','xYHkS','turboscale-managed-identity-','existsSync','UJhgi','VhpNR','skipTlsCertVerify','type','Creating\x20namespace','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','aCFPK','76930rvmPQT','parse','2|0|3|1|4','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.','LNXuo','MdqCl','xNeVL','JuBuR','prespawned-cluster-args-not-passed','oePnx','setupNewCluster','SIAgJ','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','wncfx','stack','RPtRX','Ljdoi','isNewAWSCluster','fiRee','vpc','sendResourceDataToHST','CLI_RUN_STARTED','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','KVXTl','cNrNf','EDAlu','kBben','ingress-nginx-controller','hubVersion','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','subnets','isSubnetsValid','gFdyc','isPrivateGrid','NpBmy','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','aXSOt','43419gPTxKx','xijgV','debug','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','sNDFJ','VeqQS','isClusterPresent','reconnecting-websocket','RAAzB','BruqD','Ilrfv','ZymfZ','Namespace\x20Created','pctdC','cluster-name','eiPIu','isVPCPresent','Cluster\x20','aVsai','nfVhd','gridProfile','concurrency','getGridHostname','YlbXz','browserVersion','gsYJV','hmWio','Skip\x20insecure\x20cert\x20verification.','CYVyW','VVcaK','bstackUsername','username','argv','requestId','metadata','XnGbx','string','defaultGridProfile','user','mOjXn','warn','createOtherResources','itpKw','Adding\x20Websocket\x20listeners'];a9_0x5656=function(){return _0x583424;};return a9_0x5656();}const a9_0x50843c=a9_0x54b4;(function(_0x2cae57,_0x2bc260){const _0x420cc7=a9_0x54b4,_0x3567dc=_0x2cae57();while(!![]){try{const _0x43e345=parseInt(_0x420cc7(0x257))/0x1*(parseInt(_0x420cc7(0x176))/0x2)+parseInt(_0x420cc7(0x295))/0x3*(-parseInt(_0x420cc7(0x1e0))/0x4)+-parseInt(_0x420cc7(0x1aa))/0x5*(parseInt(_0x420cc7(0x252))/0x6)+parseInt(_0x420cc7(0x26f))/0x7*(-parseInt(_0x420cc7(0x24b))/0x8)+parseInt(_0x420cc7(0x1af))/0x9*(-parseInt(_0x420cc7(0x1db))/0xa)+parseInt(_0x420cc7(0x22b))/0xb*(-parseInt(_0x420cc7(0x1ed))/0xc)+parseInt(_0x420cc7(0x211))/0xd;if(_0x43e345===_0x2bc260)break;else _0x3567dc['push'](_0x3567dc['shift']());}catch(_0x327212){_0x3567dc['push'](_0x3567dc['shift']());}}}(a9_0x5656,0x5f8ce));function a9_0x54b4(_0x736825,_0x5f435b){const _0x56563d=a9_0x5656();return a9_0x54b4=function(_0x54b473,_0x1777c0){_0x54b473=_0x54b473-0x13d;let _0x4b7e2b=_0x56563d[_0x54b473];return _0x4b7e2b;},a9_0x54b4(_0x736825,_0x5f435b);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x50843c(0x13f)),got=require(a9_0x50843c(0x23c)),{v4:uuidv4}=require(a9_0x50843c(0x25d)),webSocketUtils=require(a9_0x50843c(0x22c)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x50843c(0x25f)),{getCloudProviderObject}=require(a9_0x50843c(0x254)),{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_0x50843c(0x1fa)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x50843c(0x1e8)]='grid',exports['desc']=a9_0x50843c(0x245),exports[a9_0x50843c(0x240)]=function(_0x25efa0){const _0x4ddc4c=a9_0x50843c,_0x1ed9d4={};_0x1ed9d4[_0x4ddc4c(0x172)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x1ed9d4['KsxDN']=_0x4ddc4c(0x15c),_0x1ed9d4['ulliQ']=_0x4ddc4c(0x298),_0x1ed9d4['PEVGt']=_0x4ddc4c(0x1ad),_0x1ed9d4[_0x4ddc4c(0x208)]=_0x4ddc4c(0x293),_0x1ed9d4[_0x4ddc4c(0x205)]=_0x4ddc4c(0x285),_0x1ed9d4['UKTPF']=_0x4ddc4c(0x1c1),_0x1ed9d4['oeIsz']=_0x4ddc4c(0x153),_0x1ed9d4[_0x4ddc4c(0x21e)]=_0x4ddc4c(0x16a),_0x1ed9d4[_0x4ddc4c(0x21f)]=_0x4ddc4c(0x1a5);const _0x4d3f4d=_0x1ed9d4,_0x569817={};_0x569817[_0x4ddc4c(0x236)]=_0x4d3f4d['QIDPr'],_0x569817['type']=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x1ba0ff={};_0x1ba0ff[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x18e)],_0x1ba0ff[_0x4ddc4c(0x26b)]=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x2194cd={};_0x2194cd[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x16f)],_0x2194cd[_0x4ddc4c(0x26b)]=_0x4d3f4d['KsxDN'];const _0x3403c3={};_0x3403c3[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x208)],_0x3403c3['type']=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x59c7f2={};_0x59c7f2[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x205)],_0x59c7f2[_0x4ddc4c(0x26b)]=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x5962ea={};_0x5962ea[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x1a9)],_0x5962ea['type']=_0x4d3f4d['KsxDN'];const _0x49a6b8={};_0x49a6b8[_0x4ddc4c(0x236)]=_0x4d3f4d['oeIsz'],_0x49a6b8['type']=_0x4d3f4d[_0x4ddc4c(0x21e)],_0x49a6b8[_0x4ddc4c(0x250)]=![];const _0x111cd8={};return _0x111cd8[_0x4ddc4c(0x1f4)]=_0x569817,_0x111cd8[_0x4ddc4c(0x1e1)]=_0x1ba0ff,_0x111cd8[_0x4ddc4c(0x146)]=_0x2194cd,_0x111cd8['cloud-provider']=_0x3403c3,_0x111cd8[_0x4ddc4c(0x1c2)]=_0x59c7f2,_0x111cd8[_0x4ddc4c(0x1f8)]=_0x5962ea,_0x111cd8['skip-tls-cert-verify']=_0x49a6b8,_0x25efa0[_0x4ddc4c(0x1c4)](HELP_HEADER_MESSAGE[_0x4ddc4c(0x1bf)])[_0x4ddc4c(0x247)](HELP_FOOTER_MESSAGE)['options'](_0x111cd8)[_0x4ddc4c(0x1a5)](_0x4d3f4d[_0x4ddc4c(0x21f)])['argv'];},exports['handler']=async function(_0x4db362){const _0x3cf5f2=a9_0x50843c,_0x5c2694={'EJZed':_0x3cf5f2(0x1ce),'DwoCV':_0x3cf5f2(0x15c),'pHzXB':_0x3cf5f2(0x298),'MWxCw':_0x3cf5f2(0x1ad),'HvLJP':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','rymZV':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IMpIE':'Create\x20a\x20private/public\x20grid.','itpKw':_0x3cf5f2(0x153),'yWtPX':_0x3cf5f2(0x16a),'cUAQb':'help','yVled':_0x3cf5f2(0x160),'HJVbz':function(_0x3e8893,_0x1d2899){return _0x3e8893===_0x1d2899;},'PBweb':_0x3cf5f2(0x19c),'rGXmo':function(_0x2abf8e,_0x5189f7,_0xb0b21e,_0x2d47b0,_0x2aef2c,_0x348ce9,_0x474506,_0x4fa86f,_0x1c39fd,_0x4cf0e0,_0x2fe8fb,_0x1e1e3d){return _0x2abf8e(_0x5189f7,_0xb0b21e,_0x2d47b0,_0x2aef2c,_0x348ce9,_0x474506,_0x4fa86f,_0x1c39fd,_0x4cf0e0,_0x2fe8fb,_0x1e1e3d);},'vlgsl':function(_0xce0212,_0x3ef687){return _0xce0212!==_0x3ef687;},'pEvHS':'5|3|2|0|1|7|8|6|4','Ilrfv':_0x3cf5f2(0x165),'nhomt':_0x3cf5f2(0x181),'CYVyW':_0x3cf5f2(0x1a1),'VaTEe':_0x3cf5f2(0x1d6),'eiPIu':function(_0x1b2427){return _0x1b2427();},'CTxMI':function(_0x79431e,_0x3784e2){return _0x79431e===_0x3784e2;},'JfHQR':_0x3cf5f2(0x274),'FJEOY':_0x3cf5f2(0x25c),'TdEtg':_0x3cf5f2(0x18b),'RAAzB':function(_0xcf7cb4,_0x9e173a,_0x331d46,_0x697b80,_0x148204,_0x278117,_0x41a5fc){return _0xcf7cb4(_0x9e173a,_0x331d46,_0x697b80,_0x148204,_0x278117,_0x41a5fc);},'aWIhD':_0x3cf5f2(0x19f),'ULhyH':_0x3cf5f2(0x183),'njMWi':_0x3cf5f2(0x1ab),'VhpNR':'<PasswordPlaceholder>','rEmLL':_0x3cf5f2(0x163),'ZCqEM':'onnWJ','NpBmy':_0x3cf5f2(0x14f),'GYvLZ':_0x3cf5f2(0x288),'drvRy':_0x3cf5f2(0x1fe),'fiRee':_0x3cf5f2(0x221),'YrLVg':function(_0x32a358,_0x158e27,_0x4e6504,_0x35ef04,_0x31a453,_0x50924d,_0x251f49,_0x1b1127){return _0x32a358(_0x158e27,_0x4e6504,_0x35ef04,_0x31a453,_0x50924d,_0x251f49,_0x1b1127);},'wywLD':_0x3cf5f2(0x277),'ZhDoO':_0x3cf5f2(0x210),'cffOL':_0x3cf5f2(0x251),'hdNRf':_0x3cf5f2(0x1b2),'bvqBo':_0x3cf5f2(0x1d7),'jxkWm':function(_0x2c3101,_0x49c629){return _0x2c3101===_0x49c629;},'ztUmL':_0x3cf5f2(0x192),'VVcaK':_0x3cf5f2(0x219),'GEYKS':function(_0x40712e,_0x37a63f){return _0x40712e!==_0x37a63f;},'wMkLR':'VaCaO','utNiK':_0x3cf5f2(0x24d),'aCFPK':_0x3cf5f2(0x18f),'uaHXC':_0x3cf5f2(0x1b7),'YyRuv':_0x3cf5f2(0x1e4),'gsYJV':function(_0x32c256,_0x164fd6,_0x4a164f){return _0x32c256(_0x164fd6,_0x4a164f);},'aXSOt':function(_0x15aa1b,_0x517a7e){return _0x15aa1b!==_0x517a7e;},'VeqQS':'okdIM','SIAgJ':function(_0x500f23,_0x388b01,_0x24d8aa){return _0x500f23(_0x388b01,_0x24d8aa);},'xNeVL':function(_0x3f7942,_0x4c314f){return _0x3f7942===_0x4c314f;},'aVsai':function(_0x2f450f,_0x388de8){return _0x2f450f===_0x388de8;},'KfMmR':'FCqQo','lNKCK':'QLFUc','ENmWK':_0x3cf5f2(0x185),'wQuJw':function(_0x47bba9,_0x5a9176,_0x52fe3a,_0xa9b3d1,_0x3f0080,_0x59a9d8,_0x68bd23,_0xaa3121){return _0x47bba9(_0x5a9176,_0x52fe3a,_0xa9b3d1,_0x3f0080,_0x59a9d8,_0x68bd23,_0xaa3121);},'MCtsx':_0x3cf5f2(0x180),'RPtRX':function(_0x5b1523,_0xcf0708){return _0x5b1523===_0xcf0708;},'OMiol':function(_0x1043cb,_0x21a0b3){return _0x1043cb===_0x21a0b3;},'BruqD':_0x3cf5f2(0x1ec),'sNDFJ':_0x3cf5f2(0x259),'nGLfW':_0x3cf5f2(0x229),'TVler':function(_0xa17bde,_0x47227e){return _0xa17bde!==_0x47227e;},'LGkdS':_0x3cf5f2(0x287),'iAAkU':_0x3cf5f2(0x278),'SzZhM':_0x3cf5f2(0x225),'JLhDf':_0x3cf5f2(0x1a2),'asLAo':'LXUFv','WgPhK':function(_0x39d8ec,_0x183d63,_0x524b2d,_0x2b1990,_0x4b13ae,_0x36f938,_0x45f0e4,_0x3294bc){return _0x39d8ec(_0x183d63,_0x524b2d,_0x2b1990,_0x4b13ae,_0x36f938,_0x45f0e4,_0x3294bc);},'XXbgN':_0x3cf5f2(0x206),'DPryo':_0x3cf5f2(0x1cd),'QnLaH':_0x3cf5f2(0x16e),'XXsQt':function(_0x175e55,_0x36ebde){return _0x175e55===_0x36ebde;},'tbcQr':function(_0xc71d40,_0x5b52ca){return _0xc71d40!==_0x5b52ca;},'jiomA':'BnxlY','sdOqX':function(_0x16c6d7,_0x5ba36e){return _0x16c6d7!==_0x5ba36e;},'NGBMr':_0x3cf5f2(0x230),'UlTGP':'xQeqN','QeyVO':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','mDJOC':_0x3cf5f2(0x19e),'zxrFI':function(_0x412d52,_0x1f2b57){return _0x412d52===_0x1f2b57;},'OCgLC':_0x3cf5f2(0x231),'QhAML':function(_0x762e01,_0x47dfe7){return _0x762e01===_0x47dfe7;},'OxkCy':_0x3cf5f2(0x21d),'kGbSb':function(_0x14dd63,_0x5ae74a){return _0x14dd63===_0x5ae74a;},'OVKie':_0x3cf5f2(0x296),'sBIyl':_0x3cf5f2(0x1ee),'gIlau':function(_0x37bfff,_0x1b6f4d,_0x5b0506,_0x3c455f,_0x16086a,_0xac4e4a,_0x2a0c72,_0x5913c1,_0x2bad30,_0x10a8a2,_0x470dd9,_0x66ce0a){return _0x37bfff(_0x1b6f4d,_0x5b0506,_0x3c455f,_0x16086a,_0xac4e4a,_0x2a0c72,_0x5913c1,_0x2bad30,_0x10a8a2,_0x470dd9,_0x66ce0a);},'gFdyc':function(_0x509142,_0x58d44d){return _0x509142===_0x58d44d;},'JFugr':_0x3cf5f2(0x1f7),'IAvRz':_0x3cf5f2(0x189),'IekCF':'fjMzj','rEIPj':function(_0x541ef7,_0x4bb245){return _0x541ef7===_0x4bb245;},'KVXTl':_0x3cf5f2(0x1b8),'XkgeB':'FSgKp','LNXuo':_0x3cf5f2(0x264),'JZAeQ':function(_0x398d40,_0x118434,_0x382d9a,_0x1fcc6a,_0x1c70f7,_0x34a60b,_0x224f9b){return _0x398d40(_0x118434,_0x382d9a,_0x1fcc6a,_0x1c70f7,_0x34a60b,_0x224f9b);},'ZQxau':function(_0x4c82f7,_0x567222){return _0x4c82f7!==_0x567222;},'bpufm':function(_0x168833,_0x543132){return _0x168833===_0x543132;},'XnGbx':function(_0x2ec696,_0xa5d18f){return _0x2ec696===_0xa5d18f;},'mzMti':_0x3cf5f2(0x217),'JSEHJ':function(_0xa020c0,_0x2c5541){return _0xa020c0!=_0x2c5541;},'mOjXn':function(_0x28aef1,_0x56e2cd){return _0x28aef1!=_0x56e2cd;},'DPHYe':function(_0x59edef,_0xb338cf){return _0x59edef>_0xb338cf;},'JuBuR':function(_0x43d7b7,_0x2a265f){return _0x43d7b7===_0x2a265f;},'wKWER':_0x3cf5f2(0x261),'Htzcm':_0x3cf5f2(0x1b3),'adjum':_0x3cf5f2(0x195),'Ljdoi':_0x3cf5f2(0x1b4),'dBYBW':function(_0x8336dc,_0x19cf8e){return _0x8336dc===_0x19cf8e;},'tQVRZ':_0x3cf5f2(0x1f9),'bWorp':_0x3cf5f2(0x271),'GHQFW':_0x3cf5f2(0x272),'tQmFe':_0x3cf5f2(0x173),'jFkiH':function(_0x337bd5,_0x1aa6be){return _0x337bd5===_0x1aa6be;},'fdFwU':function(_0x582e61,_0x244249){return _0x582e61===_0x244249;},'CiyWT':function(_0x2e2358,_0x6b273e){return _0x2e2358(_0x6b273e);},'GWgJR':_0x3cf5f2(0x26c),'pctdC':_0x3cf5f2(0x250),'wKoej':'Browserstack','UJhgi':_0x3cf5f2(0x144),'zBqVz':_0x3cf5f2(0x226),'wncfx':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','yaVQe':_0x3cf5f2(0x262),'kBben':function(_0x1fbeb6,_0x525e5f,_0xd2a52c,_0x383a93,_0x5e968a,_0x51f382,_0xc06865,_0x4aa47c,_0x1d3fca,_0x407cda,_0xae3852){return _0x1fbeb6(_0x525e5f,_0xd2a52c,_0x383a93,_0x5e968a,_0x51f382,_0xc06865,_0x4aa47c,_0x1d3fca,_0x407cda,_0xae3852);},'nfVhd':'Grid\x20spawned\x20on\x20the\x20cluster','CLFbX':_0x3cf5f2(0x196),'hmWio':function(_0xbae4b7,_0x58f6c,_0x1cf8d6,_0xdb56ef,_0xd227a7){return _0xbae4b7(_0x58f6c,_0x1cf8d6,_0xdb56ef,_0xd227a7);},'xYHkS':function(_0x141bf6,_0x411921,_0x3e5960){return _0x141bf6(_0x411921,_0x3e5960);},'dyOfh':_0x3cf5f2(0x1b6),'ghoLb':_0x3cf5f2(0x28a),'TemTo':_0x3cf5f2(0x175),'ydvLM':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','STzNz':function(_0x4425c8,_0x1dbe01,_0x3a451e,_0x5ca1c8,_0xd336b2,_0x3865ad,_0xd60d74,_0x3025d6){return _0x4425c8(_0x1dbe01,_0x3a451e,_0x5ca1c8,_0xd336b2,_0x3865ad,_0xd60d74,_0x3025d6);},'cRIcZ':_0x3cf5f2(0x20c),'GnMlN':function(_0x5503e0,_0x4dbc10){return _0x5503e0===_0x4dbc10;},'jDbxO':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','IaftU':function(_0x3e03df,_0x3fd6e3,_0x1be90a,_0x12a5d4,_0x55c591,_0x102572,_0x134ed0,_0x2e2f41){return _0x3e03df(_0x3fd6e3,_0x1be90a,_0x12a5d4,_0x55c591,_0x102572,_0x134ed0,_0x2e2f41);},'YTaAQ':_0x3cf5f2(0x201),'hrMGt':function(_0xab43e0,_0x181fae){return _0xab43e0!==_0x181fae;},'CMsrq':function(_0x15e313,_0x2f2f5c,_0x252a13,_0x1a3985,_0x4b67f7,_0x59d016,_0x38d2a0,_0x5d49f2){return _0x15e313(_0x2f2f5c,_0x252a13,_0x1a3985,_0x4b67f7,_0x59d016,_0x38d2a0,_0x5d49f2);},'FbtVg':'get-grid-url-non-200','TRWpD':function(_0x542bc8,_0x41f12c){return _0x542bc8===_0x41f12c;},'uMNyE':_0x3cf5f2(0x243),'aDHcI':function(_0x317ccd,_0x324792,_0x356c55,_0x2cbc6f,_0x318479,_0x18348b){return _0x317ccd(_0x324792,_0x356c55,_0x2cbc6f,_0x318479,_0x18348b);},'ZymfZ':function(_0x54b05c,_0x473978,_0x1cec3f,_0x3f4cce,_0x460ed3,_0x3dd2ba,_0x560ffc){return _0x54b05c(_0x473978,_0x1cec3f,_0x3f4cce,_0x460ed3,_0x3dd2ba,_0x560ffc);},'KEJMA':'grid-spawning-failed'};let _0x1703e6=![],_0x4c5256=![],_0x5b9d4f,_0x1576c9,_0x2554e5,_0x2a6352,_0x54c291,_0x5b83a5,_0x2a619e,_0xd86a6d,_0xfb6e5a,_0x385bd9,_0x1c8a70,_0x4e8e1c,_0x59a767,_0x4d1dc8,_0x4d0204=0x1,_0x5eda53=0xe;try{global_registry[_0x3cf5f2(0x159)]=_0x5c2694[_0x3cf5f2(0x147)](uuidv4),global_registry[_0x3cf5f2(0x290)]=![];!fs[_0x3cf5f2(0x267)](_0x5c2694[_0x3cf5f2(0x147)](getCredentialsPath))&&(_0x5c2694['CTxMI'](_0x5c2694[_0x3cf5f2(0x187)],_0x5c2694['FJEOY'])?_0x1a159c=!![]:(console['error'](_0x5c2694[_0x3cf5f2(0x1ff)]),await _0x5c2694[_0x3cf5f2(0x140)](sendInstrumentationEvent,_0x4db362,_0x5c2694['aWIhD'],messageTypes[_0x3cf5f2(0x178)],_0x5c2694['ULhyH'],null,_0x4db362),process[_0x3cf5f2(0x1cc)](0x1)));await _0x5c2694[_0x3cf5f2(0x140)](sendInstrumentationEvent,_0x4db362,_0x5c2694[_0x3cf5f2(0x260)],messageTypes[_0x3cf5f2(0x216)],null,null,_0x4db362);const _0x3eb0ee=JSON[_0x3cf5f2(0x270)](fs['readFileSync'](_0x5c2694[_0x3cf5f2(0x147)](getCredentialsPath)));global_registry[_0x3cf5f2(0x156)]=_0x3eb0ee['Browserstack']['username'],global_registry[_0x3cf5f2(0x258)]=_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x177)];const _0x2cc743=WS_ENDPOINT[_0x3cf5f2(0x244)](_0x5c2694[_0x3cf5f2(0x1c8)],_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x157)])[_0x3cf5f2(0x244)](_0x5c2694[_0x3cf5f2(0x269)],_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x177)]),_0x319dc5={};_0x319dc5['WebSocket']=ws,_0x319dc5[_0x3cf5f2(0x1c7)]=0x36ee80,_0x4e8e1c=new ReconnectingWebSocket(_0x2cc743,[],_0x319dc5),logger[_0x3cf5f2(0x297)](_0x5c2694[_0x3cf5f2(0x1cf)]),webSocketUtils['addListeners'](_0x4e8e1c,_0x4db362[_0x3cf5f2(0x15e)],_0x4db362[_0x3cf5f2(0x177)]);const _0x287f14=_0x4db362[_0x3cf5f2(0x224)]||DEFAULT_GRID_NAME;if(_0x4db362[_0x3cf5f2(0x190)]||_0x4db362[_0x3cf5f2(0x1a4)]||_0x4db362[_0x3cf5f2(0x1c2)]){if(_0x5c2694[_0x3cf5f2(0x186)](_0x5c2694[_0x3cf5f2(0x182)],_0x5c2694[_0x3cf5f2(0x291)])){!(_0x4db362[_0x3cf5f2(0x190)]&&_0x4db362[_0x3cf5f2(0x1a4)]&&_0x4db362['region'])&&(_0x5c2694[_0x3cf5f2(0x242)](_0x5c2694[_0x3cf5f2(0x233)],_0x5c2694[_0x3cf5f2(0x249)])?_0x1fc891[_0x3cf5f2(0x1c6)]('Found\x20VPC:\x20'+_0x47b617+'\x20'):(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x281)],await _0x5c2694[_0x3cf5f2(0x1cb)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694['aWIhD'],_0x5c2694[_0x3cf5f2(0x1b1)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)));![AWS,AZURE,GCP]['includes'](_0x4db362[_0x3cf5f2(0x1a4)][_0x3cf5f2(0x1eb)]())&&(_0x5c2694[_0x3cf5f2(0x186)](_0x5c2694[_0x3cf5f2(0x1da)],_0x5c2694[_0x3cf5f2(0x1dd)])?(_0x5b9d4f=_0x5c2694['hdNRf'],await _0x5c2694[_0x3cf5f2(0x1cb)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x16d)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):(_0x4efd33[_0x3cf5f2(0x1c2)]=_0xcb5c98,_0x238e76[_0x3cf5f2(0x1a4)]=_0x2de163,_0x4e638f[_0x3cf5f2(0x184)]=!![]));if(_0x4db362['privateGrid']&&_0x5c2694['jxkWm'](_0x4db362[_0x3cf5f2(0x167)]['toLowerCase'](),_0x5c2694[_0x3cf5f2(0x19a)])){if(_0x5c2694['vlgsl'](_0x5c2694['VVcaK'],_0x5c2694[_0x3cf5f2(0x155)])){const _0x44f759={};_0x44f759[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x21c)],_0x44f759[_0x3cf5f2(0x26b)]=_0x5c2694[_0x3cf5f2(0x207)];const _0x1270ff={};_0x1270ff[_0x3cf5f2(0x236)]=_0x5c2694['pHzXB'],_0x1270ff['type']=_0x5c2694[_0x3cf5f2(0x207)];const _0x4802f5={};_0x4802f5['description']=_0x5c2694['MWxCw'],_0x4802f5[_0x3cf5f2(0x26b)]=_0x5c2694[_0x3cf5f2(0x207)];const _0xde538c={};_0xde538c[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x16b)],_0xde538c['type']=_0x5c2694[_0x3cf5f2(0x207)];const _0x343849={};_0x343849[_0x3cf5f2(0x236)]=_0x5c2694['rymZV'],_0x343849['type']=_0x5c2694['DwoCV'];const _0x38f24a={};_0x38f24a[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x200)],_0x38f24a[_0x3cf5f2(0x26b)]=_0x5c2694[_0x3cf5f2(0x207)];const _0x2272de={};_0x2272de[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x162)],_0x2272de['type']=_0x5c2694[_0x3cf5f2(0x1f5)],_0x2272de[_0x3cf5f2(0x250)]=![];const _0x4327cb={};return _0x4327cb[_0x3cf5f2(0x1f4)]=_0x44f759,_0x4327cb[_0x3cf5f2(0x1e1)]=_0x1270ff,_0x4327cb[_0x3cf5f2(0x146)]=_0x4802f5,_0x4327cb['cloud-provider']=_0xde538c,_0x4327cb[_0x3cf5f2(0x1c2)]=_0x343849,_0x4327cb[_0x3cf5f2(0x1f8)]=_0x38f24a,_0x4327cb[_0x3cf5f2(0x1e9)]=_0x2272de,_0x274867[_0x3cf5f2(0x1c4)](_0x1f31f1[_0x3cf5f2(0x1bf)])[_0x3cf5f2(0x247)](_0xc72bdf)['options'](_0x4327cb)['help'](_0x5c2694[_0x3cf5f2(0x1be)])[_0x3cf5f2(0x158)];}else global_registry[_0x3cf5f2(0x290)]=!![];}global_registry[_0x3cf5f2(0x1a4)]=_0x4db362[_0x3cf5f2(0x1a4)],global_registry['clusterRegion']=_0x4db362['region'],global_registry[_0x3cf5f2(0x190)]=_0x4db362[_0x3cf5f2(0x190)];const _0x65cd7b=await _0x5c2694[_0x3cf5f2(0x140)](getCloudProviderObject,_0x4db362[_0x3cf5f2(0x1a4)],_0x4db362[_0x3cf5f2(0x190)],_0x287f14,_0x4e8e1c,webSocketUtils,_0x4db362),_0x1047b8=await _0x65cd7b[_0x3cf5f2(0x13e)]();if(!_0x1047b8){if(_0x5c2694[_0x3cf5f2(0x197)](_0x5c2694[_0x3cf5f2(0x1dc)],_0x5c2694[_0x3cf5f2(0x1dc)])){const _0x2f7a66={};_0x2f7a66[_0x3cf5f2(0x26b)]=_0x3be6f1['LOG'],_0x2f7a66['message']=_0x3cf5f2(0x149)+_0x5f14f7+_0x3cf5f2(0x1e5),_0x1eec6f['sendEventToBackend'](_0x2d8295,_0x2f7a66,_0x5c2694[_0x3cf5f2(0x17b)]),_0x152a97[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x149)+_0x5bd1ee+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x414f9c=!![];if(_0x5c2694[_0x3cf5f2(0x242)](_0x5b7b67,!![]))throw new _0x36a726('Cluster\x20'+_0x4a9cdb+_0x3cf5f2(0x28c));}else logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x1a0)+_0x4db362[_0x3cf5f2(0x190)]+_0x3cf5f2(0x26d)),_0x1703e6=![],_0x4c5256=!![];}else{if(_0x5c2694[_0x3cf5f2(0x242)](_0x5c2694['utNiK'],_0x5c2694[_0x3cf5f2(0x26e)])){const _0x50e992=_0x5c2694[_0x3cf5f2(0x164)][_0x3cf5f2(0x199)]('|');let _0x46305f=0x0;while(!![]){switch(_0x50e992[_0x46305f++]){case'0':_0x186ce1=_0x196aeb[_0x3cf5f2(0x14d)];continue;case'1':_0x2b6f95=_0x33d0b0[_0x3cf5f2(0x1b9)];continue;case'2':_0x49eaa7=null;continue;case'3':_0x5e7e67=_0x28c247[_0x3cf5f2(0x256)];continue;case'4':_0x5c2694[_0x3cf5f2(0x253)](_0x1e28ec,_0x485104,_0x8c2f10,_0x32b311,_0xb1b70d,_0x361678,_0x3dbc9f,_0x8f37f7,_0x51f1ae,_0x59bb5a,_0x5eb014,_0x5e937d);continue;case'5':_0x4592b4=_0x40e567[_0x3cf5f2(0x150)];continue;case'6':_0x3f84a6=_0x538113['hubVersion'];continue;case'7':_0x56d1e3='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x1b1b65;continue;case'8':_0x2afb93=_0xcd6d71['s3bucket'];continue;case'9':_0x37fb01[_0x3cf5f2(0x1c6)](_0x12d81c);continue;case'10':_0x5c2694[_0x3cf5f2(0x186)](_0x1f7e6f[_0x3cf5f2(0x167)],_0x121616)&&_0x1903f5[_0x3cf5f2(0x167)]&&(_0x27c676['isPrivateGrid']=!![]);continue;case'11':_0x6b3b3f=_0x27ff9e['minNodes'];continue;case'12':_0x51bfa9=null;continue;case'13':_0x2caf4f=null;continue;case'14':const _0xfe21be={};_0xfe21be['type']=_0x56ec7c['LOG'],_0xfe21be[_0x3cf5f2(0x1e6)]=_0x50eb3a,_0x59e264[_0x3cf5f2(0x204)](_0x5c8e3f,_0xfe21be);continue;}break;}}else _0x1703e6=!![];}_0x2554e5=_0x4db362[_0x3cf5f2(0x190)],_0x1576c9=_0x4db362[_0x3cf5f2(0x1a4)][_0x3cf5f2(0x1eb)](),_0x2a6352=_0x4db362['region'];}else{const _0x32c4b7=_0x5c2694['pEvHS']['split']('|');let _0x57d93d=0x0;while(!![]){switch(_0x32c4b7[_0x57d93d++]){case'0':const _0x497232={};_0x497232[_0x3cf5f2(0x26b)]=_0x37ba57[_0x3cf5f2(0x1a6)],_0x497232['message']=_0x59e239,_0x277c3b[_0x3cf5f2(0x204)](_0x4eb0c5,_0x497232);continue;case'1':_0x2884c5[_0x3cf5f2(0x1a4)]=_0x51808f;continue;case'2':_0x518dfc[_0x3cf5f2(0x1c6)](_0xfc2be3);continue;case'3':_0x23581e=_0x3cf5f2(0x1c5)+_0x28e981+_0x3cf5f2(0x1d0)+_0x2c7ec2+'\x27';continue;case'4':_0x46bc5f[_0x3cf5f2(0x150)]=_0x5760d9['browserVersion'];continue;case'5':const _0x370ba5={};_0x370ba5['type']=_0x5f3800['CLI_RUN_STARTED'],_0x370ba5[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x142)],_0x803d21['sendEventToBackend'](_0xe9f1f,_0x370ba5);continue;case'6':_0x282eac[_0x3cf5f2(0x28b)]=_0x378afb[_0x3cf5f2(0x28b)];continue;case'7':_0xff9c23['clusterRegion']=_0x330cbf;continue;case'8':_0x29939c[_0x3cf5f2(0x190)]=_0x1cd9ad;continue;}break;}}}else _0x4db362[_0x3cf5f2(0x14c)]&&(_0x5c2694[_0x3cf5f2(0x186)](_0x5c2694[_0x3cf5f2(0x234)],_0x5c2694[_0x3cf5f2(0x234)])?_0x2d0979[_0x3cf5f2(0x1d6)](_0x3cf5f2(0x25a)+_0x548582+'\x20\x0a'+_0x47f73e[_0x3cf5f2(0x1f1)](_0x4a969b[_0x3cf5f2(0x27d)])):global_registry[_0x3cf5f2(0x14c)]=_0x4db362['gridProfile']);global_registry[_0x3cf5f2(0x224)]=_0x4db362['gridName'];const _0x541231={'method':_0x5c2694[_0x3cf5f2(0x1c9)],'headers':_0x5c2694[_0x3cf5f2(0x151)](getAuthHeader,_0x3eb0ee['Browserstack']['username'],_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x177)]),'throwHttpErrors':![]},_0x40d535={};_0x40d535[_0x3cf5f2(0x224)]=_0x287f14;const _0x116403=_0x40d535;_0x4c5256&&(_0x5c2694[_0x3cf5f2(0x294)](_0x5c2694[_0x3cf5f2(0x13d)],_0x5c2694['VeqQS'])?_0x36da6c=null:(_0x116403[_0x3cf5f2(0x1c2)]=_0x2a6352,_0x116403[_0x3cf5f2(0x1a4)]=_0x1576c9,_0x116403[_0x3cf5f2(0x184)]=!![]));const _0xe0bb1c=_0x3cf5f2(0x1ef)+AG_API_URL+_0x3cf5f2(0x241),_0x17651a={'searchParams':_0x116403,'throwHttpErrors':![],..._0x541231},_0x4b9a3d=_0x17651a,_0x2ec37a=await _0x5c2694[_0x3cf5f2(0x27a)](got,_0xe0bb1c,_0x4b9a3d);(_0x5c2694['xNeVL'](_0x2ec37a,null)||_0x5c2694[_0x3cf5f2(0x14a)](_0x2ec37a,undefined))&&(_0x5c2694[_0x3cf5f2(0x275)](_0x5c2694['KfMmR'],_0x5c2694['lNKCK'])?(_0x4d02a5=_0x1fbd49['route53'],_0x1e67ad=_0x5c2694[_0x3cf5f2(0x222)]):(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1d2)],await _0x5c2694[_0x3cf5f2(0x1e7)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x191)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)));_0x5c2694[_0x3cf5f2(0x27e)](_0x2ec37a[_0x3cf5f2(0x20e)],0x191)&&(_0x5c2694['OMiol'](_0x5c2694[_0x3cf5f2(0x141)],_0x5c2694[_0x3cf5f2(0x141)])?(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x299)],await _0x5c2694['YrLVg'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694['aWIhD'],_0x5c2694['nGLfW'],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):_0x48f59a[_0x3cf5f2(0x290)]=!![]);_0x5c2694[_0x3cf5f2(0x18a)](_0x2ec37a[_0x3cf5f2(0x20e)],0xc8)&&(_0x5c2694[_0x3cf5f2(0x197)](_0x5c2694[_0x3cf5f2(0x1b5)],_0x5c2694[_0x3cf5f2(0x215)])?(_0x5b9d4f=_0x3cf5f2(0x22d)+JSON[_0x3cf5f2(0x1f1)](_0x2ec37a[_0x3cf5f2(0x17f)]),await _0x5c2694[_0x3cf5f2(0x1cb)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x1bd)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):_0x4d7fdd['gridProfile']=_0x5be1ae[_0x3cf5f2(0x14c)]);const _0x1fa48e=JSON[_0x3cf5f2(0x270)](_0x2ec37a[_0x3cf5f2(0x17f)]),_0x51313c={};_0x51313c['type']=WS_EVENTS[_0x3cf5f2(0x284)],_0x51313c[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x142)],webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x51313c);const _0x3b9364={};_0x3b9364[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x3b9364[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x24e)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x3b9364);if(_0x1fa48e[_0x3cf5f2(0x23b)]){if(_0x5c2694['TVler'](_0x5c2694[_0x3cf5f2(0x18d)],_0x5c2694[_0x3cf5f2(0x18d)]))throw new _0x58f213(_0x3cf5f2(0x149)+_0x3f1717+_0x3cf5f2(0x28c));else _0x5b9d4f=_0x3cf5f2(0x292)+_0x287f14+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x5c2694['WgPhK'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x1d8)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1);}const _0x202833=_0x1fa48e[_0x3cf5f2(0x1ca)];let _0x27753f=_0x202833[_0x1fa48e[_0x3cf5f2(0x15d)]];_0x4db362[_0x3cf5f2(0x14c)]&&(_0x5c2694['jxkWm'](_0x5c2694[_0x3cf5f2(0x239)],_0x5c2694[_0x3cf5f2(0x1f6)])?_0x14a727=null:_0x27753f=_0x202833[_0x4db362[_0x3cf5f2(0x14c)]]);if(_0x5c2694['jxkWm'](_0x1703e6,![])&&_0x5c2694[_0x3cf5f2(0x24a)](_0x4c5256,![])){if(_0x5c2694[_0x3cf5f2(0x1bb)](_0x5c2694['jiomA'],_0x5c2694['jiomA']))_0xc05355=_0x5c2694[_0x3cf5f2(0x154)];else{if(_0x5c2694[_0x3cf5f2(0x275)](_0x27753f,undefined)){if(_0x5c2694[_0x3cf5f2(0x23a)](_0x5c2694[_0x3cf5f2(0x1c3)],_0x5c2694[_0x3cf5f2(0x1f0)]))_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x19d)],await _0x5c2694['wQuJw'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x1ea)],_0x5c2694['VaTEe']),logger['error'](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1);else{const _0x352883={};_0x352883['type']=_0x10f932[_0x3cf5f2(0x1a6)],_0x352883[_0x3cf5f2(0x1e6)]=_0xf7b4e6,_0x231ced[_0x3cf5f2(0x204)](_0x21dcd3,_0x352883,_0x5c2694[_0x3cf5f2(0x23d)],!![]);}}global_registry[_0x3cf5f2(0x18c)]=_0x27753f['id'],_0x5b9d4f=_0x3cf5f2(0x1ac)+_0x287f14+_0x3cf5f2(0x246)+_0x27753f[_0x3cf5f2(0x193)]+_0x3cf5f2(0x238),logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x1a9280={};_0x1a9280[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x1a9280[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x1a9280),_0x1576c9=_0x27753f[_0x3cf5f2(0x1a4)],_0x2554e5=_0x27753f['clusterName'],_0x2a6352=_0x27753f['region'],_0x54c291=_0x27753f['concurrency'],_0x5b83a5=_0x27753f[_0x3cf5f2(0x256)],_0x2a619e=_0x27753f[_0x3cf5f2(0x282)],_0xd86a6d=_0x27753f[_0x3cf5f2(0x20f)],_0xfb6e5a=_0x27753f[_0x3cf5f2(0x28d)],_0x385bd9=_0x27753f[_0x3cf5f2(0x194)],_0x4d0204=_0x27753f[_0x3cf5f2(0x25b)],_0x5eda53=_0x27753f[_0x3cf5f2(0x1b9)],_0x59a767=_0x1fa48e[_0x3cf5f2(0x28b)],_0x4d1dc8=_0x1fa48e['browserVersion'],_0x2a619e&&_0x5c2694[_0x3cf5f2(0x1fd)](_0x2a619e[_0x3cf5f2(0x203)],0x0)&&(_0x5c2694[_0x3cf5f2(0x1f2)](_0x5c2694[_0x3cf5f2(0x25e)],_0x5c2694[_0x3cf5f2(0x25e)])?_0x2a619e=null:(_0x44aafa['info'](_0x3cf5f2(0x1a0)+_0x303088[_0x3cf5f2(0x190)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x4ef1e8=![],_0x3ca4c5=!![])),_0xfb6e5a&&_0x5c2694['QhAML'](_0xfb6e5a[_0x3cf5f2(0x203)],0x0)&&(_0x5c2694[_0x3cf5f2(0x23a)](_0x5c2694['OxkCy'],_0x5c2694[_0x3cf5f2(0x1a8)])?_0x20452a=_0x1f4427[_0xe2b616['gridProfile']]:_0xfb6e5a=null),_0x5c2694[_0x3cf5f2(0x294)](_0x27753f[_0x3cf5f2(0x167)],undefined)&&_0x27753f['privateGrid']&&(_0x5c2694[_0x3cf5f2(0x213)](_0x5c2694[_0x3cf5f2(0x1b0)],_0x5c2694[_0x3cf5f2(0x1e2)])?_0x14eb46['info'](_0x3cf5f2(0x1de)+_0x113eb2[_0x3cf5f2(0x1f1)](_0x1e8aaa)+'\x20'):global_registry['isPrivateGrid']=!![]),_0x5c2694[_0x3cf5f2(0x223)](updateGlobalRegistryWithConfig,_0x1576c9,_0x2554e5,_0x2a6352,_0x54c291,_0x5b83a5,_0x385bd9,_0x27753f,_0x59a767,_0x4d1dc8,_0x4d0204,_0x5eda53);}}else{if(_0x5c2694[_0x3cf5f2(0x28f)](_0x4c5256,!![])){if(_0x5c2694[_0x3cf5f2(0x23a)](_0x5c2694[_0x3cf5f2(0x202)],_0x5c2694[_0x3cf5f2(0x220)])){_0x5b9d4f='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x287f14,logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x5bef23={};_0x5bef23[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x5bef23[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x5bef23),_0x54c291=_0x27753f[_0x3cf5f2(0x14d)],_0x5b83a5=_0x27753f['instanceType'],_0x2a619e=null,_0xd86a6d=null,_0xfb6e5a=null,_0x385bd9=_0x27753f['s3bucket'],_0x4d0204=_0x27753f[_0x3cf5f2(0x25b)],_0x5eda53=_0x27753f[_0x3cf5f2(0x1b9)],_0x59a767=_0x1fa48e['hubVersion'],_0x4d1dc8=_0x1fa48e[_0x3cf5f2(0x150)],_0x5c2694[_0x3cf5f2(0x294)](_0x27753f['privateGrid'],undefined)&&_0x27753f['privateGrid']&&(_0x5c2694[_0x3cf5f2(0x275)](_0x5c2694[_0x3cf5f2(0x169)],_0x5c2694['IekCF'])?global_registry[_0x3cf5f2(0x290)]=!![]:_0x596058[_0x3cf5f2(0x290)]=!![]),_0x5c2694['rGXmo'](updateGlobalRegistryWithConfig,_0x1576c9,_0x2554e5,_0x2a6352,_0x54c291,_0x5b83a5,_0x385bd9,_0x27753f,_0x59a767,_0x4d1dc8,_0x4d0204,_0x5eda53);}else _0x26ca43['isPrivateGrid']=!![];}else{if(_0x5c2694['rEIPj'](_0x5c2694[_0x3cf5f2(0x286)],_0x5c2694['XkgeB']))_0x84c6db[_0x3cf5f2(0x283)]();else{const _0x3bc7d5=_0x5c2694[_0x3cf5f2(0x273)][_0x3cf5f2(0x199)]('|');let _0x45f558=0x0;while(!![]){switch(_0x3bc7d5[_0x45f558++]){case'0':const _0x4a7124={};_0x4a7124[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x4a7124[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x4a7124);continue;case'1':global_registry[_0x3cf5f2(0x1a4)]=_0x1576c9;continue;case'2':global_registry[_0x3cf5f2(0x190)]=_0x2554e5;continue;case'3':global_registry[_0x3cf5f2(0x28b)]=_0x1fa48e[_0x3cf5f2(0x28b)];continue;case'4':global_registry[_0x3cf5f2(0x150)]=_0x1fa48e['browserVersion'];continue;case'5':logger['info'](_0x5b9d4f);continue;case'6':_0x5b9d4f=_0x3cf5f2(0x1c5)+_0x287f14+_0x3cf5f2(0x1d0)+_0x2554e5+'\x27';continue;case'7':global_registry[_0x3cf5f2(0x22a)]=_0x2a6352;continue;case'8':const _0x2f2b01={};_0x2f2b01[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x284)],_0x2f2b01[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x142)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x2f2b01);continue;}break;}}}}const _0x49738d=await _0x5c2694[_0x3cf5f2(0x19b)](getCloudProviderObject,_0x1576c9,_0x2554e5,_0x287f14,_0x4e8e1c,webSocketUtils,_0x4db362);_0x5c2694[_0x3cf5f2(0x209)](_0x1576c9,AZURE)&&_0x49738d['sendResourceDataToHST']();let _0x45db9b;if(_0x5c2694[_0x3cf5f2(0x1a7)](_0x1703e6,![])){_0x5b9d4f='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x2a6352+').';const _0x97fd74={};_0x97fd74[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x97fd74[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x97fd74),logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x564039=await _0x49738d['isClusterPresent']();if(_0x564039){const _0x1d7365={};_0x1d7365[_0x3cf5f2(0x26b)]=WS_EVENTS['LOG'],_0x1d7365['message']=_0x3cf5f2(0x149)+_0x2554e5+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x1d7365,_0x5c2694['yVled']),logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x149)+_0x2554e5+_0x3cf5f2(0x1e5)),_0x1703e6=!![];if(_0x5c2694[_0x3cf5f2(0x15b)](_0x4c5256,!![]))throw new Error(_0x3cf5f2(0x149)+_0x2554e5+_0x3cf5f2(0x28c));}else{const _0x414a52={};_0x414a52[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x414a52[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x168)],webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x414a52),logger['info'](_0x5c2694[_0x3cf5f2(0x168)]);const _0x28431c=_0x5c2694[_0x3cf5f2(0x17d)](_0x2a619e,null)&&_0x5c2694[_0x3cf5f2(0x294)](_0x2a619e,undefined),_0x4e8cec=_0x5c2694[_0x3cf5f2(0x15f)](_0xfb6e5a,null)&&_0x5c2694[_0x3cf5f2(0x294)](_0xfb6e5a,undefined)&&_0x5c2694[_0x3cf5f2(0x214)](_0xfb6e5a[_0x3cf5f2(0x203)],0x0);if(_0x28431c){_0x5c2694[_0x3cf5f2(0x276)](_0x4e8cec,![])&&(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1e3)],await _0x5c2694[_0x3cf5f2(0x1e7)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x248)],_0x5c2694[_0x3cf5f2(0x23d)]),logger['error'](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));const _0x35ff39=await _0x49738d[_0x3cf5f2(0x148)](_0x2a619e);_0x5c2694['XnGbx'](_0x35ff39,![])?(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1fb)],await _0x5c2694[_0x3cf5f2(0x1e7)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x27f)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x198)+_0x2a619e+'\x20');const _0x40a845=await _0x49738d[_0x3cf5f2(0x28e)](_0xfb6e5a,_0x2a619e);_0x5c2694['dBYBW'](_0x40a845[0x0],![])?(_0x5b9d4f=_0x3cf5f2(0x227)+JSON[_0x3cf5f2(0x1f1)](_0x40a845[0x1])+_0x3cf5f2(0x188)+_0x2a619e+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x5c2694[_0x3cf5f2(0x174)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694['tQVRZ'],_0x5c2694['VaTEe']),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x1de)+JSON['stringify'](_0xfb6e5a)+'\x20'),await _0x49738d[_0x3cf5f2(0x279)](_0x2a619e,_0xfb6e5a);}else{const _0x5ed4bb=_0x5c2694['bWorp'][_0x3cf5f2(0x199)]('|');let _0x1630ef=0x0;while(!![]){switch(_0x5ed4bb[_0x1630ef++]){case'0':logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x23e)]);continue;case'1':const _0x1d0d5a={};_0x1d0d5a['type']=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x1d0d5a[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x228)],webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x1d0d5a);continue;case'2':const _0x469cc4={};_0x469cc4[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x469cc4[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x23e)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x469cc4);continue;case'3':await _0x49738d[_0x3cf5f2(0x279)](_0x2a619e,_0xfb6e5a);continue;case'4':logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x228)]);continue;}break;}}}}_0x1703e6&&_0x5c2694[_0x3cf5f2(0x1d9)](_0x1576c9,AZURE)&&(await _0x49738d[_0x3cf5f2(0x237)](),await _0x49738d[_0x3cf5f2(0x161)]());const [_0x42a698,_0x29ec46,_0x115218,_0xac9424,_0x2828c2,_0xcf5749]=await _0x5c2694[_0x3cf5f2(0x27a)](createK8sClient,_0x49738d,_0x4db362[_0x3cf5f2(0x26a)]);_0x5c2694[_0x3cf5f2(0x218)](_0x1703e6,![])&&_0x5c2694[_0x3cf5f2(0x276)](_0x1576c9,AWS)&&(global_registry[_0x3cf5f2(0x280)]=!![],_0x45db9b=await _0x49738d[_0x3cf5f2(0x20d)](_0x42a698,_0x4db362));try{_0x1c8a70=_0x5c2694[_0x3cf5f2(0x170)](kebabCase,_0x287f14),logger[_0x3cf5f2(0x1c6)](_0x5c2694['GWgJR']);const _0x20188f={};_0x20188f[_0x3cf5f2(0x26b)]=WS_EVENTS['LOG'],_0x20188f['message']=_0x5c2694[_0x3cf5f2(0x20a)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x20188f);if(_0x5c2694[_0x3cf5f2(0x1bb)](_0x1c8a70,_0x5c2694[_0x3cf5f2(0x145)])){const _0x420290={};_0x420290[_0x3cf5f2(0x1d1)]=_0x5c2694[_0x3cf5f2(0x179)],_0x420290[_0x3cf5f2(0x24f)]=_0x5c2694[_0x3cf5f2(0x179)];const _0x2b44e7={};_0x2b44e7[_0x3cf5f2(0x193)]=_0x1c8a70,_0x2b44e7[_0x3cf5f2(0x20b)]=_0x420290;const _0xc63728={};_0xc63728[_0x3cf5f2(0x15a)]=_0x2b44e7;const _0x40e2ac=_0xc63728,_0x1dec13={};_0x1dec13[_0x3cf5f2(0x17f)]=_0x40e2ac,await _0x42a698[_0x3cf5f2(0x21b)](_0x1dec13),logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x268)]);}const _0xf85c7d={};_0xf85c7d[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0xf85c7d[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x23f)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0xf85c7d);const _0x2684bf={};_0x2684bf[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x2684bf[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x27c)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x2684bf),logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x1df)]);let _0x17c589={};_0x5c2694[_0x3cf5f2(0x1d3)](_0x1576c9,AZURE)&&(_0x17c589={'clientId':await _0x49738d[_0x3cf5f2(0x212)](_0x3cf5f2(0x266)+_0x2554e5)});await _0x5c2694[_0x3cf5f2(0x289)](addGridComponents,_0x42a698,_0x29ec46,_0x115218,_0xac9424,_0x1c8a70,_0x2554e5,_0x45db9b,_0x2828c2,_0xcf5749,_0x17c589),_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x14b)],logger['info'](_0x5b9d4f);const _0x5167e4={};_0x5167e4[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x5167e4[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x5167e4),_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x16c)],logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x2418f4={};_0x2418f4[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x2418f4['message']=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x2418f4),await _0x5c2694[_0x3cf5f2(0x152)](waitForDeployment,_0x29ec46,_0x1c8a70,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x14f268=await _0x5c2694[_0x3cf5f2(0x265)](getNamespaceUID,_0x42a698,_0x1c8a70),_0x12e336=global_registry[_0x3cf5f2(0x290)]?_0x5c2694['dyOfh']:_0x5c2694[_0x3cf5f2(0x1f3)],_0xfa896f={};_0xfa896f[_0x3cf5f2(0x193)]=_0x12e336,_0xfa896f[_0x3cf5f2(0x255)]=_0x5c2694['TemTo'];const _0x40aa35=await _0x42a698[_0x3cf5f2(0x1fc)](_0xfa896f);let _0x2cb28d=_0x49738d[_0x3cf5f2(0x14e)](_0x40aa35)+'/'+_0x1c8a70,_0x5c4f09=_0x5c2694[_0x3cf5f2(0x154)];try{const _0x1b5747=_0x3cf5f2(0x1ef)+AG_API_URL+_0x3cf5f2(0x1ae)+_0x14f268,_0x4db900=await _0x5c2694[_0x3cf5f2(0x27a)](got,_0x1b5747,_0x541231);(_0x5c2694['gFdyc'](_0x4db900,null)||_0x5c2694[_0x3cf5f2(0x1f2)](_0x4db900,undefined))&&(_0x5b9d4f=_0x5c2694['ydvLM'],await _0x5c2694[_0x3cf5f2(0x22e)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694['cRIcZ'],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));_0x5c2694[_0x3cf5f2(0x235)](_0x4db900['statusCode'],0x191)&&(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1c0)],await _0x5c2694['IaftU'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x263)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));_0x5c2694[_0x3cf5f2(0x21a)](_0x4db900[_0x3cf5f2(0x20e)],0xc8)&&(_0x5b9d4f=_0x3cf5f2(0x27b)+JSON[_0x3cf5f2(0x1f1)](_0x4db900),await _0x5c2694[_0x3cf5f2(0x1d5)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x24c)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));const _0x1a405d=JSON[_0x3cf5f2(0x270)](_0x4db900[_0x3cf5f2(0x17f)]);_0x1a405d[_0x3cf5f2(0x171)]&&(_0x2cb28d=_0x1a405d['route53'],_0x5c4f09=_0x5c2694[_0x3cf5f2(0x222)]),global_registry['isPrivateGrid']&&(_0x5c4f09=_0x5c2694[_0x3cf5f2(0x154)]);}catch(_0x1ae188){}_0x5b9d4f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x2cb28d+'\x20',logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x562efe={};_0x562efe[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x562efe[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x562efe),_0x5b9d4f=_0x3cf5f2(0x166)+_0x5c4f09+_0x3cf5f2(0x1d4)+_0x2cb28d+_0x3cf5f2(0x17a),logger['info'](_0x5b9d4f);const _0x3e41ea={};_0x3e41ea[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x3e41ea[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x3e41ea);const _0x27c8a3={};_0x27c8a3[_0x3cf5f2(0x26b)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x27c8a3[_0x3cf5f2(0x1e6)]='CLI\x20run\x20finished:\x20'+_0x2cb28d,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x27c8a3),await webSocketUtils[_0x3cf5f2(0x17e)](0x7d0);}catch(_0x532f25){logger[_0x3cf5f2(0x1d6)](_0x3cf5f2(0x232)+_0x532f25+'\x20\x0a'+JSON[_0x3cf5f2(0x1f1)](_0x532f25[_0x3cf5f2(0x27d)]));if(_0x5c2694[_0x3cf5f2(0x17c)](_0x1703e6,![]))try{logger[_0x3cf5f2(0x1c6)](_0x5c2694['uMNyE']),await _0x5c2694[_0x3cf5f2(0x1bc)](removeGridComponents,_0x42a698,_0x29ec46,_0x115218,_0xac9424,_0x1c8a70),await _0x49738d[_0x3cf5f2(0x22f)](_0x42a698,global_registry[_0x3cf5f2(0x22a)]);}catch(_0xe3cd11){logger['error'](_0x3cf5f2(0x25a)+_0xe3cd11+'\x20\x0a'+JSON[_0x3cf5f2(0x1f1)](_0xe3cd11[_0x3cf5f2(0x27d)]));}throw _0x532f25;}}catch(_0x2843f3){const _0x3119f5='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x2843f3+'\x20\x0a'+JSON['stringify'](_0x2843f3[_0x3cf5f2(0x27d)]);if(_0x4e8e1c){const _0x96903a={};_0x96903a[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x96903a[_0x3cf5f2(0x1e6)]=_0x3119f5,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x96903a,_0x5c2694[_0x3cf5f2(0x23d)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x493a62={};_0x493a62[_0x3cf5f2(0x1d6)]=_0x3119f5,await _0x5c2694[_0x3cf5f2(0x143)](sendInstrumentationEvent,_0x4db362,_0x5c2694[_0x3cf5f2(0x260)],messageTypes['ERROR'],_0x5c2694['KEJMA'],_0x493a62,_0x4db362),logger[_0x3cf5f2(0x1d6)](_0x3119f5);}process[_0x3cf5f2(0x1cc)](0x0);};
1
+ function a9_0x2fce(){const _0x512a59=['onNtc','Cluster:\x20','esvGD','dNbDg','deleteCluster','ZtvqJ','\x20are\x20not\x20present\x20in\x20VPC:\x20','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','stringify','Create\x20a\x20private/public\x20grid.','Grid\x20profile\x20fetched\x20from\x20backend','grid-spawning-failed','eacnt','createdBy','handler','XxfMT','BzZzj','://','oPgXz','maxNodes','CLI_RUN_FINISHED','hYGJc','KYVfi','name','VTfzE','minNodes','1580nYZPAo','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','cQSOv','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','DzBqj','eMsgI','lzZjW','Skip\x20insecure\x20cert\x20verification.','4|1|7|10|2|9|3|12|11|6|8|0|14|5|13','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','create-grid-checks-invalid-profile','private-ingress-nginx-controller','Tgyqr','UcEiA','lwrwt','xRtYC','createOtherResources','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','rmUiA','eFKBr','../../config/constants','body','TJDMm','eOosR','rZZUW','usage','PixQP','statusCode','FQTBe','MWEWI','yPzOd','Adding\x20Websocket\x20listeners','subnets','../../config/logger','updateClusterAlreadyPresent','CJUOg','epilogue','PQJpt','Ggotj','help','builder','toLowerCase','tEjMR','managedBy','xTPtv','debug','ttfaj','ZfTWh','CLI_RUN_STARTED','boolean','readNamespacedService','defaultGridProfile','ldWwB','9roXcgV','clusterRegion','newCluster','hubVersion','vVtPm','create-grid-called','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20grid\x20on\x20to\x20the\x20cluster','create-grid-checks-null-response','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','requestId','length','ETAuP','/wd/hub','privateGrid','parse','https','private-grid','tRRZp','hzrnn','info','s3bucket','create-grid-checks-auth-failed','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','xxntn','get-grid-url-null-response','IlmXj','Rxtgc','annotations','ORzVs','metadata','yfMbW','Found\x20Subnets:\x20','KUTwv','Elugl','includes','setupAutoscaler','UWqnY','BpYwI','vxTQj','DfaJL','skip-tls-cert-verify','sikHW','<PasswordPlaceholder>','gXtTE','4|7|8|5|1|6|0|2|3','bstackAccesskey','nsmXB','user','delay','duFlx','route53','GZBVB','error','browserVersion','upQaT','cluster-name','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','gridProfiles','dogxZ','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','grid-name','cloud-provider','bZjTK','LOG','prespawned-cluster-args-not-passed','desc','AZkPb','uIHMp','Udqch','jzFwA','HIWdO','qNSHz','PEEel','DlFxi','createNamespace','exit','JBhPR','string','KruAT','wIhmn','stack','EdCzr','default','existsSync','qfWNl','\x27\x20grid\x20profile','WhOaW','eSnXl','Cluster\x20','ZaWCJ','pre-spawned-invalid-subnets','YjdZo','CLI\x20run\x20finished:\x20','508752pKUQkG','QpqpD','11292qJUdYH','NJZqc','PidPu','XueFU','description','GiAKx','GBpjb','cWDuf','non-aws-azure-cluster','Create\x20a\x20new\x20Automation\x20grid.','connectionTimeout','xnOuU','GqQlI','cDldm','<UsernamePlaceholder>','\x20using\x20\x27','GVndz','ingress-nginx-controller','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WebSocket','YJrnq','TlRzG','replace','Sngeo','NWisJ','Browserstack','TunrD','SbNpA','warn','region','init-not-called','VERnk','dDyPP','qdsiN','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','pHRMB','ZJncZ','AVAGt','pre-spawned-subnets-not-selected','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','bTonq','Clqiz','../../cloudproviders/utils','XWajU','YPPUF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tHUKd','vpc','EDEGn','sendResourceDataToHST','gridProfile','../../utils/createk8sClient','Mqncu','MZqcD','username','isVPCPresent','cXCdT','instanceType','3XFbVvK','VCYlQ','jKJeB','moNAN','1288432jeWEaf','FnTsX','Creating\x20namespace','\x20in\x20existing\x20cluster\x20\x27','OKYGl','Found\x20VPC:\x20','dKSpU','ERROR','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','clusterName','rAsij','/packages/cli/create-grid-checks','ibQCN','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','gridProfileId','lJwdC','biQnO','hWTtb','grid','command','lPGOf','sfhcP','GWVMa','grid-profile','../../utils/utilityMethods','QcGHe','akfzW','QnnBI','isPrivateGrid','tDGgS','KhgIm','Spawning\x20the\x20grid\x20','addListeners','BqCfT','UUIiw','GET','esWnO','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FQcnc','Spawning\x20Grid\x20on\x20the\x20Cluster','http','Cluster\x20created\x20successfully','621512nLPxKU','get-grid-url-non-200','type','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','vlttW','AOJit','MyQtL','Lzols','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','951710vVDkgr','cUhtX','EFSAI','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','29513nerCpw','VVtqT','854GbsZtQ','cTNqp','got','bHlRv','gRdlp','xoDUR','sendEventToBackend','xdoiQ','../../utils/instrumentationUtils','concurrency','argv','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','XOoOw','iLRpn','bliRI','zhdHu','gkZrM','DmSVB','xuIAz','SJzUs','2|1|0|4|8|5|3|7|6','Deleting\x20the\x20CloudFormation\x20Stacks','setupNewCluster','create-grid-checks-non-200','message','skipTlsCertVerify','GrtZt','lZvXD','FnwlC','YGJir','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','bstackUsername','create-grid-checks-grid-already-exists','options','getResourceClientId','cloudProvider','toTsZ','UlROk','isClusterPresent','Grid\x20can\x20be\x20accessed\x20at:\x20','split','https://','txpEJ','286507ZalVxN','GSJvU','create','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','get-grid-url-auth-failed','password','gridName'];a9_0x2fce=function(){return _0x512a59;};return a9_0x2fce();}function a9_0x22dd(_0x5929fd,_0x4745d7){const _0x2fcefa=a9_0x2fce();return a9_0x22dd=function(_0x22dda8,_0x23fc3f){_0x22dda8=_0x22dda8-0x16c;let _0xfa30d8=_0x2fcefa[_0x22dda8];return _0xfa30d8;},a9_0x22dd(_0x5929fd,_0x4745d7);}const a9_0x5c7c3b=a9_0x22dd;(function(_0x14ea18,_0x19309a){const _0x39444e=a9_0x22dd,_0x2710ea=_0x14ea18();while(!![]){try{const _0x5dc3ad=parseInt(_0x39444e(0x285))/0x1+-parseInt(_0x39444e(0x1df))/0x2+-parseInt(_0x39444e(0x21b))/0x3*(parseInt(_0x39444e(0x21f))/0x4)+parseInt(_0x39444e(0x252))/0x5+-parseInt(_0x39444e(0x1e1))/0x6*(parseInt(_0x39444e(0x259))/0x7)+parseInt(_0x39444e(0x249))/0x8*(parseInt(_0x39444e(0x181))/0x9)+parseInt(_0x39444e(0x2a8))/0xa*(parseInt(_0x39444e(0x257))/0xb);if(_0x5dc3ad===_0x19309a)break;else _0x2710ea['push'](_0x2710ea['shift']());}catch(_0x536074){_0x2710ea['push'](_0x2710ea['shift']());}}}(a9_0x2fce,0x2a14c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x5c7c3b(0x25b)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x5c7c3b(0x16d)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5c7c3b(0x237)),{getCloudProviderObject}=require(a9_0x5c7c3b(0x20b)),{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_0x5c7c3b(0x2bd)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x5c7c3b(0x214)),{sendInstrumentationEvent}=require(a9_0x5c7c3b(0x261));exports[a9_0x5c7c3b(0x232)]=a9_0x5c7c3b(0x231),exports[a9_0x5c7c3b(0x1c3)]=a9_0x5c7c3b(0x1ea),exports[a9_0x5c7c3b(0x174)]=function(_0x17b3b1){const _0x57878a=a9_0x5c7c3b,_0x433d30={};_0x433d30['rAsij']='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x433d30[_0x57878a(0x23a)]=_0x57878a(0x1cf),_0x433d30[_0x57878a(0x18d)]=_0x57878a(0x1f3),_0x433d30[_0x57878a(0x1c4)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x433d30[_0x57878a(0x267)]=_0x57878a(0x2ac),_0x433d30['qNSHz']=_0x57878a(0x2ab),_0x433d30[_0x57878a(0x22e)]=_0x57878a(0x297),_0x433d30[_0x57878a(0x26c)]=_0x57878a(0x2b0),_0x433d30[_0x57878a(0x2aa)]=_0x57878a(0x17d),_0x433d30['YUjrM']=_0x57878a(0x173);const _0x2d6a0c=_0x433d30,_0x314094={};_0x314094['description']=_0x2d6a0c[_0x57878a(0x229)],_0x314094[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x23a)];const _0x1d0f77={};_0x1d0f77['description']=_0x2d6a0c[_0x57878a(0x18d)],_0x1d0f77[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x23a)];const _0x4d5e77={};_0x4d5e77[_0x57878a(0x1e5)]=_0x2d6a0c[_0x57878a(0x1c4)],_0x4d5e77[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x23a)];const _0x39ca2c={};_0x39ca2c[_0x57878a(0x1e5)]=_0x2d6a0c[_0x57878a(0x267)],_0x39ca2c[_0x57878a(0x24b)]=_0x2d6a0c['QnnBI'];const _0x5024b7={};_0x5024b7[_0x57878a(0x1e5)]=_0x2d6a0c[_0x57878a(0x1c9)],_0x5024b7['type']=_0x2d6a0c[_0x57878a(0x23a)];const _0x10c370={};_0x10c370[_0x57878a(0x1e5)]=_0x2d6a0c['lJwdC'],_0x10c370[_0x57878a(0x24b)]=_0x2d6a0c['QnnBI'];const _0x1dc88f={};_0x1dc88f['description']=_0x2d6a0c[_0x57878a(0x26c)],_0x1dc88f[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x2aa)],_0x1dc88f[_0x57878a(0x1d4)]=![];const _0x33fef8={};return _0x33fef8[_0x57878a(0x1be)]=_0x314094,_0x33fef8[_0x57878a(0x236)]=_0x1d0f77,_0x33fef8[_0x57878a(0x1b9)]=_0x4d5e77,_0x33fef8[_0x57878a(0x1bf)]=_0x39ca2c,_0x33fef8[_0x57878a(0x1fe)]=_0x5024b7,_0x33fef8[_0x57878a(0x192)]=_0x10c370,_0x33fef8['skip-tls-cert-verify']=_0x1dc88f,_0x17b3b1['usage'](HELP_HEADER_MESSAGE['create'])[_0x57878a(0x170)](HELP_FOOTER_MESSAGE)[_0x57878a(0x27b)](_0x33fef8)[_0x57878a(0x173)](_0x2d6a0c['YUjrM'])[_0x57878a(0x263)];},exports[a9_0x5c7c3b(0x29c)]=async function(_0x505c6e){const _0x226fcf=a9_0x5c7c3b,_0x237672={'Rmxly':_0x226fcf(0x1fd),'TJDMm':function(_0x54d80c,_0x4000f8){return _0x54d80c===_0x4000f8;},'QpqpD':_0x226fcf(0x247),'VTfzE':_0x226fcf(0x288),'FQcnc':_0x226fcf(0x1cf),'ttfaj':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','UWqnY':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','XxfMT':_0x226fcf(0x2ac),'GWVMa':_0x226fcf(0x2ab),'HJmJe':_0x226fcf(0x297),'bTonq':_0x226fcf(0x2b0),'GfaKm':_0x226fcf(0x17d),'YJrnq':'help','zhdHu':_0x226fcf(0x26d),'eOosR':'CLI\x20run\x20started','bZjTK':_0x226fcf(0x1b6),'dKSpU':_0x226fcf(0x2b1),'UcEiA':function(_0x22d544,_0x31e4e0){return _0x22d544!==_0x31e4e0;},'yfMbW':function(_0x31b891,_0x466725,_0x2e86fc,_0x20c1e1,_0x1bf341,_0x3105a4,_0x1af790,_0x539fdb,_0x14efe9,_0x5ae476,_0x4495a9,_0x4c4a9c){return _0x31b891(_0x466725,_0x2e86fc,_0x20c1e1,_0x1bf341,_0x3105a4,_0x1af790,_0x539fdb,_0x14efe9,_0x5ae476,_0x4495a9,_0x4c4a9c);},'GVndz':_0x226fcf(0x191),'dogxZ':function(_0xc6682d){return _0xc6682d();},'xRtYC':_0x226fcf(0x21c),'oPgXz':_0x226fcf(0x20a),'YdIrs':_0x226fcf(0x20e),'XueFU':function(_0x36e0e4,_0x3a0cb5,_0x15c640,_0xd58ec3,_0x51b89b,_0x3c20e1,_0x2a3195){return _0x36e0e4(_0x3a0cb5,_0x15c640,_0xd58ec3,_0x51b89b,_0x3c20e1,_0x2a3195);},'wIhmn':_0x226fcf(0x186),'uzaWL':_0x226fcf(0x1ff),'UlROk':function(_0x1cb716,_0x1d4b63,_0x45464e,_0x57d5bd,_0x3e1cfd,_0x496bc0,_0x2ee06c){return _0x1cb716(_0x1d4b63,_0x45464e,_0x57d5bd,_0x3e1cfd,_0x496bc0,_0x2ee06c);},'cDldm':_0x226fcf(0x1ef),'ZfTWh':_0x226fcf(0x1ac),'AOJit':_0x226fcf(0x2c8),'cUhtX':function(_0x294854,_0x3fd90e){return _0x294854!==_0x3fd90e;},'GsuPI':'uaVxT','AVAGt':_0x226fcf(0x185),'duFlx':'OHiKr','PixQP':_0x226fcf(0x1ba),'PidPu':function(_0x299505,_0x146e72,_0x2bfcc9,_0x3e316a,_0x285184,_0x13fd30,_0x3f6d0e,_0x37e882){return _0x299505(_0x146e72,_0x2bfcc9,_0x3e316a,_0x285184,_0x13fd30,_0x3f6d0e,_0x37e882);},'Wufar':_0x226fcf(0x1c2),'dDyPP':_0x226fcf(0x286),'cRVPN':_0x226fcf(0x244),'hYGJc':function(_0x2cc33f,_0x32b32b,_0x45916b,_0x5b4ac2,_0x4386f2,_0x5915cf,_0x449397,_0x5e26c4){return _0x2cc33f(_0x32b32b,_0x45916b,_0x5b4ac2,_0x4386f2,_0x5915cf,_0x449397,_0x5e26c4);},'oVgau':_0x226fcf(0x1e9),'JBhPR':function(_0x144b43,_0x3d55e1){return _0x144b43===_0x3d55e1;},'TlRzG':'true','iLRpn':_0x226fcf(0x238),'xTPtv':function(_0x2465f6,_0x2d62c0,_0x168c5b,_0x535a0f,_0x10cb50,_0x4aff3c,_0x19b44e){return _0x2465f6(_0x2d62c0,_0x168c5b,_0x535a0f,_0x10cb50,_0x4aff3c,_0x19b44e);},'GiAKx':function(_0x1c2583,_0x238723){return _0x1c2583!==_0x238723;},'tDGgS':'dAVZx','lzZjW':function(_0x2de906,_0x1a09db){return _0x2de906===_0x1a09db;},'Elugl':_0x226fcf(0x24f),'eacnt':_0x226fcf(0x172),'cTNqp':_0x226fcf(0x242),'cXCdT':function(_0x16ad78,_0x34e8ef,_0x549271){return _0x16ad78(_0x34e8ef,_0x549271);},'UUIiw':function(_0x14b43,_0x592a97){return _0x14b43===_0x592a97;},'KUTwv':_0x226fcf(0x2c1),'XWajU':function(_0x42a4b3,_0x172576){return _0x42a4b3===_0x172576;},'eSnXl':function(_0x7b3f01,_0x436f51){return _0x7b3f01!==_0x436f51;},'Sngeo':_0x226fcf(0x22b),'hzrnn':_0x226fcf(0x204),'XOoOw':_0x226fcf(0x198),'FnTsX':_0x226fcf(0x189),'GZBVB':function(_0xaf6f5f,_0x3bd7bf){return _0xaf6f5f!==_0x3bd7bf;},'MZqcD':_0x226fcf(0x1b0),'DmSVB':_0x226fcf(0x273),'xdoiQ':_0x226fcf(0x208),'ospKo':function(_0xa8e8b3,_0x59f314,_0x44fc46,_0x272d6b,_0x38e731,_0x2f26e2,_0x2084a0,_0x2edad3){return _0xa8e8b3(_0x59f314,_0x44fc46,_0x272d6b,_0x38e731,_0x2f26e2,_0x2084a0,_0x2edad3);},'gXtTE':_0x226fcf(0x197),'xoDUR':function(_0x132e76,_0xdc5f4e){return _0x132e76!==_0xdc5f4e;},'gkZrM':_0x226fcf(0x26b),'BzZzj':_0x226fcf(0x1c6),'BpYwI':function(_0x301ad1,_0x457a4a,_0x119b6c,_0x58c631,_0x4a3bf7,_0x41719a,_0x29d795,_0x5c210a){return _0x301ad1(_0x457a4a,_0x119b6c,_0x58c631,_0x4a3bf7,_0x41719a,_0x29d795,_0x5c210a);},'jszQV':_0x226fcf(0x270),'GqQlI':_0x226fcf(0x298),'xnOuU':function(_0x5b2e7e,_0x811308){return _0x5b2e7e===_0x811308;},'VERnk':_0x226fcf(0x25c),'qfWNl':_0x226fcf(0x27a),'wbnCW':function(_0x5c922b,_0x464d99){return _0x5c922b!==_0x464d99;},'dNbDg':_0x226fcf(0x1ca),'DlFxi':_0x226fcf(0x234),'uIHMp':function(_0x4ad980,_0x5e51b4){return _0x4ad980===_0x5e51b4;},'Mqncu':_0x226fcf(0x1b8),'HIWdO':_0x226fcf(0x2ad),'vxTQj':function(_0x518bb6,_0x37a81d){return _0x518bb6===_0x37a81d;},'gRdlp':function(_0x372142,_0x521392){return _0x372142!==_0x521392;},'jzFwA':'NQQyB','VVtqT':_0x226fcf(0x294),'mPpEs':function(_0x3a05a9,_0x3f4b98,_0x3054a6,_0x4ae076,_0x36f3bf,_0x5d2d47,_0x1d4a85,_0x387fad){return _0x3a05a9(_0x3f4b98,_0x3054a6,_0x4ae076,_0x36f3bf,_0x5d2d47,_0x1d4a85,_0x387fad);},'KXlrV':_0x226fcf(0x2b3),'KhgIm':function(_0x29a727,_0x36c795){return _0x29a727!==_0x36c795;},'TunrD':_0x226fcf(0x1d8),'EFSAI':'DXUOn','DfaJL':function(_0x4a50d2,_0x3ef020){return _0x4a50d2!==_0x3ef020;},'GBpjb':_0x226fcf(0x2bb),'esWnO':function(_0x1e2c7e,_0x8dcd0f,_0x4a1819,_0x3fc5f5,_0x43058b,_0x4c5a66,_0x3da1cc,_0x3a7e00,_0x16d0e2,_0x18815c,_0x164409,_0x34b38b){return _0x1e2c7e(_0x8dcd0f,_0x4a1819,_0x3fc5f5,_0x43058b,_0x4c5a66,_0x3da1cc,_0x3a7e00,_0x16d0e2,_0x18815c,_0x164409,_0x34b38b);},'jKJeB':function(_0x296700,_0xb49c59){return _0x296700===_0xb49c59;},'ZaWCJ':function(_0x22064c,_0x4d0b40){return _0x22064c===_0x4d0b40;},'MWEWI':_0x226fcf(0x2a4),'FQTBe':function(_0x13aeae,_0xf18592){return _0x13aeae===_0xf18592;},'lNGGf':_0x226fcf(0x1dd),'YYALA':_0x226fcf(0x27e),'sMsfH':function(_0x5a7d52,_0x3743ab){return _0x5a7d52===_0x3743ab;},'CJUOg':_0x226fcf(0x275),'esvGD':_0x226fcf(0x1ae),'qdsiN':function(_0x17a641,_0x572741,_0x2051b7,_0x5a60a0,_0x8fb7cc,_0x1dac24,_0x36ffa9){return _0x17a641(_0x572741,_0x2051b7,_0x5a60a0,_0x8fb7cc,_0x1dac24,_0x36ffa9);},'Tgyqr':function(_0x3209e1,_0xec5c40){return _0x3209e1!==_0xec5c40;},'NWisJ':function(_0x53aa34,_0xd580bf){return _0x53aa34===_0xd580bf;},'BqCfT':_0x226fcf(0x2a9),'PQJpt':function(_0x5af290,_0x17826e){return _0x5af290!=_0x17826e;},'eMsgI':function(_0x3de061,_0x394d4b){return _0x3de061!=_0x394d4b;},'eBGiv':function(_0x4177f8,_0x29f1d1){return _0x4177f8>_0x29f1d1;},'biQnO':_0x226fcf(0x24c),'ZDyUk':_0x226fcf(0x207),'Rxtgc':_0x226fcf(0x227),'txpEJ':function(_0x299329,_0x57332f,_0x5d5a48,_0x2a3f56,_0x12c552,_0x3a20b6,_0x1da382,_0x26d7db){return _0x299329(_0x57332f,_0x5d5a48,_0x2a3f56,_0x12c552,_0x3a20b6,_0x1da382,_0x26d7db);},'EDEGn':'pre-spawned-invalid-vpc','eFKBr':function(_0x316391,_0xe200a5){return _0x316391===_0xe200a5;},'TyEVi':_0x226fcf(0x1dc),'lZvXD':'0|1|3|2|4','SbNpA':'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.','xxntn':_0x226fcf(0x248),'YPPUF':function(_0x51c0c9,_0x229247){return _0x51c0c9===_0x229247;},'tRRZp':function(_0x4dee20,_0x55fba5,_0x5aec62){return _0x4dee20(_0x55fba5,_0x5aec62);},'tEjMR':function(_0x479e91,_0x9f954e){return _0x479e91===_0x9f954e;},'ZtvqJ':function(_0x4ac832,_0x2369b5){return _0x4ac832(_0x2369b5);},'akfzW':_0x226fcf(0x221),'Lzols':function(_0x474dcf,_0x3a2c8d){return _0x474dcf!==_0x3a2c8d;},'buuEj':_0x226fcf(0x1d4),'vlttW':'Browserstack','sikHW':'Namespace\x20Created','IlmXj':'Namespace\x20created','onNtc':_0x226fcf(0x188),'ORzVs':_0x226fcf(0x246),'ZJncZ':function(_0x3a4356,_0x40a20a,_0x35b9c1,_0x282374,_0x5b1701,_0x18c919,_0x306863,_0x2ba11a,_0x3762e9,_0xe00bf9,_0x997c59){return _0x3a4356(_0x40a20a,_0x35b9c1,_0x282374,_0x5b1701,_0x18c919,_0x306863,_0x2ba11a,_0x3762e9,_0xe00bf9,_0x997c59);},'NLKZn':'Grid\x20spawned\x20on\x20the\x20cluster','yPzOd':_0x226fcf(0x1bd),'zVlQY':function(_0x54bd41,_0x1bcfcd,_0x2873ec,_0x1ac6bf,_0x5ab38d){return _0x54bd41(_0x1bcfcd,_0x2873ec,_0x1ac6bf,_0x5ab38d);},'lwrwt':_0x226fcf(0x2b4),'tHUKd':_0x226fcf(0x1f2),'NJZqc':'ingress-nginx','xWNXO':function(_0x422353,_0x2785ac){return _0x422353===_0x2785ac;},'ldWwB':_0x226fcf(0x256),'YGJir':function(_0x1b58cb,_0x122102,_0x5916a2,_0x4fce14,_0x40bf52,_0x591f73,_0x3502bf,_0x5cf9e3){return _0x1b58cb(_0x122102,_0x5916a2,_0x4fce14,_0x40bf52,_0x591f73,_0x3502bf,_0x5cf9e3);},'EdCzr':_0x226fcf(0x19a),'WKfbV':function(_0x114f7c,_0x1f472f){return _0x114f7c===_0x1f472f;},'cWDuf':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','moNAN':_0x226fcf(0x289),'rpxuv':function(_0x81eaa1,_0x4e7f80,_0x4e3699,_0x53e5d0,_0xb260ae,_0xe242dd,_0xf653f5,_0x156948){return _0x81eaa1(_0x4e7f80,_0x4e3699,_0x53e5d0,_0xb260ae,_0xe242dd,_0xf653f5,_0x156948);},'lPGOf':_0x226fcf(0x24a),'OKYGl':_0x226fcf(0x26e),'KruAT':function(_0x569a07,_0x69771b,_0x4e8f48,_0x40710e,_0x2bcc44,_0x261ce1){return _0x569a07(_0x69771b,_0x4e8f48,_0x40710e,_0x2bcc44,_0x261ce1);},'hWTtb':_0x226fcf(0x299)};let _0x2a9880=![],_0x3ebf82=![],_0x126c49,_0x1d7eb9,_0x292440,_0x4b3815,_0xd3c07b,_0x94f2f2,_0x3f50e2,_0x1a9c71,_0x79d9ad,_0x6c6a07,_0x3ec28e,_0x4df87f,_0x3875a3,_0x2c2cd2,_0xb56794=0x1,_0x42bef9=0xe;try{global_registry[_0x226fcf(0x18b)]=_0x237672[_0x226fcf(0x1bc)](uuidv4),global_registry[_0x226fcf(0x23b)]=![];!fs[_0x226fcf(0x1d5)](_0x237672[_0x226fcf(0x1bc)](getCredentialsPath))&&(_0x237672[_0x226fcf(0x2b6)](_0x237672[_0x226fcf(0x2b8)],_0x237672[_0x226fcf(0x2a0)])?(console[_0x226fcf(0x1b6)](_0x237672['YdIrs']),await _0x237672[_0x226fcf(0x1e4)](sendInstrumentationEvent,_0x505c6e,_0x237672['wIhmn'],messageTypes[_0x226fcf(0x226)],_0x237672['uzaWL'],null,_0x505c6e),process[_0x226fcf(0x1cd)](0x1)):_0xf609a3=!![]);await _0x237672[_0x226fcf(0x27f)](sendInstrumentationEvent,_0x505c6e,_0x237672[_0x226fcf(0x1d1)],messageTypes['INFO'],null,null,_0x505c6e);const _0x33b97a=JSON[_0x226fcf(0x190)](fs['readFileSync'](_0x237672[_0x226fcf(0x1bc)](getCredentialsPath)));global_registry[_0x226fcf(0x279)]=_0x33b97a[_0x226fcf(0x1fa)]['username'],global_registry[_0x226fcf(0x1af)]=_0x33b97a['Browserstack'][_0x226fcf(0x28a)];const _0x5211e3=WS_ENDPOINT[_0x226fcf(0x1f7)](_0x237672[_0x226fcf(0x1ee)],_0x33b97a[_0x226fcf(0x1fa)][_0x226fcf(0x217)])[_0x226fcf(0x1f7)](_0x237672[_0x226fcf(0x17b)],_0x33b97a['Browserstack'][_0x226fcf(0x28a)]),_0x32647e={};_0x32647e[_0x226fcf(0x1f4)]=ws,_0x32647e[_0x226fcf(0x1eb)]=0x36ee80,_0x4df87f=new ReconnectingWebSocket(_0x5211e3,[],_0x32647e),logger[_0x226fcf(0x179)](_0x237672[_0x226fcf(0x24e)]),webSocketUtils[_0x226fcf(0x23f)](_0x4df87f,_0x505c6e[_0x226fcf(0x1b1)],_0x505c6e['password']);const _0x393f28=_0x505c6e[_0x226fcf(0x28b)]||DEFAULT_GRID_NAME;if(_0x505c6e[_0x226fcf(0x228)]||_0x505c6e[_0x226fcf(0x27d)]||_0x505c6e[_0x226fcf(0x1fe)]){if(_0x237672[_0x226fcf(0x253)](_0x237672['GsuPI'],_0x237672[_0x226fcf(0x206)])){!(_0x505c6e[_0x226fcf(0x228)]&&_0x505c6e[_0x226fcf(0x27d)]&&_0x505c6e['region'])&&(_0x237672[_0x226fcf(0x2bf)](_0x237672['duFlx'],_0x237672[_0x226fcf(0x1b3)])?(_0x126c49=_0x237672[_0x226fcf(0x2c3)],await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672['Wufar'],_0x237672[_0x226fcf(0x1c0)]),logger['error'](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):_0xc4c301[_0x226fcf(0x23b)]=!![]);![AWS,AZURE,GCP][_0x226fcf(0x1a4)](_0x505c6e[_0x226fcf(0x27d)][_0x226fcf(0x175)]())&&(_0x237672[_0x226fcf(0x2bf)](_0x237672[_0x226fcf(0x201)],_0x237672[_0x226fcf(0x201)])?(_0x126c49=_0x237672['cRVPN'],await _0x237672[_0x226fcf(0x2a3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672['wIhmn'],_0x237672['oVgau'],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process['exit'](0x1)):_0x3f1220[_0x226fcf(0x23b)]=!![]);if(_0x505c6e[_0x226fcf(0x18f)]&&_0x237672[_0x226fcf(0x1ce)](_0x505c6e['privateGrid'][_0x226fcf(0x175)](),_0x237672[_0x226fcf(0x1f6)])){if(_0x237672[_0x226fcf(0x2b6)](_0x237672['iLRpn'],_0x237672[_0x226fcf(0x266)])){const _0x1c15da={};_0x1c15da[_0x226fcf(0x24b)]=_0x4b6dd8[_0x226fcf(0x1c1)],_0x1c15da['message']=_0x226fcf(0x1da)+_0x4c2e92+_0x226fcf(0x264),_0x55cc7a[_0x226fcf(0x25f)](_0x4280e9,_0x1c15da,_0x237672['Rmxly']),_0x3787ee[_0x226fcf(0x195)]('Cluster\x20'+_0x2d31ec+_0x226fcf(0x264)),_0x320743=!![];if(_0x237672['TJDMm'](_0x333cf9,!![]))throw new _0x41eb41(_0x226fcf(0x1da)+_0x5278a8+_0x226fcf(0x293));}else global_registry[_0x226fcf(0x23b)]=!![];}global_registry['cloudProvider']=_0x505c6e[_0x226fcf(0x27d)],global_registry['clusterRegion']=_0x505c6e[_0x226fcf(0x1fe)],global_registry[_0x226fcf(0x228)]=_0x505c6e[_0x226fcf(0x228)];const _0x116e56=await _0x237672[_0x226fcf(0x178)](getCloudProviderObject,_0x505c6e[_0x226fcf(0x27d)],_0x505c6e[_0x226fcf(0x228)],_0x393f28,_0x4df87f,webSocketUtils,_0x505c6e),_0x212d4f=await _0x116e56[_0x226fcf(0x280)]();if(!_0x212d4f)_0x237672[_0x226fcf(0x1e6)](_0x237672[_0x226fcf(0x23c)],_0x237672[_0x226fcf(0x23c)])?_0x6bc1ef=_0x237672[_0x226fcf(0x1e0)]:(logger[_0x226fcf(0x195)](_0x226fcf(0x28d)+_0x505c6e[_0x226fcf(0x228)]+_0x226fcf(0x255)),_0x2a9880=![],_0x3ebf82=!![]);else{if(_0x237672[_0x226fcf(0x2af)](_0x237672['Elugl'],_0x237672[_0x226fcf(0x1a3)]))_0x2a9880=!![];else{const _0x3e040d={};_0x3e040d[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x2a6)],_0x3e040d[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x376ee5={};_0x376ee5[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x17a)],_0x376ee5[_0x226fcf(0x24b)]=_0x237672['FQcnc'];const _0x17124f={};_0x17124f['description']=_0x237672[_0x226fcf(0x1a6)],_0x17124f['type']=_0x237672[_0x226fcf(0x245)];const _0x553907={};_0x553907[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x29d)],_0x553907[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x28f661={};_0x28f661[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x235)],_0x28f661[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x439e61={};_0x439e61[_0x226fcf(0x1e5)]=_0x237672['HJmJe'],_0x439e61[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x2bdc07={};_0x2bdc07[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x209)],_0x2bdc07['type']=_0x237672['GfaKm'],_0x2bdc07[_0x226fcf(0x1d4)]=![];const _0x5012d4={};return _0x5012d4[_0x226fcf(0x1be)]=_0x3e040d,_0x5012d4[_0x226fcf(0x236)]=_0x376ee5,_0x5012d4['cluster-name']=_0x17124f,_0x5012d4[_0x226fcf(0x1bf)]=_0x553907,_0x5012d4['region']=_0x28f661,_0x5012d4[_0x226fcf(0x192)]=_0x439e61,_0x5012d4[_0x226fcf(0x1aa)]=_0x2bdc07,_0x29606c[_0x226fcf(0x2c2)](_0x18f687[_0x226fcf(0x287)])[_0x226fcf(0x170)](_0x559d5b)[_0x226fcf(0x27b)](_0x5012d4)[_0x226fcf(0x173)](_0x237672[_0x226fcf(0x1f5)])[_0x226fcf(0x263)];}}_0x292440=_0x505c6e[_0x226fcf(0x228)],_0x1d7eb9=_0x505c6e[_0x226fcf(0x27d)][_0x226fcf(0x175)](),_0x4b3815=_0x505c6e[_0x226fcf(0x1fe)];}else _0x631c86=null;}else _0x505c6e['gridProfile']&&(_0x237672[_0x226fcf(0x2af)](_0x237672[_0x226fcf(0x29a)],_0x237672[_0x226fcf(0x29a)])?global_registry[_0x226fcf(0x213)]=_0x505c6e[_0x226fcf(0x213)]:(_0x4aaef7['info']('Cluster:\x20'+_0xfbe958[_0x226fcf(0x228)]+_0x226fcf(0x255)),_0x21cf18=![],_0x12386a=!![]));global_registry[_0x226fcf(0x28b)]=_0x505c6e['gridName'];const _0x403f80={'method':_0x237672[_0x226fcf(0x25a)],'headers':_0x237672[_0x226fcf(0x219)](getAuthHeader,_0x33b97a[_0x226fcf(0x1fa)][_0x226fcf(0x217)],_0x33b97a['Browserstack'][_0x226fcf(0x28a)]),'throwHttpErrors':![]},_0x39c02c={};_0x39c02c[_0x226fcf(0x28b)]=_0x393f28;const _0x38327a=_0x39c02c;_0x3ebf82&&(_0x237672[_0x226fcf(0x241)](_0x237672[_0x226fcf(0x1a2)],_0x237672[_0x226fcf(0x1a2)])?(_0x38327a['region']=_0x4b3815,_0x38327a[_0x226fcf(0x27d)]=_0x1d7eb9,_0x38327a[_0x226fcf(0x183)]=!![]):_0x2adfa6[_0x226fcf(0x195)](_0x226fcf(0x224)+_0x154627+'\x20'));const _0xc6b0fb=_0x226fcf(0x283)+AG_API_URL+_0x226fcf(0x22a),_0x3d9122={'searchParams':_0x38327a,'throwHttpErrors':![],..._0x403f80},_0x3bf409=_0x3d9122,_0x192999=await _0x237672[_0x226fcf(0x219)](got,_0xc6b0fb,_0x3bf409);if(_0x237672[_0x226fcf(0x20c)](_0x192999,null)||_0x237672[_0x226fcf(0x241)](_0x192999,undefined)){if(_0x237672[_0x226fcf(0x1d9)](_0x237672[_0x226fcf(0x1f8)],_0x237672[_0x226fcf(0x194)]))_0x126c49=_0x237672[_0x226fcf(0x265)],await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x220)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1);else throw new _0xc8c28e('Cluster\x20'+_0x3b184a+_0x226fcf(0x293));}_0x237672[_0x226fcf(0x2af)](_0x192999[_0x226fcf(0x2c4)],0x191)&&(_0x237672[_0x226fcf(0x1b5)](_0x237672[_0x226fcf(0x216)],_0x237672[_0x226fcf(0x26a)])?(_0x126c49=_0x237672[_0x226fcf(0x260)],await _0x237672['ospKo'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x1ad)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):_0x2bf340[_0x226fcf(0x195)](_0x226fcf(0x1a1)+_0x5ad0a0[_0x226fcf(0x296)](_0x1ea7b1)+'\x20'));_0x237672[_0x226fcf(0x2b6)](_0x192999[_0x226fcf(0x2c4)],0xc8)&&(_0x237672[_0x226fcf(0x25e)](_0x237672[_0x226fcf(0x269)],_0x237672[_0x226fcf(0x29e)])?(_0x126c49=_0x226fcf(0x187)+JSON[_0x226fcf(0x296)](_0x192999['body']),await _0x237672['BpYwI'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672['jszQV'],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):(_0x5ac764[_0x226fcf(0x1fe)]=_0x1aae8d,_0x534b33[_0x226fcf(0x27d)]=_0x1e1ff6,_0x38e020['newCluster']=!![]));const _0x396ca9=JSON[_0x226fcf(0x190)](_0x192999[_0x226fcf(0x2be)]),_0x567f22={};_0x567f22['type']=WS_EVENTS[_0x226fcf(0x17c)],_0x567f22[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x2c0)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x567f22);const _0x104894={};_0x104894[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x104894[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x1ed)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x104894);_0x396ca9['alreadyPresent']&&(_0x237672[_0x226fcf(0x1ec)](_0x237672['VERnk'],_0x237672[_0x226fcf(0x200)])?(_0x126c49=_0x226fcf(0x278)+_0x393f28+_0x226fcf(0x2b2),await _0x237672[_0x226fcf(0x2a3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes['ERROR'],_0x237672['wIhmn'],_0x237672[_0x226fcf(0x1d6)],_0x237672['bZjTK']),logger[_0x226fcf(0x1b6)](_0x126c49),process['exit'](0x1)):_0x1998b5[_0x226fcf(0x213)]=_0x200e54[_0x226fcf(0x213)]);const _0xaff4d=_0x396ca9[_0x226fcf(0x1bb)];let _0x5c07a1=_0xaff4d[_0x396ca9[_0x226fcf(0x17f)]];if(_0x505c6e[_0x226fcf(0x213)]){if(_0x237672['wbnCW'](_0x237672[_0x226fcf(0x28f)],_0x237672[_0x226fcf(0x1cb)]))_0x5c07a1=_0xaff4d[_0x505c6e[_0x226fcf(0x213)]];else{const _0x514341=_0x237672[_0x226fcf(0x268)][_0x226fcf(0x282)]('|');let _0xca65bd=0x0;while(!![]){switch(_0x514341[_0xca65bd++]){case'0':_0x1a320c[_0x226fcf(0x195)](_0x17cf53);continue;case'1':_0x132fd5='Spawning\x20the\x20grid\x20'+_0x43e57f+_0x226fcf(0x222)+_0x12fbb3+'\x27';continue;case'2':const _0x388962={};_0x388962[_0x226fcf(0x24b)]=_0x182578[_0x226fcf(0x17c)],_0x388962['message']=_0x237672[_0x226fcf(0x2c0)],_0x1f8f89[_0x226fcf(0x25f)](_0xa6646a,_0x388962);continue;case'3':_0x11a167['clusterName']=_0x218b37;continue;case'4':const _0x18bef8={};_0x18bef8[_0x226fcf(0x24b)]=_0x1633a2['LOG'],_0x18bef8[_0x226fcf(0x271)]=_0x21e14b,_0x300b68['sendEventToBackend'](_0x26c328,_0x18bef8);continue;case'5':_0x4a72ce[_0x226fcf(0x182)]=_0x3c1382;continue;case'6':_0x12bdb7[_0x226fcf(0x1b7)]=_0x4330b5[_0x226fcf(0x1b7)];continue;case'7':_0x5a1e1b['hubVersion']=_0x310622['hubVersion'];continue;case'8':_0x8ccc76[_0x226fcf(0x27d)]=_0x41d5b0;continue;}break;}}}if(_0x237672[_0x226fcf(0x1c5)](_0x2a9880,![])&&_0x237672['JBhPR'](_0x3ebf82,![])){if(_0x237672['UUIiw'](_0x237672[_0x226fcf(0x215)],_0x237672[_0x226fcf(0x1c8)])){const _0x190f9d={};_0x190f9d['type']=_0x47b653[_0x226fcf(0x1c1)],_0x190f9d['message']=_0x3800ec,_0x326175[_0x226fcf(0x25f)](_0x7ef0c6,_0x190f9d,_0x237672[_0x226fcf(0x1c0)],!![]);}else{if(_0x237672['vxTQj'](_0x5c07a1,undefined)){if(_0x237672[_0x226fcf(0x25d)](_0x237672[_0x226fcf(0x1c7)],_0x237672['jzFwA'])){const _0x351342=_0x237672[_0x226fcf(0x225)]['split']('|');let _0x48eb00=0x0;while(!![]){switch(_0x351342[_0x48eb00++]){case'0':_0x4be048=_0x28a74d[_0x226fcf(0x184)];continue;case'1':_0x1914e0[_0x226fcf(0x195)](_0x44a3b3);continue;case'2':_0x453a7c=_0xcd935[_0x226fcf(0x21a)];continue;case'3':_0x309921=null;continue;case'4':_0x10f7e7=_0x226fcf(0x295)+_0x4fc37c;continue;case'5':_0x237672[_0x226fcf(0x2b6)](_0x7db01b[_0x226fcf(0x18f)],_0x29d39d)&&_0x5c4b87['privateGrid']&&(_0xda3414[_0x226fcf(0x23b)]=!![]);continue;case'6':_0x12c216=_0x1683e5[_0x226fcf(0x2a7)];continue;case'7':const _0x5f05e2={};_0x5f05e2['type']=_0x5c9cca[_0x226fcf(0x1c1)],_0x5f05e2[_0x226fcf(0x271)]=_0x2b690b,_0x53c8ea[_0x226fcf(0x25f)](_0x563f9e,_0x5f05e2);continue;case'8':_0x4b7c4f=_0x5badd1[_0x226fcf(0x2a1)];continue;case'9':_0x32ab82=null;continue;case'10':_0xc42e8e=_0x2fd613[_0x226fcf(0x262)];continue;case'11':_0x2efc08=_0x38540b['s3bucket'];continue;case'12':_0xaf9bce=null;continue;case'13':_0x237672[_0x226fcf(0x1a0)](_0x45564e,_0x4549d7,_0x146b4e,_0x116f6b,_0x1cd068,_0x39af57,_0xdbb3f6,_0x43a7db,_0x53e49d,_0x2a15e6,_0x4f4f50,_0x7f8c03);continue;case'14':_0x2881b5=_0x1d75f6[_0x226fcf(0x1b7)];continue;}break;}}else _0x126c49=_0x237672[_0x226fcf(0x258)],await _0x237672['mPpEs'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672['KXlrV'],_0x237672[_0x226fcf(0x1c0)]),logger['error'](_0x126c49),process['exit'](0x1);}global_registry[_0x226fcf(0x22d)]=_0x5c07a1['id'],_0x126c49='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x393f28+_0x226fcf(0x1f0)+_0x5c07a1[_0x226fcf(0x2a5)]+_0x226fcf(0x1d7),logger[_0x226fcf(0x195)](_0x126c49);const _0x2cf262={};_0x2cf262[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x2cf262[_0x226fcf(0x271)]=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0x2cf262),_0x1d7eb9=_0x5c07a1[_0x226fcf(0x27d)],_0x292440=_0x5c07a1[_0x226fcf(0x228)],_0x4b3815=_0x5c07a1[_0x226fcf(0x1fe)],_0xd3c07b=_0x5c07a1[_0x226fcf(0x262)],_0x94f2f2=_0x5c07a1[_0x226fcf(0x21a)],_0x3f50e2=_0x5c07a1[_0x226fcf(0x210)],_0x1a9c71=_0x5c07a1['securityGroups'],_0x79d9ad=_0x5c07a1[_0x226fcf(0x16c)],_0x6c6a07=_0x5c07a1[_0x226fcf(0x196)],_0xb56794=_0x5c07a1[_0x226fcf(0x2a7)],_0x42bef9=_0x5c07a1[_0x226fcf(0x2a1)],_0x3875a3=_0x396ca9[_0x226fcf(0x184)],_0x2c2cd2=_0x396ca9[_0x226fcf(0x1b7)],_0x3f50e2&&_0x237672[_0x226fcf(0x1a8)](_0x3f50e2[_0x226fcf(0x18c)],0x0)&&(_0x237672[_0x226fcf(0x23d)](_0x237672[_0x226fcf(0x1fb)],_0x237672[_0x226fcf(0x1fb)])?_0x1db17f[_0x226fcf(0x1b6)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x765d12+'\x20\x0a'+_0x2662f0['stringify'](_0x3bc8cb[_0x226fcf(0x1d2)])):_0x3f50e2=null),_0x79d9ad&&_0x237672[_0x226fcf(0x20c)](_0x79d9ad['length'],0x0)&&(_0x237672['xnOuU'](_0x237672[_0x226fcf(0x254)],_0x237672['EFSAI'])?_0x79d9ad=null:_0x49d507=null),_0x237672[_0x226fcf(0x25d)](_0x5c07a1[_0x226fcf(0x18f)],undefined)&&_0x5c07a1[_0x226fcf(0x18f)]&&(_0x237672[_0x226fcf(0x1a9)](_0x237672[_0x226fcf(0x1e7)],_0x237672[_0x226fcf(0x1e7)])?_0x4f715a[_0x226fcf(0x23b)]=!![]:global_registry[_0x226fcf(0x23b)]=!![]),_0x237672[_0x226fcf(0x243)](updateGlobalRegistryWithConfig,_0x1d7eb9,_0x292440,_0x4b3815,_0xd3c07b,_0x94f2f2,_0x6c6a07,_0x5c07a1,_0x3875a3,_0x2c2cd2,_0xb56794,_0x42bef9);}}else{if(_0x237672[_0x226fcf(0x21d)](_0x3ebf82,!![])){if(_0x237672[_0x226fcf(0x1db)](_0x237672[_0x226fcf(0x2c6)],_0x237672[_0x226fcf(0x2c6)])){_0x126c49=_0x226fcf(0x295)+_0x393f28,logger[_0x226fcf(0x195)](_0x126c49);const _0xaf49a0={};_0xaf49a0[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0xaf49a0['message']=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0xaf49a0),_0xd3c07b=_0x5c07a1[_0x226fcf(0x262)],_0x94f2f2=_0x5c07a1[_0x226fcf(0x21a)],_0x3f50e2=null,_0x1a9c71=null,_0x79d9ad=null,_0x6c6a07=_0x5c07a1[_0x226fcf(0x196)],_0xb56794=_0x5c07a1[_0x226fcf(0x2a7)],_0x42bef9=_0x5c07a1[_0x226fcf(0x2a1)],_0x3875a3=_0x396ca9[_0x226fcf(0x184)],_0x2c2cd2=_0x396ca9['browserVersion'],_0x237672[_0x226fcf(0x1d9)](_0x5c07a1[_0x226fcf(0x18f)],undefined)&&_0x5c07a1[_0x226fcf(0x18f)]&&(_0x237672[_0x226fcf(0x2c5)](_0x237672['lNGGf'],_0x237672['YYALA'])?_0x35cd52=_0x1cb611[_0x456bee[_0x226fcf(0x213)]]:global_registry[_0x226fcf(0x23b)]=!![]),_0x237672[_0x226fcf(0x243)](updateGlobalRegistryWithConfig,_0x1d7eb9,_0x292440,_0x4b3815,_0xd3c07b,_0x94f2f2,_0x6c6a07,_0x5c07a1,_0x3875a3,_0x2c2cd2,_0xb56794,_0x42bef9);}else _0x4a3a7e=_0x2ee6c7[_0x226fcf(0x1b4)],_0x54963c=_0x237672['GVndz'];}else{if(_0x237672['sMsfH'](_0x237672[_0x226fcf(0x16f)],_0x237672['CJUOg'])){const _0x2a8fd4=_0x237672[_0x226fcf(0x28e)][_0x226fcf(0x282)]('|');let _0x116075=0x0;while(!![]){switch(_0x2a8fd4[_0x116075++]){case'0':global_registry[_0x226fcf(0x228)]=_0x292440;continue;case'1':global_registry[_0x226fcf(0x27d)]=_0x1d7eb9;continue;case'2':global_registry[_0x226fcf(0x184)]=_0x396ca9['hubVersion'];continue;case'3':global_registry[_0x226fcf(0x1b7)]=_0x396ca9['browserVersion'];continue;case'4':const _0x2c918a={};_0x2c918a[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x17c)],_0x2c918a['message']=_0x237672[_0x226fcf(0x2c0)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x2c918a);continue;case'5':const _0x383738={};_0x383738[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x383738[_0x226fcf(0x271)]=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x383738);continue;case'6':global_registry[_0x226fcf(0x182)]=_0x4b3815;continue;case'7':_0x126c49=_0x226fcf(0x23e)+_0x393f28+_0x226fcf(0x222)+_0x292440+'\x27';continue;case'8':logger[_0x226fcf(0x195)](_0x126c49);continue;}break;}}else _0x3a1235['sendResourceDataToHST']();}}const _0x44d3dc=await _0x237672[_0x226fcf(0x202)](getCloudProviderObject,_0x1d7eb9,_0x292440,_0x393f28,_0x4df87f,webSocketUtils,_0x505c6e);_0x237672[_0x226fcf(0x2b5)](_0x1d7eb9,AZURE)&&_0x44d3dc[_0x226fcf(0x212)]();let _0x31c0ca;if(_0x237672[_0x226fcf(0x1f9)](_0x2a9880,![])){_0x126c49='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x4b3815+').';const _0x5b35f4={};_0x5b35f4[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x5b35f4[_0x226fcf(0x271)]=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0x5b35f4),logger[_0x226fcf(0x195)](_0x126c49);const _0x4d4ab3=await _0x44d3dc[_0x226fcf(0x280)]();if(_0x4d4ab3){const _0x4c904e={};_0x4c904e[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x4c904e['message']='Cluster\x20'+_0x292440+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x4c904e,_0x237672['Rmxly']),logger[_0x226fcf(0x195)]('Cluster\x20'+_0x292440+_0x226fcf(0x264)),_0x2a9880=!![];if(_0x237672['FQTBe'](_0x3ebf82,!![]))throw new Error('Cluster\x20'+_0x292440+_0x226fcf(0x293));}else{const _0x39f3af={};_0x39f3af[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x39f3af[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x240)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x39f3af),logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x240)]);const _0x46b415=_0x237672[_0x226fcf(0x171)](_0x3f50e2,null)&&_0x237672[_0x226fcf(0x2b6)](_0x3f50e2,undefined),_0x2c08c2=_0x237672[_0x226fcf(0x2ae)](_0x79d9ad,null)&&_0x237672['GiAKx'](_0x79d9ad,undefined)&&_0x237672['eBGiv'](_0x79d9ad[_0x226fcf(0x18c)],0x0);if(_0x46b415){_0x237672[_0x226fcf(0x241)](_0x2c08c2,![])&&(_0x126c49=_0x237672[_0x226fcf(0x22f)],await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes['ERROR'],_0x237672['wIhmn'],_0x237672['ZDyUk'],_0x237672[_0x226fcf(0x1c0)]),logger['error'](_0x126c49),process[_0x226fcf(0x1cd)](0x1));const _0x15693e=await _0x44d3dc[_0x226fcf(0x218)](_0x3f50e2);_0x237672[_0x226fcf(0x2c5)](_0x15693e,![])?(_0x126c49=_0x237672[_0x226fcf(0x19c)],await _0x237672[_0x226fcf(0x284)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x211)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):logger[_0x226fcf(0x195)]('Found\x20VPC:\x20'+_0x3f50e2+'\x20');const _0x1580ec=await _0x44d3dc['isSubnetsValid'](_0x79d9ad,_0x3f50e2);_0x237672[_0x226fcf(0x2bc)](_0x1580ec[0x0],![])?(_0x126c49='Subnets:\x20'+JSON[_0x226fcf(0x296)](_0x1580ec[0x1])+_0x226fcf(0x292)+_0x3f50e2+_0x226fcf(0x251),await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672['wIhmn'],_0x237672['TyEVi'],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):logger[_0x226fcf(0x195)](_0x226fcf(0x1a1)+JSON[_0x226fcf(0x296)](_0x79d9ad)+'\x20'),await _0x44d3dc[_0x226fcf(0x26f)](_0x3f50e2,_0x79d9ad);}else{const _0x5dfdac=_0x237672[_0x226fcf(0x274)][_0x226fcf(0x282)]('|');let _0x36db09=0x0;while(!![]){switch(_0x5dfdac[_0x36db09++]){case'0':const _0x1af217={};_0x1af217[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x1af217[_0x226fcf(0x271)]=_0x237672['SbNpA'],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x1af217);continue;case'1':logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x1fc)]);continue;case'2':const _0x19cf45={};_0x19cf45[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x19cf45[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x199)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x19cf45);continue;case'3':await _0x44d3dc[_0x226fcf(0x26f)](_0x3f50e2,_0x79d9ad);continue;case'4':logger['info'](_0x237672[_0x226fcf(0x199)]);continue;}break;}}}}_0x2a9880&&_0x237672['YPPUF'](_0x1d7eb9,AZURE)&&(await _0x44d3dc[_0x226fcf(0x16e)](),await _0x44d3dc[_0x226fcf(0x2b9)]());const [_0x1df53b,_0xf2b779,_0x5c8f49,_0x1f26eb,_0x730d48,_0x2470fb]=await _0x237672[_0x226fcf(0x193)](createK8sClient,_0x44d3dc,_0x505c6e[_0x226fcf(0x272)]);_0x237672[_0x226fcf(0x20d)](_0x2a9880,![])&&_0x237672[_0x226fcf(0x176)](_0x1d7eb9,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x31c0ca=await _0x44d3dc[_0x226fcf(0x1a5)](_0x1df53b,_0x505c6e));try{_0x3ec28e=_0x237672[_0x226fcf(0x291)](kebabCase,_0x393f28),logger[_0x226fcf(0x195)](_0x237672['akfzW']);const _0x347bb0={};_0x347bb0[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x347bb0['message']=_0x237672[_0x226fcf(0x239)],webSocketUtils['sendEventToBackend'](_0x4df87f,_0x347bb0);if(_0x237672[_0x226fcf(0x250)](_0x3ec28e,_0x237672['buuEj'])){const _0x5bbcff={};_0x5bbcff[_0x226fcf(0x29b)]=_0x237672[_0x226fcf(0x24d)],_0x5bbcff[_0x226fcf(0x177)]=_0x237672[_0x226fcf(0x24d)];const _0x5351c0={};_0x5351c0[_0x226fcf(0x2a5)]=_0x3ec28e,_0x5351c0[_0x226fcf(0x19d)]=_0x5bbcff;const _0x3f7a98={};_0x3f7a98[_0x226fcf(0x19f)]=_0x5351c0;const _0x901bc3=_0x3f7a98,_0x1a3781={};_0x1a3781['body']=_0x901bc3,await _0x1df53b[_0x226fcf(0x1cc)](_0x1a3781),logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x1ab)]);}const _0x5d9dfd={};_0x5d9dfd[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x5d9dfd[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x19b)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x5d9dfd);const _0x350036={};_0x350036[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x350036[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x28c)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x350036),logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x19e)]);let _0x2c8fa1={};_0x237672[_0x226fcf(0x1f9)](_0x1d7eb9,AZURE)&&(_0x2c8fa1={'clientId':await _0x44d3dc[_0x226fcf(0x27c)]('turboscale-managed-identity-'+_0x292440)});await _0x237672[_0x226fcf(0x205)](addGridComponents,_0x1df53b,_0xf2b779,_0x5c8f49,_0x1f26eb,_0x3ec28e,_0x292440,_0x31c0ca,_0x730d48,_0x2470fb,_0x2c8fa1),_0x126c49=_0x237672['NLKZn'],logger[_0x226fcf(0x195)](_0x126c49);const _0xb7fe92={};_0xb7fe92['type']=WS_EVENTS[_0x226fcf(0x1c1)],_0xb7fe92['message']=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0xb7fe92),_0x126c49=_0x237672[_0x226fcf(0x2c7)],logger[_0x226fcf(0x195)](_0x126c49);const _0x6f79b9={};_0x6f79b9[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x6f79b9[_0x226fcf(0x271)]=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x6f79b9),await _0x237672['zVlQY'](waitForDeployment,_0xf2b779,_0x3ec28e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0xe4a15d=await _0x237672[_0x226fcf(0x219)](getNamespaceUID,_0x1df53b,_0x3ec28e),_0x292be7=global_registry[_0x226fcf(0x23b)]?_0x237672[_0x226fcf(0x2b7)]:_0x237672[_0x226fcf(0x20f)],_0x21ad69={};_0x21ad69[_0x226fcf(0x2a5)]=_0x292be7,_0x21ad69['namespace']=_0x237672[_0x226fcf(0x1e2)];const _0x2240a1=await _0x1df53b[_0x226fcf(0x17e)](_0x21ad69);let _0x1752f8=_0x44d3dc['getGridHostname'](_0x2240a1)+'/'+_0x3ec28e,_0x48065e=_0x237672[_0x226fcf(0x1e0)];try{const _0x429ae4=_0x226fcf(0x283)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0xe4a15d,_0x2fb492=await _0x237672[_0x226fcf(0x219)](got,_0x429ae4,_0x403f80);(_0x237672['xWNXO'](_0x2fb492,null)||_0x237672[_0x226fcf(0x20d)](_0x2fb492,undefined))&&(_0x126c49=_0x237672[_0x226fcf(0x180)],await _0x237672[_0x226fcf(0x276)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x1d3)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1));_0x237672['WKfbV'](_0x2fb492[_0x226fcf(0x2c4)],0x191)&&(_0x126c49=_0x237672[_0x226fcf(0x1e8)],await _0x237672[_0x226fcf(0x1a7)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x21e)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1));_0x237672[_0x226fcf(0x23d)](_0x2fb492[_0x226fcf(0x2c4)],0xc8)&&(_0x126c49=_0x226fcf(0x22c)+JSON[_0x226fcf(0x296)](_0x2fb492),await _0x237672['rpxuv'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x233)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1));const _0x146072=JSON[_0x226fcf(0x190)](_0x2fb492[_0x226fcf(0x2be)]);_0x146072[_0x226fcf(0x1b4)]&&(_0x1752f8=_0x146072[_0x226fcf(0x1b4)],_0x48065e=_0x237672[_0x226fcf(0x1f1)]),global_registry[_0x226fcf(0x23b)]&&(_0x48065e=_0x237672[_0x226fcf(0x1e0)]);}catch(_0x2d65a9){}_0x126c49=_0x226fcf(0x281)+_0x1752f8+'\x20',logger['info'](_0x126c49);const _0x79b2f8={};_0x79b2f8[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x79b2f8[_0x226fcf(0x271)]=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x79b2f8),_0x126c49=_0x226fcf(0x2ba)+_0x48065e+_0x226fcf(0x29f)+_0x1752f8+_0x226fcf(0x18e),logger[_0x226fcf(0x195)](_0x126c49);const _0x52ce01={};_0x52ce01[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x52ce01['message']=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x52ce01);const _0x2d45e5={};_0x2d45e5[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x2a2)],_0x2d45e5[_0x226fcf(0x271)]=_0x226fcf(0x1de)+_0x1752f8,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x2d45e5),await webSocketUtils[_0x226fcf(0x1b2)](0x7d0);}catch(_0x1eda68){logger[_0x226fcf(0x1b6)](_0x226fcf(0x18a)+_0x1eda68+'\x20\x0a'+JSON[_0x226fcf(0x296)](_0x1eda68[_0x226fcf(0x1d2)]));if(_0x237672[_0x226fcf(0x1ec)](_0x2a9880,![]))try{logger['info'](_0x237672[_0x226fcf(0x223)]),await _0x237672[_0x226fcf(0x1d0)](removeGridComponents,_0x1df53b,_0xf2b779,_0x5c8f49,_0x1f26eb,_0x3ec28e),await _0x44d3dc[_0x226fcf(0x290)](_0x1df53b,global_registry[_0x226fcf(0x182)]);}catch(_0x40a4aa){logger[_0x226fcf(0x1b6)](_0x226fcf(0x203)+_0x40a4aa+'\x20\x0a'+JSON[_0x226fcf(0x296)](_0x40a4aa[_0x226fcf(0x1d2)]));}throw _0x1eda68;}}catch(_0x13e638){const _0x7f8354=_0x226fcf(0x277)+_0x13e638+'\x20\x0a'+JSON[_0x226fcf(0x296)](_0x13e638[_0x226fcf(0x1d2)]);if(_0x4df87f){const _0x517ebb={};_0x517ebb[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x517ebb[_0x226fcf(0x271)]=_0x7f8354,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x517ebb,_0x237672[_0x226fcf(0x1c0)],!![]);}await webSocketUtils[_0x226fcf(0x1b2)](0x7d0);const _0x5dcf35={};_0x5dcf35[_0x226fcf(0x1b6)]=_0x7f8354,await _0x237672[_0x226fcf(0x178)](sendInstrumentationEvent,_0x505c6e,_0x237672[_0x226fcf(0x1d1)],messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x230)],_0x5dcf35,_0x505c6e),logger[_0x226fcf(0x1b6)](_0x7f8354);}process[_0x226fcf(0x1cd)](0x0);};
@@ -1 +1 @@
1
- const a10_0x47c117=a10_0x5ad1;(function(_0x3ef5d1,_0x40eb07){const _0x5f45bd=a10_0x5ad1,_0x12f733=_0x3ef5d1();while(!![]){try{const _0x3421b3=parseInt(_0x5f45bd(0x101))/0x1+-parseInt(_0x5f45bd(0xfe))/0x2*(parseInt(_0x5f45bd(0xf6))/0x3)+parseInt(_0x5f45bd(0x109))/0x4*(-parseInt(_0x5f45bd(0x10c))/0x5)+parseInt(_0x5f45bd(0x106))/0x6+parseInt(_0x5f45bd(0xfa))/0x7*(parseInt(_0x5f45bd(0xff))/0x8)+-parseInt(_0x5f45bd(0xfd))/0x9+-parseInt(_0x5f45bd(0x102))/0xa;if(_0x3421b3===_0x40eb07)break;else _0x12f733['push'](_0x12f733['shift']());}catch(_0x17f5b5){_0x12f733['push'](_0x12f733['shift']());}}}(a10_0x335b,0x30220));function a10_0x335b(){const _0x1088aa=['epilogue','5660qlPIIK','List\x20Grid\x20resources.','PAdFG','170ZrfskM','builder','45789ybLgQV','handler','tyzbJ','commandDir','56yrFVAp','command','help','3468600GeICdq','10bRtsdy','309648QoZMDT','desc','379303EHvGoN','2035930vlNNwr','recommendCommands','strict','usage','1329714tkaDeM','delete'];a10_0x335b=function(){return _0x1088aa;};return a10_0x335b();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x5ad1(_0x2fc01d,_0x34a209){const _0x335b8d=a10_0x335b();return a10_0x5ad1=function(_0x5ad188,_0x3abac8){_0x5ad188=_0x5ad188-0xf6;let _0x27595f=_0x335b8d[_0x5ad188];return _0x27595f;},a10_0x5ad1(_0x2fc01d,_0x34a209);}exports[a10_0x47c117(0xfb)]='delete',exports[a10_0x47c117(0x100)]=a10_0x47c117(0x10a),exports[a10_0x47c117(0x10d)]=function(_0x3e64c1){const _0x3b08ac=a10_0x47c117,_0x5c729c={};_0x5c729c[_0x3b08ac(0xf8)]='delete_commands',_0x5c729c[_0x3b08ac(0x10b)]='help';const _0x43f28a=_0x5c729c;return _0x3e64c1[_0x3b08ac(0x105)](HELP_HEADER_MESSAGE[_0x3b08ac(0x107)])[_0x3b08ac(0x108)](HELP_FOOTER_MESSAGE)[_0x3b08ac(0xf9)](_0x43f28a[_0x3b08ac(0xf8)])['demandCommand']()[_0x3b08ac(0x103)]()[_0x3b08ac(0x104)]()[_0x3b08ac(0xfc)](_0x43f28a[_0x3b08ac(0x10b)]);},exports[a10_0x47c117(0xf7)]=function(_0x890c49){};
1
+ const a10_0x5eac10=a10_0x4c78;(function(_0x200717,_0x138611){const _0x27b7d4=a10_0x4c78,_0x23db0b=_0x200717();while(!![]){try{const _0x1d13ac=-parseInt(_0x27b7d4(0x76))/0x1+-parseInt(_0x27b7d4(0x77))/0x2+parseInt(_0x27b7d4(0x88))/0x3*(-parseInt(_0x27b7d4(0x7f))/0x4)+parseInt(_0x27b7d4(0x75))/0x5*(-parseInt(_0x27b7d4(0x89))/0x6)+-parseInt(_0x27b7d4(0x7d))/0x7+-parseInt(_0x27b7d4(0x84))/0x8+parseInt(_0x27b7d4(0x85))/0x9;if(_0x1d13ac===_0x138611)break;else _0x23db0b['push'](_0x23db0b['shift']());}catch(_0x44816e){_0x23db0b['push'](_0x23db0b['shift']());}}}(a10_0x52c6,0xca9d6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x5eac10(0x87));function a10_0x4c78(_0x5cbd67,_0x432b94){const _0x52c63d=a10_0x52c6();return a10_0x4c78=function(_0x4c780a,_0x4be60c){_0x4c780a=_0x4c780a-0x74;let _0x47481b=_0x52c63d[_0x4c780a];return _0x47481b;},a10_0x4c78(_0x5cbd67,_0x432b94);}function a10_0x52c6(){const _0x1638ce=['usage','delete','5710968BtalPB','77652387qglAOU','IXLXX','../config/constants','4696296ITVrLS','31728mNabUA','commandDir','help','1490gBzoju','1561188KcoITr','3075772NxXpCi','strict','handler','List\x20Grid\x20resources.','command','delete_commands','5907524fuXAdF','recommendCommands','4vzSnde','builder','PMuOi'];a10_0x52c6=function(){return _0x1638ce;};return a10_0x52c6();}exports[a10_0x5eac10(0x7b)]=a10_0x5eac10(0x83),exports['desc']=a10_0x5eac10(0x7a),exports[a10_0x5eac10(0x80)]=function(_0x39da4a){const _0x289031=a10_0x5eac10,_0x279a17={};_0x279a17['PMuOi']=_0x289031(0x7c),_0x279a17[_0x289031(0x86)]=_0x289031(0x74);const _0x59d2dc=_0x279a17;return _0x39da4a[_0x289031(0x82)](HELP_HEADER_MESSAGE[_0x289031(0x83)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x289031(0x8a)](_0x59d2dc[_0x289031(0x81)])['demandCommand']()[_0x289031(0x7e)]()[_0x289031(0x78)]()[_0x289031(0x74)](_0x59d2dc[_0x289031(0x86)]);},exports[a10_0x5eac10(0x79)]=function(_0x50c0bc){};
@@ -1 +1 @@
1
- const a11_0x1bb41b=a11_0x231c;function a11_0x231c(_0xc0fdb0,_0x1f7c8){const _0x490b77=a11_0x490b();return a11_0x231c=function(_0x231cb9,_0xf10605){_0x231cb9=_0x231cb9-0x12d;let _0x17d09d=_0x490b77[_0x231cb9];return _0x17d09d;},a11_0x231c(_0xc0fdb0,_0x1f7c8);}(function(_0x26772d,_0x271a01){const _0x329d6f=a11_0x231c,_0x4ff302=_0x26772d();while(!![]){try{const _0x4cc735=-parseInt(_0x329d6f(0x16c))/0x1*(parseInt(_0x329d6f(0x1bb))/0x2)+-parseInt(_0x329d6f(0x196))/0x3+-parseInt(_0x329d6f(0x144))/0x4+-parseInt(_0x329d6f(0x18f))/0x5*(parseInt(_0x329d6f(0x189))/0x6)+-parseInt(_0x329d6f(0x167))/0x7*(parseInt(_0x329d6f(0x18b))/0x8)+-parseInt(_0x329d6f(0x14b))/0x9+parseInt(_0x329d6f(0x156))/0xa*(parseInt(_0x329d6f(0x13c))/0xb);if(_0x4cc735===_0x271a01)break;else _0x4ff302['push'](_0x4ff302['shift']());}catch(_0x2bf34a){_0x4ff302['push'](_0x4ff302['shift']());}}}(a11_0x490b,0x50b8b));const fs=require('fs'),got=require(a11_0x1bb41b(0x179)),{v4:uuidv4}=require(a11_0x1bb41b(0x1bd)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1bb41b(0x1b8)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1bb41b(0x16a)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x1bb41b(0x1cb)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1bb41b(0x184)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x1bb41b(0x166)),{createK8sClient}=require(a11_0x1bb41b(0x19a)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1bb41b(0x14a)),webSocketUtils=require(a11_0x1bb41b(0x159));function a11_0x490b(){const _0x170b53=['Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','tvmHs','handler','Skip\x20insecure\x20cert\x20verification.','xZrdq','TlJJL','isBrowserstackCluster','9850gsOupR','DELETE','SvrIS','../../utils/webSocketUtils','XgLoB','njuVq','<PasswordPlaceholder>','tKJwS','clusterRegion','Pass\x20the\x20ID\x20of\x20the\x20Grid','dkPkV','dKTqi','epilogue','delete','existsSync','username','../../utils/userInput','203qPbyqs','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','../../config/constants','\x22\x20and\x20ID\x20','7ggnpAW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','parse','JeAeI','ziErM','uRcaq','\x22\x20with\x20ID\x20','password','dWpqU','command','got','unknown-error','nyWDU','VZJjM','GsBHj','statusCode','RkpIS','VjSHl','warn','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../../utils/gridComponents','string','clusterId','message','invalid-grid-id','1266318AGVvcW','RYxGU','113888NpGWne','onlyGridInCluster','clusterName','Delete\x20an\x20Automation\x20grid.','5IwYCGA','stringify','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','server-error','gridId','argv','stack','44859JOJglV','builder','WskIK','DYIVn','../../utils/createk8sClient','exit','init-not-called','isClusterPresent','options','zOXUH','clusterSpawnedVia','yoFDt','BHJDC','Ntatl','ERROR','readFileSync','Successfully\x20deleted\x20the\x20grid','grid','Cluster:\x20','connectionTimeout','ZfVgg','grid-id','requestId','qTPvZ','usage','tYTBa','delete-grid-called','catch','eQADe','vuqgL','fOcTC','unauthorised','dABsR','lhupH','reconnecting-websocket','tungX','NLFGa','73182ENjDez','error','uuid','replace','vDRIj','ilYUd','info','region','OEXKF','THjWm','cloudProvider','toLowerCase','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','help','nIgYd','XhcBu','../../cloudproviders/utils','vaXrg','PMXpk','wJSEA','vestv','tWTac','body','inuMw','xtbDU','tyBnw','skipTlsCertVerify','KMxfq','cLJoq','name','lAasQ','yJKxY','23221AgXkYn','default','WebSocket','Namespace:\x20','unCZB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','description','deleteCluster','2429248tmhESN','CQcmI','skip-tls-cert-verify','desc','EzumA','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','2217609bKqrUX','type','Browserstack','boolean'];a11_0x490b=function(){return _0x170b53;};return a11_0x490b();}exports[a11_0x1bb41b(0x178)]=a11_0x1bb41b(0x1a7),exports[a11_0x1bb41b(0x147)]=a11_0x1bb41b(0x18e),exports[a11_0x1bb41b(0x197)]=function(_0x1d74c9){const _0x37c970=a11_0x1bb41b,_0x5707d4={};_0x5707d4[_0x37c970(0x1b9)]=_0x37c970(0x15f),_0x5707d4[_0x37c970(0x1c9)]=_0x37c970(0x185),_0x5707d4[_0x37c970(0x15b)]='Skip\x20insecure\x20cert\x20verification.',_0x5707d4[_0x37c970(0x134)]=_0x37c970(0x14e),_0x5707d4[_0x37c970(0x135)]=_0x37c970(0x1c8);const _0x4a73c9=_0x5707d4,_0x352d83={};_0x352d83['description']=_0x4a73c9[_0x37c970(0x1b9)],_0x352d83[_0x37c970(0x14c)]=_0x4a73c9['nIgYd'];const _0xd4ac4a={};_0xd4ac4a[_0x37c970(0x142)]=_0x4a73c9[_0x37c970(0x15b)],_0xd4ac4a[_0x37c970(0x14c)]=_0x4a73c9[_0x37c970(0x134)],_0xd4ac4a['default']=![];const _0x1f0582={};return _0x1f0582[_0x37c970(0x1ab)]=_0x352d83,_0x1f0582[_0x37c970(0x146)]=_0xd4ac4a,_0x1d74c9[_0x37c970(0x1ae)](HELP_HEADER_MESSAGE[_0x37c970(0x163)])[_0x37c970(0x162)](HELP_FOOTER_MESSAGE)[_0x37c970(0x19e)](_0x1f0582)['help'](_0x4a73c9[_0x37c970(0x135)])[_0x37c970(0x194)];},exports[a11_0x1bb41b(0x151)]=async function(_0x4b9721){const _0x4e2d4e=a11_0x1bb41b,_0x3ab98c={'unCZB':_0x4e2d4e(0x1a6),'RkpIS':_0x4e2d4e(0x14f),'TlJJL':_0x4e2d4e(0x1c7),'THjWm':function(_0x58f0e7,_0x271f33){return _0x58f0e7!==_0x271f33;},'cLJoq':_0x4e2d4e(0x1c0),'RYxGU':function(_0x143bb1,_0x1b17d7){return _0x143bb1===_0x1b17d7;},'VjSHl':'XGBsH','tKJwS':_0x4e2d4e(0x150),'NLFGa':_0x4e2d4e(0x15f),'pQLBb':_0x4e2d4e(0x185),'EzumA':_0x4e2d4e(0x152),'fOcTC':_0x4e2d4e(0x14e),'jOKSk':_0x4e2d4e(0x1c8),'eQADe':function(_0x1fa465){return _0x1fa465();},'tWTac':function(_0x2fb96b){return _0x2fb96b();},'yJKxY':function(_0x2d363b,_0x5268e2){return _0x2d363b===_0x5268e2;},'tmUgb':'zjhhV','GokCg':_0x4e2d4e(0x174),'vDRIj':_0x4e2d4e(0x149),'PMXpk':function(_0x32cc01,_0x573857,_0x354eef,_0x278546,_0x1968d7,_0x354e19,_0x554188){return _0x32cc01(_0x573857,_0x354eef,_0x278546,_0x1968d7,_0x354e19,_0x554188);},'ziErM':_0x4e2d4e(0x1b0),'cZqYJ':_0x4e2d4e(0x19c),'YbVVU':function(_0xf25622,_0x36a3ef){return _0xf25622===_0x36a3ef;},'sUfDl':_0x4e2d4e(0x153),'zOXUH':_0x4e2d4e(0x145),'DYIVn':function(_0x2b7d86,_0x325236,_0x208d76,_0x55bf66){return _0x2b7d86(_0x325236,_0x208d76,_0x55bf66);},'XgLoB':function(_0x50b018,_0x593191){return _0x50b018===_0x593191;},'RLeMX':_0x4e2d4e(0x14d),'nyWDU':_0x4e2d4e(0x12d),'WskIK':function(_0x3bdafb,_0x4ac3ca){return _0x3bdafb(_0x4ac3ca);},'ZfVgg':function(_0x318d9e,_0x53a805){return _0x318d9e===_0x53a805;},'Ntatl':function(_0x5a1dfa,_0x1114d2){return _0x5a1dfa===_0x1114d2;},'vuqgL':function(_0x28fa4b,_0x2fbf98){return _0x28fa4b===_0x2fbf98;},'JeAeI':'NIWQU','qTPvZ':_0x4e2d4e(0x183),'lhupH':'invalid-input','RWdfw':'JvlRN','BHJDC':_0x4e2d4e(0x12f),'dkPkV':'<UsernamePlaceholder>','GsBHj':_0x4e2d4e(0x15c),'laLfq':function(_0x251f40,_0x15ca42,_0x1d6750,_0x43aa65,_0x472f75,_0x3e27b5,_0x1cf5ca){return _0x251f40(_0x15ca42,_0x1d6750,_0x43aa65,_0x472f75,_0x3e27b5,_0x1cf5ca);},'dKTqi':function(_0x23d650,_0x5766c1,_0xd42377){return _0x23d650(_0x5766c1,_0xd42377);},'tYTBa':function(_0x18a008,_0x2961be,_0x51fb7e,_0x51e49d,_0x58db1d,_0x1083bf){return _0x18a008(_0x2961be,_0x51fb7e,_0x51e49d,_0x58db1d,_0x1083bf);},'dWpqU':_0x4e2d4e(0x13a),'XhcBu':'PXHgV','OEXKF':_0x4e2d4e(0x130),'lVytd':_0x4e2d4e(0x157),'VZJjM':function(_0x17430f,_0x491075,_0x17521c){return _0x17430f(_0x491075,_0x17521c);},'KMxfq':function(_0x2d8e38,_0x3682af){return _0x2d8e38!==_0x3682af;},'inuMw':function(_0x3dea8c,_0xaa3d64,_0x3a9b28,_0x101061,_0x124d47,_0x4a7c31,_0x24b051){return _0x3dea8c(_0xaa3d64,_0x3a9b28,_0x101061,_0x124d47,_0x4a7c31,_0x24b051);},'yoFDt':_0x4e2d4e(0x192),'SvrIS':_0x4e2d4e(0x170),'zNyJm':_0x4e2d4e(0x1b5),'EvcBc':_0x4e2d4e(0x188),'dABsR':function(_0x3c67b4,_0x224215,_0x1d6755,_0x185136,_0x935e1b,_0x4221d5,_0xabc1a5){return _0x3c67b4(_0x224215,_0x1d6755,_0x185136,_0x935e1b,_0x4221d5,_0xabc1a5);},'LYNOg':function(_0x4d87d4,_0x48b1ea,_0x5f04c8,_0x2bec55,_0x4fc2c7,_0x310a4c,_0x3c8206){return _0x4d87d4(_0x48b1ea,_0x5f04c8,_0x2bec55,_0x4fc2c7,_0x310a4c,_0x3c8206);},'BEYNh':_0x4e2d4e(0x17a)};try{global_registry[_0x4e2d4e(0x1ac)]=_0x3ab98c[_0x4e2d4e(0x1b2)](uuidv4);!fs[_0x4e2d4e(0x164)](_0x3ab98c[_0x4e2d4e(0x131)](getCredentialsPath))&&(_0x3ab98c[_0x4e2d4e(0x13b)](_0x3ab98c['tmUgb'],_0x3ab98c['GokCg'])?(_0x2689eb[_0x4e2d4e(0x1c1)](_0x3ab98c['unCZB']),_0x13890c[_0x4e2d4e(0x19b)](0x0)):(console[_0x4e2d4e(0x1bc)](_0x3ab98c[_0x4e2d4e(0x1bf)]),await _0x3ab98c[_0x4e2d4e(0x12e)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c['ziErM'],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c['cZqYJ'],null,_0x4b9721),process['exit'](0x1)));_0x3ab98c['PMXpk'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes['INFO'],null,null,_0x4b9721);!_0x4b9721['gridId']&&(_0x3ab98c['YbVVU'](_0x3ab98c['sUfDl'],_0x3ab98c[_0x4e2d4e(0x19f)])?_0x55fc02='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4889be[_0x4e2d4e(0x139)]+_0x4e2d4e(0x16b)+_0x17966b['id']+_0x4e2d4e(0x16e)+_0x10e2ae[_0x4e2d4e(0x18d)]+_0x4e2d4e(0x175)+_0x2ea5ab['clusterId']+_0x4e2d4e(0x141):(console[_0x4e2d4e(0x1bc)](_0x3ab98c[_0x4e2d4e(0x17f)]),process['exit'](0x1)));const _0x1fc82b=JSON[_0x4e2d4e(0x171)](fs[_0x4e2d4e(0x1a5)](_0x3ab98c[_0x4e2d4e(0x1b2)](getCredentialsPath))),[_0xe5c4b2,_0x4a7b20]=await _0x3ab98c[_0x4e2d4e(0x199)](getGridDetails,_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x165)],_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x176)],_0x4b9721[_0x4e2d4e(0x193)]);if(_0x4a7b20){const _0x3215a9=_0x4a7b20[_0x4e2d4e(0x1c1)];let _0x1a0243='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x3215a9[_0x4e2d4e(0x139)]+_0x4e2d4e(0x16b)+_0x3215a9['id']+_0x4e2d4e(0x141);_0x4a7b20[_0x4e2d4e(0x18c)]&&_0x3ab98c[_0x4e2d4e(0x15a)](_0x4a7b20[_0x4e2d4e(0x1a0)],_0x3ab98c['RLeMX'])&&(_0x3ab98c[_0x4e2d4e(0x1c4)](_0x3ab98c[_0x4e2d4e(0x17b)],_0x3ab98c[_0x4e2d4e(0x17b)])?(_0x4ed9c4[_0x4e2d4e(0x1bc)](_0x3ab98c['RkpIS']),_0xeae4d1[_0x4e2d4e(0x19b)](0x1)):_0x1a0243=_0x4e2d4e(0x182)+_0x3215a9[_0x4e2d4e(0x139)]+_0x4e2d4e(0x16b)+_0x3215a9['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3215a9['clusterName']+_0x4e2d4e(0x175)+_0x3215a9[_0x4e2d4e(0x186)]+_0x4e2d4e(0x141));const _0x441b0f=await _0x3ab98c[_0x4e2d4e(0x198)](inputConfirmation,_0x1a0243);(_0x3ab98c[_0x4e2d4e(0x18a)](_0x441b0f,undefined)||_0x3ab98c[_0x4e2d4e(0x1aa)](_0x441b0f,null)||!(_0x3ab98c[_0x4e2d4e(0x1a3)](_0x441b0f[_0x4e2d4e(0x1c6)](),'y')||_0x3ab98c[_0x4e2d4e(0x1a3)](_0x441b0f[_0x4e2d4e(0x1c6)](),'n')))&&(_0x3ab98c[_0x4e2d4e(0x1b3)](_0x3ab98c[_0x4e2d4e(0x172)],_0x3ab98c[_0x4e2d4e(0x172)])?(console[_0x4e2d4e(0x1bc)](_0x3ab98c[_0x4e2d4e(0x1ad)]),await _0x3ab98c[_0x4e2d4e(0x12e)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c[_0x4e2d4e(0x1b7)],null,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1)):_0x4ecc67[_0x4e2d4e(0x19b)](0x0));_0x3ab98c[_0x4e2d4e(0x1aa)](_0x441b0f[_0x4e2d4e(0x1c6)](),'n')&&(_0x3ab98c[_0x4e2d4e(0x15a)](_0x3ab98c['RWdfw'],_0x3ab98c[_0x4e2d4e(0x1a2)])?(_0x50c36e[_0x4e2d4e(0x181)](_0x4e2d4e(0x13f)+_0xf1bc4c+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x15bc8e=![]):process['exit'](0x0));const _0x3da42b=WS_ENDPOINT[_0x4e2d4e(0x1be)](_0x3ab98c[_0x4e2d4e(0x160)],_0x1fc82b['Browserstack'][_0x4e2d4e(0x165)])[_0x4e2d4e(0x1be)](_0x3ab98c[_0x4e2d4e(0x17d)],_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x176)]),_0x1e87a1={};_0x1e87a1[_0x4e2d4e(0x13e)]=ws,_0x1e87a1[_0x4e2d4e(0x1a9)]=0x36ee80;const _0x1a00f9=new ReconnectingWebSocket(_0x3da42b,[],_0x1e87a1);global_registry[_0x4e2d4e(0x15e)]=_0x3215a9[_0x4e2d4e(0x1c2)];const _0x4719f7=_0x3215a9[_0x4e2d4e(0x1c5)],_0x326602=await _0x3ab98c['laLfq'](getCloudProviderObject,_0x4719f7,_0x3215a9[_0x4e2d4e(0x18d)],_0x3215a9['name'],_0x1a00f9,webSocketUtils,_0x4b9721),_0x5de98b=await _0x326602[_0x4e2d4e(0x19d)]();if(_0x5de98b){const _0x19e5e6=_0x3ab98c[_0x4e2d4e(0x198)](kebabCase,_0x3215a9[_0x4e2d4e(0x139)]),[_0x339a76,_0x1963ae,_0x480822,_0x325ea7,_0x23b777,_0x29027c]=await _0x3ab98c[_0x4e2d4e(0x161)](createK8sClient,_0x326602,_0x4b9721[_0x4e2d4e(0x136)]);let _0x443f99=!![];const _0x4d464d={};_0x4d464d[_0x4e2d4e(0x139)]=_0x19e5e6,await _0x339a76['readNamespace'](_0x4d464d)['then'](_0x1cd069=>{const _0x2c7e5a=_0x4e2d4e;_0x3ab98c[_0x2c7e5a(0x1c4)](_0x3ab98c[_0x2c7e5a(0x138)],_0x3ab98c[_0x2c7e5a(0x138)])?_0x45aa59[_0x2c7e5a(0x181)](_0x3ab98c[_0x2c7e5a(0x154)]):logger['info'](_0x2c7e5a(0x13f)+_0x19e5e6+_0x2c7e5a(0x191));})[_0x4e2d4e(0x1b1)](_0x1d89aa=>{const _0x156b75=_0x4e2d4e;_0x3ab98c['RYxGU'](_0x3ab98c[_0x156b75(0x180)],_0x3ab98c[_0x156b75(0x15d)])?_0x15c2af[_0x156b75(0x1c1)](_0x156b75(0x13f)+_0x76757d+_0x156b75(0x191)):(logger['warn'](_0x156b75(0x13f)+_0x19e5e6+_0x156b75(0x169)),_0x443f99=![]);});if(_0x443f99){await _0x3ab98c[_0x4e2d4e(0x1af)](removeGridComponents,_0x339a76,_0x1963ae,_0x480822,_0x325ea7,_0x19e5e6);if(_0x4a7b20['onlyGridInCluster']){const _0x596eb8=await _0x326602[_0x4e2d4e(0x155)]();if(_0x596eb8){if(_0x3ab98c[_0x4e2d4e(0x1b3)](_0x3ab98c[_0x4e2d4e(0x177)],_0x3ab98c[_0x4e2d4e(0x177)]))await _0x326602[_0x4e2d4e(0x143)](_0x339a76,_0x3215a9[_0x4e2d4e(0x1c2)]);else{const _0x3d2d20={};_0x3d2d20[_0x4e2d4e(0x142)]=_0x3ab98c[_0x4e2d4e(0x1ba)],_0x3d2d20[_0x4e2d4e(0x14c)]=_0x3ab98c['pQLBb'];const _0x4a5260={};_0x4a5260['description']=_0x3ab98c[_0x4e2d4e(0x148)],_0x4a5260[_0x4e2d4e(0x14c)]=_0x3ab98c[_0x4e2d4e(0x1b4)],_0x4a5260[_0x4e2d4e(0x13d)]=![];const _0x14347b={};return _0x14347b[_0x4e2d4e(0x1ab)]=_0x3d2d20,_0x14347b[_0x4e2d4e(0x146)]=_0x4a5260,_0x2deb94[_0x4e2d4e(0x1ae)](_0x4aa6ab[_0x4e2d4e(0x163)])[_0x4e2d4e(0x162)](_0x36344b)[_0x4e2d4e(0x19e)](_0x14347b)[_0x4e2d4e(0x1c8)](_0x3ab98c['jOKSk'])[_0x4e2d4e(0x194)];}}else _0x3ab98c[_0x4e2d4e(0x18a)](_0x3ab98c[_0x4e2d4e(0x1ca)],_0x3ab98c[_0x4e2d4e(0x1c3)])?_0x34f15b[_0x4e2d4e(0x181)](_0x4e2d4e(0x1a8)+_0x4fd95b[_0x4e2d4e(0x18d)]+_0x4e2d4e(0x16f)):logger[_0x4e2d4e(0x181)]('Cluster:\x20'+_0x3215a9['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x4e2d4e(0x181)](_0x3ab98c[_0x4e2d4e(0x154)]);const _0x46a7df='https://'+AG_API_URL+'/packages/cli/grid/'+_0x4b9721[_0x4e2d4e(0x193)],_0x2b4ae7={'method':_0x3ab98c['lVytd'],'headers':_0x3ab98c[_0x4e2d4e(0x161)](getAuthHeader,_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x165)],_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x176)]),'throwHttpErrors':![]},_0x866376=await _0x3ab98c[_0x4e2d4e(0x17c)](got,_0x46a7df,_0x2b4ae7);_0x3ab98c[_0x4e2d4e(0x137)](_0x866376,null)&&_0x3ab98c[_0x4e2d4e(0x1c4)](_0x866376,undefined)&&_0x3ab98c[_0x4e2d4e(0x13b)](_0x866376[_0x4e2d4e(0x17e)],0xc8)&&(logger[_0x4e2d4e(0x1c1)](_0x3ab98c[_0x4e2d4e(0x140)]),process[_0x4e2d4e(0x19b)](0x0)),logger['error'](_0x4e2d4e(0x168)+_0x866376[_0x4e2d4e(0x132)]),await _0x3ab98c['inuMw'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes['ERROR'],_0x3ab98c[_0x4e2d4e(0x1a1)],_0xe5c4b2,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1);}_0x3ab98c['XgLoB'](_0xe5c4b2[_0x4e2d4e(0x17e)],0x191)&&(logger['error'](_0x3ab98c[_0x4e2d4e(0x158)]),await _0x3ab98c['PMXpk'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c['ziErM'],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c['zNyJm'],null,_0x4b9721),process['exit'](0x1)),_0x3ab98c[_0x4e2d4e(0x1a3)](_0xe5c4b2[_0x4e2d4e(0x17e)],0x190)&&(logger[_0x4e2d4e(0x1bc)](JSON['parse'](_0xe5c4b2[_0x4e2d4e(0x132)])[_0x4e2d4e(0x187)]),await _0x3ab98c[_0x4e2d4e(0x133)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c['EvcBc'],null,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1)),logger[_0x4e2d4e(0x1bc)](_0x4e2d4e(0x16d)+JSON[_0x4e2d4e(0x190)](_0xe5c4b2)),await _0x3ab98c[_0x4e2d4e(0x1b6)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c['ziErM'],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c[_0x4e2d4e(0x1a1)],_0xe5c4b2,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1);}catch(_0x2a3813){logger[_0x4e2d4e(0x1bc)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x2a3813[_0x4e2d4e(0x195)]),await _0x3ab98c['LYNOg'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes['ERROR'],_0x3ab98c['BEYNh'],_0x2a3813,_0x4b9721),process['exit'](0x1);}};
1
+ function a11_0x2f43(_0x306073,_0x12feb4){const _0xc62a95=a11_0xc62a();return a11_0x2f43=function(_0x2f4399,_0x34d629){_0x2f4399=_0x2f4399-0x74;let _0x5bdcd1=_0xc62a95[_0x2f4399];return _0x5bdcd1;},a11_0x2f43(_0x306073,_0x12feb4);}function a11_0xc62a(){const _0x3ae1a5=['command','invalid-input','Successfully\x20deleted\x20the\x20grid','xCTWQ','../../utils/createk8sClient','clusterRegion','Yncbw','Pass\x20the\x20ID\x20of\x20the\x20Grid','rhKkB','swaBP','Ubqoa','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','aFlUS','skipTlsCertVerify','stack','9plbLNX','qfaKA','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Wlxwt','8YekAMt','init-not-called','gridId','<UsernamePlaceholder>','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','WebSocket','message','cJWCn','help','FeHZg','DELETE','epilogue','UcRwR','oxOqi','argv','1792552PYYTtz','cxGzU','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','invalid-grid-id','103164fVoEyX','then','connectionTimeout','PXpMM','Ynrzz','OETiY','PiwJM','41365LiskHk','vXINd','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','builder','got','pAXsH','ZXqjU','../../utils/instrumentationUtils','/packages/cli/grid/','grid-id','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','region','QuqoT','string','Browserstack','FzwfZ','1762518lZjPKW','Jeniq','description','../../utils/webSocketUtils','desc','CryAB','NBnAA','ENfZu','BwiOi','clusterName','IIiKN','error','bSxko','delete-grid-called','Skip\x20insecure\x20cert\x20verification.','deleteCluster','../../config/logger','exit','vmpBn','boolean','7UTpJIF','WTwrs','GfoIy','mkxZR','../../utils/userInput','options','oPutp','BMCkM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','catch','body','Delete\x20an\x20Automation\x20grid.','lyJSr','CMAMu','505532AOcAYz','ijWJJ','tKAMa','hWmnk','type','uuid','clusterId','uqSYI','grid','VYZjH','QEzKF','iKPSu','bNsvR','replace','xvHFJ','SdVqB','usage','QwHMt','toLowerCase','8351130kHLsRE','statusCode','delete','Cluster:\x20','warn','\x22\x20and\x20ID\x20','siajl','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','ERROR','Failed\x20to\x20delete\x20resources!\x20Error:\x20','https://','izOYg','ygELO','\x22\x20with\x20ID\x20','password','QuOIa','info','parse','bZCXN','965895cnaZyn','xaAmt','server-error','requestId','default','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','ZoBav','onlyGridInCluster','stringify','UzgVA','Namespace:\x20','../../utils/utilityMethods','unauthorised','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','name','XryJM','jeAok','zPmDe','isClusterPresent','BWqsT','MwFIN'];a11_0xc62a=function(){return _0x3ae1a5;};return a11_0xc62a();}const a11_0x24484d=a11_0x2f43;(function(_0x457e41,_0x52983e){const _0x50f023=a11_0x2f43,_0x6186e0=_0x457e41();while(!![]){try{const _0x317af3=-parseInt(_0x50f023(0x10b))/0x1+-parseInt(_0x50f023(0xa3))/0x2+parseInt(_0x50f023(0x104))/0x3*(-parseInt(_0x50f023(0xf1))/0x4)+parseInt(_0x50f023(0xc9))/0x5+parseInt(_0x50f023(0x81))/0x6*(-parseInt(_0x50f023(0x95))/0x7)+parseInt(_0x50f023(0x100))/0x8*(-parseInt(_0x50f023(0xed))/0x9)+parseInt(_0x50f023(0xb6))/0xa;if(_0x317af3===_0x52983e)break;else _0x6186e0['push'](_0x6186e0['shift']());}catch(_0x152cb7){_0x6186e0['push'](_0x6186e0['shift']());}}}(a11_0xc62a,0x2406b));const fs=require('fs'),got=require(a11_0x24484d(0x75)),{v4:uuidv4}=require(a11_0x24484d(0xa8)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x24484d(0x91)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x24484d(0x78)),{inputConfirmation}=require(a11_0x24484d(0x99)),{createK8sClient}=require(a11_0x24484d(0xe2)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x24484d(0xd4)),webSocketUtils=require(a11_0x24484d(0x84));exports[a11_0x24484d(0xde)]=a11_0x24484d(0xab),exports[a11_0x24484d(0x85)]=a11_0x24484d(0xa0),exports[a11_0x24484d(0x74)]=function(_0x4cd97b){const _0x1659e9=a11_0x24484d,_0x4f8445={};_0x4f8445[_0x1659e9(0xad)]=_0x1659e9(0xe5),_0x4f8445[_0x1659e9(0xca)]=_0x1659e9(0x7e),_0x4f8445[_0x1659e9(0xd2)]=_0x1659e9(0x8f),_0x4f8445[_0x1659e9(0x96)]='boolean',_0x4f8445[_0x1659e9(0xa6)]=_0x1659e9(0xf9);const _0x427acc=_0x4f8445,_0x39895a={};_0x39895a[_0x1659e9(0x83)]=_0x427acc[_0x1659e9(0xad)],_0x39895a[_0x1659e9(0xa7)]=_0x427acc['xaAmt'];const _0x4b80de={};_0x4b80de[_0x1659e9(0x83)]=_0x427acc[_0x1659e9(0xd2)],_0x4b80de[_0x1659e9(0xa7)]=_0x427acc[_0x1659e9(0x96)],_0x4b80de[_0x1659e9(0xcd)]=![];const _0x530d44={};return _0x530d44[_0x1659e9(0x7a)]=_0x39895a,_0x530d44['skip-tls-cert-verify']=_0x4b80de,_0x4cd97b[_0x1659e9(0xb3)](HELP_HEADER_MESSAGE[_0x1659e9(0xb8)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1659e9(0x9a)](_0x530d44)[_0x1659e9(0xf9)](_0x427acc[_0x1659e9(0xa6)])[_0x1659e9(0xff)];},exports['handler']=async function(_0x51ee24){const _0x11e4d3=a11_0x24484d,_0x49ed27={'iKPSu':_0x11e4d3(0x102),'Ynrzz':_0x11e4d3(0xe5),'VjAaC':_0x11e4d3(0x7e),'zPmDe':'Skip\x20insecure\x20cert\x20verification.','XXNzz':_0x11e4d3(0x94),'CryAB':_0x11e4d3(0xf9),'NBnAA':_0x11e4d3(0xe9),'PXpMM':function(_0x35f6a3,_0x30d7ce){return _0x35f6a3!==_0x30d7ce;},'VYZjH':_0x11e4d3(0xbc),'QuqoT':_0x11e4d3(0xe6),'UcRwR':function(_0x4e6199,_0x9ae209){return _0x4e6199!==_0x9ae209;},'vmpBn':_0x11e4d3(0xa2),'pAXsH':_0x11e4d3(0x80),'BWqsT':_0x11e4d3(0xe0),'vXINd':function(_0x1b53e7){return _0x1b53e7();},'FeHZg':function(_0x1b55c6,_0x4bfe8b){return _0x1b55c6===_0x4bfe8b;},'swaBP':_0x11e4d3(0xc8),'qfaKA':_0x11e4d3(0xaf),'EBACa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oxOqi':function(_0x13210b,_0x2fdcc6,_0x1a028e,_0x1940d1,_0x1f4592,_0x4bdaec,_0x3b8eba){return _0x13210b(_0x2fdcc6,_0x1a028e,_0x1940d1,_0x1f4592,_0x4bdaec,_0x3b8eba);},'XryJM':_0x11e4d3(0x8e),'izOYg':_0x11e4d3(0xf2),'BwiOi':_0x11e4d3(0xb4),'fTcOE':_0x11e4d3(0xe8),'xCTWQ':function(_0xe56680){return _0xe56680();},'Yncbw':function(_0xd2aad,_0x167d9b,_0xfcc7cc,_0x19d72b){return _0xd2aad(_0x167d9b,_0xfcc7cc,_0x19d72b);},'lyJSr':function(_0x105d3a,_0x2d84d5){return _0x105d3a===_0x2d84d5;},'LlYki':_0x11e4d3(0x7f),'ygELO':function(_0x4ede75,_0xe53f7b){return _0x4ede75===_0xe53f7b;},'OETiY':'rnKmT','Jeniq':function(_0x3dc5a4,_0x26251d){return _0x3dc5a4(_0x26251d);},'oPutp':function(_0x43bf06,_0x1e256a){return _0x43bf06===_0x1e256a;},'tKAMa':function(_0x4f5e0e,_0x1d9b59){return _0x4f5e0e===_0x1d9b59;},'PiwJM':'JAOvG','uqSYI':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GfoIy':_0x11e4d3(0xdf),'DkmCW':function(_0x8a6e42,_0x3b194a){return _0x8a6e42===_0x3b194a;},'mkxZR':_0x11e4d3(0xdd),'jeAok':_0x11e4d3(0xf4),'gMRfO':'<PasswordPlaceholder>','SdVqB':function(_0x394b18,_0x2689e0,_0x260c9c){return _0x394b18(_0x2689e0,_0x260c9c);},'ZbCkm':function(_0x92c3de,_0xe1a2c7,_0x250ad1,_0x2d3a5e,_0x32f1ba,_0x39de4b){return _0x92c3de(_0xe1a2c7,_0x250ad1,_0x2d3a5e,_0x32f1ba,_0x39de4b);},'xvHFJ':_0x11e4d3(0x8b),'mYpjx':_0x11e4d3(0xa4),'QuOIa':'gsPPW','ZoBav':_0x11e4d3(0xfb),'Wlxwt':function(_0x4b7779,_0x4a0648){return _0x4b7779!==_0x4a0648;},'cJWCn':function(_0x94c1bd,_0x159e4c,_0xdad128,_0x5bb552,_0x36af7a,_0x26154c,_0x3a655e){return _0x94c1bd(_0x159e4c,_0xdad128,_0x5bb552,_0x36af7a,_0x26154c,_0x3a655e);},'ZXqjU':_0x11e4d3(0xcb),'cxGzU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','BMCkM':function(_0x33aaa2,_0x413830,_0x52d1bb,_0x550489,_0x4a4341,_0x37e1d5,_0x3a4e91){return _0x33aaa2(_0x413830,_0x52d1bb,_0x550489,_0x4a4341,_0x37e1d5,_0x3a4e91);},'ENfZu':_0x11e4d3(0xd5),'bSxko':function(_0x5e483f,_0xea54ec){return _0x5e483f===_0xea54ec;},'ocHxl':_0x11e4d3(0x103),'aFlUS':'unknown-error'};try{global_registry[_0x11e4d3(0xcc)]=_0x49ed27[_0x11e4d3(0x10c)](uuidv4);!fs['existsSync'](_0x49ed27[_0x11e4d3(0x10c)](getCredentialsPath))&&(_0x49ed27[_0x11e4d3(0xfa)](_0x49ed27[_0x11e4d3(0xe7)],_0x49ed27[_0x11e4d3(0xee)])?(_0x5c5671['warn'](_0x11e4d3(0xd3)+_0x15df8e+_0x11e4d3(0xbd)),_0x2642a1=![]):(console[_0x11e4d3(0x8c)](_0x49ed27['EBACa']),await _0x49ed27[_0x11e4d3(0xfe)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes['ERROR'],_0x49ed27[_0x11e4d3(0xc1)],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)));_0x49ed27[_0x11e4d3(0xfe)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes['INFO'],null,null,_0x51ee24);!_0x51ee24['gridId']&&(_0x49ed27[_0x11e4d3(0xfa)](_0x49ed27[_0x11e4d3(0x89)],_0x49ed27['fTcOE'])?_0x5a9d05[_0x11e4d3(0xba)](_0x49ed27['iKPSu']):(console[_0x11e4d3(0x8c)](_0x49ed27['NBnAA']),process[_0x11e4d3(0x92)](0x1)));const _0x222220=JSON['parse'](fs['readFileSync'](_0x49ed27[_0x11e4d3(0xe1)](getCredentialsPath))),[_0x1bc323,_0x4699e2]=await _0x49ed27[_0x11e4d3(0xe4)](getGridDetails,_0x222220['Browserstack']['username'],_0x222220['Browserstack']['password'],_0x51ee24[_0x11e4d3(0xf3)]);if(_0x4699e2){const _0x8e0f94=_0x4699e2[_0x11e4d3(0xc6)];let _0x320bd5='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x8e0f94['name']+'\x22\x20and\x20ID\x20'+_0x8e0f94['id']+_0x11e4d3(0xf5);if(_0x4699e2[_0x11e4d3(0xd0)]&&_0x49ed27['lyJSr'](_0x4699e2['clusterSpawnedVia'],_0x49ed27['LlYki'])){if(_0x49ed27[_0x11e4d3(0xc2)](_0x49ed27[_0x11e4d3(0x109)],_0x49ed27[_0x11e4d3(0x109)]))_0x320bd5='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x8e0f94[_0x11e4d3(0xd7)]+'\x22\x20and\x20ID\x20'+_0x8e0f94['id']+_0x11e4d3(0x7b)+_0x8e0f94[_0x11e4d3(0x8a)]+_0x11e4d3(0xc3)+_0x8e0f94[_0x11e4d3(0xa9)]+_0x11e4d3(0xf5);else{const _0x1efb68={};_0x1efb68[_0x11e4d3(0x83)]=_0x49ed27[_0x11e4d3(0x108)],_0x1efb68[_0x11e4d3(0xa7)]=_0x49ed27['VjAaC'];const _0x3e8acf={};_0x3e8acf['description']=_0x49ed27[_0x11e4d3(0xda)],_0x3e8acf[_0x11e4d3(0xa7)]=_0x49ed27['XXNzz'],_0x3e8acf[_0x11e4d3(0xcd)]=![];const _0x33da35={};return _0x33da35[_0x11e4d3(0x7a)]=_0x1efb68,_0x33da35['skip-tls-cert-verify']=_0x3e8acf,_0xf2a9e0[_0x11e4d3(0xb3)](_0x8f63fb[_0x11e4d3(0xb8)])[_0x11e4d3(0xfc)](_0x124944)[_0x11e4d3(0x9a)](_0x33da35)[_0x11e4d3(0xf9)](_0x49ed27[_0x11e4d3(0x86)])[_0x11e4d3(0xff)];}}const _0x3b37a1=await _0x49ed27[_0x11e4d3(0x82)](inputConfirmation,_0x320bd5);(_0x49ed27[_0x11e4d3(0x9b)](_0x3b37a1,undefined)||_0x49ed27['ygELO'](_0x3b37a1,null)||!(_0x49ed27[_0x11e4d3(0xa5)](_0x3b37a1[_0x11e4d3(0xb5)](),'y')||_0x49ed27[_0x11e4d3(0xa1)](_0x3b37a1[_0x11e4d3(0xb5)](),'n')))&&(_0x49ed27[_0x11e4d3(0xfd)](_0x49ed27['PiwJM'],_0x49ed27[_0x11e4d3(0x10a)])?_0x51cb4f[_0x11e4d3(0x92)](0x0):(console[_0x11e4d3(0x8c)](_0x49ed27[_0x11e4d3(0xaa)]),await _0x49ed27[_0x11e4d3(0xfe)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x97)],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)));_0x49ed27[_0x11e4d3(0xa1)](_0x3b37a1[_0x11e4d3(0xb5)](),'n')&&(_0x49ed27['DkmCW'](_0x49ed27[_0x11e4d3(0x98)],_0x49ed27[_0x11e4d3(0x98)])?process[_0x11e4d3(0x92)](0x0):(_0x3fbe46['error'](_0x49ed27[_0x11e4d3(0x87)]),_0x40db6c[_0x11e4d3(0x92)](0x1)));const _0x555c34=WS_ENDPOINT['replace'](_0x49ed27[_0x11e4d3(0xd9)],_0x222220[_0x11e4d3(0x7f)]['username'])[_0x11e4d3(0xb0)](_0x49ed27['gMRfO'],_0x222220[_0x11e4d3(0x7f)][_0x11e4d3(0xc4)]),_0x2b46c4={};_0x2b46c4[_0x11e4d3(0xf6)]=ws,_0x2b46c4[_0x11e4d3(0x106)]=0x36ee80;const _0x192e2c=new ReconnectingWebSocket(_0x555c34,[],_0x2b46c4);global_registry[_0x11e4d3(0xe3)]=_0x8e0f94[_0x11e4d3(0x7c)];const _0x1aa480=_0x8e0f94['cloudProvider'],_0x39b8a7=await _0x49ed27[_0x11e4d3(0xfe)](getCloudProviderObject,_0x1aa480,_0x8e0f94[_0x11e4d3(0x8a)],_0x8e0f94[_0x11e4d3(0xd7)],_0x192e2c,webSocketUtils,_0x51ee24),_0x32d109=await _0x39b8a7[_0x11e4d3(0xdb)]();if(_0x32d109){const _0x301110=_0x49ed27[_0x11e4d3(0x82)](kebabCase,_0x8e0f94['name']),[_0x25e1f4,_0x19a6f3,_0x5504dc,_0x2c549b,_0x29eab5,_0x549ba2]=await _0x49ed27[_0x11e4d3(0xb2)](createK8sClient,_0x39b8a7,_0x51ee24[_0x11e4d3(0xeb)]);let _0x40819e=!![];const _0x3037db={};_0x3037db[_0x11e4d3(0xd7)]=_0x301110,await _0x25e1f4['readNamespace'](_0x3037db)[_0x11e4d3(0x105)](_0xad1091=>{const _0x2ff47b=_0x11e4d3;_0x49ed27['PXpMM'](_0x49ed27[_0x2ff47b(0xac)],_0x49ed27[_0x2ff47b(0x7d)])?logger['info'](_0x2ff47b(0xd3)+_0x301110+_0x2ff47b(0x10d)):_0x5d0e17=_0x2ff47b(0xd6)+_0x42a370[_0x2ff47b(0xd7)]+_0x2ff47b(0xbb)+_0x4a6260['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x1be3a1[_0x2ff47b(0x8a)]+_0x2ff47b(0xc3)+_0x1a6beb[_0x2ff47b(0xa9)]+_0x2ff47b(0xf5);})[_0x11e4d3(0x9e)](_0x10f43c=>{const _0x1fae69=_0x11e4d3;_0x49ed27[_0x1fae69(0xfd)](_0x49ed27[_0x1fae69(0x93)],_0x49ed27[_0x1fae69(0x76)])?(logger[_0x1fae69(0xba)]('Namespace:\x20'+_0x301110+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x40819e=![]):_0x5327c8[_0x1fae69(0xba)]('Cluster:\x20'+_0x245b80['clusterName']+_0x1fae69(0xef));});if(_0x40819e){await _0x49ed27['ZbCkm'](removeGridComponents,_0x25e1f4,_0x19a6f3,_0x5504dc,_0x2c549b,_0x301110);if(_0x4699e2[_0x11e4d3(0xd0)]){const _0x1224cf=await _0x39b8a7['isBrowserstackCluster']();_0x1224cf?_0x49ed27[_0x11e4d3(0xfa)](_0x49ed27[_0x11e4d3(0xb1)],_0x49ed27['mYpjx'])?_0x69e025[_0x11e4d3(0xc6)]('Namespace:\x20'+_0x466250+_0x11e4d3(0x10d)):await _0x39b8a7[_0x11e4d3(0x90)](_0x25e1f4,_0x8e0f94[_0x11e4d3(0x7c)]):_0x49ed27['oPutp'](_0x49ed27[_0x11e4d3(0xc5)],_0x49ed27[_0x11e4d3(0xc5)])?logger['warn'](_0x11e4d3(0xb9)+_0x8e0f94['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):(_0x6882af[_0x11e4d3(0xc6)](_0x49ed27[_0x11e4d3(0xdc)]),_0x44b393[_0x11e4d3(0x92)](0x0));}}}else logger[_0x11e4d3(0xba)](_0x49ed27[_0x11e4d3(0xae)]);const _0x552136=_0x11e4d3(0xc0)+AG_API_URL+_0x11e4d3(0x79)+_0x51ee24[_0x11e4d3(0xf3)],_0x3871ec={'method':_0x49ed27[_0x11e4d3(0xcf)],'headers':_0x49ed27['SdVqB'](getAuthHeader,_0x222220[_0x11e4d3(0x7f)]['username'],_0x222220[_0x11e4d3(0x7f)]['password']),'throwHttpErrors':![]},_0x50a42c=await _0x49ed27[_0x11e4d3(0xb2)](got,_0x552136,_0x3871ec);_0x49ed27[_0x11e4d3(0xf0)](_0x50a42c,null)&&_0x49ed27[_0x11e4d3(0x107)](_0x50a42c,undefined)&&_0x49ed27['lyJSr'](_0x50a42c[_0x11e4d3(0xb7)],0xc8)&&(logger[_0x11e4d3(0xc6)](_0x49ed27['BWqsT']),process[_0x11e4d3(0x92)](0x0)),logger[_0x11e4d3(0x8c)](_0x11e4d3(0xce)+_0x50a42c[_0x11e4d3(0x9f)]),await _0x49ed27[_0x11e4d3(0xf8)](sendInstrumentationEvent,_0x51ee24,_0x49ed27['XryJM'],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x77)],_0x1bc323,_0x51ee24),process[_0x11e4d3(0x92)](0x1);}_0x49ed27[_0x11e4d3(0xa5)](_0x1bc323[_0x11e4d3(0xb7)],0x191)&&(logger[_0x11e4d3(0x8c)](_0x49ed27[_0x11e4d3(0x101)]),await _0x49ed27[_0x11e4d3(0x9c)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x88)],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)),_0x49ed27[_0x11e4d3(0x8d)](_0x1bc323[_0x11e4d3(0xb7)],0x190)&&(logger[_0x11e4d3(0x8c)](JSON[_0x11e4d3(0xc7)](_0x1bc323['body'])[_0x11e4d3(0xf7)]),await _0x49ed27[_0x11e4d3(0xf8)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes['ERROR'],_0x49ed27['ocHxl'],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)),logger['error'](_0x11e4d3(0x9d)+JSON[_0x11e4d3(0xd1)](_0x1bc323)),await _0x49ed27['BMCkM'](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x77)],_0x1bc323,_0x51ee24),process[_0x11e4d3(0x92)](0x1);}catch(_0x4a9062){logger[_0x11e4d3(0x8c)](_0x11e4d3(0xbf)+_0x4a9062[_0x11e4d3(0xec)]),await _0x49ed27[_0x11e4d3(0x9c)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0xea)],_0x4a9062,_0x51ee24),process[_0x11e4d3(0x92)](0x1);}};
@@ -1 +1 @@
1
- function a12_0x274e(){const _0xd122e3=['msdQH','TxyIN','IjAYM','SVuCQ','vVVKz','OKFCl','usage','bstack-username','584ErACGP','4263096KArgtK','recommendCommands','uuid','hYGvS','DxVoh','error','Rmiwf','DwneH','RpVce','bstackAccesskey','MDLck','password','601478BGMdMv','description','TQhva','argv','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Browserstack','../utils/userInput','bstackUsername','IAJSv','XfXWg','epilogue','zugWc','wrong-creds','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/logger','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','mkdirSync','uYwIw','BROWSERSTACK_ACCESS_KEY','desc','env','string','mNRDA','stringify','ZNBrR','exit','JjrWS','1VpddTO','KXQpe','init','9ecKxij','https://','type','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','518130huAjuL','tImnU','nuwjV','TETeO','tbrUr','ylPtR','8825QfvEQR','xxRhE','parse','996KxNvfr','statusCode','options','../utils/instrumentationUtils','bstack-accesskey','kvRVt','jxwSt','readFileSync','unknown-error','../config/constants','geNfL','jIszT','OBRNk','1546727nVtFsY','got','mGLhF','strict','QONcn','52784ZTkhNc','help','command','/automate/plan.json','QeUWg','writeFileSync','TEhmm','kzUyc','yTjaO','11vUmRoA','xOKXS','tacBn','ItIoB','VtyMF','BROWSERSTACK_USERNAME','513woFwiH','username','LQPfU','existsSync','nHmaU','gTTfm','debug','evPtW','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','SSzDH'];a12_0x274e=function(){return _0xd122e3;};return a12_0x274e();}const a12_0x5420ab=a12_0x29f0;function a12_0x29f0(_0x5f33c5,_0x395a52){const _0x274e8c=a12_0x274e();return a12_0x29f0=function(_0x29f074,_0x203037){_0x29f074=_0x29f074-0x174;let _0xafde91=_0x274e8c[_0x29f074];return _0xafde91;},a12_0x29f0(_0x5f33c5,_0x395a52);}(function(_0x531fce,_0x5286e4){const _0x49119b=a12_0x29f0,_0x401605=_0x531fce();while(!![]){try{const _0x488a9b=parseInt(_0x49119b(0x19d))/0x1*(parseInt(_0x49119b(0x181))/0x2)+-parseInt(_0x49119b(0x1ce))/0x3*(parseInt(_0x49119b(0x174))/0x4)+-parseInt(_0x49119b(0x1aa))/0x5*(parseInt(_0x49119b(0x1ad))/0x6)+-parseInt(_0x49119b(0x1ba))/0x7+parseInt(_0x49119b(0x1bf))/0x8*(parseInt(_0x49119b(0x1a0))/0x9)+parseInt(_0x49119b(0x1a4))/0xa*(parseInt(_0x49119b(0x1c8))/0xb)+parseInt(_0x49119b(0x175))/0xc;if(_0x488a9b===_0x5286e4)break;else _0x401605['push'](_0x401605['shift']());}catch(_0x41be2f){_0x401605['push'](_0x401605['shift']());}}}(a12_0x274e,0x2ad83));const fs=require('fs'),util=require('util'),got=require(a12_0x5420ab(0x1bb)),{v4:uuidv4}=require(a12_0x5420ab(0x177)),{logger}=require(a12_0x5420ab(0x18f)),{inputBstackKeys}=require(a12_0x5420ab(0x187)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5420ab(0x1b6)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x5420ab(0x1b0));exports[a12_0x5420ab(0x1c1)]=a12_0x5420ab(0x19f),exports[a12_0x5420ab(0x195)]=a12_0x5420ab(0x1d6),exports[a12_0x5420ab(0x191)]=function(_0x107d14){const _0x47942d=a12_0x5420ab,_0x9937fc={};_0x9937fc[_0x47942d(0x17d)]=_0x47942d(0x18e),_0x9937fc[_0x47942d(0x18c)]=_0x47942d(0x197),_0x9937fc[_0x47942d(0x19a)]=_0x47942d(0x190),_0x9937fc[_0x47942d(0x17f)]=_0x47942d(0x1c0);const _0x3c1f31=_0x9937fc,_0x13c1a9={};_0x13c1a9[_0x47942d(0x182)]=_0x3c1f31[_0x47942d(0x17d)],_0x13c1a9['type']=_0x3c1f31[_0x47942d(0x18c)];const _0x571921={};_0x571921['description']=_0x3c1f31[_0x47942d(0x19a)],_0x571921[_0x47942d(0x1a2)]=_0x3c1f31[_0x47942d(0x18c)];const _0x56d21c={};return _0x56d21c[_0x47942d(0x1df)]=_0x13c1a9,_0x56d21c[_0x47942d(0x1b1)]=_0x571921,_0x107d14[_0x47942d(0x1de)](HELP_HEADER_MESSAGE[_0x47942d(0x19f)])[_0x47942d(0x18b)](HELP_FOOTER_MESSAGE)[_0x47942d(0x1af)](_0x56d21c)[_0x47942d(0x176)]()[_0x47942d(0x1bd)]()[_0x47942d(0x1c0)](_0x3c1f31['MDLck'])[_0x47942d(0x184)];},exports['handler']=async function(_0x44347c){const _0x2c0c49=a12_0x5420ab,_0x3fa42f={'mGLhF':function(_0x1f8c48){return _0x1f8c48();},'SSzDH':'utf-8','ItIoB':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','OKFCl':'string','xEofv':_0x2c0c49(0x190),'TxyIN':_0x2c0c49(0x1c0),'nHmaU':function(_0x37604a,_0x27ca51,_0x441d6d,_0x3d6819,_0x2e6ab0,_0x3ce1d6,_0x6e3549){return _0x37604a(_0x27ca51,_0x441d6d,_0x3d6819,_0x2e6ab0,_0x3ce1d6,_0x6e3549);},'hYGvS':'init-called','XfXWg':function(_0x3f34a4,_0x46aba3){return _0x3f34a4===_0x46aba3;},'msdQH':'YErZA','kvRVt':function(_0x4a4dcd,_0x588ab5){return _0x4a4dcd!==_0x588ab5;},'gTTfm':'SIwwX','tbrUr':_0x2c0c49(0x183),'IjAYM':_0x2c0c49(0x1c7),'JjrWS':_0x2c0c49(0x1ca),'TETeO':function(_0x1dc6ee,_0xe98835){return _0x1dc6ee!==_0xe98835;},'jIszT':_0x2c0c49(0x1c5),'xOKXS':function(_0xd049d4,_0x471da5){return _0xd049d4===_0x471da5;},'evPtW':_0x2c0c49(0x1c3),'nuwjV':_0x2c0c49(0x17c),'DxVoh':_0x2c0c49(0x1a3),'mNRDA':function(_0x348ac4){return _0x348ac4();},'QONcn':'GET','vVVKz':function(_0x78a988,_0x3233c4,_0x103fdc){return _0x78a988(_0x3233c4,_0x103fdc);},'Rmiwf':function(_0x5a3ae9,_0x5646f9,_0xd6a6d){return _0x5a3ae9(_0x5646f9,_0xd6a6d);},'ylPtR':function(_0x381d01,_0x1573b9){return _0x381d01!==_0x1573b9;},'OBRNk':function(_0x5a819b,_0x277b93){return _0x5a819b===_0x277b93;},'nZXmk':function(_0x1728dd,_0x3eb76c){return _0x1728dd===_0x3eb76c;},'LQPfU':_0x2c0c49(0x1c6),'aSbnj':_0x2c0c49(0x1db),'gNokX':_0x2c0c49(0x189),'geNfL':'WFiMQ','tImnU':_0x2c0c49(0x1ab),'KXQpe':_0x2c0c49(0x1b3),'VtyMF':_0x2c0c49(0x185),'lXPEw':_0x2c0c49(0x18d),'uYwIw':_0x2c0c49(0x1b5)};try{global_registry['requestId']=_0x3fa42f['mGLhF'](uuidv4),_0x3fa42f[_0x2c0c49(0x1d2)](sendInstrumentationEvent,_0x44347c,_0x3fa42f[_0x2c0c49(0x178)],messageTypes['INFO'],null,null,_0x44347c);const _0x449dba=_0x3fa42f[_0x2c0c49(0x1bc)](getDirForConfig);if(!fs['existsSync'](_0x449dba)){if(_0x3fa42f[_0x2c0c49(0x18a)](_0x3fa42f[_0x2c0c49(0x1d8)],_0x3fa42f[_0x2c0c49(0x1d8)]))fs['mkdirSync'](_0x449dba);else{let _0x4c7c7d={};const _0x2d5229=_0x3fa42f[_0x2c0c49(0x1bc)](_0x3ac810);_0x1f93a5['existsSync'](_0x2d5229)&&(_0x4c7c7d=_0x54098c[_0x2c0c49(0x1ac)](_0x5d8da7[_0x2c0c49(0x1b4)](_0x2d5229,_0x3fa42f[_0x2c0c49(0x1d7)])));const _0x538bcf={};_0x538bcf['username']=_0x137cd7,_0x538bcf[_0x2c0c49(0x180)]=_0x207c0e,_0x4c7c7d[_0x2c0c49(0x186)]=_0x538bcf,_0x3b97eb[_0x2c0c49(0x1c4)](_0x2d5229,_0x4c01b3[_0x2c0c49(0x199)](_0x4c7c7d)),_0x444bae['exit'](0x0);}}let _0x5dc91a,_0x41c22c;process[_0x2c0c49(0x196)]['BROWSERSTACK_USERNAME']&&(_0x3fa42f[_0x2c0c49(0x1b2)](_0x3fa42f[_0x2c0c49(0x1d3)],_0x3fa42f[_0x2c0c49(0x1a8)])?_0x5dc91a=process['env'][_0x2c0c49(0x1cd)]:_0x26b062=_0x593323[_0x2c0c49(0x1ac)](_0x371ab0[_0x2c0c49(0x1b4)](_0x5c776c,_0x3fa42f['SSzDH'])));process[_0x2c0c49(0x196)][_0x2c0c49(0x194)]&&(_0x3fa42f[_0x2c0c49(0x1b2)](_0x3fa42f[_0x2c0c49(0x1da)],_0x3fa42f[_0x2c0c49(0x19c)])?_0x41c22c=process['env'][_0x2c0c49(0x194)]:_0x8a0c2f[_0x2c0c49(0x192)](_0x694869));_0x44347c[_0x2c0c49(0x188)]&&(_0x3fa42f[_0x2c0c49(0x1a7)](_0x3fa42f[_0x2c0c49(0x1b8)],_0x3fa42f[_0x2c0c49(0x1b8)])?_0x5265e9=_0x26a9d3['bstackAccesskey']:_0x5dc91a=_0x44347c[_0x2c0c49(0x188)]);_0x44347c[_0x2c0c49(0x17e)]&&(_0x3fa42f[_0x2c0c49(0x1c9)](_0x3fa42f[_0x2c0c49(0x1d5)],_0x3fa42f[_0x2c0c49(0x1d5)])?_0x41c22c=_0x44347c[_0x2c0c49(0x17e)]:_0x5abad1=!![]);if(_0x3fa42f[_0x2c0c49(0x18a)](_0x5dc91a,undefined)||_0x3fa42f[_0x2c0c49(0x1c9)](_0x41c22c,undefined)){if(_0x3fa42f['xOKXS'](_0x3fa42f[_0x2c0c49(0x1a6)],_0x3fa42f['nuwjV'])){logger[_0x2c0c49(0x1d4)](_0x3fa42f[_0x2c0c49(0x179)]);const [_0x1e47d8,_0x2e069c]=await _0x3fa42f[_0x2c0c49(0x198)](inputBstackKeys);_0x5dc91a=_0x1e47d8,_0x41c22c=_0x2e069c;}else{const _0x3e00c1={};_0x3e00c1[_0x2c0c49(0x182)]=_0x3fa42f[_0x2c0c49(0x1cb)],_0x3e00c1[_0x2c0c49(0x1a2)]=_0x3fa42f[_0x2c0c49(0x1dd)];const _0x369d59={};_0x369d59['description']=_0x3fa42f['xEofv'],_0x369d59[_0x2c0c49(0x1a2)]=_0x3fa42f[_0x2c0c49(0x1dd)];const _0x1b6026={};return _0x1b6026[_0x2c0c49(0x1df)]=_0x3e00c1,_0x1b6026[_0x2c0c49(0x1b1)]=_0x369d59,_0x92d283['usage'](_0x16d4bd['init'])['epilogue'](_0x24aba8)[_0x2c0c49(0x1af)](_0x1b6026)[_0x2c0c49(0x176)]()['strict']()['help'](_0x3fa42f[_0x2c0c49(0x1d9)])[_0x2c0c49(0x184)];}}let _0xa6b27c=![];const _0x4c8f6e=_0x2c0c49(0x1a1)+_0x5dc91a+':'+_0x41c22c+'@'+BS_API_URL+_0x2c0c49(0x1c2),_0xd150f={'method':_0x3fa42f[_0x2c0c49(0x1be)],'headers':_0x3fa42f[_0x2c0c49(0x1dc)](getAuthHeader,_0x5dc91a,_0x41c22c),'throwHttpErrors':![]},_0x49a9c5=await _0x3fa42f[_0x2c0c49(0x17b)](got,_0x4c8f6e,_0xd150f);_0x3fa42f['ylPtR'](_0x49a9c5,null)&&_0x3fa42f[_0x2c0c49(0x1a9)](_0x49a9c5,undefined)&&_0x3fa42f[_0x2c0c49(0x1b9)](_0x49a9c5[_0x2c0c49(0x1ae)],0xc8)&&(_0x3fa42f['nZXmk'](_0x3fa42f[_0x2c0c49(0x1d0)],_0x3fa42f['aSbnj'])?_0x45c433=_0x32a960[_0x2c0c49(0x196)][_0x2c0c49(0x1cd)]:_0xa6b27c=!![]);if(_0xa6b27c){if(_0x3fa42f[_0x2c0c49(0x1a7)](_0x3fa42f['gNokX'],_0x3fa42f[_0x2c0c49(0x1b7)])){let _0x32f104={};const _0x54ba6d=_0x3fa42f[_0x2c0c49(0x1bc)](getCredentialsPath);fs[_0x2c0c49(0x1d1)](_0x54ba6d)&&(_0x3fa42f[_0x2c0c49(0x1a7)](_0x3fa42f[_0x2c0c49(0x1a5)],_0x3fa42f[_0x2c0c49(0x19e)])?_0x32f104=JSON[_0x2c0c49(0x1ac)](fs[_0x2c0c49(0x1b4)](_0x54ba6d,_0x3fa42f[_0x2c0c49(0x1d7)])):_0x447b00=_0x451c50['bstackUsername']);const _0x31b803={};_0x31b803[_0x2c0c49(0x1cf)]=_0x5dc91a,_0x31b803['password']=_0x41c22c,_0x32f104[_0x2c0c49(0x186)]=_0x31b803,fs[_0x2c0c49(0x1c4)](_0x54ba6d,JSON[_0x2c0c49(0x199)](_0x32f104)),process[_0x2c0c49(0x19b)](0x0);}else _0x5e1f65=_0x20a69c[_0x2c0c49(0x196)]['BROWSERSTACK_ACCESS_KEY'];}else logger[_0x2c0c49(0x17a)](_0x3fa42f[_0x2c0c49(0x1cc)]),await _0x3fa42f[_0x2c0c49(0x1d2)](sendInstrumentationEvent,_0x44347c,_0x3fa42f['hYGvS'],messageTypes['ERROR'],_0x3fa42f['lXPEw'],null,_0x44347c),process[_0x2c0c49(0x19b)](0x1);}catch(_0x15dcb4){logger[_0x2c0c49(0x17a)](_0x15dcb4['stack']),await _0x3fa42f['nHmaU'](sendInstrumentationEvent,_0x44347c,_0x3fa42f[_0x2c0c49(0x178)],messageTypes['ERROR'],_0x3fa42f[_0x2c0c49(0x193)],_0x15dcb4,_0x44347c),process[_0x2c0c49(0x19b)](0x1);}};
1
+ function a12_0x5d0a(_0x423f7b,_0x5cdc33){const _0x3a1ad9=a12_0x3a1a();return a12_0x5d0a=function(_0x5d0a6f,_0x310aff){_0x5d0a6f=_0x5d0a6f-0x157;let _0x50b8f1=_0x3a1ad9[_0x5d0a6f];return _0x50b8f1;},a12_0x5d0a(_0x423f7b,_0x5cdc33);}const a12_0x16bf97=a12_0x5d0a;(function(_0x1c4f45,_0x58f9a8){const _0x45456f=a12_0x5d0a,_0x11adec=_0x1c4f45();while(!![]){try{const _0x56bd84=parseInt(_0x45456f(0x19a))/0x1*(parseInt(_0x45456f(0x17f))/0x2)+-parseInt(_0x45456f(0x1bb))/0x3*(parseInt(_0x45456f(0x166))/0x4)+-parseInt(_0x45456f(0x191))/0x5*(-parseInt(_0x45456f(0x1be))/0x6)+parseInt(_0x45456f(0x1b0))/0x7+parseInt(_0x45456f(0x18b))/0x8*(-parseInt(_0x45456f(0x16b))/0x9)+parseInt(_0x45456f(0x19f))/0xa*(parseInt(_0x45456f(0x1a7))/0xb)+-parseInt(_0x45456f(0x192))/0xc;if(_0x56bd84===_0x58f9a8)break;else _0x11adec['push'](_0x11adec['shift']());}catch(_0x2d3796){_0x11adec['push'](_0x11adec['shift']());}}}(a12_0x3a1a,0x65ac3));const fs=require('fs'),util=require(a12_0x16bf97(0x17b)),got=require(a12_0x16bf97(0x188)),{v4:uuidv4}=require(a12_0x16bf97(0x16f)),{logger}=require(a12_0x16bf97(0x16c)),{inputBstackKeys}=require(a12_0x16bf97(0x1ac)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x16bf97(0x19b)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x16bf97(0x18f)),{sendInstrumentationEvent}=require(a12_0x16bf97(0x159));function a12_0x3a1a(){const _0xa01603=['344QcPZNj','baRPA','vfXKV','readFileSync','../utils/utilityMethods','init','235viBkex','1839168gOEnbh','password','cUhML','handler','AnvRM','BJOVj','env','bstackUsername','451196zPfTpQ','../config/constants','debug','ERROR','epilogue','99910HbbosI','HWEbR','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','username','mkdirSync','CqHDT','anWFw','writeFileSync','44xcveTq','YneCZ','ERHzu','command','builder','../utils/userInput','GdFVC','BROWSERSTACK_USERNAME','iYZNA','983983oEPDOt','description','LXkzP','/automate/plan.json','qggWq','parse','bstack-accesskey','EChHE','bstack-username','help','WTAJD','2733wTkMGC','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','hjbny','62160JpoRTy','bvkqo','ZISSP','ophgb','zODXw','error','type','../utils/instrumentationUtils','string','hCdrk','dvvLs','fkoMl','RNAsp','existsSync','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','recommendCommands','options','nNdSU','uevpw','zwqRw','2148HkAzxE','hTQho','YolQe','exit','bstackAccesskey','12501TRyJqX','../config/logger','Dvnof','Browserstack','uuid','usage','Zupjf','AXUFH','UrbLI','stack','BROWSERSTACK_ACCESS_KEY','ondJs','INFO','BLFsP','stringify','statusCode','util','EztVR','OdolD','strict','2vnIhOs','argv','wrong-creds','lpaen','SQwjJ','iAqJY','nNWfn','IvwJh','JGsOi','got','hXCSl','vbZnz'];a12_0x3a1a=function(){return _0xa01603;};return a12_0x3a1a();}exports[a12_0x16bf97(0x1aa)]=a12_0x16bf97(0x190),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x16bf97(0x1ab)]=function(_0x6455be){const _0x57747a=a12_0x16bf97,_0x512df1={};_0x512df1[_0x57747a(0x1c1)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x512df1['ERHzu']='string',_0x512df1[_0x57747a(0x15e)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x512df1[_0x57747a(0x1c0)]='help';const _0xd0f7c7=_0x512df1,_0x484bd5={};_0x484bd5[_0x57747a(0x1b1)]=_0xd0f7c7[_0x57747a(0x1c1)],_0x484bd5[_0x57747a(0x158)]=_0xd0f7c7[_0x57747a(0x1a9)];const _0x2dc41b={};_0x2dc41b['description']=_0xd0f7c7[_0x57747a(0x15e)],_0x2dc41b['type']=_0xd0f7c7[_0x57747a(0x1a9)];const _0x4a9ca9={};return _0x4a9ca9['bstack-username']=_0x484bd5,_0x4a9ca9[_0x57747a(0x1b6)]=_0x2dc41b,_0x6455be[_0x57747a(0x170)](HELP_HEADER_MESSAGE['init'])[_0x57747a(0x19e)](HELP_FOOTER_MESSAGE)['options'](_0x4a9ca9)[_0x57747a(0x161)]()[_0x57747a(0x17e)]()['help'](_0xd0f7c7['ZISSP'])[_0x57747a(0x180)];},exports[a12_0x16bf97(0x195)]=async function(_0x2da845){const _0x116786=a12_0x16bf97,_0x53d517={'nNdSU':_0x116786(0x1a1),'lpaen':_0x116786(0x15a),'VcLJM':_0x116786(0x160),'YolQe':_0x116786(0x1b9),'YneCZ':'utf-8','WTAJD':function(_0xc1e65a){return _0xc1e65a();},'CqHDT':function(_0x499c38,_0x2b4ecd,_0x1583a9,_0xa9164a,_0x4eb51d,_0x4ad9e7,_0x2ab87a){return _0x499c38(_0x2b4ecd,_0x1583a9,_0xa9164a,_0x4eb51d,_0x4ad9e7,_0x2ab87a);},'uevpw':'init-called','iYZNA':function(_0xe9ce4c,_0x24a233){return _0xe9ce4c===_0x24a233;},'WOZlA':'saRLV','anWFw':_0x116786(0x165),'JGsOi':function(_0x4ba7e9,_0x43f923){return _0x4ba7e9!==_0x43f923;},'baRPA':'IrXvl','YraOq':_0x116786(0x16d),'nNWfn':function(_0xda8772,_0x13cea5){return _0xda8772===_0x13cea5;},'UrbLI':'FNOCx','EChHE':function(_0x3cc0a9,_0x5ec89a){return _0x3cc0a9===_0x5ec89a;},'LXkzP':'XXgim','hjbny':_0x116786(0x167),'qggWq':function(_0xbec88d,_0x497357){return _0xbec88d===_0x497357;},'cUhML':function(_0x222aad,_0x1a2166){return _0x222aad===_0x1a2166;},'fkoMl':_0x116786(0x184),'zNhAb':_0x116786(0x1bc),'usDuh':function(_0x594da4){return _0x594da4();},'bIyga':'GET','SQwjJ':function(_0x37c934,_0x42fdc1,_0x853a78){return _0x37c934(_0x42fdc1,_0x853a78);},'dvvLs':function(_0x1425fa,_0x45e039,_0x2abd75){return _0x1425fa(_0x45e039,_0x2abd75);},'sVTYu':function(_0x19ae2d,_0x3516cb){return _0x19ae2d===_0x3516cb;},'ondJs':function(_0x2a0b0e,_0x59aac2){return _0x2a0b0e===_0x59aac2;},'hXCSl':_0x116786(0x186),'Zupjf':_0x116786(0x1bf),'OdolD':_0x116786(0x18a),'BJOVj':_0x116786(0x172),'vfXKV':function(_0x106cb8){return _0x106cb8();},'GISwW':function(_0x4497cb,_0xa6ebf6){return _0x4497cb!==_0xa6ebf6;},'GdFVC':_0x116786(0x1a0),'AnvRM':_0x116786(0x17c),'mVuzW':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','hCdrk':_0x116786(0x181),'zODXw':function(_0x4cee88,_0x5c046b,_0x2a3251,_0x3d2be2,_0x3c5da1,_0x30f9a3,_0x5017c7){return _0x4cee88(_0x5c046b,_0x2a3251,_0x3d2be2,_0x3c5da1,_0x30f9a3,_0x5017c7);},'BLFsP':'unknown-error'};try{global_registry['requestId']=_0x53d517['WTAJD'](uuidv4),_0x53d517[_0x116786(0x1a4)](sendInstrumentationEvent,_0x2da845,_0x53d517[_0x116786(0x164)],messageTypes[_0x116786(0x177)],null,null,_0x2da845);const _0x7ce280=_0x53d517[_0x116786(0x1ba)](getDirForConfig);if(!fs[_0x116786(0x15f)](_0x7ce280)){if(_0x53d517[_0x116786(0x1af)](_0x53d517['WOZlA'],_0x53d517[_0x116786(0x1a5)])){const _0x16df5f={};_0x16df5f['description']=_0x53d517[_0x116786(0x163)],_0x16df5f['type']=_0x53d517[_0x116786(0x182)];const _0x2356bc={};_0x2356bc[_0x116786(0x1b1)]=_0x53d517['VcLJM'],_0x2356bc[_0x116786(0x158)]=_0x53d517['lpaen'];const _0x206cfa={};return _0x206cfa[_0x116786(0x1b8)]=_0x16df5f,_0x206cfa[_0x116786(0x1b6)]=_0x2356bc,_0x46104b[_0x116786(0x170)](_0x317f65['init'])[_0x116786(0x19e)](_0x50e4c3)[_0x116786(0x162)](_0x206cfa)[_0x116786(0x161)]()[_0x116786(0x17e)]()[_0x116786(0x1b9)](_0x53d517[_0x116786(0x168)])[_0x116786(0x180)];}else fs[_0x116786(0x1a3)](_0x7ce280);}let _0x1a3219,_0xe221f2;process['env'][_0x116786(0x1ae)]&&(_0x53d517[_0x116786(0x187)](_0x53d517[_0x116786(0x18c)],_0x53d517['YraOq'])?_0x1a3219=process[_0x116786(0x198)][_0x116786(0x1ae)]:_0x26e500=_0x3c3a94[_0x116786(0x1b5)](_0x57df88['readFileSync'](_0x3ac1de,_0x53d517[_0x116786(0x1a8)])));process['env'][_0x116786(0x175)]&&(_0x53d517[_0x116786(0x185)](_0x53d517[_0x116786(0x173)],_0x53d517['UrbLI'])?_0xe221f2=process['env'][_0x116786(0x175)]:_0x591b81=_0x493ca4[_0x116786(0x198)][_0x116786(0x1ae)]);_0x2da845[_0x116786(0x199)]&&(_0x53d517[_0x116786(0x1b7)](_0x53d517[_0x116786(0x1b2)],_0x53d517[_0x116786(0x1b2)])?_0x1a3219=_0x2da845[_0x116786(0x199)]:_0x1d35af=_0x2ced0a[_0x116786(0x198)][_0x116786(0x175)]);_0x2da845['bstackAccesskey']&&(_0x53d517[_0x116786(0x187)](_0x53d517[_0x116786(0x1bd)],_0x53d517[_0x116786(0x1bd)])?_0x1ad445[_0x116786(0x1a3)](_0xb7b7ff):_0xe221f2=_0x2da845['bstackAccesskey']);if(_0x53d517[_0x116786(0x1b4)](_0x1a3219,undefined)||_0x53d517[_0x116786(0x1b4)](_0xe221f2,undefined)){if(_0x53d517[_0x116786(0x194)](_0x53d517['fkoMl'],_0x53d517[_0x116786(0x15d)])){logger[_0x116786(0x19c)](_0x53d517['zNhAb']);const [_0x147f1b,_0x294ffc]=await _0x53d517['usDuh'](inputBstackKeys);_0x1a3219=_0x147f1b,_0xe221f2=_0x294ffc;}else{let _0x26f138={};const _0x56df0d=_0x53d517[_0x116786(0x1ba)](_0x1f03e5);_0x44a3df['existsSync'](_0x56df0d)&&(_0x26f138=_0x6c8fd[_0x116786(0x1b5)](_0x1bbf3e['readFileSync'](_0x56df0d,_0x53d517[_0x116786(0x1a8)])));const _0x1f94ae={};_0x1f94ae[_0x116786(0x1a2)]=_0x4beed3,_0x1f94ae[_0x116786(0x193)]=_0x294022,_0x26f138[_0x116786(0x16e)]=_0x1f94ae,_0x48dca8['writeFileSync'](_0x56df0d,_0xbc9cce[_0x116786(0x179)](_0x26f138)),_0x5e6617[_0x116786(0x169)](0x0);}}let _0x35bc8f=![];const _0x264e14='https://'+_0x1a3219+':'+_0xe221f2+'@'+BS_API_URL+_0x116786(0x1b3),_0x477415={'method':_0x53d517['bIyga'],'headers':_0x53d517[_0x116786(0x183)](getAuthHeader,_0x1a3219,_0xe221f2),'throwHttpErrors':![]},_0x22f5d1=await _0x53d517[_0x116786(0x15c)](got,_0x264e14,_0x477415);_0x53d517['JGsOi'](_0x22f5d1,null)&&_0x53d517[_0x116786(0x187)](_0x22f5d1,undefined)&&_0x53d517['sVTYu'](_0x22f5d1[_0x116786(0x17a)],0xc8)&&(_0x53d517[_0x116786(0x176)](_0x53d517[_0x116786(0x189)],_0x53d517[_0x116786(0x171)])?_0xd2fb95=_0x2337a4[_0x116786(0x199)]:_0x35bc8f=!![]);if(_0x35bc8f){if(_0x53d517[_0x116786(0x187)](_0x53d517[_0x116786(0x17d)],_0x53d517[_0x116786(0x197)])){let _0x3839e8={};const _0x177eda=_0x53d517[_0x116786(0x18d)](getCredentialsPath);fs[_0x116786(0x15f)](_0x177eda)&&(_0x53d517['GISwW'](_0x53d517[_0x116786(0x1ad)],_0x53d517[_0x116786(0x196)])?_0x3839e8=JSON[_0x116786(0x1b5)](fs[_0x116786(0x18e)](_0x177eda,_0x53d517['YneCZ'])):_0x36e151=_0x288268[_0x116786(0x16a)]);const _0x599798={};_0x599798[_0x116786(0x1a2)]=_0x1a3219,_0x599798[_0x116786(0x193)]=_0xe221f2,_0x3839e8['Browserstack']=_0x599798,fs[_0x116786(0x1a6)](_0x177eda,JSON[_0x116786(0x179)](_0x3839e8)),process[_0x116786(0x169)](0x0);}else _0x3d3a29=!![];}else logger['error'](_0x53d517['mVuzW']),await _0x53d517[_0x116786(0x1a4)](sendInstrumentationEvent,_0x2da845,_0x53d517['uevpw'],messageTypes[_0x116786(0x19d)],_0x53d517[_0x116786(0x15b)],null,_0x2da845),process[_0x116786(0x169)](0x1);}catch(_0x1eac13){logger[_0x116786(0x157)](_0x1eac13[_0x116786(0x174)]),await _0x53d517[_0x116786(0x1c2)](sendInstrumentationEvent,_0x2da845,_0x53d517[_0x116786(0x164)],messageTypes['ERROR'],_0x53d517[_0x116786(0x178)],_0x1eac13,_0x2da845),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a13_0x251ccc=a13_0x3c9a;(function(_0x3a5ecc,_0x1aa2c4){const _0x306fa3=a13_0x3c9a,_0x553177=_0x3a5ecc();while(!![]){try{const _0x4c535e=-parseInt(_0x306fa3(0x187))/0x1*(parseInt(_0x306fa3(0x174))/0x2)+parseInt(_0x306fa3(0x173))/0x3+parseInt(_0x306fa3(0x17b))/0x4*(-parseInt(_0x306fa3(0x178))/0x5)+-parseInt(_0x306fa3(0x186))/0x6+parseInt(_0x306fa3(0x182))/0x7+-parseInt(_0x306fa3(0x184))/0x8+parseInt(_0x306fa3(0x17d))/0x9;if(_0x4c535e===_0x1aa2c4)break;else _0x553177['push'](_0x553177['shift']());}catch(_0x1722fb){_0x553177['push'](_0x553177['shift']());}}}(a13_0x4e7f,0xf1148));function a13_0x3c9a(_0x371eb0,_0x419b62){const _0x4e7f22=a13_0x4e7f();return a13_0x3c9a=function(_0x3c9a82,_0x188418){_0x3c9a82=_0x3c9a82-0x173;let _0x4cecb7=_0x4e7f22[_0x3c9a82];return _0x4cecb7;},a13_0x3c9a(_0x371eb0,_0x419b62);}function a13_0x4e7f(){const _0x16c216=['handler','command','NcKSQ','25dDLzfQ','UcVaa','List\x20down\x20the\x20Grid\x20resources.','1488908oWGeuc','../config/constants','10546380PJVlgv','root','epilogue','list_commands','help','10465231ydkJrx','list','1242728VByMKw','builder','966246jfxNXs','2000DxRCXI','recommendCommands','usage','2214384UWnPlJ','240tIRzoC'];a13_0x4e7f=function(){return _0x16c216;};return a13_0x4e7f();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x251ccc(0x17c));exports[a13_0x251ccc(0x176)]=a13_0x251ccc(0x183),exports['desc']=a13_0x251ccc(0x17a),exports[a13_0x251ccc(0x185)]=function(_0x4a1847){const _0x211350=a13_0x251ccc,_0x277480={};_0x277480[_0x211350(0x177)]=_0x211350(0x180),_0x277480[_0x211350(0x179)]='help';const _0x3635ee=_0x277480;return _0x4a1847['commandDir'](_0x3635ee['NcKSQ'])['demandCommand']()[_0x211350(0x189)](HELP_HEADER_MESSAGE[_0x211350(0x183)][_0x211350(0x17e)])[_0x211350(0x17f)](HELP_FOOTER_MESSAGE)[_0x211350(0x188)]()['strict']()[_0x211350(0x181)](_0x3635ee[_0x211350(0x179)]);},exports[a13_0x251ccc(0x175)]=function(_0x3681e5){};
1
+ const a13_0x4b4119=a13_0x5c4d;(function(_0x28a2e4,_0x12b1ad){const _0x2d3fb3=a13_0x5c4d,_0x5a7216=_0x28a2e4();while(!![]){try{const _0x5d9666=parseInt(_0x2d3fb3(0xb4))/0x1+-parseInt(_0x2d3fb3(0xb2))/0x2*(-parseInt(_0x2d3fb3(0xc1))/0x3)+-parseInt(_0x2d3fb3(0xbc))/0x4*(parseInt(_0x2d3fb3(0xbb))/0x5)+parseInt(_0x2d3fb3(0xb9))/0x6*(parseInt(_0x2d3fb3(0xc2))/0x7)+parseInt(_0x2d3fb3(0xb6))/0x8+parseInt(_0x2d3fb3(0xbf))/0x9*(-parseInt(_0x2d3fb3(0xaf))/0xa)+parseInt(_0x2d3fb3(0xc7))/0xb*(-parseInt(_0x2d3fb3(0xba))/0xc);if(_0x5d9666===_0x12b1ad)break;else _0x5a7216['push'](_0x5a7216['shift']());}catch(_0x53224e){_0x5a7216['push'](_0x5a7216['shift']());}}}(a13_0x5aa5,0xc47ae));function a13_0x5aa5(){const _0x51af0f=['root','builder','237498JdCkxO','strict','1303926DnPDVp','list','1588728CrsebS','usage','desc','12FWZUHd','31212xppgcM','3516505iFnuax','4oCwuzc','command','list_commands','135fcouRc','iuHLX','12SKvitE','2120468TxnOGV','demandCommand','List\x20down\x20the\x20Grid\x20resources.','help','handler','2178IHoMen','373520swCbDC'];a13_0x5aa5=function(){return _0x51af0f;};return a13_0x5aa5();}function a13_0x5c4d(_0x15056f,_0xfcac30){const _0x5aa503=a13_0x5aa5();return a13_0x5c4d=function(_0x5c4d33,_0x180cda){_0x5c4d33=_0x5c4d33-0xaf;let _0x3ed98d=_0x5aa503[_0x5c4d33];return _0x3ed98d;},a13_0x5c4d(_0x15056f,_0xfcac30);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x4b4119(0xbd)]=a13_0x4b4119(0xb5),exports[a13_0x4b4119(0xb8)]=a13_0x4b4119(0xc4),exports[a13_0x4b4119(0xb1)]=function(_0x3eccd6){const _0x422b91=a13_0x4b4119,_0xb9e270={};_0xb9e270['iuHLX']=_0x422b91(0xbe),_0xb9e270['NwoMF']=_0x422b91(0xc5);const _0x362c83=_0xb9e270;return _0x3eccd6['commandDir'](_0x362c83[_0x422b91(0xc0)])[_0x422b91(0xc3)]()[_0x422b91(0xb7)](HELP_HEADER_MESSAGE[_0x422b91(0xb5)][_0x422b91(0xb0)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x422b91(0xb3)]()['help'](_0x362c83['NwoMF']);},exports[a13_0x4b4119(0xc6)]=function(_0x4d22d0){};
@@ -1 +1 @@
1
- function a14_0x59f0(_0x1f8733,_0x3f58bb){const _0x301a83=a14_0x301a();return a14_0x59f0=function(_0x59f00c,_0x2a0e42){_0x59f00c=_0x59f00c-0xf5;let _0x43a8c5=_0x301a83[_0x59f00c];return _0x43a8c5;},a14_0x59f0(_0x1f8733,_0x3f58bb);}const a14_0x1c0e9e=a14_0x59f0;(function(_0x543d36,_0x1dc341){const _0x5d6b81=a14_0x59f0,_0x27ebb4=_0x543d36();while(!![]){try{const _0x36af38=-parseInt(_0x5d6b81(0x103))/0x1+-parseInt(_0x5d6b81(0x110))/0x2*(-parseInt(_0x5d6b81(0x124))/0x3)+parseInt(_0x5d6b81(0x10c))/0x4+-parseInt(_0x5d6b81(0x115))/0x5*(-parseInt(_0x5d6b81(0x102))/0x6)+parseInt(_0x5d6b81(0x136))/0x7*(-parseInt(_0x5d6b81(0x106))/0x8)+-parseInt(_0x5d6b81(0x13c))/0x9+parseInt(_0x5d6b81(0x147))/0xa;if(_0x36af38===_0x1dc341)break;else _0x27ebb4['push'](_0x27ebb4['shift']());}catch(_0x23fb55){_0x27ebb4['push'](_0x27ebb4['shift']());}}}(a14_0x301a,0x4e556));function a14_0x301a(){const _0x48159b=['JJIan','SozbH','region','/packages/cli/get-all-grid-profiles','TruPa','error','list','server-error','type','rYtPW','unknown-error','username','INFO','bstackAccesskey','ERROR','QScga','bKgHf','1470ydEnLL','desc','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ERHWj','IeyRs','490473lcHWYy','exit','qtJFM','stringify','wfPuW','mRnHi','list-grid-profiles-called','AtzKc','description','boolean','gridProfile','712600jJNllk','grid-profile-name','log','DChYH','push','help','allGridProfiles','requestId','argv','NiOKE','cloud-provider','GET','handler','ymlnW','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','150GklYdL','346240sPnIbw','../../config/constants','vGceg','22328sukGqP','concurrency','table','/packages/cli/get-grid-profiles','unauthorised','cloudProvider','2447804aTzJER','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WSJOR','rEoQi','28486SCPovi','grid-profiles','statusCode','parse','epilogue','110655LcNXGI','../../utils/utilityMethods','../../utils/instrumentationUtils','options','https://','body','usage','uuid','IhzEG','Browserstack','init-not-called','readFileSync','Failed\x20to\x20list\x20resources!\x20Error:\x20','all-grid-profiles','WXuIS','15nctWUi'];a14_0x301a=function(){return _0x48159b;};return a14_0x301a();}const fs=require('fs'),got=require('got'),{table}=require(a14_0x1c0e9e(0x108)),{v4:uuidv4}=require(a14_0x1c0e9e(0x11c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1c0e9e(0x104)),{getCredentialsPath,getAuthHeader}=require(a14_0x1c0e9e(0x116)),{sendInstrumentationEvent}=require(a14_0x1c0e9e(0x117));exports['command']=a14_0x1c0e9e(0x111),exports[a14_0x1c0e9e(0x137)]=a14_0x1c0e9e(0x138),exports['builder']=function(_0x1bf8e4){const _0x3a449a=a14_0x1c0e9e,_0xc2217a={};_0xc2217a[_0x3a449a(0x125)]=_0x3a449a(0x101),_0xc2217a[_0x3a449a(0x10e)]=_0x3a449a(0x145),_0xc2217a[_0x3a449a(0x105)]='help';const _0x438020=_0xc2217a,_0x4c0f77={};_0x4c0f77[_0x3a449a(0x144)]=_0x438020[_0x3a449a(0x125)],_0x4c0f77[_0x3a449a(0x12d)]=_0x438020[_0x3a449a(0x10e)];const _0x5d88d7={};return _0x5d88d7[_0x3a449a(0x122)]=_0x4c0f77,_0x1bf8e4[_0x3a449a(0x11b)](HELP_HEADER_MESSAGE[_0x3a449a(0x12b)][_0x3a449a(0x146)])[_0x3a449a(0x114)](HELP_FOOTER_MESSAGE)[_0x3a449a(0x118)](_0x5d88d7)[_0x3a449a(0xf8)](_0x438020[_0x3a449a(0x105)])[_0x3a449a(0xfb)];},exports[a14_0x1c0e9e(0xff)]=async function(_0x47e317){const _0x237c96=a14_0x1c0e9e,_0x59da23={'oCMEq':function(_0x99aeb9){return _0x99aeb9();},'ERHWj':function(_0x326401){return _0x326401();},'eeytk':_0x237c96(0x10d),'AtzKc':function(_0x1750d3,_0x10065b,_0x5adbfc,_0x5a1dd8,_0x3f3f93,_0x5a0a6e,_0x3582fe){return _0x1750d3(_0x10065b,_0x5adbfc,_0x5a1dd8,_0x3f3f93,_0x5a0a6e,_0x3582fe);},'DChYH':_0x237c96(0x142),'ymlnW':_0x237c96(0x11f),'NiOKE':_0x237c96(0xfe),'qtJFM':function(_0x56e691,_0x22d7db,_0x2de3bd){return _0x56e691(_0x22d7db,_0x2de3bd);},'bKgHf':function(_0x17867c,_0x354072){return _0x17867c!==_0x354072;},'TruPa':function(_0x25ca5b,_0x22be51){return _0x25ca5b!==_0x22be51;},'rEoQi':function(_0x28dba0,_0x7296f0){return _0x28dba0===_0x7296f0;},'QKxeH':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','QScga':_0x237c96(0x148),'NfZjw':_0x237c96(0xfd),'SozbH':_0x237c96(0x127),'VIKog':_0x237c96(0x107),'rYtPW':function(_0xe60b9,_0x4f39d2){return _0xe60b9(_0x4f39d2);},'IeyRs':function(_0x454cf3,_0x27f856){return _0x454cf3===_0x27f856;},'IhzEG':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','mRnHi':_0x237c96(0x10a),'wfPuW':_0x237c96(0x12c),'XLMez':function(_0x3fcd4c,_0x17c63a,_0x37b832,_0x1a9bfd,_0x3030ba,_0x145d67,_0x54870d){return _0x3fcd4c(_0x17c63a,_0x37b832,_0x1a9bfd,_0x3030ba,_0x145d67,_0x54870d);},'WXuIS':_0x237c96(0x12f)};try{global_registry[_0x237c96(0xfa)]=_0x59da23['oCMEq'](uuidv4);let _0xed636d=_0x237c96(0x119)+AG_API_URL+_0x237c96(0x109);_0x47e317[_0x237c96(0xf9)]&&(_0xed636d=_0x237c96(0x119)+AG_API_URL+_0x237c96(0x128));!fs['existsSync'](_0x59da23[_0x237c96(0x13a)](getCredentialsPath))&&(console[_0x237c96(0x12a)](_0x59da23['eeytk']),await _0x59da23[_0x237c96(0x143)](sendInstrumentationEvent,_0x47e317,_0x59da23['DChYH'],messageTypes[_0x237c96(0x133)],_0x59da23[_0x237c96(0x100)],null,_0x47e317),process[_0x237c96(0x13d)](0x1));const _0x38a298=JSON[_0x237c96(0x113)](fs[_0x237c96(0x120)](_0x59da23['oCMEq'](getCredentialsPath))),_0x28649e={'method':_0x59da23[_0x237c96(0xfc)],'headers':_0x59da23[_0x237c96(0x13e)](getAuthHeader,_0x38a298[_0x237c96(0x11e)][_0x237c96(0x130)],_0x38a298[_0x237c96(0x11e)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x38a298[_0x237c96(0x11e)][_0x237c96(0x130)],global_registry[_0x237c96(0x132)]=_0x38a298[_0x237c96(0x11e)]['password'],_0x59da23['AtzKc'](sendInstrumentationEvent,_0x47e317,_0x59da23[_0x237c96(0xf6)],messageTypes[_0x237c96(0x131)],null,null,_0x47e317);const _0x466556=await _0x59da23['qtJFM'](got,_0xed636d,_0x28649e);if(_0x59da23[_0x237c96(0x135)](_0x466556,null)&&_0x59da23[_0x237c96(0x129)](_0x466556,undefined)&&_0x59da23[_0x237c96(0x10f)](_0x466556[_0x237c96(0x112)],0xc8)){const _0x3e4575=JSON['parse'](_0x466556[_0x237c96(0x11a)]);console[_0x237c96(0xf5)](_0x59da23['QKxeH']);const _0x53171b=[];_0x53171b[_0x237c96(0xf7)]([_0x59da23[_0x237c96(0x134)],_0x59da23['NfZjw'],_0x59da23[_0x237c96(0x126)],_0x59da23['VIKog']]),_0x3e4575['forEach'](_0x3eb093=>{const _0x4b52b8=_0x237c96;_0x53171b['push']([_0x3eb093['name'],_0x3eb093[_0x4b52b8(0x10b)],_0x3eb093['region'],_0x3eb093[_0x4b52b8(0x107)]]);}),console['log'](_0x59da23[_0x237c96(0x12e)](table,_0x53171b)),process[_0x237c96(0x13d)](0x0);}_0x59da23[_0x237c96(0x13b)](_0x466556[_0x237c96(0x112)],0x191)&&(console[_0x237c96(0x12a)](_0x59da23[_0x237c96(0x11d)]),await _0x59da23['AtzKc'](sendInstrumentationEvent,_0x47e317,_0x59da23['DChYH'],messageTypes[_0x237c96(0x133)],_0x59da23[_0x237c96(0x141)],null,_0x47e317),process[_0x237c96(0x13d)](0x1)),console['error'](_0x237c96(0x139)+JSON[_0x237c96(0x13f)](_0x466556)),await _0x59da23['AtzKc'](sendInstrumentationEvent,_0x47e317,_0x59da23[_0x237c96(0xf6)],messageTypes['ERROR'],_0x59da23[_0x237c96(0x140)],_0x466556,_0x47e317),process[_0x237c96(0x13d)](0x1);}catch(_0x174994){console[_0x237c96(0x12a)](_0x237c96(0x121)+_0x174994['stack']),await _0x59da23['XLMez'](sendInstrumentationEvent,_0x47e317,_0x59da23[_0x237c96(0xf6)],messageTypes['ERROR'],_0x59da23[_0x237c96(0x123)],_0x174994,_0x47e317),process[_0x237c96(0x13d)](0x1);}};
1
+ const a14_0x311863=a14_0x2948;function a14_0x2948(_0x2d11bb,_0x35906f){const _0x29f43f=a14_0x29f4();return a14_0x2948=function(_0x29485e,_0x23db4f){_0x29485e=_0x29485e-0x1f0;let _0x46f192=_0x29f43f[_0x29485e];return _0x46f192;},a14_0x2948(_0x2d11bb,_0x35906f);}function a14_0x29f4(){const _0xf05539=['body','exit','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XBroA','name','VwEoF','grid-profiles','mGarr','command','Browserstack','all-grid-profiles','/packages/cli/get-grid-profiles','1604568uVIRRl','https://','push','cloud-provider','2790sjTflv','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','requestId','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','xUMJT','555225HrGETS','KLnPB','unauthorised','epilogue','eshol','stringify','username','99406YuCEGy','YdYbv','boolean','bstackAccesskey','builder','type','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','kNBRF','tsdzZ','rJhcE','description','options','ERROR','../../utils/utilityMethods','log','gridProfile','1103780bsMbYc','cloudProvider','IrGkH','ktUbY','4OqtmsT','concurrency','help','uuid','PAyiO','GET','handler','server-error','password','IdqKQ','qrxkg','region','PxlxB','statusCode','/packages/cli/get-all-grid-profiles','sYgUL','gXTPB','612798eQBcSa','vZQoA','wRvTh','table','argv','sFxCB','error','grid-profile-name','PudIS','443884bUNLNP','1608ERBRTu','parse','allGridProfiles','yVShZ'];a14_0x29f4=function(){return _0xf05539;};return a14_0x29f4();}(function(_0x3684fd,_0x3e8f55){const _0x150e40=a14_0x2948,_0x350308=_0x3684fd();while(!![]){try{const _0x1703e5=parseInt(_0x150e40(0x225))/0x1*(-parseInt(_0x150e40(0x239))/0x2)+-parseInt(_0x150e40(0x21e))/0x3+-parseInt(_0x150e40(0x203))/0x4+parseInt(_0x150e40(0x235))/0x5+parseInt(_0x150e40(0x1fa))/0x6+parseInt(_0x150e40(0x214))/0x7+-parseInt(_0x150e40(0x204))/0x8*(-parseInt(_0x150e40(0x218))/0x9);if(_0x1703e5===_0x3e8f55)break;else _0x350308['push'](_0x350308['shift']());}catch(_0x331675){_0x350308['push'](_0x350308['shift']());}}}(a14_0x29f4,0x1d30d));const fs=require('fs'),got=require('got'),{table}=require(a14_0x311863(0x1fd)),{v4:uuidv4}=require(a14_0x311863(0x23c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x311863(0x232)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x311863(0x210)]=a14_0x311863(0x20e),exports['desc']=a14_0x311863(0x21c),exports[a14_0x311863(0x229)]=function(_0x2dd237){const _0x541aad=a14_0x311863,_0x4a2d15={};_0x4a2d15['kNBRF']=_0x541aad(0x219),_0x4a2d15['eshol']=_0x541aad(0x227),_0x4a2d15[_0x541aad(0x21d)]=_0x541aad(0x23b);const _0x178e89=_0x4a2d15,_0x47b194={};_0x47b194[_0x541aad(0x22f)]=_0x178e89[_0x541aad(0x22c)],_0x47b194[_0x541aad(0x22a)]=_0x178e89[_0x541aad(0x222)];const _0x1baacd={};return _0x1baacd[_0x541aad(0x212)]=_0x47b194,_0x2dd237['usage'](HELP_HEADER_MESSAGE['list'][_0x541aad(0x234)])[_0x541aad(0x221)](HELP_FOOTER_MESSAGE)[_0x541aad(0x230)](_0x1baacd)[_0x541aad(0x23b)](_0x178e89['xUMJT'])[_0x541aad(0x1fe)];},exports[a14_0x311863(0x23f)]=async function(_0x333cce){const _0x51761a=a14_0x311863,_0x569dc4={'qrxkg':function(_0x1bbfbd){return _0x1bbfbd();},'KLnPB':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WxBTZ':function(_0x583ab1,_0x42e4c6,_0x3c8bfa,_0xbe9b,_0x2cc346,_0x5ef12c,_0x46794b){return _0x583ab1(_0x42e4c6,_0x3c8bfa,_0xbe9b,_0x2cc346,_0x5ef12c,_0x46794b);},'wRvTh':'list-grid-profiles-called','vZQoA':'init-not-called','PxlxB':_0x51761a(0x23e),'zmZUb':function(_0x5b6e65,_0x4a86a7,_0x3ea557){return _0x5b6e65(_0x4a86a7,_0x3ea557);},'VwEoF':function(_0x4cc759,_0x399209,_0x355fc5){return _0x4cc759(_0x399209,_0x355fc5);},'sFxCB':function(_0x1dc5da,_0x1a229d){return _0x1dc5da!==_0x1a229d;},'PudIS':function(_0x57e636,_0x1af0b8){return _0x57e636!==_0x1af0b8;},'rJhcE':function(_0xf5c53a,_0x26c282){return _0xf5c53a===_0x26c282;},'PAyiO':_0x51761a(0x21b),'gXTPB':_0x51761a(0x201),'XBroA':_0x51761a(0x217),'sYgUL':_0x51761a(0x1f4),'IdqKQ':_0x51761a(0x23a),'mGarr':function(_0x49e747,_0x39c367){return _0x49e747(_0x39c367);},'IrGkH':_0x51761a(0x20a),'tsdzZ':function(_0x437e49,_0x23e057,_0x1e4da6,_0xdc5b61,_0x151dc2,_0x14ce97,_0x34aa4c){return _0x437e49(_0x23e057,_0x1e4da6,_0xdc5b61,_0x151dc2,_0x14ce97,_0x34aa4c);},'YdYbv':_0x51761a(0x220),'ktUbY':_0x51761a(0x1f0),'YMrNA':function(_0x4d57f2,_0x181f0d,_0x3a648c,_0x34916b,_0x18e3b3,_0x36a7a7,_0x2a8b74){return _0x4d57f2(_0x181f0d,_0x3a648c,_0x34916b,_0x18e3b3,_0x36a7a7,_0x2a8b74);},'yVShZ':'unknown-error'};try{global_registry[_0x51761a(0x21a)]=_0x569dc4['qrxkg'](uuidv4);let _0x4e06af=_0x51761a(0x215)+AG_API_URL+_0x51761a(0x213);_0x333cce[_0x51761a(0x206)]&&(_0x4e06af='https://'+AG_API_URL+_0x51761a(0x1f7));!fs['existsSync'](_0x569dc4[_0x51761a(0x1f3)](getCredentialsPath))&&(console[_0x51761a(0x200)](_0x569dc4[_0x51761a(0x21f)]),await _0x569dc4['WxBTZ'](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes['ERROR'],_0x569dc4[_0x51761a(0x1fb)],null,_0x333cce),process['exit'](0x1));const _0x4616c0=JSON[_0x51761a(0x205)](fs['readFileSync'](_0x569dc4[_0x51761a(0x1f3)](getCredentialsPath))),_0x39a3e3={'method':_0x569dc4[_0x51761a(0x1f5)],'headers':_0x569dc4['zmZUb'](getAuthHeader,_0x4616c0[_0x51761a(0x211)][_0x51761a(0x224)],_0x4616c0[_0x51761a(0x211)][_0x51761a(0x1f1)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4616c0[_0x51761a(0x211)][_0x51761a(0x224)],global_registry[_0x51761a(0x228)]=_0x4616c0['Browserstack'][_0x51761a(0x1f1)],_0x569dc4['WxBTZ'](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes['INFO'],null,null,_0x333cce);const _0x3e00f9=await _0x569dc4[_0x51761a(0x20d)](got,_0x4e06af,_0x39a3e3);if(_0x569dc4[_0x51761a(0x1ff)](_0x3e00f9,null)&&_0x569dc4[_0x51761a(0x202)](_0x3e00f9,undefined)&&_0x569dc4[_0x51761a(0x22e)](_0x3e00f9[_0x51761a(0x1f6)],0xc8)){const _0x32ebb6=JSON['parse'](_0x3e00f9[_0x51761a(0x208)]);console[_0x51761a(0x233)](_0x569dc4[_0x51761a(0x23d)]);const _0x3ae9e1=[];_0x3ae9e1[_0x51761a(0x216)]([_0x569dc4[_0x51761a(0x1f9)],_0x569dc4[_0x51761a(0x20b)],_0x569dc4[_0x51761a(0x1f8)],_0x569dc4[_0x51761a(0x1f2)]]),_0x32ebb6['forEach'](_0x18240e=>{const _0xbed5fb=_0x51761a;_0x3ae9e1[_0xbed5fb(0x216)]([_0x18240e[_0xbed5fb(0x20c)],_0x18240e[_0xbed5fb(0x236)],_0x18240e[_0xbed5fb(0x1f4)],_0x18240e[_0xbed5fb(0x23a)]]);}),console[_0x51761a(0x233)](_0x569dc4[_0x51761a(0x20f)](table,_0x3ae9e1)),process[_0x51761a(0x209)](0x0);}_0x569dc4[_0x51761a(0x22e)](_0x3e00f9[_0x51761a(0x1f6)],0x191)&&(console[_0x51761a(0x200)](_0x569dc4[_0x51761a(0x237)]),await _0x569dc4[_0x51761a(0x22d)](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes[_0x51761a(0x231)],_0x569dc4[_0x51761a(0x226)],null,_0x333cce),process[_0x51761a(0x209)](0x1)),console[_0x51761a(0x200)](_0x51761a(0x22b)+JSON[_0x51761a(0x223)](_0x3e00f9)),await _0x569dc4['WxBTZ'](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes[_0x51761a(0x231)],_0x569dc4[_0x51761a(0x238)],_0x3e00f9,_0x333cce),process[_0x51761a(0x209)](0x1);}catch(_0x5658d0){console[_0x51761a(0x200)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5658d0['stack']),await _0x569dc4['YMrNA'](sendInstrumentationEvent,_0x333cce,_0x569dc4['wRvTh'],messageTypes[_0x51761a(0x231)],_0x569dc4[_0x51761a(0x207)],_0x5658d0,_0x333cce),process[_0x51761a(0x209)](0x1);}};
@@ -1 +1 @@
1
- const a15_0x1f3662=a15_0x43c2;function a15_0x43c2(_0x3c84d8,_0x556fd7){const _0x2d543e=a15_0x2d54();return a15_0x43c2=function(_0x43c2b3,_0x1132db){_0x43c2b3=_0x43c2b3-0x68;let _0x3a7ffe=_0x2d543e[_0x43c2b3];return _0x3a7ffe;},a15_0x43c2(_0x3c84d8,_0x556fd7);}(function(_0x43b0dd,_0x2cc21c){const _0x29e287=a15_0x43c2,_0x5e4c0a=_0x43b0dd();while(!![]){try{const _0x33db4f=-parseInt(_0x29e287(0xa5))/0x1*(parseInt(_0x29e287(0x70))/0x2)+parseInt(_0x29e287(0x9e))/0x3*(-parseInt(_0x29e287(0x7e))/0x4)+parseInt(_0x29e287(0x6c))/0x5+parseInt(_0x29e287(0xb7))/0x6+-parseInt(_0x29e287(0xa3))/0x7*(-parseInt(_0x29e287(0x7d))/0x8)+parseInt(_0x29e287(0x9c))/0x9*(-parseInt(_0x29e287(0x91))/0xa)+-parseInt(_0x29e287(0xae))/0xb*(-parseInt(_0x29e287(0xc1))/0xc);if(_0x33db4f===_0x2cc21c)break;else _0x5e4c0a['push'](_0x5e4c0a['shift']());}catch(_0x50a851){_0x5e4c0a['push'](_0x5e4c0a['shift']());}}}(a15_0x2d54,0x719f1));const fs=require('fs'),got=require(a15_0x1f3662(0x97)),{table}=require(a15_0x1f3662(0x95)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1f3662(0x79)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x1f3662(0x77));exports[a15_0x1f3662(0xb0)]=a15_0x1f3662(0x7a),exports[a15_0x1f3662(0x89)]=a15_0x1f3662(0xbd),exports[a15_0x1f3662(0x99)]=function(_0x350731){const _0x23d0e1=a15_0x1f3662,_0x590e2d={};_0x590e2d[_0x23d0e1(0xb9)]=_0x23d0e1(0x6a),_0x590e2d[_0x23d0e1(0x94)]=_0x23d0e1(0x71),_0x590e2d[_0x23d0e1(0x81)]=_0x23d0e1(0x93);const _0x187057=_0x590e2d,_0x110b5c={};_0x110b5c['description']=_0x187057[_0x23d0e1(0xb9)],_0x110b5c[_0x23d0e1(0x69)]=_0x187057[_0x23d0e1(0x94)];const _0x31680e={};return _0x31680e['all-grids']=_0x110b5c,_0x350731['usage'](HELP_HEADER_MESSAGE[_0x23d0e1(0x76)][_0x23d0e1(0x74)])[_0x23d0e1(0x85)](HELP_FOOTER_MESSAGE)[_0x23d0e1(0x8a)](_0x31680e)[_0x23d0e1(0x93)](_0x187057['DlXmh'])[_0x23d0e1(0xb2)];},exports[a15_0x1f3662(0xba)]=async function(_0x827750){const _0x4df1db=a15_0x1f3662,_0x33e19f={'KDFjH':function(_0x59bf68){return _0x59bf68();},'AtJqE':function(_0x560668){return _0x560668();},'RhxBD':_0x4df1db(0xc3),'TmbWz':function(_0x46acbd,_0xc859da,_0xe52593,_0xf2e3e4,_0x3d8820,_0x26377a,_0x16dac5){return _0x46acbd(_0xc859da,_0xe52593,_0xf2e3e4,_0x3d8820,_0x26377a,_0x16dac5);},'SlgeX':'list-grids-called','PounS':_0x4df1db(0xb8),'OPVdt':'GET','GjZuh':function(_0x299e5c,_0x473eb4,_0x284a80){return _0x299e5c(_0x473eb4,_0x284a80);},'ZExjP':function(_0x8a3e12,_0x103158,_0x505660,_0x1115a2,_0x357da7,_0x21fd8d,_0xd12115){return _0x8a3e12(_0x103158,_0x505660,_0x1115a2,_0x357da7,_0x21fd8d,_0xd12115);},'TQuvD':function(_0x18296f,_0x181ad6){return _0x18296f!==_0x181ad6;},'zleZC':function(_0x2319f9,_0x3841fc){return _0x2319f9!==_0x3841fc;},'ltELd':function(_0x4aab00,_0x5ec388){return _0x4aab00===_0x5ec388;},'fIgyS':_0x4df1db(0x6e),'KwkUd':'grid-id','vGiqg':_0x4df1db(0x8e),'IXOdu':_0x4df1db(0xc2),'lQIUy':'running','AXzfK':_0x4df1db(0xb5),'MTguD':_0x4df1db(0xb4),'PBoWQ':function(_0xd804a2,_0x31eb45){return _0xd804a2(_0x31eb45);},'FejiH':_0x4df1db(0x8b),'uRzuU':function(_0x2e4009,_0x290c14,_0x2eb847,_0x13a70c,_0x29b253,_0x3bf7f3,_0x2b771b){return _0x2e4009(_0x290c14,_0x2eb847,_0x13a70c,_0x29b253,_0x3bf7f3,_0x2b771b);},'nDOUz':_0x4df1db(0xad),'TDYjs':function(_0x27aec9,_0x2cd3b3,_0x607b75,_0x3a6bac,_0x4a5307,_0x4488e9,_0x417308){return _0x27aec9(_0x2cd3b3,_0x607b75,_0x3a6bac,_0x4a5307,_0x4488e9,_0x417308);},'bTIPj':'server-error','UzoRf':_0x4df1db(0x92)};try{global_registry[_0x4df1db(0x6d)]=_0x33e19f[_0x4df1db(0x8d)](uuidv4);!fs[_0x4df1db(0x73)](_0x33e19f[_0x4df1db(0xc0)](getCredentialsPath))&&(console[_0x4df1db(0x83)](_0x33e19f[_0x4df1db(0x82)]),await _0x33e19f['TmbWz'](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x96)],_0x33e19f[_0x4df1db(0xa7)],null,_0x827750),process[_0x4df1db(0x6b)](0x1));const _0x3a8322=JSON[_0x4df1db(0x78)](fs[_0x4df1db(0x9d)](_0x33e19f[_0x4df1db(0xc0)](getCredentialsPath)));let _0x1c8de0=_0x4df1db(0xb1)+AG_API_URL+_0x4df1db(0xc4);_0x827750[_0x4df1db(0xbe)]&&(_0x1c8de0=_0x4df1db(0xb1)+AG_API_URL+_0x4df1db(0x8c));const _0x2f3ad9={'method':_0x33e19f[_0x4df1db(0xa2)],'headers':_0x33e19f[_0x4df1db(0x9a)](getAuthHeader,_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0x7b)],_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0xbb)]),'throwHttpErrors':![]};global_registry[_0x4df1db(0x75)]=_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0x7b)],global_registry[_0x4df1db(0xa9)]=_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0xbb)],_0x33e19f[_0x4df1db(0x9b)](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x9f)],null,null,_0x827750);const _0x53e80b=await _0x33e19f[_0x4df1db(0x9a)](got,_0x1c8de0,_0x2f3ad9);if(_0x33e19f[_0x4df1db(0x84)](_0x53e80b,null)&&_0x33e19f['zleZC'](_0x53e80b,undefined)&&_0x33e19f[_0x4df1db(0x8f)](_0x53e80b[_0x4df1db(0xa0)],0xc8)){const _0x20af3a=JSON[_0x4df1db(0x78)](_0x53e80b[_0x4df1db(0x87)]);console[_0x4df1db(0xaa)](_0x33e19f[_0x4df1db(0x86)]);const _0x3cdc63=[];_0x3cdc63[_0x4df1db(0xaf)]([_0x33e19f[_0x4df1db(0x68)],_0x33e19f[_0x4df1db(0xa1)],_0x33e19f[_0x4df1db(0x7c)],_0x33e19f[_0x4df1db(0x7f)],_0x33e19f['AXzfK'],_0x33e19f['MTguD']]),_0x20af3a[_0x4df1db(0x80)](_0x57f532=>{const _0x56d161=_0x4df1db;_0x3cdc63[_0x56d161(0xaf)]([_0x57f532['id'],_0x57f532['name'],_0x57f532[_0x56d161(0xc2)],_0x57f532[_0x56d161(0xa6)],_0x57f532['queued'],_0x57f532[_0x56d161(0xbc)]]);}),console['log'](_0x33e19f[_0x4df1db(0x90)](table,_0x3cdc63)),process[_0x4df1db(0x6b)](0x0);}_0x33e19f[_0x4df1db(0x8f)](_0x53e80b['statusCode'],0x191)&&(console[_0x4df1db(0x83)](_0x33e19f[_0x4df1db(0xb3)]),await _0x33e19f[_0x4df1db(0xbf)](sendInstrumentationEvent,_0x827750,_0x33e19f['SlgeX'],messageTypes['ERROR'],_0x33e19f['nDOUz'],null,_0x827750),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4df1db(0xa4)](_0x53e80b)),await _0x33e19f[_0x4df1db(0x72)](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x96)],_0x33e19f[_0x4df1db(0xa8)],_0x53e80b,_0x827750),process[_0x4df1db(0x6b)](0x1);}catch(_0x42b93a){console[_0x4df1db(0x83)](_0x4df1db(0x6f)+_0x42b93a[_0x4df1db(0x98)]),await _0x33e19f[_0x4df1db(0xac)](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x96)],_0x33e19f[_0x4df1db(0xb6)],_0x42b93a,_0x827750),process[_0x4df1db(0x6b)](0x1);}};function a15_0x2d54(){const _0x2a1dbe=['exit','293705JdqcVl','requestId','\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20list\x20resources!\x20Error:\x20','2pRyzzs','boolean','TDYjs','existsSync','grid','bstackUsername','list','../../utils/instrumentationUtils','parse','../../config/constants','grids','username','IXOdu','8LfYQVI','230756GxRsDe','lQIUy','forEach','DlXmh','RhxBD','error','TQuvD','epilogue','fIgyS','body','Browserstack','desc','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-all-grids','KDFjH','grid-name','ltELd','PBoWQ','10kaXafH','unknown-error','help','Twezk','table','ERROR','got','stack','builder','GjZuh','ZExjP','1434402zELclO','readFileSync','27RSLjei','INFO','statusCode','vGiqg','OPVdt','3652859nQRtqm','stringify','566602mbMXBL','running','PounS','bTIPj','bstackAccesskey','log','SlgeX','TmbWz','unauthorised','2077086cJOoCp','push','command','https://','argv','FejiH','cluster-name','queued','UzoRf','4514064kirHCX','init-not-called','SlUFI','handler','password','clusterName','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','allGrids','uRzuU','AtJqE','24NsfReN','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-grids','KwkUd','type','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.'];a15_0x2d54=function(){return _0x2a1dbe;};return a15_0x2d54();}
1
+ const a15_0x2374d0=a15_0x62f6;(function(_0x5848a0,_0x25f988){const _0x3730b1=a15_0x62f6,_0x43266a=_0x5848a0();while(!![]){try{const _0x466b4d=-parseInt(_0x3730b1(0x1f5))/0x1*(-parseInt(_0x3730b1(0x1f7))/0x2)+-parseInt(_0x3730b1(0x241))/0x3*(-parseInt(_0x3730b1(0x21e))/0x4)+parseInt(_0x3730b1(0x23e))/0x5*(-parseInt(_0x3730b1(0x20e))/0x6)+parseInt(_0x3730b1(0x208))/0x7*(-parseInt(_0x3730b1(0x228))/0x8)+-parseInt(_0x3730b1(0x219))/0x9*(parseInt(_0x3730b1(0x235))/0xa)+parseInt(_0x3730b1(0x1f1))/0xb*(-parseInt(_0x3730b1(0x203))/0xc)+parseInt(_0x3730b1(0x20a))/0xd*(parseInt(_0x3730b1(0x1f8))/0xe);if(_0x466b4d===_0x25f988)break;else _0x43266a['push'](_0x43266a['shift']());}catch(_0x3b5a1a){_0x43266a['push'](_0x43266a['shift']());}}}(a15_0x115f,0xb0398));function a15_0x115f(){const _0x557a18=['password','vMsIn','help','parse','Failed\x20to\x20list\x20resources!\x20Error:\x20','6967668IkpaWr','stringify','GET','hpysi','orRYd','6119582GmJpbn','Edsmw','28217215FTXxRo','error','grid-id','dQIDy','2706096BuLfQV','ERROR','../../utils/utilityMethods','status','table','OQYcy','type','beqPl','/packages/cli/get-grids','list','boolean','6716565hkppyL','GHHJz','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','usage','268ZzJpFR','exit','forEach','gChky','handler','bstackAccesskey','description','eRSqW','init-not-called','body','8COjDWF','allGrids','server-error','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','iZXoc','\x0aFound\x20the\x20following\x20grids:\x0a','xSBuj','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','XnzSF','MVtrt','dachJ','RVDwr','10gNrAXf','name','grid-name','running','CHcCS','unknown-error','push','../../config/constants','options','15lLrllQ','existsSync','/packages/cli/get-all-grids','37851PvNXuH','queued','iwfkf','desc','yLElR','command','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VXLSS','Browserstack','xHDVm','statusCode','11QJZBin','grids','requestId','https://','84008Ogvkak','username','30uMGdMf','14icoLsW','LTPzh','fKYxz','../../utils/instrumentationUtils','list-grids-called','log'];a15_0x115f=function(){return _0x557a18;};return a15_0x115f();}function a15_0x62f6(_0x36f8bb,_0xf7bcb3){const _0x115f3b=a15_0x115f();return a15_0x62f6=function(_0x62f62c,_0x1357a7){_0x62f62c=_0x62f62c-0x1ef;let _0x528c73=_0x115f3b[_0x62f62c];return _0x528c73;},a15_0x62f6(_0x36f8bb,_0xf7bcb3);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x2374d0(0x212)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2374d0(0x23c)),{getCredentialsPath,getAuthHeader}=require(a15_0x2374d0(0x210)),{sendInstrumentationEvent}=require(a15_0x2374d0(0x1fb));exports[a15_0x2374d0(0x246)]=a15_0x2374d0(0x1f2),exports[a15_0x2374d0(0x244)]=a15_0x2374d0(0x22b),exports['builder']=function(_0x52f93d){const _0x4fc4a7=a15_0x2374d0,_0x57eda8={};_0x57eda8[_0x4fc4a7(0x213)]=_0x4fc4a7(0x230),_0x57eda8[_0x4fc4a7(0x20d)]=_0x4fc4a7(0x218),_0x57eda8['fKYxz']='help';const _0xa8cacd=_0x57eda8,_0x427428={};_0x427428[_0x4fc4a7(0x224)]=_0xa8cacd['OQYcy'],_0x427428[_0x4fc4a7(0x214)]=_0xa8cacd['dQIDy'];const _0x32396d={};return _0x32396d['all-grids']=_0x427428,_0x52f93d[_0x4fc4a7(0x21d)](HELP_HEADER_MESSAGE[_0x4fc4a7(0x217)]['grid'])[_0x4fc4a7(0x21c)](HELP_FOOTER_MESSAGE)[_0x4fc4a7(0x23d)](_0x32396d)[_0x4fc4a7(0x200)](_0xa8cacd[_0x4fc4a7(0x1fa)])['argv'];},exports[a15_0x2374d0(0x222)]=async function(_0x26605a){const _0x411d26=a15_0x2374d0,_0x5439ef={'orRYd':function(_0x39a64b){return _0x39a64b();},'beqPl':function(_0x4ef328){return _0x4ef328();},'gChky':_0x411d26(0x21b),'tadMt':function(_0x38a811,_0x506a74,_0x3b49aa,_0x176980,_0x358cbf,_0x314cdd,_0x44a5f3){return _0x38a811(_0x506a74,_0x3b49aa,_0x176980,_0x358cbf,_0x314cdd,_0x44a5f3);},'xSBuj':_0x411d26(0x1fc),'dachJ':_0x411d26(0x226),'lmTOg':function(_0x3c348b){return _0x3c348b();},'sDvuS':_0x411d26(0x205),'LTPzh':function(_0x1886aa,_0x4f833a,_0x9acbd1){return _0x1886aa(_0x4f833a,_0x9acbd1);},'eRSqW':function(_0x380725,_0x2c211f,_0x1bb5ea,_0x1f6982,_0x5f13dc,_0x764ee4,_0x4eb69e){return _0x380725(_0x2c211f,_0x1bb5ea,_0x1f6982,_0x5f13dc,_0x764ee4,_0x4eb69e);},'hpysi':function(_0x30f630,_0xd547ce){return _0x30f630!==_0xd547ce;},'iZXoc':function(_0x3b6c09,_0xfdf765){return _0x3b6c09===_0xfdf765;},'XnzSF':_0x411d26(0x22e),'CHcCS':_0x411d26(0x20c),'VXLSS':_0x411d26(0x237),'Edsmw':'status','xHDVm':'running','RVDwr':_0x411d26(0x242),'whJOn':'cluster-name','iwfkf':function(_0x34788e,_0x1a169a){return _0x34788e(_0x1a169a);},'yLElR':_0x411d26(0x247),'GHHJz':'unauthorised','EDUMV':_0x411d26(0x22a),'vMsIn':function(_0x417925,_0x1c7abe,_0x14b5dc,_0x332ffb,_0x29f2bd,_0xb21990,_0xfcaf8d){return _0x417925(_0x1c7abe,_0x14b5dc,_0x332ffb,_0x29f2bd,_0xb21990,_0xfcaf8d);},'MVtrt':_0x411d26(0x23a)};try{global_registry[_0x411d26(0x1f3)]=_0x5439ef[_0x411d26(0x207)](uuidv4);!fs[_0x411d26(0x23f)](_0x5439ef[_0x411d26(0x215)](getCredentialsPath))&&(console['error'](_0x5439ef[_0x411d26(0x221)]),await _0x5439ef['tadMt'](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes[_0x411d26(0x20f)],_0x5439ef[_0x411d26(0x233)],null,_0x26605a),process['exit'](0x1));const _0x281eaf=JSON['parse'](fs['readFileSync'](_0x5439ef['lmTOg'](getCredentialsPath)));let _0xe0a29e=_0x411d26(0x1f4)+AG_API_URL+_0x411d26(0x216);_0x26605a[_0x411d26(0x229)]&&(_0xe0a29e=_0x411d26(0x1f4)+AG_API_URL+_0x411d26(0x240));const _0x3ebd80={'method':_0x5439ef['sDvuS'],'headers':_0x5439ef[_0x411d26(0x1f9)](getAuthHeader,_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1f6)],_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1fe)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x281eaf['Browserstack'][_0x411d26(0x1f6)],global_registry[_0x411d26(0x223)]=_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1fe)],_0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef['xSBuj'],messageTypes['INFO'],null,null,_0x26605a);const _0x5e6942=await _0x5439ef['LTPzh'](got,_0xe0a29e,_0x3ebd80);if(_0x5439ef['hpysi'](_0x5e6942,null)&&_0x5439ef[_0x411d26(0x206)](_0x5e6942,undefined)&&_0x5439ef[_0x411d26(0x22d)](_0x5e6942[_0x411d26(0x1f0)],0xc8)){const _0x25a7f9=JSON[_0x411d26(0x201)](_0x5e6942[_0x411d26(0x227)]);console[_0x411d26(0x1fd)](_0x5439ef[_0x411d26(0x231)]);const _0x353362=[];_0x353362[_0x411d26(0x23b)]([_0x5439ef[_0x411d26(0x239)],_0x5439ef[_0x411d26(0x248)],_0x5439ef[_0x411d26(0x209)],_0x5439ef[_0x411d26(0x1ef)],_0x5439ef[_0x411d26(0x234)],_0x5439ef['whJOn']]),_0x25a7f9[_0x411d26(0x220)](_0x5595f6=>{const _0x3d55f1=_0x411d26;_0x353362[_0x3d55f1(0x23b)]([_0x5595f6['id'],_0x5595f6[_0x3d55f1(0x236)],_0x5595f6[_0x3d55f1(0x211)],_0x5595f6[_0x3d55f1(0x238)],_0x5595f6['queued'],_0x5595f6['clusterName']]);}),console[_0x411d26(0x1fd)](_0x5439ef[_0x411d26(0x243)](table,_0x353362)),process[_0x411d26(0x21f)](0x0);}_0x5439ef[_0x411d26(0x22d)](_0x5e6942[_0x411d26(0x1f0)],0x191)&&(console['error'](_0x5439ef[_0x411d26(0x245)]),await _0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes[_0x411d26(0x20f)],_0x5439ef[_0x411d26(0x21a)],null,_0x26605a),process[_0x411d26(0x21f)](0x1)),console['error'](_0x411d26(0x22c)+JSON[_0x411d26(0x204)](_0x5e6942)),await _0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes['ERROR'],_0x5439ef['EDUMV'],_0x5e6942,_0x26605a),process['exit'](0x1);}catch(_0x37c2b6){console[_0x411d26(0x20b)](_0x411d26(0x202)+_0x37c2b6['stack']),await _0x5439ef[_0x411d26(0x1ff)](sendInstrumentationEvent,_0x26605a,_0x5439ef['xSBuj'],messageTypes['ERROR'],_0x5439ef[_0x411d26(0x232)],_0x37c2b6,_0x26605a),process[_0x411d26(0x21f)](0x1);}};