browserstack-node-sdk 1.34.1 → 1.34.2

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 (126) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +2 -2
  36. package/src/ai-sdk-node/bundle.js +1 -0
  37. package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
  38. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  39. package/src/bin/codeceptjs/command.js +1 -1
  40. package/src/bin/codeceptjs/helper.js +1 -1
  41. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  42. package/src/bin/cucumber-js/command.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  44. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  45. package/src/bin/cucumber-js/test-observability.js +1 -1
  46. package/src/bin/cucumber-js/test.setup.js +1 -1
  47. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  48. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  49. package/src/bin/integrations/command.js +1 -1
  50. package/src/bin/integrations/constants.js +1 -1
  51. package/src/bin/jest/command.js +1 -1
  52. package/src/bin/jest/customImplements/customCircus.js +1 -1
  53. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  54. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  55. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  56. package/src/bin/jest/jest.setup.js +1 -1
  57. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  58. package/src/bin/jest/test-observability/helper.js +1 -1
  59. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  60. package/src/bin/jest/test-observability/test-details.js +1 -1
  61. package/src/bin/jest/test_before.setup.js +1 -1
  62. package/src/bin/launcher/launcher.js +1 -1
  63. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  64. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  65. package/src/bin/mocha/command.js +1 -1
  66. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  67. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  68. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  69. package/src/bin/mocha/test.setup.js +1 -1
  70. package/src/bin/nightwatch/command.js +1 -1
  71. package/src/bin/playwright/accessibility-helper.js +1 -1
  72. package/src/bin/playwright/command.js +1 -1
  73. package/src/bin/playwright/globalSetup.js +1 -1
  74. package/src/bin/playwright/mock-process.js +1 -1
  75. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  76. package/src/bin/playwright/patches.js +1 -1
  77. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  78. package/src/bin/playwright/reporter/reporter.js +1 -1
  79. package/src/bin/playwright/reporter/test-details.js +1 -1
  80. package/src/bin/playwright/sessionDetails.js +1 -1
  81. package/src/bin/runner.js +1 -1
  82. package/src/bin/setup.js +1 -1
  83. package/src/bin/test-runner/index.js +1 -1
  84. package/src/bin/test-runner/runTest.js +1 -1
  85. package/src/bin/test-runner/testWorker.js +1 -1
  86. package/src/bin/utils/constants.js +1 -1
  87. package/src/bin/utils/log4jsAppender.js +1 -1
  88. package/src/bin/utils/logPatcher.js +1 -1
  89. package/src/bin/utils/logReportingAPI.js +1 -1
  90. package/src/bin/vanilla-js/command.js +1 -1
  91. package/src/browserStackSdk.js +1 -1
  92. package/src/helpers/BrowserStackSetup.js +1 -1
  93. package/src/helpers/accessibility-automation/constants.js +1 -1
  94. package/src/helpers/accessibility-automation/helper.js +1 -1
  95. package/src/helpers/accessibility-automation/scripts.js +1 -1
  96. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -0
  97. package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
  98. package/src/helpers/ats/constants.js +1 -1
  99. package/src/helpers/ats/helper.js +1 -1
  100. package/src/helpers/capsMapping.js +1 -1
  101. package/src/helpers/globals.js +1 -1
  102. package/src/helpers/helper.js +1 -1
  103. package/src/helpers/logger.js +1 -1
  104. package/src/helpers/patchHelpers.js +1 -1
  105. package/src/helpers/percy/Percy.js +1 -1
  106. package/src/helpers/percy/PercyBinary.js +1 -1
  107. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  108. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  109. package/src/helpers/percy/PercySDK.js +1 -1
  110. package/src/helpers/percy/index.js +1 -1
  111. package/src/helpers/percy/utils.js +1 -1
  112. package/src/helpers/performance-tester.js +1 -1
  113. package/src/helpers/request-spy.js +1 -1
  114. package/src/helpers/setKeepAlive.js +1 -1
  115. package/src/helpers/test-observability/constants.js +1 -1
  116. package/src/helpers/test-observability/error-handler.js +1 -1
  117. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  118. package/src/helpers/test-observability/sessionHandler.js +1 -1
  119. package/src/helpers/test-observability/utils.js +1 -1
  120. package/src/helpers/testhub/constants.js +1 -1
  121. package/src/helpers/testhub/testhubHandler.js +1 -1
  122. package/src/helpers/testhub/utils.js +1 -1
  123. package/src/helpers/timeoutPromise.js +1 -0
  124. package/src/helpers/w3cMapping.js +1 -1
  125. package/src/hubAllocationMethods.js +1 -1
  126. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x2546(_0x56f5ce,_0xd166f1){const _0x3ab82d=a9_0x3ab8();return a9_0x2546=function(_0x25461a,_0x2d7c69){_0x25461a=_0x25461a-0x17e;let _0x2318b1=_0x3ab82d[_0x25461a];return _0x2318b1;},a9_0x2546(_0x56f5ce,_0xd166f1);}const a9_0x5110fc=a9_0x2546;function a9_0x3ab8(){const _0x4c4a18=['nYULP','vpc','isClusterPresent','help','mbIgD','pMuOR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','mZpye','tTxJX','NUVdI','bGtNC','isSubnetsValid','privateGrid','HMXwl','15HBEHKa','error','options','s3bucket','WJlvn','Deleting\x20the\x20CloudFormation\x20Stacks','TPlLP','grid-spawning-failed','OnCJm','GFmAB','pMYhI','cloudProvider','Uhzmd','concurrency','instanceType','uuid','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','kZqdN','region','bstackUsername','hubVersion','default','cTyHw','subnets','BMpKT','length','nGqWi','Found\x20Subnets:\x20','EsiNr','isVPCPresent','csLGS','warn','builder','Creating\x20namespace','ZGxba','vNGAZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oTcuL','Ergha','deleteCluster','BcdVO','JQpkC','Cybla','grid','1|2|3|4|0','uOrSi','12186210pTLjKC','TmkeN','message','Odely','UNOyL','pre-spawned-subnets-not-selected','eYSpa','password','LFHEA','LOG','sendResourceDataToHST','sendEventToBackend','statusCode','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','username','rPrlX','uHpTF','EBfpO','command','ehgse','\x27\x20grid\x20profile','Grid\x20can\x20be\x20accessed\x20at:\x20','1853574brOZFr','turboscale-managed-identity-','CRuLz','type','qNcUF','../../utils/createk8sClient','mEyrj','58537sopoqb','cluster-name','YPfAc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','413AVaiuT','EEJtf','private-grid','delay','YjQoH','clusterName','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid-profile','got','writeFileSync','YRxDV','WxJTd','requestId','private-ingress-nginx-controller','kpzpH','fHDYC','CEiuC','pre-spawned-invalid-vpc','grid-name','11754315TOWvTL','fetchLocalCreds','50EIWdpg','YlCpq','route53','updatePreSpawnedCluster','OWNHH','vLgqp','Found\x20VPC:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','../../utils/utilityMethods','DqDdU','YjICp','createdBy','../../config/constants','namespace','prespawned-cluster-args-not-passed','<UsernamePlaceholder>','mIAab','browserVersion','Grid\x20spawned\x20on\x20the\x20cluster','user','DJldo','NmfGg','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','mGTQg','create-grid-checks-grid-already-exists','3|5|6|0|8|4|1|7|2','bstackAccesskey','createOtherResources','https','NONfZ','create','dAXwI','Subnets:\x20','create-grid-checks-null-response','INFO','setupAutoscaler','gridName','CLI\x20run\x20started','VAsJK','QluSj','pblPl','GRdWe','Bpcpr','yNodW','pre-spawned-invalid-subnets','SzIfL','TTfAK','parse','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','atkfI','ingress-nginx','573264DkCRFD','goxaQ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','hWDiV','rlLcl','Pizcx','toLowerCase','Cluster\x20','<PasswordPlaceholder>','string','jHGkC','https://','defaultGridProfile','rbkUr','/packages/cli/get-grid-url?gridIdentifier=','MUkCx','existsSync','EiNjS','init-not-called','XUJCT','/wd/hub','koEos','QCNES','NtEHz','SJVyf','minNodes','bpRhY','argv','includes','mxSLV','pdXrA','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','true','VGDjC','exit','ithVj','usage','http','NDfLF','handler','Namespace\x20Created','ERROR','zVyNu','../../cloudproviders/utils','setupNewCluster','oysmO','metadata','CLI_RUN_STARTED','://','SpsIT','../../utils/webSocketUtils','rDhTO','../../utils/userInput','stjIy','Spawning\x20grid\x20on\x20to\x20the\x20cluster','nzfKO','name','VAgUh','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','WebSocket','cloud-provider','epilogue','fmuTz','get-grid-url-null-response','clusterRegion','BRTTh','uPOzh','get-grid-url-auth-failed','stack','\x20using\x20\x27','xXqXG','split','configureIfNotConfigured','connectionTimeout','OSWXx','rnCwx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Fqqsp','getResourceClientId','info','TjmdD','desc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','ingress-nginx-controller','readFileSync','Mqffh','gridProfile','foiEe','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','sFGUk','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ubkTp','yzdsh','QauQM','ELGam','ETkXQ','wCRiI','kDnGO','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','oiOii','Fnqmk','pGSTq','dzCGj','Create\x20a\x20private/public\x20grid.','5955460iKPWBd','readNamespacedService','getGridHostname','CzoDf','reconnecting-websocket','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','BDxOS','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.','non-aws-azure-cluster','isPrivateGrid','RKmxw','../../config/logger','TGwrk','JbKwT','Will\x20be\x20spawning\x20the\x20grid\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','VokdA','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','rMmFK','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','description','stringify','Grid\x20profile\x20fetched\x20from\x20backend','FJoLc','dmOOv','\x20in\x20existing\x20cluster\x20\x27','Browserstack','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Create\x20a\x20new\x20Automation\x20grid.','iWuBY','EigUv','40952cqDpkd','jolGs','replace'];a9_0x3ab8=function(){return _0x4c4a18;};return a9_0x3ab8();}(function(_0x528336,_0x3866b4){const _0x27237c=a9_0x2546,_0x2ba96d=_0x528336();while(!![]){try{const _0xcbd463=parseInt(_0x27237c(0x2a2))/0x1*(-parseInt(_0x27237c(0x189))/0x2)+parseInt(_0x27237c(0x1bc))/0x3+parseInt(_0x27237c(0x225))/0x4+parseInt(_0x27237c(0x256))/0x5*(parseInt(_0x27237c(0x29b))/0x6)+-parseInt(_0x27237c(0x2a6))/0x7*(parseInt(_0x27237c(0x245))/0x8)+-parseInt(_0x27237c(0x187))/0x9+parseInt(_0x27237c(0x284))/0xa;if(_0xcbd463===_0x3866b4)break;else _0x2ba96d['push'](_0x2ba96d['shift']());}catch(_0x38ec08){_0x2ba96d['push'](_0x2ba96d['shift']());}}}(a9_0x3ab8,0xb80d8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x5110fc(0x229)),got=require(a9_0x5110fc(0x2ae)),{v4:uuidv4}=require(a9_0x5110fc(0x265)),webSocketUtils=require(a9_0x5110fc(0x1ee)),{logger}=require(a9_0x5110fc(0x231)),{inputCloudProviderKeys}=require(a9_0x5110fc(0x1f0)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5110fc(0x191)),{getCloudProviderObject}=require(a9_0x5110fc(0x1e7)),{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_0x5110fc(0x195)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x5110fc(0x2a0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x5110fc(0x297)]=a9_0x5110fc(0x281),exports[a9_0x5110fc(0x20d)]=a9_0x5110fc(0x242),exports[a9_0x5110fc(0x276)]=function(_0x4069b7){const _0x37056a=a9_0x5110fc,_0x28f57f={};_0x28f57f['iWuBY']=_0x37056a(0x21f),_0x28f57f['dmOOv']=_0x37056a(0x1c5),_0x28f57f['ehgse']=_0x37056a(0x235),_0x28f57f['ELGam']=_0x37056a(0x2a5),_0x28f57f[_0x37056a(0x212)]=_0x37056a(0x217),_0x28f57f['fHDYC']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x28f57f[_0x37056a(0x223)]=_0x37056a(0x224),_0x28f57f[_0x37056a(0x26c)]=_0x37056a(0x24b);const _0x1fafc6=_0x28f57f,_0x591cb9={};_0x591cb9['description']=_0x1fafc6[_0x37056a(0x243)],_0x591cb9[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x203dc6={};_0x203dc6[_0x37056a(0x23a)]=_0x1fafc6[_0x37056a(0x298)],_0x203dc6[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x2ae24c={};_0x2ae24c['description']=_0x1fafc6[_0x37056a(0x21b)],_0x2ae24c[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x209412={};_0x209412['description']=_0x1fafc6[_0x37056a(0x212)],_0x209412[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x54ccd2={};_0x54ccd2['description']=_0x1fafc6[_0x37056a(0x183)],_0x54ccd2['type']=_0x1fafc6[_0x37056a(0x23e)];const _0x2fc3b8={};_0x2fc3b8[_0x37056a(0x23a)]=_0x1fafc6['dzCGj'],_0x2fc3b8[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x13c826={};return _0x13c826[_0x37056a(0x186)]=_0x591cb9,_0x13c826[_0x37056a(0x2ad)]=_0x203dc6,_0x13c826[_0x37056a(0x2a3)]=_0x2ae24c,_0x13c826[_0x37056a(0x1f8)]=_0x209412,_0x13c826[_0x37056a(0x268)]=_0x54ccd2,_0x13c826[_0x37056a(0x2a8)]=_0x2fc3b8,_0x4069b7[_0x37056a(0x1e0)](HELP_HEADER_MESSAGE[_0x37056a(0x1a7)])[_0x37056a(0x1f9)](HELP_FOOTER_MESSAGE)['options'](_0x13c826)[_0x37056a(0x24b)](_0x1fafc6[_0x37056a(0x26c)])[_0x37056a(0x1d7)];},exports[a9_0x5110fc(0x1e3)]=async function(_0x4f3380){const _0x1ebc18=a9_0x5110fc,_0x5ec5af={'BcdVO':_0x1ebc18(0x257),'kpzpH':_0x1ebc18(0x1a5),'mbIgD':'7|3|1|8|4|6|2|5|0','JbKwT':_0x1ebc18(0x21f),'TPlLP':'string','CEiuC':_0x1ebc18(0x235),'vLgqp':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vMNAV':_0x1ebc18(0x217),'oiOii':_0x1ebc18(0x292),'QauQM':_0x1ebc18(0x224),'rFHaf':_0x1ebc18(0x24b),'tTxJX':_0x1ebc18(0x275),'YPfAc':_0x1ebc18(0x1e1),'SpsIT':function(_0x4777bd){return _0x4777bd();},'Pizcx':function(_0x38cd70){return _0x38cd70();},'CzoDf':function(_0x4c77e4,_0x5af3cc){return _0x4c77e4!==_0x5af3cc;},'ZxPHz':_0x1ebc18(0x207),'vXIwI':_0x1ebc18(0x27a),'rPrlX':function(_0x2aae74,_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9){return _0x2aae74(_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9);},'qNcUF':'create-grid-called','XUJCT':_0x1ebc18(0x1ce),'EiNjS':_0x1ebc18(0x198),'hWDiV':_0x1ebc18(0x1c4),'IjyBp':'Adding\x20Websocket\x20listeners','IjqfJ':function(_0x102f90,_0x56219f){return _0x102f90!==_0x56219f;},'bqiaQ':'GDLwW','csLGS':'xxCUn','hYipM':_0x1ebc18(0x1a6),'foiEe':_0x1ebc18(0x2a7),'SAiuX':_0x1ebc18(0x1b9),'QluSj':function(_0x1b1a6b,_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289){return _0x1b1a6b(_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289);},'SzIfL':_0x1ebc18(0x197),'fmuTz':function(_0x3b0067,_0x376a72){return _0x3b0067===_0x376a72;},'SJVyf':_0x1ebc18(0x287),'uPOzh':'ZjwMx','ETkXQ':_0x1ebc18(0x239),'Uhzmd':function(_0x5ecfd1,_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083){return _0x5ecfd1(_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083);},'bpRhY':_0x1ebc18(0x22e),'mZpye':_0x1ebc18(0x1dc),'nGqWi':_0x1ebc18(0x1c0),'jHGkC':function(_0x2c3520,_0x144449){return _0x2c3520!==_0x144449;},'pGSTq':_0x1ebc18(0x1f5),'UNOyL':function(_0x3ffa9b,_0xf84079){return _0x3ffa9b===_0xf84079;},'Fqqsp':_0x1ebc18(0x283),'llSBu':'GET','OWNHH':function(_0x458cc6,_0x1b3b60,_0x4a431b){return _0x458cc6(_0x1b3b60,_0x4a431b);},'TTfAK':_0x1ebc18(0x267),'yNodW':_0x1ebc18(0x24e),'rDhTO':_0x1ebc18(0x1aa),'kiYmu':_0x1ebc18(0x28c),'ZFpWt':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','smLIS':'create-grid-checks-auth-failed','TmkeN':function(_0x38509e,_0x51bf81){return _0x38509e===_0x51bf81;},'MfurH':_0x1ebc18(0x1fd),'EigUv':_0x1ebc18(0x1b2),'OnCJm':'create-grid-checks-non-200','nYULP':_0x1ebc18(0x23c),'ZhGXn':function(_0x1a0256,_0x19ab0a){return _0x1a0256===_0x19ab0a;},'VAsJK':'ApheZ','WxJTd':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','rbkUr':function(_0x2bdfc0,_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5){return _0x2bdfc0(_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5);},'YlCpq':_0x1ebc18(0x1a1),'Fnqmk':_0x1ebc18(0x17e),'wCRiI':_0x1ebc18(0x1e9),'sFGUk':function(_0x48bd51,_0xab4e24){return _0x48bd51===_0xab4e24;},'ithVj':_0x1ebc18(0x1a8),'MUkCx':_0x1ebc18(0x1d3),'mxSLV':_0x1ebc18(0x22c),'kDnGO':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','qeWth':'create-grid-checks-invalid-profile','koEos':function(_0x1d206d,_0x3fce51){return _0x1d206d===_0x3fce51;},'mEyrj':_0x1ebc18(0x19e),'RKmxw':function(_0x274715,_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9){return _0x274715(_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9);},'pMuOR':function(_0x5b2e73,_0x56abf0){return _0x5b2e73!==_0x56abf0;},'ygZaZ':'THMtX','mIAab':_0x1ebc18(0x219),'goxaQ':_0x1ebc18(0x1a2),'jolGs':function(_0x3b819f,_0x2f2214){return _0x3b819f===_0x2f2214;},'EBfpO':_0x1ebc18(0x215),'TGwrk':function(_0x2bf129,_0x59ddf7){return _0x2bf129===_0x59ddf7;},'vNGAZ':function(_0x461a98,_0x1666f6,_0x1bc843,_0x1d47df){return _0x461a98(_0x1666f6,_0x1bc843,_0x1d47df);},'HMXwl':_0x1ebc18(0x19f),'CRuLz':_0x1ebc18(0x291),'LVTBi':function(_0x4d87ea,_0x14017d){return _0x4d87ea!==_0x14017d;},'BMpKT':function(_0x286b8e,_0x25ad09){return _0x286b8e===_0x25ad09;},'xXqXG':_0x1ebc18(0x20e),'DJldo':function(_0x338743,_0x1111e2){return _0x338743!=_0x1111e2;},'PrfWg':function(_0x4566b4,_0x20f428){return _0x4566b4!==_0x20f428;},'DqDdU':function(_0x2608ab,_0x357807){return _0x2608ab>_0x357807;},'EsiNr':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','bGtNC':function(_0x36b23e,_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898){return _0x36b23e(_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898);},'Cybla':_0x1ebc18(0x289),'QCNES':function(_0x59147f,_0x4a2d2a){return _0x59147f===_0x4a2d2a;},'NUVdI':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NDfLF':_0x1ebc18(0x185),'FuPyP':function(_0x1f0715,_0x2cfe0a){return _0x1f0715===_0x2cfe0a;},'TjmdD':_0x1ebc18(0x1b5),'YjQoH':_0x1ebc18(0x282),'iiKLf':'Cluster\x20created\x20successfully','FJoLc':_0x1ebc18(0x22d),'pMYhI':function(_0x5b5328,_0x276c4c){return _0x5b5328===_0x276c4c;},'oTcuL':function(_0x28c55c,_0x533e76){return _0x28c55c(_0x533e76);},'nzfKO':function(_0x203659,_0x488e73){return _0x203659==_0x488e73;},'ubkTp':_0x1ebc18(0x277),'uHpTF':_0x1ebc18(0x26b),'atkfI':_0x1ebc18(0x240),'BomGy':_0x1ebc18(0x1e4),'JQpkC':'Namespace\x20created','zVyNu':_0x1ebc18(0x1f2),'VokdA':_0x1ebc18(0x190),'jjvpf':function(_0x216553,_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1){return _0x216553(_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1);},'Bpcpr':_0x1ebc18(0x19b),'GFmAB':_0x1ebc18(0x1db),'ZGxba':function(_0x13a2f2,_0x24e252,_0x5deb44,_0x890ce4,_0x48c741){return _0x13a2f2(_0x24e252,_0x5deb44,_0x890ce4,_0x48c741);},'WJlvn':function(_0x5421ac,_0x186bfb,_0x3afe1f){return _0x5421ac(_0x186bfb,_0x3afe1f);},'Ergha':_0x1ebc18(0x181),'VGDjC':_0x1ebc18(0x210),'stjIy':_0x1ebc18(0x1bb),'OSWXx':function(_0x12da79,_0xa9e84e,_0x32d927){return _0x12da79(_0xa9e84e,_0x32d927);},'ImahP':function(_0x31d8d1,_0x2c4522){return _0x31d8d1==_0x2c4522;},'rMmFK':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gMdmo':function(_0x278dca,_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb){return _0x278dca(_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb);},'eYSpa':_0x1ebc18(0x1fb),'tYFrw':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','mGTQg':_0x1ebc18(0x1ff),'hdowz':function(_0x25a870,_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a){return _0x25a870(_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a);},'YjICp':'get-grid-url-non-200','pblPl':function(_0x154649,_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41){return _0x154649(_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41);},'pdXrA':_0x1ebc18(0x25d)};let _0x401707=![],_0x3e855f,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6946,_0x2c6229,_0x3f9948,_0x3e1cbc,_0x4d23ef,_0x4248e7,_0x1c4e0f=0x1,_0x58c419=0xe;try{global_registry[_0x1ebc18(0x180)]=_0x5ec5af[_0x1ebc18(0x1ed)](uuidv4),global_registry[_0x1ebc18(0x22f)]=![];!fs[_0x1ebc18(0x1cc)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath))&&(_0x5ec5af[_0x1ebc18(0x228)](_0x5ec5af['ZxPHz'],_0x5ec5af['ZxPHz'])?_0x3344d0['cloudProvider']={}:(console[_0x1ebc18(0x257)](_0x5ec5af['vXIwI']),await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1cf)],null,_0x4f3380),process[_0x1ebc18(0x1de)](0x1)));await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1ab)],null,null,_0x4f3380);const _0x8ad0c5=JSON['parse'](fs[_0x1ebc18(0x211)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath)));global_registry[_0x1ebc18(0x269)]=_0x8ad0c5[_0x1ebc18(0x240)]['username'],global_registry[_0x1ebc18(0x1a3)]=_0x8ad0c5['Browserstack']['password'];const _0x4540e9=WS_ENDPOINT[_0x1ebc18(0x247)](_0x5ec5af[_0x1ebc18(0x1cd)],_0x8ad0c5['Browserstack'][_0x1ebc18(0x293)])['replace'](_0x5ec5af[_0x1ebc18(0x1bf)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),_0x4f18a4={};_0x4f18a4[_0x1ebc18(0x1f7)]=ws,_0x4f18a4[_0x1ebc18(0x205)]=0x36ee80,_0x3e1cbc=new ReconnectingWebSocket(_0x4540e9,[],_0x4f18a4),logger['debug'](_0x5ec5af['IjyBp']),webSocketUtils['addListeners'](_0x3e1cbc,_0x4f3380[_0x1ebc18(0x19c)],_0x4f3380[_0x1ebc18(0x28b)]);let _0x2ca59b=DEFAULT_GRID_NAME;(_0x4f3380[_0x1ebc18(0x2ab)]||_0x4f3380[_0x1ebc18(0x261)]||_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['IjqfJ'](_0x5ec5af['bqiaQ'],_0x5ec5af[_0x1ebc18(0x274)])?(!(_0x4f3380[_0x1ebc18(0x2ab)]&&_0x4f3380['cloudProvider']&&_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['CzoDf'](_0x5ec5af['hYipM'],_0x5ec5af[_0x1ebc18(0x214)])?(_0x3e855f=_0x5ec5af['SAiuX'],await _0x5ec5af[_0x1ebc18(0x1b0)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1b6)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x227c2d[_0x1ebc18(0x22f)]=!![]),![AWS,AZURE,GCP][_0x1ebc18(0x1d8)](_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)]())&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1d4)],_0x5ec5af[_0x1ebc18(0x1fe)])?_0x258c9e[_0x1ebc18(0x257)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0xd31705+'\x20\x0a'+_0x1448a7[_0x1ebc18(0x23b)](_0xcde52a['stack'])):(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21c)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1d6)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1))),_0x4f3380[_0x1ebc18(0x254)]&&_0x5ec5af[_0x1ebc18(0x1fa)](_0x4f3380['privateGrid'][_0x1ebc18(0x1c2)](),_0x5ec5af[_0x1ebc18(0x24f)])&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x270)],_0x5ec5af[_0x1ebc18(0x270)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x3e0ba3=_0x437f27[_0xda5921[_0x1ebc18(0x213)]]),_0x401707=!![],_0x406c74=_0x4f3380[_0x1ebc18(0x2ab)],_0x1c492c=_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)](),_0x36e8e4=_0x4f3380[_0x1ebc18(0x268)]):_0x2f0845[_0x1ebc18(0x20b)]('Found\x20VPC:\x20'+_0x3123f8+'\x20'));if(_0x4f3380[_0x1ebc18(0x1ad)]){if(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x222)],_0x5ec5af[_0x1ebc18(0x222)])){const _0xbf54cc={};_0xbf54cc[_0x1ebc18(0x29e)]=_0x4d7401[_0x1ebc18(0x28d)],_0xbf54cc['message']=_0x411775,_0xc29500['sendEventToBackend'](_0x281c07,_0xbf54cc,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}else _0x2ca59b=_0x4f3380['gridName'];}_0x4f3380['gridProfile']&&(_0x5ec5af['UNOyL'](_0x5ec5af[_0x1ebc18(0x209)],_0x5ec5af[_0x1ebc18(0x209)])?global_registry[_0x1ebc18(0x213)]=_0x4f3380['gridProfile']:(_0x16e5f2=_0x4262b6['route53'],_0x1081c3=_0x5ec5af[_0x1ebc18(0x182)]));global_registry['gridName']=_0x2ca59b;const _0x535172={'method':_0x5ec5af['llSBu'],'headers':_0x5ec5af[_0x1ebc18(0x18d)](getAuthHeader,_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x293)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),'throwHttpErrors':![]},_0x146099=_0x1ebc18(0x1c7)+AG_API_URL+'/packages/cli/create-grid-checks',_0x7bc92d={};_0x7bc92d[_0x1ebc18(0x1ad)]=_0x2ca59b;const _0x324154={'searchParams':_0x7bc92d,'throwHttpErrors':![],..._0x535172},_0x440496=_0x324154,_0x1de9e8=await _0x5ec5af[_0x1ebc18(0x18d)](got,_0x146099,_0x440496);if(_0x5ec5af[_0x1ebc18(0x288)](_0x1de9e8,null)||_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8,undefined)){if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1b7)],_0x5ec5af[_0x1ebc18(0x1b7)]))_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b4)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1ef)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x9c9b44=_0x5ec5af[_0x1ebc18(0x24c)][_0x1ebc18(0x203)]('|');let _0x165808=0x0;while(!![]){switch(_0x9c9b44[_0x165808++]){case'0':_0x1c6a59[_0x1ebc18(0x19a)]=_0x4b6f21[_0x1ebc18(0x19a)];continue;case'1':_0x4e535a['info'](_0xa1092c);continue;case'2':_0x460ff8[_0x1ebc18(0x2ab)]=_0x5bf143;continue;case'3':_0x4a3931='Spawning\x20the\x20grid\x20'+_0x55d995+_0x1ebc18(0x23f)+_0x39b715+'\x27';continue;case'4':_0x51412e[_0x1ebc18(0x261)]=_0x14722d;continue;case'5':_0x30c42c[_0x1ebc18(0x26a)]=_0xd1a507[_0x1ebc18(0x26a)];continue;case'6':_0x5e517f[_0x1ebc18(0x1fc)]=_0x54488b;continue;case'7':const _0x416898={};_0x416898['type']=_0x6212c2['CLI_RUN_STARTED'],_0x416898[_0x1ebc18(0x286)]=_0x1ebc18(0x1ae),_0x53862a[_0x1ebc18(0x28f)](_0x1edc44,_0x416898);continue;case'8':const _0x19558d={};_0x19558d[_0x1ebc18(0x29e)]=_0x2c459d[_0x1ebc18(0x28d)],_0x19558d[_0x1ebc18(0x286)]=_0x284994,_0xa001d8[_0x1ebc18(0x28f)](_0x6316fc,_0x19558d);continue;}break;}}}if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8[_0x1ebc18(0x290)],0x191)){if(_0x5ec5af[_0x1ebc18(0x288)](_0x5ec5af['kiYmu'],_0x5ec5af['kiYmu']))_0x3e855f=_0x5ec5af['ZFpWt'],await _0x5ec5af['Uhzmd'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['smLIS'],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x35ef8d={};_0x35ef8d[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x233)],_0x35ef8d[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x420849={};_0x420849['description']=_0x5ec5af[_0x1ebc18(0x184)],_0x420849['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x3c3d36={};_0x3c3d36[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x18e)],_0x3c3d36[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0xf6d42b={};_0xf6d42b[_0x1ebc18(0x23a)]=_0x5ec5af['vMNAV'],_0xf6d42b['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x112b4d={};_0x112b4d['description']=_0x5ec5af[_0x1ebc18(0x220)],_0x112b4d[_0x1ebc18(0x29e)]=_0x5ec5af[_0x1ebc18(0x25c)];const _0x2a95f3={};_0x2a95f3['description']=_0x5ec5af[_0x1ebc18(0x21a)],_0x2a95f3[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x6e5953={};return _0x6e5953[_0x1ebc18(0x186)]=_0x35ef8d,_0x6e5953[_0x1ebc18(0x2ad)]=_0x420849,_0x6e5953[_0x1ebc18(0x2a3)]=_0x3c3d36,_0x6e5953[_0x1ebc18(0x1f8)]=_0xf6d42b,_0x6e5953['region']=_0x112b4d,_0x6e5953[_0x1ebc18(0x2a8)]=_0x2a95f3,_0x136328[_0x1ebc18(0x1e0)](_0x5acf50['create'])[_0x1ebc18(0x1f9)](_0x5411be)[_0x1ebc18(0x258)](_0x6e5953)[_0x1ebc18(0x24b)](_0x5ec5af['rFHaf'])[_0x1ebc18(0x1d7)];}}if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x1de9e8['statusCode'],0xc8)){if(_0x5ec5af[_0x1ebc18(0x285)](_0x5ec5af['MfurH'],_0x5ec5af[_0x1ebc18(0x244)])){const _0x3da469={};_0x3da469[_0x1ebc18(0x29e)]=_0x388f73[_0x1ebc18(0x28d)],_0x3da469[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x1dde5a+_0x1ebc18(0x22a),_0xeb9622[_0x1ebc18(0x28f)](_0x16611b,_0x3da469,_0x5ec5af[_0x1ebc18(0x250)]),_0x32ba57[_0x1ebc18(0x20b)](_0x1ebc18(0x1c3)+_0x85f3ef+_0x1ebc18(0x22a)),_0x5f3947=!![];}else _0x3e855f=_0x1ebc18(0x1be)+JSON[_0x1ebc18(0x23b)](_0x1de9e8),await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x25e)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);}const _0x1f8161=JSON[_0x1ebc18(0x1b8)](_0x1de9e8['body']),_0x3d143f={};_0x3d143f['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x3d143f['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x3d143f);const _0x271858={};_0x271858['type']=WS_EVENTS['LOG'],_0x271858[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x248)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x271858);_0x1f8161['alreadyPresent']&&(_0x5ec5af['ZhGXn'](_0x5ec5af[_0x1ebc18(0x1af)],_0x5ec5af[_0x1ebc18(0x1af)])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x17f)],await _0x5ec5af['rbkUr'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x18a)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x41f745['info'](_0x1ebc18(0x271)+_0x2da38a[_0x1ebc18(0x23b)](_0x290bf4)+'\x20'));const _0x1b7d9c=_0x1f8161['gridProfiles'];let _0x353171=_0x1b7d9c[_0x1f8161[_0x1ebc18(0x1c8)]];_0x4f3380[_0x1ebc18(0x213)]&&(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x221)],_0x5ec5af[_0x1ebc18(0x21d)])?_0x353171=_0x1b7d9c[_0x4f3380['gridProfile']]:_0x3fc06d[_0x1ebc18(0x22f)]=!![]);if(_0x5ec5af[_0x1ebc18(0x216)](_0x401707,![])){if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1df)],_0x5ec5af[_0x1ebc18(0x1cb)])){_0x5ec5af[_0x1ebc18(0x1fa)](_0x353171,undefined)&&(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1d9)],_0x5ec5af[_0x1ebc18(0x1d9)])?_0xa23763[_0x1ebc18(0x28e)]():(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21e)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['qeWth'],_0x5ec5af['BcdVO']),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)));global_registry['gridProfileId']=_0x353171['id'],_0x3e855f=_0x1ebc18(0x234)+_0x2ca59b+_0x1ebc18(0x201)+_0x353171[_0x1ebc18(0x1f4)]+_0x1ebc18(0x299),logger['info'](_0x3e855f);const _0x1e22a2={};_0x1e22a2[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x1e22a2[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x1e22a2),_0x1c492c=_0x353171['cloudProvider'],_0x406c74=_0x353171[_0x1ebc18(0x2ab)],_0x36e8e4=_0x353171['region'],_0x334135=_0x353171[_0x1ebc18(0x263)],_0x2e7315=_0x353171[_0x1ebc18(0x264)],_0x2c6946=_0x353171[_0x1ebc18(0x249)],securityGroups=_0x353171['securityGroups'],subnets=_0x353171[_0x1ebc18(0x26d)],_0x2c6229=_0x353171[_0x1ebc18(0x259)],_0x1c4e0f=_0x353171[_0x1ebc18(0x1d5)],_0x58c419=_0x353171['maxNodes'],_0x4d23ef=_0x1f8161[_0x1ebc18(0x26a)],_0x4248e7=_0x1f8161[_0x1ebc18(0x19a)],_0x5ec5af[_0x1ebc18(0x1c6)](_0x353171['privateGrid'],undefined)&&_0x353171[_0x1ebc18(0x254)]&&(_0x5ec5af['koEos'](_0x5ec5af['mEyrj'],_0x5ec5af[_0x1ebc18(0x2a1)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x586023[_0x1ebc18(0x213)]=_0x54e7c0['gridProfile']),_0x5ec5af[_0x1ebc18(0x230)](updateGlobalRegistryWithConfig,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6229,_0x353171,_0x4d23ef,_0x4248e7,_0x1c4e0f,_0x58c419);}else _0xa7f8b9=_0x43fa5b[_0x1ebc18(0x1ad)];}else{if(_0x5ec5af[_0x1ebc18(0x24d)](_0x5ec5af['ygZaZ'],_0x5ec5af[_0x1ebc18(0x199)])){const _0x67b50e=_0x5ec5af[_0x1ebc18(0x1bd)]['split']('|');let _0x47550c=0x0;while(!![]){switch(_0x67b50e[_0x47550c++]){case'0':const _0x490e62={};_0x490e62[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x490e62[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x490e62);continue;case'1':global_registry[_0x1ebc18(0x2ab)]=_0x406c74;continue;case'2':global_registry['browserVersion']=_0x1f8161[_0x1ebc18(0x19a)];continue;case'3':const _0x438ba9={};_0x438ba9[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x1eb)],_0x438ba9['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x438ba9);continue;case'4':global_registry['clusterRegion']=_0x36e8e4;continue;case'5':_0x3e855f='Spawning\x20the\x20grid\x20'+_0x2ca59b+_0x1ebc18(0x23f)+_0x406c74+'\x27';continue;case'6':logger[_0x1ebc18(0x20b)](_0x3e855f);continue;case'7':global_registry[_0x1ebc18(0x26a)]=_0x1f8161[_0x1ebc18(0x26a)];continue;case'8':global_registry['cloudProvider']=_0x1c492c;continue;}break;}}else _0x362438=_0x5ec5af[_0x1ebc18(0x2a4)];}const _0x6f6981=await _0x5ec5af[_0x1ebc18(0x294)](getCloudProviderObject,_0x1c492c,_0x406c74,_0x2ca59b,_0x3e1cbc,webSocketUtils,_0x4f3380),_0x185e10=_0x8ad0c5[_0x1ebc18(0x261)]||{};if(_0x5ec5af['jolGs'](_0x185e10[_0x1c492c],undefined)){logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x296)]);_0x5ec5af[_0x1ebc18(0x232)](_0x8ad0c5['cloudProvider'],undefined)&&(_0x8ad0c5[_0x1ebc18(0x261)]={});_0x8ad0c5[_0x1ebc18(0x261)][_0x1c492c]={};const _0x28b201=await _0x5ec5af[_0x1ebc18(0x279)](inputCloudProviderKeys,_0x1c492c,_0x8ad0c5,_0x6f6981);fs[_0x1ebc18(0x2af)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath),JSON[_0x1ebc18(0x23b)](_0x28b201)),logger['debug'](_0x5ec5af[_0x1ebc18(0x255)]);}else{_0x3e855f=_0x5ec5af[_0x1ebc18(0x29d)];const _0x48c60c={};_0x48c60c[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x48c60c['message']=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x48c60c),logger[_0x1ebc18(0x20b)](_0x3e855f),await _0x6f6981[_0x1ebc18(0x188)](_0x185e10);}_0x6f6981[_0x1ebc18(0x204)]();_0x5ec5af['LVTBi'](_0x1c492c,AZURE)&&_0x6f6981[_0x1ebc18(0x28e)]();let _0xacea99;if(_0x5ec5af[_0x1ebc18(0x26e)](_0x401707,![])){_0x3e855f=_0x1ebc18(0x2ac)+_0x36e8e4+').';const _0x23ae3d={};_0x23ae3d['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x23ae3d[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x23ae3d),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0xab175c=await _0x6f6981[_0x1ebc18(0x24a)]();if(_0xab175c){const _0x38dc81={};_0x38dc81[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x38dc81[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x38dc81,_0x5ec5af[_0x1ebc18(0x250)]),logger['info'](_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a)),_0x401707=!![];}else{const _0x49d2bb={};_0x49d2bb[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x49d2bb['message']=_0x5ec5af[_0x1ebc18(0x202)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x49d2bb),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x202)]);const _0x2596aa=_0x5ec5af['DJldo'](_0x2c6946,null)&&_0x5ec5af['PrfWg'](_0x2c6946,undefined),_0x1884ce=_0x5ec5af[_0x1ebc18(0x19d)](subnets,null)&&_0x5ec5af['CzoDf'](subnets,undefined)&&_0x5ec5af[_0x1ebc18(0x192)](subnets[_0x1ebc18(0x26f)],0x0);if(_0x2596aa){_0x5ec5af[_0x1ebc18(0x1d1)](_0x1884ce,![])&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x272)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x280)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1));const _0x2379e2=await _0x6f6981[_0x1ebc18(0x273)](_0x2c6946);_0x5ec5af[_0x1ebc18(0x1d2)](_0x2379e2,![])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x251)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1e2)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1)):logger[_0x1ebc18(0x20b)](_0x1ebc18(0x18f)+_0x2c6946+'\x20');const _0x3f007e=await _0x6f6981[_0x1ebc18(0x253)](subnets,_0x2c6946);_0x5ec5af['FuPyP'](_0x3f007e[0x0],![])?(_0x3e855f=_0x1ebc18(0x1a9)+JSON['stringify'](_0x3f007e[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2c6946+_0x1ebc18(0x266),await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x20c)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):logger['info'](_0x1ebc18(0x271)+JSON['stringify'](subnets)+'\x20'),await _0x6f6981[_0x1ebc18(0x1e8)](_0x2c6946,subnets);}else{const _0xd8478b=_0x5ec5af[_0x1ebc18(0x2aa)][_0x1ebc18(0x203)]('|');let _0x5c75bf=0x0;while(!![]){switch(_0xd8478b[_0x5c75bf++]){case'0':logger[_0x1ebc18(0x20b)](_0x5ec5af['iiKLf']);continue;case'1':const _0x125f57={};_0x125f57[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x125f57[_0x1ebc18(0x286)]=_0x5ec5af['FJoLc'],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x125f57);continue;case'2':logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x23d)]);continue;case'3':await _0x6f6981[_0x1ebc18(0x1e8)]();continue;case'4':const _0x4754ae={};_0x4754ae['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x4754ae[_0x1ebc18(0x286)]='Cluster\x20created\x20successfully',webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x4754ae);continue;}break;}}}}_0x401707&&_0x5ec5af[_0x1ebc18(0x260)](_0x1c492c,AZURE)&&(await _0x6f6981[_0x1ebc18(0x18c)](),await _0x6f6981[_0x1ebc18(0x1a4)]());const [_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x30df9f,_0x13d6c0]=await _0x5ec5af['oTcuL'](createK8sClient,_0x6f6981);_0x5ec5af[_0x1ebc18(0x246)](_0x401707,![])&&_0x5ec5af[_0x1ebc18(0x1f3)](_0x1c492c,AWS)&&(global_registry['isNewAWSCluster']=!![],_0xacea99=await _0x6f6981[_0x1ebc18(0x1ac)](_0x6ab267,_0x4f3380));try{_0x3f9948=_0x5ec5af[_0x1ebc18(0x27b)](kebabCase,_0x2ca59b),logger[_0x1ebc18(0x20b)](_0x5ec5af['ubkTp']);const _0x34fe22={};_0x34fe22[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x34fe22[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x218)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x34fe22);if(_0x5ec5af[_0x1ebc18(0x228)](_0x3f9948,_0x5ec5af[_0x1ebc18(0x295)])){const _0x2486d6={};_0x2486d6[_0x1ebc18(0x194)]=_0x5ec5af['atkfI'],_0x2486d6['managedBy']=_0x5ec5af[_0x1ebc18(0x1ba)];const _0x39ad57={};_0x39ad57['name']=_0x3f9948,_0x39ad57['annotations']=_0x2486d6;const _0x173141={};_0x173141[_0x1ebc18(0x1ea)]=_0x39ad57;let _0x117860=_0x173141;const _0x188577={};_0x188577[_0x1ebc18(0x20f)]=_0x117860,await _0x6ab267['createNamespace'](_0x188577),logger[_0x1ebc18(0x20b)](_0x5ec5af['BomGy']);}const _0x422e47={};_0x422e47[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x422e47[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x27f)],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x422e47);const _0x44114f={};_0x44114f[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x44114f[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x1e6)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x44114f),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x236)]);let _0x10fba1={};_0x5ec5af[_0x1ebc18(0x1fa)](_0x1c492c,AZURE)&&(_0x10fba1={'clientId':await _0x6f6981[_0x1ebc18(0x20a)](_0x1ebc18(0x29c)+_0x406c74)});await _0x5ec5af['jjvpf'](addGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948,_0x406c74,_0xacea99,_0x30df9f,_0x13d6c0,_0x10fba1),_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b3)],logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x527e64={};_0x527e64[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x527e64[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x527e64),_0x3e855f=_0x5ec5af[_0x1ebc18(0x25f)],logger['info'](_0x3e855f);const _0x4a2218={};_0x4a2218[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x4a2218[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x4a2218),await _0x5ec5af[_0x1ebc18(0x278)](waitForDeployment,_0xc78ecd,_0x3f9948,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4bced1=await _0x5ec5af[_0x1ebc18(0x25a)](getNamespaceUID,_0x6ab267,_0x3f9948);let _0x59ddaf=global_registry[_0x1ebc18(0x22f)]?_0x5ec5af[_0x1ebc18(0x27c)]:_0x5ec5af[_0x1ebc18(0x1dd)];const _0x2579e4={};_0x2579e4[_0x1ebc18(0x1f4)]=_0x59ddaf,_0x2579e4[_0x1ebc18(0x196)]=_0x5ec5af[_0x1ebc18(0x1f1)];let _0x2d9227=await _0x6ab267[_0x1ebc18(0x226)](_0x2579e4),_0xe1d017=_0x6f6981[_0x1ebc18(0x227)](_0x2d9227)+'/'+_0x3f9948,_0x1f0ea0=_0x5ec5af['YPfAc'];try{const _0x59cc3a='https://'+AG_API_URL+_0x1ebc18(0x1ca)+_0x4bced1,_0x347d09=await _0x5ec5af[_0x1ebc18(0x206)](got,_0x59cc3a,_0x535172);(_0x5ec5af[_0x1ebc18(0x1f3)](_0x347d09,null)||_0x5ec5af['ImahP'](_0x347d09,undefined))&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x238)],await _0x5ec5af['gMdmo'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x28a)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));_0x5ec5af[_0x1ebc18(0x285)](_0x347d09[_0x1ebc18(0x290)],0x191)&&(_0x3e855f=_0x5ec5af['tYFrw'],await _0x5ec5af[_0x1ebc18(0x1c9)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1a0)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process['exit'](0x1));_0x5ec5af[_0x1ebc18(0x24d)](_0x347d09['statusCode'],0xc8)&&(_0x3e855f=_0x1ebc18(0x237)+JSON[_0x1ebc18(0x23b)](_0x347d09),await _0x5ec5af['hdowz'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x193)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));const _0x4055b2=JSON[_0x1ebc18(0x1b8)](_0x347d09[_0x1ebc18(0x20f)]);_0x4055b2['route53']&&(_0xe1d017=_0x4055b2[_0x1ebc18(0x18b)],_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x182)]),global_registry[_0x1ebc18(0x22f)]&&(_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x2a4)]);}catch(_0x24df2d){}_0x3e855f=_0x1ebc18(0x29a)+_0xe1d017+'\x20',logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x2c3b86={};_0x2c3b86['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x2c3b86[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x2c3b86),_0x3e855f=_0x1ebc18(0x22b)+_0x1f0ea0+_0x1ebc18(0x1ec)+_0xe1d017+_0x1ebc18(0x1d0),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x73eb35={};_0x73eb35[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x73eb35['message']=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x73eb35);const _0x1af10b={};_0x1af10b[_0x1ebc18(0x29e)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x1af10b['message']='CLI\x20run\x20finished:\x20'+_0xe1d017,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x1af10b),await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);}catch(_0x314408){logger['error'](_0x1ebc18(0x1f6)+_0x314408+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x314408[_0x1ebc18(0x200)]));if(_0x5ec5af[_0x1ebc18(0x260)](_0x401707,![]))try{logger[_0x1ebc18(0x20b)](_0x1ebc18(0x25b)),await _0x5ec5af[_0x1ebc18(0x1b1)](removeGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948),await _0x6f6981[_0x1ebc18(0x27d)](_0x6ab267,global_registry[_0x1ebc18(0x1fc)]);}catch(_0x51c404){logger[_0x1ebc18(0x257)](_0x1ebc18(0x208)+_0x51c404+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x51c404[_0x1ebc18(0x200)]));}throw _0x314408;}}catch(_0x2bf341){const _0xe45d72=_0x1ebc18(0x241)+_0x2bf341+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x2bf341[_0x1ebc18(0x200)]);if(_0x3e1cbc){const _0x468df5={};_0x468df5[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x468df5[_0x1ebc18(0x286)]=_0xe45d72,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x468df5,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);const _0x499325={};_0x499325[_0x1ebc18(0x257)]=_0xe45d72,await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1da)],_0x499325,_0x4f3380),logger[_0x1ebc18(0x257)](_0xe45d72);}process[_0x1ebc18(0x1de)](0x0);};
1
+ function a9_0x3167(_0x59bbd2,_0x497d13){const _0x55324f=a9_0x5532();return a9_0x3167=function(_0x316711,_0x15effd){_0x316711=_0x316711-0xf1;let _0x46aaa7=_0x55324f[_0x316711];return _0x46aaa7;},a9_0x3167(_0x59bbd2,_0x497d13);}const a9_0x23dbbb=a9_0x3167;(function(_0x52d68f,_0x53e9d6){const _0x1f7272=a9_0x3167,_0x393475=_0x52d68f();while(!![]){try{const _0xddf8af=parseInt(_0x1f7272(0x226))/0x1+parseInt(_0x1f7272(0x1b2))/0x2*(parseInt(_0x1f7272(0x1da))/0x3)+-parseInt(_0x1f7272(0x13d))/0x4+-parseInt(_0x1f7272(0x231))/0x5+parseInt(_0x1f7272(0x150))/0x6+parseInt(_0x1f7272(0x12d))/0x7*(-parseInt(_0x1f7272(0x1f2))/0x8)+-parseInt(_0x1f7272(0x147))/0x9*(-parseInt(_0x1f7272(0x1d6))/0xa);if(_0xddf8af===_0x53e9d6)break;else _0x393475['push'](_0x393475['shift']());}catch(_0x20d0db){_0x393475['push'](_0x393475['shift']());}}}(a9_0x5532,0x475e1));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x23dbbb(0x1fe)),got=require(a9_0x23dbbb(0x225)),{v4:uuidv4}=require(a9_0x23dbbb(0x1ff)),webSocketUtils=require(a9_0x23dbbb(0x215)),{logger}=require(a9_0x23dbbb(0x1a5)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x23dbbb(0x198)),{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_0x23dbbb(0x1d3)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x23dbbb(0x16d)),{createK8sClient}=require(a9_0x23dbbb(0x161)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a9_0x5532(){const _0x181d23=['suCid','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','1|8|5|2|3|6|4|0|7','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','ERROR','ingress-nginx-controller','QXFPY','cUWdj','aNegG','vXfAC','../../config/logger','namespace','<PasswordPlaceholder>','kxfgm','izkhG','jSMic','help','mbXkt','lrMSC','tRqho','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','sRUXo','AxMje','30538GhRPBb','securityGroups','description','managedBy','epilogue','oKPpq','eetsq','jQSbj','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','isNewAWSCluster','PIxll','rZSkF','true','sendEventToBackend','grid-profile','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','HzIZY','cwfOr','defaultGridProfile','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','RafyX','region','VwHeG','dUxbR','OpCdS','Spawning\x20grid\x20on\x20to\x20the\x20cluster','aQRoi','GET','KyDDE','info','CLI\x20run\x20started','jZIgb','dbVrp','../../config/constants','builder','https','8330RhXKRs','fSfQx','bKqMd','metadata','6gTIGCT','https://','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','get-grid-url-null-response','loavs','exit','Browserstack','XIXky','Uxyyd','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','pWUQq','body','Cluster\x20created\x20successfully','bstackAccesskey','RpwnD','stringify','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.','vlHPx','qCgRp','kYdIA','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CiAKg','vpc','pre-spawned-subnets-not-selected','7312RBbRnK','BBkbF','fNhag','HLaWt','mAYWv','RUHCS','http','Azemq','username','BWoTQ','CLI\x20run\x20finished:\x20','/packages/cli/create-grid-checks','reconnecting-websocket','uuid','cluster-name','agMFb','doMAR','error','Cluster:\x20','Create\x20a\x20private/public\x20grid.','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','grid','bbWtp','ingress-nginx','IpmJk','clusterRegion','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NevID','PdhzW','createOtherResources','eEVPK','mspbp','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ksdSs','ZEgMR','../../utils/webSocketUtils','naaRT','pre-spawned-invalid-subnets','gYwzj','readNamespacedService','Will\x20be\x20spawning\x20the\x20grid\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','jAGkV','/wd/hub','create','cbWxZ','create-grid-checks-null-response','ABEkM','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','mmNSq','VPWIu','got','7144nxAPyX','desc','message','lynGr','2|3|0|1|4','6|1|0|7|3|2|5|4|8','LZQBd','NyWZU','VOzTc','mwVQi','existsSync','1904515hgjNYh','VQYWt','wAhDL','Oktvh','Grid\x20spawned\x20on\x20the\x20cluster','wnzub','ZUnKO','readFileSync','djOdO','usage','vSfGr','fsdrX','Found\x20Subnets:\x20','debug','ToYaR','CfGzI','WebSocket','browserVersion','pOvOX','WBdJs','private-ingress-nginx-controller','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','create-grid-checks-non-200','qQiJd','warn','TMJdK','VEohJ','eveLr','nqTSD','IOECH','createNamespace','Found\x20VPC:\x20','create-grid-checks-auth-failed','SMaPM','isPrivateGrid','RWluq','hubVersion','flGco','://','cuQvH','cloudProvider','LYslF','name','replace','instanceType','dnDlh','wwXAr','handler','QkTCo','RBthg','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','minNodes','private-grid','pre-spawned-invalid-vpc','toLowerCase','length','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ZelVk','clusterName','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','mBHXC','subnets','setupNewCluster','SMJqx','type','argv','\x20in\x20existing\x20cluster\x20\x27','2009BbRXpO','create-grid-checks-invalid-profile','vSamH','CLI_RUN_STARTED','vDAXM','jmubA','Spawning\x20the\x20grid\x20','updateClusterAlreadyPresent','KEyvq','AVdAv','alreadyPresent','dEPBY','tLYYk','KGJrG','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','iLXjU','325376zrCKJy','init-not-called','Namespace\x20created','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridName','<UsernamePlaceholder>','Grid\x20profile\x20fetched\x20from\x20backend','UdAcS','VKYsT','FipHg','6948BeycZJ','isClusterPresent','gridProfile','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','hLLoR','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','GEBZF','cpvsd','Cpduo','2016768aCZPre','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','\x20are\x20not\x20present\x20in\x20VPC:\x20','requestId','split','SxVjJ','createdBy','CLI_RUN_FINISHED','hklSr','PGbNV','deleteCluster','prespawned-cluster-args-not-passed','aYzTi','uFtRU','newCluster','JbspO','password','../../utils/createk8sClient','ncwBZ','Create\x20a\x20new\x20Automation\x20grid.','mCBth','parse','route53','gridProfileId','Creating\x20namespace','faiOS','LFRmj','QuOeb','options','../../utils/gridComponents','Ycnzt','vWzNa','getGridHostname','turboscale-managed-identity-','/packages/cli/get-grid-url?gridIdentifier=','aCpoO','ltuMN','stack','zgrAY','uDgXZ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','grid-name','JZRXi','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','QNliN','sendResourceDataToHST','\x20using\x20\x27','isSubnetsValid','Deleting\x20the\x20CloudFormation\x20Stacks','Cluster\x20','oJceA','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','ksiZf','maxNodes','concurrency','LOG','statusCode','annotations','command','lCFaq','lcPhP','LiQza','gagnj','heddl','create-grid-called','delay','VBCRi','MDBuY','Adding\x20Websocket\x20listeners','privateGrid','cloud-provider','fhknC','../../utils/utilityMethods','PioRd','oMCsj'];a9_0x5532=function(){return _0x181d23;};return a9_0x5532();}exports[a9_0x23dbbb(0x18a)]=a9_0x23dbbb(0x207),exports[a9_0x23dbbb(0x227)]=a9_0x23dbbb(0x163),exports[a9_0x23dbbb(0x1d4)]=function(_0x406151){const _0x377401=a9_0x23dbbb,_0x2f6406={};_0x2f6406[_0x377401(0x1e1)]=_0x377401(0x11c),_0x2f6406[_0x377401(0xf1)]='string',_0x2f6406[_0x377401(0x21f)]=_0x377401(0x14c),_0x2f6406[_0x377401(0x105)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2f6406['ZelVk']=_0x377401(0xfe),_0x2f6406[_0x377401(0x1f9)]=_0x377401(0x13b),_0x2f6406[_0x377401(0x103)]=_0x377401(0x205),_0x2f6406['LiQza']=_0x377401(0x1ab);const _0x4af667=_0x2f6406,_0x3e3780={};_0x3e3780[_0x377401(0x1b4)]=_0x4af667[_0x377401(0x1e1)],_0x3e3780[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x2b3e02={};_0x2b3e02['description']=_0x4af667[_0x377401(0x21f)],_0x2b3e02[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0xec9c55={};_0xec9c55['description']=_0x4af667[_0x377401(0x105)],_0xec9c55[_0x377401(0x12a)]=_0x4af667['djOdO'];const _0x3c7b8c={};_0x3c7b8c[_0x377401(0x1b4)]=_0x4af667[_0x377401(0x123)],_0x3c7b8c[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x3ce0fd={};_0x3ce0fd['description']=_0x4af667[_0x377401(0x1f9)],_0x3ce0fd[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x10bbea={};_0x10bbea[_0x377401(0x1b4)]=_0x4af667[_0x377401(0x103)],_0x10bbea[_0x377401(0x12a)]=_0x4af667[_0x377401(0xf1)];const _0x27ba11={};return _0x27ba11['grid-name']=_0x3e3780,_0x27ba11['grid-profile']=_0x2b3e02,_0x27ba11['cluster-name']=_0xec9c55,_0x27ba11[_0x377401(0x196)]=_0x3c7b8c,_0x27ba11['region']=_0x3ce0fd,_0x27ba11[_0x377401(0x11e)]=_0x10bbea,_0x406151['usage'](HELP_HEADER_MESSAGE[_0x377401(0x21e)])[_0x377401(0x1b6)](HELP_FOOTER_MESSAGE)[_0x377401(0x16c)](_0x27ba11)[_0x377401(0x1ab)](_0x4af667[_0x377401(0x18d)])[_0x377401(0x12b)];},exports[a9_0x23dbbb(0x118)]=async function(_0x50f118){const _0x3ab3f6=a9_0x23dbbb,_0x5a7d4d={'jSMic':_0x3ab3f6(0x22b),'mCBth':_0x3ab3f6(0x1d0),'GvKxr':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','CfGzI':'string','AxMje':_0x3ab3f6(0x14c),'stLmN':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','bbWtp':_0x3ab3f6(0xfe),'hgYaJ':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','LkEXN':_0x3ab3f6(0x205),'mIpAF':_0x3ab3f6(0x1ab),'MZBYc':_0x3ab3f6(0x1d5),'KyDDE':'9|3|6|13|2|11|7|0|10|14|1|12|5|4|8','LFRmj':function(_0x1a12af,_0x2edcf9){return _0x1a12af!==_0x2edcf9;},'VWIGr':function(_0x336d57,_0xcc15ce,_0x3b8c52,_0x4ab6b5,_0x270a65,_0x5668c6,_0x410d96,_0x9a9af7,_0x43e154,_0xad0be,_0x17afca,_0x96534f){return _0x336d57(_0xcc15ce,_0x3b8c52,_0x4ab6b5,_0x270a65,_0x5668c6,_0x410d96,_0x9a9af7,_0x43e154,_0xad0be,_0x17afca,_0x96534f);},'IOECH':_0x3ab3f6(0x1f8),'mmNSq':_0x3ab3f6(0x101),'RafyX':function(_0x1bb260,_0x55fce8){return _0x1bb260===_0x55fce8;},'cwfOr':_0x3ab3f6(0x203),'pWUQq':function(_0x477d7a){return _0x477d7a();},'zgrAY':_0x3ab3f6(0x18e),'lRbta':_0x3ab3f6(0x11b),'eEVPK':function(_0x23fa12,_0x3da331,_0x2668c3,_0x40fcb8,_0x362ae7,_0x58f5d9,_0x31f8e3){return _0x23fa12(_0x3da331,_0x2668c3,_0x40fcb8,_0x362ae7,_0x58f5d9,_0x31f8e3);},'Uxyyd':_0x3ab3f6(0x190),'QuOeb':_0x3ab3f6(0x13e),'rHnMS':_0x3ab3f6(0x142),'oKPpq':_0x3ab3f6(0x1a7),'dEPBY':_0x3ab3f6(0x194),'RUHCS':function(_0x27a591,_0x6a4d44){return _0x27a591===_0x6a4d44;},'PdhzW':_0x3ab3f6(0x1c9),'UdAcS':function(_0x47bf15,_0x2b281e){return _0x47bf15===_0x2b281e;},'PioRd':'XWIlm','fsdrX':_0x3ab3f6(0x1f5),'iLXjU':_0x3ab3f6(0x19c),'LYslF':function(_0x3aa574,_0x198b71,_0x4e971c,_0x2a71af,_0x2fbf9f,_0x242620,_0x52e396,_0x33fd95){return _0x3aa574(_0x198b71,_0x4e971c,_0x2a71af,_0x2fbf9f,_0x242620,_0x52e396,_0x33fd95);},'dwrkg':_0x3ab3f6(0x15b),'SxVjJ':'mLriF','HzIZY':_0x3ab3f6(0x237),'mwVQi':_0x3ab3f6(0x14a),'HLhpB':'non-aws-azure-cluster','ZEgMR':function(_0x4dd294,_0xe373dc){return _0x4dd294===_0xe373dc;},'KtaaN':_0x3ab3f6(0x1be),'qQiJd':_0x3ab3f6(0x18c),'cuQvH':_0x3ab3f6(0x11a),'VBCRi':function(_0x18109f,_0x1674b2){return _0x18109f===_0x1674b2;},'ksiZf':_0x3ab3f6(0x17c),'eveLr':_0x3ab3f6(0x1e8),'wAhDL':_0x3ab3f6(0x14f),'CiyVY':_0x3ab3f6(0x1cd),'suCid':function(_0x119001,_0x42a5eb,_0x57fca2){return _0x119001(_0x42a5eb,_0x57fca2);},'tLYYk':function(_0x228481,_0x1b2d8f){return _0x228481===_0x1b2d8f;},'sRUXo':_0x3ab3f6(0x131),'jFdxQ':function(_0x399100,_0x3c3b41,_0xbc067f){return _0x399100(_0x3c3b41,_0xbc067f);},'jQSbj':function(_0xf07601,_0xcf8cde){return _0xf07601===_0xcf8cde;},'aCpoO':function(_0x712c1c,_0x7f58e3){return _0x712c1c===_0x7f58e3;},'IpmJk':function(_0xb4ff54,_0x1612ed){return _0xb4ff54===_0x1612ed;},'mDMeN':_0x3ab3f6(0x22c),'wnzub':_0x3ab3f6(0x1d1),'VQYWt':_0x3ab3f6(0x122),'aQRoi':function(_0x2f638a,_0xb0d95b,_0xc4c3f3,_0x161e2b,_0x343fe4,_0x1d21db,_0xa4f49a,_0x1eb9a8){return _0x2f638a(_0xb0d95b,_0xc4c3f3,_0x161e2b,_0x343fe4,_0x1d21db,_0xa4f49a,_0x1eb9a8);},'lrMSC':_0x3ab3f6(0x220),'BBkbF':function(_0x383aef,_0x5742af){return _0x383aef===_0x5742af;},'AVdAv':'zJZDP','MDBuY':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','pOvOX':function(_0x51572b,_0x4141c3,_0x53b759,_0x3102cb,_0x1c48b6,_0x787328,_0x64acb7,_0xdb6c18){return _0x51572b(_0x4141c3,_0x53b759,_0x3102cb,_0x1c48b6,_0x787328,_0x64acb7,_0xdb6c18);},'kxfgm':_0x3ab3f6(0x109),'oJceA':function(_0x27c1e2,_0x28cb1b){return _0x27c1e2!==_0x28cb1b;},'uDgXZ':_0x3ab3f6(0x211),'bKqMd':_0x3ab3f6(0xff),'pEgVX':_0x3ab3f6(0x143),'tetJC':_0x3ab3f6(0x16e),'mAYWv':_0x3ab3f6(0x1bd),'FipHg':'create-grid-checks-grid-already-exists','VsMMj':_0x3ab3f6(0x218),'BWoTQ':_0x3ab3f6(0x119),'nrsfY':function(_0x2a86d6,_0x1ede24){return _0x2a86d6===_0x1ede24;},'SMaPM':function(_0x146aa2,_0x2cf0a8){return _0x146aa2!==_0x2cf0a8;},'oMCsj':_0x3ab3f6(0x162),'dbVrp':function(_0x24625d,_0x501164){return _0x24625d===_0x501164;},'KEyvq':'dpxBh','NevID':_0x3ab3f6(0x183),'hklSr':function(_0x2092c8,_0x2475ef,_0x1cf75f,_0x456ef3,_0x2545b6,_0x7051a1,_0x16d86c,_0x19cfa3){return _0x2092c8(_0x2475ef,_0x1cf75f,_0x456ef3,_0x2545b6,_0x7051a1,_0x16d86c,_0x19cfa3);},'fNhag':_0x3ab3f6(0x12e),'VwHeG':function(_0x33b5ef,_0x8661ba){return _0x33b5ef===_0x8661ba;},'loavs':function(_0x1f14f9,_0x3a39f7){return _0x1f14f9===_0x3a39f7;},'VPWIu':_0x3ab3f6(0x14b),'YFDZF':_0x3ab3f6(0x1bc),'wwXAr':_0x3ab3f6(0x159),'qCgRp':function(_0x34ebee,_0x3ce4b7,_0x54013f,_0x4102ee,_0x375132,_0x4a4243,_0x485627,_0x737af5,_0x2564df,_0x3bee46,_0x2722bc,_0xfdc3a5){return _0x34ebee(_0x3ce4b7,_0x54013f,_0x4102ee,_0x375132,_0x4a4243,_0x485627,_0x737af5,_0x2564df,_0x3bee46,_0x2722bc,_0xfdc3a5);},'aYzTi':_0x3ab3f6(0x116),'faiOS':'TobSh','pFTAh':'PYOHK','lynGr':function(_0x1edeb1,_0x525747){return _0x1edeb1===_0x525747;},'heddl':_0x3ab3f6(0xfc),'izkhG':'IlZYe','naaRT':_0x3ab3f6(0x19d),'Oktvh':function(_0x5938c6,_0x7f0d70,_0x10db0e,_0x49f596,_0x13c641,_0x3aa573,_0x44f6b4){return _0x5938c6(_0x7f0d70,_0x10db0e,_0x49f596,_0x13c641,_0x3aa573,_0x44f6b4);},'JZRXi':function(_0x11e419,_0x16d916){return _0x11e419===_0x16d916;},'VOzTc':_0x3ab3f6(0x1af),'RWluq':function(_0x5cbb4e,_0x39fcd4){return _0x5cbb4e!=_0x39fcd4;},'flGco':function(_0x1643e9,_0x3a3254){return _0x1643e9!==_0x3a3254;},'ToYaR':function(_0x4ce7df,_0x5819a3){return _0x4ce7df>_0x5819a3;},'vSfGr':_0x3ab3f6(0x1ba),'agMFb':function(_0x5113b6,_0xb1b6cf,_0x34f7a0,_0x381769,_0x1c9ba3,_0x16eb17,_0x5a579b,_0x6d0d96){return _0x5113b6(_0xb1b6cf,_0x34f7a0,_0x381769,_0x1c9ba3,_0x16eb17,_0x5a579b,_0x6d0d96);},'pNMqu':_0x3ab3f6(0x1f1),'uFtRU':function(_0x13955e,_0x4e6691){return _0x13955e===_0x4e6691;},'mBHXC':_0x3ab3f6(0x20c),'cUWdj':_0x3ab3f6(0x11f),'TMJdK':function(_0x47ad9b,_0x408165){return _0x47ad9b===_0x408165;},'cpvsd':_0x3ab3f6(0x217),'lCFaq':_0x3ab3f6(0x22a),'QXFPY':_0x3ab3f6(0x1e6),'VKYsT':_0x3ab3f6(0x1ea),'eetsq':function(_0x1bc337,_0x196ad7){return _0x1bc337(_0x196ad7);},'hGcsB':function(_0x2601d8,_0x37b325){return _0x2601d8(_0x37b325);},'fujUi':_0x3ab3f6(0x168),'EzrHo':'default','ABEkM':_0x3ab3f6(0x1e0),'doMAR':'Namespace\x20Created','fhknC':_0x3ab3f6(0x13f),'aNegG':_0x3ab3f6(0x1cb),'NyWZU':_0x3ab3f6(0x21b),'mbXkt':function(_0x1e8124,_0x5e92c3){return _0x1e8124===_0x5e92c3;},'GcwRA':function(_0x2061ff,_0x3a24c4,_0x2b1809,_0x1fe824,_0x268505,_0x1003bd,_0x46a891,_0x3c5ce2,_0x39a8f5,_0x531012,_0x4713d0){return _0x2061ff(_0x3a24c4,_0x2b1809,_0x1fe824,_0x268505,_0x1003bd,_0x46a891,_0x3c5ce2,_0x39a8f5,_0x531012,_0x4713d0);},'vXfAC':_0x3ab3f6(0x235),'GEBZF':_0x3ab3f6(0x1e3),'CiAKg':function(_0x878179,_0xe2e086,_0x48c84,_0x3f60ca,_0x33b117){return _0x878179(_0xe2e086,_0x48c84,_0x3f60ca,_0x33b117);},'SMJqx':function(_0x4b1eec,_0x4e661e,_0x49e78e){return _0x4b1eec(_0x4e661e,_0x49e78e);},'ksdSs':_0x3ab3f6(0xfd),'vlHPx':_0x3ab3f6(0x1a0),'vSamH':_0x3ab3f6(0x209),'tRqho':function(_0x317e53,_0x1ae803,_0x3c3038){return _0x317e53(_0x1ae803,_0x3c3038);},'ltuMN':function(_0x239d3a,_0x1f05bd){return _0x239d3a===_0x1f05bd;},'kYdIA':_0x3ab3f6(0x1c5),'vWzNa':_0x3ab3f6(0x1dd),'fhuoA':_0x3ab3f6(0x140),'OpCdS':'get-grid-url-auth-failed','jAGkV':function(_0x2bb52b,_0x4ade4d){return _0x2bb52b!==_0x4ade4d;},'dFVUI':'get-grid-url-non-200','fSfQx':function(_0x5bc245,_0x3c4705){return _0x5bc245===_0x3c4705;},'jmubA':_0x3ab3f6(0x180),'aalNE':function(_0x5e0591,_0x4e1e04,_0x1817a5,_0x50ec03,_0x346760,_0x3136d7){return _0x5e0591(_0x4e1e04,_0x1817a5,_0x50ec03,_0x346760,_0x3136d7);},'JbspO':function(_0xd531f8,_0x16f875,_0x28ac87,_0x3b6e20,_0x3cb333,_0x1ae540,_0x11809b){return _0xd531f8(_0x16f875,_0x28ac87,_0x3b6e20,_0x3cb333,_0x1ae540,_0x11809b);},'KGJrG':'grid-spawning-failed'};let _0x3e4203=![],_0x2dd9db=![],_0x4da45f,_0x164723,_0x3a4877,_0x183c6c,_0x1d107a,_0x21e934,_0x36775b,_0x324f05,_0x17384c,_0x37394d,_0xa65f22,_0xa1ab4e,_0x11fd0f,_0x544a09,_0x4ab4b6=0x1,_0x391fdf=0xe;try{global_registry[_0x3ab3f6(0x153)]=_0x5a7d4d[_0x3ab3f6(0x1e4)](uuidv4),global_registry[_0x3ab3f6(0x10b)]=![];if(!fs[_0x3ab3f6(0x230)](_0x5a7d4d[_0x3ab3f6(0x1e4)](getCredentialsPath))){if(_0x5a7d4d['LFRmj'](_0x5a7d4d[_0x3ab3f6(0x176)],_0x5a7d4d[_0x3ab3f6(0x176)])){const _0x501ecc=_0x5a7d4d[_0x3ab3f6(0x1aa)][_0x3ab3f6(0x154)]('|');let _0x41264f=0x0;while(!![]){switch(_0x501ecc[_0x41264f++]){case'0':_0x531ae6[_0x3ab3f6(0x1cf)](_0x14dc6a);continue;case'1':_0x37efd2=_0x3ab3f6(0x133)+_0x521432+_0x3ab3f6(0x12c)+_0x421296+'\x27';continue;case'2':_0x29804f[_0x3ab3f6(0x20b)]=_0x4ae224;continue;case'3':_0x59d396[_0x3ab3f6(0x111)]=_0x4a34cc;continue;case'4':_0x3bf4c5[_0x3ab3f6(0x10d)]=_0xa9258a[_0x3ab3f6(0x10d)];continue;case'5':_0x22b990['clusterName']=_0x325522;continue;case'6':const _0x1c886e={};_0x1c886e[_0x3ab3f6(0x12a)]=_0x193e56[_0x3ab3f6(0x130)],_0x1c886e['message']=_0x5a7d4d['mCBth'],_0x257092[_0x3ab3f6(0x1bf)](_0xe23cdd,_0x1c886e);continue;case'7':const _0x1cca99={};_0x1cca99[_0x3ab3f6(0x12a)]=_0x109105[_0x3ab3f6(0x187)],_0x1cca99[_0x3ab3f6(0x228)]=_0x18b581,_0x8dc781[_0x3ab3f6(0x1bf)](_0x2c8ce2,_0x1cca99);continue;case'8':_0x31da23[_0x3ab3f6(0xfa)]=_0x3daadd[_0x3ab3f6(0xfa)];continue;}break;}}else console[_0x3ab3f6(0x203)](_0x5a7d4d['lRbta']),await _0x5a7d4d[_0x3ab3f6(0x210)](sendInstrumentationEvent,_0x50f118,_0x5a7d4d['Uxyyd'],messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x16b)],null,_0x50f118),process['exit'](0x1);}await _0x5a7d4d[_0x3ab3f6(0x210)](sendInstrumentationEvent,_0x50f118,_0x5a7d4d[_0x3ab3f6(0x1e2)],messageTypes['INFO'],null,null,_0x50f118);const _0x70e9c1=JSON[_0x3ab3f6(0x165)](fs[_0x3ab3f6(0x238)](_0x5a7d4d['pWUQq'](getCredentialsPath)));global_registry['bstackUsername']=_0x70e9c1[_0x3ab3f6(0x1e0)][_0x3ab3f6(0x1fa)],global_registry[_0x3ab3f6(0x1e7)]=_0x70e9c1[_0x3ab3f6(0x1e0)][_0x3ab3f6(0x160)];const _0x2fd106=WS_ENDPOINT[_0x3ab3f6(0x114)](_0x5a7d4d['rHnMS'],_0x70e9c1[_0x3ab3f6(0x1e0)]['username'])['replace'](_0x5a7d4d[_0x3ab3f6(0x1b7)],_0x70e9c1['Browserstack'][_0x3ab3f6(0x160)]),_0x11c452={};_0x11c452[_0x3ab3f6(0xf9)]=ws,_0x11c452['connectionTimeout']=0x36ee80,_0xa1ab4e=new ReconnectingWebSocket(_0x2fd106,[],_0x11c452),logger[_0x3ab3f6(0xf6)](_0x5a7d4d[_0x3ab3f6(0x138)]),webSocketUtils['addListeners'](_0xa1ab4e,_0x50f118['user'],_0x50f118[_0x3ab3f6(0x160)]);const _0xd81cf0=_0x50f118['gridName']||DEFAULT_GRID_NAME;if(_0x50f118['clusterName']||_0x50f118[_0x3ab3f6(0x111)]||_0x50f118['region']){if(_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x5a7d4d[_0x3ab3f6(0x20e)],_0x5a7d4d[_0x3ab3f6(0x20e)])){!(_0x50f118[_0x3ab3f6(0x124)]&&_0x50f118['cloudProvider']&&_0x50f118[_0x3ab3f6(0x1c7)])&&(_0x5a7d4d[_0x3ab3f6(0x144)](_0x5a7d4d[_0x3ab3f6(0x199)],_0x5a7d4d[_0x3ab3f6(0xf4)])?_0x47447a[_0x3ab3f6(0x1cf)](_0x3ab3f6(0xf5)+_0x17d686[_0x3ab3f6(0x1e9)](_0x5510ee)+'\x20'):(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x13c)],await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['dwrkg'],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger['error'](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x50f118[_0x3ab3f6(0x111)][_0x3ab3f6(0x120)]())){if(_0x5a7d4d[_0x3ab3f6(0x1c6)](_0x5a7d4d[_0x3ab3f6(0x155)],_0x5a7d4d[_0x3ab3f6(0x1c2)])){const _0x58854f={};_0x58854f[_0x3ab3f6(0x1b4)]=_0x5a7d4d['GvKxr'],_0x58854f[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x23ecef={};_0x23ecef['description']=_0x5a7d4d[_0x3ab3f6(0x1b1)],_0x23ecef[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x5d494d={};_0x5d494d[_0x3ab3f6(0x1b4)]=_0x5a7d4d['stLmN'],_0x5d494d[_0x3ab3f6(0x12a)]=_0x5a7d4d['CfGzI'];const _0x39a7bb={};_0x39a7bb['description']=_0x5a7d4d[_0x3ab3f6(0x208)],_0x39a7bb['type']=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x436553={};_0x436553['description']=_0x5a7d4d['hgYaJ'],_0x436553[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x590178={};_0x590178['description']=_0x5a7d4d['LkEXN'],_0x590178[_0x3ab3f6(0x12a)]=_0x5a7d4d[_0x3ab3f6(0xf8)];const _0x5ceb32={};return _0x5ceb32[_0x3ab3f6(0x179)]=_0x58854f,_0x5ceb32[_0x3ab3f6(0x1c0)]=_0x23ecef,_0x5ceb32[_0x3ab3f6(0x200)]=_0x5d494d,_0x5ceb32[_0x3ab3f6(0x196)]=_0x39a7bb,_0x5ceb32[_0x3ab3f6(0x1c7)]=_0x436553,_0x5ceb32[_0x3ab3f6(0x11e)]=_0x590178,_0x776098[_0x3ab3f6(0xf2)](_0x23c9d5[_0x3ab3f6(0x21e)])[_0x3ab3f6(0x1b6)](_0x1d4e88)[_0x3ab3f6(0x16c)](_0x5ceb32)['help'](_0x5a7d4d['mIpAF'])['argv'];}else _0x4da45f=_0x5a7d4d[_0x3ab3f6(0x22f)],await _0x5a7d4d['LYslF'](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['HLhpB'],_0x5a7d4d['cwfOr']),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1);}_0x50f118['privateGrid']&&_0x5a7d4d[_0x3ab3f6(0x214)](_0x50f118[_0x3ab3f6(0x195)]['toLowerCase'](),_0x5a7d4d['KtaaN'])&&(_0x5a7d4d[_0x3ab3f6(0x16a)](_0x5a7d4d['qQiJd'],_0x5a7d4d[_0x3ab3f6(0x100)])?_0x523e70=!![]:global_registry['isPrivateGrid']=!![]);global_registry['cloudProvider']=_0x50f118[_0x3ab3f6(0x111)],global_registry[_0x3ab3f6(0x20b)]=_0x50f118[_0x3ab3f6(0x1c7)],global_registry[_0x3ab3f6(0x124)]=_0x50f118['clusterName'];const _0x10417f=await _0x5a7d4d['eEVPK'](getCloudProviderObject,_0x50f118[_0x3ab3f6(0x111)],_0x50f118[_0x3ab3f6(0x124)],_0xd81cf0,_0xa1ab4e,webSocketUtils,_0x50f118),_0xfca41e=await _0x10417f[_0x3ab3f6(0x148)]();if(!_0xfca41e)_0x5a7d4d['RafyX'](_0x5a7d4d[_0x3ab3f6(0x110)],_0x5a7d4d[_0x3ab3f6(0x110)])?(logger[_0x3ab3f6(0x1cf)](_0x3ab3f6(0x204)+_0x50f118['clusterName']+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x3e4203=![],_0x2dd9db=!![]):_0x5bdda3=null;else{if(_0x5a7d4d[_0x3ab3f6(0x192)](_0x5a7d4d[_0x3ab3f6(0x184)],_0x5a7d4d[_0x3ab3f6(0x184)]))_0x3e4203=!![];else throw new _0x43a1d4(_0x3ab3f6(0x181)+_0x4d973b+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}_0x3a4877=_0x50f118[_0x3ab3f6(0x124)],_0x164723=_0x50f118[_0x3ab3f6(0x111)][_0x3ab3f6(0x120)](),_0x183c6c=_0x50f118[_0x3ab3f6(0x1c7)];}else _0x162585[_0x3ab3f6(0x10b)]=!![];}else _0x50f118[_0x3ab3f6(0x149)]&&(_0x5a7d4d['UdAcS'](_0x5a7d4d[_0x3ab3f6(0x104)],_0x5a7d4d[_0x3ab3f6(0x233)])?_0x1faf63=null:global_registry[_0x3ab3f6(0x149)]=_0x50f118[_0x3ab3f6(0x149)]);global_registry['gridName']=_0x50f118[_0x3ab3f6(0x141)];const _0x20142c={'method':_0x5a7d4d['CiyVY'],'headers':_0x5a7d4d[_0x3ab3f6(0x19b)](getAuthHeader,_0x70e9c1[_0x3ab3f6(0x1e0)][_0x3ab3f6(0x1fa)],_0x70e9c1[_0x3ab3f6(0x1e0)]['password']),'throwHttpErrors':![]},_0x2c3153={};_0x2c3153[_0x3ab3f6(0x141)]=_0xd81cf0;const _0xfebe02=_0x2c3153;_0x2dd9db&&(_0x5a7d4d[_0x3ab3f6(0x139)](_0x5a7d4d[_0x3ab3f6(0x1b0)],_0x5a7d4d[_0x3ab3f6(0x1b0)])?(_0xfebe02[_0x3ab3f6(0x1c7)]=_0x183c6c,_0xfebe02[_0x3ab3f6(0x111)]=_0x164723,_0xfebe02[_0x3ab3f6(0x15e)]=!![]):(_0x12807c=_0x12f9ec[_0x3ab3f6(0x166)],_0x6e022a=_0x5a7d4d['MZBYc']));const _0x42bf27='https://'+AG_API_URL+_0x3ab3f6(0x1fd),_0x2b8f77={'searchParams':_0xfebe02,'throwHttpErrors':![],..._0x20142c},_0x5052e6=_0x2b8f77,_0x48806a=await _0x5a7d4d['jFdxQ'](got,_0x42bf27,_0x5052e6);if(_0x5a7d4d[_0x3ab3f6(0x1b9)](_0x48806a,null)||_0x5a7d4d[_0x3ab3f6(0x173)](_0x48806a,undefined)){if(_0x5a7d4d[_0x3ab3f6(0x20a)](_0x5a7d4d['mDMeN'],_0x5a7d4d[_0x3ab3f6(0x236)])){const _0xe9fcea=_0x5a7d4d[_0x3ab3f6(0x1ce)][_0x3ab3f6(0x154)]('|');let _0x502ea3=0x0;while(!![]){switch(_0xe9fcea[_0x502ea3++]){case'0':_0x195759=null;continue;case'1':_0x3d4379=_0x209035[_0x3ab3f6(0x185)];continue;case'2':_0x244c88=_0x2d37dd[_0x3ab3f6(0x115)];continue;case'3':_0x14157e[_0x3ab3f6(0x1cf)](_0x22f2fd);continue;case'4':_0x5a7d4d['LFRmj'](_0x23ae2f[_0x3ab3f6(0x195)],_0x51f91e)&&_0x297665[_0x3ab3f6(0x195)]&&(_0x35fdd3[_0x3ab3f6(0x10b)]=!![]);continue;case'5':_0x108a9f=_0x4fe806[_0x3ab3f6(0xfa)];continue;case'6':const _0x4a857f={};_0x4a857f[_0x3ab3f6(0x12a)]=_0x1aae51[_0x3ab3f6(0x187)],_0x4a857f[_0x3ab3f6(0x228)]=_0x5f1625,_0x14dada[_0x3ab3f6(0x1bf)](_0x219db8,_0x4a857f);continue;case'7':_0x4c71bc=null;continue;case'8':_0x5a7d4d['VWIGr'](_0x107951,_0x449b2a,_0x383586,_0x324441,_0x405ae7,_0x4adb3c,_0x1284f3,_0x51ea7f,_0x2f691c,_0x3eb144,_0x12b79f,_0x4ff053);continue;case'9':_0x1aaebc='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x818129;continue;case'10':_0x5090b5=_0x3bcaea['s3bucket'];continue;case'11':_0x64e686=null;continue;case'12':_0xd25f6f=_0x3c1c17[_0x3ab3f6(0x10d)];continue;case'13':_0x10f887=_0x3954a7[_0x3ab3f6(0x186)];continue;case'14':_0x172330=_0x119668[_0x3ab3f6(0x11d)];continue;}break;}}else _0x4da45f=_0x5a7d4d[_0x3ab3f6(0x232)],await _0x5a7d4d['aQRoi'](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes['ERROR'],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1ad)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1);}_0x5a7d4d[_0x3ab3f6(0x1f3)](_0x48806a[_0x3ab3f6(0x188)],0x191)&&(_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x5a7d4d['AVdAv'],_0x5a7d4d[_0x3ab3f6(0x136)])?(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x193)],await _0x5a7d4d[_0x3ab3f6(0xfb)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1a8)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger['error'](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)):(_0x2c70d8[_0x3ab3f6(0x1cf)]('Cluster:\x20'+_0x26ee74[_0x3ab3f6(0x124)]+_0x3ab3f6(0x1ee)),_0x514fb5=![],_0x2068ce=!![]));_0x5a7d4d[_0x3ab3f6(0x182)](_0x48806a[_0x3ab3f6(0x188)],0xc8)&&(_0x5a7d4d[_0x3ab3f6(0x182)](_0x5a7d4d[_0x3ab3f6(0x177)],_0x5a7d4d[_0x3ab3f6(0x177)])?_0xf64a17=_0x5a7d4d[_0x3ab3f6(0x106)]:(_0x4da45f=_0x3ab3f6(0x178)+JSON['stringify'](_0x48806a[_0x3ab3f6(0x1e5)]),await _0x5a7d4d[_0x3ab3f6(0xfb)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1d8)],_0x5a7d4d['cwfOr']),logger['error'](_0x4da45f),process['exit'](0x1)));const _0x4fc25c=JSON[_0x3ab3f6(0x165)](_0x48806a[_0x3ab3f6(0x1e5)]),_0x461379={};_0x461379[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x130)],_0x461379[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x164)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x461379);const _0x486fdb={};_0x486fdb[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x486fdb[_0x3ab3f6(0x228)]=_0x5a7d4d['pEgVX'],webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x486fdb);_0x4fc25c[_0x3ab3f6(0x137)]&&(_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x5a7d4d['tetJC'],_0x5a7d4d[_0x3ab3f6(0x1f6)])?(_0x3b1d19[_0x3ab3f6(0x1c7)]=_0x583c79,_0x4453fe['cloudProvider']=_0x2e287c,_0x2231cb[_0x3ab3f6(0x15e)]=!![]):(_0x4da45f='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0xd81cf0+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x146)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1)));const _0x45d1fa=_0x4fc25c['gridProfiles'];let _0xee3fd7=_0x45d1fa[_0x4fc25c[_0x3ab3f6(0x1c4)]];_0x50f118[_0x3ab3f6(0x149)]&&(_0x5a7d4d[_0x3ab3f6(0x192)](_0x5a7d4d['VsMMj'],_0x5a7d4d[_0x3ab3f6(0x1fb)])?_0x4e6db9[_0x3ab3f6(0x203)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x17aca2+'\x20\x0a'+_0x115dad[_0x3ab3f6(0x1e9)](_0x36aad1[_0x3ab3f6(0x175)])):_0xee3fd7=_0x45d1fa[_0x50f118[_0x3ab3f6(0x149)]]);if(_0x5a7d4d['nrsfY'](_0x3e4203,![])&&_0x5a7d4d[_0x3ab3f6(0x214)](_0x2dd9db,![])){if(_0x5a7d4d[_0x3ab3f6(0x10a)](_0x5a7d4d['oMCsj'],_0x5a7d4d[_0x3ab3f6(0x19a)]))_0xcfcff[_0x3ab3f6(0x149)]=_0x465c7b[_0x3ab3f6(0x149)];else{_0x5a7d4d[_0x3ab3f6(0x1d2)](_0xee3fd7,undefined)&&(_0x5a7d4d[_0x3ab3f6(0x182)](_0x5a7d4d[_0x3ab3f6(0x135)],_0x5a7d4d[_0x3ab3f6(0x135)])?_0x26fb37['isPrivateGrid']=!![]:(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x20d)],await _0x5a7d4d[_0x3ab3f6(0x158)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d['Uxyyd'],_0x5a7d4d[_0x3ab3f6(0x1f4)],_0x5a7d4d['cwfOr']),logger['error'](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)));global_registry[_0x3ab3f6(0x167)]=_0xee3fd7['id'],_0x4da45f=_0x3ab3f6(0x21a)+_0xd81cf0+_0x3ab3f6(0x17e)+_0xee3fd7[_0x3ab3f6(0x113)]+'\x27\x20grid\x20profile',logger['info'](_0x4da45f);const _0x4c32b7={};_0x4c32b7[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x4c32b7[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4c32b7),_0x164723=_0xee3fd7[_0x3ab3f6(0x111)],_0x3a4877=_0xee3fd7[_0x3ab3f6(0x124)],_0x183c6c=_0xee3fd7[_0x3ab3f6(0x1c7)],_0x1d107a=_0xee3fd7[_0x3ab3f6(0x186)],_0x21e934=_0xee3fd7[_0x3ab3f6(0x115)],_0x36775b=_0xee3fd7[_0x3ab3f6(0x1f0)],_0x324f05=_0xee3fd7[_0x3ab3f6(0x1b3)],_0x17384c=_0xee3fd7[_0x3ab3f6(0x127)],_0x37394d=_0xee3fd7['s3bucket'],_0x4ab4b6=_0xee3fd7[_0x3ab3f6(0x11d)],_0x391fdf=_0xee3fd7['maxNodes'],_0x11fd0f=_0x4fc25c[_0x3ab3f6(0x10d)],_0x544a09=_0x4fc25c[_0x3ab3f6(0xfa)];_0x36775b&&_0x5a7d4d[_0x3ab3f6(0x1c8)](_0x36775b[_0x3ab3f6(0x121)],0x0)&&(_0x5a7d4d[_0x3ab3f6(0x1de)](_0x5a7d4d[_0x3ab3f6(0x224)],_0x5a7d4d['VPWIu'])?_0x36775b=null:_0x4b74f0[_0x3ab3f6(0x10b)]=!![]);_0x17384c&&_0x5a7d4d[_0x3ab3f6(0x144)](_0x17384c[_0x3ab3f6(0x121)],0x0)&&(_0x5a7d4d[_0x3ab3f6(0x192)](_0x5a7d4d['YFDZF'],_0x5a7d4d['YFDZF'])?_0x17384c=null:_0x17cf43=_0x49c461[_0x1699ff[_0x3ab3f6(0x149)]]);if(_0x5a7d4d[_0x3ab3f6(0x10a)](_0xee3fd7[_0x3ab3f6(0x195)],undefined)&&_0xee3fd7[_0x3ab3f6(0x195)]){if(_0x5a7d4d[_0x3ab3f6(0x182)](_0x5a7d4d[_0x3ab3f6(0x117)],_0x5a7d4d[_0x3ab3f6(0x117)])){const _0x8c02c4={};_0x8c02c4[_0x3ab3f6(0x12a)]=_0x1002be[_0x3ab3f6(0x187)],_0x8c02c4['message']=_0x3ab3f6(0x181)+_0x3372b8+_0x3ab3f6(0x17b),_0x55e921['sendEventToBackend'](_0x13af1f,_0x8c02c4,_0x5a7d4d[_0x3ab3f6(0x223)]),_0x8bf903[_0x3ab3f6(0x1cf)](_0x3ab3f6(0x181)+_0x228260+_0x3ab3f6(0x17b)),_0x5c0745=!![];if(_0x5a7d4d[_0x3ab3f6(0x1c6)](_0x4ae841,!![]))throw new _0x37bfd5(_0x3ab3f6(0x181)+_0x279465+_0x3ab3f6(0x151));}else global_registry[_0x3ab3f6(0x10b)]=!![];}_0x5a7d4d[_0x3ab3f6(0x1ec)](updateGlobalRegistryWithConfig,_0x164723,_0x3a4877,_0x183c6c,_0x1d107a,_0x21e934,_0x37394d,_0xee3fd7,_0x11fd0f,_0x544a09,_0x4ab4b6,_0x391fdf);}}else{if(_0x5a7d4d[_0x3ab3f6(0x1de)](_0x2dd9db,!![])){if(_0x5a7d4d[_0x3ab3f6(0x10a)](_0x5a7d4d['aYzTi'],_0x5a7d4d[_0x3ab3f6(0x15c)]))_0x510cd4[_0x3ab3f6(0x17d)]();else{_0x4da45f=_0x3ab3f6(0x19e)+_0xd81cf0,logger['info'](_0x4da45f);const _0xbef7dd={};_0xbef7dd[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0xbef7dd['message']=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0xbef7dd),_0x1d107a=_0xee3fd7[_0x3ab3f6(0x186)],_0x21e934=_0xee3fd7[_0x3ab3f6(0x115)],_0x36775b=null,_0x324f05=null,_0x17384c=null,_0x37394d=_0xee3fd7['s3bucket'],_0x4ab4b6=_0xee3fd7[_0x3ab3f6(0x11d)],_0x391fdf=_0xee3fd7['maxNodes'],_0x11fd0f=_0x4fc25c[_0x3ab3f6(0x10d)],_0x544a09=_0x4fc25c[_0x3ab3f6(0xfa)];if(_0x5a7d4d[_0x3ab3f6(0x16a)](_0xee3fd7[_0x3ab3f6(0x195)],undefined)&&_0xee3fd7[_0x3ab3f6(0x195)]){if(_0x5a7d4d[_0x3ab3f6(0x16a)](_0x5a7d4d[_0x3ab3f6(0x169)],_0x5a7d4d['pFTAh']))global_registry['isPrivateGrid']=!![];else{const _0x42e712={};_0x42e712[_0x3ab3f6(0x12a)]=_0x17a5b5[_0x3ab3f6(0x187)],_0x42e712[_0x3ab3f6(0x228)]=_0x49c7ae,_0x46b7ab[_0x3ab3f6(0x1bf)](_0xc4801d,_0x42e712,_0x5a7d4d[_0x3ab3f6(0x1c3)],!![]);}}_0x5a7d4d[_0x3ab3f6(0x1ec)](updateGlobalRegistryWithConfig,_0x164723,_0x3a4877,_0x183c6c,_0x1d107a,_0x21e934,_0x37394d,_0xee3fd7,_0x11fd0f,_0x544a09,_0x4ab4b6,_0x391fdf);}}else{if(_0x5a7d4d[_0x3ab3f6(0x229)](_0x5a7d4d[_0x3ab3f6(0x18f)],_0x5a7d4d[_0x3ab3f6(0x1a9)]))_0x5e875b['info'](_0x3ab3f6(0x108)+_0x32540a+'\x20');else{const _0x1ab2e0=_0x5a7d4d[_0x3ab3f6(0x216)][_0x3ab3f6(0x154)]('|');let _0x353d64=0x0;while(!![]){switch(_0x1ab2e0[_0x353d64++]){case'0':global_registry[_0x3ab3f6(0x10d)]=_0x4fc25c[_0x3ab3f6(0x10d)];continue;case'1':const _0x5448de={};_0x5448de[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x130)],_0x5448de[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x164)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x5448de);continue;case'2':const _0x30d84d={};_0x30d84d[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x30d84d[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x30d84d);continue;case'3':global_registry[_0x3ab3f6(0x111)]=_0x164723;continue;case'4':global_registry[_0x3ab3f6(0x124)]=_0x3a4877;continue;case'5':logger[_0x3ab3f6(0x1cf)](_0x4da45f);continue;case'6':global_registry[_0x3ab3f6(0x20b)]=_0x183c6c;continue;case'7':global_registry[_0x3ab3f6(0xfa)]=_0x4fc25c[_0x3ab3f6(0xfa)];continue;case'8':_0x4da45f=_0x3ab3f6(0x133)+_0xd81cf0+_0x3ab3f6(0x12c)+_0x3a4877+'\x27';continue;}break;}}}}const _0x37541a=await _0x5a7d4d[_0x3ab3f6(0x234)](getCloudProviderObject,_0x164723,_0x3a4877,_0xd81cf0,_0xa1ab4e,webSocketUtils,_0x50f118);_0x5a7d4d[_0x3ab3f6(0x182)](_0x164723,AZURE)&&_0x37541a['sendResourceDataToHST']();let _0x15acf2;if(_0x5a7d4d['jQSbj'](_0x3e4203,![])){_0x4da45f=_0x3ab3f6(0x125)+_0x183c6c+').';const _0x106e1f={};_0x106e1f['type']=WS_EVENTS[_0x3ab3f6(0x187)],_0x106e1f[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x106e1f),logger[_0x3ab3f6(0x1cf)](_0x4da45f);const _0x349ba3=await _0x37541a[_0x3ab3f6(0x148)]();if(_0x349ba3){const _0x4d0a74={};_0x4d0a74[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x4d0a74['message']='Cluster\x20'+_0x3a4877+_0x3ab3f6(0x17b),webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4d0a74,_0x5a7d4d['mmNSq']),logger['info'](_0x3ab3f6(0x181)+_0x3a4877+_0x3ab3f6(0x17b)),_0x3e4203=!![];if(_0x5a7d4d[_0x3ab3f6(0x17a)](_0x2dd9db,!![]))throw new Error(_0x3ab3f6(0x181)+_0x3a4877+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x1a5cbd={};_0x1a5cbd[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x1a5cbd[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x22e)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x1a5cbd),logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x22e)]);const _0x30eca1=_0x5a7d4d[_0x3ab3f6(0x10c)](_0x36775b,null)&&_0x5a7d4d[_0x3ab3f6(0x10a)](_0x36775b,undefined),_0x23d7ad=_0x5a7d4d[_0x3ab3f6(0x10c)](_0x17384c,null)&&_0x5a7d4d[_0x3ab3f6(0x10e)](_0x17384c,undefined)&&_0x5a7d4d[_0x3ab3f6(0xf7)](_0x17384c[_0x3ab3f6(0x121)],0x0);if(_0x30eca1){_0x5a7d4d[_0x3ab3f6(0x229)](_0x23d7ad,![])&&(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0xf3)],await _0x5a7d4d[_0x3ab3f6(0x201)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['pNMqu'],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1));const _0x4ac606=await _0x37541a['isVPCPresent'](_0x36775b);_0x5a7d4d[_0x3ab3f6(0x15d)](_0x4ac606,![])?(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x126)],await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x1a2)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1)):logger[_0x3ab3f6(0x1cf)](_0x3ab3f6(0x108)+_0x36775b+'\x20');const _0x38f605=await _0x37541a[_0x3ab3f6(0x17f)](_0x17384c,_0x36775b);_0x5a7d4d[_0x3ab3f6(0x102)](_0x38f605[0x0],![])?(_0x4da45f='Subnets:\x20'+JSON['stringify'](_0x38f605[0x1])+_0x3ab3f6(0x152)+_0x36775b+_0x3ab3f6(0x212),await _0x5a7d4d[_0x3ab3f6(0x112)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d[_0x3ab3f6(0x14e)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1)):logger[_0x3ab3f6(0x1cf)](_0x3ab3f6(0xf5)+JSON[_0x3ab3f6(0x1e9)](_0x17384c)+'\x20'),await _0x37541a['setupNewCluster'](_0x36775b,_0x17384c);}else{const _0x413d9f=_0x5a7d4d[_0x3ab3f6(0x18b)][_0x3ab3f6(0x154)]('|');let _0x1fcba1=0x0;while(!![]){switch(_0x413d9f[_0x1fcba1++]){case'0':await _0x37541a[_0x3ab3f6(0x128)](_0x36775b,_0x17384c);continue;case'1':const _0x338b89={};_0x338b89['type']=WS_EVENTS[_0x3ab3f6(0x187)],_0x338b89['message']=_0x5a7d4d[_0x3ab3f6(0x1a1)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x338b89);continue;case'2':const _0x12f80a={};_0x12f80a[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x12f80a[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x145)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x12f80a);continue;case'3':logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x145)]);continue;case'4':logger['info'](_0x5a7d4d[_0x3ab3f6(0x1a1)]);continue;}break;}}}}_0x3e4203&&_0x5a7d4d[_0x3ab3f6(0x1b9)](_0x164723,AZURE)&&(await _0x37541a[_0x3ab3f6(0x134)](),await _0x37541a[_0x3ab3f6(0x20f)]());const [_0xdd18e0,_0x1f8bde,_0x5a2404,_0x32548f,_0x5c874b,_0x860910]=await _0x5a7d4d[_0x3ab3f6(0x1b8)](createK8sClient,_0x37541a);_0x5a7d4d[_0x3ab3f6(0x1f7)](_0x3e4203,![])&&_0x5a7d4d[_0x3ab3f6(0x173)](_0x164723,AWS)&&(global_registry[_0x3ab3f6(0x1bb)]=!![],_0x15acf2=await _0x37541a['setupAutoscaler'](_0xdd18e0,_0x50f118));try{_0xa65f22=_0x5a7d4d['hGcsB'](kebabCase,_0xd81cf0),logger[_0x3ab3f6(0x1cf)](_0x5a7d4d['fujUi']);const _0x1fb745={};_0x1fb745['type']=WS_EVENTS[_0x3ab3f6(0x187)],_0x1fb745[_0x3ab3f6(0x228)]=_0x5a7d4d['fujUi'],webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x1fb745);if(_0x5a7d4d[_0x3ab3f6(0x10e)](_0xa65f22,_0x5a7d4d['EzrHo'])){const _0x5c012a={};_0x5c012a[_0x3ab3f6(0x156)]=_0x5a7d4d[_0x3ab3f6(0x221)],_0x5c012a[_0x3ab3f6(0x1b5)]=_0x5a7d4d[_0x3ab3f6(0x221)];const _0x56d4e9={};_0x56d4e9[_0x3ab3f6(0x113)]=_0xa65f22,_0x56d4e9[_0x3ab3f6(0x189)]=_0x5c012a;const _0x127e01={};_0x127e01[_0x3ab3f6(0x1d9)]=_0x56d4e9;const _0x3e495c=_0x127e01,_0x362d1d={};_0x362d1d[_0x3ab3f6(0x1e5)]=_0x3e495c,await _0xdd18e0[_0x3ab3f6(0x107)](_0x362d1d),logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x202)]);}const _0x4199b4={};_0x4199b4[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x4199b4[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x197)],webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4199b4);const _0x155b09={};_0x155b09[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x155b09[_0x3ab3f6(0x228)]=_0x5a7d4d[_0x3ab3f6(0x1a3)],webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x155b09),logger['info'](_0x5a7d4d[_0x3ab3f6(0x22d)]);let _0x7edebc={};_0x5a7d4d[_0x3ab3f6(0x1ac)](_0x164723,AZURE)&&(_0x7edebc={'clientId':await _0x37541a['getResourceClientId'](_0x3ab3f6(0x171)+_0x3a4877)});await _0x5a7d4d['GcwRA'](addGridComponents,_0xdd18e0,_0x1f8bde,_0x5a2404,_0x32548f,_0xa65f22,_0x3a4877,_0x15acf2,_0x5c874b,_0x860910,_0x7edebc),_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x1a4)],logger[_0x3ab3f6(0x1cf)](_0x4da45f);const _0x2175e0={};_0x2175e0[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x2175e0[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x2175e0),_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x14d)],logger['info'](_0x4da45f);const _0x2e793f={};_0x2e793f[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x2e793f[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x2e793f),await _0x5a7d4d[_0x3ab3f6(0x1ef)](waitForDeployment,_0x1f8bde,_0xa65f22,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x454fe7=await _0x5a7d4d[_0x3ab3f6(0x129)](getNamespaceUID,_0xdd18e0,_0xa65f22),_0x442501=global_registry[_0x3ab3f6(0x10b)]?_0x5a7d4d[_0x3ab3f6(0x213)]:_0x5a7d4d[_0x3ab3f6(0x1eb)],_0x173c2c={};_0x173c2c[_0x3ab3f6(0x113)]=_0x442501,_0x173c2c[_0x3ab3f6(0x1a6)]=_0x5a7d4d[_0x3ab3f6(0x12f)];const _0x4f1cb8=await _0xdd18e0[_0x3ab3f6(0x219)](_0x173c2c);let _0x388eb5=_0x37541a[_0x3ab3f6(0x170)](_0x4f1cb8)+'/'+_0xa65f22,_0x1cb712=_0x5a7d4d[_0x3ab3f6(0x106)];try{const _0x366f4c=_0x3ab3f6(0x1db)+AG_API_URL+_0x3ab3f6(0x172)+_0x454fe7,_0x3d828f=await _0x5a7d4d[_0x3ab3f6(0x1ae)](got,_0x366f4c,_0x20142c);(_0x5a7d4d[_0x3ab3f6(0x174)](_0x3d828f,null)||_0x5a7d4d[_0x3ab3f6(0x192)](_0x3d828f,undefined))&&(_0x4da45f=_0x5a7d4d[_0x3ab3f6(0x1ed)],await _0x5a7d4d['agMFb'](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes['ERROR'],_0x5a7d4d['Uxyyd'],_0x5a7d4d[_0x3ab3f6(0x16f)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1));_0x5a7d4d[_0x3ab3f6(0x214)](_0x3d828f['statusCode'],0x191)&&(_0x4da45f=_0x5a7d4d['fhuoA'],await _0x5a7d4d[_0x3ab3f6(0x1cc)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d['Uxyyd'],_0x5a7d4d[_0x3ab3f6(0x1ca)],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process['exit'](0x1));_0x5a7d4d[_0x3ab3f6(0x21c)](_0x3d828f[_0x3ab3f6(0x188)],0xc8)&&(_0x4da45f='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x3ab3f6(0x1e9)](_0x3d828f),await _0x5a7d4d[_0x3ab3f6(0xfb)](reportToGalactusAndSendToEDS,_0x50f118,_0xa1ab4e,_0x4da45f,messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x1e2)],_0x5a7d4d['dFVUI'],_0x5a7d4d[_0x3ab3f6(0x1c3)]),logger[_0x3ab3f6(0x203)](_0x4da45f),process[_0x3ab3f6(0x1df)](0x1));const _0x3b05c5=JSON[_0x3ab3f6(0x165)](_0x3d828f['body']);_0x3b05c5['route53']&&(_0x388eb5=_0x3b05c5[_0x3ab3f6(0x166)],_0x1cb712=_0x5a7d4d['MZBYc']),global_registry['isPrivateGrid']&&(_0x1cb712=_0x5a7d4d['IOECH']);}catch(_0x455f6c){}_0x4da45f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x388eb5+'\x20',logger['info'](_0x4da45f);const _0x31761c={};_0x31761c[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x31761c['message']=_0x4da45f,webSocketUtils['sendEventToBackend'](_0xa1ab4e,_0x31761c),_0x4da45f=_0x3ab3f6(0x1dc)+_0x1cb712+_0x3ab3f6(0x10f)+_0x388eb5+_0x3ab3f6(0x21d),logger[_0x3ab3f6(0x1cf)](_0x4da45f);const _0x41ba23={};_0x41ba23[_0x3ab3f6(0x12a)]=WS_EVENTS[_0x3ab3f6(0x187)],_0x41ba23[_0x3ab3f6(0x228)]=_0x4da45f,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x41ba23);const _0x4ab9bf={};_0x4ab9bf['type']=WS_EVENTS[_0x3ab3f6(0x157)],_0x4ab9bf[_0x3ab3f6(0x228)]=_0x3ab3f6(0x1fc)+_0x388eb5,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x4ab9bf),await webSocketUtils[_0x3ab3f6(0x191)](0x7d0);}catch(_0x27bd56){logger[_0x3ab3f6(0x203)](_0x3ab3f6(0x1c1)+_0x27bd56+'\x20\x0a'+JSON['stringify'](_0x27bd56[_0x3ab3f6(0x175)]));if(_0x5a7d4d[_0x3ab3f6(0x1d7)](_0x3e4203,![]))try{logger[_0x3ab3f6(0x1cf)](_0x5a7d4d[_0x3ab3f6(0x132)]),await _0x5a7d4d['aalNE'](removeGridComponents,_0xdd18e0,_0x1f8bde,_0x5a2404,_0x32548f,_0xa65f22),await _0x37541a[_0x3ab3f6(0x15a)](_0xdd18e0,global_registry[_0x3ab3f6(0x20b)]);}catch(_0x1faaa7){logger[_0x3ab3f6(0x203)](_0x3ab3f6(0x206)+_0x1faaa7+'\x20\x0a'+JSON[_0x3ab3f6(0x1e9)](_0x1faaa7[_0x3ab3f6(0x175)]));}throw _0x27bd56;}}catch(_0x13a306){const _0x55c5a5=_0x3ab3f6(0x222)+_0x13a306+'\x20\x0a'+JSON[_0x3ab3f6(0x1e9)](_0x13a306[_0x3ab3f6(0x175)]);if(_0xa1ab4e){const _0x191821={};_0x191821[_0x3ab3f6(0x12a)]=WS_EVENTS['LOG'],_0x191821[_0x3ab3f6(0x228)]=_0x55c5a5,webSocketUtils[_0x3ab3f6(0x1bf)](_0xa1ab4e,_0x191821,_0x5a7d4d[_0x3ab3f6(0x1c3)],!![]);}await webSocketUtils[_0x3ab3f6(0x191)](0x7d0);const _0x90b89c={};_0x90b89c[_0x3ab3f6(0x203)]=_0x55c5a5,await _0x5a7d4d[_0x3ab3f6(0x15f)](sendInstrumentationEvent,_0x50f118,_0x5a7d4d['Uxyyd'],messageTypes[_0x3ab3f6(0x19f)],_0x5a7d4d[_0x3ab3f6(0x13a)],_0x90b89c,_0x50f118),logger[_0x3ab3f6(0x203)](_0x55c5a5);}process[_0x3ab3f6(0x1df)](0x0);};
@@ -1 +1 @@
1
- function a10_0x23d7(){const _0x1795fd=['kQeLu','command','16MeNqtD','help','demandCommand','1095591yWdQlu','10ykPDsD','eWOTZ','epilogue','11531gCrSKg','64TjwYNX','List\x20Grid\x20resources.','34136080DvbMJw','handler','desc','../config/constants','recommendCommands','delete_commands','13107762TFWeQw','delete','157278ffhFjR','usage','9334692stQAnd','687460Zssmig','222SEAoTp'];a10_0x23d7=function(){return _0x1795fd;};return a10_0x23d7();}const a10_0x2bd486=a10_0x1644;function a10_0x1644(_0x2ff49b,_0x194a84){const _0x23d7b4=a10_0x23d7();return a10_0x1644=function(_0x1644e9,_0x153770){_0x1644e9=_0x1644e9-0x148;let _0x241bf8=_0x23d7b4[_0x1644e9];return _0x241bf8;},a10_0x1644(_0x2ff49b,_0x194a84);}(function(_0x26611b,_0x2e8fb2){const _0x4679ef=a10_0x1644,_0x5509d6=_0x26611b();while(!![]){try{const _0x438046=-parseInt(_0x4679ef(0x14d))/0x1*(-parseInt(_0x4679ef(0x15c))/0x2)+parseInt(_0x4679ef(0x158))/0x3*(-parseInt(_0x4679ef(0x14e))/0x4)+parseInt(_0x4679ef(0x15b))/0x5+parseInt(_0x4679ef(0x15a))/0x6+-parseInt(_0x4679ef(0x149))/0x7*(-parseInt(_0x4679ef(0x15f))/0x8)+-parseInt(_0x4679ef(0x156))/0x9*(-parseInt(_0x4679ef(0x14a))/0xa)+-parseInt(_0x4679ef(0x150))/0xb;if(_0x438046===_0x2e8fb2)break;else _0x5509d6['push'](_0x5509d6['shift']());}catch(_0x14be86){_0x5509d6['push'](_0x5509d6['shift']());}}}(a10_0x23d7,0xc3733));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x2bd486(0x153));exports[a10_0x2bd486(0x15e)]=a10_0x2bd486(0x157),exports[a10_0x2bd486(0x152)]=a10_0x2bd486(0x14f),exports['builder']=function(_0x98a74d){const _0xc24e5b=a10_0x2bd486,_0x53665d={};_0x53665d['eWOTZ']=_0xc24e5b(0x155),_0x53665d[_0xc24e5b(0x15d)]=_0xc24e5b(0x160);const _0x398d3c=_0x53665d;return _0x98a74d[_0xc24e5b(0x159)](HELP_HEADER_MESSAGE[_0xc24e5b(0x157)])[_0xc24e5b(0x14c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x398d3c[_0xc24e5b(0x14b)])[_0xc24e5b(0x148)]()[_0xc24e5b(0x154)]()['strict']()['help'](_0x398d3c[_0xc24e5b(0x15d)]);},exports[a10_0x2bd486(0x151)]=function(_0x4804d6){};
1
+ const a10_0x1aa802=a10_0x4364;function a10_0x1c13(){const _0x688023=['13873995Ngokqu','8iWdGBC','390253eLYKKu','../config/constants','commandDir','2139400AaTLDt','usage','List\x20Grid\x20resources.','builder','6391126QwBDIf','1893840YMeOzv','delete','delete_commands','help','demandCommand','desc','6enEgqh','VJVUB','4436856SRteIL','handler','2014842HDRDYl','cONKw','command'];a10_0x1c13=function(){return _0x688023;};return a10_0x1c13();}(function(_0x6ff5c5,_0x578906){const _0x2ee05c=a10_0x4364,_0x2257e4=_0x6ff5c5();while(!![]){try{const _0x24adbe=parseInt(_0x2ee05c(0x1a6))/0x1+parseInt(_0x2ee05c(0x1a1))/0x2+-parseInt(_0x2ee05c(0x1b4))/0x3*(-parseInt(_0x2ee05c(0x1ae))/0x4)+-parseInt(_0x2ee05c(0x1a9))/0x5+-parseInt(_0x2ee05c(0x19f))/0x6+parseInt(_0x2ee05c(0x1ad))/0x7+-parseInt(_0x2ee05c(0x1a5))/0x8*(parseInt(_0x2ee05c(0x1a4))/0x9);if(_0x24adbe===_0x578906)break;else _0x2257e4['push'](_0x2257e4['shift']());}catch(_0xcc75d6){_0x2257e4['push'](_0x2257e4['shift']());}}}(a10_0x1c13,0x85f5d));function a10_0x4364(_0x1bf729,_0x1c38ac){const _0x1c136d=a10_0x1c13();return a10_0x4364=function(_0x4364e7,_0x590717){_0x4364e7=_0x4364e7-0x19e;let _0x24f844=_0x1c136d[_0x4364e7];return _0x24f844;},a10_0x4364(_0x1bf729,_0x1c38ac);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1aa802(0x1a7));exports[a10_0x1aa802(0x1a3)]=a10_0x1aa802(0x1af),exports[a10_0x1aa802(0x1b3)]=a10_0x1aa802(0x1ab),exports[a10_0x1aa802(0x1ac)]=function(_0x4faaef){const _0x4bedc0=a10_0x1aa802,_0x16f53d={};_0x16f53d['VJVUB']=_0x4bedc0(0x1b0),_0x16f53d[_0x4bedc0(0x1a2)]=_0x4bedc0(0x1b1);const _0x2606c1=_0x16f53d;return _0x4faaef[_0x4bedc0(0x1aa)](HELP_HEADER_MESSAGE[_0x4bedc0(0x1af)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4bedc0(0x1a8)](_0x2606c1[_0x4bedc0(0x19e)])[_0x4bedc0(0x1b2)]()['recommendCommands']()['strict']()[_0x4bedc0(0x1b1)](_0x2606c1['cONKw']);},exports[a10_0x1aa802(0x1a0)]=function(_0x100744){};
@@ -1 +1 @@
1
- const a11_0x50b5ff=a11_0x4251;(function(_0x336bfd,_0x2a4f00){const _0x522186=a11_0x4251,_0xb159e0=_0x336bfd();while(!![]){try{const _0xaa1ee4=parseInt(_0x522186(0xca))/0x1+-parseInt(_0x522186(0x73))/0x2*(parseInt(_0x522186(0x94))/0x3)+-parseInt(_0x522186(0xaf))/0x4*(-parseInt(_0x522186(0xfb))/0x5)+-parseInt(_0x522186(0x7c))/0x6*(-parseInt(_0x522186(0x6f))/0x7)+parseInt(_0x522186(0x87))/0x8*(parseInt(_0x522186(0x6e))/0x9)+parseInt(_0x522186(0xc8))/0xa*(parseInt(_0x522186(0xbb))/0xb)+-parseInt(_0x522186(0xb3))/0xc;if(_0xaa1ee4===_0x2a4f00)break;else _0xb159e0['push'](_0xb159e0['shift']());}catch(_0x1ac5a3){_0xb159e0['push'](_0xb159e0['shift']());}}}(a11_0x46c7,0xdbda4));function a11_0x4251(_0x50990a,_0x391e99){const _0x46c7e2=a11_0x46c7();return a11_0x4251=function(_0x42516a,_0x56cc13){_0x42516a=_0x42516a-0x65;let _0xe39850=_0x46c7e2[_0x42516a];return _0xe39850;},a11_0x4251(_0x50990a,_0x391e99);}const fs=require('fs'),got=require(a11_0x50b5ff(0x67)),{v4:uuidv4}=require(a11_0x50b5ff(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x50b5ff(0xc9)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x50b5ff(0xb8)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x50b5ff(0x6d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require('../../utils/userInput'),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x50b5ff(0x93));function a11_0x46c7(){const _0x115fe3=['Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','../../utils/gridComponents','1875285tYxqKS','117054wvlGKU','DNOev','DTxau','catch','5506ddxwne','CKWZW','info','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','zciMW','stringify','bttXs','Browserstack','318qoFFRc','readFileSync','region','\x22\x20and\x20ID\x20','pTPvx','https://','Namespace:\x20','fwZqV','ERROR','cloudProvider','sUdbM','40GvLkAi','aNpFt','Successfully\x20deleted\x20the\x20grid','ZxYZf','invalid-input','LhYPy','delete','desc','mTADF','VTplC','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','handler','../../utils/utilityMethods','471KCWgpA','KAJZm','SjliH','WqtjW','clusterId','Tsulh','MCABW','ElWzU','TWWvI','Delete\x20an\x20Automation\x20grid.','qRUwW','TsRjY','exit','invalid-grid-id','TjPUi','roXTp','onlyGridInCluster','qMxVw','euAUo','debug','ukGXK','toLowerCase','DeaPH','LkwBx','BsMHA','parse','nrgYn','5372uQPgnM','builder','description','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','47334828DFGWvo','bgDoE','\x22\x20with\x20ID\x20','delete-grid-called','options','../../cloudproviders/utils','buECI','fxJnY','13211ZWEzLT','ffNKy','configureIfNotConfigured','wUzKT','HmdXj','Cluster:\x20','clusterName','eFboa','DELETE','type','ZbudJ','gridId','fetchLocalCreds','9230udqwLR','../../config/constants','1630970WqXtHi','clusterSpawnedVia','EWmCb','command','tsmOz','grid-id','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','then','name','vnpCR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','unauthorised','LseFg','Pass\x20the\x20ID\x20of\x20the\x20Grid','warn','PIaaP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KjTiX','RKwlq','MfOiM','YRkjc','statusCode','usage','uVLrA','cAaWU','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','argv','PWMMg','mdhdf','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','requestId','uuid','aXBzC','ZnmHR','epilogue','readNamespace','stack','server-error','oedqu','username','KKwPH','unknown-error','Jzfio','VSRyU','Failed\x20to\x20delete\x20resources!\x20Error:\x20','PNcfj','2270hSfECs','string','password','zDapi','UNEBK','help','got','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','lEZug','mCXbA'];a11_0x46c7=function(){return _0x115fe3;};return a11_0x46c7();}exports[a11_0x50b5ff(0xcd)]='grid',exports[a11_0x50b5ff(0x8e)]=a11_0x50b5ff(0x9d),exports[a11_0x50b5ff(0xb0)]=function(_0x2df659){const _0x1e28fc=a11_0x50b5ff,_0x143034={};_0x143034[_0x1e28fc(0x9a)]=_0x1e28fc(0xd9),_0x143034[_0x1e28fc(0x69)]='string',_0x143034[_0x1e28fc(0xf3)]=_0x1e28fc(0x66);const _0x598bbc=_0x143034,_0xf73226={};_0xf73226['description']=_0x598bbc[_0x1e28fc(0x9a)],_0xf73226[_0x1e28fc(0xc4)]=_0x598bbc[_0x1e28fc(0x69)];const _0x968a6b={};return _0x968a6b[_0x1e28fc(0xcf)]=_0xf73226,_0x2df659[_0x1e28fc(0xe2)](HELP_HEADER_MESSAGE[_0x1e28fc(0x8d)])[_0x1e28fc(0xef)](HELP_FOOTER_MESSAGE)[_0x1e28fc(0xb7)](_0x968a6b)['help'](_0x598bbc[_0x1e28fc(0xf3)])[_0x1e28fc(0xe7)];},exports[a11_0x50b5ff(0x92)]=async function(_0x4978f3){const _0x3cf5a5=a11_0x50b5ff,_0x283431={'PNcfj':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','bgDoE':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ZxYZf':_0x3cf5a5(0xfc),'TjPUi':_0x3cf5a5(0x66),'DTxau':function(_0xf01d9e,_0xa8ee1d){return _0xf01d9e!==_0xa8ee1d;},'YRkjc':_0x3cf5a5(0x74),'roXTp':_0x3cf5a5(0x80),'HmdXj':function(_0x420d9c,_0x44cba4){return _0x420d9c===_0x44cba4;},'PWMMg':_0x3cf5a5(0x96),'EWmCb':_0x3cf5a5(0xde),'eFboa':function(_0x12c5f2){return _0x12c5f2();},'sUdbM':function(_0x4e5f08){return _0x4e5f08();},'aXBzC':_0x3cf5a5(0x97),'zDapi':_0x3cf5a5(0xb2),'VTplC':function(_0x3ed090,_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7){return _0x3ed090(_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7);},'LseFg':_0x3cf5a5(0xb6),'aNpFt':'init-not-called','Tsulh':function(_0x56b8a8,_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660){return _0x56b8a8(_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660);},'BsMHA':_0x3cf5a5(0xbe),'yNTUR':function(_0x1a9488,_0x449557,_0x23211e,_0x5d80ad){return _0x1a9488(_0x449557,_0x23211e,_0x5d80ad);},'ggMsc':function(_0x53f342,_0x32312b){return _0x53f342===_0x32312b;},'fxJnY':_0x3cf5a5(0x7b),'qMxVw':_0x3cf5a5(0x95),'ZnmHR':function(_0x2e7fb2,_0x2784a6){return _0x2e7fb2(_0x2784a6);},'zciMW':function(_0x4d4fb5,_0x3b4ed5){return _0x4d4fb5===_0x3b4ed5;},'ElWzU':function(_0x3be3a5,_0x22429b){return _0x3be3a5===_0x22429b;},'nrgYn':function(_0x50cdf6,_0x2c909b){return _0x50cdf6===_0x2c909b;},'buECI':function(_0x41498c,_0x2033d3){return _0x41498c!==_0x2033d3;},'KKwPH':_0x3cf5a5(0x9e),'UNEBK':_0x3cf5a5(0xa8),'TWWvI':_0x3cf5a5(0x6b),'Jzfio':function(_0x50447e,_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6){return _0x50447e(_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6);},'fwZqV':_0x3cf5a5(0x8b),'IyqWJ':function(_0x335668,_0x36a296){return _0x335668===_0x36a296;},'bttXs':function(_0x24f4ee,_0x37c12d){return _0x24f4ee!==_0x37c12d;},'TsRjY':'xYFIf','swDGW':function(_0x3bebbe,_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae){return _0x3bebbe(_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae);},'DNOev':function(_0x5af361,_0xb7d745){return _0x5af361===_0xb7d745;},'OuOFO':function(_0x11f9cc,_0x2f5a21){return _0x11f9cc!==_0x2f5a21;},'zfxfX':'VxqDf','ymoyt':_0x3cf5a5(0x8c),'PIaaP':_0x3cf5a5(0xe5),'ZbudJ':_0x3cf5a5(0xab),'MfOiM':_0x3cf5a5(0xd4),'mTADF':function(_0x38dee0,_0x22b222,_0x5d932e,_0x4137eb){return _0x38dee0(_0x22b222,_0x5d932e,_0x4137eb);},'mdhdf':function(_0xd41d8d){return _0xd41d8d();},'euAUo':_0x3cf5a5(0x6c),'lIUlq':function(_0x31416b,_0x976acc){return _0x31416b!==_0x976acc;},'ffNKy':'WPbxf','uVLrA':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','jECmw':function(_0xec7634,_0x3525c2){return _0xec7634(_0x3525c2);},'KjTiX':function(_0x37aa2d,_0x30f412){return _0x37aa2d(_0x30f412);},'FWbct':function(_0x36115a,_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b){return _0x36115a(_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b);},'DQzQn':_0x3cf5a5(0xc3),'VSRyU':function(_0x136376,_0x55d190,_0x203d90){return _0x136376(_0x55d190,_0x203d90);},'DeaPH':function(_0x17e3a9,_0x39f37d){return _0x17e3a9!==_0x39f37d;},'cAaWU':function(_0x4e975d,_0x4d49a7){return _0x4e975d!==_0x4d49a7;},'fsNrb':_0x3cf5a5(0xf2),'OEwyj':_0x3cf5a5(0xd7),'gpetX':function(_0x19ee25,_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44){return _0x19ee25(_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44);},'mCXbA':_0x3cf5a5(0xa1),'tsmOz':_0x3cf5a5(0xf6)};try{global_registry[_0x3cf5a5(0xeb)]=_0x283431[_0x3cf5a5(0xc2)](uuidv4);!fs['existsSync'](_0x283431[_0x3cf5a5(0x86)](getCredentialsPath))&&(_0x283431['DTxau'](_0x283431['aXBzC'],_0x283431[_0x3cf5a5(0xed)])?(_0x33ad5d[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),_0x552731[_0x3cf5a5(0xa0)](0x1)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfe)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x88)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)));_0x283431[_0x3cf5a5(0x99)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['INFO'],null,null,_0x4978f3);!_0x4978f3[_0x3cf5a5(0xc6)]&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xac)],_0x283431['BsMHA'])?_0x3d23c0[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x19fe09[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),process[_0x3cf5a5(0xa0)](0x1)));const _0x6973bd=JSON[_0x3cf5a5(0xad)](fs[_0x3cf5a5(0x7d)](_0x283431[_0x3cf5a5(0xc2)](getCredentialsPath))),[_0x399814,_0x483fb8]=await _0x283431['yNTUR'](getGridDetails,_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xf4)],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)],_0x4978f3[_0x3cf5a5(0xc6)]);if(_0x483fb8){const _0x4eb716=_0x483fb8[_0x3cf5a5(0x75)];let _0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x4eb716['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x58dc36;_0x483fb8[_0x3cf5a5(0xa4)]&&_0x283431['ggMsc'](_0x483fb8[_0x3cf5a5(0xcb)],_0x283431[_0x3cf5a5(0xba)])&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xa5)],_0x283431[_0x3cf5a5(0xa5)])?_0x4ef2f4['info'](_0x3cf5a5(0x82)+_0x2a87d2+_0x3cf5a5(0xe6)):_0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716['name']+_0x3cf5a5(0x7f)+_0x4eb716['id']+_0x3cf5a5(0xd1)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0xb5)+_0x4eb716['clusterId']+_0x3cf5a5(0x76));_0x58dc36=await _0x283431[_0x3cf5a5(0xee)](inputConfirmation,_0x21f3f2);(_0x283431[_0x3cf5a5(0x78)](_0x58dc36,undefined)||_0x283431[_0x3cf5a5(0x9b)](_0x58dc36,null)||!(_0x283431[_0x3cf5a5(0xae)](_0x58dc36[_0x3cf5a5(0xa9)](),'y')||_0x283431['ggMsc'](_0x58dc36['toLowerCase'](),'n')))&&(_0x283431[_0x3cf5a5(0xb9)](_0x283431[_0x3cf5a5(0xf5)],_0x283431[_0x3cf5a5(0x65)])?(console['error'](_0x283431[_0x3cf5a5(0x9c)]),await _0x283431['Jzfio'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x83)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)):_0x572a3b=_0x3cf5a5(0xea)+_0x168e78[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x273fd5['id']+_0x3cf5a5(0xd1)+_0x49049f['clusterName']+'\x22\x20with\x20ID\x20'+_0x27fdac[_0x3cf5a5(0x98)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x283431['IyqWJ'](_0x58dc36[_0x3cf5a5(0xa9)](),'n')&&(_0x283431[_0x3cf5a5(0x7a)](_0x283431[_0x3cf5a5(0x9f)],_0x283431[_0x3cf5a5(0x9f)])?_0x18baf4['warn']('Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted'):process[_0x3cf5a5(0xa0)](0x0));global_registry['clusterRegion']=_0x4eb716[_0x3cf5a5(0x7e)];const _0xdc5b5d=_0x4eb716[_0x3cf5a5(0x85)],_0xa3167=await _0x283431['swDGW'](getCloudProviderObject,_0xdc5b5d,_0x4eb716[_0x3cf5a5(0xc1)],_0x4eb716[_0x3cf5a5(0xd3)],_0x4978f3),_0x248c82=_0x6973bd[_0x3cf5a5(0x85)];if(_0x283431[_0x3cf5a5(0x70)](_0x248c82[_0xdc5b5d],undefined)){if(_0x283431['OuOFO'](_0x283431['zfxfX'],_0x283431['ymoyt'])){logger['info'](_0x283431[_0x3cf5a5(0xdb)]);_0x283431['ElWzU'](_0x6973bd[_0x3cf5a5(0x85)],undefined)&&(_0x283431['nrgYn'](_0x283431[_0x3cf5a5(0xc5)],_0x283431[_0x3cf5a5(0xdf)])?_0x1ae051[_0x3cf5a5(0x85)]={}:_0x6973bd[_0x3cf5a5(0x85)]={});_0x6973bd[_0x3cf5a5(0x85)][_0xdc5b5d]={};const _0x13c0e4=await _0x283431[_0x3cf5a5(0x8f)](inputCloudProviderKeys,_0xdc5b5d,_0x6973bd,_0xa3167);fs['writeFileSync'](_0x283431[_0x3cf5a5(0xe9)](getCredentialsPath),JSON[_0x3cf5a5(0x79)](_0x13c0e4)),logger[_0x3cf5a5(0xa7)](_0x283431[_0x3cf5a5(0xa6)]);}else _0x24c87c[_0x3cf5a5(0xa0)](0x0);}else{if(_0x283431['lIUlq'](_0x283431[_0x3cf5a5(0xbc)],_0x283431[_0x3cf5a5(0xbc)])){const _0x40c54a={};_0x40c54a[_0x3cf5a5(0xb1)]=_0x283431[_0x3cf5a5(0xb4)],_0x40c54a[_0x3cf5a5(0xc4)]=_0x283431[_0x3cf5a5(0x8a)];const _0x34d81b={};return _0x34d81b['grid-id']=_0x40c54a,_0x314445[_0x3cf5a5(0xe2)](_0x5f598b['delete'])[_0x3cf5a5(0xef)](_0x4178c6)[_0x3cf5a5(0xb7)](_0x34d81b)[_0x3cf5a5(0x66)](_0x283431[_0x3cf5a5(0xa2)])[_0x3cf5a5(0xe7)];}else logger[_0x3cf5a5(0x75)](_0x283431[_0x3cf5a5(0xe3)]),await _0xa3167[_0x3cf5a5(0xc7)](_0x248c82);}_0xa3167[_0x3cf5a5(0xbd)]();const _0x2f7776=await _0xa3167['isClusterPresent']();if(_0x2f7776){const _0xc1809a=_0x283431['jECmw'](kebabCase,_0x4eb716[_0x3cf5a5(0xd3)]),[_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0x3daee1,_0x1d847b]=await _0x283431[_0x3cf5a5(0xdd)](createK8sClient,_0xa3167);let _0x12fcd8=!![];const _0x53666a={};_0x53666a[_0x3cf5a5(0xd3)]=_0xc1809a,await _0x524a26[_0x3cf5a5(0xf0)](_0x53666a)[_0x3cf5a5(0xd2)](_0x3b698e=>{const _0x294dc5=_0x3cf5a5;_0x283431[_0x294dc5(0x71)](_0x283431[_0x294dc5(0xe0)],_0x283431[_0x294dc5(0xa3)])?logger[_0x294dc5(0x75)]('Namespace:\x20'+_0xc1809a+_0x294dc5(0xe6)):(_0x1a3612[_0x294dc5(0xda)](_0x294dc5(0x82)+_0x3b2314+_0x294dc5(0x91)),_0xd2ff81=![]);})[_0x3cf5a5(0x72)](_0x3a150e=>{const _0x43f116=_0x3cf5a5;_0x283431[_0x43f116(0xbf)](_0x283431[_0x43f116(0xe8)],_0x283431[_0x43f116(0xcc)])?(_0x2ef590[_0x43f116(0x75)](_0x43f116(0x89)),_0xd79020[_0x43f116(0xa0)](0x0)):(logger[_0x43f116(0xda)]('Namespace:\x20'+_0xc1809a+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x12fcd8=![]);});if(_0x12fcd8){await _0x283431['FWbct'](removeGridComponents,_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0xc1809a);if(_0x483fb8[_0x3cf5a5(0xa4)]){const _0x41d279=await _0xa3167['isBrowserstackCluster']();_0x41d279?await _0xa3167['deleteCluster'](_0x524a26,_0x4eb716['region']):logger[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68));}}}else logger['warn'](_0x3cf5a5(0x77));const _0x4980e5=_0x3cf5a5(0x81)+AG_API_URL+'/packages/cli/grid/'+_0x4978f3[_0x3cf5a5(0xc6)],_0x98d007={'method':_0x283431['DQzQn'],'headers':_0x283431[_0x3cf5a5(0xf8)](getAuthHeader,_0x6973bd['Browserstack']['username'],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)]),'throwHttpErrors':![]},_0x2abe9a=await _0x283431[_0x3cf5a5(0xf8)](got,_0x4980e5,_0x98d007);_0x283431[_0x3cf5a5(0xaa)](_0x2abe9a,null)&&_0x283431[_0x3cf5a5(0xe4)](_0x2abe9a,undefined)&&_0x283431[_0x3cf5a5(0xbf)](_0x2abe9a[_0x3cf5a5(0xe1)],0xc8)&&(logger[_0x3cf5a5(0x75)](_0x3cf5a5(0x89)),process['exit'](0x0)),logger[_0x3cf5a5(0xd6)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x2abe9a[_0x3cf5a5(0xd0)]),await _0x283431['VTplC'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}_0x283431[_0x3cf5a5(0x78)](_0x399814[_0x3cf5a5(0xe1)],0x191)&&(logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xdc)),await _0x283431['Tsulh'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['OEwyj'],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)),_0x283431[_0x3cf5a5(0x9b)](_0x399814['statusCode'],0x190)&&(logger[_0x3cf5a5(0xd6)](JSON[_0x3cf5a5(0xad)](_0x399814[_0x3cf5a5(0xd0)])['message']),await _0x283431['gpetX'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x6a)],null,_0x4978f3),process['exit'](0x1)),logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xd5)+JSON['stringify'](_0x399814)),await _0x283431[_0x3cf5a5(0xf7)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['ERROR'],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}catch(_0x2c1e00){logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xf9)+_0x2c1e00[_0x3cf5a5(0xf1)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0xce)],_0x2c1e00,_0x4978f3),process['exit'](0x1);}};
1
+ function a11_0x5a96(_0x134451,_0x1019c8){const _0x16e0ff=a11_0x16e0();return a11_0x5a96=function(_0x5a9669,_0x19efce){_0x5a9669=_0x5a9669-0xe6;let _0x57b559=_0x16e0ff[_0x5a9669];return _0x57b559;},a11_0x5a96(_0x134451,_0x1019c8);}const a11_0x218814=a11_0x5a96;function a11_0x16e0(){const _0x1f9fcc=['init-not-called','error','string','catch','../../utils/utilityMethods','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','eAMHf','yjEpQ','connectionTimeout','imhCJ','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20Grid','CWVVM','statusCode','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Cluster:\x20','DFpVm','yBWRz','LgSrI','toLowerCase','YCBIT','desc','CeIUp','<UsernamePlaceholder>','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','2LKamuA','Failed\x20to\x20delete\x20resources!\x20Error:\x20','../../config/logger','got','TalfO','ERROR','handler','wMDAO','gridId','readFileSync','742136AXWJod','XFLfs','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','KOpsP','bFVGT','SzwtX','ONVqe','../../utils/webSocketUtils','5407977plmjgz','Browserstack','cloudProvider','UUbAP','FcrGO','183594QpRjEd','Fwwxe','reconnecting-websocket','NNLij','username','epilogue','joMAa','password','znkCJ','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','gHWlZ','215112aIYJnx','argv','bLcbg','../../utils/createk8sClient','clusterName','NvbHF','deleteCluster','CUYbT','existsSync','DnwgP','region','11675385WPhcDn','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','name','BNyjb','delete-grid-called','nDLPM','INFO','invalid-input','fFzXJ','type','help','EcIno','jFPgI','IhfIe','3066JUnTOy','wtoqX','command','KFCWM','../../cloudproviders/utils','<PasswordPlaceholder>','BAvqY','\x22\x20with\x20ID\x20','YuFlK','warn','readNamespace','message','LXsjU','4915LHXwXx','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','AggJQ','bxFsk','DELETE','TKOwA','AZeEL','MHzeu','BtNts','IWbqj','CvVOL','wBtyN','narwg','Namespace:\x20','jBGoS','info','MXVFp','wkDEI','cyrXg','stringify','vtJKM','usage','then','JEAOf','aRkGW','/packages/cli/grid/','grid','cBiaQ','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','clusterRegion','OVGWS','clusterSpawnedVia','options','DAvaE','TiNEV','ApWse','grid-id','utuVE','stack','\x22\x20and\x20ID\x20','qmQdN','exit','70xgPAkW','onlyGridInCluster','MTAJJ','replace','requestId','WpLxR','delete','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','description','parse','24092860JUCBLP','Delete\x20an\x20Automation\x20grid.'];a11_0x16e0=function(){return _0x1f9fcc;};return a11_0x16e0();}(function(_0xf45b6b,_0x6002bd){const _0x236449=a11_0x5a96,_0x2793a0=_0xf45b6b();while(!![]){try{const _0x46d741=-parseInt(_0x236449(0x139))/0x1+parseInt(_0x236449(0x122))/0x2*(parseInt(_0x236449(0x134))/0x3)+parseInt(_0x236449(0x144))/0x4+-parseInt(_0x236449(0x16a))/0x5*(parseInt(_0x236449(0x15d))/0x6)+-parseInt(_0x236449(0xfd))/0x7*(-parseInt(_0x236449(0x12c))/0x8)+parseInt(_0x236449(0x14f))/0x9+-parseInt(_0x236449(0x107))/0xa;if(_0x46d741===_0x6002bd)break;else _0x2793a0['push'](_0x2793a0['shift']());}catch(_0x22952b){_0x2793a0['push'](_0x2793a0['shift']());}}}(a11_0x16e0,0xf0c43));const fs=require('fs'),got=require(a11_0x218814(0x125)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x218814(0x13b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x218814(0x124)),{getCloudProviderObject}=require(a11_0x218814(0x161)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x218814(0x113)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x218814(0x147)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x218814(0x10d)),webSocketUtils=require(a11_0x218814(0x133));exports[a11_0x218814(0x15f)]=a11_0x218814(0xed),exports[a11_0x218814(0x11e)]=a11_0x218814(0x108),exports['builder']=function(_0x218cfb){const _0xacd4c=a11_0x218814,_0x508d66={};_0x508d66[_0xacd4c(0x179)]=_0xacd4c(0x114),_0x508d66['MHzeu']=_0xacd4c(0x10b),_0x508d66['IhfIe']=_0xacd4c(0x159);const _0x2e7962=_0x508d66,_0x2f51a4={};_0x2f51a4[_0xacd4c(0x105)]=_0x2e7962['jBGoS'],_0x2f51a4[_0xacd4c(0x158)]=_0x2e7962[_0xacd4c(0x172)];const _0x5d4e5c={};return _0x5d4e5c[_0xacd4c(0xf7)]=_0x2f51a4,_0x218cfb[_0xacd4c(0xe8)](HELP_HEADER_MESSAGE[_0xacd4c(0x103)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xacd4c(0xf3)](_0x5d4e5c)['help'](_0x2e7962[_0xacd4c(0x15c)])[_0xacd4c(0x145)];},exports[a11_0x218814(0x128)]=async function(_0x52c8cf){const _0x2615c9=a11_0x218814,_0x341f1e={'TKOwA':'Successfully\x20deleted\x20the\x20grid','wkDEI':'Pass\x20the\x20ID\x20of\x20the\x20Grid','OVGWS':_0x2615c9(0x10b),'utuVE':_0x2615c9(0x159),'gHWlZ':function(_0x506783,_0x40321a){return _0x506783===_0x40321a;},'AggJQ':_0x2615c9(0x11a),'JEAOf':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','XFLfs':'lZMqt','yjEpQ':_0x2615c9(0x16b),'eAMHf':function(_0x428a7c){return _0x428a7c();},'jFPgI':function(_0x977e00){return _0x977e00();},'cBiaQ':function(_0x20aadf,_0x2c6ed4){return _0x20aadf!==_0x2c6ed4;},'BtNts':_0x2615c9(0x131),'ObQvN':_0x2615c9(0x104),'YuFlK':function(_0x3ea1e4,_0x443f29,_0x5723fc,_0x4880fd,_0xd4a4e6,_0x3cc403,_0x35dffb){return _0x3ea1e4(_0x443f29,_0x5723fc,_0x4880fd,_0xd4a4e6,_0x3cc403,_0x35dffb);},'CvVOL':_0x2615c9(0x153),'nDLPM':_0x2615c9(0x109),'bLcbg':function(_0x58e6e1,_0x50f2a8){return _0x58e6e1===_0x50f2a8;},'IWbqj':_0x2615c9(0x17b),'BAvqY':function(_0x2d2c1c){return _0x2d2c1c();},'ApWse':function(_0x2ed73b,_0x105cb6,_0x36d273,_0x2021bf){return _0x2ed73b(_0x105cb6,_0x36d273,_0x2021bf);},'oZwSX':function(_0x33f371,_0x4e3e6c){return _0x33f371===_0x4e3e6c;},'TiNEV':_0x2615c9(0x135),'LgSrI':'enkUV','NvbHF':'YGxwO','qmQdN':function(_0xad9c82,_0x20bd20){return _0xad9c82(_0x20bd20);},'wMDAO':function(_0x13d6fd,_0xf3bb7c){return _0x13d6fd===_0xf3bb7c;},'LXsjU':function(_0x54c17f,_0x164fdf){return _0x54c17f===_0x164fdf;},'wtoqX':function(_0x26a36f,_0x1385ef){return _0x26a36f===_0x1385ef;},'vtJKM':function(_0x5f0b9b,_0x30b172){return _0x5f0b9b!==_0x30b172;},'joMAa':_0x2615c9(0x138),'zXWxa':_0x2615c9(0x117),'TalfO':function(_0x4aa2d8,_0xc11d27,_0x2b7930,_0x438c02,_0x21ce59,_0x22adf9,_0x34e727){return _0x4aa2d8(_0xc11d27,_0x2b7930,_0x438c02,_0x21ce59,_0x22adf9,_0x34e727);},'FYuRD':_0x2615c9(0x156),'fFzXJ':function(_0x5c83ea,_0x1fae49){return _0x5c83ea===_0x1fae49;},'aolng':function(_0x3a03bc,_0x48782a){return _0x3a03bc===_0x48782a;},'cyrXg':_0x2615c9(0x11d),'DnwgP':_0x2615c9(0x13c),'aRkGW':_0x2615c9(0x120),'CUYbT':_0x2615c9(0x162),'AZeEL':function(_0x55b2b0,_0x2ce912){return _0x55b2b0(_0x2ce912);},'cttvp':function(_0x278b3a,_0x253c72,_0x706387,_0x3958cc,_0x577e79,_0x4916f7){return _0x278b3a(_0x253c72,_0x706387,_0x3958cc,_0x577e79,_0x4916f7);},'DAvaE':_0x2615c9(0x119),'WYJwj':_0x2615c9(0x177),'BNyjb':function(_0x5aae70,_0x46347e){return _0x5aae70===_0x46347e;},'KFCWM':'ojRGC','wBtyN':_0x2615c9(0x102),'EcIno':_0x2615c9(0x16f),'bxFsk':function(_0x23485d,_0x29ca9d,_0x49f84d){return _0x23485d(_0x29ca9d,_0x49f84d);},'UUbAP':function(_0xee8765,_0x5506ba,_0x4201ef){return _0xee8765(_0x5506ba,_0x4201ef);},'CWVVM':'server-error','KOpsP':function(_0x1fe7aa,_0x3bc33f){return _0x1fe7aa===_0x3bc33f;},'CeIUp':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GwcjO':'unauthorised','znkCJ':function(_0x19299d,_0xdab7d3){return _0x19299d===_0xdab7d3;},'imhCJ':function(_0x55f4b5,_0x52c330,_0x1534c2,_0xd8363e,_0x59abdb,_0x37d526,_0x401a42){return _0x55f4b5(_0x52c330,_0x1534c2,_0xd8363e,_0x59abdb,_0x37d526,_0x401a42);},'bFVGT':'invalid-grid-id','itRBj':'unknown-error'};try{global_registry[_0x2615c9(0x101)]=_0x341f1e[_0x2615c9(0x10f)](uuidv4);!fs[_0x2615c9(0x14c)](_0x341f1e[_0x2615c9(0x15b)](getCredentialsPath))&&(_0x341f1e[_0x2615c9(0xee)](_0x341f1e[_0x2615c9(0x173)],_0x341f1e[_0x2615c9(0x173)])?_0x1b6108[_0x2615c9(0x17a)](_0x2615c9(0x178)+_0x53b292+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(console[_0x2615c9(0x10a)](_0x341f1e['ObQvN']),await _0x341f1e[_0x2615c9(0x165)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e[_0x2615c9(0x154)],null,_0x52c8cf),process[_0x2615c9(0xfc)](0x1)));_0x341f1e['YuFlK'](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x155)],null,null,_0x52c8cf);!_0x52c8cf[_0x2615c9(0x12a)]&&(_0x341f1e[_0x2615c9(0x146)](_0x341f1e[_0x2615c9(0x174)],_0x341f1e['IWbqj'])?(console[_0x2615c9(0x10a)](_0x341f1e['yjEpQ']),process[_0x2615c9(0xfc)](0x1)):_0x4ca54d=_0x2615c9(0xef)+_0x2b70f9['name']+_0x2615c9(0xfa)+_0x4a9ed6['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x1cbd33[_0x2615c9(0x148)]+'\x22\x20with\x20ID\x20'+_0x5c789a['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x75c517=JSON[_0x2615c9(0x106)](fs[_0x2615c9(0x12b)](_0x341f1e[_0x2615c9(0x163)](getCredentialsPath))),[_0x274dbb,_0x14c8df]=await _0x341f1e[_0x2615c9(0xf6)](getGridDetails,_0x75c517[_0x2615c9(0x135)][_0x2615c9(0x13d)],_0x75c517['Browserstack'][_0x2615c9(0x140)],_0x52c8cf['gridId']);if(_0x14c8df){const _0x1c71e9=_0x14c8df[_0x2615c9(0x17a)];let _0x1c2390='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x1c71e9[_0x2615c9(0x151)]+_0x2615c9(0xfa)+_0x1c71e9['id']+_0x2615c9(0x10e);_0x14c8df[_0x2615c9(0xfe)]&&_0x341f1e['oZwSX'](_0x14c8df[_0x2615c9(0xf2)],_0x341f1e[_0x2615c9(0xf5)])&&(_0x341f1e[_0x2615c9(0x146)](_0x341f1e[_0x2615c9(0x11b)],_0x341f1e[_0x2615c9(0x149)])?(_0x24cb30[_0x2615c9(0x166)]('Namespace:\x20'+_0x33e3be+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x2bca76=![]):_0x1c2390=_0x2615c9(0xef)+_0x1c71e9['name']+_0x2615c9(0xfa)+_0x1c71e9['id']+_0x2615c9(0x142)+_0x1c71e9[_0x2615c9(0x148)]+_0x2615c9(0x164)+_0x1c71e9['clusterId']+_0x2615c9(0x10e));const _0x21be64=await _0x341f1e[_0x2615c9(0xfb)](inputConfirmation,_0x1c2390);(_0x341f1e[_0x2615c9(0x143)](_0x21be64,undefined)||_0x341f1e[_0x2615c9(0x129)](_0x21be64,null)||!(_0x341f1e[_0x2615c9(0x169)](_0x21be64['toLowerCase'](),'y')||_0x341f1e[_0x2615c9(0x15e)](_0x21be64[_0x2615c9(0x11c)](),'n')))&&(_0x341f1e['vtJKM'](_0x341f1e[_0x2615c9(0x13f)],_0x341f1e[_0x2615c9(0x13f)])?(_0x2d2ac8['info'](_0x341f1e['TKOwA']),_0x3bbc7a[_0x2615c9(0xfc)](0x0)):(console[_0x2615c9(0x10a)](_0x341f1e['zXWxa']),await _0x341f1e[_0x2615c9(0x126)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e['FYuRD'],null,_0x52c8cf),process[_0x2615c9(0xfc)](0x1)));_0x341f1e[_0x2615c9(0x157)](_0x21be64[_0x2615c9(0x11c)](),'n')&&(_0x341f1e['aolng'](_0x341f1e[_0x2615c9(0x17d)],_0x341f1e[_0x2615c9(0x14d)])?_0x464139['warn'](_0x2615c9(0x118)+_0x2cd1fd[_0x2615c9(0x148)]+_0x2615c9(0x12e)):process['exit'](0x0));const _0x7cc2c1=WS_ENDPOINT[_0x2615c9(0x100)](_0x341f1e[_0x2615c9(0xeb)],_0x75c517[_0x2615c9(0x135)][_0x2615c9(0x13d)])['replace'](_0x341f1e[_0x2615c9(0x14b)],_0x75c517[_0x2615c9(0x135)]['password']),_0x3c3dfb={};_0x3c3dfb['WebSocket']=ws,_0x3c3dfb[_0x2615c9(0x111)]=0x36ee80;const _0x211a5d=new ReconnectingWebSocket(_0x7cc2c1,[],_0x3c3dfb);global_registry[_0x2615c9(0xf0)]=_0x1c71e9['region'];const _0x50c481=_0x1c71e9[_0x2615c9(0x136)],_0x578025=await _0x341f1e[_0x2615c9(0x165)](getCloudProviderObject,_0x50c481,_0x1c71e9['clusterName'],_0x1c71e9['name'],_0x211a5d,webSocketUtils,_0x52c8cf),_0x37a322=await _0x578025['isClusterPresent']();if(_0x37a322){const _0x3a7c46=_0x341f1e[_0x2615c9(0xfb)](kebabCase,_0x1c71e9['name']),[_0x138c64,_0x36c130,_0x4e2637,_0x244339,_0xf7738c,_0x9b9d18]=await _0x341f1e[_0x2615c9(0x171)](createK8sClient,_0x578025);let _0x12adf5=!![];const _0x117ffc={};_0x117ffc[_0x2615c9(0x151)]=_0x3a7c46,await _0x138c64[_0x2615c9(0x167)](_0x117ffc)[_0x2615c9(0xe9)](_0x4b6a98=>{const _0x252c21=_0x2615c9,_0x316bbc={};_0x316bbc['MTAJJ']=_0x341f1e[_0x252c21(0x17c)],_0x316bbc['IBpLL']=_0x341f1e[_0x252c21(0xf1)],_0x316bbc[_0x252c21(0x132)]=_0x341f1e[_0x252c21(0xf8)];const _0x3cc610=_0x316bbc;if(_0x341f1e['gHWlZ'](_0x341f1e['AggJQ'],_0x341f1e[_0x252c21(0x16d)]))logger[_0x252c21(0x17a)](_0x252c21(0x178)+_0x3a7c46+_0x252c21(0x121));else{const _0x545589={};_0x545589[_0x252c21(0x105)]=_0x3cc610[_0x252c21(0xff)],_0x545589['type']=_0x3cc610['IBpLL'];const _0x4d0dd1={};return _0x4d0dd1['grid-id']=_0x545589,_0x685b49['usage'](_0x1734ca['delete'])[_0x252c21(0x13e)](_0x36ebc6)[_0x252c21(0xf3)](_0x4d0dd1)[_0x252c21(0x159)](_0x3cc610[_0x252c21(0x132)])[_0x252c21(0x145)];}})[_0x2615c9(0x10c)](_0x4e8221=>{const _0x31537f=_0x2615c9,_0x46cac5={};_0x46cac5[_0x31537f(0x13a)]=_0x341f1e['JEAOf'];const _0x21607b=_0x46cac5;_0x341f1e[_0x31537f(0x143)](_0x341f1e[_0x31537f(0x12d)],_0x341f1e[_0x31537f(0x12d)])?(logger[_0x31537f(0x166)](_0x31537f(0x178)+_0x3a7c46+_0x31537f(0x150)),_0x12adf5=![]):_0x519f81[_0x31537f(0x166)](_0x21607b[_0x31537f(0x13a)]);});if(_0x12adf5){await _0x341f1e['cttvp'](removeGridComponents,_0x138c64,_0x36c130,_0x4e2637,_0x244339,_0x3a7c46);if(_0x14c8df[_0x2615c9(0xfe)]){const _0xd14bf0=await _0x578025['isBrowserstackCluster']();_0xd14bf0?_0x341f1e[_0x2615c9(0xe7)](_0x341f1e[_0x2615c9(0xf4)],_0x341f1e['WYJwj'])?await _0x578025[_0x2615c9(0x14a)](_0x138c64,_0x1c71e9[_0x2615c9(0x14e)]):_0x49a0ad[_0x2615c9(0xfc)](0x0):_0x341f1e[_0x2615c9(0x152)](_0x341f1e[_0x2615c9(0x160)],_0x341f1e[_0x2615c9(0x176)])?(_0x4d3a33[_0x2615c9(0x10a)](_0x341f1e[_0x2615c9(0x110)]),_0x5b545c[_0x2615c9(0xfc)](0x1)):logger['warn']('Cluster:\x20'+_0x1c71e9[_0x2615c9(0x148)]+_0x2615c9(0x12e));}}}else logger[_0x2615c9(0x166)](_0x341f1e[_0x2615c9(0xea)]);const _0x408f27='https://'+AG_API_URL+_0x2615c9(0xec)+_0x52c8cf[_0x2615c9(0x12a)],_0x3a58c8={'method':_0x341f1e[_0x2615c9(0x15a)],'headers':_0x341f1e[_0x2615c9(0x16e)](getAuthHeader,_0x75c517[_0x2615c9(0x135)]['username'],_0x75c517[_0x2615c9(0x135)]['password']),'throwHttpErrors':![]},_0x3d851d=await _0x341f1e[_0x2615c9(0x137)](got,_0x408f27,_0x3a58c8);_0x341f1e['vtJKM'](_0x3d851d,null)&&_0x341f1e[_0x2615c9(0xe7)](_0x3d851d,undefined)&&_0x341f1e[_0x2615c9(0x143)](_0x3d851d[_0x2615c9(0x116)],0xc8)&&(logger[_0x2615c9(0x17a)](_0x341f1e[_0x2615c9(0x170)]),process[_0x2615c9(0xfc)](0x0)),logger[_0x2615c9(0x10a)](_0x2615c9(0x16c)+_0x3d851d['body']),await _0x341f1e['YuFlK'](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e[_0x2615c9(0x115)],_0x274dbb,_0x52c8cf),process['exit'](0x1);}_0x341f1e[_0x2615c9(0x12f)](_0x274dbb[_0x2615c9(0x116)],0x191)&&(logger[_0x2615c9(0x10a)](_0x341f1e[_0x2615c9(0x11f)]),await _0x341f1e[_0x2615c9(0x165)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e['CvVOL'],messageTypes['ERROR'],_0x341f1e['GwcjO'],null,_0x52c8cf),process[_0x2615c9(0xfc)](0x1)),_0x341f1e[_0x2615c9(0x141)](_0x274dbb[_0x2615c9(0x116)],0x190)&&(logger[_0x2615c9(0x10a)](JSON['parse'](_0x274dbb['body'])[_0x2615c9(0x168)]),await _0x341f1e[_0x2615c9(0x112)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e[_0x2615c9(0x175)],messageTypes[_0x2615c9(0x127)],_0x341f1e[_0x2615c9(0x130)],null,_0x52c8cf),process['exit'](0x1)),logger[_0x2615c9(0x10a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2615c9(0xe6)](_0x274dbb)),await _0x341f1e['TalfO'](sendInstrumentationEvent,_0x52c8cf,_0x341f1e['CvVOL'],messageTypes[_0x2615c9(0x127)],_0x341f1e['CWVVM'],_0x274dbb,_0x52c8cf),process['exit'](0x1);}catch(_0xd49b32){logger['error'](_0x2615c9(0x123)+_0xd49b32[_0x2615c9(0xf9)]),await _0x341f1e[_0x2615c9(0x165)](sendInstrumentationEvent,_0x52c8cf,_0x341f1e['CvVOL'],messageTypes[_0x2615c9(0x127)],_0x341f1e['itRBj'],_0xd49b32,_0x52c8cf),process[_0x2615c9(0xfc)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x2056b1=a12_0x25db;(function(_0x2ff3da,_0x4f155e){const _0x5767ac=a12_0x25db,_0x4678a0=_0x2ff3da();while(!![]){try{const _0x48aa85=parseInt(_0x5767ac(0x18d))/0x1*(parseInt(_0x5767ac(0x184))/0x2)+parseInt(_0x5767ac(0x190))/0x3*(parseInt(_0x5767ac(0x170))/0x4)+-parseInt(_0x5767ac(0x197))/0x5*(parseInt(_0x5767ac(0x175))/0x6)+parseInt(_0x5767ac(0x18c))/0x7+parseInt(_0x5767ac(0x181))/0x8+-parseInt(_0x5767ac(0x17f))/0x9*(parseInt(_0x5767ac(0x16d))/0xa)+-parseInt(_0x5767ac(0x19d))/0xb;if(_0x48aa85===_0x4f155e)break;else _0x4678a0['push'](_0x4678a0['shift']());}catch(_0x3518d2){_0x4678a0['push'](_0x4678a0['shift']());}}}(a12_0x148c,0x3c2c7));const fs=require('fs'),util=require(a12_0x2056b1(0x17c)),got=require(a12_0x2056b1(0x19c)),{v4:uuidv4}=require(a12_0x2056b1(0x177)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x2056b1(0x14d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x2056b1(0x15e)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2056b1(0x171)),{sendInstrumentationEvent}=require(a12_0x2056b1(0x165));function a12_0x148c(){const _0x4f04fb=['guyyN','wrong-creds','MyAiJ','recommendCommands','kxHRf','handler','868905sOLXPY','CXiiN','writeFileSync','nKWfs','zbpJg','got','8144950twxgoo','AgOfj','ERROR','wROcy','type','qmSrH','init-called','XLRRl','bstackUsername','XgehA','command','ZwbnR','sIKKA','exit','existsSync','bstack-accesskey','bSJhy','unknown-error','stringify','strict','utf-8','INFO','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','init','https://','/automate/plan.json','YOxeW','epilogue','description','PeunG','YctBD','env','../utils/userInput','ghwnk','iFsts','kKEEe','BROWSERSTACK_ACCESS_KEY','oXBXG','builder','desc','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','argv','SQuYc','options','username','fwxuA','readFileSync','IqaIw','../config/constants','BROWSERSTACK_USERNAME','WgdYr','PVYTs','ZAvPW','dIvPl','SaLVp','../utils/instrumentationUtils','password','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','mkdirSync','statusCode','eHckQ','requestId','AsMVj','2540uktZxJ','nZKNT','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','161068MhUsXO','../utils/utilityMethods','kbeSI','debug','uvJAR','6ViPldv','Ctqjg','uuid','stack','bstackAccesskey','ZrXnH','string','util','tqhJG','error','8055GzCOwP','ioScj','794520lCMfTJ','aJMXU','parse','927190DrrRVn','Browserstack','ecrYG','help','xhWPh','aXjAx','ZTNJg','IjLVy','2393426DAsTWs','1PGUhPc','ipwuR','tKFsD','36Gerblh'];a12_0x148c=function(){return _0x4f04fb;};return a12_0x148c();}function a12_0x25db(_0x46ea50,_0x4d2ec8){const _0x148c74=a12_0x148c();return a12_0x25db=function(_0x25db7c,_0x59723c){_0x25db7c=_0x25db7c-0x13b;let _0x4bb811=_0x148c74[_0x25db7c];return _0x4bb811;},a12_0x25db(_0x46ea50,_0x4d2ec8);}exports[a12_0x2056b1(0x1a7)]='init',exports[a12_0x2056b1(0x154)]=a12_0x2056b1(0x167),exports[a12_0x2056b1(0x153)]=function(_0x197277){const _0x4eb589=a12_0x2056b1,_0x45a432={};_0x45a432['oXBXG']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x45a432[_0x4eb589(0x172)]=_0x4eb589(0x17b),_0x45a432[_0x4eb589(0x19a)]=_0x4eb589(0x16f),_0x45a432[_0x4eb589(0x150)]='help';const _0x3fb4ce=_0x45a432,_0x29c1da={};_0x29c1da[_0x4eb589(0x149)]=_0x3fb4ce[_0x4eb589(0x152)],_0x29c1da[_0x4eb589(0x1a1)]=_0x3fb4ce[_0x4eb589(0x172)];const _0x77b407={};_0x77b407[_0x4eb589(0x149)]=_0x3fb4ce['nKWfs'],_0x77b407['type']=_0x3fb4ce[_0x4eb589(0x172)];const _0xb9488={};return _0xb9488['bstack-username']=_0x29c1da,_0xb9488[_0x4eb589(0x13b)]=_0x77b407,_0x197277['usage'](HELP_HEADER_MESSAGE[_0x4eb589(0x144)])[_0x4eb589(0x148)](HELP_FOOTER_MESSAGE)[_0x4eb589(0x159)](_0xb9488)['recommendCommands']()[_0x4eb589(0x13f)]()[_0x4eb589(0x187)](_0x3fb4ce['kKEEe'])[_0x4eb589(0x157)];},exports[a12_0x2056b1(0x196)]=async function(_0x258642){const _0x3ac7b3=a12_0x2056b1,_0x182dda={'kxHRf':function(_0x1558d7){return _0x1558d7();},'tKFsD':_0x3ac7b3(0x140),'aJMXU':_0x3ac7b3(0x142),'YctBD':_0x3ac7b3(0x17b),'ZAvPW':_0x3ac7b3(0x16f),'AgOfj':_0x3ac7b3(0x187),'zbpJg':function(_0x59d766){return _0x59d766();},'xhWPh':function(_0x2c9475,_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14){return _0x2c9475(_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14);},'ipwuR':_0x3ac7b3(0x1a3),'MyAiJ':function(_0x18b16b){return _0x18b16b();},'YOxeW':function(_0x4a5d9c,_0x3c610e){return _0x4a5d9c!==_0x3c610e;},'AsMVj':'ernSl','zcsud':_0x3ac7b3(0x16e),'sIKKA':_0x3ac7b3(0x1a0),'eHckQ':function(_0x5aa429,_0x56f70d){return _0x5aa429===_0x56f70d;},'PeunG':'SZsQO','SaLVp':'rLjzW','bSJhy':function(_0x2ea7f0,_0xb90a97){return _0x2ea7f0!==_0xb90a97;},'XLRRl':'rvSqG','PVYTs':_0x3ac7b3(0x18b),'dIvPl':'SUjCE','uvJAR':function(_0x55632e,_0x32fc9e){return _0x55632e===_0x32fc9e;},'ZrXnH':function(_0x169623,_0xc38ddb){return _0x169623!==_0xc38ddb;},'CXiiN':_0x3ac7b3(0x191),'ZwbnR':'ZBxto','ZTNJg':_0x3ac7b3(0x155),'TsMyi':function(_0x3004e5){return _0x3004e5();},'SQuYc':'GET','OEHcw':function(_0x4ca191,_0x1b947c,_0x33e811){return _0x4ca191(_0x1b947c,_0x33e811);},'iFsts':function(_0x40a5a4,_0x529da9,_0x28c882){return _0x40a5a4(_0x529da9,_0x28c882);},'qmSrH':function(_0x1a61e3,_0x3edc06){return _0x1a61e3!==_0x3edc06;},'IqaIw':_0x3ac7b3(0x1a6),'fwxuA':_0x3ac7b3(0x189),'PnIRd':function(_0x2f83df,_0x10386d){return _0x2f83df===_0x10386d;},'Ctqjg':'yPDPM','tJMTC':function(_0x20ba8f,_0x2103cc){return _0x20ba8f!==_0x2103cc;},'WgdYr':_0x3ac7b3(0x186),'BpcLh':_0x3ac7b3(0x17d),'hVQay':_0x3ac7b3(0x156),'ghwnk':_0x3ac7b3(0x192),'ioScj':_0x3ac7b3(0x13d)};try{global_registry[_0x3ac7b3(0x16b)]=_0x182dda[_0x3ac7b3(0x19b)](uuidv4),_0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x141)],null,null,_0x258642);const _0x3b1066=_0x182dda[_0x3ac7b3(0x193)](getDirForConfig);if(!fs[_0x3ac7b3(0x1ab)](_0x3b1066)){if(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x16c)],_0x182dda['zcsud']))fs['mkdirSync'](_0x3b1066);else{let _0x387acf={};const _0x94cb9=_0x182dda[_0x3ac7b3(0x195)](_0x38ce48);_0x1f2c96[_0x3ac7b3(0x1ab)](_0x94cb9)&&(_0x387acf=_0x50572a[_0x3ac7b3(0x183)](_0x5b8102['readFileSync'](_0x94cb9,_0x182dda[_0x3ac7b3(0x18f)])));const _0x2a1268={};_0x2a1268['username']=_0x16fc0e,_0x2a1268['password']=_0x3d4aeb,_0x387acf['Browserstack']=_0x2a1268,_0x17f839[_0x3ac7b3(0x199)](_0x94cb9,_0x288ef3[_0x3ac7b3(0x13e)](_0x387acf)),_0x5b41f4[_0x3ac7b3(0x1aa)](0x0);}}let _0x378024,_0x2b9173;process[_0x3ac7b3(0x14c)]['BROWSERSTACK_USERNAME']&&(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x1a9)],_0x182dda[_0x3ac7b3(0x1a9)])?_0x5ca588=_0x2426fb[_0x3ac7b3(0x179)]:_0x378024=process[_0x3ac7b3(0x14c)][_0x3ac7b3(0x15f)]);process['env'][_0x3ac7b3(0x151)]&&(_0x182dda['eHckQ'](_0x182dda[_0x3ac7b3(0x14a)],_0x182dda[_0x3ac7b3(0x164)])?_0x41661d[_0x3ac7b3(0x168)](_0x282c41):_0x2b9173=process['env']['BROWSERSTACK_ACCESS_KEY']);_0x258642[_0x3ac7b3(0x1a5)]&&(_0x182dda[_0x3ac7b3(0x13c)](_0x182dda[_0x3ac7b3(0x1a4)],_0x182dda[_0x3ac7b3(0x1a4)])?_0x32ef40=_0xc37cb7[_0x3ac7b3(0x1a5)]:_0x378024=_0x258642[_0x3ac7b3(0x1a5)]);if(_0x258642['bstackAccesskey']){if(_0x182dda[_0x3ac7b3(0x16a)](_0x182dda[_0x3ac7b3(0x161)],_0x182dda[_0x3ac7b3(0x163)])){const _0xd8c740={};_0xd8c740[_0x3ac7b3(0x149)]=_0x182dda[_0x3ac7b3(0x182)],_0xd8c740[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x4c3183={};_0x4c3183['description']=_0x182dda[_0x3ac7b3(0x162)],_0x4c3183[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x502c53={};return _0x502c53['bstack-username']=_0xd8c740,_0x502c53[_0x3ac7b3(0x13b)]=_0x4c3183,_0x503355[_0x3ac7b3(0x143)](_0x4f56d4[_0x3ac7b3(0x144)])['epilogue'](_0x4c054a)[_0x3ac7b3(0x159)](_0x502c53)[_0x3ac7b3(0x194)]()[_0x3ac7b3(0x13f)]()[_0x3ac7b3(0x187)](_0x182dda[_0x3ac7b3(0x19e)])['argv'];}else _0x2b9173=_0x258642[_0x3ac7b3(0x179)];}if(_0x182dda[_0x3ac7b3(0x174)](_0x378024,undefined)||_0x182dda[_0x3ac7b3(0x16a)](_0x2b9173,undefined)){if(_0x182dda[_0x3ac7b3(0x17a)](_0x182dda[_0x3ac7b3(0x198)],_0x182dda[_0x3ac7b3(0x1a8)])){logger[_0x3ac7b3(0x173)](_0x182dda[_0x3ac7b3(0x18a)]);const [_0x5b5c51,_0x46b64c]=await _0x182dda['TsMyi'](inputBstackKeys);_0x378024=_0x5b5c51,_0x2b9173=_0x46b64c;}else _0x4d1ef7=_0x3f1a06['env']['BROWSERSTACK_USERNAME'];}let _0x5ef85f=![];const _0xa18b4c=_0x3ac7b3(0x145)+_0x378024+':'+_0x2b9173+'@'+BS_API_URL+_0x3ac7b3(0x146),_0xaf4cd7={'method':_0x182dda[_0x3ac7b3(0x158)],'headers':_0x182dda['OEHcw'](getAuthHeader,_0x378024,_0x2b9173),'throwHttpErrors':![]},_0x333333=await _0x182dda[_0x3ac7b3(0x14f)](got,_0xa18b4c,_0xaf4cd7);_0x182dda['qmSrH'](_0x333333,null)&&_0x182dda[_0x3ac7b3(0x1a2)](_0x333333,undefined)&&_0x182dda[_0x3ac7b3(0x16a)](_0x333333[_0x3ac7b3(0x169)],0xc8)&&(_0x182dda[_0x3ac7b3(0x1a2)](_0x182dda[_0x3ac7b3(0x15d)],_0x182dda[_0x3ac7b3(0x15b)])?_0x5ef85f=!![]:_0x24d1b8=!![]);if(_0x5ef85f){if(_0x182dda['PnIRd'](_0x182dda[_0x3ac7b3(0x176)],_0x182dda['Ctqjg'])){let _0x5e70c8={};const _0xf8b08d=_0x182dda[_0x3ac7b3(0x193)](getCredentialsPath);fs['existsSync'](_0xf8b08d)&&(_0x182dda['tJMTC'](_0x182dda[_0x3ac7b3(0x160)],_0x182dda['BpcLh'])?_0x5e70c8=JSON[_0x3ac7b3(0x183)](fs[_0x3ac7b3(0x15c)](_0xf8b08d,_0x182dda[_0x3ac7b3(0x18f)])):_0x3fc5ba=_0x5455ff['parse'](_0x201d4c[_0x3ac7b3(0x15c)](_0x530bcc,_0x182dda[_0x3ac7b3(0x18f)])));const _0x5526be={};_0x5526be[_0x3ac7b3(0x15a)]=_0x378024,_0x5526be[_0x3ac7b3(0x166)]=_0x2b9173,_0x5e70c8[_0x3ac7b3(0x185)]=_0x5526be,fs[_0x3ac7b3(0x199)](_0xf8b08d,JSON[_0x3ac7b3(0x13e)](_0x5e70c8)),process[_0x3ac7b3(0x1aa)](0x0);}else _0x4d5ba8=_0x28acc1[_0x3ac7b3(0x14c)][_0x3ac7b3(0x151)];}else logger['error'](_0x182dda['hVQay']),await _0x182dda['xhWPh'](sendInstrumentationEvent,_0x258642,_0x182dda['ipwuR'],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x14e)],null,_0x258642),process[_0x3ac7b3(0x1aa)](0x1);}catch(_0x430d40){logger[_0x3ac7b3(0x17e)](_0x430d40[_0x3ac7b3(0x178)]),await _0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x180)],_0x430d40,_0x258642),process['exit'](0x1);}};
1
+ const a12_0x104dc3=a12_0x5902;(function(_0xc5c9cc,_0x190f0d){const _0x542bbe=a12_0x5902,_0x2a89e9=_0xc5c9cc();while(!![]){try{const _0xf0961f=-parseInt(_0x542bbe(0x11d))/0x1+parseInt(_0x542bbe(0xe4))/0x2+-parseInt(_0x542bbe(0x117))/0x3*(parseInt(_0x542bbe(0x11e))/0x4)+parseInt(_0x542bbe(0x114))/0x5+-parseInt(_0x542bbe(0x111))/0x6+parseInt(_0x542bbe(0x13b))/0x7+-parseInt(_0x542bbe(0x12c))/0x8*(-parseInt(_0x542bbe(0xe7))/0x9);if(_0xf0961f===_0x190f0d)break;else _0x2a89e9['push'](_0x2a89e9['shift']());}catch(_0x3d665c){_0x2a89e9['push'](_0x2a89e9['shift']());}}}(a12_0x49be,0x5febd));function a12_0x49be(){const _0x2983fb=['options','utf-8','51304EQdHKA','debug','type','bstackUsername','mkdirSync','existsSync','jaBUP','../config/logger','PxaKP','BROWSERSTACK_ACCESS_KEY','argv','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','requestId','https://','3951458YbgqJv','vesbq','bstack-accesskey','qaQEg','biMFG','gyvvo','Mznkd','tZHrm','NcrGg','description','rtonb','strict','LuAcB','joXMj','IiesZ','ERROR','desc','bxCSl','INFO','../utils/instrumentationUtils','1334206HxHhmF','UbVLe','help','801IkemVv','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','ZUvuY','NOsjq','OskgD','writeFileSync','gROgt','bstack-username','util','statusCode','init','tSIKv','env','hnovb','AFSpu','WZAoj','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','error','wrong-creds','password','exit','string','BdXYg','GET','HdKKx','readFileSync','init-called','udzhZ','../utils/utilityMethods','usage','wtuPJ','dZYAM','builder','ENeAD','ZibnC','QILtK','stringify','../config/constants','stack','PADih','epilogue','xjyAz','3220836NdOSHF','fehMj','bmNYX','1480270fNwfRQ','bstackAccesskey','Browserstack','381iinPFJ','feznY','uuid','rbCWl','username','command','383214SMLzux','24740bLJyQY','eooLM','parse','recommendCommands','got','../utils/userInput','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','yPQHs','eMDOO','caeRa','handler','BROWSERSTACK_USERNAME'];a12_0x49be=function(){return _0x2983fb;};return a12_0x49be();}const fs=require('fs'),util=require(a12_0x104dc3(0xef)),got=require(a12_0x104dc3(0x122)),{v4:uuidv4}=require(a12_0x104dc3(0x119)),{logger}=require(a12_0x104dc3(0x133)),{inputBstackKeys}=require(a12_0x104dc3(0x123)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x104dc3(0x10c)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x104dc3(0x103)),{sendInstrumentationEvent}=require(a12_0x104dc3(0xe3));function a12_0x5902(_0xaf8e38,_0x589e81){const _0x49beca=a12_0x49be();return a12_0x5902=function(_0x590219,_0x15b435){_0x590219=_0x590219-0xd2;let _0xb4d93a=_0x49beca[_0x590219];return _0xb4d93a;},a12_0x5902(_0xaf8e38,_0x589e81);}exports[a12_0x104dc3(0x11c)]='init',exports[a12_0x104dc3(0xe0)]=a12_0x104dc3(0x124),exports[a12_0x104dc3(0x107)]=function(_0x5cb477){const _0x2548b9=a12_0x104dc3,_0x2803ea={};_0x2803ea[_0x2548b9(0xdc)]=_0x2548b9(0x137),_0x2803ea[_0x2548b9(0x110)]=_0x2548b9(0xfc),_0x2803ea['joXMj']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2803ea[_0x2548b9(0x10e)]=_0x2548b9(0xe6);const _0x32d043=_0x2803ea,_0x1d9170={};_0x1d9170['description']=_0x32d043[_0x2548b9(0xdc)],_0x1d9170[_0x2548b9(0x12e)]=_0x32d043[_0x2548b9(0x110)];const _0x2a9b94={};_0x2a9b94[_0x2548b9(0xd9)]=_0x32d043[_0x2548b9(0xdd)],_0x2a9b94[_0x2548b9(0x12e)]=_0x32d043[_0x2548b9(0x110)];const _0x49eba1={};return _0x49eba1['bstack-username']=_0x1d9170,_0x49eba1[_0x2548b9(0xd2)]=_0x2a9b94,_0x5cb477[_0x2548b9(0x104)](HELP_HEADER_MESSAGE[_0x2548b9(0xf1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2548b9(0x12a)](_0x49eba1)[_0x2548b9(0x121)]()[_0x2548b9(0xdb)]()[_0x2548b9(0xe6)](_0x32d043[_0x2548b9(0x10e)])[_0x2548b9(0x136)];},exports[a12_0x104dc3(0x128)]=async function(_0x3bf27a){const _0x26ccc6=a12_0x104dc3,_0xfd13c2={'yuHIa':_0x26ccc6(0x137),'udzhZ':_0x26ccc6(0xfc),'eMDOO':_0x26ccc6(0xf7),'ZUvuY':_0x26ccc6(0xe6),'Mznkd':function(_0x9fbac8){return _0x9fbac8();},'OskgD':_0x26ccc6(0x12b),'QILtK':function(_0x30767c,_0x206d1e,_0x174441,_0x194c88,_0x1ab7b1,_0x38f0d1,_0x35e3c0){return _0x30767c(_0x206d1e,_0x174441,_0x194c88,_0x1ab7b1,_0x38f0d1,_0x35e3c0);},'UbVLe':_0x26ccc6(0x101),'biMFG':function(_0x3ef78c){return _0x3ef78c();},'feznY':function(_0x40543c,_0x452cbe){return _0x40543c===_0x452cbe;},'rtonb':'SKokI','wtuPJ':function(_0x2b0c3f,_0x1b6e65){return _0x2b0c3f!==_0x1b6e65;},'vesbq':_0x26ccc6(0xf2),'WZAoj':_0x26ccc6(0xd3),'NcrGg':'tBmTk','bmNYX':function(_0x128d21,_0x5b82d3){return _0x128d21!==_0x5b82d3;},'gROgt':_0x26ccc6(0x125),'hnovb':'PJFrt','rbCWl':function(_0x44f0de,_0x56af51){return _0x44f0de===_0x56af51;},'jaBUP':function(_0x31505d,_0x2c041f){return _0x31505d===_0x2c041f;},'ZibnC':_0x26ccc6(0xde),'HdKKx':_0x26ccc6(0x138),'bxCSl':function(_0x66d8d8){return _0x66d8d8();},'woUtf':_0x26ccc6(0xfe),'fehMj':function(_0x24749e,_0x2f15c5,_0x38df99){return _0x24749e(_0x2f15c5,_0x38df99);},'caeRa':function(_0x4afbcf,_0x1163c0,_0x3007f4){return _0x4afbcf(_0x1163c0,_0x3007f4);},'gyvvo':function(_0x5e0199,_0x1f7cd6){return _0x5e0199!==_0x1f7cd6;},'dZYAM':function(_0x4cf1f8,_0x1f69ea){return _0x4cf1f8!==_0x1f69ea;},'PxaKP':_0x26ccc6(0x108),'BdXYg':_0x26ccc6(0xf5),'tZHrm':function(_0x15f7e5){return _0x15f7e5();},'NOsjq':_0x26ccc6(0x11f),'ARdoy':_0x26ccc6(0xe8),'GScNK':_0x26ccc6(0xf9),'goMPR':'unknown-error'};try{global_registry[_0x26ccc6(0x139)]=_0xfd13c2[_0x26ccc6(0xd6)](uuidv4),_0xfd13c2[_0x26ccc6(0x10a)](sendInstrumentationEvent,_0x3bf27a,_0xfd13c2[_0x26ccc6(0xe5)],messageTypes[_0x26ccc6(0xe2)],null,null,_0x3bf27a);const _0x5dea9c=_0xfd13c2[_0x26ccc6(0xd4)](getDirForConfig);if(!fs['existsSync'](_0x5dea9c)){if(_0xfd13c2['feznY'](_0xfd13c2['rtonb'],_0xfd13c2[_0x26ccc6(0xda)]))fs[_0x26ccc6(0x130)](_0x5dea9c);else{const _0x29d2e7={};_0x29d2e7[_0x26ccc6(0xd9)]=_0xfd13c2['yuHIa'],_0x29d2e7[_0x26ccc6(0x12e)]=_0xfd13c2[_0x26ccc6(0x102)];const _0x27adb8={};_0x27adb8[_0x26ccc6(0xd9)]=_0xfd13c2[_0x26ccc6(0x126)],_0x27adb8[_0x26ccc6(0x12e)]=_0xfd13c2[_0x26ccc6(0x102)];const _0x8c1039={};return _0x8c1039[_0x26ccc6(0xee)]=_0x29d2e7,_0x8c1039[_0x26ccc6(0xd2)]=_0x27adb8,_0x190711[_0x26ccc6(0x104)](_0x9283c9[_0x26ccc6(0xf1)])[_0x26ccc6(0x10f)](_0x5aa276)[_0x26ccc6(0x12a)](_0x8c1039)[_0x26ccc6(0x121)]()[_0x26ccc6(0xdb)]()[_0x26ccc6(0xe6)](_0xfd13c2[_0x26ccc6(0xe9)])['argv'];}}let _0x51992f,_0x253656;process[_0x26ccc6(0xf3)][_0x26ccc6(0x129)]&&(_0xfd13c2[_0x26ccc6(0x105)](_0xfd13c2[_0x26ccc6(0x13c)],_0xfd13c2[_0x26ccc6(0x13c)])?_0x5e51a4=_0x560701['env']['BROWSERSTACK_USERNAME']:_0x51992f=process[_0x26ccc6(0xf3)]['BROWSERSTACK_USERNAME']);if(process[_0x26ccc6(0xf3)]['BROWSERSTACK_ACCESS_KEY']){if(_0xfd13c2['wtuPJ'](_0xfd13c2[_0x26ccc6(0xf6)],_0xfd13c2[_0x26ccc6(0xd8)]))_0x253656=process[_0x26ccc6(0xf3)][_0x26ccc6(0x135)];else{let _0x16a6fc={};const _0x2b0b21=_0xfd13c2[_0x26ccc6(0xd6)](_0x4210e6);_0x5bb4f8[_0x26ccc6(0x131)](_0x2b0b21)&&(_0x16a6fc=_0x739bb3['parse'](_0x5db58e[_0x26ccc6(0x100)](_0x2b0b21,_0xfd13c2[_0x26ccc6(0xeb)])));const _0x106d73={};_0x106d73[_0x26ccc6(0x11b)]=_0x555cbe,_0x106d73[_0x26ccc6(0xfa)]=_0x32f8d6,_0x16a6fc[_0x26ccc6(0x116)]=_0x106d73,_0x4d8179['writeFileSync'](_0x2b0b21,_0x2620ea[_0x26ccc6(0x10b)](_0x16a6fc)),_0x325c8e[_0x26ccc6(0xfb)](0x0);}}_0x3bf27a[_0x26ccc6(0x12f)]&&(_0xfd13c2['bmNYX'](_0xfd13c2['gROgt'],_0xfd13c2[_0x26ccc6(0xed)])?_0xe98a2d=_0x5f4394[_0x26ccc6(0xf3)][_0x26ccc6(0x135)]:_0x51992f=_0x3bf27a['bstackUsername']);_0x3bf27a[_0x26ccc6(0x115)]&&(_0xfd13c2[_0x26ccc6(0x113)](_0xfd13c2[_0x26ccc6(0xf4)],_0xfd13c2[_0x26ccc6(0xf4)])?_0x588433=!![]:_0x253656=_0x3bf27a[_0x26ccc6(0x115)]);if(_0xfd13c2[_0x26ccc6(0x118)](_0x51992f,undefined)||_0xfd13c2[_0x26ccc6(0x11a)](_0x253656,undefined)){if(_0xfd13c2[_0x26ccc6(0x132)](_0xfd13c2['ZibnC'],_0xfd13c2[_0x26ccc6(0x109)])){logger[_0x26ccc6(0x12d)](_0xfd13c2[_0x26ccc6(0xff)]);const [_0x42cfa8,_0x54d011]=await _0xfd13c2[_0x26ccc6(0xe1)](inputBstackKeys);_0x51992f=_0x42cfa8,_0x253656=_0x54d011;}else _0x2615cd=_0x48fcff['bstackUsername'];}let _0x10094a=![];const _0x1ad833=_0x26ccc6(0x13a)+_0x51992f+':'+_0x253656+'@'+BS_API_URL+'/automate/plan.json',_0x46168d={'method':_0xfd13c2['woUtf'],'headers':_0xfd13c2[_0x26ccc6(0x112)](getAuthHeader,_0x51992f,_0x253656),'throwHttpErrors':![]},_0x5ae9e6=await _0xfd13c2[_0x26ccc6(0x127)](got,_0x1ad833,_0x46168d);_0xfd13c2[_0x26ccc6(0xd5)](_0x5ae9e6,null)&&_0xfd13c2[_0x26ccc6(0x106)](_0x5ae9e6,undefined)&&_0xfd13c2[_0x26ccc6(0x132)](_0x5ae9e6[_0x26ccc6(0xf0)],0xc8)&&(_0xfd13c2[_0x26ccc6(0x118)](_0xfd13c2[_0x26ccc6(0x134)],_0xfd13c2[_0x26ccc6(0x134)])?_0x10094a=!![]:_0x361ce0=_0x1b4325[_0x26ccc6(0x115)]);if(_0x10094a){if(_0xfd13c2['bmNYX'](_0xfd13c2['BdXYg'],_0xfd13c2[_0x26ccc6(0xfd)]))_0x4b0161=_0x1a8c14[_0x26ccc6(0x120)](_0x4814ec[_0x26ccc6(0x100)](_0x2e1dd7,_0xfd13c2[_0x26ccc6(0xeb)]));else{let _0x5e789d={};const _0xda0946=_0xfd13c2[_0x26ccc6(0xd7)](getCredentialsPath);fs['existsSync'](_0xda0946)&&(_0xfd13c2[_0x26ccc6(0x11a)](_0xfd13c2[_0x26ccc6(0xea)],_0xfd13c2[_0x26ccc6(0xea)])?_0x5e789d=JSON[_0x26ccc6(0x120)](fs[_0x26ccc6(0x100)](_0xda0946,_0xfd13c2[_0x26ccc6(0xeb)])):_0x397bcb['mkdirSync'](_0x16243b));const _0x47260f={};_0x47260f[_0x26ccc6(0x11b)]=_0x51992f,_0x47260f['password']=_0x253656,_0x5e789d[_0x26ccc6(0x116)]=_0x47260f,fs[_0x26ccc6(0xec)](_0xda0946,JSON[_0x26ccc6(0x10b)](_0x5e789d)),process[_0x26ccc6(0xfb)](0x0);}}else logger[_0x26ccc6(0xf8)](_0xfd13c2['ARdoy']),await _0xfd13c2[_0x26ccc6(0x10a)](sendInstrumentationEvent,_0x3bf27a,_0xfd13c2['UbVLe'],messageTypes[_0x26ccc6(0xdf)],_0xfd13c2['GScNK'],null,_0x3bf27a),process['exit'](0x1);}catch(_0x2c7b00){logger[_0x26ccc6(0xf8)](_0x2c7b00[_0x26ccc6(0x10d)]),await _0xfd13c2[_0x26ccc6(0x10a)](sendInstrumentationEvent,_0x3bf27a,_0xfd13c2[_0x26ccc6(0xe5)],messageTypes[_0x26ccc6(0xdf)],_0xfd13c2['goMPR'],_0x2c7b00,_0x3bf27a),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a13_0xb5192a=a13_0x1f73;(function(_0x719dee,_0x17eb9a){const _0x2b07db=a13_0x1f73,_0x306414=_0x719dee();while(!![]){try{const _0x105baf=-parseInt(_0x2b07db(0x1b0))/0x1*(parseInt(_0x2b07db(0x1a7))/0x2)+-parseInt(_0x2b07db(0x1aa))/0x3+-parseInt(_0x2b07db(0x1ac))/0x4*(parseInt(_0x2b07db(0x1a4))/0x5)+-parseInt(_0x2b07db(0x1a9))/0x6+parseInt(_0x2b07db(0x19f))/0x7+parseInt(_0x2b07db(0x1a1))/0x8+parseInt(_0x2b07db(0x1a3))/0x9*(parseInt(_0x2b07db(0x1ad))/0xa);if(_0x105baf===_0x17eb9a)break;else _0x306414['push'](_0x306414['shift']());}catch(_0x69f9b6){_0x306414['push'](_0x306414['shift']());}}}(a13_0x3619,0x30020));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0xb5192a(0x1af));exports['command']=a13_0xb5192a(0x1a6),exports[a13_0xb5192a(0x1ab)]=a13_0xb5192a(0x19e),exports['builder']=function(_0x537f5b){const _0x741f25=a13_0xb5192a,_0x18d04c={};_0x18d04c[_0x741f25(0x1a2)]='list_commands',_0x18d04c['vValc']=_0x741f25(0x19d);const _0x4cf96a=_0x18d04c;return _0x537f5b[_0x741f25(0x1ae)](_0x4cf96a['dPVlp'])[_0x741f25(0x1b1)]()[_0x741f25(0x1a5)](HELP_HEADER_MESSAGE[_0x741f25(0x1a6)][_0x741f25(0x19b)])[_0x741f25(0x19c)](HELP_FOOTER_MESSAGE)[_0x741f25(0x1a8)]()['strict']()[_0x741f25(0x19d)](_0x4cf96a[_0x741f25(0x1a0)]);},exports[a13_0xb5192a(0x1b2)]=function(_0x2badb8){};function a13_0x1f73(_0x3d1a0e,_0x58d94d){const _0x3619af=a13_0x3619();return a13_0x1f73=function(_0x1f7314,_0x2a3543){_0x1f7314=_0x1f7314-0x19b;let _0x64207e=_0x3619af[_0x1f7314];return _0x64207e;},a13_0x1f73(_0x3d1a0e,_0x58d94d);}function a13_0x3619(){const _0x520084=['epilogue','help','List\x20down\x20the\x20Grid\x20resources.','1805216dmHjOv','vValc','1006872JfbIvK','dPVlp','117ABXdXq','4560PhHwbq','usage','list','14506ZiwlxO','recommendCommands','1959150bvSLMr','613452yhJilD','desc','584LGISEE','472970FMRXiK','commandDir','../config/constants','19uXtaMQ','demandCommand','handler','root'];a13_0x3619=function(){return _0x520084;};return a13_0x3619();}
1
+ const a13_0x41679c=a13_0x16e5;(function(_0xdc3eb8,_0x37f3af){const _0x3f757b=a13_0x16e5,_0x15eba8=_0xdc3eb8();while(!![]){try{const _0x2529e8=-parseInt(_0x3f757b(0x1c1))/0x1+parseInt(_0x3f757b(0x1c0))/0x2+-parseInt(_0x3f757b(0x1c7))/0x3+parseInt(_0x3f757b(0x1b8))/0x4*(-parseInt(_0x3f757b(0x1cc))/0x5)+-parseInt(_0x3f757b(0x1bc))/0x6+parseInt(_0x3f757b(0x1c6))/0x7*(parseInt(_0x3f757b(0x1bd))/0x8)+parseInt(_0x3f757b(0x1cb))/0x9;if(_0x2529e8===_0x37f3af)break;else _0x15eba8['push'](_0x15eba8['shift']());}catch(_0x4dec07){_0x15eba8['push'](_0x15eba8['shift']());}}}(a13_0x4f38,0x64510));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x41679c(0x1ba));function a13_0x16e5(_0x665a55,_0x178273){const _0x4f3816=a13_0x4f38();return a13_0x16e5=function(_0x16e523,_0x1c38fa){_0x16e523=_0x16e523-0x1b4;let _0xe40252=_0x4f3816[_0x16e523];return _0xe40252;},a13_0x16e5(_0x665a55,_0x178273);}exports[a13_0x41679c(0x1bb)]=a13_0x41679c(0x1b9),exports[a13_0x41679c(0x1bf)]=a13_0x41679c(0x1ca),exports[a13_0x41679c(0x1c3)]=function(_0x1fb07f){const _0x21a0be=a13_0x41679c,_0x3249cb={};_0x3249cb[_0x21a0be(0x1b7)]=_0x21a0be(0x1cd),_0x3249cb[_0x21a0be(0x1be)]=_0x21a0be(0x1b6);const _0x245a76=_0x3249cb;return _0x1fb07f[_0x21a0be(0x1b4)](_0x245a76['xLuYx'])[_0x21a0be(0x1c4)]()[_0x21a0be(0x1c2)](HELP_HEADER_MESSAGE[_0x21a0be(0x1b9)][_0x21a0be(0x1c5)])[_0x21a0be(0x1c8)](HELP_FOOTER_MESSAGE)[_0x21a0be(0x1b5)]()['strict']()[_0x21a0be(0x1b6)](_0x245a76[_0x21a0be(0x1be)]);},exports[a13_0x41679c(0x1c9)]=function(_0x1f8aca){};function a13_0x4f38(){const _0x469e7a=['6524vrnEJn','list','../config/constants','command','2551848gPeaRR','256SAIcjy','qzalo','desc','1628914uoWXhv','262327UaoSSR','usage','builder','demandCommand','root','23317oYupyJ','2046582ojLRxn','epilogue','handler','List\x20down\x20the\x20Grid\x20resources.','8896725acyGuW','395ncpTzW','list_commands','commandDir','recommendCommands','help','xLuYx'];a13_0x4f38=function(){return _0x469e7a;};return a13_0x4f38();}
@@ -1 +1 @@
1
- const a14_0x339b2d=a14_0x5a29;function a14_0x28d1(){const _0x9cbcf2=['type','got','uuid','error','axEzQ','jknvE','vcULL','qCnfm','3174948dryANh','init-not-called','unknown-error','641013hoZJay','DDUtk','readFileSync','region','list-grid-profiles-called','builder','description','vCAyD','statusCode','lmyvi','../../utils/instrumentationUtils','/packages/cli/get-all-grid-profiles','wpnBd','cloud-provider','body','cloudProvider','6042744HzMfrP','push','stack','../../config/constants','epilogue','hzNyk','bstackAccesskey','desc','name','argv','table','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid-profile-name','Browserstack','qPIxU','36352216NOjjWs','GET','ACeuC','bstackUsername','stringify','concurrency','Txpec','656872xvKSrz','handler','LyXJN','526984XDYJuJ','../../utils/utilityMethods','requestId','3620247YsqqjQ','GLQQf','parse','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','HhxzU','server-error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','log','ERROR','unauthorised','ZseaV','username','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','all-grid-profiles','45hodHIv','usage','WXetX','kKjor','OEZQT','options','INFO','https://','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','YptiD','help','password','yxvsc','pTegh'];a14_0x28d1=function(){return _0x9cbcf2;};return a14_0x28d1();}(function(_0x2254ac,_0x15e069){const _0x13682c=a14_0x5a29,_0x570d58=_0x2254ac();while(!![]){try{const _0x3c6374=-parseInt(_0x13682c(0xcb))/0x1+parseInt(_0x13682c(0xa0))/0x2+-parseInt(_0x13682c(0xa3))/0x3+parseInt(_0x13682c(0x9d))/0x4*(-parseInt(_0x13682c(0xb1))/0x5)+-parseInt(_0x13682c(0xdb))/0x6+parseInt(_0x13682c(0xc8))/0x7+parseInt(_0x13682c(0x96))/0x8;if(_0x3c6374===_0x15e069)break;else _0x570d58['push'](_0x570d58['shift']());}catch(_0x3f8907){_0x570d58['push'](_0x570d58['shift']());}}}(a14_0x28d1,0xe29eb));const fs=require('fs'),got=require(a14_0x339b2d(0xc1)),{table}=require(a14_0x339b2d(0xe5)),{v4:uuidv4}=require(a14_0x339b2d(0xc2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x339b2d(0xde)),{getCredentialsPath,getAuthHeader}=require(a14_0x339b2d(0xa1)),{sendInstrumentationEvent}=require(a14_0x339b2d(0xd5));function a14_0x5a29(_0x2e83b1,_0x1e9def){const _0x28d109=a14_0x28d1();return a14_0x5a29=function(_0x5a292b,_0x339d7b){_0x5a292b=_0x5a292b-0x92;let _0x1d0e78=_0x28d109[_0x5a292b];return _0x1d0e78;},a14_0x5a29(_0x2e83b1,_0x1e9def);}exports['command']='grid-profiles',exports[a14_0x339b2d(0xe2)]=a14_0x339b2d(0xa6),exports[a14_0x339b2d(0xd0)]=function(_0x39fffd){const _0x60249f=a14_0x339b2d,_0x22b150={};_0x22b150[_0x60249f(0xad)]=_0x60249f(0xba),_0x22b150['DfwDD']='boolean',_0x22b150[_0x60249f(0xbb)]=_0x60249f(0xbc);const _0x51b8b6=_0x22b150,_0x3ec826={};_0x3ec826[_0x60249f(0xd1)]=_0x51b8b6[_0x60249f(0xad)],_0x3ec826[_0x60249f(0xc0)]=_0x51b8b6['DfwDD'];const _0x5396d9={};return _0x5396d9[_0x60249f(0xb0)]=_0x3ec826,_0x39fffd[_0x60249f(0xb2)](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x60249f(0xdf)](HELP_FOOTER_MESSAGE)[_0x60249f(0xb6)](_0x5396d9)[_0x60249f(0xbc)](_0x51b8b6[_0x60249f(0xbb)])[_0x60249f(0xe4)];},exports[a14_0x339b2d(0x9e)]=async function(_0x38a8a6){const _0x121ab6=a14_0x339b2d,_0x3393d5={'kKjor':function(_0x3bf78b){return _0x3bf78b();},'jknvE':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WXetX':function(_0x1dd860,_0x4426d9,_0x54609a,_0x595999,_0xa3c540,_0x47e791,_0x18f456){return _0x1dd860(_0x4426d9,_0x54609a,_0x595999,_0xa3c540,_0x47e791,_0x18f456);},'hzNyk':_0x121ab6(0xcf),'ACeuC':_0x121ab6(0xc9),'lmyvi':function(_0x22ce66){return _0x22ce66();},'wpnBd':_0x121ab6(0x97),'axEzQ':function(_0x5b8369,_0x19bf2b,_0x4b2266){return _0x5b8369(_0x19bf2b,_0x4b2266);},'HhxzU':function(_0x2498ad,_0x509b17,_0x54f2bb,_0x4a53db,_0x39525b,_0x453467,_0x5dd078){return _0x2498ad(_0x509b17,_0x54f2bb,_0x4a53db,_0x39525b,_0x453467,_0x5dd078);},'LyXJN':function(_0x329e80,_0xff1423){return _0x329e80!==_0xff1423;},'vcULL':function(_0xb3b078,_0x32395d){return _0xb3b078===_0x32395d;},'oMoFd':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','qPIxU':_0x121ab6(0x93),'yxvsc':_0x121ab6(0xd8),'pTegh':_0x121ab6(0xce),'GpWNz':_0x121ab6(0x9b),'vCAyD':function(_0x1189c3,_0x278f3d){return _0x1189c3(_0x278f3d);},'GLQQf':function(_0x3bd706,_0x5910ce,_0x287abc,_0x5212c0,_0x273e80,_0x4868c1,_0x32ee75){return _0x3bd706(_0x5910ce,_0x287abc,_0x5212c0,_0x273e80,_0x4868c1,_0x32ee75);},'Txpec':_0x121ab6(0xac),'qCnfm':function(_0x3f9515,_0x4a8bca,_0x5cb556,_0x559f75,_0x28f16d,_0x3da7bb,_0x4a96f3){return _0x3f9515(_0x4a8bca,_0x5cb556,_0x559f75,_0x28f16d,_0x3da7bb,_0x4a96f3);},'DDUtk':_0x121ab6(0xa8),'OEZQT':_0x121ab6(0xca)};try{global_registry[_0x121ab6(0xa2)]=_0x3393d5[_0x121ab6(0xb4)](uuidv4);let _0x1cb03f=_0x121ab6(0xb8)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x38a8a6['allGridProfiles']&&(_0x1cb03f=_0x121ab6(0xb8)+AG_API_URL+_0x121ab6(0xd6));!fs['existsSync'](_0x3393d5['kKjor'](getCredentialsPath))&&(console[_0x121ab6(0xc3)](_0x3393d5[_0x121ab6(0xc5)]),await _0x3393d5['WXetX'](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0x98)],null,_0x38a8a6),process[_0x121ab6(0xb9)](0x1));const _0x1881bc=JSON[_0x121ab6(0xa5)](fs[_0x121ab6(0xcd)](_0x3393d5[_0x121ab6(0xd4)](getCredentialsPath))),_0x4cee7e={'method':_0x3393d5[_0x121ab6(0xd7)],'headers':_0x3393d5[_0x121ab6(0xc4)](getAuthHeader,_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xae)],_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xbd)]),'throwHttpErrors':![]};global_registry[_0x121ab6(0x99)]=_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xae)],global_registry[_0x121ab6(0xe1)]=_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xbd)],_0x3393d5[_0x121ab6(0xa7)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xb7)],null,null,_0x38a8a6);const _0x4e203f=await _0x3393d5[_0x121ab6(0xc4)](got,_0x1cb03f,_0x4cee7e);if(_0x3393d5[_0x121ab6(0x9f)](_0x4e203f,null)&&_0x3393d5[_0x121ab6(0x9f)](_0x4e203f,undefined)&&_0x3393d5[_0x121ab6(0xc6)](_0x4e203f['statusCode'],0xc8)){const _0x3f99c0=JSON[_0x121ab6(0xa5)](_0x4e203f[_0x121ab6(0xd9)]);console[_0x121ab6(0xaa)](_0x3393d5['oMoFd']);const _0x49fc67=[];_0x49fc67[_0x121ab6(0xdc)]([_0x3393d5[_0x121ab6(0x95)],_0x3393d5[_0x121ab6(0xbe)],_0x3393d5[_0x121ab6(0xbf)],_0x3393d5['GpWNz']]),_0x3f99c0['forEach'](_0x2edb6a=>{const _0x4c5e03=_0x121ab6;_0x49fc67['push']([_0x2edb6a[_0x4c5e03(0xe3)],_0x2edb6a[_0x4c5e03(0xda)],_0x2edb6a[_0x4c5e03(0xce)],_0x2edb6a[_0x4c5e03(0x9b)]]);}),console[_0x121ab6(0xaa)](_0x3393d5[_0x121ab6(0xd2)](table,_0x49fc67)),process['exit'](0x0);}_0x3393d5[_0x121ab6(0xc6)](_0x4e203f[_0x121ab6(0xd3)],0x191)&&(console[_0x121ab6(0xc3)](_0x121ab6(0xaf)),await _0x3393d5[_0x121ab6(0xa4)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0x9c)],null,_0x38a8a6),process['exit'](0x1)),console[_0x121ab6(0xc3)](_0x121ab6(0xa9)+JSON[_0x121ab6(0x9a)](_0x4e203f)),await _0x3393d5[_0x121ab6(0xc7)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes['ERROR'],_0x3393d5[_0x121ab6(0xcc)],_0x4e203f,_0x38a8a6),process['exit'](0x1);}catch(_0x5bd339){console[_0x121ab6(0xc3)](_0x121ab6(0x92)+_0x5bd339[_0x121ab6(0xdd)]),await _0x3393d5[_0x121ab6(0xb3)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5['hzNyk'],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0xb5)],_0x5bd339,_0x38a8a6),process[_0x121ab6(0xb9)](0x1);}};
1
+ function a14_0x5966(_0x520427,_0x4c6cdd){const _0x5325f0=a14_0x5325();return a14_0x5966=function(_0x596687,_0x88dcf0){_0x596687=_0x596687-0xf4;let _0xe990f=_0x5325f0[_0x596687];return _0xe990f;},a14_0x5966(_0x520427,_0x4c6cdd);}const a14_0x38eb85=a14_0x5966;(function(_0x5d7429,_0xb2ac66){const _0x4f40e9=a14_0x5966,_0x1fe4b3=_0x5d7429();while(!![]){try{const _0x5a0680=parseInt(_0x4f40e9(0x11b))/0x1*(parseInt(_0x4f40e9(0x13e))/0x2)+parseInt(_0x4f40e9(0x123))/0x3*(-parseInt(_0x4f40e9(0x10f))/0x4)+-parseInt(_0x4f40e9(0x135))/0x5+-parseInt(_0x4f40e9(0x13b))/0x6*(parseInt(_0x4f40e9(0x10e))/0x7)+-parseInt(_0x4f40e9(0x101))/0x8*(-parseInt(_0x4f40e9(0x117))/0x9)+-parseInt(_0x4f40e9(0x136))/0xa*(-parseInt(_0x4f40e9(0x109))/0xb)+parseInt(_0x4f40e9(0x131))/0xc*(parseInt(_0x4f40e9(0x118))/0xd);if(_0x5a0680===_0xb2ac66)break;else _0x1fe4b3['push'](_0x1fe4b3['shift']());}catch(_0x147e5d){_0x1fe4b3['push'](_0x1fe4b3['shift']());}}}(a14_0x5325,0x6821a));const fs=require('fs'),got=require('got'),{table}=require(a14_0x38eb85(0xf9)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x38eb85(0x12d)),{getCredentialsPath,getAuthHeader}=require(a14_0x38eb85(0x122)),{sendInstrumentationEvent}=require(a14_0x38eb85(0x119));exports[a14_0x38eb85(0x128)]=a14_0x38eb85(0x114),exports[a14_0x38eb85(0x10c)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x48b482){const _0x379ddc=a14_0x38eb85,_0x52625d={};_0x52625d['WPOou']=_0x379ddc(0x143),_0x52625d['EAnvH']=_0x379ddc(0x137),_0x52625d[_0x379ddc(0x130)]=_0x379ddc(0x144);const _0x5745e2=_0x52625d,_0xe27c74={};_0xe27c74[_0x379ddc(0x12f)]=_0x5745e2[_0x379ddc(0xfc)],_0xe27c74[_0x379ddc(0x13d)]=_0x5745e2['EAnvH'];const _0x311487={};return _0x311487[_0x379ddc(0xfe)]=_0xe27c74,_0x48b482[_0x379ddc(0x10d)](HELP_HEADER_MESSAGE[_0x379ddc(0xf4)][_0x379ddc(0x120)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x379ddc(0x12b)](_0x311487)[_0x379ddc(0x144)](_0x5745e2['ygrrE'])['argv'];},exports['handler']=async function(_0x10a340){const _0x1322d2=a14_0x38eb85,_0x5b9d8d={'cPyQd':function(_0x597d81){return _0x597d81();},'ECkbz':_0x1322d2(0x112),'whxuM':function(_0x195b81,_0xa44c40,_0xd150c2,_0x5e2240,_0x151663,_0xa1976a,_0x5e4187){return _0x195b81(_0xa44c40,_0xd150c2,_0x5e2240,_0x151663,_0xa1976a,_0x5e4187);},'gXtnS':_0x1322d2(0x115),'PcWDO':'init-not-called','zstgY':function(_0x2ce87c){return _0x2ce87c();},'nEMLB':'GET','eaIQb':function(_0x1be671,_0x455d33,_0x56326d){return _0x1be671(_0x455d33,_0x56326d);},'DxqQg':function(_0x440ee5,_0x3de5ee,_0x193034,_0x4fa083,_0x53b1cf,_0x7486f,_0x1d84f3){return _0x440ee5(_0x3de5ee,_0x193034,_0x4fa083,_0x53b1cf,_0x7486f,_0x1d84f3);},'zTawm':function(_0x283a48,_0x1ca58f,_0x187978){return _0x283a48(_0x1ca58f,_0x187978);},'VqDQn':function(_0x16e58a,_0x3657d9){return _0x16e58a!==_0x3657d9;},'XtrYB':function(_0x384564,_0x582df9){return _0x384564!==_0x582df9;},'cleYd':function(_0x20d6de,_0x5bb68b){return _0x20d6de===_0x5bb68b;},'LuIax':_0x1322d2(0x116),'mDemE':_0x1322d2(0x108),'MCaEj':_0x1322d2(0x104),'hVyBn':'region','sHKqD':'concurrency','qoDdg':function(_0x3210d0,_0x39dabc){return _0x3210d0(_0x39dabc);},'AbPqN':function(_0x1fbe22,_0x1661d2){return _0x1fbe22===_0x1661d2;},'hHeaM':_0x1322d2(0x107),'uiEIf':_0x1322d2(0xfd),'hNUvm':'server-error','yXGFi':_0x1322d2(0x138)};try{global_registry[_0x1322d2(0x11d)]=_0x5b9d8d[_0x1322d2(0xfb)](uuidv4);let _0x4a6ad2='https://'+AG_API_URL+_0x1322d2(0x10a);_0x10a340['allGridProfiles']&&(_0x4a6ad2=_0x1322d2(0x141)+AG_API_URL+_0x1322d2(0x139));!fs['existsSync'](_0x5b9d8d[_0x1322d2(0xfb)](getCredentialsPath))&&(console['error'](_0x5b9d8d[_0x1322d2(0x105)]),await _0x5b9d8d[_0x1322d2(0x134)](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x142)],_0x5b9d8d['PcWDO'],null,_0x10a340),process[_0x1322d2(0x11c)](0x1));const _0x575926=JSON['parse'](fs[_0x1322d2(0xf6)](_0x5b9d8d[_0x1322d2(0x13f)](getCredentialsPath))),_0x59a77d={'method':_0x5b9d8d['nEMLB'],'headers':_0x5b9d8d[_0x1322d2(0x13c)](getAuthHeader,_0x575926[_0x1322d2(0x12a)][_0x1322d2(0x110)],_0x575926['Browserstack']['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x575926['Browserstack']['username'],global_registry[_0x1322d2(0x100)]=_0x575926[_0x1322d2(0x12a)][_0x1322d2(0x11a)],_0x5b9d8d['DxqQg'](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x133)],null,null,_0x10a340);const _0x30f845=await _0x5b9d8d[_0x1322d2(0x124)](got,_0x4a6ad2,_0x59a77d);if(_0x5b9d8d[_0x1322d2(0x103)](_0x30f845,null)&&_0x5b9d8d['XtrYB'](_0x30f845,undefined)&&_0x5b9d8d[_0x1322d2(0x121)](_0x30f845[_0x1322d2(0x127)],0xc8)){const _0xa5decc=JSON[_0x1322d2(0x12c)](_0x30f845['body']);console['log'](_0x5b9d8d[_0x1322d2(0x12e)]);const _0x5db8f2=[];_0x5db8f2['push']([_0x5b9d8d[_0x1322d2(0x111)],_0x5b9d8d[_0x1322d2(0xf8)],_0x5b9d8d['hVyBn'],_0x5b9d8d[_0x1322d2(0x11e)]]),_0xa5decc['forEach'](_0x215b43=>{const _0x536d43=_0x1322d2;_0x5db8f2[_0x536d43(0xf5)]([_0x215b43[_0x536d43(0x10b)],_0x215b43[_0x536d43(0x13a)],_0x215b43[_0x536d43(0x125)],_0x215b43[_0x536d43(0x102)]]);}),console['log'](_0x5b9d8d[_0x1322d2(0xff)](table,_0x5db8f2)),process['exit'](0x0);}_0x5b9d8d[_0x1322d2(0x129)](_0x30f845['statusCode'],0x191)&&(console[_0x1322d2(0x140)](_0x5b9d8d[_0x1322d2(0x132)]),await _0x5b9d8d[_0x1322d2(0x134)](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x142)],_0x5b9d8d[_0x1322d2(0xfa)],null,_0x10a340),process[_0x1322d2(0x11c)](0x1)),console[_0x1322d2(0x140)](_0x1322d2(0x145)+JSON[_0x1322d2(0xf7)](_0x30f845)),await _0x5b9d8d['DxqQg'](sendInstrumentationEvent,_0x10a340,_0x5b9d8d['gXtnS'],messageTypes[_0x1322d2(0x142)],_0x5b9d8d[_0x1322d2(0x106)],_0x30f845,_0x10a340),process[_0x1322d2(0x11c)](0x1);}catch(_0x5a0d38){console[_0x1322d2(0x140)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5a0d38[_0x1322d2(0x126)]),await _0x5b9d8d[_0x1322d2(0x134)](sendInstrumentationEvent,_0x10a340,_0x5b9d8d[_0x1322d2(0x11f)],messageTypes['ERROR'],_0x5b9d8d[_0x1322d2(0x113)],_0x5a0d38,_0x10a340),process['exit'](0x1);}};function a14_0x5325(){const _0x35b150=['Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','help','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','list','push','readFileSync','stringify','MCaEj','table','uiEIf','cPyQd','WPOou','unauthorised','all-grid-profiles','qoDdg','bstackAccesskey','3976CpoVLP','concurrency','VqDQn','cloud-provider','ECkbz','hNUvm','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid-profile-name','506aMqlnh','/packages/cli/get-grid-profiles','name','desc','usage','165193lLFakp','258556ERVuip','username','mDemE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yXGFi','grid-profiles','list-grid-profiles-called','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','2583wWDxcY','2688205KhSPCB','../../utils/instrumentationUtils','password','27LQnljq','exit','requestId','sHKqD','gXtnS','gridProfile','cleYd','../../utils/utilityMethods','15lGqaXS','zTawm','region','stack','statusCode','command','AbPqN','Browserstack','options','parse','../../config/constants','LuIax','description','ygrrE','24YOIgnE','hHeaM','INFO','whxuM','711030LpJRST','84740kSyPQz','boolean','unknown-error','/packages/cli/get-all-grid-profiles','cloudProvider','54svSLtF','eaIQb','type','11726pPZxLm','zstgY','error','https://','ERROR'];a14_0x5325=function(){return _0x35b150;};return a14_0x5325();}
@@ -1 +1 @@
1
- function a15_0x1fb4(_0x5708b6,_0x21f29b){const _0x15ca8d=a15_0x15ca();return a15_0x1fb4=function(_0x1fb4a9,_0x35d126){_0x1fb4a9=_0x1fb4a9-0xf6;let _0x490de=_0x15ca8d[_0x1fb4a9];return _0x490de;},a15_0x1fb4(_0x5708b6,_0x21f29b);}function a15_0x15ca(){const _0x4e89b0=['unknown-error','uuid','hhqhr','epilogue','queued','error','78985CdAOJK','JZcuK','init-not-called','WQFMu','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','8AorwkA','grid-id','GttUw','unauthorised','password','12651952gLPCyd','ywzTj','KZVTz','statusCode','help','200WSNCFJ','126yfuaqN','qyLox','ZyJeM','28870479aeITZh','builder','UCFtO','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','argv','nATFW','CahBE','handler','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','name','grid','all-grids','stack','forEach','KRuDp','xUTxS','command','https://','cluster-name','body','\x0aFound\x20the\x20following\x20grids:\x0a','FMvQV','stringify','exit','desc','DABVj','requestId','Browserstack','7065426qCQMNc','30760RpTEzw','list-grids-called','options','/packages/cli/get-grids','CmsGJ','username','got','INFO','parse','push','GeRoP','../../utils/utilityMethods','readFileSync','bstackAccesskey','bstackUsername','GET','server-error','AfaQQ','boolean','status','fMZLx','89277ftYTcY','Failed\x20to\x20list\x20resources!\x20Error:\x20','existsSync','allGrids','mjHJD','list','../../utils/instrumentationUtils','clusterName','7eKoTWy','MnftC','SmMEB','ERROR','../../config/constants','uxGJd','1510298UMgRvs','SEDZA','log'];a15_0x15ca=function(){return _0x4e89b0;};return a15_0x15ca();}const a15_0x438985=a15_0x1fb4;(function(_0x15d6d8,_0x4facf4){const _0x1eca06=a15_0x1fb4,_0x3e7a70=_0x15d6d8();while(!![]){try{const _0x59fd1a=-parseInt(_0x1eca06(0x124))/0x1+parseInt(_0x1eca06(0x132))/0x2*(parseInt(_0x1eca06(0x116))/0x3)+parseInt(_0x1eca06(0x13c))/0x4*(-parseInt(_0x1eca06(0x12d))/0x5)+-parseInt(_0x1eca06(0x100))/0x6*(parseInt(_0x1eca06(0x11e))/0x7)+parseInt(_0x1eca06(0x137))/0x8+parseInt(_0x1eca06(0x13d))/0x9*(-parseInt(_0x1eca06(0x101))/0xa)+parseInt(_0x1eca06(0x140))/0xb;if(_0x59fd1a===_0x4facf4)break;else _0x3e7a70['push'](_0x3e7a70['shift']());}catch(_0x57d767){_0x3e7a70['push'](_0x3e7a70['shift']());}}}(a15_0x15ca,0xc45f0));const fs=require('fs'),got=require(a15_0x438985(0x107)),{table}=require('table'),{v4:uuidv4}=require(a15_0x438985(0x128)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x438985(0x122)),{getCredentialsPath,getAuthHeader}=require(a15_0x438985(0x10c)),{sendInstrumentationEvent}=require(a15_0x438985(0x11c));exports[a15_0x438985(0x150)]='grids',exports[a15_0x438985(0xfc)]=a15_0x438985(0x148),exports[a15_0x438985(0x141)]=function(_0x1fdd49){const _0x1f045=a15_0x438985,_0x1b6361={};_0x1b6361['KZVTz']=_0x1f045(0x143),_0x1b6361[_0x1f045(0x129)]=_0x1f045(0x113),_0x1b6361[_0x1f045(0x120)]=_0x1f045(0x13b);const _0x59f8ca=_0x1b6361,_0x3b2643={};_0x3b2643['description']=_0x59f8ca[_0x1f045(0x139)],_0x3b2643['type']=_0x59f8ca[_0x1f045(0x129)];const _0x29a185={};return _0x29a185[_0x1f045(0x14b)]=_0x3b2643,_0x1fdd49['usage'](HELP_HEADER_MESSAGE[_0x1f045(0x11b)][_0x1f045(0x14a)])[_0x1f045(0x12a)](HELP_FOOTER_MESSAGE)[_0x1f045(0x103)](_0x29a185)[_0x1f045(0x13b)](_0x59f8ca['SmMEB'])[_0x1f045(0x144)];},exports[a15_0x438985(0x147)]=async function(_0x460387){const _0x1375c1=a15_0x438985,_0x14ef7c={'GttUw':function(_0x55d640){return _0x55d640();},'UCFtO':function(_0xe12728){return _0xe12728();},'qyLox':_0x1375c1(0x131),'xUTxS':function(_0x340fa7,_0xb040f8,_0x422f8b,_0x4bfa69,_0x3c91ec,_0x149528,_0x2661d8){return _0x340fa7(_0xb040f8,_0x422f8b,_0x4bfa69,_0x3c91ec,_0x149528,_0x2661d8);},'GeRoP':_0x1375c1(0x102),'WQFMu':_0x1375c1(0x12f),'mjHJD':function(_0x28f46d){return _0x28f46d();},'pyZzL':_0x1375c1(0x110),'RvlKU':function(_0x50394c,_0x5d2193,_0x29571b){return _0x50394c(_0x5d2193,_0x29571b);},'SEDZA':function(_0x5c47bb,_0x5d41b2,_0x149f16){return _0x5c47bb(_0x5d41b2,_0x149f16);},'DABVj':function(_0x287315,_0x2b3936){return _0x287315!==_0x2b3936;},'nATFW':function(_0x54d02b,_0x3ac1eb){return _0x54d02b===_0x3ac1eb;},'OljsV':_0x1375c1(0xf8),'KRuDp':_0x1375c1(0x133),'ywzTj':'grid-name','JZcuK':_0x1375c1(0x114),'CmsGJ':'running','fMZLx':_0x1375c1(0x12b),'YmLMm':_0x1375c1(0xf6),'AfaQQ':function(_0x137a97,_0x34d7d6){return _0x137a97(_0x34d7d6);},'jeIqW':function(_0x373997,_0x6617dc,_0x50e4b0,_0x56ab7b,_0x2b2e62,_0x280995,_0x1f9bf1){return _0x373997(_0x6617dc,_0x50e4b0,_0x56ab7b,_0x2b2e62,_0x280995,_0x1f9bf1);},'ZyJeM':_0x1375c1(0x135),'FMvQV':function(_0x2fbb60,_0x50518d,_0x4aaad6,_0x1723f7,_0x35c721,_0x4fe024,_0x44c9dd){return _0x2fbb60(_0x50518d,_0x4aaad6,_0x1723f7,_0x35c721,_0x4fe024,_0x44c9dd);},'uxGJd':_0x1375c1(0x111),'CahBE':function(_0x5bd048,_0x2a5978,_0x1286b3,_0x2d227f,_0x3df4bb,_0x14a534,_0x1e59a5){return _0x5bd048(_0x2a5978,_0x1286b3,_0x2d227f,_0x3df4bb,_0x14a534,_0x1e59a5);},'MnftC':_0x1375c1(0x127)};try{global_registry[_0x1375c1(0xfe)]=_0x14ef7c[_0x1375c1(0x134)](uuidv4);!fs[_0x1375c1(0x118)](_0x14ef7c[_0x1375c1(0x142)](getCredentialsPath))&&(console[_0x1375c1(0x12c)](_0x14ef7c[_0x1375c1(0x13e)]),await _0x14ef7c[_0x1375c1(0x14f)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes['ERROR'],_0x14ef7c[_0x1375c1(0x130)],null,_0x460387),process[_0x1375c1(0xfb)](0x1));const _0x55fe90=JSON[_0x1375c1(0x109)](fs[_0x1375c1(0x10d)](_0x14ef7c[_0x1375c1(0x11a)](getCredentialsPath)));let _0x28ba0a=_0x1375c1(0x151)+AG_API_URL+_0x1375c1(0x104);_0x460387[_0x1375c1(0x119)]&&(_0x28ba0a=_0x1375c1(0x151)+AG_API_URL+'/packages/cli/get-all-grids');const _0x27b878={'method':_0x14ef7c['pyZzL'],'headers':_0x14ef7c['RvlKU'](getAuthHeader,_0x55fe90['Browserstack'][_0x1375c1(0x106)],_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x136)]),'throwHttpErrors':![]};global_registry[_0x1375c1(0x10f)]=_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x106)],global_registry[_0x1375c1(0x10e)]=_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x136)],_0x14ef7c['xUTxS'](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x108)],null,null,_0x460387);const _0x4cc933=await _0x14ef7c[_0x1375c1(0x125)](got,_0x28ba0a,_0x27b878);if(_0x14ef7c[_0x1375c1(0xfd)](_0x4cc933,null)&&_0x14ef7c[_0x1375c1(0xfd)](_0x4cc933,undefined)&&_0x14ef7c[_0x1375c1(0x145)](_0x4cc933[_0x1375c1(0x13a)],0xc8)){const _0x523c21=JSON[_0x1375c1(0x109)](_0x4cc933[_0x1375c1(0xf7)]);console[_0x1375c1(0x126)](_0x14ef7c['OljsV']);const _0x24fdfe=[];_0x24fdfe[_0x1375c1(0x10a)]([_0x14ef7c[_0x1375c1(0x14e)],_0x14ef7c[_0x1375c1(0x138)],_0x14ef7c[_0x1375c1(0x12e)],_0x14ef7c[_0x1375c1(0x105)],_0x14ef7c[_0x1375c1(0x115)],_0x14ef7c['YmLMm']]),_0x523c21[_0x1375c1(0x14d)](_0x17ea37=>{const _0x3c0a66=_0x1375c1;_0x24fdfe['push']([_0x17ea37['id'],_0x17ea37[_0x3c0a66(0x149)],_0x17ea37[_0x3c0a66(0x114)],_0x17ea37['running'],_0x17ea37[_0x3c0a66(0x12b)],_0x17ea37[_0x3c0a66(0x11d)]]);}),console['log'](_0x14ef7c[_0x1375c1(0x112)](table,_0x24fdfe)),process[_0x1375c1(0xfb)](0x0);}_0x14ef7c[_0x1375c1(0x145)](_0x4cc933[_0x1375c1(0x13a)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x14ef7c['jeIqW'](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x121)],_0x14ef7c[_0x1375c1(0x13f)],null,_0x460387),process[_0x1375c1(0xfb)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1375c1(0xfa)](_0x4cc933)),await _0x14ef7c[_0x1375c1(0xf9)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes['ERROR'],_0x14ef7c[_0x1375c1(0x123)],_0x4cc933,_0x460387),process[_0x1375c1(0xfb)](0x1);}catch(_0x580567){console[_0x1375c1(0x12c)](_0x1375c1(0x117)+_0x580567[_0x1375c1(0x14c)]),await _0x14ef7c[_0x1375c1(0x146)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x121)],_0x14ef7c[_0x1375c1(0x11f)],_0x580567,_0x460387),process[_0x1375c1(0xfb)](0x1);}};
1
+ const a15_0x259434=a15_0x5898;function a15_0x5898(_0x2287d6,_0x376b95){const _0x39cd24=a15_0x39cd();return a15_0x5898=function(_0x58982b,_0x5ac0c0){_0x58982b=_0x58982b-0x159;let _0xabb3ec=_0x39cd24[_0x58982b];return _0xabb3ec;},a15_0x5898(_0x2287d6,_0x376b95);}(function(_0xa6daf5,_0x35dd3f){const _0x1c7994=a15_0x5898,_0x55f5f5=_0xa6daf5();while(!![]){try{const _0x39fce6=-parseInt(_0x1c7994(0x195))/0x1*(-parseInt(_0x1c7994(0x17c))/0x2)+parseInt(_0x1c7994(0x1a1))/0x3*(parseInt(_0x1c7994(0x174))/0x4)+-parseInt(_0x1c7994(0x198))/0x5*(parseInt(_0x1c7994(0x181))/0x6)+-parseInt(_0x1c7994(0x173))/0x7*(-parseInt(_0x1c7994(0x169))/0x8)+-parseInt(_0x1c7994(0x1a0))/0x9*(parseInt(_0x1c7994(0x1a3))/0xa)+-parseInt(_0x1c7994(0x159))/0xb+parseInt(_0x1c7994(0x183))/0xc;if(_0x39fce6===_0x35dd3f)break;else _0x55f5f5['push'](_0x55f5f5['shift']());}catch(_0x4f6cb6){_0x55f5f5['push'](_0x55f5f5['shift']());}}}(a15_0x39cd,0x788b9));const fs=require('fs'),got=require('got'),{table}=require(a15_0x259434(0x161)),{v4:uuidv4}=require(a15_0x259434(0x190)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x259434(0x180)),{sendInstrumentationEvent}=require(a15_0x259434(0x168));function a15_0x39cd(){const _0x4e587d=['QrPEA','grid-id','mMebU','cFdpk','7111DucKjL','exit','uyLFt','90FhdYLs','grids','unwyW','lRLSA','stack','eQqHB','password','stringify','9rXNhVG','111567ZlfLmo','/packages/cli/get-all-grids','4185530IvlkpV','https://','grid','9573058uorbVe','type','unauthorised','zHzya','username','ZykgC','queued','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','table','YoXVf','Failed\x20to\x20list\x20resources!\x20Error:\x20','bWAOP','existsSync','Ednqo','argv','../../utils/instrumentationUtils','920zukNmC','name','Lvagc','Qfpdb','bstackAccesskey','help','eGRpq','list','xXHWC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4109vCiYFj','8nUzfIx','GET','log','push','cluster-name','parse','DGlCu','forEach','160xzppFX','DYpaK','all-grids','zDWhI','../../utils/utilityMethods','205098AomEny','error','20245380uxfnLY','ERROR','Browserstack','fuZfn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cnXTD','running','\x0aFound\x20the\x20following\x20grids:\x0a','desc','ijzTv','options','handler','unknown-error','uuid'];a15_0x39cd=function(){return _0x4e587d;};return a15_0x39cd();}exports['command']=a15_0x259434(0x199),exports[a15_0x259434(0x18b)]=a15_0x259434(0x160),exports['builder']=function(_0x1a7bf6){const _0x3f76e0=a15_0x259434,_0x412da9={};_0x412da9[_0x3f76e0(0x186)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x412da9['DYpaK']='boolean',_0x412da9[_0x3f76e0(0x17a)]=_0x3f76e0(0x16e);const _0x2583d5=_0x412da9,_0xdcab19={};_0xdcab19['description']=_0x2583d5[_0x3f76e0(0x186)],_0xdcab19[_0x3f76e0(0x15a)]=_0x2583d5[_0x3f76e0(0x17d)];const _0x3067d6={};return _0x3067d6[_0x3f76e0(0x17e)]=_0xdcab19,_0x1a7bf6['usage'](HELP_HEADER_MESSAGE[_0x3f76e0(0x170)][_0x3f76e0(0x1a5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f76e0(0x18d)](_0x3067d6)[_0x3f76e0(0x16e)](_0x2583d5[_0x3f76e0(0x17a)])[_0x3f76e0(0x167)];},exports[a15_0x259434(0x18e)]=async function(_0x2143e7){const _0x42aaec=a15_0x259434,_0x14fe71={'cnXTD':function(_0x4b43c6){return _0x4b43c6();},'jipDY':_0x42aaec(0x172),'Ednqo':function(_0x4a7327,_0x5e7cc5,_0x201bc0,_0x5cd325,_0x269cab,_0x3af7b3,_0x3cbb6b){return _0x4a7327(_0x5e7cc5,_0x201bc0,_0x5cd325,_0x269cab,_0x3af7b3,_0x3cbb6b);},'Lvagc':'list-grids-called','SOQZz':'init-not-called','lRLSA':function(_0x366419){return _0x366419();},'Izoat':_0x42aaec(0x175),'ZykgC':function(_0x3b87c7,_0x44d090,_0x359122){return _0x3b87c7(_0x44d090,_0x359122);},'zHzya':function(_0x398cb5,_0x4d86b7,_0x60a939,_0x2762b2,_0x13c552,_0x55c3cd,_0x36e453){return _0x398cb5(_0x4d86b7,_0x60a939,_0x2762b2,_0x13c552,_0x55c3cd,_0x36e453);},'unwyW':function(_0x93bee1,_0x595c08){return _0x93bee1!==_0x595c08;},'bWAOP':function(_0x403667,_0xa4f398){return _0x403667===_0xa4f398;},'zDWhI':_0x42aaec(0x18a),'YoXVf':_0x42aaec(0x192),'ijzTv':'grid-name','Qfpdb':'status','uyLFt':_0x42aaec(0x189),'CPZpV':_0x42aaec(0x15f),'eGRpq':_0x42aaec(0x178),'SuMMs':function(_0x4ed27c,_0x3b8a31){return _0x4ed27c(_0x3b8a31);},'QrPEA':_0x42aaec(0x187),'eQqHB':function(_0xde7501,_0x5e985e,_0x55baf2,_0x381cde,_0x333245,_0x2f302b,_0x43ec42){return _0xde7501(_0x5e985e,_0x55baf2,_0x381cde,_0x333245,_0x2f302b,_0x43ec42);},'mMebU':_0x42aaec(0x15b),'MhbEm':function(_0x23c22b,_0x44c218,_0x1ee725,_0x2d9f50,_0x1f06ef,_0x4dae14,_0x4fc0c7){return _0x23c22b(_0x44c218,_0x1ee725,_0x2d9f50,_0x1f06ef,_0x4dae14,_0x4fc0c7);},'cFdpk':'server-error','EmCgC':function(_0x44998d,_0x1ed6bd,_0x2cd00a,_0x56b3cb,_0x3479d6,_0x19fda0,_0x3a02ae){return _0x44998d(_0x1ed6bd,_0x2cd00a,_0x56b3cb,_0x3479d6,_0x19fda0,_0x3a02ae);},'xXHWC':_0x42aaec(0x18f)};try{global_registry['requestId']=_0x14fe71[_0x42aaec(0x188)](uuidv4);!fs[_0x42aaec(0x165)](_0x14fe71[_0x42aaec(0x188)](getCredentialsPath))&&(console[_0x42aaec(0x182)](_0x14fe71['jipDY']),await _0x14fe71[_0x42aaec(0x166)](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71['SOQZz'],null,_0x2143e7),process[_0x42aaec(0x196)](0x1));const _0x2affa2=JSON[_0x42aaec(0x179)](fs['readFileSync'](_0x14fe71[_0x42aaec(0x19b)](getCredentialsPath)));let _0x17dee6=_0x42aaec(0x1a4)+AG_API_URL+'/packages/cli/get-grids';_0x2143e7['allGrids']&&(_0x17dee6=_0x42aaec(0x1a4)+AG_API_URL+_0x42aaec(0x1a2));const _0x4e8efb={'method':_0x14fe71['Izoat'],'headers':_0x14fe71[_0x42aaec(0x15e)](getAuthHeader,_0x2affa2[_0x42aaec(0x185)][_0x42aaec(0x15d)],_0x2affa2[_0x42aaec(0x185)][_0x42aaec(0x19e)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x2affa2[_0x42aaec(0x185)]['username'],global_registry[_0x42aaec(0x16d)]=_0x2affa2[_0x42aaec(0x185)]['password'],_0x14fe71[_0x42aaec(0x15c)](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes['INFO'],null,null,_0x2143e7);const _0x2d5600=await _0x14fe71[_0x42aaec(0x15e)](got,_0x17dee6,_0x4e8efb);if(_0x14fe71[_0x42aaec(0x19a)](_0x2d5600,null)&&_0x14fe71[_0x42aaec(0x19a)](_0x2d5600,undefined)&&_0x14fe71[_0x42aaec(0x164)](_0x2d5600['statusCode'],0xc8)){const _0x4cc8e5=JSON['parse'](_0x2d5600['body']);console['log'](_0x14fe71[_0x42aaec(0x17f)]);const _0xd361ba=[];_0xd361ba[_0x42aaec(0x177)]([_0x14fe71[_0x42aaec(0x162)],_0x14fe71[_0x42aaec(0x18c)],_0x14fe71[_0x42aaec(0x16c)],_0x14fe71[_0x42aaec(0x197)],_0x14fe71['CPZpV'],_0x14fe71[_0x42aaec(0x16f)]]),_0x4cc8e5[_0x42aaec(0x17b)](_0x472dd9=>{const _0x275c81=_0x42aaec;_0xd361ba['push']([_0x472dd9['id'],_0x472dd9[_0x275c81(0x16a)],_0x472dd9['status'],_0x472dd9[_0x275c81(0x189)],_0x472dd9['queued'],_0x472dd9['clusterName']]);}),console[_0x42aaec(0x176)](_0x14fe71['SuMMs'](table,_0xd361ba)),process['exit'](0x0);}_0x14fe71['bWAOP'](_0x2d5600['statusCode'],0x191)&&(console[_0x42aaec(0x182)](_0x14fe71[_0x42aaec(0x191)]),await _0x14fe71[_0x42aaec(0x19d)](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71[_0x42aaec(0x193)],null,_0x2143e7),process['exit'](0x1)),console[_0x42aaec(0x182)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x42aaec(0x19f)](_0x2d5600)),await _0x14fe71['MhbEm'](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71[_0x42aaec(0x194)],_0x2d5600,_0x2143e7),process['exit'](0x1);}catch(_0x7e00b3){console[_0x42aaec(0x182)](_0x42aaec(0x163)+_0x7e00b3[_0x42aaec(0x19c)]),await _0x14fe71['EmCgC'](sendInstrumentationEvent,_0x2143e7,_0x14fe71[_0x42aaec(0x16b)],messageTypes[_0x42aaec(0x184)],_0x14fe71[_0x42aaec(0x171)],_0x7e00b3,_0x2143e7),process[_0x42aaec(0x196)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x232c(){const _0x57bda9=['291iklCAR','85qdKXhZ','16178760lHfYbF','7125129XBBwwH','usage','handler','11385871kIXPEq','7578GoTgVk','350454rDkVvz','builder','commandDir','start','desc','help','372384eXyDui','start_commands','kMTxs','demandCommand','8eRkVgB','4328208zXkVke','Start\x20an\x20existing\x20Automation\x20grid.','epilogue'];a16_0x232c=function(){return _0x57bda9;};return a16_0x232c();}const a16_0x3ff61a=a16_0x1d07;function a16_0x1d07(_0x4ebcdb,_0x17eb48){const _0x232c79=a16_0x232c();return a16_0x1d07=function(_0x1d07e3,_0x4f8b9d){_0x1d07e3=_0x1d07e3-0x166;let _0x1f98f3=_0x232c79[_0x1d07e3];return _0x1f98f3;},a16_0x1d07(_0x4ebcdb,_0x17eb48);}(function(_0x1b14be,_0x3e141d){const _0x4f070e=a16_0x1d07,_0x2e8415=_0x1b14be();while(!![]){try{const _0x47da6b=parseInt(_0x4f070e(0x16a))/0x1+parseInt(_0x4f070e(0x179))/0x2*(-parseInt(_0x4f070e(0x172))/0x3)+parseInt(_0x4f070e(0x16f))/0x4+-parseInt(_0x4f070e(0x173))/0x5*(parseInt(_0x4f070e(0x17a))/0x6)+parseInt(_0x4f070e(0x178))/0x7+-parseInt(_0x4f070e(0x16e))/0x8*(-parseInt(_0x4f070e(0x175))/0x9)+-parseInt(_0x4f070e(0x174))/0xa;if(_0x47da6b===_0x3e141d)break;else _0x2e8415['push'](_0x2e8415['shift']());}catch(_0x3a21b8){_0x2e8415['push'](_0x2e8415['shift']());}}}(a16_0x232c,0xda564));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='start',exports[a16_0x3ff61a(0x168)]=a16_0x3ff61a(0x170),exports[a16_0x3ff61a(0x17b)]=function(_0x5c7b16){const _0x13dd39=a16_0x3ff61a,_0x35488c={};_0x35488c[_0x13dd39(0x16c)]=_0x13dd39(0x16b),_0x35488c['OERuG']=_0x13dd39(0x169);const _0xdcb060=_0x35488c;return _0x5c7b16[_0x13dd39(0x176)](HELP_HEADER_MESSAGE[_0x13dd39(0x167)])[_0x13dd39(0x171)](HELP_FOOTER_MESSAGE)[_0x13dd39(0x166)](_0xdcb060[_0x13dd39(0x16c)])[_0x13dd39(0x16d)]()['recommendCommands']()['strict']()[_0x13dd39(0x169)](_0xdcb060['OERuG']);},exports[a16_0x3ff61a(0x177)]=function(_0x3d028d){};
1
+ const a16_0x10f6c7=a16_0x28f4;(function(_0x40af83,_0x40aba4){const _0x1acc6d=a16_0x28f4,_0x1a9349=_0x40af83();while(!![]){try{const _0x946eee=parseInt(_0x1acc6d(0xc6))/0x1*(parseInt(_0x1acc6d(0xca))/0x2)+-parseInt(_0x1acc6d(0xd1))/0x3+parseInt(_0x1acc6d(0xc4))/0x4+-parseInt(_0x1acc6d(0xc5))/0x5+parseInt(_0x1acc6d(0xd0))/0x6*(parseInt(_0x1acc6d(0xce))/0x7)+parseInt(_0x1acc6d(0xcc))/0x8+parseInt(_0x1acc6d(0xd3))/0x9;if(_0x946eee===_0x40aba4)break;else _0x1a9349['push'](_0x1a9349['shift']());}catch(_0x2d308a){_0x1a9349['push'](_0x1a9349['shift']());}}}(a16_0x5935,0xdaa6b));function a16_0x28f4(_0x372781,_0x1014f2){const _0x59352b=a16_0x5935();return a16_0x28f4=function(_0x28f46a,_0x3398a2){_0x28f46a=_0x28f46a-0xc0;let _0x1c71bf=_0x59352b[_0x28f46a];return _0x1c71bf;},a16_0x28f4(_0x372781,_0x1014f2);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x10f6c7(0xd2));exports[a16_0x10f6c7(0xc2)]='start',exports['desc']=a16_0x10f6c7(0xc9),exports[a16_0x10f6c7(0xcd)]=function(_0x29e425){const _0x3fcacb=a16_0x10f6c7,_0x5e2cf5={};_0x5e2cf5['oooag']='start_commands',_0x5e2cf5[_0x3fcacb(0xc1)]=_0x3fcacb(0xcb);const _0x350294=_0x5e2cf5;return _0x29e425[_0x3fcacb(0xc0)](HELP_HEADER_MESSAGE['start'])[_0x3fcacb(0xc7)](HELP_FOOTER_MESSAGE)[_0x3fcacb(0xd4)](_0x350294[_0x3fcacb(0xcf)])['demandCommand']()[_0x3fcacb(0xc3)]()[_0x3fcacb(0xc8)]()['help'](_0x350294[_0x3fcacb(0xc1)]);},exports['handler']=function(_0x4811f3){};function a16_0x5935(){const _0x3c1536=['94IKmAbh','help','1813384FaDcdD','builder','33355AqJGWz','oooag','1344clEBfy','1448313laPgwR','../config/constants','4580118rIlQvo','commandDir','usage','LNxdZ','command','recommendCommands','924808CyYtaN','6170530yeFkfp','12305nfLyqs','epilogue','strict','Start\x20an\x20existing\x20Automation\x20grid.'];a16_0x5935=function(){return _0x3c1536;};return a16_0x5935();}