browserstack-node-sdk 1.35.5 → 1.35.7

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 (137) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x75528a=a9_0x2fd2;(function(_0x19c603,_0x3d80fb){const _0x2a9679=a9_0x2fd2,_0x4682b7=_0x19c603();while(!![]){try{const _0x5e8110=parseInt(_0x2a9679(0x1fe))/0x1+parseInt(_0x2a9679(0x1e8))/0x2+-parseInt(_0x2a9679(0x29f))/0x3+-parseInt(_0x2a9679(0x33a))/0x4*(parseInt(_0x2a9679(0x249))/0x5)+-parseInt(_0x2a9679(0x277))/0x6*(-parseInt(_0x2a9679(0x334))/0x7)+-parseInt(_0x2a9679(0x204))/0x8*(parseInt(_0x2a9679(0x335))/0x9)+parseInt(_0x2a9679(0x304))/0xa;if(_0x5e8110===_0x3d80fb)break;else _0x4682b7['push'](_0x4682b7['shift']());}catch(_0x16a31e){_0x4682b7['push'](_0x4682b7['shift']());}}}(a9_0x2962,0xe9dd5));const fs=require('fs'),ws=require('ws'),path=require(a9_0x75528a(0x232)),yaml=require(a9_0x75528a(0x33f)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x75528a(0x2aa)),{v4:uuidv4}=require(a9_0x75528a(0x2ec)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x75528a(0x2a2)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x75528a(0x2c0)),{getCloudProviderObject}=require(a9_0x75528a(0x36d)),{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_0x75528a(0x282)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x75528a(0x2a3)),{sendInstrumentationEvent}=require(a9_0x75528a(0x20e));function a9_0x2fd2(_0x546714,_0x1f057f){const _0x2962db=a9_0x2962();return a9_0x2fd2=function(_0x2fd269,_0x11d038){_0x2fd269=_0x2fd269-0x1e1;let _0x38dcb6=_0x2962db[_0x2fd269];return _0x38dcb6;},a9_0x2fd2(_0x546714,_0x1f057f);}exports[a9_0x75528a(0x37b)]=a9_0x75528a(0x366),exports[a9_0x75528a(0x2d5)]=a9_0x75528a(0x373),exports[a9_0x75528a(0x2b5)]=function(_0xf054cd){const _0x1e1e4a=a9_0x75528a,_0x1de758={};_0x1de758[_0x1e1e4a(0x313)]=_0x1e1e4a(0x358),_0x1de758[_0x1e1e4a(0x370)]='string',_0x1de758[_0x1e1e4a(0x224)]=_0x1e1e4a(0x327),_0x1de758[_0x1e1e4a(0x298)]=_0x1e1e4a(0x2d2),_0x1de758[_0x1e1e4a(0x205)]=_0x1e1e4a(0x2db),_0x1de758[_0x1e1e4a(0x281)]=_0x1e1e4a(0x31f),_0x1de758[_0x1e1e4a(0x299)]=_0x1e1e4a(0x288),_0x1de758['XtoCR']=_0x1e1e4a(0x24d),_0x1de758[_0x1e1e4a(0x1eb)]=_0x1e1e4a(0x379),_0x1de758[_0x1e1e4a(0x333)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x1de758[_0x1e1e4a(0x378)]=_0x1e1e4a(0x381);const _0x5b3957=_0x1de758,_0x3ee4fe={};_0x3ee4fe[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x313)],_0x3ee4fe[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x27e820={};_0x27e820['description']=_0x5b3957['pkmeV'],_0x27e820[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x207f91={};_0x207f91[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x298)],_0x207f91[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0xf45920={};_0xf45920[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x205)],_0xf45920[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x29378b={};_0x29378b[_0x1e1e4a(0x280)]=_0x5b3957['LDZFd'],_0x29378b[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0xdd57f8={};_0xdd57f8['description']=_0x5b3957[_0x1e1e4a(0x299)],_0xdd57f8[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x446acb={};_0x446acb[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x243)],_0x446acb['type']=_0x5b3957['nOkpd'],_0x446acb[_0x1e1e4a(0x2da)]=![];const _0x54ee52={};_0x54ee52[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x333)],_0x54ee52[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x1eb)],_0x54ee52['default']=![];const _0x33b1e1={};return _0x33b1e1[_0x1e1e4a(0x231)]=_0x3ee4fe,_0x33b1e1[_0x1e1e4a(0x386)]=_0x27e820,_0x33b1e1[_0x1e1e4a(0x265)]=_0x207f91,_0x33b1e1[_0x1e1e4a(0x236)]=_0xf45920,_0x33b1e1[_0x1e1e4a(0x207)]=_0x29378b,_0x33b1e1[_0x1e1e4a(0x28d)]=_0xdd57f8,_0x33b1e1['skip-tls-cert-verify']=_0x446acb,_0x33b1e1['hub-ha']=_0x54ee52,_0xf054cd[_0x1e1e4a(0x2a5)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x33b1e1)['help'](_0x5b3957[_0x1e1e4a(0x378)])[_0x1e1e4a(0x331)];},exports[a9_0x75528a(0x305)]=async function(_0x5e0e2a){const _0x208777=a9_0x75528a,_0x39f78c={'mniRN':'azurefile-csi-premium','PCJke':_0x208777(0x241),'JXTVN':_0x208777(0x291),'JbyOn':_0x208777(0x2da),'zuSoX':_0x208777(0x358),'dXhCN':'string','qyimW':_0x208777(0x327),'SRorl':_0x208777(0x2d2),'crsUH':_0x208777(0x2db),'HhuaB':_0x208777(0x31f),'xjPWx':_0x208777(0x288),'MXvwY':_0x208777(0x24d),'lIDrC':_0x208777(0x379),'pIMbu':'Flag\x20to\x20enable\x20Hub\x20HA','HTaZc':_0x208777(0x381),'qNBPG':_0x208777(0x27e),'JxHmP':function(_0x3f53af,_0x3ece6e){return _0x3f53af===_0x3ece6e;},'mOoSX':'error','gqhlM':_0x208777(0x1e1),'phfEp':_0x208777(0x210),'YsgCA':function(_0x462826,_0x55c390,_0x139fd1,_0x42ed52,_0xae46b6,_0x509bc3,_0x3eba04,_0x4d9321,_0x2f0df4,_0x50404d,_0x56ede6,_0x30e40c){return _0x462826(_0x55c390,_0x139fd1,_0x42ed52,_0xae46b6,_0x509bc3,_0x3eba04,_0x4d9321,_0x2f0df4,_0x50404d,_0x56ede6,_0x30e40c);},'bLstW':function(_0x50318a,_0x27b514){return _0x50318a!==_0x27b514;},'Mgsms':function(_0xaae14,_0x2e9beb){return _0xaae14(_0x2e9beb);},'EAgxM':_0x208777(0x229),'cYwji':_0x208777(0x34e),'KgLXi':_0x208777(0x1ed),'AiFYS':_0x208777(0x311),'LWcvf':'UkRNzNYCBU','iChnw':_0x208777(0x2fc),'ASDok':_0x208777(0x32b),'kChcc':_0x208777(0x275),'zKyZp':function(_0x33aa01){return _0x33aa01();},'iwneX':function(_0x34d612){return _0x34d612();},'wpVTb':function(_0x496ac8,_0x1514b7){return _0x496ac8!==_0x1514b7;},'yimuN':_0x208777(0x1fb),'hLjPs':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','SAxHn':function(_0x5bc091,_0x356773,_0x2c7a8e,_0x36d1eb,_0x42c0d6,_0x16be2a,_0x104162){return _0x5bc091(_0x356773,_0x2c7a8e,_0x36d1eb,_0x42c0d6,_0x16be2a,_0x104162);},'VZNlr':_0x208777(0x29e),'UTnig':_0x208777(0x2e5),'mEEdq':function(_0x3d71cb,_0x1f1be9,_0x9ca509,_0x20dccb,_0x17ec88,_0x165e14,_0x2b114){return _0x3d71cb(_0x1f1be9,_0x9ca509,_0x20dccb,_0x17ec88,_0x165e14,_0x2b114);},'GCLlI':function(_0x330c24){return _0x330c24();},'VFkZO':_0x208777(0x30a),'MnNmu':_0x208777(0x257),'GnIbE':_0x208777(0x30d),'bMpBH':function(_0x4fff85,_0x29c1f8){return _0x4fff85===_0x29c1f8;},'xWzQS':'JdGsF','IzWzC':'gNLhj','ysAzl':_0x208777(0x273),'npwZP':_0x208777(0x2b4),'meMqZ':function(_0x4bf3d3,_0x510e37,_0x4f7d73,_0x5d3bf5,_0x1d8425,_0x236a5b,_0x4ead5b,_0xf93bd9){return _0x4bf3d3(_0x510e37,_0x4f7d73,_0x5d3bf5,_0x1d8425,_0x236a5b,_0x4ead5b,_0xf93bd9);},'RtCNB':_0x208777(0x2fa),'lxQZD':function(_0x235cc6,_0x2582b1){return _0x235cc6!==_0x2582b1;},'nVAZc':_0x208777(0x27b),'LsjkX':_0x208777(0x340),'hYyLA':function(_0x59b2e5,_0x3a4c66,_0x4623ba,_0x429e7a,_0x33dd39,_0x5c1cf5,_0x40af8d,_0x3ec6f8){return _0x59b2e5(_0x3a4c66,_0x4623ba,_0x429e7a,_0x33dd39,_0x5c1cf5,_0x40af8d,_0x3ec6f8);},'rwXiz':_0x208777(0x2e3),'qjNJR':function(_0x2c47ee,_0x566999){return _0x2c47ee===_0x566999;},'cMDTN':function(_0x13f98c,_0x4b63a3){return _0x13f98c!==_0x4b63a3;},'RJwrZ':_0x208777(0x307),'uWtIj':_0x208777(0x26d),'DDmtD':_0x208777(0x20f),'nvFUQ':_0x208777(0x27d),'cOmJn':function(_0x38a85c,_0x596ac9){return _0x38a85c!==_0x596ac9;},'tauXS':'kneHq','QPTeT':function(_0x26260b,_0x8b385c){return _0x26260b===_0x8b385c;},'UvyjM':_0x208777(0x25c),'LgNwI':_0x208777(0x25f),'CxsGr':'GET','iaKKr':function(_0x2e4768,_0x305b3b,_0x3f458d){return _0x2e4768(_0x305b3b,_0x3f458d);},'aVgyB':function(_0x58321b,_0x3d5fb1){return _0x58321b!==_0x3d5fb1;},'BFBjf':_0x208777(0x26c),'fyBUu':function(_0x88e73c,_0x22178d,_0x376225){return _0x88e73c(_0x22178d,_0x376225);},'aYaHw':_0x208777(0x228),'YFOzL':_0x208777(0x320),'dCriQ':_0x208777(0x24c),'OXOGh':'create-grid-checks-null-response','GkuwT':function(_0x3acd06,_0x3ff017){return _0x3acd06===_0x3ff017;},'SYGVY':function(_0x43849c,_0x23a80e){return _0x43849c!==_0x23a80e;},'UhbEM':_0x208777(0x268),'ZTkOt':_0x208777(0x220),'mnVkZ':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','zFgTD':_0x208777(0x2e7),'XdJvs':function(_0x3e56bd,_0x349258){return _0x3e56bd!==_0x349258;},'RwcQR':'doINV','tDsIH':'create-grid-checks-non-200','wEEvI':'Grid\x20profile\x20fetched\x20from\x20backend','NRRyP':_0x208777(0x397),'bjBcX':_0x208777(0x287),'cLVjG':_0x208777(0x2ae),'Sveei':_0x208777(0x20c),'imwEN':'HbRNH','KnrBC':_0x208777(0x2a7),'kQmel':_0x208777(0x278),'EjDJQ':function(_0xea5e62,_0x4b4a25){return _0xea5e62!==_0x4b4a25;},'dAQqd':_0x208777(0x22d),'PvYiX':function(_0x1ed716,_0x30873d){return _0x1ed716===_0x30873d;},'bcwVD':function(_0x13fcf7,_0x44a8e0){return _0x13fcf7!==_0x44a8e0;},'caJqN':_0x208777(0x357),'BGRSM':_0x208777(0x1f8),'GeFag':_0x208777(0x276),'MOmZD':function(_0xaa3e15,_0x4bccd4){return _0xaa3e15===_0x4bccd4;},'PgNmG':function(_0x2f615c,_0x4b9d8e){return _0x2f615c===_0x4b9d8e;},'xScpB':'fTTQL','pRGcV':function(_0x2ee817,_0x29abf9){return _0x2ee817===_0x29abf9;},'vSyHZ':_0x208777(0x2dc),'QXExN':function(_0x2cf556,_0x2c0dad){return _0x2cf556!==_0x2c0dad;},'DBsJu':_0x208777(0x212),'vMylu':_0x208777(0x1f6),'UYPxD':function(_0x32c557,_0x2d00ae,_0x513a28,_0x415362,_0x39b2f3,_0x39b5a,_0x177e8a,_0x4ad923,_0xde9cbc,_0x316d42,_0x2752de,_0x60fb22){return _0x32c557(_0x2d00ae,_0x513a28,_0x415362,_0x39b2f3,_0x39b5a,_0x177e8a,_0x4ad923,_0xde9cbc,_0x316d42,_0x2752de,_0x60fb22);},'fJzfB':function(_0x35da1f,_0x470e5e){return _0x35da1f===_0x470e5e;},'uSAvG':_0x208777(0x35b),'fBGlr':function(_0x219281,_0x22b2ff){return _0x219281===_0x22b2ff;},'kQcce':_0x208777(0x2c2),'EOFEN':_0x208777(0x37d),'fHNTl':function(_0xae0701,_0x53a447){return _0xae0701!==_0x53a447;},'mkNTy':function(_0x5b20d0,_0x31b9c6){return _0x5b20d0!==_0x31b9c6;},'DQXVT':_0x208777(0x24e),'EwSpS':'XDntQ','CWdJM':function(_0x2e6d2f,_0x4ed8a1,_0x5e83b5,_0x4cfd03,_0x578188,_0x5d2eb1,_0x551137,_0x30ddc0,_0x2e92ef,_0x25c377,_0x37c640,_0x44d921){return _0x2e6d2f(_0x4ed8a1,_0x5e83b5,_0x4cfd03,_0x578188,_0x5d2eb1,_0x551137,_0x30ddc0,_0x2e92ef,_0x25c377,_0x37c640,_0x44d921);},'bVfEb':function(_0x2972f5,_0x14b3cd){return _0x2972f5===_0x14b3cd;},'nsPEv':_0x208777(0x21b),'cxjoL':_0x208777(0x2bd),'mYpKC':function(_0x178077,_0xffd736){return _0x178077(_0xffd736);},'uZJQg':function(_0x11c4cb,_0xaa64e5){return _0x11c4cb===_0xaa64e5;},'JZQKY':'NBLYy','cdSdV':_0x208777(0x206),'AETzT':'8|1|4|2|6|0|3|7|5','YRRmK':function(_0x568396,_0x23e825){return _0x568396!==_0x23e825;},'PaAeh':_0x208777(0x29a),'SQwWn':function(_0x507f3f,_0xf4d095){return _0x507f3f===_0xf4d095;},'lgDqQ':_0x208777(0x326),'tepLE':_0x208777(0x350),'qXOJe':function(_0x21512b,_0x5eda66){return _0x21512b===_0x5eda66;},'dTIGa':_0x208777(0x318),'IpMwM':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','kugfC':function(_0x3832ee,_0x161d9a){return _0x3832ee!=_0x161d9a;},'ZREXI':function(_0x567fe4,_0x4ab1ac){return _0x567fe4!=_0x4ab1ac;},'UJUSD':function(_0x3beb48,_0x1a3c90){return _0x3beb48!==_0x1a3c90;},'tDhaL':function(_0x3825ee,_0x57b82d){return _0x3825ee>_0x57b82d;},'dzmIQ':function(_0x27a33e,_0x27792d){return _0x27a33e===_0x27792d;},'mzXol':_0x208777(0x20d),'DRugg':'pre-spawned-subnets-not-selected','aZEuE':function(_0x4729fb,_0x157047){return _0x4729fb===_0x157047;},'FZCaK':_0x208777(0x322),'yhCQG':'pre-spawned-invalid-vpc','bNwZu':function(_0x30af18,_0x315d04){return _0x30af18===_0x315d04;},'vyZJN':function(_0x3feff0,_0x4a191f,_0x3becf4,_0xf73d1d,_0x351efa,_0x2d0bcf,_0x133d0e,_0x30999a){return _0x3feff0(_0x4a191f,_0x3becf4,_0xf73d1d,_0x351efa,_0x2d0bcf,_0x133d0e,_0x30999a);},'NHTHZ':_0x208777(0x1f5),'JJGVL':_0x208777(0x394),'KeuIL':_0x208777(0x22c),'ybeCI':'Cluster\x20created\x20successfully','LTclt':function(_0x58c293,_0x430a20){return _0x58c293===_0x430a20;},'NXxXt':function(_0x553f0d,_0x54e653,_0x255539){return _0x553f0d(_0x54e653,_0x255539);},'saVVm':function(_0x1d03ef,_0x217673){return _0x1d03ef===_0x217673;},'lBDSi':function(_0x1030ef,_0xe417eb){return _0x1030ef===_0xe417eb;},'qyBHx':function(_0x13e4e6,_0x51b017){return _0x13e4e6===_0x51b017;},'pIHzC':_0x208777(0x297),'TaBuz':'Adding\x20Secret\x20Mapping','TJrVW':_0x208777(0x294),'alyJg':'templates','VqUAb':'hubharesources','OBCaE':_0x208777(0x38e),'tozel':'utf-8','CmOxt':function(_0x6bc7a5,_0x375785){return _0x6bc7a5(_0x375785);},'tnjnT':function(_0x4718b2,_0x77dc40){return _0x4718b2(_0x77dc40);},'Hbosk':function(_0x27516d,_0x4428e4,_0x4063e4){return _0x27516d(_0x4428e4,_0x4063e4);},'LNnfe':_0x208777(0x1e6),'ucUMi':_0x208777(0x2c5),'IEhAr':function(_0x36fe31,_0x58f548){return _0x36fe31===_0x58f548;},'LrbjU':_0x208777(0x295),'pVLOJ':_0x208777(0x36b),'lSovA':_0x208777(0x25b),'iQsJA':_0x208777(0x2ba),'DaFmd':_0x208777(0x356),'Cpxfd':_0x208777(0x2c7),'MopSM':'Adding\x20Turboscale\x20Uploader\x20deployment...','PXlCZ':'turboscale-uploader.yaml','arOXN':function(_0x9e211c,_0x53ab8d){return _0x9e211c===_0x53ab8d;},'PhgUU':_0x208777(0x2c4),'yEnVa':_0x208777(0x32c),'RIsCK':_0x208777(0x323),'TSpdW':'3|4|2|1|0','gsfFK':_0x208777(0x253),'islws':_0x208777(0x33d),'oGODn':function(_0x3ad712,_0x33baf4){return _0x3ad712!==_0x33baf4;},'LANuh':_0x208777(0x2b1),'CQZot':'Namespace\x20Created','pkSuF':_0x208777(0x384),'UqOjp':_0x208777(0x36c),'pyrJG':_0x208777(0x392),'vbxEk':function(_0x37bb77,_0x54f94f,_0x1e0d7c,_0x1b9c3d,_0x2cb656,_0x511f29,_0x22376d,_0x2fb0b9,_0x48c058,_0x5c8553,_0x28b471){return _0x37bb77(_0x54f94f,_0x1e0d7c,_0x1b9c3d,_0x2cb656,_0x511f29,_0x22376d,_0x2fb0b9,_0x48c058,_0x5c8553,_0x28b471);},'GzGWI':'Grid\x20spawned\x20on\x20the\x20cluster','ggjHa':_0x208777(0x308),'IsaDU':function(_0x3c5cc5,_0x24f9fd,_0x31febf,_0x597e03,_0x3f0ca0){return _0x3c5cc5(_0x24f9fd,_0x31febf,_0x597e03,_0x3f0ca0);},'HySUG':function(_0x54d87e,_0x1dbe91,_0x30cd66){return _0x54d87e(_0x1dbe91,_0x30cd66);},'jaOnT':_0x208777(0x285),'dwzJN':_0x208777(0x274),'nGjzK':'ingress-nginx','venrN':_0x208777(0x332),'sJiJl':function(_0x3059d3,_0x5d11ad,_0x3571a6,_0x4c5a68,_0x4ac1e5,_0x50787b,_0x2105cf,_0x8f9e6){return _0x3059d3(_0x5d11ad,_0x3571a6,_0x4c5a68,_0x4ac1e5,_0x50787b,_0x2105cf,_0x8f9e6);},'YWMYu':_0x208777(0x2dd),'tzYRL':function(_0x3483fb,_0x2f2afe){return _0x3483fb===_0x2f2afe;},'dgYWx':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RMYTR':_0x208777(0x22f),'ADZNj':function(_0x5b3c58,_0xffb793){return _0x5b3c58!==_0xffb793;},'vjcWP':function(_0x16cb7b,_0x2b47db,_0x42f13b,_0xf2798b,_0x14d7bc,_0x2c5146,_0x2aadee,_0x26e438){return _0x16cb7b(_0x2b47db,_0x42f13b,_0xf2798b,_0x14d7bc,_0x2c5146,_0x2aadee,_0x26e438);},'PjIOB':_0x208777(0x208),'HyWDe':_0x208777(0x247),'jehLB':function(_0xdf5ce1,_0x5907fa,_0x4e5dc5,_0x58d208,_0x315043,_0x449555){return _0xdf5ce1(_0x5907fa,_0x4e5dc5,_0x58d208,_0x315043,_0x449555);},'FDUbQ':_0x208777(0x24a)};let _0x3e3801=![],_0x49cd7e=![],_0x1df599,_0x3a31be,_0xa9f31f,_0x1a8246,_0xbe72a,_0x18293f,_0x5cba7e,_0x46ed5f,_0xf64940,_0x45e492,_0x15e041,_0x162011,_0x506873,_0x499685,_0x4f384d=0x1,_0x104d04=0xe;try{global_registry[_0x208777(0x2f4)]=_0x39f78c[_0x208777(0x25a)](uuidv4),global_registry[_0x208777(0x354)]=![];!fs[_0x208777(0x284)](_0x39f78c['iwneX'](getCredentialsPath))&&(_0x39f78c[_0x208777(0x262)](_0x39f78c['yimuN'],_0x39f78c[_0x208777(0x32a)])?_0x492a54[_0x208777(0x354)]=!![]:(console['error'](_0x39f78c['hLjPs']),await _0x39f78c[_0x208777(0x336)](sendInstrumentationEvent,_0x5e0e2a,_0x39f78c[_0x208777(0x2a9)],messageTypes['ERROR'],_0x39f78c[_0x208777(0x1ea)],null,_0x5e0e2a),process[_0x208777(0x2b9)](0x1)));await _0x39f78c['mEEdq'](sendInstrumentationEvent,_0x5e0e2a,_0x39f78c[_0x208777(0x2a9)],messageTypes[_0x208777(0x2de)],null,null,_0x5e0e2a);const _0x18fa2c=JSON[_0x208777(0x35e)](fs['readFileSync'](_0x39f78c[_0x208777(0x25e)](getCredentialsPath)));global_registry['bstackUsername']=_0x18fa2c['Browserstack']['username'],global_registry[_0x208777(0x2e6)]=_0x18fa2c[_0x208777(0x2b1)][_0x208777(0x374)];const _0x2d3830=WS_ENDPOINT[_0x208777(0x286)](_0x39f78c[_0x208777(0x2b7)],_0x18fa2c[_0x208777(0x2b1)]['username'])[_0x208777(0x286)](_0x39f78c[_0x208777(0x28c)],_0x18fa2c[_0x208777(0x2b1)][_0x208777(0x374)]),_0x3e71f3={};_0x3e71f3[_0x208777(0x300)]=ws,_0x3e71f3[_0x208777(0x37c)]=0x36ee80,_0x162011=new ReconnectingWebSocket(_0x2d3830,[],_0x3e71f3),logger[_0x208777(0x1f2)](_0x39f78c[_0x208777(0x34a)]),webSocketUtils[_0x208777(0x2bc)](_0x162011,_0x5e0e2a[_0x208777(0x1fd)],_0x5e0e2a[_0x208777(0x374)]);const _0x4ab324=_0x5e0e2a['gridName']||DEFAULT_GRID_NAME;if(_0x5e0e2a['clusterName']||_0x5e0e2a[_0x208777(0x240)]||_0x5e0e2a[_0x208777(0x207)]){if(_0x39f78c[_0x208777(0x2d8)](_0x39f78c[_0x208777(0x351)],_0x39f78c[_0x208777(0x222)]))throw new _0x3e3f03(_0x208777(0x20a)+_0x2bcf1c+_0x208777(0x30e));else{!(_0x5e0e2a['clusterName']&&_0x5e0e2a[_0x208777(0x240)]&&_0x5e0e2a['region'])&&(_0x39f78c['wpVTb'](_0x39f78c[_0x208777(0x238)],_0x39f78c[_0x208777(0x238)])?_0x1db052[_0x208777(0x354)]=!![]:(_0x1df599=_0x39f78c[_0x208777(0x22e)],await _0x39f78c[_0x208777(0x383)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x230)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)));![AWS,AZURE,GCP][_0x208777(0x367)](_0x5e0e2a[_0x208777(0x240)][_0x208777(0x38a)]())&&(_0x39f78c[_0x208777(0x2d9)](_0x39f78c[_0x208777(0x342)],_0x39f78c[_0x208777(0x342)])?_0x5f9798=_0x39f78c[_0x208777(0x33c)]:(_0x1df599=_0x39f78c['LsjkX'],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x233)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)));_0x5e0e2a['privateGrid']&&_0x39f78c[_0x208777(0x2bf)](_0x5e0e2a[_0x208777(0x2d4)][_0x208777(0x38a)](),_0x39f78c[_0x208777(0x242)])&&(_0x39f78c[_0x208777(0x21e)](_0x39f78c[_0x208777(0x2e2)],_0x39f78c['uWtIj'])?global_registry[_0x208777(0x354)]=!![]:_0x521d7a['info']('Found\x20VPC:\x20'+_0x1e63df+'\x20'));global_registry[_0x208777(0x240)]=_0x5e0e2a['cloudProvider'],global_registry[_0x208777(0x2fd)]=_0x5e0e2a['region'],global_registry[_0x208777(0x246)]=_0x5e0e2a[_0x208777(0x246)];const _0x2957fc=await _0x39f78c[_0x208777(0x203)](getCloudProviderObject,_0x5e0e2a[_0x208777(0x240)],_0x5e0e2a[_0x208777(0x246)],_0x4ab324,_0x162011,webSocketUtils,_0x5e0e2a),_0x25c615=await _0x2957fc['isClusterPresent']();!_0x25c615?_0x39f78c[_0x208777(0x262)](_0x39f78c['DDmtD'],_0x39f78c[_0x208777(0x35f)])?(logger['info']('Cluster:\x20'+_0x5e0e2a['clusterName']+_0x208777(0x22a)),_0x3e3801=![],_0x49cd7e=!![]):_0x1ea002=null:_0x39f78c[_0x208777(0x1e7)](_0x39f78c['tauXS'],_0x39f78c[_0x208777(0x29d)])?(_0x5df85c['region']=_0x3ba2e0,_0x5eacf3['cloudProvider']=_0x56fce0,_0x630a02[_0x208777(0x2d6)]=!![]):_0x3e3801=!![],_0xa9f31f=_0x5e0e2a['clusterName'],_0x3a31be=_0x5e0e2a[_0x208777(0x240)][_0x208777(0x38a)](),_0x1a8246=_0x5e0e2a['region'];}}else _0x5e0e2a[_0x208777(0x347)]&&(_0x39f78c[_0x208777(0x2f0)](_0x39f78c[_0x208777(0x296)],_0x39f78c[_0x208777(0x24b)])?(_0x1815e8=_0x37f62b[_0x208777(0x30b)],_0x3e16a7=_0x39f78c[_0x208777(0x38c)]):global_registry[_0x208777(0x347)]=_0x5e0e2a['gridProfile']);global_registry[_0x208777(0x2a4)]=_0x5e0e2a['gridName'];const _0x352673={'method':_0x39f78c[_0x208777(0x2cd)],'headers':_0x39f78c[_0x208777(0x1e2)](getAuthHeader,_0x18fa2c[_0x208777(0x2b1)][_0x208777(0x36e)],_0x18fa2c['Browserstack']['password']),'throwHttpErrors':![]},_0x166aba={};_0x166aba[_0x208777(0x2a4)]=_0x4ab324;const _0x404fe6=_0x166aba;if(_0x49cd7e){if(_0x39f78c[_0x208777(0x2b6)](_0x39f78c['BFBjf'],_0x39f78c[_0x208777(0x38f)])){const _0x3bf6c9={'azure.workload.identity/use':_0x39f78c[_0x208777(0x242)],..._0x105682[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x213)]['labels']};_0x483cdb[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x213)][_0x208777(0x2e0)]=_0x3bf6c9,_0xfe6ec[0x0]['spec'][_0x208777(0x2ee)][_0x208777(0x31d)]['serviceAccountName']=_0x39f78c['JbyOn'];}else _0x404fe6[_0x208777(0x207)]=_0x1a8246,_0x404fe6['cloudProvider']=_0x3a31be,_0x404fe6['newCluster']=!![];}const _0x85bdb6=_0x208777(0x346)+AG_API_URL+'/packages/cli/create-grid-checks',_0x34f7fd={'searchParams':_0x404fe6,'throwHttpErrors':![],..._0x352673},_0x87bedf=_0x34f7fd,_0xd2ccc6=await _0x39f78c[_0x208777(0x2eb)](got,_0x85bdb6,_0x87bedf);(_0x39f78c[_0x208777(0x2bf)](_0xd2ccc6,null)||_0x39f78c[_0x208777(0x369)](_0xd2ccc6,undefined))&&(_0x39f78c[_0x208777(0x262)](_0x39f78c[_0x208777(0x26f)],_0x39f78c[_0x208777(0x315)])?(_0x1df599=_0x39f78c[_0x208777(0x1e3)],await _0x39f78c[_0x208777(0x383)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c['OXOGh'],_0x39f78c['mOoSX']),logger['error'](_0x1df599),process[_0x208777(0x2b9)](0x1)):_0x3143fb['error'](_0x208777(0x317)+_0x49450a+'\x20\x0a'+_0x52d787[_0x208777(0x2e9)](_0x496fa7['stack'])));_0x39f78c[_0x208777(0x2df)](_0xd2ccc6['statusCode'],0x191)&&(_0x39f78c['SYGVY'](_0x39f78c[_0x208777(0x2f1)],_0x39f78c[_0x208777(0x2ff)])?(_0x1df599=_0x39f78c[_0x208777(0x279)],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c['VZNlr'],_0x39f78c[_0x208777(0x27f)],_0x39f78c['mOoSX']),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)):_0x33a091=_0x57f5f3[_0x2c6669[_0x208777(0x347)]]);_0x39f78c[_0x208777(0x37e)](_0xd2ccc6[_0x208777(0x272)],0xc8)&&(_0x39f78c[_0x208777(0x2d9)](_0x39f78c[_0x208777(0x34f)],_0x39f78c[_0x208777(0x34f)])?(_0x50cc00[_0x208777(0x269)](_0x208777(0x260)+_0x145242[_0x208777(0x246)]+_0x208777(0x22a)),_0x367d2d=![],_0x29b605=!![]):(_0x1df599='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0xd2ccc6[_0x208777(0x38d)]),await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c['tDsIH'],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process['exit'](0x1)));const _0x20f548=JSON[_0x208777(0x35e)](_0xd2ccc6[_0x208777(0x38d)]),_0x46853c={};_0x46853c[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x2ef)],_0x46853c['message']=_0x39f78c[_0x208777(0x223)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x46853c);const _0x5b4844={};_0x5b4844['type']=WS_EVENTS[_0x208777(0x1f7)],_0x5b4844[_0x208777(0x266)]=_0x39f78c[_0x208777(0x2c1)],webSocketUtils['sendEventToBackend'](_0x162011,_0x5b4844);_0x20f548['alreadyPresent']&&(_0x39f78c[_0x208777(0x262)](_0x39f78c[_0x208777(0x1ff)],_0x39f78c[_0x208777(0x1ff)])?_0x2f71b2[_0x208777(0x269)]('Found\x20Subnets:\x20'+_0x519e84[_0x208777(0x2e9)](_0x1afb1d)+'\x20'):(_0x1df599=_0x208777(0x337)+_0x4ab324+_0x208777(0x30f),await _0x39f78c[_0x208777(0x383)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x309)],_0x39f78c[_0x208777(0x218)]),logger['error'](_0x1df599),process[_0x208777(0x2b9)](0x1)));const _0x4465f7=_0x20f548[_0x208777(0x2b3)];let _0x4be71e=_0x4465f7[_0x20f548[_0x208777(0x258)]];_0x5e0e2a[_0x208777(0x347)]&&(_0x39f78c['XdJvs'](_0x39f78c[_0x208777(0x33e)],_0x39f78c[_0x208777(0x217)])?_0x4be71e=_0x4465f7[_0x5e0e2a[_0x208777(0x347)]]:_0x2000d7[_0x208777(0x347)]=_0x55606e['gridProfile']);global_registry[_0x208777(0x1f3)]=![];if(_0x5e0e2a[_0x208777(0x363)]){if(_0x39f78c[_0x208777(0x37e)](_0x39f78c[_0x208777(0x2f6)],_0x39f78c[_0x208777(0x1ee)])){const _0x567149=_0x39f78c[_0x208777(0x330)][_0x208777(0x34d)]('|');let _0xad585f=0x0;while(!![]){switch(_0x567149[_0xad585f++]){case'0':global_registry['enableHubHa']=!![];continue;case'1':global_registry[_0x208777(0x359)]=_0x39f78c['kChcc'];continue;case'2':global_registry[_0x208777(0x24f)]=_0x39f78c[_0x208777(0x239)];continue;case'3':global_registry['hubHaNameSpace']=_0x39f78c[_0x208777(0x227)];continue;case'4':logger['info'](_0x39f78c[_0x208777(0x343)]);continue;}break;}}else{const _0x52558b={};_0x52558b[_0x208777(0x280)]=_0x39f78c[_0x208777(0x1f1)],_0x52558b[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x82523b={};_0x82523b[_0x208777(0x280)]=_0x39f78c[_0x208777(0x303)],_0x82523b['type']=_0x39f78c['dXhCN'];const _0x1c5603={};_0x1c5603['description']=_0x39f78c['SRorl'],_0x1c5603[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x2a8b2a={};_0x2a8b2a[_0x208777(0x280)]=_0x39f78c[_0x208777(0x316)],_0x2a8b2a[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x34006b={};_0x34006b['description']=_0x39f78c[_0x208777(0x290)],_0x34006b[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x19a4a4={};_0x19a4a4[_0x208777(0x280)]=_0x39f78c['xjPWx'],_0x19a4a4['type']=_0x39f78c['dXhCN'];const _0x596fd7={};_0x596fd7[_0x208777(0x280)]=_0x39f78c[_0x208777(0x250)],_0x596fd7[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2a0)],_0x596fd7[_0x208777(0x2da)]=![];const _0x5c1dd9={};_0x5c1dd9[_0x208777(0x280)]=_0x39f78c[_0x208777(0x371)],_0x5c1dd9[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2a0)],_0x5c1dd9[_0x208777(0x2da)]=![];const _0x4098f5={};return _0x4098f5[_0x208777(0x231)]=_0x52558b,_0x4098f5[_0x208777(0x386)]=_0x82523b,_0x4098f5[_0x208777(0x265)]=_0x1c5603,_0x4098f5[_0x208777(0x236)]=_0x2a8b2a,_0x4098f5[_0x208777(0x207)]=_0x34006b,_0x4098f5[_0x208777(0x28d)]=_0x19a4a4,_0x4098f5[_0x208777(0x328)]=_0x596fd7,_0x4098f5[_0x208777(0x219)]=_0x5c1dd9,_0x4981d3[_0x208777(0x2a5)](_0x1490ff[_0x208777(0x348)])[_0x208777(0x2b8)](_0x562f70)[_0x208777(0x1f9)](_0x4098f5)[_0x208777(0x381)](_0x39f78c[_0x208777(0x393)])[_0x208777(0x331)];}}if(_0x39f78c[_0x208777(0x2bf)](_0x3e3801,![])&&_0x39f78c[_0x208777(0x2df)](_0x49cd7e,![])){if(_0x39f78c[_0x208777(0x32f)](_0x39f78c['dAQqd'],_0x39f78c[_0x208777(0x2ab)])){const _0x101f66={};_0x101f66[_0x208777(0x289)]=_0x9ccf90[_0x208777(0x1f7)],_0x101f66['message']=_0x208777(0x20a)+_0x20394d+_0x208777(0x28b),_0x359fc4[_0x208777(0x23a)](_0x126de5,_0x101f66,_0x39f78c[_0x208777(0x21f)]),_0x21934e['info'](_0x208777(0x20a)+_0x18dc1a+_0x208777(0x28b)),_0x484f8f=!![];if(_0x39f78c[_0x208777(0x369)](_0x416de3,!![]))throw new _0x2bd052(_0x208777(0x20a)+_0x3378d7+_0x208777(0x30e));}else{_0x39f78c[_0x208777(0x1e9)](_0x4be71e,undefined)&&(_0x39f78c[_0x208777(0x380)](_0x39f78c[_0x208777(0x200)],_0x39f78c['caJqN'])?_0x59986d[_0x208777(0x21d)]():(_0x1df599=_0x39f78c[_0x208777(0x264)],await _0x39f78c['hYyLA'](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x254)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)));global_registry[_0x208777(0x37a)]=_0x4be71e['id'],_0x1df599=_0x208777(0x339)+_0x4ab324+_0x208777(0x234)+_0x4be71e[_0x208777(0x237)]+_0x208777(0x2a6),logger['info'](_0x1df599);const _0x4f067f={};_0x4f067f['type']=WS_EVENTS['LOG'],_0x4f067f[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x4f067f),_0x3a31be=_0x4be71e['cloudProvider'],_0xa9f31f=_0x4be71e[_0x208777(0x246)],_0x1a8246=_0x4be71e[_0x208777(0x207)],_0xbe72a=_0x4be71e[_0x208777(0x244)],_0x18293f=_0x4be71e['instanceType'],_0x5cba7e=_0x4be71e['vpc'],_0x46ed5f=_0x4be71e[_0x208777(0x29c)],_0xf64940=_0x4be71e['subnets'],_0x45e492=_0x4be71e[_0x208777(0x26a)],_0x4f384d=_0x4be71e[_0x208777(0x2d7)],_0x104d04=_0x4be71e[_0x208777(0x2f2)],_0x506873=_0x20f548[_0x208777(0x202)],_0x499685=_0x20f548['browserVersion'];_0x5cba7e&&_0x39f78c['MOmZD'](_0x5cba7e['length'],0x0)&&(_0x39f78c[_0x208777(0x23d)](_0x39f78c[_0x208777(0x2ce)],_0x39f78c[_0x208777(0x2ce)])?_0x5cba7e=null:_0x519381[_0x208777(0x354)]=!![]);if(_0xf64940&&_0x39f78c[_0x208777(0x22b)](_0xf64940[_0x208777(0x2e8)],0x0)){if(_0x39f78c[_0x208777(0x369)](_0x39f78c[_0x208777(0x2fe)],_0x39f78c[_0x208777(0x2fe)]))_0xf64940=null;else{const _0x11fea8={};_0x11fea8[_0x208777(0x289)]=_0x14a056[_0x208777(0x1f7)],_0x11fea8[_0x208777(0x266)]=_0x536ca2,_0x2e72f3[_0x208777(0x23a)](_0x3084e6,_0x11fea8,_0x39f78c[_0x208777(0x218)],!![]);}}_0x39f78c[_0x208777(0x1e7)](_0x4be71e[_0x208777(0x2d4)],undefined)&&_0x4be71e[_0x208777(0x2d4)]&&(_0x39f78c[_0x208777(0x2fb)](_0x39f78c[_0x208777(0x338)],_0x39f78c[_0x208777(0x245)])?global_registry[_0x208777(0x354)]=!![]:_0x508065=_0x39f78c[_0x208777(0x36f)]);_0x39f78c[_0x208777(0x387)](updateGlobalRegistryWithConfig,_0x3a31be,_0xa9f31f,_0x1a8246,_0xbe72a,_0x18293f,_0x45e492,_0x4be71e,_0x506873,_0x499685,_0x4f384d,_0x104d04);if(global_registry[_0x208777(0x1f3)]){if(_0x39f78c[_0x208777(0x27c)](_0x39f78c[_0x208777(0x28a)],_0x39f78c[_0x208777(0x28a)]))_0x39f78c[_0x208777(0x390)](updateGlobalRegistryForHubHa,_0x20f548[_0x208777(0x344)]);else{const _0x49a9bd=_0x39f78c[_0x208777(0x2cf)][_0x208777(0x34d)]('|');let _0x98caf3=0x0;while(!![]){switch(_0x49a9bd[_0x98caf3++]){case'0':_0x23349b=_0x72421f[_0x208777(0x244)];continue;case'1':_0x39f78c[_0x208777(0x30c)](_0x54790e,_0x7a2796,_0x54f943,_0x370ff7,_0x255fab,_0x2a9a32,_0x134fda,_0x5b7fe0,_0x3d6831,_0x5deac3,_0xb31325,_0xeee5c7);continue;case'2':_0x10d179=_0x14baa4[_0x208777(0x2d7)];continue;case'3':_0x38e4a6='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x52c601;continue;case'4':_0x427a0a=_0x494cd9[_0x208777(0x202)];continue;case'5':_0x4d2d67[_0x208777(0x269)](_0x227e54);continue;case'6':_0x39f78c[_0x208777(0x33b)](_0x3afb8b[_0x208777(0x2d4)],_0x570501)&&_0x4cee84[_0x208777(0x2d4)]&&(_0x22fa2d[_0x208777(0x354)]=!![]);continue;case'7':_0x324e0b=null;continue;case'8':_0x23b6fc=_0x25bcc8[_0x208777(0x26a)];continue;case'9':_0x50eeb1=_0x285c2a[_0x208777(0x28f)];continue;case'10':_0x26cf4d=null;continue;case'11':_0x183215['enableHubHa']&&_0x39f78c[_0x208777(0x390)](_0x4a9151,_0x32bcf0[_0x208777(0x23f)]);continue;case'12':_0xcb4a09=null;continue;case'13':_0x1cb6bd=_0x340d5e[_0x208777(0x2f2)];continue;case'14':const _0x3e1973={};_0x3e1973[_0x208777(0x289)]=_0x3e4785[_0x208777(0x1f7)],_0x3e1973[_0x208777(0x266)]=_0xd816c4,_0x1d7eb0[_0x208777(0x23a)](_0x4e4882,_0x3e1973);continue;case'15':_0x229711=_0x4a27fc['browserVersion'];continue;}break;}}}}}else{if(_0x39f78c['PgNmG'](_0x49cd7e,!![])){if(_0x39f78c[_0x208777(0x353)](_0x39f78c[_0x208777(0x21c)],_0x39f78c[_0x208777(0x1ef)])){const _0x2be441=_0x39f78c[_0x208777(0x2e1)][_0x208777(0x34d)]('|');let _0x2c5907=0x0;while(!![]){switch(_0x2be441[_0x2c5907++]){case'0':_0x3c4792='Spawning\x20the\x20grid\x20'+_0x1751d6+_0x208777(0x26b)+_0x2ae1e9+'\x27';continue;case'1':_0x11fdff[_0x208777(0x246)]=_0xd14841;continue;case'2':_0x1673de[_0x208777(0x2fd)]=_0x178af4;continue;case'3':const _0x139411={};_0x139411[_0x208777(0x289)]=_0x1dd554[_0x208777(0x1f7)],_0x139411[_0x208777(0x266)]=_0x5a7a89,_0x3bae96[_0x208777(0x23a)](_0x3bd64a,_0x139411);continue;case'4':_0x16ff32[_0x208777(0x269)](_0x57266d);continue;case'5':_0x2744c0[_0x208777(0x202)]=_0x4b4e49[_0x208777(0x202)];continue;case'6':_0x2a1b12[_0x208777(0x211)]=_0x16ac9b[_0x208777(0x211)];continue;case'7':const _0x3d761b={};_0x3d761b[_0x208777(0x289)]=_0x2c130f[_0x208777(0x2ef)],_0x3d761b[_0x208777(0x266)]=_0x39f78c[_0x208777(0x223)],_0xa945c0[_0x208777(0x23a)](_0x424198,_0x3d761b);continue;case'8':_0x34398b[_0x208777(0x240)]=_0x26d06e;continue;}break;}}else{_0x1df599=_0x208777(0x360)+_0x4ab324,logger[_0x208777(0x269)](_0x1df599);const _0x45da95={};_0x45da95[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x45da95[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x45da95),_0xbe72a=_0x4be71e['concurrency'],_0x18293f=_0x4be71e[_0x208777(0x28f)],_0x5cba7e=null,_0x46ed5f=null,_0xf64940=null,_0x45e492=_0x4be71e['s3bucket'],_0x4f384d=_0x4be71e[_0x208777(0x2d7)],_0x104d04=_0x4be71e[_0x208777(0x2f2)],_0x506873=_0x20f548[_0x208777(0x202)],_0x499685=_0x20f548[_0x208777(0x211)],_0x39f78c[_0x208777(0x310)](_0x4be71e['privateGrid'],undefined)&&_0x4be71e[_0x208777(0x2d4)]&&(_0x39f78c[_0x208777(0x36a)](_0x39f78c[_0x208777(0x2f8)],_0x39f78c['EwSpS'])?global_registry[_0x208777(0x354)]=!![]:_0x50db49=_0x39f78c['KgLXi']),_0x39f78c['CWdJM'](updateGlobalRegistryWithConfig,_0x3a31be,_0xa9f31f,_0x1a8246,_0xbe72a,_0x18293f,_0x45e492,_0x4be71e,_0x506873,_0x499685,_0x4f384d,_0x104d04),global_registry[_0x208777(0x1f3)]&&(_0x39f78c[_0x208777(0x372)](_0x39f78c[_0x208777(0x21a)],_0x39f78c['cxjoL'])?_0x39f78c[_0x208777(0x390)](_0xe34f34,_0x15036a[_0x208777(0x23f)]):_0x39f78c['mYpKC'](updateGlobalRegistryForHubHa,_0x20f548[_0x208777(0x23f)]));}}else{if(_0x39f78c[_0x208777(0x255)](_0x39f78c[_0x208777(0x2af)],_0x39f78c[_0x208777(0x201)]))_0x5dd5fd=!![];else{const _0x53f3b0=_0x39f78c['AETzT'][_0x208777(0x34d)]('|');let _0x419e0a=0x0;while(!![]){switch(_0x53f3b0[_0x419e0a++]){case'0':global_registry['clusterRegion']=_0x1a8246;continue;case'1':_0x1df599='Spawning\x20the\x20grid\x20'+_0x4ab324+_0x208777(0x26b)+_0xa9f31f+'\x27';continue;case'2':const _0x3d4587={};_0x3d4587[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x3d4587[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x3d4587);continue;case'3':global_registry[_0x208777(0x246)]=_0xa9f31f;continue;case'4':logger[_0x208777(0x269)](_0x1df599);continue;case'5':global_registry[_0x208777(0x211)]=_0x20f548[_0x208777(0x211)];continue;case'6':global_registry['cloudProvider']=_0x3a31be;continue;case'7':global_registry[_0x208777(0x202)]=_0x20f548[_0x208777(0x202)];continue;case'8':const _0x6659fa={};_0x6659fa['type']=WS_EVENTS[_0x208777(0x2ef)],_0x6659fa['message']=_0x39f78c['cYwji'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x6659fa);continue;}break;}}}}const _0x30dbc5=await _0x39f78c[_0x208777(0x203)](getCloudProviderObject,_0x3a31be,_0xa9f31f,_0x4ab324,_0x162011,webSocketUtils,_0x5e0e2a);if(_0x39f78c[_0x208777(0x382)](_0x3a31be,AZURE)){if(_0x39f78c[_0x208777(0x2d9)](_0x39f78c[_0x208777(0x29b)],_0x39f78c[_0x208777(0x29b)])){const _0x3d75a6=_0x39f78c[_0x208777(0x364)][_0x208777(0x34d)]('|');let _0x55046c=0x0;while(!![]){switch(_0x3d75a6[_0x55046c++]){case'0':_0x183e4b[_0x208777(0x24f)]=_0x39f78c['LWcvf'];continue;case'1':_0x5ee08b[_0x208777(0x1f3)]=!![];continue;case'2':_0x426920[_0x208777(0x2be)]=_0x39f78c[_0x208777(0x227)];continue;case'3':_0x10bdfd[_0x208777(0x269)](_0x39f78c[_0x208777(0x343)]);continue;case'4':_0xe97fe3['kafkaPassword']=_0x39f78c['kChcc'];continue;}break;}}else _0x30dbc5['sendResourceDataToHST']();}let _0x31643b;if(_0x39f78c[_0x208777(0x365)](_0x3e3801,![])){_0x1df599='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x1a8246+').';const _0xd5d2f2={};_0xd5d2f2[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xd5d2f2[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0xd5d2f2),logger[_0x208777(0x269)](_0x1df599);const _0x2a91ad=await _0x30dbc5[_0x208777(0x306)]();if(_0x2a91ad){if(_0x39f78c['YRRmK'](_0x39f78c[_0x208777(0x2c3)],_0x39f78c[_0x208777(0x31c)])){const _0x51bf16={};_0x51bf16[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x51bf16[_0x208777(0x266)]=_0x208777(0x20a)+_0xa9f31f+_0x208777(0x28b),webSocketUtils[_0x208777(0x23a)](_0x162011,_0x51bf16,_0x39f78c[_0x208777(0x21f)]),logger['info'](_0x208777(0x20a)+_0xa9f31f+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3e3801=!![];if(_0x39f78c[_0x208777(0x341)](_0x49cd7e,!![])){if(_0x39f78c[_0x208777(0x2f0)](_0x39f78c['dTIGa'],_0x39f78c[_0x208777(0x395)]))throw new Error(_0x208777(0x20a)+_0xa9f31f+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x39f78c[_0x208777(0x390)](_0x32cc96,_0x1228cd['uploaderVersion']);}}else _0x30fd5b=null;}else{const _0xa1d1d7={};_0xa1d1d7[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xa1d1d7[_0x208777(0x266)]=_0x39f78c[_0x208777(0x355)],webSocketUtils['sendEventToBackend'](_0x162011,_0xa1d1d7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x355)]);const _0x1c967e=_0x39f78c['kugfC'](_0x5cba7e,null)&&_0x39f78c[_0x208777(0x37e)](_0x5cba7e,undefined),_0x4ed09a=_0x39f78c[_0x208777(0x389)](_0xf64940,null)&&_0x39f78c['UJUSD'](_0xf64940,undefined)&&_0x39f78c[_0x208777(0x2ea)](_0xf64940[_0x208777(0x2e8)],0x0);if(_0x1c967e){_0x39f78c[_0x208777(0x2ad)](_0x4ed09a,![])&&(_0x1df599=_0x39f78c[_0x208777(0x2d0)],await _0x39f78c['hYyLA'](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x361)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1));const _0x5a3e0c=await _0x30dbc5['isVPCPresent'](_0x5cba7e);_0x39f78c[_0x208777(0x362)](_0x5a3e0c,![])?(_0x1df599=_0x39f78c['FZCaK'],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x28e)],_0x39f78c['mOoSX']),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)):logger['info'](_0x208777(0x2cc)+_0x5cba7e+'\x20');const _0x595543=await _0x30dbc5['isSubnetsValid'](_0xf64940,_0x5cba7e);_0x39f78c[_0x208777(0x377)](_0x595543[0x0],![])?(_0x1df599=_0x208777(0x349)+JSON['stringify'](_0x595543[0x1])+_0x208777(0x388)+_0x5cba7e+_0x208777(0x34c),await _0x39f78c[_0x208777(0x32d)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x32e)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)):logger[_0x208777(0x269)]('Found\x20Subnets:\x20'+JSON['stringify'](_0xf64940)+'\x20'),[_0x5cba7e,_0xf64940]=await _0x30dbc5[_0x208777(0x1e5)](_0x5cba7e,_0xf64940);}else{const _0x71f588=_0x39f78c[_0x208777(0x319)]['split']('|');let _0xc7c3c6=0x0;while(!![]){switch(_0x71f588[_0xc7c3c6++]){case'0':logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x35a)]);continue;case'1':[_0x5cba7e,_0xf64940]=await _0x30dbc5[_0x208777(0x1e5)](_0x5cba7e,_0xf64940);continue;case'2':const _0x29eb97={};_0x29eb97[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x29eb97[_0x208777(0x266)]=_0x39f78c[_0x208777(0x35a)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x29eb97);continue;case'3':const _0x2324e2={};_0x2324e2['type']=WS_EVENTS[_0x208777(0x1f7)],_0x2324e2[_0x208777(0x266)]=_0x39f78c[_0x208777(0x375)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x2324e2);continue;case'4':logger['info'](_0x39f78c[_0x208777(0x375)]);continue;}break;}}}}_0x3e3801&&_0x39f78c[_0x208777(0x27a)](_0x3a31be,AZURE)&&(await _0x30dbc5[_0x208777(0x321)](),await _0x30dbc5['createOtherResources']());const [_0x413b6c,_0x5a0763,_0x13413c,_0x19bb22,_0x2ec9e9,_0xaf3aa4,_0x4263e7]=await _0x39f78c[_0x208777(0x398)](createK8sClient,_0x30dbc5,_0x5e0e2a[_0x208777(0x35d)]);_0x39f78c[_0x208777(0x214)](_0x3e3801,![])&&_0x39f78c['lBDSi'](_0x3a31be,AWS)&&(global_registry[_0x208777(0x2c8)]=!![],_0x31643b=await _0x30dbc5['setupAutoscaler'](_0x413b6c,_0x5e0e2a));if(_0x39f78c[_0x208777(0x293)](_0x3e3801,![])&&global_registry[_0x208777(0x1f3)])try{await _0x30dbc5[_0x208777(0x396)](_0xaf3aa4,_0x4263e7,_0x5e0e2a,_0x5cba7e,_0xf64940);const _0x566a12={};_0x566a12[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x566a12[_0x208777(0x266)]=_0x39f78c['pIHzC'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x566a12);!await _0x39f78c[_0x208777(0x398)](namespaceExists,_0x413b6c,global_registry[_0x208777(0x2be)])&&await _0x39f78c[_0x208777(0x2eb)](createNamespace,_0x413b6c,global_registry['hubHaNameSpace']);logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x2ca)]);let _0x59229b=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c[_0x208777(0x1e4)],_0x39f78c[_0x208777(0x2ac)],_0x39f78c['VqUAb'],_0x39f78c[_0x208777(0x235)]),_0x39f78c[_0x208777(0x225)]);_0x59229b=_0x59229b[_0x208777(0x286)](/<RedisClientPassword>/g,_0x39f78c[_0x208777(0x325)](encodeBase64,global_registry[_0x208777(0x24f)])),_0x59229b=_0x59229b[_0x208777(0x286)](/<KafkaClientPassword>/g,_0x39f78c['mYpKC'](encodeBase64,global_registry[_0x208777(0x359)])),_0x59229b=_0x59229b[_0x208777(0x286)](/<BstackUsername>/g,_0x39f78c[_0x208777(0x2f5)](encodeBase64,global_registry['bstackUsername'])),_0x59229b=_0x59229b['replace'](/<BstackAccessKey>/g,_0x39f78c[_0x208777(0x376)](encodeBase64,global_registry['bstackAccesskey']));const _0x586dfb=yaml['loadAll'](_0x59229b);await _0x39f78c['Hbosk'](kubeApply,_0x586dfb,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c['LNnfe']);let _0x2fafaa=_0x39f78c[_0x208777(0x209)];if(_0x39f78c[_0x208777(0x270)](_0x3a31be,AZURE))_0x2fafaa=_0x39f78c['mniRN'];else _0x39f78c[_0x208777(0x270)](_0x3a31be,GCP)&&(_0x2fafaa=_0x39f78c['KgLXi']);logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x302)]);let _0x5ca19e=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c[_0x208777(0x1e4)],_0x39f78c[_0x208777(0x2ac)],_0x39f78c['VqUAb'],_0x39f78c[_0x208777(0x38b)]),_0x39f78c[_0x208777(0x225)]);_0x5ca19e=_0x5ca19e[_0x208777(0x286)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x5ca19e=_0x5ca19e[_0x208777(0x286)](/<StorageClassName>/g,_0x2fafaa);const _0x1392a8=yaml['loadAll'](_0x5ca19e);await _0x39f78c['NXxXt'](kubeApply,_0x1392a8,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x261)]),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x2a1)]);let _0x5abd58=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c[_0x208777(0x1e4)],_0x39f78c[_0x208777(0x2ac)],_0x39f78c['VqUAb'],_0x39f78c['DaFmd']),_0x39f78c[_0x208777(0x225)]);_0x5abd58=_0x5abd58['replace'](/<HubHaNameSpace>/g,global_registry[_0x208777(0x2be)]),_0x5abd58=_0x5abd58['replace'](/<StorageClassName>/g,_0x2fafaa);const _0x92c344=yaml[_0x208777(0x26e)](_0x5abd58);await _0x39f78c[_0x208777(0x1e2)](kubeApply,_0x92c344,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x23c)]),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x2f7)]);let _0x41042c=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c['TJrVW'],_0x39f78c[_0x208777(0x2ac)],_0x39f78c[_0x208777(0x34b)],_0x39f78c[_0x208777(0x2a8)]),_0x39f78c[_0x208777(0x225)]);_0x41042c=_0x41042c[_0x208777(0x286)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x41042c=_0x41042c[_0x208777(0x286)](/<HubHaNameSpace>/g,global_registry[_0x208777(0x2be)]);const _0x1e0294=yaml[_0x208777(0x26e)](_0x41042c);_0x39f78c['arOXN'](global_registry[_0x208777(0x240)],AZURE)&&(_0x1e0294[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x213)][_0x208777(0x2e0)]={'azure.workload.identity/use':_0x39f78c[_0x208777(0x242)],..._0x1e0294[0x0][_0x208777(0x31d)][_0x208777(0x2ee)]['metadata'][_0x208777(0x2e0)]},_0x1e0294[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x31d)][_0x208777(0x1fc)]=_0x39f78c[_0x208777(0x1fa)]);await _0x39f78c['NXxXt'](kubeApply,_0x1e0294,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x31a)]);const _0x409b3b={};_0x409b3b['type']=WS_EVENTS[_0x208777(0x1f7)],_0x409b3b[_0x208777(0x266)]=_0x39f78c[_0x208777(0x283)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x409b3b),logger[_0x208777(0x269)](_0x39f78c['RIsCK']);}catch(_0x3b5224){const _0x30ae15=_0x39f78c[_0x208777(0x271)][_0x208777(0x34d)]('|');let _0x5bec00=0x0;while(!![]){switch(_0x30ae15[_0x5bec00++]){case'0':process[_0x208777(0x2b9)](0x1);continue;case'1':await _0x30dbc5[_0x208777(0x267)](_0x413b6c,global_registry[_0x208777(0x2fd)]);continue;case'2':await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x20b)],_0x39f78c['mOoSX']);continue;case'3':_0x1df599=_0x208777(0x312)+_0x3b5224[_0x208777(0x266)];continue;case'4':logger[_0x208777(0x23e)](_0x1df599);continue;}break;}}try{_0x15e041=_0x39f78c[_0x208777(0x376)](kebabCase,_0x4ab324),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x215)]);const _0x476b5d={};_0x476b5d[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x476b5d['message']=_0x39f78c['islws'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x476b5d);if(_0x39f78c[_0x208777(0x1ec)](_0x15e041,_0x39f78c[_0x208777(0x1fa)])){const _0x5df276={};_0x5df276[_0x208777(0x25d)]=_0x39f78c[_0x208777(0x368)],_0x5df276[_0x208777(0x329)]=_0x39f78c[_0x208777(0x368)];const _0x56503c={};_0x56503c[_0x208777(0x237)]=_0x15e041,_0x56503c[_0x208777(0x35c)]=_0x5df276;const _0x1e254b={};_0x1e254b[_0x208777(0x213)]=_0x56503c;const _0x197686=_0x1e254b,_0x1592fa={};_0x1592fa[_0x208777(0x38d)]=_0x197686,await _0x413b6c[_0x208777(0x31b)](_0x1592fa),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x221)]);}const _0xdcd192={};_0xdcd192[_0x208777(0x289)]=WS_EVENTS['LOG'],_0xdcd192[_0x208777(0x266)]=_0x39f78c['pkSuF'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0xdcd192);const _0x498792={};_0x498792['type']=WS_EVENTS[_0x208777(0x1f7)],_0x498792[_0x208777(0x266)]=_0x39f78c[_0x208777(0x248)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x498792),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x251)]);let _0x2112b4={};_0x39f78c[_0x208777(0x341)](_0x3a31be,AZURE)&&(_0x2112b4={'clientId':await _0x30dbc5['getResourceClientId']('turboscale-managed-identity-'+_0xa9f31f)});await _0x39f78c[_0x208777(0x2b0)](addGridComponents,_0x413b6c,_0x5a0763,_0x13413c,_0x19bb22,_0x15e041,_0xa9f31f,_0x31643b,_0x2ec9e9,_0x4263e7,_0x2112b4),_0x1df599=_0x39f78c[_0x208777(0x2b2)],logger[_0x208777(0x269)](_0x1df599);const _0x4a993d={};_0x4a993d[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x4a993d[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x4a993d),_0x1df599=_0x39f78c[_0x208777(0x216)],logger[_0x208777(0x269)](_0x1df599);const _0x49eed5={};_0x49eed5[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x49eed5['message']=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x49eed5),await _0x39f78c[_0x208777(0x2f3)](waitForDeployment,_0x5a0763,_0x15e041,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x57d1d5=await _0x39f78c[_0x208777(0x352)](getNamespaceUID,_0x413b6c,_0x15e041),_0x268a33=global_registry[_0x208777(0x354)]?_0x39f78c[_0x208777(0x2c9)]:_0x39f78c[_0x208777(0x259)],_0x5e97f9={};_0x5e97f9[_0x208777(0x237)]=_0x268a33,_0x5e97f9[_0x208777(0x256)]=_0x39f78c[_0x208777(0x23b)];const _0x32d8a6=await _0x413b6c[_0x208777(0x292)](_0x5e97f9);let _0x1da81f=_0x30dbc5['getGridHostname'](_0x32d8a6)+'/'+_0x15e041,_0x2f1668=_0x39f78c['gqhlM'];try{const _0xf10f92='https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x57d1d5,_0x1f2c9c=await _0x39f78c[_0x208777(0x37f)](got,_0xf10f92,_0x352673);(_0x39f78c[_0x208777(0x214)](_0x1f2c9c,null)||_0x39f78c[_0x208777(0x23d)](_0x1f2c9c,undefined))&&(_0x1df599=_0x39f78c[_0x208777(0x301)],await _0x39f78c[_0x208777(0x385)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x2d1)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1));_0x39f78c[_0x208777(0x2ed)](_0x1f2c9c[_0x208777(0x272)],0x191)&&(_0x1df599=_0x39f78c['dgYWx'],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x345)],_0x39f78c[_0x208777(0x218)]),logger['error'](_0x1df599),process['exit'](0x1));_0x39f78c['ADZNj'](_0x1f2c9c[_0x208777(0x272)],0xc8)&&(_0x1df599='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x208777(0x2e9)](_0x1f2c9c),await _0x39f78c['vjcWP'](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x2d3)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1));const _0x8b22a6=JSON['parse'](_0x1f2c9c[_0x208777(0x38d)]);_0x8b22a6[_0x208777(0x30b)]&&(_0x1da81f=_0x8b22a6[_0x208777(0x30b)],_0x2f1668=_0x39f78c[_0x208777(0x38c)]),global_registry[_0x208777(0x354)]&&(_0x2f1668=_0x39f78c[_0x208777(0x36f)]);}catch(_0x536b34){}_0x1df599='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x1da81f+'\x20',logger[_0x208777(0x269)](_0x1df599);const _0xc658cc={};_0xc658cc[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xc658cc['message']=_0x1df599,webSocketUtils['sendEventToBackend'](_0x162011,_0xc658cc),_0x1df599=_0x208777(0x314)+_0x2f1668+_0x208777(0x2bb)+_0x1da81f+'/wd/hub',logger[_0x208777(0x269)](_0x1df599);const _0xf6269c={};_0xf6269c[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xf6269c[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0xf6269c);const _0x2c787d={};_0x2c787d['type']=WS_EVENTS[_0x208777(0x2c6)],_0x2c787d[_0x208777(0x266)]='CLI\x20run\x20finished:\x20'+_0x1da81f,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x2c787d),await webSocketUtils['delay'](0x7d0);}catch(_0x46ff58){logger[_0x208777(0x23e)](_0x208777(0x2cb)+_0x46ff58+'\x20\x0a'+JSON[_0x208777(0x2e9)](_0x46ff58[_0x208777(0x1f4)]));if(_0x39f78c[_0x208777(0x2ed)](_0x3e3801,![]))try{logger[_0x208777(0x269)](_0x39f78c['HyWDe']),await _0x39f78c[_0x208777(0x1f0)](removeGridComponents,_0x413b6c,_0x5a0763,_0x13413c,_0x19bb22,_0x15e041),await _0x30dbc5[_0x208777(0x267)](_0x413b6c,global_registry[_0x208777(0x2fd)]);}catch(_0x270f0d){logger[_0x208777(0x23e)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x270f0d+'\x20\x0a'+JSON[_0x208777(0x2e9)](_0x270f0d[_0x208777(0x1f4)]));}throw _0x46ff58;}}catch(_0x24f499){const _0x5447ff=_0x208777(0x2f9)+_0x24f499+'\x20\x0a'+JSON[_0x208777(0x2e9)](_0x24f499[_0x208777(0x1f4)]);if(_0x162011){const _0x3ba8e4={};_0x3ba8e4[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x3ba8e4[_0x208777(0x266)]=_0x5447ff,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x3ba8e4,_0x39f78c[_0x208777(0x218)],!![]);}await webSocketUtils[_0x208777(0x391)](0x7d0);const _0x520685={};_0x520685[_0x208777(0x23e)]=_0x5447ff,await _0x39f78c[_0x208777(0x203)](sendInstrumentationEvent,_0x5e0e2a,_0x39f78c['VZNlr'],messageTypes['ERROR'],_0x39f78c[_0x208777(0x252)],_0x520685,_0x5e0e2a),logger[_0x208777(0x23e)](_0x5447ff);}process[_0x208777(0x2b9)](0x0);};function a9_0x2962(){const _0x408e17=['MopSM','DQXVT','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','prespawned-cluster-args-not-passed','QXExN','browserstack','clusterRegion','vSyHZ','ZTkOt','WebSocket','venrN','LrbjU','qyimW','15643860ztGjQC','handler','isClusterPresent','QjCXl','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','bjBcX','<UsernamePlaceholder>','route53','YsgCA','Adding\x20Websocket\x20listeners','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','fHNTl','3|2|0|4|1','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','UxmSS','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','YFOzL','crsUH','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','SVLLR','JJGVL','PhgUU','createNamespace','tepLE','spec','ERROR','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','CQbKb','updateClusterAlreadyPresent','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Hub\x20HA\x20setup\x20completed\x20successfully.','join','CmOxt','jiuDd','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','skip-tls-cert-verify','managedBy','yimuN','Enabling\x20Hub\x20HA\x20flow','Created\x20Hub\x20HA\x20resources','vyZJN','NHTHZ','EjDJQ','kQmel','argv','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','cNdOj','7dHvYrO','16480575JiaPra','SAxHn','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','DBsJu','Will\x20be\x20spawning\x20the\x20grid\x20','404IVZYEh','bLstW','mniRN','Creating\x20namespace','cLVjG','js-yaml','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','qXOJe','nVAZc','ASDok','uploaderVersion','RMYTR','https://','gridProfile','create','Subnets:\x20','GnIbE','VqUAb','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','split','CLI\x20run\x20started','RwcQR','GriQd','xWzQS','HySUG','fBGlr','isPrivateGrid','IpMwM','bitnami-kafka.yaml','IFqzm','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','kafkaPassword','KeuIL','hDUFe','annotations','skipTlsCertVerify','parse','nvFUQ','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','DRugg','aZEuE','hubHa','AiFYS','SQwWn','grid','includes','LANuh','JxHmP','mkNTy','bitnami-redis.yaml','Spawning\x20grid\x20on\x20to\x20the\x20cluster','../../cloudproviders/utils','username','gqhlM','pgtko','pIMbu','bVfEb','Create\x20a\x20new\x20Automation\x20grid.','password','ybeCI','tnjnT','bNwZu','CCiDa','boolean','gridProfileId','command','connectionTimeout','ZIyxs','XdJvs','Hbosk','bcwVD','help','YRRmK','meMqZ','Namespace\x20created','sJiJl','grid-profile','UYPxD','\x20are\x20not\x20present\x20in\x20VPC:\x20','ZREXI','toLowerCase','pVLOJ','PCJke','body','browserstack-secret.yaml','BFBjf','Mgsms','delay','Spawning\x20Grid\x20on\x20the\x20Cluster','HTaZc','2|0|1|3|4','dTIGa','setupHubHa','HiEOg','NXxXt','http','iaKKr','dCriQ','TJrVW','setupNewCluster','Added\x20Secret\x20Mapping','cOmJn','2043946mSjerk','PvYiX','UTnig','nOkpd','oGODn','premium-rwo','KnrBC','EOFEN','jehLB','zuSoX','debug','enableHubHa','stack','pre-spawned-invalid-subnets','yUUsb','LOG','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','options','JbyOn','quXRB','serviceAccountName','user','1364072LGUknS','NRRyP','caJqN','cdSdV','hubVersion','mEEdq','8AyFmYf','aWhKm','bZKyP','region','get-grid-url-non-200','ucUMi','Cluster\x20','gsfFK','SvSsl','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','../../utils/instrumentationUtils','cGMOf','3|5|14|0|9|7|10|12|8|2|13|4|15|6|1|11','browserVersion','yZikN','metadata','saVVm','islws','ggjHa','Sveei','mOoSX','hub-ha','nsPEv','VfYig','kQcce','sendResourceDataToHST','cMDTN','qNBPG','MylYg','CQZot','IzWzC','cYwji','pkmeV','tozel','hYyLA','iChnw','gWaKF','7|0|4|3|8|2|1|5|6','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','pRGcV','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.','AwoAF','npwZP','get-grid-url-auth-failed','RtCNB','grid-name','path','rwXiz','\x20using\x20\x27','OBCaE','cloud-provider','name','ysAzl','LWcvf','sendEventToBackend','nGjzK','Cpxfd','PgNmG','error','kafkaUploader','cloudProvider','https','JXTVN','XtoCR','concurrency','vMylu','clusterName','Deleting\x20the\x20CloudFormation\x20Stacks','UqOjp','60535jrWySj','grid-spawning-failed','LgNwI','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Skip\x20insecure\x20cert\x20verification.','LlaTK','redisPassword','MXvwY','pyrJG','FDUbQ','hub-ha-deployments-failed','GeFag','uZJQg','namespace','<PasswordPlaceholder>','defaultGridProfile','dwzJN','zKyZp','Added\x20Redis\x20deployment.','xdfBQ','createdBy','GCLlI','OQPyX','Cluster:\x20','lSovA','wpVTb','readFileAsync','BGRSM','cluster-name','message','deleteCluster','IuuwJ','info','s3bucket','\x20in\x20existing\x20cluster\x20\x27','QOaDB','STxHY','loadAll','aYaHw','IEhAr','TSpdW','statusCode','moajC','ingress-nginx-controller','Epyd5nXbRK','create-grid-checks-invalid-profile','3972618rApPhq','4|3|2|1|0','mnVkZ','LTclt','mnYAq','fJzfB','ZEKeX','warn','zFgTD','description','LDZFd','../../config/constants','yEnVa','existsSync','private-ingress-nginx-controller','replace','create-grid-checks-grid-already-exists','Create\x20a\x20private/public\x20grid.','type','uSAvG','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','MnNmu','private-grid','yhCQG','instanceType','HhuaB','true','readNamespacedService','qyBHx','../..','Adding\x20Redis\x20deployment...','UvyjM','Creating\x20Hub\x20HA\x20resources','KjCOb','hrxdV','HOkkZ','PaAeh','securityGroups','tauXS','create-grid-called','1801929rUuvDE','lIDrC','iQsJA','../../config/logger','../../utils/createk8sClient','gridName','usage','\x27\x20grid\x20profile','sHKPi','PXlCZ','VZNlr','got','dAQqd','alyJg','dzmIQ','tQunJ','JZQKY','vbxEk','Browserstack','GzGWI','gridProfiles','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','builder','aVgyB','VFkZO','epilogue','exit','Adding\x20Kafka\x20deployment...','://','addListeners','SJodf','hubHaNameSpace','qjNJR','../../utils/utilityMethods','wEEvI','mzhjc','lgDqQ','Added\x20Turboscale\x20Uploader\x20deployment.','efs-csi','CLI_RUN_FINISHED','Added\x20Kafka\x20deployment.','isNewAWSCluster','jaOnT','TaBuz','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','Found\x20VPC:\x20','CxsGr','xScpB','phfEp','mzXol','YWMYu','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','PjIOB','privateGrid','desc','newCluster','minNodes','bMpBH','lxQZD','default','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','yRRnV','get-grid-url-null-response','INFO','GkuwT','labels','EAgxM','RJwrZ','non-aws-azure-cluster','dXhCN','init-not-called','bstackAccesskey','create-grid-checks-auth-failed','length','stringify','tDhaL','fyBUu','uuid','tzYRL','template','CLI_RUN_STARTED','QPTeT','UhbEM','maxNodes','IsaDU','requestId','mYpKC','imwEN'];a9_0x2962=function(){return _0x408e17;};return a9_0x2962();}
1
+ const a9_0x3c0bbe=a9_0x5c7e;function a9_0x19dc(){const _0x44cf4b=['Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','hubHa','../../config/constants','pdEPv','Cluster:\x20','cHpvl','Added\x20Kafka\x20deployment.','EIkMD','ZmoVH','vTnnf','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','isSubnetsValid','annotations','Vkrlv','IITga','QdIPE','jzCmu','ioBeH','readFileAsync','4|7|1|3|0|5|6|8|2','hubharesources','ycrAF','tQRKJ','nhnne','SIuVK','jrFpX','handler','nUYvp','epilogue','private-grid','lTsEA','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','metadata','Found\x20VPC:\x20','create-grid-checks-grid-already-exists','grid-profile','efs-csi','bitnami-kafka.yaml','private-ingress-nginx-controller','true','get-grid-url-null-response','CLI\x20run\x20started','existsSync','TyKvW','concurrency','create-grid-checks-auth-failed','ERROR','cmsHK','isPrivateGrid','desc','AdqCp','kNGeC','yTXbA','js-yaml','boolean','12229492sDBSWJ','cloud-provider','ZjhFe','help','AFeUa','mFjIK','dkesI','cXNxK','yMgqu','minNodes','dTeJS','get-grid-url-non-200','skip-tls-cert-verify','pWqkz','uploaderVersion','WPIXX','gridName','clusterRegion','1239530MYmyBe','kAqrK','bAiSF','info','lCokX','lYkgS','ERgiN','alreadyPresent','GvTAK','GLbhT','bgAQz','IwBhA','namespace','description','Adding\x20Websocket\x20listeners','QbBQB','TUOgq','loadAll','Deleting\x20the\x20CloudFormation\x20Stacks','grid','grid-name','body','skipTlsCertVerify','/wd/hub','EGASl','sendEventToBackend','LOG','beWbI','cluster-name','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','sxaaL','pLbzF','jWLki','CLI_RUN_FINISHED','golee','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','gridProfile','default','uykrZ','vpc','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','argv','PWaxr','Syivd','warn','Gmoac','ORbQK','lOPWg','template','MBZZi','RKuKw','bstackAccesskey','hub-ha-deployments-failed','sendResourceDataToHST','Spawning\x20Grid\x20on\x20the\x20Cluster','\x20are\x20not\x20present\x20in\x20VPC:\x20','premium-rwo','ksFEh','fPYiu','TJXrM','Found\x20Subnets:\x20','../../utils/gridComponents','ukrns','setupHubHa','MceNQ','nReUe','MLwCV','fDzZM','Added\x20Redis\x20deployment.','connectionTimeout','JAJTu','setupNewCluster','89360igvARw','ybVUp','qjdxJ','RkDug','Added\x20Turboscale\x20Uploader\x20deployment.','stack','Qgruk','join','labels','oTVfX','http','YMVGY','IpHqe','type','delay','pLjJF','\x27\x20grid\x20profile','ingress-nginx-controller','iCiBC','name','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.','securityGroups','dcIkp','GOilG','dTYsK','statusCode','gridProfiles','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','usage','297VFIwjv','OQlmU','Skip\x20insecure\x20cert\x20verification.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','QEwsS','/packages/cli/get-grid-url?gridIdentifier=','mfmbo','Browserstack','TWSaa','GET','command','redisPassword','getGridHostname','Subnets:\x20','<PasswordPlaceholder>','Epyd5nXbRK','HTBQB','prpCu','VItMq','AOdTK','nNQVE','DYcal','bitnami-redis.yaml','VvRWD','Namespace\x20Created','../../utils/createk8sClient','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','RRnjb','ltXWp','Ncwpm','scJOA','region','cFdIN','Added\x20Secret\x20Mapping','lMXQY','clusterName','iFUlC','CLI\x20run\x20finished:\x20','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','13488ZkfVIc','yMldk','PyTyP','bstackUsername','orLTM','Jnrxo','RJisZ','<UsernamePlaceholder>','got','oSPmZ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','create-grid-checks-invalid-profile','sduwE','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','exit','fvacM','s3bucket','JBtbx','KaTwg','wWGEa','OvZzn','ACRVd','enableHubHa','efxjm','Cluster\x20created\x20successfully','XmEFi','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','hubHaNameSpace','route53','length','YkZNa','Mbmej','PGFuE','Adding\x20Redis\x20deployment...','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','1|4|3|2|0','1310HYFvgi','ingress-nginx','oXqnF','1400196VSMkmw','NCYFG','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','ihetS','suomj','pKLwX','ueRQZ','Spawning\x20the\x20grid\x20','serviceAccountName','templates','Enabling\x20Hub\x20HA\x20flow','gridProfileId','uuid','PdEXp','readFileSync','JtyfG','readNamespacedService','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','dVJnF','MljfB','/packages/cli/create-grid-checks','deleteCluster','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','CLI_RUN_STARTED','KWKZF','Ymiho','Grid\x20can\x20be\x20accessed\x20at:\x20','JfisN','AFqTs','mluqn','GgQcv','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Create\x20a\x20new\x20Automation\x20grid.','sTjEX','privateGrid','hub-ha','dwHyD','Cluster\x20','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','VwPQz','sdUsH','3005716wsbYOn','\x20in\x20existing\x20cluster\x20\x27','sKdKJ','getResourceClientId','3|4|8|6|5|0|1|7|2','QEDHK','parse','Grid\x20spawned\x20on\x20the\x20cluster','UkRNzNYCBU','Gixkd','split','utf-8','NinKl','debug','IoPkf','VnTrY','pLQen','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','VwCGs','addListeners','Adding\x20Kafka\x20deployment...','eERNR','Dprfp','HHsqo','MVAAA','replace','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Namespace\x20created','Hub\x20HA\x20setup\x20completed\x20successfully.','PkTWg','XdOPD','KAdum','maxNodes','IjeFC','https','1tVULqz','create-grid-checks-null-response','cloudProvider','tmrfx','message','CTKgY','HSHCy','hYayB','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','kafkaPassword','browserVersion','defaultGridProfile','Pekun','turboscale-managed-identity-','createdBy','39TKBxrB','WJnsb','cIcbv','create','gdZDm','updateClusterAlreadyPresent','IlYWk','Will\x20be\x20spawning\x20the\x20grid\x20','Flag\x20to\x20enable\x20Hub\x20HA','\x20using\x20\x27','WAuYR','../..','username','error','../../utils/utilityMethods','path','zXEBG','password','hubVersion','eGBaS','gqDVJ','Yajkn','FfDNt','Adding\x20Secret\x20Mapping','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','../../utils/webSocketUtils','QyaIG','dpVkA','acUWd','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','iLJgW','0|3|1|4|2','spec','Jwifk','WebSocket','pLMsy','qCqLP','HuotO','VikXX','XRccW','apeqz','fmfsF','../../cloudproviders/utils','VDMHm','createNamespace','NaCLI','browserstack','QXwiS','rRqnG','../../config/logger','OvBlQ','ZZzvR','wTEBM','managedBy','kafkaUploader','uploaderImageVersion','PJnXN','bnLBy','ueIyA','17956MBiWWF','QtyEU','INFO','PTwqx','StlZo','stringify','ignAC','YuliO','RfGGG','toLowerCase','isClusterPresent','subnets','https://','IoocP','SkSqX','turboscale-uploader.yaml','sUPAq','createOtherResources'];a9_0x19dc=function(){return _0x44cf4b;};return a9_0x19dc();}(function(_0x56ffbf,_0x1fe752){const _0xd84cbd=a9_0x5c7e,_0x398358=_0x56ffbf();while(!![]){try{const _0x5a0315=-parseInt(_0xd84cbd(0x28d))/0x1*(-parseInt(_0xd84cbd(0x241))/0x2)+parseInt(_0xd84cbd(0x29c))/0x3*(-parseInt(_0xd84cbd(0x2d7))/0x4)+-parseInt(_0xd84cbd(0x23e))/0x5*(parseInt(_0xd84cbd(0x219))/0x6)+-parseInt(_0xd84cbd(0x26a))/0x7+-parseInt(_0xd84cbd(0x1d4))/0x8*(parseInt(_0xd84cbd(0x1f2))/0x9)+parseInt(_0xd84cbd(0x332))/0xa+parseInt(_0xd84cbd(0x320))/0xb;if(_0x5a0315===_0x1fe752)break;else _0x398358['push'](_0x398358['shift']());}catch(_0x1ec57a){_0x398358['push'](_0x398358['shift']());}}}(a9_0x19dc,0x77bfc));const fs=require('fs'),ws=require('ws'),path=require(a9_0x3c0bbe(0x2ab)),yaml=require(a9_0x3c0bbe(0x31e)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x3c0bbe(0x221)),{v4:uuidv4}=require(a9_0x3c0bbe(0x24d)),webSocketUtils=require(a9_0x3c0bbe(0x2b5)),{logger}=require(a9_0x3c0bbe(0x2cd)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x3c0bbe(0x2aa)),{getCloudProviderObject}=require(a9_0x3c0bbe(0x2c6)),{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_0x3c0bbe(0x2eb)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x3c0bbe(0x1c9)),{createK8sClient}=require(a9_0x3c0bbe(0x20b)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a9_0x5c7e(_0x3b5957,_0x4e3227){const _0x19dcf1=a9_0x19dc();return a9_0x5c7e=function(_0x5c7e54,_0xc006e1){_0x5c7e54=_0x5c7e54-0x1b9;let _0x544fd1=_0x19dcf1[_0x5c7e54];return _0x544fd1;},a9_0x5c7e(_0x3b5957,_0x4e3227);}exports[a9_0x3c0bbe(0x1fc)]=a9_0x3c0bbe(0x345),exports[a9_0x3c0bbe(0x31a)]=a9_0x3c0bbe(0x261),exports['builder']=function(_0x44c423){const _0x4404e8=a9_0x3c0bbe,_0x23f27e={};_0x23f27e[_0x4404e8(0x1b9)]=_0x4404e8(0x257),_0x23f27e[_0x4404e8(0x1cc)]='string',_0x23f27e['IGMaF']=_0x4404e8(0x23c),_0x23f27e[_0x4404e8(0x2d6)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x23f27e[_0x4404e8(0x2ec)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x23f27e[_0x4404e8(0x336)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x23f27e[_0x4404e8(0x216)]='Create\x20a\x20private/public\x20grid.',_0x23f27e[_0x4404e8(0x2c4)]=_0x4404e8(0x1f4),_0x23f27e[_0x4404e8(0x203)]=_0x4404e8(0x31f),_0x23f27e[_0x4404e8(0x300)]=_0x4404e8(0x2a4),_0x23f27e[_0x4404e8(0x324)]=_0x4404e8(0x323);const _0x30f83e=_0x23f27e,_0x2abcc3={};_0x2abcc3['description']=_0x30f83e[_0x4404e8(0x1b9)],_0x2abcc3['type']=_0x30f83e[_0x4404e8(0x1cc)];const _0x35c434={};_0x35c434[_0x4404e8(0x33f)]=_0x30f83e['IGMaF'],_0x35c434['type']=_0x30f83e[_0x4404e8(0x1cc)];const _0x1ce5e7={};_0x1ce5e7['description']=_0x30f83e['ueIyA'],_0x1ce5e7[_0x4404e8(0x1e1)]=_0x30f83e[_0x4404e8(0x1cc)];const _0x459a86={};_0x459a86[_0x4404e8(0x33f)]=_0x30f83e[_0x4404e8(0x2ec)],_0x459a86['type']=_0x30f83e[_0x4404e8(0x1cc)];const _0x34b3e7={};_0x34b3e7[_0x4404e8(0x33f)]=_0x30f83e['lCokX'],_0x34b3e7[_0x4404e8(0x1e1)]=_0x30f83e[_0x4404e8(0x1cc)];const _0x4786a7={};_0x4786a7[_0x4404e8(0x33f)]=_0x30f83e[_0x4404e8(0x216)],_0x4786a7['type']=_0x30f83e[_0x4404e8(0x1cc)];const _0x298f0a={};_0x298f0a[_0x4404e8(0x33f)]=_0x30f83e[_0x4404e8(0x2c4)],_0x298f0a['type']=_0x30f83e[_0x4404e8(0x203)],_0x298f0a[_0x4404e8(0x357)]=![];const _0x46ce0c={};_0x46ce0c[_0x4404e8(0x33f)]=_0x30f83e[_0x4404e8(0x300)],_0x46ce0c['type']=_0x30f83e['prpCu'],_0x46ce0c[_0x4404e8(0x357)]=![];const _0x645dd0={};return _0x645dd0['grid-name']=_0x2abcc3,_0x645dd0[_0x4404e8(0x30c)]=_0x35c434,_0x645dd0[_0x4404e8(0x34e)]=_0x1ce5e7,_0x645dd0['cloud-provider']=_0x459a86,_0x645dd0[_0x4404e8(0x211)]=_0x34b3e7,_0x645dd0['private-grid']=_0x4786a7,_0x645dd0['skip-tls-cert-verify']=_0x298f0a,_0x645dd0[_0x4404e8(0x264)]=_0x46ce0c,_0x44c423['usage'](HELP_HEADER_MESSAGE[_0x4404e8(0x29f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x645dd0)[_0x4404e8(0x323)](_0x30f83e['AFeUa'])[_0x4404e8(0x35b)];},exports[a9_0x3c0bbe(0x303)]=async function(_0x2b4991){const _0x1f4a6c=a9_0x3c0bbe,_0x4174a9={'NaCLI':'4|0|2|3|1','MBZZi':_0x1f4a6c(0x2ca),'ioBeH':_0x1f4a6c(0x272),'yMldk':_0x1f4a6c(0x201),'gdZDm':_0x1f4a6c(0x24b),'qCqLP':_0x1f4a6c(0x2a9),'OvBlQ':_0x1f4a6c(0x310),'IpHqe':'default','AFqTs':function(_0x51fca6,_0xc71fe){return _0x51fca6(_0xc71fe);},'dpVkA':_0x1f4a6c(0x28c),'lOPWg':_0x1f4a6c(0x26e),'efxjm':_0x1f4a6c(0x312),'tmrfx':'azurefile-csi-premium','tQRKJ':_0x1f4a6c(0x35e),'sUPAq':function(_0x5d9e9c,_0x435d89){return _0x5d9e9c===_0x435d89;},'IwBhA':_0x1f4a6c(0x1c4),'Jwifk':function(_0x1888b4,_0x4fd702){return _0x1888b4(_0x4fd702);},'Syivd':_0x1f4a6c(0x257),'jzCmu':'string','SIuVK':_0x1f4a6c(0x23c),'JtyfG':_0x1f4a6c(0x2b9),'HSHCy':_0x1f4a6c(0x27b),'FmURB':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UAWwS':'Create\x20a\x20private/public\x20grid.','pLjJF':_0x1f4a6c(0x1f4),'mFjIK':_0x1f4a6c(0x31f),'ADNcY':_0x1f4a6c(0x2a4),'RJisZ':'help','QdIPE':_0x1f4a6c(0x1de),'WJnsb':'3|8|11|5|14|15|9|1|13|6|12|2|0|4|7|10','AOdTK':function(_0xede879,_0x4ea548){return _0xede879!==_0x4ea548;},'PJnXN':function(_0x5d0148,_0x3eb71a,_0x26677d,_0x4cd08b,_0x6ae858,_0x13f8ee,_0x2889cd,_0xfb6235,_0x19f16f,_0x160ea5,_0x74a67d,_0x253b4b){return _0x5d0148(_0x3eb71a,_0x26677d,_0x4cd08b,_0x6ae858,_0x13f8ee,_0x2889cd,_0xfb6235,_0x19f16f,_0x160ea5,_0x74a67d,_0x253b4b);},'FfDNt':function(_0x279fba){return _0x279fba();},'dTYsK':'AnjFk','yFiwu':_0x1f4a6c(0x308),'bgAQz':function(_0x17c61d,_0x2263c6,_0x222d42,_0x2ca10f,_0x523bc6,_0x10c380,_0x5f09fd){return _0x17c61d(_0x2263c6,_0x222d42,_0x2ca10f,_0x523bc6,_0x10c380,_0x5f09fd);},'dTeJS':'create-grid-called','WnyQs':'init-not-called','RRnjb':function(_0x1732f3){return _0x1732f3();},'RTvNt':_0x1f4a6c(0x220),'VDMHm':_0x1f4a6c(0x200),'JAJTu':_0x1f4a6c(0x340),'AdqCp':function(_0x18c30d,_0x5aec20){return _0x18c30d===_0x5aec20;},'IITga':'LvTBj','sduwE':_0x1f4a6c(0x22e),'TyKvW':'aOprU','HPAal':_0x1f4a6c(0x233),'zXEBG':function(_0x3996e1,_0x309c41,_0x3b3bc9,_0x233c07,_0x182c4f,_0x1cf7b1,_0x3dc852,_0x520cd7){return _0x3996e1(_0x309c41,_0x3b3bc9,_0x233c07,_0x182c4f,_0x1cf7b1,_0x3dc852,_0x520cd7);},'rRqnG':'prespawned-cluster-args-not-passed','IoPkf':function(_0x4ae371,_0x1f80f5){return _0x4ae371!==_0x1f80f5;},'TWSaa':_0x1f4a6c(0x34d),'ZZzvR':_0x1f4a6c(0x1ef),'golee':'non-aws-azure-cluster','scJOA':function(_0x58de44,_0x469711){return _0x58de44===_0x469711;},'dXIdO':_0x1f4a6c(0x334),'PdEXp':_0x1f4a6c(0x1df),'ORbQK':_0x1f4a6c(0x2f0),'acUWd':function(_0x5b7897,_0x1a8e60){return _0x5b7897===_0x1a8e60;},'XdOPD':'AsWLu','wTEBM':'Hsked','QbBQB':_0x1f4a6c(0x1fb),'suomj':function(_0xb847e7,_0x1796be,_0x354f9d){return _0xb847e7(_0x1796be,_0x354f9d);},'xykcD':_0x1f4a6c(0x326),'nUYvp':function(_0xb6e01d,_0x3e18cd,_0x5f1407){return _0xb6e01d(_0x3e18cd,_0x5f1407);},'kneET':_0x1f4a6c(0x279),'oXqnF':_0x1f4a6c(0x1ea),'GOilG':_0x1f4a6c(0x252),'Gixkd':_0x1f4a6c(0x28e),'cXNxK':function(_0x3893df,_0x35eea1){return _0x3893df===_0x35eea1;},'QyaIG':_0x1f4a6c(0x2f2),'PaJXw':_0x1f4a6c(0x302),'IlYWk':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','UxjWu':_0x1f4a6c(0x316),'PGFuE':function(_0x1175b3,_0x1912d6){return _0x1175b3!==_0x1912d6;},'VvRWD':function(_0x5f0fd0,_0x5e9681){return _0x5f0fd0===_0x5e9681;},'CTKgY':_0x1f4a6c(0x299),'QEDHK':function(_0x1c4efe,_0x1c8afb,_0x154774,_0x568249,_0x22dbc3,_0x333b61,_0x56be8b,_0x5f1bce){return _0x1c4efe(_0x1c8afb,_0x154774,_0x568249,_0x22dbc3,_0x333b61,_0x56be8b,_0x5f1bce);},'BtQRR':'create-grid-checks-non-200','dVJnF':'Grid\x20profile\x20fetched\x20from\x20backend','StlZo':_0x1f4a6c(0x265),'pWqkz':_0x1f4a6c(0x1dd),'fvacM':function(_0x39dab8,_0x36dc91,_0x4b2cf5,_0x584990,_0x2dee78,_0x2162ba,_0x4986a3,_0x1f9888){return _0x39dab8(_0x36dc91,_0x4b2cf5,_0x584990,_0x2dee78,_0x2162ba,_0x4986a3,_0x1f9888);},'sKdKJ':_0x1f4a6c(0x30b),'JfisN':function(_0x137a53,_0x30a914){return _0x137a53===_0x30a914;},'XRccW':_0x1f4a6c(0x307),'VwCGs':function(_0x5eef8a,_0x1c5797){return _0x5eef8a===_0x1c5797;},'sTjEX':_0x1f4a6c(0x25e),'IoocP':'0|2|3|4|1','ZjhFe':function(_0x595fc0,_0x25ec4b){return _0x595fc0===_0x25ec4b;},'GLbhT':function(_0x4dd912,_0x185c04){return _0x4dd912===_0x185c04;},'wWGEa':_0x1f4a6c(0x1f6),'kNGeC':_0x1f4a6c(0x232),'gnIZM':_0x1f4a6c(0x35a),'jWLki':_0x1f4a6c(0x224),'IGTHf':function(_0x3ce336,_0x18158f){return _0x3ce336===_0x18158f;},'cHpvl':function(_0x3ba271,_0x1fa0e4){return _0x3ba271===_0x1fa0e4;},'WAuYR':_0x1f4a6c(0x2bf),'DCZln':'lSopR','VItMq':_0x1f4a6c(0x259),'KzTvH':function(_0x34a072,_0x3f8b14){return _0x34a072!==_0x3f8b14;},'qNFHy':_0x1f4a6c(0x1cf),'QXwiS':'ovjkR','pLbzF':function(_0x3fde7b,_0x5d7258,_0x114a29,_0x2b49b7,_0x266bcf,_0x1d2e31,_0x1c3ed,_0x4b4032,_0x4953a8,_0x5b99e1,_0x31d7bb,_0x5f29f0){return _0x3fde7b(_0x5d7258,_0x114a29,_0x2b49b7,_0x266bcf,_0x1d2e31,_0x1c3ed,_0x4b4032,_0x4953a8,_0x5b99e1,_0x31d7bb,_0x5f29f0);},'TUOgq':function(_0x1bce80,_0x38b56d){return _0x1bce80!==_0x38b56d;},'OvZzn':_0x1f4a6c(0x2ba),'ZmoVH':function(_0x21151f,_0x3a2da9){return _0x21151f===_0x3a2da9;},'RfGGG':function(_0x28e2d3,_0x54a1a1){return _0x28e2d3===_0x54a1a1;},'PTwqx':_0x1f4a6c(0x1c5),'lYkgS':function(_0x19dfff,_0x569aba){return _0x19dfff!==_0x569aba;},'ukrns':_0x1f4a6c(0x1da),'orLTM':'qXVOK','HSwBl':function(_0x364bbb,_0x39ff54,_0x57ea6c,_0x3beab5,_0x322807,_0x58ae0c,_0x4e8f2e,_0x4856bf,_0x4bff74,_0x166c52,_0x5d7fae,_0x185600){return _0x364bbb(_0x39ff54,_0x57ea6c,_0x3beab5,_0x322807,_0x58ae0c,_0x4e8f2e,_0x4856bf,_0x4bff74,_0x166c52,_0x5d7fae,_0x185600);},'hYayB':function(_0x1dc271,_0x3989f4){return _0x1dc271!==_0x3989f4;},'Yajkn':_0x1f4a6c(0x244),'ueRQZ':function(_0x382d39,_0x4d11d7){return _0x382d39(_0x4d11d7);},'EGASl':function(_0x4cd2cb,_0x2b76e4){return _0x4cd2cb!==_0x2b76e4;},'nNQVE':_0x1f4a6c(0x27a),'yXrUa':_0x1f4a6c(0x2fc),'yMgqu':function(_0x597931,_0x998b29,_0x250ec8,_0xebfb46,_0x2fdfa5,_0x4957a3,_0x4adf17){return _0x597931(_0x998b29,_0x250ec8,_0xebfb46,_0x2fdfa5,_0x4957a3,_0x4adf17);},'RKuKw':function(_0x30e1b2,_0x50a237){return _0x30e1b2!==_0x50a237;},'RkDug':_0x1f4a6c(0x2dd),'GgQcv':function(_0x12f389,_0x2ab375){return _0x12f389===_0x2ab375;},'JBtbx':'Pvzov','eNVKi':function(_0x12fb39,_0x24afd5){return _0x12fb39===_0x24afd5;},'VikXX':_0x1f4a6c(0x338),'pKLwX':_0x1f4a6c(0x243),'cmsHK':function(_0x43e857,_0x3bef23){return _0x43e857!=_0x3bef23;},'mfmbo':function(_0x3fc101,_0x36fb5e){return _0x3fc101!==_0x36fb5e;},'Jnrxo':function(_0x170143,_0x1acf13){return _0x170143>_0x1acf13;},'WPIXX':_0x1f4a6c(0x355),'bSsTS':function(_0x5134f4,_0x46616a,_0x40d1cd,_0x4644f1,_0x36483c,_0x391c7f,_0xd4f827,_0x34ceba){return _0x5134f4(_0x46616a,_0x40d1cd,_0x4644f1,_0x36483c,_0x391c7f,_0xd4f827,_0x34ceba);},'bVphu':'pre-spawned-subnets-not-selected','HHsqo':function(_0x4895a5,_0x54e846){return _0x4895a5===_0x54e846;},'TyGMR':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NCYFG':function(_0x335442,_0x47332f,_0xa7fe8a,_0x3b3556,_0x1fd8d8,_0x341a6b,_0x51b3bb,_0xbedb3d){return _0x335442(_0x47332f,_0xa7fe8a,_0x3b3556,_0x1fd8d8,_0x341a6b,_0x51b3bb,_0xbedb3d);},'kXIGb':'pre-spawned-invalid-vpc','yTXbA':function(_0x1fe675,_0x55995b){return _0x1fe675===_0x55995b;},'OQlmU':'pre-spawned-invalid-subnets','UHFxc':_0x1f4a6c(0x2bb),'SkSqX':_0x1f4a6c(0x1e8),'IjeFC':_0x1f4a6c(0x231),'cIcbv':function(_0x993707,_0x215684,_0x3cb696){return _0x993707(_0x215684,_0x3cb696);},'FoVtZ':function(_0x659908,_0x401555){return _0x659908===_0x401555;},'YkPVy':function(_0x41d73b,_0x449857){return _0x41d73b===_0x449857;},'TJXrM':'Creating\x20Hub\x20HA\x20resources','YuliO':_0x1f4a6c(0x2b3),'MljfB':_0x1f4a6c(0x2a7),'Dprfp':_0x1f4a6c(0x24a),'HTBQB':_0x1f4a6c(0x2fd),'MVAAA':'browserstack-secret.yaml','fmfsF':_0x1f4a6c(0x275),'YkZNa':function(_0x263c23,_0x139688){return _0x263c23(_0x139688);},'eGBaS':function(_0x58b34e,_0x283dea){return _0x58b34e(_0x283dea);},'eBSCL':function(_0x1c0690,_0x3a8505){return _0x1c0690(_0x3a8505);},'uykrZ':function(_0x27728d,_0x5af613,_0x3f2500){return _0x27728d(_0x5af613,_0x3f2500);},'oSPmZ':_0x1f4a6c(0x213),'Ymiho':_0x1f4a6c(0x30d),'gqDVJ':function(_0x36995b,_0x26c4c2){return _0x36995b===_0x26c4c2;},'VwPQz':_0x1f4a6c(0x23a),'ltXWp':_0x1f4a6c(0x208),'RfPYQ':_0x1f4a6c(0x1d0),'bnLBy':_0x1f4a6c(0x27e),'NinKl':_0x1f4a6c(0x30e),'dfFth':_0x1f4a6c(0x2ef),'ycrAF':'Adding\x20Turboscale\x20Uploader\x20deployment...','KaTwg':_0x1f4a6c(0x2e6),'MLwCV':function(_0x34606d,_0x23f374){return _0x34606d===_0x23f374;},'qbZmf':function(_0x2832f2,_0x3f716f,_0x3c5c9f){return _0x2832f2(_0x3f716f,_0x3c5c9f);},'ybVUp':_0x1f4a6c(0x1d8),'PkTWg':'Created\x20Hub\x20HA\x20resources','kAqrK':_0x1f4a6c(0x286),'DYcal':_0x1f4a6c(0x23d),'PWaxr':_0x1f4a6c(0x1c0),'Vkrlv':'Creating\x20namespace','QtyEU':_0x1f4a6c(0x1f9),'HuotO':_0x1f4a6c(0x20a),'Mbmej':_0x1f4a6c(0x285),'KAdum':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','cFdIN':_0x1f4a6c(0x1c2),'sxaaL':function(_0x9ac217,_0x38de89){return _0x9ac217===_0x38de89;},'JDIiA':function(_0x3658f2,_0x1d2123,_0x149562,_0x118ce0,_0x130684,_0x3cf017,_0x12b3f5,_0x4426a4,_0x18321c,_0x230d38,_0x4e98d2){return _0x3658f2(_0x1d2123,_0x149562,_0x118ce0,_0x130684,_0x3cf017,_0x12b3f5,_0x4426a4,_0x18321c,_0x230d38,_0x4e98d2);},'ErWwb':_0x1f4a6c(0x271),'nReUe':_0x1f4a6c(0x20c),'Ncwpm':function(_0x19677b,_0x2a5cab,_0x476e04,_0x31dc40,_0x435616){return _0x19677b(_0x2a5cab,_0x476e04,_0x31dc40,_0x435616);},'iCiBC':_0x1f4a6c(0x30f),'qxOuV':_0x1f4a6c(0x1e5),'KlUbt':_0x1f4a6c(0x23f),'lMXQY':function(_0x28314b,_0x3eeecf){return _0x28314b===_0x3eeecf;},'MLAIU':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','GvTAK':_0x1f4a6c(0x311),'qjdxJ':function(_0x8466e1,_0x2895bc){return _0x8466e1===_0x2895bc;},'dmABs':_0x1f4a6c(0x23b),'eERNR':'get-grid-url-auth-failed','yjWCL':_0x1f4a6c(0x32b),'sdUsH':function(_0x2341b1,_0x2afd2d){return _0x2341b1===_0x2afd2d;},'URBVi':_0x1f4a6c(0x344),'fPYiu':function(_0x5f157a,_0x59bc8a,_0x3bb07a,_0x1012c1,_0x5e6eb6,_0x5bd41f){return _0x5f157a(_0x59bc8a,_0x3bb07a,_0x1012c1,_0x5e6eb6,_0x5bd41f);},'PyTyP':'grid-spawning-failed'};let _0x1b1b9e=![],_0x3bd460=![],_0xac5b2f,_0x264520,_0x210620,_0xdad357,_0x55eedc,_0x5005e8,_0x17031e,_0x30ac09,_0x195759,_0x445fa5,_0x25e5cf,_0xe633f5,_0x424041,_0xe39499,_0x4127c4=0x1,_0x3101ac=0xe;try{global_registry['requestId']=_0x4174a9[_0x1f4a6c(0x2b2)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x1f4a6c(0x313)](_0x4174a9['FfDNt'](getCredentialsPath))&&(_0x4174a9[_0x1f4a6c(0x2e7)](_0x4174a9[_0x1f4a6c(0x1ec)],_0x4174a9[_0x1f4a6c(0x1ec)])?(console[_0x1f4a6c(0x2a9)](_0x4174a9['yFiwu']),await _0x4174a9['bgAQz'](sendInstrumentationEvent,_0x2b4991,_0x4174a9[_0x1f4a6c(0x32a)],messageTypes['ERROR'],_0x4174a9['WnyQs'],null,_0x2b4991),process[_0x1f4a6c(0x227)](0x1)):_0x9df06f[_0x1f4a6c(0x335)]('Found\x20Subnets:\x20'+_0x362580[_0x1f4a6c(0x2dc)](_0x53cfe1)+'\x20'));await _0x4174a9[_0x1f4a6c(0x33c)](sendInstrumentationEvent,_0x2b4991,_0x4174a9[_0x1f4a6c(0x32a)],messageTypes[_0x1f4a6c(0x2d9)],null,null,_0x2b4991);const _0x2d1a99=JSON[_0x1f4a6c(0x270)](fs[_0x1f4a6c(0x24f)](_0x4174a9[_0x1f4a6c(0x20d)](getCredentialsPath)));global_registry['bstackUsername']=_0x2d1a99[_0x1f4a6c(0x1f9)][_0x1f4a6c(0x2a8)],global_registry[_0x1f4a6c(0x1bf)]=_0x2d1a99[_0x1f4a6c(0x1f9)][_0x1f4a6c(0x2ad)];const _0x47fd26=WS_ENDPOINT['replace'](_0x4174a9['RTvNt'],_0x2d1a99[_0x1f4a6c(0x1f9)][_0x1f4a6c(0x2a8)])[_0x1f4a6c(0x283)](_0x4174a9[_0x1f4a6c(0x2c7)],_0x2d1a99['Browserstack'][_0x1f4a6c(0x2ad)]),_0x3deab6={};_0x3deab6[_0x1f4a6c(0x2be)]=ws,_0x3deab6[_0x1f4a6c(0x1d1)]=0x36ee80,_0xe633f5=new ReconnectingWebSocket(_0x47fd26,[],_0x3deab6),logger[_0x1f4a6c(0x277)](_0x4174a9[_0x1f4a6c(0x1d2)]),webSocketUtils[_0x1f4a6c(0x27d)](_0xe633f5,_0x2b4991['user'],_0x2b4991[_0x1f4a6c(0x2ad)]);const _0x1f5f02=_0x2b4991[_0x1f4a6c(0x330)]||DEFAULT_GRID_NAME;if(_0x2b4991[_0x1f4a6c(0x215)]||_0x2b4991[_0x1f4a6c(0x28f)]||_0x2b4991[_0x1f4a6c(0x211)]){if(_0x4174a9[_0x1f4a6c(0x31b)](_0x4174a9[_0x1f4a6c(0x2f7)],_0x4174a9[_0x1f4a6c(0x225)])){const _0x304ade=_0x4174a9[_0x1f4a6c(0x2c9)][_0x1f4a6c(0x274)]('|');let _0x44b322=0x0;while(!![]){switch(_0x304ade[_0x44b322++]){case'0':_0x16ef66[_0x1f4a6c(0x234)]=_0x4174a9['MBZZi'];continue;case'1':_0x2d4ee0[_0x1f4a6c(0x22f)]=!![];continue;case'2':_0xa60a01['redisPassword']=_0x4174a9['ioBeH'];continue;case'3':_0x7c856f[_0x1f4a6c(0x296)]=_0x4174a9[_0x1f4a6c(0x21a)];continue;case'4':_0x53b7ac[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x2a0)]);continue;}break;}}else{!(_0x2b4991[_0x1f4a6c(0x215)]&&_0x2b4991[_0x1f4a6c(0x28f)]&&_0x2b4991[_0x1f4a6c(0x211)])&&(_0x4174a9['AOdTK'](_0x4174a9['TyKvW'],_0x4174a9[_0x1f4a6c(0x314)])?_0x533524['info'](_0x1f4a6c(0x30a)+_0x319f5c+'\x20'):(_0xac5b2f=_0x4174a9['HPAal'],await _0x4174a9['zXEBG'](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes['ERROR'],_0x4174a9['dTeJS'],_0x4174a9[_0x1f4a6c(0x2cc)],_0x4174a9[_0x1f4a6c(0x2c0)]),logger['error'](_0xac5b2f),process[_0x1f4a6c(0x227)](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x2b4991['cloudProvider']['toLowerCase']())){if(_0x4174a9[_0x1f4a6c(0x278)](_0x4174a9['TWSaa'],_0x4174a9[_0x1f4a6c(0x1fa)])){const _0x3b888a={};_0x3b888a[_0x1f4a6c(0x1e1)]=_0x125c8a[_0x1f4a6c(0x34c)],_0x3b888a[_0x1f4a6c(0x291)]=_0x520395,_0xb4c93[_0x1f4a6c(0x34b)](_0x3f0068,_0x3b888a,_0x4174a9[_0x1f4a6c(0x2c0)],!![]);}else _0xac5b2f=_0x4174a9[_0x1f4a6c(0x2cf)],await _0x4174a9[_0x1f4a6c(0x2ac)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes['ERROR'],_0x4174a9['dTeJS'],_0x4174a9[_0x1f4a6c(0x354)],_0x4174a9[_0x1f4a6c(0x2c0)]),logger[_0x1f4a6c(0x2a9)](_0xac5b2f),process[_0x1f4a6c(0x227)](0x1);}if(_0x2b4991[_0x1f4a6c(0x263)]&&_0x4174a9[_0x1f4a6c(0x2e7)](_0x2b4991[_0x1f4a6c(0x263)][_0x1f4a6c(0x2e0)](),_0x4174a9[_0x1f4a6c(0x2ce)])){if(_0x4174a9[_0x1f4a6c(0x210)](_0x4174a9['dXIdO'],_0x4174a9['dXIdO']))global_registry[_0x1f4a6c(0x319)]=!![];else{const _0x2ee76d={'azure.workload.identity/use':_0x4174a9[_0x1f4a6c(0x2ce)],..._0x338316[0x0][_0x1f4a6c(0x2bc)][_0x1f4a6c(0x1bc)][_0x1f4a6c(0x309)][_0x1f4a6c(0x1dc)]};_0x11ce89[0x0]['spec'][_0x1f4a6c(0x1bc)][_0x1f4a6c(0x309)][_0x1f4a6c(0x1dc)]=_0x2ee76d,_0x216937[0x0][_0x1f4a6c(0x2bc)][_0x1f4a6c(0x1bc)][_0x1f4a6c(0x2bc)][_0x1f4a6c(0x249)]=_0x4174a9[_0x1f4a6c(0x1e0)];}}global_registry[_0x1f4a6c(0x28f)]=_0x2b4991[_0x1f4a6c(0x28f)],global_registry[_0x1f4a6c(0x331)]=_0x2b4991['region'],global_registry['clusterName']=_0x2b4991['clusterName'];const _0x2222cf=await _0x4174a9[_0x1f4a6c(0x33c)](getCloudProviderObject,_0x2b4991[_0x1f4a6c(0x28f)],_0x2b4991['clusterName'],_0x1f5f02,_0xe633f5,webSocketUtils,_0x2b4991),_0x1d6e58=await _0x2222cf[_0x1f4a6c(0x2e1)]();!_0x1d6e58?_0x4174a9['sUPAq'](_0x4174a9[_0x1f4a6c(0x24e)],_0x4174a9[_0x1f4a6c(0x1ba)])?_0x4d22d2['isPrivateGrid']=!![]:(logger['info'](_0x1f4a6c(0x2ed)+_0x2b4991[_0x1f4a6c(0x215)]+_0x1f4a6c(0x267)),_0x1b1b9e=![],_0x3bd460=!![]):_0x4174a9[_0x1f4a6c(0x2b8)](_0x4174a9[_0x1f4a6c(0x288)],_0x4174a9[_0x1f4a6c(0x288)])?_0x1b1b9e=!![]:_0x4174a9[_0x1f4a6c(0x25d)](_0x22d1a1,_0x27da69[_0x1f4a6c(0x2d2)]),_0x210620=_0x2b4991['clusterName'],_0x264520=_0x2b4991['cloudProvider'][_0x1f4a6c(0x2e0)](),_0xdad357=_0x2b4991[_0x1f4a6c(0x211)];}}else _0x2b4991['gridProfile']&&(_0x4174a9[_0x1f4a6c(0x31b)](_0x4174a9[_0x1f4a6c(0x2d0)],_0x4174a9['wTEBM'])?global_registry[_0x1f4a6c(0x356)]=_0x2b4991[_0x1f4a6c(0x356)]:_0x29f31c[_0x1f4a6c(0x356)]=_0x4863f1[_0x1f4a6c(0x356)]);global_registry[_0x1f4a6c(0x330)]=_0x2b4991[_0x1f4a6c(0x330)];const _0x18ba20={'method':_0x4174a9[_0x1f4a6c(0x341)],'headers':_0x4174a9[_0x1f4a6c(0x245)](getAuthHeader,_0x2d1a99[_0x1f4a6c(0x1f9)][_0x1f4a6c(0x2a8)],_0x2d1a99[_0x1f4a6c(0x1f9)][_0x1f4a6c(0x2ad)]),'throwHttpErrors':![]},_0x25e2d6={};_0x25e2d6[_0x1f4a6c(0x330)]=_0x1f5f02;const _0x1313c1=_0x25e2d6;_0x3bd460&&(_0x4174a9['AOdTK'](_0x4174a9['xykcD'],_0x4174a9['xykcD'])?(_0x23aa98=_0xcfd454[_0x1f4a6c(0x235)],_0x332e9f=_0x4174a9[_0x1f4a6c(0x2b7)]):(_0x1313c1['region']=_0xdad357,_0x1313c1[_0x1f4a6c(0x28f)]=_0x264520,_0x1313c1['newCluster']=!![]));const _0x340dab=_0x1f4a6c(0x2e3)+AG_API_URL+_0x1f4a6c(0x255),_0x138101={'searchParams':_0x1313c1,'throwHttpErrors':![],..._0x18ba20},_0x3a991a=_0x138101,_0xbd5ff5=await _0x4174a9[_0x1f4a6c(0x304)](got,_0x340dab,_0x3a991a);(_0x4174a9[_0x1f4a6c(0x2e7)](_0xbd5ff5,null)||_0x4174a9[_0x1f4a6c(0x2e7)](_0xbd5ff5,undefined))&&(_0x4174a9[_0x1f4a6c(0x205)](_0x4174a9['kneET'],_0x4174a9[_0x1f4a6c(0x240)])?(_0xac5b2f=_0x4174a9[_0x1f4a6c(0x1eb)],await _0x4174a9[_0x1f4a6c(0x2ac)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9[_0x1f4a6c(0x273)],_0x4174a9[_0x1f4a6c(0x2c0)]),logger[_0x1f4a6c(0x2a9)](_0xac5b2f),process[_0x1f4a6c(0x227)](0x1)):_0x2c33be=!![]);_0x4174a9[_0x1f4a6c(0x327)](_0xbd5ff5[_0x1f4a6c(0x1ed)],0x191)&&(_0x4174a9[_0x1f4a6c(0x278)](_0x4174a9[_0x1f4a6c(0x2b6)],_0x4174a9['PaJXw'])?(_0xac5b2f=_0x4174a9[_0x1f4a6c(0x2a2)],await _0x4174a9[_0x1f4a6c(0x2ac)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9['UxjWu'],_0x4174a9['qCqLP']),logger[_0x1f4a6c(0x2a9)](_0xac5b2f),process[_0x1f4a6c(0x227)](0x1)):_0x171f92=null);_0x4174a9[_0x1f4a6c(0x239)](_0xbd5ff5[_0x1f4a6c(0x1ed)],0xc8)&&(_0x4174a9[_0x1f4a6c(0x209)](_0x4174a9[_0x1f4a6c(0x292)],_0x4174a9[_0x1f4a6c(0x292)])?(_0xac5b2f=_0x1f4a6c(0x223)+JSON['stringify'](_0xbd5ff5[_0x1f4a6c(0x347)]),await _0x4174a9[_0x1f4a6c(0x26f)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9['BtQRR'],_0x4174a9[_0x1f4a6c(0x2c0)]),logger[_0x1f4a6c(0x2a9)](_0xac5b2f),process['exit'](0x1)):_0x1d63d8=_0x5a03a7[_0x1bc6a6['gridProfile']]);const _0x358673=JSON[_0x1f4a6c(0x270)](_0xbd5ff5[_0x1f4a6c(0x347)]),_0x20dad2={};_0x20dad2[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x258)],_0x20dad2[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x230)],webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x20dad2);const _0xbb6b6d={};_0xbb6b6d[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0xbb6b6d[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x253)],webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0xbb6b6d);_0x358673[_0x1f4a6c(0x339)]&&(_0x4174a9[_0x1f4a6c(0x278)](_0x4174a9[_0x1f4a6c(0x2db)],_0x4174a9[_0x1f4a6c(0x32d)])?(_0xac5b2f='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x1f5f02+_0x1f4a6c(0x2f3),await _0x4174a9[_0x1f4a6c(0x228)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9[_0x1f4a6c(0x26c)],_0x4174a9[_0x1f4a6c(0x2c0)]),logger['error'](_0xac5b2f),process['exit'](0x1)):_0xd975b8['isPrivateGrid']=!![]);const _0x22da6d=_0x358673[_0x1f4a6c(0x1ee)];let _0x55cef0=_0x22da6d[_0x358673[_0x1f4a6c(0x298)]];_0x2b4991['gridProfile']&&(_0x4174a9[_0x1f4a6c(0x25c)](_0x4174a9[_0x1f4a6c(0x2c3)],_0x4174a9[_0x1f4a6c(0x2c3)])?_0x55cef0=_0x22da6d[_0x2b4991[_0x1f4a6c(0x356)]]:_0x20f238[_0x1f4a6c(0x1c1)]());global_registry['enableHubHa']=![];if(_0x2b4991[_0x1f4a6c(0x2ea)]){if(_0x4174a9[_0x1f4a6c(0x27c)](_0x4174a9[_0x1f4a6c(0x262)],_0x4174a9[_0x1f4a6c(0x262)])){const _0x419e2c=_0x4174a9[_0x1f4a6c(0x2e4)][_0x1f4a6c(0x274)]('|');let _0x513a29=0x0;while(!![]){switch(_0x419e2c[_0x513a29++]){case'0':logger[_0x1f4a6c(0x335)](_0x4174a9['gdZDm']);continue;case'1':global_registry['enableHubHa']=!![];continue;case'2':global_registry['hubHaNameSpace']=_0x4174a9[_0x1f4a6c(0x1bd)];continue;case'3':global_registry[_0x1f4a6c(0x1fd)]=_0x4174a9[_0x1f4a6c(0x2fa)];continue;case'4':global_registry['kafkaPassword']=_0x4174a9[_0x1f4a6c(0x21a)];continue;}break;}}else throw new _0x5d0e02('Cluster\x20'+_0x2a079a+_0x1f4a6c(0x1f0));}if(_0x4174a9[_0x1f4a6c(0x322)](_0x1b1b9e,![])&&_0x4174a9[_0x1f4a6c(0x33b)](_0x3bd460,![])){if(_0x4174a9[_0x1f4a6c(0x239)](_0x4174a9[_0x1f4a6c(0x22c)],_0x4174a9[_0x1f4a6c(0x22c)])){const _0x3ba4d7=_0x4174a9[_0x1f4a6c(0x1bb)][_0x1f4a6c(0x274)]('|');let _0x5c61e6=0x0;while(!![]){switch(_0x3ba4d7[_0x5c61e6++]){case'0':_0x32d35c[_0x1f4a6c(0x331)]=_0x5ca553;continue;case'1':_0xc7cd8e['clusterName']=_0x4b7238;continue;case'2':_0x2848be[_0x1f4a6c(0x297)]=_0x51f1a6['browserVersion'];continue;case'3':const _0x1ea997={};_0x1ea997[_0x1f4a6c(0x1e1)]=_0x546a22['CLI_RUN_STARTED'],_0x1ea997[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x230)],_0x1e59e1[_0x1f4a6c(0x34b)](_0x493dd6,_0x1ea997);continue;case'4':_0x6c3f97=_0x1f4a6c(0x248)+_0x33a0f6+_0x1f4a6c(0x26b)+_0x332881+'\x27';continue;case'5':_0x59c514[_0x1f4a6c(0x28f)]=_0xfa377c;continue;case'6':const _0x2a493d={};_0x2a493d[_0x1f4a6c(0x1e1)]=_0x1857c6['LOG'],_0x2a493d[_0x1f4a6c(0x291)]=_0x25b30d,_0x318e03[_0x1f4a6c(0x34b)](_0x4f5dc0,_0x2a493d);continue;case'7':_0x15130e[_0x1f4a6c(0x2ae)]=_0x333941[_0x1f4a6c(0x2ae)];continue;case'8':_0x16d894[_0x1f4a6c(0x335)](_0x14e989);continue;}break;}}else{_0x4174a9[_0x1f4a6c(0x327)](_0x55cef0,undefined)&&(_0x4174a9[_0x1f4a6c(0x210)](_0x4174a9[_0x1f4a6c(0x31c)],_0x4174a9['kNGeC'])?(_0xac5b2f=_0x4174a9['gnIZM'],await _0x4174a9[_0x1f4a6c(0x26f)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9[_0x1f4a6c(0x352)],_0x4174a9[_0x1f4a6c(0x2c0)]),logger['error'](_0xac5b2f),process[_0x1f4a6c(0x227)](0x1)):_0x3b0045=_0x4174a9[_0x1f4a6c(0x290)]);global_registry[_0x1f4a6c(0x24c)]=_0x55cef0['id'],_0xac5b2f=_0x1f4a6c(0x2a3)+_0x1f5f02+_0x1f4a6c(0x2a5)+_0x55cef0[_0x1f4a6c(0x1e7)]+_0x1f4a6c(0x1e4),logger[_0x1f4a6c(0x335)](_0xac5b2f);const _0x18768f={};_0x18768f['type']=WS_EVENTS[_0x1f4a6c(0x34c)],_0x18768f[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x18768f),_0x264520=_0x55cef0[_0x1f4a6c(0x28f)],_0x210620=_0x55cef0[_0x1f4a6c(0x215)],_0xdad357=_0x55cef0[_0x1f4a6c(0x211)],_0x55eedc=_0x55cef0['concurrency'],_0x5005e8=_0x55cef0['instanceType'],_0x17031e=_0x55cef0[_0x1f4a6c(0x359)],_0x30ac09=_0x55cef0[_0x1f4a6c(0x1e9)],_0x195759=_0x55cef0[_0x1f4a6c(0x2e2)],_0x445fa5=_0x55cef0[_0x1f4a6c(0x229)],_0x4127c4=_0x55cef0[_0x1f4a6c(0x329)],_0x3101ac=_0x55cef0[_0x1f4a6c(0x28a)],_0x424041=_0x358673['hubVersion'],_0xe39499=_0x358673[_0x1f4a6c(0x297)];_0x17031e&&_0x4174a9['IGTHf'](_0x17031e[_0x1f4a6c(0x236)],0x0)&&(_0x4174a9[_0x1f4a6c(0x2ee)](_0x4174a9[_0x1f4a6c(0x2a6)],_0x4174a9['DCZln'])?(_0x59afcb[_0x1f4a6c(0x335)](_0x1f4a6c(0x2ed)+_0x18418f['clusterName']+_0x1f4a6c(0x267)),_0x59d07f=![],_0x21b31c=!![]):_0x17031e=null);if(_0x195759&&_0x4174a9[_0x1f4a6c(0x2e7)](_0x195759['length'],0x0)){if(_0x4174a9['AdqCp'](_0x4174a9[_0x1f4a6c(0x204)],_0x4174a9[_0x1f4a6c(0x204)]))_0x195759=null;else{const _0x300fa8={};_0x300fa8[_0x1f4a6c(0x1e1)]=_0xba26f7['LOG'],_0x300fa8[_0x1f4a6c(0x291)]='Cluster\x20'+_0x4f331a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x5cb673[_0x1f4a6c(0x34b)](_0x590acf,_0x300fa8,_0x4174a9[_0x1f4a6c(0x2ff)]),_0xab7d9['info'](_0x1f4a6c(0x266)+_0x4cd411+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x58b714=!![];if(_0x4174a9[_0x1f4a6c(0x2e7)](_0x25dc29,!![]))throw new _0x3a92a2(_0x1f4a6c(0x266)+_0x1a08db+_0x1f4a6c(0x1f0));}}_0x4174a9['KzTvH'](_0x55cef0[_0x1f4a6c(0x263)],undefined)&&_0x55cef0[_0x1f4a6c(0x263)]&&(_0x4174a9['PGFuE'](_0x4174a9['qNFHy'],_0x4174a9[_0x1f4a6c(0x2cb)])?global_registry['isPrivateGrid']=!![]:_0x272ae6=_0x4174a9[_0x1f4a6c(0x33d)]),_0x4174a9[_0x1f4a6c(0x351)](updateGlobalRegistryWithConfig,_0x264520,_0x210620,_0xdad357,_0x55eedc,_0x5005e8,_0x445fa5,_0x55cef0,_0x424041,_0xe39499,_0x4127c4,_0x3101ac),global_registry['enableHubHa']&&(_0x4174a9[_0x1f4a6c(0x342)](_0x4174a9[_0x1f4a6c(0x22d)],_0x4174a9[_0x1f4a6c(0x22d)])?_0x4174a9[_0x1f4a6c(0x2bd)](_0x5989a2,_0xdce671[_0x1f4a6c(0x32e)]):_0x4174a9['Jwifk'](updateGlobalRegistryForHubHa,_0x358673[_0x1f4a6c(0x32e)]));}}else{if(_0x4174a9[_0x1f4a6c(0x2f1)](_0x3bd460,!![])){if(_0x4174a9[_0x1f4a6c(0x2df)](_0x4174a9[_0x1f4a6c(0x2da)],_0x4174a9[_0x1f4a6c(0x2da)])){_0xac5b2f='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x1f5f02,logger[_0x1f4a6c(0x335)](_0xac5b2f);const _0x35f336={};_0x35f336[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x35f336[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils['sendEventToBackend'](_0xe633f5,_0x35f336),_0x55eedc=_0x55cef0['concurrency'],_0x5005e8=_0x55cef0['instanceType'],_0x17031e=null,_0x30ac09=null,_0x195759=null,_0x445fa5=_0x55cef0[_0x1f4a6c(0x229)],_0x4127c4=_0x55cef0['minNodes'],_0x3101ac=_0x55cef0[_0x1f4a6c(0x28a)],_0x424041=_0x358673[_0x1f4a6c(0x2ae)],_0xe39499=_0x358673[_0x1f4a6c(0x297)],_0x4174a9['lYkgS'](_0x55cef0[_0x1f4a6c(0x263)],undefined)&&_0x55cef0[_0x1f4a6c(0x263)]&&(_0x4174a9['lYkgS'](_0x4174a9[_0x1f4a6c(0x1ca)],_0x4174a9[_0x1f4a6c(0x21d)])?global_registry[_0x1f4a6c(0x319)]=!![]:_0x1bfee8[_0x1f4a6c(0x2a9)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x36c757+'\x20\x0a'+_0x2f4674[_0x1f4a6c(0x2dc)](_0x413c87[_0x1f4a6c(0x1d9)]))),_0x4174a9['HSwBl'](updateGlobalRegistryWithConfig,_0x264520,_0x210620,_0xdad357,_0x55eedc,_0x5005e8,_0x445fa5,_0x55cef0,_0x424041,_0xe39499,_0x4127c4,_0x3101ac),global_registry['enableHubHa']&&(_0x4174a9[_0x1f4a6c(0x294)](_0x4174a9['Yajkn'],_0x4174a9[_0x1f4a6c(0x2b1)])?(_0x47bf04[_0x1f4a6c(0x211)]=_0x538ec1,_0x51f3d7[_0x1f4a6c(0x28f)]=_0x5f177b,_0x415d9a['newCluster']=!![]):_0x4174a9[_0x1f4a6c(0x247)](updateGlobalRegistryForHubHa,_0x358673[_0x1f4a6c(0x2d2)]));}else{const _0x15878e={};_0x15878e[_0x1f4a6c(0x33f)]=_0x4174a9[_0x1f4a6c(0x35d)],_0x15878e[_0x1f4a6c(0x1e1)]=_0x4174a9[_0x1f4a6c(0x2f9)];const _0x2bef62={};_0x2bef62[_0x1f4a6c(0x33f)]=_0x4174a9[_0x1f4a6c(0x301)],_0x2bef62[_0x1f4a6c(0x1e1)]=_0x4174a9[_0x1f4a6c(0x2f9)];const _0x315ff0={};_0x315ff0[_0x1f4a6c(0x33f)]=_0x4174a9[_0x1f4a6c(0x250)],_0x315ff0['type']=_0x4174a9[_0x1f4a6c(0x2f9)];const _0x372f9d={};_0x372f9d[_0x1f4a6c(0x33f)]=_0x4174a9[_0x1f4a6c(0x293)],_0x372f9d[_0x1f4a6c(0x1e1)]=_0x4174a9[_0x1f4a6c(0x2f9)];const _0x3826a6={};_0x3826a6['description']=_0x4174a9['FmURB'],_0x3826a6['type']=_0x4174a9['jzCmu'];const _0x2ed6ee={};_0x2ed6ee[_0x1f4a6c(0x33f)]=_0x4174a9['UAWwS'],_0x2ed6ee[_0x1f4a6c(0x1e1)]=_0x4174a9[_0x1f4a6c(0x2f9)];const _0x3f51b4={};_0x3f51b4[_0x1f4a6c(0x33f)]=_0x4174a9[_0x1f4a6c(0x1e3)],_0x3f51b4['type']=_0x4174a9[_0x1f4a6c(0x325)],_0x3f51b4[_0x1f4a6c(0x357)]=![];const _0x7800a0={};_0x7800a0['description']=_0x4174a9['ADNcY'],_0x7800a0[_0x1f4a6c(0x1e1)]=_0x4174a9[_0x1f4a6c(0x325)],_0x7800a0[_0x1f4a6c(0x357)]=![];const _0x348bb7={};return _0x348bb7[_0x1f4a6c(0x346)]=_0x15878e,_0x348bb7[_0x1f4a6c(0x30c)]=_0x2bef62,_0x348bb7[_0x1f4a6c(0x34e)]=_0x315ff0,_0x348bb7[_0x1f4a6c(0x321)]=_0x372f9d,_0x348bb7['region']=_0x3826a6,_0x348bb7[_0x1f4a6c(0x306)]=_0x2ed6ee,_0x348bb7[_0x1f4a6c(0x32c)]=_0x3f51b4,_0x348bb7[_0x1f4a6c(0x264)]=_0x7800a0,_0x9bb979[_0x1f4a6c(0x1f1)](_0x1db3e6['create'])[_0x1f4a6c(0x305)](_0x1c9d96)['options'](_0x348bb7)['help'](_0x4174a9[_0x1f4a6c(0x21f)])[_0x1f4a6c(0x35b)];}}else{if(_0x4174a9[_0x1f4a6c(0x34a)](_0x4174a9['nNQVE'],_0x4174a9[_0x1f4a6c(0x206)]))_0x5c4611['isPrivateGrid']=!![];else{const _0x380848=_0x4174a9['yXrUa'][_0x1f4a6c(0x274)]('|');let _0x44f2d7=0x0;while(!![]){switch(_0x380848[_0x44f2d7++]){case'0':global_registry['cloudProvider']=_0x264520;continue;case'1':logger[_0x1f4a6c(0x335)](_0xac5b2f);continue;case'2':global_registry[_0x1f4a6c(0x297)]=_0x358673['browserVersion'];continue;case'3':const _0x4e28b5={};_0x4e28b5[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x4e28b5[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x4e28b5);continue;case'4':const _0x8c17c7={};_0x8c17c7[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x258)],_0x8c17c7[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x230)],webSocketUtils['sendEventToBackend'](_0xe633f5,_0x8c17c7);continue;case'5':global_registry[_0x1f4a6c(0x331)]=_0xdad357;continue;case'6':global_registry[_0x1f4a6c(0x215)]=_0x210620;continue;case'7':_0xac5b2f=_0x1f4a6c(0x248)+_0x1f5f02+_0x1f4a6c(0x26b)+_0x210620+'\x27';continue;case'8':global_registry[_0x1f4a6c(0x2ae)]=_0x358673[_0x1f4a6c(0x2ae)];continue;}break;}}}}const _0x5814ca=await _0x4174a9[_0x1f4a6c(0x328)](getCloudProviderObject,_0x264520,_0x210620,_0x1f5f02,_0xe633f5,webSocketUtils,_0x2b4991);_0x4174a9[_0x1f4a6c(0x1be)](_0x264520,AZURE)&&(_0x4174a9[_0x1f4a6c(0x1be)](_0x4174a9[_0x1f4a6c(0x1d7)],_0x4174a9[_0x1f4a6c(0x1d7)])?_0x52827c=_0x4174a9[_0x1f4a6c(0x2f8)]:_0x5814ca[_0x1f4a6c(0x1c1)]());let _0x38f3a3;if(_0x4174a9['AdqCp'](_0x1b1b9e,![])){_0xac5b2f=_0x1f4a6c(0x34f)+_0xdad357+').';const _0x4dc770={};_0x4dc770['type']=WS_EVENTS[_0x1f4a6c(0x34c)],_0x4dc770[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils['sendEventToBackend'](_0xe633f5,_0x4dc770),logger['info'](_0xac5b2f);const _0x2e0ef4=await _0x5814ca[_0x1f4a6c(0x2e1)]();if(_0x2e0ef4){if(_0x4174a9[_0x1f4a6c(0x25f)](_0x4174a9[_0x1f4a6c(0x22a)],_0x4174a9[_0x1f4a6c(0x22a)])){const _0x2f69b3={};_0x2f69b3[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x2f69b3['message']=_0x1f4a6c(0x266)+_0x210620+_0x1f4a6c(0x284),webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x2f69b3,_0x4174a9['tQRKJ']),logger[_0x1f4a6c(0x335)](_0x1f4a6c(0x266)+_0x210620+_0x1f4a6c(0x284)),_0x1b1b9e=!![];if(_0x4174a9['eNVKi'](_0x3bd460,!![])){if(_0x4174a9[_0x1f4a6c(0x294)](_0x4174a9[_0x1f4a6c(0x2c2)],_0x4174a9[_0x1f4a6c(0x2c2)])){const _0x3770c3=_0x4174a9[_0x1f4a6c(0x29d)][_0x1f4a6c(0x274)]('|');let _0x4e8ed4=0x0;while(!![]){switch(_0x3770c3[_0x4e8ed4++]){case'0':_0x2e0d7f=_0x59718f[_0x1f4a6c(0x297)];continue;case'1':_0x1fc0b9=null;continue;case'2':_0x2a8bfb=_0x2da474['hubVersion'];continue;case'3':_0x483637=_0x1f4a6c(0x260)+_0x2d9ad0;continue;case'4':_0x4174a9[_0x1f4a6c(0x205)](_0x32cdce[_0x1f4a6c(0x263)],_0x294b6c)&&_0x9074d[_0x1f4a6c(0x263)]&&(_0x40cbbc[_0x1f4a6c(0x319)]=!![]);continue;case'5':_0x27ee50=_0xffe147[_0x1f4a6c(0x315)];continue;case'6':_0x1121ed=_0x3a84fc[_0x1f4a6c(0x329)];continue;case'7':_0x4174a9[_0x1f4a6c(0x2d4)](_0x5d8a4b,_0x46eb2f,_0x1b2d05,_0x3767ab,_0x436283,_0x238c20,_0x592a83,_0x35aea2,_0x436578,_0x2e34ee,_0x513252,_0x4ef6be);continue;case'8':_0x138ac2[_0x1f4a6c(0x335)](_0x5b8227);continue;case'9':_0x472c3c=null;continue;case'10':_0xbfd511[_0x1f4a6c(0x22f)]&&_0x4174a9[_0x1f4a6c(0x25d)](_0x40fcec,_0x2d0b0a[_0x1f4a6c(0x2d2)]);continue;case'11':const _0x1fad8c={};_0x1fad8c['type']=_0x39a9fa['LOG'],_0x1fad8c['message']=_0x44872c,_0x54fe4d['sendEventToBackend'](_0x3a8bb6,_0x1fad8c);continue;case'12':_0x370488=_0x38e3c7['maxNodes'];continue;case'13':_0xefadc0=_0x5d7273[_0x1f4a6c(0x229)];continue;case'14':_0x274ae5=_0x2d6a66['instanceType'];continue;case'15':_0x4cde4b=null;continue;}break;}}else throw new Error(_0x1f4a6c(0x266)+_0x210620+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0xf9ac1f=null;}else{const _0x227969={};_0x227969['type']=WS_EVENTS[_0x1f4a6c(0x34c)],_0x227969[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x246)],webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x227969),logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x246)]);const _0x3f2a73=_0x4174a9[_0x1f4a6c(0x318)](_0x17031e,null)&&_0x4174a9[_0x1f4a6c(0x1f8)](_0x17031e,undefined),_0x243512=_0x4174a9[_0x1f4a6c(0x318)](_0x195759,null)&&_0x4174a9['AOdTK'](_0x195759,undefined)&&_0x4174a9[_0x1f4a6c(0x21e)](_0x195759['length'],0x0);if(_0x3f2a73){_0x4174a9[_0x1f4a6c(0x31b)](_0x243512,![])&&(_0xac5b2f=_0x4174a9[_0x1f4a6c(0x32f)],await _0x4174a9['bSsTS'](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes['ERROR'],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9['bVphu'],_0x4174a9[_0x1f4a6c(0x2c0)]),logger['error'](_0xac5b2f),process['exit'](0x1));const _0x495297=await _0x5814ca['isVPCPresent'](_0x17031e);_0x4174a9[_0x1f4a6c(0x281)](_0x495297,![])?(_0xac5b2f=_0x4174a9['TyGMR'],await _0x4174a9[_0x1f4a6c(0x242)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9['dTeJS'],_0x4174a9['kXIGb'],_0x4174a9['qCqLP']),logger['error'](_0xac5b2f),process[_0x1f4a6c(0x227)](0x1)):logger['info'](_0x1f4a6c(0x30a)+_0x17031e+'\x20');const _0x38501e=await _0x5814ca[_0x1f4a6c(0x2f4)](_0x195759,_0x17031e);_0x4174a9[_0x1f4a6c(0x31d)](_0x38501e[0x0],![])?(_0xac5b2f=_0x1f4a6c(0x1ff)+JSON['stringify'](_0x38501e[0x1])+_0x1f4a6c(0x1c3)+_0x17031e+_0x1f4a6c(0x295),await _0x4174a9[_0x1f4a6c(0x26f)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9[_0x1f4a6c(0x1f3)],_0x4174a9[_0x1f4a6c(0x2c0)]),logger[_0x1f4a6c(0x2a9)](_0xac5b2f),process[_0x1f4a6c(0x227)](0x1)):logger[_0x1f4a6c(0x335)](_0x1f4a6c(0x1c8)+JSON[_0x1f4a6c(0x2dc)](_0x195759)+'\x20'),[_0x17031e,_0x195759]=await _0x5814ca[_0x1f4a6c(0x1d3)](_0x17031e,_0x195759);}else{const _0x1bdd8e=_0x4174a9['UHFxc'][_0x1f4a6c(0x274)]('|');let _0x2c9606=0x0;while(!![]){switch(_0x1bdd8e[_0x2c9606++]){case'0':const _0x3cb9fe={};_0x3cb9fe[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x3cb9fe[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x2e5)],webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x3cb9fe);continue;case'1':[_0x17031e,_0x195759]=await _0x5814ca[_0x1f4a6c(0x1d3)](_0x17031e,_0x195759);continue;case'2':logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x28b)]);continue;case'3':logger[_0x1f4a6c(0x335)](_0x4174a9['SkSqX']);continue;case'4':const _0x52a7a0={};_0x52a7a0[_0x1f4a6c(0x1e1)]=WS_EVENTS['LOG'],_0x52a7a0[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x28b)],webSocketUtils['sendEventToBackend'](_0xe633f5,_0x52a7a0);continue;}break;}}}}_0x1b1b9e&&_0x4174a9['cHpvl'](_0x264520,AZURE)&&(await _0x5814ca[_0x1f4a6c(0x2a1)](),await _0x5814ca[_0x1f4a6c(0x2e8)]());const [_0x41f1be,_0x359f6a,_0x4fedd3,_0x4b619d,_0x39d6b5,_0x12c78a,_0x19915a]=await _0x4174a9['cIcbv'](createK8sClient,_0x5814ca,_0x2b4991[_0x1f4a6c(0x348)]);_0x4174a9[_0x1f4a6c(0x33b)](_0x1b1b9e,![])&&_0x4174a9['FoVtZ'](_0x264520,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x38f3a3=await _0x5814ca['setupAutoscaler'](_0x41f1be,_0x2b4991));if(_0x4174a9['YkPVy'](_0x1b1b9e,![])&&global_registry['enableHubHa'])try{await _0x5814ca[_0x1f4a6c(0x1cb)](_0x12c78a,_0x19915a,_0x2b4991,_0x17031e,_0x195759);const _0x28524f={};_0x28524f[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x28524f['message']=_0x4174a9[_0x1f4a6c(0x1c7)],webSocketUtils['sendEventToBackend'](_0xe633f5,_0x28524f);!await _0x4174a9[_0x1f4a6c(0x304)](namespaceExists,_0x41f1be,global_registry[_0x1f4a6c(0x234)])&&await _0x4174a9[_0x1f4a6c(0x245)](createNamespace,_0x41f1be,global_registry[_0x1f4a6c(0x234)]);logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x2de)]);let _0x1fbad7=await fs[_0x1f4a6c(0x2fb)](path[_0x1f4a6c(0x1db)](__dirname,_0x4174a9['MljfB'],_0x4174a9[_0x1f4a6c(0x280)],_0x4174a9[_0x1f4a6c(0x202)],_0x4174a9[_0x1f4a6c(0x282)]),_0x4174a9[_0x1f4a6c(0x2c5)]);_0x1fbad7=_0x1fbad7[_0x1f4a6c(0x283)](/<RedisClientPassword>/g,_0x4174a9[_0x1f4a6c(0x237)](encodeBase64,global_registry['redisPassword'])),_0x1fbad7=_0x1fbad7[_0x1f4a6c(0x283)](/<KafkaClientPassword>/g,_0x4174a9[_0x1f4a6c(0x2af)](encodeBase64,global_registry[_0x1f4a6c(0x296)])),_0x1fbad7=_0x1fbad7[_0x1f4a6c(0x283)](/<BstackUsername>/g,_0x4174a9['eBSCL'](encodeBase64,global_registry[_0x1f4a6c(0x21c)])),_0x1fbad7=_0x1fbad7['replace'](/<BstackAccessKey>/g,_0x4174a9[_0x1f4a6c(0x25d)](encodeBase64,global_registry[_0x1f4a6c(0x1bf)]));const _0x546de5=yaml['loadAll'](_0x1fbad7);await _0x4174a9[_0x1f4a6c(0x358)](kubeApply,_0x546de5,_0x19915a),logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x222)]);let _0x2a35a8=_0x4174a9[_0x1f4a6c(0x25a)];if(_0x4174a9[_0x1f4a6c(0x2b0)](_0x264520,AZURE))_0x2a35a8=_0x4174a9['tmrfx'];else _0x4174a9[_0x1f4a6c(0x31b)](_0x264520,GCP)&&(_0x2a35a8=_0x4174a9['IwBhA']);logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x268)]);let _0x428ef5=await fs[_0x1f4a6c(0x2fb)](path[_0x1f4a6c(0x1db)](__dirname,_0x4174a9[_0x1f4a6c(0x254)],_0x4174a9[_0x1f4a6c(0x280)],_0x4174a9[_0x1f4a6c(0x202)],_0x4174a9[_0x1f4a6c(0x20e)]),_0x4174a9[_0x1f4a6c(0x2c5)]);_0x428ef5=_0x428ef5[_0x1f4a6c(0x283)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x428ef5=_0x428ef5[_0x1f4a6c(0x283)](/<StorageClassName>/g,_0x2a35a8);const _0xc6af73=yaml[_0x1f4a6c(0x343)](_0x428ef5);await _0x4174a9[_0x1f4a6c(0x29e)](kubeApply,_0xc6af73,_0x19915a),logger[_0x1f4a6c(0x335)](_0x4174a9['RfPYQ']),logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x2d5)]);let _0x417248=await fs['readFileAsync'](path['join'](__dirname,_0x4174a9[_0x1f4a6c(0x254)],_0x4174a9[_0x1f4a6c(0x280)],_0x4174a9['HTBQB'],_0x4174a9[_0x1f4a6c(0x276)]),_0x4174a9[_0x1f4a6c(0x2c5)]);_0x417248=_0x417248[_0x1f4a6c(0x283)](/<HubHaNameSpace>/g,global_registry[_0x1f4a6c(0x234)]),_0x417248=_0x417248['replace'](/<StorageClassName>/g,_0x2a35a8);const _0x58d000=yaml[_0x1f4a6c(0x343)](_0x417248);await _0x4174a9['cIcbv'](kubeApply,_0x58d000,_0x19915a),logger[_0x1f4a6c(0x335)](_0x4174a9['dfFth']),logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x2fe)]);let _0x6b23e9=await fs[_0x1f4a6c(0x2fb)](path[_0x1f4a6c(0x1db)](__dirname,_0x4174a9[_0x1f4a6c(0x254)],_0x4174a9[_0x1f4a6c(0x280)],_0x4174a9[_0x1f4a6c(0x202)],_0x4174a9[_0x1f4a6c(0x22b)]),_0x4174a9[_0x1f4a6c(0x2c5)]);_0x6b23e9=_0x6b23e9['replace'](/<UploaderImageVersion>/g,global_registry[_0x1f4a6c(0x2d3)]),_0x6b23e9=_0x6b23e9[_0x1f4a6c(0x283)](/<HubHaNameSpace>/g,global_registry[_0x1f4a6c(0x234)]);const _0xd39560=yaml[_0x1f4a6c(0x343)](_0x6b23e9);_0x4174a9[_0x1f4a6c(0x1ce)](global_registry[_0x1f4a6c(0x28f)],AZURE)&&(_0xd39560[0x0]['spec']['template'][_0x1f4a6c(0x309)]['labels']={'azure.workload.identity/use':_0x4174a9['OvBlQ'],..._0xd39560[0x0][_0x1f4a6c(0x2bc)]['template']['metadata'][_0x1f4a6c(0x1dc)]},_0xd39560[0x0][_0x1f4a6c(0x2bc)]['template']['spec']['serviceAccountName']=_0x4174a9[_0x1f4a6c(0x1e0)]);await _0x4174a9['qbZmf'](kubeApply,_0xd39560,_0x19915a),logger['info'](_0x4174a9[_0x1f4a6c(0x1d5)]);const _0x383b83={};_0x383b83['type']=WS_EVENTS[_0x1f4a6c(0x34c)],_0x383b83['message']=_0x4174a9[_0x1f4a6c(0x287)],webSocketUtils['sendEventToBackend'](_0xe633f5,_0x383b83),logger['info'](_0x4174a9[_0x1f4a6c(0x333)]);}catch(_0x5b160f){const _0x3285f4=_0x4174a9[_0x1f4a6c(0x207)][_0x1f4a6c(0x274)]('|');let _0x2a4757=0x0;while(!![]){switch(_0x3285f4[_0x2a4757++]){case'0':process[_0x1f4a6c(0x227)](0x1);continue;case'1':_0xac5b2f=_0x1f4a6c(0x218)+_0x5b160f['message'];continue;case'2':await _0x5814ca[_0x1f4a6c(0x256)](_0x41f1be,global_registry[_0x1f4a6c(0x331)]);continue;case'3':await _0x4174a9['NCYFG'](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes['ERROR'],_0x4174a9['dTeJS'],_0x4174a9[_0x1f4a6c(0x35c)],_0x4174a9[_0x1f4a6c(0x2c0)]);continue;case'4':logger[_0x1f4a6c(0x2a9)](_0xac5b2f);continue;}break;}}try{_0x25e5cf=_0x4174a9[_0x1f4a6c(0x247)](kebabCase,_0x1f5f02),logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x2f6)]);const _0x5585b={};_0x5585b[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x5585b['message']=_0x4174a9[_0x1f4a6c(0x2f6)],webSocketUtils['sendEventToBackend'](_0xe633f5,_0x5585b);if(_0x4174a9[_0x1f4a6c(0x1be)](_0x25e5cf,_0x4174a9['IpHqe'])){const _0x43802b={};_0x43802b[_0x1f4a6c(0x29b)]=_0x4174a9[_0x1f4a6c(0x2d8)],_0x43802b[_0x1f4a6c(0x2d1)]=_0x4174a9[_0x1f4a6c(0x2d8)];const _0x923662={};_0x923662[_0x1f4a6c(0x1e7)]=_0x25e5cf,_0x923662[_0x1f4a6c(0x2f5)]=_0x43802b;const _0x182955={};_0x182955[_0x1f4a6c(0x309)]=_0x923662;const _0xf97e90=_0x182955,_0x122ce2={};_0x122ce2[_0x1f4a6c(0x347)]=_0xf97e90,await _0x41f1be[_0x1f4a6c(0x2c8)](_0x122ce2),logger[_0x1f4a6c(0x335)](_0x4174a9[_0x1f4a6c(0x2c1)]);}const _0x49b67e={};_0x49b67e[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x49b67e[_0x1f4a6c(0x291)]=_0x4174a9[_0x1f4a6c(0x238)],webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x49b67e);const _0xac2a15={};_0xac2a15[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0xac2a15['message']=_0x4174a9[_0x1f4a6c(0x289)],webSocketUtils['sendEventToBackend'](_0xe633f5,_0xac2a15),logger['info'](_0x4174a9[_0x1f4a6c(0x212)]);let _0x3f33d4={};_0x4174a9[_0x1f4a6c(0x350)](_0x264520,AZURE)&&(_0x3f33d4={'clientId':await _0x5814ca[_0x1f4a6c(0x26d)](_0x1f4a6c(0x29a)+_0x210620)});await _0x4174a9['JDIiA'](addGridComponents,_0x41f1be,_0x359f6a,_0x4fedd3,_0x4b619d,_0x25e5cf,_0x210620,_0x38f3a3,_0x39d6b5,_0x19915a,_0x3f33d4),_0xac5b2f=_0x4174a9['ErWwb'],logger[_0x1f4a6c(0x335)](_0xac5b2f);const _0x13ca8d={};_0x13ca8d[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x13ca8d[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x13ca8d),_0xac5b2f=_0x4174a9[_0x1f4a6c(0x1cd)],logger[_0x1f4a6c(0x335)](_0xac5b2f);const _0x456580={};_0x456580[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x456580[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils['sendEventToBackend'](_0xe633f5,_0x456580),await _0x4174a9[_0x1f4a6c(0x20f)](waitForDeployment,_0x359f6a,_0x25e5cf,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x230dfb=await _0x4174a9['uykrZ'](getNamespaceUID,_0x41f1be,_0x25e5cf),_0x28ce8d=global_registry['isPrivateGrid']?_0x4174a9[_0x1f4a6c(0x1e6)]:_0x4174a9['qxOuV'],_0x35da41={};_0x35da41[_0x1f4a6c(0x1e7)]=_0x28ce8d,_0x35da41[_0x1f4a6c(0x33e)]=_0x4174a9['KlUbt'];const _0x343e59=await _0x41f1be[_0x1f4a6c(0x251)](_0x35da41);let _0x1e0f40=_0x5814ca[_0x1f4a6c(0x1fe)](_0x343e59)+'/'+_0x25e5cf,_0x334c97=_0x4174a9[_0x1f4a6c(0x2f8)];try{const _0x34659e=_0x1f4a6c(0x2e3)+AG_API_URL+_0x1f4a6c(0x1f7)+_0x230dfb,_0x4c455a=await _0x4174a9['nUYvp'](got,_0x34659e,_0x18ba20);(_0x4174a9[_0x1f4a6c(0x214)](_0x4c455a,null)||_0x4174a9['IGTHf'](_0x4c455a,undefined))&&(_0xac5b2f=_0x4174a9['MLAIU'],await _0x4174a9[_0x1f4a6c(0x242)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes['ERROR'],_0x4174a9['dTeJS'],_0x4174a9[_0x1f4a6c(0x33a)],_0x4174a9[_0x1f4a6c(0x2c0)]),logger[_0x1f4a6c(0x2a9)](_0xac5b2f),process['exit'](0x1));_0x4174a9[_0x1f4a6c(0x1d6)](_0x4c455a[_0x1f4a6c(0x1ed)],0x191)&&(_0xac5b2f=_0x4174a9['dmABs'],await _0x4174a9['zXEBG'](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9[_0x1f4a6c(0x27f)],_0x4174a9['qCqLP']),logger['error'](_0xac5b2f),process['exit'](0x1));_0x4174a9[_0x1f4a6c(0x337)](_0x4c455a[_0x1f4a6c(0x1ed)],0xc8)&&(_0xac5b2f=_0x1f4a6c(0x2e9)+JSON[_0x1f4a6c(0x2dc)](_0x4c455a),await _0x4174a9[_0x1f4a6c(0x242)](reportToGalactusAndSendToEDS,_0x2b4991,_0xe633f5,_0xac5b2f,messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x32a)],_0x4174a9['yjWCL'],_0x4174a9['qCqLP']),logger[_0x1f4a6c(0x2a9)](_0xac5b2f),process['exit'](0x1));const _0x41636d=JSON['parse'](_0x4c455a[_0x1f4a6c(0x347)]);_0x41636d[_0x1f4a6c(0x235)]&&(_0x1e0f40=_0x41636d[_0x1f4a6c(0x235)],_0x334c97=_0x4174a9[_0x1f4a6c(0x2b7)]),global_registry['isPrivateGrid']&&(_0x334c97=_0x4174a9[_0x1f4a6c(0x2f8)]);}catch(_0x42224a){}_0xac5b2f=_0x1f4a6c(0x25b)+_0x1e0f40+'\x20',logger[_0x1f4a6c(0x335)](_0xac5b2f);const _0x3569b1={};_0x3569b1[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x3569b1[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils['sendEventToBackend'](_0xe633f5,_0x3569b1),_0xac5b2f=_0x1f4a6c(0x1f5)+_0x334c97+'://'+_0x1e0f40+_0x1f4a6c(0x349),logger[_0x1f4a6c(0x335)](_0xac5b2f);const _0x494e0c={};_0x494e0c[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x34c)],_0x494e0c[_0x1f4a6c(0x291)]=_0xac5b2f,webSocketUtils['sendEventToBackend'](_0xe633f5,_0x494e0c);const _0x44c0ee={};_0x44c0ee[_0x1f4a6c(0x1e1)]=WS_EVENTS[_0x1f4a6c(0x353)],_0x44c0ee['message']=_0x1f4a6c(0x217)+_0x1e0f40,webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x44c0ee),await webSocketUtils[_0x1f4a6c(0x1e2)](0x7d0);}catch(_0x476f83){logger['error']('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x476f83+'\x20\x0a'+JSON[_0x1f4a6c(0x2dc)](_0x476f83['stack']));if(_0x4174a9[_0x1f4a6c(0x269)](_0x1b1b9e,![]))try{logger[_0x1f4a6c(0x335)](_0x4174a9['URBVi']),await _0x4174a9[_0x1f4a6c(0x1c6)](removeGridComponents,_0x41f1be,_0x359f6a,_0x4fedd3,_0x4b619d,_0x25e5cf),await _0x5814ca[_0x1f4a6c(0x256)](_0x41f1be,global_registry['clusterRegion']);}catch(_0x3bd635){logger[_0x1f4a6c(0x2a9)](_0x1f4a6c(0x2b4)+_0x3bd635+'\x20\x0a'+JSON[_0x1f4a6c(0x2dc)](_0x3bd635[_0x1f4a6c(0x1d9)]));}throw _0x476f83;}}catch(_0x37ffdb){const _0x478cf6=_0x1f4a6c(0x226)+_0x37ffdb+'\x20\x0a'+JSON[_0x1f4a6c(0x2dc)](_0x37ffdb[_0x1f4a6c(0x1d9)]);if(_0xe633f5){const _0x31ca8a={};_0x31ca8a['type']=WS_EVENTS[_0x1f4a6c(0x34c)],_0x31ca8a[_0x1f4a6c(0x291)]=_0x478cf6,webSocketUtils[_0x1f4a6c(0x34b)](_0xe633f5,_0x31ca8a,_0x4174a9[_0x1f4a6c(0x2c0)],!![]);}await webSocketUtils[_0x1f4a6c(0x1e2)](0x7d0);const _0x535e61={};_0x535e61['error']=_0x478cf6,await _0x4174a9[_0x1f4a6c(0x33c)](sendInstrumentationEvent,_0x2b4991,_0x4174a9[_0x1f4a6c(0x32a)],messageTypes[_0x1f4a6c(0x317)],_0x4174a9[_0x1f4a6c(0x21b)],_0x535e61,_0x2b4991),logger[_0x1f4a6c(0x2a9)](_0x478cf6);}process[_0x1f4a6c(0x227)](0x0);};
@@ -1 +1 @@
1
- const a10_0x333f97=a10_0x5e3a;(function(_0x47e8ac,_0x96f7b1){const _0x21bb19=a10_0x5e3a,_0x2f2731=_0x47e8ac();while(!![]){try{const _0x487d00=parseInt(_0x21bb19(0xbe))/0x1+parseInt(_0x21bb19(0xb3))/0x2*(-parseInt(_0x21bb19(0xb0))/0x3)+parseInt(_0x21bb19(0xc4))/0x4*(parseInt(_0x21bb19(0xb8))/0x5)+-parseInt(_0x21bb19(0xbb))/0x6*(-parseInt(_0x21bb19(0xc2))/0x7)+-parseInt(_0x21bb19(0xbd))/0x8*(-parseInt(_0x21bb19(0xc3))/0x9)+parseInt(_0x21bb19(0xae))/0xa+-parseInt(_0x21bb19(0xc6))/0xb*(parseInt(_0x21bb19(0xc5))/0xc);if(_0x487d00===_0x96f7b1)break;else _0x2f2731['push'](_0x2f2731['shift']());}catch(_0x3577a4){_0x2f2731['push'](_0x2f2731['shift']());}}}(a10_0x3c3e,0xee236));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x5e3a(_0x4798de,_0x21a265){const _0x3c3e28=a10_0x3c3e();return a10_0x5e3a=function(_0x5e3a55,_0x90990){_0x5e3a55=_0x5e3a55-0xad;let _0x26252b=_0x3c3e28[_0x5e3a55];return _0x26252b;},a10_0x5e3a(_0x4798de,_0x21a265);}exports[a10_0x333f97(0xaf)]='delete',exports[a10_0x333f97(0xbc)]='List\x20Grid\x20resources.',exports[a10_0x333f97(0xbf)]=function(_0x17fe99){const _0x375c23=a10_0x333f97,_0x5d87e8={};_0x5d87e8[_0x375c23(0xb1)]=_0x375c23(0xb9),_0x5d87e8[_0x375c23(0xb7)]=_0x375c23(0xc1);const _0x5a42ed=_0x5d87e8;return _0x17fe99[_0x375c23(0xb4)](HELP_HEADER_MESSAGE['delete'])[_0x375c23(0xad)](HELP_FOOTER_MESSAGE)[_0x375c23(0xb6)](_0x5a42ed[_0x375c23(0xb1)])[_0x375c23(0xb5)]()[_0x375c23(0xba)]()[_0x375c23(0xb2)]()[_0x375c23(0xc1)](_0x5a42ed['tnYgK']);},exports[a10_0x333f97(0xc0)]=function(_0xa70c8b){};function a10_0x3c3e(){const _0x6345de=['15232330RJjyFN','command','1067223YWBmJi','heGvB','strict','4hqNJJV','usage','demandCommand','commandDir','tnYgK','18785UqrEAM','delete_commands','recommendCommands','6xlEFDC','desc','353512JRLgKI','824338iofDVr','builder','handler','help','9974251gflPYT','369kGNEUh','732DcMpES','24WMHqwc','25216664qniLhF','epilogue'];a10_0x3c3e=function(){return _0x6345de;};return a10_0x3c3e();}
1
+ const a10_0x497fea=a10_0x330c;(function(_0x24755c,_0x1e98a5){const _0xdf0620=a10_0x330c,_0x47251b=_0x24755c();while(!![]){try{const _0x3841ff=-parseInt(_0xdf0620(0x1e5))/0x1*(parseInt(_0xdf0620(0x1da))/0x2)+-parseInt(_0xdf0620(0x1db))/0x3+parseInt(_0xdf0620(0x1e4))/0x4*(-parseInt(_0xdf0620(0x1dc))/0x5)+-parseInt(_0xdf0620(0x1ec))/0x6*(parseInt(_0xdf0620(0x1e2))/0x7)+-parseInt(_0xdf0620(0x1e9))/0x8*(parseInt(_0xdf0620(0x1ea))/0x9)+parseInt(_0xdf0620(0x1dd))/0xa*(-parseInt(_0xdf0620(0x1f1))/0xb)+parseInt(_0xdf0620(0x1ee))/0xc;if(_0x3841ff===_0x1e98a5)break;else _0x47251b['push'](_0x47251b['shift']());}catch(_0x2d2bc5){_0x47251b['push'](_0x47251b['shift']());}}}(a10_0x32a5,0x423ee));function a10_0x330c(_0x15a22b,_0x2f1679){const _0x32a5b9=a10_0x32a5();return a10_0x330c=function(_0x330cdc,_0x2e5a07){_0x330cdc=_0x330cdc-0x1da;let _0x2c2b3e=_0x32a5b9[_0x330cdc];return _0x2c2b3e;},a10_0x330c(_0x15a22b,_0x2f1679);}function a10_0x32a5(){const _0x5a6028=['25226064hdYNYq','demandCommand','builder','7073oHQgPH','usage','14azMUBd','268419XKaKqC','165XYNJgn','6780wVYPmA','desc','commandDir','recommendCommands','delete','1618652CRvuxg','strict','31300lnbroE','24883aBdURV','tBkwF','Tkgkz','List\x20Grid\x20resources.','131368mJaVJY','225OASZDa','delete_commands','12jLQdRN','help'];a10_0x32a5=function(){return _0x5a6028;};return a10_0x32a5();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='delete',exports[a10_0x497fea(0x1de)]=a10_0x497fea(0x1e8),exports[a10_0x497fea(0x1f0)]=function(_0x1a227a){const _0x2c53f7=a10_0x497fea,_0x38e661={};_0x38e661[_0x2c53f7(0x1e7)]=_0x2c53f7(0x1eb),_0x38e661[_0x2c53f7(0x1e6)]='help';const _0x11601d=_0x38e661;return _0x1a227a[_0x2c53f7(0x1f2)](HELP_HEADER_MESSAGE[_0x2c53f7(0x1e1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2c53f7(0x1df)](_0x11601d['Tkgkz'])[_0x2c53f7(0x1ef)]()[_0x2c53f7(0x1e0)]()[_0x2c53f7(0x1e3)]()[_0x2c53f7(0x1ed)](_0x11601d[_0x2c53f7(0x1e6)]);},exports['handler']=function(_0x4f78ec){};
@@ -1 +1 @@
1
- const a11_0x5b992a=a11_0xd24a;function a11_0xd24a(_0x4e4472,_0x5ac3ea){const _0x2a8889=a11_0x2a88();return a11_0xd24a=function(_0xd24a9d,_0x2ebf62){_0xd24a9d=_0xd24a9d-0x85;let _0x45427c=_0x2a8889[_0xd24a9d];return _0x45427c;},a11_0xd24a(_0x4e4472,_0x5ac3ea);}(function(_0x1fce98,_0x32911e){const _0x3aab26=a11_0xd24a,_0x5935ad=_0x1fce98();while(!![]){try{const _0x1e9e53=parseInt(_0x3aab26(0x9e))/0x1+-parseInt(_0x3aab26(0xae))/0x2*(parseInt(_0x3aab26(0xbb))/0x3)+-parseInt(_0x3aab26(0xba))/0x4+parseInt(_0x3aab26(0xb7))/0x5+parseInt(_0x3aab26(0x10e))/0x6+parseInt(_0x3aab26(0xb9))/0x7*(-parseInt(_0x3aab26(0xce))/0x8)+parseInt(_0x3aab26(0xe7))/0x9;if(_0x1e9e53===_0x32911e)break;else _0x5935ad['push'](_0x5935ad['shift']());}catch(_0x31f984){_0x5935ad['push'](_0x5935ad['shift']());}}}(a11_0x2a88,0x7691c));function a11_0x2a88(){const _0x4a1d3f=['grid','command','Delete\x20an\x20Automation\x20grid.','yyQTc','clyCF','aXnwJ','FtPXf','xVZKZ','yKlMN','password','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','YLqJN','stack','lrpNp','204168aZbhDI','Successfully\x20deleted\x20the\x20grid','hOvNs','../../config/logger','oqpvb','HTHch','\x22\x20with\x20ID\x20','existsSync','isBrowserstackCluster','default','Jqybz','type','cuSOk','../../utils/utilityMethods','../../utils/gridComponents','../../cloudproviders/utils','137158ZnjNRL','../../utils/instrumentationUtils','AiZKY','jEZYl','TDQhL','name','WebSocket','invalid-input','handler','2336830SvAbWz','stringify','18473qMoASl','2371340qiIRhd','42ehTxiT','replace','TPzrk','aPwxV','vNqFh','reconnecting-websocket','Zrgbg','YTemt','../../utils/webSocketUtils','ERROR','UBMmk','<UsernamePlaceholder>','NWTCV','rlAKV','help','BKbOr','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','then','hfcWw','632VVSvdm','exit','KFEYH','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','qECyv','cloudProvider','parse','clusterId','epilogue','clusterName','ImThG','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','OKyqc','../../config/constants','REvXC','mfCyJ','requestId','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','zoOLP','Fpzel','invalid-grid-id','\x22\x20and\x20ID\x20','warn','daeuU','dNKNY','14144787XoGRpK','region','hujij','boolean','delete','Namespace:\x20','statusCode','readFileSync','OVSoq','../../utils/createk8sClient','body','RsyEd','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','pjVKw','RWOSN','string','ylLRm','onlyGridInCluster','Browserstack','Pass\x20the\x20ID\x20of\x20the\x20Grid','wavha','skip-tls-cert-verify','CaDsI','gridId','lZaLF','toLowerCase','Skip\x20insecure\x20cert\x20verification.','description','xbfwk','clusterRegion','/packages/cli/grid/','username','PMDEd','EBsdp','ZNZSF','MGoAY','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','options','nWRxk','23430yPSqJl','https://','unknown-error','init-not-called','Failed\x20to\x20delete\x20resources!\x20Error:\x20','clusterSpawnedVia','Cluster:\x20','aUxLE','skipTlsCertVerify','QEdfl','ZHmBd','awIOb','QoaMa','readNamespace','argv','gDHAt','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','info','sYAFu','BcDMx','grid-id','CqBgk','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','FGOcj','oXAQV','server-error','zCqAI'];a11_0x2a88=function(){return _0x4a1d3f;};return a11_0x2a88();}const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x5b992a(0xc0)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x5b992a(0xdb)),{logger}=require(a11_0x5b992a(0xa1)),{getCloudProviderObject}=require(a11_0x5b992a(0xad)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5b992a(0xac)),{sendInstrumentationEvent}=require(a11_0x5b992a(0xaf)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x5b992a(0xf0)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x5b992a(0xab)),webSocketUtils=require(a11_0x5b992a(0xc3));exports[a11_0x5b992a(0x91)]=a11_0x5b992a(0x90),exports['desc']=a11_0x5b992a(0x92),exports['builder']=function(_0x2ffe3e){const _0x593dd6=a11_0x5b992a,_0x5784dc={};_0x5784dc[_0x593dd6(0x118)]=_0x593dd6(0xfa),_0x5784dc['mfCyJ']=_0x593dd6(0xf6),_0x5784dc[_0x593dd6(0x115)]=_0x593dd6(0x101),_0x5784dc[_0x593dd6(0x117)]=_0x593dd6(0xea),_0x5784dc['ZNZSF']='help';const _0x46d26c=_0x5784dc,_0x1e6c23={};_0x1e6c23[_0x593dd6(0x102)]=_0x46d26c['ZHmBd'],_0x1e6c23[_0x593dd6(0xa9)]=_0x46d26c[_0x593dd6(0xdd)];const _0x13f6b0={};_0x13f6b0[_0x593dd6(0x102)]=_0x46d26c[_0x593dd6(0x115)],_0x13f6b0['type']=_0x46d26c[_0x593dd6(0x117)],_0x13f6b0[_0x593dd6(0xa7)]=![];const _0x3eb19b={};return _0x3eb19b[_0x593dd6(0x88)]=_0x1e6c23,_0x3eb19b['skip-tls-cert-verify']=_0x13f6b0,_0x2ffe3e['usage'](HELP_HEADER_MESSAGE[_0x593dd6(0xeb)])[_0x593dd6(0xd6)](HELP_FOOTER_MESSAGE)[_0x593dd6(0x10c)](_0x3eb19b)[_0x593dd6(0xc9)](_0x46d26c[_0x593dd6(0x109)])['argv'];},exports[a11_0x5b992a(0xb6)]=async function(_0xbdda03){const _0x28288e=a11_0x5b992a,_0x14b867={'YDGgv':'Pass\x20the\x20ID\x20of\x20the\x20Grid','CqBgk':_0x28288e(0xf6),'Jqybz':_0x28288e(0x101),'BcDMx':_0x28288e(0xea),'aPwxV':'help','MGoAY':_0x28288e(0xd1),'oXAQV':function(_0x426ce1,_0x1bd5f2){return _0x426ce1===_0x1bd5f2;},'dNKNY':_0x28288e(0xdc),'YLqJN':_0x28288e(0xb0),'CaDsI':_0x28288e(0x9f),'TDQhL':function(_0x32cc29,_0x2fe3a2){return _0x32cc29!==_0x2fe3a2;},'yyQTc':_0x28288e(0xda),'TPzrk':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','yKlMN':function(_0x384533){return _0x384533();},'BKbOr':function(_0x91884a,_0x55610c){return _0x91884a===_0x55610c;},'QoaMa':_0x28288e(0x11d),'cuSOk':'Utlzn','NWTCV':_0x28288e(0x8a),'RWOSN':function(_0x166726,_0x574d19,_0x16f2ea,_0x2fca9d,_0x358401,_0x183e10,_0x2c014c){return _0x166726(_0x574d19,_0x16f2ea,_0x2fca9d,_0x358401,_0x183e10,_0x2c014c);},'ImThG':'delete-grid-called','EGJVc':_0x28288e(0x111),'aXnwJ':_0x28288e(0xff),'xbfwk':function(_0x4b284a){return _0x4b284a();},'xVZKZ':function(_0x10f464,_0x3d7953,_0x43a7e2,_0x2dc94f){return _0x10f464(_0x3d7953,_0x43a7e2,_0x2dc94f);},'jEZYl':function(_0x5b2d85,_0x3d816e){return _0x5b2d85===_0x3d816e;},'nWRxk':_0x28288e(0xf9),'qECyv':_0x28288e(0xe5),'FtPXf':function(_0x17b845,_0x1a5db2){return _0x17b845(_0x1a5db2);},'hOvNs':function(_0x4eaa39,_0x1f64e9){return _0x4eaa39===_0x1f64e9;},'zCqAI':function(_0x332a28,_0x5443bc){return _0x332a28===_0x5443bc;},'HtmIn':_0x28288e(0xc5),'HTHch':'jAymS','wavha':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','rlAKV':_0x28288e(0xb5),'EOghc':function(_0x78058a,_0xc4ee70){return _0x78058a===_0xc4ee70;},'lrpNp':function(_0x1bc716,_0x4e7287){return _0x1bc716!==_0x4e7287;},'oqpvb':_0x28288e(0xf4),'Fpzel':_0x28288e(0xcd),'OVSoq':_0x28288e(0xc6),'GWjIv':'<PasswordPlaceholder>','hujij':function(_0x107700,_0x142702,_0x3ad51a){return _0x107700(_0x142702,_0x3ad51a);},'UrPRf':function(_0x326e27,_0x2d585e,_0x4e2f0e,_0x29a991,_0x2cde4e,_0x24acdb){return _0x326e27(_0x2d585e,_0x4e2f0e,_0x29a991,_0x2cde4e,_0x24acdb);},'vNqFh':function(_0x2c5773,_0x44fbbe){return _0x2c5773!==_0x44fbbe;},'clyCF':'xpRBX','zoOLP':function(_0x496ca8,_0x9abff0){return _0x496ca8===_0x9abff0;},'oMUnT':'CWeCZ','EBsdp':'HHfUt','ylLRm':'DELETE','YTemt':function(_0x47192f,_0x5a9aa9,_0x4b92ff){return _0x47192f(_0x5a9aa9,_0x4b92ff);},'TBNXa':function(_0xb858a6,_0x20209f){return _0xb858a6!==_0x20209f;},'Zrgbg':function(_0x30d9b4,_0x35a254){return _0x30d9b4!==_0x35a254;},'sYAFu':_0x28288e(0x8e),'qWMQb':function(_0xf5c7a7,_0x595b88){return _0xf5c7a7===_0x595b88;},'PMDEd':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','awIOb':function(_0x308ba5,_0x62e79,_0x122974,_0x47e4a6,_0x818bd2,_0x33b4d7,_0x4bbf89){return _0x308ba5(_0x62e79,_0x122974,_0x47e4a6,_0x818bd2,_0x33b4d7,_0x4bbf89);},'KFEYH':'unauthorised','onvNW':_0x28288e(0xe2),'FGOcj':function(_0x414066,_0x3b72ca,_0x145c72,_0x946dfe,_0x3d39aa,_0x2e853a,_0x484a32){return _0x414066(_0x3b72ca,_0x145c72,_0x946dfe,_0x3d39aa,_0x2e853a,_0x484a32);},'RsyEd':_0x28288e(0x110)};try{global_registry[_0x28288e(0xde)]=_0x14b867['yKlMN'](uuidv4);if(!fs[_0x28288e(0xa5)](_0x14b867[_0x28288e(0x98)](getCredentialsPath))){if(_0x14b867[_0x28288e(0xca)](_0x14b867[_0x28288e(0x11a)],_0x14b867[_0x28288e(0xaa)])){const _0x4e47b8={};_0x4e47b8[_0x28288e(0x102)]=_0x14b867['YDGgv'],_0x4e47b8[_0x28288e(0xa9)]=_0x14b867[_0x28288e(0x89)];const _0x4c43c8={};_0x4c43c8['description']=_0x14b867[_0x28288e(0xa8)],_0x4c43c8[_0x28288e(0xa9)]=_0x14b867[_0x28288e(0x87)],_0x4c43c8['default']=![];const _0x5191f5={};return _0x5191f5[_0x28288e(0x88)]=_0x4e47b8,_0x5191f5[_0x28288e(0xfc)]=_0x4c43c8,_0x41bb0c['usage'](_0x42e26e[_0x28288e(0xeb)])[_0x28288e(0xd6)](_0x20824e)['options'](_0x5191f5)[_0x28288e(0xc9)](_0x14b867[_0x28288e(0xbe)])[_0x28288e(0x11c)];}else console[_0x28288e(0x8b)](_0x14b867[_0x28288e(0xc7)]),await _0x14b867['RWOSN'](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867['EGJVc'],null,_0xbdda03),process[_0x28288e(0xcf)](0x1);}_0x14b867[_0x28288e(0xf5)](sendInstrumentationEvent,_0xbdda03,_0x14b867['ImThG'],messageTypes['INFO'],null,null,_0xbdda03);!_0xbdda03['gridId']&&(_0x14b867['BKbOr'](_0x14b867[_0x28288e(0x95)],_0x14b867['aXnwJ'])?(console[_0x28288e(0x8b)](_0x14b867['MGoAY']),process[_0x28288e(0xcf)](0x1)):(_0x5dec0c[_0x28288e(0x8b)](_0x14b867[_0x28288e(0x10a)]),_0x248868[_0x28288e(0xcf)](0x1)));const _0x23a6eb=JSON['parse'](fs[_0x28288e(0xee)](_0x14b867[_0x28288e(0x103)](getCredentialsPath))),[_0x33ee48,_0x414233]=await _0x14b867[_0x28288e(0x97)](getGridDetails,_0x23a6eb[_0x28288e(0xf9)][_0x28288e(0x106)],_0x23a6eb[_0x28288e(0xf9)]['password'],_0xbdda03[_0x28288e(0xfe)]);if(_0x414233){const _0x22c698=_0x414233[_0x28288e(0x85)];let _0x436f91=_0x28288e(0x11e)+_0x22c698[_0x28288e(0xb3)]+_0x28288e(0xe3)+_0x22c698['id']+_0x28288e(0x10b);_0x414233[_0x28288e(0xf8)]&&_0x14b867[_0x28288e(0xb1)](_0x414233[_0x28288e(0x113)],_0x14b867[_0x28288e(0x10d)])&&(_0x14b867[_0x28288e(0xb2)](_0x14b867['qECyv'],_0x14b867[_0x28288e(0xd2)])?_0x22c943['exit'](0x0):_0x436f91=_0x28288e(0x11e)+_0x22c698[_0x28288e(0xb3)]+'\x22\x20and\x20ID\x20'+_0x22c698['id']+_0x28288e(0x9a)+_0x22c698[_0x28288e(0xd7)]+_0x28288e(0xa4)+_0x22c698[_0x28288e(0xd5)]+_0x28288e(0x10b));const _0x4c6ff0=await _0x14b867[_0x28288e(0x96)](inputConfirmation,_0x436f91);(_0x14b867[_0x28288e(0xa0)](_0x4c6ff0,undefined)||_0x14b867[_0x28288e(0xa0)](_0x4c6ff0,null)||!(_0x14b867[_0x28288e(0xb1)](_0x4c6ff0[_0x28288e(0x100)](),'y')||_0x14b867[_0x28288e(0x8f)](_0x4c6ff0[_0x28288e(0x100)](),'n')))&&(_0x14b867['TDQhL'](_0x14b867['HtmIn'],_0x14b867[_0x28288e(0xa3)])?(console['error'](_0x14b867[_0x28288e(0xfb)]),await _0x14b867[_0x28288e(0xf5)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0xc8)],null,_0xbdda03),process[_0x28288e(0xcf)](0x1)):_0x2b8d23['warn'](_0x28288e(0x114)+_0x273367[_0x28288e(0xd7)]+_0x28288e(0xf3)));_0x14b867['EOghc'](_0x4c6ff0[_0x28288e(0x100)](),'n')&&(_0x14b867[_0x28288e(0x9d)](_0x14b867[_0x28288e(0xa2)],_0x14b867[_0x28288e(0xe1)])?process[_0x28288e(0xcf)](0x0):_0x47bf56=_0x28288e(0x11e)+_0x572ef7[_0x28288e(0xb3)]+_0x28288e(0xe3)+_0x2436de['id']+_0x28288e(0x9a)+_0x163504['clusterName']+_0x28288e(0xa4)+_0x122c97['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x59319e=WS_ENDPOINT[_0x28288e(0xbc)](_0x14b867[_0x28288e(0xef)],_0x23a6eb[_0x28288e(0xf9)][_0x28288e(0x106)])['replace'](_0x14b867['GWjIv'],_0x23a6eb[_0x28288e(0xf9)]['password']),_0x166eb8={};_0x166eb8[_0x28288e(0xb4)]=ws,_0x166eb8['connectionTimeout']=0x36ee80;const _0x25487a=new ReconnectingWebSocket(_0x59319e,[],_0x166eb8);global_registry[_0x28288e(0x104)]=_0x22c698[_0x28288e(0xe8)];const _0x5bde3a=_0x22c698[_0x28288e(0xd3)],_0x1a6c3c=await _0x14b867[_0x28288e(0xf5)](getCloudProviderObject,_0x5bde3a,_0x22c698['clusterName'],_0x22c698[_0x28288e(0xb3)],_0x25487a,webSocketUtils,_0xbdda03),_0x1f5251=await _0x1a6c3c['isClusterPresent']();if(_0x1f5251){const _0x51fbcf=_0x14b867['FtPXf'](kebabCase,_0x22c698['name']),[_0x405b7f,_0x57ce36,_0x3c8854,_0x48f8f7,_0xb869f6,_0x46e3e3]=await _0x14b867[_0x28288e(0xe9)](createK8sClient,_0x1a6c3c,_0xbdda03[_0x28288e(0x116)]);let _0x36d5e7=!![];const _0x154cfa={};_0x154cfa[_0x28288e(0xb3)]=_0x51fbcf,await _0x405b7f[_0x28288e(0x11b)](_0x154cfa)[_0x28288e(0xcc)](_0x441a43=>{const _0x3643cb=_0x28288e;_0x14b867[_0x3643cb(0x8d)](_0x14b867[_0x3643cb(0xe6)],_0x14b867[_0x3643cb(0x9b)])?(_0x1a15fd['warn'](_0x3643cb(0xec)+_0x2022b0+_0x3643cb(0xdf)),_0x2357ed=![]):logger[_0x3643cb(0x85)](_0x3643cb(0xec)+_0x51fbcf+_0x3643cb(0xcb));})['catch'](_0x154950=>{const _0x21d18a=_0x28288e;_0x14b867['TDQhL'](_0x14b867[_0x21d18a(0x93)],_0x14b867['yyQTc'])?(_0x3f9d7b['info'](_0x14b867[_0x21d18a(0xfd)]),_0x1842bb[_0x21d18a(0xcf)](0x0)):(logger['warn']('Namespace:\x20'+_0x51fbcf+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x36d5e7=![]);});if(_0x36d5e7){await _0x14b867['UrPRf'](removeGridComponents,_0x405b7f,_0x57ce36,_0x3c8854,_0x48f8f7,_0x51fbcf);if(_0x414233[_0x28288e(0xf8)]){const _0x1515c9=await _0x1a6c3c[_0x28288e(0xa6)]();_0x1515c9?_0x14b867[_0x28288e(0xbf)](_0x14b867[_0x28288e(0x94)],_0x14b867[_0x28288e(0x94)])?_0x2a04ed[_0x28288e(0x85)](_0x28288e(0xec)+_0x29ff97+_0x28288e(0xcb)):await _0x1a6c3c['deleteCluster'](_0x405b7f,_0x22c698[_0x28288e(0xe8)]):_0x14b867[_0x28288e(0xe0)](_0x14b867['oMUnT'],_0x14b867[_0x28288e(0x108)])?_0x423e5e['warn'](_0x14b867[_0x28288e(0xbd)]):logger['warn']('Cluster:\x20'+_0x22c698[_0x28288e(0xd7)]+_0x28288e(0xf3));}}}else logger[_0x28288e(0xe4)](_0x14b867['TPzrk']);const _0x454a4f=_0x28288e(0x10f)+AG_API_URL+_0x28288e(0x105)+_0xbdda03['gridId'],_0x5d6070={'method':_0x14b867[_0x28288e(0xf7)],'headers':_0x14b867[_0x28288e(0xc2)](getAuthHeader,_0x23a6eb[_0x28288e(0xf9)][_0x28288e(0x106)],_0x23a6eb['Browserstack'][_0x28288e(0x99)]),'throwHttpErrors':![]},_0x4579b3=await _0x14b867[_0x28288e(0xc2)](got,_0x454a4f,_0x5d6070);_0x14b867['TBNXa'](_0x4579b3,null)&&_0x14b867[_0x28288e(0xc1)](_0x4579b3,undefined)&&_0x14b867[_0x28288e(0xa0)](_0x4579b3[_0x28288e(0xed)],0xc8)&&(logger[_0x28288e(0x85)](_0x14b867[_0x28288e(0xfd)]),process[_0x28288e(0xcf)](0x0)),logger['error'](_0x28288e(0xd9)+_0x4579b3[_0x28288e(0xf1)]),await _0x14b867['RWOSN'](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes['ERROR'],_0x14b867['sYAFu'],_0x33ee48,_0xbdda03),process[_0x28288e(0xcf)](0x1);}_0x14b867['qWMQb'](_0x33ee48[_0x28288e(0xed)],0x191)&&(logger[_0x28288e(0x8b)](_0x14b867[_0x28288e(0x107)]),await _0x14b867[_0x28288e(0x119)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0xd0)],null,_0xbdda03),process[_0x28288e(0xcf)](0x1)),_0x14b867[_0x28288e(0x8d)](_0x33ee48['statusCode'],0x190)&&(logger[_0x28288e(0x8b)](JSON[_0x28288e(0xd4)](_0x33ee48[_0x28288e(0xf1)])['message']),await _0x14b867['awIOb'](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867['onvNW'],null,_0xbdda03),process[_0x28288e(0xcf)](0x1)),logger[_0x28288e(0x8b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x28288e(0xb8)](_0x33ee48)),await _0x14b867[_0x28288e(0xf5)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0x86)],_0x33ee48,_0xbdda03),process['exit'](0x1);}catch(_0x5c28b7){logger[_0x28288e(0x8b)](_0x28288e(0x112)+_0x5c28b7[_0x28288e(0x9c)]),await _0x14b867[_0x28288e(0x8c)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0xf2)],_0x5c28b7,_0xbdda03),process['exit'](0x1);}};
1
+ function a11_0x5db5(_0x567050,_0x2500af){const _0x347870=a11_0x3478();return a11_0x5db5=function(_0x5db531,_0x35513e){_0x5db531=_0x5db531-0x187;let _0x2f1271=_0x347870[_0x5db531];return _0x2f1271;},a11_0x5db5(_0x567050,_0x2500af);}const a11_0x59aebe=a11_0x5db5;(function(_0x38f76e,_0x5506a2){const _0x5314f1=a11_0x5db5,_0x492062=_0x38f76e();while(!![]){try{const _0x353a97=-parseInt(_0x5314f1(0x197))/0x1+parseInt(_0x5314f1(0x1b6))/0x2*(-parseInt(_0x5314f1(0x1c2))/0x3)+-parseInt(_0x5314f1(0x1fd))/0x4*(parseInt(_0x5314f1(0x21b))/0x5)+parseInt(_0x5314f1(0x191))/0x6*(-parseInt(_0x5314f1(0x1d0))/0x7)+-parseInt(_0x5314f1(0x207))/0x8+-parseInt(_0x5314f1(0x214))/0x9+parseInt(_0x5314f1(0x1f2))/0xa;if(_0x353a97===_0x5506a2)break;else _0x492062['push'](_0x492062['shift']());}catch(_0x50d804){_0x492062['push'](_0x492062['shift']());}}}(a11_0x3478,0x8cfb0));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x59aebe(0x1fc)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x59aebe(0x1cc)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x59aebe(0x1fe)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x59aebe(0x1cf)),{sendInstrumentationEvent}=require(a11_0x59aebe(0x1f6)),{inputConfirmation}=require(a11_0x59aebe(0x204)),{createK8sClient}=require(a11_0x59aebe(0x189)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x59aebe(0x1ef)),webSocketUtils=require('../../utils/webSocketUtils');function a11_0x3478(){const _0xebe65d=['boolean','yRiBm','then','nIHfu','NzbxC','GtiUB','Browserstack','9486585tSKlst','GiFFA','zDafB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','RZrZy','Delete\x20an\x20Automation\x20grid.','clusterRegion','45hyXJaq','DkAAf','username','oaWiP','skip-tls-cert-verify','delete-grid-called','command','argv','gridId','oBPxk','../../utils/createk8sClient','info','Successfully\x20deleted\x20the\x20grid','exit','Namespace:\x20','/packages/cli/grid/','clusterSpawnedVia','NXuFl','12chUCGB','body','isBrowserstackCluster','description','iKsEL','replace','747497uNFOsy','invalid-grid-id','handler','gSjTo','deleteCluster','help','FmHpm','OiSkO','stringify','parse','HLpcS','lAfON','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','ghTTt','ENbVQ','clusterId','TSVHa','ViGIG','BHiQP','LFRIB','readFileSync','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','options','string','name','default','catch','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','vfXHK','password','iYqTp','108500TGYSeq','<PasswordPlaceholder>','rsjDD','statusCode','XNLnM','Cluster:\x20','delete','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','requestId','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','clusterName','dGxUj','21TghUJm','SosaM','warn','\x22\x20and\x20ID\x20','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','unauthorised','Pass\x20the\x20ID\x20of\x20the\x20Grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','../../config/constants','CjHPc','ZrYNv','../../utils/gridComponents','3007438eJZFwU','cloudProvider','<UsernamePlaceholder>','owzKn','dOszO','https://','SKFEb','unknown-error','ZScYF','jeTph','GvLoC','mvTlQ','CHddo','CvVnp','JvIMW','MhgHJ','uKIFv','error','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','builder','Skip\x20insecure\x20cert\x20verification.','hvFzb','invalid-input','MAzHK','IUtgJ','odiuE','ghUUE','SGlhr','region','gMsxp','ERROR','../../utils/utilityMethods','onlyGridInCluster','epilogue','49332820AMbLUN','jvsRA','fQNjY','eaNrZ','../../utils/instrumentationUtils','init-not-called','cUgCe','grid','DELETE','IktJC','uuid','260428JDjcbt','../../cloudproviders/utils','AylxN','\x22\x20with\x20ID\x20','server-error','usage','Uijhy','../../utils/userInput','skipTlsCertVerify','type','5834264KoUNKq','stack','IWFEN','INFO','eVXee','wWsxo'];a11_0x3478=function(){return _0xebe65d;};return a11_0x3478();}exports[a11_0x59aebe(0x221)]=a11_0x59aebe(0x1f9),exports[a11_0x59aebe(0x1cb)]=a11_0x59aebe(0x219),exports[a11_0x59aebe(0x1e3)]=function(_0x5d932f){const _0xbda2=a11_0x59aebe,_0x3f6ed5={};_0x3f6ed5['SosaM']=_0xbda2(0x1c9),_0x3f6ed5[_0xbda2(0x1ea)]=_0xbda2(0x1ae),_0x3f6ed5[_0xbda2(0x1b8)]=_0xbda2(0x1e4),_0x3f6ed5[_0xbda2(0x1db)]='boolean',_0x3f6ed5['IWFEN']=_0xbda2(0x19c);const _0x153de7=_0x3f6ed5,_0x283c6d={};_0x283c6d['description']=_0x153de7[_0xbda2(0x1c3)],_0x283c6d[_0xbda2(0x206)]=_0x153de7[_0xbda2(0x1ea)];const _0x5e838f={};_0x5e838f[_0xbda2(0x194)]=_0x153de7[_0xbda2(0x1b8)],_0x5e838f[_0xbda2(0x206)]=_0x153de7[_0xbda2(0x1db)],_0x5e838f[_0xbda2(0x1b0)]=![];const _0x2bc62e={};return _0x2bc62e['grid-id']=_0x283c6d,_0x2bc62e[_0xbda2(0x21f)]=_0x5e838f,_0x5d932f[_0xbda2(0x202)](HELP_HEADER_MESSAGE[_0xbda2(0x1bc)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xbda2(0x1ad)](_0x2bc62e)['help'](_0x153de7[_0xbda2(0x209)])[_0xbda2(0x222)];},exports[a11_0x59aebe(0x199)]=async function(_0x58e391){const _0x594b93=a11_0x59aebe,_0xdb3ab4={'NXuFl':_0x594b93(0x18b),'zDafB':_0x594b93(0x1bf),'SGlhr':_0x594b93(0x1a3),'DkAAf':'Pass\x20the\x20ID\x20of\x20the\x20Grid','kEMDW':_0x594b93(0x1ae),'jvsRA':_0x594b93(0x1e4),'lxdUt':_0x594b93(0x20d),'BHiQP':_0x594b93(0x19c),'odiuE':function(_0x28e633,_0x3d66d3){return _0x28e633===_0x3d66d3;},'eVXee':_0x594b93(0x203),'gSjTo':function(_0x239347,_0x591c6c){return _0x239347!==_0x591c6c;},'fQNjY':_0x594b93(0x1a5),'SKFEb':function(_0x4ec1dc){return _0x4ec1dc();},'lAfON':'YSMph','fPtWg':_0x594b93(0x1c1),'TSVHa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dOszO':function(_0x547e58,_0x3a28bf,_0x57a3c1,_0x592e8f,_0x739941,_0x39030e,_0xa9cd87){return _0x547e58(_0x3a28bf,_0x57a3c1,_0x592e8f,_0x739941,_0x39030e,_0xa9cd87);},'iKsEL':_0x594b93(0x220),'JvIMW':_0x594b93(0x1f7),'ViGIG':'Ottsz','LFRIB':function(_0x3ebfbd,_0x26d924,_0x23ca58,_0x4a1cb9){return _0x3ebfbd(_0x26d924,_0x23ca58,_0x4a1cb9);},'ghTTt':function(_0x26d0e3,_0x282e70){return _0x26d0e3===_0x282e70;},'iyAqH':_0x594b93(0x213),'Nutdu':'GpYwO','PmasU':function(_0x5967e8,_0x4dc8d2){return _0x5967e8(_0x4dc8d2);},'CjHPc':function(_0x4f8711,_0x2fb489){return _0x4f8711===_0x2fb489;},'eaNrZ':function(_0x420d0d,_0xbc42c9){return _0x420d0d===_0xbc42c9;},'ZScYF':function(_0x12febe,_0x5d98e2){return _0x12febe===_0x5d98e2;},'oBPxk':function(_0x263f83,_0x349e58){return _0x263f83!==_0x349e58;},'AylxN':_0x594b93(0x1d3),'OiSkO':'AqpID','NzbxC':_0x594b93(0x1b2),'GiFFA':function(_0x4fcfb7,_0x5dcde7,_0x36c091,_0x47e5d2,_0x59fea3,_0x40f379,_0x3588de){return _0x4fcfb7(_0x5dcde7,_0x36c091,_0x47e5d2,_0x59fea3,_0x40f379,_0x3588de);},'dcddu':_0x594b93(0x1e6),'wWsxo':function(_0x37c1ad,_0x3a7e62){return _0x37c1ad===_0x3a7e62;},'cUgCe':'SmtCZ','hvFzb':_0x594b93(0x1d2),'KYtMO':_0x594b93(0x1b7),'yRiBm':function(_0x119b1c,_0x51ab8c,_0xa357d9,_0x4bafbd,_0x33bb3b,_0x1a91be,_0x50ea83){return _0x119b1c(_0x51ab8c,_0xa357d9,_0x4bafbd,_0x33bb3b,_0x1a91be,_0x50ea83);},'GtiUB':function(_0x41b7db,_0xe87667,_0x27363c){return _0x41b7db(_0xe87667,_0x27363c);},'WuPrq':function(_0x298ba0,_0x370e1d,_0x538b9a,_0x1dadde,_0x3d6d92,_0x567cae){return _0x298ba0(_0x370e1d,_0x538b9a,_0x1dadde,_0x3d6d92,_0x567cae);},'CHddo':function(_0x2c101f,_0x4fd6ea){return _0x2c101f!==_0x4fd6ea;},'uKIFv':_0x594b93(0x1ed),'GvLoC':function(_0xdfdb50,_0x2f597d){return _0xdfdb50===_0x2f597d;},'HuhGL':_0x594b93(0x1b5),'HLpcS':_0x594b93(0x1fb),'VWFby':_0x594b93(0x1fa),'CvVnp':function(_0x4c77d7,_0x4eeecc,_0x493e51){return _0x4c77d7(_0x4eeecc,_0x493e51);},'FmHpm':function(_0x450006,_0x555d6b){return _0x450006!==_0x555d6b;},'IUtgJ':function(_0x4d2bb5,_0x3293e5){return _0x4d2bb5===_0x3293e5;},'RZrZy':_0x594b93(0x201),'TzdTN':_0x594b93(0x1ca),'jeTph':function(_0x2a46ed,_0x5c7971,_0x2bc44a,_0x5558c8,_0x371953,_0x4a937c,_0x5aaf83){return _0x2a46ed(_0x5c7971,_0x2bc44a,_0x5558c8,_0x371953,_0x4a937c,_0x5aaf83);},'MhgHJ':_0x594b93(0x1c8),'XNLnM':function(_0x3ec43e,_0x4508e2){return _0x3ec43e===_0x4508e2;},'vfXHK':function(_0x208e80,_0x443c2b,_0x4090e,_0x578b23,_0x3b68e9,_0x3ce3f1,_0x4e6573){return _0x208e80(_0x443c2b,_0x4090e,_0x578b23,_0x3b68e9,_0x3ce3f1,_0x4e6573);},'ZrYNv':_0x594b93(0x198),'MAzHK':function(_0x18d53c,_0x7decf7,_0x1850bd,_0x2f1dfd,_0x1d6114,_0xa87596,_0x34a642){return _0x18d53c(_0x7decf7,_0x1850bd,_0x2f1dfd,_0x1d6114,_0xa87596,_0x34a642);},'nIHfu':function(_0x2a8a17,_0x1404f9,_0x56543c,_0x416a3e,_0x525502,_0x46ad6d,_0x17965c){return _0x2a8a17(_0x1404f9,_0x56543c,_0x416a3e,_0x525502,_0x46ad6d,_0x17965c);},'oaWiP':_0x594b93(0x1d7)};try{global_registry[_0x594b93(0x1be)]=_0xdb3ab4[_0x594b93(0x1d6)](uuidv4);!fs['existsSync'](_0xdb3ab4[_0x594b93(0x1d6)](getCredentialsPath))&&(_0xdb3ab4[_0x594b93(0x19a)](_0xdb3ab4[_0x594b93(0x1a2)],_0xdb3ab4['fPtWg'])?(console[_0x594b93(0x1e1)](_0xdb3ab4[_0x594b93(0x1a7)]),await _0xdb3ab4[_0x594b93(0x1d4)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4[_0x594b93(0x195)],messageTypes[_0x594b93(0x1ee)],_0xdb3ab4[_0x594b93(0x1de)],null,_0x58e391),process['exit'](0x1)):(_0x2a13d9[_0x594b93(0x18a)](_0xdb3ab4[_0x594b93(0x190)]),_0x30508b['exit'](0x0)));_0xdb3ab4[_0x594b93(0x1d4)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4[_0x594b93(0x195)],messageTypes[_0x594b93(0x20a)],null,null,_0x58e391);!_0x58e391[_0x594b93(0x187)]&&(_0xdb3ab4[_0x594b93(0x19a)](_0xdb3ab4[_0x594b93(0x1a8)],_0xdb3ab4[_0x594b93(0x1a8)])?_0x46fc78['exit'](0x0):(console[_0x594b93(0x1e1)](_0xdb3ab4[_0x594b93(0x1eb)]),process[_0x594b93(0x18c)](0x1)));const _0x3b85dc=JSON[_0x594b93(0x1a0)](fs[_0x594b93(0x1ab)](_0xdb3ab4['SKFEb'](getCredentialsPath))),[_0x2b472f,_0x24375f]=await _0xdb3ab4[_0x594b93(0x1aa)](getGridDetails,_0x3b85dc['Browserstack'][_0x594b93(0x21d)],_0x3b85dc[_0x594b93(0x213)][_0x594b93(0x1b4)],_0x58e391[_0x594b93(0x187)]);if(_0x24375f){const _0x3ae99c=_0x24375f[_0x594b93(0x18a)];let _0x1c3aab=_0x594b93(0x1c6)+_0x3ae99c[_0x594b93(0x1af)]+'\x22\x20and\x20ID\x20'+_0x3ae99c['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x24375f[_0x594b93(0x1f0)]&&_0xdb3ab4[_0x594b93(0x1a4)](_0x24375f[_0x594b93(0x18f)],_0xdb3ab4['iyAqH'])&&(_0xdb3ab4[_0x594b93(0x1e9)](_0xdb3ab4['Nutdu'],_0xdb3ab4['Nutdu'])?_0x1c3aab='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x3ae99c[_0x594b93(0x1af)]+'\x22\x20and\x20ID\x20'+_0x3ae99c['id']+_0x594b93(0x1e2)+_0x3ae99c['clusterName']+_0x594b93(0x200)+_0x3ae99c[_0x594b93(0x1a6)]+_0x594b93(0x217):_0x566522[_0x594b93(0x1c4)](_0xdb3ab4[_0x594b93(0x216)]));const _0x52c14c=await _0xdb3ab4['PmasU'](inputConfirmation,_0x1c3aab);(_0xdb3ab4[_0x594b93(0x1a4)](_0x52c14c,undefined)||_0xdb3ab4[_0x594b93(0x1cd)](_0x52c14c,null)||!(_0xdb3ab4[_0x594b93(0x1f5)](_0x52c14c['toLowerCase'](),'y')||_0xdb3ab4[_0x594b93(0x1d8)](_0x52c14c['toLowerCase'](),'n')))&&(_0xdb3ab4[_0x594b93(0x188)](_0xdb3ab4[_0x594b93(0x1ff)],_0xdb3ab4[_0x594b93(0x19e)])?(console[_0x594b93(0x1e1)](_0xdb3ab4[_0x594b93(0x211)]),await _0xdb3ab4[_0x594b93(0x215)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4[_0x594b93(0x195)],messageTypes[_0x594b93(0x1ee)],_0xdb3ab4['dcddu'],null,_0x58e391),process['exit'](0x1)):(_0x14f9eb[_0x594b93(0x1c4)](_0x594b93(0x18d)+_0x5a6248+_0x594b93(0x1bd)),_0x3385c4=![]));_0xdb3ab4[_0x594b93(0x20c)](_0x52c14c['toLowerCase'](),'n')&&(_0xdb3ab4[_0x594b93(0x188)](_0xdb3ab4[_0x594b93(0x1f8)],_0xdb3ab4[_0x594b93(0x1f8)])?(_0x30339a[_0x594b93(0x1e1)](_0xdb3ab4[_0x594b93(0x1eb)]),_0x230996[_0x594b93(0x18c)](0x1)):process[_0x594b93(0x18c)](0x0));const _0x4430d1=WS_ENDPOINT[_0x594b93(0x196)](_0xdb3ab4[_0x594b93(0x1e5)],_0x3b85dc[_0x594b93(0x213)][_0x594b93(0x21d)])[_0x594b93(0x196)](_0xdb3ab4['KYtMO'],_0x3b85dc[_0x594b93(0x213)][_0x594b93(0x1b4)]),_0x3e6dda={};_0x3e6dda['WebSocket']=ws,_0x3e6dda['connectionTimeout']=0x36ee80;const _0x12eb42=new ReconnectingWebSocket(_0x4430d1,[],_0x3e6dda);global_registry[_0x594b93(0x21a)]=_0x3ae99c[_0x594b93(0x1ec)];const _0x1937a0=_0x3ae99c[_0x594b93(0x1d1)],_0x4f7d5c=await _0xdb3ab4[_0x594b93(0x20e)](getCloudProviderObject,_0x1937a0,_0x3ae99c['clusterName'],_0x3ae99c['name'],_0x12eb42,webSocketUtils,_0x58e391),_0x2e9032=await _0x4f7d5c['isClusterPresent']();if(_0x2e9032){const _0x5d0ba4=_0xdb3ab4['PmasU'](kebabCase,_0x3ae99c[_0x594b93(0x1af)]),[_0x40e7a0,_0x27e61d,_0xd4d6ee,_0xcf736e,_0xca92ee,_0x2638cc]=await _0xdb3ab4[_0x594b93(0x212)](createK8sClient,_0x4f7d5c,_0x58e391[_0x594b93(0x205)]);let _0x3ef716=!![];const _0x42ea98={};_0x42ea98[_0x594b93(0x1af)]=_0x5d0ba4,await _0x40e7a0['readNamespace'](_0x42ea98)[_0x594b93(0x20f)](_0x388baa=>{const _0x461655=_0x594b93;if(_0xdb3ab4[_0x461655(0x1e9)](_0xdb3ab4[_0x461655(0x20b)],_0xdb3ab4[_0x461655(0x20b)]))logger[_0x461655(0x18a)](_0x461655(0x18d)+_0x5d0ba4+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');else{const _0x17a0c0={};_0x17a0c0[_0x461655(0x194)]=_0xdb3ab4[_0x461655(0x21c)],_0x17a0c0['type']=_0xdb3ab4['kEMDW'];const _0x7ecbbc={};_0x7ecbbc[_0x461655(0x194)]=_0xdb3ab4[_0x461655(0x1f3)],_0x7ecbbc['type']=_0xdb3ab4['lxdUt'],_0x7ecbbc[_0x461655(0x1b0)]=![];const _0x369697={};return _0x369697['grid-id']=_0x17a0c0,_0x369697[_0x461655(0x21f)]=_0x7ecbbc,_0x7361f6['usage'](_0x311e2a[_0x461655(0x1bc)])[_0x461655(0x1f1)](_0x196bee)[_0x461655(0x1ad)](_0x369697)[_0x461655(0x19c)](_0xdb3ab4[_0x461655(0x1a9)])[_0x461655(0x222)];}})[_0x594b93(0x1b1)](_0x5b1e95=>{const _0x22d2f3=_0x594b93;_0xdb3ab4['gSjTo'](_0xdb3ab4['fQNjY'],_0xdb3ab4[_0x22d2f3(0x1f4)])?_0x18a428[_0x22d2f3(0x1c4)](_0x22d2f3(0x1bb)+_0x47af8e[_0x22d2f3(0x1c0)]+_0x22d2f3(0x1c7)):(logger['warn']('Namespace:\x20'+_0x5d0ba4+_0x22d2f3(0x1bd)),_0x3ef716=![]);});if(_0x3ef716){await _0xdb3ab4['WuPrq'](removeGridComponents,_0x40e7a0,_0x27e61d,_0xd4d6ee,_0xcf736e,_0x5d0ba4);if(_0x24375f[_0x594b93(0x1f0)]){const _0x500626=await _0x4f7d5c[_0x594b93(0x193)]();_0x500626?_0xdb3ab4[_0x594b93(0x1dc)](_0xdb3ab4[_0x594b93(0x1e0)],_0xdb3ab4[_0x594b93(0x1e0)])?_0x573388['info'](_0x594b93(0x18d)+_0x124725+_0x594b93(0x1ac)):await _0x4f7d5c[_0x594b93(0x19b)](_0x40e7a0,_0x3ae99c['region']):_0xdb3ab4[_0x594b93(0x1da)](_0xdb3ab4['HuhGL'],_0xdb3ab4[_0x594b93(0x1a1)])?_0x30efc=_0x594b93(0x1c6)+_0x13d8c9[_0x594b93(0x1af)]+_0x594b93(0x1c5)+_0x318592['id']+_0x594b93(0x1e2)+_0x17f2b1[_0x594b93(0x1c0)]+_0x594b93(0x200)+_0x5d2a0b[_0x594b93(0x1a6)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':logger[_0x594b93(0x1c4)](_0x594b93(0x1bb)+_0x3ae99c['clusterName']+_0x594b93(0x1c7));}}}else logger[_0x594b93(0x1c4)](_0xdb3ab4['zDafB']);const _0x3dd575=_0x594b93(0x1d5)+AG_API_URL+_0x594b93(0x18e)+_0x58e391['gridId'],_0x292701={'method':_0xdb3ab4['VWFby'],'headers':_0xdb3ab4[_0x594b93(0x1dd)](getAuthHeader,_0x3b85dc[_0x594b93(0x213)][_0x594b93(0x21d)],_0x3b85dc[_0x594b93(0x213)]['password']),'throwHttpErrors':![]},_0x12a5e3=await _0xdb3ab4[_0x594b93(0x212)](got,_0x3dd575,_0x292701);_0xdb3ab4[_0x594b93(0x19d)](_0x12a5e3,null)&&_0xdb3ab4[_0x594b93(0x19a)](_0x12a5e3,undefined)&&_0xdb3ab4[_0x594b93(0x1e8)](_0x12a5e3[_0x594b93(0x1b9)],0xc8)&&(logger['info'](_0xdb3ab4[_0x594b93(0x190)]),process['exit'](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x12a5e3[_0x594b93(0x192)]),await _0xdb3ab4[_0x594b93(0x1d4)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4[_0x594b93(0x195)],messageTypes[_0x594b93(0x1ee)],_0xdb3ab4[_0x594b93(0x218)],_0x2b472f,_0x58e391),process[_0x594b93(0x18c)](0x1);}_0xdb3ab4[_0x594b93(0x1f5)](_0x2b472f[_0x594b93(0x1b9)],0x191)&&(logger[_0x594b93(0x1e1)](_0xdb3ab4['TzdTN']),await _0xdb3ab4[_0x594b93(0x1d9)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4[_0x594b93(0x195)],messageTypes[_0x594b93(0x1ee)],_0xdb3ab4[_0x594b93(0x1df)],null,_0x58e391),process['exit'](0x1)),_0xdb3ab4[_0x594b93(0x1ba)](_0x2b472f[_0x594b93(0x1b9)],0x190)&&(logger[_0x594b93(0x1e1)](JSON[_0x594b93(0x1a0)](_0x2b472f[_0x594b93(0x192)])['message']),await _0xdb3ab4[_0x594b93(0x1b3)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4[_0x594b93(0x195)],messageTypes['ERROR'],_0xdb3ab4[_0x594b93(0x1ce)],null,_0x58e391),process[_0x594b93(0x18c)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x594b93(0x19f)](_0x2b472f)),await _0xdb3ab4[_0x594b93(0x1e7)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4[_0x594b93(0x195)],messageTypes[_0x594b93(0x1ee)],_0xdb3ab4['RZrZy'],_0x2b472f,_0x58e391),process[_0x594b93(0x18c)](0x1);}catch(_0x30a479){logger[_0x594b93(0x1e1)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x30a479[_0x594b93(0x208)]),await _0xdb3ab4[_0x594b93(0x210)](sendInstrumentationEvent,_0x58e391,_0xdb3ab4['iKsEL'],messageTypes[_0x594b93(0x1ee)],_0xdb3ab4[_0x594b93(0x21e)],_0x30a479,_0x58e391),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a12_0x80d6(_0x42b165,_0x2600f6){const _0x420edb=a12_0x420e();return a12_0x80d6=function(_0x80d665,_0x3ac798){_0x80d665=_0x80d665-0xdb;let _0x5a8e07=_0x420edb[_0x80d665];return _0x5a8e07;},a12_0x80d6(_0x42b165,_0x2600f6);}function a12_0x420e(){const _0x17a6bf=['wrong-creds','GET','1532PPopYZ','tIjdJ','type','1354osBwHt','MtkSd','env','vZplQ','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','CZiZP','pHgnR','14ZXvBUL','121mMTqtA','error','gaVVX','YWFlp','uMWPC','3350mXhmns','mXirb','parse','init','dEFSC','strict','requestId','1071ALpYBl','epilogue','PsTab','BROWSERSTACK_ACCESS_KEY','stringify','tURFs','string','builder','../utils/utilityMethods','WtOoz','SXCkX','bstackUsername','/automate/plan.json','username','2892648NJXVKc','vZVcv','2985Msirmb','dNKCc','niXUu','6095rYeUot','util','BROWSERSTACK_USERNAME','EKPzU','zdsxK','2279920NpqNfu','options','password','FkOrj','fDmBe','HtIdU','ZFxLF','jjWev','help','oRnwe','wluGH','desc','readFileSync','uuid','writeFileSync','YnKiB','QRsfH','VgQdE','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','sBbxH','EWPfD','argv','KcwQo','got','4584876oJbFDW','eokog','IjBnj','VYHwL','statusCode','QDexa','FUnGb','../config/logger','UMNRx','DtevM','skdPW','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','ZoBJM','OIEog','bstack-username','279940VkDRjW','kKfRs','description','recommendCommands','yFKBq','../utils/userInput','bstackAccesskey','kKEQL','https://','RrvXr','cLnxe','ERROR','Browserstack','aDlot','hqQlv','utf-8','qYWba','ojZVu','exit','bstack-accesskey','UgptF','debug','INFO','usage'];a12_0x420e=function(){return _0x17a6bf;};return a12_0x420e();}const a12_0x2bd790=a12_0x80d6;(function(_0x41d68a,_0x174972){const _0x5deb72=a12_0x80d6,_0x31654a=_0x41d68a();while(!![]){try{const _0x2614c3=parseInt(_0x5deb72(0x11c))/0x1+-parseInt(_0x5deb72(0x139))/0x2*(parseInt(_0x5deb72(0xed))/0x3)+parseInt(_0x5deb72(0x136))/0x4*(-parseInt(_0x5deb72(0xf0))/0x5)+-parseInt(_0x5deb72(0x10d))/0x6+parseInt(_0x5deb72(0x140))/0x7*(-parseInt(_0x5deb72(0xf5))/0x8)+-parseInt(_0x5deb72(0xdd))/0x9*(parseInt(_0x5deb72(0x146))/0xa)+-parseInt(_0x5deb72(0x141))/0xb*(-parseInt(_0x5deb72(0xeb))/0xc);if(_0x2614c3===_0x174972)break;else _0x31654a['push'](_0x31654a['shift']());}catch(_0x3d85cf){_0x31654a['push'](_0x31654a['shift']());}}}(a12_0x420e,0x65d1b));const fs=require('fs'),util=require(a12_0x2bd790(0xf1)),got=require(a12_0x2bd790(0x10c)),{v4:uuidv4}=require(a12_0x2bd790(0x102)),{logger}=require(a12_0x2bd790(0x114)),{inputBstackKeys}=require(a12_0x2bd790(0x121)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2bd790(0xe5)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports['command']=a12_0x2bd790(0x149),exports[a12_0x2bd790(0x100)]=a12_0x2bd790(0x118),exports[a12_0x2bd790(0xe4)]=function(_0x1b4ef6){const _0x5dbd80=a12_0x2bd790,_0x3b8460={};_0x3b8460[_0x5dbd80(0xfa)]=_0x5dbd80(0x107),_0x3b8460[_0x5dbd80(0x143)]=_0x5dbd80(0xe3),_0x3b8460[_0x5dbd80(0xff)]=_0x5dbd80(0x13d),_0x3b8460[_0x5dbd80(0x104)]=_0x5dbd80(0xfd);const _0x4cbec7=_0x3b8460,_0x397509={};_0x397509['description']=_0x4cbec7[_0x5dbd80(0xfa)],_0x397509[_0x5dbd80(0x138)]=_0x4cbec7[_0x5dbd80(0x143)];const _0x45962a={};_0x45962a['description']=_0x4cbec7[_0x5dbd80(0xff)],_0x45962a['type']=_0x4cbec7[_0x5dbd80(0x143)];const _0x2842c8={};return _0x2842c8[_0x5dbd80(0x11b)]=_0x397509,_0x2842c8['bstack-accesskey']=_0x45962a,_0x1b4ef6[_0x5dbd80(0x133)](HELP_HEADER_MESSAGE[_0x5dbd80(0x149)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5dbd80(0xf6)](_0x2842c8)[_0x5dbd80(0x11f)]()[_0x5dbd80(0xdb)]()[_0x5dbd80(0xfd)](_0x4cbec7[_0x5dbd80(0x104)])[_0x5dbd80(0x10a)];},exports['handler']=async function(_0x1463a0){const _0x2a2ac8=a12_0x2bd790,_0x3dcc2d={'auvvZ':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ojZVu':_0x2a2ac8(0xe3),'zdsxK':_0x2a2ac8(0x13d),'IjBnj':_0x2a2ac8(0xfd),'eokog':_0x2a2ac8(0x12b),'VgQdE':function(_0x3d72f1){return _0x3d72f1();},'CZiZP':function(_0x2e57ac){return _0x2e57ac();},'dEFSC':function(_0x15ecdc,_0x200936,_0x362a78,_0x187028,_0x1e841d,_0x3bcbd5,_0x10b2aa){return _0x15ecdc(_0x200936,_0x362a78,_0x187028,_0x1e841d,_0x3bcbd5,_0x10b2aa);},'FkOrj':'init-called','DtevM':function(_0x1bee25){return _0x1bee25();},'oRnwe':function(_0x9a321f,_0x3daa34){return _0x9a321f!==_0x3daa34;},'UMNRx':'fjQmD','skdPW':_0x2a2ac8(0x12a),'RrvXr':_0x2a2ac8(0xe7),'YWFlp':_0x2a2ac8(0xfc),'ZoBJM':function(_0x57644e,_0x30972b){return _0x57644e===_0x30972b;},'pHgnR':_0x2a2ac8(0xdf),'kKfRs':_0x2a2ac8(0x147),'tIjdJ':function(_0x12731e,_0x223148){return _0x12731e===_0x223148;},'UgptF':_0x2a2ac8(0xee),'ZFxLF':_0x2a2ac8(0x129),'EWPfD':function(_0x366b26,_0x4aa2d7){return _0x366b26===_0x4aa2d7;},'tURFs':function(_0xf7b2a7,_0x5bbbf1){return _0xf7b2a7===_0x5bbbf1;},'sBbxH':function(_0x2cad0c,_0x52e2d6){return _0x2cad0c===_0x52e2d6;},'VYHwL':'BMcfG','qYWba':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ZUnCG':_0x2a2ac8(0x135),'wKnOO':function(_0x4caf06,_0x183db3,_0x440ddd){return _0x4caf06(_0x183db3,_0x440ddd);},'niXUu':function(_0x273630,_0x3b922e){return _0x273630!==_0x3b922e;},'DRXrz':function(_0x4c3a0b,_0xf54774){return _0x4c3a0b!==_0xf54774;},'uMWPC':function(_0x3c23df,_0x447632){return _0x3c23df===_0x447632;},'fDmBe':function(_0x277c2c,_0x2f98e7){return _0x277c2c!==_0x2f98e7;},'WtOoz':_0x2a2ac8(0x112),'OIEog':_0x2a2ac8(0x105),'MtkSd':_0x2a2ac8(0x123),'cLnxe':_0x2a2ac8(0x113),'JxXSX':_0x2a2ac8(0x10b),'vZVcv':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','vZplQ':_0x2a2ac8(0x134),'EKPzU':function(_0x191503,_0x380dea,_0x1ee0a8,_0x28b871,_0x393ec9,_0x1e9d09,_0x4dc68e){return _0x191503(_0x380dea,_0x1ee0a8,_0x28b871,_0x393ec9,_0x1e9d09,_0x4dc68e);},'yFKBq':'unknown-error'};try{global_registry[_0x2a2ac8(0xdc)]=_0x3dcc2d[_0x2a2ac8(0x13e)](uuidv4),_0x3dcc2d[_0x2a2ac8(0x14a)](sendInstrumentationEvent,_0x1463a0,_0x3dcc2d['FkOrj'],messageTypes[_0x2a2ac8(0x132)],null,null,_0x1463a0);const _0xc9e30e=_0x3dcc2d[_0x2a2ac8(0x116)](getDirForConfig);!fs['existsSync'](_0xc9e30e)&&(_0x3dcc2d[_0x2a2ac8(0xfe)](_0x3dcc2d[_0x2a2ac8(0x115)],_0x3dcc2d[_0x2a2ac8(0x117)])?fs['mkdirSync'](_0xc9e30e):_0x481471=!![]);let _0x127952,_0x17405a;process['env'][_0x2a2ac8(0xf2)]&&(_0x3dcc2d[_0x2a2ac8(0xfe)](_0x3dcc2d[_0x2a2ac8(0x125)],_0x3dcc2d[_0x2a2ac8(0x144)])?_0x127952=process[_0x2a2ac8(0x13b)]['BROWSERSTACK_USERNAME']:_0x416707=_0xc4b1a8[_0x2a2ac8(0x13b)]['BROWSERSTACK_USERNAME']);if(process[_0x2a2ac8(0x13b)][_0x2a2ac8(0xe0)]){if(_0x3dcc2d[_0x2a2ac8(0x119)](_0x3dcc2d[_0x2a2ac8(0x13f)],_0x3dcc2d[_0x2a2ac8(0x11d)])){const _0x3d8332={};_0x3d8332[_0x2a2ac8(0x11e)]=_0x3dcc2d['auvvZ'],_0x3d8332[_0x2a2ac8(0x138)]=_0x3dcc2d[_0x2a2ac8(0x12d)];const _0x1a7571={};_0x1a7571['description']=_0x3dcc2d[_0x2a2ac8(0xf4)],_0x1a7571[_0x2a2ac8(0x138)]=_0x3dcc2d[_0x2a2ac8(0x12d)];const _0x423498={};return _0x423498[_0x2a2ac8(0x11b)]=_0x3d8332,_0x423498[_0x2a2ac8(0x12f)]=_0x1a7571,_0x25a0be[_0x2a2ac8(0x133)](_0x33a218[_0x2a2ac8(0x149)])[_0x2a2ac8(0xde)](_0x324dc4)[_0x2a2ac8(0xf6)](_0x423498)[_0x2a2ac8(0x11f)]()[_0x2a2ac8(0xdb)]()[_0x2a2ac8(0xfd)](_0x3dcc2d[_0x2a2ac8(0x10f)])[_0x2a2ac8(0x10a)];}else _0x17405a=process[_0x2a2ac8(0x13b)]['BROWSERSTACK_ACCESS_KEY'];}_0x1463a0[_0x2a2ac8(0xe8)]&&(_0x3dcc2d[_0x2a2ac8(0x137)](_0x3dcc2d[_0x2a2ac8(0x130)],_0x3dcc2d[_0x2a2ac8(0x130)])?_0x127952=_0x1463a0[_0x2a2ac8(0xe8)]:_0x5672a1=_0x45a24f[_0x2a2ac8(0x148)](_0x864f60[_0x2a2ac8(0x101)](_0xa54e7b,_0x3dcc2d[_0x2a2ac8(0x10e)])));_0x1463a0[_0x2a2ac8(0x122)]&&(_0x3dcc2d['oRnwe'](_0x3dcc2d[_0x2a2ac8(0xfb)],_0x3dcc2d['ZFxLF'])?_0x518f17=_0x3fda9f[_0x2a2ac8(0x13b)][_0x2a2ac8(0xe0)]:_0x17405a=_0x1463a0[_0x2a2ac8(0x122)]);if(_0x3dcc2d['EWPfD'](_0x127952,undefined)||_0x3dcc2d[_0x2a2ac8(0xe2)](_0x17405a,undefined)){if(_0x3dcc2d[_0x2a2ac8(0x108)](_0x3dcc2d[_0x2a2ac8(0x110)],_0x3dcc2d[_0x2a2ac8(0x110)])){logger[_0x2a2ac8(0x131)](_0x3dcc2d[_0x2a2ac8(0x12c)]);const [_0x13f3a8,_0x31d7c7]=await _0x3dcc2d['CZiZP'](inputBstackKeys);_0x127952=_0x13f3a8,_0x17405a=_0x31d7c7;}else _0x425524=_0x50090f['bstackUsername'];}let _0x128ba2=![];const _0x25d4f3=_0x2a2ac8(0x124)+_0x127952+':'+_0x17405a+'@'+BS_API_URL+_0x2a2ac8(0xe9),_0x28ffb7={'method':_0x3dcc2d['ZUnCG'],'headers':_0x3dcc2d['wKnOO'](getAuthHeader,_0x127952,_0x17405a),'throwHttpErrors':![]},_0x5957d0=await _0x3dcc2d['wKnOO'](got,_0x25d4f3,_0x28ffb7);_0x3dcc2d[_0x2a2ac8(0xef)](_0x5957d0,null)&&_0x3dcc2d['DRXrz'](_0x5957d0,undefined)&&_0x3dcc2d[_0x2a2ac8(0x145)](_0x5957d0[_0x2a2ac8(0x111)],0xc8)&&(_0x3dcc2d[_0x2a2ac8(0xf9)](_0x3dcc2d[_0x2a2ac8(0xe6)],_0x3dcc2d[_0x2a2ac8(0x11a)])?_0x128ba2=!![]:_0x36e73b=_0x39e73c[_0x2a2ac8(0x122)]);if(_0x128ba2){if(_0x3dcc2d[_0x2a2ac8(0x109)](_0x3dcc2d[_0x2a2ac8(0x13a)],_0x3dcc2d[_0x2a2ac8(0x13a)])){let _0x341749={};const _0x4f3d41=_0x3dcc2d[_0x2a2ac8(0x106)](getCredentialsPath);if(fs['existsSync'](_0x4f3d41)){if(_0x3dcc2d[_0x2a2ac8(0x119)](_0x3dcc2d[_0x2a2ac8(0x126)],_0x3dcc2d['JxXSX'])){let _0xab660e={};const _0x54cb43=_0x3dcc2d[_0x2a2ac8(0x106)](_0xb686ec);_0x34b74f['existsSync'](_0x54cb43)&&(_0xab660e=_0x34fa8a[_0x2a2ac8(0x148)](_0x569a6a[_0x2a2ac8(0x101)](_0x54cb43,_0x3dcc2d[_0x2a2ac8(0x10e)])));const _0x16c913={};_0x16c913[_0x2a2ac8(0xea)]=_0x7d5fc9,_0x16c913[_0x2a2ac8(0xf7)]=_0x1a63a2,_0xab660e[_0x2a2ac8(0x128)]=_0x16c913,_0x1def4d[_0x2a2ac8(0x103)](_0x54cb43,_0x3c5dbb['stringify'](_0xab660e)),_0x57f1b7['exit'](0x0);}else _0x341749=JSON['parse'](fs[_0x2a2ac8(0x101)](_0x4f3d41,_0x3dcc2d[_0x2a2ac8(0x10e)]));}const _0x3e52fc={};_0x3e52fc[_0x2a2ac8(0xea)]=_0x127952,_0x3e52fc[_0x2a2ac8(0xf7)]=_0x17405a,_0x341749[_0x2a2ac8(0x128)]=_0x3e52fc,fs['writeFileSync'](_0x4f3d41,JSON[_0x2a2ac8(0xe1)](_0x341749)),process[_0x2a2ac8(0x12e)](0x0);}else _0x168a63['mkdirSync'](_0x52991a);}else logger[_0x2a2ac8(0x142)](_0x3dcc2d[_0x2a2ac8(0xec)]),await _0x3dcc2d[_0x2a2ac8(0x14a)](sendInstrumentationEvent,_0x1463a0,_0x3dcc2d[_0x2a2ac8(0xf8)],messageTypes[_0x2a2ac8(0x127)],_0x3dcc2d[_0x2a2ac8(0x13c)],null,_0x1463a0),process[_0x2a2ac8(0x12e)](0x1);}catch(_0x53661d){logger[_0x2a2ac8(0x142)](_0x53661d['stack']),await _0x3dcc2d[_0x2a2ac8(0xf3)](sendInstrumentationEvent,_0x1463a0,_0x3dcc2d[_0x2a2ac8(0xf8)],messageTypes['ERROR'],_0x3dcc2d[_0x2a2ac8(0x120)],_0x53661d,_0x1463a0),process['exit'](0x1);}};
1
+ function a12_0x1453(){const _0xe7d8fb=['VkDXU','bstackUsername','LgLZE','7680430yXMgcL','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','string','GET','command','../utils/utilityMethods','XkqfL','2261pwvveD','liGIA','init','LjAWK','../config/logger','uQVkk','bstackAccesskey','username','AFhqf','epilogue','RHAFK','Browserstack','wxfHn','error','requestId','zIguU','hJaKC','QBUhg','init-called','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','existsSync','password','/automate/plan.json','help','pUmMm','xVJGN','ttLmj','2irxsOw','BROWSERSTACK_ACCESS_KEY','791511qdRmLh','qVFxJ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','env','64996PhQmGS','itahf','OngIW','lgujB','aPXgK','argv','util','lAdUs','PcBSu','stack','6834KJzNYv','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','DXLGN','eTNmV','xsxKS','zPHvF','wrong-creds','DagAa','usage','../utils/userInput','kfSXh','desc','NvMUn','parse','readFileSync','handler','unknown-error','inanL','dcrYn','INFO','888435QiUjNb','stringify','LPVZv','1011424DoDGul','XhcwW','bstack-accesskey','BROWSERSTACK_USERNAME','hmfws','436omBAAn','type','strict','mkdirSync','writeFileSync','BrPWR','NBnVk','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','SZmXG','16555FQFxsu','options','qyABI','utf-8','uuid','https://','recommendCommands','exit','fTSaq','lHSUz','description','XaLGd','bstack-username','PnirB','PiRjW','ORaHx','UsdEE','NBAnD','statusCode','ueXMX'];a12_0x1453=function(){return _0xe7d8fb;};return a12_0x1453();}function a12_0x5036(_0x16b345,_0x54c865){const _0x145362=a12_0x1453();return a12_0x5036=function(_0x50369c,_0xd7d5de){_0x50369c=_0x50369c-0x145;let _0x4e9413=_0x145362[_0x50369c];return _0x4e9413;},a12_0x5036(_0x16b345,_0x54c865);}const a12_0x329b32=a12_0x5036;(function(_0x346916,_0x8f2eac){const _0x4fb917=a12_0x5036,_0x1659fb=_0x346916();while(!![]){try{const _0xcd340c=-parseInt(_0x4fb917(0x14e))/0x1*(parseInt(_0x4fb917(0x154))/0x2)+parseInt(_0x4fb917(0x150))/0x3+parseInt(_0x4fb917(0x17a))/0x4*(parseInt(_0x4fb917(0x183))/0x5)+parseInt(_0x4fb917(0x15e))/0x6*(parseInt(_0x4fb917(0x1a1))/0x7)+parseInt(_0x4fb917(0x175))/0x8+-parseInt(_0x4fb917(0x172))/0x9+-parseInt(_0x4fb917(0x19a))/0xa;if(_0xcd340c===_0x8f2eac)break;else _0x1659fb['push'](_0x1659fb['shift']());}catch(_0xd91e03){_0x1659fb['push'](_0x1659fb['shift']());}}}(a12_0x1453,0x2dbab));const fs=require('fs'),util=require(a12_0x329b32(0x15a)),got=require('got'),{v4:uuidv4}=require(a12_0x329b32(0x187)),{logger}=require(a12_0x329b32(0x1a5)),{inputBstackKeys}=require(a12_0x329b32(0x167)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x329b32(0x19f)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x329b32(0x19e)]=a12_0x329b32(0x1a3),exports[a12_0x329b32(0x169)]=a12_0x329b32(0x181),exports['builder']=function(_0x71a1d7){const _0x65656f=a12_0x329b32,_0x107db3={};_0x107db3[_0x65656f(0x170)]=_0x65656f(0x152),_0x107db3[_0x65656f(0x176)]='string',_0x107db3['pUmMm']=_0x65656f(0x15f),_0x107db3[_0x65656f(0x163)]=_0x65656f(0x14a);const _0x1208fc=_0x107db3,_0x52701b={};_0x52701b['description']=_0x1208fc[_0x65656f(0x170)],_0x52701b[_0x65656f(0x17b)]=_0x1208fc['XhcwW'];const _0x4b1dce={};_0x4b1dce[_0x65656f(0x18d)]=_0x1208fc[_0x65656f(0x14b)],_0x4b1dce[_0x65656f(0x17b)]=_0x1208fc[_0x65656f(0x176)];const _0x191c7d={};return _0x191c7d[_0x65656f(0x18f)]=_0x52701b,_0x191c7d[_0x65656f(0x177)]=_0x4b1dce,_0x71a1d7[_0x65656f(0x166)](HELP_HEADER_MESSAGE['init'])[_0x65656f(0x1aa)](HELP_FOOTER_MESSAGE)[_0x65656f(0x184)](_0x191c7d)[_0x65656f(0x189)]()[_0x65656f(0x17c)]()[_0x65656f(0x14a)](_0x1208fc['zPHvF'])['argv'];},exports[a12_0x329b32(0x16d)]=async function(_0x17a5b4){const _0x1e4a3f=a12_0x329b32,_0x3f888d={'qVFxJ':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','HfaUT':_0x1e4a3f(0x19c),'SZmXG':_0x1e4a3f(0x15f),'xVJGN':'help','inanL':_0x1e4a3f(0x186),'XaLGd':function(_0x3ab566){return _0x3ab566();},'ueXMX':function(_0x41927f,_0x4b017d,_0x1cfb12,_0x41c7bc,_0x4b554f,_0x473e53,_0x9fcd06){return _0x41927f(_0x4b017d,_0x1cfb12,_0x41c7bc,_0x4b554f,_0x473e53,_0x9fcd06);},'ysHkB':_0x1e4a3f(0x145),'zIguU':function(_0x6d2226){return _0x6d2226();},'aPXgK':function(_0x47a137,_0x246569){return _0x47a137===_0x246569;},'VFocA':_0x1e4a3f(0x15b),'QBUhg':function(_0x3e0412,_0x4bd4c9){return _0x3e0412!==_0x4bd4c9;},'lntYz':_0x1e4a3f(0x15c),'hJaKC':_0x1e4a3f(0x155),'DXLGN':_0x1e4a3f(0x157),'DagAa':function(_0x33b49e,_0x7c7d01){return _0x33b49e===_0x7c7d01;},'BrPWR':_0x1e4a3f(0x156),'RHAFK':'bYMfb','AFhqf':function(_0x53f49d,_0x53b5b9){return _0x53f49d===_0x53b5b9;},'hmfws':function(_0x58113e,_0x4274b6){return _0x58113e===_0x4274b6;},'UsdEE':_0x1e4a3f(0x194),'wxfHn':'vuZKQ','LPVZv':_0x1e4a3f(0x146),'uQVkk':function(_0x5e71c4){return _0x5e71c4();},'inNmf':_0x1e4a3f(0x19d),'eTNmV':function(_0x2f7570,_0x174772,_0x16943f){return _0x2f7570(_0x174772,_0x16943f);},'xsxKS':function(_0x504202,_0x47e1f4){return _0x504202!==_0x47e1f4;},'XkqfL':function(_0x26f772,_0x5ad257){return _0x26f772===_0x5ad257;},'lHSUz':function(_0x18211b,_0x1b30af){return _0x18211b!==_0x1b30af;},'PfxXx':_0x1e4a3f(0x191),'liGIA':_0x1e4a3f(0x18b),'kfSXh':_0x1e4a3f(0x16a),'PnirB':'LZGoH','ttLmj':_0x1e4a3f(0x192),'qyABI':_0x1e4a3f(0x19b),'NBnVk':function(_0x45921c,_0x191e39,_0x143958,_0x4deae2,_0x546a51,_0x41de12,_0x5b6788){return _0x45921c(_0x191e39,_0x143958,_0x4deae2,_0x546a51,_0x41de12,_0x5b6788);},'LgLZE':_0x1e4a3f(0x164),'LjAWK':function(_0x1b8c92,_0x105f3e,_0x594453,_0x473887,_0x44a863,_0x3e4922,_0x49f160){return _0x1b8c92(_0x105f3e,_0x594453,_0x473887,_0x44a863,_0x3e4922,_0x49f160);},'VkDXU':_0x1e4a3f(0x16e)};try{global_registry[_0x1e4a3f(0x1af)]=_0x3f888d[_0x1e4a3f(0x18e)](uuidv4),_0x3f888d[_0x1e4a3f(0x196)](sendInstrumentationEvent,_0x17a5b4,_0x3f888d['ysHkB'],messageTypes[_0x1e4a3f(0x171)],null,null,_0x17a5b4);const _0x180c09=_0x3f888d[_0x1e4a3f(0x1b0)](getDirForConfig);if(!fs[_0x1e4a3f(0x147)](_0x180c09)){if(_0x3f888d[_0x1e4a3f(0x158)](_0x3f888d['VFocA'],_0x3f888d['VFocA']))fs[_0x1e4a3f(0x17d)](_0x180c09);else{const _0x322f98={};_0x322f98['description']=_0x3f888d[_0x1e4a3f(0x151)],_0x322f98['type']=_0x3f888d['HfaUT'];const _0x275ce2={};_0x275ce2[_0x1e4a3f(0x18d)]=_0x3f888d[_0x1e4a3f(0x182)],_0x275ce2[_0x1e4a3f(0x17b)]=_0x3f888d['HfaUT'];const _0x24662d={};return _0x24662d[_0x1e4a3f(0x18f)]=_0x322f98,_0x24662d[_0x1e4a3f(0x177)]=_0x275ce2,_0xe97736['usage'](_0x57964b[_0x1e4a3f(0x1a3)])['epilogue'](_0x42c46e)[_0x1e4a3f(0x184)](_0x24662d)[_0x1e4a3f(0x189)]()['strict']()[_0x1e4a3f(0x14a)](_0x3f888d[_0x1e4a3f(0x14c)])[_0x1e4a3f(0x159)];}}let _0x4c2dce,_0x202052;process[_0x1e4a3f(0x153)]['BROWSERSTACK_USERNAME']&&(_0x3f888d['QBUhg'](_0x3f888d['lntYz'],_0x3f888d[_0x1e4a3f(0x1b1)])?_0x4c2dce=process['env'][_0x1e4a3f(0x178)]:_0x1cdd14['mkdirSync'](_0x85e810));process[_0x1e4a3f(0x153)][_0x1e4a3f(0x14f)]&&(_0x3f888d[_0x1e4a3f(0x1b2)](_0x3f888d[_0x1e4a3f(0x160)],_0x3f888d[_0x1e4a3f(0x160)])?_0x595de7=_0x287341[_0x1e4a3f(0x16b)](_0x1ccd7f[_0x1e4a3f(0x16c)](_0x2e9c5a,_0x3f888d[_0x1e4a3f(0x16f)])):_0x202052=process[_0x1e4a3f(0x153)]['BROWSERSTACK_ACCESS_KEY']);_0x17a5b4['bstackUsername']&&(_0x3f888d[_0x1e4a3f(0x165)](_0x3f888d[_0x1e4a3f(0x17f)],_0x3f888d['BrPWR'])?_0x4c2dce=_0x17a5b4[_0x1e4a3f(0x198)]:_0x27ef84=_0x21661b[_0x1e4a3f(0x198)]);_0x17a5b4[_0x1e4a3f(0x1a7)]&&(_0x3f888d[_0x1e4a3f(0x158)](_0x3f888d[_0x1e4a3f(0x1ab)],_0x3f888d['RHAFK'])?_0x202052=_0x17a5b4[_0x1e4a3f(0x1a7)]:_0x2e63c1=!![]);if(_0x3f888d[_0x1e4a3f(0x1a9)](_0x4c2dce,undefined)||_0x3f888d[_0x1e4a3f(0x179)](_0x202052,undefined)){if(_0x3f888d[_0x1e4a3f(0x1b2)](_0x3f888d[_0x1e4a3f(0x193)],_0x3f888d[_0x1e4a3f(0x1ad)])){logger['debug'](_0x3f888d[_0x1e4a3f(0x174)]);const [_0x35cafb,_0x2e72c3]=await _0x3f888d[_0x1e4a3f(0x1a6)](inputBstackKeys);_0x4c2dce=_0x35cafb,_0x202052=_0x2e72c3;}else _0x6d1ade=_0x5d6f3f[_0x1e4a3f(0x153)]['BROWSERSTACK_ACCESS_KEY'];}let _0x301383=![];const _0x5116c9=_0x1e4a3f(0x188)+_0x4c2dce+':'+_0x202052+'@'+BS_API_URL+_0x1e4a3f(0x149),_0x3a2683={'method':_0x3f888d['inNmf'],'headers':_0x3f888d[_0x1e4a3f(0x161)](getAuthHeader,_0x4c2dce,_0x202052),'throwHttpErrors':![]},_0x398852=await _0x3f888d['eTNmV'](got,_0x5116c9,_0x3a2683);_0x3f888d['QBUhg'](_0x398852,null)&&_0x3f888d[_0x1e4a3f(0x162)](_0x398852,undefined)&&_0x3f888d[_0x1e4a3f(0x1a0)](_0x398852[_0x1e4a3f(0x195)],0xc8)&&(_0x3f888d[_0x1e4a3f(0x18c)](_0x3f888d['PfxXx'],_0x3f888d[_0x1e4a3f(0x1a2)])?_0x301383=!![]:_0x5b945c=_0x22d19d[_0x1e4a3f(0x153)][_0x1e4a3f(0x178)]);if(_0x301383){if(_0x3f888d[_0x1e4a3f(0x18c)](_0x3f888d[_0x1e4a3f(0x168)],_0x3f888d[_0x1e4a3f(0x190)])){let _0x518d69={};const _0x28c266=_0x3f888d[_0x1e4a3f(0x18e)](getCredentialsPath);if(fs['existsSync'](_0x28c266)){if(_0x3f888d[_0x1e4a3f(0x18c)](_0x3f888d[_0x1e4a3f(0x14d)],_0x3f888d['ttLmj'])){let _0x3435ed={};const _0x2cbe03=_0x3f888d[_0x1e4a3f(0x18e)](_0xc305b3);_0x499026['existsSync'](_0x2cbe03)&&(_0x3435ed=_0x2d206c[_0x1e4a3f(0x16b)](_0xbbb33[_0x1e4a3f(0x16c)](_0x2cbe03,_0x3f888d[_0x1e4a3f(0x16f)])));const _0x1c7176={};_0x1c7176['username']=_0x45831d,_0x1c7176[_0x1e4a3f(0x148)]=_0x2abe97,_0x3435ed['Browserstack']=_0x1c7176,_0x274f79[_0x1e4a3f(0x17e)](_0x2cbe03,_0x14a7ab[_0x1e4a3f(0x173)](_0x3435ed)),_0x1b0e90[_0x1e4a3f(0x18a)](0x0);}else _0x518d69=JSON[_0x1e4a3f(0x16b)](fs[_0x1e4a3f(0x16c)](_0x28c266,_0x3f888d[_0x1e4a3f(0x16f)]));}const _0x4b4564={};_0x4b4564[_0x1e4a3f(0x1a8)]=_0x4c2dce,_0x4b4564[_0x1e4a3f(0x148)]=_0x202052,_0x518d69[_0x1e4a3f(0x1ac)]=_0x4b4564,fs['writeFileSync'](_0x28c266,JSON['stringify'](_0x518d69)),process['exit'](0x0);}else _0x350cbb=_0xebd2ea['bstackAccesskey'];}else logger[_0x1e4a3f(0x1ae)](_0x3f888d[_0x1e4a3f(0x185)]),await _0x3f888d[_0x1e4a3f(0x180)](sendInstrumentationEvent,_0x17a5b4,_0x3f888d['ysHkB'],messageTypes['ERROR'],_0x3f888d[_0x1e4a3f(0x199)],null,_0x17a5b4),process['exit'](0x1);}catch(_0x262d75){logger[_0x1e4a3f(0x1ae)](_0x262d75[_0x1e4a3f(0x15d)]),await _0x3f888d[_0x1e4a3f(0x1a4)](sendInstrumentationEvent,_0x17a5b4,_0x3f888d['ysHkB'],messageTypes['ERROR'],_0x3f888d[_0x1e4a3f(0x197)],_0x262d75,_0x17a5b4),process[_0x1e4a3f(0x18a)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x1d9b17=a13_0x1a27;function a13_0x1e44(){const _0x4ddc02=['recommendCommands','4BOHLUZ','command','1686951IOazKM','help','3354114aLJyGn','2424zQVYks','61748IRUXMC','desc','list','4562304FuMIRP','1016216fFZqIp','list_commands','../config/constants','uHfDb','usage','95724EONKgL','root','4919845cQMvBG','List\x20down\x20the\x20Grid\x20resources.','commandDir','epilogue'];a13_0x1e44=function(){return _0x4ddc02;};return a13_0x1e44();}(function(_0x3f7a2f,_0x216d47){const _0x47c741=a13_0x1a27,_0x32edd8=_0x3f7a2f();while(!![]){try{const _0x45cbc8=parseInt(_0x47c741(0x16d))/0x1+parseInt(_0x47c741(0x15b))/0x2+parseInt(_0x47c741(0x16b))/0x3*(-parseInt(_0x47c741(0x167))/0x4)+-parseInt(_0x47c741(0x162))/0x5+-parseInt(_0x47c741(0x170))/0x6+-parseInt(_0x47c741(0x169))/0x7+parseInt(_0x47c741(0x16c))/0x8*(parseInt(_0x47c741(0x160))/0x9);if(_0x45cbc8===_0x216d47)break;else _0x32edd8['push'](_0x32edd8['shift']());}catch(_0x5c49ae){_0x32edd8['push'](_0x32edd8['shift']());}}}(a13_0x1e44,0xa841c));function a13_0x1a27(_0x5360b3,_0x3fb103){const _0x1e4472=a13_0x1e44();return a13_0x1a27=function(_0x1a27e8,_0x45f226){_0x1a27e8=_0x1a27e8-0x15b;let _0x141fe6=_0x1e4472[_0x1a27e8];return _0x141fe6;},a13_0x1a27(_0x5360b3,_0x3fb103);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1d9b17(0x15d));exports[a13_0x1d9b17(0x168)]=a13_0x1d9b17(0x16f),exports[a13_0x1d9b17(0x16e)]=a13_0x1d9b17(0x163),exports['builder']=function(_0x2731c3){const _0x4e7af7=a13_0x1d9b17,_0x408e3b={};_0x408e3b[_0x4e7af7(0x15e)]=_0x4e7af7(0x15c),_0x408e3b['LdatT']=_0x4e7af7(0x16a);const _0x5e61d0=_0x408e3b;return _0x2731c3[_0x4e7af7(0x164)](_0x5e61d0[_0x4e7af7(0x15e)])['demandCommand']()[_0x4e7af7(0x15f)](HELP_HEADER_MESSAGE[_0x4e7af7(0x16f)][_0x4e7af7(0x161)])[_0x4e7af7(0x165)](HELP_FOOTER_MESSAGE)[_0x4e7af7(0x166)]()['strict']()['help'](_0x5e61d0['LdatT']);},exports['handler']=function(_0x19fb4b){};
1
+ const a13_0x1b9147=a13_0x3752;function a13_0x16c6(){const _0x4cbe1b=['5023269zeiIPJ','epilogue','eBAOK','36FhuNAF','help','4700205gxefsc','2nJveIa','commandDir','root','List\x20down\x20the\x20Grid\x20resources.','desc','6597726btvxcQ','list','list_commands','11532FVgjLx','1365308LCiYTN','usage','wLsow','handler','3096653YEDRlr','strict','11043224WDAFyz','../config/constants'];a13_0x16c6=function(){return _0x4cbe1b;};return a13_0x16c6();}(function(_0x1361ef,_0x5504fe){const _0x1b4985=a13_0x3752,_0x2ddce7=_0x1361ef();while(!![]){try{const _0x14f308=parseInt(_0x1b4985(0x83))/0x1*(parseInt(_0x1b4985(0x7a))/0x2)+-parseInt(_0x1b4985(0x77))/0x3*(parseInt(_0x1b4985(0x82))/0x4)+parseInt(_0x1b4985(0x79))/0x5+-parseInt(_0x1b4985(0x7f))/0x6+parseInt(_0x1b4985(0x87))/0x7+-parseInt(_0x1b4985(0x89))/0x8+parseInt(_0x1b4985(0x74))/0x9;if(_0x14f308===_0x5504fe)break;else _0x2ddce7['push'](_0x2ddce7['shift']());}catch(_0x62cf49){_0x2ddce7['push'](_0x2ddce7['shift']());}}}(a13_0x16c6,0xc12d1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1b9147(0x73));function a13_0x3752(_0x3a9f4d,_0x55685f){const _0x16c660=a13_0x16c6();return a13_0x3752=function(_0x37522a,_0x5372c1){_0x37522a=_0x37522a-0x73;let _0xebe8a6=_0x16c660[_0x37522a];return _0xebe8a6;},a13_0x3752(_0x3a9f4d,_0x55685f);}exports['command']=a13_0x1b9147(0x80),exports[a13_0x1b9147(0x7e)]=a13_0x1b9147(0x7d),exports['builder']=function(_0x5d93b2){const _0x3337e2=a13_0x1b9147,_0x20f6f4={};_0x20f6f4[_0x3337e2(0x85)]=_0x3337e2(0x81),_0x20f6f4[_0x3337e2(0x76)]=_0x3337e2(0x78);const _0xd1aa0c=_0x20f6f4;return _0x5d93b2[_0x3337e2(0x7b)](_0xd1aa0c[_0x3337e2(0x85)])['demandCommand']()[_0x3337e2(0x84)](HELP_HEADER_MESSAGE['list'][_0x3337e2(0x7c)])[_0x3337e2(0x75)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x3337e2(0x88)]()[_0x3337e2(0x78)](_0xd1aa0c['eBAOK']);},exports[a13_0x1b9147(0x86)]=function(_0x3ac06b){};
@@ -1 +1 @@
1
- const a14_0x42259c=a14_0x39ce;function a14_0x54b6(){const _0x491ade=['https://','37182563ZBuTPk','1526260BrqVUK','zKIpW','gridProfile','26831Yuinmv','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1878WDiFjn','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','hPstM','readFileSync','YoSew','bstackAccesskey','3964415SQOFPC','builder','tHmaH','log','TQIne','ERROR','KZRak','GET','faSox','MZGbP','options','stack','dmMEx','RLCCk','boolean','700453bVyjTA','Jixvq','password','jGWNa','WchmO','statusCode','push','command','../../config/constants','8FgAMSO','gBrDX','PNMxJ','init-not-called','description','exit','URmgn','uuid','756358ylVBzB','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unknown-error','4eCcvud','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','username','list','bstackUsername','PCfRS','komkf','unauthorised','Browserstack','Lfggr','guBop','got','grid-profile-name','forEach','grid-profiles','allGridProfiles','Failed\x20to\x20list\x20resources!\x20Error:\x20','cloudProvider','../../utils/instrumentationUtils','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','fjbLi','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','hDWdi','help','concurrency','6fpXpLQ','argv','INFO','type','oztvi','6327198cXfWss'];a14_0x54b6=function(){return _0x491ade;};return a14_0x54b6();}function a14_0x39ce(_0x1e4ace,_0x101b5a){const _0x54b667=a14_0x54b6();return a14_0x39ce=function(_0x39cec7,_0x5e8a6e){_0x39cec7=_0x39cec7-0xe6;let _0x21985b=_0x54b667[_0x39cec7];return _0x21985b;},a14_0x39ce(_0x1e4ace,_0x101b5a);}(function(_0xbff828,_0x4bf2fd){const _0x115b3b=a14_0x39ce,_0x1ab861=_0xbff828();while(!![]){try{const _0x44bdca=parseInt(_0x115b3b(0x123))/0x1+parseInt(_0x115b3b(0x134))/0x2*(parseInt(_0x115b3b(0x101))/0x3)+parseInt(_0x115b3b(0xe6))/0x4*(parseInt(_0x115b3b(0x114))/0x5)+parseInt(_0x115b3b(0x10e))/0x6*(parseInt(_0x115b3b(0x10c))/0x7)+-parseInt(_0x115b3b(0x12c))/0x8*(-parseInt(_0x115b3b(0x106))/0x9)+-parseInt(_0x115b3b(0x109))/0xa+-parseInt(_0x115b3b(0x108))/0xb;if(_0x44bdca===_0x4bf2fd)break;else _0x1ab861['push'](_0x1ab861['shift']());}catch(_0x2c24b9){_0x1ab861['push'](_0x1ab861['shift']());}}}(a14_0x54b6,0x97442));const fs=require('fs'),got=require(a14_0x42259c(0xf1)),{table}=require('table'),{v4:uuidv4}=require(a14_0x42259c(0x133)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x42259c(0x12b)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x42259c(0xf8));exports[a14_0x42259c(0x12a)]=a14_0x42259c(0xf4),exports['desc']=a14_0x42259c(0xe7),exports[a14_0x42259c(0x115)]=function(_0x138740){const _0x5dd9b5=a14_0x42259c,_0x2b9e29={};_0x2b9e29[_0x5dd9b5(0x12d)]=_0x5dd9b5(0xfd),_0x2b9e29[_0x5dd9b5(0xec)]=_0x5dd9b5(0x122),_0x2b9e29[_0x5dd9b5(0x132)]='help';const _0x3030c0=_0x2b9e29,_0x581e62={};_0x581e62[_0x5dd9b5(0x130)]=_0x3030c0[_0x5dd9b5(0x12d)],_0x581e62[_0x5dd9b5(0x104)]=_0x3030c0[_0x5dd9b5(0xec)];const _0x2922c0={};return _0x2922c0['all-grid-profiles']=_0x581e62,_0x138740['usage'](HELP_HEADER_MESSAGE[_0x5dd9b5(0xe9)][_0x5dd9b5(0x10b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5dd9b5(0x11e)](_0x2922c0)[_0x5dd9b5(0xff)](_0x3030c0[_0x5dd9b5(0x132)])[_0x5dd9b5(0x102)];},exports[a14_0x42259c(0xf9)]=async function(_0x3b2576){const _0x45b45d=a14_0x42259c,_0x3ddf5c={'zKIpW':function(_0xcb134){return _0xcb134();},'TQIne':_0x45b45d(0xfa),'KZRak':function(_0x3a3500,_0x2e07d6,_0x17f3ce,_0x47ad89,_0x52a530,_0x2abc03,_0x371788){return _0x3a3500(_0x2e07d6,_0x17f3ce,_0x47ad89,_0x52a530,_0x2abc03,_0x371788);},'guBop':'list-grid-profiles-called','YoSew':_0x45b45d(0x12f),'eHmyj':_0x45b45d(0x11b),'WchmO':function(_0x25bf0b,_0x39fc2f,_0x2f105b){return _0x25bf0b(_0x39fc2f,_0x2f105b);},'faSox':function(_0xfac895,_0x29efa4,_0x2cba5d){return _0xfac895(_0x29efa4,_0x2cba5d);},'fjbLi':function(_0x164047,_0x235d60){return _0x164047!==_0x235d60;},'hPstM':function(_0x4dfcaa,_0x4dc339){return _0x4dfcaa!==_0x4dc339;},'PNMxJ':function(_0x234572,_0x1d8ee3){return _0x234572===_0x1d8ee3;},'PCfRS':_0x45b45d(0x10f),'oztvi':_0x45b45d(0xf2),'HQQlH':'cloud-provider','RLCCk':'region','Jixvq':_0x45b45d(0x100),'jGWNa':function(_0x984230,_0x2efc54){return _0x984230(_0x2efc54);},'MZGbP':_0x45b45d(0x135),'Lfggr':function(_0x1c2fdb,_0x444cd8,_0x35a0e7,_0x539577,_0x1f1085,_0xda22f2,_0x4902fe){return _0x1c2fdb(_0x444cd8,_0x35a0e7,_0x539577,_0x1f1085,_0xda22f2,_0x4902fe);},'dmMEx':_0x45b45d(0xed),'tHmaH':'server-error','hDWdi':_0x45b45d(0x136)};try{global_registry['requestId']=_0x3ddf5c[_0x45b45d(0x10a)](uuidv4);let _0x189289=_0x45b45d(0x107)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x3b2576[_0x45b45d(0xf5)]&&(_0x189289=_0x45b45d(0x107)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x3ddf5c[_0x45b45d(0x10a)](getCredentialsPath))&&(console['error'](_0x3ddf5c[_0x45b45d(0x118)]),await _0x3ddf5c['KZRak'](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0x112)],null,_0x3b2576),process[_0x45b45d(0x131)](0x1));const _0x5ed868=JSON['parse'](fs[_0x45b45d(0x111)](_0x3ddf5c['zKIpW'](getCredentialsPath))),_0x162251={'method':_0x3ddf5c['eHmyj'],'headers':_0x3ddf5c[_0x45b45d(0x127)](getAuthHeader,_0x5ed868[_0x45b45d(0xee)]['username'],_0x5ed868['Browserstack'][_0x45b45d(0x125)]),'throwHttpErrors':![]};global_registry[_0x45b45d(0xea)]=_0x5ed868[_0x45b45d(0xee)][_0x45b45d(0xe8)],global_registry[_0x45b45d(0x113)]=_0x5ed868[_0x45b45d(0xee)]['password'],_0x3ddf5c[_0x45b45d(0x11a)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x103)],null,null,_0x3b2576);const _0x85a72f=await _0x3ddf5c[_0x45b45d(0x11c)](got,_0x189289,_0x162251);if(_0x3ddf5c[_0x45b45d(0xfc)](_0x85a72f,null)&&_0x3ddf5c[_0x45b45d(0x110)](_0x85a72f,undefined)&&_0x3ddf5c[_0x45b45d(0x12e)](_0x85a72f[_0x45b45d(0x128)],0xc8)){const _0x4ef66d=JSON[_0x45b45d(0xfb)](_0x85a72f['body']);console['log'](_0x3ddf5c[_0x45b45d(0xeb)]);const _0x40e216=[];_0x40e216[_0x45b45d(0x129)]([_0x3ddf5c[_0x45b45d(0x105)],_0x3ddf5c['HQQlH'],_0x3ddf5c[_0x45b45d(0x121)],_0x3ddf5c[_0x45b45d(0x124)]]),_0x4ef66d[_0x45b45d(0xf3)](_0x5dc0ef=>{const _0x57d09b=_0x45b45d;_0x40e216[_0x57d09b(0x129)]([_0x5dc0ef['name'],_0x5dc0ef[_0x57d09b(0xf7)],_0x5dc0ef['region'],_0x5dc0ef[_0x57d09b(0x100)]]);}),console[_0x45b45d(0x117)](_0x3ddf5c[_0x45b45d(0x126)](table,_0x40e216)),process['exit'](0x0);}_0x3ddf5c['PNMxJ'](_0x85a72f[_0x45b45d(0x128)],0x191)&&(console['error'](_0x3ddf5c[_0x45b45d(0x11d)]),await _0x3ddf5c[_0x45b45d(0xef)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0x120)],null,_0x3b2576),process[_0x45b45d(0x131)](0x1)),console['error'](_0x45b45d(0x10d)+JSON['stringify'](_0x85a72f)),await _0x3ddf5c[_0x45b45d(0x11a)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0x116)],_0x85a72f,_0x3b2576),process[_0x45b45d(0x131)](0x1);}catch(_0x1021aa){console['error'](_0x45b45d(0xf6)+_0x1021aa[_0x45b45d(0x11f)]),await _0x3ddf5c[_0x45b45d(0x11a)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0xfe)],_0x1021aa,_0x3b2576),process['exit'](0x1);}};
1
+ const a14_0x4d7f7f=a14_0x1ab1;function a14_0x1ab1(_0x13b8fe,_0x382201){const _0xdea8dd=a14_0xdea8();return a14_0x1ab1=function(_0x1ab1aa,_0x8f1563){_0x1ab1aa=_0x1ab1aa-0x18c;let _0x1aef1a=_0xdea8dd[_0x1ab1aa];return _0x1aef1a;},a14_0x1ab1(_0x13b8fe,_0x382201);}(function(_0x31e69d,_0x35b4e1){const _0xe1b92=a14_0x1ab1,_0x5f5039=_0x31e69d();while(!![]){try{const _0x1374c1=-parseInt(_0xe1b92(0x1a8))/0x1+parseInt(_0xe1b92(0x191))/0x2+-parseInt(_0xe1b92(0x1a4))/0x3*(-parseInt(_0xe1b92(0x1dc))/0x4)+-parseInt(_0xe1b92(0x18c))/0x5*(-parseInt(_0xe1b92(0x18e))/0x6)+parseInt(_0xe1b92(0x193))/0x7*(-parseInt(_0xe1b92(0x1af))/0x8)+-parseInt(_0xe1b92(0x194))/0x9+-parseInt(_0xe1b92(0x1b8))/0xa*(parseInt(_0xe1b92(0x1b7))/0xb);if(_0x1374c1===_0x35b4e1)break;else _0x5f5039['push'](_0x5f5039['shift']());}catch(_0x46a9af){_0x5f5039['push'](_0x5f5039['shift']());}}}(a14_0xdea8,0x44b0e));function a14_0xdea8(){const _0x3b06ff=['NUkvd','exit','command','uuid','help','forEach','ygOcv','nwjRi','rFmES','bstackAccesskey','KuSha','Browserstack','https://','readFileSync','stringify','username','allGridProfiles','cloudProvider','got','description','DkhCn','builder','iFMSJ','push','../../utils/instrumentationUtils','server-error','grid-profile-name','concurrency','requestId','body','init-not-called','list-grid-profiles-called','password','812hFlnLn','list','OOlle','wtfwH','177110eACpsp','../../config/constants','6YENben','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','table','933192GOPzlU','cloud-provider','427vfnLDd','1146258ncWebp','xAQCi','error','region','INFO','/packages/cli/get-grid-profiles','ERROR','DTWtv','fpqVr','epilogue','Ifjeq','usage','handler','../../utils/utilityMethods','dWbcu','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','5973OSTgMC','all-grid-profiles','MdHoD','/packages/cli/get-all-grid-profiles','272138xWsSdI','bstackUsername','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','existsSync','parse','statusCode','log','24904uFcLwT','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WgacA','options','unknown-error','desc','hMGIR','bWfuW','4873YPwLTO','800LiQvZU','nlbVv','HRZuW'];a14_0xdea8=function(){return _0x3b06ff;};return a14_0xdea8();}const fs=require('fs'),got=require(a14_0x4d7f7f(0x1cd)),{table}=require(a14_0x4d7f7f(0x190)),{v4:uuidv4}=require(a14_0x4d7f7f(0x1be)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x4d7f7f(0x18d)),{getCredentialsPath,getAuthHeader}=require(a14_0x4d7f7f(0x1a1)),{sendInstrumentationEvent}=require(a14_0x4d7f7f(0x1d3));exports[a14_0x4d7f7f(0x1bd)]='grid-profiles',exports[a14_0x4d7f7f(0x1b4)]=a14_0x4d7f7f(0x1aa),exports[a14_0x4d7f7f(0x1d0)]=function(_0x468dbe){const _0x727504=a14_0x4d7f7f,_0x32e6de={};_0x32e6de['hvWIE']=_0x727504(0x18f),_0x32e6de[_0x727504(0x1cf)]='boolean',_0x32e6de[_0x727504(0x19b)]=_0x727504(0x1bf);const _0x169980=_0x32e6de,_0x4e79ee={};_0x4e79ee[_0x727504(0x1ce)]=_0x169980['hvWIE'],_0x4e79ee['type']=_0x169980['DkhCn'];const _0x46ccce={};return _0x46ccce[_0x727504(0x1a5)]=_0x4e79ee,_0x468dbe[_0x727504(0x19f)](HELP_HEADER_MESSAGE[_0x727504(0x1dd)]['gridProfile'])[_0x727504(0x19d)](HELP_FOOTER_MESSAGE)[_0x727504(0x1b2)](_0x46ccce)[_0x727504(0x1bf)](_0x169980[_0x727504(0x19b)])['argv'];},exports[a14_0x4d7f7f(0x1a0)]=async function(_0x5b6e94){const _0x5f532c=a14_0x4d7f7f,_0x3ea2c1={'Ifjeq':function(_0x3c225d){return _0x3c225d();},'dwpVD':function(_0x5a7d52){return _0x5a7d52();},'rFmES':_0x5f532c(0x1a3),'OOlle':function(_0x2f3c5b,_0x1fc529,_0x3d9964,_0x5a8936,_0x3c0a8f,_0x1c8827,_0x137e6c){return _0x2f3c5b(_0x1fc529,_0x3d9964,_0x5a8936,_0x3c0a8f,_0x1c8827,_0x137e6c);},'KuSha':_0x5f532c(0x1da),'xAQCi':_0x5f532c(0x1d9),'bWfuW':function(_0x5ca00f){return _0x5ca00f();},'DRPqk':'GET','iFMSJ':function(_0x387eba,_0x4b8f7e,_0x55b3c7){return _0x387eba(_0x4b8f7e,_0x55b3c7);},'dWbcu':function(_0x328829,_0x209374,_0x107ac2,_0x184f3e,_0xe8407a,_0x337ce6,_0x14b091){return _0x328829(_0x209374,_0x107ac2,_0x184f3e,_0xe8407a,_0x337ce6,_0x14b091);},'HRZuW':function(_0x520f16,_0x79a76b,_0x449879){return _0x520f16(_0x79a76b,_0x449879);},'nlbVv':function(_0x2b6816,_0x5f13bb){return _0x2b6816!==_0x5f13bb;},'ygOcv':function(_0x44fe2c,_0x3d962e){return _0x44fe2c===_0x3d962e;},'wtfwH':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','hMGIR':_0x5f532c(0x1d5),'UNXRQ':_0x5f532c(0x192),'rJGeK':'region','nwjRi':_0x5f532c(0x1d6),'yLTiO':function(_0x18a304,_0x3b988d){return _0x18a304(_0x3b988d);},'UbOTW':_0x5f532c(0x1b0),'MdHoD':function(_0x89912e,_0x5181bf,_0xd9ad01,_0x2cd7aa,_0x180378,_0x4c15c6,_0x32b12a){return _0x89912e(_0x5181bf,_0xd9ad01,_0x2cd7aa,_0x180378,_0x4c15c6,_0x32b12a);},'lEKyi':'unauthorised','NUkvd':_0x5f532c(0x1d4),'fpqVr':function(_0x1e0dbf,_0x457323,_0x4788ce,_0x2a69ee,_0x385c51,_0x4f4324,_0x5238b0){return _0x1e0dbf(_0x457323,_0x4788ce,_0x2a69ee,_0x385c51,_0x4f4324,_0x5238b0);},'WgacA':_0x5f532c(0x1b3)};try{global_registry[_0x5f532c(0x1d7)]=_0x3ea2c1[_0x5f532c(0x19e)](uuidv4);let _0x3ab353=_0x5f532c(0x1c7)+AG_API_URL+_0x5f532c(0x199);_0x5b6e94[_0x5f532c(0x1cb)]&&(_0x3ab353=_0x5f532c(0x1c7)+AG_API_URL+_0x5f532c(0x1a7));!fs[_0x5f532c(0x1ab)](_0x3ea2c1['dwpVD'](getCredentialsPath))&&(console[_0x5f532c(0x196)](_0x3ea2c1[_0x5f532c(0x1c3)]),await _0x3ea2c1[_0x5f532c(0x1de)](sendInstrumentationEvent,_0x5b6e94,_0x3ea2c1[_0x5f532c(0x1c5)],messageTypes[_0x5f532c(0x19a)],_0x3ea2c1[_0x5f532c(0x195)],null,_0x5b6e94),process[_0x5f532c(0x1bc)](0x1));const _0x9791c5=JSON[_0x5f532c(0x1ac)](fs[_0x5f532c(0x1c8)](_0x3ea2c1[_0x5f532c(0x1b6)](getCredentialsPath))),_0x31cade={'method':_0x3ea2c1['DRPqk'],'headers':_0x3ea2c1[_0x5f532c(0x1d1)](getAuthHeader,_0x9791c5['Browserstack']['username'],_0x9791c5[_0x5f532c(0x1c6)][_0x5f532c(0x1db)]),'throwHttpErrors':![]};global_registry[_0x5f532c(0x1a9)]=_0x9791c5['Browserstack'][_0x5f532c(0x1ca)],global_registry[_0x5f532c(0x1c4)]=_0x9791c5[_0x5f532c(0x1c6)][_0x5f532c(0x1db)],_0x3ea2c1[_0x5f532c(0x1a2)](sendInstrumentationEvent,_0x5b6e94,_0x3ea2c1[_0x5f532c(0x1c5)],messageTypes[_0x5f532c(0x198)],null,null,_0x5b6e94);const _0x151815=await _0x3ea2c1[_0x5f532c(0x1ba)](got,_0x3ab353,_0x31cade);if(_0x3ea2c1[_0x5f532c(0x1b9)](_0x151815,null)&&_0x3ea2c1[_0x5f532c(0x1b9)](_0x151815,undefined)&&_0x3ea2c1[_0x5f532c(0x1c1)](_0x151815['statusCode'],0xc8)){const _0x574484=JSON[_0x5f532c(0x1ac)](_0x151815[_0x5f532c(0x1d8)]);console[_0x5f532c(0x1ae)](_0x3ea2c1[_0x5f532c(0x1df)]);const _0x3c05de=[];_0x3c05de[_0x5f532c(0x1d2)]([_0x3ea2c1[_0x5f532c(0x1b5)],_0x3ea2c1['UNXRQ'],_0x3ea2c1['rJGeK'],_0x3ea2c1[_0x5f532c(0x1c2)]]),_0x574484[_0x5f532c(0x1c0)](_0x46c5b4=>{const _0xf02589=_0x5f532c;_0x3c05de[_0xf02589(0x1d2)]([_0x46c5b4['name'],_0x46c5b4[_0xf02589(0x1cc)],_0x46c5b4[_0xf02589(0x197)],_0x46c5b4[_0xf02589(0x1d6)]]);}),console[_0x5f532c(0x1ae)](_0x3ea2c1['yLTiO'](table,_0x3c05de)),process[_0x5f532c(0x1bc)](0x0);}_0x3ea2c1[_0x5f532c(0x1c1)](_0x151815[_0x5f532c(0x1ad)],0x191)&&(console[_0x5f532c(0x196)](_0x3ea2c1['UbOTW']),await _0x3ea2c1[_0x5f532c(0x1a6)](sendInstrumentationEvent,_0x5b6e94,_0x3ea2c1[_0x5f532c(0x1c5)],messageTypes[_0x5f532c(0x19a)],_0x3ea2c1['lEKyi'],null,_0x5b6e94),process[_0x5f532c(0x1bc)](0x1)),console[_0x5f532c(0x196)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5f532c(0x1c9)](_0x151815)),await _0x3ea2c1[_0x5f532c(0x1de)](sendInstrumentationEvent,_0x5b6e94,_0x3ea2c1[_0x5f532c(0x1c5)],messageTypes[_0x5f532c(0x19a)],_0x3ea2c1[_0x5f532c(0x1bb)],_0x151815,_0x5b6e94),process['exit'](0x1);}catch(_0x5b7b94){console[_0x5f532c(0x196)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5b7b94['stack']),await _0x3ea2c1[_0x5f532c(0x19c)](sendInstrumentationEvent,_0x5b6e94,_0x3ea2c1['KuSha'],messageTypes['ERROR'],_0x3ea2c1[_0x5f532c(0x1b1)],_0x5b7b94,_0x5b6e94),process[_0x5f532c(0x1bc)](0x1);}};