browserstack-node-sdk 1.32.8 → 1.32.9

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 (117) 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/templates/autoscaler/deployment.yaml +1 -1
  25. package/ats/src/utils/AWSUtils.js +1 -1
  26. package/ats/src/utils/createAutoscalerStack.js +1 -1
  27. package/ats/src/utils/createClusterStack.js +1 -1
  28. package/ats/src/utils/createk8sClient.js +1 -1
  29. package/ats/src/utils/deleteStack.js +1 -1
  30. package/ats/src/utils/gridComponents.js +1 -1
  31. package/ats/src/utils/hstUtils.js +1 -1
  32. package/ats/src/utils/instrumentationUtils.js +1 -1
  33. package/ats/src/utils/userInput.js +1 -1
  34. package/ats/src/utils/utilityMethods.js +1 -1
  35. package/ats/src/utils/webSocketUtils.js +1 -1
  36. package/package.json +5 -3
  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.setup.js +1 -1
  45. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  46. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  47. package/src/bin/integrations/command.js +2 -0
  48. package/src/bin/integrations/constants.js +1 -0
  49. package/src/bin/jest/command.js +1 -1
  50. package/src/bin/jest/customImplements/customCircus.js +1 -1
  51. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  52. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  53. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  54. package/src/bin/jest/jest.setup.js +1 -1
  55. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  56. package/src/bin/jest/test-observability/helper.js +1 -1
  57. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  58. package/src/bin/jest/test-observability/test-details.js +1 -1
  59. package/src/bin/jest/test_before.setup.js +1 -1
  60. package/src/bin/launcher/launcher.js +1 -1
  61. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  62. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  63. package/src/bin/mocha/command.js +1 -1
  64. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  65. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  66. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  67. package/src/bin/mocha/test.setup.js +1 -1
  68. package/src/bin/nightwatch/command.js +1 -1
  69. package/src/bin/playwright/accessibility-helper.js +1 -1
  70. package/src/bin/playwright/command.js +1 -1
  71. package/src/bin/playwright/globalSetup.js +1 -1
  72. package/src/bin/playwright/mock-process.js +1 -1
  73. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  74. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  75. package/src/bin/playwright/reporter/reporter.js +1 -1
  76. package/src/bin/playwright/reporter/test-details.js +1 -1
  77. package/src/bin/playwright/sessionDetails.js +1 -1
  78. package/src/bin/runner.js +1 -1
  79. package/src/bin/setup.js +1 -1
  80. package/src/bin/test-runner/index.js +1 -1
  81. package/src/bin/test-runner/runTest.js +1 -1
  82. package/src/bin/test-runner/testWorker.js +1 -1
  83. package/src/bin/utils/constants.js +1 -1
  84. package/src/bin/utils/log4jsAppender.js +1 -1
  85. package/src/bin/utils/logPatcher.js +1 -1
  86. package/src/bin/utils/logReportingAPI.js +1 -1
  87. package/src/bin/vanilla-js/command.js +1 -1
  88. package/src/browserStackSdk.js +1 -1
  89. package/src/helpers/BrowserStackSetup.js +1 -1
  90. package/src/helpers/accessibility-automation/constants.js +1 -1
  91. package/src/helpers/accessibility-automation/helper.js +1 -1
  92. package/src/helpers/accessibility-automation/scripts.js +1 -1
  93. package/src/helpers/ats/constants.js +1 -1
  94. package/src/helpers/ats/helper.js +1 -1
  95. package/src/helpers/capsMapping.js +1 -1
  96. package/src/helpers/globals.js +1 -1
  97. package/src/helpers/helper.js +1 -1
  98. package/src/helpers/logger.js +1 -1
  99. package/src/helpers/patchHelpers.js +1 -1
  100. package/src/helpers/percy/Percy.js +1 -1
  101. package/src/helpers/percy/PercyBinary.js +1 -1
  102. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  103. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  104. package/src/helpers/percy/PercySDK.js +1 -1
  105. package/src/helpers/percy/index.js +1 -1
  106. package/src/helpers/percy/utils.js +1 -1
  107. package/src/helpers/performance-tester.js +1 -1
  108. package/src/helpers/request-spy.js +1 -1
  109. package/src/helpers/setKeepAlive.js +1 -1
  110. package/src/helpers/test-observability/constants.js +1 -1
  111. package/src/helpers/test-observability/error-handler.js +1 -1
  112. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  113. package/src/helpers/test-observability/sessionHandler.js +1 -1
  114. package/src/helpers/test-observability/utils.js +1 -1
  115. package/src/helpers/w3cMapping.js +1 -1
  116. package/src/hubAllocationMethods.js +1 -1
  117. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x3a59(){const _0x5076dd=['concurrency','Cluster\x20','alreadyPresent','EOUfA','QDEjM','getResourceClientId','create','gdfxY','../../cloudproviders/utils','s3bucket','setupAutoscaler','452ZYpeFH','42yLZGJJ','requestId','options','FbIxr','init-not-called','../../utils/utilityMethods','create-grid-checks-null-response','OAjbU','readFileSync','UUcpR','privateGrid','3699912uhpAON','nxEmi','isClusterPresent','ixiKY','mPoSU','<UsernamePlaceholder>','deleteCluster','NEKKb','securityGroups','maxNodes','MLZaF','HovyG','lPsMx','grid','Spawning\x20Grid\x20on\x20the\x20Cluster','CLI_RUN_STARTED','wUpXa','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hNsdx','split','ingress-nginx-controller','sEtIX','jFCjH','../../config/constants','yjcjL','pqOEg','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DnDMA','FSINn','sendEventToBackend','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','toLowerCase','ingress-nginx','TwGwx','oaerT','RIuKY','vhhwj','configureIfNotConfigured','Spawning\x20the\x20grid\x20','EXXsn','Browserstack','mSPEv','CLI_RUN_FINISHED','fOdSO','string','get-grid-url-auth-failed','create-grid-checks-auth-failed','isPrivateGrid','IxpLi','cZveW','Namespace\x20created','Deleting\x20the\x20CloudFormation\x20Stacks','region','jeNSk','IuWgI','lrwxw','uuid','OsrYp','hubVersion','iProh','Kfkkd','reconnecting-websocket','327664vAaVhx','help','stack','TiZUX','WsObu','password','gridName','delay','createOtherResources','clusterRegion','user','HroFL','bOZgX','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','CxobU','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Jfawv','handler','RDXcy','Create\x20a\x20new\x20Automation\x20grid.','JYZva','yAMTH','mlDqK','igMqb','default','POgES','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','namespace','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','jykzh','mYhKk','BvBvM','VPbnO','aNLej','body','clusterName','jkFEu','managedBy','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','type','metadata','qPLJw','\x20using\x20\x27','3|5|1|7|8|4|0|6|2','../../config/logger','tLRkK','IyGfD','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','private-grid','YHnKd','non-aws-azure-cluster','NifvZ','Cluster\x20created\x20successfully','BzeJH','https','TkqBL','TFgaH','lJNRf','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','rchDU','Found\x20VPC:\x20','exit','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','vpc','pre-spawned-subnets-not-selected','://','addListeners','fTFHD','Will\x20be\x20spawning\x20the\x20grid\x20','ngDRJ','LftZL','statusCode','cluster-name','create-grid-called','9936240EwDOhH','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','QhwPT','existsSync','pOehs','QahPe','cypqd','CGBSY','6594180MQflgg','uQVfD','cloud-provider','jfTeC','gufaF','bexXb','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfiles','IcVaj','message','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Adding\x20Websocket\x20listeners','INFO','stringify','Fsmll','42591JYzHWD','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','username','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','SPTOf','ncFTr','Create\x20a\x20private/public\x20grid.','GursP','miLRL','cASOI','CLI\x20run\x20started','qtGyf','createdBy','VlFtG','gridProfile','Namespace\x20Created','\x20are\x20not\x20present\x20in\x20VPC:\x20','hpHbZ','Subnets:\x20','https://','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','pre-spawned-invalid-vpc','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','/packages/cli/create-grid-checks','instanceType','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','APiqE','../../utils/userInput','DfBuT','998792YsXuIf','../../utils/gridComponents','HMrFa','create-grid-checks-grid-already-exists','info','description','../../utils/instrumentationUtils','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','vggOC','RAavG','grid-name','yEKHt','sOxLO','mfvuU','oRSNC','create-grid-checks-non-200','AUsmG','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','GET','setupNewCluster','\x27\x20grid\x20profile','FCMNN','create-grid-checks-invalid-profile','<PasswordPlaceholder>','Found\x20Subnets:\x20','rcLSy','argv','createNamespace','TqVVJ','eDUKU','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','mwCxh','Jpeaa','nHDuR','LOG','subnets','getGridHostname','desc','replace','TQsWN','browserVersion','OrcJe','route53','RRRzU','bstackAccesskey','PWYQW','/wd/hub','scFXE','YrbCI','yGSQZ','grid-spawning-failed','includes','get-grid-url-null-response','grid-profile','annotations','EJbzd','CLI\x20run\x20finished:\x20','../../utils/createk8sClient','bstackUsername','sendResourceDataToHST','http','InYog','cyNPt','861552EHNDvH','DUKej','got','XPOim','mTfyz','private-ingress-nginx-controller','Grid\x20profile\x20fetched\x20from\x20backend','name','XcMuU','parse','\x20in\x20existing\x20cluster\x20\x27','cSIHF','true','writeFileSync','readNamespacedService','wJGth','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','bWQtM','ZEczL','error','PHIhu','0|1|2|3|4','VGNxw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wKrzy','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Khycl','EZPuE','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','bpmLi','NsmBR','epilogue','piaze','connectionTimeout','debug','qHlnm','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.','WRHZr','Grid\x20can\x20be\x20accessed\x20at:\x20','fkvTN','Grid\x20spawned\x20on\x20the\x20cluster','defaultGridProfile','ERROR','9eMtYgV','uHDrW','cWiMO','fetchLocalCreds','4|2|7|0|3|5|1|8|6','../../utils/webSocketUtils','mEYlM','command','skkMU','get-grid-url-non-200','aaytk','RQrwM','cloudProvider','JGdpn'];a9_0x3a59=function(){return _0x5076dd;};return a9_0x3a59();}function a9_0x5164(_0x92b6bf,_0x404d74){const _0x3a592c=a9_0x3a59();return a9_0x5164=function(_0x5164b7,_0x303dc0){_0x5164b7=_0x5164b7-0x81;let _0x8fc3bc=_0x3a592c[_0x5164b7];return _0x8fc3bc;},a9_0x5164(_0x92b6bf,_0x404d74);}const a9_0xa53ecf=a9_0x5164;(function(_0x4bbf74,_0x4e023b){const _0x162b8c=a9_0x5164,_0x2b7f7e=_0x4bbf74();while(!![]){try{const _0x2a9114=-parseInt(_0x162b8c(0xd0))/0x1+-parseInt(_0x162b8c(0x19d))/0x2+parseInt(_0x162b8c(0xb3))/0x3*(-parseInt(_0x162b8c(0x153))/0x4)+parseInt(_0x162b8c(0xa4))/0x5+-parseInt(_0x162b8c(0x10f))/0x6*(-parseInt(_0x162b8c(0x154))/0x7)+parseInt(_0x162b8c(0x15f))/0x8*(parseInt(_0x162b8c(0x13a))/0x9)+parseInt(_0x162b8c(0x9c))/0xa;if(_0x2a9114===_0x4e023b)break;else _0x2b7f7e['push'](_0x2b7f7e['shift']());}catch(_0x106ef7){_0x2b7f7e['push'](_0x2b7f7e['shift']());}}}(a9_0x3a59,0xd44f0));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0xa53ecf(0x19c)),got=require(a9_0xa53ecf(0x111)),{v4:uuidv4}=require(a9_0xa53ecf(0x197)),webSocketUtils=require(a9_0xa53ecf(0x13f)),{logger}=require(a9_0xa53ecf(0x1ca)),{inputCloudProviderKeys}=require(a9_0xa53ecf(0xce)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0xa53ecf(0x159)),{getCloudProviderObject}=require(a9_0xa53ecf(0x150)),{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_0xa53ecf(0x176)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0xa53ecf(0xd1)),{createK8sClient}=require(a9_0xa53ecf(0x109)),{sendInstrumentationEvent}=require(a9_0xa53ecf(0xd6));exports[a9_0xa53ecf(0x141)]=a9_0xa53ecf(0x16c),exports[a9_0xa53ecf(0xf5)]=a9_0xa53ecf(0x1b0),exports['builder']=function(_0x32a06f){const _0x24512c=a9_0xa53ecf,_0x511b09={};_0x511b09[_0x24512c(0x1b1)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x511b09[_0x24512c(0x9e)]=_0x24512c(0x18b),_0x511b09['ncFTr']=_0x24512c(0x170),_0x511b09[_0x24512c(0x84)]=_0x24512c(0x1b7),_0x511b09[_0x24512c(0x95)]=_0x24512c(0xc7),_0x511b09[_0x24512c(0xfb)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x511b09[_0x24512c(0xd9)]=_0x24512c(0xb9),_0x511b09[_0x24512c(0x12f)]=_0x24512c(0x19e);const _0x19049d=_0x511b09,_0x5eb99c={};_0x5eb99c[_0x24512c(0xd5)]=_0x19049d[_0x24512c(0x1b1)],_0x5eb99c[_0x24512c(0x1c5)]=_0x19049d[_0x24512c(0x9e)];const _0x5072a7={};_0x5072a7[_0x24512c(0xd5)]=_0x19049d[_0x24512c(0xb8)],_0x5072a7[_0x24512c(0x1c5)]=_0x19049d['QhwPT'];const _0x4ef9d3={};_0x4ef9d3[_0x24512c(0xd5)]=_0x19049d[_0x24512c(0x84)],_0x4ef9d3[_0x24512c(0x1c5)]=_0x19049d[_0x24512c(0x9e)];const _0x9ef14a={};_0x9ef14a['description']=_0x19049d[_0x24512c(0x95)],_0x9ef14a[_0x24512c(0x1c5)]=_0x19049d['QhwPT'];const _0x5aa871={};_0x5aa871[_0x24512c(0xd5)]=_0x19049d[_0x24512c(0xfb)],_0x5aa871[_0x24512c(0x1c5)]=_0x19049d[_0x24512c(0x9e)];const _0x335cd2={};_0x335cd2[_0x24512c(0xd5)]=_0x19049d['RAavG'],_0x335cd2[_0x24512c(0x1c5)]=_0x19049d[_0x24512c(0x9e)];const _0x1241c3={};return _0x1241c3[_0x24512c(0xda)]=_0x5eb99c,_0x1241c3[_0x24512c(0x105)]=_0x5072a7,_0x1241c3[_0x24512c(0x9a)]=_0x4ef9d3,_0x1241c3[_0x24512c(0xa6)]=_0x9ef14a,_0x1241c3[_0x24512c(0x193)]=_0x5aa871,_0x1241c3[_0x24512c(0x81)]=_0x335cd2,_0x32a06f['usage'](HELP_HEADER_MESSAGE[_0x24512c(0x14e)])[_0x24512c(0x12e)](HELP_FOOTER_MESSAGE)[_0x24512c(0x156)](_0x1241c3)['help'](_0x19049d[_0x24512c(0x12f)])[_0x24512c(0xea)];},exports[a9_0xa53ecf(0x1ae)]=async function(_0x16a91d){const _0x14961d=a9_0xa53ecf,_0x5e5357={'QwHEx':_0x14961d(0xae),'lPsMx':_0x14961d(0x18b),'jFCjH':_0x14961d(0x170),'amfJe':_0x14961d(0x1b7),'jkFEu':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','XcMuU':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ARktw':_0x14961d(0xb9),'qPLJw':_0x14961d(0x19e),'Khycl':_0x14961d(0x1c9),'TkqBL':_0x14961d(0x87),'RQrwM':'warn','hpHbZ':_0x14961d(0x10c),'VGNxw':'error','voxQP':function(_0x4a5c3c){return _0x4a5c3c();},'APiqE':function(_0x39fc24){return _0x39fc24();},'wUpXa':function(_0x551960,_0x33a12c){return _0x551960===_0x33a12c;},'cyNPt':_0x14961d(0x17b),'HroFL':'bkhcm','RIuKY':_0x14961d(0x126),'uHDrW':function(_0x31d412,_0x2f7871,_0x9c603,_0x1b1c5a,_0x563e9d,_0x1669af,_0x19d681){return _0x31d412(_0x2f7871,_0x9c603,_0x1b1c5a,_0x563e9d,_0x1669af,_0x19d681);},'cSIHF':_0x14961d(0x9b),'sOxLO':_0x14961d(0x158),'seNvA':function(_0x50fdc7,_0x225528,_0xda6e00,_0x3b6e2f,_0x452954,_0x2cd7a2,_0x2ae82f){return _0x50fdc7(_0x225528,_0xda6e00,_0x3b6e2f,_0x452954,_0x2cd7a2,_0x2ae82f);},'ZEczL':_0x14961d(0x164),'AQKpT':_0x14961d(0xe7),'luVFK':_0x14961d(0xaf),'mfvuU':function(_0x522d94,_0x2a9d81){return _0x522d94===_0x2a9d81;},'GursP':_0x14961d(0x162),'YrbCI':function(_0xefcd86,_0x1b6c35){return _0xefcd86!==_0x1b6c35;},'OAjbU':_0x14961d(0x180),'TiZUX':_0x14961d(0x1c3),'BvBvM':function(_0x345d15,_0x3a61eb,_0x4eda40,_0x2bb4e8,_0x318e1c,_0x2b597b,_0x295671,_0x585ead){return _0x345d15(_0x3a61eb,_0x4eda40,_0x2bb4e8,_0x318e1c,_0x2b597b,_0x295671,_0x585ead);},'fOdSO':'prespawned-cluster-args-not-passed','TFgaH':function(_0x341394,_0x10c9ab){return _0x341394!==_0x10c9ab;},'vggOC':_0x14961d(0xa5),'bWQtM':_0x14961d(0xb4),'mYhKk':function(_0x4680ab,_0x171251,_0x146b72,_0x16a692,_0x5f5740,_0x466a4f,_0x1bb436,_0x4b0032){return _0x4680ab(_0x171251,_0x146b72,_0x16a692,_0x5f5740,_0x466a4f,_0x1bb436,_0x4b0032);},'ruyqC':_0x14961d(0x83),'igMqb':function(_0x219f89,_0x3f3a4b){return _0x219f89===_0x3f3a4b;},'qHlnm':_0x14961d(0x11b),'sEtIX':_0x14961d(0x82),'JGdpn':'KeeuQ','QahPe':_0x14961d(0x112),'Jpeaa':function(_0x4dfd85,_0x44341f){return _0x4dfd85===_0x44341f;},'nHDuR':_0x14961d(0xde),'DfBuT':_0x14961d(0x1b2),'ujVFR':_0x14961d(0xe2),'mPoSU':function(_0x169439,_0x584d93,_0x82fbda){return _0x169439(_0x584d93,_0x82fbda);},'mlDqK':function(_0x569359,_0x51226b,_0x1feb07){return _0x569359(_0x51226b,_0x1feb07);},'TqVVJ':function(_0x33c64e,_0x1fc390){return _0x33c64e===_0x1fc390;},'eDUKU':'oJiTY','HDdOY':_0x14961d(0x18f),'Kfkkd':_0x14961d(0xaa),'yEKHt':_0x14961d(0x15a),'mbGpl':_0x14961d(0x144),'LftZL':_0x14961d(0x9d),'ngDRJ':function(_0x11d3da,_0x1bf2cd,_0x48629c,_0x58e1aa,_0x5b1815,_0x3c00a7,_0x11a8d2,_0x1cf93d){return _0x11d3da(_0x1bf2cd,_0x48629c,_0x58e1aa,_0x5b1815,_0x3c00a7,_0x11a8d2,_0x1cf93d);},'mTfyz':_0x14961d(0x18d),'oaerT':function(_0x532276,_0x532598){return _0x532276!==_0x532598;},'lJNRf':_0x14961d(0x12c),'cWiMO':_0x14961d(0x12a),'yGSQZ':_0x14961d(0xdf),'jvMlR':_0x14961d(0x115),'WRHZr':_0x14961d(0x1be),'mBjTf':_0x14961d(0x1aa),'cZveW':_0x14961d(0xd3),'skkMU':function(_0x273580,_0x308382){return _0x273580!==_0x308382;},'DIQKz':_0x14961d(0x183),'rcLSy':_0x14961d(0x1cc),'jfTeC':function(_0x342213,_0x409a97){return _0x342213===_0x409a97;},'CGBSY':function(_0x1debfa,_0x66da63){return _0x1debfa===_0x66da63;},'AUsmG':_0x14961d(0x127),'bexXb':'qnbxI','pOehs':_0x14961d(0x179),'PHIhu':function(_0x2f175e,_0x181739,_0x4914d8,_0x29c3fd,_0x14d7ee,_0x3c5054,_0x42f12e,_0xfedd0f){return _0x2f175e(_0x181739,_0x4914d8,_0x29c3fd,_0x14d7ee,_0x3c5054,_0x42f12e,_0xfedd0f);},'bjxIo':_0x14961d(0xe6),'UUcpR':function(_0x396e0b,_0xbe8d8e){return _0x396e0b!==_0xbe8d8e;},'cASOI':_0x14961d(0x157),'POgES':'qtOFh','LNsob':function(_0x241d08,_0x4beb92,_0x4f86ba,_0x28f065,_0x273205,_0x2200cc,_0x4ed946,_0x4078ba,_0x2391e7,_0x102d2c,_0x2f3a80,_0x5b405d){return _0x241d08(_0x4beb92,_0x4f86ba,_0x28f065,_0x273205,_0x2200cc,_0x4ed946,_0x4078ba,_0x2391e7,_0x102d2c,_0x2f3a80,_0x5b405d);},'oEhGx':function(_0x231e30,_0x150dad){return _0x231e30!==_0x150dad;},'EXXsn':_0x14961d(0x1a9),'mEYlM':_0x14961d(0x19a),'TQsWN':_0x14961d(0x13e),'VlFtG':function(_0x284bbf,_0x14b448,_0x47f604,_0x34adf2,_0x774857,_0xe6b8d,_0x882cc){return _0x284bbf(_0x14b448,_0x47f604,_0x34adf2,_0x774857,_0xe6b8d,_0x882cc);},'gdfxY':function(_0x249959,_0x2a430d){return _0x249959===_0x2a430d;},'scFXE':_0x14961d(0x1cd),'tLRkK':function(_0x568354,_0x20a4de){return _0x568354===_0x20a4de;},'qtGyf':function(_0x32b507,_0x21c9d9,_0x24ede7,_0x53db20){return _0x32b507(_0x21c9d9,_0x24ede7,_0x53db20);},'VPbnO':_0x14961d(0x1ac),'eeMBw':_0x14961d(0xee),'IuWgI':function(_0x3a46e7,_0x458e9c){return _0x3a46e7===_0x458e9c;},'mwCxh':_0x14961d(0xcc),'NEKKb':function(_0x141d92,_0x5d6008){return _0x141d92!=_0x5d6008;},'wJGth':function(_0x49dd6d,_0x2fecb1){return _0x49dd6d!==_0x2fecb1;},'mSPEv':function(_0x190667,_0x24630f){return _0x190667!=_0x24630f;},'yIJri':function(_0x31faeb,_0x4917cf){return _0x31faeb>_0x4917cf;},'fkvTN':_0x14961d(0x1c4),'IcVaj':_0x14961d(0x92),'WIcRz':_0x14961d(0x11f),'knLYY':function(_0x2b5d58,_0x529ea0,_0x5e982f,_0x17f516,_0x1196c8,_0x52b2ba,_0x3b7d13,_0x584615){return _0x2b5d58(_0x529ea0,_0x5e982f,_0x17f516,_0x1196c8,_0x52b2ba,_0x3b7d13,_0x584615);},'QDEjM':_0x14961d(0xc8),'Fsmll':function(_0xfa8609,_0x1917d7){return _0xfa8609===_0x1917d7;},'hNsdx':'pre-spawned-invalid-subnets','EJbzd':_0x14961d(0x124),'lrwxw':_0x14961d(0x133),'gufaF':_0x14961d(0x85),'miLRL':function(_0x1c1d87,_0x49bb9f){return _0x1c1d87===_0x49bb9f;},'PWYQW':function(_0x1371f3,_0x2cfb43){return _0x1371f3(_0x2cfb43);},'HMrFa':function(_0x38a9cf,_0x1dc192){return _0x38a9cf==_0x1dc192;},'OrcJe':'Creating\x20namespace','MLZaF':_0x14961d(0x1b5),'cypqd':'Browserstack','CxobU':_0x14961d(0xc2),'OsrYp':_0x14961d(0x191),'DUKej':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','tiFaq':_0x14961d(0x16d),'BzeJH':function(_0x1f524f,_0x5b901c){return _0x1f524f===_0x5b901c;},'InYog':function(_0x20a9c0,_0x571e20,_0x4f689d,_0x151ac4,_0x50c23e,_0x46dad7,_0x3d9e09,_0x568a3a,_0x13eede,_0x284572,_0x22cc1e){return _0x20a9c0(_0x571e20,_0x4f689d,_0x151ac4,_0x50c23e,_0x46dad7,_0x3d9e09,_0x568a3a,_0x13eede,_0x284572,_0x22cc1e);},'RDXcy':_0x14961d(0x137),'yjcjL':_0x14961d(0x90),'qrnOZ':function(_0x1e7ec1,_0x5c7376,_0x470cf5,_0x5dafec,_0x2f63cf){return _0x1e7ec1(_0x5c7376,_0x470cf5,_0x5dafec,_0x2f63cf);},'XnuTS':function(_0x554ff8,_0x233176,_0x38dd28){return _0x554ff8(_0x233176,_0x38dd28);},'WsObu':_0x14961d(0x114),'pqOEg':_0x14961d(0x173),'rchDU':_0x14961d(0x17f),'SPTOf':function(_0xf2b9f7,_0x55c2c0,_0x21d8d6){return _0xf2b9f7(_0x55c2c0,_0x21d8d6);},'gedLO':function(_0x33db57,_0x13575d){return _0x33db57==_0x13575d;},'jeNSk':_0x14961d(0x8f),'Tbhcb':function(_0x896991,_0x1e26e0,_0x5c8219,_0x269dfa,_0x5aed66,_0x520376,_0x19b73f,_0x2b4aaf){return _0x896991(_0x1e26e0,_0x5c8219,_0x269dfa,_0x5aed66,_0x520376,_0x19b73f,_0x2b4aaf);},'FCMNN':_0x14961d(0x104),'NsmBR':function(_0x5e8745,_0x5dca90){return _0x5e8745===_0x5dca90;},'DnDMA':_0x14961d(0x128),'EOUfA':function(_0x108cc4,_0x4ea4fb,_0x13f2aa,_0x445595,_0x18bc66,_0x4ff8d,_0x3c84f4,_0x59b0e2){return _0x108cc4(_0x4ea4fb,_0x13f2aa,_0x445595,_0x18bc66,_0x4ff8d,_0x3c84f4,_0x59b0e2);},'nxEmi':_0x14961d(0x18c),'jykzh':function(_0x2af91f,_0x42b79c,_0x33e8c7,_0x1bb699,_0x716490,_0x109b0c,_0x3bbeee,_0x30c7b5){return _0x2af91f(_0x42b79c,_0x33e8c7,_0x1bb699,_0x716490,_0x109b0c,_0x3bbeee,_0x30c7b5);},'Jfawv':_0x14961d(0x143),'fGVRl':function(_0x23c7b1,_0x259cc2){return _0x23c7b1===_0x259cc2;},'HGrQD':function(_0x1bb3aa,_0x406097,_0x3a6b8c,_0x19e4b6,_0x1f5555,_0x53f860){return _0x1bb3aa(_0x406097,_0x3a6b8c,_0x19e4b6,_0x1f5555,_0x53f860);},'HovyG':_0x14961d(0x102)};let _0x3c4906=![],_0x2f9c0d,_0x44ace8,_0xb959f3,_0x2ad42d,_0x1f8f84,_0x19a18a,_0x496532,_0x168c82,_0x5f0b07,_0x5e17c7,_0x253556,_0x212db1,_0x2f2dbb=0x1,_0x31e99e=0xe;try{global_registry[_0x14961d(0x155)]=_0x5e5357['voxQP'](uuidv4),global_registry[_0x14961d(0x18e)]=![];!fs[_0x14961d(0x9f)](_0x5e5357[_0x14961d(0xcd)](getCredentialsPath))&&(_0x5e5357[_0x14961d(0x16f)](_0x5e5357[_0x14961d(0x10e)],_0x5e5357[_0x14961d(0x1a8)])?_0x1c8d89['isPrivateGrid']=!![]:(console[_0x14961d(0x122)](_0x5e5357[_0x14961d(0x182)]),await _0x5e5357['uHDrW'](sendInstrumentationEvent,_0x16a91d,_0x5e5357['cSIHF'],messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0xdc)],null,_0x16a91d),process[_0x14961d(0x8e)](0x1)));await _0x5e5357['seNvA'](sendInstrumentationEvent,_0x16a91d,_0x5e5357['cSIHF'],messageTypes[_0x14961d(0xb0)],null,null,_0x16a91d);const _0x32ba3a=JSON[_0x14961d(0x118)](fs[_0x14961d(0x15c)](_0x5e5357['APiqE'](getCredentialsPath)));global_registry[_0x14961d(0x10a)]=_0x32ba3a[_0x14961d(0x187)][_0x14961d(0xb5)],global_registry[_0x14961d(0xfc)]=_0x32ba3a['Browserstack']['password'];const _0x10c3e7=WS_ENDPOINT[_0x14961d(0xf6)](_0x5e5357[_0x14961d(0x121)],_0x32ba3a[_0x14961d(0x187)]['username'])[_0x14961d(0xf6)](_0x5e5357['AQKpT'],_0x32ba3a['Browserstack'][_0x14961d(0x1a2)]),_0xa8b5b5={};_0xa8b5b5['WebSocket']=ws,_0xa8b5b5[_0x14961d(0x130)]=0x36ee80,_0x5e17c7=new ReconnectingWebSocket(_0x10c3e7,[],_0xa8b5b5),logger['debug'](_0x5e5357['luVFK']),webSocketUtils[_0x14961d(0x94)](_0x5e17c7,_0x16a91d[_0x14961d(0x1a7)],_0x16a91d[_0x14961d(0x1a2)]);let _0x237157=DEFAULT_GRID_NAME;(_0x16a91d['clusterName']||_0x16a91d[_0x14961d(0x146)]||_0x16a91d[_0x14961d(0x193)])&&(_0x5e5357[_0x14961d(0xdd)](_0x5e5357[_0x14961d(0xba)],_0x5e5357[_0x14961d(0xba)])?(!(_0x16a91d[_0x14961d(0x1c0)]&&_0x16a91d['cloudProvider']&&_0x16a91d[_0x14961d(0x193)])&&(_0x5e5357[_0x14961d(0x100)](_0x5e5357[_0x14961d(0x15b)],_0x5e5357['OAjbU'])?_0x3eda33[_0x14961d(0xc1)]=_0x4dee7a['gridProfile']:(_0x2f9c0d=_0x5e5357[_0x14961d(0x1a0)],await _0x5e5357[_0x14961d(0x1bc)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0x18a)],_0x5e5357['VGNxw']),logger['error'](_0x2f9c0d),process['exit'](0x1))),![AWS,AZURE,GCP][_0x14961d(0x103)](_0x16a91d[_0x14961d(0x146)]['toLowerCase']())&&(_0x5e5357[_0x14961d(0x89)](_0x5e5357['vggOC'],_0x5e5357[_0x14961d(0xd8)])?_0x189d33['info'](_0x14961d(0x8d)+_0x5a7037+'\x20'):(_0x2f9c0d=_0x5e5357[_0x14961d(0x120)],await _0x5e5357[_0x14961d(0x1bb)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357['ruyqC'],_0x5e5357[_0x14961d(0x125)]),logger[_0x14961d(0x122)](_0x2f9c0d),process['exit'](0x1))),_0x16a91d[_0x14961d(0x15e)]&&_0x5e5357[_0x14961d(0x1b4)](_0x16a91d[_0x14961d(0x15e)]['toLowerCase'](),_0x5e5357[_0x14961d(0x132)])&&(_0x5e5357[_0x14961d(0xdd)](_0x5e5357[_0x14961d(0x174)],_0x5e5357[_0x14961d(0x174)])?global_registry['isPrivateGrid']=!![]:_0x34c942['cloudProvider']={}),_0x3c4906=!![],_0xb959f3=_0x16a91d['clusterName'],_0x44ace8=_0x16a91d[_0x14961d(0x146)][_0x14961d(0x17e)](),_0x2ad42d=_0x16a91d[_0x14961d(0x193)]):_0x1729d1[_0x14961d(0x18e)]=!![]);_0x16a91d[_0x14961d(0x1a3)]&&(_0x5e5357[_0x14961d(0x100)](_0x5e5357[_0x14961d(0x147)],_0x5e5357[_0x14961d(0xa1)])?_0x237157=_0x16a91d[_0x14961d(0x1a3)]:_0x4c7a1c=_0x245841[_0x14961d(0x1a3)]);if(_0x16a91d[_0x14961d(0xc1)]){if(_0x5e5357['Jpeaa'](_0x5e5357[_0x14961d(0xf1)],_0x5e5357[_0x14961d(0xcf)])){const _0x87f96={};_0x87f96[_0x14961d(0xd5)]=_0x5e5357['QwHEx'],_0x87f96[_0x14961d(0x1c5)]=_0x5e5357['lPsMx'];const _0x5461fc={};_0x5461fc[_0x14961d(0xd5)]=_0x5e5357[_0x14961d(0x175)],_0x5461fc[_0x14961d(0x1c5)]=_0x5e5357[_0x14961d(0x16b)];const _0x4aa1f5={};_0x4aa1f5['description']=_0x5e5357['amfJe'],_0x4aa1f5['type']=_0x5e5357['lPsMx'];const _0x422a10={};_0x422a10[_0x14961d(0xd5)]=_0x5e5357[_0x14961d(0x1c1)],_0x422a10[_0x14961d(0x1c5)]=_0x5e5357[_0x14961d(0x16b)];const _0x66f41a={};_0x66f41a[_0x14961d(0xd5)]=_0x5e5357[_0x14961d(0x117)],_0x66f41a['type']=_0x5e5357[_0x14961d(0x16b)];const _0x18ccb7={};_0x18ccb7[_0x14961d(0xd5)]=_0x5e5357['ARktw'],_0x18ccb7[_0x14961d(0x1c5)]=_0x5e5357[_0x14961d(0x16b)];const _0x330765={};return _0x330765[_0x14961d(0xda)]=_0x87f96,_0x330765[_0x14961d(0x105)]=_0x5461fc,_0x330765[_0x14961d(0x9a)]=_0x4aa1f5,_0x330765[_0x14961d(0xa6)]=_0x422a10,_0x330765['region']=_0x66f41a,_0x330765[_0x14961d(0x81)]=_0x18ccb7,_0x2aed73['usage'](_0xf637ae['create'])[_0x14961d(0x12e)](_0x1abf47)[_0x14961d(0x156)](_0x330765)['help'](_0x5e5357[_0x14961d(0x1c7)])[_0x14961d(0xea)];}else global_registry[_0x14961d(0xc1)]=_0x16a91d[_0x14961d(0xc1)];}global_registry[_0x14961d(0x1a3)]=_0x237157;const _0x57317a={'method':_0x5e5357['ujVFR'],'headers':_0x5e5357[_0x14961d(0x163)](getAuthHeader,_0x32ba3a[_0x14961d(0x187)][_0x14961d(0xb5)],_0x32ba3a[_0x14961d(0x187)][_0x14961d(0x1a2)]),'throwHttpErrors':![]},_0x5beb53=_0x14961d(0xc6)+AG_API_URL+_0x14961d(0xca),_0x35255c={};_0x35255c['gridName']=_0x237157;const _0x3d90e7={'searchParams':_0x35255c,'throwHttpErrors':![],..._0x57317a},_0xf3f55f=_0x3d90e7,_0x278a78=await _0x5e5357[_0x14961d(0x1b3)](got,_0x5beb53,_0xf3f55f);(_0x5e5357[_0x14961d(0xdd)](_0x278a78,null)||_0x5e5357[_0x14961d(0x1b4)](_0x278a78,undefined))&&(_0x5e5357[_0x14961d(0xec)](_0x5e5357[_0x14961d(0xed)],_0x5e5357['HDdOY'])?_0xc8353e[_0x14961d(0x10b)]():(_0x2f9c0d=_0x5e5357[_0x14961d(0x19b)],await _0x5e5357[_0x14961d(0x1bb)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes['ERROR'],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0xdb)],_0x5e5357['VGNxw']),logger[_0x14961d(0x122)](_0x2f9c0d),process[_0x14961d(0x8e)](0x1)));if(_0x5e5357[_0x14961d(0x16f)](_0x278a78[_0x14961d(0x99)],0x191)){if(_0x5e5357[_0x14961d(0xec)](_0x5e5357['mbGpl'],_0x5e5357['mbGpl']))_0x2f9c0d=_0x5e5357[_0x14961d(0x98)],await _0x5e5357[_0x14961d(0x97)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0x113)],_0x5e5357[_0x14961d(0x125)]),logger[_0x14961d(0x122)](_0x2f9c0d),process['exit'](0x1);else{const _0xa18300=_0x5e5357[_0x14961d(0x129)]['split']('|');let _0x5040cc=0x0;while(!![]){switch(_0xa18300[_0x5040cc++]){case'0':_0x317cde['clusterName']=_0x1bb3fc;continue;case'1':_0x3a8057[_0x14961d(0xd4)](_0x5ce44d);continue;case'2':_0x5923d6[_0x14961d(0xf8)]=_0x2daf33['browserVersion'];continue;case'3':const _0x306fe1={};_0x306fe1[_0x14961d(0x1c5)]=_0x154a1c[_0x14961d(0x16e)],_0x306fe1[_0x14961d(0xad)]=_0x14961d(0xbd),_0x45d783[_0x14961d(0x17c)](_0x2201e9,_0x306fe1);continue;case'4':_0x354dc2[_0x14961d(0x1a6)]=_0x1140f5;continue;case'5':_0x2f443f=_0x14961d(0x185)+_0x3e0164+_0x14961d(0x119)+_0x110c98+'\x27';continue;case'6':_0x2547ff[_0x14961d(0x199)]=_0x35aebd[_0x14961d(0x199)];continue;case'7':const _0x1c624c={};_0x1c624c['type']=_0x567b76[_0x14961d(0xf2)],_0x1c624c[_0x14961d(0xad)]=_0xdf07d8,_0x40d08a[_0x14961d(0x17c)](_0x3b2d3a,_0x1c624c);continue;case'8':_0x4e9ad6[_0x14961d(0x146)]=_0x3144ae;continue;}break;}}}_0x5e5357[_0x14961d(0x181)](_0x278a78[_0x14961d(0x99)],0xc8)&&(_0x5e5357[_0x14961d(0x100)](_0x5e5357[_0x14961d(0x8a)],_0x5e5357[_0x14961d(0x13c)])?(_0x2f9c0d=_0x14961d(0x17d)+JSON['stringify'](_0x278a78),await _0x5e5357[_0x14961d(0x1bc)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357['cSIHF'],_0x5e5357[_0x14961d(0x101)],_0x5e5357[_0x14961d(0x125)]),logger['error'](_0x2f9c0d),process[_0x14961d(0x8e)](0x1)):(_0x26f479=_0x28e9d0[_0x14961d(0xfa)],_0x17947c=_0x5e5357['TkqBL']));const _0x1dd211=JSON['parse'](_0x278a78[_0x14961d(0x1bf)]),_0x40a97a={};_0x40a97a['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x40a97a[_0x14961d(0xad)]='CLI\x20run\x20started',webSocketUtils['sendEventToBackend'](_0x5e17c7,_0x40a97a);const _0x41b935={};_0x41b935[_0x14961d(0x1c5)]=WS_EVENTS['LOG'],_0x41b935[_0x14961d(0xad)]=_0x5e5357['jvMlR'],webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x41b935);_0x1dd211[_0x14961d(0x14a)]&&(_0x5e5357[_0x14961d(0xec)](_0x5e5357[_0x14961d(0x134)],_0x5e5357['WRHZr'])?(_0x2f9c0d=_0x5e5357['mBjTf'],await _0x5e5357[_0x14961d(0x1bc)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0x190)],_0x5e5357['VGNxw']),logger['error'](_0x2f9c0d),process[_0x14961d(0x8e)](0x1)):_0xaf53b4[_0x14961d(0xd4)](_0x14961d(0xe8)+_0x5e2556['stringify'](_0x5cd39a)+'\x20'));const _0x2a6eb3=_0x1dd211[_0x14961d(0xab)];let _0x2844cc=_0x2a6eb3[_0x1dd211[_0x14961d(0x138)]];if(_0x16a91d[_0x14961d(0xc1)]){if(_0x5e5357[_0x14961d(0x142)](_0x5e5357['DIQKz'],_0x5e5357[_0x14961d(0xe9)]))_0x2844cc=_0x2a6eb3[_0x16a91d[_0x14961d(0xc1)]];else{const _0x1b56ac={};_0x1b56ac[_0x14961d(0x1c5)]=_0x409597[_0x14961d(0xf2)],_0x1b56ac[_0x14961d(0xad)]=_0x14961d(0x149)+_0x394585+_0x14961d(0xc9),_0x1c0ea1['sendEventToBackend'](_0x3db432,_0x1b56ac,_0x5e5357['RQrwM']),_0xc51f6c[_0x14961d(0xd4)](_0x14961d(0x149)+_0x1dd754+_0x14961d(0xc9)),_0x9bc8b4=!![];}}if(_0x5e5357[_0x14961d(0xa7)](_0x3c4906,![])){if(_0x5e5357[_0x14961d(0xa3)](_0x5e5357[_0x14961d(0xe0)],_0x5e5357[_0x14961d(0xe0)])){_0x5e5357['wUpXa'](_0x2844cc,undefined)&&(_0x5e5357[_0x14961d(0x100)](_0x5e5357[_0x14961d(0xa9)],_0x5e5357['bexXb'])?_0x2dee72=_0x5e5357[_0x14961d(0xc4)]:(_0x2f9c0d=_0x5e5357[_0x14961d(0xa0)],await _0x5e5357[_0x14961d(0x123)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357['bjxIo'],_0x5e5357[_0x14961d(0x125)]),logger[_0x14961d(0x122)](_0x2f9c0d),process[_0x14961d(0x8e)](0x1)));global_registry['gridProfileId']=_0x2844cc['id'],_0x2f9c0d=_0x14961d(0x96)+_0x237157+_0x14961d(0x1c8)+_0x2844cc[_0x14961d(0x116)]+_0x14961d(0xe4),logger['info'](_0x2f9c0d);const _0xe85f1b={};_0xe85f1b[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0xe85f1b['message']=_0x2f9c0d,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0xe85f1b),_0x44ace8=_0x2844cc['cloudProvider'],_0xb959f3=_0x2844cc[_0x14961d(0x1c0)],_0x2ad42d=_0x2844cc['region'],_0x1f8f84=_0x2844cc[_0x14961d(0x148)],_0x19a18a=_0x2844cc[_0x14961d(0xcb)],_0x496532=_0x2844cc[_0x14961d(0x91)],securityGroups=_0x2844cc[_0x14961d(0x167)],subnets=_0x2844cc[_0x14961d(0xf3)],_0x168c82=_0x2844cc[_0x14961d(0x151)],_0x2f2dbb=_0x2844cc['minNodes'],_0x31e99e=_0x2844cc[_0x14961d(0x168)],_0x253556=_0x1dd211[_0x14961d(0x199)],_0x212db1=_0x1dd211['browserVersion'],_0x5e5357[_0x14961d(0x89)](_0x2844cc[_0x14961d(0x15e)],undefined)&&_0x2844cc[_0x14961d(0x15e)]&&(_0x5e5357[_0x14961d(0x15d)](_0x5e5357[_0x14961d(0xbc)],_0x5e5357[_0x14961d(0x1b6)])?global_registry[_0x14961d(0x18e)]=!![]:_0x16f93b[_0x14961d(0x122)](_0x14961d(0xd7)+_0x175084+'\x20\x0a'+_0x4aa9d0[_0x14961d(0xb1)](_0x186688[_0x14961d(0x19f)]))),_0x5e5357['LNsob'](updateGlobalRegistryWithConfig,_0x44ace8,_0xb959f3,_0x2ad42d,_0x1f8f84,_0x19a18a,_0x168c82,_0x2844cc,_0x253556,_0x212db1,_0x2f2dbb,_0x31e99e);}else _0x3d87b4=_0x5157b5[_0x17bc1f[_0x14961d(0xc1)]];}else{if(_0x5e5357['oEhGx'](_0x5e5357[_0x14961d(0x186)],_0x5e5357[_0x14961d(0x140)])){const _0x293079=_0x5e5357[_0x14961d(0xf7)][_0x14961d(0x172)]('|');let _0x1cdffa=0x0;while(!![]){switch(_0x293079[_0x1cdffa++]){case'0':const _0x24dfb9={};_0x24dfb9['type']=WS_EVENTS[_0x14961d(0xf2)],_0x24dfb9[_0x14961d(0xad)]=_0x2f9c0d,webSocketUtils['sendEventToBackend'](_0x5e17c7,_0x24dfb9);continue;case'1':global_registry[_0x14961d(0x1c0)]=_0xb959f3;continue;case'2':_0x2f9c0d=_0x14961d(0x185)+_0x237157+_0x14961d(0x119)+_0xb959f3+'\x27';continue;case'3':global_registry[_0x14961d(0x146)]=_0x44ace8;continue;case'4':const _0x123a69={};_0x123a69[_0x14961d(0x1c5)]=WS_EVENTS['CLI_RUN_STARTED'],_0x123a69[_0x14961d(0xad)]=_0x14961d(0xbd),webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x123a69);continue;case'5':global_registry[_0x14961d(0x1a6)]=_0x2ad42d;continue;case'6':global_registry['browserVersion']=_0x1dd211[_0x14961d(0xf8)];continue;case'7':logger[_0x14961d(0xd4)](_0x2f9c0d);continue;case'8':global_registry[_0x14961d(0x199)]=_0x1dd211['hubVersion'];continue;}break;}}else{const _0x2cd138={};_0x2cd138[_0x14961d(0x1c5)]=_0x26af7c[_0x14961d(0xf2)],_0x2cd138[_0x14961d(0xad)]=_0x1e8a68,_0x1b68eb[_0x14961d(0x17c)](_0x2f7ad1,_0x2cd138,_0x5e5357[_0x14961d(0x125)],!![]);}}const _0x14f2d7=await _0x5e5357[_0x14961d(0xc0)](getCloudProviderObject,_0x44ace8,_0xb959f3,_0x237157,_0x5e17c7,webSocketUtils,_0x16a91d),_0xa780e4=_0x32ba3a[_0x14961d(0x146)]||{};if(_0x5e5357[_0x14961d(0x14f)](_0xa780e4[_0x44ace8],undefined)){logger['info'](_0x5e5357[_0x14961d(0xff)]);_0x5e5357[_0x14961d(0x1cb)](_0x32ba3a[_0x14961d(0x146)],undefined)&&(_0x32ba3a[_0x14961d(0x146)]={});_0x32ba3a['cloudProvider'][_0x44ace8]={};const _0x1a6e11=await _0x5e5357[_0x14961d(0xbe)](inputCloudProviderKeys,_0x44ace8,_0x32ba3a,_0x14f2d7);fs[_0x14961d(0x11c)](_0x5e5357[_0x14961d(0xcd)](getCredentialsPath),JSON[_0x14961d(0xb1)](_0x1a6e11)),logger[_0x14961d(0x131)](_0x5e5357[_0x14961d(0x1bd)]);}else{_0x2f9c0d=_0x5e5357['eeMBw'];const _0x416cfa={};_0x416cfa['type']=WS_EVENTS['LOG'],_0x416cfa[_0x14961d(0xad)]=_0x2f9c0d,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x416cfa),logger[_0x14961d(0xd4)](_0x2f9c0d),await _0x14f2d7[_0x14961d(0x13d)](_0xa780e4);}_0x14f2d7[_0x14961d(0x184)]();_0x5e5357['TFgaH'](_0x44ace8,AZURE)&&_0x14f2d7[_0x14961d(0x10b)]();let _0x38265b;if(_0x5e5357[_0x14961d(0x195)](_0x3c4906,![])){_0x2f9c0d=_0x14961d(0x8b)+_0x2ad42d+').';const _0x471bb9={};_0x471bb9[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0x471bb9[_0x14961d(0xad)]=_0x2f9c0d,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x471bb9),logger['info'](_0x2f9c0d);const _0x5d37e4=await _0x14f2d7[_0x14961d(0x161)]();if(_0x5d37e4){const _0x4037f7={};_0x4037f7[_0x14961d(0x1c5)]=WS_EVENTS['LOG'],_0x4037f7[_0x14961d(0xad)]=_0x14961d(0x149)+_0xb959f3+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x4037f7,_0x5e5357[_0x14961d(0x145)]),logger['info']('Cluster\x20'+_0xb959f3+_0x14961d(0xc9)),_0x3c4906=!![];}else{const _0x4632db={};_0x4632db[_0x14961d(0x1c5)]=WS_EVENTS['LOG'],_0x4632db[_0x14961d(0xad)]=_0x5e5357['mwCxh'],webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x4632db),logger[_0x14961d(0xd4)](_0x5e5357[_0x14961d(0xef)]);const _0x54b386=_0x5e5357[_0x14961d(0x166)](_0x496532,null)&&_0x5e5357[_0x14961d(0x11e)](_0x496532,undefined),_0x2b46a3=_0x5e5357[_0x14961d(0x188)](subnets,null)&&_0x5e5357[_0x14961d(0x89)](subnets,undefined)&&_0x5e5357['yIJri'](subnets['length'],0x0);if(_0x54b386){_0x5e5357[_0x14961d(0x14f)](_0x2b46a3,![])&&(_0x2f9c0d=_0x5e5357[_0x14961d(0x136)],await _0x5e5357[_0x14961d(0x123)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes['ERROR'],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0xac)],_0x5e5357[_0x14961d(0x125)]),logger[_0x14961d(0x122)](_0x2f9c0d),process[_0x14961d(0x8e)](0x1));const _0x47f989=await _0x14f2d7['isVPCPresent'](_0x496532);_0x5e5357[_0x14961d(0xf0)](_0x47f989,![])?(_0x2f9c0d=_0x5e5357['WIcRz'],await _0x5e5357['knLYY'](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0x14c)],_0x5e5357[_0x14961d(0x125)]),logger[_0x14961d(0x122)](_0x2f9c0d),process[_0x14961d(0x8e)](0x1)):logger[_0x14961d(0xd4)]('Found\x20VPC:\x20'+_0x496532+'\x20');const _0x103f31=await _0x14f2d7['isSubnetsValid'](subnets,_0x496532);_0x5e5357[_0x14961d(0xb2)](_0x103f31[0x0],![])?(_0x2f9c0d=_0x14961d(0xc5)+JSON[_0x14961d(0xb1)](_0x103f31[0x1])+_0x14961d(0xc3)+_0x496532+_0x14961d(0xb6),await _0x5e5357[_0x14961d(0x123)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes['ERROR'],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0x171)],_0x5e5357[_0x14961d(0x125)]),logger[_0x14961d(0x122)](_0x2f9c0d),process[_0x14961d(0x8e)](0x1)):logger[_0x14961d(0xd4)](_0x14961d(0xe8)+JSON['stringify'](subnets)+'\x20'),await _0x14f2d7[_0x14961d(0xe3)](_0x496532,subnets);}else{const _0x1d8292=_0x5e5357[_0x14961d(0x107)][_0x14961d(0x172)]('|');let _0x4a43b7=0x0;while(!![]){switch(_0x1d8292[_0x4a43b7++]){case'0':const _0x29b3f1={};_0x29b3f1[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0x29b3f1[_0x14961d(0xad)]=_0x5e5357[_0x14961d(0x196)],webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x29b3f1);continue;case'1':logger[_0x14961d(0xd4)](_0x5e5357['lrwxw']);continue;case'2':await _0x14f2d7['setupNewCluster']();continue;case'3':const _0x5de746={};_0x5de746[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0x5de746['message']='Cluster\x20created\x20successfully',webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x5de746);continue;case'4':logger[_0x14961d(0xd4)](_0x5e5357[_0x14961d(0xa8)]);continue;}break;}}}}_0x3c4906&&_0x5e5357[_0x14961d(0xbb)](_0x44ace8,AZURE)&&(await _0x14f2d7['updatePreSpawnedCluster'](),await _0x14f2d7[_0x14961d(0x1a5)]());const [_0x46ef25,_0x525127,_0x312fc7,_0x37f83f,_0x103531,_0x31196]=await _0x5e5357[_0x14961d(0xfd)](createK8sClient,_0x14f2d7);_0x5e5357['TqVVJ'](_0x3c4906,![])&&_0x5e5357[_0x14961d(0xd2)](_0x44ace8,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x38265b=await _0x14f2d7[_0x14961d(0x152)](_0x46ef25,_0x16a91d));try{_0x5f0b07=_0x5e5357[_0x14961d(0xfd)](kebabCase,_0x237157),logger[_0x14961d(0xd4)](_0x5e5357[_0x14961d(0xf9)]);const _0x2fb2b4={};_0x2fb2b4[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0x2fb2b4[_0x14961d(0xad)]=_0x5e5357[_0x14961d(0xf9)],webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x2fb2b4);if(_0x5e5357[_0x14961d(0x89)](_0x5f0b07,_0x5e5357[_0x14961d(0x169)])){const _0x22ec17={};_0x22ec17[_0x14961d(0xbf)]=_0x5e5357[_0x14961d(0xa2)],_0x22ec17[_0x14961d(0x1c2)]=_0x5e5357[_0x14961d(0xa2)];const _0x24c9f1={};_0x24c9f1['name']=_0x5f0b07,_0x24c9f1[_0x14961d(0x106)]=_0x22ec17;const _0x41d25c={};_0x41d25c[_0x14961d(0x1c6)]=_0x24c9f1;let _0x7fb9d5=_0x41d25c;const _0x5b0e6d={};_0x5b0e6d[_0x14961d(0x1bf)]=_0x7fb9d5,await _0x46ef25[_0x14961d(0xeb)](_0x5b0e6d),logger[_0x14961d(0xd4)](_0x5e5357[_0x14961d(0x1ab)]);}const _0xf3232a={};_0xf3232a['type']=WS_EVENTS['LOG'],_0xf3232a['message']=_0x5e5357[_0x14961d(0x198)],webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0xf3232a);const _0x428fbc={};_0x428fbc['type']=WS_EVENTS[_0x14961d(0xf2)],_0x428fbc[_0x14961d(0xad)]=_0x5e5357[_0x14961d(0x110)],webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x428fbc),logger[_0x14961d(0xd4)](_0x5e5357['tiFaq']);let _0x51a2d4={};_0x5e5357[_0x14961d(0x86)](_0x44ace8,AZURE)&&(_0x51a2d4={'clientId':await _0x14f2d7[_0x14961d(0x14d)]('turboscale-managed-identity-'+_0xb959f3)});await _0x5e5357[_0x14961d(0x10d)](addGridComponents,_0x46ef25,_0x525127,_0x312fc7,_0x37f83f,_0x5f0b07,_0xb959f3,_0x38265b,_0x103531,_0x31196,_0x51a2d4),_0x2f9c0d=_0x5e5357[_0x14961d(0x1af)],logger['info'](_0x2f9c0d);const _0x4357e9={};_0x4357e9[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0x4357e9[_0x14961d(0xad)]=_0x2f9c0d,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x4357e9),_0x2f9c0d=_0x5e5357[_0x14961d(0x177)],logger[_0x14961d(0xd4)](_0x2f9c0d);const _0x1f2efc={};_0x1f2efc[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0x1f2efc[_0x14961d(0xad)]=_0x2f9c0d,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x1f2efc),await _0x5e5357['qrnOZ'](waitForDeployment,_0x525127,_0x5f0b07,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x1d909d=await _0x5e5357['XnuTS'](getNamespaceUID,_0x46ef25,_0x5f0b07);let _0x1401ae=global_registry[_0x14961d(0x18e)]?_0x5e5357[_0x14961d(0x1a1)]:_0x5e5357[_0x14961d(0x178)];const _0x31139b={};_0x31139b[_0x14961d(0x116)]=_0x1401ae,_0x31139b[_0x14961d(0x1b8)]=_0x5e5357[_0x14961d(0x8c)];let _0x110810=await _0x46ef25[_0x14961d(0x11d)](_0x31139b),_0x317420=_0x14f2d7[_0x14961d(0xf4)](_0x110810)+'/'+_0x5f0b07,_0x13a223=_0x5e5357['hpHbZ'];try{const _0x5f4bce=_0x14961d(0xc6)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x1d909d,_0x336c28=await _0x5e5357[_0x14961d(0xb7)](got,_0x5f4bce,_0x57317a);(_0x5e5357[_0x14961d(0xd2)](_0x336c28,null)||_0x5e5357['gedLO'](_0x336c28,undefined))&&(_0x2f9c0d=_0x5e5357[_0x14961d(0x194)],await _0x5e5357['Tbhcb'](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0xe5)],_0x5e5357['VGNxw']),logger[_0x14961d(0x122)](_0x2f9c0d),process[_0x14961d(0x8e)](0x1));_0x5e5357[_0x14961d(0x12d)](_0x336c28['statusCode'],0x191)&&(_0x2f9c0d=_0x5e5357[_0x14961d(0x17a)],await _0x5e5357[_0x14961d(0x14b)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0x160)],_0x5e5357['VGNxw']),logger[_0x14961d(0x122)](_0x2f9c0d),process[_0x14961d(0x8e)](0x1));_0x5e5357['skkMU'](_0x336c28['statusCode'],0xc8)&&(_0x2f9c0d=_0x14961d(0x12b)+JSON['stringify'](_0x336c28),await _0x5e5357[_0x14961d(0x1ba)](reportToGalactusAndSendToEDS,_0x16a91d,_0x5e17c7,_0x2f9c0d,messageTypes[_0x14961d(0x139)],_0x5e5357[_0x14961d(0x11a)],_0x5e5357[_0x14961d(0x1ad)],_0x5e5357[_0x14961d(0x125)]),logger['error'](_0x2f9c0d),process['exit'](0x1));const _0x1b4d3a=JSON[_0x14961d(0x118)](_0x336c28['body']);_0x1b4d3a[_0x14961d(0xfa)]&&(_0x317420=_0x1b4d3a[_0x14961d(0xfa)],_0x13a223=_0x5e5357[_0x14961d(0x88)]),global_registry['isPrivateGrid']&&(_0x13a223=_0x5e5357[_0x14961d(0xc4)]);}catch(_0x1c9313){}_0x2f9c0d=_0x14961d(0x135)+_0x317420+'\x20',logger['info'](_0x2f9c0d);const _0x87f884={};_0x87f884['type']=WS_EVENTS['LOG'],_0x87f884['message']=_0x2f9c0d,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x87f884),_0x2f9c0d=_0x14961d(0x1b9)+_0x13a223+_0x14961d(0x93)+_0x317420+_0x14961d(0xfe),logger[_0x14961d(0xd4)](_0x2f9c0d);const _0x3bfc6d={};_0x3bfc6d[_0x14961d(0x1c5)]=WS_EVENTS[_0x14961d(0xf2)],_0x3bfc6d[_0x14961d(0xad)]=_0x2f9c0d,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x3bfc6d);const _0x16bfc0={};_0x16bfc0['type']=WS_EVENTS[_0x14961d(0x189)],_0x16bfc0['message']=_0x14961d(0x108)+_0x317420,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x16bfc0),await webSocketUtils[_0x14961d(0x1a4)](0x7d0);}catch(_0x43bfd0){logger['error'](_0x14961d(0xe1)+_0x43bfd0+'\x20\x0a'+JSON[_0x14961d(0xb1)](_0x43bfd0['stack']));if(_0x5e5357['fGVRl'](_0x3c4906,![]))try{logger[_0x14961d(0xd4)](_0x14961d(0x192)),await _0x5e5357['HGrQD'](removeGridComponents,_0x46ef25,_0x525127,_0x312fc7,_0x37f83f,_0x5f0b07),await _0x14f2d7[_0x14961d(0x165)](_0x46ef25,global_registry[_0x14961d(0x1a6)]);}catch(_0xf4c745){logger[_0x14961d(0x122)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0xf4c745+'\x20\x0a'+JSON[_0x14961d(0xb1)](_0xf4c745[_0x14961d(0x19f)]));}throw _0x43bfd0;}}catch(_0xbbacbb){const _0x1447c6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0xbbacbb+'\x20\x0a'+JSON[_0x14961d(0xb1)](_0xbbacbb[_0x14961d(0x19f)]);if(_0x5e17c7){const _0x190ba0={};_0x190ba0[_0x14961d(0x1c5)]=WS_EVENTS['LOG'],_0x190ba0[_0x14961d(0xad)]=_0x1447c6,webSocketUtils[_0x14961d(0x17c)](_0x5e17c7,_0x190ba0,_0x5e5357[_0x14961d(0x125)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x4f2236={};_0x4f2236[_0x14961d(0x122)]=_0x1447c6,await _0x5e5357[_0x14961d(0x13b)](sendInstrumentationEvent,_0x16a91d,_0x5e5357['cSIHF'],messageTypes['ERROR'],_0x5e5357[_0x14961d(0x16a)],_0x4f2236,_0x16a91d),logger[_0x14961d(0x122)](_0x1447c6);}process[_0x14961d(0x8e)](0x0);};
1
+ function a9_0xa4cc(_0x5cb2b4,_0xc5aa3){const _0x16b9da=a9_0x16b9();return a9_0xa4cc=function(_0xa4cce8,_0x1c4e73){_0xa4cce8=_0xa4cce8-0x1d5;let _0x45f62c=_0x16b9da[_0xa4cce8];return _0x45f62c;},a9_0xa4cc(_0x5cb2b4,_0xc5aa3);}const a9_0x4f2f43=a9_0xa4cc;(function(_0x10059d,_0x3a60cb){const _0x362721=a9_0xa4cc,_0xac2f07=_0x10059d();while(!![]){try{const _0x4e90df=parseInt(_0x362721(0x2d1))/0x1+parseInt(_0x362721(0x213))/0x2+parseInt(_0x362721(0x300))/0x3*(-parseInt(_0x362721(0x2fd))/0x4)+-parseInt(_0x362721(0x203))/0x5*(-parseInt(_0x362721(0x2ea))/0x6)+parseInt(_0x362721(0x2f9))/0x7*(parseInt(_0x362721(0x228))/0x8)+-parseInt(_0x362721(0x2e0))/0x9+-parseInt(_0x362721(0x26e))/0xa*(parseInt(_0x362721(0x25e))/0xb);if(_0x4e90df===_0x3a60cb)break;else _0xac2f07['push'](_0xac2f07['shift']());}catch(_0x3c79d6){_0xac2f07['push'](_0xac2f07['shift']());}}}(a9_0x16b9,0x897a0));function a9_0x16b9(){const _0x3f50f5=['MSTYA','Namespace\x20created','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','mSRuG','parse','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','name','VwDqs','gmRnP','oQBOu','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','CevFC','CUmYp','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','PXoLd','bstackUsername','builder','hubVersion','LyveD','iIgru','getResourceClientId','uuid','yjfBo','bSxff','jJYsb','create-grid-checks-non-200','Create\x20a\x20new\x20Automation\x20grid.','<UsernamePlaceholder>','description','RvNyQ','readFileSync','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sxlqo','Wndru','Eohnj','get-grid-url-null-response','stringify','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','EZukg','eybvr','WaMzX','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','207283aSZhxk','CLI\x20run\x20started','user','cloudProvider','OgUug','../../utils/createk8sClient','abFYf','Anygm','../../utils/webSocketUtils','hKJRJ','ShqaB','replace','fhfLF','get-grid-url-non-200','pre-spawned-invalid-vpc','2298303dUUKrJ','PSDEW','CyrHl','cloud-provider','nwHjx','lQXMk','mVBOd','cqutL','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','Browserstack','6Jaharb','Spawning\x20grid\x20on\x20to\x20the\x20cluster','getGridHostname','ifNyj','FjEIG','stack','create-grid-checks-null-response','wcVJM','vpc','updatePreSpawnedCluster','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','clusterRegion','AGhvG','private-grid','exit','5803mdsVmQ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','username','../../config/logger','2096FdktQQ','\x20in\x20existing\x20cluster\x20\x27','region','2883REkzUn','BeMAB','pre-spawned-subnets-not-selected','create-grid-called','JoepZ','xUgRL','default','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','sendEventToBackend','SIlat','Create\x20a\x20private/public\x20grid.','swzAp','Seqxv','Deleting\x20the\x20CloudFormation\x20Stacks','CLI_RUN_FINISHED','grid-name','0|2|3|1|4','bNagU','Cluster\x20created\x20successfully','CNwwj','NgqDG','MfAxa','gVfJm','UpfKm','Found\x20Subnets:\x20','get-grid-url-auth-failed','aGkeT','dOWSE','cHsol','IeVqa','delay','qYtHV','usage','help','wBtrR','JzYbo','securityGroups','rCCKp','GWHPA','Grid\x20can\x20be\x20accessed\x20at:\x20','qYVjh','qHrGK','ExmQu','warn','debug','VVmDg','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','biiwf','bstackAccesskey','statusCode','isVPCPresent','route53','yIMFY','nYyOa','browserVersion','OCVtW','PrdrS','817450Hnvyfp','BODAQ','XwHJw','kIAOC','/wd/hub','clusterName','create-grid-checks-auth-failed','LZTRn','sWLJh','type','split','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','existsSync','bcFEO','qgQIv','hRcNm','2082232xfTkNr','../../config/constants','readNamespacedService','Ozedu','jHyWU','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','privateGrid','ERROR','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','grid-spawning-failed','../../utils/instrumentationUtils','hcnFW','LOG','YHISz','kmieR','JpIYK','got','sLJOw','YCqBd','configureIfNotConfigured','Zwfpq','7576IxdtdZ','subnets','includes','LBRzr','cluster-name','zlDGG','ciMih','annotations','argv','lNpMg','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','McnVN','MLMuD','options','minNodes','createdBy','private-ingress-nginx-controller','turboscale-managed-identity-','RNKRo','error','Spawning\x20the\x20grid\x20','isPrivateGrid','jQjjJ','length','OQzdq','message','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','info','xgZmT','qGRSE','://','toLowerCase','grid-profile','GdQaL','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','CLI_RUN_STARTED','gridProfile','Found\x20VPC:\x20','gGuTE','alreadyPresent','concurrency','prespawned-cluster-args-not-passed','create','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Creating\x20namespace','mKTlc','gridProfileId','namespace','handler','../../utils/gridComponents','utTnA','3|6|8|4|0|7|5|1|2','sFnqy','Pvxhe','3208029EnJGMr','\x20are\x20not\x20present\x20in\x20VPC:\x20','/packages/cli/get-grid-url?gridIdentifier=','qENXD','CggUf','xfYUQ','vQrLl','gridName','daVPZ','metadata','MLkSP','Adding\x20Websocket\x20listeners','dIlkE','krNSy','cJHuB','https://','30XHKaPW','ingress-nginx-controller','grid','setupNewCluster','TEWSQ','khgzH','gridProfiles','PCoZv','TQmDz','UFJyD','fetchLocalCreds','IfnAb','managedBy','AzVnW','WxDos','ingress-nginx','writeFileSync','GET','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','s3bucket','reconnecting-websocket','init-not-called','VqIdA','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','string','/packages/cli/create-grid-checks','udiyJ','command','XUphy','lWyeW','cqKPP','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','requestId','body','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','lMeeu','INPQj','LWZSc','sendResourceDataToHST','defaultGridProfile','https','HEfXU','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','BXxhW','Cluster\x20','iEFtP','DVmyl','TQRwI','setupAutoscaler','IvXRF','YPnWp','Spawning\x20Grid\x20on\x20the\x20Cluster','\x20using\x20\x27','PmfNK','nOXyz','FovuB','maxNodes'];a9_0x16b9=function(){return _0x3f50f5;};return a9_0x16b9();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x4f2f43(0x282)),got=require(a9_0x4f2f43(0x223)),{v4:uuidv4}=require(a9_0x4f2f43(0x2bc)),webSocketUtils=require(a9_0x4f2f43(0x2d9)),{logger}=require(a9_0x4f2f43(0x2fc)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x4f2f43(0x214)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x4f2f43(0x259)),{createK8sClient}=require(a9_0x4f2f43(0x2d6)),{sendInstrumentationEvent}=require(a9_0x4f2f43(0x21d));exports[a9_0x4f2f43(0x289)]=a9_0x4f2f43(0x270),exports['desc']=a9_0x4f2f43(0x2c1),exports[a9_0x4f2f43(0x2b7)]=function(_0x395cc6){const _0x1ce795=a9_0x4f2f43,_0x225ac7={};_0x225ac7[_0x1ce795(0x2a3)]=_0x1ce795(0x1f8),_0x225ac7['hRcNm']=_0x1ce795(0x286),_0x225ac7[_0x1ce795(0x1e6)]=_0x1ce795(0x307),_0x225ac7[_0x1ce795(0x28b)]=_0x1ce795(0x28d),_0x225ac7[_0x1ce795(0x2a5)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x225ac7['ZvHFe']=_0x1ce795(0x2a9),_0x225ac7[_0x1ce795(0x288)]=_0x1ce795(0x30a),_0x225ac7['OgUug']=_0x1ce795(0x1eb);const _0x11d62a=_0x225ac7,_0x4b06af={};_0x4b06af[_0x1ce795(0x2c3)]=_0x11d62a[_0x1ce795(0x2a3)],_0x4b06af[_0x1ce795(0x20c)]=_0x11d62a['hRcNm'];const _0x21db9a={};_0x21db9a['description']=_0x11d62a[_0x1ce795(0x1e6)],_0x21db9a[_0x1ce795(0x20c)]=_0x11d62a[_0x1ce795(0x212)];const _0xf56c57={};_0xf56c57['description']=_0x11d62a[_0x1ce795(0x28b)],_0xf56c57[_0x1ce795(0x20c)]=_0x11d62a[_0x1ce795(0x212)];const _0x546b47={};_0x546b47[_0x1ce795(0x2c3)]=_0x11d62a['FovuB'],_0x546b47['type']=_0x11d62a[_0x1ce795(0x212)];const _0x16f0dd={};_0x16f0dd[_0x1ce795(0x2c3)]=_0x11d62a['ZvHFe'],_0x16f0dd[_0x1ce795(0x20c)]=_0x11d62a[_0x1ce795(0x212)];const _0x2880e2={};_0x2880e2[_0x1ce795(0x2c3)]=_0x11d62a['udiyJ'],_0x2880e2[_0x1ce795(0x20c)]=_0x11d62a[_0x1ce795(0x212)];const _0x1d9e89={};return _0x1d9e89[_0x1ce795(0x1d9)]=_0x4b06af,_0x1d9e89[_0x1ce795(0x248)]=_0x21db9a,_0x1d9e89[_0x1ce795(0x22c)]=_0xf56c57,_0x1d9e89[_0x1ce795(0x2e3)]=_0x546b47,_0x1d9e89[_0x1ce795(0x2ff)]=_0x16f0dd,_0x1d9e89[_0x1ce795(0x2f7)]=_0x2880e2,_0x395cc6['usage'](HELP_HEADER_MESSAGE[_0x1ce795(0x252)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1ce795(0x235)](_0x1d9e89)[_0x1ce795(0x1eb)](_0x11d62a[_0x1ce795(0x2d5)])[_0x1ce795(0x230)];},exports[a9_0x4f2f43(0x258)]=async function(_0x559166){const _0x3df5c0=a9_0x4f2f43,_0x39d315={'YPnWp':_0x3df5c0(0x1f5),'ciMih':'http','swzAp':_0x3df5c0(0x1f8),'qGRSE':_0x3df5c0(0x286),'XUphy':_0x3df5c0(0x307),'utTnA':_0x3df5c0(0x28d),'ExmQu':_0x3df5c0(0x2c6),'xUgRL':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DVmyl':_0x3df5c0(0x30a),'fpvdh':_0x3df5c0(0x1eb),'sFnqy':_0x3df5c0(0x296),'CggUf':_0x3df5c0(0x25b),'lNpMg':_0x3df5c0(0x23b),'jJYsb':function(_0x2a9ea1){return _0x2a9ea1();},'JpIYK':function(_0x42ca12,_0x1cbe7a){return _0x42ca12!==_0x1cbe7a;},'IfnAb':_0x3df5c0(0x216),'bSxff':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eWrEF':function(_0xa6cbdb,_0x2849e5,_0x932cf8,_0x323d8c,_0x4c7d2e,_0x34498c,_0x2ff805){return _0xa6cbdb(_0x2849e5,_0x932cf8,_0x323d8c,_0x4c7d2e,_0x34498c,_0x2ff805);},'OQzdq':_0x3df5c0(0x303),'fhfLF':_0x3df5c0(0x283),'RNKRo':function(_0x5631a3,_0x434aed,_0x16c31b,_0x4da2cd,_0xa45b96,_0x2db80b,_0x158e2a){return _0x5631a3(_0x434aed,_0x16c31b,_0x4da2cd,_0xa45b96,_0x2db80b,_0x158e2a);},'ORuSw':function(_0x3573d1){return _0x3573d1();},'kDGWp':_0x3df5c0(0x2c2),'ZRltX':'<PasswordPlaceholder>','LyveD':_0x3df5c0(0x269),'Zwfpq':'eKagG','UFJyD':function(_0x30ee1c,_0x465386){return _0x30ee1c!==_0x465386;},'wcVJM':'gPRTB','hwthY':_0x3df5c0(0x20e),'nOXyz':function(_0x4d154f,_0x583889,_0x335732,_0x2de720,_0x519a35,_0x718a1b,_0x3cc27a,_0x5c0894){return _0x4d154f(_0x583889,_0x335732,_0x2de720,_0x519a35,_0x718a1b,_0x3cc27a,_0x5c0894);},'xfYUQ':_0x3df5c0(0x251),'ShqaB':function(_0xced5a6,_0x31c1ea){return _0xced5a6===_0x31c1ea;},'Anygm':_0x3df5c0(0x2da),'mbyzV':_0x3df5c0(0x253),'lMeeu':function(_0x1c8fbf,_0x1d5e9c,_0x4b0978,_0x5999a6,_0x58b253,_0x1b11f6,_0x36e85f,_0x54baea){return _0x1c8fbf(_0x1d5e9c,_0x4b0978,_0x5999a6,_0x58b253,_0x1b11f6,_0x36e85f,_0x54baea);},'gVfJm':'non-aws-azure-cluster','aGkeT':function(_0x3d33dc,_0x3e7d5f){return _0x3d33dc===_0x3e7d5f;},'dIlkE':'true','WxDos':_0x3df5c0(0x221),'CevFC':_0x3df5c0(0x2b5),'GWHPA':function(_0x214414,_0x5c4007){return _0x214414!==_0x5c4007;},'NgqDG':'WBItJ','wBtrR':_0x3df5c0(0x2b0),'MLMuD':_0x3df5c0(0x201),'Seqxv':_0x3df5c0(0x27f),'yIMFY':function(_0x210914,_0x9c6441,_0x3d8e40){return _0x210914(_0x9c6441,_0x3d8e40);},'zMyDN':function(_0x2b5172,_0x153264,_0x56d580){return _0x2b5172(_0x153264,_0x56d580);},'sxlqo':function(_0x48104a,_0x3233fc){return _0x48104a===_0x3233fc;},'TQmDz':_0x3df5c0(0x301),'RvNyQ':_0x3df5c0(0x261),'gGuTE':_0x3df5c0(0x2ac),'IvXRF':function(_0x4c78b3,_0x35b994,_0x371763,_0x48887d,_0x4b4b07,_0x465508,_0x2d21e0,_0x24566f){return _0x4c78b3(_0x35b994,_0x371763,_0x48887d,_0x4b4b07,_0x465508,_0x2d21e0,_0x24566f);},'BXxhW':_0x3df5c0(0x2f0),'nWADD':function(_0x19920b,_0x1a2c56){return _0x19920b===_0x1a2c56;},'AGhvG':'gtULm','LWZSc':_0x3df5c0(0x280),'BODAQ':_0x3df5c0(0x209),'PCoZv':function(_0x2a5f9b,_0x98a736){return _0x2a5f9b===_0x98a736;},'CUmYp':_0x3df5c0(0x2ed),'abFYf':function(_0x361fe6,_0x4bc102,_0x5d2632,_0x57f0cd,_0x584686,_0x1e7aaf,_0x17724b,_0x545916){return _0x361fe6(_0x4bc102,_0x5d2632,_0x57f0cd,_0x584686,_0x1e7aaf,_0x17724b,_0x545916);},'dOWSE':_0x3df5c0(0x2c0),'YCqBd':'Grid\x20profile\x20fetched\x20from\x20backend','TQRwI':'FoxFb','Wndru':_0x3df5c0(0x2fa),'yjfBo':function(_0x59d3c1,_0x270cf5,_0xc02b64,_0x353493,_0x5d7db3,_0x10ad9f,_0xbf678d,_0x281ab5){return _0x59d3c1(_0x270cf5,_0xc02b64,_0x353493,_0x5d7db3,_0x10ad9f,_0xbf678d,_0x281ab5);},'KMOaa':'create-grid-checks-grid-already-exists','lQXMk':_0x3df5c0(0x284),'bECQV':_0x3df5c0(0x23e),'xgZmT':_0x3df5c0(0x21e),'AzVnW':function(_0x2ee398,_0x3945bb){return _0x2ee398===_0x3945bb;},'INZrS':function(_0x3b8ecb,_0x14e82e){return _0x3b8ecb===_0x14e82e;},'qYVjh':_0x3df5c0(0x1e1),'qgQIv':_0x3df5c0(0x298),'INPQj':function(_0x51d99e,_0x208f27,_0x296241,_0x544d53,_0x2249df,_0x2f0e79,_0x4ededb,_0x17d432){return _0x51d99e(_0x208f27,_0x296241,_0x544d53,_0x2249df,_0x2f0e79,_0x4ededb,_0x17d432);},'eybvr':'create-grid-checks-invalid-profile','LZTRn':function(_0x4bdf1b,_0x306753){return _0x4bdf1b===_0x306753;},'cqKPP':'pbmaR','CzPJC':function(_0x279019,_0x3e9b04,_0x77ff44,_0x57d00f,_0x581ccb,_0x5c2f52,_0x5db2ec,_0x260da6,_0x47abe9,_0x364f49,_0xcbb56c,_0x1f0a38){return _0x279019(_0x3e9b04,_0x77ff44,_0x57d00f,_0x581ccb,_0x5c2f52,_0x5db2ec,_0x260da6,_0x47abe9,_0x364f49,_0xcbb56c,_0x1f0a38);},'JzYbo':_0x3df5c0(0x1e9),'rCCKp':_0x3df5c0(0x2af),'dlHnU':'6|4|8|5|1|2|0|3|7','khgzH':function(_0x1fea25,_0x4e8866,_0x59de9c,_0x340898,_0x5a9da7,_0x5a970a,_0x5ee4fe){return _0x1fea25(_0x4e8866,_0x59de9c,_0x340898,_0x5a9da7,_0x5a970a,_0x5ee4fe);},'Jdkss':function(_0x407bed,_0x489b6e){return _0x407bed===_0x489b6e;},'biiwf':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Pvxhe':function(_0x325292,_0x58e5bd){return _0x325292===_0x58e5bd;},'SIlat':function(_0x521a49,_0x25702b,_0x82a0ea,_0x5bf909){return _0x521a49(_0x25702b,_0x82a0ea,_0x5bf909);},'WjGSr':_0x3df5c0(0x218),'YoUvB':_0x3df5c0(0x2cc),'sLJOw':function(_0x1dc8f5,_0x2c4228){return _0x1dc8f5===_0x2c4228;},'MLkSP':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','mnbbe':function(_0x30b6ca,_0x50fa2f){return _0x30b6ca!=_0x50fa2f;},'VVmDg':function(_0x30ba99,_0x3cab2b){return _0x30ba99!==_0x3cab2b;},'mSRuG':function(_0xa8f9a1,_0x32a217){return _0xa8f9a1!=_0x32a217;},'IeVqa':function(_0x149e1f,_0x4724d6){return _0x149e1f!==_0x4724d6;},'CyrHl':function(_0x349264,_0x4c9bca){return _0x349264>_0x4c9bca;},'Eohnj':function(_0x710cd8,_0x2540f5){return _0x710cd8===_0x2540f5;},'sWLJh':_0x3df5c0(0x21b),'EZukg':_0x3df5c0(0x302),'mVBOd':function(_0x54a1dd,_0x4a4951){return _0x54a1dd===_0x4a4951;},'LBRzr':_0x3df5c0(0x285),'Vmmtw':_0x3df5c0(0x2df),'cqutL':function(_0x2d13d8,_0x48fa36){return _0x2d13d8===_0x48fa36;},'MfAxa':function(_0x3a30f5,_0x67b7bc,_0x269288,_0x5e5dc9,_0x315bf9,_0x281442,_0x207219,_0x57da63){return _0x3a30f5(_0x67b7bc,_0x269288,_0x5e5dc9,_0x315bf9,_0x281442,_0x207219,_0x57da63);},'CNwwj':'pre-spawned-invalid-subnets','YHISz':_0x3df5c0(0x1da),'MSTYA':'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.','krNSy':_0x3df5c0(0x1dc),'FjEIG':function(_0x2c3f7a,_0x5dbdfe){return _0x2c3f7a(_0x5dbdfe);},'HEfXU':function(_0x4f04fe,_0x29c84d){return _0x4f04fe===_0x29c84d;},'GdQaL':function(_0x156dc3,_0x2bf8ae){return _0x156dc3==_0x2bf8ae;},'TEWSQ':_0x3df5c0(0x254),'ywKoP':_0x3df5c0(0x306),'XwHJw':_0x3df5c0(0x2e9),'nwHjx':'Namespace\x20Created','iIgru':_0x3df5c0(0x2a8),'iEFtP':_0x3df5c0(0x2eb),'qHrGK':_0x3df5c0(0x2a1),'kIAOC':function(_0x5286bb,_0x3c5dd8,_0x2c8179,_0xd4cbe8,_0x1d923,_0x453e59,_0x257b2b,_0x4d1d4c,_0x43bcbd,_0x24c89b,_0x40dea9){return _0x5286bb(_0x3c5dd8,_0x2c8179,_0xd4cbe8,_0x1d923,_0x453e59,_0x257b2b,_0x4d1d4c,_0x43bcbd,_0x24c89b,_0x40dea9);},'McnVN':'Grid\x20spawned\x20on\x20the\x20cluster','bcFEO':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','cJHuB':function(_0x26f468,_0x59a165,_0x440041,_0x47b0b4,_0x2f20c8){return _0x26f468(_0x59a165,_0x440041,_0x47b0b4,_0x2f20c8);},'WaMzX':function(_0x240bf6,_0x3ee985,_0x3e26f7){return _0x240bf6(_0x3ee985,_0x3e26f7);},'vQrLl':_0x3df5c0(0x238),'klFwp':_0x3df5c0(0x26f),'bNagU':_0x3df5c0(0x27d),'PSDEW':function(_0x38488c,_0x3c9939){return _0x38488c==_0x3c9939;},'SzpOJ':_0x3df5c0(0x2d0),'FTnqD':_0x3df5c0(0x2ca),'JoepZ':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','nYyOa':function(_0x2086e9,_0x5cbcc7,_0x56fae1,_0x385d92,_0x207a27,_0x49efa8,_0x243c45,_0x121e7e){return _0x2086e9(_0x5cbcc7,_0x56fae1,_0x385d92,_0x207a27,_0x49efa8,_0x243c45,_0x121e7e);},'jHyWU':_0x3df5c0(0x1e3),'mKTlc':function(_0x1911d3,_0x328e03){return _0x1911d3!==_0x328e03;},'VwDqs':function(_0x790991,_0x186a2d,_0x124842,_0x133f9f,_0x2134ff,_0x2aa0b0,_0x4b0f11,_0x10148c){return _0x790991(_0x186a2d,_0x124842,_0x133f9f,_0x2134ff,_0x2aa0b0,_0x4b0f11,_0x10148c);},'AwfSS':_0x3df5c0(0x2de),'zlDGG':function(_0x2cc890,_0x47c1f3,_0x1b5af6,_0x47cc29,_0x1e7759,_0x3f3868){return _0x2cc890(_0x47c1f3,_0x1b5af6,_0x47cc29,_0x1e7759,_0x3f3868);},'PrdrS':function(_0x3f6340,_0x45c84f,_0x38db9a,_0xec110a,_0x45221d,_0x38c353,_0x19364b){return _0x3f6340(_0x45c84f,_0x38db9a,_0xec110a,_0x45221d,_0x38c353,_0x19364b);},'daVPZ':_0x3df5c0(0x21c)};let _0x46884d=![],_0x2d0520,_0x1ea406,_0x4e1f7d,_0x57d4dc,_0x59c0f9,_0x554705,_0x1bdf18,_0x4a526a,_0x5823c6,_0x53d062,_0x5a3365,_0x55f47f,_0x1b1a93=0x1,_0x3845ec=0xe;try{global_registry[_0x3df5c0(0x28e)]=_0x39d315[_0x3df5c0(0x2bf)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x3df5c0(0x20f)](_0x39d315[_0x3df5c0(0x2bf)](getCredentialsPath))&&(_0x39d315[_0x3df5c0(0x222)](_0x39d315[_0x3df5c0(0x279)],_0x39d315['IfnAb'])?_0x3c3f9f[_0x3df5c0(0x23d)]=!![]:(console[_0x3df5c0(0x23b)](_0x39d315[_0x3df5c0(0x2be)]),await _0x39d315['eWrEF'](sendInstrumentationEvent,_0x559166,_0x39d315['OQzdq'],messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x2dd)],null,_0x559166),process['exit'](0x1)));await _0x39d315[_0x3df5c0(0x23a)](sendInstrumentationEvent,_0x559166,_0x39d315[_0x3df5c0(0x240)],messageTypes['INFO'],null,null,_0x559166);const _0xb8f6a2=JSON['parse'](fs[_0x3df5c0(0x2c5)](_0x39d315['ORuSw'](getCredentialsPath)));global_registry[_0x3df5c0(0x2b6)]=_0xb8f6a2[_0x3df5c0(0x2e9)][_0x3df5c0(0x2fb)],global_registry[_0x3df5c0(0x1fa)]=_0xb8f6a2[_0x3df5c0(0x2e9)]['password'];const _0x31b5ed=WS_ENDPOINT[_0x3df5c0(0x2dc)](_0x39d315['kDGWp'],_0xb8f6a2['Browserstack']['username'])[_0x3df5c0(0x2dc)](_0x39d315['ZRltX'],_0xb8f6a2['Browserstack']['password']),_0x235536={};_0x235536['WebSocket']=ws,_0x235536['connectionTimeout']=0x36ee80,_0x53d062=new ReconnectingWebSocket(_0x31b5ed,[],_0x235536),logger[_0x3df5c0(0x1f6)](_0x39d315[_0x3df5c0(0x2b9)]),webSocketUtils['addListeners'](_0x53d062,_0x559166[_0x3df5c0(0x2d3)],_0x559166['password']);let _0x1bcfba=DEFAULT_GRID_NAME;if(_0x559166[_0x3df5c0(0x208)]||_0x559166['cloudProvider']||_0x559166[_0x3df5c0(0x2ff)]){if(_0x39d315['JpIYK'](_0x39d315['Zwfpq'],_0x39d315[_0x3df5c0(0x227)]))_0x9833d3[_0x3df5c0(0x23d)]=!![];else{if(!(_0x559166['clusterName']&&_0x559166[_0x3df5c0(0x2d4)]&&_0x559166[_0x3df5c0(0x2ff)])){if(_0x39d315['UFJyD'](_0x39d315[_0x3df5c0(0x2f1)],_0x39d315['wcVJM'])){const _0x304132={};_0x304132[_0x3df5c0(0x20c)]=_0x5ad1c0['LOG'],_0x304132['message']='Cluster\x20'+_0x38f2f7+_0x3df5c0(0x242),_0x357235[_0x3df5c0(0x308)](_0x22808f,_0x304132,_0x39d315[_0x3df5c0(0x2a0)]),_0x418b27[_0x3df5c0(0x243)](_0x3df5c0(0x29a)+_0xcbfc7e+_0x3df5c0(0x242)),_0x177446=!![];}else _0x2d0520=_0x39d315['hwthY'],await _0x39d315[_0x3df5c0(0x2a4)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes['ERROR'],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x263)],_0x39d315[_0x3df5c0(0x231)]),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1);}![AWS,AZURE,GCP][_0x3df5c0(0x22a)](_0x559166['cloudProvider']['toLowerCase']())&&(_0x39d315[_0x3df5c0(0x2db)](_0x39d315['Anygm'],_0x39d315[_0x3df5c0(0x2d8)])?(_0x2d0520=_0x39d315['mbyzV'],await _0x39d315['lMeeu'](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes['ERROR'],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x1e0)],_0x39d315[_0x3df5c0(0x231)]),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1)):_0x3468fd=_0x39d315[_0x3df5c0(0x22e)]),_0x559166[_0x3df5c0(0x219)]&&_0x39d315[_0x3df5c0(0x1e4)](_0x559166[_0x3df5c0(0x219)]['toLowerCase'](),_0x39d315[_0x3df5c0(0x26a)])&&(_0x39d315[_0x3df5c0(0x1e4)](_0x39d315[_0x3df5c0(0x27c)],_0x39d315[_0x3df5c0(0x2b2)])?_0x289e0d[_0x3df5c0(0x294)]():global_registry[_0x3df5c0(0x23d)]=!![]),_0x46884d=!![],_0x4e1f7d=_0x559166['clusterName'],_0x1ea406=_0x559166['cloudProvider'][_0x3df5c0(0x247)](),_0x57d4dc=_0x559166[_0x3df5c0(0x2ff)];}}if(_0x559166[_0x3df5c0(0x265)]){if(_0x39d315[_0x3df5c0(0x1f0)](_0x39d315[_0x3df5c0(0x1de)],_0x39d315[_0x3df5c0(0x1ec)]))_0x1bcfba=_0x559166[_0x3df5c0(0x265)];else{const _0x12c8fb={};_0x12c8fb['description']=_0x39d315[_0x3df5c0(0x1d5)],_0x12c8fb[_0x3df5c0(0x20c)]=_0x39d315[_0x3df5c0(0x245)];const _0x2eb55b={};_0x2eb55b[_0x3df5c0(0x2c3)]=_0x39d315[_0x3df5c0(0x28a)],_0x2eb55b[_0x3df5c0(0x20c)]=_0x39d315['qGRSE'];const _0x54a698={};_0x54a698[_0x3df5c0(0x2c3)]=_0x39d315[_0x3df5c0(0x25a)],_0x54a698[_0x3df5c0(0x20c)]=_0x39d315['qGRSE'];const _0x1bf825={};_0x1bf825[_0x3df5c0(0x2c3)]=_0x39d315[_0x3df5c0(0x1f4)],_0x1bf825[_0x3df5c0(0x20c)]=_0x39d315['qGRSE'];const _0x6fc560={};_0x6fc560[_0x3df5c0(0x2c3)]=_0x39d315[_0x3df5c0(0x305)],_0x6fc560[_0x3df5c0(0x20c)]=_0x39d315['qGRSE'];const _0xbb4655={};_0xbb4655[_0x3df5c0(0x2c3)]=_0x39d315[_0x3df5c0(0x29c)],_0xbb4655[_0x3df5c0(0x20c)]=_0x39d315[_0x3df5c0(0x245)];const _0x3cfdf0={};return _0x3cfdf0['grid-name']=_0x12c8fb,_0x3cfdf0['grid-profile']=_0x2eb55b,_0x3cfdf0[_0x3df5c0(0x22c)]=_0x54a698,_0x3cfdf0[_0x3df5c0(0x2e3)]=_0x1bf825,_0x3cfdf0[_0x3df5c0(0x2ff)]=_0x6fc560,_0x3cfdf0['private-grid']=_0xbb4655,_0x166e5d[_0x3df5c0(0x1ea)](_0x425547[_0x3df5c0(0x252)])['epilogue'](_0xfad94)[_0x3df5c0(0x235)](_0x3cfdf0)[_0x3df5c0(0x1eb)](_0x39d315['fpvdh'])[_0x3df5c0(0x230)];}}_0x559166[_0x3df5c0(0x24c)]&&(_0x39d315[_0x3df5c0(0x222)](_0x39d315[_0x3df5c0(0x234)],_0x39d315[_0x3df5c0(0x234)])?_0x5ceaae=_0x707b43['gridName']:global_registry['gridProfile']=_0x559166[_0x3df5c0(0x24c)]);global_registry[_0x3df5c0(0x265)]=_0x1bcfba;const _0x707f7={'method':_0x39d315[_0x3df5c0(0x1d6)],'headers':_0x39d315[_0x3df5c0(0x1fe)](getAuthHeader,_0xb8f6a2[_0x3df5c0(0x2e9)][_0x3df5c0(0x2fb)],_0xb8f6a2[_0x3df5c0(0x2e9)]['password']),'throwHttpErrors':![]},_0x4ac83f=_0x3df5c0(0x26d)+AG_API_URL+_0x3df5c0(0x287),_0x1fe29c={};_0x1fe29c[_0x3df5c0(0x265)]=_0x1bcfba;const _0x2517c8={'searchParams':_0x1fe29c,'throwHttpErrors':![],..._0x707f7},_0x1a391b=_0x2517c8,_0x133a63=await _0x39d315['zMyDN'](got,_0x4ac83f,_0x1a391b);(_0x39d315['ShqaB'](_0x133a63,null)||_0x39d315[_0x3df5c0(0x2c7)](_0x133a63,undefined))&&(_0x39d315[_0x3df5c0(0x222)](_0x39d315[_0x3df5c0(0x276)],_0x39d315[_0x3df5c0(0x2c4)])?(_0x2d0520=_0x39d315[_0x3df5c0(0x24e)],await _0x39d315[_0x3df5c0(0x29f)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x299)],_0x39d315['lNpMg']),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1)):_0x5ed580[_0x3df5c0(0x243)](_0x3df5c0(0x24d)+_0x317845+'\x20'));_0x39d315[_0x3df5c0(0x2c7)](_0x133a63[_0x3df5c0(0x1fb)],0x191)&&(_0x39d315['nWADD'](_0x39d315[_0x3df5c0(0x2f6)],_0x39d315[_0x3df5c0(0x2f6)])?(_0x2d0520=_0x39d315[_0x3df5c0(0x293)],await _0x39d315['lMeeu'](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x204)],_0x39d315['lNpMg']),logger['error'](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1)):(_0x52caba=_0x35e9d6[_0x3df5c0(0x1fd)],_0x5ccb94=_0x39d315[_0x3df5c0(0x25c)]));_0x39d315['JpIYK'](_0x133a63[_0x3df5c0(0x1fb)],0xc8)&&(_0x39d315[_0x3df5c0(0x275)](_0x39d315[_0x3df5c0(0x2b3)],_0x39d315['CUmYp'])?(_0x2d0520=_0x3df5c0(0x24a)+JSON[_0x3df5c0(0x2cb)](_0x133a63),await _0x39d315[_0x3df5c0(0x2d7)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x1e5)],_0x39d315[_0x3df5c0(0x231)]),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1)):_0x1e49ff[_0x3df5c0(0x24c)]=_0x1f6cbc[_0x3df5c0(0x24c)]);const _0x581b36=JSON[_0x3df5c0(0x2ab)](_0x133a63[_0x3df5c0(0x28f)]),_0x3bd2fc={};_0x3bd2fc[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x24b)],_0x3bd2fc['message']=_0x3df5c0(0x2d2),webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x3bd2fc);const _0x3e3ebd={};_0x3e3ebd['type']=WS_EVENTS['LOG'],_0x3e3ebd[_0x3df5c0(0x241)]=_0x39d315[_0x3df5c0(0x225)],webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x3e3ebd);_0x581b36[_0x3df5c0(0x24f)]&&(_0x39d315[_0x3df5c0(0x222)](_0x39d315[_0x3df5c0(0x29d)],_0x39d315[_0x3df5c0(0x29d)])?_0x219e64['info'](_0x3df5c0(0x1e2)+_0x5e92da[_0x3df5c0(0x2cb)](_0x524415)+'\x20'):(_0x2d0520=_0x39d315[_0x3df5c0(0x2c8)],await _0x39d315[_0x3df5c0(0x2bd)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes['ERROR'],_0x39d315[_0x3df5c0(0x240)],_0x39d315['KMOaa'],_0x39d315[_0x3df5c0(0x231)]),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1)));const _0x554be2=_0x581b36[_0x3df5c0(0x274)];let _0x3cff49=_0x554be2[_0x581b36[_0x3df5c0(0x295)]];_0x559166[_0x3df5c0(0x24c)]&&(_0x39d315['JpIYK'](_0x39d315[_0x3df5c0(0x2e5)],_0x39d315[_0x3df5c0(0x2e5)])?_0x55ba79['cloudProvider']={}:_0x3cff49=_0x554be2[_0x559166[_0x3df5c0(0x24c)]]);if(_0x39d315['sxlqo'](_0x46884d,![])){if(_0x39d315['aGkeT'](_0x39d315['bECQV'],_0x39d315[_0x3df5c0(0x244)]))_0x4aaecd=_0x3fdf8d[_0x3bbafa[_0x3df5c0(0x24c)]];else{_0x39d315[_0x3df5c0(0x27b)](_0x3cff49,undefined)&&(_0x39d315['INZrS'](_0x39d315[_0x3df5c0(0x1f2)],_0x39d315[_0x3df5c0(0x1f2)])?(_0x2d0520=_0x39d315[_0x3df5c0(0x211)],await _0x39d315[_0x3df5c0(0x292)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes['ERROR'],_0x39d315['OQzdq'],_0x39d315[_0x3df5c0(0x2ce)],_0x39d315[_0x3df5c0(0x231)]),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1)):_0x328608[_0x3df5c0(0x23b)](_0x3df5c0(0x2b4)+_0x2fc2c7+'\x20\x0a'+_0x4384a0[_0x3df5c0(0x2cb)](_0x446533[_0x3df5c0(0x2ef)])));global_registry[_0x3df5c0(0x256)]=_0x3cff49['id'],_0x2d0520='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x1bcfba+_0x3df5c0(0x2a2)+_0x3cff49[_0x3df5c0(0x2ad)]+'\x27\x20grid\x20profile',logger[_0x3df5c0(0x243)](_0x2d0520);const _0x3aaea8={};_0x3aaea8['type']=WS_EVENTS['LOG'],_0x3aaea8[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils['sendEventToBackend'](_0x53d062,_0x3aaea8),_0x1ea406=_0x3cff49[_0x3df5c0(0x2d4)],_0x4e1f7d=_0x3cff49[_0x3df5c0(0x208)],_0x57d4dc=_0x3cff49[_0x3df5c0(0x2ff)],_0x59c0f9=_0x3cff49[_0x3df5c0(0x250)],_0x554705=_0x3cff49['instanceType'],_0x1bdf18=_0x3cff49[_0x3df5c0(0x2f2)],securityGroups=_0x3cff49[_0x3df5c0(0x1ee)],subnets=_0x3cff49[_0x3df5c0(0x229)],_0x4a526a=_0x3cff49[_0x3df5c0(0x281)],_0x1b1a93=_0x3cff49[_0x3df5c0(0x236)],_0x3845ec=_0x3cff49[_0x3df5c0(0x2a6)],_0x5a3365=_0x581b36[_0x3df5c0(0x2b8)],_0x55f47f=_0x581b36[_0x3df5c0(0x200)];if(_0x39d315[_0x3df5c0(0x277)](_0x3cff49[_0x3df5c0(0x219)],undefined)&&_0x3cff49[_0x3df5c0(0x219)]){if(_0x39d315[_0x3df5c0(0x20a)](_0x39d315[_0x3df5c0(0x28c)],_0x39d315[_0x3df5c0(0x28c)]))global_registry[_0x3df5c0(0x23d)]=!![];else{const _0x13d1ac=_0x39d315[_0x3df5c0(0x262)][_0x3df5c0(0x20d)]('|');let _0x59d499=0x0;while(!![]){switch(_0x13d1ac[_0x59d499++]){case'0':_0x1e3d1[_0x3df5c0(0x2d4)]=_0x391608;continue;case'1':_0x2bb4c5[_0x3df5c0(0x2b8)]=_0x2bd90a[_0x3df5c0(0x2b8)];continue;case'2':_0x4f7699[_0x3df5c0(0x200)]=_0x3af530[_0x3df5c0(0x200)];continue;case'3':const _0x2d8f1e={};_0x2d8f1e[_0x3df5c0(0x20c)]=_0x19a8c9[_0x3df5c0(0x24b)],_0x2d8f1e[_0x3df5c0(0x241)]=_0x3df5c0(0x2d2),_0x8a23b0[_0x3df5c0(0x308)](_0x365f01,_0x2d8f1e);continue;case'4':const _0x3afc1a={};_0x3afc1a[_0x3df5c0(0x20c)]=_0x42031c[_0x3df5c0(0x21f)],_0x3afc1a['message']=_0x3a57a0,_0x4732b2['sendEventToBackend'](_0x4f928c,_0x3afc1a);continue;case'5':_0x1e016e['clusterName']=_0x518a77;continue;case'6':_0x1d9cec='Spawning\x20the\x20grid\x20'+_0x448082+_0x3df5c0(0x2fe)+_0x25f1ec+'\x27';continue;case'7':_0x45834a[_0x3df5c0(0x2f5)]=_0x1f2ac1;continue;case'8':_0x5a49d3['info'](_0x5d7b5a);continue;}break;}}}_0x39d315['CzPJC'](updateGlobalRegistryWithConfig,_0x1ea406,_0x4e1f7d,_0x57d4dc,_0x59c0f9,_0x554705,_0x4a526a,_0x3cff49,_0x5a3365,_0x55f47f,_0x1b1a93,_0x3845ec);}}else{if(_0x39d315[_0x3df5c0(0x277)](_0x39d315[_0x3df5c0(0x1ed)],_0x39d315[_0x3df5c0(0x1ef)])){const _0x35b95a=_0x39d315['dlHnU'][_0x3df5c0(0x20d)]('|');let _0x27d0b8=0x0;while(!![]){switch(_0x35b95a[_0x27d0b8++]){case'0':global_registry[_0x3df5c0(0x208)]=_0x4e1f7d;continue;case'1':global_registry[_0x3df5c0(0x2d4)]=_0x1ea406;continue;case'2':global_registry[_0x3df5c0(0x2f5)]=_0x57d4dc;continue;case'3':global_registry[_0x3df5c0(0x2b8)]=_0x581b36['hubVersion'];continue;case'4':_0x2d0520=_0x3df5c0(0x23c)+_0x1bcfba+'\x20in\x20existing\x20cluster\x20\x27'+_0x4e1f7d+'\x27';continue;case'5':const _0x175db8={};_0x175db8[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x175db8[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x175db8);continue;case'6':const _0x4b3294={};_0x4b3294[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x24b)],_0x4b3294[_0x3df5c0(0x241)]='CLI\x20run\x20started',webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x4b3294);continue;case'7':global_registry[_0x3df5c0(0x200)]=_0x581b36[_0x3df5c0(0x200)];continue;case'8':logger[_0x3df5c0(0x243)](_0x2d0520);continue;}break;}}else{const _0x1da7c6={};_0x1da7c6[_0x3df5c0(0x20c)]=_0x3ef2a9[_0x3df5c0(0x21f)],_0x1da7c6['message']=_0x5c9f3a,_0x3f47cb[_0x3df5c0(0x308)](_0x500485,_0x1da7c6,_0x39d315[_0x3df5c0(0x231)],!![]);}}const _0xb498de=await _0x39d315[_0x3df5c0(0x273)](getCloudProviderObject,_0x1ea406,_0x4e1f7d,_0x1bcfba,_0x53d062,webSocketUtils,_0x559166),_0x3f838e=_0xb8f6a2[_0x3df5c0(0x2d4)]||{};if(_0x39d315['Jdkss'](_0x3f838e[_0x1ea406],undefined)){logger[_0x3df5c0(0x243)](_0x39d315[_0x3df5c0(0x1f9)]);_0x39d315[_0x3df5c0(0x25d)](_0xb8f6a2[_0x3df5c0(0x2d4)],undefined)&&(_0xb8f6a2['cloudProvider']={});_0xb8f6a2['cloudProvider'][_0x1ea406]={};const _0x6f83e6=await _0x39d315[_0x3df5c0(0x309)](inputCloudProviderKeys,_0x1ea406,_0xb8f6a2,_0xb498de);fs[_0x3df5c0(0x27e)](_0x39d315[_0x3df5c0(0x2bf)](getCredentialsPath),JSON[_0x3df5c0(0x2cb)](_0x6f83e6)),logger[_0x3df5c0(0x1f6)](_0x39d315['WjGSr']);}else{_0x2d0520=_0x39d315['YoUvB'];const _0x53c97f={};_0x53c97f[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x53c97f[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x53c97f),logger[_0x3df5c0(0x243)](_0x2d0520),await _0xb498de[_0x3df5c0(0x278)](_0x3f838e);}_0xb498de[_0x3df5c0(0x226)]();_0x39d315[_0x3df5c0(0x1f0)](_0x1ea406,AZURE)&&_0xb498de[_0x3df5c0(0x294)]();let _0x56ec29;if(_0x39d315[_0x3df5c0(0x224)](_0x46884d,![])){_0x2d0520=_0x3df5c0(0x2f4)+_0x57d4dc+').';const _0xc701f={};_0xc701f[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0xc701f[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0xc701f),logger['info'](_0x2d0520);const _0x54cfb4=await _0xb498de['isClusterPresent']();if(_0x54cfb4){const _0x275ca0={};_0x275ca0[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x275ca0[_0x3df5c0(0x241)]=_0x3df5c0(0x29a)+_0x4e1f7d+_0x3df5c0(0x242),webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x275ca0,_0x39d315[_0x3df5c0(0x2a0)]),logger[_0x3df5c0(0x243)](_0x3df5c0(0x29a)+_0x4e1f7d+_0x3df5c0(0x242)),_0x46884d=!![];}else{const _0x27cdec={};_0x27cdec[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x27cdec[_0x3df5c0(0x241)]=_0x39d315[_0x3df5c0(0x268)],webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x27cdec),logger['info'](_0x39d315['MLkSP']);const _0x4b4976=_0x39d315['mnbbe'](_0x1bdf18,null)&&_0x39d315[_0x3df5c0(0x1f7)](_0x1bdf18,undefined),_0x4d8272=_0x39d315[_0x3df5c0(0x2aa)](subnets,null)&&_0x39d315[_0x3df5c0(0x1e7)](subnets,undefined)&&_0x39d315[_0x3df5c0(0x2e2)](subnets[_0x3df5c0(0x23f)],0x0);if(_0x4b4976){_0x39d315[_0x3df5c0(0x2c9)](_0x4d8272,![])&&(_0x2d0520=_0x39d315[_0x3df5c0(0x20b)],await _0x39d315[_0x3df5c0(0x2d7)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x2cd)],_0x39d315[_0x3df5c0(0x231)]),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1));const _0xb565d7=await _0xb498de[_0x3df5c0(0x1fc)](_0x1bdf18);_0x39d315[_0x3df5c0(0x2e6)](_0xb565d7,![])?(_0x2d0520=_0x39d315[_0x3df5c0(0x22b)],await _0x39d315[_0x3df5c0(0x291)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315['Vmmtw'],_0x39d315['lNpMg']),logger['error'](_0x2d0520),process['exit'](0x1)):logger['info'](_0x3df5c0(0x24d)+_0x1bdf18+'\x20');const _0x1a8647=await _0xb498de['isSubnetsValid'](subnets,_0x1bdf18);_0x39d315[_0x3df5c0(0x2e7)](_0x1a8647[0x0],![])?(_0x2d0520='Subnets:\x20'+JSON['stringify'](_0x1a8647[0x1])+_0x3df5c0(0x25f)+_0x1bdf18+_0x3df5c0(0x2e8),await _0x39d315[_0x3df5c0(0x1df)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x1dd)],_0x39d315[_0x3df5c0(0x231)]),logger[_0x3df5c0(0x23b)](_0x2d0520),process['exit'](0x1)):logger[_0x3df5c0(0x243)](_0x3df5c0(0x1e2)+JSON[_0x3df5c0(0x2cb)](subnets)+'\x20'),await _0xb498de[_0x3df5c0(0x271)](_0x1bdf18,subnets);}else{const _0x3701be=_0x39d315[_0x3df5c0(0x220)][_0x3df5c0(0x20d)]('|');let _0x2af506=0x0;while(!![]){switch(_0x3701be[_0x2af506++]){case'0':const _0x3d9cc3={};_0x3d9cc3['type']=WS_EVENTS[_0x3df5c0(0x21f)],_0x3d9cc3['message']=_0x39d315[_0x3df5c0(0x2a7)],webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x3d9cc3);continue;case'1':const _0x364924={};_0x364924[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x364924[_0x3df5c0(0x241)]=_0x3df5c0(0x1dc),webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x364924);continue;case'2':logger['info'](_0x39d315[_0x3df5c0(0x2a7)]);continue;case'3':await _0xb498de[_0x3df5c0(0x271)]();continue;case'4':logger[_0x3df5c0(0x243)](_0x39d315[_0x3df5c0(0x26b)]);continue;}break;}}}}_0x46884d&&_0x39d315[_0x3df5c0(0x2e6)](_0x1ea406,AZURE)&&(await _0xb498de[_0x3df5c0(0x2f3)](),await _0xb498de['createOtherResources']());const [_0x28e31f,_0x423158,_0x420502,_0x5132db,_0x43028f,_0x8a4cd3]=await _0x39d315[_0x3df5c0(0x2ee)](createK8sClient,_0xb498de);_0x39d315[_0x3df5c0(0x297)](_0x46884d,![])&&_0x39d315[_0x3df5c0(0x249)](_0x1ea406,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x56ec29=await _0xb498de[_0x3df5c0(0x29e)](_0x28e31f,_0x559166));try{_0x5823c6=_0x39d315[_0x3df5c0(0x2ee)](kebabCase,_0x1bcfba),logger[_0x3df5c0(0x243)](_0x39d315[_0x3df5c0(0x272)]);const _0x40a212={};_0x40a212['type']=WS_EVENTS[_0x3df5c0(0x21f)],_0x40a212[_0x3df5c0(0x241)]=_0x39d315[_0x3df5c0(0x272)],webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x40a212);if(_0x39d315['IeVqa'](_0x5823c6,_0x39d315['ywKoP'])){const _0x3d880b={};_0x3d880b[_0x3df5c0(0x237)]=_0x39d315[_0x3df5c0(0x205)],_0x3d880b[_0x3df5c0(0x27a)]=_0x39d315[_0x3df5c0(0x205)];const _0x35bd35={};_0x35bd35[_0x3df5c0(0x2ad)]=_0x5823c6,_0x35bd35[_0x3df5c0(0x22f)]=_0x3d880b;const _0x9d84e1={};_0x9d84e1[_0x3df5c0(0x267)]=_0x35bd35;let _0x4b87d6=_0x9d84e1;const _0x58b4cb={};_0x58b4cb['body']=_0x4b87d6,await _0x28e31f['createNamespace'](_0x58b4cb),logger[_0x3df5c0(0x243)](_0x39d315[_0x3df5c0(0x2e4)]);}const _0x121899={};_0x121899[_0x3df5c0(0x20c)]=WS_EVENTS['LOG'],_0x121899[_0x3df5c0(0x241)]=_0x39d315[_0x3df5c0(0x2ba)],webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x121899);const _0x470ed1={};_0x470ed1[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x470ed1[_0x3df5c0(0x241)]=_0x39d315[_0x3df5c0(0x29b)],webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x470ed1),logger[_0x3df5c0(0x243)](_0x39d315[_0x3df5c0(0x1f3)]);let _0x20ece7={};_0x39d315['aGkeT'](_0x1ea406,AZURE)&&(_0x20ece7={'clientId':await _0xb498de[_0x3df5c0(0x2bb)](_0x3df5c0(0x239)+_0x4e1f7d)});await _0x39d315[_0x3df5c0(0x206)](addGridComponents,_0x28e31f,_0x423158,_0x420502,_0x5132db,_0x5823c6,_0x4e1f7d,_0x56ec29,_0x43028f,_0x8a4cd3,_0x20ece7),_0x2d0520=_0x39d315[_0x3df5c0(0x233)],logger[_0x3df5c0(0x243)](_0x2d0520);const _0x47d28c={};_0x47d28c['type']=WS_EVENTS[_0x3df5c0(0x21f)],_0x47d28c[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x47d28c),_0x2d0520=_0x39d315[_0x3df5c0(0x210)],logger[_0x3df5c0(0x243)](_0x2d0520);const _0xb2b282={};_0xb2b282[_0x3df5c0(0x20c)]=WS_EVENTS['LOG'],_0xb2b282[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0xb2b282),await _0x39d315[_0x3df5c0(0x26c)](waitForDeployment,_0x423158,_0x5823c6,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x541d97=await _0x39d315['WaMzX'](getNamespaceUID,_0x28e31f,_0x5823c6);let _0x10ede2=global_registry[_0x3df5c0(0x23d)]?_0x39d315[_0x3df5c0(0x264)]:_0x39d315['klFwp'];const _0x4066d5={};_0x4066d5['name']=_0x10ede2,_0x4066d5[_0x3df5c0(0x257)]=_0x39d315[_0x3df5c0(0x1db)];let _0x1f8be8=await _0x28e31f[_0x3df5c0(0x215)](_0x4066d5),_0x1bd228=_0xb498de[_0x3df5c0(0x2ec)](_0x1f8be8)+'/'+_0x5823c6,_0x1af91a=_0x39d315['ciMih'];try{const _0xa85b07=_0x3df5c0(0x26d)+AG_API_URL+_0x3df5c0(0x260)+_0x541d97,_0x2408fa=await _0x39d315[_0x3df5c0(0x2cf)](got,_0xa85b07,_0x707f7);(_0x39d315[_0x3df5c0(0x2e1)](_0x2408fa,null)||_0x39d315[_0x3df5c0(0x249)](_0x2408fa,undefined))&&(_0x2d0520=_0x39d315['SzpOJ'],await _0x39d315[_0x3df5c0(0x1df)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315['FTnqD'],_0x39d315[_0x3df5c0(0x231)]),logger['error'](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1));_0x39d315[_0x3df5c0(0x2c9)](_0x2408fa[_0x3df5c0(0x1fb)],0x191)&&(_0x2d0520=_0x39d315[_0x3df5c0(0x304)],await _0x39d315[_0x3df5c0(0x1ff)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315[_0x3df5c0(0x217)],_0x39d315['lNpMg']),logger[_0x3df5c0(0x23b)](_0x2d0520),process['exit'](0x1));_0x39d315[_0x3df5c0(0x255)](_0x2408fa[_0x3df5c0(0x1fb)],0xc8)&&(_0x2d0520='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x2408fa),await _0x39d315[_0x3df5c0(0x2ae)](reportToGalactusAndSendToEDS,_0x559166,_0x53d062,_0x2d0520,messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x240)],_0x39d315['AwfSS'],_0x39d315['lNpMg']),logger[_0x3df5c0(0x23b)](_0x2d0520),process[_0x3df5c0(0x2f8)](0x1));const _0x2c490d=JSON['parse'](_0x2408fa[_0x3df5c0(0x28f)]);_0x2c490d[_0x3df5c0(0x1fd)]&&(_0x1bd228=_0x2c490d['route53'],_0x1af91a=_0x39d315[_0x3df5c0(0x25c)]),global_registry[_0x3df5c0(0x23d)]&&(_0x1af91a=_0x39d315[_0x3df5c0(0x22e)]);}catch(_0x2b2c5c){}_0x2d0520=_0x3df5c0(0x1f1)+_0x1bd228+'\x20',logger[_0x3df5c0(0x243)](_0x2d0520);const _0x38100a={};_0x38100a[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x38100a[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x38100a),_0x2d0520=_0x3df5c0(0x290)+_0x1af91a+_0x3df5c0(0x246)+_0x1bd228+_0x3df5c0(0x207),logger[_0x3df5c0(0x243)](_0x2d0520);const _0x40ac1e={};_0x40ac1e[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x40ac1e[_0x3df5c0(0x241)]=_0x2d0520,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x40ac1e);const _0x36f9f8={};_0x36f9f8['type']=WS_EVENTS[_0x3df5c0(0x1d8)],_0x36f9f8[_0x3df5c0(0x241)]='CLI\x20run\x20finished:\x20'+_0x1bd228,webSocketUtils[_0x3df5c0(0x308)](_0x53d062,_0x36f9f8),await webSocketUtils[_0x3df5c0(0x1e8)](0x7d0);}catch(_0xfdec8c){logger[_0x3df5c0(0x23b)](_0x3df5c0(0x2b1)+_0xfdec8c+'\x20\x0a'+JSON[_0x3df5c0(0x2cb)](_0xfdec8c['stack']));if(_0x39d315[_0x3df5c0(0x2c7)](_0x46884d,![]))try{logger[_0x3df5c0(0x243)](_0x3df5c0(0x1d7)),await _0x39d315[_0x3df5c0(0x22d)](removeGridComponents,_0x28e31f,_0x423158,_0x420502,_0x5132db,_0x5823c6),await _0xb498de['deleteCluster'](_0x28e31f,global_registry[_0x3df5c0(0x2f5)]);}catch(_0x462a45){logger[_0x3df5c0(0x23b)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x462a45+'\x20\x0a'+JSON[_0x3df5c0(0x2cb)](_0x462a45['stack']));}throw _0xfdec8c;}}catch(_0x1f2fcc){const _0x599ee1=_0x3df5c0(0x232)+_0x1f2fcc+'\x20\x0a'+JSON['stringify'](_0x1f2fcc[_0x3df5c0(0x2ef)]);if(_0x53d062){const _0x5b5326={};_0x5b5326[_0x3df5c0(0x20c)]=WS_EVENTS[_0x3df5c0(0x21f)],_0x5b5326['message']=_0x599ee1,webSocketUtils['sendEventToBackend'](_0x53d062,_0x5b5326,_0x39d315[_0x3df5c0(0x231)],!![]);}await webSocketUtils[_0x3df5c0(0x1e8)](0x7d0);const _0x32ccbc={};_0x32ccbc['error']=_0x599ee1,await _0x39d315[_0x3df5c0(0x202)](sendInstrumentationEvent,_0x559166,_0x39d315['OQzdq'],messageTypes[_0x3df5c0(0x21a)],_0x39d315[_0x3df5c0(0x266)],_0x32ccbc,_0x559166),logger[_0x3df5c0(0x23b)](_0x599ee1);}process[_0x3df5c0(0x2f8)](0x0);};
@@ -1 +1 @@
1
- const a10_0x3789ae=a10_0x3f52;(function(_0x1b9411,_0xb5744a){const _0x129783=a10_0x3f52,_0xc6f9f7=_0x1b9411();while(!![]){try{const _0x118928=parseInt(_0x129783(0x1e8))/0x1*(-parseInt(_0x129783(0x1e1))/0x2)+-parseInt(_0x129783(0x1f4))/0x3+-parseInt(_0x129783(0x1f6))/0x4+-parseInt(_0x129783(0x1e6))/0x5*(-parseInt(_0x129783(0x1f1))/0x6)+-parseInt(_0x129783(0x1ee))/0x7*(parseInt(_0x129783(0x1f2))/0x8)+-parseInt(_0x129783(0x1e2))/0x9+parseInt(_0x129783(0x1e0))/0xa*(parseInt(_0x129783(0x1e5))/0xb);if(_0x118928===_0xb5744a)break;else _0xc6f9f7['push'](_0xc6f9f7['shift']());}catch(_0x488588){_0xc6f9f7['push'](_0xc6f9f7['shift']());}}}(a10_0x2647,0xab8c5));function a10_0x3f52(_0x5483e6,_0x17ec6f){const _0x26473c=a10_0x2647();return a10_0x3f52=function(_0x3f52e7,_0x2e66dc){_0x3f52e7=_0x3f52e7-0x1e0;let _0x330d08=_0x26473c[_0x3f52e7];return _0x330d08;},a10_0x3f52(_0x5483e6,_0x17ec6f);}function a10_0x2647(){const _0x1d57ec=['handler','commandDir','List\x20Grid\x20resources.','5935615tdZhmA','command','builder','46470VLZdAU','8lEvyld','usage','2003766uRevBS','strict','1574128pzdZHt','FMNfq','35548630gcIAAZ','46158TzcArH','12144987GZjcsx','delete','recommendCommands','11Kayabs','635KwwyEJ','desc','25HtfhCQ','epilogue','help'];a10_0x2647=function(){return _0x1d57ec;};return a10_0x2647();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0x3789ae(0x1ef)]='delete',exports[a10_0x3789ae(0x1e7)]=a10_0x3789ae(0x1ed),exports[a10_0x3789ae(0x1f0)]=function(_0x121ac9){const _0x1e20ef=a10_0x3789ae,_0x397b38={};_0x397b38['kBCVk']='delete_commands',_0x397b38[_0x1e20ef(0x1f7)]=_0x1e20ef(0x1ea);const _0x2648f3=_0x397b38;return _0x121ac9[_0x1e20ef(0x1f3)](HELP_HEADER_MESSAGE[_0x1e20ef(0x1e3)])[_0x1e20ef(0x1e9)](HELP_FOOTER_MESSAGE)[_0x1e20ef(0x1ec)](_0x2648f3['kBCVk'])['demandCommand']()[_0x1e20ef(0x1e4)]()[_0x1e20ef(0x1f5)]()[_0x1e20ef(0x1ea)](_0x2648f3[_0x1e20ef(0x1f7)]);},exports[a10_0x3789ae(0x1eb)]=function(_0x39c944){};
1
+ function a10_0xa2a4(){const _0x3e061d=['bkASR','9458IkFdAW','7091OCBFTk','535IkyUMM','../config/constants','2249632xXDjaQ','5505489uTRkfk','204Soqmed','desc','31067160jJZIlx','help','4086mSqusr','command','List\x20Grid\x20resources.','28004TjGCDx','1597920GiZuue','commandDir','usage','delete_commands','builder','demandCommand','strict','epilogue','vrKoz'];a10_0xa2a4=function(){return _0x3e061d;};return a10_0xa2a4();}const a10_0x473a57=a10_0xfa03;(function(_0x5a398d,_0x238e6e){const _0x5cb897=a10_0xfa03,_0x2f8a33=_0x5a398d();while(!![]){try{const _0xc6d1e4=-parseInt(_0x5cb897(0x6c))/0x1*(parseInt(_0x5cb897(0x66))/0x2)+-parseInt(_0x5cb897(0x74))/0x3+-parseInt(_0x5cb897(0x73))/0x4*(parseInt(_0x5cb897(0x68))/0x5)+parseInt(_0x5cb897(0x70))/0x6*(parseInt(_0x5cb897(0x67))/0x7)+-parseInt(_0x5cb897(0x6a))/0x8+-parseInt(_0x5cb897(0x6b))/0x9+parseInt(_0x5cb897(0x6e))/0xa;if(_0xc6d1e4===_0x238e6e)break;else _0x2f8a33['push'](_0x2f8a33['shift']());}catch(_0x53930a){_0x2f8a33['push'](_0x2f8a33['shift']());}}}(a10_0xa2a4,0xa071d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x473a57(0x69));function a10_0xfa03(_0x4b1249,_0x170340){const _0xa2a4c0=a10_0xa2a4();return a10_0xfa03=function(_0xfa03dd,_0x3c37a6){_0xfa03dd=_0xfa03dd-0x64;let _0x367ff5=_0xa2a4c0[_0xfa03dd];return _0x367ff5;},a10_0xfa03(_0x4b1249,_0x170340);}exports[a10_0x473a57(0x71)]='delete',exports[a10_0x473a57(0x6d)]=a10_0x473a57(0x72),exports[a10_0x473a57(0x78)]=function(_0x76e0a1){const _0x55a1fb=a10_0x473a57,_0x3dbd93={};_0x3dbd93[_0x55a1fb(0x64)]=_0x55a1fb(0x77),_0x3dbd93[_0x55a1fb(0x65)]=_0x55a1fb(0x6f);const _0x34e41c=_0x3dbd93;return _0x76e0a1[_0x55a1fb(0x76)](HELP_HEADER_MESSAGE['delete'])[_0x55a1fb(0x7b)](HELP_FOOTER_MESSAGE)[_0x55a1fb(0x75)](_0x34e41c['vrKoz'])[_0x55a1fb(0x79)]()['recommendCommands']()[_0x55a1fb(0x7a)]()[_0x55a1fb(0x6f)](_0x34e41c[_0x55a1fb(0x65)]);},exports['handler']=function(_0xc43f38){};
@@ -1 +1 @@
1
- const a11_0x55bbe6=a11_0x1066;(function(_0x40e248,_0x2407d5){const _0x4fdd34=a11_0x1066,_0x2dc995=_0x40e248();while(!![]){try{const _0x45e350=-parseInt(_0x4fdd34(0x25e))/0x1+parseInt(_0x4fdd34(0x1ee))/0x2*(-parseInt(_0x4fdd34(0x22d))/0x3)+parseInt(_0x4fdd34(0x23f))/0x4+-parseInt(_0x4fdd34(0x26e))/0x5+-parseInt(_0x4fdd34(0x1f2))/0x6+parseInt(_0x4fdd34(0x24f))/0x7+parseInt(_0x4fdd34(0x23d))/0x8;if(_0x45e350===_0x2407d5)break;else _0x2dc995['push'](_0x2dc995['shift']());}catch(_0x4d1f8b){_0x2dc995['push'](_0x2dc995['shift']());}}}(a11_0x2351,0x1a3e1));function a11_0x2351(){const _0x2ed6f8=['sIsqj','uBUDE','187874WJdwtK','../../utils/utilityMethods','ERROR','\x22\x20with\x20ID\x20','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ABcea','hpJEF','BCxRK','parse','debug','type','XtXJI','pVtbm','lvZpS','rhBWl','../../utils/instrumentationUtils','731005IxweCi','ZWvQC','stringify','string','62DUDkdn','jSBgN','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','IJHoV','1284348UfsuOb','LHmyV','EXXBl','Cluster:\x20','command','onlyGridInCluster','\x22\x20and\x20ID\x20','desc','grid-id','username','body','KshqY','gaRvY','statusCode','https://','bobkp','Bbjjr','delete','init-not-called','writeFileSync','description','pqUPn','eTbiJ','KRTpG','server-error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hjhXe','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','PzsYD','uRcXQ','yDChH','password','grid','fetchLocalCreds','SAzOk','cloudProvider','../../utils/userInput','clusterId','Delete\x20an\x20Automation\x20grid.','message','obqtL','options','argv','readFileSync','clusterName','name','Browserstack','fsaUI','emLYC','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Successfully\x20deleted\x20the\x20grid','/packages/cli/grid/','clusterSpawnedVia','got','../../config/logger','usage','../../config/constants','help','nSkqO','12666ogyeIT','tTmTl','IVbsZ','../../utils/createk8sClient','WzlAy','EtWMY','gridId','invalid-grid-id','pBkAN','jMGsd','isBrowserstackCluster','../../utils/gridComponents','warn','deleteCluster','XikLT','invalid-input','3577168IaBLXe','handler','839656GROOOP','region','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','configureIfNotConfigured','hmIuC','taliN','uuLCI','Failed\x20to\x20delete\x20resources!\x20Error:\x20','jzcxp','qgwhV','doIfX','YlDyR','LxBrB','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','906108kSrHWR','Pass\x20the\x20ID\x20of\x20the\x20Grid','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','uDUwa','toLowerCase','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','error','HtIYb','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','pQFue','rgXuc','exit','xaqNG'];a11_0x2351=function(){return _0x2ed6f8;};return a11_0x2351();}const fs=require('fs'),got=require(a11_0x55bbe6(0x227)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x55bbe6(0x22a)),{logger}=require(a11_0x55bbe6(0x228)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x55bbe6(0x238)),{sendInstrumentationEvent}=require(a11_0x55bbe6(0x26d)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x55bbe6(0x216)),{createK8sClient}=require(a11_0x55bbe6(0x230)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x55bbe6(0x25f));function a11_0x1066(_0xd7708,_0xf6cb79){const _0x2351b1=a11_0x2351();return a11_0x1066=function(_0x106680,_0x29a679){_0x106680=_0x106680-0x1ed;let _0x277ce5=_0x2351b1[_0x106680];return _0x277ce5;},a11_0x1066(_0xd7708,_0xf6cb79);}exports[a11_0x55bbe6(0x1f6)]=a11_0x55bbe6(0x212),exports[a11_0x55bbe6(0x1f9)]=a11_0x55bbe6(0x218),exports['builder']=function(_0x1d95ff){const _0x3aea38=a11_0x55bbe6,_0x2c27d6={};_0x2c27d6[_0x3aea38(0x1f3)]=_0x3aea38(0x250),_0x2c27d6[_0x3aea38(0x21a)]=_0x3aea38(0x1ed),_0x2c27d6[_0x3aea38(0x23b)]=_0x3aea38(0x22b);const _0x362208=_0x2c27d6,_0x1e6d56={};_0x1e6d56['description']=_0x362208[_0x3aea38(0x1f3)],_0x1e6d56[_0x3aea38(0x268)]=_0x362208['obqtL'];const _0x364c15={};return _0x364c15[_0x3aea38(0x1fa)]=_0x1e6d56,_0x1d95ff[_0x3aea38(0x229)](HELP_HEADER_MESSAGE[_0x3aea38(0x203)])[_0x3aea38(0x241)](HELP_FOOTER_MESSAGE)[_0x3aea38(0x21b)](_0x364c15)[_0x3aea38(0x22b)](_0x362208[_0x3aea38(0x23b)])[_0x3aea38(0x21c)];},exports[a11_0x55bbe6(0x23e)]=async function(_0x16a70a){const _0x4d5699=a11_0x55bbe6,_0x1ac78a={'jMGsd':_0x4d5699(0x251),'uDUwa':_0x4d5699(0x250),'WzlAy':_0x4d5699(0x1ed),'byxJy':_0x4d5699(0x22b),'qoaHL':function(_0x33bb79){return _0x33bb79();},'taliN':function(_0x433853){return _0x433853();},'BCxRK':function(_0x1810c3,_0x13f3fc){return _0x1810c3===_0x13f3fc;},'SAzOk':'rvCdy','hmIuC':_0x4d5699(0x20b),'hpJEF':function(_0x536f8b,_0x510d94,_0x4af0b2,_0x2e552e,_0x2df82f,_0x516ac2,_0x39230c){return _0x536f8b(_0x510d94,_0x4af0b2,_0x2e552e,_0x2df82f,_0x516ac2,_0x39230c);},'eTbiJ':'delete-grid-called','qgwhV':_0x4d5699(0x204),'rhBWl':function(_0x4e6fcd,_0xe4c94,_0x4f966e,_0x27806a,_0x16a7a5,_0x591285,_0x3d69a3){return _0x4e6fcd(_0xe4c94,_0x4f966e,_0x27806a,_0x16a7a5,_0x591285,_0x3d69a3);},'IVbsZ':function(_0x2f647c,_0x2cae6b){return _0x2f647c!==_0x2cae6b;},'DZaeP':_0x4d5699(0x25c),'FxEVE':_0x4d5699(0x201),'WZDVG':function(_0x545478){return _0x545478();},'uRcXQ':function(_0x33b240,_0x30564f,_0x284f98,_0x516d1a){return _0x33b240(_0x30564f,_0x284f98,_0x516d1a);},'Bbjjr':_0x4d5699(0x220),'BvxPs':function(_0x4b4cca,_0x21fc44){return _0x4b4cca===_0x21fc44;},'KshqY':_0x4d5699(0x25b),'dhAui':function(_0x1ed9bf,_0x3680cf){return _0x1ed9bf(_0x3680cf);},'pQFue':function(_0x3e6ebd,_0x1a5cff){return _0x3e6ebd===_0x1a5cff;},'KRTpG':function(_0x3896d0,_0x4fe84d){return _0x3896d0===_0x4fe84d;},'hjhXe':function(_0x20541e,_0x4406af){return _0x20541e!==_0x4406af;},'LxBrB':_0x4d5699(0x249),'tTmTl':_0x4d5699(0x1f0),'HZIUS':_0x4d5699(0x23c),'EXXBl':function(_0x327ac3,_0x1a1ef0){return _0x327ac3===_0x1a1ef0;},'ctumH':function(_0x4c5285,_0x26ef63){return _0x4c5285===_0x26ef63;},'pVtbm':_0x4d5699(0x235),'qmpNJ':'HeOBS','HBUJk':function(_0x2ef5e1,_0x22c494,_0x242aab,_0x305e18,_0x136d1c){return _0x2ef5e1(_0x22c494,_0x242aab,_0x305e18,_0x136d1c);},'EtWMY':function(_0x1ba696,_0x5964f8){return _0x1ba696===_0x5964f8;},'IJHoV':_0x4d5699(0x207),'fsaUI':_0x4d5699(0x247),'uBUDE':_0x4d5699(0x223),'doIfX':function(_0x3acb6c,_0x188a93){return _0x3acb6c===_0x188a93;},'jMbwk':function(_0x14b953,_0x4cfce7){return _0x14b953!==_0x4cfce7;},'oKqdA':_0x4d5699(0x222),'LCTwm':'DrgOm','lvZpS':function(_0x344045,_0x4e8a57,_0x3f2751,_0x12e786){return _0x344045(_0x4e8a57,_0x3f2751,_0x12e786);},'yVvsZ':function(_0x40d1ac){return _0x40d1ac();},'jCkhP':_0x4d5699(0x262),'yDChH':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','gaRvY':function(_0x2d0ecf,_0x2f7ebb,_0x2fa04b,_0x4b3a57,_0x58cb7f,_0x593a4a){return _0x2d0ecf(_0x2f7ebb,_0x2fa04b,_0x4b3a57,_0x58cb7f,_0x593a4a);},'jSBgN':'DELETE','uZUbo':function(_0x10832e,_0x20cb1b,_0x476fb5){return _0x10832e(_0x20cb1b,_0x476fb5);},'HtIYb':function(_0x31eea4,_0x2816c2,_0x21d4c5){return _0x31eea4(_0x2816c2,_0x21d4c5);},'PzsYD':function(_0x161c3b,_0x865639,_0x587def,_0x4f41fa,_0x357576,_0x17d1b9,_0xef66df){return _0x161c3b(_0x865639,_0x587def,_0x4f41fa,_0x357576,_0x17d1b9,_0xef66df);},'ABcea':_0x4d5699(0x20a),'YlDyR':function(_0x569bb6,_0x5995f6){return _0x569bb6===_0x5995f6;},'XtXJI':'unauthorised','ALqCo':function(_0x132bd5,_0x51d7f9,_0x77189,_0x34f07f,_0x53d21b,_0x50953c,_0x1ebce4){return _0x132bd5(_0x51d7f9,_0x77189,_0x34f07f,_0x53d21b,_0x50953c,_0x1ebce4);},'rgXuc':_0x4d5699(0x234),'nSkqO':function(_0x2f232b,_0x408787,_0x1191a0,_0x3012e4,_0x161cf5,_0x582823,_0x170ef6){return _0x2f232b(_0x408787,_0x1191a0,_0x3012e4,_0x161cf5,_0x582823,_0x170ef6);},'ZWvQC':'unknown-error'};try{global_registry['requestId']=_0x1ac78a['qoaHL'](uuidv4);!fs['existsSync'](_0x1ac78a[_0x4d5699(0x246)](getCredentialsPath))&&(_0x1ac78a[_0x4d5699(0x265)](_0x1ac78a[_0x4d5699(0x214)],_0x1ac78a[_0x4d5699(0x214)])?(console[_0x4d5699(0x255)](_0x1ac78a[_0x4d5699(0x245)]),await _0x1ac78a[_0x4d5699(0x264)](sendInstrumentationEvent,_0x16a70a,_0x1ac78a[_0x4d5699(0x208)],messageTypes[_0x4d5699(0x260)],_0x1ac78a[_0x4d5699(0x24a)],null,_0x16a70a),process['exit'](0x1)):(_0x2e776b[_0x4d5699(0x255)](_0x1ac78a['jMGsd']),_0xb25676[_0x4d5699(0x25a)](0x1)));_0x1ac78a[_0x4d5699(0x26c)](sendInstrumentationEvent,_0x16a70a,_0x1ac78a['eTbiJ'],messageTypes['INFO'],null,null,_0x16a70a);!_0x16a70a['gridId']&&(_0x1ac78a[_0x4d5699(0x22f)](_0x1ac78a['DZaeP'],_0x1ac78a['FxEVE'])?(console[_0x4d5699(0x255)](_0x1ac78a[_0x4d5699(0x236)]),process[_0x4d5699(0x25a)](0x1)):(_0x21e875[_0x4d5699(0x243)](_0x4d5699(0x224)),_0x8f0ba6[_0x4d5699(0x25a)](0x0)));const _0x2661cf=JSON[_0x4d5699(0x266)](fs[_0x4d5699(0x21d)](_0x1ac78a['WZDVG'](getCredentialsPath))),[_0x49e7b0,_0x4f424a]=await _0x1ac78a[_0x4d5699(0x20f)](getGridDetails,_0x2661cf[_0x4d5699(0x220)][_0x4d5699(0x1fb)],_0x2661cf[_0x4d5699(0x220)][_0x4d5699(0x211)],_0x16a70a[_0x4d5699(0x233)]);if(_0x4f424a){const _0xe2a0bb=_0x4f424a[_0x4d5699(0x243)];let _0x313b6b='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0xe2a0bb[_0x4d5699(0x21f)]+_0x4d5699(0x1f8)+_0xe2a0bb['id']+_0x4d5699(0x257),_0x25b779;_0x4f424a[_0x4d5699(0x1f7)]&&_0x1ac78a[_0x4d5699(0x265)](_0x4f424a[_0x4d5699(0x226)],_0x1ac78a[_0x4d5699(0x202)])&&(_0x1ac78a['BvxPs'](_0x1ac78a['KshqY'],_0x1ac78a[_0x4d5699(0x1fd)])?_0x313b6b=_0x4d5699(0x24e)+_0xe2a0bb['name']+_0x4d5699(0x1f8)+_0xe2a0bb['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0xe2a0bb[_0x4d5699(0x21e)]+_0x4d5699(0x261)+_0xe2a0bb[_0x4d5699(0x217)]+_0x4d5699(0x257):_0x42692a[_0x4d5699(0x239)]('Cluster:\x20'+_0x23470b[_0x4d5699(0x21e)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));_0x25b779=await _0x1ac78a['dhAui'](inputConfirmation,_0x313b6b);(_0x1ac78a[_0x4d5699(0x265)](_0x25b779,undefined)||_0x1ac78a[_0x4d5699(0x258)](_0x25b779,null)||!(_0x1ac78a[_0x4d5699(0x265)](_0x25b779[_0x4d5699(0x253)](),'y')||_0x1ac78a[_0x4d5699(0x209)](_0x25b779[_0x4d5699(0x253)](),'n')))&&(_0x1ac78a[_0x4d5699(0x20c)](_0x1ac78a['LxBrB'],_0x1ac78a[_0x4d5699(0x24d)])?_0x6135f3[_0x4d5699(0x25a)](0x0):(console[_0x4d5699(0x255)](_0x1ac78a[_0x4d5699(0x22e)]),await _0x1ac78a[_0x4d5699(0x264)](sendInstrumentationEvent,_0x16a70a,_0x1ac78a['eTbiJ'],messageTypes[_0x4d5699(0x260)],_0x1ac78a['HZIUS'],null,_0x16a70a),process[_0x4d5699(0x25a)](0x1)));if(_0x1ac78a[_0x4d5699(0x1f4)](_0x25b779['toLowerCase'](),'n')){if(_0x1ac78a['ctumH'](_0x1ac78a[_0x4d5699(0x26a)],_0x1ac78a['qmpNJ'])){const _0xfd0936={};_0xfd0936[_0x4d5699(0x206)]=_0x1ac78a[_0x4d5699(0x252)],_0xfd0936[_0x4d5699(0x268)]=_0x1ac78a[_0x4d5699(0x231)];const _0x15c446={};return _0x15c446[_0x4d5699(0x1fa)]=_0xfd0936,_0x298f63[_0x4d5699(0x229)](_0x5afd7d[_0x4d5699(0x203)])[_0x4d5699(0x241)](_0x487393)[_0x4d5699(0x21b)](_0x15c446)[_0x4d5699(0x22b)](_0x1ac78a['byxJy'])[_0x4d5699(0x21c)];}else process[_0x4d5699(0x25a)](0x0);}global_registry['clusterRegion']=_0xe2a0bb[_0x4d5699(0x240)];const _0x53ad56=_0xe2a0bb[_0x4d5699(0x215)],_0x4e0b29=await _0x1ac78a['HBUJk'](getCloudProviderObject,_0x53ad56,_0xe2a0bb[_0x4d5699(0x21e)],_0xe2a0bb[_0x4d5699(0x21f)],_0x16a70a),_0x2c01ec=_0x2661cf[_0x4d5699(0x215)];if(_0x1ac78a[_0x4d5699(0x232)](_0x2c01ec[_0x53ad56],undefined)){if(_0x1ac78a['pQFue'](_0x1ac78a[_0x4d5699(0x1f1)],_0x1ac78a[_0x4d5699(0x221)]))_0x27dcb5=_0x4d5699(0x24e)+_0x2e10b8['name']+_0x4d5699(0x1f8)+_0x277af9['id']+_0x4d5699(0x20d)+_0x2b9d05[_0x4d5699(0x21e)]+_0x4d5699(0x261)+_0xff867d[_0x4d5699(0x217)]+_0x4d5699(0x257);else{logger['info'](_0x1ac78a[_0x4d5699(0x25d)]);_0x1ac78a[_0x4d5699(0x24b)](_0x2661cf[_0x4d5699(0x215)],undefined)&&(_0x1ac78a['jMbwk'](_0x1ac78a['oKqdA'],_0x1ac78a['LCTwm'])?_0x2661cf['cloudProvider']={}:_0x5d37f9[_0x4d5699(0x215)]={});_0x2661cf[_0x4d5699(0x215)][_0x53ad56]={};const _0x5b52c2=await _0x1ac78a[_0x4d5699(0x26b)](inputCloudProviderKeys,_0x53ad56,_0x2661cf,_0x4e0b29);fs[_0x4d5699(0x205)](_0x1ac78a['yVvsZ'](getCredentialsPath),JSON[_0x4d5699(0x270)](_0x5b52c2)),logger[_0x4d5699(0x267)](_0x1ac78a['jCkhP']);}}else logger[_0x4d5699(0x243)](_0x1ac78a[_0x4d5699(0x210)]),await _0x4e0b29[_0x4d5699(0x213)](_0x2c01ec);_0x4e0b29[_0x4d5699(0x244)]();const _0x38bd42=_0x1ac78a['dhAui'](kebabCase,_0xe2a0bb[_0x4d5699(0x21f)]),[_0x29c1ef,_0x1209b6,_0x4d8868,_0x1ee99f,_0x1dc6cc,_0x59e0a8]=await _0x1ac78a['dhAui'](createK8sClient,_0x4e0b29);await _0x1ac78a[_0x4d5699(0x1fe)](removeGridComponents,_0x29c1ef,_0x1209b6,_0x4d8868,_0x1ee99f,_0x38bd42);if(_0x4f424a[_0x4d5699(0x1f7)]){const _0x64f0ed=await _0x4e0b29[_0x4d5699(0x237)]();_0x64f0ed?await _0x4e0b29[_0x4d5699(0x23a)](_0x29c1ef,_0xe2a0bb['region']):logger[_0x4d5699(0x239)](_0x4d5699(0x1f5)+_0xe2a0bb['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x4ea338=_0x4d5699(0x200)+AG_API_URL+_0x4d5699(0x225)+_0x16a70a[_0x4d5699(0x233)],_0x5587e8={'method':_0x1ac78a[_0x4d5699(0x1ef)],'headers':_0x1ac78a['uZUbo'](getAuthHeader,_0x2661cf[_0x4d5699(0x220)][_0x4d5699(0x1fb)],_0x2661cf[_0x4d5699(0x220)][_0x4d5699(0x211)]),'throwHttpErrors':![]},_0x49cc37=await _0x1ac78a[_0x4d5699(0x256)](got,_0x4ea338,_0x5587e8);_0x1ac78a[_0x4d5699(0x20c)](_0x49cc37,null)&&_0x1ac78a[_0x4d5699(0x20c)](_0x49cc37,undefined)&&_0x1ac78a['ctumH'](_0x49cc37['statusCode'],0xc8)&&(logger[_0x4d5699(0x243)](_0x4d5699(0x224)),process[_0x4d5699(0x25a)](0x0)),logger[_0x4d5699(0x255)](_0x4d5699(0x254)+_0x49cc37['body']),await _0x1ac78a[_0x4d5699(0x20e)](sendInstrumentationEvent,_0x16a70a,_0x1ac78a['eTbiJ'],messageTypes[_0x4d5699(0x260)],_0x1ac78a['ABcea'],_0x49e7b0,_0x16a70a),process[_0x4d5699(0x25a)](0x1);}_0x1ac78a[_0x4d5699(0x24c)](_0x49e7b0[_0x4d5699(0x1ff)],0x191)&&(logger[_0x4d5699(0x255)](_0x4d5699(0x242)),await _0x1ac78a[_0x4d5699(0x26c)](sendInstrumentationEvent,_0x16a70a,_0x1ac78a['eTbiJ'],messageTypes[_0x4d5699(0x260)],_0x1ac78a[_0x4d5699(0x269)],null,_0x16a70a),process[_0x4d5699(0x25a)](0x1)),_0x1ac78a[_0x4d5699(0x209)](_0x49e7b0[_0x4d5699(0x1ff)],0x190)&&(logger[_0x4d5699(0x255)](JSON['parse'](_0x49e7b0[_0x4d5699(0x1fc)])[_0x4d5699(0x219)]),await _0x1ac78a['ALqCo'](sendInstrumentationEvent,_0x16a70a,_0x1ac78a[_0x4d5699(0x208)],messageTypes[_0x4d5699(0x260)],_0x1ac78a[_0x4d5699(0x259)],null,_0x16a70a),process[_0x4d5699(0x25a)](0x1)),logger[_0x4d5699(0x255)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4d5699(0x270)](_0x49e7b0)),await _0x1ac78a[_0x4d5699(0x22c)](sendInstrumentationEvent,_0x16a70a,_0x1ac78a['eTbiJ'],messageTypes[_0x4d5699(0x260)],_0x1ac78a[_0x4d5699(0x263)],_0x49e7b0,_0x16a70a),process[_0x4d5699(0x25a)](0x1);}catch(_0x45a279){logger[_0x4d5699(0x255)](_0x4d5699(0x248)+_0x45a279['stack']),await _0x1ac78a[_0x4d5699(0x26c)](sendInstrumentationEvent,_0x16a70a,_0x1ac78a[_0x4d5699(0x208)],messageTypes['ERROR'],_0x1ac78a[_0x4d5699(0x26f)],_0x45a279,_0x16a70a),process[_0x4d5699(0x25a)](0x1);}};
1
+ function a11_0x4f74(_0xda9849,_0x1c720d){const _0x42f98b=a11_0x42f9();return a11_0x4f74=function(_0x4f7417,_0x11216b){_0x4f7417=_0x4f7417-0x1b6;let _0xd58ce3=_0x42f98b[_0x4f7417];return _0xd58ce3;},a11_0x4f74(_0xda9849,_0x1c720d);}const a11_0x3738f2=a11_0x4f74;(function(_0x2723e8,_0x4c568a){const _0x4157d4=a11_0x4f74,_0x7e1689=_0x2723e8();while(!![]){try{const _0x3aa1e0=parseInt(_0x4157d4(0x216))/0x1*(parseInt(_0x4157d4(0x1ff))/0x2)+parseInt(_0x4157d4(0x213))/0x3+-parseInt(_0x4157d4(0x221))/0x4+parseInt(_0x4157d4(0x201))/0x5+-parseInt(_0x4157d4(0x210))/0x6*(parseInt(_0x4157d4(0x214))/0x7)+-parseInt(_0x4157d4(0x23e))/0x8*(parseInt(_0x4157d4(0x1f5))/0x9)+parseInt(_0x4157d4(0x1bc))/0xa*(parseInt(_0x4157d4(0x1c8))/0xb);if(_0x3aa1e0===_0x4c568a)break;else _0x7e1689['push'](_0x7e1689['shift']());}catch(_0x32aa8d){_0x7e1689['push'](_0x7e1689['shift']());}}}(a11_0x42f9,0x48339));function a11_0x42f9(){const _0x4d7a98=['\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','warn','uuid','NEKhG','command','description','KtnpP','parse','QsZYz','dtyAZ','dUPvH','6ykODMy','FiASe','VBUwr','841767YuAJdZ','1853194Zpbohw','jFQRx','409327iLTEfV','body','FRXNF','RjbMm','XdLQO','Wfvxc','VtueA','RSlBM','clusterId','unknown-error','gTTBq','1612892hczqSu','toLowerCase','string','EiYPY','help','error','https://','rEGBZ','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','../../config/constants','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','rZdVw','EHmjI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rvsgl','exit','../../utils/userInput','OYSja','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','delete-grid-called','argv','\x22\x20with\x20ID\x20','oyDzS','/packages/cli/grid/','TQWGe','FxdAj','readFileSync','stringify','../../utils/gridComponents','40aApiHi','region','LhbJH','grid','init-not-called','xvrdU','configureIfNotConfigured','dYbVw','sOvPa','80QFnsPK','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','BdnVI','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','wgmQi','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','../../utils/utilityMethods','fzuDT','cloudProvider','\x22\x20and\x20ID\x20','bSDiZ','Cluster:\x20','409673bYIkrq','JwQMG','../../utils/createk8sClient','Browserstack','ERROR','FHnVj','Delete\x20an\x20Automation\x20grid.','KFHFT','yLPuz','onlyGridInCluster','Pass\x20the\x20ID\x20of\x20the\x20Grid','Successfully\x20deleted\x20the\x20grid','builder','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','wjXMo','debug','info','xtUyf','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','clusterRegion','Failed\x20to\x20delete\x20resources!\x20Error:\x20','rvpQI','invalid-grid-id','CJZJC','requestId','username','usage','password','desc','vuHlv','HVTAs','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','XQJMV','WiuaB','vBkfs','XKcAW','invalid-input','type','fhxjM','epilogue','stack','pZYxF','gAUAW','unauthorised','clusterName','885231rZbStP','ZgAvL','statusCode','existsSync','PJLUL','name','CEFAZ','VxybK','CcFtO','yXuiz','2UOGsoY','tvrpm','2338185yeUqII','writeFileSync','jPykj','gridId'];a11_0x42f9=function(){return _0x4d7a98;};return a11_0x42f9();}const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x3738f2(0x207)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x3738f2(0x22a)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x3738f2(0x23d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x3738f2(0x231)),{createK8sClient}=require(a11_0x3738f2(0x1ca)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x3738f2(0x1c2));exports[a11_0x3738f2(0x209)]=a11_0x3738f2(0x1b6),exports[a11_0x3738f2(0x1e4)]=a11_0x3738f2(0x1ce),exports[a11_0x3738f2(0x1d4)]=function(_0x1ccc1c){const _0x55a441=a11_0x3738f2,_0x445c95={};_0x445c95[_0x55a441(0x218)]=_0x55a441(0x1d2),_0x445c95[_0x55a441(0x1fc)]=_0x55a441(0x223),_0x445c95[_0x55a441(0x1ee)]='help';const _0x426cae=_0x445c95,_0x17b6f1={};_0x17b6f1['description']=_0x426cae[_0x55a441(0x218)],_0x17b6f1['type']=_0x426cae[_0x55a441(0x1fc)];const _0xe9aa38={};return _0xe9aa38['grid-id']=_0x17b6f1,_0x1ccc1c[_0x55a441(0x1e2)](HELP_HEADER_MESSAGE['delete'])[_0x55a441(0x1ef)](HELP_FOOTER_MESSAGE)['options'](_0xe9aa38)[_0x55a441(0x225)](_0x426cae[_0x55a441(0x1ee)])[_0x55a441(0x235)];},exports['handler']=async function(_0x181cda){const _0x40f78c=a11_0x3738f2,_0x3b8ca5={'dYbVw':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ofpOZ':_0x40f78c(0x223),'Wfvxc':_0x40f78c(0x225),'sOvPa':_0x40f78c(0x1da),'KtnpP':function(_0x1bfdb6){return _0x1bfdb6();},'wgmQi':function(_0x4156ba){return _0x4156ba();},'RjbMm':function(_0x499037,_0x8d4a20){return _0x499037===_0x8d4a20;},'ZgAvL':'uWjae','xvrdU':'YNSkJ','KFHFT':_0x40f78c(0x1e7),'XdLQO':function(_0x498a3b,_0x28396c,_0x2a66bd,_0x3cfd0d,_0x57a9fe,_0x675ad1,_0x4aabdf){return _0x498a3b(_0x28396c,_0x2a66bd,_0x3cfd0d,_0x57a9fe,_0x675ad1,_0x4aabdf);},'QsZYz':_0x40f78c(0x234),'TQWGe':_0x40f78c(0x1b7),'RSlBM':function(_0x4bf5e4,_0xcdc5a7){return _0x4bf5e4===_0xcdc5a7;},'FHnVj':_0x40f78c(0x20e),'NEKhG':function(_0x220cd9,_0x11753b,_0x26be96,_0x16312c){return _0x220cd9(_0x11753b,_0x26be96,_0x16312c);},'gAUAW':function(_0x151926,_0x446555){return _0x151926===_0x446555;},'jPykj':_0x40f78c(0x1cb),'HVTAs':function(_0x4c19dd,_0x4e5654){return _0x4c19dd===_0x4e5654;},'fzuDT':_0x40f78c(0x1c9),'BwHbU':_0x40f78c(0x1fe),'BdnVI':function(_0x4253b3,_0x1786ed){return _0x4253b3(_0x1786ed);},'gyQcK':_0x40f78c(0x232),'MZPLM':_0x40f78c(0x1dd),'LhbJH':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','yLPuz':function(_0x3fabf6,_0x241391,_0x955a9d,_0x2ea3ee,_0x2f6bc6,_0x50d85f,_0x57ae65){return _0x3fabf6(_0x241391,_0x955a9d,_0x2ea3ee,_0x2f6bc6,_0x50d85f,_0x57ae65);},'VtueA':_0x40f78c(0x1ec),'CJZJC':function(_0x1f0e9c,_0xac43f6){return _0x1f0e9c===_0xac43f6;},'pZYxF':function(_0x51b377,_0x4fd123){return _0x51b377!==_0x4fd123;},'CEFAZ':_0x40f78c(0x200),'rvsgl':_0x40f78c(0x1fd),'vuHlv':function(_0x2f039b,_0x4ec745,_0x1f4bad,_0x586cc2,_0x2875f9){return _0x2f039b(_0x4ec745,_0x1f4bad,_0x586cc2,_0x2875f9);},'bSDiZ':function(_0x51c57e,_0x57856e){return _0x51c57e===_0x57856e;},'dUPvH':_0x40f78c(0x1d6),'oyDzS':_0x40f78c(0x1d5),'FxdAj':function(_0xaac0d0,_0x53ea67){return _0xaac0d0===_0x53ea67;},'EHmjI':_0x40f78c(0x1e9),'ODRim':function(_0x2eb1a4){return _0x2eb1a4();},'raoRe':_0x40f78c(0x233),'XQJMV':_0x40f78c(0x1c1),'SPcTh':function(_0x4bb7db,_0xa86f3b){return _0x4bb7db(_0xa86f3b);},'IbHiu':function(_0x184081,_0x31abe0,_0x1293df,_0x212bf2,_0x4c0838,_0x2a9090){return _0x184081(_0x31abe0,_0x1293df,_0x212bf2,_0x4c0838,_0x2a9090);},'aRFwe':'DELETE','XKcAW':function(_0x37baa0,_0x106dd2,_0xdc0188){return _0x37baa0(_0x106dd2,_0xdc0188);},'EiYPY':function(_0x4fb178,_0x7e62de,_0x3b22bd){return _0x4fb178(_0x7e62de,_0x3b22bd);},'xtUyf':function(_0x38a959,_0x4a3e18){return _0x38a959!==_0x4a3e18;},'FiASe':function(_0x3926a2,_0x1124bc){return _0x3926a2===_0x1124bc;},'vBkfs':function(_0x1f36f2,_0x10be4f,_0x1be444,_0x65739e,_0x12e1fb,_0x29cbfa,_0x20c671){return _0x1f36f2(_0x10be4f,_0x1be444,_0x65739e,_0x12e1fb,_0x29cbfa,_0x20c671);},'rEGBZ':'server-error','VBUwr':function(_0x56fd65,_0x1c6a52){return _0x56fd65===_0x1c6a52;},'PJLUL':function(_0x425b1d,_0x1ffdb8,_0x15f0b5,_0x1f0c13,_0xb92d6d,_0x5a89dc,_0x218796){return _0x425b1d(_0x1ffdb8,_0x15f0b5,_0x1f0c13,_0xb92d6d,_0x5a89dc,_0x218796);},'rZdVw':_0x40f78c(0x1f3),'qRYOJ':_0x40f78c(0x1de),'gTTBq':function(_0x69e0d6,_0x58065c,_0x3000e8,_0x12ccb4,_0x40f8dc,_0x328a9b,_0xe84508){return _0x69e0d6(_0x58065c,_0x3000e8,_0x12ccb4,_0x40f8dc,_0x328a9b,_0xe84508);},'jFQRx':function(_0x54c77b,_0x8f8ecb,_0x82e6b4,_0x6e0cbb,_0x3f7d9e,_0x4dd475,_0x2d5d1e){return _0x54c77b(_0x8f8ecb,_0x82e6b4,_0x6e0cbb,_0x3f7d9e,_0x4dd475,_0x2d5d1e);},'pyogh':_0x40f78c(0x21f)};try{global_registry[_0x40f78c(0x1e0)]=_0x3b8ca5[_0x40f78c(0x20b)](uuidv4);!fs[_0x40f78c(0x1f8)](_0x3b8ca5[_0x40f78c(0x1c0)](getCredentialsPath))&&(_0x3b8ca5['RjbMm'](_0x3b8ca5[_0x40f78c(0x1f6)],_0x3b8ca5[_0x40f78c(0x1b8)])?_0x2f40ed=_0x40f78c(0x22b)+_0x1f4fa5[_0x40f78c(0x1fa)]+_0x40f78c(0x1c5)+_0x3b1539['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4e169a[_0x40f78c(0x1f4)]+_0x40f78c(0x236)+_0x32a441[_0x40f78c(0x21e)]+_0x40f78c(0x1bd):(console['error'](_0x3b8ca5[_0x40f78c(0x1cf)]),await _0x3b8ca5[_0x40f78c(0x21a)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5[_0x40f78c(0x20d)],messageTypes[_0x40f78c(0x1cc)],_0x3b8ca5[_0x40f78c(0x239)],null,_0x181cda),process[_0x40f78c(0x230)](0x1)));_0x3b8ca5[_0x40f78c(0x21a)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5[_0x40f78c(0x20d)],messageTypes['INFO'],null,null,_0x181cda);!_0x181cda[_0x40f78c(0x204)]&&(_0x3b8ca5[_0x40f78c(0x21d)](_0x3b8ca5['FHnVj'],_0x3b8ca5[_0x40f78c(0x1cd)])?(console[_0x40f78c(0x226)](_0x3b8ca5[_0x40f78c(0x1bb)]),process[_0x40f78c(0x230)](0x1)):_0x1f75d9[_0x40f78c(0x206)]('Cluster:\x20'+_0x373a30['clusterName']+_0x40f78c(0x1bf)));const _0x25cb04=JSON[_0x40f78c(0x20c)](fs[_0x40f78c(0x23b)](_0x3b8ca5[_0x40f78c(0x20b)](getCredentialsPath))),[_0x51340a,_0x684afd]=await _0x3b8ca5[_0x40f78c(0x208)](getGridDetails,_0x25cb04[_0x40f78c(0x1cb)][_0x40f78c(0x1e1)],_0x25cb04[_0x40f78c(0x1cb)]['password'],_0x181cda[_0x40f78c(0x204)]);if(_0x684afd){const _0x34ab5e=_0x684afd[_0x40f78c(0x1d8)];let _0x4191bc=_0x40f78c(0x22b)+_0x34ab5e['name']+_0x40f78c(0x1c5)+_0x34ab5e['id']+_0x40f78c(0x1bd),_0x2c8961;_0x684afd[_0x40f78c(0x1d1)]&&_0x3b8ca5[_0x40f78c(0x1f2)](_0x684afd['clusterSpawnedVia'],_0x3b8ca5[_0x40f78c(0x203)])&&(_0x3b8ca5[_0x40f78c(0x1e6)](_0x3b8ca5[_0x40f78c(0x1c3)],_0x3b8ca5['BwHbU'])?_0x9c1487[_0x40f78c(0x1c4)]={}:_0x4191bc=_0x40f78c(0x22b)+_0x34ab5e['name']+_0x40f78c(0x1c5)+_0x34ab5e['id']+_0x40f78c(0x205)+_0x34ab5e[_0x40f78c(0x1f4)]+_0x40f78c(0x236)+_0x34ab5e[_0x40f78c(0x21e)]+_0x40f78c(0x1bd));_0x2c8961=await _0x3b8ca5[_0x40f78c(0x1be)](inputConfirmation,_0x4191bc);if(_0x3b8ca5[_0x40f78c(0x1e6)](_0x2c8961,undefined)||_0x3b8ca5['HVTAs'](_0x2c8961,null)||!(_0x3b8ca5[_0x40f78c(0x21d)](_0x2c8961[_0x40f78c(0x222)](),'y')||_0x3b8ca5[_0x40f78c(0x1f2)](_0x2c8961[_0x40f78c(0x222)](),'n'))){if(_0x3b8ca5[_0x40f78c(0x1e6)](_0x3b8ca5['gyQcK'],_0x3b8ca5['MZPLM'])){const _0x15c4e8={};_0x15c4e8[_0x40f78c(0x20a)]=_0x3b8ca5[_0x40f78c(0x1ba)],_0x15c4e8[_0x40f78c(0x1ed)]=_0x3b8ca5['ofpOZ'];const _0xc084c0={};return _0xc084c0['grid-id']=_0x15c4e8,_0x41c3eb['usage'](_0x1eebca['delete'])[_0x40f78c(0x1ef)](_0x1bde9f)['options'](_0xc084c0)[_0x40f78c(0x225)](_0x3b8ca5[_0x40f78c(0x21b)])[_0x40f78c(0x235)];}else console[_0x40f78c(0x226)](_0x3b8ca5[_0x40f78c(0x240)]),await _0x3b8ca5[_0x40f78c(0x1d0)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5[_0x40f78c(0x20d)],messageTypes['ERROR'],_0x3b8ca5[_0x40f78c(0x21c)],null,_0x181cda),process[_0x40f78c(0x230)](0x1);}_0x3b8ca5[_0x40f78c(0x1df)](_0x2c8961['toLowerCase'](),'n')&&(_0x3b8ca5[_0x40f78c(0x1f1)](_0x3b8ca5[_0x40f78c(0x1fb)],_0x3b8ca5[_0x40f78c(0x22f)])?process[_0x40f78c(0x230)](0x0):(_0x2faf6d[_0x40f78c(0x1d8)](_0x40f78c(0x1d3)),_0xf6fe8c[_0x40f78c(0x230)](0x0)));global_registry[_0x40f78c(0x1db)]=_0x34ab5e[_0x40f78c(0x23f)];const _0x996779=_0x34ab5e['cloudProvider'],_0x57e62c=await _0x3b8ca5[_0x40f78c(0x1e5)](getCloudProviderObject,_0x996779,_0x34ab5e[_0x40f78c(0x1f4)],_0x34ab5e[_0x40f78c(0x1fa)],_0x181cda),_0x16b262=_0x25cb04[_0x40f78c(0x1c4)];if(_0x3b8ca5[_0x40f78c(0x1c6)](_0x16b262[_0x996779],undefined)){if(_0x3b8ca5[_0x40f78c(0x219)](_0x3b8ca5[_0x40f78c(0x20f)],_0x3b8ca5[_0x40f78c(0x20f)])){logger['info'](_0x3b8ca5[_0x40f78c(0x237)]);_0x3b8ca5[_0x40f78c(0x219)](_0x25cb04[_0x40f78c(0x1c4)],undefined)&&(_0x3b8ca5[_0x40f78c(0x23a)](_0x3b8ca5['EHmjI'],_0x3b8ca5[_0x40f78c(0x22d)])?_0x25cb04['cloudProvider']={}:(_0x46674d[_0x40f78c(0x226)](_0x3b8ca5['sOvPa']),_0x495347[_0x40f78c(0x230)](0x1)));_0x25cb04[_0x40f78c(0x1c4)][_0x996779]={};const _0x478a51=await _0x3b8ca5[_0x40f78c(0x208)](inputCloudProviderKeys,_0x996779,_0x25cb04,_0x57e62c);fs[_0x40f78c(0x202)](_0x3b8ca5['ODRim'](getCredentialsPath),JSON[_0x40f78c(0x23c)](_0x478a51)),logger[_0x40f78c(0x1d7)](_0x3b8ca5['raoRe']);}else _0x1a5de6[_0x40f78c(0x230)](0x0);}else logger['info'](_0x3b8ca5[_0x40f78c(0x1e8)]),await _0x57e62c['fetchLocalCreds'](_0x16b262);_0x57e62c[_0x40f78c(0x1b9)]();const _0x3a8dc0=_0x3b8ca5['BdnVI'](kebabCase,_0x34ab5e[_0x40f78c(0x1fa)]),[_0x4729be,_0x449ad6,_0x1081be,_0x1f1d8e,_0x2a03be,_0x440476]=await _0x3b8ca5['SPcTh'](createK8sClient,_0x57e62c);await _0x3b8ca5['IbHiu'](removeGridComponents,_0x4729be,_0x449ad6,_0x1081be,_0x1f1d8e,_0x3a8dc0);if(_0x684afd[_0x40f78c(0x1d1)]){const _0x556d48=await _0x57e62c['isBrowserstackCluster']();_0x556d48?await _0x57e62c['deleteCluster'](_0x4729be,_0x34ab5e['region']):logger[_0x40f78c(0x206)](_0x40f78c(0x1c7)+_0x34ab5e[_0x40f78c(0x1f4)]+_0x40f78c(0x1bf));}const _0x472944=_0x40f78c(0x227)+AG_API_URL+_0x40f78c(0x238)+_0x181cda[_0x40f78c(0x204)],_0x4f45f1={'method':_0x3b8ca5['aRFwe'],'headers':_0x3b8ca5[_0x40f78c(0x1eb)](getAuthHeader,_0x25cb04['Browserstack'][_0x40f78c(0x1e1)],_0x25cb04[_0x40f78c(0x1cb)][_0x40f78c(0x1e3)]),'throwHttpErrors':![]},_0xb9e9b8=await _0x3b8ca5[_0x40f78c(0x224)](got,_0x472944,_0x4f45f1);_0x3b8ca5[_0x40f78c(0x1d9)](_0xb9e9b8,null)&&_0x3b8ca5[_0x40f78c(0x1d9)](_0xb9e9b8,undefined)&&_0x3b8ca5[_0x40f78c(0x211)](_0xb9e9b8[_0x40f78c(0x1f7)],0xc8)&&(logger[_0x40f78c(0x1d8)](_0x40f78c(0x1d3)),process[_0x40f78c(0x230)](0x0)),logger[_0x40f78c(0x226)](_0x40f78c(0x229)+_0xb9e9b8[_0x40f78c(0x217)]),await _0x3b8ca5[_0x40f78c(0x1ea)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5[_0x40f78c(0x20d)],messageTypes['ERROR'],_0x3b8ca5[_0x40f78c(0x228)],_0x51340a,_0x181cda),process['exit'](0x1);}_0x3b8ca5[_0x40f78c(0x212)](_0x51340a[_0x40f78c(0x1f7)],0x191)&&(logger[_0x40f78c(0x226)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x3b8ca5[_0x40f78c(0x1f9)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5['QsZYz'],messageTypes[_0x40f78c(0x1cc)],_0x3b8ca5[_0x40f78c(0x22c)],null,_0x181cda),process['exit'](0x1)),_0x3b8ca5[_0x40f78c(0x211)](_0x51340a[_0x40f78c(0x1f7)],0x190)&&(logger['error'](JSON[_0x40f78c(0x20c)](_0x51340a[_0x40f78c(0x217)])['message']),await _0x3b8ca5[_0x40f78c(0x21a)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5['QsZYz'],messageTypes[_0x40f78c(0x1cc)],_0x3b8ca5['qRYOJ'],null,_0x181cda),process[_0x40f78c(0x230)](0x1)),logger[_0x40f78c(0x226)](_0x40f78c(0x22e)+JSON[_0x40f78c(0x23c)](_0x51340a)),await _0x3b8ca5[_0x40f78c(0x220)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5[_0x40f78c(0x20d)],messageTypes[_0x40f78c(0x1cc)],_0x3b8ca5['rEGBZ'],_0x51340a,_0x181cda),process[_0x40f78c(0x230)](0x1);}catch(_0x5b211f){logger['error'](_0x40f78c(0x1dc)+_0x5b211f[_0x40f78c(0x1f0)]),await _0x3b8ca5[_0x40f78c(0x215)](sendInstrumentationEvent,_0x181cda,_0x3b8ca5[_0x40f78c(0x20d)],messageTypes[_0x40f78c(0x1cc)],_0x3b8ca5['pyogh'],_0x5b211f,_0x181cda),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a12_0xfa8c(){const _0x296927=['uSRKa','DFrmi','init-called','password','parse','handler','iUVoA','JdguN','KXnhJ','avWLB','BROWSERSTACK_USERNAME','nvAdi','string','13685bNpUjc','bstack-username','init','ssIUa','8950260MVsLYw','util','TZxTg','command','lVkcx','MzctH','ipMhG','existsSync','4932144CuOAOn','TOFGD','exit','argv','XBtWn','utf-8','POHSB','uuid','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','rRlQv','etWHZ','rCqgC','wbEHQ','username','../config/constants','GET','requestId','debug','NSRhJ','recommendCommands','HnSCD','type','error','BROWSERSTACK_ACCESS_KEY','9pXFgDy','fKOfo','5ovKmHu','writeFileSync','ERROR','EJkwX','RICji','usage','puDta','1394171ncLdRZ','bstack-accesskey','aClIQ','stringify','desc','env','help','strict','xfHQa','FnqAM','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Kgznv','bstackUsername','Zpiqk','6972532lVTtIx','Browserstack','IdBNr','933344GHeJXP','uVbFs','440NFlIyo','mEBzy','../utils/utilityMethods','eMVTh','mkdirSync','3115776RzAAlO','options','MuaXm','jpTQc','cSKdB','got','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','gcGfg','YWMqy','FhMxk','SVCxi','LAwQn','bstackAccesskey','JgHvV','nPLrO','RStJo','description','readFileSync','VicWx'];a12_0xfa8c=function(){return _0x296927;};return a12_0xfa8c();}function a12_0x2a15(_0x2c96ad,_0x5c731d){const _0xfa8c5b=a12_0xfa8c();return a12_0x2a15=function(_0x2a15ff,_0x43045d){_0x2a15ff=_0x2a15ff-0x1ce;let _0x178fe4=_0xfa8c5b[_0x2a15ff];return _0x178fe4;},a12_0x2a15(_0x2c96ad,_0x5c731d);}const a12_0x228834=a12_0x2a15;(function(_0x288eb0,_0x4ce941){const _0xe92f9f=a12_0x2a15,_0x307e96=_0x288eb0();while(!![]){try{const _0x26ef2a=parseInt(_0xe92f9f(0x1fe))/0x1+-parseInt(_0xe92f9f(0x20f))/0x2*(-parseInt(_0xe92f9f(0x1f5))/0x3)+parseInt(_0xe92f9f(0x20c))/0x4*(-parseInt(_0xe92f9f(0x1f7))/0x5)+-parseInt(_0xe92f9f(0x216))/0x6+-parseInt(_0xe92f9f(0x1d1))/0x7*(-parseInt(_0xe92f9f(0x211))/0x8)+-parseInt(_0xe92f9f(0x1dd))/0x9+parseInt(_0xe92f9f(0x1d5))/0xa;if(_0x26ef2a===_0x4ce941)break;else _0x307e96['push'](_0x307e96['shift']());}catch(_0x2e934f){_0x307e96['push'](_0x307e96['shift']());}}}(a12_0xfa8c,0xf0cb5));const fs=require('fs'),util=require(a12_0x228834(0x1d6)),got=require(a12_0x228834(0x21b)),{v4:uuidv4}=require(a12_0x228834(0x1e4)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x228834(0x1eb)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x228834(0x213)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x228834(0x1d8)]=a12_0x228834(0x1d3),exports[a12_0x228834(0x202)]=a12_0x228834(0x1e5),exports['builder']=function(_0x1c3a5f){const _0x200bed=a12_0x228834,_0x1cf880={};_0x1cf880[_0x200bed(0x1fb)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x1cf880[_0x200bed(0x209)]=_0x200bed(0x1d0),_0x1cf880['rCqgC']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x1cf880[_0x200bed(0x1cf)]='help';const _0x15251e=_0x1cf880,_0x1c305f={};_0x1c305f[_0x200bed(0x226)]=_0x15251e['RICji'],_0x1c305f[_0x200bed(0x1f2)]=_0x15251e[_0x200bed(0x209)];const _0x2ba636={};_0x2ba636[_0x200bed(0x226)]=_0x15251e[_0x200bed(0x1e8)],_0x2ba636[_0x200bed(0x1f2)]=_0x15251e[_0x200bed(0x209)];const _0x52b8da={};return _0x52b8da[_0x200bed(0x1d2)]=_0x1c305f,_0x52b8da[_0x200bed(0x1ff)]=_0x2ba636,_0x1c3a5f[_0x200bed(0x1fc)](HELP_HEADER_MESSAGE[_0x200bed(0x1d3)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x52b8da)[_0x200bed(0x1f0)]()[_0x200bed(0x205)]()[_0x200bed(0x204)](_0x15251e['nvAdi'])[_0x200bed(0x1e0)];},exports[a12_0x228834(0x22e)]=async function(_0x58fb48){const _0x59fd25=a12_0x228834,_0x5703a0={'KXnhJ':function(_0x437c79){return _0x437c79();},'FhMxk':_0x59fd25(0x1e2),'iUVoA':_0x59fd25(0x208),'DFrmi':_0x59fd25(0x1d0),'FnqAM':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','eMVTh':_0x59fd25(0x204),'KksBD':function(_0x3ae2db){return _0x3ae2db();},'MuaXm':function(_0x4aa5da,_0x325070,_0x4d2277,_0x56b13b,_0x3ef91f,_0x14ae4d,_0x362ae3){return _0x4aa5da(_0x325070,_0x4d2277,_0x56b13b,_0x3ef91f,_0x14ae4d,_0x362ae3);},'HnSCD':_0x59fd25(0x22b),'Zpiqk':function(_0x1e942e,_0x20b86c){return _0x1e942e===_0x20b86c;},'DLqLW':_0x59fd25(0x1f6),'ssIUa':_0x59fd25(0x232),'fFBes':function(_0x1ec0ed,_0x6a627c){return _0x1ec0ed!==_0x6a627c;},'SVCxi':_0x59fd25(0x1e3),'lVkcx':_0x59fd25(0x1e1),'EvGFh':_0x59fd25(0x1fa),'uVbFs':_0x59fd25(0x1de),'rRlQv':_0x59fd25(0x21d),'jpTQc':function(_0x3fff8a,_0x3c11ad){return _0x3fff8a!==_0x3c11ad;},'uSRKa':_0x59fd25(0x1ef),'puDta':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','QbbUJ':_0x59fd25(0x1ec),'VicWx':function(_0x1792e9,_0x2cde92,_0x2b691b){return _0x1792e9(_0x2cde92,_0x2b691b);},'wbEHQ':function(_0x349191,_0x22f2c9,_0x18649b){return _0x349191(_0x22f2c9,_0x18649b);},'TZxTg':function(_0x30881f,_0x1c41fb){return _0x30881f!==_0x1c41fb;},'mEBzy':function(_0x4aadbb,_0x5810ab){return _0x4aadbb!==_0x5810ab;},'IGdjp':function(_0x127a04,_0xb6fbbf){return _0x127a04===_0xb6fbbf;},'MzctH':function(_0x19c001,_0x35e326){return _0x19c001!==_0x35e326;},'LAwQn':_0x59fd25(0x21e),'JdguN':_0x59fd25(0x1e7),'nPLrO':_0x59fd25(0x21a),'RStJo':function(_0x5a2582,_0x6ef0e8){return _0x5a2582!==_0x6ef0e8;},'JgHvV':_0x59fd25(0x206),'aClIQ':_0x59fd25(0x21c),'IdBNr':'wrong-creds','ipMhG':'unknown-error'};try{global_registry[_0x59fd25(0x1ed)]=_0x5703a0['KksBD'](uuidv4),_0x5703a0[_0x59fd25(0x218)](sendInstrumentationEvent,_0x58fb48,_0x5703a0['HnSCD'],messageTypes['INFO'],null,null,_0x58fb48);const _0x1bc55b=_0x5703a0['KksBD'](getDirForConfig);!fs[_0x59fd25(0x1dc)](_0x1bc55b)&&(_0x5703a0['Zpiqk'](_0x5703a0['DLqLW'],_0x5703a0[_0x59fd25(0x1d4)])?_0x555524=_0x3696a2[_0x59fd25(0x222)]:fs[_0x59fd25(0x215)](_0x1bc55b));let _0x264199,_0xfcd6d3;if(process[_0x59fd25(0x203)][_0x59fd25(0x1ce)]){if(_0x5703a0['fFBes'](_0x5703a0[_0x59fd25(0x220)],_0x5703a0['SVCxi'])){let _0x1c5e50={};const _0x150e9a=_0x5703a0['KXnhJ'](_0x3dae0d);_0x1aa544[_0x59fd25(0x1dc)](_0x150e9a)&&(_0x1c5e50=_0x25edaa[_0x59fd25(0x22d)](_0x4b9de5['readFileSync'](_0x150e9a,_0x5703a0[_0x59fd25(0x21f)])));const _0x3325bb={};_0x3325bb['username']=_0x554d52,_0x3325bb[_0x59fd25(0x22c)]=_0x4a4f35,_0x1c5e50[_0x59fd25(0x20d)]=_0x3325bb,_0x5a4346[_0x59fd25(0x1f8)](_0x150e9a,_0x2ce642[_0x59fd25(0x201)](_0x1c5e50)),_0x20dec4[_0x59fd25(0x1df)](0x0);}else _0x264199=process[_0x59fd25(0x203)][_0x59fd25(0x1ce)];}process[_0x59fd25(0x203)][_0x59fd25(0x1f4)]&&(_0x5703a0['fFBes'](_0x5703a0[_0x59fd25(0x1d9)],_0x5703a0['EvGFh'])?_0xfcd6d3=process[_0x59fd25(0x203)][_0x59fd25(0x1f4)]:_0x4e4eff[_0x59fd25(0x215)](_0x5c04f1));_0x58fb48['bstackUsername']&&(_0x5703a0[_0x59fd25(0x20b)](_0x5703a0[_0x59fd25(0x210)],_0x5703a0[_0x59fd25(0x210)])?_0x264199=_0x58fb48[_0x59fd25(0x20a)]:_0x154b61=_0xdc0653[_0x59fd25(0x203)]['BROWSERSTACK_ACCESS_KEY']);_0x58fb48['bstackAccesskey']&&(_0x5703a0[_0x59fd25(0x20b)](_0x5703a0[_0x59fd25(0x1e6)],_0x5703a0[_0x59fd25(0x1e6)])?_0xfcd6d3=_0x58fb48[_0x59fd25(0x222)]:_0x567b80=!![]);if(_0x5703a0[_0x59fd25(0x20b)](_0x264199,undefined)||_0x5703a0[_0x59fd25(0x20b)](_0xfcd6d3,undefined)){if(_0x5703a0[_0x59fd25(0x219)](_0x5703a0['uSRKa'],_0x5703a0[_0x59fd25(0x229)]))_0x14a625=_0x189852[_0x59fd25(0x203)][_0x59fd25(0x1ce)];else{logger[_0x59fd25(0x1ee)](_0x5703a0[_0x59fd25(0x1fd)]);const [_0x4ea9f2,_0x3e299d]=await _0x5703a0[_0x59fd25(0x231)](inputBstackKeys);_0x264199=_0x4ea9f2,_0xfcd6d3=_0x3e299d;}}let _0x3c20bf=![];const _0x2ebe67='https://'+_0x264199+':'+_0xfcd6d3+'@'+BS_API_URL+'/automate/plan.json',_0x342f4e={'method':_0x5703a0['QbbUJ'],'headers':_0x5703a0[_0x59fd25(0x228)](getAuthHeader,_0x264199,_0xfcd6d3),'throwHttpErrors':![]},_0x41b9d2=await _0x5703a0[_0x59fd25(0x1e9)](got,_0x2ebe67,_0x342f4e);_0x5703a0[_0x59fd25(0x1d7)](_0x41b9d2,null)&&_0x5703a0[_0x59fd25(0x212)](_0x41b9d2,undefined)&&_0x5703a0['IGdjp'](_0x41b9d2['statusCode'],0xc8)&&(_0x5703a0[_0x59fd25(0x1da)](_0x5703a0['LAwQn'],_0x5703a0[_0x59fd25(0x221)])?_0x5e0929=_0x6b5e7c[_0x59fd25(0x20a)]:_0x3c20bf=!![]);if(_0x3c20bf){if(_0x5703a0[_0x59fd25(0x219)](_0x5703a0[_0x59fd25(0x230)],_0x5703a0[_0x59fd25(0x224)])){let _0x1ac13a={};const _0x1f841a=_0x5703a0[_0x59fd25(0x231)](getCredentialsPath);if(fs['existsSync'](_0x1f841a)){if(_0x5703a0[_0x59fd25(0x225)](_0x5703a0['JgHvV'],_0x5703a0[_0x59fd25(0x223)])){const _0x4f2c5f={};_0x4f2c5f[_0x59fd25(0x226)]=_0x5703a0[_0x59fd25(0x22f)],_0x4f2c5f[_0x59fd25(0x1f2)]=_0x5703a0[_0x59fd25(0x22a)];const _0x95af={};_0x95af[_0x59fd25(0x226)]=_0x5703a0[_0x59fd25(0x207)],_0x95af[_0x59fd25(0x1f2)]=_0x5703a0['DFrmi'];const _0x1c5d4e={};return _0x1c5d4e[_0x59fd25(0x1d2)]=_0x4f2c5f,_0x1c5d4e[_0x59fd25(0x1ff)]=_0x95af,_0x19cd54[_0x59fd25(0x1fc)](_0x519a88['init'])['epilogue'](_0x5fa740)[_0x59fd25(0x217)](_0x1c5d4e)[_0x59fd25(0x1f0)]()[_0x59fd25(0x205)]()[_0x59fd25(0x204)](_0x5703a0[_0x59fd25(0x214)])[_0x59fd25(0x1e0)];}else _0x1ac13a=JSON['parse'](fs['readFileSync'](_0x1f841a,_0x5703a0[_0x59fd25(0x21f)]));}const _0x15ecec={};_0x15ecec[_0x59fd25(0x1ea)]=_0x264199,_0x15ecec[_0x59fd25(0x22c)]=_0xfcd6d3,_0x1ac13a[_0x59fd25(0x20d)]=_0x15ecec,fs['writeFileSync'](_0x1f841a,JSON[_0x59fd25(0x201)](_0x1ac13a)),process['exit'](0x0);}else _0x3cf31d=_0x2db89f[_0x59fd25(0x22d)](_0x5be1a3[_0x59fd25(0x227)](_0x1cb534,_0x5703a0[_0x59fd25(0x21f)]));}else logger[_0x59fd25(0x1f3)](_0x5703a0[_0x59fd25(0x200)]),await _0x5703a0['MuaXm'](sendInstrumentationEvent,_0x58fb48,_0x5703a0[_0x59fd25(0x1f1)],messageTypes[_0x59fd25(0x1f9)],_0x5703a0[_0x59fd25(0x20e)],null,_0x58fb48),process['exit'](0x1);}catch(_0x1c1e65){logger[_0x59fd25(0x1f3)](_0x1c1e65['stack']),await _0x5703a0[_0x59fd25(0x218)](sendInstrumentationEvent,_0x58fb48,_0x5703a0['HnSCD'],messageTypes[_0x59fd25(0x1f9)],_0x5703a0[_0x59fd25(0x1db)],_0x1c1e65,_0x58fb48),process['exit'](0x1);}};
1
+ const a12_0x357e41=a12_0x5199;function a12_0x5199(_0x98fd14,_0x5f1c85){const _0x2bf1da=a12_0x2bf1();return a12_0x5199=function(_0x5199ca,_0x20237d){_0x5199ca=_0x5199ca-0x10d;let _0x4fb039=_0x2bf1da[_0x5199ca];return _0x4fb039;},a12_0x5199(_0x98fd14,_0x5f1c85);}(function(_0x5d41da,_0xe2b57a){const _0x558149=a12_0x5199,_0x563e91=_0x5d41da();while(!![]){try{const _0x54c8b8=parseInt(_0x558149(0x138))/0x1+-parseInt(_0x558149(0x158))/0x2*(parseInt(_0x558149(0x131))/0x3)+-parseInt(_0x558149(0x13c))/0x4+parseInt(_0x558149(0x12c))/0x5*(parseInt(_0x558149(0x124))/0x6)+parseInt(_0x558149(0x14b))/0x7+-parseInt(_0x558149(0x153))/0x8+parseInt(_0x558149(0x15e))/0x9;if(_0x54c8b8===_0xe2b57a)break;else _0x563e91['push'](_0x563e91['shift']());}catch(_0x387ed8){_0x563e91['push'](_0x563e91['shift']());}}}(a12_0x2bf1,0xb2103));const fs=require('fs'),util=require(a12_0x357e41(0x10f)),got=require(a12_0x357e41(0x15c)),{v4:uuidv4}=require(a12_0x357e41(0x115)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x357e41(0x155)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x357e41(0x150)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x357e41(0x112)),{sendInstrumentationEvent}=require(a12_0x357e41(0x135));exports[a12_0x357e41(0x13e)]=a12_0x357e41(0x11a),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x357e41(0x14a)]=function(_0x3569d1){const _0x2125e9=a12_0x357e41,_0x2190ac={};_0x2190ac[_0x2125e9(0x163)]=_0x2125e9(0x121),_0x2190ac[_0x2125e9(0x154)]=_0x2125e9(0x157),_0x2190ac[_0x2125e9(0x120)]=_0x2125e9(0x10d),_0x2190ac[_0x2125e9(0x14e)]=_0x2125e9(0x141);const _0x36d4d0=_0x2190ac,_0x284a16={};_0x284a16[_0x2125e9(0x12d)]=_0x36d4d0[_0x2125e9(0x163)],_0x284a16[_0x2125e9(0x12e)]=_0x36d4d0[_0x2125e9(0x154)];const _0x3c314d={};_0x3c314d['description']=_0x36d4d0['cQyNb'],_0x3c314d['type']=_0x36d4d0['anYyT'];const _0x3debdc={};return _0x3debdc['bstack-username']=_0x284a16,_0x3debdc[_0x2125e9(0x160)]=_0x3c314d,_0x3569d1[_0x2125e9(0x148)](HELP_HEADER_MESSAGE[_0x2125e9(0x11a)])[_0x2125e9(0x13f)](HELP_FOOTER_MESSAGE)[_0x2125e9(0x15a)](_0x3debdc)[_0x2125e9(0x12a)]()['strict']()[_0x2125e9(0x141)](_0x36d4d0[_0x2125e9(0x14e)])[_0x2125e9(0x11f)];},exports[a12_0x357e41(0x136)]=async function(_0x3e1ccf){const _0x5752fd=a12_0x357e41,_0x9e5781={'PRExN':function(_0x2f71c0){return _0x2f71c0();},'yHmjv':'utf-8','gyhFm':_0x5752fd(0x121),'OhaGY':_0x5752fd(0x157),'DgECo':_0x5752fd(0x10d),'RGSHg':_0x5752fd(0x141),'jaLhT':function(_0x46708a){return _0x46708a();},'dSVbA':function(_0x50c88e,_0x380b51,_0x3ec729,_0x28c397,_0x48562a,_0xf7bb61,_0x385985){return _0x50c88e(_0x380b51,_0x3ec729,_0x28c397,_0x48562a,_0xf7bb61,_0x385985);},'HHeEg':'init-called','Fysrg':function(_0x3badf7,_0x122351){return _0x3badf7===_0x122351;},'uEoyL':_0x5752fd(0x161),'Mfimv':'hdQsC','kzKTs':function(_0x1eadb3,_0x359186){return _0x1eadb3!==_0x359186;},'mmqtI':'DJYWT','EiOcX':function(_0x6d0c31,_0xcf278){return _0x6d0c31!==_0xcf278;},'jngFZ':_0x5752fd(0x119),'sgSmb':'MKkXe','Onesd':_0x5752fd(0x122),'DVJmj':_0x5752fd(0x11c),'vnUXQ':_0x5752fd(0x13a),'lOCtS':function(_0x19aef5){return _0x19aef5();},'moQha':_0x5752fd(0x14c),'ozQzg':function(_0x2fc18d,_0x52df90,_0xb97bda){return _0x2fc18d(_0x52df90,_0xb97bda);},'WhgrS':function(_0x1d6beb,_0x2468c1){return _0x1d6beb!==_0x2468c1;},'FStlc':_0x5752fd(0x10e),'fEsHC':'ikAfZ','gYwEF':function(_0x2450dd){return _0x2450dd();},'PQHoM':_0x5752fd(0x125),'UGaMj':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','sFCmO':_0x5752fd(0x118),'HOfYJ':function(_0x4056f8,_0x409643,_0x1d68d8,_0x4bf403,_0x49684b,_0x5d0fe0,_0x389898){return _0x4056f8(_0x409643,_0x1d68d8,_0x4bf403,_0x49684b,_0x5d0fe0,_0x389898);},'SYNIU':_0x5752fd(0x14d)};try{global_registry['requestId']=_0x9e5781[_0x5752fd(0x127)](uuidv4),_0x9e5781[_0x5752fd(0x162)](sendInstrumentationEvent,_0x3e1ccf,_0x9e5781['HHeEg'],messageTypes['INFO'],null,null,_0x3e1ccf);const _0x5dabd9=_0x9e5781[_0x5752fd(0x137)](getDirForConfig);!fs[_0x5752fd(0x11e)](_0x5dabd9)&&(_0x9e5781[_0x5752fd(0x146)](_0x9e5781[_0x5752fd(0x159)],_0x9e5781['uEoyL'])?fs['mkdirSync'](_0x5dabd9):_0x49b08f[_0x5752fd(0x12b)](_0x118b45));let _0x259dce,_0x5d2ec6;process[_0x5752fd(0x12f)][_0x5752fd(0x149)]&&(_0x9e5781[_0x5752fd(0x146)](_0x9e5781[_0x5752fd(0x156)],_0x9e5781[_0x5752fd(0x156)])?_0x259dce=process[_0x5752fd(0x12f)][_0x5752fd(0x149)]:_0x2e0f17=_0x513d14[_0x5752fd(0x12f)][_0x5752fd(0x142)]);if(process[_0x5752fd(0x12f)][_0x5752fd(0x142)]){if(_0x9e5781[_0x5752fd(0x111)](_0x9e5781[_0x5752fd(0x110)],_0x9e5781['mmqtI'])){let _0x10c2f8={};const _0x573cad=_0x9e5781[_0x5752fd(0x137)](_0xcb30d0);_0x3ef36d[_0x5752fd(0x11e)](_0x573cad)&&(_0x10c2f8=_0x1edc2f[_0x5752fd(0x126)](_0xc374fc[_0x5752fd(0x164)](_0x573cad,_0x9e5781['yHmjv'])));const _0x33a84c={};_0x33a84c[_0x5752fd(0x139)]=_0x43e91f,_0x33a84c[_0x5752fd(0x15b)]=_0x12f013,_0x10c2f8['Browserstack']=_0x33a84c,_0x458810['writeFileSync'](_0x573cad,_0x452c35[_0x5752fd(0x14f)](_0x10c2f8)),_0x21b7fa[_0x5752fd(0x15d)](0x0);}else _0x5d2ec6=process[_0x5752fd(0x12f)]['BROWSERSTACK_ACCESS_KEY'];}_0x3e1ccf['bstackUsername']&&(_0x9e5781[_0x5752fd(0x134)](_0x9e5781['jngFZ'],_0x9e5781[_0x5752fd(0x15f)])?_0xe2e089=_0x2b3a20[_0x5752fd(0x165)]:_0x259dce=_0x3e1ccf[_0x5752fd(0x13d)]);_0x3e1ccf[_0x5752fd(0x165)]&&(_0x9e5781[_0x5752fd(0x111)](_0x9e5781['sgSmb'],_0x9e5781[_0x5752fd(0x11b)])?_0x5d2ec6=_0x3e1ccf['bstackAccesskey']:_0x2fc3d1=!![]);if(_0x9e5781[_0x5752fd(0x146)](_0x259dce,undefined)||_0x9e5781['Fysrg'](_0x5d2ec6,undefined)){if(_0x9e5781[_0x5752fd(0x111)](_0x9e5781[_0x5752fd(0x145)],_0x9e5781[_0x5752fd(0x145)])){const _0x59f075={};_0x59f075[_0x5752fd(0x12d)]=_0x9e5781['gyhFm'],_0x59f075[_0x5752fd(0x12e)]=_0x9e5781[_0x5752fd(0x151)];const _0x5d3872={};_0x5d3872[_0x5752fd(0x12d)]=_0x9e5781['DgECo'],_0x5d3872[_0x5752fd(0x12e)]=_0x9e5781['OhaGY'];const _0x19492b={};return _0x19492b['bstack-username']=_0x59f075,_0x19492b[_0x5752fd(0x160)]=_0x5d3872,_0x189b54['usage'](_0x29a795[_0x5752fd(0x11a)])[_0x5752fd(0x13f)](_0x5e5e22)[_0x5752fd(0x15a)](_0x19492b)[_0x5752fd(0x12a)]()[_0x5752fd(0x113)]()[_0x5752fd(0x141)](_0x9e5781[_0x5752fd(0x140)])[_0x5752fd(0x11f)];}else{logger[_0x5752fd(0x144)](_0x9e5781['vnUXQ']);const [_0x43dd32,_0x5bec6e]=await _0x9e5781['lOCtS'](inputBstackKeys);_0x259dce=_0x43dd32,_0x5d2ec6=_0x5bec6e;}}let _0x41e855=![];const _0x313cda=_0x5752fd(0x116)+_0x259dce+':'+_0x5d2ec6+'@'+BS_API_URL+_0x5752fd(0x128),_0xae2423={'method':_0x9e5781['moQha'],'headers':_0x9e5781[_0x5752fd(0x143)](getAuthHeader,_0x259dce,_0x5d2ec6),'throwHttpErrors':![]},_0x4cbb64=await _0x9e5781[_0x5752fd(0x143)](got,_0x313cda,_0xae2423);_0x9e5781[_0x5752fd(0x13b)](_0x4cbb64,null)&&_0x9e5781[_0x5752fd(0x134)](_0x4cbb64,undefined)&&_0x9e5781[_0x5752fd(0x146)](_0x4cbb64['statusCode'],0xc8)&&(_0x9e5781[_0x5752fd(0x146)](_0x9e5781[_0x5752fd(0x117)],_0x9e5781['FStlc'])?_0x41e855=!![]:_0x2ecbdb=_0x4361a2[_0x5752fd(0x12f)][_0x5752fd(0x149)]);if(_0x41e855){if(_0x9e5781[_0x5752fd(0x146)](_0x9e5781['fEsHC'],_0x9e5781[_0x5752fd(0x132)])){let _0x1c93f5={};const _0x4b22f6=_0x9e5781[_0x5752fd(0x123)](getCredentialsPath);fs[_0x5752fd(0x11e)](_0x4b22f6)&&(_0x9e5781[_0x5752fd(0x146)](_0x9e5781[_0x5752fd(0x11d)],_0x9e5781['PQHoM'])?_0x1c93f5=JSON[_0x5752fd(0x126)](fs[_0x5752fd(0x164)](_0x4b22f6,_0x9e5781[_0x5752fd(0x166)])):_0x447484=_0x2257e2[_0x5752fd(0x126)](_0x2824f7[_0x5752fd(0x164)](_0x3357c8,_0x9e5781[_0x5752fd(0x166)])));const _0x5d918c={};_0x5d918c[_0x5752fd(0x139)]=_0x259dce,_0x5d918c[_0x5752fd(0x15b)]=_0x5d2ec6,_0x1c93f5['Browserstack']=_0x5d918c,fs['writeFileSync'](_0x4b22f6,JSON['stringify'](_0x1c93f5)),process[_0x5752fd(0x15d)](0x0);}else _0x3fdef0=_0x37d845[_0x5752fd(0x13d)];}else logger[_0x5752fd(0x152)](_0x9e5781['UGaMj']),await _0x9e5781['dSVbA'](sendInstrumentationEvent,_0x3e1ccf,_0x9e5781['HHeEg'],messageTypes[_0x5752fd(0x130)],_0x9e5781[_0x5752fd(0x129)],null,_0x3e1ccf),process['exit'](0x1);}catch(_0x599239){logger['error'](_0x599239['stack']),await _0x9e5781[_0x5752fd(0x114)](sendInstrumentationEvent,_0x3e1ccf,_0x9e5781[_0x5752fd(0x147)],messageTypes[_0x5752fd(0x130)],_0x9e5781[_0x5752fd(0x133)],_0x599239,_0x3e1ccf),process[_0x5752fd(0x15d)](0x1);}};function a12_0x2bf1(){const _0x34cc64=['anYyT','../utils/userInput','Mfimv','string','395106znysJX','uEoyL','options','password','got','exit','12393vchzai','jngFZ','bstack-accesskey','HKqnt','dSVbA','hbroH','readFileSync','bstackAccesskey','yHmjv','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','HBWIL','util','mmqtI','kzKTs','../utils/utilityMethods','strict','HOfYJ','uuid','https://','FStlc','wrong-creds','pjUCX','init','Onesd','KoRIu','PQHoM','existsSync','argv','cQyNb','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','cqUux','gYwEF','654qtgFAH','sfejK','parse','jaLhT','/automate/plan.json','sFCmO','recommendCommands','mkdirSync','47010BzWOxi','description','type','env','ERROR','9sPNQNp','fEsHC','SYNIU','EiOcX','../utils/instrumentationUtils','handler','PRExN','946673LUpTgR','username','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','WhgrS','2169652tQyuOU','bstackUsername','command','epilogue','RGSHg','help','BROWSERSTACK_ACCESS_KEY','ozQzg','debug','DVJmj','Fysrg','HHeEg','usage','BROWSERSTACK_USERNAME','builder','6502342JknUow','GET','unknown-error','PXqKN','stringify','../config/constants','OhaGY','error','8298840lshaEL'];a12_0x2bf1=function(){return _0x34cc64;};return a12_0x2bf1();}
@@ -1 +1 @@
1
- function a13_0x2ca3(){const _0x2a8355=['21458SGiinc','handler','usage','126269ktutKC','DhPNM','help','list_commands','2096072rKWsBQ','2453556cpEOmL','55YDsjGp','493503egQDwK','../config/constants','88716fSkyGN','mdMPt','epilogue','30HMLLLd','builder','240mRTQWI','29oUZtRP','root','4mwZyjB','List\x20down\x20the\x20Grid\x20resources.','list','348930dzVOfs','desc','strict','demandCommand','18oStxAc'];a13_0x2ca3=function(){return _0x2a8355;};return a13_0x2ca3();}function a13_0x2a5f(_0x6d8716,_0xc8463e){const _0x2ca3f1=a13_0x2ca3();return a13_0x2a5f=function(_0x2a5ffd,_0x46c6e9){_0x2a5ffd=_0x2a5ffd-0x1d5;let _0x8e7bb9=_0x2ca3f1[_0x2a5ffd];return _0x8e7bb9;},a13_0x2a5f(_0x6d8716,_0xc8463e);}const a13_0x3890ac=a13_0x2a5f;(function(_0xf59f91,_0x43358d){const _0x5ad4ad=a13_0x2a5f,_0x3a00e1=_0xf59f91();while(!![]){try{const _0x155213=-parseInt(_0x5ad4ad(0x1e3))/0x1*(parseInt(_0x5ad4ad(0x1ed))/0x2)+-parseInt(_0x5ad4ad(0x1db))/0x3*(-parseInt(_0x5ad4ad(0x1e5))/0x4)+parseInt(_0x5ad4ad(0x1e0))/0x5*(-parseInt(_0x5ad4ad(0x1dd))/0x6)+parseInt(_0x5ad4ad(0x1d9))/0x7+parseInt(_0x5ad4ad(0x1d8))/0x8*(parseInt(_0x5ad4ad(0x1ec))/0x9)+parseInt(_0x5ad4ad(0x1e8))/0xa*(-parseInt(_0x5ad4ad(0x1da))/0xb)+parseInt(_0x5ad4ad(0x1e2))/0xc*(-parseInt(_0x5ad4ad(0x1f0))/0xd);if(_0x155213===_0x43358d)break;else _0x3a00e1['push'](_0x3a00e1['shift']());}catch(_0x1ccb23){_0x3a00e1['push'](_0x3a00e1['shift']());}}}(a13_0x2ca3,0x4206d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3890ac(0x1dc));exports['command']=a13_0x3890ac(0x1e7),exports[a13_0x3890ac(0x1e9)]=a13_0x3890ac(0x1e6),exports[a13_0x3890ac(0x1e1)]=function(_0x3f64f1){const _0x4352a4=a13_0x3890ac,_0x5b318b={};_0x5b318b[_0x4352a4(0x1de)]=_0x4352a4(0x1d7),_0x5b318b[_0x4352a4(0x1d5)]='help';const _0x4f31d1=_0x5b318b;return _0x3f64f1['commandDir'](_0x4f31d1[_0x4352a4(0x1de)])[_0x4352a4(0x1eb)]()[_0x4352a4(0x1ef)](HELP_HEADER_MESSAGE['list'][_0x4352a4(0x1e4)])[_0x4352a4(0x1df)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x4352a4(0x1ea)]()[_0x4352a4(0x1d6)](_0x4f31d1['DhPNM']);},exports[a13_0x3890ac(0x1ee)]=function(_0x4f3392){};
1
+ function a13_0x3767(_0x13a72d,_0x3c4d9c){const _0xfc06a4=a13_0xfc06();return a13_0x3767=function(_0x376731,_0x43159d){_0x376731=_0x376731-0x127;let _0x523a5b=_0xfc06a4[_0x376731];return _0x523a5b;},a13_0x3767(_0x13a72d,_0x3c4d9c);}const a13_0x4cd5fb=a13_0x3767;(function(_0x326a61,_0x53780d){const _0x330e2c=a13_0x3767,_0x58af88=_0x326a61();while(!![]){try{const _0x497935=parseInt(_0x330e2c(0x132))/0x1*(parseInt(_0x330e2c(0x12e))/0x2)+-parseInt(_0x330e2c(0x139))/0x3*(parseInt(_0x330e2c(0x13a))/0x4)+parseInt(_0x330e2c(0x13d))/0x5*(-parseInt(_0x330e2c(0x137))/0x6)+parseInt(_0x330e2c(0x127))/0x7+parseInt(_0x330e2c(0x12a))/0x8+parseInt(_0x330e2c(0x135))/0x9*(-parseInt(_0x330e2c(0x136))/0xa)+-parseInt(_0x330e2c(0x13e))/0xb;if(_0x497935===_0x53780d)break;else _0x58af88['push'](_0x58af88['shift']());}catch(_0x42d0d7){_0x58af88['push'](_0x58af88['shift']());}}}(a13_0xfc06,0x26384));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x4cd5fb(0x12c));function a13_0xfc06(){const _0x4fd04e=['builder','help','2245112UwNrvv','epilogue','../config/constants','List\x20down\x20the\x20Grid\x20resources.','2aFmIAP','list_commands','desc','root','71147lHfxlo','FcTlE','demandCommand','1917bTJKsf','4390hxAaMh','6aWreQU','commandDir','21333llCZDa','100ROkydW','recommendCommands','DsDsH','395765WqmoZh','673057IUIVVA','list','strict','1514688SzgPwd'];a13_0xfc06=function(){return _0x4fd04e;};return a13_0xfc06();}exports['command']=a13_0x4cd5fb(0x13f),exports[a13_0x4cd5fb(0x130)]=a13_0x4cd5fb(0x12d),exports[a13_0x4cd5fb(0x128)]=function(_0x290d8d){const _0x1f2ba0=a13_0x4cd5fb,_0x22346c={};_0x22346c['FcTlE']=_0x1f2ba0(0x12f),_0x22346c[_0x1f2ba0(0x13c)]=_0x1f2ba0(0x129);const _0x468c31=_0x22346c;return _0x290d8d[_0x1f2ba0(0x138)](_0x468c31[_0x1f2ba0(0x133)])[_0x1f2ba0(0x134)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x1f2ba0(0x131)])[_0x1f2ba0(0x12b)](HELP_FOOTER_MESSAGE)[_0x1f2ba0(0x13b)]()[_0x1f2ba0(0x140)]()[_0x1f2ba0(0x129)](_0x468c31[_0x1f2ba0(0x13c)]);},exports['handler']=function(_0x4dede9){};
@@ -1 +1 @@
1
- const a14_0x57e8df=a14_0x578f;(function(_0xad1ee2,_0x4e720e){const _0x4b5746=a14_0x578f,_0x8bfe88=_0xad1ee2();while(!![]){try{const _0x241ff=-parseInt(_0x4b5746(0x8e))/0x1+-parseInt(_0x4b5746(0x92))/0x2+parseInt(_0x4b5746(0xd4))/0x3*(-parseInt(_0x4b5746(0xaf))/0x4)+parseInt(_0x4b5746(0x9a))/0x5+parseInt(_0x4b5746(0x8f))/0x6+-parseInt(_0x4b5746(0x91))/0x7+parseInt(_0x4b5746(0xd3))/0x8;if(_0x241ff===_0x4e720e)break;else _0x8bfe88['push'](_0x8bfe88['shift']());}catch(_0x4e0226){_0x8bfe88['push'](_0x8bfe88['shift']());}}}(a14_0x2a2a,0xd0c31));function a14_0x578f(_0x20cf96,_0x3cd2b0){const _0x2a2aaa=a14_0x2a2a();return a14_0x578f=function(_0x578f79,_0xab6fd2){_0x578f79=_0x578f79-0x83;let _0x9d6c3f=_0x2a2aaa[_0x578f79];return _0x9d6c3f;},a14_0x578f(_0x20cf96,_0x3cd2b0);}function a14_0x2a2a(){const _0x51d805=['argv','epilogue','GET','error','stringify','spZTx','list-grid-profiles-called','tIKwd','GmpdC','boolean','region','qLTKi','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','all-grid-profiles','kdunM','push','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','5914424aWmGea','XBeBD','jcWMo','type','/packages/cli/get-grid-profiles','BDHim','srTSM','name','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','HhqMl','unknown-error','INFO','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','log','statusCode','parse','lRFEo','kVDSw','options','password','cloud-provider','usage','IkWsB','desc','OTwWQ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','https://','init-not-called','forEach','ERROR','builder','exit','/packages/cli/get-all-grid-profiles','../../config/constants','gridProfile','36664296EhLUUW','3mwzGgQ','NHLkL','bstackAccesskey','description','help','list','qwcYj','table','Browserstack','rzqsD','got','server-error','../../utils/utilityMethods','1509270GQTZCU','8673378IJMPLh','Sidgj','9689414KAcbFF','1757858TKeGBq','IaKmP','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','username','jxldc','mbFOZ','requestId','grid-profiles','387480rPSgev','RopvY','concurrency'];a14_0x2a2a=function(){return _0x51d805;};return a14_0x2a2a();}const fs=require('fs'),got=require(a14_0x57e8df(0x8b)),{table}=require(a14_0x57e8df(0x88)),{v4:uuidv4}=require(a14_0x57e8df(0xae)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x57e8df(0xd1)),{getCredentialsPath,getAuthHeader}=require(a14_0x57e8df(0x8d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a14_0x57e8df(0x99),exports[a14_0x57e8df(0xc6)]=a14_0x57e8df(0xbb),exports[a14_0x57e8df(0xce)]=function(_0x2009b9){const _0x52687c=a14_0x57e8df,_0x1df3c1={};_0x1df3c1['IaKmP']=_0x52687c(0x94),_0x1df3c1[_0x52687c(0xb5)]=_0x52687c(0xa6),_0x1df3c1[_0x52687c(0xa2)]=_0x52687c(0x85);const _0x544e75=_0x1df3c1,_0x1abbcd={};_0x1abbcd[_0x52687c(0x84)]=_0x544e75[_0x52687c(0x93)],_0x1abbcd[_0x52687c(0xb2)]=_0x544e75[_0x52687c(0xb5)];const _0x691807={};return _0x691807[_0x52687c(0xaa)]=_0x1abbcd,_0x2009b9[_0x52687c(0xc4)](HELP_HEADER_MESSAGE[_0x52687c(0x86)][_0x52687c(0xd2)])[_0x52687c(0x9e)](HELP_FOOTER_MESSAGE)[_0x52687c(0xc1)](_0x691807)['help'](_0x544e75['spZTx'])[_0x52687c(0x9d)];},exports['handler']=async function(_0x2b3f33){const _0x8c4204=a14_0x57e8df,_0xc69370={'rzqsD':function(_0x797d26){return _0x797d26();},'hWJzT':_0x8c4204(0xa9),'kVDSw':function(_0xfdacdc,_0x57a918,_0x270839,_0x29841b,_0x1972a0,_0xb71f84,_0x168995){return _0xfdacdc(_0x57a918,_0x270839,_0x29841b,_0x1972a0,_0xb71f84,_0x168995);},'XBeBD':_0x8c4204(0xa3),'tIKwd':_0x8c4204(0xcb),'NHLkL':_0x8c4204(0x9f),'OTwWQ':function(_0x13a9c3,_0x4899d8,_0x5f1cc4){return _0x13a9c3(_0x4899d8,_0x5f1cc4);},'qwcYj':function(_0x511ea3,_0x592572,_0x31f2c8){return _0x511ea3(_0x592572,_0x31f2c8);},'jcWMo':function(_0x51ac0e,_0x190f26){return _0x51ac0e!==_0x190f26;},'jxldc':function(_0x444c51,_0x189783){return _0x444c51===_0x189783;},'mbFOZ':_0x8c4204(0xb7),'GmpdC':'grid-profile-name','KIzao':_0x8c4204(0xc3),'kdunM':_0x8c4204(0xa7),'lRFEo':_0x8c4204(0x9c),'BDHim':function(_0x8953ff,_0x582eed){return _0x8953ff(_0x582eed);},'RopvY':function(_0x4bc89e,_0x2a254b,_0x1e4e12,_0x1a9bbd,_0x519b7f,_0x45c987,_0x4d1a7f){return _0x4bc89e(_0x2a254b,_0x1e4e12,_0x1a9bbd,_0x519b7f,_0x45c987,_0x4d1a7f);},'HhqMl':'unauthorised','IkWsB':function(_0x148d34,_0x4e6aa3,_0x3a0da0,_0x127d8e,_0x3eae76,_0x48f202,_0x2eb479){return _0x148d34(_0x4e6aa3,_0x3a0da0,_0x127d8e,_0x3eae76,_0x48f202,_0x2eb479);},'qLTKi':_0x8c4204(0x8c),'Sidgj':_0x8c4204(0xb9)};try{global_registry[_0x8c4204(0x98)]=_0xc69370[_0x8c4204(0x8a)](uuidv4);let _0x2a19a4='https://'+AG_API_URL+_0x8c4204(0xb3);_0x2b3f33['allGridProfiles']&&(_0x2a19a4=_0x8c4204(0xca)+AG_API_URL+_0x8c4204(0xd0));!fs[_0x8c4204(0xc9)](_0xc69370[_0x8c4204(0x8a)](getCredentialsPath))&&(console[_0x8c4204(0xa0)](_0xc69370['hWJzT']),await _0xc69370[_0x8c4204(0xc0)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xa4)],null,_0x2b3f33),process[_0x8c4204(0xcf)](0x1));const _0x47f9ba=JSON[_0x8c4204(0xbe)](fs['readFileSync'](_0xc69370['rzqsD'](getCredentialsPath))),_0x308208={'method':_0xc69370[_0x8c4204(0xd5)],'headers':_0xc69370[_0x8c4204(0xc7)](getAuthHeader,_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0x95)],_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0xc2)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0x95)],global_registry[_0x8c4204(0x83)]=_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0xc2)],_0xc69370[_0x8c4204(0xc0)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xba)],null,null,_0x2b3f33);const _0x42b40b=await _0xc69370[_0x8c4204(0x87)](got,_0x2a19a4,_0x308208);if(_0xc69370['jcWMo'](_0x42b40b,null)&&_0xc69370[_0x8c4204(0xb1)](_0x42b40b,undefined)&&_0xc69370['jxldc'](_0x42b40b[_0x8c4204(0xbd)],0xc8)){const _0x5512f5=JSON[_0x8c4204(0xbe)](_0x42b40b['body']);console[_0x8c4204(0xbc)](_0xc69370[_0x8c4204(0x97)]);const _0xb50ed7=[];_0xb50ed7[_0x8c4204(0xac)]([_0xc69370[_0x8c4204(0xa5)],_0xc69370['KIzao'],_0xc69370[_0x8c4204(0xab)],_0xc69370[_0x8c4204(0xbf)]]),_0x5512f5[_0x8c4204(0xcc)](_0x32ed2f=>{const _0x3c564d=_0x8c4204;_0xb50ed7[_0x3c564d(0xac)]([_0x32ed2f[_0x3c564d(0xb6)],_0x32ed2f['cloudProvider'],_0x32ed2f['region'],_0x32ed2f[_0x3c564d(0x9c)]]);}),console[_0x8c4204(0xbc)](_0xc69370[_0x8c4204(0xb4)](table,_0xb50ed7)),process['exit'](0x0);}_0xc69370[_0x8c4204(0x96)](_0x42b40b['statusCode'],0x191)&&(console[_0x8c4204(0xa0)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0xc69370[_0x8c4204(0x9b)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xb8)],null,_0x2b3f33),process['exit'](0x1)),console[_0x8c4204(0xa0)](_0x8c4204(0xc8)+JSON[_0x8c4204(0xa1)](_0x42b40b)),await _0xc69370[_0x8c4204(0xc5)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xa8)],_0x42b40b,_0x2b3f33),process[_0x8c4204(0xcf)](0x1);}catch(_0x3acdc1){console[_0x8c4204(0xa0)](_0x8c4204(0xad)+_0x3acdc1['stack']),await _0xc69370[_0x8c4204(0xc5)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0x90)],_0x3acdc1,_0x2b3f33),process[_0x8c4204(0xcf)](0x1);}};
1
+ const a14_0x7eb9a7=a14_0x36bd;(function(_0x5cdb5c,_0x2e731a){const _0x350c1c=a14_0x36bd,_0x1570a9=_0x5cdb5c();while(!![]){try{const _0x346337=parseInt(_0x350c1c(0x111))/0x1*(parseInt(_0x350c1c(0x130))/0x2)+-parseInt(_0x350c1c(0x138))/0x3*(parseInt(_0x350c1c(0xf5))/0x4)+parseInt(_0x350c1c(0x114))/0x5*(parseInt(_0x350c1c(0x133))/0x6)+-parseInt(_0x350c1c(0xff))/0x7*(-parseInt(_0x350c1c(0x12e))/0x8)+-parseInt(_0x350c1c(0x135))/0x9+-parseInt(_0x350c1c(0x113))/0xa*(-parseInt(_0x350c1c(0x11e))/0xb)+parseInt(_0x350c1c(0xf0))/0xc*(-parseInt(_0x350c1c(0x120))/0xd);if(_0x346337===_0x2e731a)break;else _0x1570a9['push'](_0x1570a9['shift']());}catch(_0x3d707b){_0x1570a9['push'](_0x1570a9['shift']());}}}(a14_0x1f69,0x382e5));function a14_0x36bd(_0x340cd8,_0x7edae5){const _0x1f6981=a14_0x1f69();return a14_0x36bd=function(_0x36bd8b,_0x3184bb){_0x36bd8b=_0x36bd8b-0xec;let _0x3800e7=_0x1f6981[_0x36bd8b];return _0x3800e7;},a14_0x36bd(_0x340cd8,_0x7edae5);}function a14_0x1f69(){const _0x83835e=['unknown-error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vfYNY','avkdq','10871ZjqDDm','ERROR','110qTXRGP','75PDnvTV','error','/packages/cli/get-grid-profiles','epilogue','parse','INFO','NFMur','https://','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','uuid','287518PXpngQ','ZzjiK','1222kUoPoo','Browserstack','/packages/cli/get-all-grid-profiles','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','DMqnW','kxirM','bstackAccesskey','usage','desc','exit','name','ByxKI','../../config/constants','viqbZ','368LTZerR','grid-profile-name','72caeSlT','gLBWu','gyIlR','31026wfSAEc','unauthorised','2733228WgTqfK','table','body','3xkHsns','puOyK','ybYHx','Failed\x20to\x20list\x20resources!\x20Error:\x20','qAxdc','mduEb','bstackUsername','NTozm','UqUin','concurrency','ZUSfy','rcMhn','57684qWcvXJ','region','options','GET','forEach','317360KhXsPE','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','help','cloudProvider','existsSync','all-grid-profiles','stack','got','log','../../utils/instrumentationUtils','46956NMFAfC','statusCode','password','RMzgD','username','readFileSync','wSWzy','requestId','cldaN','push','handler','list','yiPuU'];a14_0x1f69=function(){return _0x83835e;};return a14_0x1f69();}const fs=require('fs'),got=require(a14_0x7eb9a7(0xfc)),{table}=require(a14_0x7eb9a7(0x136)),{v4:uuidv4}=require(a14_0x7eb9a7(0x11d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x7eb9a7(0x12c)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x7eb9a7(0xfe));exports['command']='grid-profiles',exports[a14_0x7eb9a7(0x128)]=a14_0x7eb9a7(0x11c),exports['builder']=function(_0x471dc0){const _0x24b4b4=a14_0x7eb9a7,_0x58fcc8={};_0x58fcc8[_0x24b4b4(0x124)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x58fcc8['PLsQg']='boolean',_0x58fcc8[_0x24b4b4(0x139)]=_0x24b4b4(0xf7);const _0x687fa5=_0x58fcc8,_0x454e76={};_0x454e76['description']=_0x687fa5[_0x24b4b4(0x124)],_0x454e76['type']=_0x687fa5['PLsQg'];const _0x277fa1={};return _0x277fa1[_0x24b4b4(0xfa)]=_0x454e76,_0x471dc0[_0x24b4b4(0x127)](HELP_HEADER_MESSAGE[_0x24b4b4(0x10a)]['gridProfile'])[_0x24b4b4(0x117)](HELP_FOOTER_MESSAGE)[_0x24b4b4(0xf2)](_0x277fa1)['help'](_0x687fa5[_0x24b4b4(0x139)])['argv'];},exports[a14_0x7eb9a7(0x109)]=async function(_0x3bc753){const _0x1ca1b4=a14_0x7eb9a7,_0x277a26={'rcMhn':function(_0x1df0e5){return _0x1df0e5();},'UqUin':_0x1ca1b4(0x10e),'viqbZ':function(_0x3ea61a,_0x1385be,_0x4de1d4,_0x786877,_0x40eda6,_0x4f2917,_0x21c454){return _0x3ea61a(_0x1385be,_0x4de1d4,_0x786877,_0x40eda6,_0x4f2917,_0x21c454);},'qAxdc':'list-grid-profiles-called','cldaN':'init-not-called','mduEb':function(_0x16dbda){return _0x16dbda();},'wSWzy':_0x1ca1b4(0xf3),'ZUSfy':function(_0xf9ac7c,_0x212655,_0xafde38){return _0xf9ac7c(_0x212655,_0xafde38);},'RMzgD':function(_0x568525,_0x46dd15){return _0x568525!==_0x46dd15;},'NTozm':function(_0x4d060d,_0x59b612){return _0x4d060d!==_0x59b612;},'gLBWu':function(_0x5d7659,_0x481cb6){return _0x5d7659===_0x481cb6;},'ZzjiK':_0x1ca1b4(0x123),'NFMur':_0x1ca1b4(0x12f),'ByxKI':'cloud-provider','avkdq':_0x1ca1b4(0xf1),'kxirM':_0x1ca1b4(0xed),'vfYNY':function(_0x20b0af,_0x3b128a){return _0x20b0af(_0x3b128a);},'gyIlR':function(_0x5d2165,_0x19bd9a){return _0x5d2165===_0x19bd9a;},'yiPuU':_0x1ca1b4(0x134),'elgpL':function(_0xff4142,_0x95256d,_0x2351e1,_0xfed30f,_0x6122e8,_0x15321a,_0x41bb6f){return _0xff4142(_0x95256d,_0x2351e1,_0xfed30f,_0x6122e8,_0x15321a,_0x41bb6f);},'xjXlZ':'server-error','VOxvX':function(_0x4aed8c,_0x30796d,_0x3ece4b,_0x575b98,_0x19d833,_0x2c3df0,_0x572887){return _0x4aed8c(_0x30796d,_0x3ece4b,_0x575b98,_0x19d833,_0x2c3df0,_0x572887);},'ybYHx':_0x1ca1b4(0x10c)};try{global_registry[_0x1ca1b4(0x106)]=_0x277a26[_0x1ca1b4(0xef)](uuidv4);let _0x481eaa=_0x1ca1b4(0x11b)+AG_API_URL+_0x1ca1b4(0x116);_0x3bc753['allGridProfiles']&&(_0x481eaa=_0x1ca1b4(0x11b)+AG_API_URL+_0x1ca1b4(0x122));!fs[_0x1ca1b4(0xf9)](_0x277a26[_0x1ca1b4(0xef)](getCredentialsPath))&&(console[_0x1ca1b4(0x115)](_0x277a26[_0x1ca1b4(0xec)]),await _0x277a26[_0x1ca1b4(0x12d)](sendInstrumentationEvent,_0x3bc753,_0x277a26[_0x1ca1b4(0x13c)],messageTypes[_0x1ca1b4(0x112)],_0x277a26[_0x1ca1b4(0x107)],null,_0x3bc753),process[_0x1ca1b4(0x129)](0x1));const _0xb67374=JSON[_0x1ca1b4(0x118)](fs[_0x1ca1b4(0x104)](_0x277a26[_0x1ca1b4(0x13d)](getCredentialsPath))),_0x2ab25d={'method':_0x277a26[_0x1ca1b4(0x105)],'headers':_0x277a26['ZUSfy'](getAuthHeader,_0xb67374[_0x1ca1b4(0x121)][_0x1ca1b4(0x103)],_0xb67374[_0x1ca1b4(0x121)][_0x1ca1b4(0x101)]),'throwHttpErrors':![]};global_registry[_0x1ca1b4(0x13e)]=_0xb67374[_0x1ca1b4(0x121)][_0x1ca1b4(0x103)],global_registry[_0x1ca1b4(0x126)]=_0xb67374[_0x1ca1b4(0x121)][_0x1ca1b4(0x101)],_0x277a26[_0x1ca1b4(0x12d)](sendInstrumentationEvent,_0x3bc753,_0x277a26[_0x1ca1b4(0x13c)],messageTypes[_0x1ca1b4(0x119)],null,null,_0x3bc753);const _0x53a7b7=await _0x277a26[_0x1ca1b4(0xee)](got,_0x481eaa,_0x2ab25d);if(_0x277a26[_0x1ca1b4(0x102)](_0x53a7b7,null)&&_0x277a26[_0x1ca1b4(0x13f)](_0x53a7b7,undefined)&&_0x277a26[_0x1ca1b4(0x131)](_0x53a7b7[_0x1ca1b4(0x100)],0xc8)){const _0x2cfa82=JSON['parse'](_0x53a7b7[_0x1ca1b4(0x137)]);console['log'](_0x277a26[_0x1ca1b4(0x11f)]);const _0x28b1e3=[];_0x28b1e3[_0x1ca1b4(0x108)]([_0x277a26[_0x1ca1b4(0x11a)],_0x277a26[_0x1ca1b4(0x12b)],_0x277a26[_0x1ca1b4(0x110)],_0x277a26[_0x1ca1b4(0x125)]]),_0x2cfa82[_0x1ca1b4(0xf4)](_0x82f8b0=>{const _0x38945c=_0x1ca1b4;_0x28b1e3[_0x38945c(0x108)]([_0x82f8b0[_0x38945c(0x12a)],_0x82f8b0[_0x38945c(0xf8)],_0x82f8b0[_0x38945c(0xf1)],_0x82f8b0['concurrency']]);}),console[_0x1ca1b4(0xfd)](_0x277a26[_0x1ca1b4(0x10f)](table,_0x28b1e3)),process[_0x1ca1b4(0x129)](0x0);}_0x277a26[_0x1ca1b4(0x132)](_0x53a7b7['statusCode'],0x191)&&(console[_0x1ca1b4(0x115)](_0x1ca1b4(0x10d)),await _0x277a26[_0x1ca1b4(0x12d)](sendInstrumentationEvent,_0x3bc753,_0x277a26['qAxdc'],messageTypes['ERROR'],_0x277a26[_0x1ca1b4(0x10b)],null,_0x3bc753),process[_0x1ca1b4(0x129)](0x1)),console[_0x1ca1b4(0x115)](_0x1ca1b4(0xf6)+JSON['stringify'](_0x53a7b7)),await _0x277a26['elgpL'](sendInstrumentationEvent,_0x3bc753,_0x277a26[_0x1ca1b4(0x13c)],messageTypes['ERROR'],_0x277a26['xjXlZ'],_0x53a7b7,_0x3bc753),process[_0x1ca1b4(0x129)](0x1);}catch(_0xb115c9){console[_0x1ca1b4(0x115)](_0x1ca1b4(0x13b)+_0xb115c9[_0x1ca1b4(0xfb)]),await _0x277a26['VOxvX'](sendInstrumentationEvent,_0x3bc753,_0x277a26[_0x1ca1b4(0x13c)],messageTypes[_0x1ca1b4(0x112)],_0x277a26[_0x1ca1b4(0x13a)],_0xb115c9,_0x3bc753),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a15_0x59a7(_0x3d9e16,_0x3afa94){const _0x58cf26=a15_0x58cf();return a15_0x59a7=function(_0x59a722,_0x402ca9){_0x59a722=_0x59a722-0x8e;let _0x6a4149=_0x58cf26[_0x59a722];return _0x6a4149;},a15_0x59a7(_0x3d9e16,_0x3afa94);}const a15_0xff0d1b=a15_0x59a7;(function(_0x782042,_0x315217){const _0x5f08c8=a15_0x59a7,_0x3a070f=_0x782042();while(!![]){try{const _0x2fb934=parseInt(_0x5f08c8(0xc5))/0x1*(-parseInt(_0x5f08c8(0x96))/0x2)+parseInt(_0x5f08c8(0xda))/0x3*(parseInt(_0x5f08c8(0xa5))/0x4)+parseInt(_0x5f08c8(0xa3))/0x5*(parseInt(_0x5f08c8(0xcd))/0x6)+parseInt(_0x5f08c8(0xd3))/0x7+-parseInt(_0x5f08c8(0xc4))/0x8+-parseInt(_0x5f08c8(0xc3))/0x9*(-parseInt(_0x5f08c8(0xba))/0xa)+-parseInt(_0x5f08c8(0xc6))/0xb;if(_0x2fb934===_0x315217)break;else _0x3a070f['push'](_0x3a070f['shift']());}catch(_0x15c3bd){_0x3a070f['push'](_0x3a070f['shift']());}}}(a15_0x58cf,0x782b0));const fs=require('fs'),got=require('got'),{table}=require(a15_0xff0d1b(0xb5)),{v4:uuidv4}=require(a15_0xff0d1b(0xb1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xff0d1b(0xe3)),{getCredentialsPath,getAuthHeader}=require(a15_0xff0d1b(0xdd)),{sendInstrumentationEvent}=require(a15_0xff0d1b(0xd2));exports[a15_0xff0d1b(0xd9)]=a15_0xff0d1b(0x9f),exports[a15_0xff0d1b(0xc9)]=a15_0xff0d1b(0xb3),exports[a15_0xff0d1b(0xbb)]=function(_0x1554fb){const _0x3c5172=a15_0xff0d1b,_0x1e1e42={};_0x1e1e42['hzYEH']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1e1e42['LcddH']=_0x3c5172(0xb8),_0x1e1e42['IzWJF']='help';const _0x50c5c4=_0x1e1e42,_0x5ada40={};_0x5ada40[_0x3c5172(0xaf)]=_0x50c5c4['hzYEH'],_0x5ada40['type']=_0x50c5c4[_0x3c5172(0xcb)];const _0x59f183={};return _0x59f183[_0x3c5172(0xde)]=_0x5ada40,_0x1554fb[_0x3c5172(0xe1)](HELP_HEADER_MESSAGE[_0x3c5172(0x9e)]['grid'])[_0x3c5172(0xd4)](HELP_FOOTER_MESSAGE)[_0x3c5172(0xb0)](_0x59f183)[_0x3c5172(0xa4)](_0x50c5c4[_0x3c5172(0xad)])[_0x3c5172(0xd6)];},exports[a15_0xff0d1b(0xb9)]=async function(_0x54e646){const _0x4afa89=a15_0xff0d1b,_0x37bcc1={'fngCj':function(_0x51ded5){return _0x51ded5();},'Tnwgb':function(_0x2bd659){return _0x2bd659();},'VCmbu':_0x4afa89(0xe0),'xoEnv':function(_0x546c4d,_0x59044a,_0x53b778,_0x277bf6,_0x1729ab,_0xe06f26,_0x4d33a4){return _0x546c4d(_0x59044a,_0x53b778,_0x277bf6,_0x1729ab,_0xe06f26,_0x4d33a4);},'CBRdq':'list-grids-called','TVIGo':_0x4afa89(0x95),'ROlaX':function(_0x2d574b){return _0x2d574b();},'GUjzi':_0x4afa89(0xb6),'PyLID':function(_0x3c00bf,_0x1d7659,_0x22386e){return _0x3c00bf(_0x1d7659,_0x22386e);},'RAgzV':function(_0x4052af,_0x58c66b){return _0x4052af!==_0x58c66b;},'pUUGp':function(_0xe8fe7e,_0x2882a8){return _0xe8fe7e!==_0x2882a8;},'AczQR':function(_0x206fe3,_0x206977){return _0x206fe3===_0x206977;},'ZQdJS':_0x4afa89(0xa8),'ZyFUg':_0x4afa89(0xa6),'TrZat':'grid-name','oRquX':_0x4afa89(0x91),'eDupQ':_0x4afa89(0xc8),'AbnOT':_0x4afa89(0x98),'KrLZr':'cluster-name','wlkcA':function(_0x4e1524,_0x385079){return _0x4e1524(_0x385079);},'HKrvr':'unauthorised','MsCkT':_0x4afa89(0xca),'cnFeg':'unknown-error'};try{global_registry[_0x4afa89(0xe2)]=_0x37bcc1[_0x4afa89(0x8f)](uuidv4);!fs['existsSync'](_0x37bcc1[_0x4afa89(0xd0)](getCredentialsPath))&&(console[_0x4afa89(0xab)](_0x37bcc1['VCmbu']),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes['ERROR'],_0x37bcc1[_0x4afa89(0xa0)],null,_0x54e646),process[_0x4afa89(0xd1)](0x1));const _0x4cf5a6=JSON[_0x4afa89(0xb2)](fs[_0x4afa89(0xa9)](_0x37bcc1[_0x4afa89(0x9a)](getCredentialsPath)));let _0x3d62ee='https://'+AG_API_URL+_0x4afa89(0xd5);_0x54e646[_0x4afa89(0xcf)]&&(_0x3d62ee=_0x4afa89(0xd7)+AG_API_URL+'/packages/cli/get-all-grids');const _0x2e1b23={'method':_0x37bcc1[_0x4afa89(0x92)],'headers':_0x37bcc1[_0x4afa89(0x8e)](getAuthHeader,_0x4cf5a6['Browserstack'][_0x4afa89(0x97)],_0x4cf5a6[_0x4afa89(0xae)][_0x4afa89(0xb7)]),'throwHttpErrors':![]};global_registry[_0x4afa89(0xbd)]=_0x4cf5a6['Browserstack'][_0x4afa89(0x97)],global_registry[_0x4afa89(0x90)]=_0x4cf5a6['Browserstack'][_0x4afa89(0xb7)],_0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes[_0x4afa89(0xc1)],null,null,_0x54e646);const _0x4eb948=await _0x37bcc1['PyLID'](got,_0x3d62ee,_0x2e1b23);if(_0x37bcc1['RAgzV'](_0x4eb948,null)&&_0x37bcc1[_0x4afa89(0xdb)](_0x4eb948,undefined)&&_0x37bcc1['AczQR'](_0x4eb948[_0x4afa89(0xbf)],0xc8)){const _0x42fbfb=JSON['parse'](_0x4eb948[_0x4afa89(0xc0)]);console[_0x4afa89(0x93)](_0x37bcc1[_0x4afa89(0xc7)]);const _0x4b0c24=[];_0x4b0c24['push']([_0x37bcc1[_0x4afa89(0xbc)],_0x37bcc1['TrZat'],_0x37bcc1[_0x4afa89(0xa1)],_0x37bcc1[_0x4afa89(0xaa)],_0x37bcc1['AbnOT'],_0x37bcc1[_0x4afa89(0xdf)]]),_0x42fbfb['forEach'](_0x2cd190=>{const _0x2fa3c8=_0x4afa89;_0x4b0c24[_0x2fa3c8(0x9b)]([_0x2cd190['id'],_0x2cd190[_0x2fa3c8(0xcc)],_0x2cd190[_0x2fa3c8(0x91)],_0x2cd190[_0x2fa3c8(0xc8)],_0x2cd190['queued'],_0x2cd190[_0x2fa3c8(0x9c)]]);}),console[_0x4afa89(0x93)](_0x37bcc1[_0x4afa89(0xdc)](table,_0x4b0c24)),process['exit'](0x0);}_0x37bcc1[_0x4afa89(0xa2)](_0x4eb948[_0x4afa89(0xbf)],0x191)&&(console[_0x4afa89(0xab)](_0x4afa89(0xb4)),await _0x37bcc1['xoEnv'](sendInstrumentationEvent,_0x54e646,_0x37bcc1['CBRdq'],messageTypes[_0x4afa89(0xbe)],_0x37bcc1['HKrvr'],null,_0x54e646),process[_0x4afa89(0xd1)](0x1)),console[_0x4afa89(0xab)](_0x4afa89(0x99)+JSON[_0x4afa89(0x9d)](_0x4eb948)),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1['CBRdq'],messageTypes[_0x4afa89(0xbe)],_0x37bcc1[_0x4afa89(0xce)],_0x4eb948,_0x54e646),process[_0x4afa89(0xd1)](0x1);}catch(_0xf56202){console['error'](_0x4afa89(0xd8)+_0xf56202[_0x4afa89(0xac)]),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes[_0x4afa89(0xbe)],_0x37bcc1[_0x4afa89(0x94)],_0xf56202,_0x54e646),process[_0x4afa89(0xd1)](0x1);}};function a15_0x58cf(){const _0x2bc9fe=['boolean','handler','1539970TXKfaT','builder','ZyFUg','bstackUsername','ERROR','statusCode','body','INFO','CBRdq','9Leeoqv','4605704QJeZub','9862NLKbHC','1378564MumozF','ZQdJS','running','desc','server-error','LcddH','name','510FdkFCw','MsCkT','allGrids','Tnwgb','exit','../../utils/instrumentationUtils','3068681zdXTJq','epilogue','/packages/cli/get-grids','argv','https://','Failed\x20to\x20list\x20resources!\x20Error:\x20','command','3UmMUkC','pUUGp','wlkcA','../../utils/utilityMethods','all-grids','KrLZr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','usage','requestId','../../config/constants','PyLID','fngCj','bstackAccesskey','status','GUjzi','log','cnFeg','init-not-called','62GRteBZ','username','queued','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ROlaX','push','clusterName','stringify','list','grids','TVIGo','oRquX','AczQR','44040HvInln','help','631628XvSZcL','grid-id','xoEnv','\x0aFound\x20the\x20following\x20grids:\x0a','readFileSync','eDupQ','error','stack','IzWJF','Browserstack','description','options','uuid','parse','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','table','GET','password'];a15_0x58cf=function(){return _0x2bc9fe;};return a15_0x58cf();}
1
+ const a15_0x4ffc32=a15_0x2712;(function(_0x1992ed,_0x4033a3){const _0x3e1690=a15_0x2712,_0x48bfcb=_0x1992ed();while(!![]){try{const _0x41dc3a=parseInt(_0x3e1690(0x1e9))/0x1*(-parseInt(_0x3e1690(0x1fc))/0x2)+parseInt(_0x3e1690(0x1cc))/0x3*(-parseInt(_0x3e1690(0x1e5))/0x4)+parseInt(_0x3e1690(0x20b))/0x5*(parseInt(_0x3e1690(0x1d5))/0x6)+parseInt(_0x3e1690(0x1e6))/0x7+parseInt(_0x3e1690(0x1da))/0x8+parseInt(_0x3e1690(0x21b))/0x9*(-parseInt(_0x3e1690(0x203))/0xa)+parseInt(_0x3e1690(0x1eb))/0xb*(parseInt(_0x3e1690(0x1fe))/0xc);if(_0x41dc3a===_0x4033a3)break;else _0x48bfcb['push'](_0x48bfcb['shift']());}catch(_0x211998){_0x48bfcb['push'](_0x48bfcb['shift']());}}}(a15_0x47c1,0x5d3df));function a15_0x47c1(){const _0x2d29c1=['qZnxA','all-grids','push','123564PpnDXH','../../config/constants','queued','table','/packages/cli/get-grids','651000ivxdCt','password','log','qHvyH','grids','tZjpJ','username','statusCode','lUkaw','tvwht','BnxgK','60NJJDMl','1850919yBwGEX','INFO','description','2078krCXfY','unknown-error','11QEMxRQ','exit','forEach','fKoPz','lwixG','GFlAy','epilogue','list-grids-called','Wuewz','https://','allGrids','\x0aFound\x20the\x20following\x20grids:\x0a','TyVqD','status','OGlJg','qSsWW','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','136GNypXM','ERROR','7238076ccxVCB','body','existsSync','name','/packages/cli/get-all-grids','2594530TRXXCX','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hTuyx','hAsyV','unauthorised','stringify','GET','70fEsNOX','clusterName','server-error','XmMDo','running','error','handler','grid-id','type','Bwbiu','YHVVQ','grid-name','help','usage','juxBP','command','9PsqsCZ','zRFGw','../../utils/instrumentationUtils','Browserstack','../../utils/utilityMethods','rQbhh','Eekot','90921dQYOup','stack','got','eCnEY','desc','UDSLI'];a15_0x47c1=function(){return _0x2d29c1;};return a15_0x47c1();}function a15_0x2712(_0x2998c6,_0x5949b2){const _0x47c1a4=a15_0x47c1();return a15_0x2712=function(_0x27123f,_0x4dee93){_0x27123f=_0x27123f-0x1c7;let _0x401f5a=_0x47c1a4[_0x27123f];return _0x401f5a;},a15_0x2712(_0x2998c6,_0x5949b2);}const fs=require('fs'),got=require(a15_0x4ffc32(0x1ce)),{table}=require(a15_0x4ffc32(0x1d8)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4ffc32(0x1d6)),{getCredentialsPath,getAuthHeader}=require(a15_0x4ffc32(0x1c9)),{sendInstrumentationEvent}=require(a15_0x4ffc32(0x1c7));exports[a15_0x4ffc32(0x21a)]=a15_0x4ffc32(0x1de),exports[a15_0x4ffc32(0x1d0)]=a15_0x4ffc32(0x1fb),exports['builder']=function(_0x528819){const _0x4c256e=a15_0x4ffc32,_0x5d87b7={};_0x5d87b7['Bwbiu']=_0x4c256e(0x204),_0x5d87b7['tZjpJ']='boolean',_0x5d87b7[_0x4c256e(0x1f3)]=_0x4c256e(0x217);const _0x454113=_0x5d87b7,_0x22d085={};_0x22d085[_0x4c256e(0x1e8)]=_0x454113[_0x4c256e(0x214)],_0x22d085[_0x4c256e(0x213)]=_0x454113[_0x4c256e(0x1df)];const _0x1e8670={};return _0x1e8670[_0x4c256e(0x1d3)]=_0x22d085,_0x528819[_0x4c256e(0x218)](HELP_HEADER_MESSAGE['list']['grid'])[_0x4c256e(0x1f1)](HELP_FOOTER_MESSAGE)['options'](_0x1e8670)['help'](_0x454113[_0x4c256e(0x1f3)])['argv'];},exports[a15_0x4ffc32(0x211)]=async function(_0x1aa2df){const _0x203155=a15_0x4ffc32,_0x2b4875={'UDSLI':function(_0xe90b7b){return _0xe90b7b();},'qSsWW':function(_0x55d272){return _0x55d272();},'lwixG':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hTuyx':function(_0xc2dc14,_0x2f47f8,_0x264585,_0x3726a1,_0x11e4b3,_0x583f7b,_0x37a44a){return _0xc2dc14(_0x2f47f8,_0x264585,_0x3726a1,_0x11e4b3,_0x583f7b,_0x37a44a);},'OGlJg':_0x203155(0x1f2),'fKoPz':'init-not-called','hAsyV':function(_0x1c06e7){return _0x1c06e7();},'juxBP':_0x203155(0x20a),'TyVqD':function(_0x448d48,_0x52cabc,_0xc6442){return _0x448d48(_0x52cabc,_0xc6442);},'rQbhh':function(_0xc5a48d,_0x10d847,_0x251644,_0x3ad6af,_0x9ca163,_0x42fd32,_0x146e2e){return _0xc5a48d(_0x10d847,_0x251644,_0x3ad6af,_0x9ca163,_0x42fd32,_0x146e2e);},'tvwht':function(_0xb68fbc,_0x140f5e){return _0xb68fbc!==_0x140f5e;},'lUkaw':function(_0x369370,_0x59f1a8){return _0x369370!==_0x59f1a8;},'eCnEY':function(_0x4f0f8a,_0x37d523){return _0x4f0f8a===_0x37d523;},'YHVVQ':_0x203155(0x1f6),'iGnPq':_0x203155(0x212),'XmMDo':_0x203155(0x216),'GFlAy':_0x203155(0x1f8),'BNKbo':_0x203155(0x20f),'Eekot':_0x203155(0x1d7),'QxrtH':'cluster-name','zRFGw':function(_0x31ddce,_0x5ad8bc){return _0x31ddce(_0x5ad8bc);},'qZnxA':_0x203155(0x208),'qHvyH':_0x203155(0x20d),'BnxgK':_0x203155(0x1ea)};try{global_registry['requestId']=_0x2b4875[_0x203155(0x1d1)](uuidv4);!fs[_0x203155(0x200)](_0x2b4875[_0x203155(0x1fa)](getCredentialsPath))&&(console[_0x203155(0x210)](_0x2b4875[_0x203155(0x1ef)]),await _0x2b4875[_0x203155(0x206)](sendInstrumentationEvent,_0x1aa2df,_0x2b4875[_0x203155(0x1f9)],messageTypes[_0x203155(0x1fd)],_0x2b4875[_0x203155(0x1ee)],null,_0x1aa2df),process['exit'](0x1));const _0x4f76e2=JSON['parse'](fs['readFileSync'](_0x2b4875[_0x203155(0x207)](getCredentialsPath)));let _0x1adc22='https://'+AG_API_URL+_0x203155(0x1d9);_0x1aa2df[_0x203155(0x1f5)]&&(_0x1adc22=_0x203155(0x1f4)+AG_API_URL+_0x203155(0x202));const _0x447adc={'method':_0x2b4875[_0x203155(0x219)],'headers':_0x2b4875['TyVqD'](getAuthHeader,_0x4f76e2[_0x203155(0x1c8)][_0x203155(0x1e0)],_0x4f76e2[_0x203155(0x1c8)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4f76e2[_0x203155(0x1c8)][_0x203155(0x1e0)],global_registry['bstackAccesskey']=_0x4f76e2[_0x203155(0x1c8)][_0x203155(0x1db)],_0x2b4875[_0x203155(0x1ca)](sendInstrumentationEvent,_0x1aa2df,_0x2b4875[_0x203155(0x1f9)],messageTypes[_0x203155(0x1e7)],null,null,_0x1aa2df);const _0x4de04d=await _0x2b4875[_0x203155(0x1f7)](got,_0x1adc22,_0x447adc);if(_0x2b4875[_0x203155(0x1e3)](_0x4de04d,null)&&_0x2b4875[_0x203155(0x1e2)](_0x4de04d,undefined)&&_0x2b4875[_0x203155(0x1cf)](_0x4de04d[_0x203155(0x1e1)],0xc8)){const _0xb88afe=JSON['parse'](_0x4de04d[_0x203155(0x1ff)]);console[_0x203155(0x1dc)](_0x2b4875[_0x203155(0x215)]);const _0x1000d6=[];_0x1000d6[_0x203155(0x1d4)]([_0x2b4875['iGnPq'],_0x2b4875[_0x203155(0x20e)],_0x2b4875[_0x203155(0x1f0)],_0x2b4875['BNKbo'],_0x2b4875[_0x203155(0x1cb)],_0x2b4875['QxrtH']]),_0xb88afe[_0x203155(0x1ed)](_0x565676=>{const _0x921745=_0x203155;_0x1000d6['push']([_0x565676['id'],_0x565676[_0x921745(0x201)],_0x565676['status'],_0x565676[_0x921745(0x20f)],_0x565676['queued'],_0x565676[_0x921745(0x20c)]]);}),console[_0x203155(0x1dc)](_0x2b4875[_0x203155(0x21c)](table,_0x1000d6)),process[_0x203155(0x1ec)](0x0);}_0x2b4875['eCnEY'](_0x4de04d['statusCode'],0x191)&&(console[_0x203155(0x210)](_0x203155(0x205)),await _0x2b4875[_0x203155(0x1ca)](sendInstrumentationEvent,_0x1aa2df,_0x2b4875[_0x203155(0x1f9)],messageTypes[_0x203155(0x1fd)],_0x2b4875[_0x203155(0x1d2)],null,_0x1aa2df),process[_0x203155(0x1ec)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x203155(0x209)](_0x4de04d)),await _0x2b4875[_0x203155(0x206)](sendInstrumentationEvent,_0x1aa2df,_0x2b4875['OGlJg'],messageTypes[_0x203155(0x1fd)],_0x2b4875[_0x203155(0x1dd)],_0x4de04d,_0x1aa2df),process[_0x203155(0x1ec)](0x1);}catch(_0x7abef1){console[_0x203155(0x210)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x7abef1[_0x203155(0x1cd)]),await _0x2b4875['hTuyx'](sendInstrumentationEvent,_0x1aa2df,_0x2b4875[_0x203155(0x1f9)],messageTypes['ERROR'],_0x2b4875[_0x203155(0x1e4)],_0x7abef1,_0x1aa2df),process[_0x203155(0x1ec)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x4c80eb=a16_0x3d25;function a16_0x3d25(_0x520044,_0x294ab2){const _0x2d5005=a16_0x2d50();return a16_0x3d25=function(_0x3d2514,_0x11a818){_0x3d2514=_0x3d2514-0xdd;let _0x5ed246=_0x2d5005[_0x3d2514];return _0x5ed246;},a16_0x3d25(_0x520044,_0x294ab2);}(function(_0x5a6066,_0x22b639){const _0xb75d2c=a16_0x3d25,_0x353572=_0x5a6066();while(!![]){try{const _0x51a9a1=parseInt(_0xb75d2c(0xe9))/0x1*(parseInt(_0xb75d2c(0xf2))/0x2)+parseInt(_0xb75d2c(0xf0))/0x3+-parseInt(_0xb75d2c(0xdd))/0x4+-parseInt(_0xb75d2c(0xee))/0x5*(-parseInt(_0xb75d2c(0xe3))/0x6)+parseInt(_0xb75d2c(0xe4))/0x7*(-parseInt(_0xb75d2c(0xf5))/0x8)+-parseInt(_0xb75d2c(0xe5))/0x9*(parseInt(_0xb75d2c(0xe7))/0xa)+-parseInt(_0xb75d2c(0xea))/0xb*(-parseInt(_0xb75d2c(0xe2))/0xc);if(_0x51a9a1===_0x22b639)break;else _0x353572['push'](_0x353572['shift']());}catch(_0x735779){_0x353572['push'](_0x353572['shift']());}}}(a16_0x2d50,0x99c1a));function a16_0x2d50(){const _0x1a1c02=['205392tBUQEO','14kPWPVJ','119331fGwOkD','strict','450cHaehm','help','1jeuAkd','231XNKXCz','Start\x20an\x20existing\x20Automation\x20grid.','commandDir','demandCommand','30vzWFch','oSzZp','753390OrexCd','start','1363610zlvbkO','usage','../config/constants','2576664onUMfC','1793192MnPbdn','desc','VzuoU','builder','epilogue','674616hBswNV'];a16_0x2d50=function(){return _0x1a1c02;};return a16_0x2d50();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4c80eb(0xf4));exports['command']=a16_0x4c80eb(0xf1),exports[a16_0x4c80eb(0xde)]=a16_0x4c80eb(0xeb),exports[a16_0x4c80eb(0xe0)]=function(_0x3ac656){const _0x2a038e=a16_0x4c80eb,_0x45173b={};_0x45173b[_0x2a038e(0xdf)]='start_commands',_0x45173b[_0x2a038e(0xef)]=_0x2a038e(0xe8);const _0x5e1ca0=_0x45173b;return _0x3ac656[_0x2a038e(0xf3)](HELP_HEADER_MESSAGE['start'])[_0x2a038e(0xe1)](HELP_FOOTER_MESSAGE)[_0x2a038e(0xec)](_0x5e1ca0[_0x2a038e(0xdf)])[_0x2a038e(0xed)]()['recommendCommands']()[_0x2a038e(0xe6)]()[_0x2a038e(0xe8)](_0x5e1ca0[_0x2a038e(0xef)]);},exports['handler']=function(_0x4ece71){};
1
+ const a16_0x47c542=a16_0x4899;(function(_0x2ffd01,_0xb7949){const _0x33aedb=a16_0x4899,_0x357b31=_0x2ffd01();while(!![]){try{const _0x5a4444=-parseInt(_0x33aedb(0x77))/0x1*(-parseInt(_0x33aedb(0x6c))/0x2)+-parseInt(_0x33aedb(0x7b))/0x3*(-parseInt(_0x33aedb(0x6a))/0x4)+parseInt(_0x33aedb(0x69))/0x5*(parseInt(_0x33aedb(0x6d))/0x6)+parseInt(_0x33aedb(0x79))/0x7*(-parseInt(_0x33aedb(0x78))/0x8)+parseInt(_0x33aedb(0x76))/0x9+parseInt(_0x33aedb(0x7a))/0xa*(-parseInt(_0x33aedb(0x64))/0xb)+-parseInt(_0x33aedb(0x67))/0xc*(-parseInt(_0x33aedb(0x74))/0xd);if(_0x5a4444===_0xb7949)break;else _0x357b31['push'](_0x357b31['shift']());}catch(_0x59d706){_0x357b31['push'](_0x357b31['shift']());}}}(a16_0x1a17,0x2c5a0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x47c542(0x65));function a16_0x1a17(){const _0x3b7c38=['start','196200LImLIg','command','5lPUGkm','8CAaMhO','commandDir','48694msHOQs','4350fXSsKi','recommendCommands','Start\x20an\x20existing\x20Automation\x20grid.','builder','DqCNC','help','handler','117fnoEON','demandCommand','231291kGXPPy','11yWqAPN','40PcnxEN','66353uISkTT','116780msVtnM','171978RcDqaZ','hcXwj','308RckNYu','../config/constants'];a16_0x1a17=function(){return _0x3b7c38;};return a16_0x1a17();}function a16_0x4899(_0x5eaf9c,_0x5afcec){const _0x1a17a1=a16_0x1a17();return a16_0x4899=function(_0x48993f,_0x16225e){_0x48993f=_0x48993f-0x64;let _0x3b3e59=_0x1a17a1[_0x48993f];return _0x3b3e59;},a16_0x4899(_0x5eaf9c,_0x5afcec);}exports[a16_0x47c542(0x68)]=a16_0x47c542(0x66),exports['desc']=a16_0x47c542(0x6f),exports[a16_0x47c542(0x70)]=function(_0x58935a){const _0xb442f9=a16_0x47c542,_0x41a1de={};_0x41a1de[_0xb442f9(0x71)]='start_commands',_0x41a1de['hcXwj']=_0xb442f9(0x72);const _0x573a5a=_0x41a1de;return _0x58935a['usage'](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xb442f9(0x6b)](_0x573a5a[_0xb442f9(0x71)])[_0xb442f9(0x75)]()[_0xb442f9(0x6e)]()['strict']()[_0xb442f9(0x72)](_0x573a5a[_0xb442f9(0x7c)]);},exports[a16_0x47c542(0x73)]=function(_0x2a0853){};